.wrapper{
    background: #f4f6f9 !important;
}


@media (min-width: 1200px) {
    .container-fluid{
        max-width: 80vw !important;
    }
}


/* -- Fancybox - Inicio -- */
@media (max-width: 768px) {
    .fancybox-slide{
        padding: 10px !important;
    }
}
/* -- Fancybox - Fim -- */


.vw-25 {
    width: 25vw !important;
}

.vw-50 {
    width: 50vw !important;
}

.vw-75 {
    width: 75vw !important;
}

.vw-100 {
    height: 100vw !important;
}

.vh-25 {
    height: 25vw !important;
}

.vh-50 {
    height: 50vw !important;
}

.vh-75 {
    height: 75vw !important;
}

.vh-100 {
    height: 100vw !important;
}


/* === Remove spinner from HTML ===*/
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* ============================ */

/* Select somente leitura */
select[readonly] {
    appearance: none; /* Remove a aparência padrão do sistema */
    pointer-events: none; /* Impede interações do mouse */
    background-color: #f0f0f0; /* Cor de fundo para indicar "readonly" */
    color: #888; /* Cor de texto mais suave */
    cursor: not-allowed; /* Altera o cursor para indicar "não permitido" */
}


div.paginacao {
    margin: 20px 10px 20px 10px;
}

.page-title .row {
    padding: 10px 10px 8px 10px;
    margin-bottom: 5px;
}

.table-responsive-md tbody {
    background-color: #FFF;
}

.pagination>li>a {
    background-color: white;
    color: #337AB7;
}

.pagination>li>a:focus,
.pagination>li>a:hover,
.pagination>li>span:focus,
.pagination>li>span:hover {
    color: #337AB7;
    background-color: #eee;
    border-color: #ddd;
}

.pagination>.active>a {
    color: white;
    background-color: #337AB7 !important;
    border: solid 1px #337AB7;
}

.pagination>.active>a:hover {
    background-color: #337AB7;
    border: solid 1px #337AB7;
}


/* -- Botões da tela inicial -- */
a.botao-quadrado {
    max-width: 130px;
    min-width: 100px;
    height: 100px;
    padding-top: 10px;
    margin-top: 10px;
    /* margin-left: 10px; */
}

div.legenda-botao {
    margin-top: 3px;
    font-size: 0.8rem;
    line-height: 12px;
}

/* -- -- */
label.check-disable-field {
    font-size: 0.8rem;
    background-color: #e9ecef;
    padding: 2px 8px 2px 8px;
}


/* -- Barra de Progresso - Inicio -- */
.bar {
    --d: 1rem;       /* arrow depth */
    --gap: 0.3rem;   /* arrow thickness, gap */

    display: flex;
    margin-right: var(--d);
    margin-bottom: 5px ;
}

.bar-step {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.6rem var(--d);
    margin-right: calc(var(--d) * -1 + var(--gap));
    background: #bdbdbd;
    color: #fff;
    clip-path: polygon(
        0% 0%,
        calc(100% - var(--d)) 0%,
        100% 50%,
        calc(100% - var(--d)) 100%,
        0% 100%,
        var(--d) 50%
    );
}

.bar-step:first-child {
    clip-path: polygon(
        0% 0%,
        calc(100% - var(--d)) 0%,
        100% 50%,
        calc(100% - var(--d)) 100%,
        0% 100%
    );
}


.bar-step.active {
    background: #B7171A;
    color: #fff;
}


.bar-step.success {
    background: #8f3b3c;
    color: #fff;
}

