/*
Signal Labs
Tool: Overtime Calculator
File: style.css
Version: v0.9.9.6
Purpose: Tool-specific styles
*/
/* Overtime Calculator v0.9.0.1 — Live Folder Resync */

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.left-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-title {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.section-title h2 {
  margin-bottom: 8px;
}

.section-title p {
  color: #999;
  line-height: 1.7;
}

.section-title span {
  color: #888;
  font-weight: normal;
}

.step-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  flex-shrink: 0;
}

.green {
  background: rgba(70,180,90,.2);
  color: #73ff8f;
}

.purple {
  background: rgba(140,80,255,.2);
  color: #cb9cff;
}

.blue {
  background: rgba(80,140,255,.2);
  color: #56a6ff;
}

.orange {
  background: rgba(255,177,77,.2);
  color: #ffb14d;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
  font-size: 14px;
}

input,
select {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.3);
  color: white;
  font-size: 18px;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(255,255,255,.3);
}

.threshold-box {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.override-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.override-row input {
  width: auto;
}

.custom-threshold {
  margin-top: 8px;
}

.hidden-threshold {
  display: none;
}

.threshold-note {
  color: #888;
  line-height: 1.7;
  font-size: 14px;
}

.currency-note {
  color: #aaa;
  font-size: 13px;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
}

.button-row button {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  line-height: 1.2;
}

.calculate-main {
  grid-column: 1 / -1;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 18px;
}

.primary-action {
  font-size: 18px;
}

.message {
  color: #888;
  font-size: 14px;
  line-height: 1.6;
}

.message.error {
  color: #ff8b8b;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.05);
}

.profile-row span {
  color: #888;
  font-size: 13px;
  line-height: 1.5;
}

.profile-row .mini-button {
  flex-shrink: 0;
}

.add-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.adjustment-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.adjustment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.adjustment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adjustment-list p,
.result-detail-list p {
  color: #888;
  line-height: 1.6;
}

.adjustment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
}

.adjustment-item span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.adjustment-item button {
  width: auto;
  flex-shrink: 0;
  padding: 6px 10px;
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 18px;
}

.inline-add {
  padding: 14px;
  background: transparent;
}

.purple-text {
  color: #c589ff;
}

.blue-text {
  color: #56a6ff;
}

.orange-text {
  color: #ffb14d;
}

.purple-outline {
  border: 1px solid rgba(197,137,255,.35);
}

.blue-outline {
  border: 1px solid rgba(86,166,255,.35);
}

.orange-outline {
  border: 1px solid rgba(255,177,77,.35);
}

.info-note {
  padding: 18px;
  border-radius: 16px;
  background: rgba(140,80,255,.08);
  border: 1px solid rgba(140,80,255,.2);
  color: #bfbfbf;
  line-height: 1.8;
}

.info-note strong,
.info-note span {
  display: block;
}

.advanced-note {
  background: rgba(80,140,255,.08);
  border-color: rgba(80,140,255,.2);
}

.advanced-note span {
  color: #c9d8ff;
}

.goal-note {
  background: rgba(255,177,77,.08);
  border-color: rgba(255,177,77,.2);
}

.goal-note span {
  color: #ffe0b8;
}

.advanced-pay-card,
.goal-card {
  scroll-margin-top: 24px;
}

.results-card {
  position: sticky;
  top: 24px;
}

.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.mini-button {
  width: auto;
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.results-section {
  margin-bottom: 30px;
}

.results-section h3 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

.result-row span {
  color: #aaa;
  line-height: 1.5;
}

.result-row strong {
  font-size: 22px;
  text-align: right;
}

.total {
  background: rgba(50,150,80,.22);
  border-color: rgba(70,200,100,.3);
}

.total strong {
  font-size: 34px;
}

.net-total {
  background: rgba(60,100,220,.22);
  border-color: rgba(80,140,255,.3);
}

.net-total strong {
  font-size: 34px;
}

.result-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-card {
  margin-top: 24px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
}

.summary-card p {
  color: #999;
  line-height: 1.8;
}

.footer-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-copy {
  color: #777;
  line-height: 1.8;
}

.adjustment-modal-help {
  color: #999;
  line-height: 1.7;
  margin-bottom: 22px;
}

.adjustment-modal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}

.adjustment-modal-message {
  min-height: 22px;
  margin-bottom: 16px;
}

.modal-action-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-action-row button {
  width: auto;
}

