body.customer-360-route .content-area > :not(#customer-360-page) {
  display: none !important;
}

.customer-360-page {
  min-height: 100%;
  color: #073f4d;
}

.customer-360-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.customer-360-header h1 {
  margin: 4px 0;
  color: #073f4d;
  font-size: 34px;
  line-height: 1.05;
}

.customer-360-header p {
  margin: 0;
  color: #557078;
  font-size: 14px;
}

.customer-360-refresh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #cfe0dd;
  border-radius: 9px;
  background: #fff;
  color: #0e4b56;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.customer-360-refresh:hover {
  border-color: #06a77d;
  color: #007a55;
}

.customer-360-shell {
  display: grid;
  grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
  min-height: calc(100vh - 164px);
  overflow: hidden;
  border: 1px solid #cfdfdc;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(7, 63, 77, 0.07);
}

.customer-360-directory {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid #dbe7e4;
  background: #f5f9f7;
}

.customer-360-search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px;
  padding: 0 11px;
  border: 1px solid #c9dcd7;
  border-radius: 10px;
  background: #fff;
  color: #6b858b;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.customer-360-search:focus-within {
  border-color: #06a77d;
  box-shadow: 0 0 0 3px rgba(6, 167, 125, 0.12);
}

.customer-360-search input {
  min-width: 0;
  min-height: 42px;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #073f4d;
  font: inherit;
  font-size: 12px;
}

.customer-360-search kbd {
  padding: 3px 6px;
  border: 1px solid #dce7e4;
  border-radius: 5px;
  background: #f7faf9;
  color: #789096;
  font-size: 9px;
  white-space: nowrap;
}

.customer-360-directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 10px;
  color: #234f58;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-360-directory-head span {
  display: inline-flex;
  min-width: 25px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #def3ec;
  color: #007a55;
  font-size: 10px;
}

.customer-360-customer-list {
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid #dbe7e4;
}

.customer-360-customer {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 15px;
  width: 100%;
  min-height: 74px;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 0;
  border-bottom: 1px solid #e0ebe8;
  background: transparent;
  color: #073f4d;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 130ms ease, box-shadow 130ms ease;
}

.customer-360-customer:hover {
  background: #eaf5f1;
}

.customer-360-customer.is-active {
  position: relative;
  background: linear-gradient(90deg, #d9f2e8, #eaf8f3);
  box-shadow: inset 4px 0 #07885c;
}

.customer-360-customer-avatar,
.customer-360-hero-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bce2d4;
  border-radius: 11px;
  background: #e5f7f0;
  color: #007a55;
  font-weight: 850;
}

.customer-360-customer-avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.customer-360-customer-copy {
  display: block;
  min-width: 0;
}

.customer-360-customer-copy strong,
.customer-360-customer-copy small,
.customer-360-customer-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-360-customer-copy strong {
  font-size: 12px;
  font-weight: 800;
}

.customer-360-customer-copy small {
  margin-top: 3px;
  color: #56747b;
  font-size: 10px;
}

.customer-360-customer-copy em {
  margin-top: 3px;
  color: #82969b;
  font-size: 9px;
  font-style: normal;
}

.customer-360-workspace {
  min-width: 0;
  background: #f8fbfa;
}

.customer-360-empty,
.customer-360-loading {
  display: flex;
  min-height: 560px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #789096;
  text-align: center;
}

.customer-360-empty > svg {
  margin-bottom: 14px;
  color: #26aa83;
}

.customer-360-empty strong,
.customer-360-loading strong {
  color: #174f46;
  font-size: 16px;
}

.customer-360-empty p,
.customer-360-loading small {
  margin: 6px 0 0;
  font-size: 12px;
}

.customer-360-loading span,
.customer-360-list-loading span {
  width: 22px;
  height: 22px;
  margin-bottom: 12px;
  border: 3px solid #d8ebe5;
  border-top-color: #06a77d;
  border-radius: 50%;
  animation: customer-360-spin 800ms linear infinite;
}

@keyframes customer-360-spin {
  to { transform: rotate(360deg); }
}

