﻿/*
* demo.css
* File include item demo only specific css only 
******************************************************************************/

.menu .app-brand.demo {
    height: 3rem;
/*    margin-top: 12px;*/
}

.app-brand-logo.demo svg {
    width: 22px;
    height: 38px;
}

.app-brand-text.demo {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    text-transform: lowercase;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
    padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
    z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
    display: block !important;
}

.demo-inline-spacing > * {
    margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
    margin-top: 1.875rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing-lg.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
    margin-top: 5rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing-xl.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.rtl-only {
    display: none !important;
    text-align: left !important;
    direction: ltr !important;
}

[dir='rtl'] .rtl-only {
    display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 1rem;
}

.layout-demo-placeholder img {
    width: 900px;
}

.layout-demo-info {
    text-align: center;
    margin-top: 1rem;
}
label.require::after {
    content: " *";
    color: red;
}

.stepper-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    padding: 0 20px;
    flex-wrap: nowrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ccc;
    transition: background-color 0.3s ease;
    z-index: 1;
}

.step.active .circle {
    background-color: #007bff;
}

.step.cancelled .circle {
    background-color: #dc3545 !important;
}

.step.cancelled.active .circle {
    background-color: #FF3E1D !important;
}

.step.cancelled .label {
    color: #dc3545;
}

.step.completed .circle {
    background-color: #71DD37 !important;
}

.step.completed .label {
    color: #71DD37;
}

.step.cancelled .label {
    color: #dc3545;
}

.label {
    margin-top: 6px;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
}




.select-Style {
    display: block;
    width: 100%;
    padding: 0.4375rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.53;
    color: #697a8d;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d9dee3;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}


.select2-container--default .select2-selection--single {
    display: block;
    width: 100% !important;
    padding: 0.4375rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.53;
    color: #697a8d;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d9dee3;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
    height: auto;
    min-height: calc(1.53em + 0.875rem + 2px); /* match .form-control height */
}

    /* Text     ʴ   select2 */
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: #697a8d;
        line-height: 1.53;
        padding-left: 0;
        padding-right: 30px;
        margin: 0;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 100%;
        top: 0;
        right: 10px;
        width: 20px;
    }

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #5a8dee;
    box-shadow: 0 0 0 0.15rem rgba(105, 122, 141, 0.25);
    outline: 0;
}

.select2-dropdown {
    border: 1px solid #d9dee3;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
}

body {
    background-color: #E0E0E0; 
    position: relative;
    z-index: 0;
}

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.85); /*   Ѻ     ҧ   */
        z-index: -1;
    }

.star-rating {
    display: flex;
    gap: 0.2rem;
    font-size: 2rem;
    direction: rtl
}

    .star-rating input[type="radio"] {
        display: none;
    }

    .star-rating label {
        color: #ccc; /*             ١   ͡ */
        cursor: pointer;
        transition: color 0.2s ease-in-out;
        user-select: none;
    }

    /*   Ƿ  ١   ͡   д ǡ ͹˹ Ҩ    շͧ */
    .star-rating input[type="radio"]:checked ~ label,
    .star-rating input[type="radio"]:checked + label {
        color: #ffc107;
    }

    /* Hover  շͧ */
    .star-rating label:hover,
    .star-rating label:hover ~ label {
        color: #ffca2c;
    }

@@media (max-width: 576px) {
    .star-rating {
        font-size: 1.6rem;
    }
}

.swal2-container {
    z-index: 99999 !important;
}

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(26, 26, 26, 0.95);
    z-index: 99999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #444;
    border-top-color: #00f7ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    color: #aaa;
    font-size: 1.2rem;
    opacity: 0;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        pointer-events: none;
        display: none;
    }
}



#files-area {
    width: 100%;
    margin: 0 auto;
}

