:root {
  --nav: #122640;
  --nav2: #172e4e;
  --ink: #172841;
  --soft: #63738b;
  --line: #e2e8f0;
  --page: #f2f5fa;
  --white: #fff;
  --red: #f0453a;
  --green: #15995f;
  --amber: #df8b13;
  --orange: #f16822;
  --blue: #3183cb;
  --muted: #9ca9bb;
  --shadow: 0 4px 22px rgba(26,43,73,.045);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size: 14px;
}

button,select,input,textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,select:focus-visible,input:focus-visible,.nav:focus-visible {
  outline: 3px solid #8bc5f5;
  outline-offset: 2px;
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

a {
  color: inherit;
}

.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 235px;
  min-width: 235px;
  /* background: linear-gradient(155deg,#0e233e,#193555); */
  background: linear-gradient(155deg,#f16822,#f16822);
  color: #f5f8ff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.brand {
  padding: 31px 23px 23px;
  background: #2d286e;
}

.brand-logo {
  display: inline-block;
  border-left: 6px solid var(--red);
  padding: 5px 2px 4px 10px;
  font-weight: 850;
  font-size: 21px;
  letter-spacing: -.8px;
  color: #fff;
}

.brand-sub {
  font-size: 10px;
  color: #cad5e4;
  margin: 1px 0 0 14px;
}

.brand-rule {
  border-bottom: 1px solid rgba(255,255,255,.14);
  margin: 0 20px 20px;
}

.group-label {
  font-size: 12px;
  letter-spacing: 1.7px;
  color: #ffffff;
  text-transform: uppercase;
  margin: 10px 22px;
}

.nav {
  width: calc(100% - 26px);
  margin: 3px 13px;
  border: 0;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #ffffff;
  background: transparent;
  text-align: left;
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 550;
  transition: background .15s;
}

.nav .ni {
  font-size: 18px;
  width: 19px;
  text-align: center;
  filter: grayscale(1);
}

.nav:hover {
  /* background: #ffffff12; */
  background: #2d286e99;
}

.nav.active {
  background: #2d286e;
  color: #fff;
  box-shadow: 0 3px 10px #00000010;
}

.nav.active .ni {
  filter: none;
}

.sidebar-bottom {
  background: #2d286e;
  margin-top: auto;
  padding: 24px 20px;
  color: #b8c9e2;
  font-size: 11px;
  border-top: 1px solid #ffffff22;
  line-height: 1.65;
}

.sidebar-bottom b {
  color: #fff;
  font-size: 15px;
}

.red {
  color: #ff6b5f;
}

.main {
  min-width: 0;
  flex: 1;
}

.topbar {
  height: 68px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 14px;
}

.breadcrumbs {
  font-size: 12px;
  color: #657792;
}

.top-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.who {
  padding: 8px 11px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  color: #40536e;
}

.avatar {
  background: #dde8f5;
  color: #1c3557;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.demo-pill {
  font-size: 10px;
  font-weight: 800;
  color: #ac2c22;
  background: #ffedea;
  letter-spacing: .7px;
  padding: 9px 12px;
  border-radius: 18px;
  white-space: nowrap;
}

.content {
  max-width: 1580px;
  margin: auto;
  padding: 32px 36px 52px;
}

.pagehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.eyebrow {
  font-size: 10px;
  color: #71849b;
  letter-spacing: 1.7px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pagehead h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 800;
  letter-spacing: -.85px;
  line-height: 1.15;
}

.pagehead p {
  margin: 9px 0 0;
  color: var(--soft);
  line-height: 1.5;
}

.pagehead h1:after {
  content: "";
  height: 4px;
  width: 61px;
  background: var(--red);
  display: block;
  margin-top: 13px;
}

.controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.btn {
  border: 1px solid #ccd7e4;
  background: #fff;
  color: #1a3457;
  border-radius: 7px;
  padding: 10px 13px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.btn:hover {
  background: #f7faff;
  border-color: #8baccc;
}

.btn.primary {
  border-color: var(--red);
  background: var(--orange);
  color: white;
}

.btn.primary:hover {
  background: #d9352a;
}

.btn.dark {
  background: var(--nav);
  color: white;
  border-color: var(--nav);
}

.btn.small {
  font-size: 11px;
  padding: 7px 10px;
}

.btn.ghost {
  background: transparent;
  border: 0;
  color: var(--red);
}

.btn.icon {
  width: 34px;
  height: 34px;
  padding: 0;
}

.select,input,textarea {
  background: #fff;
  color: #243953;
  border: 1px solid #ccd7e4;
  border-radius: 7px;
  padding: 10px 12px;
  outline: 0;
}

.select {
  min-width: 175px;
}

.notice {
  border: 1px solid #f4c8c3;
  border-left: 4px solid var(--red);
  background: #fff5f4;
  border-radius: 6px;
  color: #754540;
  padding: 13px 17px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.5;
  font-size: 12px;
}

.notice strong {
  color: #aa3a2f;
}

.grid {
  display: grid;
  gap: 15px;
}

.kpis {
  grid-template-columns: repeat(5,minmax(0,1fr));
  margin-bottom: 22px;
}

.card {
  background: var(--white);
  border: 1px solid #e1e7ee;
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.kpi {
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.kpi .symbol {
  font-size: 23px;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #eff4fb;
  flex-shrink: 0;
}

.kpi .symbol.good {
  background: #e6f8ee;
}

.kpi .symbol.bad {
  background: #ffeeec;
}

.kpi .symbol.wait {
  background: #f0f2f6;
}

.kpi strong {
  font-size: 29px;
  font-weight: 840;
  letter-spacing: -.8px;
  display: block;
  line-height: 1.05;
  margin: 6px 0;
}

.kpi label {
  color: #5b6f89;
  display: block;
  font-size: 12px;
  font-weight: 650;
}

.kpi small {
  font-size: 10px;
  color: #8a9bb0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0,1.62fr) minmax(295px,.8fr);
  gap: 15px;
  margin-bottom: 15px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 15px;
  margin-bottom: 15px;
}

.card-head {
  padding: 19px 20px;
  border-bottom: 1px solid #e8edf3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-head h2,.card-head h3 {
  font-size: 16px;
  margin: 0;
  letter-spacing: -.2px;
}

.card-head h2:before,.card-head h3:before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 18px;
  background: var(--red);
  vertical-align: -4px;
  margin-right: 11px;
  border-radius: 2px;
}

.card-body {
  padding: 20px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

thead {
  background: #f7f9fc;
}

th {
  color: #60718a;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: 9px;
  padding: 13px 14px;
  white-space: nowrap;
}

td {
  padding: 13px 14px;
  border-top: 1px solid #eef1f5;
  vertical-align: middle;
}

td strong {
  font-weight: 750;
}

.clickrow {
  cursor: pointer;
}

.clickrow:hover {
  background: #f9fbfe;
}

.light {
  color: #74849a;
  font-size: 11px;
}

.status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 18px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.status.pass,.status.closed,.status.online {
  background: #e6f7ee;
  color: #16854d;
}

.status.fail,.status.overdue {
  background: #fdecea;
  color: #c63e33;
}

.status.pending,.status.open {
  background: #fff3df;
  color: #ae6b0a;
}

.status.offline {
  background: #eff1f5;
  color: #626e81;
}

.dot {
  height: 7px;
  width: 7px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
}

.link-btn {
  border: 0;
  background: transparent;
  color: #df4437;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 0;
}

.link-btn:hover {
  text-decoration: underline;
}

.donut {
  width: 165px;
  height: 165px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0% 70%, var(--red) 70% 85%,#cdd6e2 85% 100%);
  display: grid;
  place-items: center;
  margin: 8px auto 16px;
}

.donut-inner {
  height: 114px;
  width: 114px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #fff;
}

.donut-inner strong {
  font-size: 29px;
  letter-spacing: -1px;
}

.donut-inner span {
  font-size: 11px;
  color: #5e728a;
}

.legend {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 11px;
  color: #4f6078;
}

.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}

.list-row {
  padding: 12px 0;
  border-bottom: 1px solid #e9edf3;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.list-row:last-child {
  border: 0;
}

.list-row small {
  display: block;
  color: #79899f;
  margin-top: 4px;
}

.list-row strong {
  font-size: 12px;
}

.floor {
  position: relative;
  max-width: 100%;
  width: 100%;
  aspect-ratio: 2.1;
  background: #f7f9fc;
  border: 1px solid #e8edf3;
  border-radius: 5px;
  overflow: hidden;
}

.floor svg {
  width: 100%;
  height: 100%;
  display: block;
}

.floor .pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid white;
  box-shadow: 0 1px 4px #0003;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  cursor: pointer;
}

.floor .pin.pass {
  background: #12aa64;
}

.floor .pin.fail {
  background: var(--red);
}

.floor .pin.pending {
  background: #f5a526;
}

.floor .pin.offline {
  background: #99a7ba;
}

.floor .pin:hover {
  outline: 4px solid #d7e9fd;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.subtle {
  color: var(--soft);
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.toolbar .spacer {
  flex: 1;
}

.search {
  width: min(270px,100%);
}

.site-cards {
  grid-template-columns: repeat(2,1fr);
}

.site-card {
  padding: 20px;
  cursor: pointer;
  transition: transform .12s,border-color .12s;
}

.site-card:hover {
  transform: translateY(-2px);
  border-color: #b6cadf;
}

.site-title {
  font-size: 19px;
  font-weight: 800;
}

.site-card .numbers {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 16px;
}

.site-card .numbers b {
  font-size: 22px;
  display: block;
}

.site-card .numbers span {
  font-size: 11px;
  color: #71839a;
}

.two {
  display: grid;
  grid-template-columns: minmax(0,1.7fr) minmax(320px,1fr);
  gap: 15px;
}

.metric-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.metric-inline span {
  background: #f5f8fc;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #546781;
}

.metric-inline b {
  color: #172841;
}

.ticket {
  padding: 15px;
  border: 1px solid #e8edf3;
  border-radius: 7px;
  margin-bottom: 10px;
  background: #fff;
}

.ticket:last-child {
  margin-bottom: 0;
}

.ticket h3 {
  font-size: 13px;
  margin: 0 0 5px;
}

.ticket p {
  color: #60718a;
  font-size: 11px;
  line-height: 1.5;
  margin: 0 0 10px;
}

.ticket .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.progress-rows .prow {
  margin: 18px 0;
}

.prow-head {
  display: flex;
  justify-content: space-between;
  color: #52627d;
  font-size: 12px;
  margin-bottom: 8px;
}

.track {
  height: 8px;
  border-radius: 8px;
  background: #edf1f6;
  overflow: hidden;
}

.fill {
  height: 100%;
  border-radius: 8px;
  background: var(--green);
}

.report-hero {
  padding: 24px 26px;
  background: linear-gradient(105deg,#152c49,#213f65);
  color: #fff;
  border-radius: 10px;
  margin-bottom: 15px;
}

.report-hero p {
  color: #d4e1ef;
  max-width: 620px;
  line-height: 1.6;
}

.report-hero h2 {
  margin: 0;
  font-size: 22px;
}

.report-hero .btn {
  margin-right: 7px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 11px;
  color: #6a7d95;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.item-detail {
  border: 1px solid #e4eaf2;
  border-radius: 9px;
  overflow: hidden;
}

.item-detail .detail-head {
  background: #f7f9fd;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.item-detail .detail-list {
  padding: 5px 18px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #eef1f5;
  font-size: 12px;
}

.detail-row:last-child {
  border: 0;
}

.detail-row label {
  color: #697b93;
}

.detail-row b {
  text-align: right;
}

.empty {
  text-align: center;
  padding: 38px;
  color: #72829a;
}

.empty strong {
  display: block;
  margin-bottom: 5px;
  color: #233c5c;
}

.tip {
  background: #f3f8ff;
  border-left: 3px solid #71a6d9;
  border-radius: 6px;
  padding: 13px;
  color: #436381;
  font-size: 12px;
  line-height: 1.6;
}

.setting-card {
  padding: 22px;
}

.setting-card h3 {
  margin: 0 0 8px;
}

.setting-card p {
  color: #60718a;
  line-height: 1.6;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 13px 0;
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: #07162699;
  z-index: 11;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-bg.show {
  display: flex;
}

.modal {
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 20px 80px #07152644;
}

.modal-head {
  padding: 21px 24px 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-head h2 {
  font-size: 20px;
  margin: 0;
}

.modal-body {
  padding: 20px 24px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 19px;
}

.modal .full {
  width: 100%;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 20;
  background: #142d4c;
  color: #fff;
  padding: 13px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 40px #0d234044;
  display: none;
  font-size: 12px;
  max-width: 350px;
}

.toast.show {
  display: block;
}

.foot {
  margin: 34px 0 0;
  border-top: 1px solid #dfe6ed;
  padding: 19px 0;
  color: #7b899a;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.tag {
  font-size: 10px;
  color: #a13228;
  background: #ffebe8;
  padding: 4px 7px;
  border-radius: 4px;
  font-weight: 800;
}

.hide {
  display: none !important;
}

@media (max-width:1250px) {
  .kpis {
    grid-template-columns: repeat(3,1fr);
  }

  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bottom-grid>.card:last-child {
    grid-column: 1/-1;
  }

  .section-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

@media (max-width:900px) {
  .sidebar {
    width: 71px;
    min-width: 71px;
  }

  .brand {
    padding: 22px 5px;
  }

  .brand-logo {
    font-size: 9px;
    letter-spacing: 0;
    border-width: 3px;
    padding: 5px;
  }

  .brand-sub,.brand-rule,.group-label,.nav .nt,.sidebar-bottom {
    display: none;
  }

  .nav {
    margin: 4px 10px;
    width: 51px;
    justify-content: center;
    padding: 12px;
  }

  .nav .ni {
    font-size: 20px;
  }

  .topbar {
    padding: 0 18px;
  }

  .content {
    padding: 24px 18px;
  }

  .section-grid,.two {
    grid-template-columns: 1fr;
  }

  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:650px) {
  .sidebar {
    width: 57px;
    min-width: 57px;
  }

  .nav {
    width: 43px;
    margin: 3px 7px;
  }

  .brand-logo {
    font-size: 7px;
  }

  .topbar {
    height: 60px;
  }

  .who {
    display: none;
  }

  .pagehead {
    flex-direction: column;
    gap: 15px;
  }

  .pagehead h1 {
    font-size: 25px;
  }

  .kpis {
    grid-template-columns: repeat(2,1fr);
  }

  .kpi {
    padding: 14px;
    gap: 8px;
  }

  .kpi .symbol {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .kpi strong {
    font-size: 23px;
  }

  .bottom-grid,.site-cards {
    grid-template-columns: 1fr;
  }

  .bottom-grid>.card:last-child {
    grid-column: auto;
  }

  .notice {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .foot {
    flex-direction: column;
  }
}

@media print {
  .sidebar,.topbar,.pagehead .controls,.notice,.foot,.btn,.link-btn,.toolbar,.demo-pill {
    display: none !important;
  }

  .shell {
    display: block;
  }

  .main {
    width: 100%;
  }

  .content {
    padding: 0;
  }

  .view {
    display: none !important;
  }

  #view-reports {
    display: block !important;
  }

  .card {
    box-shadow: none;
    break-inside: avoid;
  }

  .report-hero {
    background: #fff;
    color: #111;
    border: 1px solid #ccc;
  }

  .report-hero p {
    color: #444;
  }

  body {
    background: #fff;
  }

  table {
    font-size: 10px;
  }
}
