:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f0f4fb;
  --text: #172033;
  --muted: #68758a;
  --line: #dbe4f0;
  --primary: #2458ff;
  --primary-dark: #163ac4;
  --danger: #d92d20;
  --success: #0b8f55;
  --warning: #d9822b;
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

button { cursor: pointer; }

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #0f172a;
  color: #fff;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2f6bff, #63a8ff);
  font-weight: 900;
  font-size: 22px;
}

.brand h1 {
  margin: 0;
  font-size: 21px;
}

.brand p {
  margin: 3px 0 0;
  color: #a8b3c7;
  font-size: 13px;
}

.menu {
  display: grid;
  gap: 10px;
}

.menu-item {
  border: 0;
  color: #c8d3e5;
  background: transparent;
  border-radius: 16px;
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  transition: 0.2s;
}

.menu-item:hover,
.menu-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  color: #b9c4d5;
  display: grid;
  gap: 4px;
}

.main-content {
  padding: 28px;
  overflow: auto;
}

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

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
}

.topbar h2 {
  margin: 0;
  font-size: 32px;
}

.page { display: none; }
.page.active { display: block; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card,
.panel,
.event-card,
.person-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.metric-card span {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.metric-card strong {
  font-size: 34px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}

.panel {
  padding: 22px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-header h3 {
  margin: 0;
  font-size: 22px;
}

.panel-header p {
  margin: 5px 0 0;
  color: var(--muted);
}

.row-wrap { flex-wrap: wrap; }

.actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn,
.danger-btn,
.icon-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
}

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

.ghost-btn {
  background: var(--surface-2);
  color: var(--text);
}

.danger-btn {
  background: #fee4e2;
  color: var(--danger);
}

.icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 25px;
  background: var(--surface-2);
}

.search-input,
.select-input,
input,
select,
textarea {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  outline: none;
}

.search-input { min-width: 260px; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(36, 88, 255, 0.12);
}

.events-grid,
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.event-card,
.person-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.event-card h4,
.person-card h4 {
  margin: 0;
  font-size: 18px;
}

.card-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef3ff;
  color: #1947d2;
  font-size: 12px;
  font-weight: 800;
}

