@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');
:root{--navy:#071b33;--navy2:#0b294a;--blue:#1167d8;--cyan:#11a4ba;--green:#78b900;--ink:#14243a;--muted:#65758b;--line:#dfe7ef;--soft:#f4f7fb;--white:#fff;--success:#18805d;--danger:#b9382e;--shadow:0 24px 70px rgba(7,27,51,.12)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:'DM Sans',Arial,sans-serif;background:var(--soft);color:var(--ink);line-height:1.55}a{color:inherit;text-decoration:none}button,input,select{font:inherit}h1,h2,h3,strong,.price b{font-family:'Manrope',sans-serif}h1,h2,h3,p{margin-top:0}
.button,button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;background:var(--blue);color:#fff;font-weight:700;padding:11px 17px;cursor:pointer;transition:.2s;box-shadow:0 8px 18px rgba(17,103,216,.18)}.button:hover,button:hover{transform:translateY(-1px);background:#0758c0}.button-sm{padding:9px 15px}.button-lg{min-height:50px;padding:13px 22px}.button-ghost{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none}.button-outline{background:#fff;color:var(--blue);border:1px solid #b9cbe0;box-shadow:none}.button-white{background:#fff;color:var(--blue)}.full{width:100%}.text-link{font-weight:700;color:var(--blue)}.text-link.light,.light{color:#fff}
.public-brand,.app-brand{display:flex;align-items:center;gap:10px}.brand-mark{display:grid;place-items:center;width:37px;height:37px;border-radius:10px;background:linear-gradient(145deg,var(--blue),var(--cyan));color:#fff;font:800 20px 'Manrope';box-shadow:0 8px 20px rgba(17,103,216,.25)}.public-brand strong,.app-brand strong{display:block;font-size:18px;line-height:1.1}.public-brand small,.app-brand small{display:block;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}.public-brand.light small{color:#a9bed3}
.site-header{height:76px;padding:0 max(5vw,24px);display:flex;align-items:center;gap:36px;background:#fff;border-bottom:1px solid #edf1f5;position:sticky;top:0;z-index:20}.public-nav{display:flex;gap:28px;margin:auto}.public-nav a{font-size:14px;color:#43546a;font-weight:600}.header-actions{display:flex;align-items:center;gap:20px}.nav-toggle{display:none;background:none;color:var(--ink);box-shadow:none;font-size:22px;padding:6px}
.hero{min-height:690px;padding:80px max(6vw,28px) 95px;display:grid;grid-template-columns:minmax(380px,.9fr) minmax(520px,1.2fr);gap:65px;align-items:center;background:radial-gradient(circle at 80% 25%,#e2f3ff,transparent 34%),linear-gradient(180deg,#fbfdff,#f3f7fb)}.hero-copy{max-width:620px}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--blue);font-size:12px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;margin-bottom:18px}.eyebrow i{width:7px;height:7px;background:var(--green);border-radius:50%}.hero h1{font-size:clamp(43px,5vw,68px);line-height:1.04;letter-spacing:-.045em;margin-bottom:24px;color:var(--navy)}.hero h1 span{color:var(--blue)}.hero-copy>p{font-size:19px;max-width:570px;color:var(--muted)}.hero-actions{display:flex;gap:12px;margin:30px 0 22px}.hero-trust{display:flex;flex-wrap:wrap;gap:16px;font-size:12px;color:#607187}
.dashboard-preview{background:#fff;border:8px solid #fff;border-radius:20px;box-shadow:0 35px 90px rgba(11,41,74,.22);overflow:hidden;transform:perspective(1100px) rotateY(-3deg) rotateX(1deg)}.preview-bar{height:38px;background:#f1f4f7;display:flex;align-items:center;gap:6px;padding:0 12px}.preview-bar>span{width:7px;height:7px;background:#c5d0dc;border-radius:50%}.preview-bar small{margin-left:10px;color:#8391a1}.preview-body{display:flex;min-height:410px}.preview-body aside{width:58px;background:var(--navy);display:flex;flex-direction:column;align-items:center;gap:20px;padding-top:15px}.preview-body aside b{display:grid;place-items:center;width:28px;height:28px;background:var(--blue);border-radius:8px;color:#fff}.preview-body aside i{width:20px;height:3px;background:#50667c;border-radius:4px}.preview-content{flex:1;padding:24px;background:#f7f9fc}.preview-title{display:flex;justify-content:space-between;font-weight:700;margin-bottom:17px}.preview-title em{font-style:normal;background:var(--blue);color:#fff;padding:7px 10px;border-radius:6px;font-size:10px}.preview-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.preview-stats article,.preview-grid article,.preview-table{background:#fff;border:1px solid #e9edf2;border-radius:9px;padding:13px}.preview-stats small,.preview-stats u{font-size:9px;color:#718197}.preview-stats b{display:block;font-size:17px;margin:3px 0}.preview-stats u{color:var(--success);text-decoration:none}.preview-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:10px;margin-top:10px}.preview-grid article>b,.preview-table>b{font-size:11px}.bars{height:100px;display:flex;align-items:flex-end;gap:10px;padding:15px 4px 0}.bars i{flex:1;background:linear-gradient(#2b82ef,#93c4ff);border-radius:4px 4px 0 0}.bars i:nth-child(1){height:35%}.bars i:nth-child(2){height:55%}.bars i:nth-child(3){height:45%}.bars i:nth-child(4){height:80%}.bars i:nth-child(5){height:66%}.bars i:nth-child(6){height:94%}.donut{width:75px;height:75px;border-radius:50%;margin:12px auto 4px;background:conic-gradient(var(--blue) 0 74%,#e9eef4 74%);position:relative}.donut:after{content:'';position:absolute;inset:12px;border-radius:50%;background:#fff}.preview-grid article>small{display:block;text-align:center;font-size:9px}.preview-table{margin-top:10px}.preview-table span{display:flex;justify-content:space-between;font-size:9px;padding-top:8px;color:#586a7f}.preview-table em{font-style:normal;color:var(--success)}
.proof{padding:24px max(6vw,28px);background:#fff;border-block:1px solid var(--line);text-align:center}.proof>span{display:block;color:var(--muted);font-size:12px;margin-bottom:16px}.proof div{display:flex;justify-content:center;gap:clamp(25px,6vw,80px);color:#53657a;font-size:13px}.section{padding:100px max(6vw,28px)}.section-heading{text-align:center;max-width:700px;margin:0 auto 50px}.section-heading h2,.faq h2,.how-section h2,.final-cta h2{font-size:clamp(31px,4vw,47px);line-height:1.1;letter-spacing:-.035em;color:var(--navy);margin-bottom:18px}.section-heading p,.faq>div>p{color:var(--muted);font-size:17px}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:1160px;margin:auto}.feature-grid article{background:#fff;border:1px solid var(--line);border-radius:16px;padding:27px;transition:.2s}.feature-grid article:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#bad1e8}.feature-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:11px;background:#e7f2ff;color:var(--blue);font-weight:800;font-size:12px}.feature-grid h3{margin:20px 0 8px}.feature-grid p{color:var(--muted);font-size:14px;margin:0}
.how-section{padding:88px max(6vw,30px);display:grid;grid-template-columns:minmax(0,0.92fr) minmax(420px,1.08fr);gap:clamp(42px,7vw,100px);align-items:center;background:linear-gradient(135deg,var(--navy),#0c3c67);color:#fff;overflow:hidden}.how-copy{max-width:590px}.how-section h2{color:#fff}.how-copy>p{color:#b9cadb;font-size:17px;line-height:1.65}.how-highlight{margin-top:24px}.how-trust{display:flex;flex-wrap:wrap;gap:9px 18px;margin-top:18px;color:#c7d7e5;font-size:12px}.how-journey{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,1.05fr);gap:24px;align-items:center}.steps{position:relative;display:grid;gap:14px}.steps:before{content:"";position:absolute;left:21px;top:24px;bottom:24px;width:2px;background:linear-gradient(180deg,rgba(112,211,52,.95),rgba(45,143,235,.55));opacity:.75}.step-card{position:relative;z-index:1;display:flex;gap:14px;align-items:center;padding:17px 18px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:16px;backdrop-filter:blur(6px);transition:transform .2s ease,background .2s ease,border-color .2s ease,box-shadow .2s ease}.step-card:hover{transform:translateY(-2px);background:rgba(255,255,255,.10)}.step-card.is-featured{background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,.07));border-color:rgba(188,233,123,.6);box-shadow:0 14px 34px rgba(0,0,0,.16)}.step-mark{position:relative;display:grid;grid-template-columns:42px 34px;gap:7px;align-items:center;min-width:83px}.step-mark b{display:grid;place-items:center;width:42px;height:42px;background:var(--blue);border-radius:50%;box-shadow:0 7px 16px rgba(14,111,229,.28)}.step-card.is-featured .step-mark b{background:var(--green);color:#08211a;box-shadow:0 7px 16px rgba(120,185,0,.26)}.step-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:rgba(255,255,255,.10);font-size:16px}.step-card strong,.step-card small{display:block}.step-card strong{font-size:15px}.step-card small{color:#b8c9d9;margin-top:4px;line-height:1.45}.how-visual{position:relative;min-height:360px;display:grid;place-items:center}.how-visual:before,.how-visual:after{content:"";position:absolute;border-radius:50%;filter:blur(1px);pointer-events:none}.how-visual:before{width:300px;height:300px;background:radial-gradient(circle,rgba(59,157,255,.28),transparent 68%);right:8%;top:8%}.how-visual:after{width:220px;height:220px;background:radial-gradient(circle,rgba(120,185,0,.20),transparent 70%);left:8%;bottom:4%}.onboarding-window{position:relative;z-index:1;width:min(100%,540px);border:1px solid rgba(255,255,255,.16);border-radius:20px;background:rgba(248,252,255,.98);box-shadow:0 24px 70px rgba(0,0,0,.28);overflow:hidden;transform:rotate(-1.1deg)}.onboarding-top{display:grid;grid-template-columns:72px 1fr auto;gap:10px;align-items:center;padding:12px 14px;background:#eff5fa;border-bottom:1px solid #d9e6f1;color:#678096}.window-dots{display:flex;gap:5px}.window-dots i{width:8px;height:8px;border-radius:50%;background:#b9cada}.onboarding-top small{font-size:11px}.onboarding-top em{font-style:normal;font-size:11px;font-weight:800;color:#0f6fe5}.onboarding-body{display:grid;grid-template-columns:60px 1fr;min-height:295px}.onboarding-sidebar{background:linear-gradient(180deg,#082642,#0e4066);padding:14px 10px;display:grid;align-content:start;gap:11px}.onboarding-logo{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#16a7dc;color:#fff;font-weight:900;font-size:13px;margin-bottom:5px}.onboarding-sidebar span{height:8px;border-radius:5px;background:rgba(255,255,255,.22)}.onboarding-sidebar span:nth-child(3){width:85%}.onboarding-sidebar span:nth-child(4){width:70%}.onboarding-sidebar span:nth-child(5){width:92%}.onboarding-content{padding:22px 22px 18px;color:#18364f}.onboarding-heading small{display:block;font-size:9px;letter-spacing:.12em;color:#0f6fe5;font-weight:800}.onboarding-heading strong{display:block;margin-top:5px;font-size:19px;line-height:1.2}.onboarding-heading p{margin:6px 0 0;color:#688097;font-size:12px;line-height:1.45}.onboarding-progress{display:flex;align-items:center;gap:10px;margin-top:18px;padding:10px 12px;border-radius:10px;background:#f2f8fc}.onboarding-progress span{flex:1;height:8px;border-radius:99px;background:#d9e7f1;overflow:hidden}.onboarding-progress span b{display:block;width:68%;height:100%;background:linear-gradient(90deg,#0f6fe5,#7fcb3c);border-radius:inherit}.onboarding-progress strong{font-size:10px;color:#587086;white-space:nowrap}.onboarding-list{display:grid;gap:9px;margin-top:15px}.onboarding-list>div{display:flex;gap:10px;align-items:center;padding:9px 10px;border:1px solid #e1ebf2;border-radius:10px;background:#fff}.onboarding-check{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#e7f7dc;color:#3f9725;font-weight:900;font-size:12px}.onboarding-check.pending{background:#eef4fa;color:#0f6fe5}.onboarding-list b,.onboarding-list small{display:block}.onboarding-list b{font-size:11px}.onboarding-list small{margin-top:2px;color:#7690a3;font-size:9px}.onboarding-footer{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding-top:12px;border-top:1px solid #e5edf3}.onboarding-footer span{font-size:9px;color:#8195a5}.onboarding-footer strong{padding:8px 11px;border-radius:9px;background:#0f6fe5;color:#fff;font-size:10px}.how-section .how-highlight strong{color:#bce97b}.how-section .how-highlight span{color:#bfd0df}
.pricing-section{background:#fff}.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;align-items:center;max-width:1080px;margin:auto}.price-card{padding:32px;border:1px solid var(--line);border-radius:18px;background:#fff;position:relative}.price-card.featured{border:2px solid var(--blue);padding:43px 32px;box-shadow:var(--shadow)}.popular{position:absolute;top:-14px;left:50%;transform:translateX(-50%);background:var(--blue);color:#fff;border-radius:30px;padding:6px 18px;font-size:11px;font-weight:800;text-transform:uppercase;white-space:nowrap}.price-card>p{color:var(--muted);font-size:14px}.price{display:flex;align-items:flex-start;margin:24px 0}.price sup{margin-top:10px}.price b{font-size:48px;line-height:1;color:var(--navy)}.price span{align-self:flex-end;font-size:13px;color:var(--muted)}.price-card ul{padding:0;list-style:none;margin:0 0 27px}.price-card li{padding:8px 0;font-size:14px}.price-card li:before{content:'✓';color:var(--green);font-weight:800;margin-right:9px}.price-card>.button{width:100%}
.faq{display:grid;grid-template-columns:.75fr 1.25fr;gap:8vw;background:var(--soft)}.faq-list details{border-bottom:1px solid var(--line);padding:18px 0}.faq-list summary{font-weight:700;cursor:pointer;list-style:none}.faq-list summary:after{content:'+';float:right;color:var(--blue);font-size:20px}.faq-list details[open] summary:after{content:'−'}.faq-list p{color:var(--muted);font-size:14px;margin:11px 30px 0 0}.final-cta{text-align:center;background:linear-gradient(130deg,#0a5fc8,#087da0);padding:85px 25px;color:#fff}.final-cta h2{color:#fff}.final-cta p{color:#d9ecf8}.final-cta>div{display:flex;justify-content:center;align-items:center;gap:25px;margin-top:28px}.site-footer{padding:30px max(5vw,24px);display:flex;align-items:center;gap:40px;background:var(--navy);color:#c5d1dd}.site-footer .public-brand strong{color:#fff}.site-footer .public-brand small{color:#879caf}.site-footer p{font-size:12px;margin:auto}.site-footer nav{display:flex;gap:22px;font-size:13px}
/* V49.3 — Cabeçalho premium da contratação: destaca a identidade oficial da Systenova sem alterar a área do cliente. */
.plans-site-header{height:104px;padding:0 max(4vw,32px);position:relative;display:flex;align-items:center;justify-content:space-between;gap:28px;isolation:isolate;overflow:hidden;background:var(--navy);color:#fff;border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 10px 28px rgba(7,27,51,.16)}
.plans-site-header:before{content:"";position:absolute;inset:0;z-index:-3;background:radial-gradient(circle at 6% 50%,rgba(17,103,216,.20),transparent 26%),radial-gradient(circle at 92% 40%,rgba(120,185,0,.11),transparent 22%)}
.plans-site-header:after{content:"";position:absolute;right:-7%;bottom:-118px;width:58%;height:210px;border:22px solid rgba(17,103,216,.18);border-radius:50%;transform:rotate(-18deg);z-index:-2;box-shadow:0 0 28px rgba(17,103,216,.08)}
.plans-public-brand{position:relative;z-index:4;display:flex;align-items:center;min-width:0;height:100%;text-decoration:none}
.plans-site-logo{display:block;width:min(330px,38vw);height:82px;object-fit:contain;object-position:left center;filter:drop-shadow(0 5px 14px rgba(0,0,0,.30))}
.plans-client-link{position:relative;z-index:5;display:inline-flex;align-items:center;gap:8px;padding:11px 19px;border-radius:999px;background:#fff;color:var(--blue);font-size:14px;font-weight:800;text-decoration:none;box-shadow:0 8px 22px rgba(0,0,0,.18);transition:transform .2s,box-shadow .2s,background .2s}
.plans-client-link:hover{transform:translateY(-1px);background:#fff;box-shadow:0 12px 28px rgba(0,0,0,.24)}
.plans-client-link span{font-size:15px;line-height:1;color:var(--blue)}
.plans-header-orbit{position:absolute;z-index:-1;pointer-events:none;border-radius:50%;transform:rotate(-25deg);filter:blur(.1px)}
.plans-header-orbit-blue{right:10%;top:36px;width:410px;height:105px;border:12px solid rgba(17,103,216,.22);box-shadow:0 0 22px rgba(17,103,216,.08)}
.plans-header-orbit-green{right:-2%;top:-35px;width:450px;height:130px;border:14px solid rgba(120,185,0,.24);box-shadow:0 0 25px rgba(120,185,0,.07)}
.compact{justify-content:space-between}.signup-wrap{min-height:calc(100vh - 76px);display:grid;grid-template-columns:1.1fr .9fr;background:#fff}.signup-card{padding:70px clamp(35px,7vw,110px);max-width:760px}.signup-card h1{font-size:40px;line-height:1.1;color:var(--navy);margin-bottom:15px}.signup-card>p{color:var(--muted);margin-bottom:30px}.back-link{display:block;color:var(--muted);font-size:13px;margin-bottom:35px}.signup-card form{display:grid;gap:15px}.signup-card input[readonly]{background:#f3f7fb}.form-note,.demo-note{color:#8b98a8;text-align:center}.signup-benefits{padding:80px clamp(35px,6vw,90px);background:linear-gradient(145deg,var(--navy),#0b3b65);color:#fff;display:flex;flex-direction:column;justify-content:center}.signup-benefits h2{font-size:38px;line-height:1.15}.signup-benefits ul{list-style:none;padding:0;display:grid;gap:16px}.signup-benefits li{padding:14px 0;border-bottom:1px solid rgba(255,255,255,.12)}.signup-benefits li b{color:#8ecf39;margin-right:10px}.signup-benefits blockquote{margin:45px 0 0;color:#b9ccde;font-style:italic}.form-success{text-align:center;padding-top:40px}.success-icon{display:grid;place-items:center;width:65px;height:65px;background:#e4f7ef;color:var(--success);border-radius:50%;font-size:30px;margin:0 auto 20px}
.layout{display:flex;min-height:100vh}.sidebar{width:260px;background:var(--navy);color:#d8e2ec;padding:25px 16px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:30}.app-brand{padding:0 10px 25px;border-bottom:1px solid rgba(255,255,255,.1);color:#fff}.app-brand small{color:#8fa5ba}.sidebar nav{display:grid;gap:3px;margin-top:18px;overflow:auto}.nav-label{padding:17px 12px 6px;font-size:9px;color:#7890a7;letter-spacing:.14em;text-transform:uppercase;font-weight:800}.sidebar nav a,.sidebar-footer a{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:9px;font-size:13px}.sidebar nav a i,.sidebar-footer i{width:22px;text-align:center;font-style:normal;color:#89a5bf}.sidebar nav a:hover,.sidebar nav a.active{background:#123b61;color:#fff}.sidebar nav a.active{box-shadow:inset 3px 0 #2b82ef}.sidebar nav a.active i{color:#67b4ff}.sidebar-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.1);padding-top:12px}.main{margin-left:260px;flex:1;min-width:0}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 30px;position:sticky;top:0;z-index:10}.topbar-title small,.topbar-title strong,.user-area strong,.user-area small{display:block}.topbar-title small{font-size:9px;letter-spacing:.12em;color:var(--muted)}.user-area{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:12px}.user-area small{color:var(--muted)}.user-avatar{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#e4f0ff;color:var(--blue);font-weight:800}.menu-toggle{display:none;background:none;box-shadow:none;color:var(--ink);font-size:21px;padding:5px;margin-right:12px}.content{padding:30px;max-width:1500px;margin:auto}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.page-header h1{margin:0 0 4px;font-size:28px;color:var(--navy)}.page-header p{margin:0;color:var(--muted);font-size:14px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.card,.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:21px;box-shadow:0 4px 14px rgba(16,42,67,.03)}.card span{color:var(--muted);font-size:13px}.card strong{font-size:26px;display:block;margin-top:8px;color:var(--navy)}.panel{margin-bottom:18px;overflow:auto}.panel h2{font-size:18px}.flow{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.flow span{padding:12px 14px;background:#eef5fc;border:1px solid #d5e5f4;border-radius:9px;font-size:13px}.search{display:flex;gap:8px;margin-bottom:16px}.search input{max-width:600px}
input,select{width:100%;padding:12px;border:1px solid #ccd8e5;border-radius:9px;background:#fff;outline:none;transition:.2s}input:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(17,103,216,.1)}table{width:100%;border-collapse:collapse;min-width:650px}th,td{padding:13px;border-bottom:1px solid #e8edf2;text-align:left}th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em}.badge{background:#e5f6ef;color:var(--success);padding:5px 9px;border-radius:99px;font-size:11px;font-weight:700}.alert{padding:12px 15px;border-radius:9px;margin-bottom:18px}.alert.sucesso{background:#e5f6ef;color:#116149}.alert.erro{background:#fdeceb;color:#a2261c}.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}label{display:block;font-weight:700;font-size:12px;margin-bottom:6px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.system-screen-body .form-actions{position:sticky;bottom:0;z-index:12;background:linear-gradient(180deg,rgba(255,255,255,.82),#fff 34%);padding:14px 0 4px;box-shadow:0 -10px 20px rgba(15,42,68,.06)}.system-screen-body .form-actions .button,.system-screen-body .form-actions button{min-height:44px}.button.secondary{background:#69798a}
.login-page{min-height:100vh;background:#fff}.login-shell{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}.login-showcase{padding:55px clamp(35px,7vw,110px);background:radial-gradient(circle at 80% 80%,#0a6492,transparent 38%),linear-gradient(145deg,var(--navy),#0a355b);color:#fff;display:flex;flex-direction:column;justify-content:space-between}.login-showcase h1{font-size:clamp(42px,5vw,66px);line-height:1.05;margin:0 0 20px}.login-showcase p{color:#bad0e2;font-size:18px}.login-highlights{display:grid;gap:10px;color:#e2edf5;font-size:14px}.login-card{width:min(480px,calc(100% - 50px));margin:auto;padding:35px}.login-card h1{font-size:31px;color:var(--navy);margin:25px 0 8px}.login-card>p{color:var(--muted);margin-bottom:28px}.login-card form{display:grid;gap:10px}.password-row{display:flex;justify-content:space-between;margin-top:5px}.password-row a,.login-footer a{font-size:12px;color:var(--blue);font-weight:700}.login-footer{text-align:center;border-top:1px solid var(--line);margin-top:25px;padding-top:22px;font-size:13px}.demo-note{display:block;margin-top:18px;font-size:11px}.mobile-logo{display:none}
@media(max-width:1000px){.hero{grid-template-columns:1fr;padding-top:60px}.hero-copy{max-width:700px}.dashboard-preview{max-width:760px}.feature-grid{grid-template-columns:repeat(2,1fr)}.pricing-grid{gap:12px}.price-card,.price-card.featured{padding:27px 20px}.sidebar{transform:translateX(-100%);transition:.25s}.sidebar-open .sidebar{transform:translateX(0)}.main{margin-left:0}.menu-toggle{display:block}.cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.plans-site-header{height:82px;padding:0 18px}.plans-site-logo{width:min(245px,62vw);height:58px}.plans-client-link{padding:9px 12px;font-size:11px}.plans-client-link span{display:none}.plans-header-orbit-blue{right:-28%;top:12px;width:280px;height:80px;border-width:11px}.plans-header-orbit-green{right:-30%;top:-20px;width:310px;height:90px;border-width:12px}.plans-site-header:after{right:-35%;bottom:-95px;width:75%;height:170px;border-width:20px}}
@media(max-width:760px){.site-header{height:auto;min-height:67px;flex-wrap:wrap;padding:14px 20px;gap:10px}.nav-toggle{display:block;margin-left:auto}.public-nav{display:none;order:4;width:100%;margin:10px 0 0;flex-direction:column;gap:0}.public-nav.open{display:flex}.public-nav a{padding:12px 0;border-top:1px solid var(--line)}.header-actions{display:none}.hero{padding:55px 22px 70px;grid-template-columns:1fr;gap:45px}.hero h1{font-size:43px}.hero-actions,.hero-trust,.proof div,.final-cta>div{flex-direction:column;align-items:stretch}.dashboard-preview{display:none}.proof div{gap:10px}.section{padding:70px 22px}.feature-grid,.pricing-grid,.faq,.how-section,.signup-wrap,.login-shell{grid-template-columns:1fr}.pricing-grid{gap:20px}.price-card.featured{order:-1}.how-section{padding:70px 25px}.faq{gap:30px}.final-cta{padding:70px 22px}.site-footer{flex-direction:column;text-align:center}.site-footer p{margin:0}.signup-benefits{display:none}.signup-card{padding:45px 24px}.grid-2{grid-template-columns:1fr}.login-showcase{display:none}.login-card{padding:20px 0}.mobile-logo{display:flex;margin-bottom:35px}.cards{grid-template-columns:1fr}.content{padding:20px 14px}.page-header{align-items:flex-start;gap:14px}.topbar{padding:0 15px}.user-area span:last-child{display:none}}

/* Identidade Systenova e módulos administrativos */
.app-brand{padding:0 8px 22px}.app-brand img{width:48px;height:44px;object-fit:cover;object-position:left}.login-showcase{background:radial-gradient(circle at 80% 80%,#087aaa,transparent 38%),linear-gradient(145deg,#001a36,#06335c)}.login-logo img{display:block;width:min(390px,80%);height:100px;object-fit:contain;object-position:left center}.mobile-logo img{width:230px;height:72px;object-fit:contain;object-position:left}.login-button{background:linear-gradient(135deg,#78b900,#4e9700);box-shadow:0 10px 24px rgba(120,185,0,.25)}.login-button:hover{background:#579e00}.saas-link{background:linear-gradient(90deg,rgba(120,185,0,.22),rgba(17,103,216,.12));color:#fff}.page-kicker{display:block;color:var(--blue);font-size:10px;font-weight:800;letter-spacing:.13em;margin-bottom:5px}.module-stats,.saas-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.saas-metrics{grid-template-columns:repeat(5,1fr)}.card small{display:block;color:#91a0b1;font-size:11px;margin-top:5px}.status-ready{font-size:19px!important;color:var(--success)!important}.danger-card strong{color:var(--danger)}.module-empty{text-align:center;padding:65px 25px}.module-empty p{color:var(--muted);max-width:480px;margin:0 auto 22px}.empty-icon{display:grid;place-items:center;width:62px;height:62px;border-radius:18px;background:#e9f3ff;color:var(--blue);font-size:30px;margin:0 auto 18px}.admin-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.admin-shortcuts>a{display:flex;gap:14px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}.admin-shortcuts i{display:grid;place-items:center;width:43px;height:43px;background:#e8f3ff;color:var(--blue);border-radius:11px;font-style:normal;font-weight:800}.admin-shortcuts strong,.admin-shortcuts small{display:block}.admin-shortcuts small{color:var(--muted);font-size:11px}.panel-title p{color:var(--muted);font-size:13px}.plan-admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.plan-admin-card{display:grid;gap:10px}.plan-admin-head{display:flex;justify-content:space-between}.plan-dot{width:12px;height:12px;background:var(--green);border-radius:50%}.switch input{display:none}.switch span{display:block;width:42px;height:23px;background:#cbd6e1;border-radius:99px;position:relative}.switch span:after{content:'';position:absolute;top:3px;left:3px;width:17px;height:17px;background:#fff;border-radius:50%;transition:.2s}.switch input:checked+span{background:var(--green)}.switch input:checked+span:after{left:22px}.site-admin-layout{display:grid;grid-template-columns:1.4fr .6fr;gap:18px}.form-stack{display:grid;gap:14px;margin-bottom:25px}textarea{width:100%;padding:12px;border:1px solid #ccd8e5;border-radius:9px;resize:vertical;font:inherit}.admin-help{background:linear-gradient(145deg,var(--navy),#0b3b65);color:#fff}.admin-help>span{font-size:10px;letter-spacing:.12em;color:#8fce42}.admin-help li{margin:10px 0}.admin-help p{color:#b9cadb}.admin-help a{color:#9dd8ff;font-weight:700}
@media(max-width:1100px){.saas-metrics{grid-template-columns:repeat(2,1fr)}.plan-admin-grid{grid-template-columns:1fr}.site-admin-layout{grid-template-columns:1fr}.admin-shortcuts{grid-template-columns:1fr}}
@media(max-width:760px){.module-stats,.saas-metrics{grid-template-columns:1fr}.login-logo img{width:260px}}

/* Campo de senha da autenticação */
.password-input{position:relative}.password-input input{padding-right:82px}.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);padding:7px 9px;background:#edf4fb;color:var(--blue);box-shadow:none;font-size:11px}.password-toggle:hover{background:#dcecff}.login-card .alert{margin:0 0 18px}


/* Site público Systenova — identidade visual e conversão. */
.public-page{background:#f7faff;overflow-x:hidden}.public-page .site-header{backdrop-filter:blur(14px);background:rgba(255,255,255,.94)}
.site-logo{display:block;width:210px;height:58px;object-fit:contain;object-position:left center}.site-favicon-mark{display:block;width:42px;height:42px;border-radius:11px;box-shadow:0 8px 22px rgba(7,27,51,.15)}.site-logo-footer{width:220px;height:65px}.public-page .public-brand{min-width:210px}.public-page .public-brand span strong{display:block;font-size:18px;line-height:1.1}.public-page .public-brand span small{display:block;font-size:9px;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}.public-page .public-nav a{position:relative}.public-page .public-nav a:after{content:'';position:absolute;left:0;right:100%;bottom:-7px;height:2px;background:var(--blue);transition:.2s}.public-page .public-nav a:hover:after{right:0}
.hero{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(circle at 88% 28%,rgba(17,164,186,.14),transparent 28%),radial-gradient(circle at 70% 85%,rgba(120,185,0,.08),transparent 25%),linear-gradient(180deg,#fbfdff,#f1f7fc)}.hero:before{content:'';position:absolute;width:650px;height:650px;border:1px solid rgba(17,103,216,.08);border-radius:50%;right:-220px;top:-260px;box-shadow:0 0 0 90px rgba(17,103,216,.025),0 0 0 180px rgba(17,103,216,.018);z-index:-1}.hero-copy{position:relative;z-index:2}.hero h1{max-width:720px}.hero h1 strong{color:var(--blue)}.button-arrow{margin-left:9px;font-size:18px}.hero-visual{position:relative;padding:18px 8px 40px}.dashboard-preview{position:relative;z-index:2}.hero-orbit{position:absolute;border:1px solid rgba(17,103,216,.18);border-radius:50%;pointer-events:none}.orbit-one{width:570px;height:190px;right:-30px;top:160px;transform:rotate(-18deg)}.orbit-two{width:480px;height:150px;right:30px;top:230px;border-color:rgba(120,185,0,.2);transform:rotate(25deg)}.floating-card{position:absolute;z-index:4;background:rgba(255,255,255,.96);border:1px solid rgba(213,225,237,.9);border-radius:13px;padding:12px 15px;box-shadow:0 18px 45px rgba(7,27,51,.15);min-width:175px}.floating-card strong,.floating-card small{display:block}.floating-card strong{font-size:13px;color:var(--navy)}.floating-card small{font-size:10px;color:var(--muted);margin-top:2px}.floating-card-top{top:34px;right:-8px}.floating-card-bottom{bottom:7px;left:-14px}.preview-logo{display:grid;place-items:center;width:28px;height:28px;background:linear-gradient(145deg,var(--blue),var(--cyan));border-radius:8px;color:#fff;font-weight:800}
.proof{position:relative;z-index:3;padding-block:27px}.proof strong{display:inline-flex;align-items:center;gap:8px}.proof strong:before{content:'✓';display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#e9f8df;color:var(--green);font-size:10px}.benefits-section{background:#fff}.benefit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:1160px;margin:auto}.benefit-grid article{display:flex;gap:17px;padding:28px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,#fff,#f8fbfe);box-shadow:0 12px 35px rgba(7,27,51,.055);transition:.22s}.benefit-grid article:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.benefit-icon{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:13px;background:linear-gradient(145deg,#e9f3ff,#eef9e6);color:var(--blue);font-weight:900}.benefit-grid h3{margin:1px 0 7px;font-size:17px}.benefit-grid p{margin:0;color:var(--muted);font-size:14px}.resources-section{background:#f7faff}.resources-section .feature-grid article{box-shadow:0 10px 30px rgba(7,27,51,.045)}.resources-section .feature-icon{background:linear-gradient(145deg,#e8f3ff,#eff9e8)}.how-highlight{display:inline-flex;align-items:center;gap:10px;margin-top:24px;padding:10px 14px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(255,255,255,.07)}.how-highlight strong{color:#bce97b}.how-highlight span{font-size:12px;color:#bfd0df}.pricing-section{background:#fff}.price-card{transition:.2s}.price-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.price-card.featured{background:linear-gradient(180deg,#fff,#f7fbff)}.faq{background:#f4f8fc}.final-cta{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(130deg,#071b33,#0b4f75 58%,#087d70)}.final-cta-glow{position:absolute;width:520px;height:520px;border-radius:50%;background:rgba(120,185,0,.13);filter:blur(10px);right:-180px;top:-280px;z-index:-1}.final-cta h2{max-width:800px;margin-inline:auto}.final-cta>p{max-width:680px;margin-inline:auto}.site-footer{background:#041426}.site-footer nav a:hover{color:#fff}.site-footer .public-brand{min-width:220px}
@media(max-width:1100px){.hero{grid-template-columns:1fr;gap:35px}.hero-copy{max-width:800px;margin:auto}.hero-visual{max-width:850px;width:100%;margin:auto}.benefit-grid{grid-template-columns:1fr}.floating-card-top{right:0}.floating-card-bottom{left:0}}
@media(max-width:760px){.site-logo{width:175px;height:48px}.public-page .public-brand{min-width:175px}.hero{padding:50px 22px 65px}.hero h1{font-size:41px}.hero-copy>p{font-size:17px}.hero-actions{margin-top:24px}.hero-visual{padding:5px 0 20px}.dashboard-preview{transform:none}.floating-card{display:none}.hero-orbit{display:none}.benefit-grid article{padding:22px}.proof div{display:grid;grid-template-columns:1fr 1fr}.site-footer .site-logo-footer{width:190px}.site-footer .public-brand span small{color:#879caf}}

/* Cadastros operacionais */
.field-full{grid-column:1/-1}.check-field{display:flex;align-items:center;gap:10px;min-height:45px;margin-top:18px}.check-field input{width:18px;height:18px}.check-field span{font-size:13px}.row-actions{display:flex;align-items:center;gap:7px;white-space:nowrap}.row-actions form{margin:0}.button-small{padding:7px 10px;font-size:11px}.button.danger,button.danger{background:#c9382f}.button.danger:hover,button.danger:hover{background:#a92720}.badge-muted{background:#eef1f4;color:#69798a}.actions-column{width:170px}.form-panel{max-width:980px}.search .button{display:inline-flex;align-items:center}
.quick-links{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.quick-links a{padding:16px;border:1px solid var(--line);border-radius:11px;background:#f8fbfe}.quick-links strong,.quick-links small{display:block}.quick-links strong{color:var(--navy)}.quick-links small{color:var(--muted);margin-top:4px}.quick-links a:hover{border-color:#9dc7ef;background:#eef6ff}
@media(max-width:760px){.quick-links{grid-template-columns:1fr}.row-actions{align-items:stretch;flex-direction:column}.row-actions form,.row-actions button{width:100%}}

/* Painel SaaS separado do ambiente operacional das oficinas. */
.saas-layout .sidebar{background:linear-gradient(180deg,#061a32,#073a5e)}.saas-layout .topbar{border-top:3px solid var(--green)}
.saas-metrics{grid-template-columns:repeat(3,1fr)}.feature-checks{display:grid;grid-template-columns:repeat(2,1fr);gap:4px 16px}
.feature-checks .check-field{margin:0;border-bottom:1px solid var(--line)}.feature-checks small,.panel td small{display:block;color:var(--muted)}
.permission-row{display:grid;grid-template-columns:1fr 150px;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}
@media(max-width:760px){.feature-checks{grid-template-columns:1fr}.permission-row{grid-template-columns:1fr}}

/* Configuração central de e-mail do SaaS. */
.settings-fieldset{border:1px solid var(--line);border-radius:13px;padding:24px;margin:0}.settings-fieldset legend{padding:0 9px;color:var(--blue);font-size:11px;font-weight:800;letter-spacing:.08em}.settings-fieldset small{display:block;color:var(--muted);font-size:11px;margin-top:6px}.settings-fieldset .grid-2{row-gap:24px}.admin-help input{background:#fff;color:var(--ink)}
@media(max-width:760px){.settings-fieldset{padding:17px}}

/* Busca automática de veículo por placa. */
.plate-search{display:flex;gap:8px}.plate-search input{font-weight:800;letter-spacing:.12em;text-transform:uppercase}.plate-search button{white-space:nowrap}.plate-feedback{display:block;color:var(--muted);font-size:11px;margin-top:6px}.plate-feedback.carregando{color:var(--blue)}.plate-feedback.sucesso{color:var(--success)}.plate-feedback.erro{color:var(--danger)}
@media(max-width:520px){.plate-search{align-items:stretch;flex-direction:column}}

/* Fluxos multitela, itens de documentos e cadastros rápidos. */
.linked-field{display:grid;grid-template-columns:minmax(0,1fr) 38px 38px 38px;gap:6px}.mini-action{width:38px;height:38px;padding:0;align-self:center;background:#e9f3ff;color:var(--blue);box-shadow:none}.mini-action:hover{background:#d7eaff}.danger-text{color:var(--danger);background:#fdeceb}.item-adder{display:grid;grid-template-columns:minmax(300px,1fr) 120px auto;gap:10px;margin-bottom:18px}.document-items{overflow:auto}.table-input{min-width:95px;padding:8px}.empty-row{text-align:center;color:var(--muted);padding:30px}.document-totals{display:flex;justify-content:flex-end;align-items:flex-end;gap:28px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.document-totals label{width:170px}.document-totals span,.document-totals strong{display:block}.document-totals span{font-size:12px;color:var(--muted)}.document-totals strong{font-size:20px;color:var(--navy)}.document-totals .grand-total strong{font-size:28px;color:var(--blue)}.sticky-actions{position:sticky;bottom:12px;background:rgba(244,247,251,.94);padding:12px;border-radius:12px;backdrop-filter:blur(8px)}
.app-modal[hidden]{display:none}
/* V77.40: o cadastro rápido de cliente abre à frente da agenda. O diálogo nativo é suspenso enquanto o modal está aberto. */
.system-interface-v40 #modal-cliente{z-index:5000}
.system-interface-v40 #modal-cliente .modal-backdrop{z-index:0}
.system-interface-v40 #modal-cliente .modal-card{z-index:1}.app-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}.modal-backdrop{position:absolute;inset:0;background:rgba(3,17,32,.72);backdrop-filter:blur(3px)}.modal-card{position:relative;width:min(720px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:17px;box-shadow:0 30px 100px rgba(0,0,0,.28);padding:25px}.modal-wide{width:min(930px,100%)}.modal-card>header{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:22px;padding-bottom:16px}.modal-card h2{margin:0;color:var(--navy)}.modal-close{background:#eef3f8;color:var(--ink);width:38px;height:38px;padding:0;box-shadow:none;font-size:24px}.modal-feedback{color:var(--muted);margin-top:12px}.modal-feedback.erro{color:var(--danger)}.modal-open{overflow:hidden}
.print-body{background:#e9eef4;padding:25px}.print-toolbar{max-width:960px;margin:0 auto 15px;display:flex;justify-content:flex-end;gap:8px}.print-document{max-width:960px;min-height:1120px;margin:auto;background:#fff;padding:45px;box-shadow:0 12px 45px rgba(0,0,0,.12)}.print-header{display:flex;justify-content:space-between;padding-bottom:22px;border-bottom:3px solid var(--navy)}.print-brand{font:800 30px Manrope;color:var(--navy)}.print-brand span{color:var(--green)}.print-header small{font-size:9px;letter-spacing:.14em}.print-company{text-align:right;display:grid;font-size:12px}.print-title{display:flex;gap:30px;align-items:flex-end;padding:24px 0}.print-title>div:first-child{margin-right:auto}.print-title span,.print-title small{display:block;color:var(--muted);font-size:10px}.print-title h1{margin:3px 0 0}.print-title strong{font-size:13px}.print-info{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:24px}.print-info article{border:1px solid var(--line);border-radius:10px;padding:16px;display:grid;font-size:12px}.print-info h2,.print-bottom h2{font-size:11px;text-transform:uppercase;color:var(--blue)}.print-table{min-width:0}.print-table th,.print-table td{font-size:11px;padding:10px}.print-bottom{display:grid;grid-template-columns:1fr 280px;gap:25px;margin-top:25px}.print-bottom p{font-size:12px}.print-totals{display:grid;align-content:start}.print-totals span{display:flex;justify-content:space-between;padding:7px;border-bottom:1px solid var(--line);font-size:12px}.print-totals .print-grand{font-size:15px;background:var(--navy);color:#fff;border-radius:7px;margin-top:7px}.print-signatures{display:grid;grid-template-columns:1fr 1fr;gap:60px;margin-top:90px}.print-signatures div{border-top:1px solid #445;text-align:center;padding-top:7px;font-size:11px}
@media(max-width:760px){.linked-field{grid-template-columns:minmax(0,1fr) repeat(3,36px)}.item-adder{grid-template-columns:1fr}.document-totals{align-items:stretch;flex-direction:column}.document-totals label{width:100%}.modal-card{padding:18px}.print-body{padding:0}.print-document{padding:22px}.print-info,.print-bottom{grid-template-columns:1fr}}
@media print{.print-toolbar{display:none}.print-body{background:#fff;padding:0}.print-document{box-shadow:none;max-width:none;min-height:0;padding:12mm}.print-table{page-break-inside:auto}.print-table tr{page-break-inside:avoid}.print-bottom{page-break-inside:avoid}@page{size:A4;margin:8mm}}

/* Cadastro combinado cliente + veículo e gestão dos vínculos na mesma tela. */
.linked-create{margin-top:24px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#f8fbff}.linked-create summary{cursor:pointer;font-weight:800;color:var(--blue)}.linked-create>p{color:var(--muted);margin:8px 0 14px}.linked-create-fields{margin-top:16px;transition:opacity .2s}.linked-create-fields.is-disabled{opacity:.45}.linked-records-panel{margin-top:20px}.linked-record-selector{max-width:760px}.linked-record-selector select{min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.panel-heading h2{margin:4px 0}.panel-heading p{margin:0;color:var(--muted)}
@media(max-width:760px){.panel-heading{align-items:stretch;flex-direction:column}.linked-record-selector{display:grid;grid-template-columns:minmax(0,1fr) auto auto}}

/* V06 — navegação inspirada em sistemas operacionais de oficina. */
.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}.app-icon,.nav-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.layout{background:#f5f8fb}.sidebar{width:232px;padding:0 0 16px;background:#252b3d;color:#e8edf5;box-shadow:4px 0 20px rgba(12,20,38,.08)}.app-brand{height:63px;padding:8px 24px;border-bottom:1px solid rgba(255,255,255,.16);justify-content:center}.app-brand img{width:158px;height:44px;object-fit:contain;object-position:center}.sidebar nav{display:block;margin:14px 0 0;padding:0 10px}.nav-label{display:block;padding:19px 12px 7px;color:#78849d}.sidebar nav>a,.nav-group-toggle,.sidebar-footer a{width:100%;min-height:40px;border-radius:7px;padding:9px 11px;display:flex;align-items:center;gap:11px;color:#f3f6fb;font-size:14px;font-weight:600;background:transparent;box-shadow:none;text-align:left}.sidebar nav>a:hover,.sidebar nav>a.active,.nav-group-toggle:hover,.nav-group.open>.nav-group-toggle{background:#323a52;color:#fff;transform:none}.sidebar nav>a.active{box-shadow:inset 3px 0 #55c2df}.sidebar nav>a.active .app-icon{color:#58c3df}.nav-group-toggle span{flex:1}.nav-group-toggle .chevron{width:15px;height:15px;transition:transform .2s}.nav-group.open .chevron{transform:rotate(90deg)}.nav-submenu{display:grid;grid-template-rows:0fr;transition:grid-template-rows .22s}.nav-submenu:before{content:'';position:absolute}.nav-submenu>*{overflow:hidden}.nav-group.open .nav-submenu{grid-template-rows:1fr}.nav-submenu{position:relative}.nav-submenu a{display:flex;align-items:center;gap:9px;margin-left:17px;padding:8px 10px 8px 16px;border-left:1px solid #4c5871;color:#c9d2e1;font-size:13px}.nav-submenu a:hover,.nav-submenu a.active{color:#67c7e2;background:rgba(92,196,226,.08)}.nav-submenu .app-icon{width:15px;height:15px}.sidebar-footer{padding:12px 10px 0}.sidebar-footer a{color:#b9c4d5}.main{margin-left:232px}.topbar{height:63px;padding:0 18px 0 28px;background:#252b3d;border:0;color:#fff;gap:18px}.topbar-greeting{display:flex;gap:4px;align-items:center;white-space:nowrap;color:#abb4c7;font-size:14px}.topbar-greeting strong{color:#fff}.topbar-searches{display:flex;gap:10px;margin-left:auto}.quick-search{display:flex;height:36px}.quick-search input{width:135px;border:0;border-radius:5px 0 0 5px;padding:8px 10px;background:#fff;color:#263148;font-size:12px}.quick-search button{width:38px;border-radius:0 5px 5px 0;padding:0;background:#1183ed;box-shadow:none}.quick-search .app-icon{width:17px}.topbar-actions{display:flex;align-items:center;gap:3px}.top-icon{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:7px;background:transparent;color:#f5f7fb;box-shadow:none}.top-icon:hover{background:#353d55;transform:none}.top-icon .app-icon{width:20px}.user-area{margin-left:0;padding-left:9px;border-left:1px solid #434b61}.user-avatar{border-radius:50%;background:linear-gradient(145deg,#e9f3ff,#cce4ff)}.user-area strong{color:#fff}.user-area small{color:#9faac0}.content{padding:27px 20px 35px;max-width:1600px}.page-header.compact-header{margin-bottom:16px}.button-with-icon{gap:7px;background:#50b8d4}.button-with-icon:hover{background:#2da7c7}.list-toolbar{display:flex;justify-content:flex-end;margin-bottom:12px}.search-compact{position:relative;margin:0;width:min(430px,100%)}.search-compact .field-icon{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:17px;height:17px;fill:none;stroke:#e34e75;stroke-width:2}.search-compact input{max-width:none;padding-left:40px;border-color:#59bce0}.data-panel{padding:18px}.table-wrap{overflow:auto}.data-table{min-width:790px}.data-table th{background:#303030;color:#fff;border:0;text-transform:none;font-size:12px}.data-table td{padding:10px;border-color:#e4eaf1}.person-cell{display:flex;align-items:center;gap:9px}.person-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#e1f3f7;color:#1394ad;font-weight:800}.badge-info{background:#d8f1ee;color:#15a394}.status-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:99px;font-size:11px;font-weight:800}.status-pill:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.status-pill.is-active{color:#1a9a70;background:#e2f5ed}.status-pill.is-inactive{color:#a26565;background:#f6e8e8}.icon-actions{display:flex;align-items:center;gap:5px}.icon-actions form{margin:0}.icon-button{display:grid;place-items:center;width:31px;height:31px;padding:0;border-radius:5px;box-shadow:none;border:1px solid transparent}.icon-button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.icon-button.edit{background:#d8f3f7;color:#18a3c4;border-color:#aee4ed}.icon-button.disable{background:#ffe3e6;color:#e24954;border-color:#ffc3c8}.icon-button:hover{transform:none;filter:brightness(.95)}.table-empty{text-align:center;padding:35px;color:var(--muted)}.form-panel small{display:block;margin-top:6px;color:var(--muted);font-size:11px}
[data-theme="escuro"]{--soft:#151927;--ink:#edf2f8;--muted:#a5afbf;--line:#384154;--white:#202636;--navy:#f0f5fb}[data-theme="escuro"] body,[data-theme="escuro"] .layout{background:#151927;color:#edf2f8}[data-theme="escuro"] .card,[data-theme="escuro"] .panel,[data-theme="escuro"] .modal-card,[data-theme="escuro"] .button-ghost,[data-theme="escuro"] .button-outline{background:#202636;color:#edf2f8;border-color:#384154}[data-theme="escuro"] input,[data-theme="escuro"] select,[data-theme="escuro"] textarea{background:#171c28;color:#edf2f8;border-color:#465167}[data-theme="escuro"] .data-table td{border-color:#343d4f}[data-theme="escuro"] .data-table th{background:#111521}
@media(max-width:1120px){.topbar-searches{display:none}.topbar-greeting{margin-right:auto}}
@media(max-width:900px){.sidebar{transform:translateX(-100%);transition:transform .25s}.sidebar-open .sidebar{transform:translateX(0)}.sidebar-open:after{content:'';position:fixed;inset:0;background:rgba(5,12,24,.55);z-index:20}.sidebar-open .sidebar{z-index:30}.main{margin-left:0}.menu-toggle{display:grid;place-items:center;width:36px;height:36px;padding:0}.topbar{padding:0 14px}.content{padding:20px 14px}.page-header{align-items:flex-start;flex-direction:column}.page-header>.button{width:100%}}
@media(max-width:600px){.topbar-actions{display:none}.topbar-greeting span{display:none}.user-area span:last-child{display:none}.data-panel{padding:8px}.search-compact{width:100%}.search-compact button{padding:8px 12px}}
.nav-submenu{display:none;grid-template-rows:none}.nav-group.open .nav-submenu{display:block}.icon-button.view{background:#fff0d9;color:#e39219;border-color:#ffd699}.plate-badge{display:inline-block;padding:4px 9px;border-radius:5px;background:#edf4fc;color:#245a92;letter-spacing:.08em}
.dashboard-cards .card{min-width:0}.metric-card{display:flex;align-items:center;gap:15px}.metric-card>div{min-width:0}.metric-card strong{font-size:22px;white-space:nowrap}.metric-icon{display:grid!important;place-items:center;width:48px;height:48px;border-radius:13px;flex:0 0 auto}.metric-icon svg,.workflow svg,.modern-links svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.metric-icon.blue{background:#e4efff;color:#176bd5}.metric-icon.cyan{background:#def5f7;color:#149cb0}.metric-icon.orange{background:#fff0df;color:#e48621}.metric-icon.green{background:#e9f6df;color:#68a80d}.workflow{display:flex;align-items:center;gap:12px;overflow:auto;padding:4px}.workflow a{min-width:135px;display:flex;align-items:center;gap:9px;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:#f8fbfe;font-weight:700;color:var(--navy)}.workflow i{font-style:normal;color:#9aa8b8}.modern-links a{display:flex;align-items:center;gap:12px}.modern-links svg{width:25px;height:25px;color:var(--blue);flex:0 0 auto}@media(max-width:760px){.workflow i{display:none}.workflow{display:grid;grid-template-columns:1fr 1fr}.workflow a{min-width:0}.dashboard-cards{grid-template-columns:1fr}}

/* V07 — Painel SaaS isolado e acesso técnico às empresas clientes. */
.saas-layout .saas-sidebar{width:248px;padding:0 0 18px;background:linear-gradient(180deg,#061a32 0%,#083c60 100%)}
.saas-layout .saas-brand{height:74px;padding:9px 22px;justify-content:center;border-bottom:1px solid rgba(255,255,255,.13)}
.saas-layout .saas-brand img{display:block;width:184px;height:54px;object-fit:contain;object-position:center}
.saas-layout .saas-sidebar nav{margin-top:10px;padding:0 12px;flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(101,197,226,.55) transparent}
.saas-layout .saas-sidebar nav>a{min-height:42px;padding:9px 12px;border-radius:8px}
.saas-layout .saas-sidebar nav>a i,.saas-layout .sidebar-footer i{display:grid;place-items:center;width:21px;min-width:21px;height:21px;font-size:13px;font-style:normal;color:#65c5e2}
.saas-layout .saas-sidebar nav>a.active{background:rgba(255,255,255,.13);box-shadow:inset 3px 0 #62c9e5;color:#fff}
.saas-layout .saas-main{margin-left:248px}
.saas-layout .saas-topbar{height:74px;padding:0 24px;background:#fff;color:var(--ink);border:0;border-top:3px solid var(--green);border-bottom:1px solid var(--line);gap:16px}
.saas-layout .saas-topbar .menu-toggle{color:var(--navy);background:#edf4fb;box-shadow:none}
.saas-layout .topbar-title{display:grid;gap:2px;min-width:0}
.saas-layout .topbar-title small{color:#6f8093;font-size:9px;font-weight:800;letter-spacing:.12em}
.saas-layout .topbar-title strong{color:var(--navy);font-size:15px;white-space:nowrap}
.saas-layout .saas-user-area{margin-left:auto;padding-left:20px;border-left:1px solid var(--line)}
.saas-layout .saas-user-area strong{color:var(--navy)}
.saas-layout .saas-user-area small{color:var(--muted)}
.saas-layout .saas-content{max-width:none;padding:28px 28px 40px}
.support-hint{display:flex;align-items:center;gap:12px;margin:-4px 0 18px;padding:12px 14px;border:1px solid #bfdaf4;border-radius:10px;background:#edf6ff;color:#345f88;font-size:12px}
.support-hint strong{color:#0c5fae;white-space:nowrap}
.company-access-form{margin:0}
.company-access{display:flex;width:100%;min-width:190px;align-items:center;justify-content:space-between;gap:14px;padding:7px 9px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);text-align:left;box-shadow:none}
.company-access span,.company-disabled{display:grid;gap:2px}
.company-access strong,.company-disabled strong{color:var(--navy);font-size:13px}
.company-access small,.company-disabled small{color:var(--muted);font-size:11px}
.company-access b,.company-disabled b{color:var(--blue);font-size:10px;white-space:nowrap;opacity:0;transition:opacity .18s}
.company-access:hover{background:#edf6ff;border-color:#bad9f5;transform:none}
.company-access:hover b{opacity:1}
.company-disabled b{color:var(--danger);opacity:1}
.support-mode-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:11px 20px;background:linear-gradient(90deg,#fff5d7,#fffaf0);border-bottom:1px solid #ead28a;color:#684e0d}
.support-mode-bar>div{display:flex;align-items:center;gap:11px;min-width:0}
.support-mode-bar strong,.support-mode-bar small{display:block}
.support-mode-bar strong{font-size:13px;color:#594000}
.support-mode-bar small{margin-top:2px;color:#7f692f;font-size:11px}
.support-mode-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#ffe6a2}
.support-mode-bar form{margin:0;flex:0 0 auto}
.support-mode-bar button{padding:9px 13px;background:#0d64b5;font-size:11px;box-shadow:none}
.support-mode-bar button:hover{background:#084e91;transform:none}
@media(max-width:900px){.saas-layout .saas-main{margin-left:0}.saas-layout .saas-content{padding:22px 15px 35px}.saas-layout .saas-sidebar{transform:translateX(-100%)}.sidebar-open .saas-layout .saas-sidebar{transform:translateX(0)}}
@media(max-width:650px){.saas-layout .saas-user-area span:last-child{display:none}.saas-layout .saas-user-area{padding-left:8px}.support-hint{align-items:flex-start;flex-direction:column;gap:3px}.support-mode-bar{align-items:stretch;flex-direction:column}.support-mode-bar form,.support-mode-bar button{width:100%}.company-access b{display:none}}

/* V08 — formulários de Pessoas abertos sobre a listagem. */
.people-modal{z-index:140;padding:18px}.people-modal-card{width:min(1140px,100%);max-height:calc(100vh - 36px);padding:0;border-radius:13px;overflow:auto}.people-modal-card>.people-modal-header{position:sticky;top:0;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;margin:0;padding:17px 20px;background:linear-gradient(135deg,#55b7d3,#42a5c4);border:0;color:#fff}.people-modal-header h2{margin:3px 0 2px;color:#fff;font-size:20px}.people-modal-header p{margin:0;color:#eafaff;font-size:12px}.people-modal-header .page-kicker{color:#e6fbff}.people-modal-header .modal-close{background:transparent;color:#fff;font-size:27px}.people-modal-header .modal-close:hover{background:rgba(255,255,255,.14)}.people-modal-card>form{padding:20px}.person-fieldset{margin:0 0 18px;padding:15px 16px 18px;border:1px solid var(--line);border-radius:11px;background:#fff}.person-fieldset legend{padding:0 8px;color:var(--blue);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.person-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 18px}.person-form-grid label{display:flex;align-items:center;justify-content:space-between;gap:8px}.person-form-grid label em{color:#e43f55;font-size:9px;font-style:normal;font-weight:700}.person-form-grid small{display:block;margin-top:5px;color:var(--muted);font-size:10px}.person-field-wide{grid-column:1/-1}.person-check-field{justify-content:flex-start!important;margin-top:20px}.document-modal-field{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:7px}.document-search-button{width:42px;height:42px;background:#55b7d3;color:#fff}.people-modal-actions{position:sticky;bottom:-20px;z-index:2;display:flex;justify-content:flex-end;gap:10px;margin:20px -20px -20px;padding:16px 20px;background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(8px)}.people-modal-actions button{min-width:125px}.people-modal-actions .button-ghost{background:#eef3f8;color:var(--ink)}.people-modal .modal-feedback{min-height:20px;margin:2px 0;color:var(--muted)}.people-modal .modal-feedback.carregando{color:var(--blue)}.people-modal .modal-feedback.sucesso{color:var(--success)}.people-modal .modal-feedback.erro{color:var(--danger)}.user-modal-card{width:min(920px,100%)}
[data-theme="escuro"] .person-fieldset,[data-theme="escuro"] .people-modal-actions{background:#202636}[data-theme="escuro"] .people-modal-actions .button-ghost{background:#30384a;color:#fff}
@media(max-width:850px){.person-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.people-modal{padding:0}.people-modal-card{max-height:100vh;height:100vh;border-radius:0}.people-modal-card>form{padding:14px}.person-form-grid{grid-template-columns:1fr}.person-field-wide{grid-column:auto}.people-modal-actions{bottom:-14px;margin:16px -14px -14px;padding:13px 14px}.people-modal-actions button{min-width:0;flex:1}}

/* V09 — a área da oficina usa a mesma identidade visual do Painel SaaS. */
.office-layout{--office-navy:#061a32;--office-navy-light:#083c60;--office-blue:#0f6fe5;--office-cyan:#62c9e5;--office-green:#78b900;background:#f4f8fc}
.office-layout .sidebar{width:248px;padding:0 0 18px;background:linear-gradient(180deg,var(--office-navy) 0%,var(--office-navy-light) 100%);color:#eef7ff;box-shadow:4px 0 22px rgba(6,26,50,.12)}
.office-layout .app-brand{height:74px;padding:9px 22px;justify-content:center;border-bottom:1px solid rgba(255,255,255,.13)}
.office-layout .app-brand img{display:block;width:184px;height:54px;object-fit:contain;object-position:center}
.office-layout .sidebar nav{margin-top:10px;padding:0 12px}
.office-layout .nav-label{padding:18px 12px 7px;color:#7fa3c0}
.office-layout .sidebar nav>a,.office-layout .nav-group-toggle,.office-layout .sidebar-footer a{min-height:42px;padding:9px 12px;border-radius:8px;color:#edf6ff}
.office-layout .sidebar nav>a .app-icon,.office-layout .nav-group-toggle .app-icon,.office-layout .sidebar-footer .app-icon{color:#65c5e2}
.office-layout .sidebar nav>a:hover,.office-layout .sidebar nav>a.active,.office-layout .nav-group-toggle:hover,.office-layout .nav-group.open>.nav-group-toggle{background:rgba(255,255,255,.12);color:#fff}
.office-layout .sidebar nav>a.active{box-shadow:inset 3px 0 var(--office-cyan)}
.office-layout .nav-submenu a{border-left-color:#2f6a8c;color:#c8deee}
.office-layout .nav-submenu a:hover,.office-layout .nav-submenu a.active{color:#7bd9ef;background:rgba(98,201,229,.09)}
.office-layout .sidebar-footer{border-top-color:rgba(255,255,255,.12)}
.office-layout .main{margin-left:248px}
.office-layout .topbar{height:74px;padding:0 24px;background:#fff;color:var(--ink);border:0;border-top:3px solid var(--office-green);border-bottom:1px solid var(--line);gap:16px;box-shadow:0 3px 12px rgba(10,43,75,.025)}
.office-layout .menu-toggle{color:#0b294a;background:#edf4fb;box-shadow:none}
.office-layout .topbar-greeting{color:#6f8093}
.office-layout .topbar-greeting strong{color:#071b33}
.office-layout .topbar-searches{gap:12px}
.office-layout .quick-search{height:38px;border:1px solid #c9d9e8;border-radius:8px;overflow:hidden;background:#fff}
.office-layout .quick-search input{width:145px;border:0;border-radius:0;background:#fff;color:#20344c}
.office-layout .quick-search button{width:40px;border-radius:0;background:var(--office-blue)}
.office-layout .quick-search button:hover{background:#075dc7;transform:none}
.office-layout .top-icon{color:#184e82}
.office-layout .top-icon:hover{background:#eaf3fc;color:var(--office-blue)}
.office-layout .user-area{padding-left:18px;border-left:1px solid var(--line)}
.office-layout .user-area strong{color:#071b33}
.office-layout .user-area small{color:#6f8093}
.office-layout .user-avatar{background:linear-gradient(145deg,#e9f3ff,#cce4ff);color:var(--office-blue)}
.office-layout .content{max-width:none;padding:28px 28px 40px}
.office-layout .page-kicker{color:var(--office-blue)}
.office-layout .page-header h1{color:#071b33}
.office-layout .card,.office-layout .panel{border-color:#d8e3ef;box-shadow:0 5px 18px rgba(11,41,74,.045)}
.office-layout .button-with-icon{background:var(--office-blue);box-shadow:0 9px 20px rgba(15,111,229,.2)}
.office-layout .button-with-icon:hover{background:#075dc7}
.office-layout .search-compact .field-icon{stroke:var(--office-blue)}
.office-layout .search-compact input{border-color:#b9d6f5}
.office-layout .search-compact input:focus{border-color:var(--office-blue)}
.office-layout .data-panel{border-radius:14px}
.office-layout .data-table th{padding:13px 12px;background:#f7faff;color:#536a84;border-bottom:1px solid #dbe6f0;text-transform:uppercase;font-size:10px;letter-spacing:.06em}
.office-layout .data-table td{padding:12px;border-color:#e5edf5}
.office-layout .data-table tbody tr:hover{background:#f5faff}
.office-layout .person-avatar{background:#e4f3ff;color:#0d6bcf}
.office-layout .badge-info{background:#e0f5f3;color:#108d83}
.office-layout .icon-button.edit{background:#e5f5ff;color:#0878c9;border-color:#b9e2f7}
.office-layout .workflow a,.office-layout .linked-create{background:#f8fbff;border-color:#d8e6f2}
.office-layout .people-modal-card>.people-modal-header{background:linear-gradient(135deg,#0b294a 0%,#0f6fe5 100%);border-top:3px solid var(--office-green)}
.office-layout .person-fieldset{border-color:#d8e3ef;background:#fbfdff}
.office-layout .person-fieldset legend{color:var(--office-blue)}
.office-layout .document-search-button{background:var(--office-blue)}

[data-theme="escuro"] .office-layout{background:#151927}
[data-theme="escuro"] .office-layout .topbar{background:#202636;color:#edf2f8;border-bottom-color:#384154}
[data-theme="escuro"] .office-layout .topbar-greeting,[data-theme="escuro"] .office-layout .user-area small{color:#a5afbf}
[data-theme="escuro"] .office-layout .topbar-greeting strong,[data-theme="escuro"] .office-layout .user-area strong{color:#f0f5fb}
[data-theme="escuro"] .office-layout .page-header h1{color:#f0f5fb}
[data-theme="escuro"] .office-layout .top-icon{color:#d5e7f8}
[data-theme="escuro"] .office-layout .quick-search{border-color:#465167;background:#171c28}
[data-theme="escuro"] .office-layout .quick-search input{background:#171c28;color:#edf2f8}
[data-theme="escuro"] .office-layout .data-table th{background:#111521;color:#b9c5d5;border-color:#343d4f}
[data-theme="escuro"] .office-layout .data-table tbody tr:hover{background:#252c3c}
[data-theme="escuro"] .office-layout .person-fieldset{background:#202636;border-color:#384154}

@media(max-width:900px){.office-layout .main{margin-left:0}.office-layout .content{padding:22px 15px 35px}.office-layout .sidebar{transform:translateX(-100%)}.sidebar-open .office-layout .sidebar{transform:translateX(0)}}
@media(max-width:650px){.office-layout .topbar{padding:0 14px}.office-layout .user-area{padding-left:8px}.office-layout .content{padding:18px 12px 30px}}
/* Itens vinculados de compras, vendas e checklists. */
.module-items{margin-top:28px;padding-top:24px;border-top:1px solid var(--border,#dbe4ef)}
.purchase-linked-field .linked-field{grid-template-columns:minmax(0,1fr) 40px;align-items:end}.purchase-linked-field .mini-action{display:grid;place-items:center;text-decoration:none;font-size:20px;font-weight:800;border:1px solid var(--line);border-radius:9px}.purchase-linked-field small{display:block;margin-top:5px;color:var(--muted);font-size:10px}.purchase-collapsible{margin-top:14px;border:1px solid var(--line);border-radius:12px;background:#f9fbfd;overflow:hidden}.purchase-collapsible>summary{display:grid;grid-template-columns:minmax(0,1fr) auto 28px;gap:10px;align-items:center;padding:13px 15px;cursor:pointer;list-style:none}.purchase-collapsible>summary::-webkit-details-marker{display:none}.purchase-collapsible>summary span{font-weight:800;color:var(--navy);font-size:12px}.purchase-collapsible>summary small{color:var(--muted);font-size:10px}.purchase-collapsible>summary b{display:grid;width:28px;height:28px;place-items:center;border-radius:8px;background:#eaf3fb;color:var(--blue);font-size:18px}.purchase-collapsible[open]>summary{border-bottom:1px solid var(--line);background:#fff}.purchase-collapsible[open]>summary b{transform:rotate(45deg)}.purchase-collapsible-body{padding:14px}.purchase-invoice-grid .check-field{margin-top:18px}.module-items-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.module-items .panel-heading p{margin:5px 0 0;color:#6b7f95;font-size:.84rem}@media(max-width:720px){.module-items-actions{width:100%}.module-items-actions .button{flex:1}}

.module-item-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr)) auto auto;gap:12px;align-items:end;padding:16px;margin:10px 0;border:1px solid #dce6f1;border-radius:14px;background:#f8fbff}
.module-item-field label,.module-item-total span{display:block;margin-bottom:6px;font-size:.78rem;font-weight:700;color:#52657b}
.module-item-total{min-width:110px;padding:0 8px 10px}.module-item-total strong{color:#0a3153;white-space:nowrap}
.module-item-remove{margin-bottom:7px}
@media(max-width:720px){.module-item-row{grid-template-columns:1fr}.module-item-remove{width:100%}}

/* V14 — experiência administrativa do Painel SaaS. */
.saas-layout{
    --saas-sidebar:268px;
    --saas-navy:#061a32;
    --saas-navy-light:#0a4167;
    --saas-blue:#0f6fe5;
    --saas-cyan:#62c9e5;
    --saas-green:#78b900;
    --saas-surface:#ffffff;
    --saas-page:#f4f8fc;
    background:var(--saas-page);
}

/* V33 — administração clara da base semântica e fontes do assistente. */
.system-interface-v33 .ai-documents-panel{margin-top:18px}
.system-interface-v33 .ai-document-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end;margin:18px 0}
.system-interface-v33 .ai-document-upload{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;margin:0}
.system-interface-v33 .ai-document-upload label{display:grid;gap:7px;margin:0;color:var(--texto,#102b45);font-weight:700}
.system-interface-v33 .ai-document-upload small{color:var(--texto-suave,#687d91);font-weight:400}
.system-interface-v33 .ai-sync-actions{display:flex;align-items:center;gap:9px}
.system-interface-v33 .ai-sync-actions form,.system-interface-v33 .ai-documents-panel td form{margin:0}
.system-interface-v33 .ai-privacy-note{margin:0 0 18px;padding:12px 14px;border:1px solid #b9d9f7;border-left:4px solid #0873d9;border-radius:9px;background:#eef7ff;color:#365a78;font-size:12px}
.system-interface-v33 .ai-message-sources{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px;padding-top:9px;border-top:1px solid #dce6ef;color:#61768a;font-size:10px}
.system-interface-v33 .ai-message-sources strong{width:100%;color:#36546d}
.system-interface-v33 .ai-message-sources span{padding:3px 7px;border-radius:999px;background:#edf5fb}
[data-theme="escuro"] .system-interface-v33 .ai-privacy-note{border-color:#315d82;background:#1b344a;color:#c7d9e8}
[data-theme="escuro"] .system-interface-v33 .ai-message-sources span{background:#20384c}
@media(max-width:900px){
    .system-interface-v33 .ai-document-actions,.system-interface-v33 .ai-document-upload{grid-template-columns:1fr}
    .system-interface-v33 .ai-sync-actions{flex-wrap:wrap}
}

/* V32 — Assistente contextual compartilhado pela oficina e pelo Painel SaaS. */
.system-interface-v32 .ai-support{position:fixed;right:22px;bottom:22px;z-index:120}
.system-interface-v32 .ai-support-launcher{display:flex;align-items:center;gap:8px;min-height:50px;padding:0 17px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:linear-gradient(135deg,var(--ui-blue),#0789a3);color:var(--ui-on-primary);font:800 var(--ui-font-sm)/1 var(--ui-font-body);box-shadow:0 15px 34px rgba(6,74,163,.3)}
.system-interface-v32 .ai-support-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 38px rgba(6,74,163,.38)}
.system-interface-v32 .ai-support-launcher svg,.system-interface-v32 .ai-support-form svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.system-interface-v32 .ai-support.is-open .ai-support-launcher{opacity:0;pointer-events:none;transform:translateY(10px)}
.system-interface-v32 .ai-support-window{display:flex;flex-direction:column;width:min(410px,calc(100vw - 28px));height:min(650px,calc(100vh - 42px));overflow:hidden;border:1px solid #cbdbea;border-radius:18px;background:var(--ui-surface);box-shadow:0 28px 80px rgba(0,22,51,.28)}
.system-interface-v32 .ai-support-window[hidden]{display:none}
.system-interface-v32 .ai-support-header{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:10px;min-height:78px;padding:14px 15px;background:linear-gradient(135deg,#001633,#064aa3 68%,#0789a3);color:#fff}
.system-interface-v32 .ai-support-header>span:nth-child(2){display:grid;min-width:0}
.system-interface-v32 .ai-support-header strong{font:800 var(--ui-font-md)/1.2 var(--ui-font-heading);color:#fff}
.system-interface-v32 .ai-support-header small{margin-top:3px;overflow:hidden;color:#c7e0f5;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.system-interface-v32 .ai-support-avatar,.system-interface-v32 .ai-message-avatar{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#8ad000,#63a800);color:#fff;font-size:11px;font-weight:900;box-shadow:0 6px 15px rgba(0,0,0,.15)}
.system-interface-v32 .ai-support-new,.system-interface-v32 .ai-support-close{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid rgba(255,255,255,.2);border-radius:9px;background:rgba(255,255,255,.08);color:#fff;font-size:21px;line-height:1;box-shadow:none}
.system-interface-v32 .ai-support-new:hover,.system-interface-v32 .ai-support-close:hover{background:rgba(255,255,255,.18);transform:none}
.system-interface-v32 .ai-support-context{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:8px;padding:9px 15px;border-bottom:1px solid var(--ui-line);background:var(--ui-surface-soft)}
.system-interface-v32 .ai-support-context>span{grid-row:1/3;width:7px;height:7px;margin-top:5px;border-radius:50%;background:var(--ui-success);box-shadow:0 0 0 4px color-mix(in srgb,var(--ui-success) 14%,transparent)}
.system-interface-v32 .ai-support-context strong{color:var(--ui-text);font-size:10px}
.system-interface-v32 .ai-support-context small{overflow:hidden;color:var(--ui-muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.system-interface-v32 .ai-support-messages{flex:1;min-height:0;overflow-y:auto;padding:16px;background:linear-gradient(180deg,var(--ui-page),var(--ui-surface-soft));scroll-behavior:smooth}
.system-interface-v32 .ai-message{display:flex;align-items:flex-end;gap:8px;margin-bottom:13px}
.system-interface-v32 .ai-message.is-user{justify-content:flex-end}
.system-interface-v32 .ai-message-avatar{width:28px;height:28px;border-radius:9px;font-size:8px}
.system-interface-v32 .ai-message>div{max-width:84%;padding:11px 12px;border:1px solid var(--ui-line);border-radius:13px 13px 13px 4px;background:var(--ui-surface);box-shadow:0 4px 12px rgba(12,42,72,.05)}
.system-interface-v32 .ai-message.is-user>div{border-color:#0f6fe5;border-radius:13px 13px 4px 13px;background:#0f6fe5;color:#fff}
.system-interface-v32 .ai-message.is-error>div{margin-left:auto;border-color:#f3c6c2;background:#fff0ee;color:#9e2d25}
.system-interface-v32 .ai-message p{margin:0;color:inherit;font-size:12px;line-height:1.55;white-space:pre-wrap}
.system-interface-v32 .ai-message.is-typing>div{color:var(--ui-muted);font-style:italic}
.system-interface-v32 .ai-message-link{display:inline-flex;align-items:center;min-height:34px;margin-top:10px;padding:0 11px;border:1px solid #9fc9f5;border-radius:8px;background:#edf6ff;color:#075db8;font-size:10px;font-weight:800}
.system-interface-v32 .ai-message-link:hover{background:#deedfc;color:#044f9e}
.system-interface-v32 .ai-message-feedback{display:flex;align-items:center;gap:5px;margin-top:9px;padding-top:8px;border-top:1px solid var(--ui-line);color:var(--ui-muted);font-size:9px}
.system-interface-v32 .ai-message-feedback button{display:grid;place-items:center;width:27px;height:27px;padding:0;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-surface-soft);box-shadow:none;font-size:13px}
.system-interface-v32 .ai-message-feedback button:hover{border-color:#8bbce9;background:#eaf4ff;transform:none}
.system-interface-v32 .ai-message-feedback.is-sent{color:var(--ui-success);font-weight:800}
.system-interface-v32 .ai-support-suggestions{display:flex;gap:6px;padding:8px 13px 2px;overflow-x:auto;background:var(--ui-surface)}
.system-interface-v32 .ai-support-suggestions[hidden]{display:none}
.system-interface-v32 .ai-support-suggestions button{flex:0 0 auto;min-height:30px;padding:0 9px;border:1px solid #bdd8f2;border-radius:999px;background:#f3f9ff;color:#075db8;font-size:9px;font-weight:700;box-shadow:none}
.system-interface-v32 .ai-support-suggestions button:hover{background:#e2f1ff;transform:none}
.system-interface-v32 .ai-support-form{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px 12px 7px;background:var(--ui-surface)}
.system-interface-v32 .ai-support-form textarea{min-height:44px;max-height:120px;margin:0;padding:11px 12px;border:1px solid #bdcfe0;border-radius:11px;background:var(--ui-surface);color:var(--ui-text);font-size:12px;line-height:1.4;resize:none}
.system-interface-v32 .ai-support-form textarea:focus{border-color:var(--ui-blue);box-shadow:0 0 0 3px rgba(15,111,229,.12);outline:0}
.system-interface-v32 .ai-support-form button{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:11px;background:var(--ui-blue);color:#fff;box-shadow:none}
.system-interface-v32 .ai-support-form button:disabled{cursor:wait;opacity:.55}
.system-interface-v32 .ai-support-window>footer{padding:0 12px 9px;background:var(--ui-surface);color:var(--ui-muted);font-size:8px;text-align:center}

.system-interface-v32 .ai-admin-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}
.system-interface-v32 .ai-admin-layout{grid-template-columns:minmax(0,1.6fr) minmax(260px,.55fr)}
.system-interface-v32 .ai-admin-help ol{padding-left:18px}
.system-interface-v32 .ai-admin-help li{margin:10px 0;color:#d7e7f4;font-size:11px;line-height:1.45}
.system-interface-v32 .ai-knowledge-panel,.system-interface-v32 .ai-article-editor{scroll-margin-top:85px}
.system-interface-v32 .ai-knowledge-panel .data-table{min-width:820px}
.system-interface-v32 .ai-knowledge-panel td>small{display:block;margin-top:3px;color:var(--ui-muted);font-size:9px}
.system-interface-v32 .ai-article-editor{padding:22px}

[data-theme="escuro"] .system-interface-v32 .ai-support-window{border-color:#3b4e61}
[data-theme="escuro"] .system-interface-v32 .ai-support-messages{background:linear-gradient(180deg,#151927,#1b2230)}
[data-theme="escuro"] .system-interface-v32 .ai-message-link{border-color:#365f87;background:#172e46;color:#8fc8ff}
[data-theme="escuro"] .system-interface-v32 .ai-support-suggestions button{border-color:#365f87;background:#172e46;color:#8fc8ff}
[data-theme="escuro"] .system-interface-v32 .ai-message.is-error>div{border-color:#73413d;background:#3b2224;color:#ffc4bd}

@media(max-width:1100px){
    .system-interface-v32 .ai-admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
    .system-interface-v32 .ai-admin-layout{grid-template-columns:1fr}
}
@media(max-width:600px){
    .system-interface-v32 .ai-support{right:10px;bottom:10px}
    .system-interface-v32 .ai-support-window{width:calc(100vw - 20px);height:calc(100dvh - 20px);border-radius:14px}
    .system-interface-v32 .ai-support-launcher span{display:none}
    .system-interface-v32 .ai-support-launcher{width:52px;padding:0;justify-content:center}
    .system-interface-v32 .ai-admin-metrics{grid-template-columns:1fr}
}

/* ========================================================================== */
/* V44 — IMAGENS PRIVADAS NOS CHAMADOS                                        */
/* ========================================================================== */
.system-interface-v44 .support-description-section{transition:border-color .18s,background-color .18s,box-shadow .18s}
.system-interface-v44 .support-description-section.is-dragging{border-color:var(--ui-link)!important;background:color-mix(in srgb,var(--ui-link) 5%,var(--ui-surface));box-shadow:0 0 0 4px color-mix(in srgb,var(--ui-link) 14%,transparent)}
.system-interface-v44 .support-image-uploader{display:grid;gap:10px;margin-top:14px}
.system-interface-v44 .support-image-dropzone{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;min-height:78px;margin:0;padding:13px 15px;border:1px dashed #7ba9cf;border-radius:11px;background:color-mix(in srgb,var(--ui-link) 3%,var(--ui-surface));cursor:pointer;transition:border-color .18s,background-color .18s,transform .18s}
.system-interface-v44 .support-image-dropzone:hover,.system-interface-v44 .support-image-dropzone:focus-visible{border-color:var(--ui-link);background:color-mix(in srgb,var(--ui-link) 7%,var(--ui-surface));outline:0;transform:translateY(-1px)}
.system-interface-v44 .support-image-drop-icon{display:grid;width:44px;height:44px;place-items:center;border-radius:11px;background:var(--ui-link);color:var(--ui-on-primary);font-size:25px;font-weight:500;line-height:1}
.system-interface-v44 .support-image-dropzone>span:nth-child(2){display:grid;min-width:0;gap:4px}.system-interface-v44 .support-image-dropzone strong{color:var(--ui-text);font-size:12px}.system-interface-v44 .support-image-dropzone small{color:var(--ui-muted);font-size:10px;line-height:1.45}.system-interface-v44 .support-image-dropzone>b{padding:5px 8px;border:1px solid var(--ui-line);border-radius:7px;background:var(--ui-surface);color:var(--ui-muted);font-size:9px;white-space:nowrap}
.system-interface-v44 .support-image-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:9px}.system-interface-v44 .support-image-preview[hidden]{display:none}
.system-interface-v44 .support-image-preview-item{display:grid;grid-template-columns:54px minmax(0,1fr) 30px;gap:9px;align-items:center;min-width:0;padding:7px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-surface)}
.system-interface-v44 .support-image-preview-item img{width:54px;height:48px;border-radius:7px;object-fit:cover;background:var(--ui-surface-soft)}.system-interface-v44 .support-image-preview-item>span{display:grid;min-width:0;gap:3px}.system-interface-v44 .support-image-preview-item strong{overflow:hidden;color:var(--ui-text);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.system-interface-v44 .support-image-preview-item small{color:var(--ui-muted);font-size:9px}
.system-interface-v44 .support-image-remove{display:grid;width:28px;min-width:28px;height:28px;min-height:28px;padding:0;place-items:center;border:1px solid color-mix(in srgb,var(--ui-danger) 30%,var(--ui-line));border-radius:7px;background:color-mix(in srgb,var(--ui-danger) 7%,var(--ui-surface));box-shadow:none;color:var(--ui-danger);font-size:18px;line-height:1}.system-interface-v44 .support-image-remove:hover{background:var(--ui-danger);color:#fff;transform:none}
.system-interface-v44 .support-image-feedback{min-height:15px;color:var(--ui-success);font-size:9px}.system-interface-v44 .support-image-feedback:empty{display:none}.system-interface-v44 .support-image-feedback.is-error{color:var(--ui-danger)}
.system-interface-v44 .support-image-uploader.is-compact .support-image-dropzone{grid-template-columns:36px minmax(0,1fr) auto;min-height:64px;padding:10px 12px}.system-interface-v44 .support-image-uploader.is-compact .support-image-drop-icon{width:36px;height:36px;border-radius:9px;font-size:21px}
.system-interface-v44 .support-message-images{display:grid;grid-template-columns:repeat(3,minmax(90px,1fr));gap:8px;margin-top:12px}.system-interface-v44 .support-message-images>a{display:grid;min-width:0;overflow:hidden;border:1px solid var(--ui-line);border-radius:9px;background:var(--ui-surface);color:var(--ui-text);text-decoration:none}.system-interface-v44 .support-message-images>a:hover{border-color:var(--ui-link);box-shadow:0 5px 14px rgb(8 45 76/.1)}.system-interface-v44 .support-message-images img{width:100%;height:94px;object-fit:cover;background:var(--ui-surface-soft)}.system-interface-v44 .support-message-images span{overflow:hidden;padding:7px 8px 2px;font-size:9px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.system-interface-v44 .support-message-images small{padding:0 8px 7px;color:var(--ui-muted);font-size:8px}
[data-theme="escuro"] .system-interface-v44 .support-image-dropzone,[data-theme="escuro"] .system-interface-v44 .support-image-preview-item,[data-theme="escuro"] .system-interface-v44 .support-message-images>a{border-color:#47657f;background:#202d3c}[data-theme="escuro"] .system-interface-v44 .support-image-dropzone>b{border-color:#47657f;background:#182330;color:#c0d0de}[data-theme="escuro"] .system-interface-v44 .support-description-section.is-dragging{border-color:#67b7ff!important;background:#17334c}
@media(max-width:760px){.system-interface-v44 .support-image-dropzone,.system-interface-v44 .support-image-uploader.is-compact .support-image-dropzone{grid-template-columns:40px minmax(0,1fr)}.system-interface-v44 .support-image-dropzone>b{grid-column:2;width:max-content}.system-interface-v44 .support-message-images{grid-template-columns:repeat(2,minmax(100px,1fr))}}
@media(max-width:480px){.system-interface-v44 .support-image-preview{grid-template-columns:1fr}.system-interface-v44 .support-message-images{grid-template-columns:1fr 1fr}.system-interface-v44 .support-message-images img{height:82px}}

/* ========================================================================== */
/* V42 — SINCRONIZAÇÃO DE CHAMADOS NÃO BLOQUEANTE                            */
/* ========================================================================== */
.system-interface-v42 [data-support-sync-form]{display:grid;gap:5px}
.system-interface-v42 .support-sync-feedback{display:block;max-width:280px;color:var(--ui-muted);font-size:var(--ui-font-xs);line-height:1.35}
.system-interface-v42 .support-sync-feedback:empty{display:none}
.system-interface-v42 .support-sync-feedback.is-error{color:var(--ui-danger)}
.system-interface-v42 [data-support-sync-form] button:disabled{cursor:wait;opacity:.72}
[data-theme="escuro"] .system-interface-v42 .support-sync-feedback{color:#b8c9d8}
[data-theme="escuro"] .system-interface-v42 .support-sync-feedback.is-error{color:#ff9b9b}

/* ========================================================================== */
/* V40 — CENTRAL DE CHAMADOS E PONTE DE E-MAIL                                */
/* ========================================================================== */
.system-interface-v40 .support-page-header,.system-interface-v40 .support-detail-header,.system-interface-v40 .email-settings-header{align-items:flex-end}
.system-interface-v40 .support-page-header .row-actions,.system-interface-v40 .support-detail-header .row-actions{align-items:center}.system-interface-v40 .support-page-header .row-actions form,.system-interface-v40 .support-detail-header .row-actions form{margin:0}
.system-interface-v40 .support-integration-notice,.system-interface-v40 .email-settings-status{display:flex;align-items:center;gap:14px;margin-bottom:16px;padding:14px 16px;border:1px solid #efd18f;border-left:4px solid #d89500;border-radius:12px;background:#fff8e7;color:#664a0b}
.system-interface-v40 .support-integration-notice>span,.system-interface-v40 .email-status-icon{display:grid;flex:0 0 42px;width:42px;height:42px;place-items:center;border-radius:11px;background:#ffedb8;color:#8b6200}.system-interface-v40 .support-integration-notice .app-icon,.system-interface-v40 .email-status-icon svg{width:21px;height:21px}.system-interface-v40 .support-integration-notice div,.system-interface-v40 .email-settings-status div{flex:1}.system-interface-v40 .support-integration-notice p,.system-interface-v40 .email-settings-status p{margin:3px 0 0;color:inherit;font-size:11px;line-height:1.5}
.system-interface-v40 .support-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.system-interface-v40 .support-kpi{display:grid;gap:4px;min-height:104px;padding:15px 17px;border:1px solid var(--ui-line);border-left:4px solid #5f7f9b;border-radius:12px;background:var(--ui-surface);box-shadow:0 5px 16px rgb(9 45 75/.05);color:var(--ui-text);text-decoration:none}.system-interface-v40 .support-kpi:hover,.system-interface-v40 .support-kpi.active{border-color:#79b4ec;background:color-mix(in srgb,var(--ui-link) 5%,var(--ui-surface));transform:translateY(-1px)}.system-interface-v40 .support-kpi.is-aguardando_suporte{border-left-color:#d89a13}.system-interface-v40 .support-kpi.is-aguardando_usuario{border-left-color:#8b5de4}.system-interface-v40 .support-kpi.is-fechado{border-left-color:#209766}.system-interface-v40 .support-kpi span{color:var(--ui-muted);font-size:10px;font-weight:850;letter-spacing:.06em;text-transform:uppercase}.system-interface-v40 .support-kpi strong{font:850 25px/1 var(--ui-font-heading);color:var(--ui-text)}.system-interface-v40 .support-kpi small{color:var(--ui-muted);font-size:10px}
.system-interface-v40 .support-filters{display:grid;grid-template-columns:minmax(280px,1fr) 220px 200px auto auto;gap:10px;align-items:center;margin-bottom:16px;padding:12px}.system-interface-v40 .support-filters label{margin:0}.system-interface-v40 .support-filter-search{position:relative}.system-interface-v40 .support-filter-search .app-icon{position:absolute;z-index:1;top:50%;left:14px;width:17px;height:17px;color:var(--ui-link);transform:translateY(-50%)}.system-interface-v40 .support-filter-search input{padding-left:42px}
.system-interface-v40 .support-row{cursor:pointer}.system-interface-v40 .support-row:focus-visible{outline:3px solid color-mix(in srgb,var(--ui-link) 45%,transparent);outline-offset:-3px}
.system-interface-v40 .support-list-panel{padding:0;overflow:hidden}.system-interface-v40 .support-list-panel>.panel-title{padding:18px 20px 10px}.system-interface-v40 .support-table{min-width:1040px}.system-interface-v40 .support-table th{background:var(--ui-surface-soft)}.system-interface-v40 .support-table td{height:62px;vertical-align:middle}.system-interface-v40 .support-table tbody tr:hover{background:color-mix(in srgb,var(--ui-link) 5%,var(--ui-surface))}.system-interface-v40 .support-protocol{color:var(--ui-link);font-weight:850;text-decoration:none}.system-interface-v40 .support-status,.system-interface-v40 .support-priority{display:inline-flex;align-items:center;min-height:24px;padding:4px 9px;border-radius:99px;font-size:9px;font-weight:850;white-space:nowrap}.system-interface-v40 .support-status{background:#e8eff5;color:#3e5870}.system-interface-v40 .support-status.is-aguardando_suporte,.system-interface-v40 .support-status.is-reaberto{background:#fff0c9;color:#805b00}.system-interface-v40 .support-status.is-aguardando_usuario{background:#eee8ff;color:#6341b6}.system-interface-v40 .support-status.is-em_atendimento,.system-interface-v40 .support-status.is-aberto{background:#e2f1ff;color:#0965bc}.system-interface-v40 .support-status.is-resolvido,.system-interface-v40 .support-status.is-fechado{background:#dff4e9;color:#14764d}.system-interface-v40 .support-status.is-cancelado{background:#ffe4e1;color:#a83e35}.system-interface-v40 .support-priority{border:1px solid var(--ui-line);background:var(--ui-surface-soft);color:var(--ui-muted)}.system-interface-v40 .support-priority.is-alta{border-color:#f0c46d;background:#fff5dd;color:#885e00}.system-interface-v40 .support-priority.is-urgente{border-color:#f0aaa4;background:#ffebe8;color:#aa352c}
.system-interface-v40 .support-create-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,320px);gap:18px;align-items:start}.system-interface-v40 .support-form{padding:20px}.system-interface-v40 .support-form fieldset{margin:0 0 16px;padding:18px;border:1px solid var(--ui-line);border-radius:12px}.system-interface-v40 .support-form legend{display:flex;align-items:center;gap:8px;padding:0 8px;color:var(--ui-text);font-weight:850}.system-interface-v40 .support-form legend span{display:grid;width:24px;height:24px;place-items:center;border-radius:50%;background:var(--ui-link);color:#fff;font-size:10px}.system-interface-v40 .support-writing-tips{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.system-interface-v40 .support-writing-tips strong{width:100%;font-size:10px}.system-interface-v40 .support-writing-tips span{padding:5px 8px;border-radius:7px;background:var(--ui-surface-soft);color:var(--ui-muted);font-size:9px}.system-interface-v40 .support-security-card{position:sticky;top:84px;padding:22px;background:linear-gradient(145deg,#06284a,#075e94);color:#fff}.system-interface-v40 .support-security-card h2{color:#fff}.system-interface-v40 .support-security-card p,.system-interface-v40 .support-security-card li{color:#d6e9f7;font-size:11px;line-height:1.6}.system-interface-v40 .support-security-card ul{padding-left:18px}.system-interface-v40 .support-security-card .button{margin-top:12px;border-color:#82b9de;background:#fff;color:#075aa6}
.system-interface-v40 .support-ticket-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.system-interface-v40 .support-ticket-summary>div{display:grid;gap:7px;min-height:78px;padding:13px 15px;border:1px solid var(--ui-line);border-radius:11px;background:var(--ui-surface)}.system-interface-v40 .support-ticket-summary small,.system-interface-v40 .support-metadata dt{color:var(--ui-muted);font-size:9px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.system-interface-v40 .support-ticket-summary strong{font-size:11px}.system-interface-v40 .support-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.system-interface-v40 .support-conversation,.system-interface-v40 .support-ticket-sidebar{display:grid;gap:16px}.system-interface-v40 .support-thread{padding:0;overflow:hidden}.system-interface-v40 .support-thread>header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--ui-line)}.system-interface-v40 .support-thread>header h2{margin:6px 0 0}.system-interface-v40 .support-thread>header>span{color:var(--ui-muted);font-size:10px}.system-interface-v40 .support-messages{display:grid;gap:16px;max-height:620px;padding:20px;overflow:auto;background:color-mix(in srgb,var(--ui-surface-soft) 66%,var(--ui-surface));scrollbar-gutter:stable}.system-interface-v40 .support-message{display:flex;gap:10px;align-items:flex-start;max-width:88%}.system-interface-v40 .support-message.from-user{justify-self:end;flex-direction:row-reverse}.system-interface-v40 .support-message.from-system{justify-self:center;max-width:96%}.system-interface-v40 .support-message-avatar{display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;border-radius:10px;background:#e4edf5;color:#3f5c75;font-size:11px;font-weight:900}.system-interface-v40 .support-message.from-support .support-message-avatar{background:linear-gradient(135deg,#75bd00,#4a9200);color:#fff}.system-interface-v40 .support-message.from-user .support-message-avatar{background:var(--ui-link);color:#fff}.system-interface-v40 .support-message-content{min-width:220px;padding:14px 15px;border:1px solid var(--ui-line);border-radius:4px 13px 13px 13px;background:var(--ui-surface);box-shadow:0 5px 14px rgb(8 45 76/.06)}.system-interface-v40 .support-message.from-user .support-message-content{border-radius:13px 4px 13px 13px;background:#e9f4ff}.system-interface-v40 .support-message.from-system .support-message-content{border-radius:10px;background:#fff7dd}.system-interface-v40 .support-message-content>header{display:flex;gap:20px;justify-content:space-between}.system-interface-v40 .support-message-content>header div{display:grid;gap:2px}.system-interface-v40 .support-message-content>header span,.system-interface-v40 .support-message-content time{color:var(--ui-muted);font-size:9px}.system-interface-v40 .support-message-content p{margin:12px 0 0;color:var(--ui-text);font-size:11px;line-height:1.65;white-space:normal}.system-interface-v40 .support-delivery{display:inline-flex;align-items:center;gap:8px;margin-top:10px;color:var(--ui-muted);font-size:9px}.system-interface-v40 .support-delivery.is-ok,.system-interface-v40 .support-delivery.is-received{color:var(--ui-success)}.system-interface-v40 .support-delivery.is-error{display:flex;justify-content:space-between;padding-top:9px;border-top:1px solid #f1b7b1;color:var(--ui-danger)}.system-interface-v40 .support-delivery form{margin:0}.system-interface-v40 .support-delivery .button{min-height:29px;padding:4px 9px;font-size:9px}.system-interface-v40 .support-reply-form{padding:20px}.system-interface-v40 .support-reply-form h2{margin:6px 0}.system-interface-v40 .support-reply-form>div:first-child p{margin:0 0 14px}.system-interface-v40 .support-ticket-sidebar>.panel{padding:20px}.system-interface-v40 .support-ticket-sidebar h2{margin:8px 0 14px}.system-interface-v40 .support-metadata{margin:0}.system-interface-v40 .support-metadata>div{padding:11px 0;border-bottom:1px solid var(--ui-line)}.system-interface-v40 .support-metadata>div:last-child{border:0}.system-interface-v40 .support-metadata dd{margin:4px 0 0;overflow-wrap:anywhere;color:var(--ui-text);font-size:11px}.system-interface-v40 .support-sync-card p{font-size:11px;line-height:1.55}
.system-interface-v40 .email-settings-status.is-active{border-color:#a7d9c1;border-left-color:#178c5b;background:#ecf8f2;color:#176344}.system-interface-v40 .email-settings-status.is-active .email-status-icon{background:#d7f2e5;color:#15774e}.system-interface-v40 .email-settings-status .status-pill{margin-left:auto}.system-interface-v40 .email-settings-form{display:grid;gap:16px}.system-interface-v40 .email-settings-section{padding:22px}.system-interface-v40 .email-settings-section>header{display:flex;gap:13px;align-items:flex-start;margin-bottom:18px}.system-interface-v40 .email-settings-section>header h2{margin:5px 0 3px}.system-interface-v40 .email-settings-section>header p{margin:0}.system-interface-v40 .email-section-number{display:grid;flex:0 0 36px;width:36px;height:36px;place-items:center;border-radius:10px;background:var(--ui-link);color:#fff;font:850 14px/1 var(--ui-font-heading)}.system-interface-v40 .email-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.system-interface-v40 .email-settings-grid label{margin:0}.system-interface-v40 .email-password-field{grid-column:span 2}.system-interface-v40 .email-extension-note{margin-top:15px;padding:11px 13px;border:1px solid #bdd6ec;border-radius:9px;background:#edf6ff;color:#365e80;font-size:10px}.system-interface-v40 .email-integration-toggle{display:flex;align-items:center;gap:11px;padding:12px 14px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-surface-soft);cursor:pointer}.system-interface-v40 .email-integration-toggle input{flex:0 0 auto;width:19px;height:19px}.system-interface-v40 .email-integration-toggle span{display:grid;gap:3px}.system-interface-v40 .email-integration-toggle small{color:var(--ui-muted);font-size:9px}.system-interface-v40 .email-correlation-explanation{display:grid;grid-template-columns:auto 1fr;gap:15px;align-items:center;margin-top:16px;padding:14px;border-radius:10px;background:#062b50;color:#fff}.system-interface-v40 .email-correlation-explanation>span{font-weight:850}.system-interface-v40 .email-correlation-explanation ol{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0;padding-left:20px}.system-interface-v40 .email-correlation-explanation li{color:#d7eaf8;font-size:9px;line-height:1.45}.system-interface-v40 .email-settings-actions{position:sticky;z-index:4;bottom:0;padding:13px 16px;border:1px solid var(--ui-line);border-radius:12px;background:color-mix(in srgb,var(--ui-surface) 92%,transparent);box-shadow:0 -8px 24px rgb(6 37 64/.08);backdrop-filter:blur(10px)}.system-interface-v40 .email-test-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.system-interface-v40 .email-test-grid>.panel{padding:20px}.system-interface-v40 .email-test-grid h2{margin:8px 0}.system-interface-v40 .email-test-grid p{min-height:44px;font-size:10px}.system-interface-v40 .email-test-grid form{display:grid;gap:10px}.system-interface-v40 .email-provider-reference dl{margin:0}.system-interface-v40 .email-provider-reference dl>div{padding:9px 0;border-bottom:1px solid var(--ui-line)}.system-interface-v40 .email-provider-reference dt{color:var(--ui-muted);font-size:9px;font-weight:850}.system-interface-v40 .email-provider-reference dd{margin:3px 0 0;font-size:10px}
[data-theme="escuro"] .system-interface-v40 .support-integration-notice{border-color:#755d26;background:#3a321e;color:#ffe5a1}[data-theme="escuro"] .system-interface-v40 .support-integration-notice>span{background:#57471f;color:#ffd66d}[data-theme="escuro"] .system-interface-v40 .support-message.from-user .support-message-content{border-color:#35638a;background:#183c5d}[data-theme="escuro"] .system-interface-v40 .support-message.from-system .support-message-content{border-color:#6c5d31;background:#39321f}[data-theme="escuro"] .system-interface-v40 .support-status.is-aguardando_suporte,[data-theme="escuro"] .system-interface-v40 .support-status.is-reaberto{background:#4a3d1c;color:#ffdc7d}[data-theme="escuro"] .system-interface-v40 .support-status.is-aguardando_usuario{background:#362c56;color:#cbb8ff}[data-theme="escuro"] .system-interface-v40 .support-status.is-em_atendimento,[data-theme="escuro"] .system-interface-v40 .support-status.is-aberto{background:#203f5c;color:#91caff}[data-theme="escuro"] .system-interface-v40 .support-status.is-resolvido,[data-theme="escuro"] .system-interface-v40 .support-status.is-fechado{background:#1d4032;color:#8ce0b8}[data-theme="escuro"] .system-interface-v40 .support-security-card{border-color:#426583}[data-theme="escuro"] .system-interface-v40 .email-settings-status.is-active{border-color:#2c6f55;background:#1b3d31;color:#9ae3bd}[data-theme="escuro"] .system-interface-v40 .email-settings-status.is-inactive{border-color:#755d26;background:#3a321e;color:#ffe5a1}[data-theme="escuro"] .system-interface-v40 .email-extension-note{border-color:#365a78;background:#19344b;color:#a9d3f4}[data-theme="escuro"] .system-interface-v40 .email-correlation-explanation{border:1px solid #396a91;background:#102d47}
@media(max-width:1100px){.system-interface-v40 .support-kpis{grid-template-columns:repeat(2,1fr)}.system-interface-v40 .support-filters{grid-template-columns:minmax(260px,1fr) 190px 180px auto}.system-interface-v40 .support-filters .button-ghost{grid-column:1/-1}.system-interface-v40 .support-detail-layout{grid-template-columns:1fr}.system-interface-v40 .support-ticket-sidebar{grid-template-columns:1fr 1fr}.system-interface-v40 .email-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.system-interface-v40 .email-test-grid{grid-template-columns:1fr 1fr}.system-interface-v40 .email-provider-reference{grid-column:1/-1}.system-interface-v40 .email-correlation-explanation ol{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.system-interface-v40 .support-page-header .row-actions,.system-interface-v40 .support-detail-header .row-actions{width:100%;flex-direction:column;align-items:stretch}.system-interface-v40 .support-page-header .row-actions form,.system-interface-v40 .support-page-header .row-actions button,.system-interface-v40 .support-detail-header .row-actions form,.system-interface-v40 .support-detail-header .row-actions button{width:100%}.system-interface-v40 .support-kpis,.system-interface-v40 .support-ticket-summary{grid-template-columns:1fr 1fr}.system-interface-v40 .support-filters{grid-template-columns:1fr}.system-interface-v40 .support-create-layout{grid-template-columns:1fr}.system-interface-v40 .support-security-card{position:static}.system-interface-v40 .support-message{max-width:100%}.system-interface-v40 .support-ticket-sidebar,.system-interface-v40 .email-settings-grid,.system-interface-v40 .email-test-grid{grid-template-columns:1fr}.system-interface-v40 .email-password-field,.system-interface-v40 .email-provider-reference{grid-column:auto}.system-interface-v40 .email-correlation-explanation{grid-template-columns:1fr}.system-interface-v40 .email-correlation-explanation ol{grid-template-columns:1fr 1fr}.system-interface-v40 .email-settings-status{align-items:flex-start;flex-wrap:wrap}.system-interface-v40 .email-settings-status .status-pill{margin-left:56px}}
@media(max-width:480px){.system-interface-v40 .support-kpis,.system-interface-v40 .support-ticket-summary{grid-template-columns:1fr}.system-interface-v40 .support-message-content{min-width:0}.system-interface-v40 .support-message-avatar{display:none}.system-interface-v40 .email-correlation-explanation ol{grid-template-columns:1fr}}

/* ========================================================================== */
/* V39 — CALENDÁRIO FLUIDO, TÍTULOS PADRONIZADOS E CENTRAL DE AJUDA           */
/* ========================================================================== */
/* As sete colunas usam a largura real disponível. Textos longos são reduzidos
 * dentro da célula, evitando que sábado ou domingo desapareçam da agenda. */
.system-interface-v39 .agenda-workspace{grid-template-columns:minmax(208px,220px) minmax(0,1fr);min-width:0}
.system-interface-v39 .agenda-sidebar,.system-interface-v39 .agenda-mini-calendar,.system-interface-v39 .agenda-calendar,.system-interface-v39 .agenda-canvas,.system-interface-v39 .month-calendar{min-width:0}
.system-interface-v39 .agenda-sidebar{overflow:hidden}
.system-interface-v39 .mini-weekdays,.system-interface-v39 .mini-days,.system-interface-v39 .month-weekdays,.system-interface-v39 .month-grid{grid-template-columns:repeat(7,minmax(0,1fr));width:100%}
.system-interface-v39 .mini-days button{min-width:0;width:100%;padding:0}
.system-interface-v39 .month-day{min-width:0;padding:7px}
.system-interface-v39 .month-events,.system-interface-v39 .calendar-event.compact{min-width:0;max-width:100%}
.system-interface-v39 .calendar-event.compact{overflow:hidden}

/* A programação diária mantém o resumo fixo e oferece uma barra vertical
 * própria para consultar qualquer quantidade de agendamentos. */
.system-interface-v39 .agenda-day-dialog .agenda-dialog-shell{height:100%;max-height:none}
.system-interface-v39 .agenda-day-body{grid-template-rows:auto minmax(0,1fr);min-height:0;overflow:hidden}
.system-interface-v39 .agenda-day-list{min-height:0;overflow-x:hidden;overflow-y:scroll;scrollbar-gutter:stable;overscroll-behavior:contain}
.system-interface-v39 .agenda-day-list-head{position:sticky;z-index:3;top:0}
.system-interface-v39 .agenda-day-list::-webkit-scrollbar,.system-interface-v39 .help-category-nav::-webkit-scrollbar{width:11px}
.system-interface-v39 .agenda-day-list::-webkit-scrollbar-track,.system-interface-v39 .help-category-nav::-webkit-scrollbar-track{background:var(--ui-surface-soft)}
.system-interface-v39 .agenda-day-list::-webkit-scrollbar-thumb,.system-interface-v39 .help-category-nav::-webkit-scrollbar-thumb{border:3px solid var(--ui-surface-soft);border-radius:99px;background:#6f91ad}

/* O mesmo marcador de seção identifica todas as telas da oficina, diálogos e
 * Painel SaaS. O contraste permanece legível nos temas claro e escuro. */
.system-interface-v39 .page-kicker{display:inline-flex;width:max-content;max-width:100%;min-height:22px;align-items:center;padding:4px 9px;border:1px solid #9bc9f4;border-left:3px solid #72b900;border-radius:6px;background:#eaf5ff;color:#075daf;font-size:9px;font-weight:900;letter-spacing:.12em;line-height:1.2;text-transform:uppercase}
.system-interface-v39 .agenda-dialog-header .page-kicker,.system-interface-v39 .system-screen-header .page-kicker,.system-interface-v39 .people-modal-header .page-kicker{border-color:rgba(147,218,255,.5);border-left-color:#a6e34f;background:rgba(5,50,96,.48);color:#bde8ff}
.system-interface-v39 .agenda-day-dialog .agenda-dialog-header .page-kicker{border-color:#84d2ff;border-left-color:#b7f25c;background:#063c75;color:#d8f2ff;box-shadow:0 0 0 1px rgba(255,255,255,.08)}
[data-theme="escuro"] .system-interface-v39 .page-kicker{border-color:#3f72a2;border-left-color:#9bdb3e;background:#173a5b;color:#b9deff}
[data-theme="escuro"] .system-interface-v39 .agenda-dialog-header .page-kicker,[data-theme="escuro"] .system-interface-v39 .system-screen-header .page-kicker,[data-theme="escuro"] .system-interface-v39 .people-modal-header .page-kicker{border-color:#4b93c8;border-left-color:#a9e650;background:#0d3358;color:#d5efff}

/* Central de Ajuda: pesquisa, navegação por assunto e procedimentos seguros. */
.system-interface-v39 .help-page-header{align-items:flex-end}
.help-search-panel{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px;padding:18px;border:1px solid var(--ui-line);border-radius:var(--ui-radius-lg);background:var(--ui-surface);box-shadow:var(--ui-shadow)}
.help-search-panel form{flex:1;min-width:0}.help-search-panel label{display:block;margin-bottom:8px;color:var(--ui-text);font-size:13px;font-weight:850}.help-search-panel form>div{display:flex;gap:8px}.help-search-panel input{min-width:0;flex:1}.help-search-panel aside{display:grid;gap:3px;min-width:160px;padding-left:18px;border-left:1px solid var(--ui-line)}.help-search-panel aside strong{color:var(--ui-link);font-size:18px}.help-search-panel aside span{color:var(--ui-muted);font-size:10px}
.help-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:18px;align-items:start}.help-category-nav{position:sticky;top:78px;display:grid;max-height:calc(100dvh - 100px);gap:4px;overflow-y:auto;padding:12px}.help-category-nav>strong{padding:8px 10px;color:var(--ui-muted);font-size:10px;letter-spacing:.1em;text-transform:uppercase}.help-category-nav>a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;border-radius:9px;color:var(--ui-text);font-size:12px;font-weight:750}.help-category-nav>a:hover{background:var(--ui-surface-soft);color:var(--ui-link)}.help-category-nav>a b{display:grid;min-width:24px;height:24px;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--ui-link) 10%,var(--ui-surface));color:var(--ui-link);font-size:10px}.help-safety-note{margin-top:10px;padding:12px;border:1px solid color-mix(in srgb,var(--ui-warning) 38%,var(--ui-line));border-radius:10px;background:color-mix(in srgb,var(--ui-warning) 8%,var(--ui-surface))}.help-safety-note strong{color:var(--ui-text);font-size:11px}.help-safety-note p{margin:5px 0 0;color:var(--ui-muted);font-size:10px;line-height:1.5}
.help-content-list{display:grid;gap:22px;min-width:0}.help-category{scroll-margin-top:82px}.help-category>header{margin-bottom:10px;padding:2px 2px 8px}.help-category>header h2{margin:7px 0 2px;color:var(--ui-navy);font:800 22px/1.2 var(--ui-font-heading)}.help-category>header p{margin:0;color:var(--ui-muted);font-size:11px}.help-article{margin-bottom:9px;overflow:hidden;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface);box-shadow:var(--ui-shadow)}.help-article summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;cursor:pointer;list-style:none}.help-article summary::-webkit-details-marker{display:none}.help-article summary>span{display:grid;min-width:0;gap:2px}.help-article summary small{color:var(--ui-link);font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.help-article summary strong{color:var(--ui-text);font-size:15px}.help-article summary em{overflow:hidden;color:var(--ui-muted);font-size:11px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.help-article summary>b{display:grid;width:30px;height:30px;place-items:center;border-radius:8px;background:var(--ui-surface-soft);color:var(--ui-link);font-size:20px;transition:transform .2s}.help-article[open] summary{border-bottom:1px solid var(--ui-line);background:color-mix(in srgb,var(--ui-link) 3%,var(--ui-surface))}.help-article[open] summary>b{transform:rotate(45deg)}.help-article-body{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(220px,.75fr);gap:12px;padding:18px}.help-article-body>section{grid-row:span 2;padding:15px;border-radius:10px;background:var(--ui-surface-soft)}.help-article-body h3{margin:0 0 9px;color:var(--ui-text);font-size:12px}.help-article-body ol{margin:0;padding-left:20px}.help-article-body li{margin:0 0 8px;padding-left:3px;color:var(--ui-text);font-size:12px;line-height:1.5}.help-article-body aside{padding:13px;border:1px solid var(--ui-line);border-radius:10px}.help-article-body aside p{margin:0;color:var(--ui-muted);font-size:11px;line-height:1.55}.help-correction{border-left:4px solid var(--ui-warning)!important}.help-removal{border-left:4px solid var(--ui-danger)!important}.help-article-body footer{grid-column:1/-1;display:flex;gap:8px;padding-top:3px}.help-empty{min-height:280px}
[data-theme="escuro"] .system-interface-v39 .help-category>header h2{color:#eef5fb}
[data-theme="escuro"] .system-interface-v39 .help-search-panel,[data-theme="escuro"] .system-interface-v39 .help-article,[data-theme="escuro"] .system-interface-v39 .help-category-nav{border-color:#405269;background:#202a39}
[data-theme="escuro"] .system-interface-v39 .help-article[open] summary,[data-theme="escuro"] .system-interface-v39 .help-article-body>section{background:#18212d}

@media(max-width:1100px){
    .system-interface-v39 .agenda-workspace{grid-template-columns:1fr}
    .help-layout{grid-template-columns:1fr}.help-category-nav{position:static;display:flex;max-height:none;overflow-x:auto}.help-category-nav>strong,.help-safety-note{display:none}.help-category-nav>a{flex:0 0 auto;border:1px solid var(--ui-line)}
}
@media(max-width:760px){
    .system-interface-v39 .month-weekdays,.system-interface-v39 .month-grid{grid-template-columns:repeat(7,minmax(72px,1fr));width:max-content;min-width:100%}
    .system-interface-v39 .agenda-day-list{overflow:auto}.system-interface-v39 .agenda-day-list-head,.system-interface-v39 .agenda-day-row{min-width:820px}
    .help-search-panel{align-items:stretch;flex-direction:column}.help-search-panel form>div{display:grid;grid-template-columns:1fr 1fr}.help-search-panel input{grid-column:1/-1}.help-search-panel aside{padding:12px 0 0;border-top:1px solid var(--ui-line);border-left:0}.help-article-body{grid-template-columns:1fr}.help-article-body>section{grid-row:auto}.help-article-body footer{grid-column:1;flex-direction:column}.help-article summary em{white-space:normal}
}

/* V47 — DIAGNÓSTICO E RECUPERAÇÃO DE RESPOSTAS IMAP */
.system-interface-v47 .support-sync-card .support-sync-feedback{max-width:none;margin-top:9px;padding:8px 10px;border-radius:8px;background:var(--ui-surface-soft);color:var(--ui-text);line-height:1.5}
.system-interface-v47 .support-sync-card .support-sync-feedback:empty{display:none}
.system-interface-v47 .support-page-header .support-sync-feedback{max-width:420px;margin-top:5px;white-space:normal}
[data-theme="escuro"] .system-interface-v47 .support-sync-card .support-sync-feedback{background:#172637;color:#d8e8f5}


/* V79.13 — Central de Ajuda: impressão somente do tutorial selecionado. */
@media print{
    body.help-printing .help-page-header,
    body.help-printing .help-search-panel,
    body.help-printing .help-category-nav,
    body.help-printing .help-category>header,
    body.help-printing .help-category .help-article:not(.help-print-target),
    body.help-printing .help-update-note{display:none!important}
    body.help-printing .help-layout{display:block}
    body.help-printing .help-print-target{display:block!important;border:0;box-shadow:none;margin:0}
    body.help-printing .help-print-target .help-article-body{display:grid!important}
}
@media print{
    .help-category-nav,.help-search-panel,.help-page-header>a,.help-article-body footer{display:none!important}.help-layout{display:block}.help-article{break-inside:avoid;box-shadow:none}.help-article:not([open])>.help-article-body{display:grid}.help-category{break-before:auto}
}
@media print{
    .system-interface-v32 .ai-support{display:none!important}
}

/*
 * V37 — CONTRASTE, IDENTIDADE DA OFICINA E LISTAS ORDENÁVEIS
 *
 * Esta camada fica propositalmente no fim do arquivo: elementos do calendário
 * são botões semânticos, mas não devem herdar a aparência azul da ação
 * primária global. As regras também preservam contraste AA no tema escuro.
 */
.system-interface-v37 .app-brand.is-custom-brand{margin:9px 15px;padding:6px 10px;height:54px;border:1px solid rgba(255,255,255,.35);border-radius:10px;background:#fff}
.system-interface-v37 .app-brand.is-custom-brand img{width:100%;height:42px;object-fit:contain;filter:none}
.system-interface-v37 .client-data-panel{padding:0;border-color:var(--ui-line-strong);border-radius:14px;box-shadow:0 8px 24px rgb(9 45 75/.07)}
.system-interface-v37 .client-data-panel .table-wrap{padding:8px 12px 10px}
.system-interface-v37 .client-table{width:100%;min-width:1040px;table-layout:fixed}
.system-interface-v37 .client-table th:nth-child(1){width:21%}
.system-interface-v37 .client-table th:nth-child(2){width:17%}
.system-interface-v37 .client-table th:nth-child(3){width:8%}
.system-interface-v37 .client-table th:nth-child(4){width:9%}
.system-interface-v37 .client-table th:nth-child(5){width:9%}
.system-interface-v37 .client-table th:nth-child(6){width:36%}
.system-interface-v37 .client-table th{height:40px;padding:7px 10px;background:var(--ui-surface-soft);color:var(--ui-muted);font-size:10px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}
.system-interface-v37 .client-table td{height:56px;padding:8px 10px;vertical-align:middle}
.system-interface-v37 .client-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--ui-surface-soft) 48%,var(--ui-surface))}
.system-interface-v37 .client-table tbody tr:hover{background:color-mix(in srgb,var(--ui-link) 6%,var(--ui-surface))}
.system-interface-v37 .client-sort-link{display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none}
.system-interface-v37 .client-sort-link span{display:grid;width:19px;height:19px;place-items:center;border-radius:5px;color:var(--ui-muted);font-size:13px;letter-spacing:0}
.system-interface-v37 .client-sort-link:hover,.system-interface-v37 .client-sort-link.is-active{color:var(--ui-link)}
.system-interface-v37 .client-sort-link.is-active span{background:color-mix(in srgb,var(--ui-link) 12%,var(--ui-surface));color:var(--ui-link)}
.system-interface-v37 .person-cell>span:last-child{min-width:0}
.system-interface-v37 .person-cell strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.system-interface-v37 .client-row-actions{justify-content:flex-start;flex-wrap:nowrap;gap:5px}
.system-interface-v37 .client-row-actions .ui-action{flex:0 0 30px;width:30px;height:30px}

/* Calendário claro: dias neutros e eventos destacados apenas pela categoria. */
.system-interface-v37 .agenda-sidebar,.system-interface-v37 .agenda-calendar{background:var(--ui-surface)}
.system-interface-v37 .agenda-toolbar,.system-interface-v37 .month-weekdays{background:var(--ui-surface)}
.system-interface-v37 .agenda-mini-calendar header button,
.system-interface-v37 .agenda-mini-grid button,
.system-interface-v37 .agenda-navigation .icon-button,
.system-interface-v37 .agenda-view-switch button,
.system-interface-v37 .month-day,
.system-interface-v37 .week-slot,
.system-interface-v37 .day-hour>button{
    border-color:var(--ui-line);background:var(--ui-surface);color:var(--ui-text);box-shadow:none;transform:none;
}
.system-interface-v37 .agenda-mini-calendar header button,.system-interface-v37 .agenda-mini-grid button{min-height:32px;padding:0}
.system-interface-v37 .agenda-mini-calendar header button:hover,.system-interface-v37 .agenda-mini-grid button:hover,.system-interface-v37 .agenda-navigation .icon-button:hover,.system-interface-v37 .agenda-view-switch button:hover{background:var(--ui-surface-soft);color:var(--ui-link)}
.system-interface-v37 .agenda-view-switch button{border:0;background:transparent;color:var(--ui-muted)}
.system-interface-v37 .agenda-view-switch button.active{background:var(--ui-surface);color:var(--ui-link);box-shadow:0 2px 8px rgb(8 66 114/.13)}
.system-interface-v37 .month-day{min-height:126px;padding:8px;border-width:0 1px 1px 0;border-style:solid;border-radius:0;text-align:left;cursor:pointer}
.system-interface-v37 .month-day:hover{background:color-mix(in srgb,var(--ui-link) 5%,var(--ui-surface))}
.system-interface-v37 .month-day.outside{background:var(--ui-surface-soft);color:var(--ui-muted)}
.system-interface-v37 .month-day.today{background:color-mix(in srgb,var(--ui-link) 4%,var(--ui-surface))}
.system-interface-v37 .month-day.today .month-day-number{background:var(--ui-link);color:#fff}

/* Tema escuro: a navegação permanece azul-marinho e o conteúdo usa planos
 * progressivos para distinguir fundo, cartões, cabeçalhos e estados de foco. */
[data-theme="escuro"] .system-interface-v37 .sidebar{background:linear-gradient(180deg,#061a2f 0%,#0a385b 100%);color:#e9f4fd;box-shadow:5px 0 28px rgb(0 0 0/.25)}
[data-theme="escuro"] .system-interface-v37 .sidebar nav>a,
[data-theme="escuro"] .system-interface-v37 .nav-group-toggle,
[data-theme="escuro"] .system-interface-v37 .sidebar-footer a{color:#d9e8f5}
[data-theme="escuro"] .system-interface-v37 .nav-submenu a{border-color:#356887;color:#c1d5e5}
[data-theme="escuro"] .system-interface-v37 .sidebar nav>a:hover,
[data-theme="escuro"] .system-interface-v37 .sidebar nav>a.active,
[data-theme="escuro"] .system-interface-v37 .nav-group-toggle:hover,
[data-theme="escuro"] .system-interface-v37 .nav-group.open>.nav-group-toggle{background:#174968;color:#fff}
[data-theme="escuro"] .system-interface-v37 .nav-submenu a:hover,
[data-theme="escuro"] .system-interface-v37 .nav-submenu a.active{background:#103f60;color:#75d8ff}
[data-theme="escuro"] .system-interface-v37 .topbar{border-bottom-color:#334459;background:#171e2b}
[data-theme="escuro"] .system-interface-v37 .quick-search input{border-color:#42556b;background:#1e2938;color:#f2f7fb}
[data-theme="escuro"] .system-interface-v37 .agenda-sidebar,
[data-theme="escuro"] .system-interface-v37 .agenda-calendar,
[data-theme="escuro"] .system-interface-v37 .agenda-toolbar,
[data-theme="escuro"] .system-interface-v37 .month-weekdays{border-color:#405269;background:#202a39}
[data-theme="escuro"] .system-interface-v37 .agenda-canvas{background:#1b2431}
[data-theme="escuro"] .system-interface-v37 .agenda-mini-calendar header button,
[data-theme="escuro"] .system-interface-v37 .agenda-mini-grid button,
[data-theme="escuro"] .system-interface-v37 .agenda-navigation .icon-button,
[data-theme="escuro"] .system-interface-v37 .month-day,
[data-theme="escuro"] .system-interface-v37 .week-slot,
[data-theme="escuro"] .system-interface-v37 .day-hour>button{border-color:#405269;background:#202a39;color:#eef5fb}
[data-theme="escuro"] .system-interface-v37 .month-day:hover{background:#29384b}
[data-theme="escuro"] .system-interface-v37 .month-day.outside{background:#18212d;color:#8393a5}
[data-theme="escuro"] .system-interface-v37 .month-day.today{background:#243449}
[data-theme="escuro"] .system-interface-v37 .agenda-view-switch{border-color:#405269;background:#17202c}
[data-theme="escuro"] .system-interface-v37 .agenda-view-switch button{background:transparent;color:#aebdcc}
[data-theme="escuro"] .system-interface-v37 .agenda-view-switch button:hover{background:#263548;color:#fff}
[data-theme="escuro"] .system-interface-v37 .agenda-view-switch button.active{background:#33465c;color:#8fc8ff;box-shadow:none}
[data-theme="escuro"] .system-interface-v37 .client-data-panel{border-color:#41536a;background:#202938}
[data-theme="escuro"] .system-interface-v37 .client-table th{background:#18212d;color:#c2d0dc}
[data-theme="escuro"] .system-interface-v37 .client-table tbody tr:nth-child(even){background:#1c2634}
[data-theme="escuro"] .system-interface-v37 .client-table tbody tr:hover{background:#26384b}

@media(max-width:1180px){
    .system-interface-v37 .client-table{min-width:980px}
    .system-interface-v37 .client-table th:nth-child(6){width:38%}
}

/* ========================================================================== */
/* V36 — MODAL PREMIUM DA AGENDA, RESPONSIVO E SEM ROLAGEM DUPLA              */
/* ========================================================================== */

/* O diálogo controla a única área rolável. Isso evita a faixa vazia e as
   barras horizontal/vertical duplicadas observadas em telas menores. */
.system-interface-v36 .agenda-dialog{
    inset:0;
    width:min(980px,calc(100dvw - 32px));
    max-width:calc(100dvw - 32px);
    max-inline-size:calc(100dvw - 32px);
    height:min(800px,calc(100dvh - 32px));
    max-height:calc(100dvh - 32px);
    max-block-size:calc(100dvh - 32px);
    margin:auto;
    overflow:hidden;
    border:1px solid color-mix(in srgb,var(--ui-link) 18%,var(--ui-line));
    border-radius:20px;
    box-shadow:0 32px 90px rgb(1 22 43/.38),0 4px 18px rgb(1 22 43/.16);
}
.system-interface-v36 .agenda-share-dialog{width:min(820px,calc(100dvw - 32px));height:min(760px,calc(100dvh - 32px))}
.system-interface-v36 .agenda-dialog::backdrop{background:rgb(2 20 38/.7);backdrop-filter:blur(7px) saturate(.8)}
.system-interface-v36 .agenda-dialog-shell{
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    width:100%;
    min-width:0;
    max-width:100%;
    height:100%;
    max-height:100%;
    overflow:hidden;
}
.system-interface-v36 .agenda-dialog-shell>*,
.system-interface-v36 .agenda-dialog-body,
.system-interface-v36 .agenda-dialog-body>*,
.system-interface-v36 .agenda-dialog-body fieldset,
.system-interface-v36 .agenda-dialog-body .grid-2,
.system-interface-v36 .agenda-dialog-body .grid-2>*{min-width:0;max-width:100%}

/* Cabeçalho com identidade visual e contexto claro para a tarefa. */
.system-interface-v36 .agenda-dialog-header{
    position:relative;
    align-items:center;
    padding:20px 24px;
    overflow:hidden;
    border-bottom:0;
    background:linear-gradient(120deg,#062b50 0%,#0b559d 52%,#0f75e8 100%);
}
.system-interface-v36 .agenda-dialog-header::before{position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--ui-lime),#62d6ff);content:""}
.system-interface-v36 .agenda-dialog-header::after{position:absolute;right:-76px;bottom:-108px;width:250px;height:250px;border:45px solid rgb(255 255 255/.06);border-radius:50%;content:"";pointer-events:none}
.system-interface-v36 .agenda-dialog-heading{position:relative;z-index:1;display:flex;align-items:center;gap:14px;min-width:0}
.system-interface-v36 .agenda-dialog-heading>div{min-width:0}
.system-interface-v36 .agenda-dialog-heading-icon{display:grid;flex:0 0 46px;width:46px;height:46px;place-items:center;border:1px solid rgb(255 255 255/.22);border-radius:14px;background:rgb(255 255 255/.12);box-shadow:inset 0 1px 0 rgb(255 255 255/.16)}
.system-interface-v36 .agenda-dialog-heading-icon .app-icon{width:23px;height:23px}
.system-interface-v36 .agenda-dialog-header h2{margin:3px 0 2px;font-size:21px;line-height:1.2;letter-spacing:-.02em}
.system-interface-v36 .agenda-dialog-header p{max-width:620px;line-height:1.45}
.system-interface-v36 .agenda-dialog-header .icon-button{position:relative;z-index:2;flex:0 0 38px;width:38px;height:38px;border-radius:11px;font-size:18px}
.system-interface-v36 .agenda-dialog-header .icon-button:hover{border-color:rgb(255 255 255/.45);background:rgb(255 255 255/.18);transform:none}

/* Conteúdo interno: somente esta região rola verticalmente. */
.system-interface-v36 .agenda-dialog-body{
    display:grid;
    align-content:start;
    gap:16px;
    width:100%;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    padding:20px 24px 24px;
    background:linear-gradient(180deg,color-mix(in srgb,var(--ui-link) 3%,var(--ui-page)),var(--ui-page) 180px);
}
.system-interface-v36 .agenda-dialog-body::-webkit-scrollbar{width:10px}
.system-interface-v36 .agenda-dialog-body::-webkit-scrollbar-track{background:transparent}
.system-interface-v36 .agenda-dialog-body::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:999px;background:color-mix(in srgb,var(--ui-muted) 55%,transparent);background-clip:padding-box}
.system-interface-v36 .agenda-dialog-body fieldset{
    padding:18px;
    border-color:color-mix(in srgb,var(--ui-link) 15%,var(--ui-line));
    border-radius:15px;
    box-shadow:0 7px 22px rgb(11 57 95/.055);
}
.system-interface-v36 .agenda-dialog-body legend{display:flex;align-items:center;gap:8px;padding:0 9px;color:var(--ui-text);font-size:11px;letter-spacing:.07em}
.system-interface-v36 .agenda-dialog-body legend span{display:grid;width:23px;height:23px;place-items:center;border-radius:8px;background:var(--ui-link);color:var(--ui-on-primary);font-size:10px;box-shadow:0 5px 12px color-mix(in srgb,var(--ui-link) 25%,transparent)}
.system-interface-v36 .agenda-dialog-body .grid-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px}
.system-interface-v36 .agenda-dialog label:not(.switch-card){display:block;margin-bottom:6px;color:var(--ui-text);font-size:11px;font-weight:800}
.system-interface-v36 .agenda-dialog input:not([type=radio]):not([type=checkbox]):not([type=color]),
.system-interface-v36 .agenda-dialog select,
.system-interface-v36 .agenda-dialog textarea{width:100%;min-width:0;max-width:100%;border-color:color-mix(in srgb,var(--ui-link) 22%,var(--ui-line));background:var(--ui-surface)}
.system-interface-v36 .agenda-dialog input:not([type=radio]):not([type=checkbox]):not([type=color]),
.system-interface-v36 .agenda-dialog select{min-height:46px}
.system-interface-v36 .agenda-dialog textarea{min-height:108px;resize:vertical}
.system-interface-v36 .agenda-dialog input:focus,
.system-interface-v36 .agenda-dialog select:focus,
.system-interface-v36 .agenda-dialog textarea:focus{border-color:var(--ui-link);box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-link) 13%,transparent);outline:0}
.system-interface-v36 .agenda-dialog input[type=color]{width:74px;height:44px;padding:4px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-surface);cursor:pointer}
.system-interface-v36 .agenda-dialog .field-help{display:block;margin-top:6px;color:var(--ui-muted);font-size:10px;line-height:1.45}

/* O tipo de compromisso funciona como seletor visual, sem perder semântica. */
.system-interface-v36 .agenda-type-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.system-interface-v36 .agenda-type-tabs label{margin:0!important}
.system-interface-v36 .agenda-type-tabs span{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;min-height:68px;place-items:start stretch;align-content:center;padding:11px 12px;text-align:left;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease}
.system-interface-v36 .agenda-type-tabs span>.app-icon{grid-row:1/3;width:21px;height:21px;align-self:center;justify-self:center}
.system-interface-v36 .agenda-type-tabs span b{overflow:hidden;color:inherit;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.system-interface-v36 .agenda-type-tabs span small{overflow:hidden;color:var(--ui-muted);font-size:9px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.system-interface-v36 .agenda-type-tabs span:hover{border-color:color-mix(in srgb,var(--ui-link) 55%,var(--ui-line));background:color-mix(in srgb,var(--ui-link) 5%,var(--ui-surface));transform:translateY(-1px)}
.system-interface-v36 .agenda-type-tabs input:focus-visible+span{outline:3px solid color-mix(in srgb,var(--ui-link) 22%,transparent);outline-offset:2px}
.system-interface-v36 .agenda-type-tabs input:checked+span{box-shadow:0 8px 20px color-mix(in srgb,var(--ui-link) 15%,transparent),inset 0 0 0 1px var(--ui-link)}

/* Rodapé sempre disponível, com hierarquia clara entre ações. */
.system-interface-v36 .agenda-dialog-footer{position:relative;z-index:2;min-height:70px;padding:12px 24px;border-top-color:color-mix(in srgb,var(--ui-link) 13%,var(--ui-line));box-shadow:0 -10px 24px rgb(7 42 71/.055)}
.system-interface-v36 .agenda-dialog-footer .button{min-height:44px;min-width:116px;justify-content:center}
.system-interface-v36 .agenda-dialog-footer .button[type=submit]{min-width:184px;box-shadow:0 9px 20px color-mix(in srgb,var(--ui-link) 22%,transparent)}
.system-interface-v36 .agenda-config-help{border:1px solid var(--ui-line);background:linear-gradient(125deg,color-mix(in srgb,var(--ui-cyan) 7%,var(--ui-surface)),var(--ui-surface));box-shadow:0 7px 22px rgb(11 57 95/.05)}

/* Refinos do calendário para manter a mesma qualidade visual do diálogo. */
.system-interface-v36 .agenda-page-header{padding-left:15px;border-left:4px solid var(--ui-lime)}
.system-interface-v36 .agenda-share-card{border-radius:16px;box-shadow:0 10px 28px rgb(11 57 95/.08)}
.system-interface-v36 .agenda-sidebar,.system-interface-v36 .agenda-calendar{border-color:color-mix(in srgb,var(--ui-link) 12%,var(--ui-line));border-radius:16px;box-shadow:0 10px 28px rgb(11 57 95/.07)}
.system-interface-v36 .agenda-toolbar{background:linear-gradient(180deg,var(--ui-surface),color-mix(in srgb,var(--ui-link) 2%,var(--ui-surface)))}
.system-interface-v36 .month-day:focus-visible,.system-interface-v36 .week-slot:focus-visible,.system-interface-v36 .day-hour>button:focus-visible{position:relative;z-index:1;outline:2px solid var(--ui-link);outline-offset:-2px}

html.agenda-modal-open,html.agenda-modal-open body{overflow:hidden}

@media(max-width:760px){
    .system-interface-v36 .agenda-dialog,
    .system-interface-v36 .agenda-share-dialog{inset:0;width:100dvw;max-width:100dvw;max-inline-size:100dvw;height:100dvh;max-height:100dvh;max-block-size:100dvh;margin:0;border:0;border-radius:0}
    .system-interface-v36 .agenda-dialog-header{padding:16px}
    .system-interface-v36 .agenda-dialog-heading{gap:10px}
    .system-interface-v36 .agenda-dialog-heading-icon{flex-basis:40px;width:40px;height:40px;border-radius:12px}
    .system-interface-v36 .agenda-dialog-header h2{font-size:18px}
    .system-interface-v36 .agenda-dialog-header p{font-size:10px}
    .system-interface-v36 .agenda-dialog-body{padding:15px 14px 20px;scrollbar-gutter:auto}
    .system-interface-v36 .agenda-dialog-body fieldset{padding:14px}
    .system-interface-v36 .agenda-dialog-body .grid-2{grid-template-columns:1fr;gap:13px}
    .system-interface-v36 .agenda-type-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .system-interface-v36 .agenda-type-tabs span{min-height:62px;padding:9px}
    .system-interface-v36 .agenda-dialog-footer{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);min-height:68px;padding:10px 14px}
    .system-interface-v36 .agenda-dialog-footer .button{width:100%;min-width:0;padding-inline:10px}
    .system-interface-v36 .agenda-dialog-footer .button[type=submit]{min-width:0}
    .system-interface-v36 .agenda-dialog-footer .danger{grid-column:1/-1}
}

@media(max-width:420px){
    .system-interface-v36 .agenda-dialog-header p{display:none}
    .system-interface-v36 .agenda-type-tabs span{grid-template-columns:26px minmax(0,1fr);column-gap:7px}
    .system-interface-v36 .agenda-type-tabs span>.app-icon{width:18px;height:18px}
    .system-interface-v36 .agenda-type-tabs span small{display:none}
}

[data-theme="escuro"] .system-interface-v36 .agenda-dialog-body{background:linear-gradient(180deg,#151d29,#111925)}
[data-theme="escuro"] .system-interface-v36 .agenda-dialog-body fieldset,
[data-theme="escuro"] .system-interface-v36 .agenda-type-tabs span,
[data-theme="escuro"] .system-interface-v36 .agenda-dialog-footer{border-color:#34465a;background:#202b39}
[data-theme="escuro"] .system-interface-v36 .agenda-type-tabs input:checked+span{background:#163858;color:#8ac8ff}

/* ========================================================================== */
/* V34 — CALENDÁRIO CENTRAL E AGENDAMENTO PÚBLICO                             */
/* V35 — CORREÇÃO DE RENDERIZAÇÃO E LAYOUT DA AGENDA                         */
/* ========================================================================== */
.system-interface-v34 .agenda-page-header{align-items:flex-end}
.agenda-share-card{display:flex;align-items:center;justify-content:space-between;gap:var(--ui-space-4);margin-bottom:var(--ui-space-4);padding:var(--ui-space-4);border:1px solid var(--ui-line);border-left:4px solid var(--ui-warning);border-radius:var(--ui-radius-lg);background:var(--ui-surface);box-shadow:var(--ui-shadow)}
.agenda-share-card.is-active{border-left-color:var(--ui-success);background:linear-gradient(110deg,color-mix(in srgb,var(--ui-success) 7%,var(--ui-surface)),var(--ui-surface) 52%)}
.agenda-share-status{display:flex;align-items:center;gap:var(--ui-space-3);min-width:260px}.agenda-share-status p{margin:3px 0 0;color:var(--ui-muted);font-size:var(--ui-font-sm)}
.agenda-share-icon{display:grid;width:44px;height:44px;place-items:center;border-radius:14px;background:color-mix(in srgb,var(--ui-link) 12%,var(--ui-surface));color:var(--ui-link)}.agenda-share-icon .app-icon{width:23px;height:23px}
.agenda-share-link{display:flex;align-items:center;justify-content:flex-end;gap:var(--ui-space-2);flex:1}.agenda-share-link input{max-width:380px;background:var(--ui-surface-soft)}.agenda-share-link .is-disabled{pointer-events:none;opacity:.5}
.agenda-workspace{display:grid;grid-template-columns:240px minmax(0,1fr);gap:var(--ui-space-4);align-items:start}
.agenda-sidebar{position:sticky;top:var(--ui-space-4);padding:var(--ui-space-4)}.agenda-create-button{width:100%;justify-content:center;margin-bottom:var(--ui-space-4)}
.agenda-mini-calendar header{display:grid;grid-template-columns:34px 1fr 34px;align-items:center;margin-bottom:var(--ui-space-2);text-align:center}.agenda-mini-calendar header button{height:32px;border:0;border-radius:50%;background:transparent;color:var(--ui-text);font-size:22px;cursor:pointer}.agenda-mini-calendar header button:hover{background:var(--ui-surface-soft)}
.mini-weekdays,.mini-days{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.mini-weekdays span{padding:5px 0;color:var(--ui-muted);font-size:10px;font-weight:800;text-align:center}.mini-days button{aspect-ratio:1;border:0;border-radius:50%;background:transparent;color:var(--ui-text);font-size:11px;cursor:pointer}.mini-days button:hover{background:color-mix(in srgb,var(--ui-link) 10%,transparent)}.mini-days .outside{opacity:.36}.mini-days .selected{background:var(--ui-link);color:var(--ui-on-primary);font-weight:800}.mini-days .today:not(.selected){outline:1px solid var(--ui-link);color:var(--ui-link);font-weight:800}
.agenda-filters{display:grid;gap:10px;margin:var(--ui-space-5) 0 0;padding:var(--ui-space-4) 0 0;border:0;border-top:1px solid var(--ui-line)}.agenda-filters legend{padding:0 0 var(--ui-space-2);font-size:var(--ui-font-sm);font-weight:800}.agenda-filters label{display:flex;align-items:center;gap:9px;color:var(--ui-text);font-size:var(--ui-font-sm);cursor:pointer}.agenda-filters input{width:16px;height:16px}.agenda-dot{width:10px;height:10px;border-radius:3px;background:var(--ui-link)}.agenda-dot.is-block{background:var(--ui-danger)}.agenda-dot.is-task{background:#8b5cf6}.agenda-dot.is-note{background:#d97706}
.agenda-legend{display:grid;gap:8px;margin-top:var(--ui-space-5);padding-top:var(--ui-space-4);border-top:1px solid var(--ui-line)}.agenda-legend strong{font-size:var(--ui-font-sm)}.agenda-legend span{display:flex;align-items:center;gap:8px;color:var(--ui-muted);font-size:11px}.agenda-legend i{width:9px;height:9px;border-radius:50%;background:var(--ui-link)}.agenda-legend .is-requested{background:var(--ui-cyan)}.agenda-legend .is-confirmed{background:var(--ui-success)}.agenda-legend .is-in-service{background:#8b5cf6}
.agenda-calendar{min-width:0;overflow:hidden;padding:0}.agenda-toolbar{display:flex;align-items:center;justify-content:space-between;gap:var(--ui-space-3);padding:var(--ui-space-4);border-bottom:1px solid var(--ui-line)}.agenda-navigation{display:flex;align-items:center;gap:var(--ui-space-2)}.agenda-navigation h2{min-width:220px;margin:0 0 0 var(--ui-space-2);font-size:var(--ui-font-xl);text-transform:capitalize}.agenda-navigation .icon-button{width:auto;min-width:38px;padding:0 10px}.agenda-view-switch{display:flex;padding:3px;border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:var(--ui-surface-soft)}.agenda-view-switch button{height:34px;padding:0 13px;border:0;border-radius:9px;background:transparent;color:var(--ui-muted);font-weight:700;cursor:pointer}.agenda-view-switch button.active{background:var(--ui-surface);color:var(--ui-link);box-shadow:0 2px 7px rgb(15 47 73/.12)}
.agenda-loading{padding:10px;text-align:center;color:var(--ui-link);background:color-mix(in srgb,var(--ui-link) 7%,var(--ui-surface));font-size:var(--ui-font-sm);font-weight:700}.agenda-canvas{min-height:650px;overflow:auto;background:var(--ui-surface)}
.month-weekdays,.month-grid{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr))}.month-weekdays{position:sticky;z-index:2;top:0;background:var(--ui-surface)}.month-weekdays span{padding:12px;border-right:1px solid var(--ui-line);border-bottom:1px solid var(--ui-line);color:var(--ui-muted);font-size:11px;font-weight:800;text-align:center;text-transform:uppercase}.month-day{min-height:126px;padding:8px;border:0;border-right:1px solid var(--ui-line);border-bottom:1px solid var(--ui-line);background:var(--ui-surface);color:var(--ui-text);text-align:left;cursor:pointer}.month-day:hover{background:color-mix(in srgb,var(--ui-link) 3%,var(--ui-surface))}.month-day.outside{background:var(--ui-surface-soft);color:var(--ui-muted)}.month-day-number{display:grid;width:26px;height:26px;margin-left:auto;place-items:center;border-radius:50%;font-size:12px}.month-day.today .month-day-number{background:var(--ui-link);color:var(--ui-on-primary);font-weight:800}.month-events{display:grid;gap:4px;margin-top:4px}
.calendar-event{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:8px;min-width:0;padding:7px 9px;border-left:4px solid var(--event-color);border-radius:8px;background:color-mix(in srgb,var(--event-color) 11%,var(--ui-surface));color:var(--ui-text);text-align:left;cursor:pointer}.calendar-event:hover{box-shadow:0 4px 12px color-mix(in srgb,var(--event-color) 18%,transparent)}.calendar-event b{color:var(--event-color);font-size:11px}.calendar-event strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.calendar-event small{grid-column:2;color:var(--ui-muted);font-size:11px}.calendar-event.compact{display:flex;gap:5px;padding:4px 6px;border-left-width:3px}.calendar-event.compact b{font-size:9px}.calendar-event.compact strong{font-size:10px}.month-more{padding:3px 6px;color:var(--ui-link);font-size:10px;font-weight:800}
.week-calendar{min-width:880px}.week-head{position:sticky;z-index:2;top:0;display:grid;grid-template-columns:64px repeat(7,1fr);border-bottom:1px solid var(--ui-line);background:var(--ui-surface)}.week-head>button{display:grid;justify-items:center;padding:10px;border:0;border-left:1px solid var(--ui-line);background:transparent;color:var(--ui-text);cursor:pointer}.week-head small{color:var(--ui-muted)}.week-head strong{display:grid;width:32px;height:32px;place-items:center;border-radius:50%;font-size:16px}.week-head .today strong{background:var(--ui-link);color:var(--ui-on-primary)}.week-hour{display:grid;grid-template-columns:64px repeat(7,1fr);min-height:72px}.week-hour>span{padding:7px;color:var(--ui-muted);font-size:10px;text-align:right}.week-slot{display:grid;align-content:start;gap:3px;padding:3px;border:0;border-top:1px solid var(--ui-line);border-left:1px solid var(--ui-line);background:transparent;cursor:pointer}.week-slot:hover{background:color-mix(in srgb,var(--ui-link) 4%,transparent)}.week-slot .calendar-event{grid-template-columns:1fr;padding:4px}.week-slot .calendar-event b{display:none}
.day-calendar{min-width:600px}.day-hour{display:grid;grid-template-columns:70px 1fr;min-height:78px}.day-hour>span{padding:9px 12px;color:var(--ui-muted);font-size:11px;text-align:right}.day-hour>button{display:grid;align-content:start;gap:5px;padding:5px;border:0;border-top:1px solid var(--ui-line);border-left:1px solid var(--ui-line);background:transparent;cursor:pointer}.day-hour>button:hover{background:color-mix(in srgb,var(--ui-link) 4%,transparent)}.agenda-list{display:grid;gap:8px;padding:var(--ui-space-4)}.agenda-list h3{margin:16px 0 2px;padding-bottom:8px;border-bottom:1px solid var(--ui-line);font-size:var(--ui-font-md)}.agenda-list .calendar-event{grid-template-columns:74px 1fr;padding:12px 14px}
.agenda-dialog{width:min(940px,calc(100vw - 28px));max-height:calc(100vh - 28px);padding:0;border:0;border-radius:var(--ui-radius-lg);background:var(--ui-surface);color:var(--ui-text);box-shadow:0 28px 80px rgb(2 19 37/.32)}.agenda-dialog::backdrop{background:rgb(1 18 36/.68);backdrop-filter:blur(4px)}.agenda-dialog-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 28px)}.agenda-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ui-space-4);padding:var(--ui-space-5);border-bottom:1px solid color-mix(in srgb,var(--ui-on-primary) 15%,transparent);background:linear-gradient(120deg,var(--ui-navy),var(--ui-blue));color:var(--ui-on-primary)}.agenda-dialog-header h2{margin:3px 0;font-size:var(--ui-font-xl)}.agenda-dialog-header p{margin:0;color:color-mix(in srgb,var(--ui-on-primary) 82%,transparent);font-size:var(--ui-font-sm)}.agenda-dialog-header .page-kicker{color:var(--ui-lime)}.agenda-dialog-header .icon-button{border-color:rgb(255 255 255/.22);background:rgb(255 255 255/.08);color:#fff}.agenda-dialog-body{display:grid;gap:var(--ui-space-4);overflow:auto;padding:var(--ui-space-5);background:var(--ui-page)}.agenda-dialog-body fieldset{margin:0;padding:var(--ui-space-4);border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:var(--ui-surface)}.agenda-dialog-body legend{padding:0 8px;color:var(--ui-link);font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.agenda-dialog-footer{display:flex;align-items:center;gap:var(--ui-space-2);padding:var(--ui-space-3) var(--ui-space-5);border-top:1px solid var(--ui-line);background:var(--ui-surface)}.agenda-dialog-footer>span{flex:1}
.agenda-type-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.agenda-type-tabs input{position:absolute;opacity:0;pointer-events:none}.agenda-type-tabs span{display:grid;min-height:42px;place-items:center;padding:8px;border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:var(--ui-surface);color:var(--ui-muted);font-size:var(--ui-font-sm);font-weight:800;cursor:pointer}.agenda-type-tabs input:checked+span{border-color:var(--ui-link);background:color-mix(in srgb,var(--ui-link) 10%,var(--ui-surface));color:var(--ui-link);box-shadow:inset 0 0 0 1px var(--ui-link)}.agenda-share-dialog{width:min(760px,calc(100vw - 28px))}.switch-card{display:flex;align-items:flex-start;gap:12px;padding:var(--ui-space-4);border:1px solid color-mix(in srgb,var(--ui-success) 35%,var(--ui-line));border-radius:var(--ui-radius);background:color-mix(in srgb,var(--ui-success) 7%,var(--ui-surface))}.switch-card input{width:20px;height:20px;margin-top:2px}.switch-card span{display:grid;gap:3px}.switch-card small{color:var(--ui-muted)}.agenda-config-help{padding:var(--ui-space-4);border-radius:var(--ui-radius);background:var(--ui-surface)}.agenda-config-help p{color:var(--ui-muted)}

.public-booking-page{min-height:100vh;background:radial-gradient(circle at 80% 0,color-mix(in srgb,#11a4ba 16%,transparent),transparent 28%),linear-gradient(145deg,#eef6fb,#f8fbfd 56%,#edf8f4);color:#102f49;font-family:var(--ui-font-body)}.public-booking-shell{width:min(1180px,calc(100% - 32px));margin:auto;padding:28px 0}.booking-brand{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px;padding:14px 18px;border:1px solid rgb(15 111 229/.12);border-radius:18px;background:rgb(255 255 255/.86);box-shadow:0 16px 44px rgb(20 64 94/.09);backdrop-filter:blur(12px)}.booking-brand img{width:185px;height:52px;object-fit:contain;object-position:left}.booking-brand div{display:grid;text-align:right}.booking-brand span{color:#0f6fe5;font-size:10px;font-weight:900;letter-spacing:.13em}.booking-brand strong{font-size:16px}
.booking-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:28px}.booking-intro{padding:28px 8px}.booking-intro h1{margin:10px 0;font:800 clamp(32px,4vw,48px)/1.08 var(--ui-font-heading);color:#082742}.booking-intro>p{margin:0;color:#5f7487;font-size:17px;line-height:1.65}.booking-steps{display:grid;gap:14px;margin:34px 0;padding:0;list-style:none}.booking-steps li{display:flex;align-items:center;gap:13px;color:#617589}.booking-steps b{display:grid;width:36px;height:36px;place-items:center;border:1px solid #cbdbe8;border-radius:50%;background:#fff;color:#527087}.booking-steps li.active b{border-color:#0f6fe5;background:#0f6fe5;color:#fff;box-shadow:0 6px 18px rgb(15 111 229/.25)}.booking-steps li span{display:grid}.booking-steps strong{color:#173b57}.booking-steps small{margin-top:2px}.booking-info-card{padding:18px;border:1px solid rgb(17 164 186/.22);border-radius:16px;background:rgb(255 255 255/.7)}.booking-info-card strong{color:#087f92}.booking-info-card p{margin:6px 0 0;color:#5f7487;line-height:1.55}
.booking-form-card{overflow:hidden;padding:28px;border:1px solid rgb(20 64 94/.12);border-top:5px solid #0f6fe5;border-radius:22px;background:#fff;box-shadow:0 24px 65px rgb(20 64 94/.13)}.booking-form-card form{display:grid;gap:20px}.booking-form-card fieldset{margin:0;padding:20px;border:1px solid #d9e6ef;border-radius:16px;background:#fbfdff}.booking-form-card legend{padding:0 8px;color:#0f6fe5;font-size:12px;font-weight:900;letter-spacing:.04em}.booking-form-card label{display:block;margin-bottom:7px;color:#163750;font-size:13px;font-weight:800}.booking-form-card input,.booking-form-card select,.booking-form-card textarea{width:100%;border-color:#c9d9e5;background:#fff;color:#102f49}.booking-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:10px;min-height:64px}.booking-slots>button{display:grid;gap:2px;min-height:58px;place-items:center;border:1px solid #bdd3e4;border-radius:12px;background:#fff;color:#144260;cursor:pointer}.booking-slots>button:hover{border-color:#0f6fe5;background:#f1f7ff}.booking-slots>button.selected{border-color:#0f6fe5;background:#0f6fe5;color:#fff;box-shadow:0 8px 18px rgb(15 111 229/.24)}.booking-slots>button.is-full,.booking-slots>button:disabled{border-color:#e7c9c9;background:#f7eeee;color:#9a5c5c;cursor:not-allowed;opacity:.8}.booking-slots>button.is-full small,.booking-slots>button:disabled small{color:#a34f4f;font-weight:800;opacity:1}.booking-slots small{opacity:.78}.booking-placeholder,.booking-no-slots{grid-column:1/-1;margin:0;padding:15px;border-radius:12px;background:#f1f6fa;color:#667d8f;text-align:center}.booking-no-slots strong{color:#274b65}.booking-no-slots p{margin:4px 0 0}.booking-submit{width:100%;min-height:52px;justify-content:center;font-size:15px}.booking-privacy{margin:0;color:#71869a;font-size:11px;text-align:center}.booking-success{display:flex;gap:13px;margin-bottom:18px;padding:16px;border:1px solid #a9e1c9;border-radius:14px;background:#ecfbf4}.booking-success>span{display:grid;width:34px;height:34px;place-items:center;border-radius:50%;background:#16865b;color:#fff;font-weight:900}.booking-success p{margin:4px 0 0;color:#487563}.booking-footer{display:flex;justify-content:center;gap:6px;margin-top:28px;color:#71869a;font-size:12px}.booking-footer strong{color:#0f6fe5}.booking-unavailable{max-width:580px;margin:12vh auto;padding:48px;border-radius:22px;background:#fff;box-shadow:0 24px 65px rgb(20 64 94/.13);text-align:center}.booking-unavailable img{width:220px;max-height:80px;object-fit:contain}.booking-unavailable h1{font:800 34px var(--ui-font-heading)}.booking-unavailable p{color:#60788b;line-height:1.65}
.booking-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}

@media(max-width:1100px){.agenda-workspace{grid-template-columns:1fr}.agenda-sidebar{position:static;display:grid;grid-template-columns:180px 1fr 1fr;gap:20px;align-items:start}.agenda-mini-calendar{display:none}.agenda-create-button{margin:0}.agenda-filters,.agenda-legend{margin:0;padding:0;border:0}.agenda-share-card{align-items:stretch;flex-direction:column}.agenda-share-link{justify-content:flex-start}.agenda-share-link input{max-width:none}.booking-layout{grid-template-columns:1fr}.booking-intro{padding:10px}.booking-steps{grid-template-columns:repeat(3,1fr)}.booking-info-card{display:none}}
@media(max-width:760px){.agenda-page-header{align-items:stretch}.agenda-page-header .row-actions{display:grid;grid-template-columns:1fr 1fr}.agenda-share-link{display:grid;grid-template-columns:1fr 1fr}.agenda-share-link input{grid-column:1/-1}.agenda-workspace{display:block}.agenda-sidebar{display:none}.agenda-toolbar{align-items:stretch;flex-direction:column}.agenda-navigation{justify-content:center}.agenda-navigation h2{min-width:0;flex:1;font-size:17px;text-align:center}.agenda-view-switch{display:grid;grid-template-columns:repeat(4,1fr)}.agenda-canvas{min-height:560px}.month-weekdays,.month-grid{grid-template-columns:repeat(7,minmax(88px,1fr))}.agenda-type-tabs{grid-template-columns:1fr 1fr}.agenda-dialog-header,.agenda-dialog-body,.agenda-dialog-footer{padding:16px}.agenda-dialog-footer{display:grid;grid-template-columns:1fr 1fr}.agenda-dialog-footer>span{display:none}.agenda-dialog-footer .danger{grid-column:1/-1}.booking-brand{align-items:flex-start;flex-direction:column}.booking-brand div{text-align:left}.booking-layout{gap:10px}.booking-intro h1{font-size:34px}.booking-steps{display:none}.booking-form-card{padding:18px;border-radius:18px}.booking-form-card fieldset{padding:15px}.public-booking-shell{width:min(100% - 20px,1180px);padding:10px 0}.booking-footer{align-items:center;flex-direction:column}}

/* V31 — A identidade da oficina é uma configuração administrativa essencial.
 * A correção reutiliza a caixa de logotipo e o formulário globais. */
.system-interface-v31 .company-logo-box>img{display:block;max-width:100%}
.saas-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.saas-layout .saas-sidebar{width:var(--saas-sidebar);padding:0 0 14px;background:linear-gradient(180deg,var(--saas-navy) 0%,var(--saas-navy-light) 100%);box-shadow:6px 0 24px rgba(6,26,50,.12)}
.saas-layout .saas-brand{height:76px;padding:10px 24px;border-bottom:1px solid rgba(255,255,255,.11)}
.saas-layout .saas-brand img{width:185px;height:54px;object-fit:contain}
.saas-context{display:flex;align-items:center;gap:10px;margin:14px 14px 2px;padding:11px 12px;border:1px solid rgba(98,201,229,.16);border-radius:11px;background:rgba(255,255,255,.055)}
.saas-context-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:rgba(98,201,229,.14);color:var(--saas-cyan)}
.saas-context small,.saas-context strong{display:block}.saas-context small{color:#87a9c2;font-size:9px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.saas-context strong{color:#fff;font-size:12px;margin-top:1px}
.saas-layout .saas-sidebar nav{display:block;flex:1;min-height:0;margin:7px 0 0;padding:0 12px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(98,201,229,.5) transparent}
.saas-layout .nav-label{padding:16px 12px 6px;color:#7998b0;font-size:9px;letter-spacing:.14em}
.saas-layout .saas-sidebar nav>a,.saas-layout .nav-group-toggle,.saas-layout .saas-sidebar-footer a{min-height:43px;padding:9px 12px;border-radius:9px;color:#dce9f4;font-size:13px;font-weight:650}
.saas-layout .saas-sidebar nav>a .saas-icon,.saas-layout .nav-group-toggle .saas-icon,.saas-layout .saas-sidebar-footer .saas-icon{color:#69c8e4}
.saas-layout .saas-sidebar nav>a:hover,.saas-layout .saas-sidebar nav>a.active,.saas-layout .nav-group-toggle:hover,.saas-layout .nav-group.open>.nav-group-toggle{background:rgba(255,255,255,.1);color:#fff}
.saas-layout .saas-sidebar nav>a.active{box-shadow:inset 3px 0 var(--saas-cyan)}
.saas-layout .nav-group{margin:3px 0}
.saas-layout .nav-group-toggle{cursor:pointer}
.saas-layout .nav-group-toggle span{flex:1}
.saas-layout .nav-group-toggle .chevron{width:15px;height:15px;color:#7fa4bd;transition:transform .2s}
.saas-layout .nav-group.open .chevron{transform:rotate(90deg)}
.saas-layout .nav-submenu{display:none;margin:2px 0 7px}
.saas-layout .nav-group.open .nav-submenu{display:block}
.saas-layout .nav-submenu a{min-height:36px;margin-left:20px;padding:7px 8px 7px 15px;border-left:1px solid rgba(105,200,228,.28);color:#bcd0df;font-size:12px}
.saas-layout .nav-submenu a:hover,.saas-layout .nav-submenu a.active{color:#fff;background:rgba(98,201,229,.09);border-left-color:var(--saas-cyan)}
.saas-layout .nav-submenu a.active{color:#7ed9f0;font-weight:700}
.saas-layout .nav-submenu .saas-icon{width:15px;height:15px}
.saas-sidebar-footer{display:grid;gap:3px;margin-top:auto;padding:10px 12px 0;border-top:1px solid rgba(255,255,255,.1)}
.saas-layout .saas-sidebar-footer a:first-child{color:#b9d4e4}
.saas-layout .saas-sidebar-footer a:last-child{color:#b8c9d7}
.saas-layout .saas-main{margin-left:var(--saas-sidebar)}
.saas-layout .saas-topbar{height:76px;padding:0 26px;background:rgba(255,255,255,.96);color:var(--ink);border:0;border-top:3px solid var(--saas-green);border-bottom:1px solid #dce7f1;box-shadow:0 4px 16px rgba(7,35,65,.035);backdrop-filter:blur(12px)}
.saas-layout .saas-topbar .menu-toggle{color:var(--saas-navy);background:#edf4fb;box-shadow:none}
.saas-layout .topbar-title{display:grid;gap:1px;min-width:0}
.saas-layout .topbar-title small{color:#71849a;font-size:9px;font-weight:800;letter-spacing:.13em}
.saas-layout .topbar-title strong{max-width:430px;color:var(--saas-navy);font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.saas-topbar-actions{display:flex;align-items:center;gap:9px;margin-left:auto}
.saas-quick-action{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 14px;border-radius:9px;background:#eaf3ff;color:#0c63c7;font-size:12px;font-weight:800;transition:.2s}
.saas-quick-action:hover{background:#dcecff;color:#084e9e}
.saas-top-icon{display:grid;place-items:center;width:37px;height:37px;padding:0;border:1px solid #dce6f0;border-radius:9px;background:#fff;color:#526a82;box-shadow:none}
.saas-top-icon:hover{transform:none;background:#edf4fb;color:var(--saas-blue)}
.saas-layout .saas-user-area{margin-left:10px;padding-left:18px;border-left:1px solid #dde6ef}
.saas-layout .saas-user-area strong{color:var(--saas-navy)}
.saas-layout .saas-user-area small{color:#73859a}
.saas-layout .saas-user-area .user-avatar{border-radius:50%;background:linear-gradient(145deg,#e9f3ff,#cce4ff);color:#0d65c9}
.saas-layout .saas-content{width:100%;max-width:1680px;padding:30px clamp(20px,2.4vw,38px) 48px}
.saas-layout .alert{display:flex;align-items:center;min-height:46px;padding:12px 16px;border:1px solid transparent;border-radius:11px;box-shadow:0 3px 10px rgba(16,42,67,.025)}
.saas-layout .alert.sucesso{border-color:#cbeadd;background:#e9f8f2;color:#12634a}
.saas-layout .alert.erro{border-color:#f2ceca;background:#fff0ee;color:#9e2d25}
.saas-page-header{margin-bottom:20px}
.saas-page-header h1{font-size:clamp(25px,2vw,31px);letter-spacing:-.025em}
.saas-page-header p{font-size:14px}
.page-summary{display:flex;align-items:stretch;gap:8px}
.page-summary>span{min-width:116px;padding:10px 14px;border:1px solid #dbe6f0;border-radius:11px;background:#fff;text-align:center}
.page-summary strong,.page-summary small{display:block}.page-summary strong{color:var(--saas-navy);font-size:19px}.page-summary small{color:#718399;font-size:10px}
.access-guide{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px;padding:14px 16px;border:1px solid #c6ddf3;border-radius:12px;background:linear-gradient(90deg,#edf6ff,#f7fbff)}
.access-guide-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#0f6fe5;color:#fff;font-weight:800;flex:0 0 auto}
.access-guide strong{display:block;color:#0a4f96;font-size:12px}.access-guide p{margin:2px 0 0;color:#55718d;font-size:12px}
.profiles-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}
.profile-editor{padding:0;overflow:visible;border-color:#d8e4ef;box-shadow:0 8px 30px rgba(8,43,76,.055)}
.profile-editor-header,.permissions-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid #e3eaf1}
.profile-editor-header>div,.permissions-heading>div:first-child{display:flex;align-items:center;gap:12px}
.profile-editor-header small,.permissions-heading small,.profiles-list-heading small{display:block;color:#70849a;font-size:9px;font-weight:800;letter-spacing:.12em}
.profile-editor-header h2,.permissions-heading h2,.profiles-list-heading h2{margin:2px 0 0;color:var(--saas-navy);font-size:17px}
.section-number{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#e8f2ff;color:#0f6fe5;font:800 13px Manrope}
.profile-basics{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:18px;padding:20px 22px 22px}
.profile-basics label{color:#23384f;font-size:12px}.profile-basics input,.profile-basics textarea{min-height:46px;border-color:#cddbea;background:#fbfdff}.profile-basics textarea{min-height:90px}.profile-basics small{display:block;margin-top:5px;color:#7b8da0;font-size:10px}
.permissions-heading{padding-top:17px;padding-bottom:17px;background:#fbfdff;border-top:1px solid #e3eaf1}
.permission-actions{display:flex;align-items:center;gap:7px}
.text-action{padding:7px 9px;border:0;background:transparent;color:#0e67cc;font-size:11px;box-shadow:none}.text-action:hover{transform:none;background:#eaf3ff}.text-action.muted{color:#687b90}.text-action.muted:hover{background:#eef2f6}
.permission-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px 22px 22px;background:#fbfdff}
.permission-group{overflow:hidden;border:1px solid #dce6ef;border-radius:12px;background:#fff}
.permission-group>header{display:flex;align-items:center;gap:10px;padding:13px 14px;border-bottom:1px solid #e5ecf3;background:#f8fbfe}
.permission-group-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:9px;background:#e7f3ff;color:#0e68ce;font-weight:800;font-size:12px;flex:0 0 auto}
.permission-group header strong,.permission-group header small{display:block}.permission-group header strong{color:#20364d;font-size:12px}.permission-group header small{margin-top:2px;color:#77899b;font-size:9px;line-height:1.35}
.permission-options{display:grid}
.permission-option{position:relative;display:flex;align-items:flex-start;gap:10px;min-height:67px;margin:0;padding:12px 13px;border-bottom:1px solid #edf1f5;cursor:pointer;font-weight:400;transition:.16s}
.permission-option:last-child{border-bottom:0}.permission-option:hover{background:#f7fbff}.permission-option:has(input:checked){background:#f2f8ff}
.permission-option input{position:absolute;width:1px;height:1px;opacity:0}
.permission-checkbox{display:grid;place-items:center;width:20px;height:20px;margin-top:1px;border:1.5px solid #b8c8d8;border-radius:6px;background:#fff;color:transparent;font-size:12px;font-weight:900;flex:0 0 auto;transition:.16s}
.permission-option input:focus-visible+.permission-checkbox{outline:3px solid rgba(15,111,229,.2);outline-offset:2px}
.permission-option input:checked+.permission-checkbox{border-color:#0f6fe5;background:#0f6fe5;color:#fff}
.permission-option input:disabled+.permission-checkbox{border-color:#78b900;background:#78b900;color:#fff}
.permission-copy{min-width:0;flex:1}.permission-copy strong,.permission-copy small{display:block}.permission-copy strong{color:#21364c;font-size:11px}.permission-copy small{margin-top:3px;color:#75879a;font-size:9px;font-weight:400;line-height:1.35}
.permission-option em{align-self:center;padding:3px 6px;border-radius:99px;background:#edf6e4;color:#5b8f12;font-size:8px;font-style:normal;font-weight:800;text-transform:uppercase}
.profile-submit-bar{position:sticky;bottom:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 22px;border-top:1px solid #dce6ef;border-radius:0 0 14px 14px;background:rgba(255,255,255,.96);box-shadow:0 -8px 24px rgba(15,43,72,.06);backdrop-filter:blur(12px)}
.profile-status-toggle{display:flex;align-items:center;gap:10px;margin:0;cursor:pointer}.profile-status-toggle>input{position:absolute;opacity:0;width:1px;height:1px}.profile-status-toggle>span:last-child strong,.profile-status-toggle>span:last-child small{display:block}.profile-status-toggle>span:last-child strong{color:#263a50;font-size:11px}.profile-status-toggle>span:last-child small{color:#7c8da0;font-size:9px;font-weight:400}
.status-switch{position:relative;width:42px;height:23px;border-radius:99px;background:#cbd6e1;transition:.2s}.status-switch:after{content:'';position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.15);transition:.2s}.profile-status-toggle input:checked+.status-switch{background:#78b900}.profile-status-toggle input:checked+.status-switch:after{left:22px}.profile-status-toggle input:focus-visible+.status-switch{outline:3px solid rgba(15,111,229,.2);outline-offset:2px}
.profile-submit-bar button{min-width:150px}
.profiles-list-column{position:sticky;top:96px}
.profiles-list-panel{padding:0;overflow:hidden;border-color:#d8e4ef;box-shadow:0 8px 30px rgba(8,43,76,.045)}
.profiles-list-heading{display:flex;align-items:center;justify-content:space-between;padding:20px;border-bottom:1px solid #e1e9f1}
.profiles-list-heading>span{display:grid;place-items:center;min-width:29px;height:29px;padding:0 8px;border-radius:9px;background:#e8f2ff;color:#0f67ca;font-size:12px;font-weight:800}
.profile-cards{display:grid;max-height:calc(100vh - 210px);overflow-y:auto}
.profile-card{padding:17px 18px;border-bottom:1px solid #e6ecf2;background:#fff;transition:.16s}.profile-card:last-child{border-bottom:0}.profile-card:hover{background:#f8fbfe}.profile-card.is-selected{background:#f0f7ff;box-shadow:inset 3px 0 #0f6fe5}
.profile-card-top{display:flex;align-items:center;justify-content:space-between}.profile-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:linear-gradient(145deg,#e4f2ff,#d5eaff);color:#0d65c8;font-weight:800}
.profile-card h3{margin:11px 0 4px;color:#17314b;font-size:13px}.profile-card p{min-height:34px;margin:0;color:#708297;font-size:10px;line-height:1.5}.profile-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding-top:10px;border-top:1px solid #edf1f5;color:#75879b;font-size:9px}.profile-card footer strong{color:#29425b;font-size:10px}.profile-card footer a{color:#0d66ca;font-weight:800}.profile-card footer a:hover{text-decoration:underline}
.profiles-empty{display:grid;justify-items:center;padding:46px 24px;text-align:center}.profiles-empty>span{display:grid;place-items:center;width:52px;height:52px;border-radius:15px;background:#eaf3fc;color:#176cc7;font-size:24px}.profiles-empty strong{margin-top:13px;color:#20364e;font-size:12px}.profiles-empty p{margin:5px 0 0;color:#76889c;font-size:10px}

[data-theme="escuro"] .saas-layout{--saas-page:#151927;--saas-surface:#202636;background:#151927}
[data-theme="escuro"] .saas-layout .saas-topbar,[data-theme="escuro"] .profile-submit-bar{background:rgba(32,38,54,.96);border-color:#384154}
[data-theme="escuro"] .saas-layout .topbar-title strong,[data-theme="escuro"] .saas-layout .saas-user-area strong,[data-theme="escuro"] .saas-page-header h1,[data-theme="escuro"] .profile-editor-header h2,[data-theme="escuro"] .permissions-heading h2,[data-theme="escuro"] .profiles-list-heading h2{color:#f0f5fb}
[data-theme="escuro"] .page-summary>span,[data-theme="escuro"] .permission-group,[data-theme="escuro"] .profile-card,[data-theme="escuro"] .profile-submit-bar{background:#202636;border-color:#384154}
[data-theme="escuro"] .access-guide,[data-theme="escuro"] .permissions-heading,[data-theme="escuro"] .permission-groups,[data-theme="escuro"] .permission-group>header{background:#1b2231;border-color:#384154}
[data-theme="escuro"] .permission-option{border-color:#343d4f}[data-theme="escuro"] .permission-option:hover,[data-theme="escuro"] .permission-option:has(input:checked),[data-theme="escuro"] .profile-card:hover,[data-theme="escuro"] .profile-card.is-selected{background:#252f42}
[data-theme="escuro"] .permission-group header strong,[data-theme="escuro"] .permission-copy strong,[data-theme="escuro"] .profile-card h3,[data-theme="escuro"] .profile-status-toggle>span:last-child strong{color:#e9f0f7}
[data-theme="escuro"] .profile-basics input,[data-theme="escuro"] .profile-basics textarea{background:#171c28;border-color:#465167}

@media(max-width:1180px){
    .profiles-layout{grid-template-columns:1fr}
    .profiles-list-column{position:static}
    .profile-cards{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}
    .profile-card:nth-child(odd){border-right:1px solid #e6ecf2}
}
@media(max-width:900px){
    .saas-layout .saas-main{margin-left:0}
    .saas-layout .saas-sidebar{transform:translateX(-100%);transition:transform .25s}
    .sidebar-open .saas-layout .saas-sidebar{transform:translateX(0)}
    .saas-layout .saas-content{padding:22px 15px 36px}
    .saas-topbar-actions{margin-left:auto}
    .saas-quick-action{display:none}
}
@media(max-width:720px){
    .saas-layout .saas-topbar{height:68px;padding:0 13px}
    .saas-layout .topbar-title strong{max-width:45vw}
    .saas-layout .saas-user-area{padding-left:8px;margin-left:0}
    .saas-layout .saas-user-area>span:last-child{display:none}
    .saas-page-header{align-items:stretch}
    .page-summary{width:100%}.page-summary>span{flex:1;min-width:0}
    .profile-basics,.permission-groups{grid-template-columns:1fr}
    .profile-editor-header,.permissions-heading{align-items:flex-start;flex-direction:column}
    .permission-actions{width:100%;justify-content:flex-start}
    .profile-cards{grid-template-columns:1fr}
    .profile-card:nth-child(odd){border-right:0}
}
@media(max-width:520px){
    .saas-layout .saas-content{padding:18px 10px 30px}
    .access-guide{padding:12px}
    .profile-editor-header,.permissions-heading,.profile-basics,.permission-groups{padding-left:14px;padding-right:14px}
    .profile-submit-bar{align-items:stretch;flex-direction:column;padding:13px 14px}
    .profile-submit-bar button{width:100%}
    .permission-actions{display:grid;grid-template-columns:1fr 1fr}
}

/* Dashboard executivo V14. */
.dashboard-header{margin-bottom:18px}
.saas-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:26px}
.saas-kpi-card{position:relative;display:flex;align-items:center;gap:13px;min-width:0;padding:18px;border:1px solid #dce6ef;border-radius:14px;background:#fff;box-shadow:0 6px 20px rgba(8,43,76,.04);overflow:hidden}
.saas-kpi-card:after{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:currentColor}
.saas-kpi-card>div{min-width:0}.saas-kpi-card small,.saas-kpi-card strong,.saas-kpi-card p{display:block}.saas-kpi-card small{color:#71849a;font-size:8px;font-weight:800;letter-spacing:.1em}.saas-kpi-card strong{margin-top:5px;color:#17314a;font-size:clamp(18px,1.5vw,24px);white-space:nowrap}.saas-kpi-card p{margin:3px 0 0;color:#7c8da0;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.saas-kpi-icon,.action-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;font:800 12px Manrope;flex:0 0 auto}
.is-blue{color:#0f6fe5}.is-blue>.saas-kpi-icon,.action-icon.is-blue{background:#e7f1ff;color:#0f6fe5}.is-cyan{color:#149cb0}.is-cyan>.saas-kpi-icon,.action-icon.is-cyan{background:#e1f7fa;color:#149cb0}.is-green{color:#5d9d10}.is-green>.saas-kpi-icon,.action-icon.is-green{background:#edf7e3;color:#5d9d10}.is-red{color:#d44a43}.is-red>.saas-kpi-icon,.action-icon.is-red{background:#fff0ee;color:#d44a43}.is-orange{color:#dc8424}.is-orange>.saas-kpi-icon,.action-icon.is-orange{background:#fff3e6;color:#dc8424}.is-purple{color:#7659c7}.is-purple>.saas-kpi-icon,.action-icon.is-purple{background:#f1edff;color:#7659c7}
.dashboard-section{margin-bottom:26px}.section-heading-inline{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:13px}.section-heading-inline h2{margin:2px 0 0;color:#17314a;font-size:18px}.section-heading-inline>small{color:#7b8da0;font-size:10px}.section-heading-inline>a{color:#0f67c9;font-size:11px;font-weight:800}
.saas-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.saas-action-grid>a{display:flex;align-items:center;gap:11px;min-width:0;padding:15px;border:1px solid #dce6ef;border-radius:13px;background:#fff;box-shadow:0 5px 16px rgba(8,43,76,.035);transition:.18s}.saas-action-grid>a:hover{transform:translateY(-2px);border-color:#bdd5ec;box-shadow:0 10px 24px rgba(8,43,76,.07)}.saas-action-grid>a>span:nth-child(2){min-width:0;flex:1}.saas-action-grid strong,.saas-action-grid small{display:block}.saas-action-grid strong{color:#21384f;font-size:11px}.saas-action-grid small{margin-top:2px;color:#7b8da0;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.saas-action-grid b{color:#9aacc0}
.dashboard-companies-panel{padding:20px;overflow:hidden}.dashboard-companies-panel .section-heading-inline{margin-bottom:4px}.table-instruction{margin:0 0 14px;color:#788a9d;font-size:10px}.saas-modern-table{min-width:760px}.saas-modern-table th{padding:11px 13px;background:#f6f9fc;color:#6e8196;border-block:1px solid #e2e9f0;font-size:9px}.saas-modern-table td{padding:11px 13px}.saas-modern-table tbody tr:hover{background:#f9fbfd}.dashboard-company-button{display:flex;align-items:center;gap:9px;padding:0;background:transparent;color:#17314a;box-shadow:none;text-align:left}.dashboard-company-button:hover{transform:none;background:transparent;color:#0f67c9}.dashboard-company-button>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e6f2ff;color:#0f67c9;font-size:10px}.dashboard-company-button strong{font-size:11px}.contact-cell{color:#61768b;font-size:10px}
[data-theme="escuro"] .saas-kpi-card,[data-theme="escuro"] .saas-action-grid>a,[data-theme="escuro"] .dashboard-companies-panel{background:#202636;border-color:#384154}[data-theme="escuro"] .saas-kpi-card strong,[data-theme="escuro"] .section-heading-inline h2,[data-theme="escuro"] .saas-action-grid strong{color:#edf2f8}[data-theme="escuro"] .saas-modern-table th{background:#171c28;border-color:#384154}[data-theme="escuro"] .saas-modern-table tbody tr:hover{background:#252d3e}
@media(max-width:1280px){.saas-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.saas-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.saas-kpi-grid,.saas-action-grid{grid-template-columns:1fr}.section-heading-inline{align-items:flex-start;flex-direction:column;gap:3px}.saas-kpi-card{padding:15px}}
/* Paginação compartilhada das áreas operacional e SaaS. */
.pagination-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;margin:16px 0 24px;padding:14px 16px;background:var(--card,#fff);border:1px solid var(--border,#d9e3ee);border-radius:12px;color:var(--muted,#64748b);font-size:13px}
.pagination-links{display:flex;align-items:center;justify-content:center;gap:6px}
.pagination-links a{display:grid;place-items:center;min-width:34px;height:34px;padding:0 8px;border:1px solid var(--border,#d9e3ee);border-radius:8px;color:inherit;text-decoration:none;font-weight:700}
.pagination-links a:hover,.pagination-links a.is-current{background:#1167d8;border-color:#1167d8;color:#fff}.pagination-links .is-disabled{display:grid;place-items:center;min-width:34px;height:34px;padding:0 8px;border:1px solid var(--border,#d9e3ee);border-radius:8px;color:#a7b3c2;font-weight:700}.pagination-ellipsis{display:grid;place-items:center;min-width:20px;height:34px;color:var(--muted,#64748b);font-weight:700}
.pagination-size{justify-self:end;margin:0}.pagination-size label{display:flex;align-items:center;gap:8px;margin:0;font-weight:600}
.pagination-size select{width:auto;min-width:72px;margin:0;padding:7px 28px 7px 10px}
@media(max-width:760px){.pagination-bar{grid-template-columns:1fr;text-align:center}.pagination-size{justify-self:center}.pagination-summary{order:2}.pagination-links{order:1}.pagination-size{order:3}}
.system-version-banner{display:flex;align-items:center;gap:14px;margin:-8px 0 22px;padding:11px 15px;border:1px solid #cfe1f3;border-radius:10px;background:#f2f8ff;color:#36516e;font-size:12px}.system-version-banner strong{color:#0b4f9c}.system-version-banner span{padding-left:14px;border-left:1px solid #cfe1f3}.system-version-banner small{margin-left:auto}.system-version-banner a{margin-left:auto;color:#0758c0;font-weight:800}.system-version-banner.is-warning{background:#fff7e8;border-color:#f1d59d;color:#795719}.system-version-banner.is-warning strong{color:#9a5c00}
[data-theme="escuro"] .pagination-bar,[data-theme="escuro"] .system-version-banner{background:#202636;border-color:#384154;color:#c3cedb}
[data-theme="escuro"] .pagination-links a{border-color:#465167;color:#dce6f1}
[data-theme="escuro"] .pagination-size select{background:#171c28;border-color:#465167;color:#edf2f8}
[data-theme="escuro"] .system-version-banner strong{color:#8fc2ff}
[data-theme="escuro"] .system-version-banner span{border-color:#465167}
[data-theme="escuro"] .system-version-banner.is-warning{background:#332a1e;border-color:#6f542c;color:#f2d49b}
@media(max-width:620px){.system-version-banner{align-items:flex-start;flex-wrap:wrap}.system-version-banner small,.system-version-banner a{width:100%;margin-left:0}}

/* V16 — identificação de seção com contraste reforçado. */
.page-header .page-kicker,.panel-heading .page-kicker,.section-heading-inline .page-kicker{
    display:inline-flex;align-items:center;min-height:24px;margin-bottom:8px;padding:4px 9px;
    border-left:3px solid #78b900;border-radius:5px;background:#e8f3ff;color:#0759bb;
    font-size:10px;font-weight:900;letter-spacing:.14em;line-height:1;text-transform:uppercase
}
.people-modal-header .page-kicker,.system-screen-header .page-kicker{
    display:inline-flex;align-items:center;min-height:23px;margin-bottom:7px;padding:4px 9px;
    border:1px solid rgba(194,255,78,.46);border-radius:5px;background:rgba(120,185,0,.16);
    color:#ceff70;font-size:10px;font-weight:900;letter-spacing:.15em;line-height:1
}
.office-layout .people-modal-card>.people-modal-header,
.saas-layout .people-modal-card>.people-modal-header{
    background:linear-gradient(115deg,#082b50 0%,#0d68ce 100%);border-top:3px solid #78b900
}

/* V16 — janela universal de inclusão e edição. */
.system-screen-modal{position:fixed;inset:0;z-index:1500;display:grid;place-items:center;padding:18px}
.system-screen-modal[hidden]{display:none}
.system-screen-backdrop{position:absolute;inset:0;background:rgba(2,18,34,.73);backdrop-filter:blur(5px)}
.system-screen-card{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr);width:min(1120px,100%);max-height:calc(100vh - 36px);overflow:hidden;border:1px solid rgba(180,217,247,.45);border-top:3px solid #78b900;border-radius:14px;background:#f7faff;box-shadow:0 28px 80px rgba(0,18,38,.36)}
.system-screen-card.is-wide{width:min(1380px,100%)}
.system-screen-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:18px 20px;background:linear-gradient(115deg,#082b50 0%,#0f6fe5 100%);color:#fff}
.system-screen-header h2{margin:0;color:#fff;font-size:21px;line-height:1.2;letter-spacing:-.015em}
.system-screen-header p{max-width:820px;margin:5px 0 0;color:#e3f1ff;font-size:12px;line-height:1.5}
.system-screen-close{display:grid;place-items:center;width:38px;height:38px;min-width:38px;padding:0;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;font-size:27px;line-height:1;box-shadow:none}
.system-screen-close:hover{transform:none;background:rgba(255,255,255,.17)}
.system-screen-body{min-height:220px;padding:20px;overflow:auto;overscroll-behavior:contain;background:#f7faff}
.system-screen-body>.alert{margin:0 0 15px}
.system-screen-body>.panel,.system-screen-body>form>.panel{border-color:#d8e5f1;box-shadow:0 4px 16px rgba(7,42,76,.04)}
.system-screen-body>.form-panel{margin:0}
.system-screen-body>.form-panel>form{margin:0}
.system-screen-body .form-actions{position:sticky;bottom:-20px;z-index:8;margin:24px -20px -20px;padding:15px 20px;border-top:1px solid #dce6f0;background:rgba(255,255,255,.97);box-shadow:0 -8px 22px rgba(8,42,75,.07);backdrop-filter:blur(10px)}
.system-screen-body form>.panel:first-of-type{margin-top:0}
.system-screen-tools{display:flex;justify-content:flex-end;margin:0 0 14px}
.system-screen-loading,.system-screen-error{display:grid;justify-items:center;align-content:center;min-height:280px;padding:36px;text-align:center}
.system-screen-loading span{width:38px;height:38px;margin-bottom:14px;border:4px solid #d7e8fa;border-top-color:#0f6fe5;border-radius:50%;animation:system-screen-spin .7s linear infinite}
.system-screen-loading strong,.system-screen-error strong{color:#17324d;font-size:15px}
.system-screen-error p{max-width:560px;margin:7px 0 18px;color:#687e94;font-size:12px}
@keyframes system-screen-spin{to{transform:rotate(360deg)}}
body.system-screen-open{overflow:hidden}

/* V17 — atalhos financeiros, menu pessoal e configurações. */
.financial-shortcut{position:relative}.financial-shortcut b{position:absolute;top:-2px;right:-2px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border:2px solid #fff;border-radius:99px;color:#fff;font-size:9px;line-height:1}.financial-shortcut.is-receivable b{background:#2aaa64}.financial-shortcut.is-payable b{background:#df3d45}
.user-menu{position:relative;align-self:stretch;display:flex;align-items:center}.user-menu-trigger{appearance:none;background:transparent;border:0;box-shadow:none;cursor:pointer;text-align:left}.user-menu-trigger:hover{transform:none;background:#edf4fb}.user-menu-trigger .user-chevron{width:14px;height:14px;margin-left:4px;transition:transform .18s}.user-menu-trigger[aria-expanded="true"] .user-chevron{transform:rotate(90deg)}
.user-dropdown{position:absolute;z-index:1200;top:calc(100% - 5px);right:0;width:285px;padding:8px;border:1px solid #dce6ef;border-radius:12px;background:#fff;box-shadow:0 20px 55px rgba(7,29,52,.2)}.user-dropdown[hidden]{display:none}.user-dropdown-head{display:flex;align-items:center;gap:11px;margin:-8px -8px 7px;padding:15px;border-bottom:1px solid #e4ebf2;background:#f7faff;border-radius:12px 12px 0 0}.user-dropdown-head>span:last-child{display:grid;min-width:0}.user-dropdown-head strong,.user-dropdown-head small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-dropdown-head strong{color:#102c49;font-size:13px}.user-dropdown-head small{color:#71849a;font-size:10px}.user-dropdown>a{display:flex;align-items:center;gap:11px;padding:11px;border-radius:8px;color:#52667b;font-size:13px;font-weight:700}.user-dropdown>a:hover{background:#edf5fd;color:#0f67c9}.user-dropdown .app-icon,.user-dropdown .saas-icon{width:18px;height:18px}
.profile-photo-row{display:flex;align-items:center;gap:18px;margin-bottom:18px;padding:15px;border:1px solid var(--line);border-radius:12px;background:#f7faff}.profile-photo-preview{display:grid;place-items:center;width:74px;height:74px;overflow:hidden;border-radius:50%;background:linear-gradient(145deg,#dbeeff,#bcdcff);color:#0e65c6;font-size:24px;font-weight:900}.profile-photo-preview img,.user-avatar img{width:100%;height:100%;object-fit:cover}.user-avatar{overflow:hidden}.profile-photo-row small,.form-help{display:block;margin-top:5px;color:var(--muted);font-size:11px}
[data-theme="escuro"] .user-dropdown,[data-theme="escuro"] .user-dropdown-head,[data-theme="escuro"] .profile-photo-row{background:#202636;border-color:#384154}[data-theme="escuro"] .user-dropdown-head strong{color:#f0f5fb}[data-theme="escuro"] .user-dropdown>a{color:#c6d0dc}[data-theme="escuro"] .user-menu-trigger:hover{background:#30394c}
@media(max-width:650px){.user-dropdown{position:fixed;top:68px;right:10px;left:10px;width:auto}.financial-shortcut{display:grid!important}.profile-photo-row{align-items:flex-start;flex-direction:column}}
.whatsapp-button{background:#20aa62;color:#fff}.whatsapp-button:hover{background:#168b4e}.catalog-quick-actions{display:flex;gap:8px}.catalog-quick-actions .button{padding:8px 11px;font-size:11px}.lock-alert{border-left:4px solid #ef9b24;background:#fff7e8;color:#704b14}.os-management-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:18px}.os-management-grid.os-history-only{grid-template-columns:1fr}.status-timeline article{position:relative;display:grid;grid-template-columns:18px 1fr;gap:10px;padding-bottom:17px}.status-timeline article>span{width:11px;height:11px;margin-top:4px;border:3px solid #cbe1fa;border-radius:50%;background:#0f6fe5}.status-timeline article:not(:last-child):before{content:'';position:absolute;left:5px;top:15px;bottom:0;width:1px;background:#cdddeb}.status-timeline article div{display:grid}.status-timeline small,.receipt-row small,.finance-summary small{color:var(--muted);font-size:10px}.status-timeline p{margin:4px 0 0;color:#61758a;font-size:11px}.finance-summary{display:flex;align-items:center;gap:20px;padding:13px;border-radius:10px;background:#f1f7fd}.finance-summary span{display:grid}.inline-finance-form{display:grid;grid-template-columns:1fr .7fr 1fr auto;gap:8px;margin:14px 0}.receipt-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.receipt-row>span:first-child{display:grid}.receipt-row form{display:flex;gap:7px;margin:0}.receipt-row input{width:190px}.receipt-row.is-reversed{opacity:.62}.button.danger{background:#d94a47}.button.danger:hover{background:#bb3836}
@media(max-width:900px){.os-management-grid{grid-template-columns:1fr}.inline-finance-form{grid-template-columns:1fr 1fr}.receipt-row{align-items:stretch;flex-direction:column}.receipt-row form,.receipt-row input{width:100%}}

[data-theme="escuro"] .page-header .page-kicker,[data-theme="escuro"] .panel-heading .page-kicker,[data-theme="escuro"] .section-heading-inline .page-kicker{background:#183352;border-left-color:#8ad126;color:#9ed1ff}
[data-theme="escuro"] .system-screen-card,[data-theme="escuro"] .system-screen-body{background:#171c28;border-color:#40506a}
[data-theme="escuro"] .system-screen-body>.panel,[data-theme="escuro"] .system-screen-body>form>.panel{background:#202636;border-color:#384154}
[data-theme="escuro"] .system-screen-body .form-actions{background:rgba(32,38,54,.97);border-color:#384154}
[data-theme="escuro"] .system-screen-loading strong,[data-theme="escuro"] .system-screen-error strong{color:#edf3f9}

@media(max-width:760px){
    .system-screen-modal{padding:0}.system-screen-card,.system-screen-card.is-wide{width:100%;max-height:100vh;height:100vh;border:0;border-radius:0}
    .system-screen-header{padding:15px 14px}.system-screen-header h2{font-size:19px}.system-screen-header p{font-size:11px}
    .system-screen-body{padding:14px}.system-screen-body .form-actions{bottom:-14px;margin:20px -14px -14px;padding:13px 14px}
}

/* V18 — fluxo comercial integrado e configurações persistentes. */
.financial-popover{position:absolute;top:43px;right:0;z-index:80;display:none;width:265px;padding:13px 14px;border:1px solid #d7e2ee;border-radius:10px;background:#fff;box-shadow:0 14px 36px rgba(4,28,56,.2);color:#17314a;text-align:left}.financial-popover strong,.financial-popover small,.financial-popover em{display:block}.financial-popover strong{margin-bottom:5px;font-size:12px}.financial-popover small{color:#536b82;font-size:10px}.financial-popover em{margin-top:6px;color:#d84b4b;font-size:10px;font-style:normal;font-weight:700}.financial-shortcut:hover .financial-popover,.financial-shortcut:focus .financial-popover{display:block}.financial-shortcut.is-receivable .financial-popover{right:-40px}.financial-shortcut.is-payable .financial-popover{right:0}
.preference-check{display:flex;align-items:flex-end}.preference-check label{justify-content:flex-start}.preference-check input{width:auto}.company-identity-grid{display:grid;grid-template-columns:190px minmax(0,1fr);gap:22px}.company-logo-box{display:flex;align-items:center;flex-direction:column;gap:9px;padding:16px;border:1px dashed #b9cce0;border-radius:12px;background:#f5f9fd;text-align:center}.company-logo-box>img{width:145px;height:88px;object-fit:contain}.company-logo-box>span{display:grid;place-items:center;width:145px;height:88px;border-radius:9px;background:#e5eef7;color:#6e8297;font-weight:800;letter-spacing:.14em}.company-logo-box label{display:grid;gap:6px;color:var(--blue);font-size:11px;font-weight:800}.company-logo-box input{max-width:165px;padding:6px;font-size:10px}.company-logo-box small{font-size:9px}
.document-edit-fieldset{min-width:0;margin:0;padding:0;border:0}.document-edit-fieldset:disabled .panel{opacity:.78}.document-edit-fieldset:disabled input,.document-edit-fieldset:disabled select,.document-edit-fieldset:disabled textarea{background:#eef2f6;color:#647589}.relation-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:15px;padding:13px 16px;border:1px solid #afd1f3;border-left:4px solid #0f6fe5;border-radius:10px;background:#edf6ff}.relation-banner div{display:grid;gap:2px}.relation-banner strong{color:#0b579f}.relation-banner span{color:#59748d;font-size:11px}.workflow-panel{margin-top:16px}.workflow-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.workflow-actions form{display:grid;gap:8px;margin:0;padding:13px;border:1px solid var(--line);border-radius:10px;background:#f7fafd}.workflow-actions form strong{color:var(--navy);font-size:12px}.workflow-actions input{height:38px;font-size:11px}.workflow-actions button{height:38px;padding:8px 12px}.workflow-actions .success-action{background:#2b9d64}.workflow-actions .success-action:hover{background:#218350}.workflow-actions .danger{background:#d94a47}.document-relation-link{display:inline-flex;padding:4px 8px;border-radius:6px;background:#eaf4ff;color:#0e68c7;font-size:11px;font-weight:800}.muted-cell{color:#9aabbc}.status-pill[data-status="RASCUNHO"],.status-pill[data-status="ABERTA"]{color:#5a6d80;background:#edf1f5}.status-pill[data-status="ENVIADO"],.status-pill[data-status="EM_ANALISE"]{color:#0f6fc6;background:#e4f1ff}.status-pill[data-status="EM_NEGOCIACAO"],.status-pill[data-status="AGUARDANDO_APROVACAO"],.status-pill[data-status="AGUARDANDO_PECA"]{color:#a86a00;background:#fff2d6}.status-pill[data-status="APROVADO"],.status-pill[data-status="APROVADA"],.status-pill[data-status="EM_EXECUCAO"]{color:#187c52;background:#dff4e9}.status-pill[data-status="CONVERTIDO"],.status-pill[data-status="FINALIZADA"]{color:#4767b5;background:#e8edff}.status-pill[data-status="REJEITADO"],.status-pill[data-status="CANCELADO"],.status-pill[data-status="CANCELADA"]{color:#b33c45;background:#fae5e7}.print-company-logo{width:190px;height:72px;object-fit:contain;object-position:left center}.print-document .print-header{border-bottom-color:var(--document-accent,var(--navy))}.print-document .print-info h2,.print-document .print-bottom h2{color:var(--document-accent,var(--blue))}.print-custom-footer{margin-top:35px;padding-top:12px;border-top:1px solid #d7e0e8;color:#657588;font-size:10px;text-align:center}
html[data-density="compacta"] .content{padding-top:18px}html[data-density="compacta"] .panel{padding:15px}html[data-density="compacta"] .data-table td{padding-block:7px}html[data-density="compacta"] input,html[data-density="compacta"] select{min-height:36px}html[data-density="compacta"] .person-form-grid{gap:10px 14px}
[data-theme="escuro"] .financial-popover,[data-theme="escuro"] .company-logo-box,[data-theme="escuro"] .workflow-actions form,[data-theme="escuro"] .relation-banner{background:#202a38;border-color:#41536a;color:#eaf1f8}[data-theme="escuro"] .financial-popover strong,[data-theme="escuro"] .workflow-actions form strong{color:#edf4fb}[data-theme="escuro"] .financial-popover small,[data-theme="escuro"] .relation-banner span{color:#afbdcb}[data-theme="escuro"] .company-logo-box>span{background:#293647;color:#b5c2d0}
@media(max-width:760px){.company-identity-grid{grid-template-columns:1fr}.company-logo-box{align-items:flex-start}.workflow-actions{grid-template-columns:1fr}.relation-banner{align-items:stretch;flex-direction:column}.relation-banner .button{width:100%}.financial-popover{position:fixed;top:68px;right:10px!important;left:10px;width:auto}}

/* V19 — dashboard operacional inspirado no novo modelo visual da oficina. */
.office-dashboard{display:grid;gap:18px;min-width:0}.dashboard-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.dashboard-heading h1{margin:4px 0 5px;color:var(--navy);font-size:28px;letter-spacing:-.025em}.dashboard-heading p,.dashboard-widget header p{margin:0;color:var(--muted);font-size:11px}.dashboard-heading-actions{display:flex;align-items:flex-end;gap:10px}.period-filter{display:grid;gap:4px;margin:0}.period-filter label{padding-left:2px;color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase}.period-filter select{min-width:145px;height:42px;padding:0 34px 0 13px;border-color:#d9e3ee;background-color:#fff;font-size:11px}.dashboard-primary-action{display:inline-flex;align-items:center;height:42px;padding:0 17px;border-radius:9px;box-shadow:0 8px 18px rgba(15,111,229,.2);font-size:11px}
.dashboard-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.dashboard-kpi{display:flex;align-items:flex-start;gap:13px;min-width:0;padding:18px;border:1px solid #e2e9f1;border-radius:13px;background:#fff;box-shadow:0 3px 12px rgba(9,37,67,.045)}.dashboard-kpi-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:#eaf3ff;color:#0f6fe5}.dashboard-kpi-icon .app-icon{width:23px;height:23px}.dashboard-kpi-icon.is-cyan{background:#e9faff;color:#10a9d4}.dashboard-kpi-icon.is-calendar{background:#eef5ff;color:#1e77e9}.dashboard-kpi-icon.is-green{background:#edf8e5;color:#68a900}.dashboard-kpi-icon.is-red{background:#fff0f0;color:#d9424b}.dashboard-kpi-icon.is-balance{background:#eef0ff;color:#635bdb}.dashboard-kpi>div{display:grid;min-width:0}.dashboard-kpi small{color:#263c52;font-size:11px}.dashboard-kpi strong{overflow:hidden;margin-top:5px;color:#071a31;font-size:23px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.dashboard-kpi p{margin:7px 0 0;color:#75879a;font-size:9.5px}.dashboard-kpi p span{color:#557087;font-weight:800}.dashboard-kpi p.positive span{color:#62a900}.dashboard-kpi p.negative span,.dashboard-kpi p.negative{color:#e13c43}.dashboard-kpi p.warning span,.dashboard-kpi p.warning{color:#c77a00}
.dashboard-insights{display:grid;grid-template-columns:minmax(420px,1.45fr) minmax(270px,.88fr) minmax(350px,1.2fr);gap:12px}.dashboard-widget{min-width:0;border:1px solid #e2e9f1;border-radius:13px;background:#fff;box-shadow:0 3px 12px rgba(9,37,67,.045)}.dashboard-widget>header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:17px 18px 12px}.dashboard-widget>header h2{margin:0 0 4px;color:#0b1d33;font-size:14px}.dashboard-widget>header>a{color:#0f6fe5;font-size:10px;font-weight:700}.chart-legend{display:flex;flex-wrap:wrap;gap:14px;padding-top:2px;color:#687d92;font-size:9.5px}.chart-legend span:before{content:'';display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:50%}.chart-legend .revenue:before{background:#0f6fe5}.chart-legend .expense:before{background:#43c4e8}.chart-legend .net:before{background:#67a900}.dashboard-chart{height:238px;padding:0 10px 8px}.dashboard-chart svg{width:100%;height:100%;overflow:visible}.chart-grid-line{stroke:#e6edf4;stroke-width:1;stroke-dasharray:4 4}.chart-axis-value,.chart-month{fill:#718498;font-size:9px}.chart-revenue-bar{fill:#0f6fe5}.chart-expense-line{fill:none;stroke:#43c4e8;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.chart-expense-point{fill:#43c4e8;stroke:#fff;stroke-width:3}.chart-net-line{fill:none;stroke:#67a900;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.chart-net-point{fill:#67a900;stroke:#fff;stroke-width:3}
.status-chart-wrap{display:flex;align-items:center;justify-content:center;gap:22px;min-height:238px;padding:3px 18px 18px}.status-donut{position:relative;display:grid;place-items:center;flex:0 0 142px;width:142px;height:142px;border-radius:50%}.status-donut:after{content:'';position:absolute;width:82px;height:82px;border-radius:50%;background:#fff}.status-donut>span{position:relative;z-index:1;display:grid;text-align:center}.status-donut strong{color:#0b1d33;font-size:25px}.status-donut small{color:#7c8d9f;font-size:9px}.status-legend{display:grid;flex:1;gap:12px}.status-legend>div{display:grid;grid-template-columns:8px minmax(80px,1fr) auto;align-items:center;gap:7px;color:#455c72;font-size:9.5px}.status-legend i{width:8px;height:8px;border-radius:2px}.status-legend strong{color:#10263c;font-size:10px}.status-legend strong small{color:#7e91a4;font-weight:500}
.today-schedule{padding:0 18px 15px}.today-schedule>a{display:grid;grid-template-columns:44px minmax(90px,1fr) minmax(105px,1fr) auto;align-items:center;gap:9px;padding:9px 0;border-top:1px solid #edf1f5;color:#20384f}.today-schedule time{font-size:10px;font-weight:700}.today-schedule a>span{display:grid;min-width:0}.today-schedule strong{overflow:hidden;font-size:9.5px;text-overflow:ellipsis;white-space:nowrap}.today-schedule small{overflow:hidden;color:#70859a;font-size:8.5px;text-overflow:ellipsis;white-space:nowrap}.today-schedule em{padding:5px 7px;border:1px solid #cfe2f8;border-radius:5px;background:#eef6ff;color:#0f6fe5;font-size:8px;font-style:normal;white-space:nowrap}.today-schedule em[data-status="EM_ATENDIMENTO"],.today-schedule em[data-status="CONCLUIDO"]{border-color:#cbe7b8;background:#f0f9e9;color:#599900}.today-schedule em[data-status="CANCELADO"]{border-color:#f1c5c8;background:#fff0f1;color:#c23f47}
.dashboard-bottom-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(270px,1fr);gap:12px}.dashboard-table-wrap{overflow:auto;padding:0 18px 14px}.dashboard-table-wrap table{width:100%;border-collapse:collapse;font-size:9.5px}.dashboard-table-wrap th{padding:10px 8px;border-top:1px solid #e8edf3;border-bottom:1px solid #dfe7ef;color:#526a80;font-size:8px;text-align:left;text-transform:uppercase}.dashboard-table-wrap td{padding:10px 8px;border-bottom:1px solid #edf1f5;color:#30475d;vertical-align:middle;white-space:nowrap}.dashboard-table-wrap td>small{display:block;color:#8192a3;font-size:8px}.dashboard-table-wrap .order-number{color:#0f6fe5;font-weight:800}.dashboard-table-wrap .status-pill{font-size:8px}.table-actions{display:flex;gap:4px}.table-actions a{display:grid;place-items:center;width:28px;height:28px;border-radius:6px;color:#0f6fe5}.table-actions a:hover{background:#eaf3ff}.table-actions .app-icon{width:15px;height:15px}
.dashboard-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:3px 18px 18px}.dashboard-quick-actions a{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:8px;min-height:72px;padding:12px;border:1px solid #e2e9f1;border-radius:10px;background:#fff;color:#213a51}.dashboard-quick-actions a:hover{border-color:#9cc9f8;background:#f4f9ff;box-shadow:0 7px 15px rgba(15,111,229,.08);transform:translateY(-1px)}.dashboard-quick-actions a>span{display:grid;place-items:center;grid-row:1/3;width:34px;height:34px;border-radius:9px;background:#ebf4ff;color:#0f6fe5}.dashboard-quick-actions .app-icon{width:18px;height:18px}.dashboard-quick-actions strong{align-self:end;font-size:10px}.dashboard-quick-actions small{align-self:start;color:#7b8fa2;font-size:8px}.dashboard-quick-actions a:last-child:nth-child(odd){grid-column:1/-1}.dashboard-empty{display:grid;place-items:center;min-height:185px;color:#8294a6;text-align:center}.dashboard-empty>span{display:grid;place-items:center;width:46px;height:46px;margin-bottom:8px;border-radius:50%;background:#edf4fb;color:#4d89c6}.dashboard-empty .app-icon{width:22px;height:22px}.dashboard-empty strong{color:#38516a;font-size:11px}.dashboard-empty small{margin-top:4px;font-size:9px}.dashboard-empty.compact{min-height:75px}
.dashboard-kpi strong.restricted-value{color:#647b91;font-size:15px}.sidebar nav>a.active{border-left:3px solid #43c4e8;background:linear-gradient(90deg,#0e63d4,#0f78ed);color:#fff}.sidebar nav>a.active .app-icon{color:#fff}
[data-theme="escuro"] .dashboard-heading h1,[data-theme="escuro"] .dashboard-kpi strong,[data-theme="escuro"] .dashboard-widget>header h2,[data-theme="escuro"] .status-donut strong,[data-theme="escuro"] .status-legend strong{color:#edf4fb}[data-theme="escuro"] .dashboard-kpi,[data-theme="escuro"] .dashboard-widget,[data-theme="escuro"] .period-filter select,[data-theme="escuro"] .dashboard-quick-actions a{border-color:#39475a;background:#202636;color:#dbe5ef}[data-theme="escuro"] .dashboard-kpi small,[data-theme="escuro"] .today-schedule>a,[data-theme="escuro"] .dashboard-table-wrap td,[data-theme="escuro"] .dashboard-quick-actions strong{color:#c8d5e1}[data-theme="escuro"] .status-donut:after{background:#202636}[data-theme="escuro"] .chart-grid-line{stroke:#39465a}[data-theme="escuro"] .chart-axis-value,[data-theme="escuro"] .chart-month{fill:#8ea0b3}[data-theme="escuro"] .today-schedule>a,[data-theme="escuro"] .dashboard-table-wrap td,[data-theme="escuro"] .dashboard-table-wrap th{border-color:#39465a}[data-theme="escuro"] .dashboard-quick-actions a:hover{background:#263346}
@media(max-width:1380px){.dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-insights{grid-template-columns:1.35fr .9fr}.agenda-widget{grid-column:1/-1}.today-schedule>a{grid-template-columns:55px 1fr 1fr auto}.dashboard-bottom-grid{grid-template-columns:1fr}.dashboard-quick-actions{grid-template-columns:repeat(5,1fr)}.dashboard-quick-actions a:last-child:nth-child(odd){grid-column:auto}}
@media(max-width:900px){.dashboard-heading{align-items:stretch;flex-direction:column}.dashboard-heading-actions{justify-content:space-between}.dashboard-insights{grid-template-columns:1fr}.agenda-widget{grid-column:auto}.dashboard-kpis{grid-template-columns:1fr 1fr}.dashboard-quick-actions{grid-template-columns:1fr 1fr}.dashboard-quick-actions a:last-child:nth-child(odd){grid-column:1/-1}}
@media(max-width:620px){.dashboard-heading-actions{align-items:stretch;flex-direction:column}.period-filter select,.dashboard-primary-action{width:100%}.dashboard-kpis{grid-template-columns:1fr}.dashboard-insights{display:block}.dashboard-widget{margin-bottom:12px}.status-chart-wrap{align-items:stretch;flex-direction:column}.status-donut{margin:auto}.today-schedule>a{grid-template-columns:40px 1fr auto}.schedule-vehicle{display:none!important}.dashboard-quick-actions{grid-template-columns:1fr}.dashboard-quick-actions a:last-child:nth-child(odd){grid-column:auto}.dashboard-table-wrap{padding-inline:10px}.dashboard-chart{height:210px}}

/* V22 — status configuráveis, mensalidades e relatórios operacionais. */
.config-info-banner{display:flex;align-items:center;gap:12px;margin-bottom:16px;padding:12px 14px;border:1px solid #b9d8f7;border-radius:9px;background:#edf6ff;color:#47657f;font-size:11px}.config-info-banner strong{color:#0b67c2;white-space:nowrap}.status-config-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.status-config-panel{padding:18px}.panel-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.panel-title-row h2{margin:4px 0 0;color:var(--navy);font-size:17px}.status-counter{padding:5px 9px;border-radius:99px;background:#edf3f8;color:#667c90;font-size:10px;font-weight:800}.status-config-list{display:grid;gap:8px}.status-config-row{display:grid;grid-template-columns:10px minmax(180px,1fr) 72px 76px 68px;align-items:center;gap:10px;padding:10px;border:1px solid #e1e9f1;border-radius:9px;background:#fbfdff}.status-color-preview{width:8px;height:38px;border-radius:99px;background:var(--status-color)}.status-config-row label{display:block;margin-bottom:4px;color:#53697d;font-size:9px;font-weight:800}.status-config-row input{height:36px;padding:7px 9px}.status-config-row small{display:block;margin-top:3px;color:#8b9aaa;font-size:8px}.status-color-input{width:54px;padding:3px!important}.status-order-input{width:68px}.status-active-toggle{display:flex!important;align-items:center;gap:5px;margin:16px 0 0!important}.status-active-toggle input{width:17px;height:17px;padding:0}.status-active-toggle span{font-size:9px}.restore-status-form{display:flex;justify-content:flex-end;margin-top:8px}.document-status-filters{display:flex;gap:7px;margin-bottom:14px;padding-bottom:4px;overflow:auto}.document-status-filters a{min-width:max-content;padding:8px 11px;border:1px solid #dce5ee;border-bottom:3px solid var(--filter-color,#64748b);border-radius:7px;background:#fff;color:#53697d;font-size:10px;font-weight:800}.document-status-filters a:hover,.document-status-filters a.active{background:var(--filter-color,#0f6fe5);border-color:var(--filter-color,#0f6fe5);color:#fff}.status-pill-custom{color:var(--status-color)!important;background:color-mix(in srgb,var(--status-color) 12%,white)!important}.report-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px}.report-menu{align-self:start;padding:9px}.report-menu a{display:flex;align-items:flex-start;gap:10px;padding:11px;border-radius:8px;color:#526a80}.report-menu a:hover,.report-menu a.active{background:#edf6ff;color:#0f6fe5}.report-menu .app-icon{width:17px;height:17px;margin-top:2px}.report-menu span{display:grid}.report-menu strong{font-size:10px}.report-menu small{margin-top:2px;color:#8192a3;font-size:8px;line-height:1.35}.report-filters{display:flex;align-items:end;gap:10px;margin-bottom:12px;padding:14px}.report-filters label{display:grid;gap:4px;color:#64788b;font-size:9px}.report-filters input{height:38px}.report-filters button{height:38px}.report-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}.report-summary article{padding:13px 15px;border:1px solid #e0e9f2;border-radius:10px;background:#fff}.report-summary span{display:block;color:#7b8fa2;font-size:9px}.report-summary strong{display:block;margin-top:5px;color:var(--navy);font-size:15px}.cell-note{display:block;margin-top:3px;color:#8294a6;font-size:8px}
[data-theme="escuro"] .config-info-banner{border-color:#365678;background:#22354b;color:#b9cadb}[data-theme="escuro"] .status-config-row,[data-theme="escuro"] .document-status-filters a,[data-theme="escuro"] .report-summary article{border-color:#39475a;background:#202636;color:#dbe5ef}[data-theme="escuro"] .status-pill-custom{background:color-mix(in srgb,var(--status-color) 18%,#202636)!important}
@media(max-width:1100px){.status-config-grid{grid-template-columns:1fr}.report-layout{grid-template-columns:1fr}.report-menu{display:grid;grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.status-config-row{grid-template-columns:8px 1fr 54px}.status-config-row>:nth-child(4),.status-config-row>:nth-child(5){grid-column:auto}.report-menu{grid-template-columns:1fr}.report-summary{grid-template-columns:1fr}.report-filters{align-items:stretch;flex-direction:column}}

.vehicle-detail-grid{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(420px,1.2fr);gap:16px}.detail-list{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0}.detail-list>div{padding:10px;border-bottom:1px solid #e7edf3}.detail-list dt{color:#788b9d;font-size:8px;font-weight:800;text-transform:uppercase}.detail-list dd{margin:4px 0 0;color:var(--navy);font-size:11px;font-weight:700}.service-history{display:grid}.service-history>a{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;padding:10px;border-bottom:1px solid #e7edf3;color:#344c62}.service-history>a:hover{background:#f5f9fd}.service-history span:first-child{display:grid}.service-history small{margin-top:3px;color:#8294a6;font-size:8px}.service-history b{font-size:10px}@media(max-width:900px){.vehicle-detail-grid{grid-template-columns:1fr}}

/* V20 — dashboard executivo da administração SaaS. */
.saas-v20-dashboard{display:grid;gap:16px;min-width:0}.saas-v20-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.saas-v20-heading h1{margin:4px 0 5px;color:#071a31;font-size:28px;letter-spacing:-.03em}.saas-v20-heading p{margin:0;color:#687f95;font-size:11px}.saas-v20-heading-actions{display:flex;align-items:flex-end;gap:10px}.saas-period-filter{display:grid;gap:4px;margin:0}.saas-period-filter label{padding-left:2px;color:#687f95;font-size:9px;font-weight:800;text-transform:uppercase}.saas-period-filter select{min-width:155px;height:42px;padding:0 36px 0 13px;border-color:#d9e4ef;background-color:#fff;font-size:11px}.saas-v20-new-company{display:inline-flex;align-items:center;height:42px;padding:0 17px;border-radius:9px;box-shadow:0 8px 18px rgba(15,111,229,.2);font-size:11px}.saas-v20-version{margin:-2px 0 0;padding-block:8px;font-size:10px}
.saas-company-search{display:flex;align-items:center;width:min(240px,18vw);height:36px;margin:0;border:1px solid #d7e3ee;border-radius:8px;background:#f7faff;overflow:hidden}.saas-company-search input{min-width:0;height:34px;padding:0 10px;border:0;background:transparent;font-size:10px;box-shadow:none}.saas-company-search input:focus{box-shadow:none}.saas-company-search button{display:grid;place-items:center;width:37px;height:36px;padding:0;border-radius:0;background:#0f6fe5;box-shadow:none}.saas-company-search button:hover{transform:none;background:#0b5fc8}.saas-company-search .saas-icon{width:15px;height:15px}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.saas-alert-shortcut{position:relative;text-decoration:none}.saas-alert-shortcut b{position:absolute;top:-3px;right:-3px;display:grid;place-items:center;min-width:16px;height:16px;padding:0 4px;border:2px solid #fff;border-radius:99px;background:#df454b;color:#fff;font-size:8px;line-height:1}[data-theme="escuro"] .saas-company-search{border-color:#3b485c;background:#202636}[data-theme="escuro"] .saas-company-search input{color:#e7eef6}[data-theme="escuro"] .saas-alert-shortcut b{border-color:#202636}
.saas-dashboard-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.saas-v20-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.saas-v20-kpi{position:relative;min-width:0;padding:15px 15px 14px;border:1px solid #e0e9f2;border-radius:12px;background:#fff;box-shadow:0 3px 12px rgba(8,37,68,.045);overflow:hidden}.saas-v20-kpi:before{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:var(--kpi-color)}.saas-v20-kpi-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.saas-v20-kpi-top>span{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:var(--kpi-soft);color:var(--kpi-color)}.saas-v20-kpi-top small{overflow:hidden;color:#71859a;font-size:8px;font-weight:900;letter-spacing:.08em;text-align:right;text-overflow:ellipsis;white-space:nowrap}.saas-v20-kpi>strong{display:block;overflow:hidden;margin-top:11px;color:#0a1c32;font-size:20px;letter-spacing:-.025em;text-overflow:ellipsis;white-space:nowrap}.saas-v20-kpi p{margin:6px 0 0;color:#7b8da0;font-size:8.5px;line-height:1.45}.saas-v20-kpi p em{margin-right:3px;padding:2px 4px;border-radius:4px;font-style:normal;font-weight:900}.saas-v20-kpi p em.is-positive{background:#e6f7ee;color:#178856}.saas-v20-kpi p em.is-negative{background:#ffeded;color:#ce4147}.saas-v20-kpi.is-revenue{--kpi-color:#0f6fe5;--kpi-soft:#e8f2ff}.saas-v20-kpi.is-companies{--kpi-color:#10a7c8;--kpi-soft:#e5f8fc}.saas-v20-kpi.is-trial{--kpi-color:#7d5bd2;--kpi-soft:#f1edff}.saas-v20-kpi.is-overdue{--kpi-color:#de4b50;--kpi-soft:#ffedef}.saas-v20-kpi.is-new{--kpi-color:#65a817;--kpi-soft:#eff8e4}.saas-v20-kpi.is-churn{--kpi-color:#e49424;--kpi-soft:#fff3e1}
.saas-v20-grid{display:grid;gap:12px;min-width:0}.saas-v20-grid-primary{grid-template-columns:minmax(480px,1.7fr) minmax(280px,.75fr)}.saas-v20-grid-secondary{grid-template-columns:1fr 1fr}.saas-v20-grid-bottom{grid-template-columns:minmax(560px,1.55fr) minmax(300px,.65fr)}.saas-v20-card{min-width:0;border:1px solid #e0e9f2;border-radius:13px;background:#fff;box-shadow:0 3px 12px rgba(8,37,68,.045);overflow:hidden}.saas-v20-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:17px 18px 13px}.saas-v20-card-heading h2{margin:3px 0 0;color:#0a1c32;font-size:14px}.saas-v20-card-heading>a{color:#0f6fe5;font-size:9px;font-weight:800}.saas-chart-legend{display:flex;flex-wrap:wrap;gap:12px;padding-top:3px;color:#6d8296;font-size:8.5px}.saas-chart-legend span:before{content:'';display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%}.saas-chart-legend .is-billed:before{background:#0f6fe5}.saas-chart-legend .is-received:before{background:#45c3e7}.saas-chart-legend .is-growth:before{background:#8acb24}
.saas-v20-chart-wrap{height:244px;padding:0 12px 8px}.saas-v20-chart{width:100%;height:100%;overflow:visible}.saas-v20-chart .chart-grid-line{stroke:#e7eef5;stroke-width:1;stroke-dasharray:4 4}.saas-v20-chart .chart-axis-text,.saas-v20-chart .chart-month-text{fill:#74879a;font-size:8px}.saas-v20-chart .chart-bar-billed{fill:#0f6fe5}.saas-v20-chart .chart-bar-received{fill:#45c3e7}.saas-v20-chart .chart-growth-line{fill:none;stroke:#8acb24;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.saas-v20-chart .chart-growth-dot{fill:#8acb24;stroke:#fff;stroke-width:2.5}.saas-v20-restricted,.saas-v20-empty-chart{display:grid;justify-items:center;align-content:center;min-height:235px;padding:24px;color:#7b8ea1;text-align:center}.saas-v20-restricted .saas-dashboard-icon,.saas-v20-empty-chart .saas-dashboard-icon{width:28px;height:28px;margin-bottom:8px;color:#0f6fe5}.saas-v20-restricted strong,.saas-v20-empty-chart strong{color:#29435d;font-size:11px}.saas-v20-restricted span,.saas-v20-empty-chart span{margin-top:4px;font-size:9px}.saas-v20-empty-chart a{margin-top:10px;color:#0f6fe5;font-size:9px;font-weight:800}.saas-v20-restricted.compact{min-height:165px}
.saas-plan-distribution{display:flex;align-items:center;justify-content:center;gap:28px;min-height:244px;padding:4px 22px 22px}.saas-plan-donut{position:relative;display:grid;place-items:center;flex:0 0 152px;width:152px;height:152px;border-radius:50%;background:var(--donut-background)}.saas-plan-donut:after{content:'';position:absolute;width:91px;height:91px;border-radius:50%;background:#fff}.saas-plan-donut>span{position:relative;z-index:1;display:grid;text-align:center}.saas-plan-donut strong{color:#0a1c32;font-size:25px}.saas-plan-donut small{color:#7b8da0;font-size:8px}.saas-plan-legend{display:grid;flex:1;gap:10px;min-width:115px}.saas-plan-legend>div{display:grid;grid-template-columns:8px 1fr auto;align-items:center;gap:7px}.saas-plan-legend i{width:8px;height:8px;border-radius:3px;background:var(--plan-color)}.saas-plan-legend span{display:grid}.saas-plan-legend strong{color:#2c435a;font-size:9px}.saas-plan-legend small{color:#8394a5;font-size:8px}.saas-plan-legend b{color:#10273e;font-size:10px}
.saas-status-list{display:grid;gap:12px;padding:4px 18px 19px}.saas-status-row{display:grid;grid-template-columns:minmax(105px,.6fr) 1fr 28px;align-items:center;gap:12px}.saas-status-row>span{display:flex;align-items:center;gap:7px;color:#415a70;font-size:9px}.saas-status-row>span i{width:8px;height:8px;border-radius:3px;background:var(--status-color)}.saas-status-row>div{height:7px;border-radius:99px;background:#edf2f6;overflow:hidden}.saas-status-row>div b{display:block;width:var(--status-width);height:100%;border-radius:99px;background:var(--status-color)}.saas-status-row>strong{color:#17314a;font-size:10px;text-align:right}.saas-alert-list{display:grid;gap:8px;padding:2px 18px 18px}.saas-alert-list>a{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;padding:10px 11px;border:1px solid #e5ecf3;border-radius:9px;color:#2d455c}.saas-alert-list>a:hover{border-color:#bcd5ed;background:#f8fbfe;transform:translateX(2px)}.saas-alert-list>a>span:first-child{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#eaf3ff;color:#0f6fe5}.saas-alert-list>a.is-financeiro>span:first-child,.saas-alert-list>a.is-suporte>span:first-child{background:#ffeded;color:#d8474c}.saas-alert-list>a.is-teste>span:first-child{background:#fff3df;color:#d7881f}.saas-alert-list>a.is-integracao>span:first-child{background:#f1edff;color:#7557ca}.saas-alert-list>a.is-ok>span:first-child{background:#eaf8ee;color:#269661}.saas-alert-list strong,.saas-alert-list small{display:block}.saas-alert-list strong{font-size:9.5px}.saas-alert-list small{margin-top:2px;color:#7b8da0;font-size:8px}.saas-alert-list b{color:#8ca0b4}
.saas-v20-companies-card .table-wrap{padding:0 18px 15px}.saas-v20-table{width:100%;min-width:690px;border-collapse:collapse}.saas-v20-table th{padding:9px 8px;border-block:1px solid #e5ecf3;color:#687e93;font-size:7.5px;text-align:left;text-transform:uppercase}.saas-v20-table td{padding:9px 8px;border-bottom:1px solid #edf2f6;color:#344c62;font-size:8.5px;vertical-align:middle}.saas-v20-table td>strong,.saas-v20-table td>small{display:block}.saas-v20-table td>small{margin-top:2px;color:#8294a6;font-size:7.5px}.saas-v20-company-link{display:flex;align-items:center;gap:8px;padding:0;background:transparent;color:#19334c;box-shadow:none;text-align:left}.saas-v20-company-link:hover{transform:none;background:transparent;color:#0f6fe5}.saas-v20-company-link>span{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#e8f2ff;color:#0f6fe5;font-size:9px}.saas-v20-company-link strong{font-size:9px}.saas-v20-status{display:inline-flex;padding:4px 7px;border-radius:99px;background:#eef2f6;color:#5e7285;font-size:7px;font-weight:900}.saas-v20-status.is-ativa{background:#e6f7ee;color:#23845a}.saas-v20-status.is-teste{background:#e7f2ff;color:#0f68c7}.saas-v20-status.is-vencida,.saas-v20-status.is-cancelada{background:#ffeaeb;color:#c94349}.saas-v20-status.is-suspensa{background:#fff2df;color:#b76f13}
.saas-activity-list{display:grid;padding:0 18px 16px}.saas-activity-list>div{position:relative;display:grid;grid-template-columns:32px 1fr;gap:10px;padding:8px 0}.saas-activity-list>div:not(:last-child):before{content:'';position:absolute;left:15px;top:38px;bottom:-4px;width:1px;background:#dce7f0}.saas-activity-list>div>span{z-index:1;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#eaf3ff;color:#0f6fe5}.saas-activity-list .saas-dashboard-icon{width:15px;height:15px}.saas-activity-list p{margin:0;color:#50687e;font-size:8.5px;line-height:1.45}.saas-activity-list p strong{color:#18314a}.saas-activity-list p small{display:block;margin-top:2px;color:#8a9aaa;font-size:7.5px}.saas-v20-empty-inline{margin:0;padding:22px 6px;color:#8294a6;font-size:9px;text-align:center}
[data-theme="escuro"] .saas-v20-heading h1,[data-theme="escuro"] .saas-v20-kpi>strong,[data-theme="escuro"] .saas-v20-card-heading h2,[data-theme="escuro"] .saas-plan-donut strong,[data-theme="escuro"] .saas-plan-legend b,[data-theme="escuro"] .saas-status-row>strong{color:#edf4fb}[data-theme="escuro"] .saas-v20-kpi,[data-theme="escuro"] .saas-v20-card,[data-theme="escuro"] .saas-period-filter select{border-color:#39475a;background:#202636;color:#dbe5ef}[data-theme="escuro"] .saas-v20-kpi-top small,[data-theme="escuro"] .saas-v20-kpi p,[data-theme="escuro"] .saas-v20-heading p{color:#91a2b3}[data-theme="escuro"] .saas-v20-card-heading a{color:#73b8ff}[data-theme="escuro"] .saas-plan-donut:after{background:#202636}[data-theme="escuro"] .saas-plan-legend strong,[data-theme="escuro"] .saas-status-row>span,[data-theme="escuro"] .saas-alert-list>a,[data-theme="escuro"] .saas-v20-table td,[data-theme="escuro"] .saas-activity-list p{color:#c7d3df}[data-theme="escuro"] .saas-alert-list>a,[data-theme="escuro"] .saas-v20-table th,[data-theme="escuro"] .saas-v20-table td{border-color:#39475a}[data-theme="escuro"] .saas-alert-list>a:hover{background:#273246}[data-theme="escuro"] .saas-v20-chart .chart-grid-line{stroke:#39475a}[data-theme="escuro"] .saas-v20-chart .chart-axis-text,[data-theme="escuro"] .saas-v20-chart .chart-month-text{fill:#91a2b3}[data-theme="escuro"] .saas-status-row>div{background:#344155}
@media(max-width:1550px){.saas-v20-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1180px){.saas-v20-grid-primary,.saas-v20-grid-bottom{grid-template-columns:1fr}.saas-v20-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.saas-company-search{display:none}}@media(max-width:820px){.saas-v20-heading{align-items:stretch;flex-direction:column}.saas-v20-heading-actions{justify-content:space-between}.saas-v20-grid-secondary{grid-template-columns:1fr}.saas-v20-card-heading{align-items:flex-start;flex-direction:column}.saas-chart-legend{padding-top:0}}@media(max-width:580px){.saas-v20-heading-actions{align-items:stretch;flex-direction:column}.saas-period-filter select,.saas-v20-new-company{width:100%}.saas-v20-kpis{grid-template-columns:1fr}.saas-plan-distribution{align-items:stretch;flex-direction:column}.saas-plan-donut{margin:auto}.saas-v20-chart-wrap{height:210px;padding-inline:4px}.saas-v20-card-heading,.saas-status-list,.saas-alert-list,.saas-activity-list{padding-left:13px;padding-right:13px}.saas-v20-companies-card .table-wrap{padding-inline:8px}}

/* V23 — gestão completa das contas a receber da oficina. */
.receivable-heading{align-items:flex-end}.receivable-heading-actions{display:flex;gap:9px}.receivable-heading-actions .app-icon{width:16px;height:16px}.receivable-filters{display:flex;align-items:end;gap:10px;margin-bottom:13px;padding:13px 15px}.receivable-filters label{display:grid;gap:4px;color:#64788b;font-size:9px;font-weight:800}.receivable-filters input{height:39px}.receivable-filters button,.receivable-filters>a{height:39px}.receivable-search{flex:1}.receivable-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:13px}.receivable-kpi{position:relative;display:grid;gap:5px;min-width:0;padding:13px 14px;border:1px solid #e0e8f0;border-top:3px solid var(--receivable-color);border-radius:10px;background:#fff;color:#567086;box-shadow:0 3px 10px rgba(9,40,71,.035);overflow:hidden}.receivable-kpi:hover,.receivable-kpi.active{border-color:var(--receivable-color);transform:translateY(-1px);box-shadow:0 7px 18px rgba(9,40,71,.08)}.receivable-kpi span{font-size:9px;font-weight:900;text-transform:uppercase}.receivable-kpi strong{overflow:hidden;color:#0a1f35;font-size:18px;letter-spacing:-.03em;text-overflow:ellipsis;white-space:nowrap}.receivable-kpi small{overflow:hidden;color:#8395a6;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.receivable-kpi.is-danger{--receivable-color:#dc3545}.receivable-kpi.is-warning{--receivable-color:#f08a21}.receivable-kpi.is-neutral{--receivable-color:#7c8da0}.receivable-kpi.is-success{--receivable-color:#16865b}.receivable-kpi.is-primary{--receivable-color:#0f6fe5}.receivable-kpi.is-overdue{--receivable-color:#a7131d}.receivable-table-panel{padding-top:0}.receivable-table-title{padding:14px 15px 8px}.receivable-table{min-width:1160px}.receivable-table td{vertical-align:middle}.receivable-table tr.is-overdue-row td{background:#fff9f9}.date-overdue{color:#d73d46;font-weight:800}.receivable-status{white-space:nowrap}.receivable-status.is-paga{background:#e5f7ee;color:#15845a}.receivable-status.is-vencida{background:#ffe9eb;color:#cc3942}.receivable-status.is-parcial{background:#fff2dc;color:#b66c0f}.receivable-status.is-cancelada{background:#edf0f3;color:#6f7c88}.receivable-status.is-aberta{background:#e7f2ff;color:#0b68c9}.attachment-link{font-size:9px;font-weight:800}.receivable-actions{flex-wrap:nowrap}.receivable-actions .icon-button.view{background:#fff3d8;color:#b36d08}.receivable-actions .icon-button.pdf{background:#e8f5ed;color:#16865b}.receivable-form fieldset{margin:0 0 14px;padding:14px;border:1px solid #d9e5ef;border-radius:10px}.receivable-form legend{padding:0 7px;color:#0f6fe5;font-size:9px;font-weight:900;letter-spacing:.08em}.receivable-detail-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:12px}.receivable-detail-summary article{padding:13px 15px;border:1px solid #e0e8f0;border-radius:10px;background:#fff}.receivable-detail-summary span{display:block;color:#758a9d;font-size:8px;text-transform:uppercase}.receivable-detail-summary strong{display:block;margin-top:5px;color:#0b2037;font-size:17px}.receivable-detail-grid{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(430px,1.25fr);gap:12px}.receivable-payment-form{display:grid;gap:10px}.receivable-payment-form label{display:grid;gap:4px;color:#5f7488;font-size:9px;font-weight:800}.receivable-history{display:grid}.receivable-history article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #e7edf3}.receivable-history article>div{display:grid}.receivable-history article strong{color:#0c233a;font-size:12px}.receivable-history article span,.receivable-history article small{margin-top:3px;color:#7d90a2;font-size:8px}.receivable-history article form{display:flex;gap:6px}.receivable-history article form input{width:170px;height:35px}.receivable-history article form button{height:35px;padding:0 10px}.receivable-history article.is-reversed{opacity:.65}.receivable-history article.is-reversed>div{text-decoration:line-through}.receivable-history .badge{display:grid;gap:2px;text-align:right}.receivable-attachment-card{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;padding:13px 15px}.receivable-attachment-card>div{display:grid}.receivable-attachment-card strong{color:#17314a;font-size:10px}.receivable-attachment-card span{margin-top:3px;color:#7e91a3;font-size:8px}
[data-theme="escuro"] .receivable-kpi,[data-theme="escuro"] .receivable-detail-summary article{border-color:#39475a;background:#202636}[data-theme="escuro"] .receivable-kpi strong,[data-theme="escuro"] .receivable-detail-summary strong,[data-theme="escuro"] .receivable-history article strong{color:#e7eef6}[data-theme="escuro"] .receivable-table tr.is-overdue-row td{background:#302529}[data-theme="escuro"] .receivable-form fieldset{border-color:#39475a}
@media(max-width:1450px){.receivable-kpis{grid-template-columns:repeat(3,1fr)}}@media(max-width:900px){.receivable-heading{align-items:stretch;flex-direction:column}.receivable-heading-actions{flex-wrap:wrap}.receivable-filters{align-items:stretch;flex-wrap:wrap}.receivable-filters label{flex:1 1 180px}.receivable-search{flex-basis:100%!important}.receivable-detail-grid{grid-template-columns:1fr}}@media(max-width:620px){.receivable-heading-actions>*{flex:1}.receivable-kpis{grid-template-columns:1fr 1fr}.receivable-detail-summary{grid-template-columns:1fr 1fr}.receivable-history article{align-items:stretch;flex-direction:column}.receivable-history article form{flex-direction:column}.receivable-history article form input{width:100%}}@media(max-width:420px){.receivable-kpis,.receivable-detail-summary{grid-template-columns:1fr}}

/* V25 — Central de clientes: ações do legado reorganizadas por finalidade. */
.client-list-heading{align-items:flex-end}.client-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px;padding:12px 14px}.client-search{display:flex;flex:1;max-width:680px}.client-search input{border-radius:7px 0 0 7px}.client-search button{border-radius:0 7px 7px 0}.client-transfer-actions{display:flex;align-items:center;gap:8px}.button-success{background:#16865b;color:#fff}.client-import-menu{position:relative}.client-import-menu>summary{list-style:none;cursor:pointer}.client-import-menu>summary::-webkit-details-marker{display:none}.client-import-card{position:absolute;z-index:25;right:0;top:calc(100% + 8px);width:360px;padding:17px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 18px 45px rgba(6,31,56,.18)}.client-import-card p{margin:7px 0;color:var(--muted);font-size:11px;line-height:1.55}.client-import-card>a{display:inline-block;margin-bottom:11px;font-size:11px;font-weight:800}.client-import-card form{display:grid;gap:8px}.client-bulk-bar{display:flex;align-items:center;gap:8px;min-height:43px;margin-bottom:10px;padding:8px 12px;border:1px solid #cfe0ef;border-radius:9px;background:#eef6fd}.client-bulk-bar span{margin-right:auto;color:#41627e;font-size:11px;font-weight:800}.client-bulk-bar select{width:190px;height:34px}.client-bulk-bar button{height:34px;padding:0 13px}.client-data-panel{padding-top:12px}.client-table{min-width:1080px}.client-table .selection-column{width:38px;text-align:center}.client-table td{vertical-align:middle}.client-table .person-cell span:last-child,.client-table td:nth-child(3){display:grid;gap:3px}.client-table small{display:block;color:#8393a4;font-size:9px}.client-phone{font-size:11px}.marketing-optout{margin-top:4px;color:#ad6d15!important}.client-row-actions{display:flex;align-items:center;gap:5px;white-space:nowrap}.client-action-money{background:#e5f7ee;color:#16865b;border-color:#bde8d3}.client-action-whatsapp{background:#def7e7;color:#087c3c;border-color:#b4e9c7;font-size:10px;font-weight:900}.client-more-actions{position:relative}.client-more-actions>summary{display:grid;place-items:center;width:31px;height:31px;border:1px solid #cdd9e5;border-radius:5px;background:#f3f7fa;color:#31516d;cursor:pointer;font-weight:900;list-style:none}.client-more-actions>summary::-webkit-details-marker{display:none}.client-more-actions>div{position:absolute;z-index:24;right:0;top:36px;display:grid;width:225px;padding:6px;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:0 14px 35px rgba(7,32,57,.18)}.client-more-actions a,.client-more-actions button{display:flex;align-items:center;gap:9px;width:100%;min-height:35px;padding:7px 9px;border:0;border-radius:6px;background:transparent;color:#29465f;box-shadow:none;font-size:10px;font-weight:700;text-align:left}.client-more-actions a:hover,.client-more-actions button:hover{background:#eef5fb;transform:none}.client-more-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}.client-more-actions form{margin:0}.client-more-actions .danger-action{color:#c33f49}.client-profile-heading{align-items:flex-end}.client-profile-heading .row-actions{display:flex;flex-wrap:wrap;gap:8px}.client-profile-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.client-profile-summary article{padding:15px;border:1px solid #dfe8f0;border-radius:11px;background:#fff}.client-profile-summary span:first-child{display:block;margin-bottom:7px;color:#73889b;font-size:9px;font-weight:800;text-transform:uppercase}.client-profile-summary strong{font-size:19px}.client-profile-summary .status-pill{width:max-content;font-size:10px}.client-profile-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:12px;margin-bottom:12px}.client-profile-grid>.panel,.client-related-panel{margin:0}.client-data-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0}.client-data-list div{padding:10px 0;border-bottom:1px solid #e8eef3}.client-data-list div:nth-child(odd){padding-right:14px}.client-data-list .wide{grid-column:1/-1}.client-data-list dt{color:#7c8fa0;font-size:8px;font-weight:800;text-transform:uppercase}.client-data-list dd{margin:4px 0 0;color:#18324b;font-size:11px}.compact-record-list{display:grid}.compact-record-list>a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e8eef3}.compact-record-list>a>span{display:grid;gap:3px}.compact-record-list strong,.compact-record-list b{color:#18324b;font-size:10px}.compact-record-list small,.compact-record-list em{color:#7f91a1;font-size:8px;font-style:normal}.compact-record-list>a>span:last-child{text-align:right}.client-related-panel{margin-bottom:12px}.client-file-upload{display:grid;grid-template-columns:1fr auto;gap:7px;margin-bottom:10px}.client-file-list{display:grid}.client-file-list article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #e8eef3}.client-file-list article>span{display:grid;gap:3px}.client-file-list strong{font-size:10px}.client-file-list small{color:#8394a3;font-size:8px}.client-file-list article>div{display:flex;align-items:center;gap:8px}.client-file-list form{margin:0}.client-file-list form button{padding:0;border:0;background:none;box-shadow:none;font-size:9px}.text-danger{color:#c93d47!important}
[data-theme="escuro"] .client-import-card,[data-theme="escuro"] .client-more-actions>div,[data-theme="escuro"] .client-profile-summary article{background:#202636;border-color:#3a4659}.client-more-actions[open]>summary{border-color:#0f6fe5;color:#0f6fe5}.client-import-menu[open]>summary{border-color:#0f6fe5}
@media(max-width:900px){.client-list-toolbar{align-items:stretch;flex-direction:column}.client-search{max-width:none}.client-transfer-actions{justify-content:flex-end}.client-profile-summary{grid-template-columns:repeat(2,1fr)}.client-profile-grid{grid-template-columns:1fr}.client-import-card{left:0;right:auto}}@media(max-width:600px){.client-transfer-actions{align-items:stretch;flex-direction:column}.client-import-menu>summary,.client-transfer-actions>a{text-align:center}.client-import-card{position:fixed;left:12px;right:12px;top:120px;width:auto}.client-bulk-bar{align-items:stretch;flex-direction:column}.client-bulk-bar select{width:100%}.client-profile-summary{grid-template-columns:1fr 1fr}.client-profile-heading .row-actions>*{flex:1;text-align:center}.client-data-list{grid-template-columns:1fr}.client-data-list div:nth-child(odd){padding-right:0}.client-data-list .wide{grid-column:auto}}

/*
 * V26 — Sistema visual unificado.
 * O bloco abaixo é a camada comum de usabilidade da oficina e do Painel SaaS.
 * Ele reduz variações históricas entre views e mantém ações, filtros, tabelas e
 * formulários previsíveis em qualquer módulo.
 */
.system-interface{
    --ui-navy:#06213d;
    --ui-navy-2:#0b3d63;
    --ui-blue:#0b6ee8;
    --ui-blue-dark:#075bbf;
    --ui-cyan:#55c4e2;
    --ui-lime:#84c318;
    --ui-page:#f3f7fb;
    --ui-surface:#fff;
    --ui-surface-soft:#f8fbfe;
    --ui-text:#102840;
    --ui-muted:#667d92;
    --ui-line:#d8e4ef;
    --ui-line-strong:#c3d5e5;
    --ui-success:#16865b;
    --ui-warning:#c87612;
    --ui-danger:#c43d47;
    --ui-on-primary:#fff;
    --ui-link:#075fc6;
    --ui-radius:14px;
    --ui-shadow:0 8px 24px rgba(8,42,74,.065);
    background:var(--ui-page);
    color:var(--ui-text);
    font-size:15px;
}
.skip-link{position:fixed;z-index:999;left:18px;top:14px;padding:10px 15px;border-radius:9px;background:#fff;color:#073c73;font-weight:800;box-shadow:0 8px 30px rgba(0,0,0,.25);transform:translateY(-180%);transition:transform .18s}
.skip-link:focus{transform:translateY(0)}
.system-interface :focus-visible{outline:3px solid rgba(11,110,232,.28);outline-offset:2px}
.system-interface .layout{background:var(--ui-page)}
.system-interface .main{min-width:0}
.system-interface .content{width:100%;max-width:1680px;padding:30px clamp(20px,2.25vw,38px) 54px}
.system-interface .content:focus{outline:none}

/* Navegação lateral: grupos claros, alvos maiores e item atual evidente. */
.system-interface .sidebar{background:linear-gradient(180deg,var(--ui-navy) 0%,var(--ui-navy-2) 100%);box-shadow:5px 0 24px rgba(5,30,55,.12)}
.system-interface .sidebar nav{scrollbar-width:thin;scrollbar-color:rgba(85,196,226,.48) transparent}
.system-interface .sidebar nav>a,.system-interface .nav-group-toggle,.system-interface .sidebar-footer a{min-height:44px;border-radius:9px;font-size:13.5px;line-height:1.25}
.system-interface .sidebar nav>a:hover,.system-interface .sidebar nav>a.active,.system-interface .nav-group-toggle:hover,.system-interface .nav-group.open>.nav-group-toggle{background:rgba(255,255,255,.11)}
.system-interface .sidebar nav>a.active{box-shadow:inset 3px 0 var(--ui-cyan);color:#fff}
.system-interface .sidebar nav>a.active:after{content:'';width:6px;height:6px;margin-left:auto;border-radius:50%;background:var(--ui-lime);box-shadow:0 0 0 3px rgba(132,195,24,.14)}
.system-interface .nav-label{font-size:10px;letter-spacing:.13em;color:#91abc0}
.system-interface .nav-submenu a{min-height:37px;font-size:12.5px;line-height:1.3}
.system-interface .nav-submenu a.active{color:#8ce7fb;font-weight:800}
.system-interface .app-brand img{filter:drop-shadow(0 6px 14px rgba(0,0,0,.12))}

/* Barra superior: pesquisa e atalhos permanecem disponíveis sem poluir. */
.system-interface .topbar{height:76px;padding:0 clamp(16px,2vw,28px);border-top:3px solid var(--ui-lime);border-bottom:1px solid var(--ui-line);background:rgba(255,255,255,.97);box-shadow:0 4px 16px rgba(7,35,65,.035);backdrop-filter:blur(12px)}
.system-interface .topbar-greeting{font-size:13px}
.system-interface .quick-search{height:40px;border-color:var(--ui-line-strong);border-radius:10px}
.system-interface .quick-search input{width:150px;font-size:13px}
.system-interface .top-icon{width:40px;height:40px;border-radius:10px}
.system-interface .user-area{min-height:48px;padding:5px 7px 5px 16px;border-radius:11px}
.system-interface .user-area:hover{background:#f1f6fb}
.system-interface .user-avatar{width:38px;height:38px}
.system-interface .user-dropdown{min-width:270px;border:1px solid var(--ui-line);border-radius:13px;box-shadow:0 20px 50px rgba(6,31,56,.18)}

/* Localização e cabeçalho são idênticos em todos os módulos. */
.interface-breadcrumb{display:flex;align-items:center;gap:8px;min-height:25px;margin:0 0 13px;color:#7690a6;font-size:12px;white-space:nowrap;overflow:hidden}
.interface-breadcrumb a{color:var(--ui-blue);font-weight:800}
.interface-breadcrumb strong{overflow:hidden;color:#506b83;text-overflow:ellipsis}
.system-interface .page-header,.system-interface .dashboard-heading,.system-interface .saas-v20-heading{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:18px;padding-left:15px}
.system-interface .page-header:before,.system-interface .dashboard-heading:before,.system-interface .saas-v20-heading:before{content:'';position:absolute;left:0;top:2px;bottom:2px;width:4px;border-radius:99px;background:linear-gradient(180deg,var(--ui-lime),#54a800)}
.system-interface .page-header h1,.system-interface .dashboard-heading h1,.system-interface .saas-v20-heading h1{margin:0 0 4px;color:var(--ui-navy);font-size:clamp(25px,2.15vw,32px);line-height:1.15;letter-spacing:-.025em}
.system-interface .page-header p,.system-interface .dashboard-heading p,.system-interface .saas-v20-heading p{max-width:760px;margin:0;color:var(--ui-muted);font-size:14px}
.system-interface .page-kicker{margin-bottom:6px;color:var(--ui-blue);font-size:11px;line-height:1.2;letter-spacing:.14em}
.system-interface .page-header>.row-actions,.system-interface .dashboard-heading-actions,.system-interface .saas-v20-heading-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px}

/* Botões com hierarquia previsível. */
.system-interface :where(.button,button:not(.nav-group-toggle):not(.top-icon):not(.user-area):not(.menu-toggle):not(.company-access):not(.saas-v20-company-link)){min-height:42px;border:1px solid transparent;border-radius:10px;padding:10px 16px;background:var(--ui-blue);color:var(--ui-on-primary);box-shadow:0 8px 18px rgba(11,110,232,.14);font-size:13px;line-height:1.2}
.system-interface :where(.button:hover,button:not(.nav-group-toggle):not(.top-icon):not(.user-area):not(.menu-toggle):not(.company-access):not(.saas-v20-company-link):hover){background:var(--ui-blue-dark);color:var(--ui-on-primary)}
.system-interface .button-outline,.system-interface .button-ghost{background:#fff;color:var(--ui-blue);border:1px solid var(--ui-line-strong);box-shadow:none}
.system-interface .button-outline:hover,.system-interface .button-ghost:hover{background:#eef6ff;color:var(--ui-blue-dark);border-color:#9ec6ed}
.system-interface .button-success{background:var(--ui-success)}
.system-interface .button.secondary{background:#61758a}
.system-interface .button.danger,.system-interface button.danger{background:var(--ui-danger)}
.system-interface .modal-close{width:40px;height:40px;min-height:40px;padding:0;background:rgba(255,255,255,.12);color:inherit;box-shadow:none;font-size:24px}
.system-interface .modal-close:hover{background:rgba(255,255,255,.2);color:inherit;transform:none}
.system-interface .password-toggle{right:7px;width:auto;min-height:32px;height:32px;padding:6px 10px;background:#eaf3fc;color:var(--ui-blue);box-shadow:none;font-size:11px}
.system-interface .password-toggle:hover{background:#d9ebfb;color:var(--ui-blue-dark);transform:translateY(-50%)}
.system-interface .mini-action{width:40px;height:40px;min-height:40px;padding:0;background:#e9f3ff;color:var(--ui-blue);box-shadow:none}
.system-interface .mini-action:hover{background:#d7eaff;color:var(--ui-blue-dark)}
.system-interface .document-search-button{width:44px;height:44px;min-height:44px;padding:0;background:var(--ui-blue);box-shadow:none}
.system-interface .module-item-remove{width:36px;height:36px;min-height:36px;padding:0;background:#ffe8eb;color:var(--ui-danger);box-shadow:none}

/* Superfícies, filtros e painéis. */
.system-interface .card,.system-interface .panel{border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:var(--ui-surface);box-shadow:var(--ui-shadow)}
.system-interface .panel{padding:22px;margin-bottom:16px}
.system-interface .panel h2{margin-bottom:7px;color:var(--ui-navy);font-size:19px}
.system-interface .panel h3{color:var(--ui-navy);font-size:15px}
.system-interface .list-toolbar,.system-interface .client-list-toolbar,.system-interface .receivable-filters{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding:12px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface);box-shadow:0 4px 14px rgba(8,42,74,.035)}
.system-interface .list-toolbar{justify-content:flex-end}
.system-interface .search-compact,.system-interface .client-search{width:min(720px,100%);max-width:720px}
.system-interface .search-compact input,.system-interface .client-search input{height:44px;border-color:#bcd4ea;background:#fff}
.system-interface .search-compact button,.system-interface .client-search button{min-width:88px;height:44px}
.system-interface .client-bulk-bar{min-height:50px;padding:9px 12px;border-color:#c8def2;background:#eef7ff}
.system-interface .client-bulk-bar span{font-size:12px}
.system-interface .client-bulk-bar select,.system-interface .client-bulk-bar button{height:38px;min-height:38px}

/* Campos e formulários. */
.system-interface input,.system-interface select,.system-interface textarea{min-height:44px;border:1px solid var(--ui-line-strong);border-radius:10px;background:#fff;color:var(--ui-text);font-size:14px}
.system-interface textarea{min-height:104px;line-height:1.5}
.system-interface input::placeholder,.system-interface textarea::placeholder{color:#98a9b9}
.system-interface input:focus,.system-interface select:focus,.system-interface textarea:focus{border-color:var(--ui-blue);box-shadow:0 0 0 4px rgba(11,110,232,.1)}
.system-interface label{color:#29445d;font-size:12.5px}
.system-interface label+small,.system-interface .settings-fieldset small,.system-interface .form-panel small{font-size:11.5px;line-height:1.45}
.system-interface .grid-2{gap:18px}
.system-interface .form-panel{max-width:1200px;padding:24px}
.system-interface .settings-fieldset,.system-interface .receivable-form fieldset,.system-interface .person-fieldset{margin:0 0 18px;padding:20px;border:1px solid var(--ui-line);border-radius:13px;background:var(--ui-surface-soft)}
.system-interface .settings-fieldset legend,.system-interface .receivable-form legend,.system-interface .person-fieldset legend{padding:0 9px;color:var(--ui-blue);font-size:11px;font-weight:900;letter-spacing:.1em}
.system-interface .form-actions{position:sticky;z-index:5;bottom:0;display:flex;justify-content:flex-end;gap:10px;margin:24px -4px -4px;padding:14px 4px 4px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 32%)}
.system-interface .check-field{padding:9px 12px;border:1px solid var(--ui-line);border-radius:10px;background:#fff}
.system-interface .check-field input{min-height:18px}

/* Tabelas: leitura mais confortável e ações identificáveis. */
.system-interface .data-panel,.system-interface .table-scroll,.system-interface .saas-companies-panel{padding:12px 16px 16px;overflow:visible}
.system-interface .table-wrap,.system-interface .table-scroll{overflow:auto}
.system-interface table{font-size:13px}
.system-interface table th{padding:12px 11px;border-bottom:1px solid var(--ui-line);background:#f4f8fc;color:#526b82;font-size:11px;font-weight:800;letter-spacing:.055em;text-transform:uppercase;white-space:nowrap}
.system-interface table td{padding:12px 11px;border-bottom:1px solid #e7eef5;color:#203950;vertical-align:middle}
.system-interface table tbody tr{transition:background .16s,box-shadow .16s}
.system-interface table tbody tr:hover{background:#f5faff}
.system-interface table tbody tr:last-child td{border-bottom:0}
.system-interface table td>small,.system-interface .client-table small{font-size:10.5px;line-height:1.35}
.system-interface .table-empty,.system-interface .empty-state{padding:42px 20px;color:var(--ui-muted);text-align:center}
.system-interface .table-empty strong,.system-interface .empty-state strong{display:block;margin-bottom:4px;color:var(--ui-navy);font-size:15px}
.system-interface .person-avatar{width:34px;height:34px;border-radius:10px}
.system-interface .badge,.system-interface .status-pill{font-size:11px}
.system-interface .icon-actions,.system-interface .client-row-actions,.system-interface .row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.system-interface .icon-actions form,.system-interface .client-row-actions form,.system-interface .row-actions form{margin:0}
.system-interface .icon-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;border-radius:8px;box-shadow:none}
.system-interface .icon-button.view{background:#fff0d9;color:#b56e09;border-color:#ffd699}
.system-interface .icon-button.edit{background:#e5f5ff;color:#0878c9;border-color:#b9e2f7}
.system-interface .icon-button.disable{background:#ffe3e6;color:#d93e4b;border-color:#ffc3c8}
.system-interface .icon-button.client-action-money{background:#e5f7ee;color:#16865b;border-color:#bde8d3}
.system-interface .icon-button.client-action-whatsapp{background:#def7e7;color:#087c3c;border-color:#b4e9c7}
.system-interface .icon-button:hover{filter:brightness(.96);transform:none}
.system-interface .action-copy{display:none;font-size:10.5px;font-weight:800;white-space:nowrap}
.system-interface .client-more-actions>summary{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:56px;height:34px;padding:0 10px;border-radius:8px;background:#eef3f8;color:#38536c;font-size:11px;font-weight:800}
.system-interface .client-more-actions>summary span:after{content:' ···';letter-spacing:.06em}
.system-interface .client-more-actions>div{top:40px;width:250px;padding:8px;border-radius:12px}
.system-interface .client-more-actions a,.system-interface .client-more-actions button{min-height:39px;font-size:11.5px}
.system-interface .client-more-actions button{justify-content:flex-start;padding:8px 10px;background:transparent;color:#29465f;box-shadow:none}
.system-interface .client-more-actions button:hover{background:#eef5fb;color:#173b5c}
.system-interface .client-phone{font-size:12.5px}
.system-interface .pagination{margin-top:12px}

@media(min-width:1280px){
    .system-interface .data-table .icon-button,.system-interface .document-list-table .icon-button{width:auto;max-width:150px;padding:0 10px;gap:6px}
    .system-interface .data-table .icon-button:after,.system-interface .document-list-table .icon-button:after{content:attr(data-action-label);font-size:10.5px;font-weight:800;white-space:nowrap}
    .system-interface .client-table .icon-button{width:34px;padding:0}
    .system-interface .client-table .icon-button:after{display:none}
}
@media(min-width:1380px){
    .system-interface .client-table{min-width:1140px}
    .system-interface .client-table .icon-button{width:auto;max-width:112px;padding:0 9px;gap:5px}
    .system-interface .client-table .action-copy{display:inline}
}

/* Modais seguem o mesmo padrão visual e mantêm salvar/cancelar sempre visíveis. */
.system-interface .app-modal{padding:18px}
.system-interface .modal-backdrop{background:rgba(4,24,43,.74);backdrop-filter:blur(4px)}
.system-interface .modal-card{border:1px solid rgba(255,255,255,.3);border-radius:16px;box-shadow:0 32px 100px rgba(1,19,37,.34)}
.system-interface .people-modal-card>.people-modal-header{padding:19px 22px;border-top:4px solid var(--ui-lime);background:linear-gradient(135deg,var(--ui-navy),var(--ui-blue))}
.system-interface .people-modal-header .page-kicker{color:#b8eaff}
.system-interface .people-modal-header h2{font-size:21px}
.system-interface .people-modal-actions{padding:16px 22px;background:rgba(255,255,255,.97)}

/* Painel SaaS: corrige a densidade reduzida das telas antigas. */
.system-interface .saas-context{min-height:62px}
.system-interface .saas-v20-heading{align-items:flex-end}
.system-interface .saas-v20-kpis{gap:13px;margin-bottom:18px}
.system-interface .saas-v20-kpi{min-height:135px;padding:18px;border-radius:13px;box-shadow:var(--ui-shadow)}
.system-interface .saas-v20-kpi-top small{font-size:11px}
.system-interface .saas-v20-kpi>strong{font-size:27px}
.system-interface .saas-v20-kpi p{font-size:11px}
.system-interface .saas-v20-card{border-radius:14px;box-shadow:var(--ui-shadow)}
.system-interface .saas-v20-card-heading{padding:18px 20px 12px}
.system-interface .saas-v20-card-heading h2{font-size:17px}
.system-interface .saas-v20-card-heading p,.system-interface .saas-v20-card-heading a{font-size:11px}
.system-interface .saas-plan-legend strong,.system-interface .saas-status-row>span{font-size:11px}
.system-interface .saas-plan-legend small,.system-interface .saas-alert-list small,.system-interface .saas-activity-list p small{font-size:10px}
.system-interface .saas-plan-legend b,.system-interface .saas-status-row>strong{font-size:12px}
.system-interface .saas-alert-list>a{min-height:58px;padding:11px 13px}
.system-interface .saas-alert-list strong,.system-interface .saas-activity-list p{font-size:11.5px}
.system-interface .saas-v20-table th{padding:12px 10px;font-size:10.5px}
.system-interface .saas-v20-table td{padding:12px 10px;font-size:12px}
.system-interface .saas-v20-table td>small,.system-interface .saas-v20-company-link strong{font-size:10.5px}
.system-interface .saas-v20-status{font-size:9.5px}
.system-interface .saas-metrics{gap:13px}
.system-interface .saas-metrics .card{min-height:116px;padding:18px}
.system-interface .saas-metrics .card span{font-size:12px}
.system-interface .saas-metrics .card strong{font-size:23px}

/* Estados escuros equivalentes. */
[data-theme="escuro"] .system-interface{--ui-page:#151927;--ui-surface:#202636;--ui-surface-soft:#191f2c;--ui-text:#edf3f8;--ui-muted:#a4b0bd;--ui-line:#39465a;--ui-line-strong:#4a5870;--ui-navy:#edf4fb}
[data-theme="escuro"] .system-interface .topbar,[data-theme="escuro"] .system-interface .form-actions,[data-theme="escuro"] .system-interface .people-modal-actions{background:rgba(32,38,54,.97)}
[data-theme="escuro"] .system-interface .user-area:hover,[data-theme="escuro"] .system-interface table th,[data-theme="escuro"] .system-interface .list-toolbar,[data-theme="escuro"] .system-interface .client-list-toolbar,[data-theme="escuro"] .system-interface .receivable-filters,[data-theme="escuro"] .system-interface .check-field{background:#252d3d}
[data-theme="escuro"] .system-interface table td{color:#dce5ee;border-color:#39465a}
[data-theme="escuro"] .system-interface table tbody tr:hover{background:#252e3e}
[data-theme="escuro"] .system-interface input,[data-theme="escuro"] .system-interface select,[data-theme="escuro"] .system-interface textarea{background:#171d29;color:#edf3f8}
[data-theme="escuro"] .system-interface label{color:#ccd7e2}
[data-theme="escuro"] .system-interface .interface-breadcrumb strong{color:#bbc8d4}
[data-theme="escuro"] .system-interface .button-outline,[data-theme="escuro"] .system-interface .button-ghost{background:#202636;color:#7eb9ff}

/* Responsividade: sem rolagem lateral para as listagens mais usadas. */
.sidebar-backdrop-v26{display:none}
@media(max-width:1180px){
    .system-interface .topbar-searches{display:none}
    .system-interface .saas-metrics{grid-template-columns:repeat(3,1fr)}
    .system-interface .site-admin-layout{grid-template-columns:1fr}
}
@media(max-width:1000px){
    .sidebar-backdrop-v26{position:fixed;z-index:29;inset:0;width:100%;height:100%;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:rgba(4,24,43,.58)!important;box-shadow:none!important;opacity:0;pointer-events:none;transition:opacity .2s}
    .sidebar-open .sidebar-backdrop-v26{display:block;opacity:1;pointer-events:auto}
    .system-interface .content{padding:24px 18px 44px}
}
@media(max-width:760px){
    .system-interface{font-size:14px}
    .system-interface .content,.system-interface .saas-content{padding:18px 12px 36px}
    .interface-breadcrumb{margin-bottom:10px}
    .system-interface .page-header,.system-interface .dashboard-heading,.system-interface .saas-v20-heading{align-items:stretch;flex-direction:column;padding-left:12px}
    .system-interface .page-header>.button,.system-interface .page-header>.row-actions,.system-interface .dashboard-heading-actions,.system-interface .saas-v20-heading-actions{width:100%}
    .system-interface .page-header>.button,.system-interface .page-header>.row-actions>*{flex:1}
    .system-interface .list-toolbar,.system-interface .client-list-toolbar,.system-interface .receivable-filters{align-items:stretch;flex-direction:column;padding:10px}
    .system-interface .search-compact,.system-interface .client-search{width:100%;max-width:none}
    .system-interface .client-transfer-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
    .system-interface .client-bulk-bar{align-items:stretch;flex-direction:column}
    .system-interface .client-bulk-bar select{width:100%}
    .system-interface .panel,.system-interface .form-panel{padding:16px}
    .system-interface .grid-2,.system-interface .person-form-grid{grid-template-columns:1fr}
    .system-interface .field-full,.system-interface .person-field-wide{grid-column:auto}
    .system-interface .form-actions{margin-inline:-4px;flex-direction:column-reverse}
    .system-interface .form-actions>*{width:100%}
    .system-interface .saas-metrics{grid-template-columns:1fr 1fr}
    .system-interface .data-panel,.system-interface .table-scroll,.system-interface .saas-companies-panel{padding:10px;overflow:visible}
    .system-interface .table-wrap{overflow:visible}
    .system-interface .v26-responsive-table{display:block;width:100%;min-width:0}
    .system-interface .v26-responsive-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
    .system-interface .v26-responsive-table tbody{display:grid;gap:12px}
    .system-interface .v26-responsive-table tbody tr{display:block;padding:7px 13px;border:1px solid var(--ui-line);border-left:4px solid var(--ui-blue);border-radius:12px;background:var(--ui-surface);box-shadow:0 5px 16px rgba(8,42,74,.045)}
    .system-interface .v26-responsive-table tbody tr:hover{background:var(--ui-surface)}
    .system-interface .v26-responsive-table tbody td{display:grid;grid-template-columns:minmax(88px,36%) minmax(0,64%);align-items:start;gap:10px;min-height:38px;padding:9px 0;border-bottom:1px solid var(--ui-line);overflow-wrap:anywhere}
    .system-interface .v26-responsive-table tbody td:last-child{border-bottom:0}
    .system-interface .v26-responsive-table tbody td:before{content:attr(data-label);color:var(--ui-muted);font-size:10px;font-weight:900;letter-spacing:.045em;text-transform:uppercase}
    .system-interface .v26-responsive-table tbody td[colspan]{display:block;text-align:center}
    .system-interface .v26-responsive-table tbody td[colspan]:before{display:none}
    .system-interface .v26-responsive-table .icon-actions,.system-interface .v26-responsive-table .client-row-actions,.system-interface .v26-responsive-table .row-actions{justify-content:flex-start}
    .system-interface .client-more-actions>div{position:fixed;z-index:150;left:12px;right:12px;top:auto;bottom:18px;width:auto;max-height:70vh;overflow:auto}
    .system-interface .client-profile-summary,.system-interface .receivable-detail-summary{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
    .system-interface .saas-metrics,.system-interface .client-profile-summary,.system-interface .receivable-detail-summary{grid-template-columns:1fr}
    .system-interface .client-transfer-actions{grid-template-columns:1fr}
    .system-interface .v26-responsive-table tbody td{grid-template-columns:1fr;gap:4px}
}

/*
 * V27 — Design System obrigatório.
 * Estas variáveis e utilitários são a base canônica para novas telas. A
 * camada V26 continua ativa para preservar os módulos já homologados.
 */
.system-interface-v27{
    --ui-font-body:'DM Sans',Arial,sans-serif;
    --ui-font-heading:'Manrope','DM Sans',Arial,sans-serif;
    --ui-font-xs:.75rem;
    --ui-font-sm:.8125rem;
    --ui-font-md:.9375rem;
    --ui-font-lg:1.125rem;
    --ui-font-xl:1.5rem;
    --ui-font-2xl:2rem;
    --ui-space-1:.25rem;
    --ui-space-2:.5rem;
    --ui-space-3:.75rem;
    --ui-space-4:1rem;
    --ui-space-5:1.25rem;
    --ui-space-6:1.5rem;
    --ui-space-7:2rem;
    --ui-space-8:2.5rem;
    --ui-radius-sm:8px;
    --ui-radius-lg:18px;
    font-family:var(--ui-font-body);
}
.system-interface-v27 h1,.system-interface-v27 h2,.system-interface-v27 h3,.system-interface-v27 strong{font-family:var(--ui-font-heading)}
.system-interface-v27 .ui-stack{display:flex;flex-direction:column;gap:var(--ui-space-4)}
.system-interface-v27 .ui-cluster{display:flex;align-items:center;flex-wrap:wrap;gap:var(--ui-space-3)}
.system-interface-v27 .ui-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:var(--ui-space-4)}
.system-interface-v27 .field-help{display:block;margin-top:var(--ui-space-2);color:var(--ui-muted);font-size:var(--ui-font-xs);line-height:1.45}
.system-interface-v27 .field-error{display:block;margin-top:var(--ui-space-2);color:var(--ui-danger);font-size:var(--ui-font-xs);font-weight:700;line-height:1.45}
.system-interface-v27 [aria-invalid="true"]{border-color:var(--ui-danger);box-shadow:0 0 0 4px rgba(196,61,71,.1)}
.system-interface-v27 :disabled,.system-interface-v27 [aria-disabled="true"]{cursor:not-allowed;opacity:.58;box-shadow:none}
.system-interface-v27 .button-whatsapp{background:#128c52}
.system-interface-v27 .button-whatsapp:hover{background:#0c7443}
.system-interface-v27 .button-pdf{background:#c43d47}
.system-interface-v27 .button-pdf:hover{background:#a82f39}
.system-interface-v27 .responsive-data-table{max-width:100%}
.system-interface-v27 .email-test-button{margin-top:var(--ui-space-4)}
.system-interface-v27 .status-donut{background:var(--status-donut-background)}
.system-interface-v27 .status-legend i{background:var(--status-item-color)}
@media(prefers-reduced-motion:reduce){
    .system-interface-v27 *,.system-interface-v27 *::before,.system-interface-v27 *::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}

/*
 * V28 — Interface de produção.
 *
 * Esta camada corrige a densidade excessiva observada em homologação e cria
 * um vocabulário único para ações de tabela. Ícone, cor, rótulo acessível e
 * tooltip trabalham juntos; assim o usuário reconhece a ação sem decorar
 * símbolos e a interface continua utilizável por teclado e leitor de tela.
 */
.system-interface-v28{
    --ui-page:#f4f8fc;
    --ui-surface:#fff;
    --ui-surface-soft:#f8fbff;
    --ui-navy:#071f38;
    --ui-text:#18324b;
    --ui-muted:#657d93;
    --ui-blue:#086fe8;
    --ui-line:#dbe6f0;
    --ui-line-strong:#bfd2e4;
    --ui-shadow:0 8px 26px rgba(7,39,70,.055);
    font-size:15px;
}

/* Estrutura mais legível: menu, barra superior e conteúdo compartilham escala. */
.system-interface-v28 .sidebar{width:248px}
.system-interface-v28 .main{margin-left:248px}
.system-interface-v28 .app-brand{height:72px;padding:10px 22px}
.system-interface-v28 .app-brand img{width:178px;height:48px}
.system-interface-v28 .sidebar nav{padding-inline:12px}
.system-interface-v28 .sidebar nav>a,.system-interface-v28 .nav-group-toggle,.system-interface-v28 .sidebar-footer a{min-height:46px;padding:10px 12px;font-size:14px}
.system-interface-v28 .nav-submenu a{min-height:40px;margin-left:14px;padding:9px 10px 9px 18px;font-size:13px}
.system-interface-v28 .topbar{height:72px}
.system-interface-v28 .content{max-width:1800px;padding:28px clamp(22px,2.2vw,38px) 52px}
.system-interface-v28 .page-header,.system-interface-v28 .dashboard-heading,.system-interface-v28 .saas-v20-heading{margin-bottom:16px}
.system-interface-v28 .page-header h1,.system-interface-v28 .dashboard-heading h1,.system-interface-v28 .saas-v20-heading h1{font-size:clamp(27px,2vw,34px)}

/* Barras de busca e filtros ficam compactas, alinhadas e sem áreas vazias. */
.system-interface-v28 .client-list-toolbar{min-height:66px;padding:10px 12px}
.system-interface-v28 .client-search{max-width:760px}
.system-interface-v28 .client-bulk-bar{width:100%;min-height:46px;margin:0 0 12px;padding:7px 10px;border-style:dashed;background:#f5faff}
.system-interface-v28 .client-bulk-bar select{width:205px}
.system-interface-v28 .list-toolbar .search-compact{margin-left:auto}

/* Tabelas sem rolagem vertical interna e com cabeçalho visualmente estável. */
.system-interface-v28 .data-panel,.system-interface-v28 .table-scroll,.system-interface-v28 .saas-companies-panel{padding:0;overflow:visible}
.system-interface-v28 .data-panel>.table-wrap,.system-interface-v28 .saas-companies-panel>.table-wrap{padding:10px 14px 14px}
.system-interface-v28 table{width:100%;border-collapse:separate;border-spacing:0}
.system-interface-v28 table th{height:44px;padding:11px 12px;background:#eef5fb;color:#49677f;border-top:1px solid var(--ui-line);border-bottom:1px solid var(--ui-line);font-size:11px}
.system-interface-v28 table th:first-child{border-left:1px solid var(--ui-line);border-radius:10px 0 0 10px}
.system-interface-v28 table th:last-child{border-right:1px solid var(--ui-line);border-radius:0 10px 10px 0}
.system-interface-v28 table td{padding:13px 12px;font-size:13px}
.system-interface-v28 table tbody tr:hover{background:#f7fbff}
.system-interface-v28 .person-cell strong{font-size:13px}
.system-interface-v28 .person-cell small{margin-top:2px}

/* Botão quadrado canônico das tabelas. */
.system-interface-v28 .ui-action,
.system-interface-v28 .icon-button,
.system-interface-v28 .table-actions a{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0!important;
    border:1px solid transparent;
    border-radius:8px;
    background:#eef4f9;
    color:#36556f;
    box-shadow:none!important;
    line-height:1;
    vertical-align:middle;
}
.system-interface-v28 .ui-action svg,.system-interface-v28 .icon-button svg,.system-interface-v28 .table-actions svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.system-interface-v28 .ui-action:hover,.system-interface-v28 .ui-action:focus-visible,.system-interface-v28 .icon-button:hover,.system-interface-v28 .icon-button:focus-visible,.system-interface-v28 .table-actions a:hover,.system-interface-v28 .table-actions a:focus-visible{filter:none;transform:translateY(-1px);box-shadow:0 6px 14px rgba(7,37,67,.12)!important}
.system-interface-v28 .ui-action.is-view,.system-interface-v28 .icon-button.view{background:#fff4df!important;color:#a96508;border-color:#f7d799}
.system-interface-v28 .ui-action.is-edit,.system-interface-v28 .icon-button.edit{background:#e8f4ff!important;color:#086fca;border-color:#b8ddfa}
.system-interface-v28 .ui-action.is-vehicle{background:#e9f8ff!important;color:#087f9e;border-color:#b8e6f1}
.system-interface-v28 .ui-action.is-file,.system-interface-v28 .ui-action.is-print{background:#f0edff!important;color:#6650b8;border-color:#d3c9fa}
.system-interface-v28 .ui-action.is-money{background:#e6f8ef!important;color:#08794e;border-color:#b9e7cf}
.system-interface-v28 .ui-action.is-whatsapp{background:#e2f8e9!important;color:#087b3d;border-color:#ade3bf}
.system-interface-v28 .ui-action.is-email{background:#e7f7fb!important;color:#087b96;border-color:#b9e6ef}
.system-interface-v28 .ui-action.is-budget{background:#fff2df!important;color:#ad6508;border-color:#f1cf99}
.system-interface-v28 .ui-action.is-order{background:#e8efff!important;color:#315ac7;border-color:#bdcdf7}
.system-interface-v28 .ui-action.is-marketing-on{background:#e8f7f5!important;color:#087d72;border-color:#b7e4dd}
.system-interface-v28 .ui-action.is-marketing-off{background:#f3f5f7!important;color:#687783;border-color:#d7dee4}
.system-interface-v28 .ui-action.is-disable,.system-interface-v28 .icon-button.disable{background:#ffe9eb!important;color:#c43d47;border-color:#ffc2c7}
.system-interface-v28 .ui-action.is-enable{background:#e5f8ed!important;color:#087947;border-color:#b4e5c7}
.system-interface-v28 .ui-action form,.system-interface-v28 .client-row-actions form{display:inline-flex;margin:0}

/* Tooltip próprio: aparece no mouse e no foco do teclado. */
.system-interface-v28 [data-tooltip]{position:relative}
.system-interface-v28 [data-tooltip]::before,.system-interface-v28 [data-tooltip]::after{position:absolute;z-index:220;left:50%;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .12s,transform .12s}
.system-interface-v28 [data-tooltip]::before{content:'';bottom:calc(100% + 5px);border:5px solid transparent;border-top-color:#092640;transform:translate(-50%,3px)}
.system-interface-v28 [data-tooltip]::after{content:attr(data-tooltip)!important;display:block!important;bottom:calc(100% + 15px);width:max-content;max-width:230px;padding:7px 9px;border-radius:7px;background:#092640;color:#fff;font-size:11px!important;font-weight:700!important;line-height:1.25;letter-spacing:0;text-align:center;text-transform:none;white-space:normal;transform:translate(-50%,3px);box-shadow:0 8px 20px rgba(0,22,42,.2)}
.system-interface-v28 [data-tooltip]:hover::before,.system-interface-v28 [data-tooltip]:hover::after,.system-interface-v28 [data-tooltip]:focus-visible::before,.system-interface-v28 [data-tooltip]:focus-visible::after{opacity:1;visibility:visible;transform:translate(-50%,0)}
.system-interface-v28 [data-tooltip].tooltip-align-start::before,.system-interface-v28 [data-tooltip].tooltip-align-start::after{left:0;transform:translate(0,3px)}
.system-interface-v28 [data-tooltip].tooltip-align-start:hover::before,.system-interface-v28 [data-tooltip].tooltip-align-start:hover::after,.system-interface-v28 [data-tooltip].tooltip-align-start:focus-visible::before,.system-interface-v28 [data-tooltip].tooltip-align-start:focus-visible::after{transform:translate(0,0)}
.system-interface-v28 [data-tooltip].tooltip-align-end::before,.system-interface-v28 [data-tooltip].tooltip-align-end::after{right:0;left:auto;transform:translate(0,3px)}
.system-interface-v28 [data-tooltip].tooltip-align-end:hover::before,.system-interface-v28 [data-tooltip].tooltip-align-end:hover::after,.system-interface-v28 [data-tooltip].tooltip-align-end:focus-visible::before,.system-interface-v28 [data-tooltip].tooltip-align-end:focus-visible::after{transform:translate(0,0)}

/* Central de clientes: informações e ações divididas em colunas previsíveis. */
.system-interface-v28 .client-data-panel{border-radius:14px}
.system-interface-v28 .client-table{min-width:1110px;table-layout:auto}
.system-interface-v28 .client-table th:nth-child(2){min-width:190px}
.system-interface-v28 .client-table th:nth-child(3){min-width:170px}
.system-interface-v28 .client-table th:nth-child(4){width:78px}
.system-interface-v28 .client-table th:nth-child(5){width:92px}
.system-interface-v28 .client-table th:nth-child(6){width:80px}
.system-interface-v28 .client-table th:last-child{width:420px}
.system-interface-v28 .client-actions-cell{min-width:420px}
.system-interface-v28 .client-row-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:5px;white-space:nowrap}
.system-interface-v28 .client-row-actions form{flex:0 0 auto}
.system-interface-v28 .client-table .action-copy{display:none!important}
.system-interface-v28 .client-table tbody tr.is-selected{background:#eef7ff;box-shadow:inset 3px 0 var(--ui-blue)}

/* O mesmo padrão também corrige ações textuais do Painel SaaS. */
.system-interface-v28 .saas-layout .row-actions{flex-wrap:nowrap}
.system-interface-v28 .saas-layout .row-actions .ui-action{flex:0 0 auto}
.system-interface-v28 .saas-companies-panel .support-hint{margin:14px 14px 0}
.system-interface-v28 .saas-v20-table th{font-size:11px}
.system-interface-v28 .saas-v20-table td{font-size:12.5px}
.system-interface-v28 .dashboard-table-wrap table{font-size:12px}
.system-interface-v28 .dashboard-table-wrap th{font-size:10px}
.system-interface-v28 .dashboard-table-wrap td{font-size:12px}

[data-theme="escuro"] .system-interface-v28 table th{background:#263244;color:#c8d7e3}
[data-theme="escuro"] .system-interface-v28 .client-bulk-bar{background:#1b2635;border-color:#42546a}

@media(min-width:1181px){
    .system-interface-v28 .client-data-panel>.table-wrap{overflow:visible}
}
@media(max-width:1180px){
    .system-interface-v28 .sidebar{width:232px}
    .system-interface-v28 .main{margin-left:232px}
    .system-interface-v28 .client-table{min-width:1080px}
    .system-interface-v28 .client-data-panel>.table-wrap{overflow-x:auto;overflow-y:visible}
}
@media(max-width:1000px){
    .system-interface-v28 .sidebar{width:min(290px,86vw)}
    .system-interface-v28 .main{margin-left:0}
}
@media(max-width:760px){
    .system-interface-v28 .content{padding:18px 12px 40px}
    .system-interface-v28 .client-bulk-bar{align-items:stretch}
    .system-interface-v28 .client-actions-cell{min-width:0}
    .system-interface-v28 .client-row-actions{flex-wrap:wrap;gap:7px}
    .system-interface-v28 .v26-responsive-table tbody td:last-child{display:block}
    .system-interface-v28 .v26-responsive-table tbody td:last-child::before{display:block;margin-bottom:8px}
    .system-interface-v28 .v26-responsive-table .ui-action{width:38px!important;height:38px!important}
}

/*
 * V29 — Paleta semântica e contraste.
 *
 * Cada cor de ação possui um par explícito de fundo e conteúdo. A regra evita
 * que botões contornados herdem o fundo da ação principal e desapareçam, como
 * ocorria no perfil do cliente. A mesma camada atende oficina e Painel SaaS.
 */
.system-interface-v29{
    --ui-navy:#071f38;
    --ui-navy-2:#0a3a61;
    --ui-blue:#0667d8;
    --ui-blue-dark:#0454b4;
    --ui-link:#075db8;
    --ui-cyan:#4bb8d8;
    --ui-lime:#7ab817;
    --ui-page:#f4f8fc;
    --ui-surface:#fff;
    --ui-surface-soft:#f8fbff;
    --ui-text:#142f49;
    --ui-muted:#5f768b;
    --ui-line:#d8e5f0;
    --ui-line-strong:#b8cee1;
    --ui-success:#11794f;
    --ui-warning:#925b08;
    --ui-danger:#b5313e;
    --ui-on-primary:#fff;
}

/* Ações primárias e variantes sempre preservam contraste de texto e ícone. */
.system-interface-v29 :where(.button,button:not(.nav-group-toggle):not(.top-icon):not(.user-area):not(.menu-toggle):not(.company-access):not(.saas-v20-company-link)){color:var(--ui-on-primary)}
.system-interface-v29 .button.button-outline,
.system-interface-v29 button.button-outline,
.system-interface-v29 .button.button-ghost,
.system-interface-v29 button.button-ghost{border-color:var(--ui-line-strong);background:#fff;color:var(--ui-link);box-shadow:none}
.system-interface-v29 .button.button-outline:hover,
.system-interface-v29 button.button-outline:hover,
.system-interface-v29 .button.button-ghost:hover,
.system-interface-v29 button.button-ghost:hover{border-color:#86b5df;background:#eaf4ff;color:#064f9d}
.system-interface-v29 .button.button-success,
.system-interface-v29 button.button-success{background:var(--ui-success);color:#fff}
.system-interface-v29 .button.button-success:hover,
.system-interface-v29 button.button-success:hover{background:#0c6542;color:#fff}
.system-interface-v29 .button.secondary,
.system-interface-v29 button.secondary{background:#536b81;color:#fff}
.system-interface-v29 .button.secondary:hover,
.system-interface-v29 button.secondary:hover{background:#40566a;color:#fff}
.system-interface-v29 .button.danger,
.system-interface-v29 button.danger{background:var(--ui-danger);color:#fff}
.system-interface-v29 .button.danger:hover,
.system-interface-v29 button.danger:hover{background:#922733;color:#fff}
.system-interface-v29 :where(.button,button) svg{stroke:currentColor}
.system-interface-v29 :where(button,.button):disabled{border-color:#d7e0e8!important;background:#e8eef3!important;color:#6f8191!important;box-shadow:none!important;cursor:not-allowed;opacity:1}

/* Cabeçalhos de cartões mantêm ações no lugar esperado, inclusive em modais. */
.system-interface-v29 .panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.system-interface-v29 .panel-title>div{min-width:0}
.system-interface-v29 .panel-title h2{margin-bottom:5px}
.system-interface-v29 .panel-title p{margin-bottom:0;color:var(--ui-muted)}
.system-interface-v29 .panel-title>a:not(.button){display:inline-flex;align-items:center;min-height:36px;padding:7px 10px;border-radius:8px;color:var(--ui-link);font-size:12px;font-weight:800}
.system-interface-v29 .panel-title>a:not(.button):hover{background:#eaf4ff;color:#064f9d}

/* Textos, links, estados e superfícies usam tons legíveis no tema claro. */
.system-interface-v29 a:not(.button):not(.ui-action):not(.icon-button):not(.nav-group-toggle){text-decoration-color:rgba(7,93,184,.35)}
.system-interface-v29 .client-data-list dd,
.system-interface-v29 .compact-record-list strong,
.system-interface-v29 .compact-record-list b{color:var(--ui-text)}
.system-interface-v29 .client-data-list a,
.system-interface-v29 .compact-record-list a,
.system-interface-v29 .attachment-link{color:var(--ui-link)}
.system-interface-v29 .client-data-list dt,
.system-interface-v29 .compact-record-list small,
.system-interface-v29 .compact-record-list em,
.system-interface-v29 .table-empty,
.system-interface-v29 .empty-state{color:var(--ui-muted)}
.system-interface-v29 .status-pill.is-active{background:#e3f5ec;color:#0b704a}
.system-interface-v29 .status-pill.is-inactive{background:#fae8ea;color:#963c46}
.system-interface-v29 .alert.sucesso{border:1px solid #b8e2ce;background:#e5f6ee;color:#0d6042}
.system-interface-v29 .alert.erro{border:1px solid #f0c5c1;background:#fff0ee;color:#912b25}
.system-interface-v29 .alert.aviso{border:1px solid #ecd29e;background:#fff7df;color:#754900}
.system-interface-v29 .support-hint{border-color:#acd0f1;background:#edf6ff;color:#294f71}
.system-interface-v29 .support-hint strong{color:#0759aa}
.system-interface-v29 .people-modal-header .page-kicker{color:#bcecff}
.system-interface-v29 .people-modal-header h2,
.system-interface-v29 .people-modal-header p{color:#fff}
.system-interface-v29 .modal-close{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.12);color:#fff}
.system-interface-v29 .modal-close:hover{background:rgba(255,255,255,.22);color:#fff}
.system-interface-v29 .password-toggle,
.system-interface-v29 .mini-action{border-color:#c3d9eb;background:#eaf4ff;color:var(--ui-link);box-shadow:none}
.system-interface-v29 .document-search-button{background:var(--ui-blue);color:#fff}
.system-interface-v29 .module-item-remove{border-color:#f3c5ca;background:#fdebed;color:var(--ui-danger)}

/* O modo escuro recebe os mesmos pares semânticos, sem texto claro sobre branco. */
[data-theme="escuro"] .system-interface-v29{--ui-page:#141a25;--ui-surface:#202938;--ui-surface-soft:#18212d;--ui-text:#e9f1f8;--ui-muted:#afbdca;--ui-line:#3b4b5f;--ui-line-strong:#50637a;--ui-navy:#eef5fb;--ui-link:#91c5ff}
[data-theme="escuro"] .system-interface-v29 .button.button-outline,
[data-theme="escuro"] .system-interface-v29 button.button-outline,
[data-theme="escuro"] .system-interface-v29 .button.button-ghost,
[data-theme="escuro"] .system-interface-v29 button.button-ghost{border-color:#536b82;background:#202938;color:#91c5ff}
[data-theme="escuro"] .system-interface-v29 .button.button-outline:hover,
[data-theme="escuro"] .system-interface-v29 button.button-outline:hover,
[data-theme="escuro"] .system-interface-v29 .button.button-ghost:hover,
[data-theme="escuro"] .system-interface-v29 button.button-ghost:hover{border-color:#6e91b4;background:#29384a;color:#c2ddff}
[data-theme="escuro"] .system-interface-v29 .panel-title>a:not(.button):hover{background:#29384a;color:#c2ddff}
[data-theme="escuro"] .system-interface-v29 .client-data-list dd,
[data-theme="escuro"] .system-interface-v29 .compact-record-list strong,
[data-theme="escuro"] .system-interface-v29 .compact-record-list b{color:var(--ui-text)}
[data-theme="escuro"] .system-interface-v29 .client-data-list div,
[data-theme="escuro"] .system-interface-v29 .compact-record-list>a{border-color:var(--ui-line)}
[data-theme="escuro"] .system-interface-v29 .status-pill.is-active{background:#173b31;color:#73d6ad}
[data-theme="escuro"] .system-interface-v29 .status-pill.is-inactive{background:#43282e;color:#f0a2aa}
[data-theme="escuro"] .system-interface-v29 .support-hint{border-color:#3d6386;background:#20364b;color:#c5d8e9}
[data-theme="escuro"] .system-interface-v29 :where(button,.button):disabled{border-color:#39475a;background:#2a3342;color:#8998a7}

@media(max-width:600px){
    .system-interface-v29 .panel-title{align-items:stretch;flex-direction:column}
    .system-interface-v29 .panel-title>.button,.system-interface-v29 .panel-title>button,.system-interface-v29 .panel-title>a{justify-content:center;width:100%}
}

/*
 * V30 — Orientação de tela e identidade documental.
 *
 * A camada mantém o mesmo Design System na oficina e no Painel SaaS. Os
 * cabeçalhos explicam a finalidade de cada tela e as ações coletivas só ficam
 * disponíveis quando existe uma seleção válida.
 */
.system-interface-v30 .page-header>div>p{
    max-width:860px;
    margin-top:6px;
    color:var(--ui-muted);
    font-size:13px;
    line-height:1.55;
}
.system-interface-v30 .page-header>div>.page-kicker{
    display:inline-flex;
    align-items:center;
    min-height:23px;
    padding:4px 9px;
    border:1px solid #b8dcfb;
    border-left:3px solid #78b900;
    border-radius:6px;
    background:#edf7ff;
    color:#075db8;
    letter-spacing:.12em;
}
.system-interface-v30 .client-list-heading>div{max-width:930px}
.system-interface-v30 .client-bulk-bar{gap:14px;border-style:solid;background:#f3f8fd}
.system-interface-v30 .client-bulk-status{display:flex;align-items:center;gap:9px;min-width:0;margin-right:auto;color:#365a78}
.system-interface-v30 .client-bulk-status .app-icon{flex:0 0 auto;width:19px;height:19px;color:#0873d9}
.system-interface-v30 .client-bulk-status span{margin:0;font-size:12px;line-height:1.35}
.system-interface-v30 .client-bulk-action{display:grid;grid-template-columns:auto 210px;align-items:center;gap:9px;margin:0;color:#536d84;font-size:11px}
.system-interface-v30 .client-bulk-action>span{margin:0;white-space:nowrap}
.system-interface-v30 .client-bulk-action select{width:210px}
.system-interface-v30 .client-table tbody tr{transition:background .16s,box-shadow .16s}
.system-interface-v30 .client-table tbody tr:nth-child(even){background:#fbfdff}
.system-interface-v30 .client-table tbody tr:hover{background:#f1f8ff}
.system-interface-v30 .client-table tbody tr.is-selected{background:#e7f4ff;box-shadow:inset 4px 0 #0873d9}
[data-theme="escuro"] .system-interface-v30 .page-header>div>.page-kicker{border-color:#345f81;border-left-color:#84c33b;background:#1f3448;color:#91c9ff}
[data-theme="escuro"] .system-interface-v30 .client-bulk-bar{background:#1d2b3a}
[data-theme="escuro"] .system-interface-v30 .client-bulk-status{color:#c0d2e2}
[data-theme="escuro"] .system-interface-v30 .client-table tbody tr:nth-child(even){background:#1d2634}
[data-theme="escuro"] .system-interface-v30 .client-table tbody tr:hover,[data-theme="escuro"] .system-interface-v30 .client-table tbody tr.is-selected{background:#20364c}
@media(max-width:800px){
    .system-interface-v30 .client-bulk-action{grid-template-columns:1fr;width:100%}
    .system-interface-v30 .client-bulk-action select{width:100%}
}

/* Pré-visualização de impressão em uma superfície que lembra uma folha A4. */
.print-body-v30{
    min-height:100vh;
    padding:28px;
    background:linear-gradient(145deg,#e6edf5,#f6f9fc);
    color:#132b42;
}
.print-toolbar-v30{
    max-width:210mm;
    min-height:68px;
    margin:0 auto 18px;
    padding:11px 13px 11px 18px;
    align-items:center;
    border:1px solid #d4e0eb;
    border-radius:14px;
    background:#fff;
    box-shadow:0 10px 28px rgba(9,38,64,.09);
}
.print-toolbar-v30>div{display:grid;margin-right:auto}
.print-toolbar-v30>div strong{color:#0b2c4b;font-size:13px}
.print-toolbar-v30>div span{color:#708296;font-size:11px}
.print-toolbar-v30 button{min-height:42px}
.print-document-v30{
    position:relative;
    isolation:isolate;
    display:flex;
    flex-direction:column;
    width:210mm;
    max-width:100%;
    min-height:297mm;
    padding:15mm 15mm 12mm;
    overflow:hidden;
    border-top:7px solid var(--document-accent,#0f6fe5);
    border-radius:4px;
    background:#fff;
    box-shadow:0 22px 60px rgba(7,34,59,.16);
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
}
.print-document-v30>*:not(.print-watermark){position:relative;z-index:1}
.print-watermark{
    position:absolute;
    z-index:0;
    top:43%;
    left:50%;
    width:62%;
    transform:translate(-50%,-50%) rotate(-18deg);
    color:#0f6fe5;
    opacity:.035;
    pointer-events:none;
    text-align:center;
}
.print-watermark img{display:block;width:100%;height:190px;object-fit:contain;filter:grayscale(1)}
.print-watermark span{font:800 66px/1 Manrope,Arial,sans-serif;letter-spacing:-.05em;text-transform:uppercase}
.print-identity{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:28px;
    padding-bottom:17px;
    border-bottom:1px solid #d9e4ed;
}
.print-company-brand{display:flex;align-items:center;gap:14px;min-width:0}
.print-company-brand .print-company-logo{flex:0 0 auto;width:150px;height:58px;object-fit:contain;object-position:left center}
.print-company-brand .print-company-logo.is-systenova{width:170px}
.print-company-brand>div{display:grid;gap:2px}
.print-company-brand strong{color:#0a2946;font-size:13px}
.print-company-brand span{color:#657b8f;font-size:9px;line-height:1.4}
.print-identity address{display:grid;max-width:330px;gap:3px;margin:0;color:#526a80;font-size:9px;font-style:normal;line-height:1.45;text-align:right}
.print-document-heading{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(240px,auto);
    gap:30px;
    align-items:end;
    margin:20px 0 22px;
    padding:19px 21px;
    border-left:5px solid var(--document-accent,#0f6fe5);
    border-radius:0 12px 12px 0;
    background:linear-gradient(100deg,#f1f7fd,#f9fbfd);
}
.print-document-type{display:block;margin-bottom:5px;color:var(--document-accent,#0f6fe5);font-size:9px;font-weight:800;letter-spacing:.13em}
.print-document-heading h1{margin:0;color:#092945;font-size:26px;line-height:1.1;letter-spacing:-.025em}
.print-document-heading p{max-width:560px;margin:6px 0 0;color:#667d91;font-size:10px;line-height:1.45}
.print-document-heading dl{display:grid;grid-template-columns:repeat(2,minmax(100px,1fr));gap:9px 16px;margin:0}
.print-document-heading dl div{display:grid;gap:2px;padding-left:9px;border-left:1px solid #cedce8}
.print-document-heading dt{color:#7a8da0;font-size:7px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.print-document-heading dd{margin:0;color:#163650;font-size:9px;font-weight:800}
.print-content-v30{flex:1}
.print-section{margin-top:22px;break-inside:auto}
.print-section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:9px}
.print-section-title>div{display:flex;align-items:center;gap:9px}
.print-section-title>div>span{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:var(--document-accent,#0f6fe5);color:#fff;font-size:9px;font-weight:800}
.print-section-title h2{margin:0;color:#102f49;font-size:13px}
.print-section-title p{margin:1px 0 0;color:#74889a;font-size:8px}
.print-section-title>strong{color:#526b80;font-size:9px}
.print-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;border:1px solid #dce6ee;border-radius:10px;background:rgba(255,255,255,.88)}
.print-data-grid>div{padding:11px 13px;border-bottom:1px solid #e5ecf2}
.print-data-grid>div:nth-child(odd){border-right:1px solid #e5ecf2}
.print-data-grid>div:nth-last-child(-n+2){border-bottom:0}
.print-data-grid .print-data-wide{grid-column:1/-1;border-right:0;border-bottom:0}
.print-data-grid dt{color:#758a9c;font-size:7px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.print-data-grid dd{margin:3px 0 0;color:#16344e;font-size:10px}
.print-document-v30 .print-info{gap:10px;margin-bottom:20px}
.print-document-v30 .print-info article{border-color:#dce6ee;background:rgba(255,255,255,.88)}
.print-document-v30 .print-info h2{margin:0 0 5px;color:var(--document-accent,#0f6fe5);font-size:9px;letter-spacing:.08em}
.print-document-v30 .print-info strong{color:#15344e;font-size:11px}
.print-document-v30 .print-info span{color:#647b8e;font-size:9px}
.print-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:16px}
.print-grid>div{display:grid;gap:3px;padding:13px;border:1px solid #dce6ee;border-radius:9px;background:rgba(255,255,255,.88)}
.print-grid small,.print-kpis small{color:#75899b;font-size:7px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.print-grid strong{color:#15344e;font-size:11px}
.print-grid span{color:#6e8295;font-size:8px}
.print-document-v30 .print-table{width:100%;min-width:0;border:1px solid #d8e3ec;border-radius:9px;border-collapse:separate;border-spacing:0;overflow:hidden}
.print-document-v30 .print-table th{padding:9px 10px;border:0;border-bottom:1px solid #ccdce8;background:#eaf2f8;color:#34536c;font-size:7px;letter-spacing:.075em}
.print-document-v30 .print-table td{padding:9px 10px;border-bottom:1px solid #e4ebf1;color:#28445c;font-size:9px}
.print-document-v30 .print-table tbody tr:nth-child(even){background:#f8fbfd}
.print-document-v30 .print-table tbody tr:last-child td{border-bottom:0}
.print-document-v30 .print-table .print-empty{padding:22px;color:#7b8e9f;text-align:center}
.print-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 20px}
.print-kpis.print-kpis-four{grid-template-columns:repeat(4,minmax(0,1fr))}
.print-kpis>span{display:grid;gap:4px;padding:13px;border:1px solid #dbe6ee;border-bottom:3px solid var(--document-accent,#0f6fe5);border-radius:9px;background:#fff}
.print-kpis>span strong{color:#0c3150;font-size:15px}
.print-document-v30 .print-bottom{grid-template-columns:minmax(0,1fr) 260px;gap:18px;margin-top:20px;padding-top:15px;border-top:1px solid #dce6ee}
.print-document-v30 .print-bottom h2{color:#173b57;font-size:9px}
.print-document-v30 .print-bottom p{color:#536c80;font-size:9px;line-height:1.5}
.print-document-v30 .print-totals:not(.print-kpis){display:grid;gap:0}
.print-document-v30 .print-totals:not(.print-kpis)>span{padding:7px 9px;font-size:9px}
.print-document-v30 .print-totals .print-grand{border:0;background:var(--document-accent,#0f6fe5);font-size:12px}
.print-document-v30 .print-signatures{gap:55px;margin-top:62px}
.print-document-v30 .print-signatures div{border-color:#6f8191;color:#647789;font-size:8px}
.print-note{margin-top:18px;padding:12px 14px;border:1px solid #dbe6ee;border-left:4px solid var(--document-accent,#0f6fe5);border-radius:8px;background:#f7fafc}
.print-note strong{color:#173750;font-size:9px}
.print-note p{margin:3px 0 0;color:#5f7588;font-size:9px;line-height:1.5}
.print-footer-v30{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-top:28px;padding-top:13px;border-top:1px solid #dbe4ec;color:#718496;font-size:8px}
.print-footer-v30>div{display:grid;gap:2px;max-width:70%}
.print-footer-v30 strong{color:#27465e;font-size:9px}

/* Cabeçalho usado quando um relatório aberto dentro do sistema é impresso. */
.report-print-identity{display:none}

@media(max-width:820px){
    .print-body-v30{padding:0}
    .print-toolbar-v30{position:sticky;z-index:4;top:0;margin:0;border-radius:0;flex-wrap:wrap}
    .print-toolbar-v30>div{width:100%}
    .print-document-v30{width:100%;min-height:0;padding:24px 18px;border-radius:0}
    .print-identity,.print-document-heading{grid-template-columns:1fr;align-items:flex-start}
    .print-identity{flex-direction:column}
    .print-identity address{text-align:left}
    .print-document-heading{gap:14px}
    .print-data-grid,.print-grid,.print-kpis,.print-kpis.print-kpis-four{grid-template-columns:1fr}
    .print-data-grid>div,.print-data-grid>div:nth-child(odd){border-right:0;border-bottom:1px solid #e5ecf2}
    .print-data-grid>div:last-child{border-bottom:0}
    .print-data-grid .print-data-wide{grid-column:auto}
    .print-document-v30 .print-bottom{grid-template-columns:1fr}
}

@media print{
    @page{size:A4;margin:8mm}
    html,body{background:#fff!important}
    .print-body-v30{padding:0!important}
    .print-toolbar-v30{display:none!important}
    .print-document-v30{width:auto;max-width:none;min-height:0;margin:0;padding:5mm 6mm 4mm;border-radius:0;box-shadow:none}
    .print-watermark{position:fixed;top:48%;width:56%}
    .print-document-v30 .print-table thead{display:table-header-group}
    .print-document-v30 .print-table tr,.print-section-title,.print-kpis>span,.print-grid>div{break-inside:avoid}
    .print-footer-v30{break-inside:avoid}

    .system-interface-v30 .sidebar,.system-interface-v30 .topbar,.system-interface-v30 .support-mode-bar,.system-interface-v30 .interface-breadcrumb,.system-interface-v30 .page-header,.system-interface-v30 .report-menu,.system-interface-v30 .report-filters,.system-interface-v30 .sidebar-backdrop-v26{display:none!important}
    .system-interface-v30 .main{margin:0!important}
    .system-interface-v30 .content{max-width:none!important;padding:0!important}
    .system-interface-v30 .report-layout{display:block!important}
    .system-interface-v30 .report-layout,.system-interface-v30 .report-print-identity{-webkit-print-color-adjust:exact;print-color-adjust:exact}
    .system-interface-v30 .report-layout>section{display:block!important}
    .system-interface-v30 .report-print-identity{position:relative;isolation:isolate;display:block;margin-bottom:7mm;border-top:5px solid #0f6fe5;color:#142f48}
    .system-interface-v30 .report-print-identity>*:not(.report-print-watermark){position:relative;z-index:1}
    .system-interface-v30 .report-print-watermark{position:fixed;z-index:0;top:44%;left:24%;width:52%;transform:rotate(-18deg);opacity:.035;text-align:center}
    .system-interface-v30 .report-print-watermark img{width:100%;height:45mm;object-fit:contain;filter:grayscale(1)}
    .system-interface-v30 .report-print-watermark span{color:#0f6fe5;font:800 44pt Manrope,Arial,sans-serif;text-transform:uppercase}
    .system-interface-v30 .report-print-identity>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10mm;padding:5mm 0;border-bottom:1px solid #d7e2eb}
    .system-interface-v30 .report-print-identity img{width:46mm;height:16mm;object-fit:contain;object-position:left center}
    .system-interface-v30 .report-print-identity address{display:grid;max-width:90mm;color:#5f7487;font-size:8pt;font-style:normal;text-align:right}
    .system-interface-v30 .report-print-identity address strong{color:#173650;font-size:10pt}
    .system-interface-v30 .report-print-identity>div{display:grid;grid-template-columns:1fr auto;gap:2mm 10mm;margin-top:5mm;padding:5mm;border-left:4px solid #0f6fe5;background:#f1f7fb}
    .system-interface-v30 .report-print-identity>div>span{grid-column:1/-1;color:#0f6fe5;font-size:7pt;font-weight:800;letter-spacing:.12em}
    .system-interface-v30 .report-print-identity h1{margin:0;color:#102f49;font-size:20pt}
    .system-interface-v30 .report-print-identity p{margin:1mm 0 0;color:#62788c;font-size:8pt}
    .system-interface-v30 .report-print-identity dl{display:flex;gap:7mm;margin:0}
    .system-interface-v30 .report-print-identity dl div{display:grid}
    .system-interface-v30 .report-print-identity dt{color:#718598;font-size:6pt;text-transform:uppercase}
    .system-interface-v30 .report-print-identity dd{margin:0;color:#1f405a;font-size:8pt;font-weight:700}
    .system-interface-v30 .report-summary{grid-template-columns:repeat(3,1fr);break-inside:avoid}
    .system-interface-v30 .report-summary article{box-shadow:none}
    .system-interface-v30 .report-layout .data-panel{border:0;box-shadow:none}
    .system-interface-v30 .report-layout .table-wrap{padding:0}
    .system-interface-v30 .report-table{min-width:0}
    .system-interface-v30 .report-table thead{display:table-header-group}
    .system-interface-v30 .report-table tr{break-inside:avoid}
}

/* V37 — sobrescritas finais (devem permanecer no fim do CSS). */
.system-interface-v37 .app-brand.is-custom-brand{margin:9px 15px;padding:6px 10px;height:54px;border:1px solid rgba(255,255,255,.35);border-radius:10px;background:#fff}
.system-interface-v37 .app-brand.is-custom-brand img{width:100%;height:42px;object-fit:contain;filter:none}
.system-interface-v37 .client-data-panel{padding:0;border-color:var(--ui-line-strong);border-radius:14px;box-shadow:0 8px 24px rgb(9 45 75/.07)}
.system-interface-v37 .client-data-panel .table-wrap{padding:8px 12px 10px}
.system-interface-v37 .client-table{width:100%;min-width:1040px;table-layout:fixed}
.system-interface-v37 .client-table th:nth-child(1){width:21%}.system-interface-v37 .client-table th:nth-child(2){width:17%}.system-interface-v37 .client-table th:nth-child(3){width:8%}.system-interface-v37 .client-table th:nth-child(4){width:9%}.system-interface-v37 .client-table th:nth-child(5){width:9%}.system-interface-v37 .client-table th:nth-child(6){width:36%}
.system-interface-v37 .client-table th{height:40px;padding:7px 10px;background:var(--ui-surface-soft);color:var(--ui-muted);font-size:10px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}
.system-interface-v37 .client-table td{height:56px;padding:8px 10px;vertical-align:middle}.system-interface-v37 .client-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--ui-surface-soft) 48%,var(--ui-surface))}.system-interface-v37 .client-table tbody tr:hover{background:color-mix(in srgb,var(--ui-link) 6%,var(--ui-surface))}
.system-interface-v37 .client-sort-link{display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none}.system-interface-v37 .client-sort-link span{display:grid;width:19px;height:19px;place-items:center;border-radius:5px;color:var(--ui-muted);font-size:13px;letter-spacing:0}.system-interface-v37 .client-sort-link:hover,.system-interface-v37 .client-sort-link.is-active{color:var(--ui-link)}.system-interface-v37 .client-sort-link.is-active span{background:color-mix(in srgb,var(--ui-link) 12%,var(--ui-surface));color:var(--ui-link)}
.system-interface-v37 .person-cell>span:last-child{min-width:0}.system-interface-v37 .person-cell strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.system-interface-v37 .client-row-actions{justify-content:flex-start;flex-wrap:nowrap;gap:5px}.system-interface-v37 .client-row-actions .ui-action{flex:0 0 30px;width:30px;height:30px}
.system-interface-v37 .agenda-sidebar,.system-interface-v37 .agenda-calendar,.system-interface-v37 .agenda-toolbar,.system-interface-v37 .month-weekdays{background:var(--ui-surface)}
.system-interface-v37 .agenda-mini-calendar header button,.system-interface-v37 .agenda-mini-grid button,.system-interface-v37 .agenda-navigation .icon-button,.system-interface-v37 .agenda-view-switch button,.system-interface-v37 .month-day,.system-interface-v37 .week-slot,.system-interface-v37 .day-hour>button{border-color:var(--ui-line);background:var(--ui-surface);color:var(--ui-text);box-shadow:none;transform:none}
.system-interface-v37 .agenda-mini-calendar header button,.system-interface-v37 .agenda-mini-grid button{min-height:32px;padding:0}.system-interface-v37 .agenda-mini-calendar header button:hover,.system-interface-v37 .agenda-mini-grid button:hover,.system-interface-v37 .agenda-navigation .icon-button:hover,.system-interface-v37 .agenda-view-switch button:hover{background:var(--ui-surface-soft);color:var(--ui-link)}
.system-interface-v37 .agenda-view-switch button{border:0;background:transparent;color:var(--ui-muted)}.system-interface-v37 .agenda-view-switch button.active{background:var(--ui-surface);color:var(--ui-link);box-shadow:0 2px 8px rgb(8 66 114/.13)}
.system-interface-v37 .month-day{min-height:126px;padding:8px;border-width:0 1px 1px 0;border-style:solid;border-radius:0;text-align:left;cursor:pointer}.system-interface-v37 .month-day:hover{background:color-mix(in srgb,var(--ui-link) 5%,var(--ui-surface))}.system-interface-v37 .month-day.outside{background:var(--ui-surface-soft);color:var(--ui-muted)}.system-interface-v37 .month-day.today{background:color-mix(in srgb,var(--ui-link) 4%,var(--ui-surface))}.system-interface-v37 .month-day.today .month-day-number{background:var(--ui-link);color:#fff}
[data-theme="escuro"] .system-interface-v37 .sidebar{background:linear-gradient(180deg,#061a2f 0%,#0a385b 100%);color:#e9f4fd;box-shadow:5px 0 28px rgb(0 0 0/.25)}
[data-theme="escuro"] .system-interface-v37 .sidebar nav>a,[data-theme="escuro"] .system-interface-v37 .nav-group-toggle,[data-theme="escuro"] .system-interface-v37 .sidebar-footer a{color:#d9e8f5}[data-theme="escuro"] .system-interface-v37 .nav-submenu a{border-color:#356887;color:#c1d5e5}
[data-theme="escuro"] .system-interface-v37 .sidebar nav>a:hover,[data-theme="escuro"] .system-interface-v37 .sidebar nav>a.active,[data-theme="escuro"] .system-interface-v37 .nav-group-toggle:hover,[data-theme="escuro"] .system-interface-v37 .nav-group.open>.nav-group-toggle{background:#174968;color:#fff}[data-theme="escuro"] .system-interface-v37 .nav-submenu a:hover,[data-theme="escuro"] .system-interface-v37 .nav-submenu a.active{background:#103f60;color:#75d8ff}
[data-theme="escuro"] .system-interface-v37 .topbar{border-bottom-color:#334459;background:#171e2b}[data-theme="escuro"] .system-interface-v37 .quick-search input{border-color:#42556b;background:#1e2938;color:#f2f7fb}
[data-theme="escuro"] .system-interface-v37 .agenda-sidebar,[data-theme="escuro"] .system-interface-v37 .agenda-calendar,[data-theme="escuro"] .system-interface-v37 .agenda-toolbar,[data-theme="escuro"] .system-interface-v37 .month-weekdays{border-color:#405269;background:#202a39}[data-theme="escuro"] .system-interface-v37 .agenda-canvas{background:#1b2431}
[data-theme="escuro"] .system-interface-v37 .agenda-mini-calendar header button,[data-theme="escuro"] .system-interface-v37 .agenda-mini-grid button,[data-theme="escuro"] .system-interface-v37 .agenda-navigation .icon-button,[data-theme="escuro"] .system-interface-v37 .month-day,[data-theme="escuro"] .system-interface-v37 .week-slot,[data-theme="escuro"] .system-interface-v37 .day-hour>button{border-color:#405269;background:#202a39;color:#eef5fb}
[data-theme="escuro"] .system-interface-v37 .month-day:hover{background:#29384b}[data-theme="escuro"] .system-interface-v37 .month-day.outside{background:#18212d;color:#8393a5}[data-theme="escuro"] .system-interface-v37 .month-day.today{background:#243449}
[data-theme="escuro"] .system-interface-v37 .agenda-view-switch{border-color:#405269;background:#17202c}[data-theme="escuro"] .system-interface-v37 .agenda-view-switch button{background:transparent;color:#aebdcc}[data-theme="escuro"] .system-interface-v37 .agenda-view-switch button:hover{background:#263548;color:#fff}[data-theme="escuro"] .system-interface-v37 .agenda-view-switch button.active{background:#33465c;color:#8fc8ff;box-shadow:none}
[data-theme="escuro"] .system-interface-v37 .client-data-panel{border-color:#41536a;background:#202938}[data-theme="escuro"] .system-interface-v37 .client-table th{background:#18212d;color:#c2d0dc}[data-theme="escuro"] .system-interface-v37 .client-table tbody tr:nth-child(even){background:#1c2634}[data-theme="escuro"] .system-interface-v37 .client-table tbody tr:hover{background:#26384b}
@media(max-width:1180px){.system-interface-v37 .client-table{min-width:980px}.system-interface-v37 .client-table th:nth-child(6){width:38%}}
.system-interface-v37 .mini-days button,.system-interface-v37 .week-head>button{background:transparent;color:var(--ui-text);box-shadow:none;transform:none}
.system-interface-v37 .mini-days button:hover,.system-interface-v37 .week-head>button:hover{background:var(--ui-surface-soft);color:var(--ui-link)}
.system-interface-v37 .mini-days button.selected{background:var(--ui-link);color:#fff}
[data-theme="escuro"] .system-interface-v37 .mini-days button,[data-theme="escuro"] .system-interface-v37 .week-head>button{border-color:#405269;background:transparent;color:#eef5fb}
[data-theme="escuro"] .system-interface-v37 .mini-days button:hover,[data-theme="escuro"] .system-interface-v37 .week-head>button:hover{background:#29384b;color:#fff}
[data-theme="escuro"] .system-interface-v37 .mini-days button.selected{background:#2d91ff;color:#fff}

/* ========================================================================== */
/* V38 — AÇÕES COMPACTAS E AGENDA OPERACIONAL DO DIA                          */
/* ========================================================================== */
.system-interface-v38 .client-table th:nth-child(1){width:20%}
.system-interface-v38 .client-table th:nth-child(2){width:16%}
.system-interface-v38 .client-table th:nth-child(3){width:8%}
.system-interface-v38 .client-table th:nth-child(4){width:9%}
.system-interface-v38 .client-table th:nth-child(5){width:8%}
.system-interface-v38 .client-table th:nth-child(6){width:39%}
.system-interface-v38 .client-table th:nth-child(3),.system-interface-v38 .client-table td:nth-child(3){text-align:center}
.system-interface-v38 .client-table td:nth-child(3) .badge{display:inline-flex;min-width:56px;justify-content:center;margin:auto;padding:4px 8px}
.system-interface-v38 .client-actions-cell{padding-right:6px;padding-left:8px}
.system-interface-v38 .client-row-actions{width:100%;gap:3px}
.system-interface-v38 .client-row-actions form{flex:0 0 27px;margin:0}
.system-interface-v38 .client-row-actions .ui-action{display:grid;flex:0 0 27px;width:27px;height:27px;min-height:27px;padding:0;place-items:center;border-radius:6px}
.system-interface-v38 .client-row-actions .ui-action svg{width:13px;height:13px}

.system-interface-v38 .agenda-day-dialog{width:min(1080px,calc(100dvw - 32px));height:min(760px,calc(100dvh - 32px))}
.system-interface-v38 .agenda-day-body{align-content:start;gap:14px;background:var(--ui-page)}
.system-interface-v38 .agenda-day-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.system-interface-v38 .agenda-day-summary article{display:grid;gap:3px;padding:14px 15px;border:1px solid var(--ui-line);border-left:4px solid var(--ui-link);border-radius:11px;background:var(--ui-surface)}
.system-interface-v38 .agenda-day-summary span{color:var(--ui-muted);font-size:10px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}
.system-interface-v38 .agenda-day-summary strong{color:var(--ui-navy);font:800 23px/1.1 var(--ui-font-heading)}
.system-interface-v38 .agenda-day-summary small{color:var(--ui-muted);font-size:10px}
.system-interface-v38 .agenda-day-list{overflow:hidden;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface)}
.system-interface-v38 .agenda-day-list-head,.system-interface-v38 .agenda-day-row{display:grid;grid-template-columns:100px minmax(190px,1.2fr) minmax(210px,1.35fr) minmax(140px,.8fr) 150px;gap:12px;align-items:center}
.system-interface-v38 .agenda-day-list-head{min-height:40px;padding:8px 14px;border-bottom:1px solid var(--ui-line);background:var(--ui-surface-soft);color:var(--ui-muted);font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.system-interface-v38 .agenda-day-row{width:100%;min-height:70px;padding:10px 14px;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;background:var(--ui-surface);color:var(--ui-text);box-shadow:none;text-align:left;cursor:pointer;transform:none}
.system-interface-v38 .agenda-day-row:last-child{border-bottom:0}
.system-interface-v38 .agenda-day-row:hover{background:color-mix(in srgb,var(--ui-link) 5%,var(--ui-surface));transform:none}
.system-interface-v38 .agenda-day-row>span{display:grid;min-width:0;gap:3px}
.system-interface-v38 .agenda-day-row strong{overflow:hidden;color:var(--ui-text);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.system-interface-v38 .agenda-day-row small{overflow:hidden;color:var(--ui-muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.system-interface-v38 .agenda-day-time strong{color:var(--ui-link);font-size:16px}
.system-interface-v38 .agenda-day-status{display:inline-flex;width:max-content;max-width:100%;padding:4px 8px;border-radius:99px;background:#e6f2ff;color:#0969c7;font-size:9px;font-style:normal;font-weight:850;white-space:nowrap}
.system-interface-v38 .agenda-day-status.is-solicitado{background:#def6f8;color:#087b8a}
.system-interface-v38 .agenda-day-status.is-confirmado{background:#e1f5eb;color:#137b54}
.system-interface-v38 .agenda-day-status.is-em-atendimento{background:#eee8ff;color:#6742c2}
.system-interface-v38 .agenda-day-status.is-concluido{background:#e4f6e9;color:#24733d}
.system-interface-v38 .agenda-day-empty{min-height:270px;place-content:center}
.system-interface-v38 .agenda-day-footer>a{display:inline-flex;align-items:center;gap:7px;text-decoration:none}
.system-interface-v38 .agenda-day-footer .app-icon{width:16px;height:16px}

[data-theme="escuro"] .system-interface-v38 .agenda-day-summary article,[data-theme="escuro"] .system-interface-v38 .agenda-day-list,[data-theme="escuro"] .system-interface-v38 .agenda-day-row{border-color:#405269;background:#202a39}
[data-theme="escuro"] .system-interface-v38 .agenda-day-summary strong,[data-theme="escuro"] .system-interface-v38 .agenda-day-row strong{color:#eef5fb}
[data-theme="escuro"] .system-interface-v38 .agenda-day-list-head{border-color:#405269;background:#18212d;color:#bfcedb}
[data-theme="escuro"] .system-interface-v38 .agenda-day-row:hover{background:#29384b}
[data-theme="escuro"] .system-interface-v38 .agenda-day-status{background:#243f5b;color:#91c9ff}
[data-theme="escuro"] .system-interface-v38 .agenda-day-status.is-solicitado{background:#173f45;color:#77d7df}
[data-theme="escuro"] .system-interface-v38 .agenda-day-status.is-confirmado,[data-theme="escuro"] .system-interface-v38 .agenda-day-status.is-concluido{background:#193d31;color:#7dd9b1}
[data-theme="escuro"] .system-interface-v38 .agenda-day-status.is-em-atendimento{background:#352e55;color:#c6b7ff}

.agenda-day-print-table th:nth-child(1){width:10%}.agenda-day-print-table th:nth-child(2){width:16%}.agenda-day-print-table th:nth-child(3){width:14%}.agenda-day-print-table th:nth-child(4){width:17%}.agenda-day-print-table th:nth-child(5){width:13%}.agenda-day-print-table th:nth-child(6){width:12%}.agenda-day-print-table th:nth-child(7){width:18%}
.agenda-day-print-table td{vertical-align:top}.agenda-day-print-table td small{color:#708497;font-size:7px}

@media(max-width:900px){
    .system-interface-v38 .agenda-day-summary{grid-template-columns:repeat(2,1fr)}
    .system-interface-v38 .agenda-day-list{overflow:auto}
    .system-interface-v38 .agenda-day-list-head,.system-interface-v38 .agenda-day-row{min-width:850px}
}
@media(max-width:600px){
    .system-interface-v38 .agenda-day-dialog{width:calc(100dvw - 18px);height:calc(100dvh - 18px);max-width:none;max-height:none}
    .system-interface-v38 .agenda-day-summary{grid-template-columns:1fr 1fr}
    .system-interface-v38 .agenda-day-footer{grid-template-columns:1fr 1fr}
    .system-interface-v38 .agenda-day-footer>span{display:none}
    .system-interface-v38 .agenda-day-footer>a{grid-column:1/-1;justify-content:center}
}
/* V45 — CREDENCIAL ÚNICA SMTP/IMAP */
.system-interface-v45 .email-unified-credential-note{margin-top:15px;padding:12px 14px;border:1px solid #b8d8ae;border-left:4px solid var(--ui-green);border-radius:9px;background:#f1faed;color:#315c28;font-size:10px;line-height:1.55}
.system-interface-v45 .email-unified-credential-note strong{color:#214a18}
.system-interface-v45 .email-provider-help{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0 0!important;min-height:0!important;font-size:10px!important}
.system-interface-v45 .email-provider-help a{font-weight:800;color:var(--ui-link);text-decoration:none}
.system-interface-v45 .email-provider-help a:hover{text-decoration:underline}
.system-interface-v45 .email-provider-help span{color:var(--ui-muted)}
.system-interface-v45 .email-test-saved-note{margin-top:18px;padding:11px 14px;border:1px solid #bdd6ec;border-radius:9px;background:#edf6ff;color:#365e80;font-size:10px;line-height:1.5}
[data-theme="escuro"] .system-interface-v45 .email-unified-credential-note{border-color:#3e7652;background:#193b2a;color:#a9e4bd}
[data-theme="escuro"] .system-interface-v45 .email-unified-credential-note strong{color:#c7f4d5}
[data-theme="escuro"] .system-interface-v45 .email-test-saved-note{border-color:#365a78;background:#19344b;color:#a9d3f4}

/* ========================================================================== */
/* V46 — JANELAS PADRONIZADAS, ROLAGEM VISÍVEL E PAINEL ALINHADO              */
/* ========================================================================== */
.system-interface-v46 .system-screen-card{
    border:1px solid #85b5db;border-radius:16px;background:var(--ui-page);
    box-shadow:0 24px 65px rgb(1 25 49/.34)
}
.system-interface-v46 .system-screen-header{
    position:relative;isolation:isolate;min-height:108px;overflow:hidden;padding:18px 22px;
    background:linear-gradient(112deg,#06284a 0%,#0a4f91 46%,#1179ea 100%)
}
.system-interface-v46 .system-screen-header::before{
    position:absolute;z-index:2;top:0;right:0;left:0;height:2px;
    background:linear-gradient(90deg,#9ce632 0%,#65d1ba 48%,#55bfff 100%);content:""
}
.system-interface-v46 .system-screen-header::after{
    position:absolute;z-index:-1;top:-96px;right:-30px;width:255px;height:255px;
    border:38px solid rgb(113 196 255/.12);border-radius:50%;content:""
}
.system-interface-v46 .system-screen-heading{display:flex;min-width:0;align-items:center;gap:14px}
.system-interface-v46 .system-screen-heading>div{min-width:0}
.system-interface-v46 .system-screen-heading-icon{
    display:grid;flex:0 0 42px;width:42px;height:42px;place-items:center;
    border:1px solid rgb(179 224 255/.38);border-radius:12px;background:rgb(255 255 255/.1);color:#e9f6ff
}
.system-interface-v46 .system-screen-heading-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.system-interface-v46 .system-screen-header h2{margin-top:5px;font-size:21px}
.system-interface-v46 .system-screen-header p{max-width:820px;color:#dcebfa}
.system-interface-v46 .system-screen-close{position:relative;z-index:3;flex:0 0 auto}
.system-interface-v46 .system-screen-body{
    scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:#0f70dc #dce8f2
}
.system-interface-v46 .system-screen-body::-webkit-scrollbar{width:14px;height:14px}
.system-interface-v46 .system-screen-body::-webkit-scrollbar-track{border-left:1px solid #c7d8e7;background:#dce8f2}
.system-interface-v46 .system-screen-body::-webkit-scrollbar-thumb{min-height:52px;border:3px solid #dce8f2;border-radius:99px;background:#0f70dc}
.system-interface-v46 .system-screen-body::-webkit-scrollbar-thumb:hover{background:#0759b8}

.system-interface-v46 .agenda-day-list{
    position:relative;overflow-x:hidden!important;overflow-y:scroll!important;scrollbar-gutter:stable;
    scrollbar-width:auto;scrollbar-color:#0f70dc #dce8f2;overscroll-behavior:contain
}
.system-interface-v46 .agenda-day-list:focus-visible{outline:3px solid rgb(15 112 220/.28);outline-offset:2px}
.system-interface-v46 .agenda-day-list::-webkit-scrollbar{width:16px;height:16px}
.system-interface-v46 .agenda-day-list::-webkit-scrollbar-track{border-left:1px solid #c2d4e4;background:#dce8f2}
.system-interface-v46 .agenda-day-list::-webkit-scrollbar-thumb{
    min-height:56px;border:3px solid #dce8f2;border-radius:99px;background:linear-gradient(180deg,#1682ee,#0863c8)
}
.system-interface-v46 .agenda-day-list::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#0871da,#064f9e)}

.system-interface-v46 .dashboard-heading-actions{align-items:flex-end}
.system-interface-v46 .period-filter{grid-template-rows:16px 46px;gap:5px}
.system-interface-v46 .period-filter label{display:flex;align-items:center;margin:0;line-height:1}
.system-interface-v46 .period-filter select,.system-interface-v46 .dashboard-primary-action{height:46px;min-height:46px}

[data-theme="escuro"] .system-interface-v46 .system-screen-card{border-color:#42647f;background:#161d29}
[data-theme="escuro"] .system-interface-v46 .system-screen-body{scrollbar-color:#4ca8ff #253548}
[data-theme="escuro"] .system-interface-v46 .system-screen-body::-webkit-scrollbar-track,
[data-theme="escuro"] .system-interface-v46 .agenda-day-list::-webkit-scrollbar-track{border-left-color:#405269;background:#253548}
[data-theme="escuro"] .system-interface-v46 .system-screen-body::-webkit-scrollbar-thumb,
[data-theme="escuro"] .system-interface-v46 .agenda-day-list::-webkit-scrollbar-thumb{border-color:#253548;background:#4ca8ff}
[data-theme="escuro"] .system-interface-v46 .agenda-day-list{scrollbar-color:#4ca8ff #253548}

@media(max-width:760px){
    .system-interface-v46 .system-screen-header{min-height:100px;padding:15px 14px}
    .system-interface-v46 .system-screen-heading{gap:10px}
    .system-interface-v46 .system-screen-heading-icon{flex-basis:38px;width:38px;height:38px;border-radius:10px}
}

/* ========================================================================== */
/* V48 — STATUS COM FUNÇÃO E APROVAÇÃO AUTOMÁTICA DO ORÇAMENTO                */
/* ========================================================================== */
.system-interface-v48 .status-config-row{
    grid-template-columns:10px minmax(140px,1fr) 62px 66px 62px minmax(138px,.8fr)
}
.system-interface-v48 .status-behavior-field{min-width:0}
.system-interface-v48 .status-automation-toggle{
    display:flex!important;min-height:36px;align-items:center;gap:7px;margin:0!important;padding:7px 9px;
    border:1px solid color-mix(in srgb,var(--ui-success) 35%,var(--ui-line));border-radius:8px;
    background:color-mix(in srgb,var(--ui-success) 8%,var(--ui-surface));color:var(--ui-text)
}
.system-interface-v48 .status-automation-toggle input{flex:0 0 auto;width:17px;height:17px;margin:0;padding:0;accent-color:var(--ui-success)}
.system-interface-v48 .status-automation-toggle span{overflow:hidden;font-size:9px;font-weight:850;line-height:1.25;text-overflow:ellipsis}
.system-interface-v48 .status-automation-toggle.is-disabled{border-color:var(--ui-line);background:var(--ui-surface-soft);color:var(--ui-muted)}
.system-interface-v48 .status-behavior-label{display:flex;min-height:36px;align-items:center;padding:7px 9px;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-surface-soft);color:var(--ui-muted);font-size:9px;font-weight:800}
[data-theme="escuro"] .system-interface-v48 .status-automation-toggle{background:#19392d;color:#d7f4e5}
[data-theme="escuro"] .system-interface-v48 .status-automation-toggle.is-disabled,
[data-theme="escuro"] .system-interface-v48 .status-behavior-label{background:#202a38;color:#9fb0c0}
@media(max-width:700px){
    .system-interface-v48 .status-config-row{grid-template-columns:8px minmax(0,1fr) 54px}
    .system-interface-v48 .status-behavior-field{grid-column:2/-1}
}

/* V49 — identidade centralizada da plataforma */
.identity-alert{display:flex;gap:14px;align-items:flex-start;margin:18px 0;padding:14px 16px;border:1px solid rgba(17,103,216,.18);background:rgba(17,103,216,.06);border-radius:14px}.identity-alert strong{display:block}.identity-alert span{color:var(--muted,#64748b)}
.identity-upload-grid{display:grid;grid-template-columns:minmax(220px,300px) 1fr;gap:24px;align-items:center}.identity-preview{border:1px dashed #cbd5e1;border-radius:16px;padding:12px;background:#f8fafc}.identity-preview>span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#64748b;margin-bottom:10px}.identity-preview>div{min-height:130px;border-radius:12px;background:#071b31;display:flex;align-items:center;justify-content:center;padding:18px;overflow:hidden}.identity-preview img{max-width:100%;max-height:100px;object-fit:contain}.identity-preview-favicon>div{min-height:130px;background:linear-gradient(135deg,#e2e8f0,#fff)}.identity-preview-favicon img{width:80px;height:80px;border-radius:18px}.identity-upload-copy h2{margin:0 0 7px}.identity-upload-copy p{color:var(--muted,#64748b);line-height:1.55}.upload-dropzone{display:flex;flex-direction:column;gap:5px;margin-top:16px;padding:18px;border:1px dashed #94a3b8;border-radius:14px;background:#fff;cursor:pointer}.upload-dropzone:hover{border-color:#1167d8;background:#f8fbff}.upload-dropzone strong{color:#0f172a}.upload-dropzone small{color:#64748b}.upload-dropzone input{margin-top:8px}.scope-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.scope-card{display:flex;flex-direction:column;gap:7px;padding:16px;border:1px solid #dbe4ee;border-radius:14px;background:#fff}.scope-card b{font-size:20px;color:#1167d8}.scope-card.is-client b{color:#64748b}.scope-card span{color:#64748b;font-size:13px;line-height:1.45}.identity-side-preview{display:flex;align-items:center;gap:16px;padding:16px;border-radius:16px;background:#071b31;margin:16px 0 20px;overflow:hidden}.identity-side-preview>img:first-child{max-width:100%;height:70px;object-fit:contain}.identity-side-favicon{width:52px;height:52px;border-radius:12px;object-fit:contain;background:#fff;padding:3px}.system-settings-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.5fr);gap:20px}.system-settings-layout .site-editor{min-width:0}@media (max-width:900px){.system-settings-layout{grid-template-columns:1fr}.identity-upload-grid{grid-template-columns:1fr}.scope-grid{grid-template-columns:1fr}.identity-preview{max-width:420px}}

/* V50 — comissões automáticas e relatório financeiro */
.commission-info{display:flex;gap:8px;align-items:flex-start;margin-bottom:12px;padding:13px 15px;border:1px solid #cfe2f5;background:#f5faff;color:#536b80;border-left:4px solid #0f6fe5}.commission-info strong{color:#0f6fe5}.commission-filters{display:grid;grid-template-columns:1fr 1.5fr 1fr auto;align-items:end;gap:10px;margin-bottom:12px;padding:14px}.commission-filters label{display:grid;gap:4px;color:#64788b;font-size:9px}.commission-filters input,.commission-filters select,.commission-filters button{height:38px}.commission-period{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;padding:10px 13px;border-radius:9px;background:#071b33;color:#fff}.commission-period span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;opacity:.75}.commission-period strong{font-size:13px}.commission-summary{grid-template-columns:repeat(4,1fr)}.commission-table-panel{margin-top:0}.commission-status{display:inline-flex;padding:4px 8px;border-radius:99px;font-size:8px;font-weight:800;letter-spacing:.04em}.commission-status-pendente{background:#fff4ce;color:#9b6800}.commission-status-paga{background:#def8e8;color:#167443}.commission-status-cancelada{background:#fde3e5;color:#b0303c}.commission-note{margin-top:9px;color:#8798a8;font-size:9px}.commission-print-heading{display:grid;grid-template-columns:repeat(3,1fr);gap:3mm;margin-bottom:5mm;padding:4mm;border:1px solid #d7e2eb;background:#f4f8fb}.commission-print-heading div{display:grid;gap:1mm}.commission-print-heading span,.commission-print-summary span{font-size:6.5pt;text-transform:uppercase;letter-spacing:.08em;color:#718598}.commission-print-heading strong{font-size:9pt;color:#183a56}.commission-print-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:3mm;margin-bottom:5mm}.commission-print-summary div{display:grid;gap:1mm;padding:3mm;border:1px solid #dce6ef;border-radius:2mm}.commission-print-summary strong{font-size:12pt;color:#0f6fe5}.commission-print-table{width:100%;border-collapse:collapse;font-size:7pt}.commission-print-table th{padding:2mm;text-align:left;background:#071b33;color:#fff}.commission-print-table td{padding:1.8mm;border-bottom:1px solid #dbe4ec}.commission-print-table tbody tr:nth-child(even){background:#f8fafc}
[data-theme="escuro"] .commission-info{border-color:#365678;background:#1d2d40;color:#c8d6e3}.commission-period{background:#071b33}.commission-status-pendente{background:#5b4714;color:#ffe69a}.commission-status-paga{background:#164d32;color:#a8f0c6}.commission-status-cancelada{background:#56272c;color:#ffb7be}
@media(max-width:900px){.commission-filters{grid-template-columns:1fr 1fr}.commission-summary{grid-template-columns:1fr 1fr}.commission-print-heading{grid-template-columns:1fr}}
@media(max-width:650px){.commission-filters{grid-template-columns:1fr}.commission-summary{grid-template-columns:1fr}}

/* V50 — seletor do profissional na OS */
.document-items .commission-professional-select{min-width:165px;font-size:9px;padding:6px 7px}.document-items th:nth-child(3),.document-items td:nth-child(3){min-width:170px}

/* V52 — fluxo financeiro */
.financial-workflow-banner .alert{margin:14px 0 0}.financial-workflow-banner .row-actions{margin-top:14px}.receivable-payment-form select,.receivable-payment-form input,.receivable-payment-form textarea{width:100%;box-sizing:border-box}.receivable-payment-form{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.receivable-payment-form label:last-of-type,.receivable-payment-form button{grid-column:1/-1}.receivable-payment-form button{width:max-content}.danger{border:0;cursor:pointer}.receivable-table td form,.data-table td form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
@media (max-width:800px){.receivable-payment-form{grid-template-columns:1fr}}

/* V53 — baixa financeira visível e separada da OS. */
.receivable-pay-action{display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 10px;border:1px solid #b9e8d1;border-radius:8px;background:#e8f8f0;color:#137c54;font-size:10px;font-weight:900;text-decoration:none;white-space:nowrap}.receivable-pay-action:hover{background:#d7f2e5;color:#0e6847}.receivable-settlement-banner{display:flex;gap:10px;align-items:flex-start;margin:0 0 12px;padding:11px 13px;border:1px solid #bfe0fa;border-radius:10px;background:#f1f8ff;color:#526e87;font-size:10px;line-height:1.5}.receivable-settlement-banner strong{color:#0b68c9;white-space:nowrap}.receivable-confirm-button{grid-column:1/-1;width:100%;min-height:44px}.receivable-payment-form select,.receivable-payment-form input,.receivable-payment-form textarea{box-sizing:border-box;width:100%}
@media(max-width:700px){.receivable-settlement-banner{display:grid}.receivable-pay-action{width:100%}}

/* V54 — baixa de recebimento com campos mais legíveis e explicação de caixa */
.receivable-settlement-panel{min-width:0}.receivable-payment-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:16px}.payment-field{display:grid;gap:7px;min-width:0;color:#26435f;font-size:11px;font-weight:800}.payment-field span{display:block}.payment-field small{font-size:9.5px;font-weight:500;line-height:1.45;color:#74879b}.payment-field-full{grid-column:1/-1}.payment-field input,.payment-field select,.payment-field textarea{min-height:46px;font-size:13px;padding:10px 12px;border:1px solid #b8cde2;border-radius:10px;background:#fff;color:#17314a;box-sizing:border-box}.payment-field textarea{min-height:92px;resize:vertical}.payment-field input:focus,.payment-field select:focus,.payment-field textarea:focus{outline:0;border-color:#176fda;box-shadow:0 0 0 3px rgba(23,111,218,.10)}.money-input{display:flex;align-items:center;min-height:46px;border:1px solid #b8cde2;border-radius:10px;background:#fff;overflow:hidden}.money-input:focus-within{border-color:#176fda;box-shadow:0 0 0 3px rgba(23,111,218,.10)}.money-input strong{padding:0 8px 0 12px;color:#0f67c8;font-size:13px}.money-input input{border:0!important;box-shadow:none!important;outline:0!important;flex:1;min-height:44px;padding-left:2px!important}.receivable-settlement-panel .receivable-settlement-banner{margin-top:2px}.receivable-no-cash{display:flex;gap:9px;align-items:flex-start;margin:16px 0 0;padding:12px 14px;line-height:1.45}.receivable-no-cash span{display:block}.receivable-payment-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;padding-top:4px;border-top:1px solid #e1eaf2}.receivable-payment-actions .receivable-confirm-button{width:auto;min-height:46px;padding:0 18px}.receivable-payment-form button:disabled,.receivable-payment-form select:disabled{opacity:.55;cursor:not-allowed}.receivable-payment-form select{appearance:auto}.receivable-settlement-banner span{line-height:1.6}.receivable-settlement-banner b{color:#1e568c}.receivable-detail-grid>.panel{min-width:0}
@media(max-width:900px){.receivable-payment-form{grid-template-columns:1fr}.payment-field-full{grid-column:auto}.receivable-payment-actions{grid-column:auto;flex-direction:column-reverse}.receivable-payment-actions button{width:100%!important}}

/* V55 — detalhes da conta: recebimento em destaque e histórico no final */
.receivable-detail-grid{display:block}.receivable-detail-grid>.receivable-settlement-panel{width:100%;margin-bottom:18px}.receivable-history-bottom{width:100%;margin-top:4px}.receivable-history-bottom .panel{width:100%}.receivable-no-cash{display:flex;align-items:center;justify-content:space-between;gap:16px}.receivable-no-cash>div{display:grid;gap:3px}.receivable-no-cash .row-actions{margin:0;flex-shrink:0}.receivable-no-cash .button{height:38px}.receivable-payment-form select{min-height:48px;font-size:13px}.receivable-payment-form .payment-field select:focus{outline:0;border-color:#176fda;box-shadow:0 0 0 3px rgba(23,111,218,.10)}
@media(max-width:700px){.receivable-no-cash{align-items:stretch;flex-direction:column}.receivable-no-cash .row-actions{justify-content:flex-start}}


/* V56 — Layout de impressão automotivo inspirado em ficha profissional de oficina. */
.os-print-topbar{display:grid;grid-template-columns:minmax(260px,1.15fr) minmax(220px,.9fr) minmax(190px,.65fr);gap:18px;align-items:start;padding-bottom:14px;border-bottom:2px solid var(--document-accent,#0f6fe5)}
.os-print-company{display:flex;align-items:center;gap:10px;min-width:0}.os-print-company img{width:150px;height:58px;object-fit:contain;object-position:left center}.os-print-company>div{display:grid;gap:2px}.os-print-company strong{font-size:12px;color:#0c2944}.os-print-company span{font-size:8px;color:#64788b}.os-print-contact{display:grid;gap:4px;padding-top:4px;color:#506b82;font-size:8px;line-height:1.45}.os-print-doc-head{text-align:right;display:grid;gap:3px}.os-print-doc-head span{color:var(--document-accent,#0f6fe5);font-size:9px;font-weight:800;letter-spacing:.08em}.os-print-doc-head strong{display:inline-block;justify-self:end;padding:7px 12px;border-radius:7px;background:var(--document-accent,#0f6fe5);color:#fff;font-size:15px}.os-print-doc-head small{color:#5e7388;font-size:7px;font-weight:800}.os-print-slogan{padding:9px 0 14px;text-align:right;color:#1a5275;font-size:15px;font-style:italic}.os-print-two-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}.os-print-data-cards{margin-bottom:14px}.os-print-data-cards article{border:1px solid #cfdde8;border-radius:8px;overflow:hidden;background:#fff}.os-print-data-cards header,.os-print-bottom-grid header{display:flex;align-items:center;gap:8px;padding:8px 11px;background:#0c4c75;color:#fff}.os-print-data-cards header span,.os-print-bottom-grid header span{color:#9df02e;font-size:10px}.os-print-data-cards header strong,.os-print-bottom-grid header strong{font-size:9px;letter-spacing:.08em}.os-print-data-cards dl{display:grid;grid-template-columns:1fr 1fr;margin:0}.os-print-data-cards dl div{padding:7px 10px;border-bottom:1px solid #e5edf3}.os-print-data-cards dl div:nth-child(odd){border-right:1px solid #e5edf3}.os-print-data-cards dl .wide{grid-column:1/-1;border-right:0}.os-print-data-cards dt{font-size:6px;letter-spacing:.07em;text-transform:uppercase;color:#7890a3;font-weight:800}.os-print-data-cards dd{margin:2px 0 0;font-size:9px;color:#17364f}.os-print-section{margin-top:15px;break-inside:auto}.os-print-section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.os-print-section-title div{display:flex;align-items:center;gap:8px}.os-print-section-title span{width:23px;height:23px;display:grid;place-items:center;border-radius:6px;background:#0c4c75;color:#fff;font-size:8px;font-weight:800}.os-print-section-title strong{font-size:12px;color:#12314b}.os-print-section-title small{font-size:8px;color:#647b8e;font-weight:700}.os-print-table{width:100%;border:1px solid #cad8e3;border-radius:7px;border-collapse:separate;border-spacing:0;overflow:hidden}.os-print-table th{padding:7px 8px;background:#e9f0f5;color:#35566e;font-size:7px;letter-spacing:.06em;text-transform:uppercase;text-align:left;border-bottom:1px solid #cbd9e4}.os-print-table td{padding:8px;border-bottom:1px solid #e4ebf0;color:#29465e;font-size:8px}.os-print-table tbody tr:nth-child(even){background:#fbfcfd}.os-print-table tr:last-child td{border-bottom:0}.os-print-table td:first-child,.os-print-table th:first-child{width:26px;text-align:center}.os-print-table .empty{text-align:center;color:#7b8e9f;padding:16px}.os-print-bottom-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(250px,.75fr);gap:12px;margin-top:16px;break-inside:avoid}.os-print-notes,.os-print-total-box{border:1px solid #cfdde8;border-radius:8px;overflow:hidden}.os-print-notes p{margin:0;padding:11px 12px;color:#50687d;font-size:8px;line-height:1.55}.os-print-notes p+p{padding-top:0}.os-print-total-box>div{display:flex;justify-content:space-between;padding:7px 10px;color:#344f65;font-size:8px;border-bottom:1px solid #e5edf3}.os-print-total-box .grand{background:#a7daf3;color:#0d4667;border-bottom:0;font-size:11px;font-weight:800}.os-print-status-sign{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:25px;align-items:end;margin-top:24px;break-inside:avoid}.os-print-status{display:grid;gap:4px}.os-print-status small{color:#526c80;font-size:7px;font-weight:800;letter-spacing:.06em}.os-print-status strong{display:inline-block;justify-self:start;padding:6px 10px;border-radius:999px;background:#dff4e9;color:#187c52;font-size:10px}.os-print-status span{font-size:7px;color:#647b8e}.os-print-sign div{height:28px;border-bottom:1px solid #4f6679}.os-print-sign span{display:block;text-align:center;margin-top:5px;font-size:8px;color:#657a8c}.os-print-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;padding:9px 12px;background:#0a3e61;color:#fff;font-size:7px;break-inside:avoid}.os-print-footer strong{font-size:11px}.os-print-footer span{opacity:.95}.print-document-v30 .os-print-topbar,.print-document-v30 .os-print-section-title,.print-document-v30 .os-print-data-cards,.print-document-v30 .os-print-bottom-grid{break-inside:avoid}
@media(max-width:820px){.os-print-topbar,.os-print-two-cols,.os-print-bottom-grid,.os-print-status-sign{grid-template-columns:1fr}.os-print-doc-head{text-align:left}.os-print-doc-head strong{justify-self:start}.os-print-slogan{text-align:left}.os-print-data-cards dl{grid-template-columns:1fr}.os-print-data-cards dl div:nth-child(odd){border-right:0}.os-print-footer{flex-direction:column;align-items:flex-start}}


/* V57 — impressão profissional da Ordem de Serviço baseada na ficha de oficina aprovada. */

/* V58 — página A4 única para OS/orçamento, com ajuste automático e rodapé fixo no documento. */
.print-document-special-v58{padding:0!important;border-top:0!important;overflow:visible!important;background:#fff!important;box-shadow:none!important;}
.oficina-print-v58{position:relative;box-sizing:border-box;width:100%;height:289mm;min-height:289mm;max-height:289mm;overflow:hidden;padding:4mm 5mm 4mm;color:#102f49;background:#fff;font-family:var(--ui-font-body,DM Sans,Arial,sans-serif);font-size:7.4pt;line-height:1.28;-webkit-print-color-adjust:exact;print-color-adjust:exact;transform:scale(var(--print-fit-scale,1));transform-origin:top left;}
.oficina-print-v58:before{content:"";position:absolute;inset:1.5mm;border:1px solid #dbe5ed;border-radius:2mm;pointer-events:none;z-index:0;}
.oficina-print-v58>*{position:relative;z-index:1;}
.oficina-print-v58 .oficina-print-header-v57{padding:.5mm .5mm 2.5mm;gap:3.5mm;}
.oficina-print-v58 .oficina-print-logo-box-v57{width:34mm;height:16mm;}
.oficina-print-v58 .oficina-print-logo-box-v57 img{max-width:34mm;max-height:16mm;}
.oficina-print-v58 .oficina-print-company-v57 strong{font-size:10pt;}
.oficina-print-v58 .oficina-print-company-v57 span,.oficina-print-v58 .oficina-print-company-contact-v57{font-size:6.1pt;}
.oficina-print-v58 .oficina-print-document-v57>span{font-size:8.7pt;}
.oficina-print-v58 .oficina-print-document-v57>strong{padding:1.9mm 3.2mm;font-size:11pt;}
.oficina-print-v58 .oficina-print-document-v57>small{font-size:5.8pt;}
.oficina-print-v58 .oficina-print-tagline-v57{padding:1.5mm .5mm 2mm;font-size:8.7pt;}
.oficina-print-v58 .oficina-print-card-v57>header,.oficina-print-v58 .oficina-print-notes-v57>header,.oficina-print-v58 .oficina-print-financial-v57>header{padding:1.8mm 2.6mm;}
.oficina-print-v58 .oficina-print-card-v57>header strong,.oficina-print-v58 .oficina-print-notes-v57>header strong,.oficina-print-v58 .oficina-print-financial-v57>header strong{font-size:6.7pt;}
.oficina-print-v58 .oficina-print-card-grid-v57>div{padding:1.9mm 2.5mm;}
.oficina-print-v58 .oficina-print-card-grid-v57 small{font-size:4.8pt;}
.oficina-print-v58 .oficina-print-card-grid-v57 strong{font-size:6.6pt;}
.oficina-print-v58 .oficina-print-section-v57{margin-top:2.8mm;}
.oficina-print-v58 .oficina-print-section-heading-v57{margin-bottom:1.1mm;}
.oficina-print-v58 .oficina-print-section-heading-v57 b{width:6mm;height:6mm;}
.oficina-print-v58 .oficina-print-section-heading-v57 strong{font-size:7.5pt;}
.oficina-print-v58 .oficina-print-section-heading-v57>span{font-size:5.5pt;}
.oficina-print-v58 .oficina-print-table-v57 th{padding:1.5mm 1.5mm;font-size:5pt;}
.oficina-print-v58 .oficina-print-table-v57 td{padding:1.6mm 1.5mm;font-size:6.05pt;}
.oficina-print-v58 .oficina-print-table-v57 th.col-money,.oficina-print-v58 .oficina-print-table-v57 td.col-money{width:23mm;}
.oficina-print-v58 .oficina-print-summary-v57{gap:2.5mm;margin-top:2.8mm;}
.oficina-print-v58 .oficina-print-notes-body-v57{min-height:20mm;padding:2.3mm;font-size:6.1pt;}
.oficina-print-v58 .oficina-print-financial-v57>div{padding:1.6mm 2.3mm;font-size:6.1pt;}
.oficina-print-v58 .oficina-print-financial-v57>div.grand{padding:2.2mm 2.3mm;font-size:7.8pt;}
.oficina-print-v58 .oficina-print-financial-v57>div.grand strong{font-size:9pt;}
.oficina-print-v58 .oficina-print-status-sign-v57{gap:7mm;margin-top:3.8mm;}
.oficina-print-v58 .oficina-print-status-v57 small{font-size:5.1pt;}
.oficina-print-v58 .oficina-print-status-v57 strong{padding:1.7mm 2.7mm;font-size:7.2pt;}
.oficina-print-v58 .oficina-print-status-v57 span,.oficina-print-v58 .oficina-print-sign-v57 small{font-size:5.7pt;}
.oficina-print-v58 .oficina-print-sign-v57 span{height:8mm;}
.oficina-print-v58 .oficina-print-footer-v57{margin-top:auto;margin-bottom:0;padding:2.3mm 2.7mm;min-height:13mm;background:#0b4569;}
.oficina-print-v58 .oficina-print-footer-v57 strong{font-size:7.2pt;}
.oficina-print-v58 .oficina-print-footer-v57 span,.oficina-print-v58 .oficina-print-footer-badges-v57 span{font-size:5.5pt;}
@media print{
    .print-layout-os-v58{padding:0!important;}
    .print-document-special-v58{width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important;}
    .print-document-special-v58 > .print-watermark,.print-document-special-v58 > .print-footer-v30{display:none!important;}
    .print-document-special-v58 .oficina-print-v58{width:100%!important;height:289mm!important;min-height:289mm!important;max-height:289mm!important;margin:0!important;padding:4mm 5mm 4mm!important;overflow:hidden!important;break-inside:avoid!important;page-break-inside:avoid!important;}
    .print-document-special-v58 .oficina-print-v58 > .oficina-print-section-v57{break-inside:auto!important;page-break-inside:auto!important;}
    .print-document-special-v58 .oficina-print-table-v57 thead{display:table-header-group;}
    .print-document-special-v58 .oficina-print-table-v57 tr{break-inside:avoid;page-break-inside:avoid;}
    @page{size:A4 portrait;margin:4mm;}
}

.print-document-special-v57{padding:0!important;border-top:0!important;overflow:visible!important;background:#fff!important;box-shadow:none!important;}
.oficina-print-v57{position:relative;box-sizing:border-box;width:100%;min-height:277mm;padding:7mm 7mm 5mm;color:#102f49;background:#fff;font-family:var(--ui-font-body,DM Sans,Arial,sans-serif);font-size:8pt;line-height:1.35;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
.oficina-print-v57:before{content:"";position:absolute;inset:5mm 5mm 4mm;border:1px solid #dbe5ed;border-radius:2.2mm;pointer-events:none;z-index:0;}
.oficina-print-v57>*{position:relative;z-index:1;}
.oficina-print-header-v57{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.05fr) minmax(42mm,.72fr);gap:5mm;align-items:start;padding:1mm 1mm 4mm;}
.oficina-print-brand-v57{display:flex;align-items:center;gap:3.5mm;min-width:0;}
.oficina-print-logo-box-v57{width:38mm;height:19mm;display:flex;align-items:center;justify-content:flex-start;overflow:hidden;flex:0 0 auto;}
.oficina-print-logo-box-v57 img{display:block;max-width:38mm;max-height:19mm;width:auto;height:auto;object-fit:contain;object-position:left center;}
.oficina-print-company-v57{display:grid;gap:.7mm;min-width:0;}
.oficina-print-company-v57 strong{font-family:var(--ui-font-heading,Manrope,Arial,sans-serif);font-size:11pt;line-height:1.1;color:#0c2c47;}
.oficina-print-company-v57 span{font-size:6.7pt;color:#62788a;overflow-wrap:anywhere;}
.oficina-print-company-contact-v57{display:grid;gap:1.3mm;padding-top:2mm;color:#4d697e;font-size:6.7pt;line-height:1.45;}
.oficina-print-document-v57{text-align:right;display:grid;gap:1.2mm;justify-items:end;}
.oficina-print-document-v57>span{font-family:var(--ui-font-heading,Manrope,Arial,sans-serif);font-size:9.2pt;font-weight:900;letter-spacing:.08em;color:#0c4d76;}
.oficina-print-document-v57>strong{display:inline-flex;align-items:center;justify-content:center;min-width:36mm;padding:2.4mm 4mm;border-radius:1.9mm;background:#0d72b2;color:#fff;font-size:12pt;line-height:1;font-weight:900;letter-spacing:.03em;}
.oficina-print-document-v57>small{font-size:6.1pt;font-weight:800;color:#6b8092;letter-spacing:.04em;}
.oficina-print-divider-v57{height:1.1px;background:#0d72b2;margin:0 1mm;}
.oficina-print-tagline-v57{text-align:right;padding:2.2mm 1mm 3.4mm;color:#13587f;font-family:var(--ui-font-heading,Manrope,Arial,sans-serif);font-size:10pt;font-style:italic;font-weight:700;}
.oficina-print-cards-v57{display:grid;grid-template-columns:1fr 1fr;gap:3mm;padding:0 1mm;}
.oficina-print-card-v57{border:1px solid #ccdbe6;border-radius:2.2mm;overflow:hidden;background:#fff;break-inside:avoid;}
.oficina-print-card-v57>header,.oficina-print-notes-v57>header,.oficina-print-financial-v57>header{display:flex;align-items:center;gap:2mm;padding:2.3mm 3mm;background:#0c4e75;color:#fff;}
.oficina-print-card-v57>header strong,.oficina-print-notes-v57>header strong,.oficina-print-financial-v57>header strong{font-size:7.2pt;letter-spacing:.08em;font-weight:900;}
.oficina-print-icon-v57{color:#9ce72b;font-size:7pt;line-height:1;}
.oficina-print-card-grid-v57{display:grid;grid-template-columns:1fr 1fr;}
.oficina-print-card-grid-v57>div{min-width:0;padding:2.5mm 3mm;border-bottom:1px solid #e4ebf1;}
.oficina-print-card-grid-v57>div:nth-child(odd){border-right:1px solid #e4ebf1;}
.oficina-print-card-grid-v57>div.wide{grid-column:1/-1;border-right:0;}
.oficina-print-card-grid-v57>div:last-child,.oficina-print-card-grid-v57>div:nth-last-child(2):nth-child(odd){border-bottom:0;}
.oficina-print-card-grid-v57 small{display:block;margin-bottom:.7mm;color:#788d9e;font-size:5.2pt;font-weight:900;letter-spacing:.07em;}
.oficina-print-card-grid-v57 strong{display:block;color:#183a55;font-size:7.1pt;line-height:1.28;overflow-wrap:anywhere;}
.oficina-print-section-v57{margin:4mm 1mm 0;break-inside:auto;}
.oficina-print-section-heading-v57{display:flex;align-items:center;justify-content:space-between;gap:3mm;margin-bottom:1.7mm;}
.oficina-print-section-heading-v57>div{display:flex;align-items:center;gap:2.2mm;min-width:0;}
.oficina-print-section-heading-v57 b{display:grid;place-items:center;width:7mm;height:7mm;border-radius:1.5mm;background:#0c4e75;color:#fff;font-size:6.3pt;flex:0 0 auto;}
.oficina-print-section-heading-v57 strong{font-family:var(--ui-font-heading,Manrope,Arial,sans-serif);font-size:8.3pt;color:#123550;letter-spacing:.01em;}
.oficina-print-section-heading-v57>span{font-size:6.1pt;color:#647b8d;font-weight:800;white-space:nowrap;}
.oficina-print-table-v57{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;border:1px solid #cad9e4;border-radius:1.8mm;overflow:hidden;background:#fff;}
.oficina-print-table-v57 th{padding:2.1mm 2mm;background:#e7f0f5;color:#3b5a70;border-bottom:1px solid #c7d7e2;font-size:5.5pt;letter-spacing:.06em;text-transform:uppercase;text-align:left;}
.oficina-print-table-v57 td{padding:2.2mm 2mm;border-bottom:1px solid #e4ebf0;color:#29465e;font-size:6.6pt;vertical-align:top;overflow-wrap:anywhere;}
.oficina-print-table-v57 tbody tr:nth-child(even){background:#f9fbfc;}
.oficina-print-table-v57 tbody tr:last-child td{border-bottom:0;}
.oficina-print-table-v57 th.col-num,.oficina-print-table-v57 td.col-num{width:6mm;text-align:center;}
.oficina-print-table-v57 th.col-qty,.oficina-print-table-v57 td.col-qty{width:14mm;text-align:center;}
.oficina-print-table-v57 th.col-money,.oficina-print-table-v57 td.col-money{width:25mm;text-align:right;}
.oficina-print-table-v57 td strong{color:#163954;font-weight:800;}
.oficina-print-table-v57 .empty{text-align:center;padding:7mm;color:#7a8d9d;}
.oficina-print-summary-v57{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(62mm,.65fr);gap:3mm;margin:4mm 1mm 0;break-inside:avoid;}
.oficina-print-notes-v57,.oficina-print-financial-v57{border:1px solid #ccdbe6;border-radius:2.2mm;overflow:hidden;background:#fff;}
.oficina-print-notes-body-v57{min-height:25mm;padding:3mm;color:#536b80;font-size:6.7pt;line-height:1.5;}
.oficina-print-notes-body-v57 p{margin:0 0 2mm;}
.oficina-print-notes-body-v57 p:last-child{margin-bottom:0;}
.oficina-print-financial-v57>div{display:flex;justify-content:space-between;gap:4mm;padding:2.1mm 2.8mm;border-bottom:1px solid #e4ebf0;color:#3d586d;font-size:6.7pt;}
.oficina-print-financial-v57>div strong{color:#203e56;}
.oficina-print-financial-v57>div.grand{padding:3mm 2.8mm;background:#a9daf2;color:#0c4d70;border-bottom:0;font-size:8.6pt;font-weight:900;}
.oficina-print-financial-v57>div.grand strong{color:#0c4d70;font-size:10pt;}
.oficina-print-status-sign-v57{display:grid;grid-template-columns:1.05fr 1fr 1fr;gap:10mm;align-items:end;margin:6mm 1mm 0;break-inside:avoid;}
.oficina-print-status-v57{display:grid;gap:1.5mm;align-content:end;}
.oficina-print-status-v57 small{font-size:5.6pt;letter-spacing:.07em;color:#637b8e;font-weight:900;}
.oficina-print-status-v57 strong{justify-self:start;padding:2.2mm 3.3mm;border-radius:999px;background:#dff4e9;color:#16754e;font-size:8pt;font-weight:900;}
.oficina-print-status-v57 span{font-size:6.2pt;color:#657b8d;}
.oficina-print-sign-v57{display:grid;gap:1.2mm;align-content:end;}
.oficina-print-sign-v57 span{display:block;height:10mm;border-bottom:1px solid #61778a;}
.oficina-print-sign-v57 small{display:block;text-align:center;color:#6b8092;font-size:6.2pt;}
.oficina-print-footer-v57{display:flex;align-items:center;justify-content:space-between;gap:4mm;margin:5mm 1mm 0;padding:3mm 3.2mm;background:#0b4569;color:#fff;break-inside:avoid;}
.oficina-print-footer-v57>div:first-child{display:grid;gap:.7mm;max-width:58%;}
.oficina-print-footer-v57 strong{font-family:var(--ui-font-heading,Manrope,Arial,sans-serif);font-size:7.8pt;}
.oficina-print-footer-v57 span{font-size:6pt;line-height:1.35;}
.oficina-print-footer-badges-v57{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:2.2mm 3.5mm;font-weight:700;}
.oficina-print-footer-badges-v57 span{font-size:5.9pt;white-space:nowrap;}
@media(max-width:900px){.oficina-print-header-v57,.oficina-print-cards-v57,.oficina-print-summary-v57,.oficina-print-status-sign-v57{grid-template-columns:1fr}.oficina-print-document-v57{text-align:left;justify-items:start}.oficina-print-footer-v57{flex-direction:column;align-items:flex-start}.oficina-print-footer-v57>div:first-child{max-width:100%}.oficina-print-footer-badges-v57{justify-content:flex-start}.oficina-print-table-v57{font-size:6pt;}.oficina-print-table-v57 th.col-money,.oficina-print-table-v57 td.col-money{width:22mm;}}
@media print{
    .print-document-special-v57{width:auto!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;}
    .print-document-special-v57 > .print-watermark,.print-document-special-v57 > .print-footer-v30{display:none!important;}
    .print-document-special-v57 .oficina-print-v57{min-height:0;padding:4mm 4mm 3mm;}
    .oficina-print-v57:before{inset:2.5mm 2.5mm 2mm;}
    .oficina-print-header-v57,.oficina-print-card-v57,.oficina-print-section-v57,.oficina-print-summary-v57,.oficina-print-status-sign-v57,.oficina-print-footer-v57{break-inside:avoid;}
    .oficina-print-section-v57{break-inside:auto;}
    .oficina-print-table-v57 thead{display:table-header-group;}
    .oficina-print-table-v57 tr{break-inside:avoid;}
    @page{size:A4;margin:6mm;}
}


/* V59 — impressão OS A4 com cabeçalho/rodapé completos e uma única folha. */
.print-document-special-v59{padding:0!important;border:0!important;overflow:visible!important;background:transparent!important;box-shadow:none!important;}
.oficina-print-v59{position:relative;box-sizing:border-box;width:210mm;min-height:297mm;max-height:297mm;height:297mm;margin:0 auto;padding:8mm 9mm 7mm;color:#102f49;background:#fff;font-family:var(--ui-font-body,DM Sans,Arial,sans-serif);font-size:7.1pt;line-height:1.23;display:flex;flex-direction:column;overflow:hidden;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
.oficina-print-v59:before{content:"";position:absolute;inset:3mm;border:1px solid #d6e1ea;border-radius:2mm;pointer-events:none;z-index:0;}
.oficina-print-v59{padding-bottom:24mm;}
.oficina-print-v59>*{position:relative;z-index:1;}
/* V59.2 — cabeçalho da impressão: empresa à esquerda e identificação da OS à direita, sem área vazia artificial. */
.oficina-print-header-v59{display:grid;grid-template-columns:minmax(0,1fr) 50mm;gap:5mm;align-items:start;padding:0 0 2.8mm;min-height:23mm;}
.oficina-print-header-spacer-v59{display:none;}
.oficina-print-brand-v59{display:flex;align-items:center;gap:4mm;min-width:0;align-self:start;}
.oficina-print-logo-box-v59{width:36mm;height:21mm;display:flex;align-items:center;justify-content:flex-start;overflow:hidden;flex:0 0 auto;padding:0 1mm;} 
.oficina-print-logo-box-v59 img{display:block;max-width:36mm;max-height:21mm;width:auto;height:auto;object-fit:contain;object-position:left center;} 
.oficina-print-company-v59{display:grid;gap:.5mm;min-width:0;}
.oficina-print-company-v59 strong{font-family:var(--ui-font-heading,Manrope,Arial,sans-serif);font-size:11pt;line-height:1.05;color:#0c2c47;}
.oficina-print-company-v59 span{display:block;color:#4b6579;font-size:5.4pt;line-height:1.22;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

.oficina-print-document-v59{text-align:right;display:grid;gap:1mm;justify-items:end;align-content:start;align-self:start;width:50mm;min-width:0;padding-top:.5mm;}
.oficina-print-document-v59>span{font-family:var(--ui-font-heading,Manrope,Arial,sans-serif);font-size:8.3pt;font-weight:900;letter-spacing:.06em;color:#0c4d76;}
.oficina-print-document-v59>strong{display:inline-flex;align-items:center;justify-content:center;width:50mm;box-sizing:border-box;padding:2.3mm 2.6mm;border-radius:1.8mm;background:#0d72b2;color:#fff;font-size:11pt;line-height:1;font-weight:900;}
.oficina-print-document-v59>small{font-size:5.5pt;font-weight:800;color:#6b8092;letter-spacing:.03em;}
.oficina-print-divider-v59{height:1px;background:#1771ae;margin:0 0 1.6mm;flex:0 0 auto;} 
.oficina-print-tagline-v59{text-align:right;padding:0 0 2.2mm;color:#13587f;font-family:var(--ui-font-heading,Manrope,Arial,sans-serif);font-size:7.8pt;font-style:italic;font-weight:700;}
.oficina-print-cards-v59{display:grid;grid-template-columns:1fr 1fr;gap:2.5mm;}
.oficina-print-card-v59{border:1px solid #ccdbe6;border-radius:1.8mm;overflow:hidden;background:#fff;break-inside:avoid;}
.oficina-print-card-v59>header,.oficina-print-notes-v59>header,.oficina-print-financial-v59>header{display:flex;align-items:center;gap:1.6mm;padding:1.6mm 2.4mm;background:#0c4e75;color:#fff;}
.oficina-print-card-v59>header strong,.oficina-print-notes-v59>header strong,.oficina-print-financial-v59>header strong{font-size:6.1pt;letter-spacing:.08em;font-weight:900;}
.oficina-print-icon-v59{color:#9ce72b;font-size:5.6pt;line-height:1;}
.oficina-print-card-grid-v59{display:grid;grid-template-columns:1fr 1fr;}
.oficina-print-card-grid-v59>div{min-width:0;padding:1.7mm 2.1mm;border-bottom:1px solid #e4ebf1;}
.oficina-print-card-grid-v59>div:nth-child(odd){border-right:1px solid #e4ebf1;}
.oficina-print-card-grid-v59>div.wide{grid-column:1/-1;border-right:0;}
.oficina-print-card-grid-v59>div:last-child,.oficina-print-card-grid-v59>div:nth-last-child(2):nth-child(odd){border-bottom:0;}
.oficina-print-card-grid-v59 small{display:block;margin-bottom:.4mm;color:#788d9e;font-size:4.4pt;font-weight:900;letter-spacing:.06em;}
.oficina-print-card-grid-v59 strong{display:block;color:#183a55;font-size:6.1pt;line-height:1.2;overflow-wrap:anywhere;}
.oficina-print-section-v59{margin-top:2.5mm;break-inside:auto;}
.oficina-print-section-heading-v59{display:flex;align-items:center;justify-content:space-between;gap:2mm;margin-bottom:1mm;}
.oficina-print-section-heading-v59>div{display:flex;align-items:center;gap:1.6mm;min-width:0;}
.oficina-print-section-heading-v59 b{display:grid;place-items:center;width:5.3mm;height:5.3mm;border-radius:1.3mm;background:#0c4e75;color:#fff;font-size:5.5pt;flex:0 0 auto;}
.oficina-print-section-heading-v59 strong{font-family:var(--ui-font-heading,Manrope,Arial,sans-serif);font-size:6.9pt;color:#123550;letter-spacing:.01em;}
.oficina-print-section-heading-v59>span{font-size:5pt;color:#647b8d;font-weight:800;white-space:nowrap;}
.oficina-print-table-v59{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;border:1px solid #cad9e4;border-radius:1.5mm;overflow:hidden;background:#fff;}
.oficina-print-table-v59 th{padding:1.1mm 1.2mm;background:#e7f0f5;color:#3b5a70;border-bottom:1px solid #c7d7e2;font-size:4.5pt;letter-spacing:.05em;text-transform:uppercase;text-align:left;}
.oficina-print-table-v59 td{padding:1.25mm 1.2mm;border-bottom:1px solid #e4ebf0;color:#29465e;font-size:5.5pt;vertical-align:top;overflow-wrap:anywhere;}
.oficina-print-table-v59 tbody tr:nth-child(even){background:#f9fbfc;}
.oficina-print-table-v59 tbody tr:last-child td{border-bottom:0;}
.oficina-print-table-v59 th.col-num,.oficina-print-table-v59 td.col-num{width:5mm;text-align:center;}
.oficina-print-table-v59 th.col-qty,.oficina-print-table-v59 td.col-qty{width:12mm;text-align:center;}
.oficina-print-table-v59 th.col-money,.oficina-print-table-v59 td.col-money{width:22mm;text-align:right;}
.oficina-print-table-v59 td strong{color:#163954;font-weight:800;}
.oficina-print-summary-v59{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(60mm,.65fr);gap:2.5mm;margin-top:2.5mm;break-inside:avoid;}
.oficina-print-notes-v59,.oficina-print-financial-v59{border:1px solid #ccdbe6;border-radius:1.8mm;overflow:hidden;background:#fff;}
.oficina-print-notes-body-v59{min-height:14mm;padding:1.9mm;color:#536b80;font-size:5.5pt;line-height:1.35;}
.oficina-print-notes-body-v59 p{margin:0 0 1.2mm;}
.oficina-print-notes-body-v59 p:last-child{margin-bottom:0;}
.oficina-print-financial-v59>div{display:flex;justify-content:space-between;gap:4mm;padding:1.3mm 2mm;border-bottom:1px solid #e4ebf0;color:#3d586d;font-size:5.4pt;}
.oficina-print-financial-v59>div strong{color:#203e56;}
.oficina-print-financial-v59>div.grand{padding:2.1mm 2mm;background:#a9daf2;color:#0c4d70;border-bottom:0;font-size:7.2pt;font-weight:900;}
.oficina-print-financial-v59>div.grand strong{color:#0c4d70;font-size:8.2pt;}
.oficina-print-status-sign-v59{display:grid;grid-template-columns:1.05fr 1fr 1fr;gap:8mm;align-items:end;margin-top:3mm;break-inside:avoid;}
.oficina-print-status-v59{display:grid;gap:1mm;align-content:end;}
.oficina-print-status-v59 small{font-size:4.8pt;letter-spacing:.06em;color:#637b8e;font-weight:900;}
.oficina-print-status-v59 strong{justify-self:start;padding:1.4mm 2.2mm;border-radius:999px;background:#dff4e9;color:#16754e;font-size:6.6pt;font-weight:900;}
.oficina-print-status-v59 span{font-size:5.2pt;color:#657b8d;}
.oficina-print-sign-v59{display:grid;gap:.7mm;align-content:end;}
.oficina-print-sign-v59 span{display:block;height:7mm;border-bottom:1px solid #61778a;}
.oficina-print-sign-v59 small{display:block;text-align:center;color:#6b8092;font-size:5.2pt;}
.oficina-print-footer-v59{position:absolute;left:9mm;right:9mm;bottom:7mm;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(60mm,.9fr);gap:4mm;align-items:center;margin:0;padding:2.2mm 2.6mm;min-height:11mm;background:#0b4569;color:#fff;break-inside:avoid;}
.oficina-print-footer-company-v59{display:grid;gap:.45mm;min-width:0;}
.oficina-print-footer-company-v59 strong{font-family:var(--ui-font-heading,Manrope,Arial,sans-serif);font-size:7pt;}
.oficina-print-footer-company-v59 span{font-size:4.9pt;line-height:1.2;overflow-wrap:anywhere;}
.oficina-print-footer-badges-v59{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1.6mm 2.8mm;font-weight:700;}
.oficina-print-footer-badges-v59 span{font-size:4.9pt;white-space:nowrap;}
@media(max-width:900px){.oficina-print-footer-v59{position:static;margin-top:3mm}.oficina-print-header-v59,.oficina-print-cards-v59,.oficina-print-summary-v59,.oficina-print-status-sign-v59,.oficina-print-footer-v59{grid-template-columns:1fr}.oficina-print-document-v59{text-align:left;justify-items:start}.oficina-print-footer-badges-v59{justify-content:flex-start}.oficina-print-v59{width:100%;min-height:0;height:auto;max-height:none;overflow:visible;}.oficina-print-table-v59{font-size:6pt;}}
@media print{
  @page{size:A4 portrait;margin:0;}
  html,body{margin:0!important;padding:0!important;background:#fff!important;}
  .print-body-v30{padding:0!important;background:#fff!important;}
  .print-toolbar-v30{display:none!important;}
  .print-document-special-v59{width:210mm!important;height:297mm!important;min-height:297mm!important;max-height:297mm!important;margin:0!important;padding:0!important;overflow:hidden!important;box-shadow:none!important;}
  .print-document-special-v59>.print-watermark,.print-document-special-v59>.print-footer-v30{display:none!important;}
  .print-document-special-v59 .oficina-print-v59{width:210mm!important;height:297mm!important;min-height:297mm!important;max-height:297mm!important;margin:0!important;padding:8mm 9mm 7mm!important;overflow:hidden!important;break-after:avoid!important;page-break-after:avoid!important;break-inside:avoid!important;page-break-inside:avoid!important;}
  .print-document-special-v59 .oficina-print-table-v59 thead{display:table-header-group!important;}
  .print-document-special-v59 .oficina-print-table-v59 tr{break-inside:avoid!important;page-break-inside:avoid!important;}
}


/* V78.15 — Recibo do PDV: mesma base visual da impressão de OS, sem watermark genérico e com conteúdo compacto para uma única folha A4. */
.recibo-print-v78{padding-bottom:24mm;}
.recibo-print-v78 .oficina-print-tagline-v59{font-size:6.8pt;}
.recibo-print-v78 .oficina-print-card-grid-v59>div{padding:1.5mm 2mm;}
.recibo-print-v78 .oficina-print-section-v59{margin-top:2mm;}
.recibo-print-v78 .oficina-print-table-v59 th{padding:1mm 1.1mm;}
.recibo-print-v78 .oficina-print-table-v59 td{padding:1.1mm 1.1mm;}
.recibo-print-v78 .recibo-pagamentos-v78{margin-top:2mm;}
.recibo-print-v78 .recibo-resumo-v78{margin-top:2mm;}
.recibo-print-v78 .oficina-print-notes-body-v59{min-height:12mm;}
.recibo-print-v78 .oficina-print-footer-v59{bottom:7mm;}
@media print{
  .recibo-print-v78{width:210mm!important;height:297mm!important;min-height:297mm!important;max-height:297mm!important;margin:0 auto!important;padding:8mm 9mm 7mm!important;overflow:hidden!important;break-inside:avoid!important;page-break-inside:avoid!important;}
  .recibo-print-v78 .oficina-print-table-v59 tr{break-inside:avoid!important;page-break-inside:avoid!important;}
}

/* V60 — Contas a pagar especializada, mantendo o Design System global. */
.system-interface .payable-kpis .receivable-kpi{min-height:100px}
.system-interface .payable-table-panel{overflow:visible}
.system-interface .payable-table td,.system-interface .payable-table th{white-space:nowrap}
.system-interface .payable-table td:first-child{white-space:normal;min-width:210px}
.system-interface .payable-actions{flex-wrap:nowrap}
.system-interface .payable-actions .ui-action,.system-interface .payable-actions .icon-button{flex:0 0 32px;width:32px;height:32px}
.system-interface .payable-detail-kpis{margin-bottom:12px}
.system-interface .payable-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 18px}
.system-interface .payable-detail-grid>div{padding:11px 0;border-bottom:1px solid var(--ui-line);display:grid;gap:4px}
.system-interface .payable-detail-grid>div.wide{grid-column:1/-1}
.system-interface .payable-detail-grid span{font-size:9px;font-weight:800;color:var(--ui-muted);text-transform:uppercase;letter-spacing:.04em}
.system-interface .payable-detail-grid strong,.system-interface .payable-detail-grid a{font-size:11px;color:var(--ui-text)}
.system-interface .payable-form-panel fieldset{margin:0 0 14px;padding:16px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface-soft)}
.system-interface .payable-form-panel legend{padding:0 7px;color:var(--ui-link);font-size:10px;font-weight:900;letter-spacing:.08em}
.system-interface .payable-form-panel .check-field{display:flex;align-items:center;gap:9px;min-height:40px;padding:10px 12px;border:1px solid var(--ui-line);border-radius:9px;background:#fff}
.system-interface .payable-payment-panel{max-width:980px}
.system-interface .payment-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
.system-interface .payment-summary>div{padding:14px;border:1px solid var(--ui-line);border-radius:11px;background:var(--ui-surface-soft);display:grid;gap:5px}
.system-interface .payment-summary span{font-size:9px;font-weight:800;color:var(--ui-muted);text-transform:uppercase}
.system-interface .payment-summary strong{font-size:20px;color:var(--ui-text)}
.system-interface .payment-note{display:grid;grid-template-columns:auto 1fr;gap:9px;margin-top:13px;padding:11px 13px;border:1px solid #b9daf8;border-radius:10px;background:#eef7ff;color:#325472;font-size:10px;line-height:1.5}
.system-interface .payment-note strong{color:#0a66c2}
.system-interface .payable-payment-panel .money-input{display:grid;grid-template-columns:auto 1fr;border:1px solid var(--ui-line);border-radius:9px;overflow:hidden;background:#fff}
.system-interface .payable-payment-panel .money-input strong{display:grid;place-items:center;min-width:42px;background:#eff6fb;color:#12649e;font-size:11px}
.system-interface .payable-payment-panel .money-input input{border:0;border-radius:0;box-shadow:none}
@media(max-width:1000px){.system-interface .payable-detail-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.system-interface .payable-table td,.system-interface .payable-table th{white-space:normal}.system-interface .payment-summary,.system-interface .payable-detail-grid{grid-template-columns:1fr}.system-interface .payable-detail-grid>div.wide{grid-column:auto}.system-interface .payment-note{grid-template-columns:1fr}}


/* V60 — impressão simples do título de contas a pagar. */
.payable-print-document{max-width:185mm;margin:0 auto;padding:12mm;background:#fff;color:#17364f;font-family:var(--ui-font-body,DM Sans,Arial,sans-serif);font-size:10pt}
.payable-print-document header{display:grid;grid-template-columns:1fr auto;gap:16mm;padding-bottom:7mm;border-bottom:2px solid #0c4c75}
.payable-print-document header>div{display:grid;gap:3px}.payable-print-document header>div:last-child{text-align:right}.payable-print-document header strong{font-size:16pt}.payable-print-document header span{font-size:9pt;letter-spacing:.08em;color:#0a66c2;font-weight:900}.payable-print-document header small{font-size:8pt;color:#617a8f}
.payable-print-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid #d6e1e9;border-radius:8px;margin:8mm 0;overflow:hidden}.payable-print-grid>div{padding:6mm;border-bottom:1px solid #e7edf2}.payable-print-grid>div:nth-child(odd){border-right:1px solid #e7edf2}.payable-print-grid span,.payable-print-financial span{display:block;font-size:7pt;color:#788d9e;text-transform:uppercase;font-weight:800;margin-bottom:3px}.payable-print-grid strong{font-size:10pt}.payable-print-financial{display:grid;grid-template-columns:repeat(3,1fr);gap:5mm}.payable-print-financial>div{padding:6mm;border-radius:8px;background:#f4f8fb;border:1px solid #d9e4ec}.payable-print-financial strong{font-size:14pt}.payable-print-document section h2{font-size:10pt;color:#0c4c75;margin:8mm 0 3mm}.payable-print-document section p{min-height:35mm;padding:6mm;border:1px solid #d6e1e9;border-radius:8px;white-space:normal}.payable-print-document footer{display:flex;justify-content:space-between;gap:10mm;margin-top:14mm;padding-top:5mm;border-top:1px solid #d6e1e9;color:#6d8292;font-size:7pt}
@media print{.payable-print-document{max-width:none;margin:0;padding:8mm}.payable-print-document footer{break-inside:avoid}}
@media(max-width:650px){.payable-print-grid,.payable-print-financial,.payable-print-document header{grid-template-columns:1fr}.payable-print-grid>div:nth-child(odd){border-right:0}.payable-print-document header>div:last-child{text-align:left}.payable-print-document footer{flex-direction:column}}

/* V61 — Contas a pagar: ações e formulário alinhados ao Design System. */
.system-interface .payable-actions{align-items:center;gap:5px;min-width:176px}
.system-interface .payable-actions .icon-button{flex:0 0 34px;width:34px;height:34px;border-radius:8px}
.system-interface .payable-actions .icon-button.is-money{background:#e6f8ef;color:#08794e;border-color:#b9e7cf}
.system-interface .payable-actions .icon-button.is-print{background:#f0edff;color:#6650b8;border-color:#d3c9fa}
.system-interface .payable-actions .icon-button.disable{background:#ffe9eb;color:#c43d47;border-color:#ffc2c7}
.system-interface .payable-actions .icon-button:focus-visible{outline:2px solid var(--ui-link);outline-offset:2px}
.system-interface .payable-form-panel .grid-2{row-gap:14px}
.system-interface .payable-form-panel .field-full{grid-column:1/-1}
.system-interface .payable-form-panel input[type=file]{padding:9px 10px;background:var(--ui-surface)}
.system-interface .payable-form-panel .check-field input{accent-color:var(--ui-link)}
.system-interface .payable-form-panel .payment-preview-note{display:flex;align-items:center;gap:10px;margin-top:-4px;padding:10px 12px;border-radius:10px;background:var(--ui-surface);border:1px solid var(--ui-line);color:var(--ui-muted);font-size:11px}
.system-interface .payable-table td{vertical-align:middle}
.system-interface .payable-table .cell-note{display:block;margin-top:3px;color:var(--ui-muted);font-size:10px}
@media(max-width:800px){.system-interface .payable-actions{min-width:0}.system-interface .payable-actions .icon-button{flex-basis:32px;width:32px;height:32px}}

/* V61 — estilos compartilhados de páginas públicas e relatórios financeiros. */
.plans-site-header-v49-5{background:#071b33;color:#fff;border-bottom-color:rgba(255,255,255,.08)}
.plans-site-header-v49-5 .plans-site-logo{height:82px;object-fit:contain;object-position:left center}
.plans-site-header-v49-5 .plans-client-link{background:#fff;color:#1167d8}
.financial-print-page{margin:0;background:#edf3f8;color:#17364f;font-family:var(--ui-font-body,DM Sans,Arial,sans-serif)}
.financial-print-document{width:min(210mm,calc(100% - 32px));margin:24px auto;padding:16mm;background:#fff;box-sizing:border-box;box-shadow:0 10px 30px rgba(12,39,63,.10);border:1px solid #dbe6ee}
.financial-print-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:10mm;border-bottom:2px solid var(--ui-blue,#1167d8)}
.financial-print-header h1{margin:3px 0;font-family:var(--ui-font-heading,Manrope,Arial,sans-serif);font-size:24px}
.financial-print-header p{margin:0;color:var(--ui-muted,#617a8f);font-size:12px}
.financial-print-table{min-width:0;margin-top:10mm;width:100%}
.financial-print-total{text-align:right;margin-top:8mm;font-size:16px;font-weight:900;color:var(--ui-text,#17364f)}
.financial-print-footer{display:flex;justify-content:space-between;gap:20px;margin-top:18mm;padding-top:5mm;border-top:1px solid #dbe6ee;color:#6d8292;font-size:10px}
@media print{.financial-print-page{background:#fff}.financial-print-document{width:100%;margin:0;padding:8mm;box-shadow:none;border:0}.print-only-hide{display:none!important}.financial-print-footer{break-inside:avoid}}
/* V61 — layout de cadastro financeiro baseado no padrão de inserção de registro. */
.system-interface .payable-entry-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--ui-space-4)}
.system-interface .payable-entry-grid>div{min-width:0}
.system-interface .payable-span-3{grid-column:span 3}.system-interface .payable-span-4{grid-column:span 4}.system-interface .payable-span-5{grid-column:span 5}.system-interface .payable-span-6{grid-column:span 6}.system-interface .payable-span-12{grid-column:1/-1}
.system-interface .payable-entry-grid .check-field{height:auto;min-height:44px;align-self:start;box-sizing:border-box;margin-top:0}
.system-interface .payable-entry-grid input[type=number]{font-variant-numeric:tabular-nums}
@media(max-width:900px){.system-interface .payable-entry-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.system-interface .payable-span-5,.system-interface .payable-span-4,.system-interface .payable-span-3{grid-column:span 3}.system-interface .payable-span-6{grid-column:span 6}.system-interface .payable-span-12{grid-column:1/-1}}
@media(max-width:650px){.system-interface .payable-entry-grid{grid-template-columns:1fr}.system-interface .payable-entry-grid>div{grid-column:1!important}}
.financeiro-estorno-motivo{max-width:180px}

/* V62 — checkbox de recorrência não ocupa a altura de outros campos da grade. */
.system-interface .payable-entry-grid #cp-observacoes{display:block;width:100%;min-height:150px;box-sizing:border-box;line-height:1.45;resize:vertical}
.system-interface .payable-entry-grid .check-field{justify-content:flex-start;white-space:normal}
.system-interface .payable-entry-grid .check-field input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:0}
.system-interface .payable-entry-grid .check-field span{line-height:1.35}
@media(max-width:650px){.system-interface .payable-entry-grid .check-field{min-height:44px}}

/* V63 — identificação dos títulos e confirmação de exclusão com modal premium. */
.system-interface .payable-table .title-code{display:inline-flex;align-items:center;padding:5px 8px;border-radius:7px;background:#eef5ff;border:1px solid #cfe1fb;color:#0f6fe5;font-size:11px;letter-spacing:.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.system-interface .document-code-badge{display:inline-block;padding:2px 7px;border-radius:999px;background:#edf5ff;color:#0f6fe5;font-size:10px;letter-spacing:.03em}
.payable-delete-modal{z-index:2000}
.payable-delete-modal .delete-confirm-card{width:min(500px,100%);padding:28px;border:1px solid #d8e5f2;text-align:center}
.delete-confirm-icon{width:62px;height:62px;margin:0 auto 14px;border-radius:18px;display:grid;place-items:center;background:#fff0f2;color:#d9364f;border:1px solid #ffd0d7;box-shadow:0 10px 26px rgba(128,28,44,.12)}
.delete-confirm-icon svg{width:27px;height:27px}
.delete-confirm-card .delete-kicker{display:inline-flex;border-left-color:#e85b68;color:#b52b3e;margin-bottom:8px}
.delete-confirm-card h2{margin:5px 0 8px;font-size:22px}
.delete-confirm-card p{margin:0 auto 18px;max-width:390px;color:var(--muted);line-height:1.55}
.delete-confirm-summary{display:grid;grid-template-columns:90px 1fr;gap:9px 14px;text-align:left;padding:14px 15px;margin:0 0 20px;border-radius:12px;background:#f7fafc;border:1px solid #e1eaf1}
.delete-confirm-summary small{color:#7a8e9f;font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:800}
.delete-confirm-summary strong{color:var(--ink);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.delete-confirm-actions{display:flex;justify-content:flex-end;gap:10px}
.delete-confirm-actions .danger{background:#d9364f;border-color:#d9364f;color:#fff}
.delete-confirm-actions .danger:hover{background:#be2d43;border-color:#be2d43}
@media(max-width:600px){.payable-delete-modal .delete-confirm-card{padding:22px}.delete-confirm-actions{flex-direction:column-reverse}.delete-confirm-actions button{width:100%}}


/* V78.21 — Checklist: confirmação visual de exclusão, substituindo o confirm nativo do navegador. */
.checklist-delete-modal{z-index:2100}
.checklist-delete-modal .delete-confirm-card{width:min(520px,calc(100vw - 28px));padding:30px;border:1px solid #d8e5f2;text-align:center;box-shadow:0 24px 70px rgba(7,35,62,.25)}
.checklist-delete-modal .delete-confirm-icon{width:66px;height:66px;margin:0 auto 14px;border-radius:20px;display:grid;place-items:center;background:#fff2f4;color:#d9364f;border:1px solid #ffcbd3;box-shadow:0 10px 26px rgba(128,28,44,.12)}
.checklist-delete-modal .delete-confirm-icon svg{width:28px;height:28px}
.checklist-delete-modal .delete-kicker{display:inline-flex;border-left-color:#e85b68;color:#b52b3e;margin-bottom:8px}
.checklist-delete-modal .delete-confirm-card h2{margin:5px 0 8px;font-size:23px;color:#102b47}
.checklist-delete-modal .delete-confirm-lead{margin:0 auto 18px;max-width:420px;color:#687e93;line-height:1.55;font-size:12px}
.checklist-delete-modal .delete-confirm-lead strong{color:#526b82}
.checklist-delete-modal .delete-confirm-summary{position:relative;display:grid;gap:11px;text-align:left;padding:16px 17px 43px;margin:0 0 12px;border-radius:13px;background:#f7fafc;border:1px solid #dce7ef}
.checklist-delete-modal .delete-summary-row{display:grid;grid-template-columns:88px minmax(0,1fr);gap:14px;align-items:center}
.checklist-delete-modal .delete-confirm-summary small{color:#7a8e9f;font-size:9px;text-transform:uppercase;letter-spacing:.08em;font-weight:900}
.checklist-delete-modal .delete-confirm-summary strong{color:#173650;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.checklist-delete-modal .delete-safe-badge{position:absolute;left:17px;bottom:13px;font-size:9px;font-weight:900;color:#21834b;background:#effaf3;border:1px solid #cbead6;border-radius:999px;padding:4px 8px}
.checklist-delete-modal .delete-confirm-warning{display:flex;align-items:flex-start;gap:10px;text-align:left;padding:11px 12px;margin-bottom:19px;border:1px solid #f1d39b;background:#fffaf0;border-radius:11px}
.checklist-delete-modal .delete-confirm-warning>span{width:22px;height:22px;flex:0 0 22px;display:grid;place-items:center;border-radius:50%;background:#f2a51a;color:#fff;font-size:12px;font-weight:900}
.checklist-delete-modal .delete-confirm-warning strong{display:block;color:#7a5316;font-size:10px}
.checklist-delete-modal .delete-confirm-warning p{margin:2px 0 0!important;max-width:none!important;color:#8a6b37!important;font-size:9px!important;line-height:1.4!important}
.checklist-delete-modal .delete-confirm-actions{display:flex;justify-content:flex-end;gap:10px}
.checklist-delete-modal .delete-confirm-actions .danger{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#d9364f;border-color:#d9364f;color:#fff;min-width:180px}
.checklist-delete-modal .delete-confirm-actions .danger svg{width:15px;height:15px}
.checklist-delete-modal .delete-confirm-actions .danger:hover{background:#be2d43;border-color:#be2d43}
.checklist-delete-modal .delete-confirm-actions .danger:disabled{opacity:.7;cursor:wait}
@media(max-width:600px){.checklist-delete-modal .delete-confirm-card{padding:23px 18px}.checklist-delete-modal .delete-confirm-actions{flex-direction:column-reverse}.checklist-delete-modal .delete-confirm-actions button{width:100%;min-width:0}.checklist-delete-modal .delete-summary-row{grid-template-columns:76px minmax(0,1fr)}}

/* V64 — Contas a pagar: código numérico e filtros/tabela alinhados. */
.system-interface .payable-table{min-width:1120px;}
.system-interface .payable-table .payable-code-col{width:82px;min-width:82px;}
.system-interface .payable-table td:first-child{min-width:82px;width:82px;white-space:nowrap;}
.system-interface .payable-table .title-code{
    min-width:30px;
    justify-content:center;
    padding:5px 9px;
    border-radius:7px;
    font-size:12px;
    letter-spacing:0;
}
.system-interface .payable-table th,
.system-interface .payable-table td{vertical-align:middle;}
.system-interface .payable-actions{justify-content:flex-start;}

/* V66 — Central de relatórios: navegação visual e impressão A4. */
.system-interface .reports-home-header{margin-bottom:14px}
.system-interface .reports-home-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;margin-bottom:16px;border-left:4px solid #55c2df}
.system-interface .reports-home-intro>div{display:flex;align-items:center;gap:14px;min-width:0}
.system-interface .reports-home-icon,.system-interface .report-card-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:11px;background:#eaf5ff;color:#0f6fe5;border:1px solid #cfe3f8}
.system-interface .reports-home-icon .app-icon,.system-interface .report-card-icon .app-icon{width:21px;height:21px}
.system-interface .reports-home-intro strong{display:block;color:var(--ui-text,#17364f);font-size:15px}
.system-interface .reports-home-intro p{margin:4px 0 0;color:var(--ui-muted,#657d91);font-size:11px;line-height:1.5}
.system-interface .reports-count{padding:7px 11px;border-radius:999px;background:#f1f6fa;color:#61798d;font-size:10px;font-weight:800;white-space:nowrap}
.system-interface .reports-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.system-interface .report-card{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:13px;align-items:start;min-height:132px;padding:18px;text-decoration:none;color:inherit;background:#fff;border:1px solid #dce7f0;border-radius:12px;box-shadow:0 5px 18px rgba(19,56,82,.04);transition:.18s ease}
.system-interface .report-card:hover{transform:translateY(-2px);border-color:#9dc9ee;box-shadow:0 10px 25px rgba(19,76,119,.10)}
.system-interface .report-card-category{display:inline-block;margin-bottom:5px;color:#0f6fe5;font-size:8px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.system-interface .report-card h2{margin:0;color:#17364f;font-size:14px;line-height:1.3}
.system-interface .report-card p{margin:6px 0 0;color:#71869a;font-size:10px;line-height:1.45}
.system-interface .report-card-arrow{align-self:center;color:#0f6fe5;font-size:19px;font-weight:700}
.system-interface .report-menu-home{margin-bottom:6px;border-bottom:1px solid #e2ebf2;border-radius:8px!important}
.system-interface .report-menu-home strong{color:#0f6fe5}
.system-interface .report-print-footer{display:none}
@media(max-width:1150px){.system-interface .reports-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.system-interface .reports-home-intro{align-items:flex-start;flex-direction:column}.system-interface .reports-card-grid{grid-template-columns:1fr}}

@media print{
    @page{size:A4 portrait;margin:10mm 9mm 12mm}
    .system-interface .reports-home-header,.system-interface .reports-home-intro,.system-interface .reports-card-grid{display:none!important}
    .system-interface .report-print-footer{display:flex;justify-content:space-between;align-items:flex-end;gap:12mm;margin-top:8mm;padding-top:4mm;border-top:1px solid #d7e2eb;color:#647a8d;font-size:7.5pt;break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact}
    .system-interface .report-print-footer>div{display:grid;gap:1mm}
    .system-interface .report-print-footer strong{color:#17364f;font-size:9pt}
    .system-interface .report-print-footer span{max-width:115mm}
    .system-interface .report-layout{margin:0!important}
    .system-interface .report-layout>section{width:100%!important}
    .system-interface .report-summary{margin-bottom:5mm!important}
    .system-interface .report-summary article{padding:3mm!important}
    .system-interface .report-summary span{font-size:7pt!important}
    .system-interface .report-summary strong{font-size:10pt!important}
    .system-interface .report-table th{padding:2.5mm 2mm!important;font-size:7pt!important}
    .system-interface .report-table td{padding:2.2mm 2mm!important;font-size:7.5pt!important}
}

/* V67 — Contas a receber: cadastro completo, ações e confirmação de exclusão */
.system-interface .receivable-entry-grid{align-items:start}
.system-interface .receivable-entry-grid .check-field{min-height:44px;height:auto;align-self:start;display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:var(--ui-surface);box-sizing:border-box}
.system-interface .receivable-entry-grid .check-field input{margin:0;width:18px;height:18px;flex:0 0 18px}
.system-interface .receivable-entry-grid .check-field span{font-weight:800;line-height:1.35}
.system-interface .receivable-filter-search{flex:1 1 330px}
.system-interface .receivable-filters{align-items:end}
.system-interface .receivable-filters>label{min-width:150px}
.system-interface .receivable-table-panel{overflow:hidden}
.system-interface .receivable-table-wrap{overflow-x:auto}
.system-interface .receivable-table{min-width:1260px}
.system-interface .receivable-table th:first-child,.system-interface .receivable-table td:first-child{width:78px}
.system-interface .title-code{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:28px;padding:0 9px;border:1px solid #bcdcff;border-radius:8px;background:#edf6ff;color:#0868d1;font-weight:900;font-size:10px;line-height:1}
.system-interface .receivable-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.system-interface .receivable-actions .icon-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;padding:0;border-radius:9px}
.system-interface .receivable-actions .icon-button .app-icon{width:16px;height:16px}
.system-interface .receivable-actions .receive{background:#e7f8ef;color:#14855b}
.system-interface .receivable-actions .delete{background:#fff0f1;color:#d33b48;border:1px solid #ffd0d5}
.system-interface .receivable-actions .edit{background:#edf6ff;color:#0870d8}
.system-interface .receivable-actions .view{background:#fff6df;color:#b46c09}
.system-interface .receivable-actions .pdf{background:#f0ebff;color:#6e50c5}
.system-interface .inline-action-form{display:inline-flex;margin:0}
.system-interface .receivable-view-card{padding:0;overflow:hidden}
.system-interface .receivable-view-card .panel-title{padding:14px 16px 9px}
.system-interface .receivable-view-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--ui-line);border-top:1px solid var(--ui-line)}
.system-interface .receivable-view-grid>div{display:grid;gap:5px;min-width:0;padding:13px 15px;background:var(--ui-surface)}
.system-interface .receivable-view-grid span{color:var(--ui-muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.system-interface .receivable-view-grid strong{color:var(--ui-text);font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.system-interface .receivable-view-grid .view-text{font-weight:500}
.system-interface .receivable-baixa-panel{max-width:980px;margin:0 auto}
.system-interface .payment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.system-interface .payment-grid .payment-field-full{grid-column:1/-1}
.system-interface .receivable-delete-modal{z-index:1200}
.system-interface .receivable-delete-modal .app-modal-backdrop{position:absolute;inset:0;background:rgba(5,25,45,.62);backdrop-filter:blur(3px)}
.system-interface .receivable-delete-modal .app-modal-card{position:relative;z-index:1;width:min(480px,calc(100vw - 32px));overflow:hidden;border:1px solid var(--ui-line);border-radius:18px;background:var(--ui-surface);box-shadow:0 24px 70px rgba(5,30,55,.28)}
.system-interface .receivable-delete-modal>section{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}
.system-interface .receivable-delete-modal header{display:flex;align-items:flex-start;gap:12px;padding:20px;border-bottom:1px solid var(--ui-line);background:linear-gradient(135deg,#fff8f8,#fff)}
.system-interface .receivable-delete-modal header h2{margin:4px 0 2px;color:var(--ui-text);font-size:21px}
.system-interface .receivable-delete-modal header p{margin:0;color:var(--ui-muted);font-size:11px}
.system-interface .receivable-delete-modal .delete-modal-icon{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#fff0f1;color:#d33b48;flex:0 0 42px}
.system-interface .receivable-delete-modal .delete-modal-icon .app-icon{width:20px;height:20px}
.system-interface .receivable-delete-modal .app-modal-close{margin-left:auto;width:34px;height:34px;border:0;border-radius:9px;background:#f1f5f8;color:#61788b;font-size:20px;cursor:pointer}
.system-interface .receivable-delete-modal .app-modal-body{padding:20px}
.system-interface .receivable-delete-modal .app-modal-body>p{margin:0 0 14px;color:var(--ui-text);font-size:13px;font-weight:700}
.system-interface .delete-summary{display:grid;grid-template-columns:80px 1fr;gap:8px 12px;padding:13px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface-soft);margin-bottom:18px}
.system-interface .delete-summary span{color:var(--ui-muted);font-size:9px;font-weight:800;text-transform:uppercase}
.system-interface .delete-summary strong{color:var(--ui-text);font-size:11px;overflow-wrap:anywhere}
.system-interface .delete-modal-actions{display:flex;justify-content:flex-end;gap:8px}
@media(max-width:900px){.system-interface .receivable-view-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.system-interface .payment-grid{grid-template-columns:1fr}.system-interface .payment-grid .payment-field-full{grid-column:auto}.system-interface .receivable-baixa-panel{max-width:none}.system-interface .receivable-filters>label{min-width:0;flex:1 1 180px}}
@media(max-width:620px){.system-interface .receivable-view-grid{grid-template-columns:1fr}.system-interface .delete-modal-actions{flex-direction:column-reverse}.system-interface .delete-modal-actions .button{width:100%}}
[data-theme="escuro"] .system-interface .receivable-delete-modal header{background:#2a2022}
[data-theme="escuro"] .system-interface .receivable-delete-modal .app-modal-close{background:#303746;color:#c9d4df}

.system-interface .receivable-actions .icon-button.is-disabled{opacity:.38;cursor:not-allowed;filter:grayscale(.4)}

/* V70 — cadastro completo de produtos */
.product-catalog-panel{margin-top:24px}.product-photo-field{display:grid;grid-template-columns:150px minmax(0,1fr);gap:22px;align-items:center}.product-photo-preview{width:150px;height:150px;border:1px dashed var(--ui-line,#cbd9e8);border-radius:14px;background:#f6f9fc;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#7b8fa4;font-size:13px}.product-photo-preview img{width:100%;height:100%;object-fit:contain}.product-photo-field small{display:block;margin-top:6px;color:#7b8fa4;font-size:11px}/* V77.22 — cadastro rápido de produto com o mesmo padrão do cadastro completo de Estoque/Produtos: 2 colunas, área interna rolável e rodapé fixo. */
.modal-card-product{width:min(1080px,calc(100vw - 48px));height:min(900px,calc(100vh - 32px));max-height:calc(100vh - 32px);padding:0;overflow:hidden;display:flex;flex-direction:column;border:1px solid #cadbea;border-radius:18px;background:var(--ui-surface,#fff)}
/* Cadastro de serviço: mesma janela, sem rolagem interna e sem reaproveitar campos do produto. */
.modal-card-product.is-service-mode{height:auto;max-height:calc(100vh - 32px)}
.modal-card-product.is-service-mode .modal-product-body{overflow:visible;overflow-y:visible;scrollbar-width:none;padding-top:28px}
.modal-card-product.is-service-mode .modal-product-body::-webkit-scrollbar{display:none;width:0;height:0}
.modal-card-product.is-service-mode [data-item-produto]{display:none!important}
.modal-card-product.is-service-mode .service-modal-grid{display:grid!important;padding-top:2px;gap:18px 18px}
.modal-card-product.is-service-mode .service-modal-grid>.field-span-2:first-of-type{margin-top:8px}
.modal-card-product.is-service-mode .service-modal-grid .field-span-2{margin-bottom:2px}
.modal-card-product.is-service-mode .service-modal-grid textarea{margin-top:4px}
@media(max-width:900px){.modal-card-product.is-service-mode{height:auto;max-height:calc(100vh - 22px)}}
@media(max-width:600px){.modal-card-product.is-service-mode{height:calc(100vh - 16px);max-height:calc(100vh - 16px)}.modal-card-product.is-service-mode .modal-product-body{overflow-y:auto;scrollbar-width:auto;padding-top:18px}.modal-card-product.is-service-mode .modal-product-body::-webkit-scrollbar{display:block;width:12px;height:auto}.modal-card-product.is-service-mode .modal-product-body::-webkit-scrollbar-track{background:#eef4f9;border-left:1px solid #e0e8f0}.modal-card-product.is-service-mode .modal-product-body::-webkit-scrollbar-thumb{background:#9eb5ca;border-radius:10px;border:3px solid #eef4f9}}
.modal-card-product .modal-header{display:flex;align-items:flex-start;justify-content:space-between;flex:0 0 auto;margin:0;padding:20px 24px;background:linear-gradient(135deg,var(--ui-navy,#08294a),var(--ui-blue,#0f6fe5));color:#fff;border-bottom:1px solid rgba(255,255,255,.12)}
.modal-card-product .modal-header-main{min-width:0}.modal-card-product .modal-header h2{color:#fff;margin:5px 0 3px;font-size:22px}.modal-card-product .modal-header p{margin:0;color:#dbeaff;font-size:12px;line-height:1.45}.modal-card-product .modal-header .page-kicker{display:inline-flex;align-items:center;min-height:22px;padding:4px 9px;border:1px solid rgba(171,232,255,.7);border-left:3px solid #9fe24a;border-radius:6px;background:rgba(5,50,96,.48);color:#d9f3ff;font-size:10px;font-weight:900;letter-spacing:.12em;line-height:1.2;text-transform:uppercase}
.modal-card-product form{min-height:0;display:flex;flex-direction:column;flex:1;padding:0}
.modal-product-body{min-height:0;overflow-y:auto;overflow-x:hidden;padding:22px 24px 18px;scrollbar-gutter:stable both-edges}
.modal-product-body::-webkit-scrollbar{width:12px}.modal-product-body::-webkit-scrollbar-track{background:#eef4f9;border-left:1px solid #e0e8f0}.modal-product-body::-webkit-scrollbar-thumb{background:#9eb5ca;border-radius:10px;border:3px solid #eef4f9}.modal-product-body{scrollbar-width:auto;scrollbar-color:#9eb5ca #eef4f9}
.product-modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px;align-items:start}.product-modal-grid>div{min-width:0}.product-modal-grid .field-span-2{grid-column:1/-1}.product-modal-grid label{display:block;margin-bottom:6px}.product-modal-grid small{display:block;color:#7b8fa4;margin-top:5px;font-size:11px}.modal-product-footer{flex:0 0 auto;padding:12px 24px;border-top:1px solid #dbe5ee;background:#fbfdff;box-shadow:0 -8px 18px rgba(20,58,92,.05)}
.modal-product-footer .modal-feedback{margin:0 0 8px;min-height:18px}.modal-product-footer .form-actions{display:flex;justify-content:flex-end;gap:10px;margin:0}.modal-feedback.success{color:#087f52}.modal-feedback.error{color:#c62828}.product-modal-grid>div{min-width:0}.product-modal-grid .field-span-2{grid-column:span 2}.product-modal-grid label{display:block;margin-bottom:6px}.product-modal-grid small{display:block;color:#7b8fa4;margin-top:5px;font-size:11px}.modal-feedback.success{color:#087f52}.modal-feedback.error{color:#c62828}@media(max-width:900px){.modal-card-product{width:min(980px,calc(100vw - 28px));height:min(900px,calc(100vh - 22px));max-height:calc(100vh - 22px)}.modal-product-body{padding:18px}.modal-product-footer{padding:12px 18px}}@media(max-width:600px){.product-photo-field{grid-template-columns:1fr}.product-modal-grid{grid-template-columns:1fr}.product-modal-grid .field-span-2{grid-column:auto}.modal-card-product{width:calc(100vw - 16px);height:calc(100vh - 16px);max-height:calc(100vh - 16px);border-radius:14px}.modal-card-product .modal-header{padding:16px 18px}.modal-card-product .modal-header h2{font-size:19px}.modal-product-body{padding:16px 14px}.modal-product-footer{padding:10px 14px}.modal-product-footer .form-actions{flex-direction:column-reverse}.modal-product-footer .form-actions .button,.modal-product-footer .form-actions button{width:100%}}

.purchase-extra-panel{margin-top:16px}.purchase-extra-grid{display:grid;grid-template-columns:1fr;gap:15px}.purchase-extra-panel small{display:block;color:#7b8fa4;margin-top:5px;font-size:11px}.module-items-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}@media(max-width:720px){.module-items-actions{width:100%}.module-items-actions .button{flex:1}}

.purchase-entry-summary{margin-top:20px}.purchase-entry-grid{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(280px,1.2fr);gap:16px;align-items:end}.purchase-total-highlight,.purchase-file-field{border:1px solid var(--ui-line,#cbd9e8);background:#f7fbff;border-radius:14px;padding:16px}.purchase-total-highlight span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#6c8096}.purchase-total-highlight strong{display:block;margin-top:6px;font-size:24px;color:#0b3a67}.purchase-total-highlight small,.purchase-file-field small{display:block;margin-top:6px;color:#7b8fa4;font-size:11px}.purchase-file-field label{display:block;margin-bottom:6px}.purchase-current-file{grid-column:1/-1;padding:10px 12px;border-radius:10px;background:#eef7ff;color:#355b7e;font-size:12px}@media(max-width:700px){.purchase-entry-grid{grid-template-columns:1fr}}

/* V72: bloco visual de rentabilidade e custos de produto */
.product-rentability-note{grid-column:1/-1;padding:10px 12px;border:1px solid #cfe0f2;border-radius:10px;background:#f5f9fd;color:#5c728b;font-size:.82rem;line-height:1.45;margin:0 0 8px}.product-rentability-note strong{color:#153b61}.form-panel form:has(input[name="markup_percentual"]) .grid-2>div:has(input[name="custo_total"]),.form-panel form:has(input[name="markup_percentual"]) .grid-2>div:has(input[name="lucro_valor"]),.form-panel form:has(input[name="markup_percentual"]) .grid-2>div:has(input[name="lucro_percentual"]),.form-panel form:has(input[name="markup_percentual"]) .grid-2>div:has(input[name="markup_fator"]){background:#f8fbff;border:1px solid #d9e8f6;border-radius:10px;padding:10px 12px}.product-modal-grid{align-items:start}.product-modal-grid>div:has(input[name="custo_total"]),.product-modal-grid>div:has(input[name="lucro_valor"]),.product-modal-grid>div:has(input[name="lucro_percentual"]),.product-modal-grid>div:has(input[name="markup_percentual"]),.product-modal-grid>div:has(input[name="markup_fator"]){background:#f8fbff;border:1px solid #d9e8f6;border-radius:10px;padding:9px 10px}.product-modal-grid input[readonly],.form-panel input[readonly]{background:#f2f7fc;color:#244767}.product-modal-grid input[name="lucro_percentual"],.product-modal-grid input[name="markup_percentual"]{font-weight:700}.product-modal-grid input[name="lucro_valor"]{font-weight:700}

/* V75: PDV e melhorias de homologação */


/* V75: recibo PDV */
@page{size:A4 portrait;margin:10mm}body{font-family:Arial,sans-serif;color:#10263f}.receipt{max-width:760px;margin:0 auto;border:1px solid #d5e2ed}.receipt-head{display:flex;justify-content:space-between;gap:18px;padding:22px;border-bottom:3px solid #0a5c8b}.receipt-head h1{margin:4px 0;font-size:26px}.receipt-head .number{font-size:22px;font-weight:800;background:#0a5c8b;color:#fff;padding:9px 14px;border-radius:8px}.receipt-body{padding:20px}.receipt-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}.receipt-card{border:1px solid #d5e2ed;border-radius:10px;padding:12px}.receipt-card small{display:block;font-size:9px;color:#72879a;text-transform:uppercase;letter-spacing:.08em}.receipt table{width:100%;border-collapse:collapse}.receipt th,.receipt td{padding:9px;border-bottom:1px solid #dce6ee;text-align:left}.receipt th{font-size:10px;text-transform:uppercase;background:#eef5fa}.right{text-align:right!important}.receipt-total{display:flex;justify-content:flex-end;margin-top:16px}.receipt-total div{min-width:260px;padding:16px;background:#e9f5fb;border-radius:10px}.receipt-total strong{font-size:26px}.receipt-note{margin-top:22px;padding:14px;background:#f6f9fb;border-left:4px solid #72c800}.receipt-foot{margin-top:30px;padding:15px 20px;background:#0a5c8b;color:#fff;font-size:11px;display:flex;justify-content:space-between}.print-hide{margin:15px auto;max-width:760px;text-align:right}@media print{.print-hide{display:none}}


.receipt-company-meta{margin-top:3px;color:#6f8496;font-size:9pt}.receipt-document-label{display:block;text-align:right;margin-top:8px;color:#6f8496;font-size:8pt}

/* V76.2 — entradas decimais em padrão brasileiro. */
.systenova-decimal-input{font-variant-numeric:tabular-nums;text-align:right;}
.systenova-decimal-input::placeholder{color:#9aaabd;}

/* V76.3 — Ordenação global das tabelas (preservada na V76.5). */
.systenova-sortable-table thead th.is-sortable{padding:0!important;vertical-align:middle}
.systenova-sortable-table .systenova-table-sort-button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:40px;margin:0;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:inherit;box-shadow:none;font:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;text-align:left;text-transform:inherit;cursor:pointer;transition:background-color .18s ease,color .18s ease}
.systenova-sortable-table .systenova-table-sort-button:hover{transform:none;background:color-mix(in srgb,var(--ui-link, var(--blue)) 7%,transparent);color:var(--ui-link,var(--blue))}
.systenova-sortable-table .systenova-table-sort-button:focus-visible{outline:2px solid var(--ui-link,var(--blue));outline-offset:-2px}
.systenova-sortable-table th.is-sort-active .systenova-table-sort-button{color:var(--ui-link,var(--blue));background:color-mix(in srgb,var(--ui-link,var(--blue)) 8%,transparent)}
.systenova-sort-indicator{display:inline-grid;place-items:center;flex:0 0 20px;width:20px;height:20px;border-radius:5px;color:var(--ui-muted,var(--muted));font-size:13px;line-height:1;font-weight:800}
.systenova-sortable-table th.is-sort-active .systenova-sort-indicator{background:color-mix(in srgb,var(--ui-link,var(--blue)) 13%,transparent);color:var(--ui-link,var(--blue))}
[data-theme="escuro"] .systenova-sortable-table .systenova-table-sort-button:hover,[data-theme="escuro"] .systenova-sortable-table th.is-sort-active .systenova-table-sort-button{background:color-mix(in srgb,var(--ui-link,var(--blue)) 14%,transparent)}
@media(max-width:760px){.workflow-status-grid{grid-template-columns:1fr}.workflow-status-form button{width:100%}}
@media(max-width:760px){.systenova-sortable-table .systenova-table-sort-button{padding-inline:8px}.systenova-sort-indicator{flex-basis:18px;width:18px}}
@media print{.systenova-table-sort-button{color:inherit!important;background:transparent!important}.systenova-sort-indicator{display:none!important}}

/* V76.9 — confirmação visual para alteração de status da Ordem de Serviço. */
.workflow-confirm-card{width:min(520px,100%);padding:0;overflow:hidden;border:1px solid #d8e4ef}.workflow-confirm-card>header{margin:0;padding:20px 24px;background:linear-gradient(135deg,var(--ui-navy,#08294a),var(--ui-blue,#0f6fe5));color:#fff;border-bottom:0}.workflow-confirm-card>header h2{margin:8px 0 3px;color:#fff;font-size:21px}.workflow-confirm-card>header p{margin:0;color:#dbeaff;font-size:12px}.workflow-confirm-card>header .page-kicker{display:inline-flex;align-items:center;min-height:22px;padding:4px 9px;border:1px solid rgba(171,232,255,.7);border-left:3px solid #9fe24a;border-radius:6px;background:rgba(5,50,96,.48);color:#d9f3ff;font-size:10px;font-weight:900;letter-spacing:.12em;line-height:1.2;text-transform:uppercase}.workflow-confirm-body{padding:22px 24px;background:#fff}.workflow-confirm-status{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border:1px solid #cfe0ef;border-radius:11px;background:#f5f9fd;margin-bottom:15px}.workflow-confirm-status span{font-size:11px;color:#6d8297;text-transform:uppercase;letter-spacing:.06em}.workflow-confirm-status strong{color:#0f6fe5;font-size:14px}.workflow-confirm-body>p{margin:0;color:#334f69;font-size:13px;line-height:1.55}.workflow-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.workflow-confirm-actions .button{min-width:120px}.workflow-confirm-actions .button-outline{border-color:#b9cee2;color:#155b92;background:#fff}.workflow-confirm-actions .button-outline:hover{background:#eef6fc;border-color:#8db5d6}.workflow-confirm-actions .button:not(.button-outline){background:#0f6fe5;color:#fff}.workflow-confirm-actions .button:not(.button-outline):hover{background:#095dbf}
[data-theme="escuro"] .workflow-confirm-card{background:#202a38;border-color:#41536a}[data-theme="escuro"] .workflow-confirm-body{background:#202a38}[data-theme="escuro"] .workflow-confirm-status{background:#26384b;border-color:#415a72}[data-theme="escuro"] .workflow-confirm-status span{color:#9fb4c9}[data-theme="escuro"] .workflow-confirm-status strong{color:#78b8ff}[data-theme="escuro"] .workflow-confirm-body>p{color:#d2deea}[data-theme="escuro"] .workflow-confirm-actions .button-outline{background:#26384b;border-color:#506b84;color:#cfe6ff}

/* V77.1 — Destaque visual do painel "Próxima etapa" da Ordem de Serviço. */
.workflow-panel{position:relative;overflow:hidden;border:1px solid #c8dced;background:linear-gradient(180deg,#ffffff 0%,#f8fbfe 100%);box-shadow:0 8px 24px rgba(16,55,91,.07)}
.workflow-panel::before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(180deg,#0f6fe5 0%,#74c800 100%)}
.workflow-panel .panel-title{padding:4px 2px 14px}
.workflow-panel .panel-title h2{font-size:20px;color:#08294a;margin-bottom:5px}
.workflow-panel .panel-title p{font-size:12px;color:#637b91;margin:0}
.workflow-status-form{display:grid;gap:14px;padding:17px;border:1px solid #cfe0ef;border-radius:14px;background:#f5f9fd}
.workflow-status-grid{display:grid;grid-template-columns:minmax(210px,.72fr) minmax(320px,1.28fr);gap:13px;align-items:stretch}
.workflow-current-status,.workflow-select-field,.workflow-observation-field{border:1px solid #d3e2ee;border-radius:12px;background:#fff;padding:13px 14px;box-shadow:0 2px 7px rgba(20,65,100,.04)}
.workflow-current-status{display:flex;flex-direction:column;justify-content:center;min-height:84px;background:linear-gradient(135deg,#eef6ff,#ffffff);border-left:4px solid #0f6fe5}
.workflow-current-status span{font-size:10px;font-weight:800;color:#6b8298;letter-spacing:.08em;text-transform:uppercase;margin-bottom:7px}
.workflow-current-status strong{align-self:flex-start;font-size:14px;padding:7px 11px}
.workflow-select-field{min-height:84px}
.workflow-select-field label,.workflow-observation-field label{display:block;margin-bottom:8px;font-size:12px;font-weight:800;color:#173b5b}
.workflow-select-field select{height:44px;border:2px solid #a9c9e7;border-radius:9px;background:#fff;color:#163a59;font-weight:700;box-shadow:0 0 0 3px rgba(15,111,229,.05)}
.workflow-select-field select:focus{border-color:#0f6fe5;box-shadow:0 0 0 3px rgba(15,111,229,.12)}
.workflow-observation-field{grid-column:1 / -1}
.workflow-observation-field input{height:42px}
.workflow-submit-field{grid-column:1 / -1;display:flex;justify-content:flex-end}
.workflow-submit-field .button{min-width:210px;min-height:44px;font-weight:800;box-shadow:0 6px 14px rgba(15,111,229,.16)}
.workflow-submit-field .button:disabled{box-shadow:none;opacity:.55}
.workflow-help{display:block;padding:2px 3px 0;color:#6b8196;font-size:11px}
.workflow-status-form.is-confirmation{border-color:#9fc8ea;background:linear-gradient(180deg,#f1f8ff,#f8fbfe)}
.workflow-status-form.is-confirmation .workflow-select-field{border-color:#8fbce4;box-shadow:0 0 0 3px rgba(15,111,229,.06)}
@media(max-width:760px){.workflow-status-grid{grid-template-columns:1fr}.workflow-observation-field,.workflow-submit-field{grid-column:auto}.workflow-submit-field .button{width:100%;min-width:0}}
[data-theme="escuro"] .workflow-panel{border-color:#41566c;background:linear-gradient(180deg,#202c3a 0%,#1d2734 100%);box-shadow:none}
[data-theme="escuro"] .workflow-panel .panel-title h2{color:#eef7ff}
[data-theme="escuro"] .workflow-panel .panel-title p{color:#a9bdd0}
[data-theme="escuro"] .workflow-status-form{border-color:#415a72;background:#263442}
[data-theme="escuro"] .workflow-current-status,[data-theme="escuro"] .workflow-select-field,[data-theme="escuro"] .workflow-observation-field{background:#202b38;border-color:#455d73;box-shadow:none}
[data-theme="escuro"] .workflow-current-status{background:linear-gradient(135deg,#20384f,#202b38)}
[data-theme="escuro"] .workflow-current-status span{color:#9fb5c9}
[data-theme="escuro"] .workflow-select-field label,[data-theme="escuro"] .workflow-observation-field label{color:#dbe9f6}
[data-theme="escuro"] .workflow-select-field select{background:#202b38;border-color:#557996;color:#e5f1fb}
[data-theme="escuro"] .workflow-help{color:#a9bdd0}

/* V77.9 — Auditoria administrativa */
.audit-header{margin-bottom:18px}.audit-retention-banner{display:flex;align-items:center;gap:14px;padding:16px 18px;margin-bottom:18px;border:1px solid #cfe4f8;border-left:4px solid #0f6fe5;border-radius:14px;background:linear-gradient(90deg,#f6fbff,#fff);color:#17324d}.audit-retention-banner p{margin:4px 0 0;color:#69819a;font-size:13px}.audit-retention-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#e8f3ff;color:#0f6fe5}.audit-retention-icon .app-icon{width:20px;height:20px}.audit-filters{padding:18px;margin-bottom:18px}.audit-filter-grid{display:grid;grid-template-columns:minmax(240px,2fr) repeat(5,minmax(130px,1fr));gap:12px;align-items:end}.audit-filter-grid label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;color:#536b84}.audit-filter-grid input,.audit-filter-grid select{min-height:40px}.audit-filter-actions{display:flex;gap:10px;margin-top:14px;justify-content:flex-end}.audit-table-panel{overflow:hidden}.audit-table-title{align-items:center}.audit-retention-chip{padding:7px 11px;border-radius:999px;background:#e8f6ef;color:#08794f;font-size:12px;font-weight:800}.audit-table th>a{display:inline-flex;align-items:center;gap:7px;color:inherit;text-decoration:none}.audit-table th>a:hover{color:#0f6fe5}.audit-table th{white-space:nowrap}.audit-table td{vertical-align:top}.audit-table .cell-note{display:block;margin-top:3px}.audit-action-badge{display:inline-flex;padding:5px 9px;border-radius:8px;background:#edf5ff;color:#0f63bd;font-size:11px;font-weight:800}.audit-route{display:inline-block;padding:3px 6px;border-radius:5px;background:#eef1f5;color:#536477;font-size:10px;font-weight:800}.audit-details summary{cursor:pointer;color:#0f6fe5;font-weight:700;font-size:12px}.audit-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px;min-width:420px}.audit-detail-grid>div{background:#f7f9fc;border:1px solid #e1e8f0;border-radius:8px;padding:8px}.audit-detail-grid b{font-size:11px}.audit-detail-grid pre{margin:6px 0 0;max-width:360px;max-height:180px;overflow:auto;font:11px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap}.audit-table-panel .table-wrap{overflow:auto}
html[data-theme="escuro"] .audit-retention-banner{background:#10263b;border-color:#284b68;color:#e5f0fb}html[data-theme="escuro"] .audit-retention-banner p{color:#9db3c9}html[data-theme="escuro"] .audit-retention-icon{background:#153c60}html[data-theme="escuro"] .audit-retention-chip{background:#123e32;color:#7fe0b8}html[data-theme="escuro"] .audit-action-badge{background:#153a5d;color:#7fc0ff}html[data-theme="escuro"] .audit-route,html[data-theme="escuro"] .audit-detail-grid>div{background:#16283a;border-color:#29445b;color:#d8e5f0}
@media(max-width:1050px){.audit-filter-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}.audit-search{grid-column:span 3}}
@media(max-width:700px){.audit-filter-grid{grid-template-columns:1fr}.audit-search{grid-column:auto}.audit-filter-actions{justify-content:stretch}.audit-filter-actions .button{flex:1}.audit-detail-grid{grid-template-columns:1fr;min-width:280px}}

/* V77.10 — logout protegido por POST + CSRF, mantendo aparência de link. */
.logout-form{margin:0;padding:0;}
.logout-link{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;padding:10px 12px;border-radius:10px;}
.logout-link:hover{background:rgba(17,103,216,.08);}
.sidebar-footer .logout-form{display:block;}
.user-dropdown .logout-form{display:block;}

.booking-services-list,.agenda-services-list{display:grid;gap:10px}.booking-service-row,.agenda-service-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.booking-service-row .button,.agenda-service-row .button{white-space:nowrap}.booking-service-row .button.danger,.agenda-service-row .button.danger{border-color:var(--ui-danger,#dc3545);color:var(--ui-danger,#dc3545)}.booking-service-row:first-child .booking-service-add,.agenda-service-row:first-child button{min-width:190px}@media(max-width:760px){.booking-service-row,.agenda-service-row{grid-template-columns:1fr}.booking-service-row .button,.agenda-service-row .button{width:100%}}

/* V77.19 — liberações por empresa SaaS */
.saas-access-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 12px}.saas-access-summary article{padding:14px 16px;border:1px solid #dce7f0;border-radius:12px;background:#fff;display:grid;gap:4px}.saas-access-summary span{font-size:9px;font-weight:900;letter-spacing:.12em;color:#7b8ea1}.saas-access-summary strong{font-size:16px;color:#16324d}.saas-access-summary small{font-size:9px;color:#8293a3}.saas-access-panel{padding:0;overflow:hidden}.saas-access-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #e2ebf2;background:#f7fbfe}.saas-access-toolbar h2{margin:0 0 4px;font-size:16px}.saas-access-toolbar p{margin:0;color:#71879a;font-size:10px}.saas-access-bulk-actions{display:flex;flex-wrap:wrap;gap:8px}.saas-access-bulk-actions form{margin:0}.saas-access-bulk-actions .button{height:34px;padding:0 12px;font-size:10px}.saas-access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:18px}.saas-access-group-heading{grid-column:1/-1;margin:7px 0 0;padding:8px 2px 4px;border-bottom:1px solid #e4edf4}.saas-access-group-heading span{font-size:9px;font-weight:900;letter-spacing:.12em;color:#2f6598}.saas-access-card{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px;padding:12px 13px;border:1px solid #dbe6ee;border-radius:10px;background:#fff;cursor:pointer;transition:.18s ease}.saas-access-card:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(7,37,67,.07)}.saas-access-card.is-on{border-color:#b9dfcf;background:#f7fdf9}.saas-access-card.is-off{border-color:#eadcdf;background:#fffafb}.saas-access-card-main{display:flex;align-items:center;gap:10px;min-width:0}.saas-access-card-main input{width:19px;height:19px;accent-color:#1476d4}.saas-access-card-main span{display:grid;gap:3px;min-width:0}.saas-access-card strong{font-size:11px;color:#18334d}.saas-access-card small{font-size:8px;color:#8293a2;line-height:1.45}.saas-access-meta{display:grid;justify-items:end;gap:4px;flex:none}.saas-access-meta em{font-size:8px;color:#8192a1;font-style:normal}.access-source{padding:3px 7px;border-radius:999px;font-size:8px}.access-source.is-plan{background:#eaf3fa;color:#4a7598}.access-source.is-custom-on{background:#e3f7ed;color:#178052}.access-source.is-custom-off{background:#ffeaec;color:#bd434b}.system-interface-v28 .ui-action.is-access{background:#eef7ff!important;color:#166cc3;border-color:#c4ddf5}@media(max-width:900px){.saas-access-summary{grid-template-columns:1fr}.saas-access-toolbar{align-items:stretch;flex-direction:column}.saas-access-bulk-actions{display:grid;grid-template-columns:1fr}.saas-access-bulk-actions .button{width:100%}.saas-access-grid{grid-template-columns:1fr}}
.saas-access-meta select{width:118px;min-height:30px;padding:5px 7px;font-size:9px}.saas-access-meta select:focus{outline:2px solid #c8e2fb;outline-offset:1px}

/* V77.24 — Cadastro rápido de serviço: modal compacto no mesmo padrão de Produtos */
.service-modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;align-content:start}.service-modal-grid>div{min-width:0}.service-modal-grid .field-span-2{grid-column:span 2}.service-modal-grid label{display:block;margin-bottom:6px}.service-modal-grid small{display:block;color:#7b8fa4;margin-top:5px;font-size:11px}.service-modal-grid input,.service-modal-grid select,.service-modal-grid textarea{width:100%}
@media(max-width:600px){.service-modal-grid{grid-template-columns:1fr}.service-modal-grid .field-span-2{grid-column:auto}}
/* V77.24 — cadastro rápido de produto compartilhado entre Compras, Orçamentos e OS. */
.modal-card-product .product-photo-field{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;align-items:center;grid-column:1/-1}
.modal-card-product .product-photo-preview{height:110px;border:1px solid #d9e5ef;border-radius:10px;background:#f7fafc;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#7b8fa4;font-size:12px}
.modal-card-product .product-photo-preview img{width:100%;height:100%;object-fit:contain;display:block}
@media(max-width:600px){.modal-card-product .product-photo-field{grid-template-columns:1fr}}

/* V77.25 — Cadastro rápido de serviço com o mesmo padrão visual do cadastro de produto. */
.modal-card-product .service-modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px;align-items:start}
.modal-card-product .service-modal-grid>div{min-width:0}
.modal-card-product .service-modal-grid .field-span-2{grid-column:1/-1}
.modal-card-product .service-modal-grid label{display:block;margin-bottom:6px}
.modal-card-product .service-modal-grid small{display:block;color:#7b8fa4;margin-top:5px;font-size:11px;line-height:1.4}
.modal-card-product .service-modal-grid input,.modal-card-product .service-modal-grid select,.modal-card-product .service-modal-grid textarea{width:100%;box-sizing:border-box}
.modal-card-product .service-modal-grid textarea{min-height:118px;resize:vertical}
.modal-card-product .service-active-field{padding:10px 12px;border:1px solid #d9e8f6;border-radius:10px;background:#f8fbff}
.modal-card-product .service-active-label{display:flex!important;align-items:center;gap:9px;margin:0!important;font-weight:700;color:#244767}
.modal-card-product .service-active-label input{width:19px;min-height:19px;flex:0 0 19px;accent-color:#1476d4}
@media(max-width:600px){.modal-card-product .service-modal-grid{grid-template-columns:1fr}.modal-card-product .service-modal-grid .field-span-2{grid-column:auto}}

/* V77.27 — confirmação final da agenda pública */
.booking-success-final{display:flex;align-items:flex-start;gap:24px;padding:34px;border:1px solid #b7e5d0;background:#effaf5;border-radius:18px;box-shadow:0 12px 35px rgba(0,60,30,.08)}
.booking-success-icon{width:58px;height:58px;min-width:58px;border-radius:50%;display:grid;place-items:center;background:#139669;color:#fff;font-size:32px;font-weight:800}
.booking-success-content h2{margin:8px 0 10px;font-size:30px}
.booking-success-content p{margin:0 0 20px;color:#526276;line-height:1.6}
.booking-protocol{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;margin:18px 0;background:#fff;border:1px solid #cde8dc;border-radius:12px}
.booking-protocol small{display:block;color:#68788c}
.booking-protocol strong{font-size:22px;letter-spacing:1px}
.booking-success-note{padding:14px 16px;border-left:4px solid #1167d8;background:#f5f8fb;color:#53657a;border-radius:8px;margin-bottom:20px}
.booking-close-page{margin-top:2px}
@media (max-width:700px){.booking-success-final{padding:24px;gap:16px}.booking-success-content h2{font-size:24px}.booking-protocol{flex-direction:column;align-items:flex-start}.booking-protocol strong{font-size:20px}}


/* V77.36 — consulta interna por protocolo de agendamento */
.agenda-protocol-search{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 16px;padding:18px 20px;border:1px solid var(--ui-line);border-radius:var(--ui-radius-lg);background:var(--ui-surface);box-shadow:var(--ui-shadow)}
.agenda-protocol-search-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;min-width:0}.agenda-protocol-search-heading>div:first-child{min-width:0}.agenda-protocol-search h2{margin:2px 0 4px;font-size:17px;color:var(--ui-text,#12324f)}.agenda-protocol-search p{margin:0;color:var(--ui-muted,#73879a);font-size:11px}.agenda-protocol-search-form{display:grid;grid-template-columns:minmax(250px,420px) auto;gap:8px;align-items:end;flex:none}.agenda-protocol-search-form input{height:42px;width:100%;box-sizing:border-box}.agenda-protocol-search-form .button{height:42px}.agenda-protocol-search-message{margin-top:10px;padding:9px 12px;border-radius:9px;font-size:11px}.agenda-protocol-search-message.is-erro{background:#fff0f1;border:1px solid #f1c0c6;color:#a33a45}.agenda-protocol-search-message.is-sucesso{background:#ecfbf4;border:1px solid #b9e6cf;color:#16734e}.agenda-protocol-dialog{width:min(760px,92vw);max-width:760px}.agenda-protocol-result{display:grid;gap:16px}.agenda-protocol-main{display:grid;gap:4px;padding:16px 18px;border:1px solid #cfe2f0;border-left:4px solid #1167d8;border-radius:12px;background:#f7fbff}.agenda-protocol-main strong{font-size:24px;letter-spacing:1px;color:#143a5b}.agenda-protocol-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.agenda-protocol-grid article{display:grid;gap:4px;padding:13px 14px;border:1px solid #dce7ef;border-radius:10px;background:#fff}.agenda-protocol-grid span,.agenda-protocol-note>span{font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#8194a5}.agenda-protocol-grid strong{font-size:12px;color:#193b57}.agenda-protocol-grid small{font-size:10px;color:#8191a1}.agenda-protocol-note{padding:13px 14px;border:1px solid #dce7ef;border-radius:10px;background:#f9fbfd}.agenda-protocol-note p{margin:6px 0 0;color:#53677a;line-height:1.5;white-space:pre-wrap}.agenda-protocol-dialog-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:16px;margin-top:16px;border-top:1px solid #e3ebf1}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.agenda-protocol-search-heading{flex-direction:column;align-items:stretch}.agenda-protocol-search-form{grid-template-columns:minmax(0,1fr) auto}}@media(max-width:620px){.agenda-protocol-search-form{grid-template-columns:1fr}.agenda-protocol-grid{grid-template-columns:1fr}.agenda-protocol-dialog-actions{flex-direction:column}.agenda-protocol-dialog-actions .button{width:100%}}

/* V77.37 - comprovante de agendamento em A4 */
.booking-success-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.booking-print-page{min-width:210px}.booking-print-details{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.booking-print-card{padding:13px 15px;border:1px solid #d6e3ec;border-radius:12px;background:#fff}.booking-print-card-wide{grid-column:1/-1}.booking-print-card span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#74869a;margin-bottom:5px}.booking-print-card strong{display:block;color:#16344e;font-weight:700;line-height:1.45}
@media(max-width:700px){.booking-print-details{grid-template-columns:1fr}.booking-print-card-wide{grid-column:auto}}
@media print{
  @page{size:A4 portrait;margin:12mm}
  html,body{background:#fff!important;color:#102f49!important}
  body.public-booking-page *{visibility:hidden!important}
  body.public-booking-page .public-booking-shell,body.public-booking-page .booking-form-card,body.public-booking-page .booking-success,body.public-booking-page .booking-success *{visibility:visible!important}
  .public-booking-shell{width:auto!important;margin:0!important;padding:0!important}
  .booking-brand{display:flex!important;margin:0 0 8mm!important;padding:5mm!important;border:1px solid #d8e5ee!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
  .booking-brand img{width:58mm!important;height:18mm!important;object-fit:contain!important}
  .booking-brand div span{font-size:9pt!important}
  .booking-brand div strong{font-size:13pt!important}
  .booking-layout{display:block!important}
  .booking-intro{display:none!important}
  .booking-form-card{padding:0!important;border:0!important;background:#fff!important;box-shadow:none!important}
  .booking-success-final{display:block!important;padding:0!important;border:1px solid #b7e5d0!important;background:#fff!important;border-radius:0!important;box-shadow:none!important}
  .booking-success-icon{display:none!important}
  .booking-success-content{padding:10mm!important}
  .booking-success-content h2{font-size:22pt!important;color:#102f49!important;margin:2mm 0 3mm!important}
  .booking-success-content p{font-size:10.5pt!important;color:#42586c!important}
  .booking-protocol{margin:6mm 0!important;padding:5mm!important;border:1px solid #cbdde9!important;background:#f7fbfe!important}
  .booking-protocol small{font-size:9pt!important}.booking-protocol strong{font-size:18pt!important}
  .booking-print-details{grid-template-columns:1fr 1fr!important;margin:5mm 0!important}
  .booking-print-card{padding:4mm!important;border:1px solid #d6e3ec!important;border-radius:0!important}
  .booking-print-card span{font-size:8pt!important}.booking-print-card strong{font-size:10pt!important}
  .booking-success-note{margin:5mm 0!important;padding:4mm!important;background:#f6f9fb!important}
  .booking-success-actions,.booking-close-page,.booking-print-page{display:none!important}
  .booking-footer{display:flex!important;margin-top:8mm!important;padding-top:4mm!important;border-top:1px solid #d6e3ec!important;background:#fff!important;color:#62768a!important}
}

/* V77.40 — pré-cadastro público e protocolo visíveis no atendimento */
.system-interface-v38 .agenda-protocolo-box,
.agenda-protocolo-box{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:14px 16px;border:1px solid color-mix(in srgb,var(--ui-link,#0f6fe5) 24%,var(--ui-line,#d9e5ef));border-radius:12px;background:linear-gradient(90deg,rgba(15,111,229,.06),rgba(17,164,186,.03))}
.agenda-protocolo-box-main{display:flex;flex-direction:column;gap:4px}.agenda-protocolo-box-main strong{font-size:20px;letter-spacing:.03em;color:var(--ui-text,#10243e)}.agenda-protocolo-box-main small{color:var(--ui-muted,#6d8297);font-size:10px}.agenda-protocolo-status{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:999px;font-size:10px;font-weight:800;border:1px solid var(--ui-line,#d9e5ef)}.agenda-protocolo-status.is-registered{background:#e9f8ef;color:#117a49;border-color:#bfe7ce}.agenda-protocolo-status.is-new{background:#eef5ff;color:#0f6fe5}
.agenda-precadastro{margin:0 0 18px;padding:16px;border:1px solid #d7eadf;border-radius:14px;background:linear-gradient(180deg,#f6fcf8,#fff)}.agenda-precadastro-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.agenda-precadastro-head h3{margin:4px 0 3px;font-size:16px;color:var(--ui-text,#10243e)}.agenda-precadastro-head p{margin:0;color:var(--ui-muted,#6d8297);font-size:11px;line-height:1.45}.agenda-precadastro-badge{padding:7px 10px;border-radius:999px;background:#e5f7ee;color:#117a49;font-size:10px;font-weight:800;white-space:nowrap}.agenda-precadastro-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.agenda-precadastro-grid article{padding:11px 12px;border:1px solid #e1eee6;border-radius:10px;background:#fff;min-width:0}.agenda-precadastro-grid article span{display:block;margin-bottom:4px;color:#77908a;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.agenda-precadastro-grid article strong{display:block;color:#1b344e;font-size:12px;overflow-wrap:anywhere}.agenda-precadastro-wide{grid-column:1/-1}.agenda-precadastro-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:12px;flex-wrap:wrap}.agenda-client-picker{display:grid;grid-template-columns:minmax(0,1fr) 42px 42px;gap:7px}.agenda-client-picker .mini-action{height:46px}
@media(max-width:700px){.agenda-precadastro-grid{grid-template-columns:1fr}.agenda-precadastro-wide{grid-column:auto}.agenda-precadastro-head,.agenda-protocolo-box{flex-direction:column}.agenda-protocolo-status{align-self:flex-start}.agenda-client-picker{grid-template-columns:minmax(0,1fr) 40px 40px}}

/* V77.41 — entrada financeira sem zeros falsos e quantidade legível. */
.purchase-items-data-table input.systenova-decimal-input:placeholder-shown {
    color: #64748b;
}
.purchase-items-data-table input[name="itens[valor_unitario][]"]:placeholder-shown {
    color: #64748b;
}

.purchase-entry-hint{display:block;margin-top:6px;color:#64748b;font-size:.84rem}.purchase-items-data-table input[name="itens[quantidade][]"]{text-align:right}



/* V77.44 - relatorios financeiros corrigidos: as telas agora sao fragmentos
   compativeis com estruturas/impressao, evitando documento HTML aninhado e
   impressao em branco. */
.financial-print-report{font-family:var(--ui-font-body,DM Sans,Arial,sans-serif);color:var(--ui-text,#17364f)}
.financial-print-report .financial-print-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:8mm;border-bottom:2px solid var(--document-accent,var(--ui-blue,#1167d8))}
.financial-print-report .financial-print-header h2{margin:3px 0 4px;font-family:var(--ui-font-heading,Manrope,Arial,sans-serif);font-size:24px;color:var(--ui-text,#17364f)}
.financial-print-report .financial-print-header p{margin:0;color:var(--ui-muted,#617a8f);font-size:12px}
.financial-print-report .financial-print-table{min-width:0;margin-top:8mm;width:100%}
.financial-print-report .financial-print-total{text-align:right;margin-top:7mm;font-size:16px;font-weight:900;color:var(--ui-text,#17364f)}
.financial-print-report .financial-print-footer{display:flex;justify-content:space-between;gap:20px;margin-top:14mm;padding-top:4mm;border-top:1px solid #dbe6ee;color:#6d8292;font-size:10px}
@media print{
  .financial-print-report .print-only-hide{display:none!important}
  .financial-print-report .financial-print-footer{break-inside:avoid}
  .financial-print-report .financial-print-table thead{display:table-header-group}
  .financial-print-report .financial-print-table tr{break-inside:avoid}
}


/* V77.46 — caixa diário, checklist sem veículo e impressão global corrigida. */
.cash-alert{display:flex;align-items:center;gap:12px;margin-bottom:16px;padding:14px 16px;border-radius:12px;border:1px solid #d9e4ec}.cash-alert.is-open{background:#eef9f2;border-color:#bfe6ce;color:#176e49}.cash-alert.is-pending{background:#fff8e9;border-color:#ead39b;color:#77540b}.cash-alert span{color:#586e81;font-size:12px}.cash-alert strong{white-space:nowrap}.cash-print-document{width:210mm;min-height:297mm;box-sizing:border-box;background:#fff;color:#16344e;font-family:Arial,sans-serif;padding:10mm}.cash-print-document header{display:flex;justify-content:space-between;gap:12mm;border-bottom:2px solid #0c5c8b;padding-bottom:6mm}.cash-print-document .brand{display:flex;gap:5mm;align-items:center}.cash-print-document .brand img{width:34mm;height:18mm;object-fit:contain}.cash-print-document .brand strong{display:block;font-size:14pt}.cash-print-document .brand span{display:block;color:#688096;font-size:8pt}.cash-print-document .protocol{text-align:right}.cash-print-document .protocol span,.cash-print-document .summary small{display:block;font-size:7pt;color:#778b9d;text-transform:uppercase;letter-spacing:.07em}.cash-print-document .protocol strong{display:block;font-size:18pt;color:#0c5c8b}.cash-print-document section{margin-top:7mm}.cash-print-document .summary{display:grid;grid-template-columns:repeat(3,1fr);gap:3mm}.cash-print-document .summary>div{padding:4mm;border:1px solid #d6e2ea;border-radius:2mm}.cash-print-document .summary strong{display:block;margin-top:1.5mm;font-size:10pt}.cash-print-document h2{font-size:10pt;color:#0c5c8b}.cash-print-document table{width:100%;border-collapse:collapse}.cash-print-document th,.cash-print-document td{padding:2.5mm;border-bottom:1px solid #dde7ee;text-align:left;font-size:8pt}.cash-print-document th{background:#eef5f9;text-transform:uppercase;font-size:7pt}.cash-print-document td:last-child,.cash-print-document th:last-child{text-align:right}.cash-print-document .totals{display:grid;grid-template-columns:repeat(2,1fr);gap:3mm}.cash-print-document .totals>div{display:flex;justify-content:space-between;gap:8mm;padding:3mm;border:1px solid #d6e2ea;border-radius:2mm}.cash-print-document .notes p{padding:4mm;border:1px solid #d6e2ea;border-radius:2mm;min-height:25mm}.cash-print-document footer{margin-top:10mm;padding-top:4mm;border-top:1px solid #d6e2ea;color:#718497;font-size:7pt}.ck-actions .danger{color:#b52a39;border:1px solid #f1b6bf;background:#fff1f2;border-radius:7px;padding:6px 9px;cursor:pointer}.ck-suggest .vehicle-pill.is-warning{color:#a46700;background:#fff4d8;border-color:#e7cc8a}
@media print{
  body:not(.public-booking-page){background:#fff!important;color:#17364f!important;}
  body:not(.public-booking-page) .print-toolbar{display:none!important;}
  body:not(.public-booking-page) .print-document,.print-document-v30,.print-document-special-v59,.financial-print-report,.payable-print-document,.receipt,.cash-print-document,.checklist-print-document{visibility:visible!important;display:block!important;opacity:1!important;color:inherit!important;background:#fff!important;}
  body:not(.public-booking-page) .print-document *,.print-document-v30 *,.print-document-special-v59 *,.financial-print-report *,.payable-print-document *,.receipt *,.cash-print-document *,.checklist-print-document *{visibility:visible!important;opacity:1!important;}
  body:not(.public-booking-page) .print-document-special-v59{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;}
  body:not(.public-booking-page) .print-document-special-v59 .oficina-print-v59{height:auto!important;min-height:277mm!important;max-height:none!important;overflow:visible!important;display:block!important;}
  body:not(.public-booking-page) .financial-print-report,.body:not(.public-booking-page) .payable-print-document{height:auto!important;overflow:visible!important;}
  .cash-print-document{width:210mm!important;min-height:277mm!important;margin:0!important;padding:8mm!important;box-shadow:none!important;}
  @page{size:A4 portrait;margin:8mm;}
}


/* V77.51 — impressão multipágina padronizada: cabeçalho/rodapé repetidos, paginação e OS alinhada. */
.print-page-number-v30::before{content:'Página ' counter(page);white-space:nowrap}
.oficina-print-page-number-v59::before{content:'Página ' counter(page);white-space:nowrap}
@media print{
  /* Estrutura genérica: cabeçalho e rodapé fixos são repetidos pelo Chromium em cada página. */
  .print-document-v30:not(.print-document-special-v59){
      padding-top:38mm!important;
      padding-bottom:19mm!important;
      overflow:visible!important;
      min-height:0!important;
  }
  .print-document-v30:not(.print-document-special-v59) > .print-identity{
      position:fixed!important;
      top:8mm!important;
      left:8mm!important;
      right:8mm!important;
      z-index:20!important;
      background:#fff!important;
      padding:0 0 4mm!important;
  }
  .print-document-v30:not(.print-document-special-v59) > .print-footer-v30{
      position:fixed!important;
      left:8mm!important;
      right:8mm!important;
      bottom:7mm!important;
      z-index:20!important;
      margin:0!important;
      padding:3mm 0 0!important;
      background:#fff!important;
  }
  .print-document-v30:not(.print-document-special-v59) .print-document-heading{margin-top:0!important}

  /* Ordem de serviço / orçamento: identificação à direita e cabeçalho repetido. */
  .print-document-special-v59{overflow:visible!important}
  .print-document-special-v59 .oficina-print-v59{
      width:210mm!important;
      max-width:none!important;
      min-height:0!important;
      height:auto!important;
      max-height:none!important;
      margin:0!important;
      padding:36mm 9mm 25mm!important;
      overflow:visible!important;
      display:block!important;
      box-shadow:none!important;
  }
  .print-document-special-v59 .oficina-print-header-v59{
      position:fixed!important;
      top:7mm!important;
      left:9mm!important;
      right:9mm!important;
      z-index:30!important;
      display:grid!important;
      grid-template-columns:minmax(0,1fr) 56mm!important;
      gap:5mm!important;
      min-height:23mm!important;
      padding:0 0 2.8mm!important;
      background:#fff!important;
      border-bottom:1px solid #d6e1ea!important;
  }
  .print-document-special-v59 .oficina-print-document-v59{
      width:56mm!important;
      min-width:56mm!important;
      justify-self:end!important;
      text-align:right!important;
      justify-items:end!important;
      align-content:start!important;
  }
  .print-document-special-v59 .oficina-print-document-v59>strong{width:56mm!important}
  .print-document-special-v59 .oficina-print-footer-v59{
      position:fixed!important;
      left:9mm!important;
      right:9mm!important;
      bottom:6mm!important;
      z-index:30!important;
      margin:0!important;
      min-height:11mm!important;
      background:#0b4569!important;
  }
  .print-document-special-v59 .oficina-print-status-sign-v59{
      grid-template-columns:34mm minmax(0,1fr) minmax(0,1fr)!important;
      gap:4mm!important;
      margin-top:2.2mm!important;
      break-inside:avoid!important;
      page-break-inside:avoid!important;
  }
  .print-document-special-v59 .oficina-print-sign-v59 span{height:5mm!important}
  .print-document-special-v59 .oficina-print-sign-v59 small{font-size:4.8pt!important}
  .print-document-special-v59 .oficina-print-section-v59{break-inside:auto!important;page-break-inside:auto!important}
  .print-document-special-v59 .oficina-print-table-v59 thead{display:table-header-group!important}
  .print-document-special-v59 .oficina-print-table-v59 tr{break-inside:avoid!important;page-break-inside:avoid!important}
  .print-document-special-v59 .oficina-print-cards-v59,
  .print-document-special-v59 .oficina-print-summary-v59{break-inside:avoid!important;page-break-inside:avoid!important}
  @page{size:A4 portrait;margin:0}
}

/* V77.52 - impressão de contas a receber alinhada ao layout de consulta */
@media print{
  .print-document-v30 .print-content-v30 .print-receivable-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0 0 12px;}
  .print-document-v30 .print-content-v30 .print-receivable-summary article{padding:13px 15px;border:1px solid #e0e8f0;border-radius:10px;background:#fff;box-shadow:none;break-inside:avoid;}
  .print-document-v30 .print-content-v30 .print-receivable-summary article span{display:block;color:#758a9d;font-size:8px;text-transform:uppercase;letter-spacing:.03em;}
  .print-document-v30 .print-content-v30 .print-receivable-summary article strong{display:block;margin-top:5px;color:#0b2037;font-size:15px;}
  .print-document-v30 .print-content-v30 .print-receivable-card{box-shadow:none;margin-bottom:12px;break-inside:auto;}
  .print-document-v30 .print-content-v30 .receivable-view-card{padding:0;overflow:hidden;}
  .print-document-v30 .print-content-v30 .receivable-view-card .panel-title{padding:14px 16px 9px;}
  .print-document-v30 .print-content-v30 .receivable-view-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#dfe7ef;border-top:1px solid #dfe7ef;}
  .print-document-v30 .print-content-v30 .receivable-view-grid>div{display:grid;gap:5px;min-width:0;padding:12px 14px;background:#fff;}
  .print-document-v30 .print-content-v30 .receivable-view-grid span{color:#758a9d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;}
  .print-document-v30 .print-content-v30 .receivable-view-grid strong{color:#12314c;font-size:10px;line-height:1.35;overflow-wrap:anywhere;}
  .print-document-v30 .print-content-v30 .receivable-view-grid .view-text{font-weight:500;}
  .print-document-v30 .print-content-v30 .receivable-view-grid .field-full{grid-column:1/-1;}
  .print-document-v30 .print-content-v30 .receivable-history-bottom{width:100%;margin-top:4px;}
  .print-document-v30 .print-content-v30 .receivable-history-bottom .panel-title{padding:13px 15px 9px;}
  .print-document-v30 .print-content-v30 .receivable-history article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 15px;border-bottom:1px solid #e7edf3;break-inside:avoid;}
  .print-document-v30 .print-content-v30 .receivable-history article>div{display:grid;}
  .print-document-v30 .print-content-v30 .receivable-history article strong{color:#0c233a;font-size:11px;}
  .print-document-v30 .print-content-v30 .receivable-history article span,.print-document-v30 .print-content-v30 .receivable-history article small{margin-top:3px;color:#7d90a2;font-size:8px;}
  .print-document-v30 .print-content-v30 .receivable-history article.is-reversed{opacity:.65;}
}
@media print and (max-width:900px){
  .print-document-v30 .print-content-v30 .print-receivable-summary,.print-document-v30 .print-content-v30 .receivable-view-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* V79.36: sugestões da recepção sobre os filtros, com rolagem própria. */
.ck-page #nova-entrada{position:relative;z-index:3;overflow:visible}
.ck-page #nova-entrada .ck-autocomplete{max-height:min(300px,45vh);overflow-y:auto;overscroll-behavior:contain}
.ck-page #nova-entrada .ck-suggest{min-width:0}
.ck-page #nova-entrada .ck-suggest>span:first-child{min-width:0;overflow-wrap:anywhere}
.ck-page #nova-entrada .ck-selected-client{flex-wrap:wrap}
@media(max-width:700px){
  .ck-page #nova-entrada .ck-vehicle-alert{grid-template-columns:auto minmax(0,1fr)}
  .ck-page #nova-entrada .ck-vehicle-alert>.button{grid-column:1/-1}
}
/* V77.54 — Checklist: tabela legível e ações visíveis sem rolagem horizontal. */
.ck-table-wrap{overflow-x:hidden!important;width:100%!important;}
.ck-table{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;}
.ck-table th,.ck-table td{font-size:12px!important;line-height:1.25!important;vertical-align:middle!important;}
.ck-table th{font-size:11px!important;white-space:nowrap!important;}
.ck-table th:nth-child(1),.ck-table td:nth-child(1){width:9%!important;}
.ck-table th:nth-child(2),.ck-table td:nth-child(2){width:18%!important;}
.ck-table th:nth-child(3),.ck-table td:nth-child(3){width:9%!important;}
.ck-table th:nth-child(4),.ck-table td:nth-child(4){width:9%!important;}
.ck-table th:nth-child(5),.ck-table td:nth-child(5){width:9%!important;}
.ck-table th:nth-child(6),.ck-table td:nth-child(6){width:17%!important;}
.ck-table th:nth-child(7),.ck-table td:nth-child(7){width:7%!important;}
.ck-table th:nth-child(8),.ck-table td:nth-child(8){width:10%!important;}
.ck-table th:nth-child(9),.ck-table td:nth-child(9){width:12%!important;text-align:center!important;}
.ck-table td:nth-child(1),.ck-table td:nth-child(2){overflow:hidden;text-overflow:ellipsis;}
.ck-table .ck-client strong{font-size:12px!important;}
.ck-table .ck-client small{font-size:10px!important;}
.ck-table .ck-progress-line{font-size:10px!important;}
.ck-table .ck-status,.ck-table .ck-type,.ck-table .ck-issues,.ck-table .ck-os{font-size:10px!important;}
.ck-table .ck-actions{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;flex-wrap:nowrap!important;min-width:0!important;width:100%!important;overflow:visible!important;}
.ck-table .ck-actions form{display:flex!important;align-items:center!important;margin:0!important;padding:0!important;}
.ck-table .ck-actions>a,.ck-table .ck-actions>form>button,.ck-table .ck-actions>.ck-actions-disabled{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:28px!important;height:28px!important;min-width:28px!important;padding:0!important;margin:0!important;border-radius:7px!important;box-sizing:border-box!important;flex:0 0 28px!important;}
.ck-table .ck-actions .app-icon{width:15px!important;height:15px!important;}
.ck-table .ck-actions .danger{color:#b52a39!important;border:1px solid #f1b6bf!important;background:#fff1f2!important;cursor:pointer!important;}
.ck-table .ck-actions .green{color:#0f8b62!important;border:1px solid #bce6d6!important;background:#f1fbf7!important;cursor:pointer!important;}
.ck-table .ck-actions .main{color:#0f6fe5!important;border:1px solid #b8d7fa!important;background:#f5faff!important;}
.ck-table .ck-actions .ck-actions-disabled{color:#98a8b6!important;border:1px solid #d6dee6!important;background:#f7f9fb!important;cursor:not-allowed!important;}
/* V79.36: no celular, manter as colunas legíveis e rolar só a tabela. */
@media(max-width:700px){
  .ck-page>.ck-panel,.ck-quick>.ck-panel{min-width:0}
  .ck-page .ck-table-wrap{overflow-x:auto!important}
  .ck-page .ck-table{min-width:960px!important}
}
@media(max-width:1050px){
  .ck-table th:nth-child(2),.ck-table td:nth-child(2){width:17%!important;}
  .ck-table th:nth-child(6),.ck-table td:nth-child(6){width:15%!important;}
  .ck-table th:nth-child(9),.ck-table td:nth-child(9){width:14%!important;}
}


/* V77.58 — Caixa: modal de acerto legível e impressão financeira padronizada. */
.system-interface .cash-close-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:24px;background:transparent;}
.system-interface .cash-close-modal[hidden]{display:none!important;}
.system-interface .cash-close-modal .app-modal-backdrop{position:absolute;inset:0;background:rgba(3,20,37,.74);backdrop-filter:blur(4px);}
.system-interface .cash-close-panel{position:relative;z-index:1;width:min(780px,calc(100vw - 40px));max-height:calc(100vh - 40px);overflow:auto;background:#fff;border:1px solid #d7e3ec;border-radius:18px;box-shadow:0 28px 90px rgba(1,20,38,.34);}
.system-interface .cash-close-panel .modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 24px;background:linear-gradient(135deg,#082d51,#0f6fe5);border-top:4px solid #a9e34f;color:#fff;}
.system-interface .cash-close-panel .modal-header h2{margin:5px 0 4px;color:#fff;font-size:22px;}
.system-interface .cash-close-panel .modal-header p{margin:0;color:#dbeaff;font-size:12px;line-height:1.45;}
.system-interface .cash-close-panel .modal-body{padding:22px 24px;display:grid;gap:18px;background:#fff;}
.system-interface .cash-close-panel .modal-body label{display:block;color:#29465f;font-size:12px;font-weight:800;}
.system-interface .cash-close-panel .modal-body input,.system-interface .cash-close-panel .modal-body textarea{width:100%;margin-top:7px;box-sizing:border-box;}
.system-interface .cash-close-panel .modal-body small{display:block;margin-top:6px;color:#71869a;font-size:10.5px;font-weight:500;}
.system-interface .cash-close-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.system-interface .cash-close-summary>div{padding:14px;border:1px solid #dce7ef;border-radius:11px;background:#f8fbfd;}
.system-interface .cash-close-summary span{display:block;color:#74899c;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.07em;}
.system-interface .cash-close-summary strong{display:block;margin-top:5px;color:#183b57;font-size:15px;}
.system-interface .cash-close-summary .highlight{background:#eef7ff;border-color:#b9d9f7;}
.system-interface .cash-close-summary .highlight strong{color:#0f6fe5;}
.system-interface .cash-count-box{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(220px,.75fr);gap:12px;align-items:stretch;}
.system-interface .cash-diff-live{padding:14px;border:1px solid #dce7ef;border-radius:11px;background:#f7fafc;display:flex;flex-direction:column;justify-content:center;}
.system-interface .cash-diff-live span{color:#74899c;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.07em;}
.system-interface .cash-diff-live strong{font-size:22px;color:#183b57;margin-top:4px;}
.system-interface .cash-diff-live strong.is-positive{color:#137a4b}.system-interface .cash-diff-live strong.is-negative{color:#c33a47}
.system-interface .cash-close-rule{padding:12px 14px;border:1px solid #dce7ef;border-left:3px solid #0f6fe5;border-radius:10px;background:#f7fafc;color:#536d83;font-size:11px;line-height:1.5;}
.system-interface .cash-close-panel .modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:14px 24px;border-top:1px solid #dce7ef;background:#fff;}
@media(max-width:760px){.system-interface .cash-close-modal{padding:10px}.system-interface .cash-close-panel{width:calc(100vw - 20px);max-height:calc(100vh - 20px)}.system-interface .cash-close-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.system-interface .cash-count-box{grid-template-columns:1fr}.system-interface .cash-close-panel .modal-footer{flex-direction:column}.system-interface .cash-close-panel .modal-footer .button{width:100%}}
.cash-print-report{font-family:var(--ui-font-body,Arial,sans-serif);color:#17364f;}
.cash-print-table th,.cash-print-table td{vertical-align:top;}
.cash-print-table th:nth-child(1),.cash-print-table td:nth-child(1){width:13%;}
.cash-print-table th:nth-child(2),.cash-print-table td:nth-child(2){width:9%;}
.cash-print-table th:nth-child(3),.cash-print-table td:nth-child(3){width:15%;}
.cash-print-table th:nth-child(4),.cash-print-table td:nth-child(4){width:18%;}
.cash-print-table th:nth-child(5),.cash-print-table td:nth-child(5){width:24%;}
.cash-print-table th:nth-child(6),.cash-print-table td:nth-child(6){width:12%;}
.cash-print-table th:nth-child(7),.cash-print-table td:nth-child(7){width:9%;}
.cash-print-table tfoot td{border-top:1.2px solid #bcd0df;background:#f7fafc;font-weight:800;}
.cash-print-table tfoot .total-label{text-align:right;text-transform:uppercase;color:#597287;font-size:7pt;letter-spacing:.04em;}
.cash-print-table tfoot .total-in{color:#147747;}
.cash-print-table tfoot .total-out{color:#ad3744;}
.cash-print-table tfoot .saldo-final-label,.cash-print-table tfoot .saldo-final-value{background:#eaf4fb;color:#0f527c;font-size:8pt;}

.cash-print-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3mm;margin-bottom:7mm;}
.cash-print-summary-grid article{padding:4mm;border:1px solid #d7e3eb;border-radius:2mm;background:#fff;}
.cash-print-summary-grid article span,.cash-approval-grid span{display:block;font-size:7pt;color:#74899c;text-transform:uppercase;letter-spacing:.07em;font-weight:800;}
.cash-print-summary-grid article strong{display:block;margin-top:1.5mm;font-size:10pt;color:#17364f;}
.cash-print-summary-grid article.difference{background:#fff8ef;border-color:#efd7ad;}
.cash-print-section{margin-top:7mm;}
.cash-print-section-heading{display:flex;align-items:center;gap:4mm;margin-bottom:3mm;}
.cash-print-section-heading>span{display:grid;place-items:center;width:8mm;height:8mm;border-radius:2mm;background:#0f6fe5;color:#fff;font-size:8pt;font-weight:900;}
.cash-print-section-heading h2{margin:0;font-size:10pt;color:#0c5c8b;}
.cash-print-section-heading p{margin:1mm 0 0;font-size:8pt;color:#6f8497;}
.cash-print-table{width:100%;border-collapse:collapse;}
.cash-print-table th,.cash-print-table td{padding:2.5mm;border-bottom:1px solid #dde7ee;text-align:left;font-size:7.5pt;}
.cash-print-table th{background:#eef5f9;text-transform:uppercase;font-size:7pt;color:#47647a;}
.cash-print-table td.money,.cash-print-table th:last-child{text-align:right;}
.cash-movement-pill{display:inline-flex;padding:1.2mm 2.5mm;border-radius:999px;font-size:7pt;font-weight:900;}.cash-movement-pill.entry{background:#e6f7ef;color:#177649}.cash-movement-pill.exit{background:#fff0f0;color:#b43847}
.cash-approval-grid{display:grid;grid-template-columns:1fr 1fr;gap:3mm;}.cash-approval-grid>div{padding:4mm;border:1px solid #d7e3eb;border-radius:2mm;}.cash-approval-grid strong{display:block;margin-top:2mm;font-size:9pt;color:#17364f}.cash-approval-grid small{display:block;margin-top:1mm;color:#71869a;font-size:7.5pt}.cash-approval-grid .wide{grid-column:1/-1;}
@media print{.cash-print-summary-grid{grid-template-columns:repeat(4,1fr)}.cash-print-table thead{display:table-header-group}.cash-print-table tr{break-inside:avoid;page-break-inside:avoid}.cash-print-section{break-inside:auto}.cash-approval-grid{break-inside:avoid;page-break-inside:avoid}}

/* V77.64 - baixa com múltiplas formas de pagamento */
.split-payment-form{position:relative}
.split-payments-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:20px 0 10px;padding:14px 16px;border:1px solid #d7e5f1;border-radius:12px;background:#f7fbff}
.split-payments-head h3{margin:0;color:#17314a;font-size:15px}
.split-payments-head p{margin:4px 0 0;color:#6f8498;font-size:11px}
.split-payments-list{display:grid;gap:12px}
.split-payment-row{border:1px solid #c9dceb;border-radius:12px;background:#fff;padding:14px;box-shadow:0 4px 14px rgba(24,73,116,.05)}
.split-payment-row-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;color:#0f67c8;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.split-payment-remove{width:30px;height:30px;border:1px solid #f0b7b7;border-radius:8px;background:#fff5f5;color:#b62b38;font-size:18px;line-height:1;cursor:pointer}
.split-payment-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.split-bank-field{transition:.18s ease}
.split-bank-field:not(.is-required){opacity:.88}
.split-bank-field.is-required{padding:10px;border:1px solid #bfe0cf;border-radius:10px;background:#f2fbf6}
.money-summary-box{min-height:46px;border:1px solid #b8cde2;border-radius:10px;background:#f7fbff;padding:8px 12px;display:flex;flex-direction:column;justify-content:center}
.money-summary-box strong{color:#0f67c8;font-size:15px}.money-summary-box small{font-size:10px;color:#71869a;margin-top:2px}
.split-payment-status{margin-top:12px;padding:10px 12px;border-radius:10px;font-size:12px;font-weight:700}
.split-payment-status.is-ok{color:#13734b;background:#edf9f3;border:1px solid #bfe6cf}
.split-payment-status.is-warning{color:#8a5a00;background:#fff8e8;border:1px solid #ecd39d}
.split-payment-status.is-error{color:#a72832;background:#fff1f2;border:1px solid #efbcc0}
.receivable-payment-actions{align-items:center;justify-content:space-between!important}
.receivable-payment-actions .receivable-confirm-button{margin-left:auto}
@media(max-width:900px){.split-payment-fields{grid-template-columns:1fr}.split-payments-head{align-items:stretch;flex-direction:column}.receivable-payment-actions{gap:10px;flex-wrap:wrap}.receivable-payment-actions button{width:auto!important;flex:1 1 220px}}

/* V77.65 — tabelas financeiras com escala visual de 90% para caber melhor na área útil. */
.system-interface .finance-table-zoom-90{zoom:.9;min-width:111.112%;}
.system-interface .finance-table-zoom-90 th,.system-interface .finance-table-zoom-90 td{font-size:90%;padding-top:7px;padding-bottom:7px;}
.system-interface .finance-table-zoom-90 .icon-button{transform:scale(.96);transform-origin:center;}
@media(max-width:900px){.system-interface .finance-table-zoom-90{zoom:1;min-width:100%;}.system-interface .finance-table-zoom-90 th,.system-interface .finance-table-zoom-90 td{font-size:inherit;padding-top:8px;padding-bottom:8px;}}
/* V77.65 — baixa de contas a pagar com múltiplas formas de pagamento. */
.system-interface .payable-baixa-panel{padding-bottom:16px;}
.system-interface .payable-baixa-panel .payment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.system-interface .payable-adjustments-grid{margin-top:12px;}
.system-interface .payable-baixa-panel .payment-field-full{display:grid;gap:5px;}
@media(max-width:800px){.system-interface .payable-baixa-panel .payment-grid{grid-template-columns:1fr;}}


/* V77.66 — Caixa: painel visual alinhado ao padrão financeiro + tabela 90% + impressão espelhada. */
.cash-page-shell{display:grid;gap:18px;}
.cash-page-shell>.page-header{margin:0;padding:20px 22px;border:1px solid #d8e5ef;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(12,43,72,.05);}
.cash-page-shell .cash-day-panel{margin:0;padding:20px 22px;border:1px solid #d7e4ee;border-radius:16px;background:#fff;box-shadow:0 10px 30px rgba(12,43,72,.06);}
.cash-page-shell .cash-day-head{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:18px;align-items:center;padding-bottom:18px;border-bottom:1px solid #e4ebf1;}
.cash-page-shell .cash-day-head h2{margin:8px 0 4px;font-size:24px;color:#0b2944;}
.cash-page-shell .cash-day-head p{margin:0;color:#6d8295;font-size:12px;}
.cash-page-shell .cash-day-status{padding:15px;border:1px solid #d8e5ef;border-radius:12px;background:#f8fbfd;display:grid;gap:5px;justify-items:end;}
.cash-page-shell .cash-day-status strong{font-size:21px;color:#0d3c5c;}
.cash-page-shell .cash-day-status small{font-size:10px;color:#72879a;}
.cash-page-shell .cash-day-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:18px 0;}
.cash-page-shell .cash-day-grid>div{padding:14px;border:1px solid #dce7ef;border-radius:12px;background:#fff;display:grid;gap:4px;}
.cash-page-shell .cash-day-grid span{font-size:9px;color:#75899b;font-weight:900;text-transform:uppercase;letter-spacing:.07em;}
.cash-page-shell .cash-day-grid strong{font-size:16px;color:#173a56;}
.cash-page-shell .cash-day-grid .is-entry{border-color:#cce9dc;background:#f7fcf9}.cash-page-shell .cash-day-grid .is-entry strong{color:#14754c}
.cash-page-shell .cash-day-grid .is-exit{border-color:#f0d8da;background:#fffafa}.cash-page-shell .cash-day-grid .is-exit strong{color:#b5303f}
.cash-page-shell .cash-day-action{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px;border:1px solid #dce7ef;border-radius:12px;background:#f7fbff;}
.cash-page-shell .cash-day-action>div{display:grid;gap:4px}.cash-page-shell .cash-day-action strong{font-size:13px;color:#173a56}.cash-page-shell .cash-day-action span{font-size:11px;color:#687f92;line-height:1.45;}
.cash-page-shell .data-panel{margin:0;border-radius:16px;overflow:hidden;}
.cash-page-shell .cash-table th,.cash-page-shell .cash-table td{white-space:nowrap;}
.cash-page-shell .cash-table th{font-size:10px!important;}
.cash-page-shell .cash-table td{font-size:11px!important;}
.cash-page-shell .cash-table .person-cell{min-width:130px;}

.cash-print-browser-mirror{display:grid;gap:10mm;}
.cash-print-live-head{display:grid;grid-template-columns:minmax(0,1fr) 55mm;gap:6mm;align-items:center;padding:5mm 5mm 4mm;border:1px solid #d7e4ee;border-radius:3mm;background:#fff;box-shadow:0 3px 10px rgba(13,49,80,.04);break-inside:avoid;}
.cash-print-live-head h2{margin:1mm 0 1.5mm;color:#0b2944;font-size:18pt;}
.cash-print-live-head p{margin:0;color:#6d8295;font-size:8pt;}
.cash-print-live-status{display:grid;justify-items:end;gap:1mm;}
.cash-print-live-status strong{font-size:15pt;color:#0f3c5d;}.cash-print-live-status small{font-size:7pt;color:#75899b;}
.cash-print-live-status .status-pill{font-size:7pt;}
@media(max-width:900px){.cash-page-shell .cash-day-head{grid-template-columns:1fr}.cash-page-shell .cash-day-status{justify-items:start}.cash-page-shell .cash-day-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-page-shell .cash-day-action{align-items:stretch;flex-direction:column}.cash-page-shell .cash-day-action .button{width:100%}}
@media print{
  .cash-print-browser-mirror{gap:6mm;}
  .cash-print-live-head{box-shadow:none;}
  .cash-page-shell{zoom:1;}
}

/* Systenova V77.78 rebuild: CSS funcional adicionado sobre a base visual V77.67. */

/* V77.68 — Formas de pagamento da baixa exibidas em formato de tabela + botão compacto. */
.receivable-baixa-panel .split-payments-head-table{margin:18px 0 0;border-radius:12px 12px 0 0;border-bottom:0;padding:13px 14px;background:#f7fbff;}
.receivable-baixa-panel .split-payments-head-table h3{font-size:14px;}
.receivable-baixa-panel .split-payments-head-table p{font-size:10.5px;}
.receivable-baixa-panel .split-add-button{width:auto!important;min-width:0!important;height:36px!important;padding:0 14px!important;font-size:12px!important;line-height:1!important;white-space:nowrap;}
.receivable-baixa-panel .split-payments-table{border:1px solid #d4e2ec;border-radius:0 0 12px 12px;overflow:hidden;background:#fff;}
.receivable-baixa-panel .split-payments-table-header,
.receivable-baixa-panel .split-payment-fields{display:grid;grid-template-columns:minmax(180px,1.05fr) minmax(130px,.7fr) minmax(200px,1.1fr) minmax(190px,1fr) 54px;column-gap:10px;align-items:center;}
.receivable-baixa-panel .split-payments-table-header{padding:9px 12px;background:#eef5f9;border-bottom:1px solid #d4e2ec;color:#47647a;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;}
.receivable-baixa-panel .split-payments-table-header .split-col-actions{text-align:center;}
.receivable-baixa-panel .split-payments-list{display:block;}
.receivable-baixa-panel .split-payment-row{border:0;border-bottom:1px solid #e2ebf1;border-radius:0;padding:10px 12px;background:#fff;box-shadow:none;}
.receivable-baixa-panel .split-payment-row:last-child{border-bottom:0;}
.receivable-baixa-panel .split-payment-fields{gap:10px;}
.receivable-baixa-panel .split-payment-fields .payment-field{min-width:0;}
.receivable-baixa-panel .split-payment-fields .payment-field>span:not(.split-mobile-label){display:none;}
.receivable-baixa-panel .split-mobile-label{display:none;}
.receivable-baixa-panel .split-payment-fields select,
.receivable-baixa-panel .split-payment-fields input{height:38px;min-width:0;}
.receivable-baixa-panel .split-payment-fields .money-input{height:38px;}
.receivable-baixa-panel .split-payment-fields .split-bank-field small{display:block;margin-top:3px;font-size:9px;line-height:1.15;}
.receivable-baixa-panel .split-payment-actions-cell{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;}
.receivable-baixa-panel .split-payment-number{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:#edf5fb;color:#0f67c8;font-size:10px;font-weight:800;}
.receivable-baixa-panel .split-payment-remove{width:28px;height:28px;border-radius:7px;font-size:17px;line-height:1;}
.receivable-baixa-panel .split-payment-status{margin-top:12px;}
@media(max-width:1050px){
  .receivable-baixa-panel .split-payments-table-header,
  .receivable-baixa-panel .split-payment-fields{grid-template-columns:minmax(165px,1fr) minmax(125px,.75fr) minmax(170px,1fr) minmax(165px,1fr) 54px;}
}
@media(max-width:820px){
  .receivable-baixa-panel .split-payments-table{border:0;background:transparent;overflow:visible;}
  .receivable-baixa-panel .split-payments-table-header{display:none;}
  .receivable-baixa-panel .split-payment-row{margin:0 0 10px;border:1px solid #d4e2ec;border-radius:10px;padding:10px;background:#fff;}
  .receivable-baixa-panel .split-payment-fields{grid-template-columns:1fr 1fr;gap:9px;}
  .receivable-baixa-panel .split-payment-fields .payment-field>span:not(.split-mobile-label){display:none;}
  .receivable-baixa-panel .split-mobile-label{display:block!important;margin-bottom:4px;color:#527087;font-size:10px;font-weight:800;}
  .receivable-baixa-panel .split-payment-actions-cell{grid-column:1/-1;justify-content:flex-end;}
  .receivable-baixa-panel .split-payment-number{margin-right:auto;}
  .receivable-baixa-panel .split-add-button{height:34px!important;padding:0 11px!important;font-size:11px!important;}
}

/* V77.69 — Fluxo de inclusão de formas de pagamento em tabela/modal. */
.receivable-baixa-panel .split-payments-head-table{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0 0;padding:14px 16px;border:1px solid #d4e2ec;border-bottom:0;border-radius:12px 12px 0 0;background:#f7fbff;}
.receivable-baixa-panel .split-payments-head-table h3{margin:0;font-size:14px;color:#173b57;}
.receivable-baixa-panel .split-payments-head-table p{margin:4px 0 0;font-size:10.5px;color:#6b8498;}
.receivable-baixa-panel .split-add-button{width:auto!important;min-width:0!important;height:36px!important;padding:0 14px!important;font-size:12px!important;line-height:1!important;white-space:nowrap;flex:0 0 auto;}
.receivable-baixa-panel .split-payments-table{border:1px solid #d4e2ec;border-radius:0 0 12px 12px;overflow:hidden;background:#fff;}
.receivable-baixa-panel .split-payments-table-header,.receivable-baixa-panel .split-payment-row{display:grid;grid-template-columns:minmax(160px,1.1fr) minmax(130px,.65fr) minmax(145px,.75fr) minmax(190px,1fr) 74px;gap:10px;align-items:center;}
.receivable-baixa-panel .split-payments-table-header{padding:9px 12px;background:#eef5f9;border-bottom:1px solid #d4e2ec;color:#47647a;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;}
.receivable-baixa-panel .split-payments-table-header .split-col-actions{text-align:center;}
.receivable-baixa-panel .split-payments-list{display:block;}
.receivable-baixa-panel .split-payment-row{min-height:58px;padding:9px 12px;border-bottom:1px solid #e2ebf1;background:#fff;}
.receivable-baixa-panel .split-payment-row:last-child{border-bottom:0;}
.receivable-baixa-panel .split-payment-cell{min-width:0;font-size:11px;color:#24465f;}
.receivable-baixa-panel .split-payment-cell strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.receivable-baixa-panel .split-payment-value strong{color:#0f6fe5;font-size:12px;}
.receivable-baixa-panel .split-payment-details span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#61798c;font-size:10px;}
.receivable-baixa-panel .payment-type-pill{display:inline-flex;max-width:100%;padding:4px 8px;border-radius:999px;background:#edf5fb;color:#175b8f;font-size:9.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.receivable-baixa-panel .split-payment-actions-cell{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;}
.receivable-baixa-panel .split-payment-actions-cell .icon-button{width:29px;height:29px;border-radius:7px;}
.receivable-baixa-panel .split-payments-empty{padding:20px 14px;text-align:center;color:#748a9b;font-size:11px;background:#fff;}
.receivable-baixa-panel .split-payments-empty[hidden]{display:none;}
.receivable-baixa-panel .split-payment-status{margin-top:12px;}
.payment-form-modal[hidden]{display:none!important;}
.payment-form-modal{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:22px;}
.payment-form-modal-backdrop{position:absolute;inset:0;background:rgba(6,26,46,.58);backdrop-filter:blur(2px);}
.payment-form-modal-card{position:relative;width:min(1120px,96vw);max-height:min(82vh,680px);overflow:auto;border:1px solid #cbdce8;border-radius:16px;background:#fff;box-shadow:0 24px 60px rgba(8,37,60,.28);z-index:1;}
.payment-form-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 20px;border-bottom:1px solid #dce7ef;background:linear-gradient(135deg,#f7fbff,#eef6fc);}
.payment-form-modal-head h3{margin:4px 0 2px;font-size:18px;color:#123852;}
.payment-form-modal-head p{margin:0;font-size:11px;color:#6a8397;}
.payment-form-modal-head .page-kicker{font-size:9px;}
.payment-editor-table-wrap{padding:18px 20px 8px;overflow:auto;}
.payment-editor-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #d4e2ec;border-radius:12px;overflow:hidden;min-width:900px;}
.payment-editor-table th{padding:10px 11px;text-align:left;background:#eef5f9;color:#47647a;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;border-bottom:1px solid #d4e2ec;}
.payment-editor-table td{padding:12px 10px;background:#fff;vertical-align:top;}
.payment-editor-table select,.payment-editor-table input{width:100%;height:40px;min-width:0;}
.payment-editor-table .money-input{height:40px;}
.payment-editor-table small{display:block;margin-top:4px;color:#7890a2;font-size:9px;line-height:1.2;}
.payment-form-modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px 18px;border-top:1px solid #e2ebf1;background:#fbfdfe;}
.payment-form-modal-foot .button{min-height:38px;}
@media(max-width:900px){
 .receivable-baixa-panel .split-payments-table{overflow-x:auto;}
 .receivable-baixa-panel .split-payments-table-header,.receivable-baixa-panel .split-payment-row{min-width:760px;}
 .payment-form-modal{padding:10px;}
 .payment-form-modal-card{width:100%;max-height:90vh;}
 .payment-form-modal-head{padding:15px;}
 .payment-editor-table-wrap{padding:12px 15px 6px;}
 .payment-form-modal-foot{padding:12px 15px 15px;}
}
@media(max-width:620px){
 .receivable-baixa-panel .split-payments-head-table{align-items:stretch;flex-direction:column;}
 .receivable-baixa-panel .split-add-button{align-self:flex-end;}
 .payment-form-modal-foot{flex-direction:column-reverse;}
 .payment-form-modal-foot .button{width:100%;}
}


/* V77.74 — Ajuste visual da baixa: a área de formas de pagamento ocupa toda a largura do formulário. */
.receivable-baixa-panel .receivable-baixa-form,
.receivable-baixa-panel .payable-split-payment-form{
  grid-template-columns:1fr;
  gap:12px;
}
.receivable-baixa-panel .split-payments-head-table,
.receivable-baixa-panel .split-payments-table,
.receivable-baixa-panel .split-payment-status,
.receivable-baixa-panel .payment-field-full,
.receivable-baixa-panel .receivable-payment-actions{
  grid-column:1/-1;
}
.receivable-baixa-panel .split-payments-head-table{
  margin-top:2px;
  margin-bottom:0;
  box-shadow:0 2px 8px rgba(20,66,100,.035);
}
.receivable-baixa-panel .split-payments-table{
  box-shadow:0 2px 8px rgba(20,66,100,.03);
}
.receivable-baixa-panel .split-payment-status{
  width:100%;
  box-sizing:border-box;
}
@media(max-width:900px){
  .receivable-baixa-panel .payment-grid{
    grid-template-columns:1fr;
  }
}


.payment-method-config{margin-top:24px;padding:22px;border:1px solid #d7e3ef;border-radius:14px;background:#f8fbfe}
.payment-config-header{display:flex;justify-content:space-between;gap:20px;margin-bottom:18px}
.payment-config-header h2{margin:4px 0 5px;color:#193b5b;font-size:18px}
.payment-config-header p,.payment-config-section-head p{margin:0;color:#6e8296;font-size:12px;line-height:1.5}
.payment-config-section{margin-top:16px;padding:16px;border:1px solid #d9e5ef;border-radius:12px;background:#fff}
.payment-config-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.payment-config-section-head h3{margin:0 0 4px;color:#23496d;font-size:14px}
.payment-config-table-wrap{border:1px solid #dbe5ee;border-radius:10px;background:#fff}
.payment-config-table{min-width:980px;margin:0}
.payment-config-table th{background:#eef5fb;color:#58728c;font-size:10px;font-weight:900}
.payment-config-table td{padding:8px;vertical-align:middle}
.payment-config-table input,.payment-config-table select{width:100%;min-height:38px;box-sizing:border-box;padding:8px 9px;border:1px solid #b9cde1;border-radius:8px;background:#fff;color:#213d57;font-size:12px}
.payment-config-table input:focus,.payment-config-table select:focus{outline:0;border-color:#176fda;box-shadow:0 0 0 3px rgba(23,111,218,.09)}
.payment-config-table .compact-check{justify-content:center;min-height:34px;margin:0;padding:0 4px;border:0;background:transparent}
.payment-config-table .compact-check span{font-size:10px}
.payment-config-empty{padding:12px 4px 2px;color:#8092a5;font-size:11px;text-align:center}
.payment-pix-table{min-width:700px}
.payment-method-config [hidden]{display:none!important}


/* V77.95 — compras: captura de documento fiscal e tabela expandida */
.purchase-invoice-header,.purchase-transport-panel{margin-top:16px}.purchase-invoice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.purchase-invoice-grid>div{min-width:0}.purchase-invoice-grid .field-span-2{grid-column:span 2}.invoice-check{height:42px;align-self:end}.purchase-items-table .table-wrap{overflow:auto}.purchase-items-table .module-items-data-table{min-width:2300px}.purchase-items-table .module-items-data-table input,.purchase-items-table .module-items-data-table select{min-width:96px}.purchase-items-table .module-items-data-table th{white-space:nowrap}.purchase-items-table .module-items-data-table td{vertical-align:middle}.purchase-items-table .module-item-total{font-weight:700;white-space:nowrap}.purchase-financial-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.purchase-total-highlight{display:flex;flex-direction:column;justify-content:center;padding:12px 14px;border:1px solid #cfe2ff;border-radius:10px;background:#f7fbff}.purchase-total-highlight strong{font-size:1.25rem}.purchase-entry-summary{margin-top:16px}
@media (max-width:900px){.purchase-invoice-grid,.purchase-financial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-invoice-grid .field-span-2{grid-column:span 2}}
@media (max-width:650px){.purchase-invoice-grid,.purchase-financial-grid{grid-template-columns:1fr}.purchase-invoice-grid .field-span-2{grid-column:auto}}
/* V77.95 — Compras / documento fiscal */
.purchase-section-label{margin:18px 0 10px;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.purchase-fiscal-grid,.purchase-transport-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.purchase-fiscal-grid>div,.purchase-transport-grid>div{min-width:0}.purchase-invoice-header .field-full{grid-column:1/-1}.purchase-invoice-header input,.purchase-invoice-header select,.purchase-invoice-header textarea{width:100%}.purchase-items-table .purchase-items-empty{padding:12px;text-align:center}.purchase-entry-hint{display:block;margin-top:4px}.purchase-invoice-header .check-field{height:42px;display:flex;align-items:center}.purchase-fiscal-grid .purchase-total-highlight{min-height:84px}.purchase-invoice-header{margin-top:16px}.purchase-transport-grid{margin-bottom:2px}@media(max-width:1100px){.purchase-invoice-grid,.purchase-fiscal-grid,.purchase-transport-grid,.purchase-financial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-invoice-header .field-full{grid-column:1/-1}}@media(max-width:650px){.purchase-invoice-grid,.purchase-fiscal-grid,.purchase-transport-grid,.purchase-financial-grid{grid-template-columns:1fr}.purchase-invoice-header .field-full{grid-column:auto}}

@media(max-width:720px){.purchase-collapsible>summary{grid-template-columns:minmax(0,1fr) 28px}.purchase-collapsible>summary small{grid-column:1/-1;grid-row:2}.purchase-linked-field .linked-field{grid-template-columns:minmax(0,1fr) 40px}}

/* V77.97 — Compras: alinhamento do cabeçalho e tabela básica de itens */
.purchase-main-invoice-grid{grid-template-columns:repeat(7,minmax(0,1fr));align-items:end}
.purchase-main-invoice-grid>.purchase-linked-field{grid-column:span 3}
.purchase-main-invoice-grid>div:nth-child(2){grid-column:span 2}
.purchase-main-invoice-grid .purchase-linked-field label{font-size:.95rem;font-weight:800;color:#18324b}.purchase-main-invoice-grid .purchase-linked-field .linked-field select{min-height:42px}.purchase-main-invoice-grid .purchase-linked-field .linked-field{grid-template-columns:minmax(0,1fr) 42px}
.purchase-main-invoice-grid .linked-field{grid-template-columns:minmax(0,1fr) 42px;align-items:end}
.purchase-main-invoice-grid .supplier-add-action{width:40px;height:40px;font-size:21px;font-weight:700;line-height:1}
.purchase-main-invoice-grid .purchase-linked-field small{display:block;margin-top:4px}
.purchase-collapsible>summary{cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr) auto 30px;align-items:center;gap:10px;list-style:none}
.purchase-collapsible>summary::-webkit-details-marker{display:none}
.purchase-collapsible>summary>b{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid #c8ddf5;border-radius:8px;background:#edf6ff;color:#0968d7;font-size:18px;line-height:1}
.purchase-collapsible[open]>summary>b{background:#0b70df;color:#fff;border-color:#0b70df}
.purchase-items-table .module-items-data-table{min-width:820px;table-layout:fixed}
.purchase-items-table .module-items-data-table th:nth-child(1),.purchase-items-table .module-items-data-table td:nth-child(1){width:42%}
.purchase-items-table .module-items-data-table th:nth-child(2),.purchase-items-table .module-items-data-table td:nth-child(2){width:10%}
.purchase-items-table .module-items-data-table th:nth-child(3),.purchase-items-table .module-items-data-table td:nth-child(3){width:18%}
.purchase-items-table .module-items-data-table th:nth-child(4),.purchase-items-table .module-items-data-table td:nth-child(4){width:10%}
.purchase-items-table .module-items-data-table th:nth-child(5),.purchase-items-table .module-items-data-table td:nth-child(5){width:10%}
.purchase-items-table .module-items-data-table th:nth-child(6),.purchase-items-table .module-items-data-table td:nth-child(6){width:10%}
.purchase-items-table .module-items-data-table th:nth-child(7),.purchase-items-table .module-items-data-table td:nth-child(7){width:62px}
.purchase-items-table .purchase-basic-item-cell input,.purchase-items-table .purchase-basic-item-cell select{width:100%;min-width:0}
.purchase-items-table .purchase-basic-quantidade input,.purchase-items-table .purchase-basic-valor_unitario input,.purchase-items-table .purchase-basic-valor_frete input,.purchase-items-table .purchase-basic-valor_desconto input{text-align:right}
@media(max-width:1100px){.purchase-main-invoice-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.purchase-main-invoice-grid>.purchase-linked-field{grid-column:span 2}.purchase-main-invoice-grid>div:nth-child(2){grid-column:span 2}}
@media(max-width:650px){.purchase-main-invoice-grid{grid-template-columns:1fr}.purchase-main-invoice-grid>.purchase-linked-field,.purchase-main-invoice-grid>div:nth-child(2){grid-column:auto}}

/* V77.98 — Escala visual global do sistema: 90% (equivalente visual ao zoom 90% do navegador).
   Aplica-se a todas as telas internas autenticadas que usam .system-interface.
   A Agenda Pública fica fora desta regra para preservar o layout público. */
body.system-interface:not(.public-booking-page){
  zoom:0.9;
}
@media print{
  body.system-interface:not(.public-booking-page){zoom:1 !important;}
}

/* V78.07 — compras: tabela enquadrada + ações sempre visíveis. */
.purchase-items-table .module-items-data-table{width:100%;min-width:0;table-layout:fixed}
.purchase-items-table .module-items-data-table th,.purchase-items-table .module-items-data-table td{box-sizing:border-box;padding:8px 8px;vertical-align:middle}
.purchase-items-table .module-items-data-table th{overflow:visible}
.purchase-items-table .module-items-data-table .purchase-col-produto,.purchase-items-table .module-items-data-table td.purchase-basic-produto_id{width:30%}
.purchase-items-table .module-items-data-table .purchase-col-descricao,.purchase-items-table .module-items-data-table td.purchase-basic-descricao_nfe{width:20%}
.purchase-items-table .module-items-data-table .purchase-col-quantidade,.purchase-items-table .module-items-data-table td.purchase-basic-quantidade{width:8%}
.purchase-items-table .module-items-data-table .purchase-col-valor,.purchase-items-table .module-items-data-table td.purchase-basic-valor_unitario{width:15%}
.purchase-items-table .module-items-data-table .purchase-col-frete,.purchase-items-table .module-items-data-table td.purchase-basic-valor_frete{width:10%}
.purchase-items-table .module-items-data-table .purchase-col-desconto,.purchase-items-table .module-items-data-table td.purchase-basic-valor_desconto{width:9%}
.purchase-items-table .module-items-data-table .purchase-col-total,.purchase-items-table .module-items-data-table td.module-item-total{width:8%}
.purchase-items-table .module-items-data-table .purchase-col-acoes,.purchase-items-table .module-items-data-table td.module-item-actions{width:56px;text-align:center;position:sticky;right:0;z-index:4;background:#fff;box-shadow:-5px 0 10px rgba(20,50,80,.06)}
.purchase-items-table .module-items-data-table thead .purchase-col-acoes{background:#f4f8fc}
.purchase-items-table .module-items-data-table td.purchase-basic-item-cell input,.purchase-items-table .module-items-data-table td.purchase-basic-item-cell select{box-sizing:border-box;width:100%;min-width:0;height:40px}
.purchase-items-table .module-items-data-table td.purchase-basic-quantidade input,.purchase-items-table .module-items-data-table td.purchase-basic-valor_unitario input,.purchase-items-table .module-items-data-table td.purchase-basic-valor_frete input,.purchase-items-table .module-items-data-table td.purchase-basic-valor_desconto input{text-align:right}
.purchase-items-table .module-items-data-table th .systenova-table-sort-button{min-width:0;padding:7px 5px;gap:5px;line-height:1.2}
.purchase-items-table .module-items-data-table th .systenova-table-sort-label{min-width:0;white-space:normal;overflow-wrap:anywhere}
.purchase-items-table .module-items-data-table th .systenova-sort-indicator{flex:0 0 18px;width:18px;height:18px}
.purchase-items-table .module-items-data-table input.systenova-decimal-input::placeholder{color:rgba(100,116,139,.45);opacity:1}
.purchase-items-table .module-items-data-table input.systenova-decimal-input{font-variant-numeric:tabular-nums}
.systenova-decimal-input::placeholder{color:rgba(100,116,139,.45);opacity:1}

/* V78.01 — apresentação comercial no painel, escopo somente da tela principal. */
.dashboard-marketing-copy{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 26px;background:linear-gradient(135deg,#062d55 0%,#0d5ca9 58%,#0a8d58 100%);border:1px solid rgba(255,255,255,.18);border-radius:18px 18px 0 0;color:#fff;box-shadow:0 10px 28px rgba(20,60,100,.10);}
.dashboard-marketing-copy-main{max-width:760px;}
.dashboard-marketing-kicker{color:#d8f7e7!important;background:rgba(255,255,255,.08);border-color:rgba(168,245,107,.45);}
.dashboard-marketing-copy h2{margin:10px 0 8px;font-size:clamp(22px,2.1vw,32px);line-height:1.15;color:#fff;}
.dashboard-marketing-copy p{margin:0;color:rgba(255,255,255,.88);font-size:14px;line-height:1.6;max-width:760px;}
.dashboard-marketing-benefits{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:10px;min-width:390px;}
.dashboard-marketing-benefits span{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(255,255,255,.08);backdrop-filter:blur(4px);}
.dashboard-marketing-benefits strong{font-size:12px;color:#fff;}
.dashboard-marketing-benefits small{font-size:11px;line-height:1.35;color:rgba(255,255,255,.78);}
.dashboard-marketing-flow .dashboard-marketing-flow-frame{border-top-left-radius:0;border-top-right-radius:0;}
.dashboard-marketing-cta{display:flex;align-items:center;gap:10px;justify-content:center;padding:14px 18px;border:1px solid #dbe6f2;border-top:0;border-radius:0 0 18px 18px;background:#f7fbff;color:#17324d;text-align:center;}
.dashboard-marketing-cta strong{font-size:13px;}
.dashboard-marketing-cta span{font-size:12px;color:#5f758d;}
.dashboard-marketing-flow{margin-top:24px;width:100%;}
.dashboard-marketing-flow-frame{background:#fff;border:1px solid #dbe6f2;border-radius:18px;padding:10px;box-shadow:0 8px 24px rgba(20,60,100,.08);overflow:hidden;}
.dashboard-marketing-flow-frame img{display:block;width:100%;height:auto;border-radius:12px;}
@media (max-width:900px){.dashboard-marketing-flow{margin-top:18px}.dashboard-marketing-copy{flex-direction:column;align-items:stretch;padding:18px}.dashboard-marketing-benefits{min-width:0;grid-template-columns:1fr}.dashboard-marketing-cta{flex-direction:column;gap:4px}.dashboard-marketing-flow-frame{padding:6px;border-radius:14px}.dashboard-marketing-flow-frame img{border-radius:10px}}

/* V78.05 — privacidade/LGPD */
.login-privacy-footer{margin:18px auto 0;text-align:center;font-size:.82rem}.login-privacy-footer a{color:#0f6fe5;text-decoration:none}.login-privacy-footer a:hover{text-decoration:underline}
.privacy-page{min-height:100vh;padding:42px 20px;background:linear-gradient(180deg,#eef6ff 0%,#f7fbff 100%);box-sizing:border-box}.privacy-card{max-width:1100px;margin:0 auto;background:#fff;border:1px solid #d8e5f0;border-radius:22px;padding:36px;box-shadow:0 18px 50px rgba(15,58,96,.10)}.privacy-card h1{margin:10px 0 12px;font-size:2.2rem;color:#12385d}.privacy-card .lead{max-width:900px;color:#526b84;font-size:1.05rem;line-height:1.7}.privacy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:28px 0}.privacy-grid article,.privacy-section{border:1px solid #dce8f2;border-radius:16px;padding:20px;background:#fbfdff}.privacy-grid h2,.privacy-section h2{margin:0 0 8px;font-size:1.05rem;color:#163e63}.privacy-grid p,.privacy-section p{margin:0;color:#5c7288;line-height:1.65}.privacy-warning{background:#f6fbef;border-color:#cfe6a8}.lgpd-marketing-card{margin-top:18px;padding:24px;border-radius:18px;background:linear-gradient(135deg,#eefbf1,#f5fbff);border:1px solid #cde5bf}.lgpd-marketing-card h3{margin:8px 0}.lgpd-marketing-card p{max-width:820px;color:#536d83}.lgpd-marketing-card a{display:inline-block;margin-top:6px;font-weight:700;color:#0f6fe5;text-decoration:none}.print-privacy-notice{font-size:10px;color:#6c7f91}
@media(max-width:760px){.privacy-card{padding:24px}.privacy-grid{grid-template-columns:1fr}.privacy-card h1{font-size:1.8rem}}


/* V78.06 — ecossistema Systenova na landing page pública. Conteúdo institucional; não faz parte do painel interno. */
.ecosystem-section{background:linear-gradient(180deg,#f7fbff 0%,#eef6ff 100%);overflow:hidden}
.ecosystem-section .section-heading{max-width:920px}
.ecosystem-marketing-card{max-width:1320px;margin:34px auto 0;background:#fff;border:1px solid #d7e6f3;border-radius:22px;padding:10px;box-shadow:0 20px 60px rgba(15,58,96,.12);overflow:hidden}
.ecosystem-marketing-card picture,.ecosystem-marketing-card img{display:block;width:100%;height:auto}
.ecosystem-marketing-card img{border-radius:14px}
.ecosystem-highlights{max-width:1160px;margin:20px auto 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ecosystem-highlights article{display:flex;flex-direction:column;gap:6px;padding:20px;border:1px solid #dbe8f2;border-radius:15px;background:rgba(255,255,255,.84)}
.ecosystem-highlights strong{font-size:15px;color:var(--navy)}
.ecosystem-highlights span{font-size:13px;line-height:1.5;color:var(--muted)}
@media(max-width:900px){.ecosystem-marketing-card{padding:6px;border-radius:16px}.ecosystem-marketing-card img{border-radius:10px}.ecosystem-highlights{grid-template-columns:1fr}}


/* V78.08 — correção do fluxo vertical da landing page. */
.site-public-main{display:block !important;width:100%;max-width:none;clear:both;overflow:visible}
.site-public-main>section{display:block;width:100%;float:none;clear:both;box-sizing:border-box}
.site-public-main>.hero{display:grid;width:100%;float:none;clear:both}
.site-public-main>.ecosystem-section{display:block;width:100%;position:relative;clear:both;float:none;box-sizing:border-box}

@media(max-width:980px){.how-section{grid-template-columns:1fr;padding:76px 28px}.how-copy{max-width:none}.how-journey{grid-template-columns:1fr;gap:26px}.how-visual{min-height:320px}.onboarding-window{transform:none;max-width:620px;margin-inline:auto}}
@media(max-width:760px){.how-section{padding:68px 22px}.how-trust{display:grid;grid-template-columns:1fr 1fr;gap:8px}.how-journey{gap:22px}.steps:before{display:none}.step-card{padding:15px}.step-mark{grid-template-columns:40px 32px;min-width:78px}.step-mark b{width:40px;height:40px}.step-card small{font-size:12px}.how-visual{min-height:280px}.onboarding-window{width:100%;border-radius:16px}.onboarding-body{grid-template-columns:46px 1fr;min-height:0}.onboarding-sidebar{padding:11px 8px}.onboarding-content{padding:18px 15px}.onboarding-heading strong{font-size:16px}.onboarding-list>div{padding:8px}.onboarding-progress{align-items:flex-start;flex-direction:column;gap:6px}.onboarding-progress span{width:100%}.onboarding-footer{align-items:stretch;flex-direction:column;gap:8px}.onboarding-footer strong{text-align:center}}


/* V78.10 — Venda Balcão / PDV unificado */
.pdv-unified{display:flex;flex-direction:column;gap:18px}
.pdv-panel{padding:20px}
.pdv-section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.pdv-section-head.compact{margin-bottom:12px}
.pdv-section-head h2{margin:4px 0;font-size:21px;color:#123a5b}
.pdv-section-head p{margin:0;color:#6b7e91;font-size:13px}
.pdv-shortcut{margin-left:8px;padding:2px 7px;border-radius:6px;background:rgba(255,255,255,.16);font-size:11px}
.pdv-items-table-wrap{overflow:auto;border:1px solid #d8e5f0;border-radius:12px;background:#fff}
.pdv-items-table{width:100%;min-width:900px;border-collapse:separate;border-spacing:0;table-layout:fixed}
.pdv-items-table th,.pdv-items-table td{padding:10px 12px;border-bottom:1px solid #e7eef5;vertical-align:middle}
.pdv-items-table th{background:#f3f8fc;color:#567087;font-size:11px;text-transform:uppercase;letter-spacing:.04em;text-align:left;white-space:nowrap}
.pdv-items-table th:not(:first-child),.pdv-items-table td:not(:first-child){text-align:right}
.pdv-items-table th:last-child,.pdv-items-table td:last-child{text-align:center;position:sticky;right:0;background:#fff;box-shadow:-5px 0 10px rgba(22,61,91,.06);z-index:2}
.pdv-items-table th:last-child{background:#f3f8fc}
.pdv-col-produto{width:28%}.pdv-col-desc{width:22%}.pdv-col-qtd{width:9%}.pdv-col-unit{width:13%}.pdv-col-descconto{width:12%}.pdv-col-total{width:11%}.pdv-col-acoes{width:5%}
.pdv-items-table input,.pdv-items-table select{width:100%;height:40px;border:1px solid #bad0e4;border-radius:8px;padding:0 10px;background:#fff;color:#173f61;box-sizing:border-box}
.pdv-product-picker{width:100%;min-height:40px;border:1px solid #bad0e4;border-radius:8px;padding:9px 11px;background:#fff;color:#173f61;text-align:left;cursor:pointer}
.pdv-product-picker.empty{color:#8ba0b2;border-style:dashed}
.pdv-total-cell{font-weight:700;color:#123a5b;white-space:nowrap}
.pdv-actions-cell{min-width:58px}
.pdv-add-line{margin-top:12px}
.pdv-secondary-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(460px,1.2fr);gap:20px}
.pdv-client-box,.pdv-payment-box{min-width:0}
.pdv-client-box>label,.pdv-payment-box label{display:block;color:#49667c;font-size:12px;font-weight:700}
.pdv-client-box select,.pdv-payment-box select,.pdv-payment-box input{width:100%;height:42px;margin-top:6px;border:1px solid #bad0e4;border-radius:9px;padding:0 12px;background:#fff;color:#173f61;box-sizing:border-box}
.pdv-payment-add-row{display:grid;grid-template-columns:minmax(260px,1fr) 170px 46px 190px;gap:10px;align-items:end}
.pdv-payment-add-row .button{height:42px;padding:0;font-size:22px}
.pdv-caixa-field{margin-top:12px}
.pdv-payments-list{border:1px solid #d8e5f0;border-radius:10px;overflow:hidden;margin-top:12px}
.pdv-payment-line{display:grid;grid-template-columns:1fr auto 38px;gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid #e8eef4;background:#fff}
.pdv-payment-line:last-child{border-bottom:0}
.pdv-payment-info{display:flex;align-items:center;gap:10px;text-align:left}
.pdv-payment-icon{width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#e9f3ff;color:#0b67d8;font-weight:800}
.pdv-payment-info strong{display:block;color:#173e5e}.pdv-payment-info small{display:block;color:#71869a;margin-top:2px}
.pdv-remaining{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding:12px 14px;border-radius:10px;border:1px solid #f1cf99;background:#fff7e6;color:#7b5a22}
.pdv-remaining strong{font-size:18px}.pdv-remaining.complete{border-color:#b9e4c8;background:#ecfbf1;color:#157341}.pdv-remaining.pending{border-color:#f0c38b;background:#fff6e6;color:#8a5c13}
.pdv-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border:1px solid #d8e5f0;border-radius:12px;background:#fff;position:sticky;bottom:12px;z-index:10;box-shadow:0 8px 22px rgba(18,58,91,.08)}
.pdv-footer-total span{display:block;color:#6c8094;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.pdv-footer-total strong{display:block;font-size:30px;color:#0b67d8;margin-top:2px}.pdv-footer-actions{display:flex;gap:10px}
.pdv-search-overlay[hidden]{display:none!important}.pdv-search-overlay{position:fixed;inset:0;z-index:10000;background:rgba(7,28,48,.55);display:flex;align-items:center;justify-content:center;padding:22px}
.pdv-search-dialog{width:min(760px,96vw);max-height:86vh;display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.35);overflow:hidden}
.pdv-search-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;background:linear-gradient(120deg,#0b3e68,#0b74db);color:#fff}.pdv-search-dialog-head h2{margin:4px 0;font-size:22px}.pdv-search-dialog-head p{margin:0;color:#d7ecff;font-size:13px}.pdv-search-dialog-body{padding:18px;overflow:auto}.pdv-search-dialog-body>input{width:100%;height:46px;border:1px solid #a9c5dc;border-radius:9px;padding:0 14px;font-size:16px;box-sizing:border-box}
.pdv-search-results{display:flex;flex-direction:column;gap:8px}.pdv-search-result{display:grid;grid-template-columns:minmax(0,1fr) 130px 42px;align-items:center;gap:12px;width:100%;padding:10px 12px;border:1px solid #d6e4ef;border-radius:10px;background:#fff;text-align:left}.pdv-search-result:hover{border-color:#6ca9df;box-shadow:0 6px 16px rgba(11,103,216,.08)}.pdv-search-result-main{min-width:0;cursor:pointer}.pdv-search-result-main strong{display:block;color:#163f60;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdv-search-result-main small{display:block;color:#71869a;margin-top:3px;font-size:11px}.pdv-search-result-price{font-weight:800;color:#0b67d8;text-align:right;white-space:nowrap}.pdv-search-result-add{width:36px;height:36px;border:1px solid #9ec2e3;border-radius:8px;background:#f4f9fd;color:#0b67d8;font-size:20px;font-weight:800;cursor:pointer;display:grid;place-items:center}.pdv-search-result-add:hover{background:#0b67d8;color:#fff}.pdv-payment-add-row{display:grid;grid-template-columns:minmax(260px,1fr) 170px 46px 190px;gap:10px;align-items:end}.pdv-payment-add-row>.button{height:42px;display:grid;place-items:center;align-self:end;margin:0;padding:0 12px;line-height:1}.pdv-payment-add-row>.pdv-payment-split{width:46px;font-size:21px}.pdv-payment-add-row>.pdv-payment-confirm{width:190px;font-size:13px;white-space:nowrap}.pdv-caixa-field{margin-top:12px}
@media(max-width:900px){.pdv-secondary-grid{grid-template-columns:1fr}.pdv-footer{position:static;flex-direction:column;align-items:stretch}.pdv-footer-actions{justify-content:flex-end}}
@media(max-width:620px){.pdv-section-head{flex-direction:column;align-items:stretch}.pdv-payment-add-row{grid-template-columns:1fr 1fr 48px 1fr}.pdv-footer-actions{flex-wrap:wrap}.pdv-footer-actions .button{flex:1}.pdv-footer-total strong{font-size:26px}}

/* V78.12 — lista de produtos do PDV e recibo A4 com identidade da empresa SaaS. */
@page{size:A4 portrait;margin:12mm}
@media print{body.pdv-receipt-print{background:#fff!important}.pdv-receipt-sheet{width:100%;min-height:257mm;padding:0}.pdv-receipt-toolbar{display:none!important}}

/* V78.16 — identidade de impressão única e dinâmica por empresa/tenant. */
.systenova-print-shared-header .print-company-brand,
.systenova-print-shared-header .oficina-print-brand-v59{min-width:0;}
.systenova-print-shared-header .oficina-print-company-v59 span{white-space:normal;overflow-wrap:anywhere;}
.systenova-print-shared-header .oficina-print-footer-company-v59 span{overflow-wrap:anywhere;}
@media print{
  .systenova-print-shared-header .print-company-brand,
  .systenova-print-shared-header .oficina-print-brand-v59{min-width:0;}
  .systenova-print-shared-header .print-company-brand address,
  .systenova-print-shared-header address{overflow-wrap:anywhere;}
}

/* V78.17 — padrão definitivo de impressão dos relatórios.
 * Relatórios usam a mesma identidade de empresa dos demais documentos,
 * tabela compacta e área fixa para cabeçalho/rodapé repetidos.
 */
.report-print-shell{display:none;}
.report-print-shared-header,.report-print-shared-footer{display:none;}
.print-system-credit a{color:inherit;text-decoration:none;font-weight:800;}
.print-system-credit a:hover{text-decoration:underline;}
@media print{
  @page{size:A4 portrait;margin:0;}
  html,body{margin:0!important;padding:0!important;background:#fff!important;}
  .skip-link{display:none!important;}
  .system-interface .reports-home-header,.system-interface .reports-home-intro,.system-interface .reports-card-grid,
  .system-interface .page-header,.system-interface .report-menu,.system-interface .report-filters{display:none!important;}
  .system-interface .main{margin:0!important;}
  .system-interface .content{max-width:none!important;padding:0!important;}
  .system-interface .report-print-shell{display:block!important;position:relative;box-sizing:border-box;width:210mm;min-height:297mm;margin:0;padding:45mm 9mm 25mm;background:#fff;color:#17364f;-webkit-print-color-adjust:exact;print-color-adjust:exact;}

  /* Cabeçalho/rodapé são fixos e, portanto, reaparecem em cada página gerada. */
  .system-interface .report-print-shared-header{display:grid!important;position:fixed!important;top:7mm!important;left:9mm!important;right:9mm!important;z-index:100!important;grid-template-columns:minmax(0,1fr) 76mm;grid-template-rows:auto auto;gap:2mm 8mm;box-sizing:border-box;padding:0 0 3mm;background:#fff;border-bottom:1px solid #d6e1ea;}
  .system-interface .report-print-shared-brand{display:flex;align-items:center;gap:4mm;min-width:0;}
  .system-interface .report-print-shared-logo{width:35mm;height:18mm;display:flex;align-items:center;justify-content:flex-start;overflow:hidden;flex:0 0 auto;}
  .system-interface .report-print-shared-logo img{display:block;max-width:35mm;max-height:18mm;width:auto;height:auto;object-fit:contain;object-position:left center;}
  .system-interface .report-print-shared-company{display:grid;gap:.6mm;min-width:0;}
  .system-interface .report-print-shared-company strong{font:900 10.5pt/1.05 Manrope,Arial,sans-serif;color:#0c2c47;}
  .system-interface .report-print-shared-company span{font-size:5.3pt;color:#5b7184;line-height:1.2;overflow-wrap:anywhere;}
  .system-interface .report-print-shared-contact{display:grid;align-content:start;justify-items:end;gap:.7mm;color:#526a7e;font-size:5.6pt;line-height:1.25;text-align:right;overflow-wrap:anywhere;}
  .system-interface .report-print-shared-title{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:5mm;padding:2mm 2.5mm;border-left:3px solid #0f6fe5;background:#f3f8fc;}
  .system-interface .report-print-shared-title span{font:900 6.7pt/1 Manrope,Arial,sans-serif;letter-spacing:.09em;color:#0c5b91;}
  .system-interface .report-print-shared-title small{font-size:5.5pt;font-weight:800;color:#6a8092;}

  .system-interface .report-print-shared-footer{display:grid!important;position:fixed!important;left:9mm!important;right:9mm!important;bottom:6mm!important;z-index:100!important;grid-template-columns:minmax(0,1fr) auto;gap:6mm;box-sizing:border-box;min-height:16mm;padding:2.2mm 2.8mm;background:#0b4569;color:#fff;}
  .system-interface .report-print-shared-footer-company{display:grid;gap:.45mm;min-width:0;}
  .system-interface .report-print-shared-footer-company strong{font:900 6.7pt/1.05 Manrope,Arial,sans-serif;}
  .system-interface .report-print-shared-footer-company span{font-size:4.8pt;line-height:1.2;overflow-wrap:anywhere;}
  .system-interface .report-print-system-credit{font-weight:700;}
  .system-interface .report-print-system-credit a{color:#fff;text-decoration:underline;}
  .system-interface .report-print-page-label{display:grid;justify-items:end;align-content:end;gap:1mm;font-size:4.8pt;font-weight:800;white-space:nowrap;}
  .system-interface .report-print-page-counter:after{content:'Página ' counter(page) ' de ' counter(pages);}
  .system-interface .report-print-page-counter{font-size:5.6pt;}
  .system-interface .report-print-page-counter .page-current{display:none;}

  /* Página de rosto: somente título/descrição/período; não é repetida. */
  .system-interface .report-print-cover{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8mm;align-items:end;margin:0 0 5mm;padding:4mm 5mm;border-left:4px solid #0f6fe5;background:#f3f8fc;break-inside:avoid;page-break-inside:avoid;}
  .system-interface .report-print-cover>div{display:grid;gap:1mm;}
  .system-interface .report-print-cover>div>span{font-size:6pt;font-weight:900;letter-spacing:.11em;color:#0f6fe5;}
  .system-interface .report-print-cover h1{margin:0;font:900 18pt/1.08 Manrope,Arial,sans-serif;color:#102f49;}
  .system-interface .report-print-cover p{margin:0;color:#657b8e;font-size:7pt;line-height:1.35;}
  .system-interface .report-print-cover dl{display:flex;gap:6mm;margin:0;}
  .system-interface .report-print-cover dl div{display:grid;gap:.7mm;min-width:28mm;}
  .system-interface .report-print-cover dt{font-size:5pt;font-weight:900;text-transform:uppercase;color:#7b8e9f;}
  .system-interface .report-print-cover dd{margin:0;font-size:6.7pt;font-weight:800;color:#21425b;white-space:nowrap;}

  .system-interface .report-layout{display:block!important;margin:0!important;}
  .system-interface .report-layout>section{display:block!important;width:100%!important;}
  .system-interface .report-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:2.5mm;margin:0 0 4mm!important;break-inside:avoid;page-break-inside:avoid;}
  .system-interface .report-summary article{padding:2.6mm 3mm!important;border:1px solid #dce6ee;border-radius:1.5mm;box-shadow:none!important;}
  .system-interface .report-summary span{font-size:5.4pt!important;text-transform:uppercase;letter-spacing:.04em;}
  .system-interface .report-summary strong{margin-top:1mm;font-size:9pt!important;line-height:1.15;}
  .system-interface .report-table-panel{border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;overflow:visible!important;}
  .system-interface .report-table-panel .table-wrap{padding:0!important;overflow:visible!important;}
  .system-interface .report-table{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important;}
  .system-interface .report-table thead{display:table-header-group!important;}
  .system-interface .report-table tfoot{display:table-footer-group!important;}
  .system-interface .report-table th{padding:1.6mm 1.4mm!important;border:1px solid #cbd9e4!important;background:#e7f0f5!important;color:#31536b!important;font-size:5.3pt!important;font-weight:900!important;line-height:1.1!important;letter-spacing:.035em!important;text-transform:uppercase;white-space:normal!important;}
  .system-interface .report-table td{padding:1.45mm 1.4mm!important;border:1px solid #e1e8ee!important;color:#29465e!important;font-size:6.2pt!important;line-height:1.18!important;vertical-align:middle!important;overflow-wrap:anywhere!important;word-break:normal!important;}
  .system-interface .report-table tbody tr{break-inside:avoid!important;page-break-inside:avoid!important;}
  .system-interface .report-table tbody tr:nth-child(even){background:#f8fbfd!important;}
  .system-interface .report-table td:first-child,.system-interface .report-table th:first-child{white-space:nowrap!important;}
  .system-interface .report-table td:nth-last-child(-n+3){font-variant-numeric:tabular-nums;}

  /* Lista de vendas: largura planejada para as oito colunas em A4 sem cartões. */
  .system-interface .report-print-vendas .report-table th:nth-child(1),.system-interface .report-print-vendas .report-table td:nth-child(1){width:20mm;}
  .system-interface .report-print-vendas .report-table th:nth-child(2),.system-interface .report-print-vendas .report-table td:nth-child(2){width:18mm;}
  .system-interface .report-print-vendas .report-table th:nth-child(3),.system-interface .report-print-vendas .report-table td:nth-child(3){width:38mm;}
  .system-interface .report-print-vendas .report-table th:nth-child(4),.system-interface .report-print-vendas .report-table td:nth-child(4){width:27mm;}
  .system-interface .report-print-vendas .report-table th:nth-child(5),.system-interface .report-print-vendas .report-table td:nth-child(5){width:19mm;}
  .system-interface .report-print-vendas .report-table th:nth-child(6),.system-interface .report-print-vendas .report-table td:nth-child(6){width:auto;}
  .system-interface .report-print-vendas .report-table th:nth-child(7),.system-interface .report-print-vendas .report-table td:nth-child(7){width:18mm;text-align:center;}
  .system-interface .report-print-vendas .report-table th:nth-child(8),.system-interface .report-print-vendas .report-table td:nth-child(8){width:24mm;text-align:right;white-space:nowrap!important;}
}

/* V78.17 — paginação própria do relatório; o total é calculado pela página do sistema. */
@media print{
  .system-interface .report-print-page-counter:after{content:'Página ' counter(page) ' de ' attr(data-total-pages);}
}

/* V78.18 — REGRESSÃO CORRIGIDA: tela e impressão são camadas independentes. */
.report-print-only{display:none!important;}
.report-screen-layer{display:block;}
@media print{
  .system-interface .report-screen-layer{display:none!important;}
  .system-interface .report-print-only{display:block!important;}
  .system-interface .report-print-sheet{display:block!important;position:relative;box-sizing:border-box;width:210mm;min-height:297mm;margin:0;padding:45mm 9mm 25mm;background:#fff;color:#17364f;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
  .system-interface .report-print-only .report-print-shared-header{display:grid!important;position:fixed!important;top:7mm!important;left:9mm!important;right:9mm!important;z-index:100!important;grid-template-columns:minmax(0,1fr) 76mm;grid-template-rows:auto auto;gap:2mm 8mm;box-sizing:border-box;padding:0 0 3mm;background:#fff;border-bottom:1px solid #d6e1ea;}
  .system-interface .report-print-only .report-print-shared-footer{display:grid!important;position:fixed!important;left:9mm!important;right:9mm!important;bottom:6mm!important;z-index:100!important;grid-template-columns:minmax(0,1fr) auto;gap:6mm;box-sizing:border-box;min-height:16mm;padding:2.2mm 2.8mm;background:#0b4569;color:#fff;}
  .system-interface .report-print-only .report-print-cover{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8mm;align-items:end;margin:0 0 4mm;padding:4mm 5mm;border-left:4px solid #0f6fe5;background:#f3f8fc;break-inside:avoid;page-break-inside:avoid;}
  .system-interface .report-print-only .report-print-cover>div{display:grid;gap:1mm;}
  .system-interface .report-print-only .report-print-cover>div>span{font-size:6pt;font-weight:900;letter-spacing:.11em;color:#0f6fe5;}
  .system-interface .report-print-only .report-print-cover h1{margin:0;font:900 18pt/1.08 Manrope,Arial,sans-serif;color:#102f49;}
  .system-interface .report-print-only .report-print-cover p{margin:0;color:#657b8e;font-size:7pt;line-height:1.35;}
  .system-interface .report-print-only .report-print-cover dl{display:flex;gap:6mm;margin:0;}
  .system-interface .report-print-only .report-print-cover dl div{display:grid;gap:.7mm;min-width:28mm;}
  .system-interface .report-print-only .report-print-cover dt{font-size:5pt;font-weight:900;text-transform:uppercase;color:#7b8e9f;}
  .system-interface .report-print-only .report-print-cover dd{margin:0;font-size:6.7pt;font-weight:800;color:#21425b;white-space:nowrap;}
  .system-interface .report-print-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.5mm;margin:0 0 4mm;break-inside:avoid;page-break-inside:avoid;}
  .system-interface .report-print-summary article{padding:2.6mm 3mm;border:1px solid #dce6ee;border-radius:1.5mm;}
  .system-interface .report-print-summary span{display:block;font-size:5.4pt;text-transform:uppercase;letter-spacing:.04em;color:#6b8192;}
  .system-interface .report-print-summary strong{display:block;margin-top:1mm;font-size:9pt;line-height:1.15;color:#173f5d;}
  .system-interface .report-print-table-wrap{width:100%;overflow:visible;}
  .system-interface .report-print-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;}
  .system-interface .report-print-table thead{display:table-header-group;}
  .system-interface .report-print-table th{padding:1.6mm 1.4mm;border:1px solid #cbd9e4;background:#e7f0f5;color:#31536b;font-size:5.3pt;font-weight:900;line-height:1.1;text-transform:uppercase;}
  .system-interface .report-print-table td{padding:1.45mm 1.4mm;border:1px solid #e1e8ee;color:#29465e;font-size:6.2pt;line-height:1.18;vertical-align:middle;overflow-wrap:anywhere;}
  .system-interface .report-print-table tbody tr{break-inside:avoid;page-break-inside:avoid;}
  .system-interface .report-print-table tbody tr:nth-child(even){background:#f8fbfd;}
  .system-interface .report-print-vendas .report-print-table th:nth-child(1),.system-interface .report-print-vendas .report-print-table td:nth-child(1){width:20mm;}
  .system-interface .report-print-vendas .report-print-table th:nth-child(2),.system-interface .report-print-vendas .report-print-table td:nth-child(2){width:18mm;}
  .system-interface .report-print-vendas .report-print-table th:nth-child(3),.system-interface .report-print-vendas .report-print-table td:nth-child(3){width:38mm;}
  .system-interface .report-print-vendas .report-print-table th:nth-child(4),.system-interface .report-print-vendas .report-print-table td:nth-child(4){width:27mm;}
  .system-interface .report-print-vendas .report-print-table th:nth-child(5),.system-interface .report-print-vendas .report-print-table td:nth-child(5){width:19mm;}
  .system-interface .report-print-vendas .report-print-table th:nth-child(7),.system-interface .report-print-vendas .report-print-table td:nth-child(7){width:18mm;text-align:center;}
  .system-interface .report-print-vendas .report-print-table th:nth-child(8),.system-interface .report-print-vendas .report-print-table td:nth-child(8){width:24mm;text-align:right;white-space:nowrap;}
}

/* V78.19 — Topbar: atalhos de ação destacados e notificações da agenda pública. */
.system-interface .topbar-actions{display:flex;align-items:center;gap:7px;margin-left:4px;padding-left:4px;}
.system-interface .topbar-actions .top-icon{position:relative;flex:0 0 40px;width:40px;height:40px;border:1px solid transparent;border-radius:10px;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;}
.system-interface .topbar-actions .top-icon .app-icon{width:19px;height:19px;}
.system-interface .topbar-actions .top-icon-theme{background:transparent;color:#26445e;border-color:transparent;}
.system-interface .topbar-actions .top-icon-theme:hover{background:#f1f5f9;color:var(--ui-blue);}
.system-interface .topbar-actions .financial-shortcut.is-receivable{background:#e9f8ef;color:#20945a;border-color:#c9ecd8;}
.system-interface .topbar-actions .financial-shortcut.is-receivable:hover{background:#dcf3e6;border-color:#b5e4ca;}
.system-interface .topbar-actions .financial-shortcut.is-payable{background:#fff0f1;color:#d5434d;border-color:#f5d0d4;}
.system-interface .topbar-actions .financial-shortcut.is-payable:hover{background:#ffe5e7;border-color:#efbfc5;}
.system-interface .topbar-actions .agenda-notification{position:relative;display:flex;align-items:center;}
.system-interface .topbar-actions .agenda-notification-trigger{background:#eaf3ff;color:#1775d1;border-color:#cfe2f8;cursor:pointer;}
.system-interface .topbar-actions .agenda-notification-trigger:hover,.system-interface .topbar-actions .agenda-notification-trigger[aria-expanded="true"]{background:#dcecff;border-color:#b8d5f4;color:#0f65ba;}
.system-interface .topbar-actions .financial-shortcut b,.system-interface .topbar-actions .agenda-notification-trigger b{position:absolute;top:-3px;right:-3px;z-index:3;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border:2px solid #fff;border-radius:99px;color:#fff;font-size:9px;line-height:1;font-weight:900;box-sizing:border-box;}
.system-interface .topbar-actions .financial-shortcut.is-receivable b{background:#24a461;}
.system-interface .topbar-actions .financial-shortcut.is-payable b{background:#df3d45;}
.system-interface .topbar-actions .agenda-notification-trigger b{background:#1976d2;}
.system-interface .agenda-notification-popover{position:absolute;top:47px;right:-12px;z-index:100;display:block;width:350px;max-width:min(350px,calc(100vw - 24px));overflow:hidden;border:1px solid #d8e4ef;border-radius:14px;background:#fff;box-shadow:0 20px 50px rgba(6,31,56,.2);color:#17364f;}
.system-interface .agenda-notification-popover[hidden]{display:none!important;}
.system-interface .agenda-notification-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;border-bottom:1px solid #e5edf4;background:#f8fbfe;}
.system-interface .agenda-notification-head>div{display:grid;gap:3px;min-width:0;}
.system-interface .agenda-notification-head strong{font-size:12px;color:#123a59;}
.system-interface .agenda-notification-head small{color:#6c8295;font-size:9.5px;}
.system-interface .agenda-notification-head>span{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:9px;background:#eaf3ff;color:#1775d1;}
.system-interface .agenda-notification-head .app-icon{width:18px;height:18px;}
.system-interface .agenda-notification-list{display:grid;max-height:300px;overflow:auto;}
.system-interface .agenda-notification-item{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;padding:12px 14px;border-bottom:1px solid #edf2f6;color:#23445e;text-decoration:none;transition:background .15s ease;}
.system-interface .agenda-notification-item:hover{background:#f5faff;}
.system-interface .agenda-notification-item-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#eef6ff;color:#1976d2;}
.system-interface .agenda-notification-item-icon .app-icon{width:16px;height:16px;}
.system-interface .agenda-notification-item>span:last-child{display:grid;gap:3px;min-width:0;}
.system-interface .agenda-notification-item strong{overflow:hidden;color:#183b57;font-size:11px;text-overflow:ellipsis;white-space:nowrap;}
.system-interface .agenda-notification-item small{overflow:hidden;color:#6d8294;font-size:9px;text-overflow:ellipsis;white-space:nowrap;}
.system-interface .agenda-notification-item em{overflow:hidden;color:#1976d2;font-size:8.5px;font-style:normal;font-weight:800;text-overflow:ellipsis;white-space:nowrap;}
.system-interface .agenda-notification-empty{display:grid;justify-items:center;gap:5px;padding:26px 18px;text-align:center;}
.system-interface .agenda-notification-empty>span{display:grid;place-items:center;width:36px;height:36px;margin-bottom:3px;border-radius:50%;background:#eaf8f0;color:#22965a;font-weight:900;}
.system-interface .agenda-notification-empty strong{font-size:11px;color:#23445e;}
.system-interface .agenda-notification-empty small{max-width:240px;color:#7b8d9d;font-size:9px;line-height:1.4;}
.system-interface .agenda-notification-footer{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;background:#f8fbfe;color:#0f6fe5;font-size:10px;font-weight:900;text-decoration:none;}
.system-interface .agenda-notification-footer:hover{background:#eef6ff;}
.system-interface .agenda-notification-footer span{font-size:16px;line-height:1;}
.system-interface .topbar-actions+.user-menu{margin-left:5px;}

[data-theme="escuro"] .system-interface .topbar-actions .top-icon-theme{color:#d5e7f8;}
[data-theme="escuro"] .system-interface .topbar-actions .top-icon-theme:hover{background:#283447;color:#8ec7ff;}
[data-theme="escuro"] .system-interface .topbar-actions .financial-shortcut.is-receivable{background:#173526;color:#6bd39a;border-color:#27563d;}
[data-theme="escuro"] .system-interface .topbar-actions .financial-shortcut.is-payable{background:#3a2024;color:#ff8e96;border-color:#63343a;}
[data-theme="escuro"] .system-interface .topbar-actions .agenda-notification-trigger{background:#172f4c;color:#78b8ff;border-color:#2b527c;}
[data-theme="escuro"] .system-interface .agenda-notification-popover{background:#202a38;border-color:#41536a;color:#eaf1f8;}
[data-theme="escuro"] .system-interface .agenda-notification-head{background:#253143;border-color:#394b60;}
[data-theme="escuro"] .system-interface .agenda-notification-head strong,.system-interface .agenda-notification-item strong{color:#edf4fb;}
[data-theme="escuro"] .system-interface .agenda-notification-head small,.system-interface .agenda-notification-item small{color:#aab8c6;}
[data-theme="escuro"] .system-interface .agenda-notification-item{border-color:#354558;color:#dbe6ef;}
[data-theme="escuro"] .system-interface .agenda-notification-item:hover{background:#273447;}
[data-theme="escuro"] .system-interface .agenda-notification-empty{color:#eaf1f8;}
[data-theme="escuro"] .system-interface .agenda-notification-empty strong{color:#edf4fb;}
[data-theme="escuro"] .system-interface .agenda-notification-footer{background:#253143;color:#83bfff;}
[data-theme="escuro"] .system-interface .agenda-notification-footer:hover{background:#2b3b50;}

@media(max-width:900px){
    .system-interface .topbar-actions{gap:5px;margin-left:0;padding-left:0;}
    .system-interface .topbar-actions .top-icon{flex-basis:36px;width:36px;height:36px;border-radius:9px;}
    .system-interface .topbar-actions .top-icon .app-icon{width:17px;height:17px;}
    .system-interface .agenda-notification-popover{top:44px;right:-8px;}
}
@media(max-width:650px){
    .system-interface .topbar-actions{display:flex;margin-left:auto;}
    .system-interface .topbar-actions .top-icon{flex-basis:34px;width:34px;height:34px;border-radius:8px;}
    .system-interface .topbar-actions .top-icon-theme{display:grid;}
    .system-interface .topbar-actions .financial-shortcut .financial-popover{display:none!important;}
    .system-interface .agenda-notification-popover{position:fixed;top:58px;left:10px;right:10px;width:auto;max-width:none;}
    .system-interface .topbar-actions .financial-shortcut b,.system-interface .topbar-actions .agenda-notification-trigger b{min-width:15px;height:15px;font-size:8px;top:-2px;right:-2px;}
    .system-interface .topbar-actions+.user-menu{margin-left:2px;}
}

/* V78.33 — layout compacto dos itens da compra conforme modelo tabular aprovado */
.purchase-items-table .module-items-data-table{width:100%;min-width:0;table-layout:fixed}
.purchase-items-table .module-items-data-table th,
.purchase-items-table .module-items-data-table td{padding:8px 9px;vertical-align:middle;box-sizing:border-box}
.purchase-items-table .module-items-data-table .purchase-col-produto,
.purchase-items-table .module-items-data-table td.purchase-basic-produto_id{width:34%}
.purchase-items-table .module-items-data-table .purchase-col-quantidade,
.purchase-items-table .module-items-data-table td.purchase-basic-quantidade{width:10%}
.purchase-items-table .module-items-data-table .purchase-col-valor,
.purchase-items-table .module-items-data-table td.purchase-basic-valor_unitario{width:17%}
.purchase-items-table .module-items-data-table .purchase-col-frete,
.purchase-items-table .module-items-data-table td.purchase-basic-valor_frete{width:10%}
.purchase-items-table .module-items-data-table .purchase-col-desconto,
.purchase-items-table .module-items-data-table td.purchase-basic-valor_desconto{width:10%}
.purchase-items-table .module-items-data-table .purchase-col-total,
.purchase-items-table .module-items-data-table td.module-item-total{width:12%;white-space:nowrap}
.purchase-items-table .module-items-data-table .purchase-col-acoes,
.purchase-items-table .module-items-data-table td.module-item-actions{width:86px;text-align:center}
.purchase-items-table .module-item-row-actions{justify-content:center;gap:5px}
.purchase-items-table .module-item-row-actions .icon-button{width:32px;height:32px}
.purchase-items-table .module-items-data-table td.purchase-basic-item-cell input,
.purchase-items-table .module-items-data-table td.purchase-basic-item-cell select{width:100%;min-width:0;height:38px;box-sizing:border-box}
.purchase-items-table .module-items-data-table td.purchase-basic-quantidade input,
.purchase-items-table .module-items-data-table td.purchase-basic-valor_unitario input,
.purchase-items-table .module-items-data-table td.purchase-basic-valor_frete input,
.purchase-items-table .module-items-data-table td.purchase-basic-valor_desconto input{text-align:right}
.purchase-items-table .module-items-data-table tr.is-editing{background:#f4f9ff;box-shadow:inset 3px 0 #0b70df}
@media(max-width:900px){.purchase-items-table .module-items-data-table{min-width:760px}}

/* V78.37 — Compra: campos dos itens com caixas consistentes e seção financeira após os itens. */
.purchase-items-table .module-items-data-table td.purchase-basic-item-cell{
    padding:7px 8px;
    background:#fff;
}
.purchase-items-table .module-items-data-table td.purchase-basic-item-cell input,
.purchase-items-table .module-items-data-table td.purchase-basic-item-cell select{
    width:100%;
    min-width:0;
    height:42px;
    box-sizing:border-box;
    border:1px solid #b9d3ee;
    border-radius:10px;
    background:#fff;
    color:#16324f;
    padding:0 11px;
    box-shadow:inset 0 1px 2px rgba(25,65,105,.04);
    transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.purchase-items-table .module-items-data-table td.purchase-basic-item-cell input:focus,
.purchase-items-table .module-items-data-table td.purchase-basic-item-cell select:focus{
    outline:0;
    border-color:#1674df;
    box-shadow:0 0 0 3px rgba(22,116,223,.12);
}
.purchase-items-table .module-items-data-table td.purchase-basic-quantidade input,
.purchase-items-table .module-items-data-table td.purchase-basic-valor_unitario input,
.purchase-items-table .module-items-data-table td.purchase-basic-valor_frete input,
.purchase-items-table .module-items-data-table td.purchase-basic-valor_desconto input{
    text-align:right;
    font-variant-numeric:tabular-nums;
}
.purchase-items-table .module-items-data-table td.purchase-basic-quantidade input{font-weight:600;}
.purchase-items-table .module-items-data-table td.module-item-total{
    padding-left:9px;
    padding-right:9px;
    font-weight:800;
    white-space:nowrap;
    color:#15395e;
}
.purchase-items-table .module-item-row-actions{gap:6px;}
.purchase-items-table .module-item-row-actions .icon-button{
    width:34px;
    height:34px;
    border-radius:9px;
}
.purchase-financial-panel{
    margin-top:18px;
}
.purchase-financial-panel .panel-heading{
    margin-bottom:14px;
}
.purchase-financial-panel .purchase-financial-grid > div:not(.purchase-total-highlight):not(.purchase-file-field){
    border:1px solid #d4e2ef;
    border-radius:12px;
    background:#fff;
    padding:12px;
}
.purchase-financial-panel .purchase-financial-grid > div:not(.purchase-total-highlight):not(.purchase-file-field) label{
    display:block;
    margin-bottom:7px;
}
.form-actions{
    margin-top:18px;
    padding-top:16px;
    border-top:1px solid #d8e5f1;
    justify-content:flex-end;
}
@media(max-width:900px){
    .purchase-items-table .module-items-data-table{min-width:760px;}
}


/* V78.38 — Baixa de Contas a pagar: reutiliza o mesmo padrão visual/componente de pagamentos da baixa de Contas a receber. */

/* V78.41 — Modal visual de confirmação de estorno em Financeiro > Pagamentos. */
.system-interface .payment-estorno-modal{z-index:2200}
.system-interface .payment-estorno-modal .delete-confirm-card{width:min(560px,calc(100vw - 28px));padding:30px;border:1px solid #d8e5f2;text-align:center;box-shadow:0 24px 70px rgba(7,35,62,.25)}
.system-interface .payment-estorno-modal .delete-confirm-icon{background:#fff2f4;color:#d9364f;border-color:#ffcbd3}
.system-interface .payment-estorno-modal .delete-confirm-card h2{color:#102b47}
.system-interface .payment-estorno-modal .delete-confirm-lead{max-width:455px;font-size:12px}
.system-interface .payment-estorno-summary{grid-template-columns:100px minmax(0,1fr);gap:9px 14px;margin-bottom:16px}
.system-interface .payment-estorno-summary .delete-summary-row{display:contents}
.system-interface .payment-estorno-motive{text-align:left;margin:0 0 18px}
.system-interface .payment-estorno-motive label{display:block;margin:0 0 7px;color:#173650;font-size:11px;font-weight:900}
.system-interface .payment-estorno-motive label span{color:#d9364f}
.system-interface .payment-estorno-motive textarea{display:block;width:100%;min-height:78px;box-sizing:border-box;padding:10px 11px;border:1px solid #bed2e6;border-radius:10px;background:#fff;color:#203d57;font:inherit;font-size:12px;resize:vertical}
.system-interface .payment-estorno-motive textarea:focus{outline:0;border-color:#176fda;box-shadow:0 0 0 3px rgba(23,111,218,.1)}
.system-interface .payment-estorno-motive small{display:block;margin-top:5px;color:#7890a4;font-size:9px}
.system-interface .payment-estorno-modal .delete-confirm-actions .danger{min-width:190px}
@media(max-width:600px){.system-interface .payment-estorno-modal .delete-confirm-card{padding:22px 18px}.system-interface .payment-estorno-summary{grid-template-columns:82px minmax(0,1fr)}.system-interface .payment-estorno-modal .delete-confirm-actions{flex-direction:column-reverse}.system-interface .payment-estorno-modal .delete-confirm-actions button{width:100%;min-width:0}}

/* V78.42 — Configuração protegida da conexão com o banco. */
.db-config-page{min-height:100vh;background:#fff}.db-config-shell{min-height:100vh;display:grid;grid-template-columns:1.02fr .98fr}.db-config-showcase{padding:55px clamp(35px,7vw,110px);background:radial-gradient(circle at 80% 80%,#0a6492,transparent 38%),linear-gradient(145deg,var(--navy),#0a355b);color:#fff;display:flex;flex-direction:column;justify-content:space-between}.db-config-showcase h1{font-size:clamp(40px,4.6vw,62px);line-height:1.05;margin:0 0 20px}.db-config-showcase p{color:#bad0e2;font-size:18px;max-width:650px}.db-config-card{width:min(560px,calc(100% - 50px));margin:auto}.db-config-card .page-kicker{display:block;margin-bottom:6px}.db-config-card h1{margin-top:14px}.db-config-form{display:grid;gap:14px}.db-config-help{display:block;margin-top:6px;color:var(--muted);font-size:11px;line-height:1.5}.db-config-note{margin:0 0 18px;padding:12px 14px;border:1px solid #b9d9f7;border-left:4px solid #0f6fe5;border-radius:10px;background:#eef7ff;color:#355b7b;font-size:11px;line-height:1.5}.db-config-status{padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:#f8fbff;color:#6a7d91;font-size:11px}.db-config-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px;padding-top:16px;border-top:1px solid var(--line)}.db-config-actions .button{min-width:150px}.db-config-page .back-link{font-size:12px}.db-config-card .alert{margin:0 0 15px}.db-config-page [data-theme="escuro"] .db-config-note{background:#1b344a;border-color:#315d82;color:#c7d9e8}.db-config-page [data-theme="escuro"] .db-config-status{background:#171c28}@media(max-width:800px){.db-config-shell{grid-template-columns:1fr}.db-config-showcase{display:none}.db-config-card{width:min(560px,calc(100% - 34px));padding:22px 0}.db-config-actions{flex-direction:column}.db-config-actions .button{width:100%}}

/* V78.43 — Correção do cálculo e alinhamento da tabela de itens da compra. */
.purchase-items-table .module-items-data-table{
    table-layout:fixed;
    min-width:1080px;
}
.purchase-items-table .module-items-data-table th{
    height:42px;
    padding:8px 10px;
    vertical-align:middle;
}
.purchase-items-table .module-items-data-table td.purchase-basic-item-cell{
    padding:8px 9px;
    vertical-align:middle;
}
.purchase-items-table .module-items-data-table td.purchase-basic-item-cell input,
.purchase-items-table .module-items-data-table td.purchase-basic-item-cell select{
    height:42px;
    min-height:42px;
    margin:0;
}
.purchase-items-table .module-items-data-table .purchase-col-produto,
.purchase-items-table .module-items-data-table td.purchase-basic-produto_id{width:38%;}
.purchase-items-table .module-items-data-table .purchase-col-quantidade,
.purchase-items-table .module-items-data-table td.purchase-basic-quantidade{width:10%;}
.purchase-items-table .module-items-data-table .purchase-col-valor,
.purchase-items-table .module-items-data-table td.purchase-basic-valor_unitario{width:15%;}
.purchase-items-table .module-items-data-table .purchase-col-frete,
.purchase-items-table .module-items-data-table td.purchase-basic-valor_frete{width:9%;}
.purchase-items-table .module-items-data-table .purchase-col-desconto,
.purchase-items-table .module-items-data-table td.purchase-basic-valor_desconto{width:10%;}
.purchase-items-table .module-items-data-table .purchase-col-total,
.purchase-items-table .module-items-data-table td.module-item-total{width:11%;}
.purchase-items-table .module-items-data-table .purchase-col-acoes,
.purchase-items-table .module-items-data-table td.module-item-actions{width:86px;}
.purchase-items-table .module-items-data-table td.module-item-total{
    text-align:right;
    padding-left:8px;
    padding-right:8px;
    font-variant-numeric:tabular-nums;
}
.purchase-items-table .module-items-data-table td.module-item-actions{
    white-space:nowrap;
}
.system-screen-card.is-wide:has(.purchase-items-table){
    width:min(1480px,100%);
}
@media(max-width:900px){
    .system-screen-card.is-wide:has(.purchase-items-table){width:100%;}
    .purchase-items-table .module-items-data-table{min-width:1080px;}
}

/* V78.45 — pagamento dividido, parcelamento e conferência do caixa. */
[data-compra-pagamentos] .purchase-split-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0 0;padding:14px 16px;border:1px solid #d4e2ec;border-bottom:0;border-radius:12px 12px 0 0;background:#f7fbff;}
[data-compra-pagamentos] .purchase-split-head h3{margin:0;font-size:14px;color:#173b57;}
[data-compra-pagamentos] .purchase-split-head p{margin:4px 0 0;font-size:10.5px;color:#6b8498;}
[data-compra-pagamentos] .split-payments-table{border:1px solid #d4e2ec;border-radius:0 0 12px 12px;overflow:hidden;background:#fff;}
[data-compra-pagamentos] .split-payments-table-header,[data-compra-pagamentos] .split-payment-row{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(120px,.7fr) minmax(100px,.55fr) minmax(180px,1fr) 72px;gap:10px;align-items:center;}
[data-compra-pagamentos] .split-payments-table-header{padding:9px 12px;background:#eef5f9;border-bottom:1px solid #d4e2ec;color:#47647a;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;}
[data-compra-pagamentos] .split-payment-row{min-height:58px;padding:9px 12px;border-bottom:1px solid #e2ebf1;}
[data-compra-pagamentos] .split-payment-row:last-child{border-bottom:0;}
[data-compra-pagamentos] .split-payment-cell{min-width:0;font-size:11px;color:#24465f;}
[data-compra-pagamentos] .split-payment-cell strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
[data-compra-pagamentos] .split-payment-value strong{color:#0f6fe5;font-size:12px;}
[data-compra-pagamentos] .split-payment-details span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#61798c;font-size:10px;}
[data-compra-pagamentos] .payment-type-pill{display:inline-flex;padding:4px 8px;border-radius:999px;background:#edf5fb;color:#175b8f;font-size:9.5px;font-weight:800;white-space:nowrap;}
[data-compra-pagamentos] .split-payment-actions-cell{display:flex;align-items:center;justify-content:center;gap:5px;}
[data-compra-pagamentos] .split-payment-actions-cell .icon-button{width:29px;height:29px;border-radius:7px;}
[data-compra-pagamentos] .split-payments-empty{padding:20px 14px;text-align:center;color:#748a9b;font-size:11px;}
[data-compra-pagamentos] .split-payments-empty[hidden]{display:none;}
[data-compra-pagamentos] .purchase-split-head .split-add-button{height:36px!important;padding:0 14px!important;}
.cash-method-summary{margin:18px 0 16px;padding:14px 16px;border:1px solid #d4e2ec;border-radius:12px;background:#f8fbfd;}
.cash-method-summary-head strong{display:block;color:#173b57;font-size:13px;}
.cash-method-summary-head span{display:block;margin-top:4px;color:#6b8498;font-size:10.5px;line-height:1.35;}
.cash-method-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin-top:12px;}
.cash-method-card{padding:11px 12px;border:1px solid #dce7ef;border-radius:10px;background:#fff;}
.cash-method-card strong{display:block;color:#163b56;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cash-method-card span{display:block;margin-top:5px;color:#43627a;font-size:10px;line-height:1.35;}
.cash-method-card small{display:block;margin-top:4px;color:#7890a2;font-size:9px;}
@media(max-width:900px){
 [data-compra-pagamentos] .split-payments-table{overflow-x:auto;}
 [data-compra-pagamentos] .split-payments-table-header,[data-compra-pagamentos] .split-payment-row{min-width:760px;}
 .cash-method-summary-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:620px){
 [data-compra-pagamentos] .purchase-split-head{align-items:stretch;flex-direction:column;}
 [data-compra-pagamentos] .purchase-split-head .split-add-button{align-self:flex-end;}
 .cash-method-summary-grid{grid-template-columns:1fr;}
}
/* A baixa de contas a pagar/receber agora tem uma coluna específica de parcelas. */
.receivable-baixa-panel .split-payments-table-header,.receivable-baixa-panel .split-payment-row{grid-template-columns:minmax(160px,1.05fr) minmax(120px,.72fr) minmax(88px,.48fr) minmax(125px,.68fr) minmax(180px,1fr) 74px;}
@media(max-width:900px){.receivable-baixa-panel .split-payments-table-header,.receivable-baixa-panel .split-payment-row{min-width:900px;}}

/* V78.52 — Site público Systenova: contato, WhatsApp, consultoria e refinamento visual. */
.site-header{height:82px;padding-inline:max(4vw,22px);backdrop-filter:saturate(140%) blur(10px);background:rgba(255,255,255,.94);box-shadow:0 8px 28px rgba(7,27,51,.05)}
.site-header .public-brand img{width:44px;height:44px;object-fit:contain}.public-brand strong{font-size:19px}.public-brand small{font-size:9px}.public-nav a{position:relative}.public-nav a:after{content:"";position:absolute;left:0;right:0;bottom:-8px;height:2px;background:linear-gradient(90deg,var(--blue),var(--green));transform:scaleX(0);transform-origin:center;transition:transform .2s}.public-nav a:hover:after{transform:scaleX(1)}
.header-actions{gap:12px}.header-contact{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border-radius:999px;background:#eef8ee;color:#3d7600;font-size:12px;font-weight:800;border:1px solid #d8e9bb;white-space:nowrap}
.hero{min-height:710px;padding-top:64px;padding-bottom:72px;background:radial-gradient(circle at 84% 22%,rgba(49,147,255,.17),transparent 29%),radial-gradient(circle at 58% 88%,rgba(120,185,0,.10),transparent 28%),linear-gradient(180deg,#fbfdff,#f1f6fb)}
.hero h1{max-width:660px}.hero-copy>p{line-height:1.7}.hero-image-card{position:absolute;inset:16px 22px auto auto;width:min(43%,360px);padding:10px;border:1px solid rgba(255,255,255,.75);border-radius:18px;background:rgba(255,255,255,.84);box-shadow:0 22px 55px rgba(11,41,74,.18);z-index:3;transform:translate(7%,-5%) rotate(3deg)}.hero-image-card img{display:block;width:100%;height:90px;object-fit:cover;border-radius:12px}.hero-visual{position:relative;padding-top:38px}
.consulting-section{padding-top:82px;padding-bottom:82px;background:#fff}.consulting-panel{max-width:1180px;margin:auto;display:grid;grid-template-columns:minmax(0,1.02fr) minmax(360px,.98fr);gap:42px;align-items:center;padding:38px;border:1px solid #dce8f3;border-radius:28px;background:linear-gradient(135deg,#f7fbff 0%,#edf7ff 58%,#f5fbef 100%);box-shadow:0 24px 65px rgba(7,27,51,.08);overflow:hidden}.consulting-copy{max-width:650px}.consulting-copy h2{font-size:clamp(31px,4vw,46px);line-height:1.08;letter-spacing:-.035em;color:var(--navy);margin-bottom:18px}.consulting-copy>p{font-size:17px;color:var(--muted);line-height:1.7}.consulting-points{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 26px}.consulting-points span{padding:9px 12px;border-radius:999px;background:#fff;border:1px solid #d9e7f1;color:#3f5870;font-size:12px;font-weight:800}.consulting-visual{position:relative;min-height:340px;display:grid;place-items:center}.consulting-visual:before,.consulting-visual:after{content:"";position:absolute;border-radius:50%;filter:blur(1px);pointer-events:none}.consulting-visual:before{width:280px;height:280px;background:radial-gradient(circle,rgba(17,103,216,.18),transparent 68%);right:-2%;top:5%}.consulting-visual:after{width:220px;height:220px;background:radial-gradient(circle,rgba(120,185,0,.18),transparent 68%);left:2%;bottom:0}.consulting-visual img{position:relative;z-index:1;width:min(100%,480px);height:270px;object-fit:cover;border-radius:20px;border:8px solid rgba(255,255,255,.84);box-shadow:0 24px 60px rgba(7,27,51,.18)}.consulting-badge{position:absolute;z-index:2;left:14px;bottom:10px;max-width:260px;padding:13px 15px;border-radius:15px;background:rgba(7,27,51,.92);color:#fff;box-shadow:0 14px 35px rgba(7,27,51,.24)}.consulting-badge strong,.consulting-badge small{display:block}.consulting-badge strong{font-size:13px}.consulting-badge small{margin-top:4px;color:#c4d4e4;font-size:10px;line-height:1.45}
.site-footer{display:grid;grid-template-columns:1.4fr .8fr auto;gap:34px;align-items:center}.site-footer-brand p{max-width:430px}.site-footer-contact{display:grid;gap:6px}.site-footer-contact strong{color:#dceaf6;font-size:13px}.site-footer-contact a{color:#98aec2;font-size:12px}.site-footer-contact a:hover{color:#fff}.whatsapp-float{position:fixed;right:22px;bottom:22px;z-index:60;display:flex;align-items:center;gap:8px;padding:12px 16px;border-radius:999px;background:#25d366;color:#fff;box-shadow:0 16px 35px rgba(8,81,39,.28);font-size:13px}.whatsapp-float span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:rgba(255,255,255,.18);font-size:12px}.whatsapp-float strong{font-size:12px}.whatsapp-float:hover{background:#1db957;transform:translateY(-2px)}
@media(max-width:1020px){.header-contact{display:none}.site-header{gap:18px}.public-nav{gap:17px}.hero{grid-template-columns:1fr;gap:34px;padding-top:48px}.hero-copy{max-width:760px}.hero-visual{width:min(100%,800px);margin:auto}.consulting-panel{grid-template-columns:1fr;padding:30px}.consulting-visual{min-height:300px}.site-footer{grid-template-columns:1fr 1fr}.site-footer>nav{grid-column:1/-1}}
@media(max-width:760px){.site-header{height:70px;padding-inline:16px}.public-brand strong{font-size:16px}.public-nav{display:none}.header-actions .text-link{display:none}.hero{min-height:0;padding:48px 20px 60px}.hero h1{font-size:clamp(38px,11vw,54px)}.hero-copy>p{font-size:17px}.hero-actions{flex-direction:column;align-items:stretch}.hero-actions .button{text-align:center}.hero-image-card{position:relative;inset:auto;width:74%;margin:0 auto 12px;transform:rotate(2deg)}.hero-image-card img{height:80px}.hero-visual{padding-top:0}.consulting-section{padding:60px 20px}.consulting-panel{padding:22px;border-radius:22px}.consulting-copy h2{font-size:32px}.consulting-visual{min-height:250px}.consulting-visual img{height:220px}.consulting-badge{left:0;bottom:0;max-width:230px}.site-footer{grid-template-columns:1fr;padding:36px 22px}.site-footer>nav{grid-column:auto;display:flex;flex-wrap:wrap;gap:12px 18px}.whatsapp-float{right:14px;bottom:14px;padding:11px 13px}.whatsapp-float strong{display:none}.whatsapp-float span{width:30px;height:30px}}

/* V78.53 — Redesign visual do site público inspirado nos materiais de marketing.
 * Mantém os componentes PHP/configurações existentes e altera apenas a apresentação.
 */
.public-page{background:#f4f8fc;color:#0b2745}
.public-page .site-header{
    height:82px;padding-inline:max(4vw,28px);position:sticky;top:0;z-index:90;
    background:rgba(4,20,38,.94);border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 8px 30px rgba(2,12,24,.22);backdrop-filter:blur(16px)
}
.public-page .site-header .public-brand span strong{color:#fff;font-size:20px}
.public-page .site-header .public-brand span small{color:#9fb4c9}
.public-page .public-nav{gap:24px}
.public-page .public-nav a{color:#d5e2ee;font-size:13px}
.public-page .public-nav a:hover{color:#fff}
.public-page .public-nav a:after{background:linear-gradient(90deg,#1e9eff,#80d400)}
.public-page .header-actions{gap:10px}
.public-page .header-contact{background:rgba(120,185,0,.14);border-color:rgba(120,185,0,.35);color:#c8ef83}
.public-page .header-actions .text-link{color:#cbd9e6}

.public-page .hero{
    min-height:760px;padding:82px max(5vw,26px) 90px;position:relative;overflow:hidden;isolation:isolate;
    grid-template-columns:minmax(380px,.92fr) minmax(540px,1.18fr);gap:44px;
    background:
      radial-gradient(circle at 74% 30%,rgba(20,151,239,.26),transparent 24%),
      radial-gradient(circle at 56% 84%,rgba(120,185,0,.15),transparent 22%),
      linear-gradient(125deg,#031426 0%,#061e38 52%,#073e5a 100%);
}
.public-page .hero:before{content:"";position:absolute;inset:auto -12% -38% auto;width:70%;height:75%;border:1px solid rgba(71,194,255,.17);border-radius:50%;transform:rotate(-14deg);box-shadow:0 0 0 70px rgba(27,150,255,.025),0 0 0 140px rgba(120,185,0,.018);z-index:-1}
.public-page .hero-copy{max-width:690px}
.public-page .hero .eyebrow{color:#68c9ff}
.public-page .hero .eyebrow i{background:#82d400}
.public-page .hero h1{color:#fff;max-width:690px;font-size:clamp(45px,5.2vw,74px);text-shadow:0 12px 40px rgba(0,0,0,.18)}
.public-page .hero h1 strong{color:#7ed300}
.public-page .hero-copy>p{color:#c7d7e6;font-size:19px;line-height:1.75;max-width:610px}
.public-page .hero-actions{margin-top:34px}
.public-page .hero .button{box-shadow:0 14px 30px rgba(4,102,195,.24)}
.public-page .hero .button-ghost{color:#fff;border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.05)}
.public-page .hero-trust{color:#b6cadc}
.public-page .hero-visual{padding:26px 0 42px}
.public-page .hero-image-card{
    position:absolute;inset:10px 0 auto auto;width:min(53%,420px);height:198px;padding:8px;
    border:1px solid rgba(255,255,255,.18);border-radius:24px;background:rgba(255,255,255,.08);
    box-shadow:0 25px 80px rgba(0,0,0,.28);transform:rotate(2deg);overflow:hidden;backdrop-filter:blur(10px)
}
.public-page .hero-image-card img{width:100%;height:100%;object-fit:cover;border-radius:18px;opacity:.9}
.public-page .dashboard-preview{margin-top:85px;border:1px solid rgba(141,206,255,.22);box-shadow:0 30px 90px rgba(0,0,0,.34);border-radius:22px;overflow:hidden;background:linear-gradient(145deg,#0a2443,#061a31)}
.public-page .preview-bar{background:#0b294a;color:#9fb8cf}
.public-page .preview-body{min-height:340px}
.public-page .floating-card{background:rgba(7,29,50,.92);border-color:rgba(106,197,255,.18);color:#fff;box-shadow:0 18px 50px rgba(0,0,0,.3);backdrop-filter:blur(12px)}
.public-page .floating-card strong{color:#fff}.public-page .floating-card small{color:#a8bed0}
.public-page .floating-card-top{top:36px;left:-24px;right:auto}.public-page .floating-card-bottom{left:auto;right:-10px;bottom:7px}

.public-page .proof{padding:27px max(5vw,26px);background:#fff;border-block:1px solid #dce8f2}
.public-page .proof>span{color:#71859a;text-transform:uppercase;letter-spacing:.1em;font-weight:800}
.public-page .proof div{color:#2d4964}

.public-page .section{padding:110px max(5vw,26px)}
.public-page .section-heading{max-width:860px;margin-bottom:54px}
.public-page .section-heading .eyebrow{color:#1779d5}
.public-page .section-heading h2,.public-page .faq h2,.public-page .how-section h2,.public-page .final-cta h2{font-size:clamp(35px,4.2vw,56px);font-weight:850}

.public-page .ecosystem-section{background:linear-gradient(180deg,#06192d 0%,#072a43 100%);color:#fff;position:relative}
.public-page .ecosystem-section .section-heading h2{color:#fff}.public-page .ecosystem-section .section-heading p{color:#b8cddd}.public-page .ecosystem-section .eyebrow{color:#65c9ff}
.public-page .ecosystem-marketing-card{background:rgba(255,255,255,.045);border-color:rgba(121,200,255,.18);box-shadow:0 30px 90px rgba(0,0,0,.28);padding:12px}
.public-page .ecosystem-marketing-card img{border-radius:18px}
.public-page .ecosystem-highlights article{background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.12);box-shadow:none}
.public-page .ecosystem-highlights strong{color:#fff}.public-page .ecosystem-highlights span{color:#b6cada}

.public-page .benefits-section{background:#fff}
.public-page .benefit-grid{gap:20px}
.public-page .benefit-grid article{border-radius:20px;background:linear-gradient(145deg,#fff,#f2f8fd);border-color:#dbe7f0;box-shadow:0 16px 45px rgba(8,39,69,.07);padding:30px}
.public-page .benefit-icon{background:linear-gradient(145deg,#eaf5ff,#eefbdc);box-shadow:inset 0 0 0 1px rgba(17,103,216,.08)}

.public-page .resources-section{background:linear-gradient(180deg,#f7fbff,#edf5fb)}
.public-page .resources-section .section-heading h2{max-width:760px;margin-inline:auto}
.public-page .resources-section .feature-grid{max-width:1200px;margin:auto;gap:18px}
.public-page .resources-section .feature-grid article{border:1px solid #d6e4ef;border-radius:20px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 17px 46px rgba(8,39,69,.06);padding:28px;min-height:205px;transition:.22s}
.public-page .resources-section .feature-grid article:hover{transform:translateY(-5px);box-shadow:0 24px 55px rgba(8,39,69,.12)}
.public-page .resources-section .feature-icon{background:linear-gradient(145deg,#0e76e0,#77c500);color:#fff;border:0;box-shadow:0 12px 25px rgba(17,103,216,.18)}

.public-page .consulting-section{background:#071a2f;padding-top:105px;padding-bottom:105px}
.public-page .consulting-panel{max-width:1200px;padding:44px;border:1px solid rgba(120,200,255,.18);border-radius:28px;background:linear-gradient(135deg,#0b2d4d,#0a3d58 52%,#173b24);box-shadow:0 30px 90px rgba(0,0,0,.25)}
.public-page .consulting-copy .eyebrow{color:#6fd2ff}.public-page .consulting-copy h2{color:#fff}.public-page .consulting-copy>p{color:#bfd0df}.public-page .consulting-points span{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.12);color:#dce9f4}
.public-page .consulting-badge{background:rgba(3,19,34,.88);border:1px solid rgba(255,255,255,.1)}

.public-page .how-section{background:linear-gradient(135deg,#061a31,#07385c 64%,#0f5639);padding:105px max(5vw,26px);color:#fff}
.public-page .how-section h2{color:#fff}.public-page .how-copy>p{color:#bfd0df;line-height:1.7}.public-page .how-trust{color:#bcd0df}
.public-page .how-journey .step-card{background:rgba(255,255,255,.065);border-color:rgba(255,255,255,.12);box-shadow:none}.public-page .how-journey .step-card strong{color:#fff}.public-page .how-journey .step-card small{color:#b8cada}.public-page .how-journey .step-card.is-featured{border-color:rgba(120,185,0,.45);box-shadow:0 18px 45px rgba(0,0,0,.18)}
.public-page .onboarding-window{box-shadow:0 28px 70px rgba(0,0,0,.32);border-color:rgba(164,215,255,.2)}

.public-page .pricing-section{background:#fff}
.public-page .pricing-grid{max-width:1220px;grid-template-columns:repeat(3,1fr)}
.public-page .price-card{border-radius:22px;padding:34px;background:linear-gradient(180deg,#fff,#f5f9fd);border-color:#dbe6ef;box-shadow:0 13px 38px rgba(8,39,69,.07)}
.public-page .price-card.featured{border-color:#0f76de;background:linear-gradient(180deg,#fff,#eef7ff);box-shadow:0 28px 60px rgba(13,104,196,.16)}
.public-page .price b{color:#0b2949}.public-page .price-card li{color:#3f5871}

.public-page .faq{background:#f3f7fb}
.public-page .faq-list details{border-bottom-color:#d7e2eb}.public-page .faq-list summary{font-size:15px;color:#102e4b}.public-page .faq-list p{color:#60768c}
.public-page .final-cta{background:linear-gradient(125deg,#03182b,#075077 58%,#14643b);padding:95px 25px}
.public-page .final-cta p{color:#c8dae8}
.public-page .site-footer{background:#031426;border-top:1px solid rgba(255,255,255,.06)}

.public-page .whatsapp-float{background:#25d366;box-shadow:0 18px 42px rgba(9,79,36,.32);padding:13px 17px}

@media(max-width:1100px){
  .public-page .hero{grid-template-columns:1fr}.public-page .hero-copy{max-width:840px;margin-inline:auto}.public-page .hero-visual{max-width:880px;width:100%;margin:auto}.public-page .hero-image-card{right:0}.public-page .pricing-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:820px){
  .public-page .pricing-grid{grid-template-columns:1fr}.public-page .price-card.featured{order:-1}.public-page .ecosystem-highlights{grid-template-columns:1fr}.public-page .hero-image-card{position:relative;inset:auto;width:min(100%,520px);height:180px;margin:0 auto 12px;transform:rotate(1deg)}.public-page .dashboard-preview{margin-top:25px}.public-page .floating-card{display:none}
}
@media(max-width:760px){
  .public-page .site-header{height:70px}.public-page .hero{padding:52px 20px 65px}.public-page .hero h1{font-size:clamp(40px,11vw,56px)}.public-page .hero-copy>p{font-size:17px}.public-page .section{padding:75px 20px}.public-page .consulting-section{padding:65px 20px}.public-page .consulting-panel{padding:24px}.public-page .how-section{padding:70px 20px}.public-page .site-footer{grid-template-columns:1fr}
}

/* V78.55 — Refinamento visual do site público: dashboard, processos, consultoria e como funciona. */
.public-page .hero{min-height:760px;padding-top:72px;padding-bottom:82px;background:radial-gradient(circle at 86% 20%,rgba(49,147,255,.20),transparent 30%),radial-gradient(circle at 52% 92%,rgba(120,185,0,.12),transparent 30%),linear-gradient(180deg,#f8fbfe,#eef5fa)}
.public-page .hero-copy{position:relative;z-index:3}.public-page .hero h1{max-width:650px}.public-page .hero-visual{min-height:600px;display:flex;align-items:center;justify-content:center;padding:40px 8px 34px}.public-page .hero-image-card{position:absolute;right:2%;top:1%;width:min(92%,760px);height:430px;padding:7px;border:1px solid rgba(255,255,255,.92);border-radius:24px;background:rgba(255,255,255,.78);box-shadow:0 32px 90px rgba(7,27,51,.24);z-index:1;transform:perspective(1200px) rotateY(-3deg) rotateX(1deg)}.public-page .hero-image-card img{display:block;width:100%;height:100%;object-fit:cover;border-radius:18px}.public-page .dashboard-preview{position:absolute;right:7%;bottom:10px;width:82%;z-index:3;transform:perspective(1200px) rotateY(-5deg) rotateX(1deg);box-shadow:0 32px 90px rgba(7,27,51,.28)}.public-page .floating-card-top{top:54px;right:-8px}.public-page .floating-card-bottom{bottom:18px;left:2px}
.process-section{background:linear-gradient(180deg,#071b33 0%,#0b3659 100%);color:#fff;position:relative;overflow:hidden}.process-section .section-heading h2{color:#fff}.process-section .section-heading p{color:#bfd0df}.process-section .eyebrow{color:#8bd3ff}.process-journey-card{max-width:1320px;margin:34px auto 0;padding:9px;border:1px solid rgba(255,255,255,.13);border-radius:24px;background:rgba(255,255,255,.055);box-shadow:0 28px 80px rgba(0,0,0,.28);overflow:hidden}.process-journey-card img{display:block;width:100%;height:auto;border-radius:16px}.process-section:after{content:"";position:absolute;inset:auto -120px -180px auto;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(120,185,0,.14),transparent 68%);pointer-events:none}
.consulting-section{background:#f4f8fc}.consulting-panel-new{position:relative;background:linear-gradient(135deg,#071b33,#0a3f61 58%,#0c5b5a);border:1px solid rgba(255,255,255,.07);box-shadow:0 28px 75px rgba(7,27,51,.18);color:#fff}.consulting-panel-new .consulting-copy h2{color:#fff}.consulting-panel-new .consulting-copy>p{color:#c9d8e6}.consulting-panel-new .eyebrow{color:#95d9ff}.consulting-panel-new .consulting-points span{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16);color:#eef6fd}.consulting-visual-new{min-height:360px}.consulting-visual-new img{width:min(100%,570px);height:320px;object-fit:cover;border:1px solid rgba(255,255,255,.18);border-radius:20px;box-shadow:0 28px 70px rgba(0,0,0,.28)}
.how-section{position:relative;background:linear-gradient(135deg,#06192f,#0a3f63 66%,#0b5b54);padding-top:96px;padding-bottom:96px}.how-visual-image{min-height:420px}.how-image-frame{position:relative;z-index:2;width:min(100%,650px);padding:8px;border:1px solid rgba(255,255,255,.16);border-radius:24px;background:rgba(255,255,255,.08);box-shadow:0 32px 80px rgba(0,0,0,.30);overflow:hidden}.how-image-frame img{display:block;width:100%;height:auto;border-radius:17px}.how-section .steps{gap:18px}.how-section .step-card{padding:19px 20px}
@media(max-width:980px){.public-page .hero{grid-template-columns:1fr;min-height:auto}.public-page .hero-visual{min-height:560px;max-width:920px;width:100%;margin-inline:auto}.public-page .hero-image-card{position:absolute;right:6%;width:86%;height:390px}.public-page .dashboard-preview{width:86%;right:7%;bottom:14px}.process-journey-card{margin-inline:0}.consulting-panel-new{grid-template-columns:1fr}.consulting-visual-new{min-height:310px}.how-journey{grid-template-columns:1fr}.how-visual-image{min-height:auto;margin-top:8px}}
@media(max-width:760px){.public-page .hero{padding-inline:20px;padding-top:46px;padding-bottom:52px}.public-page .hero-visual{min-height:420px;padding:15px 0}.public-page .hero-image-card{position:relative;inset:auto;width:100%;height:250px;transform:none;margin:0 0 12px}.public-page .dashboard-preview{position:relative;width:100%;right:auto;bottom:auto;transform:none}.public-page .floating-card{display:none}.process-section,.consulting-section,.how-section{padding-left:20px;padding-right:20px}.process-journey-card{padding:6px;border-radius:17px}.consulting-panel-new{padding:24px;border-radius:22px}.consulting-visual-new{min-height:250px}.consulting-visual-new img{height:235px}.how-image-frame{border-radius:18px}.how-image-frame img{border-radius:12px}}

/* V78.56 — Clientes Case: logos de clientes SaaS ativos exibidos automaticamente. */
.public-page .clients-case-section{background:linear-gradient(180deg,#f8fbfe 0%,#eef5fa 100%);padding:92px max(5vw,26px)}
.public-page .clients-case-heading{max-width:940px;text-align:center;margin-inline:auto;margin-bottom:38px}.public-page .clients-case-heading h2{color:#0b2949}.public-page .clients-case-heading p{color:#60788f;max-width:820px;margin-inline:auto;line-height:1.75}
.public-page .clients-case-marquee{max-width:1220px;margin:0 auto;overflow:hidden;position:relative;padding:4px 0 10px;mask-image:linear-gradient(to right,transparent 0,#000 5%,#000 95%,transparent 100%);-webkit-mask-image:linear-gradient(to right,transparent 0,#000 5%,#000 95%,transparent 100%)}
.public-page .clients-case-track{display:flex;width:max-content;animation:clientsCaseMarquee 30s linear infinite;will-change:transform}
.public-page .clients-case-group{display:flex;align-items:stretch;gap:16px;padding-right:16px;flex:none}.public-page .clients-case-marquee.is-multi .clients-case-group{min-width:max-content}
.public-page .client-case-card{width:220px;min-height:148px;flex:0 0 220px;border:1px solid #d9e6ef;border-radius:22px;background:rgba(255,255,255,.96);box-shadow:0 16px 38px rgba(8,39,69,.07);padding:20px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;transition:transform .2s,box-shadow .2s,border-color .2s}
.public-page .client-case-card:hover{transform:translateY(-4px);box-shadow:0 24px 48px rgba(8,39,69,.12);border-color:#b7d6ec}
.public-page .clients-case-track:hover{animation-play-state:paused}
.public-page .client-case-logo{height:76px;width:100%;display:flex;align-items:center;justify-content:center}.public-page .client-case-logo img{max-width:150px;max-height:64px;width:auto;height:auto;object-fit:contain}
.public-page .client-case-card>span{font-size:12px;font-weight:800;color:#284660;text-align:center;line-height:1.35}
.public-page .clients-case-empty{max-width:960px;margin:0 auto;padding:28px 30px;border:1px dashed #c6d9e7;border-radius:18px;background:#fff;color:#71879a;text-align:center}
@keyframes clientsCaseMarquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes clientsCaseSingleMarquee{0%{transform:translateX(110vw)}100%{transform:translateX(-100%)}}
.public-page .clients-case-marquee.is-single .clients-case-track{animation:clientsCaseSingleMarquee 16s linear infinite}
.public-page .clients-case-marquee.is-single .clients-case-group{padding-right:0}
.public-page .clients-case-marquee.is-single .client-case-card{margin-right:0}
@media(prefers-reduced-motion:reduce){.public-page .clients-case-track{animation:none;transform:none}.public-page .clients-case-group[aria-hidden="true"]{display:none}}
@media(max-width:560px){.public-page .clients-case-section{padding:70px 20px}.public-page .clients-case-group{gap:12px;padding-right:12px}.public-page .client-case-card{width:170px;min-width:170px;flex-basis:170px;min-height:128px;padding:16px 12px;border-radius:17px}.public-page .client-case-logo{height:66px}.public-page .client-case-logo img{max-width:120px;max-height:54px}}

/* V78.57 — widget de contato WhatsApp da página principal. */
.public-page .whatsapp-contact-widget{position:fixed;right:22px;bottom:22px;z-index:1200;display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.public-page .whatsapp-contact-card{width:min(360px,calc(100vw - 28px));overflow:hidden;border:1px solid rgba(34,197,94,.22);border-radius:22px;background:#f9fffb;box-shadow:0 24px 60px rgba(7,38,24,.24)}
.public-page .whatsapp-contact-card[hidden]{display:none}
.public-page .whatsapp-contact-header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;background:linear-gradient(135deg,#20c96b,#18be61);color:#fff}
.public-page .whatsapp-contact-title{display:flex;align-items:center;gap:10px;font-size:18px}
.public-page .whatsapp-contact-logo{width:28px;height:28px;display:grid;place-items:center}
.public-page .whatsapp-contact-logo svg,.public-page .whatsapp-trigger-icon svg{width:100%;height:100%}
.public-page .whatsapp-contact-close{width:38px;height:38px;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.12);color:#fff;font-size:28px;line-height:1;cursor:pointer}
.public-page .whatsapp-contact-close:hover{background:rgba(0,0,0,.2)}
.public-page .whatsapp-contact-body{padding:24px 24px 25px;background:linear-gradient(180deg,#f8fffa,#fff)}
.public-page .whatsapp-contact-bubble{display:grid;gap:7px;width:max-content;max-width:100%;margin:0 0 18px;padding:15px 18px;border:1px solid #dbe7df;border-radius:0 16px 16px 16px;background:#fff;box-shadow:0 8px 24px rgba(20,80,45,.07)}
.public-page .whatsapp-contact-bubble strong{color:#173b2b;font-size:14px}
.public-page .whatsapp-contact-bubble span{color:#355c48;font-size:14px;line-height:1.35}
.public-page .whatsapp-contact-body p{margin:0 0 18px;color:#5b7062;font-size:12px;line-height:1.55}
.public-page .whatsapp-contact-open{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;border-radius:14px;background:#21cf6a;color:#fff;font-size:14px;font-weight:900;box-shadow:0 12px 26px rgba(20,190,91,.22)}
.public-page .whatsapp-contact-open:hover{background:#18b75a;transform:translateY(-1px)}
.public-page .whatsapp-contact-trigger{width:68px;height:68px;border:4px solid #fff;border-radius:50%;display:grid;place-items:center;background:#20ce67;color:#fff;box-shadow:0 16px 34px rgba(8,91,42,.28);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
.public-page .whatsapp-contact-trigger:hover{transform:translateY(-2px) scale(1.03);box-shadow:0 20px 40px rgba(8,91,42,.34)}
.public-page .whatsapp-trigger-icon{width:30px;height:30px;display:block}
.public-page .whatsapp-contact-widget.is-open .whatsapp-contact-trigger{box-shadow:0 0 0 5px rgba(32,206,103,.13),0 18px 36px rgba(8,91,42,.3)}
@media(max-width:760px){.public-page .whatsapp-contact-widget{right:14px;bottom:14px}.public-page .whatsapp-contact-card{width:min(350px,calc(100vw - 28px))}.public-page .whatsapp-contact-trigger{width:62px;height:62px}.public-page .whatsapp-trigger-icon{width:28px;height:28px}}

/* V78.58 — Refinamento visual solicitado: hero sem sobreposição, texto legível, Processos com imagem correta e Consultoria limpa. */
.public-page .hero{
  min-height:720px;
  padding-top:78px;
  padding-bottom:76px;
  color:#fff;
  background:
    radial-gradient(circle at 82% 28%,rgba(24,157,214,.22),transparent 30%),
    radial-gradient(circle at 58% 88%,rgba(120,185,0,.15),transparent 28%),
    linear-gradient(135deg,#06182d 0%,#082b49 58%,#0a4558 100%);
}
.public-page .hero:before{border-color:rgba(117,211,255,.10);box-shadow:0 0 0 90px rgba(117,211,255,.02),0 0 0 180px rgba(120,185,0,.018)}
.public-page .hero .eyebrow{color:#8dd8ff}
.public-page .hero h1{color:#fff;max-width:650px;text-shadow:0 2px 18px rgba(0,0,0,.18)}
.public-page .hero-copy>p{color:#d1e4f0;max-width:620px}
.public-page .hero-trust span{color:#c2d7e6}
.public-page .hero-visual{min-height:540px;padding:20px 0;display:flex;align-items:center;justify-content:center}
.public-page .hero-image-card{
  position:relative;
  inset:auto;
  right:auto;
  top:auto;
  width:min(100%,760px);
  height:auto;
  padding:7px;
  border:1px solid rgba(141,214,255,.24);
  border-radius:26px;
  background:rgba(255,255,255,.07);
  box-shadow:0 30px 90px rgba(0,0,0,.36);
  transform:none;
  z-index:2;
  overflow:hidden;
}
.public-page .hero-image-card img{width:100%;height:auto;display:block;aspect-ratio:1536/1024;object-fit:cover;object-position:center;border-radius:19px}
.public-page .hero-visual .dashboard-preview,
.public-page .hero-visual .floating-card{display:none}
.public-page .hero-orbit{opacity:.45}
.public-page .hero-actions .button-ghost{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.22);color:#fff}
.public-page .hero-actions .button-ghost:hover{background:rgba(255,255,255,.13)}

.public-page .process-section{padding-top:92px;padding-bottom:92px}
.public-page .process-journey-card{max-width:1380px;padding:8px;border-color:rgba(255,255,255,.14);background:rgba(255,255,255,.045)}
.public-page .process-journey-card img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;object-position:center;border-radius:17px}

.public-page .consulting-panel-new{overflow:hidden;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);align-items:stretch}
.public-page .consulting-copy{padding:8px 8px 8px 0}
.public-page .consulting-visual-new{min-height:390px;display:flex;align-items:stretch;justify-content:flex-end;overflow:hidden;border-radius:20px}
.public-page .consulting-visual-new img{width:100%;height:100%;min-height:390px;object-fit:cover;object-position:right center;border:0;border-radius:20px;box-shadow:none;display:block}
@media(max-width:980px){
  .public-page .hero{grid-template-columns:1fr;min-height:auto}
  .public-page .hero-copy{max-width:860px;margin-inline:auto}
  .public-page .hero-visual{min-height:auto;max-width:900px;width:100%;margin-inline:auto}
  .public-page .hero-image-card{width:100%;max-width:900px}
  .public-page .consulting-panel-new{grid-template-columns:1fr}
  .public-page .consulting-copy{padding:0}
  .public-page .consulting-visual-new{min-height:320px}
  .public-page .consulting-visual-new img{min-height:320px}
}
@media(max-width:760px){
  .public-page .hero{padding:52px 20px 60px}
  .public-page .hero h1{font-size:44px;line-height:1.02}
  .public-page .hero-copy>p{font-size:16px}
  .public-page .hero-visual{padding:12px 0 0}
  .public-page .hero-image-card{width:100%;border-radius:21px}
  .public-page .hero-image-card img{border-radius:14px}
  .public-page .process-section,.public-page .consulting-section{padding-left:20px;padding-right:20px}
  .public-page .process-journey-card{padding:5px;border-radius:15px;overflow:auto}
  .public-page .process-journey-card img{min-width:760px;width:100%}
  .public-page .consulting-panel-new{padding:22px;border-radius:20px}
  .public-page .consulting-visual-new{min-height:250px;margin-top:8px}
  .public-page .consulting-visual-new img{min-height:250px;object-position:78% center;border-radius:16px}
}

/* V78.62 — Menu público reorganizado: Soluções agrupa Recursos, Processos, Ecossistema,
 * Consultoria e Vantagens; Clientes permanece direto. O grupo reduz a ocupação horizontal
 * sem esconder os conteúdos principais e mantém navegação acessível no desktop e mobile. */
.public-page .public-nav{align-items:center;gap:22px}
.public-page .nav-dropdown{position:relative;display:flex;align-items:center}
.public-page .nav-dropdown-toggle{display:inline-flex;align-items:center;gap:6px;padding:8px 0;border:0;background:transparent;color:#d5e2ee;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.public-page .nav-dropdown-toggle:hover{color:#fff}
.public-page .nav-dropdown-toggle span{font-size:13px;line-height:1;transition:transform .18s ease}
.public-page .nav-dropdown.open .nav-dropdown-toggle span{transform:rotate(180deg)}
.public-page .nav-dropdown-menu{position:absolute;top:calc(100% + 12px);left:50%;transform:translate(-50%,-6px);width:230px;padding:8px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(6,27,48,.98);box-shadow:0 18px 40px rgba(0,0,0,.28);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .16s ease,transform .16s ease,visibility .16s ease;z-index:120}
.public-page .nav-dropdown-menu:before{content:"";position:absolute;top:-6px;left:50%;width:12px;height:12px;transform:translateX(-50%) rotate(45deg);background:rgba(6,27,48,.98);border-left:1px solid rgba(255,255,255,.12);border-top:1px solid rgba(255,255,255,.12)}
.public-page .nav-dropdown-menu a{display:flex;align-items:center;padding:11px 12px;border-radius:9px;color:#d5e2ee;font-size:12px;font-weight:700;text-decoration:none}
.public-page .nav-dropdown-menu a:hover{background:linear-gradient(90deg,rgba(30,158,255,.18),rgba(128,212,0,.10));color:#fff}
.public-page .nav-dropdown-menu a:after{display:none}
.public-page .nav-dropdown.open .nav-dropdown-menu,.public-page .nav-dropdown:focus-within .nav-dropdown-menu{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0)}
@media(max-width:1020px){.public-page .public-nav{gap:16px}.public-page .nav-dropdown-menu{width:215px}}
@media(max-width:760px){
  .public-page .public-nav{align-items:stretch;gap:0}
  .public-page .nav-dropdown{display:block;width:100%}
  .public-page .nav-dropdown-toggle{width:100%;justify-content:space-between;padding:13px 0;border-top:1px solid rgba(255,255,255,.10)}
  .public-page .nav-dropdown-menu{position:static;transform:none!important;width:100%;padding:0 0 4px;background:transparent;border:0;border-radius:0;box-shadow:none;opacity:1;visibility:visible;pointer-events:auto;display:none}
  .public-page .nav-dropdown-menu:before{display:none}
  .public-page .nav-dropdown.open .nav-dropdown-menu{display:block}
  .public-page .nav-dropdown-menu a{padding:10px 14px;border-radius:8px;background:rgba(255,255,255,.04);margin:4px 0;color:#c8d9e8;font-size:12px}
}


/* V78.67 — Compras: alinhamento final, múltiplas formas de pagamento e modal sem área ociosa. */
.system-screen-card.is-wide:has(.purchase-entry-summary) .system-screen-body>.form-panel{
    width:100%;
    max-width:none;
}
.system-screen-card.is-wide:has(.purchase-entry-summary) .system-screen-body>.form-panel>form{
    width:100%;
}
.purchase-main-invoice-grid{align-items:stretch;row-gap:14px;}
.purchase-main-invoice-grid>div{display:flex;flex-direction:column;min-width:0;}
.purchase-main-invoice-grid>div>label{min-height:18px;margin:0 0 6px;line-height:1.2;}
.purchase-main-invoice-grid>div>input,
.purchase-main-invoice-grid>div>select,
.purchase-main-invoice-grid .linked-field{width:100%;box-sizing:border-box;}
.purchase-main-invoice-grid .linked-field{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px;align-items:stretch;}
.purchase-main-invoice-grid .linked-field select,
.purchase-main-invoice-grid .linked-field .supplier-add-action{height:44px;min-height:44px;}
.purchase-main-invoice-grid .purchase-linked-field small{min-height:15px;margin-top:5px;}
.purchase-main-invoice-grid .field-full{grid-column:1/-1;}
.purchase-main-invoice-grid input,
.purchase-main-invoice-grid select{height:44px;min-height:44px;}
.purchase-paid-fields{margin-top:12px;}
.purchase-paid-fields>div{padding:12px;border:1px solid #d4e2ef;border-radius:12px;background:#fff;}
.purchase-paid-fields label{display:block;margin-bottom:7px;}
[data-compra-financeiro] .purchase-split-head{margin-top:18px;}
[data-compra-financeiro] .purchase-split-table{margin-top:0;}
[data-compra-financeiro] .purchase-planned-payment{margin-top:14px;padding:12px;border:1px solid #d4e2ef;border-radius:12px;background:#fff;}
[data-compra-financeiro] .purchase-planned-payment label{display:block;margin-bottom:7px;}
[data-compra-financeiro] .purchase-split-head[hidden],
[data-compra-financeiro] .purchase-split-table[hidden],
[data-compra-financeiro] .purchase-planned-payment[hidden],
[data-compra-financeiro] .purchase-paid-fields[hidden]{display:none!important;}
[data-compra-financeiro] .split-payments-table-header,
[data-compra-financeiro] .split-payment-row{grid-template-columns:minmax(190px,1.15fr) minmax(125px,.7fr) minmax(90px,.5fr) minmax(120px,.7fr) minmax(210px,1.1fr) 76px;}
[data-compra-financeiro] .split-payment-actions-cell{display:flex;align-items:center;justify-content:center;gap:5px;}
[data-compra-financeiro] .split-payment-actions-cell .icon-button{width:30px;height:30px;}
[data-compra-financeiro] .split-payment-value strong{font-variant-numeric:tabular-nums;}
.purchase-items-table .module-items-data-table .purchase-col-produto,
.purchase-items-table .module-items-data-table td.purchase-basic-produto_id{width:39%;}
.purchase-items-table .module-items-data-table .purchase-col-quantidade,
.purchase-items-table .module-items-data-table td.purchase-basic-quantidade{width:10%;}
.purchase-items-table .module-items-data-table .purchase-col-valor,
.purchase-items-table .module-items-data-table td.purchase-basic-valor_unitario{width:16%;}
.purchase-items-table .module-items-data-table .purchase-col-frete,
.purchase-items-table .module-items-data-table td.purchase-basic-valor_frete{width:10%;}
.purchase-items-table .module-items-data-table .purchase-col-desconto,
.purchase-items-table .module-items-data-table td.purchase-basic-valor_desconto{width:10%;}
.purchase-items-table .module-items-data-table .purchase-col-total,
.purchase-items-table .module-items-data-table td.module-item-total{width:11%;}
.purchase-items-table .module-items-data-table .purchase-col-acoes,
.purchase-items-table .module-items-data-table td.module-item-actions{width:64px;text-align:center;}
.purchase-items-table .module-items-data-table th,
.purchase-items-table .module-items-data-table td{vertical-align:middle;}
.purchase-items-table .module-items-data-table td.purchase-basic-item-cell input,
.purchase-items-table .module-items-data-table td.purchase-basic-item-cell select{height:42px;min-height:42px;}
.purchase-items-table .purchase-basic-quantidade input,
.purchase-items-table .purchase-basic-valor_unitario input,
.purchase-items-table .purchase-basic-valor_frete input,
.purchase-items-table .purchase-basic-valor_desconto input{text-align:right;font-variant-numeric:tabular-nums;}
.purchase-items-table .module-item-total{text-align:right;font-variant-numeric:tabular-nums;}
@media(max-width:900px){
  .system-screen-card.is-wide:has(.purchase-entry-summary){width:100%;}
  [data-compra-financeiro] .split-payments-table{overflow-x:auto;}
  [data-compra-financeiro] .split-payments-table-header,
  [data-compra-financeiro] .split-payment-row{min-width:900px;}
}

/* V78.68 — Compras: anexos separados, alinhamento e ações da lista. */
.purchase-attachment-field{border:1px solid #cfe0ef;background:#f8fbfe;border-radius:12px;padding:12px;min-height:100%;display:flex;flex-direction:column;justify-content:center;}
.purchase-attachment-field label{display:block;font-weight:800;color:#234863;margin-bottom:7px;}
.purchase-attachment-field input[type=file]{width:100%;box-sizing:border-box;}
.purchase-attachment-field small{display:block;margin-top:6px;color:#758ba0;font-size:10.5px;line-height:1.35;}
.purchase-attachment-link{display:inline-flex;align-items:center;gap:6px;margin-top:8px;color:#0b69cf;font-size:11px;font-weight:800;text-decoration:none;}
.purchase-attachment-link:hover{text-decoration:underline;}
.purchase-main-invoice-grid .purchase-attachment-field.field-span-2{grid-column:span 2;}
.purchase-list-table th:last-child,.purchase-list-table td:last-child{width:120px;min-width:120px;max-width:120px;text-align:center;}
.purchase-list-table .icon-actions{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:nowrap;}
.purchase-list-table .icon-actions .is-file{color:#126fda;border-color:#bfd8f4;background:#f5faff;}
.purchase-list-table .icon-actions .is-file:hover{background:#e9f4ff;border-color:#8dbdec;}
.payment-editor-table th,.payment-editor-table td{vertical-align:middle;}
.payment-editor-table th:nth-child(1){min-width:220px;}
.payment-editor-table th:nth-child(2){min-width:140px;}
.payment-editor-table th:nth-child(3){min-width:145px;}
.payment-editor-table th:nth-child(4){min-width:110px;}
.payment-editor-table th:nth-child(5){min-width:180px;}
.payment-editor-table th:nth-child(6){min-width:220px;}
.payment-editor-table td>select,.payment-editor-table td>.money-input,.payment-editor-table td>input{width:100%;box-sizing:border-box;}
@media(max-width:900px){.purchase-main-invoice-grid .purchase-attachment-field.field-span-2{grid-column:1/-1;}.purchase-list-table th:last-child,.purchase-list-table td:last-child{min-width:110px;width:110px;}}


/* V78.69 — impressão de fechamento de caixa: cabeçalho padrão e conferência por forma de pagamento */
.cash-print-document-title{display:flex;justify-content:space-between;gap:8mm;align-items:flex-start;margin:2mm 0 6mm;padding:0 1mm 4mm;border-bottom:1px solid #dbe6ee;}
.cash-print-document-title .page-kicker{display:block;font-size:7pt;color:#0f6fe5;font-weight:800;letter-spacing:.10em;text-transform:uppercase;}
.cash-print-document-title h1{margin:1.5mm 0 1mm;font-size:18pt;line-height:1.05;color:#163650;}
.cash-print-document-title p{margin:0;color:#71869a;font-size:8pt;}
.cash-print-document-status{text-align:right;min-width:35mm;}
.cash-print-document-status span{display:inline-block;padding:1.5mm 3mm;border-radius:99px;background:#eaf2f8;color:#3d6078;font-size:7pt;font-weight:800;text-transform:uppercase;letter-spacing:.04em;}
.cash-print-document-status strong{display:block;margin-top:2mm;color:#163650;font-size:13pt;}
.cash-payment-summary-section{margin-top:1mm;}
.cash-payment-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3mm;margin-bottom:6mm;}
.cash-payment-card{padding:3.5mm 4mm;border:1px solid #d7e3eb;border-radius:2mm;background:#fff;min-height:22mm;display:flex;flex-direction:column;justify-content:center;}
.cash-payment-card span{display:block;font-size:7pt;color:#74899c;text-transform:uppercase;letter-spacing:.07em;font-weight:800;}
.cash-payment-card strong{display:block;margin-top:1.5mm;font-size:10pt;color:#17364f;}
.cash-payment-card small{display:block;margin-top:1mm;color:#71869a;font-size:6.5pt;line-height:1.25;}
.cash-payment-summary-empty{grid-column:1/-1;padding:4mm;border:1px dashed #cddce6;border-radius:2mm;color:#71869a;font-size:8pt;}
@media print{.cash-payment-summary-grid{grid-template-columns:repeat(4,1fr)}.cash-print-document-title{margin-top:0}.cash-payment-card{break-inside:avoid;page-break-inside:avoid}}

/* V78.70 — Cadastro rápido de produto no PDV */
.pdv-add-item-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.pdv-add-item-actions .pdv-add-line{margin-top:0}
.pdv-search-new-product{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;padding:12px 14px;border:1px dashed #b9cfe4;border-radius:10px;background:#f7fbff}
.pdv-search-new-product small{color:#6b8195;font-size:12px;line-height:1.4}
@media(max-width:700px){.pdv-add-item-actions{flex-direction:column;align-items:stretch}.pdv-add-item-actions .pdv-add-line{width:100%}.pdv-search-new-product{align-items:flex-start;flex-direction:column}.pdv-search-new-product .button{width:100%}}

/* V78.92 - Fechamento de caixa A4: enquadramento e quebra de pagina definitivos. */
.cash-print-fixed-header,.cash-print-fixed-footer{display:none;}
.cash-print-page .print-document-v30{background:#fff;}
.cash-print-report{max-width:192mm;margin:0 auto;color:#17364f;}
.cash-print-browser-title{display:flex;justify-content:space-between;gap:8mm;align-items:flex-start;margin:0 0 6mm;padding:0 0 4mm;border-bottom:1px solid #dbe6ee;}
.cash-print-browser-title .page-kicker{display:block;font-size:7pt;color:#0f6fe5;font-weight:900;letter-spacing:.11em;text-transform:uppercase;}
.cash-print-browser-title h1{margin:1.5mm 0 1mm;font-size:18pt;line-height:1.08;color:#163650;}
.cash-print-browser-title p{margin:0;color:#71869a;font-size:8pt;}
.cash-print-document-status{text-align:right;min-width:35mm;}
.cash-print-document-status span{display:inline-flex;align-items:center;padding:1.6mm 3mm;border-radius:999px;background:#eaf2f8;color:#3d6078;font-size:7pt;font-weight:900;text-transform:uppercase;}
.cash-print-document-status strong{display:block;margin-top:2mm;color:#163650;font-size:14pt;}
.cash-print-page-one{display:block;}
.cash-print-page-two{display:block;}
.cash-payment-summary-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:2.5mm;}
.cash-payment-card{min-height:19mm;padding:3mm 3.2mm;}
.cash-payment-card span{font-size:6.6pt;}
.cash-payment-card strong{font-size:9.2pt;}
.cash-payment-card small{font-size:6.1pt;}
.cash-print-table{table-layout:fixed;}
.cash-print-table th,.cash-print-table td{padding:2.2mm 2.3mm;font-size:7pt;overflow-wrap:anywhere;word-break:normal;}
.cash-print-table th{font-size:6.5pt;}
.cash-print-table th:nth-child(1),.cash-print-table td:nth-child(1){width:12%;}
.cash-print-table th:nth-child(2),.cash-print-table td:nth-child(2){width:8%;}
.cash-print-table th:nth-child(3),.cash-print-table td:nth-child(3){width:16%;}
.cash-print-table th:nth-child(4),.cash-print-table td:nth-child(4){width:16%;}
.cash-print-table th:nth-child(5),.cash-print-table td:nth-child(5){width:24%;}
.cash-print-table th:nth-child(6),.cash-print-table td:nth-child(6){width:12%;}
.cash-print-table th:nth-child(7),.cash-print-table td:nth-child(7){width:12%;}
.cash-print-table td.money,.cash-print-table th:last-child{text-align:right;white-space:nowrap;}
.cash-print-table thead{display:table-header-group;}
.cash-print-table tbody tr{break-inside:avoid;page-break-inside:avoid;}
.cash-print-table tfoot{display:table-row-group;break-inside:avoid;page-break-inside:avoid;}
.cash-print-section-heading{break-after:avoid;page-break-after:avoid;}
.cash-approval-section{break-inside:avoid;page-break-inside:avoid;margin-top:7mm;}
.cash-print-fixed-header{box-sizing:border-box;align-items:center;justify-content:space-between;gap:8mm;border-bottom:1px solid #d6e1ea;background:#fff;color:#17364f;}
.cash-print-header-brand{display:flex;align-items:center;gap:4mm;min-width:0;}
.cash-print-header-brand img{width:27mm;height:13mm;object-fit:contain;object-position:left center;flex:0 0 auto;}
.cash-print-header-brand div{display:grid;gap:.7mm;min-width:0;}
.cash-print-header-brand strong{font-size:10pt;font-weight:900;line-height:1.05;}
.cash-print-header-brand span{font-size:5.8pt;color:#607589;line-height:1.25;overflow-wrap:anywhere;}
.cash-print-header-document{text-align:right;display:grid;gap:.8mm;min-width:38mm;}
.cash-print-header-document span{font-size:6.6pt;color:#0f6fe5;font-weight:900;letter-spacing:.08em;}
.cash-print-header-document strong{font-size:9pt;color:#17364f;}
.cash-print-header-document small{font-size:6.2pt;color:#6e8396;}
.cash-print-header-document b{justify-self:end;padding:1mm 2.2mm;border-radius:999px;font-size:6pt;text-transform:uppercase;background:#eef3f7;color:#516a7f;}
.cash-print-header-document b.fechado{background:#e9f7ef;color:#1c7650;}
.cash-print-header-document b.aberto{background:#fff5df;color:#8b651e;}
.cash-print-header-document b.aguardando_aprovacao{background:#fff5df;color:#8b651e;}
.cash-print-fixed-footer{align-items:flex-end;justify-content:space-between;gap:8mm;border-top:1px solid #d6e1ea;background:#fff;color:#6e8396;}
.cash-print-fixed-footer>div:first-child{display:grid;gap:.7mm;min-width:0;}
.cash-print-fixed-footer strong{font-size:6.3pt;color:#3f6178;}
.cash-print-fixed-footer span,.cash-print-fixed-footer small{font-size:5.6pt;line-height:1.2;}
.cash-print-fixed-footer>div:last-child{display:flex;align-items:center;gap:4mm;font-size:5.8pt;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap;}

@media print{
  @page{size:A4 portrait;margin:0;}
  html,body.cash-print-page{margin:0!important;padding:0!important;background:#fff!important;}
  body.cash-print-page .print-toolbar{display:none!important;}
  body.cash-print-page .print-identity,body.cash-print-page .print-footer-v30{display:none!important;}
  body.cash-print-page .print-document-v30{width:210mm!important;max-width:none!important;min-height:297mm!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;overflow:visible!important;background:#fff!important;}
  body.cash-print-page .cash-print-fixed-header{display:flex!important;position:fixed!important;top:6mm!important;left:9mm!important;right:9mm!important;height:20mm!important;padding:0 0 3mm!important;z-index:100!important;}
  body.cash-print-page .cash-print-fixed-footer{display:flex!important;position:fixed!important;left:9mm!important;right:9mm!important;bottom:5mm!important;min-height:10mm!important;padding:2.5mm 0 0!important;z-index:100!important;}
  body.cash-print-page .cash-print-report{width:192mm!important;max-width:192mm!important;margin:0 auto!important;padding:31mm 0 20mm!important;box-sizing:border-box!important;}
  body.cash-print-page .cash-print-page-one{break-after:page!important;page-break-after:always!important;min-height:246mm!important;}
  body.cash-print-page .cash-print-page-two{break-before:auto!important;page-break-before:auto!important;}
  body.cash-print-page .cash-print-browser-title{display:none!important;}
  body.cash-print-page .cash-payment-summary-grid{grid-template-columns:repeat(5,1fr)!important;}
  body.cash-print-page .cash-print-section{break-inside:auto!important;page-break-inside:auto!important;}
  body.cash-print-page .cash-payment-summary-section{break-inside:avoid!important;page-break-inside:avoid!important;}
  body.cash-print-page .cash-print-table tr{break-inside:avoid!important;page-break-inside:avoid!important;}
  body.cash-print-page .cash-print-table tfoot{break-inside:avoid!important;page-break-inside:avoid!important;}
  body.cash-print-page .cash-approval-section{break-inside:avoid!important;page-break-inside:avoid!important;}
}

/* V78.92 — ação de configuração do mapa de inspeção por tipo de veículo. */
.icon-button.map-config{display:inline-flex;align-items:center;justify-content:center;font-size:13px;text-decoration:none;background:#eef7ff;border-color:#b8d8f5;color:#0b67ce}


/* V78.93 — nichos de catálogo de veículos */
.config-niche-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:4px 0 10px}.config-niche-option{display:flex;align-items:flex-start;gap:10px;border:1px solid #dbe7f1;border-radius:12px;padding:12px;background:#fff;cursor:pointer}.config-niche-option input{margin-top:3px}.config-niche-option span{display:flex;flex-direction:column;gap:3px}.config-niche-option small{color:#687f92;line-height:1.35}@media(max-width:900px){.config-niche-grid{grid-template-columns:1fr}}

/* V78.94 — rastreabilidade de estornos */
.recebimento-estornado td{background:#fff7f7;color:#7c6570}.recebimento-status{display:inline-grid;gap:2px;padding:5px 8px;border-radius:8px;font-size:9px;font-weight:800}.recebimento-status.ativo{background:#e7f5ee;color:#16865b}.recebimento-status.estornado{background:#ffe8eb;color:#b52e42}.recebimento-status.estornado small{font-size:8px;font-weight:600;color:#8d5160;line-height:1.25}.recebimento-bloqueado{display:inline-block;padding:7px 9px;border:1px solid #e3e8ee;border-radius:7px;background:#f3f5f7;color:#7f8b97;font-size:8px;font-weight:800}.cash-movement-pill.estorno{background:#ffe8eb!important;color:#b52e42!important}.cash-print-report tr.is-estorno td{background:#fff8f9}.cash-print-report tr.is-estorno .cash-movement-pill{font-weight:900}

/* V78.97 — Compras: fluxo 1-2-3, busca imediata de produto e feedback do salvamento. */
.purchase-step-kicker{letter-spacing:.06em;}
.purchase-product-picker{position:relative;width:100%;min-width:0;}
.purchase-product-search{width:100%!important;height:42px!important;min-height:42px!important;box-sizing:border-box!important;}
.purchase-product-select{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;}
.purchase-product-results{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:80;max-height:290px;overflow:auto;padding:5px;border:1px solid #b9d3ee;border-radius:10px;background:#fff;box-shadow:0 14px 32px rgba(15,53,88,.16);}
.purchase-product-result{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:2px;padding:9px 10px;border:0;border-radius:7px;background:#fff;color:#15395e;text-align:left;cursor:pointer;}
.purchase-product-result:hover,.purchase-product-result:focus{background:#eef6ff;outline:0;}
.purchase-product-result strong{font-size:11px;line-height:1.25;}
.purchase-product-result small{font-size:9px;color:#7790a5;}
.purchase-product-result-empty{color:#7a8fa2;cursor:default;}
.purchase-save-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;}
.purchase-save-buttons{display:flex;align-items:center;gap:9px;}
.purchase-save-feedback{min-height:20px;display:flex;align-items:center;font-size:10px;color:#6c8296;}
.purchase-save-feedback.is-progress{color:#1669bb;font-weight:700;}
.purchase-save-feedback.is-error{color:#b42335;font-weight:700;}
.purchase-save-actions [data-purchase-save]:disabled{opacity:.72;cursor:wait;}
@media(max-width:700px){.purchase-save-actions{align-items:stretch;flex-direction:column-reverse}.purchase-save-buttons{width:100%}.purchase-save-buttons .button{flex:1}.purchase-product-results{max-height:240px;}}



/* V78.98 — Compras: pesquisa de produto sem ficar escondida pela tabela e pagamento sem duplicidade de caixa. */
.purchase-items-table .table-wrap{overflow:visible;}
.purchase-items-table .module-items-data-table tbody tr:has(.purchase-product-search:focus){position:relative;z-index:300;}
.purchase-items-table .module-items-data-table td.purchase-basic-produto_id:focus-within{position:relative;z-index:301;background:#fff;}
.purchase-items-table .purchase-product-picker{z-index:302;}
.purchase-items-table .purchase-product-results{z-index:9999;max-height:340px;min-width:min(100%,520px);}
.purchase-items-table .purchase-product-result{padding:10px 12px;}
.purchase-items-table .purchase-product-result strong{font-size:11.5px;}
.purchase-items-table .purchase-product-result small{font-size:9.5px;}
.purchase-payment-note{display:block;margin:8px 2px 0;color:#6b8498;font-size:10.5px;line-height:1.45;}
[data-compra-financeiro] .purchase-split-head p{max-width:900px;}
@media(max-width:900px){.purchase-items-table .table-wrap{overflow-x:auto;overflow-y:visible;}.purchase-items-table .purchase-product-results{min-width:calc(100% - 10px);max-width:420px;}}

/* V78.99 — Compras: diagnóstico do salvamento e múltiplas formas visíveis. */
.purchase-split-unavailable{
    margin:10px 0 0;
    padding:10px 12px;
    border:1px dashed #c6d7e6;
    border-radius:9px;
    background:#f8fbfd;
    color:#5f7488;
    font-size:10.5px;
    line-height:1.45;
}
[data-compra-financeiro] .split-add-button:disabled{
    opacity:.58;
    cursor:not-allowed;
    box-shadow:none;
}
.purchase-save-feedback.is-success{color:#19734b;font-weight:800;}
.purchase-save-feedback.is-error{min-height:30px;max-width:760px;padding:7px 10px;border-radius:7px;background:#fff2f3;}
.purchase-save-feedback.is-progress{min-height:30px;padding:7px 10px;border-radius:7px;background:#eef7ff;}

/* V79.01 — compras bloqueadas após baixa e estorno documentado. */
.purchase-locked-banner{display:flex;align-items:center;gap:14px;margin:0 0 16px;padding:14px 16px;border:1px solid #efc2c6;border-left:4px solid #c43845;border-radius:12px;background:#fff6f7;color:#6b2b33;}
.purchase-locked-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;background:#fde1e4;font-size:18px;flex:0 0 auto;}
.purchase-locked-copy{display:grid;gap:3px;min-width:0;flex:1;}
.purchase-locked-copy strong{font-size:13px;color:#9f2432;}
.purchase-locked-copy span{font-size:11px;line-height:1.45;color:#7b4c53;}
.purchase-estorno-modal .delete-confirm-card{max-width:720px;}
.purchase-estorno-modal textarea{min-height:92px;resize:vertical;}
.purchase-estorno-modal .delete-confirm-actions{gap:10px;flex-wrap:wrap;}
@media(max-width:760px){.purchase-locked-banner{align-items:flex-start;flex-wrap:wrap}.purchase-locked-banner .button{width:100%;}.purchase-locked-copy{flex-basis:calc(100% - 52px);}}

.purchase-form-locked input:disabled,.purchase-form-locked select:disabled,.purchase-form-locked textarea:disabled{opacity:.82;background:#f7fafc;color:#4b6275;cursor:not-allowed;}
.purchase-form-locked .mini-action,.purchase-form-locked [data-module-item-add],.purchase-form-locked .button-with-icon,.purchase-form-locked [data-module-item-remove]{opacity:.45;pointer-events:none;}


/* V79.04 — Compras: confirmação visual pós-salvamento e diagnóstico sem aparência de erro em sucesso. */
.purchase-save-success-modal{position:fixed;inset:0;z-index:2147482900;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(8,25,42,.48);backdrop-filter:blur(2px);}
.purchase-save-success-modal[hidden]{display:none!important;}
.purchase-save-success-card{width:min(520px,calc(100vw - 36px));background:#fff;border:1px solid #b9e4cf;border-top:4px solid #1c9a66;border-radius:16px;box-shadow:0 24px 70px rgba(15,45,75,.24);padding:26px 28px;text-align:center;}
.purchase-save-success-icon{width:52px;height:52px;margin:0 auto 12px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e4f7ee;color:#188459;font-size:28px;font-weight:900;}
.purchase-save-success-card .page-kicker{color:#188459;}
.purchase-save-success-card h2{margin:8px 0 7px;color:#12314d;font-size:22px;}
.purchase-save-success-card p{margin:0;color:#60798e;font-size:12px;line-height:1.5;}
.purchase-save-success-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0 0;text-align:left;}
.purchase-save-success-summary>div{padding:11px 12px;border:1px solid #dce9e2;border-radius:10px;background:#f7fcf9;}
.purchase-save-success-summary small{display:block;font-size:9px;font-weight:800;color:#6c8496;letter-spacing:.06em;}
.purchase-save-success-summary strong{display:block;margin-top:3px;color:#183a55;font-size:13px;}
.purchase-save-success-next{margin-top:16px;color:#1d7f5b;font-size:11px;font-weight:800;}
@media(max-width:560px){.purchase-save-success-card{padding:22px 18px}.purchase-save-success-summary{grid-template-columns:1fr;}}
#systenova-diagnostico-global .sdg-panel.is-success{border-color:#1c9a66;}
#systenova-diagnostico-global .sdg-panel.is-success .sdg-head{background:#f4fcf8;border-bottom-color:#d4eee0;}
#systenova-diagnostico-global .sdg-panel.is-success .sdg-msg{background:#e9f8f0;color:#16784f;}
#systenova-diagnostico-global .sdg-panel.is-info{border-color:#8ab8df;}
#systenova-diagnostico-global .sdg-panel.is-info .sdg-head{background:#f5faff;border-bottom-color:#d7e8f5;}
#systenova-diagnostico-global .sdg-panel.is-info .sdg-msg{background:#eef7ff;color:#1f5f8f;}

/* V79.08 — Despesas: botões de cadastro alinhados ao campo de vínculo e feedback do salvamento. */
#form-despesa .linked-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch;width:100%;}
#form-despesa .linked-field select{min-width:0;height:44px;}
#form-despesa .linked-field .button{height:44px;min-height:44px;min-width:112px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;margin:0;}
#form-despesa .despesa-feedback{margin:0 0 18px;border:1px solid #cfe1ee;}
#form-despesa .despesa-feedback small{display:block;margin-top:7px;font-weight:700;}
#form-despesa .despesa-feedback.sucesso{border-color:#b7e2cd;}
#form-despesa .despesa-feedback.erro{border-color:#efc3c0;}
@media(max-width:620px){#form-despesa .linked-field{grid-template-columns:minmax(0,1fr) auto;}#form-despesa .linked-field .button{min-width:96px;padding-inline:9px;font-size:11px;}}


/* V79.19 — Produção: correção definitiva do grid dos filtros de Contas a pagar. O contêiner usa uma coluna; as linhas internas controlam a grade dos campos. */
.system-interface .payable-filters{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin-bottom:13px;
    padding:14px 15px 15px;
    background:var(--ui-surface,#fff);
    border:1px solid var(--ui-line,#dfe7ee);
    border-radius:12px;
    box-shadow:0 4px 14px rgba(8,42,74,.035);
}
.system-interface .payable-filter-heading{
    grid-column:1/-1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-bottom:2px;
}
.system-interface .payable-filter-heading .page-kicker{margin:0}
.system-interface .payable-filter-heading small{color:#7b8fa1;font-size:9px;line-height:1.4;text-align:right}
.system-interface .payable-filter-row{grid-column:1/-1;display:grid;gap:10px;min-width:0}
.system-interface .payable-filter-row-main{grid-template-columns:minmax(135px,.8fr) minmax(135px,.8fr) minmax(210px,1.2fr) minmax(280px,1.6fr)}
.system-interface .payable-filter-row-actions{grid-template-columns:minmax(300px,1fr) minmax(180px,.45fr) auto}
.system-interface .payable-filter-row label{display:grid;gap:4px;min-width:0;color:#64788b;font-size:9px;font-weight:800}
.system-interface .payable-filter-row input,
.system-interface .payable-filter-row select{width:100%;min-width:0;height:40px;box-sizing:border-box}
.system-interface .payable-filter-buttons{display:flex;align-items:end;justify-content:flex-end;gap:8px;min-width:max-content}
.system-interface .payable-filter-buttons .button{height:40px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
@media(max-width:1100px){
    .system-interface .payable-filters{grid-template-columns:1fr;}
    .system-interface .payable-filter-row-main{grid-template-columns:1fr 1fr}
    .system-interface .payable-filter-row-main label:nth-child(3),
    .system-interface .payable-filter-row-main label:nth-child(4){grid-column:span 1}
    .system-interface .payable-filter-row-actions{grid-template-columns:minmax(260px,1fr) minmax(170px,.55fr) auto}
}
@media(max-width:780px){
    .system-interface .payable-filters{grid-template-columns:1fr;}
    .system-interface .payable-filter-heading{align-items:flex-start;flex-direction:column}
    .system-interface .payable-filter-heading small{text-align:left}
    .system-interface .payable-filter-row-main,
    .system-interface .payable-filter-row-actions{grid-template-columns:1fr}
    .system-interface .payable-filter-buttons{justify-content:stretch;min-width:0}
    .system-interface .payable-filter-buttons .button{flex:1}
}

/* V79.20 — Base da importação assistida de compras via ChatGPT. */
.purchase-ai-import-bar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 16px;margin-bottom:16px;border:1px solid #cfe0ef;border-radius:12px;background:linear-gradient(180deg,#f8fbff,#f2f8fd);}
.purchase-ai-import-copy{display:flex;flex-direction:column;gap:4px;min-width:0;}
.purchase-ai-import-copy strong{color:#153b5d;font-size:14px;}
.purchase-ai-import-copy small{color:#71869a;font-size:11px;line-height:1.45;max-width:850px;}
.purchase-ai-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:20px;}
.purchase-ai-modal[hidden]{display:none!important;}
.purchase-ai-backdrop{position:absolute;inset:0;background:rgba(8,31,53,.55);backdrop-filter:blur(2px);}
.purchase-ai-card{position:relative;width:min(1100px,96vw);max-height:92vh;overflow:auto;background:#fff;border:1px solid #cbddec;border-radius:16px;box-shadow:0 28px 70px rgba(7,34,58,.28);padding:24px;}
.purchase-ai-card h2{margin:6px 0 8px;color:#153b5d;font-size:22px;}
.purchase-ai-card>p{margin:0 0 16px;color:#6f8397;line-height:1.5;font-size:12px;}
.purchase-ai-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.purchase-ai-prompt-block,.purchase-ai-json-block{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid #d7e4f0;border-radius:12px;background:#f9fbfd;}
.purchase-ai-prompt-block label,.purchase-ai-json-block label{font-weight:800;color:#254866;font-size:12px;}
.purchase-ai-prompt-block textarea,.purchase-ai-json-block textarea{width:100%;min-height:280px;resize:vertical;box-sizing:border-box;border:1px solid #c8dbea;border-radius:10px;padding:12px;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;color:#25435d;background:#fff;}
.purchase-ai-json-block textarea{font-family:inherit;}
.purchase-ai-prompt-block small{color:#5f7a92;font-size:11px;min-height:16px;}
.purchase-ai-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;}
.purchase-ai-feedback{margin-top:14px;padding:11px 13px;border-radius:10px;display:none;font-size:12px;line-height:1.45;}
.purchase-ai-feedback:not(:empty){display:block;}
.purchase-ai-feedback.is-success{border:1px solid #b6e0c5;background:#edf9f1;color:#20643a;}
.purchase-ai-feedback.is-warning{border:1px solid #f2d69a;background:#fff8e9;color:#735315;}
.purchase-ai-feedback.is-error{border:1px solid #efb0b0;background:#fff1f1;color:#8b2323;}
.purchase-ai-review{margin-top:12px;padding:12px 14px;border-radius:10px;font-size:12px;line-height:1.5;}
.purchase-ai-review ul{margin:6px 0 0 18px;padding:0;}
.purchase-ai-review.is-ok{border:1px solid #b6e0c5;background:#edf9f1;color:#20643a;}
.purchase-ai-review.is-warning{border:1px solid #f2d69a;background:#fff8e9;color:#735315;}
.purchase-ai-footer-note{margin-top:14px;padding-top:12px;border-top:1px solid #e1eaf2;color:#74889b;font-size:11px;line-height:1.45;}
@media(max-width:800px){.purchase-ai-import-bar{align-items:flex-start;flex-direction:column}.purchase-ai-import-bar .button{width:100%}.purchase-ai-grid{grid-template-columns:1fr}.purchase-ai-card{padding:18px}.purchase-ai-prompt-block textarea,.purchase-ai-json-block textarea{min-height:220px;}}

.purchase-ai-inline-feedback{margin:-4px 0 14px;padding:11px 13px;border-radius:10px;font-size:12px;line-height:1.45;}
.purchase-ai-inline-feedback strong{font-weight:800;}
.purchase-ai-inline-feedback ul{margin:6px 0 0 18px;padding:0;}
.purchase-ai-inline-feedback.is-success{border:1px solid #b6e0c5;background:#edf9f1;color:#20643a;}
.purchase-ai-inline-feedback.is-warning{border:1px solid #f2d69a;background:#fff8e9;color:#735315;}
.purchase-ai-inline-feedback.is-error{border:1px solid #efb0b0;background:#fff1f1;color:#8b2323;}

/* V79.21 — Importação XML direta e fechamento explícito do modal de importação assistida. */
.purchase-ai-import-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto;flex-wrap:wrap;}
.purchase-ai-modal .purchase-ai-modal-close{position:absolute;top:14px;right:14px;z-index:5;width:40px;height:40px;min-width:40px;min-height:40px;margin:0;padding:0;border:1px solid rgba(255,255,255,.35);border-radius:10px;background:#0d6fd7;color:#fff;box-shadow:0 6px 16px rgba(7,34,58,.18);font-size:25px;font-weight:700;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.purchase-ai-modal .purchase-ai-modal-close:hover{background:#0a5fba;color:#fff;transform:none;}
.purchase-ai-modal .purchase-ai-card{padding-top:28px;}
@media(max-width:800px){.purchase-ai-import-actions{width:100%;justify-content:stretch}.purchase-ai-import-actions .button{flex:1;min-width:0}}

/* V79.23 — Modal de pessoas: cabeçalho fixo e barra de rolagem somente no conteúdo. */
.people-modal-card{
    display:flex;
    flex-direction:column;
    max-height:calc(100vh - 36px);
    overflow:hidden;
}
.people-modal-card>.people-modal-header{
    position:relative;
    flex:0 0 auto;
}
.people-modal-card>form{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    min-height:0;
    padding:0;
    overflow:hidden;
}
.people-modal-body{
    flex:1 1 auto;
    min-height:0;
    overflow-x:hidden;
    overflow-y:auto;
    padding:20px;
    scrollbar-gutter:stable;
    overscroll-behavior:contain;
    scrollbar-width:auto;
    scrollbar-color:#0f70dc #dce8f2;
}
.people-modal-body::-webkit-scrollbar{width:14px;height:14px}
.people-modal-body::-webkit-scrollbar-track{border-left:1px solid #c7d8e7;background:#dce8f2}
.people-modal-body::-webkit-scrollbar-thumb{min-height:52px;border:3px solid #dce8f2;border-radius:99px;background:#0f70dc}
.people-modal-body::-webkit-scrollbar-thumb:hover{background:#0759b8}
.people-modal-actions{
    position:relative;
    bottom:auto;
    flex:0 0 auto;
    margin:0;
}
.cep-feedback{display:block;margin-top:5px;font-size:10px;line-height:1.35;color:var(--muted)}
.cep-feedback.carregando{color:var(--blue)}
.cep-feedback.sucesso{color:var(--success)}
.cep-feedback.erro{color:var(--danger)}
.document-date-cell{display:inline-block;white-space:nowrap}
[data-theme="escuro"] .people-modal-body{scrollbar-color:#4ca8ff #253548}
[data-theme="escuro"] .people-modal-body::-webkit-scrollbar-track{border-left-color:#405269;background:#253548}
[data-theme="escuro"] .people-modal-body::-webkit-scrollbar-thumb{border-color:#253548;background:#4ca8ff}
@media(max-width:600px){
    .people-modal-card{max-height:100vh;height:100vh}
    .people-modal-body{padding:14px;scrollbar-gutter:auto}
    .people-modal-actions{margin:0;padding:13px 14px}
}

/* V79.38: mesma sequência de lançamento no cadastro e na edição de produtos. */
.product-entry-sections{display:grid;gap:16px;min-width:0}
.product-entry-section{margin:0;padding:18px;min-width:0}
.product-entry-section .panel-heading{margin-bottom:16px}
.product-entry-section .panel-heading h2{font-size:16px;margin:0 0 5px}
.product-entry-section .panel-heading p{margin:0;color:var(--muted);font-size:12px}
.product-entry-section .check-field{min-height:40px;display:flex;align-items:center;gap:8px}
.product-entry-section .check-field input{width:auto;flex:0 0 auto}
@media(max-width:600px){.product-entry-section{padding:14px}.product-entry-section .panel-heading h2{font-size:15px}.app-modal:has(> .modal-card-product){padding:8px}}
