:root {
  --bg: #f3f5f9; --card: #ffffff; --text: #0f1729; --text-2: #475467; --muted: #7a8599; --line: #e6e9f0; --line-2: #eef1f6;
  --side: #0c1424; --side-2: #16213a; --side-text: #aab4c8; --side-active: #ffffff;
  --brand: #2a78d6; --brand-2: #1c5cab; --brand-soft: #e8f1fc;
  --accent: #eb6834; --accent-soft: #fdeee7;
  --ok: #157a46; --ok-soft: #e4f5ec; --warn: #a15c00; --warn-soft: #fff3df;
  --bad: #c3322b; --bad-soft: #fdebea; --info: #5a46c2; --info-soft: #efecfc;
  --series-1: #2a78d6; --series-2: #eb6834;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 12px; } .error { color: var(--bad); font-size: 13px; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 10px; padding: 8px 13px; transition: background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { border-color: #cdd3de; background: #fafbfd; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(42,120,214,.3); }
.btn.primary:hover { background: var(--brand-2); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: #eef1f6; }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 5px 9px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; justify-content: center; padding: 11px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: default; }
.icon-btn { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 6px; border-radius: 8px; display: inline-flex; }
.icon-btn:hover { background: rgba(255,255,255,.08); }
input, select, textarea { font: inherit; font-size: 14px; padding: 9px 11px; border: 1px solid #d5dbe5; border-radius: 10px; background: #fff; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(42,120,214,.15); }
textarea { width: 100%; min-height: 76px; resize: vertical; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin: 12px 0 0; }
label > input, label > select, label > textarea { display: block; width: 100%; margin-top: 5px; font-weight: 400; }
label.check { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--text); font-size: 13px; margin: 0; }
label.check input { width: auto; margin: 0; }
.search { position: relative; } .search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search input { padding-left: 32px; min-width: 240px; }

/* Brand */
.brandmark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #3f8ef0 0%, #1c5cab 100%); display: grid; place-items: center; color: #fff; box-shadow: 0 4px 12px rgba(42,120,214,.35); flex: none; }
.brandmark svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brandmark.sm { width: 30px; height: 30px; border-radius: 9px; } .brandmark.sm svg { width: 18px; height: 18px; }
.brandmark.big { width: 64px; height: 64px; border-radius: 18px; } .brandmark.big svg { width: 36px; height: 36px; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #f6b48f; background: rgba(235,104,52,.16); padding: 2px 7px; border-radius: 6px; }
.tag.light { color: #fff; background: rgba(255,255,255,.18); }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: radial-gradient(120% 90% at 0% 0%, #1c5cab 0%, #0c1424 60%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.login-art h1 { font-size: 36px; font-weight: 800; margin-top: 12px; }
.login-art p { color: #c9d4e8; max-width: 420px; font-size: 16px; }
.login-form { align-self: center; justify-self: center; width: 100%; max-width: 380px; padding: 32px; }
.login-form h2 { font-size: 24px; }
.login-form .btn { margin-top: 20px; }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex: none; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 14px; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px 20px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 14px; }
.side-name { color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; margin-bottom: 3px; }
#nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--side-text); font-weight: 500; cursor: pointer; border: 0; background: transparent; font: inherit; text-align: left; width: 100%; transition: background .15s, color .15s; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active { background: var(--side-2); color: var(--side-active); box-shadow: inset 3px 0 0 var(--brand); }
.nav-item .count { margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #5f6b83; padding: 14px 12px 6px; font-weight: 700; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid rgba(255,255,255,.07); }
.side-user-text { flex: 1; min-width: 0; } .side-user-text > div:first-child { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-role { font-size: 11.5px; text-transform: capitalize; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; background: #2a78d6; flex: none; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(243,245,249,.88); backdrop-filter: blur(10px); display: flex; align-items: center; gap: 16px; padding: 18px 28px 14px; }
.page-title { flex: 1; min-width: 0; } .page-title h1 { font-size: 22px; font-weight: 800; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.mobile-brand { display: none; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pill.warn .dot { background: #e5a000; } .pill.bad .dot { background: var(--bad); }
main { padding: 6px 28px 40px; }

/* Cards & layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h3 { font-size: 15px; font-weight: 700; }
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 16px; }
.cols-2 { grid-template-columns: 1.6fr 1fr; } .cols-2e { grid-template-columns: 1fr 1fr; }
.kpi { display: flex; gap: 14px; align-items: flex-start; }
.kpi-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.kpi-icon svg { width: 21px; height: 21px; }
.kpi .label { color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.kpi .value { font-size: clamp(20px, 1.9vw, 26px); white-space: nowrap; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.t-blue { background: var(--brand-soft); color: var(--brand); } .t-orange { background: var(--accent-soft); color: var(--accent); }
.t-red { background: var(--bad-soft); color: var(--bad); } .t-green { background: var(--ok-soft); color: var(--ok); } .t-violet { background: var(--info-soft); color: var(--info); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }
.seg { display: inline-flex; background: #e9edf3; border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,24,40,.1); }

/* Tables */
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; vertical-align: middle; }
th { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #fafbfd; }
tbody tr:last-child td { border-bottom: 0; }
td.wrap { white-space: normal; min-width: 170px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr.click { cursor: pointer; transition: background .12s; } tbody tr.click:hover { background: #f6f9fe; }
tfoot td { font-weight: 800; background: #fafbfd; border-top: 1px solid var(--line); }
.cust { font-weight: 600; } .cust-sub { color: var(--muted); font-size: 12px; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #eef1f6; color: #475467; white-space: nowrap; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip.plain::before { display: none; }
.chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); } .chip.info { background: var(--info-soft); color: var(--info); }
.chip.brand { background: var(--brand-soft); color: var(--brand); } .chip.accent { background: var(--accent-soft); color: var(--accent); }

.progress { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.bar { flex: 1; height: 7px; background: #e9edf4; border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.bar.full > i { background: var(--ok); }
.progress b { font-variant-numeric: tabular-nums; }

/* Lists */
.li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.li:last-child { border-bottom: 0; }
.li .grow { flex: 1; min-width: 0; }
.li.click { cursor: pointer; border-radius: 8px; } .li.click:hover { background: #f8fafd; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: #b4bdcc; margin-bottom: 6px; }

/* Charts */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tip { position: absolute; pointer-events: none; background: #0f1729; color: #fff; font-size: 12px; padding: 7px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -110%); box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 3; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 34px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.hbar .track { height: 10px; background: #eef1f6; border-radius: 5px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--series-1); border-radius: 5px; }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.hbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Planner */
.planner { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.needs { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 14px; }
.need { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 9px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.need:hover { border-color: #c6d6ee; box-shadow: 0 2px 10px rgba(42,120,214,.08); }
.need-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.need .meta { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.need-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 6px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(140px, 1fr)); gap: 10px; overflow-x: auto; }
.day { background: #fff; border: 1px solid var(--line); border-radius: 12px; min-height: 260px; display: flex; flex-direction: column; }
.day.today { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(42,120,214,.12); }
.day-head { padding: 10px 11px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: baseline; }
.day-head b { font-size: 13px; } .day-head span { font-size: 11.5px; color: var(--muted); }
.day-body { padding: 8px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.slot { border-radius: 9px; padding: 8px 9px; font-size: 12px; border: 1px solid var(--line); background: #fafbfd; cursor: pointer; border-left: 3px solid #b8c2d3; }
.slot:hover { background: #f3f7fd; }
.slot .t { font-weight: 700; font-size: 12px; display: flex; justify-content: space-between; gap: 6px; }
.slot .c { font-weight: 600; color: var(--text); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .s { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.planned { border-left-color: var(--accent); background: #fffaf7; border-style: dashed; border-left-style: solid; }
.slot.booked { border-left-color: var(--brand); background: #f6f9fe; }
.slot.done { border-left-color: var(--ok); background: #f4fbf7; }
.slot.late { border-left-color: var(--bad); background: #fff7f6; }
.add-slot { border: 1px dashed #cfd6e2; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; padding: 6px; cursor: pointer; margin-top: auto; }
.add-slot:hover { color: var(--brand); border-color: var(--brand); }
.keyrow { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.keyrow span { display: inline-flex; align-items: center; gap: 6px; }
.keyrow i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border-left: 3px solid; background: #fafbfd; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Schedule */
.sched-group { margin-bottom: 18px; }
.sched-group h3 { font-size: 14px; display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.job { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.job:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16,24,40,.08); }
.job .time { font-weight: 800; font-size: 15px; min-width: 48px; font-variant-numeric: tabular-nums; }
.job .grow { flex: 1; min-width: 0; }
.job .meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-foot { display: flex; gap: 6px; align-items: center; margin-top: 7px; flex-wrap: wrap; }

/* Overlays */
.overlay { position: fixed; inset: 0; z-index: 30; }
.overlay-bg { position: absolute; inset: 0; background: rgba(12,20,36,.45); backdrop-filter: blur(2px); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(580px, 100%); background: #fff; overflow-y: auto; padding: 22px 24px; box-shadow: -10px 0 40px rgba(0,0,0,.18); animation: slide .2s ease; }
.modal-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
@keyframes slide { from { transform: translateX(30px); opacity: .5; } to { transform: none; opacity: 1; } }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 13px; margin: 14px 0 18px; background: #fafbfd; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; }
.kv div:nth-child(odd) { color: var(--muted); }
.row { display: flex; gap: 12px; } .row > * { flex: 1; }
.section-title { font-size: 14px; font-weight: 700; margin: 22px 0 6px; display: flex; align-items: center; gap: 8px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #0f1729; color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13px; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.bottom-nav { display: none; }

@media (max-width: 1100px) {
  .cols-2, .cols-2e { grid-template-columns: 1fr; }
  .planner { grid-template-columns: 1fr; } .needs { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .login { grid-template-columns: 1fr; } .login-art { padding: 32px 24px; } .login-art h1 { font-size: 26px; }
  .topbar { flex-wrap: wrap; padding: 12px 16px; gap: 8px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; width: 100%; font-weight: 700; }
  .mobile-brand .side-name { color: var(--text); margin: 0; }
  .page-title h1 { font-size: 19px; }
  main { padding: 4px 16px 90px; }
  .search input { min-width: 0; width: 100%; } .search { flex: 1 1 100%; }
  .week { grid-template-columns: 1fr; } .day { min-height: 0; }
  .kv { grid-template-columns: 110px 1fr; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--side); z-index: 20; overflow-x: auto; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav button { flex: 1 0 64px; border: 0; background: transparent; color: var(--side-text); font: inherit; font-size: 10.5px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 2px; border-radius: 8px; position: relative; }
  .bottom-nav button.active { color: #fff; background: var(--side-2); }
  .bottom-nav .count { position: absolute; top: 0; right: 10px; background: var(--bad); color: #fff; font-size: 9.5px; padding: 0 5px; border-radius: 8px; }
}
@media print {
  .sidebar, .topbar .top-actions, .toolbar, .bottom-nav, .no-print { display: none !important; }
  body { background: #fff; } main { padding: 0; } .job, .card, .tablewrap { box-shadow: none; }
}
.sidebar { align-self: flex-start; }
.kpi > div:last-child { min-width: 0; }
.planner { grid-template-columns: 272px 1fr; }
.week { grid-template-columns: repeat(7, minmax(112px, 1fr)); gap: 8px; }
.day-head { flex-direction: column; gap: 0; padding: 9px 10px; }
.slot { padding: 7px 8px; font-size: 11.5px; }
.slot .avatar.sm { width: 20px; height: 20px; font-size: 9px; }
.need-foot { flex-wrap: wrap; }
.need-btns { display: inline-flex; gap: 6px; margin-left: auto; }
.who { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
@media (max-width: 1250px) { .planner { grid-template-columns: 1fr; } .needs { position: static; max-height: 420px; } }
.kpis > .card { min-width: 0; }
.kpi .value { white-space: normal; }
.kpi .value .cur { font-size: 13px; font-weight: 700; color: var(--text-2); margin-right: 3px; letter-spacing: 0; }
.kpi { gap: 12px; } .kpi-icon { width: 38px; height: 38px; }
.cur { margin-right: 4px; }
@media (max-width: 760px) {
  .page-title { flex: 1 1 100%; order: 2; }
  .top-actions { order: 3; }
  .week { grid-template-columns: 1fr; overflow: visible; }
  .day { min-height: 0; }
  .mobile-brand .tag { color: #c4521f; background: var(--accent-soft); }
  .day-head { flex-direction: row; }
}
@media (max-width: 760px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { flex-direction: column; gap: 8px; padding: 14px; }
  .kpi .value { font-size: 22px; }
}
.copy { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 2px 4px; border-radius: 6px; vertical-align: middle; display: inline-flex; }
.copy:hover { background: var(--brand-soft); color: var(--brand); }
.copy svg { width: 14px; height: 14px; }

/* ---------- Planner v2 (one day at a time) ---------- */
.daystrip { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 2px; }
.daychip { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 1px; transition: border-color .15s, box-shadow .15s; }
.daychip:hover { border-color: #c6d6ee; }
.daychip.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(42,120,214,.15); background: var(--brand-soft); }
.dc-day { font-weight: 700; font-size: 14px; } .dc-date { font-size: 12px; color: var(--muted); }
.dc-nums { font-size: 11.5px; color: var(--text-2); margin-top: 4px; }
.n-due { color: #b4501f; } .n-plan { color: var(--accent); } .n-book { color: var(--brand); }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.step3 { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px dashed #cfd6e2; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.step3 .num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.plan2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pcard { padding: 14px; min-width: 0; }
.plist { max-height: calc(100vh - 330px); min-height: 200px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--brand-soft); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; font-size: 13px; }
.bulk input { padding: 6px 8px; font-size: 13px; } #bulkWasher { width: 130px; } #bulkTime { width: 110px; }
.grp { border: 1px solid var(--line-2); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.grp summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-weight: 700; font-size: 13px; background: #fafbfd; border-radius: 10px; }
.grp summary::-webkit-details-marker { display: none; }
.grp summary svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--muted); }
.grp[open] summary { border-bottom: 1px solid var(--line-2); border-radius: 10px 10px 0 0; }
.grp-r { display: inline-flex; gap: 6px; align-items: center; }
.prow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); border-left: 3px solid transparent; }
.prow:last-child { border-bottom: 0; }
.prow input[type=checkbox] { width: 18px; height: 18px; margin: 0; flex: none; }
.prow .pmain { flex: 1; min-width: 0; cursor: pointer; }
.prow .pmain .cust, .prow .pmain .cust-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .pmeta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.prow .ptime { font-weight: 800; font-variant-numeric: tabular-nums; width: 44px; flex: none; }
.prow .pbtns { display: inline-flex; gap: 4px; }
.prow.planned { border-left-color: var(--accent); background: #fffaf7; cursor: pointer; }
.prow.booked { border-left-color: var(--brand); cursor: pointer; }
.prow.done { border-left-color: var(--ok); cursor: pointer; opacity: .8; }
.psum { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); margin: -4px 0 10px; }
.psum .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.dot.o { background: var(--accent); } .dot.b { background: var(--brand); } .dot.g { background: var(--ok); }
@media (max-width: 1100px) { .plan2 { grid-template-columns: 1fr; } .plist { max-height: none; } }
@media (max-width: 760px) { .daystrip { grid-template-columns: repeat(7, 132px); } .steps3 { grid-template-columns: 1fr; } .prow { flex-wrap: wrap; } .prow .pmeta { justify-content: flex-start; } }
#xlsxBtn { gap: 6px; }
@media (max-width: 760px) { #xlsxBtn span { display: none; } }
@media (max-width: 760px) { #syncPill .pill-extra { display: none; } #syncPill { min-width: 0; white-space: normal; } .top-actions { flex-wrap: wrap; max-width: 100%; } }
.sync-banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; line-height: 1.45; border: 1px solid; }
.sync-banner .i { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.sync-banner.bad { background: #fdecec; border-color: #f3c2c2; color: #8a1c1c; }
.sync-banner.warn { background: #fff4e0; border-color: #f2d7a6; color: #7a4a00; }
