/* PT Rinca Cipta Karya — panel admin */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --brown: #1F5D35; --brown-text: #16492a; --brown-light: #86efac;
  --green: #1F5D35; --green-dark: #0C2215; --green-deep: #032F1E;
  --bg: #F3F4F6; --paper: #F9FAFB; --white: #fff; --sand: #E5E7EB;
  --ink: #0f172a; --muted: #556070; --line: #e5e7eb; --line-strong: #d1d5db;
  --danger: #b42318; --danger-bg: #fef3f2; --ok: #15803d; --ok-bg: #dcfce7; --warn: #92400e; --warn-bg: #fef3c7;
  --accent: #22c55e;
  --radius: 10px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 .8em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inline { display: inline; margin: 0; }
.ic { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }

/* Tata letak */
.admin { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--green-deep); color: rgba(243, 238, 229, .78); display: flex; flex-direction: column; padding: 22px 14px; overflow-y: auto; }
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 22px; text-decoration: none; }
.sb-brand img { height: 36px; width: auto; }
.sb-brand > span, .login-brand > span { display: flex; flex-direction: column; gap: 4px; }
.wm { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: #f3eee5; line-height: 1; }
.wm-sub { font-size: .66rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--brown-light); }
.sb-nav { display: grid; gap: 2px; }
.sb-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: inherit; text-decoration: none; font-weight: 500; transition: background .15s; }
.sb-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sb-nav a.is-active { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 3px 0 0 var(--brown-light); }
.sb-nav .count { margin-left: auto; background: var(--brown); color: #fff; font-size: .75rem; font-weight: 700; min-width: 22px; height: 22px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.sb-sep { margin: 18px 12px 6px; font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(243, 238, 229, .66); }
.sb-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 4px; }
.sb-site, .sb-logout { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: inherit; text-decoration: none; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; font-weight: 500; }
.sb-site:hover, .sb-logout:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 32px; background: rgba(244, 241, 236, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-title { margin: 0; font-weight: 600; }
.topbar-user { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }
.sb-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; }
.content { padding: 28px 32px 64px; max-width: 1320px; width: 100%; }
.sb-backdrop { display: none; }
@media (max-width: 960px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .25s ease; }
  .sb-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .35); }
  .sb-open .sb-backdrop { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(20, 25, 22, .45); }
  .sb-toggle { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 48px; }
}

/* Judul halaman */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.page-h { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; line-height: 1.1; }
.page-head .muted { margin: 6px 0 0; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.back { display: inline-block; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--muted); margin-bottom: 8px; }
.back:hover { color: var(--green); }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--ink); }
.btn--primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn--danger { color: var(--danger); border-color: #e2c0b9; }
.btn--danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--sm { min-height: 34px; padding: 6px 12px; font-size: .85rem; }
.btn--block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--sand); color: var(--ink); }
.icon-btn--danger:hover { background: var(--danger-bg); color: var(--danger); }
.link { font-weight: 600; font-size: .88rem; text-decoration: none; }

