:root{--green:#183f39;--lime:#d9ee97;--ink:#263f39;--muted:#6a7872;--bg:#f5f6f0;--line:#dce2d6;--white:#fff;--radius:22px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Segoe UI,Arial,sans-serif;font-size:15px}button,input,textarea{font:inherit}button,a,label.button{-webkit-tap-highlight-color:transparent}button,.button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit}header{max-width:1260px;margin:auto;padding:28px 42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{text-decoration:none;display:flex;align-items:center;gap:13px;font-weight:650;font-size:19px;letter-spacing:-.4px}.brand small{display:block;font-size:9px;letter-spacing:1.7px;margin-top:5px}.logo{width:49px;height:49px;border-radius:15px;background:var(--green);color:white;text-align:center;font-family:Georgia,serif;font-size:34px;line-height:44px}.logo span{color:var(--lime)}.pill{border:1px solid var(--line);padding:9px 15px;border-radius:30px;font-size:12px}main{max-width:1176px;margin:auto;padding:42px 0 65px}.login-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:95px;align-items:center}.eyebrow{font-size:10px;font-weight:750;letter-spacing:2px;color:#547b5e}h1{font-weight:500;font-size:60px;line-height:1.08;letter-spacing:-2.7px;margin:20px 0}h1 em{font-family:Georgia,serif;font-weight:400}p{color:var(--muted);line-height:1.65}.intro>p{font-size:18px}.paper-scene{position:relative;height:250px;margin:24px 0 12px}.orbit{position:absolute;width:270px;height:210px;background:#e5ebdb;border-radius:50%;left:48px;top:5px}.paper{position:absolute;top:0;left:100px;background:white;box-shadow:0 18px 40px #24403714;width:230px;height:215px;border-radius:10px;transform:rotate(-7deg);padding:28px}.paper-tag{font-size:9px;letter-spacing:1.4px;color:#72906e}.paper-title{font-size:22px;margin:18px 0;font-family:Georgia,serif}.paper-line{width:120px;height:6px;background:#ecf0e6;border-radius:4px;margin:10px 0}.paper-line.short{width:80px}.stamp{position:absolute;right:19px;bottom:19px;background:var(--lime);width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-size:25px}.floating{position:absolute;bottom:25px;left:32px;background:var(--green);color:#fff;transform:rotate(3deg);border-radius:12px;padding:13px 20px;font-size:12px}.spark{position:absolute;font-size:76px;color:#698d54;left:330px;top:7px}.benefits{display:flex;gap:26px;font-size:12px;color:var(--muted)}.login-card,.card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:36px}.login-card{box-shadow:0 16px 50px #29433205}.wave{display:inline-block;background:#eff5e6;padding:8px 12px;border-radius:8px;font-size:12px}h2{font-size:25px;letter-spacing:-.7px;font-weight:600;margin:20px 0 8px}.login-card>p{font-size:14px;margin-bottom:28px}label{display:block;font-size:13px;font-weight:600;margin-bottom:20px}input:not([type=checkbox]),textarea{display:block;width:100%;padding:14px 15px;border:1px solid #d6ddd4;border-radius:10px;background:#fcfdfa;color:var(--ink);margin-top:8px;outline:none}input:focus,textarea:focus,button:focus-visible,.button:focus-within{outline:3px solid #a6c678;outline-offset:2px}.password-wrap{position:relative;display:block}.password-wrap input{padding-right:60px}.eye{position:absolute;right:10px;top:12px;background:none;border:0;font-size:12px;color:var(--muted);padding:5px}.primary{border:0;background:var(--green);color:#fff;padding:15px 22px;border-radius:11px;font-weight:600}.primary:hover{background:#28594b}.wide{width:100%;display:flex;justify-content:space-between}.login-help{margin:26px 0;font-size:12px;line-height:1.8;color:var(--muted)}.login-help a{color:var(--green);text-underline-offset:4px}.private-note{padding-top:20px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}footer{max-width:1176px;margin:auto;border-top:1px solid var(--line);padding:22px 0;display:flex;justify-content:space-between;color:var(--muted);font-size:11px}#notice{padding:16px 20px;border-radius:12px;background:#fff1dd;border:1px solid #e7d2af;margin-bottom:22px;line-height:1.5}#notice.success{background:#e9f4dc;border-color:#bacd9c}#account{display:flex;align-items:center;gap:20px;font-size:13px}.quiet{background:none;border:0;color:var(--green);padding:12px}.portal-title{display:flex;justify-content:space-between;align-items:center}.portal-title h1{font-size:42px;letter-spacing:-1.5px}.sun{font-size:80px;color:#9ebc6d}nav{display:flex;gap:10px;border-bottom:1px solid var(--line);margin:24px 0 28px}.tab{padding:14px 18px;background:none;border:0;border-bottom:3px solid transparent;color:var(--muted)}.tab.active{color:var(--green);border-bottom-color:var(--green);font-weight:600}.panel-grid{display:grid;grid-template-columns:1fr 310px;gap:28px}.step{display:flex;gap:15px;align-items:center;margin-bottom:23px}.step>span{border-radius:50%;background:#edf3e2;width:34px;height:34px;display:grid;place-items:center;font-size:11px;flex-shrink:0}.step h2{font-size:20px;margin:0}.step p{font-size:13px;margin:5px 0 0}.dropzone{border:1.5px dashed #a9b99b;background:#f8faf3;border-radius:16px;text-align:center;padding:30px 18px}.dropzone.drag{background:#e7f3d3;border-color:var(--green)}.upload-icon{display:inline-grid;place-items:center;width:54px;height:54px;background:#e7eedb;border-radius:17px;font-size:30px}.dropzone h3{font-weight:600;font-size:19px;margin:16px 0 6px}.dropzone p{font-size:12px;margin:0 0 20px}.file-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.button{position:relative;display:inline-block;border:1px solid #c5d1b9;border-radius:9px;padding:11px 15px;font-size:12px;margin:0;background:white;overflow:hidden}.button input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;margin:0}.camera{background:#edf4df}.dropzone small{display:block;font-size:10px;color:var(--muted);margin-top:20px}.second{margin-top:27px;margin-bottom:13px}textarea{resize:vertical;min-height:95px}.send-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:22px}.send-bottom>span{font-size:11px;color:var(--muted)}.tip-card{padding:28px;background:#eaf0df;border-radius:var(--radius)}.tip-card h2{font-family:Georgia,serif;font-weight:400;font-size:28px;line-height:1.25}.tip-card strong{font-size:12px;overflow-wrap:anywhere}.tip-card p{font-size:13px}.tip-card hr{border:0;border-top:1px solid #d1ddc2;margin:25px 0}.aside-note{font-size:12px;padding:0 15px}.file-list{padding:0;list-style:none}.file-row,.history-row,.client-row{padding:15px 0;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:13px;overflow-wrap:anywhere}.file-row span,.history-row>div,.client-row>div{min-width:0}.history-row small,.client-row small{display:block;color:var(--muted);margin-top:6px;line-height:1.6}.badge{font-size:10px;background:#edf4df;padding:7px 10px;border-radius:20px;white-space:nowrap}.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}#clientForm{background:#f6f8f1;padding:22px;border-radius:14px;margin:25px 0}#clientForm p{font-size:12px}.check{display:flex;align-items:center;gap:10px}.empty{padding:35px 10px;text-align:center;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}@media(max-width:1250px){main,footer{margin-left:40px;margin-right:40px}.login-layout{gap:50px}}@media(max-width:850px){.login-layout{gap:25px}h1{font-size:46px}.login-card,.card{padding:25px}.paper{left:45px}.floating{left:0}.spark{left:240px}.panel-grid{grid-template-columns:1fr}.tip-card{display:none}.pill{display:none}}@media(max-width:620px){header{padding:20px}.brand{font-size:16px}.brand small{font-size:8px}.logo{width:40px;height:40px;font-size:29px;line-height:36px}main{padding:24px 0 35px;margin:0 20px}.login-layout{display:flex;flex-direction:column;gap:20px;align-items:stretch}.intro h1{font-size:39px;line-height:1.08;margin:14px 0}.intro>p{font-size:15px;margin-bottom:0}.intro>p br{display:none}.paper-scene,.benefits{display:none}.login-card{padding:25px}.login-card h2{font-size:23px}.eyebrow{font-size:9px}.portal-title h1{font-size:33px}.sun{display:none}.portal-title p{font-size:14px}nav{gap:0;overflow-x:auto}.tab{padding:13px 10px;font-size:12px;white-space:nowrap}.card{padding:20px}.dropzone{padding:22px 12px}.send-bottom{flex-direction:column;align-items:stretch}.send-bottom .primary{width:100%}.form-grid{grid-template-columns:1fr}.section-head{align-items:flex-start;flex-direction:column}#greeting{display:none}#account{gap:0}footer{margin:0 20px;font-size:10px;gap:20px}.history-row{align-items:flex-start;flex-direction:column}}

/* Logotipo original de la asesoría: se conserva completo y sin deformar. */
header{padding-top:16px;padding-bottom:16px}.brand{gap:24px;flex-shrink:0}.brand-logo{display:block;width:112px;height:auto;mix-blend-mode:multiply}.brand-area{font-size:10px;letter-spacing:2px;font-weight:650;border-left:1px solid var(--line);padding-left:24px}@media(max-width:620px){header{padding:14px 20px;gap:10px}.brand{gap:16px}.brand-logo{width:90px;height:auto}.brand-area{font-size:8px;letter-spacing:1.3px;padding-left:16px}}@media(max-width:360px){.brand-area{display:none}}

/* Espacio privado de documentos */
.document-search{display:flex;align-items:end;gap:16px;margin:24px 0}.document-search label{flex:1;margin:0}.document-search button{margin-bottom:0}.document-card{border:1px solid var(--line);border-radius:16px;padding:20px;margin:16px 0}.document-head{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}.document-head small,.mail-status{color:var(--muted);font-size:13px}.document-list{list-style:none;padding:0;margin:12px 0 0}.document-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid var(--line)}.document-list li span{overflow-wrap:anywhere;min-width:0}.document-download{display:inline-block;padding:10px 14px;border-radius:10px;background:var(--green);color:white;text-decoration:none;font-weight:600;white-space:nowrap}.document-download:hover{opacity:.85}.document-note{white-space:pre-wrap;overflow-wrap:anywhere}#moreDocuments{margin-top:16px}@media(max-width:620px){.document-search{align-items:stretch;flex-direction:column}.document-list li{align-items:flex-start;flex-direction:column}.document-card{padding:14px}.document-head{flex-direction:column}}

