/* Dashboard Pelatihan — stylesheet (tanpa dependensi) */
:root {
  --bg: #f3f6fa; --card: #fff; --ink: #0f1e2e; --ink-2: #44566a; --muted: #6b7c8f; --line: #e3e9f0; --line-2: #eef2f6;
  --primary: #0b6e99; --primary-2: #0a5a7e; --primary-soft: #e3f2f9;
  --navy: #0b3b5c; --navy-2: #0d5079;
  --red: #dc2f3d; --red-bg: #fde8ea; --red-ink: #a51d29;
  --yellow: #e5a300; --yellow-bg: #fff4d3; --yellow-ink: #8a6100;
  --green: #17a160; --green-bg: #ddf5e8; --green-ink: #0d7343;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 30, 46, .04), 0 6px 24px -10px rgba(15, 30, 46, .14);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
code { font-size: .85em; background: var(--line-2); padding: .1em .4em; border-radius: 6px; }
[hidden] { display: none !important; }
.ic { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.pad { padding: 1rem; }
.inline { display: inline; margin: 0; }
.ok { color: var(--green-ink); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.container.narrow { max-width: 620px; }
.container-dash { margin-top: -2.4rem; position: relative; z-index: 2; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head p { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; align-items: start; }
.row-end { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }
.row-gap { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.row-gap.end { justify-content: flex-end; }
.span-all { grid-column: 1 / -1; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; padding: .65rem 1.25rem; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.5) blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--navy)); }
.topnav { display: flex; gap: .25rem; margin-left: auto; }
.topnav a, .topnav button { display: flex; align-items: center; gap: .4rem; padding: .5rem .75rem; border-radius: 10px; color: var(--ink-2); font: inherit; font-weight: 600; font-size: .9rem; background: none; border: 0; cursor: pointer; }
.topnav a:hover, .topnav button:hover { background: var(--line-2); text-decoration: none; }
.topnav a.is-active { color: var(--primary); background: var(--primary-soft); }
.who { display: flex; align-items: center; gap: .55rem; padding-left: .75rem; border-left: 1px solid var(--line); }
.who-text { display: flex; flex-direction: column; line-height: 1.15; font-size: .85rem; }
.who-text small { color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background:
    radial-gradient(1200px 400px at 85% -10%, rgba(56, 189, 248, .35), transparent 60%),
    radial-gradient(800px 300px at 0% 120%, rgba(16, 185, 129, .25), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--primary) 100%);
  padding: 2.2rem 1.25rem 4.2rem; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; mask-image: linear-gradient(to bottom, #000, transparent); }
.hero-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.hero-org { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); padding: .25rem .7rem; border-radius: 999px; margin-bottom: .8rem; }
.hero h1 { font-size: clamp(1.45rem, 3.6vw, 2.25rem); margin-bottom: .25rem; }
.hero-sub { font-size: clamp(1rem, 2.2vw, 1.2rem); opacity: .92; font-weight: 500; margin-bottom: .6rem; }
.hero-meta { font-size: .82rem; opacity: .72; margin: 0; }
.hero-form { position: relative; z-index: 3; max-width: 1180px; margin: 1.2rem auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); padding: 1rem; border-radius: var(--radius); backdrop-filter: blur(6px); }
.hero-form label { color: #fff; }
.hero-form input { background: rgba(255, 255, 255, .95); }
.hero-form .row-end { grid-column: 1 / -1; }

/* ---------- card ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1.25rem; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.card-head p { margin: 0; }
.table-card { padding: 0; overflow: hidden; }

/* ---------- forms ---------- */
label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .86rem; color: var(--ink-2); }
input, select, textarea { font: inherit; font-size: .95rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .62rem .8rem; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11, 110, 153, .14); }
label.check { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 500; margin: .8rem 0; }
label.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.form-stack { display: flex; flex-direction: column; gap: 1rem; }
.form-stack .btn { align-self: flex-start; }
.select-sm { width: auto; padding: .4rem .6rem; font-size: .85rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: inherit; font-weight: 700; font-size: .9rem; padding: .62rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid transparent; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, transform .05s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .42rem .7rem; font-size: .82rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px -6px rgba(11, 110, 153, .6); }
.btn-primary:hover { background: var(--primary-2); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--line-2); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-icon { padding: .42rem; }
.btn-danger-ghost { background: #fff; color: var(--red); border-color: var(--line); }
.btn-danger-ghost:hover { background: var(--red-bg); border-color: #f6c1c6; }

/* ---------- alerts / toast ---------- */
.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .92rem; border: 1px solid; }
.alert-ok { background: var(--green-bg); color: var(--green-ink); border-color: #b5e7cc; }
.alert-err { background: var(--red-bg); color: var(--red-ink); border-color: #f6c1c6; }
.alert .ic { margin-top: 2px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; font-weight: 600; font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); max-width: calc(100% - 2rem); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-ok { background: var(--green-ink); }
.toast-err { background: var(--red-ink); }

/* ---------- auth ---------- */
.auth-page { background: linear-gradient(135deg, var(--navy), var(--primary)); }
.auth-wrap { display: grid; place-items: center; padding: 2rem 1rem; min-height: 90vh; }
.auth-card { width: 100%; max-width: 410px; background: #fff; border-radius: 22px; padding: 2rem; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 1rem; }
.auth-card h1 { margin: 0; }
.auth-card p { margin: 0; }
.auth-logo { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--navy)); }
.auth-page .foot { color: rgba(255, 255, 255, .7); }

/* ---------- avatar / tags ---------- */
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #d6ecf6, #c9e9dc); color: var(--navy); font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.avatar.sm { width: 32px; height: 32px; font-size: .78rem; }
.avatar.xs { width: 28px; height: 28px; font-size: .7rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--line-2); color: var(--ink-2); }
.tag-on { background: var(--green-bg); color: var(--green-ink); }
.tag-off { background: var(--red-bg); color: var(--red-ink); }
.tag-admin { background: var(--primary-soft); color: var(--primary-2); }
.badge-soft { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; color: var(--primary-2); background: var(--primary-soft); padding: .25rem .6rem; border-radius: 999px; }

/* ---------- status pills ---------- */
.pill, .chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; padding: .32rem .7rem; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.s-red { background: var(--red-bg); color: var(--red-ink); }
.s-yellow { background: var(--yellow-bg); color: var(--yellow-ink); }
.s-green { background: var(--green-bg); color: var(--green-ink); }
.chip b { font-size: .95rem; }

/* ---------- stackbar ---------- */
.stackbar { display: flex; height: 8px; border-radius: 999px; background: var(--red-bg); overflow: hidden; min-width: 60px; }
.stackbar span { height: 100%; transition: width .3s; }
.stackbar .g { background: var(--green); }
.stackbar .y { background: var(--yellow); }
.stackbar.sm { height: 6px; }
.stackbar.xs { height: 5px; width: 54px; min-width: 54px; }

/* ---------- dashboards list ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.dash-card { display: flex; flex-direction: column; gap: .5rem; margin: 0; }
.dash-card h3 { font-size: 1.1rem; margin: 0; }
.dash-card h3 a { color: var(--ink); }
.dash-card p { margin: 0; }
.dc-org { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.dc-stats { display: flex; gap: 1rem; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.dc-stats b { color: var(--ink); }
.dc-owner { font-size: .82rem; color: var(--muted); display: flex; gap: .35rem; align-items: center; }
.dc-actions { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line-2); }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.empty p { margin: 0; }
.empty b { color: var(--ink); font-size: 1.05rem; }
.legend { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: .4rem; }

/* ---------- share bar & tabs ---------- */
.sharebar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding: .85rem 1rem; }
.sharebar-text { display: flex; align-items: center; gap: .7rem; min-width: 0; flex: 1; flex-wrap: wrap; }
.sharebar code { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; display: block; }
.sharebar-actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.tabs { display: flex; gap: .3rem; margin-bottom: 1.25rem; overflow-x: auto; scrollbar-width: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .3rem; box-shadow: var(--shadow); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 10px; font-weight: 700; font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.tabs a:hover { background: var(--line-2); text-decoration: none; }
.tabs a.is-active { background: var(--navy); color: #fff; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; margin-bottom: 1.25rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--primary)); }
.stat-label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat-val { font-size: 1.75rem; font-weight: 800; line-height: 1.2; color: var(--ink); }
.stat-sub { font-size: .78rem; color: var(--muted); }
.stat-blue { --c: var(--primary); } .stat-slate { --c: #64748b; }
.stat-green { --c: var(--green); } .stat-yellow { --c: var(--yellow); } .stat-red { --c: var(--red); }

/* ---------- search ---------- */
.search-card { position: relative; padding: 1.25rem 1.25rem 1rem; }
.search-label { font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: .6rem; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box .ic { position: absolute; left: 1rem; color: var(--muted); pointer-events: none; }
.search-box input { padding: .95rem 2.8rem .95rem 3rem; font-size: 1.05rem; border-radius: 14px; border-width: 2px; background: #fbfcfe; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box.sm .ic { left: .75rem; }
.search-box.sm input { padding: .55rem .8rem .55rem 2.3rem; font-size: .9rem; border-radius: 10px; border-width: 1.5px; }
.search-clear { position: absolute; right: .6rem; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--line-2); color: var(--ink-2); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.search-hint { font-size: .82rem; color: var(--muted); margin: .6rem 0 0; }
.sugg { position: absolute; left: 1.25rem; right: 1.25rem; top: calc(100% - 2.2rem); z-index: 20; list-style: none; margin: 0; padding: .35rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 40px -15px rgba(15, 30, 46, .3); max-height: 340px; overflow-y: auto; }
.sugg li { display: flex; align-items: center; gap: .7rem; padding: .55rem .65rem; border-radius: 10px; cursor: pointer; }
.sugg li.hi, .sugg li:hover { background: var(--primary-soft); }
.sugg-name { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.sugg-meta { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .78rem; }
.sugg-empty { color: var(--muted); justify-content: center; cursor: default !important; }

/* ---------- person ---------- */
.card.person { padding: 0; overflow: hidden; }
.person-head { display: flex; align-items: center; gap: 1.25rem; padding: 1.4rem 1.4rem 1.1rem; background: linear-gradient(180deg, #f6fafd, #fff); border-bottom: 1px solid var(--line-2); }
.person-info { flex: 1; min-width: 0; }
.person-info h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: .15rem; }
.person-info p { margin-bottom: .6rem; font-size: .9rem; }
.chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.ring { flex-shrink: 0; }
.ring-bg { fill: none; stroke: var(--line-2); stroke-width: 9; }
.ring-fg { fill: none; stroke: var(--green); stroke-width: 9; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .5s ease; }
.ring text { font-family: var(--font); font-weight: 800; font-size: 20px; fill: var(--ink); }
.pnav { display: flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--muted); align-self: flex-start; }
.pnav .btn { font-size: 1.1rem; padding: .2rem .65rem; }
.filters { display: flex; gap: .4rem; padding: .9rem 1.4rem; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); position: sticky; top: 57px; background: #fff; z-index: 5; }
.public .filters { top: 0; }
.fpill { font: inherit; font-size: .82rem; font-weight: 700; padding: .4rem .8rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.fpill b { margin-left: .2rem; opacity: .8; }
.fpill.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.fpill.f-red.is-active { background: var(--red); border-color: var(--red); }
.fpill.f-yellow.is-active { background: var(--yellow); border-color: var(--yellow); color: #3a2a00; }
.fpill.f-green.is-active { background: var(--green); border-color: var(--green); }
.tgroup { padding: 1rem 1.4rem .4rem; }
.tgroup h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .6rem; }
.tgroup h3 small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.tasks { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.task { display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; border: 1px solid var(--line); border-left-width: 5px; border-radius: 12px; background: #fff; transition: border-color .2s, background .2s; }
.task.st-red { border-left-color: var(--red); }
.task.st-yellow { border-left-color: var(--yellow); background: #fffdf5; }
.task.st-green { border-left-color: var(--green); background: #f8fdfa; }
.task-dot { display: none; }
.task-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .55rem; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .74rem; font-weight: 700; color: var(--primary-2); background: var(--primary-soft); padding: .12rem .45rem; border-radius: 6px; white-space: nowrap; }
.task-title { font-weight: 600; font-size: .93rem; }
.task-score { width: 100%; font-size: .78rem; color: var(--green-ink); font-weight: 600; }
.task-score:empty { display: none; }
.task-status { flex-shrink: 0; }
.st-select { width: auto; min-width: 158px; font-weight: 700; font-size: .85rem; padding: .45rem 2rem .45rem .8rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; }
.st-select.s-red { background-color: var(--red-bg); border-color: #f6c1c6; }
.st-select.s-yellow { background-color: var(--yellow-bg); border-color: #f3d98a; }
.st-select.s-green { background-color: var(--green-bg); border-color: #a9e2c4; }
.st-select:disabled { opacity: .6; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; margin: 0 -1.25rem -1.25rem; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: .75rem 1rem; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .7rem 1rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr.is-off td { opacity: .55; }
.table.rekap tbody tr { cursor: pointer; }
.table.rekap tbody tr:hover td { background: #f6fafd; }
.cell-user { display: flex; align-items: center; gap: .6rem; }
.col-bar { width: 26%; min-width: 110px; }
.t-right { text-align: right; } .t-c { text-align: center; }
.n-red { color: var(--red-ink); font-weight: 700; } .n-yellow { color: var(--yellow-ink); font-weight: 700; } .n-green { color: var(--green-ink); font-weight: 700; }
.dot-red, .dot-yellow, .dot-green { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; }
.dot-red { background: var(--red); } .dot-yellow { background: var(--yellow); } .dot-green { background: var(--green); }
.reset-form { display: flex; gap: .4rem; margin-top: .5rem; justify-content: flex-end; }
.reset-form input { max-width: 200px; padding: .4rem .6rem; font-size: .85rem; }

/* ---------- rekap tools & matrix ---------- */
.rekap-tools { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.rekap-tools .search-box { flex: 1; min-width: 180px; }
.seg { display: inline-flex; background: var(--line-2); padding: 3px; border-radius: 10px; }
.seg button { font: inherit; font-size: .82rem; font-weight: 700; padding: .4rem .8rem; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; }
.seg button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.mx-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; margin-bottom: .7rem; align-items: center; }
.mx-legend span { display: inline-flex; gap: .35rem; align-items: center; }
.mx-wrap { overflow: auto; max-height: 70vh; border: 1px solid var(--line); border-radius: 12px; }
.mx-table { border-collapse: separate; border-spacing: 0; font-size: .8rem; }
.mx-table th, .mx-table td { padding: 3px; text-align: center; border-bottom: 1px solid var(--line-2); background: #fff; }
.mx-table thead th { position: sticky; top: 0; z-index: 2; background: #f8fafc; height: 92px; vertical-align: bottom; font-weight: 700; color: var(--ink-2); }
.mx-table thead th span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-family: ui-monospace, Menlo, monospace; font-size: .72rem; }
.mx-table .mx-name { position: sticky; left: 0; z-index: 1; text-align: left; padding: 4px 10px; min-width: 170px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; border-right: 1px solid var(--line); }
.mx-table thead .mx-name { z-index: 3; vertical-align: bottom; }
.mx-table .mx-name a { color: var(--ink); }
.mx { display: block; width: 18px; height: 18px; border-radius: 5px; margin: auto; }
.mx-legend .mx { display: inline-block; width: 14px; height: 14px; margin: 0; }
.mx.st-red { background: #f5a3aa; } .mx.st-yellow { background: #f6cf5a; } .mx.st-green { background: var(--green); }
.mx-pct { font-weight: 800; padding: 0 10px !important; }

/* ---------- task admin ---------- */
.task-admin { display: flex; flex-direction: column; }
.ta-group { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.2rem 0 .4rem; }
.ta-row { display: grid; grid-template-columns: auto 74px 1fr 200px 140px; gap: .8rem; align-items: center; padding: .6rem .2rem; border-bottom: 1px solid var(--line-2); }
.ta-row.is-hidden .ta-main, .ta-row.is-hidden .code, .ta-row.is-hidden .ta-stat, .ta-row.is-hidden .ta-group-in { opacity: .45; }
.ta-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ta-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; }
.ta-title, .ta-group-in { padding: .45rem .6rem; font-size: .9rem; }
.ta-stat { display: flex; flex-direction: column; gap: .25rem; font-size: .75rem; color: var(--muted); }
.ta-row .code { text-align: center; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #cfd8e3; border-radius: 99px; cursor: pointer; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 4px rgba(11, 110, 153, .2); }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(to top, #fff 70%, rgba(255, 255, 255, 0)); padding: 1rem 0 .2rem; display: flex; justify-content: flex-end; }

/* ---------- import ---------- */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; text-align: center; padding: 2rem 1rem; border: 2px dashed #bcd0e0; border-radius: var(--radius); background: #f7fbfe; color: var(--primary); cursor: pointer; transition: .15s; margin: 1rem 0 .2rem; }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone.has-file { border-style: solid; border-color: var(--green); background: var(--green-bg); color: var(--green-ink); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-text { color: var(--ink); font-weight: 500; }
.dz-file { font-size: .82rem; font-weight: 500; }
.legend-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; }
.legend-list li { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.legend-list .pill { min-width: 140px; }
.bullets { padding-left: 1.2rem; margin: 0; font-size: .9rem; color: var(--ink-2); display: flex; flex-direction: column; gap: .4rem; }

.foot { text-align: center; font-size: .8rem; color: var(--muted); padding: 1.2rem; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .ta-row { grid-template-columns: auto 64px 1fr 160px; }
  .ta-stat { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .container { padding: 1rem .85rem 2.5rem; }
  .container-dash { margin-top: -2.2rem; }
  .topbar { padding: .55rem .85rem; gap: .5rem; }
  .brand-text, .who-text, .topnav span { display: none; }
  .who { padding-left: .4rem; }
  .topnav a, .topnav button { padding: .55rem; }
  .hero { padding: 1.6rem 1rem 3.6rem; }
  .hero-inner { flex-direction: column; }
  .hero-form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .stat:first-child { grid-column: 1 / -1; }
  .stat { padding: .8rem .9rem; }
  .stat-val { font-size: 1.4rem; }
  .card { padding: 1rem; }
  .table-wrap { margin: 0 -1rem -1rem; }
  .sugg { left: 1rem; right: 1rem; }
  .person-head { flex-wrap: wrap; padding: 1.1rem 1rem 1rem; gap: 1rem; }
  .person-head .ring { width: 76px; height: 76px; }
  .person-info { flex-basis: calc(100% - 100px); }
  .pnav { width: 100%; justify-content: flex-end; order: -1; margin-bottom: -.6rem; }
  .filters { padding: .7rem 1rem; flex-wrap: nowrap; overflow-x: auto; top: 53px; }
  .fpill { white-space: nowrap; }
  .tgroup { padding: .9rem 1rem .3rem; }
  .task { flex-wrap: wrap; padding: .7rem .8rem; gap: .55rem; }
  .task-main { flex-basis: 100%; }
  .task-status { width: 100%; }
  .st-select { width: 100%; }
  .task-status .pill { width: 100%; justify-content: center; }
  .hide-sm { display: none; }
  .col-bar { min-width: 70px; }
  .table th, .table td { padding: .6rem .55rem; }
  .ta-row { grid-template-columns: auto 1fr; gap: .4rem .7rem; }
  .ta-row .code { grid-column: 2; justify-self: start; }
  .ta-main { grid-column: 1 / -1; }
  .ta-group-in { grid-column: 1 / -1; }
  .sharebar code { max-width: 70vw; }
  .mx-table .mx-name { min-width: 120px; max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .topbar, .tabs, .sharebar, .search-card, .filters, .foot, .btn { display: none !important; }
  .hero { padding: 1rem; color: #000; background: none; }
  .container-dash { margin-top: 0; }
}
