/* Gaya dasar aplikasi pelanggan WiFi */
:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2933;
  background: #f3f6f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

header {
  padding: 32px max(20px, calc((100% - 960px) / 2));
  color: #ffffff;
  background: #147d55;
}

header h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 5vw, 34px);
}

header p {
  margin: 0;
  color: #e3f4eb;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(960px, 100%);
  margin: 22px auto 0;
}

.main-nav a {
  padding: 9px 14px;
  color: #e3f4eb;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
  color: #147d55;
  background: #ffffff;
}

main {
  width: min(960px, calc(100% - 32px));
  margin: 28px auto;
}

section {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e0e8e3;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgb(26 60 43 / 6%);
}

section h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

section p {
  margin: 0;
  color: #64736a;
  line-height: 1.6;
}

.cash-deposit-section {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-block: 1px solid #d8dedf;
}

.cash-deposit-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.cash-deposit-metric {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}

.cash-deposit-metric span {
  color: #647274;
  font-size: 0.875rem;
}

.cash-deposit-metric strong {
  color: #183f3b;
  font-size: 1.35rem;
}

.cash-deposit-message {
  margin: 0;
  color: #365b51;
  font-size: 0.9rem;
}

.cash-deposit-message.is-error {
  color: #a93636;
}

.cash-deposit-history {
  display: grid;
}

.cash-deposit-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid #e4e9e9;
}

