/*********************************************/
/* css by by stlye LungYa hehe               */
/*********************************************/
@import url("../inc/root-color.css");

:root {
    --top-menu-height: 28px;
    --header-height: 71px;
    --sidebar-width: 280px;
    --sidebar-close-width: 0px;
}

body * {
    font-family: Anuphan, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
    font-size: 14px;
    /*overflow-y: scroll;*/
}

textarea::placeholder,
input::placeholder {
    color: #ccc !important;
}

.app-title {
    font-size: 18px;
    position: relative;
    line-height: 18px;
    color: var(--bs-primary);
}

.top-menu-canvas {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--top-menu-height);
    border-bottom: 1px solid #ccc;
    padding-top: 2px;
    background-color: var(--bs-body-bg);
    z-index: 301;

    .nav-item:not(:has(li)) {
        display: none;
    }

    ul {
        list-style-type: none;
        padding-left: 0px;
        font-size: 12px;
    }

    ul ul li {
        margin: 0;
    }

    ul li a {
        color: #111;
        border-radius: 15px;
        padding: 3px 5px;
    }

    ul li a i {
        color: var(--bs-primary);
    }

    ul li a:hover {
        background-color: #dedede;
        color: #111;
    }

    .dropdown-submenu {
        position: relative;
    }

    .dropdown-submenu .dropdown-menu,
    .dropdown-submenu .dropdown-menu.show {
        margin-top: -9px;
        margin-left: 1px;
    }

    .dropdown-submenu>.dropdown-menu {
        display: none;
        position: absolute;
        left: calc(100% - 2px);
        top: 0;
        z-index: 1000;
    }

    .dropdown-submenu:hover>.dropdown-menu {
        display: block;
    }

    .dropdown-menu[data-bs-popper] {
        margin-top: 0;
    }

    ul.navbar-nav>li>a.dropdown-toggle::after {
        display: none;
    }

    ul ul li a {
        border-radius: 0;
        position: relative;
        padding: 5px 5px 5px 15px;
    }

    ul ul li a.dropdown-toggle:active,
    ul ul li a.dropdown-toggle:focus {
        color: #111;
    }

    ul ul {
        min-width: 200px;
    }

    ul ul .dropdown-toggle {
        cursor: default;
        padding-right: 15px;

    }

    .dropdown-toggle::after {
        position: absolute;
        right: 4px;
        top: 50%;
        transform: translateY(-50%) rotate(-90deg);
    }
}

.header-canvas {
    position: fixed;
    top: 28px;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bs-body-bg);
    border-bottom: 1px solid #d8e3e7;
    padding: 0;
    z-index: 299;
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;

    ul {
        margin: 0;
    }
}

.user-canvas {
    background-color: var(--bs-primary);
    width: calc(var(--sidebar-width) + 11px);
    height: var(--header-height);
    color: #fff;
    padding-left: 20px;
    overflow: hidden;
    position: relative;

    >div {
        height: var(--header-height);
        display: flex;
        justify-content: flex-start;
        align-items: center;
        position: relative;
        z-index: 2;
    }

    img.avatar {
        object-fit: cover;
        object-position: 0px 0px;
        height: 40px;
        width: 40px;
        border-radius: 50%;
        margin-right: 12px;
    }

    .circle {
        border: 30px solid var(--bs-primary-bg-subtle);
        border-radius: 50%;
        width: 350px;
        height: 350px;
        position: absolute;
        bottom: -10px;
        left: 50%;
        opacity: 0.2;
        display: block;
        top: -215px;
        z-index: 1;
    }
}

.sidebar-canvas {
    width: var(--sidebar-width);
    height: 100vh;
    background-color: #303641;
    position: fixed;
    left: 0;
    top: calc(var(--top-menu-height) + var(--header-height));
    font-size: 14px;
    z-index: 300;
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;

    .nav-tree {
        padding-left: 1.5rem;
        display: none;
    }

    .nav-tree.show {
        display: block;
    }

    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #8d97ad;
    }

    .toggle-icon {
        margin-left: 10px;
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #ccc;
        transition: transform 0.2s;
    }

    .submenu-toggle.collapsed .toggle-icon {
        transform: rotate(-180deg);
    }

    .nav-link:focus,
    .nav-link:hover {
        color: #fff;
    }

    .nav-link:focus .toggle-icon,
    .nav-link:hover .toggle-icon {
        border-top: 5px solid #fff;
    }
}

