/* ===== E-Office mobile app shell ===== */
:root {
    --m-primary: #435ebe;
    --m-primary-2: #5b7be0;
    --m-bg: #f2f4f8;
    --m-surface: #ffffff;
    --m-text: #25396f;
    --m-muted: #7c8db5;
    --m-border: #e8ebf3;
    --m-shadow: 0 2px 12px rgba(37, 57, 111, .06);
    --m-nav-h: 64px;
    --m-shell-w: 480px;
}
[data-bs-theme="dark"] {
    --m-bg: #151521;
    --m-surface: #1e1e2d;
    --m-text: #e4e6f0;
    --m-muted: #9899ac;
    --m-border: #2b2b40;
    --m-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

html, body.m-body { background: var(--m-bg); }
body.m-body { color: var(--m-text); -webkit-tap-highlight-color: transparent; }

/* di desktop: kolom aplikasi di tengah, latar luar sedikit berbeda */
@media (min-width: 576px) {
    body.m-body { background: #dfe4ef; }
    [data-bs-theme="dark"] body.m-body { background: #0d0d14; }
}

.m-shell {
    max-width: var(--m-shell-w);
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--m-bg);
    position: relative;
    padding-bottom: calc(var(--m-nav-h) + env(safe-area-inset-bottom));
}
@media (min-width: 576px) {
    .m-shell { box-shadow: 0 0 40px rgba(0, 0, 0, .08); }
}

/* app bar */
.m-appbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: .5rem;
    height: 56px; padding: 0 .75rem;
    padding-top: env(safe-area-inset-top);
    background: var(--m-surface);
    border-bottom: 1px solid var(--m-border);
}
.m-appbar-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 0 .25rem; color: var(--m-text); }
.m-appbar-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; background: transparent; color: var(--m-text); font-size: 1.25rem;
}
.m-appbar-btn:hover, .m-appbar-btn:active { background: rgba(67, 94, 190, .1); color: var(--m-text); }
.m-appbar-btn-light { color: #fff; background: rgba(255, 255, 255, .15); }
.m-appbar-btn-light:hover { color: #fff; background: rgba(255, 255, 255, .25); }

.m-content { padding: 1rem; }

/* hero beranda */
.m-hero {
    margin: -1rem -1rem 0;
    padding: calc(1.25rem + env(safe-area-inset-top)) 1rem 3.5rem;
    background: linear-gradient(135deg, var(--m-primary), var(--m-primary-2));
    color: #fff;
    border-radius: 0 0 24px 24px;
}
.m-hero-greet { font-size: .85rem; opacity: .85; }
.m-hero-name { font-size: 1.2rem; font-weight: 700; }
.m-hero-card {
    margin-top: 1.25rem; padding: .9rem 1rem;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255, 255, 255, .15); border-radius: 14px;
}
.m-hero-label { font-size: .8rem; opacity: .85; }
.m-hero-role { font-weight: 600; }
.m-hero + .m-section { margin-top: -2.25rem; position: relative; }

.m-avatar {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .25); color: #fff; font-weight: 700; font-size: 1.2rem;
}
.m-avatar-lg { width: 80px; height: 80px; font-size: 2rem; background: var(--m-primary); }

/* kartu & section */
.m-section { margin-top: 1.25rem; }
.m-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.m-section-head h2 { font-size: 1rem; font-weight: 700; margin: 0; color: var(--m-text); }
.m-card { background: var(--m-surface); border-radius: 16px; padding: 1rem; box-shadow: var(--m-shadow); }

