:root {
    --bobox-green: #57d10b;
    --bobox-green-strong: #43a800;
    --bobox-green-deep: #17310d;
    --bobox-green-soft: #eef9e8;
    --bobox-green-faint: #f7fcf4;
    --bobox-black: #0a0d08;
    --bobox-white: #ffffff;
    --bobox-border: rgba(23, 49, 13, 0.12);
    --bobox-shadow: 0 20px 45px rgba(16, 32, 9, 0.08);
    --bobox-sidebar-width: 288px;
    --bobox-header-height: 78px;
    --bs-primary: var(--bobox-green);
    --bs-primary-rgb: 87, 209, 11;
    --bs-link-color: var(--bobox-green-strong);
    --bs-link-hover-color: #2e7f00;
}

html,
body {
    background:
        radial-gradient(circle at top right, rgba(87, 209, 11, 0.12), transparent 32%),
        linear-gradient(180deg, #fbfef9 0%, #f4f8f2 100%);
    color: var(--bobox-black);
    font-family: "Inter", sans-serif;
}

body {
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand-box,
.bobox-shell-title,
.page-title-box h4,
.card-title,
.bobox-kpi-value {
    font-family: "Manrope", sans-serif;
}

#layout-wrapper {
    min-height: 100vh;
}

#page-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    height: var(--bobox-header-height);
    border-bottom: 1px solid rgba(23, 49, 13, 0.08);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px rgba(10, 13, 8, 0.04);
}

#page-topbar .layout-width,
#page-topbar .navbar-header {
    height: 100%;
}

#page-topbar .layout-width {
    padding: 0 1.5rem;
}

.navbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bobox-topbar-left,
.bobox-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bobox-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(23, 49, 13, 0.08);
    border-radius: 14px;
    background: var(--bobox-white);
    color: var(--bobox-black);
    box-shadow: 0 8px 18px rgba(10, 13, 8, 0.05);
}

.bobox-logo-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.bobox-logo-link img {
    max-height: 38px;
    width: auto;
}

.bobox-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.bobox-brand-copy strong {
    color: var(--bobox-black);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.bobox-brand-copy span {
    color: rgba(10, 13, 8, 0.56);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bobox-header-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: var(--bobox-green-soft);
    color: var(--bobox-green-deep);
    font-size: 0.82rem;
    font-weight: 700;
}

.bobox-header-chip i {
    color: var(--bobox-green-strong);
}

.bobox-userbox {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    padding: 0.45rem 0.5rem 0.45rem 0.45rem;
    border-radius: 18px;
    background: var(--bobox-white);
    border: 1px solid rgba(23, 49, 13, 0.08);
    box-shadow: 0 8px 18px rgba(10, 13, 8, 0.05);
}

.bobox-userbox img,
.bobox-avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bobox-green) 0%, var(--bobox-green-deep) 100%);
}

.bobox-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bobox-white);
    font-weight: 800;
}

.bobox-user-meta {
    min-width: 0;
}

.bobox-user-meta strong,
.bobox-user-meta span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bobox-user-meta strong {
    color: var(--bobox-black);
    font-size: 0.92rem;
}

.bobox-user-meta span {
    color: rgba(10, 13, 8, 0.56);
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.app-menu.navbar-menu {
    position: fixed;
    top: var(--bobox-header-height);
    left: 0;
    bottom: 0;
    width: var(--bobox-sidebar-width);
    z-index: 1035;
    padding: 1.25rem 1rem 1rem;
    border-right: 1px solid rgba(23, 49, 13, 0.08);
    background:
        linear-gradient(180deg, rgba(23, 49, 13, 0.98) 0%, rgba(10, 13, 8, 0.98) 100%);
    box-shadow: 18px 0 50px rgba(10, 13, 8, 0.14);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: transform 0.28s ease;
}

.app-menu.navbar-menu::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.app-menu .navbar-brand-box,
.app-menu .dropdown.sidebar-user {
    display: none;
}

.app-menu .container-fluid {
    padding: 0;
}

.app-menu .menu-title {
    margin: 0 0 0.8rem;
    padding: 0 0.9rem;
}

.app-menu .menu-title span {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.app-menu .navbar-nav {
    gap: 0.35rem;
}

.app-menu .nav-item {
    width: 100%;
}

.app-menu .nav-link.menu-link,
.app-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.76) !important;
    font-size: 0.94rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.app-menu .nav-link:hover,
.app-menu .nav-link.menu-link:hover,
.app-menu .nav-link.active {
    color: var(--bobox-white) !important;
    background: linear-gradient(135deg, rgba(87, 209, 11, 0.22), rgba(87, 209, 11, 0.08));
    transform: translateX(3px);
}

.app-menu .nav-link i {
    width: 1.2rem;
    text-align: center;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
}

.app-menu .collapse.menu-dropdown {
    margin: 0.2rem 0 0.5rem 0;
    padding-left: 0.55rem;
}

.app-menu .collapse.menu-dropdown .nav-link {
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.62) !important;
}

