/* ===================================== */
/* CORES E TEMAS */
/* ===================================== */
.color-darkblue {
    color: #06063d !important;
}

.color-blue {
    color: #3578f6;
}

.color-pink {
    color: #d31e92;
}

.color-grey {
    color: #020203;
}

.light-grey {
    color: #c0c0c6;
}

.background-light-grey {
    background-color: #f1f2f2;
}

.medium-grey {
    color: #86868e;
}

.green-fill {
    /* fill: #52b596; */
    fill: #198754;
}

.navy-fill {
    fill: #06063d;
}

.blue-fill {
    fill: #007bff;
}

.pink-fill,
.pink-fill-no-hover {
    fill: #d31e92;
}

.csv-button svg path,
.grey-fill {
    fill: #4F5559;
}

.medium-grey-fill {
    fill: #70787C;
}


.pink-stroke {
    stroke: #d31e92;
}

.pink-stroke:hover {
    stroke: #ba1c8a;
}

.red-fill {
    /* fill: #f76f69; */
    fill: #b02a37;
}

.background-gray {
    background-color: #4F5559;
}

.background-grey {
    background-color: #6b7280;
}

.background-red {
    background-color: #fdecec;
}

.background-green {
    background-color: #e9f9f0;
}

.background-pink {
    background-color: #d31e92;
}

.background-blue {
    background-color: #3578f6;
}

.purple-background {
    background-color: #6455d0 !important;
}

.green-background {
    background-color: #20c997 !important;
}

.red-background {
    background-color: #b02a37 !important;
}


.background-green-dark {
    background-color: #198754;
}


.background-yellow {
    background-color: #f1c21b;
}

.yellow-fill {
    fill: #f1c21b;
}

.white-fill {
    fill: #fff;
}

.grey-fill {
    fill: #6b7280;
}

/* ===================================== */
/* TIPOGRAFIA E TEXTO */
/* ===================================== */
body,
body p {
    color: #06063d;
}

p {
    color: #2C3135;
}

h1 {
    color: #007bff;
}

h2,
h3,
h4 {
    color: #06063d;
}

h5 {
    font-size: 1.1rem !important;
}

h6 {
    color: #d31e92;
    text-transform: uppercase;
    font-weight: 500;
}

.bold {
    font-weight: bold;
}

.uppercase {
    text-transform: uppercase;
}


.rosa-negrito {
    color: #d31e92;
    font-weight: bold;
    text-transform: uppercase;
}

.verde-negrito {
    color: #52b596;
    font-weight: bold;
    text-transform: uppercase;
}

.todos-pagamentos,
.todos-fluxos .todas-solicitacoes,
.todas-entregas {
    font-size: 0.9rem;
}

.p-small {
    margin-bottom: 5px;
    font-size: 0.8em;
}

.date {
    font-size: 12px;
    color: rgb(109, 110, 111);
}

.button-xs {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0;
    padding-bottom: 0px;
}


.p-sm-9 {
    font-size: 0.9rem;
}

.p-sm-8 {
    font-size: 0.8rem;
}


.p-sm-7 {
    font-size: 0.75rem;
}


/* ------------------- */
/* FORM ERRORS */
/* ------------------- */
.errorlist {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
    list-style: none;
    padding-left: 0;
}

.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
}

/* ------------------- */
/* ICONs */
/* ------------------- */
.icon-circle,
.icon-circle-grey,
.icon-circle-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
}



.icon-circle:hover {
    background-color: #193666 !important;

}

.icon-circle-grey:hover {
    background-color: #cecece !important;

}


/* small */
.icon-circle-small,
.oc-circle-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.icon-circle-small:hover {
    background-color: #193666 !important;
}



.cursor-show {
    cursor: pointer;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: #999;
}

.breadcrumb {
    background-color: TRANSPARENT;
}


/* ===================================== */
/* SIDEBAR (ChatGPT-like)                */
/* ===================================== */

:root {
    --sidebar-w: 50px;

    /* your light background */
    --sb-bg: #e9ecf2;
    --sb-border: #d6dbe6;

    /* icon colors (grey) */
    --sb-icon: #6b7280;
    /* slate/grey */
    --sb-icon-hover: #374151;
    /* darker grey */
    --sb-icon-active: #111827;
    /* near-black */

    /* hover/active backgrounds */
    --sb-hover-bg: rgba(17, 24, 39, 0.06);
    /* subtle grey */
    --sb-active-bg: rgba(17, 24, 39, 0.08);

    /* active indicator */
    --sb-indicator: #111827;
    /* left bar color */
}

/* sidebar container */
.app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-w);
    height: 100vh;
    z-index: 1040;

    background: var(--sb-bg);
    border-right: 1px solid var(--sb-border);

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 8px 0;
}

