/* ============================================================
   assets/style.css  -  DiS Job Card System
   ============================================================ */

@import url('https://cdn.jsdelivr.net/npm/remixicon@4.2.0/fonts/remixicon.css');

/* ---- Reset / base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
    color: #222;
}

/* ---- Layout ---------------------------------------------- */
.container {
    max-width: 1100px;
    margin: 18px auto;
    padding: 14px;
}

.card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
    background: #fff;
}

/* ---- Grid ------------------------------------------------- */
.grid { display: grid; gap: 10px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
    .grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .grid.cols-4,
    .grid.cols-3,
    .grid.cols-2 { grid-template-columns: 1fr; }
}

/* ---- Typography ------------------------------------------ */
h2, h3, h4 { margin: 0 0 8px; }
label {
    font-size: 12px;
    color: #444;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}
.small  { font-size: 12px; color: #666; }
.inline { display: flex; align-items: center; gap: 8px; }

/* ---- Form controls --------------------------------------- */
input,
select,
textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #222;
    margin-top: 0;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #555;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

input[readonly] {
    background: #f0f0f0;
    color: #666;
    cursor: not-allowed;
}

textarea { min-height: 90px; resize: vertical; }

/* ---- Tables ---------------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    font-size: 13px;
    vertical-align: middle;
}

th {
    background: #f7f7f7;
    text-align: left;
    font-size: 12px;
    color: #444;
}

/* Inputs inside table cells - remove extra margin/radius for tidiness */
table input,
table select,
table textarea {
    border: none;
    border-radius: 0;
    padding: 6px 8px;
    background: transparent;
}

table input:focus,
table select:focus,
table textarea:focus {
    background: #fffbe6;
    outline: 1px solid #bbb;
    border-radius: 4px;
}

/* ---- Buttons --------------------------------------------- */
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 9px 14px;
    border-radius: 7px;
    border: 1px solid #aaa;
    background: #f3f3f3;
    cursor: pointer;
    text-decoration: none;
    color: #222;
    font-size: 13px;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
}

.btn:hover  { background: #e8e8e8; }
.btn.primary { background: #111; color: #fff; border-color: #111; }
.btn.primary:hover { background: #333; }
.btn.danger  { background: #b00020; color: #fff; border-color: #900018; }
.btn.danger:hover  { background: #900018; }

/* ---- Flash messages -------------------------------------- */
.flash {
    padding: 12px 16px;
    border-radius: 7px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
}

.flash-success {
    background: #e6f9ed;
    border: 1px solid #5cb85c;
    color: #2d6a2d;
}

.flash-error {
    background: #fff0f0;
    border: 1px solid #d9534f;
    color: #8a1f1f;
}

.flash-info {
    background: #eaf4ff;
    border: 1px solid #5bc0de;
    color: #1c5a7a;
}

/* ---- Status badges --------------------------------------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.badge-open       { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.badge-inprogress { background: #cce5ff; color: #004085; border: 1px solid #5bc0de; }
.badge-closed     { background: #d4edda; color: #155724; border: 1px solid #5cb85c; }

/* Calibration due-status badges */
.cal-overdue { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; font-weight: 700; }
.cal-due30   { background: #fde8d0; color: #7d3900; border: 1px solid #f6c49a; }
.cal-due90   { background: #fff8cc; color: #7a6200; border: 1px solid #ffe066; }
.cal-ok      { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* ---- Signature lines (view/print) ----------------------- */
.sig-box {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    min-height: 70px;
}
.sig-line {
    border-bottom: 1px solid #555;
    height: 36px;
    margin: 6px 0;
}

/* ---- Login page ------------------------------------------ */
.login-body {
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.login-wrap {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    margin-bottom: 24px;
    color: #fff;
}

.login-company {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1;
}

.login-tagline {
    font-size: 11px;
    letter-spacing: 2px;
    opacity: 0.6;
    margin-top: 6px;
}

.login-card {
    background: #fff;
    border-radius: 14px;
    padding: 30px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.login-title {
    margin: 0 0 20px;
    font-size: 20px;
    color: #111;
    text-align: left;
}

.login-field {
    text-align: left;
    margin-bottom: 16px;
}

.login-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    margin-bottom: 6px;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 44px;
}

.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    width: auto;
    padding: 0;
    color: #777;
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-top: 6px;
}

.login-footer {
    margin-top: 18px;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 1px;
}

/* ---- Navbar ---------------------------------------------- */
/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
    background: #1a1a2e;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 900;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Brand */
.nav-brand {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -.2px;
    margin-right: 28px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.nav-brand-icon {
    width: 28px; height: 28px;
    background: rgba(255,255,255,.15);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px; font-weight: 900; letter-spacing: 0;
}
.nav-brand-full { display: inline; }
.nav-brand-short { display: none; }

/* Nav links */
.nav-links {
    display: flex;
    gap: 2px;
    flex: 1;
    align-items: center;
}

.nav-link {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .12s, color .12s;
    display: flex; align-items: center; gap: 5px;
}
.nav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-link.active { background: rgba(255,255,255,.15); color: #fff; font-weight: 600; }

/* Dropdown group */
.nav-group {
    position: relative;
}
.nav-group-btn {
    color: rgba(255,255,255,.75);
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex; align-items: center; gap: 5px;
    transition: background .12s, color .12s;
    white-space: nowrap;
}
.nav-group-btn:hover,
.nav-group.open .nav-group-btn { background: rgba(255,255,255,.1); color: #fff; }
.nav-group-btn .chevron {
    font-size: 10px; opacity: .5; margin-left: 1px;
    transition: transform .15s;
}
.nav-group.open .nav-group-btn .chevron { transform: rotate(180deg); }

.nav-dropdown {
    display: none;
    position: fixed;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,.1);
    min-width: 180px;
    z-index: 9999;
    overflow: hidden;
    padding: 4px;
}
.nav-group.open .nav-dropdown { display: block; }

.nav-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    font-size: 13px; color: #333; font-weight: 500;
    text-decoration: none;
    border-radius: 7px;
    transition: background .1s;
}
.nav-dropdown a:hover { background: #f5f7fa; color: #1a1a2e; }
.nav-dropdown a i { font-size: 15px; color: #888; }
.nav-dropdown a.active { color: #2d6a9f; background: #eef4fb; }
.nav-dropdown a.active i { color: #2d6a9f; }
.nav-dropdown-divider { border-top: 1px solid #f0f0f0; margin: 4px 0; }

/* User area */
.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}
.nav-user-info {
    display: flex; flex-direction: column; align-items: flex-end;
    line-height: 1.2;
}
.nav-username { font-size: 12px; font-weight: 600; color: #fff; }
.nav-user-role { font-size: 10px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .4px; }

.nav-signout {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 6px;
    font-size: 12px; font-weight: 600; color: #ff6b6b;
    text-decoration: none; border: 1px solid rgba(255,107,107,.35);
    transition: background .12s, color .12s;
}
.nav-signout:hover { background: rgba(255,107,107,.15); color: #ff4444; border-color: rgba(255,68,68,.5); }

/* Hamburger */
.nav-hamburger {
    display: none;
    background: none; border: none;
    color: rgba(255,255,255,.85); font-size: 20px;
    cursor: pointer; padding: 6px; width: auto;
}

@media (max-width: 720px) {
    .nav-hamburger { display: block; }
    .nav-brand-full { display: none; }
    .nav-brand-short { display: inline; }
    .nav-user-info  { display: none; }
    .nav-signout    { display: none; }
    .nav-links      { display: none; } /* desktop links hidden; mobile uses overlay */
}

/* ── Mobile full-screen overlay ─────────────────────────── */
.mob-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: #1a1a2e;
    z-index: 9998;
    flex-direction: column;
    overflow-y: auto;
}
.mob-menu.open { display: flex; }

.mob-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.mob-menu-name  { font-size: 17px; font-weight: 700; color: #fff; }
.mob-menu-role  { font-size: 11px; color: rgba(255,255,255,.45);
                  text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.mob-menu-close {
    background: rgba(255,255,255,.08); border: none;
    color: #fff; font-size: 22px;
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    transition: background .15s;
}
.mob-menu-close:hover { background: rgba(255,255,255,.15); }

.mob-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px 20px 8px;
    flex: 1;
}

.mob-item {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px;
    padding: 22px 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    text-decoration: none;
    color: rgba(255,255,255,.75);
    font-size: 13px; font-weight: 600;
    transition: background .15s, color .15s, transform .1s;
    min-height: 90px;
    text-align: center;
}
.mob-item i {
    font-size: 28px;
    color: rgba(255,255,255,.6);
    transition: color .15s;
}
.mob-item:hover,
.mob-item:active {
    background: rgba(255,255,255,.12);
    color: #fff; transform: scale(.97);
}
.mob-item:hover i,
.mob-item:active i { color: #fff; }

.mob-item.mob-active {
    background: rgba(45,106,159,.4);
    border-color: rgba(45,106,159,.6);
    color: #fff;
}
.mob-item.mob-active i { color: #7eb8f7; }

.mob-menu-footer {
    padding: 16px 20px 32px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.mob-signout {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px;
    background: rgba(220,50,50,.15);
    border: 1px solid rgba(220,50,50,.3);
    border-radius: 12px;
    color: #ff6b6b; font-size: 15px; font-weight: 700;
    text-decoration: none;
    transition: background .15s;
}
.mob-signout:hover { background: rgba(220,50,50,.25); }
.mob-signout i     { font-size: 18px; }

.mob-group-label {
    grid-column: 1 / -1;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255,255,255,.3);
    padding: 6px 4px 2px;
    border-top: 1px solid rgba(255,255,255,.07);
    margin-top: 4px;
}

.mob-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9997;
}
.mob-backdrop.open { display: block; }

/* ---- Role chips ------------------------------------------ */
.role-chip {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.role-superadmin { background: #2c1a6b; color: #c7b8ff; }
.role-quality     { background: #0c3b5e; color: #7ec8f0; }
.role-store       { background: #1a4d2e; color: #7fe0a2; }
.role-hr          { background: #5c1a3a; color: #f0a8cc; }

/* ---- Dashboard ------------------------------------------- */
.dash-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 14px 0 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px 18px;
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    color: #111;
}

.stat-label {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.stat-warning { border-top: 4px solid #ffc107; }
.stat-warning .stat-value { color: #856404; }

.stat-info    { border-top: 4px solid #17a2b8; }
.stat-info    .stat-value { color: #0c5460; }

.stat-success { border-top: 4px solid #28a745; }
.stat-success .stat-value { color: #155724; }

.stat-danger  { border-top: 4px solid #dc3545; }
.stat-danger  .stat-value { color: #721c24; }

.stat-neutral { border-top: 4px solid #6f42c1; }
.stat-neutral .stat-value { color: #3d1f8a; }

/* Mini stat panels inside role cards */
.stat-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.stat-mini {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px 12px;
}

.stat-mini-value { font-size: 26px; font-weight: 800; line-height: 1; }
.stat-mini-label { font-size: 11px; color: #666; margin-top: 4px; }

/* Quick action buttons */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #222;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: background 0.15s;
}

.quick-btn:hover { background: #ebebeb; }
.quick-icon { font-size: 20px; line-height: 1; }

/* ---- Pagination ------------------------------------------ */
.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-block;
    padding: 6px 11px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    color: #333;
    background: #fff;
    line-height: 1.2;
    white-space: nowrap;
}

.page-btn:hover         { background: #f0f0f0; border-color: #aaa; }
.page-btn.active        { background: #111; color: #fff; border-color: #111; font-weight: 700; }
.page-btn.disabled      { color: #bbb; cursor: default; pointer-events: none; }

/* ---- Job list table -------------------------------------- */
.job-list-table { table-layout: auto; width: 100%; }

.job-list-table th,
.job-list-table td {
    padding: 9px 12px;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Column widths */
.col-jobno     { white-space: nowrap; }
.col-client    { white-space: nowrap; text-align: center; }
.col-desc      { min-width: 200px; white-space: normal !important; }
.col-priority  { white-space: nowrap; text-align: center; }
.col-status    { white-space: nowrap; text-align: center; }
.col-actions   { white-space: nowrap; }

/* Icon-only buttons */
.btn.btn-icon {
    padding: 5px 8px;
    font-size: 15px;
    line-height: 1;
    min-width: 0;
    border-radius: 6px;
}

/* Single-line short description in list */
.col-desc { font-size: 13px; color: #222; }

/* ---- Mobile card layout for job list --------------------- */
@media (max-width: 640px) {
    /* Hide table entirely — rendered as compact list rows instead */
    .job-list-table { display: none; }

    /* Compact list row */
    .mob-job-list { display: block; }
}

/* Desktop: hide mobile list */
@media (min-width: 641px) {
    .mob-job-list { display: none; }
}

/* ── Mobile job row ─────────────────────────────────────── */
.mob-job-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: background .1s;
}
.mob-job-row:first-child { border-radius: 8px 8px 0 0; }
.mob-job-row:last-child  { border-bottom: none; border-radius: 0 0 8px 8px; }
.mob-job-row:active { background: #f5f7fa; }

/* Left accent bar — colour = status */
.mob-job-row::before {
    content: '';
    flex-shrink: 0;
    width: 3px;
    height: 36px;
    border-radius: 2px;
    background: #ccc;
}
.mob-job-row.status-open::before        { background: #f0c000; }
.mob-job-row.status-in-progress::before { background: #2d6a9f; }
.mob-job-row.status-closed::before      { background: #28a745; }
.mob-job-row.status-urgent::before      { background: #d63031; }

.mob-job-body { flex: 1; min-width: 0; }

.mob-job-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.mob-job-no {
    font-size: 12px;
    font-weight: 700;
    font-family: monospace;
    color: #1a1a2e;
    white-space: nowrap;
}
.mob-job-client {
    font-size: 10px;
    font-weight: 700;
    background: #1a1a2e;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: .5px;
    white-space: nowrap;
}
.mob-job-badges { display: flex; gap: 4px; margin-left: auto; flex-shrink: 0; }

.mob-job-desc {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mob-job-meta {
    font-size: 11px;
    color: #aaa;
    margin-top: 1px;
}

.mob-job-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Priority badges */
.badge-urgent { background: #fff0e0; color: #a84800; border: 1px solid #f5a623; }
.badge-normal { background: #f0f0f0; color: #555;    border: 1px solid #ccc; }

/* Smaller action buttons in the list */
.btn.btn-sm { padding: 5px 10px; font-size: 12px; }

/* ---- Modal overlay --------------------------------------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    width: 100%;
    max-width: 820px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 18px;
    border-bottom: 1px solid #e0e0e0;
    background: #f9f9f9;
    flex-shrink: 0;
}

.modal-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
}
.modal-close:hover { color: #000; }

.modal-body {
    padding: 14px 18px;
    overflow-y: auto;
    flex: 1;
}

.modal-body table { margin-top: 0; }
.modal-body th, .modal-body td { padding: 7px 10px; font-size: 12px; }

.modal-loading { text-align: center; color: #888; padding: 30px 0; font-size: 14px; }
.modal-error   { color: #b00; font-size: 13px; padding: 10px 0; }
.modal-empty   { color: #888; font-size: 13px; padding: 10px 0; }

/* ---- Print ----------------------------------------------- */
@media print {
    .no-print { display: none !important; }

    body         { margin: 0; font-size: 10pt; background: #fff; }
    .container   { max-width: 100%; padding: 0; margin: 0; }
    .card        { border: 1px solid #999; border-radius: 0; padding: 8px; margin-bottom: 8px; }

    th, td       { padding: 5px 7px; font-size: 9pt; }
    th           { background: #eee !important; -webkit-print-color-adjust: exact; }

    .btn         { display: none; }
    input[readonly] { background: transparent !important; border: none; }

    h2 { font-size: 14pt; }
    h3 { font-size: 11pt; }
    h4 { font-size: 10pt; }

    /* Keep signature boxes visible when printing */
    .sig-box  { border: 1px solid #999 !important; }
    .sig-line { border-bottom: 1px solid #333 !important; }

    /* Avoid breaking tables across pages */
    table { page-break-inside: avoid; }
}
