Initial commit: Lagerbestand Blazor Projekt

This commit is contained in:
spaethf committed 2026-09-21 21:28:23 +02:00
commit cba9414e92
105 files changed
+36431

No files matched your search

@@ -0,0 +1,738 @@
/* ========================================
Customers Page Styles
======================================== */
.customers-page {
min-height: 100vh;
min-height: 100dvh;
background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
padding: 0.75rem;
padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 480px) {
.customers-page {
padding: 1rem;
}
}
@media (min-width: 768px) {
.customers-page {
padding: 2rem;
max-width: 900px;
margin: 0 auto;
}
}
/* ========================================
Page Header
======================================== */
.page-header {
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-bottom: 1rem;
}
@media (min-width: 480px) {
.page-header {
flex-direction: row;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
margin-bottom: 1.5rem;
}
}
.page-header h1 {
font-family: 'Orbitron', monospace;
font-size: clamp(1.25rem, 4vw, 1.75rem);
font-weight: 700;
color: #ffffff;
margin: 0;
}
@media (max-width: 479.98px) {
.page-header .btn {
width: 100%;
justify-content: center;
}
}
.header-actions {
display: flex;
gap: 0.5rem;
align-items: center;
flex-wrap: wrap;
}
@media (max-width: 479.98px) {
.header-actions {
width: 100%;
flex-direction: column;
}
.header-actions .btn {
width: 100%;
justify-content: center;
}
}
/* btn-secondary: inherited from app.css (section 5) */
.spinner-inline {
display: inline-block;
width: 14px;
height: 14px;
border: 2px solid rgba(255, 255, 255, 0.2);
border-top-color: var(--text-primary);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
.sync-message {
padding: var(--space-3) var(--space-4);
border-radius: var(--radius-md);
font-family: var(--font-family-base);
font-size: var(--text-sm);
margin-bottom: var(--space-4);
text-align: center;
}
.sync-message.success {
background: rgba(34, 197, 94, 0.12);
border: 1px solid rgba(34, 197, 94, 0.25);
color: #86efac;
}
.sync-message.error {
background: rgba(220, 38, 38, 0.12);
border: 1px solid rgba(220, 38, 38, 0.25);
color: #fca5a5;
}
/* ========================================
Search Bar
======================================== */
.search-bar {
margin-bottom: 1rem;
}
@media (min-width: 480px) {
.search-bar {
margin-bottom: 1.5rem;
}
}
.search-input {
width: 100%;
padding: 12px 14px;
background: var(--surface-elevated);
border: 0.5px solid var(--border-default);
border-radius: var(--radius-lg);
color: var(--text-primary);
font-family: var(--font-family-base);
font-size: 16px; /* Prevents iOS zoom */
box-sizing: border-box;
}
@media (min-width: 480px) {
.search-input {
padding: 14px 16px;
border-radius: 12px;
}
}
.search-input:focus {
outline: none;
border-color: var(--border-focus);
}
.search-input::placeholder {
color: var(--text-placeholder);
}
/* ========================================
Loading & Empty States
======================================== */
.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-size: 2.5rem;
margin-bottom: 0.75rem;
}
@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;
font-size: 0.9rem;
}
/* ========================================
Customer List
======================================== */
.customer-list {
display: flex;
flex-direction: column;
gap: 8px;
}
@media (min-width: 480px) {
.customer-list {
gap: 10px;
}
}
.customer-card {
background: rgba(28, 28, 30, 0.8);
border: 0.5px solid rgba(255, 255, 255, 0.1);
border-radius: 14px;
overflow: hidden;
cursor: pointer;
transition: all 0.2s ease;
}
@media (min-width: 480px) {
.customer-card {
border-radius: 16px;
}
}
.customer-card:hover {
border-color: rgba(255, 255, 255, 0.2);
}
.customer-card.expanded {
border-color: rgba(220, 38, 38, 0.3);
}
.customer-main {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 14px;
}
@media (min-width: 480px) {
.customer-main {
gap: 14px;
padding: 14px 16px;
}
}
.customer-avatar {
width: 40px;
height: 40px;
border-radius: 10px;
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
display: flex;
align-items: center;
justify-content: center;
font-family: 'Rajdhani', sans-serif;
font-weight: 700;
color: #ffffff;
font-size: 0.8rem;
flex-shrink: 0;
}
@media (min-width: 480px) {
.customer-avatar {
width: 44px;
height: 44px;
border-radius: 12px;
font-size: 0.9rem;
}
}
.customer-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.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;
}
}
.customer-company {
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) {
.customer-company {
font-size: 0.85rem;
}
}
.customer-number {
font-family: 'Rajdhani', sans-serif;
color: rgba(255, 255, 255, 0.4);
font-size: 0.75rem;
}
@media (min-width: 480px) {
.customer-number {
font-size: 0.8rem;
}
}
.customer-meta {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 4px;
flex-shrink: 0;
}
.vehicle-make {
background: rgba(255, 255, 255, 0.1);
padding: 2px 6px;
border-radius: 4px;
font-family: 'Rajdhani', sans-serif;
font-size: 0.75rem;
color: rgba(255, 255, 255, 0.7);
}
@media (min-width: 480px) {
.vehicle-make {
padding: 3px 8px;
font-size: 0.8rem;
}
}
.tire-count {
font-family: 'Rajdhani', sans-serif;
font-size: 0.7rem;
color: #60a5fa;
}
@media (min-width: 480px) {
.tire-count {
font-size: 0.75rem;
}
}
/* ========================================
Customer Details (Expanded)
======================================== */
.customer-details {
padding: 0 14px 14px;
border-top: 0.5px solid rgba(255, 255, 255, 0.05);
cursor: default;
animation: slideDown 0.2s ease;
}
@media (min-width: 480px) {
.customer-details {
padding: 0 16px 16px;
}
}
@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;
}
}
.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;
word-break: break-word;
}
@media (min-width: 480px) {
.detail-item .value {
font-size: 0.9rem;
}
}
.detail-item .value.link {
color: #60a5fa;
text-decoration: none;
}
.detail-item .value.link:hover {
text-decoration: underline;
}
.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);
}
/* ========================================
Tire Set Section
======================================== */
.tireset-section {
margin-bottom: 12px;
}
.tireset-section h4 {
font-family: 'Rajdhani', sans-serif;
font-size: 0.8rem;
font-weight: 600;
color: rgba(255, 255, 255, 0.6);
margin: 0 0 8px 0;
}
@media (min-width: 480px) {
.tireset-section h4 {
font-size: 0.85rem;
}
}
.mini-tireset {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
background: rgba(0, 0, 0, 0.2);
border-radius: 8px;
margin-bottom: 6px;
font-family: 'Rajdhani', sans-serif;
font-size: 0.85rem;
}
@media (min-width: 480px) {
.mini-tireset {
gap: 10px;
padding: 8px 12px;
font-size: 0.9rem;
}
}
.mini-tireset .season {
font-size: 1rem;
}
.mini-tireset .info {
flex: 1;
color: #ffffff;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.mini-tireset .location {
color: #60a5fa;
flex-shrink: 0;
}
/* ========================================
Customer Actions
======================================== */
.customer-actions {
display: flex;
flex-direction: column;
gap: 8px;
padding-top: 12px;
border-top: 0.5px solid rgba(255, 255, 255, 0.05);
}
@media (min-width: 480px) {
.customer-actions {
flex-direction: row;
gap: 10px;
justify-content: flex-end;
}
}
@media (max-width: 479.98px) {
.customer-actions .btn {
width: 100%;
justify-content: center;
}
}
/* Buttons: inherited from app.css (section 5) */
/* ========================================
Form Row (2 columns on desktop)
======================================== */
.form-row-2col {
display: grid;
grid-template-columns: 1fr;
gap: 0;
}
@media (min-width: 480px) {
.form-row-2col {
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
}
/* ========================================
Vehicle Management Section
======================================== */
.vehicles-section {
margin-top: 1rem;
padding-top: 1rem;
border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}
.vehicles-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
}
.vehicles-header h6 {
font-family: 'Rajdhani', sans-serif;
font-size: 0.9rem;
font-weight: 600;
color: rgba(255, 255, 255, 0.8);
margin: 0;
}
.vehicle-edit-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.vehicle-edit-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 12px;
background: rgba(255, 255, 255, 0.03);
border: 0.5px solid rgba(255, 255, 255, 0.08);
border-radius: 8px;
gap: 10px;
}
.vehicle-edit-item.primary {
background: rgba(96, 165, 250, 0.08);
border-color: rgba(96, 165, 250, 0.2);
}
.vehicle-edit-info {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
flex: 1;
min-width: 0;
}
.vehicle-make {
font-family: 'Rajdhani', sans-serif;
font-weight: 600;
color: #ffffff;
font-size: 0.9rem;
}
.vehicle-tiresize {
font-family: 'Rajdhani', sans-serif;
color: rgba(255, 255, 255, 0.5);
font-size: 0.8rem;
}
.primary-badge {
font-family: 'Rajdhani', sans-serif;
font-size: 0.65rem;
font-weight: 600;
background: rgba(96, 165, 250, 0.15);
border: 1px solid rgba(96, 165, 250, 0.3);
color: #93c5fd;
padding: 2px 6px;
border-radius: 4px;
}
.vehicle-edit-actions {
display: flex;
gap: 4px;
}
.btn-icon {
background: transparent;
border: none;
padding: 6px;
cursor: pointer;
font-size: 0.9rem;
opacity: 0.6;
transition: opacity 0.2s ease;
min-width: 32px;
min-height: 32px;
display: flex;
align-items: center;
justify-content: center;
}
.btn-icon:hover {
opacity: 1;
}
.btn-icon.danger:hover {
color: #ef4444;
}
.vehicle-form {
margin-top: 0.75rem;
padding: 0.75rem;
background: rgba(0, 0, 0, 0.3);
border: 0.5px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
}
.vehicle-form-actions {
display: flex;
gap: 8px;
justify-content: flex-end;
margin-top: 0.5rem;
}
.text-muted {
color: rgba(255, 255, 255, 0.4);
}
.small {
font-size: 0.8rem;
}
.form-control-sm {
padding: 8px 10px !important;
font-size: 0.85rem !important;
}
.form-label.small {
font-size: 0.75rem;
margin-bottom: 4px;
}
.mb-2 {
margin-bottom: 0.5rem;
}
/* Reduced motion: inherited from app.css (section 17) */