.file-block {
    border-radius: 10px;
    background-color: rgba(217, 217, 217, 0.2);
    padding: 5px 10px;
    color: #007bff;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    margin-right: 10px;
    margin-bottom: 5px; 
}

    .file-block:hover {
        background-color: rgba(0, 123, 255, 0.1);
    }

    .file-block > .name {
        padding-right: 10px;
        display: inline-flex;
    }

.file-delete {
    display: flex;
    width: 24px;
    height: 24px;
    color: #333;
    background-color: transparent;
    font-size: 20px;
    justify-content: start;
    align-items: start;
    margin-right: 8px;
    cursor: pointer;
}

    .file-delete:hover {
        background-color: rgba(144, 163, 203, 0.2);
        border-radius: 50%;
    }

    .file-delete > span {
        transform: rotate(45deg); 
    }

.select2-container--default .select2-selection--single {
    background-color: #fff !important;
    border: 1px solid #d9dee3 !important;
    border-radius: 4px !important;
    height: 38px !important;
    padding: 6px 12px !important;
    box-sizing: border-box !important;
}

    .select2-container--default .select2-selection--single:focus,
    .select2-container--default .select2-selection--single.select2-container--focus {
        border-color: #007bff !important;
        box-shadow: none !important;
        outline: none !important;
    }

.select2-selection__clear {
    display: none !important;
}

.select2-container {
    width: 100% !important;
}

.password-toggle-icon {
    display: none !important;
}

.form-password-toggle .password-toggle-icon {
    display: none !important;
}

body, html {
    /*    font-family: 'TH Sarabun New', 'Sarabun', sans-serif !important;*/
    font-family: 'Sarabun', sans-serif !important;
}


.tab-content .tab-pane {
    display: block !important;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

    .tab-content .tab-pane.active {
        visibility: visible;
        height: auto;
        position: relative;
    }

.custom-tab {
    background-color: #B0E0FF !important;
    color: #fff !important;
    transition: background-color 0.3s ease !important;
}

    .custom-tab.active {
        background-color: #007BFF !important;
        color: #fff !important;
    }


.swal2-actions .swal2-btn-confirm {
    margin-left: auto;
    margin-right: 10px; 
}

.swal2-actions .swal2-btn-cancel {
    margin-right: auto;
    margin-left: 10px;
}

.swal2-btn-confirm {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
}

.swal2-btn-cancel {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
}


.form-label, .col-form-label {
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: inherit !important;
}

.table.custom-header thead th {
    font-size: 1rem !important;
    text-transform: none; 
    letter-spacing: normal;
}


.btn-primary-custom {
    background-color: #0366FF !important;
    color: #FFFFFF !important;
    border: none !important;
    width: 312px !important;
    height: 62px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: 0.2s !important;
    text-align: center !important;
}

    .btn-primary-custom:hover {
        background-color: #0254D1 !important;
    }

@media (max-width: 480px) {
    .btn-primary-custom {
        width: 100% !important;
        height: 56px !important;
    }
}

.center-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.card.card-custom-login {
    width: 585px;
    max-width: 90%; 
    height: 570px; 
    max-height: 90vh;
    margin: 0 auto; 
    padding: 2rem; 
    border-radius: 12px; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background-color: #ffffff; 
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    box-sizing: border-box;
}

.form-control-custom {
    line-height: 2.5 !important;
    max-width: 100%;
}

.card.card-custom {
    max-width: 90%; 
    min-width: 300px; 
    margin: 2rem auto;
    padding: 2rem; 
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
    background-color: #ffffff; 
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    height: auto;
}

@media (max-width: 768px) {
    .card.card-custom {
        width: 90%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .card.card-custom {
        width: 95%; 
        padding: 1rem;
    }
}
.custom-table {
    table-layout: fixed; 
    width: 100%;
}

    .custom-table th,
    .custom-table td {
        vertical-align: middle;
        text-align: center;
    }

        .custom-table th.text-start,
        .custom-table td.text-start {
            text-align: left;
        }

        .custom-table td > span,
        .custom-table td > .badge,
        .custom-table td > .badge-full {
            margin: 0 auto;
        }


    /* head สีเทา */
    .custom-table thead th {
        background-color: #FCFDFD !important;
        color: #000;
        border-bottom: 2px solid #dee2e6;
    }

    .custom-table td,
    .custom-table th {
        border-left: 0;
        border-right: 0;
    }

    .custom-table tbody tr {
        border-bottom: 1px solid #dee2e6;
    }
        .custom-table tbody tr:last-child {
            border-bottom: 0;
        }

    .custom-table > :not(caption) > * > * {
        padding: 1.25rem 1.25rem;
        background-color: var(--bs-table-bg);
        border-bottom-width: 1px;
        box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
    }

.badge-full {
    display: block;
    width: 100%; 
    text-align: center;
    border: 1px solid #979797;
    color: #202224 !important;
    background: transparent;
    border-radius: 30px;
    padding: 8px 0; 
    font-weight: 500;
    line-height: 1.2;
}


.progress-box {
    background: #ffffff;
    border-radius: 28px;
    padding: 30px 35px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.05);
    width: 100%;
    height: 100%;
}

.progress-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1a2b48;
}