.nav-btn {
    margin: 10px 30px 0 0;
    cursor: pointer;

    span {
        display: block;
        width: 22px;
        height: 2px;
        background: #b3aaaa;
        margin: 4px 0;
        border-radius: 15px;
        box-shadow: 0 0 0 4px rgba(99, 96, 96, 0.03);
        -webkit-transition: all 0.3s ease 0s;
        transition: all 0.3s ease 0s;
    }

    span:first-child {
        -webkit-transform: rotate(45deg) translate(5px, 5px);
        transform: rotate(45deg) translate(5px, 5px);
    }

    span:nth-child(2) {
        opacity: 0;
    }

    span:last-child {
        -webkit-transform: rotate(-45deg) translate(3px, -3px);
        transform: rotate(-45deg) translate(3px, -3px);
    }
}

.container-canvas.sidebar-collapsed {
    .nav-btn span {
        transform: none;
        opacity: 1;
    }

    .sidebar-canvas {
        left: calc(var(--sidebar-close-width) - var(--sidebar-width));
    }

    .main-canvas {
        margin-left: 0;
    }
}

.main-canvas {
    margin-left: var(--sidebar-width);
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    background-color: var(--bs-main-bg);
}

.main-content-canvas {
    padding-top: calc(var(--top-menu-height) + var(--header-height)) !important;
    min-height: calc(100vh - var(--top-menu-height));
    width: 100%;
}

.footer-canvas {
    background-color: #fff;
}