.collapse-toggle,
.result-collapse-toggle {
  display: none;
  width: auto;
  margin-left: auto;
  padding: 9px 14px;
  font-size: 12px;
}

.result-collapse-toggle {
  padding: 7px 12px;
}

.card-collapse-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.advanced-subsection {
  margin-bottom: -8px;
}

.advanced-subsection h3 {
  color: #9fc4ff;
  font-size: 15px;
  letter-spacing: .04em;
}

.goal-result-section #goalResultNote {
  margin-top: 12px;
}

@media (max-width: 1050px) {

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .results-card {
    position: static;
  }

}

@media (max-width: 700px) {

  body {
    padding: 14px;
  }

  .hero {
    text-align: center;
    padding-top: 26px;
    padding-bottom: 28px;
  }

  .eyebrow {
    font-size: 15px;
    letter-spacing: .34em;
    font-weight: 600;
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(50px, 13vw, 68px);
    line-height: .98;
    margin-bottom: 20px;
  }

  .subtitle {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    line-height: 1.65;
  }

  .card {
    padding: 22px;
  }

  .step-card {
    gap: 18px;
  }

  .section-title {
    align-items: flex-start;
    gap: 14px;
  }

  .section-title h2 {
    font-size: 24px;
    line-height: 1.15;
  }

  .section-title p {
    font-size: 14px;
    line-height: 1.55;
  }

  .step-badge {
    width: 36px;
    height: 36px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .collapse-toggle,
  .result-collapse-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  .collapsible-card.is-collapsed .card-collapse-content {
    display: none;
  }

  .collapsible-card.is-collapsed {
    gap: 0;
  }

  input,
  select {
    padding: 14px;
    font-size: 16px;
    border-radius: 14px;
  }

  label span {
    font-size: 13px;
  }

  .threshold-box,
  .info-note {
    padding: 16px;
  }

  .button-row {
    grid-template-columns: 1fr;
  }

  .calculate-main {
    grid-column: auto;
  }

  .add-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .add-row button {
    padding: 13px 8px;
    font-size: 12px;
  }

  .adjustment-group {
    gap: 10px;
  }

  .adjustment-header {
    flex-direction: row;
    align-items: center;
  }

  .inline-add {
    padding: 12px;
    font-size: 13px;
  }

  .profile-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-row .mini-button {
    width: 100%;
  }

  .results-card {
    padding: 22px;
  }

  .results-heading {
    gap: 16px;
    margin-bottom: 20px;
  }

  .results-heading h2 {
    font-size: 34px;
  }

  .results-section {
    margin-bottom: 24px;
  }

  .results-section h3 {
    font-size: 21px;
    margin-bottom: 12px;
    align-items: center;
  }

  .results-compact-mobile .result-row {
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
    min-height: auto;
    border-radius: 14px;
    margin-bottom: 8px;
  }

  .results-compact-mobile .result-row span {
    font-size: 14px;
  }

  .results-compact-mobile .result-row strong {
    font-size: 18px;
    text-align: right;
  }

  .results-compact-mobile .total strong,
  .results-compact-mobile .net-total strong {
    font-size: 24px;
  }

  .results-compact-mobile .net-total {
    margin-top: 10px;
  }

  .mobile-result-section.is-result-collapsed > .result-row,
  .mobile-result-section.is-result-collapsed > .result-detail-list {
    display: none;
  }

  .mobile-result-section.is-result-collapsed {
    margin-bottom: 16px;
  }

  .pay-result-section {
    margin-bottom: 26px;
  }

  .results-compact-mobile .pay-result-section .total {
    margin-top: 10px;
  }

  .summary-card,
  .compact-summary {
    padding: 14px 16px;
  }

  .compact-summary p:first-child {
    display: none;
  }

  .compact-summary p {
    font-size: 12px;
    line-height: 1.5;
  }

  .footer-actions {
    flex-direction: row;
  }

  .footer-actions button {
    width: 100%;
    padding: 15px 12px;
  }

  .adjustment-modal-form {
    grid-template-columns: 1fr;
  }

  .modal-action-row {
    flex-direction: column;
  }

  .modal-action-row button {
    width: 100%;
  }

}

@media (max-width: 560px) {

  .results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .mini-button {
    width: 100%;
  }

  .adjustment-header {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (max-width: 420px) {

  .section-title {
    gap: 12px;
  }

  .step-badge {
    width: 34px;
    height: 34px;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .add-row {
    grid-template-columns: 1fr;
  }

  .add-row button {
    font-size: 13px;
  }

  .footer-actions {
    flex-direction: column;
  }

}


/*
--------------------------------
v0.8.2.1 Layout Repair Guard
--------------------------------
*/

main.page .dashboard-layout {
  display: grid;
}

main.page .form-grid {
  display: grid;
}

main.page .button-row {
  display: grid;
}

main.page input,
main.page select {
  display: block;
  min-height: 52px;
}

main.page label {
  display: block;
}

main.page .card-collapse-content {
  display: flex;
}


/*
--------------------------------
v0.9.0.1 Local Disabled Ad Safeguard
--------------------------------
Global assets should hide disabled ad slots.
This local fallback protects Overtime if stale global CSS is cached.
*/

.ad-slot.is-disabled,
.ad-slot[data-ad-status="disabled"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}


/*
--------------------------------
v0.8.5 Share & Export Prep
--------------------------------
*/

.results-action-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.results-action-row button {
  width: 100%;
}

@media (max-width: 560px) {

  .results-action-row {
    grid-template-columns: 1fr;
  }

}


/*
--------------------------------
Share & Export Prep Print Support
--------------------------------
*/

@media print {

  body {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
  }

  .signal-nav,
  .footer-actions,
  .button-row,
  .results-action-row,
  .ad-slot,
  .modal,
  .collapse-toggle,
  .result-collapse-toggle {
    display: none !important;
  }

  .page,
  .card,
  .results-card {
    max-width: none !important;
    box-shadow: none !important;
    border-color: #ddd !important;
    background: #fff !important;
    color: #000 !important;
  }

  .dashboard-layout {
    display: block !important;
  }

  .results-card {
    position: static !important;
  }

  .card-collapse-content,
  .mobile-result-section.is-result-collapsed > .result-row,
  .mobile-result-section.is-result-collapsed > .category-results-list,
  .mobile-result-section.is-result-collapsed > .planned-event-results,
  .mobile-result-section.is-result-collapsed > .warning-results-list,
  .mobile-result-section.is-result-collapsed > .result-detail-list {
    display: block !important;
  }

  .result-row,
  .category-result-card,
  .planned-event-result,
  .warning-result {
    break-inside: avoid;
    color: #000 !important;
  }

}


/*
--------------------------------
v0.9 Professional Reports
--------------------------------
*/

.results-action-row button {
  white-space: nowrap;
}

@media print {

  body {
    background: #fff !important;
  }

}


/*
--------------------------------
v0.9.2 Optional Section Toggles
--------------------------------
*/

.option-toggle-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.option-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.035);
}

.option-toggle-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}

.option-toggle-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 54px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.42);
  transition: background 0.2s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.24);
  transition: transform 0.2s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

