/* ======================================== Tire Storage Overview Page ======================================== */ .storage-page { min-height: 100vh; min-height: 100dvh; background: var(--color-bg-gradient); padding: 0.75rem; padding-bottom: calc(1rem + var(--safe-area-bottom)); } @media (min-width: 480px) { .storage-page { padding: 1rem; } } @media (min-width: 768px) { .storage-page { padding: 2rem 3rem; max-width: 1200px; margin: 0 auto; } } @media (min-width: 1024px) { .storage-page { padding: 2.5rem 4rem; } } /* ======================================== Page Header - Responsive ======================================== */ .page-header { margin-bottom: 1rem; } @media (min-width: 480px) { .page-header { margin-bottom: 1.5rem; } } .header-content { display: flex; flex-direction: column; gap: 0.75rem; } @media (min-width: 480px) { .header-content { flex-direction: row; justify-content: space-between; align-items: center; gap: 1rem; } } .page-header h1 { font-family: var(--font-family-heading); font-size: clamp(1.25rem, 4vw, 1.75rem); font-weight: var(--font-weight-bold); color: var(--text-primary); margin: 0; } .header-actions { display: flex; gap: 8px; flex-wrap: wrap; } @media (max-width: 479.98px) { .header-actions { width: 100%; } .header-actions .btn { flex: 1; justify-content: center; min-width: 0; } } /* ======================================== Statistics Grid - Responsive ======================================== */ .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 1rem; } @media (min-width: 480px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 1.5rem; } } @media (min-width: 768px) { .stats-grid { gap: 16px; } } @media (min-width: 1024px) { .stats-grid { gap: 20px; } } .stat-card { background: rgba(28, 28, 30, 0.8); border: 0.5px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 12px; text-align: center; } @media (min-width: 480px) { .stat-card { padding: 14px; border-radius: 14px; } } @media (min-width: 768px) { .stat-card { padding: 20px; } } @media (min-width: 1024px) { .stat-card { padding: 24px; border-radius: 16px; } } .stat-value { display: block; font-family: 'Orbitron', monospace; font-size: clamp(1.25rem, 4vw, 2.25rem); font-weight: 700; color: #ffffff; margin-bottom: 4px; } .stat-value.summer { color: #fbbf24; } .stat-value.winter { color: #60a5fa; } .stat-label { font-family: 'Rajdhani', sans-serif; font-size: clamp(0.65rem, 2vw, 0.85rem); color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 0.5px; } /* ======================================== Type Filter - Responsive ======================================== */ .type-filter { display: flex; gap: 6px; margin-bottom: 0.75rem; background: rgba(28, 28, 30, 0.6); padding: 5px; border-radius: 10px; } @media (min-width: 480px) { .type-filter { gap: 8px; padding: 6px; border-radius: 12px; margin-bottom: 1rem; } } .type-btn { flex: 1; padding: 8px 10px; background: transparent; border: none; border-radius: 6px; color: rgba(255, 255, 255, 0.5); font-family: 'Rajdhani', sans-serif; font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; min-height: 40px; } @media (min-width: 480px) { .type-btn { padding: 10px 14px; font-size: 0.85rem; border-radius: 8px; min-height: 44px; } } .type-btn:hover { color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.05); } .type-btn.active { background: rgba(220, 38, 38, 0.15); border: 1px solid rgba(220, 38, 38, 0.3); color: #ffffff; } /* ======================================== Filter Bar - Responsive ======================================== */ .filter-bar { display: flex; gap: 8px; margin-bottom: 1rem; flex-wrap: wrap; } @media (min-width: 480px) { .filter-bar { gap: 10px; margin-bottom: 1.5rem; } } @media (min-width: 768px) { .filter-bar { gap: 14px; } } .search-input { flex: 1; min-width: 0; width: 100%; padding: 12px 14px; background: rgba(28, 28, 30, 0.8); border: 0.5px solid rgba(255, 255, 255, 0.1); border-radius: 10px; color: #ffffff; font-family: 'Rajdhani', sans-serif; font-size: 16px; /* Prevents iOS zoom */ } @media (min-width: 480px) { .search-input { min-width: 200px; border-radius: 12px; } } @media (min-width: 768px) { .search-input { max-width: 400px; padding: 14px 18px; font-size: 1rem; } } .search-input:focus { outline: none; border-color: rgba(220, 38, 38, 0.5); } .search-input::placeholder { color: rgba(255, 255, 255, 0.35); } .filter-buttons { display: flex; gap: 6px; flex-wrap: wrap; } @media (max-width: 479.98px) { .filter-buttons { width: 100%; justify-content: flex-start; } } .filter-btn { padding: 10px 12px; background: rgba(28, 28, 30, 0.8); border: 0.5px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: rgba(255, 255, 255, 0.6); font-family: 'Rajdhani', sans-serif; font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease; min-height: 44px; } @media (min-width: 480px) { .filter-btn { padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; } } .filter-btn:hover { background: rgba(255, 255, 255, 0.05); } .filter-btn.active { background: rgba(220, 38, 38, 0.15); border-color: rgba(220, 38, 38, 0.4); color: #ffffff; } .filter-btn.active.summer { background: rgba(251, 191, 36, 0.15); border-color: rgba(251, 191, 36, 0.4); } .filter-btn.active.winter { background: rgba(96, 165, 250, 0.15); border-color: rgba(96, 165, 250, 0.4); } .filter-btn.active.allseason { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.4); } /* ======================================== Loading & Empty States - Responsive ======================================== */ .loading-state, .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1.5rem; text-align: center; } @media (min-width: 480px) { .loading-state, .empty-state { padding: 4rem 2rem; } } .loading-state { gap: 12px; color: rgba(255, 255, 255, 0.5); font-family: 'Rajdhani', sans-serif; } .spinner { width: 28px; height: 28px; border: 3px solid var(--border-default); border-top-color: var(--color-primary); border-radius: 50%; animation: spin 0.8s linear infinite; } @media (min-width: 480px) { .spinner { width: 32px; height: 32px; } } .empty-icon { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif; font-size: 2.5rem; margin-bottom: 0.75rem; line-height: 1; } @media (min-width: 480px) { .empty-icon { font-size: 3rem; margin-bottom: 1rem; } } .empty-state h3 { font-family: 'Rajdhani', sans-serif; font-size: clamp(1rem, 3vw, 1.25rem); color: #ffffff; margin: 0 0 0.5rem 0; } .empty-state p { font-family: 'Rajdhani', sans-serif; color: rgba(255, 255, 255, 0.5); margin: 0 0 1.5rem 0; font-size: 0.9rem; } /* ======================================== Tire Set List - Responsive ======================================== */ .tireset-list { display: flex; flex-direction: column; gap: 8px; } @media (min-width: 480px) { .tireset-list { gap: 10px; } } @media (min-width: 768px) { .tireset-list { gap: 12px; } } .tireset-card { background: rgba(28, 28, 30, 0.8); border: 0.5px solid rgba(255, 255, 255, 0.1); border-radius: 12px; overflow: hidden; cursor: pointer; transition: all 0.2s ease; } @media (min-width: 480px) { .tireset-card { border-radius: 14px; } } @media (min-width: 768px) { .tireset-card { border-radius: 16px; } } .tireset-card:hover { border-color: rgba(255, 255, 255, 0.2); } .tireset-main { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; gap: 10px; } @media (min-width: 480px) { .tireset-main { padding: 14px 16px; gap: 12px; } } @media (min-width: 768px) { .tireset-main { padding: 18px 24px; } } .tireset-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; } @media (min-width: 480px) { .tireset-left { gap: 12px; } } .season-indicator { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif; font-size: 1.1rem; background: rgba(255, 255, 255, 0.05); flex-shrink: 0; line-height: 1; } @media (min-width: 480px) { .season-indicator { width: 40px; height: 40px; border-radius: 10px; font-size: 1.25rem; } } @media (min-width: 768px) { .season-indicator { width: 48px; height: 48px; font-size: 1.5rem; } } .season-indicator.sommer { background: rgba(251, 191, 36, 0.15); } .season-indicator.winter { background: rgba(96, 165, 250, 0.15); } .season-indicator.allrad { background: rgba(34, 197, 94, 0.15); } .tireset-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; } .customer-name { font-family: 'Rajdhani', sans-serif; font-weight: 600; color: #ffffff; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } @media (min-width: 480px) { .customer-name { font-size: 1rem; } } @media (min-width: 768px) { .customer-name { font-size: 1.1rem; } } .tire-details { font-family: 'Rajdhani', sans-serif; color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } @media (min-width: 480px) { .tire-details { font-size: 0.85rem; } } @media (min-width: 768px) { .tire-details { font-size: 0.9rem; } } .tireset-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; } .location-code { font-family: 'Orbitron', monospace; font-weight: 600; color: #60a5fa; font-size: 0.85rem; } @media (min-width: 480px) { .location-code { font-size: 0.95rem; } } @media (min-width: 768px) { .location-code { font-size: 1.05rem; } } .vehicle-info { background: rgba(255, 255, 255, 0.1); padding: 2px 6px; border-radius: 4px; font-family: 'Rajdhani', sans-serif; font-size: 0.7rem; color: rgba(255, 255, 255, 0.6); } @media (min-width: 480px) { .vehicle-info { padding: 2px 8px; font-size: 0.75rem; } } /* ======================================== Tire Set Details (Expanded) - Responsive ======================================== */ .tireset-details { padding: 0 14px 14px; border-top: 0.5px solid rgba(255, 255, 255, 0.05); animation: slideDown 0.2s ease; } @media (min-width: 480px) { .tireset-details { padding: 0 16px 16px; } } @media (min-width: 768px) { .tireset-details { padding: 0 24px 20px; } } @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px 0; } @media (min-width: 480px) { .detail-grid { gap: 12px; padding: 14px 0; } } @media (min-width: 768px) { .detail-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 18px 0; } } @media (min-width: 1024px) { .detail-grid { grid-template-columns: repeat(6, 1fr); } } .detail-item { display: flex; flex-direction: column; gap: 2px; } .detail-item .label { font-family: 'Rajdhani', sans-serif; font-size: 0.7rem; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; } @media (min-width: 480px) { .detail-item .label { font-size: 0.75rem; } } .detail-item .value { font-family: 'Rajdhani', sans-serif; font-size: 0.85rem; color: #ffffff; } @media (min-width: 480px) { .detail-item .value { font-size: 0.9rem; } } .notes-section { background: rgba(0, 0, 0, 0.2); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; } .notes-section .label { font-family: 'Rajdhani', sans-serif; font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; display: block; margin-bottom: 4px; } .notes-text { font-family: 'Rajdhani', sans-serif; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); } .detail-actions { display: flex; justify-content: flex-end; padding-top: 12px; border-top: 0.5px solid rgba(255, 255, 255, 0.05); } /* Buttons: inherited from app.css (section 5) */ /* ======================================== Expiring Section - Responsive ======================================== */ .expiring-section { margin-top: 1.5rem; background: rgba(251, 191, 36, 0.1); border: 0.5px solid rgba(251, 191, 36, 0.25); border-radius: 14px; padding: 14px; } @media (min-width: 480px) { .expiring-section { margin-top: 2rem; border-radius: 16px; padding: 16px; } } .expiring-section h3 { font-family: 'Rajdhani', sans-serif; font-size: 0.95rem; font-weight: 600; color: #fbbf24; margin: 0 0 12px 0; } @media (min-width: 480px) { .expiring-section h3 { font-size: 1rem; } } .expiring-list { display: flex; flex-direction: column; gap: 8px; } .expiring-item { display: flex; justify-content: space-between; font-family: 'Rajdhani', sans-serif; font-size: 0.85rem; } @media (min-width: 480px) { .expiring-item { font-size: 0.9rem; } } .expiring-item .customer { color: #ffffff; } .expiring-item .date { color: rgba(255, 255, 255, 0.5); } /* ======================================== Inventory Card Styling - Responsive ======================================== */ .tireset-card.inventory { border-left: 3px solid rgba(96, 165, 250, 0.5); } .inventory-name { color: #93c5fd !important; } .inventory-badge { background: rgba(96, 165, 250, 0.15); border: 1px solid rgba(96, 165, 250, 0.3); padding: 2px 6px; border-radius: 4px; font-family: 'Rajdhani', sans-serif; font-size: 0.65rem; color: #93c5fd; font-weight: 600; text-transform: uppercase; } @media (min-width: 480px) { .inventory-badge { padding: 2px 8px; font-size: 0.7rem; } } /* ======================================== QR Section in Details - Responsive ======================================== */ .qr-section { background: rgba(34, 197, 94, 0.08); border: 0.5px solid rgba(34, 197, 94, 0.2); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; } .qr-section .label { font-family: 'Rajdhani', sans-serif; font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; display: block; margin-bottom: 4px; } .qr-codes { font-family: 'Orbitron', monospace; font-size: 0.75rem; color: #86efac; word-break: break-all; } @media (min-width: 480px) { .qr-codes { font-size: 0.8rem; } } /* ======================================== Category Filter - Responsive ======================================== */ .category-filter { margin-bottom: 0.75rem; } @media (min-width: 480px) { .category-filter { margin-bottom: 1rem; } } .category-filter .form-control { width: 100%; padding: 10px 14px; background: rgba(28, 28, 30, 0.8); border: 0.5px solid rgba(255, 255, 255, 0.1); border-radius: 10px; color: #ffffff; font-family: 'Rajdhani', sans-serif; font-size: 16px; /* Prevents iOS zoom */ } @media (min-width: 480px) { .category-filter .form-control { max-width: 300px; } } .category-filter .form-control:focus { outline: none; border-color: rgba(220, 38, 38, 0.5); } .category-filter .form-control option { background: #1c1c1e; color: #ffffff; } /* ======================================== View Toggle (List / Rack Grid) ======================================== */ .view-toggle { display: flex; gap: 6px; margin-bottom: 0.75rem; background: rgba(28, 28, 30, 0.6); padding: 5px; border-radius: 10px; } .view-btn { flex: 1; padding: 8px 10px; background: transparent; border: none; border-radius: 6px; color: rgba(255, 255, 255, 0.5); font-family: 'Rajdhani', sans-serif; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; min-height: 40px; } .view-btn:hover { color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.05); } .view-btn.active { background: rgba(220, 38, 38, 0.15); border: 1px solid rgba(220, 38, 38, 0.3); color: #ffffff; } /* ======================================== Rack Grid View ======================================== */ .rack-view { display: flex; flex-direction: column; gap: 1.25rem; width: 100%; } /* Use the full page width when the rack view is active */ @media (min-width: 768px) { .storage-page:has(.rack-view) { max-width: none; padding: 2rem 2.5rem; } } @media (min-width: 1024px) { .storage-page:has(.rack-view) { padding: 2.5rem 3rem; } } /* Buildings side by side on very wide screens */ @media (min-width: 1400px) { .rack-view { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; } .rack-view .rack-legend, .rack-view .cell-details { grid-column: 1 / -1; } } .building-section { background: rgba(28, 28, 30, 0.8); border: 0.5px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 1.25rem; width: 100%; } .building-title { font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; font-weight: 600; color: #ffffff; margin: 0 0 1rem 0; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); } .rack-row { margin-bottom: 1rem; } .row-title { font-family: 'Rajdhani', sans-serif; font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); margin: 0 0 0.4rem 0; text-transform: uppercase; letter-spacing: 0.5px; } .rack-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; } @media (max-width: 767.98px) { .rack-sides { grid-template-columns: 1fr; gap: 0.75rem; } } .rack-side { min-width: 0; } .side-label { display: block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255, 255, 255, 0.4); margin-bottom: 0.25rem; } .rack-level { display: flex; align-items: center; gap: 0.5rem; margin: 0.25rem 0; } .level-label { width: 3rem; flex-shrink: 0; font-size: 0.7rem; color: rgba(255, 255, 255, 0.4); } .rack-cells { display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; flex: 1; min-width: 0; } .rack-cell { width: 100%; min-height: 2.2rem; border-radius: 6px; border: 1px solid transparent; font-family: 'Rajdhani', sans-serif; font-size: 0.85rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.15s ease, box-shadow 0.15s ease; padding: 0; } @media (min-width: 1024px) { .rack-cell { min-height: 2.6rem; font-size: 0.95rem; } } .rack-cell:not(:disabled):hover { transform: scale(1.1); } .rack-cell.free { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.4); color: #4ade80; } .rack-cell.occupied { background: rgba(220, 38, 38, 0.2); border-color: rgba(220, 38, 38, 0.45); color: #f87171; } .rack-cell.blocked { background: rgba(148, 163, 184, 0.15); border-color: rgba(148, 163, 184, 0.3); color: rgba(255, 255, 255, 0.35); cursor: not-allowed; } .rack-cell.missing { background: transparent; border: 1px dashed rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.2); cursor: default; } .rack-cell.selected { outline: 2px solid rgba(220, 38, 38, 0.8); outline-offset: 1px; } /* ======================================== Rack Legend ======================================== */ .rack-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); font-family: 'Rajdhani', sans-serif; } .legend-item { display: inline-flex; align-items: center; gap: 0.35rem; } .legend-swatch { width: 0.9rem; height: 0.9rem; border-radius: 4px; display: inline-block; } .legend-swatch.free { background: rgba(34, 197, 94, 0.4); } .legend-swatch.occupied { background: rgba(220, 38, 38, 0.45); } .legend-swatch.blocked { background: rgba(148, 163, 184, 0.35); } /* ======================================== Cell Details Panel ======================================== */ .cell-details { background: rgba(28, 28, 30, 0.8); border: 0.5px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 1rem; } .cell-details-header { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; } .cell-details-text { color: rgba(255, 255, 255, 0.6); font-family: 'Rajdhani', sans-serif; margin: 0.5rem 0; } /* Reduced motion: inherited from app.css (section 17) */