/* Colors */
:root {
    --main-color: #6b4a93;
    --hover-color: #ED7D31;
    --error-color: #FF0000;
    --success-color: #76b82a;
    --warning-color: #FFC000;
    --info-color: #92D050;
    --bs-violet: #6b4a93;
    --bs-violet-rgb: 107, 74, 147;
    --bs-vert-rgb: 0, 176, 80;
    --bs-orange-rgb: 240, 207, 74;
    --bs-blue: #0000ff;
}

#main,
main {
    background: var(--main-color);
}

.bg-decombat {
    background-color: var(--main-color);
}

.bg-decombat-fact2 {
    background-color: rgba(107, 74, 147, 0.2);
}

.bg-decombat-fact5 {
    background-color: rgba(107, 74, 147, 0.5);
}

.color-decombat {
    color: var(--main-color);
}

#footer {
    background-color: #FFF;
}

.pagetitle h1 {
    color: #FFFFFF;
}

.table-sm {
    font-size: 75%;
}

.card {
    overflow: auto;
}

#livraisons td:nth-child(8) img {
    opacity: 0.3;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    color: #FFF !important;
    background-color: var(--main-color);
}

.credits {
    text-align: center;
    font-size: 12px;
    color: var(--warning-color);
}

/* Print Styles */
@media print {

    #header,
    #footer,
    footer,
    .footer,
    .pagetitle,
    .btn,
    .dt-buttons,
    .dataTables_filter,
    .dataTables_info,
    .dataTables_paginate,
    .dataTables_length,
    .dt-search,
    .dt-info,
    .dt-paging,
    .dt-length,
    .thead2,
    thead tr:nth-child(2),
    textarea {
        display: none !important;
    }

    body,
    #main,
    .card,
    .card-body,
    .row,
    .col-lg-12 {
        background-color: #FFF !important;
        background: #FFF !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        height: auto !important;
        display: block !important;
        width: 100% !important;
    }

    #printHeader {
        display: block !important;
        text-align: center;
        margin-bottom: 10px;
        font-size: 13px;
        font-weight: bold;
    }

    h1 {
        font-size: 20px !important;
        font-weight: bold !important;
        margin: 10px 0 !important;
    }

    table {
        width: 100% !important;
        overflow: visible !important;
    }

    .dataTables_wrapper .dataTables_scroll {
        clear: both;
    }

    .dtfc-fixed-left,
    .dtfc-fixed-right {
        display: none !important;
    }

    table.dataTable,
    table.dataTable th,
    table.dataTable td {
        width: auto !important;
        white-space: normal !important;
        vertical-align: middle !important;
        padding: 1px 4px !important;
        font-size: 10px !important;
        border: 1px solid #dee2e6 !important;
    }

    /* Column Specific Print Optimizations */
    table.dataTable td:nth-child(4),
    table.dataTable td:nth-child(9) {
        white-space: nowrap !important;
    }

    table.dataTable td:nth-child(6),
    table.dataTable td:nth-child(7),
    table.dataTable td:nth-child(8) {
        text-align: center !important;
    }

    table.dataTable td:nth-child(5) {
        max-width: 300px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .col-switch {
        display: none !important;
    }
}