:root {
    --orange: #ff7f00;
    --orange-dark: #e86f00;
    --orange-soft: #fff3e7;
    --ink: #1d2939;
    --muted: #788395;
    --line: #edf0f4;
    --surface: #ffffff;
    --canvas: #f7f8fa;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); bottom: 0; display: flex; flex-direction: column; left: 0; padding: 22px 16px; position: fixed; top: 0; width: 252px; z-index: 20; }
.brand { align-items: center; display: flex; gap: 11px; min-height: 48px; }
.brand strong, .brand small, .user-meta strong, .user-meta small { display: block; }
.brand strong { font-size: 15px; letter-spacing: -.3px; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 3px; max-width: 165px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-logo { border-radius: 12px; height: 40px; object-fit: cover; width: 40px; }
.brand-mark { align-items: center; background: var(--orange); border-radius: 17px; box-shadow: 0 8px 18px #ff7f0033; color: white; display: flex; font-size: 24px; height: 58px; justify-content: center; margin: 0 auto 20px; width: 58px; }
.brand-mark-small { border-radius: 13px; font-size: 19px; height: 40px; margin: 0; width: 40px; }
.nav-caption, .eyebrow { color: #a0a9b6; font-size: 10px; font-weight: 800; letter-spacing: 1.15px; }
.nav-caption { margin: 37px 9px 12px; }
.side-nav { display: grid; gap: 5px; }
.side-link { align-items: center; background: transparent; border: 0; border-radius: 10px; color: #727d8e; display: flex; font-size: 13px; font-weight: 600; gap: 12px; padding: 11px 12px; text-align: left; transition: background .18s, color .18s; }
.side-link i { font-size: 17px; width: 18px; }
.side-link:hover, .side-link.active { background: var(--orange-soft); color: var(--orange-dark); }
.side-link.active { font-weight: 700; }
.sidebar-bottom { margin-top: auto; }
.sidebar-help { align-items: center; background: #f8fafc; border-radius: 10px; color: #617083; display: flex; gap: 10px; margin: 0 0 12px; padding: 12px 10px; }
.sidebar-help > i { color: #2aa879; font-size: 18px; }
.sidebar-help b, .sidebar-help small { display: block; }
.sidebar-help b { font-size: 11px; }
.sidebar-help small { color: #9aa3b0; font-size: 10px; margin-top: 3px; }
.logout-link { color: #828c9b; }
.main-content { margin-left: 252px; min-height: 100vh; padding: 0 34px 20px; }
.topbar { align-items: center; background: var(--canvas); display: flex; justify-content: space-between; min-height: 97px; position: sticky; top: 0; z-index: 10; }
.page-heading { font-size: 22px; font-weight: 750; letter-spacing: -.6px; margin: 4px 0 0; }
.user-chip { align-items: center; display: flex; gap: 10px; }
.avatar { align-items: center; background: #ffead8; border-radius: 50%; color: #dd6c00; display: flex; font-size: 14px; font-weight: 800; height: 39px; justify-content: center; width: 39px; }
.user-meta strong { font-size: 12px; }
.user-meta small { color: var(--muted); font-size: 11px; margin-top: 3px; text-transform: capitalize; }
.content-area { margin: 0 auto; max-width: 1500px; }
.app-footer { color: #a0a8b4; font-size: 11px; margin-top: 30px; text-align: center; }
.app-footer span { margin: 0 6px; }
.mobile-menu { display: none; }
.dashboard-hero { align-items: center; background: linear-gradient(115deg, #f77700 0%, #ff8c19 54%, #ffad52 100%); border-radius: 18px; box-shadow: 0 14px 34px #ff7f002b; color: white; display: flex; justify-content: space-between; min-height: 190px; overflow: hidden; padding: 28px 34px; position: relative; }
.dashboard-hero-content, .hero-action { position: relative; z-index: 1; }
.hero-kicker { color: #fff1df; font-size: 10px; font-weight: 800; letter-spacing: 1.15px; }
.dashboard-hero h2 { font-size: 27px; font-weight: 760; letter-spacing: -.8px; margin: 9px 0 5px; }
.dashboard-hero p { color: #fff4e8; font-size: 13px; margin: 0; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-pills span { background: #ffffff24; border: 1px solid #ffffff3b; border-radius: 20px; color: #fff; font-size: 10px; padding: 6px 10px; }
.hero-action { background: white; border: 1px solid white; border-radius: 9px; color: #e86f00; font-size: 12px; font-weight: 750; padding: 11px 15px; white-space: nowrap; }
.hero-action:hover { background: #fff7ec; border-color: #fff7ec; color: #c85c00; }
.hero-orb { border: 1px solid #ffffff25; border-radius: 50%; pointer-events: none; position: absolute; }
.hero-orb-one { height: 245px; right: 18%; top: -125px; width: 245px; }
.hero-orb-two { background: #ffffff0d; height: 300px; right: 9%; top: 76px; width: 300px; }
.stat-card, .panel { background: var(--surface); border: 1px solid #f0f1f3; border-radius: 14px; box-shadow: 0 3px 14px #25324a08; }
.stat-card { height: 100%; min-height: 142px; width:100%; padding: 19px; }
.stat-grid > div { display: flex; }
.stat-top { align-items: center; color: var(--muted); display: flex; font-size: 12px; justify-content: space-between; }
.stat-icon { align-items: center; background: var(--orange-soft); border-radius: 10px; color: var(--orange-dark); display: flex; font-size: 17px; height: 36px; justify-content: center; width: 36px; }
.stat-value { font-size: 23px; font-weight: 750; letter-spacing: -.7px; margin-top: 13px; }
.stat-note { color: #9aa3b0; font-size: 11px; margin-top: 4px; }
.panel { padding: 20px; }
.panel-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 17px; }
.panel-heading h2 { font-size: 15px; font-weight: 750; margin: 0; }
.panel-heading p { color: var(--muted); font-size: 11px; margin: 5px 0 0; }
.section-title { font-size: 17px; font-weight: 750; letter-spacing: -.3px; }
.text-secondary { color: var(--muted) !important; }
.btn-orange { background: var(--orange); border-color: var(--orange); color: white; font-weight: 650; }
.btn-orange:hover, .btn-orange:focus { background: var(--orange-dark); border-color: var(--orange-dark); color: white; }
.btn-outline-orange { border-color: #ffc184; color: var(--orange-dark); }
.btn-outline-orange:hover { background: var(--orange); border-color: var(--orange); color: white; }
.table { --bs-table-bg: transparent; margin-bottom: 0; vertical-align: middle; }
.table thead th { background: #fafbfc; border-bottom: 1px solid var(--line); color: #929cab; font-size: 10px; font-weight: 750; letter-spacing: .55px; padding: 12px 14px; text-transform: uppercase; white-space: nowrap; }
.table tbody td { border-color: #f0f2f5; color: #526071; font-size: 12px; padding: 13px 14px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table-responsive { border-radius: 11px; }
.datatable { min-width: 760px; }
.dt-container { width: 100%; }
.dt-container > .row:first-child > .dt-layout-start,
.dt-container > .row:first-child > .dt-layout-end { flex: 0 0 100%; max-width: 100%; width: 100%; }
.dt-container > .row:last-child { align-items: center; }
.dt-container > .row:last-child > .dt-layout-start { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; }
.dt-container > .row:last-child > .dt-layout-end { display: flex; justify-content: flex-end; }
.dt-length label, .dt-search label { align-items: center; color: #788395; display: flex; font-size: 12px; gap: 8px; }
.dt-length select, .dt-search input { border: 1px solid #e5e9ef !important; border-radius: 8px !important; font-size: 13px !important; min-height: 39px; padding: 7px 10px !important; }
.dt-search { display: grid; gap: 6px; min-width: 760px; width: 100%; }
.dt-search label { display: block; width: 100%; }
.dt-search input { display: block; margin-left: 0 !important; min-width: 0; width: 100% !important; }
.dt-length { white-space: nowrap; }
.dt-info { white-space: nowrap; }
.dt-info { color: #8993a2 !important; font-size: 11px; }
.dt-paging .pagination { gap: 4px; }
.dt-paging .page-link { border: 0; border-radius: 7px !important; color: #687486; font-size: 12px; }
.dt-paging .active > .page-link { background: var(--orange); color: white; }
.dt-processing { background: #fff !important; border: 1px solid #ffe0bd !important; border-radius: 9px; box-shadow: 0 8px 25px #1822301a; color: #d66b00 !important; padding: 10px 15px !important; }
.dataTables_wrapper .row { --bs-gutter-y: .75rem; }
.table-filter { min-width: 140px; }
.expense-filters .form-select { width: 100%; }
.income-table-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
.income-table-controls { align-items: center; display: flex; gap: 10px; width: 100%; }
.income-table-controls .form-select { flex: 1; max-width: 50%; }
.transaction-description { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.income-uraian-link { color: #d96500; }
.income-uraian-link:hover { color: #a94e00; text-decoration: underline; }
.datatable[data-table="pemasukan_uraian"] tbody tr { cursor: pointer; }
.income-status-paid { color: #198754; font-size: 19px; }
.income-status-unpaid { color: #e58b00; font-size: 19px; }
.income-spinner { animation: income-spin .9s linear infinite; display: inline-block; }
.text-orange { color: #e86f00 !important; }
@keyframes income-spin { to { transform: rotate(360deg); } }
.modal-content { border: 0; border-radius: 16px; box-shadow: 0 24px 70px #18223024; }
.modal-header, .modal-footer { border-color: #eff1f4; padding: 17px 20px; }
.modal-body { padding: 20px; }
.modal-title { letter-spacing: -.35px; }
.alert[data-notify="container"] { border: 0; border-radius: 11px; font-size: 13px; min-width: 280px; padding: 14px 42px 14px 16px; }
.alert[data-notify="container"] [data-notify="message"] { display: inline; }
.alert[data-notify="container"].alert-success { background: #e8f8ef; color: #146c43; }
.alert[data-notify="container"].alert-danger { background: #fff0ef; color: #b02a37; }
.alert[data-notify="container"] .btn-close { padding: 17px; }
.badge-soft { border-radius: 20px; display: inline-flex; font-size: 10px; font-weight: 700; padding: 6px 9px; }
.badge-in { background: #e8f8ef; color: #198754; }
.badge-out { background: #fff0ef; color: #dc3545; }
.badge-wait { background: #fff5dd; color: #a87500; }
.badge-approved { background: #e8f8ef; color: #198754; }
.badge-rejected { background: #fff0ef; color: #dc3545; }
.form-control, .form-select, .input-group-text { border-color: #e5e9ef; font-size: 13px; min-height: 41px; }
.form-control:focus, .form-select:focus { border-color: #ffb264; box-shadow: 0 0 0 .2rem #ff7f001b; }
.form-label { color: #465365; font-size: 12px; font-weight: 650; }
.empty-state { color: #9aa3b0; padding: 32px 12px !important; text-align: center; }
.empty-state i { color: #c6ccd5; display: block; font-size: 24px; margin-bottom: 7px; }
.login-page { align-items: center; background: radial-gradient(circle at 18% 20%, #fff0df, transparent 32%), var(--canvas); display: flex; justify-content: center; min-height: 100vh; padding: 24px; }
.login-card { background: white; border: 1px solid #f1f1f1; border-radius: 20px; box-shadow: 0 20px 70px #312c2412; max-width: 420px; padding: 38px; width: 100%; }
.login-card .brand-mark { margin-left: 0; }
.login-card h1 { letter-spacing: -.8px; }
.login-foot { border-top: 1px solid var(--line); color: #a1a9b4; font-size: 11px; margin-top: 26px; padding-top: 17px; text-align: center; }

@media (max-width: 991.98px) {
    .sidebar { box-shadow: 15px 0 35px #1118271c; transform: translateX(-105%); transition: transform .2s ease; }
    .sidebar-open .sidebar { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 0 20px 20px; }
    .mobile-menu { display: inline-flex; margin-right: 11px; }
    .topbar { justify-content: flex-start; }
    .user-chip { margin-left: auto; }
}
@media (max-width: 575.98px) {
    .main-content { padding: 0 14px 18px; }
    .topbar { min-height: 79px; }
    .page-heading { font-size: 18px; }
    .user-meta { display: none; }
    .panel { padding: 14px; }
    .login-card { padding: 27px 22px; }
    .dashboard-hero { align-items: flex-start; flex-direction: column; gap: 18px; padding: 23px 20px; }
    .dashboard-hero h2 { font-size: 23px; }
    .hero-action { align-self: flex-start; }
    .dt-container > .row:last-child > .dt-layout-start { align-items: flex-start; flex-direction: column; gap: 8px; }
    .dt-container > .row:last-child > .dt-layout-end { justify-content: flex-start; }
    .income-table-controls { align-items: stretch; flex-direction: column; }
    .income-table-controls .form-select { max-width: none; width: 100%; }
}
