/* =====================================================================
   OXELIA CRM ADMIN
   ===================================================================== */
:root {
    --ad-navy: #131A4A;
    --ad-navy-2: #0B1140;
    --ad-tosca: #3B6CF2;
    --ad-tosca-dark: #2D55D6;
    --ad-blue: #5A2FD0;
    --ad-bg: #F2F7F9;
    --ad-border: #E3EDF0;
    --ad-muted: #6B7A8C;
    --ad-grad: linear-gradient(135deg, #3B6CF2, #5A2FD0);
    --ad-sidebar: 258px;
}
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--ad-bg); color: #1E2B3A; font-size: 14px; }
a { color: var(--ad-tosca-dark); text-decoration: none; }
a:hover { color: var(--ad-blue); }
.text-tosca { color: var(--ad-tosca-dark) !important; }

/* Sidebar */
.ad-sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--ad-sidebar); z-index: 1040;
    background: linear-gradient(180deg, var(--ad-navy) 0%, var(--ad-navy-2) 100%); color: #fff;
    display: flex; flex-direction: column; transition: transform .3s;
}
.ad-brand { display: flex; align-items: center; gap: .7rem; padding: 1.2rem 1.3rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.ad-brand img { height: 44px; width: 44px; background: #fff; border-radius: 11px; padding: 4px; }
.ad-brand strong { display: block; font-size: 1.3rem; font-weight: 800; line-height: 1; color: #fff; }
.ad-brand small { color: #8BD9FF; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.ad-nav { flex: 1; overflow-y: auto; padding: .8rem .8rem 1rem; }
.ad-nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); padding: 1rem .8rem .4rem; }
.ad-nav a { display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border-radius: 12px; color: rgba(255,255,255,.75); font-weight: 500; margin-bottom: 2px; transition: all .2s; }
.ad-nav a i { font-size: 1.05rem; width: 20px; text-align: center; }
.ad-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.ad-nav a.active { background: var(--ad-grad); color: #fff; box-shadow: 0 8px 18px rgba(59, 108, 242,.3); }
.ad-nav a em { margin-left: auto; font-style: normal; background: #F43F5E; color: #fff; font-size: .7rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; }
.ad-view-site { margin: .8rem; padding: .65rem; border-radius: 12px; text-align: center; background: rgba(255,255,255,.07); color: #fff; font-weight: 600; font-size: .85rem; }
.ad-view-site:hover { background: rgba(255,255,255,.14); color: #fff; }
.ad-overlay { display: none; }

/* Main */
.ad-main { margin-left: var(--ad-sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.ad-topbar { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 1rem; padding: .9rem 1.6rem; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ad-border); }
.ad-topbar h1 { font-size: 1.2rem; font-weight: 800; color: var(--ad-navy); margin: 0; }
.ad-burger { display: none; border: 0; background: var(--ad-bg); width: 40px; height: 40px; border-radius: 12px; font-size: 1.3rem; }
.ad-user { display: flex; align-items: center; gap: .6rem; border: 0; background: transparent; text-align: left; font-weight: 600; color: var(--ad-navy); }
.ad-user small { display: block; font-weight: 500; color: var(--ad-muted); font-size: .72rem; text-transform: capitalize; }
.ad-avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--ad-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.ad-avatar-lg { width: 76px; height: 76px; font-size: 1.8rem; border-radius: 22px; display: flex; }
.ad-content { padding: 1.6rem; flex: 1; }
.ad-footer { padding: 1rem 1.6rem; color: var(--ad-muted); font-size: .8rem; }

/* Cards */
.ad-card { background: #fff; border-radius: 18px; padding: 1.4rem; box-shadow: 0 4px 18px rgba(19, 26, 74,.05); border: 1px solid var(--ad-border); }
.ad-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.ad-card-head h2, .ad-card-title { font-size: 1rem; font-weight: 700; color: var(--ad-navy); margin: 0 0 1rem; }
.ad-card-head h2 { margin: 0; }
.ad-sub { font-size: .85rem; font-weight: 700; color: var(--ad-navy); }
.ad-stat { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: 18px; padding: 1.2rem; border: 1px solid var(--ad-border); height: 100%; }
.ad-stat > i { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; }
.ad-stat small { color: var(--ad-muted); font-size: .78rem; display: block; }
.ad-stat strong { font-size: 1.25rem; font-weight: 800; color: var(--ad-navy); }
.ad-stat > div { min-width: 0; }
.ad-stat strong { overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .ad-stat { padding: .85rem; gap: .6rem; } .ad-stat > i { width: 40px; height: 40px; flex-basis: 40px; font-size: 1.1rem; border-radius: 12px; } .ad-stat strong { font-size: 1.02rem; } }
.ad-stat-tosca > i { background: var(--ad-grad); }
.ad-stat-navy > i { background: linear-gradient(135deg, #5A2FD0, #131A4A); }
.ad-stat-green > i { background: linear-gradient(135deg, #34D399, #059669); }
.ad-stat-amber > i { background: linear-gradient(135deg, #FBBF24, #F59E0B); }
.ad-mini-list { list-style: none; padding: 0; margin: 0; }
.ad-mini-list li { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--ad-border); }
.ad-mini-list li:last-child { border: 0; }
.ad-mini-list span { color: var(--ad-muted); }
.ad-mini-list i { color: var(--ad-tosca); margin-right: .3rem; }
.ad-top-item { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; }
.ad-top-item img { width: 46px; height: 36px; object-fit: cover; border-radius: 8px; }
.ad-top-item small { display: block; color: var(--ad-muted); font-size: .75rem; }
.ad-msg { display: block; padding: .6rem 0; border-bottom: 1px dashed var(--ad-border); color: #1E2B3A; }
.ad-msg small { display: block; color: var(--ad-muted); }

/* Tables */
.ad-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ad-muted); font-weight: 700; background: #F7FAFB; border-bottom: 1px solid var(--ad-border); padding: .75rem .8rem; white-space: nowrap; }
.ad-table td { padding: .75rem .8rem; border-color: var(--ad-border); }
.ad-thumb { width: 52px; height: 38px; object-fit: cover; border-radius: 8px; background: #EEF2FF; flex: 0 0 52px; }
.ad-unread td { background: #F0FBFA; }
.ad-code { background: #EEF2FF; color: var(--ad-tosca-dark); padding: .15rem .45rem; border-radius: 6px; font-weight: 700; }
.ad-ico { display: inline-flex; width: 30px; height: 30px; border-radius: 9px; background: #EEF2FF; color: var(--ad-tosca-dark); align-items: center; justify-content: center; margin-right: .3rem; }

/* Buttons & form */
.ad-btn { background: var(--ad-grad); color: #fff; border: 0; border-radius: 12px; font-weight: 600; }
.ad-btn:hover, .ad-btn:focus { color: #fff; filter: brightness(1.05); box-shadow: 0 6px 16px rgba(59, 108, 242,.3); }
.ad-btn-light { background: #EEF6F7; color: var(--ad-navy); border: 0; border-radius: 10px; font-weight: 600; }
.ad-btn-light:hover { background: #DDF2F1; color: var(--ad-tosca-dark); }
.form-control, .form-select { border-radius: 10px; border-color: var(--ad-border); }
.form-control:focus, .form-select:focus { border-color: var(--ad-tosca); box-shadow: 0 0 0 .2rem rgba(59, 108, 242,.15); }
.form-label { font-weight: 600; font-size: .84rem; color: var(--ad-navy); }
.form-check-input:checked { background-color: var(--ad-tosca); border-color: var(--ad-tosca); }
.ad-preview { width: 100%; max-height: 200px; object-fit: cover; border-radius: 12px; border: 1px solid var(--ad-border); background: #F2F7F9; }
.ad-badge-type { background: #EEF2FF; color: var(--ad-tosca-dark); font-weight: 700; }
.ad-tabs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
.ad-tabs a { display: block; padding: .5rem 1rem; border-radius: 10px; background: #fff; border: 1px solid var(--ad-border); color: var(--ad-navy); font-weight: 600; }
.ad-tabs a.active { background: var(--ad-grad); color: #fff; border-color: transparent; }
.ad-doku { background: #E1251B; color: #fff; padding: .1rem .5rem; border-radius: 6px; font-weight: 800; font-size: .85rem; }
.ad-log { border: 1px solid var(--ad-border); border-radius: 10px; padding: .5rem .7rem; margin-bottom: .5rem; }
.ad-log summary { cursor: pointer; font-size: .82rem; }
.ad-log pre { font-size: .72rem; background: #0E2236; color: #CDE3F5; padding: .7rem; border-radius: 8px; margin: .6rem 0 0; white-space: pre-wrap; word-break: break-all; max-height: 260px; }
.ad-message { background: #F7FAFB; border-radius: 14px; padding: 1.2rem; line-height: 1.75; }

/* SEO panel */
.ad-serp { border: 1px solid var(--ad-border); border-radius: 14px; padding: 1rem 1.1rem; background: #fff; }
.ad-serp-url { color: #1A7F37; font-size: .82rem; margin-top: .3rem; word-break: break-all; }
.ad-serp-title { color: #1A0DAB; font-size: 1.15rem; line-height: 1.3; margin: .15rem 0; }
.ad-serp-desc { color: #4D5156; font-size: .86rem; }
.ad-seo-checks { list-style: none; padding: 0; margin: 0; font-size: .84rem; }
.ad-seo-checks li { padding: .3rem 0; }
.ad-seo-checks .ok::before { content: '\F26A'; font-family: 'bootstrap-icons'; color: #10B981; margin-right: .4rem; }
.ad-seo-checks .no::before { content: '\F622'; font-family: 'bootstrap-icons'; color: #F59E0B; margin-right: .4rem; }
.note-editor.note-frame { border-radius: 12px; border-color: var(--ad-border) !important; }
.note-editor .note-toolbar { background: #F7FAFB; border-radius: 12px 12px 0 0; }

/* Login */
.ad-login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: radial-gradient(900px 500px at 90% 0%, #CFF3F0 0%, transparent 60%), #F0F2FA; }
.ad-login { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 920px; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 70px rgba(19, 26, 74,.15); }
.ad-login-art { background: linear-gradient(150deg, #2D3FB8, #131A4A); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.ad-login-art::after { content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(59, 108, 242,.35); right: -90px; bottom: -90px; }
.ad-login-art img { filter: brightness(1.6); }
.ad-login-art h2 { font-weight: 800; margin: 1.4rem 0 .7rem; }
.ad-login-art p { opacity: .85; }
.ad-login-art span { font-weight: 700; color: #8BD9FF; }
.ad-login-form { padding: 3rem; }
.ad-login-logo { height: 56px; margin-bottom: 1.4rem; }
.ad-login-form h1 { font-size: 1.4rem; font-weight: 800; color: var(--ad-navy); margin-bottom: 1.2rem; }

/* v2: request coding, karier */
.ad-status-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ad-status-chips a { padding: .4rem .8rem; border-radius: 99px; background: #fff; border: 1px solid var(--ad-border); color: var(--ad-navy); font-size: .8rem; font-weight: 600; }
.ad-status-chips a b { background: #EEF6F7; border-radius: 99px; padding: 0 .45rem; margin-left: .2rem; }
.ad-status-chips a.active { background: var(--ad-grad); color: #fff; border-color: transparent; }
.ad-status-chips a.active b { background: rgba(255,255,255,.25); }
.ad-chat { display: flex; flex-direction: column; gap: .6rem; max-height: 420px; overflow-y: auto; }
.ad-chat-msg { max-width: 90%; padding: .6rem .8rem; border-radius: 12px; font-size: .86rem; }
.ad-chat-msg small { display: block; font-size: .7rem; opacity: .7; font-weight: 600; }
.ad-chat-user { align-self: flex-start; background: #F2F7F9; border: 1px solid var(--ad-border); }
.ad-chat-admin { align-self: flex-end; background: var(--ad-grad); color: #fff; }
.ad-chat-system { align-self: center; background: #FFF8E6; color: #7A5B00; font-size: .78rem; text-align: center; }
.ad-file { display: flex; align-items: center; gap: .7rem; padding: .6rem; border: 1px solid var(--ad-border); border-radius: 12px; margin-bottom: .5rem; }
.ad-file > i { font-size: 1.4rem; color: var(--ad-tosca); }
.ad-file b { display: block; font-size: .85rem; word-break: break-all; }
.ad-file small { color: var(--ad-muted); font-size: .74rem; }

.ad-pass { position: relative; }
.ad-pass input { padding-right: 2.6rem; }
.ad-pass-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--ad-muted); width: 34px; height: 34px; border-radius: 8px; }
.ad-pass-btn:hover { background: #EEF6F7; color: var(--ad-tosca-dark); }
.ad-pass + .ad-pass, .ad-pass.mb-3 { margin-bottom: 1rem; }

/* =====================================================================
   v3: PORTAL MENTOR & HR
   ===================================================================== */
.mt-portal .ad-sidebar { background: linear-gradient(180deg, #0A3D55 0%, #131A4A 100%); }
.mt-profile { display: flex; gap: .7rem; align-items: center; margin: .9rem .9rem 0; padding: .8rem; border-radius: 14px; background: rgba(255,255,255,.07); }
.mt-profile b { display: block; font-size: .88rem; color: #fff; line-height: 1.25; }
.mt-profile small { display: block; font-size: .72rem; color: rgba(255,255,255,.6); }
.ad-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ad-avatar { overflow: hidden; flex: 0 0 auto; }
.mt-hello { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--ad-grad); color: #fff; border-radius: 20px; padding: 1.3rem 1.5rem; }
.mt-hello h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 .2rem; }
.mt-hello p { opacity: .85; }
.mt-att-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px dashed var(--ad-border); }
.mt-att-row:last-child { border-bottom: 0; }
.mt-att-row b { display: block; }
.mt-att-row small { color: var(--ad-muted); font-size: .78rem; }
.mt-clock { font-size: 2.6rem; font-weight: 800; color: var(--ad-navy); letter-spacing: .04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mt-cam { position: relative; aspect-ratio: 4/3; background: #0E2236; border-radius: 16px; overflow: hidden; }
.mt-cam video, .mt-cam img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.mt-cam img { transform: none; }
.mt-cam-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; color: #9FB4C7; text-align: center; padding: 1rem; font-size: .85rem; }
.mt-cam-msg i { font-size: 2.2rem; }
.mt-loc { padding: .7rem .9rem; border-radius: 12px; background: #F2F7F9; border: 1px solid var(--ad-border); font-size: .85rem; }
.mt-loc.ok { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.mt-loc.warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.mt-loc.err { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.mt-bottom-nav { display: none; }
.slip-wrap { overflow-x: auto; }
.ad-doc-thumb { display: block; width: 100%; max-height: 220px; object-fit: contain; background: #F2F7F9; border-radius: 12px; border: 1px solid var(--ad-border); }
.ad-att-photo { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ad-border); }
.ad-sig-pad { width: 100%; height: 200px; border: 2px dashed #B8CDD3; border-radius: 14px; background: #fff; touch-action: none; cursor: crosshair; }
.ad-sig-img { max-height: 80px; max-width: 100%; background: repeating-conic-gradient(#f3f6f8 0 25%, #fff 0 50%) 0 0/16px 16px; border-radius: 8px; padding: 4px; }
.ad-diff td { vertical-align: top; }
.ad-diff .old { color: #B42318; text-decoration: line-through; }
.ad-diff .new { color: #067647; font-weight: 600; }
/* Bagan struktur organisasi */
.org-scroll { overflow: auto; padding: 1rem; background: #fff; border-radius: 16px; }
.org-chart { display: inline-block; min-width: 100%; padding: 24px 24px 30px; background: #fff; text-align: center; }
.org-chart .org-head { margin-bottom: 22px; }
.org-chart .org-head h2 { font-size: 20px; font-weight: 800; color: #131A4A; margin: 0; }
.org-chart .org-head p { color: #2D55D6; font-weight: 600; margin: 2px 0 0; font-size: 13px; }
.org-tree, .org-tree ul { padding-top: 22px; position: relative; display: flex; justify-content: center; margin: 0; padding-left: 0; }
.org-tree { padding-top: 0; }
.org-tree li { list-style: none; position: relative; padding: 22px 8px 0; text-align: center; }
.org-tree li::before, .org-tree li::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 22px; border-top: 2px solid #A9B8E8; }
.org-tree li::after { right: auto; left: 50%; border-left: 2px solid #A9B8E8; }
.org-tree li:only-child::after, .org-tree li:only-child::before { display: none; }
.org-tree li:only-child { padding-top: 0; }
.org-tree li:first-child::before, .org-tree li:last-child::after { border: 0 none; }
.org-tree li:last-child::before { border-right: 2px solid #A9B8E8; border-radius: 0 6px 0 0; }
.org-tree li:first-child::after { border-radius: 6px 0 0 0; }
.org-tree ul::before { content: ''; position: absolute; top: 0; left: 50%; border-left: 2px solid #A9B8E8; width: 0; height: 22px; }
.org-tree > li { padding-top: 0; }
.org-tree > li::before, .org-tree > li::after { display: none; }
.org-card { display: inline-block; min-width: 150px; max-width: 190px; background: #fff; border: 1.5px solid #CFE7EA; border-radius: 14px; padding: 12px 12px 10px; box-shadow: 0 6px 16px rgba(19, 26, 74,.07); }
.org-card img, .org-card .org-ini { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 6px; border: 3px solid #EEF2FF; }
.org-card .org-ini { background: linear-gradient(135deg,#3B6CF2,#5A2FD0); color: #fff; font-weight: 800; font-size: 20px; line-height: 48px; }
.org-card b { display: block; font-size: 13px; color: #131A4A; line-height: 1.25; }
.org-card span { display: block; font-size: 11.5px; color: #2D55D6; font-weight: 600; margin-top: 2px; }
.org-tree > li > .org-card { background: linear-gradient(135deg,#3B6CF2,#5A2FD0); border-color: transparent; }
.org-tree > li > .org-card b, .org-tree > li > .org-card span { color: #fff; }
.org-tree > li > .org-card .org-ini { background: #fff; color: #5A2FD0; }

/* Responsive */
@media (max-width: 991.98px) {
    .ad-sidebar { transform: translateX(-100%); }
    body.ad-open .ad-sidebar { transform: none; }
    body.ad-open .ad-overlay { display: block; position: fixed; inset: 0; background: rgba(10, 15, 51,.45); z-index: 1035; }
    .ad-main { margin-left: 0; }
    .ad-burger { display: inline-flex; align-items: center; justify-content: center; }
    .ad-content { padding: 1rem; }
    .ad-topbar { padding: .75rem 1rem; }
    .ad-login { grid-template-columns: 1fr; }
    .ad-login-art { display: none; }
    .ad-login-form { padding: 2rem; }
}
@media (max-width: 991.98px) {
    .mt-portal .ad-content { padding-bottom: 5.5rem; }
    .mt-bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--ad-border); box-shadow: 0 -6px 20px rgba(19, 26, 74,.08); padding: .35rem .3rem calc(.35rem + env(safe-area-inset-bottom)); }
    .mt-bottom-nav a { flex: 1; text-align: center; font-size: .68rem; color: var(--ad-muted); padding: .3rem 0; font-weight: 600; }
    .mt-bottom-nav a i { display: block; font-size: 1.25rem; }
    .mt-bottom-nav a.active { color: var(--ad-tosca-dark); }
    .mt-clock { font-size: 2.2rem; }
}

/* ===== v4: Kalender jadwal mengajar ===== */
.cal-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .9rem; }
.cal-head h3 { margin: 0 .4rem; font-size: 1.15rem; font-weight: 800; color: var(--ad-navy); min-width: 150px; text-align: center; }
.cal-legend { gap: .8rem; font-size: .76rem; color: var(--ad-muted); align-items: center; }
.cal-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.cal-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-size: .74rem; font-weight: 700; color: var(--ad-muted); text-align: center; padding: .2rem 0; text-transform: uppercase; letter-spacing: .04em; }
.cal-day { min-height: 112px; background: #fff; border: 1px solid var(--ad-border); border-radius: 12px; padding: .35rem; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day.cal-off { background: #F6F9FA; border-style: dashed; }
.cal-day.cal-weekend { background: #FBFDFD; }
.cal-day.cal-today { border: 2px solid var(--ad-tosca); box-shadow: 0 0 0 3px rgba(59, 108, 242,.12); }
.cal-num { font-size: .78rem; font-weight: 800; color: var(--ad-navy); }
.cal-today .cal-num { color: var(--ad-tosca-dark); }
.cal-ev { display: block; border-radius: 8px; padding: 4px 6px; font-size: .72rem; line-height: 1.25; color: var(--ad-navy); border-left: 3px solid; background: #EEF6FF; overflow: hidden; }
.cal-ev b { font-weight: 800; }
.cal-ev small { display: block; color: var(--ad-muted); font-size: .66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev:hover { filter: brightness(.97); }
.cal-materi, .cal-dot.cal-materi { border-color: #2563EB; } .cal-ev.cal-materi { background: #EEF4FF; } .cal-dot.cal-materi { background: #2563EB; }
.cal-praktik { border-color: #3B6CF2; } .cal-ev.cal-praktik { background: #E9EEFF; } .cal-dot.cal-praktik { background: #3B6CF2; }
.cal-project { border-color: #F59E0B; } .cal-ev.cal-project { background: #FFF6E5; } .cal-dot.cal-project { background: #F59E0B; }
.cal-ujian { border-color: #E11D48; } .cal-ev.cal-ujian { background: #FFEEF1; } .cal-dot.cal-ujian { background: #E11D48; }
.cal-ev.cal-done { opacity: .65; }
.cal-cancel { text-decoration: line-through; opacity: .5; }
.cal-ag-date { font-size: .78rem; font-weight: 800; color: var(--ad-muted); text-transform: uppercase; letter-spacing: .04em; margin: .9rem 0 .4rem; }
.cal-ag-date.is-today { color: var(--ad-tosca-dark); }
.cal-ag-item { display: flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid var(--ad-border); border-left: 4px solid; border-radius: 12px; padding: .65rem .8rem; margin-bottom: .45rem; color: var(--ad-navy); }
.cal-ag-time { font-weight: 800; font-size: .95rem; min-width: 50px; text-align: center; }
.cal-ag-time small { display: block; font-weight: 600; font-size: .7rem; color: var(--ad-muted); }
.cal-ag-body { flex: 1; min-width: 0; }
.cal-ag-body b { display: block; font-size: .9rem; }
.cal-ag-body small { color: var(--ad-muted); font-size: .74rem; }
.ac-sess { display: flex; gap: .8rem; align-items: center; padding: .65rem 0; border-bottom: 1px dashed var(--ad-border); }
.ac-sess:last-child { border-bottom: 0; }
.ac-sess .d { width: 52px; text-align: center; background: #F2F4FF; border-radius: 12px; padding: .35rem 0; flex: 0 0 52px; }
.ac-sess .d b { display: block; font-size: 1.2rem; color: var(--ad-navy); line-height: 1; }
.ac-sess .d small { font-size: .65rem; font-weight: 700; color: var(--ad-tosca-dark); text-transform: uppercase; }
/* Penilaian */
.gr-score { width: 92px; text-align: center; font-weight: 700; }
.gr-final { font-size: 2.4rem; font-weight: 800; color: var(--ad-navy); line-height: 1; }
.gr-pred { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 1.5rem; font-weight: 800; color: #fff; background: var(--ad-grad); }
.gr-pred.p-D { background: linear-gradient(135deg, #F87171, #DC2626); }
.gr-pred.p-C { background: linear-gradient(135deg, #FBBF24, #D97706); }
.gr-bar { height: 8px; border-radius: 8px; background: #E5EEF1; overflow: hidden; }
.gr-bar span { display: block; height: 100%; background: var(--ad-grad); }
.gr-group { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ad-tosca-dark); background: #F0FAF9 !important; }
.pres-btns .btn { min-width: 58px; }
.pres-btns .btn-check:checked + .btn-outline-success { color: #fff; }

/* ===== AI Agent: Riset Tren & Ide Konten ===== */
.ai-tabs .nav-link{border-radius:999px;font-weight:600;font-size:.88rem;color:#475569;padding:.45rem 1rem}
.ai-tabs .nav-link.active{background:linear-gradient(135deg,#3B6CF2,#5A2FD0);color:#fff}
.tr-table td{vertical-align:top}
.tr-q{font-size:.98rem;color:#131A4A}
.tr-score{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:30px;border-radius:9px;font-weight:800;font-size:.95rem}
.tr-bars{display:flex;flex-direction:column;gap:2px;width:52px;margin:0 auto}
.tr-bars i{display:block;height:3px;border-radius:3px;background:#3B6CF2;max-width:100%}
.tr-bars i:nth-child(2){background:#F59E0B}.tr-bars i:nth-child(3){background:#10B981}
.ai-idea{display:block;border:1px solid #E3E7F5;border-radius:14px;padding:14px;height:100%;transition:.15s}
.ai-idea:hover{border-color:#3B6CF2;box-shadow:0 8px 24px rgba(59,108,242,.12)}
.ai-serp{border:1px solid #E3E7F5;border-radius:12px;padding:12px 14px;background:#fff}
.ai-serp-t{color:#1a0dab;font-size:1.1rem;line-height:1.3;margin:2px 0}
.ai-outline li{margin-bottom:.5rem}
.ai-slide{border-radius:12px;padding:12px;height:100%;background:linear-gradient(160deg,#141B57,#3B2A9A);color:#fff;display:flex;flex-direction:column;gap:4px;min-height:120px}
.ai-slide small{color:#9FC2FF;font-weight:700;font-size:.7rem;letter-spacing:.5px}.ai-slide b{font-size:.95rem}.ai-slide span{font-size:.8rem;color:#D6DEFF}

/* ============ Keuangan & Pajak (v7) ============ */
.fin-chart{display:flex;align-items:flex-end;gap:6px;height:200px;padding-top:8px;border-bottom:1px solid #E3E7F5}
.fin-col{flex:1;display:flex;flex-direction:column;align-items:center;height:100%;min-width:0}
.fin-col small{font-size:.7rem;color:#6B7A8C;margin-top:4px}
.fin-bars{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px}
.fin-bars i{display:block;width:42%;max-width:18px;border-radius:5px 5px 0 0;min-height:2px;transition:.2s}
.fin-bars i.rev,.fin-dot.rev{background:linear-gradient(180deg,#5EDCF8,#3B6CF2)}
.fin-bars i.exp,.fin-dot.exp{background:linear-gradient(180deg,#B49CFF,#5A2FD0)}
.fin-col:hover .fin-bars i{filter:brightness(1.12)}
.fin-dot{display:inline-block;width:10px;height:10px;border-radius:3px;vertical-align:middle;margin-right:3px}
.fin-jtable td{vertical-align:top}
.fin-jhead td{border-bottom-color:#EEF0F6}
.fin-jlines{font-size:.82rem;line-height:1.65}
.fin-entry td,.fin-entry th{padding:.35rem .4rem}
.fin-entry input.num,.fin-entry .text-end{text-align:right;font-variant-numeric:tabular-nums}
.fin-rep{width:100%;font-variant-numeric:tabular-nums}
.fin-rep th{font-size:.75rem;text-transform:uppercase;letter-spacing:.4px;color:#6B7A8C;border-bottom:2px solid #E3E7F5}
.fin-rep td{white-space:nowrap}.fin-rep td:first-child{white-space:normal}
.fr-section td{font-weight:800;color:#131A4A;padding-top:1rem;border-bottom:none;text-transform:uppercase;font-size:.8rem;letter-spacing:.4px}
.fr-group td{font-weight:700;color:#3B6CF2;border-bottom:none}
.fr-row td{color:#334155}
.fr-subtotal td{font-weight:700;border-top:1px solid #CBD5E1}
.fr-total td{font-weight:800;background:#EEF1FF}
.fr-grand td{font-weight:800;background:#131A4A;color:#fff}
.fr-grand a{color:#fff!important}

/* ============ v8: Kas Perusahaan, Pemasukan & Pengeluaran, Arsip, Kelas Live ============ */
.fin-cashcard{transition:.15s;border:1px solid transparent}
.fin-cashcard:hover{transform:translateY(-2px)}
.fin-cashcard.active{border-color:#3B6CF2;box-shadow:0 0 0 3px rgba(59,108,242,.12)}
.fin-cashcard.total{background:linear-gradient(135deg,#131A4A,#3B2A9A);color:#fff}
.fin-cashcard.total small{color:#C7D2FE}
.fin-cashcard.total .h3,.fin-cashcard.total div{color:#fff}
.fin-mini{background:#F5F7FF;border-radius:10px;padding:8px 6px;color:#6B7A8C}
.fin-mini b{display:block;color:#131A4A;font-size:.95rem;font-variant-numeric:tabular-nums}
.fin-mini.in b{color:#16A34A}.fin-mini.out b{color:#DC2626}
.fin-cat{display:inline-block;font-size:.72rem;font-weight:700;border-radius:999px;padding:1px 9px}
.fin-cat.masuk{background:#DCFCE7;color:#166534}.fin-cat.keluar{background:#FEE2E2;color:#991B1B}
.fin-bar{height:6px;background:#EEF1FF;border-radius:6px;overflow:hidden;margin-top:3px}
.fin-bar i{display:block;height:100%;border-radius:6px}
.fin-bar.in i{background:linear-gradient(90deg,#34D399,#16A34A)}.fin-bar.out i{background:linear-gradient(90deg,#FCA5A5,#DC2626)}
.arsip-cats .list-group-item{border:0;border-radius:8px!important;margin-bottom:2px}
.arsip-cats .list-group-item.active{background:linear-gradient(135deg,#3B6CF2,#5A2FD0)}
.arsip-card{background:#fff;border:1px solid #E3E7F5;border-radius:16px;overflow:hidden;transition:.15s;box-shadow:0 4px 14px rgba(19,26,74,.04)}
.arsip-card:hover{box-shadow:0 10px 26px rgba(19,26,74,.10);transform:translateY(-2px)}
.arsip-thumb{display:flex;align-items:center;justify-content:center;flex-direction:column;height:150px;background:#F1F4FB;overflow:hidden}
.arsip-thumb img{width:100%;height:100%;object-fit:cover}
.arsip-thumb.pdf{background:linear-gradient(160deg,#FFF1F1,#FFE1E1);color:#DC2626}
.arsip-thumb.pdf i{font-size:3rem}.arsip-thumb.pdf span{font-size:.75rem;font-weight:700;color:#991B1B}
.arsip-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.3}
.arsip-drop{position:relative;border:2px dashed #C7D2FE;border-radius:14px;padding:22px;text-align:center;color:#3B6CF2;background:#F8FAFF;transition:.15s}
.arsip-drop.over,.arsip-drop.has{border-color:#3B6CF2;background:#EEF2FF}
.arsip-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.arsip-viewer iframe{width:100%;height:78vh;border:0;border-radius:12px;background:#525659}
.arsip-viewer img{display:block;max-width:100%;max-height:78vh;margin:0 auto;border-radius:10px}
.live-card{background:#fff;border:1px solid #E3E7F5;border-radius:16px;padding:16px;height:100%;box-shadow:0 4px 14px rgba(19,26,74,.04)}
.live-card.live{border:2px solid #EF4444;box-shadow:0 8px 24px rgba(239,68,68,.15)}
.live-card.done,.live-card.cancelled{opacity:.8}
.live-meta div{margin-bottom:3px}.live-meta i{width:18px;color:#6B7A8C}
.live-dot{position:relative;padding-left:16px!important}
.live-dot::before{content:'';position:absolute;left:6px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:#fff;animation:livePulse 1.2s infinite}
@keyframes livePulse{0%,100%{opacity:1}50%{opacity:.2}}
.zoom-stage{position:relative;min-height:420px;background:#0B1020;border-radius:12px;overflow:hidden}
.zoom-hint{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#E2E8F0;text-align:center;padding:24px}

/* ============ v9: Video pembelajaran (mentor & admin) ============ */
.vup-drop{position:relative;border:2px dashed #C7D2FE;border-radius:14px;padding:22px;text-align:center;color:#3B6CF2;background:#F8FAFF;transition:.15s}
.vup-drop.over{border-color:#3B6CF2;background:#EEF2FF}
.vup-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.vrow{display:flex;gap:12px;align-items:center;border:1px solid #E3E7F5;border-radius:14px;padding:10px;margin-bottom:10px;background:#fff}
.vrow-thumb{position:relative;flex:0 0 132px;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#131A4A}
.vrow-thumb img{width:100%;height:100%;object-fit:cover}
.vrow-thumb span{position:absolute;right:5px;bottom:5px;background:rgba(0,0,0,.75);color:#fff;font-size:.7rem;border-radius:5px;padding:0 5px}
.adm-vrow{display:flex;gap:14px;border:1px solid #E3E7F5;border-radius:14px;padding:12px;margin-bottom:12px;background:#fff}
.adm-vrow-player{flex:0 0 240px}
.adm-vrow-player video{width:100%;aspect-ratio:16/9;border-radius:10px;background:#000}
@media (max-width:767px){.adm-vrow{flex-direction:column}.adm-vrow-player{flex:auto}}

/* ============ v10: Testimoni ============ */
.testi-adm{display:flex;flex-direction:column;border:1px solid #E3E7F5;border-radius:16px;padding:14px;background:#fff}
.testi-adm-ph{width:56px;height:56px;border-radius:50%;object-fit:cover;background:#EEF1FF;flex:0 0 auto}
.testi-adm .min-w-0{min-width:0}

/* ============ v12: Menu Website ============ */
.menu-tbl tr.menu-off td{background:#FFF5F5}
.menu-tbl tr.menu-off input[type=text]{color:#9AA4B2;text-decoration:line-through}
.menu-preview{display:flex;flex-wrap:wrap;gap:6px;background:#F5F7FF;border-radius:12px;padding:12px}
.menu-preview span{background:#fff;border:1px solid #E3E7F5;border-radius:99px;padding:4px 12px;font-size:.82rem;font-weight:600;color:#131A4A}

/* ============ v13: Staff, ID Card, Absensi & Laporan Harian ============ */
.ad-avatar-img{object-fit:cover;padding:0}
.ad-absen-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:linear-gradient(135deg,#FFF7E6,#FFEFD5);border:1px solid #FDE2B3;color:#7A4B00;border-radius:14px;padding:10px 14px;margin-bottom:16px;font-size:.9rem}
.ad-absen-bar>i{font-size:1.4rem}.ad-absen-bar span{flex:1;min-width:200px}
.idc-stage{background:radial-gradient(circle at 30% 20%,#EEF2FF,#F7F8FD 60%);border-radius:18px;padding:26px 12px}
.staff-ph{width:72px;height:86px;border-radius:16px;object-fit:cover;flex:0 0 72px;box-shadow:0 6px 16px rgba(19,26,74,.12)}
.staff-ph-i{display:grid;place-items:center;background:linear-gradient(135deg,#3B6CF2,#5A2FD0);color:#fff;font-weight:800;font-size:1.6rem}
.staff-dl{display:grid;grid-template-columns:110px 1fr;gap:6px 10px;font-size:.88rem;margin-bottom:.75rem}
.staff-dl dt{color:#7A869A;font-weight:600}.staff-dl dd{margin:0}
.staff-stat{background:#F5F7FF;border:1px solid #E3E7F5;border-radius:14px;padding:12px}
.staff-stat b{display:block;font-size:1.35rem;font-weight:800;color:#131A4A}.staff-stat small{color:#7A869A;font-size:.78rem}
.staff-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.staff-item{border:1px solid #E3E7F5;border-radius:18px;padding:14px;background:#fff;display:flex;flex-direction:column;align-items:center}
.staff-item.is-off{opacity:.55}
.staff-meta{width:100%}
.idc-mini{width:170px;height:270px;overflow:hidden;margin-bottom:10px}
.idc-mini .idc-pair{transform:scale(.525);transform-origin:top left;width:324px;flex-wrap:nowrap}
.idc-mini .idc-cell+.idc-cell{display:none}
.att-ph img{width:34px;height:34px;border-radius:9px;object-fit:cover;border:1px solid #E3E7F5}
.lap-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid #E3E7F5;border-radius:99px;padding:4px 12px 4px 4px;text-decoration:none;color:#131A4A;background:#fff;font-size:.85rem}
.lap-chip img,.lap-chip>span{width:30px;height:30px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:linear-gradient(135deg,#3B6CF2,#5A2FD0);color:#fff;font-size:.7rem;font-weight:800}
.lap-chip.no{background:#FFF5F5;border-color:#FECACA}
.lap-h{font-size:.82rem;font-weight:800;color:#5A2FD0;text-transform:uppercase;letter-spacing:.05em;margin:18px 0 6px}
.lap-txt{background:#F7F8FD;border-radius:12px;padding:12px 14px;font-size:.92rem;line-height:1.65}
@media (max-width:575px){.idc-stage .idc-pair{transform:scale(.88);transform-origin:top center}}
.smtp-cfg{background:#0F172A;color:#E2E8F0;border-radius:12px;padding:14px 16px;font-size:.78rem;line-height:1.6;white-space:pre;overflow-x:auto}

/* v19.1 — sidebar Admin: kategori menu sebagai dropdown (sub menu) */
.ad-group { margin-bottom: 2px; }
.ad-group-btn { width: 100%; display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border: 0; border-radius: 12px; background: transparent;
    color: rgba(255,255,255,.8); font-weight: 600; font-size: .92rem; text-align: left; transition: all .2s; }
.ad-group-btn > i { font-size: 1.05rem; width: 20px; text-align: center; }
.ad-group-btn:hover { background: rgba(255,255,255,.07); color: #fff; }
.ad-group-btn em { margin-left: auto; font-style: normal; background: #F43F5E; color: #fff; font-size: .7rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; }
.ad-group-caret { margin-left: auto; font-size: .75rem; opacity: .6; transition: transform .2s; }
.ad-group-btn em + .ad-group-caret { margin-left: .4rem; }
.ad-group.open > .ad-group-btn { color: #fff; background: rgba(255,255,255,.05); }
.ad-group.open > .ad-group-btn .ad-group-caret { transform: rotate(180deg); }
.ad-group.is-current > .ad-group-btn { color: #fff; }
.ad-group-items { display: none; margin: 2px 0 6px 1.15rem; padding-left: .55rem; border-left: 1px solid rgba(255,255,255,.12); }
.ad-group.open > .ad-group-items { display: block; }
.ad-nav-grouped .ad-group-items a { padding: .5rem .7rem; font-size: .88rem; }
.ad-nav-grouped .ad-group-items a i { font-size: .95rem; }
.ad-group-n { font-size: .68rem; color: rgba(255,255,255,.4); font-weight: 600; margin-left: auto; }
.ad-group-n + em { margin-left: .4rem; }
.ad-group-n ~ .ad-group-caret { margin-left: .45rem; }