/* PrymeDesk 2.0 — общие стили. Цвета заданы токенами; тёмная тема переопределяет их через data-bs-theme.
   Палитра и типографика — по дизайн-системе hubex.ru (.claude/skills/hubex-design-system/DESIGN.md). */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root,
[data-bs-theme="light"] {
  --pd-bg: #ffffff;
  --pd-surface: #f1f1f1;
  --pd-surface-2: #e8e8e8;
  --pd-border: #d9d9d9;
  --pd-text: #000000;
  --pd-muted: #777777;
  --pd-primary: #2015ff;
  --pd-primary-soft: rgba(32, 21, 255, 0.10);
  --pd-sidebar: #0f1729;
  --pd-sidebar-text: #aab4c8;
  --pd-sidebar-active: #ffffff;
  --pd-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --pd-shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.16);
  --pd-radius: 16px;
  --pd-font-body: Arial, "Helvetica Neue", -apple-system, "Segoe UI", sans-serif;
  --pd-font-display: "Roboto", Arial, sans-serif;

  --st-new: #3b82f6;
  --st-assigned: #6366f1;
  --st-onway: #d97706;
  --st-onsite: #0d9488;
  --st-control: #9333ea;
  --st-closed: #62c584;
  --st-cancelled: #6b7280;
  --pr-critical: #e9041e;
  --pr-high: #ea580c;
  --pr-low: #94a3b8;

  --bs-body-bg: var(--pd-bg);
  --bs-body-color: var(--pd-text);
  --bs-border-color: var(--pd-border);
  --bs-primary: var(--pd-primary);
  --bs-primary-rgb: 32, 21, 255;
  --bs-link-color-rgb: 32, 21, 255;
  --bs-secondary-color: var(--pd-muted);
}

[data-bs-theme="dark"] {
  --pd-bg: #0d1117;
  --pd-surface: #161b22;
  --pd-surface-2: #1c2230;
  --pd-border: #2b3341;
  --pd-text: #e6edf3;
  --pd-muted: #8b96a8;
  --pd-primary: #6f63ff;
  --pd-primary-soft: rgba(111, 99, 255, 0.16);
  --pd-sidebar: #0a0e15;
  --pd-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --pd-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --bs-body-bg: var(--pd-bg);
  --bs-body-color: var(--pd-text);
  --bs-border-color: var(--pd-border);
  --bs-primary-rgb: 111, 99, 255;
  --bs-link-color-rgb: 111, 99, 255;
  /* на тёмном фоне насыщенные цвета светлой темы теряют контраст — поднимаем яркость */
  --st-new: #60a5fa; --st-assigned: #818cf8; --st-onway: #fbbf24; --st-onsite: #2dd4bf;
  --st-control: #c084fc; --st-closed: #4ade80; --st-cancelled: #9ca3af;
  --pr-critical: #f87171; --pr-high: #fb923c; --pr-low: #94a3b8;
}

html, body { max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--pd-font-body);
  background: var(--pd-bg);
  color: var(--pd-text);
  font-size: 0.935rem;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .topbar h1, .panel-head h2, .kpi .v, .auth-hero h1, .brand {
  font-family: var(--pd-font-display);
  font-weight: 700;
}
.btn-primary { --bs-btn-bg: var(--pd-primary); --bs-btn-border-color: var(--pd-primary); --bs-btn-hover-bg: #1811d6; --bs-btn-hover-border-color: #1811d6; }
.btn-outline-primary { --bs-btn-color: var(--pd-primary); --bs-btn-border-color: var(--pd-primary); --bs-btn-hover-bg: var(--pd-primary); --bs-btn-hover-border-color: var(--pd-primary); }
.text-muted, .text-secondary { color: var(--pd-muted) !important; }
.form-control, .form-select { border-color: var(--pd-border); background-color: var(--pd-surface); }
.form-control:focus, .form-select:focus { border-color: var(--pd-primary); box-shadow: 0 0 0 3px var(--pd-primary-soft); }
.modal-content, .offcanvas, .dropdown-menu { background: var(--pd-surface); border-color: var(--pd-border); }
.table { --bs-table-bg: transparent; --bs-table-hover-bg: var(--pd-surface-2); }
.table > :not(caption) > * > * { border-bottom-color: var(--pd-border); }
.table thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--pd-muted); font-weight: 600; }
.small-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pd-muted); font-weight: 600; }

