﻿.system-form {
    position: relative;
    background-color: white;
    padding: 2rem;
    margin: 3rem;
}

.system-tab {
    display: none;
}

    .system-tab.active {
        display: block;
    }

.system-tab-control {
    display: flex;
    margin-bottom: 2rem;
    margin-top: 3rem;
}

    .system-tab-control button.active {
        color: var(--BlueScire1);
        border-bottom: 2px solid var(--BlueScire1);
        font-weight: 500;
    }

    .system-tab-control button {
        flex-grow: 1;
        font-family: Roboto;
        font-weight: 400;
        color: var(--Grey1);
        background-color: transparent;
        border: none;
        margin: 0px;
        width: 100%;
        border-bottom: 1px solid var(--Gray1);
    }

        .system-tab-control button:not(.active):hover {
            border-bottom: 1px solid rgba(0,0,0,0.7);
            color: rgba(0,0,0,0.7);
        }

.system-error {
    position: relative;
    font-family: 'Helvetica Neue';
    font-size: 0.75rem;
    font-style: italic;
    vertical-align: baseline;
    height: fit-content;
    color: var(--Red);
    margin-bottom: 10px;
}

.s-control-label {
    font-weight: 500;
    font-family: 'Roboto';
    color: var(--PurpleMedio1);
    text-overflow: ellipsis;
    display: inline-flex;
    justify-content: space-between;
    align-items: baseline;
}

.s-form-control {
    background-color: var(--BG3);
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Roboto';
    line-height: 1.5;
    color: #212529;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

    .s-form-control[readonly="readonly"],
    .s-form-control[readonly="true"],
    .s-form-control[disabled="disabled"],
    .s-form-control[disabled="true"],
    .s-form-control[readonly],
    .s-form-control[disabled] {
        background-color: var(--Gray6);
        cursor: not-allowed;
    }

    input.disabled,
    select.disabled,
    textarea.disabled {
        background-color: var(--Gray6);
        cursor: not-allowed;
        pointer-events: none;
    }

    .s-form-control .select2-selection__rendered {
        color: #212529 !important;
        line-height: inherit !important;
        padding-left: 0px !important;
    }

select.s-form-control, .select2 .select2-selection.s-form-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.2em;
    appearance: none;
}

.s-form-control:focus-visible {
    outline: 1px solid var(--BlueScire1);
}

.search-input {
    position: relative;
}

    .search-input .s-form-control {
        padding-left: 2rem !important;
    }

    .search-input .bi-search {
        position: absolute;
        margin-left: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

.s-form-group {
    padding-top: 1rem !important;
}

    .s-form-group select[disabled="disabled"] {
        cursor: not-allowed;
    }

    .s-form-group select[readonly="readonly"] {
        pointer-events: none;
    }

    .s-form-group span.select2-selection {
        background-color: var(--BG3);
        background-clip: padding-box;
        border-radius: 0.375rem;
        transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    }

        .s-form-group span.select2-selection .select2-selection__choice,
        .s-form-group span.select2-selection .select2-selection__clear,
        .select2-selection textarea {
            margin-left: 0px !important;
            margin-right: 5px !important;
        }

    .s-form-group .select2 .select2-selection.s-form-control {
        min-height: 33.5px;
    }

    .s-form-group:has(.s-form-checkbox) {
        display: flex;
        align-items: center;
    }

    .s-form-group .s-checkbox-input[readonly="readonly"] {
        pointer-events: none;
        opacity: .5;
    }

.s-form-checkbox {
    margin-right: 0.50rem;
    cursor: pointer;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--PurpleMedio1);
}

.s-checkbox-input:focus {
    box-shadow: 0 0 0 0.25rem rgb(0 0 0 / 15%);
}

.s-color-select {
    padding: 0.2rem;
    height: 2rem;
    width: 2rem;
}

.btn.s-btn-clear a {
    text-decoration: none;
}

.s-accordion-header {
    font-family: "Roboto";
    margin-bottom: 0;
}

    .s-accordion-header button {
        color: var(--PurpleMedio1) !important;
        padding: 1.5rem 1rem;
        background-color: transparent;
        border: 0 !important;
        width: 100%;
    }

        .s-accordion-header button .bi {
            font-size: 1rem;
            margin-left: 0.5rem;
        }

            .s-accordion-header button .bi:before {
                vertical-align: middle;
            }

