:root {
  color-scheme: light;
  --ink: #0b2a4a;
  --ink-2: #173a5e;
  --muted: #687582;
  --muted-2: #8c98a3;
  --canvas: #f3f5f6;
  --paper: #ffffff;
  --line: #dfe5e8;
  --line-strong: #cbd4d9;
  --amber: #f5a800;
  --amber-soft: #fff1ca;
  --blue: #176b87;
  --blue-soft: #e5f4f8;
  --green: #2c7a57;
  --green-soft: #e9f7f0;
  --red: #c54b3e;
  --red-soft: #fff0ed;
  --orange: #d96c17;
  --orange-soft: #fff2e8;
  --shadow: 0 18px 60px rgba(15, 28, 38, 0.11);
  --shadow-soft: 0 8px 24px rgba(15, 28, 38, 0.07);
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  overflow: hidden;
  color: #f8fbfc;
  background:
    radial-gradient(circle at 12% 20%, rgba(245, 168, 0, 0.19), transparent 30%),
    linear-gradient(135deg, #061627 0%, #0b2a4a 55%, #071d34 100%);
  padding: clamp(24px, 5vw, 64px);
  position: relative;
}

.login-screen::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -220px;
  bottom: -270px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.022), 0 0 0 160px rgba(255, 255, 255, 0.016);
}

.login-brand,
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand {
  position: relative;
  z-index: 1;
}

.login-brand strong,
.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.login-brand small,
.brand small {
  display: block;
  margin-top: 3px;
  color: #a9b7c0;
  font-size: 0.75rem;
}

.brand-icon {
  display: block;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(245, 168, 0, 0.18);
}

.brand-icon-small {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.login-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  align-items: center;
  gap: clamp(48px, 9vw, 150px);
  width: min(1180px, 100%);
  min-height: calc(100vh - 174px);
  margin: 30px auto 0;
}

