/* Общие токены макета «Учёт топлива» (приложение и админка) */
:root {
  --bg: #eef1f5; --card: #fff; --ink: #141a21; --ink2: #3b4450; --muted: #6e7884; --faint: #9aa3ad;
  --line: #e3e7ed; --line2: #d3d9e1; --hover: rgba(20, 30, 45, .05);
  --acc: #1f6fe5; --acc-d: #175bc2; --acc-soft: #e7effc;
  --in: #1f9d55; --in-soft: #e2f4e9;
  --sale: #1f6fe5; --sale-soft: #e7effc;
  --out: #df5236; --out-soft: #fcebe6;
  --pay: #7357e8; --pay-soft: #eeeafd;
  --inv: #56657a; --inv-soft: #e9edf2;
  --warn: #c97d07; --warn-soft: #fcf1dc;
  --dt: #e0941a; --ai95: #0f9e9a;
  --r: 16px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font: 15px/1.4 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1, 'cv11' 1; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
input::placeholder, textarea::placeholder { color: var(--faint); }
a { color: var(--acc); text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--inv-soft); color: var(--ink2); }
.tag.warn { background: var(--warn-soft); color: #8d5600; }
.tag.bad { background: var(--out-soft); color: #b13a20; }
.tag.ok { background: var(--in-soft); color: #136c3a; }
.tag.pay { background: var(--pay-soft); color: #5236c4; }
.tag.off { background: #fff4df; color: #94600a; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* прокрутка: тонкая, полупрозрачная, без стрелок и дорожки */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(110, 120, 135, .35); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(110, 120, 135, .6); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

/* свой переключатель */
.sw { position: relative; width: 44px; height: 26px; flex: none; border: 0; padding: 0; border-radius: 99px; background: #cfd6df; transition: background .2s; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .22s cubic-bezier(.3, .7, .3, 1); }
.sw[aria-checked="true"] { background: var(--acc); }
.sw[aria-checked="true"]::after { transform: translateX(18px); }

/* календарь (общий для приложения и админки) */
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-head b { font-size: 16px; font-weight: 650; text-transform: capitalize; }
.cal-head button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; }
.cal-head button:hover:not([disabled]) { background: var(--hover); }
.cal-head button[disabled] { opacity: .25; cursor: default; }
.cal-wd, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-wd span { padding: 6px 0; text-align: center; font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; }
.cal-grid button { position: relative; height: 40px; padding: 0; min-width: 0; border: 0; background: transparent; font-size: 14.5px; font-weight: 500; }
.cal-grid button span { position: relative; z-index: 1; display: grid; place-items: center; width: min(38px, 100%); height: 38px; margin: auto; border-radius: 12px; }
.cal-grid button:hover:not([disabled]) span { background: var(--hover); }
.cal-grid button.we { color: #c9483a; }
.cal-grid button.today span { box-shadow: inset 0 0 0 1.5px var(--acc); font-weight: 700; }
.cal-grid button.in::before { content: ''; position: absolute; inset: 2px 0; background: var(--acc-soft); }
.cal-grid button.ra::before { left: 50%; } .cal-grid button.rb::before { right: 50%; } .cal-grid button.ra.rb::before { display: none; }
.cal-grid button.on span { background: var(--acc); color: #fff; }
.cal-grid button[disabled] { opacity: .28; cursor: default; }
.cal-grid button.pad { visibility: hidden; }
.cal-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cal-quick button { height: 34px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 99px; background: #fff; font-size: 13.5px; font-weight: 600; }
.cal-quick button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
