:root{--navy:#17383b;--teal:#0f7771;--teal-2:#1d9289;--mint:#e8f5f2;--bg:#f4f7f6;--ink:#183334;--muted:#6d8382;--line:#dce7e5;--green:#13906e;--amber:#c4862f;--red:#c75c56;--blue:#2f7890;--card:#fff;--radius:17px;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-width:1180px;background:var(--bg)}button,select,input{font:inherit;color:inherit}button{cursor:pointer}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:298px;padding:24px 20px 18px;background:linear-gradient(180deg,#153f42 0%,#0f3337 100%);color:#fff;overflow-y:auto;z-index:10}.brand{display:flex;align-items:center;gap:12px;margin:0 4px 25px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#3bb4a7,#168277);font-weight:800;font-size:22px;box-shadow:0 9px 20px #06292d80}.brand b{display:block;letter-spacing:.16em;font-size:17px}.brand small{display:block;color:#a8c7c5;margin-top:3px;font-size:11px}.sidebar-block{padding:16px;margin-bottom:14px;border-radius:16px;background:#ffffff0d;border:1px solid #ffffff17}.block-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.block-title span{font-weight:700;font-size:14px}.block-title small{color:#a6c8c5;font-size:11px}.period-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:4px;background:#092d3180;border-radius:11px}.period-tab{height:33px;border:0;border-radius:8px;color:#b9d2d0;background:transparent;font-size:12px;font-weight:600}.period-tab.active{background:#fff;color:#126c68;box-shadow:0 3px 10px #001a1e4d}.select-label{display:block;margin:13px 0 6px;color:#9fc0be;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.control-select{width:100%;height:39px;padding:0 10px;border:1px solid #ffffff1f;border-radius:9px;color:#fff;background:#0a2d31;outline:0}.custom-period{width:100%;height:39px;margin-top:9px;border:1px solid #52b5ad80;border-radius:9px;color:#d8efed;background:#1a746f4d;font-size:12px;font-weight:600}.custom-fields{margin-top:10px}.custom-fields label{display:grid;grid-template-columns:18px 1fr;align-items:center;margin:5px 0;color:#b8d1cf;font-size:11px}.custom-fields input{height:32px;border:1px solid #ffffff22;border-radius:7px;color:#fff;background:#092d31;padding:0 7px}.custom-fields button{width:100%;height:32px;margin-top:6px;border:0;border-radius:7px;color:#0d4a48;background:#bfe9e3;font-weight:700}.all-objects,.area-button,.factory{width:100%;border:0;text-align:left}.all-objects{display:grid;grid-template-columns:8px 1fr auto;align-items:center;gap:8px;padding:10px;border-radius:9px;color:#d9eeec;background:#ffffff0b;font-size:12px}.all-objects.active{background:#2c8d8570}.all-objects b,.area-button b{display:grid;place-items:center;min-width:23px;height:23px;border-radius:12px;background:#ffffff17;font-size:10px}.dot,.status-dot{width:7px;height:7px;border-radius:50%;background:#57c7b9}.area{margin-top:6px}.area-button{display:grid;grid-template-columns:1fr auto 13px;align-items:center;gap:7px;padding:10px 8px;border-radius:9px;color:#d7eae8;background:transparent;font-size:12px;font-weight:600}.area-button:hover{background:#ffffff0a}.area-button i{font-style:normal;color:#84aaa7}.factory-list{display:none;padding:3px 0 4px 10px}.area.open .factory-list{display:block}.factory{display:flex;gap:9px;align-items:center;padding:7px;border-radius:9px;color:#d8e9e7;background:transparent;font-size:11px}.factory:hover,.factory.active{background:#ffffff12}.factory-logo{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;color:#0c625d;background:#b8e3dd;font-weight:800}.factory-logo.dark{color:#fff;background:#304d54}.factory span:last-child{font-weight:600}.factory small{display:block;margin-top:2px;color:#83a7a5;font-weight:400}.sidebar-footer{display:flex;align-items:center;gap:8px;padding:4px 5px;color:#83a8a6;font-size:10px}.workspace{margin-left:298px;width:calc(100% - 298px)}.topbar{height:91px;padding:0 26px;display:flex;align-items:center;gap:22px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}.topbar>div:first-child{margin-right:auto}.eyebrow{margin:0 0 4px;color:var(--teal);font-size:10px;font-weight:800;letter-spacing:.15em}.topbar h1{margin:0;font-size:21px;letter-spacing:-.02em}.header-period{padding-left:22px;border-left:1px solid var(--line);min-width:230px}.header-period span,.header-period b,.header-period small{display:block}.header-period span{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.header-period b{margin:3px 0;font-size:13px}.header-period small{font-size:10px;color:#80908f}.icon-button{width:40px;height:40px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--teal);font-size:20px}.profile{display:flex;align-items:center;gap:9px;padding:5px 9px 5px 5px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:left}.profile>span{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;color:#fff;background:linear-gradient(135deg,var(--teal),#43a99f);font-size:11px;font-weight:700}.profile b,.profile small{display:block}.profile b{font-size:11px}.profile small{margin-top:2px;color:var(--muted);font-size:9px}.profile i{font-style:normal;color:#79908f}.dashboard-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:15px;padding:18px 20px 30px;max-width:1800px;margin:auto}.dashboard-card{min-height:260px;padding:17px 18px;border:1px solid #e0e9e7;border-radius:var(--radius);background:var(--card);box-shadow:0 5px 20px #17383b0b;overflow:hidden}.money-card{grid-column:span 2}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.card-head>div{display:flex;align-items:center;gap:8px}.card-head h2{margin:0;font-size:15px}.section-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:var(--teal);background:var(--mint);font-size:14px;font-weight:800}.section-icon.alert{color:var(--red);background:#fbeceb}.detail-button{border:0;background:transparent;color:var(--teal);font-size:10px;font-weight:700}.detail-button:hover{text-decoration:underline}.metric-row{display:grid;gap:8px}.metric-row.four{grid-template-columns:repeat(4,1fr)}.metric-row.three{grid-template-columns:repeat(3,1fr)}.metric{padding:11px;border-radius:11px;background:#f6f9f8}.metric span,.metric strong,.metric em{display:block}.metric span{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.metric strong{margin:5px 0 4px;font-size:18px;letter-spacing:-.03em}.metric em,.violation-top em,.line-summary em,.hotel-metrics em{font-size:9px;font-style:normal;font-weight:600}.up,.down-good{color:var(--green)!important}.warn{color:var(--amber)!important}.muted{color:var(--muted)!important}.chart-title{display:flex;justify-content:space-between;margin:15px 1px 5px;font-size:9px;color:var(--muted)}.chart-title div{display:flex;gap:6px;align-items:center}.legend{width:20px;height:2px;background:var(--teal)}.legend.dashed{background:repeating-linear-gradient(90deg,#a4b4b3 0 4px,transparent 4px 7px)}.money-chart{height:104px;position:relative}.money-chart canvas{width:100%;height:88px;display:block}.chart-axis{display:flex;justify-content:space-between;color:#91a09f;font-size:8px}.compact .metric strong{font-size:17px}.funnel{display:flex;align-items:center;justify-content:center;margin-top:18px;height:108px}.funnel-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;height:92px;color:#fff;clip-path:polygon(0 7%,100% 0,88% 100%,12% 93%)}.funnel-stage b{font-size:18px}.funnel-stage span{margin-top:4px;font-size:8px}.stage-1{width:35%;background:#63bcb3}.stage-2{width:31%;height:78px;background:#2d968c}.stage-3{width:28%;height:64px;background:#176e69}.inline-tabs{display:inline-flex;padding:3px;margin:-5px 0 9px;background:#eef4f3;border-radius:8px}.inline-tabs button{height:27px;padding:0 12px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:9px;font-weight:700}.inline-tabs button.active{color:var(--teal);background:#fff;box-shadow:0 2px 8px #17383b14}.bar-chart{display:flex;align-items:flex-end;justify-content:space-around;height:86px;margin-top:8px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(0deg,transparent 0 27px,#edf3f2 27px 28px)}.bar-chart>div{position:relative;width:11%;height:100%}.bar-chart i:before,.bar-chart i:after{content:"";position:absolute;bottom:0;width:35%;border-radius:3px 3px 0 0}.bar-chart i:before{left:10%;height:var(--plan);background:#b9d7d3}.bar-chart i:after{right:10%;height:var(--fact);background:var(--teal)}.bar-chart span{position:absolute;bottom:-14px;left:0;width:100%;text-align:center;color:#8b9c9b;font-size:8px}.bar-legend{display:flex;justify-content:center;gap:18px;margin-top:17px;color:var(--muted);font-size:8px}.bar-legend span{display:flex;align-items:center;gap:5px}.bar-legend i{width:8px;height:8px;border-radius:2px}.bar-legend .plan{background:#b9d7d3}.bar-legend .fact{background:var(--teal)}.hotel-layout{display:grid;grid-template-columns:118px 1fr;gap:10px}.donut{display:grid;place-items:center;width:108px;height:108px;border-radius:50%;background:conic-gradient(var(--teal) calc(var(--value)*1%),#e6efed 0);position:relative}.donut:after{content:"";position:absolute;width:73px;height:73px;border-radius:50%;background:#fff}.donut div{position:relative;z-index:1;text-align:center}.donut strong,.donut span{display:block}.donut strong{font-size:23px}.donut span{color:var(--muted);font-size:9px}.hotel-metrics{display:grid;grid-template-columns:repeat(3,1fr);align-items:center}.hotel-metrics>div{padding-left:10px;border-left:1px solid var(--line)}.hotel-metrics span,.hotel-metrics b{display:block}.hotel-metrics span{font-size:8px;color:var(--muted)}.hotel-metrics b{margin:4px 0;font-size:15px}.occupancy{margin-top:15px}.occupancy>div{display:grid;grid-template-columns:112px 1fr 28px;align-items:center;gap:8px;margin:8px 0;font-size:8px}.occupancy b{grid-column:3;text-align:right}.occupancy i{grid-column:2;grid-row:1;height:6px;border-radius:5px;background:#e8efee;overflow:hidden}.occupancy u,.horizontal-bars u{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#6ac3b8,var(--teal));text-decoration:none}.violation-top{display:grid;grid-template-columns:1fr 1fr;gap:8px}.violation-top>div{padding:10px;border-radius:10px;background:#f8f5f2}.violation-top span,.violation-top strong{display:block}.violation-top span{font-size:9px;color:var(--muted)}.violation-top strong{margin:4px 0;font-size:19px}.horizontal-bars{margin-top:11px}.horizontal-bars>div{display:grid;grid-template-columns:88px 1fr 20px;align-items:center;gap:7px;margin:7px 0;font-size:8px}.horizontal-bars i{height:7px;border-radius:5px;background:#edf1f0;overflow:hidden}.horizontal-bars u{background:linear-gradient(90deg,#e9a18f,#cc6457)}.horizontal-bars b{text-align:right;font-size:9px}.lines-card{grid-column:1/-1;min-height:318px}.live-badge{margin-left:6px;color:var(--green);font-size:8px;text-transform:uppercase}.line-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:18px}.line-summary>div{padding:10px 12px;border-radius:10px;background:#f5f8f7}.line-summary span,.line-summary strong,.line-summary em{display:block}.line-summary span{font-size:8px;color:var(--muted);text-transform:uppercase}.line-summary strong{margin:4px 0;font-size:16px}.timeline-wrap{padding:4px 0}.time-scale{display:flex;justify-content:space-between;margin:0 42px 7px 142px;color:#91a19f;font-size:8px}.timeline-row{display:grid;grid-template-columns:130px 1fr 34px;align-items:center;gap:10px;margin:8px 0}.timeline-row>b{font-size:10px}.timeline-row small{display:block;color:var(--muted);font-size:7px;font-weight:400;margin-top:2px}.timeline-row>em{font-style:normal;font-size:9px;text-align:right;font-weight:700}.track{height:18px;position:relative;border-radius:5px;background:repeating-linear-gradient(90deg,#edf2f1 0 calc(16.66% - 1px),#dfe8e6 calc(16.66% - 1px) 16.66%);overflow:hidden}.track button{position:absolute;top:2px;height:14px;border:0;padding:0}.track .run{background:#4eb3a6}.track .stop:hover{filter:brightness(.86)}.raw{background:#e8aa5f!important}.tray{background:#d57d61!important}.staff{background:#8e78b4!important}.fault{background:#cc5c5c!important}.timeline-legend{display:flex;align-items:center;gap:14px;margin-top:12px;padding-top:11px;border-top:1px solid var(--line);color:var(--muted);font-size:8px}.timeline-legend span{display:flex;align-items:center;gap:5px}.timeline-legend i{width:10px;height:7px;border-radius:2px}.timeline-legend .run{background:#4eb3a6}.timeline-legend b{margin-left:auto;color:#52706e;font-weight:500}.toast{position:fixed;right:24px;bottom:24px;z-index:30;max-width:340px;padding:13px 17px;border-radius:11px;color:#fff;background:#173d3f;box-shadow:0 13px 35px #0d2e3266;font-size:11px;transform:translateY(80px);opacity:0;transition:.25s}.toast.show{transform:none;opacity:1}
@media(max-width:1450px){body{min-width:1024px}.sidebar{width:258px}.workspace{margin-left:258px;width:calc(100% - 258px)}.dashboard-grid{grid-template-columns:1.4fr 1fr}.money-card{grid-column:span 2}.hotel-card{grid-column:span 1}.violation-card{grid-column:span 1}.metric strong{font-size:16px}.profile div{display:none}}
@media(max-width:1100px){.sidebar{width:230px;padding-inline:14px}.workspace{margin-left:230px;width:calc(100% - 230px)}.dashboard-grid{grid-template-columns:1fr 1fr}.header-period{display:none}.hotel-card,.violation-card{grid-column:auto}.line-summary{grid-template-columns:repeat(2,1fr)}}
button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #67c7bd;outline-offset:2px}
.demo-badge{display:inline-flex!important;padding:7px 10px;border:1px solid #e5bf7a;border-radius:8px;color:#7b4f0d;background:#fff7e5;font-size:10px;font-weight:800;letter-spacing:.07em;white-space:nowrap}
.sidebar-footer{font-size:11px}
.timeline-row[hidden]{display:none}
.output-card .metric strong{white-space:nowrap;font-size:15px}
.staff-card .metric strong{font-size:22px}.staff-card .funnel-stage b{font-size:26px}.staff-card .funnel-stage span{font-size:9px;text-align:center;max-width:92%;line-height:1.15}
@media(max-width:1100px){body{min-width:1000px}.demo-badge{display:inline-flex!important;font-size:10px}}

/* Телевизионный режим: Full HD, все панели в одном кадре */
@media (min-width:1600px) and (min-height:900px){
  body{min-width:0;overflow:hidden}
  .sidebar{width:320px;padding:22px 22px 16px;overflow:hidden}
  .workspace{margin-left:320px;width:calc(100% - 320px);height:100vh;overflow:hidden}
  .brand{margin-bottom:20px}.brand-mark{width:46px;height:46px;font-size:24px}.brand b{font-size:19px}.brand small{font-size:12px}
  .sidebar-block{padding:15px;margin-bottom:12px}.block-title{margin-bottom:12px}.block-title span{font-size:16px}.block-title small{font-size:12px}
  .period-tab{height:36px;font-size:14px}.select-label{margin-top:11px;font-size:11px}.control-select{height:42px;font-size:15px}.custom-period{height:42px;font-size:13px}
  .all-objects{padding:11px;font-size:14px}.area-button{padding:10px 8px;font-size:13px}.factory{padding:7px;font-size:13px}.factory-logo{width:31px;height:31px}.factory small{font-size:10px}.sidebar-footer{font-size:12px}
  .topbar{height:84px;padding:0 24px;gap:18px}.topbar h1{font-size:24px}.eyebrow{font-size:11px}.header-period{min-width:245px}.header-period span{font-size:10px}.header-period b{font-size:15px}.header-period small{font-size:11px}.demo-badge{font-size:11px}.profile b{font-size:12px}.profile small{font-size:10px}
  .dashboard-grid{height:calc(100vh - 84px);max-width:none;margin:0;padding:12px 16px 14px;gap:12px;grid-template-columns:1.45fr 1fr 1fr;grid-template-rows:minmax(0,1.02fr) minmax(0,1fr) minmax(0,1.08fr);overflow:hidden}
  .dashboard-card{min-height:0;height:100%;padding:13px 16px;border-radius:15px;overflow:hidden}
  .money-card{grid-column:span 2}.lines-card{grid-column:1/-1;min-height:0}
  .card-head{margin-bottom:11px}.card-head h2{font-size:20px}.section-icon{width:33px;height:33px;font-size:17px}.detail-button{font-size:12px}
  .metric{padding:10px 12px}.metric span{font-size:11px}.metric strong{margin:4px 0 3px;font-size:24px}.compact .metric strong,.output-card .metric strong{font-size:22px}.metric em,.violation-top em,.line-summary em,.hotel-metrics em{font-size:11px}
  .chart-title{margin-top:11px;font-size:10px}.money-chart{height:92px}.money-chart canvas{height:76px}.chart-axis{font-size:9px}
  .funnel{height:92px;margin-top:12px}.funnel-stage{height:82px}.stage-2{height:70px}.stage-3{height:58px}.funnel-stage b{font-size:20px}.funnel-stage span{font-size:9px}
  .staff-card .metric strong{font-size:28px}.staff-card .funnel-stage b{font-size:34px}.staff-card .funnel-stage span{font-size:11px}
  .staff-card .funnel{height:88px;margin-top:8px}
  .money-card .metric strong{font-size:28px}
  .staff-card .metric strong{font-size:30px}.staff-card .funnel-stage b{font-size:38px}
  .output-card .metric strong{font-size:26px}
  .donut strong{font-size:32px}.hotel-metrics b{font-size:24px}.occupancy b{font-size:13px}
  .violation-top strong{font-size:30px}.horizontal-bars b{font-size:14px}
  .line-summary strong{font-size:22px}.timeline-row>em{font-size:13px}.time-scale{font-size:10px}
  .inline-tabs{margin-bottom:7px}.inline-tabs button{height:28px;font-size:10px}.bar-chart{height:78px;margin-top:6px}.bar-chart span,.bar-legend{font-size:9px}.bar-legend{margin-top:15px}
  .output-card .bar-chart{height:76px}
  .hotel-layout{grid-template-columns:126px 1fr}.donut{width:116px;height:116px}.donut:after{width:78px;height:78px}.donut strong{font-size:28px}.donut span{font-size:11px}.hotel-metrics span{font-size:10px}.hotel-metrics b{font-size:21px}.occupancy{margin-top:10px}.occupancy>div{grid-template-columns:125px 1fr 30px;margin:7px 0;font-size:10px}
  .violation-top>div{padding:10px 12px}.violation-top span{font-size:11px}.violation-top strong{font-size:26px}.horizontal-bars{margin-top:9px}.horizontal-bars>div{grid-template-columns:105px 1fr 24px;margin:8px 0;font-size:11px}.horizontal-bars b{font-size:12px}
  .line-summary{margin-bottom:10px}.line-summary>div{padding:9px 12px}.line-summary span{font-size:9px}.line-summary strong{font-size:18px}.time-scale{margin-bottom:5px;font-size:9px}.timeline-row{margin:6px 0;grid-template-columns:130px 1fr 36px}.timeline-row>b{font-size:11px}.timeline-row small{font-size:8px}.timeline-row>em{font-size:10px}.track{height:17px}.track button{height:13px}.timeline-legend{margin-top:8px;padding-top:8px;font-size:9px}
  .lines-card{padding:10px 16px}.lines-card .card-head{margin-bottom:7px}.lines-card .line-summary{margin-bottom:6px}.lines-card .line-summary>div{padding:7px 12px}.lines-card .line-summary strong{margin:2px 0}.lines-card .timeline-wrap{padding:0}.lines-card .timeline-row{margin:4px 0}.lines-card .timeline-legend{margin-top:6px;padding-top:6px}
  .money-card .metric strong{font-size:28px}
  .staff-card .metric strong{font-size:30px}.staff-card .funnel-stage b{font-size:38px}
  .output-card .metric strong{font-size:26px}.output-card .bar-chart{height:71px}
  .hotel-card .donut strong{font-size:32px}.hotel-card .hotel-metrics b{font-size:24px}.hotel-card .occupancy b{font-size:13px}
  .violation-card .violation-top strong{font-size:30px}.violation-card .horizontal-bars b{font-size:14px}
  .violation-card .horizontal-bars>div{margin:5px 0}
  .lines-card .line-summary strong{font-size:22px}.lines-card .timeline-row>em{font-size:13px}.lines-card .time-scale{font-size:10px}
}

/* Уменьшенный предпросмотр телевизионного экрана в узком окне */
body.tv-preview{min-width:0;width:100vw;height:100vh;overflow:hidden;background:#10383b}
body.tv-preview .app-shell{width:1920px;height:1080px;min-height:0;transform:scale(var(--tv-preview-scale));transform-origin:0 0}
body.tv-preview .sidebar{width:320px;height:1080px;padding:22px 22px 16px;overflow:hidden}
body.tv-preview .workspace{margin-left:320px;width:1600px;height:1080px;overflow:hidden}
body.tv-preview .topbar{height:84px;padding:0 24px}
body.tv-preview .dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));width:1600px;height:996px;max-width:none;margin:0;padding:12px 16px 14px;gap:12px;overflow:hidden}
body.tv-preview .dashboard-card{min-width:0;min-height:0;width:auto;height:100%;padding:16px 18px;overflow:hidden}
body.tv-preview .money-card{grid-column:1;grid-row:1}
body.tv-preview .output-card{grid-column:2;grid-row:1}
body.tv-preview .staff-card{grid-column:3;grid-row:1}
body.tv-preview .hotel-card{grid-column:1;grid-row:2}
body.tv-preview .violation-card{grid-column:2;grid-row:2}
body.tv-preview .lines-card{grid-column:3;grid-row:2}
body.tv-preview .money-card .metric-row.four{grid-template-columns:repeat(2,minmax(0,1fr))}
body.tv-preview .money-card .money-chart{height:126px}
body.tv-preview .money-card .money-chart canvas{height:108px}
body.tv-preview .output-card .metric-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}
body.tv-preview .output-card .metric{min-width:0}
body.tv-preview .output-card .bar-chart{height:105px}
body.tv-preview .staff-card .funnel{height:185px;margin-top:18px;justify-content:center}
body.tv-preview .staff-card .stage-1{height:62px}
body.tv-preview .staff-card .stage-2{height:58px}
body.tv-preview .staff-card .stage-3{height:54px}
body.tv-preview .lines-card .line-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.tv-preview .lines-card .timeline-row{grid-template-columns:80px 1fr 34px;gap:7px}
body.tv-preview .lines-card .time-scale{margin-left:91px}

