/* SGT CORE customer portal - same palette as the Support Desk and the interface mockups. */
:root {
  --navy: #000028; --teal: #00706f; --teal-d: #00504f; --teal-l: #d3eded; --cream: #f4f4ef; --line: #e1e2da;
  --muted: #525a72; --ok-bg: #dcf0e3; --ok: #0a6630; --warn-bg: #fce6d2; --warn: #8a3d00; --bad-bg: #f9d9de;
  --bad: #9c1427; --cmmc-bg: #e4e0f4; --cmmc: #3b2c86; --grey-bg: #ecede6;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Arial, Helvetica, sans-serif; color: var(--navy); background: var(--cream); font-size: 15px; }
a { color: var(--teal-d); }
button { font: inherit; }
.loading { padding: 48px; color: var(--muted); }

/* --- top bar */
.top { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 24px; background: var(--teal); color: #fff; }
.brand { font-weight: 700; font-size: 17px; white-space: nowrap; }
.address { display: flex; align-items: center; gap: 8px; margin: 0 auto; padding: 5px 14px; border-radius: 999px;
  background: #0e8584; font-size: 13px; color: #fff; }
.who { display: flex; align-items: center; gap: 14px; font-size: 13px; color: #e3f4f4; white-space: nowrap; }
.who a { color: #fff; font-weight: 600; text-decoration: none; border: 1px solid #ffffff80; border-radius: 8px; padding: 5px 10px; }

/* --- layout */
.body { display: flex; min-height: calc(100vh - 56px); }
nav { width: 220px; flex: none; padding: 16px 12px; background: #ecede6; }
nav a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; margin-bottom: 4px;
  border-radius: 8px; color: #2d3550; text-decoration: none; }
nav a:hover { background: #e2e3dc; }
nav a.on { background: #cfeaea; color: var(--teal-d); font-weight: 700; }
nav .ext { font-size: 12px; color: var(--muted); }
main { flex: 1; padding: 24px 28px 48px; max-width: 1240px; }
h1 { font-size: 26px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 0; }
.sub { color: var(--muted); margin: 0 0 20px; }
.banner { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; background: var(--cmmc-bg); color: var(--cmmc); font-weight: 600; }
.error { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); }

/* --- cards */
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g21 { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 1000px) { .g4, .g3 { grid-template-columns: repeat(2, 1fr); } .g2, .g21 { grid-template-columns: 1fr; } nav { width: 180px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.card.feature { border-color: var(--teal); }
.card .hrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.lbl { color: var(--muted); font-size: 13px; }
.big { font-size: 34px; font-weight: 700; margin-top: 6px; }
.big.small { font-size: 20px; }
.empty { color: #8a90a3; font-style: italic; padding: 8px 0; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #eeefe9; }
.item:first-of-type { border-top: 0; }
.mt { margin-top: 16px; }

/* --- pills and buttons */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ok { background: var(--ok-bg); color: var(--ok); } .warn { background: var(--warn-bg); color: var(--warn); }
.bad { background: var(--bad-bg); color: var(--bad); } .info { background: var(--teal-l); color: var(--teal-d); }
.cmmc { background: var(--cmmc-bg); color: var(--cmmc); } .grey { background: var(--grey-bg); color: var(--muted); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-block; padding: 8px 14px; border-radius: 8px; background: var(--teal); color: #fff; border: 0;
  font-weight: 700; font-size: 13px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.ghost { background: #fff; color: var(--teal-d); border: 1.5px solid var(--teal); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* --- tables */
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-top: 1px solid #eeefe9; font-size: 14px; }
th { color: var(--muted); font-weight: 700; border-top: 0; background: #fbfbf8; }

/* --- uptime bars */
.bars { display: flex; gap: 4px; margin-top: 8px; }
.bars span { flex: 1; height: 26px; border-radius: 4px; background: var(--teal); }
.bars span.incident { background: #e07b1f; } .bars span.nodata { background: #e4e5de; }

/* --- terminal */
.term { background: #0b1220; border-radius: 12px; overflow: hidden; }
.term .bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: #1a2440; color: #9aa2b8; font-size: 13px; }
.term pre { margin: 0; padding: 18px; min-height: 320px; color: #e8eaf0; font: 13px/1.6 "Courier New", monospace; white-space: pre-wrap; }
.term .dim { color: #8a93ad; } .term .pr { color: #3cc8c8; }

/* --- sign-in */
.signin { max-width: 440px; margin: 10vh auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.signin h1 { margin-bottom: 8px; } .signin .btn { display: block; text-align: center; margin-top: 18px; padding: 12px; font-size: 15px; }
.form label { display: block; font-weight: 700; font-size: 13px; margin: 12px 0 4px; color: #2d3550; }
.form input, .form textarea { width: 100%; padding: 9px 12px; border: 1.5px solid #cfd1c8; border-radius: 8px; font: inherit; }
.note { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: var(--teal-l); color: var(--teal-d); font-size: 13px; }
