/* ═══════════════════════════════════════════════════════════════
   Significance Talent Intelligence Dashboard  –  styles.css
   ═══════════════════════════════════════════════════════════════ */

:root {
  --sig-navy:   #0F2044;
  --sig-blue:   #1D4ED8;
  --sig-blue2:  #2563EB;
  --sig-teal:   #0891B2;
  --sig-green:  #059669;
  --sig-amber:  #D97706;
  --sig-red:    #DC2626;
  --sig-purple: #7C3AED;

  --bg:         #F1F5F9;
  --bg-white:   #FFFFFF;
  --bg-card:    #FFFFFF;
  --border:     #E2E8F0;
  --text-1:     #0F172A;
  --text-2:     #475569;
  --text-3:     #94A3B8;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 32px rgba(0,0,0,.14);

  --radius:     14px;
  --radius-sm:  8px;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Dashboard Home (PwC-inspired, scoped) ───────────────────────────── */
body.dashboard-home {
  background:
    radial-gradient(circle at 8% 12%, rgba(241, 90, 34, 0.09), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(247, 143, 30, 0.08), transparent 34%),
    linear-gradient(180deg, #f5f6f8 0%, #f1f3f6 100%);
}

body.kpi-detail {
  background:
    radial-gradient(circle at 8% 12%, rgba(241, 90, 34, 0.09), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(247, 143, 30, 0.08), transparent 34%),
    linear-gradient(180deg, #f5f6f8 0%, #f1f3f6 100%);
}

body.dashboard-home .sig-header {
  background: #ffffff;
  color: var(--text-1);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: none;
  padding: 1rem 0;
}

body.dashboard-home .header-inner {
  max-width: 1280px;
}

body.dashboard-home .header-brand {
  gap: 0.75rem;
}

body.dashboard-home .brand-mark {
  width: 36px;
  height: 36px;
  position: relative;
  display: grid;
  gap: 3px;
  grid-template-rows: repeat(3, 1fr);
}

body.dashboard-home .brand-mark span {
  display: block;
  border-radius: 2px;
}

body.dashboard-home .brand-mark .mark-a { background: #f15a22; width: 28px; }
body.dashboard-home .brand-mark .mark-b { background: #f78f1e; width: 22px; }
body.dashboard-home .brand-mark .mark-c { background: #f9b233; width: 16px; }

body.dashboard-home .header-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #111827;
}

body.dashboard-home .header-sub {
  color: #6b7280;
  opacity: 1;
  font-size: 0.78rem;
}

body.dashboard-home .header-meta {
  text-align: right;
  color: #6b7280;
  opacity: 1;
}

body.dashboard-home .meta-label {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 0.1rem;
}

body.dashboard-home .dashboard-main {
  max-width: 1280px;
  margin: 1.4rem auto;
}

body.dashboard-home .section-label {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

body.dashboard-home .section-subtitle {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #4b5563;
}

body.dashboard-home .kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

body.dashboard-home .kpi-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transform: none;
  min-height: 220px;
}

body.dashboard-home .kpi-card::before {
  opacity: 1;
  height: 2px;
  background: linear-gradient(90deg, #f15a22, #f78f1e);
}

body.dashboard-home .kpi-card:hover,
body.dashboard-home .kpi-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(26, 32, 44, 0.1);
  border-color: #f2b08a;
}

body.dashboard-home .kpi-icon {
  font-size: 0.95rem;
  filter: grayscale(1);
  opacity: 0.6;
}

body.dashboard-home .kpi-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  color: #374151;
}

body.dashboard-home .kpi-arrow {
  color: #9ca3af;
}

body.dashboard-home .kpi-card:hover .kpi-arrow {
  color: #f15a22;
}

body.dashboard-home .kpi-value {
  font-size: 2rem;
  color: #111827;
}

body.dashboard-home .kpi-unit {
  font-size: 0.85rem;
  color: #6b7280;
}

body.dashboard-home .kpi-sub {
  color: #6b7280;
}

body.dashboard-home .kpi-cta {
  color: #f15a22;
}

body.dashboard-home .signout-btn {
  margin-top: 0.45rem;
  border: 1px solid #f5c4a6;
  background: #fff7f2;
  color: #b44b16;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.33rem 0.65rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.dashboard-home .signout-btn:hover {
  background: #fef0e8;
  border-color: #ef9f71;
}

body.dashboard-home .assistant-btn {
  margin-top: 0.45rem;
  margin-right: 0.4rem;
  border: 1px solid #d6e6ff;
  background: #f5f9ff;
  color: #1f4aa3;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.33rem 0.65rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.dashboard-home .assistant-btn:hover {
  background: #ebf3ff;
  border-color: #9fc0f7;
}

body.assistant-open {
  overflow: hidden;
}

.assistant-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 2200;
}

.assistant-overlay.open {
  opacity: 1;
  visibility: visible;
}

.assistant-modal {
  width: min(1200px, 100%);
  height: 92vh;
  max-height: 92vh;
  background: #ffffff;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.assistant-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #dbe4f0;
  background: linear-gradient(135deg, #fff7f2 0%, #eef4ff 62%, #e6f0ff 100%);
  color: #111827;
}

.assistant-modal-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.assistant-modal-header p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.assistant-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #d6e6ff;
  background: #eff6ff;
  color: #1f4aa3;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.assistant-close:hover {
  background: #e8f1ff;
}

.assistant-modal-body {
  flex: 1;
  min-height: 0;
  display: flex;
  padding: 0.9rem;
  background:
    radial-gradient(circle at 8% 12%, rgba(241, 90, 34, 0.07), transparent 32%),
    radial-gradient(circle at 92% 10%, rgba(247, 143, 30, 0.06), transparent 34%),
    linear-gradient(180deg, #f5f6f8 0%, #f1f3f6 100%);
}

.assistant-modal .data-app-host {
  flex: 1;
  min-height: 0;
  height: 100%;
}

.assistant-modal .data-app-host iframe {
  height: 100% !important;
  min-height: 0 !important;
}

@media (max-height: 820px) {
  .assistant-modal {
    height: 94vh;
    max-height: 94vh;
  }
}

@media (max-width: 1080px) {
  body.dashboard-home .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.dashboard-home .kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Login Page ───────────────────────────────────────────────────────── */
body.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 14%, rgba(241, 90, 34, 0.14), transparent 34%),
    radial-gradient(circle at 85% 6%, rgba(247, 143, 30, 0.12), transparent 36%),
    linear-gradient(180deg, #f5f6f8 0%, #eef1f5 100%);
}

.login-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.12);
  padding: 1.5rem;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.login-page .brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  gap: 3px;
  grid-template-rows: repeat(3, 1fr);
}

.login-page .brand-mark span {
  display: block;
  border-radius: 2px;
}

.login-page .brand-mark .mark-a { background: #f15a22; width: 28px; }
.login-page .brand-mark .mark-b { background: #f78f1e; width: 22px; }
.login-page .brand-mark .mark-c { background: #f9b233; width: 16px; }

.login-brand h1 {
  font-size: 1.05rem;
  line-height: 1.2;
  color: #111827;
  margin: 0;
}

.login-brand p {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: #6b7280;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.login-form label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
}

.login-form input {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.6rem 0.72rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-form input:focus {
  border-color: #f15a22;
  box-shadow: 0 0 0 3px rgba(241, 90, 34, 0.15);
}

.login-form button {
  margin-top: 0.6rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #f15a22, #f78f1e);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
}

.login-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 0.75rem;
  padding: 0.45rem 0.6rem;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.sig-header {
  background: linear-gradient(135deg, var(--sig-navy) 0%, #1e3a8a 60%, var(--sig-blue2) 100%);
  color: #fff;
  padding: 1.5rem 0 1.4rem;
  box-shadow: 0 2px 16px rgba(15,32,68,.4);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-brand { display:flex; align-items:center; gap:.875rem; }

.brand-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; letter-spacing:-.02em;
}

.header-title { font-size:1.375rem; font-weight:700; letter-spacing:-.02em; }
.header-sub   { font-size:.8125rem; opacity:.75; margin-top:.1rem; }

.header-meta  { font-size:.75rem; opacity:.6; text-align:right; }

/* ── Dashboard main ──────────────────────────────────────────────────── */
.dashboard-main {
  max-width: 1400px;
  margin: 2.5rem auto;
  padding: 0 2rem 4rem;
}

/* ── KPI Grid ────────────────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* ── KPI Card ────────────────────────────────────────────────────────── */
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sig-blue2), var(--sig-teal));
  opacity: 0;
  transition: opacity .18s ease;
}

.kpi-card:hover,
.kpi-card:focus {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #bfdbfe;
  outline: none;
}

.kpi-card:hover::before,
.kpi-card:focus::before { opacity: 1; }

/* colour accents per card */
#kpi-users     { --accent: var(--sig-blue2); }
#kpi-experience{ --accent: var(--sig-teal);  }
#kpi-certs     { --accent: var(--sig-amber); }
#kpi-clearance { --accent: var(--sig-green); }
#kpi-geo       { --accent: var(--sig-purple);}

#kpi-users::before     { background: linear-gradient(90deg, var(--sig-blue2), #60a5fa); }
#kpi-experience::before{ background: linear-gradient(90deg, var(--sig-teal), #22d3ee); }
#kpi-certs::before     { background: linear-gradient(90deg, var(--sig-amber), #fbbf24); }
#kpi-clearance::before { background: linear-gradient(90deg, var(--sig-green), #34d399); }
#kpi-geo::before       { background: linear-gradient(90deg, var(--sig-purple),#a78bfa); }

.kpi-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .25rem;
}

.kpi-icon  { font-size: 1.1rem; line-height:1; }
.kpi-label { font-size: .8125rem; font-weight: 600; color: var(--text-2); flex: 1; text-transform:uppercase; letter-spacing:.04em; }
.kpi-arrow { color: var(--text-3); font-size: 1.1rem; transition: transform .15s ease, color .15s ease; }
.kpi-card:hover .kpi-arrow { transform: translateX(3px); color: var(--sig-blue2); }

.kpi-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -.04em;
  line-height: 1.1;
}

.kpi-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0;
}

.kpi-sub {
  font-size: .75rem;
  color: var(--text-3);
  margin-top: .1rem;
}

.kpi-sparkline {
  margin-top: .75rem;
}

/* ── Modal Overlay ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-white);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(.95) translateY(12px);
  transition: transform .22s ease;
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--sig-navy) 0%, #1e3a8a 100%);
  color: #fff;
}

.modal-title-wrap { display:flex; align-items:center; gap:.625rem; }
.modal-icon  { font-size:1.25rem; }
.modal-title { font-size:1.1rem; font-weight:700; letter-spacing:-.02em; }

.modal-close {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  cursor: pointer;
  font-size: .875rem;
  transition: background .15s;
  flex-shrink: 0;
}
.modal-close:hover { background: rgba(255,255,255,.28); }

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

/* ── Modal Content Helpers ───────────────────────────────────────────── */
.modal-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .875rem;
  margin-bottom: 1.75rem;
}