.cash-deposit-record-details {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.cash-deposit-record-details small {
  color: #647274;
  overflow-wrap: anywhere;
}

.cash-deposit-record-amount {
  color: #183f3b;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.cash-deposit-empty {
  margin: 0;
  padding: 0.75rem 0;
  color: #647274;
}

@media (max-width: 600px) {
  .cash-deposit-section {
    padding: 1rem 0.75rem;
  }

  .cash-deposit-record {
    grid-template-columns: minmax(0, 1fr);
  }

  .cash-deposit-record-amount {
    grid-row: 1;
  }

  header {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  main {
    margin-top: 18px;
  }

  section {
    padding: 18px;
  }
}

/* Investor dashboard: matching soft embossed / neumorphic surfaces. */
body.investor-page {
  color: #313b46;
  background: linear-gradient(145deg, #eef2f5 0%, #e7edf1 55%, #f0f3f5 100%);
}
.investor-page header.brand-header {
  color: #35404b;
  background: linear-gradient(145deg, #edf2f5, #e6ecf0);
  border: 1px solid rgb(255 255 255 / 82%);
  border-bottom: 1px solid #d9e0e5;
  box-shadow: 8px 8px 18px rgb(173 184 194 / 35%), -8px -8px 18px rgb(255 255 255 / 82%);
}
.investor-page .brand-header h1 { color: #303b46; }
.investor-page .brand-header p { color: #697580; }
.investor-page .brand-logo { border-color: #fff; box-shadow: 5px 5px 11px rgb(173 184 194 / 40%), -5px -5px 11px rgb(255 255 255 / 90%); }
.investor-page .main-nav .button-secondary { color: #46515c; background: linear-gradient(145deg, #eef3f6, #e4eaee); border-color: #fff; box-shadow: 5px 5px 10px rgb(173 184 194 / 34%), -5px -5px 10px rgb(255 255 255 / 85%); }
.investor-page main > section { background: transparent; border: 0; box-shadow: none; }
.investor-page .investor-portfolio-card,
.investor-page .investor-trend-panel,
.investor-page .statistics-panel,
.investor-page .investor-formula,
.investor-page .investor-calculator,
.investor-page .investor-updates-section {
  color: #35404b;
  background: linear-gradient(145deg, #edf2f5, #e7edf1);
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 22px;
  box-shadow: 10px 10px 22px rgb(173 184 194 / 38%), -10px -10px 22px rgb(255 255 255 / 86%), inset 1px 1px 2px rgb(255 255 255 / 75%);
}
.investor-page .investor-portfolio-card { overflow: visible; }
.investor-page .investor-portfolio-eyebrow { color: #9b7833; }
.investor-page .investor-profile-copy h2,
.investor-page .investor-profile-copy p,
.investor-page .investor-section-heading h3,
.investor-page .investor-trend-heading h3,
.investor-page .panel-heading h3 { color: #35404b; }
.investor-page .investor-profile-copy p,
.investor-page .investor-section-heading p,
.investor-page .investor-trend-heading p,
.investor-page .panel-heading p { color: #697580; }
.investor-page .investor-avatar-wrap { border-color: #d6b76d; box-shadow: 5px 5px 12px rgb(173 184 194 / 40%), -5px -5px 12px rgb(255 255 255 / 90%); }
.investor-page .investor-status { color: #496a58; background: #e8f0eb; border-color: #d2dfd5; }
.investor-page .investor-summary-card,
.investor-page .investor-update-card,
.investor-page .investor-projection,
.investor-page #investor-bank-details,
.investor-page #investor-agreement {
  color: #39444e;
  background: linear-gradient(145deg, #edf2f5, #e7edf1);
  border: 1px solid rgb(255 255 255 / 80%);
  box-shadow: 6px 6px 13px rgb(173 184 194 / 35%), -6px -6px 13px rgb(255 255 255 / 82%);
}
.investor-page .investor-summary-card { border-radius: 17px; }
.investor-page .investor-summary-card:hover { box-shadow: 8px 8px 16px rgb(173 184 194 / 40%), -8px -8px 16px rgb(255 255 255 / 88%); }
.investor-page .investor-summary-label,
.investor-page .investor-summary-card strong,
.investor-page .investor-summary-card small { color: #46525d; }
.investor-page .investor-summary-icon { color: #8b6d34; background: #eee9dc; box-shadow: inset 2px 2px 4px rgb(173 184 194 / 28%), inset -2px -2px 4px rgb(255 255 255 / 80%); }
.investor-page .investor-table { overflow: hidden; border-radius: 13px; background: #eaf0f3; box-shadow: 6px 6px 14px rgb(173 184 194 / 36%), -6px -6px 14px rgb(255 255 255 / 84%); }
.investor-page .investor-table th { color: #48535d; background: linear-gradient(145deg, #e8eef2, #dfe7ec); border-bottom: 1px solid #d2dce2; }
.investor-page .investor-table td { border-color: #dbe3e8; }
.investor-page .investor-table tbody tr:nth-child(even) { background: rgb(255 255 255 / 35%); }
.investor-page .investor-calculator input:not([type=range]),
.investor-page .investor-calculator select,
.investor-page .investor-section-heading select {
  color: #3c4650;
  background: #eaf0f3;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 11px;
  box-shadow: inset 4px 4px 8px rgb(173 184 194 / 30%), inset -4px -4px 8px rgb(255 255 255 / 88%);
}
.investor-page .button:not(.button-secondary) { color: #48515b; background: linear-gradient(145deg, #eef3f6, #e3e9ed); border: 1px solid #fff; box-shadow: 5px 5px 11px rgb(173 184 194 / 38%), -5px -5px 11px rgb(255 255 255 / 84%); }
.investor-page .button:not(.button-secondary):hover { transform: translateY(-1px); box-shadow: 7px 7px 14px rgb(173 184 194 / 40%), -7px -7px 14px rgb(255 255 255 / 88%); }
.investor-page .investor-formula { border-left: 4px solid #c4a45c; }
.investor-page .investor-trend-chip { color: #5e715f; background: #e7eee8; border-color: #d5e0d6; }
@media (prefers-reduced-motion: reduce) {
  .investor-page .investor-summary-card,
  .investor-page .button { transition: none; }
  .investor-page .investor-summary-card:hover,
  .investor-page .button:hover { transform: none; }
}

/* Owner portal: separate read-only dashboard sharing the admin database. */
.owner-login-page {
  background: radial-gradient(circle at 12% 8%, #e4f6ef 0, transparent 34%), #eef3f5;
}

.owner-login-page .login-card { border-top: 5px solid #168c82; }

.owner-login-link {
  display: block;
  margin-top: 20px;
  color: #087f7f;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.owner-login-link:hover { text-decoration: underline; }
.owner-page { min-height: 100vh; background: #f2f6f5; }
.owner-header { box-shadow: 0 6px 24px rgb(31 69 62 / 7%); }
.owner-access-badge { padding: 8px 12px; border-radius: 999px; background: #e8f5f0; color: #147d55; font-size: 12px; font-weight: 750; }
.owner-main { display: grid; gap: 20px; width: min(1360px, calc(100% - 32px)); max-width: 1360px; margin: 0 auto; padding: 28px 24px 48px; }
.owner-welcome { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 24px 28px; border-radius: 18px; background: linear-gradient(120deg, #173a4b, #087f7f); color: #fff; box-shadow: 0 12px 30px rgb(19 63 72 / 13%); }
.owner-welcome .eyebrow { color: #b7ece2; }
.owner-welcome h2 { margin: 5px 0 7px; font-size: clamp(25px, 3vw, 34px); }
.owner-welcome p { margin: 0; color: #d8e9e8; }
.owner-period { flex: 0 0 auto; padding: 9px 13px; border: 1px solid rgb(255 255 255 / 24%); border-radius: 9px; color: #fff; font-size: 13px; }
.owner-section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.owner-section-title h3 { margin: 0; color: #203b43; font-size: 18px; }
.owner-section-title p { margin: 4px 0 0; color: #77868a; font-size: 13px; }
.owner-metrics { display: grid; gap: 12px; }
.owner-customer-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.owner-finance-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.owner-metric { display: grid; align-content: space-between; gap: 11px; min-width: 0; min-height: 104px; padding: 16px; border: 1px solid #e2ebe7; border-radius: 13px; background: #fff; box-shadow: 0 4px 14px rgb(37 68 58 / 4%); }
.owner-metric span { color: #71817c; font-size: 13px; }
.owner-metric strong { overflow-wrap: anywhere; color: #243d43; font-size: clamp(18px, 2vw, 24px); }
.owner-metric small { margin-top: -6px; color: #87938f; font-size: 11px; }
.owner-metric.metric-income strong { color: #137a59; }
.owner-metric.metric-expense strong { color: #b6533d; }
.owner-panel { min-width: 0; padding: 20px; border: 1px solid #e2ebe7; border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgb(37 68 58 / 4%); }
.owner-chart-legend { display: flex; gap: 18px; margin: 0 0 12px; color: #697a78; font-size: 12px; }
.owner-chart-legend span { display: flex; align-items: center; gap: 7px; }
.owner-chart-legend i { width: 9px; height: 9px; border-radius: 50%; }
.legend-income { background: #078f92; }
.legend-expense { background: #f4a340; }
.owner-month-chart, .owner-category-list, .owner-recent-list { display: grid; gap: 11px; }
.owner-month-row { display: grid; grid-template-columns: 120px minmax(120px, 1fr) minmax(180px, auto); align-items: center; gap: 14px; }
.owner-month-label { color: #526761; font-size: 13px; }
.owner-month-bars { display: grid; gap: 5px; }
.owner-bar-line { height: 7px; overflow: hidden; border-radius: 99px; background: #eff3f1; }
.owner-bar-line span { display: block; height: 100%; min-width: 0; border-radius: inherit; }
.owner-bar-line.income span { background: #078f92; }
.owner-bar-line.expense span { background: #f4a340; }
.owner-month-values { color: #788681; font-size: 11px; text-align: right; }
.owner-lower-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; }
.owner-category-row { display: grid; gap: 7px; }
.owner-category-heading { display: flex; justify-content: space-between; gap: 12px; color: #4f625c; font-size: 13px; }
.owner-category-heading span { color: #213e42; font-weight: 700; }
.owner-category-track { height: 7px; overflow: hidden; border-radius: 99px; background: #eef3f1; }
.owner-category-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e99a51, #ec7351); }
.owner-recent-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf1ef; }
.owner-recent-row:last-child { border-bottom: 0; }
.owner-recent-row > div { display: grid; gap: 4px; }
.owner-recent-row > div strong { color: #455b56; font-size: 13px; }
.owner-recent-row > div span { color: #87938f; font-size: 11px; }
.owner-recent-row > strong { flex: 0 0 auto; font-size: 13px; }
.owner-recent-row.is-income > strong { color: #147d55; }
.owner-recent-row.is-expense > strong { color: #a3443a; }
.owner-error { padding: 12px 15px; border-radius: 9px; background: #fff0ee; color: #a3332c; }
.owner-footer-note { margin: 0; color: #84918d; font-size: 12px; text-align: center; }

@media (max-width: 900px) {
  .owner-customer-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .owner-month-row { grid-template-columns: 100px minmax(100px, 1fr); }
  .owner-month-values { grid-column: 2; text-align: left; }
}

@media (max-width: 600px) {
  .owner-main { padding: 18px 14px 32px; }
  .owner-welcome { align-items: start; flex-direction: column; padding: 20px; }
  .owner-period { align-self: stretch; }
  .owner-customer-metrics, .owner-finance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-lower-grid { grid-template-columns: 1fr; }
  .owner-panel { padding: 15px; }
  .owner-month-row { grid-template-columns: 80px minmax(90px, 1fr); gap: 9px; }
  .owner-month-label { font-size: 11px; }
  .owner-month-values { font-size: 10px; }
  .owner-header .main-nav { gap: 8px; }
  .owner-access-badge { font-size: 10px; }
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.button {
  padding: 10px 14px;
  color: #ffffff;
  background: #147d55;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  background: #0f6846;
}

.button-secondary {
  color: #34443a;
  background: #edf2ee;
}

.button-secondary:hover {
  background: #e0e9e3;
}

.customer-form {
  margin: 18px 0;
  padding: 18px;
  background: #f7faf8;
  border: 1px solid #e0e8e3;
  border-radius: 10px;
}

.customer-form h3 {
  margin: 0 0 8px;
}

.customer-form p {
  margin-bottom: 14px;
}

@media (max-width: 480px) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

.form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.form-fields label {
  display: grid;
  gap: 6px;
  color: #405047;
  font-size: 14px;
  font-weight: 700;
}

.form-fields input {
  width: 100%;
  padding: 10px 11px;
  color: #1f2933;
  background: #ffffff;
  border: 1px solid #d9e3dc;
  border-radius: 7px;
  font: inherit;
  font-weight: 400;
}

.form-fields input:focus {
  outline: 2px solid #a8d6bd;
  border-color: #147d55;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.customer-list {
  display: grid;
  gap: 10px;
}

.customer-row {
  display: block;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 1px solid #e5ebe7;
  border-radius: 9px;
}

.customer-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
}

.customer-summary::-webkit-details-marker { display: none; }
.customer-summary::marker { content: ""; }
.customer-summary::after {
  content: "+";
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  color: #147d55;
  background: #edf7f1;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 600;
}

.customer-row[open] .customer-summary::after { content: "−"; }
.customer-summary-text { min-width: 0; flex: 1; }

.customer-row h3 {
  margin: 0 0 4px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.customer-row p {
  margin: 0;
  font-size: 13px;
}

.customer-detail-panel {
  padding: 14px 15px;
  border-top: 1px solid #edf1ee;
  background: #fcfdfc;
}

.customer-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.customer-detail-grid > div { min-width: 0; }
.customer-detail-grid dt { color: #68776e; font-size: 12px; }
.customer-detail-grid dd { margin: 3px 0 0; color: #22342a; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }

.customer-status {
  flex: 0 0 auto;
}

@media (max-width: 600px) {
  .form-fields {
    grid-template-columns: 1fr;
  }

  .customer-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.delete-button {
  padding: 8px 11px;
  color: #a43838;
  background: #fff5f5;
  border: 1px solid #f0dada;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.delete-button:hover {
  background: #ffe9e9;
}

.customer-actions {
  display: flex;
  gap: 7px;
}

.edit-button {
  padding: 8px 11px;
  color: #176b49;
  background: #eff8f2;
  border: 1px solid #d4e9db;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.edit-button:hover {
  background: #e1f2e7;
}

@media (max-width: 600px) {
  .customer-actions {
    width: 100%;
  }
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e0e8e3;
  border-radius: 10px;
  box-shadow: 0 5px 18px rgb(26 60 43 / 5%);
}

.summary-card span {
  color: #64736a;
  font-size: 13px;
}

.summary-card strong {
  color: #147d55;
  font-size: 22px;
}

@media (max-width: 700px) {
  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .summary-card {
    padding: 13px;
  }

  .summary-card strong {
    font-size: 19px;
  }
}

.customer-tools {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto minmax(150px, 190px);
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.customer-tools label {
  color: #526057;
  font-size: 13px;
  font-weight: 700;
}

.customer-tools input,
.customer-tools select {
  min-width: 0;
  padding: 10px 11px;
  color: #1f2933;
  background: #ffffff;
  border: 1px solid #d9e3dc;
  border-radius: 7px;
  font: inherit;
}

@media (max-width: 700px) {
  .customer-tools {
    grid-template-columns: 1fr 2fr;
  }
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button-secondary {
  color: #176b49;
  background: #eff8f2;
  border: 1px solid #d4e9db;
}

.button-secondary:hover {
  background: #e1f2e7;
}

@media (max-width: 600px) {
  .heading-actions {
    width: 100%;
  }

  .heading-actions .button {
    flex: 1;
  }
}

.customer-status {
  display: inline-block;
  width: fit-content;
  margin-top: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.customer-status.active {
  color: #176b49;
  background: #e4f5e9;
}

.customer-status.stopped {
  color: #6e7370;
  background: #edf0ee;
}

.customer-status.new {
  color: #225b92;
  background: #e8f2ff;
}

.customer-list-group {
  display: grid;
  gap: 8px;
}

.customer-list-group-title {
  margin: 6px 0 0;
  color: #536578;
  font-size: 13px;
  font-weight: 800;
}

.customer-list-group-rows {
  display: grid;
  gap: 10px;
}

.stop-button,
.activate-button {
  padding: 8px 10px;
  border: 1px solid #e0e5e2;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.stop-button {
  color: #8a4a26;
  background: #fff6ed;
  border-color: #f0dfce;
}

.activate-button {
  color: #176b49;
  background: #eff8f2;
  border-color: #d4e9db;
}

.customer-stopped {
  background: #fafbfa;
}

.customer-stopped h3 {
  color: #69736d;
}

@media (min-width: 701px) {
  .summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.modem-status {
  color: #526057 !important;
  font-size: 12px;
}

.modem-button {
  padding: 8px 10px;
  color: #176b49;
  background: #eff8f2;
  border: 1px solid #d4e9db;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.modem-button:hover {
  background: #e1f2e7;
}

.brand-header {
  background: linear-gradient(120deg, #116846, #16835a);
}

.brand-lockup {
  width: min(960px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  color: #147d55;
  background: #ffffff;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 17px;
  box-shadow: 0 6px 18px rgb(0 0 0 / 12%);
}

.brand-logo svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
}

.brand-logo img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.brand-logo circle {
  fill: currentColor;
  stroke: none;
}

.brand-header h1 {
  margin: 0 0 5px;
  font-size: clamp(25px, 5vw, 34px);
  letter-spacing: -.5px;
}

.brand-header p {
  margin: 0;
  color: #e3f4eb;
  font-size: 14px;
}

@media (max-width: 600px) {
  .brand-lockup {
    gap: 12px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 14px;
  }

  .brand-logo svg {
    width: 34px;
    height: 34px;
  }
}

.form-note {
  margin: 6px 0 14px;
  color: #64736a;
  font-size: 13px;
}

.form-fields select {
  width: 100%;
  padding: 10px 11px;
  color: #1f2933;
  background: #ffffff;
  border: 1px solid #d9e3dc;
  border-radius: 7px;
  font: inherit;
}

.finance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.finance-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -6px 0 24px;
}

.finance-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #f8faf9;
  border: 1px solid #e0e8e3;
  border-radius: 9px;
}

.finance-card span,
.transaction-row span {
  color: #64736a;
  font-size: 13px;
}

.finance-card strong {
  color: #147d55;
  font-size: 18px;
}

.finance-note {
  margin: 0 0 16px !important;
  font-size: 13px;
}

.employee-manager {
  display: grid;
  gap: 14px;
  margin: 20px 0;
  padding: 18px;
  background: #f9fbfa;
  border-color: #e5ebe7;
  box-shadow: none;
}

.employee-form {
  display: grid;
  gap: 7px;
  color: #405047;
  font-size: 14px;
  font-weight: 700;
}

.employee-form h4 {
  margin: 0;
}

.employee-add-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.employee-add-grid label {
  display: grid;
  gap: 6px;
}

.employee-add-grid input {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #d9e3dc;
  border-radius: 7px;
  font: inherit;
  font-weight: 400;
}

.employee-details {
  display: grid;
  gap: 4px;
  min-width: 160px;
}

.employee-details span {
  color: #64736a;
  font-size: 12px;
}

.transaction-helper {
  margin: -3px 0 12px !important;
  padding: 10px 12px;
  color: #325b44 !important;
  background: #edf7f0;
  border: 1px solid #d6ebdd;
  border-radius: 8px;
  font-size: 13px;
}

.employee-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.employee-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px 7px 12px;
  background: #ffffff;
  border: 1px solid #e3eae5;
  border-radius: 9px;
  font-size: 13px;
}

.employee-empty {
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 5px;
  color: #147d55;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.accounting-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}

.accounting-card {
  display: grid;
  gap: 10px;
  min-height: 140px;
  padding: 20px;
  color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgb(31 41 51 / 9%);
}

.accounting-card span {
  font-size: 14px;
  font-weight: 700;
  opacity: .9;
}

.accounting-card strong {
  align-self: center;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.5px;
  overflow-wrap: anywhere;
}

.accounting-card small {
  opacity: .82;
}

.income-card { background: linear-gradient(135deg, #13855d, #28a879); }
.expense-card { background: linear-gradient(135deg, #db704c, #ee9860); }
.balance-card { background: linear-gradient(135deg, #345f9a, #588bc5); }
.balance-card strong.negative { color: #ffe0d8; }

.statistics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr);
  gap: 16px;
  margin: 22px 0;
}

.statistics-panel {
  min-width: 0;
  padding: 20px;
  background: #fbfcfb;
  border: 1px solid #e4ebe6;
  border-radius: 12px;
}

.panel-heading h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.panel-heading p {
  color: #748178;
  font-size: 12px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 17px 0 12px;
  color: #66736b;
  font-size: 12px;
}

.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-income { background: #16865f; }
.legend-expense { background: #eb8b5d; }

.daily-chart-scroll {
  width: 100%;
  overflow-x: auto;
  padding: 8px 0 4px;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #b7c9bd transparent;
}

.daily-chart-scroll svg {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
  overflow: visible;
}

.chart-gridline {
  stroke: #e8eeea;
  stroke-width: 1;
}

.chart-axis-label {
  fill: #7b8880;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.chart-date-label { text-transform: capitalize; }

.daily-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.daily-line-income { stroke: #16865f; }
.daily-line-expense { stroke: #eb8b5d; }

.daily-point {
  stroke: #ffffff;
  stroke-width: 1.5;
  cursor: help;
}

.daily-point-income { fill: #16865f; }
.daily-point-expense { fill: #eb8b5d; }

.expense-breakdown { margin-top: 16px; }
.expense-donut-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 18px;
}
.expense-donut { display: block; width: min(100%, 220px); margin: 0 auto; overflow: visible; }
.expense-donut-track,
.expense-donut-slice { fill: none; stroke-width: 16; }
.expense-donut-track { stroke: #e9efeb; }
.expense-donut-slice { stroke-linecap: butt; }
.expense-donut-total { fill: #25372e; font-size: 10px; font-weight: 800; text-anchor: middle; }
.expense-donut-caption { fill: #7b8981; font-size: 6px; font-weight: 700; letter-spacing: .8px; text-anchor: middle; }
.expense-legend { display: grid; gap: 11px; }
.expense-legend-row,
.expense-legend-label,
.expense-legend-values { display: flex; align-items: center; }
.expense-legend-row { min-width: 0; justify-content: space-between; gap: 8px; }
.expense-legend-label { min-width: 0; gap: 8px; color: #53645b; font-size: 12px; }
.expense-legend-label i { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--category-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--category-color) 16%, white); }
.expense-legend-label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.expense-legend-values { flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 2px; }
.expense-legend-values strong { color: #26342c; font-size: 12px; white-space: nowrap; }
.expense-legend-values small { color: #8a968f; font-size: 10px; }

@media (max-width: 1100px) {
  .finance-page .statistics-grid { grid-template-columns: 1fr; }
  .finance-page .expense-donut-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

@media (max-width: 560px) {
  .statistics-panel { padding: 16px; }
  .daily-chart-scroll svg { min-width: 620px; }
  .expense-donut-layout { grid-template-columns: 1fr; gap: 16px; }
  .expense-donut { width: min(100%, 190px); }
  .expense-legend { gap: 9px; }
}


.category-track {
  height: 9px;
  overflow: hidden;
  background: #edf1ee;
  border-radius: 99px;
}

.chart-empty {
  margin-top: 22px !important;
  font-size: 13px;
}

.finance-shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 6px 0 24px;
  padding: 18px;
  background: linear-gradient(135deg, #e9f6f2, #f5f8ff);
  border: 1px solid #dbece4;
  border-radius: 16px;
}

.transaction-heading {
  margin: 20px 0 10px;
  font-size: 16px;
}

.transaction-history-toolbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}

.transaction-history-toolbar label {
  color: #40534a;
  font-size: 13px;
  font-weight: 600;
}

.transaction-history-toolbar input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: #1d2b24;
  background: #fff;
  border: 1px solid #d5dfd9;
  border-radius: 9px;
  font: inherit;
}

.transaction-history-toolbar input:focus-visible {
  border-color: #078f92;
  outline: 3px solid rgb(7 143 146 / 15%);
}

.transaction-history-toolbar span {
  color: #718078;
  font-size: 12px;
  white-space: nowrap;
}

.transaction-history-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.transaction-history-filters label {
  display: grid;
  gap: 5px;
  color: #53645b;
  font-size: 12px;
  font-weight: 600;
}

.transaction-history-filters select,
.transaction-history-filters input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: #26362e;
  background: #fff;
  border: 1px solid #d5dfd9;
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
}

.transaction-history-filters select:focus-visible,
.transaction-history-filters input:focus-visible {
  border-color: #078f92;
  outline: 3px solid rgb(7 143 146 / 15%);
}

.transaction-filter-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.transaction-filter-summary article {
  display: grid;
  align-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 76px;
  padding: 12px;
  border: 1px solid #e1ebe5;
  border-radius: 10px;
  background: #f7faf8;
}

.transaction-filter-summary span {
  color: #61736a;
  font-size: 12px;
}

.transaction-filter-summary strong {
  overflow-wrap: anywhere;
  color: #203b32;
  font-size: 16px;
}

.transaction-filter-summary .filtered-income strong { color: #147d55; }
.transaction-filter-summary .filtered-expense strong { color: #a43838; }

.transaction-list {
  display: grid;
  gap: 8px;
}

.transaction-day-group {
  overflow: hidden;
  border: 1px solid #e1e9e5;
  border-radius: 8px;
  background: #fff;
}

.transaction-day-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.transaction-day-summary::-webkit-details-marker {
  display: none;
}

.transaction-day-group[open] > .transaction-day-summary {
  border-bottom: 1px solid #e1e9e5;
  background: #f8faf8;
}

.transaction-day-heading {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.transaction-day-heading strong {
  color: #20332c;
  font-size: 13px;
  font-weight: 700;
}

.transaction-day-heading small {
  color: #697870;
  font-size: 11px;
}

.transaction-day-totals {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 14px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.transaction-day-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.transaction-day-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.transaction-day-table th,
.transaction-day-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf1ee;
  vertical-align: top;
}

.transaction-day-table th {
  color: #697870;
  background: #f8faf8;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.transaction-day-table tbody tr:last-child td {
  border-bottom: 0;
}

.transaction-day-table .numeric {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.transaction-day-table .income-total {
  color: #147d55;
}

.transaction-day-table .expense-total {
  color: #a43838;
}

.transaction-day-description {
  display: block;
  max-width: 32rem;
  color: #20332c;
  overflow-wrap: anywhere;
}

.transaction-day-metadata {
  display: block;
  margin-top: 3px;
  color: #697870;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.transaction-day-table .delete-button {
  padding: 5px 8px;
  font-size: 11px;
}

.transaction-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #e5ebe7;
  border-radius: 9px;
}

.transaction-row > div {
  display: grid;
  gap: 4px;
}

.transaction-amount.income {
  color: #147d55;
}

.transaction-amount.expense {
  color: #a43838;
}

@media (max-width: 600px) {
  .transaction-filter-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accounting-summary {
    grid-template-columns: 1fr;
  }

  .accounting-card {
    min-height: 120px;
  }

  .statistics-grid {
    grid-template-columns: 1fr;
  }

  .download-actions {
    width: 100%;
  }

  .download-actions .button {
    flex: 1;
  }

  .finance-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expense-donut-layout { grid-template-columns: 1fr; gap: 16px; }
  .expense-donut { width: min(100%, 190px); }
  .expense-legend { gap: 9px; }
  .finance-shortcuts a { flex: 1 1 100%; text-align: center; }

  .employee-add-grid {
    grid-template-columns: 1fr;
  }

  .transaction-row {
    grid-template-columns: 1fr auto;
  }

  .transaction-history-toolbar {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .transaction-history-toolbar span {
    white-space: normal;
  }

  .transaction-history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transaction-row .delete-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 380px) {
  .finance-summary {
    grid-template-columns: 1fr;
  }

  .transaction-history-filters {
    grid-template-columns: 1fr;
  }
}

/* Polished dashboard styling for the finance page. */
.finance-page {
  color: #1d2b24;
  background:
    radial-gradient(ellipse at 95% 10%, rgb(203 233 216 / 42%), transparent 28rem),
    #f2f6f3;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.finance-page header {
  background: linear-gradient(118deg, #0c513d, #147d55 55%, #1c9367);
  box-shadow: 0 10px 30px rgb(18 77 55 / 15%);
}

.finance-page main {
  width: min(1120px, calc(100% - 36px));
  margin-top: 34px;
  margin-bottom: 48px;
}

.finance-page main > section {
  padding: clamp(20px, 3.2vw, 34px);
  border: 1px solid rgb(219 229 222 / 90%);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgb(31 65 47 / 8%);
}

.finance-page #finance-heading {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -.7px;
}

.finance-page .section-heading { margin-bottom: 22px; }

.finance-page .accounting-card {
  min-height: 154px;
  padding: 22px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgb(31 41 51 / 10%);
}

.finance-page .finance-card {
  padding: 15px 17px;
  border-radius: 12px;
}

.finance-page .statistics-panel {
  padding: 22px;
  background: linear-gradient(160deg, #ffffff, #fbfdfb);
  border-color: #e3ebe5;
  border-radius: 16px;
  box-shadow: 0 7px 22px rgb(35 64 47 / 4%);
}

.finance-page .button {
  border-radius: 9px;
  box-shadow: 0 3px 8px rgb(27 89 62 / 12%);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.finance-page .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgb(27 89 62 / 16%);
}

.finance-page .customer-form,
.finance-page .employee-manager { border-radius: 13px; }

/* Investor portal and administration */
.investor-login-page .login-card { border-top: 5px solid #0d9488; }
.investor-login-page .login-card {
  animation: investor-login-edge-light 4.8s ease-in-out infinite;
}
@keyframes investor-login-edge-light {
  0%, 100% { box-shadow: 16px 16px 34px rgb(173 184 194 / 48%), -16px -16px 34px rgb(255 255 255 / 92%), inset 1px 1px 2px rgb(255 255 255 / 74%), 0 0 0 1px rgb(211 174 92 / 12%), 0 0 12px 1px rgb(211 174 92 / 8%); }
  25% { box-shadow: 16px 16px 34px rgb(173 184 194 / 48%), -16px -16px 34px rgb(255 255 255 / 92%), inset 1px 1px 2px rgb(255 255 255 / 74%), 0 0 0 1px rgb(151 119 176 / 12%), 0 0 12px 1px rgb(151 119 176 / 8%); }
  50% { box-shadow: 16px 16px 34px rgb(173 184 194 / 48%), -16px -16px 34px rgb(255 255 255 / 92%), inset 1px 1px 2px rgb(255 255 255 / 74%), 0 0 0 1px rgb(196 137 166 / 12%), 0 0 12px 1px rgb(196 137 166 / 8%); }
  75% { box-shadow: 16px 16px 34px rgb(173 184 194 / 48%), -16px -16px 34px rgb(255 255 255 / 92%), inset 1px 1px 2px rgb(255 255 255 / 74%), 0 0 0 1px rgb(207 153 112 / 12%), 0 0 12px 1px rgb(207 153 112 / 8%); }
}
.investor-app-download-link {
  display: flex; width: fit-content; max-width: 100%; align-items: center; justify-content: center; gap: 9px;
  margin: -10px auto 20px; padding: 8px 12px; color: #203454;
  background: linear-gradient(120deg, #f6f8ff, #eefaf7); border: 1px solid #d8e6eb; border-radius: 14px;
  box-shadow: 0 5px 16px rgb(25 54 83 / 8%); text-decoration: none;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.investor-app-download-link:hover { color: #173c59; background: linear-gradient(120deg, #eef3ff, #e7f8f2); border-color: #a9d4ca; box-shadow: 0 8px 20px rgb(25 54 83 / 12%); }
.investor-android-bot { width: 30px; height: 30px; flex: 0 0 30px; overflow: visible; animation: investor-android-bob 2.8s ease-in-out infinite; }
.investor-android-antennas { fill: none; stroke: #178c63; stroke-width: 2.4; stroke-linecap: round; }
.investor-android-head,.investor-android-body,.investor-android-limb,.investor-android-leg,.investor-android-wave-arm { fill: #32a86b; }
.investor-android-eye { fill: #fff; }
.investor-android-wave-arm { transform-box: fill-box; transform-origin: 50% 10%; animation: investor-android-wave 2.8s ease-in-out infinite; }
.investor-download-copy { display: grid; gap: 1px; text-align: left; }
.investor-download-copy strong { font-size: 12px; line-height: 1.3; }
.investor-download-copy small { color: #718096; font-size: 10px; font-weight: 500; line-height: 1.2; }
@keyframes investor-android-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes investor-android-wave { 0%, 62%, 100% { transform: rotate(0); } 70%, 82% { transform: rotate(-25deg); } 76%, 88% { transform: rotate(10deg); } 94% { transform: rotate(-12deg); } }
.investor-page .main-nav { align-items: center; justify-content: flex-end; }
.investor-page .main-nav span { margin: auto 8px auto 0; font-weight: 700; }
.investor-page h2,
.investor-admin-page h2 { margin: 0; }
.investor-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  color: #116450;
  background: #e2f5ec;
  border: 1px solid #b9e6d0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.investor-status.status-pending_validation { color: #855c0a; background: #fff5d9; border-color: #f1d995; }
.investor-status.status-completed { color: #52615a; background: #eef1ef; border-color: #dce2de; }
.investor-status.status-lockup { color: #5140a0; background: #efedff; border-color: #d4cef8; }
.investor-portfolio-card { position: relative; overflow: hidden; margin: 0 0 18px; padding: clamp(18px, 3vw, 30px); background: radial-gradient(circle at 92% 8%, rgb(106 228 195 / 34%), transparent 28%), linear-gradient(128deg, #123f50 0%, #087f80 55%, #0b987e 100%); border: 1px solid rgb(255 255 255 / 42%); border-radius: 24px; box-shadow: 0 18px 44px rgb(12 79 75 / 17%); }
.investor-portfolio-head { position: relative; display: flex; justify-content: flex-start; align-items: center; gap: 20px; min-height: 96px; margin-bottom: 22px; }
.investor-profile-block { display: flex; align-items: center; gap: 17px; min-width: 0; }
.investor-avatar-wrap { position: relative; flex: 0 0 88px; width: 88px; height: 88px; display: grid; place-items: center; color: #176a68; background: linear-gradient(145deg, #fff, #c8f7e8); border: 3px solid rgb(255 255 255 / 82%); border-radius: 50%; box-shadow: 0 7px 20px rgb(0 0 0 / 18%); }
.investor-profile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.investor-profile-initials { font-size: 25px; font-weight: 850; letter-spacing: .04em; }
.investor-photo-button { position: absolute; right: -3px; bottom: -3px; display: grid; width: 32px; height: 32px; place-items: center; padding: 6px; color: #fff; background: #173f51; border: 2px solid #fff; border-radius: 50%; cursor: pointer; box-shadow: 0 3px 8px rgb(0 0 0 / 20%); }
.investor-photo-button:hover { background: #126b67; }
.investor-photo-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.investor-profile-copy { display: grid; justify-items: start; gap: 5px; min-width: 0; }
.investor-portfolio-eyebrow { color: #b9f3e2; font-size: 11px; font-weight: 850; letter-spacing: .15em; }
.investor-profile-copy h2 { color: #fff; font-size: clamp(22px, 3vw, 31px); letter-spacing: -.025em; }
.investor-profile-copy > p { margin: 0; color: rgb(255 255 255 / 88%); font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.investor-profile-copy .investor-status { margin-top: 3px; }
.investor-photo-message { color: #c6f4e7; font-size: 11px; }
.investor-photo-message.is-error { color: #ffe3c4; }
.investor-photo-message.is-success { color: #c1ffd5; }
.investor-summary-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.investor-summary-card { display: grid; gap: 10px; min-width: 0; min-height: 126px; padding: 17px; background: linear-gradient(145deg, rgb(255 255 255 / 98%), rgb(242 250 247 / 96%)); border: 1px solid rgb(223 240 233 / 92%); border-radius: 17px; box-shadow: 0 8px 20px rgb(6 49 48 / 12%); transition: transform .18s ease, box-shadow .18s ease; }
.investor-summary-card:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgb(6 49 48 / 16%); }
.investor-summary-label { display: flex; align-items: center; gap: 9px; color: #61736d; font-size: 12px; font-weight: 700; }
.investor-summary-icon { display: inline-grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; color: #087f80; background: #e3f5ef; border-radius: 10px; font-size: 12px; font-weight: 850; }
.investor-summary-card strong { color: #173c4d; font-size: clamp(17px, 2vw, 23px); line-height: 1.2; overflow-wrap: anywhere; }
.investor-summary-card small { color: #81908b; font-size: 11px; line-height: 1.35; }
.investor-summary-card.summary-monthly .investor-summary-icon { color: #2874ba; background: #e9f2ff; }
.investor-summary-card.summary-paid .investor-summary-icon { color: #188354; background: #e5f6e9; }
.investor-summary-card.summary-pending .investor-summary-icon { color: #a27014; background: #fff3dc; }
.investor-notice { margin: 0 0 18px; padding: 14px 16px; color: #72510d; background: #fff6df; border: 1px solid #efd99c; border-radius: 12px; }
.investor-formula { margin: 0 0 18px; padding: 20px; background: linear-gradient(125deg, #eaf7f3, #eef4ff); border: 1px solid #d9e9e2; border-radius: 16px; }
.investor-formula h3 { margin: 0 0 10px; }
.investor-formula p { margin: 0 0 10px; line-height: 1.65; }
.investor-formula small { color: #6d7b73; line-height: 1.55; }
.investor-insight-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 24px; }
.investor-trend-panel { position: relative; min-width: 0; overflow: hidden; margin: 0; padding: clamp(18px, 2.4vw, 27px); background: radial-gradient(circle at 100% 0%, rgb(33 177 139 / 10%), transparent 31%), linear-gradient(145deg, #fff 0%, #f8fcfb 100%); border: 1px solid #dfece6; border-radius: 20px; box-shadow: 0 12px 30px rgb(24 69 53 / 7%); }
.investor-trend-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.investor-trend-heading h3 { margin: 5px 0; color: #153e44; font-size: clamp(19px, 2.4vw, 25px); letter-spacing: -.025em; }
.investor-trend-heading p { margin: 0; color: #75867f; font-size: 13px; line-height: 1.5; }
.investor-trend-chip { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 8px 11px; color: #177457; background: #e8f7ef; border: 1px solid #d2eddd; border-radius: 999px; font-size: 11px; font-weight: 750; }
.investor-trend-chip i { width: 7px; height: 7px; border-radius: 50%; background: #22a875; box-shadow: 0 0 0 4px rgb(34 168 117 / 12%); }
.investor-trend-stats { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 8px; }
.trend-stat { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; color: #586b64; background: #fff; border: 1px solid #e7eeea; border-radius: 10px; font-size: 11px; }
.trend-stat strong { color: #243e39; font-size: 13px; }
.trend-stat::before,.investor-trend-legend i { width: 8px; height: 8px; border-radius: 50%; background: #0e9b72; }
.trend-stat-processing::before,.investor-trend-legend .legend-processing { background: #4c8fe8; }
.trend-stat-pending::before,.investor-trend-legend .legend-pending { background: #efa936; }
.investor-trend-chart-wrap { width: 100%; overflow-x: auto; padding: 4px 0 0; scrollbar-color: #bdd8cd transparent; scrollbar-width: thin; }
.investor-trend-chart-wrap[hidden] { display: none; }
.investor-trend-chart { display: block; width: 100%; height: auto; overflow: visible; }
.investor-trend-gridline { stroke: #e8efec; stroke-width: 1; stroke-dasharray: 4 6; }
.investor-trend-axis { fill: #75867f; font-size: 12px; font-weight: 650; }
.trend-paid { fill: #178763; }
.trend-processing { fill: #4c80bf; }
.trend-pending { fill: #bd861d; }
.investor-trend-area { fill: url(#investor-trend-fill); }
.investor-trend-line { fill: none; stroke: #119b78; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 5px rgb(17 155 120 / 18%)); }
.investor-trend-series { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 3px 4px rgb(28 64 52 / 13%)); }
.trend-line-income { stroke: #0d9b72; }
.trend-line-expense { stroke: #ee9850; }
.trend-line-net { stroke: #5979d8; stroke-dasharray: 7 5; }
.investor-trend-point { stroke: #fff; stroke-width: 3; cursor: pointer; transition: r .15s ease, filter .15s ease; }
.investor-trend-point:hover,.investor-trend-point:focus { r: 10px; outline: none; filter: drop-shadow(0 2px 5px rgb(20 60 48 / 24%)); }
.investor-trend-month { fill: #71817b; font-size: 11px; font-weight: 650; }
.investor-trend-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 2px; color: #62736c; font-size: 11px; }
.investor-trend-legend span { display: inline-flex; align-items: center; gap: 7px; }
.investor-trend-legend i { display: inline-block; }
.investor-trend-legend .legend-paid { background: #0e9b72; }
.investor-trend-legend .legend-income { background: #0d9b72; }
.investor-trend-legend .legend-expense { background: #ee9850; }
.investor-trend-legend .legend-net { background: #5979d8; }
.investor-trend-focus { min-height: 18px; margin: 12px 0 0; color: #73827c; font-size: 11px; text-align: center; }
.investor-trend-empty { margin: 18px 0 3px; padding: 22px; color: #73827c; background: #f5f9f7; border: 1px dashed #d7e4dd; border-radius: 13px; text-align: center; }
.investor-trend-empty[hidden],.investor-trend-focus[hidden] { display: none; }
.investor-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.investor-bank-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; margin: 0; border-bottom: 1px solid #edf1ee; font-size: 13px; }
.investor-bank-row span { color: #75837a; }
.investor-bank-row strong { text-align: right; overflow-wrap: anywhere; }
.investor-bank-row .investor-bank-brand { display: flex; min-width: 0; align-items: center; justify-content: flex-end; }
.investor-bank-logo { display: block; width: min(116px, 42vw); height: 40px; object-fit: contain; object-position: right center; }
.investor-bank-unmapped { color: #263b32; font-size: 13px; font-weight: 700; text-align: right; }
.investor-document-name,.investor-muted { color: #75837a; font-size: 13px; }
.investor-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin: 20px 0 12px; }
.investor-section-heading h3 { margin: 0 0 4px; }
.investor-section-heading p { margin: 0; color: #78847d; font-size: 13px; }
.investor-section-heading label { display: grid; gap: 5px; color: #56665d; font-size: 12px; }
.investor-section-heading select,.investor-dialog input { min-height: 40px; padding: 8px 10px; background: #fff; border: 1px solid #d5dfd9; border-radius: 8px; font: inherit; }
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid #e0e8e3; border-radius: 12px; }
.investor-table { width: 100%; min-width: 620px; border-collapse: collapse; background: #fff; font-size: 13px; }
.investor-table th { padding: 12px; color: #fff; background: #087f80; text-align: left; white-space: nowrap; }
.investor-table td { padding: 12px; border-top: 1px solid #e9efeb; }
.investor-table-amount { color: #147d55; font-weight: 750; white-space: nowrap; }
.investor-payout-status { display: inline-block; padding: 5px 9px; color: #7a5a0d; background: #fff2d2; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.investor-payout-status.payout-paid { color: #11694a; background: #e2f5eb; }
.investor-payout-status.payout-processing { color: #365e99; background: #e9f1ff; }
.investor-test-badge { display: inline-flex; width: fit-content; padding: 5px 9px; color: #67440a; background: #fff1c7; border: 1px solid #efd77e; border-radius: 999px; font-size: 11px; font-weight: 800; }
.investor-test-note { color: #75510c; font-weight: 650; }
.investor-test-banner { color: #694b0b; background: #fff6dc; border-color: #eed791; font-weight: 700; }
.investor-test-option { display: flex !important; grid-column: 1 / -1; align-items: flex-start; gap: 9px !important; padding: 12px 14px; color: #67440a !important; background: #fff8e5; border: 1px solid #efdca0; border-radius: 10px; line-height: 1.5; }
.investor-test-payment-options { display: grid; grid-column: 1 / -1; gap: 10px; padding: 12px; background: #f1f8ff; border: 1px solid #d7e6f6; border-radius: 12px; }
.investor-test-payment-options[hidden],.investor-test-payment-options > [hidden] { display: none; }
.investor-test-payment-options > label:not(.investor-test-option) { display: grid; gap: 6px; font-size: 13px; font-weight: 650; }
.investor-test-payment-options input[type=number] { width: 100%; max-width: 260px; min-height: 40px; padding: 8px 10px; border: 1px solid #d5dfd9; border-radius: 8px; font: inherit; }
.investor-test-option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #c48b17; }
.investor-calculator { margin-top: 24px; padding: 20px; background: #fbfcff; border: 1px solid #e0e7f1; border-radius: 16px; }
.investor-range-label,.investor-term-label { display: grid; gap: 10px; margin: 14px 0; color: #53645b; font-size: 13px; }
.investor-range-label strong { color: #126b4e; font-size: 20px; }
.investor-range-label input { width: 100%; accent-color: #138564; }
.investor-term-label select { max-width: 260px; min-height: 40px; padding: 8px 10px; background: #fff; border: 1px solid #d5dfd9; border-radius: 8px; font: inherit; }
.investor-projection { display: grid; grid-template-columns: 1fr auto; gap: 9px 14px; margin: 16px 0; padding: 14px; background: #edf7f2; border-radius: 11px; font-size: 13px; }
.investor-projection span { color: #63746b; }
.investor-projection strong { color: #116b4c; text-align: right; }
.investor-projection-table { margin-top: 14px; }
.investor-topup-list { margin-top: 15px; }
.investor-topup-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e7ece8; font-size: 13px; }
.investor-topup-details { display: grid; gap: 6px; }
.investor-topup-proof,.admin-topup-proof { width: fit-content; color: #08765c; font-size: 12px; font-weight: 750; text-decoration: none; }
.investor-topup-proof:hover,.admin-topup-proof:hover { text-decoration: underline; }
.investor-topup-archive { margin-top: 8px; padding: 10px 12px; background: #f7f9f8; border: 1px solid #e1e9e4; border-radius: 10px; }
.investor-topup-archive > summary { color: #65736b; font-size: 12px; font-weight: 750; cursor: pointer; }
.investor-topup-delete { padding: 7px 10px; color: #8b3c32; background: #fff; border: 1px solid #e3c7c2; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }
.investor-topup-delete:hover { background: #fff3f1; }
.investor-topup-delete:disabled { opacity: .55; cursor: wait; }
.investor-topup-cancel { width: fit-content; padding: 7px 10px; color: #9b4c16; background: #fff8ee; border: 1px solid #f0d0a5; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }
.investor-topup-cancel:hover { background: #ffefd7; }
.investor-topup-cancel:disabled { opacity: .55; cursor: wait; }
.topup-payment-target { display: grid; gap: 8px; margin: 18px 0; padding: 17px; background: linear-gradient(140deg, #edf8f2, #f5faf7); border: 1px solid #cfe5d8; border-radius: 14px; }
.topup-payment-label { color: #5e7166; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.topup-payment-number { color: #125d46; font-size: clamp(22px, 5vw, 28px); letter-spacing: .035em; font-variant-numeric: tabular-nums; }
.topup-payment-owner { color: #243d31; font-size: 13px; font-weight: 750; }
.topup-payment-target small,.topup-proof-name { color: #69796f; font-size: 12px; line-height: 1.5; }
.topup-payment-target .button { justify-self: start; }
.topup-proof-field input[type=file] { width: 100%; padding: 10px; background: #f7faf8; border: 1px dashed #a9cabb; border-radius: 10px; }
.topup-proof-name { margin: -4px 0 10px !important; }
.investor-updates-section { margin-top: 24px; }
.investor-project-updates,.admin-project-updates { display: grid; gap: 12px; }
.investor-update-card { padding: 16px; background: #fff; border: 1px solid #e1e9e4; border-radius: 12px; }
.investor-update-date { color: #07857d; font-size: 12px; font-weight: 750; }
.investor-update-card h4 { margin: 7px 0; }
.investor-update-card p { margin: 0 0 10px; color: #59675f; line-height: 1.55; white-space: pre-wrap; }
.investor-file-link { display: inline-flex; margin-top: 5px; text-decoration: none; }
.investor-dialog { width: min(520px, calc(100% - 28px)); max-height: min(88vh, 850px); padding: 26px; color: #23342b; border: 1px solid #dce6df; border-radius: 18px; box-shadow: 0 24px 90px rgb(16 39 27 / 30%); }
.investor-dialog::backdrop { background: rgb(15 32 23 / 55%); backdrop-filter: blur(3px); }
.investor-dialog h2 { margin: 5px 0 10px; }
.investor-dialog p { color: #68766e; line-height: 1.55; }
.investor-dialog > label { display: grid; gap: 7px; margin: 12px 0; font-size: 13px; font-weight: 650; }
.dialog-close-row { display: flex; justify-content: flex-end; margin: -10px -5px 10px; }
.dialog-close-row button { width: 36px; height: 36px; color: #526058; background: #edf2ee; border: 0; border-radius: 50%; font-size: 22px; cursor: pointer; }
.investor-receipt-dialog img { display: block; max-width: 100%; max-height: 60vh; margin: 12px auto; border-radius: 8px; }
.investor-receipt-dialog { width: min(720px, calc(100% - 28px)); }
.investor-invoice { overflow: hidden; background: #fff; border: 1px solid #dce1ec; border-radius: 14px; }
.investor-invoice-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px; color: #fff; border-bottom: 3px solid #d7a947; background: linear-gradient(145deg, #20243a, #343954 54%, #24283e); box-shadow: inset 0 1px 0 rgb(255 255 255 / 24%), inset 0 -4px 0 rgb(7 10 25 / 28%), 0 7px 16px rgb(19 23 44 / 20%); print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.investor-invoice-brand { display: grid; gap: 4px; min-width: 0; }
.investor-invoice-brand img { display: block; width: min(210px, 40vw); height: 48px; box-sizing: border-box; padding: 5px 8px; border-radius: 8px; background: #fff; object-fit: contain; object-position: left center; filter: drop-shadow(0 2px 2px rgb(0 0 0 / 45%)); }
.investor-invoice-brand strong { color: #fff1ce; font-size: 12px; letter-spacing: .08em; text-shadow: 0 1px 0 rgb(255 255 255 / 18%), 0 2px 3px rgb(0 0 0 / 65%); }
.investor-invoice-header > .investor-invoice-type { display: grid; gap: 3px; text-align: right; }
.investor-invoice-header span { font-size: 10px; letter-spacing: .12em; font-weight: 800; opacity: .8; }
.investor-invoice-header strong { font-size: 14px; }
@media (max-width: 520px) {
  .investor-invoice-header { flex-wrap: wrap; gap: 10px; padding: 16px; }
  .investor-invoice-brand img { width: min(170px, 42vw); height: 40px; }
  .investor-invoice-brand strong { font-size: 10px; letter-spacing: .04em; }
  .investor-invoice-header > .investor-invoice-type strong { font-size: 12px; }
}
.investor-invoice-title { display: flex; justify-content: space-between; gap: 18px; padding: 22px; border-bottom: 1px solid #e7eee9; }
.investor-invoice-title h2 { margin: 8px 0 5px; font-size: 22px; }
.investor-invoice-title p { margin: 0; font-size: 13px; }
.investor-invoice-title dl { min-width: 185px; margin: 0; }
.investor-invoice-title dl div { display: grid; gap: 2px; padding: 6px 0; }
.investor-invoice-title dt,.investor-invoice-party span,.investor-invoice-detail span,.investor-invoice-proof > span { color: #74827a; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.investor-invoice-title dd { margin: 0; color: #28483c; font-size: 13px; font-weight: 750; }
.investor-invoice-party { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 19px 22px; background: #f6faf7; }
.investor-invoice-party div,.investor-invoice-detail div { display: grid; gap: 5px; }
.investor-invoice-party strong { color: #1d3e33; font-size: 16px; }
.investor-invoice-party div:last-child { padding: 12px 14px; background: #e9f5ef; border: 1px solid #d3eadc; border-radius: 10px; }
.investor-invoice-party div:last-child strong { color: #087b59; font-size: 22px; }
.investor-invoice-party small { color: #687a70; }
.investor-invoice-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 20px 22px; }
.investor-invoice-detail div { padding: 10px 0; border-bottom: 1px solid #e8efeb; }
.investor-invoice-detail strong { color: #28483c; font-size: 14px; }
.investor-invoice-note { margin: 0 22px 18px; padding: 12px 14px; color: #52665a; background: #fff9ec; border: 1px solid #f0e1bb; border-radius: 9px; font-size: 12px; }
.investor-invoice-proof { display: grid; gap: 8px; margin: 0 22px 20px; padding-top: 16px; border-top: 1px dashed #cedbd3; }
.investor-invoice-proof img { max-height: 290px; }
.investor-invoice footer { padding: 14px 22px; color: #6c7b72; background: #f5f8f6; border-top: 1px solid #e3ebe6; font-size: 11px; text-align: center; }
.invoice-actions { justify-content: flex-end; margin-top: 16px; }
@media print {
  body.print-investor-invoice > * { display: none !important; }
  body.print-investor-invoice > #receipt-dialog { display: block !important; position: static; width: 100%; max-width: none; max-height: none; padding: 0; border: 0; box-shadow: none; }
  body.print-investor-invoice .dialog-close-row,body.print-investor-invoice .invoice-actions { display: none !important; }
  body.print-investor-invoice .investor-invoice { border: 0; border-radius: 0; }
}
.investor-admin-note { padding: 14px 16px; color: #475c50; background: #edf7f1; border: 1px solid #dbece2; border-radius: 12px; line-height: 1.55; }
.investor-admin-create,.investor-admin-section { margin: 18px 0; padding: 18px; background: #fbfdfb; border: 1px solid #e1e9e4; border-radius: 15px; }
.shareholding-admin-section { background: radial-gradient(circle at 100% 0%, rgb(33 177 139 / 8%), transparent 30%), #fbfdfb; }
.shareholder-entry-list,.shareholding-record-list { display: grid; gap: 10px; }
.shareholder-entry-list { grid-column: 1 / -1; }
.shareholder-entry-row { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(120px, .7fr) auto; gap: 10px; align-items: end; padding: 12px; background: #fff; border: 1px solid #e2ece6; border-radius: 12px; }
.shareholder-entry-row label { display: grid; gap: 6px; color: #53645b; font-size: 12px; font-weight: 650; }
.shareholder-entry-remove,.shareholding-record-remove { min-height: 40px; white-space: nowrap; }
.shareholding-add-row,.shareholding-note-field,.shareholding-form > .investor-admin-form-note,.shareholding-form > .login-error,.shareholding-form > button[type=submit],.shareholding-total { grid-column: 1 / -1; }
.shareholding-total { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 12px 14px; color: #5f7068; background: #f0f7f3; border: 1px solid #deebe3; border-radius: 11px; font-size: 12px; }
.shareholding-total strong { color: #b87918; font-size: 17px; }
.shareholding-total strong.is-valid { color: #147653; }
.shareholding-total span { margin-left: auto; color: #73827b; }
.shareholding-history-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 22px 0 10px; }
.shareholding-history-heading h4 { margin: 0; color: #244b42; }
.shareholding-history-heading > span { color: #77867e; font-size: 12px; }
.shareholding-record-row { display: grid; grid-template-columns: minmax(170px, .8fr) minmax(0, 1.6fr) auto; gap: 12px; align-items: center; padding: 14px; background: #fff; border: 1px solid #e1ebe5; border-radius: 12px; }
.shareholding-record-identity { display: grid; gap: 4px; }
.shareholding-record-identity strong { color: #24443b; font-size: 13px; }
.shareholding-record-identity span,.shareholding-record-note { color: #77867f; font-size: 11px; }
.shareholding-record-members { display: flex; flex-wrap: wrap; gap: 7px; }
.shareholding-record-members > span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 9px; color: #51645b; background: #f3f8f5; border: 1px solid #e7eee9; border-radius: 9px; font-size: 11px; }
.shareholding-record-members b { color: #127252; }
.shareholding-record-note { grid-column: 1 / -1; margin: 0; }
.investor-admin-create summary { color: #175f47; font-size: 17px; font-weight: 800; cursor: pointer; }
.investor-admin-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 16px; }
.investor-admin-form label { display: grid; align-content: start; gap: 6px; color: #53645b; font-size: 12px; font-weight: 650; }
.investor-admin-form input,.investor-admin-form select,.investor-admin-form textarea,.investor-admin-actions input,.investor-admin-actions select,.admin-payout-actions input,.admin-payout-actions select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; color: #27392f; background: #fff; border: 1px solid #d7e1da; border-radius: 8px; font: inherit; font-weight: 400; }
.investor-admin-form .investor-test-option input[type="checkbox"] { flex: 0 0 18px; width: 18px; min-height: 18px; height: 18px; padding: 0; border-radius: 4px; }
.investor-test-option > span { display: grid; gap: 3px; }
.investor-test-option small { color: #786324; font-size: 11px; font-weight: 400; }
.investor-admin-form textarea { resize: vertical; }
.investor-file-field { grid-column: span 2; }
.investor-admin-form-note { grid-column: 1 / -1; margin: 0; color: #6d7c72; font-size: 12px; line-height: 1.5; }
.investor-admin-form > button { justify-self: start; }
.project-update-description { grid-column: 1 / -1; }
.project-update-form-actions,.project-update-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.project-update-form-actions { grid-column: 1 / -1; }
.project-update-actions { margin-top: 12px; }
.project-target-selector { grid-column: 1 / -1; min-width: 0; margin: 4px 0; padding: 14px; border: 1px solid #d6e0e5; border-radius: 8px; }
.project-target-selector legend { padding: 0 6px; color: #274c3a; font-size: 13px; font-weight: 750; }
.project-target-selector > p { margin: 4px 0 12px; color: #6d7c72; font-size: 12px; line-height: 1.5; }
.project-investor-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.project-investor-option { display: flex !important; min-width: 0; align-items: flex-start; gap: 9px !important; padding: 10px; border: 1px solid #dce5df; border-radius: 6px; background: #fff; }
.project-investor-option input[type="checkbox"] { width: 18px !important; min-width: 18px; min-height: 18px !important; height: 18px; margin: 1px 0 0; padding: 0 !important; }
.project-investor-option span { min-width: 0; overflow-wrap: anywhere; }
.project-investor-option small { display: block; margin-top: 3px; color: #77837c; font-size: 11px; font-weight: 400; }
.report-form-shell { margin: 20px 0 30px; padding: 0 4px; }
.admin-app-page main > .report-page-surface { min-width: 0; padding: 24px; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow-wrap: anywhere; }
.report-published-shell { margin-top: 28px; padding: 24px 4px 0; border-top: 1px solid #d6e0e5; }
.report-published-shell > .investor-section-heading { margin-bottom: 16px; }
.report-published-shell .admin-project-updates { display: grid; gap: 12px; }
.report-published-shell .investor-update-card { border-radius: 8px; }
.project-update-audience { margin: 10px 0 0; color: #64736b; font-size: 12px; line-height: 1.5; }
.report-published-shell .project-update-actions .report-delete-button { color: #a64b45; border-color: #e7c4c0; }
.report-published-shell .project-update-actions .report-delete-button:hover { color: #8d342e; background: #fff3f1; }
.report-builder-section { grid-column: 1 / -1; display: grid; min-width: 0; gap: 12px; padding: 18px 0; border-top: 1px solid #dfe8e2; }
.report-builder-section h4 { margin: 0; color: #274c3a; }
.report-row-list { display: grid; gap: 8px; }
.report-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; gap: 8px; }
.report-row label { display: grid; min-width: 0; gap: 5px; color: #53645b; font-size: 11px; overflow-wrap: anywhere; }
.report-row input,.report-row select,.report-row textarea { width: 100%; min-width: 0; min-height: 38px; padding: 7px 9px; color: #27392f; background: #fff; border: 1px solid #d7e1da; border-radius: 6px; font: inherit; }
.report-row-remove { min-height: 38px; padding: 7px 10px; }
.topology-report-row { grid-template-columns: minmax(140px, 1.2fr) minmax(130px, 1fr) minmax(130px, 1fr) auto; }
.wbs-report-row { grid-template-columns: minmax(70px, .55fr) minmax(170px, 1.5fr) minmax(75px, .55fr) minmax(75px, .55fr) minmax(180px, 1.6fr) auto; }
.finance-report-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.finance-report-columns > div { display: grid; align-content: start; gap: 10px; }
.finance-report-columns p { margin: 0; color: #53645b; }
.report-list-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.finance-report-row { grid-template-columns: minmax(140px, 1fr) minmax(110px, .65fr) auto; }
.report-signatures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.report-signatures h4 { grid-column: 1 / -1; }
.topology-preview { display: block; width: 100%; height: auto; border: 1px solid #d7e1da; border-radius: 8px; background: #fff; }
.admin-investor-list,.admin-topup-list { display: grid; gap: 14px; }
.admin-investor-card { padding: 17px; background: #fff; border: 1px solid #dfe9e2; border-radius: 14px; box-shadow: 0 4px 14px rgb(27 59 39 / 4%); }
.admin-investor-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.admin-investor-header h4 { margin: 0 0 3px; font-size: 17px; }
.admin-investor-header > div { display: grid; gap: 6px; }
.admin-investor-principal { color: #116c4c; font-size: 19px; white-space: nowrap; }
.admin-investor-details { display: grid; gap: 6px; margin: 14px 0; color: #67756d; font-size: 12px; }
.investor-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 12px; }
.investor-whatsapp-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; color: #fff; background: linear-gradient(135deg, #159b6c, #087b57); border: 1px solid #087b57; border-radius: 10px; box-shadow: 0 5px 14px rgb(8 123 87 / 18%); font-weight: 750; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.investor-whatsapp-button::before { content: "◉"; font-size: 17px; line-height: 1; }
.investor-whatsapp-button:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgb(8 123 87 / 25%); }
.investor-whatsapp-result { grid-column: 1 / -1; display: grid; justify-items: start; gap: 8px; margin-top: 4px; padding: 17px; color: #214d3a; background: linear-gradient(135deg, #edf9f2, #f7fcf8); border: 1px solid #c9e8d5; border-radius: 14px; }
.investor-whatsapp-result[hidden] { display: none; }
.investor-whatsapp-result strong { font-size: 15px; }
.investor-whatsapp-result p { margin: 0; color: #5c7065; font-size: 13px; line-height: 1.5; }
.investor-edit-dialog { width: min(820px, calc(100% - 28px)); }
.investor-edit-heading,.investor-edit-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.investor-edit-heading h2 { margin: 5px 0 0; }
.investor-edit-actions { justify-content: flex-end; margin-top: 6px; }
.investor-admin-actions > input[type=date],.investor-admin-actions > select { width: auto; min-width: 150px; }
.investor-admin-actions small { flex: 1 1 100%; }
.investor-status-controls { padding-top: 12px; border-top: 1px solid #edf1ee; }
.admin-payouts-details { margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf1ee; }
.admin-payouts-details summary { color: #175f47; font-weight: 750; cursor: pointer; }
.admin-payout-row,.admin-topup-row { display: grid; gap: 10px; padding: 13px 0; border-bottom: 1px solid #edf1ee; }
.admin-payout-row > div:first-child { display: grid; gap: 4px; }
.admin-payout-actions { display: grid; grid-template-columns: 120px 150px minmax(150px, 1fr) auto auto; gap: 8px; align-items: center; }
.admin-payout-actions input[type=file] { font-size: 11px; }
.admin-topup-row { grid-template-columns: 1fr auto; align-items: center; }
.admin-topup-row .investor-admin-actions { margin: 0; }
.admin-topup-details { display: grid; gap: 6px; }

.investor-application-page .brand-header { margin-bottom: 12px; }
.investor-application-page main { width: min(100% - 28px, 760px); margin: 26px auto 48px; }
.investor-application-page main > section { padding: clamp(20px, 4vw, 36px); background: #fff; border: 1px solid #e0e9e3; border-radius: 18px; box-shadow: 0 14px 38px rgb(25 57 40 / 8%); }
.investor-application-page h2 { margin: 6px 0; color: #193b4c; }
.investor-application-intro,.investor-application-privacy { color: #627169; line-height: 1.55; }
.investor-application-form { display: grid; gap: 17px; margin-top: 22px; }
.investor-application-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; min-width: 0; padding: 17px; border: 1px solid #dce8e1; border-radius: 13px; }
.investor-application-form legend { padding: 0 7px; color: #087f80; font-weight: 800; }
.investor-application-form label { display: grid; align-content: start; gap: 6px; min-width: 0; color: #52635b; font-size: 13px; font-weight: 650; }
.investor-application-form input:not([type=checkbox]),.investor-application-form select,.investor-application-form textarea { width: 100%; min-height: 42px; padding: 9px 11px; color: #25392f; background: #fff; border: 1px solid #d2ded7; border-radius: 9px; font: inherit; font-weight: 400; }
.investor-application-form label small { color: #78867e; font-weight: 400; line-height: 1.4; }
.investor-application-form fieldset:first-of-type label:nth-of-type(3),.investor-application-form fieldset:last-of-type,.investor-application-consents { grid-column: 1 / -1; }
.investor-application-consents { grid-template-columns: 1fr !important; }
.investor-application-form .investor-consent { display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.investor-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: #07857d; }
.investor-application-form > button { justify-self: start; }
.investor-application-alert,.investor-application-success { margin-top: 18px; padding: 18px; border-radius: 12px; }
.investor-application-alert { color: #755319; background: #fff5dc; border: 1px solid #efd99c; }
.investor-application-success { color: #185c45; background: #eaf7f0; border: 1px solid #c8e6d6; }
.investor-application-success h3 { margin: 0 0 6px; }
.investor-application-success p { margin: 0; line-height: 1.55; }
.investor-review-page main { width: min(100% - 28px, 1040px); margin: 26px auto 48px; }
.investor-review-card { padding: clamp(20px, 4vw, 36px); background: #fff; border: 1px solid #e0e9e3; border-radius: 18px; box-shadow: 0 14px 38px rgb(25 57 40 / 8%); }
.investor-review-card h2 { margin: 6px 0; color: #193b4c; }
.investor-review-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 16px 0 12px; padding: 13px 15px; color: #294a3b; background: #edf7f1; border-radius: 10px; }
.investor-review-document { overflow: hidden; height: min(72vh, 900px); min-height: 580px; border: 1px solid #dce5df; border-radius: 10px; background: #fff; }
.investor-review-document iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.investor-review-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.investor-review-form { margin-top: 20px; padding: 18px; background: #f7faf8; border: 1px solid #e1e9e4; border-radius: 12px; }
.investor-review-form fieldset { display: grid; gap: 13px; padding: 14px; border: 1px solid #dce8e1; border-radius: 10px; }
.investor-review-form legend { padding: 0 7px; color: #087f80; font-weight: 800; }
.investor-review-form .investor-consent { display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.investor-review-form fieldset > label:last-child { display: grid; gap: 6px; color: #52635b; font-size: 13px; font-weight: 650; }
.investor-review-form textarea { width: 100%; padding: 10px; border: 1px solid #d2ded7; border-radius: 9px; font: inherit; }
.investor-review-form > button { margin-top: 12px; }
.investor-review-link-panel { display: grid; gap: 8px; margin-top: 12px; padding: 12px; background: #eff8f6; border: 1px solid #cce5de; border-radius: 10px; color: #305548; }
.investor-review-link-panel p,.investor-review-link-panel small { margin: 0; line-height: 1.45; }
.investor-review-link-value { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.investor-review-link-value input { min-width: 0; padding: 9px; border: 1px solid #cbdcd3; border-radius: 8px; }
.investor-review-link-value small { grid-column: 1 / -1; }
.investor-review-link-panel > .button { justify-self: start; }
.investor-signed-upload { margin-top: 18px; padding: 18px; background: #f3f9f6; border: 1px solid #cfe5d8; border-radius: 12px; }
.investor-signed-upload h3 { margin: 0 0 7px; color: #175f47; }
.investor-signed-upload > p { color: #53645b; line-height: 1.5; }
.investor-signed-upload-form { display: grid; gap: 13px; margin-top: 14px; }
.investor-signed-upload-form > label:not(.investor-consent) { display: grid; gap: 6px; color: #52635b; font-size: 13px; font-weight: 650; }
.investor-signed-upload-form input[type=file] { width: 100%; padding: 10px; background: #fff; border: 1px solid #d2ded7; border-radius: 9px; font: inherit; }
.investor-signed-upload-form .investor-consent { display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.investor-signed-upload-form > button { justify-self: start; }
.investor-signed-document-card { margin: 14px 0; padding: 14px; background: #f5faf7; border: 1px solid #d8e8df; border-radius: 11px; }
.investor-signed-document-card h4 { margin: 0 0 8px; color: #193b4c; }
.investor-signed-document-card > p { margin: 7px 0; color: #53645b; overflow-wrap: anywhere; }
.investor-signed-document-note { width: 100%; min-height: 60px; margin-top: 10px; padding: 9px 10px; border: 1px solid #d7e1da; border-radius: 8px; font: inherit; }
.investor-signed-document-preview { display: block; width: 100%; height: min(70vh, 820px); margin-top: 12px; border: 1px solid #d8e2dc; border-radius: 8px; background: #fff; }
.investor-invitation-form { grid-template-columns: 1fr 180px; }
.investor-invitation-result { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 13px; background: #edf7f2; border-radius: 10px; }
.investor-invitation-result label { grid-column: 1 / -1; }
.investor-invitation-result span { color: #627169; font-size: 12px; }
.investor-invitation-list,.investor-application-list { display: grid; gap: 12px; margin-top: 14px; }
.investor-invitation-row,.investor-application-card { padding: 15px; background: #fff; border: 1px solid #dfe9e2; border-radius: 12px; }
.investor-invitation-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #596a61; font-size: 13px; }
.investor-application-card h4 { margin: 0; color: #193b4c; font-size: 17px; }
.investor-application-meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px 14px; margin: 12px 0; color: #586a61; font-size: 13px; overflow-wrap: anywhere; }
.investor-application-terms { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding-top: 12px; border-top: 1px solid #edf1ee; }
.investor-application-terms label { display: grid; gap: 5px; color: #52635b; font-size: 12px; font-weight: 650; }
.investor-application-terms input,.investor-application-terms textarea,.investor-application-terms select { width: 100%; min-height: 38px; padding: 8px 9px; border: 1px solid #d7e1da; border-radius: 8px; font: inherit; font-weight: 400; }
.investor-application-terms textarea { min-height: 72px; resize: vertical; }
.investor-application-terms .wide { grid-column: 1 / -1; }
.investor-application-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.investor-application-note { width: 100%; min-height: 64px; padding: 8px 10px; border: 1px solid #d7e1da; border-radius: 8px; font: inherit; }
.investor-application-status { display: inline-flex; margin-top: 5px; padding: 5px 9px; color: #775a12; background: #fff2d2; border-radius: 999px; font-size: 11px; font-weight: 750; }
.investor-application-status.status-draft_ready { color: #135f48; background: #e2f5eb; }
.investor-application-card .investor-admin-form-note { margin-top: 10px; }

/* Investor portal: light-first palette inspired by the Pakuhaji Net logo. */
body.investor-page {
  color-scheme: only light;
  color: #18233b;
  background: radial-gradient(ellipse at 90% 0%, rgb(153 39 103 / 6%), transparent 28rem), #f5f7fb;
}

.investor-page header.brand-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 18px max(18px, calc((100% - 1120px) / 2));
  color: #fff;
  background: linear-gradient(112deg, #101a34 0%, #1b2948 72%, #422343 100%);
  border-bottom: 3px solid #e0ad3f;
  box-shadow: 0 10px 28px rgb(22 31 54 / 16%);
}

.investor-page .brand-lockup { gap: 12px; }
.investor-page .brand-logo { border-color: rgb(255 255 255 / 65%); box-shadow: 0 5px 16px rgb(5 10 23 / 20%); }
.investor-page .brand-header p { color: #e1e7f2; }
.investor-page .main-nav { width: auto; margin: 0; }
.investor-page .main-nav .button-secondary { color: #fff; background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 28%); }
.investor-page main { margin-top: 24px; }
.investor-page main > section { background: #fff; border-color: #e4e8f0; box-shadow: 0 15px 38px rgb(30 42 66 / 6%); }
.investor-page .investor-portfolio-card {
  background: radial-gradient(circle at 92% 0%, rgb(222 170 60 / 21%), transparent 29%), radial-gradient(circle at 0% 100%, rgb(151 37 99 / 18%), transparent 36%), linear-gradient(125deg, #111a33 0%, #1d2a49 68%, #29203e 100%);
  border-color: rgb(232 189 93 / 65%);
  box-shadow: 0 17px 38px rgb(19 27 48 / 20%);
}
.investor-page .investor-portfolio-eyebrow { color: #f3cd78; }
.investor-page .investor-avatar-wrap { background: #fff; border-color: #f0c763; }
.investor-page .investor-photo-button { color: #fff; background: #90265f; }
.investor-page .investor-photo-button:hover { background: #70204d; }
.investor-page .investor-status { color: #d8f5e5; background: #174a38; border-color: #518b70; }
.investor-page .investor-summary-card { background: #fff; border-color: #e6e9f0; box-shadow: 0 7px 20px rgb(18 28 48 / 8%); }
.investor-page .investor-summary-label { color: #606c83; }
.investor-page .investor-summary-card strong { color: #17213a; }
.investor-page .investor-summary-card small { color: #727e93; }
.investor-page .investor-summary-card.summary-principal .investor-summary-icon { color: #92245f; background: #f7e9f0; }
.investor-page .investor-summary-card.summary-monthly .investor-summary-icon { color: #946714; background: #fbf2dc; }
.investor-page .investor-summary-card.summary-paid .investor-summary-icon { color: #23734d; background: #e7f3e9; }
.investor-page .investor-summary-card.summary-pending .investor-summary-icon { color: #946714; background: #fbf2dc; }

@media (max-width: 900px) {
  .investor-page .investor-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .investor-page header.brand-header { padding: 16px; }
  .investor-page .brand-header .main-nav { width: 100%; justify-content: flex-end; }
  .investor-page main { margin-top: 16px; }
  .investor-page main > section { padding: 14px; }
  .investor-page .investor-portfolio-card { padding: 15px; }
  .investor-page .investor-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .investor-page .investor-summary-card { min-height: 116px; padding: 12px; }
  .investor-page .investor-summary-label { align-items: flex-start; font-size: 11px; }
  .investor-page .investor-summary-card strong { font-size: 17px; }
  .investor-page .investor-summary-card small { font-size: 11px; }
}

@media (max-width: 350px) {
  .investor-page .investor-summary-grid { grid-template-columns: 1fr; }
}

@media print {
  .investor-contract-print { max-width: 800px; margin: 20px auto; color: #111; font-family: Georgia, serif; line-height: 1.55; }
  .investor-contract-print h1,.investor-contract-print h2 { text-align: center; }
  .investor-contract-print table { width: 100%; border-collapse: collapse; }
  .investor-contract-print td,.investor-contract-print th { padding: 6px; border: 1px solid #999; text-align: left; }
  .investor-contract-draft-warning { padding: 10px; border: 2px solid #a33; color: #a33; font-weight: 700; text-align: center; }
}

@media (max-width: 900px) {
  .investor-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .investor-admin-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-payout-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .investor-insight-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .investor-summary-grid,.investor-detail-grid,.investor-admin-form { grid-template-columns: 1fr; }
  .shareholder-entry-row,.shareholding-record-row { grid-template-columns: 1fr; }
  .shareholder-entry-remove,.shareholding-record-remove { justify-self: start; }
  .shareholding-total span { flex-basis: 100%; margin-left: 0; }
  .investor-section-heading { align-items: stretch; flex-direction: column; }
  .investor-section-heading select { width: 100%; }
  .investor-file-field,.project-update-description { grid-column: auto; }
  .project-update-form-actions,.project-target-selector { grid-column: auto; }
  .report-builder-section,.report-signatures { grid-column: auto; grid-template-columns: 1fr; }
  .finance-report-columns { grid-template-columns: 1fr; }
  .report-row,.topology-report-row,.wbs-report-row,.finance-report-row { grid-template-columns: 1fr; }
  .wbs-report-row label:last-of-type { grid-column: auto; }
  .report-row-remove { justify-self: start; }
  .admin-investor-header { flex-direction: column; }
  .admin-payout-actions { grid-template-columns: 1fr; }
  .admin-topup-row { grid-template-columns: 1fr; }
  .investor-admin-actions > input[type=date],.investor-admin-actions > select { flex: 1 1 100%; width: 100%; }
}

@media (max-width: 600px) {
  .investor-portfolio-card { padding: 17px; border-radius: 19px; }
  .investor-portfolio-head { align-items: flex-start; margin-bottom: 17px; }
  .investor-profile-block { align-items: flex-start; gap: 13px; }
  .investor-avatar-wrap { flex-basis: 70px; width: 70px; height: 70px; }
  .investor-profile-initials { font-size: 21px; }
  .investor-profile-copy h2 { font-size: 22px; }
  .investor-summary-card { min-height: 110px; padding: 15px; }
  .investor-summary-card strong { font-size: 20px; }
  .investor-summary-card small { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .investor-login-page .login-card { animation: none; transition: none; transform: none; }
  .investor-login-page .login-card::before, .investor-login-page .login-card::after { animation: none; }
  .investor-app-download-link,.investor-android-bot,.investor-android-wave-arm { animation: none; transition: none; }
  .investor-summary-card { transition: none; }
  .investor-summary-card:hover { transform: none; }
}

@media (max-width: 600px) {
  .finance-page main {
    width: min(100% - 22px, 1120px);
    margin-top: 18px;
  }

  .finance-page main > section {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .finance-page .section-heading { gap: 14px; }

  .finance-page .download-actions { flex-direction: column; }

  .finance-page .download-actions .button { width: 100%; }
}

/* Admin sign-in */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top left, #dff7f2, transparent 38%), #f4f7fb;
}

.login-card {
  width: min(100%, 430px);
  padding: 36px;
  border: 1px solid #e6ebf1;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(16 40 70 / 10%);
}

.login-card .brand-logo { width: 54px; height: 54px; margin-bottom: 22px; }
.login-card .eyebrow { margin: 0 0 8px; color: #087e70; font-weight: 800; letter-spacing: .12em; }
.login-card h1 { margin: 0 0 8px; font-size: 1.8rem; }
.login-description { margin: 0 0 24px; color: #667085; }
.login-card form { display: grid; gap: 16px; }
.login-card label { display: grid; gap: 7px; font-weight: 650; }
.login-card input { width: 100%; padding: 12px 14px; border: 1px solid #d8dee8; border-radius: 11px; font: inherit; }
.login-card input:focus { outline: 3px solid rgb(8 126 112 / 16%); border-color: #087e70; }
.login-submit { width: 100%; justify-content: center; margin-top: 4px; }
.login-error { margin: 0; color: #b42318; }

/* Investor login: polished light surface that complements its multicolor edge glow. */
.investor-login-page {
  background: linear-gradient(145deg, #eef2f5 0%, #e7edf1 52%, #f1f4f6 100%);
}
.investor-login-page .login-card {
  position: relative;
  width: min(100%, 456px);
  padding: clamp(28px, 6vw, 40px);
  overflow: visible;
  isolation: isolate;
  border: 1px solid rgb(255 255 255 / 72%);
  border-top: 1px solid rgb(255 255 255 / 85%);
  border-radius: 28px;
  background: linear-gradient(145deg, #edf2f5, #e7edf1);
  box-shadow: 16px 16px 34px rgb(173 184 194 / 48%), -16px -16px 34px rgb(255 255 255 / 92%), inset 1px 1px 2px rgb(255 255 255 / 74%);
  transform: perspective(1100px) rotateX(.35deg);
  transition: transform .35s ease, box-shadow .35s ease;
}
.investor-login-page .login-card:hover { transform: perspective(1100px) rotateX(0) translateY(-2px); }
.investor-login-page .login-card::before,
.investor-login-page .login-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 13px;
  height: 13px;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 27%, #fffbe9 0 8%, #f4dda0 24%, #c99a3b 62%, #8d6420 100%);
  box-shadow: 0 2px 5px rgb(95 66 18 / 20%), 0 0 11px rgb(218 179 92 / 28%);
  animation: investor-login-gold-bead 3.6s ease-in-out infinite;
  pointer-events: none;
}
.investor-login-page .login-card::before { top: 25px; right: 26px; }
.investor-login-page .login-card::after { bottom: 27px; left: 23px; width: 9px; height: 9px; animation-delay: -1.8s; }
@keyframes investor-login-gold-bead {
  0%, 100% { transform: translate3d(0, 0, 8px) scale(.86); opacity: .68; }
  50% { transform: translate3d(-2px, -5px, 16px) scale(1.08); opacity: 1; }
}
.investor-login-page .login-card .brand-logo {
  width: 58px;
  height: 58px;
  padding: 7px;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 18px;
  background: linear-gradient(145deg, #edf2f5, #e7edf1);
  box-shadow: 6px 6px 13px rgb(173 184 194 / 45%), -6px -6px 13px rgb(255 255 255 / 90%);
}
.investor-login-page .login-card .eyebrow { color: #76518e; }
.investor-login-page .login-card h1 { color: #20243a; letter-spacing: -.035em; }
.investor-login-page .login-card input { border: 1px solid rgb(255 255 255 / 72%); border-radius: 13px; background: #eaf0f3; box-shadow: inset 5px 5px 10px rgb(174 184 194 / 32%), inset -5px -5px 10px rgb(255 255 255 / 88%); }
.investor-login-page .login-card input:focus { outline: 2px solid rgb(183 146 75 / 28%); border-color: #d3bd8e; }
.investor-login-page .login-submit { border: 1px solid rgb(255 255 255 / 78%); color: #414b55; background: linear-gradient(145deg, #eef3f6, #e4eaee); box-shadow: 7px 7px 14px rgb(173 184 194 / 42%), -7px -7px 14px rgb(255 255 255 / 92%); }
.investor-login-page .login-submit:hover { filter: brightness(1.04); transform: translateY(-1px); }

/* Admin navigation: fixed desktop sidebar and accessible mobile drawer. */
.admin-app-page { background: #f2f6f4; color: #172b25; }
.admin-app-layout { min-height: 100vh; }
.admin-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; flex-direction: column;
  width: 256px; padding: 25px 17px 18px; color: #eaf5ef;
  background: linear-gradient(165deg, #102f2b 0%, #16493e 58%, #12382f 100%);
  box-shadow: 8px 0 30px rgb(16 47 43 / 12%);
}
.admin-sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 5px 8px 25px; color: inherit; text-decoration: none; }
.admin-sidebar-brand .brand-logo { flex: 0 0 43px; width: 43px; height: 43px; margin: 0; color: #fff; background: #fff; }
.admin-sidebar-brand strong { display: block; font-size: 16px; letter-spacing: .01em; }
.admin-sidebar-brand small { display: block; margin-top: 4px; color: #a8c9bd; font-size: 11px; }
.admin-sidebar-label { margin: 2px 10px 10px; color: #9fc2b5; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.admin-sidebar-nav { display: grid; gap: 6px; }
.admin-sidebar-nav a, .admin-sidebar-logout {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 10px 12px;
  color: #d4e8e0; border: 1px solid transparent; border-radius: 11px; background: transparent;
  font: inherit; font-size: 14px; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.admin-sidebar-nav a:hover, .admin-sidebar-logout:hover { color: #fff; background: rgb(255 255 255 / 9%); }
.admin-sidebar-nav a[aria-current="page"] { color: #123a32; background: #d7f3e6; box-shadow: 0 6px 16px rgb(0 0 0 / 12%); }
.admin-nav-icon { display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; font-size: 17px; }
.admin-sidebar-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 14%); }
.admin-sidebar-logout { color: #f6d8d2; }
.admin-sidebar-note { margin: 12px 10px 0; color: #91b4a7; font-size: 11px; line-height: 1.5; }
.admin-main-column { min-width: 0; min-height: 100vh; margin-left: 256px; }
.admin-topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; min-height: 76px;
  padding: 12px clamp(20px, 3vw, 42px); color: #173b33; background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid #e0eae4; box-shadow: 0 5px 18px rgb(25 60 43 / 4%); backdrop-filter: blur(14px);
}
.admin-topbar-title { margin: 0; font-size: 17px; font-weight: 800; }
.admin-topbar-caption { margin: 4px 0 0; color: #74857e; font-size: 12px; }
.admin-menu-toggle { display: none; width: 42px; height: 42px; place-items: center; color: #174b3e; border: 1px solid #d8e5de; border-radius: 12px; background: #f7fbf8; font-size: 21px; cursor: pointer; }
.admin-app-page main { width: min(1180px, calc(100% - 48px)); margin: 30px auto 54px; }
.admin-app-page main > section { border-color: #e4ece7; border-radius: 17px; box-shadow: 0 9px 28px rgb(26 60 43 / 5%); }
.admin-sidebar-backdrop { display: none; }
.admin-app-page .heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-app-page .heading-actions .button { align-items: center; justify-content: center; min-height: 42px; }
.customer-import-note { margin: 0 0 10px !important; color: #687a71; font-size: 12px; }
.customer-import-status { margin: 0 0 14px !important; padding: 11px 13px; color: #17573d; background: #eaf7ef; border: 1px solid #cfe8d8; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.customer-import-status.is-error { color: #8d2e2e; background: #fff1ef; border-color: #f0cfca; }
@media (max-width: 900px) {
  .admin-sidebar { width: 232px; }
  .admin-main-column { margin-left: 232px; }
}
@media (max-width: 700px) {
  .admin-app-layout, .admin-main-column { min-height: 100dvh; }
  .admin-main-column { margin-left: 0; }
  .admin-sidebar { width: min(82vw, 300px); padding-top: max(20px, env(safe-area-inset-top)); transform: translateX(-105%); transition: transform .24s ease; box-shadow: 14px 0 40px rgb(8 29 25 / 22%); }
  .admin-app-page.admin-nav-open { overflow: hidden; }
  .admin-nav-open .admin-sidebar { transform: translateX(0); }
  .admin-sidebar-backdrop { position: fixed; inset: 0; z-index: 40; display: block; visibility: hidden; opacity: 0; border: 0; background: rgb(11 28 24 / 48%); transition: opacity .2s ease, visibility .2s ease; }
  .admin-nav-open .admin-sidebar-backdrop { visibility: visible; opacity: 1; }
  .admin-topbar { min-height: 66px; padding: 10px 16px; }
  .admin-menu-toggle { display: grid; flex: 0 0 42px; }
  .admin-app-page main { width: calc(100% - 24px); margin: 16px auto calc(28px + env(safe-area-inset-bottom)); }
  .admin-app-page main > section { padding: 17px; border-radius: 15px; }
  .admin-app-page .section-heading { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .admin-app-page .section-heading h2 { font-size: 19px; }
  .admin-app-page main > .report-page-surface { padding: 16px 14px; }
  .report-row,.topology-report-row,.wbs-report-row,.finance-report-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wbs-report-row label:last-of-type { grid-column: 1 / -1; }
  .admin-app-page .heading-actions { width: 100%; }
  .admin-app-page .heading-actions .button { flex: 1 1 42%; min-width: 130px; }
  .admin-sidebar-nav a, .admin-sidebar-logout { min-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-sidebar, .admin-sidebar-backdrop, .admin-sidebar-nav a, .admin-sidebar-logout { transition: none; }
}

/* Final investor dashboard embossed overrides (kept after shared theme rules). */
body.investor-page { color: #313b46; background: linear-gradient(145deg, #eef2f5 0%, #e7edf1 55%, #f0f3f5 100%); }
.investor-page header.brand-header { color: #35404b; background: linear-gradient(145deg, #edf2f5, #e6ecf0); border: 1px solid rgb(255 255 255 / 82%); border-bottom: 1px solid #d9e0e5; box-shadow: 8px 8px 18px rgb(173 184 194 / 35%), -8px -8px 18px rgb(255 255 255 / 82%); }
.investor-page .brand-header h1 { color: #303b46; }
.investor-page .brand-header p { color: #697580; }
.investor-page .brand-logo { border-color: #fff; box-shadow: 5px 5px 11px rgb(173 184 194 / 40%), -5px -5px 11px rgb(255 255 255 / 90%); }
.investor-page .main-nav .button-secondary { color: #46515c; background: linear-gradient(145deg, #eef3f6, #e4eaee); border-color: #fff; box-shadow: 5px 5px 10px rgb(173 184 194 / 34%), -5px -5px 10px rgb(255 255 255 / 85%); }
.investor-page main > section { background: transparent; border: 0; box-shadow: none; }
.investor-page .investor-portfolio-card,
.investor-page .investor-trend-panel,
.investor-page .statistics-panel,
.investor-page .investor-formula,
.investor-page .investor-calculator,
.investor-page .investor-updates-section { color: #35404b; background: linear-gradient(145deg, #edf2f5, #e7edf1); border: 1px solid rgb(255 255 255 / 82%); border-radius: 22px; box-shadow: 10px 10px 22px rgb(173 184 194 / 38%), -10px -10px 22px rgb(255 255 255 / 86%), inset 1px 1px 2px rgb(255 255 255 / 75%); }
.investor-page .investor-portfolio-card { overflow: visible; }
.investor-page .investor-portfolio-eyebrow { color: #9b7833; }
.investor-page .investor-profile-copy h2,.investor-page .investor-profile-copy p,.investor-page .investor-section-heading h3,.investor-page .investor-trend-heading h3,.investor-page .panel-heading h3 { color: #35404b; }
.investor-page .investor-profile-copy p,.investor-page .investor-section-heading p,.investor-page .investor-trend-heading p,.investor-page .panel-heading p { color: #697580; }
.investor-page .investor-avatar-wrap { border-color: #d6b76d; box-shadow: 5px 5px 12px rgb(173 184 194 / 40%), -5px -5px 12px rgb(255 255 255 / 90%); }
.investor-page .investor-status { color: #496a58; background: #e8f0eb; border-color: #d2dfd5; }
.investor-page .investor-summary-card,.investor-page .investor-update-card,.investor-page .investor-projection,.investor-page #investor-bank-details,.investor-page #investor-agreement { color: #39444e; background: linear-gradient(145deg, #edf2f5, #e7edf1); border: 1px solid rgb(255 255 255 / 80%); box-shadow: 6px 6px 13px rgb(173 184 194 / 35%), -6px -6px 13px rgb(255 255 255 / 82%); }
.investor-page .investor-summary-card { border-radius: 17px; }
.investor-page .investor-summary-card:hover { box-shadow: 8px 8px 16px rgb(173 184 194 / 40%), -8px -8px 16px rgb(255 255 255 / 88%); }
.investor-page .investor-summary-label,.investor-page .investor-summary-card strong,.investor-page .investor-summary-card small { color: #46525d; }
.investor-page .investor-summary-icon { color: #8b6d34; background: #eee9dc; box-shadow: inset 2px 2px 4px rgb(173 184 194 / 28%), inset -2px -2px 4px rgb(255 255 255 / 80%); }
.investor-page .investor-table { overflow: hidden; border-radius: 13px; background: #eaf0f3; box-shadow: 6px 6px 14px rgb(173 184 194 / 36%), -6px -6px 14px rgb(255 255 255 / 84%); }
.investor-page .investor-table th { color: #48535d; background: linear-gradient(145deg, #e8eef2, #dfe7ec); border-bottom: 1px solid #d2dce2; }
.investor-page .investor-table td { border-color: #dbe3e8; }
.investor-page .investor-table tbody tr:nth-child(even) { background: rgb(255 255 255 / 35%); }
.investor-page .investor-calculator input:not([type=range]),.investor-page .investor-calculator select,.investor-page .investor-section-heading select { color: #3c4650; background: #eaf0f3; border: 1px solid rgb(255 255 255 / 80%); border-radius: 11px; box-shadow: inset 4px 4px 8px rgb(173 184 194 / 30%), inset -4px -4px 8px rgb(255 255 255 / 88%); }
.investor-page .button:not(.button-secondary) { color: #48515b; background: linear-gradient(145deg, #eef3f6, #e3e9ed); border: 1px solid #fff; box-shadow: 5px 5px 11px rgb(173 184 194 / 38%), -5px -5px 11px rgb(255 255 255 / 84%); }
.investor-page .button:not(.button-secondary):hover { transform: translateY(-1px); box-shadow: 7px 7px 14px rgb(173 184 194 / 40%), -7px -7px 14px rgb(255 255 255 / 88%); }
.investor-page .investor-formula { border-left: 4px solid #c4a45c; }
.investor-page .investor-trend-chip { color: #5e715f; background: #e7eee8; border-color: #d5e0d6; }
.investor-page .investor-bank-panel,.investor-page .investor-agreement-panel { padding: 22px; }
.investor-page .investor-bank-panel .panel-heading,.investor-page .investor-agreement-panel .panel-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.investor-page .investor-bank-panel .panel-heading::before,.investor-page .investor-agreement-panel .panel-heading::before { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; color: #98783d; background: linear-gradient(145deg, #edf2f5, #e7edf1); border: 1px solid rgb(255 255 255 / 85%); border-radius: 14px; box-shadow: 4px 4px 9px rgb(173 184 194 / 34%), -4px -4px 9px rgb(255 255 255 / 86%); font-size: 19px; }
.investor-page .investor-bank-panel .panel-heading::before { content: "◇"; }
.investor-page .investor-agreement-panel .panel-heading::before { content: "▤"; }
.investor-page #investor-bank-details,.investor-page #investor-agreement { margin: 0; padding: 12px 16px; border-radius: 16px; }
.investor-page .investor-bank-row { align-items: center; min-height: 48px; padding: 8px 0; border-bottom: 1px solid #d7e0e5; }
.investor-page .investor-bank-row:last-child { border-bottom: 0; }
.investor-page .investor-bank-row > span:first-child { color: #78838c; font-size: 12px; }
.investor-page .investor-bank-row strong { color: #3b4650; font-weight: 750; }
.investor-page .investor-bank-logo { width: min(104px, 34vw); height: 34px; padding: 4px 8px; background: #edf2f5; border: 1px solid rgb(255 255 255 / 85%); border-radius: 9px; box-shadow: 3px 3px 7px rgb(173 184 194 / 27%), -3px -3px 7px rgb(255 255 255 / 75%); }
.investor-page #investor-agreement .investor-muted { display: flex; align-items: center; gap: 11px; min-height: 64px; margin: 0; padding: 11px 13px; color: #697580; background: rgb(255 255 255 / 30%); border: 1px dashed #cbd5dc; border-radius: 12px; line-height: 1.5; }
.investor-page #investor-agreement .investor-muted::before { content: "▤"; display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: #9b7833; background: #e8edf0; border-radius: 11px; font-size: 17px; }
.investor-page #investor-agreement .investor-document-name { margin: 0 0 12px; color: #46525d; font-weight: 700; overflow-wrap: anywhere; }
.investor-page #investor-agreement .investor-file-link { min-height: 40px; }
@media (prefers-reduced-motion: reduce) { .investor-page .investor-summary-card,.investor-page .button { transition: none; } .investor-page .investor-summary-card:hover,.investor-page .button:hover { transform: none; } }

.investor-page .brand-header,.investor-page main { position: relative; z-index: 1; }
.investor-gold-floaters { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.gold-floater { position: absolute; display: block; color: #b48a37; opacity: .28; animation: investor-gold-drift 13s ease-in-out infinite alternate; will-change: transform; }
.gold-dollar { font-family: Georgia, serif; font-size: clamp(20px, 2.4vw, 32px); font-weight: 700; text-shadow: 0 2px 7px rgb(170 126 39 / 18%); }
.gold-orb { width: 9px; height: 9px; border: 1px solid rgb(255 255 255 / 90%); border-radius: 50%; background: radial-gradient(circle at 32% 27%, #fffbe9 0 8%, #f4dda0 24%, #c99a3b 62%, #8d6420 100%); box-shadow: 0 2px 5px rgb(95 66 18 / 18%), 0 0 10px rgb(218 179 92 / 22%); }
.gold-floater:nth-child(1) { top: 18%; left: 7%; animation-delay: -2s; }
.gold-floater:nth-child(2) { top: 25%; left: 17%; animation-delay: -7s; }
.gold-floater:nth-child(3) { top: 43%; right: 8%; animation-delay: -5s; }
.gold-floater:nth-child(4) { top: 56%; right: 18%; animation-delay: -10s; }
.gold-floater:nth-child(5) { top: 72%; left: 11%; animation-delay: -8s; }
.gold-floater:nth-child(6) { top: 81%; left: 24%; animation-delay: -3s; }
.gold-floater:nth-child(7) { top: 66%; right: 9%; animation-delay: -11s; }
.gold-floater:nth-child(8) { top: 38%; right: 25%; animation-delay: -1s; }
@keyframes investor-gold-drift { 0% { transform: translate3d(0, 8px, 0) rotate(-8deg); } 50% { transform: translate3d(11px, -12px, 0) rotate(5deg); } 100% { transform: translate3d(-8px, -26px, 0) rotate(12deg); } }
@media (max-width: 600px) { .gold-floater { opacity: .16; } .gold-floater:nth-child(3),.gold-floater:nth-child(6) { display: none; } }
@media (prefers-reduced-motion: reduce) { .gold-floater { animation: none; } }

/* Admin sign-in inspired by the reference: blue night skyline and glass login card. */
.admin-login-page {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  color: #f5f9ff;
  background: #102c5c;
}
.admin-login-page::after {
  content: "";
  position: fixed;
  z-index: -2;
  inset: -1px;
  background: url("/admin-login-background.webp") center / cover no-repeat;
  filter: contrast(1.24) saturate(1.3) brightness(.96);
  transform: scale(1.01);
  pointer-events: none;
}
.admin-login-page::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgb(5 20 54 / 15%), rgb(12 44 91 / 4%) 48%, rgb(5 20 48 / 19%));
  pointer-events: none;
}
.admin-login-page .login-card {
  width: min(100%, 410px);
  padding: 34px 38px;
  color: #f7faff;
  border: 1px solid rgb(229 244 255 / 58%);
  border-radius: 20px;
  background: linear-gradient(145deg, rgb(104 161 213 / 36%), rgb(36 78 135 / 32%));
  box-shadow: 0 24px 70px rgb(5 20 48 / 35%), inset 0 1px 0 rgb(255 255 255 / 24%);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}
.admin-login-page .brand-logo { border: 1px solid rgb(255 255 255 / 66%); box-shadow: 0 8px 22px rgb(5 20 48 / 25%); }
.admin-login-page .eyebrow { color: #d8ebff; }
.admin-login-page .login-card h1 { color: #fff; text-shadow: 0 2px 12px rgb(8 30 62 / 32%); }
.admin-login-page .login-description { color: rgb(241 247 255 / 83%); }
.admin-login-page .login-card form { gap: 18px; }
.admin-login-page .login-card label { color: #f2f7ff; font-size: 14px; }
.admin-login-page .login-card input {
  padding: 11px 4px;
  color: #fff;
  border: 0;
  border-bottom: 2px solid rgb(13 34 63 / 76%);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.admin-login-page .login-card input::placeholder { color: rgb(240 247 255 / 70%); }
.admin-login-page .login-card input:focus { outline: 0; border-bottom-color: #a9e4ff; box-shadow: 0 2px 0 rgb(169 228 255 / 32%); }
.admin-login-page .login-submit {
  min-height: 46px;
  color: #f8fbff;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 9px;
  background: linear-gradient(135deg, #102540, #172f4d);
  box-shadow: 0 8px 20px rgb(5 20 48 / 22%);
}
.admin-login-page .login-submit:hover { background: linear-gradient(135deg, #193959, #1e4268); transform: translateY(-1px); }
.admin-login-page .owner-login-link { color: #e1f1ff; text-decoration-color: rgb(225 241 255 / 48%); }
.admin-login-page .owner-login-link:hover { color: #fff; }
.admin-login-page .login-error { color: #ffe0df; }
@media (max-width: 600px) {
  .admin-login-page { background-attachment: scroll; }
  .admin-login-page .login-card { padding: 29px 25px; }
}

/* Admin login: embossed sign-in layout based on the user's reference. */
.admin-login-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: clamp(20px, 5vw, 72px);
  color: #3a3b43;
  background: radial-gradient(ellipse at 28% 20%, #e6e7ef 0, #d4d6e3 52%, #c9ccdc 100%);
}
.admin-login-page::before,
.admin-login-page::after { display: none; }

/* Finance WhatsApp clusters: independent from mass-outage destinations. */
.finance-cluster-main { box-sizing: border-box; width: min(1180px, 100%); margin: 0 auto; padding: clamp(18px, 3vw, 36px); }
.finance-cluster-hero, .finance-cluster-card { min-width: 0; border: 1px solid rgb(255 255 255 / 82%); border-radius: 20px; background: linear-gradient(145deg, #edf2f5, #e6ecf0); box-shadow: 8px 8px 18px rgb(173 184 194 / 32%), -8px -8px 18px rgb(255 255 255 / 80%); }
.finance-cluster-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: clamp(22px, 4vw, 34px); }
.finance-cluster-hero > div { min-width: 0; }.finance-cluster-hero h1 { margin: 8px 0; color: #35404b; font-size: clamp(25px, 4vw, 36px); }.finance-cluster-hero p { max-width: 760px; margin: 0; color: #627184; line-height: 1.65; }
.finance-cluster-status, .finance-cluster-row-status { display: inline-flex; flex: 0 0 auto; align-items: center; padding: 7px 10px; border: 1px solid #ead9a9; border-radius: 999px; color: #7c5d1f; background: #fff7df; font-size: 12px; font-weight: 800; }
.finance-cluster-message { min-height: 22px; margin: 0 0 14px; color: #168060; font-size: 13px; font-weight: 700; }.finance-cluster-message.is-error { color: #ad3b3b; }
.finance-cluster-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: start; gap: 18px; }.finance-cluster-card { padding: clamp(18px, 3vw, 26px); }.finance-cluster-card-heading h2 { margin: 0 0 5px; color: #35404b; font-size: 20px; }.finance-cluster-card-heading p,.finance-cluster-empty { margin: 0 0 18px; color: #6f7a84; font-size: 13px; line-height: 1.55; }
.finance-cluster-form { display: grid; gap: 14px; }.finance-cluster-form label { display: grid; gap: 6px; min-width: 0; color: #586571; font-size: 13px; font-weight: 700; }.finance-cluster-form input,.finance-cluster-form textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: 11px 12px; }.finance-cluster-form textarea { resize: vertical; }
.finance-cluster-list { display: grid; gap: 11px; }.finance-cluster-row { display: grid; gap: 8px; min-width: 0; padding: 15px; border: 1px solid rgb(255 255 255 / 88%); border-radius: 14px; background: rgb(255 255 255 / 37%); }.finance-cluster-row > div:first-child { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }.finance-cluster-row h3,.finance-cluster-row p { margin: 0; }.finance-cluster-row h3 { min-width: 0; color: #35404b; font-size: 16px; overflow-wrap: anywhere; }.finance-cluster-row p { color: #627184; font-size: 12px; }.finance-cluster-row ul { display: grid; gap: 4px; margin: 1px 0; padding-left: 18px; color: #65778a; font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }.finance-cluster-row li { overflow-wrap: anywhere; }.finance-cluster-actions { display: flex; justify-content: flex-end; }
@media (max-width: 820px) { .finance-cluster-layout { grid-template-columns: minmax(0, 1fr); } }.finance-cluster-page { overflow-x: hidden; }@media (max-width: 560px) { .finance-cluster-main { padding: 14px; }.finance-cluster-hero { align-items: flex-start; flex-direction: column; padding: 20px; }.finance-cluster-status { white-space: normal; }.finance-cluster-card { padding: 16px; }.finance-cluster-row > div:first-child { align-items: flex-start; flex-direction: column; }.finance-cluster-actions .delete-button { width: 100%; } }

/* Fixed assets and VPS monitoring */
.asset-metrics,.monitor-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.asset-metrics article,.asset-panel,.asset-registry,.asset-form,.monitor-card,.monitor-panel{min-width:0;padding:18px;border:1px solid #e1e9e5;border-radius:14px;background:#fbfdfc;box-shadow:0 5px 18px rgb(37 68 58 / 4%)}.asset-metrics span,.asset-metrics small,.monitor-card>span,.monitor-card>small{display:block;color:#718078;font-size:12px}.asset-metrics strong,.monitor-card>strong{display:block;margin:8px 0 5px;color:#243f38;font-size:clamp(21px,2.5vw,29px);overflow-wrap:anywhere}.asset-dashboard-grid,.monitor-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.asset-panel h3,.asset-registry h3,.monitor-panel h3{margin:0 0 14px;font-size:16px}.asset-status-chart,.asset-alerts,.monitor-alerts,.monitor-load-list,.monitor-record-list,.monitor-directory-list{display:grid;gap:10px}.asset-status-row{display:grid;grid-template-columns:128px minmax(0,1fr) 26px;align-items:center;gap:9px;color:#5c6d65;font-size:12px}.asset-status-row>div{height:9px;overflow:hidden;border-radius:999px;background:#e7efea}.asset-status-fill{display:block;height:100%;min-width:2px;border-radius:inherit;background:#158260}.asset-status-fill.repair{background:#e5a13e}.asset-status-fill.retired{background:#ca6955}.asset-status-fill.disposed{background:#9aa5a0}.asset-status-row strong{text-align:end;color:#30463d}.asset-alert,.monitor-alert,.monitor-status{margin:0;padding:10px 12px;border:1px solid #cfe8d8;border-radius:9px;background:#eaf7ef;color:#275d43;font-size:13px}.asset-alert.overdue,.monitor-alert.is-critical,.monitor-status.is-error{border-color:#f0cfca;background:#fff1ef;color:#8d2e2e}.monitor-alert.is-warning{border-color:#f0dfad;background:#fff7df;color:#795512}.asset-form{margin:20px 0}.asset-form[hidden],.asset-pagination[hidden]{display:none}.asset-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.asset-form label{display:grid;gap:6px;color:#51625a;font-size:12px;font-weight:700}.asset-form input,.asset-form select,.asset-form textarea,.asset-tools input,.asset-tools select,.monitor-record-controls select{width:100%;box-sizing:border-box;padding:10px;color:#27372f;border:1px solid #d7e3dc;border-radius:8px;background:#fff;font:inherit}.asset-form-wide{grid-column:span 2}.asset-registry{margin-top:20px}.asset-tools{display:grid;grid-template-columns:minmax(0,1fr) 190px auto;gap:10px;margin-bottom:16px}.asset-registry-heading,.monitor-table-heading,.monitor-record-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.asset-registry-heading p,.asset-empty,.monitor-updated,.monitor-db-caption,.monitor-privacy-note{margin:0;color:#718078;font-size:12px}.asset-registry-toggle{width:32px;height:32px;border:1px solid #dfe9e3;border-radius:9px;background:#f7faf8;cursor:pointer}.asset-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.asset-card{min-width:0;padding:12px;border:1px solid #deebe4;border-radius:10px;background:#fff}.asset-card-head,.asset-actions,.asset-pagination,.asset-image-editor,.asset-invoice-editor,.asset-invoice,.asset-invoice-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.asset-card-head{justify-content:space-between}.asset-code{color:#13815f;font-size:10px;font-weight:800}.asset-card h3{margin:3px 0;color:#273b33;font-size:15px}.asset-badge{padding:3px 7px;border-radius:999px;color:#146345;background:#e6f5eb;font-size:10px;font-weight:700}.asset-badge.repair{color:#8c5a12;background:#fff2d7}.asset-badge.retired,.asset-badge.disposed{color:#88443b;background:#fbe9e6}.asset-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}.asset-detail-grid dt{color:#78877f;font-size:10px}.asset-detail-grid dd{margin:2px 0 0;color:#31443b;font-size:11px;font-weight:700;overflow-wrap:anywhere}.asset-actions{margin-top:10px}.asset-action,.asset-page-button{padding:6px 8px;color:#245e48;border:1px solid #cfe1d6;border-radius:7px;background:#f4faf6;cursor:pointer;font:inherit;font-size:11px;font-weight:700}.asset-action.danger{color:#9b4238;border-color:#f1d1cd;background:#fff4f2}.asset-pagination{justify-content:space-between;margin-top:16px;padding-top:12px;border-top:1px solid #e6ede9}.asset-image-preview{display:grid;width:132px;height:96px;place-items:center;overflow:hidden;color:#718078;border:1px dashed #cddbd2;border-radius:9px;background:#f7faf8;font-size:11px;text-align:center}.asset-image-preview img,.asset-card-photo img{width:100%;height:100%;object-fit:contain}.asset-card-photo{display:grid;min-height:100px;place-items:center;overflow:hidden;color:#718078;border-radius:8px;background:#f3f7f4;font-size:10px}.asset-visuals{display:grid;grid-template-columns:minmax(90px,.65fr) minmax(0,1.35fr);gap:10px;align-items:center;margin:10px 0}.asset-barcode{display:block;width:100%;height:52px}.asset-invoice-preview,.asset-invoice{padding:8px 10px;border:1px solid #edf1ee;border-radius:9px;background:#fbfcfb;color:#718078;font-size:11px}.asset-invoice{margin-top:10px}.asset-invoice-thumb,.asset-invoice-pdf{width:52px;height:52px;object-fit:cover;border-radius:7px}.monitor-definition-list{display:grid;grid-template-columns:minmax(115px,.8fr) minmax(0,1.2fr);gap:9px 14px;margin:0;font-size:12px}.monitor-definition-list dt{color:#687a71}.monitor-definition-list dd{margin:0;color:#263d32;font-weight:700;overflow-wrap:anywhere}.monitor-load-list>div{display:flex;justify-content:space-between;gap:12px;padding-bottom:9px;border-bottom:1px solid #edf1ee;font-size:12px}.monitor-table-panel{margin-top:14px}.monitor-collection-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px}.monitor-collection-card{display:grid;gap:5px;padding:11px;color:#263d32;border:1px solid #e4ece7;border-radius:10px;background:#f8fbf9;text-align:left;cursor:pointer}.monitor-record-controls{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:15px}.monitor-record,.monitor-directory{overflow:hidden;border:1px solid #e4ece7;border-radius:9px;background:#fff}.monitor-record summary,.monitor-directory summary{padding:11px 13px;color:#264b3d;background:#f7faf8;font-size:12px;font-weight:700;cursor:pointer}.monitor-record pre{max-height:440px;margin:0;padding:13px;overflow:auto;font:11px/1.55 Consolas,monospace;white-space:pre-wrap}.monitor-table-wrap{width:100%;overflow-x:auto}.monitor-table-wrap table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.monitor-table-wrap th,.monitor-table-wrap td{padding:10px 11px;border-bottom:1px solid #edf1ee;vertical-align:top}.monitor-service-state{font-weight:800}.monitor-service-state.is-active{color:#187344}.monitor-service-state.is-failed{color:#b42318}@media(max-width:1000px){.asset-metrics,.monitor-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.asset-dashboard-grid{grid-template-columns:1fr}.asset-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.asset-list,.monitor-detail-grid{grid-template-columns:1fr}.asset-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.monitor-card,.monitor-panel{padding:14px}.monitor-definition-list{grid-template-columns:minmax(95px,.75fr) minmax(0,1.25fr)}.monitor-record-controls{align-items:stretch;flex-direction:column}}@media(max-width:600px){.asset-metrics,.asset-form-grid,.asset-tools{grid-template-columns:1fr}.asset-form-wide{grid-column:auto}.asset-visuals{grid-template-columns:1fr}}

/* Mass-outage administration */
.gangguan-main { box-sizing: border-box; width: min(1180px, 100%); margin: 0 auto; padding: clamp(18px, 3vw, 36px); }
.gangguan-hero, .gangguan-card { border: 1px solid rgb(255 255 255 / 76%); border-radius: 22px; background: linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(236 244 247 / 90%)); box-shadow: 0 16px 38px rgb(34 58 82 / 9%), inset 0 1px 0 #fff; }
.gangguan-hero { margin-bottom: 18px; padding: clamp(22px, 4vw, 36px); }
.gangguan-hero h1 { margin: 8px 0; color: #26374a; font-size: clamp(25px, 4vw, 36px); }
.gangguan-hero p { max-width: 760px; color: #627184; line-height: 1.65; }
.gangguan-status { min-height: 22px; margin: 13px 0 0; color: #168060 !important; font-size: 13px; font-weight: 700; }
.gangguan-status.is-error { color: #ad3b3b !important; }
.network-status-card { margin-bottom: 18px; }
.network-status-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.network-status-current { margin: 0; color: #168060; font-size: 20px; font-weight: 800; }
.network-status-current.is-outage { color: #ad3b3b; }
.network-status-updated { margin: 4px 0 0; color: #6d7d8d; font-size: 12px; }
.network-status-toggle { display: flex; flex-wrap: wrap; gap: 8px; }
#network-status-normal[aria-pressed="true"] { border-color: #168060; background: #e8f5ee; color: #116344; }
#network-status-outage[aria-pressed="true"] { border-color: #ad3b3b; background: #fff0ee; color: #9a2929; }
.network-status-toggle button:disabled { cursor: wait; opacity: .65; }
.gangguan-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 18px; align-items: start; }
.gangguan-card { padding: clamp(18px, 3vw, 26px); }
.gangguan-card-heading h2 { margin: 0 0 5px; color: #26374a; font-size: 21px; }
.gangguan-card-heading p, .gangguan-empty { margin: 0 0 18px; color: #6d7d8d; font-size: 13px; line-height: 1.55; }
.gangguan-form { display: grid; gap: 14px; }
.gangguan-form label { display: grid; gap: 6px; color: #3b4d60; font-size: 13px; font-weight: 700; }
.gangguan-form input, .gangguan-form textarea { box-sizing: border-box; width: 100%; border: 1px solid #cfdae4; border-radius: 11px; background: #fff; color: #273b50; font: inherit; font-weight: 400; padding: 11px 12px; }
.gangguan-form textarea { resize: vertical; }
.cluster-picker { min-width: 0; margin: 2px 0 0; padding: 13px; border: 1px solid #d7e1e9; border-radius: 13px; }
.cluster-picker legend { padding: 0 5px; color: #3b4d60; font-size: 13px; font-weight: 800; }
.cluster-picker > p { margin: 2px 0; color: #6d7d8d; font-size: 13px; }
.cluster-choices { display: grid; gap: 8px; }
.cluster-choice { display: flex !important; align-items: center; gap: 10px; padding: 9px; border-radius: 10px; background: rgb(241 246 249 / 76%); cursor: pointer; }
.cluster-choice input { width: 17px; height: 17px; accent-color: #078b8c; }
.cluster-choice span, .cluster-row div { min-width: 0; max-width: 100%; overflow: hidden; }
.cluster-choice span, .cluster-row div { flex: 1 1 0; }
.cluster-choice strong, .cluster-choice small, .cluster-row strong, .cluster-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cluster-choice small, .cluster-row small { margin-top: 3px; color: #718092; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 400; }
.cluster-list, .outage-list { display: grid; gap: 10px; margin-top: 17px; }
.cluster-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #dce5eb; border-radius: 13px; background: rgb(255 255 255 / 73%); }
.cluster-row strong { color: #2f4051; font-size: 14px; }
.gangguan-history { margin-top: 18px; }
.outage-row { display: grid; gap: 9px; padding: 16px; border: 1px solid #dce5eb; border-radius: 14px; background: rgb(255 255 255 / 76%); }
.outage-row > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.outage-row h3, .outage-row p { margin: 0; }
.outage-row h3 { color: #2d4052; font-size: 16px; }
.outage-row p { color: #596d7f; font-size: 13px; line-height: 1.55; }
.outage-row small { color: #718092; font-size: 12px; }
.outage-note { padding-left: 10px; border-left: 3px solid #e6bc62; }
.outage-badge { display: inline-flex; flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: #fff0cf; color: #7a5716; font-size: 12px; font-weight: 800; }
.outage-badge.is-done { background: #dcefe5; color: #25704d; }
@media (max-width: 820px) { .gangguan-page, .gangguan-main { overflow-x: clip; } .gangguan-main, .gangguan-grid, .gangguan-card, .gangguan-form, .cluster-list, .outage-list { min-width: 0; max-width: 100%; } .gangguan-hero, .gangguan-card, .cluster-picker, .cluster-choice, .cluster-row, .outage-row { box-sizing: border-box; max-width: 100%; } .gangguan-hero p, .gangguan-card p, .cluster-choice small, .cluster-row small { overflow-wrap: anywhere; } .gangguan-grid { grid-template-columns: minmax(0, 1fr); } .network-status-row { align-items: flex-start; flex-direction: column; } }
@media (max-width: 520px) { .gangguan-page { overflow-x: hidden; } .gangguan-main { padding: 14px; } .gangguan-card { min-width: 0; padding: 16px; } .cluster-picker { padding: 10px; } .cluster-choice, .cluster-row { min-width: 0; } .cluster-choice strong, .cluster-choice small, .cluster-row strong, .cluster-row small { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; } .cluster-row { align-items: flex-start; flex-direction: column; } .cluster-row > div { width: 100%; } .cluster-row .delete-button { width: 100%; } .outage-row > div { align-items: flex-start; flex-direction: column; } }
.admin-login-layout {
  position: relative;
  display: grid;
  width: min(1120px, 100%);
  min-height: min(640px, calc(100svh - 40px));
  grid-template-columns: minmax(330px, 410px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(42px, 8vw, 120px);
}
.admin-login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 480px;
  padding: 38px 48px 34px;
  overflow: visible;
  color: #41414a;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 3px;
  background: linear-gradient(145deg, #dedfe7, #c9cbd6);
  box-shadow: 20px 24px 38px rgb(83 88 106 / 32%), -8px -8px 22px rgb(255 255 255 / 82%), inset 4px 0 0 #fff;
  animation: admin-login-card-rise .75s cubic-bezier(.2,.75,.25,1) both;
}
.admin-login-key {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  place-items: center;
  color: #f6f6f8;
  border-radius: 50%;
  background: #414148;
  box-shadow: 7px 8px 14px rgb(96 99 114 / 27%), -4px -4px 12px rgb(255 255 255 / 75%);
}
.admin-login-key svg { width: 35px; height: 35px; }
.admin-login-brand { margin: 0 0 3px; color: #747681; font-size: 10px; font-weight: 800; letter-spacing: .2em; text-align: center; }
.admin-login-card h1 { margin: 0 0 32px; color: #42434c; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 29px; letter-spacing: .025em; text-align: center; text-shadow: 1px 2px 0 rgb(255 255 255 / 75%); }
.admin-login-card form { display: grid; gap: 24px; }
.admin-login-card .admin-login-field { position: relative; display: flex; min-height: 50px; align-items: center; gap: 10px; border-bottom: 2px solid #53545c; }
.admin-login-card .admin-login-field svg { width: 17px; height: 17px; flex: 0 0 auto; fill: #53545c; }
.admin-login-card .admin-login-field input { width: 100%; min-width: 0; padding: 11px 2px; color: #3d3e46; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; font-size: 16px; }
.admin-login-card .admin-login-field input::placeholder { color: #686a74; opacity: 1; }
.admin-login-card .admin-login-field:focus-within { border-color: #25262d; box-shadow: 0 2px 0 rgb(255 255 255 / 60%); }
.admin-login-card .login-error { color: #a33434; font-size: 13px; }
.admin-login-card .login-submit { min-height: 48px; margin: 3px 0 0; color: #f5f5f7; border: 1px solid #36373e; border-radius: 2px; background: #3d3e45; box-shadow: 7px 8px 14px rgb(95 97 110 / 22%), inset 0 1px 0 rgb(255 255 255 / 16%); font-size: 16px; letter-spacing: .02em; }
.admin-login-card .login-submit:hover { background: #2e2f36; transform: translateY(-1px); }
.admin-login-alt-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.admin-login-alt-links .owner-login-link { color: #545661; font-size: 12px; text-align: center; text-decoration-color: rgb(84 86 97 / 35%); }
.admin-login-alt-links .owner-login-link:hover { color: #202127; }
.admin-login-promo { position: relative; isolation: isolate; display: flex; min-height: 390px; flex-direction: column; justify-content: center; padding: 26px; color: #666875; }
.admin-login-promo::before { content: "PAKUHAJI NET"; position: absolute; top: 50%; left: 50%; z-index: -1; width: max-content; color: rgb(255 255 255 / 20%); font-size: clamp(58px, 8.2vw, 112px); font-weight: 900; letter-spacing: -.06em; line-height: 1; text-shadow: 7px 8px 0 rgb(137 142 160 / 11%); transform: translate(-50%,-50%) rotate(-43deg); }
.admin-login-promo .promo-mark { color: #45464e; font-size: clamp(82px, 12vw, 158px); font-weight: 950; letter-spacing: -.1em; line-height: .95; text-shadow: 4px 5px 0 rgb(255 255 255 / 64%), 11px 14px 20px rgb(92 96 112 / 27%); }
.admin-login-promo strong { margin-top: 20px; color: #4b4c55; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.04em; text-shadow: 1px 2px 0 rgb(255 255 255 / 75%); }
.admin-login-promo > span:last-child { margin-top: 5px; color: #767884; font-size: 19px; }
@keyframes admin-login-card-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .admin-login-page { padding: 20px; }
  .admin-login-layout { width: min(410px, 100%); min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .admin-login-card { min-height: 0; padding: 34px 30px 28px; }
  .admin-login-promo { display: none; }
}
@media (max-height: 620px) and (min-width: 761px) {
  .admin-login-layout { min-height: 0; }
  .admin-login-card { min-height: 0; padding-top: 22px; padding-bottom: 22px; }
  .admin-login-key { width: 58px; height: 58px; }
  .admin-login-card h1 { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { .admin-login-card { animation: none; } }

/* Raise the card above the page and make its bevel visible over legacy rules. */
.admin-login-page .admin-login-card {
  isolation: isolate;
  min-height: 480px;
  color: #41414a;
  border: 1px solid rgb(255 255 255 / 88%);
  border-left: 22px solid #fafaff;
  border-right: 22px solid #aeb0bc;
  border-radius: 2px;
  background: linear-gradient(145deg, #dedfe7 0%, #c9cbd6 100%);
  box-shadow: 29px 32px 0 -1px #a9abb7, 66px 78px 48px rgb(73 78 96 / 42%), -10px -10px 22px rgb(255 255 255 / 90%), inset 2px 0 0 rgb(255 255 255 / 72%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.admin-login-page .admin-login-card::before {
  display: none;
}
.admin-login-page .admin-login-card h1 { color: #42434c; text-shadow: 1px 2px 0 rgb(255 255 255 / 78%); }

/* Keep the portal identity visually centred while form fields remain easy to scan. */
.login-card > .brand-logo { margin-right: auto; margin-left: auto; }
.login-card > .eyebrow,
.login-card > h1,
.login-card > .login-description,
.login-card > .admin-login-role-links { text-align: center; }
.login-card > .admin-login-role-links { justify-content: center; }
.admin-portal-login .login-card .brand-logo { width: 82px; height: 82px; margin-bottom: 24px; padding: 9px; border-radius: 23px; }
.investor-login-page:not(.admin-portal-login) .login-card .brand-logo { width: 82px; height: 82px; margin-bottom: 24px; padding: 9px; border-radius: 23px; }
.owner-login-page .login-card .brand-logo { width: 102px; height: 102px; margin-bottom: 26px; padding: 11px; border-radius: 28px; }
.owner-login-page .login-card > .eyebrow { display: block; width: 100%; margin-right: auto; margin-left: auto; text-align: center; }

/* The transaction entry page is intentionally focused on the entry form only. */
.transaction-entry-page .download-actions,
.transaction-entry-page .accounting-summary,
.transaction-entry-page .finance-summary,
.transaction-entry-page .statistics-grid,
.transaction-entry-page .finance-shortcuts,
.transaction-entry-page .finance-note,
.transaction-entry-page .employee-manager,
.transaction-entry-page .transaction-history-section { display: none !important; }

/* Single-level sidebar groups: the parent only opens its submenu. */
.admin-nav-group { display: grid; gap: 5px; }
.admin-nav-group-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 10px 12px;
  color: #56616d; border: 1px solid transparent; border-radius: 12px; background: transparent;
  font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.admin-nav-group-toggle:hover { color: #39444f; background: rgb(255 255 255 / 55%); }
.admin-nav-group-toggle[aria-expanded="true"] { color: #68572e; background: rgb(244 240 230 / 70%); }
.admin-nav-chevron { display: grid; width: 23px; height: 23px; margin-left: auto; place-items: center; color: #6e603b; border: 1px solid rgb(139 119 67 / 28%); border-radius: 50%; background: rgb(255 255 255 / 52%); font-size: 19px; font-weight: 500; line-height: 1; transition: transform .2s ease, background .2s ease, color .2s ease; }
.admin-nav-group-toggle[aria-expanded="true"] .admin-nav-chevron { color: #fff; background: #9b7c38; transform: rotate(45deg); }
.admin-submenu { display: grid; gap: 4px; margin: -1px 0 2px 18px; padding-left: 10px; border-left: 1px solid rgb(99 112 121 / 28%); }
.admin-submenu .admin-sidebar-link { min-height: 40px; padding: 8px 10px; font-size: 13px; }
.admin-submenu .admin-nav-icon { width: 18px; height: 18px; flex-basis: 18px; font-size: 14px; }
@media (max-width: 700px) {
  .admin-nav-group-toggle { min-height: 50px; }
  .admin-submenu .admin-sidebar-link { min-height: 46px; }
}
@media (max-width: 760px) {
  .admin-login-page .admin-login-card { min-height: 0; border-left-width: 12px; border-right-width: 13px; box-shadow: 16px 18px 0 -1px #a9abb7, 32px 42px 32px rgb(73 78 96 / 36%), -7px -7px 16px rgb(255 255 255 / 85%); }
}

/* Admin access shortcuts use the same soft raised surfaces as the investor login. */
.admin-login-role-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.admin-login-role-links a { display: grid; min-height: 42px; place-items: center; padding: 8px 10px; color: #4d5360; border: 1px solid rgb(255 255 255 / 78%); border-radius: 12px; background: linear-gradient(145deg, #eef3f6, #e4eaee); box-shadow: 5px 5px 11px rgb(173 184 194 / 38%), -5px -5px 11px rgb(255 255 255 / 88%); font-size: 12px; font-weight: 650; line-height: 1.25; text-align: center; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.admin-login-role-links a:hover { color: #28384a; box-shadow: 3px 3px 8px rgb(173 184 194 / 34%), -3px -3px 8px rgb(255 255 255 / 84%); transform: translateY(-1px); }
@media (max-width: 390px) { .admin-login-role-links { gap: 8px; } .admin-login-role-links a { padding-inline: 6px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .admin-login-role-links a { transition: none; } }

/* Owner sign-in and dashboard share the investor portal's light embossed theme. */
.owner-login-page { background: linear-gradient(145deg, #eef2f5 0%, #e7edf1 52%, #f1f4f6 100%); }
.owner-page {
  min-height: 100vh;
  color: #35404b;
  background: linear-gradient(145deg, #eef2f5 0%, #e7edf1 55%, #f0f3f5 100%);
}
.owner-page .brand-header {
  color: #35404b;
  background: linear-gradient(145deg, #edf2f5, #e6ecf0);
  border: 1px solid rgb(255 255 255 / 82%);
  border-bottom-color: #d9e0e5;
  box-shadow: 8px 8px 18px rgb(173 184 194 / 35%), -8px -8px 18px rgb(255 255 255 / 82%);
}
.owner-page .brand-header h1 { color: #303b46; }
.owner-page .brand-header p { color: #697580; }
.owner-page .brand-logo { border-color: #fff; box-shadow: 5px 5px 11px rgb(173 184 194 / 40%), -5px -5px 11px rgb(255 255 255 / 90%); }
.owner-page .main-nav .button-secondary,
.owner-page .owner-access-badge,
.owner-page .owner-period {
  color: #46515c;
  border: 1px solid #fff;
  border-radius: 13px;
  background: linear-gradient(145deg, #eef3f6, #e4eaee);
  box-shadow: 5px 5px 10px rgb(173 184 194 / 34%), -5px -5px 10px rgb(255 255 255 / 85%);
}
.owner-page .owner-main > section { border: 0; background: transparent; box-shadow: none; }
.owner-page .owner-welcome,
.owner-page .owner-panel,
.owner-page .owner-metric {
  color: #39444e;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 20px;
  background: linear-gradient(145deg, #edf2f5, #e7edf1);
  box-shadow: 7px 7px 16px rgb(173 184 194 / 38%), -7px -7px 16px rgb(255 255 255 / 86%);
}
.owner-page .owner-welcome { align-items: center; padding: 24px 28px; }
.owner-page .owner-welcome .eyebrow { color: #987938; }
.owner-page .owner-welcome h2,
.owner-page .owner-section-title h3 { color: #35404b; }
.owner-page .owner-welcome p,
.owner-page .owner-section-title p { color: #697580; }
.owner-page .owner-access-badge { color: #5b714f; background: linear-gradient(145deg, #eef2e9, #e4eadf); }
.owner-page .owner-period { flex: 0 0 auto; padding: 9px 13px; font-size: 13px; }
.owner-page .owner-metric { border-radius: 16px; transition: transform .2s ease, box-shadow .2s ease; }
.owner-page .owner-metric:hover { transform: translateY(-2px); box-shadow: 9px 9px 18px rgb(173 184 194 / 40%), -9px -9px 18px rgb(255 255 255 / 90%); }
.owner-page .owner-metric span,
.owner-page .owner-metric small { color: #697580; }
.owner-page .owner-metric strong { color: #46525d; }
.owner-page .owner-metric.metric-income strong { color: #238568; }
.owner-page .owner-metric.metric-expense strong { color: #c47749; }
.owner-page .owner-panel { padding: 22px; }
.owner-page .owner-chart-legend,
.owner-page .owner-month-label,
.owner-page .owner-month-values,
.owner-page .owner-category-heading,
.owner-page .owner-recent-row > div strong { color: #596571; }
.owner-page .owner-bar-line,
.owner-page .owner-category-track { background: #dfe6ea; box-shadow: inset 3px 3px 6px rgb(173 184 194 / 26%), inset -2px -2px 5px rgb(255 255 255 / 70%); }
.owner-page .owner-bar-line.income span { background: linear-gradient(90deg, #65b697, #238f78); }
.owner-page .owner-bar-line.expense span { background: linear-gradient(90deg, #f2c16d, #e99a51); }
.owner-page .owner-category-track span { background: linear-gradient(90deg, #e7b75d, #c79a4f); }
.owner-page .owner-category-heading span,
.owner-page .owner-recent-row > div span,
.owner-page .owner-footer-note { color: #697580; }
.owner-page .owner-recent-row { border-bottom-color: #dbe3e8; }
.owner-page .owner-error { border: 1px solid #f1d6d3; border-radius: 12px; box-shadow: 4px 4px 9px rgb(173 184 194 / 20%); }
@media (max-width: 720px) {
  .owner-page .owner-main { width: min(calc(100% - 20px), 1360px); padding: 18px 10px 32px; }
  .owner-page .owner-welcome { align-items: start; padding: 20px; }
  .owner-page .owner-panel { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .owner-page .owner-metric { transition: none; } .owner-page .owner-metric:hover { transform: none; } }

/* Admin dashboards use the same soft raised surfaces and muted gold accents as Investor. */
body.admin-app-page {
  color: #35404b;
  background: linear-gradient(145deg, #eef2f5 0%, #e7edf1 55%, #f0f3f5 100%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.admin-app-page .admin-sidebar {
  color: #46515c;
  background: linear-gradient(160deg, #edf2f5, #e3e9ed);
  border-right: 1px solid rgb(255 255 255 / 85%);
  box-shadow: 8px 8px 20px rgb(173 184 194 / 24%), inset -1px 0 0 rgb(255 255 255 / 70%);
}
.admin-app-page .admin-sidebar-brand { color: #35404b; }
.admin-app-page .admin-sidebar-brand .brand-logo { border: 1px solid #fff; border-radius: 14px; box-shadow: 5px 5px 11px rgb(173 184 194 / 38%), -5px -5px 11px rgb(255 255 255 / 84%); }
.admin-app-page .admin-sidebar-brand small,
.admin-app-page .admin-sidebar-label,
.admin-app-page .admin-sidebar-note { color: #79838c; }
.admin-app-page .admin-sidebar-label { letter-spacing: .12em; }
.admin-app-page .admin-sidebar-nav a,
.admin-app-page .admin-sidebar-logout {
  color: #56616d;
  border-color: transparent;
  border-radius: 12px;
  background: transparent;
}
.admin-app-page .admin-sidebar-nav a:hover,
.admin-app-page .admin-sidebar-logout:hover { color: #39444f; background: rgb(255 255 255 / 55%); }
.admin-app-page .admin-sidebar-nav a[aria-current="page"] {
  color: #68572e;
  border-color: rgb(255 255 255 / 88%);
  background: linear-gradient(145deg, #f4f0e6, #ebe4d3);
  box-shadow: 5px 5px 11px rgb(173 184 194 / 32%), -5px -5px 11px rgb(255 255 255 / 82%);
}
.admin-app-page .admin-nav-icon-outage {
  width: 19px;
  height: 19px;
  margin: 2px;
  border: 1px solid rgb(183 133 45 / 32%);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff8dc, #eedba4);
  color: #8a691f;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 88%);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.admin-app-page .admin-sidebar-link-outage:hover .admin-nav-icon-outage,
.admin-app-page .admin-sidebar-link-outage[aria-current="page"] .admin-nav-icon-outage {
  border-color: rgb(154 110 34 / 45%);
  background: linear-gradient(145deg, #fff1bd, #e7cb7a);
  color: #76520e;
}
.admin-app-page .admin-sidebar-bottom { border-top-color: #d7dfe4; }
.admin-app-page .admin-sidebar-logout { color: #93675e; }
.admin-app-page .admin-main-column { background: transparent; }
.admin-app-page .admin-topbar {
  color: #35404b;
  background: rgb(237 242 245 / 92%);
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 78%);
  box-shadow: 0 6px 18px rgb(173 184 194 / 19%);
  backdrop-filter: blur(14px);
}
.admin-app-page .admin-topbar-caption { color: #78838d; }
.admin-app-page .admin-menu-toggle {
  color: #525d68;
  border-color: #fff;
  background: linear-gradient(145deg, #eef3f6, #e3e9ed);
  box-shadow: 4px 4px 9px rgb(173 184 194 / 35%), -4px -4px 9px rgb(255 255 255 / 85%);
}
.admin-app-page main { color: #35404b; }
.admin-app-page main > section,
.admin-app-page.finance-page main > section {
  color: #39444e;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 20px;
  background: linear-gradient(145deg, #edf2f5, #e7edf1);
  box-shadow: 8px 8px 18px rgb(173 184 194 / 34%), -8px -8px 18px rgb(255 255 255 / 82%);
}
.admin-app-page .summary-card,
.admin-app-page .finance-card,
.admin-app-page .accounting-card,
.admin-app-page .statistics-panel,
.admin-app-page .employee-manager,
.admin-app-page .customer-form,
.admin-app-page .employee-form,
.admin-app-page .investor-admin-panel,
.admin-app-page .investor-admin-create,
.admin-app-page .investor-admin-section {
  color: #39444e;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 16px;
  background: linear-gradient(145deg, #edf2f5, #e6ecf0);
  box-shadow: 6px 6px 13px rgb(173 184 194 / 33%), -6px -6px 13px rgb(255 255 255 / 80%);
}
.admin-app-page .summary-card span,
.admin-app-page .finance-card span,
.admin-app-page .accounting-card span,
.admin-app-page .employee-add-grid label,
.admin-app-page label { color: #586571; }
.admin-app-page .summary-card strong,
.admin-app-page .finance-card strong,
.admin-app-page .accounting-card strong { color: #46525d; }
.admin-app-page .finance-card.income strong,
.admin-app-page .accounting-card.income strong { color: #27876a; }
.admin-app-page .finance-card.expense strong,
.admin-app-page .accounting-card.expense strong { color: #be7950; }
.admin-app-page .section-heading h2,
.admin-app-page main h2,
.admin-app-page main h3 { color: #35404b; }
.admin-app-page .section-heading p,
.admin-app-page .finance-note,
.admin-app-page .customer-import-note,
.admin-app-page .employee-empty { color: #6f7a84; }
.admin-app-page .customer-row,
.admin-app-page .employee-row,
.admin-app-page .transaction-row,
.admin-app-page .customer-card {
  color: #46515c;
  border: 1px solid rgb(255 255 255 / 86%);
  border-radius: 14px;
  background: linear-gradient(145deg, #edf2f5, #e5ebef);
  box-shadow: 5px 5px 12px rgb(173 184 194 / 30%), -5px -5px 12px rgb(255 255 255 / 78%);
}
.admin-app-page input:not([type="checkbox"]):not([type="radio"]),
.admin-app-page select,
.admin-app-page textarea {
  color: #3c4650;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 11px;
  background: #eaf0f3;
  box-shadow: inset 4px 4px 8px rgb(173 184 194 / 28%), inset -4px -4px 8px rgb(255 255 255 / 86%);
}
.admin-app-page input:focus,
.admin-app-page select:focus,
.admin-app-page textarea:focus { outline: 2px solid rgb(196 164 92 / 24%); border-color: #c4a45c; }
.admin-app-page .button:not(.button-secondary):not(.delete-button) {
  color: #48515b;
  border: 1px solid #fff;
  border-radius: 11px;
  background: linear-gradient(145deg, #eef3f6, #e3e9ed);
  box-shadow: 5px 5px 11px rgb(173 184 194 / 36%), -5px -5px 11px rgb(255 255 255 / 83%);
}
.admin-app-page .button:not(.button-secondary):not(.delete-button):hover { color: #303b46; background: linear-gradient(145deg, #f2f6f8, #e7edf1); transform: translateY(-1px); }

/* Employee management page */
.karyawan-page .employee-page-heading { align-items: flex-start; margin-bottom: 22px; }
.karyawan-page .employee-page-heading > div { min-width: 0; }
.karyawan-page .employee-page-heading p { margin: 7px 0 0; color: #6f7a84; font-size: 13px; line-height: 1.55; }
.karyawan-page .employee-page-heading > .button { flex: 0 0 auto; }
.karyawan-page .employee-manager { gap: 20px; margin: 0; padding: clamp(18px, 3vw, 28px); }
.karyawan-page .employee-manager .panel-heading { padding-bottom: 15px; border-bottom: 1px solid rgb(150 164 176 / 22%); }
.karyawan-page .employee-manager .panel-heading h3 { margin: 0; font-size: 18px; }
.karyawan-page .employee-manager .panel-heading p { margin: 5px 0 0; color: #6f7a84; font-size: 13px; line-height: 1.5; }
.karyawan-page .employee-form { gap: 14px; padding: 17px; border: 1px solid rgb(255 255 255 / 82%); border-radius: 14px; background: rgb(255 255 255 / 22%); }
.karyawan-page .employee-form h4 { color: #39444e; font-size: 15px; }
.karyawan-page .employee-add-grid { gap: 14px; }
.karyawan-page .employee-add-grid label { min-width: 0; font-size: 12px; }
.karyawan-page .employee-add-grid input { box-sizing: border-box; min-width: 0; min-height: 44px; }
.karyawan-page .employee-add-grid select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 10px 11px; border: 1px solid #d9e3dc; border-radius: 7px; color: inherit; font: inherit; background: #fff; }
.karyawan-page .form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 2px; }
.karyawan-page .employee-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.karyawan-page .employee-row { min-width: 0; min-height: 76px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 13px; }
.karyawan-page .employee-details { min-width: 0; }
.karyawan-page .employee-details strong { overflow-wrap: anywhere; }
.karyawan-page .employee-details span { line-height: 1.45; overflow-wrap: anywhere; }
.karyawan-page .employee-row .button, .karyawan-page .employee-row .delete-button { min-height: 36px; white-space: nowrap; }
.karyawan-page .employee-empty { margin: 0; padding: 18px; border: 1px dashed #cbd5dc; border-radius: 12px; text-align: center; }
@media (max-width: 980px) { .karyawan-page .employee-list { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .karyawan-page .employee-page-heading { gap: 14px; } .karyawan-page .employee-page-heading > .button { width: 100%; text-align: center; } .karyawan-page .employee-manager { padding: 16px; } .karyawan-page .employee-form { padding: 14px; } .karyawan-page .employee-add-grid { grid-template-columns: 1fr; } .karyawan-page .form-actions > .button { flex: 1 1 100%; } .karyawan-page .employee-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px; } .karyawan-page .employee-row .employee-details { grid-column: 1 / -1; } .karyawan-page .employee-row .button, .karyawan-page .employee-row .delete-button { width: 100%; } }
.admin-app-page .button-secondary {
  color: #53606b;
  border: 1px solid #fff;
  border-radius: 11px;
  background: linear-gradient(145deg, #eef3f6, #e4eaee);
  box-shadow: 4px 4px 9px rgb(173 184 194 / 30%), -4px -4px 9px rgb(255 255 255 / 80%);
}
.admin-app-page table { color: #46515c; border-color: #dbe3e8; }
.admin-app-page th { color: #48535d; background: linear-gradient(145deg, #e8eef2, #dfe7ec); }
.admin-app-page td { border-color: #dbe3e8; }
.admin-app-page tr:nth-child(even) { background-color: rgb(255 255 255 / 34%); }
.admin-app-page .admin-sidebar-backdrop { background: rgb(48 58 70 / 35%); }
@media (max-width: 700px) {
  .admin-app-page .admin-sidebar { box-shadow: 12px 0 32px rgb(76 83 99 / 24%); }
  .admin-app-page.admin-nav-open .admin-sidebar-backdrop { background: rgb(64 72 84 / 32%); }
  .admin-app-page .admin-topbar { background: rgb(237 242 245 / 96%); }
}
.admin-login-page {
  grid-template-columns: minmax(260px, 390px) minmax(350px, 410px);
  gap: clamp(22px, 5vw, 74px);
  justify-content: center;
  align-items: center;
  padding: clamp(20px, 4vh, 42px);
}
.admin-login-page .admin-login-illustration {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  width: min(100%, 390px);
  place-items: center;
  filter: drop-shadow(0 18px 28px rgb(5 20 48 / 34%));
  animation: admin-login-illustration-float 6s ease-in-out infinite;
}
.admin-login-illustration img { display: block; width: 100%; height: auto; object-fit: contain; }
.admin-login-page > .login-card { grid-column: 2; grid-row: 1; }
@keyframes admin-login-illustration-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
  .admin-login-page { grid-template-columns: minmax(0, 410px); gap: 8px; align-content: center; }
  .admin-login-page .admin-login-illustration { grid-column: 1; grid-row: 1; width: min(190px, 52vw); margin-bottom: -24px; z-index: 1; }
  .admin-login-page > .login-card { grid-column: 1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .admin-login-page .admin-login-illustration { animation: none; } }

/* The 3D character's held panel is the real admin login surface. */
.admin-login-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-columns: minmax(0, 760px);
  align-content: center;
  justify-content: center;
  justify-items: center;
  padding: 18px;
  color: #16304d;
  background: radial-gradient(ellipse at 50% 45%, #f7fbff 0%, #e8f0f7 62%, #dbe7f1 100%);
}
.admin-login-page::before,.admin-login-page::after { display: none; }
.admin-login-page .admin-login-stage {
  position: relative;
  width: min(620px, 100%, calc(100svh - 36px));
  aspect-ratio: 1;
  isolation: isolate;
  animation: admin-login-illustration-float 6s ease-in-out infinite;
}
.admin-login-page .admin-login-character {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 1px 7px rgb(25 47 68 / 25%)) drop-shadow(0 16px 22px rgb(24 54 88 / 16%));
}
.admin-login-page > .admin-login-stage > .login-card {
  position: absolute;
  top: 26.8%;
  left: 23.5%;
  display: flex;
  width: 52.4%;
  height: 48.4%;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 18px clamp(16px, 3.2vw, 28px);
  overflow: hidden;
  color: #183554;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.admin-login-page > .admin-login-stage > .login-card .brand-logo,
.admin-login-page > .admin-login-stage > .login-card .login-description { display: none; }
.admin-login-page > .admin-login-stage > .login-card .eyebrow { margin: 0; color: #21518a; font-size: 10px; letter-spacing: .12em; text-align: center; }
.admin-login-page > .admin-login-stage > .login-card h1 { margin: 0 0 3px; color: #132b47; font-size: clamp(19px, 2.7vw, 26px); line-height: 1.05; text-align: center; text-shadow: none; }
.admin-login-page > .admin-login-stage > .login-card form { display: grid; gap: clamp(5px, 1vw, 9px); margin: 0; }
.admin-login-page > .admin-login-stage > .login-card label { display: grid; gap: 3px; color: #254464; font-size: 11px; font-weight: 700; }
.admin-login-page > .admin-login-stage > .login-card input { width: 100%; min-width: 0; min-height: 36px; padding: 7px 11px; color: #263b50; border: 1px solid #d4e0ef; border-radius: 11px; background: linear-gradient(180deg, #fff, #f2f7fc); box-shadow: 0 3px 7px rgb(27 63 101 / 13%), inset 0 1px 0 #fff; font-size: 13px; }
.admin-login-page > .admin-login-stage > .login-card input:focus { outline: 2px solid rgb(52 121 225 / 28%); border-color: #4384e7; }
.admin-login-page > .admin-login-stage > .login-card .login-submit { min-height: 36px; margin: 1px 0 0; padding: 7px 14px; color: #fff; border: 1px solid #3975e8; border-radius: 11px; background: linear-gradient(145deg, #4e8bff, #3470e8); box-shadow: 0 5px 10px rgb(28 77 162 / 24%), inset 0 1px 0 rgb(255 255 255 / 32%); font-size: 13px; font-weight: 800; }
.admin-login-page > .admin-login-stage > .login-card .owner-login-link { margin: 3px 0 0; color: #164878; font-size: 10px; line-height: 1.25; text-align: center; text-decoration-color: rgb(22 72 120 / 35%); }
.admin-login-page > .admin-login-stage > .login-card .owner-login-link:hover { color: #092b4d; }
.admin-login-page > .admin-login-stage > .login-card .login-error { color: #a12626; font-size: 11px; }
@media (max-width: 600px) {
  .admin-login-page { padding: 0; overflow: hidden; }
  .admin-login-page .admin-login-stage { width: min(140vw, 620px); max-width: none; }
  .admin-login-page > .admin-login-stage > .login-card { gap: 2px; padding: 9px 13px; border-radius: 14px; }
  .admin-login-page > .admin-login-stage > .login-card .eyebrow { font-size: 8px; }
  .admin-login-page > .admin-login-stage > .login-card h1 { margin-bottom: 1px; font-size: 18px; }
  .admin-login-page > .admin-login-stage > .login-card form { gap: 4px; }
  .admin-login-page > .admin-login-stage > .login-card label { gap: 2px; font-size: 9px; }
  .admin-login-page > .admin-login-stage > .login-card input { min-height: 29px; padding: 4px 8px; border-radius: 8px; font-size: 12px; }
  .admin-login-page > .admin-login-stage > .login-card .login-submit { min-height: 30px; padding: 5px 10px; border-radius: 8px; font-size: 11px; }
  .admin-login-page > .admin-login-stage > .login-card .owner-login-link { margin-top: 2px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { .admin-login-page .admin-login-stage { animation: none; } }

/* Precise alignment to the two fields and action button on the held 3D panel. */
.admin-login-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  gap: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: 12px;
  overflow-x: hidden;
  background: radial-gradient(ellipse at 50% 48%, #f7fbff, #e6eef6 72%, #dce7f0);
}
.admin-login-page .admin-login-stage {
  z-index: 1;
  width: min(760px, 100vw, calc(100svh - 92px));
  max-width: none;
  animation: none;
}
.admin-login-page .admin-login-character { filter: contrast(1.16) saturate(1.13) drop-shadow(0 18px 22px rgb(24 54 88 / 14%)); }
.admin-login-page > .admin-login-stage > .login-card {
  display: block;
  top: 26.8%;
  left: 23.5%;
  width: 52.4%;
  height: 48.4%;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.admin-login-page > .admin-login-stage > .login-card h1 {
  position: absolute;
  top: -4%;
  left: 7%;
  width: 86%;
  margin: 0;
  color: #133454;
  font-size: clamp(19px, 2.7vw, 25px);
  line-height: 1.1;
}
.admin-login-page > .admin-login-stage > .login-card form { position: absolute; inset: 0; display: block; margin: 0; }
.admin-login-page > .admin-login-stage > .login-card label { position: absolute; left: 7%; display: block; width: 86%; height: 19%; color: transparent; font-size: 0; }
.admin-login-page > .admin-login-stage > .login-card label:nth-of-type(1) { top: 7.5%; }
.admin-login-page > .admin-login-stage > .login-card label:nth-of-type(2) { top: 33.5%; }
.admin-login-page > .admin-login-stage > .login-card input { display: block; width: 100%; height: 100%; min-height: 0; padding: 0 15px; color: #183554; border: 1px solid #d6e3f1; border-radius: 15px; background: linear-gradient(180deg, #fff, #f2f7fd); box-shadow: 0 4px 9px rgb(22 60 105 / 16%), inset 0 1px 0 #fff; font-size: clamp(12px, 1.8vw, 15px); }
.admin-login-page > .admin-login-stage > .login-card input::placeholder { color: #8293a5; opacity: 1; }
.admin-login-page > .admin-login-stage > .login-card input:focus { outline: 2px solid rgb(42 112 220 / 35%); border-color: #4384e7; }
.admin-login-page > .admin-login-stage > .login-card .login-submit { position: absolute; top: 60.5%; left: 54%; width: 40%; height: 19%; min-height: 0; margin: 0; padding: 0 8px; color: #fff; border: 1px solid #3f78e9; border-radius: 14px; background: linear-gradient(145deg, #4f8bff, #3470e8); box-shadow: 0 5px 10px rgb(28 77 162 / 25%), inset 0 1px 0 rgb(255 255 255 / 30%); font-size: clamp(11px, 1.5vw, 14px); }
.admin-login-page > .admin-login-stage > .login-card .login-submit:hover { transform: translateY(-1px); }
.admin-login-page > .admin-login-stage > .login-card .login-error { position: absolute; top: 61%; left: 7%; width: 86%; margin: 0; color: #9a2020; font-size: 10px; }
.admin-login-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.admin-login-page .admin-login-alt-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: -3px 0 0; }
.admin-login-page .admin-login-alt-links .owner-login-link { margin: 0; color: #234f79; font-size: 12px; text-align: center; }
.admin-login-balls { position: fixed; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.login-bounce-ball { position: absolute; display: block; width: 22px; height: 22px; border: 1px solid rgb(255 255 255 / 85%); border-radius: 50%; box-shadow: inset -3px -4px 6px rgb(0 0 0 / 16%), 0 4px 9px rgb(24 50 78 / 18%); animation: admin-login-ball-bounce 2.35s cubic-bezier(.33, .01, .55, 1) infinite; }
.login-bounce-ball::after { content: ""; position: absolute; top: 4px; left: 5px; width: 6px; height: 4px; border-radius: 50%; background: rgb(255 255 255 / 78%); filter: blur(.4px); }
.login-bounce-ball.ball-blue { top: 21%; left: 13%; background: radial-gradient(circle at 30% 25%, #b7d7ff, #4a88f4 55%, #2862c8); }
.login-bounce-ball.ball-gold { top: 29%; right: 13%; width: 17px; height: 17px; background: radial-gradient(circle at 30% 25%, #fff3c9, #e9be59 55%, #b98625); animation-delay: -.8s; }
.login-bounce-ball.ball-orange { top: 67%; left: 8%; width: 25px; height: 25px; background: radial-gradient(circle at 30% 25%, #ffd3a2, #f28d49 55%, #c85d25); animation-delay: -1.5s; }
.login-bounce-ball.ball-pink { top: 74%; right: 9%; width: 18px; height: 18px; background: radial-gradient(circle at 30% 25%, #ffd1e3, #dc78aa 55%, #a94278); animation-delay: -.4s; }
.login-bounce-ball.ball-cyan { top: 48%; left: 5%; width: 14px; height: 14px; background: radial-gradient(circle at 30% 25%, #d4fbff, #5bc8e6 55%, #2889b1); animation-delay: -1.1s; }
.login-bounce-ball.ball-violet { top: 53%; right: 5%; width: 24px; height: 24px; background: radial-gradient(circle at 30% 25%, #e7d8ff, #9a78df 55%, #634bb1); animation-delay: -1.8s; }
@keyframes admin-login-ball-bounce { 0%,100% { transform: translateY(0) scale(1, .94); } 38% { transform: translateY(-48px) scale(.94, 1.08); } 50% { transform: translateY(-50px) scale(1, 1); } 86% { transform: translateY(0) scale(1.12, .78); } }
@media (max-width: 600px) {
  .admin-login-page { padding: 8px; }
  .admin-login-page .admin-login-stage { width: min(140vw, calc(100svh - 70px)); }
  .admin-login-page > .admin-login-stage > .login-card h1 { font-size: clamp(16px, 4.7vw, 22px); }
  .admin-login-page > .admin-login-stage > .login-card input { padding: 0 10px; border-radius: 10px; font-size: 11px; }
  .admin-login-page > .admin-login-stage > .login-card .login-submit { border-radius: 10px; font-size: 10px; }
  .admin-login-page .admin-login-alt-links { gap: 4px 12px; margin-top: -3px; }
  .admin-login-page .admin-login-alt-links .owner-login-link { font-size: 9px; }
  .login-bounce-ball { opacity: .82; }
}
@media (prefers-reduced-motion: reduce) { .login-bounce-ball { animation: none; } }

/* Android finance widget access management */
.widget-settings-main { width: min(1040px, 100%); margin: 0 auto; padding: clamp(18px, 3vw, 36px); }
.widget-settings-hero, .widget-settings-card { position: relative; overflow: hidden; border: 1px solid rgb(255 255 255 / 76%); border-radius: 22px; background: linear-gradient(145deg, rgb(255 255 255 / 93%), rgb(235 243 247 / 91%)); box-shadow: 0 16px 38px rgb(34 58 82 / 9%), inset 0 1px 0 #fff; }
.widget-settings-hero { margin-bottom: 18px; padding: clamp(22px, 4vw, 36px); }
.widget-settings-hero::after { position: absolute; top: -100px; right: -65px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgb(242 185 82 / 17%), transparent 70%); content: ""; pointer-events: none; }
.widget-settings-hero .eyebrow { color: #8a692d; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.widget-settings-hero h1 { margin: 10px 0 8px; color: #26374a; font-size: clamp(25px, 4vw, 36px); }
.widget-settings-hero p, .widget-settings-card p { max-width: 760px; color: #627184; line-height: 1.65; }
.widget-settings-card { margin-bottom: 16px; padding: clamp(18px, 3vw, 26px); }
.widget-settings-heading h2, .widget-setup-card h2 { margin: 0 0 5px; color: #26374a; }
.widget-settings-heading p { margin: 0 0 20px; }
.widget-token-form label { display: block; margin-bottom: 7px; color: #34475b; font-size: 13px; font-weight: 700; }
.widget-token-create-row, .widget-token-copy-row { display: flex; flex-wrap: wrap; gap: 10px; }
.widget-token-create-row input { flex: 1 1 230px; min-width: 0; min-height: 44px; padding: 10px 13px; border: 1px solid #ced9e3; border-radius: 12px; background: #fff; color: #273b50; }
.widget-token-create-row button { flex: 0 0 auto; }
.widget-token-created { margin-top: 18px; padding: 16px; border: 1px solid #ead59e; border-radius: 15px; background: linear-gradient(135deg, #fff9e8, #fff); }
.widget-token-created[hidden] { display: none; }
.widget-token-created strong { color: #71551e; }
.widget-token-created p { margin: 6px 0 12px; font-size: 13px; }
.widget-token-copy-row code { flex: 1 1 260px; overflow-wrap: anywhere; padding: 12px; border: 1px solid #e3d5b1; border-radius: 10px; background: #fff; color: #343b42; user-select: all; }
.widget-settings-status { min-height: 22px; margin: 12px 0 6px; color: #168060; font-size: 13px; }
.widget-settings-status.is-error { color: #ad3b3b; }
.widget-token-list { display: grid; gap: 10px; margin-top: 8px; }
.widget-token-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 15px; border: 1px solid #dce5eb; border-radius: 14px; background: rgb(255 255 255 / 78%); }
.widget-token-row strong, .widget-token-row small { display: block; }
.widget-token-row strong { color: #2f4051; }
.widget-token-row small { margin-top: 4px; color: #718092; }
.widget-revoke-button { color: #a84343; }
.widget-token-empty { margin: 4px 0; color: #708091; }
.widget-setup-card ol { display: grid; gap: 8px; padding-left: 22px; color: #475b70; line-height: 1.6; }
.widget-setup-card > p { margin-bottom: 0; font-size: 13px; }
@media (max-width: 600px) { .widget-settings-main { padding: 14px; } .widget-token-row { align-items: flex-start; flex-direction: column; } }

.payroll-slip-brand { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.payroll-slip-brand img { display: block; flex: 0 0 auto; width: min(190px, 42vw); max-height: 48px; height: auto; object-fit: contain; }
.payroll-slip-brand div { display: grid; gap: 4px; }
.payroll-slip-brand strong { font-size: 13px; }
.payroll-slip-brand span { font-size: 11px; }
@media (max-width: 600px) {
  .payroll-slip-brand { gap: 10px; padding: 14px 16px; }
  .payroll-slip-brand img { width: clamp(72px, 27vw, 108px); max-height: 30px; }
  .payroll-slip-brand strong { font-size: 11px; }
  .payroll-slip-brand span { font-size: 10px; }
}
.admin-login-page::before {
  display: block;
  z-index: 0;
  background-color: transparent;
  background-image:
    repeating-conic-gradient(from 7.5deg at 50% 50%, transparent 0deg 14.7deg, rgb(73 116 154 / 18%) 14.9deg 15.1deg, transparent 15.3deg 30deg),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 52px, rgb(88 132 166 / 17%) 53px 54px, transparent 55px 102px),
    repeating-conic-gradient(from 0deg at 0% 0%, transparent 0deg 14.7deg, rgb(73 116 154 / 12%) 14.9deg 15.1deg, transparent 15.3deg 30deg),
    repeating-radial-gradient(circle at 0% 0%, transparent 0 45px, rgb(88 132 166 / 12%) 46px 47px, transparent 48px 88px);
  opacity: .86;
  mask-image: radial-gradient(ellipse at 50% 50%, transparent 13%, rgb(0 0 0 / 75%) 54%, #000 100%);
  pointer-events: none;
}
.admin-login-page::after { display: none; }
