:root {
    --primary: #4b43db;
    /* --primary:#5951ed; */
    --body: #f5f5f5;
    --white: #ffffff;
    --black: #000;
    --salmon: #f9676b;
}

.commonoffcanvas {
    --bs-offcanvas-width: 80%;
}

/* loader */

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #00000059;
    z-index: 9999999;
    display: flex;
}

.site-loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    border: 3px solid;
    margin: auto;
    border-color: var(--white) var(--white) transparent transparent;
    -webkit-animation: rotation 1s linear infinite;
    animation: rotation 1s linear infinite;
}

.site-loader:after,
.site-loader:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid;
    border-color: transparent transparent var(--bs-primary) var(--bs-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    -webkit-animation: rotationBack 0.5s linear infinite;
    animation: rotationBack 0.5s linear infinite;
    transform-origin: center center;
}

.custom-color .site-loader:after {
    border-color: transparent transparent blue green;
}

.site-loader:before {
    width: 32px;
    height: 32px;
    border-color: var(--white) var(--white) transparent transparent;
    -webkit-animation: rotation 1.5s linear infinite;
    animation: rotation 1.5s linear infinite;
}

@-webkit-keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes rotationBack {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes rotationBack {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

.form-check-input:checked {
    border-color: var(--primary);
    background-color: var(--white);
}

.form-switch .form-check-input:checked[type="checkbox"] {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%234b43db'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="checkbox"] {
    --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%234b43db' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #09090a;
}

.btn-link.btn-text-primary {
    font-size: 12px;
    text-decoration: none;
    font-style: normal;
    font-weight: 600;
    color: var(--primary);
}

.btn-link.btn-text-primary:hover {
    color: var(--black);
}

.custom_card {
    border-radius: 16px;
    background: var(--neutral-100, #fff);
    border: 0;
    height: 100%;
}

.custom_card .card-header {
    padding: 20px;
    background-color: transparent;

    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.25);
    border: 0;
    border-bottom: 1px solid var(--neutral-200, #f5f5f5);
}

.custom_card .card-header h2 {
    color: var(--black);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    margin: 0;
    padding-left: 15px;
    position: relative;
}

.custom_card .card-body {
    padding: 20px;
}

.custom_card .card-body.scrollbarshow {
    max-height: 380px;
    position: relative;
    /* overflow-y: auto; */
}

.custom_card .card-header h2::before {
    border-radius: 4px;
    content: "";
    background: #ffbc99;
    height: 100%;
    width: 5px;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
}

.custom_card .card-header h2.blue_saprater::before {
    background-color: #b1e5fc;
}

.custom_card .card-header h2.pink_saprater::before {
    background-color: #fcb1de;
}

.custom_card .card-header h2.lavender_saprater::before {
    background-color: #cabdff;
}

.custom_card .card-header h2.green_saprater::before {
    background-color: #b5e4ca;
}

.form-control {
    border-radius: 8px;
    font-size: 14px !important;
    color: #9ca1a6;
    border: 1px solid var(--neutral-300, #eff2f5);
    min-height: 48px;
}

.search_area .form-control {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    color: #3e3e3f;
    padding: 0.5rem 1rem;
}

.btn.btn-light {
    font-weight: 600;
    font-size: 14px;
    color: #09090a;
}

.btn.btn-light:hover {
    background: #ededed !important;
}

.btn {
    font-size: 14px;
}

.btn.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
    padding: 7px 1.2rem;
}

.btn.btn-outline-primary:hover {
    border-color: #e3e3e3;
    background-color: #ededed;
    color: var(--primary) !important;
}

.input-group-text {
    border-color: #eff2f5;
}

.select2-container {
    max-width: 100%;
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    min-height: 48px;
    border-radius: 8px;
    border: 1px solid var(--neutral-300, #eff2f5);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
    padding-left: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    right: 12px;
    top: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #9ca1a6 transparent transparent transparent;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #eff2f5;
    padding: 4px 10px;
    outline: none;
}

.select2-container--open .select2-dropdown--below {
    border: 1px solid #eff2f5;
}

.select2-results__option {
    padding: 6px 10px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--primary);
}

.select2-container--default .select2-selection--single {
    min-height: 48px;
    border-radius: 8px;
    border: 1px solid var(--neutral-300, #eff2f5);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
    padding-left: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    right: 12px;
    top: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #9ca1a6 transparent transparent transparent;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #eff2f5;
    padding: 4px 10px;
    outline: none;
}

.select2-container--open .select2-dropdown--below {
    border: 1px solid #eff2f5;
}

.select2-results__option {
    padding: 6px 10px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--primary);
}

.custom_dropcl .dropdown-menu {
    border-radius: 14px;
    background: var(--neutral-100, #fff);
    box-shadow: 0px 0px 97px 0px rgba(0, 0, 0, 0.15);
    border: 0;
    /* margin-right: 1.5rem; */
    margin: 0;
    /* overflow: hidden; */
}

.custom_dropcl .dropdown-menu::after {
    content: "";
    display: block;
    border-left: 12px solid #ffffff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    position: absolute;
    top: 9px;
    right: -11px;
}

.custom_dropcl .dropdown-toggle {
    color: #9ca1a6;
    background-color: #f5f5f5;
}

.custom_dropcl .dropdown-toggle::before {
    content: none;
}

.dataTables_wrapper table {
    border-color: #f5f5f5;
    position: relative;
}

table.dataTable>tbody>tr.child span.dtr-title {
    font-weight: 500;
}

.dataTables_wrapper tr th {
    font-weight: 500;
}

.dataTables_wrapper tr td,
.dataTables_wrapper tr th {
    vertical-align: middle;
    padding: 0.5rem 1rem;
}

div.dataTables_wrapper div.dataTables_length select {
    border-radius: 4px;
    border: 1px solid var(--neutral-300, #eff2f5);
    background-color: var(--neutral-200, #f5f5f5);
    min-height: 30px;
}

div.dataTables_wrapper div.dataTables_filter input {
    min-height: 38px;
}

table.dataTable>tbody>tr.child ul.dtr-details {
    width: 100%;
}

table.dataTable>tbody>tr.child ul.dtr-details>li .dtr-data {
    display: inline-block;
    vertical-align: middle;
}

.dataTables_wrapper tr td img {
    width: 36px;
    height: 36px;
}

.dataTables_paginate .pagination .paginate_button a {
    border-radius: 4px !important;
    min-width: 28px;
    border: 1px solid var(--neutral-300, #eff2f5);
    background: var(--neutral-200, #f5f5f5);
    box-shadow: none;
    margin-left: 8px;
    padding-top: 3px;
    line-height: normal;
    padding-bottom: 3px;
    font-size: 14px;
    color: #333;
}

.dataTables_paginate .pagination .paginate_button.active a {
    border-color: var(--primary);
    color: var(--primary);
}

div.dataTables_wrapper div.dataTables_info {
    padding-top: 0;
    margin-left: auto;
    margin-right: 0.5rem;
}

.offcanvas .offcanvas-body .custom_tabs {
    margin: -25px -24px 0 -24px;
}

.btn.btn-outline-danger {
    padding: 7px 1.2rem;
    font-size: 14px;
    font-style: normal;
    box-shadow: none;
    font-weight: 700;
    border-radius: 4px;
}

.btn.btn-primary {
    border-radius: 4px;
    background: var(--primary-main, var(--primary));
    padding: 8px 1.2rem;
    font-size: 14px;
    font-style: normal;
    border: 0;
    outline: none;
    box-shadow: none;
    font-weight: 700;
    color: #eff2f5;
}

.btn.btn-success {
    border-radius: 4px;
    background: #28cea6;
    border: 0;
    outline: none;
    box-shadow: none;
    font-size: 14px;
    font-weight: 700;
}

.btn.btn-success:hover {
    background: #20c19a;
}

.btn.btn-success.btn-big {
    border-radius: 8px;
    background: #28cea6;
    padding: 12px 18px;
    font-size: 14px;
    font-style: normal;
    border: 0;
    outline: none;
    box-shadow: none;
    font-weight: 700;
    color: #eff2f5;
    line-height: 100%;
}

.btn.btn-success.btn-big:hover {
    background: #20c19a;
}

.btn.btn-primary:hover {
    background-color: var(--primary);
}

.danger_custom {
    border-radius: 8px;
    background: var(--error-light, #ffe7e4);
    color: #ff6a55;
}

.danger_custom .form-select {
    padding-top: 0.63rem;
    padding-bottom: 0.63rem;
}

.danger_custom:hover {
    background: #f5d9d5;
    color: #ff6a55;
}

.btn.btn-danger {
    background: #ff6a55;
    border: 0;
    outline: none;
    box-shadow: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.btn.btn-danger:hover {
    background: #e75944;
}

.btn.btn-danger.btn-big {
    min-height: 46px;
}

.dt-buttons .dt-button {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--bs-border-radius-lg) !important;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
    background: var(--white);
    line-height: normal;
    margin: 0 !important;
}

.dt-buttons .dt-button:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
}

div.dataTables_wrapper div.dataTables_filter label {
    position: relative;
}

div.dataTables_wrapper div.dataTables_filter label::after,
.test-icon label::after {
    font-family: Font Awesome\6 Free;
    font-style: normal;
    font-weight: 900;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f002";
    position: absolute;
    right: 12px;
    font-size: 1.2rem;
    top: 8px;
}

div.dataTables_wrapper div.dataTables_filter label input[type="search"] {
    padding-right: 2.4rem;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="search"]::-ms-clear {
    display: none;
    height: 0;
    width: 0;
}

input[type="search"]::-ms-reveal {
    display: none;
    height: 0;
    width: 0;
}

.select-statuscls .select2-container--default .select2-selection--single {
    min-height: 53px;
}

.dataTables_wrapper .dt-buttons {
    width: max-content;
    display: inline-flex;
    float: none;
}

div.dataTables_wrapper div.dataTables_filter {
    width: max-content;
    display: inline-flex;
    margin-left: auto;
    justify-content: flex-end;
    float: right;
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_length {
    width: max-content;
    display: inline-flex;
    margin-right: 1rem;
}

.dt-buttons .dt-button.import-button {
    background: var(--primary);
    color: var(--white);
    margin-right: 0.5rem !important;
}

.sub_cardlist .last_iconcls {
    color: #292c30;
    color: #292c30;
    display: flex;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    align-items: center;
    line-height: 100%;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.list-group-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

.general-setting {
    position: relative;
}

.action-dropdown.custom_dropcl .dropdown-menu::after {
    content: unset !important;
}

.border-btn {
    background: transparent;
    color: var(--primary) !important;
    padding: 11px 1.2rem;
    border-color: var(--primary);
    font-weight: 700;
}

.border-btn:hover,
.border-btn:active {
    background: var(--primary);
    color: var(--white) !important;
}

#general_setting .dropify-preview,
#general_setting .dropify-preview .dropify-render img {
    background-color: #e5e5e5;
}

.login_page .card {
    max-width: 470px;
    border-radius: 16px;
    background: var(--neutral-100, #fff);
    box-shadow: 0px 0px 97px 0px rgba(0, 0, 0, 0.15);
}

.login_page .card-header {
    border-radius: 16px 16px 0 0;
    background-color: #09090a;
    color: #fff;
}

.login_page {
    background-image: url(../img/default/login-page-bg.png);
    background-position: center;
    background-size: contain;
}

.note-editor.note-airframe.fullscreen,
.note-editor.note-frame.fullscreen {
    background-color: white;
}

.note-popover,
.note-dropdown-menu {
    z-index: 1060 !important;
    /* Ensure it’s above the Offcanvas */
}

.offcanvas {
    overflow: visible !important;
    /* Allow dropdowns to render properly */
}

/* i.fa-trash {
    color: #dc3545 !important;
} */
.address-card {
    min-height: 196px;
}

label.error {
    font-size: 14px !important;
    color: red !important;
}

.text-white td {
    color: white !important;
}

.viewBtn {
    border: 0;
    outline: none;
    box-shadow: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

/* .select2-container .select2-selection--single .select2-selection__rendered {
    padding-right: 30px !important;
} */
.filter-width {
    width: 200px;
}

.filter-width+.select2-container {
    width: 200px !important;
}

table.dataTable thead th,
table.dataTable thead td {
    font-weight: 700 !important;
}

.dashboard-shell {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 22%),
        linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
    border-radius: 28px;
    padding: 28px;
}

.dashboard-card {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.dashboard-card .card-header {
    padding: 1rem 1.25rem 0.9rem;
}

.dashboard-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-card__title i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e8f2ff;
    color: #2563eb;
}

.dashboard-table thead th {
    border-bottom: 0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.dashboard-table tbody td {
    vertical-align: middle;
    border-color: #eef2f7;
}

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

.dashboard-report-table {
    min-width: 1180px;
    table-layout: fixed;
}

.dashboard-report-table--assigned {
    width: 100%;
    min-width: 760px;
    table-layout: fixed;
}

.dashboard-report-table th,
.dashboard-report-table td {
    padding: 0.95rem 0.85rem;
    vertical-align: middle;
}

.dashboard-report-table th {
    white-space: nowrap;
}

.dashboard-report-table th:nth-child(1),
.dashboard-report-table td:nth-child(1) {
    width: 46px;
    text-align: center;
}

.dashboard-report-table th:nth-child(2),
.dashboard-report-table td:nth-child(2) {
    width: 92px;
}

.dashboard-report-table th:nth-child(3),
.dashboard-report-table td:nth-child(3) {
    width: 210px;
}

.dashboard-report-table th:nth-child(n + 4),
.dashboard-report-table td:nth-child(n + 4) {
    width: 118px;
    text-align: center;
}

.dashboard-report-table--assigned th:nth-child(2),
.dashboard-report-table--assigned td:nth-child(2) {
    width: 22%;
}

.dashboard-report-table--assigned th:nth-child(3),
.dashboard-report-table--assigned td:nth-child(3) {
    width: 16%;
    text-align: center;
}

.dashboard-report-table--assigned th:nth-child(4),
.dashboard-report-table--assigned td:nth-child(4),
.dashboard-report-table--assigned th:nth-child(5),
.dashboard-report-table--assigned td:nth-child(5) {
    width: 28%;
    text-align: left;
}

.dashboard-report-table--assigned th:nth-child(1),
.dashboard-report-table--assigned td:nth-child(1) {
    width: 6%;
}

.dashboard-report-table--assigned .dashboard-otd-list__item {
    width: 100%;
    justify-content: space-between;
}

.dashboard-report-table__project {
    min-width: 0;
}

.dashboard-report-table__project strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #0f172a;
    font-size: 0.92rem;
}

.dashboard-report-table__project span {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.otd-chip {
    display: inline-flex;
    min-width: 64px;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    background: #edf7ed;
    color: #166534;
}

.otd-chip--avg {
    background: #e0f2fe;
    color: #075985;
}

.dashboard-otd-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.dashboard-otd-list__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.35rem 0.65rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.82rem;
    color: #334155;
}

.dashboard-otd-list__name {
    font-weight: 600;
}

.activity-list li {
    position: relative;
    padding: 14px 14px 14px 44px;
    margin-bottom: 12px;
    font-size: 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #eef2f7;
}

.activity-list .dot {
    position: absolute;
    left: 18px;
    top: 19px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.12);
}

.dashboard-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #64748b;
}

@media (max-width: 991.98px) {
    .dashboard-shell {
        padding: 18px;
        border-radius: 20px;
    }

}

.report-shell {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 22%),
        linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
    border-radius: 26px;
    padding: 24px;
}

.report-filter-card,
.report-table-card {
    border: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.report-filter-card .card-body,
.report-table-card .card-body {
    padding: 1.25rem;
}

.report-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.report-subtitle {
    color: #64748b;
    font-size: 0.92rem;
}

.report-filter-label {
    display: block;
    margin-bottom: 0.45rem;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.report-filter-card .form-select {
    min-height: 46px;
    border-radius: 14px;
    border-color: #dbe5f0;
    box-shadow: none;
}

.report-filter-card .form-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.18rem rgba(96, 165, 250, 0.16);
}

.report-table-card .card-header {
    padding: 1rem 1.25rem 0;
    border: 0;
    background: transparent;
}

.report-table-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.report-table-title i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e8f2ff;
    color: #2563eb;
}

.report-table-wrap table {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .report-shell {
        padding: 18px;
        border-radius: 20px;
    }
}
