:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef2f5;
  --text: #17202a;
  --muted: #637083;
  --line: #d9e0e7;
  --nav: #16212c;
  --nav-text: #edf3f8;
  --blue: #2563eb;
  --green: #1f8a5b;
  --amber: #b7791f;
  --red: #c24135;
  --teal: #0f766e;
  --shadow: 0 10px 28px rgba(20, 32, 44, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

/* ---------- Login overlay ---------- */

.login-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #101d2b 0%, #1e3355 100%);
  z-index: 9999;
}

.login-card {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(10, 20, 35, 0.45);
  padding: 36px 40px;
  width: min(400px, calc(100vw - 32px));
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.login-brand .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f2b84b;
  color: #1f2933;
  font-weight: 800;
  font-size: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.login-brand strong {
  display: block;
  font-size: 18px;
}

.login-brand span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.login-field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.login-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.login-field input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.15s;
}

.login-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.login-error {
  background: #fde0dd;
  color: var(--red);
  border: 1px solid #f5c6c3;
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 13px;
  margin-bottom: 14px;
}

.login-submit {
  width: 100%;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  margin-top: 4px;
}

.login-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ---------- Sidebar footer ---------- */

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-badge {
  font-size: 12px;
  color: #aebbc8;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.logout-button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  background: transparent;
  color: var(--nav-text);
  cursor: pointer;
  padding: 0 12px;
  font-size: 13px;
  text-align: left;
}

.logout-button:hover {
  background: #263545;
}

/* ---------- App shell ---------- */

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: var(--nav);
  color: var(--nav-text);
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #f2b84b;
  color: #1f2933;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #aebbc8;
  font-size: 13px;
  margin-top: 2px;
}

.nav-tabs {
  display: grid;
  gap: 6px;
}

.nav-tab {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--nav-text);
  cursor: pointer;
  text-align: left;
  padding: 0 12px;
}

.nav-tab:hover,
.nav-tab.is-active {
  background: #263545;
}

.main {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #edf2f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
}

.server-state.online {
  background: #dff3e8;
  color: var(--green);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.2;
}

h2 {
  font-size: 16px;
}

.topbar p {
  color: var(--muted);
  margin-top: 5px;
}

.export-button,
.secondary-button,
.clear-button,
.pagination button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 0 13px;
}

.export-button {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 700;
}

.secondary-button {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 700;
}

