/* ═══════════════════════════════════════════════════════════════════════
   SoftClub HR Control — панели идоракунӣ
   Ором, фаҳмо ва дақиқ: коғази гарм, сабзи амиқ, тиллои нарм.
   Телефон (< 700px): менюи поён · Планшет (700–1099px): менюи нишонаҳо ·
   Компютер (≥ 1100px): менюи пурраи паҳлӯ. Бе китобхонаи беруна.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─────────────── Шрифт: Golos Text (танҳо ҳарфҳои лозимӣ) ─────────────── */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/golos-cyr-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/golos-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/golos-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─────────────── Рангҳо ва андозаҳо ─────────────── */
:root {
  --font: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --bg: #F4F5F2;
  --surface: #FFFFFF;
  --surface-2: #EEF1EC;
  --surface-3: #E5E9E2;
  --border: #E1E5DE;
  --border-2: #CCD3CB;
  --text: #16201B;
  --text-2: #536159;
  --text-3: #7C8A82;

  --brand: #146B53;
  --brand-2: #1B7E62;
  --brand-soft: #E7F2EC;
  --brand-text: #0E5A45;

  --ok: #1F8A5B;
  --ok-soft: #E4F4EC;
  --ok-text: #166E49;
  --warn: #B8831B;
  --warn-soft: #FAF0D8;
  --warn-text: #8A6110;
  --danger: #BB4B44;
  --danger-soft: #F9E8E6;
  --danger-text: #94332E;
  --info: #2F6F93;
  --info-soft: #E4F0F6;
  --info-text: #245675;
  --violet: #6D5AAE;
  --violet-soft: #EFECF9;
  --violet-text: #58478F;
  --muted: #7C8A82;
  --muted-soft: #EFF1ED;
  --gold: #C9A96A;

  --side-bg: #0D211B;
  --side-bg-2: #102A22;
  --side-text: #DCE7E1;
  --side-muted: #8DA49A;

  --shadow-sm: 0 1px 2px rgba(22, 32, 27, .04);
  --shadow: 0 1px 2px rgba(22, 32, 27, .04), 0 10px 28px -18px rgba(22, 32, 27, .22);
  --shadow-lg: 0 28px 80px -24px rgba(13, 33, 27, .38);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --tabbar-h: 60px;
  --side-w: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --focus: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0B1411;
  --surface: #111D18;
  --surface-2: #16241E;
  --surface-3: #1D2E26;
  --border: #22332B;
  --border-2: #32473C;
  --text: #E9EEE9;
  --text-2: #A8B8AE;
  --text-3: #74867B;

  --brand: #5BC49E;
  --brand-2: #78D4B2;
  --brand-soft: #133226;
  --brand-text: #8ADFC1;

  --ok: #4CC08A;
  --ok-soft: #123024;
  --ok-text: #7AD9AC;
  --warn: #E0AE55;
  --warn-soft: #33270F;
  --warn-text: #EAC37B;
  --danger: #E7827A;
  --danger-soft: #3A1B19;
  --danger-text: #F0A29B;
  --info: #74B9D8;
  --info-soft: #122A36;
  --info-text: #9ACCE2;
  --violet: #B4A3E8;
  --violet-soft: #231E38;
  --violet-text: #C7B9F0;
  --muted: #5F7268;
  --muted-soft: #1A2822;
  --gold: #D6B97D;

  --side-bg: #08130F;
  --side-bg-2: #0B1B15;
  --side-text: #DCE7E1;
  --side-muted: #7C948A;

  --shadow-sm: 0 1px 0 rgba(255, 255, 255, .02);
  --shadow: 0 1px 0 rgba(255, 255, 255, .02), 0 16px 36px -22px rgba(0, 0, 0, .75);
  --shadow-lg: 0 32px 90px -24px rgba(0, 0, 0, .75);

  color-scheme: dark;
}

/* ─────────────── Асос ─────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(1000px 520px at 88% -12%, color-mix(in srgb, var(--brand) 5%, transparent), transparent 62%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--brand-text); }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--brand-soft); color: var(--brand-text); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
.num, .kpi__value, .mini b, .item__time, .m-sum, .mc { font-variant-numeric: tabular-nums; }
.spacer { flex: 1; }
.row-flex { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ─────────────── Логотип ─────────────── */
.logo {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #174536, #0C1F19);
  color: #F4EFE2;
  font-weight: 800;
  letter-spacing: .04em;
  font-size: 12.5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 2px 6px rgba(13, 33, 27, .16);
}
.logo::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.logo--sm { width: 32px; height: 32px; border-radius: 10px; font-size: 11px; }
.logo--md { width: 46px; height: 46px; border-radius: 14px; font-size: 14.5px; }
.logo--lg { width: 58px; height: 58px; border-radius: 17px; font-size: 19px; }
.logo--lg::after { width: 6px; height: 6px; right: 8px; top: 8px; }

/* ─────────────── Тугмаҳо ─────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 13.8px;
  line-height: 1.2;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  transition: background .16s, border-color .16s, color .16s, transform .12s, box-shadow .16s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.975); }
.btn:disabled, .btn.is-loading { opacity: .55; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }
.btn span:empty { display: none; }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(20, 107, 83, .22);
}
.btn--primary:hover { background: var(--brand-2); }
:root[data-theme="dark"] .btn--primary { color: #06130F; }
:root[data-theme="dark"] .btn--primary:hover { color: #06130F; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: var(--danger); filter: brightness(1.06); }
.btn--ok { background: var(--ok); color: #fff; }
.btn--ok:hover { background: var(--ok); filter: brightness(1.06); }
:root[data-theme="dark"] .btn--ok,
:root[data-theme="dark"] .btn--danger { color: #07130F; }
.btn--ghost {
  background: var(--surface);
  border-color: var(--border-2);
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--border-2); }
.btn--soft { background: var(--brand-soft); color: var(--brand-text); }
.btn--soft:hover { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); }
.btn--soft-danger { background: var(--danger-soft); color: var(--danger-text); }
.btn--soft-danger:hover { background: color-mix(in srgb, var(--danger) 18%, var(--surface)); }
.btn--soft-ok { background: var(--ok-soft); color: var(--ok-text); }
.btn--soft-ok:hover { background: color-mix(in srgb, var(--ok) 18%, var(--surface)); }
.btn--link { background: none; border-color: transparent; color: var(--brand-text); padding: 0 4px; }
.btn--link:hover { background: none; text-decoration: underline; }
.btn--sm { min-height: 33px; padding: 0 11px; font-size: 12.8px; border-radius: 9px; gap: 6px; }
.btn--sm svg { width: 14px; height: 14px; }
.btn--lg { min-height: 46px; font-size: 15px; border-radius: 11px; }
.btn--block { width: 100%; }
.btn--icon { width: 34px; min-height: 34px; padding: 0; }

.iconbtn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: background .16s, border-color .16s;
}
.iconbtn:hover { background: var(--surface-2); border-color: var(--border-2); }
.iconbtn:active { transform: scale(.95); }
.iconbtn svg { width: 17px; height: 17px; }
.iconbtn.is-spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.linkbtn {
  background: none;
  border: 0;
  padding: 3px 2px;
  color: var(--brand-text);
  font-weight: 600;
  font-size: 12.8px;
  border-radius: 6px;
}
.linkbtn:hover { text-decoration: underline; }

/* ─────────────── Майдонҳо ─────────────── */
.stack { display: flex; flex-direction: column; gap: 13px; }
.stack--sm { gap: 8px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field__label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field__hint { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.input, .field input, .field select, .field textarea, .select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border-2);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  font-size: 16px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.field textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--text-3); opacity: .9; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .select:focus {
  border-color: var(--brand);
  box-shadow: var(--focus);
}
select.input, select.select, .field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C8A82' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}
input[type="date"].input, input[type="month"].input, input[type="time"].input { min-width: 0; }
.field__wrap { position: relative; display: block; }
.field__wrap input { padding-right: 44px; }
.field__eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--text-3);
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.field__eye:hover { color: var(--text-2); background: var(--surface-2); }
.field__eye svg { width: 17px; height: 17px; }