.customer-360-list-loading,
.customer-360-list-empty,
.customer-360-list-error {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  color: #71888e;
  font-size: 11px;
  text-align: center;
}

.customer-360-list-loading span {
  width: 18px;
  height: 18px;
  margin-bottom: 4px;
}

.customer-360-list-empty strong,
.customer-360-list-error strong {
  color: #174f46;
  font-size: 12px;
}

.customer-360-hero {
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  background:
    radial-gradient(circle at 86% 15%, rgba(91, 235, 173, 0.22), transparent 28%),
    linear-gradient(118deg, #103f34, #17674d 70%, #0a8d62);
  color: #fff;
}

.customer-360-hero-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.customer-360-hero-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 21px;
}

.customer-360-profile-label {
  display: block;
  margin-bottom: 4px;
  color: #bff3df;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.customer-360-hero h2 {
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 25px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-360-hero p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 0;
  overflow: hidden;
  color: #d9ebe5;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-360-hero-tags {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.customer-360-hero-summary {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
}

.customer-360-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
  color: #e8fff5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.customer-360-account.is-missing {
  border-color: rgba(255, 211, 105, 0.34);
  background: rgba(129, 82, 0, 0.24);
  color: #ffe3a0;
}

.customer-360-hero-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.customer-360-hero-tags .is-active {
  border-color: rgba(111, 244, 193, 0.28);
  background: rgba(45, 211, 146, 0.17);
  color: #caffeb;
}

.customer-360-hero-tags .is-inactive {
  background: rgba(255, 113, 132, 0.17);
  color: #ffdce2;
}

.customer-360-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  padding: 11px 12px;
  border-bottom: 1px solid #d8e6e2;
  background: #edf5f2;
}

.customer-360-metric {
  display: flex;
  min-width: 0;
  min-height: 78px;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #d6e4e0;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.customer-360-metric:hover {
  border-color: var(--metric-colour);
  box-shadow: 0 7px 18px rgba(7, 63, 77, 0.09);
  transform: translateY(-1px);
}

.customer-360-metric-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--metric-bg);
  color: var(--metric-colour);
}

.customer-360-metric-icon--fault,
.customer-360-metric-icon--broadband,
.customer-360-metric-icon--phone,
.customer-360-metric-icon--install,
.customer-360-metric-icon--calendar {
  overflow: hidden;
  background-image: url("/images/customer-360-summary-icons.png");
  background-repeat: no-repeat;
  background-size: 170px 57px;
  background-position: var(--customer-360-summary-icon-x) var(--customer-360-summary-icon-y, -11px);
  box-shadow: inset 0 0 0 1px rgba(7, 63, 77, 0.035);
}

.customer-360-metric-icon--fault svg,
.customer-360-metric-icon--broadband svg,
.customer-360-metric-icon--phone svg,
.customer-360-metric-icon--install svg,
.customer-360-metric-icon--calendar svg {
  display: none;
}

.customer-360-metric-icon--fault {
  --customer-360-summary-icon-x: 0px;
}

.customer-360-metric-icon--broadband {
  --customer-360-summary-icon-x: -34px;
}

.customer-360-metric-icon--phone {
  --customer-360-summary-icon-x: -68px;
}

.customer-360-metric-icon--install {
  --customer-360-summary-icon-x: -102px;
}

.customer-360-metric-icon--calendar {
  --customer-360-summary-icon-x: -135px;
  --customer-360-summary-icon-y: -10px;
}

.customer-360-metric-copy {
  display: block;
  min-width: 0;
  flex: 1;
}

.customer-360-metric small,
.customer-360-metric strong,
.customer-360-metric em {
  display: block;
}

.customer-360-metric-arrow {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--metric-colour);
  opacity: 0.55;
}

.customer-360-metric small {
  overflow: hidden;
  color: #57747b;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-360-metric strong {
  margin-top: 2px;
  color: #073f4d;
  font-size: 20px;
  line-height: 1;
}

