/* Sketsa Inventory v4 — component styles, inherits app theme and Figtree. */
#sk-inventory-modal-root,#sk-estimate-root{position:relative;font-family:Figtree,Inter,system-ui,sans-serif}
.sk-overlay{position:fixed;inset:0;z-index:4000;background:rgba(5,13,29,.66);display:flex;justify-content:center;align-items:center;padding:18px;box-sizing:border-box;backdrop-filter:blur(3px)}
.sk-modal{background:var(--wf-card,#fff);color:var(--wf-text,#172337);border:1px solid var(--wf-border,#dee4ee);border-radius:16px;box-shadow:0 24px 60px rgba(0,0,0,.24);width:min(600px,100%);max-height:90dvh;overflow:auto;overscroll-behavior:contain;padding:24px;box-sizing:border-box}
.sk-modal>.wf-modal-head{position:sticky;top:-24px;z-index:3;background:var(--wf-card,#fff);padding:2px 0 12px;border-bottom:1px solid var(--wf-border,#dbe3ef);margin-bottom:16px}
.sk-modal label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:var(--wf-text,#182336);margin-bottom:13px}
.sk-modal .wf-input{background:var(--wf-bg,#f7f9fc);color:var(--wf-text,#182336);border:1px solid var(--wf-border,#dce3ed);max-width:100%;width:100%;min-width:0;box-sizing:border-box}
.sk-modal input[type="checkbox"]{width:auto}
.sk-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}
.sk-check{flex-direction:row!important;align-items:center;gap:10px!important}
.sk-key-status{font-size:12px;font-weight:600;margin:0 0 14px;color:var(--wf-muted,#687587)}
.sk-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.sk-summary .wf-stat{min-width:0}
.sk-summary .wf-stat strong{font-size:clamp(20px,2vw,28px)}
.sk-inv-panel{overflow:hidden}
.sk-inv-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.sk-search-input{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 230px;max-width:600px}
.sk-search-input .wf-input{flex:1;min-width:0;width:100%}
.sk-inv-table{min-width:920px}
.sk-inv-table th{background:#bd4a48;color:#fff;font-size:11px;white-space:nowrap;letter-spacing:.02em}
.sk-inv-table td{font-variant-numeric:tabular-nums;white-space:nowrap}
.sk-inv-table td:nth-child(2){min-width:165px;white-space:normal}
.sk-inv-table small{display:block;color:var(--wf-muted);font-size:11px}
.sk-stock{display:inline-block;border-radius:20px;padding:4px 9px;background:#dcf7eb;color:#136b4a;font-weight:800}
.sk-stock.is-empty{background:#ffeaeb;color:#a63838}
.sk-actions{display:flex;align-items:center;gap:4px}
.sk-actions .kl-inline-icon{width:15px;height:15px}
.sk-empty{padding:32px 22px}
.sk-empty h2{margin:0 0 10px}
.sk-est-inline{display:flex;gap:7px;align-items:stretch}
.sk-est-inline .wf-input{flex:1;min-width:0}
.sk-est-inline button{width:43px;min-width:43px;padding:6px;display:flex;align-items:center;justify-content:center}
.sk-est-modal{width:min(1080px,100%);max-height:94dvh;padding:22px}
.sk-est-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 1fr;gap:10px;align-items:end;margin-bottom:10px}
.sk-est-fields label{margin-bottom:0}
.sk-area{border:1px dashed var(--wf-border,#d4dae6);border-radius:9px;min-height:43px;display:flex;gap:7px;align-items:center;justify-content:center;color:var(--wf-muted);font-size:12px;padding:6px;box-sizing:border-box}
.sk-area b{font-size:16px;color:var(--wf-text)}
.sk-description{margin:12px 0!important}
.sk-est-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.sk-est-tools .sk-search-input{min-width:230px}
.sk-est-tools button{white-space:nowrap;display:inline-flex;gap:5px;align-items:center;justify-content:center}
.sk-search-results{display:flex;flex-wrap:wrap;gap:6px;max-height:140px;overflow-y:auto;margin-bottom:12px}
.sk-search-results button{border:1px solid var(--wf-border,#d8e0ea);background:var(--wf-bg,#f3f7fc);color:var(--wf-text);border-radius:8px;min-width:160px;max-width:280px;flex:1 1 170px;text-align:left;cursor:pointer;padding:9px}
.sk-search-results button:hover{border-color:var(--wf-accent,#4a60ec)}
.sk-search-results small{display:block;margin-top:3px;color:var(--wf-muted);font-size:10px}
.sk-est-table{min-width:760px;width:100%}
.sk-est-table thead th{white-space:nowrap;font-size:11px}
.sk-est-table td{vertical-align:middle}
.sk-est-table .wf-input{min-width:70px;font-size:12px;padding:8px}
.sk-est-table td:nth-child(2){min-width:180px}
.sk-est-table td:nth-child(3){width:92px}
.sk-est-table td:nth-child(4){width:70px}
.sk-est-table td:nth-child(5){min-width:125px}
.sk-est-foot{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid var(--wf-border);flex-wrap:wrap}
.sk-est-foot>span{font-size:11px;color:var(--wf-muted);max-width:60%}
.sk-est-total{display:flex;align-items:baseline;gap:12px;color:var(--wf-text);font-weight:650}
.sk-est-total strong{font-size:24px;font-variant-numeric:tabular-nums;color:var(--wf-accent)}
@media(max-width:850px){.sk-est-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.sk-summary{grid-template-columns:1fr 1fr}.sk-est-modal{padding:14px}.sk-est-foot>span{max-width:100%}}
@media(max-width:560px){.sk-overlay{padding:7px}.sk-modal{max-height:97dvh;padding:15px}.sk-modal>.wf-modal-head{top:-15px}.sk-grid2{grid-template-columns:1fr}.sk-est-fields{grid-template-columns:1fr 1fr}.sk-summary{grid-template-columns:1fr}.sk-est-tools>*{flex:1 1 auto}.sk-inv-toolbar>.sk-search-input{flex-basis:100%}.sk-est-total strong{font-size:20px}}

/* Inventory — toolbar icons only */
.sk-inv-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sk-inv-icon-button{width:42px;min-width:42px;height:42px;padding:9px;display:inline-flex;align-items:center;justify-content:center;line-height:1}
.sk-inv-icon-button .kl-inline-icon{width:20px;height:20px;min-width:20px;display:block;fill:none;stroke:currentColor;stroke-width:0}
.sk-inv-icon-button:focus-visible{outline:3px solid var(--wf-accent,#6157e8);outline-offset:2px}
