@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Armenian:wght@400;500;600;700;800&display=swap");

:root {
  --navy-950: #0b1f33;
  --navy-900: #102a43;
  --navy-800: #173f5f;
  --blue: #1f6f8b;
  --teal: #1e9c86;
  --teal-soft: #dff4ef;
  --amber: #e7a63a;
  --amber-soft: #fff2d8;
  --red: #d95d52;
  --red-soft: #fde7e5;
  --green: #2d9b69;
  --green-soft: #e2f4ea;
  --ink: #172b3a;
  --muted: #718096;
  --line: #dfe7ec;
  --surface: #ffffff;
  --canvas: #f4f7f6;
  --shadow: 0 12px 36px rgba(16, 42, 67, 0.08);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Noto Sans Armenian", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 1.05fr) minmax(420px, .95fr); background: #f4f7f6; }
.login-screen[hidden] { display: none !important; }
.login-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(42px, 8vw, 110px); color: #fff; background: radial-gradient(circle at 18% 18%, rgba(69,192,167,.3), transparent 34%), linear-gradient(145deg, #0b1f33, #123d59 65%, #176c71); }
.login-visual::before, .login-visual::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }
.login-visual::before { width: 460px; height: 460px; right: -190px; top: -150px; }
.login-visual::after { width: 300px; height: 300px; right: -60px; bottom: -150px; background: rgba(225,179,77,.08); }
.login-brand-mark, .login-card-mark { display: grid; place-items: center; color: var(--navy-950); background: #e1b34d; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.login-brand-mark { width: 62px; height: 62px; border-radius: 18px; font-size: 30px; margin-bottom: 38px; }
.login-visual > p { margin: 0 0 12px; color: #76d7c4; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.login-visual h1 { max-width: 650px; margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -.045em; }
.login-visual > span { max-width: 590px; margin-top: 24px; color: #c3d5de; font-size: clamp(14px, 1.6vw, 19px); line-height: 1.7; }
.login-security-note { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 11px; margin-top: 48px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: #d7e5ea; background: rgba(255,255,255,.06); font-size: 11px; }
.login-panel { display: grid; place-items: center; padding: 34px; }
.login-card { width: min(430px, 100%); padding: clamp(28px, 4vw, 46px); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(16,42,67,.12); }
.login-card-mark { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 28px; font-size: 21px; }
.login-card h2 { margin: 7px 0 0; font-size: 30px; letter-spacing: -.035em; }
.login-copy { margin: 10px 0 26px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.login-card label { display: grid; gap: 7px; margin-top: 15px; }
.login-card label span { color: var(--muted); font-size: 10px; font-weight: 800; }
.login-card input { min-height: 48px; }
.login-submit { width: 100%; min-height: 49px; margin-top: 23px; }
.login-card > small { display: block; margin-top: 16px; color: var(--muted); text-align: center; font-size: 9px; line-height: 1.5; }
.login-error { margin: 13px 0 0; padding: 10px 12px; border-radius: 9px; color: #a63f38; background: var(--red-soft); font-size: 10px; line-height: 1.5; }
.login-error[hidden] { display: none; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 286px minmax(0, 1fr); }
.app-shell[hidden] { display: none !important; }
.sidebar {
  position: relative; min-height: 100vh; padding: 28px 22px 24px;
  color: #fff; background: linear-gradient(180deg, var(--navy-950), var(--navy-900));
  display: flex; flex-direction: column; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; padding: 0 10px 28px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-size: 22px; font-weight: 800; color: var(--navy-950); background: #e1b34d; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.brand strong { display: block; font-size: 19px; letter-spacing: .02em; }
.brand small { display: block; color: #a9bdca; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.company-switcher { display: grid; gap: 6px; margin: -9px 8px 22px; }
.company-switcher span { color: #7894a5; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.company-switcher select { border-color: rgba(255,255,255,.12); color: #fff; background: rgba(255,255,255,.08); font-size: 11px; font-weight: 700; }
.company-switcher select option { color: var(--ink); background: #fff; }
.nav { min-width: 0; display: grid; gap: 6px; overflow: visible; }
.nav [hidden] { display: none !important; }
.nav-section { margin: 13px 10px 2px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.09); color: #7894a5; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.nav-section-daily { margin-top: 5px; color: #79d6c3; border-top-color: rgba(69,192,167,.22); }
.nav-item { width: 100%; min-width: 0; border: 0; border-radius: 11px; padding: 11px 12px; color: #b8c9d4; background: transparent; display: flex; align-items: center; gap: 11px; text-align: left; transition: .18s ease; }
.nav-item-daily { color: #d8e9e8; background: rgba(255,255,255,.025); }
.nav-item-daily:hover { background: rgba(69,192,167,.11); }
.nav-item > span:last-child { min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: rgba(49, 163, 142, .2); box-shadow: inset 3px 0 0 #45c0a7; }
.nav-item svg, .button svg, .mobile-menu svg { width: 18px; height: 18px; stroke-width: 1.8; }
.sidebar-status { margin-top: 18px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.sidebar-status p { margin: 6px 0 8px; color: #d8e2e8; font-size: 13px; }
.sidebar-status small { color: #8fa9b9; font-size: 11px; }
.status-line { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.status-dot.green { background: #4fc18d; box-shadow: 0 0 0 4px rgba(79,193,141,.12); }
.status-dot.amber { background: #f0b44d; box-shadow: 0 0 0 4px rgba(240,180,77,.12); }
.status-dot.red { background: #e36b62; box-shadow: 0 0 0 4px rgba(227,107,98,.12); }

.workspace { min-width: 0; }
.topbar { min-height: 92px; padding: 22px clamp(24px, 4vw, 52px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(244,247,246,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 10; }
.topbar h1 { margin: 2px 0 0; font-size: clamp(20px, 2.2vw, 29px); line-height: 1.25; letter-spacing: -.025em; }
.eyebrow { margin: 0; color: var(--teal); font-weight: 800; letter-spacing: .13em; font-size: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.topbar-actions [hidden] { display: none !important; }
.last-update { display: flex; align-items: center; gap: 10px; }
.last-update small { display: block; color: var(--muted); font-size: 10px; }
.last-update strong { display: block; font-size: 12px; margin-top: 2px; }
.user-menu { display: flex; align-items: center; gap: 9px; padding-left: 16px; border-left: 1px solid var(--line); }
.user-avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: #176d60; background: var(--teal-soft); font-size: 13px; font-weight: 800; }
.user-menu-copy { max-width: 135px; }
.user-menu-copy strong, .user-menu-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-copy strong { font-size: 11px; }
.user-menu-copy small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.logout-button { width: 30px; height: 30px; font-size: 16px; }
.button { min-height: 42px; border: 1px solid transparent; border-radius: 10px; padding: 9px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; font-size: 13px; transition: .18s ease; }
.button.primary { color: #fff; background: var(--teal); box-shadow: 0 8px 20px rgba(30,156,134,.18); }
.button.primary:hover { background: #178773; transform: translateY(-1px); }
.excel-export-button { color: #157762; border-color: #b9ded5; background: #eef9f6; white-space: nowrap; }
.excel-export-button:hover { border-color: #73bcae; background: #e2f5ef; }
.button.ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.button.danger { color: var(--red); background: var(--red-soft); border-color: #f6c7c7; }
.button.danger:hover { background: #f9d8d8; }
.button.small { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.table-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.archived-panel { margin-top: 18px; border-style: dashed; }
.warehouse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.warehouse-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 17px 19px; box-shadow: var(--shadow); }
.warehouse-card span, .warehouse-card small { display: block; color: var(--muted); }
.warehouse-card span { font-size: 9px; font-weight: 800; text-transform: uppercase; }
.warehouse-card strong { display: block; margin: 7px 0 3px; color: var(--ink); font-size: 22px; }
.warehouse-card small { font-size: 9px; }
.warehouse-card.coupon-card { border-color: rgba(239, 177, 55, .38); background: linear-gradient(145deg, #fffdf7, #fff8e6); }
.cash-in { color: #14866f; }
.cash-out { color: #c64b3f; }
.warehouse-manager-list { display: grid; gap: 9px; margin-top: 18px; max-height: 310px; overflow: auto; }
.warehouse-manager-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #f7fafb; }
.warehouse-manager-row.archived { opacity: .68; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--ink); }

.content { padding: 30px clamp(24px, 4vw, 52px) 52px; max-width: 1600px; margin: 0 auto; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-intro h2 { margin: 0; font-size: 19px; }
.page-intro p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.date-chip { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px 12px; color: var(--ink); }

.daily-entry-overview { margin: -2px 0 22px; padding: 21px; border: 1px solid #cfe5df; border-radius: 18px; background: linear-gradient(145deg, #f6fcfa 0%, #edf7f4 100%); box-shadow: 0 12px 34px rgba(16, 87, 76, .07); }
.daily-entry-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.daily-entry-kicker { display: block; margin-bottom: 4px; color: #18816f; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.daily-entry-heading h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.daily-entry-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.daily-entry-status { display: inline-flex; align-items: center; gap: 9px; padding: 7px 10px; border: 1px solid #d5e9e4; border-radius: 999px; color: #427368; background: rgba(255,255,255,.75); font-size: 9px; font-weight: 700; white-space: nowrap; }
.daily-entry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.daily-entry-card { --daily-accent: var(--teal); --daily-tint: var(--teal-soft); min-width: 0; min-height: 148px; padding: 16px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: start; gap: 11px; color: var(--ink); text-decoration: none; border: 1px solid rgba(210,224,229,.92); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 8px 22px rgba(16,42,67,.055); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.daily-entry-card:hover { transform: translateY(-2px); border-color: var(--daily-accent); box-shadow: 0 12px 28px rgba(16,42,67,.1); }
.daily-entry-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--daily-accent); background: var(--daily-tint); }
.daily-entry-icon svg { width: 18px; height: 18px; }
.daily-entry-copy { min-width: 0; display: block; }
.daily-entry-label { min-height: 30px; display: block; color: var(--muted); font-size: 9px; font-weight: 800; line-height: 1.45; text-transform: uppercase; }
.daily-entry-copy strong { display: block; margin-top: 7px; font-size: 22px; line-height: 1; letter-spacing: -.03em; }
.daily-entry-copy strong small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0; }
.daily-entry-copy > span:not(.daily-entry-label) { display: block; margin-top: 11px; font-size: 10px; font-weight: 700; }
.daily-entry-copy > small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.daily-entry-arrow { align-self: center; color: var(--daily-accent); font-size: 18px; font-weight: 800; transition: transform .18s ease; }
.daily-entry-card:hover .daily-entry-arrow { transform: translateX(3px); }
.daily-tone-blue { --daily-accent: #2577a6; --daily-tint: #e4f1f8; }
.daily-tone-teal { --daily-accent: var(--teal); --daily-tint: var(--teal-soft); }
.daily-tone-amber { --daily-accent: #c98218; --daily-tint: var(--amber-soft); }
.daily-tone-red { --daily-accent: var(--red); --daily-tint: var(--red-soft); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.kpi-card, .panel { background: var(--surface); border: 1px solid rgba(211,223,230,.85); border-radius: 16px; box-shadow: var(--shadow); }
.kpi-card { padding: 19px 20px 17px; min-height: 130px; position: relative; overflow: hidden; }
.kpi-card::after { content: ""; position: absolute; right: -20px; bottom: -32px; width: 92px; height: 92px; border-radius: 50%; background: var(--tint, #eef5f7); }
.kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 700; }
.kpi-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--accent, var(--teal)); background: var(--tint, var(--teal-soft)); }
.kpi-icon svg { width: 17px; height: 17px; }
.kpi-value { margin-top: 13px; font-size: clamp(25px, 2.2vw, 34px); font-weight: 800; line-height: 1; letter-spacing: -.04em; position: relative; z-index: 1; }
.kpi-value span { font-size: 13px; letter-spacing: 0; margin-left: 4px; color: var(--muted); font-weight: 700; }
.kpi-foot { margin-top: 10px; color: var(--muted); font-size: 10px; position: relative; z-index: 1; }
.tone-blue { --accent: #2577a6; --tint: #e4f1f8; }
.tone-teal { --accent: var(--teal); --tint: var(--teal-soft); }
.tone-amber { --accent: #c98218; --tint: var(--amber-soft); }
.tone-red { --accent: var(--red); --tint: var(--red-soft); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 18px; margin-bottom: 18px; }
.panel { padding: 21px; min-width: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel-head h3 { margin: 0; font-size: 15px; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.panel-badge { white-space: nowrap; border-radius: 999px; padding: 6px 9px; background: #f0f5f7; color: var(--blue); font-size: 10px; font-weight: 700; }
.chart { height: 245px; display: flex; align-items: stretch; gap: 9px; padding: 8px 0 0; }
.bar-column { flex: 1; min-width: 0; display: grid; grid-template-rows: 1fr auto; gap: 7px; text-align: center; }
.bar-track { display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); min-height: 0; position: relative; }
.bar { width: min(28px, 76%); min-height: 3px; border-radius: 5px 5px 1px 1px; background: linear-gradient(180deg, #38aa94, #187c86); transition: height .3s ease; position: relative; }
.bar:hover::after { content: attr(data-value); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); background: var(--navy-950); color: #fff; padding: 5px 7px; border-radius: 5px; font-size: 9px; white-space: nowrap; }
.bar-label { color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.alert-list { display: grid; gap: 9px; }
.alert-item { border-radius: 11px; padding: 11px 12px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; background: #f7f9fa; border: 1px solid #edf1f3; }
.alert-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--amber-soft); color: #c98218; }
.alert-item.danger .alert-icon { background: var(--red-soft); color: var(--red); }
.alert-item.good .alert-icon { background: var(--green-soft); color: var(--green); }
.alert-item strong { display: block; font-size: 11px; }
.alert-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.alert-value { font-weight: 800; font-size: 11px; color: var(--red); }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
.accounting-table { min-width: 2050px; }
.accounting-table.compact { min-width: 1200px; }
.accounting-table th { position: sticky; top: 0; z-index: 1; color: #fff; background: #337fb7; }
.accounting-table td { white-space: nowrap; }
.accounting-table td:nth-child(3), .accounting-table td:nth-child(5) { white-space: normal; min-width: 170px; }
.amount-positive { color: #267a56; font-weight: 800; }
.amount-negative { color: #b64d46; font-weight: 800; }
.total-row td { background: #e9f3e2; border-top: 2px solid #9bb98a; }
.source-note { display: flex; align-items: center; gap: 11px; margin: -6px 0 18px; padding: 11px 14px; border: 1px solid #cce8df; border-radius: 11px; color: #267a56; background: #eef9f5; }
.source-note > span:first-child { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #d7f0e6; }
.source-note svg { width: 17px; height: 17px; }
.source-note strong, .source-note small { display: block; }
.source-note strong { font-size: 11px; }
.source-note small { margin-top: 2px; color: #5e7d73; font-size: 9px; }
.revenue-cell { min-width: 150px; }
.revenue-cell span { display: block; height: 6px; margin-top: 5px; overflow: hidden; border-radius: 999px; background: #e7eef3; }
.revenue-cell i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #53a6dc, #287bb4); }
th { padding: 10px 12px; color: var(--muted); background: #f7f9fa; border-bottom: 1px solid var(--line); text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
td { padding: 13px 12px; border-bottom: 1px solid #edf1f3; font-size: 11px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.plate { font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.vehicle-cell { display: flex; align-items: center; gap: 10px; }
.vehicle-avatar { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; background: #e7f1f4; color: var(--blue); font-size: 10px; font-weight: 800; }
.vehicle-cell small { color: var(--muted); display: block; margin-top: 2px; font-size: 9px; }
.metric-main { font-weight: 800; }
.metric-sub { color: var(--muted); font-size: 9px; margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.pill.good { color: #267a56; background: var(--green-soft); }
.pill.warn { color: #a56e19; background: var(--amber-soft); }
.pill.bad { color: #b64d46; background: var(--red-soft); }
.pill.neutral { color: #577183; background: #edf3f5; }

.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.comparison-list { display: grid; gap: 15px; }
.comparison-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 72px; align-items: center; gap: 13px; }
.comparison-row strong { font-size: 10px; }
.comparison-bars { display: grid; gap: 5px; }
.mini-track { height: 8px; background: #edf2f4; border-radius: 999px; overflow: hidden; }
.mini-fill { height: 100%; border-radius: inherit; background: var(--teal); }
.mini-fill.secondary { background: #88a5b8; }
.comparison-row span { text-align: right; font-size: 9px; color: var(--muted); }

.profitability-list { display: grid; gap: 14px; }
.profitability-row { display: grid; grid-template-columns: minmax(150px, 1.05fr) minmax(310px, 2.25fr) minmax(90px, .7fr); align-items: center; gap: 14px; }
.profitability-asset strong, .profitability-asset small { display: block; }
.profitability-asset strong { font-size: 10px; }
.profitability-asset small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.profitability-bars { display: grid; gap: 8px; }
.profitability-bar-row { display: grid; grid-template-columns: 48px minmax(100px, 1fr) 90px; align-items: center; gap: 8px; }
.profitability-bar-row > span { color: var(--muted); font-size: 8px; font-weight: 700; }
.profitability-bar-row > strong { text-align: right; font-size: 9px; white-space: nowrap; }
.profitability-bar-row.income-row > strong { color: #17846f; }
.profitability-bar-row.cost-row > strong { color: #b7791f; }
.profitability-bar-row.self-cost-row > strong { color: #c34a42; }
.profitability-net { text-align: right; }
.profitability-net small, .profitability-net strong, .profitability-net span { display: block; }
.profitability-net small { margin-bottom: 4px; color: var(--muted); font-size: 8px; }
.profitability-net strong { font-size: 10px; white-space: nowrap; }
.profitability-net span { margin-top: 5px; color: var(--muted); font-size: 7px; line-height: 1.35; }
.profitability-track { height: 7px; overflow: hidden; border-radius: 999px; background: #edf2f4; }
.profitability-track i { display: block; height: 100%; border-radius: inherit; }
.profitability-track i.income { background: linear-gradient(90deg, #45b59f, #1e9c86); }
.profitability-track i.cost { background: linear-gradient(90deg, #f4cf7b, #d99a2b); }
.profitability-track i.self-cost { background: linear-gradient(90deg, #ee8b82, #c84840); }
.expense-breakdown { display: grid; gap: 4px; }
.expense-breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 3px; border-bottom: 1px solid #edf1f3; }
.expense-breakdown > div:last-child { border-bottom: 0; }
.expense-breakdown span { color: var(--muted); font-size: 10px; }
.expense-breakdown strong { font-size: 12px; }
.expense-breakdown .total { margin-top: 6px; padding: 14px 12px; border: 0; border-radius: 10px; background: #eef7f4; }
.expense-breakdown .total span { color: #267a56; font-weight: 800; }
.profitability-table { min-width: 1840px; }
.profitability-table-head { align-items: center; }
.profitability-table-filters { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.profitability-table-filters .date-chip { min-width: 190px; }
.accounting-table-head { align-items: center; }
.accounting-table-filters { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.accounting-table-filters .date-chip { min-width: 205px; }
.accounting-table-filters .equipment-filter-search { min-width: 270px; }
.table-total-row td { background: #eef8f5; border-top: 2px solid #b7ddd5; color: #173c36; }
.financial-report-panel { margin-bottom: 18px; }
.financial-report-head { align-items: center; }
.financial-filters { display: flex; align-items: center; gap: 9px; }
.financial-filters .date-chip { min-width: 160px; }
.object-table-head { align-items: center; }
.object-filters { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.object-filters .date-chip { min-width: 190px; }
.object-progress { display: grid; grid-template-columns: minmax(90px, 1fr) auto; align-items: center; gap: 8px; min-width: 145px; }
.object-progress strong { min-width: 38px; color: var(--ink); font-size: 10px; text-align: right; }
.object-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #eaf0f2; }
.object-progress-track i { display: block; height: 100%; border-radius: inherit; }
.object-progress-track i.completion { background: linear-gradient(90deg, #4ab6a1, #1e9c86); }
.object-progress-track i.payment { background: linear-gradient(90deg, #7fa8c5, #397ca4); }
.attachment-current { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #cce8df; border-radius: 9px; background: #f1faf7; }
.attachment-current[hidden] { display: none; }
.attachment-current > span { color: #237d6d; font-size: 10px; font-weight: 800; }
.financial-status-line { display: flex; align-items: center; gap: 10px; margin: -3px 0 17px; padding: 10px 12px; border-radius: 10px; color: var(--muted); background: #f7f9fa; font-size: 10px; }
.financial-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.financial-summary-grid > div { padding: 17px 18px; border-right: 1px solid var(--line); background: #fff; }
.financial-summary-grid > div:last-child { border-right: 0; }
.financial-summary-grid span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.financial-summary-grid strong { display: block; margin-top: 7px; font-size: 19px; }

.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vehicle-card { padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.vehicle-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vehicle-card h3 { margin: 13px 0 2px; font-size: 16px; }
.vehicle-card .model { color: var(--muted); font-size: 10px; min-height: 29px; }
.vehicle-meta { margin-top: 15px; padding-top: 14px; border-top: 1px solid #edf1f3; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.vehicle-meta small { display: block; color: var(--muted); font-size: 8px; margin-bottom: 4px; }
.vehicle-meta strong { font-size: 10px; overflow-wrap: anywhere; }
.vehicle-meta strong + small { margin-top: 4px; margin-bottom: 0; color: #4f7789; }
.vehicle-card-actions { display: flex; justify-content: flex-end; margin-top: 15px; padding-top: 14px; border-top: 1px solid #edf1f3; }
.rate-history { margin: 18px 0 2px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #f7fafb; }
.rate-history-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.rate-history-head strong, .rate-history-head small { display: block; }
.rate-history-head strong { font-size: 12px; }
.rate-history-head small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.rate-history table { min-width: 620px; background: #fff; }

.sync-hero { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; padding: 23px; border-radius: 16px; color: #fff; background: linear-gradient(125deg, var(--navy-900), #15566c); margin-bottom: 18px; }
.sync-hero h2 { margin: 0 0 7px; font-size: 19px; }
.sync-hero p { margin: 0; max-width: 760px; color: #c3d4de; font-size: 11px; line-height: 1.7; }
.sync-hero .button { background: #e1b34d; color: var(--navy-950); box-shadow: none; }
.sync-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.sync-hero .sync-actions .button.ghost { color: #e7f3f6; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); }
.locator-upload-progress { display: grid; grid-template-columns: minmax(220px, 1fr); gap: 8px; padding: 16px 18px; margin: -4px 0 18px; border: 1px solid #c8e8e1; border-radius: 14px; background: #f1fbf8; color: var(--navy-900); }
.locator-upload-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.locator-upload-progress span, .locator-upload-progress small { color: var(--text-muted); }
.locator-progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #dcebea; }
.locator-progress-track i { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, #20a48c, #1d887f); transition: width .2s ease; }
.steps { display: grid; gap: 13px; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.step-number { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-weight: 800; font-size: 10px; }
.step strong { display: block; font-size: 11px; }
.step p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.empty-state { padding: 45px 24px; text-align: center; color: var(--muted); }
.empty-table-state { display: grid; gap: 5px; padding: 28px 16px; text-align: center; color: var(--muted); }
.empty-table-state strong { color: var(--ink); font-size: 12px; }
.empty-table-state span { font-size: 10px; }
.loading-card { margin: 45px auto; max-width: 520px; padding: 30px; border-radius: 15px; background: #fff; box-shadow: var(--shadow); text-align: center; color: var(--muted); }
.dialog { width: min(720px, calc(100vw - 28px)); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 30px 90px rgba(11,31,51,.28); }
.dialog.dialog-wide { width: min(940px, calc(100vw - 28px)); }
.dialog::backdrop { background: rgba(11,31,51,.54); backdrop-filter: blur(3px); }
.dialog form { padding: 24px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 21px; }
.dialog-head h2 { margin: 3px 0 0; }
.dialog-subtitle { max-width: 620px; margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: #edf2f4; color: var(--ink); font-size: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid label { display: grid; gap: 6px; }
.form-grid label[hidden] { display: none !important; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid label span { font-size: 10px; color: var(--muted); font-weight: 700; }
.form-grid label small { color: var(--muted); font-size: 9px; line-height: 1.5; }
input:disabled { color: #95a5af; background: #f1f4f5; cursor: not-allowed; }
input[readonly] { color: #276b61; background: #f1faf7; border-color: #cce8df; cursor: default; }
.form-grid label.auto-field span { color: #237d6d; }
.single-column-form { grid-template-columns: 1fr; }
.checkbox-field { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 9px !important; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f7fafb; }
.checkbox-field input { width: 17px; height: 17px; margin: 0; }
.checkbox-field span { color: var(--ink) !important; }
.user-table-person { min-width: 210px; display: flex; align-items: center; gap: 10px; }
.small-avatar { width: 32px; height: 32px; border-radius: 9px; font-size: 11px; }
.user-table-person strong, .user-table-person small, .table-subline { display: block; }
.user-table-person small, .table-subline { margin-top: 2px; color: var(--muted); font-size: 9px; }
.audit-panel-head { align-items: flex-end; }
.audit-search { width: min(330px, 100%); }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; color: var(--ink); background: #fff; outline: none; font-size: 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(30,156,134,.1); }
.accounting-entry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.accounting-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; padding: 13px; border: 1px solid #cce8df; border-radius: 12px; background: #f1faf7; }
.accounting-preview div { padding: 4px 8px; border-right: 1px solid #d9ebe5; }
.accounting-preview div:last-child { border-right: 0; }
.accounting-preview span { display: block; color: var(--muted); font-size: 9px; }
.accounting-preview strong { display: block; margin-top: 4px; font-size: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 21px; }
.attendance-panel { border-top: 3px solid var(--teal-500); }
.attendance-dialog-toolbar { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.attendance-dialog-toolbar label { display: grid; gap: 7px; min-width: 210px; color: var(--muted); font-size: 10px; font-weight: 700; }
.attendance-dialog-toolbar input { min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text); font: inherit; }
.attendance-entry-wrap { max-height: 52vh; border: 1px solid var(--line); border-radius: 12px; }
.attendance-entry-table select, .attendance-entry-table input { width: 100%; min-width: 100px; min-height: 36px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); font: inherit; }
.attendance-entry-table td:first-child { min-width: 220px; }
.attendance-entry-table td:last-child { min-width: 190px; }
.attendance-help { margin-top: 12px; padding: 10px 12px; border-radius: 9px; background: #eef8f5; color: var(--muted); font-size: 10px; line-height: 1.55; }
.tax-invoice-mapping { display: grid; gap: 5px; margin-top: 16px; padding: 13px 15px; border: 1px solid #cce8df; border-radius: 11px; background: #f1faf7; }
.tax-invoice-mapping strong { color: #237d6d; font-size: 11px; }
.tax-invoice-mapping span { color: var(--muted); font-size: 10px; line-height: 1.55; }
.invoice-items { min-width: 250px; display: grid; gap: 7px; }
.invoice-items > div { padding-bottom: 7px; border-bottom: 1px solid #edf1f3; }
.invoice-items > div:last-child { padding-bottom: 0; border-bottom: 0; }
.invoice-items strong, .invoice-items span { display: block; }
.invoice-items strong { font-size: 9px; }
.invoice-items span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 80; max-width: 360px; padding: 12px 15px; color: #fff; background: var(--navy-950); border-radius: 10px; box-shadow: var(--shadow); font-size: 11px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .last-update { display: none; }
}
@media (max-width: 760px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 18px; }
  .login-card { padding: 28px 22px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: -306px; width: 286px; height: 100vh; min-height: 0; padding: 28px 22px 22px; overflow: hidden; transition: left .22s ease; box-shadow: 16px 0 44px rgba(0,0,0,.22); }
  .sidebar.open { left: 0; }
  .sidebar .nav { overflow-x: hidden; overflow-y: auto; padding-right: 3px; }
  .sidebar-status { margin-top: auto; }
  .mobile-menu { display: inline-grid; place-items: center; }
  .topbar { padding: 17px; gap: 11px; }
  .topbar-actions .button { padding: 9px 11px; font-size: 0; }
  .topbar-actions .button svg { margin: 0; }
  .user-menu-copy, .last-update { display: none; }
  .user-menu { padding-left: 0; border-left: 0; gap: 5px; }
  .content { padding: 20px 16px 40px; }
  .kpi-grid, .split-grid, .vehicle-grid, .daily-entry-grid { grid-template-columns: 1fr; }
  .daily-entry-heading { align-items: flex-start; flex-direction: column; }
  .daily-entry-status { white-space: normal; }
  .page-intro { align-items: flex-start; flex-direction: column; }
  .sync-hero { grid-template-columns: 1fr; }
  .sync-actions { justify-content: flex-start; }
  .locator-upload-progress > div:first-child { align-items: flex-start; flex-direction: column; gap: 4px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.full { grid-column: auto; }
  .accounting-entry-grid, .accounting-preview { grid-template-columns: 1fr; }
  .profitability-row { grid-template-columns: 1fr; gap: 9px; }
  .profitability-net { display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .profitability-net small { margin-bottom: 0; }
  .profitability-table-head { align-items: flex-start; flex-direction: column; }
  .profitability-table-filters { width: 100%; justify-content: flex-start; }
  .profitability-table-filters .date-chip { width: 100%; }
  .accounting-table-head { align-items: flex-start; flex-direction: column; }
  .accounting-table-filters { width: 100%; justify-content: flex-start; }
  .accounting-table-filters .date-chip { width: 100%; }
  .financial-report-head, .financial-status-line { align-items: flex-start; flex-direction: column; }
  .financial-filters { width: 100%; flex-direction: column; }
  .financial-filters .date-chip { width: 100%; }
  .object-table-head { align-items: flex-start; }
  .object-filters { width: 100%; justify-content: stretch; }
  .object-filters .date-chip { width: 100%; }
  .financial-summary-grid { grid-template-columns: 1fr; }
  .financial-summary-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .financial-summary-grid > div:last-child { border-bottom: 0; }
  .accounting-preview div { border-right: 0; border-bottom: 1px solid #d9ebe5; }
  .accounting-preview div:last-child { border-bottom: 0; }
  .audit-panel-head { align-items: flex-start; }
}
