/* =====================================================================
   MJMP Tracker — Panel Monitoring
   Tampilan sengaja dibuat tenang & padat informasi: angka besar mudah
   dibaca sekilas, warna hanya dipakai untuk menandai status.
   ===================================================================== */

:root {
    --brand-900: #0b2545;
    --brand-800: #113a63;
    --brand-700: #17497a;
    --brand-500: #2274c4;
    --brand-100: #e7f0fa;

    --ink-900: #14202e;
    --ink-700: #33465c;
    --ink-500: #6b7c91;
    --ink-300: #a7b4c2;

    --bg: #f1f4f9;
    --card: #ffffff;
    --line: #e3e9f2;

    --ok: #15803d;
    --ok-bg: #e6f6ec;
    --warn: #b45309;
    --warn-bg: #fdf3e3;
    --danger: #b91c1c;
    --danger-bg: #fdeaea;

    --radius: 14px;
    --shadow: 0 1px 2px rgba(16, 32, 56, .06), 0 8px 24px rgba(16, 32, 56, .06);

    --sidebar-w: 248px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink-900);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
}

.app { display: flex; min-height: 100vh; }

/* ---------------------------------------------------------------- Sidebar */
.sidebar {
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    background: linear-gradient(180deg, var(--brand-900), var(--brand-800));
    color: #dce7f4;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 1.15rem 1.15rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.brand-mark {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .13);
    font-size: 1.15rem;
    color: #fff;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { color: #fff; font-size: 1rem; letter-spacing: .2px; }
.brand-text small { color: #9fb8d4; font-size: .74rem; }

.sidebar-nav { padding: .85rem .7rem; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }

.sidebar-nav .nav-item {
    display: flex; align-items: center; gap: .7rem;
    padding: .62rem .8rem;
    border-radius: 10px;
    color: #c6d6e8;
    text-decoration: none;
    font-size: .93rem;
    transition: background .15s, color .15s;
}
.sidebar-nav .nav-item i { font-size: 1.05rem; width: 1.2rem; text-align: center; }
.sidebar-nav .nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar-nav .nav-item.active { background: var(--brand-500); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(34, 116, 196, .35); }

.sidebar-foot { padding: .9rem; border-top: 1px solid rgba(255, 255, 255, .09); }

.user-chip { display: flex; align-items: center; gap: .6rem; }
.user-chip .avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255, 255, 255, .15); color: #fff;
    display: grid; place-items: center; font-weight: 700; font-size: .82rem;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.2; overflow: hidden; }
