/* Deep jade command-center theme for the authenticated team leader workspace. */
body[data-view="leaderView"] {
  min-height: 100vh;
  background: #f3f6f2;
  color: #162a24;
}

body[data-view="leaderView"] .ambient,
body[data-view="leaderView"] .brandbar {
  display: none;
}

body[data-view="leaderView"] .shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body[data-view="leaderView"] #leaderView {
  min-height: 100vh;
}

.leader-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}

.leader-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 31px 14px 24px;
  overflow: hidden;
  color: #eff9f2;
  background-color: #07382f;
  box-shadow: 8px 0 32px rgba(8, 49, 39, .08);
}

.sidebar-brand,
.sidebar-label,
.leader-menu,
.sidebar-note {
  position: relative;
  z-index: 1;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  color: #f3fff8;
  text-decoration: none;
}

.sidebar-seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(178, 236, 205, .48);
  border-radius: 12px;
  color: #e9fff0;
  font-family: serif;
  font-size: 21px;
  background: rgba(255, 255, 255, .1);
}

.sidebar-brand b,
.sidebar-brand small {
  display: block;
}

.sidebar-brand b {
  font: 600 18px/1.15 Georgia, "Noto Serif SC", serif;
  letter-spacing: .04em;
}

.sidebar-brand small {
  margin-top: 5px;
  color: #a9c8b8;
  font-size: 9px;
  letter-spacing: .13em;
}

.sidebar-label {
  margin: 44px 12px 13px;
  color: #8fb4a3;
  font-size: 11px;
  letter-spacing: .12em;
}

.leader-menu {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.leader-menu button {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  width: 100%;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #b9d2c5;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.leader-menu button i {
  width: 21px;
  color: #93b6a5;
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

.leader-menu button:hover {
  border-color: rgba(157, 224, 194, .16);
  color: #f4fff8;
  background: rgba(255, 255, 255, .08);
}

.leader-menu button.active {
  border-color: rgba(125, 226, 185, .18);
  color: #f6fff9;
  background: rgba(31, 113, 93, .82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
}

.leader-menu button.active i {
  color: #ecfff2;
}

.leader-menu button:focus-visible {
  outline: 3px solid rgba(170, 236, 205, .65);
  outline-offset: 2px;
}

.sidebar-note {
  margin: auto 12px 0;
  padding-top: 28px;
  color: #8fb4a3;
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1.8;
}

.leader-main {
  width: 100%;
  max-width: 1450px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 48px 64px;
}

.leader-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  border-bottom: 1px solid #e0e8e1;
}

.topbar-context {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #234238;
  font-size: 13px;
  font-weight: 700;
}

.topbar-context small {
  color: #7b9185;
  font-size: 11px;
  font-weight: 500;
}

.leader-session {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #486157;
  font-size: 13px;
  font-weight: 650;
}

.leader-session .text-button {
  margin-left: 9px;
  color: #34705e;
}

.leader-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #eafff1;
  background: #0e5e4d;
  font: 600 17px Georgia, "Noto Serif SC", serif;
}

body[data-view="leaderView"] .page-title {
  position: relative;
  align-items: center;
  min-height: 178px;
  margin: 27px 0 26px;
  padding: 31px 34px;
  overflow: hidden;
  border: 1px solid #e1ebe3;
  border-radius: 22px;
  background-color: #edf4ee;
  box-shadow: 0 14px 34px rgba(29, 65, 49, .05);
}

body[data-view="leaderView"] .page-title > div:first-child {
  position: relative;
  z-index: 1;
}

body[data-view="leaderView"] .page-title h1 {
  margin-bottom: 9px;
  color: #122e26;
  font-size: clamp(32px, 3.2vw, 46px);
  letter-spacing: -.045em;
}

body[data-view="leaderView"] .page-title > div > p:last-child {
  max-width: 510px;
  color: #5e7569;
  font-size: 14px;
}

body[data-view="leaderView"] .page-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body[data-view="leaderView"] .page-actions .primary,
body[data-view="leaderView"] .page-actions .secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 43px;
  padding-inline: 15px;
}

body[data-view="leaderView"] .page-actions i {
  font-size: 17px;
}

body[data-view="leaderView"] .metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 17px;
  padding: 12px 0;
  border-top: 1px solid #e0e8e1;
  border-bottom: 1px solid #e0e8e1;
  background: #fff;
}

body[data-view="leaderView"] .metric {
  min-width: 0;
  padding: 12px 24px 13px;
  border: 0;
  border-right: 1px solid #e1e9e3;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body[data-view="leaderView"] .metric:last-child {
  border-right: 0;
}

body[data-view="leaderView"] .metric small {
  margin-bottom: 10px;
  color: #71857b;
  font-size: 12px;
}

body[data-view="leaderView"] .metric strong {
  display: block;
  margin-bottom: 7px;
  color: #16352b;
  font: 600 clamp(24px, 2.4vw, 34px)/1 Georgia, "Noto Serif SC", serif;
  letter-spacing: -.03em;
}

body[data-view="leaderView"] .metric strong.gold {
  color: #ad7025;
}

body[data-view="leaderView"] .card {
  border: 1px solid #e1e9e3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 65, 49, .045);
}

body[data-view="leaderView"] .metric.card {
  border: 0;
  border-right: 1px solid #e1e9e3;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body[data-view="leaderView"] .metric.card:last-child {
  border-right: 0;
}

body[data-view="leaderView"] .source-card {
  min-height: 92px;
  margin-bottom: 0;
  padding: 20px 24px;
}

