body {
    background: #f3f5f8;
    color: #26334b;
    font-family: "Source Sans Pro", "Segoe UI", sans-serif;
}

.has-sidebar .main-sidebar,
.has-sidebar .main-sidebar::before {
    width: 236px;
}

.has-sidebar .main-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: auto;
    overflow: hidden;
    border-right: 1px solid #159df4;
    border-radius: 0;
    background: #222d45;
    box-shadow: none;
}

.has-sidebar .main-sidebar::before {
    top: 0;
    bottom: 0;
    left: 0;
    border-radius: 0;
    background: #222d45;
}

.has-sidebar .brand-link {
    height: 68px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
}

.has-sidebar .brand-link .brand-image {
    width: 108px;
    height: 36px;
    max-height: 36px;
    margin-left: 0;
    margin-right: 9px;
    opacity: 1;
    border-radius: 0;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.has-sidebar .brand-link .brand-text {
    font-size: 19px;
    font-weight: 700;
}

.brand-collapsed-icon {
    display: none;
}

body.has-sidebar.sidebar-collapse .brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 10px;
    padding-left: 10px;
}

body.has-sidebar.sidebar-collapse .brand-link .brand-image,
body.has-sidebar.sidebar-collapse .brand-link .brand-text {
    display: none !important;
}

body.has-sidebar.sidebar-collapse .brand-link .brand-collapsed-icon {
    display: inline-block;
    color: #159df4;
    font-size: 19px;
}

body.has-sidebar.sidebar-collapse .main-sidebar:hover .brand-link .brand-image,
body.has-sidebar.sidebar-collapse .main-sidebar.sidebar-focused .brand-link .brand-image {
    display: block !important;
}

body.has-sidebar.sidebar-collapse .main-sidebar:hover .brand-link .brand-text,
body.has-sidebar.sidebar-collapse .main-sidebar.sidebar-focused .brand-link .brand-text {
    display: inline !important;
}

body.has-sidebar.sidebar-collapse .main-sidebar:hover .brand-link .brand-collapsed-icon,
body.has-sidebar.sidebar-collapse .main-sidebar.sidebar-focused .brand-link .brand-collapsed-icon {
    display: none;
}

@media (min-width: 992px) {
    body.has-sidebar.sidebar-collapse .main-header {
        left: 4.6rem;
        margin-left: 0 !important;
    }

    body.has-sidebar.sidebar-collapse .main-sidebar,
    body.has-sidebar.sidebar-collapse .main-sidebar::before {
        width: 4.6rem !important;
    }

    body.has-sidebar.sidebar-collapse .main-sidebar:hover {
        width: 236px !important;
    }
}

.has-sidebar .sidebar {
    height: calc(100% - 68px);
    overflow-y: auto;
    padding: 6px 10px 18px;
}

.has-sidebar .user-panel {
    border-bottom-color: rgba(255, 255, 255, .12);
}

.has-sidebar .user-panel .info a {
    color: #d3dae6;
}

.has-sidebar .nav-sidebar .nav-link {
    border-radius: 9px;
    color: #cbd4e2;
    padding: 10px 12px;
}

.has-sidebar .nav-sidebar .nav-link:hover,
.has-sidebar .nav-sidebar .nav-link.active {
    background: #2b3853;
    color: #fff;
}

.has-sidebar .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
    background: #25334e;
    color: #159df4;
}

.has-sidebar [class*='sidebar-dark-'] .nav-sidebar > .nav-item:hover > .nav-link,
.has-sidebar [class*='sidebar-dark-'] .nav-sidebar > .nav-item > .nav-link:focus,
.has-sidebar [class*='sidebar-dark-'] .nav-sidebar > .nav-item.menu-open > .nav-link {
    background: #2b3853;
    color: #fff;
}