.alert {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  line-height: 1.5;
}
.alert b { font-weight: 650; }
.alert--danger { background: var(--danger-soft); color: var(--danger-text); }
.alert--warn { background: var(--warn-soft); color: var(--warn-text); }
.alert--info { background: var(--brand-soft); color: var(--brand-text); }
.alert--ok { background: var(--ok-soft); color: var(--ok-text); }

/* Switch */
.switch { position: relative; display: inline-flex; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span {
  width: 42px;
  height: 24px;
  border-radius: 99px;
  background: var(--border-2);
  position: relative;
  transition: background .2s;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(13, 33, 27, .25);
  transition: transform .2s;
}
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Сегментҳо */
.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.seg button {
  border: 0;
  background: none;
  padding: 6px 13px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  transition: background .16s, color .16s, box-shadow .16s;
}
.seg button.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .seg button.is-active { background: var(--surface-3); }
.seg--block { display: flex; }
.seg--block button { flex: 1; }

.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.8px;
  font-weight: 600;
  color: var(--text-2);
  transition: background .16s, color .16s, border-color .16s;
}
.chip b { color: var(--text); font-weight: 700; }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.is-active b { color: #fff; }
.chip .dot { width: 7px; height: 7px; }
:root[data-theme="dark"] .chip.is-active { color: #06130F; }
:root[data-theme="dark"] .chip.is-active b { color: #06130F; }

.daychips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 420px; }
.daychips button {
  width: auto;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  font-weight: 650;
  font-size: 12.5px;
  color: var(--text-3);
  transition: background .16s, color .16s, border-color .16s;
}
.daychips button.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
:root[data-theme="dark"] .daychips button.is-on { color: #06130F; }

.gracechips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .gracechips { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.gracechips button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-2);
}
.gracechips b { font-size: 15px; font-weight: 750; color: var(--text); font-variant-numeric: tabular-nums; }
.gracechips small { font-size: 11px; color: var(--text-3); }
.gracechips button.is-on { border-color: var(--brand); background: var(--brand-soft); }
.gracechips button.is-on b, .gracechips button.is-on small { color: var(--brand-text); }
.grace-explain {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
}
.grace-explain p { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.grace-explain .dot { flex-shrink: 0; transform: translateY(-1px); }
.grace-explain b { color: var(--text); }

/* ─────────────── Нишонаҳо ─────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11.8px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--surface-2);
  color: var(--text-2);
}
.pill svg { width: 12px; height: 12px; }
.pill--ok { background: var(--ok-soft); color: var(--ok-text); }
.pill--warn { background: var(--warn-soft); color: var(--warn-text); }
.pill--danger { background: var(--danger-soft); color: var(--danger-text); }
.pill--info { background: var(--info-soft); color: var(--info-text); }
.pill--violet { background: var(--violet-soft); color: var(--violet-text); }
.pill--muted { background: var(--muted-soft); color: var(--text-3); }
.pill--brand { background: var(--brand-soft); color: var(--brand-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}
.tag--ok { background: var(--ok-soft); color: var(--ok-text); }
.tag--warn { background: var(--warn-soft); color: var(--warn-text); }
.tag--danger { background: var(--danger-soft); color: var(--danger-text); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: 1px; }
.badge-inline {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}
:root[data-theme="dark"] .badge-inline { color: #06130F; }

/* ─────────────── Вуруд ─────────────── */
.login {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  overflow: hidden;
  background:
    radial-gradient(820px 480px at 8% -8%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 62%),
    radial-gradient(700px 420px at 108% 108%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 60%),
    var(--bg);
}
.login::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  top: -150px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 13%, transparent);
  pointer-events: none;
}
.login__shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  max-width: 960px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.login__aside { display: none; }
.login__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 22px 26px;
  min-width: 0;
}
.login__head { text-align: center; margin-bottom: 22px; }
.login__logo { display: grid; margin: 0 auto 14px; }
.login__head h1 { font-size: 23px; font-weight: 750; letter-spacing: -.025em; }
.login__head p { margin-top: 5px; color: var(--text-2); font-size: 13.5px; }
.login__tg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 2px 0 14px;
  color: var(--text-2);
  font-size: 13.5px;
}
.login__hint {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.55;
}
.login__hint b { color: var(--text); font-weight: 650; }
.login__hint code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--text);
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: .94em;
}
.login__foot {
  text-align: center;
  color: var(--text-3);
  font-size: 11.8px;
  letter-spacing: .02em;
  margin: 22px 0 0;
}
.login .btn--primary { min-height: 46px; font-size: 15px; }
.login .field input { min-height: 44px; }
.spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2.5px solid var(--surface-3);
  border-top-color: var(--brand);
  animation: spin .8s linear infinite;
  flex-shrink: 0;
}
.login__brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 46px;
  color: #F4EFE2;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
}
.login__aside .logo {
  background: linear-gradient(150deg, #F7F2E5, #E7DEC8);
  color: #12271F;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}
.login__aside .logo::after { background: #9A7B3E; }
.login__points { list-style: none; margin-top: 30px; }
.login__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
  color: #C7D6CE;
  font-size: 13px;
  line-height: 1.45;
}
.login__point {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 106, .45);
  color: #D8BE89;
  font-size: 10.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.login__aside-foot {
  margin-top: auto;
  padding-top: 28px;
  color: #8EA69B;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (min-width: 880px) {
  .login { padding: 32px; }
  .login__shell {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    min-height: 560px;
    max-width: 1000px;
  }
  .login__aside {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 38px 34px;
    overflow: hidden;
    color: var(--side-text);
    background:
      radial-gradient(130% 80% at 100% 0%, rgba(201, 169, 106, .13), transparent 55%),
      linear-gradient(165deg, #123328 0%, var(--side-bg) 55%, #0A1A14 100%);
  }
  .login__aside::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -110px;
    bottom: -120px;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 106, .18);
    box-shadow: 0 0 0 42px rgba(201, 169, 106, .035);
    pointer-events: none;
  }
  .login__aside h2 {
    position: relative;
    max-width: 320px;
    font-size: 29px;
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: -.03em;
    color: #F6F2E7;
  }
  .login__aside > p {
    position: relative;
    max-width: 320px;
    margin-top: 14px;
    color: #A9BDB3;
    font-size: 13.5px;
    line-height: 1.6;
  }
  .login__box { padding: 44px 46px; }
  .login__head { text-align: left; margin-bottom: 26px; }
  .login__logo { display: none; }
  .login__head h1 { font-size: 26px; }
  .login__head p { font-size: 14px; }
  .login__foot { text-align: left; margin-top: 26px; }
}

/* ─────────────── Сохтори барнома ─────────────── */
.app { min-height: 100vh; min-height: 100dvh; }
.side { display: none; }
.shell { min-width: 0; margin-left: var(--side-w); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 9px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--border); }
.topbar__title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar__text { min-width: 0; }
.topbar h1 {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar small {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__actions { display: flex; gap: 7px; flex-shrink: 0; }
.topbar__settings { display: grid; }
.topbar__logo { display: grid; }

.main {
  padding: 5px 16px calc(var(--tabbar-h) + var(--safe-b) + 26px);
  max-width: 1320px;
  margin: 0 auto;
}
.view { display: none; }
.view.is-active {
  display: flex;
  flex-direction: column;
  gap: 13px;
  animation: fade .24s cubic-bezier(.2, .8, .2, 1);
}
@keyframes fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* Менюи поён */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
}
.tab {
  position: relative;
  border: 0;
  background: none;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10.3px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .16s;
}
.tab svg {
  width: 21px;
  height: 21px;
  padding: 3px 12px;
  box-sizing: content-box;
  border-radius: 99px;
  stroke-width: 1.8;
  transition: background .2s;
}
.tab.is-active { color: var(--brand-text); }
.tab.is-active svg { background: var(--brand-soft); stroke-width: 2.2; }
.badge-dot {
  position: absolute;
  top: 4px;
  left: calc(50% + 7px);
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
  font-style: normal;
  border: 2px solid var(--surface);
  box-sizing: content-box;
}

/* Планшет: менюи нишонаҳо */
@media (min-width: 700px) {
  :root { --side-w: 76px; }
  .tabbar { display: none; }
  .topbar__logo, .topbar__settings { display: none; }
  .main { padding: 5px 24px 42px; }
  .topbar { padding: 14px 24px 10px; }
  .topbar h1 { font-size: 20px; }

  .side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 35;
    width: var(--side-w);
    display: flex;
    flex-direction: column;
    padding: 18px 10px 14px;
    overflow: hidden;
    color: var(--side-text);
    background:
      radial-gradient(120% 55% at 0% 0%, #173D2F 0%, transparent 58%),
      linear-gradient(180deg, var(--side-bg), var(--side-bg-2));
    border-right: 1px solid rgba(255, 255, 255, .055);
  }
  .side__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 0 18px;
    flex-shrink: 0;
  }
  .side .logo {
    background: linear-gradient(150deg, #F7F2E5, #E7DEC8);
    color: #12271F;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
  }
  .side .logo::after { background: #9A7B3E; }
  .side__brand-text { display: none; }
  .side__brand b { display: block; color: #F4EFE2; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
  .side__brand small { display: block; color: var(--side-muted); font-size: 11px; margin-top: 1px; }
  .side__nav { display: flex; flex-direction: column; gap: 3px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
  .side__nav::-webkit-scrollbar { display: none; }
  .side__foot { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 9px; flex-shrink: 0; }
  .side__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 11px;
    background: none;
    color: var(--side-muted);
    font-weight: 550;
    font-size: 13.8px;
    text-align: left;
    transition: background .16s, color .16s;
  }
  .side__link svg { width: 20px; height: 20px; stroke-width: 1.8; }
  .side__link span { display: none; }
  .side__link:hover { background: rgba(255, 255, 255, .06); color: #F0F5F1; }
  .side__link.is-active { background: rgba(201, 169, 106, .12); color: #F6F2E7; }
  .side__link.is-active::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 11px;
    bottom: 11px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--gold);
  }
  .side__link .badge-dot { position: absolute; top: 5px; right: 4px; left: auto; border-color: var(--side-bg); }
  .side__meta { display: none; }
}

/* Компютер: менюи пурра */
@media (min-width: 1100px) {
  :root { --side-w: 232px; }
  .side { padding: 22px 14px 16px; }
  .side__brand { justify-content: flex-start; padding: 0 8px 22px; }
  .side__brand-text { display: block; min-width: 0; }
  .side__brand-text b, .side__brand-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side__link {
    justify-content: flex-start;
    padding: 0 12px;
    font-size: 13.8px;
  }
  .side__link span { display: inline; }
  .side__link .badge-dot { position: static; margin-left: auto; border-color: transparent; }
  .side__link.is-active::before { left: -14px; top: 9px; bottom: 9px; }
  .side__meta {
    display: block;
    margin-top: 8px;
    padding: 10px 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: var(--side-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .main { padding: 5px 30px 48px; }
  .topbar { padding: 18px 30px 11px; }
  .topbar h1 { font-size: 21px; }
  .topbar small { font-size: 12.5px; }
}

/* ─────────────── Картаҳо ва ҷойгиршавӣ ─────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  min-width: 0;
  box-shadow: var(--shadow-sm);
}
.card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 15px 18px 0;
}
.card__head h2 { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.card__head .spacer { flex: 1; }
.card__note { color: var(--text-3); font-size: 12px; font-weight: 500; }
.card__body { padding: 14px 18px 18px; }
.card__body--flush { padding: 6px 0 6px; }
.card--pad { padding: 18px; }
.card--accent {
  border-color: color-mix(in srgb, var(--brand) 22%, var(--border));
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--surface) 82%);
}

.grid { display: grid; gap: 13px; min-width: 0; }
.grid-2, .grid-3 { display: grid; gap: 13px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
  .grid-3 .span-2 { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .grid-21 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}
.grid--start { align-items: start; }

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 5px 0 -2px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.hello {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 0 2px;
}
.hello h2 { font-size: 23px; font-weight: 750; letter-spacing: -.03em; }
.hello p { margin-top: 3px; color: var(--text-2); font-size: 13.5px; }
#home-hello:empty { display: none; }

.hint-line {
  margin: 2px 4px 0;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

/* ─────────────── KPI ─────────────── */
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpis--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  min-width: 0;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
button.kpi { cursor: pointer; }
button.kpi:hover { border-color: var(--border-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.kpi__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi__label {
  font-size: 12.3px;
  color: var(--text-2);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi__ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-2);
  flex-shrink: 0;
}
.kpi__ico svg { width: 15px; height: 15px; }
.kpi__value {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.15;
  margin-top: 1px;
}
.kpi__sub {
  font-size: 11.8px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi--ok .kpi__ico { background: var(--ok-soft); color: var(--ok-text); }
.kpi--warn .kpi__ico { background: var(--warn-soft); color: var(--warn-text); }
.kpi--danger .kpi__ico { background: var(--danger-soft); color: var(--danger-text); }
.kpi--info .kpi__ico { background: var(--info-soft); color: var(--info-text); }
.kpi--violet .kpi__ico { background: var(--violet-soft); color: var(--violet-text); }
.kpi--brand .kpi__ico { background: var(--brand-soft); color: var(--brand-text); }

/* ─────────────── Давомоти имрӯз ─────────────── */
.today { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ring { position: relative; width: 128px; height: 128px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring__c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring__c b { display: block; font-size: 26px; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.ring__c small { display: block; color: var(--text-3); font-size: 11.5px; margin-top: 4px; }
.today__legend { flex: 1; min-width: 190px; display: grid; gap: 1px; }
.lg-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 9px;
  border: 0;
  background: none;
  text-align: left;
  width: 100%;
  font-size: 13.3px;
  color: var(--text-2);
  transition: background .16s;
}
.lg-row:hover { background: var(--surface-2); }
.lg-row b { margin-left: auto; color: var(--text); font-size: 14px; font-weight: 700; }

/* ─────────────── Рӯйхатҳо ─────────────── */
.list { display: flex; flex-direction: column; }
.list > * + * { border-top: 1px solid var(--border); }
.item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  min-width: 0;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  color: inherit;
  transition: background .16s;
}
button.item { cursor: pointer; }
button.item:hover { background: var(--surface-2); }
.item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.item__name { font-weight: 650; font-size: 13.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item__sub { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item__text { color: var(--text-2); font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.item__end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; text-align: right; }
.item__time { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.item__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.item__actions { display: flex; gap: 6px; flex-shrink: 0; }

.avatar {
  width: 37px;
  height: 37px;
  border-radius: 11px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .01em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.avatar--sm { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.avatar--lg { width: 54px; height: 54px; border-radius: 15px; font-size: 17px; }
.avatar.is-off { filter: grayscale(1); opacity: .5; }

/* ─────────────── Дархостҳо ─────────────── */
.rq {
  display: flex;
  gap: 11px;
  padding: 12px 16px;
  align-items: flex-start;
  cursor: pointer;
  transition: background .16s;
  position: relative;
}
.rq:hover { background: var(--surface-2); }
.rq__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rq__top { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.rq__name { font-weight: 650; font-size: 13.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq__id { color: var(--text-3); font-size: 11.5px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.rq__time { color: var(--text-3); font-size: 11.5px; margin-left: auto; flex-shrink: 0; }
.rq__reason { color: var(--text-2); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.rq__meta { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.rq__quick { display: flex; gap: 7px; margin-top: 4px; }
.rq__quick .btn { flex: 1; max-width: 150px; }
.rq__del {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 0;
  background: none;
  color: var(--text-3);
  display: grid;
  place-items: center;
  margin: -2px -4px 0 0;
  transition: background .16s, color .16s;
}
.rq__del:hover { background: var(--danger-soft); color: var(--danger-text); }
.rq__del svg { width: 15px; height: 15px; }
.rq__check {
  display: none;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  border: 2px solid var(--border-2);
  flex-shrink: 0;
  margin-top: 8px;
  place-items: center;
  color: #fff;
}
.rq__check svg { width: 13px; height: 13px; stroke-width: 3; opacity: 0; }
.is-selecting .rq__check { display: grid; }
.is-selecting .rq__del { display: none; }
.rq.is-selected { background: var(--brand-soft); }
.rq.is-selected .rq__check { background: var(--brand); border-color: var(--brand); }
.rq.is-selected .rq__check svg { opacity: 1; }
.rq.is-removing { opacity: .35; pointer-events: none; }
.rq__quick .btn--soft-ok { color: var(--ok-text); }

/* ─────────────── Филтрҳо ─────────────── */
.filters { display: grid; gap: 9px; }
.filters__top { display: flex; gap: 8px; align-items: stretch; }
.filters__top .search { flex: 1; min-width: 0; }
.filters__row { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .filters__row { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.filters__range { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.search { position: relative; display: block; }
.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-3);
  pointer-events: none;
}
.search input { padding-left: 38px; padding-right: 40px; }
.search__clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  color: var(--text-3);
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.search__clear:hover { background: var(--surface-2); color: var(--text); }
.search__clear svg { position: static; transform: none; width: 15px; height: 15px; }

.resultbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-2);
  padding: 0 3px;
}
.resultbar b { color: var(--text); }
.resultbar__actions { display: flex; gap: 7px; flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.toolbar__group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar__group--fill { flex-wrap: nowrap; }
.toolbar__group--fill .select { width: auto; min-width: 0; }

/* Навигатсияи сана/моҳ */
.nav-date { display: flex; align-items: center; gap: 5px; }
.nav-date__label {
  position: relative;
  min-width: 0;
  padding: 0 12px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  line-height: 1.15;
}
.nav-date__label small { font-weight: 500; color: var(--text-3); font-size: 10.5px; line-height: 1.2; }
.nav-date__label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* ─────────────── Ҷадвали моҳ ─────────────── */
.matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--border); }
.matrix { border-collapse: separate; border-spacing: 0; font-size: 12px; width: max-content; min-width: 100%; }
.matrix th, .matrix td { padding: 0; text-align: center; border-bottom: 1px solid var(--border); }
.matrix thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 3;
  font-weight: 600;
  color: var(--text-3);
}
.matrix tbody tr:hover td { background: var(--surface-2); }
.matrix tbody tr:hover .m-name { background: var(--surface-2); }
.matrix .m-name {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
  text-align: left;
  min-width: 180px;
  max-width: 220px;
  padding: 6px 12px;
  border-right: 1px solid var(--border);
}
.matrix thead .m-name { z-index: 4; }
.m-person {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  width: 100%;
}
.m-person b {
  font-weight: 650;
  font-size: 12.8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  color: var(--text);
}
.m-person small { color: var(--text-3); font-size: 11px; }
.m-day { width: 33px; min-width: 33px; padding: 5px 0 !important; line-height: 1.15; }
.m-day b { display: block; font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; }
.m-day small { display: block; font-size: 10px; }
.m-day.is-off { color: var(--text-3); }
.m-day.is-off b { color: var(--text-3); }
.m-day.is-today b { color: #fff; background: var(--brand); border-radius: 5px; width: 22px; margin: 0 auto; }
:root[data-theme="dark"] .m-day.is-today b { color: #06130F; }
td.m-off { background-image: repeating-linear-gradient(135deg, transparent 0 5px, var(--surface-2) 5px 7px); }
.m-sum { min-width: 55px; padding: 5px 9px !important; font-weight: 700; font-size: 12.2px; white-space: nowrap; }
.m-sum small { display: block; font-weight: 500; color: var(--text-3); font-size: 10.5px; }
.matrix tfoot td { font-size: 11px; color: var(--text-3); padding: 6px 0; border-bottom: 0; }
.matrix tfoot .m-name { font-weight: 600; }

.mc {
  width: 27px;
  height: 27px;
  margin: 4px auto;
  border-radius: 7px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: transform .1s;
}
.mc:hover { transform: scale(1.12); }
.mc svg { width: 13px; height: 13px; stroke-width: 3; }
.mc--on_time { background: var(--ok-soft); color: var(--ok-text); }
.mc--late { background: var(--warn-soft); color: var(--warn-text); }
.mc--absent { background: var(--danger-soft); color: var(--danger-text); }
.mc--leave { background: var(--info-soft); color: var(--info-text); }
.mc--pending { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-2); color: var(--text-3); }
.mc--none { color: var(--border-2); }
.mc--future { cursor: default; color: transparent; }
.mc--future:hover { transform: none; }

.legend { display: flex; flex-wrap: wrap; gap: 5px 13px; font-size: 11.8px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 4px; display: inline-block; }

/* Тасмаи хурди моҳ (телефон) */
.strip { display: flex; gap: 2px; height: 18px; }
.strip i { flex: 1; border-radius: 3px; background: var(--surface-2); min-width: 3px; }
.strip i.s-on_time { background: var(--ok); }
.strip i.s-late { background: var(--warn); }
.strip i.s-absent { background: var(--danger); }
.strip i.s-leave { background: var(--info); }
.strip i.s-pending { background: var(--muted); }
.strip i.s-off { background: transparent; box-shadow: inset 0 0 0 1px var(--border); }
.strip i.s-future { background: transparent; }
.strip i.s-none { background: var(--surface-3); }
.strip i.is-today { outline: 2px solid var(--brand); outline-offset: 1px; }
.strip-axis { display: flex; gap: 2px; margin-top: 2px; font-size: 8.5px; line-height: 1; color: var(--text-3); font-variant-numeric: tabular-nums; }
.strip-axis span { flex: 1; min-width: 3px; text-align: center; white-space: nowrap; }

.person {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 16px;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: background .16s;
}
.person:hover { background: var(--surface-2); }
.person__head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.person__who { flex: 1; min-width: 0; }
.person__who b { display: block; font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person__who small { display: block; color: var(--text-3); font-size: 11.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person__score { text-align: right; flex-shrink: 0; }
.person__score b { display: block; font-size: 18px; font-weight: 750; line-height: 1.1; letter-spacing: -.03em; }
.person__score small { color: var(--text-3); font-size: 10.5px; }
.person__nums { display: flex; gap: 5px; flex-wrap: wrap; }

/* Тақвими корманд */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal__wd { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--text-3); padding-bottom: 2px; }
.cal__d {
  aspect-ratio: 1 / 1;
  min-height: 38px;
  border-radius: 9px;
  border: 0;
  padding: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 11px;
  cursor: pointer;
}
.cal__d b { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.cal__d small { font-size: 10px; font-weight: 650; line-height: 1; }
.cal__d.s-on_time { background: var(--ok-soft); color: var(--ok-text); }
.cal__d.s-late { background: var(--warn-soft); color: var(--warn-text); }
.cal__d.s-absent { background: var(--danger-soft); color: var(--danger-text); }
.cal__d.s-leave { background: var(--info-soft); color: var(--info-text); }
.cal__d.s-pending { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-2); }
.cal__d.s-off {
  background: transparent;
  background-image: repeating-linear-gradient(135deg, transparent 0 5px, var(--surface-2) 5px 7px);
  color: var(--text-3);
  cursor: default;
}
.cal__d.s-off b { color: var(--text-3); }
.cal__d.s-future { background: transparent; cursor: default; }
.cal__d.s-future b { color: var(--text-3); font-weight: 500; }
.cal__d.is-today { outline: 2px solid var(--brand); outline-offset: 1px; }
.cal__d.is-empty { visibility: hidden; }

/* ─────────────── Графикҳо ─────────────── */
.cols { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 156px; padding-top: 22px; }
.col { flex: 1; max-width: 66px; height: 100%; position: relative; display: flex; align-items: flex-end; justify-content: center; min-width: 4px; }
.col__bar {
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 5px 5px 2px 2px;
  overflow: hidden;
  min-height: 0;
  transition: height .45s cubic-bezier(.2, .8, .2, 1);
}
.col__bar i { display: block; width: 100%; }
.col__n {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.col.is-today .col__bar { box-shadow: 0 0 0 1.5px var(--brand); }
.col.is-mark .col__bar { outline: 2px dashed var(--brand); outline-offset: 2px; }
.axis { display: flex; justify-content: center; gap: 4px; margin-top: 7px; }
.axis span {
  flex: 1;
  max-width: 66px;
  text-align: center;
  font-size: 10.5px;
  color: var(--text-3);
  white-space: nowrap;
  min-width: 3px;
  overflow: visible;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 699px) {
  .axis--dense span:nth-child(even) { visibility: hidden; }
  .chips { flex-wrap: wrap; overflow-x: visible; }
}
.chart-legend { margin-top: 11px; }

.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut { position: relative; width: 144px; height: 144px; flex-shrink: 0; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; }
.donut__c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut__c b { display: block; font-size: 23px; font-weight: 750; letter-spacing: -.03em; line-height: 1; }
.donut__c small { color: var(--text-3); font-size: 11.5px; }
.dlist { flex: 1; min-width: 170px; display: grid; gap: 7px; }
.dlist__row { display: grid; grid-template-columns: 11px 1fr auto auto; gap: 9px; align-items: center; font-size: 13px; }
.dlist__row i { width: 11px; height: 11px; border-radius: 4px; }
.dlist__row b { font-variant-numeric: tabular-nums; }
.dlist__row em { font-style: normal; color: var(--text-3); font-size: 12px; min-width: 36px; text-align: right; }

.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar__top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 5px; }
.hbar__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar__val { color: var(--text-3); flex-shrink: 0; font-size: 12px; }
.hbar__val b { color: var(--text); font-size: 13px; }
.hbar__track { height: 7px; border-radius: 99px; background: var(--surface-2); display: flex; overflow: hidden; }
.hbar__track i { display: block; height: 100%; }
.hbar__sub { font-size: 11.5px; color: var(--text-3); margin-top: 4px; line-height: 1.4; }
.hbar.is-link { cursor: pointer; }
.hbar.is-link:hover .hbar__label { color: var(--brand-text); }

.heat { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
@media (min-width: 700px) { .heat { grid-template-columns: repeat(16, minmax(0, 1fr)); } }
.heat__cell {
  aspect-ratio: 1.15 / 1;
  border-radius: 6px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.heat__cell small { font-size: 9px; font-weight: 500; opacity: .65; }

.stackbar { display: flex; height: 7px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.stackbar i { display: block; height: 100%; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
@media (min-width: 560px) { .split--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mini { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.mini b { display: block; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.mini small { color: var(--text-3); font-size: 11.5px; }

.insights { display: grid; gap: 7px; }
.insight {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}
.insight svg { width: 16px; height: 16px; color: var(--gold); margin-top: 2px; }
.insight b { color: var(--text); }

/* Ҷадвали рейтинг */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-3);
  padding: 9px 11px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--text); }
.table th.is-sorted { color: var(--brand-text); }
.table td { padding: 9px 11px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover td { background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table .who { display: flex; align-items: center; gap: 9px; }
.bar-inline {
  display: inline-block;
  width: 56px;
  height: 5px;
  border-radius: 99px;
  background: var(--surface-2);
  vertical-align: middle;
  margin-left: 8px;
  overflow: hidden;
}
.bar-inline i { display: block; height: 100%; border-radius: 99px; }

/* ─────────────── Кормандон (кортҳо) ─────────────── */
.team-grid { display: grid; gap: 11px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 660px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.team-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-align: left;
  min-width: 0;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.team-card:hover { border-color: var(--border-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.team-card:active { transform: scale(.995); }
.team-card__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team-card__who { flex: 1; min-width: 0; }
.team-card__who b { display: block; font-size: 13.8px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-card__who small {
  display: block;
  margin-top: 1px;
  color: var(--text-3);
  font-size: 11.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-card__chev { color: var(--border-2); display: grid; place-items: center; flex-shrink: 0; }
.team-card__chev svg { width: 15px; height: 15px; }
.team-card__score { display: flex; align-items: center; gap: 12px; }
.team-card__rate { flex-shrink: 0; display: flex; align-items: baseline; gap: 6px; }
.team-card__rate b { font-size: 18px; font-weight: 750; letter-spacing: -.03em; }
.team-card__rate small { color: var(--text-3); font-size: 10.8px; }
.meter { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.team-card__tags { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; min-height: 20px; }
.team-card__tags .pill { font-size: 11px; padding: 2px 7px; }

/* ─────────────── Танзимот ─────────────── */
.settings-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

.panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface-2) 34%, var(--surface)) 100%);
}
.panel__ico {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-text);
  flex-shrink: 0;
}
.panel__ico svg { width: 19px; height: 19px; }
.panel__title { flex: 1; min-width: 0; }
.panel__title h2 { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.panel__title p { margin-top: 2px; color: var(--text-3); font-size: 11.8px; line-height: 1.45; }
.panel__body { padding: 2px 18px 14px; }
.panel__sub {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 0 4px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}
.panel__sub b { font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.panel__note { margin: 10px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.55; }
.panel--danger {
  border-color: color-mix(in srgb, var(--danger) 26%, var(--border));
}
.panel--danger .panel__head {
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--danger) 5%, var(--surface)) 100%);
  border-bottom-color: color-mix(in srgb, var(--danger) 20%, var(--border));
}
.panel--danger .panel__ico { background: var(--danger-soft); color: var(--danger-text); }
.panel--danger .panel__title h2 { color: var(--danger-text); }

.rowset {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}
.panel__body > .rowset:first-child { border-top: 0; }
.rowset__text { flex: 1; min-width: 180px; }
.rowset__text b { display: block; font-size: 13.5px; font-weight: 650; line-height: 1.4; }
.rowset__text small { display: block; margin-top: 2px; color: var(--text-3); font-size: 11.8px; line-height: 1.45; }
.rowset > .btn, .rowset > .tag { margin-left: auto; flex-shrink: 0; }

.backup-list { list-style: none; display: flex; flex-direction: column; }
.backup-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); min-width: 0; }
.backup-list li:first-child { border-top: 0; }
.backup-list__ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.backup-list__ico svg { width: 14px; height: 14px; }
.backup-list b { display: block; font-size: 12.3px; font-weight: 600; line-height: 1.4; }
.backup-list small { display: block; color: var(--text-3); font-size: 11px; line-height: 1.4; }

.account-form { display: flex; flex-direction: column; gap: 12px; padding-top: 13px; }
.account-form__row { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .account-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.account-form__actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 2px; }
.account-form__actions .btn--primary { flex: 1; min-width: 130px; }

.danger-row {
  display: grid;
  gap: 9px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}
.danger-row:first-child { border-top: 0; }
.danger-row__action { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.danger-row__action .input { flex: 1; min-width: 130px; width: auto; }
.danger-row__action .btn { flex-shrink: 0; }
@media (min-width: 560px) {
  .danger-row__action { justify-content: flex-end; }
  .danger-row__action .input { max-width: 190px; }
}

/* ─────────────── Тасмаи вақти кор ─────────────── */
.schedule-bar { display: flex; align-items: center; gap: 13px; padding: 15px 18px; flex-wrap: wrap; }
.schedule-bar__ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-text);
  flex-shrink: 0;
}
.schedule-bar__ico svg { width: 20px; height: 20px; }
.schedule-bar__text { flex: 1; min-width: 180px; }
.schedule-bar__text b { display: block; font-size: 14px; font-weight: 650; line-height: 1.35; }
.schedule-bar__text small { display: block; margin-top: 2px; color: var(--text-3); font-size: 12px; line-height: 1.5; }
.schedule-bar--off .schedule-bar__ico { background: var(--warn-soft); color: var(--warn-text); }

/* ─────────────── Интихоб ва тирезаҳо ─────────────── */
.selbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow-lg);
  width: calc(100% - 24px);
  max-width: 520px;
}
.selbar__count { flex: 1; text-align: center; font-weight: 700; font-size: 13px; }
@media (min-width: 700px) { .selbar { bottom: 20px; left: calc(50% + var(--side-w) / 2); } }

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: calc(100% - 24px);
  padding: 10px 13px 10px 15px;
  border-radius: 11px;
  background: #17322A;
  color: #F4F5F2;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastin .22s ease-out;
}
:root[data-theme="dark"] .toast { background: #E9EEE9; color: #0B1411; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 8px); } }
.toast--ok { background: #146B53; color: #fff; }
.toast--danger { background: #A83F38; color: #fff; }
:root[data-theme="dark"] .toast--ok { background: #5BC49E; color: #06130F; }
:root[data-theme="dark"] .toast--danger { background: #E7827A; color: #1F0908; }
.toast__action {
  border: 0;
  background: rgba(255, 255, 255, .16);
  color: inherit;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 7px;
  white-space: nowrap;
}
:root[data-theme="dark"] .toast__action { background: rgba(0, 0, 0, .1); }
@media (min-width: 700px) { .toast { bottom: 24px; left: calc(50% + var(--side-w) / 2); } }

/* ─────────────── Бе маълумот ва скелет ─────────────── */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 30px 16px;
  text-align: center;
  color: var(--text-3);
}
.empty svg { width: 32px; height: 32px; stroke-width: 1.5; margin-bottom: 3px; color: var(--border-2); }
.empty b { color: var(--text-2); font-size: 14px; }
.empty span { font-size: 12.5px; max-width: 330px; line-height: 1.55; }
.skeleton {
  border-radius: 11px;
  min-height: 62px;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.25s infinite linear;
}
.skeleton--sm { min-height: 82px; }
.skeleton--lg { min-height: 210px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ─────────────── Sheet ─────────────── */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(7, 19, 15, .48); animation: fadein .18s; }
@keyframes fadein { from { opacity: 0; } }
.sheet__panel {
  position: relative;
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: slideup .24s cubic-bezier(.2, .8, .2, 1);
}
@keyframes slideup { from { transform: translateY(36px); } }
.sheet__grip { width: 38px; height: 4px; border-radius: 99px; background: var(--surface-3); margin: 8px auto 0; flex-shrink: 0; }
.sheet__x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 34px; height: 34px; background: var(--surface); }
.sheet__body {
  overflow-y: auto;
  padding: 14px 18px calc(22px + var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: 12px;
  overscroll-behavior: contain;
}
.sheet__title { font-size: 18.5px; font-weight: 750; padding-right: 40px; letter-spacing: -.02em; }
.sheet__text { color: var(--text-2); font-size: 13.5px; margin: 0; line-height: 1.55; }
.sheet__text b { color: var(--text); }
.sheet__actions { display: flex; gap: 9px; }
.sheet__actions > .btn { flex: 1; }
@media (min-width: 700px) {
  .sheet { align-items: center; padding: 24px; }
  .sheet__panel { max-width: 560px; border-radius: 18px; max-height: 88vh; border: 1px solid var(--border); }
  .sheet--wide .sheet__panel { max-width: 860px; }
  .sheet__grip { display: none; }
  .sheet__body { padding: 22px 24px 24px; }
}

.detail-head { display: flex; align-items: center; gap: 13px; padding-right: 40px; }
.detail-head b { display: block; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.detail-head small { display: block; color: var(--text-3); font-size: 12px; margin-top: 2px; }
.quote {
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  border-left: 3px solid var(--border-2);
}
.info { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 11px; }
.info__row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 13px; font-size: 13px; }
.info__row + .info__row { border-top: 1px solid var(--border); }
.info__row span { color: var(--text-3); }
.info__row b { text-align: right; font-weight: 600; overflow-wrap: anywhere; }

.choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.choice button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 5px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-weight: 650;
  font-size: 12.5px;
  color: var(--text-2);
}
.choice button .dot { width: 11px; height: 11px; }
.choice button.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); }

.setting { display: flex; align-items: center; gap: 12px; padding: 11px 16px; }
.setting + .setting { border-top: 1px solid var(--border); }
.setting__text { flex: 1; min-width: 0; }
.setting__text b { display: block; font-weight: 650; font-size: 13.5px; }
.setting__text small { display: block; color: var(--text-3); font-size: 12px; margin-top: 1px; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 28%, var(--border)); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 0; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; font-weight: 600; }

/* ─────────────── Хурд ва махсус ─────────────── */
@media (max-width: 699px) {
  .filters:not(.is-open) .filters__row, .filters:not(.is-open) .filters__range { display: none !important; }
  .today { flex-wrap: nowrap; gap: 14px; }
  .ring { width: 106px; height: 106px; }
  .ring__c b { font-size: 22px; }
  .today__legend { min-width: 0; }
  .lg-row { padding: 6px 2px; font-size: 12.8px; gap: 8px; }
  .schedule-bar { flex-wrap: nowrap; padding: 13px 14px; gap: 11px; }
  .schedule-bar__text { min-width: 0; }
  .schedule-bar__text small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .schedule-bar__ico { width: 36px; height: 36px; }
  .schedule-bar .btn { flex-shrink: 0; }
  .resultbar__actions .btn { padding: 0 10px; }
  .toolbar { gap: 8px; }
  .toolbar__group--fill { width: 100%; }
  .toolbar__group--fill .select { flex: 1; }
  .team-grid { gap: 10px; }
  .settings-grid { gap: 12px; }
  .panel__head { padding: 14px 16px 12px; gap: 10px; }
  .panel__body { padding: 2px 16px 12px; }
  .panel__ico { width: 36px; height: 36px; border-radius: 10px; }
  .panel__title h2 { font-size: 14px; }
  .panel__title p { font-size: 11.5px; }
  .account-form__row { grid-template-columns: minmax(0, 1fr); }
  .danger-row__action > .btn:only-child { width: 100%; }
  .danger-row__action .input { max-width: none; }
  .danger-row__action { justify-content: stretch; }
  .danger-row__action .btn { flex: 1; min-width: 110px; }
  .card__head { padding: 13px 14px 0; }
  .card__body { padding: 12px 14px 15px; }
  .tab svg { padding: 3px 11px; }
  .topbar__title { gap: 9px; }
  .rq { padding: 11px 14px; }
  .item { padding: 10px 14px; }
  .team-card { padding: 13px 14px; }
  .team-card__rate b { font-size: 17px; }
  .view.is-active { gap: 11px; }
  .main { padding-left: 14px; padding-right: 14px; }
}
@media (min-width: 700px) {
  .cal__d { aspect-ratio: 1.65 / 1; min-height: 44px; }
  .sheet--wide .cal { gap: 6px; }
}
@media (max-width: 699px) { .hide-phone { display: none !important; } }
@media (min-width: 700px) { .only-phone { display: none !important; } }
@media (max-width: 480px) { .rq__id { display: none; } }
@media (max-width: 420px) {
  .kpi__ico { display: none; }
  .kpi__label { white-space: normal; }
  .kpi { padding: 12px 13px; }
  .kpi__value { font-size: 22px; }
  .kpis { gap: 8px; }
  .rq__quick .btn { max-width: none; }
}
@media (max-width: 380px) {
  .main { padding-left: 12px; padding-right: 12px; }
  .topbar { padding-left: 12px; padding-right: 12px; }
  .topbar h1 { font-size: 17px; }
  .seg button { padding: 6px 10px; }
  .avatar { width: 34px; height: 34px; }
  .rq { gap: 9px; }
  .rq__time { font-size: 10.5px; }
}
@media print {
  .side, .tabbar, .topbar__actions, .selbar, .toast { display: none !important; }
  .shell { margin: 0; }
  body { background: #fff; }
  .card, .panel { box-shadow: none; break-inside: avoid; }
}

/* ══════════════ Google Sheet ══════════════ */
/* Равзана: бадан scroll мешавад; рӯйхатҳо дар дохили flex фишурда намешаванд */
.sheet__body { min-height: 0; flex: 1 1 auto; -webkit-overflow-scrolling: touch; }
.sheet__body > * { flex-shrink: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }
.item__out { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-3); text-align: right; }

.gs-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.gs-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.gs-row, .gs-person {
  display: grid; align-items: center; gap: 12px; width: 100%;
  padding: 10px 14px; border: 0; background: transparent; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
  transition: background .12s;
}
.gs-row { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 300px); }
.gs-person { grid-template-columns: auto minmax(0, 1fr) auto; }
.gs-row + .gs-row, .gs-person + .gs-person { border-top: 1px solid var(--border); }
.gs-row:hover, .gs-person:hover { background: var(--surface-2); }
.gs-row:focus-visible, .gs-person:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.gs-row > *, .gs-person > * { min-width: 0; }
.gs-row__n { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }
.gs-row.is-linked .gs-row__n { color: var(--ok-text); font-weight: 700; }
.gs-row__main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gs-row__main b { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-row__main small { color: var(--text-3); font-size: 11.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gs-pick {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px;
  padding: 5px 8px 5px 10px; border: 1.5px dashed var(--border-2); border-radius: 10px; color: var(--brand-text);
}
.gs-pick.is-set { border-style: solid; border-color: var(--border); background: var(--surface-2); color: inherit; }
.gs-row:hover .gs-pick { border-color: var(--brand); }
.gs-pick__add { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 650; }
.gs-pick__add svg { width: 16px; height: 16px; }
.gs-pick__warn { font-size: 12.5px; font-weight: 600; color: var(--warn-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-pick__who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.gs-pick__who > span { display: flex; flex-direction: column; min-width: 0; }
.gs-pick__who b { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-pick__who small { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-pick__chev { display: inline-flex; color: var(--text-3); flex-shrink: 0; }
.gs-pick__chev svg { width: 16px; height: 16px; }

.gs-back { align-self: flex-start; }
.gs-person.is-current { background: var(--ok-soft); }
.gs-person.is-loading { opacity: .6; pointer-events: none; }
.gs-person:disabled { cursor: default; }
.gs-person__note { color: var(--warn-text) !important; }

@media (max-width: 560px) {
  .gs-row { grid-template-columns: 24px minmax(0, 1fr); row-gap: 8px; padding: 10px 12px; }
  .gs-pick { grid-column: 2; }
  .gs-person { padding: 10px 12px; gap: 10px; }
}


/* ══════════════ Логотипи SoftClub (шаффоф; дар заминаи торик — навиштаи сафед) ══════════════ */
.brandlogo { display: block; height: 30px; width: auto; }
.brandlogo--lg { height: 52px; }
.login__brand { gap: 16px; }
.login__brand-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(244, 239, 226, .78); padding: 6px 11px; border-radius: 99px;
  border: 1px solid rgba(159, 211, 247, .28); background: rgba(59, 153, 225, .10);
}
.login__logoimg { display: block; height: 48px; width: auto; margin: 0 auto 18px; }
.logo-for-dark { display: none; }
:root[data-theme="dark"] .logo-for-light { display: none; }
:root[data-theme="dark"] .logo-for-dark { display: block; }
.topbar__mark { width: 30px; height: 30px; flex-shrink: 0; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .08)); }
.side__logo { display: none; height: 30px; width: auto; }
.side__mark { display: none; height: 30px; width: 30px; }
@media (min-width: 700px) {
  .side__mark { display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
}
@media (min-width: 1100px) {
  .side__mark { display: none; }
  .side__logo { display: block; }
  .side__brand { flex-direction: column; align-items: flex-start; gap: 8px; padding: 2px 10px 20px; }
  .side__brand-text b { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9FD3F7; }
  .side__brand-text small { display: none; }
}

/* ══════════════ Танзимот: сарлавҳаи бренд ══════════════ */
.set-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 20px 22px; margin-bottom: 14px; border-radius: 18px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(59, 153, 225, .28) 0%, rgba(59, 153, 225, 0) 55%),
    linear-gradient(135deg, var(--side-bg) 0%, var(--side-bg-2) 60%, #16372D 100%);
  color: #F4EFE2; box-shadow: var(--shadow);
}
.set-hero::after {
  content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 106, .18), rgba(201, 169, 106, 0) 70%); pointer-events: none;
}
.set-hero__logo { display: block; height: 46px; width: auto; flex-shrink: 0; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .25)); }
.set-hero__text { flex: 1; min-width: 180px; }
.set-hero__text h2 { font-size: 21px; font-weight: 760; letter-spacing: -.02em; color: #fff; }
.set-hero__text p { margin-top: 3px; font-size: 13px; color: rgba(244, 239, 226, .72); }
.set-hero__chips { display: flex; flex-wrap: wrap; gap: 7px; position: relative; z-index: 1; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px;
  font-size: 12.3px; font-weight: 650; color: #F4EFE2;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px);
}
.hero-chip i { width: 7px; height: 7px; border-radius: 50%; background: rgba(244, 239, 226, .5); box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); }
.hero-chip--ok i { background: #5BD39F; box-shadow: 0 0 0 3px rgba(91, 211, 159, .22); }
.hero-chip--warn i { background: #F0B54A; box-shadow: 0 0 0 3px rgba(240, 181, 74, .22); }
.hero-chip--danger i { background: #F07A6F; box-shadow: 0 0 0 3px rgba(240, 122, 111, .25); }
.hero-chip--muted { color: rgba(244, 239, 226, .65); }
.hero-chip--muted i { display: none; }

/* ══════════════ Ҷадвалҳои Google — филиалҳо ══════════════ */
.panel--feature { margin-bottom: 14px; }
.panel--feature .panel__head .btn { margin-left: auto; flex-shrink: 0; }
.branch-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); padding: 16px 0 6px; }
.branch {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 16px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: box-shadow .16s, transform .16s, border-color .16s;
}
.branch:hover { box-shadow: var(--shadow); }
.branch::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--border-2);
}
.branch--ok::before { background: linear-gradient(90deg, var(--ok), var(--brand-2)); }
.branch--danger::before { background: var(--danger); }
.branch--warn::before { background: var(--warn); }
.branch__top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.branch__ico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(145deg, #E8F4EC, #D3EADC); color: #1E7B4E;
}
:root[data-theme="dark"] .branch__ico { background: linear-gradient(145deg, #183A2C, #12301F); color: #6FD3A0; }
.branch__ico svg { width: 20px; height: 20px; }
.branch__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.branch__who b { font-size: 15px; font-weight: 720; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.branch__who small { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.branch__stat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.branch__stat > div { padding: 9px 10px; border-radius: 11px; background: var(--surface-2); min-width: 0; }
.branch__stat b { font-size: 17px; font-weight: 760; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.branch__stat span { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.branch__stat small { display: block; font-size: 11px; color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.branch__meter { display: block; flex: none; height: 6px; }
.branch__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.branch__actions .btn { text-decoration: none; }
.branch__more { width: 34px; height: 34px; flex-shrink: 0; }
.branch--add {
  align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 196px; cursor: pointer;
  border: 1.5px dashed var(--border-2); background: transparent; box-shadow: none; color: var(--text-2); font: inherit;
}
.branch--add::before { display: none; }
.branch--add:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-text); background: var(--brand-soft); }
.branch--add:disabled { opacity: .5; cursor: default; }
.branch--add b { font-size: 14.5px; font-weight: 700; }
.branch--add small { font-size: 12px; color: var(--text-3); }
.branch__plus {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px;
  font-size: 26px; font-weight: 300; line-height: 1; background: var(--surface-2); color: var(--brand-text);
}

.opt-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 22px; margin-top: 6px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--border); cursor: pointer; }
.opt__text { flex: 1; min-width: 0; }
.opt__text b { display: block; font-size: 13.5px; font-weight: 650; line-height: 1.4; }
.opt__text small { display: block; margin-top: 2px; color: var(--text-3); font-size: 11.8px; line-height: 1.45; }
.btn--link { background: none; border: 0; padding: 0; min-height: 0; color: var(--brand-text); font-weight: 650; text-decoration: underline; cursor: pointer; font-size: inherit; }

.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: 13.3px; line-height: 1.5; }
.steps b { color: var(--text); }

/* ══════════════ Филтри филиал ══════════════ */
.branch-filter { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.branch-filter::-webkit-scrollbar { display: none; }
.bchip {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; white-space: nowrap;
  min-height: 36px; padding: 0 13px; border-radius: 99px; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 650; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: background .14s, color .14s, border-color .14s;
}
.bchip svg { width: 15px; height: 15px; color: #1E7B4E; }
.bchip b { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--text-3); }
.bchip:hover { border-color: var(--border-2); color: var(--text); }
.bchip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
:root[data-theme="dark"] .bchip.is-active { color: #06130F; }
.bchip.is-active svg { color: currentColor; }
.bchip.is-active b { background: rgba(255, 255, 255, .2); color: inherit; }

@media (max-width: 560px) {
  .set-hero { padding: 16px; gap: 12px; border-radius: 16px; }
  .set-hero__logo { height: 36px; }
  .set-hero__text h2 { font-size: 18px; }
  .branch-grid { grid-template-columns: minmax(0, 1fr); }
  .branch--add { min-height: 120px; }
  .opt-list { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 880px) { .login__logoimg { display: none !important; } }   /* логотип аллакай дар паҳлӯ ҳаст */
