/* ================================
   RESET
================================ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f6fa;
}

/* ================================
   LAYOUT BASE
================================ */
.sidebar {
    width: 240px;
    min-height: 100vh;
    background-color: #212529;
    color: #ffffff;
    padding: 20px;
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .nav-link {
    color: #ced4da;
    padding: 10px 0;
    text-decoration: none;
    display: block;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #ffffff;
}

/* ================================
   CONTEÃƒÆ’Ã…Â¡DO
================================ */
.content {
    padding: 20px;
    width: 100%;
}

.content-header {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.content-body {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
}

/* ================================
   STATUS
================================ */
.badge.status-badge,
.status-badge,
.table .badge.status-badge,
.table .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.5rem;
    padding: 0.35rem 0.7rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.18) !important;
    background-image: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-text-fill-color: currentColor !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    forced-color-adjust: none;
}

.status-pendente,
.badge.status-pendente {
    background: #fd7e14 none !important;
    background-color: #fd7e14 !important;
    color: #212529 !important;
    border-color: #c35d08 !important;
}

.status-producao,
.badge.status-producao {
    background: #8bc34a none !important;
    background-color: #8bc34a !important;
    color: #1f2d00 !important;
    border-color: #5b8b24 !important;
}

.status-producao-parcial,
.badge.status-producao-parcial {
    background: #ffc107 none !important;
    background-color: #ffc107 !important;
    color: #212529 !important;
    border-color: #c99700 !important;
}

.status-expedicao-parcial,
.badge.status-expedicao-parcial {
    background: #0d6efd none !important;
    background-color: #0d6efd !important;
    color: #ffffff !important;
    border-color: #084298 !important;
}

.status-expedicao,
.badge.status-expedicao {
    background: #146c43 none !important;
    background-color: #146c43 !important;
    color: #ffffff !important;
    border-color: #0f5132 !important;
}

.status-entregue-parcial,
.badge.status-entregue-parcial {
    background: #6c757d none !important;
    background-color: #6c757d !important;
    color: #ffffff !important;
    border-color: #495057 !important;
}

.status-entregue,
.badge.status-entregue {
    background: #212529 none !important;
    background-color: #212529 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

/* ================================
   LEITURA DE CÃƒÆ’Ã¢â‚¬Å“DIGO
================================ */
.barcode-input {
    font-size: 1.3rem;
    padding: 14px;
}

.etiqueta-preview {
    width: 100%;
    background: #f1f1f1;
    padding: 20px;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* ================================
   ETIQUETA 70x30 mm
================================ */
.etiqueta-70x30 {
    width: 68mm;
    height: 28mm;
    padding: 2mm;
    border: 1px solid #000;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.etiqueta-topo {
    height: 8mm;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.1;
}

.etiqueta-topo .data {
    margin-left: 1mm;
    white-space: nowrap;
    margin-right: 3mm;
}

.etiqueta-topo .cliente {
    text-transform: uppercase;
}

.etiqueta-produto {
    height: 10mm;
    padding-right: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.etiqueta-produto .produto {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    word-break: break-word;
}

.etiqueta-produto .obs {
    font-size: 5px;
    text-transform: uppercase;
    line-height: 1.1;
}

.etiqueta-rodape {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.barcode {
    font-size: 18px;
    line-height: 1;
    position: relative;
    top: -0.2px;
}

.info-direita {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5px;
}

.tipo-entrega {
    width: 45px;
    height: 45px;
    border: 2px solid #000;
    border-radius: 50%;
    font-size: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 2mm;
    top: -40px;
}

.hora {
    position: absolute;
    right: 2mm;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: bold;
}

/* ================================
   IMPRESSÃƒÆ’Ã†â€™O
================================ */
@media print {
    @page {
        size: 68mm 28mm;
        margin: 0;
    }

    html, body {
        width: 68mm;
        margin: 0;
        padding: 0;
        background: #fff;
    }

    body {
        display: block;
    }

    body * {
        visibility: hidden;
    }

    #print-area,
    #print-area * {
        visibility: visible;
    }

    #print-area {
        position: absolute;
        top: 0;
        left: 0;
    }

    .etiqueta-70x30 {
        width: 68mm;
        height: 28mm;
        margin: 0;
        padding: 2mm;
        page-break-after: always;
        break-after: page;
    }

    .etiqueta-70x30:last-child {
        page-break-after: auto;
        break-after: auto;
    }
}

.sidebar-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.logo-img {
    height: 150px !important;
    width: auto;
    object-fit: contain;
}