/* Panel */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel + .panel, .stack > * + * { margin-top: 20px; }
.grid-2 > .panel + .panel { margin-top: 0; }
.panel--flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2, .panel-title, .panel--tip h2 { font-size: 1.05rem; font-weight: 700; }
.panel-title { margin-bottom: 14px; }
.panel--tip { background: var(--paper); border-style: dashed; }
.panel--tip h2 { margin-bottom: 8px; }
.panel--tip p { color: var(--muted); margin: 0; font-size: .92rem; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-2--wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.narrow { max-width: 560px; }
@media (max-width: 1100px) { .grid-2, .grid-2--wide { grid-template-columns: minmax(0, 1fr); } }

/* Flash */
.flashes { padding: 0 32px; max-width: 1320px; }
.flashes:empty { display: none; }
.flashes .flash:first-child { margin-top: 20px; }
.flash { position: relative; padding: 12px 44px 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; border: 1px solid transparent; }
.flash--success { background: var(--ok-bg); color: var(--ok); border-color: #c9e2d1; }
.flash--error { background: var(--danger-bg); color: var(--danger); border-color: #efcdc6; }
.flash--info { background: var(--warn-bg); color: var(--warn); border-color: #f0dcb0; }
.flash-x { position: absolute; right: 8px; top: 6px; background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; padding: 4px 8px; }
@media (max-width: 960px) { .flashes { padding: 0 16px; } }

/* Dasbor */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.stat:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.stat--hl { border-color: var(--brown); background: #fbf7f1; }
.stat-n { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; line-height: 1; color: var(--green); }
.stat--hl .stat-n { color: var(--brown-text); }
.stat-l { font-weight: 700; margin-top: 10px; }
.stat-s { color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.progress { height: 6px; background: var(--sand); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.progress span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.progress-label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checklist li { display: flex; gap: 14px; padding: 12px 8px; border-radius: 8px; }
.checklist li:hover { background: var(--paper); }
.cl-mark { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.is-done .cl-mark { background: var(--green); border-color: var(--green); color: #fff; }
.checklist a { font-weight: 700; text-decoration: none; color: var(--ink); }
.checklist a:hover { color: var(--green); text-decoration: underline; }
.is-done a { color: var(--muted); text-decoration: line-through; }
.checklist p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.msg-mini { list-style: none; margin: 0; padding: 0; }
.msg-mini li + li { border-top: 1px solid var(--line); }
.msg-mini a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; text-decoration: none; color: inherit; }
.msg-mini a:hover strong { color: var(--green); text-decoration: underline; }
.msg-mini span { grid-column: 1; color: var(--muted); font-size: .88rem; }
.msg-mini time { grid-column: 2; grid-row: 1; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.msg-mini .is-unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brown); margin-right: 8px; vertical-align: middle; }
.empty-note { color: var(--muted); margin: 0; }

/* Tabel */
.table-wrap { overflow-x: auto; position: relative; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfbf8; }
.col-thumb { width: 84px; }
.col-actions { text-align: right; white-space: nowrap; }
.col-actions > * { vertical-align: middle; }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--sand); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.thumb--round { width: 44px; height: 44px; border-radius: 50%; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.cell-title { font-weight: 700; color: var(--ink); text-decoration: none; }
.cell-title:hover { color: var(--green); text-decoration: underline; }
.cell-sub { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--sand); color: var(--muted); }
.pill--sample { background: #f4ecdf; color: var(--brown-text); border: 1px dashed var(--brown); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--late { background: var(--danger-bg); color: var(--danger); font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--on { background: var(--ok-bg); color: var(--ok); }
.status--off { background: var(--sand); color: var(--muted); }
.status--sched { background: var(--warn-bg); color: var(--warn); }
.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); }
.search { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 12px; height: 42px; color: var(--muted); }
.search input { border: 0; outline: 0; background: none; width: 180px; height: 100%; }
@media (max-width: 760px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { position: relative; padding: 14px 16px 14px 96px; border-bottom: 1px solid var(--line); min-height: 88px; }
  .table td { padding: 2px 0; border: 0; }
  .table td.col-thumb { position: absolute; left: 16px; top: 16px; width: auto; }
  .table td[data-label="Status"], .table td[data-label="Tanggal terbit"] { display: inline-block; width: auto; margin-right: 8px; }
  .table .col-actions { text-align: left; margin-top: 8px; }
  .table tr:not(:has(.col-thumb)) { padding-left: 16px; }
  .search input { width: 120px; }
}

/* Formulir */
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field-image > label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.req { color: var(--danger); }
.lang-tag { display: inline-block; font-size: .65rem; letter-spacing: .1em; padding: 1px 6px; border-radius: 4px; background: var(--sand); color: var(--muted); vertical-align: 2px; margin-left: 4px; }
.field input[type=text], .field input[type=email], .field input[type=url], .field input[type=password], .field input[type=number], .field input[type=datetime-local], .field input[type=search], .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); font-size: .95rem; line-height: 1.5; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(57, 74, 64, .15); }
.field input[type=file] { font-size: .88rem; max-width: 100%; }
.help { font-size: .83rem; color: var(--muted); margin: 6px 0 0; }
.err { font-size: .85rem; color: var(--danger); font-weight: 600; margin: 6px 0 0; }
.has-error input, .has-error textarea, .has-error select, .has-error .rte { border-color: var(--danger) !important; }
.check { display: flex !important; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.check--sm { font-weight: 500; font-size: .88rem; margin-top: 8px; color: var(--danger); }
.counter { float: right; font-size: .78rem; font-weight: 600; color: var(--muted); margin-top: 6px; }
.counter.is-over { color: var(--danger); }
.slug-input { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--white); }
.slug-input:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(57, 74, 64, .15); }
.slug-prefix { display: inline-flex; align-items: center; padding: 0 10px; background: var(--paper); color: var(--muted); font-size: .85rem; border-right: 1px solid var(--line); white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.slug-input input { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; min-width: 0; }

/* Tab bahasa */
.lang-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--sand); border-radius: 10px; margin-bottom: 12px; }
.lang-tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 7px; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.lang-tabs button.is-active { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.dot-warn { width: 8px; height: 8px; border-radius: 50%; background: #d49a2a; display: inline-block; }
.lang-note { background: var(--warn-bg); color: var(--warn); padding: 10px 14px; border-radius: 8px; font-size: .88rem; margin-bottom: 16px; }
.edit-form[data-lang-active="id"] .i18n[data-lang="en"], .edit-form[data-lang-active="en"] .i18n[data-lang="id"] { display: none; }
.i18n.has-error-hidden { display: block; }

.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.edit-side { position: sticky; top: 80px; }
.meta-note { color: var(--muted); font-size: .8rem; margin: 10px 4px 0; }
.save-bar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.danger-zone { margin-top: 32px; padding-top: 20px; border-top: 1px dashed var(--line-strong); }
@media (max-width: 1060px) { .edit-grid { grid-template-columns: 1fr; } .edit-side { position: static; } }

/* Gambar */
.img-preview { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--paper); border: 1px dashed var(--line-strong); margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview.is-empty span { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; }
.img-preview.is-empty em { font-style: normal; }
.gallery-edit, .gallery-new { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 10px; }
.gallery-new:empty, .gallery-edit:empty { display: none; }
.g-item { position: relative; display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.g-keep { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .92); border-radius: 6px; padding: 2px 8px 2px 4px; font-size: .75rem; font-weight: 700; }
.g-item:has(input:not(:checked)) img { opacity: .3; filter: grayscale(1); }
.gallery-new img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; outline: 2px solid var(--green); }

/* Editor teks */
.rte { border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); }
.rte:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(57, 74, 64, .12); }
.rte-toolbar { position: sticky; top: 60px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--paper); border-radius: 8px 8px 0 0; }
.rte-toolbar button { min-width: 34px; height: 32px; padding: 0 9px; border: 1px solid transparent; background: none; border-radius: 6px; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.rte-toolbar button:hover { background: var(--white); border-color: var(--line); }
.rte-toolbar button.is-on { background: var(--green); color: #fff; }
.rte-toolbar .sep { width: 1px; height: 20px; background: var(--line-strong); margin: 0 4px; }
.rte-area { min-height: 380px; max-height: 70vh; overflow-y: auto; padding: 18px 20px; outline: none; font-size: 1rem; line-height: 1.75; }
.rte-area:empty::before { content: "Mulai menulis di sini…"; color: var(--muted); }
.rte-source { display: none; width: 100%; min-height: 380px; border: 0; border-radius: 0 0 8px 8px; padding: 16px; font: 13px/1.6 ui-monospace, Menlo, Consolas, monospace; resize: vertical; }
.rte.is-source .rte-area { display: none; }
.rte.is-source .rte-source { display: block; }
.rte.is-source .rte-toolbar button:not(.rte-src) { opacity: .35; pointer-events: none; }
.rte.is-busy { opacity: .6; pointer-events: none; }
.prose h2 { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; margin: 1.2em 0 .4em; line-height: 1.2; }
.prose h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: 1.1em 0 .4em; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose blockquote { margin: 1em 0; padding-left: 16px; border-left: 3px solid var(--brown); font-style: italic; color: var(--muted); }
.prose img { border-radius: 6px; margin: 1em 0; max-height: 360px; width: auto; }
.prose a { color: var(--green); }
.prose .video, .prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--sand); }

