/* ======= MATRIX SERVICEHUB — PREMIUM DESIGN SYSTEM ======= */
/* Brand: Navy #0c2d57 | Accent: #17a2b8 | Background: #f8fafc */

:root {
    --brand: #0c2d57;
    --brand-light: #1a3f6f;
    --brand-dark: #081e3d;
    --brand-bg: rgba(12,45,87,0.06);
    --brand-bg-hover: rgba(12,45,87,0.1);
    --accent: #17a2b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --surface: #ffffff;
    --bg: #f8fafc;
    --border: #f1f5f9;
    --border-2: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --radius: 0.75rem;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
}

/* === GLOBAL OVERRIDES === */
body {
    background: var(--bg) !important;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body.has-wizard-dialog { overflow:hidden; }

/* === SIDEBAR === */
.main-sidebar { background: var(--brand) !important; }
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active { background: rgba(255,255,255,0.15) !important; border-radius: 0.5rem; }
.sidebar-dark-primary .nav-sidebar .nav-link { color: rgba(255,255,255,0.7) !important; border-radius: 0.5rem; margin: 2px 8px; font-weight: 600; font-size: 0.85rem; }
.sidebar-dark-primary .nav-sidebar .nav-link:hover { background: rgba(255,255,255,0.1) !important; color: #fff !important; }
.sidebar-dark-primary .nav-sidebar .nav-link.active { color: #fff !important; font-weight: 700; }

/* Keep navigation from covering workflow content on compact desktops and tablets. */
@media (max-width: 1199.98px) {
    .main-sidebar { margin-left: 0 !important; transform: translateX(-250px); transition: transform .2s ease-in-out; }
    .sidebar-open .main-sidebar { transform: translateX(0); }
    .content-wrapper, .main-header, .main-footer { margin-left: 0 !important; }
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #0ea5e9 !important;
    outline-offset: 2px;
}

.sr-only-focusable:not(:focus) { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.skip-link { position:fixed; top:0.75rem; left:1rem; z-index:1200; padding:0.75rem 1rem; background:var(--brand); color:#fff; border-radius:0.5rem; transform:translateY(-200%); }
.skip-link:focus { transform:translateY(0); color:#fff; }
.brand-link { border-bottom: 1px solid rgba(255,255,255,0.08) !important; padding: 1rem 0.8rem !important; }
.nav-header { color: rgba(255,255,255,0.3) !important; font-size: 0.65rem !important; letter-spacing: 0.15em !important; font-weight: 800 !important; }

/* === NAVBAR === */
.main-header { border: none !important; box-shadow: var(--shadow-sm) !important; background: var(--surface) !important; }
.navbar-light .navbar-nav .nav-link { color: var(--text-secondary) !important; font-weight: 600; }

/* === BUTTONS === */
.btn-primary { background: var(--brand) !important; border-color: var(--brand) !important; font-weight: 700; border-radius: var(--radius); box-shadow: 0 4px 12px rgba(12,45,87,0.2); transition: all 0.2s; }
.btn-primary:hover { background: var(--brand-light) !important; border-color: var(--brand-light) !important; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(12,45,87,0.25); }
.btn-outline-primary { color: var(--brand) !important; border-color: var(--brand) !important; border-radius: var(--radius); font-weight: 600; }
.btn-outline-primary:hover { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }
.btn-outline-secondary { border-color: var(--border-2) !important; color: var(--text-secondary) !important; font-weight: 600; border-radius: var(--radius); }
.btn-outline-secondary:hover { background: var(--bg) !important; }

/* === CARDS === */
.card { border: 1px solid var(--border) !important; border-radius: 1rem !important; box-shadow: var(--shadow-sm) !important; transition: box-shadow 0.3s; overflow: hidden; }
.card:hover { box-shadow: var(--shadow) !important; }
.card-outline.card-primary { border-top: 3px solid var(--brand) !important; }
.card-header { background: var(--surface) !important; border-bottom: 1px solid var(--border) !important; padding: 1rem 1.25rem !important; }

/* === PREMIUM TABLE === */
.table { margin-bottom: 0; }
.table thead th {
    font-size: 0.65rem !important; font-weight: 900 !important; text-transform: uppercase !important;
    letter-spacing: 0.15em !important; color: var(--text-muted) !important; border-bottom: 2px solid var(--border) !important;
    padding: 1rem 1.25rem !important; white-space: nowrap; background: var(--bg) !important;
    border-top: none !important;
}
.table tbody td {
    padding: 1rem 1.25rem !important; vertical-align: middle !important;
    border-top: 1px solid var(--border) !important; font-size: 0.875rem;
}
.table-hover tbody tr:hover { background: var(--brand-bg) !important; }
.table-striped tbody tr:nth-of-type(odd) { background: transparent !important; }

/* === BADGES === */
.badge { font-weight: 700 !important; font-size: 0.7rem !important; padding: 0.35em 0.75em !important; border-radius: 2rem !important; letter-spacing: 0.03em; }
.badge-primary { background: var(--brand) !important; }
.badge-info { background: rgba(23,162,184,0.12) !important; color: #0e7490 !important; border: 1px solid rgba(23,162,184,0.2); }
.badge-success { background: rgba(16,185,129,0.12) !important; color: #059669 !important; border: 1px solid rgba(16,185,129,0.2); }
.badge-warning { background: rgba(245,158,11,0.12) !important; color: #b45309 !important; border: 1px solid rgba(245,158,11,0.2); }
.badge-danger { background: rgba(239,68,68,0.12) !important; color: #dc2626 !important; border: 1px solid rgba(239,68,68,0.2); }
.badge-secondary { background: rgba(100,116,139,0.1) !important; color: #475569 !important; }

/* === STAT CARDS === */
.small-box { border-radius: 1rem !important; border: none !important; box-shadow: var(--shadow) !important; transition: all 0.3s ease; overflow: hidden; }
.small-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg) !important; }
.small-box .inner h3 { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.02em; }
.small-box .inner p { font-weight: 600; opacity: 0.9; }
.bg-info { background: linear-gradient(135deg, #0c2d57 0%, #1a4a7a 100%) !important; }
.bg-success { background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important; }
.bg-warning { background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%) !important; }
.bg-danger { background: linear-gradient(135deg, #c53030 0%, #ef4444 100%) !important; }

/* === MODALS === */
.modal-header.bg-primary { background: var(--brand) !important; }
.modal-content { border-radius: 1rem !important; border: none !important; overflow: hidden; }
.modal-body-scroll { max-height: 70vh; overflow-y: auto; }

/* === TECH AVATAR (for tables) === */
.tech-avatar {
    width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.6rem; font-weight: 900; color: #fff; text-transform: uppercase; margin-right: 0.5rem;
}

/* === SECTION HEADERS === */
.content-header h1 { font-size: 1.35rem !important; font-weight: 800 !important; color: var(--text-primary); }

/* === SEARCH INPUT === */
.input-group-sm .form-control { border-radius: 2rem !important; border: 2px solid var(--border) !important; padding-left: 1rem; font-weight: 600; }
.input-group-sm .form-control:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgba(12,45,87,0.08) !important; }
.input-group-sm .input-group-text { border-radius: 2rem 0 0 2rem !important; border: 2px solid var(--border) !important; border-right: none !important; background: var(--bg) !important; }

/* === FOOTER === */
.main-footer { border-top: 1px solid var(--border) !important; background: var(--surface) !important; color: var(--text-muted); font-weight: 500; }

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }

/* === REMINDER CARDS === */
.reminder-overdue { border-left: 4px solid var(--danger); }
.reminder-soon { border-left: 4px solid var(--warning); }
.reminder-normal { border-left: 4px solid var(--brand); }

/* === LOW STOCK === */
.low-stock-row { background: rgba(239,68,68,0.04) !important; }

/* === SITE TOGGLE === */
.site-toggle .btn { border-radius: 2rem !important; font-weight: 700; font-size: 0.75rem; padding: 0.35rem 1rem; }
.site-toggle .btn-primary { box-shadow: 0 2px 8px rgba(12,45,87,0.25); }

/* === FORM CONTROLS === */
.form-control { 
    border-radius: var(--radius) !important; 
    border: 2px solid #cbd5e1 !important; 
    font-weight: 700 !important; 
    color: #000 !important; 
    background-color: #ffffff !important;
    height: 3rem !important;
    padding: 0.5rem 1rem !important;
    line-height: normal !important;
}
.form-control:focus { 
    border-color: var(--brand) !important; 
    box-shadow: 0 0 0 3px rgba(12,45,87,0.1) !important; 
}
.form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}
select.form-control {
    color: #000 !important;
    font-weight: 800 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
textarea.form-control { height:auto !important; min-height:6rem; resize:vertical; }

/* ======= WIZARD MODAL ======= */
.wizard-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px);
    z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.wizard-modal {
    background: #fff; border-radius: 1.5rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    width: 100%; max-width: 640px; max-height: 90vh; display: flex; flex-direction: column;
    overflow: hidden; animation: wizardIn 0.3s ease;
}
@keyframes wizardIn { from { opacity:0; transform: scale(0.95) translateY(20px); } to { opacity:1; transform: scale(1) translateY(0); } }

.wizard-header {
    padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex;
    align-items: center; justify-content: space-between;
}
.wizard-header h3 { font-size: 1.25rem; font-weight: 800; color: var(--text-primary); margin: 0; }
.wizard-header .step-info { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }
.wizard-close { background: none; border: none; padding: 0.5rem; cursor: pointer; color: var(--text-muted); border-radius: 0.75rem; transition: all 0.2s; }
.wizard-close:hover { background: var(--bg); color: var(--text-secondary); }

.wizard-stepper {
    padding: 1.5rem 2rem; background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
    border-bottom: 1px solid var(--border); overflow-x: auto;
}
.wizard-stepper-inner { display: flex; align-items: center; justify-content: space-between; min-width: 550px; }
.wizard-step-btn { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; background: none; border: none; cursor: default; transition: all 0.3s; padding: 0; }
.wizard-step-btn.clickable { cursor: pointer; }
.wizard-step-btn.disabled { opacity: 0.5; cursor: not-allowed; }
.wizard-step-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.875rem; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; transition: all 0.5s; }
.wizard-step-icon.completed { background: var(--success); color: #fff; box-shadow: 0 4px 12px rgba(16,185,129,0.2); }
.wizard-step-icon.active { background: var(--brand); color: #fff; box-shadow: 0 6px 20px rgba(12,45,87,0.3); transform: scale(1.1); }
.wizard-step-icon.pending { background: var(--surface); border: 2px solid var(--border-2); color: var(--text-muted); }
.wizard-step-title { font-size: 0.6rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.15em; }
.wizard-step-title.active-title { color: var(--text-primary); }
.wizard-step-title.muted-title { color: var(--text-muted); }
.wizard-step-desc { font-size: 0.5rem; color: var(--text-muted); font-weight: 500; }
.wizard-step-connector { flex: 1; padding: 0 1rem; }
.wizard-step-connector-bar { height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.wizard-step-connector-fill { height: 100%; background: var(--brand); transition: width 0.5s ease; }

.wizard-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.wizard-body { min-height:0; }
.wizard-section { margin-bottom: 2rem; }
.wizard-section-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.wizard-section-icon { width: 2rem; height: 2rem; border-radius: 0.5rem; background: var(--brand-bg); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.wizard-section-title { font-size: 0.8rem; font-weight: 900; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.15em; }
.wizard-label { font-size: 0.65rem; font-weight: 950; color: var(--brand); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.6rem; display: block; opacity: 0.8; }
.wizard-input { 
    width: 100%; 
    height: 3.25rem !important;
    background: #ffffff !important; 
    border: 2px solid #cbd5e1 !important; 
    border-radius: 1rem; 
    font-size: 0.95rem; 
    font-weight: 800 !important; 
    color: #000000 !important; 
    opacity: 1 !important;
    padding: 0 1.25rem !important;
    line-height: normal !important;
    transition: all 0.2s; 
    outline: none; 
}
.wizard-input:focus { background: #ffffff !important; border-color: var(--brand) !important; box-shadow: 0 0 0 4px rgba(12,45,87,0.1); }
.wizard-input::placeholder { color: #94a3b8 !important; font-weight: 500; }
.wizard-select { 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='%23000' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; color: #000 !important; }
textarea.wizard-input { height: auto !important; min-height: 80px; padding: 0.75rem 1.25rem !important; resize: none; border-radius: 1.25rem; }

.wizard-contact-card { background: rgba(248,250,252,0.5); border-radius: 1.5rem; padding: 1.5rem; border: 2px solid rgba(241,245,249,0.5); box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
.wizard-contact-dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--brand); display: inline-block; margin-right: 0.5rem; }
.wizard-tech-card { background: rgba(248,250,252,0.5); border: 2px solid var(--border); border-radius: 1.75rem; padding: 1.5rem; }
.wizard-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; background: var(--surface); border-radius: 1.25rem; border: 2px solid var(--border); box-shadow: var(--shadow-sm); margin-top: 1.25rem; }
.wizard-toggle-label-main { font-size: 0.8rem; font-weight: 900; color: var(--text-primary); text-transform: uppercase; }
.wizard-toggle-label-sub { font-size: 0.6rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; }
.wizard-part-item { display: flex; align-items: center; justify-content: space-between; background: var(--surface); padding: 0.75rem 1rem; border-radius: 0.75rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-top: 0.5rem; }
.wizard-part-name { font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); }
.wizard-part-brand { font-size: 0.6rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.wizard-part-qty { font-size: 0.7rem; font-weight: 900; color: var(--brand); background: var(--brand-bg); padding: 0.25rem 0.5rem; border-radius: 0.5rem; }
.wizard-cost-card { background: rgba(248,250,252,0.5); border: 2px solid var(--border); border-radius: 1.75rem; padding: 1.5rem; }
.wizard-cost-summary { background: var(--surface); border-radius: 1.25rem; border: 2px solid var(--border); padding: 1.5rem; box-shadow: var(--shadow-sm); margin-top: 1.5rem; }
.wizard-cost-label { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.15em; }
.wizard-cost-value { font-size: 1.125rem; font-weight: 900; color: var(--text-primary); }
.wizard-cost-total-label { font-size: 0.7rem; font-weight: 900; color: var(--brand); text-transform: uppercase; letter-spacing: 0.15em; }
.wizard-cost-total-sub { font-size: 0.6rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; }
.wizard-cost-total { font-size: 2.5rem; font-weight: 900; color: var(--brand); letter-spacing: -0.05em; }
.wizard-review-card { background: rgba(248,250,252,0.5); border: 2px solid var(--border); border-radius: 1.25rem; padding: 1.25rem; }
.wizard-review-title { font-size: 0.6rem; font-weight: 900; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.75rem; }
.wizard-review-row { display: flex; justify-content: space-between; font-size: 0.75rem; margin-bottom: 0.35rem; }
.wizard-review-label { color: var(--text-secondary); }
.wizard-review-value { font-weight: 700; color: var(--text-secondary); }
.wizard-total-card { background: var(--brand-bg); border: 2px solid rgba(12,45,87,0.08); border-radius: 1.5rem; padding: 1.5rem; display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; }
.wizard-verify-banner { padding: 1.25rem; background: var(--bg); border: 2px dashed var(--border-2); border-radius: 1.25rem; text-align: center; margin-top: 1.25rem; }
.wizard-verify-text { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.15em; }

.wizard-footer { padding: 1.5rem 2rem; border-top: 1px solid var(--border); background: rgba(248,250,252,0.5); display: flex; gap: 1rem; }
.wizard-btn-back { padding: 0.875rem 1.5rem; background: var(--surface); border: 2px solid var(--border-2); color: var(--text-secondary); border-radius: 1rem; font-weight: 900; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 0.5rem; }
.wizard-btn-back:hover { background: var(--bg); border-color: #cbd5e1; }
.wizard-btn-continue { flex: 1; padding: 0.875rem 1.5rem; background: var(--brand); color: #fff; border: none; border-radius: 1rem; font-weight: 900; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: all 0.2s; box-shadow: 0 8px 24px rgba(12,45,87,0.2); }
.wizard-btn-continue:hover { background: var(--brand-dark); transform: translateY(-1px); }
.wizard-btn-continue:disabled { background: var(--border-2); color: var(--text-muted); cursor: not-allowed; box-shadow: none; transform: none; }
.wizard-btn-finalize { flex: 1; padding: 0.875rem 1.5rem; background: var(--success); color: #fff; border: none; border-radius: 1rem; font-weight: 900; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: all 0.2s; box-shadow: 0 8px 24px rgba(16,185,129,0.2); }
.wizard-btn-finalize:hover { background: #059669; transform: translateY(-1px); }
.wizard-btn-cancel { padding: 0.875rem 1.5rem; background: var(--surface); border: 2px solid var(--border-2); color: var(--text-muted); border-radius: 1rem; font-weight: 900; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; cursor: pointer; transition: all 0.2s; }
.wizard-btn-cancel:hover { background: var(--bg); color: var(--text-secondary); }
.wizard-new-client { font-size: 0.6rem; font-weight: 900; color: var(--brand); display: flex; align-items: center; gap: 0.375rem; background: none; border: none; cursor: pointer; padding: 0.375rem 0.75rem; border-radius: 0.75rem; transition: all 0.2s; }
.wizard-new-client:hover { background: var(--brand-bg); }

/* === LOADING SPINNER === */
.spinner-border { color: var(--brand) !important; }

@media screen and (max-width: 1199.98px) {
    .sidebar-open #sidebar-overlay { display:block; }
}
@media screen and (max-width: 575.98px) {
    .content-header-row > .d-flex { flex-wrap:wrap; width:100%; }
    .search-wrap { flex:1; min-width:0; }
    .search-wrap .search-input { width:100%; min-width:0; }
    .wizard-overlay { padding:0.5rem; }
    .wizard-modal { max-height:calc(100dvh - 1rem); border-radius:1rem; }
    .wizard-header, .wizard-body, .wizard-footer, .wizard-stepper { padding:1rem; }
    .wizard-footer { flex-wrap:wrap; gap:0.5rem; }
    .wizard-footer > button { min-height:44px; }
    .wizard-btn-continue, .wizard-btn-finalize { min-width:50%; }
    .form-control, .wizard-input, .search-input { font-size:1rem !important; }
    .pager-btn, .icon-btn, .wizard-close { min-width:44px; min-height:44px; }
    .wizard-total-card { flex-wrap:wrap; gap:1rem; }
    .wizard-cost-total { font-size:2rem; overflow-wrap:anywhere; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* ======= PRINT STYLES (Phase 4) ======= */
@media print {
    /* Hide navigational and interactive elements */
    .main-sidebar, .main-header, .navbar, .btn, .nav-pills, .wizard-overlay:not(.print-mode), .wizard-close, .toast { 
        display: none !important; 
    }
    
    /* Document Setup */
    @page {
        margin: 1.5cm;
        size: auto;
    }
    body { 
        background: #fff !important; 
        color: #000 !important; 
        font-family: 'Times New Roman', Times, serif, 'Inter';
        font-size: 12pt;
    }
    
    /* Shared Print Layouts */
    .print-container {
        width: 100%;
        margin: 0 auto;
    }
    
    /* Header layout for Proforma / Job Card / DO */
    .print-header { display: flex; justify-content: space-between; border-bottom: 2px solid #000; padding-bottom: 15px; margin-bottom: 20px; }
    .print-brand { font-size: 24pt; font-weight: 900; line-height: 1; margin: 0; }
    .print-brand-sub { font-size: 10pt; font-weight: bold; letter-spacing: 0.1em; text-transform: uppercase; }
    .print-company-info { text-align: right; font-size: 9pt; color: #333; }
    
    /* Titles & Badges */
    .print-doc-title { font-size: 16pt; font-weight: bold; letter-spacing: 0.05em; margin: 0; text-transform: uppercase; }
    .print-doc-number { font-size: 14pt; color: #555; }
    
    /* Grid & Fields */
    .print-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 15px; margin-bottom: 15px; }
    .print-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .print-field { margin-bottom: 8px; }
    .print-label { font-size: 8pt; font-weight: bold; text-transform: uppercase; color: #666; margin-bottom: 2px; }
    .print-value { font-size: 11pt; font-weight: normal; border-bottom: 1px dotted #ccc; padding-bottom: 2px; }
    
    /* Tables */
    .print-table { width: 100%; border-collapse: collapse; margin-top: 20px; margin-bottom: 20px; }
    .print-table th { background-color: #f2f2f2 !important; border: 1px solid #000; padding: 8px; text-align: left; font-size: 9pt; text-transform: uppercase; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .print-table td { border: 1px solid #000; padding: 8px; font-size: 10pt; }
    .print-table .right { text-align: right; }
    
    /* Totals section */
    .print-totals { float: right; width: 300px; margin-top: 15px; }
    .print-totals-row { display: flex; justify-content: space-between; font-size: 11pt; margin-bottom: 5px; }
    .print-totals-row.grand { font-size: 14pt; font-weight: bold; border-top: 2px solid #000; padding-top: 5px; }
    
    /* Signatures */
    .print-footer { display: flex; justify-content: space-between; margin-top: 50px; page-break-inside: avoid; }
    .print-sig-box { width: 40%; }
    .print-sig-line { border-top: 1px solid #000; margin-top: 40px; padding-top: 5px; font-size: 9pt; text-align: center; }
    
    /* Generic Layout Overrides */
    .card { border: none !important; box-shadow: none !important; }
    .wizard-modal { box-shadow: none !important; overflow: visible !important; position: static !important; width: 100% !important; max-width: none !important; }
    
    /* Print Utility */
    .page-break { page-break-after: always; }
}
