/* Коровка CRM · v74 «Clean / Light Modern». Purely visual styling; no data, routes,
   event listeners or status semantics are touched. Existing v65-v73 rules remain active. */
:root {
  color-scheme:light;
  --background:#f5f8fd;--foreground:#172d4d;--card:#fff;--card-foreground:#172d4d;
  --popover:#fff;--popover-foreground:#172d4d;
  --primary:#2869e8;--primary-foreground:#fff;
  --secondary:#edf4ff;--secondary-foreground:#25466d;
  --muted:#f1f5fb;--muted-foreground:#637893;
  --accent:#e8f1ff;--accent-foreground:#2456a1;
  --border:#dfe8f5;--input:#d3e1f3;--ring:#4685ef;
  --radius:0.9rem;
  --sidebar:#10233f;--sidebar-foreground:#f7fbff;
  --sidebar-primary:#3075ec;--sidebar-accent:#1c395e;
  --sidebar-border:#294363;
  --k74-bg:#f5f8fd;--k74-line:#dfe8f5;--k74-navy:#1a3152;
  --k74-slate:#637893;--k74-blue:#2869e8;
  --k74-shadow:0 5px 22px rgba(30,69,125,.055),0 1px 2px rgba(30,69,125,.04);
}
html {background:var(--k74-bg);}
body {color:var(--k74-navy);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  background:linear-gradient(155deg,#f8fbff 0%,#f1f6fd 49%,#f5f8fc 100%);min-height:100vh;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
#root,.app {min-height:100vh;}
.workspace {min-width:0;}
/* Side rail stays recognizable but becomes a quieter premium navy. */
.rail {background:linear-gradient(180deg,#102744 0%,#0f203a 100%);border-right:1px solid #27405e;}
.brand-icon {background:#286be4;border-radius:13px;box-shadow:0 5px 14px #07182d35;}
.rail .rail-active,.rail-sections button.k67-nav-active {background:#244a79;color:#fff;border-radius:12px;}
.rail-sections button {border-radius:12px;transition:background-color .16s,color .16s;}
.rail-sections button:hover {background:#1d395d;}
.topbar {border-bottom-color:#e3ebf7;}
.mobile-brand {font-weight:760;letter-spacing:-.025em;}
.page-heading h1 {font-weight:780;letter-spacing:-.035em;color:#193353;}
.page-heading .eyebrow,.breadcrumb,.page-heading p {color:#70829c;}
/* Light surfaces: a single visual system for route, map, reports, products and fridges. */
.stats>div,.territory,.week-tabs [data-slot="tabs-trigger"],.week-tabs .all-base-tab,
#k67-season-tab,#k67-main,#k68-main,#k63-main,#k66-day-report,
.k68-board,.k68-request,.k68-creator,.k67-form,.k67-list,
.k63-map-frame,.k65-product-section,.k69-extra,.k68-dialog,
.k64-map-stage,.route-navigator-sheet,.detail-sheet,.mobile-point {
  border-color:var(--k74-line);
}
.stats>div,.territory,.week-tabs [data-slot="tabs-trigger"],.week-tabs .all-base-tab,
#k67-season-tab,#k67-main,#k68-main,#k63-main,#k66-day-report,
.k68-board,.k68-request,.k68-creator,.k67-form,.k67-list {
  border-radius:16px;box-shadow:var(--k74-shadow);
}
.stats>div,.territory,#k67-main,#k68-main,#k63-main,.k68-board,.k68-request,.k67-form {
  background:#fff;
}
.stats>div{padding:16px 18px;}
.stats strong,.k68-summary b,.k67-big-number,.k66-report-stats button b {font-variant-numeric:tabular-nums;letter-spacing:-.025em;}
/* Tabs: pill-like cards, clear active state; no extra seasonal/day selection. */
.week-tabs [data-slot="tabs-trigger"],.week-tabs .all-base-tab,#k67-season-tab {
  background:#fff;color:#365274;transition:background-color .16s,border-color .16s,box-shadow .16s;
}
.week-tabs [data-slot="tabs-trigger"][data-state="active"],
.week-tabs [data-slot="tabs-trigger"][aria-selected="true"],
.week-tabs [data-route-day][data-state="active"],
.week-tabs .all-base-tab[data-state="active"] {
  background:#e9f2ff;color:#1957bc;border-color:#92b8f0;box-shadow:inset 0 -3px #3075ee,0 3px 13px #2869e80c;
}
body.k67-season-mode #k67-season-tab.k67-active {
  background:#e9f2ff!important;color:#1957bc!important;border-color:#92b8f0!important;
  box-shadow:inset 0 -3px #3075ee!important;
}
#k67-season-tab small,.week-tabs [data-slot="tabs-trigger"] small {color:#6b83a1;}
/* Route cards and compact badges preserve operational signal colours. */
.surface-header,.k63-main-top,.k68-board-title {background:#f8fbff;border-color:#e6edf7;}
.overview-point,.mobile-point {border-bottom-color:#eaf0f8;}
.overview-point:hover,.mobile-point:focus-within {background:#f9fbff;}
.overview-point-name,.k63-map-item strong,.k67-row-info b {color:var(--k74-navy);}
.mobile-point-number,.count,.k63-map-num {background:#e9f1fc;color:#2765be;border-radius:9px;}
.status-pill,.k66-product-pill,.k63-pill,.activity-badge {border-radius:9px;}
.k66-product-pill {padding:4px 7px;letter-spacing:0;}
.current-stop:not(.current-stop-map) {background:#f8fbff;border-color:#dfe9f7;}
/* Forms must remain native and large enough for field work. */
.k63-direct-date input,.k67-tools input,.k67-tools select,
.k67-form input,.k67-form select,.k68-input-grid input,.k68-dialog input,
.k68-dialog select,.k69-qty-wrap,.k68-history-head select,
.k65-product-choices .k65-choice {
  border-color:#cfdef1;border-radius:11px;background:#fff;color:#294663;
}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,
.k65-product-choices .k65-choice:focus-visible {
  outline:2px solid #3880f4;outline-offset:2px;
}
/* Day report: stats visually grouped, with contrast left intact. */
#k66-day-report {background:#f9fbff;padding:16px;}
.k66-report-heading strong,.k67-head h2,.k68-title h2,.k68-section-title {color:#1b395e;letter-spacing:-.02em;}
.k66-report-stats {gap:8px;}
.k66-report-stats button {border:1px solid #e0eafb;border-radius:12px;background:#fff;padding:12px 11px;box-shadow:0 2px 9px #2e5a9a08;}
.k66-report-stats button:hover {border-color:#a6c5f1;background:#f8fbff;}
.k66-report-stats button[aria-pressed="true"] {background:#e8f2ff;border-color:#82abed;}
.k66-report-stats button b {color:#1e467f;}
.k66-day-list {border-color:#e2ebf6;border-radius:12px;}
/* Products and fridges: restrained headers, consistent section spacing. */
.k68-summary>div,.k67-metrics>div {background:#f2f7ff;border:1px solid #e0eafb;border-radius:13px;}
.k68-board-title {padding:15px 16px;}
.k68-board-title h3,.k68-request-head>strong {color:#234970;}
.k68-stock-row,.k68-debt-row,.k69-sku-row {border-top-color:#e9eff7;}
.k68-stock-row:hover,.k69-sku-row:hover,.k68-debt-row:hover {background:#fafcff;}
.k69-qty-wrap {background:#fafdff;}
.k68-create-btn,.k67-submit-row button,.k67-tools button,.k67-restore button {
  background:#2869e8;border-radius:11px;box-shadow:0 2px 8px #2869e827;
}
.k68-create-btn:hover,.k67-submit-row button:hover,.k67-tools button:hover,.k67-restore button:hover {background:#1858d2;}
.k68-creator {background:#f7faff;}
.k68-add-line {background:#fff;color:#2869e8;}
.k68-add-line:hover {background:#f1f6ff;}
.k68-pay {border-radius:10px;}
.k68-debt-price b {color:#a3433c;}
.k65-product-section {background:#f8fbff;}
.k65-product-choices .k65-choice {background:#fff;}
.k65-product-choices .k65-choice.is-selected {background:#eaf3ff;color:#1d5bc0;border-color:#8ab3ef;}
.k65-product-choices .k65-choice-yes.is-selected {background:#e4f7ed;color:#116b3c;border-color:#80cfaa;}
.k65-product-choices .k65-choice-no.is-selected {background:#fff0ed;color:#9d432f;border-color:#ecae9e;}
.k63-main-summary b {border-radius:9px;background:#edf4ff;color:#345e99;}
.k63-map-item {border-color:#ecf1f8;}
.k64-map-stage {border-radius:14px;}
/* Floating/sheet interfaces remain white and legible, with a real Save button. */
.detail-sheet,.route-navigator-sheet,.mobile-more-sheet {background:#fff;}
.detail-sheet [data-slot="sheet-header"] {border-bottom-color:#e8eff8;}
.detail-sheet [data-slot="sheet-title"] {color:#1c3557;letter-spacing:-.025em;}
.detail-body .choice,.detail-body input,.detail-body select {border-radius:11px;}
.client-save-bar,.activity-footer {background:#fff;}
/* Mobile-first details: the menu is glassy and single-row, no changes to click handlers. */
@media (max-width:1000px){
  .workspace {padding-inline:18px;}
}
@media (max-width:760px){
  body {background:#f5f8fd;}
  .workspace {padding:0 12px max(86px,env(safe-area-inset-bottom,0px));}
  .topbar {border-color:#e8eff9;}
  .week-strip {margin-bottom:13px;}
  .week-tabs:has(#k67-season-tab){gap:8px!important;}
  .week-tabs [data-slot="tabs-trigger"],.week-tabs .all-base-tab,#k67-season-tab {
    border-radius:14px;box-shadow:0 3px 10px #1e4f930a;
  }
  .week-tabs [data-slot="tabs-trigger"]{padding:10px 8px;}
  .week-tabs [data-slot="tabs-trigger"] > span{font-size:14px;}
  #k67-main,#k68-main {border-radius:15px;box-shadow:var(--k74-shadow);}
  #k66-day-report {padding:11px;}
  .k66-report-stats {gap:5px;}
  .k66-report-stats button{padding:9px 8px;min-height:56px;}
  .k66-report-stats button b{font-size:19px;}
  .current-stop:not(.current-stop-map){border-radius:12px;box-shadow:0 3px 14px #214a801a;}
  .mobile-point {box-shadow:none;border-radius:0;}
  .mobile-bottom-nav.k73-unified-nav,.mobile-bottom-nav.k69-uniform-nav {
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
    background:rgba(255,255,255,.97);border-top:1px solid #e1eafa;
    box-shadow:0 -5px 24px #10294a15;gap:3px!important;
    padding:8px 8px max(9px,env(safe-area-inset-bottom,0px))!important;
    -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  }
  .mobile-bottom-nav.k73-unified-nav>button,.mobile-bottom-nav.k69-uniform-nav>button {
    min-height:61px!important;border-radius:13px!important;
    font-family:inherit!important;font-size:10px!important;letter-spacing:0!important;
    font-weight:650!important;line-height:1.15!important;color:#6e8099;
  }
  .mobile-bottom-nav.k73-unified-nav>button.active,.mobile-bottom-nav.k69-uniform-nav>button.active,
  .mobile-bottom-nav.k73-unified-nav>button.k67-nav-active,
  .mobile-bottom-nav.k69-uniform-nav>button.k67-nav-active {
    color:#165ccd!important;background:#e9f2ff!important;
  }
  .mobile-bottom-nav.k73-unified-nav>button svg,.mobile-bottom-nav.k69-uniform-nav>button svg {
    width:22px!important;height:22px!important;
  }
  #k67-main .k67-head h2 {font-size:20px;}
}
@media(max-width:380px){
  .workspace{padding-left:9px;padding-right:9px;}
  .k66-report-stats{gap:4px;}
  .k66-report-stats button {padding:8px 5px;}
}
@media(prefers-reduced-motion:reduce){
 .rail-sections button,.week-tabs [data-slot="tabs-trigger"],.week-tabs .all-base-tab,
 .k68-add-line {transition:none!important;}
}