.badge.status-finalizado { background: #dcfae6; color: var(--success); }
.badge.status-cancelado { background: #fee4e2; color: var(--danger); }
.badge.status-montagem { background: #fff3dc; color: var(--warning); }
.badge.freelancer { background: #f4e8ff; color: #7a2ec4; }

.card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}

.small-btn {
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 800;
  background: var(--surface-2);
}

.stack-list {
  display: grid;
  gap: 10px;
}

.stack-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.stack-item strong {
  display: block;
  margin-bottom: 6px;
}

.distance-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: #f8fafc;
  margin-bottom: 16px;
}

.distance-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.distance-result {
  margin-top: 14px;
}

.loading-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.result-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.result-main {
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.result-main span,
.result-grid span {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-main strong {
  font-size: 42px;
  color: var(--primary);
}

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

.result-grid > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2);
}

.result-grid strong {
  font-size: 15px;
  line-height: 1.35;
}

.distance-source {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.distance-history-panel {
  margin-top: 18px;
}

.distance-history-item strong {
  line-height: 1.35;
}

.empty-state {
  padding: 26px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: #fff;
}

.empty-state.small { padding: 18px; }

.modal {
  border: 0;
  background: transparent;
  padding: 18px;
  width: min(980px, 100vw);
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.modal-card {
  background: var(--surface);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  width: min(560px, 100%);
  margin: auto;
}

.modal-card.large { width: min(960px, 100%); }

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

.modal-header h3 {
  margin: 0;
  font-size: 24px;
}

.modal-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

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

label,
.full-label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: #344054;
  font-size: 13px;
}

.full-label { margin-top: 14px; }

textarea { resize: vertical; }

.section-title {
  margin: 20px 0 12px;
}

.section-title h4 { margin: 0 0 4px; }
.section-title p { margin: 0; color: var(--muted); }

.teams-form {
  display: grid;
  gap: 12px;
}

.team-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.team-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
}

.team-box-header strong {
  font-size: 16px;
}

.team-box-body {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.team-box.active .team-box-body { display: grid; gap: 14px; }

.people-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.check-card,
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
  font-weight: 700;
}

.check-card small {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.spacer { flex: 1; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #0f172a;
  color: white;
  padding: 14px 18px;
  border-radius: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: 0.25s;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 14px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
  }

  .brand p,
  .sidebar-footer { display: none; }

  .menu {
    grid-auto-flow: column;
    display: grid;
    margin-left: auto;
  }

  .menu-item {
    white-space: nowrap;
    padding: 11px 13px;
  }

  .main-content { padding: 18px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; }
}

@media (max-width: 640px) {
  .brand h1 { font-size: 16px; }
  .brand-icon { width: 40px; height: 40px; border-radius: 14px; }
  .topbar { flex-direction: column; }
  .topbar h2 { font-size: 26px; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .search-input { min-width: 100%; width: 100%; }
  .actions-row { width: 100%; }
  .actions-row > * { flex: 1; }
  .events-grid, .people-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .modal { padding: 8px; }
  .modal-actions { flex-wrap: wrap; }
}

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

.deslocamento-item {
  display: grid;
  gap: 12px;
}

.deslocamento-item.erro {
  border-color: #fecdca;
  background: #fff8f7;
}

.deslocamento-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.distance-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: #eaf0ff;
  color: var(--primary);
  font-weight: 900;
  white-space: nowrap;
}

.route-events {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}

.route-events > div:not(.route-arrow) {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2);
}

.route-events span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.route-events b {
  font-size: 16px;
}

.route-events small {
  color: var(--muted);
  font-weight: 700;
}

.route-arrow {
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 26px;
  font-weight: 900;
}

.warning-line {
  color: var(--warning);
  font-weight: 800;
}

@media (max-width: 640px) {
  .deslocamento-top {
    flex-direction: column;
  }

  .route-events {
    grid-template-columns: 1fr;
  }

  .route-arrow {
    transform: rotate(90deg);
  }
}


/* =========================================================
   V5 - Ajustes de dashboard e navegação para telefone
   ========================================================= */
@media (max-width: 760px) {
  :root {
    --radius: 18px;
    --shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  }

  body {
    background: linear-gradient(180deg, #eef4ff 0%, #f7f9fc 45%, #f7f9fc 100%);
  }

  .app-shell {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 8px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.22);
    overflow: hidden;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    font-size: 18px;
    flex: 0 0 auto;
  }

  .brand h1 {
    font-size: 15px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .brand p,
  .sidebar-footer {
    display: none;
  }

  .menu {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    margin: 0;
    overflow-x: auto;
    padding: 2px 0 3px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .menu::-webkit-scrollbar {
    display: none;
  }

  .menu-item {
    flex: 0 0 auto;
    white-space: nowrap;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.07);
  }

  .menu-item.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: none;
  }

  .main-content {
    padding: 14px 12px 26px;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
  }

  .eyebrow {
    margin-bottom: 3px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .topbar h2 {
    font-size: 24px;
    line-height: 1.12;
  }

  #btnNovoEventoTop {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-radius: 13px;
    font-size: 13px;
    box-shadow: 0 10px 20px rgba(36, 88, 255, 0.18);
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }

  .metric-card {
    min-height: 96px;
    padding: 14px;
    gap: 7px;
    border-radius: 18px;
  }

  .metric-card span {
    font-size: 11px;
    line-height: 1.25;
  }

  .metric-card strong {
    font-size: 27px;
    line-height: 1;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .panel {
    padding: 16px;
    border-radius: 20px;
  }

  .panel-header {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .panel-header h3 {
    font-size: 19px;
    line-height: 1.15;
  }

  .panel-header p {
    font-size: 13px;
    line-height: 1.35;
  }

  .panel-header .ghost-btn,
  #btnAtualizarDeslocamentos {
    padding: 9px 11px;
    border-radius: 12px;
    font-size: 13px;
  }

  .stack-list {
    gap: 9px;
  }

  .stack-item,
  .empty-state.small {
    padding: 12px;
    border-radius: 15px;
  }

  .stack-item strong {
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.25;
  }

  .card-line {
    gap: 6px;
    font-size: 12.5px;
    line-height: 1.35;
  }

  .badge {
    padding: 5px 8px;
    font-size: 11px;
  }

  .deslocamento-item {
    gap: 10px;
  }

  .deslocamento-top {
    flex-direction: row;
    align-items: flex-start;
  }

  .distance-pill {
    padding: 7px 10px;
    font-size: 12px;
  }

  .route-events {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .route-events > div:not(.route-arrow) {
    padding: 11px;
    border-radius: 14px;
  }

  .route-events b {
    font-size: 14px;
  }

  .route-events small {
    font-size: 12px;
  }

  .route-arrow {
    transform: rotate(90deg);
    font-size: 20px;
    height: 14px;
  }
}

@media (max-width: 420px) {
  .main-content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .topbar h2 {
    font-size: 22px;
  }

  #btnNovoEventoTop {
    padding: 9px 10px;
    font-size: 12px;
  }

  .cards-grid {
    gap: 8px;
  }

  .metric-card {
    min-height: 88px;
    padding: 12px;
  }

  .metric-card strong {
    font-size: 24px;
  }

  .panel {
    padding: 14px;
  }

  .panel-header {
    flex-direction: column;
    gap: 10px;
  }

  .panel-header .ghost-btn,
  #btnAtualizarDeslocamentos {
    width: 100%;
  }
}

/* =========================================================
   V6 - Financeiro
   ========================================================= */
.money-card strong,
.money-line,
.finance-value b {
  color: var(--success);
}

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

.finance-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.finance-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.finance-value {
  display: grid;
  justify-items: end;
  gap: 7px;
  min-width: 150px;
}

.finance-value span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.finance-value b {
  font-size: 22px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .finance-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 13px;
  }

  .finance-value {
    justify-items: start;
    min-width: 0;
  }

  .finance-value b {
    font-size: 20px;
  }
}

