/* NOSSA CASA - MANUTENCAO OFICIAL */


/* NOSSA CASA - MANUTENCAO V1 */

.mais-hub-card.maintenance .mais-hub-icon {
    background: #f8f3ed;
}

.manutencao-v1-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

#manutencao-new {
    min-height: 38px;
    padding: 8px 12px;
    flex: 0 0 auto;
    cursor: pointer;
    color: #fff;
    background: var(--secondary);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 900;
}

.manutencao-v1-summary {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.manutencao-v1-summary > div {
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    background: #faf8f9;
    border-radius: 11px;
}

.manutencao-v1-summary .late {
    background: #fff0f3;
}

.manutencao-v1-summary .today {
    background: #fff5d8;
}

.manutencao-v1-summary .soon {
    background: #edf2f9;
}

.manutencao-v1-summary span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.manutencao-v1-summary strong {
    margin-top: 4px;
    color: var(--text-strong);
    font-size: 16px;
}

.manutencao-v1-filters {
    margin-bottom: 12px;
}

.manutencao-v1-filters input {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 10px;
}

.manutencao-v1-form {
    margin-bottom: 13px;
    padding: 13px;
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 8px;
    background: #faf8f9;
    border-radius: 13px;
}

.manutencao-v1-form[hidden] {
    display: none !important;
}

.manutencao-v1-form .wide {
    grid-column: 1 / -1;
}

.manutencao-v1-form label > span {
    display: block;
    margin: 0 0 5px 3px;
    color: #817980;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.manutencao-v1-form input,
.manutencao-v1-form select,
.manutencao-v1-form textarea {
    width: 100%;
    padding: 8px 9px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 10px;
}

.manutencao-v1-form input,
.manutencao-v1-form select {
    min-height: 39px;
}

.manutencao-v1-form textarea {
    resize: vertical;
}

.manutencao-v1-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.manutencao-v1-form-actions button {
    min-height: 36px;
    padding: 7px 11px;
    cursor: pointer;
    border-radius: 9px;
    font-size: 9px;
    font-weight: 900;
}

#manutencao-save {
    color: #fff;
    background: var(--primary);
}

#manutencao-cancel {
    color: var(--text-strong);
    background: #eee9ec;
}

.manutencao-v1-list {
    display: grid;
    gap: 8px;
}

.manutencao-v1-card {
    padding: 12px;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 10px;
    align-items: start;
    background: #faf8f9;
    border: 1px solid #eee8eb;
    border-radius: 12px;
}

.manutencao-v1-card.atrasada {
    background: #fff5f7;
    border-color: #f0cfd6;
}

.manutencao-v1-card.hoje {
    background: #fff9ed;
    border-color: #efddb3;
}

.manutencao-v1-card.proxima {
    background: #f6f8fb;
    border-color: #dfe6ef;
}

.manutencao-v1-info strong {
    color: var(--text-strong);
    font-size: 12px;
}

.manutencao-v1-info small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px !important;
}

.manutencao-v1-badges {
    margin-top: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.manutencao-v1-badge {
    padding: 3px 6px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
}

.manutencao-v1-badge.status {
    color: #61769b;
    background: #edf2f9;
}

.manutencao-v1-badge.status.atrasada {
    color: #ad5363;
    background: #fff0f3;
}

.manutencao-v1-badge.status.hoje {
    color: #8a6d21;
    background: #fff5d8;
}

.manutencao-v1-badge.priority {
    color: #6d626c;
    background: #eee9ec;
}

.manutencao-v1-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.manutencao-v1-actions button {
    padding: 6px 7px;
    cursor: pointer;
    border-radius: 7px;
    font-size: 8px;
    font-weight: 900;
}

.manutencao-v1-done {
    color: #56816a;
    background: #edf7f1;
}

.manutencao-v1-history {
    color: var(--secondary-dark);
    background: var(--secondary-soft);
}

.manutencao-v1-edit {
    color: #6d626c;
    background: #eee9ec;
}

.manutencao-v1-archive {
    color: #ad5363;
    background: #fff0f3;
}

.manutencao-v1-history-list {
    grid-column: 1 / -1;
    display: grid;
    gap: 5px;
}

.manutencao-v1-history-list[hidden] {
    display: none !important;
}

.manutencao-v1-history-row {
    padding: 7px 8px;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 8px;
    align-items: center;
    background: #fff;
    border-radius: 8px;
}

.manutencao-v1-history-row strong {
    font-size: 9px;
}

.manutencao-v1-history-row small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px !important;
}

