/**
 * style.css — estilos exclusivos do módulo Admin Atendimento.
 * Reutiliza tokens --ll-* do Design System (style.css raiz).
 * Prefixo: .aa-
 */

.pagina-admin-atendimento {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Integração Shell 2.0 — não sobrescreve o layout principal */
.pagina-admin-atendimento-shell #view-outlet {
  min-height: 0;
}

.aa-shell-page-chrome {
  padding: 12px 32px 0;
}

.aa-breadcrumb--shell {
  margin-bottom: 4px;
}

.aa-page-title--shell {
  font-size: 18px;
  margin-bottom: 8px;
}

.shell-view--admin-atendimento {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 0 32px;
  animation: aa-fade-in 0.22s ease;
}

.aa-view-outlet-shell {
  min-height: 120px;
}

#aa-app {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* ── Shell ── */
.aa-shell {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.aa-shell .aa-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.aa-shell .aa-header-slot {
  flex-shrink: 0;
}

.aa-shell .aa-content-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 32px;
  min-height: 0;
}

.aa-pagina-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 32px;
}

/* ── Sidebar do módulo ── */
.aa-sidebar .nav-item.ativo {
  background: var(--ll-rosa-suave);
  color: var(--ll-rosa);
}

.aa-sidebar-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ll-dourado-suave);
  color: var(--ll-marrom);
  border: 1px solid rgba(213, 161, 90, 0.35);
}

.aa-sidebar .sidebar-logo-sub {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ll-texto);
  letter-spacing: 0.02em;
}

/* ── Header do módulo ── */
.aa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--ll-header-altura, 88px);
  padding: 18px 32px;
  background: var(--ll-card);
  border-bottom: 1px solid var(--ll-borda);
  box-sizing: border-box;
}

.aa-header-left {
  min-width: 0;
  flex: 1;
}

.aa-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ll-texto);
}

.aa-breadcrumb-sep {
  color: var(--ll-borda);
  font-size: 14px;
  line-height: 1;
}

.aa-breadcrumb-item {
  color: var(--ll-texto);
}

.aa-breadcrumb-item.atual {
  color: var(--ll-marrom);
  font-weight: 600;
}

.aa-page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ll-marrom);
  line-height: 1.25;
}

.aa-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.aa-header-selo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(213, 161, 90, 0.22), rgba(207, 125, 125, 0.18));
  border: 1px solid rgba(213, 161, 90, 0.45);
  color: var(--ll-marrom);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aa-header-selo .material-symbols-rounded {
  font-size: 16px;
}

/* ── Data table (componente compartilhado) ── */
.aa-data-table {
  background: var(--ll-card);
  border: 1px solid var(--ll-borda);
  border-radius: 16px;
  box-shadow: var(--ll-sombra-card);
  overflow: hidden;
}

.aa-data-table-scroll {
  overflow-x: auto;
}

.aa-data-table-el {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.aa-data-table-el--fixed {
  table-layout: fixed;
}

.aa-data-table-el th {
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ll-texto);
  background: rgba(107, 66, 38, 0.04);
  border-bottom: 1px solid var(--ll-borda);
  white-space: nowrap;
}

.aa-data-table-el td {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ll-marrom);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
}

.aa-data-table-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.aa-data-table-row:hover,
.aa-data-table-row:focus-visible {
  background: rgba(213, 161, 90, 0.08);
  outline: none;
}

.aa-data-table-row.is-selecionado {
  background: rgba(207, 125, 125, 0.1);
}

.aa-data-table-vazio td {
  text-align: center;
  padding: 36px 16px;
  color: var(--ll-texto);
  font-weight: 600;
}

/* ── View placeholder ── */
.aa-view {
  animation: aa-fade-in 0.22s ease;
}

@keyframes aa-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.aa-view-intro {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ll-texto);
  max-width: 62ch;
}

.aa-placeholder-card {
  background: var(--ll-card);
  border: 1px solid var(--ll-borda);
  border-radius: 20px;
  box-shadow: var(--ll-sombra-card);
  padding: 36px 28px;
  text-align: center;
}

.aa-placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--ll-rosa-suave);
  color: var(--ll-rosa);
}

.aa-placeholder-icon .material-symbols-rounded {
  font-size: 28px;
}

.aa-placeholder-titulo {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ll-marrom);
}

.aa-placeholder-texto {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ll-texto);
}

.aa-status-dev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ll-dourado-suave);
  border: 1px solid rgba(213, 161, 90, 0.4);
  color: var(--ll-marrom);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.aa-status-dev .material-symbols-rounded {
  font-size: 16px;
  color: var(--ll-dourado);
}

/* ── Outlet ── */
#aa-view-outlet {
  min-height: 200px;
}

/* ── Responsivo ── */
@media (max-width: 900px) {
  .aa-shell .aa-content-area {
    padding: 20px 16px;
  }

  .aa-header {
    padding: 14px 16px;
    min-height: 72px;
  }

  .aa-page-title {
    font-size: 18px;
  }
}

/* ── Filter bar compartilhada (Sprint A005) ── */
.aa-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: flex-end;
  margin-bottom: 14px;
  padding: 16px 18px;
  background: var(--ll-card);
  border: 1px solid var(--ll-borda);
  border-radius: 16px;
  box-shadow: var(--ll-sombra-card);
}

.aa-filter-group {
  margin: 0;
  min-width: 160px;
}

.aa-filter-group--pesquisa {
  flex: 1 1 240px;
  min-width: 220px;
}

.aa-filter-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ll-texto);
}

.aa-filter-select,
.aa-filter-pesquisa {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--ll-borda);
  background: var(--ll-card, #fff);
  color: var(--ll-marrom);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
}

.aa-filter-pesquisa-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.aa-filter-pesquisa-icone {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  line-height: 1;
  color: var(--ll-texto);
  opacity: 0.65;
  pointer-events: none;
  z-index: 1;
}

.aa-filter-pesquisa {
  padding: 10px 12px 10px 48px !important;
}

.aa-filter-pesquisa::placeholder {
  color: var(--ll-texto);
  opacity: 0.55;
}

.aa-filter-select:focus,
.aa-filter-pesquisa:focus {
  outline: none;
  border-color: var(--ll-dourado);
  box-shadow: 0 0 0 3px rgba(213, 161, 90, 0.2);
}