/* =========================================================
   V7 - Gastos por evento
   ========================================================= */
.expense-card strong,
.expense-text,
#gastosResumoTotal,
#financeiroGastos,
#metricGastosEventos {
  color: #dc2626;
}

.balance-card strong,
.positive,
#gastosResumoSaldo,
#financeiroSaldo,
#metricSaldoEventos {
  color: var(--success);
}

.negative {
  color: #dc2626 !important;
}

.mini-finance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.mini-finance-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-finance-row b {
  color: var(--text);
}

.card-finance-box {
  padding: 8px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.055);
}

.finance-value-grid {
  grid-template-columns: repeat(3, auto);
  align-items: center;
  gap: 14px;
}

.finance-value-grid > div {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.finance-buttons {
  display: flex !important;
  gap: 8px !important;
  justify-items: end !important;
}

.gastos-modal-card {
  max-height: 92vh;
  overflow: auto;
}

.gastos-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.gastos-summary-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.gastos-summary-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gastos-summary-grid strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  line-height: 1.1;
}

.expense-form {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.85);
}

.compact-actions {
  margin-top: 12px;
}

.gastos-title {
  margin-top: 18px;
}

.gastos-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.gasto-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.gasto-item:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.gasto-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}

.gasto-item > b {
  color: #dc2626;
  font-size: 18px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .gastos-summary-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gastos-summary-grid article {
    padding: 12px;
  }

  .gastos-summary-grid strong {
    font-size: 20px;
  }

  .finance-value-grid {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 10px;
  }

  .finance-value-grid > div {
    justify-items: start;
  }

  .finance-buttons {
    width: 100%;
  }

  .finance-buttons .small-btn {
    flex: 1;
  }

  .gasto-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gasto-item > b {
    font-size: 20px;
  }

  .expense-form {
    padding: 12px;
  }

  .mini-finance-row {
    gap: 6px;
  }

  .mini-finance-row span {
    flex: 1 1 auto;
    justify-content: space-between;
  }
}

/* =========================================================
   V9 - Dashboard: datas finais e deslocamento interativo
   ========================================================= */
.future-event-item {
  display: grid;
  gap: 8px;
}

.event-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.event-date-grid > div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
}

.event-date-grid span,
.deslocamento-info-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-date-grid b,
.deslocamento-info-grid b {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.deslocamento-accordion {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  font-family: inherit;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.deslocamento-accordion:hover,
.deslocamento-accordion.open {
  border-color: rgba(43, 94, 255, 0.35);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.deslocamento-accordion:active {
  transform: scale(0.995);
}

.deslocamento-summary-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  flex-wrap: wrap;
}

.mini-arrow {
  color: var(--primary);
  font-weight: 900;
}

.tap-hint,
.tap-hint-line {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.tap-hint-line {
  opacity: .85;
}

.deslocamento-details {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px dashed var(--line);
}

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

.deslocamento-info-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
}

.route-events.compact small {
  display: block;
}

@media (max-width: 640px) {
  .event-date-grid,
  .deslocamento-info-grid {
    grid-template-columns: 1fr;
  }

  .deslocamento-summary-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    font-size: 12px;
  }

  .deslocamento-summary-line span:not(.mini-arrow) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tap-hint-line {
    font-size: 11.5px;
  }
}

/* =========================================================
   V10 - Distância do dashboard realmente interativa
   Usa <details>/<summary>, funciona no celular sem depender de onclick.
   ========================================================= */
.deslocamento-details-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.deslocamento-details-card[open] {
  border-color: rgba(43, 94, 255, 0.35);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.deslocamento-details-card summary {
  list-style: none;
}

.deslocamento-details-card summary::-webkit-details-marker {
  display: none;
}

.deslocamento-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.deslocamento-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.deslocamento-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: #eef3ff;
  font-size: 20px;
}

.deslocamento-main strong {
  display: block;
  margin-bottom: 5px;
  line-height: 1.25;
}

.deslocamento-summary-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex: 0 0 auto;
}

