/* =========================
GLOBAL THEME & RESET
Font & densitas diselaraskan dengan desain EFC (lihat Code Base/efc/assets/common.css) --
IBM Plex Sans, radius lebih kecil, token warna yang sudah sama persis dipertahankan.
========================= */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --sidebar-w: 240px;
  --sidebar-collapsed-w: 68px;

  /* Palette: Modern Slate (sama dengan token EFC) */
  --bg: #f8fafc;
  --white: #ffffff;
  --theme: #111827;
  --theme-accent: #4f46e5;

  --text: #111827;
  --muted: #64748b;
  --border: #e5e7eb;
  --accent-soft: #eef2ff;

  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --radius: 8px;

  --font-main: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;

  /* TOPBAR HEIGHT (untuk offset konten) */
  --topbar-h: 64px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  max-width: 100%;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

/* =========================
LAYOUT
========================= */
.layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow-x: clip;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.layout.is-shell-ready {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.14s ease;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: calc(100% - var(--sidebar-w));
  margin-left: var(--sidebar-w);
  min-width: 0;
  overflow-x: auto;
  padding: 0;

  /* OFFSET supaya konten tidak ketutup topbar (tanpa nurunin sidebar) */
  padding-top: var(--topbar-h);
}

.layout.is-collapsed .main {
  width: calc(100% - var(--sidebar-collapsed-w));
  margin-left: var(--sidebar-collapsed-w);
}


/* Area Konten dengan Jeda Halus */
.main-content {
  flex: 1;
  padding: 8px 8px; /* Atas-Bawah 16px, Kiri-Kanan 20px */
}

/* =========================
SIDEBAR (Minimalist White)
========================= */
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 150;
}

.layout.is-collapsed .sidebar {
  width: var(--sidebar-collapsed-w);
  flex-basis: var(--sidebar-collapsed-w);
}

.layout.is-collapsed .sidebar .name,
.layout.is-collapsed .sidebar .label {
  display: none;
}

.layout.is-collapsed .sidebar .brand {
  justify-content: center;
}

.layout.is-collapsed .sidebar .nav a,
.layout.is-collapsed .sidebar .nav-group-trigger {
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
}

.layout.is-collapsed .sidebar .nav-group-children,
.layout.is-collapsed .sidebar .chevron {
  display: none;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--theme);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex: 0 0 auto;
}

.nav {
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.nav a,
.nav-group-trigger,
.nav-update-button {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: 0.15s;
}

.nav a:hover,
.nav a.active,
.nav-group-trigger:hover,
.nav-update-button:hover,
.nav-group.is-open .nav-group-trigger,
.nav-group.has-active .nav-group-trigger {
  background: #f1f5f9;
  color: var(--theme-accent);
}

.nav a.active { font-weight: 700; }

.nav-group {
  border-radius: 9px;
}

.nav-group .chevron {
  margin-left: auto;
  font-size: 11px;
  color: #94a3b8;
  transition: transform .2s ease;
}

.nav-group.is-open .chevron {
  transform: rotate(180deg);
}

.nav-group-children {
  display: grid;
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease;
}

.nav-group.is-open .nav-group-children {
  max-height: 720px;
}

.nav-group-children .sub-link {
  padding: 6px 8px 6px 44px;
  margin-top: 2px;
  font-size: 12px;
  gap: 7px;
}

.sub-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #cbd5e1;
  flex: 0 0 6px;
}

.sub-link.active .sub-dot {
  background: var(--theme-accent);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #94a3b8;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav a:hover .nav-icon,
.nav-group-trigger:hover .nav-icon,
.nav-update-button:hover .nav-icon,
.nav a.active .nav-icon,
.nav-group.has-active .nav-icon,
.nav-group.is-open .nav-icon {
  color: var(--theme-accent);
}

.sidebar-update {
  margin-top: auto;
  padding: 8px 6px 10px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.nav-update-button {
  min-height: 36px;
}

.layout.is-collapsed .sidebar .nav-update-button {
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
}

.user-name { font-weight: 700; font-size: 12px; letter-spacing: -0.01em; }
.user-meta { font-size: 11px; color: var(--muted); }

/* =========================
TOPBAR (Full Width & Center Title)
========================= */
.topbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: var(--topbar-h);

  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: 16px;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 1000;

  left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
  right: auto;
}

.layout.is-collapsed .topbar {
  left: var(--sidebar-collapsed-w);
  width: calc(100% - var(--sidebar-collapsed-w));
}

.topbar-left{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
}

.topbar-left .crumbs{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.topbar-center{
  justify-self: center;
  min-width: 0;
}

.page-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  text-align: center;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 45vw;
}

.crumbs {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}


@media (max-width: 760px){
  .topbar{
    left: 0;
    width: 100%;
  }
}

/* =========================
BUTTONS
========================= */
.btn {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-main);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-primary {
  background: var(--theme);
  color: #fff;
  border-color: var(--theme);
}

.btn-primary:hover {
  background: #0f172a;
  border-color: #0f172a;
}

.btn-logout {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

/* =========================
APP DIALOG
========================= */
.app-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
}

.app-dialog {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.app-dialog-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef2ff;
  color: var(--theme-accent);
}

.app-dialog-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-dialog-content {
  min-width: 0;
}

.app-dialog h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
}

