.dashboard{display:flex;min-height:100vh;background-color:#f5f7f9;color:#222;width:100%}.sidebar{flex:0 0 260px;padding:1.5rem;background-color:#111827;color:#fff;display:flex;flex-direction:column;gap:1rem;position:sticky;top:0;height:100vh;align-self:flex-start;overflow-y:auto;box-shadow:6px 0 20px #0f172a26;z-index:10}.sidebar h1{font-size:1.25rem;margin:0}.sidebar nav{display:flex;flex-direction:column;gap:.75rem;flex:1;overflow-y:auto;padding-right:.25rem}.sidebar a{color:#cbd5f5;text-decoration:none;font-weight:500}.sidebar a.active{color:#fff;font-weight:600}.logout-button{margin-top:auto;background:#dc2626;border:none;border-radius:8px;padding:.6rem .75rem;color:#fff;cursor:pointer;font-weight:600;margin-bottom:2.5rem}.content{flex:1;padding:2rem;min-width:0}@media (max-width: 1024px){.dashboard{flex-direction:column}.sidebar{position:static;width:100%;height:auto;flex-direction:column}.sidebar nav{flex-direction:row;flex-wrap:wrap;gap:.5rem}.logout-button{margin-bottom:0}}.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#2a4365,#1a202c)}.login-form{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 18px 60px #11182733;display:flex;flex-direction:column;gap:1rem;width:320px}.login-form h2{margin:0;color:#1a202c}.login-form label{font-weight:600;color:#4a5568}.login-form input{border:1px solid #cbd5e0;border-radius:8px;padding:.75rem;font-size:1rem}.muted{font-size:.9rem;color:#718096}.login-form button{border:none;border-radius:8px;padding:.75rem;font-size:1rem;cursor:pointer;background:#2b6cb0;color:#fff;font-weight:600}.error{color:#e53e3e;font-size:.9rem;margin:0}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px;line-height:1.55;background-color:#f3f4f6;color:#1f2937}h1,h2,h3,h4{color:#111827;margin:0}h1{font-size:28px;font-weight:700}h2{font-size:22px;font-weight:600}h3{font-size:18px;font-weight:600}h4{font-size:16px;font-weight:600}p{color:#4b5563;margin:0}.muted{color:#94a3b8;font-size:.85rem}.tabs{display:flex;gap:1rem;margin-bottom:1.5rem;border-bottom:1px solid #e5e7eb;padding-bottom:.25rem}.tab-button{border:none;background:transparent;padding:.35rem .5rem;font-weight:600;color:#6b7280;cursor:pointer;border-bottom:2px solid transparent}.tab-button:hover{color:#111827}.tab-button.active{color:#1d4ed8;border-bottom-color:#1d4ed8}table{width:100%;border-collapse:separate;border-spacing:0;margin-top:.75rem;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 10px 20px #0f172a14}.table-scroll{width:100%;overflow-x:auto}thead{background:#f3f4f6;color:#1f2937}th,td{padding:.65rem .9rem;text-align:left;border-bottom:1px solid #e5e7eb;font-size:.9rem}tbody tr:nth-child(2n){background-color:#fafbfc}tr:last-child td{border-bottom:none}button{cursor:pointer;border:none;border-radius:8px;padding:.5rem .9rem;font-weight:600;font-size:.85rem;background:#e5e7eb;color:#1f2937;transition:background .2s ease,color .2s ease}button:hover:not([disabled]){background:#d1d5db}button[disabled]{opacity:.6;cursor:not-allowed}.primary{background:#2563eb;color:#fff}.primary:hover:not([disabled]){background:#1d4ed8}.secondary{background:#f1f5f9;color:#1f2937;border:1px solid #e2e8f0}.danger{background:#dc2626;color:#fff}.loading-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;z-index:999;color:#f8fafc;font-weight:600}.loading-spinner{width:48px;height:48px;border-radius:50%;border:4px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;top:1.5rem;right:1.5rem;padding:.75rem 1rem;border-radius:10px;box-shadow:0 16px 40px #0f172a33;display:flex;align-items:center;gap:.75rem;z-index:1200;color:#fff;font-weight:600}.toast.error{background:#dc2626}.toast.success{background:#16a34a}.toast button{background:transparent;border:none;color:inherit;font-size:1.2rem;cursor:pointer}.grid{display:grid;grid-template-columns:1.5fr 1fr;gap:1.75rem}.products-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.25rem}.products-toolbar h2{margin:0;font-size:26px;font-weight:700}.products-toolbar .muted{margin-top:.25rem}.products-toolbar .primary{padding:.5rem .9rem}.products-toolbar .primary[disabled]{opacity:.6;cursor:not-allowed}.products-filters{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem;padding:1rem 1.25rem;background:#fff;border-radius:12px;box-shadow:inset 0 1px #0f172a0d}.products-filters input,.products-filters select{padding:.45rem .6rem;border-radius:10px;border:1px solid #d1d5db;font-size:.9rem;background-color:#f9fafb;transition:border-color .2s ease,box-shadow .2s ease}.products-filters input:focus,.products-filters select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb1f;background-color:#fff}.products-filters input[type=search]{min-width:220px}.products-filters select{min-width:160px}.products-filters span{margin-left:auto;font-size:.85rem}.offers-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.25rem}.offers-toolbar h2{margin:0;font-size:26px;font-weight:700}.offers-filters{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem;padding:1rem 1.25rem;background:#fff;border-radius:12px;box-shadow:inset 0 1px #0f172a0d;margin-bottom:1.25rem}.offers-filters input,.offers-filters select{padding:.45rem .6rem;border-radius:10px;border:1px solid #d1d5db;font-size:.9rem;background-color:#f9fafb;transition:border-color .2s ease,box-shadow .2s ease}.offers-filters input:focus,.offers-filters select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb1f;background-color:#fff}.offers-filters input[type=search]{min-width:220px}.offers-filters select{min-width:150px}.offers-filters span{margin-left:auto;font-size:.85rem}.offer-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem}.offer-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 12px 32px #0f172a1f;cursor:pointer;display:flex;flex-direction:column;transition:transform .15s ease,box-shadow .15s ease}.offer-card--readonly{opacity:.85}.offer-card:hover,.offer-card:focus{transform:translateY(-4px);box-shadow:0 18px 40px #0f172a2e}.offer-card--readonly:hover,.offer-card--readonly:focus{transform:none;box-shadow:0 12px 32px #0f172a1f}.offer-card img{width:100%;height:200px;-o-object-fit:cover;object-fit:cover}.offer-card-body{padding:1rem;display:flex;flex-direction:column;gap:.65rem}.offer-card-body h3{margin:0;font-size:1.05rem}.offer-meta{display:flex;flex-wrap:wrap;gap:.5rem;font-size:.8rem}.offer-pricing,.offer-inventory{display:flex;gap:1rem;font-size:.9rem;color:#1f2937}.status-pill{padding:.25rem .65rem;border-radius:999px;background:#e2e8f0;font-weight:600}.status-pill.active{background:#bbf7d0;color:#166534}.status-pill.inactive{background:#fee2e2;color:#991b1b}.status-pill.pending{background:#fef3c7;color:#92400e}.pill{padding:.25rem .65rem;border-radius:999px;background:#e2e8f0;font-size:.8rem;font-weight:600}.pill.warning{background:#fef3c7;color:#92400e}.inventory-summary-pills{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem}.offer-row-list{display:flex;flex-direction:column;gap:.9rem}.offer-title-link{color:inherit;text-decoration:none;transition:color .15s ease,-webkit-text-decoration .15s ease;transition:color .15s ease,text-decoration .15s ease;transition:color .15s ease,text-decoration .15s ease,-webkit-text-decoration .15s ease}.offer-title-link:hover,.offer-title-link:focus{text-decoration:underline}.offer-row{background:#fff;border-radius:12px;box-shadow:0 6px 16px #0f172a14;padding:1.1rem 1.35rem;display:flex;flex-direction:column;gap:.9rem}.offer-row--readonly{opacity:.85}.offer-row__header{display:flex;justify-content:space-between;align-items:center;gap:.75rem;font-weight:600;font-size:.85rem}.offer-row__status{display:flex;align-items:center;gap:.45rem}.status-dot{width:10px;height:10px;border-radius:999px;background:#94a3b8;display:inline-block}.offer-row__status-text{font-size:.82rem;color:#4b5563;text-transform:uppercase;letter-spacing:.04em}.status-active{background:#22c55e}.status-waiting,.status-pending,.status-processing{background:#f97316}.status-returned,.status-completed,.status-checked{background:#3b82f6}.status-cancelled,.status-expired{background:#ef4444}.offer-row__visibility{font-size:.82rem;color:#6b7280;text-transform:uppercase}.offer-row__body{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-start;font-size:.92rem}.offer-row__info{flex:1 1 280px;display:flex;flex-direction:column;gap:.35rem}.offer-row__info h3{margin:0;font-size:1rem;font-weight:600}.offer-row__info button{align-self:flex-start;margin-top:.35rem}.offer-row__info .secondary{background:transparent;border:none;color:#2563eb;padding:0}.offer-row__info .secondary:hover{text-decoration:underline}.offer-row__pricing{flex:1 1 320px;display:flex;flex-wrap:wrap;gap:1rem}.pricing-box{background:#f8fafc;border-radius:10px;padding:.75rem;display:flex;flex-direction:column;gap:.35rem;min-width:180px;border:1px solid rgba(148,163,184,.2)}.pricing-box .label{font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:600}.pricing-box input{border:1px solid #cbd5e1;border-radius:8px;padding:.45rem .6rem;font-size:.9rem}.pricing-box input:disabled{background:#e2e8f0;cursor:not-allowed}.pricing-box .hint{font-size:.72rem;color:#64748b}.hint.timestamp-hint{display:flex;flex-direction:column;gap:.1rem}.pricing-box .snapshot{border-top:1px solid rgba(148,163,184,.2);margin-top:.4rem;padding-top:.35rem;display:flex;flex-direction:column;gap:.2rem}.pricing-settings{display:flex;flex-wrap:wrap;gap:1rem}.offer-row__meta{flex:0 0 180px;display:flex;flex-direction:column;gap:.6rem;align-items:flex-end}.offer-row__meta .label{font-size:.72rem;color:#64748b;text-transform:uppercase;letter-spacing:.04em}.offer-row__meta .metric{font-weight:600;font-size:.95rem}.offer-row__footer{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap}.offer-row__footer .muted{font-size:.8rem}.offer-create-stock{margin:1rem 0;display:flex;flex-direction:column;gap:.6rem}.offer-create-stock textarea{width:100%;resize:vertical;min-height:120px;border:1px solid #d1d5db;border-radius:10px;padding:.6rem .75rem;font-family:Inter,sans-serif;font-size:.9rem}.offer-row__actions{display:flex;gap:.5rem;align-items:center}.offer-row__actions button{min-width:100px}.offer-row__actions .primary{min-width:130px}@media (max-width: 900px){.offer-row__body{flex-direction:column}.offer-row__meta{align-items:flex-start}.offer-row__footer{flex-direction:column;align-items:flex-start}}.stock-value-display{display:flex;align-items:center;gap:.5rem}.stock-value-display button{background:#e2e8f0;border:none;border-radius:6px;padding:.3rem .6rem;font-size:.8rem;cursor:pointer}.stock-edit textarea{width:100%;font-family:Fira Code,monospace;resize:vertical;border-radius:6px;border:1px solid #cbd5e1;padding:.4rem .5rem}.stock-edit-actions{display:flex;gap:.5rem;margin-top:.5rem}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:1rem;margin-top:1.5rem}.pagination button{background:#e2e8f0;border:none;padding:.5rem .9rem;border-radius:999px;font-weight:600}.pagination button:disabled{opacity:.5;cursor:not-allowed}.database-header{display:flex;align-items:center;justify-content:space-between}.database-actions select{padding:.5rem .75rem;border-radius:8px;border:1px solid #d1d5db}.database-actions{display:flex;gap:1rem;align-items:center}.database-actions label{display:flex;flex-direction:column;gap:.35rem;font-weight:600;color:#374151}.database-form textarea{width:100%;padding:.75rem;border-radius:8px;border:1px solid #cbd5e1;font-family:Fira Code,monospace;font-size:.9rem}.products-filters.card{flex-direction:row;justify-content:flex-start}.product-grid{margin-top:2rem;display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}.product-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 12px 32px #0f172a1f;cursor:pointer;display:flex;flex-direction:column;transition:transform .15s ease,box-shadow .15s ease}.product-card:hover,.product-card:focus{transform:translateY(-4px);box-shadow:0 18px 40px #0f172a2e}.product-card:focus{outline:3px solid rgba(37,99,235,.45);outline-offset:4px}.product-card img{width:100%;height:200px;-o-object-fit:cover;object-fit:cover}.product-card-body{padding:1rem;display:flex;flex-direction:column;gap:.5rem}.product-card-body h3{margin:0;font-size:1.05rem}.product-meta{display:flex;gap:.5rem;flex-wrap:wrap;font-size:.85rem;color:#475569}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172aa6;display:flex;align-items:center;justify-content:center;z-index:1100;padding:2rem}.modal{background:#fff;border-radius:16px;max-width:960px;width:100%;max-height:90vh;overflow-y:auto;position:relative;padding:2rem;display:flex;flex-direction:column;gap:1.5rem}.modal-close{position:absolute;top:1rem;right:1rem;border:none;background:transparent;font-size:1.5rem;cursor:pointer}.modal-header{display:flex;gap:1.5rem}.modal-header img{width:180px;height:240px;-o-object-fit:cover;object-fit:cover;border-radius:12px}.modal-header h3{margin:0 0 .5rem}.modal-section{display:flex;flex-direction:column;gap:.75rem}.modal-section.two-column{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem}.modal-section ul{margin:0;padding-left:1.25rem;color:#475569}.card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 12px 32px #0f172a1f;display:flex;flex-direction:column;gap:1rem}.card form{display:flex;flex-direction:column;gap:1rem}.card h3{margin:0;color:#1f2937}.card label{display:flex;flex-direction:column;gap:.35rem;font-weight:600;color:#374151}.card input,.card select,.card textarea{padding:.6rem .75rem;border-radius:8px;border:1px solid #d1d5db;font-size:.95rem}.card input:focus,.card select:focus,.card textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb26;background-color:#fff}.product-select{display:flex;flex-direction:column;gap:.5rem}.product-select__empty,.product-select__helper{margin:0;font-size:.85rem}.product-select__helper--error{color:#dc2626}.card button{align-self:flex-start;background:#2563eb;color:#fff;border:none;border-radius:8px;padding:.65rem 1.1rem;font-weight:600}.form-row{display:flex;gap:1rem;flex-wrap:wrap;align-items:center}.form-row>label{flex:1}.form-row>label.switch{flex:0 0 auto}.form-row--bootstrap{width:100%;gap:1rem;align-items:flex-end}.form-row--bootstrap .form-group{flex:1 1 160px;display:flex;flex-direction:column;gap:.25rem}.form-row--bootstrap .form-group label{font-weight:600;color:#374151;font-size:.85rem}.form-control{border:1px solid #ced4da;border-radius:6px;padding:.5rem .65rem;font-size:.95rem;background:#fff}.form-control:disabled{background:#e9ecef;cursor:not-allowed}.form-actions{display:flex;align-items:flex-end}.btn{border-radius:6px;border:none;padding:.55rem 1.2rem;font-weight:600;cursor:pointer}.btn-primary{background:#2563eb;color:#fff}.form-switch{flex:0 0 auto;display:flex!important;align-items:center;gap:.5rem}.form-switch input{width:1.1rem;height:1.1rem}.form-switch label{font-weight:600;color:#374151;margin:0}.switch{display:flex;align-items:center;gap:.5rem;cursor:pointer;font-weight:600;color:#374151;flex-direction:row}.switch input{width:1.1rem;height:1.1rem}.switch span{-webkit-user-select:none;-moz-user-select:none;user-select:none}.inline-form{display:flex;gap:.5rem}.inline-form input,.inline-form select{padding:.35rem .5rem;border:1px solid #cbd5e1;border-radius:6px;width:120px}.inline-form button{background:#0ea5e9;border:none;border-radius:6px;padding:.4rem .75rem;color:#fff;font-weight:600}.account-grid{display:grid;gap:.75rem}.inventory-block{margin-bottom:1.5rem;padding:1rem;border-radius:10px;background:#f1f5f9}.reservation-product-line{display:flex;align-items:center;gap:.35rem;font-size:.9rem}.inventory-product-column{min-width:240px}.payload{margin:0;padding:.75rem;background:#0f172a;color:#f8fafc;border-radius:8px;max-height:200px;overflow:auto}.payload.small{max-height:120px;font-size:.75rem}.section-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;margin:2rem 0 1rem}.filters-inline{display:flex;flex-wrap:wrap;gap:.75rem}.filters-inline input,.filters-inline select{min-width:160px;padding:.5rem .75rem;border-radius:.5rem;border:1px solid #cbd5e1;background:#fff;font-size:.95rem}.filters-inline input:focus,.filters-inline select:focus{border-color:#0d6efd;box-shadow:0 0 0 3px #0d6efd33;outline:none}.orders-page{display:flex;flex-direction:column;gap:1.5rem}.orders-summary{display:flex;flex-wrap:wrap;gap:1rem;width:100%;margin-top:.5rem}.orders-summary-card{flex:1 1 240px;border:1px solid #e2e8f0;border-radius:.75rem;padding:1rem 1.25rem;background:#fff;box-shadow:0 8px 24px #0f172a14}.orders-summary-card h4{margin:0;font-size:1rem;color:#0f172a}.inventory-totals{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1.5rem}.inventory-totals-card{flex:1 1 200px;border:1px solid #e2e8f0;border-radius:.75rem;padding:1rem 1.25rem;background:#fff;box-shadow:0 8px 24px #0f172a14}.inventory-totals-card p{margin:0;font-size:.9rem;color:#475569}.inventory-totals-card strong{margin-top:.35rem;display:block;font-size:1.5rem;color:#0d6efd}.orders-summary-metric{display:flex;justify-content:space-between;align-items:center;margin-top:.75rem;font-size:.95rem;color:#475569}.orders-summary-metric strong{font-size:1.15rem;color:#0d6efd}.inventory-summary-pills,.result-pagination{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:1rem}.result-pagination select{min-width:140px;padding:.4rem .75rem;border-radius:.5rem;border:1px solid #cbd5e1}.database-page{display:flex;flex-direction:column;gap:1.5rem}.database-header{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;flex-wrap:wrap}.error-state{background:#fee2e2;border:1px solid #f87171;color:#b91c1c;padding:1rem;border-radius:10px;display:inline-block}@media (max-width: 1100px){.grid{grid-template-columns:1fr}}.link-button{background:none;border:none;color:#2563eb;padding:0;font-weight:600}.link-button:hover{text-decoration:underline;background:none}
