/* Shared page components used by the IA redesign */

.dashboard-tertiary-grid {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}
.dashboard-kpi.is-clickable { cursor: pointer; }
.dashboard-kpi.is-clickable:hover { border-color: #99afe5; background: #f8faff; }
.dashboard-relation-list,
.dashboard-power-list {
  padding: 8px 12px 14px;
}
.dashboard-relation-row,
.dashboard-power-row {
  width: 100%;
  min-height: 52px;
  padding: 8px 4px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.dashboard-relation-row:last-child,
.dashboard-power-row:last-child { border-bottom: 0; }
.dashboard-relation-row:hover,
.dashboard-power-row:hover { background: #f8faff; }
.dashboard-relation-row span:nth-child(2),
.dashboard-power-row span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dashboard-relation-row strong,
.dashboard-power-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.dashboard-relation-row small,
.dashboard-power-row small {
  color: #8994a5;
  font-size: 9px;
}
.ops-power-banner {
  min-height: 56px;
  margin-bottom: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #f0d7a8;
  border-radius: 7px;
  background: #fff8eb;
  color: #8a5a16;
  font-size: 12px;
}

.page-task-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-task-summary .task-run-card { cursor: pointer; }
.page-task-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: #667085;
  font-size: 12px;
}
.board-meta {
  margin-left: 8px;
  color: #8894a5;
  font-size: 11px;
  align-self: center;
}
.board-nested-tabs { margin-top: -8px; }

.board-sub-tabs { position: relative; }
.board-more { position: relative; margin-left: auto; }
.board-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  min-width: 140px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
  display: none;
}
.board-more.open .board-more-menu { display: block; }
.board-more-menu button {
  width: 100%;
  height: 32px;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  color: #344054;
}
.board-more-menu button:hover { background: #f4f7fb; }

html.login-page,
html.login-page body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: block !important;
  overflow: hidden !important;
  background: #fff !important;
  font-family: var(--font-ui);
}
html.login-page,
html.login-page * { box-sizing: border-box; }
.login-split {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(360px, 42%) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  background: #fff;
}
.login-brand,
.login-form-wrap {
  height: 100%;
  min-height: 0;
  overflow: auto;
}
.login-brand {
  padding: 56px 48px;
  background:
    radial-gradient(ellipse 90% 60% at 0% 0%, rgba(43, 89, 214, .34), transparent 58%),
    linear-gradient(180deg, #121826 0%, #0c1018 100%);
  color: #e8eef8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #1c2433;
}
.login-brand-mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #2b59d6;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: 0;
}
.login-brand h1 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.03em; color: #f8fafc; }
.login-brand p { margin: 0 0 28px; color: #93a0b8; font-size: 14px; line-height: 1.7; max-width: 380px; }
.login-brand-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.login-brand-list li { color: #d5deee; font-size: 14px; line-height: 1.45; padding-left: 14px; border-left: 2px solid #2b59d6; }
.login-brand-list li span { display: block; color: #7d8ba3; font-size: 12px; margin-top: 3px; }
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  padding: 48px 8vw 48px 72px;
}
.login-form {
  width: min(400px, 92vw);
  padding: 0;
  border: 0;
  background: transparent;
}
.login-form h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.02em; color: #121826; }
.login-form .lead { margin: 0 0 28px; color: #667085; font-size: 13px; line-height: 1.55; }
.login-form label { display: block; font-size: 12px; color: #3f4b60; margin: 14px 0 6px; font-weight: 600; }
.login-form input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}
.login-form input:focus { border-color: #7c9eea; outline: 3px solid rgba(43, 89, 214, .12); }
.login-form .btn-login {
  width: 100%;
  margin-top: 22px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #2b59d6;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.login-form .btn-login:hover { background: #214bbd; }
.login-form .btn-login:disabled { opacity: .65; cursor: wait; }
.login-form .err { color: #b91c1c; font-size: 13px; min-height: 18px; margin-top: 8px; }
.login-form .hint { margin-top: 18px; font-size: 12px; color: #94a3b8; line-height: 1.6; }
@media (max-width: 860px) {
  .login-split { grid-template-columns: 1fr; }
  .login-brand { min-height: auto; padding: 32px 24px; }
  .login-brand-list { display: none; }
}

.data-page-shell { max-width: none; }
.gapfill-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 20px;
  align-items: center;
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 1px solid #c9d7f5;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7f9ff 0%, #fff 100%);
}
.gapfill-hero-copy strong { display: block; margin-bottom: 6px; color: #172033; font-size: 14px; }
.gapfill-hero-copy p { margin: 0; color: #5d6b80; font-size: 12px; line-height: 1.65; max-width: 720px; }
.gapfill-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gapfill-alert {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border: 1px solid #f0d7a8;
  border-radius: 6px;
  background: #fff8eb;
  color: #8a5a16;
  font-size: 12px;
}
.gapfill-alert.is-ok {
  border-color: #b7eb8f;
  background: #f6ffed;
  color: #389e0d;
}
.recon-hero { margin-top: 0; }
.recon-board-wrap {
  grid-column: 1 / -1;
  max-height: 360px;
  overflow: auto;
  border: 1px solid #e6ebf2;
  border-radius: 6px;
  background: #fff;
}
.recon-board-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.recon-board-table th,
.recon-board-table td { padding: 6px 8px; border-bottom: 1px solid #f0f0f0; text-align: right; white-space: nowrap; }
.recon-board-table th:nth-child(1),
.recon-board-table td:nth-child(1),
.recon-board-table th:nth-child(2),
.recon-board-table td:nth-child(2),
.recon-board-table th:nth-child(14),
.recon-board-table td:nth-child(14) { text-align: left; }
.recon-board-table th { position: sticky; top: 0; background: #f7f9fc; color: #5d6b80; font-weight: 600; }
.recon-residual-pos { color: #cf1322; font-weight: 600; }
.recon-residual-neg { color: #d48806; font-weight: 600; }
.fund-hero .fund-month-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5d6b80;
  font-size: 12px;
}
.fund-hero select {
  min-width: 110px;
  height: 30px;
  border: 1px solid #d7deea;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  font-size: 12px;
}
.fund-board-wrap { max-height: 420px; }
.fund-board-table th:nth-child(2),
.fund-board-table td:nth-child(2) { text-align: right; }
.fund-board-table th:nth-child(1),
.fund-board-table td:nth-child(1) { position: sticky; left: 0; background: #fff; z-index: 1; }
.fund-board-table th:nth-child(1) { background: #f7f9fc; z-index: 2; }
.fund-board-table .fund-store-btn {
  border: 0;
  background: none;
  color: #3d5afe;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.fund-board-table tr.is-open { background: #f3f6ff; }
.fund-board-table .is-zero { color: #c5cdd8; }
.fund-board-table tfoot td { font-weight: 700; background: #f7f9fc; }
.fund-detail-wrap {
  grid-column: 1 / -1;
  border: 1px solid #e6ebf2;
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
}
.fund-detail-title { font-size: 12px; font-weight: 600; color: #172033; margin-bottom: 8px; }
.data-advanced {
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.data-advanced > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #202b3d;
  font-size: 13px;
  font-weight: 650;
}
.data-advanced > summary::-webkit-details-marker { display: none; }
.data-advanced > summary small { color: #7d899b; font-size: 11px; font-weight: 400; }
.data-advanced[open] > summary { border-bottom: 1px solid #edf0f4; }
.data-advanced-card { padding: 12px 14px; border-bottom: 1px solid #edf0f4; }
.data-advanced-card:last-child { border-bottom: 0; }
.data-advanced-title { margin-bottom: 8px; color: #344054; font-size: 12px; font-weight: 650; }
.data-advanced-title span { margin-left: 8px; color: #7d899b; font-weight: 400; }
.data-advanced-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 4px 0;
  color: #5d6b80;
  font-size: 12px;
}
.data-advanced-row input[type="number"] { width: 48px; text-align: center; }
.data-advanced-row input[type="text"] { flex: 1; min-width: 180px; }
.data-advanced-row b { min-width: 44px; color: #344054; font-size: 11px; }
.data-log-card {
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.data-log-card .progress-bar {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8edf4;
}
.data-log-card .progress-bar .fill {
  width: 0;
  height: 100%;
  background: var(--primary);
}
.data-log-card .log-area {
  height: 220px;
  margin-top: 10px;
  padding: 8px;
  overflow: auto;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  background: #fafbfd;
  font-size: 12px;
}
@media (max-width: 860px) {
  .gapfill-hero { grid-template-columns: 1fr; }
}
