:root {
  --bg: #071121;
  --bg2: #09182b;
  --panel: #0e1b30;
  --panel2: #10213a;
  --line: #1f3658;
  --line2: #27436b;
  --text: #f6f9ff;
  --muted: #9eb1ce;
  --blue: #1774ff;
  --cyan: #08a4ff;
  --green: #13b981;
  --orange: #ff8a34;
  --purple: #7c4dff;
  --shadow: 0 20px 50px rgba(0,0,0,.26);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; letter-spacing: 0; }
button, input { font: inherit; }
button { cursor: pointer; }

.login-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #eef4fb 0%, #fbfcff 55%, #e9f7f4 100%);
  color: #07142d;
}
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 56px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 42px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(140deg, #0a63ce, #1b9a9a); color: white; font-weight: 800; }
.brand strong { display: block; font-size: 18px; }
.brand span { display: block; color: #60708f; font-size: 12px; margin-top: 2px; }
.brand.large .brand-mark { width: 56px; height: 56px; font-size: 24px; }
.brand.large strong { font-size: 28px; }
.login-hero h1 { max-width: 680px; font-size: 54px; line-height: 1.02; margin: 42px 0 18px; }
.login-hero p { max-width: 560px; color: #60708f; font-size: 18px; line-height: 1.6; }
.hero-strip { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-strip span { padding: 12px 14px; border: 1px solid #d9e1ee; background: rgba(255,255,255,.72); border-radius: 8px; font-weight: 700; }
.login-panel { background: white; border: 1px solid #d9e1ee; box-shadow: 0 18px 45px rgba(7,20,45,.12); border-radius: 10px; padding: 34px; }
.login-panel h2 { margin: 0 0 8px; font-size: 28px; }
.login-panel p { margin: 0 0 24px; color: #60708f; }
.login-panel form { display: grid; gap: 18px; }
.login-panel label { display: grid; gap: 8px; font-weight: 700; }
.login-panel input { width: 100%; border: 1px solid #d9e1ee; border-radius: 8px; padding: 13px 14px; background: white; }
.alert { background: #fff2f2; color: #a72b2b; border: 1px solid #ffd1d1; padding: 12px; border-radius: 8px; margin-bottom: 18px; font-weight: 700; }
.primary-button { border: 0; border-radius: 8px; min-height: 46px; padding: 0 18px; font-weight: 800; cursor: pointer; background: #1f8f57; color: white; }

.nexora-dark {
  min-height: 100vh;
  background: radial-gradient(circle at 76% 0%, rgba(23,116,255,.20), transparent 24%), var(--bg);
  color: var(--text);
  overflow: hidden;
}
.nexora-app {
  height: 100vh;
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
}
.sidebar {
  min-height: 0;
  background: linear-gradient(180deg, #07142a 0%, #081325 100%);
  border-right: 1px solid var(--line);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brand-block { display: flex; align-items: center; gap: 12px; padding: 2px 8px 16px; }
.nexora-logo-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #1d8bff 0%, #7c4dff 100%);
  color: white;
  font-size: 28px;
  font-weight: 900;
}
.brand-block strong { display: block; font-size: 18px; letter-spacing: .02em; }
.brand-block span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.side-nav { display: grid; gap: 10px; overflow-y: auto; padding-right: 2px; flex: 1 1 auto; min-height: 0; align-content: start; }
.nav-section {
  border: 1px solid rgba(120,160,220,.13);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(14,27,48,.55);
}
.section-title {
  width: 100%;
  min-height: 42px;
  border: 0;
  background: rgba(255,255,255,.035);
  color: #c8d6ee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}
.nav-section.open .section-title { background: rgba(23,116,255,.12); color: white; }
.section-body { display: none; padding: 8px; }
.nav-section.open .section-body { display: grid; gap: 4px; }
.nav-line {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #d7e4f7;
  display: grid;
  grid-template-columns: 22px 1fr 18px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
}
.nav-line:hover,
.nested-link:hover,
.section-title:hover {
  color: #ffffff;
  text-shadow: 0 0 9px rgba(255,255,255,.85), 0 0 18px rgba(120,180,255,.32);
  background: rgba(255,255,255,.045);
}
.nav-line:hover .ico svg,
.section-title:hover .chev {
  filter: drop-shadow(0 0 8px rgba(255,255,255,.78));
}
.nav-line.active, .nested-link.active {
  background: rgba(23,116,255,.16);
  color: var(--cyan);
}
.nested-link.active {
  position: relative;
}
.nested-link.active span {
  position: absolute;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(31,122,255,.9);
}
.nav-line.disabled { display: none; }
.ico { color: #a7bbd8; text-align: center; display: grid; place-items: center; }
.ico svg,
.bell svg,
.date-button svg,
.soft-button svg,
.refresh-button svg,
.chart-button svg,
.square-button svg,
.kpi svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nested {
  display: none;
  margin-left: 22px;
  padding-left: 10px;
  border-left: 1px solid rgba(39,67,107,.62);
}
.nested.open { display: grid; gap: 3px; }
.nested-link {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9db3d0;
  text-align: left;
  padding: 0 10px;
  font-weight: 700;
  font-size: 13px;
}
.help-card {
  margin-top: auto;
  border-radius: 13px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(124,77,255,.35), rgba(23,116,255,.16));
  border: 1px solid rgba(124,77,255,.38);
}
.help-card strong { display: block; font-size: 13px; }
.help-card p { color: #c1d0ec; font-size: 12px; line-height: 1.4; }
.help-card button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #7157ff, #5b3bdb);
  color: white;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
}
.version { color: #8da0bd; font-size: 12px; text-align: center; }

.main { min-width: 0; display: grid; grid-template-rows: 56px minmax(0, 1fr); background: radial-gradient(circle at 72% 3%, rgba(31,122,255,.18), transparent 26%), linear-gradient(180deg, #071427, #071121); }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb { display: flex; align-items: center; gap: 12px; color: #9eb3cf; font-size: 13px; }
.breadcrumb strong { color: white; }
.user-area { display: flex; align-items: center; gap: 12px; }
.bell {
  position: relative;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d9e7fb;
}
.bell small {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 10px;
}
.user-meta { text-align: right; }
.user-meta strong { display: block; font-size: 13px; }
.user-meta span { display: block; color: var(--muted); font-size: 11px; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #126aff, #2856d9);
  color: white;
  display: grid;
  place-items: center;
  position: relative;
  font-weight: 900;
}
.avatar span {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #15d67f;
}
.notification-wrap { position: relative; }
.notification-menu {
  position: absolute;
  right: 0;
  top: 48px;
  width: min(390px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 92px));
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: #0c1a2f;
  box-shadow: 0 18px 50px rgba(0,0,0,.38);
  padding: 0;
  z-index: 30;
  overflow: hidden;
}
.notification-menu[hidden] { display: none; }
.notification-menu-head {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(54,92,145,.45);
  background: rgba(15, 34, 61, .96);
}
.notification-menu-head strong { display: block; font-size: 14px; color: #eaf3ff; }
.notification-list {
  max-height: min(456px, calc(100vh - 154px));
  overflow: auto;
  padding: 6px 8px;
}
.notification-menu article {
  padding: 10px;
  border-bottom: 1px solid rgba(54,92,145,.35);
}
.notification-menu article[role="button"] {
  cursor: pointer;
  border-radius: 8px;
}
.notification-menu article[role="button"]:hover,
.notification-menu article[role="button"]:focus-visible {
  background: rgba(31,122,255,.13);
  outline: 1px solid rgba(125,252,230,.28);
}
.notification-menu article:last-child { border-bottom: 0; }
.notification-menu article strong { display: block; font-size: 13px; line-height: 1.25; color: #eaf3ff; }
.notification-menu time { display: block; margin-top: 4px; color: #7dfce6; font-size: 11px; font-weight: 800; }
.notification-menu span, .notification-menu p { display: block; margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.notification-list > p { margin: 10px; color: var(--muted); font-size: 12px; }
.content { overflow: auto; padding: 18px 28px 28px; }
.view { display: none; min-height: calc(100vh - 92px); }
.view.active { display: block; }
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.report-head h1 { margin: 0; font-size: 30px; line-height: 1.04; }
.report-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.date-button, .soft-button, .refresh-button, .chart-button, .square-button {
  min-height: 42px;
  border-radius: 9px;
  border: 1px solid var(--line2);
  background: var(--panel);
  color: white;
  padding: 0 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.refresh-button { background: var(--blue); border-color: var(--blue); }
.chart-button { min-height: 44px; min-width: 150px; }
.square-button { min-width: 44px; padding: 0; }
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.kpi {
  background: linear-gradient(180deg, rgba(16,33,58,.92), rgba(11,25,45,.92));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 18px 76px;
  position: relative;
  min-height: 112px;
  box-shadow: var(--shadow);
}
.kpi i {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-style: normal;
  font-weight: 900;
  background: var(--purple);
}
.kpi.green i { background: var(--green); }
.kpi.blue i { background: var(--blue); }
.kpi.orange i { background: var(--orange); }
.kpi.violet i { background: var(--purple); }
.kpi span, .kpi small { display: block; color: #bac9df; font-size: 12px; }
.kpi strong { display: block; margin: 7px 0; font-size: 26px; }
.table-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.table-title h2 { margin: 0; font-size: 18px; }
.table-title div { display: flex; gap: 10px; }
.sales-table-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  background: rgba(14,27,48,.8);
  box-shadow: var(--shadow);
}
.sales-table-card table {
  width: 100%;
  min-width: 1150px;
  border-collapse: collapse;
}
.sales-table-card th {
  background: #0b2444;
  color: white;
  height: 40px;
  padding: 0 12px;
  text-align: center;
  font-size: 12px;
  border-right: 1px solid var(--line);
}
.sales-table-card td {
  height: 52px;
  border-top: 1px solid rgba(39,67,107,.62);
  border-right: 1px solid rgba(39,67,107,.62);
  color: #dbe8fb;
  text-align: center;
  font-size: 12px;
  line-height: 1.28;
}
.sales-table-card tr:hover td { background: rgba(23,116,255,.08); }
.sales-table-card .total-row td {
  background: rgba(20,39,66,.95);
  color: #f8fbff;
  font-weight: 900;
}
.sales-table-card .gap-row td {
  height: 12px;
  padding: 0;
  border: 0;
  background: #071121;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}
.pagination { display: flex; gap: 8px; }
.pagination button {
  min-width: 44px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: #8fa3c1;
}
.pagination button.active { background: var(--blue); color: white; border-color: var(--blue); }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2,8,20,.72);
  display: grid;
  place-items: center;
  z-index: 20;
}
.modal-backdrop[hidden] { display: none; }
.charts-modal {
  width: min(620px, calc(100vw - 36px));
  border: 1px solid var(--line2);
  border-radius: 18px;
  background: linear-gradient(180deg, #101e34, #0b1729);
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
  padding: 24px;
  position: relative;
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: transparent;
  color: white;
  font-size: 24px;
}
.charts-modal span { color: var(--cyan); font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.charts-modal h2 { margin: 8px 0 18px; }
.mock-chart {
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  display: flex;
  align-items: end;
  gap: 18px;
  padding: 22px;
}
.mock-chart i {
  flex: 1;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, var(--blue), var(--purple));
  box-shadow: 0 0 28px rgba(31,122,255,.24);
}
.mock-chart .bar-42 { height: 42%; }
.mock-chart .bar-74 { height: 74%; }
.mock-chart .bar-58 { height: 58%; }
.mock-chart .bar-86 { height: 86%; }
.mock-chart .bar-63 { height: 63%; }
.empty-module, .audit-feedback {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 24px;
}
.empty-module h1, .empty-module h2 { margin: 0 0 8px; }
.empty-module p { color: var(--muted); }
.accounting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}
.accounting-grid label {
  min-height: 130px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line2);
  border-radius: 12px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
}
.accounting-grid input { display: none; }

@media (max-width: 1180px) {
  .nexora-app { grid-template-columns: 230px minmax(0, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nexora-dark { overflow: auto; }
  .nexora-app { height: auto; grid-template-columns: 1fr; }
  .main { grid-template-rows: auto minmax(0, 1fr); }
  .topbar, .report-head, .table-title, .table-footer { flex-direction: column; align-items: flex-start; }
  .kpi-grid, .accounting-grid { grid-template-columns: 1fr; }
}

/* Control de Deudores v10 */
.debtor-head { margin-bottom: 18px; }
.debt-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  gap: 16px;
  margin-bottom: 24px;
}
.debt-kpi-grid .kpi { min-height: 110px; }
.debtor-title {
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(16,33,58,.74), rgba(11,25,45,.58));
  padding: 14px 14px 10px;
  margin-bottom: 0;
}
.debtor-title h2 { font-size: 20px; }
.debtor-title > div { align-items: center; }
.debtor-search {
  width: min(420px, 48vw);
  height: 42px;
  border: 1px solid var(--line2);
  border-radius: 9px;
  outline: none;
  background: rgba(14,27,48,.95);
  color: var(--text);
  padding: 0 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015);
}
.debtor-search::placeholder { color: #7085a4; }
.debtor-table-card {
  border-radius: 0 0 12px 12px;
  border-top: 0;
}
.debtor-table-card table {
  min-width: 1510px;
}
.debtors-table th {
  background: linear-gradient(180deg, #12366b 0%, #0b2444 100%);
  font-size: 11px;
  white-space: nowrap;
}
.debtor-sort-button {
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.debtor-sort-button i {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid #6f91bc;
  opacity: .55;
}
.debtor-sort-button[data-sort-direction="asc"] i { border-bottom-color: #66f0d2; opacity: 1; }
.debtor-sort-button[data-sort-direction="desc"] i { border-bottom: 0; border-top: 5px solid #66f0d2; opacity: 1; }
.debtor-sort-button:focus-visible { outline: 2px solid #66f0d2; outline-offset: -3px; }
.debtors-table td {
  height: 47px;
  padding: 0 8px;
  font-size: 11px;
  white-space: nowrap;
}
.debtors-table td:nth-child(2),
.debtors-table td:nth-child(3),
.debtors-table td:nth-child(4) {
  text-align: left;
}
.debtors-table td:nth-child(3) {
  color: #c4d4ea;
}
.amount-cell {
  color: #f7fbff !important;
  font-weight: 900;
}
.collection-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-weight: 900;
  font-size: 11px;
}
.collection-chip.overdue {
  color: #ff4b5d;
  background: rgba(255,75,93,.12);
  border: 1px solid rgba(255,75,93,.38);
}
.status-select {
  width: 128px;
  height: 32px;
  border-radius: 9px;
  padding: 0 30px 0 11px;
  outline: none;
  font-weight: 900;
  font-size: 11px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 13px,
    calc(100% - 12px) 13px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.status-select.status-sin-contactar {
  color: #ff4b5d;
  background-color: rgba(255,75,93,.10);
  border: 1px solid rgba(255,75,93,.48);
}
.status-select.status-en-proceso {
  color: #ffd43b;
  background-color: rgba(255,212,59,.10);
  border: 1px solid rgba(255,212,59,.52);
}
.status-select.status-pagado {
  color: #3be279;
  background-color: rgba(59,226,121,.12);
  border: 1px solid rgba(59,226,121,.54);
}
.status-select option {
  background: #0e1b30;
  color: white;
}
@media (max-width: 1180px) {
  .debt-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .debtor-search { width: min(360px, 48vw); }
}
@media (max-width: 760px) {
  .debt-kpi-grid { grid-template-columns: 1fr; }
  .debtor-search { width: 100%; }
}

/* Nexora v11: navegación compacta, scroll interno y menú de usuario */
html, body { height: 100%; }
.main { min-height: 0; }
.content {
  min-height: 0;
  overflow: hidden;
  padding: 18px 28px 22px;
}
.view {
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding-right: 2px;
}
.view[data-view-panel="deudores"].active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.view[data-view-panel="deudores"] .report-head { flex: 0 0 auto; }
.view[data-view-panel="deudores"] .debt-kpi-grid { flex: 0 0 auto; }
.view[data-view-panel="deudores"] .debtor-title { flex: 0 0 auto; }
.view[data-view-panel="deudores"] .table-footer { flex: 0 0 auto; }
.debtor-table-card {
  flex: 1 1 auto;
  min-height: 245px;
  max-height: calc(100vh - 365px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(31,122,255,.85) rgba(14,27,48,.82);
}
.debtor-table-card::-webkit-scrollbar,
.view::-webkit-scrollbar,
.side-nav::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.debtor-table-card::-webkit-scrollbar-track,
.view::-webkit-scrollbar-track,
.side-nav::-webkit-scrollbar-track {
  background: rgba(14,27,48,.82);
  border-radius: 999px;
}
.debtor-table-card::-webkit-scrollbar-thumb,
.view::-webkit-scrollbar-thumb,
.side-nav::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(31,122,255,.95), rgba(124,77,255,.82));
  border-radius: 999px;
  border: 2px solid rgba(14,27,48,.82);
}
.sales-table-card th {
  position: sticky;
  top: 0;
  z-index: 3;
}
.user-menu {
  position: relative;
  display: grid;
  place-items: center;
}
.avatar-button {
  border: 0;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 12px 30px rgba(0,0,0,.24);
}
.avatar-button:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px rgba(31,122,255,.42), 0 0 24px rgba(31,122,255,.25);
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 230px;
  padding: 8px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17,34,59,.98), rgba(8,19,36,.98));
  box-shadow: 0 24px 60px rgba(0,0,0,.42);
  z-index: 30;
}
.user-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 15px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: rgba(17,34,59,.98);
  border-left: 1px solid var(--line2);
  border-top: 1px solid var(--line2);
}
.user-dropdown[hidden] { display: none; }
.user-dropdown button,
.user-dropdown a {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #dbe8fb;
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0 12px;
  font-weight: 800;
  text-align: left;
}
.user-dropdown button:hover,
.user-dropdown a:hover {
  background: rgba(31,122,255,.14);
  color: white;
}
.problem-shell {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
.problem-hero,
.problem-form {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16,33,58,.92), rgba(9,22,40,.92));
  box-shadow: var(--shadow);
}
.problem-hero {
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.problem-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(31,122,255,.32), transparent 68%);
}
.problem-kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(31,122,255,.38);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--cyan);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.problem-hero h1 {
  margin: 18px 0 12px;
  font-size: 34px;
}
.problem-hero p {
  margin: 0;
  color: #b8c9e3;
  line-height: 1.7;
}
.problem-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.problem-form label {
  display: grid;
  gap: 8px;
}
.problem-form label span {
  color: #b8c9e3;
  font-size: 12px;
  font-weight: 900;
}
.problem-form input,
.problem-form textarea {
  width: 100%;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: rgba(7,17,33,.78);
  color: white;
  outline: none;
  padding: 13px 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015);
}
.problem-form input[readonly] {
  color: #c9d8ec;
  background: rgba(12,28,50,.72);
}
.problem-form textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.55;
}
.problem-form textarea::placeholder { color: #758aa8; }
.problem-message { flex: 1; }
.problem-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}
.problem-confirmation {
  margin: 0;
  border: 1px solid rgba(19,185,129,.35);
  border-radius: 12px;
  background: rgba(19,185,129,.10);
  color: #75f0b6;
  padding: 12px 14px;
  font-weight: 800;
}
@media (max-width: 980px) {
  .problem-shell { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
}

/* Nexora v12: Deudores en áreas operativas, dropdown visual, emails clickeables e IT */
.sidebar { overflow: hidden; }
.side-nav { flex: 1 1 auto; min-height: 0; }
.email-link {
  color: #9fd1ff;
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1px dashed rgba(159,209,255,.45);
}
.email-link:hover { color: #ffffff; border-bottom-color: #ffffff; text-shadow: 0 0 10px rgba(31,122,255,.65); }
.status-control {
  position: relative;
  width: 136px;
  margin: 0 auto;
  --status-color: #ff4b5d;
  --status-bg: rgba(255,75,93,.11);
  --status-border: rgba(255,75,93,.46);
}
.status-control.status-en-proceso { --status-color: #ffd43b; --status-bg: rgba(255,212,59,.11); --status-border: rgba(255,212,59,.52); }
.status-control.status-pagado { --status-color: #3be279; --status-bg: rgba(59,226,121,.12); --status-border: rgba(59,226,121,.54); }
.status-trigger {
  width: 100%;
  min-height: 32px;
  border-radius: 9px;
  border: 1px solid var(--status-border);
  background: var(--status-bg);
  color: var(--status-color);
  font-weight: 900;
  font-size: 11px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 0 16px rgba(0,0,0,.08);
}
.status-trigger i {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .9;
}
.status-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  width: 158px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: rgba(8,18,34,.98);
  box-shadow: 0 18px 45px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.02) inset;
  padding: 7px;
  backdrop-filter: blur(12px);
}
.status-menu[hidden] { display: none; }
.status-option {
  width: 100%;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  font-weight: 900;
  font-size: 11px;
  text-align: left;
}
.status-option b {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}
.status-option.status-sin-contactar { color: #ff4b5d; }
.status-option.status-en-proceso { color: #ffd43b; }
.status-option.status-pagado { color: #3be279; }
.status-option:hover,
.status-option.active {
  border-color: currentColor;
  background: color-mix(in srgb, currentColor 14%, transparent);
}
.status-select { display: none; }

.it-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.it-head {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(17,34,59,.96), rgba(8,20,38,.92));
  box-shadow: var(--shadow);
}
.it-head h1 { margin-top: 10px; }
.it-grid {
  display: grid;
  grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  flex: 1;
}
.it-form,
.it-users-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16,33,58,.92), rgba(9,22,40,.92));
  box-shadow: var(--shadow);
}
.it-form { padding: 18px; align-self: start; }
.it-form h2,
.it-users-title h2 { margin: 0; font-size: 20px; }
.it-form-grid { display: grid; gap: 13px; margin-top: 16px; }
.it-form label { display: grid; gap: 7px; }
.it-form label span { color: #bdd0ea; font-weight: 900; font-size: 12px; }
.it-form input,
.it-form select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: rgba(7,17,33,.86);
  color: white;
  outline: none;
  padding: 0 12px;
}
.it-form select {
  color-scheme: dark;
}
.it-form select option {
  background: #07172b;
  color: #eaf6ff;
}
.it-form select option:checked {
  background: #1d7cff;
  color: #ffffff;
}
.it-form select option:disabled,
.it-form select option[value=""] {
  color: #8fa5c4;
  background: #081a31;
}
.it-form label:has(select[name="posicion"]:not([data-position-select])) { display: none; }
.position-composer:has([data-position-input]) { display: none; }
.position-composer.wide,
.position-select-field.wide,
.position-create-field.wide { grid-column: 1 / -1; }
.position-select-field select {
  min-height: 46px;
  border-color: rgba(33,231,255,.38);
  background:
    linear-gradient(135deg, rgba(9, 28, 54, .96), rgba(6, 18, 35, .96)),
    radial-gradient(circle at 12% 20%, rgba(33,231,255,.16), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(33,231,255,.06);
}
.position-select-field select:focus,
.position-create-field input:focus {
  border-color: rgba(125,252,230,.72);
  box-shadow: 0 0 0 3px rgba(33,231,255,.10), 0 0 22px rgba(33,231,255,.12);
}
.position-combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.position-combo button {
  min-height: 40px;
  border: 1px solid rgba(33,231,255,.48);
  border-radius: 8px;
  padding: 0 13px;
  background: linear-gradient(135deg, rgba(20,184,166,.18), rgba(37,99,235,.24));
  color: #c9fff7;
  font-weight: 900;
}
.position-composer small { color: #8fa5c4; font-size: 11px; }
.position-create-field small { color: #8fa5c4; font-size: 11px; }
.position-manager.wide {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(33,231,255,.18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(7, 20, 39, .78), rgba(5, 15, 30, .88)),
    radial-gradient(circle at 18% 0%, rgba(33,231,255,.12), transparent 32%);
}
.position-manager-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.position-manager-head span {
  color: #d8f6ff;
  font-size: 12px;
  font-weight: 900;
}
.position-manager-head small {
  max-width: 220px;
  color: #8fa5c4;
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}
.position-manager-list {
  display: grid;
  gap: 8px;
  max-height: 190px;
  overflow: auto;
  padding-right: 2px;
}
.position-chip-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid rgba(63,118,194,.42);
  border-radius: 8px;
  background: rgba(8, 24, 46, .82);
}
.position-chip-card span {
  min-width: 0;
  overflow: hidden;
  color: #f4fbff;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.position-chip-card small {
  color: #9fd1ff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.position-chip-card.in-use {
  border-color: rgba(33,231,255,.30);
  background: linear-gradient(135deg, rgba(11, 42, 75, .88), rgba(7, 24, 45, .90));
}
.position-chip-card button {
  min-height: 28px;
  border: 1px solid rgba(255,92,92,.42);
  border-radius: 7px;
  background: rgba(255,92,92,.12);
  color: #ffc2c2;
  font-size: 11px;
  font-weight: 900;
  padding: 0 9px;
  cursor: pointer;
}
.position-chip-card button:hover {
  border-color: rgba(255,142,142,.72);
  background: rgba(255,92,92,.20);
}
.position-chip-card button:disabled {
  border-color: rgba(105,137,178,.28);
  background: rgba(105,137,178,.10);
  color: #7890ad;
  cursor: not-allowed;
}
.position-empty {
  min-height: 36px;
  display: flex;
  align-items: center;
  color: #8fa5c4;
  font-size: 12px;
}
.password-field { position: relative; }
.password-field input { padding-right: 70px; }
.password-field button {
  position: absolute;
  right: 6px;
  bottom: 6px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: rgba(31,122,255,.15);
  color: #9fd1ff;
  font-size: 11px;
  font-weight: 900;
  padding: 0 10px;
}
.it-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.it-recovery-button,
.it-unlock-button {
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.it-unlock-button {
  border-color: rgba(125,252,230,.46);
  color: #9dfff0;
  background: rgba(20,180,145,.12);
}
.danger-button {
  min-height: 42px;
  border-radius: 9px;
  border: 1px solid rgba(255,92,92,.38);
  background: linear-gradient(135deg, rgba(255,92,92,.24), rgba(239,105,18,.22));
  color: #ffb9b9;
  font-weight: 900;
}
.it-note { margin: 14px 0 0; color: #8fa5c4; font-size: 12px; line-height: 1.45; }
.it-users-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.it-users-title {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.it-users-title p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.it-table-wrap { overflow: auto; min-height: 340px; }
.it-users-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.it-users-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 40px;
  background: linear-gradient(180deg, #12366b 0%, #0b2444 100%);
  color: white;
  border-right: 1px solid var(--line);
  font-size: 12px;
  text-align: center;
}
.it-users-table td {
  height: 48px;
  padding: 0 10px;
  border-top: 1px solid rgba(39,67,107,.62);
  border-right: 1px solid rgba(39,67,107,.62);
  color: #dbe8fb;
  font-size: 12px;
  white-space: nowrap;
}
.it-users-table tr:hover td { background: rgba(23,116,255,.08); }
.position-cell { min-width: 180px; }
.row-position-select {
  width: 100%;
  min-width: 160px;
  height: 32px;
  border: 1px solid rgba(33,231,255,.32);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(8, 25, 48, .96), rgba(5, 17, 34, .96));
  color: #eaf6ff;
  color-scheme: dark;
  outline: none;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.row-position-select:hover,
.row-position-select:focus {
  border-color: rgba(125,252,230,.72);
  box-shadow: 0 0 0 3px rgba(33,231,255,.10);
}
.row-position-select option {
  background: #07172b;
  color: #eaf6ff;
}
.row-position-select.saving {
  opacity: .68;
  cursor: progress;
}
.license-chip {
  display: inline-flex;
  height: 26px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(31,122,255,.34);
  color: #9fd1ff;
  background: rgba(31,122,255,.10);
  padding: 0 10px;
  font-weight: 900;
  font-size: 11px;
}
.password-mask { color: #c6d7ef !important; letter-spacing: .08em; }
.mini-link {
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: rgba(31,122,255,.10);
  color: #9fd1ff;
  min-height: 28px;
  padding: 0 10px;
  font-weight: 900;
  font-size: 11px;
}
.it-row-actions { display: flex; gap: 7px; align-items: center; }
.unlock-mini {
  border-color: rgba(125,252,230,.46);
  color: #a8fff0;
  background: rgba(20,180,145,.12);
}
.account-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid rgba(31,122,255,.34);
  background: rgba(31,122,255,.10);
  color: #9fd1ff;
}
.account-status.active {
  border-color: rgba(20,220,145,.46);
  background: rgba(20,220,145,.12);
  color: #a8ffd7;
}
.account-status.blocked {
  border-color: rgba(255,91,135,.56);
  background: rgba(130,28,58,.30);
  color: #ffd1de;
}
.attempt-note {
  display: block;
  margin-top: 4px;
  color: #ffd47a;
  font-size: 10px;
  font-weight: 800;
}
.it-table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.it-table-wrap::-webkit-scrollbar-track { background: rgba(14,27,48,.82); border-radius: 999px; }
.it-table-wrap::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(31,122,255,.95), rgba(124,77,255,.82)); border-radius: 999px; border: 2px solid rgba(14,27,48,.82); }

@media (max-height: 820px) {
  .sidebar { gap: 10px; padding-top: 12px; padding-bottom: 10px; }
  .brand-block { padding-bottom: 6px; }
  .help-card { display: block; padding: 11px; }
  .help-card p { display: none; }
  .help-card button { min-height: 34px; margin-top: 7px; }
  .section-title { min-height: 36px; }
  .nav-line { min-height: 32px; }
  .nested-link { min-height: 29px; }
}
@media (max-width: 1180px) {
  .it-grid { grid-template-columns: 1fr; }
  .it-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar { max-height: none; overflow: visible; }
  .side-nav { overflow: visible; }
  .it-form-grid { grid-template-columns: 1fr; }
  .it-users-title { flex-direction: column; align-items: stretch; }
}

/* Nexora v13: login recovery, IT confirmations and password history */
.forgot-link {
  border: 0;
  background: transparent;
  color: #176fd6;
  font-weight: 900;
  cursor: pointer;
  padding: 4px 0 0;
  text-align: center;
}
.forgot-link:hover { color: #0b4fa3; text-decoration: underline; }
.login-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4,12,27,.62);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-modal-backdrop[hidden] { display: none; }
.login-mini-modal {
  width: min(440px, 100%);
  border: 1px solid rgba(120,160,220,.28);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,247,255,.98));
  box-shadow: 0 26px 80px rgba(7,20,45,.30);
  padding: 28px;
  position: relative;
  color: #07142d;
}
.login-mini-modal h3 { margin: 0 0 8px; font-size: 25px; }
.login-mini-modal p { margin: 0 0 18px; color: #5b6f8f; line-height: 1.45; }
.login-mini-modal form { display: grid; gap: 14px; }
.reset-language-switch {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 10px;
  background: #edf4ff;
  border: 1px solid #d7e4f5;
}
.reset-language-switch button {
  border: 0;
  min-height: 28px;
  border-radius: 7px;
  padding: 0 10px;
  background: transparent;
  color: #426284;
  font-weight: 900;
  font-size: 11px;
  cursor: pointer;
  text-transform: lowercase;
}
.reset-language-switch button.active {
  background: #ffffff;
  color: #0b4fa3;
  box-shadow: 0 6px 14px rgba(27, 87, 160, .12);
}
.login-mini-modal label { display: grid; gap: 8px; font-weight: 900; color: #10213a; }
.login-mini-modal input,
.login-mini-modal select {
  width: 100%;
  border: 1px solid #cbd8ea;
  border-radius: 10px;
  min-height: 43px;
  padding: 0 12px;
  background: white;
  outline: none;
}
.login-mini-modal input:focus,
.login-mini-modal select:focus { border-color: #1774ff; box-shadow: 0 0 0 4px rgba(23,116,255,.14); }
.login-modal-x {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid #d9e4f3;
  border-radius: 50%;
  background: white;
  color: #10213a;
  font-size: 20px;
  font-weight: 900;
}
.forgot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.secondary-login-button {
  border: 1px solid #d2deef;
  border-radius: 8px;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 900;
  background: #f5f8fd;
  color: #15345f;
}
.help-send-button {
  background: linear-gradient(135deg, #0f9f6e, #22c55e) !important;
  box-shadow: 0 14px 28px rgba(16, 185, 129, .22);
}
.compact-close { min-height: 38px; }
.forgot-error,
.forgot-success {
  margin: 0 !important;
  padding: 11px 12px;
  border-radius: 10px;
  font-weight: 900;
}
.forgot-error { color: #b92335 !important; background: #fff0f2; border: 1px solid #ffc8cf; }
.forgot-success { color: #0d7b4d !important; background: #eefbf5; border: 1px solid #b9f0d5; }
.confirm-backdrop[hidden] { display: none; }
.confirm-modal { max-width: 470px; }
.confirm-modal p { color: #a9bdd8; line-height: 1.55; margin: 0 0 22px; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.it-feedback {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 12px;
}
.it-feedback[data-type="ok"] { color: #75f0b6; border: 1px solid rgba(19,185,129,.38); background: rgba(19,185,129,.10); }
.it-feedback[data-type="loading"] {
  color: #d8e8ff;
  border: 1px solid rgba(47,124,255,.42);
  background: rgba(47,124,255,.12);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.it-feedback[data-type="loading"]::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(216,232,255,.25);
  border-top-color: #d8e8ff;
  animation: nexora-spin .75s linear infinite;
}
.it-feedback[data-type="warn"] { color: #ffd43b; border: 1px solid rgba(255,212,59,.40); background: rgba(255,212,59,.10); }
.it-feedback[data-type="error"] { color: #ff7986; border: 1px solid rgba(255,75,93,.42); background: rgba(255,75,93,.10); }
.it-users-table tr.selected td {
  background: rgba(31,122,255,.13);
  box-shadow: inset 3px 0 0 rgba(31,122,255,.95);
}
.it-history-card {
  border-top: 1px solid var(--line);
  padding: 16px;
  background: linear-gradient(180deg, rgba(7,17,33,.40), rgba(7,17,33,.66));
  display: grid;
  gap: 12px;
}
.it-history-card h3 { margin: 0; font-size: 16px; }
.it-history-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.history-list { display: grid; gap: 10px; max-height: 160px; overflow: auto; padding-right: 4px; }
.history-empty {
  color: #8fa5c4;
  border: 1px dashed rgba(120,160,220,.25);
  border-radius: 12px;
  padding: 12px;
  display: block;
}
.history-item {
  border: 1px solid rgba(120,160,220,.18);
  border-radius: 12px;
  background: rgba(16,33,58,.56);
  padding: 11px 12px;
  display: grid;
  gap: 4px;
}
.history-item strong { color: white; font-size: 12px; }
.history-item span { color: #cfe0f7; font-weight: 800; font-size: 12px; }
.history-item small { color: #8fa5c4; }
.history-item em { color: #8fa5c4; font-style: normal; font-size: 11px; }
.profile-shell {
  display: grid;
  gap: 18px;
  max-width: 1120px;
}
.profile-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(145deg, rgba(16,33,58,.94), rgba(8,20,38,.96));
  box-shadow: var(--shadow);
}
.profile-hero h1 { margin: 8px 0 6px; color: #fff; font-size: clamp(28px, 4vw, 46px); line-height: 1.05; }
.profile-hero p { margin: 0; color: #9fd1ff; font-weight: 900; }
.profile-avatar-card { display: grid; gap: 12px; justify-items: center; }
.profile-avatar-frame {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(33,231,255,.58);
  background: radial-gradient(circle at 35% 20%, rgba(33,231,255,.22), rgba(37,99,235,.14) 38%, rgba(7,17,33,.92));
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(125,252,230,.12), 0 22px 48px rgba(0,0,0,.28), 0 0 36px rgba(37,99,235,.22);
}
.profile-avatar-frame img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-placeholder svg { width: 74px; height: 74px; stroke: #dff8ff; fill: none; stroke-width: 1.5; opacity: .78; }
.profile-avatar-form { display: grid; gap: 8px; justify-items: center; }
.profile-avatar-form small { color: #8fa5c4; font-size: 11px; }
.profile-data-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16,33,58,.92), rgba(9,22,40,.92));
  overflow: hidden;
}
.profile-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(70, 128, 190, .20);
}
.profile-data-grid article {
  min-height: 86px;
  padding: 16px;
  background: rgba(7,17,33,.82);
  display: grid;
  align-content: center;
  gap: 8px;
}
.profile-data-grid span { color: #8fa5c4; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.profile-data-grid strong { color: #eaf6ff; font-size: 14px; overflow-wrap: anywhere; }
.avatar-button { overflow: hidden; }
.avatar-button img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-button b { font: inherit; }
@media (max-width: 860px) {
  .profile-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .profile-data-grid { grid-template-columns: 1fr; }
}
.status-menu {
  transform-origin: top right;
  animation: statusDrop .12s ease-out;
}
@keyframes statusDrop {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-height: 760px) {
  .side-nav { max-height: calc(100vh - 128px); }
  .section-body { padding: 6px; }
  .nested-link { min-height: 28px; }
}

/* Nexora v14: Deudores conectado a n8n, selector de complejo y filtros reales */
.debtors-module { min-height: 0; display: flex; flex-direction: column; }
.debtors-actions { align-items: center; }
.complex-selector-card {
  min-width: 245px;
  min-height: 60px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(23,116,255,.14), rgba(124,77,255,.10));
  box-shadow: 0 12px 32px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.025);
  padding: 9px 12px;
  display: grid;
  gap: 5px;
}
.complex-selector-card span {
  color: #9fb7d8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.complex-selector-card select,
.complex-selector-card strong {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: white;
  font-weight: 900;
  font-size: 14px;
}
.complex-selector-card select option { background: #0e1b30; color: white; }
.sales-filter-card { min-width: 170px; }
.complex-selector-card.locked {
  border-color: rgba(19,185,129,.35);
  background: linear-gradient(135deg, rgba(19,185,129,.12), rgba(23,116,255,.08));
}
.debtor-filter-wrap { position: relative; }
.debtor-filter-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  width: 210px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17,34,59,.98), rgba(8,19,36,.98));
  box-shadow: 0 24px 60px rgba(0,0,0,.42);
  padding: 10px;
}
.debtor-filter-menu[hidden] { display: none; }
.debtor-filter-menu strong {
  display: block;
  color: #9fd1ff;
  font-size: 12px;
  margin: 3px 5px 8px;
}
.debtor-filter-menu button {
  width: 100%;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #dce8fb;
  text-align: left;
  padding: 0 10px;
  font-weight: 900;
}
.debtor-filter-menu button:hover,
.debtor-filter-menu button.active {
  background: rgba(31,122,255,.15);
  border-color: rgba(31,122,255,.35);
  color: white;
}
.collection-chip.pending {
  color: #ffd43b;
  background: rgba(255,212,59,.10);
  border: 1px solid rgba(255,212,59,.38);
}
.debtor-loading {
  border: 1px solid var(--line);
  border-top: 0;
  background: linear-gradient(135deg, rgba(31,122,255,.14), rgba(124,77,255,.10));
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cfe2ff;
}
.debtor-loading[hidden] { display: none; }
.nexora-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: var(--cyan);
  animation: nexora-spin .8s linear infinite;
}
@keyframes nexora-spin { to { transform: rotate(360deg); } }
.debtor-loading strong { color: white; }
.debtor-loading span { color: #93aaca; font-size: 12px; }
.refresh-button:disabled { opacity: .65; cursor: wait; }
.debtor-feedback {
  margin: 12px 0 0;
  border-radius: 12px;
  border: 1px solid rgba(31,122,255,.35);
  background: rgba(31,122,255,.10);
  color: #b9d7ff;
  padding: 11px 13px;
  font-weight: 800;
  font-size: 12px;
}
.debtor-feedback:empty { display: none; }
.debtor-feedback[data-type="error"] {
  border-color: rgba(255,75,93,.42);
  background: rgba(255,75,93,.11);
  color: #ffb3bd;
}
.debtor-feedback[data-type="warn"] {
  border-color: rgba(255,212,59,.42);
  background: rgba(255,212,59,.10);
  color: #ffe38a;
}
.debtor-update-card {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(85, 167, 255, .28);
  border-radius: 8px;
  background: rgba(8, 28, 52, .74);
  display: grid;
  align-content: center;
  gap: 6px;
}
.debtor-update-card span {
  color: #8fb3df;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.debtor-update-card strong { color: #fff; font-size: 15px; line-height: 1.3; }
.debtor-update-card small { color: #9fb7d5; }
.debtor-update-card b { color: #7dfce6; }
@media (max-width: 980px) {
  .debtors-actions { width: 100%; justify-content: flex-start; }
  .complex-selector-card { min-width: min(100%, 320px); }
  .debtor-title > div { width: 100%; }
  .debtor-search { width: 100%; }
}

/* Nexus Hub v2.7: visual refresh for KTR/Katie and RGA without touching operational modules */
.brand-block .nexora-logo-mark,
.brand.large .brand-mark {
  background: linear-gradient(145deg, #1774ff 0%, #08a4ff 48%, #7c4dff 100%);
  box-shadow: 0 0 26px rgba(23,116,255,.34);
}

.tool-shell {
  min-height: 100%;
  color: var(--text);
  padding-bottom: 24px;
}
.tool-hero {
  border: 1px solid rgba(61,99,154,.72);
  background: radial-gradient(circle at 88% 0%, rgba(23,116,255,.2), transparent 34%), linear-gradient(145deg, rgba(16,33,58,.96), rgba(8,18,34,.96));
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tool-hero-copy h1 {
  margin: 6px 0 8px;
  font-size: clamp(30px, 3.1vw, 48px);
  line-height: 1;
}
.tool-hero-copy p {
  color: #bdd0ec;
  margin: 0;
  max-width: 760px;
  line-height: 1.55;
}
.tool-kicker {
  color: #79e9ff;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 900;
}
.tool-chip-row {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tool-chip-row span {
  border: 1px solid rgba(117,160,224,.38);
  background: rgba(8,20,38,.72);
  border-radius: 999px;
  padding: 8px 12px;
  color: #d9e7fb;
  font-size: 12px;
  font-weight: 800;
}
.ktr-logo-card {
  width: min(330px, 30vw);
  aspect-ratio: 590/524;
  border-radius: 18px;
  border: 1px solid rgba(124,77,255,.44);
  background: #030a1e;
  box-shadow: 0 0 40px rgba(124,77,255,.22), inset 0 0 24px rgba(23,116,255,.14);
  overflow: hidden;
  flex: 0 0 auto;
}
.ktr-logo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.ktr-workspace,
.rga-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}
.ktr-main-panel,
.audit-side-panel,
.rga-doc-card,
.rga-action-panel .action-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16,33,58,.94), rgba(10,23,41,.94));
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(0,0,0,.22);
}
.ktr-main-panel { padding: 18px; }
.tool-section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.tool-section-title h2 { margin: 0 0 5px; font-size: 22px; }
.tool-section-title p { margin: 0; color: var(--muted); font-size: 13px; }
.hotel-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
}
.hotel-upload-card {
  border: 1px solid rgba(64,105,165,.78);
  border-radius: 14px;
  padding: 14px;
  background: rgba(10,23,41,.82);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hotel-upload-card.featured {
  border-color: rgba(20,220,145,.64);
  box-shadow: inset 0 0 0 1px rgba(20,220,145,.12);
}
.hotel-upload-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.hotel-upload-head h3 { margin: 0 0 8px; color: #fff7c7; font-size: 18px; }
.hotel-upload-head small { color: #9db3d0; }
.file-pill {
  border: 1px solid rgba(100,151,232,.6);
  color: #87f4ff;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
}
.drop-zone,
.cash-drop {
  border: 2px solid #1774ff;
  background: rgba(9,24,46,.82);
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}
.drop-zone.drag-active,
.cash-drop.drag-active,
.doc-drop.drag-active {
  border-color: rgba(255,255,255,.94);
  background: rgba(31,122,255,.18);
  box-shadow: 0 0 0 1px rgba(255,255,255,.24), 0 0 30px rgba(31,122,255,.35);
  transform: translateY(-1px);
}
.drop-zone strong,
.cash-drop { font-size: 22px; color: white; font-weight: 900; }
.drop-zone span { color: #bfd1ea; }
.drop-zone em { color: #69e5ff; font-style: normal; font-size: 12px; }
.upload-status { display: grid; gap: 5px; color: #abc0dc; font-size: 12px; }
.upload-status b { color: white; }
.upload-actions { display: grid; gap: 9px; margin-top: auto; }
.tool-primary-button,
.tool-soft-button,
.tool-danger-button,
.tool-outline-button,
.tool-email-button,
.tool-green-button {
  min-height: 40px;
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 0 14px;
  color: white;
  font-weight: 900;
  background: #245be5;
}
.tool-primary-button { background: linear-gradient(135deg, #1774ff, #2856d9); }
.tool-soft-button { background: rgba(23,116,255,.16); border-color: rgba(80,132,220,.7); }
.tool-danger-button { background: rgba(130,28,58,.45); border-color: #ff5b87; }
.tool-outline-button { background: rgba(5,34,22,.55); border-color: #20df87; color: #b6ffd9; }
.tool-email-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b8cff, #00d4ff 52%, #18f0c8);
  border-color: rgba(125,252,230,.62);
  box-shadow: 0 0 0 1px rgba(125,252,230,.16), 0 14px 34px rgba(0,148,255,.24), inset 0 1px 0 rgba(255,255,255,.24);
}
.tool-email-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.32) 46%, transparent 58%);
  transform: translateX(-130%);
  transition: transform .28s ease;
}
.tool-email-button:hover::before { transform: translateX(130%); }
.tool-green-button { background: linear-gradient(135deg, #13a06d, #18ba7a); }
.tool-primary-button.big,
.tool-soft-button.big,
.tool-email-button.big,
.tool-green-button.big { width: 100%; min-height: 52px; }
.tool-primary-button.muted { opacity: .72; }
.tool-danger-button.small {
  width: 64px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  line-height: 1;
  text-align: center;
}
.date-mini-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 8px;
  align-items: center;
  color: #dceaff;
  font-weight: 800;
  font-size: 12px;
}
.date-mini-row input {
  background: #081931;
  border: 1px solid #1774ff;
  color: white;
  border-radius: 7px;
  padding: 9px 10px;
}
.date-mini-row button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: #142967;
  color: white;
  padding: 0 12px;
}
.cash-box {
  border: 1px solid rgba(20,220,145,.68);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0,40,31,.34);
}
.cash-box h4 { margin: 0 0 6px; color: #a6ffd2; }
.cash-box p { color: #9db3d0; font-size: 12px; }
.cash-drop { min-height: 74px; border-color: #18df78; color: #d7fff0; margin: 10px 0; }
.audit-side-panel {
  padding: 18px;
  position: sticky;
  top: 0;
  display: grid;
  gap: 12px;
}
.audit-side-panel h2 { margin: 4px 0; color: #83ffc4; }
.audit-side-panel p { color: var(--muted); line-height: 1.5; font-size: 13px; }
.audit-mini-status { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 5px; }
.audit-mini-status span { color: #ffdf55; }
.rga-hero { justify-content: flex-start; }
.rga-logo-large {
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  border-radius: 24px;
  background: rgba(9,24,46,.9);
  display: grid;
  place-items: center;
  border: 1px solid rgba(49,139,255,.7);
  box-shadow: 0 0 34px rgba(23,116,255,.24);
}
.rga-logo-large img { width: 82px; height: 82px; }
.rga-workspace {
  grid-template-columns: minmax(0, 1fr) 300px;
}
.rga-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 16px;
}
.rga-doc-card {
  min-height: 300px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rga-doc-card.excel-card { grid-column: 1 / span 1; }
.rga-doc-head { display: flex; gap: 12px; align-items: flex-start; }
.rga-doc-head span { color: #85ffe1; font-size: 18px; }
.rga-doc-head h2 { margin: 0 0 6px; font-size: 18px; }
.rga-doc-head p { color: #9db3d0; margin: 0; font-size: 12px; }
.rga-doc-body { display: flex; gap: 22px; align-items: flex-start; flex: 1; }
.doc-drop {
  width: 86px;
  height: 86px;
  border: 2px solid #1774ff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #8bd7ff;
  background: rgba(19,54,98,.64);
  flex: 0 0 auto;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}
.doc-drop strong { font-size: 18px; display: block; }
.doc-drop small { font-size: 10px; }
.excel-drop { border-color: #11e58a; color: #a6ffd2; background: rgba(0,58,41,.6); }
.rga-doc-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; color: #cfe0f7; font-size: 12px; }
.rga-doc-actions { display: flex; gap: 8px; margin-top: auto; }
.rga-doc-actions .tool-primary-button,
.rga-doc-actions .tool-green-button { flex: 1; }
.paraty-search {
  flex: 1;
  border: 1px solid rgba(64,105,165,.75);
  padding: 12px;
  background: rgba(7,19,38,.66);
  display: grid;
  gap: 8px;
}
.paraty-search label { font-weight: 900; color: #dff0ff; font-size: 12px; }
.paraty-search div { display: grid; grid-template-columns: 1fr 88px 92px; gap: 6px; }
.paraty-search select { min-height: 34px; }
.paraty-search button { border: 0; border-radius: 6px; background: #245be5; color: white; font-weight: 900; }
.paraty-search small { color: #8fa6c7; }
.paraty-card { gap: 12px; }
.paraty-audit-controls {
  display: grid;
  grid-template-columns: minmax(170px, 1.25fr) minmax(130px, .9fr) minmax(90px, .55fr);
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(33, 231, 255, .24);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(7, 29, 58, .86), rgba(3, 14, 30, .92));
  box-shadow: inset 0 0 0 1px rgba(125, 252, 230, .05), 0 0 24px rgba(36, 108, 255, .12);
}
.paraty-audit-controls label {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.paraty-audit-controls span {
  color: #7dfce6;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.paraty-audit-controls select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid rgba(64, 137, 255, .42);
  border-radius: 10px;
  color: #f7fbff;
  background: rgba(4, 18, 38, .94);
  padding: 0 34px 0 12px;
  outline: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #7dfce6 50%), linear-gradient(135deg, #7dfce6 50%, transparent 50%);
  background-position: calc(100% - 17px) 17px, calc(100% - 11px) 17px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.paraty-audit-controls select:focus {
  border-color: rgba(33, 231, 255, .82);
  box-shadow: 0 0 0 3px rgba(33, 231, 255, .08);
}
.paraty-audit-controls small {
  grid-column: 1 / -1;
  color: #9fb7d5;
  line-height: 1.35;
}
.rga-action-panel { display: grid; gap: 18px; }
.action-card { padding: 18px; display: grid; gap: 12px; }
.action-card.slim p { color: #cbdaf0; margin: 0; display: flex; gap: 10px; align-items: center; }
.action-card.slim i { width: 12px; height: 12px; border-radius: 999px; background: #ffdf55; box-shadow: 0 0 0 5px rgba(255,223,85,.08); }
.action-card.warning { border-color: rgba(255,138,52,.5); background: linear-gradient(180deg, rgba(80,43,7,.8), rgba(20,22,34,.94)); }
.action-card.warning h2 { color: #ffdf55; margin: 0; }
.action-card.warning p { margin: 0; color: #f7dca9; }

@media (max-width: 1280px) {
  .hotel-upload-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .ktr-workspace, .rga-workspace { grid-template-columns: 1fr; }
  .audit-side-panel, .rga-action-panel { position: static; }
  .rga-action-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tool-hero { flex-direction: column; align-items: flex-start; }
  .ktr-logo-card { width: min(100%, 360px); }
  .hotel-upload-grid, .rga-doc-grid, .rga-action-panel { grid-template-columns: 1fr; }
  .rga-doc-card.excel-card { grid-column: auto; }
  .rga-doc-body { flex-direction: column; }
  .paraty-audit-controls { grid-template-columns: 1fr; }
  .date-mini-row { grid-template-columns: 1fr; }
}

/* Nexus Hub v3.2: visual confirmation for uploaded audit files */
.drop-zone,
.cash-drop,
.doc-drop {
  position: relative;
  overflow: hidden;
}
.drop-zone.file-loaded,
.cash-drop.file-loaded,
.doc-drop.file-loaded {
  border-color: rgba(24, 223, 120, .95) !important;
  background: linear-gradient(135deg, rgba(24, 223, 120, .20), rgba(28, 116, 255, .08)) !important;
  box-shadow: inset 0 0 0 1px rgba(24, 223, 120, .34), 0 0 30px rgba(24, 223, 120, .20) !important;
  color: #d9fff0 !important;
}
.drop-zone.file-loaded::before,
.cash-drop.file-loaded::before,
.doc-drop.file-loaded::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(255,255,255,.18), transparent 32%), linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
  pointer-events: none;
}
.drop-zone.file-loaded::after,
.cash-drop.file-loaded::after,
.doc-drop.file-loaded::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(24, 223, 120, .92);
  color: #041523;
  font-weight: 1000;
  box-shadow: 0 0 20px rgba(24, 223, 120, .38);
}
.drop-zone.file-loaded strong,
.cash-drop.file-loaded strong,
.doc-drop.file-loaded strong {
  color: #edfff7;
}
.drop-zone.file-loaded span,
.cash-drop.file-loaded span,
.doc-drop.file-loaded small,
.drop-zone.file-loaded em {
  color: #aef8d2;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hotel-upload-card.has-file,
.rga-doc-card.has-file {
  border-color: rgba(24, 223, 120, .72) !important;
  box-shadow: inset 0 0 0 1px rgba(24, 223, 120, .10), 0 20px 48px rgba(0,0,0,.26);
}

/* Green drag target feedback for KTR and RGA */
.drop-zone.drag-active,
.cash-drop.drag-active,
.doc-drop.drag-active {
  border-color: rgba(24, 223, 120, .95) !important;
  background: rgba(24, 223, 120, .14) !important;
  box-shadow: 0 0 0 1px rgba(24, 223, 120, .30), 0 0 34px rgba(24, 223, 120, .24) !important;
}

/* Nexus Hub v3.3: governance, RGA loading, IT tabs */
.rga-doc-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
}
.rga-doc-actions .tool-danger-button.small,
.upload-actions .tool-danger-button {
  width: auto !important;
  min-width: 82px;
  max-width: 128px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.upload-actions {
  display: grid;
  grid-template-columns: 1fr 148px 1fr;
  gap: 10px;
}
@media (max-width: 900px) {
  .upload-actions { grid-template-columns: 1fr; }
  .rga-doc-actions { grid-template-columns: 1fr; }
}
.loading-card {
  border-color: rgba(33, 228, 154, .55) !important;
  background: linear-gradient(135deg, rgba(12, 62, 54, .86), rgba(8, 25, 48, .94)) !important;
  text-align: center;
  place-items: center;
}
.audit-spinner {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 4px solid rgba(33, 228, 154, .22);
  border-top-color: #21e49a;
  animation: nexora-spin .82s linear infinite;
  box-shadow: 0 0 26px rgba(33, 228, 154, .28);
}
@keyframes nexora-spin { to { transform: rotate(360deg); } }
.control-shell, .it-shell { display: grid; gap: 20px; }
.flow-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.flow-control-card {
  border: 1px solid rgba(57, 92, 140, .8);
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(160deg, rgba(10, 26, 48, .96), rgba(9, 18, 34, .98));
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.flow-control-card h2 { margin: 0; font-size: 18px; }
.flow-control-card p, .flow-control-card small, .control-note { color: #9eb6d7; margin: 0; }
.flow-toggle-button {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  border: 2px solid rgba(33, 228, 154, .8);
  color: white;
  font-weight: 1000;
  background: radial-gradient(circle at 35% 25%, #5dffc2, #16ad76 55%, #06492f);
  box-shadow: 0 0 0 8px rgba(33, 228, 154, .08), 0 18px 38px rgba(0,0,0,.35);
  cursor: pointer;
}
.flow-control-card.disabled .flow-toggle-button {
  border-color: rgba(255, 96, 126, .86);
  background: radial-gradient(circle at 35% 25%, #ff9caf, #a91f45 56%, #4b071c);
  box-shadow: 0 0 0 8px rgba(255, 96, 126, .09), 0 18px 38px rgba(0,0,0,.35);
}
.it-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.it-tabs button {
  border: 1px solid rgba(88, 135, 197, .62);
  background: rgba(11, 30, 55, .8);
  color: #bcd2f1;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 900;
  cursor: pointer;
}
.it-tabs button.active {
  color: white;
  background: linear-gradient(135deg, #246cff, #6d4cff);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(36, 108, 255, .24);
}
.it-tab-panel { display: none; }
.it-tab-panel.active { display: block; }
.license-editor-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
}
.license-editor-card,
.license-modules-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16,33,58,.94), rgba(7,17,33,.92));
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.license-editor-card { padding: 18px; }
.license-editor-card h2 { margin: 8px 0 8px; font-size: 22px; }
.license-editor-card p { color: var(--muted); line-height: 1.5; }
.license-user-picker { display: grid; gap: 8px; margin-top: 16px; }
.license-user-picker span { color: #bdd0ea; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.license-user-picker select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(6, 24, 49, .96), rgba(4, 14, 31, .96));
  color: white;
  padding: 0 38px 0 12px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #7dfce6 50%), linear-gradient(135deg, #7dfce6 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(125, 252, 230, .04);
}
.license-user-picker select:focus { border-color: rgba(33,231,255,.82); outline: none; box-shadow: 0 0 0 3px rgba(33,231,255,.08); }
.license-user-picker select option {
  background: #071121;
  color: #f7fbff;
}
.license-user-snapshot {
  margin-top: 14px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(8,164,255,.25);
  border-radius: 12px;
  background: rgba(8,164,255,.08);
  padding: 13px;
}
.license-user-snapshot strong { color: #f7fbff; }
.license-user-snapshot span { color: #9fb6d3; font-size: 12px; }
.license-editor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.license-accept-button,
.license-reset-button {
  min-height: 46px;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}
.license-accept-button {
  border: 1px solid rgba(48,255,159,.62);
  color: #062013;
  background: linear-gradient(135deg, #30ff9f, #18ba7a);
  box-shadow: 0 0 24px rgba(48,255,159,.20);
}
.license-reset-button {
  border: 1px solid rgba(255,79,109,.70);
  color: #fff;
  background: linear-gradient(135deg, #ff4f6d, #8a1731);
  box-shadow: 0 0 24px rgba(255,79,109,.18);
}
.license-module-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.license-module-group {
  border: 1px solid rgba(39,67,107,.76);
  border-radius: 14px;
  background: rgba(7,17,33,.48);
  padding: 14px;
}
.license-module-group h3 { margin: 0 0 10px; color: #8fe8ff; font-size: 13px; text-transform: uppercase; }
.license-module-option {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(39,67,107,.48);
  padding: 11px 0;
}
.license-module-option:first-of-type { border-top: 0; }
.license-module-option input { width: 18px; height: 18px; accent-color: #30ff9f; }
.license-module-option b { display: block; color: #f6f9ff; font-size: 13px; }
.license-module-option small { display: block; margin-top: 3px; color: #8fa5c4; line-height: 1.35; }
.license-module-option em {
  border: 1px solid rgba(8,164,255,.38);
  border-radius: 999px;
  color: #8fe8ff;
  background: rgba(8,164,255,.08);
  padding: 3px 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}
.license-debtor-access {
  margin: 2px 0 12px 32px;
  border: 1px solid rgba(125,252,230,.28);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(9,31,57,.82), rgba(7,17,33,.92));
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 0 24px rgba(8,164,255,.08);
}
.license-debtor-access[hidden] { display: none; }
.license-debtor-head {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}
.license-debtor-head strong {
  color: #eaf7ff;
  font-size: 12px;
}
.license-debtor-head small {
  color: #8fa5c4;
  font-size: 11px;
  line-height: 1.35;
}
.license-unit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.license-unit-option {
  min-height: 42px;
  border: 1px solid rgba(39,67,107,.72);
  border-radius: 10px;
  background: rgba(4,14,31,.68);
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}
.license-unit-option input {
  width: 16px;
  height: 16px;
  accent-color: #30ff9f;
}
.license-unit-option span {
  color: #f7fbff;
  font-size: 12px;
  font-weight: 900;
  min-width: 0;
}
.license-unit-option small {
  color: #7dfce6;
  font-size: 10px;
  font-weight: 900;
}
@media (max-width: 980px) {
  .license-editor-shell,
  .license-module-grid { grid-template-columns: 1fr; }
  .license-unit-grid { grid-template-columns: 1fr; }
  .license-debtor-access { margin-left: 0; }
}
.wide-card { width: 100%; }
.movement-table code {
  color: #9fffe2;
  font-size: 11px;
  white-space: normal;
}
.communication-compose {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(220px, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(78,118,170,.55);
  border-radius: 14px;
  background: rgba(8,24,45,.58);
}
.communication-compose label { display: grid; gap: 6px; }
.communication-compose label.wide { grid-column: 1 / -1; }
.communication-compose span {
  color: #9fb7d8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.communication-compose input,
.communication-compose select,
.communication-compose textarea {
  border: 1px solid var(--line2);
  border-radius: 9px;
  background: rgba(4,14,28,.72);
  color: white;
  padding: 10px 12px;
}
.communication-compose select { min-height: 112px; }
.movement-filters {
  display: grid;
  grid-template-columns: 110px 140px 100px minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
  min-width: min(760px, 100%);
}
.movement-filters select,
.movement-filters input {
  min-height: 42px;
  border: 1px solid var(--line2);
  border-radius: 9px;
  background: rgba(4,14,28,.72);
  color: white;
  padding: 0 12px;
  outline: none;
}
.movement-filters input { width: 100%; }
.communication-list { display: grid; gap: 14px; }
.communication-card {
  border: 1px solid rgba(78, 118, 170, .72);
  border-radius: 16px;
  padding: 16px;
  background: rgba(8, 24, 45, .82);
  display: grid;
  gap: 10px;
}
.communication-card div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.communication-card span, .communication-card small { color: #9fb6d3; }
.communication-card p { margin: 0; color: #e6f1ff; }
.communication-card .tool-danger-button { justify-self: end; }
.communication-detail-modal {
  gap: 12px;
}
.communication-detail-modal .confirm-actions {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .movement-filters { grid-template-columns: repeat(3, minmax(80px, 1fr)); min-width: 0; }
  .movement-filters input { grid-column: 1 / -1; }
}

/* Nexus Hub v40: home dashboard, smart sales search and sales graphics */

/* Revenue Management first scheme */
.rm-shell { display: grid; gap: 18px; min-width: 0; }
.rm-hero { align-items: stretch; }
.rm-updated { min-width: 210px; padding: 14px 16px; border: 1px solid rgba(89,159,255,.24); border-radius: 14px; background: rgba(12,31,57,.68); display: grid; align-content: center; gap: 5px; }
.rm-updated span, .rm-updated strong { color: #bdd0ea; font-size: 12px; }
.rm-updated strong { color: #fff; font-size: 14px; }
.rm-tabs { display: flex; gap: 8px; border-bottom: 1px solid rgba(122,158,201,.24); }
.rm-tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; color: #8fa8c9; padding: 12px 16px; cursor: pointer; font-weight: 800; }
.rm-tabs button.active { color: #fff; border-bottom-color: #30e6b0; }
.rm-tab-panel { display: none; gap: 16px; }
.rm-tab-panel.active { display: grid; }
.rm-panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.rm-panel-head h2 { margin: 0 0 5px; }
.rm-panel-head p { margin: 0; color: #9fb7d5; }
.rm-source-badge { border: 1px solid rgba(48,230,176,.35); border-radius: 999px; padding: 7px 11px; color: #7df0c9; font-size: 12px; white-space: nowrap; }
.rm-filters { display: flex; gap: 12px; flex-wrap: wrap; }
.rm-filters label { display: grid; gap: 6px; color: #9fb7d5; font-size: 12px; font-weight: 800; }
.rm-filters select { min-width: 190px; padding: 10px 12px; border: 1px solid rgba(89,159,255,.34); border-radius: 8px; background: #0d2340; color: #fff; }
.rm-alert-strip, .rm-market-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: rgba(44,76,119,.26); color: #b9cae1; }
.rm-alert-strip strong { color: #ffcf71; }
.rm-calendar-grid, .rm-market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.rm-calendar-card { border: 1px solid rgba(89,159,255,.25); border-radius: 14px; padding: 15px; background: linear-gradient(145deg, rgba(14,38,69,.95), rgba(8,22,42,.95)); }
.rm-calendar-card header { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.rm-calendar-card header span { color: #8eb3dd; font-size: 12px; }
.rm-calendar-card h3 { margin: 4px 0 0; font-size: 16px; color: #fff; }
.rm-zone-chip { border-radius: 999px; padding: 5px 8px; font-size: 10px; letter-spacing: .04em; }
.rm-zone-chip.stable { color: #77efba; background: rgba(36,190,119,.14); }
.rm-zone-chip.low, .rm-zone-chip.overdue { color: #ffb0a7; background: rgba(238,93,82,.16); }
.rm-calendar-meta { display: flex; gap: 20px; margin: 16px 0 10px; color: #8fa8c9; font-size: 12px; }
.rm-calendar-meta strong { color: #fff; margin-left: 4px; }
.rm-months { display: grid; grid-template-columns: repeat(14, minmax(18px, 1fr)); gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.rm-day { min-width: 18px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 4px; color: #09203b; font-size: 9px; font-weight: 900; }
.rm-day.low { background: #ef9a9a; }.rm-day.near { background: #ffe69c; }.rm-day.stable { background: #b8e0c2; }
.rm-calendar-card footer { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 12px; color: #9fb7d5; font-size: 10px; }
.rm-market-card { border: 1px solid rgba(89,159,255,.25); border-radius: 14px; padding: 15px; background: linear-gradient(145deg, rgba(14,38,69,.95), rgba(8,22,42,.95)); }
.rm-market-card header { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.rm-market-card header span { color: #8eb3dd; font-size: 12px; }.rm-market-card h3 { margin: 4px 0 0; color: #fff; font-size: 17px; }
.rm-market-card p { color: #bdd0ea; line-height: 1.45; }.rm-match-line { margin: 14px 0; padding: 10px; border-radius: 9px; background: rgba(77,127,190,.16); color: #e9f3ff; font-size: 12px; }.rm-match-line span { color: #30e6b0; padding: 0 8px; }
.rm-market-controls { display:flex; align-items:end; gap:14px; flex-wrap:wrap; margin:16px 0; }.rm-market-controls label { display:grid; gap:6px; color:#9fb7d5; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }.rm-market-controls select { min-width:220px; padding:10px 12px; border-radius:8px; border:1px solid rgba(89,159,255,.35); background:#081d36; color:#fff; }.rm-distance { margin:7px 0 0; color:#8eb3dd !important; font-size:12px; }.rm-competitor-description { min-height:38px; margin:14px 0 !important; }.rm-comparison-table-wrap { overflow-x:auto; border:1px solid rgba(126,161,203,.18); border-radius:10px; }.rm-comparison-table { width:100%; min-width:820px; border-collapse:collapse; font-size:11px; }.rm-comparison-table th { padding:10px 9px; text-align:left; color:#8eb3dd; background:#0b2748; font-weight:800; white-space:nowrap; }.rm-comparison-table td { padding:11px 9px; color:#dceaff; border-top:1px solid rgba(126,161,203,.12); vertical-align:top; }.rm-comparison-table td strong { color:#fff; }.rm-comparison-table td:nth-child(3), .rm-comparison-table td:nth-child(4), .rm-comparison-table td:nth-child(5), .rm-comparison-table td:nth-child(6) { white-space:nowrap; }
.rm-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.rm-price-grid div { display: grid; gap: 4px; padding: 9px; border: 1px solid rgba(126,161,203,.18); border-radius: 8px; }.rm-price-grid span { color: #8fa8c9; font-size: 10px; }.rm-price-grid strong { color: #fff; font-size: 12px; }.rm-source-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }.rm-source-links a { color: #7dd7ff; font-size: 11px; }
.rm-legend-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-left: 4px; }.rm-legend-dot.low { background: #ef9a9a; }.rm-legend-dot.near { background: #ffe69c; }.rm-legend-dot.stable { background: #b8e0c2; }
.rm-empty-state { display: grid; gap: 7px; padding: 28px; border: 1px dashed rgba(126,161,203,.36); border-radius: 14px; color: #9fb7d5; text-align: center; }
.rm-empty-state strong { color: #fff; }
.rm-market-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:18px; }.rm-market-heading h2 { margin:5px 0 3px; font-size:21px; }.rm-market-heading p { margin:0; color:#9fb7d5; }.rm-market-complex-tabs { display:flex; gap:8px; margin:12px 0 18px; }.rm-market-complex-tabs button { min-width:215px; padding:12px 18px; border:1px solid rgba(89,159,255,.12); border-radius:8px; text-align:left; color:#9fb7d5; background:rgba(18,48,83,.55); font-weight:800; cursor:pointer; }.rm-market-complex-tabs button.active { color:#fff; border-color:#1597ff; box-shadow:0 0 0 1px rgba(21,151,255,.18) inset; background:rgba(14,65,112,.8); }.rm-market-complex-tabs button span { display:block; margin-top:4px; color:#8eb3dd; font-size:11px; font-weight:500; }.rm-market-complex-select { display:none; }.rm-market-card-v3 { display:grid; grid-column:1 / -1; grid-template-columns:270px minmax(0,1fr); gap:0; padding:0; overflow:hidden; min-height:150px; }.rm-competitor-identity { display:flex; gap:14px; align-items:flex-start; padding:18px; background:rgba(8,28,52,.8); border-right:1px solid rgba(89,159,255,.15); }.rm-competitor-image { width:66px; height:66px; flex:0 0 66px; display:grid; place-items:center; border-radius:7px; color:#fff; font-size:30px; font-weight:900; background:linear-gradient(135deg,#4e9eff,#1c4c87 55%,#163253); }.rm-competitor-name h3 { margin:1px 0 8px; font-size:15px; }.rm-competitor-name p { margin:5px 0; font-size:11px; color:#9fb7d5; }.rm-competitor-name .rm-stars { color:#ffbd21; letter-spacing:1px; }.rm-stars span { color:#9fb7d5; letter-spacing:0; }.rm-competitor-table { min-width:0; padding:10px 0 12px; }.rm-competitor-table .rm-comparison-table { min-width:650px; }.rm-competitor-table .rm-comparison-table th, .rm-competitor-table .rm-comparison-table td { padding:8px 12px; }.rm-competitor-table .rm-comparison-table th:nth-child(3), .rm-competitor-table .rm-comparison-table th:nth-child(4), .rm-competitor-table .rm-comparison-table td:nth-child(3), .rm-competitor-table .rm-comparison-table td:nth-child(4) { text-align:right; }.rm-comparison-table small { display:block; margin-top:4px; color:#8eb3dd; font-size:9px; font-weight:500; }.rm-competitor-reason { margin:10px 12px 0 !important; padding:8px 10px; border-left:2px solid #1597ff; color:#9fb7d5 !important; font-size:11px; line-height:1.35 !important; }.rm-card-v3 .rm-source-links { padding:0 12px; }
@media (max-width: 700px) { .rm-panel-head, .rm-hero { align-items: flex-start; flex-direction: column; }.rm-updated { width: 100%; box-sizing: border-box; }.rm-months { grid-template-columns: repeat(14, 22px); } }
.home-dashboard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.home-dashboard-main {
  grid-area: 1 / 1;
  display: grid;
  gap: 18px;
  transition: opacity .46s ease, transform .46s ease, filter .46s ease;
}
.home-hero {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: start;
  padding: 8px 14px 0;
}
.home-hero h1 { margin: 8px 0; font-size: 30px; letter-spacing: 0; }
.home-hero p, .home-hero span { color: #9fb7d5; }
.language-switcher {
  display: flex;
  background: #07172b;
  border: 1px solid #163a63;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
}
.language-switcher button {
  border: 0;
  color: #dceaff;
  background: transparent;
  border-radius: 6px;
  padding: 9px 12px;
  font-weight: 800;
  cursor: pointer;
}
.language-switcher button.active { background: #132d52; color: #fff; box-shadow: inset 0 0 0 1px rgba(95,154,255,.45); }
.home-date-pill, .graphic-date-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  min-width: 180px;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid #15385f;
  background: #07172b;
}
.home-date-pill svg, .graphic-date-pill svg { width: 20px; height: 20px; color: #8b5cf6; grid-row: span 2; }
.home-date-pill span, .graphic-date-pill span { font-size: 12px; color: #9fb7d5; }
.home-date-pill strong, .graphic-date-pill strong { color: #fff; }
.home-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 0;
  border: 1px solid #17385d;
  background: linear-gradient(135deg, rgba(8,24,44,.94), rgba(5,18,34,.98));
  border-radius: 8px;
  overflow: hidden;
}
.home-metrics article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 14px;
  padding: 18px 20px;
  border-right: 1px solid #17385d;
}
.home-metrics article:last-child { border-right: 0; }
.home-metrics i, .graphic-title i, .graphic-summary i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #8b5cf6;
  background: rgba(139,92,246,.14);
  border: 1px solid rgba(139,92,246,.45);
  grid-row: span 3;
}
.home-metrics svg, .graphic-title svg, .graphic-summary svg { width: 22px; height: 22px; }
.home-metrics span { color: #cfe0f4; font-size: 12px; }
.home-metrics strong { color: #fff; font-size: 26px; }
.home-metrics small { color: #9fb7d5; }
.home-occupancy {
  border: 1px solid #17385d;
  border-radius: 8px;
  padding: 18px;
  background: #07172b;
}
.home-section-title, .graphic-section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.home-section-title h2, .graphic-section-title h3 { margin: 0 0 4px; }
.home-section-title p, .graphic-section-title p { margin: 0; color: #9fb7d5; }
.home-section-title > div { min-width: 0; }
.home-refresh-button {
  margin-left: auto;
  border: 1px solid rgba(72, 145, 255, .72);
  border-radius: 8px;
  background: linear-gradient(135deg, #1f6fce, #1857a8);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 10px 18px;
  min-width: 112px;
  box-shadow: 0 10px 26px rgba(31, 124, 255, .18);
}
.home-refresh-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(31, 124, 255, .26);
}
.home-refresh-button:disabled {
  cursor: wait;
  opacity: .72;
}
.home-refresh-button.is-busy {
  min-width: 210px;
}
.occupancy-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 14px; }
.occupancy-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px 18px;
  align-items: center;
  border: 1px solid #17385d;
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(140deg, #0a1b31, #071426);
}
.occupancy-card-head { grid-column: 1 / -1; color: #fff; }
.occupancy-dial {
  --accent: #1f7cff;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), #162942 0);
  position: relative;
}
.occupancy-dial::before { content: ""; position: absolute; inset: 16px; background: #07172b; border-radius: 50%; }
.occupancy-dial span, .occupancy-dial small { position: relative; z-index: 1; display: block; text-align: center; }
.occupancy-dial span { color: #fff; font-size: 26px; font-weight: 900; }
.occupancy-dial small { color: #d6e6fb; margin-top: 34px; }
.tone-1 .occupancy-dial { --accent:#1f7cff; }
.tone-2 .occupancy-dial { --accent:#64d85f; }
.tone-3 .occupancy-dial { --accent:#ff8a00; }
.tone-4 .occupancy-dial { --accent:#09d5cf; }
.tone-5 .occupancy-dial { --accent:#f21868; }
.tone-6 .occupancy-dial { --accent:#f2c300; }
.occupancy-detail { display: grid; gap: 14px; }
.occupancy-detail span { display: flex; justify-content: space-between; gap: 12px; color: #9fb7d5; border-bottom: 1px solid #1a385a; padding-bottom: 10px; }
.occupancy-detail strong { color: #fff; }
.complex-selector-card select,
.complex-selector-card input[type="search"] {
  width: 100%;
  min-height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-weight: 900;
}
.complex-selector-card select option { background: #081a30; color: #fff; padding: 12px; }
.sales-smart-search { min-width: 280px; }
.sales-chart-button {
  background: linear-gradient(135deg, #0e2140, #132f61);
  border-color: rgba(0,224,255,.35);
  box-shadow: 0 0 0 1px rgba(0,224,255,.08), 0 12px 34px rgba(0,0,0,.28);
}
.sales-chart-button:hover { transform: translateY(-1px); box-shadow: 0 0 22px rgba(0,224,255,.18); }
.sales-graphics-modal {
  width: min(1380px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  background: #020b17;
  border-radius: 8px;
}
.sales-graphic-report { display: grid; gap: 16px; color: #eaf3ff; }
.graphic-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.graphic-title { display: flex; align-items: center; gap: 16px; }
.graphic-title h2 { margin: 0 0 4px; font-size: 34px; }
.graphic-title p { margin: 0; color: #c4d3e7; }
.graphic-actions { display: flex; gap: 18px; align-items: center; }
.graphic-export {
  min-width: 180px;
  justify-content: center;
  background: linear-gradient(135deg, #5126a8, #133fbe);
}
.graphic-loading { display: flex; gap: 12px; align-items: center; color: #d8e8ff; }
.graphic-cards { display: grid; grid-template-columns: 1.45fr repeat(6, minmax(138px, 1fr)); gap: 12px; }
.graphic-card {
  min-height: 156px;
  border: 1px solid #123458;
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(145deg, #07192f, #061222);
}
.graphic-card span, .graphic-card small { color: #c9d6e8; }
.graphic-card strong { display: block; color: #fff; font-size: 25px; margin: 10px 0; }
.chain-card { border-color: rgba(139,92,246,.7); box-shadow: inset 0 0 30px rgba(139,92,246,.12); }
.metric-symbol, .hotel-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--accent, #8b5cf6);
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 18%, transparent);
  font-style: normal;
  font-weight: 900;
}
.chain-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; border-top: 1px solid #1e3f67; padding-top: 12px; }
.chain-mini b { color: #fff; font-size: 18px; }
.chain-mini span { font-size: 11px; }
.hotel-card svg { width: 100%; height: 32px; margin-top: 8px; fill: none; stroke: var(--accent); stroke-width: 3; filter: drop-shadow(0 0 7px var(--accent)); }
.hotel-card small b { color: var(--accent); }
.graphic-bars-panel, .graphic-summary {
  border: 1px solid #123458;
  border-radius: 8px;
  background: #07172b;
  padding: 18px;
}
.graphic-section-title > svg { width: 28px; color: #8b5cf6; }
.graphic-section-title > span { margin-left: auto; color: #b999ff; background: rgba(139,92,246,.14); padding: 8px 12px; border-radius: 8px; }
.graphic-bars { min-height: 280px; display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 34px; border-left: 1px solid #28415f; border-bottom: 1px solid #28415f; padding: 24px 28px 0; }
.graphic-bar-item { height: 260px; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 10px; color: #fff; }
.graphic-bar-item i { align-self: end; width: 72px; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--accent), rgba(0,0,0,.45)); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.graphic-bar-item span { text-align: center; color: #e8f0fb; }
.graphic-summary { display: flex; align-items: center; gap: 16px; }
.graphic-summary h3 { margin: 0 0 6px; }
.graphic-summary p { margin: 0; color: #d7e4f5; line-height: 1.6; }
.graphic-summary b { color: #00e5c8; }
.communication-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.communication-open {
  display: grid;
  gap: 5px;
  text-align: left;
  color: #eaf3ff;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.communication-open span, .communication-open small { color: #9fb6d3; }
.login-mini-modal select {
  width: 100%;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: #0b1728;
  font-weight: 800;
}
@media (max-width: 1100px) {
  .home-hero, .home-metrics, .occupancy-grid, .graphic-cards { grid-template-columns: 1fr; }
  .graphic-hero, .graphic-actions { flex-direction: column; align-items: stretch; }
  .graphic-bars { grid-template-columns: repeat(2, 1fr); gap: 20px; overflow-x: auto; }
}
.blocked-modal-card label { display: grid; gap: 6px; }

/* Nexus Hub v42: home visual hotfix for Hostinger */
.view[data-view-panel="home"].active {
  display: block;
  height: 100%;
  overflow: auto;
}

.view[data-view-panel="home"] .home-dashboard {
  width: min(100%, 1380px);
  margin: 0 auto;
  align-content: start;
  gap: 16px;
  padding-bottom: 22px;
}

.view[data-view-panel="home"] svg,
.sales-graphic-report svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.home-hero {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  padding: 0;
}

.home-hero h1 {
  font-size: clamp(24px, 2.05vw, 34px);
  line-height: 1.1;
  margin: 7px 0 6px;
}

.home-hero p {
  margin: 0;
  font-size: 13px;
}

.language-switcher {
  align-self: center;
  min-height: 40px;
  border-radius: 8px;
}

.language-switcher button {
  min-width: 96px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}

.home-date-pill {
  align-self: center;
  min-width: 178px;
  min-height: 44px;
  padding: 9px 14px;
}

.home-date-pill svg,
.home-section-title > svg {
  color: #8b5cf6;
}

.home-section-title > svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border: 1px solid rgba(139,92,246,.45);
  border-radius: 8px;
  background: rgba(139,92,246,.14);
}

.home-metrics {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  min-height: 0;
}

.home-metrics article {
  min-height: 92px;
  align-items: center;
  padding: 14px 16px;
}

.home-metrics i {
  width: 38px;
  height: 38px;
}

.home-metrics svg {
  width: 20px;
  height: 20px;
}

.home-metrics strong {
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1;
}

.home-occupancy {
  min-height: 0;
  padding: 16px;
}

.occupancy-grid {
  grid-template-columns: repeat(3, minmax(270px, 1fr));
  align-items: stretch;
}

.occupancy-card {
  grid-template-columns: 124px minmax(0, 1fr);
  min-height: 196px;
  padding: 16px;
}

.occupancy-dial {
  width: 116px;
}

.occupancy-dial::before {
  inset: 14px;
}

.occupancy-dial span {
  font-size: 23px;
}

.occupancy-dial small {
  position: absolute;
  left: 0;
  right: 0;
  top: 66px;
  margin-top: 0;
  font-size: 12px;
}

.occupancy-detail {
  min-width: 0;
}

.occupancy-detail span {
  align-items: center;
  min-height: 33px;
  font-size: 12px;
}

.occupancy-detail strong {
  font-size: 14px;
}

@media (max-width: 1280px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .language-switcher,
  .home-date-pill {
    width: fit-content;
  }

  .home-metrics {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    border-radius: 8px;
  }

  .home-metrics article {
    border-right: 0;
    border-bottom: 1px solid #17385d;
  }

  .home-metrics article:last-child {
    border-bottom: 0;
  }

  .occupancy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .view[data-view-panel="home"] .home-dashboard {
    gap: 12px;
  }

  .language-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .language-switcher button,
  .home-date-pill {
    width: 100%;
  }

  .home-metrics,
  .occupancy-card {
    grid-template-columns: 1fr;
  }
}

/* Nexus Hub v92: home dashboard date range and YoY comparison */
.home-hero {
  grid-template-columns: minmax(360px, 1fr) minmax(520px, auto);
  align-items: start;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: flex-start;
  max-width: 620px;
}

.home-range-selector {
  flex: 1 1 520px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(34, 87, 143, .8);
  border-radius: 10px;
  background: rgba(7, 23, 43, .82);
}

.home-range-selector label {
  display: grid;
  gap: 4px;
  color: #9fb7d5;
  font-size: 11px;
  font-weight: 800;
}

.home-range-selector input {
  min-height: 34px;
  border: 1px solid #1b4674;
  border-radius: 8px;
  background: #07172b;
  color: #fff;
  padding: 0 10px;
  color-scheme: dark;
}

.home-range-selector button {
  min-height: 34px;
  border: 1px solid rgba(95, 154, 255, .55);
  border-radius: 8px;
  background: linear-gradient(135deg, #123b77, #1c5fba);
  color: #fff;
  font-weight: 900;
  padding: 0 14px;
  cursor: pointer;
}

.home-range-selector small {
  flex-basis: 100%;
  min-height: 14px;
  color: #9fb7d5;
  text-align: right;
}

.home-range-selector small[data-type="ok"] { color: #22d66f; }
.home-range-selector small[data-type="error"] { color: #ff4d68; }
.home-range-selector small[data-type="loading"] { color: #8cc7ff; }

.home-loading-card {
  display: none;
  align-items: center;
  gap: 14px;
  min-height: 118px;
  padding: 22px 24px;
  border: 1px solid #17385d;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(8, 24, 44, .94), rgba(5, 18, 34, .98));
  color: #dbeafe;
}

.home-loading-card strong {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-bottom: 4px;
}

.home-loading-card small {
  color: #9fb7d5;
}

.home-loading-spinner,
.home-loading-warning {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.home-loading-spinner {
  border: 3px solid rgba(139, 92, 246, .22);
  border-top-color: #8b5cf6;
  animation: homeSpin .85s linear infinite;
}

.home-loading-warning {
  border: 1px solid rgba(255, 77, 104, .55);
  background: rgba(255, 77, 104, .14);
  color: #ff8091;
  font-weight: 900;
}

@keyframes homeSpin {
  to { transform: rotate(360deg); }
}

.home-dashboard.is-loading .home-loading-card {
  display: flex;
}

.home-dashboard.is-loading .home-metrics,
.home-dashboard.is-loading .home-occupancy {
  display: none;
}

.home-metrics article { position: relative; }

.home-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #9fb7d5;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.home-metrics .home-delta {
  grid-column: 2;
  align-self: end;
}

.home-delta.up { color: #22d66f; }
.home-delta.down { color: #ff304d; }
.home-delta.neutral { color: #9fb7d5; }
.home-delta b {
  font-size: 12px;
  line-height: 1;
  transform: translateY(-1px);
}

.home-comparison-card {
  align-items: start;
  overflow: hidden;
}

.home-comparison-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.home-comparison-head > span {
  display: grid;
  grid-template-columns: 56px 56px 64px;
  gap: 6px;
  color: #cfe0f4;
  font-size: 12px;
  text-align: right;
}

.home-comparison-body {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.home-comparison-card .occupancy-dial {
  width: 104px;
}

.home-comparison-card .occupancy-dial::before {
  inset: 13px;
}

.home-comparison-card .occupancy-dial span {
  font-size: 22px;
}

.home-comparison-card .occupancy-dial small {
  top: 60px;
  font-size: 11px;
}

.home-dial-block {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.home-dial-block > small {
  color: #9fb7d5;
}

.home-occupancy-delta .home-delta {
  font-size: 16px;
}

.home-comparison-detail {
  gap: 0;
}

.occupancy-detail .home-comparison-row {
  display: grid;
  grid-template-columns: minmax(78px, 1fr) minmax(54px, max-content) minmax(58px, max-content) minmax(64px, max-content);
  gap: 6px;
  align-items: center;
  min-height: 42px;
  width: 100%;
  overflow: hidden;
}

.home-comparison-row b {
  color: #9fc8f4;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-comparison-row em {
  color: #dbeafe;
  font-style: normal;
  text-align: right;
  white-space: nowrap;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.home-comparison-row strong {
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.home-comparison-row .home-delta {
  justify-content: flex-end;
  font-size: 11px;
  min-width: 0;
}

@media (max-width: 1280px) {
  .home-hero-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .home-range-selector {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .home-hero-actions,
  .home-comparison-body {
    grid-template-columns: 1fr;
  }

  .home-range-selector {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .home-comparison-head,
  .occupancy-detail .home-comparison-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .home-section-title {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .home-refresh-button,
  .home-refresh-button.is-busy {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .home-comparison-head > span {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    text-align: left;
  }

  .home-comparison-row em,
  .home-comparison-row strong,
  .home-comparison-row .home-delta {
    text-align: left;
    justify-content: flex-start;
  }
}

/* Nexus Hub v132: living home cards and monthly hotel drilldown */
.home-comparison-card {
  position: relative;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  appearance: none;
  border-color: rgba(42, 117, 188, .72);
  cursor: pointer;
  isolation: isolate;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.home-comparison-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 18%, rgba(125, 213, 255, .14) 42%, transparent 66%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: -1;
}

.home-comparison-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  border: 1px solid rgba(103, 232, 249, .08);
  pointer-events: none;
}

.home-comparison-card:hover,
.home-comparison-card:focus-visible,
.home-comparison-card.is-selected {
  transform: translateY(-3px);
  border-color: rgba(103, 232, 249, .72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32), 0 0 28px rgba(35, 211, 238, .16);
  background: linear-gradient(140deg, #0b223c, #071426);
  outline: 0;
}

.home-comparison-card:hover::before,
.home-comparison-card:focus-visible::before,
.home-comparison-card.is-selected::before {
  opacity: 1;
  animation: homeCardScan 1.4s ease both;
}

.home-comparison-card:hover .occupancy-dial,
.home-comparison-card:focus-visible .occupancy-dial,
.home-comparison-card.is-selected .occupancy-dial {
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 55%, transparent));
}

.home-card-action {
  grid-column: 1 / -1;
  justify-self: end;
  color: #72f7ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-card-action::after {
  content: " ->";
}

@keyframes homeCardScan {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

.home-complex-drilldown[hidden] { display: none !important; }
.home-complex-drilldown {
  grid-area: 1 / 1;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(.985);
  transition: opacity .52s ease, transform .52s ease, visibility .52s ease;
}

.home-dashboard.is-detail-open .home-dashboard-main {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px) scale(.985);
  filter: blur(5px);
}

.home-dashboard.is-detail-open .home-complex-drilldown:not([hidden]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.home-dashboard.is-detail-closing .home-dashboard-main {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.home-complex-drilldown-card {
  display: grid;
  gap: 16px;
  min-height: calc(100vh - 140px);
  align-content: start;
  border: 1px solid rgba(49, 130, 206, .78);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(6, 20, 38, .98), rgba(8, 32, 56, .96));
  box-shadow: inset 0 0 38px rgba(45, 212, 191, .06), 0 22px 50px rgba(0, 0, 0, .26);
}

.home-complex-drilldown-card.is-loading,
.home-complex-drilldown-card.has-error {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 118px;
  color: #dbeafe;
}

.home-complex-drilldown-card.has-error {
  grid-template-columns: 1fr auto;
  border-color: rgba(255, 77, 104, .55);
}

.home-complex-drilldown-card.has-error strong {
  color: #fff;
}

.home-drilldown-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.home-drilldown-header span {
  color: #72f7ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-drilldown-header h2 {
  margin: 4px 0 6px;
  color: #fff;
  font-size: 26px;
  letter-spacing: 0;
}

.home-drilldown-header p {
  margin: 0;
  color: #a8bfd9;
  line-height: 1.45;
}

[data-home-detail-close] {
  min-width: 92px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(125, 213, 255, .45);
  background: rgba(7, 23, 43, .92);
  color: #eaf6ff;
  cursor: pointer;
  font-weight: 900;
}

.home-monthly-chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.home-detail-tabs {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-height: 48px;
  padding: 5px;
  border: 1px solid rgba(49, 130, 206, .72);
  border-radius: 10px;
  background: rgba(4, 15, 30, .72);
  box-shadow: inset 0 0 24px rgba(45, 212, 191, .05);
}

.home-detail-tabs button {
  min-width: 150px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #a8bfd9;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .2px;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.home-detail-tabs button:hover,
.home-detail-tabs button:focus-visible {
  color: #fff;
  border-color: rgba(49, 213, 255, .58);
  outline: none;
}

.home-detail-tabs button.is-active {
  color: #fff;
  border-color: rgba(49, 213, 255, .8);
  background: linear-gradient(135deg, rgba(29, 93, 150, .72), rgba(10, 58, 91, .84));
  box-shadow: 0 0 20px rgba(49, 213, 255, .14), inset 0 -2px 0 #31d5ff;
}

.home-detail-tabs button[data-home-detail-tab="future"] {
  min-width: 54px;
  width: 54px;
  padding: 0;
}

.home-detail-pane[hidden] { display: none !important; }
.home-detail-pane { min-width: 0; }

.home-revenue-map-card {
  min-height: 330px;
  padding: 18px;
  border: 1px solid rgba(49, 130, 206, .86);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(5, 18, 34, .92), rgba(8, 32, 56, .82));
}

.home-revenue-map-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(49, 130, 206, .42);
}

.home-revenue-map-heading span {
  color: #72f7ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-revenue-map-heading h3 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 21px;
}

.home-revenue-map-heading small {
  color: #a8bfd9;
  font-weight: 800;
}

.home-revenue-map-notice {
  max-width: 760px;
  margin: 42px auto 0;
  padding: 24px;
  border: 1px dashed rgba(114, 247, 255, .55);
  border-radius: 12px;
  background: rgba(8, 32, 56, .72);
  text-align: center;
}

.home-revenue-map-notice strong { color: #72f7ff; font-size: 17px; }
.home-revenue-map-notice p { margin: 10px 0 0; color: #b9cce2; line-height: 1.55; }

.home-revenue-map-caption {
  margin: 14px 0 0;
  color: #a8bfd9;
  font-size: 12px;
}

.home-revenue-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 9px 11px;
  border: 1px solid rgba(71, 161, 211, .35);
  border-radius: 8px;
  background: rgba(3, 12, 25, .8);
}

.home-revenue-map-toolbar small { color: #8fa9c6; }
.home-revenue-map-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.home-revenue-map-legend span { display: inline-flex; align-items: center; gap: 5px; color: #d5e5f6; font-size: 10px; font-weight: 800; }
.home-revenue-map-legend i { width: 10px; height: 10px; border-radius: 2px; background: #91d6ad; }
.home-revenue-map-legend .category-t2-sunny i, .home-revenue-map-legend .category-t2 i { background: #2ea8ff; }
.home-revenue-map-legend .category-t0 i { background: #9da8b5; }

.home-revenue-map-stage {
  position: relative;
  min-height: 720px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(42, 126, 181, .62);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at center, rgba(18, 91, 126, .28), transparent 46%),
    linear-gradient(145deg, #061728, #07111f 62%, #04101c);
  box-shadow: inset 0 0 70px rgba(0, 195, 255, .09), 0 20px 45px rgba(0, 0, 0, .26);
}

.home-revenue-map-stage::before,
.home-revenue-map-stage::after {
  content: "";
  position: absolute;
  inset: 72px 9%;
  border: 1px solid rgba(69, 177, 218, .2);
  border-radius: 24px;
  transform: skewY(-3deg);
  pointer-events: none;
}

.home-revenue-map-stage::after { inset: 112px 15%; border-color: rgba(69, 177, 218, .1); transform: skewY(3deg); }

.home-revenue-map-side { position: absolute; z-index: 3; display: flex; gap: 6px; }
.side-top { top: 18px; left: 13%; right: 13%; justify-content: center; }
.side-bottom { bottom: 18px; left: 13%; right: 13%; justify-content: center; }
.side-left, .side-right { top: 132px; bottom: 132px; width: 86px; flex-direction: column; justify-content: center; }
.side-left { left: 15px; }
.side-right { right: 15px; }

.home-revenue-map-room {
  display: grid;
  min-width: 70px;
  min-height: 55px;
  padding: 5px 7px;
  border: 1px solid rgba(107, 230, 197, .72);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(22, 117, 119, .94), rgba(9, 60, 79, .94));
  box-shadow: 0 0 14px rgba(61, 218, 207, .18), inset 0 0 12px rgba(102, 255, 220, .08);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.home-revenue-map-room strong { color: #f2ffff; font-size: 10px; line-height: 1.1; }
.home-revenue-map-room b { color: #fff; font-size: 11px; line-height: 1.2; }
.home-revenue-map-room small { color: #c1e6e4; font-size: 9px; line-height: 1.1; }
.home-revenue-map-room.category-t1, .home-revenue-map-room.category-sunny { border-color: rgba(117, 224, 165, .76); background: linear-gradient(145deg, rgba(47, 139, 105, .96), rgba(13, 76, 77, .95)); }
.home-revenue-map-room.category-t2, .home-revenue-map-room.category-t2-sunny { border-color: rgba(57, 176, 255, .82); background: linear-gradient(145deg, rgba(23, 117, 181, .96), rgba(11, 59, 118, .95)); }
.home-revenue-map-room.category-t0 { border-color: rgba(172, 187, 204, .7); background: linear-gradient(145deg, rgba(77, 94, 112, .94), rgba(37, 49, 66, .96)); }

.home-revenue-map-courtyard {
  position: absolute;
  z-index: 2;
  top: 24%;
  right: 18%;
  bottom: 22%;
  left: 18%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(67, 197, 237, .35);
  background: linear-gradient(135deg, rgba(15, 56, 74, .42), rgba(4, 25, 42, .6));
  box-shadow: inset 0 0 35px rgba(29, 195, 255, .08);
}

.home-map-reception, .home-map-bar {
  position: absolute;
  padding: 8px 24px;
  border: 1px solid rgba(100, 192, 227, .52);
  border-radius: 3px;
  background: rgba(8, 24, 39, .9);
  color: #d9f4ff;
  font-size: 11px;
  font-weight: 900;
}

.home-map-reception { top: 12%; }
.home-map-bar { bottom: 10%; padding: 7px 16px; font-size: 10px; }
.home-map-pool {
  position: relative;
  display: grid;
  width: 52%;
  height: 42%;
  place-items: center;
  border: 2px solid #34d4ff;
  border-radius: 48% 52% 44% 56%;
  background: radial-gradient(ellipse at center, rgba(24, 139, 177, .56), rgba(4, 45, 73, .9));
  box-shadow: 0 0 18px rgba(40, 210, 255, .65), inset 0 0 25px rgba(45, 212, 255, .38);
  color: #aeeeff;
  font-size: 12px;
  font-weight: 900;
}

.home-map-pool::after { content: "〰 〰"; position: absolute; bottom: 25%; color: rgba(124, 238, 255, .7); letter-spacing: 9px; }

@media (max-width: 900px) {
  .home-revenue-map-stage { min-width: 760px; }
  .home-revenue-map-card { overflow-x: auto; }
}

.home-revenue-category-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.home-revenue-category-group {
  overflow: hidden;
  border: 1px solid rgba(94, 147, 198, .55);
  border-radius: 10px;
  background: rgba(4, 15, 30, .72);
}

.home-revenue-category-group > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(94, 147, 198, .35);
}

.home-revenue-category-label {
  min-width: 126px;
  padding: 5px 9px;
  border-radius: 6px;
  color: #06111f;
  font-weight: 900;
}

.home-revenue-category-group header strong { margin-left: auto; color: #fff; font-size: 14px; }
.home-revenue-category-group header small { color: #c8d8eb; font-size: 11px; }
.category-sunny .home-revenue-category-label, .category-t1 .home-revenue-category-label { background: #91d6ad; }
.category-t2-sunny .home-revenue-category-label, .category-t2 .home-revenue-category-label { background: #8cb8f4; }
.category-t0 .home-revenue-category-label { background: #b7c0ca; }
.category-sunny { border-color: rgba(113, 222, 156, .65); }
.category-t1 { border-color: rgba(113, 222, 156, .42); }
.category-t2-sunny { border-color: rgba(105, 170, 255, .7); }
.category-t2 { border-color: rgba(105, 170, 255, .45); }

.home-revenue-staircase {
  display: grid;
  grid-template-columns: repeat(var(--stair-columns), minmax(68px, 1fr));
  grid-template-rows: repeat(var(--stair-rows), minmax(52px, auto));
  gap: 8px;
  align-items: center;
  min-height: calc(var(--stair-rows) * 60px);
  padding: 12px;
  overflow-x: auto;
}

.home-revenue-room {
  display: grid;
  grid-column: var(--stair-column);
  grid-row: var(--stair-row);
  min-width: 68px;
  min-height: 52px;
  padding: 5px 6px;
  border: 1px solid rgba(165, 199, 231, .35);
  border-radius: 5px;
  background: rgba(21, 51, 79, .72);
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .18);
}

.home-revenue-room b { color: #fff; font-size: 11px; }
.home-revenue-room strong { color: #72f7ff; font-size: 10px; }
.home-revenue-room small { color: #b8cbe0; font-size: 9px; }

.home-revenue-summary {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(94, 147, 198, .42);
}

.home-revenue-summary h4 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 15px;
}

.home-revenue-summary table {
  width: 100%;
  border-collapse: collapse;
  color: #dcecff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.home-revenue-summary th,
.home-revenue-summary td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(94, 147, 198, .24);
  text-align: right;
}

.home-revenue-summary th:first-child,
.home-revenue-summary td:first-child { text-align: left; }
.home-revenue-summary thead th { color: #72f7ff; font-size: 10px; text-transform: uppercase; }
.home-revenue-summary tfoot th,
.home-revenue-summary tfoot td { color: #fff; font-weight: 900; border-bottom: 0; }
.home-summary-dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 2px; background: #91d6ad; }
.home-revenue-summary .category-t2-sunny .home-summary-dot,
.home-revenue-summary .category-t2 .home-summary-dot { background: #8cb8f4; }
.home-revenue-summary .category-t0 .home-summary-dot { background: #b7c0ca; }

@media (max-width: 700px) {
  .home-detail-tabs button { min-width: 0; flex: 1 1 auto; padding: 0 10px; }
  .home-detail-tabs button[data-home-detail-tab="future"] { flex: 0 0 42px; min-width: 42px; width: 42px; }
  .home-revenue-map-heading { flex-direction: column; }
}

.home-monthly-chart {
  min-width: 0;
  border: 1px solid rgba(28, 81, 132, .86);
  border-radius: 8px;
  padding: 14px;
  background: rgba(5, 18, 34, .82);
}

.home-monthly-chart header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.home-monthly-chart header span,
.home-chart-total small,
.home-chart-total em {
  color: #9fb7d5;
  font-style: normal;
}

.home-monthly-chart h3 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0;
}

.home-chart-total {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 150px;
  font-variant-numeric: tabular-nums;
}

.home-chart-total strong {
  color: #fff;
  font-size: 22px;
}

.home-chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin: 10px 0 8px;
  color: #cfe0f4;
  font-size: 11px;
  font-weight: 900;
}

.home-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-chart-legend span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.home-chart-legend .current::before { background: linear-gradient(180deg, #31d5ff, #2095ff); }
.home-chart-legend .compare::before { background: linear-gradient(180deg, #8a7cff, #5646b8); }

/* RevPAR line overlay (only Las Adelfas "Room nights ocupadas" chart) */
.home-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-revpar-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: #cfe0f4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2px;
}

.home-revpar-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.home-revpar-switch-track {
  position: relative;
  width: 34px;
  height: 18px;
  flex: none;
  border-radius: 999px;
  background: rgba(120, 150, 190, .35);
  border: 1px solid rgba(150, 180, 220, .35);
  transition: background .2s ease, border-color .2s ease;
}

.home-revpar-switch-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #eaf3ff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  transition: transform .2s ease;
}

.home-revpar-switch input:checked + .home-revpar-switch-track {
  background: linear-gradient(180deg, #ffcf5a, #ff9f1c);
  border-color: rgba(255, 190, 90, .7);
}

.home-revpar-switch input:checked + .home-revpar-switch-track .home-revpar-switch-thumb {
  transform: translateX(16px);
}

.home-revpar-switch input:focus-visible + .home-revpar-switch-track {
  outline: 2px solid rgba(255, 205, 100, .9);
  outline-offset: 2px;
}

.home-revpar-switch-text { white-space: nowrap; }

.has-revpar-overlay .home-bars { position: relative; }

.home-revpar-overlay {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  overflow: visible;
  transition: opacity .28s ease;
}

.home-monthly-chart[class*="is-line-"] .home-revpar-overlay { opacity: 1; }

.home-revpar-overlay polyline {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.home-revpar-overlay .rp-current { stroke: #ffc94a; stroke-width: 2.6; }
.home-revpar-overlay .rp-compare { stroke: #ff8d6b; stroke-width: 2.2; stroke-dasharray: 6 5; opacity: .92; }
.home-revpar-overlay .rp-current-dot { fill: #ffd873; stroke: #6b4a05; stroke-width: 1.1; }
.home-revpar-overlay .rp-compare-dot { fill: #ff9d7f; stroke: #6b2c1a; stroke-width: 1.1; }

.home-revpar-legend {
  display: none;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 900;
}

.home-monthly-chart[class*="is-line-"] .home-revpar-legend { display: flex; }

.home-revpar-legend span { display: inline-flex; align-items: center; gap: 7px; }

.home-revpar-legend span::before {
  content: "";
  width: 18px;
  height: 0;
  border-top-width: 3px;
  border-top-style: solid;
  border-radius: 2px;
}

.home-revpar-legend .rp-c { color: #ffc94a; }
.home-revpar-legend .rp-c::before { border-top-color: #ffc94a; }
.home-revpar-legend .rp-p { color: #ff8d6b; }
.home-revpar-legend .rp-p::before { border-top-color: #ff8d6b; border-top-style: dashed; }

/* RevPAR + ADR line overlays: 4 independent per-year line toggles */
.home-overlay-switches { display: inline-flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.home-overlay-group { display: inline-flex; align-items: center; gap: 10px; }
.home-overlay-group-label { color: #9fb7d5; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; }

/* Per-line switch accent colours (each toggle matches the colour of the line it controls) */
.line-rp-cur input:checked + .home-revpar-switch-track { background: linear-gradient(180deg, #ffd873, #ff9f1c); border-color: rgba(255, 190, 90, .7); }
.line-rp-cmp input:checked + .home-revpar-switch-track { background: linear-gradient(180deg, #ffa98a, #ff6f4d); border-color: rgba(255, 140, 110, .7); }
.line-ad-cur input:checked + .home-revpar-switch-track { background: linear-gradient(180deg, #5fe7b3, #14b981); border-color: rgba(70, 220, 160, .7); }
.line-ad-cmp input:checked + .home-revpar-switch-track { background: linear-gradient(180deg, #57c9b6, #159c8a); border-color: rgba(60, 190, 165, .7); }
.home-line-switch input:focus-visible + .home-revpar-switch-track { outline: 2px solid rgba(180, 210, 245, .9); outline-offset: 2px; }

.home-revpar-overlay .ad-current { stroke: #3ddc97; stroke-width: 2.6; }
.home-revpar-overlay .ad-compare { stroke: #2bbfa0; stroke-width: 2.2; stroke-dasharray: 6 5; opacity: .92; }
.home-revpar-overlay .ad-current-dot { fill: #74e8b8; stroke: #0a4a34; stroke-width: 1.1; }
.home-revpar-overlay .ad-compare-dot { fill: #5fd0b8; stroke: #0a4438; stroke-width: 1.1; }

/* Legend entries: show each only when its own line is active */
.home-revpar-legend .rp-c,
.home-revpar-legend .rp-p,
.home-revpar-legend .ad-c,
.home-revpar-legend .ad-p { display: none; }
.home-monthly-chart.is-line-rp-cur .home-revpar-legend .rp-c,
.home-monthly-chart.is-line-rp-cmp .home-revpar-legend .rp-p,
.home-monthly-chart.is-line-ad-cur .home-revpar-legend .ad-c,
.home-monthly-chart.is-line-ad-cmp .home-revpar-legend .ad-p { display: inline-flex; }
.home-revpar-legend .ad-c { color: #3ddc97; }
.home-revpar-legend .ad-c::before { border-top-color: #3ddc97; }
.home-revpar-legend .ad-p { color: #2bbfa0; }
.home-revpar-legend .ad-p::before { border-top-color: #2bbfa0; border-top-style: dashed; }

.home-bars {
  min-height: 272px;
  display: grid;
  grid-template-columns: repeat(12, minmax(48px, 1fr));
  gap: 12px;
  align-items: end;
  padding-top: 10px;
  border-top: 1px solid rgba(37, 99, 160, .58);
  overflow-x: auto;
  scrollbar-color: rgba(125, 213, 255, .36) rgba(4, 15, 29, .75);
}

.home-bar-month {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: 178px auto auto;
  gap: 7px;
  text-align: center;
  color: #dbeafe;
}

.home-bar-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 5px;
  height: 178px;
}

.home-bar-segment {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  align-self: end;
  height: var(--bar);
  min-height: 24px;
  border-radius: 5px 5px 2px 2px;
  border: 0;
  overflow: hidden;
  padding: 0;
  font: inherit;
  cursor: default;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
  animation: home-bar-arrive .48s ease both;
}

.home-bar-segment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .18) 38%, transparent 62%);
  transform: translateX(-140%);
  opacity: 0;
  pointer-events: none;
}

.home-bar-segment.is-clickable {
  cursor: pointer;
}

.home-bar-segment.is-clickable:hover,
.home-bar-segment.is-clickable:focus-visible,
.home-bar-segment.is-clickable.is-open {
  transform: translateY(-4px);
  filter: saturate(1.14) brightness(1.08);
}

.home-bar-segment.is-clickable:hover::after,
.home-bar-segment.is-clickable:focus-visible::after,
.home-bar-segment.is-clickable.is-open::after {
  opacity: 1;
  animation: home-bar-sheen 1.15s ease;
}

.home-bar-segment.is-clickable:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .86);
  outline-offset: 3px;
}

.home-bar-pair .current {
  background: linear-gradient(180deg, #31d5ff, #2095ff 58%, rgba(32, 149, 255, .42));
  box-shadow: 0 0 18px rgba(49, 213, 255, .26);
}

.home-bar-pair .compare {
  background: linear-gradient(180deg, #8a7cff, #5646b8 58%, rgba(86, 70, 184, .42));
  opacity: .78;
}

.home-bar-pair .current.is-clickable:hover,
.home-bar-pair .current.is-clickable:focus-visible,
.home-bar-pair .current.is-clickable.is-open {
  box-shadow: 0 0 24px rgba(49, 213, 255, .48), 0 12px 26px rgba(0, 0, 0, .28);
}

.home-bar-pair .compare.is-clickable:hover,
.home-bar-pair .compare.is-clickable:focus-visible,
.home-bar-pair .compare.is-clickable.is-open {
  box-shadow: 0 0 22px rgba(138, 124, 255, .4), 0 12px 26px rgba(0, 0, 0, .28);
}

.home-bar-pair .home-bar-segment span {
  display: block;
  max-width: 100%;
  padding: 4px 2px 0;
  color: rgba(255, 255, 255, .94);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 7px rgba(255, 255, 255, .58), 0 1px 2px rgba(0, 0, 0, .72);
  white-space: nowrap;
  transform: translateY(0);
  font-variant-numeric: tabular-nums;
}

.home-rate-popover {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: min(288px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid rgba(118, 210, 255, .42);
  border-radius: 8px;
  background: rgba(4, 15, 29, .96);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .44), 0 0 24px rgba(49, 213, 255, .12);
  text-align: left;
  color: #e8f7ff;
  animation: home-popover-in .16s ease both;
  pointer-events: auto;
}

.home-rate-popover::after {
  content: "";
  position: absolute;
  left: var(--home-rate-popover-arrow-x, 50%);
  bottom: -7px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid rgba(118, 210, 255, .42);
  border-bottom: 1px solid rgba(118, 210, 255, .42);
  background: rgba(4, 15, 29, .96);
}

.home-rate-popover.is-below::after {
  top: -7px;
  bottom: auto;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(118, 210, 255, .42);
  border-top: 1px solid rgba(118, 210, 255, .42);
}

.home-rate-popover-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(72, 148, 211, .32);
}

.home-rate-popover-head span {
  color: #9fdfff;
  font-size: 11px;
  font-weight: 900;
}

.home-rate-popover-head strong {
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.home-rate-popover-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
  font-size: 11px;
}

.home-rate-popover-row span {
  min-width: 0;
  color: #cfe8ff;
}

.home-rate-popover-row strong,
.home-rate-popover-row em {
  color: #fff;
  font-style: normal;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.home-rate-popover-row.nr em { color: #7df8ff; }
.home-rate-popover-row.other em { color: #d7d2ff; }
.home-rate-popover-row.unknown span,
.home-rate-popover-row.unknown strong,
.home-rate-popover-row.unknown em,
.home-rate-popover small {
  color: #90a8c4;
}

.home-rate-popover-insights {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(72, 148, 211, .32);
}

.home-rate-popover-insight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  align-items: baseline;
  font-size: 11px;
}

.home-rate-popover-insight > span {
  color: #b8d5f2;
  font-weight: 800;
}

.home-rate-popover-insight > strong {
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.home-rate-popover-insight > strong em {
  color: #7df8ff;
  font-style: normal;
  font-size: 10px;
  margin-left: 4px;
}

.home-rate-popover-insight > small {
  grid-column: 1 / -1;
  margin: 0;
  color: #86a5c5;
}

.home-rate-popover-note {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid rgba(72, 148, 211, .32);
}

.home-rate-popover small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.3;
}

@keyframes home-bar-arrive {
  from { transform: scaleY(.92); opacity: .72; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes home-bar-sheen {
  from { transform: translateX(-140%); }
  to { transform: translateX(140%); }
}

@keyframes home-popover-in {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.home-bar-month.is-projected b::after {
  content: " proy.";
  color: #72f7ff;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-bar-month b {
  color: #fff;
  font-size: 12px;
}

.home-bar-month small {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.home-bar-month small span {
  color: #bff6ff;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-bar-month small em {
  color: #c9c3ff;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1180px) {
  .home-bars { grid-template-columns: repeat(12, minmax(56px, 1fr)); }
}

@media (max-width: 680px) {
  .home-monthly-chart header,
  .home-drilldown-header,
  .home-complex-drilldown-card.has-error {
    grid-template-columns: 1fr;
  }

  .home-chart-total {
    justify-items: start;
  }

  .home-bars {
    grid-template-columns: repeat(12, minmax(64px, 1fr));
  }
}

/* Nexus Hub v43: graphics, RGA loader and action button hotfixes */
.graphic-loading[hidden],
.loading-card[hidden] {
  display: none !important;
}

.sales-graphics-modal .modal-close {
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border-color: rgba(139, 171, 217, .45);
  background: rgba(7, 23, 43, .94);
  color: #eaf3ff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 2;
}

.sales-graphics-modal .modal-close:hover {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(17, 43, 76, .98);
}

.sales-graphics-modal .graphic-hero {
  padding-right: 44px;
}

.graphic-actions {
  gap: 14px;
}

.graphic-export {
  min-width: 156px;
  min-height: 42px;
}

.report-actions [data-update-sales].refresh-button,
.report-actions .refresh-button {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 13px;
  font-size: 13px;
  background: linear-gradient(135deg, #176fe8, #1f7cff);
  box-shadow: 0 10px 24px rgba(31, 124, 255, .22);
}

.report-actions [data-update-sales].refresh-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(31, 124, 255, .28);
}

.action-card.slim [data-rga-load-slot] {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a9bbd4;
}

.action-card.slim [data-rga-load-slot] i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ffdf55;
  box-shadow: 0 0 12px rgba(255, 223, 85, .45);
}

.action-card.slim [data-rga-load-slot].is-uploaded {
  color: #dfffee;
}

.action-card.slim [data-rga-load-slot].is-uploaded i {
  background: #21e49a;
  box-shadow: 0 0 14px rgba(33, 228, 154, .6);
}

.action-card.slim [data-rga-load-slot] small {
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8ff5c5;
}

.graphic-bars.weekly-line-host {
  display: block;
  min-height: 360px;
  padding: 14px 8px 0;
  border-left: 0;
}

.weekly-line-chart {
  display: grid;
  gap: 10px;
}

.weekly-line-chart svg {
  width: 100%;
  height: auto;
  min-height: 330px;
}

.weekly-axis,
.weekly-grid-line {
  stroke: rgba(119, 151, 197, .35);
  stroke-width: 1;
}

.weekly-grid-line {
  stroke-dasharray: 5 8;
}

.weekly-axis-label {
  fill: #b7c6dc;
  stroke: none;
  font-size: 13px;
  font-weight: 700;
}

.weekly-line polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 9px var(--accent));
}

.weekly-line circle {
  fill: #07172b !important;
  stroke: var(--accent) !important;
  stroke-width: 4;
}

.weekly-line-legend {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  padding: 0 8px 8px 70px;
}

.weekly-line-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d8e7fb;
  font-size: 12px;
  font-weight: 800;
}

.weekly-line-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* Home dashboard last update timestamp */
.home-date-pill small {
  grid-column: 2;
  display: block;
  margin-top: 1px;
  color: #7fa6d4;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}
.home-date-pill svg { grid-row: span 3; }
@media (max-width: 680px) {
  .home-date-pill small { white-space: normal; }
}

/* Nexus Hub v47: weekly chart line toggles + sharper modal controls */
.sales-graphics-modal .modal-close {
  width: 42px;
  height: 42px;
  top: 14px;
  right: 14px;
  border: 1px solid rgba(126, 210, 255, .48);
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(122, 201, 255, .22), transparent 34%),
    linear-gradient(145deg, rgba(7, 23, 43, .98), rgba(3, 14, 29, .98));
  color: transparent;
  font-size: 0;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, .14), 0 12px 28px rgba(0, 0, 0, .36), inset 0 0 20px rgba(31, 124, 255, .08);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.sales-graphics-modal .modal-close::before,
.sales-graphics-modal .modal-close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: #dff5ff;
  box-shadow: 0 0 10px rgba(9, 213, 207, .72);
  transform-origin: center;
}

.sales-graphics-modal .modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.sales-graphics-modal .modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.sales-graphics-modal .modal-close:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(9, 213, 207, .86);
  background:
    radial-gradient(circle at 30% 20%, rgba(9, 213, 207, .28), transparent 38%),
    linear-gradient(145deg, rgba(10, 35, 64, .98), rgba(5, 20, 40, .98));
  box-shadow: 0 0 0 1px rgba(9, 213, 207, .22), 0 18px 34px rgba(0, 0, 0, .42), 0 0 26px rgba(9, 213, 207, .22);
}

.chain-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(76, 137, 202, .45);
  padding-top: 10px;
  margin-top: 10px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .08), transparent);
  border-radius: 8px;
  overflow: hidden;
}

.chain-mini-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 7px 10px;
  border-right: 1px solid rgba(126, 210, 255, .2);
}

.chain-mini-item:last-child { border-right: 0; }
.chain-mini-item b { color: #fff; font-size: 18px; line-height: 1; }
.chain-mini-item span { color: #b7c9e3; font-size: 10px; line-height: 1.15; letter-spacing: .07em; text-transform: uppercase; }

.hotel-card.is-toggleable {
  position: relative;
  cursor: pointer;
  user-select: none;
  border-color: color-mix(in srgb, var(--accent) 46%, #123458);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent), 0 12px 24px rgba(0, 0, 0, .18);
  transition: opacity .18s ease, transform .18s ease, filter .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hotel-card.is-toggleable::after {
  content: 'Toggle line';
  position: absolute;
  right: 11px;
  top: 11px;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 999px;
  color: #dff5ff;
  background: rgba(3, 15, 31, .72);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
}

.hotel-card.is-toggleable:hover,
.hotel-card.is-toggleable:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent), 0 18px 34px rgba(0, 0, 0, .26), 0 0 28px color-mix(in srgb, var(--accent) 20%, transparent);
  outline: none;
}

.hotel-card.is-toggleable:hover::after,
.hotel-card.is-toggleable:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.hotel-card.is-muted {
  opacity: .38;
  filter: saturate(.7) brightness(.78);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, #07192f), #061222);
}

.hotel-card.is-muted svg,
.hotel-card.is-muted .hotel-icon {
  opacity: .62;
}

.hotel-card .toggle-hint {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 2px;
  color: color-mix(in srgb, var(--accent) 78%, #eaf3ff);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.weekly-empty-state {
  min-height: 330px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(126, 210, 255, .28);
  border-radius: 12px;
  color: #bcd1ea;
  background: radial-gradient(circle at center, rgba(139, 92, 246, .12), transparent 54%);
  font-weight: 800;
}

/* Nexus live chat */
.direct-chat-shell { position: fixed; right: 22px; bottom: 22px; z-index: 90; font-family: inherit; }
.direct-chat-launcher { width: 62px; height: 62px; border-radius: 50%; border: 1px solid rgba(68, 132, 255, .78); background: radial-gradient(circle at 35% 25%, rgba(30, 211, 255, .2), rgba(46, 32, 125, .88)); color: #eaf6ff; box-shadow: 0 0 0 1px rgba(17, 214, 255, .18), 0 0 34px rgba(35, 119, 255, .52), 0 18px 45px rgba(0,0,0,.42); cursor: pointer; display: grid; place-items: center; transition: transform .18s ease, filter .18s ease, opacity .18s ease; }
.direct-chat-launcher:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.14); }
.direct-chat-orbit { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(33, 231, 255, .95); display: grid; place-items: center; box-shadow: inset 0 0 18px rgba(33,231,255,.2), 0 0 22px rgba(33,231,255,.44); }
.direct-chat-orbit svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.direct-chat-launcher b { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #ff2372; color: #fff; font-size: 11px; display: grid; place-items: center; box-shadow: 0 0 16px rgba(255,35,114,.55); }
.direct-chat-panel { width: min(420px, calc(100vw - 28px)); height: min(650px, calc(100vh - 110px)); max-height: 72vh; margin-bottom: 16px; border: 1px solid rgba(47, 133, 255, .72); border-radius: 18px; background: linear-gradient(180deg, rgba(8, 24, 47, .98), rgba(5, 16, 32, .98)); box-shadow: 0 0 0 1px rgba(48, 229, 255, .12), 0 22px 70px rgba(0,0,0,.58), 0 0 38px rgba(36,108,255,.35); overflow: hidden; display: flex; flex-direction: column; }
.direct-chat-header { min-height: 66px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(70, 128, 190, .32); background: radial-gradient(circle at 18% 0%, rgba(31, 109, 255, .28), transparent 44%); }
.direct-chat-header span { color: #fff; font-weight: 900; letter-spacing: .02em; }
.direct-chat-header small { display: block; margin-top: 3px; color: #7dfce6; font-size: 11px; }
.direct-chat-tools { display: flex; gap: 8px; }
.direct-chat-tools button { width: 28px; height: 28px; border-radius: 10px; border: 1px solid rgba(126, 210, 255, .36); background: rgba(10, 30, 55, .82); color: #dff5ff; cursor: pointer; display: grid; place-items: center; font-size: 18px; line-height: 1; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.direct-chat-tools button:hover { transform: translateY(-1px); border-color: rgba(33,231,255,.85); box-shadow: 0 0 18px rgba(33,231,255,.18); }
.direct-chat-main { min-height: 0; flex: 1; display: grid; grid-template-columns: 1fr; }
.direct-chat-threads { border-right: 1px solid rgba(70, 128, 190, .28); background: rgba(5, 16, 32, .45); padding: 10px; overflow: auto; }
body[data-is-it="1"] .direct-chat-panel { width: min(720px, calc(100vw - 28px)); }
body[data-is-it="1"] .direct-chat-main { grid-template-columns: 220px 1fr; }
.direct-chat-thread { width: 100%; text-align: left; border: 1px solid rgba(80, 142, 216, .26); border-radius: 12px; padding: 10px; margin-bottom: 8px; background: rgba(10, 30, 55, .72); color: #dbeeff; cursor: pointer; }
.direct-chat-thread.active { border-color: rgba(33,231,255,.78); box-shadow: inset 0 0 0 1px rgba(33,231,255,.16); }
.direct-chat-thread strong { display: block; font-size: 12px; }
.direct-chat-thread small { display: block; margin-top: 4px; color: #9fb7d5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.direct-chat-room { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.direct-chat-agent { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid rgba(70, 128, 190, .26); }
.agent-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; background: linear-gradient(145deg, #255fff, #7c3cff); border: 2px solid rgba(125,252,230,.62); box-shadow: 0 0 20px rgba(36,108,255,.35); }
.direct-chat-agent strong { color: #fff; display: block; }
.direct-chat-agent small { color: #a7bbd5; }
.direct-chat-agent small span { color: #38f89a; }
.direct-chat-messages { flex: 1; min-height: 0; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { max-width: 82%; border: 1px solid rgba(65, 122, 190, .32); border-radius: 15px; padding: 10px 12px; background: rgba(14, 35, 65, .88); color: #eaf3ff; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.chat-bubble.me { align-self: flex-end; background: linear-gradient(145deg, rgba(75, 48, 199, .95), rgba(38, 95, 255, .92)); border-color: rgba(147, 119, 255, .66); }
.chat-bubble.system { align-self: center; max-width: 92%; text-align: center; color: #99b7d6; background: rgba(6, 18, 34, .72); border-style: dashed; font-size: 12px; }
.chat-bubble strong { display: block; font-size: 11px; color: #9fd7ff; margin-bottom: 5px; }
.chat-bubble p { margin: 0; line-height: 1.45; white-space: pre-wrap; }
.chat-bubble time { display: block; margin-top: 5px; color: #94a9c5; font-size: 10px; text-align: right; }
.direct-chat-typing { align-self: flex-start; margin: 0 16px 8px; width: 56px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 5px; background: rgba(13, 30, 53, .92); border: 1px solid rgba(126, 210, 255, .28); }
.direct-chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: #7dfce6; animation: chatDot 1s infinite ease-in-out; }
.direct-chat-typing i:nth-child(2) { animation-delay: .15s; }
.direct-chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-5px); opacity: 1; } }
.direct-chat-form { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px 14px; border-top: 1px solid rgba(70, 128, 190, .28); }
.direct-chat-form textarea { flex: 1; min-height: 42px; max-height: 96px; resize: none; border-radius: 14px; border: 1px solid rgba(80, 142, 216, .28); background: rgba(3, 14, 30, .82); color: #eaf3ff; padding: 12px 14px; outline: none; font-family: inherit; }
.direct-chat-form textarea:focus { border-color: rgba(33,231,255,.72); box-shadow: 0 0 0 3px rgba(33,231,255,.08); }
.direct-chat-form button { width: 42px; height: 42px; border: 0; border-radius: 14px; background: linear-gradient(145deg, #8b5cf6, #245cff); color: #fff; cursor: pointer; box-shadow: 0 0 22px rgba(68,132,255,.34); }
.direct-chat-panel[hidden], .direct-chat-launcher[hidden] { display: none !important; }

@media (max-width: 760px) {
  body[data-is-it="1"] .direct-chat-panel { width: calc(100vw - 22px); }
  body[data-is-it="1"] .direct-chat-main { grid-template-columns: 1fr; }
  body[data-is-it="1"] .direct-chat-threads { max-height: 120px; border-right: 0; border-bottom: 1px solid rgba(70, 128, 190, .28); }
}

/* Nexus Hub v49 - realtime-style direct chat refinements */
.direct-chat-thread { position: relative; }
.direct-chat-thread.has-unread { border-color: rgba(255, 35, 114, .78); box-shadow: 0 0 0 1px rgba(255,35,114,.16), 0 0 22px rgba(255,35,114,.12); }
.direct-chat-thread strong { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.direct-chat-thread strong em { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-style: normal; font-size: 11px; background: #ff2372; color: #fff; box-shadow: 0 0 14px rgba(255,35,114,.45); }
.direct-chat-user-presence { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: #9fb7d5; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.direct-chat-user-presence::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #8aa0bc; }
.direct-chat-user-presence.online { color: #7dfce6; }
.direct-chat-user-presence.online::before { background: #38f89a; box-shadow: 0 0 10px rgba(56, 248, 154, .66); }
.direct-chat-user-presence.away::before { background: #f5b84c; }
.chat-notification-item { cursor: pointer; border-left: 2px solid rgba(33,231,255,.8); }
.chat-notification-item:hover { background: rgba(33, 231, 255, .08); }
.direct-chat-toast { position: fixed; right: 24px; top: 78px; z-index: 120; width: min(330px, calc(100vw - 32px)); border-radius: 16px; border: 1px solid rgba(33,231,255,.55); background: linear-gradient(145deg, rgba(9, 29, 57, .98), rgba(7, 17, 34, .98)); box-shadow: 0 0 0 1px rgba(125,252,230,.10), 0 18px 45px rgba(0,0,0,.38), 0 0 28px rgba(36,108,255,.28); color: #eaf6ff; padding: 14px 16px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .18s ease, opacity .18s ease; }
.direct-chat-toast.show { transform: translateY(0); opacity: 1; }
.direct-chat-toast strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #7dfce6; margin-bottom: 5px; }
.direct-chat-toast span { display: block; font-size: 13px; line-height: 1.45; color: #dbeeff; }
.chat-presence-online { color: #38f89a !important; }
.chat-presence-away { color: #ffd84d !important; }
.direct-chat-typing[hidden] { display: none !important; }
.chat-bubble { overflow-wrap: anywhere; word-break: break-word; }
.chat-bubble p { overflow-wrap: anywhere; word-break: break-word; }
.direct-chat-messages { overscroll-behavior: contain; scrollbar-width: thin; }
.direct-chat-form textarea { overflow-y: auto; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.direct-chat-form button { flex: 0 0 42px; display: grid; place-items: center; }

/* Nexus Hub v51 - chat resume, message cloud, precise typing and attachments */
.direct-chat-message-cloud {
  position: absolute;
  right: 76px;
  bottom: 18px;
  z-index: 2;
  min-width: 158px;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  border: 1px solid rgba(33, 231, 255, .64);
  background: linear-gradient(145deg, rgba(10, 31, 61, .98), rgba(39, 28, 113, .96));
  color: #eaf6ff;
  box-shadow: 0 0 0 1px rgba(125, 252, 230, .10), 0 14px 32px rgba(0,0,0,.36), 0 0 24px rgba(33,231,255,.28);
  opacity: 0;
  transform: translateY(8px) scale(.96);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.direct-chat-message-cloud.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; cursor: pointer; }
.direct-chat-message-cloud[hidden] { display: none !important; }
.direct-chat-message-cloud strong { display: block; font-size: 11px; color: #7dfce6; text-transform: uppercase; letter-spacing: .04em; }
.direct-chat-message-cloud span { display: block; margin-top: 3px; font-size: 13px; color: #eaf6ff; font-weight: 900; text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.direct-chat-typing { display: none !important; }
.direct-chat-typing.is-active { display: flex !important; }
.chat-resume-button {
  align-self: center;
  border: 1px solid rgba(33,231,255,.64);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(37, 95, 255, .32), rgba(139, 92, 246, .34));
  color: #eaf6ff;
  font-weight: 900;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(33,231,255,.16);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.chat-resume-button:hover { transform: translateY(-1px); border-color: rgba(125,252,230,.92); box-shadow: 0 0 26px rgba(33,231,255,.26); }
.chat-attachments { display: grid; gap: 7px; margin-top: 8px; }
.chat-attachment {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 8px;
  align-items: center;
  text-decoration: none;
  color: #eaf6ff;
  border: 1px solid rgba(126, 210, 255, .28);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(3, 14, 30, .45);
}
.chat-attachment:hover { border-color: rgba(33,231,255,.74); box-shadow: 0 0 16px rgba(33,231,255,.12); }
.chat-attachment span { grid-row: span 2; width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: rgba(33,231,255,.12); color: #7dfce6; }
.chat-attachment b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.chat-attachment small { color: #9fb7d5; font-size: 10px; }
.direct-chat-drop-active .direct-chat-panel { border-color: rgba(125,252,230,.95); box-shadow: 0 0 0 1px rgba(125,252,230,.20), 0 22px 70px rgba(0,0,0,.58), 0 0 44px rgba(33,231,255,.34); }

/* Nexus Hub v57 - RGA File Locator and saved audits */
.file-locator-shell {
  background:
    radial-gradient(circle at 76% 10%, rgba(0, 132, 255, .22), transparent 30%),
    linear-gradient(145deg, rgba(5, 19, 38, .98), rgba(4, 13, 27, .98));
  border-color: rgba(27, 122, 255, .32);
  box-shadow: inset 0 0 0 1px rgba(33, 231, 255, .06), 0 24px 70px rgba(0, 0, 0, .34);
}

.file-locator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  align-items: start;
}

.file-locator-main { display: grid; gap: 16px; min-width: 0; }

.file-locator-hero {
  min-height: 150px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 270px;
  align-items: center;
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(38, 127, 255, .34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 78% 50%, rgba(0, 132, 255, .18), transparent 36%),
    linear-gradient(135deg, rgba(5, 24, 48, .94), rgba(4, 14, 30, .96));
  overflow: hidden;
}

.file-locator-hero-icon,
.file-locator-big-folder {
  display: grid;
  place-items: center;
  color: #16d9ff;
  border: 1px solid rgba(0, 132, 255, .55);
  background: rgba(0, 71, 180, .18);
  box-shadow: inset 0 0 24px rgba(0, 132, 255, .20), 0 0 28px rgba(0, 132, 255, .25);
}

.file-locator-hero-icon { width: 70px; height: 70px; border-radius: 16px; }
.file-locator-hero-icon svg { width: 42px; height: 42px; }
.file-locator-hero h1 { margin: 4px 0 6px; color: #fff; font-size: 34px; }
.file-locator-hero p { margin: 0; color: #a9c4e4; line-height: 1.45; max-width: 520px; }

.file-locator-orbit {
  position: relative;
  min-height: 116px;
  display: grid;
  place-items: center;
}

.file-locator-orbit::before,
.file-locator-orbit::after {
  content: '';
  position: absolute;
  width: 210px;
  height: 76px;
  border: 1px solid rgba(33, 231, 255, .22);
  border-radius: 50%;
  transform: rotate(-12deg);
  box-shadow: 0 0 30px rgba(0, 132, 255, .16);
}

.file-locator-orbit::after { width: 150px; height: 48px; transform: rotate(8deg); }
.file-locator-big-folder { width: 104px; height: 84px; border-radius: 18px; transform: rotate(-4deg); z-index: 1; }
.file-locator-big-folder svg { width: 70px; height: 70px; filter: drop-shadow(0 0 14px rgba(0, 174, 255, .65)); }

.file-locator-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.file-locator-stats article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  min-height: 72px;
  padding: 13px;
  border: 1px solid rgba(38, 127, 255, .28);
  border-radius: 12px;
  background: rgba(6, 24, 49, .78);
}

.file-locator-stats i {
  grid-row: span 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #16d9ff;
  background: rgba(0, 132, 255, .16);
}

.file-locator-stats strong { color: #fff; font-size: 20px; }
.file-locator-stats span { color: #d9ebff; font-size: 12px; font-weight: 900; }
.file-locator-stats small { color: #8faecc; font-size: 10px; }

.file-locator-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.file-locator-toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(38, 127, 255, .28);
  border-radius: 12px;
  background: rgba(3, 16, 34, .84);
  color: #7dfce6;
}

.file-locator-toolbar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eaf6ff;
  font: inherit;
}

.fl-view-toggle {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(38, 127, 255, .24);
  border-radius: 12px;
  background: rgba(3, 16, 34, .84);
}

.fl-view-toggle button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #91b9de;
  cursor: pointer;
}

.fl-view-toggle button.active {
  background: linear-gradient(145deg, #006bff, #0636bd);
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 132, 255, .34);
}

.file-locator-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
}

.file-locator-grid.is-list { grid-template-columns: 1fr; }

.fl-folder-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 190px;
  padding: 14px 12px 12px;
  border: 1px solid rgba(38, 127, 255, .28);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(6, 24, 49, .92), rgba(4, 15, 31, .94));
  box-shadow: inset 0 0 0 1px rgba(33, 231, 255, .04);
}

.file-locator-grid.is-list .fl-folder-card {
  grid-template-columns: 78px minmax(0, 1fr) 120px 120px;
  align-items: center;
  min-height: 86px;
}

.fl-menu {
  position: absolute;
  top: 10px;
  right: 8px;
  border: 0;
  background: transparent;
  color: #87acd1;
  cursor: pointer;
}

.fl-folder-icon {
  width: 78px;
  height: 64px;
  border: 0;
  background: transparent;
  cursor: pointer;
  justify-self: center;
}

.fl-folder-icon span {
  position: relative;
  display: block;
  width: 74px;
  height: 50px;
  margin-top: 12px;
  border-radius: 9px;
  background: linear-gradient(145deg, #0ea5ff, #0648d5 62%, #022b86);
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, .22), 0 0 22px rgba(0, 132, 255, .55);
}

.fl-folder-icon span::before {
  content: '';
  position: absolute;
  left: 8px;
  top: -9px;
  width: 30px;
  height: 14px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(145deg, #1fbfff, #0b66f0);
}

.fl-folder-name {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  font-weight: 900;
  font-size: 13px;
}

.file-locator-grid.is-list .fl-folder-name { text-align: left; }
.fl-folder-url { width: 100%; min-height: 30px; border: 1px solid rgba(38, 127, 255, .28); border-radius: 8px; background: rgba(3, 16, 34, .68); color: #dcecff; padding: 7px 9px; font-size: 10px; outline: none; }
.fl-folder-url:focus { border-color: rgba(33, 231, 255, .74); box-shadow: 0 0 0 3px rgba(33, 231, 255, .08); }
.fl-folder-card small { color: #8eabc8; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-folder-card em { width: fit-content; padding: 4px 8px; border-radius: 999px; color: #9dff95; background: rgba(58, 255, 106, .10); font-style: normal; font-size: 10px; font-weight: 900; }
.fl-folder-card:not(.configured) em { color: #ffd66e; background: rgba(255, 198, 41, .10); }
.fl-select { min-height: 32px; border: 1px solid rgba(38, 127, 255, .34); border-radius: 8px; color: #a9d6ff; background: rgba(0, 62, 154, .16); font-weight: 900; cursor: pointer; }
.fl-folder-card.system-folder {
  min-height: 164px;
  border-color: rgba(33, 231, 255, .38);
  background: radial-gradient(circle at 50% 18%, rgba(24, 144, 255, .18), transparent 42%), linear-gradient(180deg, rgba(6, 24, 49, .96), rgba(4, 15, 31, .96));
}
.fl-folder-card.system-folder small {
  color: #7dfce6;
  text-align: center;
  white-space: normal;
}
.fl-folder-card.system-folder .fl-menu { display: none; }

.file-locator-frequent {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(38, 127, 255, .28);
  border-radius: 12px;
  background: rgba(5, 19, 38, .82);
}

.file-locator-frequent > div:first-child { display: grid; grid-template-columns: 32px 1fr; gap: 2px 10px; color: #dbefff; }
.file-locator-frequent > div:first-child span { grid-row: span 2; color: #46a4ff; }
.file-locator-frequent small { color: #8eabc8; }
.file-locator-shortcuts { display: flex; gap: 8px; overflow: auto; padding-bottom: 2px; }
.file-locator-shortcuts button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(38, 127, 255, .26); border-radius: 8px; padding: 9px 12px; color: #dcebff; background: rgba(3, 16, 34, .72); cursor: pointer; }
.file-locator-shortcuts span { width: 16px; height: 12px; border-radius: 3px; background: #168cff; box-shadow: 0 0 10px rgba(0, 132, 255, .5); }

.file-locator-side { display: grid; gap: 12px; }

.rga-saved-backdrop { z-index: 110; }
.rga-saved-modal { width: min(980px, calc(100vw - 34px)); max-height: min(780px, calc(100vh - 46px)); overflow: auto; background: linear-gradient(145deg, rgba(5, 19, 38, .98), rgba(4, 13, 27, .98)); border-color: rgba(33, 231, 255, .34); }
.rga-saved-modal header { margin-bottom: 18px; }
.rga-saved-modal h2 { margin: 5px 0 6px; color: #fff; font-size: 30px; }
.rga-saved-modal p { color: #aec7df; }
.rga-saved-content { display: grid; gap: 18px; }
.rga-saved-group h3 { margin: 0 0 10px; color: #7dfce6; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.rga-saved-group > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rga-saved-item { display: grid; gap: 8px; padding: 14px; border: 1px solid rgba(38, 127, 255, .30); border-radius: 12px; background: rgba(7, 25, 50, .88); }
.rga-saved-item span { width: fit-content; padding: 4px 8px; border-radius: 999px; color: #f97316; background: rgba(249, 115, 22, .12); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.rga-saved-item.ok span { color: #22c55e; background: rgba(34, 197, 94, .12); }
.rga-saved-item strong { color: #fff; }
.rga-saved-item small, .rga-saved-item p { margin: 0; color: #a9c4e4; }
.rga-saved-item button { min-height: 36px; border: 1px solid rgba(33, 231, 255, .42); border-radius: 9px; color: #eaffff; background: linear-gradient(145deg, rgba(0, 110, 255, .36), rgba(0, 34, 102, .55)); font-weight: 900; cursor: pointer; }
.rga-saved-item button.danger {
  border-color: rgba(255, 87, 116, .55);
  color: #ffdce4;
  background: linear-gradient(145deg, rgba(189, 20, 58, .42), rgba(68, 8, 26, .62));
}

@media (max-width: 1100px) {
  .file-locator-layout { grid-template-columns: 1fr; }
  .file-locator-side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .file-locator-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

@media (max-width: 760px) {
  .file-locator-hero { grid-template-columns: 1fr; }
  .file-locator-orbit { display: none; }
  .file-locator-stats, .file-locator-side { grid-template-columns: 1fr; }
  .file-locator-frequent { grid-template-columns: 1fr; }
}

/* Nexus Hub v61 - Airbnb payout audit */
.airbnb-module { display: grid; gap: 16px; min-height: 100%; color: var(--text); }
.airbnb-hero { align-items: stretch; }
.airbnb-hero-controls { min-width: min(100%, 320px); display: grid; gap: 12px; align-content: center; }
.airbnb-hero-controls label { display: grid; gap: 7px; color: #b9cbe7; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.airbnb-hero-controls select,
.airbnb-filter-row input,
.airbnb-filter-row select { min-height: 40px; border: 1px solid rgba(80,132,220,.72); border-radius: 8px; background: #081931; color: #fff; padding: 0 12px; }
.airbnb-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid rgba(80,132,220,.28); padding-bottom: 10px; }
.airbnb-tabs button { min-height: 38px; border: 1px solid rgba(80,132,220,.55); border-radius: 8px; background: rgba(8,20,38,.84); color: #cfe3ff; padding: 0 14px; font-weight: 900; cursor: pointer; }
.airbnb-tabs button.active { border-color: rgba(33,231,255,.72); background: linear-gradient(135deg, rgba(23,116,255,.42), rgba(20,184,166,.30)); color: #fff; }
.airbnb-tab-panel { display: none; }
.airbnb-tab-panel.active { display: grid; gap: 16px; }
.airbnb-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 16px; }
.airbnb-upload-card,
.airbnb-run-panel,
.airbnb-result-card,
.airbnb-table-wrap,
.airbnb-history-list article { border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, rgba(16,33,58,.94), rgba(10,23,41,.94)); box-shadow: 0 16px 42px rgba(0,0,0,.22); }
.airbnb-upload-card { min-height: 380px; padding: 16px; display: grid; gap: 14px; }
.airbnb-upload-card.has-file { border-color: rgba(20,220,145,.7); box-shadow: inset 0 0 0 1px rgba(20,220,145,.16), 0 16px 42px rgba(0,0,0,.22); }
.airbnb-drop { min-height: 150px; border: 2px solid #1774ff; border-radius: 8px; background: rgba(9,24,46,.82); display: grid; place-items: center; text-align: center; gap: 8px; padding: 20px; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease; }
.airbnb-drop strong { color: #fff; font-size: 22px; font-weight: 900; }
.airbnb-drop span { color: #bfd1ea; }
.airbnb-drop.excel { border-color: #18df78; }
.airbnb-drop.drag-active { border-color: #fff; background: rgba(31,122,255,.18); box-shadow: 0 0 30px rgba(31,122,255,.35); transform: translateY(-1px); }
.airbnb-drop.file-loaded { border-color: #21e49a; color: #d8fff2; box-shadow: 0 0 24px rgba(33,228,154,.22); }
.airbnb-file-meta { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: #cfe0f7; font-size: 12px; }
.airbnb-file-meta b { color: #fff; }
.airbnb-run-panel { padding: 16px; display: grid; gap: 14px; }
.airbnb-run-panel .loading-card ol { margin: 0; padding-left: 18px; display: grid; gap: 7px; color: #9fb7d5; font-size: 12px; }
.airbnb-run-panel .loading-card li.active { color: #7dfce6; font-weight: 900; }
.airbnb-run-panel .loading-card li.done::marker { color: #21e49a; }
.airbnb-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.airbnb-kpi-grid article { min-height: 86px; border: 1px solid rgba(80,132,220,.32); border-radius: 8px; background: rgba(8,20,38,.80); padding: 14px; display: grid; align-content: center; gap: 6px; }
.airbnb-kpi-grid span { color: #9fb7d5; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.airbnb-kpi-grid strong { color: #fff; font-size: 20px; }
.airbnb-filter-row { display: grid; grid-template-columns: minmax(220px, 1fr) 220px auto; gap: 10px; align-items: center; }
.airbnb-table-wrap { overflow: auto; max-height: min(58vh, 640px); }
.airbnb-table-wrap table { width: 100%; border-collapse: collapse; min-width: 1320px; }
.airbnb-table-wrap th,
.airbnb-table-wrap td { padding: 10px 12px; border-bottom: 1px solid rgba(166,204,255,.12); text-align: left; white-space: nowrap; font-size: 12px; }
.airbnb-table-wrap th { position: sticky; top: 0; z-index: 1; background: #102744; color: #9ec4f5; text-transform: uppercase; font-size: 11px; }
.airbnb-status { display: inline-flex; align-items: center; min-height: 26px; border-radius: 999px; border: 1px solid rgba(80,132,220,.4); padding: 0 9px; color: #dcecff; background: rgba(23,116,255,.14); font-weight: 900; }
.airbnb-status.pagada-correctamente { color: #a6ffd2; border-color: rgba(20,220,145,.55); background: rgba(20,220,145,.12); }
.airbnb-status.diferencia-centesimal,
.airbnb-status.pago-mensual-en-curso { color: #ffe7a4; border-color: rgba(255,223,85,.55); background: rgba(255,223,85,.10); }
.airbnb-status.airbnb-pago-de-menos,
.airbnb-status.sin-registro-en-caja,
.airbnb-status.no-encontrada-en-ubikos,
.airbnb-status.registrado-en-caja-no-encontrado-en-airbnb { color: #ffd9e4; border-color: rgba(255,91,135,.60); background: rgba(130,28,58,.28); }
.airbnb-history-list { display: grid; gap: 12px; }
.airbnb-history-list article { padding: 14px; display: grid; gap: 8px; }
.airbnb-history-list span { width: fit-content; border-radius: 999px; padding: 4px 8px; color: #7dfce6; background: rgba(33,231,255,.10); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.airbnb-history-list strong { color: #fff; }
.airbnb-history-list small,
.airbnb-history-list p { margin: 0; color: #a9c4e4; }
.airbnb-history-list div { display: flex; gap: 8px; flex-wrap: wrap; }
.airbnb-detail-drawer { position: fixed; top: 0; right: 0; z-index: 120; width: min(520px, 100vw); height: 100vh; overflow: auto; padding: 22px; border-left: 1px solid rgba(33,231,255,.34); background: linear-gradient(180deg, rgba(5,19,38,.98), rgba(4,13,27,.98)); box-shadow: -22px 0 60px rgba(0,0,0,.42); }
.airbnb-detail-drawer > button { float: right; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; width: 34px; height: 34px; cursor: pointer; }
.airbnb-detail-drawer h2 { margin: 18px 0; color: #fff; }
.airbnb-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.airbnb-detail-grid p,
.airbnb-detail-drawer section,
.airbnb-timeline { border: 1px solid rgba(80,132,220,.28); border-radius: 8px; background: rgba(8,20,38,.80); padding: 12px; }
.airbnb-detail-grid span { display: block; color: #9fb7d5; font-size: 11px; text-transform: uppercase; font-weight: 900; }
.airbnb-detail-grid strong { color: #fff; }
.airbnb-timeline { margin: 14px 0; display: grid; gap: 8px; color: #dcecff; }
.airbnb-detail-drawer section { margin-top: 12px; }
.airbnb-detail-drawer h3 { margin: 0 0 8px; color: #7dfce6; font-size: 14px; }
.airbnb-detail-drawer section p { margin: 7px 0; color: #cfe0f7; }
@media (max-width: 1100px) {
  .airbnb-upload-grid,
  .airbnb-filter-row { grid-template-columns: 1fr; }
  .airbnb-hero-controls { width: 100%; }
}

/* Supplier Intelligence */
.supplier-module { display: grid; gap: 16px; min-height: 100%; min-width: 0; color: var(--text); }
.supplier-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid rgba(66, 184, 255, .28); border-radius: 8px; background: linear-gradient(135deg, rgba(8, 24, 47, .96), rgba(6, 18, 34, .92) 62%, rgba(11, 42, 48, .84)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 50px rgba(0,0,0,.22); }
.supplier-kicker, .supplier-panel-head span, .nexi-copy span, .supplier-report-ready header span { display: block; color: #75f6ff; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.supplier-hero h1 { margin: 6px 0 8px; color: #fff; font-size: clamp(28px, 3vw, 44px); line-height: 1; }
.supplier-hero p { margin: 0; max-width: 720px; color: #b9cbe6; font-size: 15px; }
.supplier-hero-meta { display: grid; gap: 10px; min-width: min(100%, 310px); }
.supplier-hero-meta label { display: grid; gap: 6px; }
.supplier-hero-meta label span { color: #9fb7d5; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.supplier-hero-meta select, .supplier-question textarea, .supplier-chat input { width: 100%; border: 1px solid rgba(103, 185, 255, .34); border-radius: 8px; background: rgba(4, 15, 30, .82); color: #f4fbff; outline: 0; }
.supplier-hero-meta select { min-height: 42px; padding: 0 12px; }
.supplier-hero-meta strong { color: #9dffef; font-size: 12px; text-align: right; }
.supplier-kpis { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 10px; }
.supplier-kpis article, .supplier-panel, .supplier-report-section, .supplier-report-ready header { border: 1px solid rgba(87, 164, 255, .25); border-radius: 8px; background: linear-gradient(180deg, rgba(8, 25, 47, .94), rgba(5, 15, 29, .94)); }
.supplier-kpis article { padding: 12px; min-height: 76px; }
.supplier-kpis span, .supplier-savings-grid span { display: block; color: #91a8c8; font-size: 11px; line-height: 1.3; text-transform: uppercase; font-weight: 800; }
.supplier-kpis strong, .supplier-savings-grid strong { display: block; margin-top: 8px; color: #fff; font-size: 17px; line-height: 1.15; overflow-wrap: anywhere; }
.supplier-learning-strip { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(420px, 1.2fr) auto; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid rgba(83,255,169,.28); border-radius: 8px; background: rgba(5, 28, 35, .88); }
.supplier-learning-strip > div > span { display: block; color: #53ffa9; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.supplier-learning-strip > div > strong { display: block; margin-top: 3px; color: #fff; font-size: 16px; }
.supplier-learning-strip > div > small { display: block; margin-top: 4px; color: #9fb7d5; line-height: 1.35; }
.supplier-learning-strip dl { display: grid; grid-template-columns: repeat(4, minmax(80px, 1fr)); gap: 8px; margin: 0; }
.supplier-learning-strip dl div { padding: 9px 10px; border-left: 2px solid rgba(83,255,169,.44); background: rgba(3, 13, 27, .48); }
.supplier-learning-strip dt { color: #91a8c8; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.supplier-learning-strip dd { margin: 4px 0 0; color: #fff; font-size: 17px; font-weight: 900; }
.supplier-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(330px, .72fr); gap: 16px; align-items: start; }
.supplier-grid > *, .supplier-panel, .supplier-report, .supplier-report-ready, .supplier-report-section { min-width: 0; }
.supplier-panel { padding: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 20px 55px rgba(0,0,0,.22); }
.supplier-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.supplier-panel-head h2, .nexi-copy h2, .supplier-report-ready h2, .supplier-report-section h3 { margin: 4px 0 0; color: #fff; }
.supplier-panel-head b { display: grid; place-items: center; min-width: 70px; min-height: 34px; border: 1px solid rgba(117,246,255,.4); border-radius: 8px; color: #75f6ff; background: rgba(9, 45, 63, .5); }
.supplier-dropzone { display: grid; place-items: center; gap: 8px; min-height: 156px; padding: 16px; border: 1px dashed rgba(117, 246, 255, .42); border-radius: 8px; background: radial-gradient(circle at 50% 0, rgba(36, 108, 255, .20), transparent 58%), rgba(5, 19, 36, .72); text-align: center; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.supplier-dropzone.dragging { border-color: #75f6ff; box-shadow: 0 0 30px rgba(32, 221, 255, .22); transform: translateY(-1px); }
.supplier-dropzone strong { color: #fff; }
.supplier-dropzone p { margin: 0; color: #9fb7d5; }
.supplier-drop-action { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(125,252,230,.48); border-radius: 8px; padding: 10px 14px; color: #06111f; background: linear-gradient(135deg, #7dfce6, #4da3ff); font-weight: 900; cursor: pointer; }
.supplier-drop-action svg, .supplier-run svg, .supplier-chat button svg, .supplier-empty-report svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.supplier-slots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; margin: 14px 0; }
.supplier-slot { display: grid; grid-template-columns: 36px minmax(0, 1fr) 28px; gap: 8px; align-items: center; min-height: 70px; padding: 10px; border: 1px solid rgba(117, 158, 210, .25); border-radius: 8px; background: rgba(3, 13, 27, .62); }
.supplier-slot-index { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(77,163,255,.12); color: #8fe8ff; font-size: 11px; font-weight: 900; }
.supplier-slot strong { display: block; color: #eef7ff; font-size: 12px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.supplier-slot small { display: block; margin-top: 4px; color: #839bbd; font-size: 11px; text-transform: capitalize; }
.supplier-slot em { justify-self: end; color: #426280; font-size: 10px; font-style: normal; font-weight: 900; }
.supplier-slot button { width: 28px; height: 28px; border: 1px solid rgba(255,111,111,.38); border-radius: 8px; background: rgba(82, 20, 26, .75); color: #ff9d9d; cursor: pointer; }
.supplier-slot.is-uploaded { border-color: rgba(125,252,230,.45); background: rgba(7, 38, 48, .68); }
.supplier-slot.is-analyzing { border-color: rgba(255,216,102,.55); animation: supplierPulse 1.2s ease-in-out infinite; }
.supplier-slot.is-completed { border-color: rgba(47, 232, 159, .56); }
.supplier-slot.is-error { border-color: rgba(255,111,111,.65); }
.supplier-question { display: grid; gap: 7px; }
.supplier-question span { color: #9fb7d5; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.supplier-question textarea { min-height: 94px; padding: 12px; resize: vertical; }
.supplier-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.supplier-run { display: inline-flex; align-items: center; gap: 8px; }
.supplier-feedback { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; color: #bfefff; background: rgba(29,124,255,.12); border: 1px solid rgba(29,124,255,.3); }
.supplier-feedback[data-type="error"] { color: #ffd0d0; background: rgba(112, 28, 36, .28); border-color: rgba(255,111,111,.42); }
.supplier-feedback[data-type="ok"] { color: #caffef; background: rgba(20, 140, 96, .18); border-color: rgba(47,232,159,.38); }
.supplier-nexi-panel { position: sticky; top: 12px; display: grid; gap: 14px; }
.nexi-stage { position: relative; display: grid; place-items: center; min-height: 218px; overflow: hidden; border: 1px solid rgba(117,246,255,.18); border-radius: 8px; background: radial-gradient(circle at 50% 40%, rgba(117,246,255,.18), transparent 45%), rgba(4, 15, 30, .62); }
.nexi-orbit { position: absolute; width: 170px; height: 170px; border: 1px solid rgba(117,246,255,.22); border-radius: 50%; animation: nexiOrbit 6s linear infinite; }
.nexi-orbit::before, .nexi-orbit::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #75f6ff; box-shadow: 0 0 18px #75f6ff; }
.nexi-orbit::before { top: 12px; left: 28px; }
.nexi-orbit::after { right: 18px; bottom: 30px; background: #53ffa9; box-shadow: 0 0 18px #53ffa9; }
.nexi-robot { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; animation: nexiFloat 3.6s ease-in-out infinite; }
.nexi-antenna { width: 36px; height: 20px; border-top: 2px solid #75f6ff; border-radius: 50%; }
.nexi-head { display: flex; align-items: center; justify-content: center; gap: 22px; width: 118px; height: 78px; border: 1px solid rgba(117,246,255,.62); border-radius: 24px 24px 18px 18px; background: linear-gradient(145deg, #d9f8ff, #7cc9f6 45%, #284f86); box-shadow: 0 0 34px rgba(117,246,255,.25); }
.nexi-head i { width: 16px; height: 16px; border-radius: 50%; background: #041426; box-shadow: 0 0 0 5px rgba(4,20,38,.12), 0 0 16px #75f6ff inset; }
.nexi-body { display: flex; gap: 7px; align-items: center; justify-content: center; width: 92px; height: 72px; border: 1px solid rgba(117,246,255,.44); border-radius: 18px; background: linear-gradient(180deg, #335c91, #0b213e); }
.nexi-body b { width: 11px; height: 28px; border-radius: 8px; background: linear-gradient(180deg, #75f6ff, #347dff); }
.nexi-stage[data-nexi-stage="thinking"] .nexi-head i, .nexi-stage[data-nexi-stage="scanning"] .nexi-head i { transform: scaleY(.55); }
.nexi-stage[data-nexi-stage="comparing"] .nexi-body b:nth-child(2), .nexi-stage[data-nexi-stage="calculating"] .nexi-body b:nth-child(3) { background: linear-gradient(180deg, #ffd866, #ff8a45); }
.nexi-copy p { margin: 8px 0 0; color: #b8c9e2; line-height: 1.45; }
.nexi-typing { display: flex; gap: 5px; margin-top: 10px; }
.nexi-typing i { width: 7px; height: 7px; border-radius: 50%; background: #75f6ff; animation: supplierDots .9s ease-in-out infinite; }
.nexi-typing i:nth-child(2) { animation-delay: .12s; }
.nexi-typing i:nth-child(3) { animation-delay: .24s; }
.supplier-chat { border: 1px solid rgba(87,164,255,.22); border-radius: 8px; overflow: hidden; background: rgba(3, 13, 27, .7); }
.supplier-chat-messages { display: flex; flex-direction: column; gap: 9px; height: 250px; overflow: auto; padding: 12px; }
.supplier-chat-messages article { max-width: 88%; border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.42; }
.supplier-chat-messages .assistant { align-self: flex-start; color: #d8efff; background: rgba(40, 106, 166, .24); border: 1px solid rgba(117,246,255,.18); }
.supplier-chat-messages .user { align-self: flex-end; color: #051428; background: linear-gradient(135deg, #7dfce6, #7fb8ff); font-weight: 700; }
.supplier-chat form { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; padding: 10px; border-top: 1px solid rgba(87,164,255,.18); }
.supplier-chat input { min-height: 42px; padding: 0 12px; }
.supplier-chat button { border: 1px solid rgba(125,252,230,.4); border-radius: 8px; background: rgba(19, 88, 120, .8); color: #7dfce6; cursor: pointer; }
.supplier-report { min-height: 220px; }
.supplier-empty-report { display: grid; place-items: center; gap: 8px; min-height: 220px; border: 1px solid rgba(87,164,255,.22); border-radius: 8px; background: rgba(5, 17, 33, .66); text-align: center; padding: 24px; }
.supplier-empty-report svg { width: 42px; height: 42px; stroke: #75f6ff; }
.supplier-empty-report h2 { margin: 0; color: #fff; }
.supplier-empty-report p { max-width: 620px; margin: 0; color: #9fb7d5; }
.supplier-report-ready { display: grid; gap: 14px; }
.supplier-report-ready header, .supplier-report-section { padding: 16px; }
.supplier-executive-header { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: stretch; }
.supplier-executive-header aside { border-left: 1px solid rgba(117,246,255,.22); padding-left: 18px; display: grid; gap: 8px; align-content: center; }
.supplier-executive-header aside small { color: #75f6ff; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.supplier-executive-header aside strong { color: #fff; font-size: 20px; line-height: 1.2; }
.supplier-executive-header aside p { margin: 0; }
.supplier-report-ready header p, .supplier-report-section p { color: #bdd0ea; line-height: 1.5; }
.supplier-savings-grid { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 10px; margin: 12px 0; }
.supplier-savings-grid article { padding: 12px; border: 1px solid rgba(117,246,255,.18); border-radius: 8px; background: rgba(3, 13, 27, .55); }
.supplier-evidence-list { display: grid; gap: 10px; margin-top: 12px; }
.supplier-evidence-list article { display: grid; grid-template-columns: minmax(190px, .32fr) minmax(0, 1fr) 150px; gap: 12px; align-items: start; border: 1px solid rgba(117,246,255,.16); border-radius: 8px; background: rgba(3, 13, 27, .5); padding: 12px; }
.supplier-evidence-list strong { display: flex; gap: 9px; color: #fff; line-height: 1.35; }
.supplier-evidence-list strong span { display: inline-grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 8px; background: rgba(77,163,255,.18); color: #75f6ff; }
.supplier-evidence-list p { margin: 0 0 5px; color: #bdd0ea; }
.supplier-evidence-list b { color: #f4fbff; }
.supplier-evidence-list em { justify-self: end; border: 1px solid rgba(117,246,255,.18); border-radius: 999px; padding: 7px 9px; color: #dff8ff; font-style: normal; font-size: 12px; font-weight: 900; background: rgba(77,163,255,.12); white-space: nowrap; }
.supplier-evidence-list em.positive { color: #9dffbf; background: rgba(47,232,159,.12); }
.supplier-evidence-list em.pending { color: #ffe59b; background: rgba(255,216,102,.1); }
.supplier-table-wrap { overflow: auto; max-width: 100%; border: 1px solid rgba(87,164,255,.18); border-radius: 8px; }
.supplier-table-wrap table { width: 100%; min-width: 1540px; border-collapse: collapse; }
.supplier-table-wrap th, .supplier-table-wrap td { padding: 11px 12px; border-bottom: 1px solid rgba(87,164,255,.14); text-align: left; font-size: 12px; }
.supplier-table-wrap th { color: #75f6ff; background: rgba(4, 18, 35, .92); text-transform: uppercase; }
.supplier-table-wrap td { color: #dcecff; }
.supplier-table-wrap td small { display: block; margin-top: 5px; color: #91a8c8; line-height: 1.35; }
.risk-pill, .recommendation-pill { display: inline-flex; border-radius: 999px; padding: 5px 8px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.risk-low { color: #9dffbf; background: rgba(47,232,159,.12); }
.risk-medium { color: #ffe59b; background: rgba(255,216,102,.12); }
.risk-high { color: #ffb1b1; background: rgba(255,111,111,.14); }
.recommendation-pill { color: #bfe9ff; background: rgba(77,163,255,.15); }
.rec-switch-supplier { color: #9dffbf; background: rgba(47,232,159,.14); }
.rec-renegotiate-with-current-supplier { color: #ffe59b; background: rgba(255,216,102,.12); }
.rec-keep-current-supplier { color: #a8c4ff; background: rgba(104,126,255,.14); }
.supplier-decision-actions { display: grid; grid-template-columns: repeat(2, minmax(68px, 1fr)); gap: 6px; min-width: 160px; }
.supplier-decision-actions button, .supplier-decision-recorded button { min-height: 30px; border: 1px solid rgba(117,246,255,.25); border-radius: 6px; background: rgba(24, 66, 104, .55); color: #dff8ff; font-size: 11px; font-weight: 800; cursor: pointer; }
.supplier-decision-actions button[data-supplier-decision="accepted"], .supplier-decision-actions button[data-supplier-decision="pilot"] { border-color: rgba(83,255,169,.35); color: #aaffd0; background: rgba(24, 105, 75, .24); }
.supplier-decision-actions button[data-supplier-decision="rejected"] { border-color: rgba(255,111,111,.36); color: #ffb1b1; background: rgba(112, 28, 36, .24); }
.supplier-decision-actions button:disabled, .supplier-decision-recorded button:disabled { opacity: .55; cursor: wait; }
.supplier-decision-recorded { display: grid; gap: 7px; min-width: 150px; }
.supplier-decision-recorded strong { color: #9dffbf; text-transform: capitalize; }
.supplier-scorecards { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 10px; }
.supplier-scorecards article { display: grid; gap: 9px; padding: 12px; border: 1px solid rgba(117,246,255,.18); border-radius: 8px; background: rgba(3, 13, 27, .55); }
.supplier-scorecards strong { color: #fff; }
.supplier-scorecards p { display: grid; grid-template-columns: 120px minmax(80px, 1fr) 52px; gap: 8px; align-items: center; margin: 0; }
.supplier-scorecards span { color: #9fb7d5; font-size: 11px; text-transform: capitalize; }
.supplier-scorecards b { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #4da3ff, #7dfce6); }
.supplier-scorecards em { color: #dff8ff; font-size: 11px; font-style: normal; text-align: right; }
.supplier-scorecards small { color: #8fb2d7; font-size: 11px; line-height: 1.45; }
.supplier-report-columns { display: grid; grid-template-columns: .8fr 1.2fr; gap: 14px; }
.supplier-layer-list { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 10px; }
.supplier-layer-list article { border: 1px solid rgba(117,246,255,.16); border-radius: 8px; background: rgba(3, 13, 27, .5); padding: 12px; }
.supplier-layer-list strong { color: #fff; }
.supplier-layer-list p { margin: 7px 0; }
.supplier-layer-list small { color: #91a8c8; line-height: 1.35; }
.supplier-risk-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.supplier-risk-matrix div { display: grid; gap: 8px; place-items: center; min-height: 88px; border: 1px solid rgba(117,246,255,.18); border-radius: 8px; background: rgba(3, 13, 27, .55); }
.supplier-risk-matrix strong { color: #dff8ff; font-size: 12px; }
.supplier-risk-matrix span { color: #75f6ff; font-size: 28px; font-weight: 900; }
.supplier-ai-recommendation article { padding: 12px; border: 1px solid rgba(117,246,255,.18); border-radius: 8px; background: rgba(3, 13, 27, .55); }
.supplier-ai-recommendation strong { color: #7dfce6; }
.supplier-ai-recommendation small { color: #ffcf9d; }
.supplier-sources { display: flex; gap: 8px; flex-wrap: wrap; }
.supplier-sources a, .supplier-sources span { border: 1px solid rgba(117,246,255,.24); border-radius: 8px; padding: 8px 10px; color: #c9f7ff; background: rgba(4, 18, 35, .72); text-decoration: none; font-size: 12px; }
.supplier-sources a { display: grid; gap: 3px; min-width: 180px; }
.supplier-sources a small { color: #8fb2d7; font-size: 11px; }
.supplier-product-source { display: inline-flex; margin-top: 6px; color: #75f6ff; font-size: 11px; text-decoration: none; border: 1px solid rgba(117,246,255,.24); border-radius: 999px; padding: 3px 7px; background: rgba(11, 49, 80, .42); }
@keyframes supplierPulse { 50% { box-shadow: 0 0 22px rgba(255,216,102,.18); transform: translateY(-1px); } }
@keyframes nexiFloat { 50% { transform: translateY(-8px); } }
@keyframes nexiOrbit { to { transform: rotate(360deg); } }
@keyframes supplierDots { 50% { opacity: .35; transform: translateY(-3px); } }
@media (max-width: 1180px) {
  .supplier-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .supplier-learning-strip { grid-template-columns: 1fr; }
  .supplier-grid, .supplier-report-columns, .supplier-executive-header, .supplier-layer-list { grid-template-columns: 1fr; }
  .supplier-executive-header aside { border-left: 0; border-top: 1px solid rgba(117,246,255,.22); padding: 16px 0 0; }
  .supplier-nexi-panel { position: static; }
}
@media (max-width: 760px) {
  .supplier-hero { align-items: stretch; flex-direction: column; }
  .supplier-hero-meta { min-width: 0; }
  .supplier-hero-meta strong { text-align: left; }
  .supplier-kpis, .supplier-slots, .supplier-savings-grid, .supplier-scorecards { grid-template-columns: 1fr; }
  .supplier-learning-strip dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supplier-evidence-list article { grid-template-columns: 1fr; }
  .supplier-evidence-list em { justify-self: start; }
  .supplier-risk-matrix { grid-template-columns: 1fr; }
}

/* Revenue Intelligence v1: cache-driven BI panel */
.revenue-intel-shell { display: grid; gap: 18px; }
.revenue-intel-head { display: flex; justify-content: space-between; gap: 18px; align-items: stretch; }
.revenue-status-card {
  min-width: 230px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px 18px;
  border: 1px solid rgba(33, 231, 255, .32);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(5, 22, 46, .92), rgba(4, 14, 30, .96));
}
.revenue-status-card span, .revenue-status-card small { color: #9bb8d8; font-size: 12px; }
.revenue-status-card strong { color: #ffffff; font-size: 18px; }
.revenue-filter-panel {
  display: grid;
  grid-template-columns: minmax(270px, 1.15fr) minmax(330px, 1fr) minmax(330px, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid rgba(38, 127, 255, .26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 21, 44, .96), rgba(3, 13, 29, .98)),
    radial-gradient(circle at 20% 0, rgba(33, 231, 255, .12), transparent 34%);
  box-shadow: inset 0 0 0 1px rgba(117, 183, 255, .05), 0 18px 48px rgba(0, 0, 0, .20);
}
.revenue-filter-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(64, 139, 230, .24);
  border-radius: 8px;
  background: rgba(3, 16, 34, .68);
}
.revenue-filter-group.primary { grid-template-columns: 1fr; }
.revenue-filter-group.custom-range {
  border-color: rgba(33, 231, 255, .20);
  background: rgba(2, 22, 38, .58);
}
.revenue-filter-panel label { display: grid; gap: 7px; }
.revenue-filter-panel label span { color: #8fb3df; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.revenue-filter-panel select,
.revenue-filter-panel input {
  min-height: 44px;
  border: 1px solid rgba(74, 144, 226, .32);
  border-radius: 8px;
  padding: 0 12px;
  color: #eff8ff;
  background: linear-gradient(180deg, rgba(4, 18, 39, .98), rgba(2, 9, 22, .98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}
.revenue-filter-panel select:focus,
.revenue-filter-panel input:focus {
  outline: 0;
  border-color: rgba(33, 231, 255, .72);
  box-shadow: 0 0 0 3px rgba(33, 231, 255, .10), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.revenue-filter-panel select {
  color-scheme: dark;
}
.revenue-filter-panel select option {
  color: #eff8ff;
  background: #061735;
}
.revenue-apply-button {
  align-self: stretch;
  display: inline-grid;
  place-items: center;
  min-width: 88px;
  padding: 0 18px;
  text-align: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #1677ff, #0b56e9 58%, #16d5ff);
  box-shadow: 0 14px 34px rgba(22, 119, 255, .34), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.revenue-warning {
  border: 1px solid rgba(255, 198, 41, .4);
  border-radius: 8px;
  padding: 12px 14px;
  color: #ffe29a;
  background: rgba(124, 85, 0, .16);
}
.revenue-kpi-grid { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid rgba(38, 127, 255, .26); border-radius: 8px; overflow: hidden; background: rgba(5, 18, 35, .78); }
.revenue-kpi-grid article { min-height: 118px; display: grid; align-content: center; gap: 8px; padding: 18px; border-right: 1px solid rgba(80, 150, 230, .18); }
.revenue-kpi-grid article:last-child { border-right: 0; }
.revenue-kpi-grid span { color: #9ec4f5; font-size: 12px; }
.revenue-kpi-grid strong { color: #ffffff; font-size: clamp(20px, 2vw, 30px); line-height: 1.05; }
.revenue-kpi-grid small { color: #8aa6c5; }
.revenue-kpi-grid article.positive strong { color: #5dffbb; }
.revenue-kpi-grid article.negative strong { color: #ff7b91; }
.revenue-chart-panel,
.revenue-summary-panel {
  border: 1px solid rgba(38, 127, 255, .28);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(6, 24, 49, .92), rgba(4, 13, 27, .95));
}
.revenue-chart-panel {
  color: #172033;
  border-color: rgba(210, 219, 232, .92);
  background: linear-gradient(180deg, #ffffff, #f7f9fd);
  box-shadow: 0 18px 42px rgba(3, 12, 27, .22);
}
.revenue-chart-panel .graphic-section-title {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f7;
}
.revenue-chart-panel .graphic-section-title h3 {
  margin: 0;
  color: #2f3a4d;
  font-size: 15px;
  font-weight: 900;
}
.revenue-chart-panel .graphic-section-title p {
  margin: 2px 0 0;
  color: #8a95a6;
  font-size: 11px;
}
.revenue-kpi-chip {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 34px;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(145deg, #ff8b9c, #ffb6ba);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(255, 139, 156, .24);
}
.revenue-expand-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  color: #5e6878;
  background: #f5f7fb;
  font-weight: 900;
  cursor: pointer;
}
.revenue-segment-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-height: 20px;
  margin-top: 12px;
  color: #667085;
  font-size: 11px;
}
.revenue-segment-legend span { display: inline-flex; align-items: center; gap: 6px; }
.revenue-segment-legend i { width: 9px; height: 9px; border-radius: 2px; }
.revenue-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 14px;
  align-items: end;
  min-height: 340px;
  margin-top: 18px;
  padding: 22px 16px 14px;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  background:
    linear-gradient(#edf1f7 1px, transparent 1px) 0 0 / 100% 20%,
    #ffffff;
}
.revenue-bar-row {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(190px, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  min-height: 290px;
  padding: 12px 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
.revenue-bar-row::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  pointer-events: none;
}
.revenue-period {
  position: relative;
  color: #697386;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}
.revenue-bar-track {
  position: relative;
  align-self: stretch;
  min-height: 190px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(114, 175, 255, .18);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, .92), rgba(241, 245, 249, .98)),
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 100% 25%;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .72);
}
.revenue-bar-track i {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  display: block;
  height: var(--bar-height, 4%);
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, #a8fff6 0%, #21e7ff 34%, #126cff 100%);
  box-shadow: 0 0 28px rgba(33, 231, 255, .34), inset 0 1px 0 rgba(255, 255, 255, .36);
}
.revenue-stack-fill {
  display: flex !important;
  flex-direction: column-reverse;
  overflow: hidden;
}
.revenue-stack-fill span {
  display: block;
  width: 100%;
  min-height: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.revenue-bar-row.positive .revenue-bar-track i { background: linear-gradient(180deg, #a8fff6 0%, #5dffbb 36%, #0e8cff 100%); }
.revenue-bar-row.negative .revenue-bar-track i { background: linear-gradient(180deg, #ffd166 0%, #ff7a45 42%, #ff315f 100%); }
.revenue-bar-pct {
  position: absolute;
  left: 50%;
  bottom: calc(var(--bar-height, 4%) + 8px);
  transform: translateX(-50%);
  min-width: 54px;
  padding: 4px 8px;
  border: 1px solid rgba(168, 255, 246, .28);
  border-radius: 999px;
  color: #92542a;
  background: rgba(255, 255, 255, .86);
  font-size: 11px;
  line-height: 1;
  text-align: center;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .10);
  z-index: 2;
}
.revenue-bar-row.positive .revenue-bar-pct { color: #5dffbb; border-color: rgba(93, 255, 187, .32); }
.revenue-bar-row.negative .revenue-bar-pct { color: #ffb1bd; border-color: rgba(255, 80, 116, .34); }
.revenue-bar-row strong {
  position: relative;
  color: #2f3a4d;
  text-align: center;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}
.revenue-summary-panel { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.revenue-summary-panel i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #21e7ff; background: rgba(33, 231, 255, .12); }
.revenue-summary-panel h3 { margin: 0 0 6px; color: #ffffff; }
.revenue-summary-panel p { margin: 0; color: #b7cce4; line-height: 1.65; }
.revenue-empty { margin: 0; color: #91a8c8; }

@media (max-width: 1060px) {
  .revenue-intel-head, .revenue-filter-panel { grid-template-columns: 1fr; display: grid; }
  .revenue-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .revenue-apply-button { min-height: 46px; }
}

@media (max-width: 680px) {
  .revenue-kpi-grid { grid-template-columns: 1fr; }
  .revenue-filter-group { grid-template-columns: 1fr; }
  .revenue-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; }
  .revenue-bar-row { min-height: 250px; }
}

/* Revenue Intelligence executive chart v2 */
.revenue-chart-panel {
  padding: 18px;
  border: 1px solid rgba(26, 91, 178, .58);
  border-radius: 8px;
  color: #dce8ff;
  background:
    radial-gradient(circle at 50% 12%, rgba(53, 88, 170, .18), transparent 38%),
    linear-gradient(180deg, #061735 0%, #041026 100%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(106, 160, 255, .06);
}
.revenue-chart-panel .graphic-section-title {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(29, 84, 160, .40);
}
.revenue-chart-panel .graphic-section-title h3 { margin: 0; color: #f7fbff; font-size: 22px; font-weight: 950; }
.revenue-chart-panel .graphic-section-title p { margin: 4px 0 0; color: #aebdde; }
.revenue-kpi-chip {
  display: inline-grid;
  place-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  color: #a88cff;
  background: linear-gradient(145deg, rgba(61, 43, 160, .98), rgba(34, 28, 92, .98));
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}
.revenue-chart-toolbar {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  border: 1px solid rgba(36, 90, 166, .58);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(3, 15, 36, .76);
}
.revenue-chart-toolbar button {
  min-height: 42px;
  border: 0;
  border-right: 1px solid rgba(36, 90, 166, .38);
  color: #b8c4df;
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}
.revenue-chart-toolbar button:last-child { border-right: 0; }
.revenue-chart-toolbar button.active {
  color: #9fb6ff;
  background: linear-gradient(180deg, rgba(24, 75, 220, .42), rgba(7, 26, 69, .9));
  box-shadow: inset 0 -2px 0 #2477ff;
}
.revenue-expand-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(36, 90, 166, .58);
  border-radius: 8px;
  color: #b8c4df;
  background: rgba(3, 15, 36, .76);
  font-weight: 950;
}
.revenue-segment-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 20px 0 10px;
  color: #b8c4df;
  font-size: 13px;
}
.revenue-segment-legend span { display: inline-flex; align-items: center; gap: 8px; }
.revenue-segment-legend i { width: 11px; height: 11px; border-radius: 50%; }
.revenue-chart-stage { position: relative; min-height: 365px; padding: 18px 18px 0 52px; }
.revenue-axis-unit { position: absolute; left: 0; top: 8px; color: #b8c4df; font-size: 12px; font-weight: 900; }
.revenue-bars {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 34px;
  align-items: end;
  min-height: 330px;
  padding: 34px 0 0;
  border: 0;
  border-bottom: 1px solid rgba(100, 138, 190, .34);
  border-radius: 0;
  background: linear-gradient(rgba(104, 138, 188, .16) 1px, transparent 1px) 0 34px / 100% 22%;
}
.revenue-bar-row {
  position: relative;
  display: grid;
  grid-template-rows: 44px minmax(220px, 1fr) 34px;
  gap: 8px;
  min-height: 310px;
  padding: 0 8px;
  border: 0;
  background: transparent;
}
.revenue-bar-row::before { display: none; }
.revenue-bar-row strong { align-self: end; color: #eaf2ff; text-align: center; font-size: 15px; font-weight: 950; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.revenue-period { color: #aebdde; text-align: center; font-weight: 950; }
.revenue-bar-track {
  position: relative;
  align-self: end;
  height: 100%;
  min-height: 220px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.revenue-stack-fill {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  display: flex !important;
  flex-direction: column-reverse;
  height: var(--bar-height, 4%);
  overflow: hidden;
  border-radius: 8px 8px 2px 2px;
  box-shadow: 0 0 28px rgba(239, 75, 129, .24), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.revenue-stack-fill span { display: block; min-height: 2px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24); }
.revenue-split-fill {
  position: absolute;
  inset: 0;
  display: none;
  align-items: end;
  justify-content: center;
  gap: 5px;
}
.revenue-split-fill span { width: 12px; min-height: 2px; border-radius: 5px 5px 1px 1px; }
.revenue-bar-pct {
  position: absolute;
  left: 50%;
  bottom: calc(var(--bar-height, 4%) + 12px);
  z-index: 4;
  transform: translateX(-50%);
  min-width: 64px;
  padding: 5px 9px;
  border: 1px solid rgba(0, 214, 170, .38);
  border-radius: 999px;
  color: #3cffc6;
  background: rgba(4, 20, 42, .90);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}
.revenue-bar-row.negative .revenue-bar-pct { color: #ff5d7a; border-color: rgba(255, 93, 122, .42); }
.revenue-chart-stage[data-chart-mode="hotel-split"] .revenue-stack-fill { display: none !important; }
.revenue-chart-stage[data-chart-mode="hotel-split"] .revenue-split-fill { display: flex; }
.revenue-chart-stage[data-chart-mode="yoy"] .revenue-stack-fill { opacity: .76; }
.revenue-performance-strip {
  width: min(820px, 80%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 14px auto 0;
  border: 1px solid rgba(36, 90, 166, .45);
  border-radius: 10px;
  background: rgba(3, 15, 36, .58);
}
.revenue-performance-strip article { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-right: 1px solid rgba(36, 90, 166, .34); }
.revenue-performance-strip article:last-child { border-right: 0; }
.ri-badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(124, 58, 237, .18); color: #8b5cf6; font-weight: 950; }
.ri-badge.up { color: #00d6aa; background: rgba(0, 214, 170, .12); }
.ri-badge.down { color: #ff5d7a; background: rgba(255, 93, 122, .12); }
.revenue-performance-strip small { display: block; color: #93a4c6; }
.revenue-performance-strip strong { display: block; color: #eaf2ff; }
.revenue-performance-strip em { color: #aebdde; font-style: normal; font-size: 12px; }
.revenue-analysis-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 8px; margin-top: 8px; }
.revenue-analysis-card {
  min-height: 210px;
  padding: 16px 18px;
  border: 1px solid rgba(26, 91, 178, .48);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(4, 18, 44, .94), rgba(3, 13, 32, .98));
}
.revenue-analysis-card h3 { margin: 0 0 4px; color: #f7fbff; font-size: 16px; }
.revenue-analysis-card > small { display: block; margin-bottom: 14px; color: #93a4c6; }
.ri-contribution-row { display: grid; grid-template-columns: minmax(160px, 1fr) 110px 58px minmax(120px, 1fr); gap: 12px; align-items: center; margin: 10px 0; color: #aebdde; font-size: 13px; }
.ri-contribution-row.single { grid-template-columns: minmax(180px, 1fr) 150px; max-width: 520px; }
.ri-contribution-row span { display: inline-flex; align-items: center; gap: 8px; }
.ri-contribution-row i { width: 9px; height: 9px; border-radius: 50%; }
.ri-contribution-row strong { color: #dce8ff; text-align: right; }
.ri-contribution-row em { color: #aebdde; font-style: normal; text-align: right; }
.ri-contribution-row b { height: 8px; border-radius: 999px; background: rgba(32, 63, 112, .62); overflow: hidden; }
.ri-contribution-row u { display: block; height: 100%; border-radius: inherit; text-decoration: none; }
.ri-table-scroll {
  max-height: 340px;
  overflow: auto;
  padding-bottom: 4px;
  scrollbar-color: rgba(38, 127, 255, .9) rgba(6, 24, 49, .9);
  scrollbar-width: thin;
}
.revenue-analysis-card table { width: 100%; min-width: 540px; border-collapse: collapse; color: #aebdde; font-size: 13px; }
.revenue-analysis-card th, .revenue-analysis-card td { padding: 7px 8px; border-bottom: 1px solid rgba(51, 94, 156, .28); text-align: right; }
.revenue-analysis-card th:first-child, .revenue-analysis-card td:first-child { text-align: left; }
.revenue-analysis-card th { color: #93a4c6; font-weight: 850; }
.revenue-analysis-card .positive { color: #00d6aa; font-weight: 950; }
.revenue-analysis-card .negative { color: #ff5d7a; font-weight: 950; }

@media (max-width: 1100px) {
  .revenue-chart-panel .graphic-section-title { grid-template-columns: auto 1fr; }
  .revenue-chart-toolbar { grid-column: 1 / -1; }
  .revenue-analysis-grid, .revenue-performance-strip { grid-template-columns: 1fr; width: 100%; }
  .revenue-performance-strip article { border-right: 0; border-bottom: 1px solid rgba(36, 90, 166, .34); }
}

/* Revenue Intelligence bar refinement v70 */
.revenue-chart-toolbar {
  display: none !important;
}
.revenue-bars {
  grid-template-columns: repeat(auto-fit, minmax(76px, 108px));
  justify-content: center;
  gap: 14px;
  min-height: 330px;
  padding-top: 22px;
}
.revenue-bar-row {
  grid-template-rows: 58px minmax(220px, 1fr) 30px;
  gap: 6px;
  min-height: 308px;
  padding: 0 3px;
}
.revenue-bar-metrics {
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 4px;
  min-height: 58px;
}
.revenue-bar-row strong {
  align-self: auto;
  color: #eaf2ff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: none;
}
.revenue-bar-track {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 220px;
  overflow: visible;
}
.revenue-solid-fill {
  display: block;
  width: min(58px, 72%);
  height: var(--bar-height, 4%);
  min-height: 3px;
  border-radius: 7px 7px 2px 2px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .20), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.revenue-stack-fill,
.revenue-split-fill {
  display: none !important;
}
.revenue-bar-pct {
  position: static;
  transform: none;
  min-width: 62px;
  min-height: 22px;
  padding: 4px 8px;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 999px;
  background: rgba(4, 13, 28, .86);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}
.revenue-bar-pct.is-empty {
  visibility: hidden;
}
.revenue-bar-row.positive .revenue-bar-pct {
  color: #34d399;
  border-color: rgba(52, 211, 153, .36);
}
.revenue-bar-row.negative .revenue-bar-pct {
  color: #fb7185;
  border-color: rgba(251, 113, 133, .40);
}
.revenue-chart-stage[data-chart-mode="hotel-split"] .revenue-solid-fill,
.revenue-chart-stage[data-chart-mode="yoy"] .revenue-solid-fill {
  opacity: 1;
}

/* Ratios dashboard */
.ratios-shell {
  display: grid;
  gap: 16px;
  color: #dce8ff;
}
.ratios-status-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: center;
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(36, 90, 166, .48);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(6, 25, 54, .86), rgba(4, 14, 32, .95));
}
.ratios-status-card span {
  display: block;
  color: #8fb3df;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.ratios-status-card strong {
  display: block;
  margin-top: 5px;
  color: #f7fbff;
  font-size: 15px;
}
.ratios-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ratios-kpi-grid article {
  min-height: 154px;
  padding: 16px;
  border: 1px solid rgba(36, 90, 166, .46);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(4, 20, 46, .94), rgba(3, 12, 30, .98));
}
.ratios-kpi-grid article.positive { border-color: rgba(0, 214, 170, .28); }
.ratios-kpi-grid article.negative { border-color: rgba(251, 113, 133, .32); }
.ratios-kpi-grid span {
  color: #8fb3df;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.ratios-kpi-grid strong {
  display: block;
  margin: 8px 0;
  color: #f7fbff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}
.ratios-kpi-grid small,
.ratios-kpi-grid em,
.ratios-kpi-grid p {
  display: block;
  margin: 0;
  color: #aebdde;
  font-style: normal;
  font-size: 12px;
}
.ratios-kpi-grid article.positive small { color: #34d399; }
.ratios-kpi-grid article.negative small { color: #fb7185; }
.ratios-kpi-grid p { margin-top: 8px; color: #7f95bd; }
.ratios-warning,
.ratios-loading {
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, .32);
  border-radius: 8px;
  color: #f7d58d;
  background: rgba(92, 48, 6, .24);
  font-weight: 750;
}
.ratios-loading {
  border-color: rgba(38, 127, 255, .34);
  color: #9cc4ff;
  background: rgba(20, 72, 140, .18);
}
.ratios-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
  gap: 10px;
}
.ratios-chart-card {
  min-height: 310px;
  padding: 16px;
  border: 1px solid rgba(36, 90, 166, .46);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(4, 18, 44, .94), rgba(3, 13, 32, .98));
}
.ratios-chart-card.wide { grid-column: span 2; }
.ratios-chart-card h3 {
  margin: 0;
  color: #f7fbff;
  font-size: 17px;
  font-weight: 950;
}
.ratios-chart-card > p {
  margin: 4px 0 18px;
  color: #93a4c6;
  font-size: 13px;
}
.ratios-bars {
  --ratio-palette-0: #2f80ff;
  --ratio-palette-1: #19bf9d;
  --ratio-palette-2: #f97316;
  --ratio-palette-3: #8b5cf6;
  --ratio-palette-4: #f59e0b;
  --ratio-palette-5: #ec4899;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 225px;
  padding: 22px 8px 0;
  border-bottom: 1px solid rgba(100, 138, 190, .34);
  background: linear-gradient(rgba(104, 138, 188, .12) 1px, transparent 1px) 0 20px / 100% 25%;
}
.ratio-period-bars {
  display: grid;
  grid-template-rows: minmax(170px, 1fr) 28px;
  gap: 8px;
  min-width: 0;
}
.ratio-period-bars > div {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  min-height: 170px;
}
.ratio-period-bars strong {
  overflow: hidden;
  color: #aebdde;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}
.ratio-mini-bar {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  width: 24px;
  height: var(--bar-height, 2%);
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
  background: #2f80ff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.ratio-mini-bar.expenses { background: #fb7185; }
.ratio-mini-bar.operating_profit { background: #34d399; }
.ratio-mini-bar.margin { width: 44px; background: #8b5cf6; }
.ratio-mini-bar b {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 72px;
  color: #eaf2ff;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.ratio-period-bars.single.negative .ratio-mini-bar { background: #fb7185; }
.ratio-period-bars.single.positive .ratio-mini-bar { background: #34d399; }
.ratios-expense-bars {
  display: grid;
  gap: 12px;
}
.ratio-hbar-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 118px minmax(140px, 1.8fr);
  gap: 12px;
  align-items: center;
  color: #aebdde;
  font-size: 13px;
}
.ratio-hbar-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}
.ratio-hbar-row strong {
  color: #eaf2ff;
  text-align: right;
}
.ratio-hbar-row b {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 63, 112, .62);
}
.ratio-hbar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ratio-color, #2f80ff);
}
.ratios-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ratios-section-card {
  padding: 16px;
  border: 1px solid rgba(36, 90, 166, .46);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(4, 18, 44, .94), rgba(3, 13, 32, .98));
}
.ratios-section-card h3 {
  margin: 0 0 12px;
  color: #f7fbff;
  font-size: 16px;
}
.ratios-section-card section {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 100px 110px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(51, 94, 156, .24);
}
.ratios-section-card section:first-child { border-top: 0; }
.ratios-section-card span { color: #aebdde; }
.ratios-section-card strong { color: #f7fbff; text-align: right; }
.ratios-section-card em,
.ratio-status {
  justify-self: end;
  padding: 4px 8px;
  border-radius: 999px;
  color: #94a3b8;
  background: rgba(148, 163, 184, .12);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}
.ratios-section-card em.healthy,
.ratio-status.healthy { color: #34d399; background: rgba(52, 211, 153, .12); }
.ratios-section-card em.watch,
.ratio-status.watch { color: #facc15; background: rgba(250, 204, 21, .12); }
.ratios-section-card em.warning,
.ratio-status.warning { color: #facc15; background: rgba(250, 204, 21, .12); }
.ratios-section-card em.negative,
.ratio-status.negative,
.ratios-section-card em.critical,
.ratio-status.critical { color: #fb7185; background: rgba(251, 113, 133, .12); }
.ratios-section-card em.unavailable,
.ratios-section-card em.requires-operational-data,
.ratio-status.unavailable,
.ratio-status.requires-operational-data { color: #94a3b8; background: rgba(148, 163, 184, .12); }
.ratios-detail-card {
  padding: 16px;
  border: 1px solid rgba(36, 90, 166, .46);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(4, 18, 44, .94), rgba(3, 13, 32, .98));
}
.ratios-detail-card h3 {
  margin: 0 0 12px;
  color: #f7fbff;
  font-size: 17px;
}
.ratios-detail-card .ri-table-scroll { max-height: 430px; }
.ratios-detail-card table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  color: #aebdde;
  font-size: 13px;
}
.ratios-detail-card th,
.ratios-detail-card td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(51, 94, 156, .28);
  text-align: right;
  vertical-align: top;
}
.ratios-detail-card th:first-child,
.ratios-detail-card td:first-child,
.ratios-detail-card th:last-child,
.ratios-detail-card td:last-child { text-align: left; }
.ratios-detail-card th {
  color: #93a4c6;
  font-weight: 900;
}

@media (max-width: 1200px) {
  .ratios-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ratios-chart-grid,
  .ratios-chart-card.wide,
  .ratios-section-grid { grid-template-columns: 1fr; }
  .ratios-chart-card.wide { grid-column: auto; }
}
@media (max-width: 760px) {
  .ratios-status-card,
  .ratios-kpi-grid,
  .ratios-section-card section,
  .ratio-hbar-row { grid-template-columns: 1fr; }
  .ratios-section-card strong,
  .ratios-section-card em,
  .ratio-hbar-row strong { justify-self: start; text-align: left; }
}

/* Expenses Analysis */
.expenses-module {
  display: grid;
  gap: 14px;
  min-width: 0;
  color: #edf6ff;
}
.expenses-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(88, 158, 255, .28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(8, 24, 48, .96), rgba(5, 15, 32, .94) 62%, rgba(7, 39, 49, .78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 45px rgba(0,0,0,.22);
}
.expenses-title-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.expenses-hero-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(117, 246, 255, .34);
  border-radius: 8px;
  color: #82f8ff;
  background: linear-gradient(135deg, rgba(29,124,255,.30), rgba(18,185,129,.16));
  box-shadow: inset 0 0 22px rgba(45, 158, 255, .16);
}
.expenses-hero-icon svg,
.expense-kpi svg,
.expense-comment-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.expenses-kicker {
  display: block;
  color: #75f6ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.expenses-hero h1 {
  margin: 5px 0 5px;
  color: #fff;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.08;
}
.expenses-hero p {
  margin: 0;
  color: #aebfde;
}
.expenses-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.expenses-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.expenses-actions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.expenses-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
}
.expenses-filter-grid label:last-child { grid-column: span 2; }
.expenses-filter-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(82, 142, 220, .26);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 27, 50, .86), rgba(5, 16, 32, .92));
}
.expenses-filter-grid span {
  color: #9fb7d5;
  font-size: 11px;
  font-weight: 900;
}
.expenses-filter-grid select {
  width: 100%;
  min-height: 34px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-weight: 800;
}
.expenses-filter-grid option {
  color: #fff;
  background: #0a1a30;
}
.expenses-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
}
.expense-kpi {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(87,164,255,.25);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 26, 50, .94), rgba(5, 15, 30, .94));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 15px 36px rgba(0,0,0,.18);
}
.expense-kpi i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #dff8ff;
  background: rgba(29,124,255,.23);
}
.expense-kpi.normal i { background: linear-gradient(135deg, rgba(19,185,129,.46), rgba(18, 71, 63, .72)); }
.expense-kpi.attention i { background: linear-gradient(135deg, rgba(250,204,21,.48), rgba(74, 48, 8, .72)); }
.expense-kpi.risk i { background: linear-gradient(135deg, rgba(255,138,52,.50), rgba(76, 38, 7, .72)); }
.expense-kpi.critical i { background: linear-gradient(135deg, rgba(251,113,133,.56), rgba(78, 17, 31, .76)); }
.expense-kpi.efficiency i { background: linear-gradient(135deg, rgba(124,77,255,.52), rgba(35, 30, 82, .74)); }
.expense-kpi span {
  display: block;
  color: #9fb7d5;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.expense-kpi strong {
  display: block;
  margin: 6px 0 3px;
  color: #fff;
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.expense-kpi small {
  display: block;
  color: #91a8c8;
  font-size: 12px;
}
.expense-kpi em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}
.expenses-module .positive { color: #52f2a5 !important; }
.expenses-module .negative { color: #ff7f8f !important; }
.expenses-module .neutral { color: #9fb7d5 !important; }
.expenses-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(330px, .65fr);
  gap: 14px;
  align-items: start;
}
.expenses-panel,
.expenses-chart-card {
  min-width: 0;
  border: 1px solid rgba(87,164,255,.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8, 24, 46, .94), rgba(4, 14, 29, .96));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 18px 45px rgba(0,0,0,.20);
}
.expenses-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border-bottom: 1px solid rgba(87,164,255,.18);
}
.expenses-panel-head span {
  color: #75f6ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.expenses-panel-head h2 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 18px;
}
.expenses-panel-head b {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  background: #ef4444;
}
.expenses-panel-head .mini {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12px;
}
.expenses-table-scroll {
  max-height: 430px;
  overflow: auto;
}
.expenses-table-scroll table,
.expenses-top-discrepancies table {
  width: 100%;
  border-collapse: collapse;
  color: #dcecff;
  font-size: 12px;
}
.expenses-table-scroll table { min-width: 1420px; }
.expenses-table-scroll th,
.expenses-table-scroll td,
.expenses-top-discrepancies th,
.expenses-top-discrepancies td {
  padding: 10px 11px;
  border-bottom: 1px solid rgba(75, 127, 205, .18);
  text-align: right;
  vertical-align: middle;
}
.expenses-table-scroll th:first-child,
.expenses-table-scroll td:first-child,
.expenses-table-scroll th:last-child,
.expenses-table-scroll td:last-child,
.expenses-top-discrepancies th:first-child,
.expenses-top-discrepancies td:first-child,
.expenses-top-discrepancies th:last-child,
.expenses-top-discrepancies td:last-child {
  text-align: left;
}
.expenses-table-scroll th,
.expenses-top-discrepancies th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #9ec4f5;
  background: rgba(5, 18, 35, .98);
  font-size: 11px;
  font-weight: 900;
}
.expenses-table-scroll tr:hover td {
  background: rgba(29,124,255,.07);
}
.expenses-table-scroll tr.is-highlighted td {
  background: rgba(117,246,255,.14);
}
.expense-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}
.expense-status-badge.normal { color: #8dffb7; background: rgba(34,197,94,.14); }
.expense-status-badge.attention { color: #ffe58c; background: rgba(250,204,21,.14); }
.expense-status-badge.risk { color: #ffbb7f; background: rgba(255,138,52,.16); }
.expense-status-badge.critical { color: #ffb2bf; background: rgba(251,113,133,.16); }
.expense-status-badge.efficiency { color: #c9b9ff; background: rgba(124,77,255,.17); }
.expense-comment-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 190px;
  min-height: 30px;
  border: 1px solid rgba(117,246,255,.25);
  border-radius: 6px;
  padding: 5px 8px;
  color: #dff8ff;
  background: rgba(14, 45, 76, .55);
}
.expense-comment-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.expenses-alert-panel {
  position: sticky;
  top: 10px;
}
.expenses-alert-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.expenses-alert-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(87,164,255,.20);
  border-radius: 8px;
  background: rgba(4, 15, 29, .74);
}
.expenses-alert-card.critical { border-color: rgba(251,113,133,.52); background: linear-gradient(135deg, rgba(86, 18, 33, .64), rgba(4, 15, 29, .82)); }
.expenses-alert-card.attention { border-color: rgba(250,204,21,.46); background: linear-gradient(135deg, rgba(78, 53, 8, .54), rgba(4, 15, 29, .82)); }
.expenses-alert-card.risk { border-color: rgba(255,138,52,.50); background: linear-gradient(135deg, rgba(88, 43, 9, .58), rgba(4, 15, 29, .82)); }
.expenses-alert-card.efficiency { border-color: rgba(124,77,255,.46); background: linear-gradient(135deg, rgba(42, 34, 96, .58), rgba(4, 15, 29, .82)); }
.expenses-alert-card.is-reviewed {
  opacity: .62;
}
.expenses-alert-card > span {
  color: #ffb2bf;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}
.expenses-alert-card h3 {
  margin: 0;
  color: #fff;
  font-size: 15px;
}
.expenses-alert-card strong,
.expenses-alert-card p,
.expenses-alert-card small {
  margin: 0;
  color: #d7e6fa;
  line-height: 1.4;
}
.expenses-alert-card small {
  color: #9fb7d5;
  font-size: 12px;
}
.expenses-alert-card div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.expenses-alert-card button {
  min-height: 30px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(41, 91, 145, .62);
  font-size: 12px;
  font-weight: 850;
}
.expenses-alert-card button:disabled {
  cursor: default;
  opacity: .72;
}
.expenses-empty-alerts {
  margin: 0;
  color: #9fb7d5;
}
.expenses-top-discrepancies {
  padding: 0 12px 12px;
}
.expenses-top-discrepancies h3 {
  margin: 4px 0 10px;
  color: #fff;
  font-size: 15px;
}
.expenses-top-discrepancies table {
  border: 1px solid rgba(87,164,255,.18);
  border-radius: 8px;
  overflow: hidden;
}
.expenses-chart-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
}
.expenses-chart-card {
  padding: 14px;
}
.expenses-chart-card.wide {
  grid-column: span 2;
}
.expenses-chart-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 15px;
}
.expense-chart-svg {
  width: 100%;
  height: 220px;
  display: block;
  overflow: visible;
}
.expenses-chart-card.wide .expense-chart-svg {
  height: 230px;
}
.expense-chart-axis {
  stroke: rgba(129, 166, 220, .42);
  stroke-width: 1;
}
.expense-chart-gridline {
  stroke: rgba(87,164,255,.12);
  stroke-width: 1;
}
.expense-chart-bar { fill: rgba(29,124,255,.78); }
.expense-chart-bar.expected { fill: rgba(117,246,255,.42); }
.expense-chart-bar.real { fill: rgba(29,124,255,.76); }
.expense-chart-bar.over { fill: rgba(251,113,133,.82); }
.expense-chart-line {
  fill: none;
  stroke: #9f7cff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.expense-chart-line.green {
  stroke: #52f2a5;
}
.expense-chart-area {
  fill: rgba(82,242,165,.10);
}
.expense-chart-dot {
  fill: #071121;
  stroke: #75f6ff;
  stroke-width: 2;
}
.expense-chart-labels text {
  fill: #9fb7d5;
  font-size: 11px;
}
.expense-chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: #9fb7d5;
  font-size: 12px;
}
.expense-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.expense-chart-legend i {
  width: 14px;
  height: 8px;
  border-radius: 999px;
  background: rgba(29,124,255,.78);
}
.expense-chart-legend i.line { height: 3px; background: #9f7cff; }
.expense-chart-legend i.expected { background: rgba(117,246,255,.62); }
.expense-chart-legend i.real { background: rgba(29,124,255,.78); }
.expense-chart-legend i.over { background: rgba(251,113,133,.82); }
.expense-chart-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(159, 183, 213, .30);
  border-radius: 8px;
  color: #9fb7d5;
  background: rgba(4, 15, 29, .44);
  font-weight: 800;
  text-align: center;
}
.expenses-footer-note,
.expenses-feedback {
  border: 1px solid rgba(87,164,255,.18);
  border-radius: 8px;
  padding: 10px 12px;
  color: #9fb7d5;
  background: rgba(4, 15, 29, .62);
  text-align: center;
}
.expenses-feedback {
  position: sticky;
  bottom: 10px;
  z-index: 5;
  color: #dff8ff;
}
.expenses-feedback[data-type="ok"] {
  border-color: rgba(82,242,165,.36);
  background: rgba(15, 72, 58, .88);
}
.expenses-feedback[data-type="loading"] {
  border-color: rgba(87,164,255,.36);
  background: rgba(16, 47, 88, .90);
}
.expenses-feedback[data-type="error"] {
  border-color: rgba(251,113,133,.46);
  background: rgba(93, 24, 37, .90);
}
@media (max-width: 1500px) {
  .expenses-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .expenses-chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .expenses-main-grid { grid-template-columns: 1fr; }
  .expenses-alert-panel { position: static; }
  .expenses-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expenses-filter-grid label:last-child { grid-column: auto; }
}
@media (max-width: 760px) {
  .expenses-hero,
  .expenses-title-block {
    align-items: flex-start;
    flex-direction: column;
  }
  .expenses-actions,
  .expenses-actions button {
    width: 100%;
  }
  .expenses-filter-grid,
  .expenses-kpi-grid,
  .expenses-chart-grid {
    grid-template-columns: 1fr;
  }
  .expenses-chart-card.wide { grid-column: auto; }
}

/* Trasteros Club Tarahal */
.storage-module {
  min-height: 100%;
  display: grid;
  gap: 14px;
  color: var(--text);
}
.storage-head { margin-bottom: 0; }
.storage-head p { max-width: 760px; }
.storage-top-actions svg { width: 18px; height: 18px; }
.storage-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(87,164,255,.24);
  padding-bottom: 9px;
}
.storage-tabs button {
  min-height: 38px;
  border: 1px solid rgba(87,164,255,.35);
  border-radius: 8px;
  background: rgba(6,20,38,.86);
  color: #bdd4f1;
  padding: 0 14px;
  font-weight: 900;
}
.storage-tabs button.active {
  color: #fff;
  border-color: rgba(117,246,255,.70);
  background: linear-gradient(135deg, rgba(29,124,255,.38), rgba(19,185,129,.22));
  box-shadow: 0 0 20px rgba(33,231,255,.10);
}
.storage-tab-panel { display: none; }
.storage-tab-panel.active { display: grid; gap: 14px; }
.storage-control-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}
.storage-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.storage-kpis article,
.storage-legend,
.storage-door-zone,
.storage-detail,
.storage-contracts-head,
.storage-contract-table,
.storage-modal-box {
  border: 1px solid rgba(87,164,255,.20);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8,25,47,.94), rgba(5,15,29,.94));
}
.storage-kpis article {
  min-height: 74px;
  padding: 12px;
  display: grid;
  gap: 4px;
}
.storage-kpis span {
  color: #9fb7d5;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.storage-kpis strong { font-size: 28px; }
.storage-kpis .available strong { color: #52f2a5; }
.storage-kpis .reserved strong { color: #ffe45c; }
.storage-kpis .occupied strong { color: #75c7ff; }
.storage-kpis .expiring strong { color: #ff9f43; text-shadow: 0 0 14px rgba(255,138,52,.36); }
.storage-kpis .expired strong { color: #ff5a71; text-shadow: 0 0 14px rgba(255,66,92,.36); }
.storage-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  color: #bdd4f1;
  font-size: 12px;
  font-weight: 900;
}
.storage-legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.storage-legend i {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  display: inline-block;
}
.storage-legend .available { background: #17d987; box-shadow: 0 0 12px rgba(23,217,135,.50); }
.storage-legend .reserved { background: #ffe45c; box-shadow: 0 0 12px rgba(255,228,92,.45); }
.storage-legend .occupied { background: #1774ff; box-shadow: 0 0 12px rgba(23,116,255,.55); }
.storage-legend .expiring { background: #ff8a34; box-shadow: 0 0 14px rgba(255,138,52,.70); }
.storage-legend .expired { background: #ff3154; box-shadow: 0 0 14px rgba(255,49,84,.70); }
.storage-door-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.storage-door-filters button {
  min-height: 34px;
  border: 1px solid rgba(87,164,255,.28);
  border-radius: 8px;
  background: rgba(6,20,38,.78);
  color: #bdd4f1;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 950;
}
.storage-door-filters button.active {
  color: #fff;
  border-color: rgba(117,246,255,.70);
  background: linear-gradient(135deg, rgba(29,124,255,.34), rgba(19,185,129,.18));
}
.storage-door-filters b {
  min-width: 24px;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(117,246,255,.13);
  color: #75f6ff;
  text-align: center;
}
.storage-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(720px, 1fr) minmax(340px, 430px);
  gap: 14px;
  align-items: start;
}
.storage-door-zone {
  min-width: 0;
  overflow: auto;
  padding: 14px;
}
.storage-door-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(74px, 1fr));
  gap: 10px;
  min-width: 760px;
}
.storage-door {
  position: relative;
  isolation: isolate;
  min-height: 126px;
  aspect-ratio: .58 / 1;
  border: 1px solid rgba(180,218,255,.30);
  border-radius: 8px 8px 5px 5px;
  padding: 9px 7px 8px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-items: stretch;
  color: #f7fbff;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), inset 0 -8px 18px rgba(0,0,0,.24), 0 12px 24px rgba(0,0,0,.24);
}
.storage-door::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  pointer-events: none;
  z-index: -1;
}
.storage-door::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 48%;
  width: 5px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 0 10px rgba(255,255,255,.25);
}
.storage-door.available { background: linear-gradient(160deg, #0d8d63, #073f34 66%, #071c21); }
.storage-door.reserved { background: linear-gradient(160deg, #c99b10, #5c4308 66%, #14170c); color: #fffbe2; }
.storage-door.occupied { background: linear-gradient(160deg, #176fff, #0d315d 66%, #071522); }
.storage-door.expiring { background: linear-gradient(160deg, #ff8a34, #713709 66%, #1b1208); box-shadow: inset 0 1px 0 rgba(255,255,255,.26), inset 0 -8px 18px rgba(0,0,0,.26), 0 0 24px rgba(255,138,52,.36); }
.storage-door.expired { background: linear-gradient(160deg, #ff3154, #761223 66%, #1a0810); box-shadow: inset 0 1px 0 rgba(255,255,255,.24), inset 0 -8px 18px rgba(0,0,0,.28), 0 0 24px rgba(255,49,84,.36); }
.storage-door.selected {
  outline: 2px solid rgba(117,246,255,.88);
  outline-offset: 2px;
}
.storage-door-number {
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}
.storage-door-vents {
  width: 56%;
  height: 28px;
  align-self: start;
  margin-top: 14px;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.34) 0 2px, transparent 2px 7px);
  opacity: .72;
}
.storage-door-client,
.storage-door-dates {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.storage-door-client { font-size: 11px; font-weight: 950; }
.storage-door-dates { margin-top: 2px; color: rgba(255,255,255,.82); font-size: 10px; font-weight: 800; }
.storage-door-empty {
  grid-column: 1 / -1;
  min-height: 110px;
  border: 1px dashed rgba(117,246,255,.24);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #9fb7d5;
  font-weight: 900;
}
.storage-detail {
  min-width: 0;
  padding: 14px;
  position: sticky;
  top: 0;
}
.storage-detail-title {
  min-height: 66px;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,.12);
}
.storage-detail-title span { font-size: 18px; font-weight: 950; }
.storage-detail-title strong { color: #dcecff; font-size: 12px; }
.storage-detail-title.available { color: #5dffae; background: rgba(19,185,129,.12); }
.storage-detail-title.reserved { color: #ffe45c; background: rgba(255,214,74,.10); }
.storage-detail-title.occupied { color: #75c7ff; background: rgba(23,116,255,.12); }
.storage-detail-title.expiring { color: #ffad66; background: rgba(255,138,52,.13); }
.storage-detail-title.expired { color: #ff9bab; background: rgba(251,113,133,.13); }
.storage-client-form,
.storage-client-card {
  display: grid;
  gap: 12px;
}
.storage-form-section {
  border-top: 1px solid rgba(87,164,255,.16);
  padding-top: 12px;
}
.storage-form-section h3,
.storage-renew-panel h3 {
  margin: 0 0 10px;
  color: #f7fbff;
  font-size: 15px;
}
.storage-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.storage-section-head span {
  color: #75f6ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.storage-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.storage-form-grid label,
.storage-tariff-editor label,
.storage-manual-rate,
.storage-renew-manual label,
.storage-modal-body label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.storage-form-grid label.wide { grid-column: 1 / -1; }
.storage-form-grid span,
.storage-tariff-editor span,
.storage-manual-rate span,
.storage-renew-manual span,
.storage-modal-body span {
  color: #9fb7d5;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.storage-form-grid input,
.storage-form-grid select,
.storage-form-grid textarea,
.storage-tariff-editor input,
.storage-manual-rate input,
.storage-renew-manual input,
.storage-contract-filters input,
.storage-contract-filters select,
.storage-modal-body input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(87,164,255,.26);
  border-radius: 8px;
  background: rgba(4,15,29,.82);
  color: #f7fbff;
  padding: 9px 10px;
  outline: none;
}
.storage-form-grid textarea { resize: vertical; min-height: 78px; }
.storage-form-grid input:focus,
.storage-form-grid select:focus,
.storage-form-grid textarea:focus,
.storage-tariff-editor input:focus,
.storage-manual-rate input:focus,
.storage-renew-manual input:focus,
.storage-contract-filters input:focus,
.storage-contract-filters select:focus,
.storage-modal-body input:focus {
  border-color: rgba(117,246,255,.78);
  box-shadow: 0 0 0 3px rgba(33,231,255,.08);
}
.storage-form-grid .is-disabled input {
  border-color: rgba(148,163,184,.16);
  background: rgba(10,18,31,.58);
  color: #687993;
}
.storage-form-grid .is-enabled input,
.storage-renew-manual .is-enabled input {
  border-color: rgba(82,242,165,.50);
  box-shadow: 0 0 18px rgba(82,242,165,.08);
}
.storage-check {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 40px;
}
.storage-check input { width: 18px; min-height: 18px; accent-color: #52f2a5; }
.storage-tariff-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.storage-rate-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.storage-rate-buttons button,
.storage-round-rates button {
  min-height: 58px;
  border: 1px solid rgba(117,246,255,.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12,39,70,.86), rgba(5,18,34,.92));
  color: #e9f6ff;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 8px;
  text-align: center;
}
.storage-rate-buttons button b,
.storage-round-rates button b { font-size: 12px; }
.storage-rate-buttons button span,
.storage-round-rates button span { color: #75f6ff; font-size: 11px; font-weight: 900; }
.storage-rate-buttons button.selected,
.storage-round-rates button.selected {
  border-color: rgba(82,242,165,.70);
  background: linear-gradient(180deg, rgba(20,116,89,.82), rgba(6,36,34,.94));
  box-shadow: 0 0 18px rgba(82,242,165,.12);
}
.storage-manual-rate { margin-top: 10px; }
.storage-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.storage-form-actions button { min-height: 40px; }
.soft-button.warning { border-color: rgba(255,228,92,.42); color: #ffe45c; }
.soft-button.success { border-color: rgba(82,242,165,.42); color: #8dffc2; }
.soft-button.danger { border-color: rgba(251,113,133,.44); color: #ff9bab; }
.storage-client-summary {
  display: grid;
  gap: 8px;
}
.storage-client-summary h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 20px;
}
.storage-client-summary p {
  margin: 0;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  color: #dcecff;
}
.storage-client-summary span { color: #8fa5c4; font-size: 12px; font-weight: 900; }
.storage-client-summary strong { min-width: 0; overflow-wrap: anywhere; font-weight: 800; }
.storage-renew-panel {
  border-top: 1px solid rgba(87,164,255,.18);
  padding-top: 12px;
}
.storage-round-rates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.storage-round-rates button {
  min-height: 76px;
  border-radius: 999px;
}
.storage-renew-manual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.storage-contracts-head {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.storage-contracts-head h2 { margin: 4px 0 0; }
.storage-contract-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.storage-contract-filters input { min-width: min(320px, 48vw); }
.storage-contract-table {
  overflow: auto;
  max-height: min(62vh, 720px);
}
.storage-contract-table table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}
.storage-contract-table th,
.storage-contract-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(87,164,255,.14);
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
.storage-contract-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #102744;
  color: #9ec4f5;
  text-transform: uppercase;
}
.storage-contract-table td small {
  display: block;
  margin-top: 4px;
  color: #8fa5c4;
}
.storage-status-pill {
  display: inline-flex;
  min-width: 82px;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 950;
}
.storage-status-pill.active { color: #8dffc2; background: rgba(19,185,129,.14); }
.storage-status-pill.reserved { color: #ffe45c; background: rgba(255,228,92,.14); }
.storage-status-pill.expiring { color: #ffad66; background: rgba(255,138,52,.16); }
.storage-status-pill.expired { color: #ff9bab; background: rgba(251,113,133,.14); }
.storage-status-pill.closed,
.storage-status-pill.released { color: #b8c7dd; background: rgba(148,163,184,.14); }
.storage-empty-row { color: #9fb7d5; text-align: center; }
.storage-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2,8,18,.72);
}
.storage-modal[hidden] { display: none; }
.storage-modal-box {
  width: min(560px, 100%);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}
.storage-modal-box header,
.storage-modal-box footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(87,164,255,.18);
}
.storage-modal-box footer {
  border-top: 1px solid rgba(87,164,255,.18);
  border-bottom: 0;
  justify-content: flex-end;
}
.storage-modal-box h2 { margin: 3px 0 0; }
.storage-modal-box header > button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(87,164,255,.28);
  border-radius: 8px;
  background: rgba(4,15,29,.82);
  color: #dcecff;
  font-weight: 900;
}
.storage-modal-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.storage-modal-body p {
  margin: 0;
  color: #9fb7d5;
  font-size: 12px;
  font-weight: 800;
}
.storage-feedback {
  position: sticky;
  bottom: 10px;
  z-index: 8;
  margin: 0;
  border: 1px solid rgba(82,242,165,.34);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(15,72,58,.90);
  color: #dff8ff;
  font-weight: 900;
  text-align: center;
}
.storage-feedback[data-type="error"] {
  border-color: rgba(251,113,133,.48);
  background: rgba(93,24,37,.92);
}
@media (max-width: 1320px) {
  .storage-control-band,
  .storage-workspace { grid-template-columns: 1fr; }
  .storage-detail { position: static; }
}
@media (max-width: 820px) {
  .storage-kpis,
  .storage-form-grid,
  .storage-tariff-editor,
  .storage-rate-buttons,
  .storage-round-rates,
  .storage-renew-manual { grid-template-columns: 1fr 1fr; }
  .storage-contracts-head { align-items: stretch; flex-direction: column; }
  .storage-contract-filters,
  .storage-contract-filters input,
  .storage-contract-filters select,
  .storage-form-actions button { width: 100%; }
  .storage-door-grid { grid-template-columns: repeat(5, minmax(70px, 1fr)); min-width: 0; }
  .storage-workspace { min-width: 0; }
}
@media (max-width: 540px) {
  .storage-kpis,
  .storage-form-grid,
  .storage-tariff-editor,
  .storage-rate-buttons,
  .storage-round-rates,
  .storage-renew-manual { grid-template-columns: 1fr; }
  .storage-door-grid { grid-template-columns: repeat(3, minmax(72px, 1fr)); }
  .storage-client-summary p { grid-template-columns: 1fr; gap: 2px; }
}

/* Nexus Hub v79: update metadata, Nexus Academy and weekly schedules. */

/* Nexus Hub v85: official Nexus Leisure symbol in brand lockups. */
.brand-mark.official-logo-mark,
.nexora-logo-mark.official-logo-mark,
.brand-block .nexora-logo-mark.official-logo-mark,
.brand.large .brand-mark.official-logo-mark {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  color: transparent;
  padding: 0;
  overflow: visible;
}

.brand-mark.official-logo-mark img,
.nexora-logo-mark.official-logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand.large {
  gap: 18px;
}

.brand.large .brand-mark.official-logo-mark {
  width: 68px;
  height: 92px;
  flex: 0 0 68px;
}

.brand.large strong {
  font-size: 34px;
  letter-spacing: -.03em;
}

.brand.large span {
  font-size: 14px;
}

.brand-block .nexora-logo-mark.official-logo-mark {
  width: 46px;
  height: 62px;
  flex: 0 0 46px;
}
.pnl-shell { display: grid; gap: 18px; padding: 24px; }
.pnl-form { display: grid; gap: 18px; }
.pnl-meta { display: grid; grid-template-columns: repeat(2, minmax(180px, 260px)); gap: 14px; }
.pnl-meta label { display: grid; gap: 7px; color: #c9daf2; font-weight: 900; }
.pnl-meta input,
.pnl-meta select,
.pnl-table input { border: 1px solid var(--line2); border-radius: 9px; background: rgba(5,18,35,.92); color: var(--text); padding: 9px 10px; }
.pnl-table-wrap { overflow: auto; border: 1px solid var(--line2); border-radius: 14px; background: rgba(8,24,44,.80); }
.pnl-table { width: 100%; min-width: 1080px; border-collapse: collapse; }
.pnl-table th,
.pnl-table td { border-bottom: 1px solid rgba(66,104,160,.42); padding: 10px; text-align: left; }
.pnl-table th { background: rgba(19,56,102,.76); color: #dcecff; font-size: 12px; text-transform: uppercase; }
.pnl-table td:first-child { color: #fff; font-weight: 950; }
.pnl-table input { width: 90px; min-height: 34px; }
.pnl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pnl-feedback { border: 1px solid rgba(93,171,255,.34); border-radius: 12px; padding: 12px 14px; background: rgba(19,56,102,.64); color: #dcecff; font-weight: 850; }
.pnl-feedback[data-type="error"] { border-color: rgba(255,76,112,.48); background: rgba(70,20,38,.72); color: #ffd8df; }
.pnl-feedback[data-type="loading"] { border-color: rgba(255,211,90,.45); background: rgba(80,61,17,.55); color: #fff3bf; }
.pnl-result { white-space: pre-wrap; max-height: 420px; overflow: auto; border: 1px solid var(--line2); border-radius: 14px; padding: 14px; background: rgba(4,13,26,.88); color: #cfe3ff; }
.direct-bookers-shell { min-width: 0; }
.direct-bookers-readonly { border: 1px solid rgba(245,158,11,.5); border-radius: 14px; padding: 12px 16px; background: rgba(245,158,11,.12); color: #fbbf24; font-weight: 800; }
.direct-bookers-actions { align-items: center; }
.direct-bookers-actions .refresh-button.is-busy { min-width: 142px; }
.direct-bookers-refresh-status { color: #8cc7ff; font-size: 12px; font-weight: 850; }
.direct-bookers-refresh-status[data-type="success"] { color: #74e6a8; }
.direct-bookers-refresh-status[data-type="error"] { color: #ff9aaa; }
.direct-bookers-refresh-status[data-type="loading"] { color: #fff3bf; }
.direct-bookers-filters { grid-template-columns: repeat(3, minmax(180px, 260px)); }
.direct-bookers-toggle { display: flex !important; align-items: center; gap: 8px; min-height: 38px; }
.direct-bookers-toggle input { accent-color: #2b8cff; }
.direct-bookers-updated { margin: 0; color: #8faed2; font-size: 12px; font-weight: 800; }
.direct-bookers-table-wrap { max-height: none; padding: 0; }
.direct-bookers-table { min-width: 1420px; }
.direct-bookers-table th:first-child { position: sticky; left: 0; z-index: 1; min-width: 260px; background: #133866; }
.direct-bookers-table th small { display: block; margin-top: 4px; color: #a9c6e8; font-size: 10px; font-weight: 700; }
.direct-bookers-table td { min-width: 82px; text-align: right; font-variant-numeric: tabular-nums; color: #07172b; font-weight: 850; }
.direct-bookers-cell[data-value-state="value"][data-value-type="acc"] { background: var(--panel); color: #dcecff; }
.direct-bookers-cell[data-direct-bookers-contrast="light"] { color: #dcecff; }
.direct-bookers-cell[data-value-state="empty"] { background: rgba(5,18,35,.92) !important; color: #8fa8c7; }
.direct-bookers-cell[data-value-state="error"] { background: rgba(112,24,46,.82) !important; color: #ffd8df; }
.direct-bookers-empty { margin: 0; padding: 18px; color: #b6cae4; font-weight: 800; }
@media (max-width: 860px) { .direct-bookers-filters { grid-template-columns: 1fr; } }
.debt-kpi-grid { grid-template-columns: repeat(4, minmax(210px, 1fr)); max-width: none; }
.debtor-update-card.manual { border-color: rgba(0,180,255,.38); }
.debtor-update-card.automatic { border-color: rgba(73,235,179,.38); background: linear-gradient(145deg, rgba(8,42,55,.94), rgba(7,29,51,.78)); }
.debtor-update-card.automatic span { color: #72e7c4; }
.debtor-charge-exception { display: flex; align-items: center; gap: 6px; min-width: 175px; }
.debtor-charge-exception input { width: 116px; border: 1px solid rgba(82,166,255,.32); border-radius: 8px; padding: 6px; background: rgba(5,18,35,.92); color: #eaf7ff; font-size: 11px; }
.debtor-charge-exception button { min-height: 30px; border: 0; border-radius: 999px; padding: 0 10px; background: linear-gradient(135deg, #2b8cff, #17d6c3); color: white; font-size: 11px; font-weight: 950; cursor: pointer; box-shadow: 0 8px 18px rgba(31,122,255,.25); }

.help-center-shell,
.schedule-module { min-height: 100%; padding: 24px; overflow: auto; }
.help-center-hero,
.schedule-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border: 1px solid rgba(94,168,255,.30); border-radius: 18px; padding: 24px;
  background: radial-gradient(circle at 88% 18%, rgba(124,77,255,.30), transparent 30%), linear-gradient(135deg, rgba(12,39,72,.96), rgba(8,24,44,.94));
  box-shadow: 0 20px 50px rgba(0,0,0,.20);
}
.help-center-hero h1,
.schedule-hero h1 { margin: 5px 0 8px; font-size: clamp(28px, 3vw, 42px); }
.help-center-hero p,
.schedule-hero p { margin: 0; color: #a9c1df; font-size: 15px; }
.help-hero-orbit {
  width: 142px; height: 142px; border-radius: 50%; display: grid; place-items: center; position: relative;
  border: 1px solid rgba(126,252,230,.45); background: rgba(6,24,45,.70); color: #7dfce6; text-align: center; font-weight: 900;
  box-shadow: 0 0 38px rgba(64,182,255,.22), inset 0 0 28px rgba(124,77,255,.20);
}
.help-hero-orbit svg { position: absolute; width: 42px; height: 42px; opacity: .22; }
.help-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0; }
.help-toolbar > label { min-width: min(440px, 100%); display: flex; align-items: center; gap: 10px; border: 1px solid var(--line2); border-radius: 12px; padding: 0 14px; background: rgba(8,24,44,.88); }
.help-toolbar > label svg { width: 18px; color: #60b7ff; }
.help-toolbar input { width: 100%; height: 44px; border: 0; outline: 0; background: transparent; color: white; }
.help-area-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.help-area-tabs button,
.schedule-view-switch button { min-height: 38px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 13px; background: rgba(8,24,44,.82); color: #abc0dc; font-weight: 800; }
.help-area-tabs button.active,
.schedule-view-switch button.active { color: white; border-color: #2b8cff; background: linear-gradient(135deg, rgba(31,122,255,.46), rgba(124,77,255,.34)); }
.help-area { margin-top: 22px; }
.help-area-title { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.help-area-title > span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #7dfce6; background: rgba(19,185,129,.12); border: 1px solid rgba(61,224,176,.25); }
.help-area-title svg { width: 22px; }
.help-area-title h2 { margin: 0 0 3px; }
.help-area-title p { margin: 0; color: #91a9c8; }
.help-module-grid { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 12px; }
.help-module-card { border: 1px solid rgba(74,130,198,.28); border-radius: 14px; background: linear-gradient(155deg, rgba(13,34,61,.96), rgba(8,24,43,.92)); overflow: hidden; }
.help-module-card summary { list-style: none; min-height: 96px; display: grid; grid-template-columns: 42px 1fr 24px; align-items: center; gap: 11px; padding: 14px; cursor: pointer; }
.help-module-card summary::-webkit-details-marker { display: none; }
.help-module-card summary > span:nth-child(2) { display: grid; gap: 5px; }
.help-module-card summary strong { font-size: 15px; }
.help-module-card summary small { color: #98b0cf; line-height: 1.35; }
.help-module-card summary > b { color: #6cc7ff; font-size: 22px; transition: transform .2s ease; }
.help-module-card[open] summary > b { transform: rotate(45deg); }
.help-module-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #8c7cff; background: rgba(124,77,255,.13); }
.help-module-icon svg { width: 20px; }
.help-module-body { display: grid; gap: 11px; padding: 0 14px 14px; border-top: 1px solid rgba(74,130,198,.20); }
.help-module-body p { margin: 12px 0 0; color: #a9bed9; line-height: 1.5; }
.help-module-body p strong,
.help-module-body div > strong { display: block; margin-bottom: 5px; color: #eef6ff; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.help-module-body ol { margin: 7px 0 0; padding-left: 22px; color: #c8d8eb; line-height: 1.65; }
.help-warning { border: 1px solid rgba(255,178,70,.24); border-radius: 10px; padding: 10px; background: rgba(255,138,52,.08); color: #ffd39a !important; }
.help-empty { margin-top: 30px; border: 1px dashed var(--line2); border-radius: 14px; padding: 30px; color: #9db4d1; text-align: center; }

.schedule-actions { display: flex; gap: 10px; }
.schedule-controls { display: grid; grid-template-columns: minmax(270px, 1.25fr) repeat(3, minmax(170px, 1fr)); gap: 12px; margin: 18px 0; }
.schedule-controls > label,
.schedule-week-nav { min-height: 68px; display: grid; align-content: center; gap: 6px; border: 1px solid rgba(72,126,192,.28); border-radius: 12px; padding: 10px 12px; background: rgba(8,24,44,.86); }
.schedule-controls label span,
.schedule-week-nav label span { color: #88a4c8; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.schedule-controls select,
.schedule-controls input,
.schedule-form-grid input,
.schedule-form-grid select,
.schedule-form-grid textarea { width: 100%; border: 1px solid var(--line2); border-radius: 9px; background: rgba(6,20,38,.92); color: white; padding: 9px 10px; outline: 0; }
.schedule-week-nav { grid-template-columns: 38px 1fr 38px; align-items: center; }
.schedule-week-nav label { display: grid; gap: 5px; }
.schedule-week-nav button { width: 36px; height: 36px; border: 1px solid var(--line2); border-radius: 9px; background: rgba(31,122,255,.12); color: #86c8ff; }
.schedule-kpis { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.schedule-kpis article { min-height: 96px; display: grid; align-content: center; gap: 4px; border: 1px solid rgba(72,126,192,.26); border-radius: 13px; padding: 15px; background: linear-gradient(145deg, rgba(13,36,64,.94), rgba(8,24,44,.88)); }
.schedule-kpis span { color: #8ca9cd; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.schedule-kpis strong { font-size: 25px; }
.schedule-kpis small { color: #8098b8; }
.schedule-alert-kpi strong { color: #ffb45e; }
.schedule-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.schedule-calendar-card,
.schedule-side-panel { border: 1px solid rgba(72,126,192,.27); border-radius: 15px; background: rgba(8,24,44,.84); overflow: hidden; }
.schedule-calendar-card > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px; border-bottom: 1px solid rgba(72,126,192,.22); }
.schedule-calendar-card > header > div:first-child { display: grid; gap: 3px; }
.schedule-calendar-card > header span { color: #8fa8c7; font-size: 12px; }
.schedule-view-switch { display: flex; gap: 6px; }
.schedule-calendar { display: grid; grid-template-columns: repeat(7, minmax(135px, 1fr)); gap: 1px; width: 100%; overflow-x: auto; background: rgba(45,86,134,.18); }
.schedule-calendar.day-view { grid-template-columns: minmax(280px, 1fr); }
.schedule-day { min-height: 440px; display: flex; flex-direction: column; background: #09182b; }
.schedule-day.today { background: linear-gradient(180deg, rgba(19,71,111,.55), #09182b 28%); }
.schedule-day-head { min-height: 62px; border: 0; border-bottom: 1px solid rgba(72,126,192,.18); background: transparent; color: white; display: flex; align-items: center; justify-content: space-between; padding: 10px; }
.schedule-day-head span { color: #8ea8c8; font-weight: 800; text-transform: uppercase; }
.schedule-day-head strong { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(31,122,255,.14); }
.schedule-day-shifts { display: grid; align-content: start; gap: 8px; padding: 8px; flex: 1; }
.schedule-day-empty { padding: 18px 6px; color: #526d8d; font-size: 12px; text-align: center; }
.schedule-shift { min-height: 88px; display: grid; gap: 4px; border: 1px solid rgba(84,155,242,.34); border-left: 4px solid #2b8cff; border-radius: 10px; padding: 9px; background: rgba(21,62,105,.72); color: white; text-align: left; }
.schedule-shift span { font-size: 11px; color: #a9c6e6; }
.schedule-shift strong { font-size: 13px; }
.schedule-shift small { color: #c3d3e6; line-height: 1.3; }
.schedule-shift.violet { border-left-color: #8e68ff; background: rgba(72,46,130,.55); }
.schedule-shift.green { border-left-color: #35d49d; background: rgba(20,91,73,.53); }
.schedule-shift.orange { border-left-color: #ff9e55; background: rgba(112,61,27,.50); }
.schedule-shift.pink { border-left-color: #ff5d91; background: rgba(111,35,66,.50); }
.schedule-shift.cyan { border-left-color: #24d6e8; background: rgba(21,86,101,.53); }
.schedule-shift.conflict { border-color: #ff5470; box-shadow: 0 0 0 1px rgba(255,84,112,.35); }
.schedule-shift em { color: #ff9caf; font-size: 10px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.schedule-day-add { min-height: 36px; border: 0; border-top: 1px solid rgba(72,126,192,.16); background: rgba(31,122,255,.05); color: #6fb8ff; font-weight: 800; }
.schedule-empty { padding: 34px; text-align: center; color: #8ea7c6; }
.schedule-empty span { display: inline-grid; width: 52px; height: 52px; place-items: center; border-radius: 15px; color: #65d8ba; background: rgba(31,181,139,.10); }
.schedule-empty svg { width: 26px; }
.schedule-empty strong { display: block; margin-top: 10px; color: white; }
.schedule-side-panel { position: sticky; top: 0; padding: 16px; }
.schedule-side-panel h2 { margin: 4px 0 14px; }
.schedule-summary-block { margin-top: 12px; border-top: 1px solid rgba(72,126,192,.20); padding-top: 12px; }
.schedule-summary-block > strong { color: #dcecff; font-size: 12px; text-transform: uppercase; }
.schedule-summary-block p { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; color: #9eb6d2; font-size: 12px; }
.schedule-summary-block p b { color: #7dfce6; }
.schedule-summary-block small { display: block; margin-top: 8px; color: #6f8aaa; }
.schedule-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(2,8,18,.78); backdrop-filter: blur(8px); }
.schedule-modal[hidden] { display: none; }
.schedule-modal-card { width: min(720px, 96vw); max-height: 92vh; overflow: auto; border: 1px solid rgba(82,166,255,.38); border-radius: 16px; background: #0a1a30; box-shadow: 0 26px 80px rgba(0,0,0,.48); }
.schedule-modal-card > header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid rgba(72,126,192,.24); }
.schedule-modal-card h2 { margin: 4px 0 0; }
.schedule-modal-card > header > button { width: 36px; height: 36px; border: 1px solid var(--line2); border-radius: 9px; background: #08162a; color: white; }
.schedule-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.schedule-form-grid label { display: grid; gap: 6px; color: #9cb2ce; font-size: 12px; font-weight: 800; }
.schedule-form-grid .wide { grid-column: 1 / -1; }
.schedule-modal-card footer { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(72,126,192,.24); }
.schedule-form-warning { margin: 0 16px 12px; border: 1px solid rgba(255,84,112,.40); border-radius: 9px; padding: 10px; background: rgba(119,28,50,.30); color: #ffc0cc; }
.schedule-feedback { position: sticky; bottom: 10px; margin: 12px 0 0; border: 1px solid rgba(74,224,177,.35); border-radius: 10px; padding: 11px; background: rgba(13,82,64,.92); color: #d9fff2; text-align: center; font-weight: 900; }
.schedule-feedback[data-type="error"] { border-color: rgba(255,84,112,.42); background: rgba(110,26,46,.92); }
.schedule-matrix {
  display: grid;
  grid-template-columns: minmax(118px, .78fr) repeat(var(--schedule-days, 7), minmax(118px, 1fr)) minmax(220px, .9fr);
  min-width: 1180px;
  background: rgba(20,42,73,.92);
  gap: 1px;
}
.schedule-matrix-corner,
.schedule-matrix-head,
.schedule-person,
.schedule-cell {
  min-height: 58px;
  border: 0;
  color: #ecf7ff;
}
.schedule-matrix-corner,
.schedule-person {
  position: sticky;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 12px;
  background: #f8fbff;
  color: #12304f;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.schedule-matrix-corner { top: 0; z-index: 4; justify-content: center; background: #122640; color: #eaf7ff; }
.schedule-matrix-helper { left: auto; }
.schedule-matrix-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px;
  background: #10243d;
  text-align: center;
}
.schedule-matrix-head strong { font-size: 15px; }
.schedule-matrix-head span { color: #8fc4ec; font-size: 12px; font-weight: 900; }
.schedule-matrix-head small { display: block; color: #d5ebff; font-size: 10px; font-weight: 800; line-height: 1.25; }
.schedule-matrix-head small b { color: #46c7ff; }
.schedule-matrix-head.today { background: linear-gradient(135deg, #12608a, #112842); }
.schedule-cell {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 8px;
  background: #eef4fb;
  color: #16314f;
  text-align: center;
  cursor: pointer;
}
.schedule-cell:hover { filter: brightness(1.04); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.schedule-cell.has-shift { color: #071626; font-weight: 950; }
.schedule-code { display: block; font-size: 16px; line-height: 1.05; }
.schedule-cell small { min-height: 14px; color: rgba(7,22,38,.62); font-size: 10px; font-weight: 900; }
.schedule-cell em { color: #8b0000; font-size: 10px; font-style: normal; font-weight: 950; text-transform: uppercase; }
.schedule-empty-code { color: rgba(18,48,79,.28); font-size: 22px; font-weight: 900; }
.schedule-cell.ct { background: #91d354; }
.schedule-cell.on { background: #16add8; }
.schedule-cell.rec { background: #7dd3fc; }
.schedule-cell.su,
.schedule-cell.on-ct { background: #ffd76c; }
.schedule-cell.reservas { background: #d7dce4; }
.schedule-cell.contable { background: #c3c8d0; }
.schedule-cell.libre { background: #ff1717; color: #120000; }
.schedule-cell.vacaciones { background: #ffe29a; color: #3d2500; }
.schedule-cell.baja { background: #b066ff; color: #18002d; }
.schedule-cell.turno { background: #9dd4ff; }
.schedule-cell.festivo { background: #ffe600; color: #3d2f00; }
.schedule-code.festivo { color: #3d2f00; }
.schedule-cell.before-start {
  background: repeating-linear-gradient(45deg, rgba(120,140,170,.12), rgba(120,140,170,.12) 6px, rgba(120,140,170,.04) 6px, rgba(120,140,170,.04) 12px);
  cursor: default;
}
.schedule-cell.before-start:hover { filter: none; box-shadow: none; }
.schedule-cell.before-start .schedule-empty-code { color: rgba(120,140,170,.5); }
/* separadores por area en el cuadrante */
.schedule-group-sep {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 6px 12px; margin-top: 6px;
  font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #a9c2e2;
  background: linear-gradient(90deg, rgba(43,124,255,.16), rgba(43,124,255,0)); border-radius: 8px; border-left: 3px solid #2b7cff;
}
.schedule-group-sep i { font-style: normal; font-weight: 900; color: #7db4ff; background: rgba(43,124,255,.18); border-radius: 999px; padding: 1px 8px; font-size: 10px; }
.schedule-group-sep.sep-housekeeping { border-left-color: #1ecb83; background: linear-gradient(90deg, rgba(30,203,131,.16), transparent); }
.schedule-group-sep.sep-mantenimiento { border-left-color: #ff8a3d; background: linear-gradient(90deg, rgba(255,138,61,.16), transparent); }
.schedule-group-sep.sep-recepcion { border-left-color: #24d6e8; background: linear-gradient(90deg, rgba(36,214,232,.16), transparent); }
.schedule-group-sep.sep-reservas { border-left-color: #b84bc9; background: linear-gradient(90deg, rgba(184,75,201,.16), transparent); }
.schedule-row-actions {
  display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: center;
  gap: 6px; min-height: 58px; padding: 9px 10px;
  background: linear-gradient(180deg, rgba(12,28,52,.62), rgba(7,18,35,.62));
  border-left: 1px solid rgba(82,166,255,.14);
}
.schedule-row-actions button {
  min-width: 36px; height: 26px; padding: 0 9px; border: 0; border-radius: 8px;
  color: #071626; font-size: 10px; font-weight: 900; letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 4px 10px rgba(9,26,48,.3);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.schedule-row-actions button:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(9,26,48,.36); filter: saturate(1.12) brightness(1.05); }
.schedule-row-actions .ct { background: #91d354; }
.schedule-row-actions .on { background: #16add8; }
.schedule-row-actions .rec { background: #7dd3fc; }
.schedule-row-actions .reservas { background: #d7dce4; }
.schedule-row-actions .vacaciones { background: #ffe29a; }
.schedule-row-actions .baja { background: #b066ff; }
.schedule-row-actions .festivo { background: #ffe600; color: #3d2f00; }
/* marcador de comentario en la celda */
.schedule-cell { position: relative; }
.schedule-note-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #ffb02e; box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 0 6px rgba(255,176,46,.9); }
/* menu contextual (clic derecho) */
.schedule-ctx-menu {
  position: fixed; z-index: 1400; min-width: 240px; padding: 8px;
  background: linear-gradient(180deg, rgba(14,32,58,.98), rgba(8,20,38,.98));
  border: 1px solid rgba(82,166,255,.28); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); backdrop-filter: blur(6px);
}
.schedule-ctx-head { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px 8px; color: #a9c2e2; font-size: 11px; border-bottom: 1px solid rgba(82,166,255,.16); margin-bottom: 6px; }
.schedule-ctx-head strong { color: #eaf2ff; font-size: 12px; }
.schedule-ctx-item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: #eaf2ff; cursor: pointer; transition: background .14s ease, transform .14s ease; }
.schedule-ctx-item:hover { background: rgba(43,124,255,.16); transform: translateX(2px); }
.schedule-ctx-item span:last-child { display: flex; flex-direction: column; }
.schedule-ctx-item strong { font-size: 13px; }
.schedule-ctx-item small { color: #8aa4c4; font-size: 11px; }
.schedule-ctx-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: rgba(43,124,255,.18); color: #7db4ff; }
.schedule-ctx-ic.com { background: rgba(255,176,46,.18); color: #ffc06a; }
/* modal de comentario */
.schedule-note-overlay { position: fixed; inset: 0; z-index: 1450; display: grid; place-items: center; background: rgba(4,10,20,.6); backdrop-filter: blur(3px); padding: 20px; }
.schedule-note-card { width: min(520px, 94vw); background: linear-gradient(180deg, rgba(14,32,58,.99), rgba(8,20,38,.99)); border: 1px solid rgba(82,166,255,.26); border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.55); padding: 18px; }
.schedule-note-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.schedule-note-card h3 { margin: 4px 0 0; color: #eaf2ff; font-size: 16px; }
.schedule-note-card header button { border: 0; background: transparent; color: #9fb7d4; font-size: 18px; cursor: pointer; line-height: 1; }
.schedule-note-card textarea { width: 100%; resize: vertical; min-height: 110px; background: rgba(6,16,30,.9); border: 1px solid rgba(82,166,255,.28); border-radius: 12px; padding: 11px 13px; color: #eaf2ff; font-size: 13px; font-family: inherit; }
.schedule-note-card textarea:focus { outline: none; border-color: #52a6ff; box-shadow: 0 0 0 3px rgba(82,166,255,.18); }
.schedule-note-card footer { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.schedule-note-card footer > span { flex: 1; }
.schedule-note-card footer .danger { margin-right: auto; }
.schedule-legend {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 9px;
  align-items: center;
  border: 1px solid rgba(72,126,192,.20);
  border-radius: 10px;
  padding: 10px;
  background: rgba(5,18,35,.44);
}
.schedule-legend span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 24px;
  border-radius: 6px;
  color: #071626;
  font-size: 11px;
  font-weight: 950;
}
.schedule-legend .ct { background: #91d354; }
.schedule-legend .on { background: #16add8; }
.schedule-legend .rec { background: #7dd3fc; }
.schedule-legend .su { background: #ffd76c; }
.schedule-legend .reservas { background: #d7dce4; }
.schedule-legend .baja { background: #b066ff; }
.schedule-legend small { color: #a9bed8; }
.schedule-employee-list { padding: 0 16px 16px; display: grid; gap: 8px; }
.schedule-employee-list button { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; text-align: left; border: 1px solid rgba(72,126,192,.24); border-radius: 10px; padding: 10px; background: rgba(6,20,38,.70); color: #eaf6ff; }
.schedule-employee-list button span { color: #7dfce6; font-size: 12px; font-weight: 900; }
.schedule-employee-list button small { grid-column: 1 / -1; color: #8da8c8; }
.schedule-employee-empty { margin: 0; color: #8da8c8; }
.schedule-employee-database { margin-top: 16px; border-top: 1px solid rgba(72,126,192,.22); padding-top: 14px; }
.schedule-employee-database > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.schedule-employee-database h3 { margin: 3px 0 0; }
.schedule-employee-database > div { display: grid; gap: 10px; }
.schedule-employee-card { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border: 1px solid rgba(72,126,192,.26); border-radius: 12px; padding: 11px; background: linear-gradient(145deg, rgba(12,34,61,.78), rgba(6,19,36,.72)); }
.schedule-employee-card div { display: grid; gap: 3px; }
.schedule-employee-card strong { color: #f2fbff; }
.schedule-employee-card span { color: #7dfce6; font-size: 12px; font-weight: 900; }
.schedule-employee-card small { color: #95aecb; font-size: 11px; }
.schedule-employee-card button { min-height: 34px; border: 1px solid rgba(82,166,255,.34); border-radius: 9px; padding: 0 12px; background: rgba(31,122,255,.14); color: #bfe2ff; font-weight: 900; }
.schedule-code-picker {
  position: fixed;
  z-index: 1000;
  width: min(230px, 90vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(82,166,255,.42);
  border-radius: 16px;
  background: rgba(5,18,35,.96);
  box-shadow: 0 24px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.schedule-code-picker strong { grid-column: 1 / -1; color: #eaf7ff; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.schedule-code-picker button { min-height: 38px; border: 0; border-radius: 10px; color: #071626; font-weight: 950; cursor: pointer; }
.schedule-code-picker .ct { background: #91d354; }
.schedule-code-picker .on { background: #16add8; }
.schedule-code-picker .on-ct,
.schedule-code-picker .su { background: #ffd76c; }
.schedule-code-picker .reservas { background: #d7dce4; }
.schedule-code-picker .libre { background: #ff1717; color: #120000; }
.schedule-code-picker .vacaciones { background: #ffe29a; color: #3d2500; }
.schedule-code-picker .baja { background: #b066ff; color: #18002d; }
.schedule-code-picker .rec { background: #7dd3fc; }
.schedule-code-picker .festivo { background: #ffe600; color: #3d2f00; }
.schedule-warning-line { border: 1px solid rgba(255,178,70,.32); border-radius: 9px; padding: 8px; background: rgba(255,178,70,.09); color: #ffd79a !important; }
.schedule-warning-line span { width: 100%; }
.schedule-onct-overlay { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 20px; background: rgba(2,8,18,.72); backdrop-filter: blur(8px); }
.schedule-onct-card { width: min(520px, 96vw); border: 1px solid rgba(82,166,255,.42); border-radius: 18px; padding: 16px; background: #0a1a30; color: white; box-shadow: 0 28px 80px rgba(0,0,0,.48); }
.schedule-onct-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.schedule-onct-card header button { width: 34px; height: 34px; border: 1px solid var(--line2); border-radius: 9px; background: #08162a; color: white; }
.schedule-onct-card p { margin: 0 0 12px; color: #a9bed8; }
.schedule-onct-card label { display: grid; gap: 6px; color: #9cb2ce; font-size: 12px; font-weight: 900; }
.schedule-onct-card select,
.schedule-onct-card input { width: 100%; border: 1px solid var(--line2); border-radius: 9px; background: rgba(6,20,38,.92); color: white; padding: 9px 10px; }
.schedule-onct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.schedule-onct-card footer { display: flex; justify-content: flex-end; gap: 10px; }

/* Nexus Hub v88: Reception AI comments analyzer */
.reception-module {
  min-height: 100%;
  padding: 7px 18px 24px;
  display: grid;
  gap: 10px;
  color: #eaf6ff;
  overflow: auto;
}
.reception-hero {
  height: 86px;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(58,113,178,.42);
  border-radius: 8px;
  padding: 15px 17px;
  background:
    linear-gradient(90deg, rgba(5,16,31,.98) 0%, rgba(5,16,31,.96) 29%, rgba(5,16,31,.79) 48%, rgba(5,16,31,.24) 71%, rgba(5,16,31,.16) 100%),
    url('../img/reception-hero-strip.png') right center / auto 100% no-repeat,
    linear-gradient(135deg, #06172b, #071f3d 70%, #06182d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.018), 0 16px 45px rgba(0,0,0,.16);
}
.reception-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(54,189,255,.65), transparent);
}
.reception-hero .problem-kicker { display: none; }
.reception-hero-copy { position: relative; z-index: 2; min-width: 310px; }
.reception-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(20px, 1.55vw, 24px);
  line-height: 1;
  letter-spacing: -.035em;
}
.reception-title-row { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; }
.reception-title-row p { margin: 0; color: #f2f7ff; font-size: 13px; font-weight: 800; white-space: nowrap; }
.reception-complex-select {
  min-width: 136px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(82,166,255,.26);
  border-radius: 6px;
  padding: 0 9px;
  background: rgba(7,23,43,.86);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.reception-complex-select svg { width: 14px; color: #b7d7f7; }
.reception-complex-select select { flex: 1; border: 0; background: transparent; color: #eaf6ff; outline: 0; font-weight: 850; font-size: 12px; }
.reception-complex-select select option { background: #0e1b30; color: #eaf6ff; }
.reception-hero-scene { display: none; }
.reception-top-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.35fr) minmax(340px, .75fr);
  gap: 10px;
}
.reception-card,
.reception-overview-card,
.reception-table-card {
  border: 1px solid rgba(72,126,192,.30);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(12,34,61,.82), rgba(7,21,39,.92));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.018);
}
.reception-card { min-height: 184px; padding: 14px 17px; }
.reception-upload-card { min-height: 214px; }
.reception-card h2,
.reception-overview-card h2,
.reception-table-card h2,
.reception-chart-card h3 { margin: 0; color: #f7fbff; }
.reception-card h2 { font-size: 12px; line-height: 1.15; font-weight: 950; color: #bde8ff; }
.reception-card p,
.reception-overview-card p,
.reception-table-card p { margin: 6px 0 0; color: #9fb7d4; font-size: 11px; }
.reception-upload-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.reception-analyze-button {
  min-width: 132px;
  min-height: 42px;
  border-radius: 7px;
  font-size: 12px;
}
.reception-analyze-button:disabled {
  cursor: not-allowed;
  opacity: .48;
  filter: grayscale(.25);
}
.reception-dropzone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.reception-dropzone {
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 3px;
  margin-top: 10px;
  border: 1px dashed rgba(91,172,255,.52);
  border-radius: 8px;
  background: rgba(5,18,35,.56);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.reception-dropzone:hover,
.reception-dropzone.dragover { transform: translateY(-1px); border-color: rgba(88,220,255,.9); background: rgba(8,36,63,.76); }
.reception-dropzone.has-file {
  border-color: rgba(45,240,160,.78);
  background: linear-gradient(145deg, rgba(10,70,58,.64), rgba(6,22,40,.82));
}
.reception-dropzone > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #9ccfff;
}
.reception-dropzone svg { width: 19px; }
.reception-dropzone strong { color: #dcecff; font-size: 11px; }
.reception-dropzone small { color: #91aeca; font-size: 10px; }
.reception-dropzone .refresh-button {
  min-height: 25px;
  border-radius: 5px;
  padding: 0 16px;
  font-size: 11px;
  box-shadow: 0 8px 18px rgba(31,122,255,.20);
}
.reception-upload-card footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; color: #8fa8c8; font-size: 10px; }
.reception-upload-card footer button,
.reception-history-card header button {
  border: 0;
  background: transparent;
  color: #22b6ff;
  font-weight: 850;
  cursor: pointer;
}
.reception-process {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 122px;
}
.reception-process div {
  display: grid;
  place-items: center;
  gap: 6px;
  color: #b7c8dd;
  text-align: center;
}
.reception-process i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #58d6ff;
  background: rgba(31,122,255,.12);
  box-shadow: 0 0 32px rgba(31,122,255,.13);
}
.reception-process div.active i { color: #34f5a0; background: rgba(18,197,128,.15); }
.reception-process svg { width: 24px; }
.reception-process span { font-size: 11px; line-height: 1.35; }
.reception-process b { color: #2a7fb1; font-size: 24px; font-weight: 400; }
.reception-history-card header,
.reception-overview-card > header,
.reception-table-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.reception-history-card header { margin-bottom: 8px; }
.reception-history-card header span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  border: 1px solid rgba(82,166,255,.30);
  border-radius: 999px;
  color: #2fe4ff;
  font-size: 11px;
  font-weight: 950;
}
.reception-history-card [data-reception-history] { display: grid; gap: 8px; max-height: 180px; overflow: auto; padding-right: 2px; }
.reception-history-month {
  border: 1px solid rgba(72,126,192,.22);
  border-radius: 7px;
  background: rgba(5,18,35,.46);
}
.reception-history-month summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  color: #dcecff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}
.reception-history-month summary b {
  color: #2fe4ff;
  font-size: 11px;
}
.reception-history-month div {
  display: grid;
  gap: 6px;
  padding: 0 8px 8px;
}
.reception-history-month button {
  border: 1px solid rgba(82,166,255,.20);
  border-radius: 7px;
  padding: 8px 9px;
  background: rgba(8,29,52,.74);
  color: #b9cee6;
  text-align: left;
  cursor: pointer;
}
.reception-history-month button:hover { border-color: rgba(88,220,255,.62); background: rgba(11,43,74,.88); }
.reception-history-month button strong { display: block; color: #f7fbff; font-size: 12px; }
.reception-history-month button span { display: block; margin-top: 3px; color: #91aeca; font-size: 10px; }
.reception-upload-item {
  display: grid;
  grid-template-columns: 29px 1fr auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid rgba(72,126,192,.18);
  padding: 5px 0 7px;
}
.reception-upload-item:last-child { border-bottom: 0; }
.reception-upload-item i {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #0fcf83, #0a9b65);
  color: white;
  font-style: normal;
  font-weight: 950;
}
.reception-upload-item strong { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.reception-upload-item small { color: #8fa8c8; font-size: 10px; }
.reception-status-pill {
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(13,197,128,.15);
  color: #36eda2;
  font-size: 10px;
  font-weight: 900;
}
.reception-muted { color: #819bb9 !important; }
.reception-overview-card { padding: 16px 18px; }
.reception-overview-grid {
  display: grid;
  grid-template-columns: 300px minmax(270px, .95fr) minmax(330px, 1.35fr);
  gap: 10px;
  margin-top: 14px;
}
.reception-kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.reception-kpi-grid article {
  min-height: 64px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(72,126,192,.20);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(6,20,38,.72);
}
.reception-kpi-grid article.blue { background: linear-gradient(135deg, rgba(18,83,143,.70), rgba(8,24,44,.78)); }
.reception-kpi-grid article.green { background: linear-gradient(135deg, rgba(20,122,84,.62), rgba(8,24,44,.78)); }
.reception-kpi-grid article.yellow { background: linear-gradient(135deg, rgba(128,94,9,.45), rgba(8,24,44,.78)); }
.reception-kpi-grid article.red { background: linear-gradient(135deg, rgba(133,38,45,.50), rgba(8,24,44,.78)); }
.reception-kpi-grid span { color: #8fc4ec; font-size: 11px; font-weight: 900; }
.reception-kpi-grid strong { display: block; margin-top: 5px; color: #92d6ff; font-size: 24px; }
.reception-kpi-grid small {
  display: block;
  margin-top: 5px;
  color: #c8dcf3;
  font-size: 11px;
  font-weight: 850;
}
.reception-kpi-grid i { position: absolute; right: 13px; top: 19px; color: #2dbdff; font-size: 24px; font-style: normal; opacity: .95; }
.reception-chart-card {
  min-height: 168px;
  position: relative;
  border: 1px solid rgba(72,126,192,.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(7,21,39,.74);
}
.reception-ai-feedback {
  position: absolute;
  top: -54px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(82,166,255,.28);
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  background: rgba(5,18,35,.88);
  box-shadow: 0 16px 38px rgba(0,0,0,.24);
}
.reception-ai-feedback[hidden] { display: none; }
.reception-feedback-reason { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }
.reception-feedback-reason[hidden] { display: none; }
.reception-feedback-reason input {
  width: 240px; max-width: 46vw;
  background: rgba(9,24,44,.92);
  border: 1px solid rgba(255,107,107,.5);
  border-radius: 999px;
  padding: 6px 12px; color: #eaf2ff; font-size: 12px;
}
.reception-feedback-reason input::placeholder { color: #8aa4c4; }
.reception-feedback-reason input:focus { outline: none; border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255,107,107,.2); }
.reception-reason-send { border: none; border-radius: 999px; padding: 6px 14px; background: linear-gradient(120deg,#ff6b6b,#ff3b6b); color:#fff; font-weight:800; font-size:12px; cursor:pointer; }
.reception-reason-send:hover { filter: brightness(1.08); }
.reception-reason-cancel { border: none; background: transparent; color:#9fb7d4; cursor:pointer; font-size:14px; line-height:1; padding:4px 6px; }
.reception-reason-cancel:hover { color:#eaf2ff; }

/* ===== Guests Feedback: sub-tabs ===== */
.gf-subnav { display:flex; gap:10px; margin:18px 0 20px; flex-wrap:wrap; }
.gf-subtab {
  flex:0 0 auto; box-sizing:border-box; min-width:260px; justify-content:center;
  display:inline-flex; align-items:center; gap:9px; cursor:pointer;
  padding:11px 20px; border-radius:14px; font-weight:800; font-size:14px; line-height:1.1;
  color:#a9c2e2; border:1px solid rgba(82,166,255,.22);
  background:linear-gradient(180deg, rgba(12,28,52,.7), rgba(7,18,35,.7));
  transition:box-shadow .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
}
.gf-subtab svg { width:17px; height:17px; flex:0 0 auto; }
.gf-subtab span { white-space:nowrap; }
.gf-subtab:hover { transform:translateY(-1px); color:#eaf2ff; border-color:rgba(82,166,255,.45); }
.gf-subtab.is-active {
  color:#fff; border-color:transparent;
  background:linear-gradient(120deg,#2b7cff,#7a4bff);
  box-shadow:0 12px 30px rgba(43,124,255,.35);
}
.gf-subtab-spark { font-size:15px; filter:drop-shadow(0 0 6px rgba(122,75,255,.8)); }
.gf-subview[hidden] { display:none; }

/* Sentiment trend: filtros de ano/mes */
.reception-trend-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:6px; }
.reception-trend-head h3 { margin:0; }
.reception-trend-filters { display:flex; gap:8px; }
.reception-trend-filters select {
  background:rgba(9,24,44,.9); color:#eaf2ff; font-size:12px; font-weight:700;
  border:1px solid rgba(82,166,255,.3); border-radius:10px; padding:6px 10px; cursor:pointer;
}
.reception-trend-filters select:focus { outline:none; border-color:#52a6ff; box-shadow:0 0 0 3px rgba(82,166,255,.18); }

/* ===== Guests Feedback: 6 dropzones por complejo ===== */
.gf-complex-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(190px,1fr)); gap:14px; }
.gf-dropzone {
  position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; gap:7px;
  padding:18px 14px; border-radius:16px; cursor:pointer;
  border:1.5px dashed rgba(82,166,255,.34);
  background:radial-gradient(120% 120% at 50% 0%, rgba(20,42,75,.55), rgba(7,18,35,.55));
  transition:border-color .2s ease, transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.gf-dropzone:hover { transform:translateY(-2px); border-color:rgba(82,166,255,.7); box-shadow:0 16px 34px rgba(0,0,0,.28); }
.gf-dropzone.dragover { border-color:#52a6ff; border-style:solid; background:radial-gradient(120% 120% at 50% 0%, rgba(43,124,255,.32), rgba(7,18,35,.6)); }
.gf-dropzone.has-file { border-style:solid; border-color:rgba(30,203,131,.72); background:radial-gradient(120% 120% at 50% 0%, rgba(30,203,131,.18), rgba(7,18,35,.58)); }
.gf-dropzone.is-busy { border-style:solid; animation:gfPulse 1.3s ease-in-out infinite; }
@keyframes gfPulse { 0%,100%{ box-shadow:0 0 0 0 rgba(43,124,255,.35);} 50%{ box-shadow:0 0 0 8px rgba(43,124,255,0);} }
.gf-dz-icon { display:grid; place-items:center; width:38px; height:38px; border-radius:12px; background:rgba(43,124,255,.16); color:#7db4ff; }
.gf-dz-icon svg { width:19px; height:19px; }
.gf-dropzone strong { font-size:13.5px; color:#eaf2ff; line-height:1.2; }
.gf-dz-status { font-size:11px; color:#8aa4c4; min-height:14px; }
.gf-dz-browse { border:none; cursor:pointer; font-size:11.5px; font-weight:800; color:#fff; padding:6px 13px; border-radius:999px; background:linear-gradient(120deg,#2b7cff,#4f7bff); }
.gf-dz-browse:hover { filter:brightness(1.09); }
.gf-analyze-tile {
  min-height:152px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  border-radius:16px; border:1px solid rgba(82,166,255,.24);
  background:linear-gradient(145deg, rgba(43,124,255,.12), rgba(36,214,232,.06));
}
.gf-analyze-button {
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-width:148px; min-height:44px;
  border:none; border-radius:14px; cursor:pointer; color:#fff; font-weight:900; font-size:14px;
  background:linear-gradient(120deg,#24d6e8,#2b7cff 52%,#7a4bff);
  box-shadow:0 14px 32px rgba(43,124,255,.34);
  transition:transform .16s ease, filter .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.gf-analyze-button svg { width:17px; height:17px; }
.gf-analyze-button:hover:not(:disabled) { transform:translateY(-1px); filter:brightness(1.07); box-shadow:0 18px 38px rgba(43,124,255,.42); }
.gf-analyze-button:disabled { cursor:not-allowed; opacity:.48; box-shadow:none; }
.gf-analyze-button.is-busy { opacity:.9; }
.gf-analyze-tile small { color:#9fb7d4; font-size:11px; font-weight:800; }

/* ===== Guests Feedback: AI Recomendaciones ===== */
.gf-recos { display:flex; flex-direction:column; gap:18px; }
.gf-recos-head { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; align-items:flex-start; }
.gf-recos-head h2 { margin:4px 0 6px; }
.gf-recos-head p { color:#a9c2e2; max-width:640px; font-size:13px; }
.gf-recos-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.gf-recos-meta { color:#8aa4c4; font-size:12px; }
.gf-recos-meta[hidden] { display:none; }
.gf-recos-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(320px,1fr)); gap:16px; }
.gf-recos-empty { grid-column:1/-1; display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; padding:46px 20px; color:#a9c2e2; }
.gf-recos-empty h3 { color:#eaf2ff; margin:0; }
.gf-recos-empty p { max-width:440px; font-size:13px; }
.gf-recos-orb {
  width:96px; height:96px; border-radius:50%;
  background:conic-gradient(from 0deg, #2b7cff, #7a4bff, #24d6e8, #2b7cff);
  filter:blur(2px); opacity:.85; animation:gfSpin 6s linear infinite;
  box-shadow:0 0 42px rgba(82,166,255,.5);
}
@keyframes gfSpin { to { transform:rotate(360deg); } }
.gf-reco-card {
  position:relative; display:flex; flex-direction:column; gap:10px; padding:18px;
  border-radius:18px; border:1px solid rgba(82,166,255,.22);
  background:linear-gradient(180deg, rgba(12,28,52,.8), rgba(7,18,35,.85)); overflow:hidden;
}
.gf-reco-card::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:linear-gradient(#2b7cff,#7a4bff); }
.gf-reco-card.sev-alta::before { background:linear-gradient(#ff6b6b,#ff3b6b); }
.gf-reco-card.sev-media::before { background:linear-gradient(#ffb02e,#ff8a3d); }
.gf-reco-card.sev-baja::before { background:linear-gradient(#1ecb83,#24d6e8); }
.gf-reco-top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.gf-reco-badge { font-size:10.5px; font-weight:900; text-transform:uppercase; letter-spacing:.04em; padding:4px 9px; border-radius:999px; }
.gf-reco-badge.sev-alta { background:rgba(255,107,107,.18); color:#ff8a8a; }
.gf-reco-badge.sev-media { background:rgba(255,176,46,.18); color:#ffc06a; }
.gf-reco-badge.sev-baja { background:rgba(30,203,131,.18); color:#63e3ad; }
.gf-reco-count { margin-left:auto; font-size:11px; color:#8aa4c4; font-weight:800; }
.gf-reco-card h4 { margin:0; color:#eaf2ff; font-size:15px; }
.gf-reco-issue { color:#c6d6ec; font-size:13px; }
.gf-reco-suggest { background:rgba(43,124,255,.1); border:1px solid rgba(82,166,255,.2); border-radius:12px; padding:10px 12px; font-size:13px; color:#dbe8fb; }
.gf-reco-suggest b { color:#7db4ff; }
.gf-reco-meta { font-size:11px; color:#8aa4c4; display:flex; gap:10px; flex-wrap:wrap; }
.reception-ai-feedback span { color: #9fb7d4; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.reception-ai-feedback button {
  width: 34px;
  height: 34px;
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.reception-ai-feedback button::before,
.reception-ai-feedback button::after {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}
.reception-ai-feedback button::before { border: 1px solid var(--thumb-glow); }
.reception-ai-feedback button::after { background: radial-gradient(circle, var(--thumb-glow) 0 12%, transparent 62%); filter: blur(3px); }
.reception-ai-feedback button:hover { transform: translateY(-2px) scale(1.08); filter: brightness(1.12); }
.reception-ai-feedback button.is-sending,
.reception-ai-feedback button.is-sent {
  animation: receptionThumbPulse .82s cubic-bezier(.2,.9,.2,1);
  transform: translateY(-1px) scale(1.16);
}
.reception-ai-feedback button.is-sent::before { animation: receptionThumbRing 1.08s ease-out; }
.reception-ai-feedback button.is-sent::after { animation: receptionThumbFlash .86s ease-out; }
.reception-ai-feedback button.is-sending { opacity: .78; }
.reception-ai-feedback .good { --thumb-glow: rgba(32,223,141,.78); background: linear-gradient(135deg, #20df8d, #0e8f64); box-shadow: 0 0 24px rgba(32,223,141,.24); }
.reception-ai-feedback .bad { --thumb-glow: rgba(255,84,112,.82); background: linear-gradient(135deg, #ff5470, #b3123a); box-shadow: 0 0 24px rgba(255,84,112,.24); }
.reception-thumb-toast {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 4;
  width: max-content;
  max-width: 160px;
  transform: translateX(-50%);
  border: 1px solid var(--thumb-glow);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(4,15,30,.96);
  color: #eafff8;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 0 24px var(--thumb-glow), 0 12px 28px rgba(0,0,0,.30);
  animation: receptionThumbToast 4s ease forwards;
}
@keyframes receptionThumbPulse {
  0% { box-shadow: 0 0 0 0 var(--thumb-glow), 0 0 20px var(--thumb-glow); transform: translateY(0) scale(1); }
  35% { box-shadow: 0 0 0 8px rgba(82,186,255,0), 0 0 34px var(--thumb-glow); transform: translateY(-3px) scale(1.2) rotate(-7deg); }
  70% { transform: translateY(1px) scale(1.1) rotate(5deg); }
  100% { box-shadow: 0 0 0 0 rgba(82,186,255,0), 0 0 22px var(--thumb-glow); transform: translateY(-1px) scale(1.16) rotate(0); }
}
@keyframes receptionThumbRing {
  0% { opacity: .9; transform: scale(.65); }
  100% { opacity: 0; transform: scale(1.9); }
}
@keyframes receptionThumbFlash {
  0% { opacity: .6; transform: scale(.7); }
  65% { opacity: .22; transform: scale(1.35); }
  100% { opacity: 0; transform: scale(1.7); }
}
@keyframes receptionThumbToast {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.94); }
  12% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  72% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -8px) scale(.98); }
}
.reception-donut-wrap { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center; margin-top: 12px; }
.reception-donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#2b7cff 0 28%, #1ecb83 28% 50%, #ffcf31 50% 68%, #b84bc9 68% 83%, #ff6b35 83% 91%, #8097bd 91% 100%);
  position: relative;
}
.reception-donut::after { content: ""; position: absolute; inset: 32px; border-radius: inherit; background: #071527; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.reception-category-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.reception-category-list li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; color: #b9cee6; font-size: 12px; }
.reception-category-list i { width: 9px; height: 9px; border-radius: 999px; }
.reception-category-list b { color: #cfe6ff; }
.reception-trend-svg { width: 100%; min-height: 135px; }
.reception-trend-axis { stroke: rgba(126,163,203,.20); stroke-width: 1; }
.reception-trend-label { fill: #8fa8c8; font-size: 10px; font-weight: 800; }
.reception-trend-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 3px;
  color: #bfd8f2;
  font-size: 11px;
  font-weight: 850;
}
.reception-trend-legend span { display: inline-flex; align-items: center; gap: 6px; }
.reception-trend-legend i { width: 9px; height: 9px; border-radius: 999px; }
.reception-trend-legend i.positive { background: #20df8d; }
.reception-trend-legend i.neutral { background: #ffcf31; }
.reception-trend-legend i.negative { background: #ff6646; }
.reception-trend-positive { fill: none; stroke: #20df8d; stroke-width: 3; }
.reception-trend-neutral { fill: none; stroke: #ffcf31; stroke-width: 3; }
.reception-trend-negative { fill: none; stroke: #ff6646; stroke-width: 3; }
.reception-trend-dot.positive { fill: #20df8d; }
.reception-trend-dot.neutral { fill: #ffcf31; }
.reception-trend-dot.negative { fill: #ff6646; }
.reception-table-card { padding: 16px 18px; }
.reception-table-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.reception-table-tools label {
  min-width: 260px;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(82,166,255,.26);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(6,20,38,.78);
}
.reception-table-tools input,
.reception-table-tools select {
  border: 1px solid rgba(82,166,255,.24);
  border-radius: 8px;
  background: rgba(6,20,38,.88);
  color: #dbeeff;
  min-height: 42px;
  padding: 0 11px;
  outline: 0;
}
.reception-table-tools label input { flex: 1; min-height: auto; border: 0; padding: 0; background: transparent; }
.reception-search-field span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(82,186,255,.13);
  color: #7fd7ff;
  flex: 0 0 auto;
}
.reception-search-field svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.reception-table-tools .is-active {
  border-color: rgba(38,226,161,.62);
  box-shadow: 0 0 0 1px rgba(38,226,161,.18), 0 0 18px rgba(38,226,161,.10);
}
.reception-table-scroll { overflow: auto; margin-top: 12px; }
.reception-comments-table { width: 100%; border-collapse: collapse; min-width: 1510px; }
.reception-comments-table th {
  height: 40px;
  background: rgba(20,62,108,.76);
  color: #dcecff;
  font-size: 12px;
  text-align: left;
  padding: 0;
}
.reception-comments-table th button {
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  padding: 0 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.reception-comments-table th button::after {
  content: "\2195";
  color: #77a9dc;
  font-size: 11px;
  opacity: .72;
}
.reception-comments-table th button.is-active {
  color: #ffffff;
  background: rgba(82,166,255,.16);
}
.reception-comments-table th button.is-active[data-sort-dir="asc"]::after { content: "\2191"; color: #28e2a1; opacity: 1; }
.reception-comments-table th button.is-active[data-sort-dir="desc"]::after { content: "\2193"; color: #28e2a1; opacity: 1; }
.reception-comments-table th button:hover { background: rgba(82,166,255,.11); }
.reception-comments-table th button:focus-visible {
  outline: 2px solid #54bbff;
  outline-offset: -2px;
}
.reception-comments-table td {
  border-bottom: 1px solid rgba(72,126,192,.16);
  color: #cfe1f4;
  font-size: 12px;
  padding: 11px 16px;
  vertical-align: middle;
}
.reception-comment-cell {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 56px;
  position: relative;
  max-width: 330px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 32px 6px 8px;
  background: linear-gradient(90deg, rgba(82,166,255,.06), transparent 72%);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.reception-comment-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0 24%, rgba(125,252,230,.16) 44%, transparent 64% 100%);
  opacity: 0;
  transform: translateX(-65%);
  pointer-events: none;
}
.reception-comment-cell::after {
  content: ">";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125,252,230,.28);
  border-radius: 999px;
  background: rgba(8,27,48,.86);
  color: #7dfce6;
  font-size: 12px;
  font-weight: 950;
  opacity: .74;
  transform: translateY(-50%);
  box-shadow: 0 0 14px rgba(33,231,255,.10);
  animation: receptionCommentCue 3.4s ease-in-out infinite;
}
.reception-comment-cell strong {
  color: #f7fbff;
  font-size: 12px;
}
.reception-comment-cell span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #cfe1f4;
  line-height: 1.35;
}
.reception-comment-cell:hover,
.reception-comment-cell:focus-visible {
  border-color: rgba(125,252,230,.42);
  background: linear-gradient(90deg, rgba(82,166,255,.16), rgba(27,242,207,.06) 76%);
  box-shadow: 0 0 0 1px rgba(125,252,230,.08), 0 0 22px rgba(33,231,255,.14);
  transform: translateY(-1px);
}
.reception-comment-cell:hover::before,
.reception-comment-cell:focus-visible::before {
  opacity: 1;
  animation: receptionCommentShimmer .72s ease-out;
}
.reception-comment-cell:hover::after,
.reception-comment-cell:focus-visible::after {
  opacity: 1;
  border-color: rgba(125,252,230,.78);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 20px rgba(33,231,255,.28);
  animation: none;
}
.reception-comment-cell:hover strong,
.reception-comment-cell:hover span { color: #ffffff; }
.reception-comment-cell:focus-visible {
  outline: 2px solid rgba(84,187,255,.92);
  outline-offset: 3px;
  border-radius: 6px;
}
@keyframes receptionCommentCue {
  0%, 72%, 100% { transform: translateY(-50%) scale(1); box-shadow: 0 0 14px rgba(33,231,255,.10); }
  82% { transform: translateY(-50%) scale(1.12); box-shadow: 0 0 24px rgba(33,231,255,.24); }
  90% { transform: translateY(-50%) scale(.98); }
}
@keyframes receptionCommentShimmer {
  from { transform: translateX(-65%); }
  to { transform: translateX(65%); }
}
.reception-comment-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 18%, rgba(40,137,255,.20), transparent 34%),
    rgba(2,8,18,.78);
  backdrop-filter: blur(12px);
}
.reception-comment-modal[hidden] { display: none; }
.reception-comment-modal-card {
  width: min(720px, calc(100vw - 34px));
  max-height: min(82vh, 720px);
  overflow: auto;
  border: 1px solid rgba(96,185,255,.42);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(7,23,43,.98), rgba(4,12,25,.98) 62%, rgba(8,34,52,.98));
  box-shadow: 0 28px 90px rgba(0,0,0,.58), 0 0 0 1px rgba(125,252,230,.08), 0 0 55px rgba(34,153,255,.18);
  color: #eaf6ff;
  animation: receptionModalIn .22s ease-out;
}
.reception-comment-modal-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(96,185,255,.22);
}
.reception-comment-modal-card header span,
.reception-comment-modal-tools > span,
.reception-comment-modal-body > span,
.reception-comment-modal-original > span {
  color: #7dfce6;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
.reception-comment-modal-card h2 {
  margin: 5px 0 0;
  font-size: 24px;
  line-height: 1.15;
}
.reception-comment-modal-card header button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(125,196,255,.36);
  border-radius: 8px;
  background: rgba(8,27,48,.92);
  color: #dff3ff;
  cursor: pointer;
}
.reception-comment-modal-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 22px;
}
.reception-comment-modal-tools div {
  display: inline-flex;
  gap: 6px;
  border: 1px solid rgba(96,185,255,.28);
  border-radius: 999px;
  padding: 4px;
  background: rgba(5,18,35,.78);
}
.reception-comment-modal-tools button {
  min-width: 96px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9fb7d4;
  font-weight: 900;
  cursor: pointer;
}
.reception-comment-modal-tools button.is-active {
  background: linear-gradient(135deg, #1d7cff, #1bf2cf);
  color: #031225;
  box-shadow: 0 0 24px rgba(31,180,255,.24);
}
.reception-comment-modal-body {
  margin: 0 22px 18px;
  border: 1px solid rgba(96,185,255,.26);
  border-radius: 10px;
  padding: 18px;
  background: rgba(3,14,28,.68);
}
.reception-comment-modal-body h3 {
  margin: 8px 0 12px;
  color: #ffffff;
  font-size: 18px;
}
.reception-comment-modal-body p {
  margin: 0;
  color: #dcecff;
  font-size: 15px;
  line-height: 1.62;
  white-space: pre-wrap;
}
.reception-comment-modal-original {
  margin: 0 22px 22px;
  border-top: 1px solid rgba(96,185,255,.18);
  padding-top: 14px;
}
.reception-comment-modal-original h4 {
  margin: 8px 0 6px;
  color: #b9d2ef;
}
.reception-comment-modal-original p {
  margin: 0;
  color: #8ea9c8;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}
@keyframes receptionModalIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.reception-category-badge,
.reception-sentiment-badge,
.reception-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
}
.reception-category-badge { background: rgba(43,124,255,.16); color: #9dccff; }
.reception-sentiment-badge.positive { background: rgba(32,223,141,.14); color: #2ef0a0; }
.reception-sentiment-badge.neutral { background: rgba(255,207,49,.14); color: #ffd85f; }
.reception-sentiment-badge.negative { background: rgba(255,84,112,.14); color: #ff7f96; }
.reception-tag { margin-right: 5px; background: rgba(72,126,192,.18); color: #b9d2ef; }
.reception-row-actions { display: inline-flex; gap: 8px; }
.reception-row-actions button { border: 0; background: transparent; color: #9fc9ff; cursor: pointer; }
.reception-meeting-check {
  position: relative;
  min-width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.reception-meeting-check input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.reception-meeting-check span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126,168,214,.48);
  border-radius: 6px;
  background: rgba(7,20,38,.9);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.reception-meeting-check span::after {
  content: "\2713";
  color: #001b12;
  font-size: 14px;
  font-weight: 950;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .16s ease, transform .16s ease;
}
.reception-meeting-check input:checked + span {
  border-color: rgba(38,226,161,.78);
  background: #28e2a1;
  box-shadow: 0 0 18px rgba(38,226,161,.22);
}
.reception-meeting-check input:checked + span::after { opacity: 1; transform: scale(1); }
.reception-meeting-check:hover span { transform: translateY(-1px); border-color: rgba(126,210,255,.82); }
.reception-table-card footer { margin-top: 12px; color: #9cb2ce; font-size: 12px; }
.reception-feedback {
  position: sticky;
  bottom: 10px;
  z-index: 5;
  margin: 0;
  border: 1px solid rgba(74,224,177,.35);
  border-radius: 10px;
  padding: 11px;
  background: rgba(13,82,64,.94);
  color: #d9fff2;
  text-align: center;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .26s ease, transform .26s ease;
}
.reception-feedback.is-visible { opacity: 1; transform: translateY(0); }
.reception-feedback[data-type="error"] { border-color: rgba(255,84,112,.42); background: rgba(110,26,46,.94); }

@media (max-width: 1300px) {
  .debt-kpi-grid { grid-template-columns: repeat(2, minmax(210px, 1fr)); }
  .help-module-grid { grid-template-columns: repeat(2, minmax(230px, 1fr)); }
  .schedule-controls { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .schedule-workspace { grid-template-columns: 1fr; }
  .schedule-side-panel { position: static; }
  .reception-top-grid,
  .reception-overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .help-center-shell, .schedule-module, .reception-module { padding: 12px; }
  .help-center-hero, .schedule-hero, .help-toolbar, .reception-hero, .reception-table-card > header { align-items: stretch; flex-direction: column; }
  .help-hero-orbit { display: none; }
  .help-module-grid, .schedule-controls, .schedule-kpis, .schedule-form-grid, .debt-kpi-grid, .reception-kpi-grid, .reception-donut-wrap { grid-template-columns: 1fr; }
  .schedule-form-grid .wide { grid-column: auto; }
  .schedule-modal-card footer { grid-template-columns: 1fr; }
  .schedule-modal-card footer span { display: none; }
  .schedule-actions, .reception-table-tools { width: 100%; }
  .schedule-actions button, .reception-table-tools > * { flex: 1; }
  .reception-ai-feedback { position: static; margin-bottom: 10px; }
}

/* Nexus Hub v107: interactive cleaning planner */
.cleaning-module { min-height: 100%; padding: 10px 18px 28px; color: #eaf6ff; overflow: auto; }
.cleaning-hero { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(72,126,192,.28); padding: 8px 0 14px; }
.cleaning-hero h1 { margin: 4px 0; font-size: 26px; letter-spacing: 0; }
.cleaning-hero p { margin: 0; color: #91aac8; font-size: 12px; }
.cleaning-hero-actions { display: flex; align-items: end; gap: 8px; }
.cleaning-hero-actions label { display: grid; gap: 5px; min-width: 210px; color: #89a5c7; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.cleaning-hero-actions select { min-height: 38px; border: 1px solid var(--line2); border-radius: 6px; padding: 0 10px; background: #08182c; color: white; }
.cleaning-kpis { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.cleaning-kpis article { min-height: 86px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; border: 1px solid rgba(72,126,192,.28); border-radius: 8px; padding: 11px; background: #0a213c; }
.cleaning-kpis article > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(40,137,255,.12); color: #52baff; }
.cleaning-kpis article > span svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cleaning-kpis article:nth-child(1) > span { background: rgba(139,92,246,.16); color: #a987ff; }
.cleaning-kpis article:nth-child(2) > span { background: rgba(39,151,255,.15); color: #45b6ff; }
.cleaning-kpis article:nth-child(3) > span { background: rgba(255,166,64,.15); color: #ffb14f; }
.cleaning-kpis article:nth-child(4) > span { background: rgba(39,151,255,.15); color: #45b6ff; }
.cleaning-kpis article:nth-child(5) > span { background: rgba(126,151,181,.14); color: #9ab0c9; }
.cleaning-kpis article.warning > span { background: rgba(255,166,64,.13); color: #ffb14f; }
.cleaning-kpis article div { display: grid; gap: 1px; min-width: 0; }
.cleaning-kpis small { color: #8fa8c6; font-size: 10px; }
.cleaning-kpis strong { color: #f5fbff; font-size: 22px; overflow-wrap: anywhere; }
.cleaning-kpis em { color: #7e9ab9; font-size: 10px; font-style: normal; }
.cleaning-table-card, .cleaning-forecast { border: 1px solid rgba(72,126,192,.28); border-radius: 8px; background: #081a30; overflow: hidden; }
.cleaning-table-card > header, .cleaning-forecast > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-bottom: 1px solid rgba(72,126,192,.22); }
.cleaning-table-card > header > div, .cleaning-forecast > header > div { display: flex; align-items: center; gap: 9px; }
.cleaning-table-tools { display: flex; align-items: center; gap: 8px; }
.cleaning-print-button { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(112,211,255,.55); border-radius: 7px; padding: 0 11px; background: linear-gradient(135deg, #123d6c, #1768a2); color: #f4fbff; font-size: 10px; font-weight: 950; letter-spacing: .02em; cursor: pointer; box-shadow: 0 0 16px rgba(66,190,255,.16), inset 0 1px 0 rgba(255,255,255,.14); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.cleaning-print-button:hover { transform: translateY(-1px); border-color: #76dbff; box-shadow: 0 0 22px rgba(66,190,255,.30), inset 0 1px 0 rgba(255,255,255,.18); }
.cleaning-print-button:active { transform: translateY(0); }
.cleaning-print-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cleaning-table-card h2, .cleaning-forecast h2 { margin: 0; font-size: 14px; }
.cleaning-table-card header span, .cleaning-forecast header span { border-radius: 999px; padding: 3px 7px; background: rgba(38,133,255,.13); color: #76c8ff; font-size: 10px; font-weight: 900; }
.cleaning-search { min-width: 220px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(72,126,192,.28); border-radius: 6px; padding: 0 9px; background: #07172a; }
.cleaning-search svg { width: 15px; color: #7b9bbb; }
.cleaning-search input { width: 100%; min-height: 34px; border: 0; outline: 0; background: transparent; color: white; }
.cleaning-table-scroll { width: 100%; overflow: auto; }
.cleaning-table { min-width: 2350px; width: 100%; border-collapse: collapse; font-size: 10px; }
.cleaning-table th, .cleaning-table td { height: 45px; border-right: 1px solid rgba(72,126,192,.16); border-bottom: 1px solid rgba(72,126,192,.16); padding: 6px; text-align: center; white-space: nowrap; }
.cleaning-table th { position: sticky; top: 0; z-index: 2; background: #0d2948; color: #a9c2df; font-size: 9px; text-transform: uppercase; }
.cleaning-table th small, .cleaning-table td small { display: block; color: #718eae; font-size: 8px; }
.cleaning-table th:nth-child(-n+6), .cleaning-table td:nth-child(-n+6) { background-color: #0a2039; }
.cleaning-table td:first-child strong { display: block; color: #ffc27a; font-size: 12px; }
.cleaning-day { width: 25px; height: 25px; border: 1px solid rgba(41,218,155,.42); border-radius: 5px; background: #067c58; color: white; font-size: 10px; font-weight: 950; cursor: pointer; box-shadow: 0 0 12px rgba(20,219,150,.18); }
.cleaning-day.postponed { border-color: rgba(255,168,58,.48); background: #9a590c; }
.cleaning-not-applicable, .cleaning-row-action { border: 1px solid rgba(102,136,175,.28); border-radius: 5px; padding: 5px 7px; background: #102641; color: #a6bdd8; font-size: 9px; font-weight: 850; cursor: pointer; }
.cleaning-not-applicable { color: #c2d2e5; }
.cleaning-suggestion { display: inline-grid; width: 19px; height: 19px; place-items: center; border: 1px dashed #58aef5; border-radius: 50%; color: #58aef5; }
.cleaning-dash { color: #48637f; }
.cleaning-empty { padding: 34px !important; color: #839fbd; }
.cleaning-legend { display: flex; gap: 18px; padding: 9px 12px; color: #86a0bd; font-size: 9px; }
.cleaning-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #067c58; }
.cleaning-legend .postponed::before { background: #9a590c; }
.cleaning-legend .suggested::before { background: #58aef5; }
.cleaning-legend .excluded::before { background: #607590; }
.cleaning-forecast { margin-top: 10px; }
.cleaning-forecast > div { display: grid; grid-template-columns: repeat(8, minmax(110px, 1fr)); gap: 1px; background: rgba(72,126,192,.18); }
.cleaning-forecast article { min-height: 104px; display: grid; align-content: start; gap: 2px; padding: 10px; background: #0a2038; }
.cleaning-forecast article span { color: #91aac8; font-size: 9px; text-transform: capitalize; }
.cleaning-forecast article strong { font-size: 11px; }
.cleaning-forecast article b { margin-top: 5px; color: white; font-size: 20px; }
.cleaning-forecast article small { color: #7590af; font-size: 8px; }
.cleaning-forecast article div { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.cleaning-forecast article em { border-radius: 4px; padding: 2px 4px; background: #133a60; color: #ffc27a; font-size: 8px; font-style: normal; }
.cleaning-forecast article i { color: #56718f; font-style: normal; }
.cleaning-forecast article.total { justify-content: center; background: #10284b; }
.cleaning-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 18px; background: rgba(2,8,18,.80); backdrop-filter: blur(7px); }
.cleaning-modal[hidden], .cleaning-modal [hidden] { display: none; }
.cleaning-modal-card { width: min(720px, 96vw); max-height: 92vh; overflow: auto; border: 1px solid rgba(82,166,255,.40); border-radius: 8px; background: #091b31; box-shadow: 0 26px 80px rgba(0,0,0,.50); transition: width .18s ease; }
.cleaning-modal-card.compact { width: min(480px, 94vw); }
.cleaning-modal-card > header { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-bottom: 1px solid rgba(72,126,192,.24); }
.cleaning-modal-card h2 { margin: 3px 0 0; font-size: 18px; }
.cleaning-modal-card > header button { width: 34px; height: 34px; border: 1px solid var(--line2); border-radius: 6px; background: #071629; color: white; }
.cleaning-modal-summary { display: grid; gap: 3px; padding: 14px; color: #9db5d1; }
.cleaning-modal-summary strong { color: white; }
.cleaning-modal-summary small { color: #7e99b8; }
.cleaning-modal-summary em { width: fit-content; border-radius: 4px; padding: 3px 6px; background: rgba(102,136,175,.18); color: #b8cae0; font-size: 10px; font-style: normal; }
.cleaning-action-menu { display: grid; gap: 7px; padding: 0 12px 12px; }
.cleaning-action-menu button { min-height: 38px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(82,166,255,.30); border-radius: 6px; background: #102c4e; color: #ddecfb; font-size: 12px; font-weight: 900; text-align: left; padding: 0 11px; cursor: pointer; }
.cleaning-action-menu button::before { content: ">"; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(87,174,255,.15); color: #72c3ff; font-size: 10px; }
.cleaning-action-menu button:first-child:nth-last-child(2)::before { content: "!"; background: rgba(255,88,110,.16); color: #ff9bad; }
.cleaning-action-menu button:first-child:nth-last-child(2) { border-color: rgba(255,88,110,.32); color: #ffc2cc; background: rgba(114,28,48,.28); }
.cleaning-modal form { padding: 0 14px 14px; }
.cleaning-modal form > label { display: grid; gap: 5px; color: #9cb4cf; font-size: 11px; font-weight: 900; }
.cleaning-modal form input[type="number"] { width: 140px; min-height: 36px; border: 1px solid var(--line2); border-radius: 6px; padding: 0 9px; background: #071629; color: white; }
.cleaning-modal form > p { color: #70bdf4; font-size: 10px; }
.cleaning-date-grid { display: grid; grid-template-columns: repeat(7, minmax(60px, 1fr)); gap: 6px; max-height: 310px; overflow: auto; }
.cleaning-date-grid label { position: relative; min-height: 38px; display: grid; place-items: center; border: 1px solid rgba(72,126,192,.28); border-radius: 5px; background: #0d2947; color: #a9c0da; font-size: 10px; cursor: pointer; }
.cleaning-date-grid label.suggested { border-style: dashed; border-color: #51aef2; }
.cleaning-date-grid input { position: absolute; opacity: 0; }
.cleaning-date-grid label:has(input:checked) { border-color: #27d39b; background: #087154; color: white; }
.cleaning-modal form footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(72,126,192,.22); }
.cleaning-plan-confirm { display: grid; justify-items: center; gap: 8px; padding: 4px 16px 16px; text-align: center; }
.cleaning-plan-confirm > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,166,64,.13); color: #ffb14f; }
.cleaning-plan-confirm > span svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cleaning-plan-confirm strong { color: #f4f9ff; font-size: 15px; }
.cleaning-plan-confirm p { margin: 0; color: #a5bad2; font-size: 12px; line-height: 1.45; }
.cleaning-plan-confirm footer { width: 100%; display: flex; justify-content: center; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(72,126,192,.20); }
.cleaning-plan-confirm footer button { min-width: 112px; }
.cleaning-feedback { position: sticky; bottom: 10px; z-index: 5; margin: 10px 0 0; border: 1px solid rgba(74,224,177,.35); border-radius: 6px; padding: 10px; background: rgba(13,82,64,.94); color: #d9fff2; text-align: center; font-weight: 900; }
.cleaning-feedback[data-type="error"] { border-color: rgba(255,84,112,.42); background: rgba(110,26,46,.94); }
.cleaning-feedback[data-type="loading"] { border-color: rgba(82,166,255,.40); background: rgba(16,59,102,.94); }
.schedule-matrix-head { min-height: 92px; }

@media (max-width: 1300px) {
  .cleaning-kpis { grid-template-columns: repeat(3, minmax(170px, 1fr)); }
  .cleaning-forecast > div { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
}
@media (max-width: 760px) {
  .cleaning-module { padding: 10px; }
  .cleaning-hero, .cleaning-table-card > header { align-items: stretch; flex-direction: column; }
  .cleaning-hero-actions { align-items: stretch; flex-direction: column; }
  .cleaning-hero-actions label, .cleaning-search { min-width: 0; width: 100%; }
  .cleaning-table-tools { align-items: stretch; flex-direction: column; }
  .cleaning-print-button { justify-content: center; width: 100%; }
  .cleaning-kpis { grid-template-columns: 1fr 1fr; }
  .cleaning-forecast > div { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .cleaning-date-grid { grid-template-columns: repeat(4, minmax(58px, 1fr)); }
}