.vertical-overlay {
    position: fixed;
    inset: 0;
    z-index: 1030;
    background: rgba(10, 13, 8, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.main-content {
    margin-left: var(--bobox-sidebar-width);
    min-height: 100vh;
    padding-top: var(--bobox-header-height);
}

.page-content {
    padding: 1.6rem 1.6rem 0;
}

.container-fluid {
    max-width: 100%;
}

.page-title-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0;
    background: transparent !important;
}

.page-title-box h4,
.page-title-box .mb-sm-0 {
    margin: 0;
    color: var(--bobox-black);
    font-size: 1.75rem;
    font-weight: 800;
}

.breadcrumb {
    margin: 0;
    padding: 0.5rem 0;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: rgba(10, 13, 8, 0.56);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--bobox-green-deep);
}

.card,
.bobox-panel,
.modal-content,
.swal2-popup {
    border: 1px solid var(--bobox-border);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--bobox-shadow);
}

.card {
    overflow: hidden;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(23, 49, 13, 0.08);
}

.bobox-hero {
    position: relative;
    overflow: hidden;
    padding: 1.9rem;
    margin-bottom: 1.5rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 38%),
        linear-gradient(135deg, var(--bobox-green-deep) 0%, #1f4612 62%, var(--bobox-green-strong) 100%);
    color: var(--bobox-white);
    box-shadow: 0 24px 50px rgba(23, 49, 13, 0.24);
}

.bobox-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.bobox-hero h1,
.bobox-hero h2,
.bobox-hero h3 {
    color: var(--bobox-white);
    margin-bottom: 0.55rem;
}

.bobox-hero p {
    max-width: 800px;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 0;
}

.bobox-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bobox-kpi-card {
    padding: 1.2rem 1.25rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(23, 49, 13, 0.09);
    box-shadow: 0 18px 30px rgba(10, 13, 8, 0.06);
}

.bobox-kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.bobox-kpi-label {
    color: rgba(10, 13, 8, 0.6);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bobox-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: var(--bobox-green-soft);
    color: var(--bobox-green-deep);
    font-size: 1.15rem;
}

.bobox-kpi-value {
    color: var(--bobox-black);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.bobox-kpi-meta {
    margin-top: 0.55rem;
    color: rgba(10, 13, 8, 0.58);
    font-size: 0.84rem;
    font-weight: 600;
}

.bobox-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bobox-section-title h3,
.bobox-section-title h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--bobox-black);
}

.bobox-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 1.25rem;
}

.bobox-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.bobox-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: var(--bobox-green-faint);
    border: 1px solid rgba(23, 49, 13, 0.08);
}

.bobox-list-item strong {
    display: block;
    color: var(--bobox-black);
}

.bobox-list-item span,
.bobox-muted {
    color: rgba(10, 13, 8, 0.56);
    font-size: 0.88rem;
}

.bobox-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.bobox-action-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 150px;
    padding: 1.2rem;
    border-radius: 24px;
    text-decoration: none;
    color: var(--bobox-black);
    background: var(--bobox-white);
    border: 1px solid rgba(23, 49, 13, 0.08);
    box-shadow: 0 16px 28px rgba(10, 13, 8, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bobox-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 32px rgba(23, 49, 13, 0.09);
    border-color: rgba(87, 209, 11, 0.35);
    color: var(--bobox-black);
}

.bobox-action-card.is-primary {
    color: var(--bobox-white);
    background: linear-gradient(135deg, var(--bobox-green-strong) 0%, var(--bobox-green-deep) 100%);
}