.step-ball {
    width: 10px;
    height: 10px;
    background-color: rgb(255, 255, 255);
    border-radius: 50%;
    display: inline-block;
    animation: blink 1s infinite;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    flex-shrink: 0; /* Impede que a bola seja redimensionada em layouts flexíveis */
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Para telas menores, ajuste a margem */
@media (max-width: 768px) {
    .step-ball {
        margin-right: 2px; /* Margem menor em telas pequenas */
    }
}

/* -- Barra de Progresso - Fim -- */


/* === Menu navbar - Fix text wrapping issue === */
.navbar-nav .nav-link {
    white-space: nowrap !important;
    word-break: keep-all !important;
}

/* Específico para Mac Safari - evitar quebra de linha */
@media screen and (-webkit-min-device-pixel-ratio: 1) {
    .navbar-nav .nav-link {
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
}
/* === Menu navbar - End === */


/* === Consprodutos - Responsive Layout === */
.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

/* Cards responsivos para produtos */
@media (max-width: 991px) {
    .card.mb-3 {
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: box-shadow 0.2s ease;
    }
    
    .card.mb-3:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
}

/* Melhoria na tabela desktop */
@media (min-width: 992px) {
    .table-responsive table {
        font-size: 0.9rem;
    }
    
    .table td.align-middle {
        vertical-align: middle !important;
    }
    
    .badge-primary {
        font-size: 0.8rem;
        padding: 0.4em 0.6em;
    }
}

/* Preços destacados */
.text-success {
    color: #28a745 !important;
}

/* Dropdown menu mobile friendly */
@media (max-width: 991px) {
    .dropdown-menu {
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
    }
    
    .dropdown-item i {
        width: 20px;
        text-align: center;
        margin-right: 8px;
    }
}
/* === Consprodutos - End === */


/* === Consclientes & Consfornecedores - Responsive Layout === */

/* Cards base styling */
.cliente-card,
.fornecedor-card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid #dee2e6;
}

.cliente-card:hover,
.fornecedor-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Badge styling variations */
.badge-success {
    background-color: #28a745;
    font-size: 0.8rem;
    padding: 0.4em 0.6em;
}

/* Desktop table improvements */
@media (min-width: 992px) {
    .table td {
        vertical-align: middle;
    }
    
    .table .badge {
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    /* Different badge colors for different entities */
    .badge-primary {
        background-color: #007bff;
    }
    
    .badge-success {
        background-color: #28a745;
    }
}

/* Mobile optimizations */
@media (max-width: 991px) {
    .cliente-card,
    .fornecedor-card {
        margin-bottom: 1rem;
    }
    
    .cliente-card .card-title,
    .fornecedor-card .card-title {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.3;
    }
    
    .cliente-card .card-text,
    .fornecedor-card .card-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Improved spacing for mobile cards */
    .cliente-card .card-body,
    .fornecedor-card .card-body {
        padding: 1rem;
    }
    
    /* Better touch targets for mobile */
    .dropdown-toggle {
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
    }
}

/* Document type styling */
.text-monospace {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

/* Responsive text truncation */
@media (max-width: 576px) {
    .cliente-card .card-title h6,
    .fornecedor-card .card-title h6 {
        font-size: 0.95rem;
    }
    
    .text-monospace {
        font-size: 0.8rem;
        word-break: break-all;
    }
}

/* Improved dropdown for consultation pages */
.cliente-card .dropdown-menu,
.fornecedor-card .dropdown-menu {
    min-width: 150px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,.15);
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}

.cliente-card .dropdown-item,
.fornecedor-card .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.cliente-card .dropdown-item:hover,
.fornecedor-card .dropdown-item:hover {
    background-color: #f8f9fa;
}

.cliente-card .dropdown-item i,
.fornecedor-card .dropdown-item i {
    width: 16px;
    text-align: center;
    margin-right: 8px;
}

/* === Consclientes & Consfornecedores - End === */

/* Animação de piscar - funciona com qualquer cor */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.2;
    }
}

.blink {
    animation: blink 1s infinite;
}

/* Variações de velocidade (opcional) */
.blink-fast {
    animation: blink 0.5s infinite;
}

.blink-slow {
    animation: blink 2s infinite;
}

/* Variação suave (opcional) */
.blink-smooth {
    animation: blink 1.5s ease-in-out infinite;
}