/* ===== DASHBOARD (cards + tabela) ===== */
.card-resumo {
  border-radius: 0.9rem;
  border: 1px solid #dfe4ee;
  background: linear-gradient(135deg, var(--white), var(--surface));
}

.card-resumo .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-resumo .label-fixed {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--brand-blue-dark);
}

.card-resumo .value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: var(--brand-blue-dark);
}

.table-dashboard thead {
  background-color: var(--surface);
}

.table-dashboard thead th {
  border-bottom: 1px solid #dfe4ee;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--brand-blue-dark);
}

.table-dashboard tbody td {
  font-size: 0.86rem;
}

.badge-status {
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
}

/* Cores por status */
.badge-status-pendente {
  background-color: var(--warning-bg);
  color: var(--warning-text);
}

.badge-status-aprovado {
  background-color: var(--success-bg);
  color: var(--success-text);
}

.badge-status-concluido {
  background-color: var(--info-bg);
  color: var(--info-text);
}

.badge-status-outro {
  background-color: #f5f5f5;
  color: var(--muted);
}

/* Cards clicáveis do resumo */
.card-resumo-click {
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

/* hover com toque laranja bem leve */
.card-resumo-click:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(229, 86, 53, 0.08);
}

/* ativo com roxo */
.card-resumo-click.active {
  box-shadow: 0 0 0 2px rgba(99, 87, 158, 0.28);
  border-color: var(--brand-purple);
}

#cards-resumo .card-resumo {
  height: 100%;
}

#cards-resumo .col-6.col-lg {
  display: flex;
}

#cards-resumo .col-6.col-lg > .card {
  width: 100%;
}

/* Ajustes dashboard para telas pequenas */
@media (max-width: 576px) {
  #cards-resumo .label-fixed {
    font-size: 0.65rem;
    min-height: 2.2rem;
  }

  #cards-resumo .value {
    font-size: 1.4rem;
  }

  .table-dashboard th,
  .table-dashboard td {
    font-size: 0.7rem;
    white-space: nowrap;
  }
}
/* ===== DASHBOARD V2 ===== */
.dash-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) 1px minmax(320px, 1.4fr);
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 18px;
  background: #15192a;
  color: #fff;
  padding: 24px;
  min-height: 210px;
  box-shadow: 0 18px 40px rgba(21, 25, 42, 0.16);
}

.dash-hero-glow { display: none; }

.dash-hero-main,
.dash-hero-stats {
  position: relative;
  z-index: 1;
}

.dash-hero-label,
.dash-hero-stat-label,
.dash-hero-taxa-label {
  font: 700 11px/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .64);
}

.dash-hero-count-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 12px;
}

.dash-hero-count {
  font: 800 64px/.9 var(--font-display);
  color: var(--brand-lime);
}

.dash-hero-count-meta {
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  line-height: 1.35;
  padding-bottom: 6px;
}

.dash-hero-progress-wrap { margin-top: 28px; }

.dash-hero-progress-bar {
  display: flex;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.dash-hero-progress-seg { min-width: 0; transition: width .18s ease; }

.dash-hero-progress-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, .74);
}

.dash-hero-progress-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: none;
}

.dash-hero-divider {
  width: 1px;
  min-height: 100%;
  background: rgba(255, 255, 255, .12);
}

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

.dash-hero-stat,
.dash-hero-taxa {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, .06);
}

.dash-hero-taxa {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dash-hero-stat-value,
.dash-hero-taxa-value {
  margin-top: 10px;
  font: 800 24px/1.1 var(--font-display);
  color: #fff;
}

.dash-hero-taxa-value {
  margin-top: 0;
  color: var(--brand-lime);
}

.dash-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.dash-segs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.dash-seg {
  min-width: 94px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}

.dash-seg:hover {
  transform: translateY(-1px);
  border-color: #cfd7eb;
}

.dash-seg.active {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(42, 99, 240, .12);
}

.dash-seg-label,
.dash-seg-count {
  display: block;
}

.dash-seg-label {
  font: 700 10.5px/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--text-muted);
}

.dash-seg-count {
  margin-top: 6px;
  font: 800 20px/1 var(--font-display);
  color: var(--text-dark);
}

.dash-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  flex: none;
}

.dash-search-box {
  position: relative;
  min-width: 260px;
}

