@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    font-family: Roboto, serif;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    svg {
        width: 18px;
        height: 18px;
    }

    .delete-link svg {
        width: 20px;
        height: 20px;

        path {
            stroke: #d90000;
        }
    }
}

.navbar.shadow-sm {
    box-shadow: none !important;
    border-bottom: 1px solid #eaeaea;
}

.navbar {
    a {
        color: #000;
    }
}

.link-label {
    font-size: 10px;
    font-weight: 500;
    color: gray;
    text-transform: uppercase;
}

.camp-link {
    background-color: #fff;
    padding: 7px;
    border-radius: 4px;

    a {
        font-weight: 500;
    }
}

.add-exp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #b7b7b7;
    color: #838383;
    transition: 0.3s;
}
.add-exp:hover {
    border: 1px solid #000;
    color: #000;
}
.exp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;

    .exp-list-item {
        .exp-header {
            background-color: #f2f7fd;
            border-radius: 4px;
            border: 1px solid #ccdcef;
            border-bottom-right-radius: 0 !important;
            padding: 2px 6px;
            display: flex;
            align-items: center;

            .expand-exp {
                width: 26px;
                display: flex;
                align-items: center;
                justify-content: start;

                svg {
                    width: 20px;
                    height: 20px;

                    path {
                        stroke: #888888;
                    }
                }
            }

            .title {
                flex: 1;
                width: 100%;
                display: flex;
                align-items: center;
                gap: 6px;

                input {
                    flex: 1;
                    border: 0;
                    background-color: #f2f7fd;
                    padding-left: 7px;
                    padding-right: 7px;
                    height: 26px;
                }
                input::placeholder {
                    color: #bacada;
                }
                input:focus {
                    outline: none !important;
                }

            }

            .exp-actions {
                width: 26px;
                display: flex;
                align-items: center;
                justify-content: end;

                .exp-delete {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }

                .exp-delete svg {
                    width: 20px;
                    height: 20px;

                    path {
                        stroke: #ce6868;
                    }
                }
            }
        }

        .exp-body {
            margin-left: 39px;
            border-left: 1px solid #ccdcef;
            border-bottom: 1px solid #ccdcef;
            border-right: 1px solid #ccdcef;

            padding: 6px 10px;

            .add-segment {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                padding: 1px 3px;
                border-radius: 3px;
                border: 1px solid #b7b7b7;
                color: #838383;
                transition: 0.3s;
                text-decoration: none;
                font-size: 11px;
            }

            .add-segment:hover {
                border: 1px solid #000;
                color: #000;
            }

            .exp-segments {
                margin-top: 10px;
                list-style: none;
                padding: 0;
                display: flex;
                flex-direction: column;
                gap: 3px;

                li {
                    display: flex;
                    align-items: center;
                    gap: 10px;

                    .segment-code {
                        flex: 1;
                        border: 0;
                        background-color: #fff;
                        padding-left: 7px;
                        padding-right: 7px;
                        height: 26px;
                    }

                    .segment-percent {
                        flex: 1;
                        border: 0;
                        background-color: #fff;
                        padding-left: 7px;
                        padding-right: 7px;
                        height: 26px;
                    }

                    .segm-delete {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        width: 20px;
                        height: 20px;

                        path {
                            stroke: #ce6868;
                        }
                    }
                }
            }
        }
    }
}
.hidden-elem {
    display: none !important;
}
#popcon {
    position: absolute !important;
}
.small-preview {
    width: 90px;
    border-radius: 6px;
}
.template-selector {
    overflow: hidden !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Выравнивание элементов по началу ряда */
    row-gap: 10px;
    column-gap: 10px;
}
.template-item {
    height: 600px;
    width: calc(50% - 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    .title {
        background-color: #000;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
}
.template-selector a {
    width: 100% !important; /* Для 3 в ряд на мобильных устройствах */
    overflow: hidden !important;
    flex: 1;
    height: 365px !important;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center center;
}

@media (max-width: 768px) {
    .template-selector a {
        width: calc(50% - 10px); /* Для 6 в ряд на ПК */
    }

    .template-item {
        height: 300px;
    }
}
.preview-block {
    max-width: 80%;
    margin: 0 auto;
    img {
        width: 100%;
        border-radius: 10px;
    }
}
.selected-file {
    max-width: 80%;
    margin: 0 auto;
    img {
        width: 100%;
        border-radius: 10px;
    }
}
.hidden-elem {
    display: none !important;
}
.controls {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.selected-file {
    margin-top: 10px;
}
.preview-block-toggled {
    position: relative;
    /*height: 270px;*/

    img {
        /*position: absolute;*/
        /*top: 0;*/
        /*left: 0;*/
        max-height: 100%;
    }

    .toggler {
        /*position: absolute;*/
        right: 0;
        top: 0;
        color: #fff;
        background-color: #000;
        text-decoration: none;
        font-size: 13px;
        padding: 2px 7px;
        border-radius: 4px;
    }
}
.templ-img {
    position: relative;
    overflow: hidden !important;

    .title {
        position: absolute;
        z-index: 100;
        left: 0;
        top: 0;
        right: 0;
        text-decoration: none;
        color: #fff;
        background-color: rgba(0, 0, 0, 0.59);
        padding: 3px 8px;
        display: inline-block;

        text-align: center;
    }
}
.container {
    input[type=text], input[type=number], input[type=password], textarea, select {
        background-color: #fff;
    }
    input[type=text]:focus, input[type=number]:focus, input[type=password]:focus, textarea:focus, select:focus {
        background-color: #fff;
    }
}
.pos-input {
    width: 100px;
    text-align: center;
    border: 1px solid silver;
    border-radius: 5px;
}
.full-width-label {
    width: 550px !important;
}
.config-row {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    .param-title {
        width: 230px;
    }
    .param-value {
        width: 100px;

        input, textarea {
            border: 1px solid #dcdcdc;
            text-align: center;
            width: 100%;
        }
        textarea {
            text-align: left;
        }
        span {
            opacity: 0.4;
        }
    }
}
.label-upload-text {
    text-align: center;
}
.lora-upload-form {
    padding: 12px;
    background-color: #ddf2ff;
    border-radius: 6px;
    margin-bottom: 10px;

}
.disabled-style {
    opacity: 0.4;
}
.gen-status {
    span {
        font-size: 13px;
        font-weight: normal;
        display: inline-flex;
        align-items: center;
        gap: 7px;
    }
}
.gender {
    font-size: 11px;
    padding: 3px;
    background-color: #e3e3e3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 3px;
}
.gender.f {
    background-color: #f6d6ff;
}
.gender.m {
    background-color: #d2e0ff;
}
.photo-block {
    display: flex;
    flex-direction: column;
    column-gap: 10px;
    row-gap: 10px;

    .open-photo {


        max-width: 100%;

        img {
            width: 100%;
            border-radius: 7px !important;
        }
    }
}
.female-count, .male-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.female-count {
    color: #e55a72;
    font-weight: 500;
}
.male-count {
    color: #5a81e5;
    font-weight: 500;
}
.hover-opacity td {
    transition: 0.2s;
}
.hover-opacity:hover  td {
    opacity: 1;
}
.to-payment-form {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    input {
        width: 60px;
        text-align: center;
        border: 1px solid #d5d5d5;
        border-radius: 3px;
    }
}
.fields-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 50%;

    .fields-row {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 5px;

        input {
            border: 1px solid #cbcbcb;
            border-radius: 3px;
            flex: 1;
        }


        .delete-field-link {
            svg {
                width: 20px;
            }
            width: 20px;
        }
    }
}
