:root {
  --ink: #081c2c;
  --green: #0b7557;
  --mint: #69d4ad;
  --mint2: #e2f4ed;
  --bg: #f2f0eb;
  --card: #fffdf9;
  --muted: #69747c;
  --line: #deddd7;
  --gold: #b49359;
}

.rent-adjustment-list{display:grid;gap:12px;padding:18px}.rent-adjustment-list>article{display:flex;justify-content:space-between;gap:18px;padding:16px;border:1px solid var(--portal-border);border-radius:14px;background:#f8fbfb}.rent-adjustment-list article>div{display:grid;gap:5px}.rent-adjustment-list small,.rent-adjustment-list p{color:var(--portal-muted);margin:0}.rent-adjustment-list button{border:0;border-radius:10px;padding:9px 13px;background:#0c8d6c;color:#fff;font-weight:700;cursor:pointer}.rent-adjustment-list .reject-adjustment{background:#fff1ef;color:#c44439}.document-card{padding:22px}.document-card>span{font-size:32px;color:#0c8d6c}.document-card a{display:inline-flex;align-items:center;gap:6px;margin-top:12px;color:#0c8d6c;font-weight:800;text-decoration:none}

body {
  background:
    radial-gradient(circle at 80% 5%, rgba(105, 212, 173, .11), transparent 23rem),
    linear-gradient(180deg, #f7f5f0, var(--bg));
}

.login-view {
  position: relative;
  overflow: hidden;
  padding: 34px 5vw;
  background:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(118deg, #081e30 0 51%, #f1f1eb 51%);
  background-size: 38px 38px, 38px 38px, auto;
}

.login-view::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  left: 33%;
  bottom: -260px;
  border: 70px solid rgba(105, 212, 173, .055);
  border-radius: 50%;
  pointer-events: none;
}

.login-brand {
  position: relative;
  z-index: 1;
}

.portal-logo {
  width: 48px;
  height: 54px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 24px 24px 8px 8px;
  background: linear-gradient(145deg, var(--mint), #1d8e6b);
  color: #07271e;
  box-shadow: 0 9px 24px rgba(105, 212, 173, .18);
  font: 800 15px Manrope, sans-serif;
  letter-spacing: -.8px;
}

.portal-logo::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(7, 39, 30, .28);
  border-radius: 20px 20px 5px 5px;
}

.login-brand b,
.side-brand b {
  font: 800 24px Manrope, sans-serif;
  letter-spacing: -.7px;
}

.login-brand span,
.side-brand span {
  color: #8fd8bd;
  font: 700 8px Manrope, sans-serif;
  letter-spacing: 1.45px;
}

.login-brand small,
.side-brand small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .48);
  font-size: 10px;
}

.login-layout {
  grid-template-columns: minmax(0, 1fr) 445px;
  gap: 8vw;
}

.eyebrow {
  font: 800 9px Manrope, sans-serif;
  letter-spacing: 2px;
}

.login-story h1 {
  max-width: 690px;
  margin: 20px 0;
  font: 400 clamp(44px, 5vw, 72px)/.98 "DM Serif Display", Georgia, serif;
  letter-spacing: -1.5px;
}

.login-story > p {
  max-width: 560px;
  color: #aebfc8;
  font-size: 15px;
}

.trust-row > span {
  border: 1px solid rgba(105, 212, 173, .2);
  border-radius: 9px;
}

.login-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(8, 28, 44, .09);
  border-radius: 16px;
  padding: 34px;
  background: rgba(255, 253, 249, .96);
  box-shadow: 0 35px 90px rgba(5, 22, 35, .2);
}

.login-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
}

.login-card h2 {
  font: 400 31px "DM Serif Display", Georgia, serif;
  letter-spacing: -.3px;
}

.login-card label span {
  font: 750 10px Manrope, sans-serif;
  letter-spacing: .2px;
}

.login-card input {
  border-radius: 8px;
  background: #f6f5f1;
}

.login-card button {
  border-radius: 8px;
  background: linear-gradient(135deg, #0b2639, #0b7557);
  box-shadow: 0 10px 24px rgba(8, 46, 50, .17);
  font: 750 11px Manrope, sans-serif;
}

.demo-hint {
  font-size: 9px;
}

.portal-shell {
  grid-template-columns: 282px 1fr;
}

.portal-sidebar {
  width: 282px;
  padding: 28px 18px 22px;
  border: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(165deg, #0a2133 0%, #071925 58%, #0d2f34 130%);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: 14px 0 45px rgba(5, 19, 29, .12);
}

.side-brand {
  padding: 0 10px 27px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 18px;
}

.side-brand .portal-logo {
  width: 44px;
  height: 49px;
}

#portalNav {
  gap: 5px;
}

#portalNav button,
.logout-button {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 13px;
  color: rgba(235, 244, 241, .67);
  font: 650 12px Manrope, sans-serif;
}

#portalNav button .material-symbols-rounded,
.logout-button .material-symbols-rounded {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #a7b9b7;
  font-size: 19px;
}

#portalNav button:hover {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

#portalNav button.active {
  color: #fff;
  border-color: rgba(105, 212, 173, .25);
  background: linear-gradient(90deg, rgba(105, 212, 173, .2), rgba(105, 212, 173, .07));
  box-shadow: inset 3px 0 var(--mint);
}

