:root{
  --bg:#f1f3f6;
  --surface:#ffffff;
  --ink:#17202a;
  --muted:#667085;
  --border:#d9dee7;
  --accent:#c1121f;
  --accent-dark:#8f0f1a;
  --teal:#0f766e;
  --gold:#a16207;
  --shadow:0 18px 45px rgba(23,32,42,.12);
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter,Arial,Helvetica,sans-serif;
}

body{
  padding:0;
}

body.auth-locked{
  min-height:100vh;
  padding:0;
  display:grid;
  place-items:center;
}

button,input,select,textarea{
  font:inherit;
}

button{
  cursor:pointer;
}

.is-hidden{
  display:none!important;
}

.app-shell{
  width:100%;
  min-height:100vh;
  display:none;
  grid-template-columns:240px minmax(0,1fr);
  background:var(--bg);
  overflow-x:hidden;
}

.driver-shell{
  display:none;
  min-height:100vh;
  background:#fff;
}

.auth-screen{
  display:none;
  width:100%;
  min-height:100vh;
  padding:32px;
  place-items:center;
  background:
    linear-gradient(135deg,rgba(193,18,31,.09),transparent 34%),
    linear-gradient(315deg,rgba(15,118,110,.12),transparent 30%),
    #eef2f7;
}

body.auth-locked .auth-screen{
  display:grid;
}

body.auth-locked .app-shell{
  display:none;
}

body.is-authenticated .auth-screen{
  display:none;
}

body.is-admin .app-shell{
  display:grid;
}

body.is-driver{
  background:#fff;
}

body.portal-driver .app-shell{
  display:none;
}

body.is-driver .app-shell{
  display:none;
}

body.is-driver .driver-shell{
  display:block;
}

body.portal-driver.is-authenticated{
  min-height:100vh;
  padding:0;
  background:#fff;
}

body.portal-driver.is-authenticated .auth-screen{
  display:none!important;
}

body.is-drivers-view .topbar,
body.is-drivers-view .metrics,
body.is-deliveries-view .topbar,
body.is-deliveries-view .metrics{
  display:none;
}

.auth-layout{
  width:min(980px,calc(100vw - 32px));
  min-height:560px;
  display:grid;
  grid-template-columns:minmax(280px,.95fr) minmax(360px,440px);
  overflow:hidden;
  background:var(--surface);
  border:1px solid rgba(148,163,184,.34);
  border-radius:8px;
  box-shadow:0 28px 90px rgba(15,23,42,.18);
}

.auth-panel{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:100%;
  padding:38px;
  color:#fff;
  background:
    linear-gradient(150deg,rgba(15,118,110,.82),transparent 44%),
    linear-gradient(25deg,rgba(193,18,31,.72),transparent 52%),
    #141923;
}

.auth-logo{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  margin-bottom:auto;
  border:1px solid rgba(255,255,255,.26);
  border-radius:8px;
  background:rgba(255,255,255,.1);
  font-weight:950;
  letter-spacing:0;
}

.auth-panel p{
  margin:0 0 12px;
  color:rgba(255,255,255,.78);
  font-size:.82rem;
  font-weight:900;
  text-transform:uppercase;
}

.auth-panel strong{
  max-width:340px;
  font-size:clamp(2rem,4vw,3.3rem);
  line-height:1;
}

.auth-panel small{
  max-width:330px;
  margin-top:16px;
  color:rgba(255,255,255,.78);
  font-size:1rem;
  line-height:1.55;
}

.auth-card{
  width:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:44px;
  background:var(--surface);
}

.auth-card h1{
  margin:0;
  font-size:2.25rem;
  line-height:1.04;
}

.auth-copy{
  margin:12px 0 24px;
  color:var(--muted);
  line-height:1.45;
}

.auth-card label{
  display:block;
  margin-top:16px;
  color:#344054;
  font-size:.92rem;
  font-weight:900;
}

.auth-card label span{
  display:block;
  margin-bottom:7px;
}

.auth-card input{
  width:100%;
  height:50px;
  border:1px solid #cfd6e3;
  border-radius:8px;
  padding:0 14px;
  background:#f8fafc;
  color:var(--ink);
  outline:0;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}

.auth-card input:focus{
  border-color:var(--teal);
  background:#fff;
  box-shadow:0 0 0 4px rgba(15,118,110,.13);
}

.auth-submit{
  width:100%;
  min-height:50px;
  margin-top:24px;
  box-shadow:0 16px 34px rgba(193,18,31,.22);
}

body.portal-driver .auth-submit{
  background:var(--teal);
  box-shadow:0 16px 34px rgba(15,118,110,.2);
}

.auth-mode-link{
  width:100%;
  min-height:44px;
  margin-top:10px;
  border:1px solid transparent;
  border-radius:8px;
  background:#f1f5f9;
  color:#17202a;
  font-weight:900;
  text-decoration:none;
}

.auth-mode-link:hover{
  border-color:#cbd5e1;
  background:#e9eef5;
}

.auth-message{
  min-height:20px;
  margin-top:12px;
  color:var(--accent-dark);
  font-size:.9rem;
  font-weight:800;
}

.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  padding:22px 18px;
  background:#111827;
  color:#fff;
  display:flex;
  flex-direction:column;
  gap:22px;
}

.brand-block{
  display:flex;
  align-items:center;
  gap:12px;
  padding-bottom:18px;
  border-bottom:1px solid rgba(255,255,255,.12);
}

.brand-mark{
  width:42px;
  height:42px;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:var(--accent);
  color:#fff;
  font-weight:900;
  letter-spacing:0;
}

.brand-block strong,
.brand-block small{
  display:block;
}

.brand-block strong{
  font-size:1rem;
  line-height:1.1;
}

.brand-block small{
  margin-top:3px;
  color:#aeb7c5;
  font-size:.78rem;
}

.side-nav{
  display:grid;
  gap:6px;
}

.side-nav a{
  min-height:40px;
  border-radius:8px;
  padding:0 12px;
  color:#cbd5e1;
  display:flex;
  align-items:center;
  text-decoration:none;
  font-size:.92rem;
  font-weight:800;
}

.side-nav a:hover,
.side-nav a.is-active{
  background:rgba(255,255,255,.1);
  color:#fff;
}

.sidebar-actions{
  display:grid;
  gap:10px;
}

.sidebar-actions .primary-action{
  width:100%;
}

.session-card{
  margin-top:auto;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:rgba(255,255,255,.06);
  padding:14px;
}