.customer-360-metric em {
  margin-top: 3px;
  overflow: hidden;
  color: #81959a;
  font-size: 8px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-360-metric--green { --metric-bg: #def5eb; --metric-colour: #07885c; }
.customer-360-metric--red { --metric-bg: #ffe9ee; --metric-colour: #d73761; }
.customer-360-metric--blue { --metric-bg: #e3f3f8; --metric-colour: #178caf; }
.customer-360-metric--purple { --metric-bg: #efe9ff; --metric-colour: #7856d8; }
.customer-360-metric--orange { --metric-bg: #fff0df; --metric-colour: #d87519; }
.customer-360-metric--amber { --metric-bg: #fff4d9; --metric-colour: #a86b00; }

.customer-360-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 9px 12px;
  border-bottom: 1px solid #d8e6e2;
  background: #fff;
}

.customer-360-tabs button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #607b81;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.customer-360-tabs button:hover,
.customer-360-tabs button.is-active {
  border-color: #c9e5db;
  background: #eaf7f2;
  color: #007a55;
}

.customer-360-tabs button svg {
  opacity: 0.72;
}

.customer-360-tab-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  font-style: normal;
}

.customer-360-tab-icon svg {
  display: none;
}

.customer-360-tab-icon--overview {
  background-image: url("/images/c360-tab-overview.png");
}

.customer-360-tab-icon--faults {
  background-image: url("/images/c360-tab-faults.png");
}

.customer-360-tab-icon--provisioning {
  background-image: url("/images/c360-tab-provisioning.png");
}

.customer-360-tab-icon--installs {
  background-image: url("/images/c360-tab-installs.png");
}

.customer-360-tab-icon--schedule {
  background-image: url("/images/c360-tab-schedule.png");
}

.customer-360-tab-icon--sales {
  background-image: url("/images/c360-tab-sales-orders.png");
}

.customer-360-tabs b {
  display: inline-flex;
  min-width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f2ef;
  font-size: 8px;
}

.customer-360-tab-view {
  padding: 12px;
}

.customer-360-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-360-panel {
  overflow: hidden;
  border: 1px solid #d6e4e0;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(7, 63, 77, 0.035);
}

.customer-360-panel > header {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid #dbe7e4;
  background: #f4f8f6;
}

.customer-360-panel > header span,
.customer-360-panel > header h3 {
  display: block;
}

.customer-360-panel > header span {
  color: #07885c;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.customer-360-panel > header h3 {
  margin: 2px 0 0;
  color: #073f4d;
  font-size: 14px;
}

.customer-360-panel > header > b {
  display: inline-flex;
  min-width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfe0dc;
  border-radius: 8px;
  background: #fff;
  color: #007a55;
  font-size: 10px;
}

.customer-360-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.customer-360-details-grid > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e0eae7;
  border-radius: 8px;
  background: #fbfdfc;
}

.customer-360-details-grid .is-wide {
  grid-column: 1 / -1;
}

.customer-360-details-grid small,
.customer-360-details-grid strong {
  display: block;
}

.customer-360-details-grid small {
  margin-bottom: 4px;
  color: #789096;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-360-details-grid strong {
  color: #164f47;
  font-size: 10px;
  line-height: 1.45;
}

.customer-360-sites {
  padding: 0 12px 12px;
}

.customer-360-sites h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 7px;
  color: #234f58;
  font-size: 10px;
  text-transform: uppercase;
}

.customer-360-sites h4 span {
  color: #07885c;
}

.customer-360-sites article {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid #e2ebe9;
}

.customer-360-sites article > span {
  color: #06a77d;
}

.customer-360-sites article > div {
  min-width: 0;
  flex: 1;
}

.customer-360-sites article strong,
.customer-360-sites article small {
  display: block;
}

.customer-360-sites article strong {
  font-size: 10px;
}

.customer-360-sites article small {
  margin-top: 2px;
  overflow: hidden;
  color: #72898f;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-360-sites article em {
  padding: 4px 6px;
  border-radius: 999px;
  background: #def3ec;
  color: #007a55;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.customer-360-timeline {
  max-height: 510px;
  overflow-y: auto;
  padding: 4px 12px;
}

.customer-360-activity-empty {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 28px;
  background: radial-gradient(circle at center, #f3fbf8 0, #fff 62%);
  text-align: left;
}

.customer-360-activity-empty > span {
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #def5eb;
  color: #07885c;
}

.customer-360-activity-empty strong {
  color: #174f46;
  font-size: 13px;
}

.customer-360-activity-empty p {
  max-width: 290px;
  margin: 4px 0 0;
  color: #71878d;
  font-size: 10px;
  line-height: 1.45;
  white-space: normal;
}

.customer-360-timeline article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #e5edeb;
}

.customer-360-timeline-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #edf5f2;
  color: #07885c;
}

.customer-360-timeline-icon--red { background: #ffe9ee; color: #d73761; }
.customer-360-timeline-icon--blue { background: #e3f3f8; color: #178caf; }
.customer-360-timeline-icon--purple { background: #efe9ff; color: #7856d8; }
.customer-360-timeline-icon--orange,
.customer-360-timeline-icon--amber { background: #fff0df; color: #d87519; }
.customer-360-timeline-icon--green { background: #def5eb; color: #07885c; }

.customer-360-timeline strong,
.customer-360-timeline p {
  display: block;
  margin: 0;
}

.customer-360-timeline strong {
  font-size: 10px;
}

.customer-360-timeline p {
  margin-top: 2px;
  overflow: hidden;
  color: #71878d;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-360-timeline time {
  color: #82969b;
  font-size: 8px;
  white-space: nowrap;
}

.customer-360-warning {
  margin-bottom: 10px;
  padding: 9px 11px;
  border: 1px solid #efd9aa;
  border-radius: 8px;
  background: #fff8e9;
  color: #8c6107;
  font-size: 9px;
  font-weight: 700;
}

.customer-360-stack {
  display: grid;
  gap: 12px;
}

.customer-360-record-table {
  overflow-x: auto;
}

.customer-360-record-head,
.customer-360-record-table > article {
  display: grid;
  grid-template-columns: 0.82fr 1.7fr 0.9fr 0.9fr 0.9fr;
  min-width: 700px;
  align-items: center;
  gap: 10px;
}

.customer-360-record-head {
  min-height: 32px;
  padding: 0 13px;
  background: #174f46;
  color: #fff;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.customer-360-record-table > article {
  min-height: 54px;
  padding: 8px 13px;
  border-bottom: 1px solid #e1ebe8;
  color: #315e65;
  font-size: 9px;
}

.customer-360-record-table > article:nth-child(odd) {
  background: #f7faf9;
}

.customer-360-record-table > article > strong,
.customer-360-record-table > article span > b {
  color: #073f4d;
  font-size: 10px;
}

.customer-360-record-table > article span > b,
.customer-360-record-table > article span > small,
.customer-360-record-table > article time > small {
  display: block;
}

.customer-360-record-table > article span > small,
.customer-360-record-table > article time > small {
  margin-top: 2px;
  overflow: hidden;
  color: #7d9297;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-360-status {
  display: inline-flex;
  max-width: 100%;
  min-height: 23px;
  align-items: center;
  padding: 0 8px;
  overflow: hidden;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-360-status--green { background: #ddf4ea; color: #007a55; }
.customer-360-status--red { background: #ffe7ed; color: #c52951; }
.customer-360-status--blue { background: #e3f2f8; color: #137e9d; }
.customer-360-status--amber { background: #fff1d3; color: #936000; }

.customer-360-table-empty {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  color: #5b7c78;
  font-size: 10px;
}

.customer-360-table-empty svg {
  color: #18a77c;
}

@media (max-width: 1280px) {
  .customer-360-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-360-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .customer-360-shell {
    grid-template-columns: 1fr;
  }

  .customer-360-directory {
    max-height: 330px;
    border-right: 0;
    border-bottom: 1px solid #dbe7e4;
  }

  .customer-360-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .customer-360-header,
  .customer-360-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-360-header h1 {
    font-size: 28px;
  }

  .customer-360-hero-tags {
    align-self: flex-start;
  }

  .customer-360-hero-summary {
    align-items: flex-start;
  }

  .customer-360-metrics {
    grid-template-columns: 1fr;
  }

  .customer-360-details-grid {
    grid-template-columns: 1fr;
  }

  .customer-360-details-grid .is-wide {
    grid-column: auto;
  }
}
