@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url(/nunito-sans-0.ttf) format('truetype');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url(/nunito-sans-1.ttf) format('truetype');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: normal;
  font-display: swap;
  src: url(/nunito-sans-2.ttf) format('truetype');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 800;
  font-stretch: normal;
  font-display: swap;
  src: url(/nunito-sans-3.ttf) format('truetype');
}

/* Tokens and geometry from MMV-CRM/01-final. Existing workspaces retain their APIs. */
:root{--ink:#16234A;--ink-2:#3D4763;--muted:#5B6478;--nav:#16234A;--nav-2:#2343A8;--blue:#2B59D1;--blue-2:#EAF0FD;--paper:#F6F7F9;--line:#E6E8EE;--line-2:#F1F3F6;--green:#1C6B42;--green-2:#EAF7EF;--red:#A61E2B;--red-2:#FDECEE;--amber:#6E4700;--amber-2:#FFF1D1;--wood:#2B59D1;--rail:220px;--radius:10px;--radius-s:8px;--fs:14px;--fs-s:12px}
body{font-family:'Nunito Sans','Segoe UI',system-ui,sans-serif;background:#F6F7F9;color:#16234A}
.workspace{grid-template-columns:220px minmax(0,1fr)}
.workspace.compact{grid-template-columns:64px minmax(0,1fr)}
.rail{padding:24px 14px 20px;gap:24px;background:#16234A;color:white;overflow-y:auto}
.rail-top{margin:0;min-height:28px}.brand{font-size:28px;letter-spacing:-1.2px;font-weight:800;line-height:1;display:flex;gap:6px;align-items:baseline;margin:0 10px}.brand span{display:inline;margin:0;font-size:13px;font-weight:400;letter-spacing:0;color:#B9C6EC}.rail-caption{display:none}
.rail nav button{height:40px;min-height:40px;padding:0 10px;border-radius:8px;color:#DCE5FB;font-size:14px;font-weight:600;gap:10px;flex-shrink:0}.rail nav button.active{background:#FFFFFF1F;color:#FFF;font-weight:700}.rail nav button span{width:18px;font-size:18px;display:inline-flex;align-items:center;justify-content:center}.rail nav button b{margin-left:auto;border-radius:999px;background:#FFD27A;color:#3D2C00;font-size:12px;min-width:20px;line-height:20px;text-align:center;padding:0 6px}.rail nav button[data-page='overview']{order:-7}.rail nav button[data-page='orders']{order:-6}.rail nav button[data-page='calendar']{order:-5}.rail nav button[data-page='executors']{order:-4}.rail nav button[data-page='reports']{order:-3}.rail nav button[data-page='rules']{order:-2}.rail nav{gap:2px}.rail nav .ws-legacy-nav{font-size:12px;opacity:.85;min-height:32px;height:32px}.rail-bottom{margin-top:auto;border:0;color:#B9C6EC;font-size:12px;padding:0 10px}.rail-bottom p{margin:4px 0}.rail-bottom a{color:#DCE5FB}.rail-profile{display:flex;gap:10px;align-items:center;padding:0 10px}.rail-profile strong{display:block;font-size:14px;color:white}.rail-profile small{color:#B9C6EC}.ws-avatar{width:36px;height:36px;border-radius:50%;background:#2B59D1;color:white;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.main>header{padding:10px 28px;min-height:60px;border-bottom:1px solid #E6E8EE;background:white;gap:12px}.main>header>div:first-child{display:none}.main>header .search-trigger{order:-1;width:420px;max-width:100%;height:38px;border:0;border-radius:8px;background:#F1F3F6;color:#5B6478;padding:0 10px;font-size:14px}.main>header .header-actions{margin-left:auto}.avatar{background:#2B59D1}.main>main{padding:20px 28px 32px;max-width:1800px;width:100%;margin:0 auto}.primary{background:#2B59D1;color:white;border:1px solid #2B59D1;font-size:13px;font-weight:800;border-radius:8px;padding:8px 14px;min-height:36px;box-shadow:none}.secondary{background:white;color:#3D4763;border:1px solid #D5D9E2;border-radius:8px;min-height:36px;padding:7px 12px;font-size:13px;font-weight:700}.quiet{color:#5B6478}.demo-banner{margin:0;border-radius:0;background:#FFF7E6;border:0;border-bottom:1px solid #F2D9A0;font-size:12px;padding:7px 28px;color:#6E4700}.partner-entry{display:none}
.ws-body,.ws-stack{display:flex;flex-direction:column;gap:16px;min-width:0}.ws-heading{margin:0;gap:12px}.ws-heading h1{font-size:26px;line-height:1.2;font-weight:800;letter-spacing:-.5px;margin:0 0 6px}.ws-heading p{font-size:13px;color:#5B6478;margin:0}.ws-between{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ws-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ws-actions label,.ws-between>label{display:flex;align-items:center;gap:8px;font-size:13px}.ws-actions input[type=checkbox],.ws-between input[type=checkbox]{width:16px;height:16px;accent-color:#2B59D1}.ws-filters{display:flex;gap:10px;flex-wrap:wrap}.ws-filters input{min-width:160px;width:340px;max-width:100%}.ws-filters input,.ws-filters select,.ws-between select,.ws-form input,.ws-form select,.ws-form textarea,.ws-rules-form input,.ws-rules-form select,.ws-rules-form textarea{border:1px solid #D5D9E2;background:#FFF;border-radius:8px;padding:8px 10px;min-height:36px;color:#16234A;font:inherit}.ws-filters input::placeholder{color:#5B6478}.ws-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ws-tile{padding:15px 18px;text-align:left;background:#FFF;border:1px solid #E6E8EE;border-radius:10px;display:flex;flex-direction:column;gap:4px;min-height:112px;color:#16234A;position:relative;overflow:hidden}.ws-tile>span{font-size:13px;font-weight:700;color:#5B6478}.ws-tile strong{font-size:30px;line-height:1.2;font-weight:800}.ws-tile small{font-size:12px;color:#5B6478}.ws-tile.amber{border-top:3px solid #D99A1E}.ws-tile.blue{border-top:3px solid #2B59D1}.ws-tile.purple{border-top:3px solid #7A5AD6}.ws-tile.red{border-top:3px solid #D4535F}.ws-panel{background:#FFF;border:1px solid #E6E8EE;border-radius:10px;overflow:hidden;min-width:0;padding:0 16px 16px}.ws-panel-head{padding:16px 0 12px;display:flex;justify-content:space-between;align-items:center}.ws-panel-head h2{font-size:16px;font-weight:800;margin:0;line-height:1.4}.ws-panel-head p{font-size:12px;color:#5B6478;margin:4px 0 0}.ws-situation-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px;align-items:start}.ws-decisions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ws-decision{padding:14px;border:1px solid #F2B8BE;background:#FFF8F8;border-radius:8px;min-width:0}.ws-decision h3{margin:10px 0 4px;font-size:15px}.ws-decision p{margin:0 0 10px;font-size:13px}.ws-decision .ws-between small{font-size:11px}.ws-client{color:#2B59D1;font-size:14px;font-weight:800;text-align:left;padding:0;border-radius:3px;background:none;max-width:100%;overflow-wrap:anywhere;min-height:24px}.ws-client:hover{text-decoration:underline}.ws-tag{display:inline-flex;align-items:center;padding:3px 8px;border-radius:6px;background:#F1F3F6;color:#5B6478;font-size:12px;font-weight:700;white-space:nowrap;line-height:1.4}.ws-tag.red,.ws-tag.cancelled{background:#FDECEE;color:#A61E2B}.ws-tag.green,.ws-tag.completed{background:#EAF7EF;color:#1C6B42}.ws-tag.amber,.ws-tag.planned{background:#FFF1D1;color:#6E4700}.ws-tag.blue,.ws-tag.approval,.ws-tag.installation{background:#EAF0FD;color:#2343A8}.ws-tag.purple,.ws-tag.measure{background:#F0EBFB;color:#6B45BD}.ws-tag.deposit{background:#EAF7EF;color:#1C6B42}.ws-danger{color:#A61E2B!important}.ws-table-scroll{overflow-x:auto;max-width:100%;border:1px solid #E6E8EE;border-radius:8px;background:white}.ws-panel>.ws-table-scroll{border:0;border-radius:0;margin:0 -16px -16px;max-width:calc(100% + 32px);width:calc(100% + 32px)}.ws-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.ws-table th{font-size:11px;font-weight:700;text-transform:none;background:#F8F9FC;color:#5B6478;padding:10px 14px;border-bottom:1px solid #E6E8EE;white-space:nowrap}.ws-table td{padding:13px 14px;border-bottom:1px solid #EEF0F5;vertical-align:middle;min-width:80px}.ws-table tr:last-child td{border-bottom:0}.ws-table tbody tr:hover{background:#FAFBFE}.ws-table td small{display:block;margin-top:4px;font-size:12px;line-height:1.45;color:#5B6478}.ws-table td:first-child:has(input){min-width:35px;width:35px}.ws-table input[type=checkbox]{width:16px;height:16px;accent-color:#2B59D1}.ws-table td:has(.ws-client){min-width:190px}.ws-table .secondary{white-space:nowrap}.ws-tabs{display:flex;gap:4px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #E6E8EE;padding:0 0 8px}.ws-tabs button{font-size:13px;font-weight:700;padding:7px 11px;min-height:34px;color:#5B6478;white-space:nowrap}.ws-tabs button.selected,.ws-actions .selected{background:#EAF0FD;color:#2343A8}.ws-empty{padding:24px 16px;text-align:center;color:#5B6478;font-size:13px;line-height:1.6}.ws-quick{display:flex;flex-direction:column;gap:8px}.ws-quick button{text-align:left}.ws-bulk{display:flex;align-items:center;gap:12px;padding:10px 14px;background:#EAF0FD;border:1px solid #C6D5F8;border-radius:8px}.ws-event{display:flex;flex-direction:column;gap:5px;border-left:3px solid #8A93AB;border-radius:6px;padding:10px;background:#F7F8FB;min-width:0;margin-bottom:9px}.ws-event.measure{border-color:#7A5AD6;background:#F7F4FD}.ws-event.installation{border-color:#2B59D1;background:#F2F6FF}.ws-event strong{font-size:12px}.ws-event .ws-client{font-size:12px}.ws-event small{font-size:11px}.ws-event .ws-tag{align-self:flex-start;font-size:10px}.ws-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:white;border:1px solid #E6E8EE;border-radius:10px;overflow:hidden;min-height:460px}.ws-day{padding:12px 8px;border-right:1px solid #E6E8EE;min-width:0}.ws-day:last-child{border:0}.ws-day h3{font-size:12px;color:#5B6478;padding:0 3px 12px;border-bottom:1px solid #E6E8EE;margin:0 0 12px}.ws-day.today{background:#FAFBFF}.ws-day.today h3{color:#2B59D1;font-weight:800}.ws-calendar.list{display:flex;flex-direction:column;min-height:0}.ws-calendar.list .ws-day{border-right:0;border-bottom:1px solid #E6E8EE}.ws-calendar:has(.ws-day:only-child){grid-template-columns:1fr}.ws-executors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ws-executor{background:#FFF;border:1px solid #E6E8EE;border-radius:10px;padding:18px;min-width:0}.ws-executor h2{font-size:16px;margin:0 0 4px;font-weight:800}.ws-executor p{font-size:12px;color:#5B6478}.ws-executor-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:20px 0;padding:14px 0;border-top:1px solid #E6E8EE;border-bottom:1px solid #E6E8EE}.ws-executor-stats strong{font-size:24px;display:block;font-weight:800}.ws-executor-stats small{font-size:11px}.ws-report-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}.ws-funnel-row{display:grid;grid-template-columns:100px minmax(0,1fr) 28px;gap:12px;align-items:center;font-size:12px;margin:14px 0}.ws-bar-track{height:20px;background:#F1F3F6;border-radius:4px;overflow:hidden}.ws-bar{height:100%;background:#2B59D1;min-width:0;border-radius:4px}.ws-bar.cancelled{background:#D4535F}.ws-bar.completed{background:#2E9A5E}.ws-bar.measure{background:#7A5AD6}.ws-bar.planned{background:#D99A1E}.ws-reason{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #E6E8EE;font-size:13px}.ws-form,.ws-rules-form{display:flex;flex-direction:column;gap:16px}.ws-form label,.ws-rules-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}.ws-form label>span,.ws-rules-form label>span{color:#3D4763}.ws-form textarea,.ws-rules-form textarea{width:100%;resize:vertical;font-weight:400}.ws-form input,.ws-form select{width:100%}.ws-form input[type=checkbox]{width:18px}.ws-dialog{border:1px solid #E6E8EE;border-radius:12px;width:560px;max-width:calc(100vw - 24px);max-height:90vh;padding:22px;color:#16234A;background:white}.ws-dialog::backdrop{background:#16234A66}.ws-dialog>.ws-between{margin-bottom:18px}.ws-dialog h2{margin:0;font-size:19px;font-weight:800}.ws-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px}.ws-rules-form>.ws-panel{padding-bottom:20px}.ws-rules-form .ws-panel>label{margin:14px 0}.ws-rules-form .ws-actions label:has(input[type=checkbox]){flex-direction:row;align-items:center;gap:8px}.ws-notice{padding:12px 16px;border:1px solid #F2D9A0;background:#FFFAEF;border-radius:8px;font-size:13px}.ws-page .field-error:empty{display:none}.ws-page .field-error{color:#A61E2B}.ws-page:empty{min-height:300px}#lead-dialog{border-color:#E6E8EE;background:#F6F7F9}#lead-dialog .drawer-heading{background:#FFF}#lead-dialog .drawer-body{background:#FFF}#lead-dialog .lead-tabs{background:#FFF}#lead-dialog .lead-tabs button[aria-selected=true]{color:#2B59D1;border-color:#2B59D1}#lead-dialog .form-grid{gap:14px}.ws-mobile-title{display:none}
@media(min-width:1650px){.ws-decisions{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1200px){.ws-situation-grid{grid-template-columns:minmax(0,1fr) 245px}.ws-decisions{grid-template-columns:1fr}.main>main{padding:20px}.ws-calendar{overflow-x:auto}.ws-day{min-width:125px}.main>header{padding:10px 20px}.main>header .search-trigger{width:340px}}
@media(max-width:950px){.ws-situation-grid{grid-template-columns:1fr}.ws-situation-grid>aside{display:grid;grid-template-columns:1fr 1fr}.ws-report-grid{grid-template-columns:1fr}.ws-executors{grid-template-columns:1fr}.ws-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.ws-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main>header .search-trigger{width:260px}.main>header #today{display:none}}
@media(max-width:700px){.workspace,.workspace.compact{display:block;padding-bottom:70px}.rail{position:fixed;bottom:0;top:auto;left:0;right:0;width:100%;height:62px;z-index:30;padding:0 6px;background:#16234A;overflow:visible;border-radius:0;display:block}.rail-top,.rail-bottom,.rail-profile{display:none}.rail nav{height:100%;display:flex;flex-direction:row;justify-content:space-around;align-items:center;overflow-x:auto;gap:0}.rail nav button{font-size:9px;line-height:1.1;min-height:52px;height:52px;flex-direction:column;gap:5px;justify-content:center;padding:5px;flex:1;min-width:48px;white-space:nowrap}.rail nav button span{font-size:19px;line-height:1}.rail nav button b{position:absolute;top:2px;font-size:9px;line-height:15px;min-width:15px;margin-left:24px;padding:0 4px}.rail nav .ws-legacy-nav{display:none}.main>header{padding:9px 14px;min-height:56px;gap:6px;flex-wrap:nowrap}.main>header .search-trigger{width:auto;flex:1;min-width:0;overflow:hidden;height:36px}.search-trigger kbd,.main>header #identity,.main>header #help-open,.main>header #logout{display:none}.search-trigger span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.main>header .header-actions{gap:4px}.main>main{padding:18px 14px 20px}.demo-banner{padding:7px 14px;font-size:11px}.ws-heading h1{font-size:24px}.ws-heading p{font-size:12px}.ws-heading{align-items:flex-start}.ws-heading>.primary{font-size:11px;padding:8px}.ws-tiles{gap:8px}.ws-tile{padding:12px;min-height:105px}.ws-tile>span{font-size:12px}.ws-tile strong{font-size:28px}.ws-tile small{font-size:10px}.ws-situation-grid>aside{display:flex}.ws-decisions{grid-template-columns:1fr}.ws-panel{padding:0 12px 12px}.ws-panel-head h2{font-size:15px}.ws-panel-head p{font-size:11px}.ws-panel>.ws-table-scroll{margin:0 -12px -12px;width:calc(100% + 24px);max-width:calc(100% + 24px)}.ws-body,.ws-stack{gap:14px}.ws-table th,.ws-table td{padding:11px 10px}.ws-filters{flex-wrap:nowrap}.ws-filters input{min-width:0;flex:1;width:auto}.ws-filters select{max-width:140px}.ws-tabs{overflow-x:auto;flex-wrap:nowrap;max-width:100%}.ws-between{gap:10px}.ws-between label{font-size:12px}.ws-executor{padding:14px}.ws-executor-stats{gap:6px}.ws-executor-stats small{font-size:10px}.ws-calendar{grid-template-columns:repeat(7,150px);overflow:visible;min-height:350px}.ws-body:has(.ws-calendar){overflow-x:auto}.ws-calendar.list{overflow:visible}.ws-calendar.list .ws-day{min-width:0}.ws-settings-grid{grid-template-columns:1fr 1fr;gap:12px}.ws-rules-form label{font-size:12px}.ws-dialog{padding:18px}.ws-bulk{flex-wrap:wrap}.ws-body>.ws-between:has(.ws-filters){align-items:stretch;flex-direction:column}.ws-notice{font-size:12px}.ws-funnel-row{grid-template-columns:88px minmax(0,1fr) 22px;gap:8px}#lead-dialog{width:100%;max-width:100vw}.workspace.compact nav button{font-size:9px}.workspace.compact .brand span{display:none}}

.ws-filters select{width:auto;flex:0 0 auto}.ws-more{order:10;margin-top:16px;border-top:1px solid #FFFFFF26;padding-top:12px}.ws-more summary{cursor:pointer;color:#B9C6EC;padding:8px 10px;font-size:12px}.rail nav .ws-more button{width:100%;display:flex}.rail-profile{margin-top:auto}.rail-bottom{margin-top:0}.ws-order-dialog{width:calc(100vw - 40px);max-width:1550px;height:calc(100vh - 40px);max-height:none;padding:22px 26px;overflow-y:auto;background:#F6F7F9}.ws-order-dialog>.ws-between{margin-bottom:0}.ws-order-dialog>.ws-between h2{font-size:24px}.ws-order-meta{margin:8px 0 18px}.ws-order-meta p{margin:0;font-size:13px;color:#5B6478}.ws-order-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(240px,1fr) minmax(210px,.85fr);gap:16px;align-items:start}.ws-conversation{background:white;border:1px solid #E6E8EE;border-radius:10px;overflow:hidden}.ws-conversation>.ws-tabs{padding:12px 14px 8px}.ws-timeline{padding:16px;display:flex;flex-direction:column;gap:12px;max-height:calc(100vh - 340px);min-height:240px;overflow-y:auto}.ws-message{padding:12px 14px;border:1px solid #E6E8EE;border-radius:10px;max-width:94%;background:#FFF}.ws-message.team{background:#EAF0FD;border-color:#DCE5FB;align-self:flex-end}.ws-message.internal{background:#FFF8E9;border-color:#F2D9A0;border-radius:6px;width:100%;max-width:100%}.ws-message p{font-size:13px;line-height:1.6;margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.ws-message small{font-size:11px}.ws-timeline-event{text-align:center;font-size:11px;color:#5B6478;padding:6px}.ws-note-form{padding:14px;background:#FAFBFE;border-top:1px solid #E6E8EE;display:flex;flex-direction:column;gap:10px}.ws-note-form textarea{border:1px solid #D5D9E2;border-radius:8px;padding:10px;font:inherit;resize:vertical}.ws-note-form button{align-self:flex-end}.ws-progress{padding:0 0 0 17px;margin:0;display:flex;flex-direction:column;gap:12px;font-size:12px;color:#8A93AB}.ws-progress li.current{color:#2B59D1;font-weight:800}.ws-progress li::marker{content:'○  '}.ws-progress li.current::marker{content:'●  '}.ws-definition{display:grid;grid-template-columns:95px minmax(0,1fr);font-size:12px;gap:10px;margin:0 0 16px}.ws-definition dt{color:#5B6478}.ws-definition dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.ws-brief{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1000px){.ws-order-grid{grid-template-columns:1.4fr 1fr}.ws-order-grid>aside{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr}.ws-order-dialog{padding:20px}}@media(max-width:700px){.rail nav .ws-more{display:none}.ws-order-dialog{width:100%;height:100%;max-width:100vw;padding:14px;border-radius:0}.ws-order-grid{display:flex;flex-direction:column}.ws-order-grid>*{width:100%}.ws-order-grid>aside{display:flex}.ws-timeline{max-height:45vh}.ws-order-dialog>.ws-between h2{font-size:20px}.ws-filters select{flex:0 1 140px}.ws-filters input{width:100%;max-width:100%}}

.ws-mobile-more{display:none}@media(max-width:700px){.ws-mobile-more{display:block;min-width:32px;font-size:20px}.rail nav .ws-more[open]{display:block;position:fixed;bottom:70px;left:14px;right:14px;background:#16234A;border:1px solid #3D4763;padding:12px;z-index:50;border-radius:12px;box-shadow:0 8px 30px #16234A33}.rail nav .ws-more[open] button.ws-legacy-nav{display:flex;flex-direction:row;justify-content:flex-start;gap:12px;font-size:13px;min-height:36px;width:100%;height:auto}.rail nav .ws-more[open] summary{font-size:13px}.rail nav .ws-more[open] button span{width:20px}}
@media(max-width:700px){.main>header #logout{display:block;font-size:11px;padding:4px;min-width:34px}}

.main>header .search-trigger{flex:0 1 420px;width:420px}.ws-situation-grid{grid-template-columns:minmax(0,1fr) 320px}.ws-tile{border:1px solid #E6E8EE;min-height:96px;padding:12px 16px}.ws-tile.amber,.ws-tile.blue,.ws-tile.purple,.ws-tile.red{border:1px solid #E6E8EE}.ws-tile>span{font-weight:400}.ws-tile>span::before{content:'●';margin-right:5px;color:#2B59D1}.ws-tile.amber>span::before{color:#C7283D}.ws-tile.blue>span::before{color:#7A5AD6}.ws-tile.purple>span::before{color:#D99A1E}.ws-tile strong{font-size:26px}.ws-situation-grid>.ws-stack>.ws-panel:first-child{border:0;background:transparent;padding:0}.ws-situation-grid>.ws-stack>.ws-panel:first-child>.ws-panel-head{padding:0 0 12px}.ws-decision{background:#FFF;border-color:#E6E8EE;display:flex;flex-direction:column}.ws-decision.red{border-color:#F2B8BE}.ws-decision.amber{border-color:#F2D9A0}.ws-decision h3 .ws-client{color:#16234A;font-size:15px}.ws-decision>.ws-actions{margin:0 -14px -14px;margin-top:auto;padding:10px 12px;background:#F6F7FA;border-top:1px solid #EEF0F5;border-radius:0 0 8px 8px}.ws-decision>p:last-of-type{flex:1}.ws-decision p{line-height:1.6}.message-alerts{z-index:70}@media(max-width:1200px){.ws-situation-grid{grid-template-columns:minmax(0,1fr) 280px}}@media(max-width:950px){.ws-situation-grid{grid-template-columns:1fr}}@media(max-width:700px){.message-alerts{bottom:76px}.main>header .search-trigger{flex:1;width:auto}.ws-heading>small{font-size:10px;max-width:140px;text-align:right}.ws-tile{min-height:96px;padding:12px}.ws-heading:has(>small){align-items:center}}

.ws-header-context{display:flex;align-items:center;gap:10px;margin-left:auto}.ws-header-context select{height:36px;max-width:150px;width:auto;background:#FFF;border:1px solid #E6E8EE;border-radius:8px;padding:0 8px;font-size:13px;color:#16234A}.ws-system-status{font-size:12px;white-space:nowrap}.ws-system-status::before{content:'●';color:#8A93AB;margin-right:6px}.main>header .header-actions{margin-left:0}.main>header #today,.main>header #help-open,.main>header #identity{display:none}@media(max-width:1000px){.ws-system-status{display:none}.main>header .search-trigger{flex:1;width:auto}}@media(max-width:700px){.ws-header-context{margin-left:0}.ws-header-context select{max-width:106px;font-size:11px;padding:0 4px}.main>header{gap:5px}.main>header .search-trigger{min-width:32px}.main>header .search-trigger kbd{display:none}}

.ws-mobile-brand,.ws-mobile-page,.ws-mobile-search,.ws-mobile-leads{display:none}
@media(max-width:700px){
.workspace[data-modern=true] .main>header{height:120px;min-height:120px;padding:20px 16px 14px;background:#16234A;color:#FFF;display:block;position:relative;z-index:5}.workspace[data-modern=true] .ws-mobile-brand{display:flex;gap:5px;align-items:baseline}.ws-mobile-brand strong{font-size:25px;font-weight:800;letter-spacing:-1px}.ws-mobile-brand span{font-size:11px;color:#DCE5FB}.workspace[data-modern=true] .ws-mobile-page{display:block;margin-top:15px}.ws-mobile-page h1{font-size:22px;font-weight:800;line-height:1.2;margin:0 0 5px;color:#FFF}.ws-mobile-page small{font-size:12px;color:#DCE5FB}.workspace[data-modern=true] .main>header .search-trigger,.workspace[data-modern=true] .main>header .header-actions,.workspace[data-modern=true] .ws-header-context select{display:none}.workspace[data-modern=true] .ws-header-context{position:absolute;right:12px;top:23px}.workspace[data-modern=true] .ws-system-status{display:block;color:#DCE5FB;font-size:12px;padding:4px}.workspace[data-modern=true] .demo-banner{font-size:10px;padding:5px 14px}.workspace[data-modern=true] .ws-heading{display:none}.workspace[data-modern=true] .main>main{padding:12px 12px 20px}.workspace[data-modern=true] .ws-tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.workspace[data-modern=true] .ws-tile{padding:8px;min-height:62px;gap:2px}.workspace[data-modern=true] .ws-tile strong{font-size:21px}.workspace[data-modern=true] .ws-tile small{display:none}.workspace[data-modern=true] .ws-tile>span{font-size:0;white-space:nowrap}.workspace[data-modern=true] .ws-tile>span::before{font-size:9px;margin-right:3px}.workspace[data-modern=true] .ws-tile>span::after{content:attr(data-mobile-label);font-size:10px}.rail{height:77px;background:#FFF;border-top:1px solid #E6E8EE;color:#16234A;padding:0 12px}.rail nav button{color:#5B6478;min-height:64px;height:64px;font-size:10px;gap:6px;border-radius:0;font-weight:600}.rail nav button.active{color:#2B59D1;background:transparent;font-weight:800}.rail nav button[data-page=executors],.rail nav button[data-page=reports],.rail nav button[data-page=rules]{display:none}.rail nav .ws-mobile-search{display:flex;order:-1}.rail nav button span{font-size:23px;width:22px;height:22px}.rail nav button span svg{width:22px;height:22px}.rail nav .ws-more[open] button.ws-legacy-nav{color:#DCE5FB}.ws-fresh-section{order:-1;border:0;background:transparent;padding:0}.ws-fresh-section>.ws-panel-head{padding:0 4px 12px}.ws-fresh-section>.ws-panel-head h2{font-size:15px}.ws-fresh-section>.ws-panel-head p{font-size:10px}.ws-fresh-table{display:none}.ws-mobile-leads{display:flex;flex-direction:column;gap:10px}.ws-mobile-lead{background:#FFF;border:1px solid #E6E8EE;border-radius:11px;padding:14px}.ws-mobile-lead strong{font-size:14px;font-weight:800}.ws-mobile-lead small{font-size:10px;color:#6E4700}.ws-mobile-lead p{font-size:12px;line-height:1.5;margin:5px 0 8px;color:#5B6478}.ws-mobile-lead .ws-actions{border-top:1px solid #EEF0F5;padding-top:9px;flex-wrap:nowrap}.ws-mobile-lead .ws-actions .primary{flex:1;min-height:44px;font-size:12px;padding:8px}.ws-mobile-lead .ws-actions .secondary{min-height:44px;font-size:11px;padding:8px}.ws-mobile-deadline{height:5px;border-radius:5px;background:#EEF0F5;margin:10px 0}.ws-mobile-deadline>div{height:100%;width:100%;background:#2B59D1;border-radius:5px}.message-alerts{bottom:88px}.ws-fresh-section>.ws-panel-head>div{display:flex;justify-content:space-between;align-items:baseline;gap:5px;width:100%}.ws-fresh-section>.ws-panel-head h2{white-space:nowrap}.ws-situation-grid>.ws-stack>.ws-panel.ws-decisions-section{padding:0;border:0;background:transparent}.ws-mobile-search span{font-size:28px}.workspace{padding-bottom:77px}
}

@media(max-width:700px){.workspace[data-modern=true] .ws-heading:has(>button){display:flex;justify-content:flex-end;margin-bottom:0}.workspace[data-modern=true] .ws-heading:has(>button)>div{display:none}.workspace[data-modern=true] .ws-heading:has(>button)>.primary{font-size:12px}.ws-more[open] summary{color:#B9C6EC}}

.ws-digests{display:flex;justify-content:center;gap:36px;align-items:flex-start;flex-wrap:wrap}.ws-digest-phone{width:390px;max-width:100%;border:1px solid #D5D9E2;border-radius:28px;overflow:hidden;background:#EEF2F7;box-shadow:0 8px 30px #16234A12}.ws-digest-status{background:#FFF;padding:12px 20px 8px;display:flex;justify-content:space-between;font-weight:800;font-size:12px}.ws-digest-header{background:#FFF;padding:10px 16px;display:flex;gap:10px;align-items:center;border-bottom:1px solid #E6E8EE}.ws-digest-header>span{font-size:30px;color:#2B59D1}.ws-digest-header strong{display:block;font-size:14px}.ws-digest-header small{font-size:11px;color:#5B6478}.ws-digest-chat{background:#E8EFF4;padding:14px;max-height:640px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.ws-digest-date{font-size:11px;align-self:center;background:#D0DCE4;color:#3D4763;border-radius:12px;padding:3px 10px}.ws-digest-bubble{border-radius:12px;background:#FFF;padding:16px;font-size:13px;line-height:1.6}.ws-digest-bubble h2{font-size:16px;font-weight:800;margin-bottom:8px}.ws-digest-bubble h3{font-size:13px;font-weight:800;margin:18px 0 8px}.ws-digest-bubble p{margin:8px 0;line-height:1.6}.ws-digest-bubble small{font-size:10px;color:#5B6478}.ws-digest-buttons{display:grid;grid-template-columns:1fr 1fr;gap:5px}.ws-digest-buttons button{padding:10px 6px;min-height:40px;background:#FFF;color:#2B59D1;border:1px solid #D5D9E2;border-radius:7px;font-size:12px;font-weight:700}.ws-digest-composer{padding:14px;text-align:center;background:#FFF;color:#5B6478;font-size:11px}.ws-digest-phone.whatsapp .ws-digest-header{background:#0B6255;color:#FFF}.ws-digest-phone.whatsapp .ws-digest-header small,.ws-digest-phone.whatsapp .ws-digest-header>span{color:#D3EDE7}.ws-digest-phone.whatsapp .ws-digest-chat{background:#EEEAE1}.ws-digest-phone.whatsapp .ws-digest-bubble{border-radius:0 12px 12px 12px}.ws-digest-phone.whatsapp .ws-digest-date{background:#DDE9E1}@media(max-width:700px){.ws-digests{gap:20px}.ws-digest-phone{border-radius:18px}.ws-digest-chat{max-height:65vh}.ws-digest-bubble{padding:14px}}

.main>header .search-trigger{margin-left:0;justify-content:flex-start}.ws-heading:has(>small)>div{display:flex;align-items:baseline;gap:12px}.ws-heading:has(>small) h1{font-size:24px;margin:0}.ws-situation-grid>aside.ws-stack>.ws-panel:first-child{border:1px solid #E6E8EE;background:#FFF;padding:0 16px 16px}.ws-situation-grid>aside.ws-stack>.ws-panel:first-child>.ws-panel-head{padding:16px 0 12px}.ws-decisions-section>.ws-panel-head>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;width:100%}.ws-decisions-section>.ws-panel-head h2{white-space:nowrap}.ws-decisions-section>.ws-panel-head p{text-align:right}@media(max-width:700px){.workspace[data-modern=true] .ws-mobile-brand{line-height:1}.ws-decisions-section>.ws-panel-head>div{display:block}.ws-decisions-section>.ws-panel-head p{text-align:left}.ws-heading:has(>small)>div{display:block}}
/* Reference correction: 1440px layouts from the supplied four screens. */
:root{--fs:14px;--fs-s:12px;--fs-xs:11px}
body{line-height:1.45}
.rail{gap:24px}.rail-top{margin-bottom:0}.rail nav{gap:2px}#rail-toggle{opacity:0}.rail-top:hover #rail-toggle,#rail-toggle:focus-visible{opacity:1}.rail-bottom{display:none}.rail-profile{margin-top:auto;padding:0 10px}.ws-more{margin-top:12px}.ws-more summary{font-size:11px;opacity:.65}.brand{font-size:28px}.main>header{min-height:58px;height:58px;padding:10px 28px}.main>main{max-width:none;padding:20px 28px 32px}.ws-system-status{font-size:13px}.ws-system-status::before{color:#299c62}.main>header #refresh{font-size:14px}.main>header #logout{font-size:11px}.main>header .search-trigger{height:38px;font-size:14px}.ws-body{gap:16px}.ws-heading h1,.ws-orders-heading h1,.ws-calendar-heading h1{font-size:24px;font-weight:800;line-height:1.3;letter-spacing:0;margin:0}.ws-heading h1{margin-bottom:0}.ws-heading p{font-size:13px}.ws-heading>div{display:flex;align-items:baseline;gap:12px}.ws-heading>small{font-size:12px;color:#677189}.ws-panel{border-color:#eceef2;border-radius:12px}.ws-table th{background:white;font-size:11px;border-color:#f1f3f6;padding:8px 16px}.ws-table td{padding:10px 16px;border-color:#f1f3f6;font-size:13px;color:#16234a}.ws-table .ws-client{color:#16234a;font-size:13px;font-weight:700}.ws-table td small{margin-top:2px;line-height:1.4}.ws-table-scroll{border-color:#eceef2;border-radius:12px}.ws-tag{font-size:11px;padding:3px 7px;border-radius:5px;line-height:1.35}.ws-tag.planned,.ws-tag.contact,.ws-tag.measure,.ws-tag.approval,.ws-tag.deposit,.ws-tag.production,.ws-tag.installation,.ws-tag.completed{background:#f1f3f6;color:#16234a}.ws-tag.planned::before,.ws-tag.contact::before,.ws-tag.measure::before,.ws-tag.approval::before,.ws-tag.deposit::before,.ws-tag.production::before,.ws-tag.installation::before,.ws-tag.completed::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;background:#d99a1e}.ws-tag.contact::before{background:#8a93ab}.ws-tag.measure::before{background:#7a5ad6}.ws-tag.approval::before,.ws-tag.installation::before{background:#2b59d1}.ws-tag.deposit::before{background:#299c62}.ws-tag.production::before{background:#5b6478}.ws-tag.completed::before{background:#1c6b42}
/* Situation */
.ws-tile{border-radius:12px;padding:12px 16px;gap:2px;min-height:96px}.ws-tile.amber{border-color:#ffcdd2}.ws-tile strong{font-size:26px;line-height:1.2}.ws-tile>span{font-size:13px}.ws-tile small{font-size:12px}.ws-situation-grid{grid-template-columns:minmax(0,1fr) 320px}.ws-decisions{gap:12px}.ws-decision{border-radius:12px;min-height:218px;padding:14px 16px}.ws-decision>.ws-actions{margin-left:-16px;margin-right:-16px;margin-bottom:-14px;border-radius:0 0 12px 12px;min-height:65px;gap:6px}.ws-decision h3{margin:8px 0 4px}.ws-decision p{font-size:13px;margin:0 0 10px}.ws-decision h3 .ws-client{font-weight:800}.ws-quick{gap:8px}.ws-quick button{border-color:#e6e8ee;color:#16234a;min-height:46px;padding:8px 12px}.ws-situation-grid .ws-event{border-left:0;background:white;margin:0 -16px;border-bottom:1px solid #f1f3f6;border-radius:0;padding:12px 16px}.ws-situation-grid .ws-event .ws-client{color:#16234a}.ws-situation-grid .ws-event:last-of-type{border:0}
/* Orders: stage strip, master list, selected order preview. */
.ws-orders-heading{min-height:32px}.ws-orders-heading .ws-actions{font-size:13px}.ws-orders-heading select{height:34px;font-size:13px;padding:4px 8px}.ws-order-filters{margin-top:-8px}.ws-order-filters input{height:36px;padding:7px 10px;font-size:13px;background:#f1f3f6;border:0;width:420px}.ws-order-filters select{height:36px;padding:4px 8px;font-size:12px}.ws-stage-tabs{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:2px;padding:3px;border:1px solid #eceef2;border-radius:12px;background:#fff}.ws-stage-tabs button{background:transparent;text-align:left;min-height:50px;padding:5px 10px;border-radius:7px;display:flex;flex-direction:column;gap:0;min-width:0;color:#16234a}.ws-stage-tabs button>span{font-size:11px;white-space:nowrap;font-weight:700}.ws-stage-tabs button>span::before{content:'●';color:#8a93ab;font-size:9px;margin-right:5px}.ws-stage-tabs .planned>span::before{color:#d99a1e}.ws-stage-tabs .measure>span::before{color:#7a5ad6}.ws-stage-tabs .approval>span::before,.ws-stage-tabs .installation>span::before{color:#2b59d1}.ws-stage-tabs .deposit>span::before,.ws-stage-tabs .completed>span::before{color:#299c62}.ws-stage-tabs button strong{font-size:17px;font-weight:800}.ws-stage-tabs button.selected{background:#eaf0fd;color:#2343a8}.ws-orders-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:16px;align-items:start}.ws-orders-layout>.ws-table-scroll{width:100%}.ws-orders-layout .ws-table{table-layout:fixed}.ws-orders-layout .ws-table th:first-child,.ws-orders-layout .ws-table td:first-child{width:40px;min-width:0;padding:8px 12px 8px 20px}.ws-orders-layout .ws-table th:nth-child(2){width:20%}.ws-orders-layout .ws-table th:nth-child(3){width:18%}.ws-orders-layout .ws-table th:nth-child(4){width:29%}.ws-orders-layout .ws-table th:nth-child(5){width:19%}.ws-orders-layout .ws-table th:last-child{width:12%;text-align:right}.ws-orders-layout .ws-table td:last-child{text-align:right;white-space:nowrap}.ws-orders-layout .ws-table td{padding:7px 12px;min-width:0;vertical-align:middle}.ws-orders-layout .ws-table td:has(.ws-client){min-width:0}.ws-orders-layout tr.is-selected{background:#f5f7ff}.ws-orders-layout tbody tr{cursor:pointer}.ws-orders-layout .ws-table td small{font-size:12px}.ws-orders-layout .ws-table .ws-client{font-size:13px;min-height:18px}.ws-order-summary{background:#fff;border:1px solid #eceef2;border-radius:12px;padding:20px;position:sticky;top:16px}.ws-order-summary h2{font-size:20px;font-weight:800;margin:4px 0}.ws-order-summary h2>span{font-weight:400;color:#677189}.ws-order-summary>p{font-size:13px;margin:0 0 14px}.ws-summary-next{background:#fff6df;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:4px}.ws-summary-next small,.ws-summary-actions>small{color:#677189;font-size:11px;font-weight:800}.ws-summary-next strong{font-size:13px}.ws-summary-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.ws-summary-facts dt{font-size:11px;color:#677189}.ws-summary-facts dd{font-size:13px;font-weight:700;margin:0}.ws-summary-actions{border-top:1px solid #f1f3f6;padding-top:12px;display:flex;flex-direction:column;gap:5px}.ws-summary-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px}.ws-summary-buttons>*{font-size:12px;min-height:38px;text-align:center;display:flex;justify-content:center;align-items:center;padding:4px 8px;text-decoration:none}.ws-summary-actions>.primary{width:100%;min-height:40px}
/* Full-page order. Its navigation remains part of the workspace. */
.main:has(.ws-order-page)>header,.main:has(.ws-order-page)>.demo-banner{display:none}.main>main:has(.ws-order-page){padding:0}.ws-card-host>.field-error{margin:0}.ws-order-page{display:block;position:static;width:100%;height:auto;max-width:none;max-height:none;padding:0;margin:0;border:0;border-radius:0;background:#f6f7f9;overflow:visible}.ws-card-header{min-height:67px;background:#fff;display:flex;align-items:center;gap:12px;padding:10px 28px;border-bottom:1px solid #f1f3f6}.ws-card-back{width:38px;height:38px;font-size:23px;font-weight:400;padding:0;flex-shrink:0}.ws-card-identity h2{font-size:18px!important;line-height:1.3;margin:0;font-weight:800}.ws-card-identity h2>span{font-weight:400;color:#677189}.ws-card-identity p{font-size:12px;color:#677189;margin:2px 0 0}.ws-card-header>.ws-actions{margin-left:auto}.ws-card-header .secondary{font-size:12px;min-height:36px}.ws-order-page .ws-order-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;padding:18px 28px 28px;align-items:start}.ws-order-page .ws-order-grid>aside{display:flex;grid-column:auto;flex-direction:column;gap:12px}.ws-order-page .ws-panel{padding:0 16px 16px}.ws-order-page .ws-panel-head{padding:16px 0 12px}.ws-order-page .ws-panel-head h2{font-size:14px}.ws-conversation{border-color:#eceef2;border-radius:12px;background:#fafbfc;min-width:0}.ws-conversation>.ws-tabs{padding:10px 14px;background:#fff;border-color:#f1f3f6;gap:4px;flex-wrap:nowrap;min-height:50px}.ws-conversation>.ws-tabs button{font-size:12px;min-height:30px;padding:6px 10px}.ws-conversation>.ws-tabs .selected{background:#16234a;color:#fff;border-radius:5px}.ws-conversation>.ws-tabs small{margin-left:auto;color:#677189;font-size:12px}.ws-timeline{padding:18px;gap:12px;height:560px;min-height:280px;max-height:calc(100vh - 240px);overflow-y:auto}.ws-message{padding:0;border:0;background:transparent;border-radius:0;max-width:90%;align-self:flex-start}.ws-message small{display:block;font-size:11px;color:#677189;margin-bottom:4px}.ws-message.customer>small{color:#1c6b42}.ws-message p{font-size:14px;line-height:1.5;padding:10px 14px;border-radius:0 12px 12px 12px;margin:0;background:#e9f6ee;color:#26395d}.ws-message.team{background:transparent;border:0;align-self:flex-end}.ws-message.team>small{text-align:right;color:#2343a8}.ws-message.team p{background:#eaf0fd;border-radius:12px 0 12px 12px}.ws-message.internal{background:#fff;border:1px dashed #e6e8ee;border-radius:10px;width:100%;max-width:100%;padding:10px 12px}.ws-message.internal>small{font-size:11px;color:#6b45bd;font-weight:700}.ws-message.internal p{font-size:13px;padding:0;background:transparent;line-height:1.5}.ws-timeline-event{align-self:center;background:#eef0f5;border-radius:20px;padding:4px 10px;max-width:95%;font-size:11px}.ws-conversation-footer{border-top:1px solid #e6e8ee;background:#fff;padding:12px 14px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;position:relative}.ws-conversation-footer>span{margin-right:auto;color:#677189}.ws-conversation-footer details>summary{list-style:none;cursor:pointer;padding:8px 12px;border:1px solid #dce5fb;background:#f5f8ff;color:#2343a8;border-radius:8px;font-weight:800;font-size:12px}.ws-conversation-footer details[open]{flex:1 1 100%;min-width:0}.ws-conversation-footer details[open]>summary{width:max-content;margin-left:auto;margin-bottom:10px}.ws-note-form{background:#fff;padding:12px 0 0}.ws-note-form textarea{width:100%}.ws-progress{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0;padding:0;font-size:10px;line-height:1.2}.ws-progress li{min-width:0;display:flex;flex-direction:column;color:#677189;gap:4px}.ws-progress li::before{content:'';height:4px;border-radius:4px;background:#e6e8ee;width:100%}.ws-progress li::marker{content:''}.ws-progress li.done::before{background:#2b59d1}.ws-progress li.current{color:#16234a;font-weight:800}.ws-progress li.current::before{background:#d99a1e}.ws-definition{grid-template-columns:94px minmax(0,1fr);font-size:12px;gap:8px 10px;margin:0 0 14px;align-items:center}.ws-definition dt{color:#677189}.ws-definition dd{border:1px solid #f1f3f6;border-radius:6px;padding:6px 8px;font-weight:700;line-height:1.4}.ws-order-page .ws-actions .secondary{font-size:11px;padding:5px 8px;min-height:30px}.ws-history-entry{margin-bottom:8px}.ws-history-entry:last-child{margin:0}.ws-history-entry p{font-size:13px;margin:0 0 2px}.ws-history-entry small{font-size:11px;color:#677189}.ws-extra-actions>.ws-stack{gap:6px}.ws-extra-actions .secondary,.ws-extra-actions .primary{min-height:32px;font-size:12px;padding:5px 8px}.ws-order-page .ws-avatar{width:34px;height:34px;font-size:12px;background:#eaf0fd;color:#2343a8}.ws-order-page .ws-brief{font-size:13px}.ws-order-page .ws-panel .muted{font-size:12px}.ws-order-page audio{max-width:100%;width:100%;padding:8px}
/* Calendar: one row per executor and one column per Madrid day. */
.ws-calendar-heading{min-height:34px}.ws-calendar-heading>.ws-actions{gap:8px}.ws-calendar-heading .muted{font-size:13px}.ws-calendar-heading button{font-size:12px;min-height:30px;padding:4px 10px}.ws-calendar-heading button.selected{background:#16234a;color:white;border-radius:5px}.ws-calendar-tools{justify-content:flex-end;margin-top:-8px;font-size:12px}.ws-calendar-tools select{margin-right:auto;font-size:12px;min-height:30px;padding:4px 8px}.ws-calendar-tools button{min-height:30px;font-size:12px;padding:4px 10px}.ws-cal-legend{font-size:12px;color:#677189;margin-right:2px}.ws-cal-legend::before{content:'';display:inline-block;width:9px;height:9px;border-radius:2px;background:#8a93ab;margin-right:5px}.ws-cal-legend.measure::before{background:#7a5ad6}.ws-cal-legend.installation::before{background:#2b59d1}.ws-calendar-scroll{overflow-x:auto;border:1px solid #eceef2;border-radius:12px;background:#fff}.ws-calendar-matrix{display:grid;grid-template-columns:170px repeat(7,minmax(0,1fr));min-width:1000px}.ws-calendar-matrix.day-view{grid-template-columns:170px minmax(0,1fr);min-width:0}.ws-cal-corner,.ws-cal-date{padding:10px 14px;font-size:12px;font-weight:800;border-right:1px solid #f1f3f6;border-bottom:1px solid #f1f3f6;min-height:38px}.ws-cal-corner{font-size:11px;color:#677189}.ws-cal-date.today{color:#2343a8;background:#f5f7ff}.ws-cal-owner{padding:12px 14px;border-right:1px solid #f1f3f6;border-bottom:1px solid #f1f3f6;font-size:13px;display:flex;flex-direction:column;gap:5px;min-width:0}.ws-cal-owner strong{font-weight:800}.ws-cal-owner small,.ws-cal-owner b{font-size:11px;color:#677189;font-weight:400}.ws-cal-owner b{font-weight:700}.ws-cal-cell{padding:6px;border-right:1px solid #f1f3f6;border-bottom:1px solid #f1f3f6;min-height:125px;min-width:0;display:flex;flex-direction:column;gap:4px}.ws-cal-cell.today{background:#fafbff}.ws-cal-cell.unavailable{background:#f3f4f7}.ws-cal-cell>small{font-size:11px;color:#8a93ab;padding:2px 3px}.ws-cal-event{background:white;border:1px solid #f1f3f6;border-radius:6px;text-align:left;padding:5px 6px;color:#16234a;font-size:11px;line-height:1.4;min-height:42px;width:100%}.ws-cal-event>span{display:flex;flex-direction:column;min-width:0}.ws-cal-event strong{font-size:11px;font-weight:800}.ws-cal-event strong::before{content:'';display:inline-block;width:7px;height:7px;background:#8a93ab;border-radius:2px;margin-right:4px}.ws-cal-event.measure strong::before{background:#7a5ad6}.ws-cal-event.installation strong::before{background:#2b59d1}.ws-calendar-hint{font-size:12px;color:#677189;margin:0}
@media(min-width:1500px){.ws-orders-layout{grid-template-columns:minmax(0,1fr) 380px}.ws-order-page .ws-order-grid{grid-template-columns:minmax(0,1fr) 320px}.ws-timeline{max-height:650px}}
@media(max-width:1200px) and (min-width:701px){.ws-orders-layout{grid-template-columns:minmax(0,1fr) 300px}.ws-orders-layout .ws-table th:nth-child(5),.ws-orders-layout .ws-table td:nth-child(5){display:none}.ws-orders-layout .ws-table th:nth-child(2){width:25%}.ws-orders-layout .ws-table th:nth-child(4){width:32%}.ws-stage-tabs button{padding:5px}.ws-stage-tabs button>span{font-size:10px}.ws-order-page .ws-order-grid{grid-template-columns:minmax(0,1fr) 300px;padding:16px}.ws-card-header{padding:10px 16px}.ws-conversation>.ws-tabs small{display:none}.ws-situation-grid{grid-template-columns:minmax(0,1fr) 280px}}
@media(max-width:950px) and (min-width:701px){.ws-orders-layout{grid-template-columns:minmax(0,1fr)}.ws-order-summary{position:static}.ws-situation-grid{grid-template-columns:1fr}.ws-order-page .ws-order-grid{grid-template-columns:minmax(0,1fr) 280px;gap:12px}.ws-card-header>.ws-tag{display:none}}
@media(max-width:700px){.main>header{height:auto;min-height:56px;padding:9px 14px}.main>main{padding:18px 14px 20px}.ws-heading>div{display:block}.ws-heading>small{font-size:10px}.ws-orders-heading h1,.ws-calendar-heading h1{font-size:23px}.ws-orders-heading{align-items:flex-start}.ws-orders-heading .ws-actions{font-size:11px;gap:6px}.ws-orders-heading .ws-actions>label{max-width:180px}.ws-orders-heading .muted{display:none}.ws-stage-tabs{display:flex;overflow-x:auto;gap:4px}.ws-stage-tabs button{min-width:88px;padding:7px 10px}.ws-orders-layout{grid-template-columns:minmax(0,1fr)}.ws-order-summary{position:static;padding:16px}.ws-orders-layout>.ws-table-scroll{overflow-x:auto}.ws-orders-layout .ws-table{min-width:650px}.ws-order-filters{margin-top:0}.ws-order-filters input{width:auto;flex:1;min-width:0}.ws-order-filters select{max-width:110px}.ws-summary-buttons>*{font-size:12px}.main:has(.ws-order-page)>header{display:none}.ws-card-header{padding:12px 14px;align-items:flex-start;gap:8px;flex-wrap:wrap}.ws-card-identity{flex:1;min-width:0}.ws-card-identity h2{font-size:17px!important}.ws-card-header>.ws-actions{width:100%;margin-left:46px}.ws-card-header>.ws-tag{display:none}.ws-order-page .ws-order-grid{display:flex;flex-direction:column;padding:14px;gap:14px}.ws-order-page .ws-order-grid>*{width:100%}.ws-conversation>.ws-tabs{padding:8px}.ws-conversation>.ws-tabs small{display:none}.ws-timeline{height:440px;max-height:60vh;min-height:240px;padding:14px}.ws-message p{font-size:13px}.ws-message{max-width:95%}.ws-conversation-footer{padding:10px}.ws-conversation-footer>span{font-size:11px;width:100%}.ws-conversation-footer details>summary{padding:7px 9px;font-size:11px}.ws-order-page .ws-order-grid>aside{display:flex;flex-direction:column}.ws-progress{font-size:10px}.ws-calendar-heading{align-items:flex-start}.ws-calendar-heading>.ws-actions:first-child{flex-wrap:wrap}.ws-calendar-heading .muted{font-size:11px}.ws-cal-legend{font-size:10px}.ws-calendar-tools{margin:0}.ws-calendar-tools select{max-width:150px;min-width:0}.ws-calendar-matrix{grid-template-columns:140px repeat(7,125px);min-width:1015px}.ws-calendar-matrix.day-view{grid-template-columns:120px minmax(0,1fr)}.ws-calendar-hint{font-size:11px}.ws-situation-grid{grid-template-columns:1fr}.ws-decision{min-height:190px}.rail-profile{display:none}}
.main{position:relative}.ws-orders-heading>.ws-actions{flex-wrap:nowrap;width:auto}.ws-orders-heading .ws-actions>label{margin:0;white-space:nowrap}.ws-orders-heading .ws-actions input[type=checkbox]{width:16px;height:16px;flex:none;margin:0;order:-1}.ws-orders-heading select{width:auto;margin:0;max-width:170px}.ws-orders-heading .ws-actions>.primary{white-space:nowrap}.ws-orders-heading .ws-actions>span{white-space:nowrap}.ws-order-filters{position:absolute;top:10px;left:28px;z-index:2;margin:0;width:420px}.ws-order-filters select{display:none}.ws-order-filters input{width:100%;margin:0;padding:8px 12px;height:38px}.main:has(.ws-order-filters)>header .search-trigger{visibility:hidden}.ws-orders-layout .ws-table td{overflow-wrap:anywhere}.ws-orders-layout .ws-table th:nth-child(2){width:21%}.ws-orders-layout .ws-table th:nth-child(3){width:16%}.ws-orders-layout .ws-table th:nth-child(4){width:27%}.ws-orders-layout .ws-table th:nth-child(5){width:19%}.ws-orders-layout .ws-table th:last-child{width:12%}.ws-orders-layout .ws-table td:nth-child(5){font-size:12px}.ws-conversation>.ws-tabs button{border-color:transparent}.ws-conversation>.ws-tabs button:not(.selected){background:transparent}.ws-message.customer p{border-radius:0 12px 12px 12px}
@media(max-width:1200px){.ws-orders-heading>.ws-actions{flex-wrap:wrap;justify-content:flex-end}.ws-order-filters{width:340px}}
@media(max-width:700px){.ws-orders-heading>.ws-actions{justify-content:flex-start;width:100%}.ws-order-filters{position:static;width:100%;z-index:auto}.main:has(.ws-order-filters)>header .search-trigger{visibility:visible}.ws-orders-heading select{max-width:160px;font-size:11px}.ws-orders-heading .ws-actions>label{white-space:normal;max-width:none;flex:1 1 100%}.ws-orders-heading .ws-actions>.primary{font-size:12px}.ws-orders-layout .ws-table th:nth-child(2){width:21%}}
.ws-order-filters{z-index:12}.ws-orders-layout .ws-table td:nth-child(4)>div{white-space:normal;overflow-wrap:anywhere}.ws-orders-layout .ws-table td:nth-child(5){white-space:normal;overflow-wrap:anywhere}.ws-orders-layout .ws-table td:nth-child(4){padding-right:18px}
html{scrollbar-gutter:stable}.ws-orders-layout .ws-table td{overflow:hidden}.ws-calendar-heading select{width:120px;min-height:30px;height:30px;font-size:11px;margin:0;padding:4px 6px;border-color:#e6e8ee}.ws-calendar-heading .primary{font-size:11px;white-space:nowrap}.main:has(.ws-page[data-route=calendar])>header{height:39px;min-height:39px;padding:8px 28px}.main:has(.ws-page[data-route=calendar])>header>div:first-child{display:block;font-size:13px;color:#677189}.main:has(.ws-page[data-route=calendar])>header .search-trigger{display:none}.main:has(.ws-page[data-route=calendar])>header .ws-header-context{margin-left:auto}.ws-calendar-heading{flex-wrap:nowrap}.ws-calendar-heading>.ws-actions{flex-wrap:nowrap}.ws-calendar-heading .ws-cal-legend{font-size:11px}.ws-calendar-heading>.ws-actions:first-child>span{white-space:nowrap}.ws-order-filters{z-index:25}
@media(max-width:1200px){.ws-calendar-heading{flex-wrap:wrap}.ws-calendar-heading>.ws-actions{flex-wrap:wrap}.ws-calendar-heading>.ws-actions:last-child{margin-left:auto}}
@media(max-width:700px){html{scrollbar-gutter:auto}.ws-order-filters{z-index:auto}.main:has(.ws-page[data-route=calendar])>header{height:auto;min-height:56px;padding:9px 14px}.main:has(.ws-page[data-route=calendar])>header>div:first-child{display:none}.ws-calendar-heading select{width:110px}.ws-calendar-heading .primary{font-size:11px}.ws-calendar-heading>.ws-actions:last-child{margin-left:0}}
body:has(#workspace:not([hidden])) .partner-entry{display:none}
/* Remaining reference screens: executor tables, report, and two-column policy. */
.main:has(.ws-page[data-route=executors])>header>div:first-child,.main:has(.ws-page[data-route=reports])>header>div:first-child,.main:has(.ws-page[data-route=rules])>header>div:first-child{display:block;color:#5b6478;font-size:13px}.main:has(.ws-page[data-route=executors])>header .search-trigger,.main:has(.ws-page[data-route=reports])>header .search-trigger,.main:has(.ws-page[data-route=rules])>header .search-trigger{display:none}.main:has(.ws-page[data-route=executors])>header .ws-header-context,.main:has(.ws-page[data-route=reports])>header .ws-header-context,.main:has(.ws-page[data-route=rules])>header .ws-header-context{margin-left:auto}
.ws-page[data-route=executors] .ws-heading>div,.ws-page[data-route=reports] .ws-heading>div,.ws-page[data-route=rules] .ws-heading>div{display:block}.ws-page[data-route=executors] .ws-heading h1,.ws-page[data-route=reports] .ws-heading h1,.ws-page[data-route=rules] .ws-heading h1{margin:0 0 4px}.ws-page[data-route=executors] .ws-heading p,.ws-page[data-route=reports] .ws-heading p,.ws-page[data-route=rules] .ws-heading p{line-height:1.5;font-size:13px;color:#5b6478}.ws-period-control{width:auto;max-width:200px;font-size:13px;padding:7px 10px;margin:0}.ws-page[data-route=executors] .ws-heading>.ws-actions,.ws-page[data-route=reports] .ws-heading>.ws-actions,.ws-page[data-route=rules] .ws-heading>.ws-actions{display:flex;flex-direction:row;gap:8px;align-items:center;flex-wrap:wrap}.ws-executor-performance{padding:0}.ws-executor-performance>.ws-table-scroll{margin:0;border:0;border-radius:12px 12px 0 0;width:100%;max-width:100%}.ws-executor-performance .ws-table th{font-size:12px;font-weight:400;padding:10px 18px;text-align:right;white-space:nowrap}.ws-executor-performance .ws-table th:first-child{text-align:left;width:31%}.ws-executor-performance .ws-executor{display:table-row;padding:0;border:0;background:none;border-radius:0}.ws-executor-performance .ws-table td{padding:12px 18px;text-align:right;white-space:nowrap}.ws-executor-performance .ws-table td:first-child{text-align:left;white-space:normal}.ws-person-cell{display:flex;align-items:center;gap:10px}.ws-person-cell .ws-avatar{background:#eaf0fd;color:#2343a8;width:36px;height:36px;font-size:13px}.ws-executor-name{padding:0;background:none;color:#16234a;font-size:14px;font-weight:800;text-align:left;min-height:20px;line-height:1.4}.ws-person-cell small{font-size:12px;color:#677189;line-height:1.4;display:block}.ws-executor-status{padding:6px 10px;min-height:30px;border-radius:6px;font-size:12px;font-weight:700;white-space:nowrap}.ws-executor-status.working{background:#e4f4ec;border:1px solid #b8e4cd;color:#1c6b42}.ws-executor-status.paused{background:#fff1d1;border:1px solid #ffd27a;color:#845000}.ws-table-footnote{margin:0;font-size:12px;line-height:1.5;color:#677189;border-top:1px solid #e6e8ee;padding:10px 18px 14px}.ws-city-panel>.ws-panel-head{padding:14px 2px 12px}.ws-city-panel .ws-table th{font-weight:400;font-size:12px}.ws-city-panel .ws-table td{padding:8px 18px;min-height:48px}.ws-city-panel .ws-table th:first-child{width:16%}.ws-city-panel .ws-table th:nth-child(2){width:40%}.ws-city-panel .ws-table th:nth-child(3){text-align:right}.ws-city-panel .ws-table td:nth-child(3){text-align:right}.ws-city-access{border:1px solid #d5d9e2;max-width:300px;min-height:34px;padding:4px 9px;display:flex;align-items:center;gap:10px;justify-content:space-between;border-radius:7px}.ws-city-access>span{font-size:13px}.ws-city-access>button{font-size:11px;padding:4px;min-height:24px;white-space:nowrap}
/* Report: three observations, stacked stage bars and the smaller right chart. */
.ws-report-insights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ws-report-insight{background:#fff;border:1px solid #e6e8ee;border-radius:12px;padding:14px 16px;min-width:0}.ws-report-insight>small{font-size:11px;font-weight:800;letter-spacing:.2px;color:#2343a8}.ws-report-insight>small::before{content:'●';margin-right:5px;font-size:9px}.ws-report-insight.red>small{color:#c7283d}.ws-report-insight.amber>small{color:#845000}.ws-report-insight h2{font-size:15px;font-weight:800;line-height:1.45;margin:4px 0}.ws-report-insight p{font-size:13px;line-height:1.55;color:#3d4763;margin:4px 0 0}.ws-report-main{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;align-items:start}.ws-report-main .ws-panel-head{padding:16px 4px 12px}.ws-report-main .ws-panel-head h2{font-size:16px}.ws-report-main .ws-panel-head p{font-size:13px;margin-top:4px}.ws-path-panel{padding:0 20px 16px;position:relative}.ws-chart-legend{display:flex;align-items:center;gap:12px;font-size:11px;color:#5b6478;justify-content:flex-end;margin:-4px 0 16px;flex-wrap:wrap}.ws-chart-legend span::before{content:'';display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:-2px;margin-right:5px;background:#2b59d1}.ws-chart-legend .current::before{background:#9aaeed}.ws-chart-legend .dropped::before{background:#c8cedc}.ws-path-panel .ws-funnel-row{display:grid;grid-template-columns:110px minmax(0,1fr) 180px;gap:12px;align-items:center;margin:0 0 14px;font-size:12px}.ws-funnel-label{display:flex;flex-direction:column;gap:2px;min-width:0}.ws-funnel-label strong{font-size:13px;font-weight:700}.ws-funnel-label small{font-size:12px;color:#677189}.ws-funnel-track{height:24px;background:transparent;display:flex;align-items:stretch;min-width:0;gap:2px}.ws-funnel-segment{height:24px;background:#2b59d1;flex-shrink:1;min-width:0}.ws-funnel-segment.current{background:#9aaeed}.ws-funnel-segment.dropped{background:#c8cedc;border-radius:0 4px 4px 0}.ws-funnel-counts{font-size:11px;color:#3d4763;line-height:1.5}.ws-speed-panel{padding:0 20px 18px}.ws-speed-row,.ws-loss-row{display:grid;grid-template-columns:95px minmax(0,1fr) 35px;gap:10px;align-items:center;margin-bottom:12px;font-size:13px;line-height:1.3}.ws-small-bar-track{height:12px;min-width:0}.ws-small-bar{height:12px;max-width:100%;background:#2b59d1;border-radius:0 4px 4px 0}.ws-speed-row strong,.ws-loss-row strong{text-align:right}.ws-chart-note{font-size:11px;line-height:1.5;color:#677189;margin:8px 0 0}.ws-report-losses{border-top:1px solid #e6e8ee;padding-top:14px;margin-top:12px}.ws-report-losses h3{font-size:14px;margin:0 0 12px;font-weight:800}.ws-loss-row{grid-template-columns:120px minmax(0,1fr) 28px;margin-bottom:10px}.ws-loss-row .ws-small-bar{height:10px;background:#8a93ab}.ws-dimension-panel{position:relative}.ws-dimension-panel>.ws-panel-head{padding:16px 4px 12px}.ws-dimension-panel .ws-panel-head p{font-size:12px}.ws-report-dimensions{display:flex;gap:4px;padding:4px;border-radius:8px;background:#f1f3f6;position:absolute;top:18px;right:20px}.ws-report-dimensions button{font-size:12px;color:#3d4763;padding:6px 12px;min-height:30px;border-radius:6px;white-space:nowrap;background:transparent}.ws-report-dimensions button.selected{background:#fff;color:#16234a;font-weight:800}.ws-dimension-panel .ws-table th{font-size:12px;font-weight:400}.ws-dimension-panel .ws-table th:not(:first-child),.ws-dimension-panel .ws-table td:not(:first-child){text-align:right}.ws-dimension-panel .ws-table td{padding:10px 18px;font-size:13px}.ws-dimension-panel .ws-table td small{display:inline;margin-left:4px;font-size:11px;font-weight:400}
/* Policy: one form across six aligned panels; every editable value is persisted. */
.ws-policy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.ws-policy-grid>.ws-panel{padding:0 20px 20px}.ws-policy-grid .ws-panel-head{padding:18px 0 14px}.ws-policy-grid .ws-panel-head h2{font-size:15px;font-weight:800}.ws-selected-rule{border:2px solid #2b59d1;background:#f5f8fe;border-radius:8px;padding:10px 12px;margin:0 0 16px}.ws-selected-rule strong{font-size:13px}.ws-selected-rule p{font-size:12px;color:#677189;margin:4px 0 0;line-height:1.5}.ws-working-days{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0 12px}.ws-working-days>strong{font-size:13px;font-weight:700}.ws-weekday-picker{display:flex;gap:6px;flex-wrap:wrap}.ws-weekday-picker label{position:relative;display:block!important;margin:0!important;cursor:pointer}.ws-weekday-picker input{position:absolute;opacity:0;width:1px;height:1px;inset:0}.ws-weekday-picker span{display:flex;align-items:center;justify-content:center;min-width:36px;height:34px;background:white;border:1px solid #d5d9e2;border-radius:7px;color:#5b6478;font-size:12px;font-weight:800;padding:0 7px}.ws-weekday-picker input:checked+span{background:#16234a;border-color:#16234a;color:white}.ws-weekday-picker input:focus-visible+span{outline:2px solid #2b59d1;outline-offset:2px}.ws-rules-form .ws-rule-line{display:flex!important;flex-direction:row;align-items:center;gap:8px;font-size:13px;font-weight:400;margin:10px 0!important;flex-wrap:wrap;line-height:1.5}.ws-rules-form .ws-rule-line>span{color:#16234a;font-weight:400}.ws-rules-form .ws-rule-line>input{display:inline-block;width:78px;flex:0 0 78px;min-height:34px;height:34px;margin:0;border:1px solid #d5d9e2;border-radius:7px;padding:5px 8px;font-size:13px;font-weight:700}.ws-work-hours{display:flex;gap:12px;flex-wrap:wrap}.ws-work-hours .ws-rule-line{gap:6px}.ws-work-hours .ws-rule-line>input{width:58px;flex-basis:58px}.ws-holiday-details{font-size:12px;color:#5b6478;margin:4px 0 12px}.ws-holiday-details summary,.ws-reason-editor summary{cursor:pointer;padding:5px 0}.ws-holiday-details textarea{font-size:12px;min-height:65px;font-weight:400;margin:8px 0 0}.ws-rule-divider{height:1px;background:#e6e8ee;margin:14px 0 12px}.ws-policy-grid h3{font-size:14px;margin:20px 0 12px;font-weight:800}.ws-response-check{display:flex;gap:8px;align-items:flex-start;margin:0 0 12px}.ws-response-check>span{background:#2b59d1;border-radius:3px;color:#fff;font-size:11px;font-weight:800;width:15px;height:15px;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:3px}.ws-response-check p{font-size:13px;line-height:1.6;margin:0}.ws-rule-callout{padding:10px 12px;background:#f6f7f9;border-radius:8px;font-size:12px;color:#3d4763;line-height:1.6;margin:12px 0 0}.ws-rule-callout p{margin:4px 0;font-size:12px;line-height:1.6}.ws-policy-notifications>.ws-table-scroll{margin:0 -20px;width:calc(100% + 40px);max-width:calc(100% + 40px);border:0;border-radius:0}.ws-policy-notifications .ws-table th{font-weight:400;font-size:11px}.ws-policy-notifications .ws-table td{padding:14px 20px;font-size:13px}.ws-policy-notifications .ws-table td:last-child{text-align:right}.ws-policy-notifications>.ws-actions{margin-top:12px}.ws-digest-settings{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.ws-digest-settings .ws-rule-line{font-size:12px}.ws-digest-settings .ws-rule-line>input{width:54px;flex-basis:54px}.ws-system-row{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:45px;padding:10px 0;border-top:1px solid #f1f3f6;font-size:13px}.ws-system-row>span::before{content:'●';font-size:9px;color:#8a93ab;margin-right:8px}.ws-system-row>span.online::before{color:#299c62}.ws-system-row>small{color:#677189;font-size:11px;text-align:right;max-width:48%}.ws-policy-systems>.quiet{margin-top:12px;font-size:12px;padding:6px 0}.ws-policy-team-member{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-top:1px solid #f1f3f6;gap:10px}.ws-policy-team-member strong{font-size:13px;display:block}.ws-policy-team-member small{font-size:12px;display:block;color:#677189;overflow-wrap:anywhere}.ws-policy-team>.secondary{margin-top:12px}.ws-policy-texts{position:relative}.ws-language-tabs{display:flex;gap:2px;position:absolute;right:20px;top:16px;padding:3px;border-radius:8px;background:#f1f3f6}.ws-language-tabs button{font-size:11px;min-height:28px;padding:4px 8px;background:transparent;border-radius:5px;color:#3d4763}.ws-language-tabs button.selected{background:#fff;font-weight:800;color:#16234a}.ws-template-select{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;margin-bottom:12px}.ws-template-select label{margin:0!important;font-weight:400;font-size:12px}.ws-template-select select{height:36px;font-size:13px;padding:6px 10px;margin:4px 0 0}.ws-policy-texts>textarea{width:100%;font-size:13px;line-height:1.6;padding:10px 12px;min-height:130px;font-weight:400;margin:0}.ws-policy-texts>.ws-chart-note{margin-top:12px}.ws-reason-chips{display:flex;gap:6px;flex-wrap:wrap}.ws-reason-chips .ws-tag{font-size:12px;font-weight:700;color:#16234a;padding:6px 9px;border-radius:7px}.ws-reason-editor{font-size:12px;margin-top:8px;color:#2343a8}.ws-reason-editor textarea{font-size:13px;font-weight:400;margin-top:8px}.ws-policy-save{justify-content:flex-end;border-top:1px solid #e6e8ee;padding-top:16px;gap:8px}
@media(min-width:1201px){.ws-page[data-route=executors] .ws-heading .ws-period-control,.ws-page[data-route=reports] .ws-heading .ws-period-control{position:absolute;top:10px;right:28px;z-index:25}.main:has(.ws-page[data-route=executors])>header .header-actions,.main:has(.ws-page[data-route=reports])>header .header-actions{margin-right:205px}.main:has(.ws-page[data-route=executors])>header .ws-header-context,.main:has(.ws-page[data-route=reports])>header .ws-header-context{display:none}}
@media(max-width:1200px) and (min-width:701px){.ws-executor-performance .ws-table th,.ws-executor-performance .ws-table td{padding:10px 12px}.ws-executor-performance>.ws-table-scroll{overflow-x:auto}.ws-executor-performance .ws-table{min-width:950px}.ws-report-main{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}.ws-path-panel .ws-funnel-row{grid-template-columns:85px minmax(0,1fr);gap:10px}.ws-funnel-counts{grid-column:2}.ws-dimension-panel>.ws-panel-head{padding-bottom:60px}.ws-report-dimensions{top:70px;left:20px;right:auto}.ws-template-select{grid-template-columns:1fr}.ws-policy-texts .ws-panel-head{padding-bottom:50px}.ws-language-tabs{top:52px;left:20px;right:auto}}
@media(max-width:700px){.main:has(.ws-page[data-route=executors])>header>div:first-child,.main:has(.ws-page[data-route=reports])>header>div:first-child,.main:has(.ws-page[data-route=rules])>header>div:first-child{display:none}.main:has(.ws-page[data-route=executors])>header .search-trigger,.main:has(.ws-page[data-route=reports])>header .search-trigger,.main:has(.ws-page[data-route=rules])>header .search-trigger{display:flex}.main:has(.ws-page[data-route=executors])>header .ws-header-context,.main:has(.ws-page[data-route=reports])>header .ws-header-context,.main:has(.ws-page[data-route=rules])>header .ws-header-context{margin-left:0}.ws-page[data-route=executors] .ws-heading,.ws-page[data-route=reports] .ws-heading,.ws-page[data-route=rules] .ws-heading{display:flex;flex-direction:column;gap:12px;align-items:stretch}.ws-page[data-route=executors] .ws-heading p,.ws-page[data-route=reports] .ws-heading p,.ws-page[data-route=rules] .ws-heading p{font-size:12px}.ws-period-control{font-size:12px;max-width:190px}.ws-executor-performance .ws-table{min-width:930px}.ws-executor-performance>.ws-table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.ws-executor-performance .ws-table th,.ws-executor-performance .ws-table td{padding:10px 12px}.ws-executor-performance .ws-table td:first-child{min-width:240px}.ws-executor-performance .ws-table th:first-child,.ws-executor-performance .ws-table td:first-child{position:sticky;left:0;z-index:1;background:#fff;box-shadow:1px 0 #f1f3f6}.ws-table-footnote{font-size:11px;padding:10px 12px}.ws-city-panel>.ws-table-scroll{overflow-x:auto}.ws-city-panel .ws-table{min-width:620px}.ws-city-panel .ws-table td{padding:8px 12px}.ws-city-access{max-width:230px;font-size:12px}.ws-report-insights{grid-template-columns:1fr;gap:10px}.ws-report-insight{padding:14px}.ws-report-insight h2{font-size:14px}.ws-report-insight p{font-size:12px}.ws-report-main{grid-template-columns:minmax(0,1fr);gap:14px}.ws-path-panel,.ws-speed-panel{padding-left:14px;padding-right:14px}.ws-report-main .ws-panel-head{padding-left:0;padding-right:0}.ws-report-main .ws-panel-head h2{font-size:15px}.ws-report-main .ws-panel-head p{font-size:12px}.ws-chart-legend{justify-content:flex-start;gap:10px;font-size:10px;margin:0 0 14px}.ws-path-panel .ws-funnel-row{grid-template-columns:80px minmax(0,1fr);gap:4px 10px;margin-bottom:14px}.ws-funnel-label{grid-row:span 2}.ws-funnel-label strong{font-size:12px}.ws-funnel-label small{font-size:11px}.ws-funnel-counts{grid-column:2;font-size:10px}.ws-funnel-track,.ws-funnel-segment{height:20px}.ws-speed-row{grid-template-columns:90px minmax(0,1fr) 32px;font-size:12px}.ws-loss-row{grid-template-columns:110px minmax(0,1fr) 28px;font-size:12px}.ws-dimension-panel>.ws-panel-head{padding:14px 2px 58px}.ws-report-dimensions{top:67px;left:14px;right:auto;max-width:calc(100% - 28px)}.ws-report-dimensions button{padding:6px 10px;font-size:11px}.ws-dimension-panel>.ws-table-scroll{overflow-x:auto}.ws-dimension-panel .ws-table{min-width:660px}.ws-dimension-panel .ws-table td{padding:10px 12px}.ws-policy-grid{grid-template-columns:minmax(0,1fr);gap:14px}.ws-policy-grid>.ws-panel{padding:0 14px 16px}.ws-policy-grid .ws-panel-head{padding:16px 0 12px}.ws-policy-grid .ws-panel-head h2{font-size:14px}.ws-rules-form .ws-rule-line{font-size:12px;gap:6px;margin:10px 0!important}.ws-rules-form .ws-rule-line>input{flex-basis:65px;width:65px;font-size:12px}.ws-working-days{gap:8px}.ws-weekday-picker{gap:5px}.ws-weekday-picker span{min-width:32px;padding:0 6px;height:32px;font-size:11px}.ws-working-days>strong{font-size:12px}.ws-work-hours{gap:8px}.ws-work-hours .ws-rule-line{font-size:11px}.ws-work-hours .ws-rule-line>input{width:48px;flex-basis:48px}.ws-selected-rule{padding:10px}.ws-selected-rule strong{font-size:12px}.ws-selected-rule p{font-size:11px}.ws-response-check p{font-size:12px}.ws-rule-callout{padding:10px;font-size:11px}.ws-rule-callout p{font-size:11px}.ws-policy-notifications>.ws-table-scroll{margin:0 -14px;width:calc(100% + 28px);max-width:calc(100% + 28px)}.ws-policy-notifications .ws-table td{padding:12px 14px;font-size:12px}.ws-policy-notifications .ws-table td:first-child{min-width:0}.ws-digest-settings{gap:6px}.ws-system-row{font-size:12px}.ws-system-row>small{font-size:10px}.ws-template-select{grid-template-columns:1fr}.ws-policy-texts .ws-panel-head{padding-bottom:50px}.ws-language-tabs{left:14px;right:auto;top:48px}.ws-policy-save{align-items:stretch;flex-direction:column}.ws-policy-save button{width:100%;font-size:12px}.ws-reason-chips .ws-tag{font-size:11px}.ws-policy-grid h3{font-size:13px}.ws-policy-team-member small{max-width:220px}}
.ws-city-access>span{min-width:0;overflow-wrap:anywhere;white-space:normal}.ws-city-access>button{flex-shrink:0}
@media(min-width:1201px){.main:has(.ws-page[data-route=executors])>header .header-actions,.main:has(.ws-page[data-route=reports])>header .header-actions{margin-left:auto}.ws-page[data-route=rules] .ws-heading [form=ws-policy-form]{position:absolute;top:10px;right:28px;z-index:25}.main:has(.ws-page[data-route=rules])>header .header-actions{margin-right:105px}}
@media(max-width:700px){.main:has(.ws-page[data-route=executors])>header .search-trigger,.main:has(.ws-page[data-route=reports])>header .search-trigger,.main:has(.ws-page[data-route=rules])>header .search-trigger{display:none}.workspace[data-modern=true] .ws-page[data-route=executors] .ws-heading>div:first-child,.workspace[data-modern=true] .ws-page[data-route=reports] .ws-heading>div:first-child,.workspace[data-modern=true] .ws-page[data-route=rules] .ws-heading>div:first-child{display:none}.workspace[data-modern=true] .ws-page[data-route=executors] .ws-heading>.ws-actions,.workspace[data-modern=true] .ws-page[data-route=reports] .ws-heading>.ws-actions,.workspace[data-modern=true] .ws-page[data-route=rules] .ws-heading>.ws-actions{display:flex;justify-content:flex-end}.ws-city-access>span{font-size:12px}.ws-city-access{width:100%}}
.ws-cohort-city{width:auto;min-width:100px;max-width:170px;margin:0;padding:7px 10px;font-size:13px;border-color:#e6e8ee}.ws-page[data-route=executors] .ws-heading>.ws-actions,.ws-page[data-route=reports] .ws-heading>.ws-actions{display:flex;flex-direction:row}
@media(max-width:700px){.ws-cohort-city{max-width:140px;font-size:12px}.ws-page[data-route=executors] .ws-heading>.ws-actions,.ws-page[data-route=reports] .ws-heading>.ws-actions{flex-wrap:wrap}}
.ws-workflow-panel{background:#fff7e4;border-color:#ffe0a6}.ws-workflow-panel .ws-panel-head h2{font-size:15px}.ws-workflow-form{display:flex;flex-direction:column;gap:10px}.ws-workflow-form label{font-size:12px;font-weight:700;display:flex;flex-direction:column;gap:5px;margin:0}.ws-workflow-form input,.ws-workflow-form select,.ws-workflow-form textarea{width:100%;font-size:13px;margin:0;padding:8px 10px;border:1px solid #d5d9e2;border-radius:7px;background:white;color:#16234a}.ws-workflow-form textarea{resize:vertical}.ws-workflow-form>.primary{width:100%;min-height:38px}.ws-workflow-form>small{font-size:11px;line-height:1.5}.ws-next-guidance{font-size:13px;line-height:1.5;margin:0 0 2px}.ws-intake-panel>small{font-size:11px;line-height:1.5;display:block}.ws-intake-panel details{font-size:12px;margin:10px 0}.ws-intake-panel summary{cursor:pointer;color:#2343a8}.ws-intake-panel .ws-brief{font-size:12px;line-height:1.6}.ws-intake-panel>p{font-size:12px}.ws-intake-panel .ws-notice{font-size:11px;padding:8px 10px}
@media(max-width:700px){.ws-workflow-panel{order:-1}.ws-order-page .ws-order-grid:has(.ws-workflow-panel){display:flex}.ws-workflow-form input,.ws-workflow-form select,.ws-workflow-form textarea{font-size:16px}.ws-workflow-form>.primary,.ws-workflow-form select,.ws-note-form select{min-height:44px}}
@media(max-width:700px){.ws-order-page .ws-order-grid>aside:has(.ws-workflow-panel){display:contents}.ws-order-page .ws-order-grid .ws-workflow-panel{order:-1}}

/* Source filters stay below the heading; the existing search stays in the header. */
.crm-pdf{max-width:100%;min-width:0;margin:8px 0;padding:10px;border:1px solid #dce5fb;border-radius:10px;background:#fff;color:#16234a}.crm-pdf-controls{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:8px 0}.crm-pdf-controls[hidden],.crm-pdf-viewport[hidden],.crm-pdf details[hidden]{display:none}.crm-pdf-controls>span{font-size:12px}.crm-pdf-viewport{width:100%;max-height:75vh;overflow:auto;background:#e8ebf1;padding:6px}.crm-pdf canvas{display:block;max-width:none;background:white;margin:0 auto}.crm-pdf figcaption{font-size:11px;margin-top:8px;color:#5b6478}.crm-pdf-text{white-space:pre-wrap;overflow-wrap:anywhere;padding:8px;font-size:13px;line-height:1.6}.crm-pdf .field-error{white-space:normal}.crm-pdf summary{cursor:pointer;padding:8px 0}.crm-pdf .secondary{display:inline-flex;align-items:center;justify-content:center;min-height:36px;text-decoration:none}.crm-pdf details{margin-top:8px}@media(max-width:700px){.crm-pdf .secondary{min-height:44px}.crm-pdf-controls{gap:5px}.crm-pdf-controls>span{flex-basis:100%}}
.ws-mobile-menu,.ws-mobile-dialogues{display:none!important}.ws-reply-unavailable{width:100%;line-height:1.6;color:#5b6478}.ws-order-page .ws-card-header{position:static}.ws-history-entry{overflow-wrap:anywhere}.ws-inline-photo{display:block;max-width:100%;max-height:260px;object-fit:contain;border-radius:8px;margin:8px 0}
@media(max-width:700px){
 .rail nav{display:flex;overflow:visible;justify-content:space-between;width:100%;gap:0}
 .rail nav>button{flex:1;min-width:0;padding:6px 2px}
 .rail nav>.ws-mobile-dialogues,.rail nav>.ws-mobile-menu{display:flex!important;flex-direction:column}
 .rail nav>.ws-mobile-dialogues{order:-5}.rail nav>[data-page=calendar]{order:-4}.rail nav>.ws-mobile-menu{order:20}
 .rail nav>.ws-mobile-search{display:none!important}
 .rail nav .ws-more[open]{max-height:65vh;overflow:auto;z-index:100}
 .rail nav .ws-more[open] button{display:flex!important;min-height:44px;color:white;width:100%;font-size:14px}
 .rail nav .ws-more[open] summary{min-height:44px}
 .ws-order-page button,.ws-order-page .secondary,.ws-order-page .ws-actions .secondary,.ws-order-page a.ws-dial,.ws-order-page summary{min-height:44px!important}
 .ws-card-header>.ws-actions{margin-left:0;position:static}
 .ws-order-page .ws-order-grid{padding-top:14px!important}
 .ws-order-page .ws-workflow-panel{position:static!important;margin-top:0}
 .ws-order-page .ws-tabs{flex-wrap:wrap}
}
.ws-order-filters{position:static;width:100%;z-index:auto;gap:8px}.ws-order-filters select{display:block;max-width:320px;width:auto}.ws-order-filters select[name=city]{display:none}@media(min-width:701px){.ws-order-filters input{position:absolute;top:10px;left:28px;width:420px;z-index:25;flex:none}}@media(min-width:701px) and (max-width:1200px){.ws-order-filters input{width:340px}}@media(max-width:700px){.ws-order-filters input{position:static;width:100%;flex-basis:100%;min-height:44px}.ws-order-filters select{flex:1;min-width:120px;max-width:100%;min-height:44px}}

/* Business project switch stays visible in every workspace section. */
#crm-project{max-width:220px;font-weight:700;min-height:36px}
.workspace[data-modern=true] .main>header .ws-header-context:has(#crm-project){display:flex!important}
@media(max-width:767px){
 .workspace[data-modern=true] .main>header .ws-header-context:has(#crm-project){position:absolute;top:16px;right:16px;margin:0;max-width:190px;width:calc(100% - 150px)}
 .workspace[data-modern=true] .ws-header-context #crm-project{display:block!important;width:100%;max-width:100%;font-size:11px}
 .workspace[data-modern=true] .ws-header-context #workspace-city,.workspace[data-modern=true] .ws-header-context .ws-system-status{display:none!important}
}

/* Persistent handoff actions fit both messenger and order card on narrow screens. */
.chat-human-request,.ws-human-request{min-width:0;overflow-wrap:anywhere;flex:none}
.chat-human-request{margin:8px 12px;padding:10px 12px}
.chat-human-request p,.ws-human-request p{margin:6px 0}
.chat-human-request small,.ws-human-request small{display:block;margin-bottom:8px}
.chat-human-request button,.ws-human-request button{white-space:normal;max-width:100%;height:auto}
.ws-human-request{margin:12px 20px}
.ws-order-page>.ws-card-header{height:auto}
.ws-order-page>.ws-panel{margin:12px 20px}.ws-handoff-entry{padding:12px 0;border-top:1px solid #e6e8ee}.ws-handoff-entry p{margin:6px 0}.ws-handoff-entry details p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:760px){.ws-order-page>.ws-panel{margin:10px 12px}}
.ws-card-header>.ws-card-identity{white-space:normal;overflow-wrap:anywhere}
.ws-order-review{margin:12px 20px}
@media(max-width:760px){.ws-order-review{margin:10px 12px}}
@media(max-width:760px){.chat-human-request{margin:6px 8px;font-size:12px}.ws-human-request{margin:10px 12px}}

@media(max-width:700px){.main>header #refresh{display:none}.main>header .header-actions{flex-shrink:0;min-width:0}.main>header .ws-header-context{min-width:0}}

.lead-readonly-facts{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,2fr);gap:12px 16px;margin:0 0 20px}.lead-readonly-facts dt{color:#5b6478;font-size:13px}.lead-readonly-facts dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}#lead-readonly>button{min-height:44px}@media(max-width:700px){.lead-readonly-facts{grid-template-columns:1fr;gap:5px}.lead-readonly-facts dd{margin-bottom:12px}}


/* MMV studio theme — approved order-card direction, extended across the owner workspace.
   Design process: unslop by Damir Sokolovsky, https://github.com/heydamir/unslop (CC BY 4.0). */
:root{--ink:#202621;--ink-2:#465249;--muted:#626c64;--nav:#202622;--nav-2:#354039;--blue:#26583d;--blue-2:#edf3e9;--paper:#f5f6f3;--line:#dfe5dd;--line-2:#edf0e9;--wood:#26583d}
body{font-family:'Segoe UI',system-ui,sans-serif;background:#f5f6f3;color:#202621}
.workspace{color:#202621;background:#f5f6f3}.workspace .main{background:#f5f6f3}.workspace .rail{background:#202622;color:#d5ddd5}.workspace .brand{font-weight:600;letter-spacing:-1px}.workspace .brand span{color:#aeb9ad}.workspace .rail nav button{color:#d5ddd5;font-weight:400}.workspace .rail nav button.active{background:#354039;color:white;font-weight:500}.workspace .rail nav button:hover{background:#303a32}.workspace .rail nav button b{background:#e1e8d7;color:#273e2b;font-weight:500}.workspace .rail-profile strong{font-weight:500}.workspace .rail-profile small{color:#aeb9ad}.workspace .rail-profile .ws-avatar{background:#3b5540}.workspace .ws-more summary{color:#c0cabb}.workspace .main>header{background:#fff;border-color:#dfe5dd}.workspace .main>header .search-trigger{background:#eef1eb;color:#626c64}.workspace .main>header .header-actions{gap:12px}.workspace .main>header .quiet{color:#626c64}.workspace .message-alert-toggle{color:#626c64;display:inline-flex;align-items:center;justify-content:center;min-width:36px}.message-alert-toggle svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.5;fill:none}.message-alert-toggle[aria-pressed=false]{opacity:.5}.workspace .ws-system-status{color:#626c64}
.workspace :is(h1,h2,h3,h4){color:#202621;font-weight:500}.workspace :is(.ws-heading,.ws-orders-heading,.ws-calendar-heading) h1{font-size:28px;line-height:1.2;font-weight:500;letter-spacing:-.3px}.workspace :is(.ws-heading,.page-heading) p{color:#626c64;line-height:1.6}.workspace :is(.ws-panel-head h2,.ws-executor h3,.ws-order-summary h2){font-weight:500}.workspace :is(.muted,.quiet,.ws-panel-head p){color:#626c64}.workspace .ws-body{gap:20px}.workspace .ws-stack{gap:16px}
.workspace button{font-weight:500;border-radius:8px}.workspace .primary{background:#26583d;border-color:#26583d;color:#fff;box-shadow:none;font-weight:500}.workspace .primary:hover{background:#1e4630;border-color:#1e4630}.workspace .secondary{border-color:#d7dfd3;background:#fff;color:#354339;font-weight:500}.workspace .secondary:hover{background:#eef3ea}.workspace button:disabled{opacity:.55;cursor:default}.workspace :is(button,input,select,textarea,summary):focus-visible{outline:2px solid #26583d;outline-offset:3px}.workspace :is(input,select,textarea){border-color:#d7dfd3;border-radius:8px;accent-color:#26583d;color:#202621}.workspace :is(input,textarea)::placeholder{color:#727b70}.workspace input[type=checkbox]{accent-color:#26583d}.workspace input:disabled,.workspace select:disabled,.workspace textarea:disabled{background:#f3f5ef;color:#626c64}.workspace :is(.surface,.ws-panel,.ws-table-scroll,.ws-order-summary,.ws-executor,.cost-panel){background:white;border-color:#dfe5dd;border-radius:12px;box-shadow:none}.workspace .ws-panel-head{padding-top:20px;padding-bottom:16px}.workspace .ws-panel-head p{line-height:1.6}.workspace .ws-panel-head h2{font-size:16px}
.workspace .ws-tiles{gap:16px}.workspace .ws-tile{border:1px solid #dfe5dd;border-radius:10px;padding:20px;background:#fff;min-height:112px;color:#202621}.workspace .ws-tile>span{font-size:13px;font-weight:400;color:#626c64}.workspace .ws-tile strong{font-size:30px;font-weight:500;font-variant-numeric:tabular-nums;line-height:1.2;margin:4px 0}.workspace .ws-tile small{font-size:12px;color:#626c64}.workspace .ws-tile.red{border-left:3px solid #ad4249}.workspace .ws-tile.red small{color:#a02c36}.workspace .ws-tile:is(.blue,.purple,.amber){border-top:1px solid #dfe5dd}.workspace .ws-tile.blue{border-left:3px solid #26583d}.workspace .ws-decision{border-color:#dfe5dd;background:white;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:4px}.workspace .ws-decision h3{font-size:16px;font-weight:500;margin:8px 0 4px}.workspace .ws-decision p{color:#465249;line-height:1.6}.workspace .ws-decision .ws-actions{gap:8px;margin-top:auto}.workspace .ws-decision .ws-between small{color:#626c64}.workspace .ws-decisions{gap:16px}.workspace .ws-client{color:#202621;font-weight:500}.workspace .ws-client:hover{color:#26583d}.workspace .ws-client .lead-number{color:#52694e;background:#edf3e9}.workspace .lead-source{color:#626c64;background:#eff2ec}.workspace .ws-avatar{background:#e7eee2;color:#36573b;font-weight:500}
.workspace .ws-tag{background:#eef1eb;color:#465249;font-weight:500;border-radius:4px;font-size:11px}.workspace .ws-tag:is(.green,.completed,.deposit){background:#edf5ea;color:#35603d}.workspace .ws-tag:is(.amber,.planned){background:#f7f1e2;color:#795d24}.workspace .ws-tag:is(.red,.cancelled){background:#faecec;color:#9e333a}.workspace .ws-tag:is(.blue,.approval,.installation){background:#e9f0e5;color:#345b3c}.workspace .ws-tag:is(.purple,.measure){background:#f0edf5;color:#66517e}.workspace .ws-tag:is(.approval,.installation):before{background:#35603d}.workspace .ws-tag.measure:before{background:#78648f}
.workspace .ws-table{color:#202621;font-variant-numeric:tabular-nums}.workspace .ws-table th{background:#fafbf8;color:#626c64;font-weight:400;border-color:#e6eae1;padding-top:12px;padding-bottom:12px}.workspace .ws-table td{color:#354339;border-color:#edf0e9;padding-top:12px;padding-bottom:12px}.workspace .ws-table td small{color:#626c64}.workspace .ws-table tbody tr:hover{background:#f5f8f1}.workspace .ws-table tr.is-selected,.workspace [data-order].is-selected{background:#edf3e9}.workspace .ws-table input[type=checkbox]{accent-color:#26583d}.workspace .ws-orders-layout .ws-table th{font-weight:400}.workspace .ws-orders-layout .ws-table .ws-client{font-weight:500;color:#202621}.workspace .ws-order-summary{padding:20px}.workspace .ws-order-summary h2{font-size:22px;font-weight:500;color:#202621}.workspace .ws-order-summary .ws-definition dd{color:#202621}.workspace .ws-next-box{background:#f3f5ed;border:1px solid #e1e7d8;color:#354339}.workspace .ws-stage-tabs{border-color:#dfe5dd}.workspace .ws-stage-tabs button{font-weight:400;color:#626c64}.workspace .ws-stage-tabs button.selected{background:#e9f0e5;color:#26583d}.workspace .ws-stage-tabs button.selected strong{color:#26583d}.workspace .ws-tabs button.selected{background:#e9f0e5;color:#26583d}.workspace .ws-tabs button{font-weight:500}
.workspace .ws-cal-date{background:white;color:#202621;border-color:#e8ece4;font-weight:500}.workspace .ws-cal-date.today{background:#edf3e9;color:#26583d}.workspace .ws-cal-owner{color:#202621;border-color:#e8ece4}.workspace .ws-cal-owner strong{font-weight:500}.workspace .ws-cal-cell{border-color:#e8ece4}.workspace .ws-cal-cell.today{background:#f7faf4}.workspace .ws-cal-cell.off{background:#f0f2ed;color:#747e70}.workspace .ws-cal-event{border-color:#e2e7dd;border-radius:6px;background:white;color:#202621}.workspace .ws-cal-event strong{font-weight:500}.workspace .ws-cal-event.selected{outline-color:#26583d}.workspace .ws-calendar-tools .selected{background:#26583d;color:#fff;border-color:#26583d}.workspace .ws-calendar-hint{color:#626c64}.workspace .ws-calendar-matrix{border-color:#dfe5dd;border-radius:12px}.workspace .ws-cal-corner{color:#626c64;background:white}
.workspace .ws-executor-name strong{font-weight:500;color:#202621}.workspace .ws-executor-stats strong{font-weight:500;font-variant-numeric:tabular-nums}.workspace .ws-executor-performance strong{font-weight:500}.workspace .ws-city-access{border-color:#dfe5dd;color:#354339}.workspace .ws-city-access small{color:#626c64}.workspace .ws-executor-status{font-weight:500}.workspace .ws-report-insight{border-color:#dfe5dd;border-radius:10px;background:white;padding:20px}.workspace .ws-report-insight strong{font-weight:500}.workspace .ws-report-insight>small{font-weight:500;letter-spacing:0;text-transform:none}.workspace .ws-report-insight>small:first-letter{text-transform:uppercase}.workspace .ws-report-insight p{color:#626c64;line-height:1.6}.workspace .ws-funnel-segment{background:#35603d}.workspace .ws-funnel-segment.current{background:#a7b69d}.workspace .ws-funnel-segment.dropped{background:#d7dcd2}.workspace .ws-funnel-label strong{font-weight:500}.workspace .ws-funnel-counts{color:#626c64}.workspace .ws-funnel-track{background:#f1f4ed;border-radius:3px}.workspace .ws-speed-row i,.workspace .ws-loss-row i{background:#35603d}.workspace .ws-report-dimensions{background:#eef1eb;border-radius:8px;padding:4px}.workspace .ws-report-dimensions button{color:#626c64;font-weight:400;border-radius:6px}.workspace .ws-report-dimensions button.selected{background:white;color:#26583d;box-shadow:0 1px 3px #1c321112}
.workspace .ws-rule-callout{background:#f1f5ed;border-color:#a3b59a;color:#354339;border-width:1px;border-left:3px solid #35603d}.workspace .ws-rule-callout strong{font-weight:500}.workspace .ws-rule-line{line-height:1.6;color:#465249}.workspace .ws-rule-line input{background:white}.workspace .ws-rule-divider{border-color:#e4e9de}.workspace .ws-policy-grid{gap:20px}.workspace .ws-policy-grid .ws-panel{border-color:#dfe5dd}.workspace .ws-policy-save{border-color:#dfe5dd;background:#f5f6f3}.workspace .ws-policy-team-member strong{font-weight:500}.workspace .ws-system-row{border-color:#edf0e9;color:#465249}.workspace .ws-language-tabs{background:#eef1eb}.workspace .ws-language-tabs .selected{background:white;color:#26583d}.workspace .ws-workdays button.selected{background:#26583d;color:white;border-color:#26583d}.workspace .ws-rules-form :is(summary,a){color:#26583d}
.workspace .cost-page h1{font-size:28px;font-weight:500;letter-spacing:-.3px}.workspace .cost-panel{border-color:#dfe5dd;border-radius:12px;box-shadow:none}.workspace .cost-result dt{color:#626c64}.workspace .cost-result dd{color:#202621;font-weight:500;font-variant-numeric:tabular-nums}.workspace .cost-result h2{font-weight:500}.workspace .cost-result dl{gap:0;align-items:baseline}.workspace .cost-result dt,.workspace .cost-result dd{padding:12px 0;border-bottom:1px solid #edf0e9}.workspace .cost-panel blockquote{border-color:#35603d;background:#f1f5ed}.workspace .cost-panel a{color:#26583d}.workspace .cost-line{border-color:#dfe5dd;background:#fafbf8}.workspace .cost-line legend{color:#465249;font-weight:500}.workspace .cost-tabs{gap:4px;padding:4px;background:#e9ede6;border-radius:8px;width:fit-content;max-width:100%;margin:20px 0}.workspace .cost-tabs button{border:0;background:transparent;color:#626c64;font-weight:500;min-height:40px}.workspace .cost-tabs button.selected,.workspace .cost-tabs button[aria-selected=true],.workspace .cost-tabs button.primary{background:#fff;color:#26583d;box-shadow:0 1px 3px #182b1410}.workspace .cost-form label{font-size:13px;color:#465249}.workspace .cost-form :is(input,select,textarea){min-height:40px;background:#fff;border-color:#d7dfd3}.workspace .cost-form textarea{min-height:96px}.workspace .cost-blockers{background:#f8f2e4;color:#795d24}
.ws-dialog,.cost-dialog,dialog#lead-modal,dialog#palette{color:#202621;border-color:#dfe5dd;border-radius:12px;font-family:'Segoe UI',system-ui,sans-serif}.ws-dialog :is(h1,h2,h3),.cost-dialog :is(h1,h2,h3){font-weight:500}.ws-dialog .primary,.cost-dialog .primary{background:#26583d;border-color:#26583d;font-weight:500}.ws-dialog :is(input,select,textarea),.cost-dialog :is(input,select,textarea){border-color:#d7dfd3;accent-color:#26583d}.ws-dialog::backdrop,.cost-dialog::backdrop{background:#20262266}#toast{background:#263d2b;color:white;border-radius:8px}
@media(max-width:700px){.workspace .rail{background:white;border-top:1px solid #dfe5dd}.workspace .rail nav button{color:#626c64;border-radius:0;font-size:10px;min-height:52px}.workspace .rail nav button.active{background:transparent;color:#26583d;font-weight:500}.workspace .rail nav button:hover{background:#f0f4ec}.workspace .main>header{background:#202622;color:white}.workspace .main>header :is(.brand,.quiet){color:white}.workspace .main>header .ws-header-context{background:#202622}.workspace .main>header .header-actions{gap:8px}.workspace :is(.ws-heading,.ws-orders-heading,.ws-calendar-heading) h1{font-size:24px;letter-spacing:0}.workspace .ws-tiles{gap:12px}.workspace .ws-tile{padding:16px;min-height:104px}.workspace .ws-tile strong{font-size:28px}.workspace .ws-decision{padding:16px}.workspace .ws-decision h3{font-size:15px}.workspace .ws-panel-head{padding-top:16px;padding-bottom:12px}.workspace .ws-actions{gap:8px}.workspace .ws-actions button{min-height:40px}.workspace .ws-report-insight{padding:16px}.workspace .ws-policy-grid{gap:16px}.workspace .ws-policy-save{padding-bottom:16px}.workspace .cost-page h1{font-size:24px}.workspace .cost-tabs{width:100%;gap:4px}.workspace .cost-tabs button{flex:1 1 30%;padding:8px;min-height:44px;font-size:12px}.workspace .cost-panel{padding:16px}.workspace .cost-form :is(input,select,textarea){font-size:16px;min-height:44px}.workspace .ws-rules-form :is(input,select,button){min-height:40px}.workspace .ws-rule-line{flex-wrap:wrap}.workspace .ws-order-summary h2{font-size:20px}}
/* Tablet headers keep project/city selectors and account actions inside the available column. */
@media(min-width:701px) and (max-width:1100px){.workspace .main>header{height:auto;flex-wrap:wrap}.workspace .main>header .search-trigger{flex:1 1 180px;min-width:0}.workspace .main>header .ws-header-context{min-width:0;flex-wrap:wrap}.workspace .main>header .header-actions{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.workspace *{scroll-behavior:auto!important;transition:none!important}}

.workspace .ws-chart-legend .advanced:before{background:#35603d}.workspace .ws-chart-legend .current:before{background:#a7b69d}.workspace .ws-chart-legend .dropped:before{background:#d7dcd2}.workspace .ws-small-bar{background:#35603d}.workspace .ws-small-bar-track{background:#f0f3ec}.workspace .ws-report-insight.blue>small{color:#26583d}.workspace .ws-report-insight h2{font-weight:500}

.workspace .rail-profile .ws-avatar{color:#f2f6ed}.workspace .ws-selected-rule{background:#f1f5ed;border:1px solid #a3b59a;border-left:3px solid #35603d;color:#354339}.workspace .ws-selected-rule strong{font-weight:500}.workspace .ws-weekday-picker input:checked+span{background:#26583d;border-color:#26583d;color:white}.workspace .ws-rules-form input[type=checkbox]{accent-color:#26583d}.workspace .ws-cal-cell.unavailable{background:#f0f2ed;color:#747e70}@media(max-width:700px){.workspace[data-modern=true] .main>header{background:#202622;color:white}.workspace[data-modern=true] .main>header :is(h1,h2,strong,#page-name,.breadcrumb,.ws-header-context){color:#f5f8f2}.workspace[data-modern=true] .main>header select{color:#202621;background:#fff}.workspace[data-modern=true] .main>header .quiet{color:#f5f8f2}}

.workspace .messenger-sidebar,.workspace .messenger-conversation{background:white;border-color:#dfe5dd}.workspace .messenger-search{border-color:#dfe5dd;background:#fafbf8}.workspace .messenger-contact{border-color:#edf0e9;color:#202621}.workspace .messenger-contact.active,.workspace .messenger-contact[aria-selected=true]{background:#edf3e9;border-left-color:#26583d}.workspace .messenger-contact:hover{background:#f4f7f0}.workspace .messenger-client{background:#e7eee2;color:#36573b}.workspace .chat-heading{background:#fff;border-color:#dfe5dd;color:#202621}.workspace .chat-context{background:#f6f8f2;color:#626c64;border-color:#dfe5dd}.workspace .chat-history{background:#f5f6f3}.workspace .message{border-color:#dfe5dd;background:#fff;color:#202621;border-radius:0 12px 12px}.workspace .message-bot{background:#edf3e9;border-color:#dfe8d8;border-radius:12px 0 12px 12px}.workspace .message-team{background:#eff1ec;border-color:#dfe5dd}.workspace .message-meta,.workspace .chat-date{color:#626c64}.workspace .chat-order,.workspace .chat-order-facts{border-color:#dfe5dd;background:#fff}.workspace .chat-compose-actions{border-color:#dfe5dd}.workspace .message-alert{border-color:#dfe5dd;border-left-color:#26583d;background:#fff;color:#202621}@media(max-width:700px){.workspace .cost-layout .cost-result{order:-1}.workspace .messenger-sidebar,.workspace .messenger-conversation{border-radius:10px}}

.workspace .ws-calendar-heading button.selected{background:#26583d;border-color:#26583d;color:white}.workspace .ws-policy-grid input[type=checkbox]{accent-color:#26583d}

/* Native WebKit selects retain intrinsic width inside a shrinking flex row.
   Keep project/city filters on a full-width second row on narrow workspaces. */
@media(max-width:700px){
 .workspace:not([data-modern=true]) .main>header{display:grid;grid-template-columns:minmax(0,1fr) auto;height:auto}
 .workspace:not([data-modern=true]) .main>header .search-trigger{width:100%;min-width:0}
 .workspace:not([data-modern=true]) .main>header .header-actions{grid-column:2;grid-row:1}
 .workspace:not([data-modern=true]) .main>header .ws-header-context{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;margin:0;gap:8px}
 .workspace:not([data-modern=true]) .main>header .ws-header-context select{width:100%;min-width:0;max-width:100%}
}
/* Orders: compact readable filters and a table-first desktop workspace. */
.workspace .ws-stage-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:14px;background:transparent;border:0;border-radius:0}
.workspace .ws-stage-tabs button{flex:0 1 auto;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:14px;min-height:42px;padding:10px 14px;border:1px solid #dce3d9;border-radius:10px;background:#fff}
.workspace .ws-stage-tabs button>span{white-space:normal;line-height:1.35;font-size:13px;font-weight:500}
.workspace .ws-stage-tabs button>span::before{display:none}
.workspace .ws-stage-tabs button strong{font-size:13px;min-width:22px;text-align:center;background:#f0f3ec;border-radius:6px;padding:2px 5px;font-weight:650}
.workspace .ws-stage-tabs button.selected{background:#24563e;color:#fff;border-color:#24563e}
.workspace .ws-stage-tabs button.selected strong{background:#ffffff24;color:#fff}
.workspace .ws-orders-layout{grid-template-columns:minmax(0,1fr) 310px;gap:20px}
.workspace .ws-orders-layout .ws-table th:nth-child(2){width:29%}
.workspace .ws-orders-layout .ws-table th:nth-child(3){width:18%}
.workspace .ws-orders-layout .ws-table th:nth-child(4){width:27%}
.workspace .ws-orders-layout .ws-table th:nth-child(5){width:16%}
.workspace .ws-orders-layout .ws-table th:last-child{width:10%}
.workspace .ws-orders-layout .ws-table .ws-client{white-space:normal;max-width:none;overflow:visible;text-overflow:clip;line-height:1.45;font-weight:600;display:block}
.workspace .ws-orders-layout .ws-table td{padding:16px 12px;overflow-wrap:anywhere}
.workspace .ws-orders-layout .ws-table td small{white-space:normal;line-height:1.5}
.workspace .ws-orders-layout .ws-table .ws-tag{white-space:normal;line-height:1.4}
.workspace .ws-order-summary{position:sticky;top:20px;padding:20px;border-radius:16px}
.workspace .ws-order-summary h2{font-size:20px;line-height:1.4;overflow-wrap:anywhere}
.workspace .ws-order-summary .ws-definition{gap:14px}
.workspace .ws-order-summary .ws-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.workspace .ws-order-summary .ws-actions button{font-size:13px;min-height:42px;padding:10px;white-space:normal}
.workspace .ws-orders-heading{gap:20px;flex-wrap:wrap}
.workspace .ws-order-filters{margin-top:0;gap:10px;flex-wrap:wrap}
@media(max-width:1250px){.workspace .ws-orders-layout{grid-template-columns:minmax(0,1fr)}.workspace .ws-orders-layout>.ws-order-summary{display:none}}
@media(max-width:700px){.workspace .ws-stage-tabs{flex-wrap:nowrap;overflow-x:auto;padding:8px 0;gap:8px}.workspace .ws-stage-tabs button{flex:0 0 auto;max-width:230px}.workspace .ws-orders-heading .ws-actions{flex-wrap:wrap}.workspace .ws-orders-layout{display:block}}

.ws-whatsapp-linked{display:inline-block;color:#1f6b45;font-weight:600}
/* Orders page top: one tool row and one project row, so the list starts near the top on a phone. */
.ws-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px}
.workspace .ws-toolbar .ws-chip,.workspace .ws-tools>summary{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 14px;border:1px solid #D6D3C9;border-radius:999px;background:#fff;color:#1D1F1C;font:600 13px/1.2 inherit;cursor:pointer;white-space:nowrap}
.workspace .ws-toolbar .ws-chip.attention{background:#FBF0D9;border-color:#E9C987;color:#7A4B00}
.ws-tools{position:relative}
.ws-tools>summary{list-style:none}.ws-tools>summary::-webkit-details-marker{display:none}
.ws-tools>summary:after{content:'';width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg);margin-left:2px}
.ws-tools[open]>summary{border-color:#1F4D36;color:#1F4D36}
.ws-tools-menu{position:absolute;z-index:30;top:calc(100% + 6px);left:0;min-width:260px;display:grid;gap:2px;padding:6px;background:#fff;border:1px solid #E3E1D9;border-radius:12px;box-shadow:0 12px 32px #1d1f1c24}
.workspace .ws-tools-menu button{justify-content:flex-start;text-align:left;min-height:42px;padding:0 12px;border:0;border-radius:8px;background:none;color:#1D1F1C;font-weight:600;width:100%}
.workspace .ws-tools-menu button:hover{background:#F4F3EE}
.ws-project-scope{display:flex;gap:6px;margin:0 0 14px;overflow-x:auto;scrollbar-width:none;padding:1px}
.ws-project-scope::-webkit-scrollbar{display:none}
.ws-project-scope a{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 6px 0 14px;border:1px solid #D6D3C9;border-radius:999px;background:#fff;color:#1D1F1C;text-decoration:none;white-space:nowrap;font-size:13px;font-weight:600}
.ws-project-scope a b{min-width:26px;padding:2px 8px;border-radius:999px;background:#F0EEE7;font-size:12px;text-align:center}
.ws-project-scope a.selected{background:#1F4D36;border-color:#1F4D36;color:#fff}
.ws-project-scope a.selected b{background:#ffffff2e}
@media(max-width:700px){
 .ws-orders-heading>h1{display:none}
 .ws-orders-heading{min-height:0}
 .ws-toolbar{position:relative;flex-wrap:nowrap;margin-bottom:10px}
 .ws-tools{position:static}
 .ws-tools-menu{left:0;right:0;min-width:0}
 .ws-project-scope{margin:0 0 10px}
}
/* Orders on a phone: cards instead of a sideways-scrolling table, tighter controls. */
@media(max-width:700px){
 .workspace .ws-orders-layout .ws-table-scroll{overflow:visible;border:0;background:none;box-shadow:none;padding:0}
 .workspace .ws-orders-layout .ws-table{display:block;min-width:0;table-layout:auto;border:0;background:none}
 .workspace .ws-orders-layout .ws-table thead{display:none}
 .workspace .ws-orders-layout .ws-table tbody{display:grid;gap:10px}
 .workspace .ws-orders-layout .ws-table tr{display:grid;grid-template-columns:24px minmax(0,1fr) auto;grid-template-areas:"check client sum" "check stage stage" "check next next";align-items:start;gap:8px 12px;padding:14px;background:#fff;border:1px solid #E3E1D9;border-radius:14px}
 .workspace .ws-orders-layout .ws-table tr.is-selected{background:#fff;border-color:#E3E1D9}
 .workspace .ws-orders-layout .ws-table tr:has(td[colspan]){display:block}
 .workspace .ws-orders-layout .ws-table td{display:block;width:auto!important;padding:0!important;border:0!important;text-align:left;white-space:normal}
 .workspace .ws-orders-layout .ws-table td:nth-child(1){grid-area:check;padding-top:2px!important}
 .workspace .ws-orders-layout .ws-table td:nth-child(2){grid-area:client}
 .workspace .ws-orders-layout .ws-table td:nth-child(3){grid-area:stage}
 .workspace .ws-orders-layout .ws-table td:nth-child(4){grid-area:next;font-size:13px}
 .workspace .ws-orders-layout .ws-table td:nth-child(5){display:none}
 .workspace .ws-orders-layout .ws-table td:nth-child(6){grid-area:sum;text-align:right;font-weight:700}
 .workspace .ws-orders-layout .ws-order-summary{display:none}
 .workspace .ws-stage-tabs>button{min-height:40px;padding:0 12px;font-size:13px;border-radius:999px}
 .workspace .ws-order-filters :is(input,select){min-height:44px}
}
@media(max-width:700px){.workspace .ws-body{gap:12px}.workspace .ws-toolbar,.workspace .ws-project-scope{margin:0}}
.workspace nav.ws-project-scope{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;width:auto;padding:1px;border:0;background:none;box-shadow:none}
.workspace nav.ws-project-scope>a{flex:none;width:auto;justify-content:flex-start}
/* "Ще" menu on phones: light bottom sheet in the CRM palette, 2-column tiles, no duplicates of the bottom bar. */
.rail nav .ws-more>.ws-more-extra{display:none}
@media(max-width:700px){
 .workspace .rail nav .ws-more[open]{position:fixed;left:8px;right:8px;bottom:76px;max-height:calc(100vh - 150px);overflow:auto;z-index:100;margin:0;padding:6px 8px 12px;display:block!important;background:#fff;color:#202621;border:1px solid #dfe3dc;border-radius:18px;box-shadow:0 0 0 100vmax #1a1f1b59,0 12px 40px #1a1f1b33}
 .workspace .rail nav .ws-more[open]>summary{display:flex;margin-bottom:6px;align-items:center;justify-content:space-between;list-style:none;min-height:44px;padding:4px 6px;font-size:0;opacity:1;color:#202621}
 .workspace .rail nav .ws-more[open]>summary::-webkit-details-marker{display:none}
 .workspace .rail nav .ws-more[open]>summary::before{content:'Усі розділи';font-size:16px;font-weight:600}
 .workspace .rail nav .ws-more[open]>summary::after{content:'✕';font-size:16px;color:#5b6478;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#f1f3ef}
 .workspace .rail nav .ws-more[open]>button{position:relative;display:inline-flex!important;vertical-align:top;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;width:calc(50% - 8px);height:auto;min-height:56px;margin:0 4px 8px;padding:10px 12px;border:0;border-radius:12px;background:#f5f6f3;color:#202621!important;font-size:14px;font-weight:500;line-height:1.25;text-align:left;opacity:1;box-shadow:none}
 .workspace .rail nav .ws-more[open]>button.active{background:#e1e8d7;color:#273e2b!important}
 .workspace .rail nav .ws-more[open]>button>span{flex:none;width:20px;display:grid;place-items:center;color:#273e2b;font-size:17px}
 .workspace .rail nav .ws-more[open]>button b{position:static;margin-left:auto;transform:none;font-size:12px;line-height:20px;min-width:22px;padding:0 6px;background:#273e2b;color:#fff}
 .workspace .rail nav .ws-more[open]>button[hidden],.workspace .rail nav .ws-more[open]>button[data-page=dialogues],.workspace .rail nav .ws-more[open]>button[data-target=calculator]{display:none!important}
 .workspace .rail nav .ws-more[open]>.ws-more-logout{display:flex!important;width:calc(100% - 8px);margin:4px 4px 0;justify-content:center;min-height:48px;background:none;border:1px solid #e7d4d0;color:#9b2c1f!important}
}
/* Leads: the main page (2026-11-06). Desktop board; on phones one column per screen with swipe. */
.rail nav>button[data-page=leads]{order:-8}
.ws-leads-heading{align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:12px}.ws-leads-heading h1{margin:0}.ws-leads-heading p{margin:2px 0 0;font-size:13px}

.ws-lead-counters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.ws-lead-counter{display:inline-flex;align-items:center;gap:8px;min-height:36px;border:1px solid #dfe5dd;background:#fff;border-radius:999px;padding:0 14px;font-size:13px;color:#202621;white-space:nowrap;cursor:pointer}
.ws-lead-counter i{width:8px;height:8px;border-radius:50%;background:#26583d;display:inline-block}.ws-lead-counter.fresh i{background:#a61e2b}.ws-lead-counter.waiting i{background:#c48a1a}.ws-lead-counter.today i{background:#2b59d1}
.ws-lead-counter b{font-weight:800}.ws-lead-counter small{color:#626c64;font-size:12px}.ws-lead-counter .short{display:none}
.ws-lead-counter.selected{background:#eef2ec;border-color:#26583d;box-shadow:inset 0 0 0 1px #26583d}
.ws-lead-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:14px}.ws-lead-mine{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:8px;font-size:14px;min-height:40px;white-space:nowrap}.ws-lead-mine input{width:18px!important;height:18px!important;min-height:0!important;margin:0}.ws-lead-filters .ws-lead-mine{width:auto!important;max-width:none!important;flex:none!important;justify-content:flex-start;grid-template-columns:none!important;padding:0 4px}.ws-lead-mine input{flex:none!important}
.ws-lead-board{display:grid;grid-template-columns:repeat(7,minmax(250px,1fr));gap:12px;overflow-x:auto;align-items:start;padding-bottom:8px}
.ws-lead-column{display:flex;flex-direction:column;gap:8px;background:#e8ece6;border-radius:12px;padding:10px;min-width:0}.ws-lead-column.closed{background:#eceee9}
.ws-lead-colhead{padding:2px 4px 4px}.ws-lead-colrow{display:flex;align-items:center;gap:6px}.ws-lead-coltitle{flex:1;min-width:0;display:flex;flex-direction:column}
.ws-lead-coltitle h2{margin:0;font-size:12px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;display:flex;align-items:center;gap:8px}.ws-lead-coltitle h2 b{margin-left:auto;font-size:12px;background:#fff;border-radius:999px;padding:1px 8px;letter-spacing:0}
.ws-lead-colhint{font-size:11px;color:#626c64}.ws-lead-colstep,.ws-lead-colcount,.ws-lead-colfoot,.ws-lead-nav{display:none!important}
.ws-lead-cards{display:flex;flex-direction:column;gap:8px}
.ws-lead-card{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%;text-align:left;background:#fff;border:1px solid #dfe5dd;border-radius:10px;padding:12px;font:inherit;color:#202621;cursor:pointer;min-height:0;height:auto;white-space:normal}
.ws-lead-card:hover{border-color:#26583d}.ws-lead-card:focus-visible{outline:2px solid #26583d;outline-offset:2px}
.ws-lead-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ws-lead-top .lead-source{margin-left:auto;font-size:11px}
.ws-lead-stage{font-size:11px;font-weight:700;background:#eef2ec;color:#26583d;border-radius:6px;padding:2px 6px}
.ws-lead-name{font-size:14px;font-weight:800}.ws-lead-name .lead-number{margin-right:4px}
.ws-lead-chips{display:flex;flex-wrap:wrap;gap:4px}.ws-lead-product,.ws-lead-city{font-size:12px;font-weight:700;border-radius:6px;padding:2px 7px}
.ws-lead-product{background:#f1ece2;color:#4a3b1f}.ws-lead-city{background:#e7eef6;color:#1f3d63}.ws-lead-city.unknown{background:#fbe4e6;color:#a61e2b}
.ws-lead-exec{font-size:12px;font-weight:700;color:#26583d}.ws-lead-exec.none{color:#8a5a00}
.ws-lead-next{font-size:13px;line-height:1.35}.ws-lead-dates{font-size:11px;color:#626c64;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:700px){
 .ws-leads-heading>div:first-child{display:none}.ws-leads-heading{margin-bottom:8px}.ws-leads-heading .ws-actions{width:100%}.ws-leads-heading .ws-actions .primary{margin-left:auto}
 .ws-lead-counters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}
 .ws-lead-counter{flex-shrink:0}.ws-lead-counter .full,.ws-lead-counter small{display:none}.ws-lead-counter .short{display:inline}
 .ws-lead-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}.ws-lead-filters>*{flex-shrink:0}
 .ws-lead-filters input[type=search]{min-width:190px}
 .ws-lead-board{display:flex;gap:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;margin:0 -12px;padding:0;height:calc(100dvh - 97px);align-items:stretch}
 .ws-lead-column{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always;border-radius:0;padding:0;height:100%;overflow-y:auto;gap:0;background:#f5f6f3}
 .ws-lead-colhead{position:sticky;top:0;z-index:2;background:#26583d;color:#fff;padding:10px 10px 8px;box-shadow:0 2px 6px #0000001f}
 .ws-lead-nav{display:inline-flex!important;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;min-height:44px;border:0;border-radius:10px;background:#ffffff29;color:#fff;font-size:28px;line-height:1;padding:0}
 .ws-lead-nav:disabled{background:transparent;color:#ffffff4d}
 .ws-lead-coltitle{align-items:center;text-align:center}.ws-lead-colstep{display:block!important;font-size:12px;color:#cfe0d4;font-weight:600}
 .ws-lead-coltitle h2{font-size:22px;letter-spacing:0;text-transform:none;line-height:1.15;color:#fff}.ws-lead-coltitle h2 b,.ws-lead-colhint{display:none}
 .ws-lead-colcount{display:block!important;font-size:13px;font-weight:700}
 .ws-lead-colfoot{display:flex!important;align-items:center;gap:8px;font-size:11px;color:#cfe0d4;margin-top:6px}.ws-lead-colfoot>span:first-child,.ws-lead-colfoot>span:last-child{flex:1 1 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ws-lead-colfoot>span:last-child{text-align:right}
 .ws-lead-dots{display:flex;gap:4px}.ws-lead-dots i{width:6px;height:6px;border-radius:3px;background:#ffffff59}.ws-lead-dots i.on{width:16px;background:#fff}
 .ws-lead-cards{padding:10px 16px 24px;gap:10px}
 .ws-lead-card{border-radius:12px;padding:12px 14px}.ws-lead-name{font-size:15px}
}
.ws-page .ws-lead-filters .ws-lead-mine input[type=checkbox]{width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;flex:none!important;margin:0!important}
/* Leads, calmer cards (owner 2026-11-06): wider columns, fewer colours and less bold text. */
.ws-lead-board{grid-template-columns:repeat(7,minmax(350px,1fr))}
.ws-lead-stage{font-weight:600;background:#f0f2ee;color:#4d564f}
.ws-lead-name{font-weight:700}
.ws-lead-product,.ws-lead-city{font-weight:500;background:#f0f2ee;color:#3a423c}
.ws-lead-city.unknown{background:transparent;color:#a61e2b;padding-left:0}
.ws-lead-exec{font-weight:500;color:#3a423c}.ws-lead-exec.none{color:#8a5a00}
.ws-lead-next{color:#3a423c;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ws-lead-coltitle h2{font-weight:700}
.ws-lead-card .ws-lead-top .lead-source{background:none;padding:0;margin-top:0;border-radius:0;font-size:12px;line-height:1.3;color:#6b746d;font-weight:400}
/* Lead card: larger number, compact facts list (owner 2026-11-06). */
.ws-lead-name{display:flex;align-items:baseline;gap:8px;font-size:16px}.ws-lead-no{font-size:16px;font-weight:400;color:#4d564f;font-variant-numeric:tabular-nums}
.ws-lead-facts{margin:0;padding:0 0 0 18px;display:flex;flex-direction:column;gap:2px;font-size:14.5px;line-height:1.45;color:#3a423c}
.ws-lead-facts>span{display:list-item;list-style:disc;background:none;padding:0;border-radius:0;font-weight:400;font-size:14.5px;overflow-wrap:anywhere}
.ws-lead-facts .ws-lead-city.unknown{color:#a61e2b}.ws-lead-facts .ws-lead-exec.none{color:#8a5a00}
@media(max-width:700px){.ws-lead-board:not(.docked) .ws-lead-column{overflow-y:hidden}}
/* Compact column header on phones (owner 2026-11-06). */
@media(max-width:700px){
 .ws-lead-colhead{padding:6px 8px 5px}
 .ws-lead-colrow{gap:6px}
 .ws-lead-nav{width:36px!important;height:36px!important;min-height:36px!important;font-size:24px!important;border-radius:8px!important}
 .ws-lead-coltitle{display:grid!important;grid-template-columns:auto auto;justify-content:center;column-gap:8px;row-gap:0}
 .ws-lead-coltitle h2{grid-column:1/-1;font-size:18px!important;line-height:1.2!important}
 .ws-lead-colstep,.ws-lead-colcount{font-size:11.5px!important;line-height:1.3}
 .ws-lead-colstep{grid-row:2}.ws-lead-colcount{grid-row:2;font-weight:600!important;color:#cfe0d4}
 .ws-lead-colfoot{margin-top:3px!important;justify-content:center}
 .ws-lead-colfoot>span:first-child,.ws-lead-colfoot>span:last-child{display:none}
 .ws-lead-dots i{width:5px;height:5px}.ws-lead-dots i.on{width:12px}
 .ws-lead-colcount::before{content:"· ";color:#cfe0d4}
 .ws-lead-coltitle{column-gap:4px!important}
}
/* Desktop: page scrolls to the board first, then each column scrolls under a sticky header (owner 2026-11-06). */
@media(min-width:701px){
 .ws-lead-board{height:calc(100vh - var(--dock,0px) - 32px);align-items:stretch}
 .ws-lead-column{overflow-y:auto;padding-top:0;scrollbar-width:thin}
 .ws-lead-board:not(.docked) .ws-lead-column{overflow-y:hidden}
 .ws-lead-colhead{position:sticky;top:0;z-index:2;background:inherit;margin:0 -10px;padding:10px 14px 8px;border-radius:12px 12px 0 0}
}
/* Order card opens in a popup over the board, keeping the board's scroll positions (owner 2026-11-06). */
html.ws-overlay-open{overflow:hidden}
.ws-order-overlay{position:fixed;inset:0;display:block;z-index:900;overflow-y:auto;overscroll-behavior:contain;background:rgba(14,20,16,.72);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);padding:32px 40px}
.ws-order-overlay>.ws-order-page{position:relative;max-width:1500px;margin:0 auto;border-radius:16px;overflow:hidden;box-shadow:0 20px 60px #0000004d}
.ws-order-overlay .oc-card{min-height:0}
@media(max-width:700px){.ws-order-overlay{padding:0;background:#F4F3EE}.ws-order-overlay>.ws-order-page{border-radius:0;box-shadow:none}.ws-order-overlay .oc-card{min-height:100dvh}}
.ws-overlay-close,.workspace .ws-overlay-close{position:absolute!important;top:12px!important;right:12px!important;z-index:30;width:36px!important;height:36px!important;min-height:36px!important;min-width:36px!important;padding:0!important;margin:0!important;border-radius:50%!important;border:1px solid #d9ded6!important;background:#fff!important;color:#202621!important;font:400 26px/1 system-ui,sans-serif!important;display:flex!important;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 14px #00000033!important}
.workspace .ws-overlay-close:hover{background:#26583d!important;color:#fff!important;border-color:#26583d!important}
@media(max-width:700px){.workspace .ws-overlay-close{display:none!important}}
.ws-overlay-loading{position:relative;width:100%;box-sizing:border-box;max-width:1500px;margin:0 auto;min-height:60vh;border-radius:16px;background:#F4F3EE;display:flex;align-items:center;justify-content:center;font-size:15px;color:#5F625C}
@media(max-width:700px){.ws-overlay-loading{border-radius:0;min-height:100dvh}}
/* Dialogue translation settings behind a gear icon (owner 2026-11-06). */
.ws-conversation .ws-tabs{align-items:center}
.ws-conversation .ws-tabs .ws-translation-toggle{margin-left:auto;width:40px;height:40px;min-height:40px!important;min-width:40px;padding:0!important;border-radius:10px;border:1px solid transparent;background:transparent;color:#5F625C;font-size:20px;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.ws-conversation .ws-tabs .ws-translation-toggle:hover,.ws-conversation .ws-tabs .ws-translation-toggle.on{background:#eef2ec;color:#1F4D36;border-color:#dfe5dd}
.ws-conversation .ws-tabs>small{display:none}
.ws-lead-top .ws-lead-project{font-size:11px;font-weight:600;background:#f4efe4;color:#6b5a2e;border-radius:6px;padding:2px 6px}
/* Audit-2 (06.11): the page behind an open order card must not scroll with it */
body:has(.ws-order-overlay){overflow:hidden}

.ws-message .ws-delivery{display:block;font-size:11px;color:#677189;margin-top:4px;text-align:right}.ws-message .ws-delivery-failed{color:#b3261e;font-weight:700}.ws-message .ws-delivery-read{color:#1c6b42}

.ws-unread{position:relative;display:inline-block;width:26px;height:22px;margin-left:auto;vertical-align:middle;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%232b59d1' d='M12 3C6.5 3 2 6.9 2 11.6c0 2.3 1.1 4.4 2.9 5.9L4 21l4.3-1.7c1.2.3 2.4.5 3.7.5 5.5 0 10-3.9 10-8.6S17.5 3 12 3z'/></svg>") left center/22px 22px no-repeat}.ws-unread b{position:absolute;top:-7px;right:-9px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#e5332a;color:#fff;font-size:11px;font-weight:800;line-height:17px;text-align:center;box-shadow:0 0 0 2px #fff}.ws-card-identity .ws-unread{margin-left:10px}
.ws-inbox-strip{border:1px solid #f1c7c3;background:#fff7f6;border-radius:14px;padding:12px 14px;margin:0 0 14px}
.ws-inbox-strip h2{font-size:15px;margin:0 0 8px;display:flex;align-items:center;gap:8px}.ws-inbox-strip h2 b{background:#d93025;color:#fff;border-radius:999px;font-size:12px;min-width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;padding:0 7px}
.ws-inbox-items{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}
.ws-inbox-item{flex:0 0 auto;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:2px 10px;align-items:center;text-align:left;border:1px solid #ead8d6;background:#fff;border-radius:10px;padding:8px 10px;cursor:pointer;max-width:280px;font:inherit}
.ws-inbox-item:hover,.ws-inbox-item:focus-visible{border-color:#d93025;outline:none}.ws-inbox-who{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ws-inbox-meta{font-size:12px;color:#5B6478;grid-column:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ws-inbox-item .ws-unread{grid-column:2;grid-row:1/3;margin:0}
.ws-colhead-unread{margin-left:6px;font-size:12px;font-weight:700;color:#b3261e;background:#fdecea;border-radius:999px;padding:2px 7px;white-space:nowrap}
@media(max-width:700px){.ws-inbox-strip{margin:0 0 10px;padding:10px}.ws-inbox-item{max-width:240px}}
.ws-message.ws-first-unread{position:relative;margin-top:30px}.ws-message.ws-first-unread::before{content:"Нові повідомлення";position:absolute;left:0;right:0;top:-24px;font-size:12px;font-weight:700;color:#b3261e;border-top:1px solid #f1c7c3;padding-top:4px;text-align:center}
/* Owner 09.11: order numbers without leading zeros, on a green badge in the card, on the board and in lists */
.ws-lead-no,.lead-number{display:inline-block;padding:1px 7px;border-radius:6px;background:#26583d;color:#fff;font-weight:700;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap;margin-right:6px;vertical-align:baseline}
.ws-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ws-toolbar-new{margin-left:auto;white-space:nowrap}
@media(max-width:700px){.ws-toolbar-new{min-width:44px;min-height:40px;padding:0 12px;font-size:20px;line-height:1;border-radius:10px}.ws-toolbar-new .ws-new-label{display:none}}
/* Owner 09.11: partner shell — the full partner menu in the rail on a computer; on a phone four tabs and the rest under «Ще» */
body.partner-shell .ws-header-context select,body.partner-shell .ws-system-status{display:none!important}
@media(min-width:701px){body.partner-shell .ws-more{display:none}}
@media(max-width:700px){body.partner-shell .rail nav>button[data-page^="partner_"]:not([data-page="partner_tasks"]){display:none}}
body.partner-shell .workspace[data-modern] .ws-header-context #crm-project,body.partner-shell .workspace[data-modern] .main>header .ws-header-context{display:none!important}
/* Owner 09.11: partner pages in the team shell */
.partner-panel{margin:0 0 14px}.partner-panel .panel-title h2{font-size:17px}.partner-panel p{margin:6px 0}
.partner-terms-text{white-space:pre-wrap;font:inherit;font-size:13px;background:#f7f8f6;border:1px solid #e2e6e0;border-radius:10px;padding:12px;max-height:340px;overflow:auto}
.partner-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}.partner-accept{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.partner-form{display:flex;flex-direction:column;gap:10px;max-width:520px;margin-top:10px}.partner-form label{display:flex;flex-direction:column;gap:4px;font-size:13px}
.partner-form label.check,.partner-panel label.check{flex-direction:row;align-items:flex-start;gap:8px}
.partner-form input{border:1px solid #D5D9E2;border-radius:8px;padding:9px;font:inherit}
.partner-party{display:grid;grid-template-columns:minmax(140px,max-content) 1fr;gap:4px 14px;font-size:13px}.partner-party dt{color:#5B6478}.partner-party dd{margin:0}
.partner-party-box{border:1px solid #e2e6e0;border-radius:10px;padding:12px;margin:12px 0}
.partner-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.partner-contract-text{max-height:420px;overflow:auto;border:1px solid #e2e6e0;border-radius:10px;padding:12px;margin-bottom:12px}
.partner-signed{background:#f3faf5;border:1px solid #bcd8c6;border-radius:10px;padding:12px}
@media(max-width:700px){.partner-party{grid-template-columns:1fr}.partner-party dt{margin-top:6px}}
body.partner-setup .rail nav,body.partner-setup .ws-more,body.partner-setup .ws-mobile-menu{visibility:hidden}
.partner-steps{display:flex;flex-wrap:wrap;gap:6px 14px;list-style:none;padding:0;margin:0 0 14px;font-size:13px;color:#5B6478}.partner-steps li.current{font-weight:700;color:#26583d}.partner-steps li.done{color:#26583d}
.partner-form-wide{max-width:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.partner-form-wide>p,.partner-form-wide>button{grid-column:1/-1;justify-self:start}
.partner-channels{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:10px 0}.partner-channel{border:1px solid #e2e6e0;border-radius:10px;padding:12px}.partner-channel h3{font-size:15px;margin:0 0 8px}
.partner-account{margin-top:14px}
body.partner-setup .ws-mobile-more,body.partner-setup .ws-header-context,body.partner-setup .rail{display:none!important}
.ws-tab-unread{margin-left:6px;width:22px;height:18px;background-size:16px 16px}.oc-tabs [data-tab=dialog],.oc-mobile-tabs [data-tab=dialog]{display:inline-flex;align-items:center;gap:2px}
