/* 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; }

/* --- My tickets and Help Center: the Support Desk shown inside the portal */
body.framed main { max-width: none; padding: 0; display: flex; flex-direction: column; }
body.framed .banner { margin: 12px 16px 0; }
.sd-frame { flex: 1; width: 100%; min-height: calc(100vh - 56px); border: 0; background: #fff; display: block; }

/* --- Support Desk data in the portal */
.item.block { display: block; }
.item.block > * { margin-top: 4px; }
.item.block .hrow { margin-bottom: 0; }
a.item.link { color: inherit; text-decoration: none; }
a.item.link:hover { background: #f7f8f4; }
a.more { display: inline-block; margin-top: 10px; font-weight: 700; text-decoration: none; }
.hrow .sub { margin-bottom: 8px; }
.hrow + .card, .hrow .tags { margin-bottom: 12px; }

/* --- build tracker */
.g5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .g5 { grid-template-columns: repeat(3, 1fr); } }
.callout { padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.progress { height: 10px; border-radius: 6px; background: #eeefe9; overflow: hidden; margin: 4px 0 16px; }
.bar-fill { display: block; height: 100%; width: 0; background: var(--teal); }
.phase { border-top: 1px solid #eeefe9; padding: 14px 0 6px; }
.phase-name { font-weight: 700; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.lane { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.lane-name { width: 170px; flex: none; }
.steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step { width: 190px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); }
.step .sname { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.step .lbl { margin-top: 4px; }
.step.ok { border-color: #9fd3b2; background: #f3faf5; } .step.info { border-color: #8cc9c8; background: #f2f9f9; }
.step.warn { border-color: #efb98c; background: #fff7f0; } .step.bad { border-color: #e7a0ab; background: #fdf3f5; }
.step.grey { background: #fff; }
.arrow { color: #9aa0b4; font-size: 18px; }
.tk-head { margin-bottom: 8px; }
.order-line { font-size: 17px; margin: 0 0 14px; }
.step .btn.signoff { display: block; margin-top: 8px; padding: 6px 10px; font-size: 13px; text-align: center; text-decoration: none; }
.lane-name .more { display: inline-block; margin-top: 4px; font-size: 13px; }
.tk-row { cursor: pointer; } .tk-row:hover { border-color: #b9dcdb; }
.tk-cust { font-size: 18px; font-weight: 700; color: var(--navy); text-decoration: none; }
.tk-flow.compact { min-width: 900px; padding: 4px 56px 46px 44px; }
.tk-row .tk-head { margin-bottom: 0; }
.tk-flow.compact .tk-dot { width: 34px; height: 34px; border-width: 2.5px; }
.tk-flow.compact .tk-dot.small { width: 26px; height: 26px; }
.tk-flow.compact .tk-label { top: calc(100% + 6px); gap: 2px; width: 130px; }
.tk-flow.compact .tk-label b { font-size: 13px; } .tk-flow.compact .tk-label span { font-size: 12px; }
.tk-flow.compact .tk-par { padding: 6px 12px 6px 14px; border-radius: 10px; }
.tk-flow.compact .tk-lane { padding: 3px 0; }
.tk-flow.compact .tk-lane > .tk-dot:first-child { margin-left: -15px; }
.tk-flow.compact .tk-lname { width: 200px; } .tk-flow.compact .tk-lname b { font-size: 13px; }
.tk-flow.compact .tk-line { height: 3px; }
.tk-flow.compact .tk-gate-label { font-size: 12px; bottom: 8px; }
.tk-order { font-size: 18px; }
.tk-scroll { overflow-x: auto; padding: 4px 4px 0; }
.tk-flow { display: flex; align-items: center; min-width: 1080px; padding: 18px 64px 62px 48px; }
.tk-line { flex: 1; min-width: 28px; height: 4px; background: #d8d9d2; }
.tk-line.on { background: var(--teal); }
.tk-line.short { flex: 0 0 26px; min-width: 26px; }
.tk-node { position: relative; flex: none; display: flex; justify-content: center; }
.tk-label { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: 150px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tk-label b { font-weight: 600; font-size: 15px; } .tk-label span { color: var(--muted); font-size: 13px; }
.tk-dot { width: 50px; height: 50px; flex: none; border-radius: 50%; border: 3px solid #d8d9d2; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; }
.tk-dot.small { width: 38px; height: 38px; }
.tk-dot svg { width: 58%; height: 58%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tk-dot.flag svg { stroke: #9aa0b4; stroke-width: 1.8; }
.tk-dot.done { background: var(--teal); border-color: var(--teal); }
.tk-dot.flag.done svg { stroke: #fff; }
.tk-dot.now { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-l); }
.tk-dot.flag.now { background: var(--teal); } .tk-dot.flag.now svg { stroke: #fff; }
.tk-dot.bad { background: var(--bad); border-color: var(--bad); }
.tk-dot.off { border-style: dashed; background: #f4f4ef; }
.tk-par { flex: none; background: #f2f3ef; border: 1.5px solid #d8d9d2; border-radius: 14px; padding: 12px 14px 10px 16px; }
.tk-kicker { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tk-lanes { border-left: 4px solid var(--teal); padding-left: 0; margin-left: 2px; }
.tk-lane { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.tk-lane > .tk-dot:first-child { margin-left: -21px; }
.tk-lname { width: 250px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tk-lname b { font-size: 15px; } .tk-lname span { color: var(--muted); font-size: 13px; }
.tk-lane.off { opacity: .55; } .tk-lane.off .tk-lname b { font-weight: 600; }
.btn.tk-open { padding: 6px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.btn.tk-open.off { background: #fff; color: #9aa0b4; border: 1.5px solid #d8d9d2; cursor: not-allowed; }
.tk-node .btn.tk-open { margin-top: 2px; }
.tk-gate { position: relative; flex: 1; min-width: 90px; display: flex; }
.tk-gate .tk-line { flex: 1; }
.tk-gate-label { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--teal-d); }
.tk-bottom { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 1000px) { .tk-bottom { grid-template-columns: 1fr; } }
.tk-now { border: 2px solid var(--teal); } .tk-now.blocked { border-color: var(--bad); } .tk-now.blocked h2 { color: var(--bad); }
.tk-now p { line-height: 1.5; margin: 12px 0; }
.tk-acts { list-style: none; margin: 10px 0 0; padding: 0; }
.tk-acts li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #eeefe9; }
.tk-acts .pill { min-width: 84px; text-align: center; }
tr.rowlink { cursor: pointer; } tr.rowlink:hover td { background: #f7f8f4; }
tr.rowlink a { color: var(--navy); text-decoration: none; }
header.top.ops { background: var(--navy); } header.top.ops .address { background: #1a2440; }

/* --- operations console */
.nav-h { margin: 14px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
nav .nav-h:first-child { margin-top: 2px; }
.source { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.mini { display: flex; align-items: center; gap: 8px; min-width: 140px; } .mini .progress { flex: 1; margin: 0; height: 8px; }
.tile.rate.ok { border-left: 6px solid #1f9254; } .tile.rate.warn { border-left: 6px solid #d9a300; } .tile.rate.bad { border-left: 6px solid #c8102e; }
.tile.rate .big { font-size: 34px; font-weight: 800; margin-top: 6px; }
a.card.rc { display: block; color: inherit; text-decoration: none; }
.rc { border-left: 6px solid var(--line); } .rc.ok { border-left-color: #1f9254; } .rc.warn { border-left-color: #d9a300; } .rc.bad { border-left-color: #c8102e; }
a.card.rc:hover { border-color: #b9dcdb; } .rc p { margin: 10px 0; line-height: 1.45; }
.rc-foot { display: flex; justify-content: space-between; gap: 8px; } .rc h3 { font-size: 14px; margin: 12px 0 4px; } .rc ul { margin: 0; padding-left: 20px; }
.att { list-style: none; margin: 0; padding: 0; }
.att li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #eeefe9; } .att li:first-child { border-top: 0; }
.att .pill { min-width: 96px; text-align: center; } .att-area { width: 110px; flex: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.att a { color: var(--navy); }
.rc.ok, .tile.rate.ok { background: #f3faf5; color: var(--navy); } .rc.warn, .tile.rate.warn { background: #fffbea; color: var(--navy); }
.rc.bad, .tile.rate.bad { background: #fdf3f5; color: var(--navy); } .rc.none { background: #fff; }
.rc .pill.ok { background: #d4efdf; } .rc .pill.warn { background: #fdefb2; color: #7a5a00; } .rc .pill.bad { background: #f7d4da; }