.dash-search-box i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted-light);
  pointer-events: none;
}

.dash-search-box .form-control { padding-left: 38px; }

.dash-btn-filtros {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 11px;
  padding: 10px 14px;
  font: 700 13px var(--font-display);
}

.dash-filtros-panel,
.dash-table-card {
  margin-top: 14px;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
}

.dash-table-card { padding: 0; overflow: hidden; }

.dash-table-card .table-responsive {
  margin: 0;
  -webkit-overflow-scrolling: touch;
}

#bulk-actions-bar {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
}

@media (max-width: 992px) {
  .dash-hero {
    grid-template-columns: 1fr;
  }

  .dash-hero-divider { display: none; }

  .dash-toolbar {
    flex-direction: column;
  }

  .dash-toolbar-actions,
  .dash-search-box {
    width: 100%;
  }

  .dash-toolbar-actions > .btn,
  .dash-toolbar-actions > button {
    flex: 1 1 150px;
  }
}

@media (max-width: 576px) {
  .dash-hero {
    border-radius: 14px;
    padding: 18px;
    min-height: 0;
  }

  .dash-hero-count { font-size: 48px; }

  .dash-hero-count-row {
    align-items: center;
  }

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

  .dash-hero-taxa {
    grid-column: span 1;
    display: block;
  }

  .dash-hero-taxa-value { margin-top: 10px; }

  .dash-segs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .dash-seg {
    min-width: 0;
    padding: 10px;
  }

  .dash-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dash-search-box { min-width: 0; }

  .dash-toolbar-actions > .btn,
  .dash-toolbar-actions > button,
  #bulk-actions-bar > .btn,
  #bulk-actions-bar > .form-select {
    width: 100%;
    max-width: none !important;
  }

  #bulk-actions-bar {
    align-items: stretch !important;
  }

  #paginacao-dashboard {
    justify-content: flex-start !important;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}
/* ===== DASHBOARD SCREENSHOT STYLE V3 ===== */
#pane-dashboard {
  color: #07122f;
}