.chevron {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--primary);
  background: #eef3ff;
  font-weight: 900;
  transition: transform .18s ease;
}

.deslocamento-details-card[open] .chevron {
  transform: rotate(180deg);
}

.deslocamento-details-content {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
  border-top: 1px dashed var(--line);
}

.deslocamento-details-content .route-events {
  margin-top: 14px;
}

@media (max-width: 640px) {
  .deslocamento-summary-card {
    align-items: flex-start;
    padding: 14px;
  }

  .deslocamento-main {
    gap: 10px;
  }

  .deslocamento-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    font-size: 18px;
  }

  .deslocamento-summary-side {
    align-self: stretch;
  }

  .deslocamento-summary-side .distance-pill {
    padding: 6px 9px;
    font-size: 12px;
  }

  .deslocamento-details-content {
    padding: 0 14px 14px;
  }
}

/* V11: Dashboard sem cards de totais no topo */
.dashboard-grid-clean {
  margin-top: 0;
}

@media (max-width: 720px) {
  .dashboard-grid-clean {
    gap: 12px;
  }
}


/* Tela inicial de seleção da operação */
.app-hidden { display: none !important; }

.selector-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(36, 88, 255, 0.20), transparent 34%),
    radial-gradient(circle at bottom right, rgba(99, 168, 255, 0.24), transparent 32%),
    #0f172a;
}

.selector-card-shell {
  width: min(920px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 32px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.30);
  padding: 34px;
}

.selector-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.brand-icon.big {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  font-size: 30px;
  color: #fff;
}

.selector-brand h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.04em;
}

.selector-brand span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.selector-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.workspace-card {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  padding: 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.workspace-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.16);
  border-color: rgba(36, 88, 255, 0.35);
}

.workspace-card strong {
  font-size: 28px;
  letter-spacing: -0.03em;
}

.workspace-card small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.workspace-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: var(--surface-2);
}

.workspace-card.trio .workspace-icon { background: #fff3e7; }
.workspace-card.wr .workspace-icon { background: #eaf0ff; }

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

.workspace-pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 900;
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

@media (max-width: 720px) {
  .selector-screen { padding: 16px; align-items: stretch; }
  .selector-card-shell { padding: 22px; border-radius: 26px; }
  .selector-brand { align-items: flex-start; }
  .selector-options { grid-template-columns: 1fr; }
  .workspace-card { min-height: 165px; padding: 22px; border-radius: 24px; }
  .workspace-card strong { font-size: 24px; }
  .topbar-actions { width: 100%; justify-content: stretch; }
  .topbar-actions .primary-btn,
  .topbar-actions .ghost-btn,
  .workspace-pill { flex: 1; text-align: center; }
}


/* =========================================================
   V14 - Cabeçalho organizado e sem texto "Sistema Web"
   ========================================================= */
.topbar.app-header {
  align-items: center;
  gap: 16px;
}

.topbar-title-area {
  min-width: 0;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.title-row h2 {
  margin: 0;
}

.topbar.app-header .workspace-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid #dce5f4;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
  white-space: nowrap;
}

.topbar.app-header .topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.topbar.app-header .ghost-btn,
.topbar.app-header .primary-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .topbar.app-header {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }

  .title-row {
    justify-content: space-between;
    gap: 10px;
  }

  .title-row h2 {
    font-size: 26px;
    line-height: 1.08;
  }

  .topbar.app-header .workspace-pill {
    min-height: 38px;
    max-width: 56%;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .topbar.app-header .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 10px;
  }

  .topbar.app-header .ghost-btn,
  .topbar.app-header .primary-btn {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 14px;
  }

  .topbar.app-header .ghost-btn {
    background: #ffffff;
    border: 1px solid var(--line);
  }

  .topbar.app-header .primary-btn {
    box-shadow: 0 10px 20px rgba(36, 88, 255, 0.20);
  }
}

@media (max-width: 420px) {
  .title-row h2 {
    font-size: 24px;
  }

  .topbar.app-header .workspace-pill {
    max-width: 58%;
    font-size: 11.5px;
  }

  .topbar.app-header .ghost-btn,
  .topbar.app-header .primary-btn {
    font-size: 12.5px;
  }
}


/* =========================================================
   V15 - Tela de escolha com logos Trio Bruttos e WR
   ========================================================= */
.selector-screen {
  background:
    radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.34), transparent 30%),
    radial-gradient(circle at 85% 90%, rgba(56, 189, 248, 0.20), transparent 32%),
    linear-gradient(135deg, #070b16 0%, #111827 50%, #0f172a 100%);
}

