/* =============================================================
   CloserLook Health — Shared Stylesheet
   Extracted common rules that appeared in 10+ page CSS files.
   Load this BEFORE any page-specific stylesheet.
   ============================================================= */

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ────────────────────────────────────────────────────── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: #0d1117;
  color: #e6edf3;
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────────── */
.header {
  background: #161b22;
  border-bottom: 1px solid #30363d;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-brand   { display: flex; align-items: center; gap: 12px; }
.header-icon    { font-size: 26px; }
.header-title {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #4fc3f7, #00e676);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.header-subtitle { font-size: 11px; color: #8b949e; }
.header-nav      { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── Navigation Buttons ──────────────────────────────────────── */
.btn-nav {
  background: #21262d;
  border: 1px solid #30363d;
  color: #e6edf3;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.btn-nav:hover     { background: #30363d; }
.btn-signout {
  background: #21262d;
  border: 1px solid #30363d;
  color: #e6edf3;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.btn-signout:hover  { background: #30363d; }
.badge-admin {
  background: linear-gradient(135deg, #4fc3f7, #0288d1);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
}

/* ── Main Content ────────────────────────────────────────────── */
main { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

/* ── Flash Container ─────────────────────────────────────────── */
.flash-container { max-width: 1200px; margin: 0 auto; padding: 16px 24px 0; }

/* ── Flash Banners ───────────────────────────────────────────── */
.banner {
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.banner.success { background: rgba(0,230,118,0.1);  border: 1px solid rgba(0,230,118,0.3);  color: #00e676; }
.banner.error   { background: rgba(248,81,73,.1);   border: 1px solid rgba(248,81,73,.35);  color: #f85149; }

/* ── Page Header ─────────────────────────────────────────────── */
.page-header  { margin-bottom: 28px; }
.page-title   { font-size: 26px; font-weight: 700; color: #e6edf3; margin-bottom: 4px; }
.page-sub     { font-size: 14px; color: #8b949e; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb a:hover { text-decoration: underline; }

/* ── Card Component ──────────────────────────────────────────── */
.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.card-head {
  padding: 16px 22px;
  border-bottom: 1px solid #21262d;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-head-title {
  font-size: 15px;
  font-weight: 700;
  color: #e6edf3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-body { padding: 22px; }

/* ── Table Component ─────────────────────────────────────────── */
table       { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #8b949e;
  padding: 12px 16px;
  letter-spacing: .4px;
  text-transform: uppercase;
  border-bottom: 1px solid #30363d;
  background: #0d1117;
  white-space: nowrap;
}
th {
  text-align: left;
  padding: 8px 12px;
  background: #21262d;
  color: #8b949e;
  font-size: 12px;
  text-transform: uppercase;
  border-bottom: 1px solid #30363d;
}
td {
  padding: 8px 12px;
  border-bottom: 1px solid #21262d;
  font-size: 13px;
}
tbody tr:hover      { background: #1c2128; }
tbody tr:last-child { border-bottom: none; }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state { padding: 48px 20px; text-align: center; color: #484f58; }
.empty-icon  { font-size: 40px; margin-bottom: 12px; }
.empty-text  { font-size: 14px; }

/* ── Badge Component ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.result-count-badge {
  background: #21262d;
  border: 1px solid #30363d;
  color: #8b949e;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn:hover    { opacity: .85; }
.btn-primary {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: none;
  background: #238636;
  color: #fff;
  font-weight: 500;
}
.btn-success  { background: linear-gradient(135deg, #00e676, #00b248); color: #0d1117; }

/* ── Form Elements ───────────────────────────────────────────── */
input, select, textarea {
  background: #0d1117;
  border: 1px solid #30363d;
  color: #e6edf3;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
}
input::placeholder              { color: #484f58; }
.form-group select option       { background: #161b22; color: #e6edf3; }

/* ── Notification / Message ──────────────────────────────────── */
.msg {
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  background: #1a4731;
  color: #3fb950;
  border: 1px solid #238636;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header {
    padding: 0 16px;
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .header-nav { flex-wrap: wrap; gap: 6px; }
  main        { padding: 20px 16px; }
}

/* ── Extracted inline styles (shared utilities) ─────────────── */

.bg-161b22-px-12px24 {
  background: #161b22;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #30363d;
}

.color-e6edf3-td-none {
  color: #e6edf3;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.flex-gap-8 {
  display: flex;
  gap: 8px;
}

.btn-ghost-subtle {
  color: #e6edf3;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}

.mb-16-only {
  margin: 0 0 16px;
}

.mx-0012px-fs-14px {
  margin: 0 0 12px;
  font-size: 14px;
  color: #8b949e;
}

.ta-center-color-8b949e {
  text-align: center;
  color: #8b949e;
  padding: 24px;
}

.no-underline {
  text-decoration: none;
}

.text-sm-muted {
  font-size: 13px;
  color: #8b949e;
}

.flex-1-minw-200px {
  flex: 1;
  min-width: 200px;
}

.fs-11px-color-484f58 {
  font-size: 11px;
  color: #484f58;
  margin-top: 2px;
}

.bg-rgba13-color-8b949e {
  background: rgba(139,148,158,.12);
  color: #8b949e;
  border: 1px solid rgba(139,148,158,.3);
}

.text-xs-muted {
  font-size: 12px;
  color: #8b949e;
}

.d-flex-alig-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.px-0 {
  padding: 0;
}

.text-xxs-muted {
  font-size: 11px;
  color: #8b949e;
}

.ta-center-px-60px {
  text-align: center;
  padding: 60px;
}

.fs-48px-mb-16px {
  font-size: 48px;
  margin-bottom: 16px;
}

.color-8b949e-fs-15px {
  color: #8b949e;
  font-size: 15px;
}

.ta-center-px-48px {
  text-align: center;
  padding: 48px;
}

.color-f85149-fs-15px {
  color: #f85149;
  font-size: 15px;
}

.mb-14 {
  margin-bottom: 14px;
}

.cur-pointer {
  cursor: pointer;
}

.text-right {
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

.color-8b949e-fs-12px {
  color: #8b949e;
  font-size: 12px;
}

.color-cyan {
  color: #4fc3f7;
}

.color-muted {
  color: #8b949e;
}

.fs-26 {
  font-size: 26px;
}

.color-blue {
  color: #58a6ff;
}

.mt-16 {
  margin-top: 16px;
}

.text-semibold-light {
  font-weight: 600;
  color: #e6edf3;
}

.d-inline {
  display: inline;
}

.gridco-1-1 {
  grid-column: 1 / -1;
}

.d-flex-gap-8px {
  display: flex;
  gap: 8px;
  align-items: center;
}

.flex-1 {
  flex: 1;
}

.flex-2 {
  flex: 2;
}

.text-upper {
  text-transform: uppercase;
}

.mx-0 {
  margin: 0;
}

.mt-20 {
  margin-top: 20px;
}

.fs-12px-color-8b949e {
  font-size: 12px;
  color: #8b949e;
  margin-top: 4px;
}

.h-42px-px-4px {
  height: 42px;
  padding: 4px;
}

.color-58a6ff-fs-13px {
  color: #58a6ff;
  font-size: 13px;
  text-decoration: none;
}

.mx-0-0-4 {
  margin: 0 0 4px;
}

.mx-0016px-color-8b949e {
  margin: 0 0 16px;
  color: #8b949e;
  font-size: 13px;
}

.w-80 {
  width: 80px;
}

.d-flex-gap-16px {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.label-muted {
  display: block;
  font-size: 11px;
  color: #8b949e;
  margin-bottom: 4px;
}

.flex-ac-g10 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ml-8 {
  margin-left: 8px;
}

.fs-13px-color-vartex {
  font-size: 13px;
  color: var(--text-secondary);
}

.fs-16 {
  font-size: 16px;
}

.fs-14 {
  font-size: 14px;
}

.color-var-text-primary {
  color: var(--text-primary);
}

.color-var-red {
  color: var(--red);
}

.color-ter-v {
  color: var(--text-tertiary);
}

.flex-1-bg-varblu {
  flex: 1;
  background: var(--blue);
}

.flex-2-bg-vargre {
  flex: 2;
  background: var(--green);
}

.flex-1-bg-varora {
  flex: 1;
  background: var(--orange);
}

.flex-1-bg-vardan {
  flex: 1;
  background: var(--danger);
}

.color-teal-v {
  color: var(--teal);
}

.color-danger-v {
  color: var(--danger);
}

.color-var-green {
  color: var(--green);
}

.flex-1-bg-22c55e {
  flex: 1;
  background: #22c55e;
}

.flex-1-bg-eab308 {
  flex: 1;
  background: #eab308;
}

.flex-1-bg-f97316 {
  flex: 1;
  background: #f97316;
}

.flex-1-bg-ef4444 {
  flex: 1;
  background: #ef4444;
}

.color-var-orange {
  color: var(--orange);
}

.color-ff6348 {
  color: #ff6348;
}

.color-var-blue {
  color: var(--blue);
}

.flex-2-bg-22c55e {
  flex: 2;
  background: #22c55e;
}

.flex-1-bg-f59e0b {
  flex: 1;
  background: #f59e0b;
}

.color-sec-v {
  color: var(--text-secondary);
}

.color-8b5cf6 {
  color: #8b5cf6;
}

.fs-20 {
  font-size: 20px;
}

.color-danger {
  color: #f85149;
}

.mt-10 {
  margin-top: 10px;
}

.mb-0 {
  margin-bottom: 0;
}

.fs-18 {
  font-size: 18px;
}

.text-center {
  text-align: center;
}

.mt-8 {
  margin-top: 8px;
}

.color-orange {
  color: #ffa726;
}

.mt-24 {
  margin-top: 24px;
}

.mb-6 {
  margin-bottom: 6px;
}

.color-fg {
  color: #e6edf3;
}

.mb-18 {
  margin-bottom: 18px;
}

.color-success {
  color: #3fb950;
}

.fs-22 {
  font-size: 22px;
}

.text-xs-sec-v {
  font-size: 12px;
  color: var(--text-secondary);
}

.flex-ac-g8 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-14px-color-vartex {
  font-size: 14px;
  color: var(--text-secondary);
}

.ta-center-mt-16px {
  text-align: center;
  margin-top: 16px;
}

.fs-28 {
  font-size: 28px;
}

.fs-13 {
  font-size: 13px;
}

.fs-11px-color-vartex {
  font-size: 11px;
  color: var(--text-tertiary);
}

.px-6px10p-bt-1pxsol {
  padding: 6px 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.color-888-fs-11px {
  color: #888;
  font-size: 11px;
  line-height: 24px;
}

.fs-11px-px-2px8px {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #333;
  color: #fff;
  cursor: pointer;
}

.fs-13px-fw-600 {
  font-size: 13px;
  font-weight: 600;
}

.fs-24 {
  font-size: 24px;
}

.color-4fc3f7-fw-600 {
  color: #4fc3f7;
  font-weight: 600;
}

.color-dim {
  color: #484f58;
}

.gridco-span-2 {
  grid-column: span 2;
}

.color-4fc3f7-td-none {
  color: #4fc3f7;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.d-inline-ml-8px {
  display: inline;
  margin-left: 8px;
}

.mb-20 {
  margin-bottom: 20px;
}

.fs-14px-fw-700 {
  font-size: 14px;
  font-weight: 700;
  color: #e6edf3;
}

.fs-11px-color-8b949e {
  font-size: 11px;
  color: #8b949e;
  margin-top: 2px;
}

.mt-18 {
  margin-top: 18px;
}

.font-sfmono-fs-12px {
  font-family: 'sf mono',sfmono-regular,consolas,monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
  tab-size: 2;
}

.mt-32px-bord-rgba25 {
  margin-top: 32px;
  border-color: rgba(255,167,38,.3);
}

.border-rgba-255-167-38-15 {
  border-bottom-color: rgba(255,167,38,.15);
}

.fs-10px-fw-700 {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,167,38,.12);
  color: #ffa726;
  border: 1px solid rgba(255,167,38,.3);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.mb-16px-mt-0 {
  margin-bottom: 16px;
  margin-top: 0;
}

.grid-140px1-alig-flexen {
  grid-template-columns: 140px 1fr;
  align-items: flex-end;
}

.font-sfmono-fw-700 {
  font-family: 'sf mono',sfmono-regular,consolas,monospace;
  font-weight: 700;
}

.mt-12px-d-flex {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.px-8-18 {
  padding: 8px 18px;
}

.px-8-24 {
  padding: 8px 24px;
}

.d-flex-just-spaceb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #21262d;
  border-bottom: 1px solid #30363d;
}

.bg-none-bord-none {
  background: none;
  border: none;
  color: #8b949e;
  cursor: pointer;
  font-size: 16px;
}

.w-100-h-700px {
  width: 100%;
  height: 700px;
  border: none;
  background: #0d1117;
}

.bb-1-solid-30363d {
  border-bottom: 1px solid #30363d;
}

.px-10px16-color-e6edf3 {
  padding: 10px 16px;
  color: #e6edf3;
}

.px-10-16 {
  padding: 10px 16px;
}

.fs-28px-mb-8px {
  font-size: 28px;
  margin-bottom: 8px;
}

.w-30 {
  width: 30px;
}

.fw-600 {
  font-weight: 600;
}

.fw-400 {
  font-weight: 400;
}

.px-10px24-fs-14px {
  padding: 10px 24px;
  font-size: 14px;
}

.fs-14px-color-f85149 {
  font-size: 14px;
  color: #f85149;
  font-weight: 600;
}

.px-10px0-color-8b949e {
  padding: 10px 0;
  color: #8b949e;
  font-size: 13px;
}

.ta-center-px-24px0 {
  text-align: center;
  padding: 24px 0;
  color: #484f58;
  font-size: 14px;
}

.bg-rgba25-bord-1pxsol {
  background: rgba(255,152,0,.12);
  border: 1px solid rgba(255,152,0,.3);
  color: #ff9800;
}

.color-ff9800 {
  color: #ff9800;
}

.color-484f58-fw-400 {
  color: #484f58;
  font-weight: 400;
}

.mb-4 {
  margin-bottom: 4px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-14 {
  margin-top: 14px;
}

.texttr-capitalize {
  text-transform: capitalize;
}

.color-8b949e-fs-13px {
  color: #8b949e;
  font-size: 13px;
}

.maxw-60-ta-right {
  max-width: 60%;
  text-align: right;
}

.fs-18px-fw-800 {
  font-size: 18px;
  font-weight: 800;
  color: #00e676;
}

.ov-x-auto {
  overflow-x: auto;
}

.color-484f58-fw-600 {
  color: #484f58;
  font-weight: 600;
}

.font-monosp-fw-700 {
  font-family: monospace;
  font-weight: 700;
  color: #e6edf3;
}

.minw-200 {
  min-width: 200px;
}

.fs-11px-color-00e676 {
  font-size: 11px;
  color: #00e676;
  font-weight: 600;
}

.fs-11px-color-f85149 {
  font-size: 11px;
  color: #f85149;
  font-weight: 600;
}

.px-40px20-ta-center {
  padding: 40px 20px;
  text-align: center;
  color: #484f58;
}

.mt-4 {
  margin-top: 4px;
}

.font-monosp-fs-12px {
  font-family: monospace;
  font-size: 12px;
  color: #8b949e;
}

.fw-600-color-8b949e {
  font-weight: 600;
  color: #8b949e;
}

.fs-12px-px-8px18p {
  font-size: 12px;
  padding: 8px 18px;
}

.mb-16 {
  margin-bottom: 16px;
}

.color-4fc3f7-fs-12px {
  color: #4fc3f7;
  font-size: 12px;
}

.color-green {
  color: #00e676;
}

.mt-16px-pt-16px {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #21262d;
}

.color-00e676-fw-600 {
  color: #00e676;
  font-weight: 600;
}

.mb-10 {
  margin-bottom: 10px;
}

.fs-15px-fw-700 {
  font-size: 15px;
  font-weight: 700;
  color: #e6edf3;
}

.mb-12 {
  margin-bottom: 12px;
}

.fs-10 {
  font-size: 10px;
}

.fw-400-color-8b949e {
  font-weight: 400;
  color: #8b949e;
}

.fs-13px-color-8b949e {
  font-size: 13px;
  color: #8b949e;
  margin-bottom: 14px;
  line-height: 1.5;
}

.d-flex-flex-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.color-484f58-font-italic {
  color: #484f58;
  font-style: italic;
}

.pt-18 {
  padding-top: 18px;
}

.mt-18px-pt-14px {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #30363d;
}

.fs-15 {
  font-size: 15px;
}

.header-brand-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.btn-ghost {
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

.fs-22px-mb-20px {
  font-size: 22px;
  margin-bottom: 20px;
}

.bg-161b22-bord-1pxsol {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.color-8b949e-ta-center {
  color: #8b949e;
  text-align: center;
  padding: 40px 0;
}

.fs-22px-mb-4px {
  font-size: 22px;
  margin-bottom: 4px;
}

.color-8b949e-mb-24px {
  color: #8b949e;
  margin-bottom: 24px;
}

.label-sec-v {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.mb-8 {
  margin-bottom: 8px;
}

.pos-relati-zind-1 {
  position: relative;
  z-index: 1;
}

.ml-auto-px-6px14p {
  margin-left: auto;
  padding: 6px 14px;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: #8b949e;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.color-f85149-td-underl {
  color: #f85149;
  text-decoration: underline;
}