.login-copy {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.login-copy h1 {
  max-width: 650px;
  margin: 20px 0 18px;
  font-size: clamp(2.65rem, 5.6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.login-copy > p {
  max-width: 520px;
  margin: 0;
  color: #bbc6cc;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.login-signal {
  display: flex;
  gap: 26px;
  margin-top: 48px;
  color: #9baab3;
  font-size: 0.84rem;
}

.login-signal span {
  display: grid;
  gap: 2px;
}

.login-signal b {
  color: #fff;
  font-size: 1.45rem;
}

.login-card {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.access-chip,
.connection-label {
  width: max-content;
  color: #29323a;
  background: var(--amber);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.access-chip {
  padding: 7px 10px;
}

.login-card h2 {
  margin: 25px 0 4px;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}

.login-card > p {
  margin: 0 0 24px;
  color: #b7c3ca;
  font-size: 0.9rem;
}

.login-form {
  display: grid;
  gap: 15px;
}

.login-form .field > span {
  color: #dce5ea;
}

.login-form .field input {
  min-height: 48px;
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(4, 18, 32, 0.42);
}

.login-form .field input:focus {
  border-color: var(--amber);
  outline-color: rgba(245, 168, 0, 0.2);
}

.login-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 3px;
}

.role-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.role-card:hover,
.role-card:focus-visible {
  outline: none;
  border-color: rgba(245, 168, 0, 0.65);
  background: rgba(245, 168, 0, 0.1);
  transform: translateY(-1px);
}

.role-card strong,
.role-card small {
  display: block;
}

.role-card strong {
  font-size: 0.95rem;
}

.role-card small {
  margin-top: 3px;
  color: #aab8c0;
  font-size: 0.78rem;
}

.role-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  font-weight: 900;
}

.role-icon-admin {
  color: #e8f8fd;
  background: rgba(38, 140, 174, 0.3);
}

.role-icon-driver {
  color: #322400;
  background: var(--amber);
}

.role-card .arrow {
  color: var(--amber);
  font-size: 1.4rem;
  transition: 160ms ease;
}

.role-card:hover .arrow {
  transform: translateX(3px);
}

.login-card .login-note {
  margin: 18px 0 0;
  color: #82939d;
  font-size: 0.75rem;
  text-align: center;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 260px;
  height: 100vh;
  padding: 22px 18px;
  color: #eaf0f3;
  background: var(--ink);
}

.sidebar-brand {
  padding: 0 8px 20px;
}

.company-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 18px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.company-avatar,
.user-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  font-weight: 900;
}

.company-avatar {
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: var(--amber);
  font-size: 0.75rem;
}

.company-switcher span:last-child {
  min-width: 0;
}

.company-switcher small {
  display: block;
  color: #788a96;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.company-switcher strong {
  display: block;
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav {
  display: grid;
  gap: 5px;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  color: #93a3ad;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.nav-button svg,
.mobile-nav button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-button:hover {
  color: #e8eef1;
  background: rgba(255, 255, 255, 0.045);
}

.nav-button.active {
  color: var(--ink);
  background: var(--amber);
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.signed-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  color: #d9f1f8;
  background: #244554;
  font-size: 0.72rem;
}

.signed-user strong,
.signed-user small {
  display: block;
}

.signed-user strong {
  font-size: 0.78rem;
}

.signed-user small {
  color: #788a96;
  font-size: 0.68rem;
}

.text-button {
  margin-top: 11px;
  padding: 0;
  border: 0;
  color: var(--amber);
  background: none;
  font-size: 0.75rem;
  cursor: pointer;
}

.main-content {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(20px, 3.5vw, 52px);
  border-bottom: 1px solid rgba(203, 212, 217, 0.8);
  background: rgba(243, 245, 246, 0.9);
  backdrop-filter: blur(14px);
}

.topbar h1 {
  margin: 2px 0 0;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.topbar-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.connection-label {
  padding: 6px 9px;
}

.connection-label.is-offline {
  color: #fff;
  background: var(--red);
}

.icon-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 2px solid var(--canvas);
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-size: 0.62rem;
  font-weight: 900;
}

.menu-button {
  display: none;
  padding: 11px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  border-radius: 4px;
  background: currentColor;
}

.content-view {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 42px) clamp(20px, 3.5vw, 52px) 90px;
}

.view-head,
.section-head,
.list-head,
.task-head,
.card-row,
.modal-head,
.popover-head,
.finance-row,
.table-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.view-head {
  align-items: flex-end;
  margin-bottom: 24px;
}

.view-head h2,
.section-head h2 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.view-head p,
.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
  transition: 150ms ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.button:disabled,
.button:disabled:hover {
  opacity: 0.52;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.button-primary {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.button-primary:hover {
  border-color: #293b49;
  background: #293b49;
}

.button-accent {
  border-color: var(--amber);
  color: var(--ink);
  background: var(--amber);
}

.button-danger {
  border-color: #f1b8b0;
  color: #a13428;
  background: var(--red-soft);
}

.button-small {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 0.75rem;
}

.button svg,
.metric-icon svg,
.route-icon svg,
.empty-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.72fr);
  gap: 22px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.metric-card,
.panel,
.task-card,
.dumpster-card,
.client-card,
.finance-card,
.driver-hero,
.empty-state {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(15, 28, 38, 0.02);
}

.metric-card {
  min-height: 140px;
  padding: 19px;
  border-radius: 15px;
}

.metric-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: var(--blue-soft);
}

.metric-card.is-warning .metric-icon {
  color: #8c5e00;
  background: var(--amber-soft);
}

.metric-card.is-danger .metric-icon {
  color: var(--red);
  background: var(--red-soft);
}

.metric-value {
  display: block;
  margin-top: 16px;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-label {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.panel {
  overflow: hidden;
  border-radius: var(--radius);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.attention-list {
  display: grid;
}

.attention-item {
  display: grid;
  grid-template-columns: 10px minmax(130px, 1.1fr) minmax(220px, 1.6fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}

.attention-item:last-child {
  border-bottom: 0;
}

.status-bar {
  align-self: stretch;
  width: 4px;
  border-radius: 99px;
  background: var(--blue);
}

.status-bar.danger {
  background: var(--red);
}

.status-bar.warning {
  background: var(--amber);
}

.attention-item strong,
.attention-item small {
  display: block;
}

.attention-item strong {
  font-size: 0.84rem;
}

.attention-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.attention-address {
  min-width: 0;
}

.attention-address strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #1e5b44;
  background: var(--green-soft);
  font-size: 0.67rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.danger {
  color: #a13a2e;
  background: var(--red-soft);
}

.status-pill.warning {
  color: #8a5b00;
  background: var(--amber-soft);
}

.status-pill.neutral {
  color: #52616c;
  background: #eef1f3;
}

.status-pill.blue {
  color: #176b87;
  background: var(--blue-soft);
}

.right-column {
  display: grid;
  align-content: start;
  gap: 22px;
}

.finance-snapshot {
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(245, 168, 0, 0.14), transparent 42%),
    var(--ink);
}

.finance-snapshot > small {
  color: #91a1ab;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.finance-snapshot h2 {
  margin: 10px 0 22px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.finance-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.finance-mini div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
}

.finance-mini span,
.finance-mini strong {
  display: block;
}

.finance-mini span {
  color: #91a1ab;
  font-size: 0.68rem;
}

.finance-mini strong {
  margin-top: 4px;
  font-size: 0.88rem;
}

.quick-panel {
  padding: 20px;
}

.quick-panel h3 {
  margin: 0 0 14px;
  font-size: 0.93rem;
}

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

.quick-actions .button {
  justify-content: flex-start;
}

.table-panel {
  overflow-x: auto;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.table-top {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.search-wrap {
  position: relative;
  width: min(340px, 100%);
}

.search-wrap svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  transform: translateY(-50%);
}

.search-input,
.filter-select,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.82rem;
}

.search-input {
  padding: 9px 12px 9px 40px;
}

.filter-select {
  width: auto;
  min-width: 160px;
  padding: 8px 34px 8px 12px;
}

.search-input:focus,
.filter-select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(23, 107, 135, 0.12);
  border-color: var(--blue);
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  background: #fafbfb;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.data-table td {
  font-size: 0.79rem;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fbfcfc;
}

.cell-primary,
.cell-secondary {
  display: block;
}

.cell-primary {
  font-weight: 750;
}

.cell-secondary {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

/* Nasceu como botão de ícone com 34px fixos, mas é usado com texto
   ("Maps", "Renovar", "Pagamento"). A largura fixa cortava o rótulo. */
.tiny-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.tiny-button svg {
  width: 15px;
  height: 15px;
}

.tiny-button:hover {
  color: var(--blue);
  border-color: #acd0dc;
  background: var(--blue-soft);
}

.tiny-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.operations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 17px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.tab-button {
  min-height: 36px;
  padding: 7px 13px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.tab-button.active {
  color: #fff;
  background: var(--ink);
}

.task-list {
  display: grid;
  gap: 12px;
}

.task-card {
  padding: 18px;
  border-radius: 15px;
}

.task-card.is-overdue {
  border-left: 4px solid var(--red);
}

.task-card.is-today {
  border-left: 4px solid var(--amber);
}

.task-card.is-upcoming {
  border-left: 4px solid var(--blue);
}

.task-type {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.task-time {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.task-card h3 {
  margin: 8px 0 3px;
  font-size: 1rem;
}

.task-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.task-meta span {
  padding: 5px 8px;
  border-radius: 8px;
  color: #53616b;
  background: #f0f3f4;
  font-size: 0.68rem;
  font-weight: 650;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.route-summary {
  position: sticky;
  top: 108px;
  padding: 20px;
}

.route-summary h3 {
  margin: 0;
  font-size: 0.95rem;
}

.route-summary > p {
  margin: 5px 0 18px;
  color: var(--muted);
  font-size: 0.75rem;
}

.route-point {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding-bottom: 18px;
}

.route-point:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 32px;
  bottom: 2px;
  left: 16px;
  width: 1px;
  background: var(--line-strong);
}

.route-index {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.72rem;
  font-weight: 900;
}

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

.route-point strong {
  font-size: 0.78rem;
}

.route-point small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.69rem;
}

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

.dumpster-card,
.client-card {
  padding: 18px;
  border-radius: 15px;
}

.dumpster-code {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: var(--amber-soft);
  font-size: 0.84rem;
  font-weight: 950;
}

.dumpster-card h3,
.client-card h3 {
  margin: 16px 0 4px;
  font-size: 0.95rem;
}

.dumpster-card p,
.client-card p {
  min-height: 38px;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.card-footer small {
  color: var(--muted);
  font-size: 0.68rem;
}

.client-initials {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #e5f6fb;
  background: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
}

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

.finance-card {
  padding: 20px;
  border-radius: 15px;
}

.finance-card small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.finance-card strong {
  display: block;
  margin-top: 9px;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.finance-card em {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 750;
}

.finance-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
}

.chart-panel {
  padding: 22px;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 13px;
  min-height: 260px;
  padding-top: 30px;
}

.bar-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 4px;
  height: 210px;
}

.bar {
  display: block;
  min-height: 6px;
  border-radius: 5px 5px 2px 2px;
  background: var(--blue);
}

.bar.expense {
  background: var(--amber);
}

.bar-label {
  grid-column: 1 / -1;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.65rem;
  text-align: center;
}

.expense-list {
  display: grid;
}

/* Linha flexível: descrição encolhe, valor e botões nunca saem do painel. */
.expense-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.expense-item > div:not(.inline-actions) {
  flex: 1 1 160px;
  min-width: 0;
}

.expense-item .expense-value {
  margin-left: auto;
  white-space: nowrap;
}

.expense-item .inline-actions {
  flex: 0 0 auto;
}

.expense-item:last-child {
  border-bottom: 0;
}

.expense-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: #865b06;
  background: var(--amber-soft);
  font-size: 0.73rem;
  font-weight: 900;
}

.expense-item strong,
.expense-item small {
  display: block;
}

.expense-item strong {
  font-size: 0.76rem;
}

.expense-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.67rem;
}

.expense-value {
  font-size: 0.78rem;
  font-weight: 850;
}

.driver-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 90% -20%, rgba(245, 168, 0, 0.25), transparent 38%),
    var(--ink);
}

.driver-hero .eyebrow {
  font-size: 0.68rem;
}

.driver-hero h2 {
  margin: 12px 0 5px;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  letter-spacing: -0.045em;
}

.driver-hero p {
  margin: 0;
  color: #aebbc3;
  font-size: 0.86rem;
}

.driver-count {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.driver-count span {
  text-align: center;
}

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

.driver-count strong {
  color: var(--amber);
  font-size: 2rem;
  line-height: 1;
}

.driver-count small {
  margin-top: 4px;
  color: #aebbc3;
  font-size: 0.65rem;
}

.driver-task {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 16px;
  padding: 20px;
}

.driver-task + .driver-task {
  border-top: 1px solid var(--line);
}

.time-block {
  padding: 10px 6px;
  border-radius: 11px;
  color: var(--ink);
  background: var(--amber-soft);
  text-align: center;
}

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

.time-block strong {
  font-size: 1rem;
}

.time-block small {
  color: #755500;
  font-size: 0.62rem;
  font-weight: 800;
}

.driver-task h3 {
  margin: 0;
  font-size: 1rem;
}

.driver-task p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.77rem;
}

.driver-task .task-actions {
  margin-top: 13px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.settings-panel {
  padding: 22px;
}

.settings-panel h3 {
  margin: 0 0 5px;
  font-size: 0.95rem;
}

.settings-panel > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.75rem;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.setting-row strong,
.setting-row small {
  display: block;
}

.setting-row strong {
  font-size: 0.78rem;
}

.setting-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.toggle {
  position: relative;
  width: 43px;
  height: 25px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #c7d0d5;
  cursor: pointer;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: 150ms ease;
}

.toggle.on {
  background: var(--green);
}

.toggle.on::after {
  transform: translateX(18px);
}

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

.report-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.report-card strong,
.report-card small {
  display: block;
}

.report-card strong {
  font-size: 0.84rem;
}

.report-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.report-card .arrow {
  color: var(--blue);
  font-size: 1.35rem;
}

.popover {
  position: fixed;
  z-index: 80;
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.notification-popover {
  top: 72px;
  right: clamp(20px, 3.5vw, 52px);
}

.popover-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.popover-head strong {
  font-size: 0.88rem;
}

.popover-head span {
  color: var(--muted);
  font-size: 0.7rem;
}

.notification-popover #notification-list > button {
  display: grid;
  grid-template-columns: 8px 1fr;
  align-items: start;
  gap: 11px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
}

.notification-popover #notification-list > button:last-child {
  border-bottom: 0;
}

.notification-popover #notification-list > button:hover {
  background: #f8fafb;
}

.notification-popover strong,
.notification-popover small {
  display: block;
}

.notification-popover strong {
  font-size: 0.76rem;
}

.notification-popover small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}

.notice-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.notice-dot-danger {
  background: var(--red);
}

.notice-dot-warning {
  background: var(--amber);
}

.notification-empty {
  padding: 22px 16px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.notice-dot-neutral {
  background: var(--blue);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 14, 19, 0.6);
  backdrop-filter: blur(5px);
}

.modal {
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow-y: auto;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.modal-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.close-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 1.1rem;
  cursor: pointer;
}

.form-body {
  padding: 22px;
}

.form-section + .form-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-section h3 {
  margin: 0 0 13px;
  font-size: 0.86rem;
}

.form-section strong,
.form-section small {
  display: block;
}

.form-section strong {
  font-size: 0.86rem;
}

.form-section small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field > span,
.field label {
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  padding: 9px 11px;
}

.field textarea {
  min-height: 80px;
  resize: vertical;
}

.field-hint {
  color: var(--muted);
  font-size: 0.66rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(197, 75, 62, 0.32);
  border-radius: 10px;
  color: #ffe2dd;
  background: rgba(197, 75, 62, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
}

.modal-form-error {
  margin: 16px 0 0;
  color: #9f3025;
  background: var(--red-soft);
}

.toast-region {
  position: fixed;
  z-index: 120;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
}

.toast {
  width: min(360px, calc(100vw - 40px));
  padding: 14px 16px;
  border: 1px solid #b9dfcc;
  border-radius: 13px;
  color: #174936;
  background: #effaf4;
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  font-weight: 700;
  animation: toast-in 200ms ease;
}

.toast-error {
  border-color: #efbbb4;
  color: #8b2f25;
  background: var(--red-soft);
}

.loading-panel {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 12px;
  border-radius: var(--radius);
  color: var(--muted);
}

.loading-panel p {
  margin: 0;
  font-size: 0.82rem;
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--line);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: loading-spin 700ms linear infinite;
}

@keyframes loading-spin {
  to { transform: rotate(360deg); }
}

.driver-task-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.compact-task-list .task-card {
  box-shadow: none;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

.empty-state {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 15px;
  color: var(--green);
  background: var(--green-soft);
}

.empty-state h3 {
  margin: 0;
  font-size: 1rem;
}

.empty-state p {
  max-width: 420px;
  margin: 5px auto 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.mobile-nav {
  display: none;
}

.sidebar-scrim {
  display: none;
}

@media (max-width: 1180px) {
  .metrics-grid,
  .finance-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dumpster-grid,
  .client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .login-layout {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 40px 0;
  }

  .login-copy {
    max-width: 700px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    box-shadow: var(--shadow);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(8, 14, 19, 0.48);
  }

  .sidebar-scrim.show {
    display: block;
  }

  .menu-button {
    display: grid;
  }

  .dashboard-grid,
  .operations-layout,
  .finance-columns {
    grid-template-columns: 1fr;
  }

  .route-summary {
    position: static;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .login-screen {
    padding: 22px 18px 36px;
  }

  .login-layout {
    min-height: auto;
    margin-top: 20px;
    padding: 30px 0;
  }

  .login-copy h1 {
    font-size: clamp(2.35rem, 13vw, 3.8rem);
  }

  .login-signal {
    gap: 18px;
    margin-top: 30px;
  }

  .login-card {
    padding: 22px;
  }

  .topbar {
    min-height: 74px;
    padding: 10px 16px;
  }

  .topbar-kicker {
    display: none;
  }

  .topbar h1 {
    margin: 0;
    font-size: 1.2rem;
  }

  .connection-label {
    display: none;
  }

  .content-view {
    padding: 18px 14px 100px;
  }

  .view-head {
    display: grid;
    align-items: start;
  }

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

  .metric-card {
    min-height: 122px;
    padding: 15px;
  }

  .metric-value {
    font-size: 1.45rem;
  }

  .attention-item {
    grid-template-columns: 8px 1fr auto;
    gap: 10px;
    padding: 13px 15px;
  }

  .attention-address {
    grid-column: 2 / -1;
  }

  .attention-address strong {
    white-space: normal;
  }

  .panel-head {
    padding: 17px;
  }

  .finance-snapshot {
    padding: 20px;
  }

  .dumpster-grid,
  .client-grid,
  .report-list {
    grid-template-columns: 1fr;
  }

  .table-top {
    display: grid;
  }

  .search-wrap,
  .filter-select {
    width: 100%;
  }

  .driver-hero {
    grid-template-columns: 1fr;
  }

  .driver-count {
    display: none;
  }

  .driver-task {
    grid-template-columns: 54px 1fr;
    gap: 11px;
    padding: 16px;
  }

  .task-actions .button {
    flex: 1 1 120px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .mobile-nav {
    position: fixed;
    inset: auto 10px 10px;
    z-index: 24;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 17px;
    color: #8ea0ab;
    background: rgba(16, 25, 35, 0.96);
    box-shadow: 0 16px 45px rgba(15, 28, 38, 0.3);
    backdrop-filter: blur(14px);
  }

  .mobile-nav button {
    display: grid;
    min-height: 53px;
    place-items: center;
    gap: 2px;
    border: 0;
    border-radius: 11px;
    color: inherit;
    background: transparent;
    font-size: 0.62rem;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-nav button.active {
    color: var(--ink);
    background: var(--amber);
  }

  .mobile-nav button svg {
    width: 18px;
    height: 18px;
  }

  .notification-popover {
    top: 66px;
    right: 14px;
  }

  .modal-backdrop {
    padding: 0;
    align-items: end;
  }

  .modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }

  .toast-region {
    right: 14px;
    bottom: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================== */
/* Adições da versão 0.2.0                                            */
/* ================================================================== */

/* Fica fora do fluxo do grid do app-shell, para não deslocar a barra lateral. */
.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 9px 20px;
  background: var(--orange-soft);
  color: var(--orange);
  border-bottom: 1px solid var(--orange);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.table-note {
  margin: 12px 20px 16px;
}

.finance-note {
  display: block;
  margin-top: 12px;
  opacity: 0.85;
}

.is-negative {
  color: var(--red);
  font-weight: 700;
}

/* Filtro de período ------------------------------------------------ */

.period-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.field-inline {
  min-width: 150px;
  margin: 0;
}

.field-inline span {
  font-size: 12px;
}

/* Quebra por categoria --------------------------------------------- */

.breakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
}

.breakdown-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.breakdown-row span {
  color: var(--muted);
  font-size: 14px;
}

.breakdown-row small {
  flex-basis: 100%;
  color: var(--muted-2);
  font-size: 12px;
}

/* Ações dentro dos cartões ----------------------------------------- */

.card-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.tiny-danger {
  color: var(--red);
  border-color: var(--red-soft);
}

.tiny-danger:hover {
  background: var(--red-soft);
}

/* Janela de detalhes ----------------------------------------------- */

.modal-wide {
  width: min(880px, 100%);
}

.detail-body {
  padding: 4px 24px 24px;
}

.detail-body h3 {
  margin: 24px 0 8px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 18px;
  background: var(--canvas);
  border-radius: var(--radius-sm);
}

.detail-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-grid small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.detail-grid span {
  font-size: 14px;
  color: var(--muted);
}

.detail-list {
  display: flex;
  flex-direction: column;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

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

.detail-row.is-void {
  opacity: 0.55;
  text-decoration: line-through;
}

.detail-row.is-void small {
  text-decoration: none;
}

@media (max-width: 720px) {
  .period-bar {
    align-items: stretch;
  }

  .field-inline {
    flex: 1 1 130px;
  }

  .detail-body {
    padding: 4px 16px 20px;
  }
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.button-danger {
  color: var(--red);
  border-color: #f0c4bd;
}

.button-danger:hover {
  background: var(--red-soft);
}

/* A tabela rola em vez de espremer as colunas até o texto quebrar por sílaba. */
.data-table {
  min-width: 860px;
}

.data-table .inline-actions {
  justify-content: flex-start;
}

/* Larguras mínimas por coluna: sem elas o endereço quebra palavra por palavra. */
.operations-table {
  min-width: 980px;
}

.operations-table th:nth-child(1),
.operations-table td:nth-child(1) { min-width: 110px; }

.operations-table th:nth-child(2),
.operations-table td:nth-child(2) { min-width: 170px; }

.operations-table th:nth-child(3),
.operations-table td:nth-child(3) { min-width: 250px; }

.operations-table th:nth-child(4),
.operations-table td:nth-child(4) { min-width: 160px; }

.operations-table th:nth-child(5),
.operations-table td:nth-child(5) { min-width: 110px; }

.operations-table th:nth-child(6),
.operations-table td:nth-child(6) { min-width: 168px; }

/* A tabela de locações é o conteúdo principal desta tela e precisa de ~1040px.
   Abaixo disso, "Próximos serviços" desce para baixo em vez de espremer a tabela. */
@media (max-width: 1560px) {
  .operations-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .operations-layout .route-summary {
    position: static;
  }
}
