:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:#ffffffde;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#242424;font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.5}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}a{color:#646cff;-webkit-text-decoration:inherit;text-decoration:inherit;font-weight:500}a:hover{color:#535bf2}body{place-items:center;min-width:320px;min-height:100vh;margin:0;display:flex}h1{font-size:1.2em;line-height:1.1}button{cursor:pointer;background-color:#1a1a1a;border:1px solid #0000;border-radius:8px;padding:.6em 1.2em;font-family:inherit;font-size:1em;font-weight:500;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.app{color:#333;background:#fff;max-width:800px;min-height:100vh;margin:0 auto;padding:20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}header{border-bottom:1px solid #ccc;margin-bottom:20px;padding-bottom:10px}nav{margin-top:10px}nav button{color:#fff;cursor:pointer;background:#007bff;border:none;border-radius:4px;margin-right:10px;padding:8px 16px}nav button.active{background:#0056b3;font-weight:700}.add-button{background:#28a745;padding:8px 12px;font-size:18px;font-weight:700}.tab-header{border-bottom:1px solid #ddd;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:10px;display:flex}.tab-header h2{margin:0}.tab-header button{color:#fff;cursor:pointer;background:#28a745;border:none;border-radius:4px;padding:8px 16px}.tab-header button:hover{background:#218838}main{margin-top:20px}form{flex-direction:column;gap:10px;max-width:400px;margin:0 auto;display:flex}form div{flex-direction:column;gap:5px;display:flex}form label{font-size:.9em;font-weight:700}input,select{border:1px solid #ccc;border-radius:4px;padding:8px}button[type=submit]{color:#fff;cursor:pointer;background:#28a745;border:none;border-radius:4px;padding:10px}button[type=submit]:hover{background:#218838}ul{padding:0;list-style:none}li{border:1px solid #eee;border-radius:4px;margin-bottom:5px;padding:8px}.barcode-scanner{margin-top:10px}.item-card{border:1px solid #ddd;border-radius:8px;margin-bottom:10px;padding:10px}.item-card h3{margin-top:0}.item-card ul{margin:5px 0;padding-left:20px}.item-actions{margin:10px 0}.item-actions button{margin-right:8px;padding:4px 8px;font-size:.9em}.inventory-item{background:#fff;border:1px solid #ddd;border-radius:8px;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:15px;padding:15px;display:flex}.inventory-item.good{border-color:#28a745}.inventory-item.expiring-soon{background:#fff3cd;border-color:#ffc107}.inventory-item.expired{background:#f8d7da;border-color:#dc3545}.item-info{flex:1}.item-info h3{color:#333;margin:0 0 10px}.item-info p{color:#666;margin:5px 0;font-size:.9em}.delete-btn{background:#dc3545!important}.delete-btn:hover{background:#c82333!important}.form-actions{gap:10px;margin-top:10px;display:flex}.form-actions button[type=button]{background:#6c757d}.form-actions button[type=button]:hover{background:#5a6268}.inventory-actions{gap:5px;margin-top:5px;display:flex}.inventory-actions button{padding:2px 6px;font-size:.8em}.inventory-locations{margin-top:10px}.location-group{background:#f9f9f9;border:1px solid #e0e0e0;border-radius:6px;margin-bottom:15px;padding:10px}.location-group h4{color:#666;margin:0 0 8px;font-size:.9em}.location-group ul{margin:0;padding-left:0;list-style:none}.orphaned-locations{background:#f8d7da!important;border:2px solid #dc3545!important}.orphaned-locations h3{color:#721c24;margin:0 0 15px;font-size:1.1em}.orphaned{background:#fff5f5;border-left:4px solid #dc3545}.warning{color:#856404;font-size:.9em;font-weight:700}.inventory-instance{border-bottom:1px solid #eee;justify-content:space-between;align-items:center;padding:8px 0;display:flex}.inventory-instance:last-child{border-bottom:none}.instance-details{flex-direction:column;gap:2px;display:flex}.quantity{font-weight:700}.expiration{color:#d9534f;font-size:.85em;font-weight:500}.store-info,.brand-info,.price-info{color:#666;font-size:.85em;font-weight:500}.physical-location-inventory{background:#f8fafc;border:2px solid #4f46e5;border-radius:10px;margin-bottom:25px;padding:15px}.physical-location-inventory h4{color:#1e293b;margin:0 0 15px;font-size:1.1em;font-weight:700}.physical-inventory{background:#e0e7ff!important;border-color:#6366f1!important;margin-left:0!important}.sub-location-inventory{background:#f1f5f9!important;border-color:#cbd5e1!important;margin-left:20px!important}.sub-location-inventory h5{color:#475569;margin:0 0 8px;font-size:.95em;font-weight:700}.locations-list{gap:15px;display:grid}.location-card{background:#f9f9f9;border:1px solid #ddd;border-radius:8px;padding:15px}.location-card h3{color:#333;margin-top:0}.locations-hierarchy{flex-direction:column;gap:20px;display:flex}.physical-location-group{background:#f8fafc;border:2px solid #4f46e5;border-radius:12px;padding:15px}.physical-location{margin-bottom:15px;background:#e0e7ff!important;border-color:#4f46e5!important}.sub-locations{border-left:2px solid #cbd5e1;margin-left:20px;padding-left:15px}.sub-locations h4{color:#64748b;margin:10px 0;font-size:1.1em}.sub-location{margin-bottom:10px;background:#f1f5f9!important;border-color:#cbd5e1!important}.sub-location h4{color:#475569;margin:0 0 8px;font-size:1.1em}@media (prefers-color-scheme:dark){.app{color:#e4e4e7;background:#0f0f0f}header{border-bottom-color:#374151}nav button{background:#3b82f6}nav button:hover{background:#2563eb}input,select{color:#e4e4e7;background:#1f2937;border-color:#374151}input:focus,select:focus{border-color:#3b82f6;outline:none}button[type=submit]{background:#10b981}button[type=submit]:hover{background:#059669}li,.item-card{background:#1f2937;border-color:#374151}.item-card h3{color:#e4e4e7}.delete-btn{background:#ef4444!important}.delete-btn:hover{background:#dc2626!important}.form-actions button[type=button]{background:#6b7280}.form-actions button[type=button]:hover{background:#4b5563}.location-group{background:#1f2937;border-color:#374151}.location-group h4{color:#9ca3af}.location-card{background:#1f2937;border-color:#374151}.location-card h3{color:#e4e4e7}.physical-location-group{background:#1e1b4b;border-color:#6366f1}.physical-location{background:#312e81!important;border-color:#6366f1!important}.sub-locations{border-left-color:#475569}.sub-locations h4{color:#94a3b8}.sub-location{background:#1e293b!important;border-color:#475569!important}.sub-location h4{color:#cbd5e1}.physical-location-inventory{background:#1e1b4b;border-color:#6366f1}.physical-location-inventory h4{color:#c7d2fe}.physical-inventory{background:#312e81!important;border-color:#6366f1!important}.sub-location-inventory{background:#1e293b!important;border-color:#475569!important}.sub-location-inventory h5{color:#cbd5e1}.inventory-instance{border-bottom-color:#374151}.quantity{color:#e4e4e7}.expiration{color:#f87171}.grouped-note{color:#9ca3af}.store-info,.brand-info,.price-info{color:#a0aec0}.orphaned-locations{background:#450a0a!important;border-color:#dc2626!important}.orphaned-locations h3{color:#fca5a5}.orphaned{background:#2d1b1b;border-left-color:#dc2626}.warning{color:#fbbf24}body{background:#0f0f0f;margin:0}h1,h2,h3,h4{color:#e4e4e7}p{color:#d1d5db}label{color:#e4e4e7}}.store-card,.brand-card{background:#fff;border:1px solid #ddd;border-radius:8px;margin-bottom:10px;padding:15px}.store-card h3,.brand-card h3{color:#333;margin-top:0}.store-card p,.brand-card p{color:#666;margin:5px 0}.stores-list,.brands-list{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:15px;margin-top:20px;display:grid}@media (prefers-color-scheme:dark){.store-card,.brand-card{background:#2d3748;border-color:#4a5568}.store-card h3,.brand-card h3{color:#e2e8f0}.store-card p,.brand-card p{color:#a0aec0}}.goal-card{background:#f9f9f9;border:1px solid #ddd;border-radius:8px;margin-bottom:15px;padding:15px}.goal-card h3{color:#333;margin:0 0 10px}.goal-card p{color:#666;margin:5px 0}.goal-actions{gap:10px;margin-top:10px;display:flex}.prefill-buttons{gap:10px;margin-left:auto;display:flex}.prefill-buttons button{color:#fff;cursor:pointer;background:#17a2b8;border:none;border-radius:4px;padding:6px 12px;font-size:14px}.prefill-buttons button:hover{background:#138496}@media (prefers-color-scheme:dark){.goal-card{background:#2d3748;border-color:#4a5568}.goal-card h3{color:#e2e8f0}.goal-card p{color:#a0aec0}}.orphaned-locations{background:#f8d7da;border:2px solid #dc3545;border-radius:8px;margin-top:30px;padding:20px}.orphaned-locations h3{color:#721c24;margin-top:0;font-size:1.2em}.orphaned-location{background:#f5c6cb!important;border-color:#dc3545!important}.orphaned-location h4{color:#721c24}@media (prefers-color-scheme:dark){.orphaned-locations{background:#2d1b1e;border-color:#dc3545}.orphaned-locations h3{color:#ea868f}.orphaned-location{background:#3d2528!important;border-color:#dc3545!important}.orphaned-location h4{color:#ea868f}}.filters-section{background:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;margin-bottom:20px;padding:15px}.filters{background:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;flex-wrap:wrap;align-items:center;gap:15px;margin-bottom:20px;padding:15px;display:flex}.inventory-list{gap:15px;display:grid}.filter-row,.sort-row{align-items:end;gap:15px;margin-bottom:10px;display:flex}.filter-row:last-child,.sort-row:last-child{margin-bottom:0}.filter-group{flex-direction:column;gap:5px;min-width:150px;display:flex}.filter-group label{color:#495057;font-size:.9em;font-weight:600}.filter-group input,.filter-group select{border:1px solid #ced4da;border-radius:4px;padding:6px 8px;font-size:.9em}.filter-group input:focus,.filter-group select:focus{border-color:#007bff;outline:none;box-shadow:0 0 0 2px #007bff40}.filter-toggle{margin-left:10px;background:#6c757d!important}.filter-toggle:hover{background:#5a6268!important}.clear-filters{cursor:pointer;border:none;border-radius:4px;align-self:end;padding:6px 12px;font-size:.9em;color:#fff!important;background:#dc3545!important}.clear-filters:hover{background:#c82333!important}@media (prefers-color-scheme:dark){.filters-section,.filters{background:#2d3748;border-color:#4a5568}.filter-group label{color:#e2e8f0}.filter-group input,.filter-group select{color:#e2e8f0;background:#1a202c;border-color:#4a5568}.filter-group input:focus,.filter-group select:focus{border-color:#63b3ed;box-shadow:0 0 0 2px #63b3ed40}.inventory-item{background:#2d3748;border-color:#4a5568}.inventory-item.good{border-color:#48bb78}.inventory-item.expiring-soon{background:#2d3748;border-color:#ed8936}.inventory-item.expired{background:#2d3748;border-color:#f56565}.item-info h3{color:#e2e8f0}.item-info p{color:#cbd5e1}}@media (max-width:768px){.inventory-item{flex-direction:column;align-items:stretch;gap:15px}.item-actions{justify-content:flex-end;gap:8px;margin-top:10px;display:flex}.item-actions button{flex:1;margin-right:0}.filters{flex-direction:column;gap:10px}.filter-row,.sort-row{flex-direction:column;align-items:stretch;gap:8px}.filter-group{min-width:unset;width:100%}}.notifications{z-index:1000;max-width:400px;position:fixed;top:20px;right:20px}.notification{border-radius:4px;justify-content:space-between;align-items:center;margin-bottom:8px;padding:12px 16px;font-weight:500;display:flex;box-shadow:0 2px 8px #0000001a}.notification-success{color:#155724;background-color:#d4edda;border:1px solid #c3e6cb}.notification-error{color:#721c24;background-color:#f8d7da;border:1px solid #f5c6cb}.notification-warning{color:#856404;background-color:#fff3cd;border:1px solid #ffeaa7}.notification-info{color:#0c5460;background-color:#d1ecf1;border:1px solid #bee5eb}.notification-close{cursor:pointer;color:inherit;opacity:.7;background:0 0;border:none;margin-left:12px;padding:0;font-size:20px}.notification-close:hover{opacity:1}.modal-overlay{z-index:1001;background-color:#00000080;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:8px;width:90%;max-width:500px;max-height:80vh;padding:20px;overflow-y:auto;box-shadow:0 4px 12px #00000026}.modal h3{color:#333;margin-top:0}.modal p{margin:10px 0;line-height:1.5}.duplicate-details{background:#f8f9fa;border-left:4px solid #007bff;border-radius:4px;margin:15px 0;padding:15px}.duplicate-details p{margin:5px 0;font-size:14px}.modal-actions{flex-wrap:wrap;gap:10px;margin-top:20px;display:flex}.modal-actions button{cursor:pointer;border:none;border-radius:4px;flex:1;min-width:120px;padding:8px 16px;font-size:14px}.modal-actions button:first-child{color:#fff;background:#28a745}.modal-actions button:nth-child(2){color:#fff;background:#007bff}.modal-actions button:last-child{color:#fff;background:#6c757d}.modal-actions button:hover{opacity:.9}@media (prefers-color-scheme:dark){.modal{color:#e4e4e7;background:#1f2937}.modal h3{color:#e4e4e7}.modal p{color:#d1d5db}.modal-actions button{color:#e4e4e7;background:#374151;border:1px solid #4b5563}.modal-actions button:first-child{background:#10b981;border-color:#10b981}.modal-actions button:nth-child(2){background:#3b82f6;border-color:#3b82f6}.modal-actions button:last-child{background:#6b7280;border-color:#6b7280}.modal-actions button:hover{opacity:.8}.duplicate-details{background:#374151;border-left-color:#3b82f6}.duplicate-details p{color:#d1d5db}}.form-field{margin-bottom:15px}.form-field label{color:#333;margin-bottom:5px;font-weight:500;display:block}.form-field input[type=number],.form-field select{color:#333;background:#fff;border:1px solid #ddd;border-radius:4px;width:100%;padding:8px 12px;font-size:14px}.form-field input[type=number]:focus,.form-field select:focus{border-color:#007bff;outline:none;box-shadow:0 0 0 2px #007bff40}.form-field input[type=checkbox]{width:auto;margin-right:8px}@media (prefers-color-scheme:dark){.form-field label{color:#e4e4e7}.form-field input[type=number],.form-field select{color:#e4e4e7;background:#374151;border-color:#4b5563}.form-field input[type=number]:focus,.form-field select:focus{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f640}.form-field input[type=checkbox]{background:#374151;border-color:#4b5563}}.form-info{background:#f8f9fa;border-left:4px solid #007bff;border-radius:6px;margin-bottom:20px;padding:15px}.form-info div{margin-bottom:8px;font-size:14px}.form-info div:last-child{margin-bottom:0}.form-info strong{color:#495057}@media (prefers-color-scheme:dark){.form-info{background:#374151;border-left-color:#3b82f6}.form-info div{color:#d1d5db}.form-info strong{color:#e4e4e7}}.delete-details{background:#f8f9fa;border-left:4px solid #dc2626;border-radius:6px;margin:15px 0;padding:15px}.delete-details p{margin:8px 0;font-size:14px}.warning-text{color:#dc2626;text-align:center;margin:10px 0;font-weight:500}@media (prefers-color-scheme:dark){.delete-details{background:#2d1b1b;border-left-color:#dc2626}.delete-details p{color:#d1d5db}.warning-text{color:#f87171}}.usage-table{margin-top:20px;overflow-x:auto}.usage-table-desktop{border-collapse:collapse;background:#fff;border:1px solid #ddd;width:100%;box-shadow:0 2px 4px #0000001a}.usage-table-desktop th,.usage-table-desktop td{text-align:left;color:#333;border-bottom:1px solid #ddd;border-right:1px solid #eee;padding:12px 8px}.usage-table-desktop th{color:#333;z-index:10;background:#f8f9fa;border-bottom:2px solid #ddd;font-weight:600;position:sticky;top:0}.usage-table-desktop tr:nth-child(2n){background:#f8f9fa}.usage-table-desktop tr:nth-child(2n) td{color:#333}.usage-table-desktop tr:hover{background:#e3f2fd}.usage-table-desktop tr:hover td{color:#333}.usage-table-desktop td:last-child,.usage-table-desktop th:last-child{border-right:none}.usage-table-desktop th:first-child,.usage-table-desktop td:first-child{padding-left:16px}.usage-table-desktop th:last-child,.usage-table-desktop td:last-child{padding-right:16px}.usage-cards-mobile{display:none}.usage-card{background:#fff;border:1px solid #ddd;border-radius:8px;margin-bottom:16px;overflow:hidden;box-shadow:0 2px 4px #0000001a}.card-header{background:#f8f9fa;border-bottom:1px solid #eee;justify-content:space-between;align-items:center;padding:16px;display:flex}.card-header h4{color:#333;margin:0;font-size:18px;font-weight:600}.status-badge{text-transform:uppercase;border-radius:4px;padding:4px 8px;font-size:12px;font-weight:500}.status-badge.critical{color:#dc2626;background:#fee2e2}.status-badge.low{color:#ea580c;background:#fed7aa}.status-badge.adequate{color:#059669;background:#d1fae5}.status-badge.overstock{color:#2563eb;background:#dbeafe}.card-content{padding:16px}.card-row{border-bottom:1px solid #f0f0f0;justify-content:space-between;align-items:center;padding:8px 0;display:flex}.card-row:last-child{border-bottom:none}.card-row .label{color:#666;flex:1;font-weight:500}.card-row .value{color:#333;text-align:right;flex:1}.card-actions{text-align:center;background:#f8f9fa;border-top:1px solid #eee;padding:16px}.set-goal-btn{color:#fff;cursor:pointer;background:#007bff;border:none;border-radius:4px;padding:8px 16px;font-size:14px}.set-goal-btn:hover{background:#0056b3}@media (max-width:768px){.usage-table-desktop{display:none}.usage-cards-mobile{display:block}.usage-table{overflow-x:visible}}@media (min-width:769px){.usage-cards-mobile{display:none}.usage-table-desktop{display:table}}@media (max-width:768px){.usage-table{font-size:14px}.usage-table th,.usage-table td{padding:8px 4px}}@media (prefers-color-scheme:dark){.usage-table-desktop{background:#2a2a2a;border-color:#444}.usage-table-desktop th{color:#e0e0e0;background:#3a3a3a;border-bottom-color:#555}.usage-table-desktop th,.usage-table-desktop td{color:#e0e0e0;border-bottom-color:#444;border-right-color:#444}.usage-table-desktop tr:nth-child(2n){background:#333}.usage-table-desktop tr:nth-child(2n) td{color:#e0e0e0}.usage-table-desktop tr:hover{background:#4a4a4a}.usage-table-desktop tr:hover td{color:#e0e0e0}.usage-card{background:#2a2a2a;border-color:#444}.card-header{background:#3a3a3a;border-bottom-color:#444}.card-header h4{color:#e0e0e0}.status-badge.critical{color:#fca5a5;background:#451a1a}.status-badge.low{color:#fdba74;background:#451a0a}.status-badge.adequate{color:#86efac;background:#14532d}.status-badge.overstock{color:#93c5fd;background:#1e3a8a}.card-row .label{color:#ccc}.card-row .value{color:#e0e0e0}.card-row{border-bottom-color:#444}.card-actions{background:#3a3a3a;border-top-color:#444}}
