:root {
    --color-primary: #162B57;
    --color-secondary: #168D37;
    --color-light: #FFFFFF;
    --color-card: #E8F5E9;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.font-azul-principal {
    color: var(--color-primary) !important;
}

.font-verde-principal {
    color: var(--color-secondary) !important;
}

.bg-azul-principal {
    background-color: var(--color-primary) !important;
}

.bg-verde-principal {
    background-color: var(--color-secondary) !important;
}

.btn-dpema {
    background-color: var(--color-primary);
}

.btn-dpema:hover {
    background-color: var(--color-secondary);
}

.card {
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card .card-content {
    padding: 25px;
}

.card-title {
    font-weight: 600;
    font-size: 1.4rem !important;
}

.pesquisa-box {
    margin: 20px 0;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#pesquisa-geral {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.input-field label {
    color: var(--color-primary);
}

.input-field .prefix.active {
    color: var(--color-secondary);
}

.sem-obras {
    display: none;
    padding: 30px;
    text-align: center;
    font-style: italic;
    color: #666;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin: 20px 0;
}

table.tabela-obras {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

table.tabela-obras thead {
    background-color: var(--color-primary);
}

table.tabela-obras thead th {
    color: white;
    font-weight: 600;
    padding: 15px 10px;
}

table.tabela-obras tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s;
}

table.tabela-obras tbody tr:hover {
    background-color: rgba(22, 141, 55, 0.05);
}

td, th {
    padding: 15px 10px;
    display: table-cell;
    text-align: left;
    vertical-align: middle;
}

.tabela-obras td {
    white-space: normal !important;
    padding: 12px 8px;
    line-height: 1.5;
}

.tabela-obras tr {
    height: auto !important;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    min-width: 100px;
    text-align: center;
}

.status-andamento {
    background-color: #2196F3;
    color: white;
}

.status-concluida {
    background-color: #4CAF50;
    color: white;
}

.status-paralisada {
    background-color: #f44336;
    color: white;
}

.status-planejada {
    background-color: #FF9800;
    color: white;
}

.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin: 5px 0;
    height: 20px;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 5px;
    background-color: #4CAF50;
    position: relative;
    transition: width 0.3s ease;
}

.progress-bar-warning {
    background-color: #FF9800;
}

.progress-bar-danger {
    background-color: #f44336;
}

.progress-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    line-height: 20px;
}

.tabs {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tabs .tab a {
    color: var(--color-primary);
    font-weight: 500;
}

.tabs .tab a:hover {
    background-color: rgba(22, 141, 55, 0.1);
    color: var(--color-secondary);
}

.tabs .tab a.active {
    background-color: rgba(22, 43, 87, 0.1);
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-secondary);
}

.tabs .indicator {
    background-color: var(--color-secondary);
}

.card-hover {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.historico-box {
    background-color: #f9f9f9;
    border-left: 4px solid var(--color-secondary);
    padding: 20px;
    margin-top: 30px;
    border-radius: 4px;
}

.historico-box h6 {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.historico-box p {
    margin: 8px 0;
    color: #666;
}

.btn-download-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

@media only screen and (max-width: 992px) {
    .tabela-obras {
        font-size: 0.9rem;
    }

    .status-badge {
        min-width: 80px;
        font-size: 10px;
    }

    .btn-download-group {
        flex-direction: column;
    }

    .btn-download-group .btn {
        width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    .tabela-obras thead {
        display: none;
    }

    .tabela-obras tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
    }

    .tabela-obras tbody td {
        display: block;
        text-align: left;
        padding: 8px 10px;
        border: none;
    }

    .tabela-obras tbody td:before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        width: 120px;
        color: var(--color-primary);
    }
}
