:root {
    --ep-brand: #2fa308;
    --ep-brand-d: #237a06;
    --ep-brand-l: #ecf7e6;
    --ep-brand-t: #3cb815;
    --ep-side1: #153f08;
    --ep-side2: #1d5a0c;
    --ep-side3: #0f2f05;
    --ep-accent: #e0912a;
    --ep-accent-d: #bd7411;
    --ep-accent-l: #fbeed6;
    --ep-ink: #122019;
    --ep-body: #39463f;
    --ep-muted: #77857c;
    --ep-faint: #9aa79f;
    --ep-canvas: #eef2ec;
    --ep-line: #e4e9e3;
    --ep-line2: #eef1ec;
    --ep-head: #f6f8f5;
    --ep-bad: #c0392b;
    --ep-bad-l: #fdecea;
    --ep-info: #2563eb;
    --ep-info-l: #e6effd;
    --ep-violet: #6d5bd0;
    --ep-teal: #0e9488;
    --ep-r: 16px;
    --ep-r-sm: 11px;
    --ep-shadow: 0 1px 2px rgba(22, 48, 12, .05), 0 10px 30px rgba(22, 48, 12, .06);
    --ep-shadow-lg: 0 20px 55px rgba(22, 48, 12, .16);
    --ep-side-w: 15.75rem;
    --ep-top-h: 66px;
    --ep-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html, body.ep { height: auto; }
body.ep {
    margin: 0;
    background: var(--ep-canvas);
    color: var(--ep-body);
    font-family: var(--ep-font);
    font-size: 13.5px;
    line-height: 1.5;
    text-align: left;
    -webkit-font-smoothing: antialiased;
}
body.ep table, body.ep td, body.ep th, body.ep input, body.ep select, body.ep textarea, body.ep button { font-family: var(--ep-font); }
body.ep td { font-size: 13px; }
body.ep h1, body.ep h2, body.ep h3, body.ep h4, body.ep h5, body.ep h6 { color: var(--ep-ink); letter-spacing: -.015em; font-family: var(--ep-font); }
body.ep h4 { font-size: 18px; font-weight: 700; }
body.ep h5 { font-size: 15px; font-weight: 700; }
body.ep a { color: var(--ep-brand-d); }
body.ep a:hover { color: var(--ep-brand); }
body.ep ::selection { background: var(--ep-brand-l); }
body.ep :focus-visible { outline: 2px solid var(--ep-brand-t); outline-offset: 2px; }

.ep-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 1040;
    width: var(--ep-side-w);
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--ep-side1) 0%, var(--ep-side2) 55%, var(--ep-side3) 100%);
    color: #dfeedd;
    transition: transform .25s ease;
}
.ep-brand { display: flex; align-items: center; gap: 12px; padding: 18px 20px 16px; margin: 0 14px 6px; border-bottom: 1px solid rgba(255,255,255,.12); text-decoration: none !important; }
.ep-brand img { width: 46px; height: 46px; border-radius: 13px; background: #fff; padding: 4px; }
.ep-brand-name { display: block; color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ep-brand-sub { display: block; color: #b9d6b0; font-size: 12.5px; font-weight: 500; margin-top: 2px; }
.ep-nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.ep-nav-label { margin: 16px 10px 6px; color: #8fb586; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ep-nav a.ep-nav-link,
.ep-nav summary.ep-nav-link {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 14px; margin: 3px 0;
    border-radius: 12px;
    color: #eef7ea !important; font-size: 14.5px; font-weight: 600;
    text-decoration: none !important; cursor: pointer; list-style: none;
}
.ep-nav summary.ep-nav-link::-webkit-details-marker { display: none; }
.ep-nav .ep-nav-link > i:first-child, .ep-nav .ep-nav-link > svg:first-child { width: 21px; height: 21px; flex: none; text-align: center; color: #c9e6bd; font-size: 15px; }
.ep-nav .ep-nav-link:hover { background: rgba(255,255,255,.08); }
.ep-nav .ep-nav-link.ep-aktif { box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.ep-nav .ep-nav-link.ep-aktif { background: #fff; color: var(--ep-side2) !important; }
.ep-nav .ep-nav-link.ep-aktif > i:first-child, .ep-nav .ep-nav-link.ep-aktif > svg:first-child { color: var(--ep-brand); }
.ep-nav .ep-caret { margin-left: auto; width: 16px; height: 16px; font-size: 11px; opacity: .7; transition: transform .2s; flex: none; }
.ep-nav details[open] > summary .ep-caret { transform: rotate(180deg); }
.ep-sub { margin: 2px 0 10px 24px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.16); }
.ep-sub-head { margin: 10px 0 3px; color: #8fb586; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ep-sub a {
    display: block; padding: 6px 10px; margin: 1px 0; border-radius: 9px;
    color: #d8eadd !important; font-size: 13.5px; font-weight: 500; line-height: 1.35; text-decoration: none !important;
}
.ep-sub a:hover { background: rgba(255,255,255,.08); color: #fff !important; }
.ep-sub a.ep-aktif { background: #fff; color: var(--ep-side2) !important; font-weight: 700; }
.ep-side-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.ep-side-foot button svg { width: 18px; height: 18px; }
.ep-side-foot button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: var(--ep-r-sm); background: rgba(255,255,255,.07); color: #f3d2cd; font-weight: 600; font-size: 13px; }
.ep-side-foot button:hover { background: rgba(192,57,43,.35); color: #fff; }
.ep-backdrop { display: none; }

.ep-main { margin-left: var(--ep-side-w); min-height: 100vh; display: flex; flex-direction: column; }
.ep-topbar {
    position: sticky; top: 0; z-index: 1030;
    height: var(--ep-top-h);
    display: flex; align-items: center; gap: 14px;
    padding: 0 26px 0 30px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ep-line);
}
.ep-burger, .ep-top-btn { display: grid; place-items: center; flex: none; border: 1px solid var(--ep-line); background: #fff; border-radius: 12px; width: 40px; height: 40px; color: var(--ep-body); padding: 0; }
.ep-burger { display: none; }
.ep-burger svg, .ep-top-btn svg { width: 19px; height: 19px; }
.ep-top-btn:hover { background: var(--ep-brand-l); border-color: #cfe3c6; color: var(--ep-brand-d); }
.ep-top-title { min-width: 0; flex: 1; }
.ep-top-title b { display: block; color: var(--ep-ink); font-size: 17px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-top-title small { display: block; color: var(--ep-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-clock { display: none; color: var(--ep-muted); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ep-user-chip { display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 14px; background: var(--ep-brand-l); border: 1px solid #d7ecca; color: var(--ep-brand-d); max-width: 340px; }
.ep-user-chip .ep-avatar { width: 22px; height: 22px; color: var(--ep-brand); display: grid; place-items: center; flex: none; font-size: 18px; }
.ep-user-chip .ep-avatar svg { width: 22px; height: 22px; }
.ep-user-chip b { display: block; font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--ep-brand-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-user-chip small { display: block; font-size: 12px; color: #4f7a43; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-content { flex: 1; padding: 30px 26px 40px 28px; width: 100%; max-width: 1480px; }

body.ep .home-section:not(.ep-content), body.ep .home-content { background: transparent; padding: 0; margin: 0; min-height: 0; position: static; left: auto; width: auto; height: auto; }
body.ep .container.container-fill, body.ep .container-fill {
    max-width: 100%; min-width: 0; width: 100%;
    background: #fff; border: 1px solid var(--ep-line); border-radius: var(--ep-r);
    box-shadow: var(--ep-shadow); padding: 20px; margin: 0 0 20px;
}

@media (min-width: 1280px) { .ep-clock { display: block; } }
@media (max-width: 1023.98px) {
    .ep-sidebar { transform: translateX(-100%); box-shadow: var(--ep-shadow-lg); }
    body.ep-drawer .ep-sidebar { transform: none; }
    body.ep-drawer .ep-backdrop { display: block; position: fixed; inset: 0; z-index: 1035; background: rgba(15, 30, 10, .45); }
    .ep-main { margin-left: 0; }
    .ep-burger { display: grid; place-items: center; }
    .ep-topbar { padding: 0 14px; gap: 10px; }
    .ep-content { padding: 14px; }
    .ep-user-chip { padding: 4px; }
    .ep-user-chip > div { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ep-sidebar, .ep-nav .ep-caret { transition: none; } }

.ep-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.ep-crumbs { margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--ep-brand-d); }
.ep-crumbs a { color: var(--ep-brand-d); text-decoration: none; }
.ep-crumbs span.sep { color: var(--ep-faint); margin: 0 6px; }
body.ep .ep-page-head h1 { margin: 0; font-size: 24px; font-weight: 700; color: var(--ep-ink); }
.ep-page-head p { margin: 4px 0 0; color: var(--ep-muted); font-size: 13.5px; }
.ep-page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.ep-card { background: #fff; border: 1px solid var(--ep-line); border-radius: var(--ep-r); box-shadow: var(--ep-shadow); margin-bottom: 20px; min-width: 0; }
.ep-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--ep-line2); }
body.ep .ep-card-head h2, body.ep .ep-card-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ep-ink); }
.ep-card-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--ep-muted); }
.ep-card-body { padding: 20px; }
.ep-card-body.ep-flush { padding: 0; }
.ep-card-foot { padding: 14px 20px; border-top: 1px solid var(--ep-line2); background: #fbfcfa; border-radius: 0 0 var(--ep-r) var(--ep-r); display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ep-grid { display: grid; gap: 16px; }
.ep-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ep-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ep-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ep-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ep-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ep-grid-2, .ep-grid-3, .ep-grid-4 { grid-template-columns: minmax(0, 1fr); } }

.ep-stat { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--ep-line); border-radius: var(--ep-r); box-shadow: var(--ep-shadow); overflow: hidden; color: inherit; text-decoration: none !important; }
.ep-stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ep-brand); }
a.ep-stat:hover { border-color: #cfe3c6; }
.ep-stat-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; font-size: 16px; }
.ep-stat-label { color: var(--ep-muted); font-size: 12.5px; font-weight: 600; }
.ep-stat-value { color: var(--ep-ink); font-size: 27px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ep-stat-hint { color: var(--ep-faint); font-size: 12px; margin-top: 2px; }
.ep-ic-g { background: linear-gradient(135deg, #3cb815, #237a06); } .ep-stat.ep-t-g::before { background: var(--ep-brand); }
.ep-ic-b { background: linear-gradient(135deg, #4f8df5, #1d4ed8); } .ep-stat.ep-t-b::before { background: var(--ep-info); }
.ep-ic-a { background: linear-gradient(135deg, #f0a948, #bd7411); } .ep-stat.ep-t-a::before { background: var(--ep-accent); }
.ep-ic-r { background: linear-gradient(135deg, #e0604f, #b0342a); } .ep-stat.ep-t-r::before { background: var(--ep-bad); }
.ep-ic-v { background: linear-gradient(135deg, #8b7be0, #5a48c0); } .ep-stat.ep-t-v::before { background: var(--ep-violet); }
.ep-ic-t { background: linear-gradient(135deg, #22b3a6, #0b7a70); } .ep-stat.ep-t-t::before { background: var(--ep-teal); }
.ep-kpi { padding: 16px 18px; background: #fff; border: 1px solid var(--ep-line); border-radius: var(--ep-r); }
.ep-kpi .ep-stat-value { font-size: 24px; }

.ep-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ep-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--ep-line); border-radius: 14px; background: #fff; color: var(--ep-ink) !important; font-weight: 600; font-size: 13px; line-height: 1.3; text-decoration: none !important; transition: border-color .15s, background .15s; }
.ep-tile:hover { border-color: #bfe0b0; background: var(--ep-brand-l); }
.ep-tile .ep-stat-ic { width: 38px; height: 38px; font-size: 15px; }
.ep-tile small { display: block; color: var(--ep-muted); font-weight: 500; font-size: 12px; }

.ep-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; background: var(--ep-line2); color: #56645b; }
.ep-badge.ep-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ep-badge-success { background: var(--ep-brand-l); color: var(--ep-brand-d); }
.ep-badge-warning { background: var(--ep-accent-l); color: var(--ep-accent-d); }
.ep-badge-danger { background: var(--ep-bad-l); color: #b0342a; }
.ep-badge-info { background: var(--ep-info-l); color: #1d4ed8; }
.ep-badge-gray { background: var(--ep-line2); color: #56645b; }
.ep-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ep-accent); color: #fff; font-size: 11px; font-weight: 800; }

.ep-nota-kosong { padding: 34px 20px; border: 1.5px dashed #d3ddd0; border-radius: 14px; text-align: center; color: var(--ep-muted); background: #fbfcfa; }
.ep-nota-kosong i { display: block; font-size: 26px; color: #b7c6b2; margin-bottom: 8px; }
.ep-nota-kosong b { display: block; color: var(--ep-body); font-size: 14px; }
.ep-callout { padding: 12px 16px; border-left: 3px solid var(--ep-brand); background: var(--ep-brand-l); border-radius: 0 12px 12px 0; color: var(--ep-brand-d); font-size: 13px; margin-bottom: 16px; }
.ep-callout.ep-warn { border-color: var(--ep-accent); background: var(--ep-accent-l); color: var(--ep-accent-d); }
.ep-callout.ep-bad { border-color: var(--ep-bad); background: var(--ep-bad-l); color: #8f2a20; }

.ep-filter { background: #fff; border: 1px solid var(--ep-line); border-radius: var(--ep-r); box-shadow: var(--ep-shadow); margin-bottom: 20px; }
.ep-filter > summary { display: flex; align-items: center; gap: 10px; padding: 14px 20px; cursor: pointer; list-style: none; font-weight: 700; color: var(--ep-ink); font-size: 14px; }
.ep-filter > summary::-webkit-details-marker { display: none; }
.ep-filter > summary i { color: var(--ep-brand); }
.ep-filter > summary small { color: var(--ep-muted); font-weight: 500; font-size: 12px; }
.ep-filter > summary .ep-caret { margin-left: auto; color: var(--ep-faint); transition: transform .2s; }
.ep-filter[open] > summary { border-bottom: 1px solid var(--ep-line2); }
.ep-filter[open] > summary .ep-caret { transform: rotate(180deg); }
.ep-filter-body { padding: 18px 20px; }

.ep-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.ep-fields.ep-one { grid-template-columns: minmax(0, 1fr); }
.ep-fields.ep-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ep-field { min-width: 0; }
.ep-field.ep-span { grid-column: 1 / -1; }
.ep-field > label, .ep-label { display: block; margin-bottom: 5px; font-size: 12.5px; font-weight: 600; color: var(--ep-body); }
.ep-field .ep-help { margin-top: 4px; font-size: 12px; color: var(--ep-muted); }
.ep-req { color: var(--ep-bad); }
.ep-form-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--ep-line2); }
@media (max-width: 760px) { .ep-fields, .ep-fields.ep-three { grid-template-columns: minmax(0, 1fr); } }

.ep-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.ep-dl > div { padding: 10px 0; border-bottom: 1px solid var(--ep-line2); min-width: 0; }
.ep-dl dt { font-size: 12px; font-weight: 600; color: var(--ep-muted); margin: 0 0 2px; }
.ep-dl dd { margin: 0; color: var(--ep-ink); font-weight: 600; font-size: 13.5px; word-break: break-word; }
.ep-dl.ep-one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .ep-dl { grid-template-columns: minmax(0, 1fr); } }

body.ep .nav-tabs, .ep-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--ep-line); margin-bottom: 18px; padding: 0; list-style: none; }
body.ep .nav-tabs .nav-link, .ep-tabs a {
    display: inline-flex; align-items: center; gap: 7px;
    border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important;
    background: transparent !important; margin-bottom: -1px;
    padding: 10px 14px; color: var(--ep-muted) !important; font-weight: 600; font-size: 13.5px; text-decoration: none !important;
}
body.ep .nav-tabs .nav-link:hover, .ep-tabs a:hover { color: var(--ep-ink) !important; }
body.ep .nav-tabs .nav-link.active, .ep-tabs a.ep-aktif, .ep-tabs a.active { color: var(--ep-brand-d) !important; border-bottom-color: var(--ep-brand) !important; }

.ep-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.ep .table { width: 100%; margin-bottom: 0; color: var(--ep-body); background: #fff; border-collapse: separate; border-spacing: 0; }
body.ep .table thead th, body.ep .table > tr:first-child > th, body.ep .table th {
    background: var(--ep-head) !important; color: var(--ep-muted) !important;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    border: 0 !important; border-bottom: 1px solid var(--ep-line) !important;
    padding: 11px 14px; vertical-align: middle; white-space: nowrap;
}
body.ep .table td { padding: 11px 14px; border: 0 !important; border-bottom: 1px solid var(--ep-line2) !important; vertical-align: middle; font-size: 13px; background: transparent; }
body.ep .table tbody tr:last-child td { border-bottom: 0 !important; }
body.ep .table-hover tbody tr:hover, body.ep .table tbody tr.js-row:hover, body.ep tr.tr-data:hover { background: var(--ep-brand-l) !important; }
body.ep .table-striped tbody tr:nth-of-type(odd) { background: #fbfcfa; }
body.ep .table-bordered { border: 0; }
body.ep .table-sm td, body.ep .table-sm th { padding: 7px 10px; }
.ep-card .table { border-radius: 0 0 var(--ep-r) var(--ep-r); }
.ep-table-card { border: 1px solid var(--ep-line); border-radius: var(--ep-r); overflow: hidden; background: #fff; }
.ep-num { text-align: right; font-variant-numeric: tabular-nums; }
.ep-row-actions { display: inline-flex; gap: 4px; }
.ep-icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--ep-line); background: #fff; color: var(--ep-body) !important; text-decoration: none !important; }
.ep-icon-btn:hover { background: var(--ep-brand-l); border-color: #cfe3c6; color: var(--ep-brand-d) !important; }
.ep-icon-btn.ep-bad:hover { background: var(--ep-bad-l); border-color: #f1c4be; color: var(--ep-bad) !important; }
body.ep tr.tr-data { cursor: pointer; }
body.ep .underline { border-bottom: 2px dotted var(--ep-accent); }
body.ep .blink { animation: ep-blink 1.5s linear infinite; }
@keyframes ep-blink { 50% { opacity: 0; } }

body.ep table.table_normal { border-collapse: collapse; }
body.ep table.table_normal td { padding: 6px 8px; vertical-align: middle; color: var(--ep-body); }

body.ep .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    border-radius: var(--ep-r-sm); font-size: 13.5px; font-weight: 600; padding: 8px 15px; line-height: 1.4;
    border: 1px solid transparent; box-shadow: none; text-transform: none; letter-spacing: 0;
    transition: background .15s, border-color .15s, transform .08s;
}
body.ep .btn:active { transform: scale(.97); }
body.ep .btn:focus { box-shadow: none; outline: 2px solid var(--ep-brand-t); outline-offset: 2px; }
body.ep .btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 9px; }
body.ep .btn-lg { padding: 11px 20px; font-size: 14.5px; }
body.ep .btn-primary, body.ep .btn-success, body.ep .ep-btn-primary { background: var(--ep-brand); border-color: var(--ep-brand); color: #fff !important; box-shadow: 0 4px 12px rgba(47, 163, 8, .25); }
body.ep .btn-primary:hover, body.ep .btn-success:hover { background: var(--ep-brand-d); border-color: var(--ep-brand-d); }
body.ep .btn-secondary, body.ep .btn-light, body.ep .btn-default, body.ep .btn-outline-secondary, body.ep .btn-outline-primary, body.ep .btn-outline-success { background: #fff; border-color: var(--ep-line); color: var(--ep-body) !important; }
body.ep .btn-secondary:hover, body.ep .btn-light:hover, body.ep .btn-default:hover, body.ep .btn-outline-secondary:hover, body.ep .btn-outline-primary:hover, body.ep .btn-outline-success:hover { background: var(--ep-brand-l); border-color: #cfe3c6; color: var(--ep-brand-d) !important; }
body.ep .btn-warning { background: var(--ep-accent); border-color: var(--ep-accent); color: #fff !important; }
body.ep .btn-warning:hover { background: var(--ep-accent-d); }
body.ep .btn-danger { background: var(--ep-bad); border-color: var(--ep-bad); color: #fff !important; }
body.ep .btn-danger:hover { background: #a3301f; }
body.ep .btn-outline-danger { background: #fff; border-color: #f1c4be; color: var(--ep-bad) !important; }
body.ep .btn-outline-danger:hover { background: var(--ep-bad-l); }
body.ep .btn-info { background: var(--ep-info); border-color: var(--ep-info); color: #fff !important; }
body.ep .btn-dark { background: var(--ep-ink); border-color: var(--ep-ink); color: #fff !important; }
body.ep .btn-link { color: var(--ep-brand-d); box-shadow: none; }

body.ep .form-control, body.ep .custom-select, body.ep select.form-control, body.ep .form-select {
    height: auto; min-height: 38px; padding: 8px 12px;
    border: 1px solid #d6ddd4; border-radius: var(--ep-r-sm);
    background-color: #fff; color: var(--ep-ink); font-size: 13.5px; box-shadow: none;
}
body.ep textarea.form-control { min-height: 80px; }
body.ep .form-control:focus, body.ep .custom-select:focus, body.ep .form-select:focus { border-color: var(--ep-brand); box-shadow: 0 0 0 3px rgba(47, 163, 8, .15); outline: 0; }
body.ep .form-control[readonly], body.ep .form-control:disabled { background: #f6f8f5; color: var(--ep-muted); }
body.ep .form-control-sm { min-height: 32px; padding: 5px 10px; font-size: 12.5px; }
body.ep input[type=checkbox], body.ep input[type=radio] { accent-color: var(--ep-brand); }
body.ep .input-group-text { background: var(--ep-head); border-color: #d6ddd4; color: var(--ep-muted); border-radius: var(--ep-r-sm); }
body.ep label { color: var(--ep-body); }
body.ep .col-form-label { font-size: 12.5px; font-weight: 600; }
@media (pointer: coarse) { body.ep .form-control, body.ep select, body.ep textarea { font-size: 16px; } body.ep .btn { min-height: 44px; } }

body.ep .card { border: 1px solid var(--ep-line); border-radius: var(--ep-r); box-shadow: var(--ep-shadow); overflow: hidden; background: #fff; }
body.ep .card-header { background: #fff; border-bottom: 1px solid var(--ep-line2); padding: 14px 20px; color: var(--ep-ink); font-weight: 700; font-size: 14px; }
body.ep .card-header.bg-success, body.ep .card-header.bg-primary, body.ep .card-header.bg-info { background: #fff !important; color: var(--ep-ink) !important; }
body.ep .card-body { padding: 18px 20px; }
body.ep .card-footer { background: #fbfcfa; border-top: 1px solid var(--ep-line2); }
body.ep .border-info, body.ep .border-success, body.ep .border-primary { border-color: var(--ep-line) !important; }
body.ep .alert { border: 0; border-left: 3px solid var(--ep-brand); border-radius: 0 12px 12px 0; background: var(--ep-brand-l); color: var(--ep-brand-d); font-size: 13px; }
body.ep .alert-danger { border-color: var(--ep-bad); background: var(--ep-bad-l); color: #8f2a20; }
body.ep .alert-warning { border-color: var(--ep-accent); background: var(--ep-accent-l); color: var(--ep-accent-d); }
body.ep .alert-info { border-color: var(--ep-info); background: var(--ep-info-l); color: #1d4ed8; }
body.ep .badge { border-radius: 8px; padding: 4px 8px; font-weight: 700; font-size: 11.5px; }
body.ep .badge-success, body.ep .bg-success.badge { background: var(--ep-brand-l) !important; color: var(--ep-brand-d) !important; }
body.ep .badge-warning { background: var(--ep-accent-l); color: var(--ep-accent-d); }
body.ep .badge-danger { background: var(--ep-bad-l); color: #b0342a; }
body.ep .badge-info, body.ep .badge-primary { background: var(--ep-info-l); color: #1d4ed8; }
body.ep .badge-secondary { background: var(--ep-line2); color: #56645b; }
body.ep .modal-content { border: 0; border-radius: var(--ep-r); box-shadow: var(--ep-shadow-lg); overflow: hidden; }
body.ep .modal-header { border-bottom: 1px solid var(--ep-line2); padding: 16px 20px; }
body.ep .modal-header, body.ep .modal-header.bg-success, body.ep .modal-header.bg-primary { background: #fff !important; color: var(--ep-ink) !important; }
body.ep .modal-title { font-weight: 700; font-size: 16px; color: var(--ep-ink); }
body.ep .modal-footer { border-top: 1px solid var(--ep-line2); background: #fbfcfa; }
body.ep .pagination { gap: 4px; flex-wrap: wrap; }
body.ep .page-link { border: 1px solid var(--ep-line); border-radius: 9px !important; color: var(--ep-body); font-weight: 600; font-size: 13px; padding: 6px 11px; margin: 0; }
body.ep .page-item.active .page-link { background: var(--ep-brand); border-color: var(--ep-brand); color: #fff; }
body.ep .page-link:hover { background: var(--ep-brand-l); color: var(--ep-brand-d); }
body.ep .text-success { color: var(--ep-brand-d) !important; }
body.ep .bg-success { background-color: var(--ep-brand) !important; }
body.ep .text-muted { color: var(--ep-muted) !important; }
body.ep hr { border-color: var(--ep-line2); }

body.ep .dataTables_wrapper .dataTables_filter input, body.ep .dataTables_wrapper .dataTables_length select { border: 1px solid #d6ddd4; border-radius: 9px; padding: 5px 10px; }
body.ep .dataTables_wrapper .dataTables_info { color: var(--ep-muted); font-size: 12.5px; }

.ep-toasts { position: fixed; right: 18px; top: 80px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 36px)); }
.ep-toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 1px solid var(--ep-line); border-left: 4px solid var(--ep-brand); border-radius: 14px; box-shadow: var(--ep-shadow-lg); animation: ep-in .2s ease; }
.ep-toast.ep-bad { border-left-color: var(--ep-bad); }
.ep-toast i { margin-top: 2px; color: var(--ep-brand); }
.ep-toast.ep-bad i { color: var(--ep-bad); }
.ep-toast b { display: block; color: var(--ep-ink); font-size: 13.5px; }
.ep-toast div { white-space: pre-line; font-size: 13px; color: var(--ep-body); }
.ep-toast button { margin-left: auto; border: 0; background: none; color: var(--ep-faint); font-size: 16px; line-height: 1; }
@keyframes ep-in { from { opacity: 0; transform: translateY(-6px); } }

body.ep .swal-modal { border-radius: var(--ep-r); font-family: var(--ep-font); }
body.ep .swal-title { color: var(--ep-ink); font-size: 18px; }
body.ep .swal-button { border-radius: var(--ep-r-sm); background: var(--ep-brand); font-weight: 600; }
body.ep .swal-button--cancel { background: #fff; color: var(--ep-body); border: 1px solid var(--ep-line); }
body.ep .swal-button--danger { background: var(--ep-bad); }

body.ep .loader { border: 6px solid var(--ep-line2); border-top-color: var(--ep-brand); border-radius: 50%; width: 48px; height: 48px; animation: ep-spin 1s linear infinite; margin: 20px auto; }
@keyframes ep-spin { to { transform: rotate(360deg); } }

body.ep-public { min-height: 100vh; margin: 0; font-family: var(--ep-font); color: var(--ep-body); text-align: left;
    background: radial-gradient(1200px 600px at 10% -10%, #dff1d5 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #fbeed6 0%, transparent 55%), var(--ep-canvas); }
.ep-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.ep-auth-card { width: 100%; max-width: 940px; display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; border-radius: 24px; box-shadow: var(--ep-shadow-lg); overflow: hidden; }
.ep-auth-form { padding: 40px 36px; }
.ep-auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.ep-auth-logo img { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--ep-line); padding: 4px; background: #fff; }
.ep-auth-logo b { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--ep-brand-d); }
.ep-auth-logo span { display: block; font-size: 18px; font-weight: 800; color: var(--ep-ink); letter-spacing: -.02em; }
.ep-auth-hero { display: none; position: relative; background: url('../images/tema/login-hero.jpg') center / cover; min-height: 520px; }
.ep-auth-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 63, 8, .25), rgba(15, 47, 5, .85)); }
.ep-auth-hero div { position: absolute; left: 32px; right: 32px; bottom: 32px; z-index: 1; color: #fff; }
.ep-auth-hero b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.ep-auth-hero span { display: block; margin-top: 6px; color: #d6ecce; font-size: 13.5px; }
@media (min-width: 900px) { .ep-auth-card { grid-template-columns: 1fr 1fr; } .ep-auth-hero { display: block; } }
body.ep-public h1 { font-size: 24px; font-weight: 700; color: var(--ep-ink); letter-spacing: -.015em; margin: 0 0 4px; }
body.ep-public .ep-sub-text { color: var(--ep-muted); margin: 0 0 22px; font-size: 13.5px; }

/* Old html.css gives every <p> an arrow image and indent. */
body.ep p, body.ep-public p { background: none; padding-left: 0; color: inherit; line-height: 1.5; font-size: inherit; }
body.ep .table th a { color: inherit !important; text-decoration: none; }
body.ep .table th a:hover { color: var(--ep-brand-d) !important; }