/* Единая воронка персонала: ступени соединены и сужаются сверху вниз */
.staff-card .funnel{height:108px;margin-top:0;flex-direction:column;gap:0;justify-content:flex-start}
.staff-card .funnel-stage{flex:none;clip-path:polygon(0 0,100% 0,90% 100%,10% 100%)}
.staff-card .stage-1{width:84%;height:38px}
.staff-card .stage-2{width:68%;height:36px}
.staff-card .stage-3{width:54%;height:34px}
.staff-card .funnel-stage b{font-size:30px;line-height:1}
@media (min-width:1600px) and (min-height:900px){.staff-card .metric{padding:4px 10px}}
@media (min-width:1600px) and (min-height:900px){
  .money-card .metric strong,
  .staff-card .metric strong,
  .output-card .metric strong,
  .hotel-card .donut strong,
  .hotel-card .hotel-metrics b,
  .violation-card .violation-top strong,
  .lines-card .line-summary strong{font-size:30px}
  .staff-card .funnel-stage b{font-size:26px}
  .output-card .bar-chart{height:66px}
}

/* Порядок управленческих карточек */
.money-card{order:1}.output-card{order:2}.staff-card{order:3}.hotel-card{order:4}.violation-card{order:5}.lines-card{order:6}

/* Full HD: деньги и выработка равной ширины, персонал во втором ряду */
@media (min-width:1600px) and (min-height:900px){
  .dashboard-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .money-card{grid-column:1/4;grid-row:1}
  .output-card{grid-column:4/7;grid-row:1}
  .staff-card{grid-column:1/3;grid-row:2}
  .hotel-card{grid-column:3/5;grid-row:2}
  .violation-card{grid-column:5/7;grid-row:2}
  .lines-card{grid-column:1/7;grid-row:3}
}