.progress-track {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.circle {
    flex: 0 0 auto;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    border: 4px solid white;
}

.gray {
    background: #c4c4c4;
}

.yellow {
    background: #f6cd53;
}

.green {
    background: #5fd58b;
}

.red {
    background: #FF3E1D !important;
}

.line {
    width: 90px;
    height: 4px;
    background: #b4b4b4;
}

.progress-labels {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.label-title {
    font-size: 17px;
    font-weight: 600;
}

.date {
    font-size: 14px;
    color: #4b4b4b;
}

.time {
    font-size: 12px;
    color: #6c6c6c;
}

.detail-box {
    border: 2px solid #5fa8ff;
    border-radius: 20px;
    padding: 18px;
    margin-top: 30px;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

    .detail-box,
    .detail-box * {
        max-width: 100%;
        box-sizing: border-box;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        white-space: normal !important;
    }


.detail-title {
    color: #0e60c8;
    font-size: 17px;
    font-weight: 700;
}

.detail-text {
    margin-top: 8px;
    font-size: 15px;
}

.file-item {
    position: relative;
    margin-top: 20px;
    display: flex;
    align-items: center;
    border: 2px solid #5fa8ff;
    padding: 12px 18px;
    border-radius: 40px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #2b2b2b;
    border-radius: 50%;
    margin-right: 10px;
}

.file-name {
    font-size: 15px;
}


.edit-box {
    background: #efefef;
    border-radius: 24px;
    padding: 30px 20px 40px 20px;
    text-align: center;
    min-height: 260px;
    width: 100%;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.03);
}

.edit-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2e3a59;
}

.edit-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px dashed #6b6b6b;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    margin-top: 20px;
    cursor: pointer;
    transition: 0.2s;
}

    .edit-icon span {
        font-size: 36px;
        font-weight: 300;
        color: #6b6b6b;
    }

    .edit-icon:hover {
        background: #e0e0e0;
    }

.btn-primary {
    border-radius: 14px;
}

.table thead.table-primary th {
    background-color: #4880FF !important; 
    color: #fff;
    border-color: #696cff;
    font-size: 1.15rem;
}

.table-fixed {
    table-layout: fixed;
}

.cursor-pointer {
    cursor: pointer;
}

.table td,
.table th {
    vertical-align: middle;
}

.collapse td {
    border-top: 0;
}

.rotate-icon {
    transition: transform 0.15s ease;
}

    .rotate-icon.rotated {
        transform: rotate(90deg);
    }

.pointer {
    cursor: pointer;
}

.progress-track {
    display: flex;
    align-items: center;
    width: 100%;
}

.circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #ddd;
}

    .circle.gray {
        background: #d9d9d9;
    }

    .circle.yellow {
        background: #ffd666;
    }

    .circle.green {
        background: #6fdc8c;
    }

    .circle.hide {
        display: none;
    }

