:root{--bg:#f4f5f7;--dark:#222329;--red:#c3202e;--red-dark:#9a1724;--text:#25262c;--muted:#6b6e75;--border:#e0e1e6;--shadow:0 8px 30px #2223290b}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px Inter,Arial,sans-serif;line-height:1.5}button,input,textarea,select{font:inherit}button{border:0;border-radius:8px;padding:12px 20px;cursor:pointer;font-weight:700;min-height:46px}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--red);color:white}.primary:hover{background:var(--red-dark)}.secondary{background:#ebedf1;color:var(--dark)}.outline{background:transparent;color:white;border:1px solid #555}.full{width:100%}h1,h2,p{margin:0 0 12px}h1{font-size:clamp(25px,4vw,35px);letter-spacing:-.035em;line-height:1.2}h2{font-size:20px;letter-spacing:-.025em}p{color:var(--muted)}label{display:block;font-size:14px;font-weight:700;margin:12px 0;color:#404149}input,textarea,select{display:block;width:100%;padding:11px 12px;margin-top:6px;border:1px solid #cfd1d6;border-radius:8px;background:white;color:var(--text);outline:none;min-height:46px}input:focus,textarea:focus,select:focus{border-color:var(--red);box-shadow:0 0 0 3px #c3202e14}input[readonly]{background:#f3f4f6}.login-screen{display:grid;place-items:center;min-height:100dvh;padding:28px;background:linear-gradient(125deg,#17181e 0%,#34343b 72%,#731e28 100%)}.login-card{width:min(100%,420px);background:white;padding:32px;border-radius:18px;box-shadow:0 20px 80px #0004}.login-logo{background:var(--dark);border-radius:10px;margin:-8px -8px 25px;padding:10px;text-align:center}.login-logo img{width:100%;max-height:130px;object-fit:contain}.login-card p{font-size:14px}.login-card h1{font-size:28px}.login-card .primary{margin-top:9px}.login-screen footer{position:fixed;bottom:20px;color:#bbb;font-size:12px;letter-spacing:.03em}#loginMessage{color:var(--red);margin-top:10px}header{display:flex;align-items:center;justify-content:space-between;background:var(--dark);padding:10px max(18px,calc((100vw - 1100px)/2));color:white;gap:15px;min-height:76px}header img{width:170px;max-height:64px;object-fit:contain}.header-right{display:flex;align-items:center;gap:12px;font-size:14px}.status{background:#35694a;color:white;border-radius:20px;padding:5px 10px;font-size:12px;white-space:nowrap}.status.offline{background:#7d5827}nav{display:flex;gap:4px;background:white;border-bottom:1px solid var(--border);padding:0 max(12px,calc((100vw - 1100px)/2));overflow:auto}nav button{border-radius:0;background:white;color:#73757d;padding:15px 18px;white-space:nowrap;border-bottom:3px solid transparent}nav button.selected{color:var(--red);border-bottom-color:var(--red)}main{max-width:1100px;padding:26px 18px;margin:auto}.hero{border-radius:16px;background:linear-gradient(120deg,#292a30,#393940);color:white;padding:30px 32px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px;border-left:5px solid var(--red)}.hero p{color:#d1d1d6}.hero img{width:240px;max-height:130px;object-fit:contain}.eyebrow{letter-spacing:.11em;font-size:12px;font-weight:700}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.stats article,.card{background:white;border:1px solid var(--border);border-radius:13px;padding:23px;box-shadow:var(--shadow)}.stats article span{font-size:13px;color:var(--muted);display:block;margin-bottom:12px}.stats strong{font-size:30px;display:block}.stats .small-value{font-size:20px}.card{margin-bottom:16px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.section-title p{margin:6px 0 0}.grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin-bottom:20px}.steps span{padding:10px 5px;background:#e4e6e9;text-align:center;font-size:13px;color:#555;border-radius:6px}.steps span.active{background:var(--red);color:white;font-weight:800}.steps span.done{background:#f4d9dd;color:#971e2a}.step-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:14px;flex-wrap:wrap}.part{display:grid;grid-template-columns:1fr 90px 46px;gap:8px;align-items:center;margin-bottom:10px}.part input{margin:0}.part button{padding:8px}.report-head{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid var(--red);padding-bottom:15px;margin-bottom:20px}.report-head img{width:160px;background:var(--dark);border-radius:6px}.report-head h1{font-size:25px}.report-head p{font-size:13px}.report-field{padding:10px 0;border-bottom:1px solid #eee;overflow-wrap:anywhere}.report-field b{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}.report-field div{white-space:pre-wrap}canvas{width:100%;height:150px;background:white;border:1px solid #b6b6bd;border-radius:8px;touch-action:none;display:block;margin:10px 0}#signatureOutput img{max-width:100%;max-height:110px}.checkbox{display:flex;align-items:center;gap:10px}.checkbox input{width:20px;min-height:20px;margin:0}.muted{font-size:13px;color:var(--muted)}.message{background:#fff5e0;border:1px solid #eccb81;padding:12px 15px;border-radius:8px;color:#654817;margin-bottom:15px}.record{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #e7e7eb;padding:15px 0}.record:last-child{border:0}.record b{font-size:17px;display:block}.record small{color:var(--muted)}.record-actions{display:flex;gap:6px;flex-wrap:wrap}.record-actions button{padding:9px 12px;font-size:13px}.danger{color:var(--red);background:#fce8eb}.empty{padding:23px 0;color:var(--muted)}[hidden]{display:none!important}@media(max-width:650px){main{padding:16px 12px}header{padding:9px 12px;min-height:65px}header img{width:117px}.header-right{gap:6px}#person{display:none}.header-right .outline{padding:7px 10px;font-size:12px}.hero{padding:22px}.hero img{display:none}.stats{grid-template-columns:1fr;gap:9px}.stats article{display:flex;align-items:center;justify-content:space-between;padding:14px 18px}.stats article span{margin:0}.grid{grid-template-columns:1fr}.steps span{font-size:11px}.card{padding:18px}.record{align-items:flex-start;flex-direction:column}.report-head{align-items:flex-start;flex-direction:column;gap:12px}.login-card{padding:24px}}@media print{body{background:white}header,nav,.no-print,.message,.step-actions{display:none!important}main{max-width:none;padding:0}.card.report{border:0;box-shadow:none;padding:0}.view:not(#review){display:none!important}.report-field{break-inside:avoid}.report-head img{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.mail-choice{border:0;padding:0;margin:20px 0 12px;min-width:0}.mail-choice legend{font-weight:700;font-size:16px}.choice-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choice-buttons label{margin:8px 0 0;cursor:pointer}.choice-buttons input{position:absolute;width:1px;height:1px;opacity:0}.choice-buttons span{display:block;text-align:center;padding:13px;background:#ebedf1;border:2px solid transparent;border-radius:8px;font-size:17px}.choice-buttons input:checked+span{background:#fce8eb;border-color:var(--red);color:var(--red)}.choice-buttons input:focus-visible+span{outline:2px solid var(--dark)}

.customer-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.customer-shortcuts button{min-height:54px;text-align:center;border:1px solid #e0e1e6;background:#f4f5f7;color:var(--dark);font-size:14px;line-height:1.35}.customer-shortcuts button:hover,.customer-shortcuts button:focus-visible{border-color:var(--red);color:var(--red)}@media(max-width:420px){.customer-shortcuts{gap:8px}.customer-shortcuts button{padding:12px 8px;font-size:13px}}

.delivery-status{display:block;margin-top:7px;color:#626771;font-size:13px;font-weight:700;line-height:1.4}.delivery-status.delivered{color:#247543}.delivery-status.mail-failed{color:#b12636}.record-actions .primary{min-height:42px}

.apk-download{display:block;text-align:center;margin-top:18px;font-size:14px;font-weight:700;color:var(--red);text-decoration:underline;text-underline-offset:3px}

@page{size:A4;margin:11mm}
@media print{
  body{font-size:10pt;line-height:1.25}
  .report-head{flex-direction:row;align-items:center;gap:8mm;padding-bottom:3mm;margin-bottom:3mm}
  .report-head img{width:35mm;max-height:15mm}
  .report-head h1{font-size:17pt;margin:0 0 2mm}
  .report-head p{font-size:9pt;margin:0}
  #reportBody{display:grid;grid-template-columns:1fr 1fr;column-gap:5mm}
  .report-field{padding:1.5mm 0;break-inside:avoid}
  .report-field-wide{grid-column:1/-1}
  .report-field b{font-size:8pt;margin-bottom:.7mm}
  #signatureOutput{break-inside:avoid;margin-top:3mm}
  #signatureOutput p{margin:0 0 1mm;font-size:9pt}
  #signatureOutput img{max-width:55mm;max-height:15mm}
}

.brand-autocomplete{position:relative;min-width:0}
.suggestion-list{position:absolute;top:calc(100% - 10px);left:0;right:0;background:#fff;border:1px solid #d4d4da;border-radius:8px;box-shadow:0 6px 18px #22232922;z-index:50;overflow:auto;max-height:220px}
.suggestion-list button{display:block;width:100%;text-align:left;border-radius:0;background:white;color:var(--text);border-bottom:1px solid #eee;font-weight:600;padding:11px 13px}
.suggestion-list button:last-child{border-bottom:0}
.suggestion-list button:hover,.suggestion-list button[aria-selected=true]{background:#fce8eb;color:var(--red)}
