/* ============================================================
   NETCARE — Design System
   Font: DM Sans (body) + Sora (display/headings)
   Palette: Deep Navy #0a2342 + Teal #0e7490 + Warm White
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Sora:wght@600;700;800&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Brand */
  --brand-900: #0a2342;
  --brand-800: #0d2d55;
  --brand-700: #103666;
  --brand-600: #154e8a;
  --brand-500: #1a66b3;
  --teal-700:  #0e6e8a;
  --teal-600:  #0e7490;
  --teal-500:  #0891b2;
  --teal-100:  #cffafe;
  --teal-50:   #ecfeff;

  /* Surface */
  --bg:        #f0f4f8;
  --surface:   #ffffff;
  --surface-2: #f8fafc;
  --border:    #e2e8f0;
  --border-2:  #cbd5e1;

  /* Text */
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;

  /* Status */
  --success:    #059669;
  --success-bg: #ecfdf5;
  --warning:    #d97706;
  --warning-bg: #fffbeb;
  --danger:     #dc2626;
  --danger-bg:  #fef2f2;
  --info:       #0891b2;
  --info-bg:    #ecfeff;

  /* Layout */
  --sidebar-w:  260px;
  --topbar-h:   64px;
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 16px rgba(10,35,66,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 40px rgba(10,35,66,.12);

  /* Fonts */
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-display: 'Sora', sans-serif;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; }
input, select, textarea { font-family: var(--font-body); }

/* ── LAYOUT ──────────────────────────────────────────────── */
.nc-layout {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.nc-sidebar {
  width: var(--sidebar-w);
  background: var(--brand-900);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}

/* Subtle grid texture on sidebar */
.nc-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.nc-sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.nc-sidebar-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  /* filter dihapus — logo tampil warna aslinya */
  flex-shrink: 0;
}

.nc-sidebar-brand-text {
  line-height: 1.3;
}

.nc-sidebar-brand-text strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: .5px;
  display: block;
}

.nc-sidebar-brand-text small {
  font-size: 10px;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Role badge on sidebar */
.nc-sidebar-role {
  padding: 10px 20px 16px;
  position: relative;
  z-index: 1;
}

.nc-sidebar-role span {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--teal-500);
  background: rgba(8,145,178,.15);
  border: 1px solid rgba(8,145,178,.3);
  padding: 3px 10px;
  border-radius: 20px;
}

.nc-nav {
  list-style: none;
  padding: 8px 12px;
  flex: 1;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.nc-nav::-webkit-scrollbar { width: 4px; }
.nc-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

.nc-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 16px 8px 6px;
}

.nc-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  transition: all .2s ease;
  margin-bottom: 2px;
}

.nc-nav li a i {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  opacity: .8;
}

.nc-nav li a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.nc-nav li a:hover i { opacity: 1; }

.nc-nav li a.active {
  background: var(--teal-600);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(14,116,144,.4);
}

.nc-nav li a.active i { opacity: 1; }

.nc-nav li a.nc-logout {
  color: rgba(252,165,165,.8);
}

.nc-nav li a.nc-logout:hover {
  background: rgba(220,38,38,.2);
  color: #fca5a5;
}

/* Sidebar divider */
.nc-nav-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 10px 8px;
}

.nc-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
  color: rgba(255,255,255,.3);
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* ── MAIN WRAP ───────────────────────────────────────────── */
.nc-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOPBAR ──────────────────────────────────────────────── */
.nc-topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nc-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nc-topbar-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-900);
}

.nc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.nc-breadcrumb span { color: var(--text-secondary); font-weight: 500; }
.nc-breadcrumb i { font-size: 10px; }

.nc-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nc-topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.nc-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.nc-topbar-user-info { line-height: 1.3; }
.nc-topbar-user-info strong { font-size: 13px; font-weight: 600; display: block; }
.nc-topbar-user-info small { font-size: 11px; color: var(--text-muted); }

/* Mobile menu toggle */
.nc-menu-toggle {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
}

/* ── PAGE BODY ───────────────────────────────────────────── */
.nc-page {
  padding: 28px;
  flex: 1;
}

.nc-page-header {
  margin-bottom: 24px;
}

.nc-page-header h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-900);
  margin-bottom: 4px;
}

.nc-page-header p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ── STAT CARDS ──────────────────────────────────────────── */
.nc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.nc-stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform .2s, box-shadow .2s;
}

