#inventoryArchive{margin-left:auto;min-height:44px}#inventoryArchive[aria-pressed=true]{background:var(--v2-accent,#087abf);color:white}.inventory-table{width:100%;table-layout:auto!important}.inventory-table #stock td,.inventory-table thead th{display:table-cell!important}.inventory-table th{font-size:12px}.inventory-model-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.inventory-model-bar>label{display:flex!important;align-items:center;gap:10px;margin:0!important;font-weight:700}.inventory-model-bar input,.inventory-unit input.bulk-unit-check{width:17px;height:17px;margin:0 10px 0 0;vertical-align:middle;flex:none}.inventory-group-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.inventory-group-actions small{font-size:11px;opacity:.8}.inventory-group-actions button{min-height:40px}.inventory-table #stock .inventory-unit td{padding:15px 12px;vertical-align:middle;background:var(--v2-surface,#fff);min-width:0}.inventory-unit td:first-child{width:48%;min-width:230px}.inventory-unit td:first-child>small{display:block;font-size:12px;line-height:1.6;margin:7px 0 0 28px;max-width:640px}.inventory-unit td:first-child>em{display:inline-block;margin:7px 0 0 28px;font-size:10px;font-style:normal;background:var(--v2-soft,#edf5fb);padding:4px 7px;border-radius:5px}.inventory-unit td:nth-child(3)>strong{display:block;margin-top:7px;white-space:nowrap}.inventory-status{font-size:11px;white-space:nowrap}.inventory-table #stock .inventory-model-header td{padding:16px;border-radius:9px 9px 0 0}.inventory-table #stock .inventory-unit button{min-height:40px;white-space:nowrap}#inventoryEditor{width:min(790px,calc(100% - 24px));max-width:790px;max-height:90dvh;padding:25px;box-sizing:border-box;border:1px solid var(--v2-line,#cbddeb);border-radius:16px;background:var(--v2-surface,#fff);color:var(--v2-text,#16344e);overflow-y:auto}#inventoryEditor::backdrop{background:#09293f88}.inventory-editor-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.inventory-editor-head h2{font-size:22px;line-height:1.4;margin:0}.inventory-editor-head>button{border:0;background:transparent;color:inherit;font-size:28px}#inventoryScope{font-size:13px;line-height:1.7;opacity:.8}#inventoryFields{display:grid;gap:16px}.inventory-field{padding:16px;border:1px solid var(--v2-line,#cbddeb);border-radius:10px}.inventory-field-label{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;margin:0 0 11px}.inventory-field-label input{width:18px;height:18px;flex:none;margin:0}.inventory-field .inventory-value{box-sizing:border-box;max-width:none;width:100%;margin:0;min-height:44px;font:inherit;color:var(--v2-text,#16344e);background:var(--v2-soft,#edf5fb);border:1px solid var(--v2-line,#cbddeb);border-radius:8px;padding:10px 12px}.inventory-field .inventory-value:disabled{opacity:.5}.inventory-field .inventory-value-toggle{width:22px;height:22px;min-height:0;padding:0}.inventory-field>small{display:block;font-size:11px;line-height:1.6;margin-top:8px;opacity:.75}.inventory-editor-footer{display:flex;justify-content:flex-end;gap:12px;position:sticky;bottom:-25px;background:var(--v2-surface,#fff);padding:18px 0;margin-top:16px;border-top:1px solid var(--v2-line,#cbddeb)}#inventoryError{color:#af4646;font-size:13px}#inventoryPhotoList{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:12px}#inventoryPhotoList>div{display:grid;gap:5px}#inventoryPhotoList img{width:90px;height:75px;object-fit:contain;border-radius:7px;background:var(--v2-soft,#edf5fb)}#inventoryPhotoList button{font-size:11px;min-height:30px}@media(max-width:700px){.inventory-table{min-width:660px}.inventory-model-bar{align-items:flex-start;gap:10px}.inventory-group-actions{gap:8px}.inventory-group-actions small{display:block;width:100%}#inventoryEditor{padding:17px}.inventory-editor-head h2{font-size:18px}.inventory-field{padding:12px}.inventory-field .inventory-value{font-size:16px}.inventory-editor-footer{bottom:-17px}}

