/* TP QUOTATION PORTAL — Bofill Advertising */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue:#0052A5; --blue-dark:#003d7a; --blue-light:#e8f0fb;
  --orange:#F7941D; --green:#16a34a; --green-bg:#dcfce7;
  --yellow:#ca8a04; --yellow-bg:#fef9c3;
  --purple:#7c3aed; --purple-bg:#ede9fe;
  --teal:#0891b2; --teal-bg:#cffafe;
  --red:#dc2626;
  --gray-50:#f8fafc; --gray-100:#f1f5f9; --gray-200:#e2e8f0;
  --gray-300:#cbd5e1; --gray-400:#94a3b8; --gray-500:#64748b;
  --gray-600:#475569; --gray-700:#334155; --gray-900:#0f172a;
  --radius:8px; --shadow:0 1px 3px rgba(0,0,0,.1),0 1px 2px rgba(0,0,0,.06);
  --shadow-md:0 4px 6px rgba(0,0,0,.07),0 2px 4px rgba(0,0,0,.06);
}
body { font-family:'Inter',system-ui,sans-serif; font-size:13px; background:var(--gray-100); color:var(--gray-900); min-height:100vh; }

/* ── NAV ── */
.topnav { background:var(--blue); color:white; display:flex; align-items:center; justify-content:space-between; padding:0 24px; height:56px; position:sticky; top:0; z-index:100; box-shadow:0 2px 8px rgba(0,82,165,.3); }
.topnav-left { display:flex; align-items:center; gap:12px; }
.topnav-logo { height:42px; width:auto; border-radius:6px; display:block; object-fit:contain; }
.logo-main { font-weight:600; font-size:15px; display:block; }
.logo-sub  { font-size:11px; opacity:.7; display:block; }
.topnav-right { display:flex; align-items:center; gap:12px; }
.user-select-wrap { display:flex; align-items:center; gap:8px; background:rgba(255,255,255,.12); border-radius:20px; padding:4px 12px 4px 10px; }
.user-select-wrap i { opacity:.8; font-size:14px; }
.user-select-wrap select { background:transparent; border:none; color:white; font-family:inherit; font-size:13px; cursor:pointer; outline:none; }
.user-select-wrap select option { background:var(--blue-dark); }
.contract-badge { background:var(--orange); color:white; font-size:11px; font-weight:600; padding:4px 10px; border-radius:20px; }

/* ── TABS ── */
.main-tabs { background:white; border-bottom:2px solid var(--gray-200); display:flex; padding:0 24px; gap:4px; }
.tab-btn { background:none; border:none; padding:14px 20px; font-family:inherit; font-size:13px; font-weight:500; color:var(--gray-600); cursor:pointer; border-bottom:3px solid transparent; margin-bottom:-2px; transition:all .15s; display:flex; align-items:center; gap:7px; }
.tab-btn:hover { color:var(--blue); }
.tab-btn.active { color:var(--blue); border-bottom-color:var(--blue); }
.tab-content { display:none; padding:24px; }
.tab-content.active { display:block; }

/* ── FORM HEADER ── */
.form-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; flex-wrap:wrap; gap:10px; }
.form-header-left { display:flex; align-items:center; gap:10px; }
.form-header-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.qt-badge { font-size:18px; font-weight:700; color:var(--blue); }

/* ── STATUS BADGES ── */
.status-badge { font-size:11px; font-weight:700; letter-spacing:.5px; padding:3px 10px; border-radius:20px; text-transform:uppercase; }
.status-badge.draft        { background:var(--gray-200); color:var(--gray-700); }
.status-badge.for_approval { background:var(--yellow-bg); color:var(--yellow); }
.status-badge.approved     { background:var(--green-bg);  color:var(--green); }
.status-badge.sent         { background:var(--teal-bg);   color:var(--teal); }