/* ---------- Вход ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .auth-wrap { grid-template-columns: 1.1fr 1fr; } }
.auth-hero {
  display: none; background: linear-gradient(140deg, #0f1729 0%, #14306b 55%, #2015ff 100%); color: #fff;
  padding: 56px; flex-direction: column; justify-content: space-between;
}
@media (min-width: 992px) { .auth-hero { display: flex; } }
.auth-hero h1 { font-size: 2.2rem; font-weight: 700; line-height: 1.2; }
.auth-hero li { margin-bottom: 10px; opacity: 0.9; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 34px; height: 34px; }

/* ---------- Каркас ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 248px; background: var(--pd-sidebar); color: var(--pd-sidebar-text);
  display: flex; flex-direction: column; z-index: 1030; padding: 14px 12px;
}
.sidebar .brand { color: #fff; padding: 6px 10px 18px; }
.nav-item-pd {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; color: var(--pd-sidebar-text);
  text-decoration: none; font-weight: 500; margin-bottom: 2px; cursor: pointer;
}
.nav-item-pd i { font-size: 1.1rem; width: 20px; text-align: center; }
.nav-item-pd:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-item-pd.active { background: rgba(76, 141, 255, 0.18); color: var(--pd-sidebar-active); }
.nav-item-pd .badge { margin-left: auto; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; color: #fff; }
.user-chip:hover { background: rgba(255, 255, 255, 0.06); }
.user-chip small { color: var(--pd-sidebar-text); display: block; line-height: 1.2; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.78rem; background: var(--pd-primary-soft); color: var(--pd-primary); flex-shrink: 0;
}
.avatar.sm { width: 24px; height: 24px; font-size: 0.66rem; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .emoji { font-size: 1.15em; line-height: 1; }
.avatar.sm .emoji { font-size: 1em; }
.sidebar .avatar { background: rgba(76, 141, 255, 0.25); color: #fff; }

.main { margin-left: 248px; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 1020; background: color-mix(in srgb, var(--pd-bg) 88%, transparent);
  backdrop-filter: blur(8px); display: flex; align-items: center; gap: 12px; padding: 12px 24px;
  border-bottom: 1px solid var(--pd-border);
}
.topbar h1 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.content { padding: 20px 24px 40px; max-width: 1400px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--pd-border); background: var(--pd-surface);
  display: inline-flex; align-items: center; justify-content: center; color: var(--pd-text); position: relative;
}
.icon-btn:hover { background: var(--pd-surface-2); }
.icon-btn .dot {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--pr-critical); color: #fff; font-size: 0.68rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

.bottom-nav { display: none; }
@media (max-width: 991.98px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .topbar { padding: 10px 16px; }
  .content { padding: 14px 16px 96px; }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040; background: var(--pd-surface);
    border-top: 1px solid var(--pd-border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav button {
    flex: 1; background: none; border: 0; color: var(--pd-muted); display: flex; flex-direction: column;
    align-items: center; gap: 2px; font-size: 0.68rem; font-weight: 600; position: relative; padding: 4px 0;
  }
  .bottom-nav button i { font-size: 1.25rem; }
  .bottom-nav button.active { color: var(--pd-primary); }
  .bottom-nav .dot { position: absolute; top: 0; left: 55%; }
}

/* ---------- Панели и карточки ---------- */
.panel { background: var(--pd-surface); border: 1px solid var(--pd-border); border-radius: var(--pd-radius); box-shadow: var(--pd-shadow); }
.panel-body { padding: 16px; }
.panel-head { padding: 14px 16px; border-bottom: 1px solid var(--pd-border); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.empty { text-align: center; color: var(--pd-muted); padding: 48px 16px; }
.empty i { font-size: 2.2rem; display: block; margin-bottom: 8px; opacity: 0.6; }

.seg { display: inline-flex; background: var(--pd-surface-2); border: 1px solid var(--pd-border); border-radius: 10px; padding: 3px; gap: 2px; overflow-x: auto; max-width: 100%; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 0.85rem; color: var(--pd-muted); white-space: nowrap; }
.seg button.active { background: var(--pd-surface); color: var(--pd-text); box-shadow: var(--pd-shadow); }

.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--pd-border); background: var(--pd-surface); border-radius: 999px; padding: 5px 12px;
  font-size: 0.82rem; font-weight: 600; color: var(--pd-text); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center;
}
.chip .n { background: var(--pd-surface-2); border-radius: 999px; padding: 0 7px; font-size: 0.75rem; color: var(--pd-muted); }
.chip.active { background: var(--pd-primary); border-color: var(--pd-primary); color: #fff; }
.chip.active .n { background: rgba(255, 255, 255, 0.22); color: #fff; }
.chip.danger .n { background: rgba(220, 38, 38, 0.12); color: var(--pr-critical); }
.chip.danger.active { background: var(--pr-critical); border-color: var(--pr-critical); }

.search { position: relative; }
.search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--pd-muted); }
.search input { padding-left: 36px; }