/* top logo area */
.app-sidebar__top {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 6px;
}

.app-sidebar__brand {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.app-sidebar__brand:hover {
    background: var(--sb-hover-bg);
}

/* nav stack */
.app-sidebar__nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

/* item */
.app-sidebar__item {
    width: 100%;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    text-decoration: none;

    color: var(--sb-icon);

    /* ChatGPT-like active indicator (left bar) */
    border-left: 3px solid transparent;

    transition: background .12s ease, color .12s ease;
}

.app-sidebar__item:hover {
    background: var(--sb-hover-bg);
    color: var(--sb-icon-hover);
}

.app-sidebar__item.is-active {
    background: var(--sb-active-bg);
    color: var(--sb-icon-active);
    border-left-color: var(--sb-indicator);
}

/* make SVG icons follow currentColor */
.app-sidebar__item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* divider */
.app-sidebar__divider {
    width: 60%;
    height: 1px;
    background: var(--sb-border);
    margin: 6px 0;
}

/* bottom section */
.app-sidebar__bottom {
    margin-top: auto;
    width: 100%;
    padding-bottom: 6px;
}

.app-sidebar__logout {
    width: 100%;
    height: 44px;

    background: transparent;
    border: none;
    border-left: 3px solid transparent;

    color: #9ca3af;
    /* lighter grey */
    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.app-sidebar__logout:hover {
    background: rgba(180, 35, 24, .08);
    color: #b42318;
    border-left-color: #b42318;
}

/* (optional) avatar-style circle at bottom like ChatGPT */
.app-sidebar__avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    /* background: #3b82f6; */
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, .10);
}

/* push content on lg+ */
@media (min-width: 992px) {
    body.has-sidebar .container-fluid {
        padding-left: calc(var(--sidebar-w) + 12px);
    }

    body.has-sidebar .navbar.sticky-top {
        margin-left: var(--sidebar-w);
    }
}

/* Tooltip polish (Bootstrap 4) */
.tooltip-inner {
    border-radius: 10px;
    padding: 6px 10px;
}


/* ===================================== */
/* LINKS */
/* ===================================== */
a {
    color: #d31e92;
    font-weight: 500;
}

a:hover {
    color: #7f0551;
}

/* ===================================== */
/* BADGES */
/* ===================================== */
.compras .badge {
    font-size: 90%;
}

.badge-sm {
    font-size: 0.60rem !important;
    padding: 0.35em 0.5em;
    border-radius: 10px;
}

.badge-warning {
    background-color: #fbcc56;
}

.badge-success {
    background-color: #54ad6d;
}

.red-badge {
    background-color: #FFF1EF;
    border: 1px solid #FF958A;
    color: #FF958A !important;
    font-weight: normal;
    /* padding-bottom: 1px;
    margin-bottom: 1px; */
}

.btn.red-badge:hover {
    background-color: #f9c7c2;
    color: #f76f69 !important;
}


.red-badge-button:hover {
    background-color: #fcdad6;
    border: 2px solid #ef6660;
    font-weight: bold !important;
}

.red-badge svg,
.badge-red {
    fill: #FF958A;
}

.green-badge {
    background-color: #EDFFF2;
    border: 1px solid #6BA98E;
    color: #6BA98E !important;
    font-weight: normal;
}

.green-badge-button:hover {
    background-color: #daefe1 !important;
    font-weight: bold !important;
    border: 2px solid #3bbc81;
}

.botao-sim,
.botao-nao {
    border: 1px solid #c1c1c1 !important;
}

.botao-sim:hover {
    background-color: #dddddd;
    font-weight: bold !important;
    border: 1px solid #c1c1c1 !important;
}

.botao-nao:hover {
    background-color: #dddddd;
    border: 1px solid #c1c1c1 !important;
    font-weight: bold !important;
}

.green-badge svg,
.badge-green {
    fill: #6BA98E;
}

.yellow-badge {
    background-color: #F2EBD1;
    border: 1px solid #F4CD27;
    color: black !important;
    font-weight: normal;
}

.blue-badge {
    background-color: #cbe3f7;
    border: 1px solid #007bff;
    color: #007bff !important;
    font-weight: normal;
}


.purple-badge {
    background-color: #cbb7d9;
    border: 1px solid #4d4892;
    color: #4d4892 !important;
    font-weight: normal;
}

.badge-products {
    border: 1px solid grey;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
}



.icon-circle:hover {
    background-color: #193666 !important;

}





/* ===================================== */
/* BOTÕES */
/* ===================================== */
.btn-dark.active,
.btn-dark:active {
    background-color: #343a40;
    color: #fff;
    border-color: #343a40;
}

.btn-outline-secondary {
    color: #343a40;
}

