/* ============================================================
   Global resets / fonts / print
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'IBM Plex Sans', system-ui, sans-serif; color: #FFFFFF; background: #0F071A; -webkit-font-smoothing: antialiased; }
input, button, textarea, select { font-family: inherit; }
input:focus, textarea:focus, select:focus { border-color: #7C3AED !important; }
::placeholder { color: rgba(255, 255, 255, .4); }

@keyframes tin {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media print {
  .noprint { display: none !important; }
  body { background: #fff; }
}

/* ============================================================
   Screen shells
   ============================================================ */
.screen { min-height: 100vh; }
.screen--dark { background: #0F071A; }
.screen--light { background: #FAFAF9; color: #1B1B19; }
.screen-center { display: flex; align-items: center; justify-content: center; padding: 32px; }

/* ============================================================
   Buttons (shared)
   ============================================================ */
.btn { border: none; border-radius: 9px; font-weight: 600; cursor: pointer; }
.btn--full { width: 100%; padding: 12px; font-size: 14.5px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--disabled { background: #0F071A; color: rgba(255, 255, 255, .4); cursor: not-allowed; border: 1px solid rgba(255, 255, 255, .08); }

.btn--ghost { padding: 8px 13px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; background: #1A1027; font-size: 13px; font-weight: 600; cursor: pointer; color: rgba(255, 255, 255, .85); }
.btn--accent { padding: 8px 14px; border: none; border-radius: 8px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn--accent--wide { padding: 8px 16px; }
.btn--reject { padding: 8px 14px; border: 1px solid rgba(242, 153, 74, .4); border-radius: 8px; background: transparent; color: #F2994A; font-size: 13px; font-weight: 600; cursor: pointer; }

.btn--outline-light { padding: 8px 14px; border: 1px solid #E2E0DB; border-radius: 8px; background: #fff; color: #1B1B19; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.btn--solid-blue { padding: 8px 14px; border: none; border-radius: 8px; background: #3E6491; color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; }

.btn--dashed { display: flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 9px; background: #1A1027; color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 600; cursor: pointer; }
.btn--dashed__plus { color: var(--accent); font-size: 15px; font-weight: 700; line-height: 1; }

.link-accent { color: var(--accent); font-weight: 600; cursor: pointer; }

/* ============================================================
   Tabs (layout switch / add-kind / approvals filter)
   ============================================================ */
.tabs { display: flex; gap: 2px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); border-radius: 9px; padding: 3px; }
.tab { padding: 6px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 600; border: none; cursor: pointer; background: transparent; color: #C4B5FD; }
.tab--active { background: #1A1027; color: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }

/* ============================================================
   Auth screens (login / signup)
   ============================================================ */
.auth-card { width: 100%; max-width: 920px; display: grid; grid-template-columns: 1.05fr 0.95fr; background: #1A1027; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px -32px rgba(124, 58, 237, .35); }
.auth-card--single { max-width: 460px; display: block; padding: 48px 44px; }
.auth-card__form-pane { padding: 48px 44px; }
.auth-card__aside { background: rgba(255, 255, 255, .04); border-left: 1px solid rgba(255, 255, 255, .08); padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }

.auth-logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; }
.auth-logo-badge { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; }
.auth-logo-text { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }

.auth-title { font-size: 27px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
.auth-subtitle { font-size: 14.5px; color: #C4B5FD; margin: 0 0 20px; }
.auth-subtitle--tight { margin: 0 0 22px; }

.demo-banner { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: rgba(124, 58, 237, .12); border: 1px solid rgba(124, 58, 237, .3); border-radius: 9px; font-size: 12.5px; color: #7C3AED; margin: 0 0 22px; }
.demo-banner__tag { font-weight: 700; }
.demo-banner__text { color: #C4B5FD; }

.field-label { display: block; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .85); margin: 0 0 6px; }
.field-input { width: 100%; padding: 11px 13px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 9px; font-size: 14.5px; color: #FFFFFF; background: rgba(255, 255, 255, .04); margin: 0 0 16px; outline: none; }
.field-input--tight { margin: 0 0 8px; }
.field-error { min-height: 18px; font-size: 12.5px; color: #F2994A; margin: 0 0 12px; }

.divider-row { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.divider-row__line { flex: 1; height: 1px; background: rgba(255, 255, 255, .08); }
.divider-row__label { font-size: 12px; color: rgba(255, 255, 255, .45); }

.auth-foot { font-size: 13px; color: #C4B5FD; margin: 18px 0 0; text-align: center; }
.auth-foot--signup { margin: 20px 0 0; }
.auth-foot-note { font-size: 12px; color: rgba(255, 255, 255, .45); margin: 10px 0 0; text-align: center; }

.aside-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; color: rgba(255, 255, 255, .45); text-transform: uppercase; margin-bottom: 18px; }
.aside-figure { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; font-family: 'IBM Plex Mono', monospace; }
.aside-figure__unit { font-size: 20px; color: rgba(255, 255, 255, .45); font-weight: 500; }
.aside-copy { font-size: 14px; color: #C4B5FD; margin: 14px 0 28px; line-height: 1.5; }
.aside-chart { display: flex; gap: 6px; align-items: flex-end; height: 64px; }
.aside-chart__bar { flex: 1; border-radius: 4px 4px 0 0; background: rgba(255, 255, 255, .15); }
.aside-chart__bar--dim { background: rgba(255, 255, 255, .08); }
.aside-chart__bar--accent { background: var(--accent); }
.aside-chart__bar--h1 { height: 55%; }
.aside-chart__bar--h2 { height: 80%; }
.aside-chart__bar--h3 { height: 40%; }
.aside-chart__bar--h4 { height: 95%; }
.aside-chart__bar--h5 { height: 62%; }
.aside-chart__bar--h6 { height: 14%; }
.aside-chart__bar--h7 { height: 8%; }

/* ============================================================
   Offline / fallback sheet (light theme, print-friendly)
   ============================================================ */
.fallback-toolbar { display: flex; align-items: center; gap: 16px; padding: 14px 28px; border-bottom: 1px solid #E2E0DB; background: #fff; }
.fallback-body { max-width: 1180px; margin: 0 auto; padding: 36px 28px 64px; }

.offline-banner { background: #FBF4EC; border: 1px solid #EAD9C4; border-radius: 10px; padding: 16px 18px; margin-bottom: 24px; }
.offline-banner__title { font-size: 13.5px; font-weight: 700; color: #7A5A30; margin-bottom: 8px; }
.offline-banner__list { margin: 0; padding-left: 18px; font-size: 13px; color: #7A5A30; line-height: 1.65; }

.fallback-h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; color: #1B1B19; }
.fallback-meta { font-size: 14px; color: #6B6B66; margin: 0 0 2px; }
.fallback-meta--last { margin: 0 0 20px; }

.sheet-table { width: 100%; border-collapse: collapse; font-size: 12px; color: #1B1B19; }
.sheet-table__head-row { background: #F4F2ED; }
.sheet-table__th { text-align: left; padding: 9px 10px; border: 1px solid #E2E0DB; font-weight: 600; white-space: nowrap; }
.sheet-table__th--mono { font-family: 'IBM Plex Mono', monospace; }
.sheet-table__th--job { white-space: normal; }
.sheet-table__th--day { padding: 9px 4px; font-family: 'IBM Plex Mono', monospace; width: 46px; white-space: normal; }
.sheet-table__th--total { padding: 9px 6px; font-family: 'IBM Plex Mono', monospace; width: 54px; white-space: normal; }
.sheet-table__td { padding: 7px 10px; border: 1px solid #E2E0DB; white-space: nowrap; }
.sheet-table__td--job { white-space: normal; }
.sheet-table__td--mono { font-family: 'IBM Plex Mono', monospace; color: #6B6B66; }
.sheet-table__td--func { color: #6B6B66; }
.sheet-table__td--cell { padding: 0; background: #fff; height: 30px; }
.sheet-table__td--total { padding: 0; background: #FBFAF8; height: 30px; }

.badge-kind-light { font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 5px; border-radius: 4px; margin-right: 7px; }
.badge-kind-light--dept { color: #7A6A4A; background: #F3EEE3; }
.badge-kind-light--client { color: #3E6491; background: #EEF2F7; }

/* ============================================================
   App shell (header, week nav, calendar, profile)
   ============================================================ */
.app-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 12px 28px; background: rgba(15, 7, 26, .88); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.app-header__brand { display: flex; align-items: center; gap: 9px; }
.app-header__logo { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; }
.app-header__title { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.app-header__divider { width: 1px; height: 22px; background: rgba(255, 255, 255, .08); }
.app-header__spacer { flex: 1; }

.week-nav { position: relative; display: flex; align-items: center; gap: 10px; }
.week-nav__arrow { color: rgba(255, 255, 255, .45); font-size: 16px; cursor: pointer; user-select: none; }
.week-nav__label { font-size: 13.5px; font-weight: 600; font-family: 'IBM Plex Mono', monospace; cursor: pointer; }

.calendar-popover { position: absolute; top: 100%; left: 0; z-index: 60; width: 280px; background: #1A1027; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; box-shadow: 0 14px 36px -14px rgba(124, 58, 237, .35); padding: 14px; margin-top: 8px; }
.calendar-popover__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.calendar-popover__nav-btn { border: none; background: transparent; color: rgba(255, 255, 255, .45); font-size: 15px; cursor: pointer; padding: 2px 6px; }
.calendar-popover__month { font-size: 13px; font-weight: 700; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calendar-grid--weekdays { margin-bottom: 4px; }
.calendar-weekday { text-align: center; font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, .45); }
.cal-day { padding: 7px 0; text-align: center; border-radius: 7px; cursor: pointer; font-size: 12.5px; color: #FFFFFF; }
.cal-day--out { color: rgba(255, 255, 255, .3); }
.cal-day--selected { background: var(--accent); color: #fff; font-weight: 600; }
.cal-day--today-ring { box-shadow: inset 0 0 0 1.5px var(--accent); }

.layout-switch { display: flex; align-items: center; gap: 8px; }
.layout-switch__label { font-size: 11.5px; color: rgba(255, 255, 255, .45); font-weight: 600; }

.profile { display: flex; align-items: center; gap: 9px; }
.profile__info { text-align: right; line-height: 1.25; }
.profile__name { font-size: 12.5px; font-weight: 600; color: #FFFFFF; }
.profile__role { font-size: 11px; color: rgba(255, 255, 255, .45); }
.profile__avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #C4B5FD; cursor: pointer; }

/* ============================================================
   Main content / status pill / quick-add favorites
   ============================================================ */
.content { max-width: 1240px; margin: 0 auto; padding: 28px; }
.review-content { max-width: 1000px; margin: 0 auto; padding: 28px; }

.workspace { display: block; }
.workspace--split { display: flex; gap: 22px; align-items: flex-start; }
.grid-pane { flex: 1; min-width: 0; }
.aside-sticky { width: 312px; flex: none; position: sticky; top: 88px; }

.page-head { margin-bottom: 18px; }
.page-title { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 3px; }
.page-subtitle { font-size: 14px; color: #C4B5FD; margin: 0; }

.status-pill { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 9px; }
.status-pill__label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.status-pill__note { font-size: 12.5px; color: rgba(255, 255, 255, .65); }

.review-status-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; }

.status--submitted { background: rgba(124, 58, 237, .15); }
.status--submitted .status-pill__label { color: #A855F7; }
.status--submitted.review-status-tag { color: #A855F7; }
.status--approved { background: rgba(52, 211, 153, .15); }
.status--approved .status-pill__label { color: #34D399; }
.status--approved.review-status-tag { color: #34D399; }
.status--rejected { background: rgba(242, 153, 74, .15); }
.status--rejected .status-pill__label { color: #F2994A; }
.status--rejected.review-status-tag { color: #F2994A; }

.role-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; margin-right: 10px; }
.role-tag--employee { background: rgba(255, 255, 255, .08); color: #C4B5FD; }
.role-tag--approver { background: rgba(124, 58, 237, .15); color: #A855F7; }
.role-tag--admin { background: rgba(52, 211, 153, .15); color: #34D399; }

.quickadd-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.quickadd-row__label { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .45); margin-right: 2px; }
.fav-chip { display: flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; background: #1A1027; cursor: pointer; font-size: 12.5px; }
.fav-chip__plus { color: var(--accent); font-weight: 700; font-size: 14px; line-height: 1; }
.fav-chip__name { font-weight: 600; color: #FFFFFF; }
.fav-chip__client { color: rgba(255, 255, 255, .45); }

/* ============================================================
   Status colors (over target / reached / on-track) — shared
   ============================================================ */
.status-text--over { color: #F2994A; }
.status-text--reached { color: #34D399; }
.status-text--progress { color: #A855F7; }
.status-fill--over { background: #F2994A; }
.status-fill--reached { background: #34D399; }
.status-fill--progress { background: #A855F7; }

/* ============================================================
   Guided panel (direction B) progress ring + bars
   ============================================================ */
.guided-card { display: flex; align-items: center; gap: 28px; padding: 24px 28px; background: #1A1027; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; margin-bottom: 22px; }
.ring-wrap { position: relative; width: 132px; height: 132px; flex: none; }
.ring-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-total { font-size: 28px; font-weight: 700; font-family: 'IBM Plex Mono', monospace; letter-spacing: -0.02em; }
.ring-target { font-size: 11px; color: rgba(255, 255, 255, .45); font-family: 'IBM Plex Mono', monospace; }
.guided-body { flex: 1; }
.guided-status { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.guided-copy { font-size: 14px; color: #C4B5FD; margin: 0 0 16px; line-height: 1.5; }
.guided-bars { display: flex; gap: 7px; align-items: flex-end; height: 46px; }

.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bar-col--tall { gap: 6px; }
.bar-col__value { font-size: 10px; color: rgba(255, 255, 255, .45); font-family: 'IBM Plex Mono', monospace; }
.bar-col__track { width: 100%; height: 32px; display: flex; align-items: flex-end; }
.bar-col__track--tall { height: 46px; }
.bar-fill-v { width: 100%; height: var(--pct); background: rgba(124, 58, 237, .3); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-fill-v--today { background: var(--accent); }
.bar-col__label { font-size: 10px; color: rgba(255, 255, 255, .45); font-family: 'IBM Plex Mono', monospace; }

/* ============================================================
   Timesheet grid (sections, jobs, cells)
   ============================================================ */
.grid-card { background: #1A1027; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; overflow-x: hidden; overflow-y: visible; }
.row-grid { grid-template-columns: var(--row-grid); }

.section { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.section__head { display: flex; align-items: center; gap: 11px; padding: 13px 18px; cursor: pointer; background: rgba(255, 255, 255, .04); }
.section__caret { color: rgba(255, 255, 255, .45); font-size: 11px; width: 12px; display: inline-block; }
.section__name { font-weight: 600; font-size: 14.5px; }
.section__code { font-size: 12px; color: rgba(255, 255, 255, .4); font-family: 'IBM Plex Mono', monospace; }
.spacer { flex: 1; }
.section__job-count { font-size: 12px; color: rgba(255, 255, 255, .45); }
.section__subtotal { font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; font-weight: 600; min-width: 54px; text-align: right; }
.section__body { padding: 4px 14px 14px; }

.badge-kind { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; }
.badge-kind--dept { color: #C4B5FD; background: rgba(255, 255, 255, .08); }
.badge-kind--client { color: var(--accent); background: rgba(168, 85, 247, .15); }
.prospect-badge { font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; color: #FBBF24; background: rgba(245, 158, 11, .15); }

.func-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px 4px; flex-wrap: wrap; }
.func-row__label { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .45); text-transform: uppercase; letter-spacing: 0.04em; }
.func-select { border: 1px solid rgba(255, 255, 255, .08); border-radius: 7px; padding: 5px 9px; font-size: 12.5px; font-weight: 500; color: #FFFFFF; background: rgba(124, 58, 237, .12); outline: none; font-family: inherit; cursor: pointer; }
.func-row__hint { font-size: 11px; color: rgba(255, 255, 255, .4); }

.col-headers { display: grid; gap: 8px; align-items: center; padding: 6px 4px 8px; }
.col-headers__label { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .45); text-transform: uppercase; letter-spacing: 0.04em; }
.col-headers__label--center { text-align: center; }
.col-headers__day { text-align: center; }
.col-headers__day-name { font-size: 11px; font-weight: 600; color: #C4B5FD; }
.col-headers__day-name--today { color: var(--accent); }
.col-headers__day-date { font-size: 10px; color: rgba(255, 255, 255, .4); font-family: 'IBM Plex Mono', monospace; }

.job-row { padding: 2px 0; }
.job-row__grid { display: grid; gap: 8px; align-items: center; }
.job-row__name-wrap { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
.job-name-input { flex: 1; min-width: 0; border: none; border-bottom: 1.5px solid transparent; background: transparent; font-size: 14px; color: #FFFFFF; font-weight: 500; outline: none; padding: 6px 4px; }
.job-name-input--unresolved { border-bottom: 1.5px dashed #F2994A; }
.unmatched-badge { font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; color: #fff; background: #F2994A; flex: none; white-space: nowrap; }

.note-btn { border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .45); border-radius: 6px; font-size: 10.5px; font-weight: 600; cursor: pointer; padding: 4px 7px; flex: none; }
.note-btn--active { border-color: var(--accent); background: rgba(124, 58, 237, .12); color: var(--accent); }

.suggestions-popover { position: absolute; top: 100%; left: 0; z-index: 45; width: 340px; max-width: 90vw; background: #1A1027; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; box-shadow: 0 14px 36px -14px rgba(124, 58, 237, .35); padding: 5px; margin-top: 5px; }
.suggestions-popover__label { font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, .45); text-transform: uppercase; letter-spacing: 0.05em; padding: 6px 9px 4px; }
.suggestion-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.suggestion-item:hover { background: rgba(255, 255, 255, .04); }
.suggestion-item__name { font-weight: 600; font-size: 13px; color: #FFFFFF; }
.suggestion-item__code { font-size: 11px; color: rgba(255, 255, 255, .45); font-family: 'IBM Plex Mono', monospace; }
.suggestion-item__client { font-size: 11.5px; color: rgba(255, 255, 255, .4); }

.cell-input { width: 100%; border: 1px solid rgba(255, 255, 255, .08); border-radius: 7px; padding: 8px 4px; text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: #FFFFFF; background: rgba(255, 255, 255, .04); outline: none; }
.cell-input--weekend { background: rgba(255, 255, 255, .02); }
.cell-input--today { background: rgba(124, 58, 237, .14); border-color: var(--accent); }

.row-total { font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 600; text-align: center; color: #FFFFFF; }
.row-total--empty { color: rgba(255, 255, 255, .35); }
.row-remove-btn { border: none; background: transparent; color: rgba(255, 255, 255, .35); cursor: pointer; font-size: 16px; line-height: 1; padding: 4px; }

.note-input-wrap { padding: 4px 4px 8px; }
.note-input { width: 100%; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .04); border-radius: 8px; font-size: 13px; color: rgba(255, 255, 255, .85); outline: none; padding: 8px 10px; }

.section__footer { display: grid; gap: 8px; align-items: center; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 6px; padding-top: 9px; }
.add-job-btn { justify-self: start; border: none; background: transparent; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px; }
.section__footer-cell { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: rgba(255, 255, 255, .45); text-align: center; }
.section__footer-total { font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; font-weight: 700; text-align: center; }

.daily-total-row { display: grid; gap: 8px; align-items: center; padding: 14px 18px; background: rgba(255, 255, 255, .04); }
.daily-total-row__label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.daily-total-cell { font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 600; text-align: center; color: rgba(255, 255, 255, .35); }
.daily-total-cell--has-value { color: #FFFFFF; }
.daily-total-cell--today { color: var(--accent); }
.daily-total-sum { font-family: 'IBM Plex Mono', monospace; font-size: 16px; font-weight: 700; text-align: center; }

/* ============================================================
   Add client / department panel
   ============================================================ */
.add-section { position: relative; margin-top: 14px; }
.add-buttons-row { display: flex; gap: 10px; }
.add-panel { background: #1A1027; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; box-shadow: 0 12px 32px -16px rgba(124, 58, 237, .3); padding: 16px; max-width: 540px; }
.add-panel__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.add-panel__title { font-size: 13.5px; font-weight: 700; }
.add-panel__close { border: none; background: transparent; color: rgba(255, 255, 255, .45); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.add-panel__search { width: 100%; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 9px; font-size: 14px; color: #FFFFFF; background: rgba(255, 255, 255, .04); outline: none; margin-bottom: 10px; }
.add-panel__list { display: flex; flex-direction: column; gap: 2px; max-height: 248px; overflow: auto; }

.client-match-btn { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: none; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; width: 100%; }
.client-match-btn:hover { background: rgba(255, 255, 255, .04); }
.client-match-btn__name { font-weight: 600; font-size: 13.5px; color: #FFFFFF; }
.client-match-btn__code { font-size: 11px; color: rgba(255, 255, 255, .45); font-family: 'IBM Plex Mono', monospace; }
.client-match-btn__added { font-size: 11.5px; color: rgba(255, 255, 255, .4); }

.create-client-btn { display: flex; align-items: center; gap: 8px; padding: 10px; border: none; border-top: 1px solid rgba(255, 255, 255, .08); background: transparent; cursor: pointer; text-align: left; width: 100%; margin-top: 4px; }
.create-client-btn:hover { background: rgba(124, 58, 237, .12); }
.create-client-btn__plus { color: var(--accent); font-size: 15px; font-weight: 700; line-height: 1; }
.create-client-btn__label { font-size: 13.5px; color: #FFFFFF; }
.create-client-btn__name { font-weight: 700; }
.create-client-btn__hint { font-size: 11px; color: rgba(255, 255, 255, .45); }

/* ============================================================
   Ledger panel (direction A) stat cards + sidebar (direction C)
   ============================================================ */
.stat-grid { display: grid; grid-template-columns: 0.9fr 1.1fr 1.1fr; gap: 16px; margin-top: 18px; }
.stat-card, .side-card { background: #1A1027; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 20px; }
.side-card { margin-bottom: 14px; }
.side-card:last-child { margin-bottom: 0; }

.card-kicker { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .45); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.card-kicker--14 { margin-bottom: 14px; }
.card-kicker--16 { margin-bottom: 16px; }

.card-value { font-size: 34px; font-weight: 700; font-family: 'IBM Plex Mono', monospace; letter-spacing: -0.02em; line-height: 1; }
.card-value--sm { font-size: 32px; }
.card-value__unit { font-size: 16px; color: rgba(255, 255, 255, .45); font-weight: 500; }
.card-value__unit--sm { font-size: 15px; }

.progress-track { height: 7px; background: rgba(255, 255, 255, .08); border-radius: 4px; margin: 16px 0 9px; overflow: hidden; }
.progress-track--tight { margin: 14px 0 8px; }
.progress-fill { height: 100%; width: var(--pct); border-radius: 4px; }
.card-status { font-size: 12.5px; font-weight: 600; }

.day-chart { display: flex; gap: 9px; align-items: flex-end; height: 74px; }

.breakdown-list { display: flex; flex-direction: column; gap: 11px; }
.breakdown-row__head { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.breakdown-row__label { font-weight: 500; color: rgba(255, 255, 255, .85); }
.breakdown-row__value { font-family: 'IBM Plex Mono', monospace; color: #C4B5FD; }
.breakdown-track { height: 6px; background: rgba(255, 255, 255, .08); border-radius: 3px; overflow: hidden; }
.breakdown-fill { height: 100%; width: var(--pct); border-radius: 3px; background: var(--accent); }
.breakdown-fill--dept { background: rgba(255, 255, 255, .25); }

.side-bar-row { display: flex; align-items: center; gap: 10px; }
.side-bar-row__label { width: 28px; font-size: 11px; color: rgba(255, 255, 255, .45); font-family: 'IBM Plex Mono', monospace; }
.side-bar-row__track { flex: 1; height: 6px; background: rgba(255, 255, 255, .08); border-radius: 3px; overflow: hidden; }
.bar-fill-h { height: 100%; width: var(--pct); background: rgba(124, 58, 237, .3); border-radius: 3px; }
.bar-fill-h--today { background: var(--accent); }
.side-bar-row__value { width: 30px; text-align: right; font-size: 11.5px; font-family: 'IBM Plex Mono', monospace; color: #C4B5FD; }

/* ============================================================
   Toasts
   ============================================================ */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 12px 18px; color: #fff; border-radius: 10px; font-size: 13.5px; font-weight: 500; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6); animation: tin 0.25s ease; z-index: 50; }
.toast--accent { background: var(--accent); }
.toast--error { background: #F2994A; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); }
.toast__check { color: #34D399; font-weight: 700; }

/* ============================================================
   Review submissions (approvals) screen
   ============================================================ */
.loading-label { font-size: 12.5px; color: rgba(255, 255, 255, .45); }
.alert--error { padding: 10px 14px; border-radius: 9px; background: rgba(242, 153, 74, .15); color: #F2994A; font-size: 13px; margin-bottom: 14px; }
.empty-state { padding: 32px; text-align: center; color: rgba(255, 255, 255, .45); font-size: 13.5px; background: #1A1027; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; }

.review-list { display: flex; flex-direction: column; gap: 10px; }
.review-row { background: #1A1027; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; overflow: hidden; }
.review-row__head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; }
.review-row__caret { color: rgba(255, 255, 255, .45); font-size: 11px; width: 12px; }
.review-row__info { flex: 1; min-width: 0; }
.review-row__name { font-weight: 600; font-size: 14.5px; }
.review-row__meta { font-size: 12px; color: rgba(255, 255, 255, .45); }
.review-row__hours { font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 600; min-width: 54px; text-align: right; }
.review-row__body { padding: 0 18px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.review-row__loading { padding: 16px 4px; color: rgba(255, 255, 255, .45); font-size: 12.5px; }
.review-row__reviewed-note { font-size: 12px; color: rgba(255, 255, 255, .45); margin-top: 4px; }

.review-entries { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.review-entry { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.review-entry__main { flex: 1; min-width: 0; }
.review-entry__title { font-size: 13px; font-weight: 600; }
.review-entry__days { font-size: 11.5px; color: rgba(255, 255, 255, .45); font-family: 'IBM Plex Mono', monospace; }
.review-entry__note { font-size: 11.5px; color: #C4B5FD; margin-top: 3px; }
.review-entry__total { font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; font-weight: 600; }

.review-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.review-actions__note-input { flex: 1; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .04); border-radius: 8px; font-size: 13px; color: rgba(255, 255, 255, .85); outline: none; padding: 8px 10px; }
