/* Area restrita — Web Cautelar */

.wc-bloco-atualizacao-senha {
  font-size: 0.95rem;
  line-height: 1.6;
}

.wc-bloco-atualizacao-senha h2 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.ac_ctn ._body {
  background: var(--bg);
}

.ac-auth-full {
  margin: 0 -12px;
}

.ac-auth-full .auth {
  min-height: calc(100vh - var(--header-h) - 120px);
}

.ac-auth-full .auth-side ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ac-meusdados-page {
  padding-bottom: 12px;
}

.ac-form-panel {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.ac-form-shell {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
}

.ac-form-head {
  margin-bottom: 22px;
}

.ac-form-head legend {
  text-align: center;
  margin-bottom: 8px;
}

.ac-form-grid {
  display: grid;
  gap: 18px;
}

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

.ac-form-section--passwords {
  align-items: start;
}

.ac-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.ac-field--short {
  max-width: 220px;
}

.ac-field label {
  display: block;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
}

.ac-form-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.ac-form-actions .btn {
  min-width: 160px;
}

.ac-schedule-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 14px;
}

.ac-schedule-count {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--navy-50);
  color: var(--navy);
  font-weight: 700;
}

.ac-schedule-table-wrap {
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.ac-schedule-table thead th {
  background: var(--gradient);
  color: #fff;
  border-bottom: 0;
  padding: 14px 16px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ac-schedule-table tbody td {
  padding: 16px;
  border-top: 1px solid var(--gray-100);
  color: var(--navy);
}

.ac-schedule-table tbody tr:hover {
  background: var(--navy-50);
}

.ac-schedule-table td strong {
  color: var(--navy);
}

.ac-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--gray-300);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.ac-empty-state__icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 30px;
}

.ac-empty-state h3 {
  margin: 0;
  color: var(--navy);
}

.ac-empty-state p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.ac-paginacao {
  margin-top: 28px;
  padding-top: 8px;
  display: flex;
  justify-content: center;
}

.ac-paginacao #paginacao {
  margin: 0;
  width: 100%;
}

.ac-paginacao #paginacao ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.ac-paginacao #paginacao ul li {
  margin: 0;
  border: 0;
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 15px;
}

.ac-paginacao #paginacao ul li a {
  border-radius: 50%;
  font-weight: 600;
}

.ac-paginacao #paginacao ul li.atual {
  background: var(--principal, #0d6efd);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
}

.ac-paginacao #paginacao ul li.atual a {
  background: var(--principal, #0d6efd);
  color: #fff;
}

.ac-user-bar {
  margin-bottom: 12px;
}

.ac-user-bar__info {
  color: var(--muted);
  font-size: 0.92rem;
}

.ac-user-bar__info strong {
  color: var(--navy);
}

.ac-dashboard {
  padding-bottom: 8px;
}

.ac-dashboard-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 150, 255, 0.08), rgba(13, 27, 61, 0.04));
}

.ac-dashboard-banner__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.ac-dashboard-banner__content {
  color: var(--navy);
  line-height: 1.55;
}

.ac-dashboard-panel {
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.ac-dashboard-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.ac-dashboard-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.ac-dashboard-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.ac-dashboard-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--navy-50);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
}