.selector-card-shell {
  max-width: 1040px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.selector-brand-centered {
  justify-content: center;
  text-align: center;
}

.selector-brand-centered .brand-icon.big {
  flex: 0 0 auto;
}

.logo-options {
  gap: 22px;
}

.logo-workspace-card {
  min-height: 380px;
  padding: 18px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  justify-content: flex-start;
}

.logo-workspace-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.00), rgba(15, 23, 42, 0.04));
  pointer-events: none;
  z-index: -1;
}

.workspace-logo-frame {
  width: 100%;
  min-height: 220px;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.workspace-logo-frame img {
  width: 100%;
  height: 100%;
  max-height: 250px;
  object-fit: cover;
  display: block;
}

.trio-logo-frame img {
  object-fit: cover;
}

.wr-logo-frame {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

.wr-logo-frame img {
  object-fit: contain;
  padding: 0;
}

.workspace-card-content {
  display: grid;
  gap: 6px;
  padding: 4px 4px 0;
}

.logo-workspace-card .workspace-enter {
  margin-top: auto;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 16px;
  background: var(--primary);
  color: white;
  font-weight: 900;
  box-shadow: 0 14px 24px rgba(36, 88, 255, 0.22);
}

.logo-workspace-card.trio .workspace-enter {
  background: #111827;
  box-shadow: 0 14px 24px rgba(17, 24, 39, 0.18);
}

.logo-workspace-card.wr .workspace-enter {
  background: var(--primary);
}

.logo-workspace-card:hover .workspace-enter {
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .selector-card-shell {
    padding: 18px;
    border-radius: 28px;
  }

  .selector-brand-centered {
    margin-bottom: 18px;
    gap: 12px;
  }

  .selector-brand-centered h1 {
    font-size: 30px;
  }

  .selector-brand-centered span {
    font-size: 14px;
  }

  .logo-options {
    gap: 14px;
  }

  .logo-workspace-card {
    min-height: 310px;
    padding: 14px;
    border-radius: 24px;
  }

  .workspace-logo-frame {
    min-height: 165px;
    border-radius: 20px;
  }

  .workspace-logo-frame img {
    max-height: 190px;
  }

  .logo-workspace-card strong {
    font-size: 24px;
  }

  .logo-workspace-card small {
    font-size: 13px;
  }

  .logo-workspace-card .workspace-enter {
    min-height: 44px;
  }
}

@media (max-width: 420px) {
  .selector-screen {
    padding: 12px;
  }

  .selector-brand-centered {
    display: grid;
    justify-items: center;
  }

  .brand-icon.big {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 26px;
  }

  .selector-brand-centered h1 {
    font-size: 26px;
  }

  .logo-workspace-card {
    min-height: 286px;
  }

  .workspace-logo-frame {
    min-height: 148px;
  }
}

/* =========================================================
   V16 - Correção dos logos na tela de escolha
   - Trio Bruttos menor e sem corte
   - WR usando a imagem enviada pelo usuário
   ========================================================= */
.logo-workspace-card {
  min-height: 330px !important;
  padding: 16px !important;
}

.workspace-logo-frame {
  min-height: 170px !important;
  max-height: 190px !important;
  padding: 18px !important;
  background: #05070c !important;
}

.workspace-logo-frame img {
  width: 100% !important;
  height: 100% !important;
  max-height: 150px !important;
  object-fit: contain !important;
  display: block !important;
}

.trio-logo-frame img {
  max-width: 82% !important;
  max-height: 145px !important;
  object-fit: contain !important;
}

.wr-logo-frame {
  background: #000 !important;
}

.wr-logo-frame img {
  max-width: 92% !important;
  max-height: 140px !important;
  object-fit: contain !important;
}

@media (max-width: 720px) {
  .logo-workspace-card {
    min-height: 272px !important;
    padding: 12px !important;
  }

  .workspace-logo-frame {
    min-height: 120px !important;
    max-height: 135px !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .workspace-logo-frame img {
    max-height: 105px !important;
  }

  .trio-logo-frame img {
    max-width: 78% !important;
    max-height: 98px !important;
  }

  .wr-logo-frame img {
    max-width: 90% !important;
    max-height: 95px !important;
  }
}

@media (max-width: 420px) {
  .logo-workspace-card {
    min-height: 250px !important;
  }

  .workspace-logo-frame {
    min-height: 105px !important;
    max-height: 118px !important;
  }

  .trio-logo-frame img {
    max-width: 76% !important;
    max-height: 86px !important;
  }

  .wr-logo-frame img {
    max-width: 88% !important;
    max-height: 84px !important;
  }
}

/* =========================================================
   V17 - Tela de login antes da seleção de operação
   ========================================================= */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(37, 99, 235, 0.32), transparent 28%),
    radial-gradient(circle at 86% 88%, rgba(56, 189, 248, 0.22), transparent 32%),
    linear-gradient(135deg, #070b16 0%, #111827 54%, #0f172a 100%);
}

.login-card {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 32px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.30);
  padding: 30px;
  backdrop-filter: blur(18px);
}

.login-brand {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 24px;
}

.login-brand h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -0.04em;
  color: var(--text);
}

