:root {
    --nav-dark: #343a40;
    --sidebar-dark: #212529;
    --primary: #0879df;
    --page: #fff;
    --line: #dee2e6;
    --muted: #6c757d;
}

* { box-sizing: border-box; }
body { color: #212529; font-family: Arial, "Segoe UI", sans-serif; font-size: 14px; }
.app-page { background: var(--page); min-height: 100vh; }
.app-navbar { position: fixed; z-index: 1030; inset: 0 0 auto; display: flex; align-items: center; height: 43px; padding: 0 12px; background: var(--nav-dark); color: #fff; }
.app-navbar .navbar-brand { display: flex; width: 220px; flex: 0 0 220px; align-items: center; gap: 9px; color: #f8f9fa; font-size: 13px; font-weight: 400; text-decoration: none; }
.navbar-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #fff; }
.sidebar-toggle { border: 0; padding: 4px 8px; color: #adb5bd; background: transparent; }
.sidebar-toggle:hover { color: #fff; }
.navbar-account { display: flex; align-items: center; gap: 9px; margin-left: auto; color: #adb5bd; font-size: 12px; }
.navbar-user { color: #f1f3f5; }
.navbar-role { padding: 2px 6px; border-radius: 3px; background: #495057; color: #dee2e6; }
.navbar-logout { margin-left: 4px; color: #adb5bd; text-decoration: none; }
.navbar-logout:hover { color: white; }
.app-sidebar { position: fixed; z-index: 1020; inset: 43px auto 0 0; display: flex; width: 173px; flex-direction: column; padding: 21px 0 0; overflow-y: auto; background: var(--sidebar-dark); color: #adb5bd; transition: transform .2s ease; }
.sidebar-label { padding: 0 13px 10px; color: #6c757d; font-size: 9px; font-weight: 700; letter-spacing: .45px; }
.app-sidebar .nav { gap: 3px !important; }
.app-sidebar .nav-link { display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-left: 3px solid transparent; border-radius: 0; color: #adb5bd; font-size: 12px; text-decoration: none; }
.app-sidebar .nav-link i { width: 12px; color: #868e96; text-align: center; font-size: 11px; }
.app-sidebar .nav-link:hover { color: #fff; background: #292e33; }
.app-sidebar .nav-link.active { border-left-color: #0d6efd; background: #292e33; color: #fff; }
.app-sidebar .nav-link.active i { color: #dee2e6; }
.sidebar-user { display: flex; flex-direction: column; gap: 3px; margin-top: auto; padding: 10px 9px; border-top: 1px solid #343a40; color: #868e96; font-size: 10px; }
.sidebar-user strong { color: #adb5bd; font-weight: 400; font-size: 12px; }
.app-main { min-height: 100vh; margin-left: 173px; padding-top: 43px; transition: margin-left .2s ease; }
.main-content { padding: 19px 18px 30px; }
.content-title { margin: 0 0 5px; font-size: 30px; font-weight: 500; line-height: 1.2; letter-spacing: -.5px; }
.breadcrumb-bar { display: flex; align-items: center; min-height: 37px; margin-bottom: 18px; padding: 7px 12px; border-radius: 4px; background: #e9ecef; color: #6c757d; font-size: 12px; }
.page-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 18px; }
.page-heading .eyebrow { display: none; }
.page-heading h1 { display: none; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.card { border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.card-body.border-bottom { border-bottom-color: var(--line) !important; }
.summary-card { display: flex; min-height: 85px; flex-direction: column; border-radius: 4px; color: white; text-decoration: none; }
.summary-card:hover { color: white; filter: brightness(.96); }
.summary-card-main { display: flex; min-height: 49px; flex: 1; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 15px; font-size: 12px; }
.summary-card-main strong { font-size: 20px; font-weight: 500; }
.summary-card-footer { display: flex; min-height: 34px; align-items: center; justify-content: space-between; padding: 7px 15px; border-top: 1px solid rgba(0,0,0,.1); font-size: 11px; }
.summary-primary { background: #0879df; }
.summary-warning { background: #f5b900; }
.summary-success { background: #28a745; }
.summary-danger { background: #dc3545; }
.panel-heading { display: flex; min-height: 38px; align-items: center; padding: 8px 13px; border-bottom: 1px solid var(--line); border-radius: 4px 4px 0 0; background: #f7f7f7; font-size: 13px; font-weight: 500; }
.panel-heading > i { color: #343a40; }
.panel-heading a { margin-left: auto; color: #6c757d; font-size: 11px; font-weight: 400; text-decoration: none; }
.panel-heading a:hover { color: #212529; }
.chart-panel .card-body { padding: 15px; }
.activity-chart { display: flex; height: 150px; align-items: stretch; gap: 8px; padding: 9px 7px 0; border-bottom: 1px solid #adb5bd; background: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, #edf0f2 36px); }
.activity-chart-column { position: relative; display: flex; flex: 1; align-items: flex-end; justify-content: center; }
.activity-chart-bar { width: min(60%, 27px); min-height: 4px; border-radius: 2px 2px 0 0; background: #0879df; transition: height .2s ease; }
.activity-chart-column:hover .activity-chart-bar { background: #005fc1; }
.activity-chart-label { position: absolute; top: calc(100% + 4px); color: #6c757d; font-size: 10px; }
.chart-caption { margin-top: 19px; color: #6c757d; font-size: 11px; text-align: center; }
.chart-empty { display: flex; min-height: 187px; align-items: center; justify-content: center; color: #6c757d; font-size: 12px; }
.balance-chart { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.balance-row-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: 11px; }
.balance-row-label span:last-child { color: #6c757d; white-space: nowrap; }
.progress { height: 8px; border-radius: 2px; background: #e9ecef; }
.progress-bar { border-radius: 2px; background: #0879df; }
.table-responsive { padding: 0; }
.table { --bs-table-striped-bg: rgba(0, 0, 0, .025); font-size: 12px; }
.table > :not(caption) > * > * { padding: 8px 9px; vertical-align: middle; }
.table thead th { color: #343a40; background: #f8f9fa; font-size: 11px; font-weight: 700; white-space: nowrap; }
.table-bordered > :not(caption) > * { border-color: #dee2e6; }
.table .badge { font-size: 10px; font-weight: 500; }
.form-control, .form-select { border-color: #ced4da; border-radius: 4px; padding: .5rem .65rem; font-size: 13px; }
.btn { border-radius: 4px; font-size: 13px; }
.btn-primary { background: #0879df; border-color: #0879df; }
.btn-primary:hover { background: #0668c2; border-color: #0668c2; }
.login-page { background: #f1f3f5; }
.login-page .card { border-radius: 5px; }
.login-logo-wrap { display: flex; justify-content: center; }
.login-logo { display: block; width: 136px; height: 136px; border: 1px solid #e9ecef; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 5px 14px rgba(33, 37, 41, .2); }
.login-page .eyebrow { color: #6c757d; font-size: 11px; font-weight: 700; letter-spacing: .8px; }
.sidebar-collapsed .app-sidebar { transform: translateX(-100%); }
.sidebar-collapsed .app-main { margin-left: 0; }
@media (max-width: 767.98px) {
    .app-navbar .navbar-brand { width: auto; flex-basis: auto; margin-right: 12px; font-size: 12px; }
    .navbar-logo { width: 28px; height: 28px; }
    .navbar-user { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .navbar-role { display: none; }
    .app-sidebar { box-shadow: 2px 0 8px rgba(0,0,0,.12); }
    .app-main { margin-left: 0; }
    .sidebar-collapsed .app-sidebar { transform: translateX(-100%); }
    .main-content { padding: 16px 12px 24px; }
    .content-title { font-size: 25px; }
    .activity-chart { height: 120px; }
}
