:root {
  --ink: #081c2c;
  --ink2: #142839;
  --green: #0b7557;
  --mint: #69d4ad;
  --mint2: #e2f4ed;
  --bg: #f2f0eb;
  --card: #fffdf9;
  --muted: #69747c;
  --line: #deddd7;
  --gold: #b49359;
  --shadow: 0 18px 45px rgba(8, 28, 44, .08);
}

.control-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;margin:18px 0}
.control-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--border)}
.control-row:last-child{border-bottom:0}.control-row>span{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#e6f8f2;color:#078765}
.control-row>div{display:grid;gap:3px;flex:1}.control-row small{color:var(--muted)}
.notification-list,.notification-modal-list{display:grid;gap:8px}.notification-row{border:0;width:100%;display:grid;grid-template-columns:40px 1fr 8px;align-items:center;gap:12px;text-align:left;padding:12px;border-radius:13px;background:#f7fafb;color:var(--text);cursor:pointer}
.notification-row:hover{background:#edf8f4}.notification-row.read{opacity:.55}.notification-row>span{color:#078765}.notification-row>div{display:grid;gap:3px}.notification-row small{color:var(--muted)}.notification-row>i{width:8px;height:8px;background:#ef6155;border-radius:50%}
#notifications.has-alert{position:relative}#notifications.has-alert i{position:absolute;right:-4px;top:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#ef6155;color:#fff;font:700 11px/19px Inter;text-align:center;font-style:normal}
.document-list{max-height:420px;overflow:auto}.document-upload{min-height:130px}
@media(max-width:1050px){.control-grid{grid-template-columns:1fr}}

body {
  background:
    radial-gradient(circle at 78% 4%, rgba(105, 212, 173, .11), transparent 22rem),
    linear-gradient(180deg, #f7f5f0 0, var(--bg) 30rem);
  color: var(--ink);
}

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

.sidebar {
  width: 282px;
  padding: 28px 18px 22px;
  border: 0;
  color: #fff;
  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);
}

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

.brand-mark {
  width: 48px;
  height: 54px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .45);
  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;
}

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

.brand-copy strong {
  color: #fff;
  font: 800 25px Manrope, sans-serif;
  letter-spacing: -.7px;
}

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

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

.nav {
  gap: 5px;
}

.nav-link {
  color: rgba(235, 244, 241, .67);
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 13px;
  font: 650 12px Manrope, sans-serif;
  letter-spacing: .1px;
}

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

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

.nav-link.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);
}

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

.nav-link.active::after {
  display: none;
}

.sidebar-foot {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-top: 12px;
}

.sidebar-foot .nav-link {
  color: rgba(235, 244, 241, .58);
}

.support {
  margin-top: 12px;
  border: 1px solid rgba(105, 212, 173, .22);
  background: rgba(105, 212, 173, .08);
  color: #dff8ef;
}

.support > span {
  color: var(--mint);
}

.support small {
  color: rgba(226, 244, 237, .52);
}

.workspace {
  grid-column: 2;
}

.topbar {
  height: 92px;
  padding: 0 34px;
  background: rgba(250, 248, 243, .86);
  border-color: rgba(8, 28, 44, .09);
  box-shadow: 0 8px 30px rgba(8, 28, 44, .035);
}

.topbar-start {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.workspace-label {
  min-width: 178px;
}

.workspace-label span,
.workspace-label b {
  display: block;
}

.workspace-label span {
  color: var(--green);
  font: 800 8px Manrope, sans-serif;
  letter-spacing: 1.7px;
}

.workspace-label b {
  margin-top: 3px;
  font: 750 13px Manrope, sans-serif;
}

.search {
  width: min(480px, 34vw);
  height: 46px;
  border: 1px solid rgba(8, 28, 44, .1);
  border-radius: 9px;
  background: rgba(255, 255, 255, .68);
  box-shadow: inset 0 1px 2px rgba(8, 28, 44, .025);
}

.search:focus-within {
  border-color: rgba(11, 117, 87, .45);
  box-shadow: 0 0 0 3px rgba(11, 117, 87, .08);
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 11px;
  border-left: 1px solid var(--line);
}

.profile-chip b,
.profile-chip small {
  display: block;
}

.profile-chip b {
  font: 700 11px Manrope, sans-serif;
}

.profile-chip small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}

.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;
}

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

.page-head {
  align-items: center;
  margin-bottom: 28px;
}

.page-head > div:first-child::before {
  content: "BAFSS  /  REAL ESTATE OPERATIONS";
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font: 800 8px Manrope, sans-serif;
  letter-spacing: 1.65px;
}

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

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

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn,
.pdf-btn,
.word-btn {
  min-height: 40px;
  border-radius: 8px;
  font: 750 11px Manrope, sans-serif;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #0b2639, #0b7557);
  box-shadow: 0 8px 18px rgba(8, 46, 50, .14);
}

.primary-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0e3149, #0b8060);
  box-shadow: 0 10px 22px rgba(8, 46, 50, .2);
}

