:root { color-scheme: light; }
body {
  font-feature-settings: "cv02","cv03","cv04","cv11";
  background: linear-gradient(180deg, #f5f8fc 0%, #eef3f9 100%);
  color: #20324a;
}
.container-narrow { max-width: 460px; }
.status-badge { font-weight: 600; }
.page-shell { max-width: 1280px; }
.card,
.table,
.form-control,
.form-select,
.btn {
  border-radius: 12px;
}
.table {
  --bs-table-bg: transparent;
}
.table > :not(caption) > * > * {
  padding-top: .7rem;
  padding-bottom: .7rem;
  vertical-align: middle;
}
.table thead th {
  font-size: .78rem;
  color: #6e7f95;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom-width: 1px;
}
.table tbody tr:hover {
  background: rgba(13, 110, 253, 0.03);
}
.btn-primary {
  box-shadow: 0 6px 14px rgba(13, 110, 253, 0.22);
}
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover {
  transform: translateY(-1px);
}
.page-head {
  background: #fff;
  border: 1px solid #e5ecf5;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(12, 31, 61, 0.06);
  padding: .95rem 1rem;
}
.page-title { margin: 0; font-size: 1.35rem; font-weight: 700; color: #172b4d; }
.page-subtitle { margin: .2rem 0 0; color: #68778b; font-size: .9rem; }
.surface-card {
  background: #fff;
  border: 1px solid #e6edf6;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(12, 31, 61, 0.05);
}
.surface-card .card-header {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  border-bottom: 1px solid #edf2f8;
}
.empty-state-cell {
  text-align: center;
  color: #7a8a9d;
  padding: 1.2rem !important;
}
.section-label {
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6a7686;
  font-weight: 700;
  margin-bottom: .5rem;
}
.dashboard-hero {
  background: linear-gradient(135deg, #0b5ed7, #0a7adf);
  color: #fff;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 12px 30px rgba(13, 73, 160, 0.18);
}
.perfil-chip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: .1rem .45rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.kpi-card {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(12, 31, 61, 0.06);
  padding: .9rem 1rem;
  height: 100%;
}
.kpi-label { font-size: .82rem; color: #6b7785; }
.kpi-value { font-size: 1.45rem; font-weight: 800; color: #172b4d; line-height: 1.15; margin-top: .15rem; }
.kpi-sub { font-size: .82rem; color: #4d5b6a; margin-top: .2rem; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .65rem;
}
.module-card {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: #fff;
  padding: .7rem .8rem;
  text-decoration: none !important;
  color: #24364d !important;
  box-shadow: 0 4px 10px rgba(12, 31, 61, 0.04);
  transition: all .15s ease;
}
.module-card:hover {
  transform: translateY(-1px);
  border-color: #bfd0e6;
  box-shadow: 0 8px 16px rgba(12, 31, 61, 0.1);
  background: #f8fbff;
}

.app-footer {
  border-top: 1px solid #e6edf6;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
}
.module-card-title {
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.2;
}
.module-card-title::before {
  content: "•";
  margin-right: .35rem;
  color: #80a5d8;
}
.module-card-desc {
  font-size: .78rem;
  color: #607287;
}
.module-card-primary {
  background: linear-gradient(140deg, #0b5ed7, #0f79eb);
  border-color: #0b5ed7;
  color: #fff !important;
}
.module-card-primary .module-card-desc { color: #dceaff; }
.module-card-primary .module-card-title::before { color: #dceaff; }
.module-card-primary:hover {
  background: linear-gradient(140deg, #0a53be, #0f6cd0);
  border-color: #0a53be;
}
.module-card-fiscal {
  border-color: #9fdaf5;
  background: #f3fbff;
}
.module-card-fiscal .module-card-title::before { color: #2f90c0; }
.apto-card { border-radius: 14px; }
.apto-card .num { font-size: 1.6rem; font-weight: 800; letter-spacing: .5px; }
.apto-card.disponivel { background: #e9f8ef; border: 1px solid #bfe8cf; }
.apto-card.ocupado { background: #ffe9e9; border: 1px solid #ffc1c1; }
.apto-card.limpeza { background: #fff7db; border: 1px solid #ffe39a; }
.apto-card.manutencao { background: #eef1f4; border: 1px solid #d5dde5; }
.apto-card.bloqueado { background: #f3e8ff; border: 1px solid #e2c9ff; }

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.auth-card {
  width: min(100%, 460px);
  background: #fff;
  border: 1px solid #dfe8f3;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(15, 39, 72, 0.14);
  padding: 1.35rem;
}
.auth-brand {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #0b5ed7;
  background: #edf4ff;
  border: 1px solid #cfe0fb;
  border-radius: 999px;
  padding: .2rem .55rem;
}
.auth-title {
  margin: .8rem 0 .2rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #172b4d;
}
.auth-subtitle {
  margin: 0 0 1rem;
  color: #6f7f92;
}
.auth-footer {
  margin-top: 1rem;
  text-align: center;
  color: #8090a4;
  font-size: .78rem;
}

@media (max-width: 767px) {
  .dashboard-hero { padding: 1rem; }
  .page-head {
    padding: .8rem;
  }
  .page-head .btn {
    width: 100%;
  }
  .kpi-value {
    font-size: 1.25rem;
  }
}

/* Demo fiscal (impressão / apresentação) */
.doc-demo {
  max-width: 820px;
  margin: 0 auto;
}
.doc-demo .doc-box {
  border: 1px dashed #c8d6e6;
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
}
.doc-demo .doc-title {
  font-weight: 900;
  letter-spacing: .02em;
}
.doc-demo .doc-meta {
  color: #62738a;
  font-size: .85rem;
}
.doc-demo .doc-kv dt {
  color: #6e7f95;
  font-weight: 700;
}
.doc-demo .doc-kv dd {
  margin-bottom: .4rem;
}

@media print {
  body { background: #fff !important; }
  .page-head, .app-footer, .btn, .alert { display: none !important; }
  .surface-card { box-shadow: none !important; border: none !important; }
  .doc-demo .doc-box { border: none !important; padding: 0 !important; }
}

/* Cupom 80mm (demo) */
.doc-demo.cupom-80mm { max-width: 360px; }
.doc-demo.cupom-80mm .doc-box { border-radius: 10px; padding: .85rem; }
.doc-demo.cupom-80mm table { font-size: .82rem; }
.doc-demo.cupom-80mm .doc-title { font-size: 1.05rem; }

@media print {
  .doc-demo.cupom-80mm { max-width: 80mm !important; }
}

