: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; }
.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: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;
}
.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;
}
.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; }
.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); }
.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-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: none; }
  .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; }
.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;
}
.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; }
.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; }
.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;
}
@media (max-width: 980px) {
  .license-editor-shell,
  .license-module-grid { grid-template-columns: 1fr; }
}
.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; }
.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; }

/* Nexus Hub v40: home dashboard, smart sales search and sales graphics */
.home-dashboard { display: grid; gap: 18px; }
.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; }
.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 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;
  padding: 9px 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;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 11px;
  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); }
.direct-chat-message-cloud[hidden] { display: none !important; }
.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%; }
}
