/* Admin Survey Hayyu — tampilan modern dengan warna brand teal Hayyu */
:root {
    --teal-900: #073f3d;
    --teal-800: #0a5552;
    --teal-700: #0e6e6b;
    --teal-600: #138580;
    --teal-500: #22a29b;
    --teal-200: #b8e2df;
    --teal-100: #ddf1ef;
    --teal-50: #f0f9f8;
    --ink: #0f1d24;
    --ink-2: #34454d;
    --muted: #6b7a82;
    --faint: #98a6ad;
    --line: #e6ecee;
    --line-2: #d6dfe2;
    --bg: #f5f8f8;
    --white: #fff;
    --danger: #e0434f;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 29, 36, .05);
    --shadow: 0 1px 3px rgba(15, 29, 36, .06), 0 6px 16px -6px rgba(15, 29, 36, .08);
    --ring: 0 0 0 4px rgba(19, 133, 128, .14);
    --sidebar-w: 264px;
    --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--bs-body-font-family); color: var(--ink-2); background: var(--bg);
    font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01';
}
h1, h2, h3, h4, h5, h6, .fw-bold, .fw-semibold { color: var(--ink); }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-800); }
code { color: var(--teal-800); background: var(--teal-50); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }
.ph, .ph-fill { line-height: 1; vertical-align: -0.15em; }
.text-muted { color: var(--muted) !important; }
::selection { background: var(--teal-100); }

/* ---------- shell ---------- */
.hits-shell { display: flex; min-height: 100vh; }
.hits-sidebar {
    width: var(--sidebar-w); flex-shrink: 0; color: #fff; position: sticky; top: 0; height: 100vh; overflow-y: auto;
    padding: 0 14px 24px; transition: margin .25s ease;
    background: linear-gradient(180deg, var(--teal-700) 0%, var(--teal-800) 100%);
}
.hits-sidebar::-webkit-scrollbar { width: 6px; }
.hits-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
.collapsed .hits-sidebar { margin-left: calc(-1 * var(--sidebar-w)); }

.hits-logo { display: flex; justify-content: center; padding: 28px 0 26px; text-decoration: none; }
.hits-logo img { height: 52px; }
.logo-text { color: #fff; font-size: 36px; font-weight: 600; letter-spacing: -1.5px; line-height: .9; position: relative; font-style: italic; }
.logo-text small { position: absolute; top: -8px; right: -10px; font-size: 7px; font-style: normal; letter-spacing: .6px; font-weight: 700; opacity: .9; }
.app-name {
    display: block; width: fit-content; margin: -12px auto 26px; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase;
    font-weight: 600; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); padding: 4px 12px; border-radius: 99px;
}

.hits-menu { display: flex; flex-direction: column; gap: 3px; }
.hits-menu-item {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; color: rgba(255,255,255,.82); text-decoration: none;
    font-weight: 500; font-size: 14px; border-radius: var(--radius-sm); position: relative; transition: background .15s, color .15s;
}
.hits-menu-item > i:first-child { font-size: 20px; width: 22px; text-align: center; }
.hits-menu-item .caret { margin-left: auto; font-size: 13px; opacity: .7; }
.hits-menu-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.hits-menu-item.is-open { color: #fff; }
.hits-menu-item.active { color: var(--teal-800); background: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.hits-menu-item.active > i:first-child { color: var(--teal-600); }
.hits-submenu { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 6px 25px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.18); }
.hits-submenu .sub { padding: 8px 12px; font-size: 13.5px; }
.hits-submenu .sub i:first-child { display: none; }
.hits-submenu .sub.active { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }

.hits-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hits-topbar {
    height: 68px; display: flex; align-items: center; padding: 0 28px; gap: 16px; position: sticky; top: 0; z-index: 20;
    background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.btn-burger {
    border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 20px; width: 40px; height: 40px;
    border-radius: var(--radius-sm); display: grid; place-items: center; transition: all .15s;
}
.btn-burger:hover { border-color: var(--line-2); color: var(--teal-700); }
.topbar-pill {
    align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; font-size: 13.5px; padding: 8px 14px;
    border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; transition: all .15s;
}
.topbar-pill i { font-size: 17px; color: var(--teal-600); }
.topbar-pill:hover { border-color: var(--teal-200); background: var(--teal-50); color: var(--teal-800); }
.topbar-user { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 6px 4px 4px; border-radius: 99px; }
.topbar-user:hover { background: var(--teal-50); }
.topbar-user .avatar {
    width: 38px; height: 38px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
}
.topbar-user small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .6px; }
.topbar-user strong { display: block; font-size: 13.5px; color: var(--ink); font-weight: 700; line-height: 1.2; }

.hits-content { padding: 28px 32px 64px; max-width: 1480px; width: 100%; }
.page-head { display: flex; flex-direction: column-reverse; gap: 6px; margin-bottom: 24px; }
.page-head h1 { font-size: 26px; font-weight: 800; color: var(--ink); margin: 0; letter-spacing: -.025em; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--faint); font-size: 12.5px; font-weight: 500; }
.crumbs a { color: var(--faint); text-decoration: none; }
.crumbs a:hover { color: var(--teal-700); }
.crumbs i { font-size: 15px; }
.crumbs .current { color: var(--teal-700); font-weight: 600; }