#portalNav button.active .material-symbols-rounded {
  background: var(--mint);
  color: #073c2e;
}

.side-help {
  border-color: rgba(105, 212, 173, .22);
  border-radius: 10px;
  background: rgba(105, 212, 173, .08);
}

.portal-workspace {
  grid-column: 2;
}

.portal-topbar {
  height: 92px;
  padding: 0 35px;
  border-color: rgba(8, 28, 44, .09);
  background: rgba(250, 248, 243, .88);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(8, 28, 44, .035);
}

.portal-topbar small {
  color: var(--green);
  font: 800 8px Manrope, sans-serif;
  letter-spacing: 1.55px;
}

.portal-topbar b {
  font: 750 13px Manrope, sans-serif;
}

.portal-top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.secure-session {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font: 700 9px Manrope, sans-serif;
}

.secure-session i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(105, 212, 173, .16);
}

.portal-avatar {
  width: 39px;
  height: 39px;
  border: 2px solid #fff;
  background: linear-gradient(145deg, #12364e, var(--green));
  box-shadow: 0 5px 16px rgba(8, 28, 44, .18);
  font: 700 11px Manrope, sans-serif;
}

.portal-content {
  padding: 38px 36px 70px;
}

.portal-head {
  align-items: center;
  margin-bottom: 27px;
}

.portal-head > div::before {
  content: "BAFSS  /  PRIVATE CLIENT OFFICE";
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font: 800 8px Manrope, sans-serif;
  letter-spacing: 1.65px;
}

.portal-head h1 {
  color: #102534;
  font: 400 38px "DM Serif Display", Georgia, serif;
  letter-spacing: -.7px;
}

.portal-head p {
  color: #788189;
  font-size: 12px;
}

.portal-hero {
  position: relative;
  overflow: hidden;
  min-height: 175px;
  border: 1px solid rgba(105, 212, 173, .19);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(135deg, #0a2335, #0b5d4a);
  background-size: 38px 38px, auto;
  box-shadow: 0 18px 45px rgba(8, 28, 44, .11);
}

.portal-hero::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: 28%;
  bottom: -170px;
  border: 38px solid rgba(105, 212, 173, .1);
  border-radius: 50%;
}

.portal-hero h2 {
  font: 400 34px "DM Serif Display", Georgia, serif;
}

.portal-hero p,
.portal-hero small {
  color: rgba(235, 247, 243, .69);
}

.hero-value {
  position: relative;
  z-index: 1;
}

.hero-value b {
  font: 750 28px Manrope, sans-serif;
  letter-spacing: -1px;
}

.stat,
.panel,
.property-card {
  border-color: rgba(8, 28, 44, .095);
  background: rgba(255, 253, 249, .96);
  box-shadow: 0 12px 35px rgba(8, 28, 44, .045);
}

.stat {
  position: relative;
  min-height: 145px;
  border-radius: 12px;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -34px;
  bottom: -43px;
  border: 15px solid rgba(11, 117, 87, .045);
  border-radius: 50%;
}

.stat span {
  width: 39px;
  height: 39px;
  border-radius: 9px;
}

.stat b {
  font: 750 22px Manrope, sans-serif;
}

.stat small {
  font-size: 10px;
}

.panel {
  border-radius: 14px;
}

.panel-head {
  min-height: 64px;
  padding: 18px 21px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(248, 247, 242, .55));
}

.panel-head h2 {
  font: 750 14px Manrope, sans-serif;
}

.property-card {
  border-radius: 13px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(8, 28, 44, .13);
}

.property-image {
  height: 215px;
}

.property-image::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(transparent, rgba(5, 18, 27, .62));
}

.property-image b {
  z-index: 1;
  border-radius: 7px;
  backdrop-filter: blur(9px);
  font: 750 11px Manrope, sans-serif;
}

.property-body h3 {
  font: 750 15px Manrope, sans-serif;
}

.table th {
  padding: 12px 14px;
  background: #f1f0eb;
  color: #6c777e;
  font: 800 9px Manrope, sans-serif;
  letter-spacing: .8px;
}

.table td {
  padding: 15px 14px;
  border-color: #e9e7e1;
}

.badge {
  border: 1px solid rgba(11, 117, 87, .12);
  border-radius: 6px;
  font: 750 9px Manrope, sans-serif;
}

.badge.warn {
  color: #9a5d06;
  background: #fff2d7;
  border-color: rgba(183, 116, 20, .18);
}

.badge.red {
  color: #b42318;
  background: #fff0ed;
  border-color: rgba(180, 35, 24, .16);
}

