/* module-key = 'com.gliffy.integration.confluence:gliffy-confluence-saveascopyto', location = 'gliffy/confluence/saveas/CommonDialog.css' */
.gliffy-saveas-common-panel {
    padding: 0 24px 16px;
    overflow-y: auto;
    flex-grow: 1;

    .modal-header {
        color: #172b4d;
        font-family: sans-serif;
        font-size: large;
        font-weight: 700;
        letter-spacing: normal;
        line-height: leading;
        text-align: left;
    }
    
    .gliffy-save-as-modal-header {
        background-color: #fff;
        display: flex;
        justify-content: space-between;
        padding: 24px 0px 16px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .modal-close-btn {
        cursor: pointer;
    }

    .modal-controls {
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(15, 23, 41, 0.06);
    }

    label {
        font-family: sans-serif;
        font-size: small;
        font-variation-settings: "wdth" 100;
        font-weight: 600;
        letter-spacing: normal;
        line-height: leading;
        text-align: left;
        color: rgba(98, 111, 134, 1)
    }

    input.text-control {
        border: 2px solid rgba(15, 23, 41, 0.14);
        border-radius: 8px;
        height: 24px;
        padding: 6px 8px;
        width: 96%;
        &:focus-visible{
            border: solid 2px rgba(75, 0, 252, 10.14);
            outline:  rgba(75, 0, 252, 1);
        }
    }

    .selection-group>.control-group {
        display: flex;
        padding: 10px 10px 10px 0px;
        align-items: flex-start;
    }

    .collapsing {
        display: flex;
        justify-content: center;

        div {
            width: 100%;
        }

        input,
        select {
            border: 2px solid rgba(15, 23, 41, .14);
            border-radius: 8px;
            height: 22px;
            padding: 8px 8px;
            width: 94%;
            margin-bottom: 4px;
            &:focus-visible{
                border: solid 2px rgba(75, 0, 252, 10.14);
                outline:  rgba(75, 0, 252, 1);
            }
        }

        input::placeholder {
            color: rgba(0, 0, 0, 0.5);
            font-style: normal;
        }
          
    }

    input.radio-control {
        width: 16px;
        height: 16px;
        margin: 1px 1px 0px 0px;
    }

    .control-group.error {
        color: #b94a48;
    }

    .control-group.error>input:not(#gliffy-confluence-select-existing-page) {
        border-color: #b94a48;
    }

    .gliffy-confluence-save-on-new-page-container,
    .gliffy-confluence-save-on-existing-page-container {
        display: none;
    }

    .gliffy-confluence-save-on-new-page-container,
    .gliffy-confluence-save-on-existing-page-container {
        gap: 10px;
    }

    table {
        max-width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
        background-color: transparent;

        thead {
            width: 354px;
            height: 44px;
            padding: 8px 0px 0px 0px;
            gap: 12px;
            border: 0px 0px 2px 0px;
        }

        tbody {
            width: 354px;
            height: 36px;
            padding: 8px 16px 8px 16px;
            gap: 0px;
            border: 0px 0px 1px 0px;

            tr {
                font-family: sans-serif;
                font-size: small;
                font-weight: 400;
                letter-spacing: normal;
                text-align: left;
                color: rgba(23, 43, 77, 1);
            }

            tr.is-selected {
                background-color: rgba(15, 23, 41, 0.06);
            }
        }
    }

    .list-table {
        width: 614px;
    }
    
    .list-table .column-0 {
        width: 60%;
    }
    
    .list-table .header {
        font-weight: bold;
    }
    
    .list-table .body {
        max-height: 160px;
    }
    
    .list-table tr {
        height: 40px;
    }

    .gliffy-save-as-modal-footer {
        display: flex;
        justify-content: right;
        padding: 0px 24px 24px 24px;
        bottom: 0;
        z-index: 10;
        background-color: white;
        position: absolute;
        right: 0;
        width: 100%;

        button {
            border: 1px solid;
            border-radius: 4px;
            font-family: sans-serif;
            font-size: 14px;
            font-variation-settings: "wdth" 100;
            font-weight: 600;
            height: 32px;
            letter-spacing: normal;
            text-align: center;
            width: 71px;
            cursor: pointer;
        }

        button:disabled {
            opacity: 0.5 !important;
            cursor: not-allowed !important;
        }

        button:hover {
            opacity: 0.8;
        }

        button:active {
            opacity: 0.9;
        }

        button#gliffy-save-as-cancel-button {
            background-color: rgba(15, 23, 41, 0.06);
            border-color: rgba(15, 23, 41, 0.06);
            color: rgba(68, 84, 111, 1);
        }

        button#gliffy-save-as-save-button {
            background-color: rgba(75, 0, 252, 1); /*rgba(115, 91, 255, 1)*/
            border-color: rgba(75, 0, 252, 1);
            color: rgba(255, 255, 255, 1);
        }
    }
}

.help-inline {
    display: none;
    align-items: center;
    font-family: sans-serif;
    font-size: x-small;
    font-weight: 600;
    letter-spacing: normal;
    text-align: left;
    font-variation-settings: 'wdth' 100;
    color: rgba(233, 47, 50, 1);

    path {
        fill: rgba(233, 47, 50, 1);
    }
}

.gliffy-saveas-common-panel.dialog-panel-body {
    padding: 0px;
    overflow: hidden;
}

.selectize-input {
    display: inline-flex !important;
    border-radius: 8px;
    height: 42px;
    border: 2px solid rgba(15, 23, 41, 0.14);
    box-shadow: none;
    .item {
        max-width: fit-content;
    }
}

.selectize-input.focus {
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(75, 0, 252, 1);
    border-radius: 8px
}

.selectize-dropdown {
    padding: 4px;
    border: 2px solid rgba(15, 23, 41, 0.14);
    border-radius: 4px;
}

.selectize-dropdown .active{
    background-color: rgba(243, 238, 255, 1) !important;
}

.gliffy-confluence-save-as-radio {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;

    &:hover {
        border-color: #888;
    }

    &:checked {
        background-color: rgba(75, 0, 252, 1);
        border-color: rgba(64, 0, 220, 1);
        
        &:focus {
            outline: none;
        }

        &::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 7px;
            height: 7px;
            background-color: #f0f0f0;
            border-radius: 50%;
        }
    }
    &:disabled {
        cursor: not-allowed;
        background-color: #f0f0f0;
        border-color: #ddd;
        opacity: 0.6;
    
        &:checked {
            background-color: #a0a0a0;
            border-color: #a0a0a0;
    
            &::after {
            background-color: #e0e0e0;
            }
        }
    }
}

#gliffy-copyto-dialog{
    border-radius:0px;
}

.existing-page-options, .new-page-options {
    display: flex;
    gap: 8px;
}