<style>
  * { box-sizing: border-box; }
  body { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; margin: 0 16px 16px; background: #f5f7fa; color: #1f2937; min-width: 0; }
  /* ===== User info bar (cloud auth) ===== */
  .user-bar { display: flex; align-items: center; gap: 12px; padding: 8px 14px;
    background: #1e3a8a; color: white; margin: 0 -16px 12px; font-size: 13px;
    flex-wrap: nowrap; overflow-x: auto; }
  .user-bar .who { flex: 1; font-weight: 500; }
  .user-bar .who b { color: #fde68a; }
  .user-bar .role-pill { padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: 700; background: #fbbf24; color: #1e3a8a; }
  .user-bar .role-pill.role-pencermat { background: #34d399; }
  .user-bar .role-pill.role-admin { background: #f472b6; }
  /* Pill Tahun Anggaran — selector inline, dibawa dari halaman Login */
  .user-bar .tahun-pill { display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 6px 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 700;
    background: #fde68a; color: #78350f; }
  .user-bar .tahun-pill select { background: rgba(255,255,255,.6); color: #78350f;
    border: 1px solid rgba(120, 53, 15, .25); border-radius: 6px; padding: 1px 4px;
    font-size: 11px; font-weight: 700; font-family: inherit; cursor: pointer; }
  .user-bar .tahun-pill select:focus { outline: 2px solid #f59e0b; }
  .user-bar button { background: rgba(255,255,255,.15); color: white; border: 1px solid rgba(255,255,255,.3);
    padding: 4px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; }
  .user-bar button:hover { background: rgba(255,255,255,.25); }
  .auth-loading { padding: 60px 30px; text-align: center; color: #6b7280; }
  .auth-loading .spinner { display: inline-block; width: 28px; height: 28px;
    border: 3px solid #e5e7eb; border-top-color: #2563eb; border-radius: 50%;
    animation: sp 0.8s linear infinite; margin-bottom: 10px; }
  @keyframes sp { to { transform: rotate(360deg); } }
  body.auth-pending > nav, body.auth-pending > section { display: none !important; }

  /* ───── Role-based visibility (OPD = read/edit own usulan only) ───── */
  /* OPD: HIDE tabs untuk pencermat/admin */
  body.role-opd #tab-hasil,
  body.role-opd #tab-db,
  body.role-opd #tab-dbsipd,
  body.role-opd #tab-opd,
  body.role-opd #tab-admin { display: none !important; }
  /* OPD: di Desk hanya bisa lihat sub-tab Diperbaiki */
  body.role-opd #dsktab-list,
  body.role-opd #dsktab-cmp,
  body.role-opd #dsktab-syarat,
  body.role-opd #dsktab-diterima { display: none !important; }
  /* OPD Diperbaiki edit styling */
  .dpb-edit-input { width: 100%; padding: 5px 8px; border: 1px solid #d1d5db; border-radius: 4px;
    font-size: 12px; font-family: inherit; }
  .dpb-edit-input:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
  .dpb-edit-textarea { width: 100%; min-height: 50px; padding: 5px 8px; border: 1px solid #d1d5db;
    border-radius: 4px; font-size: 12px; font-family: inherit; resize: vertical; }
  .dpb-edit-textarea:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
  .dpb-btn-save { background: #16a34a; color: white; border: none; padding: 5px 14px; border-radius: 4px;
    cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap; }
  .dpb-btn-save:hover { background: #15803d; }
  .dpb-btn-save:disabled { background: #d1d5db; color: #9ca3af; cursor: not-allowed; }
  .dpb-catatan-display { background: #fffbeb; border: 1px solid #fde68a; border-radius: 4px;
    padding: 6px 8px; font-size: 12px; color: #92400e; white-space: pre-wrap; }
  .dpb-status-badge { display: inline-block; padding: 3px 10px; border-radius: 10px;
    font-size: 11px; font-weight: 700; background: #fef3c7; color: #92400e; }
  .opd-only-text { display: none; }
  body.role-opd .opd-only-text { display: inline; }
  /* PENCERMAT: hide tab-admin */
  body.role-pencermat #tab-admin { display: none !important; }
  .tab-badge-pink { background: #ec4899; }
  .tab-btn.active .tab-badge-pink { color: #ec4899; }

  /* ===== Admin user management ===== */
  .admin-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
  .admin-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
  .admin-bar input[type=text] { flex: 1; min-width: 240px; padding: 8px 10px;
    border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; }
  .admin-bar select { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 13px; background: white; }
  .admin-tbl-wrap { overflow-x: auto; background: white; border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06); max-height: 70vh; overflow-y: auto; }
  .admin-tbl { border-collapse: collapse; width: 100%; min-width: 1100px; font-size: 12px; }
  .admin-tbl th, .admin-tbl td { border: 1px solid #e5e7eb; padding: 6px 8px;
    text-align: left; vertical-align: middle; }
  .admin-tbl th { background: #831843; color: white; position: sticky; top: 0;
    white-space: nowrap; font-size: 11px; font-weight: 600; }
  .admin-tbl tr:nth-child(even) td { background: #fdf2f8; }
  .admin-tbl tr:hover td { background: #fce7f3; }
  .admin-tbl select { padding: 4px 6px; border: 1px solid #d1d5db; border-radius: 4px;
    font-size: 12px; background: white; }
  .admin-tbl .role-badge { display: inline-block; padding: 2px 8px; border-radius: 10px;
    font-size: 10px; font-weight: 700; }
  .admin-tbl .role-opd       { background: #fbbf24; color: #78350f; }
  .admin-tbl .role-pencermat { background: #34d399; color: #065f46; }
  .admin-tbl .role-admin     { background: #f472b6; color: #831843; }
  .admin-tbl .toggle-active { padding: 4px 10px; font-size: 11px; border-radius: 4px;
    border: none; cursor: pointer; color: white; }
  .toggle-active.is-on  { background: #16a34a; }
  .toggle-active.is-off { background: #6b7280; }
  .admin-actions { display: flex; gap: 4px; flex-wrap: nowrap; white-space: nowrap; }
  .admin-btn { padding: 4px 10px; border-radius: 4px; border: none; cursor: pointer;
    font-size: 11px; color: white; font-weight: 600; }
  .admin-btn-edit { background: #f59e0b; }
  .admin-btn-edit:hover { background: #d97706; }
  .admin-btn-del  { background: #ef4444; }
  .admin-btn-del:hover  { background: #dc2626; }
  .admin-btn:disabled { background: #d1d5db; color: #9ca3af; cursor: not-allowed; }

  /* ===== Desk Pencermatan: sub-tab Database SHS Pembanding ===== */
  .cmp-card { background: white; border: 1px solid #e5e7eb; border-radius: 6px;
    margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
  .cmp-card.no-match { border-left: 4px solid #ef4444; }
  .cmp-card.has-match { border-left: 4px solid #16a34a; }
  .cmp-card-head { display: flex; align-items: center; padding: 10px 14px; gap: 12px; cursor: pointer; }
  .cmp-card-head:hover { background: #f9fafb; }
  .cmp-card-num { font-weight: 700; color: #6b7280; min-width: 30px; text-align: center; }
  .cmp-card-info { flex: 1; min-width: 0; }
  .cmp-card-title { font-weight: 600; color: #1f2937; font-size: 13px; }
  .cmp-card-meta { font-size: 11px; color: #6b7280; margin-top: 3px; line-height: 1.4; }
  .cmp-card-meta b { color: #1e40af; }
  .cmp-card-action { display: flex; align-items: center; gap: 8px; }
  .cmp-match-count { padding: 4px 10px; background: #dcfce7; color: #166534;
    border-radius: 12px; font-size: 11px; font-weight: 700; }
  .cmp-match-count.zero { background: #fee2e2; color: #991b1b; }
  .cmp-expand-arrow { font-size: 14px; color: #6b7280; transition: transform .15s; }
  .cmp-card.expanded .cmp-expand-arrow { transform: rotate(180deg); }
  .cmp-card-matches { display: none; padding: 12px 14px; background: #f9fafb; border-top: 1px solid #e5e7eb; }
  .cmp-card.expanded .cmp-card-matches { display: block; }
  .cmp-matches-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
  .cmp-matches-tbl th, .cmp-matches-tbl td { padding: 6px 8px; border: 1px solid #e5e7eb;
    text-align: left; vertical-align: top; }
  .cmp-matches-tbl th { background: #1e40af; color: white; font-size: 11px; font-weight: 600; }
  .cmp-matches-tbl td.num { text-align: right; font-family: ui-monospace, Menlo, monospace; white-space: nowrap; }
  .cmp-matches-tbl tr:nth-child(even) td { background: #eff6ff; }
  .score-badge { display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-weight: 700; font-size: 12px; min-width: 28px; text-align: center; }
  .score-badge.s-high { background: #16a34a; color: white; }
  .score-badge.s-mid  { background: #f59e0b; color: white; }
  .score-badge.s-low  { background: #9ca3af; color: white; }
  .score-cell { display: flex; flex-direction: column; gap: 4px; }
  .reason-list { display: flex; flex-wrap: wrap; gap: 3px; }
  .reason-badge { display: inline-block; padding: 1px 6px; border-radius: 8px;
    background: #e5e7eb; color: #374151; font-size: 9px; font-weight: 600; white-space: nowrap; }
  .reason-badge.reason-kode    { background: #dbeafe; color: #1e40af; }
  .reason-badge.reason-kode.strong { background: #1e40af; color: white; }
  .reason-badge.reason-uraian  { background: #ede9fe; color: #5b21b6; }
  .reason-badge.reason-spek    { background: #fef3c7; color: #92400e; }
  .reason-badge.reason-satuan  { background: #fce7f3; color: #9d174d; }
  .reason-badge.reason-harga   { background: #d1fae5; color: #065f46; }
  .reason-badge.reason-rekening{ background: #e0f2fe; color: #075985; }
  .price-diff { font-size: 10px; padding: 1px 5px; border-radius: 3px; font-weight: 600; display: inline-block; }
  .price-diff.up   { background: #fee2e2; color: #991b1b; }
  .price-diff.down { background: #d1fae5; color: #065f46; }
  .price-diff.eq   { background: #e5e7eb; color: #4b5563; }
  .cmp-empty { padding: 50px 20px; text-align: center; color: #6b7280; background: white; border-radius: 8px; }
  .cmp-empty .big-icon { font-size: 48px; margin-bottom: 10px; }
  .cmp-empty .ttl { font-size: 16px; font-weight: 600; color: #374151; margin-bottom: 6px; }
  .cmp-no-sipd-warning { padding: 16px; background: #fef3c7; border: 1px solid #fde68a;
    border-radius: 6px; color: #78350f; margin-bottom: 14px; }

  /* ===== Syarat Tambahan sub-tab ===== */
  .syr-card { background: white; border: 1px solid #e5e7eb; border-radius: 6px;
    margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
  .syr-card.auto-DITERIMA   { border-left: 4px solid #16a34a; }
  .syr-card.auto-DIPERBAIKI { border-left: 4px solid #f59e0b; }
  .syr-card.auto-DITOLAK    { border-left: 4px solid #dc2626; }
  .syr-card-head { display: flex; align-items: center; padding: 10px 14px; gap: 12px;
    cursor: pointer; }
  .syr-card-head:hover { background: #f9fafb; }
  .syr-num { font-weight: 700; color: #6b7280; min-width: 30px; text-align: center; }
  .syr-info { flex: 1; min-width: 0; }
  .syr-title { font-weight: 600; color: #1f2937; font-size: 13px; }
  .syr-meta { font-size: 11px; color: #6b7280; margin-top: 3px; }
  .syr-auto-pill { padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; white-space: nowrap; }
  .syr-auto-pill.s-DITERIMA   { background: #d1fae5; color: #065f46; }
  .syr-auto-pill.s-DIPERBAIKI { background: #fef3c7; color: #92400e; }
  .syr-auto-pill.s-DITOLAK    { background: #fee2e2; color: #991b1b; }
  .syr-card-body { display: none; padding: 14px; border-top: 1px solid #e5e7eb; background: #f9fafb; }
  .syr-card.expanded .syr-card-body { display: block; }
  .syr-arrow { color: #6b7280; transition: transform .15s; }
  .syr-card.expanded .syr-arrow { transform: rotate(180deg); }
  .syr-applied-mark { color: #16a34a; font-weight: 600; font-size: 11px; padding-left: 6px; }
  .syr-req { padding: 8px 10px; border-radius: 4px; margin-bottom: 6px;
    border: 1px solid transparent; }
  .syr-req.req-ada { background: #ecfdf5; border-color: #a7f3d0; }
  .syr-req.req-tidak-ada { background: #fef2f2; border-color: #fecaca; }
  .syr-req.req-na { background: #f3f4f6; color: #6b7280; opacity: 0.7; }
  .syr-req-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
  .syr-req-icon { font-size: 14px; min-width: 22px; }
  .syr-req-label { flex: 1; }
  .syr-req-status { font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 700; white-space: nowrap; }
  .syr-req-status.ada { background: #16a34a; color: white; }
  .syr-req-status.tidak-ada { background: #dc2626; color: white; }
  .syr-req-status.na { background: #9ca3af; color: white; }
  .syr-req-detail { font-size: 11px; color: #4b5563; margin-top: 3px; padding-left: 30px; }
  .syr-req-input { margin-top: 6px; padding-left: 30px; }
  .syr-req-input input[type=url] { width: 100%; padding: 5px 8px; border: 1px solid #d1d5db;
    border-radius: 4px; font-size: 12px; font-family: inherit; }
  .syr-req-input input:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
  .syr-flag-row { padding-left: 30px; margin-top: 4px; font-size: 11px; color: #4b5563; }
  .syr-flag-row label { cursor: pointer; user-select: none; }
  .syr-flag-row input[type=checkbox] { margin-right: 6px; vertical-align: middle; }
  .syr-summary { padding: 10px; background: white; border: 1px solid #e5e7eb; border-radius: 6px;
    margin-top: 10px; font-size: 12px; }
  .syr-summary b { color: #1e40af; }
  .syr-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
  .syr-actions button { padding: 7px 14px; border: none; border-radius: 4px; cursor: pointer;
    font-size: 12px; color: white; font-weight: 600; }
  .syr-btn-apply { background: #2563eb; }
  .syr-btn-apply.s-DITERIMA   { background: #16a34a; }
  .syr-btn-apply.s-DIPERBAIKI { background: #f59e0b; }
  .syr-btn-apply.s-DITOLAK    { background: #dc2626; }

  /* ===== Jadwal Entry Usulan SHS ===== */
  /* Admin-only elements: hide for non-admin */
  body:not(.role-admin) .jadwal-admin-only { display: none !important; }

  /* Top-bar mini countdown (in user-bar) — visible to ALL users */
  .topbar-countdown { display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 12px; border-radius: 14px; background: rgba(255,255,255,0.15);
    font-size: 12px; color: white; cursor: pointer; font-weight: 600; transition: background .15s; }
  .topbar-countdown:hover { background: rgba(255,255,255,0.25); }
  .topbar-countdown.warn      { background: #f59e0b; }
  .topbar-countdown.critical  { background: #dc2626; animation: tcdnPulse 1.4s infinite; }
  .topbar-countdown .tc-time  { font-family: ui-monospace, Menlo, monospace; font-weight: 700; }
  @keyframes tcdnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); }
    50%      { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
  }

  /* Main countdown banner inside view-jadwal */
  .countdown-banner { background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white; padding: 18px 24px; border-radius: 10px; margin-bottom: 16px;
    text-align: center; box-shadow: 0 4px 14px rgba(37,99,235,.25); }
  .countdown-banner.warn     { background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); }
  .countdown-banner.critical { background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    animation: cdnPulse 1.5s infinite; }
  .countdown-banner.idle     { background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%); }
  @keyframes cdnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.55); }
    50%      { box-shadow: 0 0 0 10px rgba(220,38,38,0); }
  }
  .cdn-label { font-size: 13px; opacity: .9; margin-bottom: 6px; }
  .cdn-label b { font-size: 15px; opacity: 1; }
  .cdn-time { font-size: 36px; font-weight: 800; font-family: ui-monospace, Menlo, monospace;
    line-height: 1.1; margin: 6px 0; letter-spacing: 1px; }
  .cdn-sub { font-size: 12px; opacity: .9; }

  /* Add-form for admin */
  .jdw-form { background: white; border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 14px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
  .jdw-form-title { font-weight: 700; color: #1e40af; margin-bottom: 12px; font-size: 14px; }
  .jdw-form-grid { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
  .jdw-form-grid > div { min-width: 120px; flex: 1; }
  .jdw-form-grid > div:first-child { min-width: 70px; max-width: 90px; flex: 0 0 auto; }
  .jdw-form-grid label { font-size: 11px; color: #6b7280; font-weight: 600; display: block; margin-bottom: 4px; }
  .jdw-form-grid input, .jdw-form-grid textarea { width: 100%; padding: 7px 10px;
    border: 1px solid #d1d5db; border-radius: 4px; font-size: 13px; font-family: inherit; }
  .jdw-form-grid input:focus, .jdw-form-grid textarea:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
  .jdw-form-grid button { background: #2563eb; color: white; border: none; padding: 8px 16px;
    border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; }
  .jdw-form-grid button:hover { background: #1d4ed8; }

  /* Table */
  .jdw-tbl-wrap { background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .jdw-tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 700px; }
  .jdw-tbl th, .jdw-tbl td { padding: 10px 12px; border-bottom: 1px solid #e5e7eb;
    text-align: left; vertical-align: middle; }
  .jdw-tbl th { background: #1e3a8a; color: white; font-weight: 600; font-size: 12px; }
  .jdw-tbl th.tc, .jdw-tbl td.tc { text-align: center; }
  .jdw-tbl tr.row-aktif td  { background: #ecfdf5; }
  .jdw-tbl tr.row-running td{ background: #fef3c7; font-weight: 500; }   /* sedang berjalan */
  .jdw-tbl tr.row-selesai td{ background: #f9fafb; color: #6b7280; }
  .jdw-tbl tr.row-locked td { background: #fdf2f8; }
  .jdw-tbl .jdw-status { display: inline-block; padding: 2px 9px; border-radius: 10px;
    font-size: 10px; font-weight: 700; }
  .jdw-status.s-aktif    { background: #d1fae5; color: #065f46; }
  .jdw-status.s-running  { background: #fef3c7; color: #92400e; }
  .jdw-status.s-selesai  { background: #e5e7eb; color: #4b5563; }
  .jdw-status.s-upcoming { background: #dbeafe; color: #1e40af; }
  .jdw-lock { color: #ec4899; font-size: 14px; }
  .jdw-actions { display: flex; gap: 4px; flex-wrap: nowrap; white-space: nowrap; }
  .jdw-btn { padding: 4px 10px; border-radius: 4px; border: none; cursor: pointer;
    font-size: 11px; color: white; font-weight: 600; }
  .jdw-btn-edit       { background: #f59e0b; }
  .jdw-btn-lock       { background: #ec4899; }
  .jdw-btn-perpanjang { background: #0ea5e9; }
  .jdw-btn-selesai    { background: #16a34a; }
  .jdw-btn-del        { background: #ef4444; }
  .jdw-btn:disabled   { background: #d1d5db; color: #9ca3af; cursor: not-allowed; }
  .jdw-waktu { font-size: 12px; color: #4b5563; line-height: 1.5; }
  .jdw-waktu b { color: #1e40af; }

  /* ===== Modal Edit Jadwal ===== */
  .modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    padding: 20px; backdrop-filter: blur(2px); }
  .modal-card { background: white; border-radius: 10px; width: 100%; max-width: 540px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: modalIn .2s ease-out; }
  @keyframes modalIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  .modal-head { display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid #e5e7eb; }
  .modal-head h3 { margin: 0; color: #1e40af; font-size: 16px; }
  .modal-close { background: transparent; border: none; font-size: 22px; cursor: pointer;
    color: #9ca3af; padding: 0 6px; line-height: 1; }
  .modal-close:hover { color: #1f2937; }
  .modal-body { padding: 16px 20px; max-height: 60vh; overflow-y: auto; }
  .modal-body label { display: block; font-size: 12px; font-weight: 600; color: #374151;
    margin: 12px 0 4px; }
  .modal-body label:first-child { margin-top: 0; }
  .modal-body input { width: 100%; padding: 9px 12px; border: 1px solid #d1d5db;
    border-radius: 6px; font-size: 14px; font-family: inherit; box-sizing: border-box; }
  .modal-body input:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
  .modal-hint { display: block; margin-top: 4px; font-size: 11px; color: #6b7280; }
  .modal-emph { color: #16a34a; font-weight: 600; font-size: 11px; }
  .quick-extend { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 6px;
    padding: 10px 12px; margin-top: 14px; }
  .quick-extend-label { display: block; font-size: 12px; color: #166534; font-weight: 600; margin-bottom: 8px; }
  .quick-extend-btns { display: flex; gap: 6px; flex-wrap: wrap; }
  .quick-extend-btns button { background: #16a34a; color: white; border: none;
    padding: 6px 12px; border-radius: 4px; font-size: 12px; font-weight: 600;
    cursor: pointer; flex: 1; min-width: 70px; }
  .quick-extend-btns button:hover { background: #15803d; }
  .modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px;
    border-top: 1px solid #e5e7eb; background: #f9fafb; border-radius: 0 0 10px 10px; }
  .modal-footer button { padding: 9px 18px; border: none; border-radius: 6px; cursor: pointer;
    font-size: 13px; font-weight: 600; }
  .btn-cancel { background: #e5e7eb; color: #374151; }
  .btn-cancel:hover { background: #d1d5db; }
  .btn-save { background: #2563eb; color: white; }
  .btn-save:hover { background: #1d4ed8; }
  .modal-status-banner { padding: 10px 12px; border-radius: 6px; margin-bottom: 12px;
    font-size: 12px; }
  .modal-status-banner.warn { background: #fef3c7; border: 1px solid #fde68a; color: #78350f; }
  .modal-status-banner.info { background: #dbeafe; border: 1px solid #bfdbfe; color: #1e40af; }
  .modal-status-banner.locked { background: #fce7f3; border: 1px solid #fbcfe8; color: #831843; }
  /* OPD: HIDE tombol move-to-desk + hapus-semua di Rekap */
  body.role-opd .rkbtn-desk,
  body.role-opd #view-rekap button[onclick="rekapMoveAllToDesk()"],
  body.role-opd #view-rekap button[onclick="rekapClearAll()"] { display: none !important; }
  /* OPD: HIDE tombol Hapus Database & Import Database (admin/pencermat only) */
  body.role-opd #view-form button[onclick="clearDB()"],
  body.role-opd #view-form button[onclick="importDB()"] { display: none !important; }

  /* PENCERMAT: HIDE tab Form (mereka tidak input usulan) */
  body.role-pencermat #tab-form { display: none !important; }
  /* PENCERMAT: kalaupun masuk Form, sembunyikan tombol input */
  body.role-pencermat #view-form .toolbar { display: none !important; }
  body.role-pencermat #view-form table { pointer-events: none; opacity: 0.6; }

  /* Banner role hint di setiap tab */
  .role-banner { padding: 8px 12px; border-radius: 6px; font-size: 12px;
    margin-bottom: 12px; display: none; }
  body.role-opd .role-banner.for-opd { display: block; background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
  body.role-pencermat .role-banner.for-pencermat { display: block; background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
  h1 { font-size: 20px; margin: 0 0 4px; }
  .sub { color: #6b7280; font-size: 13px; margin-bottom: 16px; }
  .toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
  button { background: #2563eb; color: white; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; }
  button.secondary { background: #6b7280; }
  button.danger { background: #dc2626; }
  button.success { background: #16a34a; }
  button:hover { filter: brightness(0.95); }
  .table-wrap { overflow-x: auto; background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
  table { border-collapse: collapse; width: 100%; min-width: 2400px; font-size: 12px; }
  th, td { border: 1px solid #e5e7eb; padding: 4px; text-align: left; vertical-align: top; }
  th { background: #f3f4f6; position: sticky; top: 0; font-weight: 600; white-space: nowrap; }
  th.no { width: 40px; text-align: center; }
  th.act { width: 200px; }
  td.act { white-space: nowrap; }
  .act-row { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
  .act-row .badge { flex: 0 0 auto; }
  input, select { width: 100%; border: 1px solid #d1d5db; border-radius: 4px; padding: 5px 6px; font-size: 12px; font-family: inherit; }
  input:focus, select:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
  td.no { text-align: center; color: #6b7280; }
  td.act { text-align: center; }
  .hint { font-size: 11px; color: #6b7280; margin-top: 2px; min-height: 14px; }
  .col-kode { min-width: 200px; }
  .col-uraian, .col-spek { min-width: 160px; }
  .col-satuan { min-width: 120px; }
  .col-harga, .col-tkdn { min-width: 110px; }
  .col-rek { min-width: 200px; }
  .col-kel { min-width: 110px; }
  .col-link { min-width: 220px; }
  .col-opd { min-width: 220px; }
  .footer { margin-top: 12px; color: #6b7280; font-size: 12px; }
  .row-del { background: #ef4444; color: white; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 11px; }
  .auto-field { background: #f3f4f6; color: #374151; cursor: not-allowed; font-weight: 600; }
  .auto-field:disabled { opacity: 1; }
  .row-btn { border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 11px; color: white; margin-right: 2px; }
  .row-save { background: #16a34a; }
  .row-edit { background: #f59e0b; }
  .row-del  { background: #ef4444; }
  tr.saved input:not([type="button"]), tr.saved select { background: #f9fafb; }
  tr.saved td { background: #fafffa; }
  .badge { display: inline-block; padding: 2px 6px; border-radius: 10px; font-size: 10px; font-weight: 600; }
  .badge-saved { background: #dcfce7; color: #166534; }
  .badge-edit { background: #fef3c7; color: #92400e; }
  /* Searchable dropdown */
  .sd-panel { position: fixed; z-index: 9999; background: white; border: 1px solid #d1d5db; border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,0.12); max-height: 320px; overflow-y: auto; min-width: 300px; }
  .sd-item { padding: 6px 10px; cursor: pointer; border-bottom: 1px solid #f3f4f6; font-size: 12px; line-height: 1.35; }
  .sd-item:last-child { border-bottom: none; }
  .sd-item:hover, .sd-item.active { background: #eff6ff; }
  .sd-item .code { font-weight: 600; color: #1d4ed8; font-family: ui-monospace, Menlo, monospace; }
  .sd-item .label { color: #374151; display: block; }
  .sd-item .meta { color: #6b7280; font-size: 11px; }
  .sd-item mark { background: #fef08a; padding: 0 1px; border-radius: 2px; }
  .sd-empty { padding: 10px; color: #9ca3af; font-size: 12px; text-align: center; }
  .sd-footer { padding: 6px 10px; font-size: 11px; color: #6b7280; background: #f9fafb; border-top: 1px solid #e5e7eb; position: sticky; bottom: 0; }

  /* ===== Tab navigation ===== */
  .tabs-nav { display: flex; gap: 0; margin-bottom: 0; border-bottom: 2px solid #2563eb;
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
    scrollbar-width: thin; scrollbar-color: #93c5fd transparent; }
  .tabs-nav::-webkit-scrollbar { height: 5px; }
  .tabs-nav::-webkit-scrollbar-track { background: transparent; }
  .tabs-nav::-webkit-scrollbar-thumb { background: #93c5fd; border-radius: 4px; }
  .tabs-nav::-webkit-scrollbar-thumb:hover { background: #60a5fa; }
  .tab-btn { background: #e5e7eb; border: none; padding: 10px 22px; font-size: 14px; font-weight: 600;
    cursor: pointer; border-radius: 8px 8px 0 0; color: #4b5563; transition: background .15s;
    margin-right: 4px; white-space: nowrap; flex-shrink: 0; }
  .tab-btn.active { background: #2563eb; color: white; }
  .tab-btn:not(.active):hover { background: #d1d5db; }
  .view { display: none; padding-top: 14px; }
  .view.active { display: block; }

  /* ===== Rekapitulasi view ===== */
  .rekap-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
  .stat-card { background: white; border-radius: 8px; padding: 12px 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,.07); min-width: 140px; flex: 1; }
  .stat-card .val { font-size: 22px; font-weight: 700; color: #2563eb; line-height: 1.1; }
  .stat-card .lbl { font-size: 12px; color: #6b7280; margin-top: 4px; }
  .rekap-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
  .rekap-bar input[type=text] { flex: 1; min-width: 240px; padding: 8px 10px; border: 1px solid #d1d5db;
    border-radius: 6px; font-size: 13px; }
  .rekap-bar select { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 13px; background: white; min-width: 160px; }
  .rekap-tbl-wrap { overflow-x: auto; background: white; border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06); max-height: 70vh; overflow-y: auto; }
  .rekap-tbl { border-collapse: collapse; width: 100%; min-width: 1800px; font-size: 12px; }
  .rekap-tbl th, .rekap-tbl td { border: 1px solid #e5e7eb; padding: 6px 8px; text-align: left; vertical-align: top; }
  .rekap-tbl th { background: #1e40af; color: white; position: sticky; top: 0; white-space: nowrap; font-size: 11px; font-weight: 600; }
  .rekap-tbl tr:nth-child(even) td { background: #f8faff; }
  .rekap-tbl tr:hover td { background: #eff6ff; }
  .rekap-tbl th.rk-no, .rekap-tbl td.rk-no { width: 40px; text-align: center; }
  .rekap-tbl th.rk-act, .rekap-tbl td.rk-act { width: 130px; text-align: center; white-space: nowrap; }
  .rekap-tbl td.num { text-align: right; font-family: ui-monospace, Menlo, monospace; white-space: nowrap; }
  .rekap-tbl mark { background: #fef08a; padding: 0 2px; border-radius: 2px; }
  .rekap-tbl .kel-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 10px;
    font-weight: 700; white-space: nowrap; }
  .kel-SSH  { background: #dbeafe; color: #1e40af; }
  .kel-HSPK { background: #dcfce7; color: #166534; }
  .kel-ASB  { background: #fef3c7; color: #92400e; }
  .kel-SBU  { background: #fce7f3; color: #9d174d; }
  .rk-link-cell a { color: #2563eb; font-size: 11px; display: block; word-break: break-all; }
  .rk-rek-cell { font-family: ui-monospace, Menlo, monospace; font-size: 11px; line-height: 1.4; }
  .rk-empty { padding: 40px; text-align: center; color: #9ca3af; font-size: 14px; }
  .rkbtn { border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 11px;
    color: white; margin: 1px; }
  .rkbtn-edit { background: #f59e0b; }
  .rkbtn-del  { background: #ef4444; }
  .rkbtn-desk { background: #7c3aed; }
  .rkbtn-return { background: #0ea5e9; }
  .rkbtn-pushdb { background: #0ea5e9; }
  .rkbtn-pushed { background: #14b8a6; cursor: default; }
  .rekap-tbl th.dk-meta, .rekap-tbl td.dk-meta { width: 130px; font-size: 11px; color: #6b7280; white-space: nowrap; }
  .rekap-tbl th.dk-catatan, .rekap-tbl td.dk-catatan { min-width: 200px; }
  .rekap-tbl th.dk-status,  .rekap-tbl td.dk-status  { width: 160px; }
  .rekap-tbl th.dk-tgl,     .rekap-tbl td.dk-tgl     { width: 200px; }
  .dk-tgl input[type=datetime-local] { width: 100%; padding: 5px 6px; border: 1px solid #d1d5db;
    border-radius: 4px; font-size: 12px; font-family: inherit; box-sizing: border-box; }
  .dk-tgl input[type=datetime-local]:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
  .dk-tgl-row { display: flex; gap: 4px; align-items: center; }
  .dk-tgl-now { background: #2563eb; color: white; border: none; border-radius: 4px;
    padding: 4px 8px; font-size: 11px; cursor: pointer; flex-shrink: 0; }
  .rkbtn-save { background: #16a34a; }
  .rkbtn-saved { background: #0ea5e9; }
  .rkbtn-disabled { background: #d1d5db; color: #9ca3af; cursor: not-allowed; }
  .saved-info { display: block; font-size: 10px; color: #0369a1; margin-top: 3px; line-height: 1.3; font-weight: 600; }
  .dk-catatan textarea { width: 100%; min-height: 38px; padding: 5px 6px;
    border: 1px solid #d1d5db; border-radius: 4px; font-size: 12px; font-family: inherit;
    resize: vertical; box-sizing: border-box; }
  .dk-catatan textarea:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
  .dk-status select { width: 100%; padding: 5px 6px; border: 1px solid #d1d5db; border-radius: 4px;
    font-size: 12px; font-weight: 600; background: white; box-sizing: border-box; cursor: pointer; }
  .dk-status select.st-DITERIMA   { background: #dcfce7; color: #166534; border-color: #86efac; }
  .dk-status select.st-DITOLAK    { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
  .dk-status select.st-DIPERBAIKI { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
  .dk-status select.st-SUDAH_DIPERBAIKI { background: #ccfbf1; color: #115e59; border-color: #5eead4; }
  .dk-status select.st-pending    { background: #f3f4f6; color: #4b5563; }
  /* Row tinting by status */
  .rekap-tbl tr.row-DITERIMA   td { background: #f0fdf4 !important; }
  .rekap-tbl tr.row-DITOLAK    td { background: #fef2f2 !important; }
  .rekap-tbl tr.row-DIPERBAIKI td { background: #fffbeb !important; }
  .rekap-tbl tr.row-SUDAH_DIPERBAIKI td { background: #f0fdfa !important; }
  .tab-badge { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 10px;
    background: #ef4444; color: white; font-size: 11px; font-weight: 700; margin-left: 6px; vertical-align: middle; }
  .tab-badge-green { background: #16a34a; }
  .tab-badge-blue  { background: #0ea5e9; }
  .tab-badge-amber { background: #f59e0b; }
  .tab-btn.active .tab-badge { background: white; color: #2563eb; }
  .tab-btn.active .tab-badge-green { color: #16a34a; }
  .tab-btn.active .tab-badge-blue  { color: #0ea5e9; }
  .tab-btn.active .tab-badge-amber { color: #f59e0b; }

  /* ===== Database Standar Harga Satuan ===== */
  .db-info-bar { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a;
    padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 12px; }
  .db-subnav { display: flex; gap: 4px; flex-wrap: nowrap; margin-bottom: 14px;
    border-bottom: 2px solid #d1d5db; padding-bottom: 0;
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .db-subtab { background: #f3f4f6; border: 1px solid #d1d5db; border-bottom: none;
    padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
    border-radius: 6px 6px 0 0; color: #4b5563; margin-bottom: -2px;
    white-space: nowrap; flex-shrink: 0; }
  .db-subtab.active { background: white; color: #1e40af; border-bottom: 2px solid white; }
  .db-subtab:not(.active):hover { background: #e5e7eb; }
  .db-sub-count { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 10px;
    background: #d1d5db; color: #4b5563; font-size: 10px; font-weight: 700; margin-left: 6px; }
  .db-subtab.active .db-sub-count { background: #1e40af; color: white; }
  .db-subview { display: none; }
  .db-subview.active { display: block; }

  .db-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
  .db-bar input[type=text] { flex: 1; min-width: 240px; padding: 8px 10px;
    border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; }
  .db-stats-mini { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
  .db-stats-mini .stat-card { min-width: 130px; flex: 1; }
  .db-tbl-wrap { overflow-x: auto; background: white; border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06); max-height: 65vh; overflow-y: auto; }
  .db-tbl { border-collapse: collapse; width: 100%; min-width: 1000px; font-size: 12px; }
  .db-tbl th, .db-tbl td { border: 1px solid #e5e7eb; padding: 6px 10px;
    text-align: left; vertical-align: top; }
  .db-tbl th { background: #1e3a8a; color: white; position: sticky; top: 0;
    white-space: nowrap; font-size: 11px; font-weight: 600; }
  .db-tbl td.num { text-align: right; font-family: ui-monospace, Menlo, monospace; }
  .db-tbl td.no  { text-align: center; color: #6b7280; width: 60px; }
  .db-tbl tr:nth-child(even) td { background: #f8faff; }
  .db-tbl tr:hover td { background: #eff6ff; }
  .db-tbl mark { background: #fef08a; padding: 0 2px; border-radius: 2px; }
  .db-empty { padding: 50px 20px; text-align: center; color: #6b7280; }
  .db-empty .big-icon { font-size: 48px; margin-bottom: 10px; }
  .db-empty .ttl { font-size: 16px; font-weight: 600; color: #374151; margin-bottom: 6px; }
  .db-empty .desc { font-size: 13px; max-width: 480px; margin: 0 auto 14px; line-height: 1.5; }
  .db-pager { display: flex; gap: 6px; align-items: center; justify-content: center;
    margin-top: 12px; flex-wrap: wrap; }
  .db-pager button { background: #e5e7eb; color: #374151; padding: 5px 12px; font-size: 12px;
    border-radius: 4px; }
  .db-pager button:disabled { opacity: 0.4; cursor: not-allowed; }
  .db-pager .info { font-size: 12px; color: #6b7280; padding: 0 8px; }
  .hs-readonly-text { font-size: 12px; color: #374151; line-height: 1.4; max-width: 240px; white-space: pre-wrap; word-wrap: break-word; }
  .hs-tgl-text { font-size: 12px; color: #1e40af; font-weight: 600; white-space: nowrap; }

  /* ===== OPD Pengusul view ===== */
  .opd-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
  .opd-bar input[type=text] { flex: 1; min-width: 240px; padding: 8px 10px; border: 1px solid #d1d5db;
    border-radius: 6px; font-size: 13px; }
  .opd-bar .count { color: #374151; font-size: 13px; font-weight: 600; }
  .opd-tbl-wrap { overflow-x: auto; background: white; border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06); max-height: 70vh; overflow-y: auto; }
  .opd-tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
  .opd-tbl th, .opd-tbl td { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; vertical-align: middle; }
  .opd-tbl th { background: #1e40af; color: white; position: sticky; top: 0; font-weight: 600; }
  .opd-tbl th.no, .opd-tbl td.no { width: 60px; text-align: center; }
  .opd-tbl tr:nth-child(even) td { background: #f8faff; }
  .opd-tbl tr:hover td { background: #eff6ff; }
  .opd-tbl mark { background: #fef08a; padding: 0 2px; border-radius: 2px; }
  .opd-empty { padding: 30px; text-align: center; color: #9ca3af; font-size: 14px; }
  /* ===== Pengelompokkan KOMISI ===== */
  .komisi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; margin-top: 12px; }
  .komisi-panel { background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow: hidden; border-top: 4px solid #6b7280; }
  .komisi-panel.k-A { border-top-color: #2563eb; }
  .komisi-panel.k-B { border-top-color: #16a34a; }
  .komisi-panel.k-C { border-top-color: #f59e0b; }
  .komisi-panel.k-D { border-top-color: #ec4899; }
  .komisi-panel.k-other { border-top-color: #6b7280; }
  .komisi-head { padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e5e7eb; background: #f9fafb; }
  .komisi-title { font-weight: 700; font-size: 14px; color: #1f2937; }
  .komisi-panel.k-A .komisi-title { color: #1e40af; }
  .komisi-panel.k-B .komisi-title { color: #166534; }
  .komisi-panel.k-C .komisi-title { color: #92400e; }
  .komisi-panel.k-D .komisi-title { color: #9d174d; }
  .komisi-count-pill { background: #1f2937; color: white; padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: 700; }
  .komisi-panel.k-A .komisi-count-pill { background: #2563eb; }
  .komisi-panel.k-B .komisi-count-pill { background: #16a34a; }
  .komisi-panel.k-C .komisi-count-pill { background: #f59e0b; }
  .komisi-panel.k-D .komisi-count-pill { background: #ec4899; }
  .komisi-list { list-style: decimal; padding: 12px 14px 14px 36px; margin: 0; }
  .komisi-list li { padding: 4px 0; font-size: 13px; color: #374151; line-height: 1.4; border-bottom: 1px dashed #f3f4f6; }
  .komisi-list li:last-child { border-bottom: none; }
  .komisi-list li mark { background: #fef08a; padding: 0 2px; border-radius: 2px; }
  .komisi-empty-list { padding: 20px; color: #9ca3af; font-size: 13px; text-align: center; font-style: italic; }
  /* ===== Sub-tab Referensi SHS (di Form Usulan) ===== */
  .ref-tbl-wrap { overflow-x: auto; background: white; border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06); max-height: 65vh; overflow-y: auto; }
  .ref-tbl { border-collapse: collapse; width: 100%; min-width: 1100px; font-size: 12px; }
  .ref-tbl th, .ref-tbl td { border: 1px solid #e5e7eb; padding: 6px 10px;
    text-align: left; vertical-align: top; }
  .ref-tbl th { background: #1e40af; color: white; position: sticky; top: 0;
    white-space: nowrap; font-size: 11px; font-weight: 600; }
  .ref-tbl tr:nth-child(even) td { background: #f8faff; }
  .ref-tbl tr:hover td { background: #eff6ff; }
  .ref-tbl td.num { text-align: right; font-family: ui-monospace, Menlo, monospace; white-space: nowrap; }
  .ref-tbl td.no  { text-align: center; color: #6b7280; width: 50px; }
  .ref-tbl mark { background: #fef08a; padding: 0 2px; border-radius: 2px; }
  .ref-tbl .kel-badge.ssh  { background: #dbeafe; color: #1e40af; }
  .ref-tbl .kel-badge.hspk { background: #dcfce7; color: #166534; }
  .ref-tbl .kel-badge.asb  { background: #fef3c7; color: #92400e; }
  .ref-tbl .kel-badge.sbu  { background: #fce7f3; color: #9d174d; }
  .ref-empty { padding: 50px 20px; text-align: center; color: #6b7280; background: white; border-radius: 8px; }
  .ref-empty .big-icon { font-size: 48px; margin-bottom: 10px; }
  .ref-pager { display: flex; gap: 6px; align-items: center; justify-content: center;
    margin-top: 12px; flex-wrap: wrap; }
  .ref-pager button { background: #e5e7eb; color: #374151; padding: 5px 12px; font-size: 12px;
    border-radius: 4px; border: none; cursor: pointer; }
  .ref-pager button:disabled { opacity: 0.4; cursor: not-allowed; }
  .ref-pager .info { font-size: 12px; color: #6b7280; padding: 0 8px; }

  /* Komisi pill (admin UI dropdown indicator) */
  .komisi-pill { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11px;
    font-weight: 700; color: white; margin-bottom: 3px; }
  .komisi-pill.k-A { background: #2563eb; }
  .komisi-pill.k-B { background: #16a34a; }
  .komisi-pill.k-C { background: #f59e0b; }
  .komisi-pill.k-D { background: #ec4899; }
  .komisi-pill.k-all { background: linear-gradient(90deg, #2563eb, #16a34a, #f59e0b, #ec4899); }

  .stat-card.komisi-stat-A .val { color: #2563eb; }
  .stat-card.komisi-stat-B .val { color: #16a34a; }
  .stat-card.komisi-stat-C .val { color: #f59e0b; }
  .stat-card.komisi-stat-D .val { color: #ec4899; }
  .stat-card.komisi-stat-other .val { color: #6b7280; }

  .opd-tbl th.opd-status, .opd-tbl td.opd-status { width: 110px; text-align: center; }
  .opd-tbl th.opd-act, .opd-tbl td.opd-act { width: 160px; text-align: center; white-space: nowrap; }
  .opd-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
  .opd-badge-default { background: #e5e7eb; color: #4b5563; }
  .opd-badge-user { background: #dcfce7; color: #166534; }
  .opd-locked { color: #9ca3af; font-size: 14px; }
  .opd-btn { border: none; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 11px;
    color: white; margin: 0 2px; }
  .opd-edit { background: #f59e0b; }
  .opd-del  { background: #ef4444; }

  /* OPD inline forms */
  .opd-form { background: white; border: 1px solid #d1d5db; border-radius: 8px; padding: 14px;
    margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
  .opd-form-title { font-weight: 700; color: #1e40af; margin-bottom: 10px; font-size: 14px; }
  .opd-form-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .opd-form-row input[type=text] { flex: 1; min-width: 240px; padding: 8px 10px; border: 1px solid #d1d5db;
    border-radius: 6px; font-size: 13px; }
  .opd-form textarea { width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 13px; resize: vertical; }
  .opd-form-hint { color: #6b7280; font-size: 12px; margin-top: 6px; }
</style>
