@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[hidden] { display: none !important; }
.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; }
.notification-button { position: relative; color: #b7791f; }
.notification-button svg { width: 20px; height: 20px; }
.notification-button strong { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #d64545; color: #fff; font-size: 11px; line-height: 20px; text-align: center; box-shadow: 0 0 0 3px #f4f7f6; }
.access-field { display: flex; align-items: center; gap: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.access-field legend { padding: 0 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.access-field .checkbox-field { margin: 0; }
.compact-dialog { width: min(600px, calc(100vw - 30px)); }
.compact-dialog textarea { min-height: 120px; }
.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; }
.employee-groups { display: grid; gap: 24px; }
.employee-group-section { display: grid; gap: 13px; }
.employee-group-section + .employee-group-section { padding-top: 22px; border-top: 1px solid var(--line); }
.employee-group-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.employee-group-head h4 { margin: 0; color: var(--navy-900); font-size: 15px; }
.employee-group-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.employee-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.employee-card { display: flex; min-height: 286px; padding: 17px; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(180deg, #fff, #fbfdfd); box-shadow: 0 10px 28px rgba(12, 46, 64, .07); }
.employee-card.is-archived { opacity: .72; background: #f6f7f8; }
.employee-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.employee-card-title { display: grid; gap: 4px; margin: 13px 0 8px; padding: 0; color: var(--ink); border: 0; background: transparent; text-align: left; cursor: pointer; }
.employee-card-title strong { font: inherit; font-size: 14px; font-weight: 850; }
.employee-card-title small { color: var(--muted); font-size: 9px; }
.employee-card-title:hover strong { color: var(--teal); }
.employee-group-pill { align-self: flex-start; padding: 5px 9px; color: #176e60; border: 1px solid #c3e6dd; border-radius: 999px; background: #eef9f6; font-size: 8px; font-weight: 850; }
.employee-card-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #edf1f3; }
.employee-card-meta small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 7px; font-weight: 800; }
.employee-card-meta strong { display: block; font-size: 9px; overflow-wrap: anywhere; }
.employee-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 15px; }
.employee-profile-summary { display: grid; grid-template-columns: minmax(210px, .8fr) 1.4fr; gap: 18px; margin: -3px 0 20px; padding: 17px; border: 1px solid #cbe7df; border-radius: 14px; background: linear-gradient(135deg, #effaf7, #f8fbfc); }
.employee-profile-summary[hidden] { display: none; }
.employee-profile-identity { display: flex; align-items: center; gap: 12px; }
.employee-profile-identity strong, .employee-profile-identity small { display: block; }
.employee-profile-identity strong { font-size: 14px; }
.employee-profile-identity small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.employee-profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.employee-profile-facts > div { padding: 10px 11px; border-radius: 9px; background: rgba(255,255,255,.78); }
.employee-profile-facts small, .employee-profile-facts strong { display: block; }
.employee-profile-facts small { margin-bottom: 4px; color: var(--muted); font-size: 7px; font-weight: 800; }
.employee-profile-facts strong { font-size: 9px; overflow-wrap: anywhere; }
.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; }
.salary-option-list { display: grid; gap: 9px; }
.salary-option-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.salary-option-card strong, .salary-option-card small { display: block; }
.salary-option-card small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.employee-rate-actions { display: flex; align-items: center; gap: 12px; }
.employee-rate-actions small { color: var(--muted); font-size: 9px; }
.table-actions.compact { flex-wrap: nowrap; gap: 6px; }

.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)); }
#attendanceDialog { width: min(1120px, calc(100vw - 20px)); }
.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); }
.attendance-month-panel { padding: 18px 16px 20px; border-top: 3px solid var(--navy-900); }
.attendance-month-table-wrap { max-height: 70vh; overflow-x: hidden; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.attendance-month-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.attendance-month-table th, .attendance-month-table td { height: 36px; padding: 2px; border-right: 1px solid #e2eaee; border-bottom: 1px solid #e2eaee; text-align: center; background: #fff; }
.attendance-month-table thead th { position: sticky; top: 0; z-index: 4; background: var(--navy-900); color: #fff; }
.attendance-month-table .attendance-month-index { position: sticky; left: 0; z-index: 3; width: 3.5%; min-width: 0; }
.attendance-month-table .attendance-month-employee { position: sticky; left: 3.5%; z-index: 3; width: 19%; min-width: 0; padding: 5px 7px; text-align: left; box-shadow: 5px 0 10px rgba(11, 43, 69, .06); }
.attendance-month-table thead .attendance-month-index, .attendance-month-table thead .attendance-month-employee { z-index: 6; background: var(--navy-900); }
.attendance-month-day { width: auto; min-width: 0; }
.attendance-month-day strong, .attendance-month-day small { display: block; }
.attendance-month-day strong { font-size: 9px; line-height: 1; }
.attendance-month-day small { margin-top: 2px; color: #b9d0dc; font-size: 6px; line-height: 1; }
.attendance-month-day.is-weekend { background: #19445f; }
.attendance-month-day.is-today { background: var(--teal); box-shadow: inset 0 -3px 0 #f4c75a; }
.attendance-month-cell { width: auto; min-width: 0; }
.attendance-month-cell.is-weekend { background: #f5f8fa; }
.attendance-month-cell.is-today { box-shadow: inset 0 0 0 2px rgba(30,156,134,.38); }
.attendance-month-cell input { display: block; width: 15px; max-width: 100%; height: 15px; margin: 0 auto; accent-color: var(--teal); cursor: pointer; }
.attendance-month-cell input:disabled { cursor: not-allowed; opacity: .3; }
.attendance-month-cell.status-present, .attendance-month-cell.status-half { background: #e7f7f2; }
.attendance-month-cell.status-vacation { background: #fff4d7; }
.attendance-month-cell.status-sick, .attendance-month-cell.status-maternity { background: #ffe9e7; }
.attendance-month-employee strong, .attendance-month-employee small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attendance-month-table tbody tr:hover td, .attendance-month-table tbody tr:hover th { background-color: #f3faf8; }
.attendance-month-table tbody tr:hover .attendance-month-employee { background-color: #eef8f5; }
.employee-profile-link { display: grid; gap: 3px; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.employee-profile-link:hover strong { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.attendance-date-grid-wrap { margin: 0 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfc; }
.attendance-date-grid-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.attendance-date-grid-head strong { font-size: 12px; }
.attendance-date-grid-head span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.attendance-date-grid-head i { width: 11px; height: 11px; border-radius: 3px; background: var(--navy-900); }
.attendance-date-weekdays, .attendance-date-grid { display: grid; grid-template-columns: repeat(7, minmax(30px, 1fr)); gap: 6px; }
.attendance-date-weekdays { margin-bottom: 6px; }
.attendance-date-weekdays span { color: var(--muted); font-size: 8px; font-weight: 800; text-align: center; }
.attendance-date-empty { min-height: 32px; }
.attendance-date-day { min-height: 32px; border: 1px solid #dce6ea; border-radius: 8px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 700; cursor: pointer; }
.attendance-date-day:hover { border-color: var(--teal); background: #edf8f5; }
.attendance-date-day.filled { border-color: var(--navy-900); background: var(--navy-900); color: #fff; box-shadow: 0 5px 12px rgba(11, 43, 69, .18); }
.attendance-date-day.selected { outline: 3px solid rgba(37, 181, 157, .26); border-color: var(--teal); }
.attendance-date-day:disabled { opacity: .3; cursor: not-allowed; }
.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; }
#attendanceDialog .attendance-entry-table { min-width: 1350px; }
.attendance-present-check { display: inline-flex; align-items: center; gap: 8px; min-width: 84px; cursor: pointer; font-weight: 800; }
.attendance-present-check input { width: 20px; min-width: 20px; min-height: 20px; accent-color: var(--teal); }
.attendance-entry-table tr[data-attendance-employee] { transition: background-color .16s ease, color .16s ease; }
.attendance-entry-table tr.attendance-row-present { background: #11334b; color: #fff; }
.attendance-entry-table tr.attendance-row-present td { border-color: rgba(255,255,255,.12); }
.attendance-entry-table tr.attendance-row-present .table-subline, .attendance-entry-table tr.attendance-row-present .rate-choice-hint { color: #bdd5e2; }
.attendance-entry-table tr.attendance-row-present select, .attendance-entry-table tr.attendance-row-present input:not([type="checkbox"]) { border-color: rgba(255,255,255,.28); background: #fff; color: var(--text); }
.rate-choice-hint { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; white-space: nowrap; }
[data-attendance-salary-wrap][hidden] { display: none; }
.attendance-group-row td { padding: 9px 12px; border-bottom-color: #c7e4dd; background: #eaf7f4; }
.attendance-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.attendance-group-heading > div { display: flex; align-items: baseline; gap: 10px; }
.attendance-group-heading strong { color: var(--navy-900); font-size: 12px; }
.attendance-group-heading span { color: var(--muted); font-size: 9px; font-weight: 700; }
.attendance-group-heading .button { min-height: 30px; padding: 6px 10px; background: #fff; }
.attendance-help { margin-top: 12px; padding: 10px 12px; border-radius: 9px; background: #eef8f5; color: var(--muted); font-size: 10px; line-height: 1.55; }
.brigade-attendance-section { margin-top: 18px; padding-top: 16px; border-top: 2px solid #dce9e6; }
.brigade-attendance-section .attendance-group-heading { margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; background: #edf8f5; }
.brigade-attendance-table input { width: 100%; min-width: 90px; min-height: 36px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); font: inherit; }
.brigade-attendance-table input[data-brigade-object] { min-width: 150px; }
.brigade-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 12px; }
.brigade-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.brigade-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.brigade-card h4 { margin: 0 0 5px; }
.brigade-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.brigade-card-actions { display: flex; gap: 8px; margin-top: 12px; }
.brigade-dialog-actions { justify-content: flex-end; }
.brigade-dialog-actions .danger { margin-right: auto; }
.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; }
.tax-invoice-filters { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 10px; }
.tax-invoice-table { min-width: 1880px; }
.tax-invoice-table td { vertical-align: top; }
.tax-invoice-approval-items { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #f8fafb; }
.tax-invoice-approval-items .panel-head { margin-bottom: 12px; }
.tax-invoice-approval-items table { min-width: 760px; background: #fff; }
.tax-item-check { width: 18px; height: 18px; accent-color: var(--teal); }
.tax-approval-check { margin-top: 2px; background: #eef8f5; border-color: #bfe2d9; }
.tax-filter-panel { border-top: 3px solid var(--teal); }
.nav-item-assistant { position: relative; color: #fff; background: linear-gradient(110deg, rgba(30,156,134,.24), rgba(31,111,139,.12)); }
.nav-item-assistant::after { content: "ՆՈՐ"; margin-left: auto; padding: 3px 6px; border-radius: 999px; color: #0c3d37; background: #79d6c3; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.assistant-page-intro { align-items: center; }
.assistant-page-intro h2 { margin-top: 4px; }
.assistant-status { min-width: 250px; display: flex; align-items: center; gap: 11px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 8px 24px rgba(16,42,67,.05); }
.assistant-status > span { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; box-shadow: 0 0 0 5px rgba(217,93,82,.11); background: var(--red); }
.assistant-status.online > span { box-shadow: 0 0 0 5px rgba(45,155,105,.11); background: var(--green); }
.assistant-status strong, .assistant-status small { display: block; }
.assistant-status strong { font-size: 10px; }
.assistant-status small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.assistant-layout { display: grid; grid-template-columns: minmax(360px, .95fr) minmax(440px, 1.05fr); gap: 18px; align-items: start; }
.assistant-compose, .assistant-preview { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.assistant-compose { overflow: hidden; padding: 22px; }
.assistant-compose-head, .assistant-response { display: flex; align-items: flex-start; gap: 12px; }
.assistant-avatar { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, var(--navy-800), var(--teal)); font-size: 9px; font-weight: 900; letter-spacing: .05em; }
.assistant-compose-head h3, .assistant-preview-head h3 { margin: 0; font-size: 17px; }
.assistant-compose-head p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.assistant-compose form { margin-top: 20px; }
.assistant-compose form > label { display: block; margin-bottom: 8px; color: var(--navy-900); font-size: 9px; font-weight: 800; }
.assistant-compose textarea { width: 100%; min-height: 104px; resize: vertical; padding: 14px; border: 1px solid #cddbe2; border-radius: 13px; outline: none; color: var(--ink); background: #fbfcfc; font-size: 11px; line-height: 1.65; transition: border-color .18s ease, box-shadow .18s ease; }
.assistant-compose textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(30,156,134,.1); background: #fff; }
.assistant-compose textarea:disabled { opacity: .72; }
.assistant-compose-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--muted); font-size: 8px; }
.assistant-compose-actions { display: flex; gap: 9px; margin-top: 15px; }
.assistant-compose-actions .button.primary { flex: 1; }
.assistant-examples { display: grid; gap: 7px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #edf1f3; }
.assistant-examples > strong { margin-bottom: 2px; color: var(--muted); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.assistant-examples button { padding: 10px 11px; border: 1px solid #dce7eb; border-radius: 9px; color: #365264; background: #f7faf9; text-align: left; font-size: 9px; line-height: 1.45; transition: .16s ease; }
.assistant-examples button:hover { border-color: #a9d7cd; color: #176b5d; background: #eef9f6; }
.assistant-safety-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 13px; border-radius: 11px; color: #37665d; background: #edf8f5; }
.assistant-safety-note > span { width: 22px; height: 22px; flex: 0 0 auto; color: var(--teal); }
.assistant-safety-note svg { width: 22px; height: 22px; }
.assistant-safety-note p { margin: 0; font-size: 8px; line-height: 1.6; }
.assistant-safety-note strong { color: #216f62; }
.assistant-chat-log { height: 330px; margin: 18px -4px 0; padding: 14px; overflow-y: auto; border: 1px solid #dce7eb; border-radius: 14px; background: linear-gradient(180deg, #f6faf9, #fbfcfd); scroll-behavior: smooth; }
.assistant-chat-message { max-width: 88%; margin: 0 0 11px; padding: 11px 13px; border-radius: 13px 13px 13px 4px; color: #29475a; background: #fff; box-shadow: 0 4px 13px rgba(16,42,67,.06); }
.assistant-chat-message.user { margin-left: auto; border-radius: 13px 13px 4px 13px; color: #fff; background: linear-gradient(135deg, #137f70, var(--teal)); }
.assistant-chat-author { display: block; margin-bottom: 4px; color: var(--teal); font-size: 7px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.assistant-chat-message.user .assistant-chat-author { color: rgba(255,255,255,.75); }
.assistant-chat-message p { margin: 0; white-space: pre-wrap; font-size: 9px; line-height: 1.65; }
.assistant-chat-message ol { margin: 8px 0 0; padding-left: 18px; font-size: 9px; line-height: 1.65; }
.assistant-chat-typing { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 8px; }
.assistant-chat-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); animation: assistantTyping 1s infinite alternate; }
.assistant-chat-typing span:nth-child(2) { animation-delay: .18s; }
.assistant-chat-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes assistantTyping { to { opacity: .25; transform: translateY(-2px); } }
.assistant-preview { min-height: 620px; padding: 22px; }
.assistant-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 17px; border-bottom: 1px solid #edf1f3; }
.assistant-preview-head .eyebrow { margin-bottom: 4px; }
.assistant-preview-head .button.small { min-height: 34px; padding: 7px 11px; font-size: 8px; }
.assistant-empty { min-height: 470px; display: grid; place-content: center; justify-items: center; padding: 32px; color: var(--muted); text-align: center; }
.assistant-empty > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: var(--teal); background: var(--teal-soft); }
.assistant-empty > span svg { width: 30px; height: 30px; }
.assistant-empty h3 { margin: 18px 0 7px; color: var(--navy-900); font-size: 16px; }
.assistant-empty p { max-width: 400px; margin: 0; font-size: 10px; line-height: 1.65; }
.assistant-empty.compact { min-height: 130px; }
.assistant-response { margin-top: 18px; padding: 14px; border-radius: 12px; background: linear-gradient(105deg, #eef9f6, #f6fafb); }
.assistant-response .assistant-avatar { width: 34px; height: 34px; background: var(--teal); }
.assistant-response small { color: var(--teal); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.assistant-response p { margin: 5px 0 0; color: #29475a; font-size: 10px; line-height: 1.6; }
.assistant-questions { margin-top: 12px; padding: 13px 15px; border: 1px solid #f0d396; border-radius: 11px; background: #fff8e9; }
.assistant-questions strong { color: #956312; font-size: 9px; }
.assistant-questions ul { margin: 8px 0; padding-left: 18px; color: #6d552c; font-size: 9px; line-height: 1.65; }
.assistant-questions p { margin: 0; color: #9a7d49; font-size: 8px; }
.assistant-action-list { display: grid; gap: 10px; margin-top: 14px; }
.assistant-action { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid #dce7eb; border-radius: 12px; background: #fff; }
.assistant-action.ready { border-left: 4px solid var(--teal); }
.assistant-action.needs-input { border-left: 4px solid var(--amber); background: #fffdf8; }
.assistant-action-index { display: flex; align-items: center; flex-direction: column; gap: 10px; padding-right: 10px; border-right: 1px solid #edf1f3; }
.assistant-action-index > strong { color: var(--navy-900); font-size: 11px; white-space: nowrap; }
.assistant-action-select { display: grid; justify-items: center; gap: 4px; color: var(--muted); font-size: 7px; cursor: pointer; }
.assistant-action-select input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }
.assistant-action-select input:disabled { cursor: not-allowed; opacity: .55; }
.assistant-action-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.assistant-action-head small { color: var(--teal); font-size: 7px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.assistant-action-head h4 { margin: 4px 0 0; color: var(--navy-900); font-size: 11px; }
.assistant-confidence { flex: 0 0 auto; padding: 5px 7px; border-radius: 999px; color: #517080; background: #edf3f5; font-size: 7px; font-weight: 800; }
.assistant-action-details { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.assistant-action-details span { padding: 5px 7px; border: 1px solid #e0e8ec; border-radius: 7px; color: #435f70; background: #f8fafb; font-size: 8px; }
.assistant-action-state { margin: 9px 0 0; color: var(--green); font-size: 8px; font-weight: 700; }
.assistant-action.needs-input .assistant-action-state { color: #ad7414; }
.assistant-action-error { margin: 8px 0 0; padding: 7px 8px; border-radius: 7px; color: #a4423b; background: var(--red-soft); font-size: 8px; line-height: 1.5; }
.assistant-row-tools, .assistant-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.assistant-inline-editor, .assistant-refinement { margin-top: 12px; padding: 13px; border: 1px solid #cfe4de; border-radius: 11px; background: #f6fbf9; }
.assistant-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 9px; }
.assistant-edit-grid label > span, .assistant-refinement label > span { display: block; margin-bottom: 5px; color: #526d7d; font-size: 8px; font-weight: 800; }
.assistant-edit-grid input, .assistant-edit-grid select, .assistant-refinement textarea { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #cbdbe1; border-radius: 8px; outline: none; color: var(--ink); background: #fff; font: inherit; font-size: 9px; }
.assistant-edit-grid input:focus, .assistant-edit-grid select:focus, .assistant-refinement textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(30,156,134,.09); }
.assistant-refinement textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.assistant-confirm-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 16px -4px -4px; padding: 14px; border: 1px solid #cfe4de; border-radius: 12px; background: rgba(247,252,250,.96); box-shadow: 0 -8px 22px rgba(16,42,67,.06); backdrop-filter: blur(9px); }
.assistant-confirm-bar strong, .assistant-confirm-bar small { display: block; }
.assistant-confirm-bar strong { color: var(--navy-900); font-size: 10px; }
.assistant-confirm-bar small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.assistant-memory-panel { margin-top: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.assistant-memory-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; cursor: pointer; list-style: none; }
.assistant-memory-panel > summary::-webkit-details-marker { display: none; }
.assistant-memory-panel > summary strong, .assistant-memory-panel > summary small { display: block; }
.assistant-memory-panel > summary strong { color: var(--navy-900); font-size: 11px; }
.assistant-memory-panel > summary small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.assistant-memory-body { padding: 0 20px 20px; border-top: 1px solid #edf1f3; }
.assistant-memory-copy { padding: 17px 0 12px; }
.assistant-memory-copy h3 { margin: 0; color: var(--navy-900); font-size: 13px; }
.assistant-memory-copy p { margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.assistant-memory-body textarea { width: 100%; min-height: 310px; padding: 14px; resize: vertical; border: 1px solid #cddbe2; border-radius: 12px; outline: none; color: var(--ink); background: #fbfcfc; font: inherit; font-size: 9px; line-height: 1.6; }
.assistant-memory-body textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(30,156,134,.1); background: #fff; }
.assistant-memory-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.assistant-memory-upload { cursor: pointer; }
.assistant-memory-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 10px; color: var(--muted); font-size: 7px; }
.assistant-archive-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-top: 15px; }
.assistant-archive-list > span { padding: 10px 12px; border: 1px solid #e0e8ec; border-radius: 9px; background: #f8fafb; }
.assistant-archive-list strong, .assistant-archive-list small { display: block; overflow-wrap: anywhere; }
.assistant-archive-list strong { color: #365264; font-size: 8px; }
.assistant-archive-list small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.whatsapp-kpis .kpi-card > strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.whatsapp-layout { margin-top: 18px; align-items: stretch; }
.whatsapp-layout > .panel { padding: 20px; }
.whatsapp-checklist { display: grid; gap: 9px; margin: 16px 0 0; padding: 0; list-style: none; }
.whatsapp-checklist li { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafb; }
.whatsapp-checklist li > span { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; }
.whatsapp-checklist li > span svg { width: 17px; height: 17px; }
.whatsapp-checklist li.ready > span { color: var(--green); background: #e4f5ec; }
.whatsapp-checklist li.missing > span { color: var(--amber); background: #fff2d5; }
.whatsapp-checklist strong, .whatsapp-checklist small { display: block; }
.whatsapp-checklist strong { font-size: 10px; }
.whatsapp-checklist small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.whatsapp-notes { display: grid; gap: 9px; margin-top: 16px; }
.whatsapp-notes p { margin: 0; padding: 11px 12px; border-radius: 9px; color: #466274; background: #f5f8f9; font-size: 9px; line-height: 1.55; }
.whatsapp-message { max-width: 560px; white-space: pre-wrap; font-size: 9px; line-height: 1.55; }
.whatsapp-table { min-width: 850px; }
.whatsapp-status-applied { color: #287a58; background: #e5f5ed; }
.whatsapp-status-awaiting_confirmation { color: #93630d; background: #fff1cf; }
.whatsapp-status-needs_clarification, .whatsapp-status-failed { color: #a2423c; background: #fde8e5; }
.whatsapp-status-awaiting_admin { color: #345f83; background: #e7f0f7; }
.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) {
  .assistant-layout { grid-template-columns: 1fr; }
  .assistant-preview { min-height: 0; }
  .assistant-empty { min-height: 260px; }
  .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, .employee-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .last-update { display: none; }
  .attendance-month-panel { padding-right: 10px; padding-left: 10px; }
  .attendance-month-table .attendance-month-employee { width: 20%; }
  .attendance-month-day small, .attendance-month-employee .table-subline { 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, .employee-card-grid, .daily-entry-grid { grid-template-columns: 1fr; }
  .employee-profile-summary { 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; }
  .assistant-status { width: 100%; min-width: 0; }
  .assistant-compose, .assistant-preview { padding: 16px; border-radius: 14px; }
  .assistant-chat-log { height: 300px; }
  .assistant-compose textarea { min-height: 96px; }
  .assistant-compose-actions, .assistant-confirm-bar { align-items: stretch; flex-direction: column; }
  .assistant-confirm-bar .button { width: 100%; }
  .assistant-action-head { flex-direction: column; }
  .assistant-action { grid-template-columns: 52px minmax(0, 1fr); padding: 11px; }
  .assistant-action-index { padding-right: 8px; }
  .assistant-edit-grid { grid-template-columns: 1fr; }
  .assistant-memory-panel > summary, .assistant-memory-body { padding-left: 15px; padding-right: 15px; }
  .assistant-memory-actions { align-items: stretch; flex-direction: column; }
  .assistant-memory-actions .button { width: 100%; }
  .whatsapp-layout { grid-template-columns: 1fr; }
  .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%; }
  .attendance-date-grid-wrap { padding: 10px; }
  .attendance-date-weekdays, .attendance-date-grid { gap: 4px; }
  .attendance-date-day { min-height: 30px; border-radius: 7px; }
  .attendance-month-panel { padding: 16px 10px; }
  .attendance-month-table-wrap { overflow: auto; }
  .attendance-month-table { width: max-content; min-width: 100%; table-layout: auto; }
  .attendance-month-table th, .attendance-month-table td { height: 38px; }
  .attendance-month-table .attendance-month-index { width: 32px; min-width: 32px; }
  .attendance-month-table .attendance-month-employee { left: 32px; width: 150px; min-width: 150px; padding: 5px 8px; }
  .attendance-month-day, .attendance-month-cell { width: 30px; min-width: 30px; }
  .attendance-month-cell input { width: 17px; height: 17px; }
  .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; }
  .tax-invoice-filters { grid-template-columns: 1fr; }
  .tax-invoice-approval-items { padding: 11px; }
}
