.admin-mode {
  --cp-navy: #10143e;
  --cp-muted: #64708b;
  --cp-teal: #00858e;
  background: #f5f9f9;
  color: #10143e;
}
.admin-mode :is(.card, .workspace-panel, .dash-panel, .section-card) {
  border: 1px solid #dfe8ec;
  border-radius: 12px;
  background: white;
  box-shadow: none;
}
.admin-mode :is(h1, h2, h3) {
  color: #10143e;
}
.admin-mode .sidebar {
  background: #0b2e3e;
}
.admin-mode .nav-item.active {
  background: #155967;
}
.admin-mode .nav-icon svg {
  width: 23px;
  height: 23px;
}
.admin-mode button.primary {
  background: #00858e;
  border-color: #00858e;
}
.admin-mode .cp-page {
  margin-top: 22px;
}
.admin-mode .admin-communication {
  margin: 18px 0;
}
.admin-communication p {
  color: #64708b;
}
.admin-inbox-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}
.admin-inbox-links > a {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dfe8ec;
  background: #eef8f8;
  border-radius: 9px;
  padding: 16px;
  color: #00858e;
  text-decoration: none;
}
.admin-inbox-links strong {
  font-size: 25px;
}
.admin-inbox-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #dfe8ec;
  text-decoration: none;
  color: #10143e;
}
.admin-inbox-row span {
  color: #64708b;
  font-size: 13px;
}
.admin-mode .cp-request-staff-tools {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}
.admin-mode .cp-internal-note {
  border: 1px solid #e6c87c;
  background: #fff8e7;
}
.admin-mode .cp-staff-only {
  display: block;
}
.admin-mode .cp-client-only {
  display: none !important;
}
.cp-add-company {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid #cce2e4;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
}
.cp-add-company h2 {
  margin: 0;
}
.cp-add-company p {
  margin: 4px 0 0;
}
.cp-add-company > button {
  flex-shrink: 0;
}
.registration-choices {
  display: grid;
  gap: 14px;
}
.registration-choices button {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 20px;
  border: 1px solid #cce2e4;
  background: #f5fbfb;
  border-radius: 10px;
  color: #10143e;
}
.registration-choices button strong {
  font-size: 18px;
}
.registration-choices button span {
  margin-top: 7px;
  color: #64708b;
}
@media (min-width: 1101px) {
  .client-mode .cp-home .cp-add-company {
    grid-column: 1/-1;
  }
  .admin-mode .header-search {
    width: min(280px, 22vw);
  }
}
@media (max-width: 767px) {
  .admin-mode .cp-page {
    font-size: 14px;
  }
  .admin-inbox-links {
    grid-template-columns: 1fr;
  }
  .admin-inbox-row {
    flex-direction: column;
    gap: 4px;
  }
  .cp-add-company {
    align-items: flex-start;
    padding: 14px;
  }
  .cp-add-company h2 {
    font-size: 17px;
  }
  .cp-add-company p {
    font-size: 13px;
  }
  .admin-mode .header-search {
    display: none;
  }
  .admin-mode .header .account-name {
    display: none;
  }
  .admin-mode .header .account {
    min-width: 37px;
  }
  .admin-mode .header .brand-logo {
    width: 190px;
    height: 54px;
  }
  .admin-mode .cp-conversation-page {
    padding-bottom: 30px;
  }
}
.admin-mode [hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .admin-mode .sidebar {
    background: white;
    border-top: 1px solid #dfe8ec;
  }
  .admin-mode #navigation .nav-item {
    color: #465775;
  }
  .admin-mode #navigation .nav-item.active {
    background: #e0f3f1;
    color: #00858e;
  }
  .admin-mode .sidebar.more-open {
    background: #fff;
  }
  .admin-mode .nav-count {
    background: #00858e;
    color: #fff;
  }
}
.admin-conversation .cp-page {
  margin-top: 0;
}
.admin-mode .cp-composer > label.cp-staff-only {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #795f1b;
}
/* Admin reference direction: navy navigation, gold actions, real operational data. */
.admin-mode {
  --aw-gold: #bd8618;
  --aw-navy: #061d32;
  background: #f4f7fb;
  color: #152541;
}
.admin-mode .header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 80px;
  background: white;
  gap: 18px;
}
.admin-mode .aw-toggle {
  border: 0;
  background: transparent;
  padding: 8px;
  color: #334965;
}
.admin-mode .aw-toggle svg,
.aw-message-link svg {
  width: 23px;
  height: 23px;
}
.admin-mode .aw-message-link {
  color: #334965;
}
.admin-mode #main {
  min-width: 0;
  padding: 24px;
}
.admin-mode .sidebar {
  background: #061d32;
  color: #b7c8db;
  padding: 14px 12px;
  width: 232px;
  flex-shrink: 0;
}
.aw-sidebar-brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 8px 0 18px;
  color: white;
  text-decoration: none;
}
.aw-sidebar-brand img {
  width: 185px;
  height: 72px;
  object-fit: contain;
  background: white;
  border-radius: 5px;
}
.aw-sidebar-brand span {
  font-size: 14px;
  margin-top: 8px;
}
.aw-nav-group > button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 9px 7px;
  background: transparent;
  border: 0;
  color: #acb9d1;
  text-align: left;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.6px;
}
.admin-mode .aw-nav-group .nav-item {
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  gap: 10px;
  min-height: 39px;
}
.admin-mode .nav-item.active {
  background: linear-gradient(120deg, #ad7610, #d49a22);
  color: white;
}
.admin-mode .nav-icon svg {
  width: 19px;
  height: 19px;
}
.aw-nav-group.aw-collapsed > a {
  display: none;
}
.aw-dashboard {
  max-width: 1700px;
  margin: 0 auto;
}
.aw-welcome {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.aw-welcome > div:first-child {
  flex: 1;
  min-width: 200px;
}
.aw-welcome h1 {
  font-size: 27px;
  margin: 5px 0 4px;
  line-height: 1.2;
}
.aw-welcome p {
  margin: 0;
  color: #697893;
  font-size: 14px;
}
.aw-welcome .eyebrow {
  color: #a67517;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.aw-welcome time {
  display: flex;
  gap: 12px;
  align-items: center;
  background: white;
  padding: 13px 18px;
  border: 1px solid #e7edf4;
  border-radius: 7px;
  font-size: 12px;
}
.aw-welcome time svg {
  width: 23px;
  height: 23px;
  color: #425878;
}
.aw-welcome time small {
  display: block;
  margin-top: 4px;
  color: #6c7f98;
}
.aw-add {
  position: relative;
  z-index: 14;
}
.aw-add summary {
  list-style: none;
  background: linear-gradient(120deg, #ac7613, #d49a23);
  padding: 13px 22px;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}
.aw-add > div {
  position: absolute;
  right: 0;
  top: 100%;
  width: 240px;
  background: white;
  border: 1px solid #dce4ed;
  box-shadow: 0 12px 30px #12263d24;
  display: grid;
  padding: 8px;
}
.aw-add button,
.aw-add a {
  display: flex;
  text-decoration: none;
  gap: 9px;
  align-items: center;
  border: 0;
  background: white;
  color: #203754;
  padding: 11px;
  text-align: left;
}
.aw-add svg {
  width: 20px;
  height: 20px;
}
.admin-mode .aw-scope {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  flex-wrap: wrap;
}
.aw-company-picker {
  position: relative;
  width: 310px;
  z-index: 15;
  max-width: 100%;
}
.aw-company-picker summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #687c9a;
  padding: 13px 16px;
  border-radius: 6px;
  background: white;
  font-size: 13px;
  cursor: pointer;
}
.aw-company-picker summary strong {
  flex: 1;
  overflow-wrap: anywhere;
}
.aw-company-picker svg {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}
.aw-company-picker > div {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  padding: 10px;
  background: white;
  border: 1px solid #dce4ed;
  box-shadow: 0 10px 25px #17324b24;
  border-radius: 6px;
}
.aw-company-picker label {
  font-size: 12px;
  display: grid;
  gap: 6px;
}
.aw-company-picker input {
  width: 100%;
  padding: 10px;
  border: 1px solid #dfe6ed;
  box-sizing: border-box;
}
.aw-company-options {
  max-height: 300px;
  overflow: auto;
  margin-top: 8px;
}
.aw-company-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 10px;
  border: 0;
  border-radius: 4px;
  background: white;
  text-align: left;
  color: #233751;
}
.aw-company-options button small {
  display: block;
  margin-top: 4px;
  color: #6c7b93;
}
.aw-company-options button[aria-current] {
  background: #e9f1ff;
}
.aw-viewing {
  font-size: 12px;
  color: #60738e;
}
.aw-scope > a {
  font-size: 12px;
  color: #087e8d;
}
.aw-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.aw-metric {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #e7edf4;
  background: white;
  border-radius: 8px;
  padding: 16px 13px;
  text-align: left;
  color: #162640;
  min-width: 0;
}
.aw-metric > span:last-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.aw-metric strong {
  font-size: 27px;
  line-height: 1;
}
.aw-metric small {
  font-size: 11px;
  line-height: 1.4;
}
.aw-metric > span > span {
  font-size: 10px;
  color: #76869c;
}
.aw-icon {
  display: grid;
  place-items: center;
  background: #edf5ff;
  border-radius: 10px;
  width: 42px;
  height: 46px;
  flex-shrink: 0;
  color: #1476d5;
}
.aw-icon svg {
  width: 27px;
  height: 27px;
}
.aw-metric.green .aw-icon {
  background: #e0f6ec;
  color: #009f70;
}
.aw-metric.amber .aw-icon {
  background: #fff4d8;
  color: #df9e00;
}
.aw-metric.red .aw-icon {
  background: #ffebee;
  color: #e9364b;
}
.aw-metric.purple .aw-icon {
  background: #eee6ff;
  color: #7b3ed5;
}
.aw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(225px, 26%);
  gap: 18px;
}
.aw-primary,
.aw-secondary {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.aw-charts,
.aw-work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.aw-card {
  border: 1px solid #e6edf4;
  background: white;
  border-radius: 9px;
  padding: 17px;
  min-width: 0;
}
.aw-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.aw-card h2 {
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
}
.aw-card-head a {
  font-size: 11px;
  text-decoration: none;
  color: #1684b1;
  white-space: nowrap;
}
.aw-empty {
  color: #74849c;
  font-size: 13px;
  padding: 15px 0;
}
.aw-compliance {
  display: flex;
  align-items: center;
  gap: 22px;
}
.aw-donut {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--aw-ring);
  padding: 18px;
  box-sizing: border-box;
}
.aw-donut > div {
  height: 100%;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.aw-donut strong {
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
  color: #071d3a;
}
.aw-donut span {
  display: block;
  width: 58px;
  max-width: calc(100% - 16px);
  font-size: 10px;
  line-height: 1.15;
  margin-top: 5px;
  text-align: center;
  text-wrap: balance;
}
.aw-compliance dl {
  flex: 1;
  margin: 0;
}
.aw-compliance dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0;
}
.aw-compliance dt {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.aw-compliance dd {
  font-size: 12px;
  margin: 0;
  font-weight: 700;
}
.aw-compliance i,
.aw-event > i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.aw-compliance .green {
  background: #00a777;
}
.aw-compliance .amber {
  background: #f5b621;
}
.aw-compliance .red {
  background: #ee424f;
}
.aw-compliance .grey {
  background: #aeb8c7;
}
.aw-caption {
  font-size: 10px;
  color: #718098;
  line-height: 1.5;
  margin: 12px 0 0;
}
.aw-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  overflow-x: auto;
  min-height: 170px;
  padding-top: 10px;
}
.aw-bars > div {
  flex: 1;
  min-width: 45px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
}
.aw-bars strong {
  font-size: 12px;
}
.aw-bars span {
  width: 80%;
  border-radius: 4px 4px 0 0;
}
.aw-bars small {
  font-size: 10px;
  max-width: 90px;
  overflow-wrap: anywhere;
}
.aw-client-row,
.aw-register-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #edf1f5;
  padding: 12px 0;
  color: #172b49;
  text-decoration: none;
  font-size: 12px;
}
.aw-grow {
  flex: 1;
  min-width: 0;
}
.aw-grow strong {
  display: block;
  overflow-wrap: anywhere;
}
.aw-grow small {
  display: block;
  color: #78869d;
  margin-top: 4px;
  line-height: 1.4;
}
.aw-avatar {
  width: 35px;
  height: 35px;
  background: #e8f3fc;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #215f99;
  font-weight: bold;
  flex-shrink: 0;
}
.aw-health {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
  font-weight: bold;
}
.aw-health i {
  width: 65px;
  height: 7px;
  border-radius: 8px;
  background: #edf2f6;
  overflow: hidden;
}
.aw-health b {
  display: block;
  background: #0aa580;
  height: 100%;
  border-radius: 8px;
}
.aw-badge {
  font-size: 10px;
  display: inline-block;
  border-radius: 30px;
  padding: 6px 10px;
  white-space: nowrap;
}
.aw-badge.green {
  color: #00835f;
  background: #e5f7ef;
}
.aw-badge.amber {
  color: #a77814;
  background: #fff6df;
}
.aw-badge.red {
  color: #cc2438;
  background: #ffebef;
}
.aw-badge.grey {
  color: #61728a;
  background: #edf1f5;
}
.aw-next {
  font-size: 10px;
  color: #74839a;
}
.aw-register-row > svg {
  width: 23px;
  height: 23px;
  color: #1487a1;
  flex-shrink: 0;
}
.aw-register-row > small {
  font-size: 10px;
  color: #74849c;
}
.aw-event {
  border: 0;
  border-top: 1px solid #edf1f5;
  display: flex;
  width: 100%;
  background: white;
  text-align: left;
  gap: 12px;
  padding: 13px 0;
  color: #1c2f4e;
}
.aw-event > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.aw-event strong {
  font-size: 12px;
  display: block;
  line-height: 1.4;
}
.aw-event small {
  display: block;
  color: #74839b;
  font-size: 10px;
  margin-top: 5px;
}
.aw-event .blue {
  background: #1585ef;
}
.aw-event .grey {
  background: #aeb8c7;
}
.aw-deadline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: #1b314f;
  text-decoration: none;
  font-size: 12px;
}
.aw-date {
  width: 40px;
  flex-shrink: 0;
  background: #fff4d9;
  border-radius: 6px;
  padding: 5px;
  text-align: center;
  text-transform: uppercase;
  font-size: 9px;
  color: #a16b10;
}
.aw-date strong {
  font-size: 21px;
  display: block;
}
.aw-date.red {
  background: #ffeaee;
  color: #d92e46;
}
.aw-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.aw-quick > button,
.aw-quick > a {
  border: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border-radius: 6px;
  background: #eef7f6;
  padding: 12px 8px;
  color: #087c76;
  font-size: 11px;
  text-align: center;
}
.aw-quick svg {
  width: 23px;
  height: 23px;
}
.aw-quick > :nth-child(3n + 1) {
  background: #fff5df;
  color: #97680f;
}
.aw-quick > :nth-child(3n) {
  background: #f1ecfc;
  color: #7942b7;
}
.aw-queue {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #00838a;
  text-decoration: none;
}
.aw-queue svg {
  width: 24px;
  height: 24px;
}
.aw-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  max-width: 100%;
  margin-bottom: 18px;
  border-bottom: 1px solid #dce4ef;
}
.aw-tabs a {
  white-space: nowrap;
  text-decoration: none;
  color: #617694;
  padding: 14px 9px;
  font-size: 13px;
}
.aw-tabs a[aria-current] {
  border-bottom: 3px solid #bb8519;
  color: #9b6b0d;
}
.aw-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 20px;
}
.aw-profile-grid small {
  display: block;
  color: #74859b;
  margin-bottom: 6px;
}
.aw-profile-grid strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.service-request-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-request-form > p {
  margin: 0;
  color: #64758d;
  font-size: 13px;
}
.service-request-catalogue {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.service-request-catalogue fieldset {
  border: 1px solid #dbe7eb;
  border-radius: 9px;
  margin: 0;
  padding: 12px;
  min-width: 0;
}
.service-request-catalogue legend {
  color: #007f88;
  font-size: 14px;
  font-weight: 700;
  padding: 0 5px;
}
.service-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px;
  border-radius: 5px;
  color: #263c55;
  font-size: 14px;
  cursor: pointer;
}
.service-choice:has(input:checked) {
  background: #e0f4f0;
}
.service-choice input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
#dialog:has(.service-request-form) {
  width: min(960px, 94vw);
  max-height: 92dvh;
}
.service-request-form [hidden],
[data-install-card][hidden] {
  display: none !important;
}
@media (min-width: 1101px) {
  .admin-mode .header {
    padding-left: 250px;
  }
  .admin-mode .header .brand {
    display: none;
  }
  .admin-mode .header-search {
    margin-right: auto;
    width: min(500px, 38vw);
  }
  .admin-mode .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
    z-index: 40;
    box-sizing: border-box;
  }
  .admin-mode .workspace {
    padding-left: 232px;
  }
  .admin-mode .sidebar > .eyebrow {
    display: none;
  }
  .admin-mode .sidebar-footer {
    display: none;
  }
  .aw-sidebar-collapsed .sidebar {
    display: none;
  }
  .aw-sidebar-collapsed .workspace {
    padding-left: 0;
  }
  .aw-sidebar-collapsed .header {
    padding-left: 24px;
  }
}
@media (min-width: 1101px) and (max-width: 1500px) {
  .aw-layout {
    grid-template-columns: minmax(0, 1fr) 235px;
  }
  .aw-charts {
    grid-template-columns: 1fr;
  }
  .aw-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .aw-work {
    grid-template-columns: 1fr;
  }
  .aw-next {
    display: none;
  }
}
@media (max-width: 1100px) {
  .admin-mode #main {
    padding: 20px;
    padding-bottom: 100px;
  }
  .admin-mode .header {
    gap: 12px;
    padding: 10px 18px;
  }
  .admin-mode .header .brand-logo {
    width: 160px;
    height: 54px;
  }
  .admin-mode .brand span {
    display: none;
  }
  .admin-mode .mobile-menu-trigger {
    display: none;
  }
  .admin-mode .sidebar:not(.more-open) {
    width: 100%;
    padding: 0 6px;
    box-sizing: border-box;
    background: white;
  }
  .admin-mode .sidebar:not(.more-open) #navigation {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
  }
  .admin-mode .sidebar:not(.more-open) .aw-nav-group {
    display: contents;
  }
  .admin-mode .sidebar:not(.more-open) .aw-nav-group > button,
  .admin-mode .sidebar:not(.more-open) .aw-sidebar-brand,
  .admin-mode .sidebar:not(.more-open) .sidebar > .eyebrow {
    display: none;
  }
  .admin-mode
    .sidebar:not(.more-open)
    #navigation
    .nav-item:not(.mobile-primary):not(.mobile-more) {
    display: none !important;
  }
  .admin-mode .sidebar:not(.more-open) #navigation .mobile-primary,
  .admin-mode .sidebar:not(.more-open) #navigation .mobile-more {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex: 1;
    max-width: 20%;
    min-width: 0;
    gap: 4px;
    padding: 10px 3px;
    font-size: 11px;
    min-height: 56px;
    box-sizing: border-box;
  }
  .admin-mode .sidebar:not(.more-open) .nav-item.active {
    background: #fff2cf;
    color: #9b6a0b;
  }
  .admin-mode .sidebar:not(.more-open) .nav-icon svg {
    width: 24px;
    height: 24px;
  }
  .admin-mode .sidebar.more-open {
    position: fixed;
    inset: 80px 0 0;
    width: 100%;
    height: auto;
    overflow: auto;
    padding: 20px 20px 100px;
    z-index: 29;
    background: #061d32;
  }
  .admin-mode .sidebar.more-open #navigation {
    display: block;
  }
  .admin-mode .sidebar.more-open .nav-item {
    color: #c7d6e7;
  }
  .admin-mode .sidebar.more-open .aw-nav-group > a {
    display: flex;
  }
  .admin-mode .sidebar.more-open .mobile-more {
    position: fixed;
    right: 15px;
    bottom: 15px;
    background: #bd8618;
    color: white;
    z-index: 50;
  }
  .aw-layout {
    grid-template-columns: 1fr;
  }
  .aw-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .aw-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .aw-next {
    display: none;
  }
  .aw-compliance {
    gap: 15px;
  }
  .aw-donut {
    width: 140px;
    height: 140px;
  }
}
@media (max-width: 650px) {
  .admin-mode #main {
    padding: 18px 13px 105px;
  }
  .admin-mode .header {
    gap: 10px;
    height: 73px;
    padding: 7px 10px;
  }
  .admin-mode .header .brand-logo {
    width: 158px;
    height: 50px;
  }
  .admin-mode .header .account {
    min-width: 34px;
  }
  .admin-mode .header-notifications svg {
    width: 23px;
  }
  .aw-message-link {
    display: none;
  }
  .aw-welcome {
    gap: 12px;
  }
  .aw-welcome h1 {
    font-size: 23px;
  }
  .aw-welcome > div:first-child {
    min-width: 150px;
  }
  .aw-welcome p {
    font-size: 12px;
    line-height: 1.5;
  }
  .aw-welcome time {
    padding: 9px;
    font-size: 10px;
    gap: 7px;
  }
  .aw-welcome time svg {
    width: 18px;
    height: 18px;
  }
  .aw-welcome .eyebrow {
    font-size: 8px;
  }
  .aw-add summary {
    padding: 10px 15px;
    font-size: 12px;
  }
  .aw-company-picker {
    width: 100%;
  }
  .aw-scope .aw-viewing {
    font-size: 11px;
  }
  .aw-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .aw-metric {
    padding: 14px 10px;
    gap: 10px;
  }
  .aw-icon {
    width: 37px;
    height: 42px;
  }
  .aw-metric strong {
    font-size: 25px;
  }
  .aw-metric small {
    font-size: 11px;
  }
  .aw-metric > span > span {
    font-size: 9px;
  }
  .aw-charts,
  .aw-work {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .aw-charts > .aw-card:nth-child(2) {
    display: none;
  }
  .aw-card {
    padding: 14px;
  }
  .aw-card h2 {
    font-size: 16px;
  }
  .aw-layout,
  .aw-primary {
    gap: 14px;
  }
  .aw-secondary {
    display: flex;
    gap: 14px;
  }
  .aw-compliance {
    justify-content: space-between;
    gap: 20px;
  }
  .aw-compliance dt {
    font-size: 11px;
  }
  .aw-compliance dd {
    font-size: 12px;
  }
  .aw-donut {
    width: 135px;
    height: 135px;
    padding: 16px;
  }
  .aw-donut strong {
    font-size: 29px;
  }
  .aw-caption {
    font-size: 10px;
  }
  .aw-client-row {
    gap: 8px;
    font-size: 12px;
    flex-wrap: wrap;
  }
  .aw-avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .aw-health {
    min-width: 75px;
    gap: 6px;
    font-size: 11px;
  }
  .aw-health i {
    width: 40px;
  }
  .aw-client-row .aw-grow {
    min-width: 100px;
  }
  .aw-badge {
    font-size: 9px;
    padding: 5px 8px;
  }
  .aw-register-row {
    flex-wrap: wrap;
    gap: 9px;
  }
  .aw-register-row .aw-grow {
    min-width: 130px;
  }
  .aw-register-row > small {
    font-size: 10px;
  }
  .aw-profile-grid {
    grid-template-columns: 1fr;
  }
  .service-request-catalogue {
    grid-template-columns: 1fr;
  }
  #dialog:has(.service-request-form) {
    width: 100vw;
    height: calc(100dvh - 18px);
    max-height: calc(100dvh - 18px);
    max-width: 100vw;
    margin: 9px 0;
    padding: 20px 16px;
    box-sizing: border-box;
    border-radius: 12px;
  }
  .service-request-form .cw-form-actions {
    position: sticky;
    bottom: -20px;
    background: white;
    border-top: 1px solid #e3ecef;
    padding: 13px 0;
  }
  .service-request-form .cw-form-actions button {
    width: 100%;
    min-height: 46px;
  }
}
@media (max-width: 360px) {
  .admin-mode .header .brand-logo {
    width: 125px;
  }
  .aw-compliance {
    gap: 10px;
  }
  .aw-donut {
    width: 112px;
    height: 112px;
    padding: 13px;
  }
  .aw-donut strong {
    font-size: 25px;
  }
  .aw-client-row .aw-grow {
    min-width: 140px;
  }
  .aw-health {
    margin-left: 38px;
  }
  .aw-welcome time {
    font-size: 9px;
  }
  .aw-welcome h1 {
    font-size: 21px;
  }
}
.admin-mode .sidebar {
  max-height: none;
  height: 100dvh;
}
.aw-admin-tools {
  margin-top: 20px;
  border: 1px solid #dde6ef;
  border-radius: 8px;
  padding: 14px;
  background: white;
  font-size: 12px;
  color: #6a7c95;
}
.aw-admin-tools > summary {
  cursor: pointer;
}
@media (min-width: 1400px) {
  .aw-charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .aw-compliance {
    gap: 12px;
  }
  .aw-donut {
    width: 120px;
    height: 120px;
    padding: 14px;
  }
  .aw-compliance dt {
    font-size: 10px;
  }
  .aw-compliance dd {
    font-size: 11px;
  }
}
@media (min-width: 1101px) {
  .admin-mode #navigation .nav-item {
    margin: 1px 0;
  }
  .admin-mode .sidebar {
    padding-top: 10px;
  }
}
@media (max-width: 1100px) {
  .admin-mode .sidebar:not(.more-open) {
    height: auto;
    max-height: 90px;
  }
  .admin-mode .sidebar.more-open {
    height: auto;
  }
}
@media (max-width: 1100px) {
  .admin-mode .sidebar:not(.more-open) #navigation .nav-item.active {
    background: #fff2cf !important;
    color: #94620a !important;
  }
  .admin-mode .sidebar:not(.more-open) a[href="#requests"] > span:last-child,
  .admin-mode .sidebar:not(.more-open) a[href="#tenders"] > span:last-child {
    font-size: 0;
  }
  .admin-mode .sidebar:not(.more-open) a[href="#requests"] > span:last-child::after {
    content: "Requests";
    font-size: 11px;
  }
  .admin-mode .sidebar:not(.more-open) a[href="#tenders"] > span:last-child::after {
    content: "Tenders";
    font-size: 11px;
  }
}
/* Full industry names and bars share one contained, compact row. */
.aw-industry-bars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  overflow: visible;
  align-items: center;
  min-height: 0;
  padding-top: 0;
}
.aw-industry-bars > button {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(45px, 1fr) 20px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  min-height: 36px;
  padding: 6px 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: white;
  color: #263e5b;
  text-align: left;
  cursor: pointer;
}
.aw-industry-bars > button:hover {
  background: #f4f8fc;
  border-color: #d5e3ee;
}
.aw-industry-bars > button:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}
.aw-industry-bars .aw-industry-track {
  display: block;
  width: 100%;
  height: 8px;
  background: #edf1f6;
  border-radius: 6px;
  overflow: hidden;
}
.aw-industry-track i {
  display: block;
  height: 100%;
  border-radius: 6px;
}
.aw-industry-bars small {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  max-width: 100%;
  min-height: 0;
  overflow-wrap: normal;
  padding-left: 13px;
  position: relative;
}
.aw-industry-bars small::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--industry-color);
}
.aw-industry-bars strong {
  font-size: 12px;
  text-align: right;
}
.aw-charts > .aw-card:first-child {
  display: flex;
  flex-direction: column;
}
.aw-charts > .aw-card:first-child .aw-compliance {
  flex: 1;
}
@media (max-width: 650px) {
  .aw-charts > .aw-card:nth-child(2) {
    display: block;
  }
  .aw-industry-bars small {
    font-size: 12px;
  }
  .aw-industry-bars > button {
    min-height: 40px;
    gap: 10px;
  }
}
@media (min-width: 1101px) {
  body.admin-mode .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    max-height: none;
  }
}
@media (min-width: 1400px) {
  .aw-charts .aw-donut {
    width: 170px;
    height: 170px;
    padding: 20px;
  }
}
@media (min-width: 651px) {
  .aw-industry-bars > button {
    min-height: 28px;
    padding: 4px;
  }
}
/* Keep the tablet navigation out of the content flow, including the 1051–1100px range. */
@media (max-width: 1100px) {
  body.admin-mode .workspace {
    display: block;
    padding-left: 0;
    width: 100%;
  }
  body.admin-mode .sidebar:not(.more-open) {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 40vh;
    overflow-x: hidden;
    z-index: 30;
    flex: none;
  }
}