.btn-pagamento,
.btn-xsm {
    font-size: 0.7rem !important;
    padding: 4px;
}

.btn-pink {
    background-color: #d31e92;
    border-color: #d31e92;
    color: #fff;
}

.btn-pink:hover,
.btn-pink:focus,
.btn-pink:active {
    background-color: #7f0551;
    border-color: #7f0551;
    color: #fff;
}

#btn-notification {
    cursor: default;
    color: #212529;
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

.filtro-button:hover {
    background-color: #d31e92;
    border-color: #d31e92;
}

.filtro-button:hover svg {
    fill: white;
}


.limpar-filtro {
    width: 100px;
    margin-left: 10px;
}

.card-header-sm {
    padding: 0.5rem;
}

#pagamentos .btn-sm {
    padding: .15rem .3rem;
    font-size: 0.75rem !important;
}


.btn-anexo-locacao {
    background-color: #fff;
}

/* ===================================== */
/* UTILITÁRIOS */
/* ===================================== */
.margin-0 {
    margin: 0;
}

.padding-0 {
    padding: 0 !important;
}

.text-right {
    text-align: right;
}

.cursor-pointer {
    cursor: pointer;
}

.text-decoration-none,
.text-decoration-none:hover {
    text-decoration: none !important;
}

.hr-dark-grey {
    border-top: 1px solid rgba(0, 0, 0, .4);
}

.js-extrato-line .border-none {
    border: 0px transparent solid !important;
}

/* ===================================== */
/* ESTRUTURA E FORMULÁRIOS */
/* ===================================== */
body.compras {
    font-size: 0.9rem;
    background-color: #f5f7f9;
}

.logo-company {
    object-fit: contain;
    max-width: 200px;
    text-align: center;
}

.pedido-borda {
    border: 0.75px solid #dee2e6;
    padding: .75rem;
}

.pedido-borda p {
    margin: 0;
}

.border-blue {
    border: 0.75px solid #06063d;
}

.form-group {
    margin-bottom: 5px;
    margin-right: 10px;
    margin-top: 5px;
}

.pg-search .div_id_purchased_from {
    min-width: 200px;
}

span.asteriskField {
    color: #d31e92;
}

.errors-formset {
    color: #d31e92;
    font-size: 12px;
    font-weight: bold;
}

.form-altura input {
    height: 32px;
}

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

/* ===================================== */
/* USUÁRIO / AVATAR */
/* ===================================== */
.circle-name {
    height: 25px;
    width: 25px;
    border-radius: 50%;
    padding: 2px 8px;
    margin-right: 10px;
    display: inline-block;
    color: #06063d !important;
    font-weight: bold !important;
}

/* ===================================== */
/* HOVERS / ANIMAÇÕES */
/* ===================================== */
.contact-svg:hover,
.pink-fill:hover {
    transform: scale(1.2);
    animation-duration: 1s;
}

.pink-fill-no-hover:hover {
    transform: scale(1);
}


/* ===================================== */
/* TABELAS */
/* ===================================== */
.tableheader {
    color: #495057;
    background-color: #e9ecef;
    border-color: #dee2e6;
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    border-top: 2px solid #dee2e6;
    padding-top: .5rem;
    padding-bottom: .5rem;
    font-weight: bold;
    text-align: left;
}

.tableheader div,
.table-row-div div {
    padding: 0;
}

.table-row-div {
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
}

.row-hover:hover {
    background-color: #dcdfe2;
}

.table-row-header {
    color: #495057;
    background-color: #e9ecef;
    border-color: #dee2e6;
    border-bottom: 2px solid #dee2e6;
    border-top: 1px solid #dee2e6;
    vertical-align: bottom;
    padding: .75rem 0;
    font-weight: bold;
}

.table-row-content {
    padding: .75rem 0;
    vertical-align: top;
    border-bottom: 1px solid #dee2e6;
}

.col-0-5 {
    flex: 0 0 6%;
    max-width: 5%;
    position: relative;
    width: 100%;
    padding: 0 10px;
}

.col-1-5 {
    flex: 0 0 12.333333%;
    max-width: 12.333333%;
    position: relative;
    width: 100%;
    padding: 0 10px;
}

.todos-pagamentos .col-1 {
    padding: 0 10px;
}


/* ===================================== */
/* FILTRO PESQUISA */
/* ===================================== */

.filtro-pesquisa .card-header-sm {
    padding: 0.5rem;
    font-size: 0.85rem !important;
}

.filtro-pesquisa .card-body {
    padding: 0.5rem;
}

.filtro-pesquisa .card-body .form-group {
    margin-top: 0;
    margin-bottom: 0;
}


