@import url(sabesp.css);
@import url(nav.css);

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
    font-size: 12px;
    user-select: none;
}

@media (min-width: 768px) {
}

body {
    margin-bottom: 60px;
}

footer {
    font-size: 8pt !important;
    height: 46px;
    width: 100%;
}

a {
    pointer-events: auto;
    text-decoration: none;
    font-weight: 400;
    cursor: pointer;
}

.hide {
    display: none !important;
}

ul.logout {
    position: absolute !important;
}

/*Forms*/
input[readonly], input[readonly] + label[for], select[readonly] {
    pointer-events: none;
}

input[type='radio'], input[type='checkbox'] {
    accent-color: var(--color-sabesp-azul-escuro);
}

    input[type='radio'][readonly], input[type='checkbox'][readonly] {
        accent-color: var(--bs-secondary)
    }

label[for]:has(~ :is([disabled])) {
    color: var(--bs-gray-400) !important;
}

.form-label[for]::after {
    content: ":";
    color: inherit;
}

[disabled] {
    filter: grayscale(.75);
}

.btn.btn-primary {
    background-color: var(--color-sabesp-azul-escuro);
    border-color: var(--color-sabesp-azul-escuro);
    width: 100%;
}

.btn:hover {
    opacity: .9;
}

.btn.btn-link {
    border: 1px solid;
    border-color: #ccc;
    border-radius: 3px;
    color: var(--color-sabesp-cinza-escuro);
    text-decoration: none;
}

    .btn.btn-link:hover {
        color: var(--color-sabesp-azul-esverdeado);
    }

.far.fa-eye,
.far.fa-eye-slash {
    cursor: pointer;
    color: inherit;
    float: right;
    transform: translate(-10px, 28px);
}

    .far.fa-eye:hover,
    .far.fa-eye-slash:hover {
        opacity: .8;
        color: var(--color-sabesp);
    }

.fa-solid:hover {
    opacity: 0.8 !important;
}

/*Validations*/
required-mark {
    font: inherit;
    color: inherit;
}

    required-mark::before {
        color: var(--bs-danger);
        content: "*";
        position: absolute;
        top: 0.25rem;
        left: 0.25rem;
    }

.input-validation-error {
    border-color: var(--bs-danger);
}

    .input-validation-error:focus {
        border-color: var(--bs-danger);
        box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb),.25) !important;
    }

.field-validation-error {
    color: var(--bs-danger);
}

.alert:has(.field-validation-valid) {
    display: none;
}

button:has(~ .alert .field-validation-error) {
    display: none;
}

.alert .field-validation-error {
    color: inherit;
}

/*Swall*/
.sa-button-container,
.sa-button-container button {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .sa-button-container button.cancel {
        order: 2;
    }

/*Summernote*/
.note-icon-caret {
    display: none;
}


/*Files*/
[filebox] {
    box-sizing: border-box;
    height: 110px;
    background-color: var(--bs-gray-100);
}

    [filebox]:has(*) {
        overflow-x: scroll;
    }

    [filebox].drag {
        overflow: hidden;
    }

        [filebox]::before, [filebox].drag::before {
            display: flex !important;
            position: relative;
            height: 80px;
            min-width: calc(100% + 5px);
            left: inherit;
            content: attr(title);
            background-image: url("../img/fileIn.svg");
            background-repeat: no-repeat;
            background-position: 50%;
            color: var(--bs-gray);
            background-color: inherit;
            align-items: flex-end;
            justify-content: space-around;
            cursor: pointer;
            overflow: hidden;
        }

    [filebox]:has(*)::before, [filebox][readonly]::before {
        display: none !important;
    }

    [filebox] * {
        pointer-events: none;
    }

    [filebox] img {
        cursor: pointer;
        pointer-events: auto !important;
        min-height: 80px;
        max-height: 80px;
        min-width: 80px;
        max-width: 80px;
    }

    [filebox]:has(+ .field-validation-error:not(.d-none)) {
        border-color: var(--bs-danger);
    }


/*Grupos*/
.group {
    margin-bottom: .25rem !important;
}

    .group label:first-child {
        font-weight: 600;
    }

    .group :has(~ .field-validation-error) ~ div {
        outline: 1px dashed rgba(var(--bs-danger-rgb), .35);
        margin-left: initial;
    }

/*Full-screen loader*/
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7f9fb;
    opacity: 0.75;
    transition: opacity 0.75s, visibility 0.75s;
    z-index: 2000;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader::after {
    content: "";
    width: 75px;
    height: 75px;
    border: 15px solid #dddddd;
    border-top-color: #0083c7;
    border-radius: 50%;
    animation: loading 0.75s ease infinite;
}

@keyframes loading {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

.hideControl {
    display: none;
}

nav h3 {
    color: var(--color-sabesp-cinza)
}

#dropdownLogout::after {
    display: none;
}

.span-table {
    color: #7F7F7F;
    font-size: 13px;
}

@media (min-width: 320px) and (max-width: 767px) {
    .span-table {
        font-size: 10px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .span-table {
        font-size: 12px;
    }
}

.renderBody {
    overflow: hidden;
}

/*Filter*/
#filterSearch {
    z-index: 9999;
}

#filterButton {
    height: 42px;
    width: 42px;
    border-color: var(--color-sabesp-azul-petroleo) !important;
    float: right;
    margin-top: -40px;
    margin-right: -95px;
}

    #filterButton > i {
        color: var(--color-sabesp-azul-petroleo);
    }