.modal-stat {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}

.modal-stat-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--sig-blue2);
  letter-spacing: -.03em;
}

.modal-stat-lbl {
  font-size: .75rem;
  color: var(--text-2);
  margin-top: .2rem;
  font-weight: 500;
}

.modal-chart-wrap {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.modal-chart-title {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1rem;
}

.modal-chart-wrap canvas { display:block; }

/* Table styles */
.modal-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8125rem;
}

.modal-table th {
  background: var(--sig-navy);
  color: #fff;
  padding: .6rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  position: sticky;
  top: 0;
}

.modal-table td {
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
}

.modal-table tr:last-child td { border-bottom: none; }
.modal-table tr:nth-child(even) td { background: #f8fafc; }
.modal-table tr:hover td { background: #eff6ff; }

/* Badge */
.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 99px;
  font-size: .6875rem;
  font-weight: 600;
}

.badge-secret   { background:#dbeafe; color:#1d4ed8; }
.badge-ts       { background:#fef9c3; color:#854d0e; }
.badge-tssci    { background:#fce7f3; color:#9d174d; }
.badge-public   { background:#dcfce7; color:#166534; }
.badge-unknown  { background:#f1f5f9; color:#64748b; }
.badge-active   { background:#dcfce7; color:#166534; }
.badge-inactive { background:#fee2e2; color:#991b1b; }

/* Search box in modal */
.modal-search {
  width: 100%;
  padding: .625rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color .15s;
}
.modal-search:focus { border-color: var(--sig-blue2); }

/* Two-column layout in modal */
.modal-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
  .modal-two-col { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* Cert list pills */
.cert-bar-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .625rem;
}

.cert-bar-label {
  font-size: .75rem;
  color: var(--text-1);
  width: 200px;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cert-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.cert-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sig-amber), #fbbf24);
  transition: width .5s ease;
}

.cert-bar-count {
  font-size: .75rem;
  color: var(--text-2);
  font-weight: 600;
  width: 28px;
  text-align: right;
}

/* Donut chart legend */
.donut-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .875rem;
  margin-top: .875rem;
  justify-content: center;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  color: var(--text-2);
}

.donut-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── KPI CTA label ───────────────────────────────────────────────────── */
.kpi-cta {
  font-size: .7rem;
  font-weight: 700;
  color: var(--sig-blue2);
  opacity: 0;
  transition: opacity .18s ease;
  margin-top: .25rem;
  letter-spacing: .02em;
}
.kpi-card:hover .kpi-cta,
.kpi-card:focus .kpi-cta { opacity: 1; }

/* ── Section label ────────────────────────────────────────────────────── */
.section-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

/* ── Detail page layout ──────────────────────────────────────────────── */
.sig-header.detail-header {
  padding: 1rem 0;
  background:
    linear-gradient(135deg, #fff7f2 0%, #eef4ff 62%, #e6f0ff 100%);
  color: #111827;
  border-bottom: 1px solid #dbe4f0;
  box-shadow: none;
}

.detail-header .header-inner { gap: 1.25rem; }
.detail-header .header-sub { color: #6b7280; opacity: 1; }
.detail-header .brand-icon {
  background: #fff7f2;
  border-color: #f5c4a6;
  color: #b44b16;
}

.back-link {
  font-size: .8125rem;
  font-weight: 600;
  color: #b44b16;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .375rem .75rem;
  border-radius: 8px;
  background: #fff7f2;
  border: 1px solid #f5c4a6;
  transition: background .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.back-link:hover { background: #fef0e8; color: #8f3d12; }

.brand-divider {
  width: 1px;
  height: 28px;
  background: #e5e7eb;
  flex-shrink: 0;
}

.detail-badge {
  font-size: .75rem;
  font-weight: 700;
  color: #1f4aa3;
  background: #eff6ff;
  border: 1px solid #d6e6ff;
  padding: .375rem .875rem;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-main {
  max-width: 1200px;
  margin: 1.75rem auto 2.5rem;
  padding: 0 2rem;
}

.dataapp-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
}

.data-app-header-left {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.data-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}

.data-app-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -.01em;
}

.data-app-subtitle {
  font-size: .79rem;
  color: var(--text-2);
}

.data-app-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .3rem .65rem;
  white-space: nowrap;
}

.status-ready {
  background: #DCFCE7;
  color: #166534;
}

.status-pending {
  background: #FEF3C7;
  color: #92400E;
}

.data-app-body {
  padding: 1rem;
  background: #F8FAFC;
}

.data-app-host {
  display: block;
  width: 100%;
  min-height: 680px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-white);
}

.data-app-host iframe {
  width: 100% !important;
  height: 680px !important;
  min-height: 680px !important;
  border: none !important;
  display: block;
}

@media (max-width: 768px) {
  .detail-main {
    margin: 1rem auto 1.5rem;
    padding: 0 1rem;
  }

  .data-app-header {
    padding: .95rem 1rem;
    flex-wrap: wrap;
  }

  .data-app-body {
    padding: .75rem;
  }

  .data-app-host {
    min-height: 560px;
  }

  .data-app-host iframe {
    height: 560px !important;
    min-height: 560px !important;
  }
}

/* scrollbar */
.modal-body::-webkit-scrollbar { width:6px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius:99px; }