/* ---------- Заявки ---------- */
.tlist { display: grid; gap: 10px; }
.tcard {
  background: var(--pd-surface); border: 1px solid var(--pd-border); border-radius: var(--pd-radius); padding: 14px 16px 12px;
  box-shadow: var(--pd-shadow); border-left: 4px solid transparent; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.tcard:hover { box-shadow: var(--pd-shadow-lg); }
.tcard.pr-critical { border-left-color: var(--pr-critical); }
.tcard.pr-high { border-left-color: var(--pr-high); }
.tcard .row1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.tcard .num { font-weight: 700; font-size: 0.85rem; color: var(--pd-muted); }
.tcard .title { font-weight: 600; font-size: 0.97rem; line-height: 1.35; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tcard .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--pd-muted); font-size: 0.83rem; }
.tcard .meta i { margin-right: 4px; }
.tcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--pd-border); }
.tcard .quick { display: flex; gap: 6px; }
/* Просроченная заявка: лёгкий красный фон и красная плашка срока — в длинном списке видна сразу */
.tcard.late { background: color-mix(in srgb, var(--pr-critical) 6%, var(--pd-surface)); border-color: color-mix(in srgb, var(--pr-critical) 30%, var(--pd-border)); }
.tcard .sla.late { background: color-mix(in srgb, var(--pr-critical) 14%, transparent); padding: 1px 8px; border-radius: 999px; }
/* Счётчик активных заявок на объекте; от 5 — объект «горячий» */
.obj-count { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: var(--pd-primary-soft); color: var(--pd-primary); white-space: nowrap; }
.obj-count.hot { background: color-mix(in srgb, var(--pr-critical) 14%, transparent); color: var(--pr-critical); }
.ph-count { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; font-weight: 700; color: var(--st-onsite); white-space: nowrap; }

.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 0.76rem; font-weight: 600;
  background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.st-new { --c: var(--st-new); } .st-assigned { --c: var(--st-assigned); } .st-onway { --c: var(--st-onway); }
.st-onsite { --c: var(--st-onsite); } .st-control { --c: var(--st-control); } .st-closed { --c: var(--st-closed); }
.st-cancelled { --c: var(--st-cancelled); }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px; font-size: 0.74rem; font-weight: 600; background: var(--pd-surface-2); color: var(--pd-muted); border: 1px solid var(--pd-border); white-space: nowrap; }
.tag.um { background: #059669; border-color: #059669; color: #fff; }
.tag.pr-critical { color: var(--pr-critical); border-color: color-mix(in srgb, var(--pr-critical) 40%, transparent); }
.tag.pr-high { color: var(--pr-high); border-color: color-mix(in srgb, var(--pr-high) 40%, transparent); }

.sla { font-size: 0.8rem; font-weight: 600; white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; }
.sla.ok { color: var(--pd-muted); }
.sla.soon { color: var(--pr-high); }
.sla.late { color: var(--pr-critical); }

/* ---------- Карточка заявки (offcanvas) ---------- */
.ticket-panel { --bs-offcanvas-width: min(720px, 100vw); }
.ticket-panel .offcanvas-header { border-bottom: 1px solid var(--pd-border); align-items: flex-start; gap: 12px; }
.ticket-panel .offcanvas-body { padding: 0; }
.action-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--pd-border); background: var(--pd-surface-2); }
.tabs-pd { display: flex; gap: 4px; border-bottom: 1px solid var(--pd-border); padding: 0 12px; position: sticky; top: 0; background: var(--pd-surface); z-index: 2; overflow-x: auto; }
.tabs-pd button { border: 0; background: none; padding: 11px 10px; font-weight: 600; color: var(--pd-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs-pd button.active { color: var(--pd-primary); border-bottom-color: var(--pd-primary); }
.tab-pane-pd { padding: 16px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; font-size: 0.9rem; }
.kv dt { color: var(--pd-muted); font-weight: 500; }
.kv dd { margin: 0; word-break: break-word; }
@media (max-width: 575.98px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } }
.desc { white-space: pre-wrap; background: var(--pd-surface-2); border: 1px solid var(--pd-border); border-radius: 10px; padding: 12px; font-size: 0.9rem; }

.feed { display: flex; flex-direction: column; gap: 14px; }
.feed-item { display: flex; gap: 10px; }
.feed-item .body { flex: 1; min-width: 0; }
.feed-item .who { font-weight: 600; font-size: 0.86rem; }
.feed-item .when { color: var(--pd-muted); font-size: 0.78rem; margin-left: 6px; }
.feed-item .bubble { background: var(--pd-surface-2); border: 1px solid var(--pd-border); border-radius: 0 10px 10px 10px; padding: 8px 12px; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.feed-item.sys .text { color: var(--pd-muted); font-size: 0.86rem; }
.feed-icon { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--pd-surface-2); color: var(--pd-muted); flex-shrink: 0; border: 1px solid var(--pd-border); }
.composer { position: sticky; bottom: 0; background: var(--pd-surface); border-top: 1px solid var(--pd-border); padding: 12px 16px; display: flex; gap: 8px; }

.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.file-tile { border: 1px solid var(--pd-border); border-radius: 10px; overflow: hidden; background: var(--pd-surface-2); position: relative; text-decoration: none; color: var(--pd-text); display: block; }
.file-tile img { width: 100%; height: 100px; object-fit: cover; display: block; }
.file-tile .doc { height: 100px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--pd-muted); }
.file-tile .cap { font-size: 0.72rem; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-tile .del { position: absolute; top: 4px; right: 4px; }
.dropzone { border: 2px dashed var(--pd-border); border-radius: 12px; padding: 18px; text-align: center; color: var(--pd-muted); }

.cl-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--pd-border); }
.cl-item:last-child { border-bottom: 0; }
.cl-item .lbl { flex: 1; font-weight: 500; }
.cl-item .req { color: var(--pr-critical); margin-left: 2px; }
.cl-item .ctl { width: 46%; max-width: 280px; }
.cl-progress { height: 6px; border-radius: 3px; background: var(--pd-surface-2); overflow: hidden; }
.cl-progress > div { height: 100%; background: var(--st-closed); }