.secondary-btn {
  border: 1px solid rgba(11, 117, 87, .15);
}

.ghost-btn {
  background: rgba(255, 253, 249, .86);
  border-color: rgba(8, 28, 44, .12);
}

.panel,
.stat,
.filters,
.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);
}

.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;
  letter-spacing: -.2px;
}

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

.stat::after {
  content: "";
  position: absolute;
  inset: auto -24px -40px auto;
  width: 100px;
  height: 100px;
  border: 18px solid rgba(11, 117, 87, .045);
  border-radius: 50%;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #102b3e;
}

.stat h2 {
  margin: 15px 0 3px;
  font: 750 23px Manrope, sans-serif;
  letter-spacing: -.8px;
}

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

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

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

.property-card {
  border-radius: 13px;
}

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

.property-image {
  height: 215px;
}

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

.property-image > * {
  z-index: 1;
}

.price-tag {
  border: 0;
  border-radius: 7px;
  background: rgba(7, 25, 37, .88);
  backdrop-filter: blur(9px);
  font: 750 12px Manrope, sans-serif;
}

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

.property-meta {
  color: #778289;
}

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

.customer-relation-stats .late-stat {
  background: #fff7f4;
  border-color: rgba(180, 35, 24, .14);
}

.customer-relation-stats .late-stat b,
.customer-relation-stats .late-stat .material-symbols-rounded {
  color: #b42318;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-title-row h3 {
  margin-bottom: 4px;
}

.section-title-row small,
.period-code {
  display: block;
  color: #778289;
  margin-top: 4px;
}

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

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

.rent-notice-audit-table {
  min-width: 1180px;
}

.admin-notice-amount {
  display: block;
  margin-top: 4px;
  color: #9a5d06;
  font-size: 10px;
}

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

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

.modal-backdrop {
  background: rgba(4, 18, 29, .7);
}

.input,
.select,
.textarea {
  border-radius: 8px;
  background: #f7f6f2;
}

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

.tour-viewer-shell {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #091217;
}

.pannellum-stage {
  width: 100%;
  min-height: 650px;
  overflow: hidden;
  background: #10191d;
  cursor: grab;
}

