/* PCW_STYLE.css */
/* This file contains all the styling for the PC Workshop Hub. */

/* Define a color palette using CSS variables for easy updates */
:root {
    --primary-green: #16a34a;
    --secondary-blue: #0066ff;
    --text-color: #1f2937; /* slate-800 */
    --muted-text: #4b5563; /* slate-600 */
    --background-color: #f8fafc; /* slate-50 */
    --panel-bg: #ffffff;
    --panel-border: #cbd5e1; /* slate-300 */
    --table-border: #cbd5e1; /* slate-300 */
    --input-border: #94a3b8; /* slate-400 */
    --input-bg: #f8fafc;
    --white: #ffffff;
    --radius: 12px;
}

/* Dark mode palette (applied via .theme-dark on html) */
html.theme-dark {
    --text-color: #e5e7eb; /* gray-200 */
    --muted-text: #cbd5e1; /* slate-300 */
    --background-color: #0b1220; /* near-black blue */
    --panel-bg: #0f172a; /* slate-900 */
    --panel-border: #334155; /* slate-700 */
    --table-border: #334155; /* slate-700 */
    --input-border: #475569; /* slate-600 */
    --input-bg: #0b1220;
    /* Hint the browser to use dark UI for native controls (scrollbars, date pickers, etc.) */
    color-scheme: dark;
}