body[data-view="leaderView"] .source-card h2,
body[data-view="leaderView"] .section-head h2 {
  color: #17362c;
  letter-spacing: -.02em;
}

body[data-view="leaderView"] .source-card .muted {
  color: #75897f;
}

body[data-view="leaderView"] .source-run {
  color: #587065;
}

body[data-view="leaderView"] .section-card {
  padding: 0;
  overflow: hidden;
}

body[data-view="leaderView"] .section-head {
  min-height: 78px;
  margin: 0;
  padding: 18px 24px;
  border-bottom: 1px solid #e5ebe6;
}

body[data-view="leaderView"] .section-head > div > p {
  margin-bottom: 5px;
}

body[data-view="leaderView"] .search-wrap input {
  width: 250px;
  border-color: #dbe5dd;
  border-radius: 10px;
  background: #f7faf7;
}

body[data-view="leaderView"] .table-wrap {
  border: 0;
  border-radius: 0;
}

body[data-view="leaderView"] table {
  min-width: 920px;
}

body[data-view="leaderView"] th {
  padding: 14px 17px;
  border-bottom: 1px solid #e1e9e3;
  color: #647a6e;
  background: #f4f7f4;
  font-size: 11px;
  letter-spacing: .04em;
}

body[data-view="leaderView"] td {
  padding: 15px 17px;
  border-bottom-color: #edf1ed;
  color: #28483c;
}

body[data-view="leaderView"] tbody tr:hover {
  background: #f8fbf8;
}

body[data-view="leaderView"] .account-cell b {
  color: #19392e;
  font-size: 14px;
}

body[data-view="leaderView"] .account-cell span,
body[data-view="leaderView"] td small {
  color: #81938a;
}

body[data-view="leaderView"] .split-grid {
  gap: 17px;
}

body[data-view="leaderView"] .rate-list,
body[data-view="leaderView"] .timeline-list {
  padding: 20px 24px 23px;
}

body[data-view="leaderView"] .rate-row,
body[data-view="leaderView"] .timeline-row {
  border-top-color: #e7ede8;
}

body[data-view="leaderView"] .rate-row b {
  color: #a86619;
}

body[data-view="leaderView"] .leader-pane > .section-card {
  margin-bottom: 0;
}

body[data-view="leaderView"] .leader-pane > .split-grid {
  margin-bottom: 0;
}

body[data-view="leaderView"] .status {
  padding: 4px 9px;
}

body[data-view="leaderView"] .primary {
  background: #0e5e4d;
}

body[data-view="leaderView"] .primary:hover {
  background: #083d33;
}

body[data-view="leaderView"] .secondary {
  border-color: #bfd0c6;
  color: #155844;
  background: #fff;
}

body[data-view="leaderView"] .secondary:hover {
  border-color: #83ae98;
  background: #f3f9f4;
}

body[data-view="leaderView"] .text-button {
  color: #2f735d;
}

body[data-view="leaderView"] .modal form,
body[data-view="leaderView"] #localAgentDialog {
  background: #fff;
}

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

  .leader-main {
    padding-inline: 28px;
  }

  .leader-sidebar {
    padding-inline: 10px;
  }

  .sidebar-brand {
    padding-inline: 8px;
  }

  .sidebar-brand b {
    font-size: 16px;
  }

  body[data-view="leaderView"] .page-title {
    padding-inline: 25px;
  }

  body[data-view="leaderView"] .metric {
    padding-inline: 16px;
  }
}

@media (max-width: 760px) {
  .leader-layout {
    display: block;
  }

  .leader-sidebar {
    position: sticky;
    z-index: 3;
    top: 0;
    display: block;
    min-height: auto;
    padding: 12px 14px 10px;
    background-position: 48% 58%;
    background-size: cover;
  }

  .sidebar-brand {
    display: inline-flex;
  }

  .sidebar-label,
  .sidebar-note {
    display: none;
  }

  .leader-menu {
    display: flex;
    gap: 5px;
    margin-top: 11px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .leader-menu::-webkit-scrollbar {
    display: none;
  }

  .leader-menu button {
    flex: 0 0 auto;
    min-height: 40px;
    width: auto;
    padding: 0 12px;
    font-size: 12px;
  }

  .leader-menu button i {
    font-size: 17px;
  }

  .leader-main {
    padding: 0 14px 38px;
  }

  .leader-topbar {
    min-height: 64px;
  }

  .topbar-context small {
    display: none;
  }

  body[data-view="leaderView"] .page-title {
    align-items: flex-start;
    gap: 18px;
    min-height: 0;
    margin: 18px 0;
    padding: 23px 20px;
  }

  body[data-view="leaderView"] .page-title h1 {
    font-size: 34px;
  }

  body[data-view="leaderView"] .page-actions {
    justify-content: flex-start;
  }

  body[data-view="leaderView"] .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-view="leaderView"] .metric:nth-child(2) {
    border-right: 0;
  }

  body[data-view="leaderView"] .metric:nth-child(-n+2) {
    border-bottom: 1px solid #e1e9e3;
  }

  body[data-view="leaderView"] .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  body[data-view="leaderView"] .search-wrap,
  body[data-view="leaderView"] .search-wrap input {
    width: 100%;
  }

  body[data-view="leaderView"] .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .sidebar-brand b {
    font-size: 15px;
  }

  .sidebar-brand small {
    display: none;
  }

  .leader-session {
    gap: 6px;
    font-size: 12px;
  }

  .leader-session .text-button {
    margin-left: 0;
  }

  body[data-view="leaderView"] .metric {
    padding: 13px 13px;
  }

  body[data-view="leaderView"] .metric strong {
    font-size: 25px;
  }
}
