:root {
  --bg: #050b18;
  --panel: #0b1424;
  --panel2: #101c2e;
  --line: #1a2b43;
  --text: #edf5ff;
  --muted: #788ba5;
  --blue: #168cf4;
  --cyan: #39c7f3;
  --green: #00df91;
  --amber: #ffb84d;
  --red: #ff6074;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0, #0d2644, transparent 30%), var(--bg);
  color: var(--text);
  font:
    14px system-ui,
    Segoe UI,
    sans-serif;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
  padding: 25px 17px;
  background: #060e1d;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.identity {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  padding: 6px 7px 28px;
}
.identity img {
  width: 100%;
  height: 49px;
  object-fit: contain;
  padding: 6px 9px;
  background: linear-gradient(135deg, #ffffff, #edf6ff);
  border: 1px solid rgba(123, 182, 230, 0.28);
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
}
.identity small {
  text-align: center;
  color: #617b99;
  font-size: 7px;
  letter-spacing: 1.5px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
nav p {
  margin: 17px 11px 4px;
  color: #5b718e;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.35px;
}
nav > p:first-child {
  margin-top: 2px;
}
nav a,
nav button {
  border: 0;
  text-decoration: none;
  background: none;
  color: #8392a8;
  text-align: left;
  padding: 9px 10px;
  border-radius: 9px;
  min-height: 49px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
nav a:hover,
nav button:hover,
nav .active {
  color: #53c8ff;
  background: linear-gradient(90deg, #0d2a49, #0a192b);
}
.nav-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 1px solid #29415d;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}
nav a > span:last-child,
nav button > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
nav strong,
nav small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
nav strong {
  color: inherit;
  font-size: 12px;
}
nav small {
  color: #607793;
  font-size: 9px;
}
.nav-count {
  margin-left: auto;
  min-width: 22px;
  padding: 3px 6px;
  border-radius: 10px;
  background: #b84055;
  color: #fff;
  font-size: 9px;
  text-align: center;
}
#operationsAdminNavigation[hidden] {
  display: none;
}
.aside-status {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 18px 8px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.aside-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
}
.aside-status strong,
.aside-status small {
  display: block;
  font-size: 9px;
}
.aside-status small {
  color: #62748c;
  margin-top: 3px;
}
main {
  margin-left: 235px;
  padding: 28px 32px 50px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
}
header p {
  color: #62768f;
  font-size: 8px;
  letter-spacing: 1.5px;
  margin: 0 0 5px;
}
h1 {
  font-size: 25px;
  margin: 0;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-right span {
  color: #71839b;
  font-size: 10px;
}
.header-right button,
.report-tools button {
  height: 35px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d1827;
  color: #aab8c8;
  font-size: 9px;
}
.report-actions {
  display: flex;
  gap: 8px;
}
.report-actions #exportReport {
  background: #11304b;
  color: #67d4ff;
  border: 1px solid #285171;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.metrics article,
.table-card,
.report-card,
.filters,
.report-tools {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #0d1726, #09111e);
  border-radius: 9px;
}
.report-intro,
.scheduled-reports {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #0d1726, #09111e);
  border-radius: 11px;
}
.report-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  padding: 18px 20px;
}
.report-intro span,
.scheduled-heading > div:first-child > span {
  color: #56cfff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.report-intro h2,
.scheduled-heading h2 {
  margin: 5px 0;
  font-size: 18px;
}
.report-intro p,
.scheduled-heading p {
  margin: 0;
  color: #8193aa;
  font-size: 10px;
  line-height: 1.5;
}
.report-intro > strong {
  color: #77e7da;
  border: 1px solid #28545a;
  border-radius: 14px;
  background: #10292e;
  padding: 7px 10px;
  font-size: 8px;
  white-space: nowrap;
}
.metrics article {
  padding: 16px;
  text-align: center;
}
.metrics span,
.metrics strong,
.metrics small {
  display: block;
}
.metrics span {
  color: #63768e;
  font-size: 8px;
  letter-spacing: 1px;
}
.metrics strong {
  font-size: 27px;
  margin: 7px 0 2px;
}
.metrics small {
  color: #6f8198;
  font-size: 8px;
}
.metrics .danger {
  color: var(--red);
}
.filters {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr) auto;
  gap: 9px;
  padding: 13px;
  margin-bottom: 14px;
}
.filters label,
.report-tools label {
  font-size: 8px;
  color: #708299;
}
.filters input,
.filters select,
.report-tools select {
  display: block;
  width: 100%;
  height: 36px;
  margin-top: 5px;
  padding: 0 9px;
  background: #07101c;
  border: 1px solid #203149;
  border-radius: 5px;
  color: #d4dee7;
  font-size: 9px;
}
.filters button {
  align-self: end;
  height: 36px;
  border: 0;
  border-radius: 5px;
  padding: 0 17px;
  background: linear-gradient(135deg, #20a9f6, #147cf1);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}
.table-card {
  overflow: hidden;
}
.table-head,
.event-row {
  display: grid;
  grid-template-columns: 1.6fr 1.25fr 0.7fr 0.55fr 0.8fr 0.65fr;
  gap: 12px;
  align-items: center;
}
.table-head {
  padding: 11px 16px;
  background: #0d1a2b;
  color: #5c7089;
  font-size: 7px;
  letter-spacing: 0.8px;
}
.event-row {
  min-height: 66px;
  padding: 11px 16px;
  border-top: 1px solid #17263a;
  cursor: pointer;
}
.event-row:hover {
  background: #0d1c2e;
}
.event-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.priority {
  width: 4px;
  height: 35px;
  border-radius: 3px;
}
.priority.critical {
  background: var(--red);
}
.priority.warning {
  background: var(--amber);
}
.priority.info {
  background: var(--blue);
}
.event-row strong,
.event-row small {
  display: block;
}
.media-delay {
  display: inline-block;
  width: max-content;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #3b250d;
  color: #ffc66d;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}
.event-row strong {
  font-size: 10px;
}
.event-row small {
  font-size: 8px;
  color: #657990;
  margin-top: 3px;
}
.event-row > span {
  font-size: 9px;
  color: #8294a9;
}
.sla {
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sla small {
  color: inherit;
  font-size: 8px;
  font-weight: 600;
}
.sla.breached {
  color: var(--red);
}
.status {
  justify-self: start;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 7px !important;
  font-weight: 700;
}
.status.open {
  color: var(--red);
  background: #361721;
}
.status.acknowledged {
  color: var(--amber);
  background: #332819;
}
.status.resolved {
  color: var(--green);
  background: #102d24;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.pagination button {
  border: 1px solid var(--line);
  background: #0a1523;
  color: #91a2b5;
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 8px;
}
.pagination span {
  font-size: 8px;
  color: #667990;
}
.empty {
  padding: 60px;
  text-align: center;
  color: #6c7f96;
}
.report-tools {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 13px;
  margin-bottom: 14px;
}
.report-tools > div {
  display: flex;
  gap: 10px;
}
.report-tools label {
  min-width: 170px;
}
.report-tools button {
  background: var(--blue);
  color: white;
  border: 0;
}
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.report-card {
  padding: 18px;
}
.report-card.full {
  grid-column: 1/3;
}
.report-card h2 {
  font-size: 12px;
  margin: 0 0 18px;
}
.scheduled-reports {
  margin-top: 16px;
  padding: 20px;
}
.scheduled-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.email-service-status {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 250px;
  border: 1px solid #4e3f29;
  border-radius: 9px;
  background: #241d13;
  padding: 10px 12px;
}
.email-service-status.ready {
  border-color: #205843;
  background: #102a21;
}
.email-service-status i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 9px #ffb84d88;
}
.email-service-status.ready i {
  background: var(--green);
  box-shadow: 0 0 9px #00df9188;
}
.email-service-status strong,
.email-service-status small {
  display: block;
}
.email-service-status strong {
  font-size: 9px;
}
.email-service-status small {
  color: #8b99aa;
  font-size: 8px;
  margin-top: 3px;
}
.scheduled-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: 16px;
  align-items: start;
}
.scheduled-form,
.scheduled-item,
.scheduled-empty {
  border: 1px solid #1c3048;
  border-radius: 10px;
  background: #091321;
}
.scheduled-form {
  display: grid;
  gap: 13px;
  padding: 16px;
}
.scheduled-form label,
.scheduled-form legend {
  color: #7e91a9;
  font-size: 9px;
}
.scheduled-form input:not([type="checkbox"]),
.scheduled-form select,
.scheduled-form textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  border: 1px solid #203149;
  border-radius: 6px;
  background: #07101c;
  color: #e0e9f1;
  padding: 9px 10px;
  font: inherit;
  font-size: 11px;
}
.scheduled-form input:not([type="checkbox"]),
.scheduled-form select {
  height: 38px;
}
.scheduled-form textarea {
  min-height: 88px;
  resize: vertical;
}
.scheduled-form label > small {
  display: block;
  color: #60738a;
  font-size: 8px;
  margin-top: 5px;
}
.scheduled-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.scheduled-form fieldset {
  margin: 0;
  border: 1px solid #203149;
  border-radius: 8px;
  padding: 12px;
}
.post-selection-actions {
  display: flex;
  gap: 7px;
  margin: 2px 0 10px;
}
.post-selection-actions button,
.scheduled-form-actions button,
.scheduled-item-actions button {
  border: 1px solid #29445f;
  border-radius: 6px;
  background: #102035;
  color: #9bc8df;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 9px;
}
.scheduled-posts {
  max-height: 190px;
  overflow: auto;
  display: grid;
  gap: 10px;
}
.scheduled-site-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.scheduled-site-group > strong {
  grid-column: 1 / -1;
  color: #5bd8ca;
  font-size: 8px;
  letter-spacing: 0.5px;
}
.scheduled-site-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #b5c2cf;
  min-width: 0;
}
.scheduled-active {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #b5c2cf !important;
}
.scheduled-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.scheduled-form-actions button[type="submit"] {
  border: 0;
  background: linear-gradient(135deg, #20a9f6, #147cf1);
  color: white;
  font-weight: 700;
}
.scheduled-list {
  display: grid;
  gap: 10px;
}
.scheduled-item {
  padding: 15px;
}
.scheduled-item.disabled {
  opacity: 0.65;
}
.scheduled-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.scheduled-item-head span {
  color: #5de0d0;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1px;
}
.scheduled-item-head h3 {
  margin: 4px 0 0;
  font-size: 13px;
}
.scheduled-status {
  border-radius: 12px;
  background: #15263a;
  color: #8da3bb;
  padding: 5px 8px;
  font-size: 7px;
  font-style: normal;
  white-space: nowrap;
}
.scheduled-status.sent {
  background: #123126;
  color: #63e3a5;
}
.scheduled-status.failed {
  background: #341923;
  color: #ff8c9b;
}
.scheduled-status.waiting_configuration {
  background: #302515;
  color: #ffc66e;
}
.scheduled-item p {
  margin: 12px 0 8px;
  color: #8ca0b7;
  font-size: 9px;
}
.scheduled-item small {
  display: block;
  color: #71849a;
  font-size: 8px;
  line-height: 1.55;
}
.scheduled-item em {
  display: block;
  margin-top: 8px;
  color: #ffb96b;
  font-size: 8px;
}
.scheduled-item-actions {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}
.scheduled-item-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.scheduled-item-actions button.danger {
  margin-left: auto;
  color: #ff91a0;
  border-color: #56303a;
  background: #25131a;
}
.scheduled-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 25px;
  color: #7f91a7;
  text-align: center;
}
.scheduled-empty strong {
  color: #d9e5ee;
  font-size: 13px;
}
.scheduled-empty span {
  font-size: 9px;
}
.bar-item {
  display: grid;
  grid-template-columns: 130px 1fr 35px;
  align-items: center;
  gap: 9px;
  margin: 12px 0;
  font-size: 9px;
}
.bar-track {
  height: 6px;
  background: #17273b;
  border-radius: 6px;
  overflow: hidden;
}
.bar-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 6px;
}
.daily-chart {
  height: 170px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  border-bottom: 1px solid #24344b;
  padding: 15px 5px 0;
}
.day-column {
  flex: 1;
  min-width: 5px;
  background: linear-gradient(var(--cyan), var(--blue));
  border-radius: 3px 3px 0 0;
  position: relative;
}
.day-column:hover:after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #15243a;
  padding: 5px;
  white-space: nowrap;
  font-size: 7px;
  border-radius: 4px;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 12px 17px;
  border: 1px solid #244a63;
  background: #0c2235;
  color: #cceeff;
  border-radius: 7px;
  font-size: 10px;
  opacity: 0;
  transform: translateY(30px);
  transition: 0.25s;
}
.toast.show {
  opacity: 1;
  transform: none;
}
@media (max-width: 1100px) {
  .filters {
    grid-template-columns: repeat(3, 1fr);
  }
  .table-card {
    overflow: auto;
  }
  .table-head,
  .event-row {
    min-width: 850px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .scheduled-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  aside {
    position: static;
    width: auto;
  }
  nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  nav p,
  #operationsAdminNavigation {
    grid-column: 1 / -1;
  }
  #operationsAdminNavigation:not([hidden]) {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  #operationsAdminNavigation p {
    grid-column: 1 / -1;
  }
  .aside-status {
    display: none;
  }
  main {
    margin: 0;
    padding: 18px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .report-card.full {
    grid-column: auto;
  }
  .report-intro,
  .scheduled-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .email-service-status {
    width: 100%;
    min-width: 0;
  }
  .scheduled-form-grid,
  .scheduled-site-group {
    grid-template-columns: 1fr;
  }
}

/* Escala operacional ampliada. */
body {
  font-size: 15px;
}
aside small,
.eyebrow,
.metric small,
.table-head,
.event-row small,
.filter label,
.status {
  font-size: 11px;
}
nav a,
button,
select,
input {
  font-size: 13px;
}
.event-row strong,
.metric p {
  font-size: 13px;
}