/* Dark mode overrides for common Tailwind classes used across pages */
html.theme-dark .bg-white { background-color: var(--panel-bg) !important; }
html.theme-dark .bg-gray-50 { background-color: #0c1628 !important; }
html.theme-dark .bg-gray-100 { background-color: #0f1b31 !important; }
html.theme-dark .bg-gray-200 { background-color: #13223b !important; }
html.theme-dark .text-gray-900,
html.theme-dark .text-gray-800,
html.theme-dark .text-gray-700 { color: var(--text-color) !important; }
html.theme-dark .text-gray-600,
html.theme-dark .text-gray-500 { color: var(--muted-text) !important; }
html.theme-dark .text-gray-400 { color: #94a3b8 !important; }
html.theme-dark .text-gray-300 { color: #a1a1aa !important; }
html.theme-dark .border,
html.theme-dark [class*="border-gray"],
html.theme-dark .shadow,
html.theme-dark .shadow-lg { border-color: var(--panel-border) !important; }
html.theme-dark input,
html.theme-dark select,
html.theme-dark textarea { background-color: var(--input-bg) !important; border-color: var(--input-border) !important; color: var(--text-color) !important; }
/* Stronger scoping for Box Storage fields in dark mode */
html.theme-dark body.box-storage input,
html.theme-dark body.box-storage select,
html.theme-dark body.box-storage textarea {
    background-color: var(--input-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--input-border) !important;
}
/* Encourage dark-themed native dropdown popups */
html.theme-dark body.box-storage select { color-scheme: dark; }
html.theme-dark body.box-storage select option,
html.theme-dark body.box-storage select optgroup {
    background-color: var(--panel-bg) !important;
    color: var(--text-color) !important;
}
/* Autofill fixes for dark mode (Chromium/WebKit) */
html.theme-dark body.box-storage input:-webkit-autofill,
html.theme-dark body.box-storage input:-webkit-autofill:hover,
html.theme-dark body.box-storage input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-color) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--input-bg) inset !important;
    box-shadow: 0 0 0px 1000px var(--input-bg) inset !important;
    caret-color: var(--text-color) !important;
}

/* Darken native date/datetime controls and icons (Chromium/WebKit) */
html.theme-dark input[type="date"],
html.theme-dark input[type="datetime-local"],
html.theme-dark input[type="time"] { color-scheme: dark; }
html.theme-dark input[type="date"]::-webkit-calendar-picker-indicator,
html.theme-dark input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    /* Force icon to white on dark backgrounds */
    filter: invert(1) grayscale(1) brightness(2) contrast(1.2);
    opacity: 0.95;
}
html.theme-dark input[type="date"]::-webkit-datetime-edit,
html.theme-dark input[type="datetime-local"]::-webkit-datetime-edit { color: var(--text-color); }
html.theme-dark table thead { background-color: #0c1628 !important; }
/* Hover utility overrides */
html.theme-dark .hover\:bg-gray-100:hover { background-color: #1f2937 !important; color: var(--text-color) !important; }
html.theme-dark .hover\:bg-gray-200:hover { background-color: #334155 !important; color: var(--text-color) !important; }
/* Ensure default buttons with gray backgrounds show readable text */
html.theme-dark .text-gray-700 { color: var(--text-color) !important; }

/* Dark mode mappings for accent text colors to lighter shades for contrast */
html.theme-dark .text-blue-700 { color: #93c5fd !important; }
html.theme-dark .text-green-600 { color: #86efac !important; }
html.theme-dark .text-red-600 { color: #f87171 !important; }
html.theme-dark .text-indigo-600 { color: #a5b4fc !important; }
html.theme-dark .text-yellow-600 { color: #fde68a !important; }
html.theme-dark .text-emerald-600 { color: #6ee7b7 !important; }
html.theme-dark .text-blue-900 { color: #bfdbfe !important; }
html.theme-dark .text-blue-600 { color: #93c5fd !important; }

/* Placeholders in dark mode */
html.theme-dark ::placeholder { color: #94a3b8 !important; opacity: 1; }

/* Ensure text is dark on soft light backgrounds when in dark theme */
html.theme-dark .soft-bg, html.theme-dark .soft-bg * { color: #111827 !important; }

/* Extra utility backgrounds for dark mode */
html.theme-dark .bg-red-100 { background-color: #3f0a0a !important; }
html.theme-dark .hover\:bg-red-200:hover { background-color: #661111 !important; }
html.theme-dark .bg-blue-200 { background-color: #0b2546 !important; }

/* Dark mode: deepen modal/overlay backdrops for better contrast */
html.theme-dark #invoiceOverlay,
html.theme-dark #repairOverlay,
html.theme-dark #jobModal {
    /* Deep navy/black with higher opacity to dim background content */
    background-color: rgba(2, 6, 23, 0.8) !important; /* near-slate-950 @ 80% */
}

/* Custom date picker icon wrapper/button */
.pcw-date-wrap { position: relative; display: inline-block; width: 100%; }
.pcw-date-wrap > input[type="date"],
.pcw-date-wrap > input[type="datetime-local"],
.pcw-date-wrap > input[type="time"] { width: 100%; padding-right: 2rem !important; }
.pcw-date-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border: none; background: transparent; color: #374151; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0.9; }
.pcw-date-btn:hover { opacity: 1; }
html.theme-dark .pcw-date-btn { color: #ffffff; }
.pcw-date-btn svg { width: 18px; height: 18px; }
/* Hide native indicator only when JS enhanced (Chromium/WebKit) */
.pcw-date-wrap.pcw-date-enhanced input[type="date"]::-webkit-calendar-picker-indicator,
.pcw-date-wrap.pcw-date-enhanced input[type="datetime-local"]::-webkit-calendar-picker-indicator { opacity: 0; pointer-events: none; }

/* Basic body styling */
body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 16px; /* comfortable default */
    line-height: 1.55;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header styling */
header {
    background: var(--panel-bg);
    color: var(--text-color);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid var(--panel-border);
}

header h1 {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
}

/* Footer styling */
footer {
    background-color: var(--panel-bg);
    color: var(--text-color);
    text-align: center;
    padding: 1rem;
    margin-top: auto;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.08);
    border-top: 2px solid var(--panel-border);
}

/* Main content area styling */
/* Default main area: top-aligned, padded */
main {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    padding: 20px;
}

/* Clients page layout fix: top-aligned content like Repairs/Dashboard */
body.page-clients main {
    align-items: stretch;
    justify-content: flex-start;
}

/* The central white flexbox with shadow, as requested */
.main-container {
    background: var(--panel-bg);
    border-radius: var(--radius);
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    margin: 2.5rem auto;
    padding: 2rem 2rem;
    max-width: 1200px; /* increased for more room across all pages */
    width: 95%;
    min-width: 320px;
    border: 2px solid var(--panel-border);
}

.main-container h2 {
    text-align: center;
    margin-bottom: 0.3rem;
    font-size: 2rem;
    font-weight: 700;
}

.form-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.08rem;
}

.section {
    margin-bottom: 2.2rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    font-size: 1rem;
    padding: 0.9rem 1rem;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    background: var(--input-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--secondary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,102,255,0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.full-width {
    grid-column: 1 / -1;
}

.phone-row {
    display: flex;
    gap: 0.5rem;
}

.phone-row select {
    min-width: 110px;
    font-size: 1rem;
    padding: 0.85rem 0.7rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.power-supply-row {
    align-items: center;
    display: flex;
    gap: 0.7rem;
}

.circle-icon,
.engineer-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
    margin-right: 0.7rem;
}

.assign-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.engineers {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.engineer-list {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.add-device-btn {
    background: #16a34a;
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.add-device-btn:hover {
    background: #0066ff;
}

.booking-date {
    text-align: right;
    color: #374151;
    font-size: 1rem;
    flex: 1 1 0;
}

.assign-label {
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.submit-btn-group {
    flex: 0 0 auto;
}

.submit-booking-btn {
    background: #294fa7;
    color: #fff;
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-booking-btn:hover {
    background: #16a34a;
}

/* Navigation inside the container */
.main-container nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.main-container nav a {
    display: block;
    padding: 0.85rem 1.5rem;
    background-color: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.main-container nav a:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.4);
}

/* Color for "PC Workshop" */
.pc-green {
    color: var(--primary-green);
}

/* Color for "Hub" */
.hub-blue {
    color: var(--secondary-blue);
}

/* Modern Repair Booking Form Styles */
.repair-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.repair-form label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
    color: var(--text-color);
}

.repair-form input,
.repair-form textarea {
    width: 100%;
    padding: 0.95rem 1.05rem;
    margin: 0;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    background: var(--background-color);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.repair-form input:focus,
.repair-form textarea:focus {
    border-color: var(--primary-green);
    outline: none;
    box-shadow: 0 0 0 2px rgba(22,163,74,0.15);
}

.repair-form button[type="submit"] {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(22,163,74,0.08);
    border: 2px solid rgba(0,0,0,0.05);
}

.repair-form button[type="submit"]:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px) scale(1.03);
}

/* Remove borders and background from fieldsets and legends for a clean look */
.repair-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.repair-form legend {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-blue);
    margin-bottom: 1.2rem;
    padding: 0;
    display: block;
}

/* Two-column layout for form fields inside each section */
.repair-form fieldset {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 1.6rem;
    width: 100%;
    padding: 0;
    margin: 0 0 1.5rem 0;
    border: none;
}

.repair-form fieldset legend {
    grid-column: 1 / -1;
}

.repair-form .name-row,
.repair-form .phone-row {
    display: flex;
    gap: 1rem;
    grid-column: 1 / -1;
}

.repair-form .name-row > div,
.repair-form .phone-row > div {
    flex: 1 1 0;
}

/* Add vertical gaps between all input and textarea boxes */
.repair-form > fieldset > div {
    margin-bottom: 1.1rem;
}

.repair-form .name-row > div {
    margin-bottom: 0; /* Remove bottom margin for side-by-side fields */
}

.repair-form .name-row {
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

/* Density controls: default Comfortable; .density-compact reduces spacing */
/* Stronger table borders */
table {
    border-collapse: separate;
    border-spacing: 0;
}
thead th {
    border-bottom: 2px solid var(--table-border);
}
tbody td {
    border-bottom: 1px solid var(--table-border);
}
table tr > *:first-child { border-left: 2px solid var(--table-border); }
table tr > *:last-child { border-right: 2px solid var(--table-border); }
tbody tr:last-child > * { border-bottom: 2px solid var(--table-border); }

/* Box Storage: stronger light-mode gridlines and zebra */
body.box-storage table { border-left: 2px solid var(--table-border); border-right: 2px solid var(--table-border); }
html:not(.theme-dark) body.box-storage thead tr { background: #e5e7eb; } /* gray-200 */
html:not(.theme-dark) body.box-storage thead th { color: #111827; font-weight: 700; }
body.box-storage table { font-size: 0.875rem; /* text-sm for readability */ }
html:not(.theme-dark) body.box-storage tbody tr:nth-child(odd) { background: #f3f4f6; } /* gray-100 */
html:not(.theme-dark) body.box-storage tbody tr:nth-child(even) { background: #eef2f7; } /* slightly bluish for separation */
body.box-storage td, body.box-storage th { border-right: 1px solid var(--table-border); }
body.box-storage tr > *:last-child { border-right: 2px solid var(--table-border); }

/* Status/Contact cells */
body.box-storage .status-cell, body.box-storage .contact-cell { position: relative; }

/* Make inner selects transparent over colored cells */
body.box-storage .status-cell select,
body.box-storage .contact-cell select { background: transparent !important; }
body.box-storage .status-cell select:focus,
body.box-storage .contact-cell select:focus { background: transparent !important; }

/* Custom select UI for Box Storage (themeable) */
body.box-storage .pcw-native-select-hidden { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 0 !important; height: 0 !important; }
body.box-storage .pcw-select { display: inline-flex; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%; border: 1px solid var(--input-border); border-radius: 6px; padding: 0.3rem 0.5rem; background: var(--panel-bg); color: inherit; font-size: 0.75rem; line-height: 1.2; cursor: pointer; position: relative; }
body.box-storage .pcw-select:hover { border-color: #60a5fa; }
html.theme-dark body.box-storage .pcw-select:hover { border-color: #60a5fa; }
body.box-storage .pcw-select .pcw-arrow { margin-left: auto; display: inline-flex; width: 16px; height: 16px; color: currentColor; opacity: 0.9; }
body.box-storage .pcw-options { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0; border: 1px solid var(--input-border); border-radius: 8px; background: var(--panel-bg); color: var(--text-color); box-shadow: 0 8px 24px rgba(0,0,0,0.24); max-height: 240px; overflow: auto; display: none; }
body.box-storage .pcw-options.open { display: block; }
body.box-storage .pcw-option { padding: 0.4rem 0.5rem; cursor: pointer; font-size: 0.8rem; }
body.box-storage .pcw-option:hover { background: #f3f4f6; }
html.theme-dark body.box-storage .pcw-option:hover { background: #1f2937; }
body.box-storage .pcw-option[aria-selected="true"] { font-weight: 600; }

/* Dark mode: prevent white native select background and show a readable chevron */
html.theme-dark body.box-storage .status-cell select,
html.theme-dark body.box-storage .contact-cell select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent !important;
    color: var(--text-color) !important;
    border-color: var(--input-border) !important;
    padding-right: 1.75rem !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e5e7eb"><path d="M7 10l5 5 5-5"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px 16px;
}
/* Dark focus/hover affordance for inputs/selects in Box Storage */
html.theme-dark body.box-storage input:hover,
html.theme-dark body.box-storage select:hover,
html.theme-dark body.box-storage textarea:hover,
html.theme-dark body.box-storage input:focus,
html.theme-dark body.box-storage select:focus,
html.theme-dark body.box-storage textarea:focus {
    border-color: #60a5fa !important; /* blue-400 */
    outline: none;
}

/* Cards/panels notable border */
.panel, .card, .bg-white, .bg-gray-50, .dashboard-card {
    border: 2px solid var(--panel-border);
}

/* Group first and last name fields side by side */
.repair-form .name-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.repair-form .name-row > div {
    flex: 1;
    min-width: 0;
}

/* Style for phone row */
.repair-form .phone-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.repair-form .phone-row > div {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Style for mobile group (dropdown + input) */
.repair-form .mobile-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.repair-form .mobile-group select {
    padding: 0.85rem 0.7rem;
    border: 1px solid var(--light-grey);
    border-radius: 8px;
    background: var(--background-color);
    font-size: 1rem;
    min-width: 110px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.repair-form .mobile-group select:focus {
    border-color: var(--primary-green);
    outline: none;
    box-shadow: 0 0 0 2px rgba(22,163,74,0.15);
}

.repair-form .mobile-group input[type="tel"] {
    flex: 1;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: var(--white);
    box-shadow: 2px 0 12px rgba(0,0,0,0.08);
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem 1rem 1rem;
}
.sidebar.active {
    transform: translateX(0);
}
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.sidebar-title {
    font-size: 1.2rem;
    font-weight: bold;
}
.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--secondary-blue);
    cursor: pointer;
    line-height: 1;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}
.sidebar ul li {
    margin-bottom: 1.2rem;
}
.sidebar ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.2s;
}
.sidebar ul li a:hover {
    color: var(--secondary-blue);
}
.open-sidebar-btn {
    position: relative; /* inside header slot */
    margin-left: 0; /* keep anchored; avoid drifting left */
    background: var(--secondary-blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    width: 32px; /* consistent size */
    height: 32px; /* consistent size */
    display: flex;
    align-items: center;
    justify-content: center; /* center the icon */
    font-size: 1.6rem; /* balanced larger hamburger */
    line-height: 1;
    cursor: pointer;
    z-index: 1100;
    transition: background 0.2s, transform 0.15s ease, opacity 0.15s ease;
}

/* While not slotted into the header, keep the open button fixed top-left */
.open-sidebar-btn--fixed {
    position: fixed;
    top: 1.2rem;
    left: 1.2rem;
}
.open-sidebar-btn:hover {
    background: var(--primary-green);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* Hidden state to prevent initial jump before slotting into header */
.open-sidebar-btn--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Popout container on the left side that holds the sidebar open button when scrolling */
#sidebarPopoutContainer {
    position: fixed;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    pointer-events: none; /* allow content to be non-interactive except the button */
}

#sidebarPopoutContainer .popout-inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

#sidebarPopoutContainer .popout-inner button#openSidebar {
    all: unset; /* remove inherited fixed/absolute styles */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Slightly smaller icon in popout */
#sidebarPopoutContainer svg { width: 20px; height: 20px; }

/* Hide popout on very small screens to avoid overlap */
@media (max-width: 420px) {
    #sidebarPopoutContainer { display: none; }
}

/* Push content right when sidebar is open on desktop */
@media (min-width: 700px) {
    .sidebar.active ~ header,
    .sidebar.active ~ main,
    .sidebar.active ~ footer {
        margin-left: 250px;
        transition: margin-left 0.3s;
    }
}

/* Hide open button when sidebar is open */
.sidebar.active ~ .open-sidebar-btn {
    display: none;
}

/* Basic responsive adjustments */
@media (max-width: 600px) {
    .main-container {
        padding: 1.5rem;
    }
}

/* Reduce side padding on main container */
.main-container {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto; /* ensure centered when max-width applies */
}

/* Make form fields fill the container */
.main-container .repair-form,
.main-container .repair-form fieldset {
    width: 100%;
    padding: 0;
}

/* Make input, select, and textarea fill available width */
.main-container .repair-form input,
.main-container .repair-form textarea,
.main-container .repair-form select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* For side-by-side rows, ensure full width */
.repair-form .name-row > div,
.repair-form .phone-row > div {
    flex: 1 1 0;
}

@media (max-width: 700px) {
    .repair-form fieldset {
        grid-template-columns: 1fr;
    }
    .repair-form .name-row,
    .repair-form .phone-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Responsive: stack columns on small screens */
@media (max-width: 800px) {
    .main-container {
        padding: 1.2rem 0.5rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .assign-row {
        flex-direction: column;
        gap: 1rem;
    }
    .booking-date {
        text-align: left;
    }
}

/* Enhanced asset card style */
.asset-section {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.10), 0 2px 4px -2px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    position: relative;
    transition: box-shadow 0.2s;
    padding: 2rem;
}
.asset-section:hover {
    box-shadow: 0 12px 32px -8px rgba(0,0,0,0.13), 0 4px 8px -2px rgba(0,0,0,0.08);
}
.removeAssetBtn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f3f4f6;
    border-radius: 9999px;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #dc2626;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px -2px rgba(0,0,0,0.10);
    transition: background 0.2s, color 0.2s;
}
.removeAssetBtn:hover {
    background: #fee2e2;
    color: #b91c1c;
}
.asset-divider {
    border-top: 2px dashed #e5e7eb;
    margin: 2rem 0;
}

/* Area code select background for repair and disposal forms */
.repair-form .mobile-group select,
.asset-section select[id*="MobileCode"] {
    background-color: #0077ff !important; /* Light blue, visible before focus */
    color: #222;
    border: 1px solid #bcd4ee;
}

/* ------------------------
     Booked Jobs page (scoped)
     ------------------------ */
.booked-jobs .main-container { padding: 0.75rem; max-width: 1200px; margin: 0 auto; }
.booked-jobs .main-container h2 { font-size: 1.125rem; margin-bottom: 0.125rem; }
.booked-jobs .main-container p { font-size: 0.85rem; }
.booked-jobs table thead th { font-size: 0.85rem; padding: 0.45rem 0.6rem; }
.booked-jobs table tbody td { font-size: 0.88rem; padding: 0.45rem 0.6rem; vertical-align: middle; }
.booked-jobs .asset-section { padding: 1rem; }
.booked-jobs input,
.booked-jobs select,
.booked-jobs button { font-size: 0.92rem; }
.booked-jobs .statusSelect { padding: 0.2rem 0.45rem; }
.booked-jobs #pageNumbers button { font-size: 0.85rem; padding: 0.25rem 0.5rem; }
.booked-jobs #jobModal .bg-white { padding: 1rem; }
.booked-jobs #jobModal h3 { font-size: 1rem; }
.booked-jobs #modalBody { font-size: 0.9rem; max-height: 50vh; overflow:auto; }

@media (max-width: 800px) {
    .booked-jobs .main-container { padding: 0.5rem; }
    .booked-jobs .asset-section { padding: 0.5rem; }
    .booked-jobs .main-container h2 { font-size: 1rem; }
    .booked-jobs table thead th,
    .booked-jobs table tbody td { font-size: 0.82rem; padding: 0.35rem 0.45rem; }
}

/* Generic utilities */
.text-center { text-align: center; }
.max-600 { max-width: 600px; }
.w-230 { width: 230px; }
.btn-sm { padding: 0.5rem 1.2rem; }

/* Sidebar partial tweaks moved from inline styles */
#sidebar-backdrop {
    z-index: 900;
    animation: pcw-fade-in 220ms ease-out both;
    backdrop-filter: blur(1.5px);
}
#sidebar {
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

/* Settings page helpers */
.chip-list { display:flex; flex-wrap:wrap; gap:0.5rem; margin-bottom:1rem; }
.inline-row { display:flex; gap:0.5rem; align-items:center; }
.form-group-input { padding:0.5rem 1rem; border-radius:8px; border:1px solid var(--input-border); background: var(--input-bg); color: var(--text-color); }
.settings-table { width:100%; border-collapse:collapse; margin-bottom:1rem; }
.settings-table thead tr { background:#f0f4ff; }
.settings-table th, .settings-table td { padding:0.7rem 1rem; text-align:left; }
.settings-table td { color: var(--text-color); }
.settings-table th { color: var(--text-color); font-weight: 700; }

/* Settings table dark header */
html.theme-dark .settings-table thead tr { background: #0c1628 !important; }
html.theme-dark .settings-table th { color: var(--text-color) !important; }

/* Chips on settings (engineers) in dark mode */
html.theme-dark .bg-blue-100 { background-color: #0b2546 !important; }
html.theme-dark .text-blue-800 { color: #93c5fd !important; }
html.theme-dark .text-blue-500 { color: #60a5fa !important; }
html.theme-dark .hover\:text-blue-800:hover { color: #93c5fd !important; }

/* Invoice page card sizing and print */
.a4-invoice { width:794px; min-height:1123px; padding:48px; }
@media print {
    /* Request no browser headers/footers by using zero margins */
    @page { size: A4; margin: 0; }
    html, body { margin: 0 !important; padding: 0 !important; }
    main { margin: 0 !important; padding: 0 !important; display: block !important; }
    /* Fill the full page with our own 10mm padding; keep footer at bottom */
    .a4-invoice {
        width: 210mm !important;
        height: 297mm !important;     /* exact A4 height to avoid overflow/underflow */
        padding: 10mm !important;     /* internal margins */
        box-sizing: border-box !important; /* include padding in fixed height */
        box-shadow: none !important;
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .a4-invoice table { page-break-inside: auto; }
    .a4-invoice thead { display: table-header-group; }
    .a4-invoice tfoot { display: table-footer-group; }
    .a4-invoice tr { page-break-inside: avoid; break-inside: avoid; }
    /* Keep the bottom section (terms) toward the bottom via flex without forcing a new page */
    .a4-invoice > div:last-child { margin-top: auto !important; }

    /* Print only the invoice content to avoid extra pages from surrounding layout */
    body > :not(main) { display: none !important; }
    main { display: block !important; width: 210mm !important; margin: 0 auto !important; }
    main > :not(.a4-invoice) { display: none !important; }

    /* Hide common chrome when printing invoice page directly */
    #sidebar-container, #header-container, #footer-container,
    #discountModal, #depositModal, #confirmModal { display: none !important; }
}
/* Invoice readability improvements */
body:not(.theme-dark) .a4-invoice thead tr { background: #e5e7eb; }
.a4-invoice thead th { color: #111827; font-weight: 600; }
.a4-invoice table tbody tr:nth-child(odd) { background: #fafafa; }
.a4-invoice table tbody tr:nth-child(even) { background: #ffffff; }
.a4-invoice table td, .a4-invoice table th { border-bottom: 1px solid #e5e7eb; }
.a4-invoice hr { border-color: #e5e7eb; }
.a4-invoice .text-gray-700 { color: #374151; }
.a4-invoice .text-gray-900 { color: #111827; }
.a4-invoice input[type="date"],
.a4-invoice input[type="text"],
.a4-invoice input[type="number"],
.a4-invoice textarea,
.a4-invoice select { background: #ffffff; border-color: #cbd5e1; color: #111827; }
.a4-invoice .border-gray-300 { border-color: #cbd5e1 !important; }
.a4-invoice .border-gray-200 { border-color: #e5e7eb !important; }
.a4-invoice .hover\:bg-gray-50:hover { background-color: #f3f4f6 !important; }

/* Keep readability in dark mode (when opened standalone) */
html.theme-dark .a4-invoice thead tr { background: #0c1628 !important; }
html.theme-dark .a4-invoice thead th { color: var(--text-color) !important; }
html.theme-dark .a4-invoice table td, html.theme-dark .a4-invoice table th { border-bottom-color: var(--panel-border) !important; }
html.theme-dark .a4-invoice .text-gray-700 { color: var(--text-color) !important; }
html.theme-dark .a4-invoice .text-gray-900 { color: #ffffff !important; }
html.theme-dark .a4-invoice input, html.theme-dark .a4-invoice select, html.theme-dark .a4-invoice textarea { background: var(--input-bg) !important; color: var(--text-color) !important; border-color: var(--input-border) !important; }

/* Overlay preview: stronger contrast and spacing, screen-only */
@media screen {
    /* Standard editable overlay preview */
    .pcw-overlay-preview .a4-invoice { box-shadow: 0 14px 48px rgba(0,0,0,0.35); border-color: #94a3b8 !important; display: flex; flex-direction: column; }
    .pcw-overlay-preview .a4-invoice thead tr { background: #e5e7eb; }
    .pcw-overlay-preview .a4-invoice thead th { font-weight: 700; color:#334155; }
    .pcw-overlay-preview .a4-invoice table td, .pcw-overlay-preview .a4-invoice table th { border-bottom-color: #cbd5e1; padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .pcw-overlay-preview .a4-invoice table tbody tr:nth-child(odd) { background: #f8fafc; }
    .pcw-overlay-preview .a4-invoice table tbody tr:nth-child(even) { background: #ffffff; }
    .pcw-overlay-preview .a4-invoice .text-gray-700 { color: #1f2937; }
    .pcw-overlay-preview .a4-invoice .text-gray-900 { color: #0f172a; }
    .pcw-overlay-preview .a4-invoice .border-gray-300 { border-color: #94a3b8 !important; }
    .pcw-overlay-preview .a4-invoice .border-gray-200 { border-color: #cbd5e1 !important; }
    .pcw-overlay-preview .a4-invoice hr { border-color: #1e3a8a !important; border-top-width:2px; opacity:0.6; }
    .pcw-overlay-preview #amountDue { font-size: 2rem !important; }
    .pcw-overlay-preview .a4-invoice > div:last-child { margin-top: auto !important; }
    .pcw-overlay-preview .a4-invoice #invoiceServices .w-20 { width: 5.75rem; }
    .pcw-overlay-preview .a4-invoice #invoiceServices .w-10 { width: 3.25rem; }
    .pcw-overlay-preview .a4-invoice #invoiceServices .mb-1 { margin-bottom: 0.25rem !important; }
    .pcw-overlay-preview .a4-invoice #invoiceServices .mt-1 { margin-top: 0.25rem !important; }

    /* Send (Print/PDF/Email) preview: print-like view */
    .pcw-send-preview .a4-invoice { background: #ffffff !important; box-shadow: none !important; border: none !important; border-radius: 0 !important; border-color: #94a3b8 !important; }
    .pcw-send-preview .a4-invoice table { border-collapse: collapse; }
    .pcw-send-preview .a4-invoice thead tr { background: #e5e7eb !important; }
    .pcw-send-preview .a4-invoice thead th { color: #111827 !important; font-weight: 700 !important; }
    /* Remove all borders by default to avoid stray vertical lines */
    .pcw-send-preview .a4-invoice table,
    .pcw-send-preview .a4-invoice thead,
    .pcw-send-preview .a4-invoice tbody,
    .pcw-send-preview .a4-invoice tr,
    .pcw-send-preview .a4-invoice th,
    .pcw-send-preview .a4-invoice td { border: none !important; }
    /* Explicitly remove left/right/top on cells and rows */
    .pcw-send-preview .a4-invoice th,
    .pcw-send-preview .a4-invoice td { border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; }
    .pcw-send-preview .a4-invoice thead tr,
    .pcw-send-preview .a4-invoice tbody tr { border: 0 !important; }
    /* Then add only bottom dividers */
    .pcw-send-preview .a4-invoice thead th { border-bottom: 2px solid #64748b !important; }
    .pcw-send-preview .a4-invoice tbody td { border-bottom: 1.5px solid #94a3b8 !important; }
    .pcw-send-preview .a4-invoice table td, .pcw-send-preview .a4-invoice table th { padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .pcw-send-preview .print-only { display: block !important; }
    .pcw-send-preview .print-hide { display: none !important; }
    .pcw-send-preview .a4-invoice input,
    .pcw-send-preview .a4-invoice select,
    .pcw-send-preview .a4-invoice textarea {
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none !important;
        padding: 0 !important;
        -webkit-appearance: none;
        appearance: none;
    }
    .pcw-send-preview .a4-invoice thead th:last-child,
    .pcw-send-preview .a4-invoice tbody td:last-child { display: none !important; }
    .pcw-send-preview .a4-invoice button,
    .pcw-send-preview .a4-invoice a[href^="mailto:"] { display: none !important; }
    .pcw-send-preview .a4-invoice .border-dashed { display: none !important; }
    .pcw-send-preview #clientEdit { display: none !important; }
    /* Do not force visibility; just remove box edges if it is visible */
    .pcw-send-preview #clientDisplay { border: 0 !important; outline: none !important; padding: 0 !important; background: transparent !important; border-radius: 0 !important; box-shadow: none !important; }
    .pcw-send-preview #clientDisplay a { display: none !important; }
    /* Stronger hr in send preview */
    .pcw-send-preview .a4-invoice hr { border-color: #1f2937 !important; border-top-width: 2px !important; opacity: 0.8; }
    .pcw-send-preview .a4-invoice #invoiceServices input,
    .pcw-send-preview .a4-invoice #invoiceServices textarea {
        border: 0 !important;
        background: transparent !important;
        color: #0f172a !important;
        padding: 0 !important;
        border-radius: 0 !important;
        line-height: 1.2;
    }
}
/* Disposal page tweaks */
html.theme-dark .asset-section { background: var(--panel-bg) !important; border-color: var(--panel-border) !important; }
html.theme-dark .asset-section hr { border-color: var(--panel-border) !important; }
html.theme-dark .peer-checked\:bg-blue-50 { background-color: #0b2546 !important; }
html.theme-dark .hover\:border-blue-700:hover { border-color: #60a5fa !important; }

/* Fade header logo/profile when sidebar is open */
body.sidebar-open #profileToggle {
    opacity: 0.15;
    filter: grayscale(85%) blur(1.5px);
    transition: opacity 0.15s ease, filter 0.15s ease;
}
body.sidebar-open #profileToggle { pointer-events: none; }
body.sidebar-open #profilePopout { display: none !important; }
/* Extra safety: while sidebar is open, ensure header logo wrapper can't intercept clicks */
body.sidebar-open #header-logo-wrap { pointer-events: none; }
/* Ensure the open button never blocks clicks when hidden */

/* Ghost the sidebar open icon like the account icon when sidebar is open */
body.sidebar-open #openSidebar { opacity: 0.15; filter: grayscale(85%) blur(1.5px); pointer-events: none; }

/* During overlays (like the invoice overlay), keep the icon visible but subtly faded and non-interactive. */
body.overlay-open #openSidebar { opacity: 0.35; filter: grayscale(75%) blur(0.5px); pointer-events: none; }
body.sidebar-open #openSidebar { pointer-events: none !important; visibility: hidden !important; }

/* ------------------------
   Polished UI elements (avatar & FAB)
   ------------------------ */
/* Floating Action Button used for opening the sidebar */
.ui-fab {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(180deg, #2563eb, #1d4ed8); /* blue gradient */
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 6px 18px rgba(29,78,216,0.35), 0 2px 6px rgba(0,0,0,0.18);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}
.ui-fab:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #2e6bf0, #1e50da);
    box-shadow: 0 10px 24px rgba(29,78,216,0.42), 0 3px 8px rgba(0,0,0,0.22);
}
.ui-fab:active {
    transform: translateY(0);
    filter: brightness(0.95);
}
.ui-fab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.35), 0 6px 18px rgba(29,78,216,0.35), 0 2px 6px rgba(0,0,0,0.18);
}
/* Ensure icon sizing inside FAB is consistent */
button#openSidebar.ui-fab svg { width: 18px; height: 18px; }

/* Avatar-style button used for the header logo/profile */
.ui-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ui-avatar:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.ui-avatar:active {
    transform: translateY(0);
}
.ui-avatar:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,102,255,0.25), 0 6px 18px rgba(0,0,0,0.10);
    transform: translateY(-1px) scale(1.02);
}
.ui-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    object-fit: cover;
}
/* Optional small variant if needed in future */
.ui-avatar--sm img { width: 36px; height: 36px; }

/* Header popout smoother easing */
#profilePopout {
    transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease-out !important;
    will-change: transform, opacity;
}
html.theme-dark #profilePopout { background: #0f172a !important; border-color: #334155 !important; color: #e5e7eb !important; }
html.theme-dark #profilePopout a { color: #e5e7eb !important; }
html.theme-dark #profilePopout .border-gray-100 { border-color: #334155 !important; }
html.theme-dark #profilePopout .text-gray-700 { color: #e5e7eb !important; }
html.theme-dark #profilePopout .hover\:bg-gray-50:hover { background: #1f2937 !important; }
html.theme-dark #profilePopout .text-red-600:hover { background: #3f1d1d !important; }

/* Reusable animation keyframes */
@keyframes pcw-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pcw-fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pcw-slide-in-left { from { transform: translateX(-14px); opacity: 0.01; } to { transform: translateX(0); opacity: 1; } }
@keyframes pcw-fade-out { from { opacity: 1; } to { opacity: 0; } }

/* Reusable animation utilities */
.animate-fade-in { animation: pcw-fade-in 220ms ease-out both; }
.animate-fade-up { animation: pcw-fade-up 220ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-slide-in-left { animation: pcw-slide-in-left 260ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-fade-out { animation: pcw-fade-out 180ms ease-in both; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
    #sidebar-backdrop { backdrop-filter: none; }
}
.open-sidebar-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}
/* Dashboard card dark-mode tweaks */
html.theme-dark .dashboard-card { background: var(--panel-bg) !important; border-color: var(--panel-border) !important; }
html.theme-dark .dashboard-card .text-gray-600 { color: var(--muted-text) !important; }
/* Dashboard icon tile dark variants */
html.theme-dark .card-icon.bg-teal-50 { background-color: #0b3a34 !important; color: #34d399 !important; }
html.theme-dark .card-icon.bg-blue-50 { background-color: #0b2546 !important; color: #60a5fa !important; }
html.theme-dark .card-icon.bg-green-50 { background-color: #0e2f22 !important; color: #86efac !important; }
html.theme-dark .card-icon.bg-indigo-50 { background-color: #191a4b !important; color: #a5b4fc !important; }
html.theme-dark .card-icon.bg-yellow-50 { background-color: #3a2f0a !important; color: #fde68a !important; }
html.theme-dark .card-icon.bg-red-50 { background-color: #3a0a0a !important; color: #fca5a5 !important; }
html.theme-dark .card-icon.bg-emerald-50 { background-color: #062e28 !important; color: #6ee7b7 !important; }
html.theme-dark .ui-avatar {
    background: #0b1220;
    border-color: #334155;
    box-shadow: 0 6px 18px rgba(0,0,0,0.55);
}
html.theme-dark .open-sidebar-btn { background: #2563eb; color: #e5e7eb; }
html.theme-dark .open-sidebar-btn:hover { background: #16a34a; }

/* Invoice overlay dark mode */
html.theme-dark #invoiceOverlay { color: var(--text-color) !important; }
html.theme-dark #invoiceOverlay .bg-white { background-color: var(--panel-bg) !important; }
html.theme-dark #invoiceOverlay .border-b,
html.theme-dark #invoiceOverlay .border-t,
html.theme-dark #invoiceOverlay .border { border-color: var(--panel-border) !important; }
html.theme-dark #invoiceOverlay #overlaySendMenu { background: var(--panel-bg) !important; border-color: var(--panel-border) !important; color: var(--text-color) !important; }
html.theme-dark #invoiceOverlay #overlaySendMenu .hover\:bg-gray-50:hover { background: #1f2937 !important; color: var(--text-color) !important; }
/* Darken the area around the iframe and make iframe transparent in dark mode */
html.theme-dark #invoiceOverlay .flex-1.bg-gray-50 { background-color: #0c1628 !important; }
html.theme-dark #invoiceOverlay #invoiceFrame { background: transparent !important; }

/* Client overlay dark mode */
html.theme-dark #clientOverlay { color: var(--text-color) !important; }
html.theme-dark #clientOverlay .bg-white { background-color: var(--panel-bg) !important; }
html.theme-dark #clientOverlay .border-b,
html.theme-dark #clientOverlay .border-t,
html.theme-dark #clientOverlay .border { border-color: var(--panel-border) !important; }
html.theme-dark #clientOverlay .flex-1.bg-gray-50 { background-color: #0c1628 !important; }
html.theme-dark #clientOverlay #clientFrame { background: transparent !important; }