.optional-section-disabled {
  display: none !important;
}

@media (max-width: 560px) {

  .option-toggle-row {
    align-items: flex-start;
  }

}


/*
--------------------------------
v0.9.3 Inline Optional Toggles
--------------------------------
*/

.option-toggle-card { display: none !important; }
.inline-optional-control { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.optional-pill { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 9px; border-radius: 999px; background: rgba(59, 130, 246, 0.10); color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.inline-toggle-switch { position: relative; display: inline-flex; flex-shrink: 0; width: 46px; height: 26px; margin: 0; gap: 0; }
.inline-toggle-switch input { opacity: 0; width: 0; height: 0; }
.inline-toggle-switch .toggle-slider, .toggle-switch .toggle-slider { position: absolute; inset: 0; cursor: pointer; border-radius: 999px; background: rgba(100, 116, 139, 0.42); transition: background 0.2s ease; }
.inline-toggle-switch .toggle-slider::before, .toggle-switch .toggle-slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.24); transition: transform 0.2s ease; }
.inline-toggle-switch input:checked + .toggle-slider, .toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.inline-toggle-switch input:checked + .toggle-slider::before, .toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
@media (max-width: 560px) { .inline-optional-control { width: 100%; justify-content: space-between; margin-left: 0; } }


/*
--------------------------------
v0.9.4 Collapsible Optional Sections
--------------------------------
*/

.optional-section-body {
  overflow: hidden;
  max-height: 2200px;
  opacity: 1;
  transition:
    max-height 0.22s ease,
    opacity 0.18s ease,
    margin 0.18s ease;
}

.optional-section-off {
  opacity: 0.82;
}