.has-sidebar [class*='sidebar-dark-'] .nav-treeview > .nav-item > .nav-link.active,
.has-sidebar [class*='sidebar-dark-'] .nav-treeview > .nav-item > .nav-link:hover,
.has-sidebar [class*='sidebar-dark-'] .nav-treeview > .nav-item > .nav-link:focus {
    background: #25334e;
    color: #159df4;
    box-shadow: none;
}

.has-sidebar [class*='sidebar-dark-'] .nav-sidebar > .nav-item:hover > .nav-link > .nav-icon,
.has-sidebar [class*='sidebar-dark-'] .nav-sidebar > .nav-item > .nav-link:focus > .nav-icon,
.has-sidebar [class*='sidebar-dark-'] .nav-sidebar > .nav-item.menu-open > .nav-link > .nav-icon {
    color: #159df4;
}

.has-sidebar .nav-sidebar .nav-icon {
    width: 1.65rem;
    color: #aeb9ca;
    font-size: 1rem;
    text-align: center;
}

.has-sidebar .nav-sidebar .nav-link:hover .nav-icon,
.has-sidebar .nav-sidebar .nav-link.active .nav-icon {
    color: #159df4;
}

body.has-sidebar .main-header {
    position: fixed;
    z-index: 1037;
    top: 0;
    right: 0;
    left: 236px;
    min-height: 68px;
    margin: 0;
    padding: 8px 18px;
    border: 0;
    border-bottom: 1px solid #e8ebf0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(34, 45, 69, .04);
}

.main-header .nav-link {
    color: #414b60;
}

.main-header .nav-link:hover,
.main-header .nav-link:focus {
    color: #159df4;
}

.navbar-account {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px !important;
}

.navbar-account img {
    width: 34px;
    height: 34px;
    border: 2px solid #e5eaf2;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-account-name {
    color: #34415b;
    font-size: 14px;
    font-weight: 600;
}

.avatar-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    max-height: 55vh;
    overflow-y: auto;
    gap: 12px;
    padding: 2px 6px 6px 2px;
}

.avatar-choice {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.avatar-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.avatar-choice-content {
    display: flex;
    min-height: 170px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border: 1px solid #e3eaf2;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.avatar-choice input:checked + .avatar-choice-content {
    border-color: #159df4;
    background: #f3faff;
    box-shadow: 0 0 0 2px rgba(21, 157, 244, .12);
}

.avatar-choice input:focus-visible + .avatar-choice-content {
    outline: 2px solid #159df4;
    outline-offset: 2px;
}

.avatar-choice:hover .avatar-choice-content {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(34, 45, 69, .08);
}

.avatar-choice-content img {
    width: 82px;
    height: 82px;
    margin-bottom: 8px;
    border: 2px solid #e7edf5;
    border-radius: 50%;
    background: #f3f5f8;
    object-fit: cover;
}

.avatar-choice-name {
    color: #26334b;
    font-size: 14px;
    font-weight: 700;
}

.avatar-choice-type {
    margin-top: 2px;
    color: #818a9a;
    font-size: 11px;
    line-height: 1.25;
}

.avatar-choice-current {
    margin-top: 7px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e6f5ff;
    color: #087ec2;
    font-size: 10px;
    font-weight: 700;
}

.avatar-modal-footer {
    margin: 16px -16px -16px;
}

.navbar-brand-link {
    display: flex !important;
    align-items: center;
    gap: 9px;
    color: #26334b !important;
    font-size: 18px;
    font-weight: 700;
}

.navbar-brand-link img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-icon-link {
    display: inline-flex !important;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #7d8798 !important;
}

.navbar-icon-link:hover {
    background: #edf7ff;
    color: #159df4 !important;
}

.has-sidebar .content-wrapper {
    min-height: calc(100vh - 92px) !important;
    margin-top: 68px;
    margin-left: 236px;
    background: transparent;
}

.has-sidebar .content-header {
    padding: 24px 18px 8px;
}

.has-sidebar .content-header h1 {
    color: #26334b;
    font-size: 25px;
    font-weight: 700;
}

.has-sidebar .content {
    padding: 0 18px 28px;
}

.has-sidebar .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 13px;
}

