:root{
  --deep:#050608;--navy:#0d0f13;--panel:#fff;--panel-soft:#f7f8fa;--red:#e30613;--red-dark:#b6000b;--red-glow:#ff2734;--red-soft:#fff0f1;--text:#17181c;--muted:#6d7078;--line:#e3e5e9;--success:#16a36a;--warning:#e69b19;--shadow:0 18px 50px rgba(17,20,28,.09);font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--text);background:#eef0f4
}
*{box-sizing:border-box}html{min-width:320px;background:#eef0f4}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 92% 3%,rgba(227,6,19,.08),transparent 27rem),linear-gradient(rgba(24,27,35,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(24,27,35,.025) 1px,transparent 1px),#eef0f4;background-size:auto,32px 32px,32px 32px,auto}button,input,select,textarea{font-family:inherit}.hidden{display:none!important}
.topbar{height:82px;background:rgba(5,6,8,.97);border-bottom:1px solid rgba(255,39,52,.65);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1500px)/2));position:sticky;top:0;z-index:10;box-shadow:0 10px 35px rgba(0,0,0,.22);backdrop-filter:blur(14px)}.topbar:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,var(--red-glow),transparent);box-shadow:0 0 15px var(--red)}.brand,.user-area,.row{display:flex;align-items:center;gap:12px}.brand{gap:15px}.brand strong{font-size:15px;letter-spacing:.2px}.brand span,.user-copy span{display:block;color:#9da1aa;font-size:11px;margin-top:3px;text-transform:uppercase;letter-spacing:1.1px}.brand-logo{display:block;object-fit:contain;background:#000;border-radius:10px}.header-logo{width:102px;height:57px}.login-logo{width:100%;max-width:330px;margin:0 auto 25px}.user-area{gap:10px}.user-copy{text-align:right;padding-right:4px}.user-copy strong{font-size:14px}.server-status{display:inline-flex!important;align-items:center;gap:7px;color:#a8afb9!important}.server-status i{width:7px;height:7px;border-radius:50%;background:#23d389;box-shadow:0 0 0 4px rgba(35,211,137,.12),0 0 12px #23d389;animation:pulse 2s infinite}@keyframes pulse{50%{opacity:.5;box-shadow:0 0 0 7px rgba(35,211,137,0)}}
.icon-button{border:1px solid transparent;background:transparent;min-width:42px;height:42px;border-radius:12px;cursor:pointer;font-size:18px;position:relative;color:inherit;transition:.2s}.icon-button:hover{background:#ffffff12;border-color:#ffffff17;transform:translateY(-1px)}.icon-button.bordered{border:1px solid var(--line);background:#fff;color:var(--text);box-shadow:0 4px 12px rgba(0,0,0,.05)}.icon-button.bordered:hover{border-color:var(--red);color:var(--red)}.icon-button b{position:absolute;right:1px;top:0;background:var(--red);color:#fff;border:2px solid var(--deep);border-radius:10px;min-width:18px;font-size:10px;line-height:15px}
.container{max-width:1500px;margin:auto;padding:34px 24px 80px}.hero{position:relative;overflow:hidden;display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:18px;padding:32px 34px;border-radius:22px;color:#fff;background:linear-gradient(125deg,#08090c 0%,#15171d 70%,#23070b 100%);box-shadow:0 22px 60px rgba(8,9,12,.2);border:1px solid rgba(255,255,255,.07)}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px);background-size:28px 28px;mask-image:linear-gradient(90deg,#000,transparent 70%)}.hero:after{content:"";position:absolute;width:280px;height:280px;right:-80px;top:-150px;border:1px solid rgba(255,39,52,.45);border-radius:50%;box-shadow:0 0 70px rgba(227,6,19,.28),inset 0 0 55px rgba(227,6,19,.15)}.hero>*{position:relative;z-index:1}.hero h1{font-size:42px;line-height:1.04;letter-spacing:-1.8px;margin:8px 0 9px}.hero .muted{color:#b8bbc3}.eyebrow{font-size:11px;font-weight:850;letter-spacing:2.5px;color:var(--red-glow);margin:0;text-transform:uppercase}.muted{color:var(--muted);margin:4px 0;line-height:1.55}.actions{display:flex;flex-wrap:wrap;gap:10px}.hero .button.outline{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16);color:#fff}.hero .button.dark{background:#fff;color:#111}.hero .button.dark:hover{background:#e9e9eb}
.button{height:44px;border-radius:11px;padding:0 18px;border:0;font-family:inherit;font-size:14px;font-weight:650;line-height:1;white-space:nowrap;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:transform .18s,box-shadow .18s,background .18s,border-color .18s}.button:hover{transform:translateY(-1px)}.button.primary{background:linear-gradient(135deg,var(--red-glow),var(--red-dark));color:#fff;box-shadow:0 8px 20px rgba(227,6,19,.23)}.button.primary:hover{box-shadow:0 10px 28px rgba(227,6,19,.34)}.button.dark{background:linear-gradient(135deg,#23252b,#08090b);color:#fff}.button.outline{background:#fff;border:1px solid var(--line);color:var(--text)}.button.outline:hover{border-color:#bfc2c9;box-shadow:0 7px 18px rgba(0,0,0,.07)}.button.danger{background:#fff;border:1px solid #efb5ba;color:var(--red-dark)}.button.danger:hover{background:var(--red-soft);border-color:var(--red);box-shadow:0 7px 18px rgba(227,6,19,.12)}.button.wide{width:100%;height:49px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stats article{position:relative;overflow:hidden;background:rgba(255,255,255,.94);border:1px solid rgba(221,224,230,.9);border-radius:18px;padding:19px;display:flex;align-items:center;gap:15px;box-shadow:0 9px 28px rgba(25,28,35,.055);transition:.2s}.stats article:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#d5d8de}.stats article:after{content:"";position:absolute;left:0;bottom:0;width:100%;height:3px;background:linear-gradient(90deg,var(--red),transparent)}.stats article i{font-style:normal;flex:0 0 48px;width:48px;height:48px;border-radius:14px;background:#101217;color:#fff;display:grid;place-items:center;font-size:21px;font-weight:800;box-shadow:0 9px 18px rgba(12,14,18,.2)}.stats article:nth-child(2) i{background:linear-gradient(135deg,#139864,#086c48)}.stats article:nth-child(2):after{background:linear-gradient(90deg,#16a36a,transparent)}.stats article:nth-child(3) i{background:linear-gradient(135deg,#f0aa2d,#b76500)}.stats article:nth-child(3):after{background:linear-gradient(90deg,#e69b19,transparent)}.stats article:nth-child(4) i{background:linear-gradient(135deg,#4a4f5c,#191b20)}.stats span,.stats small{display:block;color:var(--muted);font-size:12px}.stats span{text-transform:uppercase;letter-spacing:.65px;font-weight:700}.stats strong{display:block;font-size:29px;line-height:1;margin:6px 0}.stats #low-card.alert{background:linear-gradient(135deg,#fff,#fff0f1);border-color:rgba(227,6,19,.35)}.stats #low-card.alert i{background:linear-gradient(135deg,var(--red-glow),var(--red-dark));animation:alertGlow 2.4s infinite}@keyframes alertGlow{50%{box-shadow:0 0 25px rgba(227,6,19,.42)}}
.tabs{display:flex;gap:5px;width:max-content;max-width:100%;overflow:auto;background:rgba(12,14,18,.95);border:1px solid rgba(255,255,255,.08);padding:6px;border-radius:14px;margin:24px 0 14px;box-shadow:0 8px 24px rgba(0,0,0,.12);scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tabs button{border:0;background:transparent;padding:11px 17px;border-radius:9px;color:#9fa3ad;font-weight:700;cursor:pointer;white-space:nowrap;transition:.2s}.tabs button:hover{color:#fff;background:rgba(255,255,255,.06)}.tabs button.active{background:linear-gradient(135deg,var(--red-glow),var(--red-dark));color:#fff;box-shadow:0 7px 17px rgba(227,6,19,.28)}
.panel{background:rgba(255,255,255,.96);border:1px solid rgba(218,221,227,.9);border-radius:19px;overflow:hidden;box-shadow:var(--shadow)}.panel-toolbar,.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 21px;border-bottom:1px solid var(--line);gap:12px;background:linear-gradient(180deg,#fff,#fafbfc)}.panel-heading h2{margin:0;font-size:19px;letter-spacing:-.25px}.search{position:relative;flex:1;max-width:500px}.search span{position:absolute;left:13px;top:9px;font-size:20px;color:#8b8f98}input,select,textarea{width:100%;border:1px solid #d4d7dd;border-radius:10px;background:#fff;padding:0 13px;font:15px inherit;color:var(--text);outline:none;transition:.18s}input,select{height:44px}textarea{min-height:92px;padding:12px 13px;resize:vertical;line-height:1.5}input::placeholder,textarea::placeholder{color:#a4a7ae}input:hover,select:hover,textarea:hover{border-color:#b9bdc5}input:focus,select:focus,textarea:focus{border-color:var(--red);box-shadow:0 0 0 4px rgba(227,6,19,.1)}input:disabled,select:disabled,textarea:disabled{background:#f1f2f4;color:#60636b}.search input{padding-left:40px;background:#f7f8fa}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px}th,td{text-align:left;padding:14px 16px;border-bottom:1px solid #e9ebee;white-space:nowrap}th{font-size:10px;text-transform:uppercase;letter-spacing:1.05px;color:#777b84;background:#f6f7f9}tbody tr{transition:.15s}tbody tr:hover{background:#fafbfc}tbody tr:last-child td{border-bottom:0}td:first-child{font-weight:680}.low-row{background:#fff5f6}.low-row:hover{background:#ffedef}.low-number{color:var(--red-dark);font-weight:850}.good-number{color:#10724d;font-weight:850}code{background:#f0f1f3;padding:4px 7px;border-radius:6px;color:#4b4e56}.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:14px;font-size:11px;font-weight:750;background:var(--red-soft);color:var(--red-dark);border:1px solid rgba(227,6,19,.12)}.badge.out{background:#111319;color:#fff;border-color:#111319}.badge.outline{background:#fff;border:1px solid var(--line);color:var(--text)}.empty{padding:72px;text-align:center;color:var(--muted);background:radial-gradient(circle,#fff,#fafbfc)}
.backup-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:22px}.backup-grid article{border:1px solid var(--line);border-radius:16px;padding:25px;background:linear-gradient(145deg,#fff,#f7f8fa);box-shadow:0 8px 24px rgba(0,0,0,.04)}.backup-grid h2{margin:12px 0 7px}.backup-grid p,.info-box p{color:var(--muted);line-height:1.65}.big-icon{display:grid;width:50px;height:50px;place-items:center;border-radius:14px;background:linear-gradient(135deg,#262932,#07080a);color:#fff;font-size:24px;font-weight:bold;box-shadow:0 9px 20px rgba(0,0,0,.2);border-bottom:3px solid var(--red)}.backup-grid input[type=file]{height:auto;padding:11px;margin-bottom:10px}.info-box{margin:0 22px 22px;background:#f7f8fa;border:1px solid #d9dce1;border-left:4px solid var(--red);border-radius:12px;padding:18px}
.auth-shell{min-height:100vh;background:radial-gradient(circle at 78% 18%,rgba(227,6,19,.3),transparent 28rem),linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),#050608;background-size:auto,34px 34px,34px 34px,auto;display:grid;place-items:center;padding:24px}.auth-card{position:relative;overflow:hidden;width:min(470px,100%);background:rgba(255,255,255,.98);border-radius:24px;padding:36px 40px 40px;box-shadow:0 32px 90px rgba(0,0,0,.62);border:1px solid rgba(255,255,255,.65)}.auth-card:before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,transparent,var(--red),var(--red-glow),transparent);box-shadow:0 0 20px var(--red)}.auth-card h1{font-size:31px;letter-spacing:-.8px;margin:9px 0}.form-stack,.dialog-form{display:grid;gap:16px}.field{display:grid;gap:7px}.field label{font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.45px}.error{color:#b42318;font-size:13px;min-height:18px}.columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.columns.three{grid-template-columns:repeat(3,1fr)}
dialog{border:1px solid rgba(255,255,255,.7);padding:0;border-radius:20px;width:min(620px,calc(100% - 28px));max-height:calc(100dvh - 24px);overflow:auto;box-shadow:0 32px 100px rgba(0,0,0,.55);border-top:4px solid var(--red)}dialog::backdrop{background:rgba(0,0,0,.76);backdrop-filter:blur(7px)}.dialog-form{padding:26px}.dialog-form header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.dialog-form footer{display:grid;grid-template-columns:repeat(2,minmax(130px,180px));justify-content:end;align-items:stretch;gap:12px;width:100%;padding-top:4px}.dialog-form footer .button{width:100%;min-width:0;max-width:none;flex:none}.dialog-form h2{margin:0;font-size:24px;letter-spacing:-.5px}.dialog-form header p{margin:5px 0;color:var(--muted)}.dialog-close{border:0;background:#f0f1f3;width:38px;height:38px;border-radius:11px;font-size:25px;line-height:1;cursor:pointer;color:var(--muted);transition:.18s}.dialog-close:hover{background:var(--red-soft);color:var(--red)}.check{display:flex;gap:10px;border:1px solid var(--line);border-radius:12px;padding:14px;background:#f8f9fa}.check input{width:20px;height:20px;accent-color:var(--red)}.check small,.check strong{display:block}.check small{color:var(--muted);margin-top:3px}.segment{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#eceef1;padding:5px;border-radius:12px}.segment button{min-height:40px;border:0;border-radius:8px;background:transparent;font-weight:750;cursor:pointer;color:#60636b}.segment button.active{background:linear-gradient(135deg,var(--red-glow),var(--red-dark));color:#fff;box-shadow:0 6px 15px rgba(227,6,19,.24)}.movement-types{grid-template-columns:repeat(2,1fr)}.movement-types button{height:auto;padding:8px}.notice-list{display:grid;gap:9px;max-height:55vh;overflow:auto}.notice{border:1px solid var(--line);border-left:4px solid var(--red);border-radius:11px;padding:14px;background:#fafbfc}.notice strong{display:block}.notice p{color:var(--muted);margin:7px 0}.notice small{color:#8a8e97}.toast{position:fixed;right:22px;bottom:22px;background:#101217;color:#fff;border-radius:12px;padding:14px 18px;opacity:0;transform:translateY(10px);transition:.22s;pointer-events:none;z-index:50;border-left:4px solid var(--red);box-shadow:0 16px 45px rgba(0,0,0,.3)}.toast.show{opacity:1;transform:none}.toast.error-toast{background:#8f0009}#scanner-video{width:100%;aspect-ratio:16/9;object-fit:cover;background:#050608;border-radius:12px}
.evidence-fields{display:grid;gap:12px;border:1px solid rgba(227,6,19,.24);border-left:4px solid var(--red);border-radius:12px;padding:15px;background:linear-gradient(135deg,#fff8f8,#fff)}.evidence-note strong,.evidence-note small{display:block}.evidence-note small,.evidence-fields .field small,#custodian-help{color:var(--muted);font-size:12px;margin-top:1px}.evidence-fields input[type=file]{height:auto;min-height:46px;padding:9px;background:#fff}.proof-actions{display:flex;gap:7px}.proof-link{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border:1px solid var(--line);border-radius:9px;color:#111;text-decoration:none;font-weight:700;background:#fff;transition:.18s}.proof-link:hover{border-color:var(--red);color:var(--red-dark);background:#fff7f7}.movement-saida{background:#111319;color:#fff;border-color:#111319}.movement-devolucao{background:#e7f8ef;color:#12633f;border-color:#bfead2}.movement-consumo{background:#fff1dc;color:#8a4a05;border-color:#f5d39d}
.report-heading{align-items:flex-start}.report-export{display:flex;gap:9px;flex-wrap:wrap}.report-filters{display:grid;grid-template-columns:1.2fr 1.5fr 1fr 1.15fr 1fr 1fr auto;gap:12px;align-items:end;padding:20px 21px 13px;background:#fff}.report-apply{min-width:130px}.report-ranges{display:flex;align-items:center;gap:8px;padding:0 21px 18px;flex-wrap:wrap;border-bottom:1px solid var(--line)}.report-ranges span{font-size:12px;font-weight:750;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}.report-range{border:1px solid var(--line);background:#f7f8fa;color:#34363c;border-radius:18px;padding:7px 11px;font-size:12px;font-weight:700;cursor:pointer;transition:.18s}.report-range:hover{border-color:var(--red);color:var(--red-dark);background:var(--red-soft)}.report-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:18px 21px;background:linear-gradient(180deg,#fafbfc,#fff)}.report-kpis article{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:14px;padding:16px;background:#fff;box-shadow:0 7px 20px rgba(0,0,0,.04)}.report-kpis article:after{content:"";position:absolute;left:0;bottom:0;width:100%;height:3px;background:linear-gradient(90deg,var(--red),transparent)}.report-kpis span{display:block;color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.7px;text-transform:uppercase}.report-kpis strong{display:block;font-size:27px;margin-top:7px}.report-section-title{display:flex;align-items:center;justify-content:space-between;padding:22px 21px 12px;border-top:1px solid var(--line)}.report-section-title h3{margin:0;font-size:17px}.report-section-title p{font-size:13px}.report-section-title+.table-wrap{border-top:1px solid var(--line)}
.ai-result{display:grid;grid-template-columns:auto auto;align-items:center;justify-content:start;gap:5px;min-width:170px}.ai-result small{grid-column:1/-1;display:block;max-width:260px;color:var(--muted);line-height:1.3}.ai-badge,.ai-connection{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:800;white-space:nowrap}.ai-aprovado{background:#e5f7ed;color:#12613d}.ai-revisao{background:#fff3d9;color:#805000}.ai-reprovado{background:#ffe4e6;color:#a0000a}.ai-nao_analisado{background:#edf0f4;color:#626772}.reanalyze-ai{display:grid;place-items:center;width:27px;height:27px;border:1px solid var(--line);background:#fff;border-radius:8px;cursor:pointer;color:var(--red);font-size:16px}.ai-connection{background:#eef0f3;color:#656a74}.ai-connection.online{background:#e5f7ed;color:#12613d}.ai-dashboard{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:20px}.ai-dashboard article{border:1px solid var(--line);border-radius:14px;padding:17px;background:linear-gradient(145deg,#fff,#f7f8fa)}.ai-dashboard span{display:block;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase}.ai-dashboard strong{display:block;font-size:28px;margin-top:7px}.ai-settings{display:grid;gap:17px;margin:0 20px 20px;padding:22px;border:1px solid var(--line);border-radius:16px;background:#fafbfc}.ai-settings h3{margin:0}.ai-settings .muted{margin-top:5px}.ai-settings>.button{width:max-content}
.product-actions{display:flex;gap:7px;flex-wrap:wrap}.product-actions .button,.category-actions .button{height:38px;padding:0 13px;font-size:12px}.category-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;padding:20px}.category-grid article{display:flex;align-items:center;gap:13px;border:1px solid var(--line);border-radius:14px;padding:16px;background:linear-gradient(145deg,#fff,#f7f8fa);box-shadow:0 7px 18px rgba(0,0,0,.04)}.category-grid article>span{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#111319;color:#fff;border-bottom:3px solid var(--red)}.category-copy{min-width:0;flex:1}.category-copy strong{overflow-wrap:anywhere}.category-grid strong,.category-grid small{display:block}.category-grid small{color:var(--muted);margin-top:4px}.category-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.schedule-heading{align-items:flex-start}.schedule-heading-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.schedule-people{display:flex;gap:8px;overflow-x:auto;padding:15px 20px;background:#0c0e12;border-bottom:1px solid #282b32;scrollbar-width:thin}.schedule-person{flex:0 0 auto;min-width:145px;text-align:left;border:1px solid #2d3038;border-radius:11px;background:#181a20;color:#fff;padding:10px 13px;cursor:pointer;transition:.18s}.schedule-person span,.schedule-person small{display:block}.schedule-person span{font-weight:750}.schedule-person small{color:#9196a1;margin-top:3px}.schedule-person:hover{border-color:#696e78}.schedule-person.active{border-color:var(--red-glow);background:linear-gradient(135deg,#2a0c10,#15161b);box-shadow:0 0 18px rgba(227,6,19,.18)}.schedule-filters{display:grid;grid-template-columns:1.2fr 1fr 1.5fr 1fr 1fr auto;gap:11px;align-items:end;padding:18px 20px;border-bottom:1px solid var(--line)}.schedule-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;padding:16px 20px;background:#f7f8fa}.schedule-kpis article{border:1px solid var(--line);border-radius:13px;background:#fff;padding:14px 16px;box-shadow:0 5px 15px rgba(0,0,0,.035)}.schedule-kpis span{display:block;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.65px}.schedule-kpis strong{display:block;margin-top:6px;font-size:25px}.schedule-calendar-shell{margin:0 20px 20px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.045)}.calendar-toolbar{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:10px;padding:14px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#f7f8fa)}.calendar-toolbar>div{text-align:center}.calendar-toolbar strong{display:block;font-size:18px;text-transform:capitalize}.calendar-toolbar small{display:block;color:var(--muted);margin-top:2px}.calendar-weekdays,.schedule-calendar{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr))}.calendar-weekdays{background:#111319;color:#aeb2bb}.calendar-weekdays span{text-align:center;padding:8px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.7px}.calendar-day{position:relative;min-height:125px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:8px;background:#fff}.calendar-day:nth-child(7n){border-right:0}.calendar-day.outside{background:#f7f8fa;color:#a5a8af}.calendar-day.today{box-shadow:inset 0 0 0 2px var(--red)}.calendar-number{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;font-size:12px;font-weight:800}.today .calendar-number{background:var(--red);color:#fff}.calendar-events{display:grid;gap:4px;margin-top:5px}.calendar-event{width:100%;min-width:0;border:0;border-left:3px solid #6d7078;border-radius:6px;padding:5px 6px;background:#f0f1f3;color:#25272c;text-align:left;cursor:pointer}.calendar-event time{font-size:9px;font-weight:850}.calendar-event span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;margin-top:2px}.calendar-event.status-em_andamento{border-left-color:#2581c4;background:#eaf5ff}.calendar-event.status-concluida{border-left-color:var(--success);background:#e8f8f0}.calendar-event.status-cancelada{border-left-color:#888;background:#eee;text-decoration:line-through}.calendar-events>small{color:var(--muted);font-size:10px}.schedule-status{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:800}.schedule-status.status-planejada{background:#f0f1f3;color:#555a64}.schedule-status.status-em_andamento{background:#e3f2ff;color:#146092}.schedule-status.status-concluida{background:#e4f7ed;color:#12613d}.schedule-status.status-cancelada{background:#ffe4e6;color:#9b111b}.schedule-activity{display:grid;white-space:normal;min-width:240px;max-width:420px}.schedule-activity small{color:var(--muted);margin-top:4px;line-height:1.35}
@media(max-width:1100px){.report-filters{grid-template-columns:repeat(3,1fr)}.report-apply{width:100%}}
@media(max-width:900px){.container{padding-top:24px}.stats{grid-template-columns:1fr 1fr}.hero{align-items:flex-start;flex-direction:column}.hero .actions{width:100%}.user-copy{display:none}.backup-grid{grid-template-columns:1fr}.server-status{display:none!important}.report-heading{align-items:flex-start;flex-direction:column}.report-kpis,.ai-dashboard{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.container{padding:16px 12px 48px}.topbar{height:70px;padding:0 12px}.header-logo{width:82px;height:48px}.brand{gap:10px}.brand strong{font-size:13px}.hero{padding:25px 20px;border-radius:17px}.hero h1{font-size:32px}.hero:after{width:210px;height:210px}.hero .actions{display:grid;grid-template-columns:1fr 1fr}.hero .actions .button:last-child{grid-column:1/-1}.stats{gap:9px}.stats article{padding:14px 12px;gap:10px;border-radius:14px}.stats article i{width:40px;height:40px;flex-basis:40px;border-radius:11px;font-size:17px}.stats strong{font-size:24px}.stats span{font-size:10px;letter-spacing:.35px}.stats small{font-size:10px}.tabs{width:100%;margin-top:18px}.panel{border-radius:15px}.panel-heading{align-items:flex-start;flex-direction:column}.panel-toolbar{padding:13px}.empty{padding:45px 20px}.columns,.columns.three{grid-template-columns:1fr}.auth-card{padding:30px 22px}.dialog-form{padding:21px 18px}.dialog-form footer{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dialog-form footer .button{width:100%;padding:0 10px;font-size:13px}.toast{left:12px;right:12px;bottom:12px}.backup-grid{padding:14px}.backup-grid article{padding:20px}.info-box{margin:0 14px 14px}.movement-types{grid-template-columns:1fr 1fr}.report-export{display:grid;grid-template-columns:1fr 1fr;width:100%}.report-export .button{width:100%;padding:0 10px}.report-filters{grid-template-columns:1fr;padding:16px 14px 10px}.report-ranges{padding:0 14px 15px}.report-kpis{padding:14px;gap:9px}.report-kpis article{padding:13px}.report-kpis strong{font-size:23px}.report-section-title{padding:19px 14px 10px}.ai-dashboard{padding:14px;gap:9px}.ai-settings{margin:0 14px 14px;padding:17px}.ai-result small{max-width:210px}.category-grid{grid-template-columns:1fr;padding:14px}.category-grid article{align-items:flex-start;flex-wrap:wrap}.category-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.category-actions .button{width:100%}}
@media(max-width:390px){.stats{grid-template-columns:1fr}.hero .actions{grid-template-columns:1fr}.hero .actions .button:last-child{grid-column:auto}}
.meal-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.meal-options .check{align-items:flex-start}.meal-badge{display:inline-flex;padding:6px 9px;border-radius:999px;background:#fff5dc;color:#765000;border:1px solid #f2dda8;font-size:11px;font-weight:800}.schedule-calendar-shell{overflow:auto}.calendar-weekdays,.schedule-calendar{min-width:700px}
@media(max-width:1100px){.schedule-filters{grid-template-columns:repeat(3,1fr)}.schedule-filters>.button{width:100%}}
@media(max-width:560px){.schedule-filters{grid-template-columns:1fr;padding:16px 14px 10px}.schedule-kpis{grid-template-columns:1fr 1fr;padding:14px;gap:9px}.schedule-kpis article{padding:13px}.schedule-kpis strong{font-size:23px}.schedule-heading-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.schedule-heading-actions .button{width:100%;padding:0 9px}.schedule-heading-actions .button:last-child{grid-column:1/-1}.schedule-people{padding:12px 14px}.schedule-calendar-shell{margin:0 14px 14px}.calendar-toolbar{min-width:700px}.meal-options{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.user-status{font-size:12px;font-weight:800}.user-status.active{color:#10724d}.user-status.inactive{color:#777b84}.field>small{color:var(--muted);font-size:12px}
.operations-home{padding:0}.operations-heading{padding:25px 25px 12px}.operations-heading h2{margin:5px 0 4px;font-size:25px}.operations-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:14px 24px 25px}.operation-card{position:relative;overflow:hidden;display:grid;grid-template-columns:52px 1fr;text-align:left;align-items:center;column-gap:14px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#fff,#f5f6f8);padding:18px;cursor:pointer;color:var(--text);transition:.2s;min-height:132px}.operation-card:after{content:"";position:absolute;left:0;bottom:0;width:100%;height:3px;background:linear-gradient(90deg,var(--red),transparent)}.operation-card:hover{transform:translateY(-3px);border-color:#c9ccd2;box-shadow:0 14px 30px rgba(16,18,23,.1)}.operation-card i{grid-row:1/5;display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:#111319;color:#fff;font-size:23px;font-style:normal;border-bottom:3px solid var(--red)}.operation-card span{font-size:11px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted);font-weight:800}.operation-card strong{font-size:17px;margin-top:3px}.operation-card small{color:var(--muted);margin-top:4px}.program-grid{display:grid;gap:12px;padding:20px}.program-card{display:flex;align-items:center;gap:15px;border:1px solid var(--line);border-radius:15px;padding:17px;background:linear-gradient(145deg,#fff,#f7f8fa)}.program-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:13px;background:#111319;color:#fff;font-size:23px;border-bottom:3px solid var(--red)}.program-copy{min-width:0;flex:1}.program-copy>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.program-copy h3{margin:0;font-size:16px}.program-copy p{margin:6px 0;color:#52565f;line-height:1.45}.program-copy small{display:block;color:var(--muted);overflow-wrap:anywhere}.program-actions{display:flex;gap:8px;flex-wrap:wrap}.program-actions a{text-decoration:none}.ranking-wait{text-align:center;padding:75px 24px;color:var(--muted)}.ranking-wait i{display:grid;place-items:center;margin:0 auto 15px;width:62px;height:62px;border-radius:18px;background:#111319;color:var(--red-glow);font-size:28px;font-style:normal}.ranking-wait h3{color:var(--text);margin:0 0 7px}.ranking-wait p{max-width:600px;margin:auto;line-height:1.6}
.program-search-row{display:flex;align-items:center;gap:14px;padding:16px 20px 0}.program-search-row .search{max-width:620px}.program-search-row small{color:var(--muted);white-space:nowrap}.ranking-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.badge.pending,.rank-pending{background:#fff0d4;color:#8a5200;border-color:#f0c36e}.evaluation-pending-row{background:#fffaf0}
@media(max-width:900px){.operations-grid{grid-template-columns:1fr 1fr}.program-card{align-items:flex-start}.program-actions{flex-direction:column}.program-actions .button{width:100%}}
@media(max-width:560px){.operations-grid{grid-template-columns:1fr;padding:12px 14px 18px}.operations-heading{padding:20px 15px 8px}.operation-card{min-height:116px;padding:15px}.program-grid{padding:14px}.program-card{flex-wrap:wrap}.program-copy{flex-basis:calc(100% - 64px)}.program-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.program-actions .button{width:100%}}
.ranking-filters{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:11px;padding:18px 21px 12px}.ranking-legend{display:flex;gap:14px;flex-wrap:wrap;padding:0 21px 17px;border-bottom:1px solid var(--line);color:var(--muted);font-size:11px;font-weight:700}.ranking-legend span{display:flex;align-items:center;gap:6px}.ranking-legend i{width:9px;height:9px;border-radius:50%}.rank-excellence{background:#08794f}.rank-good{background:#2d8fbd}.rank-ok{background:#839521}.rank-attention{background:#e59a16}.rank-critical{background:#c81d2a}.rank-position{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:#111319;color:#fff;font-size:13px;font-weight:850;border-bottom:3px solid var(--red)}.rank-status{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:850}.rank-excellence{background:#dff6eb;color:#086640}.rank-good{background:#e1f2fb;color:#17698e}.rank-ok{background:#f0f5d8;color:#5b6814}.rank-attention{background:#fff0d4;color:#8a5200}.rank-critical{background:#ffe3e6;color:#9a101a}.rank-none{background:#eff0f2;color:#686c74}.evaluation-note{white-space:normal;min-width:260px;max-width:420px;line-height:1.4}.evaluation-note small{display:block;color:var(--muted);margin-top:5px}.evaluation-form{width:auto}.criteria-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.criteria-grid label{display:flex;justify-content:space-between;gap:8px}.criteria-grid label b{color:var(--red-dark)}
@media(max-width:700px){.ranking-filters{grid-template-columns:1fr;padding:15px}.ranking-legend{padding:0 15px 15px}.criteria-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.program-search-row{align-items:stretch;flex-direction:column;padding:14px 14px 0}.program-search-row .search{max-width:none}.ranking-heading-actions{display:grid;grid-template-columns:1fr;width:100%}.ranking-heading-actions .button,.ranking-heading-actions .badge{width:100%}}
@media(max-width:480px){.criteria-grid{grid-template-columns:1fr}}
.ranking-legend .rank-excellence{background:#08794f}.ranking-legend .rank-good{background:#2d8fbd}.ranking-legend .rank-ok{background:#839521}.ranking-legend .rank-attention{background:#e59a16}.ranking-legend .rank-critical{background:#c81d2a}
.panel{background:var(--user-panel-bg,rgba(255,255,255,.96))}.panel-color-control{display:flex;align-items:center;gap:7px;color:#c9ccd3;font-size:10px;font-weight:800;white-space:nowrap}.panel-color-control input{width:32px;height:32px;padding:2px;border-radius:8px;cursor:pointer}.theme-reset{width:32px;height:32px;border:1px solid #343740;border-radius:8px;background:#16181e;color:#fff;cursor:pointer}
@media(max-width:700px){.panel-color-control span{display:none}.panel-color-control input,.theme-reset{width:30px;height:30px}}
.stock-status{padding:18px 20px 4px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,rgba(246,247,249,.75),transparent)}.stock-status .stats{margin:0 0 14px}.stock-status .stats article{box-shadow:0 8px 22px rgba(16,18,23,.07)}
@media(max-width:560px){.stock-status{padding:13px 13px 1px}}
.calendar-day{cursor:pointer;transition:background .16s,box-shadow .16s}.calendar-day:hover,.calendar-day:focus-visible{background:#fff8f8;box-shadow:inset 0 0 0 2px rgba(227,6,19,.32);outline:0}.partner-toolbar{display:flex;align-items:center;gap:14px;padding:16px 20px;border-bottom:1px solid var(--line)}.partner-toolbar small{margin-left:auto;color:var(--muted);white-space:nowrap}.partner-notes{max-width:260px;white-space:normal}.wide-dialog{width:min(880px,calc(100% - 28px))}.schedule-day-list{display:grid;gap:11px;max-height:65vh;overflow:auto}.schedule-day-card{display:grid;grid-template-columns:78px 1fr;gap:15px;padding:16px;border:1px solid var(--line);border-left:4px solid var(--red);border-radius:14px;background:#fafbfc}.schedule-day-time{display:grid;align-content:start;gap:3px;padding-right:14px;border-right:1px solid var(--line)}.schedule-day-time strong{font-size:20px}.schedule-day-time span{font-size:12px;color:var(--muted)}.schedule-day-copy{min-width:0}.schedule-day-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.schedule-day-card-heading>strong{font-size:16px}.schedule-day-copy p{margin:7px 0 2px}.schedule-day-copy>small{color:var(--muted)}.schedule-day-note{margin-top:10px;padding:10px;border-radius:9px;background:#fff;border:1px solid var(--line);line-height:1.45}.schedule-day-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px}.schedule-day-meta span{font-size:11px;font-weight:700;padding:5px 8px;border-radius:999px;background:#eceef1;color:#555a64}.empty.compact{padding:35px 20px;border-radius:12px}
@media(max-width:560px){.partner-toolbar{align-items:stretch;flex-direction:column;padding:14px}.partner-toolbar .search{max-width:none}.partner-toolbar small{margin-left:0}.schedule-day-card{grid-template-columns:1fr;gap:10px;padding:14px}.schedule-day-time{display:flex;align-items:baseline;gap:6px;padding:0 0 9px;border-right:0;border-bottom:1px solid var(--line)}.schedule-day-card-heading{flex-direction:column}.schedule-day-list{max-height:70vh}}
.schedule-address{display:block;margin-top:8px;color:#b6000b;font-size:12px;font-weight:750;text-decoration:none;line-height:1.4}.schedule-address:hover{text-decoration:underline}
.install-app{height:36px;padding:0 12px;font-size:11px;background:linear-gradient(135deg,#e30613,#a50009);color:#fff;box-shadow:0 6px 18px rgba(227,6,19,.25)}@supports(padding:max(0px)){.topbar{padding-left:max(26px,env(safe-area-inset-left));padding-right:max(26px,env(safe-area-inset-right))}.container{padding-bottom:max(56px,env(safe-area-inset-bottom))}}@media(max-width:560px){.install-app{width:auto!important;height:34px;padding:0 9px;font-size:10px}.user-area{gap:6px}.topbar{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}

/* 2.7.15 — somente rolagem vertical em módulos e submenus */
html,body{max-width:100%;overflow-x:hidden!important}main,section,article,header,nav,footer,div,form,fieldset,label{min-width:0;max-width:100%}img,video,canvas,svg,iframe{max-width:100%}.table-wrap{max-width:100%;overflow-x:hidden!important}table{width:100%;max-width:100%;table-layout:fixed}th,td{white-space:normal!important;overflow-wrap:anywhere;word-break:break-word}.tabs,.schedule-people,.schedule-calendar-shell{max-width:100%;overflow-x:hidden!important;flex-wrap:wrap}.calendar-toolbar,.calendar-weekdays,.schedule-calendar{min-width:0!important}.calendar-weekdays,.schedule-calendar{grid-template-columns:repeat(7,minmax(0,1fr))}@media(max-width:700px){th,td{padding-left:6px!important;padding-right:6px!important;font-size:.78rem}}

#pull-refresh-indicator{--pull:0px;position:fixed;z-index:9999;left:50%;top:calc(env(safe-area-inset-top,0px) + 8px);transform:translate(-50%,calc(-72px + var(--pull)));display:flex;align-items:center;gap:9px;padding:9px 14px;border-radius:999px;background:rgba(12,14,18,.94);color:#fff;box-shadow:0 8px 26px rgba(0,0,0,.25);font-size:12px;opacity:0;pointer-events:none;transition:opacity .12s,transform .16s;white-space:nowrap}#pull-refresh-indicator.visible{opacity:1}#pull-refresh-indicator.ready{box-shadow:0 8px 26px rgba(0,0,0,.25),0 0 0 2px var(--red,#e30613)}#pull-refresh-indicator.refreshing .pull-refresh-icon{animation:pullRefreshSpin .8s linear infinite}.pull-refresh-icon{font-size:17px;line-height:1}@keyframes pullRefreshSpin{to{transform:rotate(360deg)}}


/* Checklist preventivo responsivo — mobile */
#preventive-execution .preventive-checks{
  display:grid;
  gap:12px;
  margin:12px 0;
}
#preventive-execution .preventive-check-entry{
  min-width:0;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
#preventive-execution .preventive-check-entry>strong{
  display:block;
  margin:0 0 12px;
  font-size:15px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
#preventive-execution .preventive-check-entry .grid3{
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.1fr) minmax(0,1.1fr);
  gap:10px;
  width:100%;
}
#preventive-execution .preventive-check-entry .grid3>label{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:6px!important;
  align-items:start!important;
  margin:0!important;
  min-width:0!important;
  font-size:12px;
  font-weight:750;
  color:#4e535c;
}
#preventive-execution .preventive-check-entry select,
#preventive-execution .preventive-check-entry input[data-check-record],
#preventive-execution .preventive-check-entry input[data-check-notes]{
  box-sizing:border-box;
  width:100%!important;
  min-width:0!important;
  height:44px!important;
  min-height:44px!important;
  margin:0!important;
  padding:0 12px!important;
  border:1px solid #d9dce2;
  border-radius:10px;
  background:#fff;
  font-size:14px!important;
  line-height:1.2;
}
#preventive-execution .preventive-check-entry .project-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  flex-wrap:wrap;
}
#preventive-execution .preventive-check-entry .project-actions .button{
  width:auto!important;
  min-width:112px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 14px!important;
  font-size:13px!important;
}
#preventive-execution .preventive-check-entry .project-actions .tag{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:4px 9px;
  border-radius:999px;
  font-size:12px;
}
#preventive-execution .preventive-photo-grid{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:8px;
}

@media(max-width:700px){
  #schedule-complete-dialog{
    width:calc(100vw - 12px)!important;
    max-width:calc(100vw - 12px)!important;
  }
  #schedule-complete-dialog .dialog-form{
    padding:16px 12px!important;
  }
  #preventive-execution .view-head{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  #preventive-execution .view-head .button{
    justify-self:start;
    width:auto!important;
  }
  #preventive-execution .preventive-rule{
    font-size:13px;
    line-height:1.35;
    padding:9px 10px;
    margin:8px 0 10px;
  }
  #preventive-execution .preventive-check-entry{
    padding:12px 10px;
    border-radius:12px;
  }
  #preventive-execution .preventive-check-entry>strong{
    font-size:15px!important;
    line-height:1.3!important;
    margin-bottom:10px!important;
  }
  #preventive-execution .preventive-check-entry .grid3{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  #preventive-execution .preventive-check-entry .grid3>label{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:5px!important;
    width:100%!important;
    font-size:12px!important;
    line-height:1.2!important;
  }
  #preventive-execution .preventive-check-entry select,
  #preventive-execution .preventive-check-entry input[data-check-record],
  #preventive-execution .preventive-check-entry input[data-check-notes]{
    width:100%!important;
    height:42px!important;
    min-height:42px!important;
    padding:0 10px!important;
    font-size:14px!important;
    border-radius:9px!important;
  }
  #preventive-execution .preventive-check-entry .project-actions{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    margin-top:8px!important;
  }
  #preventive-execution .preventive-check-entry .project-actions .button{
    width:auto!important;
    min-width:108px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0 12px!important;
    font-size:13px!important;
  }
  #preventive-execution .preventive-check-entry .project-actions .tag{
    margin:0!important;
  }
  #preventive-execution .preventive-photo-grid img{
    width:68px!important;
    height:68px!important;
  }
}

/* Alpha 82: visualização dos registros já salvos na atividade em andamento */
#schedule-progress-dialog{width:min(980px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;border:0;background:transparent;overflow:hidden}
#schedule-progress-dialog .schedule-progress-form{box-sizing:border-box;width:100%;max-height:calc(100dvh - 24px);overflow-y:auto;overflow-x:hidden}
.schedule-progress-summary{display:grid;grid-template-columns:.7fr 1fr 1.6fr;gap:10px;margin-bottom:16px}
.schedule-progress-summary article,.schedule-progress-grid article{display:grid;gap:6px;padding:14px;border:1px solid var(--border,#d8dce5);border-radius:13px;background:var(--panel-soft,#f7f8fa)}
.schedule-progress-summary span,.schedule-progress-grid span{color:var(--muted,#697080);font-size:12px}
.schedule-progress-section{margin-top:16px;padding-top:14px;border-top:1px solid var(--border,#d8dce5)}
.schedule-progress-section h3{margin:0 0 10px}
.schedule-progress-section blockquote{margin:0 0 12px;padding:14px;border-left:4px solid var(--accent,#ed111f);border-radius:8px;background:var(--panel-soft,#f7f8fa);white-space:pre-wrap}
.schedule-progress-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.schedule-progress-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.schedule-progress-photos a{display:grid;gap:6px;color:inherit;text-decoration:none}
.schedule-progress-photos img{width:100%;height:130px;object-fit:cover;border-radius:10px;border:1px solid var(--border,#d8dce5)}
.schedule-progress-photos span{overflow-wrap:anywhere;font-size:12px}
@media(max-width:680px){.schedule-progress-summary,.schedule-progress-grid{grid-template-columns:1fr}.schedule-progress-photos{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Alpha 82: painel de andamento sólido e legível */
#schedule-progress-dialog::backdrop{background:rgba(4,5,7,.78);backdrop-filter:blur(4px)}
#schedule-progress-dialog .schedule-progress-form{
  background:#fff!important;
  color:#17191f!important;
  border:1px solid #d8dce5;
  border-radius:18px;
  box-shadow:0 28px 80px rgba(0,0,0,.45)
}
#schedule-progress-dialog .schedule-progress-form header,
#schedule-progress-dialog .schedule-progress-form footer{background:#fff!important;color:#17191f!important}
#schedule-progress-dialog .schedule-progress-form header{border-bottom:1px solid #e1e4ea}
#schedule-progress-dialog .schedule-progress-form footer{border-top:1px solid #e1e4ea}
#schedule-progress-dialog .schedule-progress-form header p,
#schedule-progress-dialog .schedule-progress-form .muted{color:#5f6673!important}
#schedule-progress-dialog .schedule-progress-form h2,
#schedule-progress-dialog .schedule-progress-form h3,
#schedule-progress-dialog .schedule-progress-form strong{color:#17191f!important}
#schedule-progress-dialog .dialog-close{background:#fff!important;color:#4c5360!important;border:1px solid #cfd4dd!important}


/* Alpha 97: assinatura do cliente e metadados das evidências */
.client-signature{margin-top:12px;padding:14px;border:1px solid #dfe3e8;border-radius:12px;background:#f8f9fb}
.signature-fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(180px,1fr);gap:12px;margin-bottom:10px}
.signature-fields label,.signature-label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#343942}
.signature-canvas{display:block;width:100%;height:180px;border:2px dashed #aeb4bf;border-radius:10px;background:#fff;touch-action:none;cursor:crosshair}
.client-signature .project-actions{margin-top:10px}
.photo-meta{display:block;max-width:150px;color:#626975;font-size:10px;line-height:1.3}
@media(max-width:700px){.signature-fields{grid-template-columns:1fr}.signature-canvas{height:150px}}
@media print{.client-signature{break-inside:avoid}.signature-canvas{height:120px}}

.company-check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.company-check{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #d9dde5;border-radius:14px;background:#f8f9fb;cursor:pointer}
.company-check:has(input:checked){border-color:#e62135;background:#fff4f5;box-shadow:0 0 0 2px rgba(230,33,53,.08)}
.company-check input{width:18px;height:18px;accent-color:#e62135}
.company-check span{display:grid;gap:2px}.company-check small{color:#6f7480}


/* Termos de Uso do aparelho móvel */
.mobile-terms-dialog{width:min(760px,calc(100vw - 24px));max-width:760px;padding:0;border:0;border-radius:22px;overflow:hidden}
.mobile-terms-dialog::backdrop{background:rgba(5,6,8,.78);backdrop-filter:blur(5px)}
.mobile-terms-dialog>form{max-height:min(90vh,900px);padding:24px;background:#fff}
.mobile-terms-content{max-height:52vh;overflow:auto;padding:6px 16px 6px 2px;border-top:1px solid #e0e3e9;border-bottom:1px solid #e0e3e9;scrollbar-gutter:stable}
.mobile-terms-content section{padding:12px 0}
.mobile-terms-content h3{margin:0 0 5px;font-size:15px;color:#17191f}
.mobile-terms-content p{margin:0;color:#4f5663;font-size:14px;line-height:1.5}
.mobile-terms-consent{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid #d7dbe3;border-radius:14px;background:#f7f8fa;font-weight:700;line-height:1.4;cursor:pointer}
.mobile-terms-consent input{flex:0 0 auto;width:20px;height:20px;margin-top:1px;accent-color:#e62135}
.mobile-terms-accepted{padding:12px 14px;border-left:4px solid #178552;border-radius:10px;background:#edf9f3;color:#126940;font-weight:700}
.mobile-terms-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
.mobile-terms-actions .button{min-height:44px}
@media(max-width:700px){
  .mobile-terms-dialog{width:calc(100vw - 16px);border-radius:18px}
  .mobile-terms-dialog>form{max-height:94vh;padding:18px}
  .mobile-terms-content{max-height:50vh}
  .mobile-terms-actions{display:grid;grid-template-columns:1fr 1fr}
  .mobile-terms-actions .button{width:100%}
  #mobile-terms-accept{grid-column:1/-1}
}


/* Correção iOS: Termos de Uso com ações sempre visíveis */
.mobile-terms-dialog{
  height:calc(100vh - 16px);
  height:calc(100dvh - 16px);
  max-height:min(900px,calc(100vh - 16px));
  max-height:min(900px,calc(100dvh - 16px));
}
.mobile-terms-dialog>form{
  display:flex!important;
  flex-direction:column;
  gap:12px;
  height:100%;
  max-height:none;
  min-height:0;
  overflow:hidden;
  box-sizing:border-box;
}
.mobile-terms-dialog .dialog-heading,
.mobile-terms-accepted,
.mobile-terms-consent,
.mobile-terms-error,
.mobile-terms-actions{flex:0 0 auto}
.mobile-terms-content{
  flex:1 1 auto;
  min-height:96px;
  max-height:none!important;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.mobile-terms-error{margin:0}
.mobile-terms-actions{
  position:sticky;
  z-index:2;
  bottom:0;
  margin:0 -2px -2px;
  padding:12px 2px max(2px,env(safe-area-inset-bottom));
  border-top:1px solid #e0e3e9;
  background:#fff;
  box-shadow:0 -10px 18px rgba(255,255,255,.96);
}
@media(max-width:700px){
  .mobile-terms-dialog{
    height:calc(100vh - 8px);
    height:calc(100dvh - 8px);
    max-height:calc(100vh - 8px);
    max-height:calc(100dvh - 8px);
    width:calc(100vw - 12px);
  }
  .mobile-terms-dialog>form{padding:14px;gap:9px}
  .mobile-terms-dialog .dialog-heading h2{margin:5px 0 3px;font-size:clamp(28px,8vw,38px);line-height:1.05}
  .mobile-terms-dialog .dialog-heading .eyebrow{font-size:10px;letter-spacing:2px}
  .mobile-terms-dialog .dialog-heading .muted{font-size:13px;line-height:1.35}
  .mobile-terms-content{padding-right:8px}
  .mobile-terms-content section{padding:9px 0}
  .mobile-terms-content h3{font-size:14px}
  .mobile-terms-content p{font-size:13px;line-height:1.45}
  .mobile-terms-consent{gap:9px;padding:10px;font-size:13px;line-height:1.35}
  .mobile-terms-consent input{width:20px;height:20px}
  .mobile-terms-actions{grid-template-columns:1fr 1fr;gap:8px;padding-top:9px}
  .mobile-terms-actions .button{min-height:42px;height:auto;padding:9px 10px;font-size:12px;white-space:normal}
  #mobile-terms-accept{grid-column:1/-1}
}

/* Alpha 109: agenda diária em cartões para técnicos; calendário mensal permanece administrativo. */
.schedule-period-copy{display:grid;justify-items:center;gap:3px;min-width:0;text-align:center}.schedule-period-copy>strong{text-transform:capitalize}.schedule-day-picker{max-width:220px;min-height:40px;padding:7px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#17191f;font:inherit;font-weight:700}.technician-day-view .calendar-weekdays{display:none!important}.technician-day-view .schedule-people,.technician-day-view .schedule-filters,.technician-day-view .schedule-kpis,.technician-day-view>.report-section-title,.technician-day-view>.table-wrap{display:none!important}.technician-day-view .schedule-calendar-shell{margin:0 20px 20px;overflow:visible}.technician-day-view .calendar-toolbar{grid-template-columns:auto minmax(0,1fr) minmax(0,auto) auto;min-width:0}.technician-day-view .schedule-calendar{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:14px;background:#f2f3f5}.technician-agenda-card{display:grid;grid-template-columns:90px minmax(0,1fr);gap:16px;padding:17px;border:1px solid #30343d;border-left:5px solid #e30613;border-radius:15px;background:#111319;color:#f5f6f8;box-shadow:0 7px 20px rgba(0,0,0,.1)}.technician-agenda-card.status-em_andamento{border-left-color:#36a2e8}.technician-agenda-card.status-concluida{border-left-color:#42b77a}.technician-agenda-card.status-cancelada{border-left-color:#8b909a}.technician-agenda-time{display:grid;align-content:start;gap:4px;padding:8px 13px 8px 0;border-right:1px solid #30343d}.technician-agenda-time time{font-size:22px;font-weight:850;color:#fff}.technician-agenda-time span,.technician-agenda-detail{font-size:12px;color:#aeb3be}.technician-agenda-content{min-width:0}.technician-agenda-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.technician-agenda-title h3{margin:0;font-size:17px;line-height:1.35}.technician-agenda-client{margin:8px 0 3px;color:#e8e9ec}.technician-agenda-detail{margin:7px 0}.technician-agenda-notes{margin:9px 0 0;padding:10px 12px;border:1px solid #30343d;border-radius:10px;background:#191c23;color:#d5d8de;white-space:pre-wrap}.technician-agenda-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.technician-agenda-meta span{padding:5px 9px;border-radius:999px;background:#252932;color:#d9dce2;font-size:11px;font-weight:750}.technician-agenda-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.technician-agenda-empty{display:grid;gap:6px;padding:34px 18px;text-align:center;border:1px dashed #b9bec7;border-radius:13px;background:#fff;color:#343842}.technician-agenda-empty span{color:#737985;font-size:13px}
@media(max-width:560px){.technician-day-view .schedule-heading{gap:12px}.technician-day-view .schedule-heading-actions{display:none}.technician-day-view .schedule-calendar-shell{margin:0 12px 14px}.technician-day-view .calendar-toolbar{grid-template-columns:42px minmax(0,1fr) 70px 42px;gap:6px;padding:10px}.technician-day-view .calendar-toolbar .icon-button{width:42px;padding:0}.technician-day-view .calendar-toolbar>div{min-width:0}.schedule-period-copy>strong{font-size:14px;line-height:1.25}.schedule-period-copy>small{font-size:11px}.schedule-day-picker{width:100%;min-height:38px;padding:6px;font-size:14px}.technician-day-view .schedule-calendar{padding:10px;gap:10px}.technician-agenda-card{grid-template-columns:1fr;gap:10px;padding:14px}.technician-agenda-time{display:flex;align-items:baseline;gap:7px;padding:0 0 8px;border-right:0;border-bottom:1px solid #30343d}.technician-agenda-time time{font-size:20px}.technician-agenda-title{flex-direction:column;gap:7px}.technician-agenda-title h3{font-size:16px}.technician-agenda-actions{display:grid;grid-template-columns:1fr}.technician-agenda-actions .button{width:100%}}


/* Alpha 110: manter a agenda técnica dentro da largura real do celular. */
#schedules.technician-day-view>.schedule-people,
#schedules.technician-day-view>.schedule-filters,
#schedules.technician-day-view>.schedule-kpis,
#schedules.technician-day-view>.report-section-title,
#schedules.technician-day-view>.table-wrap{display:none!important}
#schedules.technician-day-view .schedule-calendar-shell{width:auto;max-width:100%;min-width:0;overflow-x:hidden!important}
#schedules.technician-day-view .calendar-toolbar{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;grid-template-areas:"prev period next" "today today today";align-items:center;min-width:0!important;gap:8px;padding:10px}
#schedules.technician-day-view #schedule-prev-month{grid-area:prev}
#schedules.technician-day-view .schedule-period-copy{grid-area:period;min-width:0;width:100%;}
#schedules.technician-day-view #schedule-today{grid-area:today;justify-self:center;min-height:36px}
#schedules.technician-day-view #schedule-next-month{grid-area:next}
#schedules.technician-day-view .schedule-day-picker{display:block;width:100%;max-width:220px;min-width:0;box-sizing:border-box;margin:6px auto 0;color:#17191f;color-scheme:light;text-align:center;-webkit-appearance:none;appearance:none}
#schedules.technician-day-view .schedule-calendar{width:100%;max-width:100%;min-width:0!important;box-sizing:border-box;grid-template-columns:minmax(0,1fr)!important;overflow-x:hidden;padding:10px}
#schedules.technician-day-view .technician-agenda-card{width:100%;max-width:100%;min-width:0;box-sizing:border-box;grid-template-columns:minmax(0,1fr);overflow:hidden;padding:14px}
#schedules.technician-day-view .technician-agenda-content,
#schedules.technician-day-view .technician-agenda-title,
#schedules.technician-day-view .technician-agenda-title h3,
#schedules.technician-day-view .technician-agenda-client,
#schedules.technician-day-view .technician-agenda-notes,
#schedules.technician-day-view .technician-agenda-actions{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:normal}
#schedules.technician-day-view .technician-agenda-time{display:flex;align-items:baseline;gap:8px;padding:0 0 8px;border:0;border-bottom:1px solid #30343d}
#schedules.technician-day-view .technician-agenda-title{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
#schedules.technician-day-view .technician-agenda-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
#schedules.technician-day-view .technician-agenda-actions .button{width:100%;min-width:0;max-width:100%;height:auto;min-height:44px;padding:10px 12px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:560px){#schedules.technician-day-view .schedule-calendar-shell{margin:0 10px 12px}#schedules.technician-day-view .calendar-toolbar{grid-template-columns:40px minmax(0,1fr) 40px;gap:6px;padding:9px}#schedules.technician-day-view .calendar-toolbar .icon-button{width:40px;min-width:40px;padding:0}#schedules.technician-day-view .schedule-period-copy>strong{font-size:14px;line-height:1.25}#schedules.technician-day-view .schedule-period-copy>small{font-size:11px}#schedules.technician-day-view .schedule-day-picker{font-size:14px;min-height:38px}}


/* Alpha 111: layout da agenda técnica reforçado para PWA e telas estreitas. */
body.technician-agenda-active #schedules>.schedule-people,body.technician-agenda-active #schedules>.schedule-filters,body.technician-agenda-active #schedules>.schedule-kpis,body.technician-agenda-active #schedules>.report-section-title,body.technician-agenda-active #schedules>.table-wrap{display:none!important}
body.technician-agenda-active #schedules .schedule-calendar-shell{width:100%;max-width:100%;min-width:0;overflow-x:hidden!important;box-sizing:border-box}
body.technician-agenda-active #schedules .schedule-calendar{display:flex!important;flex-direction:column;width:100%;max-width:100%;min-width:0!important;overflow-x:hidden!important;box-sizing:border-box}
body.technician-agenda-active #schedules .technician-agenda-card{display:flex;flex-direction:column;width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden}
body.technician-agenda-active #schedules .technician-agenda-card *{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
body.technician-agenda-active #schedules .technician-agenda-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
body.technician-agenda-active #schedules .technician-agenda-actions .button{width:100%;height:auto;min-height:44px;white-space:normal;overflow-wrap:anywhere}


/* Alpha 112: viewport containment for the technician agenda on installed PWAs. */
@media(max-width:700px){body.technician-agenda-active{overflow-x:hidden!important}body.technician-agenda-active #schedules{display:block!important;width:100%!important;max-width:100vw!important;min-width:0!important;margin:0!important;padding:12px!important;overflow-x:hidden!important;box-sizing:border-box!important}body.technician-agenda-active #schedules>.schedule-heading{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}body.technician-agenda-active #schedules .schedule-calendar-shell{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important}body.technician-agenda-active #schedules .calendar-toolbar{display:grid!important;grid-template-columns:40px minmax(0,1fr) 40px!important;grid-template-areas:'prev period next' 'today today today'!important;gap:8px!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:10px!important;overflow:hidden!important;box-sizing:border-box!important}body.technician-agenda-active #schedules .schedule-period-copy{grid-area:period!important;display:grid!important;width:100%!important;max-width:100%!important;min-width:0!important;justify-items:center!important;overflow:hidden!important;box-sizing:border-box!important}body.technician-agenda-active #schedules #schedule-month-label{display:block!important;max-width:100%!important;overflow-wrap:anywhere!important;text-align:center!important;font-size:15px!important;line-height:1.25!important}body.technician-agenda-active #schedules #schedule-day-picker{display:block!important;width:min(100%,220px)!important;max-width:100%!important;min-width:0!important;height:40px!important;margin:6px auto 0!important;padding:6px!important;font-size:14px!important;color:#17191f!important;color-scheme:light!important;box-sizing:border-box!important}body.technician-agenda-active #schedules #schedule-prev-month{grid-area:prev!important}body.technician-agenda-active #schedules #schedule-next-month{grid-area:next!important}body.technician-agenda-active #schedules #schedule-today{grid-area:today!important;justify-self:center!important;max-width:100%!important}body.technician-agenda-active #schedules #schedule-calendar{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:10px!important;overflow:hidden!important;box-sizing:border-box!important}body.technician-agenda-active #schedules .technician-agenda-card,body.technician-agenda-active #schedules .technician-agenda-card *{width:auto;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;box-sizing:border-box!important}body.technician-agenda-active #schedules .technician-agenda-card{width:100%!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}body.technician-agenda-active #schedules .technician-agenda-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important}body.technician-agenda-active #schedules .technician-agenda-actions .button{width:100%!important;height:auto!important;white-space:normal!important}}