.login-brand span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

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

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 900;
  font-size: 13px;
}

.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 50px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.login-form input:focus {
  border-color: rgba(36, 88, 255, 0.62);
  box-shadow: 0 0 0 4px rgba(36, 88, 255, 0.10);
}

.login-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border-radius: 16px;
  font-size: 15px;
}

.login-submit:disabled {
  opacity: 0.72;
  cursor: progress;
}

.login-error {
  min-height: 18px;
  margin: 0;
  color: #dc2626;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
}

.login-hint {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f6f8ff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.selector-card-shell-auth {
  position: relative;
}

.selector-logout {
  position: absolute;
  right: 22px;
  top: 22px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #ffffff;
  color: var(--muted);
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.selector-logout:hover {
  color: var(--text);
  border-color: rgba(36, 88, 255, 0.35);
}

@media (max-width: 520px) {
  .login-screen {
    padding: 14px;
  }

  .login-card {
    padding: 22px;
    border-radius: 28px;
  }

  .selector-logout {
    position: static;
    width: 100%;
    margin-bottom: 14px;
  }
}

/* =========================================================
   V19 - Configurações e gestão de usuários
   ========================================================= */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.settings-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-2);
}

.settings-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
  font-size: 22px;
}

.settings-card span,
.settings-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.settings-card strong {
  display: block;
  margin: 4px 0;
  font-size: 22px;
  line-height: 1.15;
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.user-card {
  padding: 16px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.user-card.inactive {
  opacity: 0.72;
  background: #f8fafc;
}

.user-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #2f6bff, #63a8ff);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

.user-card h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.user-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

  .settings-card {
    align-items: flex-start;
    padding: 14px;
  }

  .settings-card strong {
    font-size: 20px;
  }
}


/* =========================================================
   V20 - Permissões e troca de senha
   ========================================================= */
.permissions-card {
  background: linear-gradient(135deg, #f8fbff, #eef4ff);
}

.topbar-actions .app-hidden,
.actions-row .app-hidden {
  display: none !important;
}

.menu-item[style*="display: none"] {
  margin: 0;
}

@media (max-width: 720px) {
  .topbar-actions {
    grid-template-columns: 1fr 1fr;
  }

  #btnMinhaSenha {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   V21 - Backup manual e automático para VPS
   ========================================================= */
.backup-panel {
  overflow: hidden;
}

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

.backup-info-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
}

.backup-info-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.backup-info-card strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
}

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

.backup-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.backup-item.missing {
  background: #fff7f7;
  opacity: 0.85;
}

.backup-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.backup-file-name {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  word-break: break-all;
}

.backup-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.backup-auto {
  background: #edf7ff;
  color: #1261a6;
}

@media (max-width: 760px) {
  .backup-info-grid,
  .backup-item {
    grid-template-columns: 1fr;
  }

  .backup-actions {
    justify-content: stretch;
  }

  .backup-actions .small-btn {
    width: 100%;
  }
}
