/* Shared charcoal dashboard skin based on the supplied Raveno review desk. */
:root {
  --rv-bg: #09090a;
  --rv-side: #0d0d0e;
  --rv-card: #131314;
  --rv-card-raised: #18181a;
  --rv-line: rgba(255,255,255,.08);
  --rv-line-strong: rgba(255,255,255,.14);
  --rv-text: #f2f2f2;
  --rv-muted: #99999f;
  --rv-green: #3ddc97;
  --rv-gold: #d4b875;
  --rv-radius: 16px;
  color-scheme: dark;
}

/* Unified sign-in uses the same quiet dark card language. */
.scene .card {
  background: var(--rv-card) !important;
  border: 1px solid var(--rv-line) !important;
  border-radius: var(--rv-radius) !important;
  color: var(--rv-text) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.5) !important;
}
.scene .card::after { display: none !important; }
.scene .card h1, .scene .card label { color: var(--rv-text) !important; }
.scene .card .sub, .scene .card .new, .scene .card .row label,
.scene .card .row a, .scene .card .show { color: var(--rv-muted) !important; }
.scene .card .field input {
  background: var(--rv-card-raised) !important;
  border-color: var(--rv-line-strong) !important;
  color: var(--rv-text) !important;
}
.scene .card .btn {
  background: linear-gradient(100deg,#f4f4f4 0%,#cfcfd1 48%,#77777c 100%) !important;
  color: #0b0b0c !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.25) !important;
}

/* Admin and landlord workspaces */
body:has(#app-sidebar), body:has(.tenant-nav), body:has(.pf-shell) {
  background: var(--rv-bg) !important;
  color: var(--rv-text);
  font-family: 'Outfit', 'DM Sans', 'Segoe UI', system-ui, sans-serif;
}
#page-wrapper { background: transparent !important; }
#page-wrapper .white-box, #page-wrapper .panel, #page-wrapper .w3-card-4,
.tenant-wrap .white-box, .tenant-wrap .panel, .tenant-wrap .panel-default,
.pf-card, .pf-panel {
  background: var(--rv-card) !important;
  color: var(--rv-text) !important;
  border: 1px solid var(--rv-line) !important;
  border-radius: var(--rv-radius) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.16) !important;
}
#page-wrapper .white-box:hover, .tenant-wrap .white-box:hover,
.pf-card:hover, .pf-panel:hover { border-color: var(--rv-line-strong) !important; }
#page-wrapper .white-box, .tenant-wrap .white-box, .tenant-wrap .panel,
.pf-card, .pf-panel { color: var(--rv-text); }
#page-wrapper .white-box .text-muted, .tenant-wrap .text-muted,
.pf-note { color: var(--rv-muted) !important; }
#page-wrapper .bg-title, .pf-top {
  background: rgba(13,13,14,.92) !important;
  color: var(--rv-text) !important;
  border-color: var(--rv-line) !important;
  backdrop-filter: blur(14px);
}
#page-wrapper .bg-title h1, #page-wrapper .bg-title h2, #page-wrapper .bg-title h3,
#page-wrapper .bg-title h4, #page-wrapper .page-title,
.pf-top h1 { color: var(--rv-text) !important; }
#app-sidebar {
  background: linear-gradient(180deg, #0d0d0e, #101011) !important;
  border-right: 1px solid var(--rv-line) !important;
}
.app-sidebar-nav a { border-radius: 10px !important; }
.app-sidebar-nav a.active {
  background: linear-gradient(100deg,#f4f4f4 0%,#cfcfd1 48%,#77777c 100%) !important;
  color: #0b0b0c !important;
  box-shadow: inset 0 1px rgba(255,255,255,.6), 0 6px 20px rgba(0,0,0,.32) !important;
}
.app-sidebar-nav a.active i { color: #0b0b0c !important; text-shadow: none !important; }
.app-sidebar-nav a.active:before { display: none !important; }
.app-sidebar-section { color: #77777d !important; }
.navbar.navbar-static-top, .navbar-header {
  background: rgba(13,13,14,.94) !important;
  border-color: var(--rv-line) !important;
}

/* Renter portal navigation and panels */
.tenant-nav {
  background: rgba(13,13,14,.96) !important;
  border-bottom: 1px solid var(--rv-line);
  box-shadow: 0 8px 26px rgba(0,0,0,.2) !important;
}
.tenant-nav .brand i, .tenant-nav-links a.active {
  background: linear-gradient(100deg,#f4f4f4 0%,#cfcfd1 48%,#77777c 100%) !important;
  color: #0b0b0c !important;
  box-shadow: none !important;
}
.tenant-nav-links a { border-radius: 10px !important; }
.tenant-wrap { color: var(--rv-text); }
.tenant-wrap .panel-heading, .tenant-wrap .panel-footer {
  background: var(--rv-card-raised) !important;
  color: var(--rv-text) !important;
  border-color: var(--rv-line) !important;
}

/* Platform owner console shares the same card, nav, and table language. */
.pf-side {
  background: var(--rv-side) !important;
  border-right: 1px solid var(--rv-line);
}
.pf-brand span { background: linear-gradient(100deg,#f4f4f4,#9a9a9e) !important; }
.pf-nav a { color: #b7b7bc !important; border-radius: 10px !important; }
.pf-nav a:hover { background: var(--rv-card-raised) !important; color: #fff !important; }
.pf-nav a.active {
  background: linear-gradient(100deg,#f4f4f4 0%,#cfcfd1 48%,#77777c 100%) !important;
  color: #0b0b0c !important;
  box-shadow: none !important;
}
.pf-top { border-bottom: 1px solid var(--rv-line) !important; }
.pf-card .k, .pf-card .v, .pf-panel h2, .pf-table td { color: var(--rv-text) !important; }
.pf-card .v { font-weight: 500 !important; }
.pf-table th { color: var(--rv-muted) !important; border-color: var(--rv-line) !important; }
.pf-table td { border-color: var(--rv-line) !important; }
.pf-chart-panel { padding-bottom: 12px !important; }
.pf-chart { width: 100%; overflow: hidden; }
.pf-chart svg { width: 100%; min-width: 520px; height: 220px; overflow: visible; }
.pf-chart line { stroke: rgba(255,255,255,.08); stroke-dasharray: 4 6; }
.pf-chart .pf-chart-area { fill: rgba(61,220,151,.08); stroke: none; }
.pf-chart .pf-chart-line { fill: none; stroke: var(--rv-green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pf-chart circle { fill: var(--rv-bg); stroke: var(--rv-green); stroke-width: 2; }
.pf-chart text { fill: var(--rv-muted); font: 11px 'Outfit','Segoe UI',sans-serif; }
.pf-form .pf-field label { color: #d4d4d8 !important; }
.pf-form input, .pf-form select, .pf-form textarea {
  color: var(--rv-text) !important;
  background: var(--rv-card-raised) !important;
  border-color: var(--rv-line-strong) !important;
  border-radius: 10px !important;
}
.pf-btn.ghost { background: var(--rv-card-raised) !important; color: var(--rv-text) !important; }

/* Charts and data tables keep a calm, high-contrast frame. Data and series
   colors remain controlled by each page's live database-backed chart code. */
.chart-container, .chartbox, .morris-hover, .table-responsive,
.dataTables_wrapper, .pf-panel .table-responsive {
  border-color: var(--rv-line) !important;
}
canvas { max-width: 100%; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
table.dataTable, .table {
  color: var(--rv-text) !important;
  background: transparent !important;
}
table.dataTable thead th, .table > thead > tr > th,
.table > tbody > tr > td { border-color: var(--rv-line) !important; }

@media (max-width: 860px) {
  .pf-side { border: 0; border-bottom: 1px solid var(--rv-line); }
  .tenant-nav { padding: 12px 16px !important; }
}

/* Strong Courier New typography shared by the owner, landlord, and tenant portals. */
body:has(#app-sidebar), body:has(.tenant-nav), body:has(.pf-shell), body:has(.scene), body.scene, .scene {
  font-family: "Courier New", Courier, monospace !important;
  font-weight: 700;
}
body:has(#app-sidebar) :is(h1,h2,h3,h4,h5,h6,p,a,span,td,th,li,label,button,input,select,textarea,.btn,.form-control,.table,.breadcrumb,.badge,.label,.box-title,.dropdown-menu,.panel,.white-box),
body:has(.tenant-nav) :is(h1,h2,h3,h4,h5,h6,p,a,span,td,th,li,label,button,input,select,textarea,.btn,.form-control,.table,.badge,.panel,.white-box),
body:has(.pf-shell) :is(h1,h2,h3,h4,h5,h6,p,a,span,td,th,li,label,button,input,select,textarea,.pf-btn,.pf-nav,.pf-card,.pf-panel,.pf-table),
body:has(.scene) .scene :is(h1,h2,h3,h4,h5,h6,p,a,span,label,button,input,select,textarea,.btn),
body.scene :is(h1,h2,h3,h4,h5,h6,p,a,span,label,button,input,select,textarea,.btn),
.scene :is(h1,h2,h3,h4,h5,h6,p,a,span,label,button,input,select,textarea,.btn) {
  font-family: "Courier New", Courier, monospace !important;
  font-weight: 700 !important;
}
body:has(#app-sidebar) :is(h1,h2,h3,h4,h5,h6,.page-title,.box-title),
body:has(.tenant-nav) :is(h1,h2,h3,h4,h5,h6), body:has(.pf-shell) :is(h1,h2,h3,h4,h5,h6),
body:has(.scene) .scene h1, body.scene h1, .scene h1 { font-weight: 900 !important; }
