@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 15px;
    line-height: 1.5;
    background-color: #dddddd !important;
}

/* CABEÇALHO/RODAPÉ*/
.navbar img {
    width:6vw;
    border-radius: 5px;
    object-fit: contain;
    min-width: 35px;
    max-width: 45px;
    margin-right: 3px;
}

/* logo concretedata*/
#img-logo {
    width: 10vw !important;
    min-width: 70px;
    max-width: 140px;
    margin-right: 9px !important;
}

/* ======== CEMARE ======== */
.navbar-cemare, .footer-cemare {
    background: linear-gradient(135deg, #03030b, #3331c7) !important;
    color: white !important;
}

.navbar-cemare .dropdown-menu, .bg-cemare {
    background: linear-gradient(135deg, #03030b, #3331c7) !important;
    color: white !important;
}

/* ======== CIMENTPAV ======== */
.navbar-cimentpav, .footer-cimentpav {
    background: linear-gradient(135deg, #0a2404, #7ad354) !important;
    color: white !important;
}

.navbar-cimentpav .dropdown-menu, .bg-cimentpav {
    background: linear-gradient(135deg, #0a2404, #7ad354) !important;
    color: white !important;
}

.navbar *,
footer {
    color: #fff !important;
}

.navbar * {
    border-radius: 5px;
}

.navbar .navbar-brand span {
    margin-left: 1px;
    color: #fff !important;
}

.navbar .nav-link {
    font-size: 1rem;
}

.navbar .active, .navbar .dropdown-item:hover {
    font-weight: bold;
    background-color: #fff !important;
    color: #000 !important;
}

footer {
    font-size: 0.9em;
    z-index: 999;
    position: fixed;
    bottom: 0;
    padding: 6px 0;
    width: 100%;
}

footer div {
    width: 90%;
}

/* UTILITÁRIOS EM FORMULÁRIOS E ALERT*/
.alert {
    margin-bottom: 0;
}

form .form-label {
    font-weight: bold;
}

.required::after {
    content: " *";
    color: red;
    font-weight: bold;
}

.btn-sorting {
    background-color: transparent;
    border: 0;
}

.btn-sorting svg {
    width: 20px;
}

/* DROPDOWN E IMG DE VOLTAR PÁGINA*/
/* aumentando o espaço entre os itens */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* efeito hover interativo */
.dropdown-item:hover {
    background-color: #007bff;
    color: #fff;
}

/* ajustando imagem e h4 na ação de voltar */
.arrow-back-img {
    width: 2vw;
    margin-right: 5px;
    min-width: 20px;
}

/* INLINE-EDITING/TRUNCATE-OBSERVATIONS DE BUDGETS_ITEMS.CREATE*/
#budget_items_options_menu {
    z-index: 1060 !important;
    transform: none !important;
}

.text-truncate-container {
    display: inline-block;
    width: 100%;
    position: relative;
    cursor: default;
}

.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    max-width: calc(100% - 20px);
    vertical-align: top;
    display: inline-block;
    line-height: 1.5;
}

.truncate-indicator {
    display: none;
    color: #0d6efd;
    font-weight: bold;
    margin-left: 4px;
    vertical-align: top;
}

.editable-cell .editable-content {
    cursor: pointer;
    border-bottom: 1px dashed #0d6efd;
    /* Uma linha tracejada azul para indicar que é editável */
    transition: background-color 0.2s ease-in-out;
}

.editable-cell .editable-content:hover {
    background-color: #e9ecef;
}

/* MODAL DE VER ITENS EM ORÇAMENTO/CARDY-BODY-SCROLLABLE DE BUDGETS.DATATABLE*/
#budgetItemsList {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.card-body-scrollable {
    /* Define uma altura máxima. A rolagem só aparece se o conteúdo passar disso. */
    /* Use 'vh' (viewport height) para ser responsivo à altura da tela. */
    /* 60vh = 60% da altura da tela. Ajuste este valor como preferir! */
    max-height: 50vh;

    /* Adiciona a barra de rolagem vertical apenas quando necessário. */
    overflow-y: auto;
}

/* estilo customizado para a barra de rolagem (para navegadores Webkit) */
#budgetItemsList::-webkit-scrollbar {
    width: 8px;
}

#budgetItemsList::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#budgetItemsList::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .table-responsive {
        /* Permite o scroll no eixo X apenas em dispositivos móveis */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Melhora o scroll em dispositivos iOS */
    }

    .table-responsive table {
        font-size: 14px;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 0.5rem;
    }

    .table-responsive th {
        white-space: nowrap;
    }

    .metrics {
        flex-direction: column;
        text-align: justify;
        gap: 5px;
    }

    .metrics * {
        width: 100%;
    }

}
/* budget_schedules.datatable */
        /* estilo de destaque */
        .highlight-day {
            background-color: #ffc107 !important;
            border-radius: 50%;
            color: #000;
            font-weight: bold;
        }

        .highlight-day-late {
            background-color: #dc3545 !important;
            border-radius: 50%;
            color: #000;
            font-weight: bold;
        }

        .highlight-day-confirmed {
            background-color: #198754 !important;
            border-radius: 50%;
            color: #000;
            font-weight: bold;
        }

@media (max-width: 576px) {
    .btn {
        font-size: 12px !important;
    }

    *:not(h1, h2, h3, h4, h5) {
        font-size: 98% !important;
    }

    *::placeholder,
    input,
    select,
    options {
        font-size: 85% !important;
    }

    .row {
        display: block;
    }

    footer {
        position: relative;
    }

    footer div {
        gap: 5px;
        flex-direction: column-reverse;
    }

}

/* Em telas maiores que 768px (desktop), a tabela não terá scroll */
@media (min-width: 769px) {
    .table-responsive {
        overflow-x: unset;
    }
}

/* Estilo para ocultar cabeçalho e footer na impressão de budgets.show */
@media print {

    header,
    footer {
        display: none;
    }
}