.has-sidebar .breadcrumb a {
    color: #159df4;
}

.has-sidebar .main-footer {
    margin-left: 236px;
    border-top: 0;
    background: transparent;
    color: #818a9a;
}

.card,
.info-box,
.small-box {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(34, 45, 69, .055);
}

.card {
    background: #fff;
}

.card-header {
    border-bottom: 1px solid #e8ebf0;
    background: #fff;
}

.card-title {
    color: #26334b;
    font-weight: 600;
}

.card-footer {
    border-top: 1px solid #e8ebf0;
    background: #fff;
}

.info-box {
    background: #fff;
}

.info-box .info-box-icon {
    background: #eaf5ff;
    color: #159df4;
}

.small-box {
    background: #fff !important;
    color: #26334b !important;
}

.small-box .icon {
    color: rgba(21, 157, 244, .18);
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.btn:not(:disabled):not(.disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(38, 51, 75, .14);
}

.btn:not(:disabled):not(.disabled):active {
    transform: translateY(0);
    box-shadow: none;
}

.btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(21, 157, 244, .22);
}

.btn > i:first-child,
.btn > .fa:first-child {
    margin-right: .35rem;
}

.btn-primary,
.bg-primary {
    border-color: #159df4;
    background-color: #159df4 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    border-color: #0788dc;
    background-color: #0788dc !important;
}

.btn-success {
    border-color: #68a72b;
    background-color: #68a72b;
}

.btn-info {
    border-color: #239bad;
    background-color: #239bad;
}

.btn-danger {
    border-color: #df4054;
    background-color: #df4054;
}

.btn-secondary,
.btn-default {
    border-color: #e1e6ee;
    background-color: #f3f5f8;
    color: #414b60;
}

.btn-secondary:hover,
.btn-default:hover {
    border-color: #d6dde7;
    background-color: #e9edf3;
    color: #34415b;
}

.dataTables_wrapper table.dataTable tbody td:last-child {
    padding-right: 6px !important;
    padding-left: 6px !important;
}

.dataTables_wrapper .table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.dataTables_wrapper .table-actions .btn {
    margin: 0;
    padding: .18rem .2rem;
    font-size: .7rem;
    white-space: nowrap;
}

.dataTables_wrapper .table-actions .btn > i:first-child,
.dataTables_wrapper .table-actions .btn > .fa:first-child {
    margin-right: .2rem;
}

.form-control,
.custom-select,
.input-group-text {
    border-color: #e1e6ee;
    border-radius: 8px;
    color: #34415b;
}

.form-control:focus,
.custom-select:focus {
    border-color: #79c7f7;
    box-shadow: 0 0 0 .2rem rgba(21, 157, 244, .12);
}

.has-sidebar form .card-primary > .card-header {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8edf3;
    background: #fff;
    color: #26334b;
}

.has-sidebar form .card-primary > .card-header .card-title {
    margin: 0;
    color: #26334b;
    font-size: 1rem;
    font-weight: 700;
}

.has-sidebar form .card-primary > .card-header::after {
    display: none;
}

.has-sidebar form .card-primary > .card-header .card-tools {
    float: none;
    margin-left: auto;
}

.has-sidebar form .card-tools .btn-tool {
    color: #728096;
}

.has-sidebar form .card-tools .btn-tool:hover {
    background: #edf7ff;
    color: #159df4;
}

.has-sidebar form .card-body {
    padding: 1.5rem;
}

.has-sidebar form .form-group {
    margin-bottom: 1.1rem;
}

.has-sidebar form label {
    display: inline-block;
    margin-bottom: .45rem;
    color: #34415b;
    font-size: .875rem;
    font-weight: 600;
}

