1536 lines
29 KiB
CSS
1536 lines
29 KiB
CSS
/* ========================================
|
|
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: 0.75rem;
|
|
}
|
|
|
|
@media (min-width: 480px) {
|
|
.page-header {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
|
|
/* ========================================
|
|
Compact Toolbar (Stats + Filter combined)
|
|
======================================== */
|
|
.toolbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.75rem;
|
|
padding: 0.6rem 0.75rem;
|
|
background: rgba(28, 28, 30, 0.92);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
border-radius: 12px;
|
|
border: 0.5px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
.toolbar {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
}
|
|
}
|
|
|
|
/* Stat chips - clickable, act as filters */
|
|
.stat-chips {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.stat-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 5px 10px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
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.75rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
white-space: nowrap;
|
|
min-height: 32px;
|
|
}
|
|
|
|
.stat-chip.static {
|
|
cursor: default;
|
|
}
|
|
|
|
.stat-chip:not(.static):hover {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.stat-chip .chip-value {
|
|
font-family: 'Orbitron', monospace;
|
|
font-size: 0.85rem;
|
|
font-weight: 700;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.stat-chip .chip-value.free {
|
|
color: #22c55e;
|
|
}
|
|
|
|
.stat-chip.active {
|
|
background: rgba(220, 38, 38, 0.15);
|
|
border-color: rgba(220, 38, 38, 0.4);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.stat-chip.customer.active {
|
|
background: rgba(96, 165, 250, 0.15);
|
|
border-color: rgba(96, 165, 250, 0.4);
|
|
color: #60a5fa;
|
|
}
|
|
|
|
.stat-chip.inventory.active {
|
|
background: rgba(251, 191, 36, 0.15);
|
|
border-color: rgba(251, 191, 36, 0.4);
|
|
color: #fbbf24;
|
|
}
|
|
|
|
/* Toolbar controls: search + season + category + view toggle */
|
|
.toolbar-controls {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.toolbar-controls .search-box {
|
|
flex: 1;
|
|
min-width: 160px;
|
|
}
|
|
|
|
.toolbar-controls .clear-filters {
|
|
padding: 6px 10px;
|
|
font-size: 0.75rem;
|
|
min-height: 34px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border: 0.5px solid rgba(239, 68, 68, 0.3);
|
|
border-radius: 8px;
|
|
color: #f87171;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.toolbar-controls .clear-filters:hover {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border-color: rgba(239, 68, 68, 0.5);
|
|
}
|
|
|
|
.search-input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
width: 100%;
|
|
padding: 7px 12px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border: 0.5px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 8px;
|
|
color: #ffffff;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 16px; /* Prevents iOS zoom */
|
|
min-height: 34px;
|
|
}
|
|
|
|
@media (min-width: 480px) {
|
|
.search-input {
|
|
min-width: 200px;
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|
|
|
|
.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;
|
|
border: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.filter-btn {
|
|
padding: 5px 10px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
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: 34px;
|
|
}
|
|
|
|
.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 Select (in Toolbar)
|
|
======================================== */
|
|
.category-select {
|
|
width: auto;
|
|
min-width: 140px;
|
|
padding: 6px 10px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border: 0.5px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 8px;
|
|
color: #ffffff;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.8rem;
|
|
min-height: 34px;
|
|
}
|
|
|
|
.category-select:focus {
|
|
outline: none;
|
|
border-color: rgba(220, 38, 38, 0.5);
|
|
}
|
|
|
|
.category-select option {
|
|
background: #1c1c1e;
|
|
color: #ffffff;
|
|
}
|
|
|
|
/* ========================================
|
|
View Toggle (List / Rack Grid)
|
|
======================================== */
|
|
.view-toggle {
|
|
display: flex;
|
|
gap: 4px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
padding: 3px;
|
|
border-radius: 8px;
|
|
border: 0.5px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.view-btn {
|
|
padding: 5px 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;
|
|
min-height: 28px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
/* ========================================
|
|
Card two-row layout
|
|
======================================== */
|
|
.card-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.card-row-primary {
|
|
justify-content: space-between;
|
|
padding: 12px 14px 6px;
|
|
}
|
|
|
|
.card-row-secondary {
|
|
padding: 0 14px 12px;
|
|
gap: 8px;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.card-row-primary {
|
|
padding: 16px 24px 8px;
|
|
}
|
|
|
|
.card-row-secondary {
|
|
padding: 0 24px 16px;
|
|
}
|
|
}
|
|
|
|
.card-identity {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.card-row .customer-name {
|
|
font-size: 1.05rem;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.card-row .customer-name {
|
|
font-size: 1.2rem;
|
|
}
|
|
}
|
|
|
|
.vehicle-badge {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 6px;
|
|
padding: 2px 8px;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-weight: 600;
|
|
font-size: 0.8rem;
|
|
color: rgba(255, 255, 255, 0.85);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 40vw;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.vehicle-badge {
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|
|
|
|
.card-location {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.location-indicator {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-weight: 600;
|
|
font-size: 0.8rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.location-indicator {
|
|
font-size: 0.95rem;
|
|
gap: 6px;
|
|
}
|
|
}
|
|
|
|
.loc-area {
|
|
padding: 2px 8px;
|
|
border-radius: 6px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.loc-area.werkstatt {
|
|
background: rgba(155, 89, 182, 0.2);
|
|
color: #c084fc;
|
|
}
|
|
|
|
.loc-area.lager {
|
|
background: rgba(52, 152, 219, 0.2);
|
|
color: #60a5fa;
|
|
}
|
|
|
|
.loc-part {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
padding: 2px 6px;
|
|
border-radius: 6px;
|
|
color: rgba(255, 255, 255, 0.85);
|
|
}
|
|
|
|
.card-row-secondary .season-indicator {
|
|
width: 28px;
|
|
height: 28px;
|
|
font-size: 0.9rem;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.tireset-card.selected {
|
|
border-color: #60a5fa;
|
|
box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.4);
|
|
}
|
|
|
|
/* ========================================
|
|
Selected stack details panel
|
|
======================================== */
|
|
.stack-details-panel {
|
|
background: rgba(28, 28, 30, 0.95);
|
|
border: 1px solid rgba(96, 165, 250, 0.4);
|
|
border-radius: 12px;
|
|
padding: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.stack-details-panel {
|
|
padding: 1.25rem 1.5rem;
|
|
border-radius: 16px;
|
|
}
|
|
}
|
|
|
|
.stack-details-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.stack-details-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.stack-details-title h2 {
|
|
margin: 0;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-weight: 700;
|
|
color: #ffffff;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.stack-details-title h2 {
|
|
font-size: 1.4rem;
|
|
}
|
|
}
|
|
|
|
.stack-details-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.detail-columns {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 0.75rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.detail-columns {
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1rem;
|
|
}
|
|
}
|
|
|
|
.detail-list {
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 0.5px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 10px;
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
|
|
.detail-list-title {
|
|
margin: 0 0 0.5rem;
|
|
padding-bottom: 0.4rem;
|
|
border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.95rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: rgba(255, 255, 255, 0.75);
|
|
}
|
|
|
|
.detail-rows {
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.detail-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(110px, 38%) 1fr;
|
|
gap: 0.75rem;
|
|
align-items: center;
|
|
padding: 0.4rem 0;
|
|
border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.detail-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.detail-row dt {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
margin: 0;
|
|
}
|
|
|
|
.detail-row dd {
|
|
margin: 0;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.detail-row dd.mono {
|
|
font-family: 'Orbitron', monospace;
|
|
font-size: 0.85rem;
|
|
letter-spacing: 0.04em;
|
|
color: #60a5fa;
|
|
}
|
|
|
|
.detail-row .muted {
|
|
color: rgba(255, 255, 255, 0.5);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* ========================================
|
|
Edit modal
|
|
======================================== */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.65);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.modal-dialog {
|
|
background: #1c1c1e;
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
border-radius: 16px;
|
|
width: 100%;
|
|
max-width: 560px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1rem 1.25rem;
|
|
border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.modal-header h2 {
|
|
margin: 0;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
font-size: 1.1rem;
|
|
cursor: pointer;
|
|
padding: 4px 8px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 1rem 1.25rem;
|
|
}
|
|
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 0.75rem 1rem;
|
|
}
|
|
|
|
@media (max-width: 479px) {
|
|
.form-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.form-group-wide {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.form-group label {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-weight: 600;
|
|
font-size: 0.85rem;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.form-group .form-control {
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border: 0.5px solid rgba(255, 255, 255, 0.15);
|
|
border-radius: 8px;
|
|
color: #ffffff;
|
|
padding: 8px 10px;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.form-group .form-control:focus {
|
|
outline: none;
|
|
border-color: #60a5fa;
|
|
}
|
|
|
|
.edit-error {
|
|
color: #f87171;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
margin: 0.75rem 0 0;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 0.5rem;
|
|
padding: 1rem 1.25rem;
|
|
border-top: 0.5px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
/* ========================================
|
|
Tread depth measurement (detail list)
|
|
======================================== */
|
|
.tread-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.tread-chip {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.78rem;
|
|
font-weight: 600;
|
|
padding: 2px 8px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: rgba(255, 255, 255, 0.85);
|
|
border: 0.5px solid rgba(255, 255, 255, 0.12);
|
|
}
|
|
|
|
.tread-chip.rating-ok { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.4); color: #86efac; }
|
|
.tread-chip.rating-warn { background: rgba(250, 204, 21, 0.15); border-color: rgba(250, 204, 21, 0.4); color: #fde047; }
|
|
.tread-chip.rating-crit { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
|
|
|
|
.report-link {
|
|
display: inline-block;
|
|
margin-top: 2px;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.8rem;
|
|
color: #60a5fa;
|
|
}
|
|
|
|
/* Reduced motion: inherited from app.css (section 17) */
|