html {
    overflow-y: scroll;
}

.content-wrapper{
    display: flex;
    flex:1;
}

.main-content {
    flex: 1;
    transition: margin 0.3s ease;
}

.top-bg {
    position: relative;
}

    .top-bg:after {
        inset: 0;
        content: '';
        z-index: 0;
        background: #1C1A1A;
        display: block;
        position: absolute;
        opacity: 0.5;
    }

.top-bg-img {
    background: url(../img/photo/business2.jpg) no-repeat 50% 50%;
    background-size: cover;
    height: calc(100vh - 80px);
    width: 100%;
}

.top-bg-info {
    position: absolute;
    height: 100%;
    width: 100%;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.my-landing {
    margin: 144px 0px;
}

/* text style */
.text-style._green {
    color: var(--xpt-color-green-200);
}

.text-style._white {
    color: var(--xpt-color-white);
}

.text-style._grey {
    color: var(--xpt-color-grey-100);
}

.text-style._orange {
    color: var(--xpt-color-orange);
}

/* colors */
.xpt-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.xpt-colors-item {
    height: 150px;
    width: 150px;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* table */
.xpt-table {
    font-size: 16px;
    background: transparent;
    border-collapse: collapse;
}

.xpt-table._main{
    min-width: 100%;
}

    .xpt-table > thead > tr > th {
        padding: 20px 10px;
        border-bottom: 1px solid var(--xpt-color-line);
        color: #959798;
        font-size: 14px;
    }

    .xpt-table._main > thead > tr > th {
        background: #fff;
    }

    .xpt-table._main > thead > tr > th {
        font-size: 16px;
        font-weight: 500;
    }

    .xpt-table > tbody > tr > td {
        padding: 20px 10px;
        border-bottom: 1px solid var(--xpt-color-line);
        background: var(--xpt-color-white);
        /* color:#575C60; */
    }

    .xpt-table._main > tbody > tr > td {
        vertical-align: top;
    }

    .xpt-table._thin > thead > tr > th{
        font-weight: 500;
    }

    .xpt-table._thin > thead > tr > th,
    .xpt-table._thin > tbody > tr > td {
        padding: 10px;
        text-align: center;
        font-size: 16px;
    }

    .xpt-table._thin-sm > thead > tr > th,
    .xpt-table._thin-sm > tbody > tr > td {
        padding: 10px;
        text-align: center;
        font-size: 16px;
    }

    .xpt-table > tbody > tr:hover > td {
        /* background:var(--xpt-color-green-75) !important; */
    }

    .xpt-table > tbody > tr > td {
        color: var(--xpt-color-black);
    }

        .xpt-table > tbody > tr > td .fw-bold {
            color: var(--xpt-color-black);
        }

        .xpt-table > tbody > tr > td:first-child {
            border-left: 1px solid var(--xpt-color-line);
        }

        .xpt-table > tbody > tr > td:last-child {
            border-right: 1px solid var(--xpt-color-line);
        }

    .xpt-table > tbody > tr:nth-child(odd) > td {
        background: var(--xpt-color-not-white);
    }

.xpt-price tbody tr td:first-child {
    padding-right:40px;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* grid */

.xpt-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 22px;
}

.xpt-grid-item {
    background: var(--xpt-color-white);
    border: 1px solid var(--xpt-color-line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 30px;
    height: 100%;
    padding: 30px;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
}

    .xpt-grid-item.active,
    .xpt-grid-item.selected,
    .xpt-grid-item:hover {
        border-color: var(--xpt-color-green-200);
    }

.xpt-grid-item-bold {
    background: var(--xpt-color-white);
    color: var(--xpt-color-green);
    border: 2px solid var(--xpt-color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 30px;
    height: 65px;
    font-size: 18px;
    padding: 0px;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    font-weight: 500;
}

    .xpt-grid-item-bold.disabled {
        color: #959798;
        border-color: #959798;
        opacity: 1;
    }
    .xpt-grid-item-bold.active{
        border-width: 4px;
    }

    .xpt-grid-item-bold.active,
    .xpt-grid-item-bold.selected,
    .xpt-grid-item-bold:hover {
        color: var(--xpt-color-light-green);
        border-color: var(--xpt-color-light-green);
    }

.xpt-grid .xpt-grid-label {
    top: 0;
    position: absolute;
    background: var(--xpt-color-green-200);
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    font-size: 16px;
    line-height: 1;
    color: #fff;
    font-weight: 600;
    padding: 10px 30px;
}

.xpt-empty {
    position: relative;
    height: 100%;
    border-radius: 6px;
    background: var(--xpt-color-white);
    border: 1px solid var(--xpt-color-line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* gap:24px; */
}

    .xpt-empty:before {
        height: 60px;
        width: 60px;
        content: '';
        display: block;
        background: url(../img/select/empty.svg) no-repeat 50% 50% var(--xpt-color-green-50);
        background-size: 16px auto;
        border-radius: 100%;
    }

/* block */
.xpt-block {
    background: var(--xpt-color-white);
    border: 1px solid var(--xpt-color-line);
    border-radius: 6px;
}

/* dropzone */
.xpt-dropzone {
    border: 1px dashed #ADBABA;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 10px;
    min-height:330px
}

/* icons */
.xpt-icons {
    flex:0 0 18px;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

    .xpt-icons._small {
        flex:0 0 16px;
        height: 16px;
        width: 16px;
    }

    .xpt-icons._big {
        flex:0 0 24px;
        height: 24px;
        width: 24px;
    }

    .xpt-icons._vbig {
        flex:0 0 32px;
        height: 32px;
        width: 32px;
    }

    .xpt-icons._dots {
        cursor: pointer;
        background-image: url(../img/icon/dots.svg);
    }

        .xpt-icons._dots:hover,
        .xpt-icons._dots.active {
            background-image: url(../img/icon/dots_active.svg);
        }

    .xpt-icons._edit {
        background-image: url(../img/icon/edit.svg);
    }

    .xpt-icons._copy{
        background-image: url(../img/icon/copy.svg);
    }

    .xpt-icons._pdf {
        background-image: url(../img/icon/pdf.svg);
    }

    .xpt-icons._eye {
        background-image: url(../img/icon/eye.svg);
    }

    .xpt-icons._pan {
        background-image: url(../img/icon/pan.svg);
    }

    .xpt-icons._add {
        background-image: url(../img/icon/add.svg);
    }

    .xpt-icons._link {
        background-image: url(../img/icon/link.svg);
    }

    .xpt-icons._email {
        background-image: url(../img/icon/email.svg);
    }

    .xpt-icons._edit {
        background-image: url(../img/icon/edit.svg);
    }

    .xpt-icons._delete {
        background-image: url(../img/icon/delete.svg);
    }

    .xpt-icons._settings {
        background-image: url(../img/icon/settings.svg);
    }

    .xpt-icons._close {
        background-image: url('../img/modal/close.svg');
    }

    .xpt-icons._accept {
        background-image: url('../img/icon/accept.svg');
    }

    .xpt-icons._logout {
        background-image: url(../img/icon/logout.svg);
    }

    .xpt-icons._call {
        background-image: url(../img/icon/call.svg);
    }

    .xpt-icons._sms {
        background-image: url(../img/icon/sms.svg);
    }

    .xpt-icons._send {
        background-image: url(../img/icon/send.svg);
    }

    .xpt-icons._li {
        background-image: url(../img/icon/li.svg);
    }
    .xpt-icons._copy {
        background-image: url(../img/icon/copy.svg);
    }

/* badge */
.xpt-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
}

    .xpt-badge._green {
        color: var(--xpt-color-white);
        background: var(--xpt-color-green);
    }

    .xpt-badge._orange {
        color: var(--xpt-color-black);
        background: var(--xpt-color-orange);
    }

    .xpt-badge._violet {
        color: var(--xpt-color-white);
        background: var(--xpt-color-violet);
    }

    .xpt-badge._blue {
        color: var(--xpt-color-white);
        background: var(--xpt-color-blue);
    }

/* step */
.xpt-step {
    display: flex;
    gap: 0px;
    align-items: flex-start;
    justify-content: center;
}
.xpt-step-item.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}
    .xpt-step .xpt-step-item {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 0px;
    }

        .xpt-step .xpt-step-item span {
            color: #696969;
            font-size: 14px;
            display: block;
            margin-top: 15px;
        }

    .xpt-step .xpt-step-line {
        width: 100px;
        height: 1px;
        display: block;
        background: #696969;
        margin-top: 15px;
    }

    .xpt-step div.active {
        color: var(--xpt-color-green-100);
    }

.xpt-step-ico {
    height: 32px;
    width: 32px;
    background: url(../img/step/step_0.svg) no-repeat 50% 50%;
    background-size: contain;
}

    .xpt-step-ico._pass {
        background-image: url(../img/step/step_2.svg);
    }

    .xpt-step-ico._now {
        background-image: url(../img/step/step_1.svg);
    }

/* collapse */
.xpt-collapse-header {
    background: var(--xpt-color-white);
    border: 1px solid var(--xpt-color-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 10px 20px;
    padding-left: 50px;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
}

    .xpt-collapse-header:before {
        position: absolute;
        left: 15px;
        content: '';
        height: 12px;
        width: 20px;
        background: url(../img/select/arrow.svg) no-repeat;
        transform: rotate(180deg);
        background-size: contain;
    }

    .xpt-collapse-header.collapsed:before {
        transform: rotate(0deg);
    }

.xpt-collapse-block {
    border: 1px solid var(--xpt-color-line);
    overflow: hidden;
    border-radius: 6px;
    min-width: max-content;
    width: 100%;
}

    .xpt-collapse-block .xpt-table {
        margin: -1px;
        width: calc(100% + 2px) !important;
    }
/* menu */
.xpt-menu {
    padding: 15px 0px;
}

.xpt-menu-item {
    padding: 10px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

    .xpt-menu-item:hover,
    .xpt-menu-item.active {
        background: var(--xpt-color-green-50);
    }

/* for mobile */
@media (min-width: 992px) {
    .w-lg-auto {
        width: auto !important;
    }

    .position-md-absolute {
        position: absolute !important;
    }
}

@media (max-width: 992px) {
    .my-landing {
        margin: 60px 0px;
    }

    .landing-icon {
        height: 60px;
    }

    .landing-size {
        max-width: 850px;
    }

    /* menu */
    #menuClose {
        top: 0;
        right: 0;
        height: 80px;
        width: 80px;
        background: url(../../img/menu/icon.png) no-repeat 50% 50%;
        background-size: 26px;
    }

    #menuBlock {
        background: #000;
        z-index: 100;
        top: 79px;
        left: 26px;
        right: 0;
        bottom: 0;
        position: fixed;
        display: none;
    }

    #menu-btn {
        padding: 0 48px;
    }

    #menuBlock > div {
        flex-direction: column;
    }

    /* text size */
    .h2 {
        font-size: 45px !important;
    }

        .h2._small {
            font-size: 42px !important;
        }

    .h3 {
        font-size: 16px !important;
    }

    .text-xl {
        font-size: 18px !important;
    }

    .text-md {
        font-size: 16px !important;
    }

    .text-md-bold {
        font-size: 20px !important;
    }

    .text-md._line {
        font-size: 20px;
        line-height: 1.8;
    }

    /* btn */
    .btn.btn-primary,
    .btn.btn-arrow,
    .btn.btn-outline-primary {
        font-size: 16px;
        padding: 20px 40px;
    }
}

/* landing menu */
#landingMenu.active #menuBlock {
    display: block;
}

#landingMenu.active #menuClose {
    background-image: url(../../img/menu/close.png);
}