.has-sidebar form .form-control,
.has-sidebar form .custom-select {
    min-height: 42px;
}

.has-sidebar form textarea.form-control {
    min-height: 110px;
}

.has-sidebar form input[type="checkbox"],
.has-sidebar form input[type="radio"] {
    accent-color: #159df4;
}

.role-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .75rem;
}

.role-option {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: .55rem;
    padding: .65rem .75rem;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    background: #fbfcfe;
}

.role-option input {
    flex: 0 0 auto;
    margin-top: .22rem;
}

.role-option label {
    margin: 0 !important;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.has-sidebar form > .row:last-child {
    margin-top: 0;
    margin-bottom: 0;
}

.has-sidebar form > .row:last-child > .col-12 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
}

.has-sidebar form > .row:last-child > .col-12 .float-right {
    float: none !important;
}

.input-group > .form-control:not(:last-child),
.input-group > .custom-select:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.table thead th {
    border-bottom: 1px solid #e3e8f0;
    background: #fff;
    color: #536176;
    font-size: 13px;
    font-weight: 600;
}

.table td,
.table th {
    border-top-color: #e9edf3;
    vertical-align: middle;
}

#dtrTable th:nth-child(-n+3),
#dtrTable td:nth-child(-n+3) {
    white-space: nowrap;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fbfcfe;
}

.modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(46, 55, 96, .18);
}

.modal-header {
    border-bottom: 1px solid #e3e8f0;
    background: #fff;
}

.modal-footer {
    border-top: 1px solid #e3e8f0;
}

.alert {
    border: 0;
    border-radius: 10px;
}

.pagination .page-link {
    border-color: #e2e8f0;
    color: #159df4;
}

.pagination .page-item.active .page-link {
    border-color: #159df4;
    background: #159df4;
    color: #fff;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #e5e7f0;
    border-radius: 8px;
    padding: 5px 8px;
}

.fc .fc-button-primary {
    border-color: #159df4;
    background-color: #159df4;
}

.fc .fc-button-primary:hover,
.fc .fc-button-primary:focus {
    border-color: #0788dc;
    background-color: #0788dc;
}

.fc .fc-button-primary:disabled {
    border-color: #79c7f7;
    background-color: #79c7f7;
}

.login-page {
    background: #f3f5f8;
}

.login-box .login-logo img {
    max-width: 180px;
    max-height: 90px;
    object-fit: contain;
}

.login-box .card {
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(46, 55, 96, .1);
}

.login-box .login-card-body {
    border-radius: 16px;
}

.login-box .login-box-msg {
    color: #34415b;
}

body:not(.has-sidebar):not(.login-page) .main-header {
    min-height: 60px;
    margin: 12px;
    padding: 8px 18px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(46, 55, 96, .06);
}

body:not(.has-sidebar):not(.login-page) .content-wrapper {
    min-height: calc(100vh - 92px) !important;
    background: transparent;
}

@media (max-width: 767.98px) {
    .has-sidebar .main-sidebar,
    .has-sidebar .main-sidebar::before {
        left: 0;
        top: 0;
        bottom: 0;
        border-radius: 0;
    }

    .has-sidebar .main-header {
        right: 0;
        left: 0;
        margin: 0;
    }

    .has-sidebar .content-wrapper,
    .has-sidebar .main-footer {
        margin-left: 0;
    }

    .has-sidebar .content-wrapper {
        margin-top: 68px;
    }

    .has-sidebar .content-header,
    .has-sidebar .content {
        padding-right: 12px;
        padding-left: 12px;
    }

    .has-sidebar .content-header .breadcrumb {
        float: none !important;
        margin-top: 12px;
    }

    .navbar-account-name {
        display: none;
    }

    .role-options {
        grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    }

    .has-sidebar form .card-body {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }

    .btn:not(:disabled):not(.disabled):hover,
    .btn:not(:disabled):not(.disabled):active {
        transform: none;
    }
}
