/* v23 Klodik · CRM shell in the Visit Time visual language.
   Tokens from the Visit Time UI kit (Figma export 19.10.2026): Manrope; #0D99FF primary, #FFBB00 warning,
   #FF1919 danger, #212B36 ink, #2FD47A success, #8C9197 muted, #C9C9C9 line, #F6F6F6 canvas;
   H1 40 / H2 28 / H3 18 / H4 15 / H5 13. Scoped to body.workspace-surface; public site untouched. */
body.workspace-surface{
  --vt-blue:#0B6FC2;--vt-blue-brand:#0D99FF;--vt-blue-dark:#095CA3;--vt-blue-soft:#EAF5FF;--vt-ink:#212B36;--vt-muted:#5d6670;--vt-muted-decor:#8C9197;
  --vt-line:#E6E8EB;--vt-line-strong:#C9C9C9;--vt-canvas:#F6F6F6;--vt-surface:#fff;--vt-green:#2FD47A;
  --vt-green-soft:#E6FAEF;--vt-yellow:#FFBB00;--vt-yellow-soft:#FFF6D6;--vt-red:#FF1919;--vt-red-soft:#FFE9E9;
  --vt-radius:16px;--vt-radius-sm:12px;
  --ink:var(--vt-ink);--muted:#5d6670;--accent:var(--vt-blue);--line:var(--vt-line);--bg:var(--vt-canvas);
  background:var(--vt-canvas)!important;color:var(--vt-ink);
}
/* ---------- sidebar ---------- */
body.workspace-surface #sidebar{background:#fff;border-right:1px solid var(--vt-line);padding:18px 14px}
body.workspace-surface #sidebar .brand{padding:6px 10px 18px}
body.workspace-surface #sidebar .brand span{color:var(--vt-blue);font-weight:800;letter-spacing:-.01em}
body.workspace-surface #sidebar .brand small{color:var(--vt-muted);font-weight:500}
body.workspace-surface .nav-group{margin:0 0 6px}
body.workspace-surface .nav-label{font-size:11px;letter-spacing:.08em;color:var(--vt-muted);text-transform:uppercase;padding:12px 12px 6px;font-weight:700}
body.workspace-surface .nav-link{display:flex;align-items:center;gap:12px;padding:11px 12px;margin:2px 0;border-radius:var(--vt-radius-sm);font-size:14.5px;font-weight:500;color:var(--vt-ink);border:0;background:transparent;transition:background .12s}
body.workspace-surface .nav-link .icon{width:20px;height:20px;color:var(--vt-muted);flex:0 0 20px}
body.workspace-surface .nav-link:hover{background:#f2f8fe}
body.workspace-surface .nav-link.active{background:var(--vt-blue-soft);color:var(--vt-blue);font-weight:600;box-shadow:none}
body.workspace-surface .nav-link.active .icon{color:var(--vt-blue)}
body.workspace-surface .nav-link.active::before{display:none}
body.workspace-surface .sidebar-bottom{border-top:1px solid var(--vt-line);padding-top:12px}
body.workspace-surface .sidebar-bottom p{color:var(--vt-muted);font-size:12px}
/* ---------- top bar ---------- */
body.workspace-surface #topbar{background:#fff;border-bottom:1px solid var(--vt-line);box-shadow:none;padding:12px 28px}
body.workspace-surface .topbar-context{font-weight:700;font-size:16px}
body.workspace-surface .topbar-context small,body.workspace-surface .topbar-context .muted{font-weight:500;color:var(--vt-muted)}
body.workspace-surface .topbar-date{padding:8px 14px;border-radius:999px;background:var(--vt-canvas);color:var(--vt-ink);font-weight:600;font-size:13px}
body.workspace-surface .topbar-cta{border-radius:999px;background:var(--vt-blue-soft);color:var(--vt-blue);font-weight:600;border:0}
body.workspace-surface .context-button{border:1px solid var(--vt-line);border-radius:999px;background:#fff;padding:5px 14px 5px 6px;box-shadow:none}
body.workspace-surface .demo-banner{background:#fff;border-bottom:1px solid var(--vt-line);color:var(--vt-muted);font-size:12.5px}
body.workspace-surface .demo-banner strong{color:var(--vt-ink)}
/* ---------- workspace header: Visit Time keeps it flat, no hero scene ---------- */
body.workspace-surface .workspace-page-header.architecture-workspace-header{background:transparent!important;border:0!important;box-shadow:none!important;padding:6px 0 18px!important;border-radius:0;display:block!important;min-height:0}
body.workspace-surface .workspace-header-scene{display:none!important}
body.workspace-surface .workspace-header-copy .eyebrow{color:var(--vt-muted);font-size:12px;letter-spacing:.06em}
body.workspace-surface .workspace-header-copy h1{font-size:24px;line-height:1.15;margin:2px 0 4px;letter-spacing:-.01em;color:var(--vt-ink)}
body.workspace-surface .workspace-header-copy p{color:var(--vt-muted);font-size:13.5px;max-width:80ch;margin:0 0 8px;line-height:1.35}
body.workspace-surface .calendar-heading{background:transparent;border:0;padding:6px 0 10px}
body.workspace-surface .calendar-heading h1{font-size:28px}
/* ---------- buttons, tabs, fields ---------- */
body.workspace-surface .btn{border-radius:14px;font-weight:600;min-height:44px;box-shadow:none}
body.workspace-surface .btn-primary{background:var(--vt-blue);border-color:var(--vt-blue);color:#fff}
body.workspace-surface .btn-primary:hover{background:var(--vt-blue-dark);border-color:var(--vt-blue-dark)}
body.workspace-surface .btn-secondary{background:#fff;border:1px solid var(--vt-line);color:var(--vt-ink)}
body.workspace-surface .btn-secondary:hover{border-color:var(--vt-line-strong);background:#fff}
body.workspace-surface .btn-quiet{color:var(--vt-blue)}
body.workspace-surface .tabs.op-tabs,body.workspace-surface .calendar-navigation .tabs{display:flex;flex-wrap:wrap;gap:6px;padding:0;border:0;background:transparent;margin:0 0 14px}
body.workspace-surface .tabs.op-tabs a,body.workspace-surface .calendar-navigation .tabs a{padding:9px 16px;border-radius:12px;background:#fff;border:1px solid var(--vt-line);color:var(--vt-ink);font-weight:600;font-size:13.5px;text-decoration:none}
body.workspace-surface .tabs.op-tabs a.active,body.workspace-surface .calendar-navigation .tabs a.active,body.workspace-surface .tabs.op-tabs a[aria-current]{background:var(--vt-blue);border-color:var(--vt-blue);color:#fff}
body.workspace-surface .tabs.op-tabs a.active::after{display:none}
body.workspace-surface .v22-branch-tabs .btn{border-radius:999px;min-height:40px}
body.workspace-surface input,body.workspace-surface select,body.workspace-surface textarea{border-radius:12px;border:1px solid var(--vt-line);background:#fff}
body.workspace-surface input:focus,body.workspace-surface select:focus{border-color:var(--vt-blue);box-shadow:0 0 0 3px #0d99ff22}
body.workspace-surface .field>span,body.workspace-surface label.field>span,body.workspace-surface .field label{font-size:12.5px;color:var(--vt-muted);font-weight:600}
/* ---------- cards and panels ---------- */
body.workspace-surface .card,body.workspace-surface .queue-overview-items>*,body.workspace-surface .metric-card,body.workspace-surface details.list-views,body.workspace-surface details.v22-branch-model,body.workspace-surface .toolbar.op-filter,body.workspace-surface .calendar-filter,body.workspace-surface details.calendar-explanation,body.workspace-surface .v22-stage-rail,body.workspace-surface .table-wrap.op-table-wrap,body.workspace-surface .v22-crm-list>.card,body.workspace-surface .list-context{background:#fff;border:1px solid var(--vt-line);border-radius:var(--vt-radius);box-shadow:none}
body.workspace-surface .metric-card{padding:18px 20px}
body.workspace-surface .metric-card .metric-value{color:var(--vt-ink);font-size:28px;font-weight:800}
body.workspace-surface .metric-card .metric-label{color:var(--vt-muted);font-size:13px}
body.workspace-surface details.list-views summary,body.workspace-surface details.v22-branch-model summary,body.workspace-surface details.calendar-explanation summary{font-weight:600;color:var(--vt-ink)}
body.workspace-surface .list-context{padding:12px 18px;color:var(--vt-muted);font-size:13px}
body.workspace-surface .list-context strong{color:var(--vt-ink)}
/* ---------- orders: stage rail like the Visit Time sidebar sub-list ---------- */
body.workspace-surface .v22-stage-rail{padding:14px 10px}
body.workspace-surface .v22-stage-rail h2{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--vt-muted);padding:4px 10px 10px;margin:0}
body.workspace-surface .v22-stage-rail button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 12px;border-radius:12px;border:0;background:transparent;color:var(--vt-ink);font-size:13.5px;font-weight:500;text-align:left}
body.workspace-surface .v22-stage-rail button:hover{background:#f2f8fe}
body.workspace-surface .v22-stage-rail button[aria-pressed="true"]{background:var(--vt-blue-soft);color:var(--vt-blue);font-weight:600}
body.workspace-surface .v22-stage-rail button b{min-width:26px;padding:2px 8px;border-radius:999px;background:var(--vt-canvas);color:var(--vt-ink);font-size:12px;font-weight:700;text-align:center}
body.workspace-surface .v22-stage-rail button[aria-pressed="true"] b{background:var(--vt-blue);color:#fff}
/* ---------- tables: Visit Time list rows ---------- */
body.workspace-surface .table-wrap.op-table-wrap{padding:0 6px}
body.workspace-surface .op-table{border-collapse:separate;border-spacing:0}
body.workspace-surface .op-table th{font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--vt-muted);font-weight:700;background:#fff;border-bottom:1px solid var(--vt-line);padding:14px 12px}
body.workspace-surface .op-table td{padding:14px 12px;border-bottom:1px solid #EEF0F2;font-size:14px;vertical-align:top}
body.workspace-surface .op-table tr:last-child td{border-bottom:0}
body.workspace-surface .op-table tbody tr:hover td{background:#fafcff}
body.workspace-surface .badge{border-radius:999px;font-weight:600}
/* status tones from the kit */
body.workspace-surface .notice-success,body.workspace-surface .badge-success,body.workspace-surface .tone-success{background:var(--vt-green-soft);color:#157a44;border-color:transparent}
body.workspace-surface .notice-warning,body.workspace-surface .badge-warning,body.workspace-surface .tone-warning{background:var(--vt-yellow-soft);color:#8a5b00;border-color:transparent}
body.workspace-surface .notice-error,body.workspace-surface .badge-danger,body.workspace-surface .tone-danger{background:var(--vt-red-soft);color:#b30000;border-color:transparent}
/* ---------- calendar month grid like the Visit Time dashboard ---------- */
body.workspace-surface .calendar-table-scroll{background:#fff;border:1px solid var(--vt-line);border-radius:var(--vt-radius);padding:6px}
body.workspace-surface .calendar-month-table th{background:#fff;color:var(--vt-muted);font-size:12px;font-weight:700;border-bottom:1px solid var(--vt-line)}
body.workspace-surface .calendar-month-table td.calendar-cell{background:#fff;border-color:#F0F2F4}
body.workspace-surface .calendar-month-table td.calendar-cell button{border-radius:8px;background:#F6F6F6;color:transparent;border:0;min-height:30px;font-weight:700}
body.workspace-surface .calendar-month-table td.calendar-cell.has-orders button{background:var(--vt-blue);color:#fff}
body.workspace-surface .calendar-month-table td.calendar-cell.is-partial button{background:var(--vt-blue-soft);color:var(--vt-blue)}
body.workspace-surface .calendar-month-table td.calendar-cell.is-selected-date button{outline:2px solid var(--vt-blue);outline-offset:1px}
body.workspace-surface .calendar-tools .btn,body.workspace-surface .calendar-navigation .btn{border-radius:12px;min-height:40px}
/* ---------- client sign-up links row (Visit Time dashboard pattern) ---------- */
.v23-links{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 18px}
.v23-links>span{color:var(--vt-muted,#8C9197);font-size:12.5px;max-width:150px;line-height:1.3}
.v23-link{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:14px;background:#fff;border:1px solid var(--vt-line,#E6E8EB);color:var(--vt-ink,#212B36);font-weight:600;font-size:14px;text-decoration:none}
.v23-link:hover{border-color:#0D99FF;color:#0D99FF}
.v23-link .icon{width:18px;height:18px;color:#0D99FF}
.v23-link-badge{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:7px;font-size:10px;font-weight:800;color:#fff;background:#0D99FF}
.v23-link-badge.is-max{background:#7B3FE4}.v23-link-badge.is-vk{background:#0077FF}
body.workspace-surface .app-footer{background:transparent;border-top:1px solid var(--vt-line);color:var(--vt-muted)}
@media (max-width:1023px){
 body.workspace-surface #sidebar{padding:14px 10px}
}
@media (max-width:767px){
 body.workspace-surface .workspace-header-copy h1{font-size:24px}
 .v23-links>span{max-width:none;width:100%}
}
/* calendar heading: flat, dark ink, no format-coloured hero band */
body.workspace-surface .calendar-format-privilegia .calendar-heading,body.workspace-surface .calendar-format-birzha .calendar-heading,body.workspace-surface .v22-crm-calendar .calendar-heading{background:transparent;color:var(--vt-ink);border:0;padding:6px 0 10px;margin-bottom:6px}
body.workspace-surface .calendar-heading h1{color:var(--vt-ink);font-size:28px;margin:4px 0 6px}
body.workspace-surface .calendar-heading h2{color:var(--vt-muted);font-size:14.5px;font-weight:500}
body.workspace-surface .calendar-heading .eyebrow{color:var(--vt-muted)}
body.workspace-surface .calendar-heading p{color:var(--vt-muted);font-size:14px}
body.workspace-surface .calendar-heading>.text-link{color:var(--vt-blue)}
/* order card heading: flat, no hero scene */
body.workspace-surface .order-heading.architecture-order-header{background:#fff;border:1px solid var(--vt-line);border-radius:var(--vt-radius);box-shadow:none;padding:22px 26px;display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start;min-height:0}
body.workspace-surface .order-header-scene{display:none!important}
body.workspace-surface .order-heading h1{font-size:28px;margin:8px 0 10px;color:var(--vt-ink)}
body.workspace-surface .order-identity{font-weight:800;color:var(--vt-blue)}
body.workspace-surface .order-context{color:var(--vt-muted);font-size:13.5px}
/* orders table: compact selection cell, no wrapping of money and status */
body.workspace-surface .op-table td:first-child:has(.op-check){min-width:0;width:44px;padding-right:0}
body.workspace-surface .op-table .op-check{display:inline-flex;align-items:center}
body.workspace-surface .op-table .op-check>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body.workspace-surface .op-table .op-check input{width:18px;height:18px;accent-color:var(--vt-blue);margin:0}
body.workspace-surface .op-table td,body.workspace-surface .op-table th{white-space:normal}
body.workspace-surface .op-table td .badge,body.workspace-surface .op-table td b,body.workspace-surface .op-table td strong.money,body.workspace-surface .op-table td .op-money{white-space:nowrap}
body.workspace-surface .op-table td[data-label="Итог"],body.workspace-surface .op-table td[data-label="Когда"],body.workspace-surface .op-table td[data-label="Оплата уборки"]{white-space:nowrap}
body.workspace-surface .op-table td[data-label="Заказ / клиент"],body.workspace-surface .op-table td[data-label="Обращение / услуга"]{min-width:170px;overflow-wrap:normal;word-break:normal}
body.workspace-surface .op-table a{color:var(--vt-blue);font-weight:600}
body.workspace-surface .op-table .op-block{display:block;margin-top:4px;font-weight:600;color:var(--vt-ink)}
body.workspace-surface .op-table small{color:var(--vt-muted)}
body.workspace-surface .v22-crm-list .op-table{min-width:0}
/* v23 · Birzha flow reference panel on the orders screen */
.v23-flow{margin:0 0 16px;padding:16px 20px;border-radius:16px;background:#fff;border:1px solid var(--vt-line)}
.v23-flow>summary{font-weight:700;cursor:pointer;color:var(--vt-ink)}
.v23-flow-steps{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.v23-flow-steps li{position:relative;padding:12px 10px 12px 12px;border-radius:12px;background:var(--vt-canvas);border:1px solid var(--vt-line)}
.v23-flow-steps li:not(:last-child)::after{content:'→';position:absolute;right:-12px;top:12px;color:var(--vt-muted);font-size:16px;z-index:1}
.v23-flow-num{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--vt-blue);color:#fff;font-size:12px;font-weight:700;margin-bottom:8px}
.v23-flow-steps strong{display:block;font-size:13.5px;line-height:1.3;margin-bottom:4px}
.v23-flow-steps small{display:block;font-size:12px;line-height:1.4;color:var(--vt-muted)}
.v23-flow-rules{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 6px}
.v23-flow-rules span{padding:6px 10px;border-radius:999px;background:var(--vt-yellow-soft);color:#7a4d00;font-size:12.5px;font-weight:600}
@media (max-width:1180px){.v23-flow-steps{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:900px){.v23-flow-steps{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:600px){.v23-flow-steps{grid-template-columns:1fr}.v23-flow-steps li:not(:last-child)::after{content:'↓';right:auto;left:14px;top:auto;bottom:-14px}}

/* v23.2 (audit P1-12/P1-13): denser first screen, visible horizontal continuation on narrow desktops */
body.workspace-surface .workspace-page-header.architecture-workspace-header{padding:14px 0 6px!important;margin-bottom:8px!important}
body.workspace-surface .v23-links-wrap{margin:0 0 12px;font-size:13.5px}
body.workspace-surface .v23-links-wrap>summary{cursor:pointer;color:var(--vt-blue);font-weight:600;list-style:none;padding:6px 0}
body.workspace-surface .v23-links-wrap>summary::-webkit-details-marker{display:none}
body.workspace-surface .v23-links-wrap>summary::before{content:'▸ '}
body.workspace-surface .v23-links-wrap[open]>summary::before{content:'▾ '}
body.workspace-surface details.calendar-explanation>summary,body.workspace-surface details.list-views>summary{padding:10px 14px;font-size:13.5px}
body.workspace-surface .toolbar.op-filter{padding:10px 12px}
body.workspace-surface .table-wrap.op-table-wrap{overflow-x:auto;position:relative}
@media (max-width:1340px){
 body.workspace-surface .v22-crm-list .op-table-wrap::before{content:'Таблица продолжается вправо →  номер заказа открывает карточку';display:block;font-size:12px;color:var(--vt-muted);padding:8px 12px 0}
 body.workspace-surface .v22-stage-rail{font-size:13px}
 body.workspace-surface .v22-stage-rail button{padding:6px 10px}
}
body.workspace-surface .v23-flow{margin-top:14px}
/* v23.2 (audit P1-12): first screen shows the work, not the chrome */
body.workspace-surface main{padding-top:12px!important}
body.workspace-surface .workspace-header-copy .eyebrow{font-size:11px}
body.workspace-surface .workspace-page-header .actions,body.workspace-surface .workspace-header-actions{margin-top:4px}
body.workspace-surface .queue-overview-items>*{padding:10px 16px!important;min-height:0!important}
body.workspace-surface .queue-overview-items strong{font-size:26px!important;line-height:1!important}
body.workspace-surface details.list-views{margin:0 0 8px!important}
body.workspace-surface details.list-views>summary{padding:8px 14px}
body.workspace-surface .toolbar.op-filter{padding:8px 12px!important}
body.workspace-surface .toolbar.op-filter label,body.workspace-surface .toolbar.op-filter .field-label{font-size:12px;margin-bottom:2px}
body.workspace-surface .toolbar.op-filter input,body.workspace-surface .toolbar.op-filter select{min-height:38px;padding:6px 10px}
body.workspace-surface .toolbar.op-filter details>summary{min-height:38px;padding:6px 10px}
body.workspace-surface .v22-branch-tabs,body.workspace-surface .tabs{margin-bottom:8px}
body.workspace-surface .list-context,body.workspace-surface .op-selection{padding:8px 12px;font-size:13px}
body.workspace-surface .v23-links-wrap{margin-bottom:8px}
body.workspace-surface .workspace-page-header.architecture-workspace-header{padding-top:6px!important}
body.workspace-surface .workspace-header-copy .eyebrow{margin-bottom:2px!important}
body.workspace-surface .workspace-page-header .btn{min-height:38px;padding:7px 14px}
body.workspace-surface .v23-links-wrap{padding:4px 0!important;margin:0 0 6px!important;background:transparent!important;border:0!important}
body.workspace-surface .tabs.op-tabs{margin-bottom:8px!important}
body.workspace-surface .queue-overview-items+*{margin-top:4px!important;font-size:12.5px}
body.workspace-surface details.list-views{padding:0 16px!important;margin:6px 0 6px!important}
body.workspace-surface details.list-views>summary{padding:9px 0!important;font-size:13.5px}
body.workspace-surface .toolbar.op-filter{margin-bottom:8px!important}
body.workspace-surface .list-context.list-filter-summary{margin-bottom:8px!important;padding:6px 12px}
@media (min-width:1200px){
 body.workspace-surface .v22-crm-orders .toolbar.op-filter{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px 10px;align-items:end}
 body.workspace-surface .v22-crm-orders .toolbar.op-filter>.field{margin:0!important;min-width:0}
 body.workspace-surface .v22-crm-orders .toolbar.op-filter>.field:first-child{grid-column:span 2}
 body.workspace-surface .v22-crm-orders .toolbar.op-filter>.field:nth-child(8){grid-column:span 2}
 body.workspace-surface .v22-crm-orders .toolbar.op-filter>.btn,body.workspace-surface .v22-crm-orders .toolbar.op-filter>button{align-self:end;min-height:38px}
 body.workspace-surface .v22-crm-orders .op-selection{display:inline-flex;align-items:center;gap:8px;margin:0 0 6px;padding:0}
 body.workspace-surface .v22-crm-orders .workspace-header-copy p{display:none}
}
@media (min-width:1200px) and (max-width:1340px){
 body.workspace-surface .v22-crm-orders .toolbar.op-filter{grid-template-columns:repeat(6,minmax(0,1fr))}
 body.workspace-surface .v22-crm-orders .toolbar.op-filter>.field:nth-child(8){grid-column:span 2}
}
/* v23.4 · schedule in the Visit Time manner */
body.workspace-surface .calendar-workspace .calendar-heading{padding-bottom:4px}
body.workspace-surface .calendar-workspace .calendar-navigation{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:8px 0 10px}
body.workspace-surface .calendar-workspace .calendar-navigation>.actions{display:flex;align-items:center;gap:6px;margin:0}
body.workspace-surface .calendar-workspace .calendar-navigation h2{font-size:17px;margin:0 6px;min-width:150px;text-align:center}body.workspace-surface .calendar-workspace .calendar-navigation h2::first-letter{text-transform:uppercase}
body.workspace-surface .calendar-workspace .v23-icon-btn{min-width:38px;padding:0 10px!important;font-size:20px;line-height:1}
body.workspace-surface .calendar-workspace .calendar-navigation .tabs{margin:0;display:flex;gap:6px}
body.workspace-surface .calendar-workspace .calendar-navigation .tabs a{padding:8px 12px;font-size:13.5px}
body.workspace-surface .calendar-workspace .v23-calendar-tools{margin:0 0 0 auto;display:flex;gap:6px}
body.workspace-surface .calendar-workspace .v23-calendar-tools .btn{font-size:12.5px;padding:6px 10px;min-height:36px}
body.workspace-surface .calendar-workspace form.calendar-filter{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:8px 10px;align-items:end;padding:10px 12px!important;margin-bottom:10px!important}
body.workspace-surface .calendar-workspace form.calendar-filter>.field{margin:0!important}
body.workspace-surface .calendar-workspace form.calendar-filter>input[type=hidden]{display:none}
body.workspace-surface .calendar-workspace .v23-filter-actions{display:flex;gap:6px;margin:0;align-self:end}
body.workspace-surface .calendar-workspace .v23-filter-actions .btn{min-height:38px;padding:6px 12px}
body.workspace-surface .calendar-workspace .v23-more-filters{grid-column:1/-1;margin:0}
body.workspace-surface .calendar-workspace .v23-more-filters>summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--vt-blue);padding:4px 0;min-height:32px}
body.workspace-surface .calendar-workspace .v23-more-filters>summary::-webkit-details-marker{display:none}
body.workspace-surface .calendar-workspace .v23-more-filters>summary::before{content:'▸';font-size:12px}
body.workspace-surface .calendar-workspace .v23-more-filters[open]>summary::before{content:'▾'}
body.workspace-surface .calendar-workspace .v23-more-filters>summary b:not(:empty){display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:999px;background:var(--vt-blue);color:#fff;font-size:11px;padding:0 6px}
body.workspace-surface .calendar-workspace .v23-more-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 10px;padding:8px 0 2px}
body.workspace-surface .calendar-workspace .v23-more-grid .field{margin:0!important}
body.workspace-surface .calendar-workspace .calendar-table-scroll{margin-top:4px}
body.workspace-surface .calendar-workspace .v22-branch-model,body.workspace-surface .calendar-workspace .calendar-explanation{margin-top:12px}
body.workspace-surface .calendar-workspace .calendar-scroll-help,body.workspace-surface .calendar-workspace .calendar-short-note{font-size:12.5px;color:var(--vt-muted);margin:8px 0 0}
@media (max-width:1100px){body.workspace-surface .calendar-workspace form.calendar-filter{grid-template-columns:repeat(2,minmax(0,1fr))}body.workspace-surface .calendar-workspace .v23-filter-actions{grid-column:1/-1}body.workspace-surface .calendar-workspace .v23-more-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:767px){body.workspace-surface .calendar-workspace form.calendar-filter{grid-template-columns:1fr}body.workspace-surface .calendar-workspace .v23-more-grid{grid-template-columns:1fr}body.workspace-surface .calendar-workspace .calendar-navigation h2{min-width:0}body.workspace-surface .calendar-workspace .v23-calendar-tools{margin-left:0}}
body.workspace-surface .calendar-workspace .calendar-navigation,body.workspace-surface .calendar-workspace .calendar-navigation>.actions,body.workspace-surface .calendar-workspace .calendar-navigation .tabs{justify-content:flex-start}
body.workspace-surface .calendar-workspace form.calendar-filter>.v23-filter-actions{grid-column:4}
body.workspace-surface .calendar-workspace .v23-more-filters{border:0;padding:0;background:transparent}
@media (max-width:1100px){body.workspace-surface .calendar-workspace form.calendar-filter>.v23-filter-actions{grid-column:1/-1}}
@media (max-width:767px){
 body.workspace-surface .calendar-workspace .calendar-navigation>.actions{display:flex!important;flex-wrap:nowrap;gap:6px}
 body.workspace-surface .calendar-workspace .calendar-navigation>.actions .btn{flex:none!important;width:auto!important;min-height:38px}
 body.workspace-surface .calendar-workspace .calendar-navigation h2{font-size:15px;min-width:0;flex:1;text-align:center}
 body.workspace-surface .calendar-workspace .calendar-navigation .tabs{overflow-x:auto;flex-wrap:nowrap;width:100%;padding-bottom:2px}
 body.workspace-surface .calendar-workspace .calendar-navigation .tabs a{white-space:nowrap;flex:none}
 body.workspace-surface .calendar-workspace .v23-calendar-tools{width:100%;overflow-x:auto;flex-wrap:nowrap}
 body.workspace-surface .calendar-workspace .v23-calendar-tools .btn{white-space:nowrap;flex:none}
}
/* ===== v24 · Visit Time из Figma: рабочий стол, визиты, карточка записи ===== */
body.workspace-surface .vt-section-title{font-size:18px;margin:18px 0 8px;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
body.workspace-surface .vt-section-title small{font-size:12.5px;font-weight:500;color:var(--vt-muted)}
body.workspace-surface .vt-links{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 12px}
body.workspace-surface .vt-links-label{font-size:12.5px;color:var(--vt-muted);max-width:150px;line-height:1.3}
body.workspace-surface .vt-links-items{display:flex;gap:8px;flex-wrap:wrap}
body.workspace-surface .vt-link{display:inline-flex;align-items:center;gap:8px;padding:0 14px;min-height:44px;border-radius:12px;background:#fff;border:1px solid var(--vt-line);color:var(--vt-ink);font-weight:600;font-size:14px}
body.workspace-surface .vt-link i{color:var(--vt-muted);font-style:normal;font-size:12px}
body.workspace-surface .vt-link svg{width:18px;height:18px}
body.workspace-surface .vt-add{margin-left:auto;min-height:44px}
body.workspace-surface .vt-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 14px}
body.workspace-surface .vt-stat{position:relative;display:flex;flex-direction:column;gap:2px;padding:12px 36px 12px 14px;border-radius:14px;background:#fff;border:1px solid var(--vt-line);color:var(--vt-ink);min-height:70px}
body.workspace-surface .vt-stat strong{font-size:24px;line-height:1}
body.workspace-surface .vt-stat span{font-size:12.5px;color:var(--vt-muted)}
body.workspace-surface .vt-stat i{position:absolute;right:10px;top:10px;width:24px;height:24px;border-radius:50%;background:var(--vt-canvas);display:grid;place-items:center;font-style:normal;color:var(--vt-muted)}
body.workspace-surface .vt-schedule{padding:14px 16px!important;margin:0 0 12px}
body.workspace-surface .vt-schedule-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
body.workspace-surface .vt-schedule-head h2{margin:0;font-size:17px}
body.workspace-surface .vt-month-nav{display:flex;align-items:center;gap:6px}
body.workspace-surface .vt-month-nav strong{min-width:150px;text-align:center;font-size:15px}
body.workspace-surface .vt-schedule-body{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:16px;align-items:start}
body.workspace-surface .vt-cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
body.workspace-surface .vt-cal-h{font-size:11px;color:var(--vt-muted);text-align:center;padding:4px 0;font-weight:700;letter-spacing:.04em}
body.workspace-surface .vt-cal-d{position:relative;min-height:56px;border:1px solid var(--vt-line);border-radius:10px;background:#fff;padding:6px 8px;color:var(--vt-ink);display:flex;flex-direction:column;justify-content:space-between}
body.workspace-surface .vt-cal-d b{font-weight:600;font-size:13px;align-self:flex-end}
body.workspace-surface .vt-cal-d small{font-size:11px;font-weight:700;color:var(--vt-blue)}
body.workspace-surface .vt-cal-d.is-weekend{background:#fafbfc}
body.workspace-surface .vt-cal-d.has-visits{background:#e8f3ec;border-color:#bfe0cb}
body.workspace-surface .vt-cal-d.has-visits small{color:#1f6b3a}
body.workspace-surface .vt-cal-d.is-today b{text-decoration:underline}
body.workspace-surface .vt-cal-d.is-selected{background:var(--vt-blue);border-color:var(--vt-blue);color:#fff}
body.workspace-surface .vt-cal-d.is-selected small{color:#fff}
body.workspace-surface .vt-cal-panel{border:1px solid var(--vt-line);border-radius:14px;padding:12px 14px;background:var(--vt-canvas)}
body.workspace-surface .vt-cal-panel-head strong{display:block;font-size:16px}
body.workspace-surface .vt-cal-list{list-style:none;margin:10px 0;padding:0}
body.workspace-surface .vt-cal-list a{display:grid;grid-template-columns:52px 1fr;gap:2px 10px;padding:8px 0;border-top:1px solid var(--vt-line);color:var(--vt-ink)}
body.workspace-surface .vt-cal-list li:first-child a{border-top:0}
body.workspace-surface .vt-cal-list b{grid-row:span 2;font-size:14px;color:var(--vt-blue)}
body.workspace-surface .vt-cal-list span{font-size:13.5px;font-weight:600}
body.workspace-surface .vt-cal-list small{font-size:12px;color:var(--vt-muted)}
body.workspace-surface .vt-cal-empty{font-size:13px;color:var(--vt-muted);margin:10px 0}
body.workspace-surface .vt-cal-actions{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 8px}
body.workspace-surface .vt-cal-setup>summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--vt-blue);padding:6px 0}
body.workspace-surface .vt-pending{padding:12px 16px!important;margin:0 0 12px}
body.workspace-surface .vt-pending h2{font-size:16px;margin:0 0 8px;display:flex;align-items:center;gap:8px}
body.workspace-surface .vt-pending h2 span{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:var(--vt-yellow,#FFBB00);color:#2b2b2b;font-size:12px;padding:0 6px}
body.workspace-surface .vt-pending-row{display:grid;grid-template-columns:1.2fr 1.2fr 1fr auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--vt-line)}
body.workspace-surface .vt-pending-row strong{display:block;font-size:14px}
body.workspace-surface .vt-pending-row small{font-size:12.5px;color:var(--vt-muted)}
body.workspace-surface .vt-pending-what{display:flex;align-items:center;gap:8px}
body.workspace-surface .vt-orders-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
body.workspace-surface .vt-view-toggle{display:flex;gap:6px}
body.workspace-surface .vt-visits{padding:12px 16px!important}
body.workspace-surface .vt-visits-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
body.workspace-surface .vt-day-nav{display:flex;align-items:center;gap:6px}
body.workspace-surface .vt-day-nav strong{font-size:16px;min-width:200px;text-align:center}
body.workspace-surface .vt-timeline{display:grid;grid-template-columns:56px 1fr;gap:0;border:1px solid var(--vt-line);border-radius:12px;overflow:hidden;background:#fff}
body.workspace-surface .vt-hours .vt-col-head{height:64px;border-bottom:1px solid var(--vt-line)}
body.workspace-surface .vt-col-body{position:relative;height:calc(var(--vt-rows) * 56px);background:repeating-linear-gradient(to bottom,#fff 0,#fff 55px,var(--vt-line) 55px,var(--vt-line) 56px)}
body.workspace-surface .vt-hours .vt-col-body span{display:block;height:56px;font-size:11px;color:var(--vt-muted);padding:2px 6px;text-align:right}
body.workspace-surface .vt-cols{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(200px,1fr);overflow-x:auto}
body.workspace-surface .vt-col{border-left:1px solid var(--vt-line);min-width:0}
body.workspace-surface .vt-col-head{height:64px;display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid var(--vt-line);background:#fff}
body.workspace-surface .vt-col-head strong{display:block;font-size:14px;line-height:1.2}
body.workspace-surface .vt-col-head small{font-size:12px;color:var(--vt-muted)}
body.workspace-surface .vt-col-portrait,body.workspace-surface .vt-col-portrait img{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none}
body.workspace-surface .vt-col-portrait.is-none{display:grid;place-items:center;background:var(--vt-canvas);color:var(--vt-muted)}
body.workspace-surface .vt-visit{position:absolute;left:6px;right:6px;top:var(--vt-top);height:var(--vt-h);border-radius:10px;padding:6px 10px;display:flex;flex-direction:column;gap:1px;overflow:hidden;border:1px solid;color:var(--vt-ink);font-size:12px;line-height:1.25}
body.workspace-surface .vt-visit.is-privilegia{background:#e8f3ec;border-color:#bfe0cb}
body.workspace-surface .vt-visit.is-birzha{background:#eaf5ff;border-color:#bcdcf6}
body.workspace-surface .vt-visit b{font-size:12px;color:#1f6b3a}
body.workspace-surface .vt-visit.is-birzha b{color:var(--vt-blue)}
body.workspace-surface .vt-visit span{font-weight:700;font-size:13px}
body.workspace-surface .vt-visit small{color:var(--vt-muted)}
body.workspace-surface .vt-visit em{font-style:normal;font-size:11px;color:var(--vt-muted);margin-top:auto}
body.workspace-surface .vt-timeline-empty{padding:10px 0}
/* record card */
body.workspace-surface .vt-record{padding:14px 16px!important;margin:12px 0}
body.workspace-surface .vt-record-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
body.workspace-surface .vt-stage{display:inline-flex;align-items:center;gap:6px;padding:0 14px;min-height:40px;border-radius:12px;background:#fff;border:1px solid var(--vt-line);font-size:13.5px}
body.workspace-surface .vt-record-actions{display:flex;gap:8px;flex-wrap:wrap}
body.workspace-surface .vt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:0 0 10px}
body.workspace-surface .vt-grid.is-5{grid-template-columns:repeat(5,minmax(0,1fr))}
body.workspace-surface .vt-field{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0 0 10px}
body.workspace-surface .vt-grid .vt-field{margin:0}
body.workspace-surface .vt-label{font-size:12px;color:var(--vt-muted)}
body.workspace-surface .vt-box{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border-radius:12px;background:var(--vt-canvas);border:1px solid transparent;color:var(--vt-ink);font-size:14px;flex-wrap:wrap}
body.workspace-surface a.vt-box{border-color:var(--vt-line);background:#fff}
body.workspace-surface a.vt-box:hover{border-color:var(--vt-blue)}
body.workspace-surface .vt-box i{margin-left:auto;font-style:normal;color:var(--vt-muted)}
body.workspace-surface .vt-box small{flex-basis:100%;font-size:12px;color:var(--vt-muted)}
body.workspace-surface .vt-box .vt-total{font-size:16px;font-weight:700}
body.workspace-surface .vt-mini-portrait,body.workspace-surface .vt-mini-portrait img{width:28px;height:28px;border-radius:50%;object-fit:cover}
body.workspace-surface .vt-extras{padding:10px 12px;border-radius:12px;background:var(--vt-canvas)}
body.workspace-surface .vt-extra-line{display:flex;align-items:baseline;gap:8px;font-size:13.5px;padding:3px 0}
body.workspace-surface .vt-extra-line i{flex:1;border-bottom:1px dotted var(--vt-line-strong);transform:translateY(-4px)}
body.workspace-surface .vt-extra-line small{color:var(--vt-muted);font-size:12px}
body.workspace-surface .vt-seg{display:flex;gap:6px;flex-wrap:wrap;min-height:44px;align-items:center}
body.workspace-surface .vt-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 6px}
body.workspace-surface .vt-info>div{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;background:var(--vt-canvas);font-size:12.5px;color:var(--vt-muted)}
body.workspace-surface .vt-info svg{width:18px;height:18px;flex:none}
body.workspace-surface .vt-record-foot{display:flex;justify-content:flex-end;margin-top:6px}
@media (max-width:1100px){body.workspace-surface .vt-stats{grid-template-columns:repeat(3,minmax(0,1fr))}body.workspace-surface .vt-grid.is-5{grid-template-columns:repeat(3,minmax(0,1fr))}body.workspace-surface .vt-info{grid-template-columns:1fr}}
@media (max-width:767px){
 body.workspace-surface .vt-links{gap:8px}body.workspace-surface .vt-links-label{max-width:none;flex-basis:100%}body.workspace-surface .vt-add{margin-left:0;flex-basis:100%}
 body.workspace-surface .vt-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.workspace-surface .vt-schedule-body{grid-template-columns:1fr}
 body.workspace-surface .vt-cal-d{min-height:44px;padding:4px 6px}
 body.workspace-surface .vt-pending-row{grid-template-columns:1fr 1fr}body.workspace-surface .vt-pending-act{grid-column:1/-1}
 body.workspace-surface .vt-timeline{display:block;border:0;background:transparent}
 body.workspace-surface .vt-hours{display:none}
 body.workspace-surface .vt-cols{display:flex;flex-direction:column;gap:10px;overflow:visible}
 body.workspace-surface .vt-col{border:1px solid var(--vt-line);border-radius:12px;background:#fff;overflow:hidden}
 body.workspace-surface .vt-col-body{height:auto;background:none;padding:8px;display:flex;flex-direction:column;gap:6px}
 body.workspace-surface .vt-visit{position:static;height:auto}
 body.workspace-surface .vt-grid,body.workspace-surface .vt-grid.is-5{grid-template-columns:1fr}
 body.workspace-surface .vt-day-nav strong{min-width:0;flex:1;font-size:14px}
}

/* v24 · CRM polish after first capture */
body.workspace-surface .vt-person{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;margin:2px 10px 2px 0}
body.workspace-surface .vt-extra-line b,body.workspace-surface .vt-extra-line small{white-space:nowrap}
body.workspace-surface .vt-extra-line>span{min-width:0}
@media(max-width:600px){
 body.workspace-surface .v22-branch-tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin-left:-4px;padding:2px 4px}
 body.workspace-surface .v22-branch-tabs::-webkit-scrollbar{display:none}
 body.workspace-surface .v22-branch-tabs .btn{white-space:nowrap;flex:0 0 auto}
 body.workspace-surface .vt-record-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;width:100%}
 body.workspace-surface .vt-record-actions .btn{padding:10px 6px;font-size:13px;min-height:42px;justify-content:center}
 body.workspace-surface .vt-grid.is-5{grid-template-columns:1fr 1fr}
 body.workspace-surface .vt-grid.is-5 .vt-field:last-child{grid-column:1/-1}
 body.workspace-surface .vt-stats .vt-stat:last-child:nth-child(odd){grid-column:1/-1}
}
/* v24 · schedule setup: person + day form (Figma p39 right panel) */
body.workspace-surface .vt-schedule-head{flex-wrap:wrap;gap:10px}
body.workspace-surface .vt-cal-person{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:13px;color:var(--vt-muted)}
body.workspace-surface .vt-cal-person select{min-height:38px;border-radius:10px;border:1px solid var(--vt-line);padding:6px 10px;font:inherit;font-size:14px;background:#fff;max-width:240px}
body.workspace-surface .vt-cal-d i{display:block;font-style:normal;font-size:10px;color:var(--vt-muted);line-height:1.1;margin-top:2px}body.workspace-surface .vt-cal-d.is-selected i{color:#e3effa}
body.workspace-surface .vt-cal-d.is-working:not(.has-visits):not(.is-selected){background:#fff;border-color:#cfe3f5}
body.workspace-surface .vt-cal-d.is-off:not(.is-selected){background:#f1f2f4;color:var(--vt-muted)}
body.workspace-surface .vt-cal-d.is-off b{text-decoration:line-through}
body.workspace-surface .vt-day-form{margin:8px 0 2px}
body.workspace-surface .vt-day-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px}
body.workspace-surface .vt-day-grid .field{margin:0}
body.workspace-surface .vt-day-grid .field span{font-size:12px;color:var(--vt-muted)}
body.workspace-surface .vt-day-grid input{min-height:38px;border-radius:10px;border:1px solid var(--vt-line);padding:6px 10px;font:inherit;font-size:14px;width:100%;background:#fff}
body.workspace-surface .vt-day-off{display:flex;align-items:center;gap:8px;font-size:14px;margin:10px 0 6px;cursor:pointer}
body.workspace-surface .vt-day-off input{width:18px;height:18px;accent-color:var(--vt-blue)}
body.workspace-surface .vt-day-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:4px}
body.workspace-surface .vt-cal-sub{font-size:13px;letter-spacing:.02em;color:var(--vt-muted);margin:14px 0 2px;font-weight:700}
@media(max-width:600px){body.workspace-surface .vt-cal-person{margin-left:0;width:100%}body.workspace-surface .vt-cal-person select{flex:1;max-width:none}body.workspace-surface .vt-cal-d i{display:none}}
@media(max-width:380px){body.workspace-surface .vt-month-nav{flex-wrap:wrap;width:100%}body.workspace-surface .vt-month-nav strong{min-width:0;flex:1}body.workspace-surface .vt-stats{grid-template-columns:1fr}}
/* v24 · Linear: frequent filters as one scrollable row on phones */
@media(max-width:600px){
 body.workspace-surface .tabs.op-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:6px;padding:2px 2px 6px}
 body.workspace-surface .tabs.op-tabs::-webkit-scrollbar{display:none}
 body.workspace-surface .tabs.op-tabs>*{flex:0 0 auto;white-space:nowrap}
}
/* v24 · mobile table cards: label column + stacked values, badges not stretched */
@media(max-width:700px){
 body.workspace-surface .op-table td,body.workspace-surface .responsive-table td{display:grid;grid-template-columns:104px minmax(0,1fr);gap:2px 10px;align-items:start}
 body.workspace-surface .op-table td::before,body.workspace-surface .responsive-table td::before{grid-column:1;grid-row:1/span 12;font-size:12px;line-height:1.3;padding-top:2px}
 body.workspace-surface .op-table td>*,body.workspace-surface .responsive-table td>*{grid-column:2;justify-self:start;max-width:100%}
 body.workspace-surface .op-table td .badge,body.workspace-surface .op-table td .pill{width:auto;display:inline-flex}
 body.workspace-surface .op-table td[data-label=""]{grid-template-columns:1fr}
 body.workspace-surface .op-table td[data-label=""]>*{grid-column:1}
 body.workspace-surface .op-table td:first-child{font-size:15px}
 body.workspace-surface .op-table td .op-block{font-size:14px}
}
/* v24.1 meeting: readable filters and a compact mobile identity. */
@media(min-width:768px){
 body.workspace-surface .v22-crm-orders .toolbar.op-filter{grid-template-columns:repeat(4,minmax(165px,1fr))!important}
 body.workspace-surface .v22-crm-orders .toolbar.op-filter>.field:first-child,body.workspace-surface .v22-crm-orders .toolbar.op-filter>.field:nth-child(8){grid-column:auto}
 body.workspace-surface .toolbar.op-filter select{width:100%;min-width:0}
}
@media(max-width:767px){
 body.workspace-surface #topbar{padding:8px 12px;gap:8px;min-height:62px}
 body.workspace-surface .topbar-left{min-width:0;flex:1}
 body.workspace-surface .topbar-context{font-size:13px;min-width:0}
 body.workspace-surface .context-company{display:block;max-width:155px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 body.workspace-surface .topbar-context small{font-size:11px}
 body.workspace-surface .context-button{padding:4px;min-height:44px;gap:4px}
 body.workspace-surface .context-button>span:not(.person-portrait){display:none}
 body.workspace-surface .context-button .icon{width:14px}
 body.workspace-surface .topbar-right{flex:none;gap:4px;min-width:0}
 body.workspace-surface .topbar-cta,body.workspace-surface .topbar-date{display:none}
 body.workspace-surface .v22-crm-orders .toolbar.op-filter{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:8px;align-items:end;padding:8px!important}
 body.workspace-surface .v22-crm-orders .toolbar.op-filter>.field{flex:0 0 165px;margin:0!important}
 body.workspace-surface .v22-crm-orders .toolbar.op-filter>.field:first-child{flex-basis:190px}
 body.workspace-surface .toolbar.op-filter>.btn{flex:none;white-space:nowrap}
 body.workspace-surface .workspace-page-header.architecture-workspace-header{padding-bottom:8px!important}
 body.workspace-surface .workspace-header-copy p{font-size:12px;line-height:1.35;margin-bottom:4px}
 body.workspace-surface .v22-stage-rail{padding:6px}
}
/* v24.1: keep the first records within reach; all filters remain available. */
body.workspace-surface .workspace-header-copy{padding:8px 0!important}
body.workspace-surface .workspace-header-copy h1{margin:4px 0 10px}
@media(max-width:767px){
 body.workspace-surface .v22-branch-tabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:6px;max-width:100%;margin:0 0 8px;padding:2px 0 6px}
 body.workspace-surface .v22-branch-tabs .btn{flex:0 0 auto;width:auto;white-space:nowrap;min-height:40px;padding:8px 12px}
 body.workspace-surface .v22-stage-rail{position:static;display:flex;flex-wrap:nowrap;overflow-x:auto;align-items:center;gap:6px;padding:6px;max-width:100%}
 body.workspace-surface .v22-stage-rail h2{flex:0 0 auto;font-size:10px;max-width:80px;padding:0 5px;margin:0}
 body.workspace-surface .v22-stage-rail button{flex:0 0 auto;width:auto;max-width:230px;min-height:40px;padding:7px 10px;white-space:nowrap}
 body.workspace-surface .v22-stage-rail p{flex:0 0 250px;font-size:11px;margin:0 8px}
 body.workspace-surface .workspace-header-copy>p{font-size:12px!important;line-height:1.35;margin:6px 0}
 body.workspace-surface .v22-crm-layout{gap:10px}
}
/* Calendar-only full-width workspace, with the existing scroll/sticky model. */
body.workspace-surface:has(.calendar-workspace) #main-content{max-width:none;width:100%;margin:0;padding:20px 24px 32px}
body.workspace-surface .operations-workspace:has(.calendar-workspace){max-width:none;width:100%}
body.workspace-surface .calendar-workspace .calendar-navigation{flex-direction:row;justify-content:space-between;gap:8px 16px}
body.workspace-surface .calendar-workspace .calendar-heading{margin:0 0 8px;padding:0}
body.workspace-surface .calendar-workspace .calendar-format-label{color:#645338}
body.workspace-surface .calendar-workspace .calendar-heading h1{font-size:26px;margin:3px 0 5px}
body.workspace-surface .calendar-workspace .calendar-heading h2{display:inline;font-size:13px;margin:0 10px 0 0}
body.workspace-surface .calendar-workspace .calendar-heading p{display:inline;font-size:13px}
body.workspace-surface .calendar-workspace .calendar-navigation .tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%}
body.workspace-surface .calendar-workspace .calendar-navigation .tabs a{white-space:nowrap}
body.workspace-surface .calendar-workspace .v23-calendar-tools{margin:0;flex-wrap:wrap}
body.workspace-surface .calendar-workspace .calendar-table-scroll{max-height:calc(100vh - 320px);min-height:300px;scrollbar-gutter:stable}
body.workspace-surface .calendar-workspace .calendar-month-table td.calendar-cell button{color:#536276}
body.workspace-surface .calendar-workspace .calendar-month-table td.calendar-cell.has-orders button{color:#fff}
body.workspace-surface .calendar-workspace .calendar-month-table td.calendar-cell.off button{background:#e9ecef;color:#65717d}
body.workspace-surface .calendar-workspace .calendar-legend{gap:6px 18px;font-size:12px;padding:10px 0}
@media(min-width:1700px){body.workspace-surface .calendar-workspace .calendar-month-table th:not(.calendar-person-column),body.workspace-surface .calendar-workspace .calendar-month-table td{width:48px;min-width:48px}}
@media(max-width:767px){
 body.workspace-surface:has(.calendar-workspace) #main-content{padding:16px 12px 32px}
 body.workspace-surface .calendar-workspace .calendar-navigation{display:flex;flex-direction:column;align-items:stretch;gap:8px}
 body.workspace-surface .calendar-workspace .calendar-navigation h2{order:0;width:auto;flex:1;margin:0;font-size:16px}
 body.workspace-surface .calendar-workspace .calendar-navigation .btn{flex:0 0 auto}
 body.workspace-surface .calendar-workspace .calendar-table-scroll{max-height:510px;min-height:260px}
}
/* v3.4: пересекающиеся визиты в отдельных дорожках; системное состояние заказа */
body.workspace-surface .vt-visit.is-lane{left:calc(6px + (100% - 12px) * var(--vt-lane) / var(--vt-lanes));right:auto;width:calc((100% - 12px) / var(--vt-lanes) - 4px)}
body.workspace-surface .vt-system{display:inline-flex;align-items:center;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700;background:#eef3f7;color:#2c4252}
body.workspace-surface .vt-system.is-cancelled{background:#fdecea;color:#8a1f1f}
body.workspace-surface .vt-system.is-confirmed{background:#e8f3ec;color:#1f6b3a}
body.workspace-surface .vt-system.is-awaiting_confirmation{background:#fff6e0;color:#7a5300}
body.workspace-surface .vt-record.is-cancelled{opacity:.92;border-color:#f1c0bb}
body.workspace-surface .vt-filter-note,body.workspace-surface .vt-cancelled-note{margin:8px 0;font-size:13px;color:var(--vt-muted)}
body.workspace-surface .vt-cal-legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin:10px 0 0;font-size:12px;color:var(--vt-muted)}
body.workspace-surface .vt-cal-legend i{font-style:normal;color:#1f6b3a;font-weight:700}
body.workspace-surface .vt-cal-legend .is-off{background:#eef1f4;border-radius:6px;padding:0 6px}
body.workspace-surface .vt-cal-d.is-complex{box-shadow:inset 0 0 0 2px #e0b85a}
body.workspace-surface .vt-complex-note{font-size:13px;background:#fff6e0;border-radius:10px;padding:8px 10px;margin:6px 0}
body.workspace-surface .vt-day-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
