*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    color: #0a58ca;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container,
.container-fluid {
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
}

.row {
    --bs-gutter-x: 24px;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(-0.5 * var(--bs-gutter-x));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-top: calc(-1 * var(--bs-gutter-y));
}

.row > * {
    margin-top: var(--bs-gutter-y);
    padding-left: calc(0.5 * var(--bs-gutter-x));
    padding-right: calc(0.5 * var(--bs-gutter-x));
    width: 100%;
}

.g-0,
.gx-0 { --bs-gutter-x: 0; }
.g-0,
.gy-0 { --bs-gutter-y: 0; }
.g-1,
.gx-1 { --bs-gutter-x: 4px; }
.g-1,
.gy-1 { --bs-gutter-y: 4px; }
.g-2,
.gx-2 { --bs-gutter-x: 8px; }
.g-2,
.gy-2 { --bs-gutter-y: 8px; }
.g-3,
.gx-3 { --bs-gutter-x: 16px; }
.g-3,
.gy-3 { --bs-gutter-y: 16px; }
.g-4,
.gx-4 { --bs-gutter-x: 24px; }
.g-4,
.gy-4 { --bs-gutter-y: 24px; }

.col,
.col-auto {
    flex: 1 0 0%;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

.align-self-center { align-self: center !important; }

@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-md-9 { flex: 0 0 auto; width: 75%; }
    .col-md-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-1 { flex: 0 0 auto; width: 8.333333%; }
    .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-lg-9 { flex: 0 0 auto; width: 75%; }
    .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-lg-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 1200px) {
    .col-xl-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-xl-8 { flex: 0 0 auto; width: 66.666667%; }
}

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 16px !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.ms-1 { margin-left: 4px !important; }
.ms-2 { margin-left: 8px !important; }
.me-2 { margin-right: 8px !important; }
.me-1 { margin-right: 4px !important; }
.me-auto { margin-right: auto !important; }
.ms-auto { margin-left: auto !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 16px !important; }
.p-4 { padding: 24px !important; }
.pt-1 { padding-top: 4px !important; }
.text-muted { color: #8d97ad !important; }
.text-danger { color: #dc3545 !important; }
.text-success { color: #198754 !important; }
.text-info { color: #0aa6bd !important; }
.text-warning { color: #d89614 !important; }
.text-primary { color: #0d6efd !important; }
.text-white { color: #fff !important; }
.text-end { text-align: right !important; }
.text-center { text-align: center !important; }
.small,
small { font-size: 0.875em; }
.position-relative { position: relative !important; }
.bg-white { background: #fff !important; }
.border { border: 1px solid #dfe8ef !important; }
.rounded { border-radius: 6px !important; }
.h-100 { height: 100% !important; }
.fs-5 { font-size: 1.25rem !important; }
.no-block { flex-wrap: nowrap !important; }

@media (min-width: 992px) {
    .align-items-lg-center { align-items: center !important; }
    .gap-lg-2 { gap: 8px !important; }
    .mb-lg-0 { margin-bottom: 0 !important; }
}

@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

.navbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8px 12px;
}

.navbar > .container-fluid {
    align-items: center;
    display: flex;
    flex-wrap: inherit;
    justify-content: space-between;
}

.navbar-brand {
    display: inline-block;
    font-size: 1.25rem;
    margin-right: 16px;
    white-space: nowrap;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.nav-link {
    display: block;
    padding: 8px 10px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
    background: transparent;
    border: 1px solid transparent;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    margin-bottom: -1px;
}

.nav-tabs .nav-link.active {
    background: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    color: #1f2d3d;
}

.nav-pills .nav-link {
    background: transparent;
    border: 0;
    border-radius: 4px;
}

.nav-pills .nav-link.active {
    background: #0d6efd;
    color: #fff;
}

.tab-content > .tab-pane {
    display: none;
}

.tab-content > .active {
    display: block;
}

.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.fade.show {
    opacity: 1;
}

.navbar-collapse {
    align-items: center;
    flex-basis: 100%;
    flex-grow: 1;
}

.navbar-toggler {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    padding: 4px 8px;
}

.navbar-toggler-icon {
    display: inline-block;
    height: 30px;
    width: 30px;
}

@media (min-width: 992px) {
    .navbar-expand-lg {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .navbar-expand-lg .navbar-toggler {
        display: none;
    }

    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .navbar-expand-md {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .navbar-expand-md .navbar-toggler {
        display: none;
    }

    .navbar-expand-md .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .navbar-expand-md .navbar-nav {
        flex-direction: row;
    }
}

.collapse:not(.show) {
    display: none;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    background: #fff;
    border: 1px solid #dbe4ec;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(20, 40, 60, 0.12);
    color: #22384d;
    display: none;
    left: 0;
    list-style: none;
    margin: 2px 0 0;
    min-width: 12rem;
    padding: 6px 0;
    position: absolute;
    top: 100%;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu-end {
    left: auto;
    right: 0;
}

.dropdown-item,
.dropdown-item-text {
    clear: both;
    color: #22384d;
    display: block;
    padding: 8px 14px;
    white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: #eef6ff;
    color: #0d6efd;
}

.dropdown-divider {
    border-top: 1px solid #e8eef3;
    height: 0;
    margin: 6px 0;
    overflow: hidden;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #8d97ad;
    content: "/";
    padding-right: 8px;
}

.breadcrumb-item.active {
    color: #8d97ad;
}

.card {
    background: #fff;
    border: 1px solid #dfe8ef;
    border-radius: 6px;
}

.card-header,
.card-footer {
    background: #f8fbfd;
    border-color: #dfe8ef;
    border-style: solid;
    border-width: 0;
    padding: 14px 16px;
}

.card-header {
    border-bottom-width: 1px;
}

.card-footer {
    border-top-width: 1px;
}

.card-body {
    padding: 16px;
}

.table {
    border-collapse: collapse;
    color: #22384d;
    margin-bottom: 16px;
    vertical-align: top;
    width: 100%;
}

.table > :not(caption) > * > * {
    border-bottom: 1px solid #dfe8ef;
    padding: 10px 12px;
}

.table-hover tbody tr:hover {
    background: #f5f9fc;
}

.table-responsive {
    overflow-x: auto;
}

.form-label {
    display: inline-block;
    margin-bottom: 6px;
}

.form-control,
.form-select {
    background: #fff;
    border: 1px solid #d5e0e8;
    border-radius: 6px;
    color: #22384d;
    display: block;
    min-height: 38px;
    padding: 8px 11px;
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: #56a8e8;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
    outline: 0;
}

.form-floating {
    position: relative;
}

.form-floating > .form-control,
.form-floating > .form-select {
    line-height: 1.25;
    min-height: 48px;
    padding: 15px 11px 7px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-floating > textarea.form-control {
    min-height: 96px;
    padding-top: 18px;
}

.form-floating > .form-control::placeholder {
    color: transparent;
}

.form-floating > .form-control:focus::placeholder {
    color: transparent;
}

.form-floating > label {
    border: 1px solid transparent;
    color: #6c7d8c;
    height: 100%;
    left: 0;
    overflow: hidden;
    padding: 13px 11px;
    pointer-events: none;
    position: absolute;
    text-align: start;
    text-overflow: ellipsis;
    top: 0;
    transform-origin: 0 0;
    transition: background 0.18s ease, color 0.18s ease, opacity 0.1s ease-in-out, transform 0.14s ease-in-out;
    white-space: nowrap;
    width: 100%;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    background: #ffffff;
    color: #6c7d8c;
    height: auto;
    margin-left: 7px;
    max-width: calc(100% - 20px);
    opacity: 1;
    padding: 0 6px;
    transform: translateY(-0.52rem) scale(0.92);
    width: auto;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: #26c6da;
    box-shadow: 0 0 0 3px rgba(38, 198, 218, 0.16);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-select:focus ~ label {
    color: #1297a8;
}

.form-check {
    display: block;
    margin-bottom: 6px;
    min-height: 1.5rem;
    padding-left: 1.5em;
}

.form-check-input {
    float: left;
    margin-left: -1.5em;
    margin-top: 0.25em;
}

.btn {
    align-items: center;
    background: #f4f7fa;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #22384d;
    cursor: pointer;
    display: inline-flex;
    font-weight: 600;
    gap: 6px;
    justify-content: center;
    line-height: 1.5;
    padding: 8px 14px;
    text-align: center;
    user-select: none;
    vertical-align: middle;
}

.btn:hover {
    filter: brightness(0.98);
}

.btn-sm {
    border-radius: 5px;
    font-size: 0.875rem;
    padding: 5px 9px;
}

.btn-primary {
    background: #0d8ee8;
    color: #fff;
}

.btn-info {
    background: #26c6da;
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-light {
    background: #f8f9fa;
    border-color: #dbe4ec;
}

.btn-outline-primary {
    background: #fff;
    border-color: #0d8ee8;
    color: #0d8ee8;
}

.btn-outline-secondary {
    background: #fff;
    border-color: #8d97ad;
    color: #44576a;
}

.badge {
    border-radius: 999px;
    display: inline-block;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    padding: 5px 8px;
}

.bg-primary { background: #0d8ee8 !important; color: #fff !important; }
.bg-info { background: #26c6da !important; color: #fff !important; }
.bg-success { background: #20c997 !important; color: #fff !important; }
.bg-secondary { background: #8d97ad !important; color: #fff !important; }
.bg-danger { background: #dc3545 !important; color: #fff !important; }

.alert {
    border: 1px solid transparent;
    border-radius: 6px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f1aeb5;
    color: #842029;
}

.alert-success {
    background: #d1e7dd;
    border-color: #a3cfbb;
    color: #0f5132;
}

.alert-info {
    background: #cff4fc;
    border-color: #9eeaf9;
    color: #055160;
}

.modal {
    background: rgba(12, 28, 43, 0.42);
    display: none;
    height: 100%;
    left: 0;
    overflow: auto;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1055;
}

.modal.show {
    display: block;
}

.modal-dialog {
    margin: 28px auto;
    max-width: 720px;
    pointer-events: none;
    width: calc(100% - 32px);
}

.modal-lg {
    max-width: 920px;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    pointer-events: auto;
}

.modal-header,
.modal-footer {
    align-items: center;
    display: flex;
    gap: 8px;
    padding: 14px 16px;
}

.modal-header {
    border-bottom: 1px solid #dfe8ef;
    justify-content: space-between;
}

.modal-footer {
    border-top: 1px solid #dfe8ef;
    justify-content: flex-end;
}

.modal-body {
    padding: 16px;
}

.btn-close {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 0;
    height: 32px;
    position: relative;
    width: 32px;
}

.btn-close::before,
.btn-close::after {
    background: #66788a;
    content: "";
    height: 2px;
    left: 8px;
    position: absolute;
    top: 15px;
    width: 16px;
}

.btn-close::before {
    transform: rotate(45deg);
}

.btn-close::after {
    transform: rotate(-45deg);
}

.pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    padding-left: 0;
}

.page-link {
    border: 1px solid #d5e0e8;
    border-radius: 5px;
    color: #0d6efd;
    display: block;
    padding: 6px 10px;
}

.page-item.active .page-link {
    background: #0d8ee8;
    color: #fff;
}
