/* Metod-24 / Точная система / Синяя метка / Метка с деталями.
   The approved direction is applied to existing controls and workflows. */
html { color-scheme: light; }
body { font: 14px/1.5 var(--font-body); color: var(--ink); }
h1 { font-size: clamp(25px, 2.5vw, 30px); line-height: 1.24; font-weight: 650; letter-spacing: -.7px; }
h2 { font-size: 17px; font-weight: 650; letter-spacing: -.25px; }
h3 { font-size: 15px; font-weight: 650; }
small { font-size: 12px; }
.content { padding-top: 30px; }
.page-heading { align-items: flex-start; margin-bottom: 24px; }
.page-heading > div:first-child::before {
  content: ""; display: block; width: 25px; height: 4px; margin-bottom: 13px;
  background: linear-gradient(90deg, var(--accent) 0 16px, transparent 16px 21px, var(--accent) 21px 25px);
  pointer-events: none;
}
.eyebrow { font-size: 11px; letter-spacing: .08em; font-weight: 600; margin-bottom: 6px; }
.subtitle { font-size: 13px; }
.sidebar { background: var(--paper); color: var(--ink); border-right-color: var(--line); padding-top: 24px; }
.brand { width: 174px; margin-bottom: 25px; }
.nav-item {
  min-height: 40px; padding: 9px 10px; gap: 10px; border-left: 3px solid transparent;
  font-size: 13px; font-weight: 400; color: var(--muted);
}
.nav-item:hover { background: var(--surface-soft); color: var(--ink); }
.nav-item.active {
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 650;
  border-left-color: var(--accent); border-top-left-radius: 0; border-bottom-left-radius: 0;
}
.nav-item.active::after {
  content: ""; width: 5px; height: 5px; background: var(--accent); margin-left: auto;
  flex: 0 0 5px; pointer-events: none;
}
.nav-icon { color: var(--muted); width: 18px; height: 18px; flex: 0 0 18px; }
.nav-icon svg { display: block; width: 18px; height: 18px; }
.nav-item.active .nav-icon { color: var(--accent); }
.nav-caption { font-size: 10px; letter-spacing: .08em; color: var(--muted); margin-top: 23px; }
.sidebar :is(a, button):focus-visible { outline-color: var(--accent); }
.sidebar-bottom { color: var(--muted); font-size: 11px; }
.sidebar-bottom p { color: var(--muted); }
.status-dot { background: var(--accent); border-radius: 1px; }
.profile { border-top-color: var(--line); color: var(--ink); }
.profile small { color: var(--muted); }
.avatar { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); border-radius: 6px; }
.sidebar .profile .avatar { background: var(--accent-soft); color: var(--accent-ink); }
.sidebar .profile small { font-size: 11px; }
.sidebar .profile strong { font-size: 12px; }
.profile .icon-button { color: var(--muted); }
.profile .icon-button:hover { background: var(--accent-soft); color: var(--accent); }
.icon-button svg { display: block; width: 18px; height: 18px; }
.button { min-height: 38px; padding: 8px 13px; font-size: 13px; font-weight: 600; line-height: 1.4; border-radius: 6px; }
.button.secondary { color: var(--ink); background: var(--paper); border-color: var(--line); }
.button.secondary:hover { color: var(--accent); background: var(--accent-soft); }
.button.primary { color: #fff; background: var(--accent); }
.button.primary:hover { background: var(--accent-hover); }
.button:focus-visible, .icon-button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.icon-button { border-radius: 6px; }
.panel, .stat-card, .form-card { border-color: var(--line); border-radius: 6px; box-shadow: none; }
.panel-heading { position: relative; padding-block: 15px; }
.panel-heading h2 { font-size: 15px; }
.panel-heading::after {
  content: ""; position: absolute; right: 20px; bottom: -3px; width: 5px; height: 5px;
  background: var(--accent); box-shadow: 0 0 0 3px var(--paper); pointer-events: none;
}
.stat-card > strong { font-size: 32px; font-weight: 650; letter-spacing: -.6px; }
.stat-card > div { font-size: 13px; }
.tag, .client-status, .order-stage { border-radius: 4px; font-size: 12px; line-height: 1.5; font-weight: 600; }
.company-avatar { border-radius: 6px; }
.tabs { gap: 18px; }
.tabs a { font-size: 13px; font-weight: 500; min-height: 42px; }
.tabs a.selected { color: var(--accent); font-weight: 650; }
.tabs span, .my-day-count { border-radius: 4px; }
.tabs a.selected span, .my-day-filters [aria-current="page"] .my-day-count {
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line);
}
.list-toolbar { padding-block: 12px; }
:where(.shell) th { padding: 11px 14px; background: var(--surface-soft); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }
:where(.shell) td { padding: 13px 14px; font-size: 13px; }
:where(.shell) tbody tr:hover { background: #F7F9FE; }
.table-footer { background: var(--paper); font-size: 12px; }
.form-field label { font-size: 13px; font-weight: 600; }
.form-field :is(input, select, textarea) { font-size: 14px; border-color: var(--line); border-radius: 6px; background: var(--paper); }
.form-field :is(input, select):not([type=checkbox]):not([type=radio]) { min-height: 38px; }
.form-field :is(input, select, textarea):hover { border-color: var(--control-line); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
.form-errors, .message, .note-panel { border-radius: 6px; }
.client-task-label, .client-task-badge { border-radius: 4px; }
.client-task-badge-today { background: var(--accent); }
.client-overview-step { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.client-overview-step h2 { font-size: 15px; }
.my-day-group h2, .my-day-side h2 { font-size: 15px; font-weight: 650; letter-spacing: -.15px; }
.my-day-plan { border-top: 4px solid var(--accent); }
.my-day-filters a { font-size: 12px; }
.my-day-row, .my-day-group { line-height: 1.5; }
.my-day-orders li strong { font-weight: 600; }
.company-heading h1 { font-size: clamp(24px, 2.6vw, 30px); }
.company-profile-side .panel-heading { padding-block: 14px; }
.company-order-name, .order-title { font-weight: 650; }
.metod24-app dialog {
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--dialog-shadow); padding: 24px; font: 14px/1.5 var(--font-body);
}
.metod24-app dialog::backdrop { background: #172C4352; }
.metod24-app dialog::before {
  content: ""; display: block; width: 25px; height: 4px; margin-bottom: 16px;
  background: linear-gradient(90deg, var(--accent) 0 16px, transparent 16px 21px, var(--accent) 21px 25px);
  pointer-events: none;
}
.metod24-app dialog h2 { font-size: 20px; letter-spacing: -.35px; }
.quote-placement-options > label:has(input:checked) { background: var(--accent-soft); border-left: 3px solid var(--accent); }
.quote-placement-options > label:has(input:checked) strong { color: var(--accent); }
.login-art { background: var(--accent-soft); position: relative; }
.login-art::before {
  content: ""; position: absolute; top: 48px; left: 48px; width: 45px; height: 6px;
  background: linear-gradient(90deg, var(--accent) 0 31px, transparent 31px 39px, var(--accent) 39px 45px);
}
.login-art .product-logo { width: min(100%, 300px); gap: 20px; }
.login-art .product-logo-image { width: 300px; }
.login-art .product-caption { color: var(--accent-ink); font-size: 16px; }
.login-card { border-radius: 6px; box-shadow: none; }
.login-card h1 { font-size: 28px; line-height: 1.25; letter-spacing: -.6px; }
.login-card .env-label { font-size: 10px; font-weight: 600; border: 0; border-radius: 4px; }
.env-label i { border-radius: 0; }
.login-main { margin-left: 0; }
.quote-brand { background: transparent; padding: 0; border-radius: 0; }
.quote-brand .product-logo-image { width: 170px; }
.quote-brand .product-caption { font-size: 11px; }
.online-quote-page { color: var(--ink); }
@media (max-width: 1250px) {
  .content { padding-top: 26px; }
  .brand { margin-left: 7px; }
}
@media (max-width: 720px) {
  h1 { font-size: 25px; }
  .sidebar { padding: 16px 16px 0; border-bottom: 1px solid var(--line); }
  .brand { margin-left: 0; width: 158px; margin-bottom: 14px; }
  .product-logo-image { width: 144px; }
  .product-caption { font-size: 11px; }
  .sidebar nav { padding-bottom: 5px; gap: 4px; }
  .nav-item { min-height: 38px; padding: 8px 10px; font-size: 12px; }
  .nav-item.active::after { width: 4px; height: 4px; flex-basis: 4px; }
  .profile { padding-block: 12px; }
  .content { padding-top: 22px; }
  .page-heading { margin-bottom: 20px; }
  .page-heading > div:first-child::before { margin-bottom: 10px; }
  .panel-heading { padding-block: 14px; }
  .login-art { min-height: 180px; }
  .login-art::before { top: 20px; left: 24px; width: 25px; height: 4px; background: linear-gradient(90deg,var(--accent) 0 16px,transparent 16px 21px,var(--accent) 21px 25px); }
  .login-art .product-logo { gap: 8px; width: 220px; }
  .login-art .product-logo-image { width: 220px; }
  .login-art .product-caption { font-size: 13px; }
  .login-main { padding: 24px 20px; }
  .login-card { width: 100%; }
  .metod24-app dialog { padding: 20px; max-width: calc(100% - 24px); }
}
@media print {
  body { background: #fff; font: 12px/1.6 var(--font-body); }
  h1 { font-size: 25px; }
  h2 { font-size: 16px; }
  h3 { font-size: 12px; }
  .product-logo-image { filter: none; }
}
