/* DEV document list: compact controls, readable status, personal filter toolbar */
section.warehouse-document-filters {padding:8px 10px!important;margin:0 0 6px!important}
section.warehouse-document-filters .filter-card-head {display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin-bottom:5px!important}
section.warehouse-document-filters .filter-card-head small {font-size:11px}
section.warehouse-document-filters .form-grid {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(142px,1fr))!important;gap:5px 8px!important}
section.warehouse-document-filters .form-grid > * {min-width:0!important;margin:0!important}
section.warehouse-document-filters .form-grid label {gap:2px!important}
section.warehouse-document-filters input,section.warehouse-document-filters select {box-sizing:border-box!important;width:100%;max-width:100%!important;min-width:0!important;height:32px!important;min-height:32px!important;font-size:12px!important;padding:3px 6px!important}
section.warehouse-document-filters .segment-row {gap:4px!important;margin:4px 0!important;flex-wrap:wrap}
section.warehouse-document-filters .segment-row button {font-size:12px!important;min-height:28px!important;padding:3px 8px!important}
section.warehouse-document-filters .gns-gdf-hidden {display:none!important}
section.warehouse-document-filters .gns-gdf-active {outline:1px solid #d59b31;border-radius:3px}
.gns-doc-filter-actions {display:flex;flex-wrap:wrap;gap:5px;margin-left:auto}
.gns-doc-filter-actions button,.gns-doc-filter-prefs button {border:1px solid #c7d2dd;background:#f7f9fc;border-radius:5px;padding:4px 9px;font-size:12px;cursor:pointer}
.gns-doc-filter-prefs {display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;border-top:1px solid #e2e8ee;padding:8px 0;margin-top:5px}
.gns-doc-filter-prefs[hidden]{display:none!important}
.gns-doc-filter-prefs label {display:inline-flex;align-items:center;gap:4px;font-size:12px;white-space:nowrap}
.gns-doc-filter-prefs input[type=checkbox]{width:15px!important;height:15px!important;min-height:15px!important}
main.content:has(section.warehouse-document-filters) .warehouse-toolbar input {min-height:32px!important;height:32px!important;font-size:12px!important}
.gns-grid-table tbody tr.gns-document-unlocked:not(.selected)>td{color:#142736!important;font-weight:650!important;background:#f1fbf4!important}
.gns-grid-table tbody tr.gns-document-unlocked:not(.selected)>td:first-child{border-left:4px solid #21834b}
.gns-grid-table tbody tr.gns-document-locked:not(.selected)>td{color:#788795!important;font-weight:400!important;background:#f5f7f9!important}
.gns-grid-table tbody tr.gns-document-locked:not(.selected)>td:first-child{border-left:4px solid #a9b5c0}
.gns-grid-table tbody tr.gns-document-locked:hover>td,.gns-grid-table tbody tr.gns-document-unlocked:hover>td{filter:brightness(.975)}
@media(max-width:650px){section.warehouse-document-filters .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.gns-doc-filter-actions{margin-left:0}}

/* Compact company selector and global document search. */
.sidebar-client-picker {gap:3px!important;margin-bottom:8px!important}
.sidebar-client-picker .searchable-select input {height:32px!important;min-height:32px!important;padding:4px 29px 4px 8px!important;font-size:12px!important}
main.content:has(section.warehouse-document-filters) .warehouse-toolbar {gap:6px!important;padding-top:4px!important;padding-bottom:4px!important}
main.content:has(section.warehouse-document-filters) .warehouse-toolbar .search-wrap {flex:0 1 360px!important;max-width:420px!important;min-width:190px}
main.content:has(section.warehouse-document-filters) .warehouse-toolbar .search-wrap input {height:32px!important;min-height:32px!important;padding:5px 9px 5px 30px!important}
main.content:has(section.warehouse-document-filters) .topbar {margin-bottom:6px!important;gap:8px!important}
main.content:has(section.warehouse-document-filters) .topbar h1 {font-size:19px!important}
main.content:has(section.warehouse-document-filters) .topbar p {font-size:11px!important;margin-top:1px!important}

/* GNS Clarion-style compact selectors and high-contrast document state — DEV */
section.warehouse-document-filters .gns-doc-filter-actions {display:flex;gap:5px;flex-wrap:nowrap;margin-left:auto}
section.warehouse-document-filters .gns-doc-filter-actions button {min-height:28px!important;padding:3px 10px!important;font-size:12px!important;border-radius:6px!important}
section.warehouse-document-filters .form-grid {grid-template-columns:repeat(auto-fill,minmax(146px,1fr))!important;align-items:end}
section.warehouse-document-filters .form-grid .gns-clarion-extra {min-width:0}
section.warehouse-document-filters .form-grid .gns-clarion-extra input,
section.warehouse-document-filters .form-grid .gns-clarion-extra select {height:32px!important;min-height:32px!important;box-sizing:border-box}
section.warehouse-document-filters .form-grid:not(.gns-extra-open) {max-height:none}
section.warehouse-document-filters .form-grid.gns-extra-open {max-height:235px;overflow-y:auto;padding-right:4px;scrollbar-width:thin}
section.warehouse-document-filters .gns-gdf-active {outline:2px solid #d99e2b!important;outline-offset:1px}
section.warehouse-document-filters .gns-doc-filter-prefs {display:grid!important;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));align-items:center;gap:5px 12px;max-height:175px;overflow-y:auto;padding:9px 4px!important;border-bottom:1px solid #cbd5df}
section.warehouse-document-filters .gns-doc-filter-prefs[hidden]{display:none!important}
section.warehouse-document-filters .gns-pref-heading{grid-column:1/-1;font-weight:700;font-size:12px}
section.warehouse-document-filters .gns-doc-filter-prefs label{display:flex!important;align-items:center!important;gap:6px!important;font-size:11px!important;white-space:nowrap!important}
section.warehouse-document-filters .gns-doc-filter-prefs input[type=checkbox]{width:15px!important;height:15px!important;min-height:15px!important;flex:none}
section.warehouse-document-filters .gns-document-filter-partner{overflow:visible!important;min-width:0}
section.warehouse-document-filters .gns-document-filter-partner .gns-shared-partner-picker{min-width:0}
section.warehouse-document-filters .gns-document-filter-partner .gns-shared-partner-label{display:block!important;min-width:0}
section.warehouse-document-filters .gns-document-filter-partner .gns-shared-partner-entry{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;position:relative!important;min-height:32px!important;max-width:100%!important}
section.warehouse-document-filters .gns-document-filter-partner .gns-shared-partner-entry input{width:100%!important;min-width:0!important;height:32px!important;padding:4px 66px 4px 7px!important;font-size:12px!important}
section.warehouse-document-filters .gns-document-filter-partner .gns-shared-partner-entry button{position:absolute!important;top:2px!important;height:27px!important;min-height:27px!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;cursor:pointer!important;display:flex!important;align-items:center!important;justify-content:center!important}
section.warehouse-document-filters .gns-document-filter-partner .gns-shared-partner-entry button:last-child{right:3px!important;width:30px!important;font-size:0!important;padding:0!important}
section.warehouse-document-filters .gns-document-filter-partner .gns-shared-partner-entry button:last-child::before{content:'☷';font-size:20px;font-weight:800;color:#245b9c}
section.warehouse-document-filters .gns-document-filter-partner .gns-shared-partner-entry button[title*="Notīrīt"]{right:34px!important;width:26px!important;padding:0!important;font-size:13px!important}
section.warehouse-document-filters .gns-document-filter-partner .gns-shared-partner-entry button:hover{background:#e1eaf6!important;border-radius:4px!important}
section.warehouse-document-filters .gns-document-filter-partner .gns-shared-partner-quick{z-index:65!important}
section.warehouse-document-filters .gns-document-filter-partner > button{font-size:11px!important;margin-top:2px;padding:2px 5px!important}
.gns-grid-table tbody tr.gns-document-unlocked:not(.selected)>td{background:#fff0c9!important;color:#111820!important;font-weight:650!important;border-bottom:1px solid #e7cf91!important}
.gns-grid-table tbody tr.gns-document-unlocked:not(.selected)>td:first-child{border-left:6px solid #ba7608!important}
.gns-grid-table tbody tr.gns-document-locked:not(.selected)>td{background:#e5ebf3!important;color:#536274!important;font-weight:400!important;border-bottom:1px solid #d6dfe9!important}
.gns-grid-table tbody tr.gns-document-locked:not(.selected)>td:first-child{border-left:6px solid #68798c!important}
.gns-grid-table tbody tr.gns-document-unlocked.selected>td{background:#fbe4a5!important;color:#111820!important}
.gns-grid-table tbody tr.gns-document-locked.selected>td{background:#d4deea!important;color:#283a4d!important}
.gns-grid-table tbody .gns-doc-lock-badge{display:inline-flex!important;align-items:center;justify-content:center;margin-left:7px;padding:3px 6px;border-radius:4px;font-size:10px!important;font-weight:800!important;line-height:1.2;letter-spacing:.02em;white-space:nowrap;vertical-align:middle}
.gns-grid-table tbody .gns-doc-lock-badge.is-open{color:#362200!important;background:#ffcc63!important;border:1px solid #a97000!important}
.gns-grid-table tbody .gns-doc-lock-badge.is-locked{color:#fff!important;background:#465d75!important;border:1px solid #263c54!important}
.gns-grid-table tbody tr.gns-document-unlocked:hover>td{background:#ffdf93!important}
.gns-grid-table tbody tr.gns-document-locked:hover>td{background:#cedae7!important}
@media(max-width:650px){
 section.warehouse-document-filters .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 section.warehouse-document-filters .form-grid.gns-extra-open{max-height:270px}
 .gns-grid-table tbody .gns-doc-lock-badge{font-size:9px!important;padding:2px 4px}
}


/* v2.7.169 visual revision: original LIVE row presentation, no lock labels. */
.gns-grid-table tbody .gns-doc-lock-badge {display:none!important}
.gns-grid-table tbody tr.gns-document-unlocked:not(.selected)>td {
 background:#e3f4e9!important;color:#173e31!important;font-weight:650!important;
 border-bottom:1px solid #d0e7d8!important
}
.gns-grid-table tbody tr.gns-document-unlocked:not(.selected)>td:first-child{
 border-left:4px solid #2b9467!important
}
.gns-grid-table tbody tr.gns-document-locked:not(.selected)>td {
 background:#e4edf9!important;color:#4d6891!important;font-weight:400!important;
 border-bottom:1px solid #d4e1f2!important
}
.gns-grid-table tbody tr.gns-document-locked:not(.selected)>td:first-child{
 border-left:4px solid #6998d2!important
}
.gns-grid-table tbody tr.gns-document-unlocked.selected>td{background:#cae8d6!important;color:#173e31!important}
.gns-grid-table tbody tr.gns-document-locked.selected>td{background:#cfdff3!important;color:#28476d!important}
.gns-grid-table tbody tr.gns-document-unlocked:hover>td{background:#d3eddf!important}
.gns-grid-table tbody tr.gns-document-locked:hover>td{background:#d5e4f6!important}