.container {
    max-width: 1200px !important;
    /* max-width: 100% !important; */
    padding: 0 24px !important;
}


.vs--disabled .vs__selected {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border: none !important;
    border-radius: unset !important;
    color: #333;
    line-height: 1.4;
    margin: 0 !important;
    padding: 0 .25em;
}

.vs--disabled * {
    box-sizing: border-box;
    /*border: none !important;*/
    border-radius: unset !important;
    margin: 0 !important;
    background: none !important;
    background-color: none !important;
    background: #f9f9f9 !important;
}

.vs__actions button:disabled {
    display: none;
}

.vs--disabled svg,
.vs--disabled .vs__actions {
    display: none;
}

/* menu */
.xpt-menu {
    padding: 15px 0px;
}

.xpt-menu-item {
    padding: 10px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

    .xpt-menu-item:hover,
    .xpt-menu-item.active {
        background: var(--xpt-color-green-50);
    }

.disabled-form {
    pointer-events: none; /* ³������ �� ��䳿 */
    opacity: 0.5;
}

.disabled-form-admin {
    pointer-events: none;
}

.cursor-pointer {
    cursor: pointer;
}

/* ������� (������� �����) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* ����� �������� */
.loading {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* �������� ��������/����� */
.fade-in-out {
    animation: fade 1.5s infinite;
}

@keyframes fade {
    0%, 100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

[v-cloak] {
    display: none;
}

.invalid-feedback.is-invalid {
    display: block;
}

.vs__dropdown-toggle {
    background: #FFF !important;
    height: 55px !important;
    color: #dee2e6 !important;
}

.v-xpt-select {
    background: #FFF !important;
    color: #dee2e6 !important;
}

.mx-icon-calendar {
    display: none;
}

input[name=date].mx-input {
    font-size: 18px;
    height: 50px;
    font-size: 18px;
    border-width: 1px;
    border-radius: 6px;
    border-color: var(--xpt-color-line);
    color: var(--xpt-color-black);
    padding: 13px 16px;
}

input.vs__search {
    font-size: 18px;
    height: 50px;
    font-size: 18px;
    border-width: 1px;
    border-radius: 6px;
    color: var(--xpt-color-black) !important;
    padding: 13px 16px;
    cursor: pointer;
}

    input[name=date].mx-input::-webkit-input-placeholder, input.vs__search::-webkit-input-placeholder {
        color: var(--bs-border-color);
    }

.vs__dropdown-toggle {
    border: solid 1px #e9eded !important;
}

.vs__open-indicator {
    fill: var(--xpt-color-green-100) !important;
}

.v-opt-group {
    font-weight: bold;
    color: #C5C5C5;
    font-size: 16px;
    font-weight: 600;
    border-top: 1px solid var(--xpt-color-line);
    border-bottom: 1px solid var(--xpt-color-line);
}

.xpt-invalid-feedback {
    display: inline-block;
}

.is-invalid-select {
    border: solid 1px var(--xpt-color-red);
    border-width: 1px;
    border-radius: 6px;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(.375em + .1875rem) center !important;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem) !important;
}

.is-invalid-msg {
    display: block;
    color: var(--xpt-color-red);
}

.vs__dropdown-toggle {
    border-right: none !important;
}

.visible-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hidden-section {
    opacity: 0;
    transform: translateY(20px); /* ��������� ������� ���� */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.recent-quote-row {
    /* ���� ������ ���� (����) */
    transition: background-color 0.3s ease; /* �'��� ���� ���� ��� ��������� */
}

    .recent-quote-row:hover {
        cursor: pointer !important;
        background-color: #f0f0f0; /* �����-���� ��� ��� ��������� */
        text-decoration: underline; /* ϳ���������� ������ ��� ��������� */
    }



.invalid-select {
    border-color: red;
    border: solid 1px red;
    border-radius: 7px;
}

.invalid-dt {
    border-color: red;
    border: solid 1px red;
    border-radius: 7px;
}



/* spiner */

.loading-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    /* Initial opacity */
    transform: scale(1);
    /* Initial scale */
    /*animation: scaleOpacity 1s ease-in-out forwards;*/
    /* Apply animation */
}

@keyframes scaleOpacity {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.8);
        opacity: 0;
        display: none;
        /* Hide overlay after animation */
    }
}