.optional-section-off .optional-section-body {
  max-height: 0;
  opacity: 0;
  margin: 0 !important;
  pointer-events: none;
}

.optional-section-off .section-title {
  margin-bottom: 0;
}

.inline-optional-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.optional-state-label {
  min-width: 32px;
  text-align: right;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.optional-state-label.is-on {
  color: #22c55e;
}

.optional-state-label.is-off {
  color: #f43f5e;
}

.optional-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.10);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inline-toggle-switch,
.toggle-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  margin: 0;
  gap: 0;
}

.inline-toggle-switch input,
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.inline-toggle-switch .toggle-slider,
.toggle-switch .toggle-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: #dc2626;
  transition: background 0.2s ease;
}

.inline-toggle-switch .toggle-slider::before,
.toggle-switch .toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.24);
  transition: transform 0.2s ease;
}

.inline-toggle-switch input:checked + .toggle-slider,
.toggle-switch input:checked + .toggle-slider {
  background: #16a34a;
}

.inline-toggle-switch input:checked + .toggle-slider::before,
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.optional-section-off .optional-pill {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
}

@media (max-width: 560px) {

  .inline-optional-control {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

}


/*
--------------------------------
v0.9.4.2 Toggle Polish & Compact Headers
--------------------------------
*/

.section-title h2 {
  line-height: 1.08;
}

.section-title h2 .optional-title-text,
.section-title h2 .optional-text,
.section-title h2 small {
  display: none !important;
}

.section-title p {
  max-width: 620px;
}

.inline-optional-control {
  align-items: center;
  gap: 8px;
}

.optional-pill {
  min-height: 19px;
  padding: 2px 7px;
  font-size: 9px;
  line-height: 1;
}

.optional-state-label {
  min-width: 24px;
  font-size: 9px;
  line-height: 1;
}

.inline-toggle-switch,
.toggle-switch {
  width: 42px;
  height: 24px;
  min-width: 42px;
}

.inline-toggle-switch .toggle-slider,
.toggle-switch .toggle-slider {
  border-radius: 999px;
}

.inline-toggle-switch .toggle-slider::before,
.toggle-switch .toggle-slider::before {
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
}

.inline-toggle-switch input:checked + .toggle-slider::before,
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

.optional-section-off .optional-section-body {
  max-height: 0;
}

@media (min-width: 800px) {

  .section-title {
    align-items: flex-start;
  }

  .inline-optional-control {
    padding-top: 2px;
  }

}

@media (max-width: 560px) {

  .inline-optional-control {
    display: grid;
    grid-template-columns: auto auto auto;
    width: auto;
    margin-left: auto;
  }

  .optional-pill {
    font-size: 8px;
  }

}


/*
--------------------------------
v0.9.5 Compact UI Pass
--------------------------------
Purpose:
- Rebuild optional toggle sizing with hard overrides.
- Tighten optional card headers.
- Reduce form, card, button, and result row height.
- Preserve readability on mobile.
*/

/* Card density */
.card {
  padding: 20px !important;
}

.step-card {
  gap: 14px !important;
}

.section-title {
  gap: 12px !important;
  margin-bottom: 0 !important;
  align-items: flex-start !important;
}

.section-title h2 {
  margin: 0 0 3px !important;
  line-height: 1.08 !important;
}

.section-title p {
  margin: 2px 0 0 !important;
  line-height: 1.42 !important;
  max-width: 620px;
}

.step-badge {
  min-width: 34px !important;
  width: 34px !important;
  height: 34px !important;
  font-size: 12px !important;
}

/* Optional control layout */
.inline-optional-control {
  display: grid !important;
  grid-template-columns: auto auto auto !important;
  align-items: center !important;
  gap: 7px !important;
  margin-left: auto !important;
  padding-top: 0 !important;
  flex-shrink: 0 !important;
}

.optional-pill {
  min-height: 18px !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.06em !important;
}

.optional-state-label {
  min-width: 22px !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0.05em !important;
}

/* Toggle rebuild: force knob inside track */
.inline-toggle-switch,
.toggle-switch {
  position: relative !important;
  display: inline-block !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  overflow: visible !important;
}

.inline-toggle-switch input,
.toggle-switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
}

.inline-toggle-switch .toggle-slider,
.toggle-switch .toggle-slider {
  position: absolute !important;
  inset: 0 !important;
  width: 40px !important;
  height: 22px !important;
  border-radius: 999px !important;
  background: #dc2626 !important;
  cursor: pointer !important;
  transition: background 0.18s ease !important;
  overflow: hidden !important;
}