.user-meta strong { color: #fff; font-size: .87rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { color: #9fb8d4; font-size: .73rem; }

.sidebar-backdrop { display: none; }

/* ---------------------------------------------------------------- Konten */
.content {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center; gap: 1rem;
    padding: .85rem 1.4rem;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { font-size: 1.22rem; font-weight: 700; margin: 0; letter-spacing: -.2px; }
.topbar-title p { margin: 1px 0 0; font-size: .84rem; color: var(--ink-500); }

.topbar-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.btn-icon { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; }

.range-btn { border: 1px solid var(--line); font-weight: 600; font-size: .88rem; }
.range-btn i { color: var(--brand-500); margin-right: .35rem; }
.range-menu { min-width: 260px; padding-bottom: .25rem; }

.page { padding: 1.4rem; flex: 1; }

.page-foot {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
    padding: 1rem 1.4rem; color: var(--ink-300); font-size: .8rem;
    border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------- Kartu */
.card-x {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-x .card-head {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .95rem 1.1rem;
    border-bottom: 1px solid var(--line);
}
.card-x .card-head h2 { font-size: .98rem; font-weight: 700; margin: 0; }
.card-x .card-head p { margin: 0; font-size: .8rem; color: var(--ink-500); }
.card-x .card-body-x { padding: 1.1rem; }

/* Kartu KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1rem; }

.kpi {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.05rem 1.1rem;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: .35rem;
}
.kpi .kpi-label { font-size: .82rem; color: var(--ink-500); display: flex; align-items: center; gap: .4rem; }
.kpi .kpi-label i { color: var(--brand-500); }
.kpi .kpi-value { font-size: 1.85rem; font-weight: 700; letter-spacing: -.6px; line-height: 1.15; }
.kpi .kpi-foot { font-size: .78rem; color: var(--ink-500); display: flex; align-items: center; gap: .45rem; }
.kpi.kpi-warn { border-color: #f3d9ae; background: linear-gradient(180deg, #fffaf1, #fff); }
.kpi.kpi-danger { border-color: #f2c5c5; background: linear-gradient(180deg, #fff5f5, #fff); }
.kpi.kpi-danger .kpi-value { color: var(--danger); }

.delta { font-weight: 600; font-size: .78rem; }
.delta-up { color: var(--ok); }
.delta-down { color: var(--danger); }
.delta-flat { color: var(--ink-300); }

/* ---------------------------------------------------------------- Tabel */
.table-wrap { overflow-x: auto; }

.table-x { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.table-x thead th {
    background: #f7f9fc;
    color: var(--ink-500);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
    padding: .45rem .9rem;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    position: sticky; top: 0;
}
/* Baris sengaja rapat supaya muat lebih banyak data per layar */
.table-x tbody td { padding: .38rem .9rem; line-height: 1.3; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-x tbody tr:last-child td { border-bottom: 0; }
.table-x tbody tr.row-link { cursor: pointer; }
.table-x tbody tr.row-link:hover { background: var(--brand-100); }
.table-x tbody tr.row-danger { background: #fff7f7; }
.table-x .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-x tfoot td { padding: .45rem .9rem; font-weight: 700; background: #f7f9fc; }

/* Rincian barang SO: lebar kolom tetap supaya sejajar antar-SO */
.table-items { table-layout: fixed; min-width: 720px; }
.table-items td:first-child { white-space: normal; overflow-wrap: anywhere; }

.cell-main { font-weight: 600; }
.cell-sub { font-size: .78rem; color: var(--ink-500); }

/* ---------------------------------------------------------------- Badge */
.badge { font-weight: 600; font-size: .74rem; padding: .34em .6em; border-radius: 7px; }
.badge-soft-success { background: var(--ok-bg); color: var(--ok); }
.badge-soft-warning { background: var(--warn-bg); color: var(--warn); }
.badge-soft-danger  { background: var(--danger-bg); color: var(--danger); }
.badge-soft-info    { background: var(--brand-100); color: var(--brand-700); }
.badge-soft-muted   { background: #eef1f6; color: var(--ink-500); }
.badge-role-sales   { background: var(--brand-100); color: var(--brand-700); }
.badge-role-driver  { background: #efe9fb; color: #6d28d9; }
.badge-role-opname  { background: #fff4e5; color: #b45309; }

.pill-user { display: inline-flex; align-items: center; gap: .45rem; }
.pill-user .avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--brand-100); color: var(--brand-700);
    display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}
.pill-user .avatar.avatar-driver { background: #efe9fb; color: #6d28d9; }

/* ------------------------------------------------------------ Filter bar */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid var(--line);
}
.filter-bar .form-label { font-size: .76rem; color: var(--ink-500); margin-bottom: .2rem; font-weight: 600; }
.filter-bar .form-control, .filter-bar .form-select { font-size: .88rem; }

/* ---------------------------------------------------------- Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-500); }
.empty-state i { font-size: 2.6rem; color: var(--ink-300); }
.empty-state .empty-title { margin: .7rem 0 .2rem; font-weight: 700; color: var(--ink-700); }
.empty-state .empty-text { margin: 0; font-size: .88rem; }

/* ------------------------------------------------------------- Timeline */
.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before {
    content: ""; position: absolute; left: .42rem; top: .35rem; bottom: .35rem;
    width: 2px; background: var(--line);
}
.timeline-item { position: relative; padding-bottom: 1.1rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: ""; position: absolute; left: -1.38rem; top: .3rem;
    width: 12px; height: 12px; border-radius: 50%;
    background: #fff; border: 3px solid var(--brand-500);
}
.timeline-item.tl-end::before { border-color: var(--ok); }
.timeline-item.tl-open::before { border-color: var(--warn); }
.timeline-item .tl-time { font-weight: 700; font-size: .9rem; }
.timeline-item .tl-label { font-size: .76rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; }
.timeline-item .tl-addr { font-size: .87rem; color: var(--ink-700); margin-top: .15rem; }

/* ------------------------------------------------------------------ Peta */
.map-box { height: 330px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #eef2f7; }
.map-missing { height: 330px; display: grid; place-items: center; text-align: center; color: var(--ink-500); padding: 1.5rem; }

/* ------------------------------------------------------------- Halaman login */
.login-page {
    min-height: 100vh;
    display: grid; place-items: center;
    background: radial-gradient(1200px 600px at 20% 0%, #17497a, var(--brand-900));
    padding: 1.5rem;
}
.login-card {
    width: 100%; max-width: 400px;
    background: #fff; border-radius: 18px; padding: 2rem 1.8rem;
    box-shadow: 0 20px 60px rgba(4, 18, 36, .4);
}
.login-card .brand-mark { width: 46px; height: 46px; background: var(--brand-100); color: var(--brand-700); font-size: 1.35rem; }

/* --------------------------------------------------------------- Umum */
.btn-primary { background: var(--brand-500); border-color: var(--brand-500); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-700); border-color: var(--brand-700); }
a { color: var(--brand-700); }

.section-title { font-size: 1rem; font-weight: 700; margin: 1.6rem 0 .8rem; }

.detail-list { display: grid; grid-template-columns: 1fr; gap: .55rem; }
.detail-list .row-item { display: flex; justify-content: space-between; gap: 1rem; font-size: .89rem; }
.detail-list .row-item span:first-child { color: var(--ink-500); }
.detail-list .row-item span:last-child { font-weight: 600; text-align: right; }

/* Pilihan radio berbentuk kartu (halaman Pengaturan) */
.option-card {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}
.option-card:has(input:checked) { border-color: var(--brand-500); background: var(--brand-100); }
.option-card .form-check-input { margin-top: .2rem; flex-shrink: 0; }
.option-card strong { display: block; margin-bottom: .15rem; }
.option-card small { display: block; color: var(--ink-500); line-height: 1.45; }

/* --------------------------------------------------------------- Responsif */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-backdrop {
        display: block; position: fixed; inset: 0; background: rgba(9, 20, 34, .45); z-index: 1030;
    }
    .content { margin-left: 0; }
    .page { padding: 1rem; }
    .topbar { padding: .7rem 1rem; }
    .topbar-title h1 { font-size: 1.05rem; }
}

@media print {
    .sidebar, .topbar, .page-foot, .filter-bar, .no-print { display: none !important; }
    .content { margin: 0; }
    .card-x { box-shadow: none; border-color: #ccc; }
}

/* --------------------------------------------------- Input SO dari panel */
.so-picker {
    position: absolute; left: 0; right: 0; z-index: 1070;
    max-height: 280px; overflow-y: auto;
    box-shadow: 0 8px 24px rgba(9, 20, 34, .15);
}
/* Kolom barang mengambil sisa lebar; qty, satuan & diskon dibuat ringkas. */
.so-items th:first-child, .so-items td:first-child { width: 100%; min-width: 260px; }
.so-items th:not(:first-child), .so-items td:not(:first-child) { padding-left: .35rem; padding-right: .35rem; }
.so-items input.form-control-sm { width: 3.5rem; padding-left: .35rem; padding-right: .35rem; text-align: right; }
.so-items select.form-select-sm { width: 4.6rem; }
/* Tanpa tombol panah angka supaya input sempit tetap terbaca. */
.so-items input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.so-items input[type="number"]::-webkit-inner-spin-button,
.so-items input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ------------------------------------------------------------------
   Stok opname
   ------------------------------------------------------------------ */
.table-x tbody tr.row-undecided { background: #fffbf2; }
/* Hasil opname: sel nama barang hijau (= stok sistem) / merah (selisih), transparansi 90% */
.table-x td.cell-match,    .opname-card .cell-match    { background: rgba(22, 163, 74, .1); }
.table-x td.cell-mismatch, .opname-card .cell-mismatch { background: rgba(220, 38, 38, .1); }
.opname-card .cell-match, .opname-card .cell-mismatch { border-radius: 8px; padding: .25rem .5rem; }
.table-x td.col-no { width: 48px; color: var(--ink-500); }
/* Kartu alur satu opname: info + tautan, langkah, langkah berikutnya */
.opname-flow-top { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.opname-flow-meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; font-size: .875rem; }
.opname-flow-links { display: flex; flex-wrap: wrap; gap: .3rem; }
.opname-flow-link { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--line);
                    background: #fff; color: var(--ink-700); font-size: .8rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.opname-flow-link:hover { background: var(--brand-100); color: var(--brand-700); }
.opname-flow-link.is-active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.opname-steps { list-style: none; margin: 0; padding: .9rem .75rem .6rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.opname-step { position: relative; text-align: center; min-width: 0; }
/* garis penghubung antar langkah */
.opname-step + .opname-step::before { content: ""; position: absolute; top: .9rem; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.opname-step.is-done + .opname-step::before,
.opname-step.is-skip + .opname-step::before { background: #9fd3b0; }
.opname-step > a, .opname-step > span { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: 0 .2rem;
                                         color: inherit; text-decoration: none; }
.opname-step > a:hover .opname-step-label { text-decoration: underline; }
.opname-step-dot { display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; border-radius: 50%;
                   border: 2px solid var(--line); background: #fff; color: var(--ink-500); font-size: .8rem; font-weight: 700; }
.opname-step-label { font-size: .8rem; font-weight: 600; color: var(--ink-700); line-height: 1.2; }
.opname-step-sub { font-size: .72rem; color: var(--ink-500); line-height: 1.2; overflow-wrap: anywhere; }
.opname-step.is-done .opname-step-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.opname-step.is-skip .opname-step-dot { background: #f3f5f8; border-style: dashed; color: var(--ink-300); }
.opname-step.is-skip .opname-step-label { color: var(--ink-300); font-weight: 500; }
.opname-step.is-active .opname-step-dot { background: var(--brand-500); border-color: var(--brand-500); color: #fff; box-shadow: 0 0 0 4px var(--brand-100); }
.opname-step.is-active .opname-step-label { color: var(--brand-700); }
.opname-steps-mini { display: none; padding: 0 1rem .5rem; font-size: .8rem; color: var(--ink-500); text-align: center; }
.opname-flow-next { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .65rem 1rem; border-top: 1px solid var(--line);
                    border-radius: 0 0 var(--radius) var(--radius); font-size: .9rem; }
.opname-flow-next.is-info { background: #f3f7fc; color: var(--ink-700); }
.opname-flow-next.is-warn { background: var(--warn-bg); color: #7a3e06; }
.opname-flow-next.is-danger { background: var(--danger-bg); color: #8a1515; }
.opname-flow-next.is-ok { background: var(--ok-bg); color: #0f5c2c; }
@media (max-width: 575.98px) {
    .opname-steps { padding: .75rem .25rem .35rem; }
    .opname-step-label { font-size: .7rem; }
    .opname-step-sub { display: none; }
    .opname-steps-mini { display: block; }
}
/* Daftar opname: kolom langkah berikutnya */
.table-x tbody tr.row-action { background: #fffbf2; }
.opname-next-btn { white-space: nowrap; }
.opname-inbox { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
/* Cek Stok Sinkron: lebar kolom tetap, tidak ikut isi (stok 0 tampil/sembunyi). */
.table-x.table-fixed { table-layout: fixed; min-width: 720px; }
.table-x.table-fixed td { overflow-wrap: anywhere; }
.opname-cards { padding: .75rem; display: grid; gap: .6rem; }
.opname-card { border: 1px solid var(--bs-border-color, #e5e7eb); border-radius: .6rem; padding: .7rem .8rem; background: #fff; }
.opname-card.is-undecided { border-color: #f3d9ae; background: #fffbf2; }
.opname-card-grid { display: grid; grid-template-columns: auto 1fr; gap: .15rem .75rem; margin: .5rem 0; font-size: .875rem; }
.opname-card-grid > span { color: var(--bs-secondary-color, #6b7280); }
.opname-card-grid > strong { font-weight: 600; text-align: right; }
.opname-bulkbar { position: sticky; top: 0; z-index: 2; background: #fff; }
.opname-userpick { padding: .25rem 0; }
.opname-userpick-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .55rem 1rem; border-bottom: 1px solid var(--bs-border-color, #eef0f3); flex-wrap: wrap; }
.opname-userpick-row:last-child { border-bottom: 0; }
details.opname-userpick > summary { cursor: pointer; color: var(--ink-700); }
.opname-recount-hint { background: #f3f7fc; color: var(--ink-700); }
/* Buka Opname: pilih satu principal (radio) lalu K/P per user */
.opname-pick-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.opname-pick-grid > section { min-width: 0; }
.opname-pick-grid > section + section { border-left: 1px solid var(--bs-border-color, #eef0f3); }
@media (max-width: 991.98px) {
  .opname-pick-grid { grid-template-columns: minmax(0, 1fr); }
  .opname-pick-grid > section + section { border-left: 0; border-top: 1px solid var(--bs-border-color, #eef0f3); }
}
.opname-pick-list { max-height: 60vh; overflow-y: auto; }
.opname-pick-row { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem 1rem; border-bottom: 1px solid var(--bs-border-color, #eef0f3); margin: 0; cursor: pointer; }
.opname-pick-row:last-child { border-bottom: 0; }
.opname-pick-row:hover { background: #f8fafc; }
.opname-pick-row:has(input:checked) { background: #f0fdf4; box-shadow: inset 3px 0 0 #22c55e; }
.opname-pick-row.is-busy { background: #f6f7f9; color: #9aa1ab; cursor: not-allowed; }
.opname-pick-row[hidden] { display: none; }
.opname-user-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .45rem 1rem; border-bottom: 1px solid var(--bs-border-color, #eef0f3); }
.opname-user-row:last-child { border-bottom: 0; }
.opname-user-row[hidden] { display: none; }
.opname-user-row[data-v="whole"] { background: #f5f8ff; }
.opname-user-row[data-v="loose"] { background: #fffaf2; }
.opname-seg { display: inline-flex; gap: .25rem; flex-shrink: 0; }
.opname-cell { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2rem; border-radius: .4rem; border: 1px solid #d6dae1; background: #f6f7f9; color: #9aa1ab; font-weight: 700; cursor: pointer; user-select: none; }
.opname-cell[data-v="whole"] { background: #e8f0ff; border-color: #9db8f5; color: #1d4ed8; }
.opname-cell[data-v="loose"] { background: #fff4e5; border-color: #f2c48a; color: #b45309; }
.opname-seg .opname-cell { opacity: .55; }
.opname-seg .opname-cell[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px rgba(29, 78, 216, .18); }
.opname-seg .opname-cell[data-v=""][aria-pressed="true"] { color: #4b5563; border-color: #9aa1ab; }
span.opname-cell { cursor: default; width: 1.8rem; height: 1.5rem; }
.opname-cell:disabled { cursor: not-allowed; opacity: .45; }
/* Chip filter Semua / Di opname / Tidak di opname */
.opname-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.opname-chip-f { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border: 1px solid var(--bs-border-color, #dfe3e8);
                 border-radius: 999px; background: #fff; color: #374151; font-size: .82rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.opname-chip-f:hover { background: var(--brand-100, #eef4ff); color: #1d4ed8; }
.opname-chip-f.is-active { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.opname-chip-f.is-warn.is-active { background: #b45309; border-color: #b45309; }
.opname-chip-n { display: inline-block; min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: rgba(0, 0, 0, .07);
                 font-size: .75rem; text-align: center; }
.opname-chip-f.is-active .opname-chip-n { background: rgba(255, 255, 255, .25); }
