:root{--bg:#f4f7fb;--card:#fff;--ink:#0f172a;--muted:#64748b;--line:#e5eaf2;--blue:#2563eb;--blue2:#1d4ed8;--cyan:#06b6d4;--green:#10b981;--orange:#f59e0b;--red:#ef4444;--navy:#071426;--purple:#7c3aed;--shadow:0 16px 40px rgba(15,23,42,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.ico{display:inline-block;vertical-align:-4px;flex:0 0 auto}.layout{display:flex;min-height:100vh}.side{width:260px;background:linear-gradient(180deg,#0b2b67 0%,#07172f 100%);color:#fff;padding:18px 12px;position:sticky;top:0;height:100vh;overflow:auto;box-shadow:12px 0 40px rgba(2,6,23,.08);z-index:30}.side-brand{display:flex;align-items:center;gap:12px;padding:8px 10px 20px;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:10px}.side-logo{width:48px;height:48px;border-radius:16px;background:linear-gradient(145deg,#fff,#dbeafe);color:#1d4ed8;display:grid;place-items:center;box-shadow:0 10px 25px rgba(0,0,0,.14)}.side-brand b{display:block;font-size:15px;line-height:1.15}.side-brand small{display:block;color:#a9c4e9;margin-top:4px}.side-section{font-size:9px;font-weight:900;color:#6fb7ff;letter-spacing:.16em;padding:17px 12px 6px}.side a{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:12px;margin:3px 0;font-size:13px;color:#eef6ff;transition:.18s}.side a:hover{background:rgba(255,255,255,.11);transform:translateX(2px)}.side-logout{margin-top:18px!important;color:#fecaca!important}.main{flex:1;min-width:0}.top{height:70px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 26px;position:sticky;top:0;z-index:20}.brand{font-weight:900;color:#0f2f66;font-size:18px}.top-user{display:flex;align-items:center;gap:10px;font-size:13px}.top-user small{display:block;color:var(--muted);margin-top:2px}.avatar{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,#dbeafe,#eff6ff);color:#1d4ed8;font-weight:900}.content{padding:24px;max-width:1720px;margin:auto}.page-intro{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}.page-intro h2{margin:0;font-size:26px;letter-spacing:-.02em}.page-intro p{margin:5px 0 0}.grid{display:grid;gap:16px}.grid.kpis{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:var(--shadow)}.card.soft{background:linear-gradient(145deg,#fff,#f8fbff)}.kpi{position:relative;overflow:hidden}.kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(var(--blue),var(--cyan))}.kpi .label{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:900}.kpi .value{font-size:29px;font-weight:950;margin-top:8px;color:#0f172a}.muted{color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:11px;padding:10px 14px;font-weight:850;cursor:pointer;background:#e9eef5;color:#334155;transition:.18s;white-space:nowrap}.btn:hover{transform:translateY(-1px);filter:brightness(.98)}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn.primary{background:linear-gradient(135deg,var(--blue),var(--blue2));color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.18)}.btn.green{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.btn.red{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.btn.orange{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff}.btn.purple{background:linear-gradient(135deg,#8b5cf6,#6d28d9);color:#fff}.btn.outline{background:#fff;border:1px solid #cbd5e1}.btn.small{padding:7px 10px;font-size:12px}.form-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.field label{display:block;font-size:11px;font-weight:900;color:#64748b;margin-bottom:6px;text-transform:uppercase;letter-spacing:.035em}.field input,.field select,.field textarea{width:100%;padding:11px 12px;border:1px solid #cbd5e1;border-radius:11px;background:#fff;outline:none;color:#0f172a}.field input:focus,.field select:focus,.field textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(37,99,235,.1)}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:11px;border-bottom:1px solid #edf0f5;font-size:13px;text-align:left}.table th{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#64748b}.pill{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:850;background:#e2e8f0;color:#475569}.pill.success{background:#d1fae5;color:#065f46}.pill.danger{background:#fee2e2;color:#991b1b}.pill.orange{background:#fef3c7;color:#92400e}.pill.blue{background:#dbeafe;color:#1d4ed8}.flash{padding:13px 15px;border-radius:12px;margin-bottom:14px;background:#e8f1ff;color:#163b84;border:1px solid #bfdbfe}.flash.danger{background:#fee2e2;color:#991b1b;border-color:#fecaca}.eyebrow{font-size:10px;letter-spacing:.15em;font-weight:950;color:#2563eb}.empty-state{padding:30px;text-align:center;color:#64748b}.empty-state .icon{width:58px;height:58px;margin:0 auto 12px;border-radius:18px;display:grid;place-items:center;background:#eff6ff;color:#2563eb}.stat-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf1f7}.stat-row:last-child{border-bottom:0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.section-head h3{margin:0}.live-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#10b981;box-shadow:0 0 0 5px rgba(16,185,129,.12);margin-right:8px}
/* Login */.login-page{min-height:100vh;background:radial-gradient(circle at 14% 15%,#2d6cdf 0,#102d6d 38%,#06111f 100%);display:grid;place-items:center;padding:24px}.login-shell{width:min(1000px,96vw);display:grid;grid-template-columns:1.08fr .92fr;background:#fff;border-radius:30px;overflow:hidden;box-shadow:0 35px 90px rgba(2,6,23,.35)}.login-hero{padding:58px;background:radial-gradient(circle at 18% 14%,rgba(125,211,252,.22),transparent 30%),linear-gradient(145deg,#173f97,#081c49);color:#fff;display:flex;flex-direction:column;justify-content:center}.login-mark{width:82px;height:82px;border-radius:25px;background:rgba(255,255,255,.13);display:grid;place-items:center;color:#bfdbfe;border:1px solid rgba(255,255,255,.15)}.login-hero h1{font-size:40px;margin:25px 0 10px;letter-spacing:-.03em}.login-hero p{font-size:18px;color:#dbeafe;max-width:460px}.login-benefits{display:flex;flex-direction:column;gap:10px;margin-top:26px;color:#e0e7ff}.login-box.modern{padding:54px}.login-box h2{font-size:31px;margin:8px 0}.login-btn{width:100%;margin-top:18px;padding:13px}.remember-row{display:flex;align-items:center;gap:9px;margin-top:14px;font-size:13px;color:#475569;cursor:pointer}.remember-row input{width:18px;height:18px}.login-note{text-align:center;color:#94a3b8;font-size:11px;margin:15px 0 0}
/* Totem */.kiosk{min-height:100vh;background:radial-gradient(circle at 90% 0,#dbeafe 0,transparent 30%),linear-gradient(145deg,#eef6ff,#f8fafc);padding:22px;display:flex;align-items:center;justify-content:center}.kiosk-box{width:min(1120px,97vw);background:#fff;border-radius:32px;padding:38px;box-shadow:0 28px 90px rgba(30,64,175,.14);border:1px solid #dbeafe}.kiosk-brand{text-align:center;margin-bottom:25px}.kiosk-logo{width:78px;height:78px;margin:auto;border-radius:24px;background:linear-gradient(145deg,#dbeafe,#eff6ff);display:grid;place-items:center;color:#1d4ed8}.kiosk-title{text-align:center;font-size:40px;margin:12px 0 6px;color:#0f172a;letter-spacing:-.03em}.kiosk-sub{text-align:center;color:#64748b;font-size:17px}.step-indicator{display:flex;justify-content:center;gap:8px;margin:20px 0 24px}.step-dot{width:44px;height:6px;border-radius:99px;background:#e2e8f0}.step-dot.on{background:linear-gradient(90deg,#2563eb,#06b6d4)}.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.choice{border:2px solid #dbeafe;border-radius:24px;padding:30px;min-height:205px;background:linear-gradient(180deg,#fff,#f8fbff);font-size:21px;font-weight:900;cursor:pointer;transition:.18s;color:#0f172a;text-align:left;position:relative;overflow:hidden}.choice:after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;right:-42px;bottom:-45px;background:#eff6ff}.choice:hover{border-color:#60a5fa;transform:translateY(-3px);box-shadow:0 16px 35px rgba(37,99,235,.12)}.choice-icon{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;background:#eff6ff;color:#2563eb;margin-bottom:16px}.choice.pref{background:linear-gradient(145deg,#e9fbff,#f7fbff);border-color:#7dd3fc}.choice.pref .choice-icon{background:#cffafe;color:#0369a1}.choice.conv .choice-icon{background:#ede9fe;color:#6d28d9}.ticket-result{padding:25px}.ticket-result .ticket-code{font-size:96px;font-weight:950;color:#1d4ed8;letter-spacing:.04em}.ticket-result .success-icon{width:72px;height:72px;margin:0 auto 12px;border-radius:24px;background:#d1fae5;color:#059669;display:grid;place-items:center}
/* Guiche */.counter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}.counter-select-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px;display:grid;grid-template-columns:70px 1fr auto;gap:14px;align-items:center;box-shadow:var(--shadow)}.counter-select-card.occupied{opacity:.63}.counter-number{width:66px;height:66px;border-radius:19px;background:linear-gradient(145deg,#dbeafe,#eff6ff);color:#1d4ed8;display:grid;place-items:center;font-size:29px;font-weight:950}.counter-info h3{margin:0 0 4px}.counter-info p{margin:0 0 8px;color:var(--muted);font-size:13px}.service-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:850;margin:3px}.preferential-banner{display:flex;align-items:center;justify-content:center;gap:12px;background:linear-gradient(135deg,#06b6d4,#2563eb);color:#fff;border-radius:17px;padding:12px 16px;font-weight:950;margin:12px auto;max-width:460px}.preferential-symbol{width:46px;height:46px;border-radius:50%;background:#fff;color:#1d4ed8;display:grid;place-items:center}.atendimento-ticket{font-size:88px;font-weight:950;color:#1d4ed8;line-height:1;margin:18px 0;letter-spacing:.03em}
/* Dashboard */.dash-two{display:grid;grid-template-columns:1.3fr .7fr;gap:16px}.dash-three{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.chart-bars{display:flex;align-items:end;gap:6px;height:185px;padding-top:16px}.bar-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:end;height:100%;min-width:16px}.bar{width:72%;max-width:28px;background:linear-gradient(180deg,#38bdf8,#2563eb);border-radius:8px 8px 3px 3px;min-height:2px}.bar-label{font-size:9px;color:#64748b;margin-top:7px}.bar-value{font-size:10px;font-weight:900;color:#334155;margin-bottom:3px}.queue-line{display:grid;grid-template-columns:minmax(130px,1fr) 105px 80px;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f7}.queue-line:last-child{border-bottom:0}.mini-progress{height:8px;border-radius:99px;background:#e2e8f0;overflow:hidden}.mini-progress span{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#06b6d4);border-radius:inherit}.health-card{display:flex;gap:12px;align-items:center}.health-icon{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:#eff6ff;color:#2563eb}.connection-badge{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#047857;font-weight:850}.connection-badge.bad{color:#b91c1c}.dashboard-error{display:none;padding:12px 14px;border-radius:12px;background:#fee2e2;color:#991b1b;margin-bottom:14px}
/* Upload */.upload-zone{border:2px dashed #bfdbfe;border-radius:18px;padding:20px;background:#f8fbff}.progress{height:10px;background:#e2e8f0;border-radius:99px;overflow:hidden}.progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#2563eb,#06b6d4);transition:.2s}.media-thumb{width:88px;height:54px;border-radius:10px;object-fit:cover;background:#0f172a}.media-row{display:flex;align-items:center;gap:10px}.codebox{display:block;background:#0b1220;color:#dbeafe;border-radius:12px;padding:12px;overflow:auto;font-size:12px}
@media(max-width:1150px){.form-row{grid-template-columns:repeat(2,1fr)}.dash-two,.dash-three{grid-template-columns:1fr}.login-shell{grid-template-columns:1fr}.login-hero{display:none}}@media(max-width:800px){.side{display:none}.form-row,.choice-grid{grid-template-columns:1fr}.content{padding:14px}.kiosk-title{font-size:30px}.kiosk-box{padding:20px}.top{padding:0 14px}.counter-select-card{grid-template-columns:58px 1fr}.counter-select-card form{grid-column:1/-1}.login-box.modern{padding:30px}.ticket-result .ticket-code{font-size:66px}.atendimento-ticket{font-size:68px}}
.side-brand-img{max-width:40px;max-height:40px;object-fit:contain}.kiosk-brand-img{max-width:62px;max-height:62px;object-fit:contain}.login-brand-img{max-width:62px;max-height:62px;object-fit:contain}
/* v1.4.2 - Gestão visual de guichês e transferências */
.counter-page-head{align-items:flex-end}.counter-help-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.counter-help{background:linear-gradient(145deg,#fff,#f8fbff);border:1px solid #dfe8f5;border-radius:17px;padding:14px 16px;box-shadow:0 8px 22px rgba(15,23,42,.05)}.counter-help b{display:block;color:#0f2f66;font-size:13px;margin-bottom:4px}.counter-help span{font-size:12px;color:#64748b;line-height:1.45}.counter-grid-v142{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:18px}.counter-card-v142{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:18px;box-shadow:0 18px 45px rgba(15,23,42,.07);position:relative;overflow:hidden;transition:.2s}.counter-card-v142:hover{transform:translateY(-2px);box-shadow:0 22px 52px rgba(15,23,42,.1)}.counter-card-v142.has-ticket{border-color:#bfdbfe}.counter-card-v142.has-ticket:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(#2563eb,#06b6d4)}.counter-card-v142.is-mine{box-shadow:0 0 0 3px rgba(37,99,235,.08),0 18px 45px rgba(15,23,42,.08)}.counter-card-top{display:flex;align-items:center;gap:11px}.counter-badge-number{width:52px;height:52px;border-radius:17px;background:linear-gradient(145deg,#dbeafe,#eff6ff);display:grid;place-items:center;font-size:24px;font-weight:950;color:#1d4ed8}.counter-title-v142{display:flex;flex-direction:column;min-width:0;flex:1}.counter-title-v142 span{font-size:10px;font-weight:950;letter-spacing:.1em;color:#64748b}.counter-title-v142 strong{font-size:16px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.counter-live-pill,.counter-free-pill{display:inline-flex;align-items:center;gap:6px;font-size:9px;font-weight:950;padding:6px 8px;border-radius:999px;white-space:nowrap}.counter-live-pill{background:#ecfdf5;color:#047857}.counter-live-pill i{width:7px;height:7px;border-radius:50%;background:#10b981;box-shadow:0 0 0 4px rgba(16,185,129,.12)}.counter-free-pill{background:#f1f5f9;color:#475569}.counter-ticket-v142{margin:16px 0 12px;padding:16px;border-radius:18px;background:linear-gradient(135deg,#f0f7ff,#fff);border:1px solid #dbeafe;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px}.counter-ticket-code{font-size:34px;line-height:1;font-weight:950;color:#1d4ed8;letter-spacing:.03em}.counter-ticket-meta{display:flex;flex-direction:column;gap:3px;min-width:0}.counter-ticket-meta b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.counter-ticket-meta span{font-size:10px;color:#64748b}.counter-priority{font-size:10px;font-weight:900;padding:7px 9px;border-radius:10px}.counter-priority.pref{background:#cffafe;color:#0e7490}.counter-priority.conv{background:#ede9fe;color:#6d28d9}.counter-attendant-v142{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#f8fafc;border-radius:12px;margin-bottom:13px}.counter-attendant-v142 span{font-size:10px;color:#64748b;font-weight:800}.counter-attendant-v142 b{font-size:12px;color:#0f172a;text-align:right}.counter-empty-v142{padding:28px 12px;text-align:center;margin:14px 0;border-radius:16px;background:#f8fafc;border:1px dashed #cbd5e1}.counter-empty-v142 b{display:block;color:#334155}.counter-empty-v142 span{font-size:12px;color:#94a3b8}.counter-actions-v142{display:grid;gap:9px}.counter-action-form{margin:0}.btn.wide{width:100%}.counter-pull-form{padding:11px;border-radius:14px;background:#f8fbff;border:1px solid #dbeafe}.counter-pull-form label{display:block;font-size:10px;font-weight:950;color:#64748b;text-transform:uppercase;letter-spacing:.05em;margin-bottom:7px}.counter-pull-row{display:grid;grid-template-columns:1fr auto;gap:8px}.counter-pull-row select{min-width:0;width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:9px;background:#fff}.counter-warning{padding:10px 12px;border-radius:12px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;font-size:11px;line-height:1.4}
@media(max-width:1050px){.counter-help-grid{grid-template-columns:1fr}.counter-grid-v142{grid-template-columns:1fr 1fr}}@media(max-width:760px){.counter-grid-v142{grid-template-columns:1fr}.counter-ticket-v142{grid-template-columns:1fr}.counter-priority{justify-self:start}.counter-pull-row{grid-template-columns:1fr}.counter-page-head{align-items:flex-start}}

/* v1.4.3 - acabamento visual da central de guichês */
.counter-page-head{display:flex;justify-content:space-between;gap:18px;margin-bottom:18px;padding:4px 2px}.counter-page-head h2{margin:4px 0 6px;font-size:28px;line-height:1.1;color:#0f2f66}.counter-page-head .muted{margin:0;max-width:760px}.eyebrow{display:inline-block;font-size:10px;font-weight:950;letter-spacing:.13em;color:#2563eb;margin-bottom:2px}.counter-help-grid{margin-bottom:22px}.counter-help{min-height:86px;display:flex;flex-direction:column;justify-content:center}.counter-grid-v142{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}.counter-card-v142{display:flex;flex-direction:column;min-height:410px;padding:20px}.counter-card-top{min-height:54px}.counter-ticket-v142{grid-template-columns:96px 1fr auto}.counter-ticket-code{font-size:30px;text-align:center}.counter-ticket-meta b{font-size:13px;line-height:1.3}.counter-ticket-meta span{font-size:11px}.counter-actions-v142{margin-top:auto}.counter-action-form .btn,.counter-pull-form .btn{min-height:42px;font-weight:900;border-radius:12px}.counter-action-form .btn.orange{background:linear-gradient(135deg,#f59e0b,#ea580c);border:0;color:#fff}.counter-action-form .btn.orange:hover{filter:brightness(.97);transform:translateY(-1px)}.counter-action-form .btn.primary,.counter-pull-form .btn.primary{background:linear-gradient(135deg,#2563eb,#1d4ed8);border:0;color:#fff}.counter-action-form .btn.primary:hover,.counter-pull-form .btn.primary:hover{filter:brightness(.97);transform:translateY(-1px)}.counter-card-v142.is-mine{border-color:#60a5fa;background:linear-gradient(180deg,#fff,#f8fbff)}.counter-card-v142.is-mine:after{content:"MEU POSTO";position:absolute;right:18px;top:0;background:#2563eb;color:#fff;font-size:9px;font-weight:950;letter-spacing:.08em;padding:6px 10px;border-radius:0 0 10px 10px}.counter-attendant-v142{min-height:46px}.counter-pull-form{margin-top:2px}.counter-warning{font-weight:700}.counter-live-pill{font-size:9px}.counter-free-pill{font-size:9px}
@media(max-width:1350px){.counter-grid-v142{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:900px){.counter-grid-v142{grid-template-columns:1fr}.counter-card-v142{min-height:auto}.counter-page-head{align-items:flex-start;flex-direction:column}.counter-ticket-v142{grid-template-columns:86px 1fr auto}}

/* v2.1.0 - responsividade mobile, drawer e ajustes do totem */
.mobile-menu-btn,.mobile-side-close,.mobile-backdrop{display:none}
.top-title-wrap{min-width:0}
@media(max-width:800px){
  body.nav-open{overflow:hidden}
  .side{display:block!important;position:fixed;left:0;top:0;bottom:0;height:100dvh;width:min(86vw,320px);transform:translateX(-104%);transition:transform .24s ease;z-index:100;padding-top:52px;box-shadow:18px 0 55px rgba(2,6,23,.28)}
  body.nav-open .side{transform:translateX(0)}
  .mobile-backdrop{display:block;position:fixed;inset:0;background:rgba(2,6,23,.55);backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:.2s;z-index:90}
  body.nav-open .mobile-backdrop{opacity:1;pointer-events:auto}
  .mobile-menu-btn{display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border:1px solid #dbe3ee;border-radius:12px;background:#fff;color:#0f2f66;font-size:22px;font-weight:900;cursor:pointer}
  .mobile-side-close{display:grid;place-items:center;position:absolute;right:12px;top:10px;width:34px;height:34px;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;font-size:24px;cursor:pointer}
  .top{height:auto;min-height:72px;padding:10px 12px;gap:10px;align-items:center}
  .top-title-wrap{flex:1}
  .brand{font-size:17px;line-height:1.15}
  .license-mini{line-height:1.3;margin-top:3px}
  .top-user{gap:7px}.avatar{width:36px;height:36px;border-radius:12px}.top-user-text{display:none}
  .content{padding:14px 12px 24px}
  .page-intro{align-items:flex-start;flex-direction:column}
  .support-top{align-items:flex-start;flex-direction:column}
  .support-top .btn{width:100%}
  .grid[style*="grid-template-columns:minmax"]{grid-template-columns:1fr!important}
  .card{border-radius:16px;padding:15px}
  .kpis{grid-template-columns:1fr 1fr!important}
}
@media(max-width:520px){.kpis{grid-template-columns:1fr!important}}

/* Totem fullscreen / tablet */
.kiosk-toolbar{position:fixed;right:14px;top:14px;z-index:60;display:flex;gap:8px}
.kiosk-fullscreen{border:1px solid #bfdbfe;background:rgba(255,255,255,.94);color:#1d4ed8;border-radius:12px;padding:10px 13px;font-weight:900;box-shadow:0 8px 24px rgba(30,64,175,.12);cursor:pointer}
.kiosk:fullscreen,.kiosk-fullscreen-active{background:radial-gradient(circle at 90% 0,#dbeafe 0,transparent 30%),linear-gradient(145deg,#eef6ff,#f8fafc)}
@media(max-width:900px){
  .kiosk{padding:10px;align-items:stretch}
  .kiosk-box{width:100%;min-height:calc(100dvh - 20px);border-radius:22px;padding:22px 16px;display:flex;flex-direction:column;justify-content:center}
  .kiosk-brand{margin-bottom:14px}.kiosk-logo{width:62px;height:62px;border-radius:18px}.kiosk-title{font-size:30px}.kiosk-sub{font-size:14px}
  .choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .choice{min-height:160px;padding:20px;font-size:18px;border-radius:18px}.choice-icon{width:52px;height:52px;border-radius:16px}
  .kiosk-toolbar{right:10px;top:10px}.kiosk-fullscreen{padding:9px 11px;font-size:12px}
}
@media(max-width:620px){
  .choice-grid{grid-template-columns:1fr}.choice{min-height:120px}.ticket-result .ticket-code{font-size:60px}
}

/* Guichê: filas automáticas e auxiliares */
.queue-mode{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:900;margin-left:6px}
.queue-mode.auto{background:#dbeafe;color:#1d4ed8}.queue-mode.manual{background:#fef3c7;color:#92400e}
.aux-queues{display:grid;gap:9px}.aux-queue-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:11px;border:1px solid #e5eaf2;border-radius:13px;background:#f8fbff}
.aux-queue-row .name{min-width:0}.aux-queue-row .name b{display:block;font-size:13px}.aux-queue-row .name span{font-size:10px;color:#64748b}.aux-queue-row .count{min-width:36px;text-align:center;font-size:18px;font-weight:950;color:#1d4ed8}
@media(max-width:620px){.aux-queue-row{grid-template-columns:1fr auto}.aux-queue-row form{grid-column:1/-1}.aux-queue-row .btn{width:100%}}

/* v2.1.1 tablet */
.kiosk{min-height:100dvh;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
@media(display-mode:standalone){.kiosk-toolbar{display:none!important}}