.inline-toggle-switch .toggle-slider::before,
.toggle-switch .toggle-slider::before {
  content: "" !important;
  position: absolute !important;
  width: 16px !important;
  height: 16px !important;
  left: 3px !important;
  top: 3px !important;
  right: auto !important;
  bottom: auto !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.28) !important;
  transition: transform 0.18s ease !important;
  transform: translateX(0) !important;
}

.inline-toggle-switch input:checked + .toggle-slider,
.toggle-switch input:checked + .toggle-slider {
  background: #16a34a !important;
}

.inline-toggle-switch input:checked + .toggle-slider::before,
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px) !important;
}

/* Optional collapse */
.optional-section-body {
  overflow: hidden !important;
  max-height: 2200px;
  opacity: 1;
  transition: max-height 0.2s ease, opacity 0.16s ease;
}

.optional-section-off .optional-section-body {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  pointer-events: none !important;
}

.optional-section-off {
  opacity: 0.88;
}

.optional-section-off .section-title {
  margin-bottom: 0 !important;
}

/* Form density */
.form-grid,
.input-grid,
.category-grid,
.adjustment-grid {
  gap: 12px !important;
}

label,
.field-label {
  gap: 5px !important;
  margin-bottom: 0 !important;
}

input,
select,
textarea {
  min-height: 44px !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

textarea {
  min-height: 84px !important;
}

button,
.button,
.primary-button,
.secondary-button {
  min-height: 40px !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

/* Result density */
.result-row {
  padding: 10px 13px !important;
  margin-bottom: 8px !important;
}

.results-section {
  margin-bottom: 18px !important;
}

.results-card .section-title {
  margin-bottom: 8px !important;
}

/* Preserve mobile usability */
@media (max-width: 700px) {

  .card {
    padding: 16px !important;
  }

  .step-card {
    gap: 12px !important;
  }

  .section-title {
    gap: 10px !important;
  }

  .section-title h2 {
    font-size: 22px !important;
  }

  .section-title p {
    font-size: 14px !important;
  }

  .step-badge {
    min-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 11px !important;
  }

  .inline-optional-control {
    gap: 6px !important;
  }

  .optional-pill {
    font-size: 8px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .optional-state-label {
    font-size: 8px !important;
    min-width: 20px !important;
  }

  input,
  select,
  textarea {
    min-height: 42px !important;
  }

  button,
  .button,
  .primary-button,
  .secondary-button {
    min-height: 40px !important;
  }
}


/*
--------------------------------
v0.9.6 Signal Labs UI Identity
--------------------------------
*/

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-left: 5px;
  border: 1px solid rgba(96, 165, 250, 0.52);
  border-radius: 999px;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.10);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
  position: relative;
}

.info-icon::after {
  content: attr(data-info);
  position: absolute;
  z-index: 40;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%);
  width: min(260px, 76vw);
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(12, 16, 24, 0.98);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.36);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.info-icon:hover::after,
.info-icon:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.pill-control,
.category-pill-grid,
.quick-pill-row,
.policy-pill-row,
.ot-threshold-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.pill-button,
.category-pill,
.quick-hour-pill,
.policy-pill,
.ot-threshold-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  max-width: 100%;
}

.pill-button:hover,
.category-pill:hover,
.quick-hour-pill:hover,
.policy-pill:hover,
.ot-threshold-pill:hover {
  border-color: rgba(34, 197, 94, 0.52);
  transform: translateY(-1px);
}

.pill-button.is-selected,
.category-pill.is-selected,
.quick-hour-pill.is-selected,
.policy-pill.is-selected,
.ot-threshold-pill.is-selected {
  border-color: rgba(34, 197, 94, 0.72);
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.category-pill {
  justify-content: flex-start;
  width: min(100%, 220px);
  overflow: hidden;
}

.category-pill .pill-label,
.event-chip .chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-pill .pill-check {
  color: #22c55e;
  font-weight: 1000;
}

.custom-category-row,
.quick-custom-row,
.note-add-row {
  display: flex;
  gap: 9px;
  align-items: end;
  margin-top: 12px;
}

.custom-category-row input,
.quick-custom-row input {
  flex: 1;
  min-width: 0;
}

.event-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.event-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(96, 165, 250, 0.30);
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
}