.nc-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.nc-stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.nc-stat-icon.blue   { background: #eff6ff; color: #2563eb; }
.nc-stat-icon.teal   { background: var(--teal-50); color: var(--teal-600); }
.nc-stat-icon.green  { background: var(--success-bg); color: var(--success); }
.nc-stat-icon.orange { background: var(--warning-bg); color: var(--warning); }
.nc-stat-icon.red    { background: var(--danger-bg); color: var(--danger); }
.nc-stat-icon.navy   { background: #eef2ff; color: var(--brand-600); }

.nc-stat-body {}
.nc-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-900);
  line-height: 1;
  margin-bottom: 4px;
}
.nc-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── CARD ────────────────────────────────────────────────── */
.nc-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.nc-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nc-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nc-card-title i {
  color: var(--teal-600);
  font-size: 16px;
}

.nc-card-body {
  padding: 24px;
}

.nc-card-body.p-0 { padding: 0; }

/* ── TABLE ───────────────────────────────────────────────── */
.nc-table-wrap {
  overflow-x: auto;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.nc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.nc-table thead tr {
  background: var(--surface-2);
}

.nc-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.nc-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-secondary);
}

.nc-table tbody tr:last-child td { border-bottom: none; }

.nc-table tbody tr:hover td {
  background: var(--teal-50);
}

.nc-table .col-no { width: 44px; text-align: center; color: var(--text-muted); }

.nc-table td.col-analisis,
.nc-table td.col-tindakan {
 width: 160px;
white-space: normal;
word-break: break-word;
line-height: 1.55;
}

/* ── BADGES ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .3px;
}

.badge-success  { background: var(--success-bg); color: var(--success); }
.badge-warning  { background: var(--warning-bg); color: var(--warning); }
.badge-danger   { background: var(--danger-bg);  color: var(--danger);  }
.badge-info     { background: var(--info-bg);     color: var(--info);   }
.badge-secondary{ background: #f1f5f9; color: var(--text-secondary); }
.badge-primary  { background: #eff6ff; color: #2563eb; }
.badge-navy     { background: #eef2ff; color: var(--brand-600); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-lg { padding: 12px 24px; font-size: 15px; }

.btn-primary {
  background: var(--teal-600);
  color: #fff;
  box-shadow: 0 2px 8px rgba(14,116,144,.25);
}
.btn-primary:hover { background: var(--teal-700); box-shadow: 0 4px 12px rgba(14,116,144,.35); transform: translateY(-1px); }

.btn-navy {
  background: var(--brand-900);
  color: #fff;
  box-shadow: 0 2px 8px rgba(10,35,66,.2);
}
.btn-navy:hover { background: var(--brand-800); transform: translateY(-1px); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #047857; transform: translateY(-1px); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; transform: translateY(-1px); }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #b45309; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-2);
  color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--teal-600); color: var(--teal-600); background: var(--teal-50); }

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--surface-2); }

/* ── FORMS ───────────────────────────────────────────────── */
.nc-form-group { margin-bottom: 20px; }

.nc-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.nc-label .req { color: var(--danger); margin-left: 2px; }

.nc-input,
.nc-select,
.nc-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  line-height: 1.5;
}

.nc-input:focus,
.nc-select:focus,
.nc-textarea:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(14,116,144,.12);
}

.nc-input::placeholder, .nc-textarea::placeholder { color: var(--text-muted); }

.nc-textarea { resize: vertical; min-height: 100px; }

.nc-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.nc-input-group .nc-input { padding-left: 40px; }
.nc-input-group .nc-input-icon {
  position: absolute;
  left: 13px;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.nc-input-group .nc-input-action {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nc-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.nc-error-msg { font-size: 12px; color: var(--danger); margin-top: 5px; font-weight: 500; }

/* Form grid */
.nc-form-row { display: grid; gap: 20px; }
.nc-form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.nc-form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── ALERTS ──────────────────────────────────────────────── */
.nc-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: 20px;
  border-left: 4px solid;
}

.nc-alert i { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

.nc-alert-success { background: var(--success-bg); color: #065f46; border-color: var(--success); }
.nc-alert-danger  { background: var(--danger-bg);  color: #7f1d1d; border-color: var(--danger);  }
.nc-alert-warning { background: var(--warning-bg); color: #78350f; border-color: var(--warning); }
.nc-alert-info    { background: var(--info-bg);    color: #0c4a6e; border-color: var(--info);    }

/* ── PROFILE ─────────────────────────────────────────────── */
.nc-profile-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 24px;
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 50%, var(--teal-700) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: #fff;
}

.nc-profile-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.4);
  flex-shrink: 0;
}

.nc-profile-info h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.nc-profile-info p { font-size: 13px; opacity: .75; }

/* ── LOGIN PAGE ──────────────────────────────────────────── */
.nc-login-page {
  min-height: 100vh;
  display: flex;
  background: var(--brand-900);
  position: relative;
  overflow: hidden;
}

.nc-login-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(14,116,144,.35) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
}

.nc-login-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,116,144,.2) 0%, transparent 70%);
  bottom: -100px; left: -50px;
  border-radius: 50%;
}