.rent-history-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.rent-history-stats article {
  padding: 18px;
  border: 1px solid rgba(7, 37, 52, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
}

.rent-history-stats small,
.rent-history-stats b,
.period-code,
.rent-counterparty {
  display: block;
}

.rent-history-stats small,
.period-code,
.rent-counterparty {
  color: #778289;
  margin-top: 4px;
}

.rent-history-stats b {
  margin-top: 8px;
  font: 750 18px Manrope, sans-serif;
}

.rent-history-stats article.late {
  background: #fff8f6;
  border-color: rgba(180, 35, 24, .14);
}

.rent-history-stats article.late b {
  color: #b42318;
}

.rent-history-stats article.pending {
  background: #fffaf0;
  border-color: rgba(183, 116, 20, .16);
}

.rent-history-stats article.pending b {
  color: #9a5d06;
}

.rent-table-scroll {
  overflow-x: auto;
}

.rent-history-panel .table {
  min-width: 980px;
}

.rent-row-late td {
  background: rgba(255, 240, 237, .42);
}

.notice-history-panel {
  margin-top: 16px;
}

.notice-history-panel .panel-head > div small {
  display: block;
  margin-top: 4px;
  color: #778289;
}

.notice-amount,
.pending-note {
  display: block;
  margin-top: 5px;
  color: #9a5d06;
  font-size: 10px;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.notify-payment-button,
.approve-notice-button,
.reject-notice-button,
.reject-submit-button {
  border: 0;
  border-radius: 8px;
  padding: 9px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: 750 10px Manrope, sans-serif;
}

.notify-payment-button,
.approve-notice-button {
  color: #fff;
  background: linear-gradient(135deg, #0b2639, #0b7557);
}

.reject-notice-button,
.reject-submit-button {
  color: #b42318;
  background: #fff0ed;
}

.notify-payment-button .material-symbols-rounded,
.approve-notice-button .material-symbols-rounded,
.reject-notice-button .material-symbols-rounded,
.reject-submit-button .material-symbols-rounded {
  font-size: 16px;
}

.payment-notice-summary {
  border-color: rgba(11, 117, 87, .2);
  background: #f1fbf7;
}

.compact-rent-modal {
  width: min(520px, 94vw);
}

.reject-explanation {
  margin: 0 0 18px;
  color: #4f5d64;
  line-height: 1.6;
}

.reject-submit-button {
  width: 100%;
}

.pdf-link,
.word-link,
.tour-button,
.collect-rent-button,
.save-rent-button {
  border-radius: 8px;
  font: 750 10px Manrope, sans-serif;
}

.tour-button,
.save-rent-button {
  background: linear-gradient(135deg, #0b2639, #0b7557);
}

.modal-backdrop {
  background: rgba(4, 18, 29, .72);
  backdrop-filter: blur(4px);
}

.tour-modal,
.rent-modal {
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  box-shadow: 0 35px 100px rgba(4, 19, 29, .38);
}

.portal-toast {
  border-radius: 8px;
  font: 650 11px Manrope, sans-serif;
}

@media (max-width: 1100px) {
  .portal-shell { grid-template-columns: 88px 1fr; }
  .portal-sidebar { position: fixed; width: 88px; padding-inline: 10px; }
  .portal-workspace { grid-column: 2; }
  .side-brand { justify-content: center; padding-inline: 0; }
  .side-brand > div:last-child,
  .side-help,
  .logout-button { display: none; }
  #portalNav button { justify-content: center; font-size: 0; padding: 9px; }
  #portalNav button .material-symbols-rounded { font-size: 20px; }
}

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

  .login-view {
    padding: 20px 16px;
    background: linear-gradient(180deg, #081e30 0 29%, #f1f1eb 29%);
  }
  .login-brand small { display: none; }
  .login-layout {
    min-height: calc(100vh - 88px);
    display: block;
  }
  .login-story {
    display: block;
    padding: 34px 0 25px;
  }
  .login-story h1 {
    max-width: 340px;
    font-size: 37px;
  }
  .login-story > p,
  .trust-row { display: none; }
  .login-card {
    padding: 25px 22px;
    border-radius: 14px;
  }
  .portal-shell { display: block; }
  .portal-sidebar {
    inset: auto 0 0;
    width: 100%;
    height: 72px;
    padding: 8px 10px;
    display: block;
    z-index: 20;
    background: rgba(7, 25, 37, .97);
    backdrop-filter: blur(18px);
  }
  .side-brand,
  .side-help,
  .logout-button { display: none; }
  #portalNav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
  }
  #portalNav button {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    padding: 5px;
  }
  #portalNav button.active { box-shadow: inset 0 -3px var(--mint); }
  .portal-workspace { min-width: 0; }
  .portal-topbar { height: 72px; padding: 0 15px; }
  .portal-topbar > div:first-child small,
  .secure-session { display: none; }
  .portal-content { padding: 24px 15px 100px; overflow-x: hidden; }
  .portal-head { align-items: flex-start; }
  .portal-head h1 { font-size: 30px; }
  .portal-hero {
    display: block;
    min-height: 0;
    padding: 23px;
  }
  .portal-hero h2 { font-size: 28px; }
  .hero-value { margin-top: 22px; text-align: left; }
  .stats,
  .portal-grid { grid-template-columns: 1fr; }
  .panel-body { overflow-x: auto; }
  .table { min-width: 760px; }
  .tour-card { grid-template-columns: 120px 1fr; }
  #portalRentForm { grid-template-columns: 1fr; }
  .full { grid-column: 1; }
}
