/* ===================================
   MODERN EQUIPMENT REPAIR TRACKER
   Complete Stylesheet - Works with Existing HTML
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
    min-height: 100vh;
    line-height: 1.6;
    font-size: 14px; /* Base font size for better desktop scaling */
}

.container {
    max-width: 1600px; /* Increased for wider screens */
    margin: 0 auto;
    padding: 20px;
}

/* Desktop optimization - scale down for better fit on normal monitors */
@media (min-width: 1200px) and (max-width: 1920px) {
    body {
        font-size: 14px;
    }

    .container {
        max-width: 85%; /* Use percentage for better responsiveness */
        padding: 25px;
    }
}

/* Large desktop screens */
@media (min-width: 1921px) {
    body {
        font-size: 15px;
    }

    .container {
        max-width: 1800px;
    }
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4 {
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
}

h3 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
}

h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-title {
    font-size: 2.2em;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 1.1em;
    color: #9ca3af;
    font-weight: 400;
    margin: 0;
}

/* Make ALL h2 elements in forms look consistent */
#equipment form h2,
#repairs form h2,
#events form h2,
#clients form h2,
#parts-bins form h2,
#admin form h2 {
    color: white;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 30px;
}

/* ===================================
   LOGO AND HEADER
   =================================== */

.logo-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.logo-small {
    height: 40px;
    width: auto;
}

/* ===================================
   SIDEBAR NAVIGATION - Modern Glass Design
   =================================== */

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: #1e293b;
    border-right: 1px solid #334155;
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #334155;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-logo {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    display: block;
    margin: 0 auto;
}

.sidebar-title {
    font-size: 1.1em;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Sidebar Navigation */
.sidebar nav {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 20px 0;
}

/* Navigation Sections */
.nav-section {
    margin-bottom: 24px;
    padding: 0 16px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    padding-left: 12px;
}

/* Navigation Items */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    margin-bottom: 2px;
    border-left: 2px solid transparent;
    cursor: pointer;
    position: relative;
}

.nav-item:hover {
    color: #f1f5f9;
    background: rgba(59, 130, 246, 0.08);
    border-left-color: #60a5fa;
    padding-left: 16px;
}

.nav-item.active {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.12);
    border-left-color: #60a5fa;
    font-weight: 600;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Navigation Badge */
