/* Shared page rhythm and accessible controls. */
.content>.panel+.panel,.content>.panel+.help-list,.content>.form-grid+.panel{margin-top:20px}
.help-list{margin-top:24px}.help-ticket{padding:18px 0;border-bottom:1px solid var(--line)}
.help-ticket:last-child{border-bottom:0}.help-attachment{max-width:100%;max-height:600px;object-fit:contain}
.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}
.content>article.panel+article.panel{margin-top:20px}
form[action^="/magazyn/archiwizacja/"]>label{display:flex;flex-direction:column;gap:8px;width:100%;margin-bottom:16px}
form[action^="/magazyn/archiwizacja/"] textarea{width:100%;min-height:110px}
.inline-company-form .btn{white-space:nowrap;flex:0 0 auto;min-height:40px}
.field-group-title{grid-column:1/-1;margin-top:20px}.form-grid fieldset{min-width:0;border:1px solid var(--line);border-radius:12px;padding:18px}
.form-grid fieldset>legend{padding:0 8px}.form-grid label{min-width:0}
.form-actions .btn,.projects-list .btn{white-space:nowrap}
.topbar{height:auto;min-height:76px;padding-block:12px}
.top-actions{gap:8px}.top-actions>form{margin:0;display:flex}
.top-actions .help-button,.top-actions>form>.btn,.top-actions .icon-button{
 box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;
 height:44px;min-height:44px;max-height:44px;min-width:44px;padding:0 10px;line-height:1;white-space:nowrap;
}
.top-actions .icon-button{width:auto}.top-actions .user-chip{height:44px;padding-block:0;box-sizing:border-box}
.top-actions .user-chip .avatar{flex:0 0 34px}.top-actions [data-online-count]{font-variant-numeric:tabular-nums;min-width:1ch}
.online-menu .nav-icon{fill:#f6cb33!important;stroke:#243142!important}
.module-menu .rocket-body{fill:#e5484d!important;stroke:#243142!important}
.module-menu .rocket-window{fill:#3c9cff!important;stroke:#243142!important}
.module-menu .rocket-fin{fill:#3c9cff!important;stroke:#243142!important}
.module-menu .rocket-flame{stroke:#e5484d!important}
#bell-button .nav-icon{fill:#ffe11f!important;stroke:#243142!important}
#bell-button{gap:3px}.bell-count{position:static;flex:0 0 auto;min-width:16px;height:18px;top:auto;right:auto;padding:0 3px}
.auth-card .auth-links a,.auth-card .btn.secondary{background:#fff;color:#293445;border:1px solid #cbd2dc;box-sizing:border-box;min-height:44px;line-height:1.4}
.auth-card .auth-links a:hover,.auth-card .btn.secondary:hover{background:#f0f3f7;border-color:#8d9bae}
.auth-links{gap:10px}.verification-actions{display:grid;gap:12px}
.stats-grid,.region-grid{align-items:stretch}.stats-grid>*,.region-grid>*{min-width:0}
.panel:has(.table-wrap){min-width:0}.table-wrap{max-width:100%;overflow-x:auto}
@media(max-width:900px){.top-actions{max-width:100%;gap:5px}.top-actions .user-chip div{display:none}.top-actions .user-chip{padding:0}.top-title{overflow-wrap:anywhere}}
@media(max-width:600px){.topbar{padding:10px 12px;gap:6px}.top-actions{justify-content:flex-end;gap:4px;flex-wrap:wrap}.top-actions .help-button,.top-actions>form>.btn{padding-inline:8px;font-size:12px}.top-actions .icon-button{padding-inline:7px}.online-word{display:none}.top-menu-panel{top:125px}}

.catalog-rows{display:grid;gap:12px}.catalog-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:16px;margin:0}.catalog-thumb{width:72px;height:72px;display:grid;place-items:center;font-size:12px;color:#586477}.catalog-thumb img{width:100%;height:100%;object-fit:contain}.catalog-row p{margin:5px 0}.catalog-row strong{overflow-wrap:anywhere}@media(max-width:480px){.catalog-row{grid-template-columns:56px minmax(0,1fr);gap:12px}.catalog-thumb{width:56px;height:56px}.catalog-row>a{grid-column:2;justify-self:start}}

/* Constrain grid children; tables scroll within their own cards. */
.warehouse-detail-grid{grid-template-columns:minmax(0,.8fr) minmax(0,1.5fr)}
.warehouse-detail-grid>*,.product-detail-card>*,.table-card{min-width:0;max-width:100%}
.product-detail-meta dl{grid-template-columns:minmax(0,120px) minmax(0,1fr)}
.product-detail-meta dd,.section-heading h2{overflow-wrap:anywhere}
.form-actions .btn{white-space:normal;min-width:0;overflow-wrap:anywhere;text-align:center}
@media(max-width:1100px){.warehouse-detail-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){#journal-clear .form-actions{display:grid;grid-template-columns:1fr;gap:10px}#journal-clear .btn{width:100%}}