/* ── BUTTONS ── */
.btn { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border-radius:var(--radius); border:none; font-family:inherit; font-size:13px; font-weight:500; cursor:pointer; transition:all .15s; white-space:nowrap; }
.btn-ghost     { background:transparent; color:var(--gray-600); border:1px solid var(--gray-300); }
.btn-ghost:hover { background:var(--gray-100); }
.btn-secondary { background:white; color:var(--blue); border:1px solid var(--blue); }
.btn-secondary:hover { background:var(--blue-light); }
.btn-primary   { background:var(--blue); color:white; }
.btn-primary:hover { background:var(--blue-dark); }
.btn-success   { background:var(--green); color:white; }
.btn-success:hover { opacity:.9; }
.btn-pdf       { background:#b91c1c; color:white; }
.btn-pdf:hover { opacity:.9; }
.btn-add       { background:var(--orange); color:white; }
.btn-add:hover { opacity:.9; }
.btn-approval  { background:var(--yellow); color:white; }
.btn-approval:hover { opacity:.9; }
.btn-warning   { background:#d97706; color:white; }
.btn-sent      { background:var(--teal); color:white; }
.btn-sent:hover{ opacity:.9; }

/* ── INFO CARD ── */
.info-card { background:white; border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); margin-bottom:20px; }
.info-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:16px; }
.info-field { display:flex; flex-direction:column; gap:5px; }
.info-field label { font-size:11px; font-weight:600; color:var(--gray-600); text-transform:uppercase; letter-spacing:.5px; }
.info-field input,.info-field select { border:1px solid var(--gray-300); border-radius:6px; padding:8px 10px; font-family:inherit; font-size:13px; outline:none; transition:border .15s; }
.info-field input:focus,.info-field select:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(0,82,165,.1); }
.info-field input[readonly] { background:var(--gray-50); color:var(--gray-600); }