.secondary-button.is-hidden,
.is-hidden {
  display: none;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(132px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
}

.filters label {
  display: grid;
  gap: 5px;
}

.filters span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.filters input,
.filters select {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(128px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 14px;
  min-height: 86px;
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  font-size: 26px;
  margin-top: 8px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 14px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.panel-head {
  margin-bottom: 14px;
}

.status-bars {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  gap: 6px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.bar-track {
  height: 12px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  min-width: 3px;
}

.carrier-list,
.carrier-cards {
  display: grid;
  gap: 10px;
}

.carrier-row,
.carrier-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.carrier-card {
  grid-template-columns: minmax(0, 1fr) repeat(4, auto);
  background: var(--surface);
}

.carrier-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  min-width: 74px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.pill.ok {
  background: #dff3e8;
  color: var(--green);
}

.pill.alerta {
  background: #fff0c2;
  color: var(--amber);
}

.pill.pendente {
  background: #ffe3bd;
  color: #9a5b13;
}

.pill.reprovado {
  background: #fde0dd;
  color: var(--red);
}

.pill.valido {
  background: #dff3e8;
  color: var(--green);
}

.pill.vencido {
  background: #fde0dd;
  color: var(--red);
}

.pill.cancelado {
  background: #eef2f5;
  color: var(--muted);
}

/* ---------- Checklist filters ---------- */

.checklist-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(160px, auto);
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.checklist-filters label {
  display: grid;
  gap: 5px;
}

.checklist-filters span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.checklist-filters input,
.checklist-filters select {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
}

/* ---------- Checklist tecnologia field ---------- */

.checklist-tec-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.checklist-tec-row select {
  min-width: 200px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--text);
}

.checklist-outro-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
}

.checklist-outro-inline input {
  flex: 1;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  color: var(--text);
}

.table-toolbar,
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.table-toolbar span {
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.row-actions {
  display: inline-flex;
  gap: 6px;
}

.row-actions button,
.icon-button {
  min-width: 34px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.row-actions button:hover,
.icon-button:hover {
  background: var(--surface-2);
}

.trip-dialog {
  width: min(920px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(20, 32, 44, 0.24);
  padding: 0;
}

.trip-dialog::backdrop {
  background: rgba(12, 20, 28, 0.42);
}

.trip-dialog form {
  padding: 18px;
}

.dialog-head,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-head {
  margin-bottom: 16px;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.map-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
}

.map-toolbar label {
  display: grid;
  gap: 5px;
  min-width: min(420px, 100%);
}

.map-toolbar span,
.map-toolbar label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.map-toolbar select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
}

#map {
  width: 100%;
  height: min(680px, calc(100vh - 245px));
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.form-grid label {
  display: grid;
  gap: 5px;
}

.form-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  padding: 8px 10px;
}

.form-grid textarea {
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  background: #edf2f7;
  color: #354254;
  position: sticky;
  top: 0;
  z-index: 1;
}

td {
  max-width: 270px;
  overflow-wrap: anywhere;
}

tr:last-child td {
  border-bottom: 0;
}

.pagination {
  justify-content: flex-end;
  margin-top: 12px;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

  .nav-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .filters,
  .metrics,
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================
   Routes view – interactive map with routing
   ============================================= */

.routes-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  height: calc(100vh - 220px);
  min-height: 540px;
}

.routes-left-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.routes-right-panel {
  position: relative;
  min-height: 420px;
}

#routesMap {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

/* Route form panel */
.routes-form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  overflow-y: auto;
  flex-shrink: 0;
}

.routes-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.routes-form-header h3 {
  margin: 0;
  font-size: 15px;
}

.routes-form-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.routes-form-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.routes-form-fields label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.routes-form-fields input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s;
}

.routes-form-fields input:focus {
  border-color: var(--blue);
}

.routes-point-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: end;
}

.map-pick-btn {
  min-height: 36px;
  min-width: 56px;
  border: 1.5px solid var(--blue);
  border-radius: 7px;
  background: var(--surface);
  color: var(--blue);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  padding: 0 10px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.map-pick-btn.is-active,
.map-pick-btn:hover {
  background: var(--blue);
  color: #fff;
}

.routes-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 0 0;
}

/* Routes list panel */
#routesListPanel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  height: 100%;
}

.routes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.route-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(20, 32, 44, 0.04);
  transition: border-color 0.15s;
  cursor: pointer;
}

.route-card:hover {
  border-color: var(--blue);
}

.route-card-info {
  margin-bottom: 8px;
}

.route-card-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.route-card-info span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.route-wp-badge {
  display: inline-block;
  background: #dff3e8;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 4px;
}

.routes-empty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 32px 12px;
}

/* Hide LRM directions panel – keep only the map route line */
.leaflet-routing-container {
  display: none !important;
}

/* Crosshair cursor while picking a map point */
.leaflet-container.route-pick-mode,
.leaflet-container.route-pick-mode .leaflet-interactive {
  cursor: crosshair !important;
}

/* Responsive: stack on smaller screens */
@media (max-width: 900px) {
  .routes-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: unset;
  }

  .routes-left-panel {
    max-height: 340px;
  }

  #routesMap {
    min-height: 360px;
  }
}

/* =============================================
   Locais view – all locations on an interactive map
   ============================================= */

.locais-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  height: calc(100vh - 220px);
  min-height: 540px;
}

.locais-left-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.locais-right-panel {
  position: relative;
  min-height: 420px;
}

