/* Appointments Table Dark Theme - Reduces White Background */

/* Appointments Table Specific Dark Theme */
body.dark-theme .appointments-table {
    background: var(--dark-bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme .appointments-table table {
    background: var(--dark-bg-card);
    color: var(--dark-text-primary);
    border-collapse: collapse;
    width: 100%;
}

body.dark-theme .appointments-table thead {
    background: var(--dark-bg-tertiary);
}

body.dark-theme .appointments-table th {
    background: var(--dark-bg-tertiary);
    color: var(--dark-text-primary);
    border-bottom: 2px solid var(--dark-border);
    font-weight: 600;
    padding: 1rem 0.75rem;
    text-align: left;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

body.dark-theme .appointments-table td {
    background: var(--dark-bg-card);
    color: var(--dark-text-primary);
    border-bottom: 1px solid var(--dark-border-light);
    padding: 1rem 0.75rem;
    vertical-align: top;
}

body.dark-theme .appointments-table tr:hover td {
    background: var(--dark-bg-tertiary);
}

body.dark-theme .appointments-table tr:nth-child(even) td {
    background: var(--dark-bg-secondary);
}

body.dark-theme .appointments-table tr:nth-child(even):hover td {
    background: var(--dark-bg-tertiary);
}

/* Customer Information */
body.dark-theme .appointments-table .customer-name {
    color: var(--dark-text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

body.dark-theme .appointments-table .license-plate {
    color: var(--dark-text-secondary);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    background: var(--dark-bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.25rem;
}

/* Event Information */
body.dark-theme .appointments-table .event-name {
    color: var(--dark-text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

body.dark-theme .appointments-table .event-date {
    color: var(--dark-text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Date and Time */
body.dark-theme .appointments-table .appointment-date {
    color: var(--dark-text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

body.dark-theme .appointments-table .appointment-time {
    color: var(--dark-text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Phone Numbers */
body.dark-theme .appointments-table .phone-number {
    color: var(--dark-accent-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

body.dark-theme .appointments-table .phone-number:hover {
    color: var(--dark-text-primary);
    text-decoration: underline;
}

/* Service Badges */
body.dark-theme .appointments-table .service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

body.dark-theme .appointments-table .service-badge {
    background: rgba(76, 175, 80, 0.2);
    color: var(--dark-accent-green);
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

body.dark-theme .appointments-table .service-badge.wiper {
    background: rgba(0, 168, 204, 0.2);
    color: var(--dark-accent-blue);
    border-color: rgba(0, 168, 204, 0.3);
}

body.dark-theme .appointments-table .service-badge.check {
    background: rgba(255, 193, 7, 0.2);
    color: var(--dark-accent-yellow);
    border-color: rgba(255, 193, 7, 0.3);
}

body.dark-theme .appointments-table .service-badge.storage {
    background: rgba(0, 48, 87, 0.2);
    color: var(--dark-accent-blue);
    border-color: rgba(0, 48, 87, 0.3);
}

/* Tire Order Button */
body.dark-theme .appointments-table .tire-order-btn {
    background: var(--dark-accent-green);
    color: var(--dark-text-primary);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark-theme .appointments-table .tire-order-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

/* Utilization */
body.dark-theme .appointments-table .utilization {
    text-align: center;
}

body.dark-theme .appointments-table .utilization-text {
    color: var(--dark-text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

body.dark-theme .appointments-table .utilization-bar {
    background: var(--dark-bg-tertiary);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

body.dark-theme .appointments-table .utilization-fill {
    height: 100%;
    background: var(--dark-accent-green);
    transition: width 0.3s ease;
}

body.dark-theme .appointments-table .utilization-fill.medium {
    background: var(--dark-accent-yellow);
}

body.dark-theme .appointments-table .utilization-fill.high {
    background: var(--dark-accent-orange);
}

body.dark-theme .appointments-table .utilization-fill.full {
    background: var(--dark-accent-red);
}

body.dark-theme .appointments-table .utilization-max {
    color: var(--dark-text-muted);
    font-size: 0.75rem;
}

/* Status Section */
body.dark-theme .appointments-table .status-section {
    text-align: center;
}

body.dark-theme .appointments-table .order-number-label {
    color: var(--dark-text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

body.dark-theme .appointments-table .order-number-input {
    background: var(--dark-bg-tertiary);
    border: 1px solid var(--dark-border);
    color: var(--dark-text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    width: 60px;
    text-align: center;
}

body.dark-theme .appointments-table .order-number-input:focus {
    border-color: var(--dark-accent-blue);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
    outline: none;
}

body.dark-theme .appointments-table .status-badge {
    background: var(--dark-accent-green);
    color: var(--dark-text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-top: 0.25rem;
    display: inline-block;
}

body.dark-theme .appointments-table .status-badge.pending {
    background: var(--dark-accent-yellow);
    color: var(--dark-bg-primary);
}

body.dark-theme .appointments-table .status-badge.cancelled {
    background: var(--dark-accent-red);
    color: var(--dark-text-primary);
}

/* Actions */
body.dark-theme .appointments-table .actions {
    text-align: center;
}

body.dark-theme .appointments-table .action-buttons {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

body.dark-theme .appointments-table .action-btn {
    background: var(--dark-bg-tertiary);
    border: 1px solid var(--dark-border);
    color: var(--dark-text-secondary);
    padding: 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

body.dark-theme .appointments-table .action-btn:hover {
    background: var(--dark-accent-blue);
    color: var(--dark-text-primary);
    border-color: var(--dark-accent-blue);
    transform: translateY(-1px);
}

body.dark-theme .appointments-table .action-btn.danger:hover {
    background: var(--dark-accent-red);
    border-color: var(--dark-accent-red);
}

/* Status Badges */
body.dark-theme .appointments-table .status-info {
    margin-bottom: 0.5rem;
}

body.dark-theme .appointments-table .booking-type {
    background: rgba(76, 175, 80, 0.2);
    color: var(--dark-accent-green);
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0.25rem;
}

/* Action Buttons */
body.dark-theme .appointments-table .action-links {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

body.dark-theme .appointments-table .action-link {
    background: var(--dark-accent-blue);
    color: var(--dark-text-primary);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

body.dark-theme .appointments-table .action-link:hover {
    background: #1976d2;
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--dark-text-primary);
}

body.dark-theme .appointments-table .action-link.secondary {
    background: var(--dark-bg-tertiary);
    color: var(--dark-text-secondary);
    border: 1px solid var(--dark-border);
}

body.dark-theme .appointments-table .action-link.secondary:hover {
    background: var(--dark-bg-secondary);
    color: var(--dark-text-primary);
}

/* Checkbox */
body.dark-theme .appointments-table input[type="checkbox"] {
    accent-color: var(--dark-accent-blue);
    transform: scale(1.1);
}

/* Table Header Actions */
body.dark-theme .appointments-table .table-header-actions {
    background: var(--dark-bg-tertiary);
    padding: 1rem;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-theme .appointments-table .table-title {
    color: var(--dark-text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

body.dark-theme .appointments-table .table-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

body.dark-theme .appointments-table .appointment-count {
    color: var(--dark-text-secondary);
    font-size: 0.9rem;
}

body.dark-theme .appointments-table .booked-badge {
    background: var(--dark-accent-green);
    color: var(--dark-text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    body.dark-theme .appointments-table .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    body.dark-theme .appointments-table .action-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    body.dark-theme .appointments-table table {
        font-size: 0.8rem;
    }
    
    body.dark-theme .appointments-table th,
    body.dark-theme .appointments-table td {
        padding: 0.5rem 0.25rem;
    }
    
    body.dark-theme .appointments-table .service-badges {
        flex-direction: column;
        align-items: flex-start;
    }
}


