.ops-table{max-height:68vh;overflow:auto}.ops-table table{min-width:1600px}.ops-table thead{position:sticky;top:0;z-index:3;background:#f5f6ff}.ops-table td:nth-child(1),.ops-table th:nth-child(1){min-width:145px}.ops-table td:nth-child(2),.ops-table th:nth-child(2){position:sticky;left:0;background:#fff;z-index:2;min-width:185px}.ops-table th:nth-child(2){z-index:4}.ops-table th{resize:horizontal;overflow:auto;min-width:95px}.ops-table td{padding:14px 10px}.ops-table select{min-width:140px;border:1px solid #e1e4ef;padding:6px;background:#f9f9ff;border-radius:6px}.check-note{color:#986618}.selection-bar{flex-wrap:wrap;gap:8px}.selection-bar select{max-width:220px}.side-drawer{position:fixed;left:auto;right:0;top:0;margin:0;height:100vh;max-height:100vh;width:660px;border-radius:16px 0 0 16px;overflow:auto}.side-drawer pre{white-space:pre-wrap;max-height:200px;overflow:auto}#journalPanel{position:fixed;right:0;top:0;width:min(460px,95vw);height:100vh;overflow:auto;background:#fff;z-index:100;padding:24px;box-shadow:-8px 0 35px #24274222}#journalPanel article{padding:14px 0;border-bottom:1px solid #e7e9f1}#journalPanel small,#journalPanel b{display:block}#journalPanel p{font-size:12px;overflow-wrap:anywhere}#closeJournal{float:right}.board-group summary{padding:16px;font-weight:600}.board-group details p,article{padding:10px 16px}.file-chip{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}fieldset{border:1px solid #dfe2ed;border-radius:10px;margin:14px 0}header{gap:16px}header #openJournal{margin-left:auto}#modal input[type=checkbox]{width:auto}
.ops-table td:first-child,.ops-table th:first-child{position:sticky;left:0;background:#fff;z-index:2;min-width:145px;width:145px}.ops-table td:nth-child(2),.ops-table th:nth-child(2){left:145px}.ops-table thead th:first-child{z-index:4}

.ops-table td:nth-child(2),.ops-table th:nth-child(2){left:145px}

/* Responsive layout r1: local scroll regions instead of clipped controls. */
main,.content,#board,.heading>div,.toolbar>div{min-width:0}
main{max-width:100%}
aside{overflow-y:auto;overscroll-behavior:contain}
aside>*{flex-shrink:0}
header{height:auto;min-height:73px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
header>span:first-child{min-width:0;overflow-wrap:anywhere}
header button{flex-shrink:0}
.heading{flex-wrap:wrap;gap:12px}
.heading>div:last-child{display:flex;flex-wrap:wrap;gap:8px}
.heading .secondary{margin-left:0}
.stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.toolbar{flex-wrap:wrap}
.toolbar>input{max-width:100%;min-width:120px}
.toolbar select{max-width:100%}
.section-tabs{flex-wrap:wrap}
.board-group{overflow-x:auto}
.table-wrap{max-width:100%;overscroll-behavior-x:contain;scrollbar-gutter:stable}
.ops-table{max-height:clamp(220px,calc(100dvh - 410px),68vh);scrollbar-width:auto}
.ops-table::-webkit-scrollbar{width:13px;height:13px}
.ops-table::-webkit-scrollbar-thumb{background:#a1a4c7;border:3px solid #f1f2fa;border-radius:8px}
.ops-table::-webkit-scrollbar-track{background:#f1f2fa}
.ops-table{outline-offset:2px}
footer{gap:12px;flex-wrap:wrap;overflow-wrap:anywhere}
.form-grid>*{min-width:0}
.form-grid input,.form-grid select,.form-grid textarea{max-width:100%;min-width:0}
#toast{max-width:calc(100vw - 32px);right:16px}
@media(max-width:1100px){
 aside{width:180px;padding:20px 12px}
 main{margin-left:180px}
 header{padding-left:18px;padding-right:18px;gap:8px}
 .content{padding:20px 16px}
 .toolbar>div{flex:1 1 100%}
 .toolbar>input{margin-left:0;flex:1 1 180px}
 .stats{gap:8px}.stat{padding:12px;overflow-wrap:anywhere}
 .stat strong{font-size:25px}
 .selection-bar .secondary{margin-left:0}
 .cash-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pn-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pn-intro{flex-wrap:wrap}
 .ops-table{max-height:45dvh}
}
@media(max-width:900px){
 .ops-table th:first-child,.ops-table td:first-child{position:static;min-width:125px;width:125px}
 .ops-table th:nth-child(2),.ops-table td:nth-child(2){left:0;min-width:150px;width:170px!important;max-width:210px;white-space:normal;overflow-wrap:anywhere}
 .ops-table th:nth-child(2){resize:none}
 .form-grid{grid-template-columns:minmax(0,1fr)}
 .cash-actions{flex-wrap:wrap}
}
@media(max-width:720px){
 aside{position:static;width:100%;height:auto;max-height:none;padding:12px}
 main{margin-left:0}
 aside .profile{display:flex;margin-top:10px}
 nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;margin-top:10px;gap:3px}
 nav button{white-space:normal;overflow-wrap:anywhere;padding:10px;min-width:0}
 nav span{display:none}
 header{min-height:48px;padding:10px 12px;gap:8px}
 header>span:first-child{flex-basis:100%}
 header .tag{display:none}
 header #openJournal{margin-left:0}
 .content{padding:16px 12px}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 h1{font-size:25px}
 .heading>div{max-width:100%}
 .toolbar>input,.toolbar>select{flex:1 1 100%;width:100%}
 .selection-bar button,.selection-bar select{max-width:100%;white-space:normal}
 .pn-filters>*{max-width:100%;min-width:0}
 .pn-search{flex-basis:100%;min-width:0}
 .side-drawer{width:100%;max-width:100%;border-radius:0;padding:20px 16px}
 .settings-form{padding:16px}
 .ops-table{max-height:50dvh}
 .cash-summary{grid-template-columns:minmax(0,1fr)}
}
@media(max-height:650px) and (min-width:721px){
 aside .workspace{margin:18px 0}.local-card{margin-top:20px}
 nav button{padding-top:10px;padding-bottom:10px}
}

@media(max-width:1600px){.ops-table::before{content:"↔ Остальные столбцы — прокрутите таблицу вправо (Shift + колесо мыши)";display:block;position:sticky;left:0;padding:9px 12px;font-size:11px;line-height:1.5;white-space:normal;color:#656a80;background:#f0f1fa} }