.filtro-pesquisa .card-body .form-group .textinput.form-control,
.filtro-pesquisa .card-body .form-group .select.form-control,
.filtro-pesquisa .card-body .form-group .dateinput.form-control,
.filtro-pesquisa .card-body .form-group .form-select.form-control {
    font-size: 0.85rem !important;
    height: calc(1.5em + .6rem + 2px);
}

.filtro-pesquisa .card-body label {
    font-size: 0.65rem !important;
    margin-bottom: 0;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #8e9397;
    margin-bottom: 5px;
}



.filtro-pesquisa .select2-selection,
.select2-selection .select2-selection--multiple,
.select2-container--default .select2-selection--single {
    font-size: 0.8rem !important;
    min-height: 32px !important;
    margin-bottom: 0 !important;
}

.fornecedor-search {
    padding: 0.5rem;
}

.fornecedor-search .textinput {
    height: 32px !important;
}

.locacao-pesquisa .form-control {
    height: 32px !important;
}

/* ===================================== */
/* FLUXO */
/* ===================================== */
.fluxo-table-row div,
.fluxo-table-row form {
    display: flex;
}

.fluxo-table-row-edit select {
    min-width: 90px;
}

.fluxo-table-row-edit .form-group {
    margin-right: 35px;
}

.fluxo-table-row-edit .oc-col,
.table-row-content .oc-col {
    padding-right: 0px;
}

.fluxo-table-row-edit .oc-col {
    max-width: 90px;
}

.table-row-content .oc-col {
    max-width: 60px;
}

#fluxo .Sim {
    color: #52b596;
}

#fluxo .Nao,
#fluxo .nao,
.todas-entregas .Nao,
.todas-entregas .nao,
.nao,
.Nao {
    color: #dd6c58;
    font-weight: bold;
}

