
#user_file_upload {

    & {
        margin-top: 2rem;
    }

    .form-group {
        margin-bottom: 0;
    }

    label {
        font-size: clamp(14px, calc(18 / 1920 * 100vw), 18px);
        font-weight: 600;
    }

    .sample-form .form-check-label {
        margin-bottom: 0;
        padding-left: 8px;
    }

    .sample-form .sample-input {
        border-radius: 0;
        border: 2px solid #18a7df; /* modrá linka jako na originálu */
        height: clamp(30px, calc(48 / 1920 * 100vw), 48px);
        padding: .25rem .65rem;
        box-shadow: none;
        font-size: clamp(14px, calc(16 / 1920 * 100vw), 16px);
    }

    .sample-form .sample-input:focus {
        border-color: #18a7df;
        box-shadow: none; /* žádný bootstrap glow */
        outline: 0;
    }

    .form-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(1, auto);
        gap: clamp(1px, calc(30 / 1920 * 100vw), 30px) clamp(20px, calc(46 / 1920 * 100vw), 46px);
    }

    @media (min-width: 430px) {
        .form-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 576px) {
        .form-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (min-width: 992px) {
        .form-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    .form-grid-submit {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: clamp(1px, calc(40 / 1920 * 100vw), 40px) clamp(30px, calc(62 / 1920 * 100vw), 62px);
        direction: rtl;
    }

    @media (min-width: 430px) {
        .form-grid-submit {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 576px) {
        .form-grid-submit {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (min-width: 992px) {
        .form-grid-submit {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    .nav-container {
        padding-top: clamp(22px, calc(62 / 1920 * 100vw), 62px);
    }


    .file-upload input[type="file"] {
        display: none;
    }

    .file-upload span {
        background: #1c1c1c;
        color: white;
        padding: 6px 20px;
        /* border-radius:6px; */
        cursor: pointer;
        display: inline-block;
        font-weight: 600;
        width: 100%;
        text-align: center;
    }

    .file-upload span:hover {
        background: #7ea515;
    }

    .add_new_logo_submit {
        background: black;
        color: white;
        border: none;
        box-shadow: none;
        padding: 5px 20px;
        font-size: 16px;
    }

}

.add_new_logo_wrapper {
    & {
        margin-top: 15px;
        text-align: right;
    }

    .add_new_logo {
        background: transparent;
        color: black;
        box-shadow: none;
        padding: 5px 20px;
        font-size: 16px;
        border: 1px solid black;
    }
}

.custom-logo-upload-collapse {
    margin-top: 24px;
}

.custom-logo-modal-open {
    overflow: hidden;
}

.custom-logo-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
}

.custom-logo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.custom-logo-modal-dialog {
    position: relative;
    background: #fff;
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
}

.custom-logo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #e7edf2;
}

.custom-logo-modal-header h3 {
    margin: 0;
    color: #1c1c1c;
}

.custom-logo-modal-close {
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: #1c1c1c;
    padding: 4px;
}

.custom-logo-modal-body {
    overflow-y: auto;
    padding: 24px;
}

.custom-logo-upload-dialog {
    width: min(760px, calc(100vw - 32px));
}

.custom-logo-upload-body {
    padding-top: 8px;
}

.custom-logo-modal-empty {
    color: #666;
    margin: 0;
}



#custom-logo-select {

    .custom-logo-subtitle {
        color: #666;
        margin-bottom: clamp(24px, calc(46 / 1920 * 100vw), 46px);
    }

    .custom-logo-sides {
        display: grid;
        gap: clamp(24px, calc(70 / 1920 * 100vw), 70px);
        grid-template-columns: 1fr;
    }

    @media (min-width: 992px) {
        .custom-logo-sides {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .custom-logo-side + .custom-logo-side {
            border-left: 1px solid #eef2f5;
            padding-left: clamp(24px, calc(70 / 1920 * 100vw), 70px);
        }
    }

    .custom-logo-side h3 {
        color: var(--g-color-blue);
        font-size: clamp(16px, calc(24 / 1920 * 100vw), 24px);
        font-weight: 700;
        margin-bottom: 12px;
    }

    .custom-logo-dropzone {
        align-items: center;
        background: #eefdff;
        border: 1px solid #cceff5;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: clamp(150px, calc(238 / 1920 * 100vw), 238px);
        padding: 24px;
        text-align: center;
    }

    .custom-logo-dropzone-icon {
        color: var(--g-color-blue);
        font-size: clamp(30px, calc(46 / 1920 * 100vw), 46px);
        margin-bottom: 16px;
    }

    .custom-logo-dropzone-title {
        color: #1c1c1c;
        font-size: clamp(16px, calc(24 / 1920 * 100vw), 24px);
        font-weight: 600;
        margin-bottom: 20px;
    }

    .custom-logo-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .custom-logo-upload-button {
        background: #069aa5;
        border-color: #069aa5;
        color: #fff;
    }

    .custom-logo-selected {
        color: #000000;
        font-size: 20px;
        margin-top: 12px;
        min-height: 18px;
    }

    .custom-logo-empty-tile {
        align-items: center;
        border: 1px dashed #d5dde5;
        cursor: pointer;
        display: flex;
        font-size: 14px;
        gap: 8px;
        justify-content: center;
        min-height: 48px;
        padding: 8px;
    }

    .custom-logo-settings {
        margin-top: 25px;
        display: flex;
        gap: 30px;
    }


    .custom-logo-card-header {
        display: flex;
        justify-content: space-between;
        padding: 5px 10px;
    }

    .custom-logo-card-body {
        display: flex;
        justify-content: space-between;
        padding: 20px 25px;
    }

    .custom-logo-gallery input {
        display: none;
    }

    .custom-logo-gallery {
        display: grid;
        gap: 12px;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        margin-top: 24px;
    }

    .custom-logo-gallery[hidden] {
        display: none;
    }

    .custom-logo-gallery-modal {
        margin-top: 0;
    }

    .logo-select-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .selected-logo-preview-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        width: clamp(40px, calc(80 / 1920 * 100vw), 80px);
        height: clamp(40px, calc(80 / 1920 * 100vw), 80px);
        object-fit: cover;
        padding: clamp(1px, calc(5 / 1920 * 100vw), 5px) clamp(1px, calc(10 / 1920 * 100vw), 10px);
    }

    .selected-logo-preview {
        display: block;
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: cover;
    }

    .selected-logo-preview-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100px;
        height: 100px;
        font-size: 42px;
    }

    .custom-logo-tile {
        align-items: center;
        border: 1px solid #e3e8ee;
        border-radius: 4px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        font-size: clamp(12px, calc(19 / 1920 * 100vw), 16px);
        gap: 8px;
        justify-content: center;
        margin-bottom: 4px;
        min-height: 96px;
        padding: 12px 8px;
        text-align: center;
        word-break: break-word;
    }

    .custom-logo-tile:has(input:checked),
    .custom-logo-empty-tile:has(input:checked) {
        border-color: #069aa5;
        box-shadow: 0 0 0 2px rgba(6, 154, 165, .15);
    }

    .custom-logo-file-icon {
        color: var(--g-color-blue);
        font-size: 28px;
    }

    .custom-logo-tile img {
        padding-top: 6px;
    }

    .underline-effect {
        position: relative;
        padding-bottom: clamp(1px, calc(20 / 1920 * 100vw), 20px);
        width: 50%;
        max-width: 350px;
    }

    .underline-effect:after {
        content: "";
        position: absolute;
        width: calc(100% + 2px);
        height: 2px;
        left: -1px;
        bottom: clamp(1px, calc(16 / 1920 * 100vw), 16px);
        background: var(--g-color-1);
    }

    .btn-default {
        /* height: clamp(40px, calc(60 / 1920 * 100vw), 60px); */
        padding-left: 10px;
        padding-right: 10px;
        min-width: 150px;
    }

    .logo-submit {
        background: black;
        color: white;
        border: none;
        box-shadow: none;
        padding: 12px 32px;
        font-size: 16px !important;
        margin-top: 8px;
    }

    .custom-configuration-select-picker {
        & {
            width: 100% !important;
            padding-right: clamp(1px, calc(10 / 1920 * 100vw), 10px);
        }

        .btn {
            padding: 0 0 0 4px;
            color: #000 !important;
            font-size: clamp(12px, calc(19 / 1920 * 100vw), 19px);
        }

        .text {
            width: 100%
        }

        .bsopt-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }

        .bsopt-left {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .bsopt-right {
            white-space: nowrap;
            flex: 0 0 auto;
            min-width: clamp(1px, calc(40 / 1920 * 100vw), 40px);
        }

        &.bootstrap-select .dropdown-toggle:focus,
        &.bootstrap-select > select.mobile-device:focus + .dropdown-toggle,
        & .dropdown-toggle,
        & .dropdown-toggle:focus,
        & .dropdown-toggle:active,
        & .dropdown-toggle:focus:active,
        & .show > &.dropdown-toggle {
            outline: 0 !important;
            box-shadow: none !important;
            background: transparent !important;
            border: none !important;
            outline: none !important;
        }

        & .dropdown-toggle.bs-placeholder,
        & .dropdown-toggle.bs-placeholder:hover,
        & .dropdown-toggle.bs-placeholder:focus,
        & .dropdown-toggle.bs-placeholder:active {
            color: #1c1c1c !important;
            /* font-family: var(--font-narrow), sans-serif; */
            font-size: clamp(16px, calc(19 / 1920 * 100vw), 19px);
        }

        & .dropdown-toggle::after {
            border: none; /* zruÅ¡Ã­ bootstrap caret */
            content: "\f078"; /* chevron-down ve FA 4.7 */
            font-family: "FontAwesome"; /* POZOR â€“ bez mezer */
            font-size: 0.75em;
            margin-left: clamp(1px, calc(8 / 1920 * 100vw), 8px);
            vertical-align: middle;
            transition: transform .2s ease;
        }


        &.show > .dropdown-toggle::after {
            transform: rotate(180deg);
            transition: transform .2s ease;
        }
    }


}
