/* custom style */
@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/PublicSans-SemiBold.woff2') format('woff2'),
        url('/fonts/PublicSans-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/PublicSans-Regular.woff2') format('woff2'),
        url('/fonts/PublicSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/PublicSans-Bold.woff2') format('woff2'),
        url('/fonts/PublicSans-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('/fonts/PublicSans-Medium.woff2') format('woff2'),
        url('/fonts/PublicSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

html * { 
    font-family: sans-serif;
}

body {
    box-sizing: border-box;
    background-color: #fff;
    background: #fff !important;
}

main {
    display: flex;
}

.content-wrapper {
    max-width: 1660px;
    margin-left: 260px;
}

main.options {
    gap: 24px;
}

h1 {
    font-size: 24px;
    line-height: 38px;
    padding: 24px 24px 24px 0;
    font-weight: 600;
    margin: 0;
}

.calc__h1 {
    padding-left: 24px;
}

/* Menu Variables */
:root {
    --menu-width: 260px;
    --menu-width-mobile: 88px;
    --primary-color: #696CFF;
    --text-color: rgba(58, 53, 65, 0.87);
    --border-color: rgba(58, 53, 65, 0.12);
    --hover-bg: rgba(105, 108, 255, 0.08);
    --shadow-menu: 0 0.375rem 1rem 0 rgba(58, 53, 65, 0.12);
}

/* Base Menu Styles */
.menu {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--menu-width);
    background: #fff;
    box-shadow: var(--shadow-menu);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* Navigation Container */
.nav-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.nav-container::-webkit-scrollbar {
    width: 4px;
}

.nav-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

/* Logo Styles */
.nav-logo {
    display: block;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.logo {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navigation Links */
.nav__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.nav__link:hover,
.nav__link.active {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.nav__link svg {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

/* User Block */
.user-block {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: #fff;
}

.user-info {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: rgba(58, 53, 65, 0.04);
    border-radius: 8px;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Logout Button */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--primary-color);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

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

.logout-btn svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

/* Responsive Design */
@media screen and (max-width: 1439px) {
    .menu {
        width: var(--menu-width-mobile);
    }

    .nav__link {
        justify-content: center;
        padding: 0.75rem 0.5rem;
    }

    .nav__link span {
        display: none;
    }

    .user-info {
        display: none;
    }

    .logout-btn {
        justify-content: center;
    }

    .logout-btn span {
        display: none;
    }

    .content-wrapper {
        margin-left: 90px;
    }
}

.calculate {
    width: 100%;
}
.calculate__cont {
    box-shadow: 0 0.375rem 1rem 0 rgba(58, 53, 65, 0.12);
    margin: 0 24px;
    border-radius: 6px;
    background: white;
    max-width: 100%;
}
.calculate__cont__title {
    font-size: 18px;
    line-height: 28px;
    color: rgba(34, 48, 62, 0.9);
    margin-bottom: 24px;
}
.calculate__cont__filter {
    padding: 24px;
}
.calculate__cont__filter__size {
    display: flex;
    gap: 20px;
}
.calculate__cont__filter__size .form-floating {
    width: 376px;
    height: 48px;
}
@media screen and (max-width: 1439px) {
    .calculate__cont__filter__size .form-floating {
        width: 259px;
    }
}
.calculate__cont__filter__check {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-left: 10px;
}
.calculate__cont__filter__check .form-check-inline {
    margin: 0;
}
.calculate__cont__filter__img {
    margin: 0;
    gap: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 24px;
}
.calculate__cont__filter__img.glass {
    grid-template-columns: repeat(6, 1fr);
}
.calculate__cont__filter__img .check__img {
    padding: 0;
    width: 100%;
}
.calculate__cont__filter__img .check__img.small {
    max-width: 162px;
}
.calculate__cont__filter__img .check__img.small .custom-option-icon {
    height: 162px;
}
.calculate__cont__filter__img .check__img.small img {
    height: 158px;
}
.calculate__cont__filter__img .check__img label {
    padding: 0 !important;
    display: flex;
}
.calculate__cont__filter__img .check__img img {
    display: block;
    padding: 0;
    width: 100%;
    height: calc(144px + 65 * ((100vw - 1280px) / 640));
}
@media screen and (min-width: 1920px) {
    .calculate__cont__filter__img .check__img img {
        height: 209px;
    }
}
.calculate__cont__filter__img .check__img__text {
    margin: 0;
 
}
.lofts-polotno .check__img__text {
    color: #384551;
    font-size: 13px;
    line-height: 15px;
}
.lofts-glass .check__img__text {
    color: #384551;
    font-size: 13px;
    line-height: 15px;
}
.calculate__cont__filter__img .custom-option-icon {
    margin: 0;
    border-width: 2px;
}
.calculate__cont__filter__img .custom-option-icon + .check__img__text {
    max-width: 175px;
}
.calculate__cont__filter__img .custom-option-icon.checked {
    border: 2px solid #696CFF;
}
.calculate__cont__filter__img .custom-option-icon.checked + .check__img__text {
    color: #696CFF;
}
.calculate__cont__filter__img .custom-option-icon.checked + .check__img__text .span-name {
    color: #696CFF;
}
.calculate__cont__filter__img .custom-option-icon input {
    display: none;
}
.calculate__cont__filter__color {
    display: flex;
    gap: 8px;
}
.calculate__cont__filter__color input {
    display: none;
}
.calculate__cont__filter__color .color-box {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 6px;
}
.calculate__cont__filter__color .custom-option, .calculate__cont__filter__color .custom-option:hover {
    margin: 0 !important;
}
.calculate__cont__filter__color .custom-option-content {
    padding: 0;
    width: fit-content;
}
.calculate__cont__filter__color .check__img {
    max-width: fit-content;
    width: 48px;
    height: 48px;
    padding: 0;
}
.calculate__cont__filter__color .custom-option-icon {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.calculate__cont__filter__color .custom-option-icon.checked {
    border: 2px solid #696CFF;
}
.calculate__cont__filter__color .another-dpd {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    pointer-events: none;
}
.calculate__cont__filter__color .pickr {
    opacity: 0;
}
.calculate__cont__hr {
    width: 100%;
    height: 1px;
    width: rgba(46, 38, 61, 0.12);
    margin: 0;
}
.calculate__cont__raschet {
    margin: 24px;
}
.calculate__cont__raschet__cont {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.calculate__cont__raschet .table-responsive {
    margin-bottom: 24px;
}
.calculate__cont__raschet .table-responsive thead {
    background-color: #F6F7FB;
}
.calculate__cont__raschet .full-count {
    text-align: right;
    font-size: 18px;
    line-height: 28px;
    padding: 0 24px;
    margin-bottom: 4px;
}
.calculate__cont__raschet .full-count span {
    color: black;
}
.calculate__cont__raschet__buttons {
    padding: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 20px;
}
.calculate__cont__raschet__buttons .btn-secondary {
    width: 48px;
    height: 48px;
}
.calculate__cont__raschet__buttons .btn-primary {
    background-color: #696CFF;
    color: white;
    text-transform: capitalize;
    font-weight: normal;
    font-size: 17px;
}
.check__img__text {
    margin: 0;
}
@media screen and (max-width: 1439px) {
    .canvas {
        gap: 24px;
    }
}
.canvas-filter .form-floating {
    margin-top: 16px;
    width: calc(100% - 16px);
}
.canvas-flex {
    display: flex;
    gap: 48px;
    justify-content: space-between;
}
.canvas-block {
    padding: 0;
    width: 100%;
}
.canvas-block .custom-option-icon {
    height: auto;
    cursor: pointer;
}
.canvas-cont-door img {
    height: auto;
    width: 100%;
    padding: 12px;
}
.canvas-lofts {
    max-width: calc(344px + 79 * ((100vw - 1280px) / 640));
    width: 100%;
    height: fit-content;
}

.canvas-door {
    gap: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.lofts-polotno {
    display: grid;
    gap: 16px 8px;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 24px;
}

.lofts-glass {
    display: grid;
    gap: 16px 8px;
    grid-template-columns: repeat(4, 1fr);
}

.canvas-lofts .custom-option {
    border: 2px solid #e7e7e8;
}

.canvas-lofts .custom-option:hover {
    border-color: #b4b2b7;
}

.canvas-lofts .custom-option.checked {
    border: 2px solid #9055fd;
}

.canvas-title {
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
    font-family: sans-serif;
    color: rgba(34, 48, 62, 0.9);
}

.canvas-lofts-block {
    max-width: fit-content;
    padding: 0;
    height: fit-content;
    width: 100%;
}
.canvas-lofts-block .custom-option-icon {
    width: fit-content;
    height: auto;
    margin: 0;
}
.canvas-lofts-cont-door {
    cursor: pointer;
}
.canvas-lofts-cont-glass {
    cursor: pointer;
}
.canvas-lofts-cont-glass img, .canvas-lofts-cont-door img {
    width: 100%;
    height: auto;
}
.canvas-under {
    max-width: 600px;
}
.estimate {
    gap: 24px;
}
.estimate__container {
    margin: 0 24px 0 24px;
}
.estimate__raschet {
    width: 100%;
    margin: 0;
    box-shadow: 0 0.375rem 1rem 0 rgba(58, 53, 65, 0.12);
}
.estimate__cont {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 100%;
}
.estimate__select .form-control {
    width: 100%;
}
.estimate__table {
    padding-bottom: 24px;
    margin: 0;
}
.estimate__table.settings__table {
    padding-bottom: 0;
}
.estimate__table th {
    font-size: 13px;
    font-weight: 400;
    padding: 0 0 0 24px;
    height: 56px;
    vertical-align: middle;
    text-align: left;
}
.table-responsive.estimate__table td {
    text-align: left;
    min-height: 52px;
    vertical-align: middle;
    padding: 14px 14px 14px 24px;
}
.options__cont {
    width: 100%;
    margin-right: 24px;
}
.options th {
    background-color: #F6F7FB;
}
.options .calculate__cont__raschet__buttons {
    margin: 0;
    padding-top: 0;
}
.options__tabs {
    border-bottom: 1px solid black;
}
.options__tabs.active {
    color: #696CFF !important;
}
.options .card-body {
    padding-left: 0;
    padding-right: 0;
}
.options .tab-slider {
    background-color: #696CFF;
}
.layout-page {
    padding: 0 !important;
}
.row {
    display: grid;
    margin: 0;
}
.row.calculate__cont__filter__color {
    display: flex !important;
}
.row > * {
    padding: 0;
}
.page-item .page-link {
    width: 38px;
    height: 38px;
    background: rgba(34, 48, 62, 0.06);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pagination {
    margin: 0;
}
.estimate__pags {
    padding: 0 24px 24px;
    display: flex;
    justify-content: flex-end;
}
.calculate__cont .badge {
    border-radius: 24px;
}
.сalculate__switch {
    margin: 24px 0 0 8px;
}
.calculate__cont__title {
    font-weight: 600;
    font-family: sans-serif;
}
.calculate__cont__title__span {
    font-weight: 400;
}
.check__img__text {
    font-family: sans-serif;
    padding-top: 8px;
}
.canvas-filter .canvas-checkbox {
    margin-left: 32px;
}

.table-responsive {
    overflow-x: unset;
}

.table-responsive tr {
    border-bottom: 1px solid rgba(46, 38, 61, 0.12);
}
.table-responsive table {
    font-family: sans-serif;
}
.table-responsive table th {
    height: 56px;
    padding: 0 0 0 24px;
    vertical-align: middle;
}
.table-responsive td {
    color: #22303E;
    min-height: 54px;
    vertical-align: middle;
    padding: 16px 16px 16px 24px;
}
.show__cont {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 24px;
    padding-bottom: 24px;
}
.options__cont .calculate__cont__title {
    margin: 0;
}
.options__cont .btn-secondary {
    background: #8592A3;
    width: 176px;
}
.options__cont .btn-secondary.plus {
    background: #8592A3;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.options__cont .calculate__cont__title {
    text-align: left;
}
.options__link {
    font-size: 24px;
    line-height: 38px;
    font-weight: 500;
    color: rgba(34, 48, 62, 0.9);
    padding: 24px 0;
    display: block;
}
.options__link:hover {
    color: rgba(34, 48, 62, 0.9);
}
.canvas-filter .btn-primary {
    margin-top: 16px;
    width: calc(100% - 16px);
    height: 48px;
}
.modal-glass {
    max-width: 600px;
}
.modal-glass .modal-header {
    padding: 24px 24px 0;
}
.modal-glass .modal-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    font-family: sans-serif;
    color: rgba(34, 48, 62, 0.9);
}
.modal-glass .calculate__cont__filter__img {
    padding: 24px;
}
.card-header .btn-primary {
    margin: 0 0 0 auto;
}
.btn-primary {
    background: #696CFF;
}
.btn.plus-manager {
    width: 48px;
    padding: 12px;
}
.canvas {
    flex-grow: 1;
    gap: 8px;
    display: block;
    width: 100%;
}
.canvas-warning {
    max-width: 600px;
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding: 12px 16px;
}
.canvas-warning.alert-warning {
    margin-bottom: 24px;
}
.canvas-warning svg {
    flex-shrink: 0;
}
.canvas-warning-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}
.canvas-warning-title span {
    font-size: 15px;
    line-height: 22px;
    font-weight: 400;
}

.drag-target {
    display: contents;
}
.options__cont .btn.salon-add {
    width: 184px;
    margin: 0 0 24px 24px;
    font-size: 17px;
    font-weight: 500;
    padding: 11px 24px;
    display: block !important;
    font-family: sans-serif;
    text-transform: math-auto;
}
.options__cont .calculate__cont__title {
    font-weight: 500;
}
.options .calculate__cont__title {
    font-weight: 500;
    margin: 0;
}
.calculate__cont__raschet .table-responsive.estimate__table {
    margin: 0;
}
.button__calc-sett {
    width: fit-content;
    font-size: 17px;
    line-height: 26px;
    text-transform: capitalize;
    padding: 0px 24px;
    height: 48px;
    margin: 0 0 24px 24px;
}

/* validate */
.error {
    border: 2px solid red;
}

.error:hover:not([disabled]):not([focus]) {
    border: 2px solid red;
}

.error ~ .invalid-feedback {
    display: block;
    padding-left: 12px;
    margin-top: 0;
}

.add-size-body, .add-cheme-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dropzone-txt {
    font-size: 17px;
    line-height: 26px;
    font-weight: 500;
    color: #696CFF;
}

.light-style .dropzone {
    border: 2px solid #e7e7e8;
}

.dz-started.dropzone {
    padding: 0;
    border: 0;
}

.dz-started .dz-preview {
    margin: 0;
    width: 100%;
    height: 100%;
}

.dz-image {
    display: flex;
    justify-content: center;
}

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.8);
}

.list-item-edit-number {
    cursor: pointer;
    color: #0d6efd !important;
}

.Vue-Toastification__progress-bar {
    position: fixed !important;
    transform-origin: right !important;
}

@keyframes scale-x-frames {
    0% {
        transform: scaleX(0) !important;
    }
    100% {
        transform: scaleX(1) !important;
    }
}

.footer__development-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    margin: 0 auto;
}

.footer__development-container--main {
    justify-content: flex-end;
    margin-right: 24px;
    margin-bottom: 24px;
    margin-top: 16px;
}

.footer__development {
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.5;
    color: #9ca3af;
    margin: 0;
    text-align: center;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.footer__ampersand {
    color: #9ca3af;
}

.footer__development.text-primary a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer__development.text-primary a:hover {
    color: #4b5563;
    text-decoration: underline;
}