/* Хронометраж: интегральное выполнение плана */
.plan-fact-bullet{margin:8px 0 2px}.bullet-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:4px;color:var(--muted);font-size:9px}.bullet-head strong{color:var(--ink);font-size:16px}.bullet-track{position:relative;height:14px;border-radius:8px;background:linear-gradient(90deg,#edf2f1 0 75%,#e8efe6 75% 83.33%,#f3eee4 83.33% 100%);overflow:hidden}.bullet-track i{display:block;width:var(--fact-position);height:100%;border-radius:8px;background:linear-gradient(90deg,#65beb3,var(--teal));transition:width .25s}.bullet-track u{position:absolute;left:83.33%;top:-3px;width:3px;height:20px;background:#17383b;text-decoration:none}.bullet-scale{display:flex;justify-content:space-between;margin-top:3px;color:#8b9c9b;font-size:8px}

@media (min-width:1600px) and (min-height:900px){
  .output-card .card-head{margin-bottom:7px}
  .output-card .inline-tabs{margin-bottom:3px}
  .output-card .metric{padding:4px 10px}
  .output-card .plan-fact-bullet{margin:5px 0 0}
  .output-card .bullet-head{margin-bottom:3px;font-size:10px}
  .output-card .bullet-head strong{font-size:18px}
  .output-card .bullet-track{height:16px}
  .output-card .bullet-scale{font-size:9px}
  .output-card .bar-chart{height:38px;margin-top:2px}
  .output-card .bar-legend{margin-top:8px}
}

/* Детальный управленческий отчёт «Персонал» */
.personnel-detail{padding:14px 18px 28px;min-height:calc(100vh - 84px)}
.detail-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:12px}.back-button,.detail-action,.micro-button{border:0;background:transparent;color:var(--teal);font-weight:700}.back-button{padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}.detail-tabs{display:flex;padding:4px;border-radius:11px;background:#e9f0ef}.detail-tabs button{height:34px;padding:0 18px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:12px;font-weight:700}.detail-tabs button.active{color:var(--teal);background:#fff;box-shadow:0 3px 10px #17383b12}.detail-action{margin-left:auto;padding:10px 15px;border-radius:10px;color:#fff;background:var(--teal)}
.personnel-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:10px}.personnel-kpis article{min-width:0;padding:12px 14px;border:1px solid #e1eae8;border-radius:13px;background:#fff}.personnel-kpis article.attention{border-color:#f0d2a7;background:#fffaf2}.personnel-kpis span,.personnel-kpis strong,.personnel-kpis em{display:block}.personnel-kpis span{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em}.personnel-kpis strong{margin:4px 0 3px;font-size:27px}.personnel-kpis em{color:var(--muted);font-size:10px;font-style:normal;font-weight:600}
.personnel-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:10px}.report-card{padding:14px 16px;border:1px solid #e0e9e7;border-radius:15px;background:#fff;box-shadow:0 4px 15px #17383b09}.report-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.report-head h2{margin:0;font-size:15px}.report-head p{margin:3px 0 0;color:var(--muted);font-size:10px}.report-head>strong{font-size:20px}.report-head>strong small{display:block;color:var(--muted);font-size:9px;font-weight:500}.chart-key{display:flex;gap:12px;color:var(--muted);font-size:9px}.chart-key span{display:flex;align-items:center;gap:5px}.chart-key span:before{content:"";width:8px;height:8px;border-radius:2px}.key-plan:before{background:#c8d8d6}.key-placed:before{background:#6ec2b8}.key-fact:before{background:#126f6a}
.personnel-trend-card{grid-column:span 2}.staff-trend{position:relative;height:132px;border-bottom:1px solid var(--line)}.trend-grid{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between}.trend-grid i{display:block;border-top:1px solid #edf2f1}.trend-columns{position:absolute;inset:0 8px;display:flex;align-items:flex-end;justify-content:space-around}.trend-columns>div{position:relative;width:10%;height:100%}.trend-columns i:before,.trend-columns i:after,.trend-columns i{position:absolute;bottom:0;border-radius:4px 4px 0 0}.trend-columns i{left:8%;width:24%;height:var(--plan);background:#c8d8d6}.trend-columns i:before,.trend-columns i:after{content:"";bottom:0;width:100%}.trend-columns i:before{left:115%;height:calc(var(--placed) / var(--plan) * 100%);background:#6ec2b8}.trend-columns i:after{left:230%;height:calc(var(--fact) / var(--plan) * 100%);background:#126f6a}.trend-columns b{position:absolute;bottom:-17px;left:0;width:100%;color:#80908f;text-align:center;font-size:9px}.trend-insight{display:flex;align-items:center;gap:15px;margin-top:24px;padding:9px 12px;border-radius:10px;background:#f8f5f1;font-size:10px}.trend-insight span{color:var(--amber);font-weight:700;text-transform:uppercase}.trend-insight em{margin-left:auto;color:var(--muted);font-style:normal}
.reason-bars button,.coverage-list button{width:100%;border:0;background:transparent;text-align:left}.reason-bars button{display:grid;grid-template-columns:125px 1fr 22px;align-items:center;gap:8px;padding:6px 0;font-size:10px}.reason-bars i{height:8px;border-radius:5px;background:#f0ece8;overflow:hidden}.reason-bars u{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#e8a173,#c87555);text-decoration:none}.reason-bars b{text-align:right}.warning-note{display:flex;align-items:center;gap:8px;margin-top:7px;padding:9px 10px;border-radius:9px;background:#fff5e8;color:#8c5d1f;font-size:10px}.warning-note b{font-size:14px}
.coverage-list button{display:grid;grid-template-columns:145px 1fr 36px 48px;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #edf2f1;font-size:10px}.coverage-list button:last-child{border:0}.coverage-list i{height:8px;border-radius:5px;background:#edf2f1;overflow:hidden}.coverage-list u{display:block;width:var(--coverage);height:100%;border-radius:inherit;background:var(--teal);text-decoration:none}.coverage-list b{text-align:right}.coverage-list em{color:var(--muted);text-align:right;font-style:normal}.coverage-list .medium{color:var(--amber)}.coverage-list .critical{color:var(--red)}.coverage-list .good{color:var(--green)}.threshold{color:var(--muted);font-size:9px}
.performance-distribution{display:flex;align-items:flex-end;gap:9px;height:125px}.performance-distribution button{display:flex;flex:1;height:100%;padding:0;border:0;background:transparent;flex-direction:column;justify-content:flex-end;text-align:center}.performance-distribution i{width:100%;height:var(--share);min-height:20px;border-radius:6px 6px 2px 2px;background:#dcebea}.performance-distribution button:nth-child(1) i{background:#dc857b}.performance-distribution button:nth-child(2) i{background:#e7b86e}.performance-distribution button:nth-child(3) i{background:#59b2a8}.performance-distribution button:nth-child(4) i{background:#237b75}.performance-distribution b{margin:4px 0 1px;font-size:14px}.performance-distribution span,.performance-distribution em{color:var(--muted);font-size:8px;font-style:normal}
.discipline-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.discipline-metrics>div{padding:9px;border-radius:9px;background:#f6f9f8}.discipline-metrics strong,.discipline-metrics span,.discipline-metrics em{display:block}.discipline-metrics strong{font-size:19px}.discipline-metrics span{margin:2px 0;color:var(--muted);font-size:9px}.discipline-metrics em{font-size:8px;font-style:normal}.calendar-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-top:9px}.calendar-strip span{color:var(--muted);font-size:8px;text-align:center}.calendar-strip em{display:block;margin-top:3px;padding:5px 2px;border-radius:6px;font-style:normal;font-weight:700}.good-day{color:#277861;background:#e6f4ed}.medium-day{color:#926117;background:#fff2d9}.bad-day{color:#a6423b;background:#fbe5e2}
.employee-preview-card{grid-column:1/-1}.employee-rows button{display:grid;grid-template-columns:36px minmax(180px,1fr) 100px 55px 90px;align-items:center;gap:10px;width:100%;padding:7px 8px;border:0;border-top:1px solid #edf2f1;background:transparent;text-align:left}.employee-rows button:hover{background:#f6faf9}.employee-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;color:#fff;background:linear-gradient(135deg,var(--teal),#61bdb2);font-size:10px;font-weight:800}.employee-rows b,.employee-rows small{display:block}.employee-rows b{font-size:11px}.employee-rows small{margin-top:2px;color:var(--muted);font-size:9px}.employee-rows strong{text-align:right}.employee-rows i{color:var(--muted);font-size:9px;font-style:normal;text-align:right}.status-tag{display:inline-flex;justify-content:center;padding:5px 7px;border-radius:8px;font-size:9px;font-style:normal;font-weight:700}.status-tag.red{color:#a23d36;background:#fbe5e2}.status-tag.amber{color:#895917;background:#fff0d7}
.personnel-tab-placeholder{display:grid;place-items:center;min-height:600px;border:1px dashed #cddbd9;border-radius:16px;background:#fff}.personnel-tab-placeholder>div{max-width:520px;text-align:center}.placeholder-icon{font-size:42px;color:var(--teal)}.personnel-tab-placeholder h2{margin:12px 0 6px}.personnel-tab-placeholder p{color:var(--muted);line-height:1.5}.personnel-tab-placeholder button{padding:10px 16px;border:0;border-radius:9px;color:#fff;background:var(--teal);font-weight:700}
.employee-drawer-backdrop{position:fixed;inset:0;z-index:40;background:#0d282d73;backdrop-filter:blur(2px)}.employee-drawer{position:fixed;top:0;right:0;z-index:41;width:520px;height:100vh;padding:22px;overflow-y:auto;background:#fff;box-shadow:-20px 0 60px #0a262b40;transform:translateX(105%);transition:transform .25s}.employee-drawer.open{transform:none}.employee-drawer-head{display:grid;grid-template-columns:38px 54px 1fr;align-items:center;gap:11px}.employee-drawer-head>button{align-self:start;width:32px;height:32px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:22px}.employee-photo{display:grid;place-items:center;width:54px;height:54px;border-radius:15px;color:#fff;background:linear-gradient(135deg,var(--teal),#62beb4);font-weight:800}.employee-drawer-head small{color:var(--teal);font-size:9px;text-transform:uppercase;letter-spacing:.08em}.employee-drawer-head h2{margin:3px 0;font-size:18px}.employee-drawer-head p{margin:0;color:var(--muted);font-size:10px}.employee-status-line{display:flex;align-items:center;gap:10px;margin:18px 0;padding-bottom:16px;border-bottom:1px solid var(--line);font-size:9px}.employee-status-line em{margin-left:auto;color:var(--muted);font-style:normal}.employee-drawer-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.employee-drawer-kpis>div{padding:10px;border-radius:10px;background:#f5f8f7}.employee-drawer-kpis span,.employee-drawer-kpis strong,.employee-drawer-kpis em{display:block}.employee-drawer-kpis span{color:var(--muted);font-size:8px}.employee-drawer-kpis strong{margin:4px 0;font-size:16px}.employee-drawer-kpis em{font-size:8px;font-style:normal}.employee-section{margin-top:19px;padding-top:17px;border-top:1px solid var(--line)}.employee-section-head{display:flex;justify-content:space-between;align-items:center}.employee-section h3{margin:0 0 12px;font-size:13px}.employee-section-head button{border:0;background:transparent;color:var(--teal);font-size:9px}.employee-spark{display:flex;align-items:flex-end;justify-content:space-around;height:105px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(0deg,transparent 0 34px,#edf2f1 34px 35px)}.employee-spark i{width:8%;border-radius:5px 5px 0 0;background:var(--teal)}.employee-spark i.absent{background:var(--red)}.spark-labels{display:flex;justify-content:space-around;margin-top:5px;color:var(--muted);font-size:8px}.event-line{display:flex;gap:10px;padding:9px 0}.event-line>i{width:8px;height:8px;margin-top:3px;border-radius:50%}.event-red{background:var(--red)}.event-amber{background:var(--amber)}.event-purple{background:#8e78b4}.event-line b,.event-line span{display:block}.event-line b{font-size:10px}.event-line span{margin-top:3px;color:var(--muted);font-size:9px}.employee-info>div{display:flex;justify-content:space-between;padding:7px 0;font-size:10px}.employee-info span{color:var(--muted)}
@media (min-width:1600px) and (min-height:900px){.personnel-detail{height:calc(100vh - 84px);overflow:auto}.personnel-grid{grid-template-columns:1.35fr 1fr 1fr}.report-card{min-height:0}.personnel-trend-card{height:255px}.absence-card{height:255px}.coverage-card,.performance-card,.discipline-card{height:207px}.employee-preview-card{min-height:178px}}
.personnel-grid[data-active-tab="attendance"] .discipline-card{grid-column:2/4}.personnel-grid[data-active-tab="performance"] .performance-card{grid-column:auto}.personnel-grid[data-active-tab="performance"] .employee-preview-card{min-height:210px}

/* Унифицированные детальные экраны остальных разделов */
.module-detail{padding:14px 18px 24px;min-height:calc(100vh - 84px)}
.module-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:10px}.module-kpis article{min-width:0;padding:12px 14px;border:1px solid #e1eae8;border-radius:13px;background:#fff}.module-kpis article.attention{border-color:#f0d2a7;background:#fffaf2}.module-kpis article.critical{border-color:#efc2bd;background:#fff7f6}.module-kpis span,.module-kpis strong,.module-kpis em{display:block}.module-kpis span{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em}.module-kpis strong{margin:4px 0 3px;font-size:27px;white-space:nowrap}.module-kpis em{color:var(--muted);font-size:10px;font-style:normal;font-weight:600}
.module-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;grid-auto-flow:dense;gap:10px}.module-report-card{min-width:0;height:225px;padding:14px 16px;border:1px solid #e0e9e7;border-radius:15px;background:#fff;box-shadow:0 4px 15px #17383b09;overflow:hidden}.module-report-card.wide{grid-column:span 2;height:270px}.module-report-card.tall{height:270px}.module-report-card.full{grid-column:1/-1;height:220px}.module-report-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.module-report-head h2{margin:0;font-size:15px}.module-report-head p{margin:3px 0 0;color:var(--muted);font-size:10px}.module-report-head>strong{font-size:20px}.module-report-head>strong small{display:block;color:var(--muted);font-size:9px;font-weight:500}.module-chip{padding:5px 8px;border-radius:8px;color:var(--teal);background:var(--mint);font-size:9px;font-weight:700}.module-chart-key{display:flex;gap:12px;color:var(--muted);font-size:9px}.module-chart-key span{display:flex;align-items:center;gap:5px}.module-chart-key i{width:9px;height:9px;border-radius:2px}.module-chart-key .primary{background:var(--teal)}.module-chart-key .secondary{background:#9acfc8}.module-chart-key .previous{border-top:2px dashed #9aabaa;border-radius:0}
.module-line-chart{position:relative;height:142px;margin-top:2px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(0deg,transparent 0 35px,#edf2f1 35px 36px)}.module-line-chart svg{position:absolute;inset:4px 0 0;width:100%;height:128px;overflow:visible}.module-line-chart .area{fill:#50aea522}.module-line-chart .line{fill:none;stroke:var(--teal);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.module-line-chart .line-2{fill:none;stroke:#7ebeb7;stroke-width:2}.module-line-chart .line-prev{fill:none;stroke:#a5b5b3;stroke-width:2;stroke-dasharray:5 5}.module-axis{display:flex;justify-content:space-between;margin-top:5px;color:#8b9c9b;font-size:8px}.module-insight{display:flex;align-items:center;gap:12px;margin-top:8px;padding:8px 10px;border-radius:9px;background:#f8f5f1;font-size:9px}.module-insight b{color:var(--amber)}.module-insight em{margin-left:auto;color:var(--muted);font-style:normal}
.module-bars>button,.module-ranking>button{width:100%;border:0;background:transparent;text-align:left}.module-bars>button{display:grid;grid-template-columns:130px 1fr 42px;align-items:center;gap:8px;padding:6px 0;font-size:10px}.module-bars i{height:8px;border-radius:5px;background:#edf2f1;overflow:hidden}.module-bars u{display:block;width:var(--value);height:100%;border-radius:inherit;background:linear-gradient(90deg,#67c1b6,var(--teal));text-decoration:none}.module-bars .negative u{background:linear-gradient(90deg,#e9ad78,#cf705b)}.module-bars b{text-align:right}.module-bars small{display:block;color:var(--muted);font-size:8px}
.module-donut-layout{display:grid;grid-template-columns:120px 1fr;align-items:center;gap:16px}.module-donut{display:grid;place-items:center;width:112px;height:112px;border-radius:50%;background:conic-gradient(var(--teal) var(--donut),#e8efee 0);position:relative}.module-donut:after{content:"";position:absolute;width:76px;height:76px;border-radius:50%;background:#fff}.module-donut>div{position:relative;z-index:1;text-align:center}.module-donut strong,.module-donut span{display:block}.module-donut strong{font-size:22px}.module-donut span{color:var(--muted);font-size:8px}.donut-legend>button{display:grid;grid-template-columns:9px 1fr auto;align-items:center;gap:7px;width:100%;padding:7px 0;border:0;border-bottom:1px solid #edf2f1;background:transparent;text-align:left;font-size:9px}.donut-legend i{width:8px;height:8px;border-radius:2px}.donut-legend b{font-size:11px}
.module-ranking button{display:grid;grid-template-columns:24px minmax(120px,1fr) 72px 52px;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #edf2f1;font-size:9px}.module-ranking button:last-child{border:0}.module-ranking>button>span:first-child{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;color:var(--teal);background:var(--mint);font-weight:800}.module-ranking b,.module-ranking small{display:block}.module-ranking small{margin-top:2px;color:var(--muted)}.module-ranking em{padding:4px 6px;border-radius:7px;color:var(--amber);background:#fff1d9;font-style:normal;text-align:center}.module-ranking strong{text-align:right;font-size:12px}
.module-stacked{display:flex;align-items:stretch;height:92px;margin:14px 0 8px;border-radius:9px;overflow:hidden}.module-stacked button{display:flex;min-width:28px;padding:7px;border:0;color:#fff;align-items:flex-end;background:var(--segment);font-size:8px;font-weight:700}.stacked-legend{display:flex;flex-wrap:wrap;gap:8px 14px;color:var(--muted);font-size:8px}.stacked-legend span{display:flex;align-items:center;gap:5px}.stacked-legend i{width:8px;height:8px;border-radius:2px;background:var(--segment)}
.waterfall{display:flex;align-items:center;justify-content:space-around;height:135px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(0deg,transparent 0 33px,#edf2f1 33px 34px)}.waterfall button{position:relative;width:12%;height:100%;padding:0;border:0;background:transparent}.waterfall i{position:absolute;left:18%;bottom:var(--bottom);width:64%;height:var(--height);border-radius:4px;background:var(--color)}.waterfall b{position:absolute;left:0;bottom:-17px;width:100%;font-size:8px}.waterfall em{position:absolute;left:0;bottom:calc(var(--bottom) + var(--height) + 3px);width:100%;font-size:8px;font-style:normal;font-weight:700}
.plan-fact-groups{display:flex;align-items:flex-end;justify-content:space-around;height:130px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(0deg,transparent 0 32px,#edf2f1 32px 33px)}.plan-fact-groups button{position:relative;width:13%;height:100%;padding:0;border:0;background:transparent}.plan-fact-groups i,.plan-fact-groups u{position:absolute;bottom:0;width:34%;border-radius:4px 4px 0 0}.plan-fact-groups i{left:12%;height:var(--plan);background:#bdd8d4}.plan-fact-groups u{right:12%;height:var(--fact);background:var(--teal);text-decoration:none}.plan-fact-groups b{position:absolute;bottom:-17px;left:0;width:100%;font-size:8px}
.status-matrix{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.status-matrix button{min-height:68px;padding:9px;border:0;border-radius:10px;background:#f5f8f7;text-align:left}.status-matrix button.good{background:#e9f5ef}.status-matrix button.warning{background:#fff3df}.status-matrix button.bad{background:#fbe8e5}.status-matrix b,.status-matrix span,.status-matrix em{display:block}.status-matrix b{font-size:12px}.status-matrix span{margin:3px 0;color:var(--muted);font-size:8px}.status-matrix em{font-size:10px;font-style:normal;font-weight:700}
.speed-chart{position:relative;height:115px;margin-top:5px;background:repeating-linear-gradient(0deg,transparent 0 28px,#edf2f1 28px 29px)}.speed-chart svg{width:100%;height:100%}.speed-chart .target{stroke:#9aaead;stroke-width:2;stroke-dasharray:5 5}.speed-chart .speed{fill:none;stroke:var(--teal);stroke-width:3}.speed-chart .stop-zone{fill:#f7d9d5}.speed-chart .warning-zone{fill:#faebcf}.workplace-strip{display:grid;grid-template-columns:repeat(8,1fr);gap:7px}.workplace-strip button{height:72px;padding:8px;border:0;border-radius:10px;background:#e8f4ee;text-align:left}.workplace-strip button.warn-place{background:#fff1d8}.workplace-strip button.stop-place{background:#f9e2df}.workplace-strip b,.workplace-strip span,.workplace-strip em{display:block}.workplace-strip b{font-size:10px}.workplace-strip span{margin:5px 0;color:var(--muted);font-size:8px}.workplace-strip em{font-size:8px;font-style:normal;font-weight:700}
.module-empty{grid-column:1/-1;display:grid;place-items:center;height:550px;border:1px dashed #ccdad8;border-radius:15px;background:#fff;color:var(--muted)}
@media (min-width:1600px) and (min-height:900px){.module-detail{height:calc(100vh - 84px);overflow:hidden}.module-grid[data-view="objects"] .module-report-card.full{height:207px}}
.plan-fact-groups{height:110px;background:repeating-linear-gradient(0deg,transparent 0 27px,#edf2f1 27px 28px)}
.module-line-chart{height:141px}.module-grid[data-view="objects"] .module-report-card.full{height:220px}

/* Full HD: шесть равных карточек без прокрутки */
@media (min-width:1600px) and (min-height:900px){
  .dashboard-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:repeat(2,minmax(0,1fr));
    height:calc(100vh - 84px);
    gap:12px;
    padding:12px 16px 14px;
    overflow:hidden;
  }
  .dashboard-card{min-width:0;min-height:0;width:auto;height:100%;padding:16px 18px;overflow:hidden}
  .money-card{grid-column:1;grid-row:1}
  .output-card{grid-column:2;grid-row:1}
  .staff-card{grid-column:3;grid-row:1}
  .hotel-card{grid-column:1;grid-row:2}
  .violation-card{grid-column:2;grid-row:2}
  .lines-card{grid-column:3;grid-row:2}

  .money-card .metric-row.four{grid-template-columns:repeat(2,minmax(0,1fr))}
  .money-card .metric{padding:9px 12px}
  .money-card .metric strong{font-size:28px}
  .money-card .chart-title{margin-top:13px}
  .money-card .money-chart{height:126px}
  .money-card .money-chart canvas{height:108px}

  .output-card .card-head{margin-bottom:11px}
  .output-card .inline-tabs{margin-bottom:8px}
  .output-card .metric-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}
  .output-card .metric{min-width:0;padding:10px 9px}
  .output-card .metric strong{font-size:24px}
  .output-card .plan-fact-bullet{margin:12px 0 4px}
  .output-card .bullet-head strong{font-size:22px}
  .output-card .bullet-track{height:18px}
  .output-card .bar-chart{height:105px;margin-top:8px}
  .output-card .bar-legend{margin-top:16px}

  .staff-card .metric{padding:10px 12px}
  .staff-card .funnel{height:185px;margin-top:18px;justify-content:center}
  .staff-card .stage-1{height:62px}
  .staff-card .stage-2{height:58px}
  .staff-card .stage-3{height:54px}
  .staff-card .funnel-stage b{font-size:30px}

  .hotel-card .hotel-layout{margin-top:10px}
  .hotel-card .donut{width:132px;height:132px}
  .hotel-card .donut:after{width:88px;height:88px}
  .hotel-card .occupancy{margin-top:24px}
  .hotel-card .occupancy>div{margin:13px 0}

  .violation-card .violation-top>div{padding:16px}
  .violation-card .horizontal-bars{margin-top:22px}
  .violation-card .horizontal-bars>div{margin:14px 0}

  .lines-card{padding:16px 18px}
  .lines-card .card-head{margin-bottom:11px}
  .lines-card .line-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:13px}
  .lines-card .line-summary>div{padding:9px 11px}
  .lines-card .line-summary strong{font-size:22px}
  .lines-card .time-scale{margin:0 36px 6px 91px}
  .lines-card .timeline-row{grid-template-columns:80px 1fr 34px;gap:7px;margin:8px 0}
  .lines-card .timeline-row>b{font-size:10px}
  .lines-card .timeline-legend{gap:8px;flex-wrap:wrap;margin-top:10px;padding-top:8px}
  .lines-card .timeline-legend b{width:100%;margin:0}
}
