html,
body {
    background: #f3f7fc;
    color: #182433;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    padding: 0;
}

.page-wrapper {
    background: linear-gradient(180deg, #eef6ff 0, #f7f9fc 220px, #f7f9fc 100%);
}

.page-body {
    margin-top: 1rem;
}

.page-header {
    padding: 1.25rem 0 .75rem;
}

.page-header.d-print-none > .row {
    background: linear-gradient(135deg, #073763 0, #0b67bd 100%);
    border-radius: 8px;
    color: #fff;
    margin: 0;
    padding: 16px;
}

.page-header.d-print-none .page-title,
.page-header.d-print-none h1,
.page-header.d-print-none h2 {
    color: #fff;
    margin: 0;
}

.page-header.d-print-none .mb-6,
.page-header.d-print-none form {
    margin-bottom: 0 !important;
}

.page-header.d-print-none .input-group,
.page-header.d-print-none .app-filter-panel {
    background: #fff;
    border: 1px solid #dfeaf6;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(16, 24, 40, .12);
    color: #182433;
    gap: 8px;
    padding: 12px;
}

.page-header.d-print-none .input-group > .form-control,
.page-header.d-print-none .input-group > .form-select,
.page-header.d-print-none .input-group > .btn {
    border-radius: 6px !important;
    flex: 1 1 150px;
    margin-left: 0 !important;
}

.page-header.d-print-none .input-group > .btn,
.app-filter-panel .btn {
    flex: 0 0 auto;
    min-width: 96px;
    width: auto !important;
}

.app-page-hero {
    background: linear-gradient(135deg, #073763 0, #0b67bd 100%);
    border-radius: 8px;
    color: #fff;
    margin-bottom: 1rem;
    padding: 18px;
}

.app-page-hero .form-label {
    color: #25364d;
}

.app-page-hero h1,
.app-page-hero .page-title {
    color: #fff;
    margin: 0;
}

.app-filter-panel {
    background: #fff;
    border: 1px solid #dfeaf6;
    border-radius: 8px;
    color: #182433;
    padding: 12px;
}

@media (min-width: 1200px) {
    .page-header.d-print-none > .row,
    .app-page-hero > .row {
        align-items: center;
        flex-wrap: nowrap;
    }

    .page-header.d-print-none .col-auto,
    .page-header.d-print-none .col {
        min-width: 0;
    }

    .page-header.d-print-none .input-group,
    .app-filter-panel > .row,
    .app-filter-panel form > .row {
        flex-wrap: nowrap;
    }

    .page-header.d-print-none .input-group > .form-control,
    .page-header.d-print-none .input-group > .form-select,
    .app-filter-panel > .row > [class*="col-"],
    .app-filter-panel form > .row > [class*="col-"] {
        min-width: 150px;
    }

    .app-filter-panel .btn {
        min-width: 104px;
    }
}

.profit-search-panel form > .row {
    flex-wrap: wrap !important;
}

.profit-search-panel form > .row > [class*="col-"] {
    min-width: 0 !important;
}

.profit-search-panel .btn {
    min-width: 104px;
    width: auto !important;
}

.app-search-select {
    position: relative;
}

.app-search-select .form-select {
    display: none;
}

.app-search-select-menu {
    background: #fff;
    border: 1px solid #cfdced;
    border-radius: 6px;
    box-shadow: 0 16px 32px rgba(16, 24, 40, .16);
    display: none;
    left: 0;
    max-height: 220px;
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 1090;
}

.app-search-select.open .app-search-select-menu {
    display: block;
}

.app-search-select-option {
    color: #182433;
    cursor: pointer;
    font-size: 13px;
    padding: 8px 10px;
}

.app-search-select-option:hover,
.app-search-select-option.active {
    background: #eaf4ff;
    color: #0b67bd;
}

.page-title,
.card-title {
    color: #182433;
    font-weight: 750;
    letter-spacing: 0;
}

.navbar {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #d9e7f7;
    box-shadow: 0 8px 24px rgba(21, 92, 160, .06);
}

.navbar .nav-link {
    border-radius: 6px;
    color: #344054;
    font-weight: 600;
}

.navbar .nav-link:hover,
.navbar .nav-item.active .nav-link {
    background: #eaf4ff;
    color: #0b67bd;
}

.card {
    border: 1px solid #dfeaf6;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(21, 92, 160, .06);
}

.card-header {
    background: linear-gradient(180deg, #fff 0, #fbfdff 100%);
    border-bottom: 1px solid #edf4fb;
    min-height: 3.25rem;
}

.card-body-scrollable {
    scrollbar-color: #b7c3d4 #eef2f7;
    scrollbar-width: thin;
}

.card-body-scrollable::-webkit-scrollbar,
.app-scroll-y::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.card-body-scrollable::-webkit-scrollbar-thumb,
.app-scroll-y::-webkit-scrollbar-thumb {
    background: #b7c3d4;
    border-radius: 8px;
}

.card-body-scrollable::-webkit-scrollbar-track,
.app-scroll-y::-webkit-scrollbar-track {
    background: #eef2f7;
}

.table {
    color: #25364d;
}

.table th + th,
.table td + td {
    border-left: 1px solid #edf3fa;
}

.table thead th {
    background: #f0f7ff;
    border-bottom-color: #dceaf8;
    box-shadow: inset 0 -1px 0 #dceaf8;
    color: #456078;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0;
    padding-bottom: .55rem;
    padding-top: .55rem;
    position: sticky;
    top: 0;
    text-transform: uppercase;
    z-index: 3;
}

.table-responsive thead th,
.card-body-scrollable thead th,
.app-table-scroll-sm thead th,
.app-table-scroll-md thead th,
.app-table-scroll-lg thead th {
    top: 0;
}

.table td,
.table th {
    padding-bottom: .55rem;
    padding-top: .55rem;
    vertical-align: middle;
}

.table-responsive {
    max-height: 520px;
    overflow: auto;
}

.table-action-btn {
    align-items: center;
    display: inline-flex;
    height: 26px;
    justify-content: center;
    padding: 0;
    width: 30px;
}

.table-action-btn .icon {
    height: 16px;
    margin: 0;
    width: 16px;
}

.table .btn.table-action-btn {
    margin: 1px;
}

.form-label {
    color: #25364d;
    font-weight: 700;
}

.form-control,
.form-select,
input,
select,
textarea {
    color: #182433;
    background-color: #fff;
    border-color: #cfdced;
    border-radius: 6px;
    max-width: none;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #0b67bd;
    box-shadow: 0 0 0 .2rem rgba(32, 107, 196, .14);
}

.form-control[type="date"],
input[type="date"] {
    color: #182433 !important;
    color-scheme: light;
    -webkit-text-fill-color: #182433;
}

.form-control[type="date"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: .85;
}

.form-control::placeholder {
    color: #98a2b3;
}

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

.btn-primary {
    background: #0b67bd;
    border-color: #0b67bd;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #095aa6;
    border-color: #095aa6;
}

.modal-content {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(16, 24, 40, .22);
}

.modal-header {
    border-bottom-color: #edf1f6;
}

.app-table-scroll-sm {
    max-height: 320px;
    overflow-y: auto;
}

.app-table-scroll-md {
    max-height: 460px;
    overflow-y: auto;
}

.app-table-scroll-lg {
    max-height: 620px;
    overflow-y: auto;
}

.app-login-page {
    min-height: 100vh;
    background: #eef6ff;
}

.app-login-card {
    border: 0;
    max-width: 430px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(4, 32, 63, .18);
}

.app-login-brand {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(4, 32, 63, .18);
    display: inline-flex;
    padding: 12px 18px;
}

.app-login-shell {
    display: grid;
    grid-template-columns: minmax(380px, 1fr) minmax(360px, 520px);
    min-height: 100vh;
}

.app-login-panel {
    align-items: center;
    background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .18), transparent 28%),
        linear-gradient(135deg, #06325c 0, #0b67bd 58%, #5db3ff 100%);
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    padding: clamp(32px, 6vw, 78px);
}

.app-login-panel-content {
    max-width: 580px;
}

.app-login-panel h1 {
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 18px;
}

.app-login-panel p {
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.app-login-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.app-login-stats span {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    padding: 8px 12px;
}

.app-login-form-wrap {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 24px;
}

.app-login-card .card-body {
    padding: 34px;
}

.app-login-link {
    color: #0b67bd;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .app-login-shell {
        display: flex;
        min-height: 100vh;
    }

    .app-login-panel {
        display: none;
    }

    .app-login-form-wrap {
        flex: 1;
        padding: 18px;
    }

    .app-login-card .card-body {
        padding: 26px;
    }
}

@media (max-width: 767.98px) {
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .card-header {
        align-items: flex-start;
        gap: 8px;
    }

    .page-header.d-print-none > .row {
        padding: 14px;
    }

    .page-header.d-print-none .input-group,
    .page-header.d-print-none .app-filter-panel {
        padding: 10px;
    }

    .page-header.d-print-none .input-group > .form-control,
    .page-header.d-print-none .input-group > .form-select,
    .page-header.d-print-none .input-group > .btn {
        flex-basis: 100%;
    }

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

    .table {
        font-size: 13px;
    }

    .table thead th {
        font-size: 11px;
    }

    .modal-dialog {
        margin: .5rem;
    }
}