/* ---------- buttons ---------- */
.btn { font-weight: 600; border-radius: var(--radius-sm); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 0; transition: all .15s; }
.btn i { font-size: 17px; }
.btn-sm { font-size: 13px; border-radius: 8px; }
.btn-sm i { font-size: 15px; }
.btn-hits {
    background: var(--teal-700); color: #fff; border: 1px solid var(--teal-700); padding: 9px 18px;
    box-shadow: 0 1px 2px rgba(10,85,82,.2), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-hits:hover, .btn-hits:focus { background: var(--teal-800); border-color: var(--teal-800); color: #fff; }
.btn-hits:focus-visible { box-shadow: var(--ring); }
.btn-hits-outline { background: #fff; color: var(--ink-2); border: 1px solid var(--line-2); padding: 9px 16px; box-shadow: var(--shadow-sm); }
.btn-hits-outline i { color: var(--teal-600); }
.btn-hits-outline:hover { background: var(--teal-50); color: var(--teal-800); border-color: var(--teal-200); }
.btn-hits-outline.active, .btn-hits-outline.active:hover { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.btn-hits-outline.dropdown-toggle::after { margin-left: 8px; }
.btn-light { background: #fff; border-color: var(--line-2) !important; color: var(--ink-2); }
.btn-icon {
    border: 0; background: none; color: var(--muted); width: 34px; height: 34px; border-radius: 8px; font-size: 18px;
    display: inline-grid; place-items: center; transition: all .15s; padding: 0;
}
.btn-icon:hover { color: var(--teal-700); background: var(--teal-50); }
.btn-icon.danger:hover { color: var(--danger); background: #fdecee; }
.btn-icon:disabled { opacity: .35; pointer-events: none; }
.btn-link { font-weight: 600; }

/* ---------- table ---------- */
.hits-table-wrap { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.hits-table-scroll { overflow-x: auto; }
.hits-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; }
.hits-table thead th {
    background: var(--teal-700); color: rgba(255,255,255,.92); font-weight: 600; font-size: 12px; text-transform: uppercase;
    letter-spacing: .5px; padding: 14px 14px 10px; white-space: nowrap; border: 0;
}
.hits-table thead tr.filters th { padding: 0 8px 12px; text-transform: none; letter-spacing: 0; }
.hits-table thead tr.filters .form-select { min-width: 130px; }
.hits-table thead tr.filters input[type=search] { min-width: 190px; }
.hits-table thead .form-control, .hits-table thead .form-select {
    font-size: 13px; height: 36px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; border-radius: 8px; border: 0; box-shadow: none;
}
.hits-table thead input[type=search] {
    padding-left: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' width='16' height='16'%3E%3Cpath fill='%2398a6ad' d='m229.66 218.34-50.07-50.06a88.11 88.11 0 1 0-11.31 11.31l50.06 50.07a8 8 0 0 0 11.32-11.32ZM40 112a72 72 0 1 1 72 72 72.08 72.08 0 0 1-72-72Z'/%3E%3C/svg%3E") no-repeat 11px center;
}
.hits-table tbody td { padding: 14px; border-top: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
.hits-table tbody tr:first-child td { border-top: 0; }
.hits-table tbody tr { transition: background .12s; }
.hits-table tbody tr:hover td { background: var(--teal-50); }
.hits-table .sort-ic { font-size: 12px; margin-left: 4px; opacity: .7; }
.hits-table .muted { color: var(--faint); font-size: 12px; margin-top: 2px; }
.table { --bs-table-hover-bg: var(--teal-50); }
.table > thead th { font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--faint); border-bottom-color: var(--line); }
.table > tbody td { border-color: var(--line); padding-top: 12px; padding-bottom: 12px; }

.badge-status {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 9px; border-radius: 99px;
    font-weight: 600; font-size: 12px; border: 1px solid transparent; white-space: nowrap;
}
.badge-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-status.aktif { color: #0b7a57; background: #e7f7ef; border-color: #c6ecd8; }
.badge-status.draft { color: #a15c07; background: #fef5e6; border-color: #f9dfae; }
.badge-status.ditutup { color: #5d6b72; background: #f1f4f5; border-color: #e1e7ea; }
.badge-soft { background: var(--teal-50); color: var(--teal-800); font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--teal-100); }
.color-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: 1px; margin-right: 8px; box-shadow: 0 0 0 3px rgba(0,0,0,.04); }

.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-state i { font-size: 30px; color: var(--teal-600); margin: 0 auto 14px; width: 64px; height: 64px; display: grid !important; place-items: center; background: var(--teal-50); border-radius: 50%; }

.dropdown-menu { font-size: 13.5px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px -8px rgba(15,29,36,.18); padding: 6px; }
.dropdown-item { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--teal-50); color: var(--teal-800); }
.dropdown-item i { font-size: 17px; color: var(--muted); }
.dropdown-item:hover i { color: var(--teal-600); }
.dropdown-item.text-danger, .dropdown-item.text-danger i { color: var(--danger) !important; }
.dropdown-item.text-danger:hover { background: #fdecee; }
.dropdown-divider { margin: 6px 0; border-color: var(--line); }

/* ---------- cards & forms ---------- */
.hits-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.hits-card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.hits-card-head > i:first-child {
    font-size: 18px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: var(--teal-50); color: var(--teal-600) !important;
}
.hits-card-head > i.ph-whatsapp-logo { background: #e7f9ee; color: #1faa59 !important; }
.hits-card-head h2 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; letter-spacing: -.01em; }
.hits-card-body { padding: 20px; }

.form-label { font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--ink); }
.form-control, .form-select {
    font-size: 14px; color: var(--ink); background-color: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    min-height: 42px; padding: 9px 13px; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
.form-select { padding-right: 38px; background-position: right 12px center; }
textarea.form-control { min-height: 0; line-height: 1.55; }
.form-control-sm, .form-select-sm { min-height: 36px; font-size: 13.5px; padding: 6px 11px; border-radius: 8px; }
.form-control::placeholder { color: var(--faint); }
.form-control:hover, .form-select:hover { border-color: #c3ced2; }
.form-control:focus, .form-select:focus { border-color: var(--teal-500); box-shadow: var(--ring); }
.form-control-color { width: 48px; padding: 4px; }
.form-control[readonly] { background: #f8fafa; }
.form-check-input { border-color: #c3ced2; }
.form-check-input:checked { background-color: var(--teal-600); border-color: var(--teal-600); }
.form-check-input:focus { box-shadow: var(--ring); border-color: var(--teal-500); }
.form-switch .form-check-input { width: 2.4em; height: 1.3em; margin-top: .1em; }
.form-check-label, label.form-check { color: var(--ink-2); font-weight: 500; }
.form-text { font-size: 12px; color: var(--muted); }
.invalid-feedback { font-size: 12.5px; }
.alert { border-radius: 12px; font-size: 13.5px; border-width: 1px; }
.alert > i:first-child { font-size: 19px; vertical-align: -0.2em; }
.alert-warning { background: #fffaeb; border-color: #fbe3a8; color: #8a5300; }
.alert-danger { background: #fef1f2; border-color: #fbcfd4; color: #a11d2b; }
hr { border-color: var(--line); opacity: 1; }

/* ---------- builder ---------- */
.section-card { border-top: 3px solid var(--teal-600); }
.section-index { font-size: 11.5px; font-weight: 700; color: var(--teal-700); background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
.section-title-input { font-weight: 700; font-size: 16px; border: 0 !important; box-shadow: none !important; padding-left: 4px; min-height: 36px; color: var(--ink); }
.section-title-input:focus { background: var(--teal-50); }
.q-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.q-item:hover { border-color: var(--line-2); }
.q-item.open { border-color: var(--teal-500); box-shadow: var(--ring); }
.q-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; cursor: pointer; }
.q-num { width: 28px; height: 28px; border-radius: 8px; background: var(--teal-50); color: var(--teal-700); font-weight: 700; font-size: 12px; display: grid; place-items: center; flex-shrink: 0; }
.q-label { font-weight: 600; color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-label.empty { color: var(--danger); font-style: italic; font-weight: 500; }
.q-type { font-size: 12px; color: var(--muted); white-space: nowrap; background: #f4f7f7; padding: 3px 9px; border-radius: 99px; }
.q-type i { color: var(--teal-600); }
.q-body { padding: 4px 16px 18px; border-top: 1px dashed var(--line); }
.q-actions .btn-icon { font-size: 16px; width: 30px; height: 30px; }
.option-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.option-row .opt-mark { color: var(--faint); width: 18px; text-align: center; font-size: 16px; }
.sticky-side { position: sticky; top: 88px; }
.builder-footer {
    position: sticky; bottom: 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 12px 16px; margin-top: 12px; z-index: 10; box-shadow: var(--shadow);
}
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-pick label { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; cursor: pointer; font-size: 12px; color: var(--muted); transition: all .15s; }
.mode-pick label:hover { border-color: var(--teal-200); }
.mode-pick label strong { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13.5px; margin-bottom: 2px; }
.mode-pick label strong i { font-size: 17px; color: var(--teal-600); }
.mode-pick input { display: none; }
.mode-pick input:checked + label { border-color: var(--teal-600); background: var(--teal-50); box-shadow: inset 0 0 0 1px var(--teal-600); }
.link-box { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; font-size: 13.5px; box-shadow: var(--shadow-sm); background: #fff; }
.link-box:focus-within { border-color: var(--teal-500); box-shadow: var(--ring); }
.link-box span { background: #f4f7f7; color: var(--muted); padding: 10px 12px; white-space: nowrap; border-right: 1px solid var(--line); font-weight: 500; }
.link-box input { border: 0; flex: 1; min-width: 0; padding: 10px 12px; outline: none; color: var(--ink); background: transparent; }

/* ---------- hasil ---------- */
.stat-card { background: #fff; border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); height: 100%; }
.stat-card .lbl { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stat-card .val { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.15; margin-top: 6px; letter-spacing: -.03em; }
.stat-card .sub { font-size: 12px; color: var(--faint); margin-top: 2px; }
.nav-hits { gap: 4px; margin-bottom: 20px; background: #eaf0f0; padding: 4px; border-radius: 12px; width: fit-content; border: 0; }
.nav-hits .nav-link { color: var(--muted); font-weight: 600; font-size: 13.5px; border: 0; border-radius: 9px; padding: 8px 16px; }
.nav-hits .nav-link:hover { color: var(--ink); }
.nav-hits .nav-link.active { color: var(--teal-800); background: #fff; box-shadow: var(--shadow-sm); }
.bar-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 76px; gap: 12px; align-items: center; margin-bottom: 9px; font-size: 13px; }
.bar-row .track { background: #eef3f3; border-radius: 99px; height: 10px; overflow: hidden; }
.bar-row .fill { background: linear-gradient(90deg, var(--teal-500), var(--teal-700)); height: 100%; border-radius: 99px; min-width: 4px; }
.bar-row .num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.scale-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.scale-bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 11px; color: var(--muted); }
.scale-bars .b { width: 100%; max-width: 44px; background: linear-gradient(180deg, var(--teal-500), var(--teal-700)); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.scale-bars .b.det { background: #f0959b; } .scale-bars .b.pas { background: #f5c66b; }
.text-answers { list-style: none; padding: 0; margin: 0; }
.text-answers li { background: #f6f9f9; border: 1px solid var(--line); padding: 10px 14px; margin-bottom: 6px; border-radius: 10px; font-size: 13px; color: var(--ink-2); }
.answer-cell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-content { border: 0; border-radius: 18px; box-shadow: 0 24px 60px -12px rgba(15,29,36,.3); }
.modal-header { border-bottom-color: var(--line); padding: 18px 22px; }
.modal-body { padding: 20px 22px; }
.detail-list dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.detail-list dd { margin-bottom: 14px; font-weight: 500; color: var(--ink); white-space: pre-wrap; }

/* ---------- dashboard ---------- */
.day-bars { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 18px; }
.day-bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 11px; color: var(--faint); min-width: 0; }
.day-bars .col > span:first-child { color: var(--ink-2); font-weight: 600; }
.day-bars .b { width: 100%; max-width: 30px; background: var(--teal-200); border-radius: 6px 6px 2px 2px; min-height: 3px; transition: background .15s; }
.day-bars .col:hover .b { background: var(--teal-500); }
.day-bars .col.today .b { background: linear-gradient(180deg, var(--teal-500), var(--teal-700)); }
.day-bars .col.today > span:last-child { color: var(--teal-700); font-weight: 700; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
.feed li:first-child { border-top: 0; }
.feed .avatar-sm { width: 36px; height: 36px; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; border: 1px solid var(--teal-100); }
.progress-thin { height: 6px; background: #eef3f3; border-radius: 99px; overflow: hidden; }
.progress-thin > div { height: 100%; background: linear-gradient(90deg, var(--teal-500), var(--teal-700)); border-radius: 99px; }

/* ---------- kirim ---------- */
.wa-preview-wrap { background: #efeae2; border-radius: 12px; padding: 16px; }
.wa-preview { background: #d9fdd3; border-radius: 10px 10px 10px 3px; padding: 10px 12px; font-size: 13.5px; color: #111b21; white-space: pre-wrap; word-break: break-word; box-shadow: 0 1px .5px rgba(11,20,26,.13); max-width: 92%; }
.btn-wa { background: #25d366; color: #fff; border: 1px solid #22c35e; font-weight: 600; box-shadow: 0 1px 2px rgba(37,211,102,.3); }
.btn-wa:hover, .btn-wa:focus { background: #1fb857; color: #fff; border-color: #1fb857; }
.btn-wa:disabled { background: #e6ecee; border-color: #e6ecee; color: var(--faint); box-shadow: none; }
.badge-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.badge-sent { background: #eaf3ff; color: #1d5fbf; }
.badge-done { background: #e7f7ef; color: #0b7a57; }
.badge-new { background: #f1f4f5; color: var(--muted); }
.mini-stat { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fbfcfc; }
#qr { border-radius: 12px !important; border-color: var(--line) !important; }
#qr canvas, #qr img { width: 150px !important; height: 150px !important; }

/* ---------- toast & sweetalert ---------- */
.toast { border-radius: 12px; box-shadow: var(--shadow); font-weight: 500; }
.swal2-popup { font-family: var(--bs-body-font-family) !important; border-radius: 18px !important; }
.swal2-title { font-size: 20px !important; color: var(--ink) !important; }
.swal2-styled { border-radius: 10px !important; font-weight: 600 !important; }

/* ---------- login ---------- */
.login-page {
    min-height: 100vh; display: grid; place-items: center; padding: 20px;
    background: radial-gradient(1200px 600px at 10% -10%, var(--teal-500), transparent 60%), linear-gradient(135deg, var(--teal-700), var(--teal-900));
}
.login-card { background: #fff; border-radius: 20px; padding: 40px 34px; width: 100%; max-width: 400px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.4); }
.login-card .form-control { min-height: 46px; }
.login-card .btn-hits { min-height: 46px; }

/* =====================================================================
   Palet kaya: teal (utama) + emas/cokelat (kedua), mengikuti dashboard HITS
   ===================================================================== */
:root {
    --g-teal: linear-gradient(90deg, #0b6a66 0%, #2a9a93 100%);
    --g-teal-soft: linear-gradient(90deg, #a9dcd6 0%, #d3eeeb 100%);
    --g-teal-v: linear-gradient(180deg, #2fa79f 0%, #0b5f5c 100%);
    --g-gold: linear-gradient(90deg, #7d4f0c 0%, #b98a3e 100%);
    --g-gold-soft: linear-gradient(90deg, #d9c39a 0%, #efe3c8 100%);
    --g-gold-v: linear-gradient(180deg, #c99a4b 0%, #7d4f0c 100%);
    --gold-700: #8a5a12; --gold-600: #a5772f; --gold-100: #f6ecd8; --gold-50: #fbf6ec;
    --green-600: #14935f; --green-50: #e8f7ef;
    --red-600: #dc3b45; --red-50: #fdeced;
    --blue-600: #2563c9; --blue-50: #ebf2fe;
    --amber-600: #c27a06; --amber-50: #fef5e3;
}

/* sidebar & header tabel lebih dalam */
.hits-sidebar { background: linear-gradient(180deg, #0f7672 0%, #0b5f5c 55%, #084b48 100%); }
.hits-table thead th { background: linear-gradient(90deg, #0b6461 0%, #0f7a75 100%); }
.hits-table thead tr:first-child th:first-child { border-top-left-radius: 0; }
.page-head h1 { background: linear-gradient(90deg, #0a5552, #138580); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* tab pill seperti HITS */
.nav-hits { background: transparent; padding: 0; gap: 10px; }
.nav-hits .nav-link { background: #fff; border: 1px solid var(--line-2); border-radius: 99px; padding: 8px 20px; color: var(--ink-2); }
.nav-hits .nav-link:hover { border-color: var(--teal-200); color: var(--teal-800); }
.nav-hits .nav-link.active { background: var(--teal-800); border-color: var(--teal-800); color: #fff; box-shadow: 0 6px 14px -6px rgba(10,85,82,.6); }

/* kartu statistik berwarna */
.stat-card { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: flex-start; }
.stat-card::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent-g, var(--g-teal)); }
.stat-card .ic {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex-shrink: 0;
    color: var(--accent, var(--teal-700)); background: var(--accent-bg, var(--teal-50));
}
.stat-card .val { color: var(--accent-ink, var(--ink)); }
.stat-card.teal  { --accent: var(--teal-700); --accent-bg: var(--teal-50); --accent-g: var(--g-teal); }
.stat-card.gold  { --accent: var(--gold-700); --accent-bg: var(--gold-100); --accent-g: var(--g-gold); }
.stat-card.green { --accent: var(--green-600); --accent-bg: var(--green-50); --accent-g: linear-gradient(90deg, #0f8a57, #3cc48a); }
.stat-card.blue  { --accent: var(--blue-600); --accent-bg: var(--blue-50); --accent-g: linear-gradient(90deg, #1f55b3, #5b8ff0); }
.stat-card.rose  { --accent: #c2416b; --accent-bg: #fdebf1; --accent-g: linear-gradient(90deg, #a8325a, #e57c9f); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.delta.up { color: var(--green-600); background: var(--green-50); }
.delta.down { color: var(--red-600); background: var(--red-50); }
.delta.flat { color: var(--muted); background: #f1f4f5; }

/* ikon kepala kartu: variasi emas */
.hits-card-head > i.gold { background: var(--gold-100); color: var(--gold-700) !important; }

/* grafik batang gradasi */
.day-bars .b { background: var(--g-teal-soft); background: linear-gradient(180deg, #bfe5e1, #8fcfc8); }
.day-bars .col:hover .b { background: var(--g-teal-v); }
.day-bars .col.today .b { background: var(--g-gold-v); }
.day-bars .col.today > span:last-child { color: var(--gold-700); }
.scale-bars .b { background: var(--g-teal-v); }
.scale-bars .b.det { background: linear-gradient(180deg, #f39aa0, #d9454f); }
.scale-bars .b.pas { background: linear-gradient(180deg, #f7d58b, #d99a1c); }
.scale-bars .b.pro { background: linear-gradient(180deg, #6fd3a5, #12895a); }
.bar-row .track { background: #f0f2f2; height: 12px; }
.bar-row .fill { background: var(--g-teal); }
.bar-row.gold .fill { background: var(--g-gold); }
.progress-thin > div { background: var(--g-teal); }
.progress-thin.gold > div { background: var(--g-gold); }

/* perbandingan ala HITS: dua batang bertumpuk */
.cmp-row { display: grid; grid-template-columns: minmax(84px, 28%) 1fr 34px 70px; gap: 5px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cmp-row:first-of-type { border-top: 0; }
.cmp-row .name { grid-row: span 2; font-weight: 600; color: var(--ink); font-size: 13px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cmp-row .d { grid-row: span 2; text-align: right; }
.cmp-row .bar { height: 22px; background: #f1f3f3; border-radius: 6px; overflow: hidden; }
.cmp-row .bar > div { height: 100%; border-radius: 6px; min-width: 4px; }
.cmp-row .bar.a > div { background: var(--g-teal-soft); background: linear-gradient(90deg, #8fcfc8, #c6e9e5); }
.cmp-row .bar.b > div { background: var(--g-teal); }
.cmp.gold .cmp-row .bar.a > div { background: var(--g-gold-soft); background: linear-gradient(90deg, #d5bb8a, #efe2c6); }
.cmp.gold .cmp-row .bar.b > div { background: var(--g-gold); }
.cmp-row .n { font-weight: 700; color: var(--ink); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }

/* skor berwarna */
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; font-weight: 700; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; }
.score.good { color: var(--green-600); background: var(--green-50); }
.score.ok { color: var(--amber-600); background: var(--amber-50); }
.score.bad { color: var(--red-600); background: var(--red-50); }
.score.none { color: var(--faint); background: #f3f5f6; }

/* badge & elemen lain */
.badge-soft { background: linear-gradient(135deg, #e6f5f3, #d2eeea); border-color: #c3e6e1; }
.q-num { background: linear-gradient(135deg, #e3f4f2, #cdebe7); }
.section-card { border-top: 0; position: relative; }
.section-card::before { content: ''; position: absolute; inset: -1px -1px auto -1px; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: var(--g-teal); }
.section-card:nth-of-type(even)::before { background: var(--g-gold); }
.section-card:nth-of-type(even) .section-index { color: var(--gold-700); background: var(--gold-50); border-color: var(--gold-100); }
.feed .avatar-sm { color: #fff; border: 0; background: var(--g-teal-v); }
.feed li:nth-child(even) .avatar-sm { background: var(--g-gold-v); }
.topbar-user .avatar { background: linear-gradient(135deg, #c99a4b, #7d4f0c); }
.mini-stat { position: relative; overflow: hidden; }
.mini-stat .v { font-size: 24px; font-weight: 800; line-height: 1.2; }
.mini-stat.teal { background: var(--teal-50); border-color: var(--teal-100); } .mini-stat.teal .v { color: var(--teal-700); }
.mini-stat.blue { background: var(--blue-50); border-color: #d6e4fd; } .mini-stat.blue .v { color: var(--blue-600); }
.mini-stat.green { background: var(--green-50); border-color: #cdeedd; } .mini-stat.green .v { color: var(--green-600); }
.login-page { background: radial-gradient(900px 500px at 90% 110%, rgba(201,154,75,.45), transparent 60%), radial-gradient(1200px 600px at 10% -10%, var(--teal-500), transparent 60%), linear-gradient(135deg, var(--teal-700), var(--teal-900)); }

/* =====================================================================
   Form ala HITS: label di kiri, isian di kanan, border tipis abu-teal
   ===================================================================== */
.form-control, .form-select, .link-box {
    border: 1px solid #b4c3c4; border-radius: 6px; box-shadow: none; min-height: 40px; color: var(--ink);
}
.form-control, .form-select { padding: 8px 14px; font-size: 14px; }
.form-control::placeholder, .link-box input::placeholder { color: #8b989a; opacity: 1; }
.form-control:hover, .form-select:hover, .link-box:hover { border-color: #8fa5a6; }
.form-control:focus, .form-select:focus, .link-box:focus-within { border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(14,110,107,.12); }
.form-select {
    padding-right: 40px; background-size: 11px 7px; background-position: right 16px center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7'%3E%3Cpath fill='%231f2a30' d='M0 0h11L5.5 7z'/%3E%3C/svg%3E");
}
.form-control-sm, .form-select-sm { min-height: 36px; border-radius: 6px; padding: 6px 12px; }
.form-control-color { width: 52px; min-height: 40px; height: 40px; padding: 4px; }
input[type=date].form-control::-webkit-calendar-picker-indicator { opacity: .75; cursor: pointer; }
.link-box { box-shadow: none; }
.link-box span { background: #f2f5f5; border-right-color: #d3dcdd; padding: 9px 12px; }
.link-box input { padding: 9px 14px; }
.hits-table thead .form-control, .hits-table thead .form-select { border: 0; min-height: 36px; }

.form-hits .hits-card-body { padding: 24px 26px 8px; }
.form-section-title { font-weight: 700; font-size: 14.5px; color: var(--ink); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.fh-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 18px; align-items: start; margin-bottom: 18px; }
.fh-label { padding-top: 9px; font-weight: 500; font-size: 14px; color: var(--ink); margin: 0; }
.fh-label .req, .form-label .req { color: var(--danger); margin-left: 2px; }
.fh-field .form-text { margin-top: 5px; }
.mode-pick label { border-radius: 6px; border-color: #b4c3c4; padding: 9px 12px; }
.mode-pick label strong i { margin-right: 2px; }
label.form-switch { padding-left: 3.1em; }

/* ---------- dropdown (Tom Select) bertema Hayyu ---------- */
.ts-wrapper.form-select, .ts-wrapper.form-select:hover { padding: 0; border: 0; min-height: 0; background: none !important; box-shadow: none !important; }
.ts-wrapper .ts-control, .ts-wrapper.single .ts-control, .ts-wrapper.form-select.single .ts-control, .ts-wrapper.single.input-active .ts-control {
    display: flex; align-items: center; min-height: 40px; padding: 8px 40px 8px 14px; font-size: 14px; color: var(--ink);
    border: 1px solid #b4c3c4; border-radius: 6px; box-shadow: none; cursor: pointer;
    background-color: #fff !important; background-repeat: no-repeat !important; background-position: right 16px center !important; background-size: 11px 7px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7'%3E%3Cpath fill='%231f2a30' d='M0 0h11L5.5 7z'/%3E%3C/svg%3E") !important;
    transition: border-color .15s, box-shadow .15s;
}
.ts-wrapper .ts-control:hover { border-color: #8fa5a6; }
.ts-wrapper.focus .ts-control, .ts-wrapper.dropdown-active .ts-control { border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(14,110,107,.12); }
.ts-wrapper.dropdown-active .ts-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7'%3E%3Cpath fill='%230e6e6b' d='M0 7h11L5.5 0z'/%3E%3C/svg%3E") !important;
}
.ts-wrapper .ts-control > input { font-size: 14px; color: var(--ink); min-width: 4rem; }
.ts-wrapper .ts-control > input::placeholder { color: var(--faint); }
.ts-wrapper.single.input-active .ts-control { cursor: text; }
.ts-wrapper .ts-control .item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ts-dropdown {
    min-width: 220px; margin-top: 6px; padding: 6px; font-size: 14px; color: var(--ink-2); background: #fff; z-index: 1060;
    border: 1px solid #dfe7e8; border-radius: 10px; box-shadow: 0 16px 36px -12px rgba(15,29,36,.28), 0 2px 6px rgba(15,29,36,.06);
    animation: ts-pop .14s ease-out;
}
@keyframes ts-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ts-dropdown .ts-dropdown-content { max-height: 264px; padding-right: 2px; }
.ts-dropdown .ts-dropdown-content::-webkit-scrollbar { width: 6px; }
.ts-dropdown .ts-dropdown-content::-webkit-scrollbar-button { display: none; height: 0; }
.ts-dropdown .ts-dropdown-content::-webkit-scrollbar-track { background: transparent; }
.ts-dropdown .ts-dropdown-content::-webkit-scrollbar-thumb { background: #b9d3d0; border-radius: 3px; }
.ts-dropdown .option {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 12px; border-radius: 7px; line-height: 1.35; cursor: pointer; transition: background .1s;
}
.ts-dropdown .option + .option { margin-top: 2px; }
.ts-dropdown .option.active { background: var(--teal-50); color: var(--teal-800); }
.ts-dropdown .option.selected { background: #dcf0ee; color: var(--teal-800); font-weight: 700; }
.ts-dropdown .option.selected::after {
    content: ''; width: 14px; height: 14px; flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%230e6e6b' d='m232.49 80.49-128 128a12 12 0 0 1-17 0l-56-56a12 12 0 1 1 17-17L96 183 215.51 63.51a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ts-dropdown .option .highlight { background: var(--gold-100); color: var(--gold-700); border-radius: 3px; }
.ts-dropdown .no-results { padding: 9px 12px; color: var(--muted); }

/* ---------- header tabel: teal solid seperti HITS ---------- */
.hits-table thead th {
    background: #0f716e; color: #fff; font-size: 14px; font-weight: 700;
    text-transform: none; letter-spacing: 0; padding: 16px 14px 12px;
}
.hits-table thead tr.filters th { padding: 0 6px 14px; }
.hits-table .sort-ic { opacity: 1; font-size: 13px; }

/* ---------- ringkasan hasil per pertanyaan ---------- */
.sum-section { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 12px; padding-left: 12px; border-left: 4px solid var(--teal-600); }
.sum-section h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin: 0; letter-spacing: -.01em; }
.sum-section span { font-size: 12.5px; color: var(--muted); }
.row > div:nth-child(n) > .sum-card { width: 100%; }
.sum-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px 20px; display: flex; flex-direction: column; }
.sum-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.sum-title { font-weight: 700; color: var(--ink); font-size: 14.5px; line-height: 1.4; }
.sum-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.sum-meta i { margin-right: 4px; color: var(--teal-600); }
.sum-body { display: flex; gap: 20px; align-items: center; flex: 1; }
.sum-empty { color: var(--faint); font-size: 13px; padding: 10px 0; }
.sum-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.sum-note i { color: var(--teal-600); }

.score-box { flex-shrink: 0; width: 118px; text-align: center; border-radius: 12px; padding: 14px 8px 12px; background: var(--teal-50); border: 1px solid var(--teal-100); }
.score-box .big { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--teal-800); }
.score-box .of { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.score-box .sub { font-size: 11px; color: var(--faint); margin-top: 2px; }
.score-box.good { background: var(--green-50); border-color: #cdeedd; } .score-box.good .big { color: var(--green-600); }
.score-box.ok { background: var(--amber-50); border-color: #f8e2b5; } .score-box.ok .big { color: var(--amber-600); }
.score-box.bad { background: var(--red-50); border-color: #f8cdd1; } .score-box.bad .big { color: var(--red-600); }
.stars { position: relative; display: inline-block; margin-top: 8px; font-size: 14px; line-height: 1; white-space: nowrap; letter-spacing: 1px; }
.stars .off { color: #dfe5e6; }
.stars .on { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #e3a008; }

.dist { display: flex; flex-direction: column; gap: 7px; }
.dist-row { display: grid; grid-template-columns: 16px 1fr 26px 38px; gap: 10px; align-items: center; font-size: 12.5px; }
.dist-row .k { font-weight: 700; color: var(--ink-2); text-align: center; }
.dist-row .track { height: 10px; background: #f0f3f3; border-radius: 99px; overflow: hidden; }
.dist-row .fill { height: 100%; border-radius: 99px; min-width: 0; }
.dist-row .fill.hi { background: var(--g-teal); }
.dist-row .fill.mid { background: linear-gradient(90deg, #d39a2b, #f0c060); }
.dist-row .fill.lo { background: linear-gradient(90deg, #d9454f, #f08a90); }
.dist-row .n { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.dist-row .p { text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; }
.dist-labels { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--faint); margin-top: 4px; }

.nps-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: #f0f3f3; gap: 2px; }
.nps-bar span { height: 100%; }
.pro { background: linear-gradient(90deg, #12895a, #3cc48a); }
.pas { background: linear-gradient(90deg, #d99a1c, #f5c66b); }
.det { background: linear-gradient(90deg, #d9454f, #f08a90); }
.nps-legend { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.nps-legend > div { display: flex; align-items: center; gap: 8px; }
.nps-legend small { color: var(--faint); }
.nps-legend b { margin-left: auto; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.nps-legend .dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.nps-mini { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; height: 54px; margin-top: 14px; align-items: end; }
.nps-mini > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.nps-mini .b { width: 100%; border-radius: 3px 3px 1px 1px; }
.nps-mini small { font-size: 10px; color: var(--faint); line-height: 1; }

.choice-list { display: flex; flex-direction: column; gap: 10px; }
.choice-label { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.choice-num { font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.choice-num small { font-weight: 500; color: var(--faint); }
.choice-row .track { height: 8px; background: #f0f3f3; border-radius: 99px; overflow: hidden; }
.choice-row .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8fcfc8, #5fb8b0); }
.choice-row.top .fill { background: var(--g-teal); }
.choice-row.top .choice-label > span:first-child { font-weight: 700; color: var(--teal-800); }

.quote-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.quote-list li { display: flex; gap: 10px; background: #f7faf9; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.quote-list i { color: var(--teal-200); font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.date-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.date-stats > div { background: #f7faf9; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.date-stats small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.date-stats b { display: block; font-size: 16px; color: var(--ink); margin-top: 2px; }
.date-stats span { font-size: 12px; color: var(--faint); }

@media (max-width: 575px) {
    .sum-body { flex-direction: column; align-items: stretch; }
    .score-box { width: 100%; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
}

/* ---------- preview ponsel di builder ---------- */
.preview-pane { position: sticky; top: 84px; }
.preview-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13.5px; color: var(--ink); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.seg { display: inline-flex; background: #e9efef; border-radius: 8px; padding: 3px; }
.seg button { border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 5px 12px; border-radius: 6px; }
.seg button.on { background: #fff; color: var(--teal-800); box-shadow: var(--shadow-sm); }
.phone {
    position: relative; width: 100%; max-width: 360px; margin: 0 auto; height: min(740px, calc(100vh - 190px)); min-height: 520px;
    border-radius: 42px; padding: 12px; background: linear-gradient(145deg, #1d2b30, #0d1417);
    box-shadow: 0 30px 60px -20px rgba(15,29,36,.45), inset 0 0 0 2px #3a4a50;
}
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 31px; background: #fbf8f9; display: block; }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; background: #0d1417; border-radius: 12px; z-index: 2; }
.preview-foot { text-align: center; font-size: 12px; color: var(--faint); margin-top: 12px; }

/* ---------- judul halaman di topbar ---------- */
.hits-topbar { height: 76px; }
.hits-topbar .page-head { display: flex; flex-direction: column; gap: 3px; margin: 0 0 0 4px; min-width: 0; }
.hits-topbar .page-head h1 { font-size: 21px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hits-topbar .crumbs { font-size: 12px; gap: 6px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.hits-topbar .crumbs i { font-size: 13px; }
.hits-content { padding-top: 26px; }
.preview-pane, .sticky-side { top: 96px; }
@media (max-width: 767px) {
    .hits-topbar .crumbs { display: none; }
    .hits-topbar .page-head h1 { font-size: 18px; }
}

.menu-label { font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.55); padding: 18px 14px 6px; }

/* ---------- pengguna & hak akses ---------- */
.user-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--g-teal-v); }
.user-avatar.gold { background: var(--g-gold-v); }
.role-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--teal-50); color: var(--teal-800); border: 1px solid var(--teal-100); white-space: nowrap; }
.role-badge.system { background: var(--gold-50); color: var(--gold-700); border-color: var(--gold-100); }
.role-card { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px 20px; position: relative; }
.role-card::before { content: ''; position: absolute; inset: -1px -1px auto -1px; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: var(--g-teal); }
.role-card.system::before { background: var(--g-gold); }
.role-card-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.role-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; flex-shrink: 0; background: var(--teal-50); color: var(--teal-700); }
.role-ic.sm { width: 32px; height: 32px; border-radius: 9px; font-size: 17px; }
.role-card.system .role-ic { background: var(--gold-100); color: var(--gold-700); }
.role-name { font-weight: 800; font-size: 16px; color: var(--ink); }
.role-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.role-stats { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 8px; }
.role-stats i { color: var(--teal-600); margin-right: 5px; }
.perm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.perm-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: #f3f5f6; color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(152,166,173,.5); }
.perm-chip.on { background: var(--green-50); color: var(--green-600); text-decoration: none; font-weight: 600; }
.perm-group { width: 100%; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.perm-group-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #f7faf9; border-bottom: 1px solid var(--line); color: var(--ink); }
.perm-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); cursor: pointer; margin: 0; transition: background .12s; }
.perm-group-head + .perm-item { border-top: 0; }
.perm-item:hover { background: var(--teal-50); }
.perm-item.locked { cursor: default; opacity: .85; }
.perm-label { font-weight: 600; color: var(--ink); font-size: 13.5px; }
.perm-desc { font-size: 12px; color: var(--muted); margin-top: 1px; }
.perm-item .form-switch .form-check-input { width: 2.6em; height: 1.4em; margin: 0; cursor: pointer; }

/* ---------- dropdown kustom untuk isian yang dikendalikan Alpine ---------- */
.hs-select { position: relative; }
.hs-select-btn {
    width: 100%; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 40px 8px 14px; font: inherit; font-size: 14px;
    color: var(--ink); text-align: left; background: #fff; border: 1px solid #b4c3c4; border-radius: 6px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7'%3E%3Cpath fill='%231f2a30' d='M0 0h11L5.5 7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 11px 7px;
    transition: border-color .15s, box-shadow .15s;
}
.hs-select-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-select-btn i { color: var(--teal-600); font-size: 17px; }
.hs-select-btn:hover { border-color: #8fa5a6; }
.hs-select-btn.open, .hs-select-btn:focus-visible {
    outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(14,110,107,.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7'%3E%3Cpath fill='%230e6e6b' d='M0 7h11L5.5 0z'/%3E%3C/svg%3E");
}
.hs-select.sm .hs-select-btn { min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 13.5px; }
.hs-select-menu {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; padding: 6px; background: #fff;
    border: 1px solid #dfe7e8; border-radius: 10px; max-height: 320px; overflow-y: auto;
    box-shadow: 0 16px 36px -12px rgba(15,29,36,.28), 0 2px 6px rgba(15,29,36,.06);
}
.hs-select-menu.wide { min-width: 290px; left: auto; }
.hs-select-menu::-webkit-scrollbar { width: 6px; }
.hs-select-menu::-webkit-scrollbar-button { display: none; height: 0; }
.hs-select-menu::-webkit-scrollbar-thumb { background: #b9d3d0; border-radius: 3px; }
.hs-group { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--faint); padding: 8px 12px 4px; }
.hs-group:first-child { padding-top: 4px; }
.hs-opt {
    width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 0; background: none; border-radius: 7px;
    font: inherit; font-size: 13.5px; color: var(--ink-2); text-align: left; cursor: pointer; transition: background .1s;
}
.hs-opt i { font-size: 17px; color: var(--muted); width: 18px; }
.hs-opt:hover { background: var(--teal-50); color: var(--teal-800); }
.hs-opt:hover i { color: var(--teal-600); }
.hs-opt.selected { background: #dcf0ee; color: var(--teal-800); font-weight: 700; }
.hs-opt.selected i { color: var(--teal-700); }
.hs-opt.selected::after {
    content: ''; margin-left: auto; width: 14px; height: 14px; flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%230e6e6b' d='m232.49 80.49-128 128a12 12 0 0 1-17 0l-56-56a12 12 0 1 1 17-17L96 183 215.51 63.51a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* di dalam header tabel teal */
.hits-table thead .ts-wrapper.form-select { padding: 0; min-height: 0; height: auto; }
.hits-table thead .ts-wrapper.single .ts-control, .hits-table thead .ts-wrapper.single.input-active .ts-control { border: 0; height: 36px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; border-radius: 8px; font-size: 13px; }
.hits-table thead .ts-wrapper.focus .ts-control, .hits-table thead .ts-wrapper.dropdown-active .ts-control { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); transition: transform .12s; }
.swatch:hover { transform: scale(1.1); }
.swatch.on { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 767px) {
    .fh-row { grid-template-columns: 1fr; gap: 6px; }
    .fh-label { padding-top: 0; font-weight: 600; }
}

@media (max-width: 991px) {
    .hits-sidebar { position: fixed; z-index: 40; margin-left: calc(-1 * var(--sidebar-w)); }
    .collapsed .hits-sidebar { margin-left: 0; box-shadow: 0 0 40px rgba(0,0,0,.3); }
    .hits-content { padding: 20px 16px 50px; }
    .hits-topbar { padding: 0 16px; }
    .page-head h1 { font-size: 22px; }
}