.pannellum-stage:active { cursor: grabbing; }
.pannellum-stage:after { display: none; }
.pannellum-stage .pnlm-render-container { z-index: 1; }
.pannellum-stage .pnlm-ui { z-index: 2; }
.pannellum-stage .pnlm-load-box { background: rgba(7, 27, 45, .86); }
.pannellum-stage .pnlm-lbar-fill { background: var(--mint); }
.pannellum-stage .pnlm-about-msg { display: none !important; }
.pannellum-stage .pnlm-scene,
.pannellum-stage .bafss-scene-hotspot {
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 15px;
  background-color: rgba(7, 122, 85, .92);
  background-image: none !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.34), 0 0 0 7px rgba(84,229,174,.14);
  animation: hotspotPulse 2s ease-in-out infinite;
}
.pannellum-stage .bafss-scene-hotspot:before {
  content: "door_open";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font: 24px "Material Symbols Rounded";
}
.pannellum-stage .pnlm-tooltip span {
  border-radius: 9px;
  background: #071b2d;
  font: 700 11px Manrope, sans-serif;
}
.pannellum-stage .pnlm-tooltip span:after { border-top-color: #071b2d; }

.pano-loading,
.pano-error {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: #dce8e4;
}
.pano-loading span {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: var(--mint);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.pannellum-stage.ready .pano-loading { display: none; }
.pano-error .material-symbols-rounded { color: #ff8b81; font-size: 38px; }
.pano-error small { color: #9cadb5; }

.pano-engine-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  color: #83e9c4;
  font: 800 9px Manrope, sans-serif;
  letter-spacing: .1em;
}
.pano-engine-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(84,229,174,.12);
}
.pano-capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0 4px;
}
.pano-capabilities span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px;
  border: 1px solid #303c41;
  border-radius: 9px;
  background: #182125;
  color: #c8d3d7;
  font-size: 10px;
  font-weight: 700;
}
.pano-capabilities .material-symbols-rounded {
  color: var(--mint);
  font-size: 18px;
}
.pano-door-links {
  position: absolute;
  z-index: 4;
  right: 20px;
  top: 50%;
  display: grid;
  gap: 9px;
  transform: translateY(-50%);
}
.pano-door-links button {
  width: 132px;
  min-height: 68px;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  column-gap: 8px;
  padding: 10px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 14px;
  background: rgba(7, 122, 85, .9);
  color: #fff;
  text-align: left;
  box-shadow: 0 12px 32px rgba(0,0,0,.3), 0 0 0 7px rgba(84,229,174,.12);
  backdrop-filter: blur(10px);
}
.pano-door-links button:hover {
  background: #0a9469;
  transform: translateY(-2px);
}
.pano-door-links .material-symbols-rounded {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.14);
  color: var(--mint);
}
.pano-door-links b { align-self: end; font-size: 12px; }
.pano-door-links small { align-self: start; color: #d7ebe4; font-size: 9px; }

@media (max-width: 1250px) {
  .app-shell { grid-template-columns: 88px 1fr; }
  .sidebar { width: 88px; padding-inline: 10px; }
  .workspace { grid-column: 2; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand-copy,
  .support,
  .nav-sub,
  .sidebar-foot .nav-link:not([data-page="settings"]) { display: none; }
  .nav-link { justify-content: center; font-size: 0; padding: 9px; }
  .nav-link .material-symbols-rounded { font-size: 20px; }
  .sidebar-foot { margin-top: auto; }
}

@media (max-width: 1050px) {
  .tour-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .tour-stage {
    min-height: clamp(440px, 58vh, 620px);
  }

  .tour-panel {
    border-left: 0;
    border-top: 1px solid #293033;
  }
}

@media (max-width: 760px) {
  body { min-width: 0; }
  .app-shell { display: block; }
  .workspace { min-width: 0; }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: 72px;
    padding: 8px 10px;
    display: block;
    background: rgba(7, 25, 37, .97);
    backdrop-filter: blur(18px);
  }
  .brand,
  .sidebar-foot { display: none; }
  .nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
  }
  .nav-link {
    flex: 0 0 54px;
    height: 54px;
    padding: 5px;
  }
  .nav-link.active { box-shadow: inset 0 -3px var(--mint); }
  .topbar { height: 72px; padding: 0 15px; }
  .workspace-label,
  .profile-chip > div:last-child,
  #notifications { display: none; }
  .topbar-start { flex: 1; }
  .search { width: 100%; }
  #quickCreate { width: 42px; padding: 0; font-size: 0; }
  #quickCreate span { font-size: 20px; }
  .content { padding: 24px 15px 100px; overflow-x: hidden; }
  .page-head {
    display: grid;
    align-items: flex-start;
    gap: 16px;
  }
  .page-head h1 { font-size: 30px; }
  .head-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .head-actions > * {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }
  .stats,
  .property-grid,
  .customer-grid,
  .settings-grid,
  .finance-home-grid,
  .dashboard-grid,
  .finance-grid { grid-template-columns: 1fr !important; }
  .security-panel { grid-row: auto; }
  .property-layout { display: block; }
  .filters { position: static; margin-bottom: 16px; }
  .table { min-width: 760px; }
  .panel-body { overflow-x: auto; }

  .tour-room-strip {
    margin-inline: -15px;
    padding: 3px 15px 15px;
    scroll-padding-inline: 15px;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .tour-room-strip::-webkit-scrollbar { display: none; }
  .room-tab {
    flex-basis: 138px;
    min-height: 76px;
    grid-template-columns: 48px 1fr;
    padding: 8px;
  }
  .room-tab > span:first-child {
    width: 48px;
    height: 54px;
  }

  .tour-layout {
    margin-inline: -15px;
    border-radius: 0;
  }
  .tour-stage {
    min-height: clamp(390px, 58vh, 520px);
  }
  .tour-tools {
    left: 12px;
    top: 12px;
    gap: 5px;
    padding: 5px;
  }
  .tour-tools button {
    width: 38px;
    height: 42px;
  }
  .live-chip {
    top: 68px;
    right: 12px;
    max-width: calc(100% - 24px);
    padding: 8px 10px;
    font-size: 10px;
  }
  .tour-focus {
    inset: 25% 10%;
  }
  .tour-focus h2 { font-size: 21px; }
  .tour-focus p {
    max-width: 220px;
    margin-inline: auto;
    font-size: 11px;
  }
  .room-hotspot {
    min-width: 74px;
    padding: 8px 9px;
  }
  .room-hotspot .material-symbols-rounded { font-size: 23px; }
  .tour-scene-title {
    right: 12px;
    left: 12px;
    bottom: 14px;
    padding: 11px 13px;
  }
  .tour-scene-title h2 { font-size: 19px; }
  .tour-scene-title p {
    max-width: 270px;
    line-height: 1.45;
  }
  .tour-panel {
    padding: 22px 15px 28px;
  }
  .tour-panel h2 { font-size: 21px; }
  .tour-panel > p {
    margin-bottom: 0;
    font-size: 12px;
  }
  .scene-actions {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 16px;
  }
  .tour-upload-card {
    margin: 16px 0;
    padding: 13px;
  }
  .tour-guide { line-height: 1.45; }
  .tour-guide ol { line-height: 1.55; }
  .dark-field { margin: 20px 0; }
  .tour-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 22px;
  }
  .tour-actions button { min-height: 46px; }
  .pano-capabilities { grid-template-columns: minmax(0, 1fr); }
  .pano-door-links {
    top: auto;
    right: 12px;
    bottom: 104px;
    left: 12px;
    display: flex;
    overflow-x: auto;
    transform: none;
    scrollbar-width: none;
  }
  .pano-door-links::-webkit-scrollbar { display: none; }
  .pano-door-links button {
    flex: 1 0 126px;
    min-height: 60px;
  }
}
