/* Central Escola — painel Oasis */
:root {
  --brand: #1B4D8C;
  --brand-dark: #0F3460;
  --gold: #C9A227;
  --sidebar: 18rem;
}

html { scroll-behavior: smooth; }
body { background: #f4f6fa; color: #1e293b; }

.login-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #0c2d57 0%, #081f3d 52%, #fcf9f2 52%, #fcf9f2 100%) !important;
}
.login-card {
  background: #fff;
  border: 1px solid #e3d8b8;
  border-top: 4px solid #e8b923;
  box-shadow: 0 20px 40px rgba(12, 45, 87, 0.18);
}
.ex-login-logo { max-width: 320px; width: 100%; height: auto; display: block; }
.btn-brand {
  display: inline-flex; align-items: center; justify-content: center;
  background: #0c2d57; color: #fff; border: none; cursor: pointer;
}
.btn-brand:hover { background: #123f78; }
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  border-radius: 0.75rem; background: #e8b923; color: #081f3d;
  padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 600;
  text-decoration: none; border: none;
}
.btn-gold:hover { background: #f5d978; }

.text-exactus { color: var(--brand-dark); }
.gold-accent { color: var(--gold); }

.app-shell { min-height: 100vh; }
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  background: linear-gradient(180deg, #0F3460 0%, #0a2748 100%);
  transform: translateX(-100%);
  transition: transform .22s ease;
}
.app-sidebar.open,
.app-sidebar.is-open { transform: translateX(0); }
@media (min-width: 1024px) {
  .app-sidebar { transform: translateX(0); }
  .app-main { margin-left: var(--sidebar); }
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(15, 23, 42, .45);
}
.sidebar-overlay.is-open { display: block; }
@media (min-width: 1024px) {
  .sidebar-overlay { display: none !important; }
}

.brand-float { border-radius: .9rem; background: rgba(255,255,255,.06); }
.nav-section {
  margin: .85rem .75rem .35rem;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(226,232,240,.55);
}
.nav-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 1px .35rem;
  padding: .55rem .75rem;
  border-radius: .75rem;
  font-size: .875rem;
  color: #cbd5e1;
}
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-link.active { background: #1B4D8C; color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.18); }

.topbar-float {
  position: sticky;
  top: .75rem;
  z-index: 20;
  margin: .75rem .75rem 1rem;
  border: 1px solid rgba(15,52,96,.08);
  border-radius: 1rem;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
}

.surface {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 52, 96, .04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border-radius: .7rem;
  padding: .5rem .9rem;
  font-size: .875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #2462ad; }
.btn-secondary { background: #fff; color: var(--brand-dark); border-color: #d5deea; }
.btn-secondary:hover { background: #f8fafc; }
.btn-ghost { background: transparent; color: #475569; }
.btn-ghost:hover { background: #f1f5f9; }
.btn-danger { background: #be123c; color: #fff; }
.btn-danger:hover { background: #9f1239; }

.form-label { display: block; font-size: .8rem; font-weight: 600; color: #334155; margin-bottom: .35rem; }
.form-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: .7rem;
  padding: .55rem .75rem;
  font-size: .875rem;
  background: #fff;
}
.form-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,77,140,.15); }
.form-error { color: #be123c; font-size: .75rem; margin-top: .25rem; }

.endereco-details { border: 1px solid #e2e8f0; border-radius: .85rem; background: #f8fafc; }
.endereco-details > summary {
  list-style: none;
  cursor: pointer;
  padding: .85rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.endereco-details > summary::-webkit-details-marker { display: none; }
.endereco-details > summary::after {
  content: '';
  width: .45rem;
  height: .45rem;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  transition: transform .15s ease;
  flex-shrink: 0;
}
.endereco-details[open] > summary::after { transform: rotate(-135deg); }
.endereco-details .endereco-body { padding: 0 1rem 1rem; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  padding: .75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.data-table td {
  padding: .8rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.pay-modal[hidden] { display: none !important; }
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.pay-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .45);
}
.pay-modal__panel {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  padding: 1.25rem;
}

.search-select { position: relative; }
.search-select-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  margin-top: .35rem;
  max-height: 16rem;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .7rem;
  box-shadow: 0 12px 28px rgba(15, 52, 96, .12);
}
.search-select-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: .65rem .85rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.search-select-item:hover,
.search-select-item.is-active { background: #f1f5f9; }
.search-select-item .ss-name { display: block; font-size: .875rem; font-weight: 600; color: #0f172a; }
.search-select-item .ss-meta { display: block; font-size: .75rem; color: #64748b; margin-top: .1rem; }
.search-select-empty { padding: .85rem; font-size: .8rem; color: #64748b; }

.shadow-soft { box-shadow: 0 10px 30px rgba(15, 52, 96, .08); }
