:root {
  --navy: #101d30;
  --navy2: #172941;
  --green: #168568;
  --background: #f2f5f9;
  --text: #19283b;
  --muted: #6c7a8b;
  --border: #e1e7ee;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.topbar {
  background: var(--navy);
  color: white;
  padding: 17px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand { font-size: 28px; font-weight: 800; letter-spacing: -.9px; }
.brand-pro { color: #76aee7; }
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  color: #aebfd2;
  margin-top: 3px;
}
.top-actions { display: flex; align-items: center; gap: 15px; }
.environment { font-size: 10px; color: #b4c7d7; }
.avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #284562;
  font-size: 12px;
  font-weight: bold;
}

.main-nav {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  background: var(--navy2);
  padding: 0 4%;
  scrollbar-width: thin;
}
.main-nav a {
  color: #c4d2e2;
  text-decoration: none;
  white-space: nowrap;
  padding: 16px 13px;
  font-size: 12px;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  color: white;
  border-bottom-color: #43c8a3;
}

.container { max-width: 1500px; margin: auto; padding: 30px 4%; }
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 2px; }
h1 { font-size: 29px; margin: 7px 0; }
.page-heading p:not(.eyebrow) { color: var(--muted); margin: 0; }
.demo-tag {
  color: #8a620e;
  background: #fff1cc;
  border: 1px solid #f0d990;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 17px;
  margin-bottom: 23px;
}
.stat, .panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: 0 3px 14px #1b31470a;
}
.stat { padding: 22px; }
.stat span { color: var(--muted); font-size: 12px; }
.stat strong { display: block; font-size: 32px; margin: 12px 0 7px; }
.stat small { color: var(--green); font-size: 11px; }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
  gap: 20px;
}
.panel { padding: 21px; margin-bottom: 20px; }
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
h2 { margin: 0; font-size: 16px; }
.panel-header p, .notice p { color: var(--muted); font-size: 12px; }
.filters { display: flex; gap: 10px; margin-bottom: 18px; }
input, select {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: white;
  color: var(--text);
}
input { flex: 1; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
th {
  background: #f7f9fc;
  text-align: left;
  color: #68788a;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
td, th { padding: 14px 10px; border-bottom: 1px solid var(--border); }
td:first-child { font-weight: 700; }
.status {
  display: inline-block;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
}
.status.Habilitado { color: #167253; background: #dff7e9; }
.status.Pendiente { color: #9b6a0e; background: #fff2ce; }
.status.Rechazado { color: #b73535; background: #ffe5e5; }
.action {
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
  padding: 6px 11px;
  cursor: pointer;
}
.quick-links { display: grid; gap: 9px; }
.quick-links button {
  text-align: left;
  padding: 13px;
  border: 1px solid var(--border);
  background: #f9fbfd;
  border-radius: 7px;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}
.quick-links button:hover { border-color: var(--green); }
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--navy);
  color: white;
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: 0 8px 24px #0003;
  max-width: 320px;
  z-index: 10;
}
.toast[hidden] { display: none; }

@media (max-width: 950px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .workspace { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .topbar { padding: 14px; }
  .environment { display: none; }
  .main-nav { padding: 0 8px; }
  .container { padding: 20px 12px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .stats { gap: 9px; }
  .stat { padding: 15px; }
  .stat strong { font-size: 25px; }
  .filters { flex-direction: column; }
}
