:root{--nav:#102a43;--nav2:#173f5f;--accent:#087f8c;--bg:#f5f7fb;--panel:#fff;--line:#e3e8ef;--ink:#172b4d;--muted:#6b778c;--danger:#b42318;--success:#087a55;--warn:#b45309;--shadow:0 12px 32px rgba(16,42,67,.08)}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}.hidden{display:none!important}.login-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(145deg,#102a43,#174f6f)}.login-card{width:min(410px,100%);background:white;border-radius:18px;padding:28px;display:grid;gap:14px;box-shadow:0 28px 80px rgba(0,0,0,.24)}h1,h2,h3,p{margin:0}h1{font-size:25px}h2{font-size:20px}.eyebrow{color:var(--accent);font-size:10px;font-weight:800;letter-spacing:1.2px}.muted{color:var(--muted);font-size:13px;line-height:1.5}.error{color:var(--danger);font-size:12px}.brand-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#d7f4f6;color:var(--nav);font-weight:900}.login-card label,.field{display:grid;gap:5px;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.45px;text-transform:uppercase}.shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--nav);color:#dbe7f2;padding:20px 14px;display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;padding:0 6px 22px}.brand strong{display:block;color:#fff;font-size:14px}.brand small,.side-footer small{display:block;color:#9db4c8;font-size:11px;margin-top:3px}nav{display:grid;gap:4px;overflow:auto}.nav-group{margin:11px 8px 3px;color:#84a5be;font-size:9px;font-weight:900;letter-spacing:1px}.nav-item{display:flex;gap:9px;align-items:center;border:0;border-radius:9px;background:transparent;color:#bfd0de;padding:10px 11px;text-align:left;font-size:12px;cursor:pointer}.nav-item:hover,.nav-item.active{background:var(--nav2);color:#fff}.side-footer{margin-top:auto;padding:15px 8px 0;border-top:1px solid rgba(255,255,255,.15);font-size:12px}.link-btn{border:0;background:none;color:#cdebf0;padding:8px 0 0;cursor:pointer}.content{min-width:0;padding:24px 28px 42px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.top-actions,.toolbar,.inline-actions,.inline-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.top-actions span{font-size:12px;color:var(--muted)}.btn{border:1px solid var(--line);background:#fff;border-radius:8px;padding:9px 12px;color:var(--ink);font-size:12px;font-weight:800;cursor:pointer}.btn:hover{transform:translateY(-1px)}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.danger{background:#fff1f0;color:var(--danger);border-color:#ffd2cf}.btn.sm{padding:6px 8px;font-size:11px}.grid{display:grid;gap:14px}.kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:15px}.two-col{grid-template-columns:1.45fr .8fr}.card{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px;box-shadow:var(--shadow)}.kpi span{color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.6px;text-transform:uppercase}.kpi strong{display:block;font-size:22px;margin-top:10px}.kpi small{display:block;color:var(--muted);margin-top:7px;font-size:11px}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.card h3{font-size:15px}.filter-card{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:13px;flex-wrap:wrap}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:7px;padding:8px 9px;background:#fff;color:var(--ink);font-size:12px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(8,127,140,.13)}textarea{min-height:76px;resize:vertical}.search{min-width:270px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px}table{width:100%;border-collapse:collapse;min-width:850px}th{padding:9px;background:#f7f9fc;border-bottom:1px solid var(--line);color:#64748b;font-size:10px;text-align:left;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}td{padding:9px;border-bottom:1px solid var(--line);font-size:12px;color:#344054;vertical-align:top}tr:last-child td{border-bottom:0}tr:hover td{background:#fbfdff}.badge{display:inline-flex;padding:4px 7px;border-radius:20px;background:#eef2f6;color:#475467;font-size:10px;font-weight:800}.badge.success{background:#e8f7f0;color:var(--success)}.badge.warn{background:#fff4e5;color:var(--warn)}.badge.danger{background:#fff0ef;color:var(--danger)}.money{white-space:nowrap;font-variant-numeric:tabular-nums}.metric{display:flex;justify-content:space-between;gap:9px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.metric:last-child{border-bottom:0}.empty{padding:26px;text-align:center;color:var(--muted);font-size:13px}.modal-backdrop{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:18px;background:rgba(9,26,42,.58)}.modal{width:min(960px,100%);max-height:calc(100vh - 36px);overflow:auto;background:#fff;border-radius:15px;padding:18px;box-shadow:0 24px 80px rgba(0,0,0,.25)}.modal.narrow{width:min(680px,100%)}.modal header,.modal footer{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.modal header{padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:14px}.modal footer{justify-content:flex-end;padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}.icon-btn{border:0;border-radius:8px;width:32px;height:32px;background:#f3f6f9;color:var(--muted);font-size:23px;cursor:pointer}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.span-2{grid-column:span 2}.toast{position:fixed;right:18px;bottom:18px;z-index:40;max-width:390px;background:#16324a;color:#fff;border-radius:10px;padding:12px 14px;font-size:12px;box-shadow:var(--shadow)}.attachment-item{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}.attachment-item:last-child{border-bottom:0}.report-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px}.notice{background:#eefbfc;border:1px solid #bce4e8;border-radius:9px;padding:12px;color:#285f67;font-size:12px;line-height:1.5}@media(max-width:1080px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col{grid-template-columns:1fr}}@media(max-width:760px){.shell{grid-template-columns:1fr}.sidebar{height:auto;position:static}.side-footer{display:none}nav{display:flex;overflow:auto}.nav-group{display:none}.nav-item{white-space:nowrap}.content{padding:18px 14px 34px}.topbar{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.search{min-width:100%}}@media print{.sidebar,.topbar,.no-print,.btn{display:none!important}.shell{display:block}.content{padding:0}.card{box-shadow:none}.table-wrap{overflow:visible}table{min-width:0}td,th{font-size:9px;padding:5px}}
.brand-logo{display:block;object-fit:contain;background:#fff;border-radius:10px}.login-logo{width:220px;max-height:115px;margin:0 auto 4px}.sidebar-logo{width:76px;height:48px;padding:3px}.settings-logo{display:block;width:100%;max-width:360px;max-height:180px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px;margin-bottom:14px}.logo-form{display:grid;gap:10px;margin-bottom:8px}.report-brand{display:flex;align-items:center;gap:14px}.report-logo-img{width:150px;max-height:75px;object-fit:contain}.bar-list{display:grid;gap:9px}.bar-row{display:grid;grid-template-columns:32px 1fr 105px;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.bar-track{height:7px;background:#e8eef3;border-radius:99px;overflow:hidden}.bar-track.alt{margin-top:4px;opacity:.58}.bar-fill{height:100%;min-width:2px;background:var(--accent);border-radius:99px}.bar-value{text-align:right;color:#344054;white-space:nowrap}.legend{display:flex;gap:16px;margin-top:12px;color:var(--accent);font-size:11px}.pipeline-row{display:grid;grid-template-columns:1fr 32px 132px;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}.pipeline-row:last-child{border-bottom:0}.dashboard-bottom{margin-top:14px}.lookup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tag-list{display:flex;gap:7px;flex-wrap:wrap}.tag{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid var(--line);border-radius:20px;background:#fbfcfe;font-size:11px}.tag button{border:0;background:transparent;color:var(--accent);cursor:pointer}.filter-card select{width:auto;min-width:150px}.report-kpis{margin-top:16px}@media(max-width:760px){.lookup-grid{grid-template-columns:1fr}.sidebar-logo{width:70px}.login-logo{width:190px}.report-brand{align-items:flex-start;flex-direction:column}.report-logo-img{width:130px}}@media print{.report-logo-img{display:block!important}.report-head{align-items:flex-start}.report-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.company-logo{background:#fff}}

/* Relatório gerencial v5.1 */
.report-document{display:grid;gap:16px}.report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eefbfc;border:1px solid #c7e7ea;border-radius:12px;padding:12px 14px}.report-cover{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#102a43,#174f6f);color:#fff;border-radius:16px;padding:22px 24px;box-shadow:var(--shadow)}.report-cover .eyebrow{color:#8ee3e8}.report-cover h2{font-size:24px}.report-subtitle{margin-top:5px;color:#c7dde8;font-size:13px}.report-meta{display:grid;gap:3px;min-width:120px;text-align:right;color:#dbe7f2;font-size:12px}.report-meta strong{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#8ee3e8}.report-section{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;box-shadow:var(--shadow)}.report-section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.report-chip{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eefbfc;color:#087f8c;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.5px}.executive-kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin:0}.executive-kpis .card,.report-operation-grid .card{box-shadow:none;background:#fbfdff}.report-operation-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:14px}.report-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-status-card{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fbfcfe;min-width:0}.report-status-card h4{margin:0 0 8px;font-size:13px}.report-status-card .pipeline-row{grid-template-columns:1fr 28px 108px;font-size:11px;padding:6px 0}.report-status-card .badge{font-size:9px;padding:3px 5px}.report-table-wrap{border-radius:9px}.report-table{min-width:700px}.report-table th{background:#eef4f8;color:#4b6378}.report-table td{font-size:11px}.report-empty{padding:16px}.report-footer{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:10px;border-top:1px solid var(--line);padding-top:10px}.page-break-before{break-before:auto}@media(max-width:1080px){.executive-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.report-status-grid{grid-template-columns:1fr}}@media(max-width:760px){.report-cover{align-items:flex-start;flex-direction:column}.report-meta{text-align:left}.report-operation-grid{grid-template-columns:1fr}.report-toolbar{align-items:flex-start;flex-direction:column}}
@media print{@page{size:A4 landscape;margin:10mm}body{background:#fff}.report-document{gap:8px}.report-cover{background:#fff!important;color:#172b4d;border:1px solid #cbd5df;border-radius:0;box-shadow:none;padding:12px 14px}.report-cover .eyebrow,.report-meta strong{color:#087f8c}.report-subtitle,.report-meta{color:#52667a}.report-section{border:1px solid #d7dee7;border-radius:0;box-shadow:none;padding:10px;break-inside:avoid}.executive-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.executive-kpis .card,.report-operation-grid .card{padding:10px}.kpi strong{font-size:16px;margin-top:6px}.kpi small{font-size:9px}.report-operation-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:8px}.report-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-status-card{padding:8px;break-inside:avoid}.report-status-card .pipeline-row{grid-template-columns:1fr 22px 84px;font-size:9px;padding:4px 0}.report-status-card .badge{font-size:8px}.report-table{min-width:0;table-layout:fixed}.report-table th,.report-table td{font-size:8px;padding:4px;word-break:break-word}.page-break-before{break-before:page}.report-footer{font-size:8px}.report-logo-img{width:130px;max-height:58px}}

/* Documentos comerciais v5.2 */
.commercial-document{display:grid;gap:14px}.doc-toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.doc-toolbar>div{display:flex;gap:8px;flex-wrap:wrap}.doc-paper{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px;box-shadow:var(--shadow);display:grid;gap:18px}.doc-header{display:grid;grid-template-columns:150px 1fr auto;gap:16px;align-items:center;padding-bottom:14px;border-bottom:2px solid #173d59}.doc-logo{width:145px;max-height:78px;object-fit:contain}.doc-company{display:grid;gap:3px;font-size:11px;color:var(--muted)}.doc-company strong{font-size:16px;color:var(--ink)}.doc-number{display:grid;gap:4px;text-align:right}.doc-number span{font-size:10px;font-weight:900;letter-spacing:1px;color:var(--accent)}.doc-number strong{font-size:19px;color:#173d59}.doc-number small{color:var(--muted)}.doc-info-grid{display:grid;grid-template-columns:1.4fr .7fr .9fr;gap:14px}.doc-info-grid>div{display:grid;gap:4px;padding:11px;border:1px solid var(--line);border-radius:9px;background:#fbfdff}.doc-info-grid span,.doc-block span{font-size:10px;font-weight:900;letter-spacing:.5px;color:var(--muted);text-transform:uppercase}.doc-info-grid small{font-size:11px;color:var(--muted)}.doc-block{padding:10px 0}.doc-block h2{margin-top:4px;font-size:18px;color:#173d59}.doc-items h3,.doc-terms h3{font-size:14px;color:#173d59;margin-bottom:9px}.doc-table{min-width:760px}.doc-table th{background:#edf5f8;color:#3e6074}.doc-item-note{display:block;color:var(--muted);font-size:10px;margin-top:4px}.doc-item-form{display:grid;grid-template-columns:70px 100px minmax(220px,1fr) 70px 100px 130px;gap:8px;margin-top:12px;padding:12px;border:1px dashed #b8d8dd;border-radius:10px;background:#fbfeff}.doc-item-form label{font-size:10px;font-weight:800;color:var(--muted);text-transform:uppercase}.doc-item-description{grid-column:span 2}.doc-item-notes{grid-column:span 4}.doc-item-actions{display:flex;align-items:end;gap:7px;grid-column:span 2}.doc-summary{display:grid;grid-template-columns:1fr 310px;gap:20px;border-top:1px solid var(--line);padding-top:14px}.doc-terms{font-size:11px;line-height:1.55;color:#344054}.doc-terms p{margin:5px 0;white-space:pre-line}.doc-totals{display:grid;gap:6px;align-content:start}.doc-totals>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;border-bottom:1px solid var(--line);font-size:12px}.doc-total-final{margin-top:4px;padding-top:9px!important;border-top:2px solid #173d59;border-bottom:0!important;color:#173d59;font-size:15px!important}.doc-footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:10px;color:var(--muted);font-size:10px}@media(max-width:950px){.doc-info-grid,.doc-summary{grid-template-columns:1fr}.doc-header{grid-template-columns:110px 1fr}.doc-number{grid-column:span 2;text-align:left}.doc-item-form{grid-template-columns:repeat(2,minmax(0,1fr))}.doc-item-description,.doc-item-notes,.doc-item-actions{grid-column:span 2}}
@media print{@page commercial{size:A4 portrait;margin:10mm}.doc-paper{page:commercial}.doc-toolbar,.doc-item-form,.doc-table .no-print{display:none!important}.commercial-document{display:block}.doc-paper{border:0;border-radius:0;box-shadow:none;padding:0;gap:12px}.doc-header{grid-template-columns:125px 1fr auto;gap:12px;padding-bottom:9px}.doc-logo{width:120px;max-height:64px}.doc-company strong{font-size:13px}.doc-number strong{font-size:16px}.doc-info-grid{grid-template-columns:1.3fr .7fr .9fr;gap:8px}.doc-info-grid>div{padding:7px;border-radius:0}.doc-table{min-width:0;table-layout:fixed}.doc-table th,.doc-table td{font-size:8px;padding:4px;word-break:break-word}.doc-table th:nth-child(1){width:6%}.doc-table th:nth-child(2){width:10%}.doc-table th:nth-child(4){width:7%}.doc-table th:nth-child(5){width:8%}.doc-table th:nth-child(6),.doc-table th:nth-child(7){width:13%}.doc-summary{grid-template-columns:1fr 225px;gap:12px}.doc-footer{font-size:8px}.doc-terms{font-size:9px}}


/* Perfil e documentos comerciais v5.4.0 */
.account-grid{align-items:start}.account-card,.security-card{min-height:220px}.account-details{display:grid;gap:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}.account-details>div{display:grid;grid-template-columns:110px 1fr;gap:12px;padding:11px 13px;border-bottom:1px solid var(--line);background:#fbfdff}.account-details>div:last-child{border-bottom:0}.account-details span{font-size:10px;font-weight:900;letter-spacing:.6px;color:var(--muted);text-transform:uppercase}.security-hint{margin-top:12px;line-height:1.6}.doc-toolbar-right{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.doc-internal-status{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border:1px dashed #b7c9d8;border-radius:999px;background:#f8fbfd;color:var(--muted);font-size:10px}.doc-paper{position:relative;overflow:hidden}.doc-accent-line{height:7px;margin:-22px -22px 0;background:linear-gradient(90deg,#f4b400 0 34%,#173d59 34% 100%)}.doc-intro{display:flex;justify-content:space-between;gap:18px;align-items:end;padding:14px 0 2px}.doc-intro h1{margin:2px 0 0;color:#173d59;font-size:25px;letter-spacing:-.4px}.doc-intro>p{max-width:430px;margin:0;color:var(--muted);font-size:11px;line-height:1.55;text-align:right}.doc-kicker,.doc-section-heading p{margin:0;font-size:9px;font-weight:900;letter-spacing:1.2px;color:var(--accent)}.doc-info-party{border-left:4px solid #f4b400!important}.doc-highlight{padding:12px 14px;border-left:4px solid #173d59;background:#f7fafc}.doc-section-heading{display:flex;align-items:center;gap:9px;margin-bottom:9px}.doc-section-heading>span{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;background:#173d59;color:#fff;font-size:10px;font-weight:900}.doc-section-heading h3{margin:1px 0 0!important;font-size:15px!important}.doc-section-heading.compact{margin-bottom:10px}.doc-section-heading.compact>span{width:24px;height:24px;font-size:9px}.doc-totals{padding:12px;border:1px solid #d7e1e8;background:#fbfdff}.doc-total-final{background:#173d59;color:#fff;margin:4px -12px -12px;padding:11px 12px!important}.doc-signatures{display:grid;grid-template-columns:1fr 1fr;gap:34px;padding-top:18px;margin-top:4px;border-top:1px solid var(--line)}.doc-signatures>div{display:grid;gap:9px}.doc-signatures span{font-size:9px;font-weight:900;letter-spacing:.7px;color:var(--muted);text-transform:uppercase}.doc-signatures strong{font-size:12px;color:#344054;min-height:18px}@media(max-width:760px){.doc-intro{align-items:flex-start;flex-direction:column}.doc-intro>p{text-align:left}.doc-signatures{grid-template-columns:1fr;gap:20px}}
@media print{.doc-internal-status{display:none!important}.doc-accent-line{height:5px;margin:0 0 8px}.doc-intro{padding:6px 0 0}.doc-intro h1{font-size:19px}.doc-intro>p{font-size:8px;max-width:330px}.doc-highlight{padding:7px 9px}.doc-section-heading{margin-bottom:5px}.doc-section-heading>span{width:20px;height:20px;font-size:8px}.doc-section-heading h3{font-size:12px!important}.doc-section-heading p{font-size:7px}.doc-totals{padding:8px}.doc-total-final{margin:3px -8px -8px;padding:8px!important}.doc-signatures{gap:24px;padding-top:10px}.doc-signatures span{font-size:7px}.doc-signatures strong{font-size:9px}.doc-info-grid{grid-template-columns:1.3fr .7fr .9fr}}


/* V5.4.0 - Mobile navegador / PWA */
.mobile-install-hint{display:none}
@media(max-width:860px){body{min-width:0;overflow-x:hidden}.shell{display:block}.sidebar{position:sticky;top:0;z-index:20;width:100%;min-height:0;border-right:0;border-bottom:1px solid var(--line);padding:10px 10px 8px}.brand{display:flex;align-items:center;gap:10px;margin-bottom:8px}.sidebar nav{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}.sidebar nav h4{display:none}.sidebar nav button{white-space:nowrap;min-width:max-content;padding:9px 11px;border-radius:999px}.side-footer{display:flex;align-items:center;gap:8px;border-top:0;padding-top:6px;font-size:11px}.content{padding:12px}.topbar{align-items:flex-start;gap:10px;flex-direction:column}.top-actions{width:100%;justify-content:space-between}.grid,.two-col,.account-grid{grid-template-columns:1fr!important}.filter-card{align-items:stretch;flex-direction:column}.filter-card input,.filter-card select{width:100%}.card{border-radius:14px}.card-head{align-items:flex-start;gap:10px;flex-direction:column}.table-wrap{margin:0 -4px;overflow-x:auto}.modal{width:calc(100vw - 18px);max-height:92vh;border-radius:16px}.form-grid{grid-template-columns:1fr}.field.span-2,.span-2{grid-column:span 1!important}.inline-actions{gap:6px}.btn{min-height:38px}.login-card{width:calc(100vw - 26px);padding:22px}.doc-paper,.report-section,.report-cover{padding:14px}.doc-header,.doc-info-grid,.doc-summary,.doc-signatures{grid-template-columns:1fr}.doc-number{text-align:left}.report-status-grid,.report-operation-grid,.executive-kpis{grid-template-columns:1fr!important}}
@media(max-width:540px){.content{padding:9px}.topbar h1{font-size:22px}.card{padding:12px}.table-wrap table{min-width:760px}.toast{left:10px;right:10px;bottom:10px}.attachment-item{align-items:flex-start;flex-direction:column}.doc-toolbar,.doc-toolbar-right{align-items:stretch;flex-direction:column}.doc-toolbar .btn,.doc-toolbar-right .btn{width:100%}}

/* V5.4.1 - cores por status também na linha */
.status-row.success td{background:#f4fbf7}
.status-row.warn td{background:#fffaf0}
.status-row.danger td{background:#fff6f5}
.status-row.success:hover td{background:#eaf7f0}
.status-row.warn:hover td{background:#fff4df}
.status-row.danger:hover td{background:#ffecea}

.required-star{color:var(--danger);font-weight:900;margin-left:2px}.field-invalid input,.field-invalid select,.field-invalid textarea{border-color:var(--danger)!important;background:#fff8f7;box-shadow:0 0 0 3px rgba(180,35,24,.13)!important}.field-invalid{color:var(--danger)!important}.field-error-message{color:var(--danger);font-size:11px;font-weight:700;text-transform:none;letter-spacing:0;line-height:1.35}.form-validation-summary{grid-column:1/-1;background:#fff1f0;border:1px solid #ffd2cf;color:var(--danger);border-radius:9px;padding:10px 12px;font-size:12px;line-height:1.45;margin-bottom:4px}

/* V5.4.5 - cards de produção e filtros internos */
.production-order-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.production-order-card{display:grid;gap:8px;text-align:left;border:1px solid var(--line);background:#fff;border-radius:14px;padding:14px;cursor:pointer;box-shadow:0 8px 22px rgba(16,42,67,.06);border-left:5px solid #d9e2ec}.production-order-card:hover{transform:translateY(-1px);box-shadow:0 14px 34px rgba(16,42,67,.12)}.production-order-card.active{outline:2px solid rgba(8,127,140,.24);border-color:#a6dfe4}.production-order-card.success{border-left-color:var(--success)}.production-order-card.warn{border-left-color:var(--warn)}.production-order-card.danger{border-left-color:var(--danger)}.production-order-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.production-order-card-top strong{font-size:14px;color:#123047}.production-order-title{font-size:12px;color:#344054;line-height:1.35}.production-card-metrics{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:11px;font-weight:800}.production-unit-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:14px 0 10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fbfdff}.field.compact{min-width:210px;max-width:260px;margin:0}.field.compact select{margin-top:5px}.production-detail .inline-actions .btn.danger{border-color:#ffd2cf;background:#fff1f0;color:var(--danger)}@media(max-width:760px){.production-order-list{grid-template-columns:1fr}.production-unit-toolbar{align-items:stretch;flex-direction:column}.field.compact{max-width:none;width:100%}}

/* V5.4.9 - Modelo HTN de proposta técnico-comercial */
.htn-proposal{display:block}.htn-print-pack{display:grid;gap:18px}.print-page{width:min(100%,794px);min-height:1123px;margin:0 auto;background:#fff;color:#1f2937;border:1px solid var(--line);box-shadow:var(--shadow);padding:52px 54px;position:relative;overflow:hidden}.htn-cover{display:grid;grid-template-columns:1fr 1fr;align-content:start;padding:80px 64px}.cover-diagonal{position:absolute;inset:auto -130px 180px -130px;height:260px;transform:rotate(-24deg);background:rgba(219,170,43,.55);z-index:0}.cover-diagonal.two{bottom:280px;background:rgba(23,61,89,.16);height:190px}.cover-logo-wrap,.cover-title,.cover-company{position:relative;z-index:1}.cover-logo{width:280px;max-height:190px;object-fit:contain}.cover-logo-wrap h2{font-size:28px;letter-spacing:.5px;margin-top:18px}.cover-title{text-align:center;margin-top:70px}.cover-title h1{font-size:22px;color:#555;font-weight:900}.cover-title h3{margin-top:18px;color:#555;font-size:20px}.cover-company{grid-column:1/-1;margin-top:650px;background:rgba(120,110,94,.62);color:#fff;border-radius:18px;padding:20px;text-align:center;display:grid;gap:8px}.htn-page-header{display:grid;grid-template-columns:180px 1fr;justify-content:space-between;gap:20px;align-items:start;margin-bottom:42px}.htn-page-header>div:first-child{display:grid;gap:5px;text-align:center}.htn-small-logo{width:120px;max-height:80px;object-fit:contain;margin:auto}.htn-page-header span{font-size:13px}.htn-page-header>div:last-child{text-align:right;display:grid;gap:12px;color:#555}.htn-page-header strong{font-size:18px}.htn-page-header b{font-size:18px}.htn-page h2{font-size:20px;margin:22px 0 12px;color:#111}.htn-page h3{font-size:16px;margin:18px 0 10px}.htn-page p,.htn-page li{font-size:13px;line-height:1.55;margin:6px 0}.htn-page ul{margin:4px 0 18px 22px;padding:0}.htn-object{font-weight:800;text-transform:uppercase;margin:10px 0 24px}.htn-price-table{width:100%;min-width:0;border-collapse:collapse;margin-top:36px;table-layout:fixed}.htn-price-table th,.htn-price-table td{border:1px solid #111;padding:8px 8px;text-align:center;font-size:12px;color:#111;background:#fff}.htn-price-table th{background:#d9d9d9;font-weight:900}.htn-price-table .q-desc{text-align:center;font-weight:700}.htn-price-table th:nth-child(1){width:6%}.htn-price-table th:nth-child(2){width:55%}.htn-price-table th:nth-child(3){width:6%}.htn-price-table th:nth-child(4){width:7%}.htn-price-table th:nth-child(5){width:13%}.htn-price-table th:nth-child(6){width:13%}.q-total-row td{font-weight:900}.q-total-row td:nth-last-child(-n+2){background:#b9f5b4}.htn-date-line{margin-top:95px!important;font-size:16px!important}.htn-signature{margin:150px auto 0;max-width:420px;text-align:center;display:grid;gap:5px}.signature-line{border-top:1px solid #222;height:1px;margin-bottom:8px}.htn-signature strong{text-transform:uppercase}.htn-signature span{display:block;font-size:13px;font-weight:700}.htn-footer{position:absolute;left:54px;right:54px;bottom:42px;text-align:center;color:#666;display:grid;gap:4px;font-size:12px}.doc-edit-panel{width:min(100%,794px);margin:0 auto}.doc-edit-panel .doc-table{min-width:850px}@media(max-width:900px){.print-page{width:100%;min-height:auto;padding:28px 20px}.htn-cover{grid-template-columns:1fr;padding:50px 28px}.cover-company{margin-top:360px}.htn-page-header{grid-template-columns:1fr}.htn-page-header>div:last-child{text-align:left}.cover-title{text-align:left}.cover-logo{width:220px}.htn-price-table{font-size:11px}}
@media print{@page{size:A4 portrait;margin:0}.sidebar,.topbar,.doc-toolbar,.no-print{display:none!important}.shell{display:block}.content{padding:0;background:#fff}.htn-print-pack{display:block}.print-page{width:210mm;min-height:297mm;margin:0;border:0;box-shadow:none;page-break-after:always;padding:15mm 14mm}.htn-cover{padding:24mm 18mm}.cover-logo{width:72mm}.cover-logo-wrap h2{font-size:22pt}.cover-company{margin-top:165mm}.cover-title{margin-top:20mm}.cover-title h1{font-size:15pt}.cover-title h3{font-size:14pt}.cover-diagonal{bottom:48mm;height:65mm}.cover-diagonal.two{bottom:78mm;height:45mm}.htn-page-header{grid-template-columns:38mm 1fr;margin-bottom:18mm}.htn-small-logo{width:32mm}.htn-page h2{font-size:14pt;margin:8mm 0 4mm}.htn-page h3{font-size:11pt;margin:5mm 0 3mm}.htn-page p,.htn-page li{font-size:10pt}.htn-price-table{margin-top:20mm}.htn-price-table th,.htn-price-table td{font-size:9.5pt;padding:2.4mm 2mm}.htn-date-line{margin-top:35mm!important}.htn-signature{margin-top:45mm}.htn-footer{left:14mm;right:14mm;bottom:12mm}.commercial-document{display:block}}

/* V5.4.10 - Ajustes finos do modelo editável HTN enviado em DOCX */
.htn-cover{background:#eef5f8 url('/htn-cover-template.png') center/cover no-repeat;display:block;padding:0;position:relative}
.htn-cover .cover-title{position:absolute;right:105px;top:126px;text-align:center;margin:0;color:#555;z-index:2}
.htn-cover .cover-title h1{font-size:20px;line-height:1.2;margin:0 0 18px;font-weight:900;color:#555}
.htn-cover .cover-title h3{font-size:18px;line-height:1.2;margin:0;font-weight:800;color:#555}
.htn-cover .cover-company{position:absolute;left:0;right:0;bottom:22px;width:100%;border-radius:18px;background:rgba(136,128,107,.72);box-shadow:none;margin:0 auto;padding:15px 20px;text-align:center;display:grid;gap:5px;color:#fff;z-index:2}
.htn-cover .cover-company strong,.htn-cover .cover-company span{font-size:12px;line-height:1.15}
.htn-page-header{grid-template-columns:150px 1fr;margin-bottom:30px;align-items:start}
.htn-page-header>div:first-child{text-align:left;display:block}
.htn-page-header>div:first-child span{display:none!important}
.htn-logo-completa,.htn-small-logo{width:95px;max-width:95px;max-height:68px;object-fit:contain;margin:0}
.htn-page-header>div:last-child{gap:8px;color:#555;text-align:right}
.htn-page-header strong{font-size:15px;letter-spacing:.2px}.htn-page-header b{font-size:15px}
.htn-page h2{font-size:23px;margin:24px 0 12px;color:#111;font-weight:900}
.htn-page h3{font-size:18px;margin:18px 0 10px;color:#111;font-weight:800}
.htn-page p,.htn-page li{font-size:16px;line-height:1.5;margin:8px 0;color:#111}
.htn-page ul{margin:10px 0 24px 36px}.htn-page li{padding-left:8px}.htn-blue{color:#0070b8!important;font-weight:900;text-transform:uppercase}.htn-conditions p{margin:10px 0}.htn-object{font-weight:800;text-transform:uppercase;margin:14px 0 30px}
.htn-price-table{margin-top:30px;border-collapse:collapse;table-layout:fixed;border:1.5px solid #000}
.htn-price-table th,.htn-price-table td{border:1px solid #000;padding:7px 8px;text-align:center;font-size:13px;vertical-align:middle;color:#111;background:#fff;line-height:1.22}
.htn-price-table th{background:#d9d9d9;font-size:13px;font-weight:900;text-transform:uppercase;white-space:nowrap}.htn-price-table .q-desc{text-align:center;font-weight:800}.htn-price-table .q-item{font-weight:800}.htn-price-table .q-money{white-space:nowrap;text-align:right}.htn-price-table th:nth-child(1){width:6%}.htn-price-table th:nth-child(2){width:55%}.htn-price-table th:nth-child(3){width:6%}.htn-price-table th:nth-child(4){width:7%}.htn-price-table th:nth-child(5){width:13%}.htn-price-table th:nth-child(6){width:13%}.q-total-row td{font-weight:900}.q-total-row td:nth-last-child(-n+2){background:#b9f5b4!important}.q-total-row td:nth-last-child(2){text-align:center}.q-total-row td:last-child{text-align:right}.htn-signature{margin-top:125px}.htn-signature-img{width:250px;max-height:100px;object-fit:contain;margin:0 auto -22px;display:block}.htn-signature span{font-size:14px}.htn-footer{font-size:12px;color:#666}
@media print{.print-page{background:#fff}.htn-cover{background:#eef5f8 url('/htn-cover-template.png') center/cover no-repeat!important;padding:0!important}.htn-cover .cover-title{right:29mm;top:34mm}.htn-cover .cover-title h1{font-size:15pt}.htn-cover .cover-title h3{font-size:13pt}.htn-cover .cover-company{bottom:6mm;border-radius:8mm;padding:4.2mm 5mm}.htn-cover .cover-company strong,.htn-cover .cover-company span{font-size:8.3pt}.htn-page-header{grid-template-columns:34mm 1fr;margin-bottom:15mm}.htn-logo-completa,.htn-small-logo{width:28mm;max-width:28mm;max-height:20mm}.htn-page-header strong,.htn-page-header b{font-size:10pt}.htn-page h2{font-size:15.5pt;margin:7mm 0 3mm}.htn-page h3{font-size:12.5pt;margin:5mm 0 2.5mm}.htn-page p,.htn-page li{font-size:12pt;line-height:1.45}.htn-price-table{margin-top:15mm}.htn-price-table th,.htn-price-table td{font-size:9.5pt;padding:2.1mm 1.8mm}.htn-date-line{margin-top:30mm!important}.htn-signature{margin-top:38mm}.htn-signature-img{width:58mm;margin-bottom:-7mm}.htn-footer{font-size:8.5pt}}



/* V5.4.16 - ajustes controlados sobre a estrutura da V5.4.11
   Escopo: capa, logo do cabeçalho, fonte geral, tabela de valores e estabilidade de impressão. */
.htn-proposal .print-page{
  overflow:hidden;
}
.htn-proposal .htn-cover{
  background:#eef5f8 url('/htn-cover-template.png') center/cover no-repeat!important;
  padding:0!important;
}
.htn-proposal .htn-page{
  padding:50px 54px;
}
.htn-proposal .htn-page-header{
  grid-template-columns:175px 1fr!important;
  align-items:start!important;
  gap:24px!important;
  margin-bottom:28px!important;
}
.htn-proposal .htn-logo-completa,
.htn-proposal .htn-small-logo{
  width:150px!important;
  max-width:150px!important;
  max-height:92px!important;
  object-fit:contain!important;
  margin:0!important;
}
.htn-proposal .htn-page-header strong,
.htn-proposal .htn-page-header b{
  font-size:14px!important;
  line-height:1.25!important;
}
.htn-proposal .htn-page h2{
  font-size:18px!important;
  margin:18px 0 10px!important;
}
.htn-proposal .htn-page h3{
  font-size:14px!important;
  margin:14px 0 8px!important;
}
.htn-proposal .htn-page p,
.htn-proposal .htn-page li,
.htn-proposal .htn-text,
.htn-proposal .htn-conditions,
.htn-proposal .htn-object{
  font-size:12px!important;
  line-height:1.42!important;
}
.htn-proposal .htn-blue{
  font-size:12px!important;
  font-weight:800;
}
.htn-proposal .htn-values-page{
  padding-left:42px!important;
  padding-right:42px!important;
}
.htn-proposal .htn-price-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  border:0!important;
  margin-top:22px!important;
  background:#fff!important;
  border-radius:14px!important;
  overflow:hidden!important;
  box-shadow:0 0 0 1px #cfd9e3!important;
}
.htn-proposal .htn-price-table thead th{
  background:#102a43!important;
  color:#fff!important;
  border:0!important;
  border-right:1px solid rgba(255,255,255,.18)!important;
  padding:10px 7px!important;
  font-size:10.5px!important;
  line-height:1.18!important;
  text-align:center!important;
  white-space:normal!important;
  letter-spacing:.35px!important;
}
.htn-proposal .htn-price-table thead th:last-child{
  border-right:0!important;
}
.htn-proposal .htn-price-table tbody td{
  border:0!important;
  border-top:1px solid #e4ebf2!important;
  border-right:1px solid #edf2f7!important;
  padding:9px 7px!important;
  font-size:10.7px!important;
  line-height:1.28!important;
  color:#172b4d!important;
  background:#fff!important;
  vertical-align:middle!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}
.htn-proposal .htn-price-table tbody tr:nth-child(even) td{
  background:#f8fbfd!important;
}
.htn-proposal .htn-price-table tbody td:last-child{
  border-right:0!important;
}
.htn-proposal .htn-price-table th:nth-child(1){width:7%!important}
.htn-proposal .htn-price-table th:nth-child(2){width:47%!important}
.htn-proposal .htn-price-table th:nth-child(3){width:7%!important}
.htn-proposal .htn-price-table th:nth-child(4){width:8%!important}
.htn-proposal .htn-price-table th:nth-child(5){width:15%!important}
.htn-proposal .htn-price-table th:nth-child(6){width:16%!important}
.htn-proposal .htn-price-table .q-item{
  text-align:center!important;
  font-weight:900!important;
  color:#102a43!important;
}
.htn-proposal .htn-price-table .q-desc{
  text-align:left!important;
  font-weight:700!important;
  text-transform:none!important;
}
.htn-proposal .htn-price-table .q-money{
  text-align:right!important;
  white-space:nowrap!important;
  font-variant-numeric:tabular-nums!important;
  font-weight:700!important;
}
.htn-proposal .q-total-row td{
  background:#dff7df!important;
  color:#102a43!important;
  font-weight:900!important;
  border-top:2px solid #7ad37a!important;
}
.htn-proposal .q-total-row td:nth-last-child(2){
  text-align:center!important;
  letter-spacing:.4px!important;
}
.htn-proposal .q-total-row td:last-child{
  color:#065f46!important;
  text-align:right!important;
}
.htn-proposal .htn-date-line{
  margin-top:72px!important;
  font-size:13px!important;
}
.htn-proposal .htn-signature{
  margin-top:118px!important;
}
.htn-proposal .htn-footer{
  font-size:10.5px!important;
}

@media print{
  @page{size:A4 portrait;margin:0}
  .htn-proposal .print-page{
    width:210mm!important;
    min-height:297mm!important;
    height:297mm!important;
    margin:0!important;
    border:0!important;
    box-shadow:none!important;
    page-break-after:always!important;
    break-after:page!important;
    overflow:hidden!important;
  }
  .htn-proposal .htn-cover{
    background:#eef5f8 url('/htn-cover-template.png') center/cover no-repeat!important;
    padding:0!important;
  }
  .htn-proposal .htn-page{
    padding:13mm 12mm!important;
  }
  .htn-proposal .htn-page-header{
    grid-template-columns:40mm 1fr!important;
    gap:7mm!important;
    margin-bottom:10mm!important;
  }
  .htn-proposal .htn-logo-completa,
  .htn-proposal .htn-small-logo{
    width:36mm!important;
    max-width:36mm!important;
    max-height:23mm!important;
  }
  .htn-proposal .htn-page-header strong,
  .htn-proposal .htn-page-header b{
    font-size:9.5pt!important;
  }
  .htn-proposal .htn-page h2{
    font-size:13pt!important;
    margin:6mm 0 2.5mm!important;
  }
  .htn-proposal .htn-page h3{
    font-size:10.2pt!important;
    margin:4mm 0 2mm!important;
  }
  .htn-proposal .htn-page p,
  .htn-proposal .htn-page li,
  .htn-proposal .htn-text,
  .htn-proposal .htn-conditions,
  .htn-proposal .htn-object,
  .htn-proposal .htn-blue{
    font-size:9pt!important;
    line-height:1.35!important;
  }
  .htn-proposal .htn-values-page{
    padding-left:9mm!important;
    padding-right:9mm!important;
  }
  .htn-proposal .htn-price-table{
    margin-top:10mm!important;
    border-radius:3mm!important;
    box-shadow:0 0 0 .35mm #cfd9e3!important;
  }
  .htn-proposal .htn-price-table thead th{
    font-size:7.8pt!important;
    padding:2.5mm 1.4mm!important;
  }
  .htn-proposal .htn-price-table tbody td{
    font-size:7.6pt!important;
    line-height:1.22!important;
    padding:2.5mm 1.4mm!important;
  }
  .htn-proposal .q-total-row td{
    font-size:8pt!important;
  }
  .htn-proposal .htn-date-line{
    margin-top:24mm!important;
    font-size:9pt!important;
  }
  .htn-proposal .htn-signature{
    margin-top:31mm!important;
  }
  .htn-proposal .htn-signature-img{
    width:54mm!important;
    max-height:23mm!important;
  }
  .htn-proposal .htn-signature strong{
    font-size:8.6pt!important;
  }
  .htn-proposal .htn-signature span{
    font-size:8pt!important;
  }
  .htn-proposal .htn-footer{
    left:9mm!important;
    right:9mm!important;
    bottom:8mm!important;
    font-size:7.2pt!important;
  }
}



/* V5.4.16 - Correções finais de impressão da Proposta HTN
   Mantém a estrutura base da V5.4.11/V5.4.12 e corrige:
   - proporção geral das fontes;
   - fundo da capa aparecendo no PDF;
   - tabela de valores com layout estável na impressão;
   - rodapé completo com endereço, telefone e e-mail. */

.htn-proposal{
  --proposal-font: Arial, Helvetica, sans-serif;
  --proposal-ink: #111827;
  --proposal-muted: #5b6676;
  --proposal-blue: #102a43;
  --proposal-line: #d4dde7;
}
.htn-proposal .print-page{
  font-family: var(--proposal-font)!important;
  color: var(--proposal-ink)!important;
}
.htn-proposal .htn-page{
  padding: 46px 50px 58px!important;
}
.htn-proposal .htn-page-header{
  grid-template-columns: 178px 1fr!important;
  margin-bottom: 24px!important;
}
.htn-proposal .htn-logo-completa,
.htn-proposal .htn-small-logo{
  width: 152px!important;
  max-width: 152px!important;
  max-height: 96px!important;
}
.htn-proposal .htn-page-header strong,
.htn-proposal .htn-page-header b{
  font-size: 13px!important;
  line-height: 1.22!important;
}
.htn-proposal .htn-page h2{
  font-size: 17px!important;
  line-height: 1.22!important;
  margin: 15px 0 9px!important;
}
.htn-proposal .htn-page h3{
  font-size: 13.2px!important;
  line-height: 1.25!important;
  margin: 13px 0 7px!important;
}
.htn-proposal .htn-page p,
.htn-proposal .htn-page li,
.htn-proposal .htn-text,
.htn-proposal .htn-conditions,
.htn-proposal .htn-object{
  font-size: 11.4px!important;
  line-height: 1.38!important;
}
.htn-proposal .htn-page ul{
  margin-top: 5px!important;
  margin-bottom: 12px!important;
}
.htn-proposal .htn-blue{
  font-size: 11.4px!important;
  line-height: 1.35!important;
}

/* Capa: usar IMG real em vez de background, para garantir que o navegador inclua no PDF */
.htn-proposal .htn-cover{
  background: #eef5f8!important;
  padding: 0!important;
}
.htn-proposal .htn-cover::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background: url('/htn-cover-template.png') center center / cover no-repeat;
  -webkit-print-color-adjust: exact!important;
  print-color-adjust: exact!important;
}
.htn-proposal .htn-cover .cover-title,
.htn-proposal .htn-cover .cover-company{
  z-index: 2!important;
}
.htn-proposal .htn-cover .cover-title h1{
  font-size: 18px!important;
}
.htn-proposal .htn-cover .cover-title h3{
  font-size: 16px!important;
}
.htn-proposal .htn-cover .cover-company strong,
.htn-proposal .htn-cover .cover-company span{
  font-size: 11px!important;
}

/* Página de valores: tabela redesenhada e estável */
.htn-proposal .htn-values-page{
  padding-left: 38px!important;
  padding-right: 38px!important;
}
.htn-proposal .htn-price-table{
  display: table!important;
  width: 100%!important;
  max-width: 100%!important;
  min-width: 0!important;
  table-layout: fixed!important;
  border-collapse: collapse!important;
  border-spacing: 0!important;
  margin-top: 20px!important;
  border: 1px solid #b8c6d4!important;
  background:#fff!important;
}
.htn-proposal .htn-price-table thead{
  display: table-header-group!important;
}
.htn-proposal .htn-price-table tbody{
  display: table-row-group!important;
}
.htn-proposal .htn-price-table tr{
  display: table-row!important;
  break-inside: avoid!important;
  page-break-inside: avoid!important;
}
.htn-proposal .htn-price-table th,
.htn-proposal .htn-price-table td{
  display: table-cell!important;
  box-sizing: border-box!important;
  border: 1px solid #c9d3de!important;
  vertical-align: middle!important;
  overflow: hidden!important;
}
.htn-proposal .htn-price-table th{
  background: #173f5f!important;
  color: #fff!important;
  font-size: 9.8px!important;
  line-height: 1.13!important;
  padding: 8px 5px!important;
  text-align: center!important;
  white-space: normal!important;
  text-transform: uppercase!important;
  letter-spacing: .25px!important;
  -webkit-print-color-adjust: exact!important;
  print-color-adjust: exact!important;
}
.htn-proposal .htn-price-table td{
  color:#172b4d!important;
  font-size: 10.2px!important;
  line-height: 1.20!important;
  padding: 7px 6px!important;
  background:#fff!important;
  word-break: normal!important;
  overflow-wrap: anywhere!important;
  hyphens: auto!important;
}
.htn-proposal .htn-price-table tbody tr:nth-child(even) td{
  background:#f7fafc!important;
  -webkit-print-color-adjust: exact!important;
  print-color-adjust: exact!important;
}
.htn-proposal .htn-price-table th:nth-child(1),
.htn-proposal .htn-price-table td:nth-child(1){width: 7%!important}
.htn-proposal .htn-price-table th:nth-child(2),
.htn-proposal .htn-price-table td:nth-child(2){width: 45%!important}
.htn-proposal .htn-price-table th:nth-child(3),
.htn-proposal .htn-price-table td:nth-child(3){width: 7%!important}
.htn-proposal .htn-price-table th:nth-child(4),
.htn-proposal .htn-price-table td:nth-child(4){width: 8%!important}
.htn-proposal .htn-price-table th:nth-child(5),
.htn-proposal .htn-price-table td:nth-child(5){width: 16%!important}
.htn-proposal .htn-price-table th:nth-child(6),
.htn-proposal .htn-price-table td:nth-child(6){width: 17%!important}
.htn-proposal .htn-price-table .q-item{
  text-align:center!important;
  font-weight:800!important;
}
.htn-proposal .htn-price-table .q-desc{
  text-align:left!important;
  font-weight:700!important;
}
.htn-proposal .htn-price-table .q-money{
  text-align:right!important;
  white-space:nowrap!important;
  word-break: keep-all!important;
  overflow-wrap: normal!important;
  font-variant-numeric: tabular-nums!important;
  font-weight:700!important;
}
.htn-proposal .q-total-row td{
  background:#c8f7c5!important;
  color:#0f3b22!important;
  font-weight:900!important;
  -webkit-print-color-adjust: exact!important;
  print-color-adjust: exact!important;
}
.htn-proposal .q-total-row td:nth-last-child(2){
  text-align:center!important;
}
.htn-proposal .q-total-row td:last-child{
  text-align:right!important;
  white-space:nowrap!important;
}
.htn-proposal .htn-date-line{
  margin-top: 64px!important;
  font-size: 11.5px!important;
}
.htn-proposal .htn-signature{
  margin-top: 96px!important;
}
.htn-proposal .htn-signature-img{
  width: 230px!important;
  max-height: 92px!important;
}
.htn-proposal .htn-signature strong{
  font-size: 11.2px!important;
}
.htn-proposal .htn-signature span{
  font-size: 10.5px!important;
}
.htn-proposal .htn-footer{
  left: 38px!important;
  right: 38px!important;
  bottom: 28px!important;
  font-size: 9.8px!important;
  line-height: 1.24!important;
  color:#5b6676!important;
  text-align:center!important;
  display:grid!important;
  gap:2px!important;
}

@media print{
  @page{size:A4 portrait;margin:0}
  html,body{
    width:210mm!important;
    min-height:297mm!important;
    background:#fff!important;
    -webkit-print-color-adjust: exact!important;
    print-color-adjust: exact!important;
  }
  .sidebar,.topbar,.doc-toolbar,.no-print{
    display:none!important;
  }
  .shell{
    display:block!important;
  }
  .content{
    padding:0!important;
    margin:0!important;
    background:#fff!important;
  }
  .commercial-document,
  .htn-print-pack{
    display:block!important;
    width:210mm!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
  }
  .htn-proposal .print-page{
    display:block!important;
    width:210mm!important;
    height:297mm!important;
    min-height:297mm!important;
    max-height:297mm!important;
    margin:0!important;
    border:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    page-break-after: always!important;
    break-after: page!important;
  }
  .htn-proposal .htn-cover{
    padding:0!important;
    background:#eef5f8!important;
  }
  .htn-proposal .htn-cover::before{
    background: url('/htn-cover-template.png') center center / cover no-repeat!important;
  }
  .htn-proposal .htn-cover .cover-title{
    right:29mm!important;
    top:34mm!important;
  }
  .htn-proposal .htn-cover .cover-title h1{
    font-size:14pt!important;
  }
  .htn-proposal .htn-cover .cover-title h3{
    font-size:12.2pt!important;
  }
  .htn-proposal .htn-cover .cover-company{
    bottom:6mm!important;
    border-radius:8mm!important;
    padding:3.8mm 5mm!important;
    background:rgba(136,128,107,.72)!important;
    -webkit-print-color-adjust: exact!important;
    print-color-adjust: exact!important;
  }
  .htn-proposal .htn-cover .cover-company strong,
  .htn-proposal .htn-cover .cover-company span{
    font-size:7.8pt!important;
  }
  .htn-proposal .htn-page{
    padding:12mm 11mm 16mm!important;
  }
  .htn-proposal .htn-page-header{
    grid-template-columns:38mm 1fr!important;
    gap:7mm!important;
    margin-bottom:8mm!important;
  }
  .htn-proposal .htn-logo-completa,
  .htn-proposal .htn-small-logo{
    width:34mm!important;
    max-width:34mm!important;
    max-height:22mm!important;
  }
  .htn-proposal .htn-page-header strong,
  .htn-proposal .htn-page-header b{
    font-size:8.8pt!important;
  }
  .htn-proposal .htn-page h2{
    font-size:12.2pt!important;
    margin:5mm 0 2.2mm!important;
  }
  .htn-proposal .htn-page h3{
    font-size:9.6pt!important;
    margin:3.5mm 0 1.8mm!important;
  }
  .htn-proposal .htn-page p,
  .htn-proposal .htn-page li,
  .htn-proposal .htn-text,
  .htn-proposal .htn-conditions,
  .htn-proposal .htn-object,
  .htn-proposal .htn-blue{
    font-size:8.6pt!important;
    line-height:1.32!important;
  }
  .htn-proposal .htn-values-page{
    padding-left:8mm!important;
    padding-right:8mm!important;
  }
  .htn-proposal .htn-price-table{
    margin-top:8mm!important;
    width:100%!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
  }
  .htn-proposal .htn-price-table th{
    font-size:7.1pt!important;
    padding:2mm 1.2mm!important;
  }
  .htn-proposal .htn-price-table td{
    font-size:7.1pt!important;
    line-height:1.18!important;
    padding:2mm 1.2mm!important;
  }
  .htn-proposal .q-total-row td{
    font-size:7.6pt!important;
  }
  .htn-proposal .htn-date-line{
    margin-top:18mm!important;
    font-size:8.4pt!important;
  }
  .htn-proposal .htn-signature{
    margin-top:24mm!important;
  }
  .htn-proposal .htn-signature-img{
    width:52mm!important;
    max-height:22mm!important;
    margin-bottom:-6mm!important;
  }
  .htn-proposal .htn-signature strong{
    font-size:8.2pt!important;
  }
  .htn-proposal .htn-signature span{
    font-size:7.6pt!important;
  }
  .htn-proposal .htn-footer{
    left:8mm!important;
    right:8mm!important;
    bottom:7mm!important;
    font-size:6.8pt!important;
  }
}



/* V5.4.16 - Correção visual baseada no PDF salvo pelo usuário
   Corrige sobreposição da numeração na capa, rodapé completo em todas as páginas,
   proporção de fontes e estabilidade da impressão. */

.htn-proposal .htn-cover .cover-title{
  right:64px!important;
  top:112px!important;
  width:360px!important;
  text-align:center!important;
  transform:none!important;
  z-index:5!important;
}
.htn-proposal .htn-cover .cover-title h1{
  font-size:18px!important;
  line-height:1.18!important;
  margin-bottom:15px!important;
}
.htn-proposal .htn-cover .cover-title h3{
  font-size:15px!important;
  line-height:1.15!important;
}

.htn-proposal .htn-page{
  padding:48px 52px 78px!important;
}
.htn-proposal .htn-page-header{
  grid-template-columns:170px 1fr!important;
  margin-bottom:34px!important;
}
.htn-proposal .htn-logo-completa,
.htn-proposal .htn-small-logo{
  width:136px!important;
  max-width:136px!important;
  max-height:84px!important;
}
.htn-proposal .htn-page-header strong,
.htn-proposal .htn-page-header b{
  font-size:14px!important;
}
.htn-proposal .htn-page h2{
  font-size:19px!important;
  line-height:1.25!important;
  margin:19px 0 10px!important;
}
.htn-proposal .htn-page h3{
  font-size:15px!important;
  line-height:1.28!important;
  margin:16px 0 9px!important;
}
.htn-proposal .htn-page p,
.htn-proposal .htn-page li,
.htn-proposal .htn-text,
.htn-proposal .htn-conditions,
.htn-proposal .htn-object,
.htn-proposal .htn-blue{
  font-size:12.8px!important;
  line-height:1.46!important;
}
.htn-proposal .htn-page ul{
  margin-left:26px!important;
}
.htn-proposal .htn-footer{
  position:absolute!important;
  left:52px!important;
  right:52px!important;
  bottom:32px!important;
  text-align:center!important;
  display:grid!important;
  gap:3px!important;
  color:#5b6676!important;
  font-size:10.5px!important;
  line-height:1.24!important;
}
.htn-proposal .htn-footer strong{
  font-weight:700!important;
}
.htn-proposal .htn-footer span{
  display:block!important;
}

/* Tabela de valores: manter proporção e estabilidade */
.htn-proposal .htn-values-page{
  padding-left:42px!important;
  padding-right:42px!important;
}
.htn-proposal .htn-price-table{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  border:1px solid #b9c8d8!important;
  border-radius:12px!important;
  overflow:hidden!important;
  margin-top:26px!important;
}
.htn-proposal .htn-price-table thead th{
  background:#102a43!important;
  color:#fff!important;
  border:0!important;
  border-right:1px solid rgba(255,255,255,.22)!important;
  font-size:10.8px!important;
  padding:10px 7px!important;
  line-height:1.16!important;
  text-align:center!important;
  white-space:normal!important;
  -webkit-print-color-adjust: exact!important;
  print-color-adjust: exact!important;
}
.htn-proposal .htn-price-table td{
  border:0!important;
  border-top:1px solid #dbe5ee!important;
  border-right:1px solid #e8eef5!important;
  font-size:10.8px!important;
  line-height:1.24!important;
  padding:9px 7px!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  vertical-align:middle!important;
}
.htn-proposal .htn-price-table tr:nth-child(even) td{
  background:#f8fbfd!important;
  -webkit-print-color-adjust: exact!important;
  print-color-adjust: exact!important;
}
.htn-proposal .htn-price-table th:nth-child(1),
.htn-proposal .htn-price-table td:nth-child(1){width:7%!important}
.htn-proposal .htn-price-table th:nth-child(2),
.htn-proposal .htn-price-table td:nth-child(2){width:45%!important}
.htn-proposal .htn-price-table th:nth-child(3),
.htn-proposal .htn-price-table td:nth-child(3){width:7%!important}
.htn-proposal .htn-price-table th:nth-child(4),
.htn-proposal .htn-price-table td:nth-child(4){width:8%!important}
.htn-proposal .htn-price-table th:nth-child(5),
.htn-proposal .htn-price-table td:nth-child(5){width:16%!important}
.htn-proposal .htn-price-table th:nth-child(6),
.htn-proposal .htn-price-table td:nth-child(6){width:17%!important}
.htn-proposal .htn-price-table .q-money{
  white-space:nowrap!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  text-align:right!important;
}
.htn-proposal .q-total-row td{
  background:#c8f7c5!important;
  color:#0f3b22!important;
  font-weight:900!important;
  -webkit-print-color-adjust: exact!important;
  print-color-adjust: exact!important;
}

@media print{
  @page{size:A4 portrait;margin:0}
  html,body{
    width:210mm!important;
    min-height:297mm!important;
    background:#fff!important;
    -webkit-print-color-adjust: exact!important;
    print-color-adjust: exact!important;
  }
  .commercial-document,
  .htn-print-pack{
    width:210mm!important;
    display:block!important;
    margin:0!important;
    padding:0!important;
  }
  .htn-proposal .print-page{
    width:210mm!important;
    height:297mm!important;
    min-height:297mm!important;
    max-height:297mm!important;
    margin:0!important;
    border:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    break-after:page!important;
    page-break-after:always!important;
  }
  .htn-proposal .htn-cover{
    background:#eef5f8!important;
    padding:0!important;
  }
  .htn-proposal .htn-cover::before{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    background:url('/htn-cover-template.png') center center / cover no-repeat!important;
    z-index:0!important;
    -webkit-print-color-adjust: exact!important;
    print-color-adjust: exact!important;
  }
  .htn-proposal .htn-cover .cover-title{
    right:20mm!important;
    top:32mm!important;
    width:82mm!important;
    z-index:5!important;
    text-align:center!important;
  }
  .htn-proposal .htn-cover .cover-title h1{
    font-size:13.5pt!important;
    line-height:1.15!important;
    margin-bottom:4mm!important;
  }
  .htn-proposal .htn-cover .cover-title h3{
    font-size:11.5pt!important;
    line-height:1.15!important;
  }
  .htn-proposal .htn-cover .cover-company{
    bottom:6mm!important;
    z-index:5!important;
  }
  .htn-proposal .htn-cover .cover-company strong,
  .htn-proposal .htn-cover .cover-company span{
    font-size:7.4pt!important;
    line-height:1.2!important;
  }
  .htn-proposal .htn-page{
    padding:12mm 12mm 20mm!important;
  }
  .htn-proposal .htn-page-header{
    grid-template-columns:36mm 1fr!important;
    gap:8mm!important;
    margin-bottom:9mm!important;
  }
  .htn-proposal .htn-logo-completa,
  .htn-proposal .htn-small-logo{
    width:32mm!important;
    max-width:32mm!important;
    max-height:21mm!important;
  }
  .htn-proposal .htn-page-header strong,
  .htn-proposal .htn-page-header b{
    font-size:8.8pt!important;
  }
  .htn-proposal .htn-page h2{
    font-size:12.8pt!important;
    margin:5mm 0 2.2mm!important;
  }
  .htn-proposal .htn-page h3{
    font-size:10.2pt!important;
    margin:3.6mm 0 2mm!important;
  }
  .htn-proposal .htn-page p,
  .htn-proposal .htn-page li,
  .htn-proposal .htn-text,
  .htn-proposal .htn-conditions,
  .htn-proposal .htn-object,
  .htn-proposal .htn-blue{
    font-size:8.8pt!important;
    line-height:1.35!important;
  }
  .htn-proposal .htn-footer{
    left:12mm!important;
    right:12mm!important;
    bottom:7mm!important;
    font-size:6.9pt!important;
    line-height:1.18!important;
  }
  .htn-proposal .htn-values-page{
    padding-left:8mm!important;
    padding-right:8mm!important;
    padding-bottom:18mm!important;
  }
  .htn-proposal .htn-price-table{
    display:table!important;
    width:100%!important;
    table-layout:fixed!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    margin-top:8mm!important;
  }
  .htn-proposal .htn-price-table thead{display:table-header-group!important}
  .htn-proposal .htn-price-table tbody{display:table-row-group!important}
  .htn-proposal .htn-price-table tr{
    display:table-row!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }
  .htn-proposal .htn-price-table th,
  .htn-proposal .htn-price-table td{
    display:table-cell!important;
    box-sizing:border-box!important;
  }
  .htn-proposal .htn-price-table th{
    font-size:7.2pt!important;
    padding:2mm 1.2mm!important;
  }
  .htn-proposal .htn-price-table td{
    font-size:7.2pt!important;
    line-height:1.18!important;
    padding:2mm 1.2mm!important;
  }
  .htn-proposal .q-total-row td{
    font-size:7.6pt!important;
  }
  .htn-proposal .htn-date-line{
    margin-top:17mm!important;
    font-size:8.4pt!important;
  }
  .htn-proposal .htn-signature{
    margin-top:23mm!important;
  }
  .htn-proposal .htn-signature-img{
    width:50mm!important;
    max-height:21mm!important;
  }
  .htn-proposal .htn-signature strong{
    font-size:8.2pt!important;
  }
  .htn-proposal .htn-signature span{
    font-size:7.6pt!important;
  }
}



/* V5.4.16 - Padronização conforme arquivo Word da proposta HTN
   Mantém estrutura da proposta, mas harmoniza fontes do corpo e rodapé conforme modelo editável. */

.htn-proposal{
  --word-body-size: 14.2px;
  --word-body-line: 1.42;
  --word-title-size: 23px;
  --word-subtitle-size: 18px;
  --word-footer-size: 12px;
  --word-gray: #5e6470;
}
.htn-proposal .htn-page{
  padding: 54px 66px 92px!important;
}
.htn-proposal .htn-page-header{
  grid-template-columns: 150px 1fr!important;
  align-items:start!important;
  margin-bottom: 30px!important;
}
.htn-proposal .htn-logo-completa,
.htn-proposal .htn-small-logo{
  width: 124px!important;
  max-width:124px!important;
  max-height:86px!important;
  object-fit:contain!important;
}
.htn-proposal .htn-page-header>div:last-child{
  text-align:right!important;
  gap:10px!important;
  color:#5a5f68!important;
}
.htn-proposal .htn-page-header strong,
.htn-proposal .htn-page-header b{
  font-size: 17px!important;
  line-height:1.22!important;
  font-weight:800!important;
}
.htn-proposal .htn-page h2{
  font-size: var(--word-title-size)!important;
  line-height: 1.2!important;
  margin: 24px 0 18px!important;
  font-weight: 900!important;
  color:#111!important;
}
.htn-proposal .htn-page h3{
  font-size: var(--word-subtitle-size)!important;
  line-height: 1.25!important;
  margin: 22px 0 12px!important;
  font-weight: 900!important;
  color:#111!important;
}
.htn-proposal .htn-page p,
.htn-proposal .htn-page li,
.htn-proposal .htn-text,
.htn-proposal .htn-conditions,
.htn-proposal .htn-object,
.htn-proposal .htn-blue{
  font-size: var(--word-body-size)!important;
  line-height: var(--word-body-line)!important;
  color:#111!important;
}
.htn-proposal .htn-page ul{
  margin: 10px 0 20px 44px!important;
  padding:0!important;
}
.htn-proposal .htn-page li{
  padding-left: 6px!important;
  margin: 5px 0!important;
}
.htn-proposal .htn-blue{
  color:#0070c0!important;
  font-weight:900!important;
}
.htn-proposal .htn-object{
  margin: 14px 0 28px!important;
  font-weight: 800!important;
  text-transform: uppercase!important;
}
.htn-proposal .htn-conditions{
  white-space: normal!important;
}

/* Rodapé no padrão do Word: centralizado, pequeno, cinza e fixo em todas as páginas internas */
.htn-proposal .htn-footer{
  position:absolute!important;
  left:66px!important;
  right:66px!important;
  bottom:34px!important;
  display:grid!important;
  gap:3px!important;
  text-align:center!important;
  color:var(--word-gray)!important;
  font-size:var(--word-footer-size)!important;
  line-height:1.18!important;
}
.htn-proposal .htn-footer strong{
  font-weight:600!important;
  color:var(--word-gray)!important;
  font-size:var(--word-footer-size)!important;
}
.htn-proposal .htn-footer span{
  display:block!important;
  color:var(--word-gray)!important;
  font-size:var(--word-footer-size)!important;
}

/* Página da tabela: manter compatível com as proporções do corpo */
.htn-proposal .htn-values-page{
  padding-left: 36px!important;
  padding-right: 36px!important;
}
.htn-proposal .htn-price-table{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
  border:1px solid #111!important;
  border-radius:0!important;
  overflow:hidden!important;
  margin-top:34px!important;
  background:#fff!important;
}
.htn-proposal .htn-price-table th{
  background:#d9d9d9!important;
  color:#111!important;
  border:1px solid #111!important;
  padding:8px 7px!important;
  font-size:13px!important;
  line-height:1.16!important;
  font-weight:900!important;
  text-align:center!important;
  text-transform:uppercase!important;
  white-space:normal!important;
  -webkit-print-color-adjust: exact!important;
  print-color-adjust: exact!important;
}
.htn-proposal .htn-price-table td{
  border:1px solid #111!important;
  padding:8px 7px!important;
  font-size:12.3px!important;
  line-height:1.24!important;
  color:#111!important;
  vertical-align:middle!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
  background:#fff!important;
}
.htn-proposal .htn-price-table th:nth-child(1),
.htn-proposal .htn-price-table td:nth-child(1){width:6.5%!important}
.htn-proposal .htn-price-table th:nth-child(2),
.htn-proposal .htn-price-table td:nth-child(2){width:50%!important}
.htn-proposal .htn-price-table th:nth-child(3),
.htn-proposal .htn-price-table td:nth-child(3){width:7%!important}
.htn-proposal .htn-price-table th:nth-child(4),
.htn-proposal .htn-price-table td:nth-child(4){width:7.5%!important}
.htn-proposal .htn-price-table th:nth-child(5),
.htn-proposal .htn-price-table td:nth-child(5){width:14.5%!important}
.htn-proposal .htn-price-table th:nth-child(6),
.htn-proposal .htn-price-table td:nth-child(6){width:14.5%!important}
.htn-proposal .htn-price-table .q-item{
  text-align:center!important;
  font-weight:700!important;
}
.htn-proposal .htn-price-table .q-desc{
  text-align:center!important;
  font-weight:700!important;
}
.htn-proposal .htn-price-table .q-money{
  text-align:right!important;
  white-space:nowrap!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  font-weight:700!important;
}
.htn-proposal .q-total-row td{
  background:#b9f5b4!important;
  color:#111!important;
  font-weight:900!important;
  -webkit-print-color-adjust: exact!important;
  print-color-adjust: exact!important;
}
.htn-proposal .q-total-row td:nth-last-child(2){
  text-align:center!important;
}
.htn-proposal .q-total-row td:last-child{
  text-align:right!important;
}
.htn-proposal .htn-date-line{
  margin-top:92px!important;
  font-size:14px!important;
}
.htn-proposal .htn-signature{
  margin-top:126px!important;
}
.htn-proposal .htn-signature strong{
  font-size:13px!important;
}
.htn-proposal .htn-signature span{
  font-size:12px!important;
}

/* Capa: manter a posição original do Word e evitar sobreposição */
.htn-proposal .htn-cover .cover-title{
  right:98px!important;
  top:128px!important;
  width:380px!important;
  text-align:center!important;
}
.htn-proposal .htn-cover .cover-title h1{
  font-size:21px!important;
  line-height:1.2!important;
}
.htn-proposal .htn-cover .cover-title h3{
  font-size:18px!important;
  line-height:1.2!important;
}

@media print{
  @page{size:A4 portrait;margin:0}
  html,body{
    width:210mm!important;
    min-height:297mm!important;
    background:#fff!important;
    -webkit-print-color-adjust: exact!important;
    print-color-adjust: exact!important;
  }
  .commercial-document,
  .htn-print-pack{
    display:block!important;
    width:210mm!important;
    margin:0!important;
    padding:0!important;
  }
  .htn-proposal .print-page{
    width:210mm!important;
    height:297mm!important;
    min-height:297mm!important;
    max-height:297mm!important;
    margin:0!important;
    border:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    page-break-after:always!important;
    break-after:page!important;
  }
  .htn-proposal .htn-cover{
    background:#eef5f8!important;
    padding:0!important;
  }
  .htn-proposal .htn-cover::before{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    background:url('/htn-cover-template.png') center center / cover no-repeat!important;
    z-index:0!important;
    -webkit-print-color-adjust: exact!important;
    print-color-adjust: exact!important;
  }
  .htn-proposal .htn-cover .cover-title{
    right:26mm!important;
    top:34mm!important;
    width:100mm!important;
    z-index:5!important;
  }
  .htn-proposal .htn-cover .cover-title h1{
    font-size:15pt!important;
  }
  .htn-proposal .htn-cover .cover-title h3{
    font-size:13pt!important;
  }
  .htn-proposal .htn-cover .cover-company{
    bottom:6mm!important;
    z-index:5!important;
  }
  .htn-proposal .htn-page{
    padding:14mm 17mm 24mm!important;
  }
  .htn-proposal .htn-page-header{
    grid-template-columns:38mm 1fr!important;
    gap:8mm!important;
    margin-bottom:10mm!important;
  }
  .htn-proposal .htn-logo-completa,
  .htn-proposal .htn-small-logo{
    width:31mm!important;
    max-width:31mm!important;
    max-height:22mm!important;
  }
  .htn-proposal .htn-page-header strong,
  .htn-proposal .htn-page-header b{
    font-size:10pt!important;
  }
  .htn-proposal .htn-page h2{
    font-size:15pt!important;
    margin:7mm 0 4mm!important;
  }
  .htn-proposal .htn-page h3{
    font-size:12pt!important;
    margin:5mm 0 3mm!important;
  }
  .htn-proposal .htn-page p,
  .htn-proposal .htn-page li,
  .htn-proposal .htn-text,
  .htn-proposal .htn-conditions,
  .htn-proposal .htn-object,
  .htn-proposal .htn-blue{
    font-size:10.5pt!important;
    line-height:1.36!important;
  }
  .htn-proposal .htn-footer{
    left:17mm!important;
    right:17mm!important;
    bottom:9mm!important;
    font-size:8.5pt!important;
    line-height:1.15!important;
  }
  .htn-proposal .htn-footer strong,
  .htn-proposal .htn-footer span{
    font-size:8.5pt!important;
  }
  .htn-proposal .htn-values-page{
    padding-left:7mm!important;
    padding-right:7mm!important;
    padding-bottom:24mm!important;
  }
  .htn-proposal .htn-price-table{
    margin-top:10mm!important;
    width:100%!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
  }
  .htn-proposal .htn-price-table th{
    font-size:8.8pt!important;
    padding:2.2mm 1.4mm!important;
  }
  .htn-proposal .htn-price-table td{
    font-size:8.4pt!important;
    line-height:1.20!important;
    padding:2.2mm 1.4mm!important;
  }
  .htn-proposal .q-total-row td{
    font-size:8.8pt!important;
  }
  .htn-proposal .htn-date-line{
    margin-top:30mm!important;
    font-size:10.5pt!important;
  }
  .htn-proposal .htn-signature{
    margin-top:37mm!important;
  }
  .htn-proposal .htn-signature strong{
    font-size:9.6pt!important;
  }
  .htn-proposal .htn-signature span{
    font-size:9pt!important;
  }
}



/* V5.4.16 - Correção pontual solicitada:
   1) numeração/título da capa fora da área da logo;
   2) tabela de Valores e Prazos retornando ao layout da V5.4.14. */

/* CAPA: posição absoluta mais à direita e menor largura para não passar por cima da logo */
.htn-proposal .htn-cover .cover-title{
  left:auto!important;
  right:42px!important;
  top:132px!important;
  width:330px!important;
  max-width:330px!important;
  text-align:center!important;
  z-index:8!important;
}
.htn-proposal .htn-cover .cover-title h1{
  font-size:19px!important;
  line-height:1.18!important;
  margin:0 0 16px!important;
  font-weight:900!important;
  color:#555!important;
}
.htn-proposal .htn-cover .cover-title h3{
  font-size:16px!important;
  line-height:1.18!important;
  margin:0!important;
  font-weight:800!important;
  color:#555!important;
}

/* TABELA: volta ao estilo visual da V5.4.14 */
.htn-proposal .htn-values-page{
  padding-left:42px!important;
  padding-right:42px!important;
}
.htn-proposal .htn-price-table{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  border:1px solid #b9c8d8!important;
  border-radius:12px!important;
  overflow:hidden!important;
  margin-top:26px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.htn-proposal .htn-price-table thead{
  display:table-header-group!important;
}
.htn-proposal .htn-price-table tbody{
  display:table-row-group!important;
}
.htn-proposal .htn-price-table tr{
  display:table-row!important;
  break-inside:avoid!important;
  page-break-inside:avoid!important;
}
.htn-proposal .htn-price-table th,
.htn-proposal .htn-price-table td{
  display:table-cell!important;
  box-sizing:border-box!important;
}
.htn-proposal .htn-price-table thead th{
  background:#102a43!important;
  color:#fff!important;
  border:0!important;
  border-right:1px solid rgba(255,255,255,.22)!important;
  font-size:10.8px!important;
  padding:10px 7px!important;
  line-height:1.16!important;
  text-align:center!important;
  white-space:normal!important;
  text-transform:uppercase!important;
  letter-spacing:.35px!important;
  -webkit-print-color-adjust:exact!important;
  print-color-adjust:exact!important;
}
.htn-proposal .htn-price-table thead th:last-child{
  border-right:0!important;
}
.htn-proposal .htn-price-table tbody td{
  border:0!important;
  border-top:1px solid #dbe5ee!important;
  border-right:1px solid #e8eef5!important;
  font-size:10.8px!important;
  line-height:1.24!important;
  padding:9px 7px!important;
  color:#172b4d!important;
  background:#fff!important;
  vertical-align:middle!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
.htn-proposal .htn-price-table tbody td:last-child{
  border-right:0!important;
}
.htn-proposal .htn-price-table tbody tr:nth-child(even) td{
  background:#f8fbfd!important;
  -webkit-print-color-adjust:exact!important;
  print-color-adjust:exact!important;
}
.htn-proposal .htn-price-table th:nth-child(1),
.htn-proposal .htn-price-table td:nth-child(1){width:7%!important}
.htn-proposal .htn-price-table th:nth-child(2),
.htn-proposal .htn-price-table td:nth-child(2){width:45%!important}
.htn-proposal .htn-price-table th:nth-child(3),
.htn-proposal .htn-price-table td:nth-child(3){width:7%!important}
.htn-proposal .htn-price-table th:nth-child(4),
.htn-proposal .htn-price-table td:nth-child(4){width:8%!important}
.htn-proposal .htn-price-table th:nth-child(5),
.htn-proposal .htn-price-table td:nth-child(5){width:16%!important}
.htn-proposal .htn-price-table th:nth-child(6),
.htn-proposal .htn-price-table td:nth-child(6){width:17%!important}
.htn-proposal .htn-price-table .q-item{
  text-align:center!important;
  font-weight:900!important;
  color:#102a43!important;
}
.htn-proposal .htn-price-table .q-desc{
  text-align:left!important;
  font-weight:800!important;
  text-transform:none!important;
}
.htn-proposal .htn-price-table .q-money{
  text-align:right!important;
  white-space:nowrap!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  font-variant-numeric:tabular-nums!important;
  font-weight:800!important;
}
.htn-proposal .q-total-row td{
  background:#c8f7c5!important;
  color:#102a43!important;
  font-weight:900!important;
  border-top:2px solid #7ad37a!important;
  -webkit-print-color-adjust:exact!important;
  print-color-adjust:exact!important;
}
.htn-proposal .q-total-row td:nth-last-child(2){
  text-align:center!important;
  letter-spacing:.4px!important;
}
.htn-proposal .q-total-row td:last-child{
  color:#065f46!important;
  text-align:right!important;
  white-space:nowrap!important;
}

/* PRINT: manter as mesmas posições ao salvar em PDF */
@media print{
  .htn-proposal .htn-cover .cover-title{
    left:auto!important;
    right:11mm!important;
    top:35mm!important;
    width:88mm!important;
    max-width:88mm!important;
    z-index:8!important;
    text-align:center!important;
  }
  .htn-proposal .htn-cover .cover-title h1{
    font-size:13.8pt!important;
    line-height:1.15!important;
    margin:0 0 4mm!important;
  }
  .htn-proposal .htn-cover .cover-title h3{
    font-size:11.8pt!important;
    line-height:1.15!important;
  }

  .htn-proposal .htn-price-table{
    display:table!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    border:1px solid #b9c8d8!important;
    border-radius:3mm!important;
    overflow:hidden!important;
    margin-top:8mm!important;
  }
  .htn-proposal .htn-price-table thead{
    display:table-header-group!important;
  }
  .htn-proposal .htn-price-table tbody{
    display:table-row-group!important;
  }
  .htn-proposal .htn-price-table tr{
    display:table-row!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }
  .htn-proposal .htn-price-table th,
  .htn-proposal .htn-price-table td{
    display:table-cell!important;
    box-sizing:border-box!important;
  }
  .htn-proposal .htn-price-table thead th{
    font-size:7.6pt!important;
    padding:2.2mm 1.3mm!important;
    background:#102a43!important;
    color:#fff!important;
    border:0!important;
    border-right:0.25mm solid rgba(255,255,255,.22)!important;
  }
  .htn-proposal .htn-price-table tbody td{
    font-size:7.5pt!important;
    line-height:1.18!important;
    padding:2.1mm 1.3mm!important;
    border:0!important;
    border-top:0.25mm solid #dbe5ee!important;
    border-right:0.25mm solid #e8eef5!important;
  }
  .htn-proposal .q-total-row td{
    background:#c8f7c5!important;
    color:#102a43!important;
    border-top:0.45mm solid #7ad37a!important;
    font-size:8pt!important;
  }
}
