.ml-admin body,
body {
    background: #f3f6f9;
    color: #181c32;
}

.brand .brand-logo h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.aside-menu .menu-nav > .menu-item > .menu-link,
.aside-menu .menu-nav > .menu-item-submenu > .menu-link {
    min-height: 44px;
}

.ml-page-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 58%, #ecfeff 100%);
    border-bottom: 1px solid #e5e7eb;
}

.ml-page-title {
    color: #111827;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.ml-breadcrumb {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.ml-stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    min-height: 132px;
}

.ml-stat-card .ml-icon {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: 18px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.ml-stat-card .ml-icon i,
.ml-report-card-top i {
    line-height: 1;
}

.ml-stat-card .ml-icon i.ki:empty::before,
.ml-report-card-top i.ki:empty::before {
    content: "\f111";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.ml-stat-card .ml-value {
    color: #0f172a;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
}

.ml-stat-card .ml-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.ml-panel {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.ml-panel .card-header {
    border-bottom: 1px solid #eef2f7;
}

.ml-activity-panel {
    overflow: hidden;
}

.ml-activity-panel .card-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 18px 22px;
}

.ml-activity-count {
    background: #ecfeff;
    border: 1px solid #ccfbf1;
    border-radius: 999px;
    color: #115e59;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 11px;
}

.ml-activity-panel .table {
    margin-bottom: 0;
}

.ml-activity-panel .table a {
    color: #0f766e;
    font-weight: 800;
}

.ml-activity-pagination {
    align-items: center;
    border-top: 1px solid #eef2f7;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 16px 0 0;
}

.ml-activity-pagination a,
.ml-activity-pagination span {
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    color: #475569;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    min-width: 34px;
    padding: 0 10px;
}

.ml-activity-pagination a.active {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

.ml-finance-filter {
    max-width: 100%;
    overflow: visible;
}

.ml-finance-filter .row {
    row-gap: 4px;
}

.ml-finance-filter label {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.ml-finance-filter .form-control,
.ml-finance-filter .btn {
    min-height: 42px;
}

.ml-report-toolbar {
    align-items: flex-end;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 22px;
}

.ml-report-toolbar h2,
.ml-report-flow-panel h3,
.ml-report-side-panel h3 {
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
}

.ml-report-kicker {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.ml-report-filter {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    max-width: 760px;
    width: 100%;
}

.ml-report-filter-compact {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    max-width: 620px;
}

.ml-print-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ml-report-card,
.ml-report-side-panel,
.ml-report-flow-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.ml-report-card {
    min-height: 154px;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.ml-report-card::after {
    content: "";
    height: 76px;
    opacity: 0.12;
    position: absolute;
    right: -28px;
    top: -24px;
    transform: rotate(18deg);
    width: 120px;
}

.ml-report-card-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ml-report-card-top span {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.ml-report-card-top i {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: 18px;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.ml-report-card strong {
    color: #0f172a;
    display: block;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.15;
    word-break: break-word;
}

.ml-report-card small {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.ml-report-card-teal::after,
.ml-report-card-teal .ml-report-card-top i {
    background: #ccfbf1;
    color: #0f766e;
}

.ml-report-card-green::after,
.ml-report-card-green .ml-report-card-top i {
    background: #dcfce7;
    color: #166534;
}

.ml-report-card-red::after,
.ml-report-card-red .ml-report-card-top i {
    background: #fee2e2;
    color: #991b1b;
}

.ml-report-card-blue::after,
.ml-report-card-blue .ml-report-card-top i {
    background: #dbeafe;
    color: #1d4ed8;
}

.ml-report-card-amber::after,
.ml-report-card-amber .ml-report-card-top i {
    background: #fef3c7;
    color: #92400e;
}

.ml-report-side-panel,
.ml-report-flow-panel {
    height: 100%;
    padding: 24px;
}

.ml-report-pending-row {
    align-items: center;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
}

.ml-report-pending-row:last-child {
    border-bottom: 0;
}

.ml-report-pending-row span {
    color: #475569;
    font-weight: 700;
}

.ml-report-pending-row strong {
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
}

.ml-flow-row {
    border-top: 1px solid #eef2f7;
    padding: 14px 0;
}

.ml-flow-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.ml-flow-main,
.ml-flow-meta {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.ml-flow-main span {
    color: #334155;
    font-weight: 800;
}

.ml-flow-main strong {
    color: #0f172a;
    font-weight: 900;
}

.ml-flow-track {
    background: #eef2f7;
    border-radius: 999px;
    height: 8px;
    margin: 10px 0 8px;
    overflow: hidden;
}

.ml-flow-track span {
    border-radius: inherit;
    display: block;
    height: 100%;
}

.ml-flow-credit {
    background: #0f766e;
}

.ml-flow-debit {
    background: #ef4444;
}

.ml-flow-meta {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.ml-report-table tbody td {
    color: #334155;
    font-weight: 600;
    vertical-align: middle;
}

.ml-country-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #0f172a;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    min-width: 44px;
    padding: 5px 10px;
}

@media (max-width: 1199px) {
    .ml-report-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .ml-report-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .ml-report-filter {
        grid-template-columns: 1fr;
    }
}

.ml-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
}

.ml-status-success {
    background: #dcfce7;
    color: #166534;
}

.ml-status-warning {
    background: #fef3c7;
    color: #92400e;
}

.ml-status-danger {
    background: #fee2e2;
    color: #991b1b;
}

.ml-status-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.ml-status-readable {
    color: #0f172a !important;
    min-width: max-content;
}

.js-quick-detail {
    border-bottom: 1px dashed currentColor;
    cursor: pointer;
}

.table thead th {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.btn {
    border-radius: 6px;
    font-weight: 700;
}

.btn-primary,
.btn.btn-primary {
    background: #0f766e;
    border-color: #0f766e;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.btn-primary:hover,
.btn.btn-primary:hover {
    background: #115e59;
    border-color: #115e59;
}

.form-control {
    border-color: #d9e2ef;
    border-radius: 8px;
}

.form-control:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.dataTables_wrapper .dataTables_processing {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.ml-login-modern {
    background: #f7fafc;
    color: #0f172a;
}

.ml-login-modern .position-relative {
    background: #f7fafc;
}

.ml-login-modern .login-aside {
    background:
        radial-gradient(circle at 25% 20%, rgba(20, 184, 166, 0.38), transparent 34%),
        radial-gradient(circle at 80% 72%, rgba(245, 158, 11, 0.24), transparent 34%),
        linear-gradient(145deg, #111827 0%, #0f172a 58%, #134e4a 100%);
}

.ml-login-modern .login-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    color: #0f172a;
    max-width: 460px;
    padding: 42px;
}

.ml-login-modern .login-aside img {
    max-width: 190px;
    object-fit: contain;
}

.ml-login-modern .form-control {
    background: #f8fafc !important;
    border-color: #d9e2ef !important;
    color: #0f172a !important;
    font-weight: 600;
}

.ml-login-modern .form-control::placeholder {
    color: #64748b !important;
    opacity: 1;
}

.ml-login-modern .login-form h3 {
    color: #0f172a !important;
    font-weight: 800;
}

.ml-login-modern .login-form p,
.ml-login-modern .login-form .text-muted,
.ml-login-modern .login-form .text-dark-50,
.ml-login-modern .login-form label {
    color: #475569 !important;
}

.ml-login-modern .login-form a {
    color: #0f766e !important;
}

.ml-login-modern .d-lg-none,
.ml-login-modern .d-lg-none .text-dark-50 {
    color: #475569 !important;
}

.ml-login-modern .btn-primary {
    min-width: 132px;
}

.ml-account-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.ml-account-card .card-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #eef2f7;
}

.ml-profile-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(220px, 280px) 1fr;
}

.ml-profile-summary {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
}

.ml-profile-summary strong {
    color: #0f172a;
    display: block;
    font-size: 18px;
    line-height: 1.3;
    margin-top: 14px;
}

.ml-profile-summary span {
    color: #64748b;
    display: block;
    font-size: 13px;
    margin-top: 4px;
}

.ml-form-panel {
    max-width: 760px;
}

.ml-form-panel label {
    color: #334155;
    font-weight: 700;
}

.ml-form-actions {
    border-top: 1px solid #eef2f7;
    margin-top: 8px;
    padding-top: 22px;
}

.ml-profile-page .content .container-fluid {
    max-width: 1180px;
}

.ml-profile-page .card-header-tabs-line {
    min-height: 72px;
}

.ml-profile-page .nav-tabs .nav-link {
    border-radius: 8px 8px 0 0;
    padding: 18px 22px;
}

.ml-profile-page .tab-pane > form > .card-body {
    padding: 28px 8px 8px;
}

.ml-profile-page .tab-pane > form > .card-body > .row > .col-xl-2 {
    display: none;
}

.ml-profile-page .tab-pane > form > .card-body > .row > .col-xl-7,
.ml-profile-page .tab-pane > form > .card-footer .col-xl-7 {
    flex: 0 0 100%;
    max-width: 760px;
}

.ml-profile-page .tab-pane > form > .card-footer .col-xl-2 {
    display: none;
}

.ml-profile-page .tab-pane > form > .card-footer {
    background: #ffffff;
    border-top: 1px solid #eef2f7;
    padding: 22px 8px 6px;
}

.ml-profile-page .form-group.row {
    align-items: center;
    margin-bottom: 22px;
}

.ml-profile-page .form-group.row .col-form-label {
    color: #334155;
    font-weight: 700;
}

.ml-profile-page .form-control-lg {
    min-height: 48px;
}

.ml-profile-page .image-input {
    border-radius: 8px;
}

.ml-cms-page .content .container-fluid {
    max-width: 1320px;
}

.ml-cms-nav {
    display: grid;
    gap: 8px;
}

.ml-cms-nav a {
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #334155;
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px 12px;
}

.ml-cms-nav a.active,
.ml-cms-nav a:hover {
    background: #ecfeff;
    border-color: #99f6e4;
    color: #0f766e;
}

.ml-cms-page .cke_chrome {
    border-color: #d9e2ef !important;
    border-radius: 8px;
    overflow: hidden;
}

@media print {
    .aside,
    .header,
    .subheader,
    .footer,
    .ml-report-filter,
    .ml-print-actions,
    .btn {
        display: none !important;
    }

    body,
    .page,
    .wrapper,
    .content,
    .container-fluid {
        background: #ffffff !important;
        color: #111827 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .ml-panel,
    .ml-report-toolbar,
    .ml-report-card,
    .ml-report-side-panel,
    .ml-report-flow-panel {
        box-shadow: none !important;
        break-inside: avoid;
    }
}

@media (max-width: 991.98px) {
    .ml-page-title {
        font-size: 18px;
    }

    .ml-stat-card {
        min-height: auto;
    }

    .ml-login-modern .login-form {
        max-width: 100%;
        padding: 28px;
    }

    .ml-profile-grid {
        grid-template-columns: 1fr;
    }

    .ml-profile-page .form-group.row .col-3,
    .ml-profile-page .form-group.row .col-9,
    .ml-profile-page .card-footer .col-3,
    .ml-profile-page .card-footer .col-9 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: left !important;
    }

    .ml-profile-page .form-group.row .col-form-label {
        margin-bottom: 8px;
    }
}
