*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f5f8fc;color:#12233d}header{height:86px;background:#fff;border-bottom:1px solid #e3eaf2;display:flex;align-items:center;padding:0 max(24px,calc((100% - 1120px)/2));gap:18px}header img{width:220px;height:auto}header div{border-left:1px solid #dfe6ef;padding-left:18px;display:flex;flex-direction:column;gap:3px}header span,small{color:#718096}header .ghost{margin-left:auto}.ghost,.back{border:1px solid #d8e2ee;background:#fff;border-radius:10px;padding:11px 17px;font-weight:700;color:#334760;cursor:pointer}main{max-width:1120px;margin:auto;padding:58px 24px 80px}.welcome{text-align:center}.eyebrow{font-size:12px;font-weight:800;letter-spacing:1.7px;color:#0969d8}.welcome h1{font-size:36px;margin:10px 0 8px}.welcome p{font-size:17px;color:#687991;margin:0}.actions{max-width:790px;margin:42px auto;display:grid;gap:18px}.action{width:100%;border:1px solid #dce5ef;background:#fff;border-radius:18px;padding:24px;display:flex;align-items:center;gap:20px;text-align:left;cursor:pointer;box-shadow:0 8px 28px rgba(19,47,83,.05)}.action:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(19,47,83,.09)}.action b{width:58px;height:58px;border-radius:14px;background:#edf5ff;color:#0969d8;display:grid;place-items:center;font-size:29px}.action span{display:flex;flex-direction:column;gap:7px;flex:1}.action strong{font-size:19px}.action small{font-size:14px}.action i{font-size:34px;color:#9baabd;font-style:normal}.action.primary{border-color:#bcd8f8}.action.primary b{background:#0969d8;color:white}.panel{background:#fff;border:1px solid #e0e7f0;border-radius:20px;padding:30px;margin-top:32px;box-shadow:0 12px 40px rgba(19,47,83,.06)}.hidden{display:none}.panelhead{display:flex;align-items:center;gap:18px;border-bottom:1px solid #e7edf4;padding-bottom:22px;margin-bottom:28px}.panelhead h2{margin:0 0 5px;font-size:26px}.panelhead p{margin:0;color:#718096}.panelhead .badge{margin-left:auto;background:#edf5ff;color:#0969d8;padding:10px 14px;border-radius:9px;font-weight:800}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}label{font-size:14px;font-weight:700;display:flex;flex-direction:column;gap:8px}input,textarea,select{font:inherit;border:1px solid #ccd8e6;border-radius:10px;padding:13px 14px;background:#fff;color:#12233d}textarea{resize:vertical}.panel h3{margin:32px 0 15px}.service{background:#f7f9fc;border:1px solid #e1e8f0;border-radius:14px;padding:20px;display:grid;gap:18px}.money{display:flex;align-items:center;border:1px solid #ccd8e6;border-radius:10px;background:white;overflow:hidden}.money span{padding:0 12px;color:#65758a;font-weight:600}.money input{border:0;flex:1}.add{margin-top:15px;border:1px dashed #9cbce0;color:#0969d8;background:#f8fbff;padding:13px 16px;border-radius:10px;font-weight:800;cursor:pointer}.lower{margin-top:28px;align-items:start}.footerbar{margin-top:30px;border-top:1px solid #e7edf4;padding-top:22px;display:flex;justify-content:flex-end;gap:12px}.cta{border:0;border-radius:10px;background:#0969d8;color:white;padding:13px 19px;font-weight:800;cursor:pointer}.search{width:100%;font-size:16px;margin-bottom:20px}.table{border:1px solid #e0e7f0;border-radius:12px;overflow:hidden}.row{display:grid;grid-template-columns:130px 1.1fr 1.4fr 120px 100px 80px;gap:12px;align-items:center;padding:16px;border-top:1px solid #e7edf4}.row:first-child{border-top:0}.labels{background:#f7f9fc;font-size:12px;font-weight:800;color:#687991}.row button{border:1px solid #cdd9e6;background:#fff;border-radius:8px;padding:8px;font-weight:700}.sent,.draft{font-size:12px;font-weight:800;border-radius:20px;padding:7px 10px;text-align:center}.sent{background:#e9f8ef;color:#267547}.draft{background:#fff4dc;color:#946100}footer{text-align:center;color:#8a98aa;padding:25px;font-size:13px}@media(max-width:760px){header{height:72px;padding:0 16px}header img{width:170px}header div{display:none}main{padding:36px 15px 60px}.welcome h1{font-size:28px}.welcome p{font-size:15px}.actions{margin-top:30px}.action{padding:18px 16px;gap:14px}.action b{width:50px;height:50px}.action strong{font-size:16px}.panel{padding:18px;border-radius:15px}.panelhead{align-items:flex-start;flex-wrap:wrap}.panelhead .badge{margin-left:0}.grid{grid-template-columns:1fr}.table{overflow-x:auto}.row{min-width:800px}.footerbar{position:sticky;bottom:0;background:#fff;padding-bottom:4px}.cta{flex:1}header .ghost{padding:9px 12px}}
*{box-sizing:border-box}body{margin:0}.home{min-height:580px}.page{max-width:1220px;margin:80px auto;padding:0 24px}.panel{display:block}.panel h1{margin:0 0 5px}.panelhead{gap:18px}.panelhead>div{flex:1}.grid.three{grid-template-columns:150px 1fr 220px}.itemtop{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.remove{padding:8px 12px!important}.total{display:flex;justify-content:flex-end;gap:24px;align-items:center;font-size:18px;margin:24px 0}.total strong{font-size:25px;color:#0969d8}.searchform{display:flex;gap:10px;margin:28px 0 20px}.searchform .search{margin:0}.mini{padding:12px 17px!important}.open{border:1px solid #ccd9e8;border-radius:9px;padding:10px 17px;text-decoration:none;color:#092a50;font-weight:700}.finalized{background:#e8f1ff;color:#0759b7}.empty{padding:35px;text-align:center;color:#6b7d94}.preview-page{max-width:1050px}.preview-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-bottom:20px;flex-wrap:wrap}.preview-actions .back{margin-right:auto}.preview-actions form{margin:0}.paper{background:white;border:1px solid #dfe7f0;box-shadow:0 15px 40px rgba(15,35,65,.08);padding:55px 60px;color:#14283f}.paper-head{display:flex;gap:25px;align-items:center;border-bottom:2px solid #14283f;padding-bottom:20px}.paper-head img{width:220px}.paper-head div{display:flex;flex-direction:column;gap:8px}.paper-head small{line-height:1.55}.quote-meta{display:flex;justify-content:space-between;margin:22px 0;font-size:17px}.paper h3{font-size:15px;background:#f1f5f9;padding:9px 11px}.paper-item{padding:8px 0 15px}.paper-item h2{font-size:18px}.paper-item li{margin:5px 0}.grand{border-top:2px solid #14283f;border-bottom:2px solid #14283f;padding:14px 0;display:flex;justify-content:space-between;font-size:19px}.auth{background:#f4f8fc;min-height:100vh;display:grid;place-items:center;padding:20px}.auth-card{background:#fff;border:1px solid #dbe5ef;border-radius:20px;padding:36px;width:min(460px,100%);box-shadow:0 18px 45px rgba(15,35,65,.08)}.auth-card img{width:230px;margin-bottom:20px}.auth-card form{display:grid;gap:16px}.auth-card label{display:grid;gap:7px;font-weight:600}.auth-card input{width:100%;padding:14px;border:1px solid #ccd9e8;border-radius:10px;font-size:16px}.alert{padding:12px;background:#fff0f0;border-radius:10px;margin:15px 0;color:#a21d1d}header{padding-right:24px!important}header .ghost{margin-left:auto;text-decoration:none}
@media(max-width:800px){.page{margin:30px auto;padding:0 14px}.grid.three{grid-template-columns:1fr}.paper{padding:28px 20px}.paper-head{flex-direction:column;align-items:flex-start}.paper-head img{width:190px}.row.labels{display:none}.table .row{grid-template-columns:1fr 1fr!important;gap:8px}.table .row>*{min-width:0}.preview-actions>*{flex:1;text-align:center}.preview-actions .back{flex-basis:100%}}
@media print{header,.preview-actions{display:none!important}.page{margin:0;padding:0;max-width:none}.paper{border:0;box-shadow:none;padding:15mm}body{background:#fff}}
.hint{font-weight:500;color:#718096;font-size:12px}.email-box,.attachments-box{margin-top:24px;padding:20px;border:1px solid #dfe8f2;border-radius:14px;background:#f8fbff}.email-box h2,.attachments-box h2{margin:0 0 5px}.email-box p,.attachments-box p{margin:0 0 14px;color:#687991;font-size:14px;line-height:1.5}.email-box textarea{width:100%;background:#fff}.attachments-box input[type=file]{width:100%;background:#fff}.attachment-list{margin-top:14px;display:grid;gap:8px}.attachment-list>div{display:flex;justify-content:space-between;gap:15px;padding:11px 13px;background:#fff;border:1px solid #e1e8f0;border-radius:9px}.attachment-list a{font-weight:700;color:#0969d8}.danger-link{color:#b42318!important;margin-left:10px}.pdf-help{margin:0 0 14px;padding:11px 14px;border-radius:10px;background:#edf5ff;color:#35506e;font-size:13px}.outside-paper{margin-top:18px;background:#fff;border:1px solid #dfe7f0;border-radius:12px;padding:18px}.outside-paper h3{margin:0 0 6px}.outside-paper p{color:#687991}.attachment-chip{display:inline-block;margin:5px 6px 0 0;padding:9px 12px;border:1px solid #d6e2ef;border-radius:9px;background:#f8fbff;color:#0969d8;font-weight:700;text-decoration:none}.email-preview pre{white-space:pre-wrap;font:inherit;line-height:1.55;background:#f7f9fc;padding:14px;border-radius:9px}@media print{.pdf-help,.outside-paper{display:none!important}}

/* V004 — refinamento visual, capacidade automática e impressão limpa */
.email-box,.attachments-box{padding:24px!important;border-radius:16px!important;background:#f8fbff!important}
.email-box textarea{display:block;width:100%!important;min-height:220px!important;line-height:1.55!important;padding:15px 16px!important}
.attachments-box input[type=file]{display:block;width:100%!important;padding:12px!important;border:1px dashed #a9c4e4!important;border-radius:11px!important;background:#fff!important}
.attachment-list>div{align-items:center!important;padding:13px 15px!important}
.attachment-list>div>span:first-child{min-width:0;overflow-wrap:anywhere;font-weight:650}
.attachment-list>div>span:last-child{white-space:nowrap}
.attachment-list a{display:inline-block;text-decoration:none;padding:7px 10px;border-radius:8px;background:#edf5ff}
.attachment-list .danger-link{background:#fff0ef!important;color:#b42318!important}
.outside-paper{padding:22px!important;border-radius:15px!important;box-shadow:0 8px 24px rgba(15,35,65,.04)}
.outside-title{display:flex;gap:13px;align-items:flex-start}
.outside-title h3{margin:1px 0 5px!important;font-size:18px}
.outside-title p{margin:0!important;line-height:1.5}
.outside-icon{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:10px;background:#edf5ff;color:#0969d8;font-weight:900;font-size:18px}
.preview-attachments{display:grid;gap:9px;margin-top:16px}
.attachment-chip{display:flex!important;align-items:center;gap:10px!important;margin:0!important;padding:12px 14px!important}
.attachment-chip span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere;color:#173553}
.attachment-chip b{font-size:13px;color:#0969d8}
.email-message{margin-top:16px;padding:16px 17px;border:1px solid #e2e9f1;border-radius:11px;background:#f8fafc;line-height:1.6;color:#243b55;white-space:normal}
.capacity{font-weight:inherit}
.row>span.draft,.row>span.finalized,.row>span.sent{display:inline-flex;align-items:center;justify-content:center;width:max-content;min-width:88px;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:800;text-decoration:none}
.row>span.finalized{background:#e8f1ff;color:#0759b7}
.row>span.sent{background:#e9f8ef;color:#267547}
.row>span.draft{background:#fff4dc;color:#946100}

@page{size:A4 portrait;margin:8mm}
@media print{
  html,body{width:210mm!important;min-height:297mm!important;background:#fff!important}
  header,.preview-actions,.pdf-help,.outside-paper{display:none!important}
  main.page.preview-page{display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important}
  .paper{width:auto!important;min-height:0!important;margin:0!important;padding:5mm 7mm!important;border:0!important;border-radius:0!important;box-shadow:none!important;font-size:10pt!important;line-height:1.28!important;color:#111!important}
  .paper-head{gap:5mm!important;padding-bottom:3mm!important}
  .paper-head img{width:48mm!important}
  .paper-head strong{font-size:10.5pt!important}
  .paper-head small{font-size:8pt!important;line-height:1.3!important}
  .quote-meta{margin:3mm 0!important;font-size:10pt!important}
  .paper h3{font-size:9pt!important;margin:2.5mm 0 1.5mm!important;padding:1.5mm 2mm!important;break-after:avoid}
  .paper p{margin:1.5mm 0!important}
  .paper-item{padding:1mm 0 2.2mm!important;break-inside:avoid}
  .paper-item h2{font-size:10.5pt!important;margin:1.5mm 0!important}
  .paper-item ul{margin:1.5mm 0 1.5mm 5mm!important;padding-left:4mm!important}
  .paper-item li{margin:.7mm 0!important}
  .grand{padding:2.5mm 0!important;font-size:11pt!important;break-inside:avoid}
  .paper>p:last-child{margin-bottom:0!important}
}
@media(max-width:760px){
 .attachment-list>div{align-items:flex-start;flex-direction:column}
 .attachment-list>div>span:last-child{white-space:normal}
 .attachment-chip b{display:none}
}

/* V005 — acabamento de anexos, e-mail, exclusão e documento PDF isolado */
.email-box textarea{width:100%!important;min-height:260px!important;max-width:none!important;box-sizing:border-box!important;font-size:15px!important;line-height:1.6!important}
.attachment-list{gap:10px!important}
.attachment-list .attachment-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:13px 14px!important;background:#fff!important;border:1px solid #dce6f0!important;border-radius:11px!important}
.attachment-name{display:flex;align-items:center;gap:10px;min-width:0;font-weight:650}.attachment-name>span:last-child{overflow-wrap:anywhere}.file-icon{width:34px;height:34px;display:grid;place-items:center;background:#edf5ff;border-radius:8px;flex:0 0 34px}.attachment-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.attachment-actions a{margin:0!important;padding:8px 12px!important;border-radius:8px!important;text-decoration:none!important}.download-attachment{background:#edf5ff!important;color:#0969d8!important}.danger-link{background:#fff0ef!important;color:#b42318!important}
.row-actions{display:flex;align-items:center;gap:7px}.row-actions form{margin:0}.delete-quote{border:1px solid #f0c6c2!important;background:#fff!important;color:#b42318!important;border-radius:9px!important;padding:10px 12px!important;font-weight:750!important;cursor:pointer}.delete-quote:hover{background:#fff2f1!important}.success-alert{margin:0 0 16px;padding:12px 14px;border:1px solid #bfe5ce;background:#eefaf3;color:#23663e;border-radius:10px;font-weight:650}
.pdf-only{background:#edf2f7;padding:24px}.pdf-toolbar{max-width:920px;margin:0 auto 14px;background:#fff;border:1px solid #dce5ef;border-radius:12px;padding:12px 14px;display:flex;align-items:center;gap:14px;color:#53677f;font-size:13px}.pdf-toolbar button{border:0;border-radius:9px;background:#0969d8;color:#fff;padding:11px 16px;font-weight:800;cursor:pointer}.pdf-document{max-width:920px;margin:0 auto}
@media(max-width:800px){.attachment-list .attachment-row{align-items:flex-start!important;flex-direction:column!important}.attachment-actions{width:100%}.attachment-actions a{flex:1;text-align:center}.row-actions{align-items:stretch;flex-direction:column}.row-actions .open,.row-actions form,.row-actions button{width:100%;text-align:center}.pdf-only{padding:10px}.pdf-toolbar{align-items:stretch;flex-direction:column}.pdf-toolbar button{width:100%}}
@media print{.pdf-only{padding:0!important;background:#fff!important}.pdf-toolbar{display:none!important}.pdf-document{max-width:none!important}}

/* V006 — orçamento mais profissional + ação de excluir compacta */
.table .row{grid-template-columns:130px minmax(160px,1.05fr) minmax(230px,1.35fr) 120px 100px 132px!important}
.row-actions{justify-content:flex-end!important;white-space:nowrap}
.delete-quote{position:relative!important;width:42px!important;height:42px!important;padding:0!important;display:inline-grid!important;place-items:center!important;font-size:17px!important;line-height:1!important;flex:0 0 42px!important}
.delete-quote .tooltip{position:absolute;right:0;bottom:calc(100% + 8px);width:max-content;max-width:170px;padding:7px 9px;border-radius:7px;background:#15263d;color:#fff;font-size:12px;font-weight:700;line-height:1;opacity:0;visibility:hidden;transform:translateY(4px);transition:.15s;pointer-events:none;z-index:20}
.delete-quote .tooltip:after{content:"";position:absolute;right:14px;top:100%;border:5px solid transparent;border-top-color:#15263d}
.delete-quote:hover .tooltip,.delete-quote:focus-visible .tooltip{opacity:1;visibility:visible;transform:none}

.pdf-v006{font-family:Inter,Arial,sans-serif;color:#14283f}
.pdf-sheet{width:min(920px,100%);margin:0 auto;background:#fff;border:1px solid #dce5ef;box-shadow:0 16px 42px rgba(15,35,65,.10);padding:42px 48px 30px}
.pdf-head{height:auto!important;padding:0 0 18px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:28px!important;border:0!important;border-bottom:3px solid #0969d8!important;background:#fff!important}
.pdf-brand img{display:block;width:225px!important;height:auto!important;margin:0 0 12px!important}
.pdf-company-line{font-size:11px;font-weight:800;letter-spacing:.45px;color:#344b67}
.pdf-number-box{min-width:185px;padding:14px 17px;border-radius:12px;background:#f1f6fc;text-align:right}
.pdf-number-box span{display:block;font-size:10px;font-weight:800;letter-spacing:1.3px;color:#647991}
.pdf-number-box strong{display:block;margin:3px 0;font-size:20px;color:#0969d8}
.pdf-number-box small{color:#5f7289;font-size:11px}
.pdf-contact-line{display:flex;gap:8px 18px;flex-wrap:wrap;padding:10px 0 18px;color:#63768c;font-size:10.5px;border-bottom:1px solid #e2e9f1}
.pdf-contact-line span+span:before{content:"•";margin-right:18px;color:#a6b4c4}
.pdf-section{margin-top:18px}.pdf-section h3,.pdf-info-card h3{margin:0 0 11px;padding:0;background:none;font-size:10px;letter-spacing:1px;color:#0969d8}
.pdf-client{padding:15px 17px;border:1px solid #e1e8f0;border-radius:12px;background:#f8fafc}
.pdf-client-grid{display:grid;grid-template-columns:1.15fr .9fr .65fr 1.3fr;gap:14px}
.pdf-client-grid div{min-width:0}.pdf-client-grid small{display:block;margin-bottom:3px;font-size:9.5px;color:#718096}.pdf-client-grid strong{display:block;font-size:11.5px;overflow-wrap:anywhere}
.pdf-items{margin-top:15px;display:grid;gap:10px}.pdf-item{padding:13px 15px;border:1px solid #e2e9f1;border-radius:11px;break-inside:avoid}.pdf-item-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.pdf-item-head>div{display:flex;align-items:center;gap:8px}.pdf-item-head strong{font-size:12px}.pdf-item-head>b{font-size:12px;color:#0969d8;white-space:nowrap}.pdf-item-index{width:22px;height:22px;border-radius:7px;display:inline-grid;place-items:center;background:#0969d8;color:#fff;font-size:10px;font-weight:800;flex:0 0 22px}.pdf-service-title{margin:9px 0 3px;font-size:9.5px;font-weight:800;color:#53677f}.pdf-item ul{margin:4px 0 0 18px;padding:0;font-size:10.5px;line-height:1.35}.pdf-item li{margin:2px 0}.pdf-total{margin-top:14px;padding:12px 15px;border-radius:10px;background:#102b4c;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px}.pdf-total span{font-size:10.5px;font-weight:800;letter-spacing:.45px}.pdf-total strong{font-size:17px}
.pdf-bottom-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:11px;margin-top:12px}.pdf-info-card{padding:13px 15px;border:1px solid #e1e8f0;border-radius:10px;break-inside:avoid}.pdf-info-card h3{margin-bottom:8px}.pdf-info-card p{margin:4px 0;font-size:10px;line-height:1.35}.pdf-info-label{font-size:9px;font-weight:800;color:#6c7f95}.pdf-validity{margin-top:8px;padding-top:8px;border-top:1px solid #e6ecf2;font-size:10px}.pdf-notes{margin-top:11px;padding:10px 13px;border-radius:9px;background:#f8fafc;font-size:10px}.pdf-notes p{margin:4px 0 0}.pdf-footer{margin-top:17px;padding-top:10px;border-top:1px solid #e3eaf1;text-align:center;color:#8391a2;font-size:9px}
@media(max-width:800px){.table .row{min-width:850px!important}.pdf-sheet{padding:25px 20px}.pdf-head{align-items:flex-start!important;flex-direction:column!important}.pdf-number-box{width:100%;text-align:left}.pdf-client-grid,.pdf-bottom-grid{grid-template-columns:1fr 1fr}.pdf-contact-line span+span:before{display:none}}
@page{size:A4 portrait;margin:7mm}
@media print{
 .pdf-v006{padding:0!important;background:#fff!important}
 .pdf-toolbar{display:none!important}
 .pdf-sheet{width:auto!important;max-width:none!important;margin:0!important;padding:4mm 5mm 3mm!important;border:0!important;box-shadow:none!important}
 .pdf-head{padding-bottom:2.5mm!important;gap:5mm!important;border-bottom-width:2px!important}
 .pdf-brand img{width:47mm!important;margin-bottom:2mm!important}.pdf-company-line{font-size:7.6pt!important}
 .pdf-number-box{min-width:42mm!important;padding:2.5mm 3mm!important;border-radius:2mm!important}.pdf-number-box span{font-size:6.8pt!important}.pdf-number-box strong{font-size:13pt!important}.pdf-number-box small{font-size:7.2pt!important}
 .pdf-contact-line{padding:2mm 0 3mm!important;font-size:7pt!important}.pdf-section{margin-top:3mm!important}.pdf-client{padding:2.5mm 3mm!important;border-radius:2mm!important}.pdf-section h3,.pdf-info-card h3{font-size:7pt!important;margin-bottom:1.5mm!important}.pdf-client-grid{gap:2.5mm!important}.pdf-client-grid small{font-size:6.5pt!important}.pdf-client-grid strong{font-size:7.8pt!important}
 .pdf-items{margin-top:2.5mm!important;gap:1.8mm!important}.pdf-item{padding:2mm 2.5mm!important;border-radius:2mm!important}.pdf-item-head strong,.pdf-item-head>b{font-size:8pt!important}.pdf-item-index{width:4.5mm!important;height:4.5mm!important;flex-basis:4.5mm!important;border-radius:1.2mm!important;font-size:6.5pt!important}.pdf-service-title{margin:1.4mm 0 .5mm!important;font-size:6.7pt!important}.pdf-item ul{margin:.7mm 0 0 4mm!important;font-size:7.2pt!important;line-height:1.25!important}.pdf-item li{margin:.35mm 0!important}
 .pdf-total{margin-top:2.3mm!important;padding:2.2mm 2.8mm!important;border-radius:1.5mm!important}.pdf-total span{font-size:7.2pt!important}.pdf-total strong{font-size:11pt!important}
 .pdf-bottom-grid{gap:2mm!important;margin-top:2mm!important}.pdf-info-card{padding:2mm 2.5mm!important;border-radius:1.5mm!important}.pdf-info-card p,.pdf-validity{font-size:7pt!important;line-height:1.25!important}.pdf-info-label{font-size:6.5pt!important}.pdf-validity{margin-top:1.3mm!important;padding-top:1.3mm!important}.pdf-notes{margin-top:2mm!important;padding:1.8mm 2.3mm!important;font-size:7pt!important}.pdf-footer{margin-top:2.5mm!important;padding-top:1.5mm!important;font-size:6.5pt!important}
}

/* V009 — login alinhado + salvar somente o usuário */
.auth-card-v008{text-align:left}.auth-card-v008>img{display:block;width:240px;max-width:72%;margin:0 auto 28px}.auth-card-v008 .auth-copy{text-align:left;margin-bottom:18px}.auth-card-v008 .auth-copy h1{margin:0 0 8px}.auth-card-v008 .auth-copy p{margin:0}.remember-user{display:flex!important;flex-direction:row!important;align-items:center;gap:9px!important;font-weight:500!important;color:#41546b;font-size:14px;cursor:pointer}.remember-user input{width:18px!important;height:18px!important;margin:0;accent-color:#0969d8}.remember-user span{line-height:1.3}

/* V010 — refinamento mobile + login + lista responsiva */
.remember-user{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  width:100%!important;
  font-size:14px!important;
  font-weight:650!important;
  color:#334760!important;
}
.remember-user input{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  flex:0 0 18px!important;
  margin:0!important;
  padding:0!important;
}
.remember-user span{display:inline!important;line-height:1.25!important}

@media(max-width:800px){
  body{font-size:16px}
  header{padding:0 14px!important;height:72px!important}
  header img{width:165px!important;max-width:62vw}
  header .ghost{font-size:14px;padding:10px 13px!important}
  .page{margin:22px auto!important;padding:0 12px 48px!important}
  .panel{padding:16px!important;border-radius:16px!important;margin-top:0!important}
  .panelhead{display:grid!important;grid-template-columns:auto 1fr!important;gap:12px 14px!important;align-items:start!important;padding-bottom:18px!important;margin-bottom:20px!important}
  .panelhead .back{grid-column:1;padding:10px 12px!important;white-space:nowrap}
  .panelhead>div{grid-column:2;min-width:0!important}
  .panelhead h1,.panelhead h2{font-size:28px!important;line-height:1.08!important;margin:2px 0 6px!important}
  .panelhead p{font-size:15px!important;line-height:1.35!important}
  .panelhead .cta,.panelhead .mini{grid-column:1 / -1;width:100%!important;text-align:center!important;margin:0!important}
  .panelhead .badge{grid-column:1 / -1;margin:0!important;width:max-content}

  .searchform{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;margin:20px 0 16px!important}
  .searchform .search{min-width:0!important;width:100%!important;font-size:15px!important;padding:12px!important}
  .searchform .ghost{padding:10px 13px!important}

  /* No mobile a tabela vira uma lista de cartões, sem rolagem horizontal. */
  .table{border:0!important;overflow:visible!important;display:grid!important;gap:12px!important;background:transparent!important}
  .row.labels{display:none!important}
  .table .row:not(.labels){
    min-width:0!important;
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:
      "number status"
      "client client"
      "service service"
      "date actions"!important;
    gap:7px 10px!important;
    padding:16px!important;
    border:1px solid #dfe7f0!important;
    border-radius:14px!important;
    background:#fff!important;
  }
  .table .row:not(.labels)>strong:nth-child(1){grid-area:number;font-size:17px!important;align-self:center}
  .table .row:not(.labels)>span:nth-child(2){grid-area:client;font-size:15px!important;font-weight:700!important;color:#263b55}
  .table .row:not(.labels)>span:nth-child(2)::before{content:"Cliente: ";font-size:12px;color:#718096;font-weight:600}
  .table .row:not(.labels)>span:nth-child(3){grid-area:service;font-size:15px!important;color:#263b55}
  .table .row:not(.labels)>span:nth-child(3)::before{content:"Serviço: ";font-size:12px;color:#718096;font-weight:600}
  .table .row:not(.labels)>span:nth-child(4){grid-area:date;font-size:13px!important;color:#718096;align-self:center}
  .table .row:not(.labels)>span:nth-child(5){grid-area:status;justify-self:end;align-self:start;width:auto!important;min-width:92px}
  .table .row:not(.labels)>.row-actions{grid-area:actions!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;width:auto!important}
  .row-actions .open{width:auto!important;padding:9px 13px!important;text-align:center!important}
  .row-actions form{width:auto!important;display:block!important}
  .row-actions .delete-quote{width:40px!important;height:40px!important;min-width:40px!important;padding:0!important}
  .delete-quote .tooltip{display:none!important}

  .grid,.grid.three,.grid.lower{grid-template-columns:1fr!important;gap:14px!important}
  .service{padding:15px!important;gap:14px!important}
  .itemtop{gap:10px!important}
  .itemtop .remove{padding:8px 10px!important}
  input,textarea,select{width:100%!important;min-width:0!important;font-size:16px!important}
  .email-box,.attachments-box{width:100%!important;min-width:0!important;padding:18px!important;margin-top:20px!important}
  .email-box h2,.attachments-box h2{font-size:25px!important;line-height:1.1!important}
  .email-box p,.attachments-box p{font-size:15px!important;line-height:1.45!important}
  .email-box textarea{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:230px!important;font-size:16px!important;line-height:1.5!important}
  .attachments-box input[type=file]{width:100%!important;max-width:100%!important;font-size:14px!important;overflow:hidden!important}
  .attachment-list .attachment-row{width:100%!important;min-width:0!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important}
  .attachment-name{width:100%!important;min-width:0!important}
  .attachment-actions{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .attachment-actions a{width:100%!important;text-align:center!important}
  .total{justify-content:space-between!important;gap:12px!important;font-size:16px!important}
  .total strong{font-size:24px!important;white-space:nowrap}
  .footerbar{position:static!important;display:grid!important;grid-template-columns:1fr!important;gap:10px!important;padding-top:18px!important}
  .footerbar button{width:100%!important;min-height:48px!important}

  .preview-page{padding-left:12px!important;padding-right:12px!important}
  .preview-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .preview-actions>*{width:100%!important;min-width:0!important;margin:0!important}
  .preview-actions .back{grid-column:1 / -1!important}
  .preview-actions form{display:block!important}
  .preview-actions form .cta{width:100%!important}
  .paper{padding:22px 16px!important}
  .paper-head{gap:15px!important}
  .paper-head img{width:180px!important}
  .paper-head small{font-size:13px!important}
  .quote-meta{font-size:15px!important;gap:12px!important}
  .outside-paper{padding:16px!important}
  .outside-title{gap:10px!important}
  .outside-title h3{font-size:19px!important}
  .preview-attachments{display:grid!important;grid-template-columns:1fr!important}
  .attachment-chip{width:100%!important;display:flex!important;align-items:center!important;gap:8px!important;overflow:hidden!important}
  .attachment-chip span:nth-child(2){min-width:0;overflow-wrap:anywhere}
  .email-message{font-size:15px!important;line-height:1.55!important;padding:14px!important}

  .auth{padding:18px!important;align-items:center!important}
  .auth-card{padding:28px 24px!important;border-radius:18px!important}
  .auth-card-v008>img{width:220px!important;max-width:82%!important;margin-bottom:24px!important}
  .auth-card-v008 .auth-copy h1{font-size:32px!important;line-height:1.08!important}
  .remember-user{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important}
  .remember-user input{width:18px!important;height:18px!important;min-width:18px!important;flex:0 0 18px!important}
  .remember-user span{display:inline!important;font-size:14px!important}
}

@media(max-width:390px){
  .panelhead{grid-template-columns:1fr!important}
  .panelhead .back,.panelhead>div,.panelhead .cta,.panelhead .mini,.panelhead .badge{grid-column:1!important}
  .panelhead .back{width:max-content!important}
  .searchform{grid-template-columns:1fr!important}
  .searchform .ghost{width:100%!important}
  .preview-actions{grid-template-columns:1fr!important}
  .preview-actions .back{grid-column:1!important}
}

/* V011 — envio por e-mail */
.badge.sent{background:#e7f7ee!important;color:#18794e!important}
.send-card{max-width:980px;margin:0 auto}
.send-card form>label{display:block;margin-top:20px}
.email-body-field{width:100%!important;min-height:220px!important;resize:vertical}
.send-pdf{margin-top:22px;padding:16px 18px;border:1px solid #dbe5f0;border-radius:14px;background:#f7faff;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.send-pdf span{color:#66758a;flex:1;min-width:220px}.send-pdf .ghost{white-space:nowrap}
.attachment-select{margin:22px 0 0;border:1px solid #dbe5f0;border-radius:14px;padding:16px 18px}.attachment-select legend{font-weight:800;padding:0 6px}.attachment-select p{color:#66758a;margin:2px 0 12px}
.check-row{display:flex!important;align-items:center!important;gap:10px!important;margin:10px 0!important;font-weight:600!important}.check-row input{width:20px!important;height:20px!important;flex:0 0 20px!important;margin:0!important}
.send-confirm{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:24px;padding-top:20px;border-top:1px solid #e3eaf2}.send-confirm .cta{min-width:210px}
.notice{padding:13px 16px;border-radius:12px;margin:16px 0}.notice.success{background:#e7f7ee;color:#146c43}.notice.danger{background:#fff0f0;color:#a62929}
.send-history{margin-top:28px;border-top:1px solid #e3eaf2;padding-top:20px}.send-history h2{font-size:20px}.send-history>div{display:grid;grid-template-columns:160px 1fr auto;gap:12px;padding:11px 0;border-bottom:1px solid #edf1f5}.sent-ok{color:#18794e;font-weight:800}.sent-fail{color:#b42318;font-weight:800}
@media(max-width:700px){.send-confirm{align-items:stretch;flex-direction:column}.send-confirm .cta{width:100%}.send-history>div{grid-template-columns:1fr}.send-pdf{align-items:flex-start;flex-direction:column}.send-pdf .ghost{width:100%;text-align:center}.attachment-select{padding:14px}}

/* V012 — confirmação de anexos e retorno após envio */
.send-summary{display:flex;flex-direction:column;gap:3px;color:#263b55}.send-summary span{font-size:13px;color:#718096}.attachment-options{display:grid;gap:8px}.attachment-option{padding:10px 12px!important;border:1px solid #e1e8f0;border-radius:10px;background:#fff}.attachment-option:has(input:checked){border-color:#9dc7f7;background:#f1f7ff}.modal-backdrop{position:fixed;inset:0;z-index:9999;background:rgba(10,28,52,.55);display:grid;place-items:center;padding:20px}.modal-backdrop[hidden]{display:none!important}.modal-card{width:min(520px,100%);background:#fff;border-radius:18px;padding:28px;box-shadow:0 28px 80px rgba(8,27,52,.28);text-align:center}.modal-card h2{margin:8px 0 10px;font-size:24px;line-height:1.2;color:#102b4e}.modal-card p{margin:0 auto 22px;color:#5c6d82;line-height:1.55;max-width:440px}.modal-icon{width:58px;height:58px;margin:0 auto 10px;border-radius:50%;display:grid;place-items:center;background:#edf5ff;font-size:27px}.modal-icon.success{background:#e7f7ee;color:#18794e;font-size:32px;font-weight:900}.modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.modal-actions .cta,.modal-actions .ghost{display:flex;align-items:center;justify-content:center;min-height:46px;text-decoration:none;cursor:pointer}.modal-actions .modal-cancel{grid-column:1/-1;border:0;background:transparent;color:#66758a;font-weight:700;padding:8px;cursor:pointer}.modal-actions.single{grid-template-columns:1fr}.modal-open{overflow:hidden}
@media(max-width:700px){.send-summary{text-align:left}.modal-card{padding:24px 18px;border-radius:16px}.modal-card h2{font-size:21px}.modal-actions{grid-template-columns:1fr}.modal-actions .modal-cancel{grid-column:1}.attachment-option{align-items:flex-start!important}.attachment-option span{text-align:left;overflow-wrap:anywhere}}

/* V013 — autocomplete de clientes */
.client-autocomplete{position:relative;z-index:20}
.client-suggestions{position:absolute;z-index:100;top:calc(100% + 6px);left:0;right:0;max-height:310px;overflow:auto;padding:6px;background:#fff;border:1px solid #cfdbea;border-radius:12px;box-shadow:0 16px 40px rgba(15,43,78,.16)}
.client-suggestions[hidden]{display:none!important}
.client-suggestion{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:3px;padding:11px 12px;border:0;border-radius:8px;background:#fff;text-align:left;color:#102b4e;cursor:pointer}
.client-suggestion:hover,.client-suggestion:focus{background:#eef6ff;outline:0}
.client-suggestion strong{font-size:14px}.client-suggestion span{font-size:12px;color:#6a7b90;line-height:1.3}
@media(max-width:800px){.client-suggestions{position:relative;top:auto;margin-top:6px;max-height:250px}.client-suggestion{padding:13px 12px}.client-suggestion strong{font-size:15px}.client-suggestion span{font-size:13px}}


/* V014 — home mais intuitiva + logo navegável */
.header-logo{display:flex;align-items:center;flex:0 0 auto;text-decoration:none;border-radius:10px;transition:opacity .18s ease,transform .18s ease}
.header-logo:hover{opacity:.82;transform:translateY(-1px)}
.header-logo:focus-visible{outline:3px solid rgba(9,105,216,.25);outline-offset:4px}
header>.header-logo+div{border-left:1px solid #dfe6ef;padding-left:18px;display:flex;flex-direction:column;gap:3px}
.home-v014{max-width:980px;padding-top:48px}
.home-v014 .welcome h1{font-size:38px;letter-spacing:-.6px}
.home-dashboard{max-width:790px;margin:30px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.stat-card{background:#fff;border:1px solid #dfe7f0;border-radius:15px;padding:17px 19px;box-shadow:0 7px 24px rgba(19,47,83,.035);display:grid;grid-template-columns:1fr auto;gap:3px 12px;align-items:center}
.stat-card>span{font-size:13px;font-weight:800;color:#5f7188}.stat-card>strong{grid-row:1/3;grid-column:2;font-size:29px;line-height:1;color:#0969d8}.stat-card>small{font-size:11px;color:#8a98aa}
.actions-v014{margin:18px auto 32px}.actions-v014 .action{position:relative;overflow:hidden;text-decoration:none;color:#12233d;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.actions-v014 .action.primary{background:linear-gradient(135deg,#fff 0%,#f6faff 100%)}.actions-v014 .action strong{text-decoration:none}.actions-v014 .action small{text-decoration:none}
.recent-home{max-width:790px;margin:0 auto 20px;background:#fff;border:1px solid #dfe7f0;border-radius:18px;padding:20px 22px;box-shadow:0 10px 32px rgba(19,47,83,.045)}
.recent-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:13px}.recent-head h2{font-size:20px;margin:4px 0 0}.recent-head>a{font-size:13px;font-weight:800;color:#0969d8;text-decoration:none}
.recent-list{display:grid}.recent-item{display:grid;grid-template-columns:120px minmax(0,1fr) 90px 95px 16px;align-items:center;gap:12px;padding:12px 4px;border-top:1px solid #edf1f5;color:#173553;text-decoration:none}.recent-item:first-child{border-top:0}.recent-item:hover{background:#f8fbff}.recent-number{font-size:13px;font-weight:850}.recent-client{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}.recent-date{font-size:12px;color:#718096}.recent-status{justify-self:end;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:850}.recent-status.draft{background:#fff4dc;color:#946100}.recent-status.sent{background:#e9f8ef;color:#267547}.recent-status.finalized{background:#e8f1ff;color:#0759b7}.recent-item>b{font-size:22px;color:#9baabd}
@media(max-width:760px){header>.header-logo+div{display:none}.home-v014{padding-top:30px}.home-v014 .welcome h1{font-size:30px}.home-dashboard{grid-template-columns:repeat(3,1fr);gap:7px;margin-top:22px}.stat-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:13px 11px}.stat-card>strong{font-size:25px;order:-1}.stat-card>span{font-size:11px}.stat-card>small{display:none}.actions-v014{margin-top:14px}.recent-home{padding:17px 15px}.recent-item{grid-template-columns:1fr auto;gap:5px 10px;padding:13px 2px}.recent-number{grid-column:1}.recent-client{grid-column:1}.recent-date{grid-column:1;font-size:11px}.recent-status{grid-column:2;grid-row:1/4;align-self:center}.recent-item>b{display:none}}
@media(max-width:380px){.home-dashboard{grid-template-columns:1fr}.stat-card{display:grid;grid-template-columns:1fr auto}.stat-card>strong{grid-column:2;grid-row:1/3}.stat-card>small{display:block}.stat-card>span{font-size:12px}}

/* V014.1 — correção visual da home + cache bust */
.home-v014 .home-dashboard{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;max-width:790px!important;margin:28px auto 20px!important}
.home-v014 .stat-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:4px 12px!important;align-items:center!important;background:#fff!important;border:1px solid #dfe7f0!important;border-radius:16px!important;padding:18px 20px!important;box-shadow:0 8px 26px rgba(19,47,83,.05)!important}
.home-v014 .stat-card>span{grid-column:1!important;grid-row:1!important;font-size:13px!important;font-weight:800!important;color:#5f7188!important}
.home-v014 .stat-card>strong{grid-column:2!important;grid-row:1/3!important;font-size:30px!important;line-height:1!important;color:#0969d8!important}
.home-v014 .stat-card>small{grid-column:1!important;grid-row:2!important;font-size:11px!important;color:#8a98aa!important}
.home-v014 .recent-home{display:block!important;max-width:790px!important;margin:0 auto 20px!important;background:#fff!important;border:1px solid #dfe7f0!important;border-radius:18px!important;padding:20px 22px!important;box-shadow:0 10px 32px rgba(19,47,83,.045)!important}
.home-v014 .recent-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:16px!important;margin-bottom:10px!important}
.home-v014 .recent-list{display:grid!important}
.home-v014 .recent-item{display:grid!important;grid-template-columns:125px minmax(0,1fr) 90px 95px 18px!important;align-items:center!important;gap:12px!important;padding:13px 8px!important;border-top:1px solid #edf1f5!important;color:#173553!important;text-decoration:none!important}
.home-v014 .recent-item:first-child{border-top:0!important}
.home-v014 .recent-item:hover{background:#f8fbff!important;border-radius:10px!important}
.home-v014 .recent-number{font-weight:800!important}.home-v014 .recent-client{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.home-v014 .recent-date{font-size:12px!important;color:#718096!important}.home-v014 .recent-status{justify-self:end!important;padding:6px 10px!important;border-radius:999px!important;font-size:11px!important;font-weight:800!important}.home-v014 .recent-status.sent{background:#e9f8ef!important;color:#267547!important}.home-v014 .recent-status.draft{background:#fff4dc!important;color:#946100!important}
@media(max-width:760px){
 .home-v014 .home-dashboard{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin-top:20px!important}
 .home-v014 .stat-card{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;padding:13px 11px!important}
 .home-v014 .stat-card>strong{order:-1!important;font-size:25px!important}.home-v014 .stat-card>span{font-size:11px!important}.home-v014 .stat-card>small{display:none!important}
 .home-v014 .recent-home{padding:17px 15px!important}.home-v014 .recent-item{grid-template-columns:minmax(0,1fr) auto!important;gap:5px 10px!important;padding:13px 4px!important}.home-v014 .recent-number,.home-v014 .recent-client,.home-v014 .recent-date{grid-column:1!important}.home-v014 .recent-status{grid-column:2!important;grid-row:1/4!important;align-self:center!important}.home-v014 .recent-item>b{display:none!important}
}
@media(max-width:420px){.home-v014 .home-dashboard{grid-template-columns:1fr!important}.home-v014 .stat-card{display:grid!important;grid-template-columns:1fr auto!important}.home-v014 .stat-card>strong{grid-column:2!important;grid-row:1/3!important;order:initial!important}.home-v014 .stat-card>small{display:block!important}}


/* V015 — múltiplos e-mails e capacidade */
.email-manager{grid-column:1/-1;border:1px solid #dbe5f0;background:#f8fbff;border-radius:14px;padding:14px;margin-top:-4px}.email-manager-head,.recipient-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.extra-email-row,.send-email-row{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px;margin-top:8px}.remove-email,.remove-send-email{border:1px solid #d7e0eb;background:#fff;border-radius:10px;font-size:22px;line-height:1;color:#8b3b3b;cursor:pointer}.capacity-input{display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:8px}.capacity-input select{min-width:0}.recipient-box{margin:20px 0 4px;border:1px solid #dbe5f0;border-radius:14px;padding:16px 18px;background:#f8fbff}.recipient-head>div{display:flex;flex-direction:column;gap:2px}.recipient-head span{font-size:12px;color:#718096}.send-email-row{grid-template-columns:24px minmax(0,1fr) 42px;align-items:center}.send-email-row>input[type=checkbox]{width:20px!important;height:20px!important;margin:0!important}.subject-only{grid-template-columns:1fr!important}.email-manager-label .hint{display:block;margin-top:5px}
@media(max-width:700px){.email-manager-head,.recipient-head{align-items:stretch;flex-direction:column}.email-manager-head .mini,.recipient-head .mini{width:100%}.capacity-input{grid-template-columns:minmax(0,1fr) 82px}.send-email-row{grid-template-columns:22px minmax(0,1fr) 40px}.recipient-box{padding:14px}}
