/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variáveis globais */
:root {
    --primary: #0ea5e9;  /* azul e-commerce */
    --primary-hover: #0284c7;
    --primary-rgb: 14, 165, 233; /* para uso em rgba() */
    
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    
    --warning: #f97316;  /* laranja ação */
    --danger: #ef4444;   /* vermelho erro */
    --success: #22c55e;  /* verde sucesso */

    --accent: #1e293b; /* destaque neutro */
}

/* ================================== Página de Login ================================ */

/* Corpo da página */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
}

/* Centralização da página */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

/* Centralização do conteúdo
.page__center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}*/

/* Card */
.card {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 32px;
    border-radius: 12px;
    /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); */
}

/* Cabeçalho */
.card__header {
    margin-bottom: 24px;
}

.card__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 6px;
}

.card__subtitle {
    font-size: 14px;
    color: var(--muted);
}

/* Formulário */
.form__group {
    margin-bottom: 16px;
}

.form__label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

.form__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form__show-password {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}

.form__show-password input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.form__input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* Botão */
.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--primary-hover);
}

/* Link recuperação de senha */
.helper {
    margin-top: 16px;
    text-align: center;
}

.link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Rodapé (sempre em baixo da página) */
.footer {
    margin-top: 24px;
    padding: 16px 0 8px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* =============================== PÁGINA DO OPERADOR ============================== */

/* Banner de status de conexão */
.banner {
    padding: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
/* Indicador de status */
.banner__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Estilos para status online */
.banner--online {
    background-color: #dcfce7; /** verde claro */
    color: #166534;
}

.banner--online .banner__dot {
    background-color: #22c55e; /* Bolinha verde acesa */
}

.banner--offline {
    background-color: #fee2e2; /* vermelho claro */
    color: #991b1b;
}

.banner--offline .banner__dot {
    background-color: #ef4444; /* Bolinha vermelha acesa */
}

/* ===== Ajustes para Select e Textarea ===== */
select.form__input {
    /* appearance: none; */ /* ativando essa linha tira a seta do campo seleção de área */
    background-color: #fff;
    cursor: pointer;
}

textarea.form__input {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Ajustes de leitura do helper */
.muted {
color: var(--muted);
font-size: 12px;
}

/* Ajuste para uso em coletores/mobile */
@media (max-width: 480px) {
    .card {
        padding: 24px;
    }

    .btn {
        padding: 14px;
        font-size: 16px;
    }

    .form__input {
        font-size: 16px;
    }
}

/* Ajuste para telas maiores */
.card--wide {
    max-width: 720px;
}

@media (min-width: 1024px) {
    .card--wide {
        max-width: 900px;
    }
}

/* ========================== MODO OPERAÇÃO - TELA DO OPERADOR ======================== */

/* Texto em caixa alta
#address {
    text-transform: uppercase;
}*/

/* Destacar para o campos de quantidade */
#qty {
    font-size: 18px;
    font-weight: 300;
}

/* Espaçamento entre os campos do formulário */
.page .card .form__group {
    margin-bottom: 20px;
}

/* Botão mais destacado para ação de salvar */
.card .btn {
    font-size: 16px;
    padding: 14px;
}

/* Melhor leitura do título */
.card__title {
    font-size: 28px;
}

/* Operdador: em telas maiores, o card vira um painel (não fica "flutuando") */
@media (min-width: 760px) {
    .card--panel {
        max-width: 100%;
        margin: 0;
        border-radius: 16px;
    }
}

/* Operador: painel ocupa altura da tela em telas maiores */
@media (min-width: 760px) {
    .card--panel {
        min-height: 80vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

.card--panel .form {
    flex: 1;
    }
}

/* Layout específico do operador */
.page--operator {
    justify-content: flex-start; /* remove centralização vertical */
    padding: 0;
}

/* =========================== BANNER DE ENVIO (OPERADOR) ========================== */

.send-banner {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;

    width: min(420px, calc(100vw - 32px));
    padding: 14px 16px;
    border-radius: 12px;

    font-weight: 700;
    display: flex;
    justify-content: center ;
    align-items: center;

    /*box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);*/
}

/* escondido por padrão */
.send-banner--hidden {
    display: none;
}

/* estilos */
.send-banner--sent {
    background: #dcfce7; /* verde claro */
    color: #166534;
}

.send-banner--offline {
    background: #fff7ed; /* laranja claro */
    color: #9a3412;
}

.send-banner--error {
    background: #fee2e2; /* vermelho claro */
    color: #991b1b;
}

/* ============================= MODAL DE CONFIRMAÇÃO ============================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal--hidden {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.modal__content {
  position: relative;
  z-index: 1; /* garante ficar acima do backdrop */
  width: min(420px, calc(100vw - 32px));
  background: var(--card-bg);
  color: var(--text);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.modal__title {
  font-size: 18px;
  margin-bottom: 8px;
}

.modal__text {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.modal__actions {
  display: flex;
  gap: 10px;
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--border);
}

/* Impede rolagem do conteúdo quando modal aberto */
.no-scroll {
  overflow: hidden;
}

/* Animação fade-in leve para o modal */
.modal__content {
    opacity: 0;
    animation: modalFadeIn 120ms ease-out forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    } to {
        opacity: 1;
    }
}

/* ============== Layout autenticado (com sidebar) ================ */

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--accent);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar__brand {
    margin-bottom: 30px;
}

.sidebar__title {
    font-size: 20px;
    font-weight: 600;
}

.sidebar__subtitle {
    font-size: 13px;
    opacity: 0.7;
}

.sidebar__user {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar__link {
    color: white;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 6px;
    /*transition: background 0.2s;*/
}

.sidebar__link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar__link--active {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar__footer {
    margin-top: auto;
}

/* Botão de logout (sidebar) */
.btn--sidebar {
    width: 100%;
    margin-top: 20px;
    color: white;
}

.btn--sidebar:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Conteúdo principal (ao lado da sidebar) */
.page--content {
    flex: 1;
    padding: 30px;
    background: var(--background);
}

/* Header do app (com toggle de menu) */
.app-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
}

/* botão hamburguer */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

/* Responsividade: em telas menores, esconde sidebar e mostra toggle */
@media (max-width: 768px) {
    .menu-toggle {    
    display: block;
    }

    .sidebar {
        position: fixed;
        left: -240px; /* esconde a sidebar fora da tela */
        top: 0;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .sidebar--open {
        left: 0; /* mostra a sidebar */
    }

    .page--content {
        padding: 20px;
    }
}

/* ============== Tela de auditoria ================ */

.page--content {
  flex: 1;
  padding: 30px;
  background: var(--background);
  min-width: 0;
}

.card--panel {
  width: 100%;
  min-height: calc(100vh - 100px);
}

.table input [type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.table input[type="checkbox"]:disabled {
opacity: 0.4;
cursor: not-allowed;
}

.table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-width: 0;
}

.table__body {
  display: flex;
  flex-direction: column;
}

.table__header,
.table__row {
  display: grid;
  grid-template-columns:
    40px  /* checkbox*/
    0.8fr   /* SKU */
    1.4fr   /* Endereço */
    0.8fr   /* Área */
    0.7fr   /* Quantidade */
    2fr   /* Observação */
    0.9fr   /* Status */
    1.3fr   /* Data */
    0.9fr;  /* Ação */
  gap: 12px;
  padding: 12px 16px;
  align-items: center;
  min-width: 900px;
}

.table__header {
  background: var(--accent);
  color: white;
  font-weight: 600;
}

.table__row {
  border-top: 1px solid var(--border);
  background: white;
  font-size: 14px;
}

.table__row:nth-child(even) {
  background: #f8f9fc;
}

.table__empty {
  padding: 20px 16px;
  color: var(--muted);
}

/* alinhamento base */
.table__header span,
.table__row span {
  text-align: left;
}

/* checkbox */
.table__row span:nth-child(1),
.table__header span:nth-child(1) {
    text-align: center;
}

/* quantidade */
.table__row span:nth-child(5),
.table__header span:nth-child(5) {
  text-align: center;
}

/* status */
.table__row span:nth-child(7),
.table__header span:nth-child(7) {
  text-align: center;
}

/* data */
.table__row span:nth-child(8),
.table__header span:nth-child(8) {
  text-align: center;
}

/* ação */
.table__row span:nth-child(9),
.table__header span:nth-child(9) {
  text-align: center;
}

/* observação */
.table__row span:nth-child(6) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  max-width: 300px;
}

.sidebar__logout {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
}

.sidebar__logout:hover {
  background: rgba(255, 255, 255, 0.2);
}

.auditor-filters-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin: 0 0 8px 0;
}
.auditor-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.auditor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
}

