body{font-family:Arial,Helvetica,sans-serif;margin:0;background:#f4f6f8;color:#1f2937}header{background:#f8fafc;color:#17365d;padding:10px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dbe3ef;gap:18px}header a{color:#17365d;margin-left:14px;text-decoration:none;font-weight:700}main{padding:26px;max-width:1200px;margin:auto}.card{background:white;border-radius:10px;padding:22px;margin:0 0 20px;box-shadow:0 2px 10px #0001}.narrow{max-width:420px;margin:60px auto}label{display:block;margin:12px 0;font-weight:bold}input,select,textarea{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:6px;margin-top:5px;box-sizing:border-box}button,.button{background:#1d4ed8;color:white;border:0;border-radius:6px;padding:10px 14px;text-decoration:none;display:inline-block;cursor:pointer}.small{padding:5px 8px;font-size:12px}table{width:100%;border-collapse:collapse}td,th{padding:10px;border-bottom:1px solid #e5e7eb;text-align:left}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.split{display:grid;grid-template-columns:1fr 1fr;gap:20px}.columns{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.flash{background:#fff7ed;border:1px solid #fdba74;padding:10px;border-radius:6px;margin-bottom:12px}.note{color:#6b7280;font-size:14px}.preview{width:100%;max-width:650px;max-height:520px;object-fit:contain;border:1px solid #d1d5db;background:white}.placeholder,.pdfbox{border:2px dashed #cbd5e1;padding:40px;text-align:center;background:#f8fafc}pre{white-space:pre-wrap;background:#f8fafc;padding:12px;border-radius:6px}@media(max-width:800px){.split,.grid,.columns{grid-template-columns:1fr}}
.section-heading{background:#0b2f5b;color:#fff;padding:10px 14px;border-radius:6px;margin:22px 0 14px;font-size:18px;letter-spacing:.2px}.subcard{border:1px solid #dbe3ef;background:#f8fafc;border-radius:8px;padding:14px;margin:12px 0 18px}.subcard h3{margin-top:0;color:#0b2f5b}

.job-type-large{font-size:1.45rem;font-weight:800;color:#0b2e59;border-left:6px solid #0b2e59;padding:8px 12px;margin:6px 0 12px;background:#eef4fb}
.postage-box{background:#f7f9fc;border:1px solid #d7e1ee;border-radius:8px;padding:12px;white-space:pre-wrap;font-family:ui-monospace,Consolas,monospace}
.postage-range{font-size:1.35rem;font-weight:800;color:#0b2e59;margin:10px 0;padding:10px;background:#e8f1fb;border:1px solid #b7cbe3;border-radius:6px}
button.danger{background:#9b1c1c;color:#fff;border:0;border-radius:6px;padding:8px 12px;cursor:pointer}
.status-pill{display:inline-block;min-width:112px;text-align:center;padding:6px 10px;border-radius:999px;color:#fff;font-weight:700;font-size:13px}.status-complete{background:#15803d}.status-production{background:#1d4ed8}.status-pending{background:#ca8a04;color:#111827}.status-error{background:#b91c1c}.status-cancelled{background:#6b7280}.action-row{display:flex;gap:10px;align-items:center;margin:0 0 16px}.action-row form{margin:0}button.warning{background:#ca8a04;color:#111827;border:0;border-radius:6px;padding:8px 12px;cursor:pointer}

.wizard-progress{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 18px}
.step-pill{padding:6px 10px;border-radius:999px;background:#e5e7eb;color:#111827;font-size:13px;font-weight:600}
.step-pill.active{background:#1F4E79;color:white}
.wizard-nav{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}
.wizard-nav button{min-width:120px}
.radio-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:6px 0 12px}
.radio-grid label{display:flex;gap:6px;align-items:center;border:1px solid #ddd;border-radius:6px;padding:8px;background:#fafafa}

.warning-box{background:#fff2cc;border:1px solid #d6b656;padding:10px;border-radius:8px}.note{color:#555;font-size:.9em}.subcard{border:1px solid #ddd;padding:12px;margin:10px 0;border-radius:8px}.button.small{font-size:.85em;padding:3px 6px}.status-pill{padding:3px 7px;border-radius:5px;background:#eee}

.resource-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:18px 0 24px}
.resource-card{display:block;background:white;border:1px solid #dbe3ef;border-radius:10px;padding:18px;text-decoration:none;color:#1f2937;box-shadow:0 2px 8px #0000000d}
.resource-card:hover{border-color:#1d4ed8;box-shadow:0 4px 14px #00000018}.resource-card h2{margin:0 0 8px;color:#0b2f5b;font-size:20px}.resource-card p{margin:0;color:#4b5563}
ul,ol{line-height:1.55} .card h2{color:#0b2f5b} .card h3{color:#17365D;margin-bottom:6px}

.system-name{font-weight:700}.payment-badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#eef2ff;color:#1e3a8a;font-weight:700}.wizard-page{display:none}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.payment-badge{display:inline-block;padding:5px 9px;border-radius:999px;background:#e8f1fb;color:#0b2f5b;font-weight:700;font-size:12px}
.financial-hold{background:#fff2cc;border:1px solid #e0b341;border-radius:8px;padding:10px;margin:8px 0}
.job-type-cards label{font-size:16px;font-weight:700}
@media(max-width:800px){.grid.two{grid-template-columns:1fr}.wizard-progress{display:block}.step-pill{margin:3px;display:inline-block}}
.admin-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px;background:#eef4fb;border:1px solid #d7e1ee;border-radius:10px;padding:10px}
.tab-button{background:#e5e7eb;color:#111827;border:1px solid #cbd5e1;border-radius:999px;padding:8px 12px;font-weight:700;cursor:pointer}
.tab-button.active{background:#1d4ed8;color:#fff;border-color:#1d4ed8}.tab-panel{display:none}.tab-panel.active{display:block}


.user-pill{display:inline-block;margin-right:10px;padding:6px 10px;border-radius:999px;background:#eef4fb;color:#17365d;font-weight:700;border:1px solid #c9d8ea;vertical-align:middle;}

.brand{display:flex;align-items:center;gap:12px;min-width:320px}
.brand-logo{height:42px;width:auto;max-width:150px;object-fit:contain;background:#ffffff;border:1px solid #e5e7eb;border-radius:8px;padding:4px;box-shadow:0 1px 3px #00000012}
.brand-contact{color:#475569;font-size:12px;line-height:1.25}
header nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}
header nav a{margin-left:6px}
.login-card{text-align:left}.login-actions{text-align:center;margin-top:18px}.login-actions .button{display:inline-block;min-width:220px}
@media(max-width:900px){header{align-items:flex-start;flex-direction:column}.brand{min-width:0}.brand-logo{height:36px;max-width:130px}header nav{justify-content:flex-start}.brand-contact{display:block}}


/* v29.3 postage-only summary and job-type card refinements */
.job-type-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:12px}
.job-type-cards label{min-height:118px;align-items:flex-start;padding:16px;border:2px solid #d7e1ee;background:#f8fbff;border-radius:12px;cursor:pointer}
.job-type-cards label:hover{border-color:#1d4ed8;box-shadow:0 4px 14px #00000012}
.job-type-cards input{width:auto;margin-top:4px;flex:0 0 auto}
.job-card-copy{display:flex;flex-direction:column;gap:6px;line-height:1.25}
.job-card-copy strong{font-size:20px;color:#0b2f5b}
.job-card-copy small{font-weight:500;color:#475569;font-size:13px}
.processing-bar{height:24px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin:10px 0;position:relative}
.processing-fill{height:24px;background:#1d4ed8;transition:width .4s}.processing-fill.complete{background:#15803d}.processing-fill.error{background:#b91c1c}
.processing-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:800;color:white;text-shadow:0 1px 2px rgba(0,0,0,.45)}
.postage-hero{margin-top:18px;padding:16px;border:1px solid #b7cbe3;background:#e8f1fb;border-radius:10px}
.postage-hero-label{font-size:1.35rem;font-weight:800;color:#0b2f5b;margin-bottom:6px}
.postage-hero-value{font-size:2.05rem;font-weight:900;color:#0b2f5b;line-height:1.1}
.postage-planning-range{margin-top:8px;font-size:1rem;color:#17365d}
.drop-fee-hero{margin-top:14px;padding:14px;border:1px solid #b7cbe3;background:#eef6ff;border-radius:10px;display:inline-block;min-width:320px}
.drop-fee-label{font-size:1.2rem;font-weight:800;color:#0b2f5b;margin-bottom:5px}.drop-fee-value{font-size:1.75rem;font-weight:900;color:#0b2f5b}
@media(max-width:800px){.job-type-cards{grid-template-columns:1fr}.job-type-cards label{min-height:0}.postage-hero-value{font-size:1.65rem}}

/* v29.4 dashboard postage estimate card */
.dashboard-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:14px 0 20px}
.dashboard-card{display:block;background:#ffffff;border:1px solid #d7e1ee;border-radius:12px;padding:18px;text-decoration:none;color:#1f2937;box-shadow:0 2px 10px #0000000d;min-height:96px}
.dashboard-card:hover{border-color:#1d4ed8;box-shadow:0 4px 16px #00000018}
.dashboard-card b{display:block;font-size:20px;color:#0b2f5b;margin-bottom:8px}
.dashboard-card span{display:block;color:#475569;line-height:1.35}
@media(max-width:900px){.dashboard-actions{grid-template-columns:1fr}}


/* v30.0 consolidated UI refinements */
.job-type-cards label{min-height:150px;display:flex;gap:12px}
.job-type-cards .job-card-copy{display:flex;flex-direction:column;gap:8px;line-height:1.35}
.job-type-cards .job-card-copy strong{font-size:1.15rem;color:#0b2f5b}
.job-type-cards .job-card-copy small{font-size:.96rem;color:#334155;font-weight:500}
.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.resource-card{display:block;text-decoration:none;color:inherit;border:1px solid #d7e1ee;border-radius:12px;background:#f8fbff;padding:16px;min-height:120px}
.resource-card:hover{border-color:#1d4ed8;box-shadow:0 4px 14px #00000012}
.resource-card h2{font-size:1.05rem;margin-top:0}
.warning-box{background:#fff7ed;border:1px solid #fdba74;border-radius:8px;padding:10px;margin:10px 0}
@media(max-width:900px){.resource-grid{grid-template-columns:1fr}.job-type-cards label{min-height:0}}

/* v30.8 expanded customer resource center */
.resource-cta-row{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 18px;align-items:center}.button.secondary{background:#64748b}.resource-highlight-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:12px 0}.resource-highlight-grid>div{border:1px solid #d7e1ee;border-radius:10px;background:#f8fbff;padding:14px}.resource-highlight-grid h3{margin-top:0;color:#0b2f5b}.mail-template{position:relative;border:2px solid #17365d;background:#fff;border-radius:8px;margin:12px 0 14px;min-height:190px;box-shadow:inset 0 0 0 1px #dbe3ef}.letter-template{aspect-ratio:2.1/1;min-height:185px}.postcard-template{aspect-ratio:1.85/1;min-height:180px}.flat-template{aspect-ratio:1.3/1;min-height:245px}.selfmailer-template,.booklet-template{aspect-ratio:1.6/1;min-height:210px}.return-address{position:absolute;top:14px;left:16px;font-size:12px;color:#475569;border:1px dashed #94a3b8;padding:6px;background:#f8fafc}.address-block{position:absolute;left:42%;top:38%;transform:translate(-10%,-20%);border:2px solid #1d4ed8;background:#eff6ff;padding:14px;min-width:190px;text-align:center;font-weight:700;color:#0b2f5b}.barcode-zone{position:absolute;right:16px;bottom:14px;border:1px dashed #dc2626;color:#991b1b;background:#fff7f7;padding:8px;font-size:12px}.flat-top-label{position:absolute;left:0;right:0;top:0;height:50%;border-bottom:1px dashed #94a3b8;background:linear-gradient(#eff6ff,#ffffff);display:flex;justify-content:center;align-items:flex-start;padding-top:10px;color:#0b2f5b;font-weight:700}.flat-address{position:absolute;left:38%;top:29%;border:2px solid #1d4ed8;background:#eff6ff;padding:14px;min-width:210px;text-align:center;font-weight:700;color:#0b2f5b}.flat-barcode{position:absolute;right:18px;bottom:22px;border:1px dashed #dc2626;color:#991b1b;background:#fff7f7;padding:8px;font-size:12px}.fold-line{position:absolute;left:50%;top:0;bottom:0;border-left:2px dashed #64748b;color:#64748b;padding-left:8px;font-weight:700}.spine-label{position:absolute;left:8px;top:8px;bottom:8px;writing-mode:vertical-rl;text-orientation:mixed;border-right:2px dashed #64748b;color:#64748b;padding:8px;font-weight:700}.tab-dot{position:absolute;width:44px;height:44px;border-radius:50%;background:#fff7ed;border:2px solid #f97316;color:#9a3412;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800}.tab-left{left:16px;top:50%;transform:translateY(-50%)}.tab-right{right:16px;top:50%;transform:translateY(-50%)}.tab-bottom{left:50%;bottom:10px;transform:translateX(-50%)}.checklist-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin:12px 0}.checklist-grid div{border:1px solid #d7e1ee;background:#f8fbff;border-radius:8px;padding:10px;font-weight:700;color:#0b2f5b}.template-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 14px}.template-panel{display:none}.template-panel.active{display:block}.flow-line,.timeline-flow{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.flow-line span,.timeline-flow span{background:#eef4fb;border:1px solid #b7cbe3;border-radius:999px;padding:8px 12px;font-weight:700;color:#0b2f5b}.mini-map{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#f8fbff;border:1px solid #d7e1ee;border-radius:10px;padding:12px;margin:8px 0}.mini-map span{background:white;border:1px solid #dbe3ef;border-radius:8px;padding:10px;font-weight:700}.mini-map b{font-size:22px;color:#1d4ed8}@media(max-width:800px){.address-block,.flat-address{left:22%;transform:none;min-width:150px}.resource-cta-row .button{width:100%;text-align:center}.mail-template{min-height:220px}}
/* v30.9 DMM-aligned resource center corrections */
.imb-line{display:block;margin-top:6px;padding-top:6px;border-top:3px solid #111;font-size:11px;letter-spacing:.05em;color:#111;font-weight:800}.resource-section .mail-template .barcode-zone,.resource-section .mail-template .flat-barcode{display:none}.resource-section .address-block,.resource-section .flat-address{line-height:1.35}.resource-section .flat-address{top:24%;left:38%}.resource-section .flat-top-label{height:50%}.resource-section .checklist-grid div{background:#f0f9ff}
.ticket-clean .ticket-header{align-items:flex-start}.ticket-clean table{font-size:13px}.ticket-clean th,.ticket-clean td{vertical-align:top}.ticket-clean .subcard{break-inside:avoid}

/* v31.16 status badge overrides */
.status-pill.status-complete{background:#15803d!important;color:#fff!important;}
.status-pill.status-production{background:#1d4ed8!important;color:#fff!important;}
.status-pill.status-pending{background:#ca8a04!important;color:#111827!important;}
.status-pill.status-error{background:#b91c1c!important;color:#fff!important;}
.status-pill.status-cancelled{background:#6b7280!important;color:#fff!important;}

/* v31.22 public landing/login page */
.public-hero{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(340px,.6fr);gap:28px;align-items:stretch;margin:12px 0 26px}
.public-hero-copy{background:linear-gradient(135deg,#0b2f5b 0%,#17365d 55%,#1d4ed8 100%);color:#fff;border-radius:18px;padding:42px;box-shadow:0 10px 30px #0000001f;position:relative;overflow:hidden}
.public-hero-copy:after{content:"";position:absolute;right:-60px;bottom:-70px;width:260px;height:260px;background:rgba(255,255,255,.08);border-radius:50%}
.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:900;color:#bfdbfe;margin-bottom:12px}
.public-hero h1{font-size:44px;line-height:1.05;margin:0 0 16px;color:#fff;max-width:780px}
.hero-lede{font-size:18px;line-height:1.55;max-width:780px;color:#e8f1fb;margin:0 0 24px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 22px;position:relative;z-index:1}.hero-button{font-weight:900}.button.light{background:#ffffff;color:#0b2f5b;border:1px solid #dbeafe}
.trust-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;position:relative;z-index:1}.trust-row span{display:inline-block;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.24);border-radius:999px;padding:8px 11px;font-weight:800;font-size:13px;color:#fff}
.login-panel{margin:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center}.login-panel h2{font-size:28px;margin-top:0}.login-submit{width:100%;margin-top:16px;font-weight:900}.login-panel .login-actions{margin-top:14px;text-align:center}.login-panel .login-actions a{font-weight:800;color:#0b2f5b;text-decoration:none}.login-panel .login-actions a:hover{text-decoration:underline}
.public-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0 0 24px}.public-feature-card{background:#fff;border:1px solid #d7e1ee;border-radius:14px;padding:22px;box-shadow:0 2px 10px #0000000d}.public-feature-card h2{margin:0 0 8px;color:#0b2f5b}.public-feature-card p{color:#475569;line-height:1.5;margin:0}
.public-section-card{border:1px solid #d7e1ee}.public-split{align-items:start}.public-checklist{padding-left:20px}.public-checklist li{margin:8px 0}.public-contact-box{background:#f8fbff;border:1px solid #d7e1ee;border-radius:12px;padding:20px}.public-contact-box h3{margin-top:0;color:#0b2f5b}.public-contact-box p{line-height:1.45}
@media(max-width:950px){.public-hero{grid-template-columns:1fr}.public-hero h1{font-size:34px}.public-grid{grid-template-columns:1fr}.public-hero-copy{padding:30px}.public-split{grid-template-columns:1fr}}


/* v31.27 legal and template pages */
.site-footer{max-width:1200px;margin:10px auto 30px;padding:16px 26px;color:#475569;font-size:13px}.site-footer a{color:#17365d;text-decoration:none;font-weight:700;margin-right:16px}.legal-page h1{color:#0b2f5b}.legal-page h2{margin-top:22px}.product-preview-grid{display:grid;grid-template-columns:180px 1fr;gap:16px;align-items:center;margin:4px 0 14px}.product-preview-image{width:180px;height:125px;object-fit:contain;border:1px solid #d7e1ee;background:#f8fafc;border-radius:10px}.product-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}.product-card{background:#fff;border:1px solid #d7e1ee;border-radius:14px;padding:16px;box-shadow:0 2px 10px #0000000d}.product-card img{width:100%;height:180px;object-fit:contain;background:#f8fafc;border-radius:10px}.product-card h2{margin:12px 0 6px;color:#0b2f5b}.template-gallery{display:grid;gap:18px}.template-card{display:grid;grid-template-columns:260px 1fr;gap:18px;align-items:center;background:#fff;border:1px solid #d7e1ee;border-radius:14px;padding:16px;box-shadow:0 2px 10px #0000000d}.template-card img{width:260px;max-height:210px;object-fit:contain;background:#f8fafc;border-radius:10px;border:1px solid #e5e7eb}.imb-sample{width:360px;max-width:100%;height:72px;object-fit:contain;border:1px solid #d7e1ee;background:#fff;padding:10px;border-radius:8px}@media(max-width:800px){.product-preview-grid,.template-card{grid-template-columns:1fr}.product-preview-image,.template-card img{width:100%;height:auto;max-height:220px}}


.preflight-modal{position:fixed;inset:0;background:rgba(15,23,42,.72);z-index:10000;align-items:center;justify-content:center;padding:14px;}
.preflight-box{background:#fff;max-width:1620px;width:98.5%;max-height:96vh;overflow:auto;border-radius:14px;padding:22px;box-shadow:0 18px 60px rgba(0,0,0,.35);}

.preflight-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:10px;}
.preflight-header h2{margin:0 0 4px;}
.preflight-header .note{margin:0;}
.preflight-header-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap;white-space:nowrap;}
.preflight-header-actions button{margin-top:0;}
@media (max-width: 900px){.preflight-header{display:block;}.preflight-header-actions{justify-content:flex-start;margin-top:10px;white-space:normal;}}
.preflight-preview-wrap{position:relative;background:#f8fafc;border:1px solid #cbd5e1;margin:12px auto;padding:10px;max-width:1560px;text-align:center;overflow:auto;}
.preflight-preview-stage{position:relative;display:inline-block;line-height:0;background:white;}
.preflight-preview-stage img{max-width:100%;max-height:78vh;display:block;margin:0 auto;}
.preflight-preview-stage .bleed-line,.preflight-preview-stage .cut-line,.preflight-preview-stage .safe-line{position:absolute;pointer-events:none;box-sizing:border-box;left:0;top:0;width:100%;height:100%;border:2px solid rgba(220,38,38,.9);}
.preflight-preview-stage .cut-line{border:2px dashed rgba(15,23,42,.95);}
.preflight-preview-stage .safe-line{border:2px dashed rgba(22,163,74,.95);}
.job-info-preview-img{max-width:100%;max-height:360px;border:1px solid #cbd5e1;background:white;}
.job-ticket-preview-img{max-width:100%;max-height:420px;border:1px solid #cbd5e1;background:white;}
.postal-term-grid .resource-card h2{margin-bottom:0}.postal-term-grid .resource-card h3{margin-top:4px;font-size:1rem;color:#334155;}
.warning-box ul{margin-bottom:0;}

.mini-table{width:100%;border-collapse:collapse;margin-top:10px}.mini-table th,.mini-table td{border:1px solid #ddd;padding:6px;font-size:.9rem}.highlight-box{border-left:4px solid #173a63;background:#f3f7fb;padding:10px;margin:8px 0}.product-preview-image{max-width:500px;width:100%;height:auto;object-fit:contain}.product-preview-grid{display:grid;grid-template-columns:minmax(180px,360px) 1fr;gap:16px;align-items:start}.site-footer{margin-top:30px;padding:18px;text-align:center;border-top:1px solid #ddd}.site-footer a{margin:0 10px}

/* v31.32 admin machine/profile form readability */
.admin-settings-card{overflow:hidden}.admin-lede{font-size:15px;line-height:1.45;max-width:980px}.section-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:18px 0 10px}.section-title-row h2{margin:0}.section-help{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#64748b;background:#f1f5f9;border:1px solid #dbe3ef;border-radius:999px;padding:6px 10px;white-space:nowrap}.admin-table-scroll{width:100%;overflow-x:auto;border:1px solid #dbe3ef;border-radius:10px;background:#fff;margin:8px 0 18px}.compact-table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}.compact-table th{background:#0b2f5b;color:#fff;font-size:12px;line-height:1.15;font-weight:800;vertical-align:middle;white-space:normal;text-align:center;padding:8px 6px;border-bottom:1px solid #082447}.compact-table td{padding:6px;border-bottom:1px solid #e5e7eb;vertical-align:middle}.compact-table tr:last-child td{border-bottom:0}.compact-table input,.compact-table select,.compact-table textarea{margin-top:0;padding:6px 7px;font-size:13px;line-height:1.25;border-radius:5px}.compact-table input[type='checkbox']{width:auto;min-width:auto;transform:scale(1.05)}.compact-table textarea{resize:vertical;min-height:38px}.center-cell{text-align:center}.readonly-id{background:#f8fafc;color:#0b2f5b;font-weight:800;font-family:ui-monospace,Consolas,monospace}.numeric-input,.tiny-input{text-align:right}.machine-speed-table{min-width:1320px}.machine-speed-table .col-active{width:56px}.machine-speed-table .col-machine-id{width:150px}.machine-speed-table .col-machine-name{width:230px}.machine-speed-table .col-machine-type{width:170px}.machine-speed-table .col-primary-use{width:300px}.machine-speed-table .col-small-num{width:82px}.machine-speed-table .col-med-num{width:112px}.machine-speed-table td:nth-child(3) input,.machine-speed-table td:nth-child(4) input{min-width:0}.table-textarea{font-family:Arial,Helvetica,sans-serif}.staffing-table{min-width:1040px}.staffing-table .col-sticky-machine{width:240px}.staffing-table .col-tiny-num{width:58px}.sticky-col{position:sticky;left:0;z-index:2;background:#fff}.staffing-table th.sticky-col{background:#0b2f5b;color:#fff;z-index:3}.machine-label{color:#0b2f5b}.machine-label span{color:#475569;font-size:12px;line-height:1.2}.tiny-input{width:54px!important;padding:5px!important}.consumables-table{min-width:620px}.consumables-table th:first-child{width:58px}.consumables-table th:nth-child(2){width:160px}.consumables-table th:nth-child(4){width:120px}.consumables-table th:nth-child(5){width:120px}.new-row td{background:#f8fafc}.form-actions{display:flex;justify-content:flex-end;margin-top:10px}.admin-settings-grid{align-items:start}@media(max-width:900px){.section-title-row{align-items:flex-start;flex-direction:column}.machine-speed-table{min-width:1250px}.staffing-table{min-width:980px}.admin-settings-grid{grid-template-columns:1fr}.compact-table{font-size:12px}.compact-table input,.compact-table textarea{font-size:12px}}


/* v31.35: restore artwork/proof thumbnails and improve job-ticket readability */
.file-card{display:flex;gap:12px;align-items:flex-start;border:1px solid #dbe3ef;border-radius:10px;background:#f8fafc;padding:10px;margin:8px 0;break-inside:avoid;}
.file-card-info{min-width:0;line-height:1.35;}
.job-file-thumb{display:block;width:150px;max-height:120px;object-fit:contain;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:4px;}
.job-file-thumb.small{width:86px;max-height:72px;}
.thumb-cell{width:96px;text-align:center;vertical-align:middle;}
.job-files-table td{vertical-align:middle;}
.job-preview-card{overflow:hidden;}
.job-info-preview-img{max-height:420px;object-fit:contain;}
.ticket-clean .subcard{break-inside:avoid;page-break-inside:avoid;}
.ticket-section{margin-top:14px;}
.job-ticket-plan-table th,.job-ticket-plan-table td{vertical-align:top;line-height:1.3;padding:7px 8px;}
.job-ticket-plan-table td:nth-child(5){min-width:260px;}
.job-ticket-preview-img{display:block;max-width:420px;max-height:300px;object-fit:contain;margin:6px 0;border:1px solid #cbd5e1;background:white;border-radius:8px;padding:4px;}
@media print{.job-file-thumb{max-width:120px}.job-ticket-preview-img{max-height:240px}.ticket-clean .subcard{page-break-inside:avoid}}

/* v31.36: keep job art visible beside Job Information */
.job-info-with-art{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.75fr);gap:18px;align-items:start;}
.job-info-text p{line-height:1.55;}
.job-info-art-panel{border:1px solid #d7dee8;border-radius:10px;background:#f8fafc;padding:12px;min-height:220px;}
.job-info-art-panel h3{margin-top:0;margin-bottom:10px;color:#12345c;}
.job-info-art-panel a{display:block;text-align:center;background:white;border:1px solid #e5e7eb;border-radius:8px;padding:8px;}
.job-info-art-panel .job-info-preview-img{display:block;margin:0 auto;max-width:100%;max-height:330px;width:auto;height:auto;object-fit:contain;background:white;}
.job-art-placeholder{border:1px dashed #aeb9c7;border-radius:8px;background:white;color:#64748b;padding:32px 14px;text-align:center;line-height:1.45;}
.job-ticket-preview-img{max-width:100%;max-height:380px;object-fit:contain;background:white;border:1px solid #cbd5e1;}
@media (max-width:900px){.job-info-with-art{grid-template-columns:1fr}.job-info-art-panel .job-info-preview-img{max-height:420px}}


/* v31.40: wider machine settings page with no left/right table scrolling */
.machine-page-wide{width:min(1780px,calc(100vw - 36px));margin-left:50%;transform:translateX(-50%);}
.machine-page-wide .card{box-sizing:border-box;}
.machine-page-wide .admin-settings-card{overflow:visible;}
.machine-page-wide .admin-lede{max-width:1500px;}
.machine-page-wide .admin-table-fit{width:100%;overflow-x:visible;border:1px solid #dbe3ef;border-radius:10px;background:#fff;margin:8px 0 18px;}
.machine-page-wide .compact-table{table-layout:fixed;width:100%;font-size:12px;}
.machine-page-wide .compact-table th{padding:7px 5px;font-size:11px;}
.machine-page-wide .compact-table td{padding:5px;}
.machine-page-wide .compact-table input,.machine-page-wide .compact-table select,.machine-page-wide .compact-table textarea{padding:5px 5px;font-size:12px;line-height:1.2;}
.machine-page-wide .machine-speed-table{min-width:0;}
.machine-page-wide .machine-speed-table .col-active{width:46px}.machine-page-wide .machine-speed-table .col-machine-id{width:130px}.machine-page-wide .machine-speed-table .col-machine-name{width:185px}.machine-page-wide .machine-speed-table .col-machine-type{width:145px}.machine-page-wide .machine-speed-table .col-primary-use{width:280px}.machine-page-wide .machine-speed-table .col-small-num{width:72px}.machine-page-wide .machine-speed-table .col-med-num{width:82px}
.machine-page-wide .table-textarea{min-height:48px;white-space:normal;}
.machine-page-wide .staffing-table{min-width:0;}
.machine-page-wide .staffing-table .col-sticky-machine{width:220px}.machine-page-wide .staffing-table .col-tiny-num{width:55px}
.machine-page-wide .sticky-col{position:static;}
.machine-page-wide .machine-label b{font-size:12px}.machine-page-wide .machine-label span{font-size:11px}
.machine-page-wide .tiny-input{width:48px!important;padding:4px!important;text-align:right;}
.machine-page-wide .consumables-table{min-width:0;}
.machine-page-wide .consumables-table th:first-child{width:48px}.machine-page-wide .consumables-table th:nth-child(2){width:190px}.machine-page-wide .consumables-table th:nth-child(4){width:115px}.machine-page-wide .consumables-table th:nth-child(5){width:140px}
.machine-page-wide .admin-settings-grid{grid-template-columns:minmax(360px,.75fr) minmax(760px,1.25fr);}
@media(max-width:1350px){.machine-page-wide{width:calc(100vw - 24px)}.machine-page-wide .compact-table{font-size:11px}.machine-page-wide .machine-speed-table .col-primary-use{width:220px}.machine-page-wide .machine-speed-table .col-machine-name{width:160px}.machine-page-wide .machine-speed-table .col-machine-id{width:115px}.machine-page-wide .machine-speed-table .col-med-num{width:74px}.machine-page-wide .staffing-table .col-sticky-machine{width:180px}.machine-page-wide .staffing-table .col-tiny-num{width:48px}.machine-page-wide .tiny-input{width:42px!important}}
@media(max-width:980px){.machine-page-wide{width:calc(100vw - 16px)}.machine-page-wide .admin-table-fit{overflow-x:auto}.machine-page-wide .machine-speed-table{min-width:1120px}.machine-page-wide .staffing-table{min-width:900px}.machine-page-wide .admin-settings-grid{grid-template-columns:1fr}}

/* v31.41 resource/legal/template expansion */
.legal-page, .resource-page, .template-page, .about-page{max-width:1180px;margin:0 auto;}
.legal-page h1,.resource-page h1,.template-page h1,.about-page h1{font-size:2rem;line-height:1.15;margin-bottom:.4rem;}
.legal-grid,.resource-grid,.about-grid,.template-grid,.id-graphic-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin:16px 0;}
.legal-card,.resource-card2,.about-card,.template-info-card,.visual-card{border:1px solid #d8e1ef;border-radius:12px;background:#fff;padding:16px;box-shadow:0 1px 3px rgba(0,0,0,.05);}
.legal-card h2,.resource-card2 h2,.about-card h2,.template-info-card h2{margin-top:0;color:#123a63;font-size:1.15rem;}
.notice-box{border-left:5px solid #123a63;background:#f3f7fc;padding:14px 16px;border-radius:8px;margin:14px 0;}
.warning-box{border-left:5px solid #b7791f;background:#fff8e8;padding:14px 16px;border-radius:8px;margin:14px 0;}
.compliance-table{width:100%;border-collapse:collapse;margin:12px 0;background:#fff;}
.compliance-table th{background:#123a63;color:#fff;text-align:left;}
.compliance-table th,.compliance-table td{border:1px solid #d7e1ef;padding:9px;vertical-align:top;}
.resource-hero{display:grid;grid-template-columns:1.35fr .9fr;gap:20px;align-items:center;}
.resource-hero img,.visual-card img,.template-card img,.about-card img{max-width:100%;height:auto;border-radius:10px;border:1px solid #dce6f2;background:#fff;}
.resource-pill-row{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;}
.resource-pill{background:#eaf2fb;color:#123a63;border:1px solid #cbdcf0;border-radius:999px;padding:7px 10px;font-weight:600;font-size:.9rem;}
.flow-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:12px 0;}
.flow-step{background:#f7fbff;border:1px solid #d7e6f5;border-radius:10px;padding:12px;position:relative;}
.flow-step b{display:block;color:#123a63;margin-bottom:5px;}
.template-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:10px 0 16px;}
.template-controls label{min-width:190px;}
.interactive-template-stage{position:relative;max-width:820px;margin:14px auto;padding:18px;background:#f0f3f8;border:1px solid #ccd6e4;border-radius:14px;}
.mailpiece-canvas{position:relative;margin:0 auto;background:#fff;border:3px solid #1f2937;box-shadow:0 8px 22px rgba(20,30,45,.12);}
.mailpiece-canvas.postcard{width:620px;height:360px;max-width:100%;}
.mailpiece-canvas.flat{width:520px;height:670px;max-width:100%;}
.mailpiece-canvas.fsm{width:650px;height:370px;max-width:100%;}
.bleed-line,.trim-line,.safe-line,.fold-line,.address-zone,.barcode-zone,.postage-zone,.tab-marker,.spine-marker{position:absolute;box-sizing:border-box;pointer-events:none;}
.bleed-line{inset:6px;border:2px dashed #c53030;}
.trim-line{inset:22px;border:2px solid #111827;}
.safe-line{inset:48px;border:2px dashed #2f855a;}
.fold-line{border-left:3px dashed #805ad5;height:100%;top:0;left:50%;}
.address-zone{right:70px;bottom:76px;width:245px;height:92px;border:2px solid #2563eb;background:rgba(37,99,235,.05);padding:8px;font-size:13px;line-height:1.2;}
.barcode-zone{right:76px;bottom:40px;width:235px;height:30px;border:1px dashed #4a5568;background:#fff url('/static/sample_imb.svg') center/210px 24px no-repeat;}
.postage-zone{right:42px;top:42px;width:110px;height:80px;border:2px solid #dd6b20;background:rgba(221,107,32,.06);display:flex;align-items:center;justify-content:center;font-size:12px;text-align:center;}
.tab-marker{width:38px;height:18px;border-radius:50%;background:#edf2f7;border:2px solid #2d3748;}
.spine-marker{left:20px;top:0;width:18px;height:100%;background:rgba(45,55,72,.08);border-right:3px solid #2d3748;}
.tab-top-left{top:-10px;left:55px}.tab-top-right{top:-10px;right:55px}.tab-side-mid{right:-10px;top:45%;height:38px;width:18px}.tab-bottom-left{bottom:-10px;left:55px}.tab-bottom-right{bottom:-10px;right:55px}
.legend-row{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0;justify-content:center;}
.legend-row span{display:inline-flex;gap:6px;align-items:center;background:#fff;border:1px solid #d9e2ef;border-radius:999px;padding:6px 9px;font-size:.9rem;}
.legend-swatch{width:22px;height:10px;border-radius:2px;display:inline-block}.red{border:2px dashed #c53030}.black{border:2px solid #111827}.green{border:2px dashed #2f855a}.blue{border:2px solid #2563eb}.orange{border:2px solid #dd6b20}.purple{border-left:3px dashed #805ad5;height:16px;width:6px}
.id-stat{font-size:2rem;font-weight:800;color:#123a63;display:block;}
.id-mock-email{background:#fff;border:1px solid #d7e1ef;border-radius:14px;box-shadow:0 4px 14px rgba(0,0,0,.08);padding:16px;}
.id-mail-preview{height:116px;background:linear-gradient(135deg,#eee,#d8d8d8);border-radius:8px;margin-bottom:10px;display:flex;align-items:center;justify-content:center;color:#555;}
.id-ridealong{height:92px;background:linear-gradient(135deg,#123a63,#2770ac);border-radius:8px;color:#fff;display:flex;align-items:center;justify-content:center;text-align:center;font-weight:700;padding:12px;}
.equipment-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;}
.equipment-list div{background:#f8fbff;border:1px solid #d9e6f4;border-radius:10px;padding:12px;}
@media (max-width:850px){.resource-hero{grid-template-columns:1fr}.mailpiece-canvas.postcard,.mailpiece-canvas.fsm{width:100%;height:330px}.mailpiece-canvas.flat{width:100%;height:560px}.address-zone{right:38px;width:220px}.barcode-zone{right:44px;width:210px}}

.resource-card-featured { border: 2px solid #15345b; background: #f3f7fc; }
.resource-hero .btn { display:inline-block; margin: 8px 0 12px 0; padding: 10px 14px; border-radius: 8px; background:#15345b; color:#fff; text-decoration:none; font-weight:700; }

/* v31.47 admin dashboard spacing, date columns, scan emphasis, calendar view */
.admin-quicklinks{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 18px;align-items:center}
.admin-quicklinks .button{margin:0;white-space:nowrap;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.dashboard-actions{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));align-items:stretch}
.dashboard-card-scan{background:linear-gradient(135deg,#0b2f5b,#1d4ed8);color:#fff;border-color:#0b2f5b}
.dashboard-card-scan b,.dashboard-card-scan span{color:#fff}.dashboard-card-scan:hover{box-shadow:0 6px 18px rgba(29,78,216,.30)}
.dashboard-table-card{overflow-x:auto}.dashboard-jobs-table{min-width:1220px}.dashboard-jobs-table th{font-size:12px;line-height:1.15;background:#f8fafc;color:#0b2f5b}.dashboard-jobs-table td{font-size:13px;vertical-align:top}
.two-week-calendar{display:grid;grid-template-columns:repeat(7,minmax(118px,1fr));gap:10px;margin-top:14px}
.calendar-day{min-height:142px;border:1px solid #d7e1ee;border-radius:12px;background:#f8fafc;padding:10px;box-sizing:border-box;display:flex;flex-direction:column;gap:4px}
.calendar-day.has-jobs{background:#eef6ff;border-color:#93c5fd;box-shadow:0 2px 8px rgba(29,78,216,.10)}
.calendar-day-head{display:flex;justify-content:space-between;align-items:center;color:#0b2f5b;border-bottom:1px solid #d7e1ee;padding-bottom:5px;margin-bottom:2px}
.calendar-day-head span{font-size:12px;color:#475569;font-weight:700}.calendar-count{font-size:30px;font-weight:900;color:#0b2f5b;line-height:1}.calendar-caption{font-size:12px;color:#64748b;font-weight:700;text-transform:uppercase;letter-spacing:.02em}.calendar-mini{font-size:12px;color:#334155;background:white;border:1px solid #dbe3ef;border-radius:999px;padding:3px 7px;display:inline-block;width:max-content}.calendar-job-link{display:block;font-size:12px;color:#1d4ed8;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-more{font-size:12px;color:#475569;font-weight:700}
@media(max-width:1050px){.two-week-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-jobs-table{min-width:1120px}}

/* v31.48 distinct dashboard action card colors */
.dashboard-card-create{background:linear-gradient(135deg,#f8fbff,#eaf3ff);border-color:#b8d2f0}
.dashboard-card-create:hover{background:linear-gradient(135deg,#f3f8ff,#dcebff)}
.dashboard-card-estimate{background:linear-gradient(135deg,#fffaf0,#fef3c7);border-color:#f6d675}
.dashboard-card-estimate b{color:#7c4a03}
.dashboard-card-estimate:hover{background:linear-gradient(135deg,#fff7e6,#fde68a);border-color:#d97706}
.dashboard-card-postage{background:linear-gradient(135deg,#f0fdf4,#dcfce7);border-color:#9bd8ae}
.dashboard-card-postage b{color:#14532d}
.dashboard-card-postage:hover{background:linear-gradient(135deg,#ecfdf5,#bbf7d0);border-color:#16a34a}
.dashboard-actions .dashboard-card{transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}
.dashboard-actions .dashboard-card:hover{transform:translateY(-1px)}
@media(min-width:1100px){.dashboard-actions{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* v31.49 cleaner Resource Center layout */
.resource-center-redesign{background:linear-gradient(135deg,#ffffff 0%,#f3f7fc 100%);border:1px solid #d8e6f5;}
.resource-hero-clean{grid-template-columns:1.45fr .72fr;}
.resource-center-redesign .eyebrow{margin:0 0 8px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#1d4ed8;font-size:.78rem;}
.resource-center-redesign h1{font-size:2.45rem;margin:0 0 10px;color:#0b2f5b;}
.resource-intro{font-size:1.05rem;line-height:1.55;color:#334155;max-width:760px;margin:0 0 12px;}
.resource-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 auto 20px;}
.resource-feature-card{display:block;text-decoration:none;color:#172033;border-radius:16px;padding:20px;min-height:155px;border:1px solid #d8e1ef;box-shadow:0 4px 14px rgba(15,23,42,.08);transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease;}
.resource-feature-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(15,23,42,.13);border-color:#1d4ed8;}
.resource-feature-card h2{font-size:1.16rem;line-height:1.2;margin:8px 0;color:#0b2f5b;}
.resource-feature-card p{margin:0;color:#334155;line-height:1.42;font-size:.95rem;}
.resource-card-kicker{display:inline-block;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;font-weight:900;border-radius:999px;padding:5px 8px;background:rgba(255,255,255,.7);color:#0b2f5b;}
.resource-feature-blue{background:#eaf3ff;}.resource-feature-green{background:#eaf8ef;}.resource-feature-gold{background:#fff7df;}.resource-feature-slate{background:#eef2f7;}
.resource-section-shell{background:#fff;border:1px solid #dbe5f1;border-radius:16px;padding:20px 22px;margin:0 auto 20px;box-shadow:0 2px 10px rgba(15,23,42,.05);}
.resource-section-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid #e6edf6;padding-bottom:12px;margin-bottom:14px;}
.resource-section-header h2{margin:0 0 4px;color:#0b2f5b;font-size:1.35rem;}
.resource-section-header p{margin:0;color:#64748b;line-height:1.45;}
.resource-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.resource-topic-grid-four{grid-template-columns:repeat(4,minmax(0,1fr));}
.resource-topic-card{display:block;text-decoration:none;color:#1f2937;background:#f8fbff;border:1px solid #d7e6f5;border-radius:13px;padding:15px;min-height:110px;}
.resource-topic-card:hover{background:#eef6ff;border-color:#93c5fd;box-shadow:0 4px 14px rgba(29,78,216,.10);}
.resource-topic-card h3{font-size:1rem;margin:0 0 7px;color:#123a63;}
.resource-topic-card p{margin:0;color:#475569;font-size:.92rem;line-height:1.42;}
.resource-quick-strip{background:#f8fafc;border:1px solid #dbe5f1;}
.resource-quick-strip h2{margin-top:0;}
.quick-reference-row{display:flex;flex-wrap:wrap;gap:10px;}
.quick-reference-row a{display:inline-block;text-decoration:none;font-weight:800;color:#0b2f5b;background:#fff;border:1px solid #d7e1ee;border-radius:999px;padding:9px 12px;}
.quick-reference-row a:hover{background:#eaf3ff;border-color:#93c5fd;}
@media(max-width:1100px){.resource-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.resource-topic-grid,.resource-topic-grid-four{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:700px){.resource-hero-clean{grid-template-columns:1fr}.resource-feature-grid,.resource-topic-grid,.resource-topic-grid-four{grid-template-columns:1fr}.resource-center-redesign h1{font-size:2rem}.resource-section-shell{padding:16px}.resource-feature-card{min-height:0}}

/* v31.56 dashboard search, estimate/final columns, no normal-width horizontal scroll */
main.dashboard-fullwidth{max-width:none;width:calc(100% - 36px);padding:22px 18px;margin:0 auto;box-sizing:border-box;}
.dashboard-search-card{padding:14px 16px;margin-bottom:14px;}
.dashboard-search-form label{margin:0 0 6px;font-weight:800;color:#0b2f5b;}
.dashboard-search-row{display:flex;gap:10px;align-items:center;}
.dashboard-search-row input[type='search']{margin:0;min-width:280px;}
.dashboard-search-row button,.dashboard-search-row .button{white-space:nowrap;}
.dashboard-table-no-scroll{overflow-x:visible;padding:12px;}
.dashboard-jobs-table-compact{table-layout:fixed;width:100%;min-width:0!important;}
.dashboard-jobs-table-compact th,.dashboard-jobs-table-compact td{font-size:12px;padding:7px 6px;line-height:1.2;vertical-align:top;word-break:normal;overflow-wrap:anywhere;}
.dashboard-jobs-table-compact th{white-space:normal;text-align:left;}
.dashboard-jobs-table-compact .job-num{width:9%;font-weight:800;}
.dashboard-jobs-table-compact .job-name-cell{width:12%;}
.dashboard-jobs-table-compact .customer-cell{width:10%;}
.dashboard-jobs-table-compact .wrap-cell{white-space:normal;}
.dashboard-jobs-table-compact .status-pill,.dashboard-jobs-table-compact .payment-badge{font-size:11px;padding:4px 6px;min-width:0;white-space:normal;text-align:center;}
@media(max-width:1150px){.dashboard-table-no-scroll{overflow-x:auto}.dashboard-jobs-table-compact{min-width:1220px!important}.dashboard-search-row{flex-wrap:wrap}}


/* v31.57 customer ordering product-step top cards */
.product-top-cards{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  align-items:stretch;
  margin:10px 0 18px;
}
.product-top-cards .subcard{margin:0;min-height:100%;}
.product-top-card h3{margin-top:0;margin-bottom:8px;}
.product-top-card .note{line-height:1.35;}
.product-top-card label{margin:10px 0 0;}
.product-top-card textarea{min-height:74px;}
.materials-top-card #materials_section .grid{grid-template-columns:1fr;gap:8px;}
.materials-top-card #pickup_section .grid{grid-template-columns:1fr;gap:8px;}
@media(max-width:1250px){.product-top-cards{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:760px){.product-top-cards{grid-template-columns:1fr;}}


/* v31.63 job builder Products step layout fixes */
.job-builder-main{max-width:1440px;width:calc(100% - 32px);}
.product-top-cards{
  display:grid;
  grid-template-columns:repeat(4,minmax(210px,1fr));
  gap:14px;
  align-items:start;
  margin:14px 0 26px;
  clear:both;
}
.product-top-cards .subcard,
.product-top-card{
  margin:0 !important;
  min-height:0 !important;
  height:auto !important;
  box-sizing:border-box;
  overflow:visible;
  overflow-wrap:anywhere;
  word-break:normal;
}
.product-top-card h3{font-size:16px;line-height:1.2;margin:0 0 8px;}
.product-top-card .note{font-size:13px;line-height:1.35;margin:6px 0 10px;}
.product-top-card label{font-size:13px;line-height:1.25;margin:8px 0 0;}
.product-top-card select,.product-top-card input,.product-top-card textarea{font-size:13px;padding:8px;}
#product_list_quantity_text{font-weight:700;color:#0b2f5b;}

#primary_product_card{
  display:grid;
  grid-template-columns:minmax(280px,420px) minmax(0,1fr);
  gap:12px 24px;
  align-items:start;
  margin-top:26px;
  overflow:visible;
}
#primary_product_card>h3{grid-column:1/-1;margin-bottom:0;}
#primary_product_card>.turnaround-summary,
#primary_product_card>.product-preview-grid{grid-column:1;}
#primary_product_card>.turnaround-summary{margin:0 0 12px;}
#primary_product_card>.product-preview-grid{
  display:block;
  background:#fff;
  border:1px solid #d7e1ee;
  border-radius:12px;
  padding:12px;
  margin:0;
}
#primary_product_card>.product-preview-grid .product-preview-image{
  width:100%;
  max-width:390px;
  max-height:255px;
  object-fit:contain;
  display:block;
  margin:0 auto 10px;
}
#primary_product_card>.product-preview-grid .note{margin:8px 0;}
#primary_product_card> :not(h3):not(.turnaround-summary):not(.product-preview-grid){grid-column:2;min-width:0;}
#primary_product_card>.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;}
#saved_artwork_card{margin-top:0;}
#saved_art_preview.product-preview-grid{grid-template-columns:minmax(140px,240px) minmax(0,1fr);}

@media(max-width:1350px){
  .product-top-cards{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:900px){
  .job-builder-main{width:auto;max-width:1200px;}
  .product-top-cards{grid-template-columns:1fr;}
  #primary_product_card{display:block;}
  #primary_product_card>.product-preview-grid{margin-bottom:14px;}
  #primary_product_card>.grid{grid-template-columns:1fr;}
}

/* v31.65 Products order page layout: product image first, turnaround below image, saved art below turnaround */
#primary_product_card{display:block;margin-top:26px;overflow:visible;}
.primary-product-layout{display:grid;grid-template-columns:minmax(300px,420px) minmax(0,1fr);gap:18px 24px;align-items:start;}
.primary-product-left,.primary-product-right{min-width:0;}
.product-preview-stack{display:block!important;background:#fff;border:1px solid #d7e1ee;border-radius:12px;padding:12px;margin:0 0 12px!important;}
.product-preview-stack .product-preview-image{width:100%;max-width:390px;max-height:255px;object-fit:contain;display:block;margin:0 auto 10px;}
.product-preview-stack .note{margin:8px 0;}
.product-turnaround-below-image,.saved-art-under-turnaround{width:100%;box-sizing:border-box;margin:0 0 12px!important;}
.primary-product-right>.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;}
.primary-product-right #booklet_pages_wrap,.primary-product-right #booklet_binding_card{margin:12px 0;}
#saved_art_preview.product-preview-grid{grid-template-columns:1fr;gap:10px;}
#saved_art_preview .product-preview-image{max-height:190px;}
#regular_components_card.components-gated-hidden{display:none!important;}
@media(max-width:900px){.primary-product-layout{display:block}.primary-product-right>.grid{grid-template-columns:1fr}.product-preview-stack{margin-bottom:14px!important}}


/* v31.68 Envelope Mailing / Inserting layout: keep setup card compact until Yes, then expand package builder full width */
#envelope_package_builder.envelope-expanded{
  grid-column:1 / -1;
  width:100%;
}
#envelope_package_builder.envelope-expanded #envelope_package_options{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 18px;
  align-items:start;
  margin-top:12px;
}
#envelope_package_builder.envelope-expanded #envelope_first_product_card,
#envelope_package_builder.envelope-expanded #envelope_insert_sheet_rows,
#envelope_package_builder.envelope-expanded .envelope-additional-card{
  grid-column:1 / -1;
  width:100%;
  box-sizing:border-box;
}
#envelope_package_builder.envelope-expanded #envelope_first_product_card{
  margin-top:4px;
}
#envelope_package_builder.envelope-expanded #envelope_first_product_card .grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
#envelope_package_builder.envelope-expanded #envelope_insert_sheet_rows,
#envelope_package_builder.envelope-expanded #envelope_additional_insert_rows{
  display:block;
  width:100%;
}
#envelope_package_builder.envelope-expanded #envelope_insert_sheet_rows .print-component-row,
#envelope_package_builder.envelope-expanded #envelope_additional_insert_rows .print-component-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px 14px;
  align-items:start;
  margin:12px 0;
}
#envelope_package_builder.envelope-expanded #envelope_insert_sheet_rows .print-component-row > h4,
#envelope_package_builder.envelope-expanded #envelope_additional_insert_rows .print-component-row > h4,
#envelope_package_builder.envelope-expanded #envelope_insert_sheet_rows .print-component-row > .envelope-forced-note,
#envelope_package_builder.envelope-expanded #envelope_additional_insert_rows .print-component-row > .envelope-forced-note,
#envelope_package_builder.envelope-expanded #envelope_insert_sheet_rows .print-component-row > .component-saved-art-preview,
#envelope_package_builder.envelope-expanded #envelope_additional_insert_rows .print-component-row > .component-saved-art-preview{
  grid-column:1 / -1;
}
@media(max-width:1100px){
  #envelope_package_builder.envelope-expanded #envelope_package_options,
  #envelope_package_builder.envelope-expanded #envelope_first_product_card .grid{grid-template-columns:1fr;}
  #envelope_package_builder.envelope-expanded #envelope_insert_sheet_rows .print-component-row,
  #envelope_package_builder.envelope-expanded #envelope_additional_insert_rows .print-component-row{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:700px){
  #envelope_package_builder.envelope-expanded #envelope_insert_sheet_rows .print-component-row,
  #envelope_package_builder.envelope-expanded #envelope_additional_insert_rows .print-component-row{grid-template-columns:1fr;}
}

/* v31.77 Proof approval/share workflow */
.proof-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;border-radius:8px;padding:8px 10px;margin:0 0 10px;background:#eef3f8;color:#10243b;}
.proof-heading.proof-pending{background:#ffe08a;color:#3d2a00;}
.proof-heading.proof-rejected{background:#c62828;color:#fff;}
.proof-heading.proof-approved{background:#2e7d32;color:#fff;}
.proof-status-pill{display:inline-block;border-radius:999px;padding:3px 9px;font-size:.78rem;font-weight:700;background:#e9eef5;color:#18344f;white-space:nowrap;}
.proof-status-pill.proof-pending,.proof-heading.proof-pending .proof-status-pill{background:#ffc107;color:#3d2a00;}
.proof-status-pill.proof-rejected,.proof-heading.proof-rejected .proof-status-pill{background:#b71c1c;color:#fff;}
.proof-status-pill.proof-approved,.proof-heading.proof-approved .proof-status-pill{background:#1b5e20;color:#fff;}
.proof-file-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.proof-actions{margin-top:10px;display:flex;flex-direction:column;gap:8px;}
.proof-actions>.button{align-self:flex-start;}
.proof-approved-text{color:#1b5e20;}
.proof-rejected-text{color:#b71c1c;}
.share-proof-form{display:grid;grid-template-columns:minmax(160px,1fr) minmax(210px,1.2fr) auto;gap:8px;align-items:end;margin-top:8px;padding:10px;background:#f7fafc;border:1px solid #dbe6f1;border-radius:10px;}
.share-proof-form input{width:100%;box-sizing:border-box;}
.proof-share-history{margin-top:4px;display:flex;flex-direction:column;gap:2px;color:#52677a;}
.proof-share-public{max-width:980px;margin:20px auto;}
.proof-share-public .proof-frame{width:100%;height:72vh;border:1px solid #cbd8e6;border-radius:10px;background:#fff;}
.proof-share-public .viewer-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.proof-share-public .viewer-form .full{grid-column:1 / -1;}
.proof-share-public .decision-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px;}
@media(max-width:800px){.share-proof-form,.proof-share-public .viewer-form{grid-template-columns:1fr}.proof-share-public .viewer-form .full{grid-column:auto}}

/* v31.78 Proof tab/page layout */
.proof-page-card .proof-page-file-card {
  align-items: flex-start;
  gap: 18px;
  padding: 16px;
}
.proof-page-thumb {
  max-width: 280px;
  max-height: 220px;
  object-fit: contain;
}
.proof-page-actions {
  margin-top: 12px;
}
.proof-share-wide {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  max-width: 780px;
}
.proof-share-history {
  margin-top: 10px;
  display: grid;
  gap: 4px;
}
.proof-share-history .share-row {
  display: block;
}
@media (max-width: 760px){
  .proof-page-card .proof-page-file-card { display:block; }
  .proof-page-thumb { max-width:100%; width:100%; height:auto; }
  .proof-share-wide { grid-template-columns: 1fr; }
}

/* v31.80 proof review layout */
.proof-decision-card{border-left:5px solid #f4c542;background:#fffaf0;}
.portal-proof-decision-form{display:grid;gap:12px;}
.portal-proof-decision-form textarea{min-height:80px;}
.proof-page-card .decision-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px;}
.proof-share-public .proof-decision-card{margin-top:0;}


/* v31.81 proof tab status coloring */
.tab-button.proof-tab-button{display:inline-flex;align-items:center;gap:6px;}
.tab-button.proof-tab-button.proof-pending{background:#ffe08a;color:#3d2a00;border-color:#f2b600;}
.tab-button.proof-tab-button.proof-rejected{background:#c62828;color:#fff;border-color:#9f1717;}
.tab-button.proof-tab-button.proof-approved{background:#2e7d32;color:#fff;border-color:#1f5d23;}
.tab-button.proof-tab-button.active.proof-pending{background:#f9c74f;color:#3d2a00;border-color:#d99b00;}
.tab-button.proof-tab-button.active.proof-rejected{background:#b71c1c;color:#fff;border-color:#8a1010;}
.tab-button.proof-tab-button.active.proof-approved{background:#1b5e20;color:#fff;border-color:#124317;}
.tab-status-text{font-size:.78rem;font-weight:800;opacity:.95;}
.proof-share-history .share-row{display:block;margin-top:3px;}

/* v31.82 compact proof viewer / page controls */
.proof-page-card .compact-note{margin-top:2px;margin-bottom:8px;}
.compact-proof-card{gap:12px;padding:12px;margin:10px 0;align-items:flex-start;}
.compact-proof-thumb{max-height:120px;width:auto;}
.compact-proof-actions{margin-top:8px;display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;}
.compact-share-proof-form{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end;margin:0;flex:1 1 560px;}
.compact-share-proof-form input{margin:0;}
.compact-proof-share-history{flex-basis:100%;margin-top:4px;}
.proof-view-button{white-space:nowrap;}
.proof-viewer-page{max-width:1040px;margin:12px auto;}
.proof-review-summary,.compact-proof-review-summary{padding:12px 16px;margin-bottom:10px;}
.proof-review-title-row{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;}
.proof-review-title-row h1{margin:0 0 6px 0;}
.proof-review-title-row p{margin:0;line-height:1.35;}
.proof-page-count-box{min-width:130px;text-align:center;background:#fff;border:1px solid #d7e2ef;border-radius:10px;padding:10px 12px;box-shadow:0 1px 2px rgba(15,35,58,.06);}
.proof-page-count-box .page-label{display:block;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#607085;margin-bottom:2px;}
.compact-proof-decision-card{padding:12px 16px;margin:10px 0;}
.compact-proof-decision-card h2{margin:0 0 8px 0;}
.compact-viewer-form{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;}
.compact-viewer-form label{margin:0;}
.compact-viewer-form textarea{min-height:48px;}
.compact-viewer-form .full{grid-column:1 / -1;}
.compact-decision-actions{margin-top:0;display:flex;gap:8px;}
.compact-proof-file-card{padding:12px 16px;margin-top:10px;}
.proof-viewer-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px;}
.proof-toolbar-page{font-weight:800;color:#24384f;margin-right:auto;}
.proof-viewer-toolbar button[disabled]{opacity:.45;cursor:not-allowed;}
.proof-share-public .proof-frame,.proof-viewer-page .proof-frame{width:100%;height:70vh;border:1px solid #cbd8e6;border-radius:10px;background:#fff;}
@media(max-width:800px){
  .proof-review-title-row{flex-direction:column;}
  .proof-page-count-box{text-align:left;}
  .compact-viewer-form,.compact-share-proof-form{grid-template-columns:1fr;}
  .compact-viewer-form .full{grid-column:auto;}
  .proof-toolbar-page{margin-right:0;}
}

/* v31.83 proof viewer navigation + proof tab page cleanup */
.proof-page-file-card.compact-proof-card{display:block;padding:12px 14px;}
.proof-page-file-card .file-card-info{width:100%;}
.proof-primary-button,.proof-share-button,.large-action-button{font-size:1rem;font-weight:800;padding:10px 16px;border-radius:10px;line-height:1.2;}
.proof-primary-button{background:#0b5cab;color:#fff;border-color:#0b5cab;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:42px;}
.proof-share-button{background:#123b63;color:#fff;border:1px solid #123b63;min-height:42px;white-space:nowrap;}
.compact-share-proof-form{align-items:center;}
.compact-share-proof-form input{min-height:42px;}
.compact-proof-actions{align-items:center;}
.compact-proof-viewer-page{margin-top:8px;}
.proof-review-tight{padding:8px 12px;margin-bottom:6px;}
.proof-review-title-row h1{font-size:1.35rem;margin:0 0 3px 0;}
.proof-review-title-row p{font-size:.92rem;line-height:1.25;}
.compact-page-count-box{padding:7px 10px;min-width:116px;}
.proof-decision-tight{padding:8px 12px;margin:6px 0;}
.proof-decision-tight h2{font-size:1.12rem;margin:0 0 6px 0;}
.proof-decision-form-tight{gap:6px 10px;}
.proof-decision-form-tight input{min-height:36px;}
.proof-decision-form-tight textarea{min-height:42px;}
.proof-file-viewer-tight{padding:8px 12px;margin-top:6px;}
.compact-proof-toolbar{margin-bottom:6px;}
.proof-nav-button{font-weight:800;min-width:86px;}
.proof-image-scrollbox{width:100%;height:72vh;overflow:auto;border:1px solid #cbd8e6;border-radius:10px;background:#f4f7fb;text-align:left;padding:10px;box-sizing:border-box;}
.proof-page-image{max-width:none;width:auto;height:auto;background:#fff;box-shadow:0 1px 8px rgba(0,0,0,.12);}
@media(max-width:800px){.compact-share-proof-form{grid-template-columns:1fr}.proof-primary-button,.proof-share-button{width:100%;}.proof-image-scrollbox{height:68vh;}}

/* v31.84 proof tab preview + file deletion controls */
.proof-page-two-column-card{
  display:grid;
  grid-template-columns:minmax(220px, 34%) 1fr;
  gap:18px;
  align-items:start;
}
.proof-tab-art-preview{
  background:#fff;
  border:1px solid #d7dee8;
  border-radius:12px;
  padding:10px;
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.proof-tab-preview-image{
  max-width:100%;
  max-height:320px;
  object-fit:contain;
  display:block;
  border-radius:8px;
  background:#fff;
}
.proof-tab-info{min-width:0;}
.proof-tab-actions{align-items:flex-start;}
.proof-view-large-button,
.proof-share-large-button{
  font-size:1rem;
  padding:12px 18px;
  min-height:44px;
  font-weight:800;
}
.proof-share-card{
  width:100%;
  margin-top:10px;
  padding:12px;
  border:1px solid #e1e7ef;
  border-radius:12px;
  background:#f8fafc;
}
.inline-delete-form{display:inline-block;margin:0 0 0 8px;}
.job-files-table .inline-delete-form{margin:0;}
button.danger.small, .small.danger{
  background:#b91c1c;
  color:#fff;
  border-color:#991b1b;
}
@media (max-width: 850px){
  .proof-page-two-column-card{grid-template-columns:1fr;}
  .proof-tab-art-preview{min-height:160px;}
}


/* v31.85 proof share preview placement + download proof button */
.proof-page-single-card{display:block;padding:12px 14px;}
.proof-share-panel{
  margin-top:12px;
  padding:12px;
  border:1px solid #dbe6f1;
  border-radius:12px;
  background:#f8fafc;
}
.proof-share-preview{
  background:#fff;
  border:1px solid #d7dee8;
  border-radius:12px;
  padding:10px;
  min-height:210px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  margin-bottom:10px;
}
.proof-share-preview-image{
  max-width:100%;
  max-height:300px;
  object-fit:contain;
  display:block;
  border-radius:8px;
  background:#fff;
}
.proof-share-panel .proof-share-card{
  margin-top:0;
  width:100%;
  max-width:none;
  box-sizing:border-box;
}
.proof-share-panel .compact-proof-share-history{
  margin-top:8px;
}
.proof-download-button{
  background:#27496d;
  color:#fff;
  border-color:#27496d;
  font-weight:800;
}
@media(max-width:800px){
  .proof-share-preview{min-height:150px;}
}


/* v31.88 About page inline capability map */
.plavidian-capability-map{
  background:linear-gradient(180deg,#f7fbff,#ffffff);
  border:1px solid #dce6f2;
  border-radius:16px;
  padding:18px;
  box-shadow:0 8px 22px rgba(15,45,80,.08);
}
.capability-map-title{
  font-size:1.35rem;
  font-weight:900;
  color:#123a63;
  margin-bottom:14px;
  line-height:1.15;
}
.capability-flow{
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;
  gap:10px;
  align-items:stretch;
}
.capability-step{
  background:#fff;
  border:1px solid #cbdcf0;
  border-radius:14px;
  padding:12px 10px;
  text-align:center;
  min-height:118px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.capability-icon{
  width:28px;
  height:28px;
  border-radius:999px;
  background:#123a63;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  margin-bottom:6px;
}
.capability-step h3{
  margin:2px 0 8px;
  color:#123a63;
  font-size:1rem;
}
.capability-step p{
  margin:1px 0;
  font-size:.88rem;
  color:#334155;
}
.capability-arrow{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.5rem;
  font-weight:900;
  color:#123a63;
}
.capability-cert-card{
  margin-top:16px;
  background:#123a63;
  color:#fff;
  border-radius:16px;
  padding:18px;
  text-align:center;
}
.capability-cert-card h3{
  margin:0 0 8px;
  font-size:1.25rem;
  color:#fff;
}
.capability-cert-card p{
  margin:6px 0;
  color:#dbeafe;
  line-height:1.35;
}
@media(max-width:980px){
  .capability-flow{
    grid-template-columns:1fr;
  }
  .capability-arrow{
    transform:rotate(90deg);
    min-height:20px;
  }
}


/* v31.89 product image settings */
.settings-subhead{
  margin:20px 0 8px;
  color:#123a63;
  border-bottom:1px solid #d8e4f1;
  padding-bottom:6px;
}
.product-image-settings-table table{min-width:900px;}
.product-image-preview-cell{min-width:170px;}
.settings-product-image-preview{
  max-width:150px;
  max-height:95px;
  object-fit:contain;
  border:1px solid #d6e1ec;
  border-radius:8px;
  background:#fff;
  padding:6px;
}
.product-image-settings-table textarea{
  width:100%;
  min-width:280px;
}
.product-image-settings-table input[readonly]{
  background:#f5f7fb;
  font-weight:700;
}

.status-proof,.status-approval{background:#ca8a04;color:#111827;}

.highlighted-job-identity,.highlight-field{border:2px solid #f59e0b!important;background:#fff7ed!important;box-shadow:0 0 0 3px rgba(245,158,11,.18);}
.highlighted-job-identity h3{margin-top:0;color:#7c2d12;}

.pricing-preview-card{border:2px solid #d6e4f2;background:#f8fbff;margin-top:12px}.pricing-preview-card h3{margin-top:0}.pricing-preview-card p{margin:6px 0}.turnaround-card[style*="display: none"]{display:none!important;}

/* v31.107 saved art checkbox / version name reveal */
.saved-art-save-card{border:1px solid #d6e4f2;background:#f8fbff}
.saved-art-save-label{display:flex;align-items:center;gap:12px;font-weight:700}
.large-checkbox{width:24px!important;height:24px!important;min-width:24px;accent-color:#113A5C;cursor:pointer}
.saved-art-version-wrap{margin-top:10px;padding:10px;border-left:4px solid #113A5C;background:#fff}
.saved-art-version-input{font-weight:600}

/* v31.114 print-only product-first job creation */
.print-only-product-first-picker{border:2px solid #d7e6f5;background:#f8fbff}
.selectable-product-gallery{margin-top:14px}
.selectable-product-card{appearance:none;background:#fff;color:#1f2937;text-align:left;width:100%;border:1px solid #d7e1ee;border-radius:14px;padding:16px;box-shadow:0 2px 10px #0000000d;cursor:pointer;transition:border-color .15s, box-shadow .15s, transform .15s}
.selectable-product-card:hover{border-color:#1d4ed8;box-shadow:0 8px 24px #1d4ed822;transform:translateY(-1px)}
.selectable-product-card.selected{border:3px solid #113A5C;background:#eef6ff}
.selectable-product-card img{width:100%;height:180px;object-fit:contain;background:#f8fafc;border-radius:10px}
.selectable-product-card h2{margin:12px 0 6px;color:#0b2f5b;font-size:20px}
.selectable-product-card p{font-weight:400;color:#475569;min-height:42px}
.select-product-pill{display:inline-block;background:#113A5C;color:#fff;border-radius:999px;padding:7px 11px;font-weight:800;font-size:13px;margin-top:8px}
.selected-print-product-summary{border:1px solid #cfe0f2;border-radius:10px;background:#f8fbff;padding:12px;margin:12px 0}
.selected-print-product-summary strong{display:block;font-size:24px;color:#0b2f5b;margin:4px 0 10px}

/* v31.116 production/staffing calendar refinements */
.page-subtitle-row{display:flex;align-items:center;justify-content:center;gap:14px;margin:6px 0 12px;flex-wrap:wrap}.production-date-title{font-size:20px;font-weight:900;color:#0b2f5b;background:#f8fafc;border:1px solid #dbe3ef;border-radius:999px;padding:8px 16px}.calendar-day.selected-day{outline:3px solid #0b2f5b;background:#fff7ed;border-color:#fb923c}.dashboard-dueout-card{margin-top:16px}.dashboard-two-week-calendar{margin-top:10px}.production-capacity-table{min-width:720px}.production-capacity-table .muted{color:#64748b;font-size:12px}.staffing-page-wide .staffing-calendar-scroll{overflow-x:auto}.date-staffing-table{min-width:2550px}.date-staffing-table th:first-child,.date-staffing-table td:first-child{width:220px}.date-staffing-table th:not(:first-child),.date-staffing-table td:not(:first-child){width:165px;vertical-align:top}.date-capacity-cell{background:#fbfdff}.date-capacity-cell label{display:block;font-size:11px;font-weight:800;color:#475569;margin:0 0 5px}.date-capacity-cell input{width:62px!important;margin-left:4px}.date-capacity-cell textarea{width:100%;min-height:42px;font-size:11px;line-height:1.2}.staffing-page-wide .admin-table-scroll .sticky-col{position:sticky;left:0}.staffing-page-wide .date-staffing-table th.sticky-col{background:#0b2f5b;color:#fff;z-index:4}.staffing-page-wide .date-staffing-table td.sticky-col{background:#fff;z-index:3}
@media(max-width:900px){.production-date-title{font-size:16px}.date-staffing-table{min-width:2200px}.page-subtitle-row{justify-content:flex-start}}
.admin-table-fit{width:100%;overflow-x:auto;border:1px solid #dbe3ef;border-radius:10px;background:#fff;margin:8px 0 18px;}


/* v31.118 AAPC member logo and Resource Center capability image repair */
.affiliation-card{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;background:#fff;border:1px solid #dce6f2;}
.affiliation-card .eyebrow{margin:0 0 4px;color:#0b2f5b;font-weight:900;text-transform:uppercase;letter-spacing:.08em;font-size:.78rem;}
.aapc-member-logo{display:block;max-width:450px;width:100%;height:auto;object-fit:contain;}
.home-affiliation-card{margin-top:22px;text-align:center;justify-content:center;}
.home-affiliation-card .aapc-member-logo{max-width:420px;}
.about-affiliation-card{margin-top:18px;}
.about-affiliation-card > div{max-width:650px;}
.resource-hero-clean img{object-fit:contain;max-height:320px;padding:12px;}
@media(max-width:700px){.affiliation-card{justify-content:center;text-align:center}.aapc-member-logo{max-width:320px}}

/* v31.119: Print Components readability and vendor routing */
.print-components-table-wrap{overflow-x:auto;border:1px solid #dbe3ef;border-radius:10px;background:#fff;margin:8px 0 14px;}
.print-components-table{min-width:1420px;table-layout:fixed;}
.print-components-table th{white-space:normal;line-height:1.15;}
.print-components-table td{vertical-align:top;}
.print-components-table input,.print-components-table select{font-size:13px;line-height:1.25;margin-top:0;}
.print-components-table select{min-width:100%;text-overflow:clip;}
.print-components-table th:nth-child(1),.print-components-table td:nth-child(1){width:210px;}
.print-components-table th:nth-child(2),.print-components-table td:nth-child(2){width:90px;}
.print-components-table th:nth-child(3),.print-components-table td:nth-child(3){width:170px;}
.print-components-table th:nth-child(4),.print-components-table td:nth-child(4){width:150px;}
.print-components-table th:nth-child(5),.print-components-table td:nth-child(5){width:220px;}
.print-components-table th:nth-child(6),.print-components-table td:nth-child(6){width:190px;}
.print-components-table th:nth-child(7),.print-components-table td:nth-child(7){width:170px;}
.print-components-table th:nth-child(8),.print-components-table td:nth-child(8){width:120px;}
.print-components-table th:nth-child(9),.print-components-table td:nth-child(9){width:90px;}
.print-components-table .vendor-other-input{margin-top:6px;}

/* v31.121 job finance / components layout */
main.job-detail-wide{max-width:1680px;width:calc(100vw - 44px);}
.finance-page-card{overflow:visible;}
.finance-summary-layout{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:18px;align-items:start;}
.finance-summary-left>.card,.finance-summary-right>.card{margin-bottom:0;}
.finance-summary-right{text-align:right;}
.job-cost-card{background:#fbfdff;border:1px solid #dbe3ef;}
.job-cost-card h2{text-align:right;margin-top:0;}
.job-cost-table th,.job-cost-table td{text-align:right;}
.job-cost-table th:first-child,.job-cost-table td:first-child{text-align:left;}
.job-cost-total td{font-weight:900;border-top:2px solid #0b2f5b;}
.job-cost-margin td{font-weight:900;color:#0b2f5b;}
.print-components-card,.service-components-card{overflow:visible;}
.print-components-table-wrap,.service-components-table-wrap{overflow-x:visible;}
.print-components-table{min-width:0!important;width:100%;table-layout:fixed;font-size:12px;}
.print-components-table input,.print-components-table select{font-size:12px;padding:6px 5px;white-space:normal;}
.print-components-table th:nth-child(1),.print-components-table td:nth-child(1){width:17%;}
.print-components-table th:nth-child(2),.print-components-table td:nth-child(2){width:7%;}
.print-components-table th:nth-child(3),.print-components-table td:nth-child(3){width:13%;}
.print-components-table th:nth-child(4),.print-components-table td:nth-child(4){width:11%;}
.print-components-table th:nth-child(5),.print-components-table td:nth-child(5){width:16%;}
.print-components-table th:nth-child(6),.print-components-table td:nth-child(6){width:14%;}
.print-components-table th:nth-child(7),.print-components-table td:nth-child(7){width:11%;}
.print-components-table th:nth-child(8),.print-components-table td:nth-child(8){width:7%;}
.print-components-table th:nth-child(9),.print-components-table td:nth-child(9){width:4%;}
.service-components-table{min-width:0!important;width:100%;table-layout:fixed;}
.service-components-table th:nth-child(1),.service-components-table td:nth-child(1){width:13%;}
.service-components-table th:nth-child(2),.service-components-table td:nth-child(2){width:43%;}
.service-components-table th:nth-child(3),.service-components-table td:nth-child(3){width:12%;}
.service-components-table th:nth-child(4),.service-components-table td:nth-child(4){width:13%;}
.service-components-table th:nth-child(5),.service-components-table td:nth-child(5){width:12%;text-align:right;}
.service-components-table th:nth-child(6),.service-components-table td:nth-child(6){width:7%;}
@media(max-width:1100px){main.job-detail-wide{width:auto;max-width:1200px}.finance-summary-layout{grid-template-columns:1fr}.finance-summary-right,.job-cost-card h2{text-align:left}.print-components-table-wrap,.service-components-table-wrap{overflow-x:auto}.print-components-table{min-width:1200px!important}.service-components-table{min-width:900px!important}}

/* v31.122 production plan / job summary refinements */
.job-component-summary{margin-top:12px;text-align:left}.compact-summary-list{margin:6px 0 10px 18px;padding:0}.compact-summary-list li{margin:3px 0;line-height:1.3}.summary-customer-action-form{margin-top:12px}.production-plan-edit-table{min-width:0!important;width:100%;table-layout:fixed}.production-plan-edit-table th:nth-child(1),.production-plan-edit-table td:nth-child(1){width:17%}.production-plan-edit-table th:nth-child(2),.production-plan-edit-table td:nth-child(2){width:15%}.production-plan-edit-table th:nth-child(3),.production-plan-edit-table td:nth-child(3){width:9%}.production-plan-edit-table th:nth-child(4),.production-plan-edit-table td:nth-child(4){width:9%}.production-plan-edit-table th:nth-child(5),.production-plan-edit-table td:nth-child(5){width:15%}.production-plan-edit-table th:nth-child(6),.production-plan-edit-table td:nth-child(6){width:11%}.production-plan-edit-table th:nth-child(7),.production-plan-edit-table td:nth-child(7){width:18%}.production-plan-edit-table th:nth-child(8),.production-plan-edit-table td:nth-child(8){width:6%}.production-plan-edit-table input,.production-plan-edit-table select{font-size:12px;padding:6px 5px;width:100%}.production-plan-edit-wrap{overflow-x:visible}main.job-detail-wide{max-width:1860px}.print-components-table-wrap{overflow-x:visible!important}.print-components-table select,.print-components-table input{width:100%}
@media(max-width:1200px){.production-plan-edit-wrap{overflow-x:auto}.production-plan-edit-table{min-width:1120px!important}.print-components-table-wrap{overflow-x:auto!important}}

/* v31.125 Services/Product pricing and Mail Owner admin cleanup */
.service-price-grid{display:grid;grid-template-columns:minmax(260px,1.4fr) 160px 180px;gap:0;border:1px solid #dbe3ef;border-radius:10px;overflow:hidden;margin:14px 0;background:#fff;max-width:980px}.service-price-head{background:#0b2f5b;color:#fff;font-weight:900;padding:10px 12px}.service-price-label,.service-price-unit{padding:10px 12px;border-top:1px solid #e5edf6;margin:0}.service-price-label{font-weight:800}.service-price-unit{color:#475569}.service-price-input{border:0;border-top:1px solid #e5edf6;border-left:1px solid #e5edf6;border-radius:0;margin:0;width:100%;padding:10px 12px}.product-card-link{text-decoration:none;color:inherit;display:block}.product-card-link:hover{box-shadow:0 8px 24px rgba(11,47,91,.16);transform:translateY(-1px)}.pricing-row-table{overflow-x:auto}.pricing-row-table table{min-width:1120px}.pricing-row-table input{width:100%;font-size:13px}.danger{background:#991b1b!important;color:#fff!important;border-color:#991b1b!important}@media(max-width:800px){.service-price-grid{grid-template-columns:1fr}.service-price-head:nth-child(2),.service-price-head:nth-child(3){display:none}.service-price-unit{border-top:0;padding-top:0}.service-price-input{border-left:0}.service-price-label{padding-bottom:2px}}

/* v31.126 product pricing matrix readability */
.product-pricing-detail-card { max-width: none; }
.product-pricing-wide-table { overflow-x: visible; }
.product-pricing-wide-table table { width: 100%; min-width: 0; table-layout: auto; }
.product-pricing-wide-table th, .product-pricing-wide-table td { white-space: normal; vertical-align: top; }
.product-pricing-wide-table select, .product-pricing-wide-table input { width: 100%; min-width: 130px; }
.product-pricing-wide-table td:nth-child(4) select { min-width: 240px; }
.pricing-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.notice-card { border-left: 5px solid #194f90; }
/* v31.131: keep job ticket table rules below wrapped text instead of crossing production notes */
.job-ticket-plan-table{border-collapse:separate;border-spacing:0;}
.job-ticket-plan-table th,.job-ticket-plan-table td{line-height:1.55;padding:10px 9px;border-bottom:0;}
.job-ticket-plan-table tr:not(:last-child) td{border-bottom:1px solid #dfe7f0;}
.job-ticket-plan-table td:nth-child(5){overflow-wrap:anywhere;}

/* v31.135 customer notification alignment */
.checkbox-stack{display:grid;grid-template-columns:1fr;gap:8px;margin-top:8px}.checkbox-stack label{display:grid;grid-template-columns:22px 1fr;align-items:start;gap:8px;margin:0;font-weight:600}.checkbox-stack input[type=checkbox]{width:16px;height:16px;margin:2px 0 0}.subcard table td{vertical-align:top}

/* v31.137 admin nav/footer streamlining */
.site-footer .footer-admin-links{margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #e2e8f0;display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap}
.site-footer .footer-legal-links{display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap}

/* v31.155 broker / consultant customer experience */
.pipeline-grid,.trust-grid,.saved-art-library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:10px}
.pipeline-tile{border:1px solid #d8e4f2;border-radius:12px;background:#f8fbff;padding:14px;text-align:center}
.pipeline-tile b{display:block;font-size:28px;color:#0f2f57}.pipeline-tile span{font-weight:700;color:#24435f}
.price-status-badge{display:inline-block;border-radius:999px;background:#eef6ff;border:1px solid #cfe3f8;color:#0f2f57;padding:3px 8px;font-size:12px;font-weight:700;white-space:nowrap}
.customer-order-summary{background:#fbfdff;border-left:4px solid #1d4ed8}.proof-certificate{background:#fffdf4;border-left:4px solid #d97706;margin-top:8px}.saved-art-library-thumb{width:100%;max-height:180px;object-fit:contain;background:#fff;border:1px solid #d7e1ee;border-radius:8px;padding:6px}.broker-public-page .trust-grid>div{border:1px solid #d7e1ee;border-radius:12px;background:#fff;padding:14px}.broker-consultant-job-card{border-left:4px solid #0f2f57;background:#f8fbff}

/* v31.156 dashboard readability: prevent status/pricing text from spilling into adjacent columns. */
.dashboard-table-card,
.dashboard-table-no-scroll{overflow-x:auto!important;}
.dashboard-jobs-table-compact{
  table-layout:auto!important;
  width:max-content!important;
  min-width:1780px!important;
  border-collapse:collapse;
}
.dashboard-jobs-table-compact th,
.dashboard-jobs-table-compact td{
  max-width:170px;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  vertical-align:top;
}
.dashboard-jobs-table-compact .job-num{min-width:96px;max-width:110px;}
.dashboard-jobs-table-compact .job-name-cell{min-width:170px;max-width:220px;}
.dashboard-jobs-table-compact .customer-cell{min-width:150px;max-width:200px;}
.dashboard-jobs-table-compact .status-pill,
.dashboard-jobs-table-compact .price-status-badge,
.dashboard-jobs-table-compact .payment-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:150px;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  line-height:1.15;
  text-align:center;
}
.customer-order-summary-finance{margin-bottom:14px;}
.finance-page-card > .customer-order-summary-finance{border-color:#cfe3f8;background:#f8fbff;}

/* v31.157: materials page full-width and dashboard/summary layout fixes */
.product-top-cards .full-width-materials-card,
.full-width-materials-card{
  grid-column:1 / -1;
  width:100%;
}
.full-width-materials-card #materials_section .grid,
.full-width-materials-card #pickup_section .grid{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}
.job-summary-top-grid{align-items:start;}
.summary-right-stack{display:flex;flex-direction:column;gap:12px;min-width:0;}
.summary-right-stack .card{margin-top:0;}
.dashboard-jobs-table-compact td,
.dashboard-jobs-table-compact th{box-sizing:border-box;}
.dashboard-jobs-table-compact .status-pill,
.dashboard-jobs-table-compact .price-status-badge,
.dashboard-jobs-table-compact .payment-badge{max-width:100%;white-space:normal!important;overflow-wrap:anywhere!important;}
.dashboard-jobs-table-compact .required-action-cell{min-width:160px;max-width:210px;}
.dashboard-jobs-table-compact .pricing-status-cell{min-width:160px;max-width:190px;}
.dashboard-jobs-table-compact .status-cell{min-width:135px;max-width:170px;}
@media(max-width:900px){.job-summary-top-grid{grid-template-columns:1fr!important;}}


/* v31.158 dashboard no-horizontal-scroll cleanup */
.dashboard-table-card,
.dashboard-table-no-scroll{
  overflow-x:visible!important;
  width:100%;
  max-width:100%;
}
.dashboard-jobs-table-compact{
  table-layout:fixed!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  border-collapse:collapse;
}
.dashboard-jobs-table-compact th,
.dashboard-jobs-table-compact td{
  font-size:10.5px!important;
  line-height:1.16!important;
  padding:5px 4px!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  vertical-align:top;
  max-width:none!important;
}
.dashboard-jobs-table-compact th{
  font-size:10px!important;
  line-height:1.08!important;
  font-weight:800;
}
.dashboard-jobs-table-compact .job-num{width:6.8%!important;min-width:0!important;max-width:none!important;font-weight:800;}
.dashboard-jobs-table-compact .job-name-cell{width:auto!important;min-width:0!important;max-width:none!important;}
.dashboard-jobs-table-compact .customer-cell{width:auto!important;min-width:0!important;max-width:none!important;}
.dashboard-jobs-table-compact .status-cell,
.dashboard-jobs-table-compact .pricing-status-cell,
.dashboard-jobs-table-compact .required-action-cell{min-width:0!important;max-width:none!important;}
.dashboard-jobs-table-compact .status-pill,
.dashboard-jobs-table-compact .price-status-badge,
.dashboard-jobs-table-compact .payment-badge{
  display:block!important;
  width:100%;
  max-width:100%!important;
  min-width:0!important;
  padding:3px 4px!important;
  font-size:9.8px!important;
  line-height:1.1!important;
  border-radius:7px!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.dashboard-jobs-table-compact .create-similar-inline{margin-top:4px;}
.dashboard-jobs-table-compact .create-similar-inline button.small{font-size:9.5px;padding:3px 4px;line-height:1.05;white-space:normal;width:100%;}
.dashboard-jobs-table-compact .col-job{width:6.8%;}
.dashboard-jobs-table-compact .col-date{width:5.8%;}
.dashboard-jobs-table-compact .col-due{width:5.6%;}
.dashboard-jobs-table-compact .col-po{width:5.8%;}
.dashboard-jobs-table-compact .col-name{width:8.6%;}
.dashboard-jobs-table-compact .col-customer{width:7.4%;}
.dashboard-jobs-table-compact .col-type{width:5.4%;}
.dashboard-jobs-table-compact .col-status{width:7.4%;}
.dashboard-jobs-table-compact .col-price-status{width:8.6%;}
.dashboard-jobs-table-compact .col-action-required{width:7.4%;}
.dashboard-jobs-table-compact .col-payment{width:6.4%;}
.dashboard-jobs-table-compact .col-postage-payment{width:7.2%;}
.dashboard-jobs-table-compact .col-money{width:4.8%;}
@media(max-width:1100px){
  .dashboard-table-card,.dashboard-table-no-scroll{overflow-x:auto!important;}
  .dashboard-jobs-table-compact{min-width:1080px!important;width:1080px!important;}
}


/* v31.160 dashboard spacing + customer order summary placement fix */
.dashboard-jobs-table-compact th,
.dashboard-jobs-table-compact td{
  font-size:11.5px!important;
  line-height:1.18!important;
  padding:5px 4px!important;
}
.dashboard-jobs-table-compact th{
  font-size:10.8px!important;
  line-height:1.08!important;
}
.dashboard-jobs-table-compact .col-job{width:6.3%!important;}
.dashboard-jobs-table-compact .col-date{width:4.9%!important;}
.dashboard-jobs-table-compact .col-due{width:4.9%!important;}
.dashboard-jobs-table-compact .col-po{width:4.2%!important;}
.dashboard-jobs-table-compact .col-name{width:8.4%!important;}
.dashboard-jobs-table-compact .col-customer{width:6.5%!important;}
.dashboard-jobs-table-compact .col-type{width:4.6%!important;}
.dashboard-jobs-table-compact .col-status{width:8.2%!important;}
.dashboard-jobs-table-compact .col-price-status{width:9.4%!important;}
.dashboard-jobs-table-compact .col-action-required{width:8.0%!important;}
.dashboard-jobs-table-compact .col-payment{width:7.2%!important;}
.dashboard-jobs-table-compact .col-postage-payment{width:7.8%!important;}
.dashboard-jobs-table-compact .col-money{width:4.55%!important;}
.dashboard-jobs-table-compact .status-cell,
.dashboard-jobs-table-compact .pricing-status-cell,
.dashboard-jobs-table-compact td:has(> .payment-badge){
  text-align:center;
  padding-left:6px!important;
  padding-right:6px!important;
}
.dashboard-jobs-table-compact .status-pill,
.dashboard-jobs-table-compact .price-status-badge,
.dashboard-jobs-table-compact .payment-badge{
  display:inline-block!important;
  width:auto!important;
  max-width:calc(100% - 4px)!important;
  min-width:0!important;
  margin:0 2px!important;
  padding:4px 6px!important;
  font-size:10.5px!important;
  line-height:1.12!important;
  border-radius:8px!important;
  box-sizing:border-box!important;
  overflow-wrap:anywhere!important;
}
.dashboard-jobs-table-compact .job-num{
  width:6.3%!important;
  font-size:11.3px!important;
}
.dashboard-jobs-table-compact .job-num a{white-space:normal;overflow-wrap:anywhere;}
.customer-tabs + .tab-panel .job-summary-top-grid,
#tab-customer-info .job-summary-top-grid{
  align-items:start;
}
#tab-customer-info .summary-right-stack .customer-order-summary-finance{
  margin-top:0;
  margin-bottom:12px;
}
@media(max-width:1100px){
  .dashboard-table-card,.dashboard-table-no-scroll{overflow-x:auto!important;}
  .dashboard-jobs-table-compact{min-width:1120px!important;width:1120px!important;}
}

/* v31.162 dashboard font boost: increase dashboard job-list row text by ~40%. */
.dashboard-table-card,
.dashboard-table-no-scroll{
  overflow-x:auto!important;
}
.dashboard-jobs-table-compact{
  min-width:1568px!important;
  width:100%!important;
}
.dashboard-jobs-table-compact thead th{
  font-size:15.1px!important;
  line-height:1.12!important;
  padding:6px 5px!important;
}
.dashboard-jobs-table-compact tbody td{
  font-size:16.1px!important;
  line-height:1.24!important;
  padding:7px 5px!important;
}
.dashboard-jobs-table-compact tbody .job-num{
  font-size:15.8px!important;
}
.dashboard-jobs-table-compact tbody .status-pill,
.dashboard-jobs-table-compact tbody .price-status-badge,
.dashboard-jobs-table-compact tbody .payment-badge{
  font-size:14.7px!important;
  line-height:1.15!important;
  padding:5px 7px!important;
  border-radius:9px!important;
}
.dashboard-jobs-table-compact .create-similar-inline button.small{
  font-size:13.3px!important;
  line-height:1.1!important;
  padding:4px 5px!important;
}
@media(max-width:1100px){
  .dashboard-jobs-table-compact{min-width:1568px!important;width:1568px!important;}
}


/* v31.165 artwork upload status bars */
.artwork-upload-status{background:#fff;border:1px solid #dbe3ef;border-radius:10px;padding:10px 12px;margin:8px 0 12px;box-shadow:0 1px 4px rgba(15,47,87,.05)}
.artwork-upload-status-top{display:flex;justify-content:space-between;gap:12px;align-items:center;font-weight:800;color:#0b2f5b;margin-bottom:6px}
.artwork-upload-status-pct{font-variant-numeric:tabular-nums;color:#334155;white-space:nowrap}
.artwork-upload-track{height:12px;background:#e5e7eb;border-radius:999px;overflow:hidden;border:1px solid #d7e1ee}
.artwork-upload-bar{height:100%;width:0%;background:#1d4ed8;border-radius:999px;transition:width .25s ease}
.artwork-upload-detail{margin:7px 0 0;overflow-wrap:anywhere}
.artwork-upload-status[data-state="idle"] .artwork-upload-bar{background:#cbd5e1}
.artwork-upload-status[data-state="ready"] .artwork-upload-bar{background:#15803d}
.artwork-upload-status[data-state="uploading"] .artwork-upload-bar{background:#1d4ed8}
.artwork-upload-status[data-state="error"] .artwork-upload-bar{background:#b91c1c}

/* v31.166 mail-owner wizard gate */
.field-error{border-color:#b91c1c!important;box-shadow:0 0 0 2px rgba(185,28,28,.15)!important;background:#fff7f7!important}
#mail_owner_step_error{font-weight:700;color:#7c2d12}


/* v31.167 artwork preflight progress bar */
.preflight-check-progress{margin-top:10px;margin-bottom:14px;background:#f8fbff}
.preflight-check-progress .artwork-upload-status-label{font-size:1rem}
.artwork-upload-status[data-state="complete"] .artwork-upload-bar{background:#15803d}

/* v31.168 hide broken preflight preview while upload/check is running */
.preflight-preview-stage img:not([src]){display:none!important}

/* v31.172 admin dashboard / drop shipment quick-edit helpers */
.dashboard-mini-links{margin-top:4px;}
.dashboard-mini-links .small-link{display:inline-block;font-size:10px;line-height:1.05;padding:3px 5px;border:1px solid #b8c4d6;border-radius:6px;background:#f6f8fb;color:#1f3b63;text-decoration:none;}
.drop-ship-admin-card{border-left:4px solid #1f5fa8;}
.drop-ship-admin-card .dashboard-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;margin:10px 0 14px;}
.drop-ship-admin-card .dashboard-summary-grid>div{background:#f6f8fb;border:1px solid #d7e0ec;border-radius:8px;padding:8px 10px;}
.quick-drop-form .grid{margin-top:8px;}
@media (max-width:900px){.drop-ship-admin-card .dashboard-summary-grid{grid-template-columns:repeat(2,minmax(130px,1fr));}}


/* v31.173: Show preliminary postage as superseded once final postage is entered. */
.dashboard-overridden-estimate{
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
  opacity: .7;
  white-space: nowrap;
}

/* v31.174: sales-tax notice and final total hero in Financial Summary. */
.sales-tax-notice{
  margin:10px 0 12px;
  padding:10px 12px;
  border:1px solid #f0d28a;
  background:#fff8e6;
  border-radius:10px;
  font-size:.95rem;
  color:#5f4300;
}
.final-total-hero{
  margin-top:14px;
  border-color:#0f3b63;
}
.final-total-hero .postage-hero-label{
  text-transform:none;
}

/* v31.192: make linked admin tabs (Drop Shipment Plan) match button tabs exactly. */
.admin-tabs a.tab-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font:inherit;
  line-height:normal;
  box-sizing:border-box;
}


/* v31.194: normalize admin tab fonts, including linked Drop Shipment Plan tab. */
.admin-tabs .tab-button,
.admin-tabs a.tab-button,
.admin-tabs button.tab-button{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.3333px;
  font-weight: 700;
  line-height: normal;
  vertical-align: middle;
}
.admin-tabs a.tab-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* v31.197 Track & Trace parsed report */
.track-trace-report .dashboard-summary-grid{margin:10px 0 14px;}
.track-trace-table th,.track-trace-table td{white-space:nowrap;text-align:right;}
.track-trace-table th:first-child,.track-trace-table td:first-child{text-align:left;white-space:normal;min-width:210px;}
.track-trace-table .total-row{background:#f2f5f9;}
.table-scroll{overflow-x:auto;}
.button.small{font-size:.85rem;padding:4px 8px;}


.preflight-check-results{margin-top:12px;}
.preflight-check-results h3{margin:10px 0 8px;}
.preflight-check-results ul{columns:2;column-gap:34px;margin:0;padding-left:20px;}
.preflight-check-results li{break-inside:avoid;margin:0 0 6px;}
@media (max-width: 900px){.preflight-check-results ul{columns:1;}.preflight-box{width:96%;padding:16px;}.preflight-modal{padding:10px;}}

/* v31.208: allow six-decimal postage/service unit-price entry without cramped fields */
input[name="billing_price[]"], input[name="service_price[]"]{min-width:9.5em;}

/* v31.215 payment badge separated from Job Art Preview heading */
.job-info-art-panel{position:relative;}
.payment-art-status-row{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin:-2px 0 8px;
  width:100%;
  clear:both;
}
.payment-art-status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:96px;
  padding:7px 14px;
  border-radius:999px;
  font-weight:900;
  font-size:18px;
  letter-spacing:.08em;
  line-height:1;
  border:2px solid transparent;
  box-shadow:0 1px 2px rgba(15,23,42,.12);
}
.payment-art-status-badge.paid{background:#dcfce7;color:#14532d;border-color:#22c55e;}
.payment-art-status-badge.unpaid{background:#fee2e2;color:#7f1d1d;border-color:#ef4444;}
@media (max-width:700px){.payment-art-status-badge{font-size:15px;min-width:78px;padding:6px 10px;}.payment-art-status-row{justify-content:flex-start;}}

/* v31.214 multi-page PDF artwork page selection */
.preflight-page-select{margin:10px 0;background:#f8fafc;border-left:4px solid #1d4ed8;}
.preflight-page-select h3{margin-top:0;}
.preflight-page-select-row{display:grid;grid-template-columns:minmax(220px, 1fr) auto;gap:12px;align-items:end;}
.preflight-page-select-row label{margin:0;}
.preflight-page-select-row input{font-size:1rem;padding:8px;}
@media (max-width: 780px){.preflight-page-select-row{grid-template-columns:1fr;}.preflight-page-select-row button{width:100%;}}

/* v31.217: move payment badge above Job Art Preview heading and group envelope package proofs */
.payment-art-status-row-above-heading{margin:0 0 8px;}
.envelope-package-proof-group{border-left:4px solid #1d4ed8;background:#f8fafc;}
.proof-package-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:8px;}
.proof-page-label{font-weight:800;color:#1e3a8a;}
@media (max-width:700px){.payment-art-status-row-above-heading{justify-content:flex-end;}}

/* v31.220: envelope package art preview + proof release controls */
.job-art-preview-grid{display:grid;grid-template-columns:1fr;gap:12px;}
.job-art-preview-grid.multi{grid-template-columns:repeat(2, minmax(0, 1fr));align-items:start;}
.job-art-preview-item-title{font-weight:900;color:#12345c;margin:0 0 6px;text-align:center;}
.job-art-preview-item .note{font-size:.85rem;margin:6px 0 0;}
.proof-package-button{min-width:230px;text-align:center;display:inline-flex;align-items:center;justify-content:center;min-height:42px;box-sizing:border-box;}
.inline-proof-release-form{display:inline-flex;margin:0;}
.proof-package-release-actions{margin-top:10px;}
@media (max-width:800px){.job-art-preview-grid.multi{grid-template-columns:1fr;}.proof-package-button{width:100%;}.inline-proof-release-form{width:100%;}}
/* v31.223 package proof release/replace workflow */
.proof-package-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:14px;margin-top:12px;align-items:start;}
.proof-package-admin-card{border:1px solid #d6e0ea;border-radius:12px;padding:12px;background:#fbfdff;}
.proof-package-admin-card h4{margin:0 0 8px 0;color:#173b63;}
.replace-package-proof-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px;}
.replace-package-proof-form input[type=file]{max-width:100%;font-size:.9rem;}
.replace-package-proof-form .proof-package-button,.proof-package-admin-card .proof-package-button{min-width:230px;min-height:42px;justify-content:center;}
@media(max-width:800px){.replace-package-proof-form .proof-package-button,.proof-package-admin-card .proof-package-button{width:100%;}}

/* v31.227 fit-to-window proof viewer */
.proof-viewer-page.fit-window-proof-viewer,
.proof-share-public.fit-window-proof-viewer,
.compact-proof-viewer-page.fit-window-proof-viewer{
  max-width: min(1920px, calc(100vw - 20px));
  width: calc(100vw - 20px);
  margin: 6px auto;
}
.fit-window-proof-viewer .proof-review-tight,
.fit-window-proof-viewer .proof-decision-tight,
.fit-window-proof-viewer .proof-file-viewer-tight{
  margin-top: 4px;
  margin-bottom: 4px;
  padding: 7px 10px;
}
.fit-window-proof-viewer .proof-review-title-row h1{font-size:1.15rem;}
.fit-window-proof-viewer .proof-review-title-row p{font-size:.86rem;line-height:1.18;}
.fit-window-proof-viewer .proof-image-scrollbox{
  height: calc(100vh - 215px);
  min-height: 520px;
  width: 100%;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  overflow:auto;
  padding: 8px;
  background:#eef3f8;
}
.fit-window-proof-viewer .proof-page-image{
  max-width: 100%;
  max-height: calc(100vh - 235px);
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
}
.fit-window-proof-viewer .proof-viewer-toolbar{position:sticky;top:0;z-index:5;background:#fff;padding:4px 0;}
@media(max-width:800px){
  .proof-viewer-page.fit-window-proof-viewer,
  .proof-share-public.fit-window-proof-viewer,
  .compact-proof-viewer-page.fit-window-proof-viewer{width:calc(100vw - 8px);max-width:calc(100vw - 8px);}
  .fit-window-proof-viewer .proof-image-scrollbox{height:calc(100vh - 245px);min-height:360px;}
  .fit-window-proof-viewer .proof-page-image{max-height:calc(100vh - 265px);}
}
/* v31.234 status color refinements */
.status-pill.status-delivery-pending{background:#7c3aed!important;color:#fff!important;}
.status-pill.status-ready-pickup{background:#0f766e!important;color:#fff!important;}


/* v31.239 dashboard filters, bright proof pending, estimate builder, proof zoom */
.dashboard-filter-row{gap:10px;align-items:end;}
.dashboard-filter-row input[type=search]{min-width:280px;flex:2 1 320px;}
.inline-filter-label{font-size:.82rem;font-weight:800;color:#24384f;display:flex;flex-direction:column;gap:3px;margin:0;}
.inline-filter-label select{min-width:190px;}
.custom-date-filter{max-width:150px;}
.status-pill.status-pending-proof-approval{background:#ffea00!important;color:#2d2500!important;border:1px solid #d8b900!important;box-shadow:0 0 0 2px rgba(255,234,0,.25);}
.dashboard-jobs-table tr:has(.status-pending-proof-approval){background:#fffbe6;}
.estimate-builder-card textarea{font-family:inherit;}
.estimate-builder-form{display:grid;grid-template-columns:1fr;gap:10px;}
.button-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.inline-form{display:inline-block;margin:0;}
.proof-zoom-button{font-weight:900;min-width:42px;}
.proof-zoom-label{font-weight:900;color:#173b63;min-width:44px;text-align:center;}
.fit-window-proof-viewer .proof-page-image{transform-origin:top center;}

/* v31.241: contain Printing Components columns inside section */
.print-components-card{overflow:hidden;}
.print-components-card .subcard{overflow:hidden;max-width:100%;}
.print-components-table-wrap{display:block;width:100%;max-width:100%;overflow-x:auto!important;overflow-y:visible;border:1px solid #dbe3ef;border-radius:10px;background:#fff;margin:8px 0 14px;-webkit-overflow-scrolling:touch;}
.print-components-table{width:1460px!important;min-width:1460px!important;max-width:none!important;table-layout:fixed;font-size:12px;}
.print-components-table th,.print-components-table td{box-sizing:border-box;overflow:hidden;vertical-align:top;}
.print-components-table input,.print-components-table select,.print-components-table textarea{box-sizing:border-box;width:100%;max-width:100%;min-width:0;font-size:12px;padding:6px 5px;}
.print-components-table small{display:block;line-height:1.2;overflow-wrap:anywhere;}
.print-components-table .vendor-other-input{display:block;margin-top:6px;}
.print-components-table th:nth-child(1),.print-components-table td:nth-child(1){width:170px;}
.print-components-table th:nth-child(2),.print-components-table td:nth-child(2){width:80px;}
.print-components-table th:nth-child(3),.print-components-table td:nth-child(3){width:150px;}
.print-components-table th:nth-child(4),.print-components-table td:nth-child(4){width:125px;}
.print-components-table th:nth-child(5),.print-components-table td:nth-child(5){width:175px;}
.print-components-table th:nth-child(6),.print-components-table td:nth-child(6){width:145px;}
.print-components-table th:nth-child(7),.print-components-table td:nth-child(7){width:135px;}
.print-components-table th:nth-child(8),.print-components-table td:nth-child(8){width:115px;}
.print-components-table th:nth-child(9),.print-components-table td:nth-child(9){width:120px;}
.print-components-table th:nth-child(10),.print-components-table td:nth-child(10){width:125px;}
.print-components-table th:nth-child(11),.print-components-table td:nth-child(11){width:90px;}
@media(max-width:1700px){.print-components-table-wrap{overflow-x:auto!important}.print-components-table{width:1460px!important;min-width:1460px!important;}}

.section-total-bar{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:16px;
  margin:12px 0 14px;
  padding:12px 14px;
  border:1px solid #d7e0ea;
  border-radius:10px;
  background:#f8fafc;
  font-size:1.02rem;
}
.section-total-bar span{font-weight:700;color:#1f3554;}
.section-total-bar strong{font-size:1.15rem;color:#111827;min-width:120px;text-align:right;}


/* v31.248 dashboard filter alignment: Date Range, Start, and End grouped as one filter element */
.dashboard-filter-grid{display:grid;grid-template-columns:minmax(340px,2fr) minmax(460px,2.15fr) minmax(210px,1.05fr) auto;gap:12px;align-items:end;}
.dashboard-filter-grid label{display:flex;flex-direction:column;gap:6px;margin:0;font-weight:800;color:#0b2f5b;min-width:0;}
.dashboard-filter-grid label span{line-height:1.1;min-height:18px;}
.dashboard-filter-grid input,.dashboard-filter-grid select{width:100%;box-sizing:border-box;margin:0;min-height:40px;}
.dashboard-date-range-group{display:grid;grid-template-columns:minmax(150px,1.05fr) minmax(140px,.95fr) minmax(140px,.95fr);gap:10px;align-items:end;min-width:0;}
.dashboard-date-range-group label{min-width:0;}
.dashboard-date-range-select select{min-width:0;}
.dashboard-date-range-group .custom-date-filter{max-width:none;}
.dashboard-filter-buttons{display:flex;gap:8px;align-items:center;justify-content:flex-end;min-height:40px;align-self:end;}
.dashboard-filter-buttons button,.dashboard-filter-buttons .button{height:40px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;margin:0;}
.impersonation-banner{display:flex;align-items:center;gap:12px;justify-content:space-between;}
@media(max-width:1200px){.dashboard-filter-grid{grid-template-columns:1fr 1fr}.dashboard-filter-search,.dashboard-date-range-group{grid-column:1/-1}.dashboard-filter-buttons{justify-content:flex-start}}
@media(max-width:720px){.dashboard-filter-grid{grid-template-columns:1fr}.dashboard-date-range-group{grid-template-columns:1fr}.dashboard-filter-buttons{justify-content:flex-start;flex-wrap:wrap}}


/* v31.244 graphic trial: dashboard cards, job progress, proof/upload/pickup visuals */
.dashboard-status-card-grid{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:12px;margin:10px 0 20px;align-items:stretch;}
.dashboard-status-card{display:grid;grid-template-columns:auto 1fr;grid-template-areas:'icon count' 'icon label';gap:2px 10px;align-items:center;background:#fff;border:1px solid #d7e1ee;border-radius:14px;padding:14px;text-decoration:none;color:#17365d;box-shadow:0 2px 10px rgba(15,47,87,.08);min-height:74px;}
.dashboard-status-card:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(15,47,87,.15);border-color:#9db9d8;}
.dashboard-status-icon{grid-area:icon;width:42px;height:42px;border-radius:14px;background:#eef5ff;display:flex;align-items:center;justify-content:center;font-size:22px;}
.dashboard-status-count{grid-area:count;font-size:1.7rem;line-height:1;font-weight:900;color:#0b2f5b;}
.dashboard-status-label{grid-area:label;font-size:.84rem;font-weight:800;color:#475569;line-height:1.15;}
.dashboard-status-card-proof{background:#fffbea;border-color:#facc15;}
.dashboard-status-card-proof .dashboard-status-icon{background:#ffea00;color:#111827;}
.dashboard-status-card-production .dashboard-status-icon{background:#dbeafe;}
.dashboard-status-card-pickup .dashboard-status-icon{background:#ccfbf1;}
.dashboard-status-card-complete .dashboard-status-icon{background:#dcfce7;}
.dashboard-status-card-files .dashboard-status-icon{background:#fee2e2;}
.dashboard-status-card-artwork .dashboard-status-icon{background:#f3e8ff;}
.graphic-eyebrow{display:inline-block;text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:900;color:#64748b;margin-bottom:4px;}
.job-status-graphic-card{border:1px solid #dbe7f3;background:linear-gradient(180deg,#ffffff,#f8fbff);}
.job-status-graphic-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:16px;}
.job-status-graphic-head h2{margin:0;color:#0b2f5b;font-size:1.35rem;}
.job-progress-rail{display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));gap:10px;position:relative;}
.job-progress-step{position:relative;border:1px solid #d7e1ee;background:#fff;border-radius:14px;padding:12px 10px 11px;text-align:center;min-height:88px;box-sizing:border-box;}
.job-progress-step:before{content:'';position:absolute;left:-10px;top:30px;width:10px;height:3px;background:#d7e1ee;}
.job-progress-step:first-child:before{display:none;}
.job-progress-dot{width:32px;height:32px;border-radius:999px;background:#e2e8f0;color:#475569;font-weight:900;display:flex;align-items:center;justify-content:center;margin:0 auto 7px;}
.job-progress-label{font-weight:900;color:#17365d;font-size:.9rem;line-height:1.1;}
.job-progress-caption{font-size:.75rem;color:#64748b;line-height:1.2;margin-top:4px;}
.job-progress-step.complete{background:#f0fdf4;border-color:#86efac;}
.job-progress-step.complete:before{background:#22c55e;}
.job-progress-step.complete .job-progress-dot{background:#16a34a;color:#fff;}
.job-progress-step.current{background:#eff6ff;border-color:#60a5fa;box-shadow:0 0 0 3px rgba(96,165,250,.18);}
.job-progress-step.current .job-progress-dot{background:#1d4ed8;color:#fff;}
.status-graphic-problem{border-color:#fca5a5;background:#fff7f7;}
.graphic-warning{margin-top:12px;background:#fff2cc;border:1px solid #f59e0b;border-radius:10px;padding:10px;font-weight:700;color:#7c2d12;}
.ready-pickup-graphic-card{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center;border:2px solid #14b8a6;background:linear-gradient(135deg,#ecfdf5,#ffffff);}
.ready-pickup-icon{width:62px;height:62px;border-radius:20px;background:#ccfbf1;display:flex;align-items:center;justify-content:center;font-size:34px;}
.ready-pickup-graphic-card h2{margin:0 0 8px;color:#0f766e;}
.ready-pickup-graphic-card p{margin:5px 0;}
.proof-visual-panel{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;border:1px solid #d7e1ee;border-radius:14px;background:#f8fafc;padding:14px;margin:12px 0 16px;}
.proof-visual-icon{width:54px;height:54px;border-radius:18px;background:#dbeafe;color:#1e40af;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:900;}
.proof-visual-copy h3{margin:0 0 4px;color:#0b2f5b;}
.proof-visual-copy p{margin:0;color:#475569;line-height:1.35;}
.proof-visual-actions{display:flex;flex-direction:column;gap:8px;align-items:flex-end;}
.proof-action-hint{font-size:.82rem;font-weight:900;border-radius:999px;background:#fff7ed;color:#9a3412;padding:5px 9px;white-space:nowrap;}
.proof-action-hint.approved{background:#dcfce7;color:#166534;}.proof-action-hint.rejected{background:#fee2e2;color:#991b1b;}
.proof-visual-approved{background:#f0fdf4;border-color:#86efac;}.proof-visual-approved .proof-visual-icon{background:#16a34a;color:#fff;}
.proof-visual-rejected{background:#fff7f7;border-color:#fca5a5;}.proof-visual-rejected .proof-visual-icon{background:#b91c1c;color:#fff;}
.proof-visual-pending{background:#fffbea;border-color:#fde047;}.proof-visual-pending .proof-visual-icon{background:#ffea00;color:#111827;}
.proof-visual-empty .proof-visual-icon{background:#e2e8f0;color:#475569;}
.upload-graphic-zone{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:center;border:2px dashed #93b5d8;background:#f8fbff;border-radius:14px;padding:16px;margin:12px 0 16px;color:#17365d;}
.upload-graphic-icon{width:56px;height:56px;border-radius:18px;background:#e8f2ff;color:#1d4ed8;display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:900;}
.upload-graphic-zone b{font-size:1.05rem;color:#0b2f5b;}.upload-graphic-zone span{color:#475569;}
@media(max-width:1250px){.dashboard-status-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.job-progress-rail{grid-template-columns:repeat(3,minmax(0,1fr));}.job-progress-step:nth-child(4):before{display:none;}}
@media(max-width:760px){.dashboard-status-card-grid{grid-template-columns:1fr 1fr}.job-status-graphic-head{flex-direction:column}.job-progress-rail{grid-template-columns:1fr}.job-progress-step:before{display:none}.proof-visual-panel{grid-template-columns:1fr;text-align:left}.proof-visual-actions{align-items:flex-start}.ready-pickup-graphic-card,.upload-graphic-zone{grid-template-columns:1fr}.dashboard-status-card{grid-template-columns:auto 1fr;}}

/* v31.244 proof viewer decision visual panel */
.proof-decision-visual-card{border-left:5px solid #1d4ed8;background:linear-gradient(180deg,#ffffff,#f8fbff);}
.proof-decision-visual-head{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;margin-bottom:8px;}
.proof-decision-visual-icon{width:50px;height:50px;border-radius:18px;background:#dbeafe;color:#1d4ed8;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:900;}
.proof-decision-visual-head h2{margin:0 0 3px;color:#0b2f5b;}
.proof-decision-visual-head p{margin:0;}
@media(max-width:760px){.proof-decision-visual-head{grid-template-columns:1fr}.proof-decision-visual-icon{width:44px;height:44px}}


/* v31.244 finish: proof decision, estimate steps, empty states, section icon polish */
.service-components-card h2:before{content:'🧰 ';}
.print-components-card h2:before{content:'🖨️ ';}
.postage-components-card h2:before{content:'💌 ';}
.payment-release-page-card h2:before{content:'🧾 ';}
.proof-page-card h2:before{content:'🔎 ';}
.finance-page-card h2:before{content:'📊 ';}
.card>h2:first-child:has(+ .note):before{vertical-align:baseline;}
.empty-graphic-state{display:flex;gap:12px;align-items:center;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc;padding:16px;margin:10px 0;}
.empty-graphic-icon{width:46px;height:46px;border-radius:14px;background:#e0f2fe;display:flex;align-items:center;justify-content:center;font-size:24px;flex:0 0 auto;}
.empty-graphic-state b{display:block;color:#0b2f5b;}.empty-graphic-state span{display:block;color:#64748b;margin-top:2px;}
.proof-decision-heading{display:flex;align-items:center;gap:8px;margin-bottom:8px!important;color:#0b2f5b;}
.proof-decision-visual{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0 12px;}
.proof-decision-visual>div{border:1px solid #d7e1ee;border-radius:12px;background:#f8fbff;padding:12px;}
.proof-decision-visual b{display:block;color:#0b2f5b;}.proof-decision-visual small{display:block;color:#64748b;margin-top:2px;line-height:1.25;}
.estimate-visual-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 18px;}
.estimate-visual-steps>div{display:flex;gap:12px;align-items:center;border:1px solid #d7e1ee;border-radius:14px;background:#f8fbff;padding:14px;}
.estimate-visual-steps b{width:36px;height:36px;border-radius:999px;background:#0b2f5b;color:#fff;display:flex;align-items:center;justify-content:center;flex:0 0 auto;}
.estimate-visual-steps span{display:block;font-weight:900;color:#0b2f5b;}.estimate-visual-steps small{display:block;color:#64748b;line-height:1.25;}
.mini-upload-graphic{display:flex;gap:10px;align-items:center;border:1px dashed #bfdbfe;background:#eff6ff;border-radius:12px;padding:12px;margin:8px 0 12px;}
.mini-upload-graphic span{font-size:28px;}.mini-upload-graphic b{display:block;color:#0b2f5b;}.mini-upload-graphic small{display:block;color:#475569;}
@media(max-width:760px){.proof-decision-visual,.estimate-visual-steps{grid-template-columns:1fr}.empty-graphic-state{align-items:flex-start}}


.invoice-total-breakdown{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:8px 14px;
  font-size:.95rem;
  color:#0b2f5b;
}
.invoice-total-breakdown span{
  display:block;
  background:rgba(255,255,255,.65);
  border:1px solid rgba(11,47,91,.14);
  border-radius:8px;
  padding:8px 10px;
}

/* v31.247: Printing Components available-space layout, Customers admin spacing, completed-job customer upload lock */
main.job-detail-wide{max-width:1880px;width:calc(100vw - 44px);}
.print-components-card{overflow:visible!important;}
.print-components-card .subcard{overflow:visible!important;max-width:100%;}
.print-components-table-wrap{width:100%;max-width:100%;overflow-x:auto!important;overflow-y:visible;border:1px solid #dbe3ef;border-radius:10px;background:#fff;margin:8px 0 14px;-webkit-overflow-scrolling:touch;}
.print-components-table{width:100%!important;min-width:1280px!important;max-width:none!important;table-layout:fixed!important;font-size:12px;}
.print-components-table th,.print-components-table td{padding:8px 6px;box-sizing:border-box;vertical-align:top;overflow:hidden;}
.print-components-table input,.print-components-table select,.print-components-table textarea{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;font-size:12px;padding:6px 5px;margin-top:0;}
.print-components-table select{white-space:normal;text-overflow:ellipsis;}
.print-components-table small{display:block;line-height:1.2;margin-top:5px;overflow-wrap:anywhere;color:#64748b;}
.print-components-table .vendor-other-input{display:block;margin-top:6px!important;}
.print-components-table .delete-row-btn{width:100%;padding-left:4px;padding-right:4px;white-space:normal;line-height:1.1;}
.print-components-table th:nth-child(1),.print-components-table td:nth-child(1){width:14%;}
.print-components-table th:nth-child(2),.print-components-table td:nth-child(2){width:6%;}
.print-components-table th:nth-child(3),.print-components-table td:nth-child(3){width:13%;}
.print-components-table th:nth-child(4),.print-components-table td:nth-child(4){width:10%;}
.print-components-table th:nth-child(5),.print-components-table td:nth-child(5){width:13%;}
.print-components-table th:nth-child(6),.print-components-table td:nth-child(6){width:10%;}
.print-components-table th:nth-child(7),.print-components-table td:nth-child(7){width:9%;}
.print-components-table th:nth-child(8),.print-components-table td:nth-child(8){width:7%;}
.print-components-table th:nth-child(9),.print-components-table td:nth-child(9){width:7%;}
.print-components-table th:nth-child(10),.print-components-table td:nth-child(10){width:7%;}
.print-components-table th:nth-child(11),.print-components-table td:nth-child(11){width:4%;}
@media(max-width:1320px){.print-components-table{min-width:1280px!important;}.print-components-table-wrap{overflow-x:auto!important;}}

main.customers-admin-wide{max-width:1680px;width:calc(100vw - 44px);}
.admin-customers-page .page-action-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:6px 0 18px;}
.admin-customer-create-card{overflow:hidden;}
.admin-customer-create-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px 16px;align-items:end;}
.admin-customer-create-grid label{margin:0;min-width:0;}
.admin-customer-create-grid input,.admin-customer-create-grid select,.admin-customer-create-grid textarea{margin-top:5px;}
.admin-customer-create-grid .full{grid-column:1 / -1;}
.customer-form-subcard{margin:0;padding:16px;border:1px solid #dbe3ef;border-radius:10px;background:#f8fbff;}
.customer-form-subcard h3{margin:0 0 6px;color:#0b2f5b;}
.customer-email-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:14px;align-items:end;}
.form-submit-row{display:flex;justify-content:flex-start;align-items:center;}
.customers-table-wrap{width:100%;max-width:100%;overflow-x:auto;border:1px solid #dbe3ef;border-radius:10px;background:#fff;-webkit-overflow-scrolling:touch;}
.customers-admin-table{min-width:1500px;table-layout:fixed;font-size:13px;}
.customers-admin-table th,.customers-admin-table td{padding:9px 8px;vertical-align:middle;overflow-wrap:anywhere;}
.customers-admin-table th:nth-child(1),.customers-admin-table td:nth-child(1){width:14%;}
.customers-admin-table th:nth-child(2),.customers-admin-table td:nth-child(2){width:8%;}
.customers-admin-table th:nth-child(3),.customers-admin-table td:nth-child(3){width:14%;}
.customers-admin-table th:nth-child(4),.customers-admin-table td:nth-child(4){width:8%;}
.customers-admin-table th:nth-child(5),.customers-admin-table td:nth-child(5){width:9%;}
.customers-admin-table th:nth-child(6),.customers-admin-table td:nth-child(6){width:6%;}
.customers-admin-table th:nth-child(7),.customers-admin-table td:nth-child(7){width:6%;}
.customers-admin-table th:nth-child(8),.customers-admin-table td:nth-child(8){width:8%;}
.customers-admin-table th:nth-child(9),.customers-admin-table td:nth-child(9){width:8%;}
.customers-admin-table th:nth-child(10),.customers-admin-table td:nth-child(10){width:8%;}
.customers-admin-table th:nth-child(11),.customers-admin-table td:nth-child(11){width:11%;}
.customer-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;}
.customer-actions form{display:inline-flex;margin:0;}
.customer-actions .button,.customer-actions button{margin:0;white-space:nowrap;}
.disabled-tab,.tab-button:disabled{opacity:.55;cursor:not-allowed;background:#94a3b8!important;color:#fff!important;}
.upload-locked-card{border-left:5px solid #64748b;}
.upload-locked-zone{border-color:#cbd5e1;background:#f8fafc;color:#334155;}
.upload-locked-zone .upload-graphic-icon{background:#e2e8f0;color:#475569;}
@media(max-width:1150px){main.customers-admin-wide{width:auto;max-width:1200px;}.admin-customer-create-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.customer-email-settings-grid{grid-template-columns:1fr;}.customers-admin-table{min-width:1320px;}}
@media(max-width:720px){.admin-customer-create-grid{grid-template-columns:1fr;}.page-action-row .button{width:100%;text-align:center;}.customer-actions{align-items:flex-start;}}


/* v31.247: layout polish for printing components, admin customers, and completed customer uploads */
.print-components-table-wrap{width:100%;max-width:100%;overflow-x:auto!important;}
.print-components-table{width:100%!important;min-width:1320px!important;max-width:none!important;table-layout:fixed!important;}
.print-components-table th,.print-components-table td{vertical-align:middle;overflow:visible;}
.print-components-table td:first-child,.print-components-table th:first-child{padding-left:8px;}
.print-components-table td:last-child,.print-components-table th:last-child{padding-right:8px;}
.print-components-table input,.print-components-table select{width:100%;min-width:0;max-width:100%;}
.print-components-table .vendor-other-input{margin-top:5px;}
.print-components-table .delete-row-btn{width:100%;white-space:normal;line-height:1.15;padding-left:4px;padding-right:4px;}
.print-components-table th:nth-child(1),.print-components-table td:nth-child(1){width:13.5%!important;}
.print-components-table th:nth-child(2),.print-components-table td:nth-child(2){width:5.5%!important;}
.print-components-table th:nth-child(3),.print-components-table td:nth-child(3){width:12%!important;}
.print-components-table th:nth-child(4),.print-components-table td:nth-child(4){width:8.5%!important;}
.print-components-table th:nth-child(5),.print-components-table td:nth-child(5){width:13%!important;}
.print-components-table th:nth-child(6),.print-components-table td:nth-child(6){width:11%!important;}
.print-components-table th:nth-child(7),.print-components-table td:nth-child(7){width:9%!important;}
.print-components-table th:nth-child(8),.print-components-table td:nth-child(8){width:7.5%!important;}
.print-components-table th:nth-child(9),.print-components-table td:nth-child(9){width:7%!important;}
.print-components-table th:nth-child(10),.print-components-table td:nth-child(10){width:8%!important;}
.print-components-table th:nth-child(11),.print-components-table td:nth-child(11){width:5%!important;}
.customers-admin-wide{max-width:1680px;width:calc(100vw - 44px);}
.customer-page-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px;align-items:center;}
.customer-create-card,.customer-list-card{overflow:hidden;}
.customer-create-grid{grid-template-columns:repeat(3,minmax(220px,1fr));gap:14px 18px;align-items:start;}
.customer-create-grid label{margin:0;}
.customer-create-grid .full{grid-column:1/-1;}
.customer-create-grid .customer-settings-subcard{margin:0;padding:14px;background:#f8fafc;border-color:#dbe3ef;}
.customer-create-grid .customer-settings-subcard label{margin:8px 0;}
.customer-email-settings-grid{grid-template-columns:repeat(3,minmax(180px,1fr));gap:12px;}
.customer-create-submit{display:flex;justify-content:flex-end;}
.customer-admin-table-wrap{width:100%;max-width:100%;overflow-x:auto;}
.customer-admin-table{min-width:1500px;table-layout:fixed;width:100%;}
.customer-admin-table th,.customer-admin-table td{vertical-align:middle;overflow-wrap:anywhere;word-break:normal;line-height:1.25;}
.customer-admin-table th:nth-child(1),.customer-admin-table td:nth-child(1){width:12%;}
.customer-admin-table th:nth-child(2),.customer-admin-table td:nth-child(2){width:8%;}
.customer-admin-table th:nth-child(3),.customer-admin-table td:nth-child(3){width:13%;}
.customer-admin-table th:nth-child(4),.customer-admin-table td:nth-child(4){width:7%;}
.customer-admin-table th:nth-child(5),.customer-admin-table td:nth-child(5){width:8%;}
.customer-admin-table th:nth-child(6),.customer-admin-table td:nth-child(6){width:6%;}
.customer-admin-table th:nth-child(7),.customer-admin-table td:nth-child(7){width:7%;}
.customer-admin-table th:nth-child(8),.customer-admin-table td:nth-child(8){width:10%;}
.customer-admin-table th:nth-child(9),.customer-admin-table td:nth-child(9){width:8%;}
.customer-admin-table th:nth-child(10),.customer-admin-table td:nth-child(10){width:8%;}
.customer-admin-table th:nth-child(11),.customer-admin-table td:nth-child(11){width:13%;}
.customer-table-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.customer-table-actions form{display:inline;margin:0;}
.customer-table-actions .small,.customer-table-actions button.small{white-space:nowrap;line-height:1.15;}
.disabled-tab,.tab-button-disabled,.tab-button:disabled{background:#eef2f7!important;color:#94a3b8!important;border-color:#cbd5e1!important;cursor:not-allowed!important;box-shadow:none!important;}
.upload-locked-card .upload-graphic-zone,.upload-closed-notice{border-color:#dbe3ef;background:#f8fafc;}
@media(max-width:1100px){.customer-create-grid,.customer-email-settings-grid{grid-template-columns:1fr;}.customers-admin-wide{width:auto;}}

/* v31.249 Xero invoice preview/integration UI */
.xero-invoice-panel { border-left: 5px solid #0f6ea8; }
.xero-status-strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 10px 0 14px; }
.xero-status-strip span { background: #f4f7fb; border: 1px solid #dce5ef; border-radius: 8px; padding: 8px 10px; }
.xero-preview-wrap { overflow-x: auto; }
.xero-preview-table { min-width: 780px; }
.xero-preview-table code { white-space: nowrap; }
.table-total-row td { font-weight: 700; background: #f8fafc; }
.xero-status-grid .subcard { min-height: 70px; }
