:root{--orange:#F07E00;--orange-dark:#F07E00;--orange-soft:#FFF6EC;--ink:#222;--muted:#747474;--line:#dfdfdf;--panel:#f7f7f7;--white:#fff}*{box-sizing:border-box}body{margin:0;background:#f2f2f2;color:var(--ink);font-family:Inter,Segoe UI,Arial,sans-serif}.icon-sprite{display:none}.app-shell{max-width:1080px;margin:auto;padding:28px}.app-card{background:#fff;border-radius:18px;box-shadow:0 18px 55px rgba(0,0,0,.1);overflow:hidden}.app-header{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:28px 34px;border-bottom:1px solid #ececec}.brand-lockup{display:flex;align-items:center;gap:20px}.brand-lockup img{width:165px;height:72px;object-fit:contain}.brand-lockup p{margin:0 0 4px;color:var(--orange);font-size:12px;font-weight:700;letter-spacing:.14em}.brand-lockup h1{margin:0;font-size:29px}.top-meta{display:grid;grid-template-columns:145px 155px;gap:12px}form{padding:0 34px 34px}.form-section{padding:27px 0;border-bottom:1px solid #ececec}.form-title{display:flex;gap:14px;align-items:flex-start;margin-bottom:20px}.form-title>span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--orange);color:#fff;font-size:13px;font-weight:700}.form-title h2{margin:1px 0 3px;font-size:21px}.form-title p{margin:0;color:var(--muted);font-size:13px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field-grid .wide{grid-column:1/-1}label{display:block;color:#444;font-size:14px;font-weight:700}input,textarea{width:100%;margin-top:8px;padding:12px 13px;border:1px solid #ccc;border-radius:8px;background:#fff;color:var(--ink);font:inherit;outline:none}input:focus,textarea:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(240,126,0,.12)}textarea{min-height:180px;resize:vertical;line-height:1.5}.price-form-grid{display:grid;grid-template-columns:1fr .9fr;gap:38px;align-items:end}.money-input{display:flex;align-items:center;margin-top:8px;border:1px solid #ccc;border-radius:8px;overflow:hidden}.money-input:focus-within{border-color:var(--orange);box-shadow:0 0 0 3px rgba(240,126,0,.12)}.money-input input{margin:0;border:0;box-shadow:none}.money-input span{padding:0 14px;color:#666}.live-summary{padding:17px 20px;background:var(--panel);border-radius:10px}.live-summary>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px}.live-summary>div+div{margin-top:12px;padding-top:12px;border-top:1px solid #ddd}.live-summary span{color:var(--muted);font-size:13px}.live-summary strong{font-size:19px}.live-summary>div:last-child strong{color:var(--orange);font-size:23px}.form-actions{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-top:28px}.form-actions p{max-width:540px;margin:0;color:var(--muted);font-size:13px;line-height:1.5}.form-actions button{min-width:180px;padding:14px 24px;border:0;border-radius:9px;background:var(--orange);color:#fff;font-weight:700;font-size:15px;cursor:pointer;box-shadow:0 8px 18px rgba(240,126,0,.22)}#printDocument{display:none}
.pdf-page{position:relative;width:210mm;height:297mm;padding:12mm 14mm 18mm;background:#fff;overflow:hidden;page-break-after:always;color:var(--ink);font-family:Inter,Segoe UI,Arial,sans-serif}.pdf-page:last-child{page-break-after:auto}.pdf-header{display:flex;justify-content:space-between;align-items:flex-start;min-height:34mm}.pdf-header img{width:72mm;height:31mm;object-fit:contain;object-position:left top}.pdf-header.compact{min-height:29mm}.pdf-header.compact img{width:63mm;height:27mm}.pdf-header-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:2mm;width:88mm;padding-top:2mm}.pdf-header-meta>span{grid-column:1/-1;color:var(--orange);font-size:8pt;font-weight:700;letter-spacing:.12em}.pdf-header-meta>div{padding:3mm 2.5mm;border:1px solid var(--line);border-radius:2mm;background:#fafafa}.pdf-header-meta small{display:block;color:var(--muted);font-size:6.6pt;text-transform:uppercase;letter-spacing:.05em}.pdf-header-meta strong{display:block;margin-top:1.5mm;font-size:9.5pt}.pdf-header-meta.slim{grid-template-columns:1fr 1fr;width:56mm;gap:3mm}.pdf-header-meta.slim>div{padding:3mm 3.5mm}.pdf-header-meta.slim small{font-size:7pt;letter-spacing:.07em}.pdf-header-meta.slim strong{font-size:10pt}.title-row{display:flex;align-items:end;gap:7mm;margin:1mm 0 6mm}.title-row>div{flex:0 0 auto}.title-row p{margin:0 0 1mm;color:var(--orange);font-size:8pt;font-weight:700;letter-spacing:.14em}.title-row h2{margin:0;font-size:22pt;font-weight:600;letter-spacing:-.02em}.title-rule{height:.5mm;flex:1;background:var(--orange)}.pdf-card{border:.3mm solid var(--line);border-radius:3mm;background:#fff;overflow:hidden}.card-heading{display:flex;align-items:center;gap:3mm;padding:3.8mm 4.5mm;border-bottom:.25mm solid var(--line);background:#fafafa}.card-heading svg{width:5.5mm;height:5.5mm;fill:none;stroke:var(--orange);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.card-heading h3{margin:0;color:var(--orange-dark);font-size:10pt;font-weight:700;text-transform:uppercase;letter-spacing:.05em}.customer-card{margin-bottom:5mm}.customer-grid{display:grid;grid-template-columns:1fr 1.3fr;padding:1mm 4.5mm 3mm}.customer-grid>div{padding:3mm 0;border-bottom:.2mm solid #e8e8e8}.customer-grid>div:nth-last-child(-n+2){border-bottom:0}.customer-grid>div:nth-child(odd){padding-right:6mm}.customer-grid small,.project-grid small{display:block;color:var(--muted);font-size:7.4pt}.customer-grid strong,.project-grid strong{display:block;margin-top:1.2mm;min-height:4mm;font-size:9.3pt;font-weight:600}.work-card{height:69mm;margin-bottom:5mm}.work-text{height:54mm;padding:4mm 4.5mm;white-space:pre-wrap;font-size:9.3pt;line-height:1.55;overflow:hidden}.price-panel{display:grid;grid-template-columns:1.1fr .9fr;margin-bottom:5mm;border-radius:3mm;overflow:hidden;background:var(--orange);color:#fff}.price-primary{display:flex;flex-direction:column;justify-content:center;padding:5.5mm 6mm}.price-primary small,.price-secondary small{font-size:7.5pt;text-transform:uppercase;letter-spacing:.06em}.price-primary strong{margin-top:2mm;font-size:23pt;font-weight:700}.price-secondary{display:grid;grid-template-rows:1fr 1fr;background:#fff;color:var(--ink);border:.4mm solid var(--orange);border-left:0}.price-secondary>div{display:flex;flex-direction:column;justify-content:center;padding:3.5mm 5mm}.price-secondary>div+div{border-top:.25mm solid rgba(240,126,0,.32)}.price-secondary strong{margin-top:1mm;font-size:11pt}.price-secondary .price-total{background:var(--orange-soft)}.price-secondary .price-total strong{color:var(--orange-dark);font-size:15pt}.summary-card{margin-bottom:5mm}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0}.summary-grid p{margin:0;padding:3.5mm 4mm;font-size:8.3pt;line-height:1.35}.summary-grid p+p{border-left:.25mm solid var(--line)}.signoff{margin-top:5mm;font-size:8.5pt}.signoff p{margin:0 0 1.5mm}.signoff strong{font-size:9.5pt}.pdf-footer{position:absolute;left:14mm;right:14mm;bottom:6mm;display:flex;align-items:center;gap:7mm;padding-top:3.5mm;border-top:.35mm solid var(--orange);font-size:7.5pt}.pdf-footer span:first-child{font-weight:700}.pdf-footer b{margin-left:auto;padding:1.8mm 2.5mm;border-radius:1.5mm;background:var(--orange);color:#fff}.terms-list{display:grid;grid-template-columns:1fr 1fr;gap:3.2mm;margin-top:1mm}.term-item{display:grid;grid-template-columns:9mm 1fr;gap:3mm;padding:3.5mm;border:.25mm solid var(--line);border-radius:2.5mm;background:#fff}.term-item:nth-child(3),.term-item:nth-child(4),.term-item:nth-child(9),.term-item:nth-child(10){background:#fff}.term-icon{display:grid;place-items:center;width:8mm;height:8mm;border:.3mm solid rgba(240,126,0,.32);border-radius:50%;background:var(--orange-soft)}.term-icon svg{width:4.6mm;height:4.6mm;fill:none;stroke:var(--orange);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.term-item b{display:block;margin-bottom:1mm;color:var(--orange-dark);font-size:8.3pt}.term-item p{margin:0;font-size:7.45pt;line-height:1.35}.notice-box{display:grid;grid-template-columns:11mm 1fr;gap:4mm;margin-top:4mm;padding:4mm 4.5mm;border:.35mm solid var(--orange);border-radius:3mm;background:var(--orange-soft)}.notice-box>svg{width:8mm;height:8mm;fill:none;stroke:var(--orange);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.notice-box h3{margin:0 0 1.5mm;color:var(--orange-dark);font-size:9pt;text-transform:uppercase;letter-spacing:.05em}.notice-box p{margin:0;font-size:7.7pt;line-height:1.4}.protocol-card{margin-bottom:4mm}.project-grid{display:grid;grid-template-columns:1fr 1fr;padding:1mm 4.5mm 2.5mm}.project-grid>div{padding:2.3mm 0;border-bottom:.2mm solid #e8e8e8}.project-grid>div:nth-last-child(-n+2){border-bottom:0}.project-grid>div:nth-child(odd){padding-right:6mm}.checklist-card{margin-bottom:4mm}.lead{margin:3mm 4.5mm 2.5mm;font-size:7.8pt}.checklist-card ul{list-style:none;margin:0 4.5mm 3.5mm;padding:0;border:.25mm solid var(--line);border-radius:2mm;overflow:hidden}.checklist-card li{position:relative;padding:1.55mm 3mm 1.55mm 10mm;border-bottom:.2mm solid #e6e6e6;font-size:7.25pt;line-height:1.25}.checklist-card li:last-child{border-bottom:0}.checklist-card li:nth-child(even){background:#fafafa}.checklist-card li:before{content:"";position:absolute;left:3mm;top:1.45mm;width:4mm;height:4mm;border:.35mm solid var(--orange);border-radius:.5mm;background:#fff}.notes-card{margin-bottom:4mm}.notes-card>p{margin:3mm 4.5mm 0;font-size:7.8pt}.writing-lines{height:18mm;margin:0 4.5mm 3mm;background:repeating-linear-gradient(to bottom,transparent 0,transparent 5.6mm,#d4d4d4 5.8mm,transparent 6mm)}.agreement-card>p{margin:3mm 4.5mm 0;font-size:7.45pt;line-height:1.35}.signature-grid{display:grid;grid-template-columns:1fr 1fr;gap:5mm;margin:3mm 4.5mm 3.5mm}.signature-grid>div{padding:3mm;border:.25mm solid var(--line);border-radius:2mm}.signature-grid h4{margin:0 0 2.5mm;color:var(--orange-dark);font-size:8.3pt;text-transform:uppercase;letter-spacing:.05em}.signature-grid p{display:grid;grid-template-columns:auto 1fr;gap:2mm;margin:0 0 2.2mm;font-size:7.2pt}.signature-grid p:last-child{margin-bottom:0}.signature-grid p span{min-height:3.5mm;border-bottom:.25mm solid #bbb}
@media(max-width:760px){.app-shell{padding:14px}.app-header{flex-direction:column;align-items:flex-start;padding:22px}.top-meta,.field-grid,.price-form-grid{grid-template-columns:1fr;width:100%}.field-grid .wide{grid-column:auto}form{padding:0 22px 24px}.form-actions{align-items:stretch;flex-direction:column}.form-actions button{width:100%}}
@media print{@page{size:A4;margin:0}body{background:#fff}.app-shell{display:none!important}#printDocument{display:block!important}}

/* Browserless använder screen-media men ska visa exakt samma dokumentnod som utskrift. */
body.browserless-render{background:#fff}
body.browserless-render .app-shell{display:none!important}
body.browserless-render #printDocument{display:block!important}


/* v1.1: print-safe SVGs and layout fixes */
.svg-sprite{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.pdf-page,.pdf-page *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}

/* Price layout remains clear even when a browser suppresses background graphics. */
.price-panel{background:#fff;color:var(--ink);border:.45mm solid var(--orange);border-radius:3mm}
.price-primary{border-right:.35mm solid var(--orange);background:var(--orange-soft);color:var(--ink)}
.price-primary small{color:var(--orange-dark);font-weight:700}
.price-primary strong{color:var(--orange-dark)}
.price-secondary{border:0;border-left:0;background:#fff}
.price-secondary .price-total{background:#fff}
.price-secondary .price-total strong{color:var(--orange-dark)}
.pdf-footer b{padding:1.2mm 0;background:transparent;color:var(--ink);border-radius:0}

/* Page 3 needed a stricter content budget to keep signatures clear of the footer. */
.protocol-page{padding-bottom:22mm}
.protocol-page .pdf-header.compact{min-height:25mm}
.protocol-page .pdf-header.compact img{width:58mm;height:24mm}
.protocol-page .title-row{margin:0 0 4mm}
.protocol-page .title-row h2{font-size:20pt}
.protocol-page .protocol-card,
.protocol-page .checklist-card,
.protocol-page .notes-card{margin-bottom:3mm}
.protocol-page .card-heading{padding:3.1mm 4.5mm}
.protocol-page .project-grid>div{padding:1.8mm 0}
.protocol-page .lead{margin:2.2mm 4.5mm 1.8mm}
.protocol-page .checklist-card ul{margin-bottom:2.5mm}
.protocol-page .checklist-card li{padding-top:1.25mm;padding-bottom:1.25mm;font-size:7pt}
.protocol-page .checklist-card li:before{top:1.15mm}
.protocol-page .notes-card>p{margin-top:2mm}
.protocol-page .writing-lines{height:12mm;margin-bottom:2mm;background:repeating-linear-gradient(to bottom,transparent 0,transparent 4.6mm,#d4d4d4 4.8mm,transparent 5mm)}
.protocol-page .agreement-card>p{margin-top:2mm;font-size:7.15pt;line-height:1.25}
.protocol-page .signature-grid{gap:4mm;margin:2.2mm 4.5mm 2.5mm}
.protocol-page .signature-grid>div{padding:2.2mm 2.5mm}
.protocol-page .signature-grid h4{margin-bottom:1.8mm}
.protocol-page .signature-grid p{margin-bottom:1.5mm;font-size:6.9pt}
.protocol-page .signature-grid p span{min-height:3mm}

/* Prevent long values from crossing columns. */
.customer-grid strong,.project-grid strong{overflow-wrap:anywhere;word-break:break-word}

/* Offer history and form navigation (screen only). */
@media screen{
.action-buttons{display:flex;gap:12px;align-items:center}.history-link{min-width:120px;padding:13px 20px;border:1px solid var(--orange);border-radius:9px;color:var(--orange);font-weight:700;font-size:15px;text-align:center;text-decoration:none}.history-shell{max-width:1180px;margin:auto;padding:28px}.history-card{background:#fff;border-radius:18px;box-shadow:0 18px 55px rgba(0,0,0,.1);overflow:hidden}.history-content{padding:30px 34px 38px}.history-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.history-toolbar h2{margin:0;font-size:24px}.history-toolbar p{margin:5px 0 0;color:var(--muted);font-size:14px}.primary-link{display:inline-block;padding:13px 20px;border-radius:9px;background:var(--orange);color:#fff;font-weight:700;text-decoration:none}.history-notice{margin-bottom:20px;padding:13px 16px;border:1px solid #d9eadb;border-radius:9px;background:#f2fbf3;color:#286532}.history-error{border-color:#efd0d0;background:#fff4f4;color:#8d2424}.history-empty{padding:36px;border:1px solid var(--line);border-radius:12px;background:var(--panel);text-align:center;color:var(--muted)}.history-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px}.history-table{width:100%;border-collapse:collapse}.history-table th,.history-table td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.history-table tr:last-child td{border-bottom:0}.history-table th{background:var(--panel);color:#555;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.history-table td{font-size:14px}.history-table strong{display:block}.history-table small{color:var(--muted)}.history-actions{display:flex;flex-wrap:wrap;gap:7px}.history-actions a,.history-actions button{padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);font:inherit;font-size:12px;font-weight:700;text-decoration:none;cursor:pointer}.history-actions a:hover,.history-actions button:hover{border-color:var(--orange);color:var(--orange)}.history-actions .danger{color:#a42a2a}.history-actions form{padding:0}.readonly-note{margin:18px 0 0;padding:12px 14px;border-radius:8px;background:var(--orange-soft);color:var(--orange-dark);font-size:14px;font-weight:700}
}

.pdf-page,.material-pdf{--orange:var(--document-accent,#F07E00);--orange-dark:var(--document-accent,#F07E00);--orange-soft:var(--document-secondary,#FFF6EC);--ink:var(--document-text,#222);--panel:var(--document-box,#fff)}

/* Page 1: preserve the footer reserve while avoiding unnecessary empty height. */
.offer-page .customer-card{margin-bottom:4mm}
.offer-page .customer-grid{padding-bottom:2.5mm}
.offer-page .customer-grid>div{padding-top:2.6mm;padding-bottom:2.6mm}
.offer-page .work-card{height:auto;min-height:36mm;margin-bottom:4mm}
.offer-page .work-text{height:auto;min-height:24mm;max-height:54mm;padding:3mm 4.5mm}
.offer-page .price-panel{margin-bottom:4mm}
.offer-page .price-primary{padding-top:4.2mm;padding-bottom:4.2mm}
.offer-page .price-primary strong{margin-top:1.5mm}
.offer-page .price-secondary>div{padding-top:2.5mm;padding-bottom:2.5mm}
.offer-page .price-secondary strong{margin-top:.7mm}
.offer-page .summary-card{margin-bottom:4mm}
.offer-page .summary-grid p{padding-top:2.7mm;padding-bottom:2.7mm}
.offer-page .signoff{margin-top:3mm}
.offer-page.rot-active .work-card{height:auto;min-height:36mm}
.offer-page.rot-active .work-text{height:auto;min-height:24mm;max-height:43mm}

@media screen and (max-width:760px){.history-shell{padding:14px}.action-buttons{width:100%;flex-direction:column}.form-actions button,.history-link{width:100%}.history-content{padding:22px}.history-toolbar{align-items:flex-start;flex-direction:column}.history-table th,.history-table td{padding:11px 12px}}

/* v2.1: card-based offer history on phone-sized screens. */
@media screen and (max-width:600px){
.history-page{max-width:100%;overflow-x:hidden}.history-shell{width:100%;max-width:100%;padding:12px;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}.history-card{width:100%;min-width:0;border-radius:14px}.history-card .app-header{width:100%;min-width:0;padding:20px;gap:16px}.history-card .brand-lockup{width:100%;min-width:0;flex-direction:column;align-items:flex-start;gap:12px}.history-card .brand-lockup img{width:min(48vw,150px);height:auto;max-height:64px;object-position:left center}.history-card .brand-lockup>div{width:100%;min-width:0}.history-card .brand-lockup h1{max-width:100%;font-size:clamp(24px,8vw,30px);line-height:1.12;overflow-wrap:anywhere}.history-content{width:100%;min-width:0;padding:18px}.history-toolbar{width:100%;min-width:0;gap:16px}.history-toolbar h2{font-size:22px;line-height:1.2}.primary-link{display:flex;width:100%;min-height:44px;align-items:center;justify-content:center}.history-table-wrap{width:100%;min-width:0;overflow:visible;border:0;border-radius:0}.history-table,.history-table tbody{display:block;width:100%;min-width:0}.history-table thead{display:none}.history-table tbody{display:grid;gap:14px}.history-table tr{display:grid;width:100%;min-width:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 16px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}.history-table td{display:block;min-width:0;padding:10px 0;border:0;overflow-wrap:anywhere;word-break:break-word}.history-table td::before{content:attr(data-label);display:block;margin-bottom:5px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.history-table td:nth-child(1),.history-table td:nth-child(2),.history-table td:nth-child(5){grid-column:1/-1}.history-table td:nth-child(1){padding-top:0;padding-bottom:12px;border-bottom:1px solid var(--line)}.history-table td:nth-child(2){padding-top:12px}.history-table td:nth-child(5){padding-bottom:0}.history-table small{margin-top:3px}.history-actions{display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.history-actions a,.history-actions button{display:flex;width:100%;min-width:0;min-height:44px;padding:10px 8px;align-items:center;justify-content:center;text-align:center;line-height:1.2}.history-actions form{width:100%}.history-actions form:last-child{grid-column:1/-1}.history-actions form button{height:100%}
}

/* v2.1.2: allow form grids and native iOS controls to shrink inside the card. */
@media screen and (max-width:760px){
.app-shell .app-card,.app-shell .app-header,.app-shell .brand-lockup,.app-shell .brand-lockup>div,.app-shell form,.app-shell .form-section,.app-shell .top-meta,.app-shell .field-grid,.app-shell .price-form-grid,.app-shell .top-meta>label,.app-shell .field-grid>label,.app-shell .price-form-grid>label,.app-shell .money-input{min-width:0;max-width:100%}
.app-shell .top-meta,.app-shell .field-grid,.app-shell .price-form-grid{grid-template-columns:minmax(0,1fr)}
.app-shell input,.app-shell textarea,.app-shell select{min-width:0;max-width:100%}
}

.searchable-select-host{position:relative;min-width:0}.searchable-select-host>input{position:relative;z-index:2}.searchable-select-menu{position:absolute;z-index:20;top:calc(100% + 4px);left:0;width:100%;max-width:min(100%,calc(100vw - 28px));max-height:260px;overflow-y:auto;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 8px 22px rgba(0,0,0,.14)}.searchable-select-option{display:block;width:100%;min-height:44px;padding:10px 12px;border:0;border-bottom:1px solid #eee;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer}.searchable-select-option:last-child{border-bottom:0}.searchable-select-option:hover,.searchable-select-option.is-active,.searchable-select-option[aria-selected="true"]{background:var(--orange-soft)}.searchable-select-empty{margin:0;padding:11px 12px;color:var(--muted);font-size:13px}

/* v2.2: optional ROT calculation in the form. */
[hidden]{display:none!important}
@media screen{
.rot-toggle{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px;padding:15px 17px;border:1px solid var(--line);border-radius:10px;background:var(--orange-soft);cursor:pointer}.rot-toggle input{flex:0 0 auto;width:20px;height:20px;min-width:20px;max-width:20px;margin:1px 0 0;accent-color:var(--orange)}.rot-toggle span{min-width:0}.rot-toggle strong{display:block;color:var(--ink);font-size:15px}.rot-toggle small{display:block;margin-top:3px;color:var(--muted);font-size:12px;font-weight:400;line-height:1.35}.rot-fields{padding:18px;border:1px solid var(--line);border-radius:12px;background:#FFF6EC}.rot-input-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.rot-live-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin-top:18px;padding:16px 18px;border-radius:10px;background:var(--panel)}.rot-live-summary>div{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:9px 0;border-bottom:1px solid #ddd}.rot-live-summary>div:nth-last-child(2){border-bottom:0}.rot-live-summary span{color:var(--muted);font-size:12px}.rot-live-summary strong{font-size:16px;text-align:right}.rot-live-summary .rot-payable{grid-column:1/-1;margin-top:8px;padding:13px 14px;border:0;border-radius:8px;background:var(--orange-soft)}.rot-live-summary .rot-payable span{color:var(--orange-dark);font-weight:700}.rot-live-summary .rot-payable strong{color:var(--orange-dark);font-size:21px}.rot-help{margin:12px 2px 0;color:var(--muted);font-size:12px;line-height:1.4}
}
@media screen and (max-width:760px){.app-shell .rot-input-grid{grid-template-columns:minmax(0,1fr)}.app-shell .rot-live-summary{grid-template-columns:minmax(0,1fr)}.app-shell .rot-live-summary>div:nth-last-child(2){border-bottom:1px solid #ddd}.app-shell .rot-live-summary .rot-payable{grid-column:auto}.app-shell .rot-fields,.app-shell .rot-input-grid,.app-shell .rot-live-summary,.app-shell .rot-input-grid>label{min-width:0;max-width:100%}}

/* v2.2: compact ROT summary used only when ROT is active. */
.rot-price-panel{display:grid;grid-template-columns:48mm 1fr;margin-bottom:5mm;border:.45mm solid var(--orange);border-radius:3mm;overflow:hidden;background:#fff}.rot-price-heading{display:flex;flex-direction:column;justify-content:center;padding:4mm 4.5mm;background:var(--orange-soft);border-right:.3mm solid rgba(240,126,0,.32)}.rot-price-heading small{color:var(--orange-dark);font-size:7pt;font-weight:700;letter-spacing:.06em}.rot-price-heading strong{margin-top:2mm;color:var(--orange-dark);font-size:16pt}.rot-price-columns{display:grid;grid-template-columns:1fr 1.15fr}.rot-price-columns>div{padding:2.4mm 3.5mm}.rot-price-columns>div+div{border-left:.25mm solid var(--line)}.rot-price-columns p{display:flex;justify-content:space-between;align-items:baseline;gap:3mm;margin:0;padding:1.25mm 0;border-bottom:.2mm solid #e8e8e8;font-size:7.2pt}.rot-price-columns p:last-child{border-bottom:0}.rot-price-columns span{color:var(--muted)}.rot-price-columns strong{text-align:right;font-size:8pt}.rot-price-columns .rot-deduction strong{color:var(--orange-dark)}.rot-price-columns .rot-payable{margin-top:1mm;padding:1.7mm 2mm;border:0;border-radius:1.5mm;background:var(--orange-soft)}.rot-price-columns .rot-payable span,.rot-price-columns .rot-payable strong{color:var(--orange-dark);font-weight:700}.rot-price-note{grid-column:1/-1;margin:0;padding:1.8mm 4mm;border-top:.25mm solid rgba(240,126,0,.32);color:var(--muted);font-size:6.8pt}.offer-page.rot-active .work-card{height:58mm}.offer-page.rot-active .work-text{height:43mm}

@media screen and (min-width:761px) and (max-width:900px){
 body.material-page .app-shell>.app-card:has(> form#materialListForm)>.app-header{min-height:0;flex-direction:column;align-items:flex-start;gap:18px}
 body.material-page .app-shell>.app-card:has(> form#materialListForm)>.app-header .brand-lockup img{width:210px;height:92px}
 body.material-page .app-shell>.app-card:has(> form#materialListForm)>.app-header .top-meta{width:100%}
}
@media screen and (max-width:760px){
.app-header .brand-lockup>div{min-width:0;max-width:100%}
.app-header .brand-lockup h1,.app-header .brand-lockup p{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.app-shell>.app-card>.app-header .brand-lockup{flex-direction:column;align-items:flex-start;gap:8px}
.app-shell>.app-card>.app-header .brand-lockup img{align-self:flex-start;width:min(52vw,210px);height:auto}
.app-shell>.app-card>.app-header .brand-lockup>div{width:100%}
.app-shell>.app-card>.app-header{min-height:0;padding:20px 22px;gap:20px}
.app-shell>.app-card>.app-header .brand-lockup{width:100%;gap:16px}
.app-shell>.app-card>.app-header .brand-lockup img{width:clamp(145px,42vw,185px);height:auto;max-height:none}
.app-shell>.app-card>.app-header .brand-lockup h1{font-size:clamp(24px,6.8vw,27px);line-height:1.08}
.app-shell>.app-card>.app-header .brand-lockup p{margin-top:5px;font-size:8px;letter-spacing:.07em}
}

/* Keep Legacy print identical to the on-screen preview and Browserless.
   The previous print-only logo enlargement made the image taller than the
   compact module header and compressed the gap before the document title. */
@media print{
.pdf-header:not(.compact) img{width:72mm;height:31mm}
.pdf-header.compact img{width:63mm;height:27mm}
.pdf-header.compact.module-pdf-header img{width:58mm;height:25mm}
.protocol-page .pdf-header.compact img{width:58mm;height:24mm}
.history-table td small{display:block;margin-top:3px}
}

/* v2.3: offer workflow status and future signing controls (screen only). */
@media screen{
.form-actions .secondary-action{border:1px solid var(--orange);background:#fff;color:var(--orange);box-shadow:none}
.form-actions .secondary-action:hover{background:var(--orange-soft)}
.history-toolbar-actions{display:flex;align-items:flex-end;gap:12px}
.history-sort{display:flex;align-items:flex-end;gap:8px;padding:0}
.history-sort label{font-size:12px}
.history-sort select{min-height:43px;padding:10px 34px 10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:13px}
.history-sort button{min-height:43px;padding:10px 13px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.history-sort button:hover{border-color:var(--orange);color:var(--orange)}
.status-badge{display:inline-flex;align-items:center;gap:7px;min-height:29px;padding:5px 10px;border:1px solid transparent;border-radius:999px;font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap}
.status-badge::before{content:"";width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:currentColor}
.status-draft{border-color:#efd58a;background:#fff8df;color:#9a6816}
.status-sent{border-color:#b9d9f5;background:#eef7ff;color:#24689a}
.status-pending-signature{border-color:#e4c5ef;background:#fbf2ff;color:#7d3d94}
.status-signed{border-color:#b9dfc2;background:#effaf1;color:#27713a}
.status-rejected{border-color:#efc0c0;background:#fff1f1;color:#9b3030}
.status-cancelled{border-color:#d5d5d5;background:#f4f4f4;color:#666}
}
@media screen and (max-width:760px){
.history-toolbar-actions{width:100%;align-items:stretch;flex-direction:column}
.history-sort{display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto;align-items:end}
.history-sort label{grid-column:1/-1}
.history-sort select{min-width:0;width:100%}
}
@media screen and (max-width:600px){
.history-table td:nth-child(5),.history-table td:nth-child(6){grid-column:1/-1}
.history-table td:nth-child(5){padding-bottom:10px}
.history-table td:nth-child(6){padding-bottom:0}
.history-table td:nth-child(6) .history-actions{margin-top:2px}
.document-type-badge{display:inline-flex;min-height:28px;align-items:center;padding:5px 9px;border:1px solid var(--line);border-left:4px solid var(--orange);border-radius:999px;background:#fff;color:var(--ink);font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap}
.document-type-running-work{border-left-color:#2f7d5c}
.document-type-material-list{border-left-color:#496b9c}
@media screen and (max-width:760px){
.history-table td:nth-child(1),.history-table td:nth-child(2),.history-table td:nth-child(7){grid-column:1/-1}
.history-table td:nth-child(3),.history-table td:nth-child(4),.history-table td:nth-child(5),.history-table td:nth-child(6){grid-column:auto}
.history-table td:nth-child(5){padding-bottom:10px}
.history-table td:nth-child(7){padding-bottom:0}
.history-table td:nth-child(7) .history-actions{margin-top:2px}
.history-table.has-project-column td:nth-child(8){grid-column:1/-1;padding-bottom:0}
.history-table.has-project-column td:nth-child(8) .history-actions{margin-top:2px}
.history-table.has-project-column td:nth-child(7){grid-column:auto;padding-bottom:10px}
}
.status-badge{white-space:normal}
}

/* v4.3.20: explicit, clickable history sorting. */
@media screen{
  .history-sort-controls{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin:-4px 0 18px;
    color:var(--muted);
    font-size:12px;
  }
  .history-sort-label{font-weight:700}
  .history-sort-link,
  .history-column-sort{
    color:var(--muted);
    text-decoration:none;
    font-weight:700;
  }
  .history-sort-link{
    display:inline-flex;
    min-height:34px;
    align-items:center;
    padding:7px 10px;
    border:1px solid var(--line);
    border-radius:8px;
    background:var(--web-surface,#fff);
  }
  .history-sort-link:hover,
  .history-sort-link.is-active,
  .history-column-sort:hover,
  .history-column-sort.is-active{color:var(--orange);border-color:var(--orange)}
  .history-column-sort{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
}
@media screen and (max-width:760px){
  .history-sort-controls{margin:0 0 16px;gap:6px}
  .history-sort-label{width:100%;margin-bottom:1px}
  .history-sort-link{flex:1 1 auto;justify-content:center;min-width:0;text-align:center}
}

/* v2.3.1: manual status control while retaining future signing support. */
@media screen{
.accepted-warning{margin:24px 0 0;padding:13px 16px;border:1px solid #b9dfc2;border-radius:9px;background:#effaf1;color:#275f35;font-size:13px;line-height:1.45}
.status-controls{display:grid;grid-template-columns:minmax(145px,1fr) auto;gap:5px 8px;align-items:end}
.status-controls label{grid-column:1/-1;color:var(--muted);font-size:11px;letter-spacing:.04em;text-transform:uppercase}
.status-controls select{min-width:145px;min-height:47px;padding:11px 34px 11px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit;font-size:13px;font-weight:600}
.status-controls .secondary-action{min-width:130px;min-height:47px;padding:11px 14px;border:1px solid var(--orange);border-radius:9px;background:#fff;color:var(--orange);font:inherit;font-size:13px;font-weight:700;cursor:pointer;box-shadow:none}
.status-controls .secondary-action:hover{background:var(--orange-soft)}
}

/* v2.4: mobile-ready protocol controls and selectable payment terms. */
@media screen{
.document-status-top{width:100%;max-width:430px}.document-status-top[hidden]{display:none}
.payment-fields select,.protocol-form-section input,.protocol-form-section textarea{min-width:0;max-width:100%}
.payment-fields select{width:100%;margin-top:8px;padding:12px 36px 12px 13px;border:1px solid #ccc;border-radius:8px;background:#fff;color:var(--ink);font:inherit;outline:none}
.payment-fields select:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(240,126,0,.12)}
.protocol-form-block{min-width:0;margin-bottom:18px;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fff}
.protocol-form-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:14px}
.protocol-form-heading h3{margin:0;font-size:16px}
.protocol-form-heading p{margin:4px 0 0;color:var(--muted);font-size:12px;font-weight:400;line-height:1.4}
.checklist-actions{display:flex;flex:0 0 auto;gap:8px}
.checklist-actions button{min-height:36px;padding:8px 11px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.checklist-actions button:hover{border-color:var(--orange);color:var(--orange)}
.startup-checklist{display:grid;gap:8px}
.startup-checklist label{display:flex;min-width:0;min-height:48px;align-items:flex-start;gap:12px;padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:var(--panel);cursor:pointer;font-weight:500;line-height:1.4}
.startup-checklist label:focus-within{border-color:var(--orange);box-shadow:0 0 0 3px rgba(240,126,0,.1)}
.startup-checklist input{flex:0 0 22px;width:22px;height:22px;min-width:22px;max-width:22px;margin:0;accent-color:var(--orange)}
.startup-checklist span{min-width:0}
.protocol-notes-input{min-height:120px;overflow:hidden;resize:none;background:#fff}
.approval-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.approval-form-grid fieldset{min-width:0;margin:0;padding:17px;border:1px solid var(--line);border-radius:12px}
.approval-form-grid legend{padding:0 8px;color:var(--orange-dark);font-size:14px;font-weight:700}
.approval-form-grid fieldset>label{margin-bottom:14px}
.approval-place-date{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.7fr);gap:12px}
.approval-place-date label{min-width:0}
.approval-place-date input[type="date"]{-webkit-appearance:none;appearance:none;width:100%;min-width:0;max-width:100%;height:47px}
}

@media screen and (max-width:760px){
.document-status-top{max-width:none}
.payment-fields,.approval-form-grid,.approval-place-date{grid-template-columns:minmax(0,1fr)}
.protocol-form-heading{flex-direction:column}
.checklist-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.checklist-actions button{min-width:0;min-height:44px}
.startup-checklist label{min-height:54px;padding:13px}
.protocol-form-block,.approval-form-grid fieldset{padding:14px}
.protocol-form-section,.protocol-form-section *{min-width:0;max-width:100%}
}

/* Interactive protocol data is rendered into the established A4 layout. */
.print-checklist li.checked:after{content:"";position:absolute;left:4.05mm;top:1.9mm;width:1.7mm;height:3mm;border-right:.55mm solid var(--orange);border-bottom:.55mm solid var(--orange);transform:rotate(45deg)}
.protocol-notes-output{min-height:12mm;margin:2mm 4.5mm 2.5mm;padding:2.2mm 2.5mm;border:.25mm solid var(--line);border-radius:1.5mm;white-space:pre-wrap;overflow:hidden;background:#fff;font-size:7.4pt;line-height:1.4}
.signature-grid p span{overflow-wrap:anywhere}

/* v2.4.1: compact page-one summary and stacked condition notices. */
.summary-grid p{display:flex;min-width:0;flex-direction:column;gap:1mm;padding:2.6mm 4mm}
.summary-grid small{color:var(--muted);font-size:6.8pt;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.summary-grid strong{font-size:8.3pt;line-height:1.25;overflow-wrap:anywhere}
.terms-page .notice-box{margin-top:3mm;padding:3.2mm 4mm}
.terms-page .notice-box p{font-size:7.2pt;line-height:1.32}
.terms-page .notice-box p+p{margin-top:1.4mm}
.terms-page .sanitation-box{background:#fff}
@media screen and (max-width:760px){
.status-controls{width:100%;grid-template-columns:minmax(0,1fr)}
.status-controls label{grid-column:auto}
.status-controls select,.status-controls .secondary-action{width:100%;min-width:0}
}

/* v2.4.2: unified brand colour and refined protocol layout. */
:root{
  --orange:#F07E00;
  --orange-dark:#F07E00;
  --orange-soft:#FFF6EC;
  --orange-line:rgba(240,126,0,.32);
}
input:focus,
textarea:focus,
.money-input:focus-within,
.document-info-grid select:focus,
.payment-fields select:focus,
.startup-checklist label:focus-within{
  box-shadow:0 0 0 3px rgba(240,126,0,.12);
}
.form-actions button{box-shadow:0 8px 18px rgba(240,126,0,.22)}
.price-secondary>div+div,
.rot-price-heading,
.rot-price-note{border-color:var(--orange-line)}
.term-item:nth-child(3),
.term-item:nth-child(4),
.term-item:nth-child(9),
.term-item:nth-child(10){background:#fff}
.term-icon{border-color:var(--orange-line)}
.rot-fields{background:var(--orange-soft)}

@media screen{
.protocol-project-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.protocol-project-fields label{grid-column:1}
.protocol-project-fields input[type="date"]{-webkit-appearance:none;appearance:none;width:100%;min-width:0;max-width:100%;height:47px}
}

.protocol-notes-output{
  min-height:25mm;
  margin:2mm 4.5mm 3mm;
  padding:4mm 4.5mm;
  border:.3mm solid var(--line);
  border-radius:3mm;
  font-size:9.3pt;
  line-height:1.55;
}
.protocol-page .signature-grid{margin-top:2.5mm;margin-bottom:3mm}
.protocol-page .signature-grid>div{display:flex;flex-direction:column;justify-content:center;min-height:19mm;padding:3mm}
.protocol-page .signature-grid h4{margin-bottom:2.5mm}
.protocol-page .signature-grid p{margin-bottom:2mm}

@media screen and (max-width:760px){
.protocol-project-fields{grid-template-columns:minmax(0,1fr)}
}

/* v2.4.3: final document polish and optional handwritten signatures. */
.title-row{align-items:center}
.title-row h2{color:var(--orange);font-size:20pt;font-weight:700}
.term-item,
.term-item:nth-child(3),
.term-item:nth-child(4),
.term-item:nth-child(9),
.term-item:nth-child(10){background:#fff}
.pdf-card,
.term-item,
.notice-box,
.signature-grid>div{border-width:.3mm}
.notice-box{grid-template-columns:9mm 1fr}
.notice-box>svg{width:5.5mm;height:5.5mm}

.pdf-footer{
  justify-content:flex-start;
  gap:13mm;
  padding-top:2.8mm;
}
.footer-contact{display:flex;align-items:center;gap:2.5mm}
.footer-contact svg{
  width:5mm;
  height:5mm;
  flex:0 0 5mm;
  fill:none;
  stroke:var(--orange);
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.footer-contact span{display:flex;align-items:baseline;gap:2mm}
.footer-contact small{color:var(--orange);font-size:6.5pt;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.footer-contact strong{font-size:7.7pt;font-weight:600}
.shared-document-footer{display:flex;flex-wrap:wrap;align-items:center;gap:1.5mm 4mm;font-size:6.8pt;line-height:1.15}
.shared-document-footer .footer-contact{min-width:0;gap:2mm}
.shared-document-footer .footer-contact svg{width:4.2mm;height:4.2mm;flex-basis:4.2mm}
.shared-document-footer .footer-contact strong{font-size:6.8pt;overflow-wrap:anywhere}
.shared-document-footer .footer-contact[hidden]{display:none!important}
.history-filters{display:flex;align-items:center;gap:8px;margin:0 0 22px;flex-wrap:wrap}
.history-filter{padding:9px 13px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:13px;font-weight:700;text-decoration:none;background:var(--web-surface,#fff)}
.history-filter:hover,.history-filter.is-active{border-color:var(--orange);color:var(--orange);background:var(--orange-soft)}
.history-search{display:flex;align-items:center;gap:8px;margin-left:auto;padding:0;background:transparent}
.history-search label{font-size:12px;color:var(--muted)}
.history-search input{width:220px;margin:0;min-height:40px;padding:9px 11px}
.history-search button{min-height:40px;padding:9px 14px;border:0;border-radius:8px;background:var(--orange);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.project-history-link,.standalone-badge{display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800}.project-history-link{background:var(--orange-soft);color:var(--orange);text-decoration:none}.standalone-badge{background:var(--panel);color:var(--muted)}
.history-table td small{display:block;margin-top:4px;line-height:1.35}
@media screen and (min-width:761px){
  .history-table-wrap{border:0;overflow:visible}
  .history-table{border-collapse:separate;border-spacing:0 10px}
  .history-table thead th{background:transparent;border-bottom:1px solid var(--line)}
  .history-table tbody tr{background:#fff;box-shadow:0 4px 16px rgba(0,0,0,.045)}
  .history-table tbody td{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
  .history-table tbody td:first-child{border-left:1px solid var(--line);border-radius:12px 0 0 12px}
  .history-table tbody td:last-child{border-right:1px solid var(--line);border-radius:0 12px 12px 0}
}
@media screen and (max-width:760px){
  .history-filters{align-items:stretch;gap:7px}
  .history-filter{flex:1 1 auto;text-align:center}
  .history-search{width:100%;margin:6px 0 0;display:grid;grid-template-columns:minmax(0,1fr) auto}
  .history-search label{grid-column:1/-1}
  .history-search input{width:100%;min-width:0}
}

/* v3.4: separate web theme from document theme. */
@media screen{
  body{background:var(--web-background,#F2F2F2);color:var(--web-text,#222)}
  .app-card,.system-card,.history-card{background:var(--web-surface,#fff);color:var(--web-text,#222)}
  .pdf-page,.material-pdf{--orange:var(--document-accent,#F07E00);--orange-dark:var(--document-accent,#F07E00);--orange-soft:var(--document-secondary,#FFF6EC);--ink:var(--document-text,#222);--panel:var(--document-box,#fff)}
}
.manual-signature-row[hidden]{display:none}

@media screen{
.hand-signature-toggle{
  display:flex;
  min-width:0;
  align-items:flex-start;
  gap:12px;
  margin:0 0 18px;
  padding:15px 17px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--orange-soft);
  cursor:pointer;
}
.hand-signature-toggle input{
  flex:0 0 22px;
  width:22px;
  height:22px;
  min-width:22px;
  max-width:22px;
  margin:0;
  accent-color:var(--orange);
}
.hand-signature-toggle span{min-width:0}
.hand-signature-toggle strong{display:block;color:var(--ink);font-size:15px}
.hand-signature-toggle small{display:block;margin-top:3px;color:var(--muted);font-size:12px;font-weight:400;line-height:1.4}
}

@media screen and (max-width:760px){
.hand-signature-toggle{min-height:54px;padding:14px}
}

/* Dynamic company profile overrides. */
:root{
  --orange-soft:color-mix(in srgb,var(--orange) 8%,white);
  --orange-line:color-mix(in srgb,var(--orange) 32%,transparent);
}
[hidden]{display:none!important}
input:focus,
textarea:focus,
.document-info-grid select:focus,
.payment-fields select:focus,
.startup-checklist label:focus-within,
.money-input:focus-within{
  box-shadow:0 0 0 3px color-mix(in srgb,var(--orange) 12%,transparent);
}
.form-actions button{
  box-shadow:0 8px 18px color-mix(in srgb,var(--orange) 24%,transparent);
}
.price-secondary>div+div,
.rot-price-heading,
.rot-price-note,
.term-icon{
  border-color:var(--orange-line);
}
.rot-fields{background:var(--orange-soft)}
.notice-copy{white-space:normal}
.notice-list{
  margin:0;
  padding:0 0 0 4.2mm;
  font-size:7.15pt;
  line-height:1.28;
}
.notice-list li{margin:0 0 1.1mm;padding-left:.5mm}
.notice-list li:last-child{margin-bottom:0}
.notice-list li::marker{color:var(--orange);font-size:.9em}

[type="date"]{box-sizing:border-box}
@media screen{
  input[type="date"]{-webkit-appearance:none;appearance:none;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
}

@media screen{
  .history-table tbody tr,
  .history-actions a,
  .history-actions button,
  .history-sort select,
  .history-sort button,
  .status-controls select,
  .status-controls .secondary-action,
  .document-info-grid select,
  .payment-fields select,
  .protocol-form-block,
  .protocol-notes-input,
  .protocol-notes-output{background:var(--web-surface,#fff)}
}

/* Running work page 1: use the shared offer document box language. */
.running-work-pdf .module-pdf-section{
  margin-bottom:4mm;
  border-radius:3mm;
}
.running-work-pdf .card-heading{
  padding:3.8mm 4.5mm;
}
.running-work-pdf .running-description>div[data-description]{
  height:auto;
  min-height:24mm;
  padding:3mm 4.5mm;
  font-size:9.3pt;
  line-height:1.55;
}
.running-work-pdf .running-terms-grid{gap:4mm}
.running-work-pdf .running-terms-grid ul,
.running-work-pdf .running-other-terms ul{
  padding:2.5mm 4.5mm 2.5mm 8mm;
}
.running-work-pdf .running-other-terms{margin-bottom:3mm}