.nc-login-panel {
  width: 460px;
  margin: auto;
  position: relative;
  z-index: 2;
  padding: 20px;
}

.nc-login-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.nc-login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.nc-login-brand img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
}

.nc-login-brand h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-900);
  letter-spacing: -.5px;
}

.nc-login-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.nc-login-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
  position: relative;
}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.nc-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.nc-empty i { font-size: 48px; margin-bottom: 16px; display: block; opacity: .4; }
.nc-empty h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.nc-empty p  { font-size: 13px; }

/* ── SEARCH & FILTER BAR ─────────────────────────────────── */
.nc-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  padding: 18px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.nc-filter-bar .nc-form-group { margin-bottom: 0; }
.nc-filter-bar .nc-label { margin-bottom: 5px; }

/* ── PAGINATION ──────────────────────────────────────────── */
.nc-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.nc-page-links { display: flex; gap: 4px; }

.nc-page-links a,
.nc-page-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all .2s;
}

.nc-page-links a:hover { border-color: var(--teal-600); color: var(--teal-600); }
.nc-page-links .active { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }

/* ── OVERLAY (mobile sidebar) ────────────────────────────── */
.nc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 150;
}

.nc-overlay.show { display: block; }

/* ── PRINT ───────────────────────────────────────────────── */
@media print {
  .nc-sidebar, .nc-topbar, .nc-menu-toggle { display: none !important; }
  .nc-main { margin-left: 0 !important; }
  .nc-page { padding: 0; }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 230px; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 260px; }

  .nc-sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }

  .nc-sidebar.open { transform: translateX(0); }

  .nc-main { margin-left: 0; }

  .nc-menu-toggle { display: flex; }

  .nc-topbar { padding: 0 16px; }

  .nc-page { padding: 16px; }

  .nc-stats { grid-template-columns: 1fr 1fr; }

  .nc-form-row.cols-2,
  .nc-form-row.cols-3 { grid-template-columns: 1fr; }

  .nc-breadcrumb { display: none; }

  .nc-table th, .nc-table td { padding: 10px 12px; }

  .nc-profile-card { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .nc-stats { grid-template-columns: 1fr; }
  .nc-login-box { padding: 28px 20px; }
  .nc-topbar-user-info { display: none; }
}

/* ── TIMELINE ────────────────────────────────────────────── */
/* Baris selisih antar step — token diperbaiki ke design system */
.tl-delta-row   { display:flex; align-items:flex-start; padding:4px 18px 0; flex-wrap:wrap; }
.tl-delta-gap   { flex:1; min-width:90px; display:flex; justify-content:center; }
.tl-delta-ph    { flex:1; min-width:90px; }
.tl-delta-pill  { font-size:10px; color:var(--text-secondary);
                  background:var(--surface-2);
                  border:1px solid var(--border-2);
                  border-radius:99px; padding:1px 7px; white-space:nowrap; }
/* Total durasi footer */
.tl-total       { display:flex; align-items:center; justify-content:flex-end;
                  padding:8px 18px 12px; border-top:1px solid var(--border);
                  margin-top:8px; gap:6px; font-size:12px; }
.tl-total-label { color:var(--text-secondary); }
.tl-total-val   { font-weight:600; color:var(--teal-700); }

/* =========================
   TIMELINE — DOMINAN BRAND
   ========================= */

.tl-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* garis penghubung antar step */
.tl-steps {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  margin-top: 10px;
}

.tl-steps::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 84, 119, 0.15); /* #005477 transparan */
  z-index: 0;
}

.tl-step {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* DOT UTAMA */
.tl-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin: auto;
  margin-bottom: 6px;
  border: 2px solid #005477;
  background: #fff;
  transition: all .25s ease;
}

/* STATUS */
.tl-dot.done {
  background: #005477;
  box-shadow: 0 0 0 4px rgba(0, 84, 119, 0.15);
}

.tl-dot.aktif {
  background: #005477;
  animation: pulseDot 1.5s infinite;
}

.tl-dot.pending {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

/* LABEL */
.tl-label {
  font-size: 12px;
  font-weight: 600;
  color: #005477;
}

/* WAKTU */
.tl-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* ANIMASI AKTIF */
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(0, 84, 119, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 84, 119, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 84, 119, 0); }
}
.tl-step:hover .tl-dot {
  transform: scale(1.15);
}


/* FEEDBACK OPD */
/* Star Rating */
.star-rating {
  display: inline-flex;          /* ← inline-flex agar width menyesuaikan konten */
  flex-direction: row-reverse;   /* bintang 5 di kiri, 1 di kanan secara visual */
  justify-content: flex-end;     /* ← kembalikan ke flex-end */
  gap: 4px;
}
.star-rating input[type="radio"] {
  display: none;
}
.star-rating label {
  font-size: 28px;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.15s;
}
.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f59e0b;
}