.footer-notes {
  margin-top: 16px;
  padding: 14px 15px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.footer-notes strong {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.footer-notes ul {
  margin: 0;
  padding-left: 17px;
}

.footer-notes li + li {
  margin-top: 3px;
}

.hidden-by-ui-identity {
  display: none !important;
}

@media (max-width: 700px) {
  .category-pill {
    width: 100%;
  }

  .custom-category-row,
  .quick-custom-row,
  .note-add-row {
    flex-direction: column;
    align-items: stretch;
  }

  .pill-button,
  .category-pill,
  .quick-hour-pill,
  .policy-pill,
  .ot-threshold-pill {
    min-height: 36px;
    padding: 8px 12px;
  }
}


/*
--------------------------------
v0.9.6.1 UI Identity Polish
--------------------------------
- Refines lowercase info icons.
- Converts Time Off categories to true pill-only UI.
*/

.info-icon {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  margin-left: 4px !important;
  border-width: 1px !important;
  border-color: rgba(96, 165, 250, 0.22) !important;
  background: rgba(96, 165, 250, 0.04) !important;
  color: rgba(96, 165, 250, 0.85) !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  line-height: 15px !important;
  text-align: center !important;
  align-items: unset !important;
  justify-content: unset !important;
  padding: 0 !important;
  top: -1px !important;
}

/* Time Off true category pills */
#categoryOptions.hidden-by-ui-identity,
#categoryOptions.hidden-by-ui-identity *,
#categoryOptions.signal-labs-hidden-category-source,
#categoryOptions.signal-labs-hidden-category-source * {
  display: none !important;
}

.category-pill-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  margin-top: 10px !important;
}

.category-pill {
  width: auto !important;
  min-width: 118px !important;
  max-width: 220px !important;
  min-height: 36px !important;
  padding: 8px 13px !important;
  border-radius: 999px !important;
  justify-content: flex-start !important;
}

.category-pill .pill-check {
  width: 14px !important;
  min-width: 14px !important;
  text-align: center !important;
}

.category-pill .pill-label {
  display: block !important;
  max-width: 165px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-transform: none !important;
}

.custom-category-row {
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(148, 163, 184, 0.14) !important;
}

.custom-category-row label {
  flex: 1 !important;
  min-width: 0 !important;
}

@media (max-width: 700px) {
  .category-pill {
    min-width: calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
  }

  .category-pill .pill-label {
    max-width: 100% !important;
  }
}

@media (max-width: 420px) {
  .category-pill {
    min-width: 100% !important;
    max-width: 100% !important;
  }
}


/*
--------------------------------
v0.9.7 Modal Suggested Pills Fix
--------------------------------
*/

.take-home-quick-actions,
.take-home-top-actions,
.take-home-duplicate-actions,
.signal-labs-duplicate-takehome-actions {
  display: none !important;
}

.adjustment-type-pill-row,
.suggested-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}

.adjustment-type-pill,
.suggested-entry-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.adjustment-type-pill.is-selected,
.suggested-entry-pill.is-selected {
  border-color: rgba(34, 197, 94, 0.72);
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.signal-labs-modal-helper {
  margin-top: 6px;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  line-height: 1.35;
}


/*
--------------------------------
v0.9.8 UX Flow & Plain-English Polish
--------------------------------
Purpose:
- Supports clearer section naming.
- Keeps info-icon examples aligned inside card headings.
- Preserves compact optional controls after section reorder.
*/

.section-title h2 .info-icon {
  vertical-align: middle !important;
}



/*
--------------------------------
v0.9.9.3 Shared Report Format
--------------------------------
Purpose:
- Align Overtime adjustment modal pills with the Paycheck v0.2 shared pattern.
- Keep legacy Overtime class names working while adding shared class aliases.
*/

.suggested-pill-row,
.amount-type-row,
.adjustment-type-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 10px 0;
}

.suggested-pill,
.suggested-entry-pill,
.amount-type-pill,
.adjustment-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.suggested-pill:hover,
.suggested-entry-pill:hover,
.amount-type-pill:hover,
.adjustment-type-pill:hover {
  border-color: rgba(34, 197, 94, 0.52);
  transform: translateY(-1px);
}

.suggested-pill.is-selected,
.suggested-entry-pill.is-selected,
.amount-type-pill.is-selected,
.adjustment-type-pill.is-selected {
  border-color: rgba(34, 197, 94, 0.72);
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}
