:root {
  --ink: #17202e;
  --ink-soft: #536173;
  --navy: #111a25;
  --navy-light: #1c2836;
  --surface: #ffffff;
  --canvas: #f3f5f7;
  --canvas-warm: #f7f4f0;
  --orange: #f47a20;
  --orange-dark: #d95f0b;
  --orange-soft: #fff0e5;
  --green: #1c9c6c;
  --red: #d64045;
  --border: #e4e8ed;
  --shadow-sm: 0 8px 24px rgba(23, 32, 46, 0.055);
  --shadow-lg: 0 28px 70px rgba(23, 32, 46, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 0%, rgba(244, 122, 32, 0.055), transparent 24rem),
    var(--canvas);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--orange-dark);
}

.app-shell {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 1040;
  display: flex;
  height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(circle at 20% -10%, rgba(244, 122, 32, 0.19), transparent 15rem),
    linear-gradient(180deg, var(--navy-light), var(--navy));
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-main {
  padding: 26px 20px 18px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.brand-logo-panel {
  display: grid;
  width: 164px;
  height: 48px;
  overflow: hidden;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  place-items: center;
}

.brand-logo {
  display: block;
  width: 136%;
  max-width: none;
  height: auto;
}

.nav-label {
  margin: 0 12px 9px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-nav {
  gap: 3px;
}

.app-nav .nav-label {
  margin-top: 18px;
  margin-bottom: 5px;
}

.app-nav .nav-label:first-child {
  margin-top: 0;
}

.app-nav .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  color: rgba(255, 255, 255, 0.66);
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.app-nav .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  transform: translateX(2px);
}

.app-nav .nav-link.active {
  color: #fff;
  background: rgba(244, 122, 32, 0.15);
  box-shadow: inset 0 0 0 1px rgba(244, 122, 32, 0.12);
}

.app-nav .nav-link.active::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -20px;
  width: 3px;
  content: "";
  background: var(--orange);
  border-radius: 0 3px 3px 0;
}

.nav-icon {
  display: grid;
  width: 22px;
  flex: 0 0 22px;
  place-items: center;
}

.sidebar-foot {
  padding: 18px 20px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: #fff;
  background: linear-gradient(145deg, var(--orange), #bf4c06);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  place-items: center;
}

.admin-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.admin-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-copy span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
}

.logout-form {
  display: inline-flex;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 11px;
  place-items: center;
}

.logout-button {
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.52);
}

.logout-button:hover,
.sidebar-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-close,
.mobile-menu,
.sidebar-backdrop {
  display: none;
}

