/* Pasha24 O-01: shared Operations shell. Loaded after module CSS. */
@media(min-width:901px){
 .ops-refined.hk-shell-page{height:var(--ui-workspace-height);min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-bottom:12px}
 .ops-refined .ops-ui-content{min-height:0;flex:1 1 auto;display:flex;flex-direction:column;overflow:hidden}
 .ops-refined .ops-ui-workspace{flex:1 1 auto;min-height:0;overflow:hidden}
 .ops-refined .ops-ui-master,.ops-refined .ops-ui-detail{height:100%;min-height:0}
}
.ops-refined{min-width:0}
.ops-refined>.hk-heading{min-height:39px;flex:0 0 auto;margin-bottom:10px;align-items:center;gap:12px}
.ops-refined>.hk-heading h2{font-size:25px;line-height:1.25;margin:3px 0;white-space:normal;overflow-wrap:anywhere}
.ops-refined>.hk-heading>.mt-header-actions{align-items:center;gap:10px}
.ops-refined .mt-role{gap:8px}
.ops-refined .mt-role label{font-size:12px;line-height:1.2}
.ops-refined .mt-role select{min-height:var(--ui-control);height:var(--ui-control);max-width:175px;font-size:14px}
.ops-refined .ops-ui-workspace{display:grid;grid-template-columns:var(--operations-master-track) var(--operations-detail-track);gap:var(--operations-master-detail-gap);min-width:0;align-items:stretch}
.ops-refined .ops-ui-master{min-width:0;min-height:0;padding:14px;overflow:hidden;display:flex;flex-direction:column}
.ops-refined .ops-ui-master>.hk-table-scroll,
.ops-refined .ops-ui-master>.ops-ui-table-list>.hk-table-scroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;max-width:100%}
.ops-refined .ops-ui-master>.ops-ui-table-list{min-height:0;flex:1 1 auto;display:flex;flex-direction:column}
.ops-refined .ops-ui-master>.hk-note,.ops-refined .ops-ui-master>.hk-actions,
.ops-refined .ops-ui-master>.hk-filters{flex:0 0 auto;margin:0 0 10px}
.ops-refined .ops-ui-master>.hk-filters{flex-wrap:wrap;gap:8px}
.ops-refined .ops-ui-master>.hk-filters input,
.ops-refined .ops-ui-master>.hk-filters select{height:var(--ui-control);min-height:var(--ui-control);font-size:14px;max-width:100%}
.ops-refined .ops-ui-master .hk-table-scroll>.hk-table{min-width:730px}
.ops-refined .ops-ui-master .hk-table thead th{position:sticky;top:0;z-index:2;background:#f8faff;min-height:42px}
.ops-refined .ops-ui-detail{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;position:relative;top:auto;padding:16px;background:#fff}
.ops-refined .ops-ui-detail>.hkt-detail-head h2{font-size:21px;line-height:1.25;overflow-wrap:anywhere}
.ops-refined .ops-ui-detail .g-definition{margin:12px 0}
.ops-refined .ops-ui-detail .g-definition>div{min-width:0;gap:10px}
.ops-refined .ops-ui-detail .g-definition dd{overflow-wrap:anywhere}
.ops-refined .ops-ui-detail h2{margin:0 0 12px;font-size:21px}
.ops-refined .ops-ui-detail h3{margin:16px 0 8px;font-size:16px}
.ops-refined .ops-ui-detail .hk-table{min-width:0;font-size:12px}
.ops-refined .ops-ui-detail .hk-table th,.ops-refined .ops-ui-detail .hk-table td{padding:8px 6px;white-space:normal}
.ops-refined .ops-ui-detail .hk-table-scroll{overflow:auto}
.ops-refined .ops-ui-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0 0 10px;min-width:0}
.ops-refined .ops-ui-kpis button{min-width:0;min-height:75px;text-align:left;padding:10px 13px;cursor:pointer}
.ops-refined .ops-ui-kpis strong{display:block;font-size:23px;line-height:1.05;color:#112448}
.ops-refined .ops-ui-kpis span{display:block;margin-top:5px;font-size:13px;color:#66738c;min-width:0;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ops-refined .ops-ui-kpis button.selected{border-color:#0f47f1;background:#f4f7ff;box-shadow:inset 0 0 0 1px #0f47f118}
.ops-refined .ops-ui-category-kpis{grid-template-columns:repeat(6,minmax(0,1fr))}
.ops-refined .ops-ui-category-kpis button{padding:9px;min-height:75px}
.ops-refined .ops-ui-category-kpis span{font-size:12px}
.ops-refined tr[data-ops-row]{cursor:pointer}
.ops-refined tr[data-ops-row]:hover{background:#f7f9fe!important}
.ops-refined tr[data-ops-row].selected{background:#eef4ff!important;box-shadow:inset 3px 0 #0f47f1}
.ops-refined tr[data-ops-row]:focus-visible{outline:2px solid #0f47f1;outline-offset:-2px}
.ops-refined tr[data-ops-row][hidden]{display:none!important}
.ops-refined [data-h-op="bar-select"][hidden]{display:none!important}
.ops-refined .ops-ui-lines{display:grid;gap:7px;padding-left:19px;margin:4px 0 14px;color:#40536f;overflow-wrap:anywhere}
.ops-refined .ops-ui-actions{display:flex;flex-wrap:wrap;gap:8px}
.ops-refined .ops-ui-actions button{flex:1 1 110px;min-height:var(--ui-control)}
.ops-refined .ops-ui-master .hk-actions button{min-height:var(--ui-control)}
.ops-refined .ops-ui-master td .hk-actions{margin:0}
.ops-refined .ops-ui-master td .hk-actions button{min-height:34px}
.ops-refined .ops-ui-master .hk-table td,.ops-refined .ops-ui-master .hk-table th{vertical-align:middle}
.ops-refined .ops-ui-master .hk-table td{overflow-wrap:anywhere}
.ops-refined .ops-ui-master>.hk-panel{padding:0}
.ops-refined .ops-ui-master .mt-space{margin-top:16px!important}
.ops-refined .ops-ui-master .hk-table-scroll+ h3{flex:0 0 auto}
.ops-refined .ops-ui-master .hk-table-scroll + h3 + .hk-table-scroll{flex:1 1 auto;max-height:45%}
/* The Laundry module already has the correct list/detail structure. */
.laundry-page .hkt-workspace{grid-template-columns:var(--operations-master-track) var(--operations-detail-track);gap:var(--operations-master-detail-gap)}
.laundry-page .laundry-detail{position:relative;top:auto}
/* No viewport-wide scrolling at laptop widths; each panel owns overflow. */
@media (min-width:901px) and (max-width:1370px){
 .ops-refined .ops-ui-kpis{gap:6px}
 .ops-refined .ops-ui-kpis button{padding:9px;min-height:70px}
 .ops-refined .ops-ui-kpis strong{font-size:20px}
 .ops-refined .ops-ui-kpis span{font-size:12px}
 .ops-refined .ops-ui-category-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
 .ops-refined .ops-ui-category-kpis button{min-height:55px}
 .ops-refined>.hk-heading h2{font-size:22px}
}
@media(max-width:900px){
 .ops-refined.hk-shell-page{height:auto;min-height:0;overflow:visible}
 .ops-refined .ops-ui-content{height:auto;min-height:0;overflow:visible}
 .ops-refined .ops-ui-workspace{grid-template-columns:minmax(0,1fr);overflow:visible}
 .ops-refined .ops-ui-master,.ops-refined .ops-ui-detail{height:auto;min-height:230px;max-height:none}
 .ops-refined .ops-ui-master>.hk-table-scroll,.ops-refined .ops-ui-master>.ops-ui-table-list>.hk-table-scroll{max-height:510px}
 .ops-refined .ops-ui-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ops-refined .ops-ui-category-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:600px){
 .ops-refined>.hk-heading{align-items:flex-start;flex-wrap:wrap}
 .ops-refined>.hk-heading>.mt-header-actions{width:100%;justify-content:flex-start}
 .ops-refined .ops-ui-category-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ops-refined .ops-ui-master{padding:11px}
 .ops-refined .ops-ui-detail{padding:12px}
}


/* O-02 — Minibar: selected room, shortfall and read-only tariff detail. */
.ops-minibar .ops-mini-detail-head{display:flex;align-items:flex-start;gap:10px;justify-content:space-between;min-width:0}
.ops-minibar .ops-mini-detail-head>div{min-width:0}
.ops-minibar .ops-mini-detail-head h2{font-size:21px;overflow-wrap:anywhere;margin:4px 0 0}
.ops-minibar .ops-mini-detail-head .hk-badge{flex:0 0 auto}
.ops-minibar .ops-mini-room-meta{font-size:13px;color:#63728d;line-height:1.45;overflow-wrap:anywhere;margin:11px 0}
.ops-minibar .ops-mini-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 16px}
.ops-minibar .ops-mini-summary>div{border:1px solid #e5eaf3;border-radius:10px;background:#f8faff;padding:9px;min-width:0}
.ops-minibar .ops-mini-summary span{font-size:12px;color:#65758e;line-height:1.3;display:block;overflow-wrap:anywhere}
.ops-minibar .ops-mini-summary strong{display:block;font-size:16px;line-height:1.25;color:#112448;margin-top:5px;overflow-wrap:anywhere}
.ops-minibar .ops-mini-shortage{background:#fff9ec!important}
.ops-minibar .ops-mini-shortage td:nth-child(3){color:#9c5b00;font-weight:700}
.ops-minibar .ops-mini-note{background:#f5f8fe;color:#66758e;font-size:12px;line-height:1.5;padding:10px 12px;border-radius:9px;margin:0 0 10px}
.ops-minibar .ops-ui-detail>.ops-mini-note:last-child{margin:14px 0 0}
.ops-minibar .ops-mini-eyebrow{display:block;color:#65758e;font-size:12px;margin:0 0 5px}
.ops-minibar .ops-ui-empty{padding:20px 8px;text-align:center;color:#65758e}
.ops-minibar .ops-ui-master>.hk-note{font-size:13px;line-height:1.45;padding:9px 11px;margin-bottom:10px}
.ops-minibar .ops-ui-master>.hk-table-scroll{max-height:100%}
.ops-minibar .ops-ui-master .hk-table th:last-child,.ops-minibar .ops-ui-master .hk-table td:last-child{max-width:180px}
.ops-minibar .ops-ui-master .hk-table tbody tr[data-ops-row]{scroll-margin-block:10px}
@media(max-width:1150px){
 .ops-minibar .ops-mini-summary{gap:6px}
 .ops-minibar .ops-mini-summary>div{padding:7px}
 .ops-minibar .ops-mini-detail-head h2{font-size:19px}
}


/* O-03: Tech Service detail cards, actions and independent scrolling */
.ops-technical .ops-tech-detail{overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable}
.ops-technical .ops-tech-detail-heading{min-width:0;margin:0 0 12px}
.ops-technical .ops-tech-detail-heading h2{font-size:20px;line-height:1.25;margin:0 0 5px;overflow-wrap:anywhere}
.ops-technical .ops-tech-detail-heading .hkt-muted{font-size:12px;line-height:1.4;margin:0}
.ops-technical .ops-tech-facts>div{border-bottom:1px solid #edf0f7;padding:7px 0;align-items:start}
.ops-technical .ops-tech-facts dt{font-size:12px;color:#78849b}
.ops-technical .ops-tech-facts dd{font-size:14px;font-weight:600;color:#182c4d;overflow-wrap:anywhere}
.ops-technical .ops-tech-full-detail{min-width:0}
.ops-technical .ops-tech-full-detail .mt-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 14px}
.ops-technical .ops-tech-full-detail .mt-facts>div{min-width:0;background:#f7f9fd;border:1px solid #e9edf5;border-radius:9px;padding:8px;color:#77839a;font-size:12px}
.ops-technical .ops-tech-full-detail .mt-facts strong{display:block;font-size:13px;line-height:1.4;color:#213653;margin-top:4px;overflow-wrap:anywhere}
.ops-technical .ops-tech-full-detail .mt-description{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.ops-technical .ops-tech-full-detail .mt-section{padding:12px 0;margin-top:12px}
.ops-technical .ops-tech-full-detail .mt-section h3{font-size:16px;line-height:1.35}
.ops-technical .ops-tech-full-detail .hk-table-scroll{overflow:auto;max-width:100%;scrollbar-gutter:stable}
.ops-technical .ops-tech-full-detail .hk-table{min-width:460px;font-size:12px}
.ops-technical .ops-tech-full-detail .hk-table th,.ops-technical .ops-tech-full-detail .hk-table td{font-size:12px;line-height:1.35;padding:8px 7px;min-width:0}
.ops-technical .ops-tech-full-detail .hk-table td:nth-child(2){min-width:0}
.ops-technical .ops-tech-full-detail .hk-table .hk-button{white-space:normal;min-height:31px;padding:6px 8px}
.ops-technical .ops-tech-full-detail .hk-total{margin:12px 0;padding:12px;font-size:13px}
.ops-technical .ops-tech-full-detail .hk-total strong{font-size:18px}
.ops-technical .ops-tech-full-detail .hk-note{font-size:12px;line-height:1.5;padding:10px}
.ops-technical .ops-tech-full-detail .hk-actions{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.ops-technical .ops-tech-full-detail .hk-actions button{flex:1 1 114px;min-height:var(--ui-control);white-space:normal}
.ops-technical .ops-tech-full-detail .hk-photos img{max-width:100%;max-height:125px;object-fit:cover}
.ops-technical .ops-ui-kpis button[aria-pressed=true]{border-color:#0f47f1;background:#f4f7ff;box-shadow:inset 0 0 0 1px #0f47f118}
.ops-technical .ops-tech-master>.hk-note{line-height:1.45;padding:10px 12px;font-size:13px}
.ops-technical .ops-tech-master>.hk-table-scroll{overflow:auto;flex:1 1 auto;min-height:0}
.ops-technical .ops-tech-master>h3{margin:12px 0 8px!important;font-size:16px;flex:0 0 auto}
.ops-technical .ops-tech-master>.hk-table-scroll:has(+ h3){max-height:45%}
.ops-technical .ops-tech-master>.hk-table-scroll:last-child{max-height:50%}
.ops-technical .ops-tech-master .hk-table tr[hidden]{display:none!important}
.ops-technical .ops-tech-master td .hk-actions{display:flex;flex-wrap:wrap;gap:5px}
.ops-technical .ops-tech-master td .hk-actions button{margin:0;flex:0 0 auto}
@media(min-width:901px) and (max-width:1370px){
 .ops-technical .ops-ui-category-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
 .ops-technical .ops-tech-detail-heading h2{font-size:18px}
}
@media(max-width:900px){
 .ops-technical .ops-tech-master>.hk-table-scroll{max-height:390px}
 .ops-technical .ops-tech-full-detail .mt-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:550px){
 .ops-technical .ops-tech-full-detail .mt-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* O-05: independent last-check and last-refill timeline plus audit trace. */
.ops-minibar .ops-mini-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
.ops-minibar .ops-mini-restock-meta{border-bottom:1px solid #e8edf6;padding-bottom:9px}
.ops-minibar .ops-ui-detail [data-h-op="bar-restock"]:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:1180px){.ops-minibar .ops-mini-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.ops-minibar .ops-mini-summary{grid-template-columns:minmax(0,1fr)}}