.todos-fluxos .btn-Nao {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.todos-fluxos .btn-Nao:hover {
    background-color: #54ad6d;
}

.todos-fluxos .btn-Nao-disabled {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.todos-fluxos .btn-Sim-disabled {
    color: #6c757d;
    background-color: none;
    border-color: #6c757d;
}

/* ===================================== */
/* SELECT2 */
/* ===================================== */
/* .compras .select2-container--default .select2-selection--single,
.select2-selection .select2-selection--multiple {
    height: 38px;
    border: 1px solid #ced4da;
    margin-bottom: 5px;
}

.compras .topo-add-oc .select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    margin-bottom: 0;
} */


/* ===================================== */
/* COMPONENTES VISUAIS E OC */
/* ===================================== */
.view-oc .card-header {
    padding: 0.5rem 1.25rem;
    min-height: 48px;
}

.view-oc h5 {
    margin-bottom: 0;
}

.btn-noclick,
.no-click {
    cursor: default !important;
}

.entregaobs-form .form-group {
    margin-top: 0;
}

.entregaobs p,
.comentarios p {
    margin-bottom: 0.5rem;
}

.image-box {
    border: solid 1px #c0c0c6;
    border-radius: 10px;
    padding: 10px;
    height: 100%;
}

.image-box:hover {
    border: solid 2px #c0c0c6;
}

.img-modal .modal-body {
    max-height: 75vh;
    overflow-y: auto;
}

.img-modal .modal-body embed {
    height: 75vh;
}

.img-modal .carousel-control-next-icon,
.img-modal .carousel-control-prev-icon,
.navbar-light .navbar-toggler-icon {
    filter: invert(100%);
}

.modal-image {
    transition: transform 0.2s ease;
    cursor: grab;
}

.selected-thumb {
    border: 2px solid #007bff;
    border-radius: 4px;
    padding: 2px;
}


.btn-image {
    border-color: #86868e;
    font-size: 12px;
}

.btn-image:hover {
    transition: background-color 0.5s;
    background-color: #86868e;
    color: #fff;
    border-color: #86868e;
}

.btn-image a {
    color: #86868e;
}

.btn-image:hover a {
    color: #fff;
    text-decoration: none;
}

.btn-image:hover svg {
    fill: #fff;
}

.modal-body-oc-preview {
    background-color: #e8ecef;
}

.oc-section {
    background-color: #fff;
    padding: 15px 10px;
    border-radius: 10px;
}


/* ======================================================= */
/* 09. FLUXO                                               */
/* ======================================================= */
.card-header-sm {
    padding: 0.5rem;
}

#fluxo .Sim {
    color: #52b596;
}

#fluxo .Nao,
#fluxo .nao,
.todas-entregas .Nao,
.todas-entregas .nao,
.nao,
.Nao {
    color: #dd6c58;
    font-weight: bold;
}

.todos-fluxos .btn-Nao {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.todos-fluxos .btn-Nao:hover {
    background-color: #54ad6d;
}

.todos-fluxos .btn-Nao-disabled {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.todos-fluxos .btn-Sim-disabled {
    color: #6c757d;
    background-color: none;
    border-color: #6c757d;
}

.todos-fluxos .btn-Sim {}

.todos-fluxos .btn-Sim:hover {}

#fluxo ul {
    padding-inline-start: 15px;
}

#div_id_comment {
    margin: 0;
}

.btn-concluido-warning {
    cursor: default !important;
}

.btn-concluido-warning:hover {
    cursor: default !important;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-concluido-success {
    cursor: default !important;
}

.btn-concluido-success:hover {
    cursor: default !important;
    color: #28a745;
    background-color: transparent;
    border-color: #28a745;
}

/* ======================================================= */
/* 10. OCS                                                 */
/* ======================================================= */
.purchases .all-ocs {}

.todas-ocs .ocs-titulo p,
.all-ocs-empresa p {
    margin: 0;
    text-transform: uppercase;
}

.button-group-filter-all .btn {
    border-color: #d3d9df;
}

.button-group-filter-all a,
.button-group-filter-all a:hover {
    color: #212529;
    text-decoration: none;
    font-weight: 400;
}

.ocs-grupo,
.ocs-grupo-urgente {
    margin-bottom: 10px;
    border-radius: 10px;
    padding: 20px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.ocs-grupo {
    background-color: white;
}

.ocs-grupo-urgente {
    border: 1px solid #007bff !important;
    /* background-color: #f0edf7; */
    /* background-color: #dce7f4; */
}

/* ======================================================= */
/* 11. FORMULÁRIOS GERAIS E SELECT2                        */
/* ======================================================= */
.search label,
.todas-ocs label,
.user label,
.painel-usuario label,
#addSolicitacao label,
.solicitacao-edit label,
.todas-entregas label,
.modal-body-oc-preview label,
.oc_da_solicitacao label,
#addCC label,
.dp label,
.label-uppercase,
#lembrete-filter label {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #8e9397;
    margin-bottom: 5px;
}



.pesquisa-ocs #div_id_delivery_location {
    margin-bottom: 5px !important;
}

.all-ocs span {
    color: #8e9397;
}

.arrow-down {
    color: #4364e7;
    width: 25px;
}

.pesquisa-ocs .card-body {
    padding: 1em;
}

.pesquisa-ocs .card-body label {
    text-transform: uppercase;
    font-size: 0.6rem;
    color: #8e9397;
    margin-bottom: 0;
}

.pesquisa-ocs .form-group {
    margin: 0;
}

.pesquisa-ocs .form-control {
    font-size: 0.9rem;
    padding: 0.1rem 0.2rem;
}

.pesquisa-ocs .select2-container--default .select2-selection--single {
    height: 35.59px;
    border: 1px solid #ced4da;
    margin-bottom: 0;
}

.adicionar-oc label,
.view-oc label,
.solicitacao label,
.solicitacoes label,
.pagamento label,
.aprovacao label {
    margin-bottom: 5px;
    font-size: 0.8em;
    text-transform: uppercase;
    color: #8e9397;
}

.createdby {
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.entregas-search #div_id_purchased_from,
.entregas-search #div_id_delivery_location {
    margin-bottom: 0;
}


#lembrete-filter .form-control,
#lembrete-filter .custom-select,
#lembrete-filter input.form-control,
#lembrete-filter select.form-control {
    height: 38px;
    /* pick 34px if you want tighter */
    min-height: 38px;
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    /* match your current look */
}

/* Flatpickr input can get weird padding; force it */
#lembrete-filter .flatpickr,
#lembrete-filter input.flatpickr-input {
    height: 38px;
    min-height: 38px;
}

/* Select2 single select height */
#lembrete-filter .select2-container .select2-selection--single {
    height: 38px;
    min-height: 38px;
    display: flex;
    align-items: center;
}

/* Select2 text (center vertically) */
#lembrete-filter .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding-left: 0.75rem;
    padding-right: 2rem;
    /* room for arrow */
}

/* Select2 arrow (center vertically) */
#lembrete-filter .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

/* If you ever use select2 multi */
#lembrete-filter .select2-container .select2-selection--multiple {
    min-height: 38px;
    padding: 0.1rem 0.5rem;
}

#lembrete-filter .select2-container .select2-selection--multiple .select2-search__field {
    margin-top: 6px;
}


/* ======================================================= */
/* ADICIONAR OC                 */
/* ======================================================= */
.add-oc-button {
    border: 1px solid #d31e92;
    padding: 5px;
    border-radius: 5px;
    color: #d31e92;
}

.add-oc-button:hover {
    background-color: #d31e92;
    border: 1px solid #d31e92;
    padding: 5px;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
}

.add-oc-button:hover svg {
    fill: #fff;
}

/* LINHA PRODUTO */