/* ── ITEMS SECTION ── */
.items-section { background:white; border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.items-header { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--gray-200); }
.items-header h2 { font-size:14px; font-weight:600; color:var(--gray-700); display:flex; align-items:center; gap:8px; }
.item-count { font-size:11px; font-weight:500; background:var(--blue-light); color:var(--blue); padding:2px 8px; border-radius:20px; }
.items-table-wrap { overflow-x:auto; }
.items-table { width:100%; border-collapse:collapse; min-width:1100px; }
.items-table thead th { background:var(--gray-50); color:var(--gray-600); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.4px; padding:10px 8px; border-bottom:2px solid var(--gray-200); text-align:left; white-space:nowrap; }
.items-table tbody tr:hover { background:var(--gray-50); }
.items-table tbody tr+tr { border-top:1px solid var(--gray-100); }
.items-table td { padding:6px 8px; vertical-align:middle; }
.col-loc{min-width:110px} .col-particular{min-width:200px} .col-spec{min-width:120px}
.col-w,.col-h{width:70px} .col-unit{width:70px;text-align:center}
.col-price{width:90px} .col-qty{width:60px} .col-total{width:100px;text-align:right} .col-act{width:70px;text-align:center}
.items-table input[type="text"],.items-table input[type="number"] { width:100%; border:1px solid transparent; border-radius:4px; padding:5px 6px; font-family:inherit; font-size:12px; background:transparent; outline:none; transition:all .12s; }
.items-table input:hover { border-color:var(--gray-300); background:white; }
.items-table input:focus { border-color:var(--blue); background:white; box-shadow:0 0 0 2px rgba(0,82,165,.1); }
.items-table input[readonly] { color:var(--gray-500); cursor:default; }
.loc-inputs { display:flex; flex-direction:row; gap:4px; border:1px solid var(--gray-200); border-radius:6px; padding:3px 5px; background:var(--gray-50); }
.loc-inputs input { flex:1; min-width:0; font-size:11px !important; }
.loc-floor,.loc-area { font-size:11px; color:var(--gray-600); }
.particular-wrap { position:relative; }
.particular-dropdown { position:absolute; top:100%; left:0; right:0; background:white; border:1px solid var(--gray-200); border-radius:6px; box-shadow:var(--shadow-md); max-height:240px; overflow-y:auto; z-index:200; display:none; }
.particular-dropdown.open { display:block; }
.pd-item { padding:8px 12px; cursor:pointer; border-bottom:1px solid var(--gray-100); transition:background .1s; }
.pd-item:hover { background:var(--blue-light); }
.pd-item-name { font-weight:500; font-size:12px; }
.pd-item-spec { font-size:11px; color:var(--gray-400); }
.pd-item-price { font-size:11px; color:var(--blue); font-weight:600; }
.unit-badge { display:inline-block; font-size:10px; font-weight:600; padding:2px 6px; border-radius:4px; background:var(--gray-100); color:var(--gray-600); white-space:nowrap; }
.unit-badge.sq-in { background:#eff6ff; color:#1d4ed8; }
.unit-badge.sq-ft  { background:#f0fdf4; color:#15803d; }
.unit-badge.lot    { background:#fef3c7; color:#92400e; }
.row-total-init,.row-total-disc { font-size:12px; font-weight:600; color:var(--gray-700); }
.btn-row-dup,.btn-row-del { background:none; border:none; cursor:pointer; width:28px; height:28px; border-radius:4px; font-size:12px; transition:all .1s; }
.btn-row-dup { color:var(--blue); } .btn-row-dup:hover { background:var(--blue-light); }
.btn-row-del { color:var(--red); }  .btn-row-del:hover { background:#fee2e2; }

/* ── TOTALS ── */
.totals-bar { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-top:2px solid var(--gray-200); background:var(--gray-50); }
.totals-left { color:var(--gray-400); font-size:12px; }
.totals-right { display:flex; gap:24px; align-items:center; }
.total-block { display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.total-label { font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.5px; color:var(--gray-500); }
.total-value { font-size:20px; font-weight:700; color:var(--gray-700); }
.total-block.highlight .total-value.disc { color:var(--blue); font-size:22px; }

/* ── HISTORY ── */
.history-section { background:white; border-radius:var(--radius); box-shadow:var(--shadow); margin-top:20px; overflow:hidden; }
.history-header { padding:14px 20px; font-weight:600; font-size:13px; color:var(--gray-700); border-bottom:1px solid var(--gray-200); display:flex; align-items:center; gap:8px; }
.history-list { padding:16px 20px; display:flex; flex-direction:column; gap:10px; }
.history-item { display:flex; gap:12px; align-items:flex-start; }
.history-dot { width:8px; height:8px; border-radius:50%; background:var(--blue); margin-top:5px; flex-shrink:0; }
.history-dot.approved { background:var(--green); }
.history-dot.sent     { background:var(--teal); }
.history-dot.for_approval { background:var(--yellow); }
.history-content { flex:1; }
.history-action { font-weight:500; font-size:12px; color:var(--gray-700); }
.history-meta { font-size:11px; color:var(--gray-400); margin-top:2px; }

/* ── SUMMARY ── */
.summary-toolbar { display:flex; align-items:center; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.search-wrap { display:flex; align-items:center; gap:8px; background:white; border:1px solid var(--gray-300); border-radius:var(--radius); padding:8px 12px; flex:1; min-width:200px; }
.search-wrap i { color:var(--gray-400); }
.search-wrap input { border:none; outline:none; font-family:inherit; font-size:13px; width:100%; background:transparent; }
.filter-wrap { display:flex; gap:8px; }
.filter-wrap select { border:1px solid var(--gray-300); border-radius:var(--radius); padding:8px 12px; font-family:inherit; font-size:13px; background:white; outline:none; cursor:pointer; }
.summary-stats { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-bottom:20px; }
.stat-card { background:white; border-radius:var(--radius); padding:16px 20px; box-shadow:var(--shadow); border-left:4px solid var(--gray-300); }
.stat-card.draft-s   { border-color:var(--gray-400); }
.stat-card.forappr-s { border-color:var(--yellow); }
.stat-card.appr-s    { border-color:var(--green); }
.stat-card.sent-s    { border-color:var(--teal); }
.stat-num  { font-size:28px; font-weight:700; color:var(--blue); }
.stat-label{ font-size:12px; color:var(--gray-500); margin-top:2px; }
.summary-table-wrap { background:white; border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.summary-table { width:100%; border-collapse:collapse; }
.summary-table thead th { background:var(--gray-50); padding:12px 16px; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.4px; color:var(--gray-600); border-bottom:2px solid var(--gray-200); text-align:left; white-space:nowrap; }
.summary-table tbody tr { border-bottom:1px solid var(--gray-100); transition:background .1s; }
.summary-table tbody tr:hover { background:var(--gray-50); }
.summary-table td { padding:12px 16px; font-size:13px; }
.empty-state { text-align:center; color:var(--gray-400); padding:48px !important; }
.btn-sm { border:none; border-radius:5px; padding:5px 10px; font-size:12px; font-weight:500; cursor:pointer; display:inline-flex; align-items:center; gap:5px; transition:background .1s; }
.btn-sm-blue  { background:var(--blue-light); color:var(--blue); }
.btn-sm-blue:hover  { background:#c7d9f5; }
.btn-sm-green { background:var(--green-bg); color:var(--green); }
.btn-sm-green:hover { background:#bbf7d0; }
.btn-sm-red   { background:#fee2e2; color:#b91c1c; }
.btn-sm-red:hover   { background:#fecaca; }
.btn-sm-gray  { background:var(--gray-100); color:var(--gray-700); }
.btn-sm-gray:hover  { background:var(--gray-200); }

/* ── SETTINGS ── */
.settings-wrap { display:flex; flex-direction:column; gap:24px; }
.settings-card { background:white; border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.settings-card-header { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--gray-200); }
.settings-card-header h3 { font-size:14px; font-weight:600; color:var(--gray-700); display:flex; align-items:center; gap:8px; }
.settings-card-header p  { font-size:12px; color:var(--gray-400); margin-top:3px; }
.settings-table-wrap { overflow-x:auto; max-height:400px; overflow-y:auto; }
.settings-table { width:100%; border-collapse:collapse; min-width:700px; }
.settings-table thead th { background:var(--gray-50); color:var(--gray-600); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.4px; padding:10px 12px; border-bottom:2px solid var(--gray-200); text-align:left; white-space:nowrap; position:sticky; top:0; }
.settings-table tbody tr+tr { border-top:1px solid var(--gray-100); }
.settings-table tbody tr:hover { background:var(--gray-50); }
.settings-table td { padding:6px 12px; vertical-align:middle; }
.settings-table input,.settings-table select { width:100%; border:1px solid transparent; border-radius:4px; padding:5px 6px; font-family:inherit; font-size:12px; background:transparent; outline:none; transition:all .12s; }
.settings-table input:focus,.settings-table select:focus { border-color:var(--blue); background:white; box-shadow:0 0 0 2px rgba(0,82,165,.1); }
.sites-grid { display:flex; flex-wrap:wrap; gap:10px; padding:20px; }
.site-tag { display:flex; align-items:center; gap:6px; background:var(--blue-light); color:var(--blue); border-radius:6px; padding:6px 12px; font-size:13px; font-weight:500; }
.site-tag input { border:none; background:transparent; color:var(--blue); font-family:inherit; font-size:13px; font-weight:500; outline:none; min-width:80px; width:auto; }
.site-tag-del { background:none; border:none; color:var(--blue); cursor:pointer; font-size:11px; opacity:.6; padding:0; }
.site-tag-del:hover { opacity:1; color:var(--red); }

/* ── MODAL ── */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:500; display:flex; align-items:center; justify-content:center; padding:20px; }
.modal-box { background:white; border-radius:12px; width:100%; max-width:1100px; max-height:90vh; display:flex; flex-direction:column; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.modal-header { display:flex; align-items:center; justify-content:space-between; padding:16px 24px; border-bottom:1px solid var(--gray-200); }
.modal-header-left { display:flex; align-items:center; gap:10px; }
.modal-body { flex:1; overflow-y:auto; padding:24px; }
.modal-meta { display:grid; grid-template-columns:repeat(5,1fr); gap:16px; margin-bottom:20px; padding:16px; background:var(--gray-50); border-radius:8px; }
.modal-meta div { display:flex; flex-direction:column; gap:3px; }
.modal-meta span { font-size:11px; color:var(--gray-500); text-transform:uppercase; font-weight:600; }
.modal-meta strong { font-size:13px; color:var(--gray-900); }
.modal-table-wrap { overflow-x:auto; border:1px solid var(--gray-200); border-radius:8px; margin-bottom:16px; }
.modal-table { width:100%; border-collapse:collapse; min-width:900px; font-size:12px; }
.modal-table thead th { background:var(--gray-50); padding:8px 10px; font-size:11px; font-weight:600; text-transform:uppercase; color:var(--gray-600); border-bottom:2px solid var(--gray-200); text-align:left; white-space:nowrap; }
.modal-table tbody td { padding:8px 10px; border-bottom:1px solid var(--gray-100); }
.modal-table tbody tr:last-child td { border-bottom:none; }
.modal-totals { display:flex; gap:24px; justify-content:flex-end; padding:12px 0; font-size:13px; color:var(--gray-700); }
.modal-totals strong { color:var(--blue); font-size:15px; }

/* ── TOAST ── */
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px); background:var(--gray-900); color:white; padding:10px 20px; border-radius:8px; font-size:13px; font-weight:500; opacity:0; transition:all .25s; pointer-events:none; z-index:9999; white-space:nowrap; }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.toast.success { background:var(--green); }
.toast.error   { background:var(--red); }

/* ── PDF VIEW (off-screen for capture, then print fallback) ── */
.pdf-view { position:fixed; top:-9999px; left:-9999px; width:1122px; background:white; font-family:'Inter',Arial,sans-serif; font-size:9pt; color:#000; }
.pdf-page { padding:28px 32px; border:1.5px solid #b0b8c4; box-sizing:border-box; background:white; }
.pdf-header { display:flex; justify-content:space-between; align-items:flex-start; padding-bottom:10px; border-bottom:3px solid #0052A5; margin-bottom:8px; }
.pdf-header-left { display:flex; align-items:center; gap:14px; }
.pdf-logo { height:56px; max-width:200px; width:auto; object-fit:contain; display:block; }
.pdf-logo-fallback { font-size:16pt; font-weight:700; color:#0052A5; }
.pdf-address-block {}
.pdf-address { font-size:8pt; color:#555; margin-top:2px; }
.pdf-title { font-size:22pt; font-weight:700; color:#0052A5; text-align:right; }
.pdf-meta { border-collapse:collapse; margin-top:4px; }
.pdf-meta td { padding:1px 6px; font-size:8pt; }
.pdf-meta td:first-child { color:#555; text-align:right; padding-right:8px; }
.pdf-meta td:last-child { font-weight:600; }
.pdf-project-bar { background:#0052A5; color:white; padding:6px 12px; border-radius:4px; font-size:9pt; font-weight:600; margin-bottom:8px; display:flex; gap:12px; align-items:center; }
.pdf-for-label { opacity:.7; font-weight:400; }
.pdf-table { width:100%; border-collapse:collapse; font-size:7.5pt; margin-bottom:10px; }
.pdf-table thead th { background:#0052A5; color:white; padding:4px 5px; text-align:center; font-weight:600; border:1px solid #003d7a; font-size:7pt; }
.pdf-table tbody td { padding:3px 5px; border:1px solid #e2e8f0; vertical-align:middle; }
.pdf-table tbody tr:nth-child(even) { background:#f8fafc; }
.pdf-total-row td { background:#1e3a5f !important; color:white !important; font-weight:700; font-size:8pt; padding:5px 8px; border:1px solid #003d7a; }
.pdf-total-label { text-align:right; }
.pdf-total-val { text-align:right; font-size:9pt; }
.pdf-lot-cell { color:#92400e; font-style:italic; }
.pdf-num { text-align:right; }
.pdf-footer { display:flex; justify-content:space-between; align-items:flex-end; border-top:2px solid #e2e8f0; padding-top:8px; margin-top:6px; }
.pdf-terms { max-width:56%; }
.pdf-terms p { font-size:7pt; color:#444; margin-bottom:3px; line-height:1.45; }
.pdf-signatures { display:flex; gap:48px; }
.sig-block { text-align:center; min-width:130px; }
.sig-name  { font-size:10pt; font-weight:700; color:#0052A5; padding-bottom:4px; border-bottom:1.5px solid #000; margin-bottom:3px; }
.sig-title { font-size:7.5pt; color:#555; }
.sig-label { font-size:7pt; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:#0052A5; margin-top:2px; }
.pdf-tagline { text-align:center; font-size:8pt; color:#0052A5; font-style:italic; margin-top:6px; font-weight:500; }

/* ── USER INFO (replaces dropdown) ── */
.user-info-wrap { display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.12); border-radius:20px; padding:6px 14px 6px 12px; }
.user-info-wrap i { font-size:20px; opacity:.85; }
.user-info-text { display:flex; flex-direction:column; }
.user-info-name  { font-size:13px; font-weight:600; line-height:1.2; }
.user-info-title { font-size:10px; opacity:.7; }
.btn-logout { background:rgba(255,255,255,.15); color:white; border:1px solid rgba(255,255,255,.3); border-radius:20px; padding:5px 14px; font-family:inherit; font-size:12px; font-weight:500; cursor:pointer; display:flex; align-items:center; gap:6px; transition:background .15s; white-space:nowrap; }
.btn-logout:hover { background:rgba(255,255,255,.25); }

/* ── NEW BUTTONS ── */
.btn-production { background:#7c3aed; color:white; }
.btn-production:hover { opacity:.9; }
.btn-complete   { background:#059669; color:white; }
.btn-complete:hover { opacity:.9; }

/* ── STATUS BADGES (new) ── */
.status-badge.in_production { background:#ede9fe; color:#7c3aed; }
.status-badge.completed     { background:#dcfce7; color:#15803d; }
.stat-card.inprod-s    .stat-num { color:#7c3aed; }
.stat-card.completed-s .stat-num { color:#15803d; }
.stat-card.inprod-s    { border-top:3px solid #7c3aed; }
.stat-card.completed-s { border-top:3px solid #15803d; }

/* ── PRODUCTION INFO BAR ── */
.production-info-bar { background:linear-gradient(135deg,#ede9fe,#f5f3ff); border:1px solid #ddd6fe; border-radius:var(--radius); padding:14px 20px; margin-top:16px; display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.prod-info-item { display:flex; align-items:center; gap:8px; font-size:13px; }
.prod-info-item i { color:#7c3aed; }
.prod-info-label { color:var(--gray-500); font-size:11px; }
.btn-sm-share { font-size:12px; padding:5px 12px; }

/* ── CHECKLIST SECTION ── */
.checklist-section { background:white; border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; margin-top:16px; }
.checklist-header { padding:16px 20px; border-bottom:1px solid var(--gray-200); display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.checklist-header-left { display:flex; align-items:center; gap:12px; }
.checklist-header-left h2 { font-size:14px; font-weight:600; color:var(--gray-700); display:flex; align-items:center; gap:8px; }
.checklist-progress-text { font-size:12px; color:var(--gray-500); white-space:nowrap; }
.checklist-progress-bar-wrap { flex:1; min-width:200px; height:10px; background:var(--gray-200); border-radius:6px; overflow:hidden; }
.checklist-progress-bar { height:100%; background:#f59e0b; border-radius:6px; transition:width .4s,background .3s; }
.checklist-table-wrap { overflow-x:auto; }
.checklist-table { width:100%; border-collapse:collapse; min-width:800px; font-size:13px; }
.checklist-table th { background:var(--gray-50); color:var(--gray-600); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.4px; padding:8px 10px; border-bottom:2px solid var(--gray-200); text-align:left; }
.checklist-table td { padding:8px 10px; border-bottom:1px solid var(--gray-100); vertical-align:middle; }
.checklist-table tr:hover td { background:var(--gray-50); }
.checklist-footer { padding:14px 20px; border-top:1px solid var(--gray-200); display:flex; justify-content:flex-end; }

/* ── PRODUCTION TRACKER TAB ── */
.production-stats { display:flex; gap:16px; flex-wrap:wrap; }
.production-stats .stat-card { flex:1; min-width:140px; }

/* ── MODAL FOOTER ── */
.modal-footer { display:flex; justify-content:flex-end; gap:8px; padding:16px 24px; border-top:1px solid var(--gray-200); }

@media print {
  body > *:not(#pdfView) { display:none !important; }
  .pdf-view { display:block !important; position:static !important; top:auto !important; left:auto !important; width:auto !important; }
  @page { size:A4 landscape; margin:10mm 8mm; }
}