.session-card span{
  color:#aeb7c5;
  font-size:.7rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.session-card strong{
  display:block;
  margin:4px 0 12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.session-card .ghost-action{
  width:100%;
  min-height:38px;
  background:rgba(255,255,255,.12);
  color:#fff;
}

.content-shell{
  min-width:0;
  padding:28px;
  overflow-x:hidden;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:20px;
}

.eyebrow{
  margin:0 0 4px;
  color:var(--accent-dark);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

h1,h2,p{
  margin:0;
}

h1{
  font-size:clamp(1.9rem,3vw,3rem);
  line-height:1;
  letter-spacing:0;
}

h2{
  font-size:1.05rem;
  letter-spacing:0;
}

.primary-action,.secondary-action,.ghost-action,.icon-button{
  border:0;
  border-radius:8px;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:800;
}

.primary-action{
  background:var(--accent);
  color:#fff;
  padding:0 18px;
  box-shadow:0 10px 22px rgba(193,18,31,.22);
}

.primary-action:hover{
  background:var(--accent-dark);
}

.primary-action span{
  font-size:1.2rem;
  line-height:1;
}

.secondary-action{
  background:#17202a;
  color:#fff;
  padding:0 14px;
}

.secondary-action:disabled{
  cursor:not-allowed;
  opacity:.42;
}

.ghost-action{
  background:#eef1f5;
  color:var(--ink);
  padding:0 16px;
}

.icon-button{
  width:42px;
  padding:0;
  background:#eef1f5;
  color:var(--ink);
  font-size:1.4rem;
}

.metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}

.metric{
  min-height:104px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:8px;
  padding:18px;
  box-shadow:0 10px 24px rgba(23,32,42,.06);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.metric span{
  color:var(--muted);
  font-size:.9rem;
  font-weight:700;
}

.metric strong{
  font-size:1.45rem;
  letter-spacing:0;
}

.metric-alert{
  border-color:rgba(161,98,7,.28);
  background:#fffaf0;
}

.metric-alert strong{
  color:var(--gold);
  font-size:1.12rem;
}

.workspace{
  display:block;
}

.table-panel{
  min-width:0;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:8px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.panel-heading{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px;
  border-bottom:1px solid var(--border);
}

.panel-heading p{
  margin-top:4px;
  color:var(--muted);
  font-size:.9rem;
}

.panel-heading.compact{
  min-height:70px;
}

.bulk-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.panel-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.search-field{
  min-width:230px;
  min-height:42px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#fff;
  padding:5px 10px 6px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;
}

.search-field span{
  color:#667386;
  font-size:.68rem;
  font-weight:900;
  line-height:1;
  text-transform:uppercase;
}

.search-field input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:.9rem;
  font-weight:800;
}

.search-field input::placeholder{
  color:#9aa5b3;
  font-weight:700;
}

.quick-filters{
  min-height:42px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#f8fafc;
  padding:4px;
  display:flex;
  gap:4px;
  flex-wrap:wrap;
}

.quick-filters button{
  min-height:32px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#526071;
  padding:0 10px;
  font-size:.78rem;
  font-weight:900;
}

.quick-filters button.is-active{
  background:#17202a;
  color:#fff;
  box-shadow:0 6px 14px rgba(23,32,42,.12);
}

.table-wrap,
.assignment-table{
  overflow-x:auto;
  overflow-y:hidden;
}

.assignment-table table{
  min-width:680px;
}

table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  min-width:1080px;
}

.col-select{width:44px}
.col-plate{width:118px}
.col-owner{width:150px}
.col-infraction{width:auto}
.col-date{width:100px}
.col-status{width:128px}
.col-driver{width:150px}
.col-value{width:116px}
.col-actions{width:174px}

th,td{
  padding:14px 12px;
  text-align:left;
  border-bottom:1px solid var(--border);
  vertical-align:middle;
}

th:first-child,
td:first-child,
th:last-child,
td:last-child{
  padding-left:8px;
  padding-right:8px;
}

th{
  color:#485467;
  font-size:.74rem;
  text-transform:uppercase;
  letter-spacing:.06em;
}

td{
  font-size:.9rem;
}

td strong{
  display:block;
  font-size:.94rem;
  line-height:1.18;
}

td span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:.82rem;
  line-height:1.25;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

td:nth-child(4) strong{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

td:nth-child(4) span{
  max-width:100%;
}

tr.is-selected td{
  background:#f8fafc;
}

.row-actions{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  justify-content:start;
}

.mini-button{
  min-height:32px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#fff;
  color:var(--ink);
  padding:0 6px;
  font-size:.76rem;
  font-weight:800;
  white-space:nowrap;
}

.mini-button:hover{
  border-color:#9aa4b2;
}

.mini-button.primary{
  background:#17202a;
  border-color:#17202a;
  color:#fff;
}

.empty-state{
  padding:36px 18px 42px;
  text-align:center;
  color:var(--muted);
}

.empty-state strong{
  display:block;
  color:var(--ink);
  margin-bottom:6px;
}

.empty-state.is-hidden{
  display:none;
}

.status-pill{
  border-radius:999px;
  background:#ecfdf3;
  color:var(--teal);
  padding:6px 10px;
  font-size:.75rem;
  font-weight:900;
  white-space:nowrap;
}

.status-select{
  width:100%;
  min-height:34px;
  margin:0;
  border-radius:8px;
  padding:6px 8px;
  font-size:.78rem;
  font-weight:900;
}

.status-pendente{
  border-color:#f3c36a;
  background:#fff8e8;
  color:#8a5a00;
}

.status-em_rota{
  border-color:#9bc4ff;
  background:#eef6ff;
  color:#1553a3;
}

.status-entregue{
  border-color:#9bd6b0;
  background:#ecfdf3;
  color:#0f766e;
}

.deliveries-panel{
  min-height:560px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#f6f8fb;
  overflow:hidden;
  box-shadow:var(--shadow);
}

.deliveries-hero{
  min-height:92px;
  padding:22px 24px;
  border-bottom:1px solid var(--border);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.deliveries-hero h2{
  margin:3px 0 4px;
  font-size:1.45rem;
}

.deliveries-hero span{
  color:var(--muted);
  font-weight:750;
}

.delivery-search-field{
  width:min(420px,100%);
  display:grid;
  gap:7px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
}

.delivery-search-field input{
  width:100%;
  min-height:42px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#f8fafc;
  padding:0 13px;
  color:var(--ink);
  font-size:.92rem;
  font-weight:750;
  text-transform:none;
}

.deliveries-list{
  padding:20px;
  display:grid;
  gap:10px;
}

.delivery-row{
  width:100%;
  min-height:86px;
  border:1px solid #d5dce7;
  border-radius:8px;
  background:#fff;
  color:var(--ink);
  padding:14px 16px;
  display:grid;
  grid-template-columns:minmax(180px,.9fr) minmax(260px,1.2fr) auto;
  gap:18px;
  align-items:center;
  text-align:left;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
}

.delivery-row:hover{
  border-color:#aab4c3;
  transform:translateY(-1px);
}

.delivery-row span,
.delivery-row strong,
.delivery-row small,
.delivery-row em{
  display:block;
}

.delivery-row-main span{
  color:var(--muted);
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
}

.delivery-row-main strong{
  margin-top:4px;
  font-size:1.25rem;
}

.delivery-row small{
  margin-top:4px;
  color:#4f5f76;
  font-size:.84rem;
  font-weight:750;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.delivery-row-route strong{
  font-size:.95rem;
}

.delivery-row-end{
  display:grid;
  justify-items:end;
  gap:8px;
}

.delivery-row-end em{
  border-radius:999px;
  background:#ecfdf3;
  color:#0f766e;
  padding:7px 10px;
  font-size:.75rem;
  font-style:normal;
  font-weight:900;
  white-space:nowrap;
}

.delivery-row-end span{
  color:#17202a;
  font-size:.82rem;
  font-weight:950;
}

.delivery-detail{
  padding:20px;
}

.delivery-detail-shell{
  border:1px solid #d5dce7;
  border-radius:8px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
}

.delivery-detail-head{
  padding:16px;
  border-bottom:1px solid #edf0f5;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
}

.delivery-detail-head span,
.delivery-detail-head strong,
.delivery-detail-head small{
  display:block;
}

.delivery-detail-head span{
  color:var(--muted);
  font-size:.76rem;
  font-weight:900;
  text-transform:uppercase;
}

.delivery-detail-head strong{
  margin-top:3px;
  font-size:1.35rem;
}

.delivery-detail-head small{
  margin-top:3px;
  color:var(--muted);
  font-weight:800;
}

.delivery-detail-head a{
  border-radius:8px;
  background:#17202a;
  color:#fff;
  padding:10px 12px;
  font-size:.82rem;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
}

.delivery-info-grid{
  padding:16px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.delivery-info-grid article{
  min-height:92px;
  border:1px solid #dce2eb;
  border-radius:8px;
  background:#f8fafc;
  padding:14px;
}

.delivery-info-grid span,
.delivery-info-grid strong,
.delivery-info-grid small{
  display:block;
}

.delivery-info-grid span{
  color:var(--muted);
  font-size:.75rem;
  font-weight:900;
  text-transform:uppercase;
}

.delivery-info-grid strong{
  margin-top:9px;
  font-size:1rem;
}

.delivery-info-grid small{
  margin-top:5px;
  color:#4f5f76;
  font-weight:750;
  line-height:1.35;
}

.delivery-detail-photos{
  padding:0 16px 16px;
}

.delivery-detail-photos h3{
  margin:0 0 12px;
  font-size:1rem;
}

.proof-photo-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.delivery-proof-photos{
  grid-template-columns:repeat(2,minmax(260px,1fr));
}

.proof-photo{
  position:relative;
  display:block;
  aspect-ratio:4 / 5;
  border:1px solid #d7deea;
  border-radius:8px;
  overflow:hidden;
  background:#eef2f7;
  color:#fff;
  text-decoration:none;
}

.proof-photo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.proof-photo span{
  position:absolute;
  left:8px;
  right:8px;
  bottom:8px;
  border-radius:8px;
  background:rgba(15,23,42,.78);
  color:#fff;
  padding:7px 8px;
  font-size:.76rem;
  font-weight:900;
  text-align:center;
}

.proof-photo.is-empty{
  display:grid;
  place-items:center;
  color:var(--muted);
}

.proof-photo.is-empty span{
  position:static;
  background:transparent;
  color:var(--muted);
}

.proof-photo.is-empty strong{
  display:none;
}

.delivery-empty{
  padding:54px 20px 64px;
  text-align:center;
}

.delivery-empty strong,
.delivery-empty span{
  display:block;
}

.delivery-empty strong{
  font-size:1.15rem;
}

.delivery-empty span{
  margin-top:6px;
  color:var(--muted);
  font-weight:750;
}

.drivers-layout{
  min-height:520px;
  background:#f3f6fa;
}

.drivers-layout.has-selected{
  min-height:520px;
}

.drivers-board{
  min-height:520px;
  background:#f3f6fa;
}

.driver-dashboard-head{
  min-height:78px;
  padding:18px 20px;
  border-bottom:1px solid var(--border);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.driver-dashboard-head strong,
.driver-dashboard-head span{
  display:block;
}

.driver-dashboard-head strong{
  font-size:1.05rem;
}

.driver-dashboard-head span{
  max-width:680px;
  margin-top:5px;
  color:var(--muted);
  font-size:.9rem;
  font-weight:700;
}

.driver-overview-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  padding:16px 20px 0;
}

.driver-overview-grid article{
  min-height:92px;
  border:1px solid #d5dce7;
  border-radius:8px;
  background:#fff;
  padding:16px;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}

.driver-overview-grid span{
  display:block;
  color:#667085;
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
}

.driver-overview-grid strong{
  display:block;
  margin-top:12px;
  font-size:1.75rem;
  line-height:1;
}

.driver-toolbar{
  margin:16px 20px 0;
  padding:14px;
  border:1px solid #d5dce7;
  border-radius:8px;
  background:#fff;
  display:grid;
  grid-template-columns:minmax(220px,360px) minmax(0,1fr);
  gap:14px;
  align-items:center;
}

.driver-search-field{
  display:block;
}

.driver-search-field span,
.driver-toolbar-copy strong,
.driver-toolbar-copy span{
  display:block;
}

.driver-search-field span{
  margin-bottom:7px;
  color:#526071;
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
}

.driver-search-field input{
  width:100%;
  min-height:44px;
  border:1px solid #cfd6e3;
  border-radius:8px;
  background:#f8fafc;
  padding:0 12px;
  outline:0;
}

.driver-search-field input:focus{
  border-color:#17202a;
  background:#fff;
  box-shadow:0 0 0 4px rgba(23,32,42,.08);
}

.driver-toolbar-copy{
  min-width:0;
  color:var(--muted);
  font-size:.86rem;
  font-weight:700;
  line-height:1.35;
}

.driver-toolbar-copy strong{
  color:var(--ink);
  margin-bottom:4px;
}

.driver-cards{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
  gap:16px;
  padding:20px;
}

.driver-card{
  width:100%;
  aspect-ratio:1;
  position:relative;
  overflow:hidden;
  border:1px solid #d5dce7;
  border-radius:8px;
  background:#fff;
  color:var(--ink);
  padding:16px;
  text-align:left;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  box-shadow:0 12px 28px rgba(15,23,42,.07);
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}

.driver-card:hover{
  border-color:#17202a;
  box-shadow:0 20px 36px rgba(15,23,42,.11);
  transform:translateY(-2px);
}

.driver-card-status{
  border-radius:999px;
  background:#eef1f5;
  color:#526071;
  padding:5px 8px;
  font-size:.72rem;
  font-weight:900;
}

.driver-card-status.is-ready{
  background:#ecfdf3;
  color:#0f766e;
}

.driver-card-status.is-pending{
  background:#fff8e8;
  color:#8a5a00;
}

.driver-card-main{
  width:100%;
  min-width:0;
}

.driver-card i{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  margin-bottom:12px;
  border-radius:8px;
  background:#111827;
  color:#fff;
  font-style:normal;
  font-weight:950;
}

.driver-card strong{
  width:100%;
  min-width:0;
  display:block;
  font-size:1.05rem;
  line-height:1.18;
  overflow-wrap:anywhere;
}

.driver-card small{
  width:100%;
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-size:.84rem;
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.driver-card-stats{
  width:100%;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.driver-card em,
.driver-card b{
  display:block;
  border-radius:8px;
  background:#f2f5f9;
  padding:8px;
  font-style:normal;
  font-size:.78rem;
  font-weight:900;
}

.driver-card b{
  color:var(--muted);
}

.driver-empty{
  grid-column:1 / -1;
  border:1px dashed #cfd6e1;
  border-radius:8px;
  padding:28px;
  background:#fff;
  color:var(--muted);
  text-align:center;
}

.driver-empty strong{
  display:block;
  color:var(--ink);
  margin-bottom:4px;
}

.driver-detail-page{
  min-width:0;
  background:#fff;
  min-height:520px;
}

.driver-detail-heading{
  min-height:92px;
  padding:18px 20px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:16px;
}

.driver-detail-identity{
  min-width:0;
  flex:1;
  display:flex;
  align-items:center;
  gap:12px;
}

.driver-avatar{
  width:52px;
  height:52px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#111827;
  color:#fff;
  font-size:1rem;
  font-weight:950;
}

.driver-detail-heading strong,
.driver-detail-heading span{
  display:block;
}

.driver-detail-heading span{
  margin-top:4px;
  color:var(--muted);
  font-size:.86rem;
  font-weight:700;
}

.driver-access-pill{
  border-radius:999px;
  background:#ecfdf3;
  color:#0f766e;
  padding:8px 11px;
  font-size:.78rem;
  font-weight:950;
  white-space:nowrap;
}

.driver-access-pill.is-pending{
  background:#fff8e8;
  color:#8a5a00;
}

.driver-detail-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.driver-tabs{
  min-height:50px;
  border-bottom:1px solid var(--border);
  padding:0 16px;
  display:flex;
  align-items:end;
  gap:8px;
}

.driver-tab{
  min-height:38px;
  border:0;
  border-bottom:3px solid transparent;
  background:transparent;
  color:var(--muted);
  padding:0 4px;
  font-weight:900;
}

.driver-tab.is-active{
  border-bottom-color:var(--accent);
  color:var(--ink);
}

.driver-tab-panel{
  padding:18px 20px;
}

.driver-data-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,340px);
  gap:16px;
  align-items:start;
}

.driver-profile-card,
.driver-guide-card{
  border:1px solid var(--border);
  border-radius:8px;
  background:#fff;
}

.driver-profile-card{
  padding:16px;
}

.driver-guide-card{
  padding:18px;
  background:#111827;
  color:#fff;
}

.driver-guide-card strong,
.driver-guide-card span{
  display:block;
}

.driver-guide-card strong{
  font-size:1rem;
}

.driver-guide-card span{
  margin-top:10px;
  color:rgba(255,255,255,.78);
  font-size:.9rem;
  font-weight:700;
  line-height:1.45;
}

.driver-section-title{
  margin-bottom:14px;
}

.driver-section-title strong,
.driver-section-title span{
  display:block;
}

.driver-section-title strong{
  font-size:1rem;
}

.driver-section-title span{
  margin-top:4px;
  color:var(--muted);
  font-size:.84rem;
  font-weight:700;
}

.driver-profile-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.driver-profile-grid article{
  min-height:92px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#f8fafc;
  padding:14px;
}

.driver-profile-grid span{
  display:block;
  color:var(--muted);
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
}

.driver-profile-grid strong{
  display:block;
  margin-top:10px;
  font-size:1rem;
  overflow-wrap:anywhere;
}

.route-panel{
  border:1px solid var(--border);
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}

.route-panel-heading{
  min-height:66px;
  margin:0;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.route-workspace{
  min-height:300px;
  display:grid;
  grid-template-columns:minmax(260px,360px) minmax(0,1fr);
}

.route-list-column{
  min-width:0;
  border-right:1px solid var(--border);
  background:#f8fafc;
}

.route-list-label{
  min-height:56px;
  padding:13px 16px;
  border-bottom:1px solid var(--border);
}

.route-list-label strong,
.route-list-label span{
  display:block;
}

.route-list-label strong{
  font-size:.9rem;
}

.route-list-label span{
  margin-top:4px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:800;
}

.route-rows{
  display:grid;
}

.route-row{
  width:100%;
  min-height:78px;
  padding:13px 14px;
  border:0;
  border-bottom:1px solid var(--border);
  background:#f8fafc;
  color:var(--ink);
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.route-row:hover,
.route-row.is-selected{
  background:#fff;
}

.route-row.is-selected{
  box-shadow:inset 4px 0 0 var(--accent);
}

.route-row strong{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.route-row span,
.route-row small,
.route-empty{
  display:block;
  color:var(--muted);
  font-size:.82rem;
  font-weight:700;
}

.route-row span{
  margin-top:5px;
}

.route-row small{
  margin-top:4px;
  color:#344054;
  font-size:.78rem;
  font-weight:900;
}

.route-status{
  border-radius:999px;
  background:#eef6ff;
  color:#1553a3;
  padding:6px 10px;
  font-style:normal;
  font-size:.76rem;
  font-weight:900;
  white-space:nowrap;
}

.route-status-finalizada{
  background:#ecfdf3;
  color:#0f766e;
}

.route-status-criada{
  background:#fff8e8;
  color:#8a5a00;
}

.route-empty{
  padding:16px;
}

.route-detail{
  min-width:0;
  background:#fff;
}

.route-detail-heading{
  padding:16px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.route-detail-heading strong,
.route-detail-heading span{
  display:block;
}

.route-detail-heading span{
  margin-top:4px;
  color:#1553a3;
  font-size:.84rem;
  font-weight:800;
}

.route-detail-status{
  display:inline-flex!important;
  width:max-content;
  border-radius:999px;
  padding:6px 10px;
  font-size:.76rem!important;
  font-weight:950!important;
}

.route-detail-status.route-status-criada{
  background:#fff8e8;
  color:#8a5a00;
}

.route-detail-status.route-status-iniciada{
  background:#eef6ff;
  color:#1553a3;
}

.route-detail-status.route-status-finalizada{
  background:#ecfdf3;
  color:#0f766e;
}

.route-delete-button{
  min-height:38px;
  border:1px solid #f0b8bd;
  border-radius:8px;
  background:#fff5f5;
  color:#b11220;
  padding:0 12px;
  font-size:.82rem;
  font-weight:900;
  white-space:nowrap;
}

.route-delete-button:hover{
  border-color:#c1121f;
  background:#ffe8ea;
}

.route-package-summary{
  padding:12px 16px;
  border-bottom:1px solid var(--border);
  color:var(--muted);
  font-size:.86rem;
  font-weight:900;
}

.route-detail-packages{
  display:grid;
}

.route-package-status-row{
  min-height:58px;
  padding:12px 16px;
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.route-package-status-row strong,
.route-package-status-row span{
  display:block;
}

.route-package-status-row span{
  margin-top:4px;
  color:var(--muted);
  font-size:.82rem;
  font-weight:700;
}

.route-package-status-row em{
  border-radius:999px;
  padding:6px 10px;
  font-style:normal;
  font-size:.76rem;
  font-weight:900;
  white-space:nowrap;
}

.package-delivered{
  background:#ecfdf3;
  color:#0f766e;
}

.package-pending{
  background:#fff8e8;
  color:#8a5a00;
}

.route-dialog{
  width:min(760px,calc(100vw - 24px));
}

.route-package-heading{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.route-package-heading strong,
.route-package-heading span{
  display:block;
}

.route-package-heading span{
  color:var(--muted);
  font-size:.82rem;
  font-weight:700;
}

.route-select-all{
  min-height:44px;
  margin-top:10px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#f8fafc;
  padding:0 12px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#17202a;
  font-weight:900;
  cursor:pointer;
}

.route-select-all input{
  width:18px;
  height:18px;
  margin:0;
}

.route-select-all:has(input:disabled){
  opacity:.55;
  cursor:not-allowed;
}

.route-package-list{
  max-height:320px;
  margin-top:10px;
  border:1px solid var(--border);
  border-radius:8px;
  overflow:auto;
  background:#fff;
}

.route-package-row{
  min-height:62px;
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  cursor:pointer;
}

.route-package-row:last-child{
  border-bottom:0;
}

.route-package-row input{
  width:18px;
  height:18px;
  margin:0;
}

.route-package-row span,
.route-package-row strong,
.route-package-row small{
  min-width:0;
  display:block;
}

.route-package-row strong,
.route-package-row small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.route-package-row small{
  margin-top:4px;
  color:var(--muted);
  font-size:.8rem;
  font-weight:700;
}

.route-package-row em{
  border-radius:999px;
  background:#eef1f5;
  color:#526071;
  padding:6px 9px;
  font-style:normal;
  font-size:.74rem;
  font-weight:900;
  white-space:nowrap;
}

.route-package-empty{
  margin:12px 0 0;
  color:var(--muted);
  font-size:.9rem;
  font-weight:700;
}

.fine-dialog{
  width:min(920px,calc(100vw - 24px));
  max-height:calc(100vh - 24px);
  border:0;
  border-radius:8px;
  padding:0;
  box-shadow:0 24px 80px rgba(0,0,0,.28);
}

.fine-dialog::backdrop{
  background:rgba(15,23,42,.54);
}

.fine-form{
  padding:22px;
}

.dialog-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

fieldset{
  border:1px solid var(--border);
  border-radius:8px;
  padding:16px;
  margin:0 0 14px;
}

legend{
  padding:0 8px;
  color:#364152;
  font-weight:900;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

label{
  color:#364152;
  font-size:.86rem;
  font-weight:800;
}

input,select,textarea{
  width:100%;
  margin-top:6px;
  border:1px solid #cfd6e1;
  border-radius:8px;
  background:#fff;
  color:var(--ink);
  padding:10px 11px;
  outline:0;
}

textarea{
  min-height:86px;
  resize:vertical;
}

input:focus,select:focus,textarea:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(193,18,31,.13);
}

.file-field span{
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:.82rem;
  font-weight:700;
  line-height:1.35;
}

.field-hint{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:700;
  line-height:1.3;
}

.address-field.is-hidden{
  display:none;
}

.infraction-detail-field.is-hidden{
  display:none;
}

input:disabled,
select:disabled,
textarea:disabled{
  background:#eef1f5;
  color:#8a94a6;
  cursor:not-allowed;
}

.span-2{
  grid-column:span 2;
}

.span-3{
  grid-column:1 / -1;
}

.dialog-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:18px;
}

.duplicate-modal{
  width:min(460px,calc(100vw - 32px));
  border:0;
  border-radius:8px;
  padding:0;
  background:transparent;
  color:#fff;
  box-shadow:none;
}

.duplicate-modal::backdrop{
  background:rgba(127,29,29,.62);
}

.duplicate-card{
  width:100%;
  border:1px solid rgba(255,255,255,.24);
  border-radius:8px;
  background:#b91c1c;
  color:#fff;
  padding:24px;
  box-shadow:0 24px 70px rgba(69,10,10,.45);
}

.duplicate-kicker{
  margin:0 0 8px;
  color:#fee2e2;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.duplicate-card h2{
  margin:0 0 10px;
  font-size:1.55rem;
}

.duplicate-card p{
  margin:0;
  line-height:1.45;
}

.duplicate-card strong{
  display:block;
  width:max-content;
  max-width:100%;
  margin:16px 0 0;
  border-radius:8px;
  background:#7f1d1d;
  padding:9px 12px;
  font-size:1.25rem;
  letter-spacing:.04em;
  overflow-wrap:anywhere;
}

.duplicate-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:22px;
}

.danger-primary,.danger-secondary{
  border:0;
  border-radius:8px;
  min-height:42px;
  padding:0 18px;
  font-weight:900;
}

.danger-primary{
  background:#fff;
  color:#991b1b;
}

.danger-secondary{
  background:#7f1d1d;
  color:#fff;
}

.toast{
  position:fixed;
  z-index:140;
  right:24px;
  bottom:24px;
  min-width:240px;
  max-width:calc(100vw - 48px);
  border-radius:8px;
  background:#17202a;
  color:#fff;
  padding:14px 16px;
  box-shadow:0 16px 36px rgba(0,0,0,.2);
  transform:translateY(18px);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease;
}

.toast.is-visible{
  opacity:1;
  transform:translateY(0);
}

.pdf-area{
  position:fixed;
  left:-9999px;
  top:0;
  width:210mm;
  height:296.8mm;
  pointer-events:none;
  opacity:1;
}

.pdf-batch{
  position:fixed;
  left:-9999px;
  top:0;
  width:210mm;
  background:#fff;
}

.pdf-batch .sheet:not(:first-child){
  break-before:page;
  page-break-before:always;
}

.letter-area{
  position:fixed;
  left:-9999px;
  top:0;
  width:649.5pt;
  height:323.25pt;
  pointer-events:none;
  background:#fff;
}

.letter-batch{
  position:fixed;
  left:-9999px;
  top:0;
  width:649.5pt;
  background:#fff;
}

.letter-batch .letter-sheet:not(:first-child){
  break-before:page;
  page-break-before:always;
}

.letter-export-stage{
  position:fixed;
  left:0;
  top:0;
  z-index:200;
  width:649.5pt;
  background:#fff;
}

.letter-export-stage .letter-sheet{
  margin:0;
  box-shadow:none;
}

.letter-export-stage .letter-sheet:not(:first-child){
  break-before:page;
  page-break-before:always;
}

body.exporting-letter{
  padding:0;
  overflow:hidden;
  background:#fff;
}

body.exporting-letter .app-shell,
body.exporting-letter .driver-shell,
body.exporting-letter .auth-screen,
body.exporting-letter .fine-dialog,
body.exporting-letter .duplicate-modal,
body.exporting-letter .toast,
body.exporting-letter .pdf-area,
body.exporting-letter .letter-area{
  display:none!important;
}

body.exporting-letter .letter-export-stage{
  display:block!important;
  position:static!important;
}

body.printing-pdf{
  padding:0;
  background:#fff;
}

body.printing-letter,
body.printing-batch,
body.printing-letter-batch{
  padding:0;
  background:#fff;
}

body.printing-pdf .app-shell,
body.printing-pdf .fine-dialog,
body.printing-pdf .duplicate-modal,
body.printing-pdf .toast,
body.printing-letter .app-shell,
body.printing-letter .fine-dialog,
body.printing-letter .duplicate-modal,
body.printing-letter .toast,
body.printing-letter .pdf-area,
body.printing-batch .app-shell,
body.printing-batch .fine-dialog,
body.printing-batch .duplicate-modal,
body.printing-batch .toast,
body.printing-batch .pdf-area,
body.printing-batch .letter-area,
body.printing-letter-batch .app-shell,
body.printing-letter-batch .fine-dialog,
body.printing-letter-batch .duplicate-modal,
body.printing-letter-batch .toast,
body.printing-letter-batch .pdf-area,
body.printing-letter-batch .letter-area{
  display:none;
}

body.printing-pdf .pdf-area{
  position:static;
  width:210mm;
  height:296.8mm;
}

body.printing-letter .letter-area,
body.printing-letter-batch .letter-batch{
  position:static;
  left:auto;
}

body.printing-batch .pdf-batch{
  position:static;
  left:auto;
}

.letter-sheet{
  position:relative;
  width:649.5pt;
  height:323.25pt;
  margin:0 auto;
  background:#fff;
  overflow:hidden;
  color:#111;
  font-family:"Open Sans",Arial,sans-serif;
}

.letter-name{
  position:absolute;
  left:44.9916pt;
  top:150.419pt;
  margin:0;
  font-size:10.4507pt;
  line-height:14.232pt;
  font-weight:700;
  color:#111;
  white-space:nowrap;
}

.letter-data{
  position:absolute;
  left:44.9916pt;
  top:166.0081pt;
  margin:0;
  font-size:9.4454pt;
  line-height:12.754pt;
  font-weight:400;
  color:#171717;
  white-space:nowrap;
}

.letter-barcode-box{
  position:absolute;
  left:44.9916pt;
  top:216.238pt;
  width:144.695pt;
  height:40.7054pt;
  border:.78pt solid #111;
  background:#fff;
}

.letter-barcode-wrap{
  position:absolute;
  left:11.7455pt;
  top:8.5181pt;
  width:121.3042pt;
  height:23.6691pt;
  display:flex;
  align-items:stretch;
  justify-content:center;
  overflow:hidden;
}

#letterBarcode{
  width:100%;
  height:100%;
  display:block;
}

.letter-code{
  position:absolute;
  left:88.6478pt;
  top:259.308pt;
  margin:0;
  width:53.44pt;
  text-align:center;
  font-size:5.8793pt;
  line-height:8.0066pt;
  font-weight:400;
  color:#222;
  white-space:nowrap;
}

.sheet{
  position:relative;
  width:210mm;
  height:296.8mm;
  margin:0 auto;
  background:#fff;
  padding:3.7mm 10.2mm 6mm;
  overflow:hidden;
  color:#060606;
  font-family:Arial,Helvetica,sans-serif;
}

.watermark{
  position:absolute;
  left:50%;
  top:51%;
  transform:translate(-50%,-50%) rotate(-27deg);
  font-size:20mm;
  font-weight:900;
  letter-spacing:1mm;
  color:rgba(140,0,0,.095);
  white-space:nowrap;
  pointer-events:none;
  z-index:10;
}

.doc-header{
  height:17.2mm;
  display:grid;
  grid-template-columns:1fr 1.08fr 1fr;
  align-items:start;
}

.agency-brand{
  display:flex;
  align-items:flex-start;
  padding-top:1.1mm;
  padding-left:5.7mm;
}

.state-logo-img{
  width:32mm;
  height:12.7mm;
  object-fit:contain;
  object-position:left top;
  display:block;
}

.doc-title{
  text-align:center;
  font-size:8.4pt;
  font-weight:800;
  font-style:italic;
  line-height:1.08;
  padding-top:1.5mm;
}

.detran-wrap{
  display:flex;
  justify-content:flex-end;
  align-items:flex-start;
  padding-top:.1mm;
}

.detran-img{
  width:22.8mm;
  height:16.1mm;
  object-fit:contain;
  object-position:right top;
  display:block;
}

.issuer{
  width:53.3%;
  text-align:center;
  font-size:7.15pt;
  font-weight:800;
  font-style:italic;
  margin:-1.25mm 0 .6mm -2.1mm;
}

.top-grid{
  display:grid;
  grid-template-columns:52.05% minmax(0,1fr);
  height:72.2mm;
  gap:.55mm;
  margin:0 -2.1mm;
}

.left-card,.obs-card{
  border:1.45px solid #000;
}

.left-card{
  display:grid;
  grid-template-rows:7.2mm 8.8mm 16.2mm 10.7mm 7.25mm 7.15mm 7.2mm 7.2mm;
}

.grid-row{display:grid}
.cols-3{grid-template-columns:23% 37% 40%}
.cols-2{grid-template-columns:59% 41%}
.cols-4{grid-template-columns:30% 23% 20% 27%}
.detail-row{grid-template-columns:23% 48% 29%}

.field{
  min-height:0;
  border-right:1.15px solid #000;
  border-bottom:1.15px solid #000;
  padding:.55mm 1mm .4mm;
  line-height:1.05;
}

.grid-row .field:last-child{border-right:0}

.field label,.obs-card>label,.b-row label,.b-row>div label,.r-field label,.instructions>label{
  display:block;
  font-size:4.55pt;
  font-weight:400;
  text-transform:uppercase;
  line-height:1.05;
}

.field label{
  font-family:Arial,"Arimo",sans-serif;
  font-size:4.65pt;
  font-weight:400;
  color:#111;
  letter-spacing:0;
}

.field strong{
  display:block;
  font-family:"Nimbus Sans",Helvetica,Arial,sans-serif;
  font-size:7.25pt;
  font-weight:800;
  line-height:1.02;
  margin-top:.34mm;
  letter-spacing:0;
}

.block{
  height:auto;
  border-right:0;
}

.infraction{
  padding:.8mm 1.05mm .55mm;
}

.infraction label{
  font-size:4.65pt;
}

.infraction strong{
  font-size:5.8pt;
  font-weight:800;
  line-height:1.04;
  margin-top:.6mm;
  white-space:nowrap;
}

.local{height:auto}
.local strong{font-size:7.25pt;font-weight:800}
.price-row{grid-template-columns:41% 59%}
.price-row .field{min-height:0;border-bottom:0}

.left-card>.grid-row:nth-child(5) .field:not(:first-child) strong,
.left-card>.grid-row:nth-child(6) .field strong,
.left-card>.detail-row .field strong{
  text-align:center;
}

.obs-card{
  padding:.65mm 1mm;
  overflow:hidden;
}

.obs-card>label{
  font-size:4.4pt;
  color:#111;
  line-height:1;
  margin-bottom:3.2mm;
}

.obs-title{
  font-size:6.1pt;
  font-weight:700;
  text-decoration:underline;
  line-height:1;
  margin-bottom:.7mm;
}

.obs-copy{
  font-size:6.7pt;
  font-weight:800;
  line-height:1.06;
  letter-spacing:0;
}

.obs-copy>div{
  white-space:nowrap;
  margin:0 0 .25mm;
}

.info-box{
  height:51.3mm;
  border:1.45px solid #000;
  margin-top:2.2mm;
  padding:1.55mm 1.45mm 1mm;
  overflow:hidden;
  margin-left:-2.1mm;
  margin-right:-2.1mm;
}

.info-box h2{
  font-size:6.15pt;
  margin:0 0 1.4mm;
  font-weight:800;
}

.info-box p{
  font-size:5.35pt;
  line-height:1.22;
  margin:0 0 1.05mm;
}

.cut-line{
  position:relative;
  height:5.2mm;
  border-bottom:1px dashed #111;
  margin:0 -3mm 2mm;
}

.cut-line span{
  position:absolute;
  right:36%;
  bottom:-3mm;
  background:#fff;
  font-size:11pt;
  padding:0 1.5mm;
  transform:rotate(5deg);
}

.boleto{
  position:relative;
  margin:-.1mm -3mm 0;
  height:110mm;
  overflow:hidden;
  background:#fff;
  z-index:20;
  color:#000;
}

.pdf-area [hidden]{
  display:none!important;
}

.bank-line{
  height:7.9mm;
  display:grid;
  grid-template-columns:38.8mm 17mm minmax(0,1fr);
  align-items:start;
  border-bottom:2px solid #000;
}

.bank-placeholder{
  height:7.45mm;
  overflow:hidden;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  background:#fff;
}

.santander-img{
  width:31mm;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:left top;
}

.bank-code{
  height:7.45mm;
  border-left:2.2px solid #000;
  border-right:2.2px solid #000;
  font-weight:700;
  font-size:10pt;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

.digitable-line{
  min-width:0;
  overflow:hidden;
  padding:0 0 0 5.1mm;
  font-size:11pt;
  font-weight:800;
  line-height:7.45mm;
  text-align:left;
  letter-spacing:0;
  white-space:nowrap;
}

.boleto-grid{
  height:84.35mm;
  display:grid;
  grid-template-columns:70.25% 29.75%;
  border:1.6px solid #000;
  border-top:0;
  border-bottom:3px solid #000;
  overflow:hidden;
}

.boleto-left{
  display:grid;
  grid-template-rows:8.45mm 8.45mm 8.45mm 8.45mm minmax(0,1fr);
  min-width:0;
  overflow:hidden;
}

.b-row{
  border-bottom:1.25px solid #000;
  padding:.45mm .95mm;
  overflow:hidden;
}

.b-row label{
  font-size:4.15pt;
  color:#5c5c5c;
  text-transform:none;
  line-height:1;
}

.b-row span{
  display:block;
  font-size:7.45pt;
  font-weight:400;
  line-height:1.05;
  margin-top:1.15mm;
  padding-left:2.35mm;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.local-pay{
  height:auto;
}

.beneficiary{
  height:auto;
}

.five{
  height:auto;
  display:grid;
  grid-template-columns:23% 23.5% 15.5% 15% 23%;
  padding:0;
}

.five>div,.four>div{
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  min-width:0;
  padding:.45mm .85mm;
  border-right:1.25px solid #000;
  overflow:hidden;
}

.five>div:last-child,.four>div:last-child{border-right:0}
.five span,.four span{
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  font-size:7.05pt;
  font-weight:400;
  line-height:1.05;
  margin-top:0;
  padding-left:0;
  text-align:center;
}

.four{
  height:auto;
  display:grid;
  grid-template-columns:36% 11% 30% 23%;
  padding:0;
}

.four>div:first-child span{
  font-weight:700;
  color:#555;
}

.instructions{
  height:auto;
  padding:.55mm .95mm;
  overflow:hidden;
}

.instructions>label{
  font-size:4.15pt;
  color:#666;
  text-transform:none;
  line-height:1;
}

.instructions p{
  font-size:7.95pt;
  font-weight:400;
  line-height:1.25;
  margin:4.85mm 4.75mm 0;
}

.danger-note{
  font-size:6.7pt;
  font-weight:900;
  margin:7mm 1.2mm 0;
  color:#850000;
}

.boleto-right{
  display:grid;
  grid-template-rows:repeat(10,minmax(0,1fr));
  border-left:1.6px solid #000;
  min-width:0;
  height:100%;
  overflow:hidden;
}

.r-field{
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  min-height:0;
  border-bottom:1.25px solid #000;
  padding:.45mm 1.1mm .75mm;
  overflow:hidden;
}

.r-field:last-child{border-bottom:0}

.r-field label{
  font-size:4.05pt;
  color:#686868;
  text-transform:none;
  line-height:1;
}

.r-field span{
  display:block;
  justify-self:end;
  align-self:end;
  max-width:100%;
  overflow:hidden;
  font-size:7.2pt;
  font-weight:400;
  line-height:1;
  text-align:right;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.boleto-right .r-field:nth-child(-n+3) span{
  justify-self:center;
  align-self:center;
  text-align:center;
}

.auth-label{
  text-align:right;
  font-size:3.95pt;
  color:#777;
  margin-top:.7mm;
  padding-right:.4mm;
}

.fake-barcode{
  width:113mm;
  height:13mm;
  margin:2.45mm auto 0;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  padding:0 5mm;
  background:#fff;
  overflow:hidden;
  line-height:0;
  position:relative;
}

.fake-barcode.is-source-barcode{
  width:var(--barcode-source-width,156mm);
  height:var(--barcode-source-height,15.5mm);
  max-width:172mm;
  padding:0;
}

.fake-barcode.is-generated-barcode{
  width:113mm;
  padding:0 5mm;
}

.fake-barcode img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center center;
  image-rendering:crisp-edges;
}

.fake-barcode.is-source-barcode img{
  object-fit:fill;
  image-rendering:auto;
}

.fake-barcode canvas,
.fake-barcode svg{
  width:100%;
  height:100%;
  display:block;
}

.fake-barcode canvas{
  image-rendering:pixelated;
}

.fake-barcode svg{
  shape-rendering:crispEdges;
}

.article-field strong{
  font-family:"Nimbus Sans",Helvetica,Arial,sans-serif!important;
  font-size:5pt!important;
  font-weight:400!important;
  font-style:normal!important;
  font-variant:normal!important;
  letter-spacing:0!important;
  line-height:1!important;
  margin-top:.55mm!important;
  text-rendering:geometricPrecision;
  -webkit-font-smoothing:antialiased;
}

@media (max-width:1180px){
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .driver-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .driver-data-layout{grid-template-columns:1fr}
  .route-workspace{grid-template-columns:1fr}
  .route-list-column{border-right:0;border-bottom:1px solid var(--border)}
  .delivery-row{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}
  .delivery-row-end{grid-column:1/-1;display:flex;justify-content:space-between}
}

@media (max-width:900px){
  .app-shell{grid-template-columns:1fr}
  .sidebar{
    position:static;
    height:auto;
    padding:16px;
    display:grid;
    grid-template-columns:1fr;
  }
  .brand-block{padding-bottom:14px}
  .side-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
  .side-nav a{justify-content:center}
  .deliveries-hero{align-items:stretch;flex-direction:column}
  .delivery-search-field{width:100%}
  .delivery-row{grid-template-columns:1fr}
  .delivery-row-end{display:grid;justify-items:start}
  .delivery-detail-head{grid-template-columns:1fr}
  .delivery-info-grid{grid-template-columns:1fr}
  .delivery-info-grid .span-2{grid-column:auto}
  .delivery-proof-photos{grid-template-columns:1fr}
  .sidebar-actions .primary-action{width:100%}
  .session-card{
    margin-top:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px 12px;
  }
  .session-card .ghost-action{
    grid-row:1 / span 2;
    grid-column:2;
    width:auto;
    min-width:82px;
  }
  .content-shell{padding:20px}
  .topbar{align-items:stretch;flex-direction:column}
  .driver-toolbar{grid-template-columns:1fr}
  .driver-cards{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
  .driver-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .driver-detail-heading{align-items:flex-start;flex-direction:column}
  .driver-detail-identity{width:100%}
  .driver-access-pill{width:max-content}
  .driver-detail-actions,
  .driver-detail-actions button{width:100%}
  .route-package-heading{align-items:flex-start;flex-direction:column}
  .route-detail-heading{align-items:flex-start;flex-direction:column}
  .route-detail-heading button{width:100%}
  .form-grid{grid-template-columns:1fr}
  .span-2,.span-3{grid-column:auto}
  .dialog-actions{flex-direction:column-reverse}
  .dialog-actions button{width:100%}
}

@media (max-width:560px){
  body.auth-locked{padding:0}
  .auth-screen{padding:18px}
  .auth-layout{
    width:100%;
    min-height:0;
    grid-template-columns:1fr;
  }
  .auth-panel{
    min-height:190px;
    padding:24px;
  }
  .auth-logo{
    width:48px;
    height:48px;
  }
  .auth-panel strong{
    font-size:2rem;
  }
  .auth-panel small{
    font-size:.94rem;
  }
  .auth-card{
    padding:24px;
  }
  .auth-card h1{
    font-size:1.85rem;
  }
  .sidebar{padding:12px}
  .side-nav{grid-template-columns:1fr}
  .content-shell{padding:14px}
  .metrics{grid-template-columns:1fr}
  .driver-dashboard-head,
  .driver-toolbar,
  .driver-overview-grid,
  .driver-cards{padding-left:12px;padding-right:12px}
  .driver-overview-grid{grid-template-columns:1fr;gap:10px}
  .driver-toolbar{margin:12px}
  .driver-cards{grid-template-columns:1fr;gap:10px;padding-top:12px;padding-bottom:12px}
  .driver-card{padding:12px}
  .driver-detail-heading{padding:14px}
  .driver-detail-identity{align-items:flex-start}
  .driver-avatar{width:46px;height:46px}
  .driver-tabs{padding:0 14px}
  .driver-tab-panel{padding:14px}
  .driver-profile-grid{grid-template-columns:1fr}
  .route-row{align-items:flex-start;flex-direction:column}
  .route-row .route-status{align-self:flex-start}
  .route-package-status-row{align-items:flex-start;flex-direction:column}
  .route-package-row{grid-template-columns:auto minmax(0,1fr)}
  .route-package-row em{grid-column:2}
  .panel-heading{align-items:flex-start;flex-direction:column}
  .panel-tools,
  .bulk-actions,
  .search-field,
  .quick-filters{
    width:100%;
  }
  .panel-tools,
  .bulk-actions{
    justify-content:stretch;
  }
  .quick-filters button{
    flex:1 1 118px;
  }
  .panel-heading .secondary-action{width:100%}
  th,td{padding:12px}
  .duplicate-actions{flex-direction:column}
  .danger-primary,.danger-secondary{width:100%}
}

/* Redesign da gestão de entregadores */
.drivers-panel{
  overflow:hidden;
  border:1px solid #d7dee9;
  border-radius:8px;
  background:#eef2f7;
  box-shadow:0 22px 60px rgba(15,23,42,.1);
}

.drivers-hero{
  min-height:118px;
  padding:22px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:
    linear-gradient(120deg,rgba(193,18,31,.08),transparent 38%),
    linear-gradient(315deg,rgba(15,118,110,.12),transparent 30%),
    #fff;
  border-bottom:1px solid #d7dee9;
}

.drivers-hero h2{
  margin:4px 0 0;
  font-size:2.05rem;
  line-height:1;
}

.drivers-hero span{
  display:block;
  margin-top:8px;
  color:#667085;
  font-weight:800;
}

.drivers-layout,
.drivers-layout.has-selected{
  min-height:640px;
  background:#eef2f7;
}

.drivers-board{
  min-height:640px;
  padding:18px;
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  gap:18px;
  background:#eef2f7;
}

.driver-control-panel,
.driver-gallery,
.driver-detail-shell,
.driver-profile-sidebar,
.driver-workspace,
.route-panel{
  border:1px solid #d7dee9;
  border-radius:8px;
  background:#fff;
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}

.driver-control-panel{
  align-self:start;
  position:sticky;
  top:18px;
  padding:16px;
}

.driver-control-title{
  padding-bottom:14px;
  border-bottom:1px solid #e4e9f1;
}

.driver-control-title strong,
.driver-control-title span,
.driver-gallery-head strong,
.driver-gallery-head span{
  display:block;
}

.driver-control-title strong{
  font-size:1.05rem;
}

.driver-control-title span,
.driver-gallery-head span{
  margin-top:6px;
  color:#667085;
  font-size:.86rem;
  font-weight:750;
  line-height:1.35;
}

.driver-search-field{
  margin-top:16px;
}

.driver-search-field input{
  min-height:48px;
}

.driver-overview-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  padding:16px 0 0;
}

.driver-overview-grid article{
  min-height:86px;
  padding:13px;
  box-shadow:none;
}

.driver-overview-grid strong{
  margin-top:10px;
  font-size:1.55rem;
}

.driver-gallery{
  min-width:0;
  overflow:hidden;
}

.driver-gallery-head{
  min-height:76px;
  padding:18px 20px;
  border-bottom:1px solid #e4e9f1;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.driver-gallery-head strong{
  font-size:1.05rem;
}

.driver-cards{
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:18px;
  padding:20px;
}

.driver-card{
  min-height:210px;
  aspect-ratio:1;
  padding:16px;
  border-color:#d9e0eb;
  background:
    linear-gradient(180deg,#fff 0%,#fff 62%,#f8fafc 100%);
}

.driver-card:hover{
  border-color:#c1121f;
  box-shadow:0 22px 42px rgba(193,18,31,.12);
}

.driver-card i{
  background:#17202a;
}

.driver-card-stats{
  margin-top:auto;
}

.driver-detail-page{
  min-height:640px;
  padding:18px;
  background:#eef2f7;
}

.driver-detail-shell{
  overflow:hidden;
  min-height:604px;
}

.driver-detail-hero{
  min-height:108px;
  padding:20px;
  border-bottom:1px solid #d7dee9;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  align-items:center;
  gap:14px;
  background:
    linear-gradient(120deg,rgba(17,24,39,.08),transparent 34%),
    linear-gradient(315deg,rgba(193,18,31,.08),transparent 28%),
    #fff;
}

.driver-detail-identity strong{
  font-size:1.35rem;
}

.driver-detail-body{
  padding:18px;
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:18px;
  background:#eef2f7;
}

.driver-profile-sidebar{
  align-self:start;
  padding:18px;
}

.driver-profile-avatar{
  width:74px;
  height:74px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#111827;
  color:#fff;
  font-size:1.35rem;
  font-weight:950;
}

.driver-profile-sidebar>strong{
  display:block;
  margin-top:16px;
  font-size:1.2rem;
  line-height:1.2;
  overflow-wrap:anywhere;
}

.driver-profile-sidebar>small{
  display:block;
  margin-top:8px;
  color:#667085;
  font-size:.92rem;
  font-weight:800;
}

.driver-profile-status{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #e4e9f1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.driver-profile-status span{
  color:#667085;
  font-size:.82rem;
  font-weight:900;
  text-transform:uppercase;
}

.driver-profile-status b{
  text-align:right;
  font-size:.9rem;
}

.driver-workspace{
  min-width:0;
  overflow:hidden;
}

.driver-tabs{
  min-height:58px;
  padding:0 18px;
  background:#fff;
}

.driver-tab{
  min-height:44px;
  padding:0 10px;
}

.driver-tab-panel{
  padding:18px;
  background:#fff;
}

.driver-info-board{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.driver-info-card{
  min-height:150px;
  border:1px solid #d7dee9;
  border-radius:8px;
  background:#f8fafc;
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.driver-info-card span{
  color:#667085;
  font-size:.8rem;
  font-weight:950;
  text-transform:uppercase;
}

.driver-info-card strong{
  font-size:1.15rem;
  line-height:1.2;
  overflow-wrap:anywhere;
}

.route-panel{
  box-shadow:none;
}

.route-panel-heading{
  min-height:78px;
  padding:16px 18px;
}

.route-overview-strip{
  padding:14px 18px;
  border-bottom:1px solid #e4e9f1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  background:#f8fafc;
}

.route-overview-strip article{
  min-height:76px;
  border:1px solid #d7dee9;
  border-radius:8px;
  background:#fff;
  padding:12px;
}

.route-overview-strip span{
  display:block;
  color:#667085;
  font-size:.76rem;
  font-weight:950;
  text-transform:uppercase;
}

.route-overview-strip strong{
  display:block;
  margin-top:10px;
  font-size:1.5rem;
}

.route-workspace{
  min-height:360px;
  grid-template-columns:minmax(280px,390px) minmax(0,1fr);
}

.route-list-column{
  background:#f8fafc;
}

.route-row{
  min-height:92px;
  padding:15px 16px;
}

.route-detail{
  min-height:360px;
}

.route-detail-heading{
  min-height:78px;
  padding:16px 18px;
}

.route-package-summary{
  padding:14px 18px;
  background:#f8fafc;
}

.route-package-status-row{
  padding:14px 18px;
}

@media (max-width:1180px){
  .drivers-board{grid-template-columns:1fr}
  .driver-control-panel{position:static}
  .driver-detail-body{grid-template-columns:1fr}
  .driver-profile-sidebar{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) repeat(2,minmax(150px,auto));
    align-items:center;
    gap:14px;
  }
  .driver-profile-sidebar>strong,
  .driver-profile-sidebar>small,
  .driver-profile-status{margin-top:0}
  .driver-profile-status{border-top:0;border-left:1px solid #e4e9f1;padding-top:0;padding-left:14px}
  .route-workspace{grid-template-columns:1fr}
  .route-list-column{border-right:0;border-bottom:1px solid #d7dee9}
}

@media (max-width:760px){
  .drivers-hero,
  .driver-detail-hero{
    grid-template-columns:1fr;
    align-items:start;
  }
  .drivers-hero{
    flex-direction:column;
    align-items:stretch;
  }
  .drivers-hero .primary-action{width:100%}
  .driver-cards{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
  .driver-detail-body{padding:12px}
  .driver-profile-sidebar{grid-template-columns:1fr}
  .driver-profile-status{border-left:0;border-top:1px solid #e4e9f1;padding-left:0;padding-top:14px}
  .driver-info-board,
  .route-overview-strip{grid-template-columns:1fr}
}

@media (max-width:560px){
  .drivers-board,
  .driver-detail-page{padding:10px}
  .drivers-layout,
  .drivers-board,
  .driver-detail-page{min-height:0}
  .drivers-hero{padding:18px}
  .drivers-hero h2{font-size:1.65rem}
  .driver-control-panel,
  .driver-gallery,
  .driver-detail-shell,
  .driver-profile-sidebar,
  .driver-workspace{box-shadow:none}
  .driver-cards{grid-template-columns:1fr;padding:12px}
  .driver-card{min-height:0}
  .driver-detail-hero{padding:14px}
  .route-overview-strip{padding:12px}
  .route-workspace{min-height:0}
  .route-detail{min-height:0}
}

/* App mobile do entregador */
body.portal-driver.auth-locked{
  display:block;
  background:#101827;
}

body.portal-driver .auth-screen{
  min-height:100dvh;
  padding:0;
  align-items:stretch;
  background:#101827;
}

body.portal-driver .auth-layout{
  width:100%;
  min-height:100dvh;
  display:grid;
  grid-template-columns:1fr;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:#f4f7fb;
}

body.portal-driver .auth-panel{
  min-height:38dvh;
  padding:28px 24px 54px;
  background:
    linear-gradient(160deg,rgba(15,118,110,.92),transparent 48%),
    linear-gradient(30deg,rgba(193,18,31,.72),transparent 58%),
    #101827;
}

body.portal-driver .auth-logo{
  width:54px;
  height:54px;
}

body.portal-driver .auth-panel strong{
  max-width:280px;
  font-size:2.45rem;
}

body.portal-driver .auth-panel small{
  max-width:280px;
}

body.portal-driver .auth-card{
  width:100%;
  margin-top:-28px;
  border-radius:28px 28px 0 0;
  padding:28px 22px 34px;
  justify-content:flex-start;
}

body.portal-driver .auth-card h1{
  font-size:2rem;
}

body.portal-driver .auth-card input{
  height:54px;
  font-size:1rem;
}

body.portal-driver .auth-submit{
  min-height:54px;
}

body.is-driver{
  min-height:100dvh;
  background:#101827;
}

body.is-driver .driver-shell{
  display:block;
}

.driver-mobile-app{
  min-height:100dvh;
  max-width:480px;
  margin:0 auto;
  padding:16px 14px 92px;
  background:#f4f7fb;
  color:#101827;
}

.driver-app-hero{
  min-height:104px;
  padding:18px 18px 20px;
  border-radius:24px;
  background:
    linear-gradient(145deg,rgba(15,118,110,.88),transparent 50%),
    linear-gradient(28deg,rgba(193,18,31,.68),transparent 58%),
    #101827;
  color:#fff;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  box-shadow:0 18px 40px rgba(16,24,39,.22);
}

.driver-app-hero span,
.driver-app-hero strong{
  display:block;
}

.driver-app-hero span{
  color:rgba(255,255,255,.78);
  font-size:.88rem;
  font-weight:800;
}

.driver-app-hero strong{
  margin-top:6px;
  font-size:2rem;
  line-height:1;
}

.driver-app-hero button,
.driver-location-card button,
.driver-next-card button,
.driver-start-route,
.driver-stop-actions button{
  border:0;
  border-radius:999px;
  font-weight:950;
}

.driver-app-hero button{
  min-height:38px;
  background:rgba(255,255,255,.14);
  color:#fff;
  padding:0 13px;
}

.driver-location-card{
  margin-top:14px;
  border:1px solid #dbe3ee;
  border-radius:20px;
  background:#fff;
  padding:16px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  box-shadow:0 12px 28px rgba(15,23,42,.07);
}

.driver-location-card.is-active{
  border-color:rgba(15,118,110,.35);
  background:#f0fdfa;
}

.driver-location-card span,
.driver-location-card strong,
.driver-location-card small{
  display:block;
}

.driver-location-card span{
  color:#667085;
  font-size:.76rem;
  font-weight:950;
  text-transform:uppercase;
}

.driver-location-card strong{
  margin-top:5px;
  font-size:1rem;
}

.driver-location-card small{
  margin-top:5px;
  color:#667085;
  font-size:.82rem;
  font-weight:750;
  line-height:1.35;
}

.driver-location-card button{
  min-height:42px;
  background:#111827;
  color:#fff;
  padding:0 14px;
  white-space:nowrap;
}

.driver-location-card button:disabled{
  opacity:.6;
}

.driver-app-summary{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.driver-app-summary article{
  min-height:82px;
  border:1px solid #dbe3ee;
  border-radius:18px;
  background:#fff;
  padding:12px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.driver-app-summary span{
  display:block;
  color:#667085;
  font-size:.75rem;
  font-weight:950;
  text-transform:uppercase;
}

.driver-app-summary strong{
  display:block;
  margin-top:12px;
  font-size:1.55rem;
  line-height:1;
}

.driver-next-card{
  margin-top:14px;
  border-radius:24px;
  background:#111827;
  color:#fff;
  padding:18px;
  box-shadow:0 18px 38px rgba(16,24,39,.2);
}

.driver-next-card.is-empty{
  background:#fff;
  color:#101827;
  border:1px solid #dbe3ee;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.driver-next-card span,
.driver-next-card strong,
.driver-next-card p{
  display:block;
}

.driver-next-card span{
  color:#9ee6d8;
  font-size:.78rem;
  font-weight:950;
  text-transform:uppercase;
}

.driver-next-card.is-empty span{
  color:#667085;
}

.driver-next-card strong{
  margin-top:8px;
  font-size:1.45rem;
  line-height:1.08;
}

.driver-next-card p{
  margin:10px 0 0;
  color:rgba(255,255,255,.78);
  font-size:.95rem;
  font-weight:750;
  line-height:1.35;
}

.driver-next-card.is-empty p{
  color:#667085;
}

.driver-next-card div{
  margin-top:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.driver-next-card small{
  color:rgba(255,255,255,.8);
  font-weight:950;
}

.driver-next-card button{
  min-height:42px;
  background:#fff;
  color:#101827;
  padding:0 18px;
}

.driver-app-section{
  margin-top:18px;
}

.driver-app-section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
}

.driver-app-section-title strong,
.driver-app-section-title span{
  display:block;
}

.driver-app-section-title strong{
  font-size:1.08rem;
}

.driver-app-section-title span{
  max-width:240px;
  color:#667085;
  font-size:.82rem;
  font-weight:750;
  line-height:1.25;
  text-align:right;
}

.driver-route-list,
.driver-stop-list{
  margin-top:10px;
  display:grid;
  gap:10px;
}

.driver-app-route{
  border:1px solid #dbe3ee;
  border-radius:20px;
  background:#fff;
  padding:12px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.driver-app-route.is-selected{
  border-color:#111827;
  box-shadow:0 14px 30px rgba(15,23,42,.1);
}

.driver-app-route>button:first-child{
  min-width:0;
  border:0;
  background:transparent;
  color:#101827;
  padding:0;
  text-align:left;
}

.driver-route-status{
  width:max-content;
  display:block;
  border-radius:999px;
  padding:5px 8px;
  font-size:.72rem;
  font-weight:950;
}

.driver-app-route strong,
.driver-app-route small{
  display:block;
}

.driver-app-route strong{
  margin-top:9px;
  font-size:1.04rem;
}

.driver-app-route small{
  margin-top:5px;
  color:#667085;
  font-size:.84rem;
  font-weight:800;
}

.driver-start-route{
  min-height:42px;
  background:#0f766e;
  color:#fff;
  padding:0 14px;
}

.driver-app-empty{
  border:1px dashed #cbd5e1;
  border-radius:20px;
  background:#fff;
  padding:22px;
  color:#667085;
  text-align:center;
}

.driver-app-empty strong,
.driver-app-empty span{
  display:block;
}

.driver-app-empty strong{
  color:#101827;
  margin-bottom:6px;
}

.driver-stop-card{
  border:1px solid #dbe3ee;
  border-radius:20px;
  background:#fff;
  padding:14px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.driver-stop-card.is-delivered{
  background:#f0fdfa;
  border-color:rgba(15,118,110,.28);
}

.driver-stop-main span,
.driver-stop-main strong,
.driver-stop-main small{
  display:block;
}

.driver-stop-main span{
  color:#0f766e;
  font-size:.78rem;
  font-weight:950;
  text-transform:uppercase;
}

.driver-stop-main strong{
  margin-top:7px;
  font-size:1.18rem;
}

.driver-stop-main small{
  margin-top:7px;
  color:#667085;
  font-size:.9rem;
  font-weight:750;
  line-height:1.35;
}

.driver-stop-actions{
  margin-top:14px;
  display:grid;
  grid-template-columns:1fr 1.35fr;
  gap:10px;
}

.driver-stop-actions button{
  min-height:44px;
  background:#eef2f7;
  color:#101827;
}

.driver-stop-actions button:last-child{
  background:#111827;
  color:#fff;
}

.driver-stop-actions button:disabled{
  background:#eef2f7;
  color:#667085;
  cursor:not-allowed;
}

.driver-bottom-nav{
  position:fixed;
  left:50%;
  bottom:12px;
  z-index:25;
  width:min(452px,calc(100vw - 24px));
  transform:translateX(-50%);
  border:1px solid rgba(219,227,238,.9);
  border-radius:24px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(18px);
  padding:8px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  box-shadow:0 18px 40px rgba(15,23,42,.18);
}

.driver-bottom-nav button{
  min-height:42px;
  border:0;
  border-radius:18px;
  background:transparent;
  color:#667085;
  font-size:.84rem;
  font-weight:950;
}

.driver-bottom-nav button.is-active{
  background:#111827;
  color:#fff;
}

@media (min-width:760px){
  body.portal-driver .auth-screen,
  body.is-driver{
    background:
      linear-gradient(135deg,rgba(15,118,110,.18),transparent 32%),
      linear-gradient(315deg,rgba(193,18,31,.16),transparent 28%),
      #101827;
  }

  body.portal-driver .auth-layout{
    max-width:430px;
    min-height:calc(100dvh - 48px);
    margin:24px auto;
    border-radius:30px;
    overflow:hidden;
  }

  .driver-mobile-app{
    min-height:calc(100dvh - 32px);
    margin:16px auto;
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 28px 80px rgba(0,0,0,.28);
  }
}

@media (max-width:380px){
  .driver-mobile-app{padding:12px 10px 88px}
  .driver-app-hero strong{font-size:1.72rem}
  .driver-location-card{grid-template-columns:1fr}
  .driver-location-card button{width:100%}
  .driver-app-summary{gap:7px}
  .driver-app-summary article{padding:10px}
  .driver-app-section-title{align-items:flex-start;flex-direction:column}
  .driver-app-section-title span{text-align:left}
  .driver-app-route{grid-template-columns:1fr}
  .driver-start-route{width:100%}
}

.driver-mobile-app{
  min-height:100dvh;
  max-width:430px;
  padding:14px 14px 28px;
  background:#eef2f7;
}

.driver-app-hero{
  min-height:72px;
  padding:16px;
  border:0;
  border-radius:20px;
  background:#101827;
  align-items:center;
  box-shadow:0 14px 30px rgba(16,24,39,.18);
}

.driver-app-hero span{
  font-size:.86rem;
  color:rgba(255,255,255,.68);
}

.driver-app-hero strong{
  margin-top:2px;
  font-size:1.62rem;
  letter-spacing:0;
}

.driver-app-hero button{
  min-width:72px;
  background:rgba(255,255,255,.12);
}

.driver-location-card{
  margin-top:12px;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  border:1px solid #d7e0ec;
  border-radius:18px;
  padding:14px;
  box-shadow:none;
}

.driver-location-card.is-active{
  border-color:#99d8c9;
  background:#ecfdf7;
}

.driver-location-card.has-warning{
  border-color:#fed7aa;
  background:#fff7ed;
}

.driver-location-card strong{
  margin:0;
  font-size:1rem;
}

.driver-location-card small{
  margin-top:3px;
  font-size:.82rem;
}

.driver-location-card button{
  min-height:40px;
  padding:0 13px;
  border-radius:14px;
  background:#101827;
}

.driver-app-section{
  margin-top:16px;
}

.driver-app-section-title{
  align-items:center;
}

.driver-app-section-title strong{
  font-size:1rem;
}

.driver-app-section-title span{
  width:auto;
  max-width:none;
  min-width:30px;
  border-radius:999px;
  background:#fff;
  padding:5px 10px;
  text-align:center;
  color:#53627a;
  font-size:.82rem;
}

.driver-route-list,
.driver-stop-list{
  gap:9px;
}

.driver-app-route{
  grid-template-columns:minmax(0,1fr) auto;
  border-radius:18px;
  padding:12px;
  box-shadow:none;
}

.driver-app-route.is-selected{
  border-color:#101827;
  box-shadow:0 10px 24px rgba(16,24,39,.08);
}

.driver-route-select{
  border:0;
  background:transparent;
  color:#101827;
  padding:0;
  text-align:left;
}

.driver-app-route strong{
  margin:0;
  font-size:1rem;
}

.driver-app-route small{
  margin-top:5px;
  font-size:.82rem;
}

.driver-start-route{
  min-height:38px;
  border-radius:14px;
  background:#0f766e;
}

.driver-next-card{
  margin-top:12px;
  border:1px solid #111827;
  border-radius:18px;
  background:#fff;
  color:#101827;
  padding:12px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:8px;
  align-items:center;
  box-shadow:none;
}

.driver-next-card span,
.driver-next-card strong,
.driver-next-card small{
  display:block;
}

.driver-next-card span{
  color:#0f766e;
  font-size:.72rem;
}

.driver-next-card strong{
  margin:3px 0 0;
  font-size:1.1rem;
}

.driver-next-card small{
  color:#53627a;
  font-size:.82rem;
  font-weight:850;
}

.driver-next-card button{
  min-height:38px;
  border-radius:14px;
  padding:0 12px;
}

.driver-next-card button:first-of-type{
  background:#eef2f7;
  color:#101827;
}

.driver-next-card button:last-of-type{
  background:#101827;
  color:#fff;
}

.driver-next-card button:disabled{
  opacity:.5;
  cursor:not-allowed;
}

.driver-stop-card{
  border-radius:18px;
  padding:12px;
  box-shadow:none;
}

.driver-stop-card.is-next{
  border-color:#101827;
}

.driver-stop-main span{
  color:#53627a;
  font-size:.72rem;
}

.driver-stop-card.is-next .driver-stop-main span{
  color:#0f766e;
}

.driver-stop-main strong{
  margin-top:5px;
  font-size:1.06rem;
}

.driver-stop-main small{
  margin-top:5px;
  font-size:.85rem;
}

.driver-stop-actions{
  margin-top:12px;
  grid-template-columns:1fr 1fr;
}

.driver-stop-actions button{
  min-height:42px;
  border-radius:14px;
}

.driver-bottom-nav,
.driver-app-summary{
  display:none!important;
}

@media (min-width:760px){
  .driver-mobile-app{
    min-height:calc(100dvh - 32px);
    margin:16px auto;
    border-radius:26px;
  }
}

@media (max-width:380px){
  .driver-mobile-app{padding:12px 10px 24px}
  .driver-app-hero strong{font-size:1.45rem}
  .driver-location-card{grid-template-columns:1fr}
  .driver-location-card button{width:100%}
  .driver-app-route{grid-template-columns:1fr}
  .driver-start-route{width:100%}
  .driver-next-card{grid-template-columns:1fr}
  .driver-next-card button{width:100%}
}

/* Tema mobile do entregador */
body.portal-driver{
  --ml-yellow:#ffe600;
  --ml-yellow-soft:#fff7bf;
  --ml-blue:#3483fa;
  --ml-blue-dark:#2968c8;
  --ml-navy:#23315f;
  --ml-ink:#2d343b;
  --ml-muted:#6f7782;
  --ml-bg:#ededed;
  --ml-card:#ffffff;
  --ml-border:#d8dde4;
}

body.portal-driver.auth-locked,
body.portal-driver.is-authenticated,
body.is-driver{
  background:var(--ml-bg);
}

body.portal-driver .auth-screen{
  min-height:100dvh;
  padding:0;
  align-items:stretch;
  background:var(--ml-bg);
}

body.portal-driver .auth-layout{
  width:100%;
  min-height:100dvh;
  display:grid;
  grid-template-columns:1fr;
  border:0;
  border-radius:0;
  background:var(--ml-bg);
  box-shadow:none;
}

body.portal-driver .auth-panel{
  min-height:268px;
  padding:28px 22px 52px;
  color:var(--ml-navy);
  background:
    radial-gradient(circle at 86% 18%,rgba(255,255,255,.55) 0 56px,transparent 57px),
    linear-gradient(180deg,#fff36d 0%,var(--ml-yellow) 100%);
}

body.portal-driver .auth-logo{
  width:56px;
  height:56px;
  border:0;
  border-radius:18px;
  background:#fff;
  color:var(--ml-blue);
  box-shadow:0 10px 24px rgba(45,52,59,.12);
}

body.portal-driver .auth-panel p{
  color:rgba(35,49,95,.76);
}

body.portal-driver .auth-panel strong{
  max-width:300px;
  color:var(--ml-navy);
  font-size:2.25rem;
}

body.portal-driver .auth-panel small{
  max-width:310px;
  color:rgba(35,49,95,.75);
  font-weight:800;
}

body.portal-driver .auth-card{
  width:calc(100% - 28px);
  margin:-30px auto 0;
  padding:26px 18px 30px;
  justify-content:flex-start;
  border:1px solid rgba(216,221,228,.9);
  border-radius:24px 24px 0 0;
  background:var(--ml-card);
  box-shadow:0 -6px 24px rgba(45,52,59,.08);
}

body.portal-driver .auth-card .eyebrow{
  color:var(--ml-blue-dark);
}

body.portal-driver .auth-card h1{
  color:var(--ml-ink);
  font-size:2rem;
}

body.portal-driver .auth-copy{
  color:var(--ml-muted);
}

body.portal-driver .auth-card label{
  color:var(--ml-ink);
}

body.portal-driver .auth-card input{
  height:54px;
  border:1px solid var(--ml-border);
  border-radius:14px;
  background:#f7f8fa;
  color:var(--ml-ink);
}

body.portal-driver .auth-card input:focus{
  border-color:var(--ml-blue);
  background:#fff;
  box-shadow:0 0 0 4px rgba(52,131,250,.16);
}

body.portal-driver .auth-submit{
  min-height:54px;
  border-radius:14px;
  background:var(--ml-blue);
  color:#fff;
  box-shadow:0 12px 24px rgba(52,131,250,.24);
}

body.portal-driver .auth-submit:hover{
  background:var(--ml-blue-dark);
}

body.portal-driver .auth-mode-link{
  min-height:48px;
  border-radius:14px;
  background:#f3f5f8;
  color:var(--ml-blue-dark);
}

body.portal-driver .driver-shell{
  background:var(--ml-bg);
}

body.portal-driver .driver-mobile-app{
  min-height:100dvh;
  max-width:430px;
  margin:0 auto;
  padding:0 14px 28px;
  background:var(--ml-bg);
  color:var(--ml-ink);
}

body.portal-driver .driver-app-hero{
  min-height:118px;
  margin:0 -14px;
  padding:22px 18px 20px;
  border:0;
  border-radius:0 0 24px 24px;
  color:var(--ml-navy);
  background:
    radial-gradient(circle at 88% 20%,rgba(255,255,255,.55) 0 46px,transparent 47px),
    linear-gradient(180deg,#fff36d 0%,var(--ml-yellow) 100%);
  box-shadow:0 10px 26px rgba(45,52,59,.12);
}

body.portal-driver .driver-app-hero span{
  color:rgba(35,49,95,.72);
  font-weight:950;
}

body.portal-driver .driver-app-hero strong{
  color:var(--ml-navy);
  font-size:1.9rem;
}

body.portal-driver .driver-app-hero button{
  min-width:70px;
  min-height:38px;
  border-radius:14px;
  background:#fff;
  color:var(--ml-blue-dark);
  box-shadow:0 8px 18px rgba(45,52,59,.1);
}

body.portal-driver .driver-location-card,
body.portal-driver .driver-app-route,
body.portal-driver .driver-next-card,
body.portal-driver .driver-stop-card,
body.portal-driver .driver-app-empty{
  border:1px solid var(--ml-border);
  background:var(--ml-card);
  color:var(--ml-ink);
  box-shadow:0 8px 20px rgba(45,52,59,.07);
}

body.portal-driver .driver-location-card{
  margin-top:14px;
  border-radius:18px;
}

body.portal-driver .driver-location-card.is-active{
  border-color:#80d7ad;
  background:#f0fff8;
}

body.portal-driver .driver-location-card.has-warning{
  border-color:#f5d169;
  background:#fffbe6;
}

body.portal-driver .driver-location-card strong{
  color:var(--ml-ink);
}

body.portal-driver .driver-location-card small,
body.portal-driver .driver-app-route small,
body.portal-driver .driver-stop-main small,
body.portal-driver .driver-next-card small{
  color:var(--ml-muted);
}

body.portal-driver .driver-location-card button,
body.portal-driver .driver-next-card button:last-of-type,
body.portal-driver .driver-stop-actions button:last-child{
  background:var(--ml-blue);
  color:#fff;
}

body.portal-driver .driver-location-card button:hover,
body.portal-driver .driver-next-card button:last-of-type:hover,
body.portal-driver .driver-stop-actions button:last-child:hover{
  background:var(--ml-blue-dark);
}

body.portal-driver .driver-app-section-title strong{
  color:var(--ml-ink);
}

body.portal-driver .driver-app-section-title span{
  background:#fff;
  color:var(--ml-blue-dark);
}

body.portal-driver .driver-app-route{
  border-radius:18px;
}

body.portal-driver .driver-app-route.is-selected{
  border-color:var(--ml-blue);
  box-shadow:0 10px 22px rgba(52,131,250,.14);
}

body.portal-driver .driver-route-select{
  color:var(--ml-ink);
}

body.portal-driver .driver-start-route{
  border-radius:14px;
  background:var(--ml-yellow);
  color:var(--ml-navy);
  box-shadow:none;
}

body.portal-driver .driver-next-card{
  border-color:var(--ml-blue);
  border-radius:18px;
}

body.portal-driver .driver-next-card span,
body.portal-driver .driver-stop-card.is-next .driver-stop-main span{
  color:var(--ml-blue-dark);
}

body.portal-driver .driver-next-card button:first-of-type,
body.portal-driver .driver-stop-actions button:first-child{
  background:#eaf2ff;
  color:var(--ml-blue-dark);
}

body.portal-driver .driver-next-card button:disabled,
body.portal-driver .driver-stop-actions button:disabled{
  background:#edf0f4;
  color:#8b95a1;
  box-shadow:none;
}

body.portal-driver .driver-stop-card.is-delivered{
  border-color:#92d7b5;
  background:#f0fff8;
}

body.portal-driver .driver-stop-main span{
  color:#87909c;
}

body.portal-driver .toast{
  left:14px;
  right:14px;
  top:14px;
  bottom:auto;
  min-width:0;
  max-width:none;
  border-radius:16px;
  background:#23315f;
  box-shadow:0 14px 34px rgba(35,49,95,.24);
  transform:translateY(-16px);
}

body.portal-driver .toast.is-visible{
  transform:translateY(0);
}

@media (min-width:760px){
  body.portal-driver .auth-screen,
  body.portal-driver.is-authenticated,
  body.is-driver{
    background:#d9dde4;
  }

  body.portal-driver .auth-layout,
  body.portal-driver .driver-mobile-app{
    max-width:430px;
    min-height:calc(100dvh - 32px);
    margin:16px auto;
    overflow:hidden;
    border-radius:28px;
    box-shadow:0 28px 70px rgba(45,52,59,.22);
  }

  body.portal-driver .auth-card{
    width:100%;
    border-radius:24px 24px 0 0;
  }

  body.portal-driver .driver-app-hero{
    margin:0 -14px;
  }
}

@media (max-width:380px){
  body.portal-driver .auth-panel{
    min-height:246px;
    padding:24px 18px 48px;
  }

  body.portal-driver .auth-card{
    width:calc(100% - 20px);
    padding:22px 16px 28px;
  }

  body.portal-driver .driver-mobile-app{
    padding:0 10px 24px;
  }

  body.portal-driver .driver-app-hero{
    margin:0 -10px;
    padding:20px 14px 18px;
  }
}

body.portal-driver .driver-home-card{
  margin-top:14px;
  border:1px solid var(--ml-border);
  border-radius:20px;
  background:#fff;
  padding:18px;
  box-shadow:0 8px 20px rgba(45,52,59,.07);
}

body.portal-driver .driver-home-card span,
body.portal-driver .driver-home-card strong{
  display:block;
}

body.portal-driver .driver-home-card span{
  color:var(--ml-blue-dark);
  font-size:.82rem;
  font-weight:950;
}

body.portal-driver .driver-home-card strong{
  margin-top:7px;
  color:var(--ml-ink);
  font-size:1.35rem;
  line-height:1.12;
}

body.portal-driver .driver-home-card button{
  width:100%;
  min-height:54px;
  margin-top:18px;
  border:0;
  border-radius:16px;
  background:var(--ml-blue);
  color:#fff;
  font-weight:950;
  box-shadow:0 12px 24px rgba(52,131,250,.22);
}

body.portal-driver .driver-day-routes{
  margin-top:14px;
  display:grid;
  gap:10px;
}

body.portal-driver .driver-day-route{
  width:100%;
  min-height:82px;
  border:1px solid var(--ml-border);
  border-radius:18px;
  background:#fff;
  color:var(--ml-ink);
  padding:14px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  text-align:left;
  box-shadow:0 8px 20px rgba(45,52,59,.06);
}

body.portal-driver .driver-day-route strong,
body.portal-driver .driver-day-route small{
  display:block;
}

body.portal-driver .driver-day-route strong{
  font-size:1.08rem;
}

body.portal-driver .driver-day-route small{
  margin-top:5px;
  color:var(--ml-muted);
  font-weight:850;
}

body.portal-driver .driver-day-route>span{
  border-radius:999px;
  background:#fff8c8;
  color:var(--ml-navy);
  padding:7px 10px;
  font-size:.82rem;
  font-weight:950;
  white-space:nowrap;
}

body.portal-driver .driver-day-route.is-done{
  opacity:.72;
  cursor:not-allowed;
}

body.portal-driver .driver-day-route.is-done>span{
  background:#edf0f4;
  color:#7b8490;
}

body.portal-driver .driver-route-modal{
  position:fixed;
  inset:0;
  z-index:70;
  display:flex;
  flex-direction:column;
  background:var(--ml-bg);
  color:var(--ml-ink);
}

body.portal-driver .driver-route-modal-head{
  padding:14px 14px 12px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:12px;
  align-items:center;
  background:var(--ml-yellow);
  box-shadow:0 8px 20px rgba(45,52,59,.12);
}

body.portal-driver .driver-route-modal-head button{
  min-height:42px;
  border:0;
  border-radius:14px;
  background:#fff;
  color:var(--ml-blue-dark);
  padding:0 14px;
  font-weight:950;
}

body.portal-driver .driver-route-modal-head strong,
body.portal-driver .driver-route-modal-head small{
  display:block;
}

body.portal-driver .driver-route-modal-head strong{
  color:var(--ml-navy);
  font-size:1.15rem;
}

body.portal-driver .driver-route-modal-head small{
  margin-top:3px;
  color:rgba(35,49,95,.75);
  font-weight:850;
}

body.portal-driver .driver-route-packages{
  flex:1;
  min-height:0;
  overflow:auto;
  padding:12px 12px 98px;
  display:grid;
  align-content:start;
  gap:10px;
}

body.portal-driver .driver-location-banner{
  margin:12px 12px 0;
  border:1px solid #f0ce4c;
  border-radius:16px;
  background:#fffbe6;
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

body.portal-driver .driver-location-banner.is-active{
  border-color:#88d2ad;
  background:#f0fff8;
}

body.portal-driver .driver-location-banner strong,
body.portal-driver .driver-location-banner span{
  display:block;
}

body.portal-driver .driver-location-banner strong{
  color:var(--ml-ink);
}

body.portal-driver .driver-location-banner span{
  color:var(--ml-muted);
  font-size:.84rem;
  font-weight:850;
}

body.portal-driver .driver-location-banner button{
  min-height:38px;
  border:0;
  border-radius:14px;
  background:var(--ml-blue);
  color:#fff;
  padding:0 12px;
  font-weight:950;
}

body.portal-driver .driver-route-modal .driver-next-card{
  margin:12px 12px 0;
  grid-template-columns:1fr 1fr;
}

body.portal-driver .driver-route-modal .driver-next-card span,
body.portal-driver .driver-route-modal .driver-next-card strong,
body.portal-driver .driver-route-modal .driver-next-card small{
  grid-column:1/-1;
}

body.portal-driver .driver-route-modal .driver-next-card button{
  width:100%;
}

body.portal-driver .driver-route-modal-footer{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:72;
  padding:12px;
  background:linear-gradient(180deg,rgba(237,237,237,0),var(--ml-bg) 28%);
}

body.portal-driver .driver-route-modal-footer button{
  width:100%;
  min-height:56px;
  border:0;
  border-radius:16px;
  background:var(--ml-yellow);
  color:var(--ml-navy);
  font-size:1rem;
  font-weight:950;
  box-shadow:0 12px 24px rgba(45,52,59,.16);
}

body.portal-driver .driver-route-modal-footer button:disabled{
  background:#fff;
  color:var(--ml-muted);
  box-shadow:none;
}

body.portal-driver .driver-bottom-sheet{
  position:fixed;
  inset:0;
  z-index:90;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:12px;
  background:rgba(45,52,59,.48);
}

body.portal-driver .driver-sheet-card{
  width:min(430px,100%);
  border-radius:24px 24px 18px 18px;
  background:#fff;
  padding:18px;
  position:relative;
  display:grid;
  gap:10px;
  box-shadow:0 -10px 34px rgba(45,52,59,.2);
}

body.portal-driver .driver-sheet-close{
  position:absolute;
  top:12px;
  right:12px;
  width:38px;
  height:38px;
  border:0;
  border-radius:14px;
  background:#f0f2f5;
  color:var(--ml-ink);
  font-size:1.25rem;
  font-weight:950;
}

body.portal-driver .driver-sheet-card>span{
  color:var(--ml-blue-dark);
  font-size:.82rem;
  font-weight:950;
}

body.portal-driver .driver-sheet-card>strong{
  max-width:calc(100% - 48px);
  color:var(--ml-ink);
  line-height:1.28;
}

body.portal-driver .driver-sheet-card>button:not(.driver-sheet-close),
body.portal-driver .driver-proof-form>button:not(.driver-sheet-close){
  width:100%;
  min-height:50px;
  border:0;
  border-radius:16px;
  background:var(--ml-blue);
  color:#fff;
  font-weight:950;
}

body.portal-driver .driver-sheet-card>button:nth-of-type(2){
  background:#eaf2ff;
  color:var(--ml-blue-dark);
}

body.portal-driver .driver-proof-form label{
  display:grid;
  gap:7px;
  color:var(--ml-ink);
  font-weight:900;
}

body.portal-driver .driver-proof-form input{
  width:100%;
  border:1px solid var(--ml-border);
  border-radius:14px;
  background:#f7f8fa;
  padding:12px;
  color:var(--ml-muted);
}

body.portal-driver .driver-proof-form label small{
  color:#8b95a1;
  font-size:.78rem;
  font-weight:850;
}

body.portal-driver .driver-proof-form label small.is-loaded{
  color:#0f8f5f;
}

@media (min-width:760px){
  body.portal-driver .driver-route-modal{
    width:430px;
    left:50%;
    right:auto;
    transform:translateX(-50%);
    border-radius:28px;
    overflow:hidden;
    box-shadow:0 28px 70px rgba(45,52,59,.22);
  }

  body.portal-driver .driver-route-modal-footer{
    width:430px;
    left:50%;
    right:auto;
    transform:translateX(-50%);
  }
}

@media print{
  @page{margin:0}
  @page pdf-page{size:A4;margin:0}
  @page letter-page{size:649.5pt 323.25pt;margin:0}
  html,body{background:#fff}
  body{padding:0}
  .app-shell,.fine-dialog,.toast{display:none!important}
  .letter-area,.letter-batch{display:none}
  .pdf-area{
    position:static!important;
    width:210mm;
    height:297mm;
  }
  body.printing-letter .pdf-area,
  body.printing-letter-batch .pdf-area{
    display:none!important;
  }
  body.printing-letter .letter-area,
  body.printing-letter-batch .letter-batch{
    display:block!important;
    position:static!important;
    width:649.5pt;
  }
  .sheet{
    page:pdf-page;
    margin:0;
    width:210mm;
    height:297mm;
    box-shadow:none;
  }
  body.printing-letter,
  body.printing-letter-batch{
    width:649.5pt!important;
    height:323.25pt!important;
  }
  .letter-sheet{
    page:letter-page;
    margin:0;
    width:649.5pt;
    height:323.25pt;
    box-shadow:none;
    break-after:page;
    page-break-after:always;
  }
  body.printing-letter .letter-sheet,
  body.printing-letter-batch .letter-sheet:last-child{
    break-after:auto;
    page-break-after:auto;
  }
}
