:root {
  --ink: #2e5d98;
  --ink-2: #1A6BE1;
  --pine: #4590FF;
  --green: #84B7FF;
  --lime: #dcecff;
  --cream: #FFFCF2;
  --paper: #FFFFFF;
  --line: #dce4fb;
  --muted: #657b9e;
  --soft: #f2f7ff;
  --gold: #77443D;
  --rose: #77443D;
  --navy: #1A6BE1;
  --shadow: 0 18px 50px rgba(69, 144, 255, .12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { background: var(--cream); }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 16px 18px; display: flex; flex-direction: column; color: #e9f5ed; background: var(--ink); overflow-y: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 0 10px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.brand em { display: block; color: var(--pine); font-family: Inter, ui-sans-serif, sans-serif; font-size: 7px; font-style: normal; letter-spacing: .22em; line-height: 1; margin-top: 3px; }
.sidebar .brand { color: #f9fff8; }
.sidebar .brand em { color: var(--lime); }
.main-nav { display: grid; gap: 6px; margin-top: 54px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 13px; padding: 12px 13px; border: 0; border-radius: 12px; color: #9eb9ad; background: transparent; text-align: left; font-size: 14px; transition: .18s ease; }
.nav-item span { display: grid; place-items: center; width: 20px; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.is-active { color: var(--ink); background: var(--lime); font-weight: 700; }
.sidebar-footer { margin-top: auto; padding-top: 25px; }
.profile-card { display: flex; align-items: center; gap: 10px; padding: 13px 10px; margin: 0 4px; border-top: 1px solid rgba(255,255,255,.11); }
.profile-avatar, .audit-avatar { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--ink); background: #f3d79a; font-weight: 800; }
.profile-card strong, .profile-card small { display: block; }
.profile-card strong { font-size: 13px; }
.profile-card small { color: #9eb9ad; font-size: 11px; margin-top: 2px; }
.logout-button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: 10px; color: #9eb9ad; background: transparent; text-align: left; }
.logout-button:hover { color: white; background: rgba(255,255,255,.06); }

.content { min-width: 0; padding: 0 44px 48px; }
.topbar { min-height: 114px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 7px; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .14em; line-height: 1.25; }
.eyebrow--dark { color: var(--pine); }
.topbar h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 27px; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.topbar__right { display: flex; align-items: center; gap: 15px; }
.today-copy { display: grid; text-align: right; }
.today-copy b { font-size: 13px; }
.today-copy span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.date-control { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--pine); background: var(--paper); }
.date-control svg { width: 16px; }
.date-control input { border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; font-weight: 700; }
.topbar--range { min-height: 126px; }
.topbar__right--range { min-width: 0; }
.reference-range { display: grid; grid-template-columns: repeat(2, minmax(138px, 1fr)); gap: 8px; }
.reference-date { display: grid; gap: 3px; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.reference-date span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.reference-date input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; font-weight: 700; }
.page-view { max-width: 1460px; margin: 0 auto; padding-top: 31px; }

.hero-row, .daily-intro, .audit-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.hero-row h2, .daily-intro h2, .audit-intro h2, .report-controls h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; letter-spacing: -.03em; }
.hero-row .muted, .daily-intro .muted, .audit-intro .muted { margin: 7px 0 0; }
.muted { color: var(--muted); line-height: 1.55; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 9px 14px; border: 1px solid transparent; border-radius: 10px; font-weight: 750; font-size: 12px; white-space: nowrap; transition: .16s ease; }
.button svg { width: 15px; height: 15px; }
.button--primary { color: white; background: var(--pine); box-shadow: 0 5px 13px rgba(30, 91, 72, .18); }
.button--primary:hover { background: #174837; transform: translateY(-1px); }
.button--secondary { color: var(--pine); border-color: #b7ccbd; background: #f5faf3; }
.button--secondary:hover { border-color: var(--pine); background: #eaf4e9; }
.button--light { color: var(--ink); background: var(--lime); }
.button--light:hover { background: #b8e683; }
.button--wide { width: 100%; min-height: 46px; margin-top: 7px; }
.button--danger-ghost { color: var(--rose); border-color: #f0c6c4; background: #fff8f7; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi-card { position: relative; overflow: hidden; min-height: 139px; padding: 20px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 4px 18px rgba(17, 48, 40, .035); }
.kpi-card::after { content: ""; position: absolute; inset: auto -20px -48px auto; width: 112px; height: 112px; border-radius: 50%; opacity: .13; background: currentColor; }
.kpi-card p, .kpi-card small { display: block; position: relative; z-index: 1; margin: 0; }
.kpi-card p { color: var(--muted); font-size: 12px; font-weight: 700; }
.kpi-card strong { display: block; position: relative; z-index: 1; margin: 11px 0 7px; color: var(--ink); font-family: Georgia, serif; font-size: 26px; font-weight: 600; letter-spacing: -.035em; }
.kpi-card small { color: var(--muted); font-size: 11px; }
.kpi-icon { position: absolute; top: 17px; right: 16px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; font-size: 16px; font-weight: 800; }
.kpi-card--green { color: var(--pine); border-top: 3px solid var(--green); }
.kpi-card--green .kpi-icon { color: #247a51; background: #e2f3e8; }
.kpi-card--navy { color: var(--navy); border-top: 3px solid #779fc5; }
.kpi-card--navy .kpi-icon { color: var(--navy); background: #e7eff8; }
.kpi-card--amber { color: #b67b25; border-top: 3px solid var(--gold); }
.kpi-card--amber .kpi-icon { color: #aa7222; background: #fbf0d9; }
.kpi-card--rose { color: var(--rose); border-top: 3px solid #e69491; }
.kpi-card--rose .kpi-icon { color: #bb5452; background: #fff0ef; }

.dashboard-grid, .reports-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); gap: 16px; }
.panel { min-width: 0; padding: 21px; border: 1px solid rgba(221,224,215,.7); border-radius: var(--radius); background: var(--paper); box-shadow: 0 4px 18px rgba(17,48,40,.027); }
.panel--wide { min-width: 0; }
.dashboard-grid .panel--wide { grid-column: 1; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.panel h3 { margin: 0; font-family: Georgia, serif; font-size: 19px; font-weight: 500; letter-spacing: -.025em; }
.legend-dot { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.legend-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 2px 0; border: 0; color: var(--pine); background: transparent; font-size: 11px; font-weight: 800; }
.text-button svg { width: 14px; }
.trend-chart { display: flex; align-items: flex-end; gap: 7px; height: 193px; padding: 10px 2px 0; border-bottom: 1px solid var(--line); }
.trend-bar { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.trend-bar i { width: min(24px, 80%); display: block; border-radius: 6px 6px 1px 1px; background: linear-gradient(180deg, var(--green), var(--pine)); transition: .16s ease; }
.trend-bar small { position: absolute; bottom: -21px; color: var(--muted); font-size: 9px; }
.trend-bar__tooltip { position: absolute; z-index: 2; top: 0; display: none; width: max-content; padding: 5px 8px; border-radius: 6px; color: white; background: var(--ink); font-size: 10px; transform: translateY(-4px); }
.trend-bar:hover i { filter: brightness(1.12); transform: scaleY(1.02); transform-origin: bottom; }
.trend-bar:hover .trend-bar__tooltip { display: block; }
.channels-panel { display: flex; flex-direction: column; }
.channel-ring { width: 132px; height: 132px; display: grid; place-items: center; margin: 1px auto 18px; border: 17px solid #dcecdf; border-right-color: var(--pine); border-bottom-color: var(--lime); border-radius: 50%; transform: rotate(-28deg); }
.channel-ring__center { display: grid; place-items: center; text-align: center; transform: rotate(28deg); }
.channel-ring__center strong { font-family: Georgia, serif; font-size: 18px; letter-spacing: -.03em; }
.channel-ring__center span { color: var(--muted); font-size: 10px; }
.channel-list { display: grid; gap: 10px; margin-top: auto; }
.channel-list > div { display: grid; grid-template-columns: 12px 1fr auto 29px; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.channel-list b { color: var(--ink); font-size: 12px; }
.channel-list strong { color: var(--ink); font-size: 12px; }
.channel-list small { text-align: right; }
.channel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pine); }
.channel-dot--wolt { background: var(--lime); }.channel-dot--foodini { background: var(--gold); }
.recent-list { display: grid; }
.recent-row { display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid var(--line); }
.recent-row:first-child { border-top: 0; padding-top: 0; }
.recent-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--pine); background: var(--soft); font-size: 13px; }
.recent-row b, .recent-row small { display: block; }
.recent-row b { font-size: 12px; }.recent-row small { overflow: hidden; max-width: 230px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }.recent-row strong { font-size: 12px; }
.closing-panel { color: #edf7f0; border: 0; background: var(--ink); background-image: radial-gradient(circle at 110% 0, rgba(167,215,110,.3), transparent 36%); }
.closing-panel .eyebrow { color: var(--lime); }.closing-panel h3 { margin: 7px 0; color: white; font-family: Georgia, serif; font-size: 29px; }.closing-panel p:not(.eyebrow) { max-width: 295px; margin: 0 0 18px; color: #b3cabb; font-size: 12px; line-height: 1.6; }
.empty-state { min-height: 110px; display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; }

.daily-intro { align-items: flex-end; }.daily-total { min-width: 154px; padding: 12px 16px; border-radius: 13px; color: var(--ink); background: #e9f2de; }.daily-total span, .daily-total strong { display: block; }.daily-total span { color: var(--pine); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }.daily-total strong { margin-top: 3px; font-family: Georgia, serif; font-size: 21px; }
.channel-editor { display: grid; grid-template-columns: 150px 150px minmax(180px, 1fr); gap: 15px; align-items: end; margin-bottom: 33px; }.channel-editor .panel-head { grid-column: 1 / -1; margin-bottom: 0; }.channel-editor .panel-head .button { margin-left: auto; }.channel-editor label { display: grid; gap: 6px; }.channel-editor label span, .modal-form label > span { color: var(--muted); font-size: 11px; font-weight: 750; }.channel-editor input, .modal-form input, .modal-form select, .modal-form textarea { width: 100%; border: 1px solid #dce3da; border-radius: 9px; outline: 0; color: var(--ink); background: #fcfdf9; transition: .15s; }.channel-editor input { height: 39px; padding: 0 10px; }.channel-editor small { color: var(--muted); font-size: 9px; }.channel-editor input:focus, .modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(30,91,72,.1); }.channel-editor__note { min-width: 0; }
.daily-section { margin-top: 28px; }.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 14px; }.section-head h2 { margin: 0; font-family: Georgia, serif; font-size: 22px; font-weight: 500; letter-spacing: -.025em; }.section-total { padding: 5px 9px; border-radius: 99px; color: var(--pine); background: #e5f2e4; font-size: 10px; font-weight: 800; }
.waiter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }.waiter-card { min-width: 0; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 13px; border: 1px solid #dfe5dc; border-radius: 14px; color: var(--ink); background: var(--paper); text-align: left; transition: .16s; }.waiter-card:hover { border-color: #a7c9ae; box-shadow: 0 7px 18px rgba(18,50,40,.06); transform: translateY(-1px); }.waiter-card--filled { border-color: #cfe0ce; background: #fbfdf9; }.waiter-card__avatar { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; color: var(--pine); background: #e2f0e0; font-size: 13px; font-weight: 800; }.waiter-card--filled .waiter-card__avatar { color: white; background: var(--pine); }.waiter-card__main { min-width: 0; }.waiter-card__main b, .waiter-card__main small { display: block; }.waiter-card__main b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.waiter-card__main small { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.waiter-card__amount { color: var(--pine); font-size: 12px; font-weight: 800; }.waiter-card__amount svg { width: 16px; }.waiter-card--add { border-style: dashed; color: var(--pine); background: #f5faf3; }.waiter-card--add .waiter-card__avatar { color: var(--pine); background: #d8edd6; }
.expenses-section { padding-top: 27px; border-top: 1px solid var(--line); }.expense-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; border: 1px solid #e2e9df; border-radius: 12px; overflow: hidden; background: #fbfcf8; }.expense-summary div { padding: 11px 14px; border-left: 1px solid #e2e9df; }.expense-summary div:first-child { border-left: 0; }.expense-summary span, .expense-summary strong { display: block; }.expense-summary span { color: var(--muted); font-size: 10px; }.expense-summary strong { margin-top: 3px; font-family: Georgia, serif; font-size: 17px; font-weight: 600; }
.expense-table-wrap { overflow-x: auto; }.expense-table { width: 100%; border-collapse: collapse; min-width: 630px; }.expense-table th { padding: 0 10px 10px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; }.expense-table td { padding: 12px 10px; border-bottom: 1px solid #edf0eb; color: #475852; font-size: 11px; }.expense-table td:first-child, .expense-table th:first-child { padding-left: 0; }.expense-table td:last-child, .expense-table th:last-child { padding-right: 0; }.expense-table tbody tr:last-child td { border-bottom: 0; }.expense-table td b, .expense-table td small { display: block; }.expense-table td b { color: var(--ink); font-size: 12px; }.expense-table td small { max-width: 250px; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.align-right { text-align: right !important; }.amount-cell { color: var(--ink) !important; font-weight: 800; }.category-chip { display: inline-block; max-width: 130px; overflow: hidden; padding: 4px 7px; border-radius: 99px; color: var(--pine); background: #e8f2e6; font-size: 10px; font-weight: 700; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }.table-actions { white-space: nowrap; }.table-actions button, .icon-button { width: 27px; height: 27px; padding: 0; border: 0; border-radius: 7px; color: var(--muted); background: transparent; }.table-actions button:hover { color: var(--pine); background: #eef5ed; }.table-actions button:last-child:hover { color: var(--rose); background: #fff0ef; }.table-actions svg, .icon-button svg { width: 14px; }.empty-table { padding: 24px !important; color: var(--muted) !important; text-align: center; }

.report-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }.report-controls h2 { font-size: 24px; text-transform: capitalize; }.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: #edf1eb; }.segmented button { padding: 7px 10px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }.segmented button.is-active { color: var(--ink); background: white; box-shadow: 0 2px 5px rgba(17,48,40,.08); }.report-kpis { margin-bottom: 16px; }.reports-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.reports-grid .panel--wide { grid-column: span 2; }.panel-number { padding: 6px 8px; border-radius: 7px; color: var(--pine); background: #edf4e9; font-size: 11px; font-weight: 800; }.bar-list { display: grid; gap: 12px; }.bar-row { position: relative; display: grid; grid-template-columns: 1fr 18px; gap: 4px 7px; }.bar-row__labels { display: flex; justify-content: space-between; gap: 12px; }.bar-row__labels b { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.bar-row__labels strong { flex: 0 0 auto; color: #43554f; font-size: 11px; }.bar-track { grid-column: 1; height: 7px; overflow: hidden; border-radius: 99px; background: #edf0eb; }.bar-fill { display: block; height: 100%; border-radius: inherit; }.bar-fill--green { background: linear-gradient(90deg, var(--lime), var(--pine)); }.bar-fill--rose { background: linear-gradient(90deg, #f0aaa8, var(--rose)); }.bar-fill--navy { background: linear-gradient(90deg, #9bbdd9, var(--navy)); }.bar-row > small { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: #a4afa9; font-size: 10px; font-weight: 800; text-align: right; }.reports-table-panel { margin-top: 16px; }

.audit-intro { margin-bottom: 18px; }.audit-count { min-width: 130px; padding: 14px 16px; border-radius: 14px; color: #edfaf0; background: var(--ink); text-align: center; }.audit-count strong, .audit-count span { display: block; }.audit-count strong { font-family: Georgia, serif; font-size: 25px; }.audit-count span { margin-top: 2px; color: #b2cab9; font-size: 10px; }.audit-filter { display: flex; align-items: center; gap: 15px; padding: 12px 16px; margin-bottom: 20px; }.filter-label { color: var(--muted); font-size: 11px; font-weight: 750; }.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }.filter-pills button { padding: 6px 10px; border: 1px solid #dfe6dd; border-radius: 99px; color: var(--muted); background: white; font-size: 11px; font-weight: 750; }.filter-pills button.is-active { border-color: var(--pine); color: white; background: var(--pine); }.audit-list { display: grid; max-width: 900px; }.audit-item { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 12px; min-height: 85px; }.audit-item:not(:last-child) .audit-item__rail::after { content: ""; position: absolute; top: 37px; bottom: -2px; left: 16px; width: 1px; background: #d8e3d6; }.audit-item__rail { position: relative; }.audit-avatar { position: relative; z-index: 1; width: 33px; height: 33px; color: var(--pine); background: #dbefdc; font-size: 12px; }.audit-item__content { padding: 0 0 20px; }.audit-item__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.audit-item__head div { display: flex; gap: 7px; }.audit-item__head b { font-size: 12px; }.audit-item__head span, .audit-item time { color: var(--muted); font-size: 11px; }.audit-item p { margin: 5px 0 8px; color: #566861; font-size: 12px; }.audit-change { display: flex; flex-wrap: wrap; gap: 8px; }.audit-change span { display: grid; gap: 2px; padding: 5px 8px; border-radius: 7px; color: #62736c; background: #f0f4ee; font-size: 10px; }.audit-change small { color: var(--pine); font-size: 9px; font-weight: 800; text-transform: uppercase; }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(12, 35, 28, .44); backdrop-filter: blur(2px); }.modal { position: fixed; z-index: 21; top: 50%; left: 50%; width: min(530px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 23px; border-radius: 19px; background: var(--paper); box-shadow: 0 24px 70px rgba(4, 25, 18, .3); transform: translate(-50%, -50%); }.modal-head { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 20px; }.modal-head h2 { margin: 0; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }.icon-button { color: var(--muted); background: #f1f4ef; }.icon-button:hover { color: var(--ink); }.modal-form { display: grid; gap: 14px; }.modal-form label { display: grid; gap: 6px; }.modal-form input, .modal-form select { height: 40px; padding: 0 10px; }.modal-form textarea { min-height: 78px; padding: 10px; resize: vertical; }.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }.modal-total { display: flex; justify-content: space-between; align-items: center; padding: 11px 13px; border-radius: 10px; background: #eaf4e8; }.modal-total span { color: var(--pine); font-size: 11px; font-weight: 800; }.modal-total strong { font-family: Georgia, serif; font-size: 19px; }.modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(330px, 1.08fr) minmax(400px, .92fr); background: var(--paper); }.login-pitch { position: relative; min-height: 620px; display: flex; flex-direction: column; padding: 42px clamp(35px, 7vw, 120px); overflow: hidden; color: #eff9ef; background: var(--ink); background-image: linear-gradient(145deg, rgba(0,0,0,.04), rgba(102,187,131,.1)); }.login-pitch__glow { position: absolute; top: 15%; right: -13%; width: min(420px, 55vw); aspect-ratio: 1; border: 1px solid rgba(175,218,121,.3); border-radius: 50%; box-shadow: 0 0 0 44px rgba(175,218,121,.04), 0 0 0 94px rgba(175,218,121,.035); }.brand--light { position: relative; z-index: 1; padding: 0; }.login-pitch__copy { position: relative; z-index: 1; max-width: 550px; margin: auto 0; }.login-pitch__copy h1 { margin: 9px 0 19px; color: white; font-family: Georgia, serif; font-size: clamp(38px, 4.1vw, 63px); font-weight: 500; line-height: 1.02; letter-spacing: -.05em; }.login-pitch__copy h1 i { color: var(--lime); font-weight: 400; }.login-pitch__copy > p:last-child { max-width: 475px; color: #b7cbbe; font-size: 15px; line-height: 1.7; }.login-pitch__features { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 20px; color: #c8dbc8; font-size: 12px; font-weight: 700; }.login-pitch__features span { white-space: nowrap; }.login-panel { display: grid; place-items: center; padding: 35px; }.login-box { width: min(395px, 100%); }.login-box h2 { margin: 0; font-family: Georgia, serif; font-size: 30px; font-weight: 500; letter-spacing: -.035em; }.login-box .muted { margin: 8px 0 23px; }.user-pills { display: flex; gap: 7px; margin-bottom: 21px; }.user-pill { padding: 7px 12px; border: 1px solid #dde5da; border-radius: 99px; color: var(--pine); background: #f5faf3; font-size: 11px; font-weight: 800; }.user-pill:hover { border-color: var(--pine); background: #e4f1e1; }.form-stack { display: grid; gap: 14px; }.form-stack label { display: grid; gap: 6px; }.form-stack label span { color: var(--muted); font-size: 11px; font-weight: 750; }.form-stack input { height: 44px; padding: 0 12px; border: 1px solid #dce3da; border-radius: 10px; outline: 0; background: #fdfefa; }.form-stack input:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(30,91,72,.1); }.login-hint { margin: 18px 0 0; color: var(--muted); font-size: 11px; text-align: center; }.login-hint strong { color: var(--pine); }
.toast { position: fixed; z-index: 30; right: 22px; bottom: 22px; max-width: min(370px, calc(100vw - 44px)); padding: 11px 14px; border-radius: 10px; color: #effcf1; background: var(--ink); box-shadow: 0 13px 30px rgba(12,35,28,.2); font-size: 12px; font-weight: 700; animation: toast-in .22s ease-out; }.toast--error { color: #fff5f4; background: #a74845; }@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1120px) { .content { padding-left: 28px; padding-right: 28px; }.waiter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.dashboard-grid { grid-template-columns: minmax(0, 1fr) 330px; } }
@media (max-width: 880px) { .shell { grid-template-columns: 72px minmax(0,1fr); }.sidebar { padding: 20px 10px; }.sidebar .brand { justify-content: center; padding: 0; }.sidebar .brand > span:last-child, .nav-item:not(.is-active)::after, .nav-item { font-size: 0; }.nav-item { justify-content: center; padding: 13px; }.nav-item span { width: auto; }.main-nav { margin-top: 40px; }.profile-card { justify-content: center; padding: 11px 0; }.profile-card div, .logout-button { display: none; }.dashboard-grid { grid-template-columns: 1fr; }.dashboard-grid .panel--wide { grid-column: auto; }.channels-panel { min-height: 330px; }.content { padding: 0 22px 38px; }.kpi-grid { grid-template-columns: repeat(2, 1fr); }.login-page { grid-template-columns: 1fr; }.login-pitch { min-height: 350px; padding: 35px 10vw; }.login-pitch__copy { margin: 45px 0 20px; }.login-panel { padding: 45px 25px; } }
@media (max-width: 620px) { .shell { display: block; }.sidebar { position: static; height: auto; padding: 12px 14px; flex-direction: row; align-items: center; justify-content: space-between; overflow: visible; }.sidebar .brand { justify-content: flex-start; }.sidebar .brand > span:last-child { display: inline-block; }.main-nav { position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); background: var(--ink); box-shadow: 0 -7px 28px rgba(14,35,27,.18); }.nav-item { display: grid; gap: 2px; justify-items: center; padding: 6px 2px; border-radius: 8px; font-size: 9px; }.nav-item:not(.is-active)::after { content: none; }.nav-item span { display: grid; }.sidebar-footer { display: none; }.content { padding: 0 15px 82px; }.topbar { min-height: 80px; }.topbar h1 { font-size: 22px; }.today-copy { display: none; }.date-control { padding: 7px; }.date-control input { width: 115px; }.page-view { padding-top: 22px; }.hero-row, .daily-intro, .audit-intro, .report-controls { align-items: flex-start; flex-direction: column; }.hero-row h2, .daily-intro h2, .audit-intro h2 { font-size: 24px; }.hero-row .button { width: 100%; }.kpi-grid { gap: 9px; }.kpi-card { min-height: 118px; padding: 15px; }.kpi-card strong { margin: 8px 0 5px; font-size: 21px; }.kpi-card small { font-size: 9px; }.kpi-icon { top: 12px; right: 12px; }.daily-total { width: 100%; }.channel-editor { grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }.channel-editor .panel-head { align-items: flex-start; flex-direction: column; }.channel-editor .panel-head .button { margin: 3px 0 0; }.channel-editor__note { grid-column: span 2; }.waiter-grid { grid-template-columns: 1fr; }.section-head { align-items: flex-start; }.section-head .button { padding: 8px 10px; }.expense-summary { grid-template-columns: 1fr; }.expense-summary div { border-top: 1px solid #e2e9df; border-left: 0; }.expense-summary div:first-child { border-top: 0; }.reports-grid { grid-template-columns: 1fr; }.reports-grid .panel--wide { grid-column: auto; }.report-controls { gap: 15px; }.segmented { width: 100%; }.segmented button { flex: 1; padding: 7px 4px; }.audit-filter { align-items: flex-start; flex-direction: column; gap: 8px; }.audit-item__head { align-items: flex-start; flex-direction: column; gap: 3px; }.audit-change { flex-direction: column; }.form-grid { grid-template-columns: 1fr; }.login-pitch { min-height: 330px; padding: 28px 28px; }.login-pitch__copy h1 { font-size: 37px; }.login-pitch__features { gap: 10px; font-size: 10px; }.login-panel { padding: 40px 23px; }.modal { padding: 18px; }.modal-actions { align-items: stretch; flex-direction: column-reverse; }.modal-actions .button { width: 100%; }.modal-actions > span { display: none; } }

@media (max-width: 620px) {
  .main-nav--manager { grid-template-columns: repeat(3, 1fr); }
  .main-nav--viewer { grid-template-columns: repeat(2, 1fr); }
}

/* RAIHA Visual Identity: primary blues, warm cream canvas and sharp display typography. */
body { font-family: Arial, "Helvetica Neue", ui-sans-serif, system-ui, sans-serif; }
.brand { font-family: "Arial Black", Arial, sans-serif; letter-spacing: .06em; }
.brand em { color: var(--pine); font-family: Arial, sans-serif; }
.sidebar { color: #edf3ff; background: var(--ink); background-image: radial-gradient(circle at 120% 0, rgba(69,144,255,.65), transparent 34%); }
.sidebar .brand { color: #fff; }.sidebar .brand em { color: #a9c9ff; }.nav-item { color: #b6c9fa; }.nav-item.is-active { color: #fff; background: var(--pine); }.profile-card { border-top-color: rgba(255,255,255,.18); }.profile-avatar, .audit-avatar { color: #fff; background: var(--pine); }.profile-card small, .logout-button { color: #b6c9fa; }
.topbar h1, .hero-row h2, .daily-intro h2, .audit-intro h2, .report-controls h2, .section-head h2, .panel h3, .modal-head h2, .kpi-card strong, .channel-ring__center strong, .daily-total strong, .expense-summary strong, .closing-panel h3, .login-pitch__copy h1, .login-box h2 { font-family: Arial, "Helvetica Neue", sans-serif; font-weight: 800; letter-spacing: -.045em; }
.eyebrow, .eyebrow--dark { color: var(--pine); }.panel, .kpi-card { border-color: #dce4fb; box-shadow: 0 7px 24px rgba(16,34,160,.055); }.button--primary { background: var(--ink); box-shadow: 0 5px 13px rgba(16,34,160,.21); }.button--primary:hover { background: #0d1976; }.button--secondary { border-color: #b9cdf8; color: var(--ink); background: #f2f6ff; }.button--secondary:hover { border-color: var(--pine); background: #e5eeff; }.button--light { color: #fff; background: var(--pine); }.button--light:hover { background: var(--green); }.button--danger-ghost { color: var(--rose); border-color: #d8bbb6; background: #fff9f6; }
.kpi-card--green { color: var(--pine); border-top-color: var(--green); }.kpi-card--green .kpi-icon { color: var(--pine); background: #e9f1ff; }.kpi-card--navy { color: var(--ink); border-top-color: var(--ink); }.kpi-card--navy .kpi-icon { color: var(--ink); background: #e6eaff; }.kpi-card--amber { color: var(--rose); border-top-color: #a6736c; }.kpi-card--amber .kpi-icon { color: var(--rose); background: #f4e9e4; }.kpi-card--rose { color: var(--rose); border-top-color: var(--rose); }.kpi-card--rose .kpi-icon { color: var(--rose); background: #f4e9e4; }
.trend-chart { margin-top: 13px; }.trend-bar i { background: linear-gradient(180deg, var(--green), var(--ink)); }.legend-dot::before { background: var(--pine); }.trend-comparison { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f8faff; }.trend-comparison > div { padding: 10px 12px; border-left: 1px solid var(--line); }.trend-comparison > div:first-child { border-left: 0; }.trend-comparison span, .trend-comparison strong { display: block; }.trend-comparison span { color: var(--muted); font-size: 10px; font-weight: 700; }.trend-comparison strong { margin-top: 4px; color: var(--ink); font-size: 13px; }.trend-comparison__delta.is-positive { background: #edf4ff; }.trend-comparison__delta.is-negative { background: #fff7f4; }.trend-comparison__delta.is-positive strong { color: var(--pine); }.trend-comparison__delta.is-negative strong { color: var(--rose); }
.channel-ring { border-color: #e0e9ff; border-right-color: var(--pine); border-bottom-color: var(--green); }.channel-dot { background: var(--ink); }.channel-dot--wolt { background: var(--pine); }.channel-dot--foodini { background: var(--green); }.channel-dot--pos { background: var(--rose); }.channel-dot--tips { background: #c89a93; }.channel-list__pos { margin-top: 2px; padding-top: 9px; border-top: 1px dashed var(--line); }.channel-list__tips-row { margin-top: -3px; }.closing-panel { color: #f2f5ff; background: var(--ink); background-image: radial-gradient(circle at 110% 0, rgba(69,144,255,.63), transparent 36%); }.closing-panel .eyebrow { color: #a9c9ff; }.closing-panel p:not(.eyebrow) { color: #c6d4fa; }
.channel-editor { grid-template-columns: 140px minmax(190px, 1fr) 140px minmax(190px, 1fr); }.channel-editor__general-note { grid-column: 1 / -1; }.channel-editor input, .modal-form input, .modal-form select, .modal-form textarea { border-color: #cfdbf7; background: #fbfcff; }.channel-editor input:focus, .modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(26,107,225,.11); }.section-actions { display: flex; align-items: center; gap: 8px; }.button--small { min-height: 31px; padding: 6px 9px; font-size: 10px; }.section-total, .category-chip { color: var(--ink); background: #eaf1ff; }.waiter-card { border-color: #d7e1fa; }.waiter-card--filled { border-color: #b9cff9; background: #fbfcff; }.waiter-card__avatar { color: var(--ink); background: #e8f0ff; }.waiter-card--filled .waiter-card__avatar { background: var(--pine); }.waiter-card--add { color: var(--pine); background: #f5f8ff; }.waiter-card--add .waiter-card__avatar { color: var(--pine); background: #dce9ff; }
.status-chip { display: inline-block; padding: 4px 7px; border-radius: 99px; color: var(--ink); background: #e8f0ff; font-size: 10px; font-weight: 800; white-space: nowrap; }.status-chip--unpaid { color: #77443D; background: #f4e9e4; }.status-chip--paid { color: #1f6b43; background: #e3f5e8; }.status-chip--partial { color: #73621e; background: #fff5ce; }.status-picker { display: grid; gap: 6px; }.status-picker > span { color: var(--muted); font-size: 11px; font-weight: 750; }.status-picker > div { display: inline-flex; width: max-content; padding: 3px; border-radius: 9px; background: #edf2ff; }.status-picker button { padding: 7px 10px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }.status-picker button.is-active { color: #fff; background: var(--ink); box-shadow: 0 2px 5px rgba(16,34,160,.2); }.status-picker button[data-status="Pa paguar"].is-active { background: var(--rose); }
.modal-help { margin: -5px 0 2px; color: var(--muted); font-size: 11px; line-height: 1.5; }.staff-draft-list { display: grid; gap: 7px; max-height: 265px; overflow: auto; padding-right: 2px; }.staff-draft-row { display: grid; grid-template-columns: 30px 1fr 29px; align-items: center; gap: 8px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcff; }.staff-draft-row__avatar { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--pine); font-size: 11px; font-weight: 800; }.staff-draft-row b { font-size: 12px; }.staff-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }.staff-add input { height: 38px; padding: 0 10px; border: 1px solid #cfdbf7; border-radius: 9px; outline: 0; background: #fbfcff; }.staff-add input:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(26,107,225,.11); }
.login-pitch { color: #e8efff; background: var(--ink); background-image: linear-gradient(145deg, rgba(0,0,0,.02), rgba(69,144,255,.42)); }.login-pitch__glow { border-color: rgba(169,201,255,.45); box-shadow: 0 0 0 44px rgba(169,201,255,.05), 0 0 0 94px rgba(169,201,255,.035); }.login-pitch__copy h1 i { color: #a9c9ff; font-weight: 400; }.login-pitch__copy > p:last-child { color: #c7d5fa; }.login-pitch__features { color: #d4e0ff; }.user-pill { border-color: #c9d8fa; color: var(--ink); background: #f3f7ff; }.user-pill:hover { border-color: var(--pine); background: #e8f0ff; }.form-stack input { border-color: #cfdbf7; background: #fbfcff; }.form-stack input:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(26,107,225,.11); }
@media (max-width: 760px) { .channel-editor { grid-template-columns: 1fr 1fr; }.channel-editor__note, .channel-editor__general-note { grid-column: span 2; }.trend-comparison { grid-template-columns: 1fr; }.trend-comparison > div { border-top: 1px solid var(--line); border-left: 0; }.trend-comparison > div:first-child { border-top: 0; } }

/* Lighter RAIHA application palette. The wordmark remains the official #1022A0 artwork. */
.brand { width: max-content; padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: 0 5px 15px rgba(69,144,255,.16); }
.brand-logo { display: block; width: 118px; height: auto; }
.sidebar { color: #fff; background: linear-gradient(155deg, #4590FF 0%, #70ACFF 100%); background-image: linear-gradient(155deg, #4590FF 0%, #70ACFF 100%); }
.sidebar .brand { background: #fff; }.sidebar .brand em { color: var(--pine); }.nav-item { color: #edf5ff; }.nav-item:hover { color: #fff; background: rgba(255,255,255,.16); }.nav-item.is-active { color: #1A6BE1; background: #fff; }.profile-card { border-top-color: rgba(255,255,255,.35); }.profile-avatar, .audit-avatar { color: #1A6BE1; background: #fff; }.profile-card small, .logout-button { color: #edf5ff; }.logout-button:hover { color: #fff; background: rgba(255,255,255,.16); }
.button--primary { color: #fff; background: #4590FF; box-shadow: 0 5px 13px rgba(69,144,255,.2); }.button--primary:hover { background: #1A6BE1; }.button--secondary { color: #2e5d98; border-color: #c9ddff; background: #f4f8ff; }.button--secondary:hover { border-color: #84B7FF; background: #eaf3ff; }.button--light { color: #2e5d98; background: #fff; }.button--light:hover { color: #1A6BE1; background: #f5f9ff; }
.kpi-card--green { color: #4590FF; border-top-color: #84B7FF; }.kpi-card--green .kpi-icon { color: #4590FF; background: #edf5ff; }.kpi-card--navy { color: #2e5d98; border-top-color: #84B7FF; }.kpi-card--navy .kpi-icon { color: #2e5d98; background: #edf5ff; }.kpi-card--amber { color: #77443D; border-top-color: #cda69e; }.kpi-card--rose { color: #77443D; border-top-color: #cda69e; }
.trend-bar i { background: linear-gradient(180deg, #9bc5ff, #4590FF); }.legend-dot::before { background: #4590FF; }.channel-ring { border-color: #e9f2ff; border-right-color: #4590FF; border-bottom-color: #9bc5ff; }.channel-dot { background: #2e5d98; }.channel-dot--wolt { background: #4590FF; }.channel-dot--foodini { background: #84B7FF; }.channel-dot--pos { background: #77443D; }
.closing-panel { color: #2e5d98; border: 1px solid #d4e5ff; background: #edf5ff; background-image: radial-gradient(circle at 110% 0, rgba(132,183,255,.34), transparent 36%); }.closing-panel .eyebrow { color: #4590FF; }.closing-panel h3 { color: #2e5d98; }.closing-panel p:not(.eyebrow) { color: #657b9e; }
.status-picker button.is-active { background: #4590FF; box-shadow: 0 2px 5px rgba(69,144,255,.18); }.status-picker button[data-status="Pa paguar"].is-active { background: #9c7069; }
.login-pitch { color: #fff; background: linear-gradient(145deg, #4590FF 0%, #8abbff 100%); background-image: linear-gradient(145deg, #4590FF 0%, #8abbff 100%); }.login-pitch__glow { border-color: rgba(255,255,255,.45); box-shadow: 0 0 0 44px rgba(255,255,255,.07), 0 0 0 94px rgba(255,255,255,.04); }.login-pitch__copy h1 i { color: #fff; }.login-pitch__copy > p:last-child, .login-pitch__features { color: #f6fbff; }.login-pitch .brand { background: rgba(255,255,255,.97); }

/* Layout safety and adaptive stacking for phones, tablets and desktop. */
html, body { max-width: 100%; overflow-x: hidden; }
.content, .page-view, .panel, .channel-editor, .section-head, .section-actions { min-width: 0; }
.brand { width: 52px; height: 52px; display: grid; place-items: center; padding: 8px; border-radius: 14px; }
.brand-logo { width: 36px; height: 38px; object-fit: contain; }
.login-pitch .brand { width: 62px; height: 62px; }.login-pitch .brand-logo { width: 44px; height: 46px; }
.brand, .brand-logo, .login-pitch__copy h1 i { font-family: Arial, "Helvetica Neue", sans-serif; font-style: normal; }
.user-pills { flex-wrap: wrap; }
.shell--viewer .debt-table th:last-child,
.shell--viewer .debt-table td:last-child { display: none; }
.channel-editor { grid-template-columns: 145px minmax(0, 1fr); gap: 13px; }
.channel-editor__note { min-width: 0; }.channel-editor__general-note { grid-column: 1 / -1; }
.channel-editor input { min-width: 0; }

@media (max-width: 1180px) {
  .content { padding-left: 25px; padding-right: 25px; }
  .channel-editor { grid-template-columns: 132px minmax(0, 1fr); }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr); }
}

@media (max-width: 900px) {
  .shell { grid-template-columns: 72px minmax(0, 1fr); }
  .sidebar { padding: 18px 10px; align-items: center; }
  .sidebar .brand { padding: 7px; width: 48px; height: 48px; }
  .sidebar .brand-logo { width: 33px; height: 35px; }
  .main-nav { width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid .panel--wide { grid-column: auto; }
  .expense-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .channel-editor { grid-template-columns: 1fr; }
  .channel-editor__note, .channel-editor__general-note { grid-column: auto; }
  .channel-editor .panel-head { align-items: flex-start; flex-direction: column; }
  .channel-editor .panel-head .button { margin-left: 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-actions { width: 100%; justify-content: space-between; }
  .expense-table-wrap { overflow: visible; }
  .expense-table, .expense-table tbody, .expense-table tr, .expense-table td { display: block; width: 100%; min-width: 0; }
  .expense-table thead { display: none; }
  .expense-table tbody { display: grid; gap: 11px; }
  .expense-table tbody tr { padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(69,144,255,.06); }
  .expense-table td { display: grid; grid-template-columns: minmax(92px, 36%) minmax(0, 1fr); align-items: center; gap: 8px; padding: 7px 0; border: 0; color: var(--ink); text-align: left !important; }
  .expense-table td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
  .expense-table td[data-label="Furnitori"] { display: block; padding-top: 0; }
  .expense-table td[data-label="Furnitori"]::before { display: block; margin-bottom: 4px; }
  .expense-table td[data-label="Veprime"] { display: flex; align-items: center; justify-content: flex-end; gap: 5px; padding-bottom: 0; }
  .expense-table td[data-label="Veprime"]::before { margin-right: auto; }
  .expense-table td b, .expense-table td small { max-width: none; white-space: normal; }
  .expense-table .empty-table { display: block; padding: 22px 4px !important; border: 0; box-shadow: none; text-align: center !important; }
  .expense-table .empty-table::before { display: none; }
}

@media (max-width: 460px) {
  .content { padding-left: 12px; padding-right: 12px; }
  .topbar { gap: 10px; }.topbar h1 { font-size: 21px; }
  .date-control input { width: 103px; }
  .panel { padding: 15px; }.daily-intro h2 { font-size: 23px; }
  .section-actions { align-items: flex-start; flex-direction: column; }
  .section-actions .button { width: 100%; }
  .expense-table td { grid-template-columns: 1fr; gap: 3px; }
  .expense-table td[data-label="Veprime"] { flex-direction: row; }.expense-table td[data-label="Veprime"]::before { width: 100%; }
}

/* Unified box system: every panel and input keeps its bounds at every width. */
:where(.panel, .kpi-card, .waiter-card, .date-control, .expense-summary, .modal, .channel-entry, .channel-general-note, .staff-draft-row) { max-width: 100%; }
:where(input, select, textarea, button) { min-width: 0; }
.form-grid, .channel-fields, .channel-entry, .channel-general-note, .staff-add, .status-picker, .modal-actions { min-width: 0; }
.channel-editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.channel-editor .panel-head { margin-bottom: 0; }
.channel-editor .panel-head .button { margin-left: auto; }
.channel-fields { display: grid; gap: 12px; }
.channel-entry { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: end; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; }
.channel-entry label, .channel-general-note { display: grid; gap: 6px; min-width: 0; }
.channel-entry__amount input, .channel-entry__note input, .channel-general-note input { width: 100%; min-width: 0; height: 40px; }
.channel-entry__amount small { min-height: 11px; }
.channel-general-note { padding: 0; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.waiter-card__main, .bar-row__labels, .recent-row > div { min-width: 0; }
.topbar, .hero-row, .daily-intro, .panel-head, .section-head { min-width: 0; }

@media (max-width: 700px) {
  .channel-entry { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .channel-editor { gap: 13px; }
  .channel-editor .panel-head .button { margin-left: 0; }
}

@media (max-width: 520px) {
  .topbar { flex-wrap: wrap; padding: 14px 0; }
  .topbar > div:first-child { width: 100%; }
  .channel-entry { padding: 11px; }
  .channel-entry__amount input, .channel-entry__note input, .channel-general-note input { height: 42px; }
  .topbar__right { width: 100%; justify-content: space-between; }
  .date-control { flex: 1; justify-content: center; }
}

/* Final dashboard and daily-channel layout: full-width closing row and bounded fields. */
.dashboard-grid--manager { grid-template-columns: minmax(0, 1fr); }
.dashboard-grid > .closing-panel {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 166px;
}
.closing-panel__copy { min-width: 0; max-width: 570px; }
.closing-panel .button { flex: 0 0 auto; }

.channel-editor { grid-template-columns: minmax(0, 1fr); }
.channel-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.channel-entry {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  padding: 14px;
}
.channel-entry__heading { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.channel-entry__heading b { color: var(--ink); font-size: 14px; }
.channel-entry__heading span { color: var(--muted); font-size: 10px; font-weight: 700; }
.channel-entry__fields { display: grid; grid-template-columns: minmax(116px, .32fr) minmax(0, .68fr); gap: 12px; min-width: 0; }
.channel-entry__amount, .channel-entry__note, .channel-general-note { min-width: 0; }
.channel-entry textarea, .channel-general-note textarea {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid #dce4fb;
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: #fcfdff;
  resize: vertical;
}
.channel-entry textarea:focus, .channel-general-note textarea:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(69, 144, 255, .1); }
.channel-general-note { display: grid; gap: 6px; }

@media (max-width: 700px) {
  .dashboard-grid > .closing-panel { align-items: flex-start; flex-direction: column; gap: 16px; min-height: 0; }
  .dashboard-grid > .closing-panel .button { width: 100%; }
  .channel-entry__fields { grid-template-columns: minmax(0, 1fr); }
  .channel-entry__heading { align-items: flex-start; flex-direction: column; gap: 2px; }
}

/* Keep the desktop navigation colour continuous for the complete page height. */
@media (min-width: 621px) {
  .shell { display: block; background: var(--cream); }
  .content { min-height: 100dvh; margin-left: 72px; background: var(--cream); }
  .sidebar {
    position: fixed;
    z-index: 12;
    top: 0;
    bottom: 0;
    left: 0;
    width: 72px;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 100dvh;
  }
  .sidebar-footer { position: static; width: auto; margin-top: auto; padding-bottom: 8px; }
}

@media (min-width: 901px) {
  .content { margin-left: 244px; }
  .sidebar { width: 244px; }
}

/* Expense search on Reports: filters remain compact and notes stay readable. */
.expense-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  padding: 14px;
  margin: -4px 0 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fbff;
}
.expense-filters label { display: grid; gap: 6px; min-width: 0; }
.expense-filters label > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.expense-filters input, .expense-filters select {
  width: 100%;
  min-width: 0;
  height: 39px;
  padding: 0 10px;
  border: 1px solid #cfdbf7;
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: #fff;
}
.expense-filters input:focus, .expense-filters select:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(69, 144, 255, .1); }
.expense-filters__search { grid-column: span 2; }
.expense-filters__clear { justify-self: end; grid-column: 1 / -1; min-height: 30px; padding: 5px 0; }
.report-expense-table { min-width: 900px; }
.report-expense-row { cursor: pointer; }
.report-expense-row:hover td { background: #f5f9ff; }
.report-expense-row:focus { outline: 2px solid #84B7FF; outline-offset: -2px; }
.expense-note { display: block; min-width: 170px; color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .expense-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .expense-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .expense-filters__search { grid-column: span 2; }
  .expense-table td[data-label="Shënimi / fatura"] { display: block; }
  .expense-table td[data-label="Shënimi / fatura"]::before { display: block; margin-bottom: 4px; }
  .expense-note { min-width: 0; }
}

@media (max-width: 460px) {
  .expense-filters { grid-template-columns: 1fr; }
  .expense-filters__search { grid-column: auto; }
  .expense-filters__clear { justify-self: start; }
}

/* Unpaid supplier invoices and payroll summaries in Reports. */
.debt-panel, .payroll-panel { margin-top: 16px; }
.panel-number--debt { color: #77443D; background: #f8ebe8; }
.debt-summary, .payroll-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -3px 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
}
.debt-summary div, .payroll-summary div { min-width: 0; padding: 12px 14px; border-left: 1px solid var(--line); }
.debt-summary div:first-child, .payroll-summary div:first-child { border-left: 0; }
.debt-summary span, .payroll-summary span, .debt-summary strong, .payroll-summary strong { display: block; }
.debt-summary span, .payroll-summary span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.debt-summary strong, .payroll-summary strong { margin-top: 4px; color: var(--ink); font-size: 18px; letter-spacing: -.025em; }
.debt-summary div:first-child strong { color: #77443D; }
.debt-table-wrap, .payroll-table-wrap { overflow-x: auto; }
.debt-table, .payroll-table { width: 100%; min-width: 860px; border-collapse: collapse; }
.payroll-table { min-width: 940px; }
.debt-table th, .payroll-table th { padding: 0 10px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.debt-table td, .payroll-table td { padding: 12px 10px; border-bottom: 1px solid #edf1fa; color: var(--ink); font-size: 11px; vertical-align: middle; }
.debt-table td:first-child, .debt-table th:first-child, .payroll-table td:first-child, .payroll-table th:first-child { padding-left: 0; }
.debt-table td:last-child, .debt-table th:last-child, .payroll-table td:last-child, .payroll-table th:last-child { padding-right: 0; }
.debt-table tbody tr:last-child td, .payroll-table tbody tr:last-child td { border-bottom: 0; }
.debt-table td b, .payroll-table td b, .payroll-table td small { display: block; }
.debt-table td b, .payroll-table td b { font-size: 12px; }
.payroll-table td small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.manager-debt-panel { margin-top: 16px; }
.manager-debt-panel__hint { margin: -7px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.manager-debt-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.manager-debt-summary div:nth-child(2) strong { color: var(--navy); }
.payment-method--bank {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--navy);
  background: #e8f2ff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.manager-debt-table .button[disabled] { cursor: wait; opacity: .68; }

@media (max-width: 700px) {
  .debt-summary, .payroll-summary { grid-template-columns: 1fr; }
  .debt-summary div, .payroll-summary div { border-top: 1px solid var(--line); border-left: 0; }
  .debt-summary div:first-child, .payroll-summary div:first-child { border-top: 0; }
  .debt-table-wrap, .payroll-table-wrap { overflow: visible; }
  .debt-table, .debt-table tbody, .debt-table tr, .debt-table td, .payroll-table, .payroll-table tbody, .payroll-table tr, .payroll-table td { display: block; width: 100%; min-width: 0; }
  .debt-table thead, .payroll-table thead { display: none; }
  .debt-table tbody, .payroll-table tbody { display: grid; gap: 11px; }
  .debt-table tbody tr, .payroll-table tbody tr { padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(69,144,255,.06); }
  .debt-table td, .payroll-table td { display: grid; grid-template-columns: minmax(100px, 36%) minmax(0, 1fr); gap: 8px; padding: 7px 0; border: 0; text-align: left !important; }
  .debt-table td::before, .payroll-table td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
  .debt-table td[data-label="Kompania"], .payroll-table td[data-label="Punonjësi"] { display: block; padding-top: 0; }
  .debt-table td[data-label="Kompania"]::before, .payroll-table td[data-label="Punonjësi"]::before { display: block; margin-bottom: 4px; }
  .debt-table td[data-label="Veprim"] { display: flex; justify-content: flex-end; padding-bottom: 0; }
  .debt-table td[data-label="Veprim"]::before { margin-right: auto; }
}

/* Payroll appears before supplier expenses and each row opens its payroll editor. */
.reports-lists { display: flex; flex-direction: column; }
.payroll-panel { order: 1; }
.reports-table-panel { order: 2; }
.debt-panel { order: 3; }
.payroll-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.payroll-table { min-width: 1120px; }
.payroll-table__row { cursor: pointer; transition: background .15s ease; }
.payroll-table__row:hover { background: #f5f9ff; }
.payroll-table__row--paid { background: #f5fff7; }.payroll-table__row--paid:hover { background: #ebfaef; }.payroll-linked { display: block; margin-top: 4px; color: #287449; font-size: 9px; font-weight: 800; }
.payroll-table__row:focus { outline: 2px solid #84B7FF; outline-offset: -2px; }
.amount-cell--negative { color: #77443D !important; }
.payroll-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f7fbff; }
.payroll-preview div { min-width: 0; padding: 4px 6px; }
.payroll-preview span, .payroll-preview strong { display: block; }
.payroll-preview span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.payroll-preview strong { margin-top: 3px; color: var(--ink); font-size: 15px; }
.payroll-preview [data-payroll-extra] { color: #4590FF; }
.payroll-preview [data-payroll-total] { color: #1A6BE1; }

/* User preference: every visible interface label is displayed in capitals. */
#app, #modal-root, #toast-root { text-transform: uppercase; }

@media (max-width: 700px) {
  .payroll-summary { grid-template-columns: 1fr; }
  .payroll-preview { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .topbar--range { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
  .topbar--range .topbar__right { width: 100%; justify-content: space-between; }
}

@media (max-width: 620px) {
  .topbar--range .topbar__right { align-items: stretch; flex-direction: column; gap: 9px; }
  .topbar--range .today-copy { display: none; }
  .reference-range { width: 100%; }
}

@media (max-width: 380px) {
  .reference-range { grid-template-columns: 1fr; }
}

/* One Manager profile with clearly separated operational and financial areas. */
.nav-group { display: grid; gap: 6px; min-width: 0; }
.nav-group--insights { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.28); }
.nav-group__title {
  padding: 0 13px 3px;
  color: rgba(255,255,255,.76);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}
.login-user-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 21px;
  padding: 12px 13px;
  border: 1px solid #c9ddff;
  border-radius: 12px;
  color: var(--ink);
  background: #f4f8ff;
}
.login-user-card__avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--pine);
  font-weight: 800;
}
.login-user-card strong, .login-user-card small { display: block; }
.login-user-card strong { font-size: 12px; }
.login-user-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }

@media (max-width: 900px) {
  .nav-group { width: 100%; }
  .nav-group__title { display: none; }
  .nav-group--insights { margin-top: 12px; padding-top: 12px; }
}

@media (max-width: 620px) {
  .main-nav--manager { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nav-group { display: contents; }
  .nav-group--insights { margin: 0; padding: 0; border: 0; }
  .nav-group__title { display: none; }
}

@media (max-width: 380px) {
  .main-nav--manager .nav-item { font-size: 8px; letter-spacing: -.02em; }
}