.auditor-actions--hidden {
    display: none;
}

.auditor-actions__count {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.auditor-actions__buttons {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
  .page--content {
    padding: 20px;
  }

  .card--panel {
    min-height: auto;
  }

  .table__header,
  .table__row {
    min-width: 900px;
  }

  .auditor-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auditor-actions__buttons {
    width: 100%;
    flex-direction: column;
  }

  .auditor-filters {
    flex-direction: column;
    align-items: stretch;
  }
}

.status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge--pending {
  background: #fff7ed;
  color: #9a3412;
}

.status-badge--resolved {
  background: #dcfce7;
  color: #166534;
}

.btn--resolve {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: white;
}

.btn--resolve:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--danger {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: var(--danger);
    color: white;
}

.btn--danger:hover {
    opacity: 0.9;
}

#deleteModalText {
    line-height: 1.5;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pagination__button {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination__button {
    font-weight: 500;
    font-size: 14px;
}

.pagination__button--active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    font-weight: 600;
}

.pagination__button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
}

/* ==========================
 DASHBOARD 
 ========================= */

.dashboard__period {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.btn--period {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
}

.btn--period:hover {
  background: var(--border);
}

.btn--period--active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.dashboard__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.dashboard__card {
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard__card-label {
  font-size: 13px;
  font-weight: 600;
}

.dashboard__card-value {
  font-size: 32px;
  font-weight: 700;
}

.dashboard__card--total {
  background: #f1f5f9;
  color: var(--accent);
}

.dashboard__card--pending {
  background: #fff7ed;
  color: #9a3412;
}

.dashboard__card--resolved {
  background: #dcfce7;
  color: #166534;
}

.dashboard__table .table__header,
.dashboard__table .table__row {
  grid-template-columns:
    1.2fr   /* Data */
    1.2fr   /* Usuário */
    0.8fr   /* SKU */
    0.8fr   /* Tipo */
    0.7fr   /* Quantidade */
    0.8fr  /* Saldo Após */
    1fr;    /* Endereço */
  gap: 12px;
  padding: 12px 16px;
}

@media (max-width: 768px) {
  .dashboard__cards {
    grid-template-columns: 1fr;
  }

  .dashboard__period {
    flex-wrap: wrap;
  }
}

.dashboard__custom-period {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.dashboard__custom-period .btn {
  width: auto;
  padding: 10px 24px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .dashboard__custom-period {
    grid-template-columns: 1fr;
  }
}

/* ------------------ SPINNER ------------------ */
.spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.spinner__circle {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================
 ANÁLISE DE RELATÓRIOS 
 ========================== */

.analise-upload {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  margin-bottom: 20px;
}

.analise-upload:hover {
  border-color: var(--primary);
}

.analise-upload__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.analise-upload__icon {
  font-size: 32px;
}

.analise-upload__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.analise-upload__hint {
  font-size: 13px;
  color: var(--muted);
}

.analise-upload__input {
  display: none;
}

.analise-btn {
  width: 100%;
  margin-bottom: 24px;
}

.analise-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--muted);
}

.analise-section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 16px;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.analise-produto {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.analise-produto strong {
  color: var(--text);
}

.analise-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.analise-stat {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.analise-stat__label {
  font-size: 12px;
  color: var(--muted);
}

.analise-stat__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.analise-recomendacao {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 8px;
}

.analise-recomendacao__texto {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.analise-recomendacao__texto::-webkit-scrollbar {
  width: 6px;
}

.analise-recomendacao__texto::-webkit-scrollbar-track {
  background: transparent;
}

.analise-recomendacao__texto::-webkit-scrollbar-thumb {
  background: #bae6fd;
  border-radius: 3px;
}

.analise-filtros {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .analise-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .analise-upload {
    padding: 20px;
  }
}

.analise-ranking .table__body,
.analise-filtros + .table .table__body {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.analise-ranking .table__body::-webkit-scrollbar,
.analise-filtros + .table .table__body::-webkit-scrollbar {
  width: 6px;
}

.analise-ranking .table__body::-webkit-scrollbar-track,
.analise-filtros + .table .table__body::-webkit-scrollbar-track {
  background: transparent;
}

.analise-ranking .table__body::-webkit-scrollbar-thumb,
.analise-filtros + .table .table__body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.analise-legenda {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.table__row--clickable {
  cursor: pointer;
  transition: background 0.15s;
}

.table__row--clickable:hover {
  background: #f0f9ff !important;
}

.analise-ranking .table__header,
.analise-ranking .table__row,
#ultimasAnalisesList .table__row,
#ultimasAnalisesList + .table__header {
  grid-template-columns:
    2fr    /* Produto */
    1fr    /* Suspeitas */
    0.8fr  /* Impacto */
    0.8fr  /* Tendência */
    1fr;   /* Última Análise */
  gap: 12px;
  padding: 12px 16px;
}

.analise-historico__table .table__header,
.analise-historico__table .table__row {
  grid-template-columns:
    2fr    /* Produto */
    1fr    /* Suspeitas */
    0.8fr  /* Impacto */
    0.8fr  /* Tendência */
    1fr;   /* Última Análise */
  gap: 12px;
  padding: 12px 16px;
}

.analise-aviso {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #9a3412;
  line-height: 1.5;
}

.analise-aviso__icone {
  font-size: 18px;
  flex-shrink: 0;
}

.status-badge--critico {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge--alto {
  background: #fff7ed;
  color: #9a3412;
}

.status-badge--medio {
  background: #fefce8;
  color: #854d0e;
}

.analise-forense__table .table__header,
.analise-forense__table .table__row {
  grid-template-columns:
    1.2fr   /* LPN */
    1.8fr   /* Regra */
    0.8fr   /* Severidade */
    0.8fr   /* Desequilíbrio */
    1fr     /* Período */
    2fr;    /* Ação */
  gap: 12px;
  padding: 12px 16px;
}

.analise-forense__table .table__body {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* ==========================
 ÁREAS
========================== */

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.area-form {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

.area-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form__group--full {
  grid-column: 1 / -1;
}

.area-form__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.areas__table .table__header,
.areas__table .table__row {
  grid-template-columns:
    1.5fr  /* Nome */
    0.8fr  /* Tipo */
    1.5fr  /* Descrição */
    0.8fr  /* Status */
    0.8fr; /* Ações */
  gap: 12px;
  padding: 12px 16px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.status-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--active::before  { background: var(--success); }
.status-dot--inactive::before { background: var(--danger); }

.area-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn--icon {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text);
}

.btn--icon:hover { border-color: var(--primary); color: var(--primary); }
.btn--icon--danger:hover { border-color: var(--danger); color: var(--danger); }
.btn--icon--success:hover { border-color: var(--success); color: var(--success); }
.btn--icon--primary:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 768px) {
  .area-form__grid { grid-template-columns: 1fr; }
}