.content-area {
  min-width: 0;
  padding: 28px clamp(20px, 3vw, 46px) 50px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.topbar-title-wrap {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 5px;
  color: var(--orange-dark);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow > span:first-child {
  color: #aab2bd;
}

.topbar h2 {
  overflow: hidden;
  margin: 0;
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.page-description {
  max-width: 620px;
  margin: 7px 0 0;
  color: #7b8694;
  font-size: 0.75rem;
  line-height: 1.55;
}

.topbar-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.security-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(28, 156, 108, 0.1);
}

.meta-divider {
  width: 1px;
  height: 16px;
  margin: 0 2px;
  background: var(--border);
}

.page-content {
  animation: page-enter 260ms ease both;
}

.page-content.is-leaving {
  opacity: 0.5;
  transform: translateY(4px);
  pointer-events: none;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.stat-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 21px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-card::after {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 90px;
  height: 90px;
  content: "";
  background: var(--orange-soft);
  border-radius: 50%;
  opacity: 0.7;
}

.stat-card span {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.stat-card h3 {
  position: relative;
  z-index: 1;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: clamp(1.22rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.stat-card p {
  position: relative;
  z-index: 1;
  margin: 7px 0 0;
  color: #87919d;
  font-size: 0.68rem;
}

.dashboard-stat-group {
  margin-bottom: 24px;
}

.dashboard-stat-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.dashboard-stat-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.dashboard-stat-head > p {
  max-width: 440px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  text-align: right;
}

.stats-grid.dashboard-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid.dashboard-stats-grid.is-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stats-grid.dashboard-stats-grid.is-six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-stat-card {
  --stat-accent: #f17618;
  min-height: 146px;
  padding-top: 24px;
  border-top: 3px solid var(--stat-accent);
}

.dashboard-stat-card::after {
  background: color-mix(in srgb, var(--stat-accent) 18%, white);
}

.dashboard-stat-card.is-income { --stat-accent: #168a68; }
.dashboard-stat-card.is-expense { --stat-accent: #d6544d; }
.dashboard-stat-card.is-inventory { --stat-accent: #a56a2a; }
.dashboard-stat-card.is-investment { --stat-accent: #147d78; }
.dashboard-stat-card.is-profit { --stat-accent: #e88b16; }
.dashboard-stat-card.is-cash { --stat-accent: #246a8b; }
.dashboard-stat-card.is-receivable { --stat-accent: #d7892d; }
.dashboard-stat-card.is-payable { --stat-accent: #c84b4f; }
.dashboard-stat-card.is-depreciation { --stat-accent: #596b80; }
.dashboard-stat-card.is-reserve-total { --stat-accent: #d9782c; }
.dashboard-stat-card.is-reserve-balance { --stat-accent: #168a68; }
.dashboard-stat-card.is-withdrawable { --stat-accent: #b08b2c; }
.dashboard-stat-card.is-withdrawal-total { --stat-accent: #7b5d91; }

.dashboard-position-card {
  min-height: 164px;
}

.dashboard-card-action {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-top: 13px;
  color: var(--stat-accent);
  font-size: 0.66rem;
  font-weight: 800;
  text-decoration: none;
}

.dashboard-card-action:hover {
  color: var(--ink);
}

.dashboard-investment-result {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  font-size: 0.66rem;
  font-weight: 800;
}

.dashboard-allocation-balance {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.stat-card .dashboard-allocation-balance span {
  max-width: 150px;
  margin: 0;
  font-size: 0.66rem;
}

.dashboard-allocation-balance strong {
  font-size: 0.9rem;
  font-weight: 800;
  text-align: right;
}

.dashboard-withdrawal-wide {
  display: block;
  min-height: 112px;
  margin-top: 14px;
}

.dashboard-withdrawal-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-withdrawal-wide span {
  margin-bottom: 3px;
}

.dashboard-withdrawal-wide p {
  margin-top: 0;
}

.dashboard-withdrawal-head h3 {
  flex: 0 0 auto;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  text-align: right;
}

.dashboard-withdrawal-eligibility {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(247, 248, 250, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.dashboard-withdrawal-eligibility div {
  display: grid;
  gap: 2px;
}

.dashboard-withdrawal-eligibility small {
  color: var(--muted);
  font-size: 0.78rem;
}

.dashboard-withdrawal-eligibility strong {
  flex: 0 0 auto;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  text-align: right;
}

.dashboard-withdrawal-eligibility.is-estimate {
  margin-top: 10px;
  background: rgba(255, 247, 237, 0.72);
  border-color: rgba(234, 88, 12, 0.16);
}

.asset-disposal-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  color: #fff;
  background: linear-gradient(125deg, #152433 0%, #1b3640 62%, #315047 100%);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.asset-disposal-intro h3,
.asset-disposal-intro p {
  margin-bottom: 0;
}

.asset-disposal-intro p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.asset-disposal-rule {
  display: grid;
  min-width: 250px;
  gap: 3px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.asset-disposal-rule span,
.asset-disposal-rule small {
  color: rgba(255, 255, 255, 0.62);
}

.asset-disposal-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: #f6f8fa;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.asset-disposal-preview > div {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  background: #fff;
  border-radius: 10px;
}

.asset-disposal-preview span {
  color: var(--muted);
  font-size: 0.72rem;
}

.asset-disposal-preview .is-result {
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: #fff8f1;
  border: 1px solid rgba(234, 88, 12, 0.14);
}

.dashboard-partner-limits {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.dashboard-partner-limit {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(145px, 1fr);
  align-items: center;
  gap: 8px 14px;
  padding: 13px 14px;
  background: rgba(247, 248, 250, 0.86);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.dashboard-partner-identity {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dashboard-partner-identity i {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: #fff;
  background: var(--navy-light);
  border-radius: 10px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  place-items: center;
}

.dashboard-partner-identity strong {
  overflow: hidden;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-partner-limit > div:nth-child(2) {
  text-align: right;
}

.dashboard-partner-limit > div:nth-child(2) span,
.dashboard-partner-limit > div:nth-child(2) strong {
  display: block;
}

.dashboard-partner-limit > div:nth-child(2) span {
  margin: 0 0 3px;
  color: var(--ink-soft);
  font-size: 0.61rem;
}

.dashboard-partner-limit > div:nth-child(2) strong {
  font-size: 0.84rem;
}

.dashboard-partner-limit small {
  grid-column: 1 / -1;
  color: #87919d;
  font-size: 0.61rem;
}

.dashboard-withdrawal-note {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: #7d8895;
  font-size: 0.62rem;
}

.dashboard-quick-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.dashboard-quick-strip article {
  min-width: 0;
  padding: 16px 20px;
}

.dashboard-quick-strip article + article {
  border-left: 1px solid var(--border);
}

.dashboard-quick-strip span,
.dashboard-quick-strip strong {
  display: block;
}

.dashboard-quick-strip span {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 700;
}

.dashboard-quick-strip strong {
  overflow-wrap: anywhere;
  font-size: 0.93rem;
  font-weight: 800;
}

.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm) !important;
}

.card-body {
  padding: clamp(18px, 2vw, 25px);
}

.card h3,
.card .h5 {
  font-weight: 800;
  letter-spacing: -0.025em;
}

.card-body > h3:first-child,
.card-body > .section-head:first-child {
  position: relative;
}

.card-body > h3:first-child::before {
  display: inline-block;
  width: 4px;
  height: 17px;
  margin-right: 9px;
  content: "";
  background: linear-gradient(180deg, var(--orange), var(--orange-dark));
  border-radius: 99px;
  vertical-align: -2px;
}

.depreciation-unit-list {
  display: grid;
  gap: 18px;
}

.depreciation-unit {
  padding: clamp(16px, 2vw, 22px);
  background: #f8fafb;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.depreciation-unit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.depreciation-unit-head h4 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.depreciation-unit-head p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.depreciation-unit-value {
  text-align: right;
}

.depreciation-unit-values {
  display: flex;
  gap: 24px;
}

.depreciation-unit-value span,
.depreciation-rate span,
.depreciation-method-metrics span,
.depreciation-method-footer span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
}

.depreciation-unit-value strong {
  font-size: 1.03rem;
}

.depreciation-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.depreciation-method-card {
  --method-accent: var(--orange);
  position: relative;
  overflow: hidden;
  padding: 19px;
  background: linear-gradient(145deg, #fff 65%, rgba(244, 122, 32, 0.055));
  border: 1px solid var(--border);
  border-radius: 15px;
}

.depreciation-method-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--method-accent);
  opacity: 0.45;
}

.depreciation-method-card.is-active {
  border-color: color-mix(in srgb, var(--method-accent) 55%, white);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--method-accent) 13%, transparent);
}

.depreciation-months {
  --method-accent: #168a8a;
  background: linear-gradient(145deg, #fff 65%, rgba(22, 138, 138, 0.055));
}

.depreciation-method-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.depreciation-method-kicker {
  color: var(--method-accent);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.depreciation-method-head h5 {
  margin: 3px 0 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.method-active-label {
  padding: 5px 9px;
  color: #fff;
  background: var(--method-accent);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.depreciation-rate {
  padding: 16px 0 14px;
}

.depreciation-rate strong {
  display: block;
  margin-top: 3px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.04em;
}

.depreciation-method-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.depreciation-method-metrics div {
  min-width: 0;
  padding: 10px;
  background: rgba(242, 245, 247, 0.8);
  border-radius: 10px;
}

.depreciation-method-metrics strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 3px;
  font-size: 0.79rem;
}

.depreciation-progress-label {
  display: flex;
  justify-content: space-between;
  margin: 15px 0 6px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.depreciation-progress {
  height: 7px;
  overflow: hidden;
  background: #e9edf0;
  border-radius: 999px;
}

.depreciation-progress span {
  display: block;
  height: 100%;
  background: var(--method-accent);
  border-radius: inherit;
}

.depreciation-method-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.depreciation-method-footer div:last-child {
  text-align: right;
}

.depreciation-method-footer strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 2px;
  font-size: 0.86rem;
}

.depreciation-profit-card {
  --profit-accent: #35c28d;
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(420px, 1.8fr);
  gap: 18px 28px;
  margin-top: 14px;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--profit-accent) 24%, transparent), transparent 13rem),
    linear-gradient(135deg, #192735, #111a25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
}

.depreciation-profit-card.is-loss {
  --profit-accent: #ef6a6f;
}

.depreciation-profit-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--profit-accent);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.depreciation-profit-main > strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--profit-accent);
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  letter-spacing: -0.05em;
}

.depreciation-profit-main p {
  max-width: 310px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.73rem;
}

.depreciation-profit-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.depreciation-profit-breakdown div {
  min-width: 0;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 10px;
}

.depreciation-profit-breakdown span {
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.64rem;
  font-weight: 700;
}

.depreciation-profit-breakdown strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 4px;
  font-size: 0.74rem;
}

.depreciation-profit-note {
  grid-column: 1 / -1;
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
}

.card.bg-light {
  background: #f7f8fa !important;
  border-color: #edf0f3 !important;
  box-shadow: none !important;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head p {
  margin: 4px 0 0;
  color: #7a8695;
  font-size: 0.72rem;
}

.expense-guidance {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  color: #385348;
  background: linear-gradient(120deg, #ecf8f2, #f7fbf9);
  border: 1px solid #d5ece0;
  border-radius: 14px;
  font-size: 0.74rem;
}

.expense-guidance strong {
  color: #18704f;
  white-space: nowrap;
}

.expense-filter {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) minmax(145px, 1fr) minmax(135px, 0.9fr) auto;
  gap: 8px;
}

.table-subline {
  display: block;
  overflow: hidden;
  max-width: 250px;
  margin-top: 4px;
  color: #84909e;
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-source,
.stock-direction {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  color: #5f6976;
  background: #f0f2f4;
  border-radius: 7px;
  font-size: 0.64rem;
  font-weight: 800;
}

.expense-source.is-system {
  color: #9a4c14;
  background: var(--orange-soft);
}

.category-editor {
  display: grid;
  gap: 13px;
  padding: 17px;
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.category-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.category-item.is-inactive {
  opacity: 0.58;
  background: #f6f7f8;
}

.category-item strong,
.category-item span {
  display: block;
}

.category-item strong {
  overflow: hidden;
  max-width: 180px;
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-item span {
  margin-top: 3px;
  color: #87919d;
  font-size: 0.62rem;
}

.category-item > div:last-child {
  flex: 0 0 auto;
  white-space: nowrap;
}

.inventory-empty {
  display: grid;
  min-height: 270px;
  padding: 30px;
  color: #87919d;
  background: #f7f8fa;
  border: 1px dashed #d8dee5;
  border-radius: 14px;
  font-size: 0.78rem;
  text-align: center;
  place-items: center;
}

.stock-live-preview {
  min-height: 42px;
  padding: 11px 13px;
  color: #385348;
  background: #eef8f3;
  border: 1px solid #d9eee3;
  border-radius: 10px;
  font-size: 0.71rem;
  font-weight: 700;
}

.stock-direction.is-in {
  color: #14724f;
  background: #e8f7f0;
}

.stock-direction.is-out {
  color: #b02f38;
  background: #fcebed;
}

.inventory-table td:nth-child(3) strong {
  color: var(--ink);
}

.procurement-flow {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  color: #51606f;
  background: linear-gradient(115deg, #fff8f1, #fff, #f0f8f6);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  font-size: 0.7rem;
  font-weight: 750;
}

.procurement-flow span {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.procurement-flow strong {
  display: grid;
  width: 24px;
  height: 24px;
  color: #fff;
  background: var(--orange);
  border-radius: 50%;
  font-size: 0.64rem;
  place-items: center;
}

.procurement-flow i {
  width: 100%;
  height: 1px;
  margin: 0 12px;
  background: linear-gradient(90deg, #f5b17f, #cfd8dd);
}

.purchase-item-list {
  display: grid;
  gap: 10px;
}

.purchase-item-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) minmax(145px, 0.8fr) minmax(135px, 0.7fr) minmax(145px, 0.8fr);
  gap: 10px 12px;
  padding: 15px 48px 13px 15px;
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.purchase-item-result {
  grid-column: 1 / -1;
  color: #59806e;
  font-size: 0.67rem;
  font-weight: 750;
}

.purchase-remove {
  position: absolute;
  top: 15px;
  right: 10px;
  padding-right: 7px;
  padding-left: 7px;
  font-size: 0.58rem;
}

.purchase-payment-panel {
  padding: 17px;
  background: linear-gradient(135deg, #152432, #18302f);
  border-radius: 16px;
}

.purchase-payment-panel .form-label {
  color: rgba(255, 255, 255, 0.72);
}

.purchase-grand-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.64);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
}

.purchase-grand-total strong {
  color: #47d5a1;
  font-size: 1.3rem;
}

.supplier-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
}

.supplier-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
}

.supplier-list article:last-child {
  border-bottom: 0;
}

.supplier-list strong,
.supplier-list span {
  display: block;
}

.supplier-list strong {
  font-size: 0.72rem;
}

.supplier-list span {
  margin-top: 3px;
  color: #89939f;
  font-size: 0.61rem;
}

.purchase-item-summary {
  max-width: 330px;
  white-space: normal;
}

.purchase-pay-details {
  margin-top: 7px;
}

.purchase-pay-details summary {
  color: var(--orange-dark);
  font-size: 0.64rem;
  font-weight: 800;
  cursor: pointer;
}

.purchase-pay-form {
  display: grid;
  min-width: 200px;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  background: #f6f7f8;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.invoice-action-details { margin-top: 8px; text-align: left; }
.invoice-action-details summary { color: var(--orange-dark); font-size: .72rem; font-weight: 800; cursor: pointer; }
.invoice-action-form { display: grid; gap: 8px; min-width: 240px; margin-top: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #f6f7f8; }
.invoice-action-form label { display: grid; gap: 4px; font-size: .72rem; font-weight: 700; color: var(--ink-soft); }
.invoice-action-form button { justify-self: start; }

.trial-balance-table th:first-child,
.trial-balance-table td:first-child {
  min-width: 210px;
}

.trial-balance-table th:not(:first-child),
.trial-balance-table td:not(:first-child) {
  min-width: 135px;
}

.trial-balance-table tfoot th {
  padding-top: 15px;
  padding-bottom: 15px;
  background: #f7f8fa;
  border-top: 2px solid var(--border);
}

.trial-position {
  display: inline-flex;
  min-width: 64px;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 800;
}

.trial-position.is-debit {
  color: #126d4b;
  background: #e7f6ef;
}

.trial-position.is-kredit {
  color: #a54c16;
  background: #fff0e5;
}

.trial-position.is-nol {
  color: #707b87;
  background: #eef1f3;
}

.trial-balance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.trial-balance-summary > div {
  padding: 14px 16px;
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.trial-balance-summary span,
.trial-balance-summary strong {
  display: block;
}

.trial-balance-summary span {
  margin-bottom: 6px;
  color: #7c8895;
  font-size: 0.65rem;
  font-weight: 700;
}

.trial-balance-summary strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.trial-balance-summary .is-balanced {
  background: #edf8f3;
  border-color: #d3ebdf;
}

.trial-balance-summary .is-balanced strong {
  color: #177451;
}

.trial-balance-summary .is-unbalanced {
  background: #fff0f1;
  border-color: #f3d6d9;
}

.trial-balance-summary .is-unbalanced strong {
  color: #b12d38;
}

.service-stock-picker {
  padding: 15px;
  background: #f7faf8;
  border: 1px solid #dfeae4;
  border-radius: 13px;
}

.service-stock-picker p {
  color: #788594;
  font-size: 0.68rem;
}

.service-stock-rows {
  display: grid;
  gap: 8px;
}

.service-stock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.42fr) auto;
  align-items: center;
  gap: 8px;
}

.service-stock-quantity {
  position: relative;
}

.service-stock-quantity .form-control {
  padding-right: 55px;
}

.service-stock-quantity span {
  position: absolute;
  top: 50%;
  right: 12px;
  max-width: 45px;
  overflow: hidden;
  color: #84909c;
  font-size: 0.64rem;
  text-overflow: ellipsis;
  transform: translateY(-50%);
  white-space: nowrap;
}

.service-stock-empty {
  min-height: 110px;
}

.service-entry-card {
  overflow: hidden;
  border-top: 3px solid var(--orange) !important;
}

.service-type-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-type-picker label,
.service-technician-toggle {
  display: block;
  cursor: pointer;
}

.service-type-picker input,
.service-technician-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.service-type-picker label > span,
.service-technician-toggle > span {
  display: flex;
  min-height: 86px;
  padding: 16px 18px;
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: 14px;
  flex-direction: column;
  gap: 5px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.service-type-picker label:has(input:checked) > span,
.service-technician-toggle:has(input:checked) > span {
  background: #fff7ef;
  border-color: #f3a56d;
  box-shadow: 0 0 0 3px rgba(241, 118, 24, 0.09);
}

.service-type-picker strong,
.service-technician-toggle strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.service-type-picker small,
.service-technician-toggle small {
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.55;
}

.service-form-section {
  height: 100%;
  padding: 20px;
  background: linear-gradient(145deg, #fff, #f8fafb);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.service-form-section h4 {
  margin: 0 0 16px;
  font-size: 0.86rem;
  font-weight: 800;
}

.service-technician-toggle > span {
  min-height: 72px;
}

.service-technician-fields {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.service-cost-total {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  border-radius: 12px;
}

.service-cost-total span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.65rem;
  font-weight: 700;
}

.service-cost-total strong {
  font-size: 0.88rem;
}

.service-history-table td {
  min-width: 120px;
}

.service-history-table td:nth-child(2),
.service-history-table td:nth-child(4) {
  min-width: 210px;
}

.service-entry-card .maintenance-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.text-muted {
  color: #758190 !important;
}

.btn {
  padding: 0.68rem 1rem;
  border-radius: 11px;
  font-size: 0.81rem;
  font-weight: 750;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.btn-sm {
  padding: 0.43rem 0.7rem;
  border-radius: 9px;
  font-size: 0.72rem;
}

.btn-brand {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border: 0;
  box-shadow: 0 10px 24px rgba(217, 95, 11, 0.2);
}

.btn-brand:hover,
.btn-brand:focus {
  color: #fff;
  background: linear-gradient(135deg, #fb8731, #cb5407);
  box-shadow: 0 13px 28px rgba(217, 95, 11, 0.26);
  transform: translateY(-1px);
}

.btn:disabled {
  transform: none;
}

.form-label {
  margin-bottom: 7px;
  color: #2d3745;
  font-size: 0.75rem;
  font-weight: 800;
}

.form-control,
.form-select {
  min-height: 46px;
  padding: 0.73rem 0.9rem;
  color: var(--ink);
  background-color: #fff;
  border-color: #dce1e7;
  border-radius: 11px;
  font-size: 0.82rem;
}

textarea.form-control {
  min-height: auto;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(244, 122, 32, 0.72);
  box-shadow: 0 0 0 4px rgba(244, 122, 32, 0.1);
}

.form-text {
  color: #88929f;
  font-size: 0.7rem;
}

.table-responsive {
  position: relative;
  border-radius: 12px;
  scrollbar-color: #cbd2da transparent;
  scrollbar-width: thin;
}

.table-responsive::-webkit-scrollbar {
  height: 7px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #cbd2da;
  border-radius: 99px;
}

.table {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.78rem;
}

.table thead th {
  padding: 0.75rem 0.85rem;
  color: #788391;
  background: #f8f9fa;
  border-bottom: 1px solid var(--border);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table tbody td,
.table tbody th {
  padding: 0.9rem 0.85rem;
  border-color: #edf0f3;
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover td {
  background: rgba(247, 248, 249, 0.75);
}

.table tbody tr:only-child td.text-center {
  height: 126px;
  color: #8a94a1 !important;
  background: #fafbfc;
  font-size: 0.76rem;
}

.table td.text-end {
  white-space: nowrap;
}

.table td.text-end .btn + form,
.table td.text-end .btn + .btn {
  margin-left: 4px;
}

.data-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf0f3;
}

.card.is-pagination-loading {
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.card.is-pagination-loading::after {
  position: absolute;
  z-index: 12;
  inset: 0;
  display: grid;
  color: var(--orange-dark);
  content: "Memuat data...";
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(2px);
  place-items: center;
}

.pagination-summary {
  margin: 0;
  color: #7d8794;
  font-size: 0.7rem;
}

.pagination-summary strong {
  color: var(--ink);
  font-weight: 800;
}

.pagination {
  gap: 4px;
}

.pagination .page-link {
  display: grid;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  color: #5f6a78;
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 9px !important;
  font-size: 0.72rem;
  font-weight: 750;
  box-shadow: none;
  place-items: center;
}

.pagination .page-link:hover {
  color: var(--orange-dark);
  background: var(--orange-soft);
  border-color: #ffd5b8;
}

.pagination .page-item.active .page-link {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 7px 15px rgba(244, 122, 32, 0.2);
}

.pagination .page-item.disabled .page-link {
  color: #b0b7c0;
  background: #f6f7f8;
  border-color: #edf0f2;
}

.pagination .pagination-gap .page-link {
  min-width: 20px;
  padding: 0;
  background: transparent;
  border-color: transparent;
}

.badge {
  padding: 0.46em 0.68em;
  border-radius: 7px;
  font-size: 0.65rem;
  font-weight: 750;
}

.list-group-item {
  background: transparent;
  border-color: #edf0f3;
}

.chart-panel {
  position: relative;
  height: 340px;
  margin-top: 1.25rem;
}

.chart-panel canvas {
  width: 100% !important;
  height: 100% !important;
}

.map-panel {
  z-index: 1;
  min-height: 420px;
  overflow: hidden;
  background: #e9edf1;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.map-hint {
  padding: 0.85rem 1rem;
  color: #9a4c14;
  background: var(--orange-soft);
  border-radius: 11px;
  font-size: 0.76rem;
}

.map-tooltip {
  min-width: 190px;
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  line-height: 1.6;
}

.map-tooltip-projects {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(23, 32, 46, 0.12);
}

.maintenance-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: #e4e8ed;
  border: 1px solid #e4e8ed;
  border-radius: 12px;
}

.maintenance-preview > div {
  display: flex;
  min-width: 0;
  padding: 13px 12px;
  background: #f8f9fa;
  flex-direction: column;
  gap: 5px;
}

.maintenance-preview span {
  color: #7b8694;
  font-size: 0.65rem;
  font-weight: 700;
}

.maintenance-preview strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.78rem;
}

.maintenance-reserve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 14px;
}

.maintenance-reserve-card {
  padding: 18px;
  background: linear-gradient(145deg, #fff, #f7faf8);
  border: 1px solid var(--border);
  border-radius: 15px;
}

.maintenance-reserve-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.maintenance-reserve-head strong,
.maintenance-reserve-head span {
  display: block;
}

.maintenance-reserve-head > div > span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.maintenance-reserve-rate {
  padding: 16px 0;
}

.maintenance-reserve-rate > span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
}

.maintenance-reserve-rate > strong {
  display: block;
  margin-top: 3px;
  color: var(--green);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -0.04em;
}

.maintenance-reserve-rate small {
  color: var(--ink-soft);
  font-size: 0.7rem;
  letter-spacing: 0;
}

.maintenance-reserve-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.maintenance-reserve-metrics div {
  min-width: 0;
  padding: 10px;
  background: #f1f4f3;
  border-radius: 10px;
}

.maintenance-reserve-metrics span,
.maintenance-reserve-metrics strong {
  display: block;
  overflow-wrap: anywhere;
}

.maintenance-reserve-metrics span {
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.maintenance-reserve-metrics strong {
  margin-top: 4px;
  font-size: 0.72rem;
}

.maintenance-reserve-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: end;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.maintenance-reserve-form .form-label {
  font-size: 0.66rem;
}

.maintenance-reserve-form .btn {
  min-height: 44px;
}

.maintenance-cost-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.maintenance-cost-preview div {
  padding: 12px;
  background: #f8f9fa;
}

.maintenance-cost-preview span,
.maintenance-cost-preview strong {
  display: block;
}

.maintenance-cost-preview span {
  color: var(--ink-soft);
  font-size: 0.65rem;
}

.maintenance-cost-preview strong {
  margin-top: 4px;
  font-size: 0.78rem;
}

.maintenance-readonly-value {
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  background: #f4f6f8;
  border: 1px solid var(--border);
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 800;
}

.app-alert {
  padding: 0.82rem 1rem;
  border: 0;
  border-left: 3px solid currentColor;
  border-radius: 11px;
  font-size: 0.78rem;
}

.flash-region:empty {
  display: none;
}

.ajax-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2000;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}

.ajax-progress span {
  display: block;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--orange), #ffb36f);
  opacity: 0;
  transform: translateX(-110%);
}

body.is-loading .ajax-progress span {
  opacity: 1;
  animation: loading-bar 1s ease-in-out infinite;
}

@keyframes loading-bar {
  to { transform: translateX(370%); }
}

.app-toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2100;
  display: grid;
  width: min(360px, calc(100vw - 40px));
  gap: 10px;
}

.app-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  color: #fff;
  background: var(--navy);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(17, 26, 37, 0.24);
  font-size: 0.76rem;
  animation: toast-enter 220ms ease both;
}

.app-toast.is-error {
  background: #9e2831;
}

@keyframes toast-enter {
  from { opacity: 0; transform: translateY(8px); }
}

/* Authentication */
.auth-body {
  background: #f3f4f6;
}

.auth-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  padding: 36px 20px;
  place-items: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(214, 64, 69, 0.08), transparent 25rem),
    radial-gradient(circle at 86% 88%, rgba(244, 122, 32, 0.06), transparent 28rem),
    linear-gradient(135deg, #f7f4f4, #f3f5f7 48%, #eef1f4);
}

.auth-orbit {
  position: absolute;
  border: 1px solid rgba(23, 32, 46, 0.045);
  border-radius: 50%;
  pointer-events: none;
}

.auth-orbit-one {
  top: -20rem;
  left: -17rem;
  width: 46rem;
  height: 46rem;
}

.auth-orbit-two {
  right: -18rem;
  bottom: -22rem;
  width: 50rem;
  height: 50rem;
}

.auth-form-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
}

.auth-card {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  overflow: hidden;
  padding: 42px 44px 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  animation: auth-enter 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes auth-enter {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
}

.auth-accent {
  width: 52px;
  height: 4px;
  margin-bottom: 30px;
  background: linear-gradient(90deg, var(--orange), #d64045);
  border-radius: 99px;
}

.auth-brand-row,
.auth-brand {
  display: flex;
  align-items: center;
}

.auth-brand-row {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.auth-brand {
  min-width: 0;
  gap: 12px;
}

.auth-logo-wrap {
  display: grid;
  width: 176px;
  height: 54px;
  flex: 0 0 176px;
  overflow: hidden;
  place-items: center;
}

.auth-logo-wrap img {
  width: 136%;
  max-width: none;
  height: auto;
}

.auth-badge {
  padding: 6px 10px;
  color: #b9363c;
  background: #fff0f1;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.auth-heading {
  margin-bottom: 29px;
}

.auth-heading h1 {
  margin: 0 0 10px;
  color: #101820;
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.auth-heading p {
  max-width: 380px;
  margin: 0;
  color: #6f7986;
  font-size: 0.82rem;
  line-height: 1.75;
}

.auth-field {
  margin-bottom: 18px;
}

.input-shell {
  position: relative;
}

.input-shell .form-control {
  height: 54px;
  padding-right: 48px;
  padding-left: 48px;
  color: #17202e;
  background: #fbfcfd;
  border-color: #dde2e8;
  border-radius: 13px;
  font-size: 0.82rem;
}

.input-shell .form-control::placeholder {
  color: #a6aebb;
}

.input-shell .form-control:focus {
  background: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(244, 122, 32, 0.11);
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 2;
  display: grid;
  color: #929ba7;
  transform: translateY(-50%);
  place-items: center;
}

.input-shell:focus-within .input-icon {
  color: var(--orange-dark);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #8e97a2;
  background: transparent;
  border: 0;
  border-radius: 9px;
  transform: translateY(-50%);
  place-items: center;
}

.password-toggle:hover {
  color: var(--ink);
  background: #f0f2f4;
}

.auth-submit {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  border-radius: 13px;
}

.secure-access {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 23px 0 28px;
  color: #89939f;
  font-size: 0.67rem;
  font-weight: 650;
}

.auth-footer {
  padding-top: 24px;
  color: #a2a9b2;
  border-top: 1px solid #edf0f2;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 1199px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid.dashboard-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid.dashboard-stats-grid.is-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid.dashboard-stats-grid.is-six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 991px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: min(86vw, 292px);
    transform: translateX(-104%);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1030;
    display: block;
    visibility: hidden;
    background: rgba(12, 18, 25, 0.52);
    opacity: 0;
    transition: opacity 200ms ease, visibility 200ms ease;
    backdrop-filter: blur(3px);
  }

  body.sidebar-open .sidebar-backdrop {
    visibility: visible;
    opacity: 1;
  }

  .sidebar-close {
    display: inline-grid;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.56);
  }

  .mobile-menu {
    display: inline-grid;
    flex: 0 0 40px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

  .content-area {
    padding-top: 21px;
  }
}

@media (max-width: 767px) {
  .content-area {
    padding-right: 16px;
    padding-bottom: 34px;
    padding-left: 16px;
  }

  .topbar {
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .topbar-meta {
    display: none;
  }

  .topbar h2 {
    font-size: 1.48rem;
  }

  .page-description {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .stats-grid.dashboard-stats-grid,
  .stats-grid.dashboard-stats-grid.is-five,
  .stats-grid.dashboard-stats-grid.is-six,
  .dashboard-quick-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-withdrawal-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .dashboard-withdrawal-head h3 {
    text-align: left;
  }

  .dashboard-withdrawal-eligibility {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-withdrawal-eligibility strong {
    text-align: left;
  }

  .asset-disposal-intro {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }

  .asset-disposal-rule {
    min-width: 0;
  }

  .asset-disposal-preview {
    grid-template-columns: 1fr;
  }

  .asset-disposal-preview .is-result {
    grid-column: auto;
  }

  .dashboard-partner-limit {
    grid-template-columns: 1fr;
  }

  .dashboard-partner-limit > div:nth-child(2) {
    text-align: left;
  }

  .dashboard-partner-limit small {
    grid-column: auto;
  }

  .dashboard-stat-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .dashboard-stat-head > p {
    text-align: left;
  }

  .dashboard-quick-strip article + article {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .stat-card {
    padding: 18px 19px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .expense-guidance {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .expense-guidance strong {
    white-space: normal;
  }

  .expense-filter,
  .category-grid,
  .service-stock-row,
  .service-type-picker {
    grid-template-columns: 1fr;
  }

  .service-form-section {
    padding: 16px;
  }

  .service-stock-row .btn {
    width: 100%;
  }

  .expense-filter .btn {
    width: 100%;
  }

  .category-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-panel {
    height: 270px;
  }

  .map-panel {
    min-height: 340px;
  }

  .maintenance-preview {
    grid-template-columns: 1fr;
  }

  .maintenance-reserve-grid,
  .maintenance-reserve-metrics,
  .maintenance-reserve-form,
  .maintenance-cost-preview {
    grid-template-columns: 1fr;
  }

  .depreciation-unit-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .depreciation-unit-value {
    text-align: left;
  }

  .depreciation-unit-values {
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  .depreciation-method-grid {
    grid-template-columns: 1fr;
  }

  .depreciation-profit-card,
  .depreciation-profit-breakdown {
    grid-template-columns: 1fr;
  }

  .card-body {
    padding: 17px;
  }

  .table-responsive > .table {
    min-width: 650px;
  }

  .data-pagination {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .data-pagination nav {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 2px;
  }

  .pagination {
    width: max-content;
  }

  .row.g-3 > [class*="col-md"] .btn,
  form.row.g-3 > .col-12 > .btn {
    width: 100%;
  }

  .card-body > .d-flex.justify-content-between {
    align-items: stretch !important;
    flex-direction: column;
  }

  .card-body > .d-flex.justify-content-between form.d-flex {
    width: 100%;
  }

  .card-body > .d-flex.justify-content-between form.d-flex .form-select {
    min-width: 0;
    flex: 1;
  }

  .auth-shell {
    align-items: center;
    padding: 20px 14px;
  }

  .auth-card {
    padding: 31px 24px 23px;
    border-radius: 20px;
  }

  .auth-brand-row {
    margin-bottom: 29px;
  }

  .auth-accent {
    margin-bottom: 25px;
  }
}

@media (max-width: 430px) {
  .auth-badge {
    display: none;
  }

  .auth-logo-wrap {
    width: 158px;
    flex-basis: 158px;
  }

  .input-shell .form-control,
  .auth-submit {
    height: 51px;
    min-height: 51px;
  }
}

.finance-mini-card {
  display: flex;
  min-height: 96px;
  padding: 18px;
  border: 1px solid #e4e8ee;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f7f9fb);
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.finance-mini-card span {
  color: #78869a;
  font-size: 0.78rem;
  font-weight: 700;
}

.finance-mini-card strong {
  color: #172131;
  font-size: 1rem;
}

.partner-portfolio {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(560px, 1.6fr);
  gap: 32px;
  overflow: hidden;
  padding: 28px 30px;
  color: #fff;
  background:
    radial-gradient(circle at 10% 130%, rgba(244, 122, 32, 0.32), transparent 18rem),
    radial-gradient(circle at 96% -40%, rgba(48, 190, 150, 0.18), transparent 24rem),
    linear-gradient(125deg, #14212e, #0f2930);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(17, 26, 37, 0.13);
}

.partner-portfolio-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.partner-portfolio-copy > p:last-child {
  max-width: 34rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  line-height: 1.65;
}

.partner-portfolio .eyebrow {
  color: #45d5a8;
}

.partner-portfolio-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.partner-portfolio-metrics > div {
  min-width: 0;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.partner-portfolio-metrics span,
.partner-portfolio-metrics strong {
  display: block;
}

.partner-portfolio-metrics span {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.64rem;
  font-weight: 750;
}

.partner-portfolio-metrics strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(0.9rem, 1.25vw, 1.14rem);
  font-weight: 800;
}

.unit-workspace {
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.unit-workspace-count {
  padding: 7px 11px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 800;
}

.unit-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.unit-selector-card {
  position: relative;
  min-width: 0;
  padding: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(23, 32, 46, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.unit-selector-card:hover {
  color: var(--ink);
  border-color: rgba(244, 122, 32, 0.45);
  box-shadow: 0 10px 26px rgba(23, 32, 46, 0.08);
  transform: translateY(-2px);
}

.unit-selector-card.is-active {
  background: linear-gradient(145deg, #fff, #fff8f2);
  border-color: var(--orange);
  box-shadow: 0 10px 28px rgba(244, 122, 32, 0.12);
}

.unit-selector-card.is-active::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 3px;
  content: "";
  background: var(--orange);
  border-radius: 99px 99px 0 0;
}

.unit-selector-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.unit-selector-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--orange-dark);
  background: var(--orange-soft);
  border-radius: 10px;
}

.unit-selector-card > strong,
.unit-selector-card > small {
  display: block;
}

.unit-selector-card > strong {
  margin-bottom: 3px;
  font-size: 0.94rem;
  font-weight: 800;
}

.unit-selector-card > small {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.unit-owner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 13px;
}

.unit-owner-chips span {
  padding: 5px 7px;
  color: #516071;
  background: #f1f4f6;
  border-radius: 7px;
  font-size: 0.62rem;
  font-weight: 700;
}

.unit-owner-chips b {
  color: var(--ink);
}

.selected-unit-banner {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.selected-unit-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--orange-dark);
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.selected-unit-banner h3,
.selected-unit-banner p {
  margin: 0;
}

.selected-unit-banner h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.selected-unit-banner p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.selected-unit-owners {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.selected-unit-owners > span:not(.ownership-empty) {
  display: grid;
  grid-template-columns: 28px auto auto;
  gap: 8px;
  align-items: center;
  padding: 7px 10px 7px 7px;
  background: #f5f7f8;
  border: 1px solid #ebedf0;
  border-radius: 11px;
  font-size: 0.7rem;
}

.selected-unit-owners i,
.owner-identity > i,
.owner-table-name i,
.owner-master-avatar {
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 850;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-radius: 9px;
}

.selected-unit-owners i {
  width: 28px;
  height: 28px;
}

.selected-unit-owners strong {
  color: var(--green);
}

.ownership-empty {
  color: #9a6700;
  font-size: 0.72rem;
  font-weight: 750;
}

.ownership-editor-card,
.profit-close-card {
  overflow: hidden;
}

.ownership-total-panel {
  padding: 14px 15px;
  background: #f7f8f9;
  border: 1px solid var(--border);
  border-radius: 13px;
}

.ownership-total-panel > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 0.72rem;
  font-weight: 750;
}

.ownership-total-panel strong {
  font-size: 0.9rem;
}

.ownership-total-track {
  height: 7px;
  overflow: hidden;
  background: #e4e8eb;
  border-radius: 99px;
}

.ownership-total-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #ffad70);
  border-radius: inherit;
  transition: width 180ms ease, background 180ms ease;
}

.ownership-total-track i.is-invalid {
  background: var(--red);
}

.ownership-total-panel small {
  display: block;
  margin-top: 7px;
  color: #84909e;
  font-size: 0.62rem;
}

.ownership-share-list {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
}

.ownership-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
}

.ownership-share-row:last-child {
  border-bottom: 0;
}

.owner-identity,
.owner-table-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.owner-identity > i,
.owner-table-name i {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.owner-identity b,
.owner-identity small {
  display: block;
}

.owner-identity b {
  font-size: 0.76rem;
}

.owner-identity small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.58rem;
}

.share-input {
  display: grid;
  width: 112px;
  flex: 0 0 112px;
  grid-template-columns: 1fr 24px;
  align-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce1e7;
  border-radius: 10px;
}

.share-input input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 5px 0 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 0.78rem;
  font-weight: 800;
}

.share-input b {
  color: #89939f;
  font-size: 0.7rem;
}

.closing-month-filter {
  display: flex;
  gap: 7px;
}

.closing-month-filter .form-control {
  width: 155px;
}

.profit-waterfall {
  display: grid;
  grid-template-columns: minmax(200px, 0.82fr) minmax(300px, 1.4fr);
  gap: 12px;
}

.profit-waterfall-primary {
  display: flex;
  min-height: 166px;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 95% 0, rgba(244, 122, 32, 0.18), transparent 9rem),
    #162330;
  border-radius: 16px;
}

.profit-waterfall-primary span,
.profit-waterfall-primary small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.65rem;
  font-weight: 700;
}

.profit-waterfall-primary strong {
  margin: 9px 0 7px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.05em;
}

.profit-waterfall-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.profit-waterfall-grid > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 13px;
  background: #f6f8f9;
  border: 1px solid #edf0f2;
  border-radius: 12px;
}

.profit-waterfall-grid span,
.profit-waterfall-grid strong {
  display: block;
}

.profit-waterfall-grid span {
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 0.61rem;
  font-weight: 700;
}

.profit-waterfall-grid strong {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  font-weight: 800;
}

.closing-owner-preview {
  margin-top: 15px;
  padding: 13px 15px;
  background: #fffaf5;
  border: 1px solid #f4e4d7;
  border-radius: 13px;
}

.closing-owner-preview > span {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.closing-owner-preview > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 18px;
}

.closing-owner-preview p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 0.7rem;
}

.closing-owner-preview small {
  color: var(--ink-soft);
}

.closing-action-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 15px;
}

.owner-balance-table tfoot th {
  padding: 0.95rem 0.85rem;
  background: #f8f9fa;
  border-top: 2px solid var(--border);
}

.owner-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.owner-master-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
}

.owner-master-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.owner-master-list article:last-child {
  border-bottom: 0;
}

.owner-master-avatar {
  width: 34px;
  height: 34px;
}

.owner-master-name {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.ownership-timeline {
  position: relative;
}

.ownership-timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 1px;
  content: "";
  background: #dfe4e8;
}

.ownership-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 13px;
  padding: 0 0 18px;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 5px;
  background: var(--orange);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--orange);
}

.ownership-timeline article p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.ownership-timeline article small {
  color: #89939f;
  font-size: 0.62rem;
}

.role-owner #page-content form[method="post"]:not(.allow-owner-post) {
  display: none !important;
}

.account-details > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.account-details > div:last-child {
  border-bottom: 0;
}

.account-details dt,
.account-details dd {
  margin: 0;
}

.account-details dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.account-details dd {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

@media (max-width: 1199px) {
  .partner-portfolio {
    grid-template-columns: 1fr;
  }

  .partner-portfolio-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .procurement-flow {
    overflow-x: auto;
    align-items: flex-start;
  }

  .procurement-flow i {
    min-width: 28px;
  }

  .purchase-item-row {
    grid-template-columns: 1fr;
  }

  .purchase-item-result {
    grid-column: auto;
  }

  .trial-balance-summary {
    grid-template-columns: 1fr;
  }

  .partner-portfolio {
    gap: 20px;
    padding: 22px 19px;
  }

  .partner-portfolio-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unit-workspace {
    padding: 17px;
  }

  .unit-selector-grid,
  .profit-waterfall,
  .profit-waterfall-grid {
    grid-template-columns: 1fr;
  }

  .selected-unit-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .selected-unit-owners {
    width: 100%;
    justify-content: flex-start;
  }

  .closing-month-filter,
  .closing-action-bar,
  .owner-create-form {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .closing-month-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .closing-month-filter .form-control {
    width: 100%;
  }

  .profit-waterfall-primary {
    min-height: 145px;
  }

  .ownership-share-row {
    align-items: flex-start;
  }

  .owner-master-list article {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .owner-master-list article > form:last-child {
    grid-column: 2;
  }

  .owner-master-name {
    grid-template-columns: 1fr;
  }
}

.investment-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 30px;
  align-items: center;
  overflow: hidden;
  padding: 30px 32px;
  border: 1px solid #dce4e9;
  border-radius: 24px;
  color: #f7fbf9;
  background:
    radial-gradient(circle at 82% 0%, rgba(244, 164, 74, 0.2), transparent 36%),
    linear-gradient(125deg, #132230 0%, #173b38 100%);
}

.investment-hero::after {
  position: absolute;
  right: -55px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.investment-hero-copy,
.investment-source-rule {
  position: relative;
  z-index: 1;
}

.investment-hero .eyebrow {
  color: #f6a64f;
}

.investment-hero h3 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  font-weight: 800;
}

.investment-hero-copy > p:last-child {
  max-width: 760px;
  margin: 0;
  color: #b9c9cd;
}

.investment-source-rule {
  display: grid;
  gap: 5px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.investment-source-rule span,
.investment-source-rule small {
  color: #a9bcc0;
  font-size: 0.78rem;
}

.investment-source-rule strong {
  font-size: 1.05rem;
}

.investment-source-rule small {
  color: #ffb7a7;
}

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

.investment-stats article {
  display: grid;
  gap: 6px;
  min-height: 135px;
  padding: 21px;
  border: 1px solid #dfe6eb;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 35, 49, 0.05);
}

.investment-stats span,
.investment-stats small {
  color: #718095;
}

.investment-stats span {
  font-size: 0.8rem;
  font-weight: 700;
}

.investment-stats strong {
  align-self: end;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 800;
}

.investment-stats small {
  font-size: 0.72rem;
}

.investment-type-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 6px;
  border-radius: 15px;
  background: #edf1f4;
}

.investment-type-switch label {
  margin: 0;
  cursor: pointer;
}

.investment-type-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.investment-type-switch span {
  display: block;
  padding: 11px 10px;
  border-radius: 11px;
  color: #647286;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  transition: 160ms ease;
}

.investment-type-switch input:checked + span {
  color: #fff;
  background: #162635;
  box-shadow: 0 7px 16px rgba(22, 38, 53, 0.18);
}

.investment-posting-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-radius: 13px;
  color: #59697a;
  background: #f4f7f8;
  font-size: 0.76rem;
}

.investment-posting-note strong {
  flex: 0 0 auto;
  color: #b34533;
}

.investment-fund-breakdown {
  display: grid;
  gap: 10px;
}

.investment-fund-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px;
  border: 1px solid #e2e8ec;
  border-radius: 14px;
  background: #f8fafb;
}

.investment-fund-breakdown span {
  color: #68778a;
  font-size: 0.79rem;
  font-weight: 700;
}

.investment-fund-breakdown .is-locked {
  color: #a9392c;
  border-color: #f1d4ce;
  background: #fff6f3;
}

.investment-instrument-list {
  display: grid;
  gap: 9px;
}

.investment-instrument-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid #e5eaee;
}

.investment-instrument-list article > div {
  display: grid;
  min-width: 0;
}

.investment-instrument-list small {
  color: #7b899a;
  font-size: 0.72rem;
}

.hm-reconciliation-card {
  border-top: 3px solid #d98926 !important;
}

.hm-reconciliation-metrics,
.hm-reconciliation-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hm-reconciliation-metrics > div,
.hm-reconciliation-result > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #e2e8ec;
  border-radius: 14px;
  background: #f8fafb;
}

.hm-reconciliation-metrics span,
.hm-reconciliation-result span {
  color: #718095;
  font-size: 0.7rem;
  font-weight: 700;
}

.hm-reconciliation-metrics strong,
.hm-reconciliation-result strong {
  overflow-wrap: anywhere;
  font-size: 0.96rem;
}

.hm-reconciliation-metrics small {
  color: #8a96a5;
  font-size: 0.65rem;
}

.hm-reconciliation-metrics .is-warning {
  border-color: #edcc9d;
  background: #fff8ed;
}

.hm-reconciliation-metrics .is-danger {
  border-color: #efc4bd;
  background: #fff5f3;
}

.hm-reconciliation-metrics .is-safe {
  border-color: #bcded2;
  background: #f0faf6;
}

.hm-reconciliation-result {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hm-reconciliation-notes,
.hm-reconciliation-impact {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-left: 3px solid #d98926;
  border-radius: 0 11px 11px 0;
  color: #667486;
  background: #f7f9fa;
  font-size: 0.74rem;
}

.hm-reconciliation-impact {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
}

.hm-reconciliation-impact small {
  margin-left: auto;
  color: #9b493a;
}

@media (max-width: 1199.98px) {
  .investment-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .investment-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 23px 20px;
    border-radius: 20px;
  }

  .investment-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .investment-stats article {
    min-height: 125px;
    padding: 17px 15px;
  }

  .investment-posting-note {
    flex-direction: column;
    gap: 5px;
  }

  .hm-reconciliation-metrics,
  .hm-reconciliation-result {
    grid-template-columns: 1fr;
  }

  .hm-reconciliation-impact {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .hm-reconciliation-impact small {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .investment-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
