@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root{
  --bg:#f4f6f8;
  --surface:#ffffff;
  --surface-soft:#f8fafb;
  --text:#14202b;
  --muted:#63717d;
  --line:#d7dee4;
  --line-strong:#c4cdd5;
  --brand:#0b6f78;
  --brand-dark:#07545b;
  --brand-soft:#eaf5f6;
  --blue:#145ea8;
  --blue-dark:#0e4a86;
  --ok:#137a4b;
  --ok-soft:#eef8f2;
  --warn:#9b6400;
  --warn-soft:#fff7e7;
  --danger:#b42318;
  --danger-soft:#fff3f2;
  --shadow:0 10px 28px rgba(15,31,45,.06);
}
*{box-sizing:border-box}
html,body,body *,body *::before,body *::after,button,input,select,textarea,option,optgroup,table,th,td,summary,label,a,span,strong,b,small,p,h1,h2,h3,h4,h5,h6,code,pre{font-family:"Poppins",sans-serif!important}
input::file-selector-button{font-family:"Poppins",sans-serif!important}
input::-webkit-file-upload-button{font-family:"Poppins",sans-serif!important}
html{background:var(--bg)}
body{margin:0;min-height:100vh;font-family:"Poppins",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text);display:flex;flex-direction:column}
a{color:inherit}
button,input,select,textarea{font:inherit;font-family:"Poppins",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
button{appearance:none}
.hidden{display:none!important}

.topbar{height:82px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;flex:0 0 auto}
.topbar .inner{width:100%;max-width:1240px;margin:0 auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.brand-link{display:inline-flex;align-items:center;text-decoration:none;min-width:0}
.brand-logo{display:block;height:48px;width:auto;max-width:260px}
.topbar-actions{display:flex;align-items:center;gap:14px}
.topbar-context{font-size:13px;color:var(--muted)}
.secure-context{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#33414e}
.secure-dot{width:9px;height:9px;border-radius:999px;background:var(--ok);box-shadow:0 0 0 4px rgba(19,122,75,.08)}

.primary-btn,.ghost-btn,.text-danger-btn,.icon-close{border:0;text-decoration:none;cursor:pointer;font-weight:750;transition:.15s ease;display:inline-flex;align-items:center;justify-content:center}
.primary-btn{background:var(--blue);color:#fff;border-radius:7px;padding:12px 17px;min-height:44px}
.primary-btn:hover{background:var(--blue-dark)}
.ghost-btn{background:#fff;color:var(--text);border:1px solid var(--line-strong);border-radius:7px;padding:10px 15px;min-height:42px}
.ghost-btn:hover{background:#f7f9fa;border-color:#aeb9c2}
.text-danger-btn{background:transparent;color:var(--danger);padding:12px 4px;margin-top:4px;width:100%}
.text-danger-btn:hover{text-decoration:underline}
button:disabled,.primary-btn:disabled{opacity:.55;cursor:not-allowed}

.section-overline,.sidebar-kicker,.card-step,.summary-label,.document-label{font-size:13px;line-height:1.35;font-weight:600;letter-spacing:normal;text-transform:none;color:var(--muted)}
.field{display:flex;flex-direction:column;gap:7px}
.field label{font-size:13px;font-weight:750;color:#263541}
.field input,.field select,.field textarea{width:100%;height:45px;border:1px solid var(--line-strong);border-radius:6px;padding:0 13px;background:#fff;color:var(--text);outline:none;transition:border-color .15s,box-shadow .15s}
.field textarea{height:auto;padding:12px 13px}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(20,94,168,.10)}
.field input[type="file"]{height:auto;padding:10px;background:#fff}
.field-help{font-size:12px;color:var(--muted);line-height:1.4}
.stack{display:flex;flex-direction:column;gap:14px}
.notice{padding:12px 14px;border-radius:6px;border:1px solid var(--line);background:#f8fafb;color:#3d4b56;font-size:14px;line-height:1.45}
.notice.ok{background:var(--ok-soft);border-color:#bfdfcc;color:#155c3b}
.notice.error{background:var(--danger-soft);border-color:#efc1bd;color:#8f251d}
.badge,.mode-pill{display:inline-flex;align-items:center;width:max-content;border:1px solid var(--line-strong);border-radius:999px;background:#fff;padding:5px 9px;font-size:11px;font-weight:800;color:#3a4854}
.badge.pending{color:var(--warn);background:var(--warn-soft);border-color:#e9d3a7}
.badge.signed{color:var(--ok);background:var(--ok-soft);border-color:#c5e0d1}
.badge.refused,.badge.cancelled,.badge.expired{color:var(--danger);background:var(--danger-soft);border-color:#efc5c1}
.code{font-family:"Poppins",sans-serif}
.small{font-size:12px}.muted{color:var(--muted)}

/* Admin */
.admin-shell{width:100%;max-width:1320px;margin:0 auto;padding:28px;flex:1}
.login-panel{max-width:440px;margin:58px auto;background:#fff;border:1px solid var(--line);padding:30px 32px;box-shadow:var(--shadow)}
.login-panel h1{font-size:29px;letter-spacing:-.025em;margin:7px 0 8px}.login-panel p{margin:0 0 22px;color:var(--muted);line-height:1.5}.login-brandline{font-size:12px;font-weight:800;color:var(--brand);text-transform:uppercase;letter-spacing:.08em}.login-form .primary-btn{width:100%}
.admin-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:30px;align-items:start}
.admin-sidebar{position:sticky;top:24px;min-height:560px;border-right:1px solid var(--line);padding:12px 24px 20px 0}
.sidebar-kicker{margin:0}.side-nav{display:flex;flex-direction:column;gap:4px}.side-link{display:flex;align-items:center;gap:10px;text-decoration:none;color:#43515d;padding:10px 11px;border-radius:6px;font-size:14px;font-weight:700}.side-link:hover{background:#edf2f4}.side-link.active{background:#eaf3f4;color:#075b63}.side-icon{width:18px;text-align:center;color:#5b707a}.side-help{margin-top:32px;padding-top:18px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:5px}.side-help b{font-size:13px}.side-help span{font-size:12px;color:var(--muted);line-height:1.45}
.admin-content{min-width:0}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.page-heading h1{font-size:34px;letter-spacing:-.035em;margin:5px 0 7px}.page-heading p{margin:0;color:var(--muted)}.new-request-btn{margin-top:18px}
.metrics-strip{display:flex;align-items:stretch;background:#fff;border:1px solid var(--line);margin-bottom:22px}.metric-item{flex:1;padding:16px 20px;display:flex;align-items:baseline;justify-content:space-between;gap:14px}.metric-item span{font-size:13px;color:var(--muted)}.metric-item strong{font-size:24px;letter-spacing:-.03em}.metric-divider{width:1px;background:var(--line)}
.create-panel{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);margin-bottom:22px}.create-panel-head{padding:22px 24px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:18px}.create-panel-head h2{margin:5px 0 5px;font-size:23px;letter-spacing:-.025em}.create-panel-head p{margin:0;color:var(--muted)}.icon-close{width:36px;height:36px;border:1px solid var(--line);background:#fff;border-radius:6px;font-size:23px;color:#566470}.icon-close:hover{background:#f4f6f7}.demo-bar{margin:18px 24px 0;padding:11px 13px;background:#f5f8f9;border-left:3px solid var(--brand);display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:13px}.demo-bar span{color:var(--muted)}.demo-bar a{font-weight:800;color:var(--blue)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 20px;padding:22px 24px 24px}.full-span{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-start}.optional-section{border:1px solid var(--line);background:#fbfcfc}.optional-section summary{cursor:pointer;list-style:none;padding:12px 14px;font-size:13px;font-weight:750;color:#34434f}.optional-section summary::-webkit-details-marker{display:none}.optional-section summary span{margin-left:8px;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.optional-section[open] summary{border-bottom:1px solid var(--line)}.optional-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:16px 14px}.file-field{padding-top:2px}
.requests-panel{background:#fff;border:1px solid var(--line)}.panel-title-row{padding:18px 20px 14px;border-bottom:1px solid var(--line)}.panel-title-row h2{font-size:20px;margin:0 0 4px}.panel-title-row p{margin:0;color:var(--muted);font-size:13px}.table-wrap{overflow:auto}.premium-table table{width:100%;border-collapse:collapse;min-width:900px}.premium-table th{padding:11px 14px;text-align:left;background:#f8fafb;border-bottom:1px solid var(--line);font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#66747f}.premium-table td{padding:14px;border-bottom:1px solid #e7ecef;font-size:13px;vertical-align:middle}.premium-table tr:last-child td{border-bottom:0}.premium-table tbody tr:hover{background:#fbfcfd}.premium-table .row{display:flex;gap:8px;flex-wrap:wrap}.premium-table button,.premium-table .btn{min-height:36px;padding:8px 11px;border-radius:6px;font-size:12px}.premium-table button.secondary,.premium-table .btn.secondary{background:#fff;border:1px solid var(--line-strong);color:var(--text)}.premium-table button.danger{background:#fff;border:1px solid #efc4c0;color:var(--danger)}
.result-box{border:1px solid #bdd9dd;background:#f4fafb;padding:15px 16px}.result-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.result-head h3{font-size:18px;margin:3px 0 4px}.result-head p{margin:0;color:var(--muted);font-size:13px}.copy-field{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;margin-top:13px}.copy-field input{min-width:0;border:1px solid var(--line-strong);border-radius:6px;padding:11px 12px;background:#fff;font-size:13px;color:#23323e}

/* Signing */
.sign-shell{width:100%;max-width:1240px;margin:0 auto;padding:30px 28px 46px;flex:1}.sign-titlebar{display:flex;justify-content:space-between;align-items:flex-end;gap:22px;margin-bottom:18px}.sign-titlebar h1{font-size:31px;letter-spacing:-.035em;margin:5px 0 6px}.sign-titlebar p{margin:0;color:var(--muted)}.mode-pill{margin-bottom:3px;background:#f7fafb}
.stepper{display:flex;align-items:center;border:1px solid var(--line);background:#fff;padding:12px 16px;margin-bottom:18px}.step{display:flex;align-items:center;gap:9px;min-width:150px;color:#82909a}.step>span{width:28px;height:28px;border:1px solid #c8d0d6;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;background:#fff}.step div{display:flex;flex-direction:column;gap:1px}.step b{font-size:12px}.step small{font-size:10px}.step.active{color:#23333f}.step.active>span{border-color:var(--blue);background:#eef5fc;color:var(--blue)}.step-line{height:1px;background:#d7dde2;flex:1;margin:0 12px}
.gov-sign-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}.document-stage{background:#fff;border:1px solid var(--line);min-width:0}.document-toolbar{min-height:64px;padding:12px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:18px}.document-toolbar>div{display:flex;flex-direction:column;gap:3px;min-width:0}.document-toolbar strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text-action{font-size:12px;font-weight:800;color:var(--blue);text-decoration:none;white-space:nowrap}.text-action:hover{text-decoration:underline}.doc-frame{display:block;width:100%;height:690px;border:0;background:#e9edf0}
.sign-side{display:flex;flex-direction:column;gap:12px;position:sticky;top:18px}.identity-summary,.sign-action-card,.info-strip{background:#fff;border:1px solid var(--line);padding:18px}.summary-label{margin-bottom:12px}.person-row{display:flex;align-items:center;gap:12px}.avatar-circle{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#e9f2f3;color:#075b63;font-weight:850;font-size:13px;flex:0 0 auto}.person-row>div:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}.person-row strong{font-size:15px}.person-row span{font-size:12px;color:var(--muted);line-height:1.35}.info-strip{border-left:3px solid var(--brand);display:flex;flex-direction:column;gap:3px}.info-strip strong{font-size:13px}.info-strip span{font-size:12px;color:var(--muted);line-height:1.45}.sign-action-card .card-step{margin-bottom:6px}.sign-action-card h2{font-size:21px;letter-spacing:-.025em;margin:0 0 7px}.sign-action-card>p{font-size:13px;color:var(--muted);line-height:1.55;margin:0 0 16px}.data-box{border:1px solid var(--line);background:#f8fafb;padding:11px 12px;font-size:13px;margin-bottom:12px}.wide-btn{width:100%}.strong-action{min-height:48px;font-size:14px}.consent-row{display:grid;grid-template-columns:20px 1fr;gap:10px;padding:13px 0;border-top:1px solid #edf0f2;border-bottom:1px solid #edf0f2;margin:4px 0 14px;cursor:pointer}.consent-row input{width:18px;height:18px;margin:1px 0 0;accent-color:var(--blue)}.consent-row span{display:flex;flex-direction:column;gap:3px}.consent-row b{font-size:13px}.consent-row small{font-size:11px;color:var(--muted);line-height:1.4}.signature-optional{border-bottom:1px solid #edf0f2;margin:0 0 14px}.signature-optional summary{cursor:pointer;padding:2px 0 13px;font-size:12px;font-weight:750;color:#384752}.signature-optional summary span{font-weight:500;color:var(--muted)}.signature-content{padding:0 0 14px}.signature-wrap{height:110px;border:1px solid var(--line-strong);background:#fff;margin-bottom:8px}.signature-wrap canvas{display:block;width:100%;height:108px;touch-action:none}.signature-content .ghost-btn{min-height:34px;padding:6px 11px;font-size:12px}.otp{font-size:24px!important;letter-spacing:.22em;text-align:center;font-weight:850}.system-state{max-width:760px;margin:48px auto;background:#fff;border:1px solid var(--line);padding:24px;display:flex;flex-direction:column;gap:6px}.system-state strong{font-size:16px}.system-state span{color:var(--muted);font-size:13px}.loading-line{height:3px;background:linear-gradient(90deg,var(--blue) 0 35%,#dce6ef 35%);margin:-24px -24px 18px}.connection-actions{display:flex;gap:10px;margin-top:10px}.completion-panel{max-width:720px;margin:58px auto;text-align:center}.completion-icon{width:58px;height:58px;border-radius:50%;background:var(--ok-soft);border:1px solid #c8e3d3;color:var(--ok);display:grid;place-items:center;font-size:28px;font-weight:900;margin:0 auto 16px}.completion-panel h1{font-size:30px;margin:6px 0 8px}.completion-panel>p{color:var(--muted);margin:0 0 18px}.completion-card{background:#fff;border:1px solid var(--line);padding:18px;text-align:left}.completion-code{display:flex;flex-direction:column;gap:4px;padding-bottom:14px;border-bottom:1px solid var(--line)}.completion-code span{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:750}.completion-code strong{font-family:"Poppins",sans-serif;font-size:17px}.completion-actions{display:flex;gap:10px;margin-top:14px}.completion-actions>*{flex:1}

/* Home / validate */
.home-shell,.validate-shell{width:100%;max-width:1040px;margin:0 auto;padding:72px 28px;flex:1}.home-hero{max-width:760px}.home-hero h1,.validate-shell>h1{font-size:42px;line-height:1.08;letter-spacing:-.045em;margin:9px 0 14px}.home-hero p,.page-intro{font-size:17px;line-height:1.6;color:var(--muted);max-width:760px}.home-actions{display:flex;gap:10px;margin-top:24px}.validate-shell{max-width:1040px}.validate-shell>h1{font-size:36px}.validate-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:28px}.validate-card{position:relative;background:#fff;border:1px solid var(--line);padding:22px}.validate-number{position:absolute;right:18px;top:17px;font-size:12px;color:#9aa6af;font-weight:800}.validate-card h2{margin:0 0 6px;font-size:21px}.validate-card>p{color:var(--muted);font-size:13px;margin:0 0 18px;line-height:1.45}.validation-result{margin-top:18px}
.app-footer{min-height:56px;border-top:1px solid var(--line);background:#fff;padding:0 28px;display:flex;align-items:center;justify-content:center;gap:22px;color:#77848e;font-size:11px}.app-footer b{color:#43515c}

@media(max-width:1040px){
  .admin-layout{grid-template-columns:1fr}.admin-sidebar{position:static;min-height:0;border-right:0;border-bottom:1px solid var(--line);padding:0 0 14px}.side-nav{flex-direction:row;flex-wrap:wrap}.side-help{display:none}
  .gov-sign-layout{grid-template-columns:1fr}.sign-side{position:static}.doc-frame{height:620px}
}
@media(max-width:760px){
  .topbar{height:70px}.topbar .inner{padding:0 18px}.brand-logo{height:39px;max-width:210px}.topbar-context{display:none}.secure-context span:last-child{display:none}
  .admin-shell,.sign-shell,.home-shell,.validate-shell{padding-left:16px;padding-right:16px}.admin-shell{padding-top:20px}.page-heading,.sign-titlebar{flex-direction:column;align-items:flex-start}.new-request-btn{margin-top:0;width:100%}.metrics-strip{display:grid;grid-template-columns:repeat(3,1fr)}.metric-divider{display:none}.metric-item{padding:13px;display:flex;flex-direction:column;align-items:flex-start}.metric-item strong{font-size:21px}.form-grid,.optional-fields,.validate-grid{grid-template-columns:1fr}.full-span{grid-column:auto}.create-panel-head{padding:18px}.demo-bar{margin:14px 18px 0;align-items:flex-start;flex-direction:column}.form-grid{padding:18px}.stepper{overflow:auto}.step{min-width:128px}.step small{display:none}.step-line{min-width:24px}.doc-frame{height:520px}.sign-titlebar h1{font-size:27px}.completion-actions,.home-actions{flex-direction:column}.home-hero h1{font-size:34px}.app-footer{flex-direction:column;gap:3px;padding:13px 16px;text-align:center}.copy-field{grid-template-columns:1fr}.copy-field>*{width:100%}.result-head{flex-direction:column}
}
@media(max-width:480px){
  .brand-logo{height:34px;max-width:185px}.sign-shell{padding-top:20px}.doc-frame{height:450px}.document-toolbar{align-items:flex-start;flex-direction:column}.text-action{margin-top:-4px}.stepper{padding:10px}.step>span{width:26px;height:26px}.sign-side{gap:10px}.identity-summary,.sign-action-card,.info-strip{padding:15px}.page-heading h1{font-size:30px}.premium-table table{min-width:820px}
}
.validation-box{background:#fff;border:1px solid var(--line);padding:20px 22px}.validation-box.valid{border-left:4px solid var(--ok)}.validation-box.invalid{border-left:4px solid var(--danger)}.validation-status{font-size:11px;font-weight:850;letter-spacing:.08em;color:var(--ok)}.validation-box.invalid .validation-status{color:var(--danger)}.validation-box h2{margin:6px 0 10px;font-size:21px}.validation-box>p{color:var(--muted);margin:0}.validation-data{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.validation-data div{display:flex;flex-direction:column;gap:3px}.validation-data span{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.validation-data b{font-size:13px}.integrity-note{margin-top:16px!important;padding-top:14px;border-top:1px solid var(--line)}.hash-line{margin-top:14px;font-family:"Poppins",sans-serif;font-size:11px;color:#5d6973;word-break:break-all}@media(max-width:620px){.validation-data{grid-template-columns:1fr}}

/* V8 - assinatura com posicionamento visual */
.gov-sign-layout-wide{grid-template-columns:minmax(0,1fr) 380px}
.document-stage-enhanced{overflow:hidden}
.document-toolbar-enhanced{align-items:flex-start}
.doc-toolbar-actions{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.page-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.page-nav span{font-size:12px;color:var(--muted);font-weight:700}
.placement-bar{padding:13px 16px;border-bottom:1px solid var(--line);background:#fbfcfd}
.placement-title{display:flex;flex-direction:column;gap:3px}
.placement-title b{font-size:13px;color:#20303b}.placement-title span{font-size:12px;color:var(--muted);line-height:1.45}
.pdf-preview-wrap{padding:18px;background:#edf2f5}
.pdf-preview-shell{position:relative;width:100%;min-height:360px;display:flex;justify-content:center;align-items:flex-start}
.pdf-canvas{display:block;max-width:100%;height:auto;background:#fff;box-shadow:0 12px 28px rgba(16,35,49,.08);border:1px solid #d9e0e5}
.stamp-overlay{position:absolute;z-index:3;background:#fff;border:1px solid #8aaeb3;box-shadow:0 8px 18px rgba(10,36,46,.12);min-width:160px;touch-action:none;user-select:none;cursor:grab}
.stamp-overlay:active{cursor:grabbing}
.stamp-overlay-head{height:16px;background:#eef6f6;border-bottom:1px solid #d7e6e8;padding:3px 7px 0;font-size:6.6px;font-weight:800;letter-spacing:.08em;color:#0a5f67;line-height:1;text-transform:uppercase}
.stamp-overlay-body{display:grid;grid-template-columns:34px 1fr;gap:7px;padding:7px}
.stamp-overlay-qr{height:34px;border:1px solid #111;display:grid;place-items:center;font-size:9px;font-weight:800;color:#111;background:linear-gradient(45deg,#fff 25%,#f1f1f1 25%,#f1f1f1 50%,#fff 50%,#fff 75%,#f1f1f1 75%,#f1f1f1 100%);background-size:8px 8px}
.stamp-overlay-meta{display:flex;flex-direction:column;gap:3px;min-width:0}.stamp-overlay-meta strong{font-size:8px;line-height:1.15;color:#15212c}.stamp-overlay-meta span{font-size:6.4px;line-height:1.2;color:#53616d}.stamp-overlay-meta b{font-size:6.8px;line-height:1.15;color:#0a5f67}
.sign-side-premium .sign-action-card,.sign-side-premium .identity-summary,.sign-side-premium .info-strip{box-shadow:var(--shadow)}
.position-summary-box{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.position-summary-box strong{display:block;margin-top:2px;font-size:15px;color:#16303d}.position-summary-box small{font-size:11px;color:var(--muted);line-height:1.4;max-width:120px;text-align:right}.summary-inline-label{display:block;font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.advanced-only summary{font-size:12px}
@media(max-width:1040px){.gov-sign-layout-wide{grid-template-columns:1fr}.doc-toolbar-actions{justify-content:flex-start}.sign-side-premium{position:static}}
@media(max-width:760px){.document-toolbar-enhanced{padding:14px}.pdf-preview-wrap{padding:10px}.pdf-preview-shell{min-height:280px}.page-nav{width:100%}.page-nav button{flex:1}.placement-title b{font-size:12px}.stamp-overlay-body{grid-template-columns:30px 1fr;gap:6px;padding:6px}.stamp-overlay-qr{height:30px}.sign-titlebar h1{font-size:26px}}

/* V9 - painel desktop maior e mais confortável */
@media(min-width:1041px){
  .admin-topbar{height:92px}
  .admin-topbar .inner{max-width:1540px;padding:0 36px}
  .admin-topbar .brand-logo{height:58px;max-width:330px}
  .admin-topbar .topbar-context{font-size:15px}
  .admin-topbar .ghost-btn{min-height:48px;padding:0 18px;font-size:15px}

  .admin-shell{max-width:1540px;padding:36px;}
  .admin-layout{grid-template-columns:250px minmax(0,1fr);gap:38px}
  .admin-sidebar{padding:16px 28px 28px 0;min-height:650px}
  .sidebar-kicker{font-size:12px;margin-bottom:20px}
  .side-nav{gap:7px}
  .side-link{padding:13px 14px;font-size:15px;gap:12px}
  .side-icon{width:20px;font-size:17px}
  .side-help{margin-top:38px;padding-top:22px}
  .side-help b{font-size:15px}
  .side-help span{font-size:13px;line-height:1.55}

  .page-heading{margin-bottom:28px;align-items:center}
  .page-heading .section-overline{font-size:12px}
  .page-heading h1{font-size:42px;margin:7px 0 9px}
  .page-heading p{font-size:17px}
  .new-request-btn{margin-top:0;min-height:50px;padding:0 22px;font-size:16px}

  .metrics-strip{margin-bottom:28px}
  .metric-item{padding:20px 24px}
  .metric-item span{font-size:15px}
  .metric-item strong{font-size:31px}

  .create-panel{margin-bottom:28px}
  .create-panel-head{padding:26px 28px 22px}
  .create-panel-head h2{font-size:27px}
  .create-panel-head p{font-size:15px}
  .demo-bar{margin:20px 28px 0;padding:14px 16px;font-size:14px}
  .form-grid{gap:21px 24px;padding:26px 28px 28px}
  .field label{font-size:14px}
  .field input,.field select,.field textarea{height:50px;font-size:15px;padding-left:15px;padding-right:15px}
  .field-help{font-size:13px}
  .optional-section summary{padding:15px 16px;font-size:14px}
  .form-actions .primary-btn{min-height:50px;padding:0 22px;font-size:15px}

  .requests-panel .panel-title-row{padding:22px 24px 18px}
  .requests-panel .panel-title-row h2{font-size:25px}
  .requests-panel .panel-title-row p{font-size:14px}
  .premium-table table{min-width:1080px}
  .premium-table th{padding:14px 16px;font-size:12px}
  .premium-table td{padding:18px 16px;font-size:15px;line-height:1.45}
  .premium-table .small{font-size:13px}
  .premium-table .badge{font-size:12px;padding:6px 10px}
  .premium-table button,.premium-table .btn{min-height:41px;padding:9px 13px;font-size:13px}
  .premium-table .action-row{gap:9px}
}

.delete-btn{border-color:#e8aaa5!important;color:#a7221b!important;background:#fff!important}
.delete-btn:hover{background:#fff4f3!important;border-color:#d97b74!important}

/* YuCare Assina V20 — visual calmo, leitura clara, mobile-first */
:root{
 --bg:#f6f7f8; --surface:#fff; --text:#222426; --muted:#62666c;
 --line:#e2e4e7; --line-strong:#d4d7db; --brand:#b8892a; --brand-dark:#916916;
 --brand-soft:#fbf6e9; --blue:#292b2e; --blue-dark:#131416; --shadow:none;
}
html{scroll-behavior:smooth}
body{overflow-x:hidden}
:where(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #ba8c36;outline-offset:3px}
.primary-btn{border-radius:9px;font-weight:700;min-height:52px;padding:12px 20px;background:#25272a;font-size:15px}
.primary-btn:hover{background:#0e1012}
.ghost-btn{border-radius:9px;font-weight:600;min-height:46px;padding:10px 14px}
.topbar{height:76px}
.brand-logo,.sign-topbar .brand-logo,.admin-topbar .brand-logo{width:auto;max-width:112px;height:61px;object-fit:contain}
.topbar .inner{max-width:1380px}
.secure-context{font-size:12px;white-space:nowrap;color:#666c72;font-weight:600}
.secure-dot{background:#188258;box-shadow:none}
.section-overline,.card-step,.summary-label,.document-label,.sidebar-kicker{color:#987021;letter-spacing:.035em;font-size:11px}
.sign-shell{max-width:1340px;padding:30px 26px 44px}
.sign-titlebar{margin-bottom:18px;align-items:center}
.sign-titlebar h1{font-size:32px;line-height:1.24;letter-spacing:-.035em;font-weight:700;margin:7px 0}
.sign-titlebar p{max-width:640px;font-size:14px;line-height:1.65;color:#62666c}
.mode-pill{font-size:11px;color:#685423;border-color:#e4d5b2;background:#fdf9ef}
.gov-stepper{border:0;background:transparent;padding:0;margin:18px 0 24px;gap:10px}
.gov-stepper .step{min-width:0;flex:0 0 auto;gap:9px;color:#4e555b}
.gov-stepper .step>span{background:#fff;border:1px solid #d6d9dc;color:#30343a;width:28px;height:28px}
.gov-stepper .step b{font-size:12px;font-weight:600}
.gov-stepper .step.active>span{border-color:#b8892a;color:#9a711a;background:#fbf6e9}
.gov-stepper .step-line{background:#dce0e2;max-width:90px;min-width:20px;margin:0 8px}
.gov-sign-layout-wide{grid-template-columns:minmax(0,1fr) 350px;gap:18px}
.recipient-banner{background:#fff;border:1px solid var(--line);padding:14px 18px;margin:0 0 16px;display:flex;gap:12px;align-items:center;min-height:72px}
.recipient-banner .summary-label{display:none}
.recipient-banner .avatar-circle{height:39px;width:39px;background:#fbf4e4;color:#8b671e;border-radius:9px}
.recipient-banner .person-row strong{font-size:14px}
.recipient-banner .person-row span{font-size:12px;color:#6e7276}
.document-stage{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.document-toolbar-enhanced{padding:15px 18px;align-items:center}
.document-toolbar>div{min-width:0}
.document-toolbar strong{font-size:15px;color:#202326}
.doc-toolbar-actions{gap:10px;align-items:center}
.page-nav{display:flex;gap:10px;align-items:center}
.page-nav span{font-size:12px;font-weight:600;white-space:nowrap}
.page-nav .ghost-btn{min-height:40px;font-size:12px;padding:8px 12px}
.text-action{font-weight:600;color:#5b4c22;text-decoration:underline;text-underline-offset:3px}
.placement-bar{border-top:1px solid #eee7d8;border-bottom:1px solid #eee7d8;background:#fdfbf7;padding:12px 18px}
.placement-title b{font-size:13px;line-height:1.5;font-weight:650;color:#292926}
.placement-title span{font-size:12px;line-height:1.6;color:#6b665a}
.pdf-render-status{font-size:12px;margin-top:5px;color:#62666c}
.pdf-render-status[data-state=ready]{color:#246648}
.pdf-render-status[data-state=error]{color:#a12822}
.pdf-preview-wrap{background:#eef0f1;padding:20px;overflow:auto;scrollbar-gutter:stable}
.pdf-preview-shell{position:relative;min-height:300px;max-width:100%;margin:0 auto;display:flex;align-items:flex-start;justify-content:center}
.pdf-canvas{max-width:none!important;height:auto;background:#fff;border:0;box-shadow:0 3px 12px rgba(23,28,31,.08)}
.pdf-read-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#fff;border-top:1px solid var(--line);padding:12px 18px}
.pdf-read-actions .ghost-btn{font-size:12px;min-height:40px}
.pdf-read-actions .helper{font-size:12px;color:#75797c}
/* A moldura é só uma indicação para arrastar, NÃO entra no PDF */
.stamp-overlay{position:absolute;z-index:3;display:grid;grid-template-columns:22% minmax(0,1fr);gap:3%;min-width:0!important;min-height:0!important;max-width:none!important;padding:3px 5px!important;aspect-ratio:3.45/1!important;background:#fff!important;border:1px dashed #ae872f!important;border-radius:2px;box-shadow:0 2px 8px rgba(15,25,30,.09);overflow:hidden;touch-action:none;user-select:none;cursor:grab}
.stamp-overlay:active{cursor:grabbing}
.stamp-overlay-brand{min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.stamp-overlay-brand img{height:auto;width:auto;max-height:80%;max-width:90%;object-fit:contain}
.stamp-overlay-meta{display:flex!important;flex-direction:column!important;gap:1px!important;justify-content:center;min-width:0;overflow:hidden}
.stamp-overlay-meta span,.stamp-overlay-meta strong{display:block!important;overflow:hidden;text-overflow:clip;white-space:nowrap;max-width:100%;margin:0;line-height:1.12!important;letter-spacing:0!important;color:#222!important}
.stamp-overlay-meta span{font-size:clamp(3px,.62vw,7px)!important;font-weight:400!important}
.stamp-overlay-meta strong{font-size:clamp(4px,.72vw,8px)!important;font-weight:700!important}
#stampVerifyPreview{font-size:clamp(3px,.55vw,6.2px)!important}
.sign-side{gap:12px;position:sticky;top:16px}
.sign-side .sign-action-card,.info-strip{box-shadow:none;border-radius:10px}
.info-strip{background:#fbfaf7;border-color:#ebe0ca;border-left:3px solid #b8892a}
.sign-action-card{padding:22px}
.sign-action-card h2{font-size:21px;line-height:1.3;font-weight:650;letter-spacing:-.02em}
.sign-action-card>p{font-size:13px}
.position-summary-box{background:#fafafa}
.consent-row{grid-template-columns:23px 1fr;gap:12px;padding:16px 0}
.consent-row input{width:21px;height:21px;accent-color:#b8892a}
.consent-row b{font-size:14px;line-height:1.55;font-weight:650}
.consent-row small{font-size:12px;line-height:1.55}
.signature-optional summary{font-size:12px}
.mobile-continue{display:none}
/* O administrativo, login e validação também recebem tamanhos confortáveis. */
.field input,.field select,.field textarea{font-size:14px;min-height:49px}
@media(max-width:1050px){
 .gov-sign-layout-wide{grid-template-columns:1fr}
 .sign-side{position:static}
 .recipient-banner{margin-bottom:14px}
}
@media(max-width:760px){
 .topbar,.sign-topbar{height:64px}
 .topbar .inner{padding:0 18px}
 .brand-logo,.sign-topbar .brand-logo,.admin-topbar .brand-logo{height:54px!important;max-width:102px!important}
 .secure-context{font-size:0}
 .secure-context .secure-dot{height:10px;width:10px}
 .sign-shell{padding:20px 14px 112px!important}
 .sign-titlebar{display:block;margin:0 0 14px!important}
 .sign-titlebar h1{font-size:25px!important;line-height:1.24!important;letter-spacing:-.03em;margin:6px 0}
 .sign-titlebar p{font-size:13px!important;line-height:1.65;margin:0}
 .section-overline{font-size:10px!important}
 .mode-pill{font-size:11px;margin-top:10px;padding:6px 10px}
 .gov-stepper{display:flex;justify-content:space-between;gap:6px;margin:16px 0!important;padding:12px!important;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:visible!important}
 .gov-stepper .step{min-width:0!important;flex:0 0 auto;gap:6px!important}
 .gov-stepper .step>span{height:27px!important;width:27px!important;flex-shrink:0}
 .gov-stepper .step b{font-size:11px!important;white-space:nowrap}
 .gov-stepper .step small{display:none}
 .gov-stepper .step-line{min-width:8px!important;margin:0!important;flex:1}
 .recipient-banner{padding:13px 14px;min-height:64px;order:0}
 .recipient-banner .person-row strong{font-size:13px}
 .document-toolbar-enhanced{padding:14px!important;gap:14px!important;display:flex;flex-direction:column;align-items:stretch}
 .document-toolbar-enhanced>div{width:100%}
 .document-toolbar strong{font-size:14px!important;max-width:100%}
 .doc-toolbar-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px!important;align-items:center!important}
 .page-nav{width:auto!important;display:grid!important;grid-template-columns:40px auto 40px;gap:7px!important}
 .page-nav .ghost-btn{width:40px;min-height:42px!important;font-size:0!important;padding:6px!important;display:grid;place-items:center}
 .page-nav .ghost-btn#prevPage:after{content:'‹';font-size:25px;color:#27272a;font-weight:500;line-height:1}
 .page-nav .ghost-btn#nextPage:after{content:'›';font-size:25px;color:#27272a;font-weight:500;line-height:1}
 .page-nav span{font-size:12px!important;font-weight:600;text-align:center!important;white-space:nowrap}
 .text-action{font-size:12px!important;text-align:right;margin:0!important;max-width:130px;white-space:normal}
 .placement-bar{padding:11px 14px!important}
 .placement-title b{font-size:12px!important}
 .placement-title span{font-size:11px!important}
 .pdf-render-status{font-size:11px!important;line-height:1.5}
 .pdf-preview-wrap{padding:9px!important;scrollbar-gutter:auto}
 .pdf-preview-shell{min-height:260px!important;max-width:none;margin:0;justify-content:center}
 .pdf-canvas{max-width:none!important}
 .pdf-read-actions{padding:10px 12px;justify-content:space-between}
 .pdf-read-actions .ghost-btn{min-height:43px;font-size:12px}
 .pdf-read-actions .helper{display:none}
 .sign-side{gap:12px}
 .sign-action-card{padding:19px!important;scroll-margin-top:18px}
 .sign-action-card h2{font-size:21px!important}
 .sign-action-card>p{font-size:13px!important}
 .consent-row b{font-size:14px}
 .consent-row small{font-size:12px}
 .primary-btn,.ghost-btn{min-height:48px}
 .strong-action{min-height:54px!important;font-size:15px!important}
 .mobile-continue{position:fixed;bottom:0;left:0;right:0;z-index:20;display:flex;align-items:center;gap:12px;background:#fff;border-top:1px solid var(--line);padding:11px 16px calc(11px + env(safe-area-inset-bottom));box-shadow:0 -6px 16px rgba(0,0,0,.06)}
 .mobile-continue.hidden{display:none!important}
 .mobile-continue .primary-btn{width:100%;min-height:52px;font-size:15px}
 .app-footer{padding:14px 16px;gap:3px}
 /* Painel administrativo no celular: solicitações como blocos, sem rolagem horizontal */
 .admin-shell,.home-shell,.validate-shell{padding:18px 14px 30px}
 .admin-layout{gap:16px}
 .admin-sidebar{border:0;padding:0;min-height:0}
 .sidebar-kicker{margin-bottom:8px}
 .side-nav{display:flex;gap:8px;flex-wrap:wrap}
 .side-link{padding:10px 12px;min-height:45px;background:#fff;border:1px solid var(--line);border-radius:8px;font-size:13px}
 .page-heading h1{font-size:29px}
 .metrics-strip{border-radius:10px;overflow:hidden}
 .metric-item{padding:13px 10px}
 .metric-item span{font-size:11px;white-space:normal}
 .metric-item strong{font-size:24px}
 .new-request-btn{min-height:50px}
 .login-panel{margin:26px auto;padding:22px 18px;border-radius:10px}
 .login-panel h1{font-size:26px}
 .create-panel,.requests-panel{border-radius:10px;overflow:hidden}
 .create-panel-head{padding:17px}
 .create-panel-head h2{font-size:21px}
 .form-grid{padding:16px;gap:14px}
 .field input,.field select,.field textarea{min-height:50px;font-size:16px}
 .table-wrap{overflow:visible}
 .premium-table table{min-width:0!important;width:100%;display:block}
 .premium-table thead{display:none}
 .premium-table tbody,.premium-table tbody tr{display:block;width:100%}
 .premium-table tbody tr{padding:12px 14px;border-bottom:1px solid var(--line)}
 .premium-table tbody td{border:0;padding:5px 0;font-size:13px;display:block;width:100%;overflow-wrap:anywhere}
 .premium-table tbody td::before{display:block;font-size:10px;font-weight:700;color:#777;line-height:1.6;text-transform:uppercase;letter-spacing:.04em}
 .premium-table tbody td:nth-child(1)::before{content:'Cliente'}
 .premium-table tbody td:nth-child(2)::before{content:'Documento'}
 .premium-table tbody td:nth-child(3)::before{content:'Modo'}
 .premium-table tbody td:nth-child(4)::before{content:'Situação'}
 .premium-table tbody td:nth-child(5)::before{content:'Criado em'}
 .premium-table tbody td:nth-child(6)::before{content:'Ações'}
 .premium-table tbody tr:has(td[colspan]) td::before{display:none}
 .premium-table .row{gap:8px}
 .premium-table button,.premium-table .btn{min-height:40px;padding:9px 12px;font-size:12px}
 .validate-grid{grid-template-columns:1fr}
 .home-shell,.validate-shell{padding-top:36px}
 .home-hero h1,.validate-shell>h1{font-size:31px}
 .home-hero p,.page-intro{font-size:15px}
 .completion-panel{margin:28px auto}
 .completion-actions{flex-direction:column}
}
@media(max-width:370px){
 .sign-shell{padding-left:10px!important;padding-right:10px!important}
 .gov-stepper{padding:9px!important}
 .gov-stepper .step b{font-size:10px!important}
 .gov-stepper .step>span{height:24px!important;width:24px!important}
 .page-nav{grid-template-columns:34px auto 34px}
 .page-nav .ghost-btn{width:34px}
 .doc-toolbar-actions{gap:6px!important}
 .stamp-overlay{padding:1px 2px!important}
}

.pdf-preview-shell.is-zoomed{justify-content:flex-start!important}
@media(max-width:760px){.mobile-continue.at-form{display:none!important}}

/* Ajustes finais: menos etapas e menos blocos no smartphone */
@media(max-width:760px){
 body.sign-body{background:#fff}
 .sign-shell{padding-top:16px!important}
 .gov-stepper{display:none!important}
 .sign-titlebar{margin-bottom:16px!important}
 .sign-titlebar h1{font-size:26px!important}
 .recipient-banner{border:0;border-top:1px solid #ededed;border-bottom:1px solid #ededed;padding:13px 4px;margin-bottom:15px}
 .document-stage{border-radius:8px}
 .page-nav.single-page{display:none!important}
 .doc-toolbar-actions:has(.page-nav.single-page){display:flex!important;justify-content:flex-start}
 .text-action{text-align:left}
 #pdfRenderStatus[data-state=ready]{display:none}
 .pdf-read-actions{border-top:0;border-bottom:1px solid #e5e5e5;padding:10px 12px}
 .sign-action-card{box-shadow:none;border-radius:8px}
 .info-strip{border-left-width:2px;border-radius:8px}
}

/* V21 — remover os rótulos decorativos e deixar títulos naturais. */
.admin-sidebar{padding-top:0}
.page-heading h1{margin-top:0}
.create-panel-head h2{margin-top:0}
.sign-titlebar h1{margin-top:0}
.validate-shell>h1,.home-hero h1{margin-top:0}
.login-panel h1{margin-top:0}
.sign-action-card h2{margin-top:0}
.section-overline,.sidebar-kicker,.card-step,.document-label,.summary-label,.login-brandline{
  letter-spacing:normal!important;
  text-transform:none!important;
  font-size:13px;
  font-weight:600;
  color:var(--muted);
}
.premium-table th,.premium-table tbody td::before{
  text-transform:none!important;
  letter-spacing:normal!important;
}
.premium-table th{font-weight:600}
@media(max-width:760px){
  .admin-sidebar{padding-top:0}
  .page-heading h1{margin-top:0}
  .sign-titlebar h1{margin-top:0}
  .premium-table tbody td::before{font-size:12px!important;font-weight:600}
}

/* V22: visualização do PDF original/assinado e assinatura manuscrita */
.pdf-viewer-open{overflow:hidden}
.pdf-viewer{position:fixed;inset:0;z-index:9000;background:rgba(15,22,30,.67);display:flex;align-items:center;justify-content:center;padding:18px}
.pdf-viewer-panel{display:flex;flex-direction:column;background:#fff;width:min(1180px,100%);height:min(92dvh,1050px);min-height:390px;border-radius:12px;overflow:hidden;box-shadow:0 24px 55px rgba(0,0,0,.15)}
.pdf-viewer-head,.pdf-viewer-foot{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.pdf-viewer-head{border-bottom:1px solid #e1e5e9}.pdf-viewer-head h2{font-size:19px;margin:0 0 3px}.pdf-viewer-head p{font-size:12px;color:#66717b;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:72vw}
.pdf-viewer-panel iframe{flex:1;width:100%;border:0;background:#f0f3f5;min-height:0}
.pdf-viewer-foot{border-top:1px solid #e1e5e9;font-size:12px;color:#64707a}.pdf-viewer-status{padding:6px 20px;font-size:12px;color:#65717a}
.handwriting-overlay{position:absolute;width:76%;height:55%;left:12%;bottom:calc(100% + 4px);object-fit:contain;pointer-events:none;filter:contrast(1.1)}
.sign-draw-help{font-size:12px;line-height:1.5;color:#55616c;margin:0 0 10px}
.completion-preview{background:#fff;border:1px solid #dfe3e7;padding:16px;margin:20px 0 14px;text-align:left}
.completion-preview-heading{margin:0 0 12px;display:flex;flex-direction:column;gap:3px}.completion-preview-heading h2{font-size:20px;margin:0}.completion-preview-heading span{font-size:12px;color:#67727b}
.completion-preview iframe{display:block;width:100%;height:min(66vh,660px);min-height:350px;background:#f4f5f7;border:1px solid #dfe3e7}
.completion-preview .ghost-btn{margin-top:12px}
@media(max-width:700px){.pdf-viewer{padding:0}.pdf-viewer-panel{width:100%;height:100dvh;border-radius:0;min-height:0}.pdf-viewer-head,.pdf-viewer-foot{padding:12px}.pdf-viewer-head h2{font-size:17px}.pdf-viewer-foot span{display:none}.pdf-viewer-foot a{width:100%}.completion-preview{padding:12px}.completion-preview iframe{height:55vh;min-height:340px}}

/* Importação de CRM - layout do painel */
.admin-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.bulk-actions{gap:10px;flex-wrap:wrap}
.bulk-import-help{padding:11px 13px;background:var(--surface-soft,#f7f8f9);border:1px solid var(--line);border-radius:6px;font-size:13px;line-height:1.5;color:var(--muted)}
#bulkImportResult .notice{line-height:1.5}
#bulkImportResult p{margin:4px 0 0}
@media(max-width:760px){.admin-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.admin-actions>*{width:100%;text-align:center}.admin-actions .new-request-btn{grid-column:1/-1}.bulk-actions{display:grid;grid-template-columns:1fr}.bulk-actions button{width:100%}}

/* Importação seletiva — sem gerar links para todos os pedidos por padrão */
.bulk-selection{border-top:1px solid var(--line);padding-top:22px;margin-top:6px;min-width:0}
.bulk-selection-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px;flex-wrap:wrap}
.bulk-selection-heading h3{font-size:19px;line-height:1.3;margin:0 0 5px;color:var(--text)}
.bulk-selection-heading p{font-size:13px;color:var(--muted);line-height:1.55;margin:0;max-width:600px}
#bulkSelectedCount{border:1px solid var(--line-strong);padding:8px 12px;border-radius:7px;font-size:13px;font-weight:600;white-space:nowrap;background:var(--surface-soft)}
.bulk-selection-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.bulk-selection-toolbar>label{display:flex;flex-direction:column;gap:7px;min-width:260px;flex:1;font-size:12px;font-weight:600;max-width:480px}
.bulk-selection-toolbar input[type=search]{width:100%;min-height:42px;padding:10px 12px;border-radius:7px;border:1px solid var(--line-strong);color:var(--text);background:#fff;font-size:13px}
.bulk-selection-buttons{display:flex;gap:8px;flex-wrap:wrap}
.bulk-selection-buttons .ghost-btn{font-size:12px;min-height:42px;padding:9px 12px}
.bulk-order-list{max-height:430px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:#fff}
.bulk-customer-group+.bulk-customer-group{border-top:1px solid var(--line)}
.bulk-customer-header{padding:12px 14px;background:var(--surface-soft);display:flex;align-items:center;gap:12px;justify-content:space-between}
.bulk-customer-header label{display:flex;gap:12px;align-items:flex-start;cursor:pointer;min-width:0;flex:1}
.bulk-customer-header input[type=checkbox],.bulk-order-row input[type=checkbox]{height:17px;width:17px;accent-color:var(--brand);flex-shrink:0;margin:3px 0 0}
.bulk-customer-header b{font-size:13px;display:block;font-weight:650}
.bulk-customer-header small{display:block;color:var(--muted);font-size:11px;line-height:1.5}
.bulk-group-count{font-size:11px;color:var(--muted);white-space:nowrap}
.bulk-customer-orders{padding:2px 0}
.bulk-order-row{display:flex;align-items:flex-start;gap:12px;padding:11px 15px 11px 36px;cursor:pointer}
.bulk-order-row+.bulk-order-row{border-top:1px solid #eef1f2}
.bulk-order-row:hover{background:#f9fbfb}
.bulk-order-main{flex:1;min-width:0}
.bulk-order-main strong{display:block;font-size:12px;font-weight:600;line-height:1.45}
.bulk-order-main small{color:var(--muted);display:block;font-size:11px;line-height:1.55;overflow-wrap:anywhere}
.bulk-order-tag{font-size:11px;color:var(--muted);text-align:right}
.bulk-order-imported{opacity:.57;cursor:not-allowed}
.bulk-selected-summary{border:1px solid var(--line);background:#fff;padding:16px;margin-top:14px;border-radius:8px}
.bulk-selected-summary>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.bulk-selected-summary h4{margin:0;font-size:15px}
#bulkSelectedClients{font-size:12px;color:var(--muted)}
.bulk-selected-list{margin-top:10px;max-height:225px;overflow:auto}
.bulk-selected-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-top:1px solid #eef0f2}
.bulk-selected-row strong{font-size:12px;font-weight:600;display:block}
.bulk-selected-row small{display:block;font-size:11px;color:var(--muted);line-height:1.5}
.bulk-remove-selection{border:1px solid var(--line);border-radius:6px;padding:6px 10px;font-size:11px;background:#fff;color:var(--text);cursor:pointer}
.bulk-remove-selection:hover{border-color:var(--text)}
.bulk-no-results,.bulk-no-selection{font-size:13px;color:var(--muted);margin:0;padding:20px}
.bulk-no-selection{padding:6px 0}
@media(max-width:760px){
  .bulk-selection-heading{flex-direction:column;align-items:flex-start}
  .bulk-selection-toolbar>label{min-width:0;width:100%;max-width:none}
  .bulk-selection-buttons{width:100%}.bulk-selection-buttons .ghost-btn{flex:1;min-width:0}
  .bulk-order-row{padding:12px}.bulk-group-count{display:none}
  .bulk-order-tag{font-size:10px}
  .bulk-selected-summary{padding:12px}
}


/* Assinatura YuCare — identidade discreta, fonte nativa e sem enfeites de interface.
   Restrito à tela pública de assinatura; não altera administrativo nem selo do PDF. */
body.sign-body,
body.sign-body *,
body.sign-body *::before,
body.sign-body *::after{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
  letter-spacing:normal!important;
}
body.sign-body{color:#252a30;background:#fff}
body.sign-body .sign-titlebar h1,
body.sign-body .sign-action-card h2,
body.sign-body .recipient-banner .person-row strong,
body.sign-body #docTitle{
  font-weight:600!important;
  letter-spacing:-.015em!important;
}
body.sign-body .sign-titlebar p,
body.sign-body .sign-action-card>p{
  font-weight:400;
  color:#5e646b;
}
body.sign-body #modeBadge,
body.sign-body #quickIntro,
body.sign-body .secure-dot,
body.sign-body .recipient-banner .avatar-circle{display:none!important}
body.sign-body .secure-context{font-weight:400;font-size:12px;color:#727880}
body.sign-body .recipient-banner{min-height:0}
body.sign-body .recipient-banner .person-row{gap:0}
body.sign-body .recipient-banner .person-row strong{font-size:14px}
body.sign-body .recipient-banner .person-row span{color:#646b72}
body.sign-body .document-stage,
body.sign-body .sign-action-card{box-shadow:none!important}
body.sign-body .placement-bar{background:#fff;border-color:#e6e8eb}
body.sign-body .placement-title b{color:#333941;font-weight:600;font-size:13px}
body.sign-body .placement-title span{color:#687079}
body.sign-body .pdf-preview-wrap{background:#f1f2f3}
body.sign-body .text-action{color:#343b43!important;font-weight:500!important;text-decoration:underline;text-underline-offset:3px}
body.sign-body .sign-action-card h2{color:#292e33}
body.sign-body .position-summary-box{
  background:transparent!important;
  border:0!important;
  border-top:1px solid #e5e8eb!important;
  border-bottom:1px solid #e5e8eb!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.sign-body .summary-inline-label{
  text-transform:none!important;
  font-size:12px!important;
  font-weight:400!important;
  letter-spacing:normal!important;
  color:#707780!important;
}
body.sign-body .position-summary-box strong{color:#30363c;font-size:14px;font-weight:600!important;line-height:1.45}
body.sign-body .position-summary-box small{font-size:12px;color:#6e757c;font-weight:400}
body.sign-body .consent-row{border-color:#e5e8eb}
body.sign-body .consent-row b{font-weight:600!important;color:#292f35}
body.sign-body .consent-row small{font-weight:400;color:#667078}
body.sign-body .consent-row input{accent-color:#222b32}
body.sign-body .signature-optional summary{font-weight:500;color:#343a41}
body.sign-body .primary-btn{font-weight:600!important;letter-spacing:normal!important}
body.sign-body .completion-panel h1{font-weight:600!important}
body.sign-body .completion-code>span{letter-spacing:normal!important;text-transform:none!important}
@media(max-width:760px){
  body.sign-body .secure-context{display:none!important}
  body.sign-body .sign-shell{padding-left:16px!important;padding-right:16px!important}
  body.sign-body .sign-titlebar h1{
    font-size:23px!important;
    line-height:1.32!important;
    font-weight:600!important;
    margin:2px 0 8px!important;
  }
  body.sign-body .sign-titlebar p{font-size:14px!important;line-height:1.55!important;color:#606870}
  body.sign-body .recipient-banner{
    padding:12px 0!important;
    border-top:1px solid #e8eaec;
    border-bottom:1px solid #e8eaec;
    border-left:0;border-right:0;
    background:transparent;
  }
  body.sign-body .recipient-banner .person-row strong{font-size:14px!important}
  body.sign-body .recipient-banner .person-row span{font-size:12px}
  body.sign-body .document-stage{border-color:#e4e7ea;border-radius:6px}
  body.sign-body .document-toolbar-enhanced{padding:13px 14px!important;gap:7px!important}
  body.sign-body .document-toolbar strong{font-size:14px!important;font-weight:600!important}
  body.sign-body .placement-bar{padding:10px 14px!important}
  body.sign-body .placement-title b{font-size:12px!important}
  body.sign-body .placement-title span{font-size:12px!important;line-height:1.5}
  body.sign-body .sign-action-card{padding:16px!important;border-radius:6px;border-color:#e5e8eb}
  body.sign-body .sign-action-card h2{font-size:20px!important;line-height:1.35!important}
  body.sign-body .sign-action-card>p{font-size:13px!important;line-height:1.6}
  body.sign-body .position-summary-box{padding:13px 0!important;align-items:center}
  body.sign-body .position-summary-box strong{font-size:13px!important}
  body.sign-body .position-summary-box small{max-width:134px;font-size:11px}
  body.sign-body .consent-row b{font-size:13px!important;line-height:1.5}
  body.sign-body .consent-row small{font-size:12px!important;line-height:1.5}
  body.sign-body .mobile-continue{box-shadow:none!important}
  body.sign-body .mobile-continue .primary-btn{
    font-size:15px!important;
    min-height:51px;
    border-radius:7px;
  }
}
