:root{--navy:#0b2045;--blue:#2563eb;--bg:#f4f6fa;--line:#e2e8f0;--ink:#0f172a;--muted:#64748b;--green:#16a34a;--amber:#f59e0b;--red:#dc2626;--sidebar:248px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,select{font:inherit}button,a,input,select{outline-offset:3px}a{color:var(--blue);text-decoration:none}.ico{flex:none;vertical-align:middle}aside{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:var(--navy);color:#b9c8e0;padding:24px 15px 16px;display:flex;flex-direction:column;gap:4px;z-index:30;overflow:auto;transition:transform .2s}.brand{display:flex;align-items:center;gap:11px;padding:4px 6px 29px;color:white;font-size:14px;font-weight:750;letter-spacing:.3px;white-space:nowrap}.brandmark{display:grid;place-items:center;width:43px;height:43px;flex:none;background:var(--blue);color:white;border-radius:12px}.brand small{display:block;font-size:9px;font-weight:500;letter-spacing:1px;color:#9eb1d0;margin-top:3px}.nav-label{padding:16px 12px 6px;color:#8298bb;font-size:10px;letter-spacing:1.3px;font-weight:700}aside a,.logout{display:flex;align-items:center;gap:12px;color:inherit;padding:11px 12px;border-radius:7px;font-weight:500;transition:background .15s,color .15s;min-height:44px}aside a:hover,.logout:hover{background:#ffffff10;color:white}aside a.active{background:var(--blue);color:white;box-shadow:0 3px 10px #0002}footer{margin-top:auto;padding:16px 2px 0;border-top:1px solid #ffffff18}.side-profile,.top-profile{display:flex;align-items:center;gap:10px}.side-profile{padding:5px 8px 12px}.avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#e5edff;color:#2456bc;font-weight:700;flex:none}.side-profile b,.top-profile b{display:block;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.side-profile small,.top-profile small{display:block;font-size:11px;color:#91a6c7}.top-profile small{color:var(--muted)}.logout{background:transparent;width:100%;border:0;text-align:left}.workspace{margin-left:var(--sidebar);min-height:100vh;transition:margin .2s}.topbar{height:70px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:16px;padding:0 28px;position:sticky;top:0;z-index:20}.menu-toggle{background:transparent;color:var(--muted);padding:8px;display:grid;place-items:center}.breadcrumb{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.breadcrumb b{color:var(--ink);font-weight:600}.top-profile{margin-left:auto}.page-content{padding:30px 28px;max-width:1700px;margin:auto}.collapsed aside{transform:translateX(-100%)}.collapsed .workspace{margin-left:0}.nav-overlay{display:none}h1{font-size:28px;line-height:1.25;letter-spacing:-.7px;margin:5px 0 7px;font-weight:750}h2{font-size:17px;letter-spacing:-.25px;margin:0 0 12px}p{color:var(--muted);margin:6px 0}.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:750;color:var(--blue)}.heading,.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:23px}.panel-heading h2{margin:0}.panel-heading p{font-size:13px}.metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:24px}.metrics section,.panel{background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 5px #0f172a04}.metrics section{padding:16px;min-width:0}.metric-top{display:flex;align-items:center;gap:9px;min-height:40px}.metric-top small{color:var(--muted);font-size:12px;font-weight:600;line-height:1.35}.metric-icon{display:grid;place-items:center;border-radius:9px;width:36px;height:36px;flex:none}.blue{background:#eaf1ff;color:#2563eb}.amber{background:#fff4db;color:#b77908}.green{background:#e5f7eb;color:#16a34a}.slate{background:#e9eff6;color:#526781}.purple{background:#f1eafd;color:#8055bb}.metric{display:block;font-size:30px;letter-spacing:-1px;font-weight:750;margin:9px 0 1px;font-variant-numeric:tabular-nums}.metric-caption{font-size:11px;color:var(--muted)}.panel{padding:22px;margin-bottom:18px;scroll-margin-top:85px}.page-content>h1{margin-bottom:24px}.filters,.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.filters{margin-bottom:18px;align-items:flex-end}.filters>input{flex:1;min-width:180px}.filters>a{padding:10px 5px;font-weight:600;font-size:13px}input,select{border:1px solid #d5deea;border-radius:7px;padding:10px 12px;background:white;color:var(--ink);min-width:0;min-height:42px;width:auto}input:focus,select:focus{outline:2px solid #a6c1ff;border-color:var(--blue)}input::placeholder{color:#8492a6}label{display:grid;gap:6px;color:#475569;font-size:12px;font-weight:600}button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--blue);color:white;border:1px solid transparent;border-radius:7px;padding:10px 14px;font-weight:650;font-size:13px;cursor:pointer;text-decoration:none;white-space:nowrap;transition:background .15s;min-height:40px}button:hover,.btn:hover{filter:brightness(.95)}.secondary{background:white;border-color:#dbe3ee;color:#375276}.danger{background:#fff1f2;border-color:#fecdd3;color:#b91c1c}.small,.danger{padding:6px 9px;font-size:12px;min-height:32px}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left}th{color:var(--muted);background:#f8fafc;font-size:10px;text-transform:uppercase;letter-spacing:.45px;white-space:nowrap}td,th{padding:14px 11px;border-bottom:1px solid #edf1f5;vertical-align:middle}td{font-size:13px}tbody tr:hover{background:#f8faff}tbody tr:last-child td{border-bottom:0}.ticket{font-size:18px;font-weight:750;color:var(--blue);font-variant-numeric:tabular-nums}.sub{display:block;color:var(--muted);font-size:10px;margin-top:4px}.status{display:inline-flex;align-items:center;gap:6px;border-radius:20px;padding:5px 9px;font-size:11px;font-weight:650;white-space:nowrap}.status:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.waiting{background:#fff4db;color:#9a650a}.inside{background:#e5f7eb;color:#15803d}.done{background:#eef2f7;color:#52647b}.empty{text-align:center;padding:45px;color:var(--muted)}.notice{padding:12px 16px;background:#eaf1ff;color:#234c94;border:1px solid #cbdcff;border-radius:8px;margin-bottom:16px}dialog{border:1px solid var(--line);border-radius:15px;width:min(480px,94vw);padding:26px;box-shadow:0 20px 80px #0003;color:var(--ink);max-height:90dvh;overflow:auto}dialog::backdrop{background:#0b204599}dialog label,.loginbox label{margin-bottom:15px}dialog input,.loginbox input:not([type=checkbox]){width:100%}dialog .actions{justify-content:flex-end;margin-top:24px}.login{min-height:100vh;display:grid;place-items:center;padding:24px}.login .page-content{padding:0;width:min(900px,100%)}.login-shell{display:grid;grid-template-columns:1fr 1fr;border-radius:18px;overflow:hidden;background:white;border:1px solid var(--line);box-shadow:0 18px 70px #0b204514}.login-identity{background:var(--navy);color:white;padding:48px;display:flex;flex-direction:column;justify-content:center;min-height:460px}.login-identity .brandmark{width:58px;height:58px;margin-bottom:32px}.login-kicker{color:#a9bee1;font-size:11px;letter-spacing:1.5px;font-weight:700}.login-identity h2{font-size:34px;line-height:1.15;margin:12px 0}.login-identity p{color:#b9c8e0}.login-security{margin-top:45px;font-size:12px;color:#b9c8e0;display:flex;gap:8px;align-items:center}.loginbox{padding:45px;display:flex;flex-direction:column;justify-content:center}.loginbox form{margin-top:24px}.full{width:100%}.check{display:flex;align-items:center;gap:8px}.check input{accent-color:var(--blue);min-height:0;width:16px;height:16px}.permissions{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:15px 0 20px}#sync{color:var(--green);font-size:11px;white-space:nowrap}#sync.offline{color:#b45309}.records-table td:last-child{min-width:130px}.records-table .actions{gap:5px}.panel[id],#movimentacoes{scroll-margin-top:85px}.panel>form+.actions{margin-top:12px}@media(max-width:1250px){.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){aside{transform:translateX(-100%)}.workspace,.collapsed .workspace{margin-left:0}.collapsed aside{transform:translateX(0)}.collapsed .nav-overlay{display:block;position:fixed;inset:0;background:#0b204577;z-index:29;border:0;border-radius:0;padding:0}.topbar{height:62px;padding:0 16px}.page-content{padding:22px 16px}.heading{margin-bottom:18px}.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){h1{font-size:24px}.heading{align-items:flex-start;flex-direction:column;gap:12px}.heading>button{width:100%;min-height:45px}.breadcrumb{font-size:12px}.breadcrumb> .ico,.breadcrumb{gap:4px}.top-profile>div{display:none}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}.metrics section{padding:12px}.metrics section:last-child{grid-column:1/-1}.metric-top{gap:7px}.metric-top small{font-size:11px}.metric{font-size:27px}.panel{padding:14px}.panel-heading{align-items:flex-start;gap:8px;margin-bottom:14px}.panel-heading p{font-size:12px}.panel-heading h2{font-size:16px}.filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}.filters>input,.filters>select{grid-column:1/-1;width:100%;min-width:0}.filters label{min-width:0}.filters label input,.filters label select{width:100%;min-width:0}.filters>a{text-align:center}.records-table,.records-table tbody,.records-table tr,.records-table td{display:block;width:100%}.records-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.records-table tr{border:1px solid var(--line);border-radius:10px;margin:0 0 10px;padding:10px 12px;background:white}.records-table td{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:7px 0;border:0;text-align:right;overflow-wrap:anywhere}.records-table td:before{content:attr(data-label);color:var(--muted);font-size:11px;font-weight:600;text-align:left;flex:none}.records-table td:nth-child(2){display:block;text-align:left;border-bottom:1px solid var(--line);padding-bottom:10px}.records-table td:nth-child(2):before{display:none}.records-table td:nth-child(2) b{font-size:15px}.records-table td:last-child{display:block;text-align:left;border-top:1px solid var(--line);padding-top:10px;margin-top:5px}.records-table td:last-child:before{display:none}.records-table .actions{gap:7px}.records-table .actions button{min-height:40px}.records-table td.empty{display:block;text-align:center;padding:20px 0}.records-table td.empty:before{display:none}.records-table td .sub{max-width:100%}.login{padding:16px;align-items:center}.login-shell{grid-template-columns:1fr}.login-identity{min-height:0;padding:24px}.login-identity .brandmark{width:42px;height:42px;margin-bottom:12px}.login-identity h2{font-size:24px;margin:7px 0}.login-security{display:none}.loginbox{padding:25px}.loginbox form{margin-top:18px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.nav-settings{display:flex;justify-content:flex-start;align-items:center;gap:12px;color:inherit;background:transparent;padding:11px 12px;border:0;border-radius:7px;font-weight:500;font-size:14px;min-height:44px}.nav-settings:hover{background:#ffffff10;color:white}.compact-view .records-table td,.compact-view .records-table th{padding-top:7px;padding-bottom:7px}

/* V1.4: visual treatment for individual ticket allocation */
.range-heading{margin-top:22px;padding-top:18px;border-top:1px solid #e2e8f0}.range-heading h3{margin:0 0 5px;font-size:15px;color:#0f172a}.range-heading p{margin:0 0 16px;font-size:13px}dialog input[readonly]{background:#f1f5f9;color:#475569;cursor:default}dialog form>small{display:block;background:#eff6ff;border:1px solid #dbeafe;border-radius:8px;padding:10px 12px;color:#1e40af;line-height:1.5}.login-shell .loginbox{min-width:0}.loginbox label{min-width:0}.loginbox input{max-width:100%}
/* V2.0 — corporate interface */
:root{--sidebar:240px}body{background:#f4f6fa}aside{background:#0b2045;color:#f0f5ff;padding:24px 12px 14px}.brand{font-size:16px;letter-spacing:-.3px;line-height:1.25;white-space:normal;padding:0 10px 30px}.brandmark{background:transparent;color:white}.nav-label{font-size:9px}aside a.active{background:#23599e}.topbar{height:76px;padding:0 22px;gap:18px}.top-title{display:flex;align-items:center;gap:12px;color:var(--navy);min-width:0}.top-title b{display:block;font-size:20px;letter-spacing:-.6px;line-height:1.2}.top-title small{display:block;color:var(--muted);font-size:11px}.global-search{display:flex;align-items:center;border:1px solid #d8e0ed;border-radius:9px;background:#f4f6fa;padding:0 10px;flex:1;max-width:420px;margin-left:auto;color:var(--navy)}.global-search input{background:transparent;border:0;width:100%;font-size:12px}.notification-link{color:var(--navy)}.account{position:relative}.account summary{cursor:pointer;list-style:none}.account summary::-webkit-details-marker{display:none}.account-menu{position:absolute;right:0;top:46px;min-width:170px;display:grid;gap:12px;background:white;padding:14px;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #0b204520}.account-menu button{width:100%}.page-content{padding:22px;max-width:1920px}.operational-heading{margin-bottom:16px}.operational-heading h1{font-size:24px}.metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.metrics .metric-card{display:flex;align-items:center;gap:12px;position:relative;background:white;border-left:3px solid var(--accent);min-height:104px;padding:14px 12px;box-shadow:0 3px 8px #0b204509}.metric-card.amber{--accent:#f59e0b}.metric-card.green{--accent:#16a34a}.metric-card.cyan{--accent:#0891b2}.metric-card.blue{--accent:#2563eb}.metric-card small{color:var(--ink);font-weight:650;font-size:12px}.metric-card .metric{margin:2px 0;font-size:31px;line-height:1.1;color:var(--ink)}.metric-card .metric-icon,.role-card .metric-icon{width:48px;height:48px;border-radius:50%}.cyan{background:#e4f6fc;color:#075985}.red{background:#fee2e2;color:#dc2626}.metric-card .metric-caption{margin-left:auto;align-self:flex-end;background:#f0f4fa;border-radius:12px;padding:3px 7px;font-size:10px;white-space:nowrap}.dashboard-grid{display:grid;gap:16px;min-width:0}.dashboard-grid.with-side{grid-template-columns:minmax(0,1fr) minmax(245px,28%)}.main-column,.right-column{min-width:0}.panel{padding:17px;border-radius:12px;box-shadow:0 4px 10px #0b204507}.panel h2{display:flex;align-items:center;gap:9px;color:var(--navy);font-size:17px}.registration h2,.right-column h2{border-bottom:1px solid var(--line);padding-bottom:13px}.registration-form{display:grid;grid-template-columns:1.2fr 1fr 1.1fr .9fr auto;gap:9px;align-items:end}.registration-form label{color:var(--ink);min-width:0}.registration-form input{width:100%;font-size:12px}.registration-form small{grid-column:1/-1;color:var(--muted);font-size:11px}.registration-form small:empty{display:none}.registration-form input[readonly]{background:#f3f6fa}button,.btn{background:#0b2860}.secondary{background:white;color:var(--navy)}.danger{background:#fff1f2;color:#b91c1c}.records-panel .panel-heading{border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:13px}.records-panel .filters{gap:7px}.records-panel .filters input,.records-panel .filters select{min-height:35px;padding:6px 8px;font-size:11px}.records-panel .filters>input{min-width:140px}.records-table th{background:#eef2f7;color:#172741;text-transform:none;font-size:11px;letter-spacing:0}.records-table td,.records-table th{padding:10px 7px}.records-table td{font-size:11px}.records-table .ticket{font-size:16px}.records-table .status{font-size:10px}.done{background:#e6efff;color:#174baa}.icon-action,.records-table .small{padding:5px;min-width:30px;min-height:30px}.action-text{display:none}.records-table .actions{gap:4px;min-width:85px}.pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;color:var(--muted);font-size:11px}.pages{display:flex;align-items:center;gap:5px}.pages button,.pages select{min-height:32px;padding:4px 8px}.pages button:disabled{opacity:.4;cursor:default}.movement,.role-card{display:flex;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid #edf1f5}.movement .metric-icon{border-radius:50%;width:35px;height:35px}.movement b,.role-card b{display:block;font-size:12px}.movement small,.role-card small{display:block;color:var(--muted);font-size:10px}.movement time{margin-left:auto;font-size:10px;color:var(--muted);max-width:80px;text-align:right}.side-link{display:block;text-align:center;background:#eff4fc;padding:9px;border-radius:6px;color:#0b2860;font-size:11px;font-weight:650;margin-top:12px}.role-card{margin-bottom:8px}.right-column .full{margin-top:12px}.bottom-nav{display:none}.permissions .check input{appearance:none;width:35px;height:20px;min-height:20px;border:0;border-radius:12px;background:#cbd5e1;position:relative;cursor:pointer;padding:0}.permissions .check input:checked{background:#16a34a}.permissions .check input:before{content:'';position:absolute;width:14px;height:14px;top:3px;left:3px;background:white;border-radius:50%;transition:transform .15s}.permissions .check input:checked:before{transform:translateX(15px)}.toast{position:fixed;right:20px;top:86px;z-index:90;max-width:360px;box-shadow:0 5px 20px #0b204529}.login-identity{background:#0b2045!important}.loginbox button{background:#0b2860}
@media(max-width:1500px) and (min-width:901px){.dashboard-grid.with-side{grid-template-columns:minmax(0,1fr) 265px}.registration-form{grid-template-columns:repeat(2,minmax(0,1fr))}.registration-form button{grid-column:1/-1}.top-title b{font-size:17px}.metric-card .metric-caption{display:none}}@media(max-width:1150px){.dashboard-grid.with-side{grid-template-columns:minmax(0,1fr)}.right-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.global-search{display:none}}@media(max-width:900px){.topbar{background:#0b2045;color:white;height:64px;padding:0 14px;gap:10px}.top-title{color:white;flex:1}.top-title b{font-size:13px;letter-spacing:0}.top-title small,.top-profile div,.notification-link{display:none}.top-title .ico{width:28px}.menu-toggle{color:white}.account .avatar{width:32px;height:32px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:25;background:white;border-top:1px solid var(--line);padding:6px 8px calc(6px + env(safe-area-inset-bottom));gap:3px;justify-content:space-around}.bottom-nav a{display:flex;flex:1;max-width:125px;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 3px;color:#0b2045;border-radius:9px;font-size:10px;text-align:center;line-height:1.15}.bottom-nav a.active{background:#e0eaff;color:#123d90;font-weight:700}.workspace .page-content{padding:16px 12px 90px}.metrics{grid-template-columns:1fr;gap:9px;margin-bottom:16px}.metrics .metric-card{min-height:77px;padding:11px 14px}.metric-card .metric{font-size:27px}.metric-card .metric-caption{display:block}.metric-card .metric-icon{width:43px;height:43px}.operational-heading{flex-wrap:wrap}.operational-heading h1{font-size:22px}.operational-heading>button{width:100%}.registration-form{grid-template-columns:1fr}.registration-form input{min-height:45px;font-size:14px}.registration-form button{min-height:47px}.right-column{display:block}.records-panel .panel-heading{flex-wrap:wrap}.records-panel .filters>input{min-width:0}.records-table td{font-size:12px}.records-table td:nth-child(2) b{font-size:15px}.records-table .actions button{min-width:40px}.pager{flex-wrap:wrap}.toast{top:72px;left:12px;right:12px;max-width:none}.panel{padding:14px}.login-identity .brandmark{background:#17396c}.login .page-content{padding:8px}.loginbox{padding:22px}.account-menu{color:var(--ink)}}

/* V2.1 — explicit movement labels and bulk actions */
.records-table .movement-action .action-text{display:inline}
.records-table .movement-action{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;font-size:12px;font-weight:650;white-space:nowrap;min-width:77px}
.records-table .movement-entry{background:#e7f6ec;color:#126b32;border-color:#b9e5c9}
.records-table .movement-exit{background:#eaf1ff;color:#174aab;border-color:#c5d6fa}
.records-table td:last-child{min-width:160px}
.bulk-open{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
#bulk-delete{width:min(460px,calc(100% - 28px))}
#bulk-delete p{font-size:14px;line-height:1.5}
#bulk-delete .bulk-warning{padding:10px;background:#fff5e4;color:#854d0e;border-radius:8px}
#bulk-delete .bulk-confirm{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.4}
#bulk-delete .bulk-confirm input{width:18px;height:18px;flex:none;margin:2px 0 0}
@media(max-width:900px){.records-table td:last-child{min-width:0}.records-table .movement-action{min-height:40px;min-width:90px}}

/* V2.2 — focused registration dialog */
.new-registration{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 17px;white-space:nowrap}
body:has(#new[open]){overflow:hidden}
#new.registration-modal{width:min(560px,calc(100vw - 28px));padding:0;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 24px 72px #0b204540;background:#fff;max-height:calc(100dvh - 28px)}
#new::backdrop{background:#0b20458c;backdrop-filter:blur(2px)}
.registration-modal-header{display:flex;align-items:flex-start;gap:13px;padding:22px 24px 19px;border-bottom:1px solid #e2e8f0}
.registration-symbol{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:12px;background:#eaf1ff;color:#123d90}
.registration-modal-header h2{font-size:20px;margin:0 0 5px;color:#0b2045;line-height:1.2}
.registration-modal-header p{font-size:12px;line-height:1.5;margin:0;color:#64748b}
.registration-modal-header .modal-close{margin-left:auto;display:grid;place-items:center;flex:none;width:34px;min-height:34px;padding:0;border:0;border-radius:8px;background:#f1f5f9;color:#475569}
#new .registration-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 14px;padding:22px 24px 0;align-items:start}
#new .registration-form label{margin:0;font-size:12px;font-weight:650;display:grid;gap:7px}
#new .registration-form label:first-of-type{grid-column:1/-1}
#new .registration-form label:nth-of-type(4){grid-column:1/-1}
#new .registration-form input{width:100%;min-height:44px;font-size:14px;margin:0}
#new .registration-form input:focus{outline:2px solid #2563eb55;outline-offset:1px}
#new .registration-form small{margin:0;padding:10px 12px;font-size:12px;background:#f4f6fa;border:1px solid #e2e8f0;color:#475569}
#new .registration-form small:empty{display:none}
#new .registration-footer{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;padding:17px 24px;margin:4px -24px 0;border-top:1px solid #e2e8f0;background:#f8fafc}
#new .registration-footer button{grid-column:auto;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px}
@media(max-width:600px){#new .registration-form{grid-template-columns:1fr;padding:18px 18px 0;gap:12px}#new .registration-modal-header{padding:18px}#new .registration-footer{margin:4px -18px 0;padding:14px 18px}#new .registration-footer button[type=submit]{flex:1}#new .registration-form input{font-size:16px}#new .registration-modal-header h2{font-size:18px}}


/* V2.5 — alerta visual para motorista finalizado */
.toast{display:grid;gap:4px;opacity:1;transform:translateY(0);transition:opacity .2s ease,transform .2s ease}
.exit-toast{background:#ffffff;border-left:4px solid #2563eb;padding:14px 16px;border-radius:12px;color:#0f172a;pointer-events:none}
.exit-toast strong{display:block;font-size:14px;color:#0b2045}
.exit-toast span{display:block;font-size:13px;line-height:1.45}
.exit-toast small{display:block;font-size:12px;color:#64748b}
.exit-toast:not(.show){opacity:0;transform:translateY(-8px)}

/* V2.6 — commercial login and shared live preview */
.login{min-height:100vh;min-height:100dvh;padding:clamp(16px,4vw,64px);background:linear-gradient(145deg,#f9fbff 0%,#edf2fa 55%,#e4ecf7 100%)}
.login .page-content{width:min(1340px,100%);max-width:none;padding:0;margin:auto}
.auth-shell{display:grid;grid-template-columns:minmax(0,1.34fr) minmax(0,1fr);border:1px solid #e3eaf3;border-radius:22px;overflow:hidden;background:white;box-shadow:0 24px 70px #142d5725;min-height:clamp(560px,78vh,730px)}
.auth-identity{position:relative;display:flex;align-items:center;isolation:isolate;overflow:hidden;background:#071e3a;min-width:0;padding:clamp(28px,4.2vw,68px);color:white}
.auth-identity:before,.auth-identity:after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none}
.auth-identity:before{background-image:var(--auth-photo);background-position:center right;background-size:cover;background-repeat:no-repeat}
.auth-identity:after{background:linear-gradient(90deg,rgba(5,24,48,var(--auth-dark)) 0%,rgba(6,26,52,calc(var(--auth-dark)*.8)) 45%,rgba(6,26,52,calc(var(--auth-dark)*.16)) 100%),linear-gradient(0deg,#061b35aa,transparent 60%)}
.auth-identity-inner{width:100%;max-width:570px;position:relative;align-self:center;margin-top:-7%}
.auth-identity-title{display:flex;align-items:center;gap:20px;margin-bottom:24px}
.auth-logo{width:54px;height:54px;flex:none;display:grid;place-items:center}
.auth-logo img{display:block;width:100%;height:100%;object-fit:contain}
.auth-identity .auth-logo{border-right:3px solid #3783f8;width:76px;height:65px;padding-right:18px}
.auth-identity h2{font-size:clamp(26px,3vw,43px);font-weight:750;line-height:1.14;letter-spacing:-1.1px;margin:0;overflow-wrap:anywhere;text-shadow:0 2px 12px #0005}
.auth-identity .auth-description{font-size:clamp(14px,1.3vw,18px);line-height:1.55;color:#dfebff;margin:0;max-width:510px;text-shadow:0 1px 7px #0007;overflow-wrap:anywhere}
.auth-benefits{display:grid;gap:15px;margin-top:43px;max-width:440px}
.auth-benefits>div{display:flex;align-items:center;gap:15px;font-size:16px;font-weight:500;color:#f0f5ff;line-height:1.35;text-shadow:0 1px 8px #0007;overflow-wrap:anywhere}
.auth-benefit-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:11px;background:#a7ccff25;color:#9ed2ff;flex:none;border:1px solid #ffffff13}
.auth-form-panel{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:clamp(32px,4.4vw,72px);background:#fff}
.auth-brand{display:flex;gap:14px;align-items:center;color:#0b2045;font-size:20px;font-weight:750;line-height:1.22;letter-spacing:-.4px;max-width:390px;overflow-wrap:anywhere;margin-bottom:38px}
.auth-heading h1{font-size:clamp(32px,3.5vw,46px);line-height:1.15;letter-spacing:-1.5px;margin:0 0 12px;color:#0b2045;overflow-wrap:anywhere}
.auth-heading p{font-size:15px;line-height:1.6;color:#64748b;margin:0;overflow-wrap:anywhere}
.auth-form{display:grid;gap:21px;margin-top:30px}
.auth-label{display:grid;gap:8px;font-size:14px;color:#132746;font-weight:650;margin:0}
.auth-input{display:flex;align-items:center;gap:12px;min-height:54px;border:1px solid #d4dce8;border-radius:10px;padding:0 14px;color:#61718a;background:#fbfcfe;transition:box-shadow .15s,border-color .15s;min-width:0}
.auth-input:focus-within{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb20}
.auth-input input,.auth-input input:focus{flex:1;min-width:0;min-height:52px;width:100%;border:0;outline:0;background:transparent;padding:10px 0;box-shadow:none;font-weight:400;font-size:15px}
.auth-eye{background:transparent;color:#5c6d85;display:grid;place-items:center;border:0;padding:5px;min-height:36px;min-width:32px;flex:none}
.auth-eye:hover{color:#1559df;background:#edf4ff}
.auth-eye [hidden]{display:none!important}
.auth-check{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500;color:#475569;cursor:pointer}
.auth-check input{width:18px;height:18px;min-height:0;accent-color:#1559df;margin:0}
.auth-submit{height:57px;border-radius:10px;background:#1559df;color:white;box-shadow:0 5px 13px #1559df26;font-size:16px;font-weight:700;gap:12px;transition:background .15s;justify-content:center}
.auth-submit:hover{background:#0b46bf}
.login .notice.toast{top:18px;right:18px;z-index:100;max-width:min(420px,calc(100vw - 36px));background:#fff;border:1px solid #e2e8f0;border-left:4px solid #2563eb;border-radius:10px;padding:12px 16px}
.branding-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px;align-items:start}
.branding-settings .panel-heading{border-bottom:1px solid var(--line);padding-bottom:16px}
.branding-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.branding-wide{grid-column:1/-1}.branding-fields input:not([type=checkbox]){width:100%;min-width:0}.branding-fields input[type=range]{padding:0;accent-color:#2563eb;min-height:24px}.branding-fields #darkness-value{color:#2563eb;font-weight:700}
.branding-upload{padding:12px;border:1px solid var(--line);border-radius:9px;min-width:0}.branding-upload input[type=file]{padding:8px;font-size:11px;background:#f8fafc}.branding-upload small{display:block;font-size:11px;color:var(--muted);margin:6px 0 8px}.branding-upload .check{font-size:11px;gap:6px}.branding-actions{margin-top:18px}.branding-reset{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.branding-preview{min-width:0;background:#f4f6fa;border:1px solid var(--line);border-radius:12px;padding:13px}.branding-preview-heading{display:grid;gap:3px;margin-bottom:12px}.branding-preview-heading small{color:var(--muted);font-size:11px}
.auth-preview{min-height:310px;border-radius:10px;box-shadow:0 6px 18px #142d5715;grid-template-columns:1.1fr 1fr;pointer-events:none}.auth-preview .auth-identity{padding:15px}.auth-preview .auth-identity-inner{margin:0}.auth-preview .auth-identity-title{gap:8px;margin-bottom:10px}.auth-preview .auth-logo{width:28px;height:28px}.auth-preview .auth-identity .auth-logo{width:31px;height:31px;padding-right:6px;border-right-width:2px}.auth-preview .auth-identity h2{font-size:14px;letter-spacing:-.25px}.auth-preview .auth-description{font-size:9px}.auth-preview .auth-benefits{margin-top:16px;gap:7px}.auth-preview .auth-benefits>div{font-size:9px;gap:6px}.auth-preview .auth-benefit-icon{width:23px;height:23px;border-radius:5px}.auth-preview .auth-benefit-icon .ico{width:14px;height:14px}.auth-preview .auth-form-panel{padding:15px}.auth-preview .auth-brand{font-size:10px;gap:6px;margin-bottom:17px;letter-spacing:0}.auth-preview .auth-heading h1{font-size:20px;letter-spacing:-.5px;margin-bottom:5px}.auth-preview .auth-heading p{font-size:9px}.auth-preview .auth-form{margin-top:14px;gap:10px}.auth-preview .auth-label,.auth-preview .auth-check{font-size:9px;gap:3px}.auth-preview .auth-input{min-height:27px;padding:0 5px;gap:4px;border-radius:5px}.auth-preview .auth-input input{min-height:27px;padding:3px 0;font-size:9px}.auth-preview .auth-input .ico{width:12px;height:12px}.auth-preview .auth-eye{min-height:20px;min-width:16px;padding:0}.auth-preview .auth-check input{width:11px;height:11px}.auth-preview .auth-submit{height:29px;font-size:9px;border-radius:5px;gap:4px;padding:5px}.auth-preview .auth-submit .ico{width:12px;height:12px}
@media(max-width:1240px){.branding-layout{grid-template-columns:1fr}.branding-preview{max-width:680px;width:100%}.auth-preview{min-height:340px}}
@media(max-width:760px){.login{padding:14px 12px}.auth-shell:not(.auth-preview){grid-template-columns:1fr;min-height:0;border-radius:16px}.auth-shell:not(.auth-preview) .auth-identity{min-height:175px;padding:25px;background-position:center}.auth-shell:not(.auth-preview) .auth-identity-inner{margin:0}.auth-shell:not(.auth-preview) .auth-identity-title{gap:12px;margin-bottom:10px}.auth-shell:not(.auth-preview) .auth-identity .auth-logo{width:48px;height:48px;padding-right:10px}.auth-shell:not(.auth-preview) .auth-identity h2{font-size:23px;letter-spacing:-.5px}.auth-shell:not(.auth-preview) .auth-description{font-size:13px}.auth-shell:not(.auth-preview) .auth-benefits{display:none}.auth-shell:not(.auth-preview) .auth-form-panel{padding:26px 24px 30px}.auth-shell:not(.auth-preview) .auth-brand{display:none}.auth-shell:not(.auth-preview) .auth-heading h1{font-size:32px}.auth-shell:not(.auth-preview) .auth-heading p{font-size:14px}.auth-shell:not(.auth-preview) .auth-form{margin-top:25px;gap:18px}.auth-shell:not(.auth-preview) .auth-input input{font-size:16px}.branding-fields{grid-template-columns:1fr}.branding-settings{padding:14px}.auth-preview{min-height:280px}.auth-preview .auth-form-panel,.auth-preview .auth-identity{padding:10px}}
@media(max-width:380px){.auth-preview{grid-template-columns:1fr}.auth-preview .auth-benefits{display:none}.auth-preview .auth-identity{min-height:75px}.auth-preview .auth-form-panel{padding:13px}}
/* Keep branding controls within narrow screens. */
.branding-layout>form,.branding-fields>*,.branding-settings .panel-heading>div{min-width:0;max-width:100%}
@media(max-width:1240px){.branding-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.branding-fields{grid-template-columns:minmax(0,1fr)}.branding-settings .panel-heading{display:block}.branding-upload input[type=file]{max-width:100%}.branding-reset button{max-width:100%;white-space:normal}.branding-preview{padding:9px}}
.auth-preview{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.auth-preview .auth-form,.auth-preview .auth-label,.auth-preview .auth-brand{min-width:0}.auth-preview .auth-submit{white-space:normal}.auth-preview .auth-input input{width:0;min-width:0}.branding-reset{min-width:0}.branding-settings .branding-actions button,.branding-settings .branding-reset button{max-width:100%;white-space:normal}
@media(max-width:760px){.top-title{min-width:0}.top-title>div{min-width:0}.top-title b{white-space:normal}.branding-settings .auth-preview{grid-template-columns:minmax(0,1fr)}.branding-settings .auth-preview .auth-identity{min-height:110px}.branding-settings .auth-preview .auth-benefits{display:none}.branding-settings .auth-preview .auth-form-panel{padding:16px}.branding-settings .auth-preview .auth-input input{width:100%}}
@media(max-width:760px){body:has(.branding-settings){overflow-x:clip}.workspace:has(.branding-settings){min-width:0;max-width:100vw;overflow-x:clip}}

/* V2.7 — somente cabeçalho superior e identificação do menu lateral. */
#nav>.brand{display:flex;align-items:center;gap:10px;flex:0 0 auto;min-width:0;padding:0 5px 19px;margin:0 2px 3px;border-bottom:1px solid #ffffff19;overflow:hidden}
#nav>.brand .brandmark{height:42px;width:42px;border:1px solid #ffffff1f;border-radius:10px;background:#ffffff0b;color:#fff}
#nav>.brand .brand-name{min-width:0;font-size:14px;font-weight:750;line-height:1.32;letter-spacing:-.35px;color:white}
#nav>.brand .brand-name span{display:block;white-space:nowrap}
.workspace>.topbar{height:76px;min-width:0;gap:15px;padding:0 22px;background:#fff;color:#0b2045;border-bottom:1px solid #e2e8f0}
.topbar>.menu-toggle{width:40px;height:40px;min-height:40px;flex:none;padding:0;border:1px solid #e2e8f0;border-radius:9px;background:#fff;color:#53647e;transition:background .15s,color .15s}
.topbar>.menu-toggle:hover,.topbar>.menu-toggle:focus-visible{background:#eff4ff;color:#2563eb;filter:none}
.topbar>.top-title{display:flex;align-items:center;gap:12px;flex:0 1 auto;min-width:0;color:#0b2045}
.topbar .top-symbol{display:grid;place-items:center;flex:none;width:46px;height:36px;border-right:2px solid #2563eb;padding-right:12px;color:#0b2045}
.topbar .top-copy{min-width:0;overflow:hidden}
.topbar .top-copy b{display:block;font-size:clamp(15px,1.35vw,20px);font-weight:750;letter-spacing:-.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar .top-copy small{display:block;font-size:11px;color:#64748b;line-height:1.4;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar>.global-search{flex:1 1 200px;min-width:120px;max-width:380px;margin-left:auto;height:40px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;color:#64748b;overflow:hidden}
.topbar>.global-search input{min-height:36px;padding:6px 8px;min-width:0;outline-offset:0}
.topbar>.global-search:focus-within{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb15}
.topbar .top-actions{display:flex;align-items:center;gap:12px;flex:none;margin-left:auto;min-width:0}
.topbar .notification-link{display:grid;place-items:center;width:40px;height:40px;border-radius:9px;color:#0b2045;transition:background .15s,color .15s}
.topbar .notification-link:hover{background:#eff4ff;color:#2563eb}
.topbar .top-actions-divider{width:1px;height:30px;background:#e2e8f0;flex:none}
.topbar .account{position:relative;flex:none;color:#0f172a}
.topbar .top-profile{display:flex;align-items:center;gap:10px;margin:0;padding:5px;border-radius:9px;transition:background .15s}
.topbar .top-profile:hover,.topbar .account[open] .top-profile{background:#f4f6fa}
.topbar .top-profile .avatar{width:39px;height:39px;background:#e8efff;color:#174aab;font-size:16px;border:1px solid #dbe5fd}
.topbar .profile-copy{min-width:0;display:block}
.topbar .profile-copy b{line-height:1.35;color:#0b2045;font-size:13px;font-weight:700;max-width:115px}
.topbar .profile-copy small{line-height:1.4;color:#64748b;font-size:11px}
.topbar .top-profile>.ico{color:#64748b;transition:transform .15s}
.topbar .account[open] .top-profile>.ico{transform:rotate(180deg)}
.topbar .account-menu{top:calc(100% + 10px);right:0;width:220px;max-width:calc(100vw - 24px);padding:6px;gap:3px;border:1px solid #e2e8f0;border-radius:11px;box-shadow:0 10px 30px #0b20451a;background:white}
.topbar .account:not([open]) .account-menu{display:none}
.topbar .account-identity{padding:9px 10px 11px;border-bottom:1px solid #e2e8f0;margin-bottom:3px;overflow-wrap:anywhere}
.topbar .account-identity b,.topbar .account-identity small{display:block}.topbar .account-identity b{font-size:13px}.topbar .account-identity small{color:#64748b;font-size:11px}
.topbar .account-menu a,.topbar .account-menu button{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:40px;width:100%;padding:9px 10px;background:#fff;color:#0b2045;font-size:13px;font-weight:600;border:0;border-radius:6px;text-align:left}
.topbar .account-menu a:hover,.topbar .account-menu button:hover{background:#f1f5f9;filter:none}
.topbar .account-menu button{color:#b91c1c}
@media(max-width:1270px){.workspace>.topbar{gap:10px;padding:0 16px}.topbar .top-actions{gap:7px}}
@media(max-width:1150px){.topbar>.global-search{display:none}.topbar>.top-title{flex:1 1 auto}}
@media(max-width:900px){.workspace>.topbar{height:64px;padding:0 12px;gap:9px}.topbar>.top-title{gap:8px}.topbar .top-symbol{width:33px;height:30px;padding-right:7px}.topbar .top-symbol .ico{width:25px;height:25px}.topbar .top-copy b{font-size:14px;letter-spacing:-.25px}.topbar .top-copy small{font-size:10px}.topbar .notification-link{display:grid;width:36px;height:40px}.topbar .top-actions-divider{height:27px}.topbar .top-actions{gap:5px}.topbar .top-profile{gap:6px;padding:3px}.topbar .top-profile .avatar{width:34px;height:34px;font-size:14px}}
@media(max-width:600px){.topbar .profile-copy,.topbar .top-copy small{display:none}.topbar .top-copy b{white-space:normal;overflow-wrap:normal;font-size:13px;line-height:1.25}.topbar .top-actions-divider{display:none}.topbar>.menu-toggle{width:36px;height:38px;min-height:38px}.topbar .top-profile>.ico{width:14px}.topbar .top-actions{gap:2px}}
@media(max-width:360px){.workspace>.topbar{padding:0 8px;gap:6px}.topbar>.top-title{gap:6px}.topbar .top-symbol{width:28px;padding-right:5px}.topbar .top-symbol .ico{width:21px;height:21px}.topbar .top-copy b{font-size:12px}.topbar .notification-link{width:30px}.topbar .top-profile>.ico{display:none}}
