/* v34.14 — stability patch: one logout, responsive closure, DB import/export, lab action UX */
/* Closure page must fit any screen without hiding the approve/action column. */
.license-closure-split{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;width:100%!important;min-width:0!important}
.license-closure-split>.card{min-width:0!important;max-width:100%!important;overflow:hidden!important}
.license-closure-split .closure-toolbar{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important}
.license-closure-split .closure-toolbar>*{min-width:0!important;max-width:100%!important}
.license-closure-split .closure-toolbar input{flex:2 1 240px!important}
.license-closure-split .closure-toolbar select{flex:1 1 170px!important}
.license-closure-split .closure-toolbar button{flex:0 1 auto!important;white-space:normal!important}
.license-closure-split .table-wrap,.license-closure-split .table-scroll{width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
.license-closure-split table{width:100%!important;min-width:920px!important;table-layout:auto!important}
.license-closure-split th,.license-closure-split td{white-space:nowrap!important}
.license-closure-split th:last-child,.license-closure-split td:last-child{position:sticky!important;left:0!important;background:var(--card,#fff)!important;z-index:2!important;box-shadow:4px 0 8px rgba(0,0,0,.06)!important}
@media(max-width:760px){
 .license-closure-split .closure-toolbar{display:grid!important;grid-template-columns:1fr!important}
 .license-closure-split .closure-toolbar>*{width:100%!important}
 .license-closure-split table{min-width:820px!important;font-size:12px!important}
 .license-closure-split th,.license-closure-split td{padding:7px 6px!important}
}

/* Database toolbar */
.v3414-db-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}
.v3414-db-actions input[type=file]{max-width:260px}
.v3414-db-progress{margin-top:8px;font-size:12px;color:var(--muted,#667)}
@media(max-width:700px){.v3414-db-actions{display:grid;grid-template-columns:1fr}.v3414-db-actions>*{width:100%;max-width:none!important}}

/* Lab buttons: clear enabled/working states */
[data-v3414-busy="1"]{opacity:.65!important;pointer-events:none!important}
.lab-action-feedback{margin-top:8px;font-size:12px;color:var(--muted,#667)}
.lab-request-inline{display:grid;gap:6px;min-width:260px;margin-top:7px;padding-top:7px;border-top:1px solid rgba(0,0,0,.08)}
.lab-request-inline label{font-size:11px;display:grid;gap:3px}.lab-request-inline input{min-width:0;width:100%}.lab-request-inline>div{display:flex;flex-wrap:wrap;gap:5px}
@media(max-width:760px){.lab-request-inline{min-width:230px}}
/* v34.22: Closure reason is a fixed dropdown to prevent free-text variants. */
.closure-compact-table .closure-reason-select{min-width:280px;max-width:360px;width:100%;height:42px;border:1px solid #ced9d4;border-radius:9px;background:#fff;padding:0 10px;color:#1f2a27}
body[data-theme="dark"] .closure-compact-table .closure-reason-select{background:#10221c;color:#f2fbf7;border-color:#36574c}
