:root{
  --bg:#edf6f0;--surface:#fff;--surface2:#f7fbf8;--text:#082015;--muted:#617267;--line:#dce9e1;
  --green:#15803d;--green2:#14532d;--blue:#0284c7;--red:#dc2626;--orange:#d97706;--purple:#7c3aed;--dark:#111827;
  --shadow:0 14px 34px rgba(20,83,45,.10);--radius:22px;
}
*{box-sizing:border-box}html{height:100%;scroll-behavior:smooth}body{margin:0;min-width:320px;min-height:100%;color:var(--text);background:radial-gradient(circle at 8% 2%,rgba(34,197,94,.12),transparent 27%),radial-gradient(circle at 92% 20%,rgba(56,189,248,.10),transparent 24%),linear-gradient(180deg,#fbfefc,var(--bg));font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;font-size:15.5px;padding:0 0 env(safe-area-inset-bottom)}button,input,select,textarea{font:inherit}button{cursor:pointer}img{display:block;max-width:100%}.hidden{display:none!important}
.auth-screen{min-height:100vh;display:grid;place-items:center;padding:22px;background:radial-gradient(circle at 16% 15%,rgba(250,204,21,.18),transparent 30%),linear-gradient(145deg,#071b11,#14532d)}.auth-card{width:min(1050px,100%);min-height:590px;display:grid;grid-template-columns:1.05fr .95fr;overflow:hidden;border-radius:32px;border:1px solid rgba(255,255,255,.18);box-shadow:0 34px 90px rgba(0,0,0,.35)}.auth-brand{padding:48px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;color:#fff;background:linear-gradient(140deg,rgba(5,46,22,.96),rgba(22,101,52,.74))}.auth-logo{width:150px;height:118px;object-fit:contain;padding:10px;border-radius:24px;background:#fff;box-shadow:0 20px 35px rgba(0,0,0,.24);margin-bottom:23px}.auth-brand h1{margin:8px 0 13px;font-size:clamp(34px,5vw,56px);letter-spacing:-2px;line-height:1}.auth-brand p{max-width:520px;margin:0;color:#dcfce7;font-size:18px;line-height:1.6}.auth-panel{display:flex;flex-direction:column;justify-content:center;padding:46px;background:rgba(255,255,255,.98)}.mini-label{font-size:12px;font-weight:650;letter-spacing:.16em;text-transform:uppercase;color:#bbf7d0}.mini-label.green{color:var(--green)}.form-stack{display:grid;gap:15px}.form-title h2{font-size:32px;margin:0 0 6px}.form-title p{margin:0;color:var(--muted);line-height:1.5}.auth-links{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.text-btn{border:0;background:transparent;color:var(--green);font-weight:650;padding:0}.message{margin-top:14px;padding:13px 14px;border-radius:14px;font-weight:650;line-height:1.35}.message.error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}.message.success{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}
label{display:flex;flex-direction:column;gap:7px;color:#263b2f;font-size:13px;font-weight:650}input,select,textarea{width:100%;min-height:46px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--text);padding:12px 13px;outline:0;transition:.16s}textarea{min-height:96px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.14)}
.app{min-height:100vh}.app-header{position:sticky;top:0;z-index:80;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:74px;padding:9px clamp(13px,2vw,24px);color:#fff;background:linear-gradient(180deg,#176238,#092716);box-shadow:0 12px 24px rgba(15,23,42,.18)}.brand-area{min-width:0;display:flex;align-items:center;gap:12px}.brand-logo{flex:0 0 auto;width:58px;height:52px;object-fit:contain;padding:5px;border-radius:14px;background:#fff}.brand-area strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:19px;letter-spacing:-.2px}.brand-area small{display:block;color:#bbf7d0;margin-top:2px}.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}.user-pill,.connection-pill{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 11px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.10);color:#fff;font-size:12px;font-weight:650}.connection-pill.success{background:rgba(34,197,94,.20);border-color:rgba(187,247,208,.42)}.connection-pill.warning{background:rgba(250,204,21,.18);border-color:rgba(254,240,138,.42)}.connection-pill.danger{background:rgba(239,68,68,.20);border-color:rgba(254,202,202,.42)}
.top-nav-shell{position:sticky;top:74px;z-index:70;padding:8px clamp(12px,2vw,24px);background:rgba(245,250,247,.92);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.menu-toggle{display:none;width:100%;min-height:44px;border:1px solid var(--line);border-radius:14px;color:var(--green2);background:#fff;font-weight:650}.main-nav{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:7px;max-width:1440px;margin:0 auto}.nav-item{min-width:0;min-height:42px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #d7e5dc;border-radius:13px;color:#254132;background:#fff;box-shadow:0 6px 16px rgba(20,83,45,.06);font-size:12.5px;font-weight:650;transition:.16s}.nav-item:hover,.nav-item.active{border-color:#22c55e;color:#fff;background:linear-gradient(135deg,#16a34a,#14532d);transform:translateY(-1px)}
.content{width:min(1440px,100%);margin:0 auto;padding:clamp(14px,2vw,24px)}.page{display:none}.page.active{display:block}.system-alert{display:flex;gap:8px;align-items:flex-start;padding:13px 15px;border-radius:16px;margin-bottom:14px;font-weight:600;line-height:1.45}.system-alert.warning{background:#fef9c3;color:#854d0e;border:1px solid #fde68a}.system-alert.danger{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.hero-card,.quick-search-card,.page-title,.panel{border:1px solid rgba(217,230,222,.94);border-radius:24px;background:rgba(255,255,255,.96);box-shadow:var(--shadow)}.hero-card{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:clamp(18px,2.3vw,28px);margin-bottom:14px;background:linear-gradient(135deg,#ffffff,#effaf2)}.hero-card h1{margin:6px 0 7px;font-size:clamp(25px,3vw,40px);letter-spacing:-1px;line-height:1.05}.hero-card p{margin:0;color:var(--muted);font-weight:650;line-height:1.5}.hero-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end}.quick-search-card{padding:14px;margin-bottom:14px}.search-label{margin-bottom:8px}.search-wrap{display:flex;gap:9px}.search-wrap input{min-height:50px;font-size:16px}.quick-results{display:grid;gap:9px;margin-top:10px}.page-title{padding:clamp(18px,2vw,24px);margin-bottom:16px}.page-title span{color:var(--green);font-size:12px;font-weight:650;letter-spacing:.20em;text-transform:uppercase}.page-title h1{margin:7px 0 8px;font-size:clamp(25px,3vw,38px);line-height:1.08;letter-spacing:-1px}.page-title p{margin:0;color:var(--muted);font-weight:650;line-height:1.5}
.shortcut-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin-bottom:14px}.shortcut{min-height:96px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;border:0;border-radius:19px;color:#fff;padding:13px 10px;text-align:center;box-shadow:var(--shadow);position:relative;overflow:hidden}.shortcut::after{content:"";position:absolute;left:-10%;right:-10%;bottom:-42%;height:66%;transform:rotate(-6deg);background:rgba(255,255,255,.14)}.shortcut>*{position:relative;z-index:1}.shortcut span{font-size:24px}.shortcut strong{font-size:16px}.shortcut small{font-size:12px;font-weight:600}.green{background:linear-gradient(135deg,#22c55e,#15803d)}.blue{background:linear-gradient(135deg,#38bdf8,#0284c7)}.red{background:linear-gradient(135deg,#fb7185,#be123c)}.dark{background:linear-gradient(135deg,#334155,#111827)}.purple{background:linear-gradient(135deg,#a78bfa,#7c3aed)}
.metric-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px;margin-bottom:15px}.metric-grid.small{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:14px}.metric-card{min-height:112px;display:flex;flex-direction:column;justify-content:space-between;padding:15px;border-radius:19px;color:#10301e;background:linear-gradient(180deg,#fff,#f6fbf8);border:1px solid #dce9e1;box-shadow:var(--shadow)}.metric-card span{color:#567067;font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.04em}.metric-card strong{font-size:clamp(23px,2.7vw,32px);letter-spacing:-1px;line-height:1.05}.metric-card small{color:#678176;font-weight:600}.metric-card.danger{background:linear-gradient(135deg,#fff1f2,#fee2e2)}.metric-card.warning{background:linear-gradient(135deg,#fffbeb,#fef3c7)}.metric-card.success{background:linear-gradient(135deg,#ecfdf5,#dcfce7)}.metric-card.money{background:linear-gradient(135deg,#eef2ff,#dbeafe)}
.dashboard-grid,.split-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.split-grid.wide-left{grid-template-columns:.8fr 1.2fr}.panel{padding:clamp(16px,2vw,21px)}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:13px}.panel h2{font-size:21px;margin:0 0 6px;letter-spacing:-.3px}.panel h3{margin:0 0 8px}.panel p{margin:0;color:var(--muted);line-height:1.5}.panel-subtitle{margin:4px 0 12px}.panel-subtitle h2{margin:0 0 5px}.history-title{margin-top:20px}.focus-panel{background:linear-gradient(180deg,#fff,#f7fff9)}
.form-card h2{margin-top:0}.wide-form{max-width:1100px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.span-2{grid-column:span 2}.span-3{grid-column:1/-1}.form-actions,.charge-toolbar,.report-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.btn{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:13px;padding:9px 14px;font-weight:650;text-decoration:none;transition:.15s}.btn:hover{transform:translateY(-1px)}.btn.primary{color:#fff;background:linear-gradient(135deg,#15803d,#14532d)}.btn.soft{color:#14532d;background:#e9f8ee}.btn.danger{color:#fff;background:#b91c1c}.btn.header-btn{border:1px solid rgba(255,255,255,.18);color:#fff;background:rgba(255,255,255,.12)}.btn.full{width:100%}.inline-search{max-width:270px;min-height:42px}.filter-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.filter-row input{flex:1 1 280px}.filter-row select{flex:0 1 200px}
.card-list,.responsive-list{display:grid;gap:10px}.card-list.compact,.compact-list{gap:8px}.info-card{display:grid;gap:10px;padding:14px;border:1px solid #e0eae4;border-radius:18px;background:#fbfdfc}.info-card.urgent{border-color:#fecaca;background:#fff1f2}.info-card.today{border-color:#fde68a;background:#fffbeb}.info-card.done{border-color:#bbf7d0;background:#f0fdf4}.info-card.stock-low{border-color:#fed7aa;background:#fff7ed}.info-card .row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.info-card strong{font-size:16px}.info-card small{color:var(--muted);font-weight:700;line-height:1.45}.card-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.quick-return{display:grid;grid-template-columns:140px auto;gap:8px;align-items:center}.quick-return input{min-height:40px}.status-badge{display:inline-flex;align-items:center;gap:5px;width:max-content;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.04em}.status-em-dia{color:#166534;background:#dcfce7}.status-hoje{color:#854d0e;background:#fef3c7}.status-proximo{color:#1d4ed8;background:#dbeafe}.status-vencido{color:#991b1b;background:#fee2e2}.status-finalizado{color:#1d4ed8;background:#dbeafe}.kpi-line{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.kpi-line div{padding:9px;border-radius:12px;background:#f3f8f5}.kpi-line span{display:block;color:var(--muted);font-size:11px;font-weight:650;text-transform:uppercase}.kpi-line b{display:block;margin-top:3px}.empty-state{padding:22px;border:1px dashed #c7d6ce;border-radius:18px;text-align:center;color:var(--muted);background:#fafdfb;font-weight:600}.diagnostic-box{margin-top:16px;padding:14px;border-radius:18px;background:#f7fbf8;border:1px solid var(--line)}.footer{padding:22px;text-align:center;color:var(--muted);font-size:13px}.muted{color:var(--muted);line-height:1.55}
.toast{position:fixed;right:18px;bottom:18px;z-index:300;width:min(430px,calc(100vw - 36px));padding:15px 16px;border-radius:16px;color:#fff;background:#14532d;font-weight:650;line-height:1.35;box-shadow:0 22px 45px rgba(15,23,42,.22)}.toast.error{background:#b91c1c}.modal{position:fixed;inset:0;z-index:320;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.58)}.modal-card{position:relative;width:min(500px,100%);max-height:92vh;overflow:auto;padding:24px;border-radius:24px;background:#fff}.modal-card.large{width:min(920px,100%)}.modal-close{position:absolute;top:10px;right:14px;border:0;background:transparent;font-size:28px;color:#64748b}.receipt-box{padding:18px;border:1px dashed #94a3b8;border-radius:18px;background:#fff}.receipt-box h2{margin:0 0 10px;text-align:center}.receipt-row{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid #eef2f7}.signature-line{margin-top:34px;border-top:1px solid #111;text-align:center;padding-top:6px}.bottom-nav{display:none}
@media(max-width:1240px){.main-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shortcut-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:980px){.auth-card{grid-template-columns:1fr;min-height:auto}.auth-brand{align-items:center;text-align:center;padding:34px}.auth-logo{width:128px;height:102px;margin-bottom:18px}.auth-panel{padding:32px}.app-header{position:relative;top:auto;align-items:flex-start;flex-direction:column}.header-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.connection-pill,.user-pill{grid-column:1/-1;max-width:none;text-align:center}.top-nav-shell{position:relative;top:auto}.main-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-grid,.split-grid,.split-grid.wide-left{grid-template-columns:1fr}.metric-grid.small{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.span-3{grid-column:1/-1}.hero-card{align-items:flex-start;flex-direction:column}.hero-actions{justify-content:flex-start}.shortcut-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){body{font-size:15px;padding-bottom:76px}.content{padding:12px}.menu-toggle{display:flex;align-items:center;justify-content:center}.main-nav{display:none;margin-top:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.main-nav.open{display:grid}.nav-item{min-height:46px}.shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.shortcut{min-height:90px;border-radius:18px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric-card{min-height:104px;padding:13px}.panel-heading{flex-direction:column}.inline-search{max-width:none;width:100%}.form-grid,.form-grid.three{grid-template-columns:1fr}.span-2,.span-3{grid-column:auto}.filter-row,.report-actions,.form-actions,.charge-toolbar{align-items:stretch;flex-direction:column}.filter-row input,.filter-row select,.report-actions .btn,.form-actions .btn,.charge-toolbar .btn{width:100%}.search-wrap{flex-direction:column}.kpi-line{grid-template-columns:1fr}.quick-return{grid-template-columns:1fr}.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:250;display:grid;grid-template-columns:repeat(5,1fr);padding:7px max(7px,env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-right));background:rgba(255,255,255,.96);border-top:1px solid var(--line);box-shadow:0 -10px 30px rgba(15,23,42,.13);backdrop-filter:blur(14px)}.bottom-item{min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;border-radius:15px;background:transparent;color:#385041;font-size:11px;font-weight:650}.bottom-item span{font-size:19px}.bottom-item.active{color:#fff;background:linear-gradient(135deg,#16a34a,#14532d)}}
@media(max-width:480px){.auth-screen{padding:10px}.auth-card{border-radius:22px}.auth-brand{padding:24px 18px}.auth-panel{padding:24px 18px}.auth-brand p{font-size:15px}.app-header{padding:11px}.brand-logo{width:54px;height:50px}.brand-area strong{font-size:17px}.brand-area small{font-size:12px}.header-actions{grid-template-columns:1fr}.shortcut-grid,.metric-grid,.metric-grid.small{grid-template-columns:1fr}.hero-card,.quick-search-card,.page-title,.panel{border-radius:18px}.info-card .row{flex-direction:column}.metric-card strong{font-size:27px}}
@media print{.app-header,.top-nav-shell,.bottom-nav,.shortcut-grid,.hero-actions,.form-actions,.filter-row,.report-actions,.charge-toolbar,.footer,.toast,.system-alert,.quick-search-card{display:none!important}body{background:#fff;padding:0}.content{width:100%;max-width:none;padding:0}.page{display:none!important}.page.active{display:block!important}.panel,.page-title,.hero-card{box-shadow:none;border:1px solid #ddd}.modal{position:static;background:#fff;padding:0}.modal-card{box-shadow:none;max-height:none;overflow:visible}.modal-close{display:none}}


/* V1.0.6 — Menus animados + Pendentes inteligentes */
.nav-pendentes,.bottom-pendentes,.menu-toggle{position:relative;overflow:visible}.nav-item,.bottom-item,.shortcut,.btn{will-change:transform,box-shadow}.nav-item:hover,.bottom-item:hover{box-shadow:0 12px 28px rgba(20,83,45,.18)}.nav-ico{display:inline-flex;align-items:center;justify-content:center}.nav-badge{position:absolute;right:7px;top:-9px;min-width:23px;height:23px;padding:0 6px;border-radius:999px;display:flex;align-items:center;justify-content:center;color:#fff;background:#dc2626;border:2px solid #fff;font-size:11px;font-weight:700;line-height:1;box-shadow:0 9px 20px rgba(220,38,38,.32);animation:badgePop .95s ease-in-out infinite}.nav-badge.hidden{display:none!important}.menu-badge{right:10px;top:9px}.bottom-badge{right:10px;top:3px;min-width:20px;height:20px;font-size:10px}.nav-pendentes.pending-ok{border-color:#22c55e;color:#166534;background:linear-gradient(180deg,#fff,#ecfdf5)}.nav-pendentes.pending-warning{color:#4a3000;border-color:#facc15;background:linear-gradient(135deg,#fde047,#f59e0b);animation:pendingPulseWarning 1.8s ease-in-out infinite}.nav-pendentes.pending-danger{color:#fff;border-color:#fecaca;background:linear-gradient(135deg,#ef4444,#b91c1c);animation:pendingPulseDanger 1.15s ease-in-out infinite}.nav-pendentes.pending-warning .nav-ico,.nav-pendentes.pending-danger .nav-ico{animation:iconWiggle .75s ease-in-out infinite}.nav-pendentes.pending-warning::after,.nav-pendentes.pending-danger::after{content:"";position:absolute;inset:-2px;border-radius:inherit;pointer-events:none;background:linear-gradient(110deg,transparent 0%,rgba(255,255,255,.48) 42%,transparent 72%);transform:translateX(-120%);animation:shineSweep 2.2s ease-in-out infinite}.bottom-pendentes.pending-warning{color:#4a3000;background:linear-gradient(135deg,#fde047,#f59e0b);animation:pendingPulseWarning 1.8s ease-in-out infinite}.bottom-pendentes.pending-danger{color:#fff;background:linear-gradient(135deg,#ef4444,#b91c1c);animation:pendingPulseDanger 1.15s ease-in-out infinite}.bottom-pendentes.pending-warning span,.bottom-pendentes.pending-danger span{animation:iconWiggle .75s ease-in-out infinite}.metric-card.danger.alert-live{animation:cardDangerBreath 1.3s ease-in-out infinite;border-color:#fca5a5}.metric-card.warning.alert-live{animation:cardWarningBreath 1.7s ease-in-out infinite;border-color:#fcd34d}.hero-card.alert-danger{border-color:#fca5a5;background:radial-gradient(circle at 92% 8%,rgba(239,68,68,.20),transparent 28%),linear-gradient(180deg,#fff,#fff7f7);animation:heroDangerGlow 1.65s ease-in-out infinite}.hero-card.alert-warning{border-color:#facc15;background:radial-gradient(circle at 92% 8%,rgba(250,204,21,.26),transparent 28%),linear-gradient(180deg,#fff,#fffbeb);animation:heroWarningGlow 2s ease-in-out infinite}.attention-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:12px 14px;border-radius:17px;border:1px solid #bbf7d0;background:linear-gradient(135deg,#ecfdf5,#fff);box-shadow:0 12px 26px rgba(20,83,45,.08);font-weight:650}.attention-strip.danger{border-color:#fecaca;background:linear-gradient(135deg,#fee2e2,#fff)}.attention-strip.warning{border-color:#fde68a;background:linear-gradient(135deg,#fef3c7,#fff)}.attention-strip b{font-size:13px;text-transform:uppercase;letter-spacing:.05em}.attention-strip span{color:#52685e;font-size:13px}@keyframes pendingPulseDanger{0%,100%{transform:translateY(0) scale(1);box-shadow:0 7px 18px rgba(185,28,28,.20)}50%{transform:translateY(-1px) scale(1.018);box-shadow:0 0 0 7px rgba(239,68,68,.13),0 15px 34px rgba(185,28,28,.28)}}@keyframes pendingPulseWarning{0%,100%{transform:translateY(0) scale(1);box-shadow:0 7px 18px rgba(217,119,6,.18)}50%{transform:translateY(-1px) scale(1.014);box-shadow:0 0 0 7px rgba(250,204,21,.20),0 15px 34px rgba(217,119,6,.25)}}@keyframes badgePop{0%,100%{transform:scale(1)}50%{transform:scale(1.16)}}@keyframes iconWiggle{0%,100%{transform:rotate(0deg)}25%{transform:rotate(-8deg)}75%{transform:rotate(8deg)}}@keyframes shineSweep{0%{transform:translateX(-130%)}45%,100%{transform:translateX(130%)}}@keyframes cardDangerBreath{0%,100%{box-shadow:var(--shadow)}50%{box-shadow:0 0 0 6px rgba(239,68,68,.10),0 18px 40px rgba(185,28,28,.18)}}@keyframes cardWarningBreath{0%,100%{box-shadow:var(--shadow)}50%{box-shadow:0 0 0 6px rgba(250,204,21,.18),0 18px 40px rgba(217,119,6,.14)}}@keyframes heroDangerGlow{0%,100%{box-shadow:var(--shadow)}50%{box-shadow:0 0 0 8px rgba(239,68,68,.10),0 24px 48px rgba(185,28,28,.14)}}@keyframes heroWarningGlow{0%,100%{box-shadow:var(--shadow)}50%{box-shadow:0 0 0 8px rgba(250,204,21,.16),0 24px 48px rgba(217,119,6,.12)}}
@media(max-width:760px){.nav-badge{right:9px;top:-7px}.menu-badge{top:11px}.bottom-badge{top:4px;right:8px}.bottom-item.pending-danger,.bottom-item.pending-warning{font-weight:700}}
@media(prefers-reduced-motion:reduce){.nav-pendentes,.bottom-pendentes,.nav-badge,.nav-ico,.metric-card,.hero-card,.nav-pendentes::after{animation:none!important}}

/* Fruti Cantelle: red and green brand, clear icon hierarchy */
:root{--bg:#f7f6f3;--surface2:#fffaf8;--text:#263129;--green:#ae202c;--green2:#881b28;--line:#e9dedd;--shadow:0 14px 34px rgba(102,31,39,.10)}
body{background:radial-gradient(circle at 9% 3%,rgba(123,188,90,.11),transparent 28%),radial-gradient(circle at 92% 20%,rgba(190,49,51,.08),transparent 25%),#f7f6f3}
.auth-screen{background:linear-gradient(145deg,#5c1621,#a92533)}.auth-brand{background:linear-gradient(140deg,#751927,#bf2934)}.auth-brand p,.brand-area small{color:#fff1ef}.mini-label{color:#ffdedb}.mini-label.green{color:#a92832}
.app-header{background:linear-gradient(180deg,#bc2b36,#791b28)}.hero-card{background:linear-gradient(135deg,#fff,#fff5f2)}.focus-panel{background:linear-gradient(180deg,#fff,#fff8f6)}.btn.primary{background:linear-gradient(135deg,#c63139,#881b28)}.btn.soft{color:#951e2a;background:#ffeded}.nav-item:hover,.nav-item.active,.bottom-item.active{border-color:#b22c38;background:linear-gradient(135deg,#c63139,#861b28)}.nav-item{font-size:13px;min-height:62px;flex-direction:column;gap:3px}.nav-item .nav-ico{font-size:24px}.shortcut{min-height:112px}.shortcut span{font-size:37px;line-height:1.2;filter:drop-shadow(0 3px 4px rgba(0,0,0,.2))}.shortcut strong{font-size:17px}.bottom-item span{font-size:27px}.bottom-item{min-height:61px}.brand-logo{width:77px;height:55px}.auth-logo{width:250px;height:146px}.nav-pendentes.pending-ok{color:#8f202c;border-color:#f2a8aa;background:#fff3f0}.attention-strip{border-color:#f4d1cb;background:linear-gradient(135deg,#fff2ef,#fff)}.text-btn{color:#aa2732}.toast{background:#972430}input:focus,select:focus,textarea:focus{border-color:#bc3039;box-shadow:0 0 0 4px rgba(188,48,57,.14)}
@media(max-width:760px){.nav-item{min-height:58px;flex-direction:row;justify-content:flex-start;padding-left:13px}.shortcut span{font-size:38px}.bottom-item{min-height:58px}}

/* Equipe CEASA */
.main-nav{grid-template-columns:repeat(10,minmax(0,1fr))}.nav-item .nav-ico{font-size:25px}.worker-only.hidden{display:none!important}.info-card select[data-assign-loan]{max-width:240px}.worker-only .metric-grid{margin-top:16px}.worker-only .info-card{margin:10px 0}.worker-only .card-actions .btn{min-height:49px}.worker-only .card-actions{gap:8px}
@media(max-width:1180px){.main-nav{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:760px){.main-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.worker-only .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.worker-only .card-actions{display:grid;grid-template-columns:1fr 1fr}.worker-only .card-actions .btn:last-child{grid-column:1/-1}.info-card select[data-assign-loan]{max-width:100%;width:100%}}
/* Escolha visual das caixas na operação CEASA */
.crate-card{padding:18px;margin-bottom:14px}.crate-stage{position:relative;display:grid;place-items:center;min-height:205px;border-radius:19px;background:linear-gradient(150deg,#fff,#f7faf6);border:1px solid #e7ece5;margin:14px 0 12px;padding:13px}.crate-stage img{height:174px;width:min(100%,260px);object-fit:contain;mix-blend-mode:multiply}.crate-stage>span{position:absolute;bottom:8px;left:12px;font-weight:650;color:#475b4a;background:#ffffffed;padding:5px 10px;border-radius:10px;font-size:12px}.crate-colors{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:16px}.crate-choice{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:7px 3px;border:2px solid #e4e9e4;border-radius:14px;background:#fff;color:#3d5145;font-size:11px;font-weight:650}.crate-choice img{width:59px;height:48px;object-fit:contain;mix-blend-mode:multiply}.crate-choice.selected{border-color:#147239;background:#effaf1;box-shadow:0 0 0 2px #86d6a14a}.crate-choice:focus-visible,.crate-stepper button:focus-visible{outline:3px solid #b12834;outline-offset:2px}.crate-quantity{display:flex;align-items:center;justify-content:space-between;gap:13px;font-size:14px}.crate-stepper{display:flex;align-items:center;gap:8px}.crate-stepper button{width:42px;height:42px;border:0;border-radius:12px;background:#fff0ee;color:#ad2430;font-size:24px;font-weight:650}.crate-stepper input{width:74px;height:42px;text-align:center;font-size:20px;font-weight:650;padding:3px;border:1px solid #e1e8df}.crate-note{margin:9px 0 13px!important;color:#637366;font-size:12px}.crate-delivered{display:flex;align-items:center;gap:16px;background:#f2faf3;border-radius:15px;margin:14px 0;padding:10px}.crate-delivered img{width:100px;height:80px;object-fit:contain;mix-blend-mode:multiply}.crate-delivered strong,.crate-delivered small{display:block}.crate-delivered small{color:#61756a;margin-top:4px}
@media(max-width:760px){.crate-card{padding:13px}.crate-stage{min-height:170px}.crate-stage img{height:145px}.crate-choice img{width:48px;height:42px}.crate-choice{font-size:10px}.crate-quantity{align-items:flex-start;flex-direction:column}.crate-stepper{width:100%;justify-content:space-between}.crate-stepper input{flex:1;max-width:160px}.crate-card .card-actions{grid-template-columns:1fr 1fr}.crate-card .card-actions .btn:first-child{grid-column:1/-1}}

/* Fotos das caixas em todas as telas do administrador */
:root{font-synthesis:none}body{font-family:Inter,"Segoe UI",Arial,sans-serif;font-weight:400}.brand-area strong,.page-title h1,.hero-card h1{font-weight:650}.panel h2,.info-card strong,.metric-card strong{font-weight:600}.nav-item,.bottom-item,.btn,.shortcut strong{font-weight:650}.mini-label,.metric-card span,.page-title span{font-weight:600}.dashboard-crates,.color-select-panel{margin-bottom:15px}.color-select-panel>p{color:var(--muted);margin:0 0 12px}.crate-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.gallery-crate{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:135px;background:#fff;border:2px solid #e8eae6;border-radius:17px;padding:10px 6px;color:#344239;font-size:14px;font-weight:600;transition:transform .15s,border-color .15s}.gallery-crate:hover{transform:translateY(-2px);border-color:#c74b54}.gallery-crate.selected{border-color:#b42937;box-shadow:0 0 0 3px #f5dfe1;background:#fff8f8}.gallery-crate:focus-visible{outline:3px solid #ad2735;outline-offset:2px}.gallery-crate img{height:91px;width:100%;object-fit:contain;mix-blend-mode:multiply}.gallery-crate span{display:block}.auth-brand h1{font-weight:650}@media(max-width:760px){.crate-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.gallery-crate{min-height:106px;font-size:12px}.gallery-crate img{height:69px}}@media(max-width:420px){.crate-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
.login-name-field{display:flex;align-items:center;gap:0;border:1px solid #e5d7d7;border-radius:14px;background:#fff;overflow:hidden;min-height:48px}.login-name-field:focus-within{border-color:#ae202c;box-shadow:0 0 0 3px rgba(174,32,44,.12)}.login-name-field input{border:0!important;box-shadow:none!important;outline:none!important;min-width:0;flex:1;width:100%;background:transparent}.login-name-field span{padding:0 12px 0 3px;font-size:.9rem;white-space:nowrap;color:#555;font-weight:500}@media(max-width:390px){.login-name-field span{font-size:.78rem;padding-right:8px}}

.evidence-modal{position:fixed;inset:0;z-index:9999;background:#12241bd9;display:grid;place-items:center;padding:16px;overflow:auto}.evidence-modal.hidden{display:none}.evidence-panel{width:min(690px,100%);max-height:95vh;overflow:auto;display:grid;gap:12px}.evidence-panel label{display:grid;gap:6px}.evidence-panel canvas{width:100%;height:210px;border:2px solid #91aa99;border-radius:12px;background:white;touch-action:none}.evidence-preview{max-height:160px;max-width:100%;object-fit:contain}.evidence-preview.hidden{display:none}#evidenceError{color:#a32828}.evidence-panel fieldset{border:1px solid #ddd}

.model-picture{width:84px;height:84px;object-fit:contain;border-radius:12px;background:#f5f8f2}.model-preview{display:flex;gap:12px;align-items:center;padding:10px;border-radius:12px;background:#f4f8f2}.model-preview:empty{display:none}.model-select-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:10px;margin:12px 0}.model-tile{display:grid;justify-items:center;gap:6px;padding:10px;border:1px solid #cedccf;border-radius:14px;background:white;text-align:center;cursor:pointer}.model-tile.selected{outline:3px solid #2b9158}.model-tile:disabled{opacity:.45;cursor:not-allowed}.model-tile img{width:96px;height:90px;object-fit:contain}.model-tile small{font-size:12px}.evidence-panel #evidenceSummary{font-weight:500;white-space:pre-line;background:#f4f8f2;padding:12px;border-radius:12px}

.easy-loan{max-width:880px;margin:auto;display:grid;gap:18px}.easy-step{display:flex;gap:12px;align-items:flex-start}.easy-step label,.easy-step-body{display:grid;gap:8px;flex:1;min-width:0;font-size:1.05rem;font-weight:600}.step-number{background:#ad2535;color:white;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;flex:none;font-weight:700}.easy-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.easy-loan input,.easy-loan select{min-height:48px}.easy-loan .model-select-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr))}.easy-loan .model-tile{font-size:14px}.easy-loan .model-tile img{width:100px;height:94px}.loan-more{border:1px solid #dce6dc;border-radius:12px;padding:12px}.loan-more summary{cursor:pointer;color:#4c6654;font-weight:600}.loan-more .form-grid{margin-top:15px}.easy-loan .form-actions .primary{font-size:1.04rem;min-height:52px}@media(max-width:650px){.easy-row{grid-template-columns:1fr}.easy-loan .model-select-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.easy-step label{font-size:1rem}}

.easy-loan #loanModel{display:none}.easy-loan .model-preview{font-size:13px;color:#35563c;padding:8px}.easy-loan .model-tile.selected{background:#eaf7eb}.easy-loan .model-tile:focus-visible{outline:3px solid #a92034}

/* Tela de saída compacta */
.loan-clean-page .page-title{max-width:760px;margin:0 auto 12px;padding:16px 20px}.loan-clean-page .page-title h1{margin:3px 0 0;font-size:clamp(22px,3vw,29px)}.clean-loan{max-width:760px;margin:auto;display:grid;gap:20px;padding:clamp(16px,3vw,28px)}.clean-field{display:grid;gap:8px;min-width:0}.clean-field>span,.clean-field>strong{font-size:15px;font-weight:600;color:#273d30}.clean-loan input{min-height:48px;font-size:16px}.clean-loan #loanModel{display:none}.clean-loan .model-select-grid{margin:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.clean-loan .model-tile{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:78px;padding:8px 10px;border-radius:12px;text-align:left;box-shadow:none}.clean-loan .model-tile img{width:56px;height:56px;flex:none}.clean-loan .model-tile strong{font-size:13px;font-weight:600;line-height:1.2}.clean-loan .model-tile small{display:block;font-size:11px;color:#54705d;margin-left:auto;white-space:nowrap}.clean-loan .model-tile.selected{outline:2px solid #31875a;background:#f0faf2}.clean-loan .model-preview{display:none}.clean-fields-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.clean-loan .loan-more{padding:10px 12px;border-radius:10px;box-shadow:none}.clean-loan .loan-more summary{font-size:14px}.clean-actions{display:flex;gap:9px}.clean-actions .primary{min-width:210px;min-height:46px;font-size:15px}.clean-actions .soft{min-height:46px}@media(max-width:720px){.clean-loan .model-select-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.clean-loan .model-tile{min-height:72px}.clean-loan .model-tile small{white-space:normal}}@media(max-width:440px){.loan-clean-page .page-title{padding:14px 16px}.clean-loan .model-tile{display:grid;justify-items:center;text-align:center;gap:3px}.clean-loan .model-tile small{margin:0}.clean-fields-row{gap:10px}.clean-actions .primary{min-width:0;flex:1}.clean-actions .soft{padding:8px}}

.registration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;max-width:950px;margin:20px auto}.registration-card{display:grid;justify-items:center;gap:7px;min-height:180px;padding:20px;border:1px solid #e0e7df;border-radius:20px;background:#fff;box-shadow:var(--shadow);cursor:pointer;color:#203d2b}.registration-card:hover,.registration-card:focus-visible{border-color:#3a9a63;background:#f3faf3}.registration-card>span{font-size:42px}.registration-card strong{font-size:18px;font-weight:650}.registration-card small{color:#647668}.back-registrations{border:0;background:none;color:#286c44;font-size:14px;font-weight:650;padding:8px 3px;cursor:pointer}.clean-loan #loanModel{display:block;width:100%;min-height:48px;border-radius:12px;border:1px solid #cddacb;padding:10px;background:#fff;font-size:16px}.clean-loan .model-select-grid{margin-top:10px}.notification-panel{position:fixed;right:14px;top:85px;z-index:1000;width:min(400px,calc(100vw - 28px));max-height:calc(100vh - 105px);overflow:auto;background:#fff;border:1px solid #dce7df;box-shadow:0 16px 45px #19352045;border-radius:18px;padding:16px}.notification-panel.hidden{display:none}.notification-panel>p{font-size:13px;color:#65756a}.notification-panel .info-card{padding:10px;margin:8px 0}.notification-panel .panel-heading{align-items:center}@media(max-width:640px){.registration-grid{grid-template-columns:1fr 1fr;gap:10px}.registration-card{min-height:130px;padding:12px}.registration-card>span{font-size:33px}.registration-card strong{font-size:15px}.notification-panel{top:65px}}

.main-nav{grid-template-columns:repeat(6,minmax(0,1fr));max-width:1120px}.main-nav .worker-only:not(.hidden){grid-column:1/-1}.starter-crates{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:12px 0}.starter-crates button{display:grid;justify-items:center;gap:4px;padding:8px;background:#fff;border:1px solid #dce7dd;border-radius:12px;cursor:pointer}.starter-crates img{width:70px;height:65px;object-fit:contain}.starter-crates span{font-size:12px}.model-empty{grid-column:1/-1;text-align:center;border:1px dashed #a9bfaf;border-radius:15px;padding:15px;color:#355941}.legacy-model{border-style:dashed!important}@media(max-width:1240px){.main-nav{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:980px){.main-nav{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:520px){.starter-crates{grid-template-columns:repeat(3,minmax(0,1fr))}}

.coupon-brand{text-align:center}.coupon-brand img{width:100px;height:70px;object-fit:contain}.receipt-box h3{text-align:center;font-size:15px;margin:10px 0 18px}.coupon-photos{display:flex;gap:10px}.coupon-photos figure{margin:12px 0;width:50%;text-align:center;font-size:11px}.coupon-photos img{width:100%;height:140px;object-fit:contain;border:1px solid #eee;border-radius:10px}.coupon-sign{display:grid;text-align:center;gap:5px;margin-top:14px}.coupon-sign img{width:100%;height:100px;object-fit:contain}.coupon-sign small{font-size:11px}.coupon-link{font-size:11px;overflow-wrap:anywhere}.receipt-modal-card{max-height:92vh;overflow:auto}.receipt-row{gap:12px}.receipt-row span{text-align:right}

.mobile-basic{display:none}.import-modal{width:min(1100px,96vw);max-height:92vh;overflow:auto}.import-table-wrap{overflow:auto;margin:15px 0}.import-table-wrap table{width:100%;border-collapse:collapse;font-size:13px}.import-table-wrap th,.import-table-wrap td{padding:10px;border-bottom:1px solid #ddd;text-align:left}.import-table-wrap small{display:block;color:#657167}.simple-result{padding:20px;background:white;border-radius:14px;margin:12px 0}.simple-result small{display:block}.operation-review{padding:18px;background:#eff7ef;border-radius:15px;line-height:1.6}.wizard-controls>div{display:flex;justify-content:space-between;gap:15px}.wizard-controls button{flex:1}.saving-notice{font-size:17px;background:#edf5ee;padding:15px;border-radius:12px;margin-bottom:15px}
@media(max-width:1024px){body:not(.mobile-admin-mode) .mobile-basic{display:block}body:not(.mobile-admin-mode) .top-nav-shell,body:not(.mobile-admin-mode) .bottom-nav,body:not(.mobile-admin-mode) #dashboard> :not(.simple-launch),body:not(.mobile-admin-mode) #devolver .split-grid>article,body:not(.mobile-admin-mode) #workerSummary,body:not(.mobile-admin-mode) .footer,body:not(.mobile-admin-mode) #connectionStatus,body:not(.mobile-admin-mode) #notificationBtn{display:none!important}.simple-toolbar{display:flex!important;align-items:center;justify-content:space-between;padding:12px 15px;gap:10px;background:white;position:sticky;top:0;z-index:25}.simple-toolbar button{border:0;background:#f1f4f1;padding:12px;border-radius:10px;min-height:44px;font-size:15px}.simple-toolbar span{font-size:12px;color:#4e6855}.simple-toolbar .is-offline{color:#a9202e}.simple-launch h1{font-size:24px;font-weight:500}.simple-launch>button{display:flex;align-items:center;justify-content:center;gap:20px;width:100%;min-height:95px;border:0;border-radius:18px;background:#a8202e;color:white;font-size:30px;margin:14px 0}.simple-launch>button:nth-of-type(2){background:#1f7864}.simple-launch>button:nth-of-type(3){background:#3e566c}.simple-launch button span{font-size:22px;font-weight:500}body:not(.mobile-admin-mode) .op-step{display:none}body:not(.mobile-admin-mode) .op-step.current-step{display:block}body:not(.mobile-admin-mode) .content{padding:16px;max-width:720px}body:not(.mobile-admin-mode) .page-title p,body:not(.mobile-admin-mode) .page-title>span{display:none}body:not(.mobile-admin-mode) .page-title h1{font-size:25px;font-weight:500}body:not(.mobile-admin-mode) input,body:not(.mobile-admin-mode) select{min-height:54px;font-size:18px}body:not(.mobile-admin-mode) .btn{min-height:54px;font-size:17px}body:not(.mobile-admin-mode) .clean-fields-row,body:not(.mobile-admin-mode) .form-grid{grid-template-columns:1fr}body:not(.mobile-admin-mode) .model-select-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body:not(.mobile-admin-mode) .model-tile img{height:110px}body:not(.mobile-admin-mode) .clean-actions>button[type=reset]{display:none}body:not(.mobile-admin-mode) .loan-more{margin-top:18px}body:not(.mobile-admin-mode) .wizard-controls{margin-top:20px}body:not(.mobile-admin-mode) .wizard-controls small{display:block;margin-bottom:12px}body:not(.mobile-admin-mode) #firebaseNotice>strong{display:none}body:not(.mobile-admin-mode) .worker-launch{margin-bottom:20px}body[data-worker-mode=consultar]:not(.mobile-admin-mode) #workerLoansList .card-actions,body[data-worker-mode=consultar]:not(.mobile-admin-mode) #workerLoansList .crate-stage,body[data-worker-mode=consultar]:not(.mobile-admin-mode) #workerLoansList .crate-colors,body[data-worker-mode=consultar]:not(.mobile-admin-mode) #workerLoansList .crate-quantity,body[data-worker-mode=consultar]:not(.mobile-admin-mode) #workerLoansList .crate-note,body[data-worker-mode=devolver]:not(.mobile-admin-mode) [data-confirm-crate],body[data-worker-mode=devolver]:not(.mobile-admin-mode) [data-delivery],body[data-worker-mode=emprestar]:not(.mobile-admin-mode) [data-worker-return]{display:none!important}.evidence-panel{width:min(620px,96vw);padding:18px}#signaturePad{width:100%;max-width:100%;touch-action:none}.import-modal{max-height:95vh}body:not(.mobile-admin-mode) .brand small{display:none}}
.info-card .row>div>small{display:block}.import-table-wrap input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:#a9202e}
@media(max-width:1024px){body:not(.mobile-admin-mode) .app-header{flex-direction:row;align-items:center;gap:10px;padding:12px}body:not(.mobile-admin-mode) .brand-area{gap:10px}body:not(.mobile-admin-mode) .brand-logo{width:64px;height:48px}body:not(.mobile-admin-mode) .brand-area small,body:not(.mobile-admin-mode) #userBadge{display:none!important}body:not(.mobile-admin-mode) .brand-area strong{font-size:17px;font-weight:500}body:not(.mobile-admin-mode) .header-actions{display:flex;flex-wrap:wrap;width:auto;gap:5px;margin-left:auto}body:not(.mobile-admin-mode) #logoutBtn{min-height:40px;padding:10px;font-size:14px}body:not(.mobile-admin-mode) .simple-launch button{font-weight:500}}

@media(max-width:1024px){body:not([data-worker-mode]):not(.mobile-admin-mode) #workerLoansList,body[data-worker-mode=""]:not(.mobile-admin-mode) #workerLoansList{display:none}body:not([data-worker-mode]):not(.mobile-admin-mode) .worker-launch>label,body[data-worker-mode=""]:not(.mobile-admin-mode) .worker-launch>label{display:none}body[data-worker-mode=devolver]:not(.mobile-admin-mode) .worker-launch>button,body[data-worker-mode=consultar]:not(.mobile-admin-mode) .worker-launch>button,body[data-worker-mode=emprestar]:not(.mobile-admin-mode) .worker-launch>button{display:none}}

.action-icon{width:19px;height:19px;flex-shrink:0;vertical-align:middle}.card-actions .btn,.action-menu summary{display:inline-flex;align-items:center;justify-content:center;gap:7px}.compact-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start}.action-menu{min-width:130px}.action-menu summary{cursor:pointer;list-style:none;min-height:42px}.action-menu summary::-webkit-details-marker{display:none}.action-menu[open]{flex-basis:100%}.action-menu-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;background:#fff;padding:12px;border:1px solid #e8ece8;border-radius:14px;margin-top:10px}.action-menu-items small{grid-column:1/-1;color:#647467;line-height:1.4}.danger-action{color:#a91c2b!important;border-color:#efc3ca!important}.loan-title{display:flex;align-items:center;gap:10px}.loan-select{display:flex;margin:0}.loan-select input{width:22px;height:22px;min-height:22px;accent-color:#a9202e}.loan-card .loan-title strong{font-size:18px;font-weight:600}.loan-card .pending-highlight{background:#e4eee5}.loan-card .pending-highlight b{font-size:23px}.pending-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.pending-tabs button{border:1px solid #ddd;background:#fff;padding:11px 15px;border-radius:12px;cursor:pointer;min-height:44px}.pending-tabs button[aria-pressed=true]{background:#a9202e;color:white;border-color:#a9202e}.pending-tabs b{margin-left:6px}.pending-bulk{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:15px}.pending-bulk label{display:flex;align-items:center;gap:7px;font-size:13px}.pending-bulk input{width:20px;height:20px;min-height:20px;accent-color:#a9202e}.registry-filter{max-width:260px;margin:15px 0}#fixValueForm label{display:block;margin:15px 0}#fixValueForm input,#fixValueForm textarea{width:100%}
@media(max-width:1024px){body:not(.mobile-admin-mode) .loan-financial{display:none!important}.action-menu-items{grid-template-columns:repeat(2,minmax(0,1fr))}.loan-select input,.pending-bulk input{min-height:22px!important;width:22px!important;height:22px!important}.compact-actions>.btn,.compact-actions>.action-menu{flex:1;min-width:90px}.compact-actions summary{width:100%;min-height:54px}.loan-card .loan-title strong{font-size:18px}.pending-tabs{display:grid;grid-template-columns:repeat(2,1fr)}#selectedPendingValues{min-height:22px}.pending-bulk{align-items:flex-start}}
.action-menu-items .btn{width:100%;min-width:0;max-width:100%;white-space:normal;padding:10px}.action-menu-items .btn span{min-width:0;white-space:normal;overflow-wrap:anywhere}.action-menu-items .danger-action{grid-column:1/-1}.loan-title{min-width:0}.loan-title>div{min-width:0}.loan-title strong{overflow-wrap:anywhere}
@media(max-width:760px){.loan-card .kpi-line{grid-template-columns:repeat(3,minmax(0,1fr))}.loan-card .kpi-line span{font-size:10px}.loan-card .kpi-line div{padding:10px 7px}}

.draft-item{display:flex;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid #ddd}.draft-item>span{flex:1;min-width:0}.draft-item small{display:block}.draft-item .btn{padding:10px}.coupon-photos{flex-wrap:wrap}body.mobile-admin-mode .simple-toolbar{display:none!important}@media(max-width:760px){body.mobile-admin-mode .clean-fields-row,body.mobile-admin-mode .form-grid{grid-template-columns:1fr}.draft-item{flex-wrap:wrap}.draft-item>span{flex-basis:100%}.top-nav-shell{max-width:100%}.app-header{gap:10px}}

.worker-launch>button{min-height:54px;margin:8px;padding:15px;border:0;border-radius:12px;background:#eef5ef;color:#174b2c;font-size:18px}.worker-launch>label{display:block}.worker-launch{margin-bottom:18px}

.account-panel{width:min(560px,94vw);max-height:92vh;overflow:auto;padding:22px;background:white;border-radius:18px}.account-panel p{overflow-wrap:anywhere}.check-line{display:flex;align-items:center;gap:10px}.check-line input{width:20px!important;height:20px!important;min-height:20px!important}.account-panel fieldset{border:1px solid #dce5df;border-radius:10px;padding:12px}.account-panel textarea{width:100%}

#workersList{display:flex;flex-direction:column;gap:0}.user-line{display:flex;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #e1e7e3;flex-wrap:wrap}.user-line-name{flex:1 1 220px;min-width:0}.user-line-name strong{font-weight:500}.user-line small{display:block;color:#637167;overflow-wrap:anywhere}.user-line-meta{flex:0 1 210px}.user-line .btn{min-height:40px;font-size:13px;padding:9px 12px}.user-line .action-menu-items{min-width:230px}#userEditModal,#myAccountModal,#userAccessModal{align-items:center;justify-items:center;overflow:hidden;padding:16px;box-sizing:border-box}#userEditModal .account-panel{width:min(850px,96vw)}.account-panel{box-sizing:border-box;max-height:calc(100dvh - 32px);margin:0!important;align-self:center}.account-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-22px;background:white;z-index:3;margin:-22px -22px 18px;padding:16px 22px;border-bottom:1px solid #e1e7e3}.account-modal-head h2{margin:0;font-size:21px;font-weight:500}.account-modal-head>.btn{flex-shrink:0}.user-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.user-edit-grid>label{display:flex;flex-direction:column;gap:5px}.user-edit-grid>.check-line,.user-edit-grid fieldset .check-line{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:10px!important}.user-edit-grid fieldset{grid-column:1/-1;display:flex;gap:18px;flex-wrap:wrap}.user-edit-grid fieldset small{flex-basis:100%}.user-edit-footer{grid-column:1/-1;position:sticky;bottom:-22px;background:white;margin-bottom:-22px;padding:12px 0 22px}.user-edit-grid input,.user-edit-grid select{min-height:42px}.user-edit-grid .check-line input{flex-shrink:0}@media(max-width:650px){.user-edit-grid{grid-template-columns:1fr}.user-line{gap:8px}.user-line-meta{flex:1 1 140px}.user-line .card-actions{flex-basis:100%}.account-modal-head h2{font-size:18px}.account-modal-head{top:-18px}.account-panel{padding:18px}.user-edit-grid fieldset{display:grid;gap:10px}.user-edit-footer{bottom:-18px}.account-modal-head{margin:-18px -18px 15px;padding:14px 18px}}

#equipe .split-grid{display:block}#equipe .split-grid>article{margin-top:16px}.new-user-disclosure>summary{width:max-content;cursor:pointer}.new-user-disclosure[open]>summary{margin-bottom:12px}

#adminPasswordModal{align-items:center;justify-items:center;overflow:hidden;padding:16px}#adminPasswordTarget{overflow-wrap:anywhere}

/* Operação compacta e caixas em lista — V3.5.2 */
#loanForm,#loanBoxEditor,#loanCartPanel,.op-step{min-width:0;max-width:100%}#loanBoxEditor .clean-field{min-width:0}#loanModel{max-width:100%;width:100%}.box-entry-row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin:14px 0}.box-entry-row>label{flex:1;min-width:120px}.box-entry-row>.btn{flex:1;min-width:140px}#loanCartPanel{padding:16px;background:#f5f8f5;border:1px solid #dde7df;border-radius:14px;margin:16px 0}#loanCartPanel h3{margin:0 0 10px;font-size:17px;font-weight:500}#loanCartPanel>small{display:block;margin-top:10px;color:#66746a}#loanCartPanel .draft-item{display:grid;grid-template-columns:52px minmax(0,1fr) 90px auto;gap:12px;align-items:center;max-width:100%;padding:12px 0}#loanCartPanel .draft-item>img{width:52px;height:52px;object-fit:contain;border-radius:10px;background:white}.draft-name{min-width:0;overflow-wrap:break-word}.draft-name strong{font-weight:500}.draft-name small{display:block}.draft-quantity{font-size:12px;display:grid;gap:5px;min-width:0}.draft-quantity input{width:100%;min-width:0!important;min-height:42px!important;font-size:17px!important}.draft-item .btn{font-size:13px;min-width:0;white-space:nowrap}.loan-review-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #d7e3d9}.loan-review-row span{min-width:0;overflow-wrap:break-word}.loan-review-row b{flex-shrink:0}.loan-review-row+ p{font-weight:500}#addAnotherBox{max-width:100%;white-space:normal}
@media(max-width:1024px){.content,.panel,.form-card,.clean-loan,.page,.row{min-width:0}body:not(.mobile-admin-mode) .app-header{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}body:not(.mobile-admin-mode) .header-actions{width:100%;margin:0;justify-content:flex-end;gap:6px}body:not(.mobile-admin-mode) .header-actions .btn{min-height:38px;font-size:12px;padding:9px 10px;white-space:nowrap}body:not(.mobile-admin-mode) .brand-area{min-width:0}body:not(.mobile-admin-mode) .brand-area strong{font-size:17px;overflow-wrap:normal;word-break:normal}body:not(.mobile-admin-mode) .model-select-grid{grid-template-columns:1fr;gap:8px}body:not(.mobile-admin-mode) .model-tile{display:grid;grid-template-columns:64px minmax(0,1fr);column-gap:12px;text-align:left;align-items:center;min-width:0;padding:10px}body:not(.mobile-admin-mode) .model-tile img{grid-row:1/3;width:64px;height:64px;object-fit:contain}body:not(.mobile-admin-mode) .model-tile strong{font-size:16px;font-weight:500;min-width:0;overflow-wrap:break-word;word-break:normal}body:not(.mobile-admin-mode) .model-tile small{grid-column:2;font-size:12px}body:not(.mobile-admin-mode) .simple-launch>button{gap:12px;font-size:24px;padding:16px;min-height:72px}body:not(.mobile-admin-mode) .simple-launch>button span{font-size:19px;line-height:1.3;white-space:normal;word-break:normal;overflow-wrap:normal}body:not(.mobile-admin-mode) .simple-toolbar button{font-size:14px;white-space:nowrap}.wizard-controls>div{display:flex;gap:10px}.wizard-controls .btn{padding:12px;min-width:0;white-space:normal}#loanCartPanel .draft-item{grid-template-columns:44px minmax(0,1fr) 75px;gap:8px}#loanCartPanel .draft-item>img{width:44px;height:44px}.draft-item>.btn{grid-column:2/4;justify-self:start;min-height:36px!important;padding:7px 10px!important}.draft-quantity{font-size:11px}#loanCartPanel{padding:12px}.box-entry-row{gap:10px}.box-entry-row>.btn{flex-basis:100%}.box-entry-row>label{flex-basis:100%}.operation-review{overflow-wrap:break-word}.simple-toolbar{gap:6px;padding:10px}#simpleConnection{font-size:11px;min-width:0}.info-card .row>div{min-width:0}.info-card strong{overflow-wrap:break-word}.action-menu-items .btn{white-space:normal;word-break:normal}}

/* V3.5.2: one choice at a time in the mobile worker loan. */
@media(max-width:1024px){
 body:not(.mobile-admin-mode) #emprestar .page-title{padding:4px 0 12px;margin:0}
 body:not(.mobile-admin-mode) #emprestar .page-title h1{font-size:22px}
 body:not(.mobile-admin-mode) #loanForm{gap:14px;padding:16px;box-shadow:none}
 body:not(.mobile-admin-mode) #loanForm #loanModel{display:none}
 body:not(.mobile-admin-mode) #loanForm .model-tile{grid-template-columns:44px minmax(0,1fr);min-height:64px;padding:8px 10px;gap:10px}
 body:not(.mobile-admin-mode) #loanForm .model-tile img{grid-row:auto;width:44px;height:44px}
 body:not(.mobile-admin-mode) #loanForm .model-tile small{display:none}
 body:not(.mobile-admin-mode) #loanForm .model-tile strong{font-size:15px;line-height:1.35}
 body:not(.mobile-admin-mode) #loanCartPanel{background:transparent;border:0;padding:0;margin:8px 0 0}
 body:not(.mobile-admin-mode) #loanCartPanel:not(.has-items){display:none}
 body:not(.mobile-admin-mode) #loanCartPanel>h3,body:not(.mobile-admin-mode) #loanCartPanel>small{display:none}
 body:not(.mobile-admin-mode) #loanCartPanel .draft-item{grid-template-columns:36px minmax(0,1fr) 62px 40px;gap:7px;flex-wrap:nowrap}
 body:not(.mobile-admin-mode) #loanCartPanel .draft-item>img{width:36px;height:36px}
 body:not(.mobile-admin-mode) #loanCartPanel .draft-name strong{font-size:14px;line-height:1.35}
 body:not(.mobile-admin-mode) #loanCartPanel .draft-item>.btn{grid-column:auto;justify-self:stretch;display:flex;align-items:center;justify-content:center;min-width:40px;min-height:44px!important;padding:8px!important}
 body:not(.mobile-admin-mode) #loanCartPanel .draft-item>.btn span{display:none}
 body:not(.mobile-admin-mode) #loanCartPanel .draft-item>.btn svg{width:20px;height:20px}
 body:not(.mobile-admin-mode) #loanCartPanel .draft-quantity{font-size:10px}
 body:not(.mobile-admin-mode) #loanItemsSummary{font-size:14px;margin:12px 0}
 body:not(.mobile-admin-mode) #addAnotherBox{width:100%;min-height:46px;font-size:16px}
 body:not(.mobile-admin-mode) #loanForm .box-entry-row{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:end;gap:12px}
 body:not(.mobile-admin-mode) #loanForm .box-entry-row>label{min-width:0}
 body:not(.mobile-admin-mode) #loanForm .box-entry-row>.btn{min-width:0;font-size:16px;padding:12px 8px}
 body:not(.mobile-admin-mode) #loanForm .wizard-controls{margin-top:4px}
 body:not(.mobile-admin-mode) #loanForm .wizard-controls small{font-size:13px;color:#526459;margin-bottom:10px}
 body:not(.mobile-admin-mode) #loanReview{background:transparent;padding:0;font-size:15px}
 body:not(.mobile-admin-mode) #loanCommonDetails{margin:14px 0;padding:10px}
 body:not(.mobile-admin-mode) #loanActions{margin-top:14px}
 body:not(.mobile-admin-mode) #loanActions .primary{width:100%;font-size:18px}
}