.ac-btn-adquirir-creditos {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.ac-order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ac-order-list__head,
.ac-order-card__meta {
  grid-template-columns: minmax(108px, 0.85fr) minmax(160px, 1.45fr) minmax(140px, 1.1fr) minmax(118px, 0.95fr) minmax(210px, 1.65fr);
  column-gap: 16px;
}

.ac-order-list__head {
  padding: 0 18px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.ac-order-card {
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: #fff;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.ac-order-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.ac-order-card__meta {
  display: grid;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 18px;
}

.ac-order-card__date strong {
  color: var(--navy);
  font-weight: 700;
}

.ac-order-card__vehicle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ac-order-card__vehicle strong {
  color: var(--navy);
  word-break: break-word;
}

.ac-order-card__vehicle small {
  color: var(--muted);
  font-size: 0.85rem;
}

.ac-order-card__badge {
  align-self: flex-start;
  margin-top: 4px;
}

.ac-order-card__value {
  color: var(--navy);
  font-weight: 600;
  line-height: 1.45;
}

.ac-order-card__value small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.ac-order-card__status .badge {
  font-size: 0.78rem;
  font-weight: 700;
}

.ac-order-card__label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ac-order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ac-order-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.ac-order-actions .painel-svg-icon {
  width: 1em;
  height: 1em;
}

.ac-order-file-date {
  display: block;
  width: 100%;
  color: var(--muted);
  font-size: 0.82rem;
}

.ac-nav-wc {
  background: linear-gradient(135deg, rgba(13, 27, 61, 0.04), rgba(0, 150, 255, 0.08));
  border: 1px solid rgba(13, 27, 61, 0.08);
  border-radius: 20px;
  padding: 14px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  justify-content: center;
}

.ac-nav-wc .navbar-nav {
  justify-content: center;
  gap: 8px;
}

.ac-nav-wc .nav-item {
  flex: 0 0 auto;
}

.ac-nav-wc .navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--navy);
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  background: transparent;
  transition: all 200ms ease;
}

.ac-nav-wc .navbar-nav .nav-item.active .nav-link,
.ac-nav-wc .navbar-nav .nav-link:hover,
.ac-nav-wc .navbar-nav .nav-link:focus,
.ac-nav-wc .navbar-nav .nav-link:active {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(0, 150, 255, 0.18);
}

.ac-nav-wc .navbar-nav .nav-link i {
  color: currentColor;
  font-size: 1.35em;
  line-height: 1;
  width: 1.2em;
  text-align: center;
  flex-shrink: 0;
}

.ac-nav-wc .nav-item.sair .nav-link {
  color: var(--danger);
}

.ac-nav-wc .nav-item.sair .nav-link:hover {
  background: #fee2e2;
  color: #991b1b;
}

.ac-logout-btn {
  margin-left: auto;
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.ac-logout-btn:hover {
  transform: translateY(-1px);
}

/* Modal Recuperar Senha (sem iframe) */

.ac_ctn .panel,
.ac_ctn .card {
  border-radius: var(--radius);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.ac_ctn .table {
  margin-bottom: 0;
}

.ac_ctn .table th {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--gray-200);
}

.ac_ctn .table td {
  color: var(--navy);
  border-bottom-color: var(--gray-100);
  vertical-align: middle;
}

@media (max-width: 767px) {
  .ac-logout-btn {
    width: 100%;
    justify-content: center;
  }

  .ac-dashboard-panel {
    padding: 18px 16px;
  }

  .ac-dashboard-panel__head {
    flex-direction: column;
    align-items: stretch;
  }

  .ac-dashboard-panel__head > .d-flex {
    align-items: stretch !important;
  }

  .ac-btn-adquirir-creditos {
    width: 100%;
    justify-content: center;
  }

  .ac-order-card__meta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .ac-order-actions {
    width: 100%;
  }

  .ac-order-actions .btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .ac-nav-wc .navbar-nav {
    flex-direction: column;
    align-items: stretch !important;
  }

  .ac-nav-wc .nav-item {
    width: 100%;
  }

  .ac-nav-wc .navbar-nav .nav-link {
    width: 100%;
    justify-content: center;
  }

  .ac-form-panel {
    padding: 20px;
  }

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

  .ac-field--short {
    max-width: none;
  }

  .ac-form-actions .btn {
    width: 100%;
  }

  .ac-schedule-toolbar {
    justify-content: center;
  }

  .ac-schedule-table thead {
    display: none;
  }

  .ac-schedule-table,
  .ac-schedule-table tbody,
  .ac-schedule-table tr,
  .ac-schedule-table td {
    display: block;
    width: 100%;
  }

  .ac-schedule-table tbody tr {
    border-top: 1px solid var(--gray-200);
    padding: 12px 16px;
  }

  .ac-schedule-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border: 0;
  }

  .ac-schedule-table tbody td::before {
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
  }
}

@media (min-width: 768px) {
  .ac-order-list__head,
  .ac-order-card__meta {
    display: grid;
  }
}
