/* NOSSA CASA - PROJETOS CONSOLIDADO */


/* NOSSA CASA - PROJETOS V1 */

.mais-hub-card.projects .mais-hub-icon {
    background: #f2f0f8;
}

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

#projetos-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;
}

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

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

.projetos-v1-summary .doing {
    background: #edf2f9;
}

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

.projetos-v1-summary .done {
    background: #edf7f1;
}

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

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

.projetos-v1-filters {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(160px, .35fr);
    gap: 8px;
}

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

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

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

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

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

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

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

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

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

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

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

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

.projetos-v1-list {
    display: grid;
    gap: 9px;
}

.projetos-v1-card {
    padding: 13px;
    background: #faf8f9;
    border: 1px solid #eee8eb;
    border-radius: 13px;
}

.projetos-v1-card.late {
    background: #fff7f8;
    border-color: #f0d4da;
}

.projetos-v1-top {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 10px;
    align-items: start;
}

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

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

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

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

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

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

.projetos-v1-badge.late {
    color: #ad5363;
    background: #fff0f3;
}

.projetos-v1-percent {
    padding: 5px 8px;
    color: #61769b;
    background: #edf2f9;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.projetos-v1-progress {
    height: 8px;
    margin-top: 10px;
    overflow: hidden;
    background: #ece7e9;
    border-radius: 999px;
}

.projetos-v1-progress > div {
    height: 100%;
    background: var(--primary);
    border-radius: 999px;
}

.projetos-v1-budget {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: var(--muted);
    font-size: 9px;
}

.projetos-v1-budget strong {
    color: var(--text-strong);
}

.projetos-v1-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

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

.projetos-v1-stage-open {
    color: #56816a;
    background: #edf7f1;
}

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

.projetos-v1-complete {
    color: #61769b;
    background: #edf2f9;
}

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

.projetos-v1-stages {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
}

.projetos-v1-stage-form {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(120px, .35fr)
        auto;
    gap: 7px;
}

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

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

.projetos-v1-stage-list {
    margin-top: 8px;
    display: grid;
    gap: 5px;
}

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

.projetos-v1-stage-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.projetos-v1-stage-row strong {
    color: var(--text-strong);
    font-size: 9px;
}

.projetos-v1-stage-row strong.done {
    color: var(--muted);
    text-decoration: line-through;
}

.projetos-v1-stage-row span {
    color: var(--muted);
    font-size: 8px;
    white-space: nowrap;
}

.projetos-v1-stage-row button {
    padding: 4px 6px;
    cursor: pointer;
    color: #ad5363;
    background: #fff0f3;
    border-radius: 6px;
    font-size: 8px;
}

.projetos-v1-stage-empty {
    padding: 11px;
    color: var(--muted);
    text-align: center;
    font-size: 9px;
}

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

    .projetos-v1-filters,
    .projetos-v1-form {
        grid-template-columns: 1fr;
    }

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

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

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

    #projetos-new {
        width: 100%;
    }

    .projetos-v1-stage-row {
        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;
    }

    .projetos-v1-stage-row > span {
        grid-column: 2 / 3;
    }
}



/* NOSSA CASA - PROJETOS V2 INTEGRACOES */

.projetos-v2-link {
    color: #7a5f78;
    background: #f3edf4;
}

.projetos-v2-real {
    color: #5d555a;
}

.projetos-v2-real.over {
    color: #ad5363;
}

.projetos-v2-links {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
}

.projetos-v2-links[hidden] {
    display: none !important;
}

.projetos-v2-links-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.projetos-v2-links-head > div {
    display: flex;
    flex-direction: column;
}

.projetos-v2-links-head strong {
    color: var(--text-strong);
    font-size: 10px;
}

.projetos-v2-links-head small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px !important;
}

.projetos-v2-links-summary {
    margin-top: 8px;
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.projetos-v2-links-summary > div {
    padding: 8px;
    display: flex;
    flex-direction: column;
    background: #faf8f9;
    border-radius: 8px;
}

.projetos-v2-links-summary span {
    color: var(--muted);
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
}

.projetos-v2-links-summary strong {
    margin-top: 3px;
    color: var(--text-strong);
    font-size: 10px;
}

.projetos-v2-links-summary strong.negative {
    color: #ad5363;
}

.projetos-v2-link-form {
    margin-top: 9px;
    display: grid;
    grid-template-columns:
        minmax(130px, .35fr)
        minmax(0, 1fr)
        auto;
    gap: 6px;
}

.projetos-v2-link-form select {
    min-height: 37px;
    padding: 7px 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 9px;
}

.projetos-v2-link-form button {
    min-height: 37px;
    padding: 7px 10px;
    cursor: pointer;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
    font-size: 8px;
    font-weight: 900;
}

.projetos-v2-linked-list {
    margin-top: 8px;
    display: grid;
    gap: 5px;
}

.projetos-v2-linked-row {
    padding: 7px 8px;
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto
        auto;
    gap: 7px;
    align-items: center;
    background: #faf8f9;
    border-radius: 8px;
}

.projetos-v2-source {
    padding: 3px 5px;
    border-radius: 999px;
    font-size: 7px;
    font-weight: 900;
    white-space: nowrap;
}

.projetos-v2-source.financeiro {
    color: #61769b;
    background: #edf2f9;
}

.projetos-v2-source.compras {
    color: #806b2f;
    background: #fff5d8;
}

.projetos-v2-linked-row strong {
    color: var(--text-strong);
    font-size: 9px;
}

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

.projetos-v2-linked-row > span.value {
    color: var(--text-strong);
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}

.projetos-v2-linked-row button {
    padding: 4px 6px;
    cursor: pointer;
    color: #ad5363;
    background: #fff0f3;
    border-radius: 6px;
    font-size: 8px;
}

.projetos-v2-empty {
    padding: 10px;
    color: var(--muted);
    text-align: center;
    font-size: 9px;
}

.projetos-v2-explain {
    margin-top: 7px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.4;
}

@media (max-width: 760px) {
    .projetos-v2-links-summary {
        grid-template-columns: 1fr;
    }

    .projetos-v2-link-form {
        grid-template-columns: 1fr;
    }

    .projetos-v2-linked-row {
        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;
    }

    .projetos-v2-linked-row > span.value {
        grid-column: 2 / 3;
    }
}

