/* ============================================
   PANDORA - Mission Control Dark Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-deep: #0a0e17;
    --bg-surface: #111827;
    --bg-elevated: #1a2332;
    --bg-hover: #1e2d3d;
    --border: #1e2d3d;
    --border-light: #2a3a4d;
    --accent: #d4a336;
    --accent-glow: rgba(212, 163, 54, 0.15);
    --accent-dim: rgba(212, 163, 54, 0.6);
    --purple: #b8860b;
    --purple-glow: rgba(184, 134, 11, 0.15);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --sidebar-width: 240px;
    --topbar-height: 56px;
    --radius: 8px;
    --radius-sm: 4px;
    --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #e8bc4a; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   LAYOUT
   ============================================ */

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: width var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
    gap: 6px;
}

.sidebar-logo {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-tagline {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-style: italic;
    line-height: 1.2;
}

.brand-tagline-login {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
    font-style: italic;
    letter-spacing: 0.5px;
}

.sidebar-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-brand .brand-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav { padding: 12px 0; flex: 1; }

.nav-section {
    padding: 8px 16px 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-secondary);
    gap: 12px;
    transition: all var(--transition);
    border-left: 3px solid transparent;
    cursor: pointer;
    font-size: 13px;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.nav-item.active {
    background: var(--accent-glow);
    color: var(--accent);
    border-left-color: var(--accent);
}

.nav-item .nav-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

/* --- Top Bar --- */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 90;
    gap: 16px;
}

.topbar-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.topbar-search input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px 8px 36px;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition);
}

.topbar-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.topbar-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.topbar-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 16px;
    position: relative;
}

.topbar-btn:hover {
    background: var(--bg-hover);
    color: var(--text);
    border-color: var(--border-light);
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    border: 2px solid var(--bg-surface);
}

.topbar-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
}

.user-menu:hover { background: var(--bg-hover); }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: #fff;
}

.user-info { line-height: 1.3; }
.user-info .user-name { font-size: 13px; font-weight: 500; }
.user-info .user-role { font-size: 11px; color: var(--text-muted); }

/* --- Topbar Logo --- */
.topbar-logo {
    display: flex;
    align-items: center;
    padding: 0 8px;
}
.topbar-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}

/* --- User Dropdown --- */
.user-dropdown { position: relative; }

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 200;
    overflow: hidden;
}
.user-dropdown-menu.open { display: block; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--text); }
.dropdown-item-danger:hover { background: rgba(239,68,68,0.1); color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* --- Password strength hint --- */
.pw-strength {
    margin-top: 6px;
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
}

/* --- Input with inline button --- */
.input-with-btn {
    display: flex;
    gap: 8px;
    align-items: center;
}
.input-with-btn .form-control { flex: 1; }

/* --- Alert info --- */
.alert-info {
    background: rgba(212,163,54,0.1);
    border: 1px solid rgba(212,163,54,0.3);
    color: var(--accent);
    border-radius: var(--radius);
    padding: 12px 16px;
}

/* --- justify-end utility --- */
.justify-end { justify-content: flex-end; }

/* --- Main Content --- */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    padding: 24px;
    flex: 1;
    min-height: calc(100vh - var(--topbar-height));
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb .sep { color: var(--text-muted); }

/* ============================================
   COMPONENTS
   ============================================ */

/* --- Cards --- */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
    border-color: var(--border-light);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Stat Cards --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: var(--accent-dim);
    box-shadow: 0 0 20px var(--accent-glow);
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.stat-card .stat-icon.cyan { background: var(--accent-glow); color: var(--accent); }
.stat-card .stat-icon.purple { background: var(--purple-glow); color: var(--purple); }
.stat-card .stat-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.stat-card .stat-icon.orange { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.stat-card .stat-icon.red { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.03));
    pointer-events: none;
}

/* --- Tables --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table thead th {
    background: var(--bg-elevated);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background var(--transition);
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

/* --- Badges --- */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-active { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-inactive { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-info { background: var(--accent-glow); color: var(--accent); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent);
    color: #0a0e17;
    font-weight: 600;
}

.btn-primary:hover {
    background: #e8bc4a;
    box-shadow: 0 0 16px var(--accent-glow);
    color: #0a0e17;
}

.btn-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    color: var(--text);
}

.btn-danger {
    background: transparent;
    border-color: var(--danger);
    color: var(--danger);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-sm { padding: 5px 10px; font-size: 12px; }

/* --- Forms --- */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control { resize: vertical; min-height: 100px; }

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.form-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
}

