/* Apex workspace refresh: restrained contrast, clearer groups and calmer surfaces. */
:root {
  --navy: #193653;
  --navy-deep: #11283f;
  --blue: #547493;
  --pale: #91a8bd;
  --cream: #f0ebe3;
  --ink: #1d2e42;
  --muted: #708096;
  --line: #e0e6ed;
  --bg: #f2f5f8;
  --white: #fff;
  --green: #2c725a;
  --amber: #9a7138;
  --shadow: 0 10px 28px rgb(20 41 65 / 5%);
}

/* Sign-in stays focused on one centered card, with the existing Apex mark as atmosphere. */
.auth-layout {
  position: relative;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: 84px 24px 54px;
  background: radial-gradient(ellipse at 50% 0%, #294a6c 0%, #193653 44%, #11283f 100%);
}
.auth-brand {
  position: absolute;
  inset: 27px 36px auto;
  z-index: 1;
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.auth-page .auth-brand { display: block; }
.auth-logo { width: 150px; height: auto; }
.auth-brand .auth-mark {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(33vw, 330px);
  height: auto;
  transform: translate(-50%, -42%);
  opacity: .13;
  pointer-events: none;
}
.auth-statement, .auth-brand>footer { display: none; }
.auth-content {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 480px);
  min-height: 0;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
}
.auth-card {
  width: 100%;
  max-width: 480px;
  margin: 0;
  padding: 39px 42px 34px;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgb(4 18 32 / 24%);
}
.auth-card .mobile-auth-logo { display: none; }
.auth-card .auth-title { color: #193653; letter-spacing: -.3px; }
.auth-card .auth-lead { color: #758398; margin-bottom: 28px; }
.auth-card input { border-radius: 9px; }
.auth-card button[type="submit"] { border-radius: 9px; background: #193653; }
.auth-copyright { position: fixed; inset: auto 0 15px; color: #c0cddd; text-align: center; }

/* The staff workspace uses grouped modules like an operations console, with softer surfaces. */
.app-shell { grid-template-columns: 248px minmax(0, 1fr); background: var(--bg); }
.sidebar {
  background: linear-gradient(180deg, #142d47 0%, #10263d 100%);
  padding: 22px 14px 17px;
}
.brand { padding: 3px 13px 20px; margin-bottom: 16px; }
.brand img { width: 143px; }
.brand-caption { margin-top: 10px; color: #a6b8cb; letter-spacing: 0; }
.nav-label { padding-inline: 13px; color: #8199b2; }
.navigation { gap: 4px; }
.nav-disclosure { margin-top: 9px; padding-top: 7px; border-color: rgb(255 255 255 / 8%); }
.nav-disclosure summary { padding: 9px 12px; color: #9fb1c4; font-size: 11px; }
.nav-disclosure summary:hover, .nav-disclosure[open] summary { color: #edf3fa; background: rgb(255 255 255 / 5%); }
.nav-group-count { color: #8299b1; }
.nav-button { min-height: 40px; padding: 9px 12px; border-radius: 8px; color: #c1cede; transition: background .16s, color .16s, transform .16s; }
.nav-button:hover { background: rgb(255 255 255 / 7%); color: #fff; transform: translateX(-1px); }
.nav-button.active { background: #f5f7fa; color: #1c3a59; box-shadow: 0 4px 12px rgb(3 17 31 / 12%); }
.nav-button.active:after { width: 3px; background: #b99a67; }
.sidebar-note { border-radius: 9px; background: rgb(255 255 255 / 3%); }
.topbar { height: 74px; padding-inline: 28px; background: rgb(255 255 255 / 96%); box-shadow: 0 3px 14px rgb(25 45 72 / 3%); }
.topbar-title { color: #173553; }
.global-search { border-radius: 9px; background: #f5f7f9; }
.main-content { max-width: 1660px; padding: 26px 30px 40px; }
.page-heading {
  align-items: center;
  padding: 19px 23px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(105deg, #fff 0%, #fff 72%, #f7f9fb 100%);
  box-shadow: var(--shadow);
}
.page-heading .page-eyebrow { color: #92764b; font-weight: 600; letter-spacing: .15px; }
.page-heading h1 { color: #183754; }
.page-heading p { color: #738196; }
.heading-actions { gap: 9px; }
.btn { border-radius: 8px; transition: transform .14s, box-shadow .14s, background .14s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { box-shadow: 0 3px 10px rgb(25 54 83 / 12%); }
.panel, .executive-kpi, .work-card, .service-card, .property-card {
  border-color: #e0e6ed;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgb(20 41 65 / 3%);
}
.panel-header { background: #fff; }
.panel-header h2 { color: #244460; }
.executive-panel .panel-header { padding: 18px 21px; }
.executive-kpi { position: relative; padding: 19px 21px; overflow: hidden; }
.executive-kpi:before { position: absolute; inset: 0 0 auto; height: 3px; background: #9db2c5; content: ''; }
.executive-kpi:nth-child(2):before { background: #7e9a91; }
.executive-kpi:nth-child(3):before { background: #c0a474; }
.executive-kpi:nth-child(4):before { background: #8397af; }
.executive-kpi>strong { color: #1d4262; font-size: 29px; }
.executive-kpi>div .icon { color: #768ea5; }
.table-wrap { border-radius: 8px; }
table thead { background: #f5f7f9; }
table th { color: #60758d; }
table tbody tr:hover { background: #f8fafc; }
input, select, textarea { border-radius: 8px; }
.insights-filters { border-radius: 11px; border-color: #e1e7ed; background: #fff; }
.executive-context { color: #75869a; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .main-content { padding: 22px 21px 32px; }
  .topbar { padding-inline: 20px; }
}
@media (max-width: 760px) {
  .auth-layout { padding: 112px 18px 58px; }
  .auth-brand { inset: 25px 20px auto; }
  .auth-logo { width: 132px; }
  .auth-brand .auth-mark { width: 210px; }
  .auth-content { width: 100%; }
  .auth-card { padding: 32px 25px 28px; border-radius: 15px; }
  .app-shell { display: block; }
  .topbar { min-height: 66px; height: 66px; padding-inline: 14px; }
  .main-content { padding: 17px 14px 28px; }
  .page-heading { align-items: flex-start; padding: 16px; margin-bottom: 17px; border-radius: 11px; }
  .page-heading h1 { font-size: 20px; }
  .executive-kpis { gap: 10px; }
  .executive-kpi { padding: 15px; }
  .executive-kpi>strong { font-size: 25px; }
}
