.inventory-low-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#b3261e;margin-right:6px;vertical-align:middle;flex:none}.inventory-status{display:block;font-size:12px;color:#68736b}.inventory-drug-picker{position:relative;grid-column:1/-1}.inventory-drug-options{max-height:240px;overflow:auto;margin-top:4px;padding:4px;background:white;border:1px solid #ccd6cd;border-radius:6px}.inventory-drug-options[hidden]{display:none}.inventory-drug-options>button{display:block;width:100%;text-align:left;margin:2px 0;min-height:40px}.inventory-drug-options small{display:block;color:#68736b}.inventory-filters{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0;align-items:end}.inventory-filters>label{flex:1 1 180px}.inventory-filters input{max-width:380px}.inventory-row-actions{display:flex;flex-wrap:wrap;gap:4px}.inventory-row-actions button{white-space:nowrap}.inventory-cost-preview{padding:10px;background:#f2f5ef;border-radius:6px}.inventory-position-name{display:block}.inv-cabinet-scroll{overflow:auto;max-height:68vh;border:1px solid #d7ddd5;border-radius:8px;margin:12px 0}.inv-cabinet-grid{display:grid;grid-template-columns:38px repeat(12,minmax(112px,1fr));min-width:1382px}.inv-cabinet-grid>div,.inv-cabinet-grid>b{padding:8px;border-right:1px solid #e1e6df;border-bottom:1px solid #e1e6df}.inv-grid-cell{background:#fff;min-height:86px}.inv-grid-cell b,.inv-grid-cell small{display:block;overflow-wrap:anywhere}.inv-grid-cell small{font-size:11px;color:#657060}.inv-grid-cell button{font-size:11px;padding:4px 6px;min-height:30px;margin-top:5px}.inv-grid-col,.inv-grid-corner{position:sticky;top:0;background:#e9efe5;z-index:1}.inv-grid-row{background:#f1f4ed}.inv-grid-empty{color:#b3b9b0}.inventory-price-muted{color:#68736b}.inventory-ledger-history{margin-top:20px}.inventory-ledger-history summary{cursor:pointer}.inventory-stock-note{margin:8px 0;font-size:13px;color:#68736b}
@media(max-width:650px){.inventory-row-actions{gap:4px}.inventory-row-actions button{font-size:12px;padding:6px}.inventory-filters{align-items:stretch}.inventory-drug-options>button{min-height:44px}.inventory-stock-table .table-wrap table{min-width:800px}}
.inventory-label{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}.inventory-label .inventory-low-dot{margin:0}.inventory-kind-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.inventory-kind-tabs button{min-height:44px}.inventory-row-menu{width:max-content;max-width:min(220px,calc(100vw - 40px));white-space:normal}.inventory-row-menu>summary{display:list-item;cursor:pointer;border:1px solid #ced7d0;border-radius:6px;padding:8px 12px;min-height:44px;min-width:84px}.inventory-row-menu>summary:focus-visible{outline:3px solid var(--red);outline-offset:2px}.inventory-row-menu[open]{min-width:190px}.inventory-row-menu .inventory-row-actions{display:grid;gap:6px;padding:8px 0}.inventory-row-menu .inventory-row-actions button{width:100%;min-height:44px;margin:0;text-align:left;white-space:normal;overflow-wrap:anywhere}.plaster-low-quantity,.table-wrap td small.plaster-low-status{color:#b3261e;font-weight:700}.inventory-price-notice{padding:10px 12px;background:#f2f5ef;border-radius:6px}.inventory-price-notice button{font-size:13px}
.expense-category-summary>.table-wrap{max-height:clamp(210px,28vh,300px);overflow:auto;overscroll-behavior:contain}.expense-category-summary{margin:10px 0 18px}.expense-category-summary:focus-visible{outline:3px solid var(--red);outline-offset:2px}.expense-category-summary table{white-space:normal;min-width:0;width:100%}.expense-category-summary th,.expense-category-summary td{padding:7px 12px;line-height:1.5}.expense-category-summary thead th{position:sticky;top:0;z-index:1;background:#edf1ec}.expense-category-summary th:first-child,.expense-category-summary td:first-child{white-space:nowrap}@media(max-width:650px){.inventory-row-menu[open]{min-width:176px}.expense-category-summary>.table-wrap{max-height:220px}}

.inventory-total-quantity{display:block;white-space:nowrap}.table-wrap td small.inventory-low-status{display:block;color:#b3261e;font-weight:700}.inventory-updated-at{white-space:nowrap}.inventory-stock-table th:nth-child(4),.inventory-stock-table td:nth-child(4){min-width:175px}.inventory-stock-table th:nth-child(5),.inventory-stock-table td:nth-child(5){min-width:155px}

.inventory-stock-table>.table-wrap{height:clamp(280px,46vh,500px);overflow:auto;overscroll-behavior:contain}.inventory-stock-table>.table-wrap:focus-visible{outline:3px solid var(--red);outline-offset:2px}.inventory-stock-table thead th{position:sticky;top:0;z-index:2;background:#edf1ec}.inventory-ledger-history>h3{margin:18px 0 10px}

.inventory-mode-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0}.inventory-view-tabs,.inventory-entry-actions{display:flex;flex-wrap:wrap;gap:8px}.inventory-mode-actions button{min-height:44px;white-space:nowrap}.inventory-entry-actions{padding-left:12px;border-left:1px solid #cdd6ce}@media(max-width:450px){.inventory-entry-actions{padding-left:0;border-left:0}}

.inventory-label .inventory-low-dot{box-shadow:0 0 0 2px rgba(255,255,255,.85)}

/* The action header follows the other headers when the stock table scrolls. */
.inventory-stock-table .table-wrap table.action-table th.operation-col{position:sticky;top:0;right:auto;z-index:2;background:#edf1ec}
.inventory-stock-table>.table-wrap{scrollbar-color:#929b96 #edf1ec}.inventory-stock-table>.table-wrap::-webkit-scrollbar-track{background:#edf1ec}.inventory-stock-table>.table-wrap::-webkit-scrollbar-thumb{background:#929b96;border-radius:6px}

.plaster-pricing{grid-column:1/-1;min-width:0}.plaster-pricing>section{margin-top:10px;padding:12px;border:1px solid #d7ddd5;border-radius:6px}.plaster-pricing input[type=text],.plaster-pricing input[type=number]{width:min(100%,240px);max-width:100%}
.inventory-position-picker{min-width:0}.inventory-position-control{display:flex;align-items:stretch;gap:6px;margin-top:4px}.inventory-position-control input{min-width:0;flex:1}.inventory-position-control button{min-width:44px;min-height:44px;padding:6px;flex:none}.inventory-position-picker .inventory-drug-options{max-height:220px;overscroll-behavior:contain}.inventory-position-picker .inventory-drug-options>button{min-height:44px;white-space:normal;overflow-wrap:anywhere}.inventory-position-picker .inventory-drug-options [aria-selected=true]{background:#edf1ec;outline:2px solid var(--red);outline-offset:-2px}.inventory-position-picker>small{display:block;margin-top:6px;color:var(--muted);line-height:1.5}

/* Keep the stock overview comparable; detailed provenance belongs in its read-only dialog. */
.inventory-stock-table>.table-wrap table{min-width:900px;table-layout:fixed;width:100%}.inventory-stock-table th,.inventory-stock-table td{padding:10px 12px;line-height:1.5;min-width:0}.inventory-stock-table thead th{white-space:nowrap}.inventory-stock-table th:nth-child(1){width:17%}.inventory-stock-table th:nth-child(2){width:14%}.inventory-stock-table th:nth-child(3){width:21%}.inventory-stock-table th:nth-child(4){width:15%}.inventory-stock-table th:nth-child(5){width:23%}.inventory-stock-table th:nth-child(6){width:10%}.inventory-stock-table th:nth-child(4),.inventory-stock-table td:nth-child(4),.inventory-stock-table th:nth-child(5),.inventory-stock-table td:nth-child(5){min-width:0}
.inventory-stock-table .table-wrap table.action-table th.operation-col,.inventory-stock-table .table-wrap table.action-table td.operation-col{width:10%}.inventory-stock-table .table-wrap table.action-table thead th{white-space:nowrap}.inventory-stock-table .operation-actions{width:100%;min-width:0}.inventory-stock-table .inventory-total-quantity{white-space:normal}
.inventory-stock-table .inventory-total-quantity,.inventory-price-number{font-variant-numeric:tabular-nums}.inventory-stock-table .inventory-name-button{display:block;width:100%;margin:0;padding:0;min-height:44px;border:0;background:transparent;text-align:left;font-weight:600;color:var(--ink)}.inventory-name-button>.inventory-label{display:flex;max-width:100%;align-items:flex-start}.inventory-name-button .inventory-label>span:first-child{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:0}.inventory-name-button:hover{color:var(--red);text-decoration:underline}.inventory-name-button .inventory-low-dot{margin-top:7px}
.inventory-locations-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.inventory-locations-preview .inventory-position-name{line-height:1.5}.inventory-locations-preview .inventory-position-name small{display:inline;margin-left:6px;font-size:12px}.inventory-stock-table .inventory-table-link{padding:0;border:0;background:transparent;color:var(--red);font-size:13px;text-decoration:underline;min-height:30px}.inventory-stock-table .inventory-updated-at{display:block;font-size:13px;margin-bottom:4px}.inventory-stock-table .badge{display:inline-block;font-size:12px;margin:2px 4px 0 0;padding:2px 6px;white-space:nowrap}.inventory-price-pair{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 8px;align-items:baseline}.inventory-price-caption{font-size:12px;color:var(--muted)}.inventory-price-number{text-align:right;white-space:nowrap;font-size:13px}.inventory-stock-table .inventory-row-menu,.inventory-stock-table .inventory-row-menu[open]{min-width:0;width:100%;max-width:none}.inventory-stock-table .inventory-row-menu>summary{min-width:0;padding:8px 4px;text-align:center}.inventory-row-menu .inventory-row-actions[popover]{display:none;position:fixed;inset:auto;margin:0;width:220px;max-width:calc(100vw - 16px);overflow:auto;overscroll-behavior:contain;padding:8px;border:1px solid #ced7d0;border-radius:8px;background:#fff;color:var(--ink);box-shadow:0 8px 28px #183a2926}.inventory-row-menu .inventory-row-actions[popover]:popover-open{display:grid}
.inventory-stock-detail{min-width:0}.inventory-stock-detail h3{margin:0 0 8px;overflow-wrap:anywhere}.inventory-stock-detail h4{margin:18px 0 8px}.inventory-stock-detail>p{margin:8px 0}.inventory-locations-full .inventory-position-name{margin:8px 0;overflow-wrap:anywhere}.inventory-stock-detail .inventory-batch-table>.table-wrap{max-height:48vh;overflow:auto;overscroll-behavior:contain}.inventory-stock-detail .inventory-batch-table>.table-wrap:focus-visible{outline:3px solid var(--red);outline-offset:2px}.inventory-batch-table table{min-width:700px;table-layout:fixed}.inventory-batch-table th,.inventory-batch-table td{padding:10px;line-height:1.5}.inventory-batch-table thead th{position:sticky;top:0;z-index:1;background:#edf1ec;white-space:nowrap}.inventory-batch-table th:first-child{width:28%}.inventory-batch-table th:nth-child(2){width:15%}.inventory-batch-table th:nth-child(3){width:17%}.inventory-batch-table th:nth-child(4){width:22%}.inventory-batch-table th:nth-child(5){width:18%}.inventory-stock-detail>details{margin-top:16px}.inventory-stock-detail>details p{overflow-wrap:anywhere}
@media(max-width:650px){.inventory-stock-table .inventory-table-link{min-height:44px}.inventory-stock-table th,.inventory-stock-table td{padding:8px 10px}.inventory-stock-detail .inventory-batch-table>.table-wrap{max-height:42dvh}}

/*0.9: the first two columns remain useful in a narrow native scroll region. */
#content .inventory-stock-table table{min-width:760px}
#content .inventory-stock-table th:nth-child(1){width:21%}#content .inventory-stock-table th:nth-child(2){width:17%}#content .inventory-stock-table th:nth-child(3){width:23%}#content .inventory-stock-table th:nth-child(4){width:18%}#content .inventory-stock-table th:nth-child(5){width:11%}#content .inventory-stock-table th:nth-child(6){width:10%}
.inventory-price-details{font-size:13px;white-space:normal}.inventory-price-details>summary{min-height:44px;cursor:pointer;display:flex;align-items:center}
.inventory-stock-table .inventory-price-pair{display:block}.inventory-stock-table .inventory-price-number{display:block;text-align:left;white-space:normal;overflow-wrap:anywhere}
.inventory-ledger-history{margin-top:20px}.inventory-ledger-history>summary{font-size:16px;font-weight:600;cursor:pointer;padding:10px 0;min-height:44px}

/* Both lists shrink to their rows; long content grows the row inside the scroll region. */
.inventory-stock-table>.table-wrap,.inventory-ledger-history>.table-wrap{height:auto;max-height:clamp(240px,46vh,500px);max-height:clamp(240px,46dvh,500px);overflow:auto;overscroll-behavior:contain;scrollbar-color:#929b96 #edf1ec}
.inventory-ledger-history>.table-wrap:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.inventory-ledger-history table{width:100%;min-width:760px;table-layout:fixed}
.inventory-stock-table th,.inventory-stock-table td,.inventory-ledger-history th,.inventory-ledger-history td{padding:10px 12px;font-size:14px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;vertical-align:top;font-variant-numeric:tabular-nums}
.inventory-ledger-history thead th,.inventory-ledger-history .table-wrap table.action-table th.operation-col{position:sticky;top:0;right:auto;z-index:2;background:#edf1ec}
.inventory-ledger-history th:nth-child(1){width:20%}.inventory-ledger-history th:nth-child(2){width:28%}.inventory-ledger-history th:nth-child(3){width:18%}.inventory-ledger-history th:nth-child(4){width:18%}.inventory-ledger-history th:nth-child(5){width:16%}
.inventory-ledger-history .table-wrap table.action-table th.operation-col,.inventory-ledger-history .table-wrap table.action-table td.operation-col{width:16%;white-space:normal;overflow-wrap:anywhere}
.inventory-ledger-history .table-wrap .operation-actions{display:flex;flex-wrap:wrap;align-items:start;gap:6px;min-width:0;width:100%;max-width:100%;white-space:normal}
.inventory-ledger-history .table-wrap .operation-actions button{flex-shrink:1;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:0}
.inventory-stock-table .inventory-name-button .inventory-label>span:first-child,.inventory-stock-table .inventory-locations-preview{display:block;-webkit-line-clamp:unset;overflow:visible;overflow-wrap:anywhere}
@media(max-width:650px){.inventory-stock-table th,.inventory-stock-table td,.inventory-ledger-history th,.inventory-ledger-history td{padding:8px 10px}}