.table-produto td,
.table-produto th {
    padding: 0;
    vertical-align: middle;
}


.table-produto label {
    margin-bottom: 0;
}


.amount {
    height: 38px;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    margin-bottom: 0;
}

#subtotal,
#total {
    transition: background-color 0.3s ease;
}

#subtotal.flash,
#total.flash {
    background-color: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}


.add-form-row,
.remove-form-row {
    padding: 0.7rem 0.5rem;
    font-size: 0.9rem;
    line-height: 1;
}

.parte-financeira-oc .form-group {
    margin-top: 0;
}

.card+.card {
    margin-top: 1rem;
}

.modal-dialog {
    max-width: 1200px;
}

.card-title {
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0d6efd;
}

.totals-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
}

.modal-content {
    border-radius: 0.5rem;
    padding: 1rem;
}

select[disabled] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* ======================================================= */
/* 13. FORNECEDORES E PAINEL USUÁRIO                       */
/* ======================================================= */
.fornecedor-painel,
.painel-usuarios-totais,
.totais-usuario {
    background-color: white;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.fornecedor-painel {
    padding: 20px;
}

.fornecedor-painel .p-small {
    text-transform: uppercase;
    margin: 0;
}

#novo-fornecedor .card-body {
    padding-left: 20px;
}

.painel-usuarios-totais {
    padding: 10px;
}

.totais-usuario {
    padding: 10px;
    min-height: 110px;
}

.totais-usuario h2 {
    color: #007bff;
}

.totais-usuario label {
    color: #06063d;
}

/* ======================================================= */
/* 14. PRODUTO, PAGAMENTOS, SOLICITAÇÕES                   */
/* ======================================================= */
#div_id_name {
    margin-bottom: 0;
}

#produto-filter .select2-container {
    min-width: 250px;
}

.entrega-oc-status {
    font-size: 0.7rem;
    color: #8e9397;
    text-transform: uppercase;
    background-color: #fff;
    border-radius: 3px;
    font-weight: bold;
    padding: 2px;
}

#div_id_empreendimento .select2-container,
#div_id_centrocusto .select2-container {
    min-width: 250px;
}

.pagamento-filtro #div_id_purchased_from {
    margin-bottom: 0;
}

.pagamento-filtro #id_purchased_from {
    max-width: 20em !important;
}

.solicitante-canteiro .card-body {
    padding: 10px 20px;
}

.solicitante-canteiro .form-group {
    margin-top: 0;
}

/* thumbnail ativo modal */
.active-thumb {
    border: 2px solid #007bff;
    border-radius: 4px;
}

/* ======================================================= */
/* 15. TODAS OCS                                            */
/* ======================================================= */

/* OC card */
.oc-card {
    border: 1px solid #e9ecf2;
    background-color: #fff;
    border-radius: 18px;
    padding: 18px;
}

.oc-divider {
    border-top: 1px solid #e9e9ee;
    margin: 12px 0;
}

/* ------------------------- */
/* Pills (generic, unified)  */
/* ------------------------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1;
    font-size: .85rem;
}

.pill svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Palette variants */
.pill-pending {
    background: #ffe9ed;
    color: #b02a37;
}

.pill-success {
    background: #e9f9f0;
    color: #198754;
}

.pill-warning {
    background: #fff3e6;
    color: #b76e00;
}

.pill-pink {
    background: #fde6f4;
    color: #d31e92;
}

.pill-danger {
    background: #ffe8e8;
    color: #9f1d2e;
}

.pill-info {
    background: #e6f0ff;
    color: #0056b3;
}

/* Section label */
.section-label {
    font-size: .8rem;
    letter-spacing: .04em;
    color: #6b7280;
    font-weight: 700;
}

/* Chips (produtos) */
.chip {
    display: inline-block;
    background: #fff;
    border: 1px solid #eee;
    padding: .25rem .5rem;
    border-radius: 8px;
    margin: 0 .35rem .35rem 0;
    font-weight: 500;
}

/* Meta text */
.meta {
    color: #7c8591;
    font-size: .85rem;
}

/* Avatar circle */
.circle-name {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #001b3a;
    font-weight: 800;
}

/* ------------------------- */
/* Filter Card               */
/* ------------------------- */
.filter-card,
.card-redondo {
    background: #fff;
    border: 1px solid #e9ecf2;
    border-radius: 14px;
    overflow: hidden;
}

.filter-card .fc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #eef1f6;
}

.filter-card .fc-title {
    font-weight: 800;
    letter-spacing: .2px;
}

/* Sections */
.fc-section {
    padding: 12px 14px;
}

.fc-section+.fc-section {
    border-top: 1px solid #f3f4f7;
}

.fc-section label,
.fc-label {
    font-size: .8rem;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: .35rem;
}