/* Pratinjau Google */
.panel--seo summary { cursor: pointer; list-style: none; }
.panel--seo summary::-webkit-details-marker { display: none; }
.panel--seo summary h2 { font-size: 1.05rem; font-weight: 700; display: inline; }
.panel--seo summary::before { content: "▸"; display: inline-block; margin-right: 8px; transition: transform .2s; color: var(--muted); }
.panel--seo[open] summary::before { transform: rotate(90deg); }
.panel--seo[open] summary { margin-bottom: 18px; }
.serp { border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 20px; background: #fff; font-family: Arial, sans-serif; }
.serp-url { color: #202124; font-size: 13px; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-title { color: #1a0dab; font-size: 19px; line-height: 1.3; margin: 0 0 4px; }
.serp-desc { color: #4d5156; font-size: 14px; line-height: 1.5; margin: 0; }

/* Pesan */
.seg { display: inline-flex; background: var(--sand); padding: 4px; border-radius: 10px; }
.seg a { padding: 7px 14px; border-radius: 7px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .88rem; }
.seg a.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.inbox { list-style: none; margin: 0; padding: 0; }
.inbox li + li { border-top: 1px solid var(--line); }
.inbox a { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 14px; padding: 16px 20px; text-decoration: none; color: inherit; }
.inbox a:hover { background: var(--paper); }
.ib-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; }
.is-unread .ib-dot { background: var(--brown); }
.ib-main { display: grid; gap: 2px; min-width: 0; }
.ib-main strong { font-weight: 600; }
.is-unread .ib-main strong { font-weight: 800; }
.ib-meta { font-size: .82rem; color: var(--brown-text); font-weight: 600; }
.ib-text { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox time { color: var(--muted); font-size: .82rem; text-align: right; }
.message-body { font-size: 1.02rem; line-height: 1.75; white-space: normal; }
.dl { margin: 0 0 20px; }
.dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dl dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.dl dd { margin: 0; font-weight: 600; word-break: break-word; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Pengaturan */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.jump a { padding: 7px 14px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .86rem; }
.jump a:hover { border-color: var(--green); color: var(--green); }
.settings-group { scroll-margin-top: 80px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px 40px; }
.sg-head h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.sg-head p { font-size: .88rem; }
.sg-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.sg-fields .field { margin-bottom: 20px; }
.sg-fields .field--wide { grid-column: 1 / -1; }
.sg-fields--images { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.sg-fields--images .field { margin: 0; }
@media (max-width: 1060px) { .settings-group { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .sg-fields { grid-template-columns: 1fr; } }

/* Login */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--green-deep); padding: 24px 16px; }
.login { width: 100%; max-width: 420px; }
.login-card { background: var(--paper); border-radius: 14px; padding: 36px 32px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.login-brand img { height: 48px; width: auto; }
.login-brand .wm { color: var(--green); }
.login-brand .wm-sub { color: var(--brown-text); }
.login-card h1 { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin-bottom: 4px; }
.login-card .muted { margin-bottom: 24px; }
.login-card .btn { margin-top: 8px; min-height: 48px; }
.login-back { margin: 20px 0 0; text-align: center; font-size: .88rem; }
.login-back a { color: var(--muted); text-decoration: none; }

.steps { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .92rem; }
.steps li { margin-bottom: 8px; }

/* Pengajuan proyek & Penulis AI */
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 4px; font: 700 .78rem/1 var(--sans); vertical-align: 2px; }
.score--a { background: var(--green); color: #fff; }
.score--b { background: #e8e1cf; color: var(--brown-text); }
.score--c, .score--d { background: var(--sand); color: var(--muted); }
.score-note { background: var(--bg); border-left: 3px solid var(--green); padding: 12px 16px; font-size: .9rem; margin-bottom: 20px; }
.pill--ai { background: #e4ebe6; color: var(--green); }
.ai-status { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.code-row { display: flex; gap: 8px; align-items: stretch; margin: 8px 0 16px; }
.code-row code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: var(--green-deep); color: #e8efe9; padding: 10px 12px; border-radius: 6px; font: .82rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.run-table td { vertical-align: top; font-size: .88rem; }
.run-ok { color: var(--ok); font-weight: 700; }
.run-error { color: var(--danger); font-weight: 700; }
.run-running { color: var(--warn); font-weight: 700; }
.busy-note { display: none; margin-top: 12px; font-size: .9rem; color: var(--warn); font-weight: 600; }
form.is-busy .busy-note { display: block; }
.topic-next { background: var(--bg); border-radius: 8px; padding: 14px 16px; margin: 0 0 16px; }
.topic-next strong { display: block; }

/* =========================================================
   Peran, rekrutmen, CRM, kesehatan & keamanan
   ========================================================= */
.small { font-size: .85rem; }
.text-danger { color: var(--danger); }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; }
.role-tag { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--sand); color: var(--brown-text); padding: 2px 8px; border-radius: 99px; margin-left: 4px; }
.topbar-user { text-decoration: none; }
.login-alt { margin: 18px 0 0; text-align: center; font-size: .9rem; }
.code-input { font-size: 1.4rem !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.empty-state--page { padding: 64px 24px; text-align: center; max-width: 560px; margin: 0 auto; }
.sub-h { font-size: .95rem; font-weight: 700; margin: 20px 0 10px; }
.sub-h.ok { color: var(--ok); } .sub-h.no { color: var(--danger); }

/* Pipeline & filter */
.pipeline { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.pipeline a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--white); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; }
.pipeline a span { color: var(--muted); font-weight: 500; }
.pipeline a.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.pipeline a.is-active span { color: rgba(255,255,255,.7); }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 16px; align-items: end; }
.filters .field { margin: 0; }
.filters .field label { font-size: .8rem; }
.filters input, .filters select { width: 100%; }
.filters-actions { display: flex; gap: 12px; align-items: center; padding-bottom: 4px; }
.table tr.is-unread td:first-child { box-shadow: inset 3px 0 0 var(--brown); }
.table--compact td, .table--compact th { padding: 8px 12px; }

/* Tahap (stage) */
.stage { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--sand); color: var(--ink); white-space: nowrap; }
.stage--lg { font-size: .85rem; padding: 6px 12px; }
.stage--new { background: #fbf1dc; color: #7a4f0a; }
.stage--screening, .stage--contacted { background: #e8eef6; color: #27456b; }
.stage--assessment, .stage--qualified { background: #eee8f5; color: #4e3a70; }
.stage--interview, .stage--consultation { background: #e6f0ee; color: #1f5a4c; }
.stage--offer, .stage--proposal, .stage--negotiation { background: #f3e9e2; color: #6b4331; }
.stage--hired, .stage--won { background: var(--ok-bg); color: var(--ok); }
.stage--rejected, .stage--lost, .stage--withdrawn { background: #eeeeec; color: #555; }
.stage--nurture { background: #f1f4ea; color: #4d5b2b; }

/* Detail pelamar / prospek */
.status-form .check, .check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .9rem; }
.check input { margin-top: 3px; accent-color: var(--green); }
[data-reject-only], [data-lost-only] { display: none; }
.is-reject [data-reject-only], .is-lost [data-lost-only] { display: flex; }
.is-lost [data-lost-only].field { display: block; }
.timeline { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.timeline li { border-left: 2px solid var(--line-strong); padding: 4px 0 6px 14px; }
.timeline .tl--status, .timeline .tl--stage { border-color: var(--green); }
.timeline .tl--email { border-color: var(--brown); }
.tl-meta { font-size: .8rem; color: var(--muted); margin: 0 0 4px; }
.tl-body { font-size: .92rem; white-space: normal; }
.note-form { display: grid; gap: 10px; }
.note-form textarea, .result-form textarea, .script-text { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); }
.invite { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.invite-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.answers ol { padding-left: 20px; } .answers li { display: grid; gap: 2px; margin-bottom: 8px; font-size: .9rem; }
.result-box { background: var(--paper); border-radius: 8px; padding: 12px; margin-top: 10px; }
.result-form summary, .answers summary, .danger-zone summary, .script summary, .pb-obj summary { cursor: pointer; font-weight: 600; margin: 10px 0; }
.invite-new { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.invite-new .field { margin: 0; flex: 1; min-width: 200px; }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.file-list li > span:first-child { display: grid; }
.seg--sm { margin-bottom: 12px; }
.seg--sm button, .seg--radio label span { padding: 6px 10px; font-size: .82rem; }
.seg button { background: var(--white); border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; margin-right: 4px; }
.seg--radio { display: flex; flex-wrap: wrap; gap: 6px; }
.seg--radio label { cursor: pointer; }
.seg--radio input { position: absolute; opacity: 0; }
.seg--radio label span { display: inline-block; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--white); }
.seg--radio input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.seg--radio input:focus-visible + span { outline: 2px solid var(--brown); outline-offset: 2px; }
.copy-field { width: 100%; margin-top: 8px; font-family: ui-monospace, monospace; font-size: .8rem; padding: 8px; }
.grant-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.grant-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.grant-list li.is-off { opacity: .55; }
.caps-table td:not(:first-child), .caps-table th:not(:first-child) { text-align: center; width: 90px; }

/* MFA */
.mfa-setup { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin: 16px 0 20px; }
.mfa-setup .qr svg { display: block; border: 1px solid var(--line); border-radius: 8px; }
.secret { font-size: 1.05rem; letter-spacing: .08em; word-break: break-all; }
.recovery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 16px 0 20px; }
.recovery code { display: block; text-align: center; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; font-size: 1rem; letter-spacing: .08em; }

/* CRM & pedoman */
.stats--inline { margin: 8px 0 16px; }
.stats--2 { grid-template-columns: 1fr 1fr; }
.playbook-panel { border-top: 3px solid var(--green); }
.guide-steps { padding-left: 20px; margin: 10px 0 14px; } .guide-steps li { margin-bottom: 6px; }
.script { border: 1px solid var(--line); border-radius: 8px; padding: 0 12px 12px; margin-bottom: 10px; background: var(--paper); }
.playbook .pb-list { padding-left: 20px; } .playbook .pb-list li { margin-bottom: 8px; }
.pb-stage { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; scroll-margin-top: 80px; }
.pb-stage h3 { margin-bottom: 10px; }
.pb-script pre, .pb-obj pre { white-space: pre-wrap; font: .9rem/1.55 var(--sans); background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 6px; padding: 12px 14px; margin: 6px 0 12px; }
.pb-obj { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.stage-flow { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 8px; counter-reset: sf; }
.stage-flow li a { display: inline-block; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: .82rem; text-decoration: none; }
.dl--wide > div { grid-template-columns: 200px 1fr; }
@media print { .sidebar, .topbar, .page-actions, .jump, .flashes, #catatan-tim form { display: none !important; } .admin { display: block; } .panel { break-inside: avoid; box-shadow: none; } details { display: block; } }

/* Kesehatan & keamanan */
.hc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.hc-grid--mini { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 16px; }
.hc { position: relative; display: grid; gap: 2px; padding: 12px 14px 12px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--ink); }
.hc-dot { position: absolute; left: 12px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: #b9b9b3; }
.hc--ok .hc-dot { background: var(--ok); }
.hc--warn .hc-dot { background: #c98a1a; }
.hc--fail .hc-dot { background: var(--danger); }
.hc--fail { border-color: var(--danger); background: var(--danger-bg); }
.hc--warn { border-color: #e3c68f; }
.hc-l { font-weight: 700; font-size: .92rem; }
.hc-st { font-weight: 600; font-size: .75rem; color: var(--muted); margin-left: 4px; }
.hc-v { font-size: .86rem; }
.hc-d { font-size: .76rem; color: var(--muted); }
.sev { display: inline-block; min-width: 64px; text-align: center; padding: 3px 8px; border-radius: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.sev--info, .sev--low { background: #eeeeec; color: #444; }
.sev--medium { background: var(--warn-bg); color: var(--warn); }
.sev--high { background: #f7e1dc; color: #8e2f20; }
.sev--critical { background: #8e2f20; color: #fff; }
.inc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.inc-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.inc-list .muted { font-size: .8rem; }
.notif-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .88rem; }
.file-diff { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 4px; font-size: .85rem; }
.spark { width: 100%; height: auto; max-height: 160px; overflow: visible; }
.spark-axis { stroke: var(--line-strong); stroke-width: 1; }
.spark-th { stroke: var(--brown); stroke-width: 1; stroke-dasharray: 4 4; }
.spark-lbl { font: 600 10px var(--sans); fill: var(--brown-text); }
.spark-line { fill: none; stroke: var(--green); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-pt circle:last-of-type { fill: var(--green); stroke: var(--white); stroke-width: 1.5; }
.spark-pt.is-bad circle:last-of-type { fill: var(--brown); }
.spark-hit { fill: transparent; stroke: none; }
.spark-pt:hover circle:last-of-type { r: 5; }
code.copyable { display: block; padding: 8px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; font-size: .78rem; word-break: break-all; }
.preview-items li { margin-bottom: 14px; }
@media (max-width: 700px) { .inc-list a { grid-template-columns: auto 1fr; } .inc-list a .muted { grid-column: 2; } .dl--wide > div { grid-template-columns: 1fr; } .recovery { grid-template-columns: 1fr; } }
.seg--radio { background: none; padding: 0; display: flex; }


/* =========================================================
   Rinca — modul tambahan
   ========================================================= */
.sb-brand { flex-direction: column; align-items: flex-start; gap: 6px; }
.sb-brand img { height: 40px; }
.sb-brand .wm-sub { color: #86efac; }
.login-body { background: linear-gradient(180deg, #032F1E, #0C2215); }
.login-brand { background: #032F1E; border-radius: 12px; padding: 14px 16px; }
.login-brand img { height: 52px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tabs a { padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .85rem; font-weight: 600; }
.tabs a.is-active, .tabs a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.link-list { margin: 0 0 12px; padding-left: 18px; }
.link-list li { margin-bottom: 4px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; margin: 8px 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.inline-form input[type=text], .inline-form input[type=date], .inline-form input[type=month], .inline-form input[type=time], .inline-form select { width: auto; min-width: 140px; flex: 0 1 auto; }
.input-sm { width: 120px !important; padding: 5px 8px !important; font-size: .85rem; }
.ok { color: var(--ok); font-weight: 600; }
.pill--client { background: var(--ok-bg); color: var(--ok); }
.progress--lg { height: 10px; }
.progress { margin-bottom: 6px; }
td .progress { min-width: 90px; margin-bottom: 2px; }
.stage--survey { background: #e6f0ee; color: #1f5a4c; }
[data-won-only] { display: none; }
.is-won [data-won-only].field { display: block; }
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }
.stats--inline { display: flex; flex-wrap: wrap; gap: 10px; }
.stats--inline .stat { flex: 1 1 140px; }
.notif-list { list-style: none; padding: 0; margin: 0; }
.notif-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.notif-list li:last-child { border-bottom: 0; }
.notif-list a { text-decoration: none; color: var(--ink); }
.notif-list a:hover strong { color: var(--green); }

/* Berkas proyek */
.ops-stages { list-style: none; padding: 0; margin: 16px 0 8px; }
.ops-stage { position: relative; padding: 0 0 14px 30px; }
.ops-stage::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.ops-stage:last-child::before { display: none; }
.ops-stage-head { display: flex; gap: 10px; }
.ops-dot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; }
.ops-stage.is-done .ops-dot { background: var(--green); border-color: var(--green); }
.ops-stage.is-done .ops-dot::after { content: "✓"; color: #fff; font-size: 12px; position: absolute; left: 4px; top: 0; }
.ops-stage.is-progress .ops-dot { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.ops-stage.is-skipped { opacity: .55; }
.ops-stage-edit { margin-top: 4px; }
.ops-stage-edit summary { cursor: pointer; color: var(--green); }
.tl-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tl-files img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.file-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .8rem; text-decoration: none; }
.timeline .tl--client { border-left-color: var(--accent); }

/* Absensi */
.att-clock { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .att-clock { grid-template-columns: minmax(240px, 1fr) 2fr; } }
.att-time { font-size: 3rem; font-weight: 800; color: var(--green); margin: 0 0 8px; line-height: 1; }
.att-date { color: var(--muted); margin: 0 0 6px; }
.att-steps { display: grid; gap: 14px; }
.att-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.att-step > div { flex: 1; min-width: 0; }
.att-step-n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.att-cam { margin: 8px 0; }
.att-cam video, .att-cam img { width: 100%; max-width: 320px; border-radius: 12px; background: #000; transform: scaleX(-1); }
.att-cam img { transform: none; }
.att-step input[type=text] { margin-bottom: 8px; }
.btn--lg { padding: 12px 22px; font-size: 1rem; }
.att-card .stats { margin-bottom: 10px; }
button.link, .link-btn { background: none; border: 0; padding: 0; color: var(--green); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
button.link.text-danger { color: var(--danger); }
.note-form .check--sm, .inline-form .check--sm, #dokumen .check--sm, .check-grid .check--sm { color: var(--ink); font-weight: 500; }
#dokumen .file-list { list-style: none; padding: 0; margin: 0 0 12px; }
#dokumen .file-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
#dokumen .file-list li > a { flex: 1 1 100%; font-weight: 600; word-break: break-word; }
.row-actions form.inline { display: inline; }
[hidden] { display: none !important; }

/* Kalkulator estimasi */
.calc-head { padding: 18px 20px 6px; border-bottom: 0; }
.calc-head p { margin: 4px 0 0; max-width: 820px; }
.calc-table td { vertical-align: top; }
.calc-table tr.has-error td { background: var(--danger-bg, #fef2f2); }
.calc-in { width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); font-size: .92rem; }
.calc-in:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(57, 74, 64, .15); }
.calc-in--num { width: 68px; }
.calc-days { display: flex; align-items: center; gap: 6px; }
.calc-days span { color: var(--muted); }
.calc-table td:first-child { min-width: 190px; }
.calc-table th { white-space: normal; }
.calc-in--money { width: 130px; }
.calc-in--text { min-width: 160px; }
.calc-check { margin: 8px 0 0; font-weight: 500; white-space: nowrap; }
.calc-prev { font-weight: 700; color: var(--green); }
.calc-foot { padding: 12px 20px 18px; margin: 0; }
.calc-pair { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.calc-pair input { width: 96px !important; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; }
.calc-pair span { color: var(--muted); font-size: .9rem; }
.calc-fee-opts { padding: 18px 20px 4px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .calc-table td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
  .calc-table td[data-label="Layanan"]::before { display: none; }
  .calc-in--money { width: 100%; }
  .calc-in--num { width: 90px; }
  .calc-table td:first-child { min-width: 0; }
}
.panel p code, .panel li code { overflow-wrap: anywhere; }

/* =========================================================
   RIKSA v3 — workspace proyek, pekerjaan saya, dashboard owner
   ========================================================= */
.note-form input[type=text], .note-form input[type=email], .note-form input[type=url], .note-form input[type=number], .note-form input[type=date], .note-form input[type=datetime-local], .note-form select,
.inline-form input[type=text], .inline-form input[type=email], .inline-form input[type=url], .inline-form input[type=number], .inline-form input[type=date], .inline-form input[type=datetime-local], .inline-form select,
.field input[type=date], .task-form select, .report-form textarea, .finding-row input, .fu-row input, .fu-row select, .table input.input-sm, .table select, .table input[type=text] {
  padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); min-height: 40px; max-width: 100%;
}
.note-form input[type=text], .note-form input[type=email], .note-form input[type=url], .note-form select, .field input[type=date], .report-form textarea { width: 100%; }
.field input[type=date] { width: 100%; }
.note-form select[multiple], .field select[multiple] { min-height: 96px; }
.note-form input:focus, .note-form select:focus, .inline-form input:focus, .inline-form select:focus, .report-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 93, 53, .15); }
.input-sm { width: 90px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pre-wrap { white-space: pre-wrap; font-family: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 10px 0 0; }
.big-n { font-size: 1.25rem; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.is-strong { font-weight: 700; text-decoration: underline; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row .copy-field { margin: 0; flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: 8px; }
.panel-head--pad, .panel-pad { padding: 16px 20px 0; }
.panel-head--pad { margin-bottom: 8px; }
.stat-n--sm { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; line-height: 1.3; }
tr.is-void td { opacity: .55; text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .3); }

/* Tab proyek */
.proj-head .page-actions { flex-wrap: wrap; justify-content: flex-end; }
.ptabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line-strong); margin: 0 0 20px; scrollbar-width: thin; }
.ptabs a { flex: 0 0 auto; padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ptabs a:hover { color: var(--ink); }
.ptabs a.is-active { color: var(--green); border-bottom-color: var(--green); }
.ptabs-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--warn-bg); color: var(--warn); font-size: .72rem; font-weight: 700; text-align: center; }
.tabs--sub { margin: 0 0 14px; }

/* Indikator yang dapat diklik */
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hgrid--wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 20px; }
.hcell { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-decoration: none; color: var(--ink); }
.hcell:hover { border-color: var(--green); }
.hcell-n { font-size: 1.6rem; font-weight: 700; line-height: 1.1; color: var(--muted); }
.hcell-l { font-size: .84rem; font-weight: 600; }
.hcell-why { font-size: .74rem; color: var(--muted); }
.hcell.is-hot { border-color: #f5c27a; background: #fffaf0; }
.hcell.is-hot .hcell-n { color: var(--warn); }

/* Status tugas */
.tstat { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.tstat--run { background: #e0ecff; color: #1e40af; }
.tstat--info { background: #ede9fe; color: #5b21b6; }
.tstat--wait { background: var(--warn-bg); color: var(--warn); }
.tstat--bad { background: var(--danger-bg); color: var(--danger); }
.tstat--ok { background: var(--ok-bg); color: var(--ok); }
.tstat--off { background: var(--sand); color: var(--muted); }
.flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 20px; margin: 0 0 12px; }
.kv > div { min-width: 0; }
.kv dt { font-size: .76rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.kv dd { margin: 0; font-size: .92rem; overflow-wrap: anywhere; }
.task-head .panel-head h2 { font-size: 1.15rem; }
.task-head .flash { margin: 12px 0 0; }

/* Panduan template */
.guide { background: #f2f8f4; border: 1px solid #cfe5d6; border-radius: 10px; padding: 14px 16px; }
.guide h3 { font-size: .95rem; margin-bottom: 8px; }
.guide dl { margin: 0; display: grid; gap: 8px; }
.guide dt { font-size: .78rem; font-weight: 700; color: var(--green); }
.guide dd { margin: 0; font-size: .86rem; }
.steps-ol { margin: 0; padding-left: 18px; }
.steps-ol li { margin-bottom: 2px; }
.client-view { border-left: 4px solid var(--ok); }

/* Pemeriksaan, dependensi, komunikasi */
.finding-row, .fu-row { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr auto; gap: 6px; }
.fu-row { grid-template-columns: 2fr 1.2fr .8fr auto; }
.finding { border-left: 3px solid var(--line-strong); padding: 6px 0 6px 12px; margin: 8px 0; }
.finding--open, .finding--reopened { border-color: var(--danger); }
.finding--answered { border-color: #f5c27a; }
.finding--closed { border-color: var(--ok); opacity: .8; }
.review-item { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.dep-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.dep { font-size: .9rem; }
.dep--met, .dep--cancelled { opacity: .7; }
.comm { border-left: 4px solid var(--line-strong); }
.comm--in { border-left-color: #60a5fa; }
.comm--out { border-left-color: var(--green); }
.inline-details { display: inline-block; vertical-align: top; }
.inline-details[open] { display: block; margin-top: 6px; }
.inline-details summary { cursor: pointer; color: var(--green); }
details > summary { cursor: pointer; }
details.panel > summary h2 { display: inline; }
.ho-sales { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 12px; margin: 0; }
.svc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.archive-note summary { cursor: pointer; }

/* Pratinjau klien */
.client-box { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.client-svc { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.client-ms { padding-left: 18px; margin: 6px 0; }
.client-ms .is-accepted { color: var(--ok); }
.client-ms .is-skipped { color: var(--muted); text-decoration: line-through; }
.pick { border-top: 1px solid var(--line); padding: 10px 0; }
.pick-sub { margin-left: 26px; display: block; width: calc(100% - 26px); }

/* Lain-lain */
.notif-list--big li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.notif-list li.is-unread a strong { color: var(--ink); }
.daychip { display: inline-block; padding: 2px 6px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); font-size: .74rem; margin: 2px 0; }
.daychip.is-off { background: var(--sand); color: var(--muted); text-decoration: line-through; }
.topbar-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--muted); margin-left: auto; }
.topbar-bell:hover { background: var(--sand); color: var(--ink); }
.topbar-bell .count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; }
.topbar-bell + .topbar-user { margin-left: 0; }
.btn.is-active { background: var(--green); border-color: var(--green); color: #fff; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .finding-row, .fu-row { grid-template-columns: 1fr; }
  .ptabs a { padding: 10px 10px; }
}
.guide [data-g="langkah"] { white-space: pre-line; }
.ok-line { color: var(--ok); font-weight: 600; margin: 0 0 8px; }
.calm-list { margin: 10px 0 0; line-height: 1.9; }
.calm-list a { display: inline-block; margin-right: 10px; color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--line-strong); }
.calm-list a:hover { color: var(--green); }
details.panel > summary { list-style-position: inside; }
@media (max-width: 600px) {
  .kv { grid-template-columns: 1fr 1fr; }
  .tu-name { display: none; }
  .topbar-bell { width: 36px; }
}
.page-h--sub { font-size: 1.4rem; }

/* ===== SDM: kontrak & kompensasi ===== */
.hr-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; counter-reset: hrs; }
.hr-steps li { counter-increment: hrs; padding: 6px 12px; border-radius: 99px; background: var(--white); border: 1px solid var(--line-strong); font-size: .8rem; color: var(--muted); font-weight: 600; }
.hr-steps li::before { content: counter(hrs) ". "; }
.hr-steps li.is-done { background: var(--ok-bg); border-color: #86efac; color: var(--ok); }
.hr-steps li.is-current { background: var(--green); border-color: var(--green); color: #fff; }
.hr-builder { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.hr-side .hr-sticky { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
.hr-sum { display: grid; gap: 10px; margin-bottom: 12px; }
.hr-sum-blk { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--paper); }
.hr-sum-blk h3 { font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin-bottom: 2px; }
.hr-sum-blk ul { margin: 4px 0 6px; padding-left: 18px; }
.hr-sum-n { font-size: 1.15rem; font-weight: 700; margin: 0 0 2px; }
.hr-sum-n span { font-size: .8rem; font-weight: 500; color: var(--muted); }
.hr-issues { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hr-issue { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; border-left: 4px solid var(--line-strong); background: var(--paper); font-size: .86rem; }
.hr-issue--err { border-left-color: var(--danger); background: var(--danger-bg); }
.hr-issue--warn { border-left-color: #d97706; background: var(--warn-bg); }
.hr-issue--info { border-left-color: #2563eb; background: #eff6ff; }
.hr-issue-l { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.hr-ok { color: var(--ok); font-weight: 600; }
.hr-items tr.is-normative td { background: #f8fafc; }
.hr-basis { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.hr-basis legend { font-weight: 600; font-size: .86rem; padding: 0 4px; }
.hr-add > summary { list-style: none; display: inline-flex; margin: 10px 0; cursor: pointer; white-space: normal; max-width: 100%; text-align: left; height: auto; }
.hr-add > summary::-webkit-details-marker { display: none; }
.hr-item-form { margin-top: 8px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--paper); }
.hr-decide, .hr-sign { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.hr-para-edit { display: grid; grid-template-columns: 64px 110px 170px minmax(0, 1fr); gap: 6px; margin-bottom: 6px; }
.hr-audit-cell { max-width: 320px; overflow-wrap: anywhere; }
.hr-clause > summary { cursor: pointer; }
.stack-sm { display: grid; gap: 6px; }
/* Pratinjau dokumen kontrak */
.kontrak { font-family: "Times New Roman", Georgia, serif; font-size: .95rem; line-height: 1.55; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px 26px; max-height: 80vh; overflow-y: auto; color: #111; }
.kontrak--mini { max-height: 360px; padding: 12px 16px; margin: 8px 0; }
.kt-title { text-align: center; font-size: 1.02rem; font-weight: 700; margin-bottom: 2px; }
.kt-sub { text-align: center; margin-bottom: 14px; }
.kt-pasal { text-align: center; font-size: .95rem; font-weight: 700; margin: 16px 0 6px; line-height: 1.35; }
.kt-p { display: flex; gap: 6px; text-align: justify; margin: 0 0 5px; white-space: normal; }
.kt-p > span:last-child { flex: 1; min-width: 0; }
.kt-m { flex: 0 0 26px; }
.kt-l0 { margin-left: 0; } .kt-l1 { margin-left: 4px; } .kt-l2 { margin-left: 26px; } .kt-l3 { margin-left: 50px; }
.kt-miss { background: #fde68a; color: #7c2d12; padding: 0 2px; border-radius: 3px; }
.kt-hidden { background: #e5e7eb; color: #374151; padding: 0 4px; border-radius: 3px; font-family: var(--sans); font-size: .82em; }
.kt-table { margin: 6px 0 10px; font-family: var(--sans); }
.kt-total th, .kt-total td { background: #f1f5f9; }
.kt-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: center; margin-top: 26px; }
@media (max-width: 1100px) { .hr-builder { grid-template-columns: 1fr; } .hr-side .hr-sticky { position: static; max-height: none; } }
@media (max-width: 640px) { .kontrak { padding: 14px; } .hr-para-edit { grid-template-columns: 1fr 1fr; } .hr-para-edit textarea { grid-column: 1 / -1; } }
.hr-items { min-width: 0; }
.hr-items td:nth-child(4) { min-width: 200px; }
@media (max-width: 760px) { .hr-items { min-width: 0; } .hr-items td:nth-child(4) { min-width: 0; } }

/* Kebijakan HR: draf, perbandingan versi, riwayat */
.hr-draft { border-left: 3px solid var(--warn); padding: 4px 0 4px 12px; margin: 8px 0; }
.hr-draft-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; margin: 6px 0 4px; }
.hr-draft-actions .inline-form { margin: 0; }
.hr-reject[open] { flex-basis: 100%; }
.hr-reject .note-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hr-reject input[name="reason"] { flex: 1 1 260px; min-width: 0; }
.hr-pending-list { margin: 0; padding-left: 18px; columns: 2 260px; }
.hr-pending-list li { break-inside: avoid; margin-bottom: 4px; }
.hr-version-list { margin: 6px 0 0; padding-left: 18px; }
.hr-version-list li { margin-bottom: 4px; }
.hr-history { margin-right: 12px; }
ins { background: var(--ok-bg); color: #14532d; text-decoration: none; border-radius: 2px; padding: 0 1px; }
del { background: var(--danger-bg); color: var(--danger); text-decoration: line-through; border-radius: 2px; padding: 0 1px; }
.kontrak--diff .is-add { background: rgba(21, 128, 61, .06); }
.kontrak--diff .is-del { background: rgba(180, 35, 24, .05); }
.kontrak--diff .is-same { color: var(--muted); }

/* Simpan tanpa muat ulang: notifikasi melayang & tanda sedang menyimpan */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toasts .toast { margin: 0; box-shadow: 0 10px 28px rgba(15, 23, 42, .18); pointer-events: auto; }
@media (max-width: 640px) { .toasts { left: 16px; right: 16px; bottom: 16px; width: auto; } }
form.is-sending { cursor: progress; }
.is-loading { opacity: .8; }
.is-loading::after { content: ''; display: inline-block; width: .8em; height: .8em; margin-left: .45em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rc-spin .7s linear infinite; vertical-align: -1px; }
@keyframes rc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .is-loading::after { animation: none; } }
@media print { .toasts { display: none; } }

/* Kinerja & disiplin */
.perf-period { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.perf-period select { min-width: 10rem; }
.perf-item { border-top: 1px solid var(--line); padding: 10px 0; }
.perf-item:first-of-type { border-top: 0; }
.perf-item .kv { margin: 6px 0; }
.perf-tasks td { vertical-align: top; }
@media (max-width: 760px) {
  .perf-tasks td[data-label]::before { content: attr(data-label) ": "; font-size: .78rem; font-weight: 700; color: var(--muted); }
  .perf-tasks td[data-label="Tugas"]::before, .perf-tasks td[data-label="Pelaksana"]::before, .perf-tasks td[data-label="Pilih"]::before { content: none; }
  .perf-tasks td[data-label="Tugas"], .perf-tasks td[data-label="Pelaksana"] { font-weight: 600; margin-bottom: 4px; }
}

/* ---------- Building Assurance (v11): status Hijau/Kuning/Merah, keputusan klien, catatan bangunan ---------- */
.rbadge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.5; white-space: nowrap; border: 1px solid transparent; }
.rbadge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rbadge--green { background: var(--ok-bg); color: var(--ok); }
.rbadge--yellow { background: var(--warn-bg); color: var(--warn); }
.rbadge--red { background: var(--danger-bg); color: var(--danger); border-color: #f5c2bd; }
.rbadge--none { background: #f1f5f9; color: #475569; }
.rbadge--lg { font-size: .9rem; padding: 4px 12px; }
.rstat { border-left-width: 5px; }
.rstat--green { border-left-color: var(--ok); }
.rstat--yellow { border-left-color: #d97706; }
.rstat--red { border-left-color: var(--danger); background: #fffafa; }
.rstat-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.rstat-dot { flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 4px #f1f5f9; }
.rstat--green .rstat-dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.rstat--yellow .rstat-dot { background: #d97706; box-shadow: 0 0 0 4px var(--warn-bg); }
.rstat--red .rstat-dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-bg); }
.rstat-title { font-size: 1.1rem; font-weight: 700; margin: 0; }
.rstat-who { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.rstat-reasons { margin: 0 0 10px; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.rstat-reasons li { padding-left: 16px; position: relative; font-size: .92rem; }
.rstat-reasons li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: #d97706; }
.rstat-reasons li.is-red::before { background: var(--danger); }
.rstat-next { margin: 0 0 8px; font-size: .92rem; }
.rstat-next-l { display: inline-block; margin-right: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rstat-stat .stat-n::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; vertical-align: middle; background: currentColor; }
.rstat-stat--red .stat-n { color: var(--danger); }
.rstat-stat--yellow .stat-n { color: #b45309; }
.rstat-stat--green .stat-n { color: var(--ok); }
.panel--red { border-color: #f5c2bd; box-shadow: 0 0 0 1px #f5c2bd; }
.opt-list { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 2px; }
.permit-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.permit { border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 10px 12px; }
.permit.is-old { opacity: .7; background: #fafafa; }
.permit-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 4px; }
.btl { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid #e2e8f0; display: grid; gap: 8px; }
.btl-item { position: relative; font-size: .92rem; }
.btl-item::before { content: ""; position: absolute; left: -20px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; border: 2px solid #fff; }
.btl-item--permit::before, .btl-item--permit_end::before { background: #1F5D35; }
.btl-item--decision::before { background: #d97706; }
.btl-item--report::before { background: #2563eb; }
.btl-date { display: inline-block; min-width: 92px; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.bench-svc { border-top: 1px solid var(--line, #e5e7eb); padding: 10px 0; }
.bench-svc summary { cursor: pointer; min-height: 32px; }
.bench-svc input[type=number] { width: 90px; }
.risk-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.add-block > summary { list-style: none; display: inline-flex; margin-top: 4px; }
.add-block > summary::-webkit-details-marker { display: none; }
.add-block[open] > summary { margin-bottom: 10px; }
fieldset.field { border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 14px 12px; margin: 0 0 14px; }
fieldset.field > legend { float: none; width: auto; padding: 0 6px; margin: 0; font-weight: 600; font-size: .9rem; }
/* Portal luar (Magang & Intern, Vendor) */
.portal-body { background: var(--bg); }
.portal-in { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.portal-top { background: var(--green-deep); color: #fff; }
.portal-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.portal-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; }
.portal-brand img { height: 34px; width: auto; }
.portal-brand span { border-left: 1px solid rgba(255,255,255,.3); padding-left: 12px; font-size: .95rem; }
.portal-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.portal-nav a, .portal-out { color: #e5f5ea; text-decoration: none; padding: 6px 10px; border-radius: 8px; font: inherit; font-size: .92rem; background: none; border: 0; cursor: pointer; }
.portal-nav a:hover, .portal-out:hover, .portal-nav a[aria-current] { background: rgba(255,255,255,.12); color: #fff; }
.portal-main { padding-top: 24px; padding-bottom: 32px; min-height: 60vh; }
.portal-foot { padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.portal-narrow { max-width: 460px; margin: 0 auto; }
.portal-as { border: 0; padding: 0; margin: 0 0 12px; }
.portal-hero { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.portal-hero h1 { margin: 0 0 6px; }
.portal-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.portal-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.portal-card h2 { font-size: 1.05rem; margin: 0; }
.portal-card .btn { margin-top: auto; align-self: flex-start; }
.portal-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.portal-steps li { counter-increment: s; padding-left: 34px; position: relative; }
.portal-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
@media (max-width: 640px) { .portal-brand span { display: none; } .portal-main { padding-top: 16px; } }
.field input[type=month], .note-form input[type=month], .note-form input[type=password], .note-form textarea { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); min-height: 40px; max-width: 100%; font: inherit; }
.portal-body .field input[type=date] { width: 100%; min-height: 44px; }
.portal-body .grid-2 { gap: 0 20px; }