.dash-hero {
  grid-template-columns: minmax(280px, 1fr) 1px minmax(520px, 1.9fr);
  min-height: 187px;
  padding: 24px 26px;
  border-radius: 18px;
  background: linear-gradient(112deg, #315bea 0%, #3c4ecb 58%, #5c5190 100%);
  box-shadow: 0 18px 32px rgba(47, 78, 203, .18);
}

.dash-hero-label,
.dash-hero-stat-label,
.dash-hero-taxa-label {
  color: rgba(255,255,255,.65);
  letter-spacing: 0;
}

.dash-hero-count {
  color: #fff;
  font-size: 60px;
}

.dash-hero-count-meta {
  color: #fff;
}

.dash-hero-progress-wrap {
  margin-top: 28px;
}

.dash-hero-progress-bar {
  height: 12px;
  background: rgba(255,255,255,.16);
}

.seg-entregue { background: #62f2ad; }
.seg-pendente { background: #ffd23f; }
.seg-cancelado { background: #ff6c86; }
.dot-entregue { background: #62f2ad; }
.dot-pendente { background: #ffd23f; }
.dot-cancelado { background: #ff6c86; }

.dash-hero-divider {
  background: rgba(255,255,255,.18);
}

.dash-hero-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.dash-hero-stat,
.dash-hero-taxa {
  min-height: 74px;
  border: 0;
  background: transparent;
  padding: 10px 6px;
}

.dash-hero-stat-value,
.dash-hero-taxa-value {
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.dash-hero-taxa {
  grid-column: auto;
  display: block;
  min-height: 66px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.12);
}

.dash-hero-taxa-value {
  margin-top: 7px;
  color: var(--brand-lime);
  font-size: 24px;
}

.dash-toolbar {
  align-items: center;
  margin-top: 20px;
}

.dash-segs {
  width: auto;
  gap: 0;
  padding: 4px;
  border: 1px solid #dde2ef;
  border-radius: 14px;
  background: #fff;
}

.dash-seg {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px 14px;
  box-shadow: none;
}

.dash-seg:hover {
  transform: none;
  background: #f5f7fc;
}

.dash-seg.active {
  background: #10162b;
  box-shadow: none;
}

.dash-seg-label {
  color: #555d76;
  font-size: 12.5px;
  text-transform: none;
  letter-spacing: 0;
}

.dash-seg-count {
  min-width: 20px;
  min-height: 20px;
  margin: 0;
  border-radius: 999px;
  padding: 3px 7px;
  background: #edf1f8;
  color: #8a93aa;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.dash-seg.active .dash-seg-label {
  color: #fff;
}

.dash-seg.active .dash-seg-count {
  background: rgba(170,239,84,.25);
  color: var(--brand-lime);
}

.dash-toolbar-actions {
  flex-wrap: nowrap;
}

.dash-search-box {
  min-width: 230px;
}

.dash-search-box .form-control {
  min-height: 39px;
  border-color: #dfe4ef;
  border-radius: 11px;
  box-shadow: none;
}

.dash-btn-filtros,
.dash-btn-excel {
  min-height: 39px;
  border-radius: 11px;
  padding: 9px 15px;
  white-space: nowrap;
}

.dash-filter-count {
  min-width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-lime);
  color: #10162b;
  font-size: 12px;
  font-weight: 800;
}

.dash-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  margin-top: 16px;
}

.dash-table-panel,
.dash-agenda-panel {
  border: 1px solid #dde2ef;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.dash-panel-head {
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #edf0f6;
}

.dash-panel-head h2 {
  margin: 0;
  font: 800 16px/1.1 var(--font-display);
  color: #07122f;
}

.dash-panel-head span,
.dash-panel-head small {
  color: #8d94aa;
  font-size: 12px;
}

.dash-bulk-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dash-bulk-inline .form-select {
  width: 155px;
}

.dash-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7c849b;
  font-size: 12px;
}

.table-dashboard thead th {
  padding: 11px 16px;
  border-bottom: 1px solid #edf0f6;
  background: #fafbfe;
  color: #8b94aa;
  font-size: 10.5px;
  letter-spacing: 0;
}

.table-dashboard tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #f0f2f7;
  color: #30384d;
  font-size: 12.5px;
}

.table-dashboard tbody tr:hover {
  background: #fbfcff;
}

.table-dashboard tfoot td {
  padding: 12px 16px;
  border-top: 1px solid #edf0f6;
  color: #07122f;
  font-size: 12px;
  font-weight: 800;
}

.dash-id-cell {
  color: #2f5beb !important;
  font-weight: 800;
}

.dash-hour-cell,
.dash-unit-cell {
  color: #07122f !important;
  font-weight: 800;
}

.dash-canal-pill,
.dash-status-badge,
.dash-mini-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 800;
}

.dash-canal-pill {
  padding: 3px 8px;
  background: #eef2ff;
  color: #315bea;
  font-size: 11px;
}

.dash-status-badge,
.dash-mini-status {
  padding: 4px 10px;
  font-size: 11px;
}

.dash-status-badge.pendente,
.dash-mini-status.pendente {
  background: #fff0bd;
  color: #8e6508;
}

.dash-status-badge.entregue,
.dash-mini-status.entregue {
  background: #dcfce7;
  color: #0c7f47;
}

.dash-status-badge.cancelado,
.dash-mini-status.cancelado {
  background: #fde4dc;
  color: #b23a20;
}

.dash-status-badge.rota,
.dash-mini-status.rota {
  background: #e6edff;
  color: #2f5beb;
}

.dash-status-badge.agendada,
.dash-mini-status.agendada {
  background: #edf0f6;
  color: #6e758b;
}

.dash-row-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.dash-row-actions .btn {
  min-height: 28px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
}

.dash-approval-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 5px;
}

.dash-approval-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.dash-approval-date {
  font-size: 10px;
  color: var(--text-muted-light);
}

.dash-agenda-panel {
  padding-bottom: 12px;
}

.dash-agenda-head {
  border-bottom: 0;
  align-items: flex-start;
}

.dash-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 18px 12px;
}

.dash-agenda-item {
  display: grid;
  grid-template-columns: 46px 16px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 51px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider-2);
}

.dash-agenda-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dash-agenda-time {
  color: #07122f;
  font: 800 13px var(--font-display);
  padding-top: 1px;
}

.dash-agenda-line {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: center;
}

.dash-agenda-line::before {
  content: "";
  width: 2px;
  min-height: 100%;
  background: #e5e9f1;
}