/* grid menu */
.m-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem .25rem; }
.m-grid-item { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-decoration: none; text-align: center; }
.m-grid-item:active .m-icon { transform: scale(.92); }
.m-grid-label { font-size: .72rem; line-height: 1.2; color: var(--m-text); font-weight: 500; }
.m-icon {
    width: 50px; height: 50px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem; transition: transform .15s;
}
.m-icon-primary { background: #e6ebfa; color: #435ebe; }
.m-icon-info    { background: #e0f4fb; color: #1597c8; }
.m-icon-success { background: #e1f6ec; color: #198754; }
.m-icon-warning { background: #fff3dc; color: #d98b00; }
.m-icon-danger  { background: #fde8ea; color: #dc3545; }
.m-icon-purple  { background: #efe7fc; color: #7b4bd6; }
[data-bs-theme="dark"] .m-icon { background: rgba(255, 255, 255, .06); }

.m-empty { text-align: center; color: var(--m-muted); padding: 2rem 1rem; }
.m-empty i { font-size: 2.2rem; display: block; margin-bottom: .4rem; }
.m-empty p { margin: 0; font-size: .9rem; }

/* list (profil, dll.) */
.m-list { background: var(--m-surface); border-radius: 16px; box-shadow: var(--m-shadow); overflow: hidden; }
.m-list-item { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; color: var(--m-text); }
.m-list-item + .m-list-item { border-top: 1px solid var(--m-border); }
.m-list-item > i:first-child { font-size: 1.2rem; color: var(--m-muted); }
.m-list-item small { display: block; color: var(--m-muted); font-size: .75rem; }
.m-list-item span { font-weight: 500; }
.m-list-link { text-decoration: none; }
.m-list-link:active { background: var(--m-border); }
.m-list-link.text-danger > i:first-child, .m-list-link.text-danger span { color: #dc3545; }

/* bottom navigation */
.m-bottomnav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--m-shell-w); z-index: 30;
    display: flex;
    height: calc(var(--m-nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--m-surface);
    border-top: 1px solid var(--m-border);
}
.m-bottomnav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--m-muted); text-decoration: none; font-size: .7rem; font-weight: 500;
}
.m-bottomnav-item i { font-size: 1.35rem; }
.m-bottomnav-item.active { color: var(--m-primary); }
[data-bs-theme="dark"] .m-bottomnav-item.active { color: #7f9cf5; }

/* ===== override bawaan Mazer/Bootstrap agar ikon & teks rapi ===== */
.m-shell .bi::before,
.m-shell [class^="bi-"]::before,
.m-shell [class*=" bi-"]::before { vertical-align: 0 !important; line-height: 1 !important; display: block; }
.m-shell i.bi { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

.m-shell .m-appbar-btn { border-radius: 50% !important; padding: 0; flex-shrink: 0; font-size: 1.15rem; }
.m-shell .m-section-title { font-size: 1rem !important; font-weight: 700; margin: 0; color: var(--m-text); line-height: 1.3; }

.m-bottomnav .m-bottomnav-item { gap: 4px; line-height: 1; }
.m-bottomnav .m-bottomnav-item i { font-size: 1.3rem; height: 1.3rem; }
.m-bottomnav .m-bottomnav-item span { font-size: .7rem; line-height: 1; }

.m-grid .m-icon { font-size: 1.35rem; }
.m-grid .m-grid-label { display: block; }

.m-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.m-empty i.bi { font-size: 2.2rem; margin-bottom: .5rem; }

.m-hero-card i.bi { font-size: 1.4rem; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .18); opacity: 1; }
.m-hero-role { font-size: .95rem; text-transform: capitalize; }
.m-hero-name { line-height: 1.25; }

.m-list-item > i.bi:first-child { width: 36px; height: 36px; border-radius: 10px; background: var(--m-bg); font-size: 1.05rem; flex-shrink: 0; }
.m-list-item > div { min-width: 0; }

/* badge & notif pada ikon menu */
.m-icon { position: relative; }
.m-icon-muted { background: var(--m-border); color: var(--m-muted); }
.m-icon-badge {
    position: absolute; top: -6px; right: -10px;
    font-size: .55rem; font-weight: 700; line-height: 1; letter-spacing: .02em;
    padding: 3px 5px; border-radius: 6px; background: #dc3545; color: #fff;
}
.m-icon-notif {
    position: absolute; top: -5px; right: -6px;
    min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .65rem; font-weight: 700; background: #dc3545; color: #fff;
    border: 2px solid var(--m-surface);
}

/* ===== umum ===== */
.m-btn { border-radius: 12px; font-weight: 600; padding: .6rem 1rem; }
.m-text-wrap { white-space: normal; line-height: 1.35; }
.m-chevron { color: var(--m-muted); flex-shrink: 0; margin-left: auto; }
.m-list-item > i.m-chevron { width: auto; height: auto; background: none; }
.m-pill { display: inline-block; font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.m-pill-success { background: #e1f6ec; color: #198754; }
.m-pill-warning { background: #fff3dc; color: #b97400; }
[data-bs-theme="dark"] .m-pill-success { background: rgba(25, 135, 84, .2); color: #5fd49a; }
[data-bs-theme="dark"] .m-pill-warning { background: rgba(217, 139, 0, .2); color: #f5b84a; }

.m-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.m-row + .m-row { border-top: 1px solid var(--m-border); }
.m-row-sm { padding: .6rem 0; font-size: .9rem; }

.m-stat { flex: 1; border-radius: 12px; padding: .75rem; text-align: center; }
.m-stat b { display: block; font-size: 1.4rem; line-height: 1.2; }
.m-stat small { font-size: .75rem; }
.m-stat-success { background: #e1f6ec; color: #198754; }
.m-stat-warning { background: #fff3dc; color: #b97400; }
[data-bs-theme="dark"] .m-stat-success { background: rgba(25, 135, 84, .2); color: #5fd49a; }
[data-bs-theme="dark"] .m-stat-warning { background: rgba(217, 139, 0, .2); color: #f5b84a; }

.m-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; cursor: pointer; }
.m-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--m-primary); }

/* ===== slip gaji ===== */
.m-salary {
    padding: 1.25rem; border-radius: 18px; color: #fff;
    background: linear-gradient(135deg, var(--m-primary), var(--m-primary-2));
}
.m-salary-type { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .2); }
.m-salary-title { font-weight: 600; margin-top: .5rem; line-height: 1.35; }
.m-salary-label { font-size: .8rem; opacity: .85; }
.m-salary-netto { font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
.m-salary-sub { font-size: .72rem; opacity: .75; margin-top: .25rem; }

/* ===== tanda tangan ===== */
.m-sign-wrap { position: relative; height: 200px; border: 2px dashed var(--m-border); border-radius: 14px; background: #fff; overflow: hidden; }
#sign-pad { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.m-sign-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .4rem; color: #adb5bd; pointer-events: none; }
.m-sign-preview { height: 160px; border-radius: 14px; background: #fff; border: 1px solid var(--m-border); display: flex; align-items: center; justify-content: center; padding: .5rem; }
.m-sign-preview img { max-width: 100%; max-height: 100%; }

.m-pill-danger { background: #fde8ea; color: #dc3545; }
[data-bs-theme="dark"] .m-pill-danger { background: rgba(220, 53, 69, .2); color: #f07a86; }
.m-complain { display: flex; gap: .75rem; align-items: flex-start; border-left: 4px solid #dc3545; }
.m-complain i { color: #dc3545; font-size: 1.2rem; }

/* ===== warna tambahan ===== */
.m-text { color: var(--m-text); }
.m-text-primary { color: #435ebe; } .m-text-warning { color: #d98b00; } .m-text-success { color: #198754; }
.m-text-purple { color: #7b4bd6; } .m-text-info { color: #1597c8; } .m-text-pink { color: #d63384; }
.m-text-danger { color: #dc3545; } .m-text-muted { color: var(--m-muted); }
.m-pill-primary { background: #e6ebfa; color: #435ebe; }
.m-pill-purple  { background: #efe7fc; color: #7b4bd6; }
.m-pill-info    { background: #e0f4fb; color: #1597c8; }
.m-pill-pink    { background: #fce4f0; color: #d63384; }
.m-pill-muted   { background: var(--m-border); color: var(--m-muted); }
[data-bs-theme="dark"] .m-pill-primary { background: rgba(67, 94, 190, .25); color: #9fb3f5; }
[data-bs-theme="dark"] .m-pill-purple  { background: rgba(123, 75, 214, .25); color: #c4a8f5; }
[data-bs-theme="dark"] .m-pill-info    { background: rgba(21, 151, 200, .2); color: #6cc9ec; }
[data-bs-theme="dark"] .m-pill-pink    { background: rgba(214, 51, 132, .2); color: #f08cbf; }
.m-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: currentColor; flex-shrink: 0; }
.m-dot-success { color: #2ecc71; } .m-dot-warning { color: #f5b84a; } .m-dot-primary { color: #435ebe; }
.m-dot-purple { color: #7b4bd6; } .m-dot-info { color: #1597c8; } .m-dot-pink { color: #d63384; }
.m-dot-danger { color: #dc3545; } .m-dot-muted { color: var(--m-muted); }

.m-alert { padding: .8rem 1rem; border-radius: 12px; font-size: .9rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.m-alert-primary { background: #e6ebfa; color: #435ebe; } .m-alert-warning { background: #fff3dc; color: #b97400; }
.m-alert-success { background: #e1f6ec; color: #198754; } .m-alert-danger { background: #fde8ea; color: #dc3545; }
.m-alert-purple { background: #efe7fc; color: #7b4bd6; } .m-alert-info { background: #e0f4fb; color: #1597c8; }
.m-alert-pink { background: #fce4f0; color: #d63384; } .m-alert-muted { background: var(--m-border); color: var(--m-muted); }
[data-bs-theme="dark"] .m-alert { background: var(--m-surface); border: 1px solid var(--m-border); }

.m-btn-sm { border-radius: 10px; font-weight: 600; }
.min-w-0 { min-width: 0; }

/* ===== cuti ===== */
.m-quota { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.m-quota > div { background: rgba(255, 255, 255, .15); border-radius: 14px; padding: .75rem .9rem; }
.m-quota-label { font-size: .78rem; opacity: .9; display: flex; align-items: center; }
.m-quota-value { font-size: 1.6rem; font-weight: 800; line-height: 1.2; margin-top: .2rem; }
.m-quota-value small { font-size: .75rem; font-weight: 500; opacity: .8; }

.m-leave { display: block; text-decoration: none; margin-bottom: .75rem; }
.m-leave:active { transform: scale(.99); }
.m-leave-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: .6rem; border-bottom: 1px dashed var(--m-border); }
.m-leave-body { display: flex; gap: .8rem; align-items: center; padding-top: .7rem; }
.m-leave-body .small { margin-top: 2px; }
.m-more { text-align: center; padding: 1rem; }

.m-box { background: var(--m-bg); border-radius: 12px; padding: .75rem .9rem; font-size: .9rem; color: var(--m-text); }
.m-box-success { background: #e1f6ec; color: #198754; }
.m-box-danger { background: #fde8ea; color: #dc3545; }
[data-bs-theme="dark"] .m-box-success { background: rgba(25, 135, 84, .2); color: #5fd49a; }
[data-bs-theme="dark"] .m-box-danger { background: rgba(220, 53, 69, .2); color: #f07a86; }
.m-field { padding-top: .8rem; margin-top: .8rem; border-top: 1px solid var(--m-border); }
.m-field small { display: block; color: var(--m-muted); font-size: .75rem; margin-bottom: 2px; }
.m-field span { color: var(--m-text); word-break: break-word; }
.m-attach { display: block; max-width: 100%; max-height: 220px; border-radius: 12px; margin-top: .4rem; cursor: zoom-in; }
.m-wa { display: flex; gap: .8rem; align-items: center; text-decoration: none; border: 1px solid #b7e4c7; }

.m-fab {
    position: fixed; z-index: 25; width: 56px; height: 56px; border-radius: 50%; border: 0;
    bottom: calc(var(--m-nav-h) + env(safe-area-inset-bottom) + 16px);
    right: max(16px, calc((100vw - var(--m-shell-w)) / 2 + 16px));
    background: var(--m-primary); color: #fff; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(67, 94, 190, .45);
}
.m-fab:active { transform: scale(.94); }

/* bottom sheet */
.m-sheet { position: fixed; inset: 0; z-index: 1050; background: rgba(0, 0, 0, .45); display: none; align-items: flex-end; justify-content: center; }
.m-sheet.show { display: flex; animation: m-fade .15s; }
.m-sheet-panel {
    width: 100%; max-width: var(--m-shell-w); max-height: 80vh; display: flex; flex-direction: column;
    background: var(--m-surface); border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom);
    animation: m-up .2s ease-out;
}
.m-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: .75rem .75rem .5rem 1.25rem; font-weight: 700; color: var(--m-text); }
.m-sheet-body { overflow-y: auto; padding: 0 .5rem .75rem; }
.m-sheet-item { display: flex; align-items: center; gap: .7rem; padding: .85rem .75rem; border-radius: 12px; color: var(--m-text); text-decoration: none; }
.m-sheet-item:hover, .m-sheet-item:active { background: var(--m-bg); color: var(--m-text); }
.m-sheet-item.active { background: rgba(67, 94, 190, .1); color: var(--m-primary); font-weight: 600; }
@keyframes m-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }

/* form */
.m-form .m-label { display: block; font-size: .85rem; font-weight: 600; color: var(--m-text); margin: .9rem 0 .35rem; }
.m-form .m-label:first-child { margin-top: 0; }
.m-form .form-control { border-radius: 12px; padding: .65rem .85rem; }
.m-form .form-control[readonly] { background: var(--m-surface); cursor: pointer; }
.m-upload { width: 100%; display: flex; align-items: center; gap: .9rem; padding: .9rem; border: 2px dashed var(--m-border); border-radius: 14px; background: transparent; color: var(--m-text); }
.m-upload > i { font-size: 1.8rem; color: var(--m-primary); }
.m-upload-file { display: flex; align-items: center; gap: .75rem; padding: .6rem; border: 1px solid var(--m-border); border-radius: 14px; }
.m-upload-file img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.flatpickr-calendar { font-family: inherit; }

/* ===== log presensi ===== */
.m-month { display: flex; align-items: center; justify-content: space-between; }
.m-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--m-border); text-align: center; }
.m-summary b { display: block; font-size: 1.25rem; line-height: 1.2; }
.m-summary small { font-size: .65rem; color: var(--m-muted); white-space: nowrap; }

.m-log { background: var(--m-surface); border-radius: 16px; box-shadow: var(--m-shadow); overflow: hidden; }
.m-log-head, .m-log-row { display: grid; grid-template-columns: 1fr 72px 72px; align-items: center; gap: .5rem; padding: .7rem 1rem; }
.m-log-head { font-size: .72rem; font-weight: 600; color: var(--m-muted); text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--m-border); }
.m-log-head span:not(:first-child), .m-log-time { text-align: center; }
.m-log-row { width: 100%; border: 0; background: transparent; text-align: left; color: var(--m-text); font-size: .88rem; }
.m-log-row + .m-log-row { border-top: 1px solid var(--m-border); }
button.m-log-row:active { background: var(--m-bg); }
.m-log-date small, .m-log-time small { display: block; font-size: .7rem; color: var(--m-muted); line-height: 1.2; }
.m-log-time b { display: block; font-weight: 700; }
.m-log-status { grid-column: 2 / 4; text-align: right; font-size: .8rem; line-height: 1.3; }
.m-log-status b { display: block; }
.m-log-today { box-shadow: inset 3px 0 0 var(--m-primary); }
.m-log-danger  { background: #fdf0f1; }
.m-log-primary { background: #eef1fb; }
.m-log-purple  { background: #f5effd; }
.m-log-muted   { background: var(--m-bg); }
[data-bs-theme="dark"] .m-log-danger  { background: rgba(220, 53, 69, .1); }
[data-bs-theme="dark"] .m-log-primary { background: rgba(67, 94, 190, .12); }
[data-bs-theme="dark"] .m-log-purple  { background: rgba(123, 75, 214, .12); }

/* ===== catatan ===== */
.m-chips { display: flex; gap: .4rem; overflow-x: auto; padding: .5rem .25rem .25rem; scrollbar-width: none; scroll-behavior: smooth; }
.m-chips::-webkit-scrollbar { display: none; }
.m-chip { flex-shrink: 0; padding: .4rem .9rem; border-radius: 20px; font-size: .85rem; font-weight: 600; color: var(--m-muted); background: var(--m-bg); text-decoration: none; }
.m-chip.active { background: var(--m-primary); color: #fff; }

.m-seg { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.m-seg input { display: none; }
.m-seg span { display: block; text-align: center; padding: .6rem .5rem; border-radius: 12px; border: 1px solid var(--m-border); font-size: .85rem; color: var(--m-text); cursor: pointer; }
.m-seg input:checked + span { border-color: var(--m-primary); background: rgba(67, 94, 190, .1); color: var(--m-primary); font-weight: 600; }

.m-form .form-select { border-radius: 12px; padding: .65rem 2.25rem .65rem .85rem; }

/* timeline alur verifikasi */
.m-step { position: relative; display: flex; gap: .85rem; padding-bottom: 1.1rem; }
.m-step:not(.m-step-last)::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--m-border); }
.m-step-done:not(.m-step-last)::before { background: #2ecc71; }
.m-step-last { padding-bottom: 0; }
.m-step-dot { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .9rem; background: var(--m-border); color: var(--m-muted); }
.m-step-done .m-step-dot { background: #2ecc71; color: #fff; }
.m-step-current .m-step-dot { background: #fff3dc; color: #d98b00; box-shadow: 0 0 0 3px rgba(245, 184, 74, .25); }

/* lepas libur */
.m-daybox { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; }
.m-daybox-success { background: #e1f6ec; color: #198754; }
.m-daybox-danger { background: #fde8ea; color: #dc3545; }
[data-bs-theme="dark"] .m-daybox-success { background: rgba(25, 135, 84, .2); color: #5fd49a; }
[data-bs-theme="dark"] .m-daybox-danger { background: rgba(220, 53, 69, .2); color: #f07a86; }

.m-daybox-primary { background: #e6ebfa; color: #435ebe; }
[data-bs-theme="dark"] .m-daybox-primary { background: rgba(67, 94, 190, .25); color: #9fb3f5; }
.m-select { border-radius: 12px; }

/* faq */
.m-search { position: relative; }
.m-search > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--m-muted); }
.m-search .form-control { padding: .75rem 1rem .75rem 2.6rem; border-radius: 14px; border: 0; box-shadow: var(--m-shadow); background: var(--m-surface); }
.m-faq { margin-bottom: .6rem; padding: 0; }
.m-faq summary { list-style: none; display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; cursor: pointer; }
.m-faq summary::-webkit-details-marker { display: none; }
.m-faq summary .m-icon { width: 36px; height: 36px; font-size: 1.1rem; border-radius: 10px; flex-shrink: 0; }
.m-faq[open] summary .m-chevron { transform: rotate(180deg); color: var(--m-primary); }
.m-faq[open] summary .fw-semibold { color: var(--m-primary); }
.m-faq-body { padding: 0 1rem 1rem 3.75rem; font-size: .9rem; color: var(--m-text); }
.m-faq-body ul { padding-left: 1.1rem; margin: 0; }
.m-faq-body li + li { margin-top: .25rem; }

/* tabs (si petruk) */
.m-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; padding: .3rem; background: var(--m-surface); border-radius: 14px; box-shadow: var(--m-shadow); }
.m-tabs a { text-align: center; padding: .55rem .25rem; border-radius: 10px; font-size: .82rem; font-weight: 600; color: var(--m-muted); text-decoration: none; }
.m-tabs a.active { background: var(--m-primary); color: #fff; }

.m-score { width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; }
.m-score-success { background: #e1f6ec; color: #198754; }
.m-score-warning { background: #fff3dc; color: #b97400; }
.m-score-danger { background: #fde8ea; color: #dc3545; }

.m-rating { display: flex; justify-content: space-between; gap: .35rem; }
.m-rating label { flex: 1; }
.m-rating input { display: none; }
.m-rating span { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 14px; border: 2px solid var(--m-border); font-size: 1.6rem; cursor: pointer; filter: grayscale(.6); transition: transform .1s; }
.m-rating input:checked + span { border-color: var(--m-primary); background: rgba(67, 94, 190, .1); filter: none; transform: scale(1.06); }

/* ===== profil ===== */
.m-hero.text-center { padding-bottom: 1.75rem; }
.m-profile-photo { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .25); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 800; color: #fff; }
.m-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.m-hero-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; padding: .25rem .7rem; border-radius: 20px; background: rgba(255, 255, 255, .2); }
.m-hero.text-center + .m-section { margin-top: 1.25rem; }
.m-icon-sm { width: 38px; height: 38px; font-size: 1.1rem; border-radius: 11px; flex-shrink: 0; }
.m-list .m-list-item > .m-icon:first-child { width: 38px; height: 38px; }
.m-pass { position: relative; }
.m-pass .form-control { padding-right: 2.75rem; }
.m-pass-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--m-muted); font-size: 1.1rem; padding: .35rem .5rem; }

/* kartu jaspel / slip gaji (latar gambar sama dengan aplikasi Android, light & dark) */
.m-paycard {
    display: flex; flex-direction: column; justify-content: space-between; gap: .6rem;
    aspect-ratio: 658 / 360; min-height: 170px; padding: 1rem 1.15rem; margin-bottom: .75rem;
    border-radius: 16px; color: #fff; text-decoration: none; box-shadow: var(--m-shadow);
    background-size: cover; background-position: center; background-color: #198754;
}
.m-paycard:hover, .m-paycard:active { color: #fff; }
.m-paycard:active { transform: scale(.99); }
.m-paycard-green  { background-image: url(img/bg_jaspel_light_regular.png); }
.m-paycard-red    { background-image: url(img/bg_jaspel_light_kronis.png); background-color: #c0392b; }
.m-paycard-blue   { background-image: url(img/bg_jaspel_light_pending.png); background-color: #435ebe; }
.m-paycard-yellow, .m-paycard-violet { background-image: url(img/bg_jaspel_light_bonus.png); background-color: #d98b00; }
[data-bs-theme="dark"] .m-paycard-green  { background-image: url(img/bg_jaspel_dark_regular.png); }
[data-bs-theme="dark"] .m-paycard-red    { background-image: url(img/bg_jaspel_dark_kronis.png); }
[data-bs-theme="dark"] .m-paycard-blue   { background-image: url(img/bg_jaspel_dark_pending.png); }
[data-bs-theme="dark"] .m-paycard-yellow, [data-bs-theme="dark"] .m-paycard-violet { background-image: url(img/bg_jaspel_dark_bonus.png); }
.m-paycard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.m-paycard-title { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .02em; }
.m-paycard-dots { width: 35px; height: 21px; }
.m-paycard-new { width: 35px; height: 35px; }
.m-paycard-label { font-size: .62rem; text-transform: uppercase; opacity: .9; }
.m-paycard-value { font-size: .88rem; font-weight: 800; text-transform: uppercase; line-height: 1.3; }
.m-paycard-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-paycard-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: .75rem; }

/* ===== detail jaspel / slip gaji ===== */
.m-paycard-detail { margin-bottom: 0; }
.m-paycard-netto { font-size: 1.7rem; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.m-paycard-breakdown { display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem; border-radius: 12px; background: rgba(0, 0, 0, .15); }
.m-paycard-breakdown > div { flex: 1; min-width: 0; }
.m-paycard-breakdown .m-paycard-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-paycard-op { font-size: 1.2rem; font-weight: 800; opacity: .85; }

.m-paybox { display: flex; align-items: center; gap: .8rem; }
.m-paybox-icon { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.m-paybox-in  { background: #e1f6ec; color: #198754; }
.m-paybox-out { background: #fde8ea; color: #dc3545; }
[data-bs-theme="dark"] .m-paybox-in  { background: rgba(25, 135, 84, .2); color: #5fd49a; }
[data-bs-theme="dark"] .m-paybox-out { background: rgba(220, 53, 69, .2); color: #f07a86; }
.m-paybox-divider { height: 1px; background: var(--m-border); margin: .85rem 0 .35rem; }
.m-payline { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0 .45rem 3.3rem; font-size: .88rem; color: var(--m-text); }
.m-zero-toggle { display: flex; align-items: center; justify-content: center; gap: .35rem; width: 100%; margin-top: .35rem; padding: .5rem; border: 0; border-radius: 10px; background: var(--m-bg); color: var(--m-muted); font-size: .8rem; }

.m-agree-top { display: flex; align-items: center; gap: .9rem; }
.m-agree-sign { width: 96px; height: 72px; flex-shrink: 0; border-radius: 12px; border: 1.5px dashed var(--m-border); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 4px; }
.m-agree-sign img { max-width: 100%; max-height: 100%; }
.m-agree-sign-btn { cursor: pointer; border-color: var(--m-primary); }
.m-agree-sign-btn span { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--m-primary); font-size: 1.3rem; }
.m-agree-sign-btn small { font-size: .65rem; font-weight: 600; }
.m-agreed { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; padding: .6rem .8rem; border-radius: 10px; background: #e1f6ec; color: #198754; font-size: .82rem; font-weight: 600; }
[data-bs-theme="dark"] .m-agreed { background: rgba(25, 135, 84, .2); color: #5fd49a; }
