/* Compact spreadsheet layout, scoped to the inventory list. */
#inventory-table table{font-size:13px;border-collapse:collapse;width:100%}
#inventory-table th,#inventory-table td{padding:5px 9px!important;line-height:1.3!important;border:1px solid #dce8e0;vertical-align:middle}
#inventory-table .device-sub{margin:2px 0 0!important;font-size:11px;line-height:1.25!important}
#inventory-table .tag{padding:2px 5px!important;line-height:1.25;border-radius:4px}
#inventory-table .action-btn{padding:4px 7px!important;margin:1px 2px!important;font-size:12px;min-height:26px}
#inventory-table tbody tr:nth-child(even) td{background:#f5faf7}
#inventory-table tbody tr:hover td{background:#e3f4e9!important}
#inventory-table .table-wrap{max-height:72vh;overflow:auto}
#inventory-table thead th{position:sticky;top:0;z-index:2;background:#eaf5ed}
#inventory-table input[type=checkbox]{width:16px;height:16px;margin:0}
#inventory-table .inventory-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:5px;padding:8px 12px;border-top:1px solid #dbe8df;color:#547365;font-variant-numeric:tabular-nums;font-size:12px}
#inventory-table .inventory-pager [aria-current=page]{background:#dcefe4;border:1px solid #bddfcb;color:#175b43;font-weight:700}
#inventory-table .inventory-pager button:disabled{opacity:.55;cursor:default}
#inventory-table .inventory-battery-tag{display:inline-block;margin-inline-start:3px;padding:1px 4px;border-radius:4px;background:#e1f1e7;color:#245d48;font-weight:700;white-space:nowrap}
#inventory-table .inventory-battery-tag.is-unknown{background:#eef3ef;color:#6a8176;font-weight:500}
#inventory-table .inventory-grade{color:#426957;white-space:nowrap}

#inventory-query-view .inventory-list-panel{padding:0;container-type:inline-size}
.inventory-filter-line{display:grid;grid-template-columns:1.28fr .92fr .76fr 1fr .84fr 1.3fr 1.42fr 1.18fr 1.02fr auto;align-items:end;gap:8px;padding:10px 11px 12px;border-bottom:1px solid #dbe8df;background:#fbfdfb}
.inventory-filter-line > :is(label,div){display:grid;gap:4px;min-width:0;color:#3d6254;font-size:11px;font-weight:650}
#inventory-filters :is(input,select,button){height:35px;min-height:35px;min-width:0;border:1px solid #c9ded1;border-radius:7px;padding:0 7px;background:#fff;color:#244d40;font-size:12px;box-sizing:border-box;box-shadow:none}
#inventory-filters :is(input,select){width:100%}
.inventory-filter-line .inventory-clear-filters{color:#1d674f;min-width:45px}
.inventory-filter-line .inventory-range{display:flex;align-items:center;gap:3px;min-width:0}
#inventory-filters .inventory-range input{appearance:textfield;text-align:center;padding-inline:2px;font-variant-numeric:tabular-nums}
.inventory-range input::-webkit-inner-spin-button{appearance:none}
.inventory-filter-battery{padding-right:5px}
.inventory-filter-line .battery-range{position:relative;border:1px solid #9ac2af;border-radius:7px;gap:0}
.battery-range::after{content:'';position:absolute;right:-5px;top:10px;width:4px;height:13px;border-radius:0 2px 2px 0;background:#a3c8b5;pointer-events:none}
#inventory-filters .battery-range input{height:33px;min-height:33px;border:0;border-radius:0;text-align:center;font-weight:700}
#inventory-filters .battery-range input:first-child{background:#276c54;color:#fff;border-radius:6px 0 0 6px}
#inventory-filters .battery-range input:last-child{background:#e1f2e7;color:#265d48;border-radius:0 6px 6px 0}
#inventory-filters .battery-range input:first-child::placeholder{color:#e3f1e9;opacity:1}
#inventory-filters .battery-range input:last-child::placeholder{color:#497867;opacity:1}
#inventory-filters .battery-range input:focus-visible{outline:2px solid #7fae97!important;outline-offset:0;z-index:1}
.inventory-filter-error{grid-column:1 / -1;margin:0;color:#a33325;font-size:12px}
@container (max-width:1020px){.inventory-filter-line{grid-template-columns:repeat(5,minmax(0,1fr))}}
@container (max-width:540px){.inventory-filter-line{grid-template-columns:repeat(2,minmax(0,1fr))}}

#inbound-form .inbound-grading-head{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#inbound-form .inbound-grade-label{display:block;margin-bottom:6px;color:#53675f;font-size:12px}
#inbound-grade-toggle{width:100%;min-height:42px;display:flex;align-items:center;justify-content:space-between;border:1px solid #c6ddcf;border-radius:9px;box-shadow:none;background:#fff;color:#204f40;padding:0 12px}
#inbound-grade-toggle[aria-expanded=true]{border-color:#7eb49a;background:#f3faf6}
.grade-chevron{width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);margin-top:-4px}
#inbound-grade-toggle[aria-expanded=true] .grade-chevron{transform:rotate(225deg);margin-top:3px}
#inbound-grade-picker{min-width:0;position:relative;padding:11px 12px;border:1px solid #d5e6da;border-radius:10px;background:#f6faf7;margin:8px 0 0}
#inbound-grade-picker legend{padding:0 5px;color:#315f4d;font-size:12px;font-weight:700}
#inbound-grade-clear{position:absolute;top:2px;right:9px;color:#22664d;padding:4px 6px;background:transparent;border:0;box-shadow:none;font-size:12px;min-height:24px}
.inbound-grade-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.inbound-grade-columns > div + div{padding-inline-start:14px;border-inline-start:1px solid #d9e7de}
.inbound-grade-columns b{display:block;margin-bottom:5px;color:#517568;font-size:11px}
#inbound-grade-picker .inbound-grade-columns label{display:flex;flex-direction:row;align-items:center;gap:7px;min-height:25px;border-radius:6px;padding:2px 6px;margin:1px 0}
#inbound-grade-picker input[type=radio]{height:14px;min-height:14px;width:14px;accent-color:#267657;margin:0}
#inbound-grade-picker label:has(:checked){background:#def0e5;color:#175d45;font-weight:700}

.cs-erp .toolbar>#inventory-supplier-search{flex:0 1 190px;min-width:150px}
@media(max-width:600px){.cs-erp .toolbar>#inventory-supplier-search{flex:1 1 150px;min-width:120px}}