.choice { display: grid; gap: 8px; }
.choice label { border: 1px solid var(--pd-border); border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.choice input:checked + div { color: var(--pd-primary); }
.choice label:has(input:checked) { border-color: var(--pd-primary); background: var(--pd-primary-soft); }

.people { max-height: 46vh; overflow-y: auto; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.person:hover { background: var(--pd-surface-2); }
.person .load { margin-left: auto; font-size: 0.78rem; color: var(--pd-muted); }

.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--pd-surface); border: 1px solid var(--pd-border); border-radius: 10px; box-shadow: var(--pd-shadow-lg); max-height: 260px; overflow-y: auto; }
.suggest div { padding: 8px 12px; cursor: pointer; }
.suggest div:hover { background: var(--pd-surface-2); }

/* ---------- Аналитика ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { background: var(--pd-surface); border: 1px solid var(--pd-border); border-radius: var(--pd-radius); padding: 14px 16px; box-shadow: var(--pd-shadow); }
.kpi .v { font-size: 1.7rem; font-weight: 700; line-height: 1.1; margin-top: 4px; }
.kpi .s { color: var(--pd-muted); font-size: 0.8rem; margin-top: 2px; }
.chart svg { width: 100%; height: 220px; display: block; }
.chart .bar-created { fill: color-mix(in srgb, var(--pd-primary) 35%, transparent); }
.chart .bar-closed { fill: var(--st-closed); }
.chart text { fill: var(--pd-muted); font-size: 10px; }
.legend { display: flex; gap: 14px; font-size: 0.8rem; color: var(--pd-muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.meter { height: 8px; border-radius: 4px; background: var(--pd-surface-2); overflow: hidden; min-width: 80px; }
.meter > div { height: 100%; background: var(--pd-primary); }

/* ---------- Прочее ---------- */
.row-click { cursor: pointer; }
.pipeline-box { background: var(--pd-surface-2); border: 1px solid var(--pd-border); border-radius: 10px; padding: 10px 12px; font-size: 0.85rem; }
.toast-container { z-index: 2000; }
.offline-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.offline-box { text-align: center; max-width: 360px; padding: 24px; }
.offline-box h1 { font-size: 1.3rem; margin: 16px 0 8px; }
.skeleton { height: 96px; border-radius: var(--pd-radius); background: linear-gradient(90deg, var(--pd-surface) 0%, var(--pd-surface-2) 50%, var(--pd-surface) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border: 1px solid var(--pd-border); }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.wizard-wrap { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; }
.wizard-card { width: 100%; max-width: 860px; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; }
.steps .s { display: flex; align-items: center; gap: 8px; color: var(--pd-muted); font-weight: 600; font-size: 0.85rem; }
.steps .s b { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--pd-surface-2); border: 1px solid var(--pd-border); }
.steps .s.active { color: var(--pd-text); }
.steps .s.active b { background: var(--pd-primary); border-color: var(--pd-primary); color: #fff; }
.steps .s.done b { background: var(--st-closed); border-color: var(--st-closed); color: #fff; }
@media (max-width: 991.98px) {
  /* На телефоне сообщения внизу, над нижним меню: не перекрывают кнопки в шапке панелей */
  #toastBox { top: auto !important; bottom: calc(72px + env(safe-area-inset-bottom)); left: 0; right: 0 !important; display: flex; flex-direction: column; align-items: center; }
}
.tag.x5-control { background: color-mix(in srgb, #f59e0b 22%, transparent); border-color: #f59e0b; color: #b45309; }
[data-bs-theme="dark"] .tag.x5-control { color: #fbbf24; }
.obj-tickets { display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.obj-ticket { display: block; padding: 8px 10px; border: 1px solid var(--pd-border); border-radius: 8px; text-decoration: none; color: var(--pd-text); font-size: 0.85rem; background: var(--pd-surface); }
.obj-ticket:hover { background: var(--pd-surface-2); }
.obj-ticket.current { border-color: var(--pd-primary); background: var(--pd-primary-soft); }
.obj-ticket .ot-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.obj-ticket .num { font-weight: 700; color: var(--pd-muted); white-space: nowrap; }
.obj-ticket .ot-title { margin-top: 4px; font-weight: 500; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.obj-ticket .ot-meta { margin-top: 2px; font-size: 0.78rem; color: var(--pd-muted); }

.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.sortable:hover { color: var(--pd-primary); }
.sort-mark { font-size: .7em; }
.kpi-tile { min-width: 96px; padding: 6px 12px; border-radius: 9px; background: var(--pd-primary-soft); }

/* Пока открыта карточка/окно, страница под ними не прокручивается (html сам имеет overflow-x, Bootstrap блокирует только body) */
html:has(.offcanvas.show, .modal.show) { overflow: hidden; }
.offcanvas, .modal { overscroll-behavior: contain; }
.sum-filter { cursor: pointer; }
.kpi-tile.sum-link { cursor: pointer; color: inherit; }
.kpi-tile.sum-link:hover { outline: 2px solid var(--pd-primary); outline-offset: 1px; }
.sum-filter.active { outline: 2px solid var(--pd-primary); outline-offset: 1px; }

/* Сводка по объектам: современные карточки, мягкие тени, чистая таблица */
[data-sumbox] .kpi-tile { background: var(--pd-surface-2); border: 1px solid var(--pd-border) !important; border-radius: 12px; padding: 10px 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .15s, transform .15s; }
[data-sumbox] .kpi-tile .fs-5 { font-size: 1.5rem !important; line-height: 1.1; }
[data-sumbox] .kpi-tile.sum-link:hover { outline: 0; box-shadow: 0 4px 12px rgba(0,0,0,.12); transform: translateY(-1px); }
[data-sumbox] .tag.sum-filter, [data-sumbox] .badge.sum-filter { border-radius: 999px; padding: 4px 12px; font-size: .78rem; transition: background .15s; }
[data-sumbox] .sum-filter.active { outline: 0; background: var(--pd-primary) !important; color: #fff !important; border-color: var(--pd-primary) !important; }
[data-sumbox] .table-responsive { border: 1px solid var(--pd-border); border-radius: 12px; }
[data-sumbox] table { margin: 0; }
[data-sumbox] th { position: sticky; top: 0; z-index: 1; background: var(--pd-surface-2); color: var(--pd-muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--pd-border); }
[data-sumbox] td { border-color: var(--pd-border); padding-top: 10px; padding-bottom: 10px; }
[data-sumbox] tbody tr:hover td { background: var(--pd-primary-soft); }
[data-sumbox] td a[data-action="object-open"] { color: var(--pd-primary); text-decoration: none; }
[data-sumbox] td a[data-action="object-open"]:hover { text-decoration: underline; }
.gs-q { width: 18px; height: 18px; padding: 0; line-height: 16px; font-size: .72rem; font-weight: 700; text-align: center; vertical-align: middle;
  background: var(--pd-surface-2); color: var(--pd-muted); border: 1px solid var(--pd-border); border-radius: 50%; cursor: pointer; margin-left: 4px; }
.gs-q:hover { background: var(--pd-primary); color: #fff; border-color: var(--pd-primary); }
.gs-hint { margin-top: 6px; padding: 8px 10px; background: var(--pd-surface); color: var(--pd-text); border: 1px solid var(--pd-border); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.1); font-size: .78rem; font-weight: 400; max-width: 340px; }

/* Чаты в стиле Telegram */
:root { --chat-bg: #e6ebee; --chat-bubble: #ffffff; --chat-mine: #effdde; --chat-mine-meta: #4fae4e; --chat-accent: #3390ec; --chat-muted: #707579; }
[data-bs-theme="dark"] { --chat-bg: #0e1621; --chat-bubble: #182533; --chat-mine: #2b5278; --chat-mine-meta: #8cc2ff; --chat-accent: #6ab3f3; --chat-muted: #7f91a4; }
[data-bs-theme="dark"] .chat-pane { background-image: radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px); }

.chat-layout { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 150px); min-height: 440px; border: 1px solid var(--pd-border); border-radius: var(--pd-radius); overflow: hidden; background: var(--pd-bg); }
.chat-rooms { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--pd-border); background: var(--pd-bg); }
.chat-search { margin: 10px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; background: var(--pd-surface); color: var(--chat-muted); }
.chat-search input { flex: 1; border: 0; background: transparent; padding: 8px 0; outline: none; color: var(--pd-text); }
.chat-room-list { overflow-y: auto; flex: 1; padding: 0 6px 6px; }
.chat-room { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; color: var(--pd-text); text-decoration: none; }
.chat-room:hover { background: var(--pd-surface); }
.chat-room.active { background: var(--chat-accent); color: #fff; }
.chat-room.active .chat-room-time, .chat-room.active .chat-room-last, .chat-room.active .chat-room-who, .chat-room.active .chat-pin { color: rgba(255, 255, 255, .85); }
.chat-room-main { flex: 1; min-width: 0; }
.chat-room-top, .chat-room-bottom { display: flex; align-items: center; gap: 6px; }
.chat-room-title { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-room-time { font-size: .75rem; color: var(--chat-muted); }
.chat-room-last { flex: 1; min-width: 0; font-size: .85rem; color: var(--chat-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-room-who { color: var(--pd-text); }
.chat-unread { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--chat-accent); color: #fff; font-size: .75rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.chat-room.active .chat-unread { background: #fff; color: var(--chat-accent); }
.chat-pin { color: var(--chat-muted); font-size: .8rem; }
.chat-ava { width: 48px; height: 48px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 1rem; }
.chat-ava-news { background: linear-gradient(135deg, #f8a35d, #e8645b); font-size: 1.25rem; }
.chat-ava-helper { background: linear-gradient(135deg, #6ec9cb, #3390ec); font-size: 1.25rem; }
.chat-ava-sm { width: 34px; height: 34px; font-size: .95rem; }

.chat-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; background-color: var(--chat-bg);
  background-image: radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px); background-size: 18px 18px; }
.chat-head { padding: 8px 14px; display: flex; align-items: center; gap: 10px; background: var(--pd-bg); border-bottom: 1px solid var(--pd-border); }
.chat-head .chat-ava { width: 40px; height: 40px; font-size: .9rem; }
.chat-head-sub { font-size: .8rem; color: var(--chat-muted); }
.chat-icon-btn { border: 0; background: transparent; color: var(--chat-muted); width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; cursor: pointer; flex: none; }
.chat-icon-btn:hover { background: var(--pd-surface); color: var(--pd-text); }
.chat-messages { flex: 1; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.chat-empty { margin: auto; max-width: 360px; text-align: center; color: var(--chat-muted); background: var(--chat-bubble); padding: 14px 18px; border-radius: 16px; }
.chat-day { display: flex; justify-content: center; margin: 10px 0 6px; position: sticky; top: 0; z-index: 1; }
.chat-day span, .chat-service span { background: rgba(0, 0, 0, .35); color: #fff; font-size: .78rem; padding: 3px 10px; border-radius: 12px; }
.chat-service { display: flex; justify-content: center; margin: 6px 0; text-align: center; }
.chat-service span { max-width: 80%; }

.chat-msg { display: flex; align-items: flex-end; gap: 8px; max-width: min(620px, 92%); }
.chat-msg.first { margin-top: 6px; }
.chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-ava { width: 34px; flex: none; }
.chat-bubble { position: relative; background: var(--chat-bubble); color: var(--pd-text); border-radius: 16px; padding: 6px 10px 6px; min-width: 64px; max-width: 100%; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.chat-msg.last:not(.mine) .chat-bubble { border-bottom-left-radius: 4px; }
.chat-msg.mine .chat-bubble { background: var(--chat-mine); }
.chat-msg.mine.last .chat-bubble { border-bottom-right-radius: 4px; }
.chat-author { font-weight: 600; font-size: .85rem; margin-bottom: 1px; }
.chat-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.35; }
.chat-meta { float: right; margin: 6px 0 -4px 10px; font-size: .72rem; color: var(--chat-muted); white-space: nowrap; user-select: none; }
.chat-msg.mine .chat-meta { color: var(--chat-mine-meta); }
.chat-quote { display: block; border-left: 3px solid var(--chat-accent); background: rgba(51, 144, 236, .08); border-radius: 6px; padding: 3px 8px; margin: 2px 0 4px; text-decoration: none; color: var(--pd-text); font-size: .85rem; }
.chat-quote b { display: block; color: var(--chat-accent); font-weight: 600; }
.chat-quote span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--chat-muted); }
.chat-img { max-width: 260px; max-height: 220px; border-radius: 10px; display: block; margin-top: 4px; }
.chat-file { display: flex; gap: 10px; align-items: center; margin-top: 4px; text-decoration: none; color: var(--pd-text); max-width: 280px; }
.chat-file > .bi { width: 40px; height: 40px; border-radius: 50%; background: var(--chat-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex: none; }
.chat-file small { color: var(--chat-muted); }
.chat-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; align-items: center; clear: both; }
.chat-react { border: 0; background: rgba(51, 144, 236, .12); color: var(--chat-accent); border-radius: 999px; padding: 0 8px; font-size: .85rem; line-height: 24px; cursor: pointer; }
.chat-react.mine { background: var(--chat-accent); color: #fff; }
.chat-palette { display: inline-flex; gap: 2px; background: var(--pd-bg); border-radius: 999px; padding: 2px 6px; box-shadow: var(--pd-shadow-lg); }
.chat-palette button { border: 0; background: none; font-size: 1.15rem; padding: 0 3px; cursor: pointer; transition: transform .1s; }
.chat-palette button:hover { transform: scale(1.25); }
.chat-actions { position: absolute; top: -14px; right: 6px; display: none; gap: 2px; background: var(--pd-bg); border-radius: 999px; padding: 2px 4px; box-shadow: var(--pd-shadow-lg); z-index: 2; }
.chat-msg.mine .chat-actions { right: auto; left: 6px; }
.chat-actions button { border: 0; background: none; color: var(--chat-muted); width: 28px; height: 28px; border-radius: 50%; }
.chat-actions button:hover { background: var(--pd-surface); color: var(--pd-text); }
.chat-bubble:hover > .chat-actions, .chat-post:hover .chat-actions { display: inline-flex; }
@media (hover: none) { .chat-bubble:focus-within > .chat-actions, .chat-bubble:active > .chat-actions { display: inline-flex; } }
.chat-msg.flash .chat-bubble, .chat-post.flash { animation: chatFlash 1.2s; }
@keyframes chatFlash { 30% { box-shadow: 0 0 0 3px var(--chat-accent); } }
.chat-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; clear: both; }
.chat-sources a { font-size: .82rem; padding: 2px 8px; border-radius: 8px; background: rgba(51, 144, 236, .1); color: var(--chat-accent); text-decoration: none; }
.chat-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; clear: both; }
.chat-options button { border: 1px solid var(--chat-accent); color: var(--chat-accent); background: transparent; border-radius: 10px; padding: 4px 10px; font-size: .85rem; cursor: pointer; }
.chat-options button:hover { background: var(--chat-accent); color: #fff; }
.chat-typing span { animation: chatDots 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chatDots { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }
.chat-more { font-size: .82rem; background: rgba(0, 0, 0, .3); color: #fff; padding: 3px 10px; border-radius: 12px; text-decoration: none; }

/* Пост канала «Новости» */
.chat-post { position: relative; align-self: center; width: min(620px, 100%); background: var(--chat-bubble); border-radius: 16px; margin: 8px 0; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); border-top: 3px solid var(--chat-accent); }
.chat-post.level-error { border-top-color: #e53935; }
.chat-post.level-update { border-top-color: #43a047; }
.chat-post-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 4px; }
.chat-post-head .chat-actions { top: 6px; }
.chat-post > .chat-body { padding: 2px 12px; }
.chat-post > .chat-file, .chat-post > a > .chat-img { margin-left: 12px; }
.chat-post-foot { display: flex; align-items: flex-end; gap: 8px; padding: 2px 12px 8px; }
.chat-post-foot .chat-reacts { flex: 1; }
.chat-post-foot .chat-meta { margin-left: auto; }
.chat-comments { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--pd-border); color: var(--chat-accent); text-decoration: none; font-size: .9rem; font-weight: 600; }
.chat-comments:hover { background: var(--pd-surface); border-radius: 0 0 16px 16px; }
.chat-thread { display: flex; flex-direction: column; gap: 2px; background: var(--chat-bg); border-radius: 14px; padding: 8px; }
#chatThreadPost .chat-post { margin-top: 0; }

/* Поле ввода */
.chat-readonly { padding: 10px 16px; text-align: center; background: var(--pd-bg); color: var(--chat-muted); border-top: 1px solid var(--pd-border); }
.chat-compose { padding: 8px 12px 10px; background: var(--pd-bg); border-top: 1px solid var(--pd-border); }
.chat-compose-row { display: flex; align-items: flex-end; gap: 6px; }
.chat-compose textarea { flex: 1; resize: none; max-height: 140px; border: 0; outline: none; background: var(--pd-surface); color: var(--pd-text); border-radius: 20px; padding: 9px 14px; line-height: 1.35; }
.chat-send { border: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--chat-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; flex: none; }
.chat-reply-bar { display: flex; align-items: center; gap: 10px; padding: 4px 4px 8px; font-size: .85rem; }
.chat-reply-bar > .bi { color: var(--chat-accent); font-size: 1.2rem; }
.chat-reply-bar b { color: var(--chat-accent); }
/* Вложения перед отправкой, запись голоса */
.chat-pending { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-pending:not(:empty) { padding: 0 2px 8px; }
.chat-pending-item { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; background: var(--pd-surface); border: 1px solid var(--pd-border); border-radius: 10px; padding: 3px 4px 3px 3px; font-size: .8rem; }
.chat-pending-item img, .chat-pending-item > .bi { width: 36px; height: 36px; border-radius: 7px; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--chat-accent); background: rgba(51, 144, 236, .1); }
.chat-pending-item button { border: 0; background: none; color: var(--pd-muted); padding: 0 2px; font-size: 1.1rem; line-height: 1; }
.chat-rec { display: flex; align-items: center; gap: 10px; padding: 0 4px 8px; font-size: .85rem; }
.chat-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e53935; animation: chat-rec-pulse 1s ease-in-out infinite; }
.chat-rec-hint { color: var(--pd-muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-rec-cancel { border: 0; background: none; color: var(--chat-accent); font-weight: 600; }
.chat-mic.recording { background: #e53935; animation: chat-rec-pulse 1.2s ease-in-out infinite; }
.chat-react.playing { background: var(--chat-accent); color: #fff; }
@keyframes chat-rec-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .chat-rec-dot, .chat-mic.recording { animation: none; } }
.chat-back { display: none; }

/* Десктоп: чат занимает всё место справа от меню и под шапкой — без отступов, без внешней прокрутки страницы */
@media (min-width: 992px) {
  body.view-chat { overflow: hidden; }
  body.view-chat .main { height: 100vh; height: 100dvh; min-height: 0; display: flex; flex-direction: column; }
  body.view-chat #newsBanner:empty { display: none; }
  body.view-chat .content { flex: 1; min-height: 0; padding: 0; max-width: none; }
  body.view-chat #view-chat { height: 100%; }
  body.view-chat .chat-layout { height: 100%; min-height: 0; border: 0; border-radius: 0; }
}
@media (max-width: 991.98px) {
  /* чат на телефоне — на весь экран поверх шапки; в открытой комнате ещё и без нижней панели */
  body.view-chat .topbar { display: none; }
  body.view-chat #newsBanner { display: none; }
  body.view-chat .content { padding: 0; }
  body.view-chat .chat-layout { grid-template-columns: 1fr; position: fixed; left: 0; right: 0; top: var(--vvtop, 0px); z-index: 1030; min-height: 0;
    height: calc(var(--vvh, 100dvh) - 58px - env(safe-area-inset-bottom)); }
  body.view-chat:has(.chat-layout.in-room) .bottom-nav { display: none; }
  body.view-chat .chat-layout.in-room { height: var(--vvh, 100dvh); }
  .chat-compose { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  body.view-chat .chat-layout.in-room .chat-compose { padding-bottom: 10px; }
  .chat-rooms { border-right: 0; }
  .chat-layout.in-room .chat-rooms { display: none; }
  .chat-layout:not(.in-room) .chat-pane { display: none; }
  .chat-back { display: inline-flex; }
  .chat-msg { max-width: 94%; }
}
.kb-body h4, .kb-body h5, .kb-body h6 { font-weight: 700; }
.kb-body ul, .kb-body ol { padding-left: 1.4rem; margin-bottom: .5rem; }

/* Группа меню «Администрирование» */
.nav-group { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .08); }
.nav-group-title { cursor: pointer; text-transform: none; }
.nav-group-caret { margin-left: auto; transition: transform .2s; }
.nav-group.collapsed .nav-group-caret { transform: rotate(-90deg); }
.nav-group.collapsed .nav-group-items { display: none; }
.nav-group-items .nav-item-pd { padding-left: 28px; }

/* Профиль */
.profile-wrap { max-width: 720px; margin: 0 auto; }
.profile-menu { overflow: hidden; }
.profile-group { padding: 12px 16px 6px; color: var(--pd-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.profile-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--pd-text); text-decoration: none; cursor: pointer; border-top: 1px solid var(--pd-border); }
.profile-menu > .profile-item:first-child, .profile-group + .profile-item { border-top: 0; }
.profile-item:hover { background: var(--pd-primary-soft); }
.profile-item > span { flex: 1; }
.profile-item > .bi:first-child { color: var(--pd-primary); font-size: 1.15rem; }
.profile-item > .bi-chevron-right { color: var(--pd-muted); }

/* Всплывающие уведомления (3 секунды) */
.notif-popups { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1090; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.notif-popup { pointer-events: auto; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--pd-bg); color: var(--pd-text); border: 1px solid var(--pd-border); box-shadow: var(--pd-shadow-lg); cursor: pointer; opacity: 0; transform: translateY(-12px); transition: opacity .25s, transform .25s; }
.notif-popup.show { opacity: 1; transform: none; }
.notif-popup > .bi { font-size: 1.3rem; color: var(--pd-primary); }
#sideNav { overflow-y: auto; min-height: 0; flex: 1; }

/* Календарь графика дежурств на месяц: у каждого дежурного свой цвет (--c), свои смены — с рамкой */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { font-size: .75rem; color: var(--pd-muted); text-align: center; padding: 2px 0; }
.cal-day { min-height: 84px; border: 1px solid var(--pd-border); border-radius: 10px; padding: 4px; background: var(--pd-bg); overflow: hidden; }
.cal-day.out { opacity: .45; }
.cal-day.today { border-color: var(--pd-primary); box-shadow: inset 0 0 0 1px var(--pd-primary); }
.cal-day.weekend { background: var(--pd-surface); }
.cal-num { font-size: .75rem; font-weight: 600; margin-bottom: 2px; }
.cal-chip { display: block; font-size: .7rem; line-height: 1.25; padding: 1px 4px; margin-bottom: 2px; border-radius: 6px;
  color: #fff; background: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip.mine { outline: 2px solid var(--pd-text); outline-offset: -2px; font-weight: 700; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .8rem; margin-top: 8px; }
.cal-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 4px; vertical-align: middle; }
@media (max-width: 575.98px) { .cal-day { min-height: 64px; padding: 2px; } .cal-chip { font-size: .62rem; padding: 0 2px; } }