.s-accordion-header {
    border-radius: inherit;
}

    .s-accordion-header:has(button[aria-expanded='false']) .bi.bi-chevron-down {
        transform: rotate(0deg);
        transition: 0.3s;
    }

    .s-accordion-header:has(button[aria-expanded='true']) .bi.bi-chevron-down {
        transform: rotate(180deg);
        transition: 0.3s;
    }

    .s-accordion-header:has(button[aria-expanded='false']) .bi.bi-trash {
        display: none;
    }

    .s-accordion-header:has(button[aria-expanded='true']) .bi.bi-trash {
        display: unset;
    }

    .s-accordion-header:has(button[aria-expanded='false']) .bi.bi-pencil-square {
        display: none;
    }

    .s-accordion-header:has(button[aria-expanded='true']) .bi.bi-pencil-square {
        display: unset;
    }

    .s-accordion-header:hover {
        background-color: var(--BG3) !important;
        transition: 0.3s ease-in-out;
    }

.s-accordion-body {
    padding: 0rem 2rem 2rem 2rem;
}

.s-accordion .accordion-item {
    box-shadow: 0px 2px 2px rgb(0 0 0 / 6%);
}

label.required {
    width: 100%;
}

    label.required::after {
        content: "Obrigatório";
        color: red;
        font-size: 0.625rem;
        font-weight: normal;
    }

.s-font-family-0 {
    font-family: 'Roboto' !important;
}

.uploaded-icon {
    padding-top: .375rem;
    margin-left: 1rem;
    display: flex;
}

    .uploaded-icon .bi-trash {
        cursor: pointer;
    }

.add-file {
    width: 100%;
    padding-top: .375rem;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Roboto';
    line-height: 1.5;
    background-clip: padding-box;
}

    .add-file label {
        background-color: var(--BG3);
        cursor: pointer;
        padding: .375rem .75rem;
        border: 1px solid #ced4da;
        border-radius: .375rem;
        color: var(--CoolGray3);
    }

        .add-file label:hover {
            filter: contrast(0.8);
            transition: 0.3s ease-in-out;
        }

.card.add-image {
    height: 5rem;
    width: 5rem;
    background-color: var(--BG3);
    color: var(--Gray2);
    font-size: 1.25rem !important;
    cursor: pointer;
    box-shadow: 2px 2px 2px rgb(0 0 0 / 6%);
    transition: 0.3s ease-in-out;
}

.add-item {
    color: var(--BlueScire3);
    text-decoration: none;
}

    .add-item:hover {
        color: black;
    }

.bi-trash, .bi-pencil-square, .bi-grip-vertical {
    color: var(--CoolGray3);
}

    .bi-trash.disabled, .bi-pencil-square.disabled {
        color: var(--Gray6);
    }

        .bi-trash.disabled:hover, bi-pencil-square.disabled:hover {
            color: var(--Gray6);
        }

    .bi-trash:hover {
        color: var(--Red);
    }

    .bi-pencil-square:hover {
        color: var(--bs-green);
    }

.form-check-input:checked {
    background-color: var(--BlueScire1) !important;
    border-color: var(--BlueScire1) !important;
}

.form-check-input[readonly] {
    pointer-events: none;
    filter: none;
    opacity: .5;
}

.input-box-group {
    overflow-y: auto;
    background-color: var(--BG3);
    padding: .375rem .75rem;
    border: 1px solid #ced4da;
    border-radius: .375rem;
}

    .input-box-group .form-check-input:checked {
        background-color: black;
        border-color: black;
    }

}

a.bi {
    color: unset;
    text-decoration: unset;
}

    a.bi:hover {
        color: unset;
    }

.files-container-icon {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    cursor: pointer;
}

    .files-container-icon .folder-icon {
        position: relative;
    }

        .files-container-icon .folder-icon .bi.bi-folder {
            font-size: 1.75rem;
        }

        .files-container-icon .folder-icon .rounded-circle {
            border-color: var(--BlueScire3) !important;
            width: 1.0rem;
            display: flex;
            height: 1.0rem;
            align-items: center;
            justify-content: space-around;
            font-size: 0.625rem;
            color: white;
            background-color: var(--BlueScire3) !important;
            position: absolute;
            z-index: 1;
            top: 0.3rem;
            left: 1.25rem;
        }

.add-image-container .dropdown-menu .new-image {
    color: blue;
}

.add-image-container .dropdown-menu .delete-image {
    color: red;
    display: none;
}

.add-image-container:has(.card.has-image) .delete-image {
    display: block;
}

.add-image-container .dropdown-menu li {
    display: flex;
    gap: 0.375rem;
}

.add-image-container .dropdown-menu .delete-image i,
.add-image-container .dropdown-menu .new-image i {
    font-family: bootstrap-icons !important;
    font-style: normal;
}

    .add-image-container .dropdown-menu .delete-image i::after {
        content: "\F5DE";
    }

    .add-image-container .dropdown-menu .new-image i::after {
        content: "\F226";
    }

.add-image-container .card.has-image .bi-plus-circle-dotted {
    display: none;
}