.manutencao-v1-history-row span {
    color: var(--text-strong);
    font-size: 9px;
    font-weight: 900;
}

.manutencao-v1-complete-form {
    grid-column: 1 / -1;
    padding: 10px;
    display: grid;
    grid-template-columns:
        minmax(130px, .5fr)
        minmax(120px, .4fr)
        minmax(0, 1fr)
        auto;
    gap: 7px;
    background: #fff;
    border-radius: 9px;
}

.manutencao-v1-complete-form[hidden] {
    display: none !important;
}

.manutencao-v1-complete-form input {
    min-height: 36px;
    padding: 7px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 9px;
}

.manutencao-v1-complete-form button {
    min-height: 36px;
    padding: 7px 10px;
    cursor: pointer;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
    font-size: 8px;
    font-weight: 900;
}

@media (max-width: 780px) {
    .manutencao-v1-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .manutencao-v1-form {
        grid-template-columns: 1fr;
    }

    .manutencao-v1-form .wide {
        grid-column: auto;
    }

    .manutencao-v1-complete-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .manutencao-v1-head {
        flex-direction: column;
    }

    #manutencao-new {
        width: 100%;
    }

    .manutencao-v1-card {
        grid-template-columns: 1fr;
    }

    .manutencao-v1-actions {
        justify-content: flex-start;
    }
}



/* NOSSA CASA - MANUTENCAO V2 ALERTAS */

.manutencao-v2-alert-card {
    margin: 14px 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 17px;
}

.manutencao-v2-alert-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.manutencao-v2-alert-head > div {
    display: flex;
    flex-direction: column;
}

.manutencao-v2-alert-head span {
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.manutencao-v2-alert-head strong {
    margin-top: 3px;
    color: var(--text-strong);
    font-size: 16px;
}

.manutencao-v2-alert-head small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px !important;
}

.manutencao-v2-alert-open {
    min-height: 36px;
    padding: 7px 10px;
    flex: 0 0 auto;
    cursor: pointer;
    color: #fff;
    background: var(--secondary);
    border-radius: 9px;
    font-size: 9px;
    font-weight: 900;
}

.manutencao-v2-alert-summary {
    margin-top: 12px;
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.manutencao-v2-alert-summary > div {
    padding: 10px;
    display: flex;
    flex-direction: column;
    background: #faf8f9;
    border-radius: 10px;
}

.manutencao-v2-alert-summary .late {
    background: #fff0f3;
}

.manutencao-v2-alert-summary .today {
    background: #fff5d8;
}

.manutencao-v2-alert-summary .soon {
    background: #edf2f9;
}

.manutencao-v2-alert-summary span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.manutencao-v2-alert-summary strong {
    margin-top: 4px;
    color: var(--text-strong);
    font-size: 14px;
}

.manutencao-v2-alert-list {
    margin-top: 10px;
    display: grid;
    gap: 6px;
}

.manutencao-v2-alert-row {
    padding: 9px 10px;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    background: #faf8f9;
    border-radius: 10px;
}

.manutencao-v2-alert-row:hover {
    background: #f6f2f4;
}

.manutencao-v2-alert-row strong {
    display: block;
    color: var(--text-strong);
    font-size: 10px;
}

.manutencao-v2-alert-row small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px !important;
}

.manutencao-v2-alert-chip {
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
    white-space: nowrap;
}

.manutencao-v2-alert-chip.atrasada {
    color: #ad5363;
    background: #fff0f3;
}

.manutencao-v2-alert-chip.hoje {
    color: #8a6d21;
    background: #fff5d8;
}

.manutencao-v2-alert-chip.proxima {
    color: #61769b;
    background: #edf2f9;
}

.manutencao-v2-alert-chip.agendada {
    color: #6d626c;
    background: #eee9ec;
}

.manutencao-v2-empty {
    padding: 15px;
    color: var(--muted);
    text-align: center;
    background: #faf8f9;
    border-radius: 10px;
    font-size: 10px;
}

.manutencao-v2-hub-badge {
    min-width: 24px;
    min-height: 24px;
    padding: 3px 7px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: #ad5363;
    background: #fff0f3;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
}

.manutencao-v2-hub-badge.ok {
    color: #56816a;
    background: #edf7f1;
}

@media (max-width: 700px) {
    .manutencao-v2-alert-head {
        flex-direction: column;
    }

    .manutencao-v2-alert-open {
        width: 100%;
    }

    .manutencao-v2-alert-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}