.document-search{display:grid;grid-template-columns:2fr repeat(4,minmax(120px,1fr));align-items:end}.document-search label{min-width:0}.document-search select{width:100%;min-height:46px;padding:12px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);font:inherit}.document-search input{min-width:0;width:100%}.filter-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:12px;align-items:center}.filter-help{font-size:13px;color:var(--muted)}@media(max-width:900px){.document-search{grid-template-columns:repeat(2,minmax(0,1fr))}.document-search>label:first-child{grid-column:1/-1}}@media(max-width:480px){.document-search{grid-template-columns:minmax(0,1fr)}.filter-actions{align-items:stretch;flex-direction:column}}
/* Test invoicing module */
.vf-warning{background:#fff4dc;border:1px solid #dfbd75;border-radius:12px;padding:16px;margin:18px 0;color:#604616}.vf-warning p{margin:8px 0}.vf-line{display:grid;grid-template-columns:3fr 1fr 1fr 1fr auto;gap:12px;align-items:end;margin:12px 0}.vf-line label{display:grid;gap:6px}.vf-line input,.vf-line select{width:100%;min-width:0}.vf-paper{background:#fff;border:1px solid #d8e0db;border-radius:12px;padding:24px;margin:22px 0;overflow-x:auto}.vf-paper table{border-collapse:collapse;width:100%;margin:22px 0}.vf-paper th,.vf-paper td{text-align:left;padding:12px 8px;border-bottom:1px solid #ddd}.vf-hash{overflow-wrap:anywhere;font-size:12px}.vf-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}#invoiceForm fieldset{border:1px solid #d8e0db;border-radius:12px;padding:16px;margin:18px 0}#invoiceForm legend{font-weight:700;padding:0 8px}#invoiceForm .form-grid label{display:grid;gap:8px}@media(max-width:700px){.vf-line{grid-template-columns:1fr 1fr}.vf-line label:first-child{grid-column:1/-1}.vf-paper{padding:12px}.vf-paper th,.vf-paper td{padding:8px 4px;font-size:12px}}@media print{body *{visibility:hidden}#invoiceDetail,#invoiceDetail .vf-paper,#invoiceDetail .vf-paper *{visibility:visible}#invoiceDetail{position:absolute;top:0;left:0;width:100%}.vf-paper{border:0;margin:0;overflow:visible}.vf-actions{display:none!important}.vf-warning{color:#000;border:2px solid #000}body{background:#fff}}

@media print{body>header,body>footer,main>#notice,main>#loginView,#portalView>nav,#portalView>.portal-title,#portalView>section:not(#invoicesPanel),#invoicesPanel>*:not(#invoiceDetail){display:none!important}main,#portalView,#invoicesPanel,#invoiceDetail{position:static!important;display:block!important;margin:0!important;padding:0!important;width:100%!important;max-width:none!important;border:0!important;box-shadow:none!important}#invoiceDetail .vf-paper{padding:0!important}#invoiceDetail .vf-paper tr{break-inside:avoid}#invoiceDetail .vf-paper thead{display:table-header-group}@page{margin:15mm}}
#profileForm fieldset{border:1px solid #d8e0db;border-radius:12px;padding:20px;margin:20px 0}#profileForm legend{font-weight:700;padding:0 8px}#profileForm label{display:grid;gap:8px}#profileForm label.check{display:flex;align-items:center}#profileImages{display:flex;flex-wrap:wrap;gap:20px;margin-top:18px}.vf-logo{display:block;max-width:180px;max-height:100px;object-fit:contain;margin-bottom:20px}.vf-design{display:block;width:100%;max-height:190px;object-fit:contain;object-position:left center;margin-bottom:24px}.vf-layout-compact h3{margin:12px 0 6px}.vf-layout-compact p{margin:6px 0}.vf-layout-compact th,.vf-layout-compact td{padding:7px}#invoiceForm input[readonly]{background:#f2f5f2;color:#354d46}#invoiceRetention{max-width:220px}#profileStatus{margin-top:14px}@media print{.vf-logo{max-width:45mm;max-height:25mm}.vf-design{max-height:40mm}}

.vf-preview-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:28px}.vf-preview-toolbar span{font-size:13px;color:#63736d}.vf-preview-toolbar button{margin-left:auto}.vf-preview-help{font-size:13px}.vf-preview-stage{background:#e4e8e5;padding:28px;overflow-x:auto;border-radius:12px}.vf-preview-stage .vf-a4{box-sizing:border-box;width:210mm;min-width:210mm;min-height:297mm;margin:0 auto;padding:15mm;border:0;border-radius:0;box-shadow:0 4px 20px #0002;overflow:visible;display:flex;flex-direction:column;font-size:11pt;line-height:1.45;color:#243a33}.vf-a4 h2{font-size:18pt}.vf-a4 h3{font-size:12pt}.vf-a4 p{overflow-wrap:anywhere}.vf-a4 th,.vf-a4 td{font-size:10pt;padding:10px 6px}.vf-a4 .vf-logo{max-width:45mm;max-height:25mm}.vf-a4 .vf-design{max-height:40mm}.vf-a4 .vf-preview-footer{margin-top:auto;padding:12mm 0 0;border:0;font-size:9pt;color:#65736c;display:block;width:auto}.vf-a4.vf-layout-compact th,.vf-a4.vf-layout-compact td{padding:7px}.vf-a4.vf-layout-compact p{margin:6px 0}@media(max-width:700px){.vf-preview-stage{padding:16px}.vf-preview-toolbar button{margin-left:0}}@media print{#invoiceDetail .vf-paper{font-size:11pt;line-height:1.45}#invoiceDetail .vf-paper h2{font-size:18pt}#invoiceDetail .vf-paper h3{font-size:12pt}@page{size:A4}}
.vf-a4 h2{margin:0 0 4mm}.vf-a4 h3{margin:4mm 0 2mm}.vf-a4 p{margin:0 0 3mm}.vf-a4 .vf-warning{margin:2mm 0 4mm;padding:3mm}.vf-a4 table{margin:4mm 0}.vf-a4 .vf-preview-footer{padding-top:5mm}@media print{#invoiceDetail .vf-paper h2{margin:0 0 4mm}#invoiceDetail .vf-paper h3{margin:4mm 0 2mm}#invoiceDetail .vf-paper p{margin:0 0 3mm}#invoiceDetail .vf-paper .vf-warning{margin:2mm 0 4mm;padding:3mm}#invoiceDetail .vf-paper table{margin:4mm 0}}

.vf-paper{position:relative;isolation:isolate}.vf-paper .vf-watermark{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:75%;max-height:65%;object-fit:contain;opacity:.07;z-index:-1;pointer-events:none}.vf-paper .vf-party-name{font-weight:600;margin-bottom:1mm}.vf-paper .vf-party-tax{margin-top:0;margin-bottom:1mm}.vf-paper .vf-party-address{margin-top:0;margin-bottom:4mm}@media print{.vf-paper .vf-watermark{print-color-adjust:exact;-webkit-print-color-adjust:exact}.vf-paper .vf-party-name,.vf-paper .vf-party-tax{margin-bottom:1mm!important}.vf-paper .vf-party-address{margin-top:0!important}}
/* Personal template: independent identity, invoice data and decorative assets. */
.vf-paper.vf-branded{color:#181818;font-family:Arial,sans-serif;display:flex;flex-direction:column;min-height:267mm;overflow:visible}
.vf-branded p{color:#222;line-height:1.45;margin:0 0 2mm}.vf-branded .vf-template-head{display:flex;align-items:center;gap:8mm;margin-bottom:8mm;break-inside:avoid}.vf-branded .vf-template-logo{width:28mm;height:28mm;object-fit:contain;flex-shrink:0}.vf-branded .vf-template-issuer{flex:1;min-width:0}.vf-branded .vf-template-issuer h2{font-size:19pt;margin:0 0 2mm;line-height:1.2;overflow-wrap:anywhere}.vf-branded .vf-template-subtitle{font-style:italic;color:#777;margin-bottom:3mm;font-size:11pt}.vf-branded .vf-template-top{display:flex;justify-content:space-between;align-items:center;gap:8mm;margin:0 0 10mm;break-inside:avoid}.vf-branded .vf-template-top h2{margin:0 0 4mm}.vf-branded .vf-template-test{font-size:8pt;color:#75551b}.vf-branded .vf-qr-reserve{width:35mm;height:35mm;flex-shrink:0;border:1px dashed #777;background:white;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:2mm;color:#555}.vf-qr-reserve strong{font-size:18pt}.vf-qr-reserve span{font-size:8pt}.vf-qr-reserve small{font-size:7pt}.vf-branded .vf-template-recipient{border:1px solid #222;padding:5mm;margin-bottom:10mm;break-inside:avoid}.vf-template-recipient>strong{font-size:9pt;display:block;margin-bottom:3mm}.vf-branded .vf-template-watermark{position:absolute;width:100%;height:180mm;object-fit:contain;left:0;top:55mm;filter:grayscale(1);opacity:.08;z-index:-1;pointer-events:none}.vf-branded table{margin:0 0 5mm;width:100%;table-layout:fixed}.vf-branded th{background:#dedede;color:#111;font-size:9pt}.vf-branded td{vertical-align:top;font-size:10pt;overflow-wrap:anywhere;white-space:pre-wrap}.vf-branded th:first-child{width:44%}.vf-branded th:nth-child(2){width:10%}.vf-branded th:nth-child(3){width:18%}.vf-branded th:nth-child(4){width:10%}.vf-branded th:nth-child(5){width:18%}.vf-branded th:not(:first-child),.vf-branded td:not(:first-child){text-align:right}.vf-branded tr{break-inside:avoid}.vf-branded .vf-template-totals{text-align:right;break-inside:avoid;margin-bottom:8mm}.vf-template-totals strong{display:block;margin-top:4mm;font-size:13pt}.vf-branded .vf-template-bottom{margin-top:auto;padding-top:8mm;break-inside:avoid}.vf-template-bottom>strong{font-size:9pt}.vf-branded .vf-template-footer{width:100%;height:30mm;object-fit:contain;display:block;margin-top:10mm}.vf-branded .vf-hash{font-size:8pt}.vf-branded.vf-a4{min-height:297mm}.vf-branded *{print-color-adjust:exact;-webkit-print-color-adjust:exact}@media print{#invoiceDetail .vf-branded{min-height:267mm}.vf-branded .vf-template-watermark{opacity:.08}.vf-branded .vf-template-issuer h2{font-size:19pt!important}}

.vf-branded .vf-template-top{margin-bottom:7mm}.vf-branded .vf-template-recipient{margin-bottom:7mm}.vf-branded .vf-template-bottom{padding-top:5mm}.vf-branded .vf-template-footer{height:26mm}
/* Five generic designs: no client-specific artwork. */
.vf-branded{--accent:#245847}.vf-accent-blue{--accent:#204e8a}.vf-accent-burgundy{--accent:#802d46}.vf-accent-graphite{--accent:#3c434b}.vf-accent-teal{--accent:#12656d}.vf-accent-ochre{--accent:#775519}
.vf-branded .vf-custom-footer-text{font-size:9pt;white-space:pre-wrap;margin-top:3mm}.vf-branded .vf-template-totals>strong{color:var(--accent)}
.vf-theme-modern .vf-template-head{border-top:5mm solid var(--accent);padding-top:5mm}.vf-theme-modern th{background:var(--accent);color:white}.vf-theme-modern .vf-template-recipient{border:0;border-left:2mm solid var(--accent);background:#f6f7f8}
.vf-theme-minimal .vf-template-head{border-bottom:1px solid var(--accent);padding-bottom:5mm}.vf-theme-minimal .vf-template-recipient{border:0;padding:0}.vf-theme-minimal th{background:white;border-bottom:2px solid var(--accent);color:var(--accent)}.vf-theme-minimal .vf-template-issuer h2{font-weight:400;font-size:18pt}
.vf-theme-elegant .vf-template-head{border-top:1px solid var(--accent);border-bottom:3px double var(--accent);padding:4mm 0}.vf-theme-elegant h2{font-family:Georgia,serif;color:var(--accent)}.vf-theme-elegant .vf-template-recipient{border:1px solid var(--accent)}.vf-theme-elegant th{background:#f4f1ec;color:var(--accent)}
.vf-theme-ledger .vf-template-head{margin-bottom:4mm;border-left:2mm solid var(--accent);padding-left:4mm}.vf-theme-ledger .vf-template-logo{width:20mm;height:20mm}.vf-theme-ledger .vf-template-top{margin-bottom:4mm}.vf-theme-ledger .vf-template-recipient{padding:3mm;margin-bottom:4mm}.vf-theme-ledger th,.vf-theme-ledger td{padding:5px 4px;font-size:9pt}.vf-theme-ledger th{background:var(--accent);color:white}.vf-theme-ledger .vf-template-issuer h2{font-size:16pt}
.vf-theme-corporate .vf-template-head{flex-direction:column;gap:3mm;text-align:center;border-bottom:2mm solid var(--accent);padding-bottom:4mm;margin-bottom:4mm}.vf-theme-corporate .vf-template-logo{width:18mm;height:18mm}.vf-theme-corporate .vf-template-issuer h2{font-size:17pt;color:var(--accent)}.vf-theme-corporate .vf-template-recipient{border:0;background:#f3f5f7;padding:4mm}.vf-theme-corporate th{background:var(--accent);color:white}
.vf-branded:not(.vf-theme-branded) .vf-template-footer{margin-top:4mm;height:22mm}
.vf-field-help{font-weight:400;color:#596b62;font-size:12px;line-height:1.5}.vf-save-state{background:#fff1cd;padding:6px 10px;border-radius:6px}.vf-edit-caption{background:#eaf3ff;color:#174a79!important;border-left:3px solid #2875bb;padding:8px 12px;font-size:13px}.vf-edit-highlight{outline:3px dashed #2875bb!important;outline-offset:4px}.vf-live-preview .vf-preview-toolbar{margin-top:0}.vf-live-preview .vf-preview-toolbar span{font-size:12px}.vf-live-preview{min-width:0}.vf-live-preview .vf-preview-stage{padding:16px}.vf-live-preview .vf-a4{zoom:.6}.vf-profile-editor{display:grid;gap:24px}.vf-live-preview .vf-preview-help{font-size:12px}@media(min-width:1100px){.vf-profile-editor{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.vf-profile-editor .form-grid{grid-template-columns:1fr}.vf-live-preview{position:sticky;top:16px;max-height:95vh;overflow:auto}.vf-live-preview .vf-a4{zoom:.54}#profileForm fieldset{padding:16px}}@media print{.vf-edit-highlight{outline:0!important}.vf-edit-caption,.vf-field-help,.vf-save-state{display:none!important}}
.vf-catalog{border:1px solid #cbd8ce;border-radius:14px;padding:20px;margin:20px 0;background:#f7faf6}.vf-catalog-form{max-width:620px;border-bottom:1px solid #ccd8cf;padding:16px 0}.vf-client-picker{display:grid;gap:10px;margin:12px 0 22px}.vf-product-picker{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px}.vf-product-picker select,.vf-client-picker select,.vf-catalog select{width:100%;min-width:0;padding:12px;border:1px solid #cbd8ce;border-radius:8px;background:white;font:inherit}.vf-product-picker input{margin:0!important}@media(max-width:620px){.vf-product-picker{grid-template-columns:1fr}}

.vf-import{padding:20px;border:1px solid #bed1cb;border-radius:12px;margin:16px 0;background:#f5f9f7}.vf-import label{display:block;margin:14px 0}.vf-import-table{overflow:auto;max-height:420px;margin:16px 0}.vf-import table{width:100%;border-collapse:collapse;background:white}.vf-import th,.vf-import td{padding:10px;text-align:left;border-bottom:1px solid #d8e3df;white-space:normal;overflow-wrap:anywhere}.vf-import th{background:#183f39;color:white;position:sticky;top:0}.vf-import-error{background:#fff0ec;color:#8b2318}

/* QR is generated locally, with M correction and a four-module quiet zone. */
.vf-tax-qr{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;margin:0 auto 16px;text-align:center;break-inside:avoid;color:#000;background:#fff;font-size:12px}
.vf-tax-qr img{display:block;width:35mm;height:35mm;max-width:none;image-rendering:pixelated}
.vf-tax-qr strong{font-size:14px}.vf-tax-qr small{font-size:11px}
.vf-cycle-note{position:relative;border:1px solid #b5c9c4;padding:12px;margin:12px 0;background:#f5f8f6;break-inside:avoid}
.vf-actions>.vf-catalog-form{flex-basis:100%;width:100%}
@media print{.vf-tax-qr img{width:35mm!important;height:35mm!important}.vf-tax-qr{break-inside:avoid}.vf-cycle-note{break-inside:avoid}}

body[data-invoice-access='no'] [data-tab='invoices'],body[data-invoice-access='no'] [data-tab='profile']{display:none!important;}

/* Keep the actual QR in the space reserved beside the invoice number. */
.vf-template-top>.vf-tax-qr{flex:0 0 45mm;width:45mm;margin:0;line-height:1.2}.vf-template-top>.vf-tax-qr small{max-width:45mm}

/* Client workspace keeps the test environment visible without technical controls. */
body[data-client-invoices="yes"] #invoicesPanel>.vf-warning,body[data-client-invoices="yes"] #invoicesPanel>.section-head .eyebrow{display:none}
.vf-client-notice{padding:14px 18px;border:1px solid #dec58f;border-radius:10px;background:#fff8e9;margin:16px 0 24px;color:#614b20}.vf-client-notice p{margin:5px 0 0;font-size:14px}.vf-client-status{flex-basis:100%;font-weight:600}.vf-client-actions{margin:20px 0}
body[data-client-invoices="yes"] #invoiceDetail .vf-hash{display:none}
@media print{.vf-client-notice,.vf-client-actions{display:none!important}}