/* Segmented buttons */
.segment {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.segment .seg-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .38rem .7rem;
    border-radius: 999px;
    border: 1px solid #cfd6e6;
    background: #fff;
    color: #4b5563;
    font-weight: 600;
    line-height: 1;
}

.segment .seg-btn .count {
    background: #007bff10;
    color: #0056b3;
    border-radius: 999px;
    padding: .1rem .4rem;
    font-weight: 700;
}

.segment input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segment .seg-btn.active {
    border-color: #007bff;
    color: #0056b3;
    background: #e6f0ff;
}

/* Inputs */
.form-control,
.form-select {
    border-radius: 10px;
}

/* Footer row */
.fc-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* Native selects focus */
select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 .1rem rgba(0, 123, 255, .12);
}

select.filled {
    border-color: #007bff;
}

/* Select2 (single & multiple) */
.select2-container--default .select2-selection.filled {
    border-color: #007bff !important;
    box-shadow: 0 0 0 .1rem rgba(0, 123, 255, .12) !important;
    border-width: 1px;
    border-style: solid;
}

/* Stronger selectors so Bootstrap doesn’t override */
.fc-form select.filled,
.form-select.filled {
    border-color: #007bff !important;
    box-shadow: 0 0 0 .1rem rgba(0, 123, 255, .12) !important;
}

/* Stacking context helpers */
.flatpickr-calendar {
    z-index: 9999 !important;
}

.select2-container--open {
    z-index: 10000 !important;
}

/* ======================================================= */
/* 16. TABLE HEADERS & TABLE WRAPPERS                      */
/* ======================================================= */

/* Card + table */
.table-card {
    background: #fff;
    border: 1px solid #e9ecf2;
    border-radius: 14px;
    margin-top: 16px;
}

.table-card .table {
    margin-bottom: 0;
}

/* Header cells */
.table-card thead th {
    background: #d9e1ee;
    color: #253042;
    font-weight: 700;
    border-bottom: 1px solid #d6d9e0;
    padding: .9rem .8rem;
    vertical-align: middle;
    white-space: nowrap;
}

/* Body cells */
.table-card tbody td {
    padding: .8rem .8rem;
    vertical-align: middle;
    border-top: 1px solid #f1f3f8;
}

/* Row hover */
.table-card tbody tr:hover {
    background: #fafbff;
}

/* Sticky header support */
.table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Responsive wrapper (keeps rounded corners) */
.table-responsive-rounded {
    border: 1px solid #e9ecf2;
    border-radius: 14px;
    overflow-x: auto;
    /* horizontal scroll when needed */
    overflow-y: hidden;
    /* avoid clipping tooltips */
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 1200px) {
    .table-responsive-rounded {
        overflow-x: visible;
    }
}

/* Small screens (shared) */
@media (max-width: 992px) {

    .table-card thead th,
    .table-card tbody td {
        padding: .6rem .75rem;
    }
}


/* Generic card wrapper for DIV-based lists (use anywhere) */
.list-card {
    background: #fff;
    border: 1px solid #e9ecf2;
    border-radius: 14px;
    overflow: hidden;
    /* clip rounded corners */
}


/* neutralize BS4 .row negative margins inside the card */
.list-card .row {
    margin-left: 0;
    margin-right: 0;
}

/* Header + rows (shared) */
.list-card .table-row-header {
    background: #d9e1ee;
    color: #253042;
    font-weight: 700;
    border-bottom: 1px solid #d6d9e0;
    padding: .9rem .8rem;
    white-space: nowrap;
}

.list-card .table-row-content {
    padding: .8rem .8rem;
    border-bottom: 1px solid #eef2f7;
}

.list-card .table-row-content:nth-child(even) {
    background: #fbfcff;
}

.list-card .table-row-content:hover {
    background: #f2f6ff;
}

/* optional rounding on the header edge cells */
.list-card .table-row-header>div:first-child {
    border-top-left-radius: 14px;
}

.list-card .table-row-header>div:last-child {
    border-top-right-radius: 14px;
}

/* cell padding consistency */
.list-card .table-row-header>div,
.list-card .table-row-content>div {
    padding-left: .25rem;
    padding-right: .25rem;
}


/* empresas e empreendimentos linha dupla ao criar */
.list-card .item-pair:nth-child(odd) .table-row-content {
    background: #fbfcff;
    /* 1ª linha sombreada */
}

/* ensure inline edit card is clickable */
.empresa-collapse,
.empresa-collapse .card,
.empresa-collapse .card-body,
.empresa-collapse input,
.empresa-collapse label,
.empresa-collapse select,
.empresa-collapse textarea,
.empresa-collapse button {
    pointer-events: auto;
}
.empresa-collapse .card {
    position: relative;
    z-index: 1;
}