/* --- Alerts --- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.alert-info {
    background: var(--accent-glow);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--accent);
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.login-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-brand {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo {
    max-height: 180px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto 16px;
    filter: drop-shadow(0 0 18px rgba(212, 163, 54, 0.35));
}

.login-brand .brand-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    color: #fff;
    margin-bottom: 12px;
}

.login-brand h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-brand p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

.login-card .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 14px;
    margin-top: 8px;
}

.login-footer {
    text-align: center;
    margin-top: 16px;
}

.login-footer a {
    font-size: 13px;
    color: var(--text-muted);
}

.login-footer a:hover { color: var(--accent); }

/* --- Notifications --- */
.notification-item {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.notification-item:last-child { border-bottom: none; }
.notification-item:hover { background: var(--bg-hover); }
.notification-item.unread { background: rgba(212,163,54,0.05); border-left: 3px solid var(--accent); }
.notification-icon { font-size: 20px; color: var(--accent); flex-shrink: 0; padding-top: 2px; }
.notification-title { font-weight: 600; color: var(--text); margin-bottom: 2px; }
.notification-message { color: var(--text-secondary); font-size: 13px; }
.notification-time { font-size: 11px; margin-top: 4px; }

/* --- Overdue row --- */
.row-overdue td { background: rgba(239,68,68,0.05); }

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { width: 60px; }
    .sidebar .brand-text,
    .sidebar .nav-item span,
    .sidebar .nav-section { display: none; }
    .sidebar .nav-item { justify-content: center; padding: 12px; }
    .topbar { left: 60px; }
    .main-content { margin-left: 60px; }
    .stats-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none; }
.justify-end { justify-content: flex-end; }

/* ============================================
   SCOPE & QUOTE
   ============================================ */

.line-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.line-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.line-item-row:last-child {
    border-bottom: none;
}

.form-control-sm {
    padding: 5px 8px;
    font-size: 12px;
}

.btn-icon-danger {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius);
    font-size: 12px;
    line-height: 1;
    transition: color var(--transition), background var(--transition);
}

.btn-icon-danger:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.quote-summary-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    margin-top: 8px;
}

.quote-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.quote-summary-row:last-child {
    border-bottom: none;
}

.quote-summary-total {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    padding-top: 10px;
}

/* Detail view labels */
.detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 14px;
    color: var(--text);
}

/* ============================================
   PRINT STYLES
   ============================================ */

@page { size: A4; margin: 10mm; }

@media print {
    * { color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
    body { font-size: 9pt !important; margin: 0; padding: 0; background: #fff !important; }

    /* Hide UI chrome */
    .sidebar, .topbar, .breadcrumb, .notif-badge, .alert, .btn,
    form[style*="display:inline"], .stats-grid, .print-hide { display: none !important; }

    /* Layout reset */
    .main-content { margin-left: 0 !important; padding: 0 !important; background: #fff !important; }
    .page-header { display: block !important; padding: 0 !important; margin-bottom: 10px !important; }
    .page-header h1 { font-size: 14pt !important; margin: 0 !important; }
    .page-header > div:last-child { display: none !important; }

    /* Single column */
    [style*="grid-template-columns"] { display: block !important; }
    [style*="position:sticky"] { position: static !important; }

    /* Cards */
    .card { border: 1px solid #ccc !important; padding: 6px 8px !important; margin-bottom: 6px !important; background: #fff !important; }
    .card-section-title { font-size: 10pt !important; font-weight: bold !important; border-bottom: 1px solid #999; padding-bottom: 3px; margin-bottom: 4px; }

    /* Tables — auto layout, compact */
    .data-table { border-collapse: collapse !important; width: 100% !important; }
    .data-table th { border: 1px solid #999 !important; padding: 3px 5px !important; font-size: 7pt !important; background: #f0f0f0 !important; white-space: nowrap !important; }
    .data-table td { border: 1px solid #ccc !important; padding: 3px 5px !important; font-size: 8pt !important; }
    .data-table tfoot td { border-top: 2px solid #000 !important; font-weight: bold !important; font-size: 8pt !important; }

    /* Quote details grid — keep 2 cols */
    .card .grid-2 { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 6px !important; }

    /* Badges */
    .badge-status { border: 1px solid #999 !important; padding: 0 4px !important; font-size: 7pt !important; }

    /* Quote summary */
    .quote-summary-box { border: 1px solid #ccc !important; padding: 6px !important; background: #fff !important; }
    .quote-summary-row { border-color: #ccc !important; font-size: 8pt !important; display: flex !important; justify-content: space-between !important; padding: 2px 0 !important; }
    .quote-summary-row span { color: #000 !important; }
    .quote-summary-total { font-size: 9pt !important; font-weight: bold !important; }

    /* Detail labels */
    .detail-label { color: #555 !important; font-size: 8pt !important; }
    .detail-value { color: #000 !important; font-size: 9pt !important; }

    a { color: #000 !important; text-decoration: none !important; }
    .text-accent, .text-success, .text-warning, .text-danger { color: #000 !important; }
    .text-muted { color: #555 !important; }
    .text-right { text-align: right !important; }
}