.app-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.app-dialog-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

/* =========================
CONTENT GRID & CARDS
========================= */
.grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 20px;
}

.grid.grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.app {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 18px 18px 16px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
  color: inherit;
}

.app:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.appIcon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  margin: 0 0 10px;
  background: #eff6ff;
  display: grid; place-items: center;
  color: var(--theme-accent);
  font-weight: 800;
  font-size: 18px;
}

.appName { font-size: 14px; font-weight: 700; }
.appBrief {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

/* =========================
RESPONSIVE
========================= */
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root {
    --topbar-h: 64px;
  }

  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    z-index: 200;
  }
  .layout.is-open .sidebar { transform: translateX(0); }
  .layout.is-collapsed .sidebar {
    width: var(--sidebar-w);
    flex-basis: var(--sidebar-w);
  }
  .main,
  .layout.is-collapsed .main {
    width: 100%;
    margin-left: 0;
  }
  .layout.is-collapsed .sidebar .name,
  .layout.is-collapsed .sidebar .label { display: initial; }
  .layout.is-collapsed .sidebar .brand,
  .layout.is-collapsed .sidebar .nav a,
  .layout.is-collapsed .sidebar .nav-group-trigger { justify-content: flex-start; }
  .layout.is-collapsed .sidebar .chevron { display: inline-flex; }

  .sidebar .nav-group,
  .sidebar .nav-group-children {
    width: 100%;
    min-width: 0;
  }

  .sidebar .nav-group-children,
  .layout.is-collapsed .sidebar .nav-group-children {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .sidebar .nav-group-children .sub-link {
    width: 100%;
    flex: 0 0 auto;
  }

  .overlay{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
    z-index: 180;
  }
  .layout.is-open .overlay { display: block; }

  .topbar {
    height: var(--topbar-h);
    padding: 10px 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
  }
  .layout.is-collapsed .topbar {
    left: 0;
    width: 100%;
  }

  .topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .topbar-left .crumbs { display: none; } /* biar ringkas di mobile */

  .topbar-center {
    justify-self: center;
    min-width: 0;
  }

  .page-title {
    max-width: 100%;
    text-align: center;
  }

  .topbar-actions {
    max-width: 42vw;
    justify-content: flex-end;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}



/*UNTUK LOGIN PAGE*/

/* =========================
LOGIN PAGE (SSO)
========================= */
.login-wrap{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 400px at 20% 10%, rgba(79,70,229,.18), transparent 60%),
    radial-gradient(900px 400px at 80% 0%, rgba(17,24,39,.10), transparent 55%),
    var(--bg);
}

.login-card{
  width: 100%;
  max-width: 440px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(2,6,23,.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transform: translateY(10px);
  opacity: 0;
  animation: loginIn .55s ease-out forwards;
}

@keyframes loginIn{
  to { transform: translateY(0); opacity: 1; }
}

.login-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--border);
}

.sso-title{
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.sso-sub{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 600;
}

.brand-logo{
  width: 160px;
  height: auto;
  opacity: .95;
}

.login-body{
  padding: 18px 22px 22px;
}

.login-body label{
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 12px 0 8px;
}

.login-body input{
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 12px 12px;
  outline: none;
  font-family: var(--font-main);
  font-size: 14px;
  transition: .18s;
}

.login-body input:focus{
  border-color: rgba(79,70,229,.55);
  box-shadow: 0 0 0 4px rgba(79,70,229,.14);
}

.login-btn{
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--theme);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform .08s ease, filter .18s ease;
}

.login-btn:hover{ filter: brightness(1.05); }
.login-btn:active{ transform: translateY(1px); }
.login-btn:disabled{ opacity: .7; cursor: not-allowed; }

.login-err{
  margin-top: 10px;
  font-size: 13px;
  color: #be123c;
  font-weight: 700;
  min-height: 18px;
  animation: none;
}

.login-err:not(:empty){
  animation: shake .28s ease-in-out;
}

@keyframes shake{
  0%,100%{ transform: translateX(0); }
  25%{ transform: translateX(-6px); }
  50%{ transform: translateX(6px); }
  75%{ transform: translateX(-4px); }
}

/* note box */
.login-note{
  max-width: 440px;
  width: 100%;
  margin-top: 12px;
  background: rgba(255,255,255,.86);
  border: 1px dashed rgba(100,116,139,.55);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  animation: noteIn .55s .15s ease-out forwards;
}

@keyframes noteIn{
  to { opacity: 1; transform: translateY(0); }
}






/* =========================
   SIMPLIFIED FORM COMPONENTS 
   ========================= */

/* Gabungkan semua teks deskripsi */
.desc { 
  font-size: 13px; 
  line-height: 1.6; 
  color: var(--muted); 
}
.desc ol { padding-left: 18px; margin: 10px 0; }