#appliedFilters {
    background-color: var(--color-sabesp-verde-escuro);
    opacity: .7;
    height: 15px;
    font-size: xx-small;
    width: 15px;
    height: 12px;
    vertical-align: middle;
    text-align: center;
}

/*Table*/
.count-container {
    padding-bottom: 40px;
}

@media (max-height: 550px) {
    .count-container {
        padding-bottom: 200px;
    }
}

/*Container Wrapper border form*/
.container-wrapper {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
    margin-left: 22px;
    margin-right: 20px;
    border-radius: 8px;
    margin-top: 35px;
}

@media (max-height: 900px) {
    .container-wrapper {
        margin-top: 15px;
    }
}

/*Label form style*/
.gray-label-form {
    color: #7F7F7E;
    font-size: 14px;
    font-weight: 400;
}

/*Buttons style*/
.btn-white {
    color: #797979 !important;
    background-color: rgba(255, 255, 255, 1) !important;
    border-color: rgba(121, 121, 121, 1) !important;
    margin-right: 25px;
}

.btn-blue {
    background-color: var(--color-sabesp-azul-escuro);
    border-color: var(--color-sabesp-azul-escuro);
    font-weight: bold;
    margin-right: 20px;
}

/*History table styles*/
.history-container {
    margin-top: 32px;
    margin-left: 22px;
    margin-right: 20px;
}

.history-label {
    font-weight: 600;
    font-size: 13px;
    margin-top: 18px;
    margin-bottom: 13px;
}

.tableLine-left {
    text-align: left !important;
    padding-left: 25px !important;
}

/*List styles*/
.list-container {
    padding-left: 25px;
    padding-right: 25px;
}

.header-list-container {
    margin-top: 32px;
    float: right;
}

/*Search styles*/
#inputSearch {
    height: 40px;
    width: 640px;
    border-radius: 5px;
}

@media (max-width: 800px) {
    #inputSearch {
        width: 55vw;
    }
}

#clearSearch {
    font-size: 18px;
    margin-right: 2px;
    float: right;
    margin-top: -35.5px;
}

.search-container {
    margin-right: 65px;
}

/*Quill Editor*/
.ql-custom-undo:disabled:hover,
.ql-custom-redo:disabled:hover {
    cursor: default;
    opacity: 0.4;
}

/*Return Page styles*/
.return-page {
    margin-top: 5px;
    margin-left: 17px;
    color: #999999;
    font-size: 12px;
    cursor: pointer;
}

.return-page-custom {
    margin-top: 5px;
    color: #999999;
    font-size: 12px;
    margin-left: 4px;
}

.return-page-custom-text {
    cursor: pointer;
}

    .return-page:hover,
    .return-page-custom-text:hover {
        color: var(--color-sabesp-azul-escuro);
    }

.return-pages-container {
    display: flex;
    margin-left: 4px;
}

/*Required field*/
.required-icon {
    color: #D92C1F;
    font-size: 13px;
    display: none;
}

/*Disabled field*/
.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.disabled-custom {
    pointer-events: none;
    opacity: 0.4;
}

/*Visibility hidden*/
.hidden {
    visibility: hidden !important;
}

/*Display none*/
.none {
    display: none !important;
}

/*ActionPlan*/
.actionPlan-container {
    margin-top: 25px;
    margin-bottom: -63px;
}

.actionPlans-label {
    font-weight: 500;
    color: #004763;
    margin-bottom: 14px;
}

.actionPlanDescription-container,
.actionPlanResponsible-container {
    margin-right: 12px;
}

.actionPlanResponsible-container {
    margin-top: 15px;
    margin-bottom: 6px;
}

.actionPlanStartDate-container,
.actionPlanEndDate-container {
    width: 49.8%;
}

.actionPlan-info-container {
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 400;
    color: #555555;
    margin-top: 5px;
    margin-bottom: 20px;
    margin-left: 22px;
    margin-right: 20px;
}

.actionPlan-info-item {
    flex: 1 1 45%;
    padding: 7px;
    border: 1px solid #ddd;
}

.actionPlan-info-title {
    font-weight: 700;
    color: #231F20;
}

.actionPlan-info-item:nth-child(3),
.actionPlan-info-item:nth-child(4),
.actionPlan-info-item:nth-child(5),
.actionPlan-info-item:nth-child(6) {
    border-top: none;
}

.actionPlan-info-item:nth-child(1),
.actionPlan-info-item:nth-child(3),
.actionPlan-info-item:nth-child(5) {
    border-right: none;
}

/*Light*/
.green-circle,
.yellow-circle,
.red-circle,
.black-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.5);
    display: inline-block;
    border: 2px solid white;
    margin-left: 2px;
}

.green-circle {
    background-color: green;
}

.yellow-circle {
    background-color: yellow;
}

.red-circle {
    background-color: red;
}

.black-circle {
    background-color: black;
}

.chk-colors {
    margin-bottom: 5px;
}


/*Evidence-Attachment*/
.evidence-container {
    margin-top: 25px;
}

.evidence-title {
    font-weight: 700;
    color: #797979;
    font-size: 14px;
    text-align: left;
}

#evidenceTable {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 400;
    color: #231F20;
    text-align: left;
}

#addAttachment {
    margin-left: 10px;
    color: var(--color-sabesp-azul-escuro) !important;
    border-color: var(--color-sabesp-azul-escuro) !important;
}