.notification-canvas {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
    z-index: 1;
    margin-right: 15px !important;

    li {
        display: inline-block;
        margin-left: 20px;
        cursor: pointer;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    li i {
        font-size: 26px;
        color: #bdbcbc;
        vertical-align: middle;
        text-shadow: 0 0 8px rgba(0, 0, 0, 0.12);
        -webkit-transition: color 0.3s ease 0s;
        transition: color 0.3s ease 0s;
    }

    li i:hover {
        color: var(--bs-primary);
    }
}

.border-bottom-1 {
    border: 0 !important;
    border-bottom: 1px solid var(--bs-primary-border-subtle) !important;
    border-radius: 0;
    padding-bottom: 0;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .25rem var(--bs-primary-border-subtle);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-check-input:focus {
    border-color: var(--bs-primary-border-subtle);
    box-shadow: 0 0 0 .25rem var(--bs-primary-border-subtle);
}

.form-switch .form-check-input:focus {
    background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22-4%20-4%208%208%22%3E%3Ccircle%20r%3D%223%22%20fill%3D%22%23d3d3d3%22%2F%3E%3C%2Fsvg%3E') !important;
}

.form-check-input[type=checkbox]:indeterminate {
    background-color: rgb(var(--bs-primary-rgb), 0.5) !important;
    border-color: var(--bs-primary-border-subtle);
    background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%223%22%20d%3D%22m6%2010%203%203%206-6%22%2F%3E%3C%2Fsvg%3E');
}

.form-select:focus {
    border-color: var(--bs-primary);
    outline: 0;
    box-shadow: 0 0 0 .25rem var(--bs-primary-border-subtle);
}

::selection {
    background-color: var(--bs-primary);
    color: white;
}

a {
    text-decoration: none;
    cursor: pointer;
}

.active .page-link {
    border-color: var(--bs-primary);
    background-color: var(--bs-primary);
}

.page-link:focus {
    box-shadow: 0 0 0 3px var(--bs-primary-border-subtle);
}

.user-canvas img[src*="data:image"] {
    object-position: center !important;
}

.offcanvas-header {
    border-bottom: 1px solid #dee2e6;
}

body.offcanvas-open {
    overflow: auto !important;
}

.menu-footer {
    position: fixed;
    bottom: 0px;
    background-color: #fff;
    z-index: 9999;
    width: 100%;

    i.bi {
        font-size: 1.5rem;
    }

    i.bi+span {
        font-size: 0.6rem;
        display: block;
    }

    .icon-alert {
        position: absolute;
        padding-left: 15px;
        display: inline-block;
    }

    .badge {
        position: absolute;
        opacity: 0.9;
        padding: 1px;
        min-width: 15px;
        margin-right: 10px;
    }
}

.page-title-canvas {
    padding: 0 30px;
    background: var(--bs-body-bg);
    position: relative;

    .breadcrumbs-canvas {
        padding: 10px 0px;
    }

    ul.breadcrumbs {
        margin-top: 4px;
    }

    &:before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 4px;
        height: 36px;
        background: var(--bs-primary);
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
    }
}

.breadcrumbs li {
    display: inline-block;

    a,
    span {
        display: block;
        font-size: 14px;
        font-weight: 400;
        color: var(--bs-primary);
        letter-spacing: 0;
        margin-right: 16px;
        position: relative;
    }

    a:before {
        content: '/';
        color: #768387;
        position: absolute;
        right: -13px;
        top: 0;
    }

    span {
        color: #768387 !important;
    }
}

.page-title-canvas .like {
    position: absolute;
    margin-top: 5px;
    margin-left: 19px;
    font-size: 1.2rem;
    cursor: pointer;
}

.card-header {
    overflow: hidden;
}

div.dt-processing>div:last-child>div {
    background: var(--bs-primary);
}

.icon-alert {
    span:empty {
        min-width: 19px;
        min-height: 19px;
        display: inline-block;
        border-radius: 50% ;
    }
}

.icon-menu-canvas {
    .icon {
        position: relative;
    }
    .icon i {
        display: block;
        border-radius: 50%;
        box-shadow: 2px 2px 15px #ccc;
        padding: 8px;
        width: 85px;
        height: 85px;
        overflow: hidden;
        margin: 0 auto;
        margin-bottom: 5px;
    }

    .icon img {
        display: block;
        border-radius: 50%;
        box-shadow: 2px 2px 15px #ccc;
        width: 85px;
        height: 85px;
        overflow: hidden;
        margin: 0 auto;
        margin-bottom: 5px;
        object-fit: cover;
        object-position: 0px 0px;
    }

    .icon:hover {
        color: var(--bs-primary-hover);
    }

    .icon i.bi,
    .icon i.fa,
    .icon i.fas,
    .icon i.far {
        font-size: 3.0rem;
    }
    .icon i.fa,
    .icon i.fas,
    .icon i.far {
        padding-top: 18px;
    }
    .icon-alert {
        position: absolute;
        left: 14px;
    }
}

.link-content {
    cursor: pointer;
}

.edocument-wrapper {
    padding: 7px 25px 5px 25px;
    /*height: 45px;*/
    /*display: flex;*/
    justify-content: flex-start;
    align-items: center;
    position: relative;

    .edocument-user {
        display: inline-block;
        width: 50px;
    }

    .edocument-user img.avatar {
        height: 35px;
        width: 35px;
        border-radius: 50%;
        margin-right: 12px;
        object-fit: cover;
        object-position: 0px 0px;
        box-shadow: 0 0 5px #ccc;
    }

    .avatar:hover {
        width: 100px !important;
        height: 100px !important;
        position: absolute;
        z-index: 1;
        top: -14px;
        left: -8px;
    }
}

.modal-header {
    border-bottom: 0;
}

.modal-header .btn-close i.bi {
    display: none;
}

.bootstrap-select {

    .dropdown-toggle:focus,
    .dropdown-toggle.show,
    >select.mobile-device:focus+.dropdown-toggle {
        outline: none !important;
        outline: none !important;
        outline-offset: 0px !important;
        box-shadow: 0 0 0 .25rem var(--bs-primary-border-subtle);
        border: 1px solid var(--bs-primary) !important;
    }

    .dropdown-menu li a span.text,
    .dropdown-toggle .filter-option-inner-inner {
        font-size: 14px;
    }

    .btn {
        border: var(--bs-border-width) solid var(--bs-border-color);
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }

    .btn.show {
        background-color: #fff;
        color: var(--bs-body-color);
    }

    .btn:hover {
        color: var(--bs-body-color);
        background-color: initial;
    }

    .btn-light {
        --bs-btn-bg: none;
        --bs-btn-border-color: none;
        --bs-btn-hover-color: none;
        --bs-btn-hover-bg: none;
        --bs-btn-color: var(--bs-body-color);

    }
}

.form-floating {

    >label:has(+.form-control-plaintext),
    >label:has(+.form-control:focus),
    >label:has(+.form-control:not(:placeholder-shown)),
    >label:has(+.form-select) {
        transform: scale(.85) translateY(-.5rem) translateX(.15rem);
    }

    .bootstrap-select {
        width: 100%;
        height: 100%;

        .btn {
            border: 0;
        }

        .btn-light {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            padding-top: 26px;
        }

        .dropdown-toggle::after {
            display: none;
        }

        .btn-check:checked+.btn,
        .btn.active,
        .btn.show,
        .btn:first-child:active,
        :not(.btn-check)+.btn:active {
            background-color: #ffffff00;
        }
    }

    input::placeholder {
        color: #ffffff00 !important;
    }

    >label {
        color: #ccc;
    }

}

.date-between.date-between-wrapper {
    display: inline-flex;
    position: relative;

    input[type="text"],
    input[type="search"] {
        width: 130px !important;
    }

    .btn-on-off-date {
        border-radius: 0.25rem !important;
        font-size: 1.5rem;
        padding: 0.5rem;
        width: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;

        &:after {
            content: '+';
        }
    }

    &.open .btn-on-off-date:after {
        content: '-';
    }

    &:not(.open)> :nth-child(3) {
        display: none !important;
    }

    *:has(.date-clear) {
        position: relative;
    }

    .date-clear {
        display: flex;
        position: absolute;
        right: 0.4rem;
        bottom: 5px;
        z-index: 12;
        font-size: 1.3rem;
        cursor: pointer;
    }

    input:placeholder-shown+.date-clear {
        display: none;
    }

    input[type="search"]::-webkit-search-cancel-button {
        position: absolute;
        right: 1px;
    }
}

.datepicker {
    font-size: 14px;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);

    table tr {

        td.active,
        td.active:hover,
        td.active.disabled,
        td.active.disabled:hover,
        td span.active,
        td span.active:hover,
        td span.active.disabled,
        td span.active.disabled:hover {
            background-image: -moz-linear-gradient(top, var(--bs-link-color), var(--bs-primary));
            background-image: -ms-linear-gradient(top, var(--bs-link-color), var(--bs-primary));
            background-image: -webkit-gradient(linear, 0 0, 0 100%, from(var(--bs-link-color)), to(var(--bs-primary)));
            background-image: -webkit-linear-gradient(top, var(--bs-link-color), var(--bs-primary));
        }
    }
}