.dash-agenda-line span {
  position: absolute;
  top: 2px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #f4b928;
  box-shadow: 0 0 0 2px rgba(244,185,40,.25);
}

.dash-agenda-body {
  min-width: 0;
}

.dash-agenda-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dash-agenda-title {
  flex: 1 1 auto;
  min-width: 0;
  color: #07122f;
  font: 800 13px/1.25 var(--font-display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-agenda-sub {
  margin-top: 3px;
  color: #8d94aa;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-mini-status {
  margin-top: 0;
  font-size: 10.5px;
}

.dash-agenda-empty {
  padding: 18px 0;
  color: #8d94aa;
  font-size: 12.5px;
}

@media (max-width: 1180px) {
  .dash-hero {
    grid-template-columns: 1fr;
  }
  .dash-hero-divider {
    display: none;
  }
  .dash-content-grid {
    grid-template-columns: 1fr;
  }
  .dash-agenda-panel {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .dash-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-toolbar {
    align-items: stretch;
  }
  .dash-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .dash-search-box {
    min-width: 0;
  }
  .dash-segs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .dash-seg {
    justify-content: space-between;
  }
  .dash-panel-head,
  .dash-bulk-inline {
    align-items: stretch;
    flex-direction: column;
  }
  .dash-bulk-inline,
  .dash-bulk-inline .form-select,
  .dash-bulk-inline .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .dash-hero {
    padding: 18px;
  }
  .dash-hero-count {
    font-size: 50px;
  }
  .dash-hero-stats {
    grid-template-columns: 1fr;
  }
  .dash-agenda-item {
    grid-template-columns: 44px 16px minmax(0, 1fr);
  }
}
/* ===== GERENCIAMENTO SCREENSHOT STYLE V3 ===== */
.gerenciamento-v3 {
  color: #07122f;
}

.ger-card {
  overflow: hidden;
  border: 1px solid #dde2ef;
  border-radius: 18px;
  background: #fff;
}

.ger-card-wide {
  margin-bottom: 16px;
}

.ger-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .5fr);
  gap: 16px;
}

.ger-card-head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #edf0f6;
}

.ger-card-head-stack {
  align-items: flex-start;
}

.ger-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ger-title-wrap h2 {
  margin: 0;
  color: #07122f;
  font: 800 16px/1.15 var(--font-display);
}

.ger-title-bar {
  width: 4px;
  height: 16px;
  border-radius: 999px;
  flex: none;
}

.ger-blue { background: var(--brand-blue); }
.ger-purple { background: var(--brand-purple); }
.ger-orange { background: var(--brand-orange); }

.ger-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: nowrap;
}

.ger-actions-wrap {
  flex-wrap: wrap;
}

.ger-search-box {
  position: relative;
  min-width: 200px;
}

.ger-search-sm {
  min-width: 190px;
}

.ger-search-box i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa4b9;
  pointer-events: none;
}

.ger-search-box .form-control {
  min-height: 39px;
  padding-left: 38px;
  border-color: #dfe4ef;
  border-radius: 11px;
  background: #f8faff;
  box-shadow: none;
}

.ger-actions .form-select,
.ger-filter-field .form-select,
.ger-filter-field .form-control {
  min-height: 39px;
  border-color: #dfe4ef;
  border-radius: 11px;
  box-shadow: none;
}

.ger-actions > .form-select {
  width: 145px;
}

.ger-btn,
.ger-btn-primary,
.ger-btn-primary-light,
.ger-btn-icon {
  min-height: 39px;
  border-radius: 11px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.ger-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-blue);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 18px rgba(42, 99, 240, .22);
}

.ger-btn-primary:hover {
  background: var(--brand-blue-hover);
  color: #fff;
}

.ger-btn-primary-light {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: #dfe4ef;
  color: var(--brand-blue);
  background: #fff;
}

.ger-btn-primary-light:hover {
  background: #eef3ff;
  color: var(--brand-blue);
}

.ger-filter-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 178px;
}

.ger-filter-field span {
  color: #8a93aa;
  font-size: 11px;
  font-weight: 800;
}

.ger-date-field {
  min-width: 154px;
}

.ger-table {
  margin: 0;
}

.ger-table thead th {
  padding: 11px 16px;
  border-bottom: 1px solid #edf0f6;
  background: #fafbfe;
  color: #8b94aa;
  font-size: 10.5px;
  letter-spacing: 0;
}