.bobox-action-card i {
    font-size: 1.4rem;
}

.bobox-action-card strong {
    font-size: 1rem;
    font-weight: 800;
}

.bobox-action-card span {
    font-size: 0.86rem;
    line-height: 1.45;
    color: rgba(10, 13, 8, 0.62);
}

.bobox-action-card.is-primary span {
    color: rgba(255, 255, 255, 0.84);
}

.btn {
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.btn-primary {
    border-color: var(--bobox-green);
    background: linear-gradient(135deg, var(--bobox-green) 0%, var(--bobox-green-strong) 100%);
    color: var(--bobox-black);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--bobox-green-strong);
    background: linear-gradient(135deg, var(--bobox-green-strong) 0%, #3d9700 100%);
    color: var(--bobox-white);
}

.btn-outline-primary {
    color: var(--bobox-green-deep);
    border-color: rgba(87, 209, 11, 0.45);
}

.btn-outline-primary:hover {
    background: var(--bobox-green-soft);
    border-color: rgba(87, 209, 11, 0.7);
    color: var(--bobox-green-deep);
}

.btn-light {
    background: var(--bobox-white);
    border-color: rgba(23, 49, 13, 0.08);
}

.form-control,
.form-select,
.choices__inner,
.select2-container--default .select2-selection--single {
    min-height: 50px;
    border-radius: 16px !important;
    border: 1px solid rgba(23, 49, 13, 0.12) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(87, 209, 11, 0.65) !important;
    box-shadow: 0 0 0 0.28rem rgba(87, 209, 11, 0.12) !important;
}

.form-label,
label {
    color: var(--bobox-black);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.form-group,
.mb-3 {
    margin-bottom: 1rem;
}

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.table thead th {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(23, 49, 13, 0.12);
    color: rgba(10, 13, 8, 0.64);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.table tbody td {
    padding: 1rem;
    border-color: rgba(23, 49, 13, 0.08);
    vertical-align: middle;
    color: var(--bobox-black);
}

.table tbody tr:hover {
    background: rgba(87, 209, 11, 0.05);
}

.list-group-item {
    border-color: rgba(23, 49, 13, 0.08);
}

.badge {
    border-radius: 999px;
    padding: 0.55em 0.85em;
    font-weight: 700;
}

.footer {
    padding: 1rem 1.6rem 1.75rem;
    color: rgba(10, 13, 8, 0.54);
    background: transparent;
}

.footer .container-fluid {
    padding: 0;
}

.customizer-setting,
#back-to-top,
#preloader {
    display: none !important;
}

.bobox-empty {
    padding: 1.4rem;
    border: 1px dashed rgba(23, 49, 13, 0.2);
    border-radius: 20px;
    color: rgba(10, 13, 8, 0.56);
    background: rgba(255, 255, 255, 0.66);
    text-align: center;
}

body.bobox-sidebar-open .app-menu.navbar-menu {
    transform: translateX(0);
}

body.bobox-sidebar-open .vertical-overlay {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1199.98px) {
    .bobox-kpi-grid,
    .bobox-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bobox-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .app-menu.navbar-menu {
        transform: translateX(calc(-1 * var(--bobox-sidebar-width)));
    }

    .main-content {
        margin-left: 0;
    }

    #page-topbar .layout-width {
        padding: 0 1rem;
    }

    .page-content {
        padding: 1rem 1rem 0;
    }

    .bobox-brand-copy span,
    .bobox-header-chip {
        display: none;
    }

    .bobox-user-meta span {
        display: block;
    }
}

@media (max-width: 767.98px) {
    :root {
        --bobox-header-height: 72px;
    }

    .bobox-topbar-right .bobox-header-chip,
    .bobox-user-meta {
        display: none;
    }

    .bobox-logo-link img {
        max-height: 34px;
    }

    .bobox-hero {
        padding: 1.35rem;
        border-radius: 22px;
    }

    .bobox-kpi-grid,
    .bobox-quick-grid {
        grid-template-columns: 1fr;
    }

    .table-responsive {
        border-radius: 20px;
    }

    .page-title-box h4,
    .page-title-box .mb-sm-0 {
        font-size: 1.4rem;
    }
}
