/* Inventory lives inside the CRM shell; only this module is themed here. */
.crm-app .inv-workspace{min-width:0;max-width:100%;color:#e5f1f7;--inv-border:#3b6070;--inv-muted:#b2cbd5;color-scheme:dark}
.crm-app .inv-crm-hero{display:flex;align-items:center;gap:20px;padding:26px;border:1px solid #48868b;border-top:3px solid #82ebd9;border-radius:22px;background:linear-gradient(115deg,#1b535a,#1b3048);margin-bottom:18px}
.crm-app .inv-crm-mark{display:grid;place-items:center;width:64px;height:64px;flex-shrink:0;border-radius:18px;background:linear-gradient(140deg,#8aefd5,#65c5e5);color:#123846}
.crm-app .inv-crm-hero small{color:#91e7dc;font-size:11px;font-weight:750;letter-spacing:1.7px}
.crm-app .inv-crm-hero h2{font-size:30px;margin:6px 0;color:#f0f7fc}
.crm-app .inv-crm-hero p{margin:0;color:#c2dce6}
.crm-app .inv-crm-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.crm-app .inv-crm-tabs button{border:1px solid #568698;border-radius:10px;background:#15333f;color:#d4e8f2;padding:12px 18px;min-height:44px;font:inherit;font-weight:650;cursor:pointer}
.crm-app .inv-crm-tabs button[aria-pressed=true]{background:#206b68;color:#edfffb;border-color:#8bedd9}
.crm-app .inv-workspace .inventory{color:#e5f1f7;background:transparent;min-width:0}
.crm-app .inv-workspace .inventory h2,.crm-app .inv-workspace .inventory h3{color:#e8f3fa;margin:0 0 14px;line-height:1.3}
.crm-app .inv-workspace .inventory h2{font-size:23px}
.crm-app .inv-workspace .inventory h3{font-size:19px}
.crm-app .inv-workspace .inventory p{line-height:1.55}
.crm-app .inv-workspace .inv-catalog,.crm-app .inv-workspace .inv-columns>section,.crm-app .inv-workspace .inv-embedded>section:not(.inv-catalog){border:1px solid var(--inv-border);border-radius:18px;background:#142f3b;padding:22px;margin:20px 0;min-width:0}
.crm-app .inv-workspace .inv-summary-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:15px 0}
.crm-app .inv-workspace .inv-summary-cards>div{min-width:0;background:linear-gradient(125deg,#1d434b,#192e42);border:1px solid #426675;border-top:3px solid #80e6c7;border-radius:13px;padding:18px}
.crm-app .inv-workspace .inv-summary-cards>div:nth-child(2){border-top-color:#78cce9}
.crm-app .inv-workspace .inv-summary-cards>div:nth-child(3){border-top-color:#ffd27d}
.crm-app .inv-workspace .inv-summary-cards>div:nth-child(4){border-top-color:#baa3ff}
.crm-app .inv-workspace .inv-summary-cards strong{font-size:32px;color:#86edcf;font-variant-numeric:tabular-nums}
.crm-app .inv-workspace .inv-summary-cards>div:nth-child(2) strong{color:#87dcf6}
.crm-app .inv-workspace .inv-summary-cards>div:nth-child(3) strong{color:#ffd27d}
.crm-app .inv-workspace .inv-summary-cards>div:nth-child(4) strong{color:#cfb7ff}
.crm-app .inv-workspace .inv-summary-cards span{display:block;color:#d1e4ee;font-size:13px;margin-top:5px}
.crm-app .inv-workspace .inv-muted{color:var(--inv-muted);font-size:13px}
.crm-app .inv-workspace .inv-alert{color:#ffcf7b}
.crm-app .inv-workspace .inventory a{color:#81e2e0}
.crm-app .inv-workspace .inventory label{color:#c9dfe9;font-weight:600;min-width:0}
.crm-app .inv-workspace .inventory input,.crm-app .inv-workspace .inventory select,.crm-app .inv-workspace .inventory textarea{background:#0b242f;color:#e6f2fa;border:1px solid #527889;border-radius:9px;min-height:44px;font:inherit;width:100%;padding:11px 12px}
.crm-app .inv-workspace .inventory select{appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239de6df' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat}
.crm-app .inv-workspace .inventory select option{background:#112c38;color:#e6f2fa}
.crm-app .inv-workspace .inventory textarea{min-height:88px;resize:vertical}
.crm-app .inv-workspace .inventory input::placeholder,.crm-app .inv-workspace .inventory textarea::placeholder{color:#9bb7c5;opacity:1}
.crm-app .inv-workspace :is(input,select,textarea,button,a):focus-visible{outline:2px solid #80e7d8;outline-offset:3px}
.crm-app .inv-workspace .inventory button{background:#1b4252;color:#e8f3f9;border:1px solid #56899a;border-radius:9px;font-weight:650;min-height:42px;padding:10px 14px;transition:background .15s,transform .1s}
.crm-app .inv-workspace .inventory button:hover:not(:disabled),.crm-app .inv-crm-tabs button:hover{background:#285968}
.crm-app .inv-workspace .inventory button:active:not(:disabled),.crm-app .inv-crm-tabs button:active{transform:translateY(1px)}
.crm-app .inv-workspace .inventory .inv-primary{background:#217b70;border-color:#8be2c9;color:#f0fffa}
.crm-app .inv-workspace .inventory button:disabled{opacity:.55;cursor:not-allowed}
.crm-app .inv-workspace .inv-table{max-width:100%;overflow:auto;border:1px solid #365867;border-radius:11px;margin-top:15px;overscroll-behavior-x:contain;scrollbar-color:#5a9b9c #102631}
.crm-app .inv-workspace .inv-table table{background:#102b37;color:#e0edf4;font-variant-numeric:tabular-nums}
.crm-app .inv-workspace .inv-table th{background:#203f51;color:#cce8f4;font-size:12px;padding:13px 12px;white-space:nowrap}
.crm-app .inv-workspace .inv-table td{padding:12px;border-bottom:1px solid #304d5b;font-size:13px}
.crm-app .inv-workspace .inv-table th{border-bottom:1px solid #507386}
.crm-app .inv-workspace .inv-table tbody tr:nth-child(even){background:#153340}
.crm-app .inv-workspace .inv-table tbody tr:hover{background:#1c4350}
.crm-app .inv-workspace .inv-table td:first-child{min-width:155px}
.crm-app .inv-workspace .inv-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.crm-app .inv-workspace .inv-columns>section,.crm-app .inv-workspace .inv-columns>label{min-width:0}
.crm-app .inv-workspace .inv-actions{gap:12px}
.crm-app .inv-workspace .inv-actions h2{margin:0;min-width:180px}
.crm-app .inv-workspace .inv-movement{border:1px solid #385d69;border-left:3px solid #6ed8c9;background:#102b36;border-radius:10px;padding:15px;margin:12px 0;color:#c7dfe9}
.crm-app .inv-workspace .inv-movement strong{color:#8ee9d5}
.crm-app .inv-workspace .inv-photo{border-radius:12px}
@media(max-width:1100px){.crm-app .inv-workspace .inv-columns{grid-template-columns:1fr}.crm-app .inv-workspace .inv-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .crm-app .inv-crm-hero{padding:18px 14px;gap:12px;border-radius:15px}
 .crm-app .inv-crm-mark{width:44px;height:44px;border-radius:12px}
 .crm-app .inv-crm-hero h2{font-size:25px}
 .crm-app .inv-crm-hero small{font-size:9px;letter-spacing:1px}
 .crm-app .inv-crm-hero p{font-size:13px}
 .crm-app .inv-workspace .inv-catalog,.crm-app .inv-workspace .inv-columns>section,.crm-app .inv-workspace .inv-embedded>section:not(.inv-catalog){padding:14px;border-radius:13px}
 .crm-app .inv-workspace .inv-summary-cards{gap:8px}
 .crm-app .inv-workspace .inv-summary-cards>div{padding:13px}
 .crm-app .inv-workspace .inventory h2{font-size:20px}
 .crm-app .inv-crm-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px}
 .crm-app .inv-crm-tabs button{padding:10px 6px;font-size:12px}
 .crm-app .inv-workspace .inv-actions{align-items:stretch}
 .crm-app .inv-workspace .inv-actions h2{flex-basis:100%}
 .crm-app .inv-workspace .inv-actions>button{width:100%}
}
.crm-app .inv-workspace .inv-crm-hero{justify-content:flex-start;text-align:left}
.crm-app .inv-workspace .inv-crm-hero>div{flex:1;min-width:0;text-align:left}
.crm-app .inv-workspace form{scroll-margin-top:190px}
@media(max-width:600px){
 .crm-app .inv-workspace form{scroll-margin-top:310px}
 .crm-app .inv-workspace .inv-embedded>.inv-actions{flex-direction:column;align-items:stretch}
 .crm-app .inv-workspace .inv-embedded>.inv-actions>label{width:100%}
}