.ger-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #f0f2f7;
  color: #30384d;
  font-size: 12.5px;
  vertical-align: middle;
}

.ger-table tbody tr:hover {
  background: #fbfcff;
}

.ger-id-cell {
  color: #2f5beb !important;
  font-weight: 800;
}

.ger-date-cell,
.ger-unit-cell {
  color: #07122f !important;
  font-weight: 800;
}

.ger-canal-pill,
.ger-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 800;
}

.ger-canal-pill {
  padding: 3px 8px;
  background: #eef2ff;
  color: #315bea;
  font-size: 11px;
}

.ger-status-badge {
  padding: 4px 10px;
  font-size: 11px;
}

.ger-status-badge.pendente {
  background: #fff0bd;
  color: #8e6508;
}

.ger-status-badge.entregue {
  background: #dcfce7;
  color: #0c7f47;
}

.ger-status-badge.cancelado {
  background: #fde4dc;
  color: #b23a20;
}

.ger-status-badge.outro {
  background: #edf0f6;
  color: #6e758b;
}

.ger-action-cell .btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
}

.ger-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px 14px;
}

.ger-card-foot nav {
  overflow-x: auto;
}

@media (max-width: 1180px) {
  .ger-grid {
    grid-template-columns: 1fr;
  }

  .ger-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ger-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .ger-card-head {
    padding: 15px;
  }

  .ger-actions,
  .ger-actions > .form-select,
  .ger-search-box,
  .ger-filter-field,
  .ger-date-field,
  .ger-btn,
  .ger-btn-primary,
  .ger-btn-primary-light,
  .ger-btn-icon {
    width: 100%;
    min-width: 0;
  }

  .ger-filter-field {
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }

  .ger-card-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* ===== REQUESTED DASHBOARD GER FIXES ===== */
.dash-city-ticker {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 10px;
  color: rgba(255,255,255,.86);
  font: 800 11px/1 var(--font-display);
  text-transform: uppercase;
}

.dash-city-ticker::before,
.dash-city-ticker::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 0;
  width: 32px;
  z-index: 1;
  pointer-events: none;
}

.dash-city-ticker::before {
  left: 0;
  background: linear-gradient(90deg, rgba(49,91,234,1), rgba(49,91,234,0));
}

.dash-city-ticker::after {
  right: 0;
  background: linear-gradient(270deg, rgba(64,77,195,1), rgba(64,77,195,0));
}

.dash-city-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: max-content;
  animation: dashTicker 22s linear infinite;
}

.dash-city-ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.dash-city-ticker-track span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-lime);
  box-shadow: 0 0 0 4px rgba(170,239,84,.16);
}

@keyframes dashTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.dash-agenda-list {
  max-height: 620px;
  overflow-y: auto;
  padding-right: 12px;
}

.ger-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(430px, .8fr);
}

.ger-card-head-stack {
  align-items: stretch;
  flex-direction: column;
}

.ger-card-head-stack .ger-actions-wrap {
  width: 100%;
  justify-content: flex-start;
}

.ger-filter-field {
  flex: 1 1 178px;
}

.ger-date-field {
  flex: 0 1 170px;
}

#tabela-admin-feriados .ger-date-cell,
#tabela-admin-feriados td:first-child {
  white-space: nowrap;
}

#modal-admin-agendamento .modal-dialog {
  max-width: min(820px, calc(100vw - 24px));
  height: calc(100dvh - 24px);
  margin-top: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: stretch;
}

#modal-admin-agendamento .modal-content,
#modal-admin-agendamento form {
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#modal-admin-agendamento .modal-header,
#modal-admin-agendamento .modal-footer {
  flex: 0 0 auto;
}

#modal-admin-agendamento .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-bottom: 24px;
}

@media (max-width: 1180px) {
  .ger-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .dash-agenda-list {
    max-height: 520px;
  }

  .dash-agenda-item {
    grid-template-columns: 44px 16px minmax(0, 1fr);
  }

  #modal-admin-agendamento .modal-dialog {
    max-width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    margin: 6px auto;
  }
}
.dash-table-action {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #fff;
  font-size: 14px;
}

.dash-table-action.approve {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #0c7f47;
}

.dash-table-action.cancel {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b23a20;
}