/* Grouping: Input, Textarea, dan Label Pilihan (Seg) punya basis yang sama */
.label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }

.input, .textarea, .seg label {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 14px;
  transition: 0.2s;
  outline: none;
}

/* Spesifik untuk Input & Textarea */
.input, .textarea { width: 100%; font-family: inherit; }
.input:focus, .textarea:focus { border-color: var(--theme-accent); }
.textarea { min-height: 160px; resize: vertical; }

/* Selection group (Radio buttons) */
.seg { display: flex; gap: 10px; flex-wrap: wrap; }
.seg label { 
  width: auto; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  font-size: 13px; 
}
.seg label:hover { background: #f8fafc; }

/* Submit Area */
.actions { display: flex; justify-content: center; margin-top: 24px; }

.btn-submit {
  background: var(--theme);
  color: #fff;
  padding: 10px 32px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }


/* =========================
   KOMPONEN COMPACT (ala EFC) -- dipakai bertahap tiap halaman di-redesign
   ========================= */

/* Pill status -- pengganti status-badge yang lebih besar */
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; line-height: 1.6; }
.pill-neutral { background: #eef2ff; color: #3730a3; }
.pill-yellow  { background: #fef9c3; color: #854d0e; }
.pill-blue    { background: #dbeafe; color: #1e40af; }
.pill-green   { background: #dcfce7; color: #166534; }
.pill-red     { background: #fee2e2; color: #991b1b; }
.pill-grey    { background: #e5e7eb; color: #374151; }

/* Tabs -- pengganti .tab-btn/.subtab-btn versi besar */
.tabs-compact { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: 0 0 10px; overflow-x: auto; }
.tabs-compact .tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted);
  padding: 7px 10px; cursor: pointer; white-space: nowrap;
}
.tabs-compact .tab:hover { color: var(--text); }
.tabs-compact .tab.active { color: var(--theme-accent); border-bottom-color: var(--theme-accent); }
.tabs-compact .tab-count { font-weight: 500; color: var(--muted); margin-left: 3px; }

/* Filter bar -- baris chip/search/select ringkas */
.filter-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.filter-bar input, .filter-bar select {
  font-family: inherit; font-size: 12.5px; color: var(--text); background: var(--white);
  border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px;
}
.filter-bar input[type="search"] { width: 220px; max-width: 100%; }
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: var(--theme-accent); }
.filter-count { margin-left: auto; font-size: 11.5px; color: var(--muted); }

/* Tabel compact */
table.table-compact { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.table-compact thead th {
  text-align: left; padding: 6px 10px; background: #f1f5f9; color: var(--muted);
  font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.04em;
  position: sticky; top: 0; white-space: nowrap;
}
table.table-compact tbody tr { border-bottom: 1px solid var(--border); }
table.table-compact tbody tr:last-child { border-bottom: none; }
table.table-compact tbody tr:hover { background: #fafbff; }
table.table-compact tbody td { padding: 6px 10px; vertical-align: middle; }
table.table-compact tr.row-link { cursor: pointer; }
table.table-compact td.wrap { white-space: normal; min-width: 180px; }

/* Kartu KPI ringkas -- pengganti dash-card besar di dashboard */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 0 0 10px; }
.kpi-tile { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; }
.kpi-label { font-size: 11.5px; color: var(--muted); }
.kpi-value { font-size: 20px; font-weight: 600; line-height: 1.3; font-variant-numeric: normal; }
.kpi-sub { font-size: 11px; color: var(--muted); }

/* Modal ringkas -- pengganti .modal besar (28px padding) */
.modal-box { background: var(--white); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(15,23,42,0.15); max-width: 420px; width: 100%; max-height: calc(100vh - 48px); overflow-y: auto; padding: 16px; }
.modal-box.modal-wide { max-width: 640px; }
.modal-box h2 { margin: 0 0 10px; font-size: 14px; }
.modal-box .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* Field form ringkas (ala EFC) -- label di atas field, dipakai dalam .modal-box */
.form-field { margin-bottom: 12px; }
.form-field:last-of-type { margin-bottom: 0; }
.form-field label {
  display: block; font-size: 11.5px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 5px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font-family: inherit; font-size: 13px; color: var(--text); background: var(--white);
  border: 1px solid var(--border); border-radius: 6px; padding: 7px 9px; box-sizing: border-box;
}
.form-field textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--theme-accent); box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Baris label:value -- buat halaman detail tanpa kartu besar */
.field-row { display: flex; align-items: center; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.field-row:last-child { border-bottom: none; }
.field-row > label { flex: 0 0 130px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.field-row > input, .field-row > select, .field-row > textarea {
  flex: 1; min-width: 0; border: 1px solid var(--border); background: var(--white); font-family: inherit;
  font-size: 13px; color: var(--text); padding: 5px 7px; border-radius: 6px;
}
.field-row > p { flex: 1; min-width: 0; margin: 0; font-size: 13px; }
.field-row > input:focus, .field-row > select:focus, .field-row > textarea:focus { outline: none; border-color: var(--theme-accent); }

.section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 4px; }
.section-title:first-child { margin-top: 0; }