.avatar-wrapper {
    background-image: url('../img/avatar.png');
    background-size: cover;
    background-position: center;
}

*:has(>.searchpicker) {
    position: relative;

    &:has(input)::after {
        content: "\f002";
        font-family: FontAwesome;
        font-size: 16px;
        color: rgba(170, 170, 170, .3);
        position: absolute;
        right: 10px;
        bottom: -7px;
        transform: translateY(-50%);
        pointer-events: none;
        z-index: 1;
    }

    &.form-floating::after {
        top: 50%;
        bottom: auto;
    }

    &:has(input:hover)::after,
    &:has(input:focus)::after {
        color: var(--bs-primary);
        opacity: 0.5;
        transition: 0.5s;
    }

    .fetch-progress {
        position: absolute;
        border: 4px solid #f3f3f3;
        border-radius: 50%;
        border-top: 4px solid #ccc;
        width: 24px;
        height: 24px;
        -webkit-animation: spin 1s linear infinite;
        animation: spin 1s linear infinite;
        opacity: 0;
        transition: opacity 1s;
        top: 2px;
        right: 9px;
    }

    .fetch-progress.open {
        opacity: 1;
    }

    .result-search {
        position: absolute;
        z-index: 3;
        width: 100%;
    }

    .id {
        font-size: 0.8rem;
        opacity: 0.8;
    }

    .id+* {
        padding: 0;
        margin-top: -5px;
    }

    .status {
        opacity: 0.4;
    }

    .avatar-wrapper {
        height: 40px;
        width: 40px;
        border-radius: 50%;
        margin-right: 12px;
        background-image: url('../img/avatar.png');
        background-size: cover;
        background-position: center;
    }

    .avatar {
        object-fit: cover;
        object-position: 0px 0px;
        height: 40px;
        width: 40px;
        border-radius: 50%;
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.dropdown-menu.list {
    display: block;
}

@media (max-width: 767.20px) {

    .container-canvas {
        overflow: hidden;
    }

    .header-canvas {
        border-bottom: 0;
        position: relative;
    }

    .user-canvas {
        width: 200%;
        height: 300px;
        border-radius: 50%;
        margin-top: -230px;
        margin-left: -50%;
        overflow: hidden;

        .circle {
            border: 40px solid var(--bs-primary-bg-subtle);
            top: 20px;
        }

        >div {
            position: absolute;
            bottom: 15px;
            left: calc((50% - (50vw)) + 15px);
        }

        img.avatar {
            height: 48px;
            width: 48px;
            border: 2px solid #fff;
        }
    }

    .footer-canvas,
    .page-title-canvas {
        display: none;
    }

    .card {
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        margin-bottom: 1rem !important;
    }

    .main-canvas {
        margin-bottom: 50px;
    }

    .main-content-canvas {
        padding-top: var(--top-menu-height) !important;
        left: 0;
        position: absolute;
    }

    .sidebar-canvas {
        top: 0;
    }

    .icon-menu-canvas {
        .icon i {
            width: 58px;
            height: 58px;
            padding: 2px;
        }

        .icon i.bi,
        .icon i.fa,
        .icon i.fas,
        .icon i.far {
            font-size: 2.2rem;
        }

        .icon i.fa,
        .icon i.fas,
        .icon i.far {
            padding-top: 10px;
        }

        .icon,
        .icon span {
            font-size: 0.7rem;
            margin-bottom: 0px;
            /*display: inline-block;*/
        }
    }

    .edocument-wrapper {
        font-size: 0.7rem;
        line-height: 15px;
        padding: 7px 10px 5px 10px;
        /*padding-bottom: 30px;*/

        span {
            font-size: 0.7rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }


        /*
        .edocument-date {
            max-width: 50px;
        }

        .edocument-sender {
            max-width: 100px;
        }

        .edocument-topic {
            max-width: 250px;
        }
        .edocument-user {
            position: relative;
        }
        */

    }   
    .card-body.edocument-wrapper {
        padding-bottom: 10px !important;
    }

    .modal {
        .modal-dialog {
            width: 100vw;
            max-width: none;
            height: 100vh;
            margin: 0;
        }

        .modal-content {
            height: 100vh;
            border: 0;
            border-radius: 0;
        }
        .modal-body {
            overflow: auto;
        }
    }

    .modal .modal-header {
        position: relative;
        display: block;
        text-align: center;
        color: #fff;
        background-color: var(--bs-primary);
        border-radius: 0;

        .btn-close {
            position: absolute;
            left: -3px;
            top: 15px;
            transform: translateY(-50%);
            color: #fff;
            opacity: 0.8;
            background: none !important;
        }

        .modal-title {
            display: inline-block;
            margin: 0 auto;
        }

        .btn-close {
            --bs-btn-close-bg: none;
        }

        .btn-close i.bi {
            display: block;
            font-size: 3rem;
            opacity: 1;
            margin-top: -4px;
        }
        .modal-title:empty+.btn-close i.bi {
            margin-top: -8px;
        }

    }

    .modal .modal-fullscreen {
        .btn-close {
            background: none !important;
        }
    }

    body.load .header-canvas {
        z-index: 99999;
    }

    body.load .main-canvas {
        opacity: 0;
    }

    body.load .hello {
        background-color: var(--bs-primary);
        position: fixed;
    }

    .hello {
        position: fixed;
        width: 100vw;
        height: 100vh;
        top: 0px;
        left: 0px;
        background-color: none;
        z-index: 10;
        font-size: 1em;
        padding-top: 18px;
        padding-left: 75px;
        transition: all 1s;
        transition-timing-function: ease;
    }

    .hello.load {
        font-size: 2em;
        padding-top: 50vh;
        padding-left: 15px;
        height: 100vh;
    }

    .card-body {
        padding-bottom: 48px !important;
    }

    .modal-body {
        padding-bottom: 58px !important;
        background-color: #fff;
    }

}
/* end @media (max-width: 767.20px)*/

a.is-cfm {
    color: #ff8200 !important;
}

a.is-mis3 {
    color: #1e8101 !important;
}

a.is-mis2 {
    color: #134d01 !important;
}

input[readonly],
input[text][disabled],
input[number][disabled] {
    background-color: #fafbfc !important;
}

.alert-dark {
    color: #fff;
    background-color: #000;
}

@media print {

    .modal,
    .modal-backdrop {
        display: none !important;
    }
}

.progresses {
    display: flex;
    align-items: center;

    .steps {
        display: flex;
        color: #fff;
        font-size: 14px;
        width: 22px;
        height: 22px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .line {
        width: 50px;
        height: 4px;
    }

    .bg-disabled {
        background-color: #ccc !important;
    }
}

.dt-container table {
    /*font-size: 14px;*/
}

.form-select:disabled,
.form-control:disabled {
    background-color: #fafbfc;
}

.invalid-feedback:has(+.bs-invalid:focus) {
    display: block;
    position: absolute;
    top: 38px;
    left: -3px;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    box-shadow: 4px 4px 6px #ccc;
    width: 200px;
    color: #555;
    z-index: 1;
}

.invalid-feedback:has(+.bs-invalid:focus)>i {
    color: #FF8C00;
    font-size: 1.4rem;
    margin-right: 5px;
}

.invalid-feedback:has(+.bs-invalid:focus)::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 10px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    z-index: 1;
}

label:has(+[required])::after,
[required]+label::after,
label:has(+.bootstrap-select>.selectpicker[required])::after {
    content: '*';
    color: red;
}

.modal .modal-fullscreen {
    .modal-header {
        background-color: var(--bs-primary);
        color: #fff;
    }

    .btn-close {
        background: url('../img/close-icon.svg') center / 1em auto no-repeat;
        color: #fff;
        opacity: 0.8;
    }

    .btn-close:hover {
        opacity: 1;
    }
}

.avatar-popup {
    width: 200px !important;
    height: 150px;
    overflow: hidden;
    top: 200px;
}

.avatar-popup .modal-header {
    display: none !important;
}

.header-canvas .icon-alert {
    margin-left: 13px;
    top: -9px;
    position: absolute;
}

.modal:not(:has(>.modal-dialog.modal-fullscreen)) {
    overflow-y: scroll;
}

.dropdown-toggle1::before {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
    position: absolute;
    right: 0.75em;
    top: 0.7em;
    color: #fff;
}

.noselect {
    user-select: none; /* ป้องกันการ select */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
}

/************* print report ***************/
.p-page, .l-page {
	padding: 10mm 5mm 5mm 10mm;
	/*line-height: normal;*/
    margin: auto;
    box-shadow: 3px 3px 8px #817e7ea3;
}
.p-page td, .l-page td, .p-page th, .l-page th {
	padding: 6px 10px;
	/*line-height: normal;*/
}
.p-page {
	width: 210mm;
	/*min-height: 297mm;*/
}
.l-page {
	width: 297mm;
	/*min-height: 205mm;*/
}
.p-page, .l-page {
	margin-bottom: 3mm;
	background: #fff;
}
.p-page table caption, .l-page table caption {
	caption-side:top;
	/*color:#000;*/
}
.p-page .table-bordered th, .p-page .table-bordered td,
.l-page .table-bordered th, .l-page .table-bordered td {
	border: 1px solid #999 !important;
	/*border-bottom: 0px solid red !important;*/
}
@page {
  size: A4;
  margin: 0px;
}

.page {
    background-color: #fff;
    page-break-after: always;
}
.page:last-of-type {
    page-break-after: avoid;
}

@media print {
	.p-page, .l-page {
		zoom: 124%;
		margin: 0;
		border: initial;
		border-radius: initial;
		/*width: initial;*/
		/*min-height: initial;*/
		box-shadow: initial;
		background: initial;
		page-break-after: always;
	}

    .p-page:last-of-type, .l-page:last-of-type {
        page-break-after: avoid;
    }

	.modal-backdrop.show {
    	opacity: 0;
	}
	.offset-area {
	  opacity: 0 !important;
	}
}
/************* /print report ***************/