#locaisMap {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

/* Locais form panel */
.locais-form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  overflow-y: auto;
  flex-shrink: 0;
}

.locais-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.locais-form-header h3 {
  margin: 0;
  font-size: 15px;
}

.locais-form-fields {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 10px;
}

.locais-form-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.locais-form-fields label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.locais-form-fields input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s;
}

.locais-form-fields input:focus {
  border-color: var(--blue);
}

.locais-form-fields select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s;
  cursor: pointer;
}

.locais-form-fields select:focus {
  border-color: var(--blue);
}

.locais-coord-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.map-pick-btn.full-width {
  width: 100%;
  min-height: 34px;
  justify-content: center;
}

.locais-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 0 0;
}

/* Locais list panel */
#locaisListPanel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  height: 100%;
}

.locais-search {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  flex-shrink: 0;
}

.locais-search:focus {
  border-color: var(--blue);
}

.locais-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex: 1;
}

/* Local card */
.local-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 2px 4px rgba(20, 32, 44, 0.04);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.local-card:hover {
  border-color: var(--blue);
}

.local-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.local-card-info {
  margin-bottom: 7px;
}

.local-card-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.local-card-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.local-coord-badge {
  display: inline-block;
  background: #e8f0fe;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 4px;
  font-family: monospace;
}

.local-no-coord {
  display: inline-block;
  background: #fef3cd;
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 4px;
}

.local-area-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 4px;
  margin-left: 4px;
}

.local-area-raio {
  background: #dbeafe;
  color: var(--blue);
}

.local-area-poligono {
  background: #d1fae5;
  color: #1f8a5b;
}

.locais-empty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 32px 12px;
}

@media (max-width: 900px) {
  .locais-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: unset;
  }

  .locais-left-panel {
    max-height: 380px;
  }

  #locaisMap {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  .main {
    padding: 16px;
  }

  .topbar,
  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filters,
  .metrics,
  .dashboard-grid,
  .nav-tabs,
  .carrier-card,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .map-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ---------- Bulk selection checkbox ---------- */

.bulk-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--blue);
  vertical-align: middle;
}

th.bulk-col,
td.bulk-col {
  width: 36px;
  min-width: 36px;
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
}

/* ---------- Floating bulk-action bar ---------- */

.bulk-action-bar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--nav);
  color: var(--nav-text);
  border-radius: 10px;
  padding: 12px 20px;
  box-shadow: 0 8px 32px rgba(12, 22, 36, 0.36);
  font-size: 14px;
  font-weight: 600;
  animation: slideUp 0.18s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.bulk-delete-btn {
  min-height: 36px;
  border: none;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 0 16px;
}

.bulk-delete-btn:hover {
  opacity: 0.88;
}

.bulk-cancel-btn {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 7px;
  background: transparent;
  color: var(--nav-text);
  font-size: 13px;
  cursor: pointer;
  padding: 0 14px;
}

.bulk-cancel-btn:hover {
  background: #263545;
}

/* ---------- Catalog pagination ---------- */

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0 4px;
  font-size: 13px;
}

.catalog-pagination span {
  color: var(--text-muted, #8a9bb0);
  min-width: 110px;
  text-align: center;
}

/* ---------- Dashboard toolbar ---------- */

.dashboard-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 8px 0 6px;
}

.danger-button {
  min-height: 34px;
  border: none;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 0 16px;
  transition: opacity 0.15s;
}

.danger-button:hover {
  opacity: 0.85;
}

/* ---------- Import button ---------- */

.import-button {
  background: var(--accent, #2563eb);
  color: #fff;
  border: none;
  font-weight: 600;
}

.import-button:hover {
  opacity: 0.88;
}

/* ---------- Carrier card checkbox ---------- */

.carrier-card {
  grid-template-columns: auto minmax(0, 1fr) repeat(4, auto);
}

.carrier-select-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.carrier-select-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