.loading-spinner {
    border: 9px solid #f3f3f3;
    border-top: 6px solid green;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.xpt-content {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.vs--disabled .vs__selected {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border: none !important;
    border-radius: unset !important;
    color: #333;
    line-height: 1.4;
    margin: 0 !important;
    padding: 0 .25em;
}

.vs--disabled * {
    box-sizing: border-box;
    /*border: none !important;*/
    border-radius: unset !important;
    margin: 0 !important;
    background: none !important;
    background-color: none !important;
    background: #f9f9f9 !important;
}

.vs__actions button:disabled {
    display: none;
}

.vs--disabled svg,
.vs--disabled .vs__actions {
    display: none;
}

.xpt-collapse-block {
    border: 1px solid var(--xpt-color-line);
    overflow: hidden;
    border-radius: 6px;
    min-width: max-content;
    width: 100%;
}

    .xpt-collapse-block .xpt-table {
        margin: -1px;
        width: calc(100% + 2px) !important;
    }

/* menu */
.xpt-menu {
    padding: 15px 0px;
}

.xpt-menu-item {
    padding: 10px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

    .xpt-menu-item:hover,
    .xpt-menu-item.active {
        background: var(--xpt-color-green-50);
    }

.disabled-form {
    pointer-events: none; /* ³������ �� ��䳿 */
    opacity: 0.5;
}

.disabled-form-admin {
    pointer-events: none;
}

.cursor-pointer {
    cursor: pointer;
}

/* ������� (������� �����) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* ����� �������� */
.loading {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* �������� ��������/����� */
.fade-in-out {
    animation: fade 1.5s infinite;
}

@keyframes fade {
    0%, 100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

[v-cloak] {
    display: none;
}

.invalid-feedback.is-invalid {
    display: block;
}

.vs__dropdown-toggle {
    background: #FFF !important;
    height: 55px !important;
    color: #dee2e6 !important;
}

.v-xpt-select {
    background: #FFF !important;
    color: #dee2e6 !important;
}

.mx-icon-calendar {
    display: none;
}

input[name=date].mx-input {
    font-size: 18px;
    height: 50px;
    font-size: 18px;
    border-width: 1px;
    border-radius: 6px;
    border-color: var(--xpt-color-line);
    color: var(--xpt-color-black);
    padding: 13px 16px;
}

input.vs__search {
    font-size: 18px;
    height: 50px;
    font-size: 18px;
    border-width: 1px;
    border-radius: 6px;
    color: var(--xpt-color-black) !important;
    padding: 13px 16px;
    cursor: pointer;
}

    input[name=date].mx-input::-webkit-input-placeholder, input.vs__search::-webkit-input-placeholder {
        color: var(--bs-border-color);
    }

.vs__dropdown-toggle {
    border: solid 1px #e9eded !important;
}

.vs__open-indicator {
    fill: var(--xpt-color-green-100) !important;
}

.v-opt-group {
    font-weight: bold;
    color: #C5C5C5;
    font-size: 16px;
    font-weight: 600;
    border-top: 1px solid var(--xpt-color-line);
    border-bottom: 1px solid var(--xpt-color-line);
}

.xpt-invalid-feedback {
    display: inline-block;
}

.is-invalid-select {
    border: solid 1px var(--xpt-color-red);
    border-width: 1px;
    border-radius: 6px;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(.375em + .1875rem) center !important;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem) !important;
}

.is-invalid-msg {
    display: block;
    color: var(--xpt-color-red);
}

.vs__dropdown-toggle {
    border-right: none !important;
}

.visible-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hidden-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.recent-quote-row {
    transition: background-color 0.3s ease;
}

    .recent-quote-row:hover {
        cursor: pointer !important;
        background-color: #f0f0f0;
        text-decoration: underline;
    }

.invalid-select {
    border-color: red;
    border: solid 1px red;
    border-radius: 7px;
}

.invalid-dt {
    border-color: red;
    border: solid 1px red;
    border-radius: 7px;
}



/* spiner */

.loading-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    /* Initial opacity */
    transform: scale(1);
    /* Initial scale */
    /*animation: scaleOpacity 1s ease-in-out forwards;*/
    /* Apply animation */
}

@keyframes scaleOpacity {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.8);
        opacity: 0;
        display: none;
        /* Hide overlay after animation */
    }
}

.loading-spinner {
    border: 9px solid #f3f3f3;
    border-top: 6px solid green;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.xpt-content {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.vs--disabled .vs__selected {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border: none !important;
    border-radius: unset !important;
    color: #333;
    line-height: 1.4;
    margin: 0 !important;
    padding: 0 .25em;
}

.vs--disabled * {
    box-sizing: border-box;
    /*border: none !important;*/
    border-radius: unset !important;
    margin: 0 !important;
    background: none !important;
    background-color: none !important;
    background: #f9f9f9 !important;
}

.vs__actions button:disabled {
    display: none;
}

.vs--disabled svg,
.vs--disabled .vs__actions {
    display: none;
}

.btn-copy {
    background: #E9EDED;
    width: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

.btn-copy i {
    color: #479868;
    font-size: 20px; 
}

.drop-diagonal .dropdown-menu {
    top: auto !important;
    bottom: 100% !important;
    left: auto !important;
    right: 0 !important;
    transform: translateY(-0.25rem);
    z-index: 1050;
}

@keyframes slideInUpLeft {
    from {
        opacity: 0;
        transform: translateY(10px) translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateY(-0.25rem) translateX(0);
    }
}

.custom-toast {
    position: fixed;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-size: 16px;
    z-index: 9999;
    text-align: center;
    max-width: 70%;
    min-width: 400px;
    white-space: pre-wrap;
}

/* Toast Types */
.custom-toast.error {
    background-color: rgba(251, 231, 231, 1);
    color: rgba(219, 53, 70, 1);
}

.custom-toast.success {
    background-color: rgba(242, 248, 246, 1);
    color: rgba(71, 152, 104, 1);
}

.custom-toast.warning {
    background-color: rgba(248, 243, 223, 1);
    color: rgba(178, 135, 9, 1);
}
.toast-fade-enter-active,
.toast-fade-leave-active {
    transition: opacity 0.5s;
}

.toast-fade-enter,
.toast-fade-leave-to {
    opacity: 0;
}

.upload-file-wrapper {
    height: 100%;
}

.ql-snow .ql-editor .ql-code-block-container {
    background-color: transparent !important;
    color: inherit !important;
    font-family: inherit !important;
    white-space: pre-wrap; /* allows wrapping instead of scroll */
    padding: 0;
    border: none;
}
/* Collapsed menu */
.menu-collapsed {
    width: 80px; /* only icons */
}

.menu-collapsed .xpt-menu-item span {
    display: none; /* hide text */
}

/* Optional: smooth width transition */
.xpt-menu {
    transition: width 0.2s ease;
}
/* Make sidebar a positioned parent */
.sidebar-wrapper {
    position: relative;
    background-color: #f8f9fa; /* optional, just for visual clarity */
    min-height: 100vh; /* make sure it takes full height */
    transition: all 0.3s ease;
}

/* Toggle button anchored to sidebar */
.toggle-btn {
    position: absolute;
    top: 8px;
    right: 2px;
    z-index: 100;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-btn:hover {
    background: #f5f5f5;
}

/* Sidebar Styles */
.sidebar {
    width: 60px;
    background: var(--xpt-color-dark-bg);
    transition: width 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar:hover {
    width: 200px;
}

.sidebar-nav {
    display: flex;
    gap: 32px;
    flex-direction: column;
    height: 100%;
}

.sidebar-item {
    display: flex;
    align-items: center;
    color: var(--xpt-color-white);
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.sidebar-text {
    margin-left: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.sidebar:hover .sidebar-text {
    opacity: 1;
}

body:has(.sidebar:hover) .main-content {
    margin-left: 0;
}

/* Static Sidebar Styles */
.static-sidebar {
    width: 200px;
    background: var(--xpt-color-green);
    border:1px solid #004E3B;
    flex-shrink: 0;
    min-height: 100vh;
}

.static-sidebar-content {
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
}

.static-sidebar-header {
    background: var(--xpt-color-dark-bg);
    flex-shrink: 0;
    color: var(--xpt-color-white);
    padding: 30px 20px;
}

.static-sidebar-nav {
    display: flex;
    flex-direction: column;
}

.static-sidebar-item {
    display: flex;
    align-items: center;
    color: var(--xpt-color-white);
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    padding: 10px 20px;
}

.static-sidebar-item.active {
    background-color: var(--xpt-color-light-green);
}

.static-sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-primary, [type="button"] {
    color: #FFF !important;
}

.nav-tabs .nav-link.active {
    border-color: var(--bs-nav-tabs-link-active-border-color);
    background: #348455 !important;
    color: #FFF !important;
} 