1378 lines
28 KiB
CSS
1378 lines
28 KiB
CSS
/* ========================================
|
|
Tire Check-out Page Styles
|
|
======================================== */
|
|
|
|
.checkout-page {
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
background: var(--color-bg-gradient);
|
|
padding: var(--space-4);
|
|
padding-bottom: calc(var(--space-4) + var(--safe-area-bottom));
|
|
}
|
|
|
|
.page-header {
|
|
text-align: center;
|
|
padding: 1rem 0 1.5rem;
|
|
}
|
|
|
|
.page-header h1 {
|
|
font-family: var(--font-family-heading);
|
|
font-size: 1.5rem;
|
|
font-weight: var(--font-weight-bold);
|
|
color: var(--text-primary);
|
|
margin: 0 0 0.5rem 0;
|
|
}
|
|
|
|
.page-header p {
|
|
font-family: var(--font-family-base);
|
|
color: var(--text-placeholder);
|
|
margin: 0;
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
/* ========================================
|
|
Checkout Card
|
|
======================================== */
|
|
.checkout-card {
|
|
background: rgba(28, 28, 30, 0.8);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border: 0.5px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 20px;
|
|
padding: 1.5rem;
|
|
max-width: 500px;
|
|
margin: 0 auto 1.5rem;
|
|
}
|
|
|
|
/* ========================================
|
|
Last Scan Display
|
|
======================================== */
|
|
.last-scan-display {
|
|
background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(96, 165, 250, 0.1) 100%);
|
|
border: 1px solid rgba(96, 165, 250, 0.4);
|
|
border-radius: 12px;
|
|
padding: 12px 16px;
|
|
margin-bottom: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
animation: scanPulse 0.5s ease-out;
|
|
}
|
|
|
|
@keyframes scanPulse {
|
|
0% {
|
|
transform: scale(0.95);
|
|
opacity: 0;
|
|
}
|
|
50% {
|
|
transform: scale(1.02);
|
|
}
|
|
100% {
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.last-scan-display .scan-label {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.85rem;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
.last-scan-display .scan-code {
|
|
font-family: 'Orbitron', monospace;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: #93c5fd;
|
|
flex: 1;
|
|
word-break: break-all;
|
|
}
|
|
|
|
/* ========================================
|
|
Scan Section
|
|
======================================== */
|
|
.scan-section {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.camera-wrapper {
|
|
background: #000;
|
|
border-radius: 16px;
|
|
overflow: hidden;
|
|
aspect-ratio: 1;
|
|
max-height: 250px;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
#qr-reader-checkout {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
#qr-reader-checkout video {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.scanner-controls {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* ========================================
|
|
Search Section
|
|
======================================== */
|
|
.search-section {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.search-input {
|
|
width: 100%;
|
|
padding: 14px 16px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border: 0.5px solid rgba(255, 255, 255, 0.12);
|
|
border-radius: 12px;
|
|
color: #ffffff;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 1rem;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.search-input:focus {
|
|
outline: none;
|
|
border-color: rgba(220, 38, 38, 0.5);
|
|
box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
|
|
}
|
|
|
|
.search-input::placeholder {
|
|
color: rgba(255, 255, 255, 0.35);
|
|
}
|
|
|
|
/* ========================================
|
|
Scanned Items Section
|
|
======================================== */
|
|
.scanned-section {
|
|
background: rgba(28, 28, 30, 0.8);
|
|
border: 0.5px solid rgba(34, 197, 94, 0.3);
|
|
border-radius: 20px;
|
|
padding: 1.5rem;
|
|
max-width: 500px;
|
|
margin: 0 auto 1.5rem;
|
|
}
|
|
|
|
.scanned-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.scanned-header h3 {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
margin: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.scan-count {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
background: rgba(34, 197, 94, 0.3);
|
|
border-radius: 50%;
|
|
font-family: 'Orbitron', monospace;
|
|
font-weight: 700;
|
|
color: #86efac;
|
|
}
|
|
|
|
/* btn-sm, btn-outline-danger: inherited from app.css (section 5) */
|
|
|
|
/* ========================================
|
|
Scanned Summary
|
|
======================================== */
|
|
.scanned-summary {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin-bottom: 1rem;
|
|
padding: 12px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.summary-item {
|
|
flex: 1;
|
|
text-align: center;
|
|
}
|
|
|
|
.summary-value {
|
|
display: block;
|
|
font-family: 'Orbitron', monospace;
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: #22c55e;
|
|
}
|
|
|
|
.summary-label {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.7rem;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* ========================================
|
|
Scanned List
|
|
======================================== */
|
|
.scanned-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.scanned-item {
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border: 0.5px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.scanned-item.highlight {
|
|
background: rgba(34, 197, 94, 0.15);
|
|
border-color: rgba(34, 197, 94, 0.4);
|
|
animation: highlightFade 3s ease-out;
|
|
}
|
|
|
|
@keyframes highlightFade {
|
|
0% { background: rgba(34, 197, 94, 0.3); }
|
|
100% { background: rgba(34, 197, 94, 0.15); }
|
|
}
|
|
|
|
.scanned-item-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.scanned-item-main {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.scanned-item-header .ticket-number {
|
|
font-family: 'Orbitron', monospace;
|
|
font-weight: 600;
|
|
color: #ef4444;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.location-badge {
|
|
font-family: "Apple Color Emoji", "Segoe UI Emoji", 'Rajdhani', sans-serif;
|
|
font-size: 0.8rem;
|
|
color: #60a5fa;
|
|
background: rgba(96, 165, 250, 0.1);
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.btn-remove {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border: none;
|
|
border-radius: 50%;
|
|
width: 24px;
|
|
height: 24px;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
cursor: pointer;
|
|
font-size: 0.8rem;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn-remove:hover {
|
|
background: rgba(239, 68, 68, 0.3);
|
|
color: #f87171;
|
|
}
|
|
|
|
.scanned-item-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.scanned-customer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.scanned-customer .customer-name {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.scanned-customer .customer-name.inventory {
|
|
font-family: "Apple Color Emoji", "Segoe UI Emoji", 'Rajdhani', sans-serif;
|
|
color: #93c5fd;
|
|
}
|
|
|
|
.scanned-customer .vehicle-info {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.75rem;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.scanned-details {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.85rem;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
.scanned-details .tire-count {
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.scanned-details .tire-season {
|
|
font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
|
|
font-size: 1rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.scanned-details .with-rims {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
padding: 1px 6px;
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.scanned-brand {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.85rem;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.scanned-qr {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.8rem;
|
|
padding: 6px 8px;
|
|
background: rgba(34, 197, 94, 0.08);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.scanned-qr .qr-label {
|
|
color: rgba(255, 255, 255, 0.4);
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.scanned-qr .qr-codes {
|
|
font-family: 'Orbitron', monospace;
|
|
font-size: 0.75rem;
|
|
color: #86efac;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.scanned-meta {
|
|
display: flex;
|
|
gap: 6px;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.8rem;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
.scanned-actions {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
/* ========================================
|
|
Results Section
|
|
======================================== */
|
|
.results-section {
|
|
max-width: 500px;
|
|
margin: 0 auto 1.5rem;
|
|
}
|
|
|
|
.results-section h3 {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
margin: 0 0 1rem 0;
|
|
}
|
|
|
|
.tireset-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.tireset-card {
|
|
background: rgba(28, 28, 30, 0.8);
|
|
border: 0.5px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 16px;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.tireset-card:hover {
|
|
border-color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.tireset-card.selected,
|
|
.tireset-card.already-scanned {
|
|
border-color: rgba(34, 197, 94, 0.5);
|
|
background: rgba(34, 197, 94, 0.05);
|
|
}
|
|
|
|
.tireset-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.ticket-number {
|
|
font-family: 'Orbitron', monospace;
|
|
font-weight: 600;
|
|
color: #ef4444;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.status-badge {
|
|
padding: 4px 10px;
|
|
border-radius: 6px;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.status-badge.stored {
|
|
background: rgba(34, 197, 94, 0.15);
|
|
color: #22c55e;
|
|
}
|
|
|
|
.status-badge.pickedup {
|
|
background: rgba(156, 163, 175, 0.15);
|
|
color: #9ca3af;
|
|
}
|
|
|
|
.status-badge.reserved {
|
|
background: rgba(251, 191, 36, 0.15);
|
|
color: #fbbf24;
|
|
}
|
|
|
|
.tireset-body {
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.customer-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.customer-name {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.vehicle-info {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.8rem;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.tire-info {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.tire-count {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
font-size: 0.9rem;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.tire-details {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* QR Info in search results */
|
|
.qr-info {
|
|
margin-bottom: 8px;
|
|
padding: 8px;
|
|
background: rgba(34, 197, 94, 0.08);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.qr-info .qr-label {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.75rem;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.qr-info .qr-codes {
|
|
font-family: 'Orbitron', monospace;
|
|
font-size: 0.8rem;
|
|
color: #86efac;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.location-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.85rem;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.location {
|
|
font-family: "Apple Color Emoji", "Segoe UI Emoji", 'Rajdhani', sans-serif;
|
|
color: #60a5fa;
|
|
}
|
|
|
|
/* Buttons: inherited from app.css (section 5) */
|
|
|
|
.w-100 {
|
|
width: 100%;
|
|
}
|
|
|
|
/* ========================================
|
|
Divider
|
|
======================================== */
|
|
.divider {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin: 1.25rem 0;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.divider::before,
|
|
.divider::after {
|
|
content: '';
|
|
flex: 1;
|
|
height: 1px;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
/* Alerts: inherited from app.css (section 7) */
|
|
.alert {
|
|
margin-top: var(--space-3);
|
|
}
|
|
|
|
/* Spinner: inherited from app.css (section 11) */
|
|
.spinner {
|
|
width: 18px;
|
|
height: 18px;
|
|
border: 2px solid var(--border-default);
|
|
border-top-color: var(--text-primary);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
/* ========================================
|
|
Success Modal
|
|
======================================== */
|
|
.success-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
backdrop-filter: blur(8px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1rem;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.success-modal {
|
|
background: rgba(28, 28, 30, 0.95);
|
|
border: 0.5px solid rgba(255, 255, 255, 0.15);
|
|
border-radius: 24px;
|
|
padding: 2rem;
|
|
text-align: center;
|
|
max-width: 400px;
|
|
width: 100%;
|
|
}
|
|
|
|
.success-icon {
|
|
width: 80px;
|
|
height: 80px;
|
|
border-radius: 50%;
|
|
background: rgba(34, 197, 94, 0.15);
|
|
border: 2px solid rgba(34, 197, 94, 0.4);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 1.5rem;
|
|
font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
|
|
font-size: 2.5rem;
|
|
color: #22c55e;
|
|
line-height: 1;
|
|
}
|
|
|
|
.success-modal h2 {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
margin: 0 0 0.5rem 0;
|
|
}
|
|
|
|
.success-modal p {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
margin: 0 0 0.5rem 0;
|
|
}
|
|
|
|
.pickup-detail {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: #22c55e !important;
|
|
}
|
|
|
|
.pickup-list {
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
margin: 1rem 0;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
text-align: left;
|
|
}
|
|
|
|
.pickup-item {
|
|
padding: 8px 0;
|
|
border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.pickup-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.pickup-item .ticket {
|
|
font-family: 'Orbitron', monospace;
|
|
font-size: 0.85rem;
|
|
color: #ef4444;
|
|
display: block;
|
|
}
|
|
|
|
.pickup-item .info {
|
|
font-family: 'Rajdhani',sans-serif;
|
|
font-size: 0.8rem;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.success-detail {
|
|
color: rgba(255, 255, 255, 0.5) !important;
|
|
font-size: 0.9rem;
|
|
margin-bottom: 1.5rem !important;
|
|
}
|
|
|
|
/* ========================================
|
|
Action chooser modal
|
|
======================================== */
|
|
.action-modal {
|
|
max-width: 460px;
|
|
}
|
|
|
|
.action-subject {
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.action-subject .vehicle-info {
|
|
display: inline-block;
|
|
margin-left: 6px;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
padding: 1px 8px;
|
|
border-radius: 6px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.mono {
|
|
font-family: 'Orbitron', monospace;
|
|
font-size: 0.85em;
|
|
letter-spacing: 0.04em;
|
|
color: #60a5fa;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 0.75rem;
|
|
margin: 1.25rem 0;
|
|
}
|
|
|
|
.action-btn {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 1rem 0.75rem;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
border-radius: 14px;
|
|
color: #ffffff;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
}
|
|
|
|
.action-btn:hover {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
border-color: rgba(239, 68, 68, 0.5);
|
|
}
|
|
|
|
.action-btn.swap:hover {
|
|
background: rgba(96, 165, 250, 0.15);
|
|
border-color: rgba(96, 165, 250, 0.5);
|
|
}
|
|
|
|
.action-icon {
|
|
font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
|
|
font-size: 1.8rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.action-label {
|
|
font-size: 1.05rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.action-desc {
|
|
font-size: 0.75rem;
|
|
color: rgba(255, 255, 255, 0.55);
|
|
text-align: center;
|
|
}
|
|
|
|
/* ========================================
|
|
Swap panel
|
|
======================================== */
|
|
.swap-panel {
|
|
background: rgba(28, 28, 30, 0.95);
|
|
border: 1px solid rgba(96, 165, 250, 0.4);
|
|
border-radius: 16px;
|
|
padding: 1rem;
|
|
margin: 0 auto 1.5rem;
|
|
}
|
|
|
|
.swap-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.swap-header h2 {
|
|
margin: 0;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 1.3rem;
|
|
font-weight: 700;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.swap-columns {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.swap-columns {
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1rem;
|
|
}
|
|
}
|
|
|
|
.swap-box {
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 0.5px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 12px;
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
|
|
.swap-box.outgoing {
|
|
border-left: 3px solid #ef4444;
|
|
}
|
|
|
|
.swap-box.incoming {
|
|
border-left: 3px solid #22c55e;
|
|
}
|
|
|
|
.swap-box-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.9rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: rgba(255, 255, 255, 0.75);
|
|
}
|
|
|
|
.swap-rows {
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.swap-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(100px, 36%) 1fr;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
padding: 0.35rem 0;
|
|
border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.swap-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.swap-row dt {
|
|
margin: 0;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.swap-row dd {
|
|
margin: 0;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.swap-tabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border-radius: 10px;
|
|
padding: 4px;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.swap-tab {
|
|
flex: 1;
|
|
padding: 8px;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 8px;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.swap-tab.active {
|
|
background: rgba(96, 165, 250, 0.2);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.swap-tab:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.history-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
max-height: 260px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.history-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
text-align: left;
|
|
padding: 8px 10px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 10px;
|
|
color: #ffffff;
|
|
cursor: pointer;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
}
|
|
|
|
.history-item:hover {
|
|
border-color: rgba(255, 255, 255, 0.25);
|
|
}
|
|
|
|
.history-item.selected {
|
|
border-color: #22c55e;
|
|
background: rgba(34, 197, 94, 0.12);
|
|
}
|
|
|
|
.history-item.same-season {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.history-season {
|
|
font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
|
|
font-size: 1.3rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.history-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1px;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.history-detail {
|
|
font-size: 0.85rem;
|
|
color: rgba(255, 255, 255, 0.75);
|
|
}
|
|
|
|
.history-meta {
|
|
font-size: 0.75rem;
|
|
color: rgba(255, 255, 255, 0.45);
|
|
}
|
|
|
|
.history-warn {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 0.6rem 0.75rem;
|
|
}
|
|
|
|
@media (max-width: 479px) {
|
|
.form-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.2rem;
|
|
}
|
|
|
|
.form-group-wide {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.form-group label {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-weight: 600;
|
|
font-size: 0.8rem;
|
|
color: rgba(255, 255, 255, 0.65);
|
|
}
|
|
|
|
.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: 7px 10px;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.form-group .form-control:focus {
|
|
outline: none;
|
|
border-color: #60a5fa;
|
|
}
|
|
|
|
.swap-location {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem 0.75rem;
|
|
margin-top: 1rem;
|
|
padding: 0.75rem 1rem;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.swap-location-label {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-weight: 600;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.swap-location-hint {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.8rem;
|
|
color: rgba(255, 255, 255, 0.45);
|
|
}
|
|
|
|
.swap-location-select {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border: 0.5px solid rgba(255, 255, 255, 0.15);
|
|
border-radius: 8px;
|
|
color: #ffffff;
|
|
padding: 7px 10px;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
}
|
|
|
|
.swap-actions {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
/* ========================================
|
|
Responsive
|
|
======================================== */
|
|
@media (min-width: 768px) {
|
|
.checkout-page {
|
|
padding: 2rem;
|
|
}
|
|
|
|
.page-header h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.checkout-card,
|
|
.results-section,
|
|
.scanned-section,
|
|
.swap-panel {
|
|
max-width: 600px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
.checkout-page {
|
|
padding: 3rem;
|
|
}
|
|
|
|
.checkout-card,
|
|
.results-section,
|
|
.scanned-section,
|
|
.swap-panel {
|
|
max-width: 700px;
|
|
}
|
|
}
|
|
|
|
/* ========================================
|
|
QR Report (swap flow)
|
|
======================================== */
|
|
.report-scan-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border: 0.5px dashed rgba(255, 255, 255, 0.2);
|
|
border-radius: 10px;
|
|
padding: 8px 12px;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.report-scan-text {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.85rem;
|
|
color: rgba(255, 255, 255, 0.75);
|
|
}
|
|
|
|
.report-scan-icon {
|
|
font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
|
|
font-size: 1.15rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.report-scan-bar .btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.report-attached {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.report-attached-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.9rem;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.btn-link {
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
color: #60a5fa;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.btn-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.report-summary {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.report-chip {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
padding: 2px 9px;
|
|
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);
|
|
}
|
|
|
|
.report-chip.rating-ok { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.4); color: #86efac; }
|
|
.report-chip.rating-warn { background: rgba(250, 204, 21, 0.15); border-color: rgba(250, 204, 21, 0.4); color: #fde047; }
|
|
.report-chip.rating-crit { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
|
|
|
|
.report-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
backdrop-filter: blur(8px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1rem;
|
|
z-index: 1150;
|
|
}
|
|
|
|
.report-dialog {
|
|
background: #1c1c1e;
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
border-radius: 16px;
|
|
width: 100%;
|
|
max-width: 640px;
|
|
max-height: 92vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.report-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
padding: 1rem 1.25rem;
|
|
border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.report-header h3 {
|
|
margin: 0;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 1.2rem;
|
|
font-weight: 700;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.report-subtitle {
|
|
margin: 0.2rem 0 0;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.85rem;
|
|
color: rgba(255, 255, 255, 0.55);
|
|
}
|
|
|
|
.report-close {
|
|
background: none;
|
|
border: none;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
font-size: 1.1rem;
|
|
cursor: pointer;
|
|
padding: 4px 8px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.report-close:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.report-body {
|
|
padding: 1rem 1.25rem;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.report-warning {
|
|
background: rgba(250, 204, 21, 0.1);
|
|
border: 0.5px solid rgba(250, 204, 21, 0.35);
|
|
color: #fde047;
|
|
border-radius: 10px;
|
|
padding: 10px 14px;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.report-warning.info {
|
|
background: rgba(96, 165, 250, 0.1);
|
|
border-color: rgba(96, 165, 250, 0.3);
|
|
color: rgba(255, 255, 255, 0.85);
|
|
}
|
|
|
|
.report-meta {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
}
|
|
|
|
.report-meta .form-group {
|
|
margin: 0;
|
|
}
|
|
|
|
.tread-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
.tread-cell {
|
|
border-radius: 12px;
|
|
padding: 10px 12px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
}
|
|
|
|
.tread-cell.rating-ok { border-color: rgba(34, 197, 94, 0.5); background: rgba(34, 197, 94, 0.08); }
|
|
.tread-cell.rating-warn { border-color: rgba(250, 204, 21, 0.5); background: rgba(250, 204, 21, 0.08); }
|
|
.tread-cell.rating-crit { border-color: rgba(239, 68, 68, 0.5); background: rgba(239, 68, 68, 0.08); }
|
|
|
|
.tread-cell label {
|
|
display: block;
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: rgba(255, 255, 255, 0.55);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.tread-input {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.tread-input .form-control {
|
|
max-width: 110px;
|
|
font-family: 'Orbitron', monospace;
|
|
font-weight: 600;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border: 0.5px solid rgba(255, 255, 255, 0.15);
|
|
border-radius: 8px;
|
|
color: #ffffff;
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
.tread-input span {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
.report-recommendation {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.95rem;
|
|
color: rgba(255, 255, 255, 0.85);
|
|
background: rgba(96, 165, 250, 0.1);
|
|
border: 0.5px solid rgba(96, 165, 250, 0.25);
|
|
border-radius: 10px;
|
|
padding: 10px 14px;
|
|
}
|
|
|
|
.report-link {
|
|
font-family: 'Rajdhani', sans-serif;
|
|
font-size: 0.85rem;
|
|
color: #60a5fa;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.report-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
padding: 0.85rem 1.25rem;
|
|
border-top: 0.5px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.success-detail.warn {
|
|
color: #fde047;
|
|
}
|
|
|
|
@media (max-width: 479px) {
|
|
.report-meta,
|
|
.tread-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* Reduced motion: inherited from app.css (section 17) */
|