@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url(/roboto-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-stretch: normal;
  font-display: swap;
  src: url(/roboto-500.ttf) format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url(/roboto-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-stretch: normal;
  font-display: swap;
  src: url(/roboto-700.ttf) format('truetype');
}

:root{--erp-ui-font:Roboto,Arial,sans-serif}body,button,input,select,textarea,.font-sans{font-family:var(--erp-ui-font)!important}h1,h2,h3,h4,table{font-family:var(--erp-ui-font)}input[type=number],td.right{font-variant-numeric:tabular-nums}
/* Common touch layout; desktop tables and payroll calculations remain unchanged. */
.erp-object-navigation{display:flex;justify-content:space-between;gap:8px;margin-bottom:12px}.erp-object-navigation button{padding:9px 12px;background:#fff;border:1px solid #bdcbd5;border-radius:4px;color:#205780}.erp-object-navigation .erp-object-delete{color:#a12727}
.erp-object-cards{padding:12px;display:grid;gap:12px}.erp-object-cards>input{width:100%;box-sizing:border-box;padding:10px;border:1px solid #bccbd6;border-radius:5px}.erp-object-card{padding:14px;background:#fff;border:1px solid #d1dbe3;border-radius:7px;min-width:0}.erp-object-title{display:block;width:100%;padding:0;margin-bottom:8px;border:0;background:transparent;text-align:left;color:#205780;font-weight:600;font-size:17px;line-height:1.35;overflow-wrap:anywhere}.erp-object-card p{margin:8px 0 2px}.erp-object-card small{color:#637788}.erp-object-card dl{display:grid;grid-template-columns:1fr auto;gap:5px;margin:12px 0;font-size:13px}.erp-object-card dd{margin:0;font-weight:600}.erp-object-card-actions{display:flex;gap:8px;margin-top:12px}.erp-object-card-actions button{flex:1;border:1px solid #bdcbd5;border-radius:4px;background:#fff;color:#205780;padding:8px}.erp-object-card-actions button:first-child{background:#f3f6f8;border-color:#aebdc9;color:#263640}.erp-mobile-filters>summary{padding:14px;cursor:pointer;border-bottom:1px solid #e0e4e7;color:#205780}
@media(max-width:700px){
 #root .jk-topbar{display:none!important}
 #root .objects2-object-area{padding:8px!important}
 #root .objects2-object-area .erp-object-navigation{position:relative;z-index:1}
 .erp-object-navigation button{min-height:44px;font-size:13px}
 #root .erp-object-card button{min-height:44px}
 /* A fixed modal is bounded by the visible iframe viewport, including the keyboard. */
 #root .modal-overlay,#root .fixed.inset-0{align-items:flex-start!important;overflow-y:auto!important;overscroll-behavior:contain;padding:4px!important}
 #root .modal-overlay>.modal-content,#root .fixed.inset-0>.modal-content,#root .fixed.inset-0>form{box-sizing:border-box;min-height:0!important;max-height:calc(100dvh - 8px)!important;width:100%!important;max-width:100%!important;overflow-y:auto!important;margin:0!important;border-radius:6px!important}
 #root .erp-payment-modal{display:flex;flex-direction:column;height:calc(100dvh - 8px)!important}
 #root .erp-payment-modal>div{flex-shrink:0;padding:12px!important}
 #root .erp-payment-modal>div:nth-child(2){flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
 #root .modal-content input[type=checkbox],#root .modal-content input[type=radio]{min-height:0!important;width:20px;height:20px;flex-shrink:0}
 #root .modal-content button{min-height:44px}
 #root .modal-content .grid-cols-2,#root .modal-content .grid-cols-3{grid-template-columns:minmax(0,1fr)!important}
 #root .modal-content label{overflow-wrap:anywhere}
}
.erp-create-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px;padding:12px;background:#fff;border:1px solid #ccd4dc;border-radius:4px}.erp-create-actions button{padding:10px 16px;min-height:40px}
@media(max-width:700px){
html{max-width:100%}body{min-width:0!important}body[data-erp-sidebar],body[data-erp-sidebar="collapsed"]{padding-left:0!important;padding-top:48px!important}
#erp-loading{left:12px!important;right:12px}.jk-content,.objects2-object-area{padding:8px!important;min-width:0!important}.jk-panel-head,.jk-actions{flex-wrap:wrap!important;gap:8px!important}.jk-panel-head h2{width:100%;margin-bottom:4px}.erp-create-actions{position:sticky;top:0;z-index:20}.erp-create-actions button{flex:1;white-space:normal}
.jk-work-grid{grid-template-columns:1fr!important}.jk-table-scroll,.overflow-x-auto,.table-wrap{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch}table{max-width:none}input,select,textarea{font-size:16px!important;max-width:100%;min-height:40px}button{min-height:36px}button.jk-primary,.jk-actions button{min-height:44px}
.jk-modal-overlay{padding:4px!important}.jk-modal{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 8px)!important}.jk-modal-body{padding:12px!important;overflow:auto}.jk-modal-footer{flex-wrap:wrap;gap:8px}.jk-modal-footer button{flex:1;min-height:44px}
.fixed.inset-0{padding:4px!important}.fixed.inset-0>div{max-width:100%!important;max-height:calc(100dvh - 8px)!important}.fixed.inset-0 .grid-cols-2,.fixed.inset-0 .grid-cols-3,.fixed.inset-0 .grid-cols-4{grid-template-columns:1fr!important}
dialog{width:calc(100% - 16px)!important;max-width:100%!important;max-height:calc(100dvh - 16px);padding:16px!important}.overview-cards{grid-template-columns:1fr!important}
}
@media(max-width:700px){html body[data-erp-sidebar],html body[data-erp-sidebar="collapsed"]{padding-left:0!important;padding-top:48px!important}.erp-create-actions .jk-primary{background:#f3f6f8;color:#263640;border:1px solid #aebdc9;border-radius:4px}}
/* Mobile registers: preserve readable columns; scroll the table, never squeeze text. */
@media(max-width:700px){
#root .jk-table-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto!important;overscroll-behavior-x:contain;touch-action:auto}
#root table.jk-table{table-layout:auto!important;min-width:900px!important;width:100%!important}
#root .jk-table th,#root .jk-table td{min-width:140px;max-width:320px;overflow-wrap:normal!important;word-break:normal!important;white-space:normal;line-height:1.4}
#root .jk-table th:first-child,#root .jk-table td:first-child{min-width:190px}
#root .jk-table .jk-num{min-width:125px;white-space:nowrap}
#root .jk-table .jk-link,#root .jk-table small{overflow-wrap:normal!important;word-break:normal!important;white-space:normal}
}
/* Column tools shared by all ERP modules. */
/* Important layer beats legacy nowrap/ellipsis rules, including scoped employee styles.
   Numeric cells keep their formatting; header labels and text grow the row naturally. */
@layer erp-column-wrapping {
 table :is(th,td).erp-column-wrap {
  white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
  height:auto!important;text-overflow:clip!important;
 }
 table .erp-column-wrap :is(a,button,small,strong,span,div,p):not(.erp-column-grip,.erp-col-filter,.num,.jk-num,.fu-num,.fu-number) {
  white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
  min-width:0!important;max-width:100%!important;height:auto!important;max-height:none!important;
  text-overflow:clip!important;-webkit-line-clamp:unset!important;
 }
 /* Interactive request text is an intentional exception to generic cell unclamping.
    The 3lh limit guarantees three visible lines even when generic height rules win. */
 table.request-list-table td.erp-column-wrap [data-request-text-toggle][aria-expanded="false"] {
  display:-webkit-box!important;-webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;max-height:3lh!important;overflow:hidden!important;
  white-space:normal!important;
 }
 table.request-list-table td.erp-column-wrap [data-request-text-toggle][aria-expanded="true"] {
  display:block!important;-webkit-line-clamp:unset!important;max-height:none!important;
  overflow:visible!important;white-space:pre-wrap!important;
 }
}
.erp-column-tools{display:flex;align-items:center;gap:10px;padding:6px 0;font:12px Roboto,Arial;color:#687984}.erp-column-tools button{border:1px solid #b9c8d4;background:#fff;color:#205780;border-radius:4px;padding:6px 10px;cursor:pointer}.erp-column-header{position:relative!important;cursor:grab;padding-right:14px!important}.erp-column-grip{position:absolute;right:-1px;top:0;bottom:0;width:9px;cursor:col-resize;touch-action:pan-y pinch-zoom;z-index:3;border-right:2px solid transparent}.erp-column-grip:hover,.erp-column-grip:focus{border-right-color:#278bbb;background:#278bbb33;outline:none}.erp-columns-dialog{border:1px solid #bcc8d3;border-radius:8px;padding:20px;width:min(620px,94vw);max-height:85dvh;color:#263945;background:white;font:14px Roboto,Arial}.erp-columns-dialog::backdrop{background:#0005}.erp-column-list{max-height:60dvh;overflow:auto}.erp-column-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid #e1e7ed;padding:8px}.erp-column-row>span{flex:1;min-width:80px}.erp-column-row label{font-size:11px;max-width:85px}.erp-column-row input{width:80px;display:block;padding:6px}.erp-column-row button,.erp-column-footer button{min-height:36px;padding:6px 12px;border:1px solid #bdc9d2;background:white;border-radius:4px;cursor:pointer}.erp-column-footer{display:flex;justify-content:space-between;margin-top:15px}.erp-column-row button:disabled{opacity:.35}@media print{.erp-column-tools,.erp-column-grip{display:none!important}}

/* Phone presentation only. No data, payroll or table column order changes. */
@media screen and (max-width:700px){
 html body{font-size:14px!important;line-height:1.45}
 html body *,html body *::before,html body *::after{box-sizing:border-box}
 html body input:not([type=checkbox]):not([type=radio]),html body select,html body textarea{font-size:16px!important;min-height:44px!important;max-width:100%;min-width:0}
 html body input[type=checkbox],html body input[type=radio]{min-height:20px!important;width:20px;height:20px;flex-shrink:0}
 html body button,html body .btn,html body .tiny-btn{min-height:44px!important;white-space:normal;line-height:1.3}
 html body .btn,html body .tiny-btn{font-size:13px!important}
 html body .field-wrap,html body .grow,html body .search,html body .panel,html body .card,html body .calc-card,html body .grid>*,html body .grid2>*,html body .grid3>*{min-width:0;max-width:100%}
 html body .field-wrap{grid-template-columns:minmax(0,1fr)}
 html body .field-wrap>*{min-width:0;max-width:100%}
 html body #modalRoot select,html body #modalRoot input:not([type=checkbox]):not([type=radio]){font-size:16px!important}
 html body .toolbar,html body .filters,html body .formgrid,html body .form-grid,html body .grid2,html body .grid3{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 html body .toolbar>*,html body .filters>*,html body .formgrid>*,html body .form-grid>*{min-width:0!important;max-width:100%!important;grid-column:auto!important}
 html body .toolbar select,html body .toolbar input{width:100%!important}
 html body .page-head,html body .panel-head,html body .hero-row{flex-wrap:wrap!important;gap:10px!important}
 html body .page-head>.actions,html body .panel-head>.actions{width:100%;margin:0!important}
 html body .actions,html body .modal-actions,html body .modal-foot{flex-wrap:wrap;gap:8px}
 html body .page-head .btn,html body .actions .btn{flex:1 1 140px}
 html body .tabs-inline{width:100%;max-width:100%;flex-wrap:wrap}
 html body .content,html body .page{padding:8px!important}
 html body .erp-create-actions{position:static}
 /* Native tables use one scroll container; ordinary lists become phone cards. */
 html body table,html body #root table.jk-table{table-layout:auto!important}
 html body table th,html body table td{min-width:110px;max-width:300px;white-space:normal;overflow-wrap:normal!important;word-break:normal!important;line-height:1.45;font-size:13px!important}
 html body table th:first-child,html body table td:first-child{min-width:160px}
 html body table th:has(>input[type=checkbox]),html body table td:has(>input[type=checkbox]){min-width:44px;width:44px}
 html body table td[colspan]{min-width:240px}
 html body table.jk-day-grid th,html body table.jk-day-grid td{min-width:44px;max-width:none}
 html body table.jk-day-grid th:first-child,html body table.jk-day-grid td:first-child{min-width:160px}
 html body .table-wrap,html body .one-c-wrap,html body .jk-table-scroll,html body .overflow-x-auto{min-width:0!important;max-width:100%!important}
 html body table table{max-width:100%!important}
 html body .erp-column-tools{flex-wrap:wrap;font-size:12px}
 html body .erp-column-row{flex-wrap:wrap;gap:6px}
 html body .erp-column-row>span{flex-basis:100%}
 html body .erp-column-row input{max-width:80px}
 html body .erp-column-footer{gap:8px;flex-wrap:wrap}
 html body .modal-bg{padding:4px;align-items:start;overflow-y:auto;overscroll-behavior:contain}
 html body .modal-bg>.modal{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 8px)!important;min-height:0;margin:0}
 html body .modal-content{min-width:0;min-height:0;padding:12px!important;overscroll-behavior:contain}
 html body .modal-head{padding:12px!important;flex-shrink:0}
 html body .modal-head h2{font-size:18px!important;overflow-wrap:anywhere}
 html body .modal-head .close{flex:0 0 44px}
 html body .modal-actions,html body .modal-foot{flex-shrink:0;padding:10px!important}
 html body .modal-actions>button,html body .modal-foot>button{flex:1 1 120px}
 html body dialog{max-height:calc(100dvh - 16px)!important;overflow:auto;overscroll-behavior:contain}
 html body dialog .actions{position:sticky;bottom:-16px;background:white;padding:10px 0}
 html body #root .fixed.inset-0 .flex.justify-end{flex-wrap:wrap}
 html body .calc-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body .draft-line,html body .pos-top,html body .pos-fields,html body .pos-bottom{grid-template-columns:minmax(0,1fr)!important}
 html body .batch-toolbar,html body .batch-filters,html body .workshop-toolbar,html body .analytics-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 html body .batch-toolbar>*,html body .batch-filters>*,html body .workshop-toolbar>*,html body .analytics-toolbar>*{min-width:0!important;grid-column:auto!important}
 html body .worker-picker{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
 html body .worker-picker input{width:100%}
 html body .compact-divider{flex-wrap:wrap}
 html body #materials .material-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px}
 html body #materials .material-toolbar>*{min-width:0}
 html body .erp-overview-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 html body .erp-overview-card{padding:12px;min-width:0}
 html body .erp-overview-card strong{font-size:20px;overflow-wrap:anywhere}
 html body #prodOverview{padding:10px}
 html body .erp-overview-grid section{padding:10px}
 html body .photos img{max-width:100%;height:120px;object-fit:cover}
 html body .message{max-width:95%;overflow-wrap:anywhere}
 html body #toast{left:8px;right:8px;bottom:8px;max-width:none}
 html body header{flex-wrap:wrap;padding:8px 12px}
 html body #content>.panel{padding:12px}
 html body .overview-cards button{padding:16px}
}
.erp-phone-viewbar[hidden],.erp-phone-viewbar [hidden],[data-phone-toggle][hidden]{display:none!important}
.erp-phone-filter-toggle{display:none}
@media screen and (max-width:700px){
 html body .erp-column-tools,html body .erp-column-grip{display:none!important}
 html body .erp-phone-records-host{overflow:visible!important;max-height:none!important;height:auto!important;min-width:0!important;max-width:100%!important}
 html body .erp-phone-viewbar{display:flex;align-items:center;justify-content:flex-end;gap:6px;padding:8px 0;background:#f0f2f4;flex-wrap:wrap}
 html body .erp-phone-viewbar button{min-height:40px;padding:8px 10px;background:white;color:#245780;border:1px solid #c5d0da;border-radius:6px;font-size:13px}
 html body .erp-phone-hint{margin-right:auto;font-size:12px;color:#596d7d}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:visible!important;border:0!important;background:transparent!important}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards>colgroup,html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards>thead{display:none!important}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards>tbody,html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards>tfoot{display:grid!important;gap:12px;width:100%}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards>tbody>tr,html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards>tfoot>tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px!important;margin:0;border:1px solid #cdd8e1!important;border-radius:10px;background:#fff!important;position:relative;min-width:0;height:auto!important;max-height:none!important;box-shadow:0 1px 2px #203b5010}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards>tbody>tr>td,html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards>tfoot>tr>td{display:block!important;position:static!important;min-width:0!important;max-width:none!important;width:auto!important;height:auto!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;text-align:left!important;border:0!important;padding:0!important;background:transparent!important;font-size:14px!important;color:#283d4e}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td::before{content:attr(data-phone-label);display:block;font-size:11px;line-height:1.3;color:#6a7c8b;font-weight:400;margin-bottom:4px}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td.erp-phone-wide,html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td.erp-phone-title,html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td.erp-phone-actions,html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards [data-phone-toggle]{grid-column:1/-1}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td.erp-phone-title{order:-2;font-size:16px!important;font-weight:600!important;color:#205780;padding-bottom:10px!important;border-bottom:1px solid #edf1f5!important}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td.erp-phone-title::before,html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td.erp-phone-actions::before,html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards [data-phone-toggle]::before{display:none}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards tr:not(.erp-phone-expanded)>td.erp-phone-detail{display:none!important}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td.erp-phone-actions{display:flex!important;flex-wrap:wrap;gap:8px;padding-top:8px!important;order:2}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td.erp-phone-selection{order:-3;grid-column:1/-1;display:flex!important;align-items:center;gap:8px;justify-content:flex-end}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards [data-phone-toggle]{order:3}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards [data-phone-toggle]>button{width:100%;font-size:13px;min-height:38px;padding:8px;color:#245780;background:#f3f7fa;border:0;border-radius:6px}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td .truncate,html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td .workshop-clip,html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td .work-name,html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td .jk-link,html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td [class*=line-clamp]{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:100%!important;display:block!important;-webkit-line-clamp:unset!important}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td button,html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td a{max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td button{min-height:44px!important;min-width:44px;font-size:13px!important;padding:8px!important}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td.erp-phone-actions>div{display:flex!important;flex-wrap:wrap!important;gap:8px!important;width:100%}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td{overflow:visible!important;max-height:none!important;min-height:0!important}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td>div,html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td>span:not(.material-symbols-outlined){white-space:normal!important;max-height:none!important;height:auto!important;max-width:100%!important}
 html body #journalTable .journal-detail{padding:8px!important}
 html body #materials .erp-phone-filter-panel:not(.erp-phone-filter-open){display:none!important}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards tr.hidden,html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards tr[hidden],html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards tr[style*="display: none"],html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards tr[style*="display:none"]{display:none!important}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td.erp-phone-title button,html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards td.erp-phone-title a{font-size:16px!important;line-height:1.4;text-align:left}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards .erp-phone-fullrow{display:block!important}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards .erp-phone-fullrow>td{width:100%!important;min-width:0!important}
 html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards input:not([type=checkbox]):not([type=radio]),html body :is(#root,#content,.app,#modalRoot,dialog) table.erp-phone-cards.erp-phone-cards select{width:100%!important;min-width:0!important;max-width:100%!important}
 html body .erp-phone-scroll{overflow:auto!important;max-height:68dvh!important;max-width:100%!important;min-width:0!important;-webkit-overflow-scrolling:touch;touch-action:auto;overscroll-behavior-x:contain;position:relative}
 html body .erp-phone-scroll>.erp-phone-viewbar{position:sticky;top:0;left:0;z-index:12}
 html body table.erp-phone-grid,html body #root table.erp-phone-grid{display:table!important;overflow:visible!important;width:max-content!important;min-width:100%!important;max-width:none!important;table-layout:auto!important;touch-action:auto}
 html body table.erp-phone-grid th,html body table.erp-phone-grid td{touch-action:auto}
 html body table.erp-phone-grid [data-phone-toggle]{display:none!important}
 html body .erp-phone-filter-toggle{display:block;width:100%;text-align:left;padding:12px;color:#245780;background:white;border:1px solid #c9d5df;border-radius:6px;margin:10px 0}
 html body .erp-phone-filter-panel:not(.erp-phone-filter-open){display:none!important}
}


/* ─────────────────────────────────────────────────────────────────────────
   Карточка заявки: единая типографика и иерархия.
   Всё ограничено .request-dense-card, чтобы не задеть остальные экраны.
   Разметка не менялась — только подача.
   ───────────────────────────────────────────────────────────────────────── */
.request-dense-card{
  --rq-text:#1e293b; --rq-muted:#64748b; --rq-line:#e2e8f0;
  --rq-accent:#245780; --rq-field:#cbd5e1; --rq-soft:#f8fafc;
  color:var(--rq-text);
}

/* Заголовки разделов: главная опора для глаза. */
.request-dense-card .request-dense-section{
  border:1px solid var(--rq-line); border-radius:6px;
  margin-bottom:14px; overflow:hidden; background:#fff;
}
.request-dense-card .request-dense-section-header{
  display:flex; align-items:center; gap:10px;
  padding:9px 12px; background:var(--rq-soft);
  border-bottom:1px solid var(--rq-line);
}
.request-dense-card .request-dense-section-header h3{
  margin:0; font-size:13px; font-weight:600; letter-spacing:.01em;
  color:var(--rq-text); position:relative; padding-left:10px;
}
.request-dense-card .request-dense-section-header h3::before{
  content:""; position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:3px; height:13px; border-radius:2px; background:var(--rq-accent);
}
.request-dense-card .request-dense-section-body{padding:12px}

/* Строка реквизитов: дата, счётчики работ и материалов. */
.request-dense-card .request-dense-meta{
  gap:0 18px; flex-wrap:wrap; padding:8px 12px;
  font-size:11px; color:var(--rq-muted);
  background:var(--rq-soft); border-bottom:1px solid var(--rq-line);
}

/* Подписи полей. Была заливка и полная сетка — остаётся тихий текст,
   разделяются только строки. Так форма перестаёт выглядеть бланком. */
.request-dense-card .request-main-table{border-collapse:collapse; width:100%}
.request-dense-card .request-main-table th{
  background:transparent !important;
  border:0 !important;
  border-bottom:1px solid var(--rq-line) !important;
  /* Вертикальная линия вместо заливки: структура остаётся, тяжести нет. */
  border-right:1px solid var(--rq-line) !important;
  /* 15px сверху = отступ ячейки (7) + рамка поля (1) + отступ внутри поля (7).
     Так подпись стоит на одной линии со значением. */
  padding:15px 14px 8px 2px !important;
  font-size:12px !important; font-weight:600 !important;
  color:#334155 !important;
  text-align:left; vertical-align:top !important; line-height:1.35;
}
.request-dense-card .request-main-table td.request-table-field{
  border:0 !important; border-bottom:1px solid var(--rq-line) !important;
  padding:7px 14px !important; vertical-align:top;
}
/* Чередование помогает глазу дойти от подписи до поля, не теряя строку. */
.request-dense-card .request-main-table tr:nth-child(even) th,
.request-dense-card .request-main-table tr:nth-child(even) td{background:#f7f9fb}
.request-dense-card .request-result-cell{background:transparent !important}
.request-dense-card .request-main-table tr:last-child th,
.request-dense-card .request-main-table tr:last-child td{border-bottom:0 !important}

/* Поля ввода: одинаковая геометрия и заметный фокус —
   чтобы было видно, куда вписывать. */
.request-dense-card input[type=text],.request-dense-card input[type=date],
.request-dense-card input[type=number],.request-dense-card select,
.request-dense-card textarea{
  border:1px solid #9aa8b8 !important; border-radius:4px !important;
  padding:7px 9px !important; font-size:13px !important;
  color:#0f172a !important; background:#fff !important;
  width:100%; box-sizing:border-box;
}
.request-dense-card input:focus,.request-dense-card select:focus,
.request-dense-card textarea:focus{
  outline:2px solid var(--rq-accent) !important; outline-offset:0 !important;
  border-color:var(--rq-accent) !important;
}
.request-dense-card textarea{line-height:1.5; min-height:72px; resize:vertical}
.request-dense-card .request-result-cell textarea{min-height:150px}

/* Флажки выполнения — как связная группа, а не два случайных поля. */
.request-dense-card .request-inline-flags{display:flex; gap:16px; flex-wrap:wrap}
.request-dense-card .request-inline-flag{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; color:var(--rq-text); white-space:nowrap;
}

/* Галерея. Была главной причиной «пыли»: несколько десятков фото
   в полный рост выдавливали вниз состав заявки и суммы.
   Теперь это ограниченная область с прокруткой.
   Ограничение вешается на .request-dense-file — это блочная обёртка
   всего списка файлов. На саму ячейку нельзя: max-height не действует
   на display:table-cell. */
.request-dense-card .request-table-files-cell{
  padding:0 !important; background:transparent !important; border:0 !important;
}
.request-dense-card .request-table-files-cell > .request-dense-file{
  display:block; box-sizing:border-box;
  max-height:420px; overflow-y:auto; overflow-x:hidden;
  background:var(--rq-soft); border:1px solid var(--rq-line);
  border-radius:6px; padding:10px;
}
.request-dense-card .request-dense-file::-webkit-scrollbar{width:9px}
.request-dense-card .request-dense-file::-webkit-scrollbar-thumb{
  background:#cbd5e1; border-radius:5px;
}

/* Превью. Контейнер миниатюры имел высоту 48px при overflow:hidden,
   поэтому фото превращалось в полоску и разглядеть на нём было нечего.
   Высота задаётся явно: выражать её через height:auto нельзя —
   картинка внутри объявлена как height:100%, и размеры зацикливаются.
   Съёмка с телефона обычно вертикальная, поэтому object-fit: cover. */
.request-dense-card .request-table-files-cell button:has(img){
  height:150px !important; min-height:150px !important;
  width:100%; display:block; padding:0; overflow:hidden;
  border-radius:6px; background:#eef2f6;
}
.request-dense-card .request-table-files-cell button:has(img) img{
  height:100% !important; width:100% !important;
  object-fit:cover; display:block;
}

/* Состав заявки: числа выравниваются по правому краю и
   набираются моноширинными цифрами — суммы становятся читаемыми. */
.request-dense-card .request-composition-table{border-collapse:collapse; width:100%}
.request-dense-card .request-composition-table th{
  background:var(--rq-soft) !important; color:var(--rq-muted) !important;
  font-size:11px !important; font-weight:500 !important;
  padding:8px 10px !important; border-bottom:1px solid var(--rq-line) !important;
}
.request-dense-card .request-composition-table td{
  padding:6px 10px !important; border-bottom:1px solid var(--rq-line) !important;
  font-size:12.5px;
}
.request-dense-card .request-col-qty,
.request-dense-card .request-col-price,
.request-dense-card .request-col-total{
  text-align:right; font-variant-numeric:tabular-nums;
}
.request-dense-card .request-composition-heading{
  font-size:12.5px; font-weight:600; color:var(--rq-text);
}

/* Разводим действия: удаление не должно соседствовать с сохранением. */
.request-dense-card .request-line-delete{color:#b42318}

/* ─────────────────────────────────────────────────────────────────────────
   Навигация внутри «Производства» и «Склада».
   У обоих модулей своя навигация по разделам, но operations.css прятал
   её целиком: у производства — .tabs, у склада — .sidebar. Провалившись
   в журнал с карточки обзора, вернуться было нечем: боковое меню эти
   модули не слушают, они игнорируют и section, и tab, и page, и событие
   erp:route.
   Оба класса встречаются только в своих модулях, поэтому показ
   безопасен. Склад выводится горизонтальной панелью, а не вторым
   боковым меню, чтобы не отъедать ширину и совпадать с производством.
   ───────────────────────────────────────────────────────────────────────── */
html body nav.tabs,
html body aside.sidebar nav.nav{
  display:flex !important; flex-wrap:wrap; gap:6px;
  margin:0 0 16px; padding:0 0 12px;
  border-bottom:1px solid #d3dae1;
  grid-template-columns:none !important;
  overflow-x:auto;
}
html body aside.sidebar{
  display:block !important; position:static !important;
  width:auto !important; max-width:none !important;
  margin:0 !important; padding:0 !important;
  background:transparent !important; border:0 !important; box-shadow:none !important;
}
html body nav.tabs .tab,
html body aside.sidebar nav.nav button{
  display:inline-block; width:auto !important; text-align:left;
  padding:7px 13px; border-radius:5px; white-space:nowrap;
  border:1px solid #cbd5e1; background:#fff; color:#245780;
  font:500 12.5px/1.3 Roboto,Arial,sans-serif; cursor:pointer;
}
html body nav.tabs .tab.active,
html body aside.sidebar nav.nav button.active{
  background:#e7edf2; border-color:#829bac; color:#1d3344;
}
html body nav.tabs .tab:hover:not(.active),
html body aside.sidebar nav.nav button:hover:not(.active){background:#eef3f7}
html body nav.tabs .tab:focus-visible,
html body aside.sidebar nav.nav button:focus-visible{outline:2px solid #d2bc62; outline-offset:1px}
/* Разделитель перед «Сервисом» в вертикальном меню в строку не нужен. */
html body aside.sidebar nav.nav .sep{display:none !important}

@media (max-width:900px){
  .request-dense-card .request-main-table th{padding-bottom:2px !important}
  .request-dense-card .request-table-files-cell > .request-dense-file{max-height:300px}
  .request-dense-card .request-table-files-cell button:has(img){height:120px !important;min-height:120px !important}
}

/* ─────────────────────────────────────────────────────────────────────────
   Объект и его карточка — строгий вид в стилистике 1С: белый фон, тонкие
   линии, один акцентный цвет, суммы моноширинными цифрами. Классы ставят
   правки migration/onec-patch.mjs; блоки 1С (onec-ui.js) используют те же.
   ───────────────────────────────────────────────────────────────────────── */
.erp-object-head{border:1px solid #c7d0d9 !important;border-radius:4px !important;box-shadow:none !important}
.erp-object-head-main{padding:12px 14px !important}
.erp-object-head-main h2{margin-top:6px !important;font-size:18px !important;font-weight:600 !important;line-height:1.3;color:#1e293b}
.erp-object-head-main h2+div{margin-top:2px !important;font-size:12.5px !important;color:#64748b !important}
/* Статус, тип и график — спокойные прямоугольные метки вместо цветных «пилюль». */
.erp-object-head-main .rounded-full{border-radius:3px !important;border:1px solid #cfd8e1 !important;background:#f4f6f8 !important;color:#334155 !important;font-size:11.5px !important;font-weight:500 !important}
.erp-object-head-main .rounded-full.bg-red-100{background:#fdf0f0 !important;color:#a12727 !important;border-color:#e8bcbc !important}
.erp-object-head-main .rounded-full.bg-amber-100{background:#fdf7e8 !important;color:#8a5a00 !important;border-color:#e9d39a !important}
.erp-object-head-main .rounded-full select{font-weight:500 !important}
/* Кнопки действий: одинаковые, серые; основная — «Заявка». */
.erp-object-actions{gap:6px !important}
.erp-object-actions>button{border-radius:3px !important;border:1px solid #a9b5c1 !important;background:linear-gradient(#fff,#eef1f4) !important;color:#1e293b !important;font-size:13px !important;font-weight:500 !important;padding:5px 11px !important;box-shadow:none !important}
.erp-object-actions>button:hover:not(:disabled){background:#e6ebf0 !important;border-color:#8795a4 !important}
.erp-object-actions>button:disabled{opacity:.45 !important}
.erp-object-actions>button .material-symbols-outlined{font-size:17px !important;color:#5f7084}
.erp-object-actions>button:first-child{background:#f3f6f8 !important;border-color:#aebdc9 !important;color:#263640 !important}
.erp-object-actions>button:first-child .material-symbols-outlined{color:inherit}
.erp-object-actions>button:first-child:hover{background:#e7edf2 !important}
/* Вкладки объекта — тот же акцент. */
.erp-object-head .border-indigo-600{border-color:#245780 !important}
.erp-object-head .text-indigo-700{color:#245780 !important}
/* Плитки сумм (объект и блоки 1С). */
.erp-money-grid{gap:6px !important;margin-top:10px !important}
.erp-money{display:block;box-sizing:border-box;width:100%;min-width:0;text-align:left;padding:7px 10px;background:#fff;border:1px solid #d3dbe3;border-radius:3px;color:#1e293b;font:inherit}
button.erp-money{cursor:pointer;transition:background .12s,border-color .12s}
button.erp-money:hover{background:#f5f8fa;border-color:#a9b7c5}
.erp-money-label{font-size:11.5px;line-height:1.3;color:#64748b}
.erp-money-value{margin-top:2px;font-size:16px;line-height:1.3;font-weight:600;color:#1e293b;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.erp-money-negative,.erp-onec-tiles .erp-money[data-tone="red"] .erp-money-value{color:#a12727}
.erp-money-note{margin-top:1px;font-size:11px;line-height:1.3;color:#8391a0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Кнопки блоков 1С. */
.erp-btn{display:inline-flex;align-items:center;gap:5px;box-sizing:border-box;border:1px solid #a9b5c1;border-radius:3px;background:linear-gradient(#fff,#eef1f4);color:#1e293b;font:500 13px/1.3 var(--erp-ui-font);padding:5px 10px;cursor:pointer;white-space:nowrap}
.erp-btn:hover:not(:disabled){background:#e6ebf0;border-color:#8795a4}
.erp-btn:disabled{opacity:.45;cursor:default}
.erp-btn .material-symbols-outlined{font-size:17px;color:#5f7084}
.erp-btn-primary{background:#f3f6f8;border-color:#aebdc9;color:#263640}
.erp-btn-primary:hover:not(:disabled){background:#e7edf2;border-color:#829bac;color:#1d3344}
.erp-btn-primary .material-symbols-outlined{color:inherit}
/* Карточка объекта (окно «Карточка объекта»). */
.erp-object-form{border-radius:4px !important;border-color:#b9c4cf !important}
.erp-object-form h2{font-size:17px !important;font-weight:600 !important}
.erp-object-form section{border-radius:4px !important;border-color:#d3dbe3 !important}
.erp-object-form h3{position:relative;padding-left:10px;font-size:13px !important;font-weight:600 !important;color:#1e293b !important}
.erp-object-form h3::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:13px;border-radius:2px;background:#245780}
.erp-object-form label{font-size:12px !important;font-weight:600 !important;color:#334155 !important}
.erp-object-form input,.erp-object-form select,.erp-object-form textarea{border:1px solid #9aa8b8 !important;border-radius:3px !important;padding:6px 9px !important;font-size:13px !important;box-shadow:none !important}
.erp-object-form input:focus,.erp-object-form select:focus,.erp-object-form textarea:focus{outline:2px solid #245780 !important;outline-offset:0 !important;border-color:#245780 !important}
.erp-object-form button{border-radius:3px !important}
.erp-object-form button[type=submit]{background:#f3f6f8 !important;color:#263640 !important}
.erp-object-form button[type=submit]:hover{background:#e7edf2 !important}
.erp-field-hint{margin-top:3px;font-size:11.5px;line-height:1.35;color:#64748b}
.erp-field-hint[data-tone="ok"]{color:#2f6b3a}
.erp-field-hint[data-tone="warn"]{color:#9a5b00}
/* Подсказки из 1С под полем ввода. */
.erp-suggest{position:fixed;z-index:2147483600;max-height:320px;overflow:auto;background:#fff;border:1px solid #9aa8b8;border-radius:3px;box-shadow:0 6px 18px rgba(15,23,42,.18);font:13px/1.35 var(--erp-ui-font);color:#1e293b}
.erp-suggest-head{padding:6px 10px;font-size:11.5px;color:#64748b;background:#f4f6f8;border-bottom:1px solid #e2e8f0}
.erp-suggest button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #eef2f5;background:#fff;padding:7px 10px;cursor:pointer;font:inherit;color:inherit}
.erp-suggest button:hover,.erp-suggest button.erp-active{background:#fbf3d0}
.erp-suggest small{color:#64748b}
/* Документ 1С во всплывающем окне. */
.erp-doc-link{border:0;background:none;padding:0;color:#1d4ed8;cursor:pointer;font:inherit;text-decoration:underline dotted;text-underline-offset:2px;white-space:nowrap}
.erp-doc-link:hover{text-decoration-style:solid}
.erp-doc-pop{position:fixed;z-index:2147483600;box-sizing:border-box;width:min(560px,calc(100vw - 16px));max-height:min(460px,calc(100vh - 16px));overflow:auto;background:#fff;border:1px solid #9aa8b8;border-radius:3px;box-shadow:0 8px 24px rgba(15,23,42,.22);font:13px/1.4 var(--erp-ui-font);color:#1e293b}
.erp-doc-pop header{position:sticky;top:0;display:flex;justify-content:space-between;gap:8px;align-items:flex-start;padding:8px 10px;background:#f4f6f8;border-bottom:1px solid #d5dde5}
.erp-doc-pop header b{font-weight:600}
.erp-doc-pop header button{border:0;background:none;font-size:18px;line-height:1;color:#64748b;cursor:pointer;padding:0 2px}
.erp-doc-pop section{padding:8px 10px;border-bottom:1px solid #eef2f5}
.erp-doc-pop section:last-child{border-bottom:0}
.erp-doc-pop h4{margin:0 0 4px;font-size:11.5px;font-weight:600;color:#64748b}
.erp-doc-pop p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.erp-doc-pop table{width:100%;border-collapse:collapse;font-size:12.5px}
.erp-doc-pop th{text-align:left;font-weight:500;color:#64748b;padding:3px 4px;border-bottom:1px solid #e2e8f0}
.erp-doc-pop td{padding:4px;border-bottom:1px solid #f1f5f9;vertical-align:top}
.erp-doc-pop .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}

/* «Заявки»: компактная панель — одинаковые небольшие кнопки, плотные фильтры и таблица. */
.erp-requests .jk-panel-head{padding:8px 12px !important}
.erp-requests .jk-panel-head h2{font-size:16px !important;font-weight:600 !important}
.erp-requests section{border-radius:4px !important;border-color:#d3dbe3 !important;box-shadow:none !important}
.erp-requests .p-4{padding:10px !important}
.erp-requests .gap-3{gap:8px !important}
.erp-requests label{font-size:10.5px !important}
.erp-requests input[type="text"],.erp-requests input:not([type]),.erp-requests select{border:1px solid #9aa8b8 !important;border-radius:3px !important;padding:5px 8px !important;font-size:13px !important}
.erp-requests input.pl-10{padding-left:30px !important}
.erp-requests button{border-radius:3px !important;font-size:12.5px !important;font-weight:500 !important;padding:4px 9px !important;line-height:1.35}
.erp-requests button .material-symbols-outlined{font-size:15px !important}
.erp-requests .jk-panel-head button,.erp-requests section button{border:1px solid #a9b5c1 !important;background:linear-gradient(#fff,#eef1f4) !important;color:#1e293b !important}
.erp-requests .jk-primary,.erp-requests .bg-indigo-600{background:#f3f6f8 !important;border-color:#aebdc9 !important;color:#263640 !important}
.erp-requests .jk-primary .material-symbols-outlined,.erp-requests .bg-indigo-600 .material-symbols-outlined{color:inherit !important}
.erp-requests button:disabled{opacity:.45 !important}
/* Таблица заявок: плотные строки, ссылки остаются ссылками. */
.erp-requests table{font-size:12.5px !important}
.erp-requests table th,.erp-requests table td{padding:6px 8px !important}
.erp-requests table th button{border:0 !important;background:none !important;padding:0 !important;font-size:11px !important;color:#64748b !important}
.erp-requests table td button{padding:2px 8px !important}
.erp-requests table td button.text-left{border:0 !important;background:none !important;padding:0 !important;color:#1d4ed8 !important;font-size:12.5px !important;font-weight:600 !important}
.erp-requests table td button.border{border-color:#a9b5c1 !important;background:linear-gradient(#fff,#eef1f4) !important;color:#1e293b !important}
/* Заголовок раздела: название слева, кнопки прижаты вправо; панели без лишних отступов. */
.erp-requests .jk-panel-head{justify-content:flex-start !important;gap:8px !important}
.erp-requests .jk-panel-head h2{margin-right:auto !important}
.erp-requests section > div + div{margin-top:8px !important;padding-top:8px !important;border-top:1px solid #eef2f5 !important}
.erp-requests section button.w-full{width:auto !important}
/* «Фото и файлы»: плитка файла компактная — небольшой значок и имя, без трети экрана на каждый файл. */
.erp-file-tile{border-radius:3px !important;border-color:#d3dbe3 !important;box-shadow:none !important}
.erp-file-tile > button:first-child{height:54px !important}
.erp-file-tile > button:first-child .material-symbols-outlined{font-size:22px !important}
.erp-file-tile > button:first-child span:last-child{margin-top:1px !important;font-size:10px !important}
.erp-file-tile .p-3{padding:6px 8px !important}
.erp-file-tile .p-3 button{font-size:12px !important}
.erp-file-tile .p-3 div{font-size:10.5px !important}

/* Плотные таблицы на телефоне: режим «таблица» в справочнике сотрудников и сводка табеля
   наследуют шрифт 8-10px от узкого экрана компьютера — на телефоне это нечитаемо. */
@media(max-width:700px){
 .employee-directory-table{font-size:12.5px!important}
 .employee-directory-table th{font-size:11px!important}
 .employee-directory-table th,.employee-directory-table td{padding:6px!important;line-height:1.35!important;white-space:normal!important}
 .employee-directory-table tbody tr{height:auto!important}
 .employee-directory-table .employee-actions{flex-wrap:wrap!important;white-space:normal!important}
 .employee-directory-table .employee-actions button{font-size:12px!important;padding:6px 8px!important}
 .timesheet-worker-summary{font-size:12px!important}
 .timesheet-worker-summary thead th{font-size:11px!important}
}

/* Телефон: список заявок больше не требует листать вбок — колонки переносятся по ширине экрана.
   Широкие журналы (табель, журнал работ) намеренно не трогаем: там колонки по дням. */
@media(max-width:700px){
 #root table[class*="min-w-[1160px]"]{min-width:0!important;width:100%!important;table-layout:auto!important}
 #root table[class*="min-w-[1160px]"] th,#root table[class*="min-w-[1160px]"] td{min-width:0!important;max-width:none!important;white-space:normal!important;overflow-wrap:anywhere;font-size:12px!important;padding:6px 4px!important;line-height:1.3}
 #root table[class*="min-w-[1160px]"] th{font-size:11px!important}
 #root table[class*="min-w-[1160px]"] .whitespace-nowrap{white-space:normal!important}
}

/* Телефон: ряды кнопок переносятся, а не уезжают вбок. Панели с justify-between рассчитаны
   на широкий экран; при крупном системном шрифте они вылезали за край и приходилось листать. */
@media(max-width:700px){
 #root .flex.justify-between,#root .flex.items-center.justify-between{flex-wrap:wrap!important}
 #root .flex.justify-between>*{min-width:0;max-width:100%}
 #root .whitespace-nowrap.overflow-x-auto,#root .overflow-x-auto>.flex{flex-wrap:wrap!important}
}

/* Телефон: явная кнопка «Назад» в карточке заявки — иконку закрытия в углу не находят. */
@media(max-width:700px){
 .erp-mobile-back{display:block!important;width:100%;margin:0 0 8px;padding:10px 12px;border:1px solid #c3ccd4;border-radius:6px;background:#f4f6f8;color:#1f2933;font-size:15px;font-weight:600;text-align:left;min-height:44px}
 .erp-mobile-back:active{background:#e7ebef}
}
@media(min-width:701px){.erp-mobile-back{display:none!important}}

/* Телефон: форма заявки складывается в столбик — подпись сверху, поле под ней.
   Раньше это была таблица «подпись | поле | подпись | поле» шириной ~900px, и её листали вбок. */
@media(max-width:700px){
 /* Без привязки к #root: карточка заявки рисуется поверх страницы, вне корневого блока. */
 table.request-main-table{display:block!important;width:100%!important;min-width:0!important}
 table.request-main-table tbody,table.request-main-table tr{display:block!important;width:100%!important;height:auto!important}
 table.request-main-table colgroup,table.request-main-table col{display:none!important}
 table.request-main-table td,table.request-main-table th{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;border:0!important;padding:2px 0!important;text-align:left!important;overflow:visible!important;white-space:normal!important}
 table.request-main-table tr{border-bottom:1px solid #e6eaee!important;padding:6px 0!important}
 table.request-main-table input,table.request-main-table select,table.request-main-table textarea{width:100%!important;max-width:100%!important;box-sizing:border-box}
 /* Своя прокрутка у обёртки таблицы на телефоне только мешает: лист и так листается. */
 .request-main-table-wrap{overflow:visible!important;max-height:none!important;width:100%!important}
 /* Подсказку «Листайте по строкам» и стрелки у этой формы прячем — листать больше нечего. */
 div:has(+ table.request-main-table){display:none!important}
 /* Узкие двухколоночные блоки сумм тоже вписываем в экран. */
 #root table.erp-phone-grid[class~="w-full"]{min-width:0!important;width:100%!important;table-layout:fixed!important}
 #root table.erp-phone-grid[class~="w-full"] td{word-break:break-word}
}

/* Ergonomic registers: screen presentation only; the printed forms keep their layout. */
@media screen {
 .accounting-shell{color:#263640;min-width:0!important}
 .accounting-shell :is(button,input,select,textarea){font-family:var(--erp-ui-font)!important}
 .accounting-shell button:not(.wj-link):not(.wj-heading):not(.jk-request-link):not(.jk-company-cost-link){border-radius:8px!important}
 .accounting-shell :is(input,select,textarea):not([type=checkbox]):not([type=radio]){border-radius:6px!important}
 .accounting-shell :is(.jk-panel,.jk-month-workspace,.jk-hours-editor,.jk-hours-bulk){border-radius:10px!important}
 .accounting-shell :is(.jk-hours-toolbar,.jk-month-controls){gap:8px!important;align-items:center}
 .accounting-shell :is(.jk-table-scroll,.timesheet-details-scroll){scrollbar-width:auto;scrollbar-color:#a1b1bf #edf1f4;overscroll-behavior-x:contain;touch-action:pan-x pan-y pinch-zoom;}
 .accounting-shell :is(.jk-table-scroll,.timesheet-details-scroll)::-webkit-scrollbar{height:12px;width:10px}
 .accounting-shell :is(.jk-table-scroll,.timesheet-details-scroll)::-webkit-scrollbar-thumb{background:#a1b1bf;border:2px solid #edf1f4;border-radius:8px}
 .accounting-shell :is(.jk-table-scroll,.timesheet-details-scroll)::-webkit-scrollbar-track{background:#edf1f4}
 .accounting-shell button:focus-visible,.accounting-shell input:focus-visible,.accounting-shell select:focus-visible{outline:2px solid #477f9f!important;outline-offset:2px}
 .jk-grid-phone-controls,.jk-grid-phone-totals{display:none}
}
@media screen and (max-width:700px) {
 html body #root .accounting-shell{height:auto!important;min-height:100dvh;max-width:100%;font-size:14px}
 html body #root .accounting-shell main,html body #root .accounting-shell .jk-content{min-width:0!important;max-width:100%;padding:10px!important}
 html body #root .accounting-shell :is(.jk-month-workspace,.jk-work-journal){padding:10px!important;border:1px solid #d5dde3;background:#fff;border-radius:10px!important}
 html body #root .accounting-shell :is(.jk-hours-toolbar,.jk-month-controls){flex-wrap:wrap;gap:8px!important}
 html body #root .accounting-shell :is(.jk-hours-toolbar,.jk-month-controls)>:is(input,select){max-width:100%!important;flex:1 1 140px;width:auto!important}
 html body #root .accounting-shell .jk-hours-toolbar>label{display:flex;align-items:center;gap:7px;min-height:38px;flex:1 1 100%}
 html body #root .accounting-shell .jk-hours-toolbar>input.jk-fill-hours{width:72px!important;max-width:72px!important;flex:0 0 72px}
 html body #root .accounting-shell .jk-grid-help{font-size:12px!important;line-height:1.45!important;color:#657581;flex-basis:100%}
 html body #root .accounting-shell .jk-grid-phone-controls{display:grid;gap:8px;margin:12px 0}
 html body #root .accounting-shell .jk-grid-phone-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#eef2f5;border-radius:9px}
 html body #root .accounting-shell .jk-grid-phone-tabs button{border:1px solid transparent;background:transparent;padding:6px;font-size:13px!important;min-width:0}
 html body #root .accounting-shell .jk-grid-phone-tabs button[aria-pressed=true]{background:#fff;border-color:#cbd6df;color:#245779;font-weight:600}
 html body #root .accounting-shell .jk-grid-day-nav{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px}
 html body #root .accounting-shell .jk-grid-day-nav button{font-size:24px!important;border:1px solid #c4d0d9;background:#fff}
 html body #root .accounting-shell .jk-grid-day-nav select{width:100%!important;text-align:center;max-width:none!important}
 html body #root .accounting-shell .jk-grid-phone-controls small{font-size:12px;color:#657581;line-height:1.4}
 html body #root .accounting-shell .jk-month-matrix .jk-table-scroll{max-height:none!important;width:100%!important;overflow:auto!important;border:1px solid #cbd5de;border-radius:8px;}
 html body #root .accounting-shell .jk-month-matrix table.jk-day-grid{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0}
 html body #root .accounting-shell .jk-month-matrix table.jk-day-grid :is(th,td){box-sizing:border-box;min-width:0!important;max-width:none!important;width:auto!important;padding:4px 2px!important;height:auto;line-height:1.3!important;overflow:hidden;border:0;border-right:1px solid #dce3e8;border-bottom:1px solid #dce3e8;font-size:13px!important}
 html body #root .accounting-shell .jk-month-matrix table.jk-day-grid :is(th,td).jk-matrix-name{width:124px!important;min-width:124px!important;max-width:124px!important;padding:6px 7px!important;left:0!important;background:#f6f8fa!important;white-space:normal!important}
 html body #root .accounting-shell .jk-month-matrix .jk-matrix-name strong{white-space:normal!important;font-size:12px;line-height:1.35}
 html body #root .accounting-shell .jk-month-matrix .jk-matrix-name small{white-space:normal!important;font-size:11px;line-height:1.3}
 html body #root .accounting-shell .jk-month-matrix .jk-matrix-name .jk-employee-move{display:none}
 html body #root .accounting-shell .jk-month-matrix .jk-date-cell input{width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:44px!important;padding:2px!important;font-size:16px!important;border-radius:5px!important;text-align:center!important;touch-action:pan-x pan-y pinch-zoom}
 html body #root .accounting-shell .jk-month-matrix .jk-date-cell input[readonly]{cursor:pointer;color:#245779!important;background:#f2f7fa!important}
 html body #root .accounting-shell .jk-month-matrix:not(.jk-phone-info) .jk-day-grid :is(.jk-matrix-crew,.jk-matrix-rate,.jk-matrix-norm,.jk-matrix-total,.jk-matrix-actions,.jk-phone-hidden-day){display:none!important}
 html body #root .accounting-shell .jk-month-matrix.jk-phone-info .jk-date-cell{display:none!important}
 html body #root .accounting-shell .jk-month-matrix.jk-phone-info table.jk-day-grid{min-width:700px!important;table-layout:auto!important}
 html body #root .accounting-shell .jk-month-matrix.jk-phone-info .jk-matrix-crew input{width:100px!important;max-width:100px!important}
 html body #root .accounting-shell .jk-month-matrix.jk-phone-info .jk-matrix-actions button{width:auto!important;height:auto!important;min-height:36px!important;font-size:12px!important;padding:6px!important}
 html body #root .accounting-shell .jk-month-matrix .jk-day-grid tfoot{display:none!important}
 html body #root .accounting-shell .jk-month-matrix .jk-confirm-days{width:100%!important;min-height:38px!important;height:auto!important;white-space:normal!important;padding:3px!important;font-size:11px!important;line-height:1.3!important;margin-top:4px;border-radius:5px!important}
 html body #root .accounting-shell .jk-grid-phone-totals{display:block;margin:8px 0;padding:10px;background:#f3f6f8;border-radius:7px;font-size:13px;font-weight:600}
 html body #root .accounting-shell :is(.jk-month-money,.wj-summary){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px}
 html body #root .accounting-shell .jk-month-money button{min-width:0!important;overflow-wrap:anywhere;padding:10px!important;border-radius:8px!important}
 html body #root .accounting-shell .jk-month-money b{font-size:16px!important;white-space:nowrap}
 html body #root table.erp-phone-cards.erp-phone-cards>tbody>tr{box-shadow:none!important;padding:12px!important;gap:8px;border-radius:9px!important}
 html body #root table.erp-phone-cards.erp-phone-cards td.erp-phone-actions button{border-radius:7px!important}
 html body #root table.erp-phone-cards.erp-phone-cards td.erp-phone-title :is(button,a){white-space:normal!important;max-width:100%;height:auto!important;overflow-wrap:anywhere}
 html body #root .erp-phone-viewbar{position:sticky;left:0;max-width:calc(100vw - 24px);padding:6px 0;background:#f3f5f7;border-radius:8px}
 html body #root .erp-phone-viewbar button{border-radius:8px!important}
}
@media print{.jk-grid-phone-controls,.jk-grid-phone-totals{display:none!important}}
@media screen{.jk-grid-help summary{cursor:pointer;color:#526d80;padding:5px 0}.jk-grid-help p{max-width:650px;margin:5px 0;line-height:1.5}}

@media screen{
 .jk-grid-tools{margin:8px 0;border:1px solid #d5dde3;border-radius:8px;background:#f8fafb}
 .jk-grid-tools>summary{cursor:pointer;padding:9px 10px;color:#526d80;font-size:13px}
 .jk-grid-tools>.jk-hours-toolbar{padding:0 10px 10px;margin:0}
}
@media screen and (max-width:700px){
 html body #root .accounting-shell .jk-month-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
 html body #root .accounting-shell .jk-month-controls>label{display:grid;gap:4px;min-width:0;width:100%;font-size:12px!important}
 html body #root .accounting-shell .jk-month-controls>label:first-child{grid-column:1;grid-row:1}
 html body #root .accounting-shell .jk-month-controls>label:last-child{grid-column:2;grid-row:1}
 html body #root .accounting-shell .jk-month-controls label :is(input,select){width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box}
 html body #root .accounting-shell .jk-month-controls>button{width:auto!important;justify-self:start;min-height:36px!important;font-size:12px!important}
 html body #root .accounting-shell .jk-month-money :is(b,strong){font-size:16px!important;white-space:nowrap}
 html body #root .accounting-shell .jk-month-status{display:flex;flex-wrap:wrap;gap:6px 10px;font-size:12px!important}
 html body #root .accounting-shell .jk-month-status button{min-height:36px!important;font-size:12px!important}
}

/* Object overview: each label and value remain paired on a phone. */
@media screen and (max-width:700px){
 html body #root table.erp-object-facts,html body #root table.erp-object-attention{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;border-collapse:collapse}
 html body #root :is(.erp-object-facts,.erp-object-attention)>colgroup{display:none!important}
 html body #root :is(.erp-object-facts,.erp-object-attention)>tbody{display:block!important;width:100%}
 html body #root .erp-object-facts>tbody>tr{display:grid!important;grid-template-columns:minmax(0,40%) minmax(0,60%);width:100%;border:0}
 html body #root :is(.erp-object-facts,.erp-object-attention)>tbody>tr>td{position:static!important;left:auto!important;display:block!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;padding:9px 10px!important;border:0;border-bottom:1px solid #dbe2e8;line-height:1.45!important;text-align:left!important}
 html body #root .erp-object-facts>tbody>tr>td:nth-child(odd){background:#f4f6f8;color:#657580;border-right:1px solid #dbe2e8}
 html body #root .erp-object-facts>tbody>tr>td:nth-child(even){background:#fff;color:#263640}
 html body #root .erp-object-facts td :is(button,a,div,span){max-width:100%;white-space:normal!important;overflow-wrap:anywhere!important}
 html body #root .erp-object-facts td button{min-width:0!important;height:auto!important;min-height:32px!important;text-align:left}
 html body #root .erp-object-attention>tbody>tr{display:block!important;border-bottom:1px solid #e2d9be}
 html body #root .erp-object-attention>tbody>tr>td:first-child{padding-bottom:5px!important;background:#faf5e7}
 html body #root .erp-object-attention>tbody>tr>td:last-child{padding-top:5px!important;background:#fffdf7;color:#657580}
}
/* A restrained desktop finish shared by the accounting and object workspaces. */
@media screen and (min-width:701px){
 html body #root :is(.accounting-shell,.objects2-object-area,.erp-object-form,.request-dense-card) button:not(.rounded-full):not(.wj-link):not(.wj-heading):not(.jk-request-link),
 html body :is(.btn,.tiny-btn,.erp-btn,.erp-money,.staff-toolbar button,.staff-card-dialog button,.erp-create-actions button){border-radius:7px!important}
 html body #root :is(.accounting-shell,.objects2-object-area,.erp-object-form,.request-dense-card) :is(input,select,textarea):not([type=checkbox]):not([type=radio]),
 html body .staff-card-dialog :is(input,select,textarea):not([type=checkbox]):not([type=radio]){border-radius:6px!important}
 html body #root :is(.jk-panel,.jk-month-workspace,.erp-object-head,.erp-object-form,.request-dense-card,.jk-finance-object-window),html body .staff-card-dialog{border-radius:10px!important;border-color:#cbd5de!important}
 html body #root :is(.erp-object-form section,.erp-create-actions,.jk-month-settings,.jk-grid-tools),html body :is(.staff-toolbar,.staff-filters){border-radius:7px!important}
 html body #root .objects2-object-area section:has(>.overflow-x-auto>table.erp-object-facts){border-radius:9px!important;border-color:#cbd5de!important}
 html body #root :is(.erp-object-form,.jk-finance-object-window),html body .staff-card-dialog{box-shadow:0 10px 32px #253b521f!important}
 html body #root :is(.accounting-shell,.objects2-object-area,.erp-object-form,.request-dense-card) :is(button,input,select,textarea):focus-visible{outline:2px solid #5985a1;outline-offset:2px}
}
@media screen and (min-width:701px){
 html body #root .erp-object-facts>colgroup>col:nth-child(odd){width:150px!important}
 html body #root .erp-object-facts>tbody>tr>td{white-space:normal!important;overflow-wrap:anywhere!important;vertical-align:top;line-height:1.4}
}

/* Tablet desktop mode: contain wide registers instead of clipping or stretching columns. */
@media screen {
 html body #root .erp-register-ancestor{min-width:0!important;max-width:100%}
 html body #root .erp-register-scroll{min-width:0!important;max-width:100%!important;width:100%!important;overflow:auto!important;touch-action:pan-x pan-y pinch-zoom!important;overscroll-behavior-x:contain;scrollbar-width:auto;scrollbar-color:#97a9b8 #edf1f4;-webkit-overflow-scrolling:touch}
 html body #root .erp-register-scroll::-webkit-scrollbar{height:13px;width:10px}
 html body #root .erp-register-scroll::-webkit-scrollbar-thumb{background:#97a9b8;border:3px solid #edf1f4;border-radius:9px}
 .erp-register-nav{position:sticky;left:0;display:flex;align-items:center;justify-content:flex-end;gap:6px;box-sizing:border-box;width:100%;padding:6px 8px;background:#f3f6f8;border-bottom:1px solid #dbe2e7;z-index:4;font-size:12px;color:#667681}
 .erp-register-nav[hidden]{display:none!important}.erp-register-nav span{margin-right:auto}
 html body #root .erp-register-nav button{height:32px;min-width:38px;padding:3px 10px;border:1px solid #bcc8d2;border-radius:8px;background:#fff;color:#34566c;font-size:18px;line-height:1}
 html body #root .erp-register-nav button:disabled{opacity:.35}
 html body #root .accounting-totals{margin:0;gap:0;align-items:stretch;border-radius:10px;overflow:hidden}
 html body #root .accounting-total{display:flex;flex-direction:column;justify-content:flex-start;gap:4px;padding:9px 12px!important}
 html body #root .accounting-total dt,html body #root .accounting-total dd{margin:0!important;padding:0!important;line-height:1.4}
 html body #root .accounting-total dd{font-size:15px!important}
}
@media screen and (min-width:701px){
 html body #root table[data-erp-register]:is([data-erp-register="objects"],[data-erp-register="customers"],[data-erp-register="team"],[data-erp-register="board"],[data-erp-register="requests"]){table-layout:fixed!important;width:var(--erp-register-width)!important;min-width:var(--erp-register-width)!important;max-width:none!important}
 html body #root table[data-erp-register] th{width:var(--erp-col-size);box-sizing:border-box}
 html body #root table[data-erp-register] :is(th,td){padding:7px 10px;vertical-align:top;overflow-wrap:break-word;word-break:normal}
 html body #root table[data-erp-register] td:not([colspan]){overflow:hidden;text-overflow:ellipsis}
 html body #root table[data-erp-register="timesheet"]{width:max-content!important;min-width:max-content!important;max-width:none!important;table-layout:auto!important}
 html body #root table[data-erp-register="cost"]{width:1309px!important;min-width:1309px!important;max-width:none!important}
}
@media screen and (max-width:700px){.erp-register-nav{display:none!important}}
@media print{.erp-register-nav{display:none!important}}

/* Request composition: reserve narrow utility columns, give the remainder to work names. */
html body .request-dense-card .request-composition-table{table-layout:fixed!important;width:100%!important;min-width:900px!important}
html body .request-dense-card .request-composition-table.with-internal{min-width:1140px!important}
html body .request-dense-card .request-composition-table :is(th,td){min-width:0!important;box-sizing:border-box}
html body .request-composition-table .request-col-check{width:36px!important}
html body .request-composition-table .request-col-index{width:30px!important}
html body .request-composition-table .request-col-name{width:auto!important}
html body .request-composition-table .request-col-executor{width:120px!important}
html body .request-composition-table .request-col-unit{width:54px!important}
html body .request-composition-table .request-col-qty{width:66px!important}
html body .request-composition-table .request-col-price{width:108px!important}
html body .request-composition-table .request-col-total{width:124px!important}
html body .request-composition-table .request-col-actions{width:34px!important}
html body .request-composition-table :is(th,td):has(>input[type=checkbox]){width:36px!important;min-width:36px!important;max-width:36px!important;padding:4px!important;text-align:center}
html body .request-composition-table input[type=checkbox]{display:block;width:18px!important;height:18px!important;min-height:18px!important;margin:4px auto!important;padding:0!important}
html body .request-dense-card .request-composition-table .request-composition-name{padding:4px 6px!important}
html body .request-dense-card .request-composition-table .request-line-executor{font-size:11px!important;line-height:1.3;padding:4px 7px!important;color:#687782;white-space:normal;overflow-wrap:anywhere}
html body .request-dense-card .request-assignment-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;padding:8px 10px;border-bottom:1px solid #e3e7ea;font-size:12px}
html body .request-assignment-toolbar>span{flex:none;white-space:nowrap;color:#687782}
html body .request-assignment-toolbar>select{flex:0 1 280px;width:280px;max-width:100%;min-width:0}
html body .request-assignment-toolbar>button{flex:none;width:auto;white-space:normal}
html body .request-composition-executor{flex-wrap:wrap;gap:6px 10px}
html body .request-composition-executor>select{max-width:320px;min-width:180px}
@media(max-width:700px){html body .request-assignment-toolbar>select{flex:1 1 190px}html body .request-composition-executor>select{min-width:0;flex:1 1 190px}}

/* Light, readable primary actions throughout ERP forms. No blue fills on buttons (owner, 05.10.2026).
   :is(#erp-people-root,*) matches everything but carries id weight: it beats «#erp-people-root .bg-indigo-600» from the finance styles. */
@media screen{
html body :is(#erp-people-root,*) button:is(.bg-blue-500,.bg-blue-600,.bg-blue-700,.bg-blue-800,.bg-blue-900,.bg-indigo-500,.bg-indigo-600,.bg-indigo-700,.bg-indigo-800,.bg-indigo-900,.bg-sky-500,.bg-sky-600,.bg-sky-700,.bg-sky-800,.bg-sky-900,.bg-cyan-500,.bg-cyan-600,.bg-cyan-700,.bg-cyan-800,.bg-cyan-900),html body .erp-object-actions>button:first-child,html body .erp-object-form button[type=submit]{background:#f3f6f8!important;background-image:none!important;color:#263640!important;border:1px solid #aebdc9!important;box-shadow:none!important}
html body :is(#erp-people-root,*) button:hover:is(.bg-blue-500,.bg-blue-600,.bg-blue-700,.bg-blue-800,.bg-blue-900,.bg-indigo-500,.bg-indigo-600,.bg-indigo-700,.bg-indigo-800,.bg-indigo-900,.bg-sky-500,.bg-sky-600,.bg-sky-700,.bg-sky-800,.bg-sky-900,.bg-cyan-500,.bg-cyan-600,.bg-cyan-700,.bg-cyan-800,.bg-cyan-900),html body .erp-object-actions>button:first-child:hover,html body .erp-object-form button[type=submit]:hover{background:#e7edf2!important;color:#1d3344!important;border-color:#829bac!important}
html body :is(#erp-people-root,*) button:is(.bg-blue-500,.bg-blue-600,.bg-blue-700,.bg-blue-800,.bg-blue-900,.bg-indigo-500,.bg-indigo-600,.bg-indigo-700,.bg-indigo-800,.bg-indigo-900,.bg-sky-500,.bg-sky-600,.bg-sky-700,.bg-sky-800,.bg-sky-900,.bg-cyan-500,.bg-cyan-600,.bg-cyan-700,.bg-cyan-800,.bg-cyan-900) :is(span,svg),html body .erp-object-actions>button:first-child .material-symbols-outlined{color:inherit!important}
}

/* Значок не рвётся по буквам. В узкой колонке с сохранённой шириной (модуль колонок ставит ячейке overflow-wrap:anywhere)
   название иконки переносилось, и вместо значка выходил текст («OPEN W», «DE LE» на рабочей доске). */
.material-symbols-outlined{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
/* Кнопки действий в строках таблиц переносят только целые слова и встают друг под другом, а не сжимаются до букв. */
.erp-board-actions{flex-wrap:wrap}
:is(.erp-board-actions,.jk-actions) button{overflow-wrap:normal!important;word-break:normal!important}

/* Табель: галочка отметки сотрудника в одной строке с именем, ↑↓ в заголовке двигают отмеченных — строка ниже. */
.jk-month-matrix .jk-employee-line{display:flex;align-items:center;gap:5px;min-width:0}
.jk-month-matrix .jk-employee-line strong{min-width:0}
:is(#erp-people-root,*) .jk-month-matrix .jk-day-grid .jk-matrix-name input.jk-employee-pick{width:14px!important;height:14px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;flex:none}

/* Увеличенная страница (оболочка ставит .erp-zoomed на корень документа): таблицы, дойдя до края, отдают жест экрану. */
:host-context(.erp-zoomed) :is(.jk-table-scroll,.timesheet-details-scroll,.wj-scroll,.erp-ledger-scroll,.erp-phone-scroll,.erp-register-scroll,.fu-scroll){overscroll-behavior:auto!important}
/* ——— Единый радиус углов во всех разделах — как в «Заявках»: панели и карточки 8px, кнопки 7px, поля 6px. ———
   Усиление :is(#erp-people-root,*):is(#erp-people-root,*) даёт вес двух id и перебивает «плоские» правила operations.css,
   переменные --s-radius реестров и точечные 2px в зарплате и табеле без правки их источников. Таблицы и ячейки, круглые
   значки (rounded-full), вкладки-таблетки документов и чат не трогаем. */
html:is(#erp-people-root,*),.erp-module-html:is(#erp-people-root,*):is(#erp-people-root,*),#erp-people-root:is(#erp-people-root,*){--s-radius:7px!important;--s-radius-lg:8px!important;--r:8px!important}
html body button:is(#erp-people-root,*):is(#erp-people-root,*):not(.wj-link):not(.wj-heading):not(.jk-request-link):not(.jk-company-cost-link):not(.jk-link):not(.jk-sort):not(.erp-doc-tab):not([class*="rounded-full"]):not(.erp-chat *):not(.erp-chat-page *):not(.gpr-bar):not(.od-tab):not(.jk-personal-notebook *):not(.jk-pn-sketch-dialog *):not(.jk-notebook-pdf *){border-radius:7px!important}
html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),select,textarea):is(#erp-people-root,*):is(#erp-people-root,*):not(.erp-chat *):not(.erp-chat-page *){border-radius:6px!important}
html body :is(.erp-requests section,.fu-workspace,.fu-totals,.fu-panel,.fu-card,.jk-panel,.jk-month-workspace,.jk-hours-editor,.jk-hours-bulk,.jk-payroll-toolbar,.jk-payroll-actions,.jk-month-settings,.jk-accounting-panel,.jk-month-money,.jk-month-grid,.jk-month-controls,.jk-table-scroll,.timesheet-details-scroll,.accounting-help,.accounting-total,.accounting-panel,.jk-stat,.jk-card,.wj-filters,.wj-summary>div,.wj-panel,.erp-object-form,.erp-object-form section,.erp-object-head,.erp-object-card,.erp-file-tile,.erp-create-actions,.erp-columns-dialog,.erp-suggest,.erp-doc-pop,.modal-content,.kpi,.metric,.panel,.calc-card,.order-sheet,.card,.notice,.modal,.hero,.table-wrap,.erp-overview-card,.home-plan-group,.employee-work-wrap,.erp-ledger-card,dialog):is(#erp-people-root,*):is(#erp-people-root,*):not(.erp-chat *):not(.erp-chat-page *){border-radius:8px!important}
html body :is(section,div,article,aside,details,form,ul,nav,header,footer,fieldset)[class*="rounded-"]:is(#erp-people-root,*):is(#erp-people-root,*):not([class*="rounded-full"]):not(.erp-chat *):not(.erp-chat-page *){border-radius:8px!important}

/* Request forms scroll on both axes and allow native pinch/pan gestures.
   Their modal shell keeps the header/footer fixed; only the body owns scrolling. */
@media screen{
html body .request-dense-card{min-height:0!important;max-height:100%!important}
html body .request-dense-card .request-dense-scroll{min-height:0!important;max-width:100%!important;overflow:auto!important;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom!important;overscroll-behavior:auto!important}
}

/* A zoomed modal must pass pan gestures through every parent, not only its table/body. */
:host-context(.erp-zoomed) :is(.modal-overlay,.modal-content,.fixed.inset-0,.request-dense-scroll,.jk-modal-overlay,.jk-modal,.jk-modal-body,dialog){overscroll-behavior:auto!important;touch-action:pan-x pan-y pinch-zoom!important}

/* Native card controls stay attached through loading and tab changes. */
.erp-card-controls{display:flex;align-items:center;gap:8px;flex-shrink:0}
.erp-card-controls .erp-mobile-back{display:inline-flex!important;align-items:center;width:auto;margin:0;min-height:40px;padding:8px 12px;border:1px solid #c3ccd4;border-radius:6px;background:#f4f6f8;color:#263747;font-size:14px}
.erp-card-close{min-width:40px;min-height:40px}
.request-create-overlay{z-index:390!important}
.erp-object-window{position:fixed!important;inset:16px!important;z-index:370!important;margin:auto!important;width:min(1180px,calc(100% - 32px))!important;height:calc(100% - 32px)!important;overflow:auto!important;background:#fff!important;border:1px solid #c3ccd4!important;border-radius:10px!important;box-shadow:0 12px 40px #19232d55!important}
.erp-object-window .erp-object-navigation{position:sticky!important;top:0;z-index:20;display:flex!important;align-items:center;justify-content:space-between;background:#fff!important;border-bottom:1px solid #dde2e6;padding:4px 8px!important}
.erp-object-window .erp-object-navigation button{min-height:40px;min-width:40px}
.erp-object-close{font-size:26px!important}
@media(max-width:700px){.erp-object-window{inset:8px!important;width:calc(100% - 16px)!important;height:calc(100% - 16px)!important;border-radius:6px!important}.erp-card-controls{width:100%;justify-content:space-between}}

/* Object and board windows keep their closing controls visible and tappable. */
.erp-object-backdrop{position:fixed;inset:0;z-index:369;background:#19232d75}
/* The object's child windows stay above its card while retaining their relative layers. */
.erp-object-overlays{display:contents}
.erp-object-overlays[data-object-open]{display:block;position:fixed;inset:0;z-index:371;pointer-events:none}
.erp-object-overlays[data-object-open]>*{pointer-events:auto}
.erp-object-window-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}
.erp-object-window>.erp-object-navigation{margin:-8px -8px 12px!important;gap:8px!important;flex-wrap:nowrap!important}
.erp-object-navigation>.erp-mobile-back{display:inline-flex!important;align-items:center;width:auto!important;margin:0!important;flex-shrink:0!important}
.erp-object-navigation button,.erp-board-window-head button{min-width:44px!important;min-height:44px!important;flex-shrink:0}
.erp-board-window-head{display:flex;gap:10px;align-items:center;flex-shrink:0}
.erp-board-window-head h3{flex:1;min-width:0}
.erp-board-window-head>.erp-mobile-back{display:inline-flex!important;align-items:center;width:auto!important;margin:0!important}
@media(max-width:700px){.erp-board-window-head{flex-wrap:wrap}.erp-board-window-head h3{order:3;flex-basis:100%;margin:0}.erp-board-close{margin-left:auto}}

/* Workdesk search exposes the matching objects as real openable results. */
.erp-workdesk-results{margin:0 12px 12px;padding-top:10px;border-top:1px solid #d6dde2}
.erp-workdesk-results>p{margin:0 0 8px;color:#64717b;font-size:13px}
.erp-workdesk-result-list{display:grid;max-height:360px;overflow:auto}
.erp-workdesk-result{display:flex;align-items:center;gap:12px;width:100%;min-height:52px!important;padding:9px 12px!important;text-align:left;border:0!important;border-bottom:1px solid #e1e6ea!important;border-radius:0!important;background:#fff!important;color:#263747}
.erp-workdesk-result:hover{background:#f2f6f8!important}
.erp-workdesk-result>span:first-child{flex:1;min-width:0}
.erp-workdesk-result strong,.erp-workdesk-result small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.erp-workdesk-result strong{font-size:14px;color:#205780}
.erp-workdesk-result small{font-size:12px;color:#64717b;margin-top:3px}
