/* CLINED — Panel admin Pengguna & Aktivitas (v98). Mobile-first; target sentuh >= 44px. */
.ap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 !important; overflow: hidden; border-radius: 22px; }
.ap-hero { display: grid; gap: 12px; padding: 16px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.2), transparent 55%), linear-gradient(135deg, #3c64e6, #7c5cff); }
.ap-kick { font-size: 11px; font-weight: 900; letter-spacing: .1em; opacity: .85; }
.ap-hero h3 { margin: 2px 0 0; font-size: 19px; color: #fff; }
.ap-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ap-stats span { display: grid; justify-items: center; gap: 1px; padding: 8px 2px; border-radius: 14px; background: rgba(255,255,255,.18); font-size: 10.5px; font-weight: 800; }
.ap-stats b { font-size: 18px; line-height: 1.1; }
.ap > :not(.ap-hero) { margin-left: 14px; margin-right: 14px; }
.ap > div:last-child { margin-bottom: 14px; }
.ap-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface, #f4f6f7); border: 2px solid var(--line, #e5e7eb); }
.ap-tabs button { min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; font-weight: 900; font-size: 14px; cursor: pointer; }
.ap-tabs button.on { background: var(--card, #fff); box-shadow: 0 2px 0 var(--line, #e5e7eb), 0 0 0 2px #7c5cff inset; color: #5b43d6; }
:root.dark .ap-tabs button.on { color: #b7a8ff; }
.ap-msg { margin: 0; min-height: 0; font-size: 13px; font-weight: 800; }
.ap-msg.ok, .ap-msg.bad { padding: 10px 12px; border-radius: 12px; }
.ap-msg.ok { background: rgba(88,204,2,.14); color: #3d8a00; } .ap-msg.bad { background: rgba(255,75,75,.14); color: #d33; }
.ap-searchbox input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 14px; border-radius: 16px; border: 2px solid var(--line, #e5e7eb); background: var(--surface, #f4f6f7); color: inherit; font: inherit; font-size: 16px; }
.ap-searchbox input:focus { outline: none; border-color: #7c5cff; background: var(--card, #fff); box-shadow: 0 0 0 4px rgba(124,92,255,.15); }
.ap-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ap-chips::-webkit-scrollbar { display: none; }
.ap-chips button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 2px solid var(--line, #e5e7eb); background: var(--card, #fff); color: inherit; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ap-chips button.on { background: #7c5cff; border-color: #7c5cff; color: #fff; }
.ap-count { font-size: 12px; font-weight: 800; opacity: .65; margin-top: -2px; }
.ap-list { display: grid; gap: 8px; }
.ap-user { border-radius: 18px; border: 2px solid var(--line, #e5e7eb); background: var(--card, #fff); overflow: hidden; transition: border-color .15s; }
.ap-user.open { border-color: #7c5cff; }
.ap-user.busy { opacity: .6; pointer-events: none; }
.ap-user-head { display: grid; grid-template-columns: 46px minmax(0, 1fr) 20px; gap: 12px; align-items: center; width: 100%; min-height: 68px; padding: 10px 12px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ap-av { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 900; font-size: 15px; }
.ap-user-main { display: grid; gap: 3px; min-width: 0; }
.ap-user-main b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-user-main small { font-size: 12px; font-weight: 700; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-you { display: inline; padding: 1px 7px; border-radius: 99px; background: rgba(124,92,255,.15); color: #5b43d6; font-size: 10px !important; opacity: 1 !important; }
.ap-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ap-tag { font-style: normal; font-size: 10.5px; font-weight: 900; padding: 2px 8px; border-radius: 99px; background: var(--surface, #eef1f2); }
.ap-tag.r-admin { background: rgba(255,150,0,.18); color: #b86a00; } .ap-tag.r-helper { background: rgba(28,176,246,.16); color: #0b7cb4; } .ap-tag.r-mentor { background: rgba(88,204,2,.18); color: #3d8a00; }
:root.dark .ap-tag.r-admin { color: #ffc266; } :root.dark .ap-tag.r-helper { color: #7cd3ff; } :root.dark .ap-tag.r-mentor { color: #9be15a; }
.ap-chev { font-size: 22px; font-weight: 900; opacity: .45; transition: transform .2s; text-align: center; }
.ap-user.open .ap-chev { transform: rotate(90deg); }
.ap-user-body { display: grid; gap: 12px; padding: 4px 12px 14px; border-top: 2px dashed var(--line, #e5e7eb); }
.ap-lbl { margin-top: 8px; font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; opacity: .65; }
.ap-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: -6px; }
.ap-seg button { min-height: 48px; padding: 0 4px; border-radius: 14px; border: 2px solid var(--line, #e5e7eb); border-bottom-width: 4px; background: var(--card, #fff); color: inherit; font: inherit; font-weight: 900; font-size: 13px; cursor: pointer; }
.ap-seg button.on { background: rgba(124,92,255,.14); border-color: #7c5cff; color: #5b43d6; }
:root.dark .ap-seg button.on { color: #b7a8ff; }
.ap-seg button:disabled:not(.on) { opacity: .45; }
.ap-switch { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 12px; align-items: center; min-height: 60px; padding: 10px 12px; border-radius: 16px; background: var(--surface, #f4f6f7); cursor: pointer; }
.ap-switch b { font-size: 14px; display: block; } .ap-switch small { display: block; font-size: 12px; font-weight: 700; opacity: .7; line-height: 1.35; margin-top: 2px; }
.ap-switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ap-switch i { position: relative; width: 52px; height: 30px; border-radius: 99px; background: #c9d1d6; transition: background .2s; }
.ap-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.ap-switch input:checked + i { background: #58cc02; } .ap-switch input:checked + i::after { transform: translateX(22px); }
.ap-switch input:focus-visible + i { outline: 3px solid rgba(124,92,255,.5); outline-offset: 2px; }
.ap-danger { min-height: 48px; border-radius: 14px; border: 2px solid #ff4b4b; border-bottom-width: 4px; background: rgba(255,75,75,.08); color: #d33; font: inherit; font-weight: 900; font-size: 14px; cursor: pointer; }
.ap-danger.ghost { background: transparent; border-width: 2px; margin-top: 4px; font-size: 13px; }
.ap-danger:disabled { opacity: .5; }
.ap-note { margin: 0; font-size: 12px; font-weight: 700; opacity: .65; line-height: 1.45; }
.ap-day { position: sticky; top: 0; z-index: 1; margin: 8px 0 0; padding: 6px 2px; font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; opacity: .75; background: var(--card, #fff); }
.ap-act { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--line, #e5e7eb); background: var(--card, #fff); }
.ap-act-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-size: 18px; font-weight: 900; background: var(--surface, #eef1f2); }
.ap-act.k-login .ap-act-ico { background: rgba(88,204,2,.16); color: #3d8a00; } .ap-act.k-logout .ap-act-ico { background: rgba(255,150,0,.16); color: #b86a00; } .ap-act.k-role .ap-act-ico { background: rgba(124,92,255,.16); }
.ap-act-main { display: grid; gap: 2px; min-width: 0; }
.ap-act-main b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-act-main small { font-size: 12px; font-weight: 700; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-chg { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 900; color: #5b43d6; } .ap-chg i { font-style: normal; opacity: .6; }
.ap-act time { font-size: 12px; font-weight: 800; opacity: .6; }
.ap-empty { display: grid; justify-items: center; gap: 6px; padding: 28px 12px; text-align: center; font-weight: 800; opacity: .75; } .ap-empty span { font-size: 36px; }
.ap-skel { height: 68px; border-radius: 18px; background: linear-gradient(90deg, var(--surface, #eef1f2) 25%, var(--line, #e5e7eb) 50%, var(--surface, #eef1f2) 75%) 0 0 / 200% 100%; animation: ap-sh 1.2s infinite; margin-bottom: 8px; }
@keyframes ap-sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ap-skel { animation: none; } .ap-chev, .ap-switch i, .ap-switch i::after { transition: none; } }
@media (min-width: 560px) { .ap-list { grid-template-columns: 1fr 1fr; align-items: start; } .ap-day { grid-column: 1 / -1; } }