.badge {
    margin-left: auto;
    background: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.badge-warning {
    background: #f59e0b;
}

.badge-danger {
    background: #ef4444;
}

/* Legacy nav-badge for backwards compatibility */
.nav-badge {
    margin-left: auto;
    background: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid #334155;
    margin-top: auto;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.user-info .user-name {
    font-size: 14px;
    color: #f1f5f9;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info .user-role {
    font-size: 12px;
    color: #64748b;
}

.logout-btn {
    color: #94a3b8;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.logout-btn:hover {
    color: #ef4444;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 32px 40px;
    max-width: 1400px;
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 200;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.sidebar.mobile-hidden {
    transform: translateX(-100%);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 0.9em;
}

.breadcrumb-item {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: #60a5fa;
}

.breadcrumb-item.active {
    color: #e5e7eb;
    font-weight: 600;
}

.breadcrumb-separator {
    color: #4b5563;
}

/* Sidebar Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Navigation Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-visible {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* ===================================
   LOGIN PAGE STYLES
   =================================== */

/* Login Logo */
.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo .logo {
    height: 150px;
}

/* ===================================
   USER INFO BAR
   =================================== */

.user-info-bar {
    background: rgba(30, 30, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 20px;
    text-align: right;
}

.user-info-bar span {
    color: #e5e7eb;
    font-weight: 600;
}

.user-info-bar a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

.user-info-bar a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* ===================================
   MESSAGES/ALERTS
   =================================== */

.message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.message.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* ===================================
   TABS
   =================================== */

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    padding-bottom: 0;
}

.tab,
.tab-button {
    background: transparent;
    color: #9ca3af;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.tab:hover,
.tab-button:hover {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.03);
}

.tab.active,
.tab-button.active {
    color: #ffffff;
    border-bottom-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* User Management Sub-tabs */
.user-sub-tab {
    display: none;
}

.user-sub-tab.active {
    display: block;
}

/* ===================================
   FORMS - ENHANCED FOR ALL PAGES
   =================================== */

/* Wrap all forms in a nice card automatically */
form {
    background: rgba(30, 30, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

/* Exception for inline forms */
.search-section form,
.filter-form form,
form.inline-form {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #f1f5f9;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
}

/* Add icons automatically to labels if they have them */
.form-group label i {
    color: #64748b;
    font-size: 14px;
    margin-right: 6px;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    outline: none;
    background: #0f172a;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-control::placeholder {
    color: #64748b;
    opacity: 1;
}

.form-group textarea,
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control,
.form-group select {
    cursor: pointer;
}

.input-readonly {
    background: rgba(59, 130, 246, 0.1) !important;
    color: white;
}

/* Form Rows */
.form-row,
.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child,
.search-row:last-child {
    margin-bottom: 0;
}

/* Search Section - keep it distinct */
.search-section {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.search-section h2,
.search-section h3 {
    color: white;
    margin-bottom: 15px;
}

/* Filter Form */
.filter-form {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Form Sections - for organized forms */
.form-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section h4 {
    color: #60a5fa;
    font-size: 1.1em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(96, 165, 250, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.form-section h4 i {
    font-size: 1.1em;
    color: #60a5fa;
}

.form-section a {
    color: #4994ec;
    text-decoration: none;
    transition: all 0.2s ease;
}

.form-section a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.form-section a i {
    margin-right: 4px;
}

/* Form divider */
.form-divider {
    text-align: center;
    color: #9ca3af;
    margin: 20px 0;
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.form-divider::before {
    left: 0;
}

.form-divider::after {
    right: 0;
}

/* Field hints */
.field-hint,
.form-group small {
    display: block;
    font-size: 0.85em;
    color: #9ca3af;
    font-weight: normal;
    margin-top: 4px;
    line-height: 1.4;
}

.field-hint i,
.form-group small i {
    margin-right: 4px;
    opacity: 0.8;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Form Actions - style submit buttons nicely */
form button[type="submit"],
form button[type="reset"],
form .btn {
    margin-top: 10px;
}

/* Add nice spacing for button groups at end of forms */
form > .btn:last-child,
form > button:last-child {
    margin-top: 20px;
}

/* Form Actions Container */
.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-actions .btn {
    margin-top: 0;
    margin-bottom: 0;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}

.form-actions .btn-danger {
    /* Remove auto margin - let flex handle spacing */
}

/* On mobile, make buttons full width */
@media (max-width: 768px) {
    .form-actions .btn {
        flex: 1 1 100%;
        max-width: none;
    }
}

/* Style checkbox/radio labels differently */
.form-group label:has(input[type="checkbox"]),
.form-group label:has(input[type="radio"]) {
    text-transform: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    margin: 0;
}

/* Form Card wrapper */
.form-card {
    background: rgba(30, 30, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.form-card h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.5em;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

/* Repair form specific */
.repair-form .form-section:not(:last-child) {
    margin-bottom: 30px;
}

/* ===================================
   SCANNER
   =================================== */

.scanner-container,
#scanner-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
}

#scanner-container.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#scanner {
    position: relative;
    max-width: 600px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

#scanner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#scanner canvas {
    display: none;
}

.scanner-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    transition: all 0.3s ease;
}

.scanner-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.scanner-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-align: center;
    z-index: 10000;
}

.input-with-scan {
    display: flex;
    gap: 10px;
}

.input-with-scan input {
    flex: 1;
}

.scanner-tip {
    background: rgba(59, 130, 246, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3b82f6;
}

.scanner-tip-small {
    margin-top: 5px;
    font-size: 11px;
}

.scanner-tip-medium {
    margin-top: 5px;
    font-size: 12px;
}

.camera-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.camera-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Equipment Found Notification */
.equipment-found {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.5);
    font-weight: 600;
}

.equipment-found.show {
    display: block;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn:hover {
    background: #2563eb;
}

.btn-primary {
    background: #3b82f6;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #475569;
    border: 1px solid #64748b;
    color: #f1f5f9;
}

.btn-secondary:hover {
    background: #64748b;
    color: #ffffff;
}

.btn-edit {
    background: #8b5cf6;
}

.btn-edit:hover {
    background: #7c3aed;
}

.btn-danger {
    background: #ef4444;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: #10b981;
}

.btn-success:hover {
    background: #059669;
}

.btn-warning {
    background: #f59e0b;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Button spacing in table cells */
table td .btn,
table td button {
    margin-right: 8px;
}

table td .btn:last-child,
table td button:last-child {
    margin-right: 0;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading state for buttons */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   CARDS
   =================================== */

.card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: #475569;
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #334155;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

/* Repair Cards */
.repair-card {
    background: rgba(30, 30, 35, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.repair-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #4b5563;
}

.repair-card.status-pending::before {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

.repair-card.status-in-progress::before,
.repair-card.status-in_progress::before {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.repair-card.status-completed::before {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.repair-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.repair-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.repair-title {
    font-size: 1.25em;
    color: #ffffff;
    font-weight: 700;
}

.repair-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.detail-item {
    padding: 5px 0;
    color: #9ca3af;
    font-size: 0.9em;
}

.detail-label {
    font-weight: 600;
    color: #e5e7eb;
    margin-right: 5px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    align-items: center;
}

.status-select {
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    height: 36px;
    display: inline-flex;
    align-items: center;
}

.status-select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ===================================
   TABLES
   =================================== */

.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(30, 30, 35, 0.5);
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

thead {
    background: transparent;
}

th, td {
    padding: 12px 16px;
    text-align: left;
}

th {
    font-weight: 600;
    color: #94a3b8;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid #334155;
}

td {
    border-bottom: 1px solid #1e293b;
    color: #e5e7eb;
    font-size: 14px;
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ===================================
   STATUS BADGES
   =================================== */

.status-badge,
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    width: 130px;
    text-align: center;
}

.status-badge.status-pending,
.badge-pending {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.status-badge.status-in-progress,
.status-badge.status-in_progress,
.badge-in-progress {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.status-badge.status-completed,
.badge-completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-inactive {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.badge-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

/* Priority Badges */
.priority-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-badge.priority-low {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.priority-badge.priority-medium {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.priority-badge.priority-high {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.priority-badge.priority-urgent {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ===================================
   REPAIRS SECTION STYLING
   =================================== */

.repair-section {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Section border colors - Gray and Blue theme */
.repair-section.pending {
    border-left: 4px solid #60a5fa; /* Light blue */
}

.repair-section.in-progress {
    border-left: 4px solid #3b82f6; /* Medium blue */
}

.repair-section.completed {
    border-left: 4px solid #6b7280; /* Gray */
}

.repair-section.cancelled {
    border-left: 4px solid #4b5563; /* Dark gray */
}

.repair-section-header {
    background: var(--card-bg);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    border-left: none;
    transition: background 0.2s ease;
}

.repair-section-header:hover {
    background: var(--hover-bg);
}

.repair-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #e5e7eb;
}

.repair-section-title .fa-clock {
    color: #60a5fa !important; /* Light blue */
}

.repair-section-title .fa-wrench {
    color: #3b82f6 !important; /* Medium blue */
}

.repair-section-title .fa-check-circle {
    color: #6b7280 !important; /* Gray */
}

.repair-section-title .fa-ban {
    color: #4b5563 !important; /* Dark gray */
}

.repair-section-content {
    border: 1px solid var(--border-color);
    border-top: none;
    border-left: none;
}

.repair-section-content.collapsed {
    display: none;
}

/* Add padding to tables inside repair sections */
.repair-section-content .table-responsive {
    padding: 0;
}

.repair-section-content table {
    margin-bottom: 0;
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: #9ca3af;
}

.toggle-icon.collapsed {
    transform: rotate(-90deg);
}

/* Overdue row styling */
.repair-row-overdue {
    background: rgba(96, 165, 250, 0.08) !important; /* Subtle blue tint */
}

/* Overdue badge */
.overdue-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    display: inline-block;
}

/* Time elapsed text styling */
.time-elapsed-overdue {
    color: #60a5fa !important;
    font-weight: bold !important;
}

.empty-section-message {
    padding: 20px;
    text-align: center;
    color: #6b7280;
}

/* ===================================
   REPAIRS ACCORDION STYLING
   =================================== */

.repairs-accordion {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.repair-accordion-item {
    background: var(--card-bg);
    border: none;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

/* Zebra striping for better readability */
.repair-accordion-item:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.repair-accordion-item:hover {
    background: rgba(96, 165, 250, 0.08);
    border-left-color: #60a5fa;
}

.repair-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    gap: 20px;
}

.repair-accordion-header:hover {
    background: transparent;
}

.repair-accordion-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.repair-accordion-icon {
    color: #4b5563;
    font-size: 11px;
    transition: transform 0.2s ease, color 0.2s ease;
    width: 12px;
    flex-shrink: 0;
}

.repair-accordion-item:hover .repair-accordion-icon {
    color: #60a5fa;
}

.repair-accordion-icon.expanded {
    transform: rotate(90deg);
    color: #60a5fa;
}

.repair-accordion-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 280px;
    max-width: 450px;
    flex: 1;
}

.repair-accordion-title strong {
    color: #f3f4f6;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.repair-accordion-item:hover .repair-accordion-title strong {
    color: #ffffff;
}

.repair-serial {
    color: #6b7280;
    font-size: 11px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    letter-spacing: 0.02em;
}

/* Badge container for alignment */
.repair-accordion-summary .priority-badge {
    flex-shrink: 0;
}

.repair-date-badge {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.repair-date-badge.overdue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* Overdue badge in accordion */
.repair-accordion-summary .overdue-badge {
    flex-shrink: 0;
}

.repair-accordion-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.repair-accordion-item:hover .repair-accordion-actions {
    opacity: 1;
}

.repair-accordion-actions .btn-small {
    padding: 6px 10px;
    font-size: 12px;
}

.repair-accordion-actions .btn-secondary {
    background: rgba(107, 114, 128, 0.2);
    border-color: transparent;
}

.repair-accordion-actions .btn-secondary:hover {
    background: rgba(107, 114, 128, 0.4);
}

.repair-accordion-actions .btn-edit {
    background: rgba(96, 165, 250, 0.15);
    border-color: transparent;
    color: #60a5fa;
}

.repair-accordion-actions .btn-edit:hover {
    background: rgba(96, 165, 250, 0.3);
}

.repair-accordion-actions .btn-label {
    margin-left: 4px;
    font-weight: 500;
}

/* Action buttons row for search results table */
.action-buttons-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.action-btn-slot {
    min-width: 75px; /* Reserve space for Start button */
}

.action-btn-slot:empty {
    min-width: 75px; /* Keep space even when empty */
}

/* ===================================
   REPAIR TOOLS & PARTS SECTIONS
   =================================== */

.repair-tools-section,
.repair-parts-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.repair-tools-header,
.repair-parts-header {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0 0 12px 0;
}

.repair-tools-header i,
.repair-parts-header i {
    margin-right: 8px;
    color: #60a5fa;
}

.repair-tools-list,
.repair-parts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-item,
.part-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 12px;
    border-radius: 6px;
    border-left: 3px solid #60a5fa;
}

.tool-item:hover,
.part-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.tool-info,
.part-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tool-info strong,
.part-info strong {
    color: #f3f4f6;
    font-size: 13px;
}

.tool-notes,
.part-notes {
    font-size: 11px;
    color: #9ca3af;
    font-style: italic;
}

.part-quantity {
    font-size: 12px;
    color: #60a5fa;
    font-weight: 500;
}

/* Suggested Tools/Parts */
.suggested-section {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 6px;
    padding: 12px;
}

.suggested-header {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #fbbf24;
    margin: 0 0 4px 0;
}

.suggested-header i {
    margin-right: 6px;
}

.suggested-hint {
    font-size: 11px;
    color: #9ca3af;
    margin: 0 0 10px 0;
}

.suggested-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 10px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.suggested-item:last-child {
    margin-bottom: 0;
}

.suggested-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.suggested-info strong {
    color: #f3f4f6;
    font-size: 12px;
}

.suggested-usage {
    font-size: 10px;
    color: #9ca3af;
}

/* Small modal for add tool/part */
.modal-small {
    max-width: 450px;
}

.repair-accordion-details {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 20px;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.repair-details-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.repair-detail-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 15px;
}

.repair-detail-section h4 {
    color: #60a5fa;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.repair-detail-section h4 i {
    font-size: 14px;
}

.repair-detail-section p {
    color: #e5e7eb;
    line-height: 1.6;
    white-space: pre-wrap;
}

.repair-detail-section.follow-up-warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.repair-detail-section.follow-up-warning h4 {
    color: #fbbf24;
}

.repair-detail-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 15px;
}

.repair-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.repair-detail-item label {
    color: #6b7280;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.repair-detail-item span {
    color: #e5e7eb;
    font-size: 14px;
}

/* Mobile adjustments for accordion */
@media (max-width: 1024px) {
    .repair-accordion-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .repair-accordion-summary {
        flex-wrap: wrap;
        gap: 10px;
    }

    .repair-accordion-title {
        min-width: 180px;
        max-width: none;
        flex: 1;
    }

    .repair-detail-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .repair-accordion-summary {
        width: 100%;
    }

    .repair-accordion-title {
        width: calc(100% - 30px);
        min-width: unset;
    }

    .repair-accordion-actions {
        width: 100%;
        justify-content: flex-end;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
    }

    .repair-detail-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===================================
   EQUIPMENT CATEGORY GROUPS
   =================================== */

.equipment-category-group {
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(20, 20, 25, 0.4);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(96, 165, 250, 0.1);
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-header:hover {
    background: rgba(96, 165, 250, 0.15);
}

.category-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    font-size: 1.3em;
    color: #60a5fa;
}

.category-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #e5e7eb;
}

.category-count {
    font-size: 0.9em;
    color: #9ca3af;
    font-weight: normal;
}

.toggle-icon {
    font-size: 0.9em;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.equipment-category-group.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.category-content {
    display: block;
}

.equipment-category-group.collapsed .category-content {
    display: none;
}

/* Category group tables */
.equipment-category-group .table-responsive {
    margin: 0;
}

.equipment-category-group table {
    margin: 0;
    border-radius: 0;
}

.equipment-category-group table thead th {
    background: rgba(15, 15, 20, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================================
   NESTED CATEGORY LEVELS
   =================================== */

/* Nested categories - indentation and styling based on level */
.equipment-category-group[data-level="1"] {
    margin-left: 20px;
}

.equipment-category-group[data-level="2"] {
    margin-left: 40px;
}

.equipment-category-group[data-level="3"] {
    margin-left: 60px;
}

.equipment-category-group[data-level="4"] {
    margin-left: 80px;
}

/* Reduce header size for nested levels */
.category-header.category-level-1 {
    padding: 12px 15px;
    background: rgba(96, 165, 250, 0.08);
}

.category-header.category-level-1 .category-title {
    font-size: 1em;
}

.category-header.category-level-2 {
    padding: 10px 12px;
    background: rgba(139, 92, 246, 0.08);
}

.category-header.category-level-2 .category-title {
    font-size: 0.95em;
}

.category-header.category-level-3 {
    padding: 8px 10px;
    background: rgba(16, 185, 129, 0.08);
}

.category-header.category-level-3 .category-title {
    font-size: 0.9em;
}

.category-header.category-level-4 {
    padding: 8px 10px;
    background: rgba(251, 146, 60, 0.08);
}

.category-header.category-level-4 .category-title {
    font-size: 0.85em;
}

/* Equipment list within categories */
.category-equipment-list {
    margin: 15px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 8px;
}

/* Zebra striping for equipment list tables */
.category-equipment-list table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.category-equipment-list table tbody tr:hover {
    background: rgba(96, 165, 250, 0.08);
}

.category-equipment-list table tbody tr {
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.category-equipment-list table tbody tr:hover {
    border-left-color: #60a5fa;
}

/* ===================================
   EQUIPMENT TYPE GROUPS (SUB-CATEGORIES) - DEPRECATED
   =================================== */

.equipment-type-group {
    margin: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(30, 30, 35, 0.3);
}

.type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(139, 92, 246, 0.08);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-header:hover {
    background: rgba(139, 92, 246, 0.12);
}

.type-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.type-title {
    margin: 0;
    font-size: 0.95em;
    font-weight: 600;
    color: #d1d5db;
}

.type-count {
    font-size: 0.85em;
    color: #9ca3af;
    font-weight: normal;
}

.type-toggle-icon {
    font-size: 0.8em;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.equipment-type-group.type-collapsed .type-toggle-icon {
    transform: rotate(-90deg);
}

.type-content {
    display: block;
}

.equipment-type-group.type-collapsed .type-content {
    display: none;
}

/* Type group tables */
.equipment-type-group .table-responsive {
    margin: 0;
}

.equipment-type-group table {
    margin: 0;
    border-radius: 0;
}

.equipment-type-group table thead th {
    background: rgba(20, 20, 25, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9em;
    padding: 10px 15px;
}

.equipment-type-group tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===================================
   COMPONENT BADGES
   =================================== */

.component-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    margin-left: 8px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    white-space: nowrap;
}

.component-badge i {
    margin-right: 4px;
    font-size: 0.9em;
}

/* Different component type colors (optional - can customize) */
.component-badge.receiver {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.component-badge.transmitter {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    border-color: rgba(251, 146, 60, 0.3);
}

/* ===================================
   SECTION HEADER WITH BUTTON
   =================================== */

.section-header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header-with-button h4 {
    margin: 0;
}

.mt-30 {
    margin-top: 30px !important;
}

/* ===================================
   MOBILE CARDS
   =================================== */

.mobile-cards {
    display: none;
}

.mobile-card {
    background: rgba(30, 30, 35, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-card-header {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #60a5fa;
}

.mobile-card-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-card-row:last-child {
    border-bottom: none;
}

.mobile-card-label {
    font-weight: 500;
    color: #9ca3af;
}

.mobile-card-value {
    text-align: right;
    color: #e5e7eb;
}

.mobile-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===================================
   DASHBOARD & STATISTICS
   =================================== */

.stats-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-content {
    flex: 1;
}

.stat-card h3 {
    font-size: 0.85em;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.stat-number,
.stat-value {
    font-size: 2em;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: #9ca3af;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Color variants */
.stat-card.green,
.stat-card.stat-success {
    border-color: rgba(16, 185, 129, 0.3);
}

.stat-card.blue,
.stat-card.stat-normal {
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-card.yellow,
.stat-card.stat-warning {
    border-color: rgba(245, 158, 11, 0.3);
}

.stat-card.warning-card,
.stat-card.stat-danger {
    border-color: rgba(239, 68, 68, 0.3);
}

.stat-card.success-card {
    border-color: rgba(16, 185, 129, 0.3);
}

.stat-value.green {
    color: #10b981;
}

.stat-value.blue {
    color: #60a5fa;
}

.stat-value.yellow {
    color: #fbbf24;
}

.warning-card .stat-number {
    color: #ef4444;
}

.success-card .stat-number {
    color: #10b981;
}

/* Dashboard Section */
.dashboard-section {
    background: rgba(30, 30, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.dashboard-section h3 {
    color: white;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid #4994ec;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: #e5e7eb;
    margin-bottom: 4px;
    line-height: 1.4;
}

.activity-text strong {
    color: #60a5fa;
}

.activity-time {
    color: #9ca3af;
    font-size: 0.85em;
}

/* ===================================
   AUTOCOMPLETE
   =================================== */

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 35, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    color: #d1d5db;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: rgba(59, 130, 246, 0.2);
    color: white;
}

/* Address Autocomplete (venue addresses) */
.address-autocomplete-dropdown {
    position: absolute;
    background: rgba(30, 30, 35, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
    margin-top: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.address-autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #e5e7eb;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.address-autocomplete-item:last-child {
    border-bottom: none;
}

.address-autocomplete-item:hover,
.address-autocomplete-item.selected {
    background: rgba(59, 130, 246, 0.2);
    color: #fff;
}

/* ===================================
   MODAL
   =================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    color: white;
    margin-bottom: 20px;
}

/* Modal forms don't need the extra card styling */
.modal-content form {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #334155;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

.close {
    color: #9ca3af;
    font-size: 2em;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

.close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

/* ===================================
   LOGIN STYLES
   =================================== */

.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: rgba(30, 30, 35, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.login-container form {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.login-title {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.password-toggle {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #60a5fa;
    cursor: pointer;
    padding: 5px;
}

.security-notice {
    color: #9ca3af;
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    padding: 10px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
}

.joke-of-the-day {
    color: #9ca3af;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    padding: 15px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    font-style: italic;
    line-height: 1.5;
}

.joke-of-the-day small {
    color: #cbd5e1;
}

/* ===================================
   LOADING
   =================================== */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 20px;
}

.loading-spinner::before {
    content: "";
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
}

.loading-spinner::after {
    content: "Loading...";
    color: #9ca3af;
    font-size: 1.1em;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.empty-state i {
    font-size: 4.5em;
    color: #4b5563;
    margin-bottom: 24px;
    display: block;
    opacity: 0.6;
}

.empty-state h3 {
    color: #e5e7eb;
    margin-bottom: 12px;
    font-size: 1.6em;
    margin-top: 0;
}

.empty-state p {
    color: #9ca3af;
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-white {
    color: white;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-muted {
    color: #a0a8b0;
}

.text-success {
    color: #10b981;
}

.text-primary {
    color: #4994ec;
}

.text-blue {
    color: #60a5fa;
}

.text-warning {
    color: #fbbf24;
}

.text-danger {
    color: #ef4444;
}

/* Text link styling */
.text-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.text-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.text-link.text-danger:hover {
    color: #f87171;
}

.mt-30 {
    margin-top: 30px;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-15 { padding: 15px; }

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-10 { gap: 10px; }

.hidden {
    display: none !important;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-inline-flex {
    display: inline-flex;
}

.align-items-center {
    align-items: center;
}

.align-items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.margin-left-auto {
    margin-left: auto;
}

.cursor-pointer {
    cursor: pointer;
}

.opacity-60 {
    opacity: 0.6;
}

.print-section {
    margin-top: 20px;
}

/* Width utilities */
.w-100 {
    width: 100%;
}

.w-80 {
    width: 80px;
}

.w-120 {
    width: 120px;
}

.w-150 {
    width: 150px;
}

.max-w-300 {
    max-width: 300px;
}

.max-w-600 {
    max-width: 600px;
}

.max-w-800 {
    max-width: 800px;
}

.max-w-900 {
    max-width: 900px;
}

.max-w-1200 {
    max-width: 1200px;
}

.min-w-200 {
    min-width: 200px;
}

/* Spacing utilities */
.overflow-y-auto {
    overflow-y: auto;
}

.max-h-90vh {
    max-height: 90vh;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.text-align-right {
    text-align: right;
}

/* Background utilities */
.bg-blue-subtle {
    background: rgba(73, 148, 236, 0.1);
}

.bg-purple-subtle {
    background: rgba(139, 92, 246, 0.1);
}

.bg-white-subtle {
    background: rgba(255, 255, 255, 0.05);
}

.bg-code {
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Border utilities */
.border-left-blue {
    border-left: 3px solid #3b82f6;
}

.border-left-purple {
    border-left: 3px solid #8b5cf6;
}

.border-left-primary {
    border-left: 4px solid #4994ec;
}

/* Rounded corners */
.rounded-8 {
    border-radius: 8px;
}

/* Position utilities */
.position-relative {
    position: relative;
}

/* Font utilities */
.font-size-09 {
    font-size: 0.9em;
}

.font-size-11 {
    font-size: 1.1em;
}

.font-size-13 {
    font-size: 1.3em;
}

.line-height-16 {
    line-height: 1.6;
}

/* Info box styles */
.info-box {
    margin: 15px 0;
    padding: 15px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.info-box-muted {
    color: #a0a8b0;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.info-box-content {
    color: #fff;
    font-size: 0.9em;
    line-height: 1.6;
}

/* Schedule/list item styles */
.schedule-item {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.schedule-item-green {
    border-left: 4px solid #10b981;
}

.schedule-item-blue {
    border-left: 4px solid #3b82f6;
}

.schedule-item-orange {
    border-left: 4px solid #f59e0b;
}

.schedule-item-purple {
    border-left: 4px solid #8b5cf6;
}

.schedule-item-gray {
    border-left: 4px solid #6b7280;
}

/* Badge variations */
.badge-purple {
    background: #8b5cf6;
}

.badge-gray {
    background: #6b7280;
}

.nav-badge {
    display: inline-block;
    background: #fbbf24;
    color: #000;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.75em;
    font-weight: 700;
    margin-left: 8px;
}

/* Icon utilities */
.icon-right {
    margin-left: auto;
    font-size: 0.8em;
}

.icon-small {
    font-size: 0.8em;
}

.icon-fade {
    color: rgba(255,255,255,0.6);
}

/* Margin utilities for specific values */
.ml-8 {
    margin-left: 8px;
}

.ml-10 {
    margin-left: 10px;
}

.ml-15 {
    margin-left: 15px;
}

.mr-4 {
    margin-right: 4px;
}

.mt-5 {
    margin-top: 5px;
}

.mt-8 {
    margin-top: 8px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-5 {
    margin-bottom: 5px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-15 {
    margin-bottom: 15px;
}

.m-0 {
    margin: 0;
}

/* Padding utilities for specific values */
.pt-15 {
    padding-top: 15px;
}

.pb-15 {
    padding-bottom: 15px;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

/* Border utilities */
.border-top-primary {
    border-top: 2px solid #4994ec;
}

/* Gradient backgrounds for stat cards */
.gradient-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.gradient-blue {
    background: linear-gradient(135deg, #4994ec 0%, #3b7dc9 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.gradient-pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.gradient-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.gradient-yellow {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Additional text utilities */
.text-size-075 {
    font-size: 0.75em;
}

.text-size-095 {
    font-size: 0.95em;
}

/* Additional padding utilities */
.p-4-8 {
    padding: 4px 8px;
}

.p-2-8 {
    padding: 2px 8px;
}

.p-12 {
    padding: 12px;
}

/* Link styles */
.link-primary {
    color: #4994ec;
    text-decoration: none;
    font-size: 0.9em;
}

.link-primary:hover {
    text-decoration: underline;
}

/* Additional margin utilities */
.my-10 {
    margin-top: 10px;
    margin-bottom: 10px;
}

.my-20 {
    margin-top: 20px;
    margin-bottom: 20px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Additional flex utilities */
.flex-gap-10-wrap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Purple section style */
.section-purple {
    background: rgba(139, 92, 246, 0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #8b5cf6;
}

/* ===================================
   FORM VALIDATION ERRORS
   =================================== */

.input-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    color: #fca5a5;
    font-size: 0.85em;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-message::before {
    content: "⚠";
    font-size: 1.1em;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

/* ===================================
   KEYBOARD SHORTCUTS MODAL
   =================================== */

.keyboard-shortcuts-modal {
    z-index: 10001;
}

.keyboard-shortcuts-help h2 {
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 2em;
    text-align: center;
}

.shortcut-category {
    margin-bottom: 30px;
}

.shortcut-category h3 {
    color: #60a5fa;
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(96, 165, 250, 0.3);
}

.shortcut-list {
    display: grid;
    gap: 12px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.shortcut-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.shortcut-item kbd {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 6px;
    padding: 6px 12px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    color: #60a5fa;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
    display: inline-block;
}

.shortcut-item span {
    color: #d1d5db;
    flex: 1;
    margin-left: 20px;
}

.shortcut-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 0.9em;
}

/* ===================================
   LOADING STATES
   =================================== */

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

/* ===================================
   SCROLLBAR
   =================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===================================
   CALENDAR STYLES
   =================================== */

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(30, 30, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.calendar-header h2 {
    margin: 0;
    color: white;
    font-size: 1.8em;
}

.calendar {
    background: rgba(30, 30, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-weekdays > div {
    text-align: center;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
    padding: 10px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    min-height: 120px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.calendar-day.empty {
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.03);
}

.calendar-day.today {
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.5);
}

.calendar-day.today .day-number {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.calendar-day.has-events {
    background: rgba(59, 130, 246, 0.1);
}

.day-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.calendar-event {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 6px;
    padding: 6px 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.calendar-event:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateX(2px);
}

.calendar-event:last-child {
    margin-bottom: 0;
}

.event-title {
    font-size: 0.8em;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.event-client {
    font-size: 0.7em;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Detail Section for Event Modal */
.detail-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-section h3 {
    color: #60a5fa;
    font-size: 1.1em;
    margin-bottom: 12px;
    font-weight: 600;
}

.detail-section p {
    color: #d1d5db;
    margin: 8px 0;
    line-height: 1.6;
}

.detail-section p strong {
    color: #e5e7eb;
    font-weight: 600;
    display: inline-block;
    min-width: 120px;
}

/* ===================================
   SUB-TABS STYLING
   =================================== */

.sub-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding: 12px;
    background: rgba(30, 30, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sub-tab {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}

.sub-tab:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.sub-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: rgba(59, 130, 246, 0.5);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.sub-tab i {
    font-size: 1em;
    opacity: 0.9;
}

.sub-tab.active i {
    opacity: 1;
}

/* ===================================
   RESPONSIVE
   =================================== */

/* Tablet adjustments */
@media (max-width: 1024px) {
    .main-content {
        padding: 15px;
    }

    .dashboard-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - Primary breakpoint */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 10px;
    }

    .main-content {
        padding-top: 60px; /* Space for mobile menu button */
    }

    /* Forms */
    form {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .form-card {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        font-size: 0.85em;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea,
    .form-control {
        padding: 14px 16px; /* Larger for better touch targets */
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }

    .form-group textarea,
    textarea.form-control {
        min-height: 120px;
    }

    /* Form sections */
    .form-section {
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .form-section h4 {
        font-size: 1em;
    }

    /* Form actions - stack vertically */
    .form-actions {
        flex-direction: column;
        gap: 10px;
        padding-top: 15px;
        margin-top: 20px;
    }

    .form-actions .btn {
        width: 100%;
        margin: 0;
        padding: 14px 20px; /* Larger touch target */
        max-width: none; /* Override desktop max-width */
    }

    .form-actions .btn-danger {
        order: 10; /* Push to bottom */
    }

    /* Logo and header */
    .logo-header {
        flex-direction: column;
        text-align: center;
        padding-bottom: 15px;
    }

    .logo {
        height: 80px;
    }

    /* Page titles */
    .page-title {
        font-size: 1.8em;
    }

    .page-subtitle {
        font-size: 1em;
    }

    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.4em;
    }

    h3 {
        font-size: 1.2em;
    }

    /* Tabs */
    .tabs {
        flex-direction: column;
        gap: 5px;
        padding-bottom: 0;
    }

    .tab,
    .tab-button {
        width: 100%;
        text-align: center;
        padding: 14px 20px; /* Larger touch target */
        border-radius: 8px;
        margin-bottom: 0;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .tab.active,
    .tab-button.active {
        border-left-color: #3b82f6;
        border-bottom: none;
    }

    /* Sub-tabs */
    .sub-tabs {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .sub-tab {
        width: 100%;
        justify-content: center;
        padding: 14px 20px; /* Larger touch target */
    }

    /* Search and filter rows */
    .search-row,
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Input with scan button */
    .input-with-scan {
        flex-direction: column;
        gap: 10px;
    }

    .input-with-scan input {
        width: 100%;
    }

    .input-with-scan .camera-btn {
        width: 100%;
        margin: 0;
        padding: 14px 20px; /* Larger touch target */
    }

    /* Tables -> Mobile cards */
    .table-responsive {
        display: none;
    }

    .mobile-cards {
        display: block;
    }

    /* Buttons - larger touch targets */
    .btn {
        padding: 14px 24px; /* Minimum 44px height for touch */
        font-size: 15px;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .btn-small {
        padding: 12px 20px; /* Still larger for mobile */
        font-size: 14px;
        min-height: 44px; /* Apple's recommended touch target */
    }

    /* Repair cards */
    .repair-card {
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .repair-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .repair-title {
        font-size: 1.1em;
    }

    .repair-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .detail-item {
        font-size: 0.85em;
    }

    .action-buttons {
        flex-direction: column;
        gap: 8px;
        padding-top: 12px;
    }

    .action-buttons .btn,
    .action-buttons .status-select,
    .action-buttons form {
        width: 100%;
    }

    .status-select {
        width: 100%;
        padding: 14px 16px; /* Larger touch target */
        min-height: 44px;
    }

    /* Dashboard and stats */
    .dashboard-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number,
    .stat-value {
        font-size: 1.8em;
    }

    /* Modals */
    .modal-overlay {
        padding: 10px;
    }

    .modal-content {
        padding: 20px 15px;
        max-width: 100%;
        width: 100%;
        max-height: 95vh;
        border-radius: 12px;
    }

    .modal-header {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .modal-header h2 {
        font-size: 1.3em;
    }

    .close {
        font-size: 1.8em;
        padding: 8px; /* Larger touch area */
    }

    /* Calendar */
    .calendar {
        padding: 15px 10px;
    }

    .calendar-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .calendar-header h2 {
        font-size: 1.4em;
    }

    .calendar-day {
        min-height: 70px;
        padding: 6px;
    }

    .day-number {
        width: 26px;
        height: 26px;
        line-height: 26px;
        font-size: 0.85em;
    }

    .calendar-event {
        padding: 6px 8px;
        margin-bottom: 4px;
    }

    .event-title {
        font-size: 0.75em;
    }

    .event-client {
        font-size: 0.65em;
    }

    /* Equipment category groups */
    .category-header {
        padding: 12px 15px;
    }

    .category-title {
        font-size: 1em;
    }

    /* Activity feed */
    .activity-item {
        padding: 12px;
        gap: 12px;
    }

    .activity-icon {
        width: 36px;
        height: 36px;
        font-size: 1em;
    }

    .activity-text {
        font-size: 0.9em;
    }

    /* Messages */
    .message {
        padding: 14px 16px;
        font-size: 14px;
    }

    /* Search section */
    .search-section {
        padding: 20px 15px;
    }

    /* User info bar */
    .user-info-bar {
        padding: 12px 15px;
        text-align: center;
        font-size: 14px;
    }

    /* Scanner */
    .scanner-close {
        top: 10px;
        right: 10px;
        padding: 12px 20px;
        font-size: 16px;
    }

    .scanner-info {
        bottom: 10px;
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Utility overrides for mobile */
    .mobile-full-width {
        width: 100% !important;
    }

    .mobile-text-center {
        text-align: center !important;
    }

    /* Hide on mobile */
    .hide-mobile {
        display: none !important;
    }

    /* Show only on mobile */
    .show-mobile {
        display: block !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .page-title {
        font-size: 1.5em;
    }

    h1 {
        font-size: 1.4em;
    }

    h2 {
        font-size: 1.2em;
    }

    form,
    .form-card {
        padding: 15px 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea,
    .form-control {
        padding: 12px 14px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .modal-content {
        padding: 15px 12px;
    }

    .calendar {
        padding: 10px 5px;
    }

    .calendar-header {
        padding: 12px;
    }

    .calendar-weekdays > div {
        font-size: 0.7em;
        padding: 5px 2px;
    }

    .calendar-day {
        min-height: 60px;
        padding: 4px;
    }

    .day-number {
        width: 22px;
        height: 22px;
        line-height: 22px;
        font-size: 0.75em;
        margin-bottom: 4px;
    }

    .calendar-event {
        padding: 4px 6px;
        margin-bottom: 3px;
    }

    .event-title {
        font-size: 0.7em;
    }

    .event-client {
        display: none;
    }

    .repair-card {
        padding: 12px;
    }

    .repair-title {
        font-size: 1em;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-number,
    .stat-value {
        font-size: 1.5em;
    }

    .activity-item {
        padding: 10px;
        gap: 10px;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    body {
        background: white;
        color: black;
    }

    /* When label print overlay is active, hide EVERYTHING else */
    body:has(#label-print-overlay) > *:not(#label-print-overlay) {
        display: none !important;
    }

    /* Fallback for browsers that don't support :has() */
    #label-print-overlay ~ * {
        display: none !important;
    }

    .btn, .tabs, .user-info-bar, .camera-btn, #scanner-container {
        display: none !important;
    }

    .card, .repair-card {
        border: 1px solid #ddd;
        box-shadow: none;
        page-break-inside: avoid;
    }
}
/* ==================== AUTO-REFRESH CONTROLS ==================== */

.refresh-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 15px;
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #00BFFF;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-refresh:hover {
    background: rgba(0, 191, 255, 0.1);
    border-color: rgba(0, 191, 255, 0.3);
    transform: rotate(180deg);
}

.btn-refresh:active {
    transform: rotate(180deg) scale(0.95);
}

.refresh-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.refresh-indicator i {
    color: #00BFFF;
    font-size: 12px;
}

.refresh-indicator.pulse {
    animation: refreshPulse 0.5s ease;
}

@keyframes refreshPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .refresh-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .btn-refresh {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== SAFARI-SPECIFIC FIXES ==================== */

/* Safari dropdown fixes */
@supports (-webkit-appearance: none) {
    /* Better dropdown appearance for Safari */
    select,
    .form-group select,
    select.form-control {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e5e7eb' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
        padding-right: 40px; /* Make room for custom arrow */
    }
    
    /* Status select specific */
    .status-select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e5e7eb' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 10px;
        padding-right: 36px;
    }
    
    /* Fix select option styling in Safari */
    select option {
        background: #1e293b;
        color: #e5e7eb;
        padding: 8px;
    }
    
    /* Fix border radius rendering */
    .form-group input,
    .form-group select,
    .form-group textarea,
    .form-control,
    .btn,
    .card,
    .modal-content {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Additional Safari webkit fixes */
select::-webkit-scrollbar {
    width: 10px;
}

select::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

select::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

select::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Fix for iOS Safari zoom prevention */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select,
    textarea,
    input {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }
}

/* Fix Safari's handling of rgba backgrounds */
.form-group input,
.form-group select,
.form-group textarea {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Safari focus ring fix */
select:focus,
input:focus,
textarea:focus,
button:focus {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
}

/* Fix Safari's button styling */
button,
.btn {
    -webkit-appearance: button;
    -webkit-writing-mode: horizontal-tb !important;
}

/* Fix Safari's default search input styling */
input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* Safari date/time input fixes */
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 44px; /* Better touch target for Safari */
}

/* Fix Safari's checkbox and radio styling */
input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* Fix Safari's flexbox rendering issues */
.flex,
.form-row,
.search-row,
.form-actions,
.action-buttons {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
}

/* Safari mobile fixes */
@media only screen and (max-width: 768px) {
    /* Prevent Safari from adding rounded corners to inputs */
    input,
    textarea,
    select {
        -webkit-border-radius: 10px;
        border-radius: 10px;
    }
    
    /* Fix Safari's sticky hover states on mobile */
    .btn:hover,
    .status-select:hover {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ===================================
   CONTACT CARDS
   =================================== */

.contact-item {
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: rgba(30, 30, 35, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.3);
}

.contact-item.primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.5);
}

.contact-item-layout {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
}

.contact-item-content {
    flex: 1;
}

.contact-item-name {
    font-size: 18px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.contact-item-name .primary-star {
    color: #60a5fa;
    margin-right: 8px;
    font-size: 20px;
}

.contact-item-title {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}

.contact-item-info {
    margin-top: 12px;
    color: #d1d5db;
    line-height: 1.8;
}

.contact-item-info-row {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item-info-row i {
    color: #60a5fa;
    width: 20px;
    display: inline-block;
    text-align: center;
}

.contact-item-info-row strong {
    color: #9ca3af;
    font-weight: 500;
    min-width: 50px;
}

.contact-item-notes {
    margin-top: 12px;
    padding: 12px 15px;
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #60a5fa;
    color: #d1d5db;
    font-size: 14px;
    border-radius: 6px;
}

.contact-item-notes i {
    margin-right: 8px;
    color: #60a5fa;
}

.contact-item-badge {
    margin-top: 12px;
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 100%);
    border-radius: 20px;
    color: #60a5fa;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.contact-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: fit-content;
}

.contact-item-actions .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .contact-item-layout {
        flex-direction: column;
    }

    .contact-item-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }

    .contact-item-actions .btn {
        flex: 1;
        min-width: 120px;
    }
}

/* ===================================
   Equipment Module Styles
   =================================== */

/* Tab content visibility */
.equipment-tab-content {
    display: none;
}

.equipment-tab-content.active {
    display: block;
}

/* Bulk item section */
.bulk-item-section {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid #8b5cf6;
    border-radius: 4px;
}

.bulk-item-section.active {
    display: block;
}

.bulk-item-header {
    color: #a78bfa;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.bulk-item-separator {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
}

.bulk-item-label {
    color: #a78bfa;
    font-weight: 600;
}

.bulk-item-hint {
    color: #c4b5fd;
}

.barcode-prefix-section {
    display: none;
    margin-top: 10px;
}

.barcode-prefix-section.active {
    display: block;
}

/* Container Settings Section */
.container-settings-section {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    border-radius: 4px;
}

.container-settings-section.active {
    display: block;
}

/* ===================================
   QUOTE AUTO-BUNDLING
   =================================== */

.auto-bundled-row {
    background: rgba(16, 185, 129, 0.05);
    border-left: 3px solid #10b981;
}

.auto-bundled-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
    margin-right: 8px;
    vertical-align: middle;
}

.auto-bundled-badge i {
    margin-right: 3px;
}

.equipment-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.equipment-selector-wrapper .equipment-select {
    flex: 1;
}

.container-settings-header {
    color: #60a5fa;
    margin-bottom: 15px;
    font-size: 0.95em;
}

/* Required Accessories Section */
.required-accessories-container {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    display: block !important;
    visibility: visible !important;
}

.required-accessories-header {
    display: grid !important;
    grid-template-columns: 1fr 140px 100px 60px;
    gap: 12px;
    padding: 12px 16px;
    background: #0f172a;
    border-bottom: 1px solid #334155;
    visibility: visible !important;
}

.accessory-header-field {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.accessory-header-ratio,
.accessory-header-checkbox,
.accessory-header-actions {
    text-align: center;
}

.required-accessories-list {
    display: flex;
    flex-direction: column;
}

.required-accessory-row {
    display: grid;
    grid-template-columns: 1fr 140px 100px 60px;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #334155;
    align-items: center;
}

.required-accessory-row:last-child {
    border-bottom: none;
}

.required-accessory-row:hover {
    background: rgba(59, 130, 246, 0.03);
}

.accessory-field {
    display: flex;
    align-items: center;
    position: relative;
}

.accessory-field-search {
    position: relative;
}

.accessory-field select,
.accessory-field input[type="number"] {
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 14px;
    transition: all 0.2s ease;
}

.accessory-field select:focus,
.accessory-field input[type="number"]:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.accessory-equipment-search {
    width: 100%;
    padding: 10px 14px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 14px;
    transition: all 0.2s ease;
}

.accessory-equipment-search:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.accessory-equipment-search::placeholder {
    color: #64748b;
}

.accessory-field-ratio,
.accessory-field-checkbox,
.accessory-field-actions {
    justify-content: center;
}

.accessory-field-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.accessory-field-actions {
    justify-content: center;
}

.accessory-field-actions .btn {
    margin: 0;
}

.barcode-prefix-input {
    text-transform: uppercase;
}

/* Item ID label */
.item-id-label-hint {
    font-weight: normal;
}

/* Category and component icons */
.category-icon,
.component-icon {
    font-size: 1.2em;
    color: #60a5fa;
}

/* Container search banner */
.search-context-banner {
    background: linear-gradient(135deg, #00BFFF 0%, #1E90FF 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,191,255,0.3);
}

.search-context-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-context-banner-icon {
    font-size: 24px;
}

.search-context-banner-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.search-context-banner-subtitle {
    font-size: 14px;
    opacity: 0.95;
}

/* Container equipment list */
.container-equipment-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.container-equipment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.container-equipment-name {
    flex: 1;
}

.container-equipment-remove {
    font-size: 0.9em;
    white-space: nowrap;
}

.container-empty-state {
    text-align: center;
    padding: 20px;
}

/* Equipment selection */
.equipment-select-multi {
    height: auto !important;
}

/* Transaction sections */
.quantity-input-section,
.audit-input-section,
.new-quantity-preview {
    display: none;
}

.quantity-input-section.active,
.audit-input-section.active,
.new-quantity-preview.active {
    display: block;
}

.new-quantity-preview {
    margin-top: 20px;
    padding: 15px;
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid #8b5cf6;
    border-radius: 4px;
}

/* Modal width override */
.modal-content-medium {
    max-width: 600px;
}

/* Form label block style */
.form-label-block {
    display: block;
    margin: 5px 0;
}

/* Checkbox grid - 3 column layout for aligned checkboxes */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 15px;
    margin-top: 10px;
}

.checkbox-grid .form-label-block {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-grid .form-label-block input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
}

/* Equipment form label */
.equipment-form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #e5e7eb;
}

/* ===================================
   App.js Module Styles
   =================================== */

/* Quote builder totals */
.quote-totals-section {
    display: flex;
    justify-content: space-between;
    font-size: 1.3em;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #4994ec;
}

/* Quote line item inputs */
.quote-days-input {
    width: 60px;
}

.quote-price-input {
    width: 100px;
}

/* Tab content visibility (general) */
.tab-content-section {
    display: none;
}

.tab-content-section.active {
    display: block !important;
}

.events-sub-tab {
    display: none;
}

.events-sub-tab.active {
    display: block !important;
}

.clients-sub-tab {
    display: none;
}

.clients-sub-tab.active {
    display: block !important;
}

/* Schedule item */
.schedule-item {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.schedule-item-date-label {
    color: #e5e7eb;
    margin-bottom: 5px;
}

/* Section header with actions */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Scanner container */
.scanner-container {
    max-width: 500px;
}

/* Quagga barcode scanner styles */
#barcode-scanner video,
#barcode-scanner canvas {
    width: 100%;
    height: auto;
    display: block;
}

#barcode-scanner .drawingBuffer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#barcode-scanner canvas.drawingBuffer {
    position: absolute;
    top: 0;
    left: 0;
}

/* Quagga detection box styling */
.drawingBuffer {
    z-index: 1;
}

/* ===================================
   Repairs Module Styles
   =================================== */

/* Repair search results */
/* Repair search inputs styling */
#repair_search_barcode,
#repair_search_text,
#repair_search_parts_bin {
    width: 100%;
    padding: 10px 14px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 14px;
    transition: all 0.2s ease;
}

#repair_search_barcode:focus,
#repair_search_text:focus,
#repair_search_parts_bin:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

#repair_search_barcode::placeholder,
#repair_search_text::placeholder,
#repair_search_parts_bin::placeholder {
    color: #64748b;
}

.repair-search-results {
    margin-top: 15px;
}

.repair-search-empty {
    text-align: center;
    padding: 15px;
    color: #9ca3af;
}

.repair-search-header {
    margin-bottom: 10px;
    color: #e5e7eb;
    font-weight: 600;
}

/* Repair view modal */
.repair-view-modal {
    max-width: 900px;
}

.repair-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.repair-status-history-header {
    margin-bottom: 15px;
}

/* Status Timeline */
.status-timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item-with-border {
    border-left: 2px solid var(--border-color);
}

.timeline-marker {
    position: absolute;
    left: -6px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
}

.timeline-content {
    background: var(--card-bg);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.timeline-status-badge-small {
    font-size: 12px;
    padding: 2px 8px;
}

.timeline-arrow {
    margin: 0 5px;
    font-size: 12px;
}

.timeline-user {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.timeline-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.timeline-notes {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

/* ===================================
   Auto-Logout Styles
   =================================== */

/* Logout modal */
.logout-modal-content {
    max-width: 500px;
}

.logout-modal-center {
    text-align: center;
}

.logout-icon {
    font-size: 48px;
    color: #f59e0b;
    margin-bottom: 20px;
}

.logout-title {
    margin-bottom: 15px;
}

.logout-message {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
}

.logout-hint {
    margin-bottom: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.logout-hint-simple {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.logout-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.logout-button {
    min-width: 150px;
}

.logout-countdown {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.logout-expired-modal {
    max-width: 400px;
    text-align: center;
}

/* ===================================
   Remaining Modules Styles
   =================================== */

/* Clients Module */
.clients-tax-exempt-field {
    display: none;
}

.clients-tax-exempt-field.visible {
    display: block;
}

.clients-event-details {
    margin: 20px 0;
}

.clients-contact-header {
    margin-bottom: 20px;
}

.clients-contact-list {
    margin-top: 20px;
}

/* Accessories Module */
.accessories-equipment-header {
    color: #00BFFF;
    margin-bottom: 10px;
}

.accessories-serial-number {
    font-size: 0.9em;
}

.accessories-count-badge {
    margin-left: 10px;
    font-size: 0.85em;
}

.accessories-modal {
    max-width: 600px;
}

/* Parts Module */
/* Uses tab-content-section from app.js styles */

/* Audit Logs Module */
.audit-filter-group {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.audit-timestamp {
    font-size: 0.85em;
}

.audit-details-modal {
    max-width: 600px;
}

.audit-details-pre {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.audit-details-summary {
    font-size: 0.9em;
    color: #9ca3af;
    margin-bottom: 5px;
    line-height: 1.4;
}

.audit-details-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.audit-detail-row {
    display: flex;
    gap: 10px;
}

.audit-detail-row strong {
    min-width: 120px;
    color: #9ca3af;
}

.audit-detail-row span {
    flex: 1;
}

.audit-details-formatted h4 {
    color: #3b82f6;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1em;
}

.audit-changes-list {
    list-style: none;
    padding: 0;
}

.audit-changes-list li {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 5px;
    border-radius: 4px;
    border-left: 3px solid #3b82f6;
}

.audit-changes-list li strong {
    color: #60a5fa;
    margin-right: 8px;
}

/* Events Module */
/* Uses tab-content-section from app.js styles */

/* Equipment Rates Module */
.equipment-rates-category-header {
    color: #00BFFF;
    margin-bottom: 15px;
}

.equipment-rates-modal {
    max-width: 700px;
}

/* Labor Rates Module */
.labor-rates-modal {
    max-width: 700px;
}

/* Address Autocomplete */
.address-dropdown-loading {
    padding: 10px;
    color: #666;
}

.address-dropdown-error {
    padding: 10px;
    color: #dc3545;
}

.address-dropdown-empty {
    padding: 10px;
    color: #666;
}

.address-result-main {
    font-weight: 500;
}

.address-result-secondary {
    font-size: 0.9em;
    color: #666;
}

/* ===================================
   Barcode Label Printing Styles
   =================================== */

/* Inline overlay styles for Safari */
#label-print-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#label-print-overlay .label-print-window {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Print media query - only applies when printing */
@media print {
    /* Hide overlay backdrop when printing */
    #label-print-overlay {
        position: static;
        background: white !important;
        padding: 0 !important;
        display: block !important;
    }

    #label-print-overlay .label-print-window {
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        max-width: none !important;
        max-height: none !important;
    }
    /* Set page size to 2" x 0.47" for Brother PT-2430PC (12mm tape) */
    @page {
        size: 2in 0.47in;
        margin: 0;
        padding: 0;
    }

    /* Force body and html to label size */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 2in !important;
        height: 0.47in !important;
        overflow: hidden !important;
    }

    /* Hide everything except the label */
    .label-print-window h2,
    .label-print-window .instructions,
    .label-print-window .print-actions {
        display: none !important;
    }

    .barcode-label-preview {
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    #barcode-label-container {
        width: 2in;
        height: 0.47in;
        margin: 0;
        padding: 0;
    }

    /* Label - simple vertical layout */
    .barcode-label {
        border: none !important;
        width: 2in !important;
        height: 0.47in !important;
        padding: 2px 0 !important;
        margin: 0 !important;
        background: white !important;
        display: block !important;
    }

    /* Hide equipment name on print */
    .barcode-label-name {
        display: none !important;
    }

    /* Barcode container */
    .barcode-label-barcode {
        margin: 0 !important;
        padding: 0 !important;
        width: 2in !important;
        height: 0.35in !important;
        display: block !important;
        text-align: center !important;
    }

    /* Barcode SVG - flexible sizing */
    .barcode-label-barcode svg {
        width: 1.9in !important;
        height: 0.35in !important;
        max-width: 100% !important;
        max-height: 100% !important;
        display: inline-block !important;
        object-fit: contain !important;
    }

    /* Barcode text below */
    .barcode-label-text {
        font-size: 8pt !important;
        margin: 0 !important;
        padding: 1px 0 0 0 !important;
        text-align: center !important;
        width: 2in !important;
        display: block !important;
        line-height: 1 !important;
        color: black !important;
        font-weight: bold !important;
    }
}

/* Ensure label doesn't break across pages */
@media print {
    #barcode-label-container {
        page-break-inside: avoid !important;
    }

    .barcode-label {
        page-break-inside: avoid !important;
        box-sizing: border-box !important;
    }
}

/* Label container for screen preview */
.barcode-label-preview {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
}

/* Label wrapper - sized for 2" x 0.47" Brother PT-2430PC */
.barcode-label {
    background: white;
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    font-family: 'Courier New', monospace;
    color: black;
    width: 2in;
    height: 0.47in;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Equipment name on label - shown in preview only */
.barcode-label-name {
    font-size: 10px;
    font-weight: bold;
    margin: 0 0 4px 0;
    color: #666;
    line-height: 1;
    text-align: center;
}

/* Barcode image */
.barcode-label-barcode {
    margin: 0;
    padding: 0;
    text-align: center;
    flex-shrink: 0;
}

.barcode-label-barcode svg {
    display: block;
    margin: 0 auto;
}

/* Human-readable code below barcode */
.barcode-label-text {
    font-size: 11px;
    font-weight: bold;
    margin: 3px 0 0 0;
    padding: 0;
    color: black;
    letter-spacing: 0.5px;
    line-height: 1;
    text-align: center;
}

/* Print window styling */
.label-print-window {
    padding: 40px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.label-print-window h2 {
    color: #333;
    margin-bottom: 20px;
}

.label-print-window .instructions {
    background: #f0f9ff;
    border: 1px solid #00BFFF;
    border-radius: 8px;
    padding: 15px;
    margin: 20px auto;
    max-width: 500px;
    text-align: left;
}

.label-print-window .instructions h3 {
    color: #00BFFF;
    margin-top: 0;
}

.label-print-window .instructions ol {
    margin: 10px 0;
    padding-left: 20px;
}

.label-print-window .instructions li {
    margin: 5px 0;
    color: #333;
}

.label-print-window .print-actions {
    margin-top: 30px;
}

.label-print-window .btn {
    margin: 0 10px;
    padding: 12px 24px;
    font-size: 16px;
}

/* Ensure buttons have proper colors in label print window */
.label-print-window .btn-primary {
    background: #00BFFF;
    color: white;
    border: none;
}

.label-print-window .btn-primary:hover {
    background: #0099CC;
}

.label-print-window .btn-secondary {
    background: #666;
    color: white;
    border: none;
}

.label-print-window .btn-secondary:hover {
    background: #555;
}


/* ==================== SEARCH HIGHLIGHT ==================== */
/* Highlight equipment row when found by barcode scan */
tr.highlight-found {
    /* No animation - just scroll to the item */
}


/* ==================== HIERARCHICAL CATEGORY TREE ==================== */
.category-tree-container {
    background: #1f2937;
    border-radius: 8px;
    padding: 20px;
}

.info-box {
    background: #1e3a5f;
    border-left: 4px solid #3b82f6;
    padding: 12px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #93c5fd;
}

.info-box i {
    font-size: 18px;
}

.category-tree-list {
    margin-left: 0;
}

.category-tree-list[data-level="1"],
.category-tree-list[data-level="2"],
.category-tree-list[data-level="3"] {
    margin-left: 30px;
    margin-top: 8px;
}

.category-tree-item {
    background: #374151;
    border: 2px solid #4b5563;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 12px;
    cursor: move;
    transition: all 0.2s ease;
}

.category-tree-item:hover {
    border-color: #3b82f6;
    background: #404a5b;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.category-tree-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.category-tree-item.drag-over {
    border-color: #10b981;
    background: #1f4235;
    border-style: dashed;
}

.category-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drag-handle {
    color: #9ca3af;
    cursor: grab;
    font-size: 16px;
}

.drag-handle:active {
    cursor: grabbing;
}

.category-icon {
    color: #3b82f6;
    font-size: 18px;
}

.category-item-left strong {
    font-size: 15px;
    color: #e5e7eb;
}

.badge {
    background: #2196f3;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.category-item-actions {
    display: flex;
    gap: 6px;
}

.btn-icon {
    background: none;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #4b5563;
    color: #e5e7eb;
}

.btn-icon.btn-danger:hover {
    background: #7f1d1d;
    color: #fca5a5;
}

.btn-icon.btn-add-child {
    color: #10b981;
}

.btn-icon.btn-add-child:hover {
    background: #064e3b;
    color: #2e7d32;
}

.empty-state-small {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 500;
}

.loading-state i {
    margin-right: 8px;
    font-size: 16px;
}


/* ==================== EQUIPMENT TAGS ==================== */
.tag-category-group {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.tag-category-group:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.tag-category-group:last-child {
    margin-bottom: 0;
}

.tag-category-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.15);
}

.tag-category-title i {
    color: #3b82f6;
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.tag-category-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, #3b82f6, #2563eb);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.tag-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
}

.tag-item {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.02) 0%, white 8px);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tag-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    opacity: 0.8;
    transition: opacity 0.25s ease;
}

.tag-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
    border-color: #d1d5db;
}

.tag-item:hover::before {
    opacity: 1;
}

.tag-item-content {
    flex: 1;
    min-width: 0;
    padding-left: 8px;
}

.tag-item-content strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    line-height: 1.3;
}

.tag-item-content small {
    display: block;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-item-actions {
    display: flex;
    gap: 6px;
    margin-left: 16px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.tag-item:hover .tag-item-actions {
    opacity: 1;
}

.tag-item-actions .btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #6b7280;
    transition: all 0.2s ease;
}

.tag-item-actions .btn-icon:hover {
    background: #f3f4f6;
    color: #1f2937;
    border-color: #d1d5db;
}

.tag-item-actions .btn-icon.btn-danger:hover {
    background: #fee;
    color: #dc2626;
    border-color: #fca;
}

/* ===================================
   TAG SELECTION CHECKBOXES
   =================================== */

.tag-selection-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tag-search-input {
    width: 100%;
    padding: 8px 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 14px;
}

.tag-search-input::placeholder {
    color: #64748b;
}

.tag-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
}

.tag-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background: #1e293b;
    border-radius: 4px;
    border-left-width: 3px;
    border-left-style: solid;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-checkbox:hover {
    background: #334155;
}

.tag-checkbox.hidden {
    display: none;
}

.tag-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 2px 0 0 0;
    flex-shrink: 0;
}

.tag-checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.tag-checkbox-label strong {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-checkbox-label small {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tags-count {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* ===================================
   EQUIPMENT GROUPING STYLES
   =================================== */

.equipment-group-header {
    background: rgba(59, 130, 246, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.equipment-group-header:hover {
    background: rgba(59, 130, 246, 0.15);
}

.equipment-group-header .group-toggle-icon {
    margin-right: 8px;
    transition: transform 0.2s ease;
    color: #3b82f6;
    vertical-align: middle;
}

.equipment-group-header td {
    vertical-align: middle;
}

.equipment-group-item {
    background: rgba(0, 0, 0, 0.1);
}

.equipment-group-item:hover {
    background: rgba(0, 0, 0, 0.15);
}

.text-small {
    font-size: 12px;
}

/* ===================================
   QUOTE BUILDER STYLES
   =================================== */

/* Quote Builder Modal */
.quote-builder-modal .modal-content {
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Quote Header */
.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Quote Line Items Table */
.quote-line-items-table {
    width: 100%;
}

.quote-line-items-table th.col-type,
.quote-line-items-table td.col-type {
    width: 100px;
}

.quote-line-items-table th.col-description,
.quote-line-items-table td.col-description {
    width: auto;
}

.quote-line-items-table th.col-qty,
.quote-line-items-table td.col-qty {
    width: 80px;
}

.quote-line-items-table th.col-days,
.quote-line-items-table td.col-days {
    width: 80px;
}

.quote-line-items-table th.col-price,
.quote-line-items-table td.col-price {
    width: 100px;
}

.quote-line-items-table th.col-tax,
.quote-line-items-table td.col-tax {
    width: 80px;
    text-align: center;
}

.quote-line-items-table th.col-total,
.quote-line-items-table td.col-total {
    width: 100px;
    text-align: right;
}

.quote-line-items-table th.col-actions,
.quote-line-items-table td.col-actions {
    width: 80px;
    text-align: center;
}

/* Quote line item inputs - full width within their cells */
.quote-line-items-table input.line-item-field {
    width: 100%;
}

/* Empty state message */
.quote-empty-state {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* Quote Summary Section */
.quote-summary {
    max-width: 400px;
    margin-left: auto;
}

.quote-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.quote-total-row {
    font-size: 1.2em;
    border-top: 2px solid #3b82f6;
    padding-top: 10px;
    margin-top: 10px;
}

.quote-total-amount {
    color: #3b82f6;
    font-weight: bold;
}

.quote-discount-input {
    width: 100px;
    text-align: right;
}

/* ==================== UTILITY CLASSES ==================== */
/* Display utilities for JavaScript toggling */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Select option visibility */
option.hidden {
    display: none !important;
}

/* Category expand/collapse states */
.category-expanded .category-content {
    display: block;
}

.category-collapsed .category-content {
    display: none;
}

.category-expanded .toggle-icon {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: -webkit-transform 0.2s ease;
    transition: transform 0.2s ease;
}

.category-collapsed .toggle-icon {
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
    -webkit-transition: -webkit-transform 0.2s ease;
    transition: transform 0.2s ease;
}

/* Form field visibility */
.form-group.hidden {
    display: none;
}

.form-group.visible {
    display: block;
}

/* ==================== EVENT DATES NESTING ==================== */
/* Expandable event dates in events list */
.events-table .expand-cell {
    width: 30px;
    padding: 5px;
    text-align: center;
}

.btn-icon {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: #3b82f6;
}

.expand-dates .fa-chevron-right {
    transition: transform 0.2s;
}

.expand-dates.expanded .fa-chevron-right {
    transform: rotate(90deg);
}

.event-dates-row.hidden {
    display: none;
}

.event-dates-container {
    padding: 15px 20px;
    background: rgba(20, 20, 25, 0.6);
    border-left: 3px solid #3b82f6;
}

.dates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.date-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.95), rgba(35, 35, 40, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.date-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.date-item:hover {
    background: linear-gradient(135deg, rgba(35, 35, 40, 0.98), rgba(40, 40, 45, 0.95));
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.date-item:hover::before {
    opacity: 1;
}

.date-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.date-item:hover .date-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.25);
}

.date-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    pointer-events: none;
}

.date-icon i {
    font-size: 20px;
    position: relative;
    z-index: 1;
}

.date-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.date-label {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.date-label strong {
    font-size: 16px;
    font-weight: 600;
    color: #f9fafb;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.date-time {
    color: #9ca3af;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-time::before {
    content: '🕐';
    font-size: 13px;
    opacity: 0.7;
}

.date-type-label {
    font-size: 13px;
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-type-label .badge {
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.date-item:hover .date-type-label .badge {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Optional label/notes styling */
.date-notes {
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.5;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 4px;
}

.date-notes::before {
    content: '📝 ';
    opacity: 0.6;
    margin-right: 4px;
}

.date-notes {
    margin-top: 5px;
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
}

.no-dates, .error-message {
    padding: 20px;
    text-align: center;
    color: #6b7280;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #3b82f6;
}

.loading-spinner i {
    font-size: 24px;
}

.badge-info {
    background-color: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.ml-5 {
    margin-left: 5px;
}

/* Sortable table headers */
.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.sortable:hover {
    background-color: #f3f4f6;
}

.sortable i {
    margin-left: 5px;
    font-size: 12px;
    opacity: 0.6;
}

/* Edit link styling */
.edit-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.edit-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Past events section */
.past-events-section {
    margin-top: 20px;
}

.past-events-toggle {
    width: 100%;
    padding: 12px 16px;
    background: rgba(30, 30, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.past-events-toggle:hover {
    background: rgba(30, 30, 35, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

.past-events-toggle i {
    transition: transform 0.2s;
}

.past-events-container {
    margin-top: 15px;
}

.past-events-container.hidden {
    display: none;
}

/* Date Manager Modal */
/* Date Manager Modal */
.date-manager-modal {
    padding: 30px;
    max-width: 1000px;
}

.date-manager-header {
    margin-bottom: 25px;
}

.date-manager-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.date-manager-title i {
    font-size: 24px;
    color: #3b82f6;
}

.date-manager-title h2 {
    color: white;
    font-size: 1.75em;
    margin: 0;
}

.date-manager-event-name {
    color: #9ca3af;
    font-size: 16px;
    padding-left: 36px;
}

/* Date Manager Summary Stats */
.date-manager-summary {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.summary-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: rgba(20, 20, 25, 0.6);
    border-radius: 8px;
    min-width: 120px;
}

.summary-number {
    font-size: 32px;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
}

.summary-label {
    font-size: 13px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.summary-info {
    display: flex;
    flex-direction: column;
}

.summary-number-small {
    font-size: 20px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.summary-label-small {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
}

/* Date Manager Sections */
.date-manager-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .date-manager-sections {
        grid-template-columns: 1fr;
    }
}

.date-manager-dates,
.date-manager-transfer {
    background: rgba(30, 30, 35, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.section-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.section-header h3 {
    color: #e5e7eb;
    font-size: 1.2em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.section-header i {
    color: #60a5fa;
    font-size: 1.1em;
}

.section-description {
    color: #d1d5db;
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.6;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 15px;
}

/* Date Items */
.manageable-dates-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.manageable-date-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(45, 45, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: all 0.2s;
}

.manageable-date-item:hover {
    background: rgba(55, 55, 60, 0.8);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.date-icon-small {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    font-weight: 600;
}

.date-icon-small i {
    font-size: 18px;
}

.date-info-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-main-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.date-info-compact strong {
    color: #f3f4f6;
    font-size: 16px;
    font-weight: 600;
}

.date-type-badge {
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.date-label-text {
    color: #d1d5db;
    font-size: 14px;
    font-weight: 500;
}

.date-actions {
    flex-shrink: 0;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-icon.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Transfer Options */
.transfer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transfer-event-btn {
    width: 100%;
    padding: 14px 18px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    color: #60a5fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s;
    text-align: left;
}

.transfer-event-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateX(4px);
}

.transfer-btn-content {
    flex: 1;
}

.transfer-event-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-bottom: 4px;
}

.transfer-date-count {
    font-size: 12px;
    color: #9ca3af;
}

.transfer-event-btn i {
    flex-shrink: 0;
    font-size: 16px;
    transition: transform 0.2s;
}

.transfer-event-btn:hover i {
    transform: translateX(4px);
}

/* Repair Warning Banner */
.repair-warning-banner {
    display: flex;
    gap: 16px;
    padding: 20px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 2px solid #ef4444;
    border-radius: 12px;
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        border-color: #ef4444;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        border-color: #dc2626;
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

.repair-warning-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    border-radius: 50%;
    font-size: 24px;
    color: white;
}

.repair-warning-content {
    flex: 1;
}

.repair-warning-title {
    font-size: 18px;
    font-weight: 700;
    color: #fca5a5;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.repair-warning-details {
    font-size: 15px;
    color: #fecaca;
    line-height: 1.6;
}

.repair-warning-details strong {
    color: white;
    font-weight: 600;
}

.repair-issue-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #ef4444;
}

.repair-issue-text {
    flex: 1;
    line-height: 1.6;
}

.repair-details-link {
    flex-shrink: 0;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 6px;
    color: #60a5fa;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.repair-details-link:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    color: #93c5fd;
}

/* ===================================
   GOOGLE PLACES AUTOCOMPLETE
   =================================== */

/* Fix Google Places autocomplete dropdown - dark theme */
.pac-container {
    background: #1f2937 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    margin-top: 2px !important;
    z-index: 10000 !important;
}

.pac-item {
    background: #1f2937 !important;
    color: #e5e7eb !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 10px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.pac-item:hover,
.pac-item-selected {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #fff !important;
}

.pac-item-query {
    color: #e5e7eb !important;
    font-weight: 600 !important;
}

.pac-matched {
    color: #60a5fa !important;
    font-weight: 700 !important;
}

.pac-icon {
    display: none !important;
}

.pac-item span {
    color: #9ca3af !important;
}

.pac-item:hover span,
.pac-item-selected span {
    color: #d1d5db !important;
}

/* Powered by Google logo */
.pac-logo:after {
    filter: invert(1) brightness(0.8) !important;
}

/* ===================================
   CONTAINER MANIFEST CARD
   =================================== */

.container-manifest-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.container-manifest-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.container-manifest-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.container-manifest-info {
    flex: 1;
}

.container-manifest-title {
    font-size: 24px;
    font-weight: 700;
    color: #60a5fa;
    margin: 0 0 8px 0;
}

.container-manifest-subtitle {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.container-manifest-location {
    font-size: 15px;
    color: #fbbf24;
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.container-manifest-location i {
    font-size: 14px;
}

.container-manifest-contents {
    padding: 24px;
}

.manifest-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #e5e7eb;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.manifest-section-title i {
    color: #60a5fa;
    font-size: 18px;
}

.container-manifest-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.container-manifest-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(4px);
}

.manifest-checkbox {
    flex-shrink: 0;
    font-size: 24px;
}

.manifest-checkbox i {
    color: #10b981;
}

.manifest-details {
    flex: 1;
}

.manifest-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 4px;
}

.manifest-item-meta {
    font-size: 13px;
    color: #9ca3af;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.manifest-actions {
    flex-shrink: 0;
}

/* ===================================
   EQUIPMENT QUICK ACTIONS
   =================================== */

.equipment-quick-actions {
    display: flex;
    justify-content: center;
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.05) 100%);
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 12px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    min-width: 250px;
}

/* ===================================
   ADD MORE MODAL
   =================================== */

.info-banner {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
}

.info-banner i {
    color: #60a5fa;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-banner strong {
    color: #e5e7eb;
    display: block;
    margin-bottom: 4px;
}

.info-banner p {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

.form-section-preview {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.form-section-preview h4 {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    color: #e5e7eb;
    font-weight: 500;
}