.line {
    flex: 1; 
    height: 2px;
    background: #ccc;
}

    .line.active {
        background: #5088FF;
    }

.responsible-box {
    height: 56px;
    min-width: 125px;
    padding: 6px 14px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.responsible-title {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.responsible-code {
    font-size: 12px;
    padding: 4px 14px;
    border: 1.5px solid #5088FF;
    border-radius: 20px;
    color: #5088FF;
    font-weight: 500;
    background: #fff;
}

.noti-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

    .noti-item:last-child {
        border-bottom: none;
    }

.noti-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    flex-shrink: 0;
}

.noti-title {
    font-weight: 600;
}

.noti-detail {
    font-size: 13px;
    color: #888;
}

.filter-pill {
    width: 90px;
    height: 20px;
    padding: 0;
    border: 2px solid cornflowerblue;
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    line-height: normal; 
}

.filter-pill-value {
    min-width: 90px;
    max-width: 130px;
    margin-top: 4px;
    padding: 4px 8px;
    border: 2px solid cornflowerblue;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
}


.filter-pill-label {
    width: 45px;
    height: 20px;
    border: 2px solid cornflowerblue;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.filter-col {
    min-height: 64px;
    gap: 4px;
}

    .filter-col button,
    .filter-col input[type="date"] {
        height: 32px;
        font-weight: 600;
    }

.filter-summary {
    position: absolute;
    top: 38px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.filter-spacer {
    height: 160px;
}


/* container */
.choices {
    width: 100% !important;
    margin-bottom: 0 !important;

}

/* main input */
.choices__inner {
    display: flex !important;
    align-items: center !important;
    min-height: calc(1.5em + .75rem + 2px) !important;
    padding: .375rem .75rem !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #697a8d !important;
    background-color: #fff !important;
    border: 1px solid #d9dee3 !important;
    border-radius: 0.375rem !important;
    height: 40px !important;
    overflow: hidden !important;
}

.choices__list--single .choices__item,
.choices__list--multiple .choices__item {
    color: #697a8d !important; 
}

.choices__list--single .choices__item {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    width: calc(100% - 20px) !important;
}

.choices__list--multiple .choices__item {
    background-color: #eef2f6 !important;
    border: 1px solid #d9dee3 !important;
    /*    border-radius: 4px !important;*/
    padding: 2px 8px !important;
    font-size: 13px !important;
}

.choices__list--multiple .choices__item {
    background-color: #eef2f6 !important;
    border: 1px solid #d9dee3 !important;
    /*    border-radius: 8px !important;*/
    padding: 2px 8px !important;
    font-size: 13px !important;
}

.choices__placeholder {
    color: #aab4be !important;
}
.choices.is-focused .choices__inner {
    border-color: #696cff !important;
    box-shadow: 0 0 0 .15rem rgba(105,108,255,.25) !important;
}


.choices__list--dropdown {
    border-radius: 0.375rem !important;
    border: 1px solid #d9dee3 !important;
    margin-top: 4px !important;
}

    .choices__list--dropdown .choices__item--selectable.is-highlighted {
        background-color: #696cff !important;
        color: #fff !important;
    }

.choices[data-type*="select-one"] .choices__inner {
    background-color: #fff !important;
}

.choices__item {
    font-size: 1rem !important;
}

.choices[data-type*="select-one"]::after {
    right: 11.5px !important;
}



.wf-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.wf-step {
    min-width: 120px;
    max-width: 140px;
    border-radius: 10px;
    padding: 12px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: 1.5px solid;
}

.wf-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.wf-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.wf-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    text-align: center;
}

.wf-sub {
    font-size: 11px;
    margin-bottom: 8px;
    text-align: center;
}

.wf-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.wf-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    padding: 0;
    line-height: 1;
}

.step-sender {
    background: #EEF2FF;
    border-color: #818CF8;
    border-style: dashed;
}

    .step-sender .wf-badge {
        background: #818CF8;
        color: #fff;
    }

    .step-sender .wf-title {
        color: #3730A3;
    }

    .step-sender .wf-sub {
        color: #6366F1;
    }

.step-review {
    background: #FFFAF0;
    border-color: #F59E0B;
}

    .step-review .wf-label {
        color: #D97706;
    }

    .step-review .wf-badge {
        background: #F59E0B;
        color: #fff;
    }

    .step-review .wf-title {
        color: #92400E;
    }

    .step-review .wf-sub {
        color: #B45309;
    }

    .step-review .wf-btn {
        color: #D97706;
        border-color: #F59E0B;
    }

.step-approve {
    background: #F0FDF4;
    border-color: #22C55E;
}

    .step-approve .wf-label {
        color: #16A34A;
    }

    .step-approve .wf-badge {
        background: #22C55E;
        color: #fff;
    }

    .step-approve .wf-title {
        color: #14532D;
    }

    .step-approve .wf-sub {
        color: #15803D;
    }

    .step-approve .wf-btn {
        color: #16A34A;
        border-color: #22C55E;
    }

.step-payment {
    background: #EFF6FF;
    border-color: #3B82F6;
}

    .step-payment .wf-label {
        color: #2563EB;
    }

    .step-payment .wf-badge {
        background: #3B82F6;
        color: #fff;
    }

    .step-payment .wf-title {
        color: #1E3A8A;
    }

    .step-payment .wf-sub {
        color: #1D4ED8;
    }

    .step-payment .wf-btn {
        color: #2563EB;
        border-color: #3B82F6;
    }

.step-end {
    background: #F0FDF4;
    border-color: #86EFAC;
    border-style: dashed;
    opacity: .75;
}

    .step-end .wf-title {
        color: #15803D;
    }

    .step-end .wf-sub {
        color: #16A34A;
    }

.wf-btn-reject {
    color: #EF4444 !important;
    border-color: #EF4444 !important;
}

.wf-add {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px dashed #adb5bd;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    font-size: 20px;
    flex-shrink: 0;
}

.state-card {
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

    .state-card:has(.state-radio:checked) {
        border-color: #7F77DD !important;
        background: #EEEDFE;
    }

        .state-card:has(.state-radio:checked) .fw-medium {
            color: #3C3489;
        }

        .state-card:has(.state-radio:checked) .check-icon {
            background: #534AB7;
            border-color: #534AB7 !important;
            color: #fff;
        }

            .state-card:has(.state-radio:checked) .check-icon::after {
                content: '✓';
            }

.form-check-input:checked {
    background-color: #60A5FA;
    border-color: #22C55E;
}

.upload-wrapper {
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d9dee3;
    background: #fcfcfd;
    border-radius: 0.375rem !important;
    position: relative;
}

    .upload-wrapper:hover {
        border-color: #696cff !important;
        background-color: #f5f5f9;
    }

.upload-content * {
    transition: all 0.2s ease;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-file-list-container {
    position: relative;
    pointer-events: auto; 
}

.extra-small {
    font-size: 0.75rem;
}

.btn-label-danger {
    color: #ff3e1d;
    background: #ffe5e5;
    border: none;
}

    .btn-label-danger:hover {
        color: #fff;
        background: #ff3e1d;
    }

.hover-bg-primary:hover {
    background-color: #566a7f !important;
    color: #fff !important;
}

.gap-1\.5 {
    gap: 0.375rem;
}

.transition-all {
    transition: all 0.2s ease-in-out;
}

.ms-1\.5 {
    margin-left: 0.375rem;
}

.gap-2 {
    gap: 0.5rem;
}

.hover-underline:hover {
    text-decoration: underline !important;
}

.tree-arrow {
    transition: transform 0.2s ease-in-out;
}
[aria-expanded="true"] .tree-arrow {
    transform: rotate(0deg);
}
.cursor-pointer.collapsed .tree-arrow,
[aria-expanded="false"] .tree-arrow {
    transform: rotate(-90deg);
}
.hover-text-primary:hover {
    color: #696cff !important;
    cursor: pointer;
}

.tree-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
}

.bg-active-blue {
    background-color: #f0f4ff !important;
    color: #1e40af !important;
    font-weight: 500;
}

.tree-item-row {
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

    .tree-item-row:hover {
        background-color: #f8fafc;
        cursor: pointer;
    }

.bg-active-blue:hover {
    background-color: #e0e9ff;
}

.tree-caret {
    transition: transform 0.2s ease-in-out;
    transform: rotate(-90deg); 
}
[aria-expanded="true"] .tree-caret,
[aria-expanded="true"] > .tree-caret {
    transform: rotate(0deg);
}

.custom-accordion-white-arrow::after {
    filter: brightness(0) invert(1) !important;
}

.custom-accordion-white-arrow:focus {
    box-shadow: none !important;
    border-color: transparent !important;
}
.fz-8 {
    font-size: 8px !important;
}

.fz-8-5 {
    font-size: 8.5px !important;
}

.fz-9 {
    font-size: 9px !important;
}

.fz-9-5 {
    font-size: 9.5px !important;
}

.fz-10 {
    font-size: 10px !important;
}

.fz-10-5 {
    font-size: 10.5px !important;
}

.fz-11 {
    font-size: 11px !important;
}

.fz-11-5 {
    font-size: 11.5px !important;
}

.fz-12 {
    font-size: 12px !important;
}

.fz-12-5 {
    font-size: 12.5px !important;
}

.fz-13 {
    font-size: 13px !important;
}

.fz-13-5 {
    font-size: 13.5px !important;
}

.fz-14 {
    font-size: 14px !important;
}

.fz-14-5 {
    font-size: 14.5px !important;
}

.fz-15 {
    font-size: 15px !important;
}

.fz-15-5 {
    font-size: 15.5px !important;
}

.fz-16 {
    font-size: 16px !important;
}

.fz-16-5 {
    font-size: 16.5px !important;
}

.fz-17 {
    font-size: 17px !important;
}

.fz-17-5 {
    font-size: 17.5px !important;
}

.fz-18 {
    font-size: 18px !important;
}

.fz-18-5 {
    font-size: 18.5px !important;
}

.fz-19 {
    font-size: 19px !important;
}

.fz-19-5 {
    font-size: 19.5px !important;
}

.fz-20 {
    font-size: 20px !important;
}

.fz-20-5 {
    font-size: 20.5px !important;
}

.fz-21 {
    font-size: 21px !important;
}

.fz-21-5 {
    font-size: 21.5px !important;
}

.fz-22 {
    font-size: 22px !important;
}

.fz-22-5 {
    font-size: 22.5px !important;
}

.fz-23 {
    font-size: 23px !important;
}

.fz-23-5 {
    font-size: 23.5px !important;
}

.fz-24 {
    font-size: 24px !important;
}

.fz-24-5 {
    font-size: 24.5px !important;
}

.fz-25 {
    font-size: 25px !important;
}

.fz-25-5 {
    font-size: 25.5px !important;
}

.fz-26 {
    font-size: 26px !important;
}

.fz-26-5 {
    font-size: 26.5px !important;
}

.fz-27 {
    font-size: 27px !important;
}

.fz-27-5 {
    font-size: 27.5px !important;
}

.fz-28 {
    font-size: 28px !important;
}

.fz-28-5 {
    font-size: 28.5px !important;
}

.fz-29 {
    font-size: 29px !important;
}

.fz-29-5 {
    font-size: 29.5px !important;
}

.fz-30 {
    font-size: 30px !important;
}

.fz-30-5 {
    font-size: 30.5px !important;
}

.fz-31 {
    font-size: 31px !important;
}

.fz-31-5 {
    font-size: 31.5px !important;
}

.fz-32 {
    font-size: 32px !important;
}

.text-dark-blue {
    color: #1241A0 !important;
}
.text-blue {
    color: #1A56C8 !important;
}
.text-dark {
    color: #334155 !important;
}
.text-dark-light {
    color: #64748B !important;
}

.bg-white {
    background-color: #ffffff;
}

.bg-black {
    background-color: #000000;
}

.bg-transparent {
    background-color: transparent;
}

.bg-gray-light {
    background-color: #F8FAFC;
}
.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-gray-300 {
    background-color: #d1d5db;
}

.bg-gray-400 {
    background-color: #9ca3af;
}

.bg-gray-500 {
    background-color: #6b7280;
}

.bg-gray-600 {
    background-color: #4b5563;
}

.bg-gray-700 {
    background-color: #374151;
}

.bg-gray-800 {
    background-color: #1f2937;
}

.bg-gray-900 {
    background-color: #111827;
}

.bg-red {
    background-color: #ef4444;
}

.bg-red-light {
    background-color: #fca5a5;
}

.bg-red-dark {
    background-color: #b91c1c;
}

.bg-pink {
    background-color: #ec4899;
}

.bg-pink-light {
    background-color: #f9a8d4;
}

.bg-pink-dark {
    background-color: #be185d;
}

.bg-purple {
    background-color: #8b5cf6;
}

.bg-purple-light {
    background-color: #c4b5fd;
}

.bg-purple-dark {
    background-color: #6d28d9;
}

.bg-indigo {
    background-color: #6366f1;
}

.bg-indigo-light {
    background-color: #a5b4fc;
}

.bg-indigo-dark {
    background-color: #4338ca;
}

.bg-blue {
    background-color: #3b82f6;
}

.bg-blue-light {
    background-color: #93c5fd;
}

.bg-blue-dark {
    background-color: #1d4ed8;
}

.bg-cyan {
    background-color: #06b6d4;
}

.bg-cyan-light {
    background-color: #67e8f9;
}

.bg-cyan-dark {
    background-color: #0e7490;
}

.bg-teal {
    background-color: #14b8a6;
}

.bg-teal-light {
    background-color: #5eead4;
}

.bg-teal-dark {
    background-color: #0f766e;
}

.bg-green {
    background-color: #22c55e;
}

.bg-green-light {
    background-color: #86efac;
}

.bg-green-dark {
    background-color: #15803d;
}

.bg-lime {
    background-color: #84cc16;
}

.bg-lime-light {
    background-color: #bef264;
}

.bg-lime-dark {
    background-color: #4d7c0f;
}

.bg-yellow {
    background-color: #eab308;
}

.bg-yellow-light {
    background-color: #fde047;
}

.bg-yellow-dark {
    background-color: #a16207;
}

.bg-amber {
    background-color: #f59e0b;
}

.bg-amber-light {
    background-color: #fcd34d;
}

.bg-amber-dark {
    background-color: #b45309;
}

.bg-orange {
    background-color: #f97316;
}

.bg-orange-light {
    background-color: #fdba74;
}

.bg-orange-dark {
    background-color: #c2410c;
}

.bg-brown {
    background-color: #8b5e3c;
}

.bg-brown-light {
    background-color: #bc8f6f;
}

.bg-brown-dark {
    background-color: #5d4037;
}

.bg-beige {
    background-color: #f5f5dc;
}

.bg-gold {
    background-color: #ffd700;
}

.bg-silver {
    background-color: #c0c0c0;
}

.bg-navy {
    background-color: #001f3f;
}

.bg-olive {
    background-color: #808000;
}

.bg-maroon {
    background-color: #800000;
}

.bg-aqua {
    background-color: #00ffff;
}

.bg-sky {
    background-color: #0ea5e9;
}

.bg-mint {
    background-color: #98ff98;
}

.bg-coral {
    background-color: #ff7f50;
}

.bg-salmon {
    background-color: #fa8072;
}

.bg-lavender {
    background-color: #e6e6fa;
}

.bg-violet {
    background-color: #7c3aed;
}

.bg-crimson {
    background-color: #dc143c;
}

.bg-chocolate {
    background-color: #d2691e;
}

.bg-khaki {
    background-color: #c3b091;
}

.bg-turquoise {
    background-color: #40e0d0;
}

.bg-emerald {
    background-color: #10b981;
}

.bg-rose {
    background-color: #f43f5e;
}

.bg-slate {
    background-color: #64748b;
}

.bg-stone {
    background-color: #78716c;
}

.bg-zinc {
    background-color: #71717a;
}

.bg-neutral {
    background-color: #737373;
}


/*organize*/


.tree-item {
    margin-bottom: 2px;
}

.tree-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #384551;
    padding: 8px 12px;
    border-radius: 10px;
    transition: .2s;
}

    .tree-link:hover {
        background: #f4f6fa;
        color: #384551;
    }

.tree-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tree-title {
    font-weight: 700;
    line-height: 1.2;
}

.tree-subtitle {
    color: #8c97a8;
}

.count {
    color: #8c97a8;
    white-space: nowrap;
}

.company-badge {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.company-home {
    background: #213d6b;
}

.company-blue {
    background: #2956e2;
}

.arrow {
    width: 16px;
    color: #9aa6bd;
    transition: .25s;
    flex-shrink: 0;
}

.tree-toggle[aria-expanded="true"] .arrow {
    transform: rotate(90deg);
}

.dot-blue,
.dot-gray {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-blue {
    background: #2956e2;
}

.dot-gray {
    background: #aab5c8;
}

.active-node {
    background: #eef2f8;
}

/* dynamic level */

.level-1 > .tree-link {
    padding-left: 0px;
}

.level-2 > .tree-link {
    padding-left: 28px;
}

.level-3 > .tree-link {
    padding-left: 56px;
}

.level-4 > .tree-link {
    padding-left: 84px;
}

.level-5 > .tree-link {
    padding-left: 112px;
}

.level-6 > .tree-link {
    padding-left: 140px;
}

/*organize*/

.template-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #d9dee3;
    border-radius: 16px;
    cursor: pointer;
    transition: all .25s ease;
}

    .template-item:hover {
        border-color: #696cff;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(105,108,255,.08);
    }

    .template-item.active {
        background: #f5f8ff;
        border-color: #696cff;
        box-shadow: 0 0 0 3px rgba(105,108,255,.08);
    }

.template-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(105,108,255,.12);
    color: #696cff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .template-icon i {
        font-size: 24px;
    }

.template-content {
    flex: 1;
    min-width: 0;
}

.template-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
}

.template-arrow {
    color: #b5bcc8;
    font-size: 24px;
    display: flex;
    align-items: center;
}

.template-item.active .template-arrow {
    color: #696cff;
}

.swal-doc-success {
    border-radius: 18px !important;
    padding: 20px !important;
}

.doc-success-wrapper {
    text-align: center;
}

.doc-success-icon {
    font-size: 60px;
    color: #22c55e;
    margin-bottom: 10px;
    line-height: 1;
}

.doc-success-title {
    font-size: 24px;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 6px;
}

.doc-success-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 18px;
}

.doc-no-box {
    background: #f8fbff;
    border: 1px solid #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
}

.tox-promotion,
.tox-statusbar__branding,
.tox-statusbar__path
{
    display: none !important;
}

.watermark-container {
    position: relative;
    overflow: hidden;
}

.cancelled-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 5rem; 
    font-weight: bold;
    color: rgba(220, 53, 69, 0.15);
    border: 8px solid rgba(220, 53, 69, 0.15);
    padding: 10px 30px;
    text-transform: uppercase;
    pointer-events: none; 
    z-index: 9999; 
    white-space: nowrap;
    user-select: none;
}


.card {
    border-radius: 12px;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

    .btn-custom i {
        font-size: 28px;
    }

.btn-plan {
    border: 2px solid #9ec5ff;
    background: #eaf3ff;
    color: #1d4ed8;
}

    .btn-plan:hover {
        background: #dcecff;
        color: #1d4ed8;
    }