#crm-cards .bulk-stock>label{flex:1 0 100%;display:flex;flex-direction:column;gap:8px;margin-bottom:4px}#crm-cards .bulk-stock>label input{width:min(480px,100%);box-sizing:border-box}#crm-cards .bulk-stock>button{margin-top:0}#inventoryArchive{white-space:nowrap}

#crm-cards .inventory-group-actions>button{background:#0e6f72!important;border:1px solid #0e6f72!important;color:#fff!important;font-weight:700;box-shadow:0 3px 10px #0e6f7220;padding:10px 15px}
#crm-cards .inventory-group-actions>button:hover{background:#09595d!important;border-color:#09595d!important}
#crm-cards .inventory-group-actions>button:focus-visible{outline:3px solid #39b9be;outline-offset:3px}
html[data-theme=dark] #crm-cards .inventory-group-actions>button{background:#70d2d1!important;border-color:#70d2d1!important;color:#082b31!important;box-shadow:none}
html[data-theme=dark] #crm-cards .inventory-group-actions>button:hover{background:#98e0de!important;border-color:#98e0de!important}

.inventory-listing-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.inventory-listing-shortcuts button {
  min-width: 44px;
  padding-inline: 9px;
}

#crm-cards .inventory-listing-shortcuts button.is-published {
  background: #187747;
  border-color: #187747;
  color: #fff;
}
#crm-cards .inventory-listing-shortcuts button.is-published:hover {
  background: #115e37;
  border-color: #115e37;
}
html[data-theme="dark"] #crm-cards .inventory-listing-shortcuts button.is-published {
  background: #266546;
  border-color: #56aa80;
  color: #f0fff6;
}
html[data-theme="dark"] #crm-cards .inventory-listing-shortcuts button.is-published:hover {
  background: #307b55;
}

#inventoryListing {
  width: min(640px, calc(100% - 24px));
  max-height: 90dvh;
  box-sizing: border-box;
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--v2-line, #cbddeb);
  border-radius: 16px;
  background: var(--v2-surface, #fff);
  color: var(--v2-text, #16344e);
}
#inventoryListing::backdrop { background: #09293f88; }
#inventoryListing fieldset { margin: 12px 0; border: 1px solid var(--v2-line, #cbddeb); }
#inventoryListingPlatforms { display: flex; flex-wrap: wrap; gap: 12px; }
#inventoryListingPlatforms input { width: auto; margin: 0; }
#inventoryListingPhoto { width: 150px; max-height: 110px; object-fit: contain; margin-bottom: 12px; }
#inventoryListingText { display: block; box-sizing: border-box; width: 100%; max-width: none; margin-top: 6px; }
#inventoryListing .inventory-editor-footer { bottom: -20px; display: grid; gap: 8px; justify-content: stretch; }
#inventoryListingStatus { margin: 0; font-size: 14px; }
#inventoryListingStatus:empty { display: none; }
.inventory-listing-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.inventory-model-heading{display:flex;align-items:center;gap:10px;min-width:0}
.inventory-model-heading label{min-width:0}
#stock .inventory-unit[hidden]{display:none!important}
#stock .inventory-group-toggle{display:inline-grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;min-height:34px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit}
#stock .inventory-group-toggle::before{content:"";width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(-45deg)}
#stock .inventory-group-toggle[aria-expanded=true]::before{transform:translateY(-2px) rotate(45deg)}
#stock .inventory-group-toggle:focus-visible{outline:2px solid currentColor;outline-offset:2px}

.inventory-view-filters{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0}
.inventory-view-filters>button{min-height:42px;padding:10px 18px;border-radius:9px}
.inventory-view-filters>button[aria-pressed=true]{background:#0e6f72!important;color:#fff!important;border-color:#0e6f72!important}
.inventory-view-filters label{display:flex;align-items:center;gap:9px;margin:0 0 0 auto}
.inventory-view-filters select{width:auto;max-width:100%;min-height:42px;margin:0}
@media(max-width:600px){.inventory-view-filters label{margin:0;flex-wrap:wrap}}