/* fix checkbox hitbox inside inline edit */
.empresa-collapse .form-check {
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.empresa-collapse .form-check-input {
    position: static;
    margin: 0;
}
.empresa-collapse .form-check-label {
    cursor: pointer;
    margin: 0;
}

/* fallback: when crispy doesn't wrap with .form-check */
.empresa-collapse input[type="checkbox"] {
    position: static;
    margin: 0;
}
.empresa-collapse label {
    padding-left: 0;
}


/* no zebre  */
.list-card.no-zebra .table-row-content:hover,
.list-card.no-zebra .table-row-content:focus-within,
.list-card.no-zebra .table-row-content:active {
    background: #fff !important;
}

/* responsive tweak */
@media (max-width:992px) {

    .list-card .table-row-header,
    .list-card .table-row-content {
        padding: .6rem .75rem;
    }
}

/* ======================================================= */
/* 16b. FLUXOS TABLE (scoped tweaks)                       */
/* ======================================================= */


/* Inner status cells you marked */
.fluxo-table .fluxo-cell {
    padding: .5rem;
}


.todos-pagamentos .icone-pequeno,
.todos-pagamentos .atencao-entrega-pequeno {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.todos-pagamentos .icone-aprovacao {
    padding-left: .5rem !important;
    padding-right: .5rem !important;
}



/* ======================================================= */
/* 16c. LIST (DIV-BASED) HEADERS & WRAPPER                 */
/* ======================================================= */
/* === Entregas (DIV-based) — match table look without touching widths/buttons === */

/* Wrap the whole list like a card (keeps your current structure) */
.todas-entregas {
    background: #fff;
    border: 1px solid #e9ecf2;
    border-radius: 14px;
    overflow: hidden;
    /* keeps rounded corners */
}

/* Header bar */
.table-row-header {
    background: #d9e1ee;
    /* same blue-grey */
    color: #253042;
    font-weight: 700;
    border-bottom: 1px solid #d6d9e0;
    padding: .9rem .8rem;
    white-space: nowrap;
}

/* Round top corners on first/last header columns (div layout) */
.table-row-header>div:first-child {
    border-top-left-radius: 14px;
}

.table-row-header>div:last-child {
    border-top-right-radius: 14px;
}

/* Rows */
.table-row-content {
    padding: .8rem .8rem;
    border-bottom: 1px solid #eef2f7;
}

.table-row-content:nth-child(even) {
    background: #fbfcff;
}

/* zebra like solicitações */
.table-row-content:hover {
    background: #f2f6ff;
}

/* Cells spacing (mirror px-1 feel) */
.table-row-header>div,
.table-row-content>div {
    padding-left: .25rem;
    padding-right: .25rem;
}

/* Status pill alignment & meta text */
.table-row-content .meta {
    color: #6b7280;
}



/* Small screens: slightly tighter padding only */
@media (max-width: 992px) {

    .table-row-header,
    .table-row-content {
        padding: .6rem .75rem;
    }
}

/* --- Filter tweaks to match spacing on other pages (keeps your filter-card) --- */
#entrega-filter .row>[class*="col-"] {
    margin-bottom: .5rem;
}

/* tighter vertical gap */
.fc-header {
    padding: 10px 14px;
    border-bottom: 1px solid #eef1f6;
}

.fc-title {
    font-weight: 800;
    letter-spacing: .2px;
}

.fc-section {
    padding: 12px 14px;
}

/* Keep BS4 focus ring for selects consistent with other pages */
.fc-form select.filled,
.form-select.filled {
    border-color: #007bff !important;
    box-shadow: 0 0 0 .1rem rgba(0, 123, 255, .12) !important;
}

/* Ensure pickers/Select2 overlay above cards if you use them here */
.flatpickr-calendar {
    z-index: 9999 !important;
}

.select2-container--open {
    z-index: 10000 !important;
}

/* Match the subtle Bootstrap 4 focus look, but for "filled" state */
.fc-form .form-control.is-filled,
.fc-form .custom-select.is-filled {
    border-color: #4f83ff;
    box-shadow: 0 0 0 .2rem rgba(79, 131, 255, .25);
}

/* Select2 (single & multiple) */
/* Apply highlight for both .filled and .is-filled states */
.fc-form .form-control.filled,
.fc-form .form-control.is-filled,
.fc-form .custom-select.filled,
.fc-form .custom-select.is-filled,
.fc-form .form-select.filled,
.fc-form .form-select.is-filled {
    border-color: #4f83ff;
    box-shadow: 0 0 0 .2rem rgba(79, 131, 255, .25);
}

/* remove the previous group-outline, if you added it */
.fc-form .form-group.selected-filter,
.fc-form .form-check.selected-filter {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
}
