        /* Specific alignment for columns mentioned by user to ensure they are centered */
        #tabelaEtapasSelecao .tabela-selecao-observacao,
        #tabelaEtapasSelecao .coluna_InfoSemana,
        #tabelaEtapasSelecao .tabela-selecao-selecao,
        #tabelaEtapasSelecao .tabela-selecao-relatorio {
            text-align: center !important;
        }

        .lupa-pesquisa {
            cursor: pointer;
            margin-left: 5px;
            font-size: 0.8em;
            color: #337ab7;
        }

        .btn-swal-space {
            margin: 8px !important;
        }

        body {
            background-color: #f0f2f5;
            padding: 30px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        .my-toast {
            font-size: 18px;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        /*Balanca*/
        #balanca-app-wrapper {
            --primary-color: #007bff;
            --primary-hover-color: #0056b3;
            --light-gray-color: #f8f9fa;
            --medium-gray-color: #dee2e6;
            --dark-gray-color: #343a40;
            --text-color: #212529;
            --background-color: #ffffff;
            --border-radius: 0.3rem;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: var(--light-gray-color);
            color: var(--text-color);
        }

        #balanca-app-wrapper {
            padding: 2rem;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            min-height: 100vh;
        }

            #balanca-app-wrapper .container {
                width: 100%;
                max-width: 800px;
                text-align: center;
            }

            #balanca-app-wrapper h1,
            #balanca-app-wrapper h2,
            #balanca-app-wrapper h3 {
                color: var(--dark-gray-color);
            }

            /* Button Styles */
            #balanca-app-wrapper .btn-primary {
                display: inline-flex;
                align-items: center;
                gap: 0.5rem;
            }

            #balanca-app-wrapper .btn-primary,
            #balanca-app-wrapper .btn-select {
                display: inline-block;
                font-weight: 400;
                color: var(--background-color);
                text-align: center;
                vertical-align: middle;
                cursor: pointer;
                user-select: none;
                background-color: var(--primary-color);
                border: 1px solid var(--primary-color);
                padding: 0.5rem 1rem;
                font-size: 1rem;
                line-height: 1.5;
                border-radius: var(--border-radius);
                transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
            }

                #balanca-app-wrapper .btn-primary:hover,
                #balanca-app-wrapper .btn-select:hover {
                    background-color: var(--primary-hover-color);
                    border-color: var(--primary-hover-color);
                }

                #balanca-app-wrapper .btn-primary:disabled {
                    background-color: #6c757d;
                    border-color: #6c757d;
                    cursor: not-allowed;
                    opacity: 0.65;
                }

        /* Inspeção */
        .icon-info-Inspecao {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            width: 18px;
            height: 18px;
            margin-left: 8px;
            background-color: #0056b3;
            color: #fff;
            border-radius: 50%;
            font-size: 10px;
            cursor: help;
            position: relative;
        }

            /* Tooltip Responsivo com cinza claro */
            .icon-info-Inspecao:hover::after {
                content: attr(data-tooltip);
                position: absolute;
                top: 28px;
                left: 50%;
                transform: translateX(-50%);
                background: #f2f2f2; /* cinza claro estilo modal */
                color: #333; /* texto mais escuro para contraste */

                padding: 14px 18px;
                border-radius: 10px;
                font-size: 13px;
                line-height: 1.4;
                width: max-content;
                max-width: 300px; /* área maior */
                min-width: 200px;
                white-space: normal;
                text-align: center;
                z-index: 9999;
                box-shadow: 0 4px 12px rgba(0,0,0,0.25);
                border: 1px solid #d7d7d7; /* borda leve, estilo modal */

                opacity: 1;
                transition: opacity .2s ease-in-out;
            }

            .icon-info-Inspecao::after {
                opacity: 0;
                pointer-events: none;
            }

            .icon-info-Inspecao:hover::after {
                opacity: 1;
            }




        /* --- STYLES SCOPED TO THE PALLET APP MODAL --- */
        #pallet-app-modal {
            --primary-color: #337ab7;
            --background-color: #f8f9fa;
            --panel-bg: #ffffff;
            --text-color: #333;
            --text-muted: #6c757d;
            --border-color: #dee2e6;
        }

            #pallet-app-modal .modal-body {
                background-color: var(--background-color);
                color: var(--text-color);
            }

            /* --- Page Structure --- */
            #pallet-app-modal .page-header {
                margin-top: 0;
                border-bottom: 1px solid var(--border-color);
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            #pallet-app-modal .panel {
                border-radius: 8px;
                box-shadow: 0 4px 6px rgba(0,0,0,0.05);
                border: 1px solid var(--border-color);
            }

            #pallet-app-modal .panel-heading {
                background-color: #f5f5f5 !important;
                border-bottom: 1px solid var(--border-color);
                border-top-left-radius: 8px;
                border-top-right-radius: 8px;
            }

            #pallet-app-modal .panel-title {
                font-weight: 600;
            }

                #pallet-app-modal .panel-title .glyphicon {
                    margin-right: 5px;
                }

            /* --- Pallet List --- */
            #pallet-app-modal .pallet-id-mono {
                font-family: monospace;
                font-weight: bold;
                font-size: 1.1em;
                color: var(--primary-color);
            }

            #pallet-app-modal .table > tbody > tr > td {
                vertical-align: middle;
                padding: 12px 8px;
            }

            #pallet-app-modal .action-btn {
                padding: 5px 10px;
                margin: 0 2px;
                border-radius: 4px;
            }

                #pallet-app-modal .action-btn .glyphicon {
                    font-size: 12px;
                }

            /* --- Pallet Detail View Header --- */
            #pallet-app-modal #pallet-detail-header {
                display: flex;
                align-items: center;
                margin-bottom: 25px;
            }

                #pallet-app-modal #pallet-detail-header h1 {
                    margin: 0;
                    text-align: center;
                    flex-grow: 1;
                }

            /* --- NEW LAYOUT STYLES (Image-based) --- */
            #pallet-app-modal .top-info-cards {
                display: flex;
                gap: 15px;
                margin-bottom: 20px;
            }

            #pallet-app-modal .info-card-top {
                flex: 1;
                background-color: var(--panel-bg);
                border: 1px solid var(--border-color);
                border-radius: 8px;
                padding: 15px;
            }

                #pallet-app-modal .info-card-top .card-label {
                    font-size: 12px;
                    color: var(--text-muted);
                    text-transform: uppercase;
                    margin-bottom: 8px;
                }

                #pallet-app-modal .info-card-top .card-value {
                    font-size: 18px;
                    font-weight: 600;
                    line-height: 1.3;
                }

                    #pallet-app-modal .info-card-top .card-value .label {
                        font-size: 16px;
                    }

                    #pallet-app-modal .info-card-top .card-value .glyphicon {
                        margin-right: 5px;
                        font-size: 14px;
                    }

            #pallet-app-modal .details-grid {
                margin-bottom: 20px;
            }

            #pallet-app-modal .details-panel {
                background-color: var(--panel-bg);
                border: 1px solid var(--border-color);
                border-radius: 8px;
                padding: 20px;
                height: 100%;
            }

                #pallet-app-modal .details-panel h4 {
                    font-size: 16px;
                    font-weight: bold;
                    margin-top: 0;
                    margin-bottom: 15px;
                }

            #pallet-app-modal .observation-textarea {
                resize: vertical;
                max-height: 180px; /* Control max height */
                overflow-y: auto; /* Show scrollbar when needed */
            }

            #pallet-app-modal .weights-grid {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 15px;
            }

            #pallet-app-modal #pallet-weights-form .form-group {
                margin-bottom: 0;
            }

            #pallet-app-modal .action-buttons-bar {
                padding: 15px;
                background-color: #f5f5f5;
                border-radius: 8px;
                text-align: right;
                margin-bottom: 20px;
                border: 1px solid var(--border-color);
            }

                #pallet-app-modal .action-buttons-bar .btn {
                    margin-left: 10px;
                }

        /* --- Modals (General styling for nested modals, scoped) --- */
        #add-item-modal .modal-content,
        #label-preview-modal .modal-content {
            border-radius: 8px;
            border: none;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        #add-item-modal .modal-header,
        #label-preview-modal .modal-header {
            border-bottom: 1px solid #eee;
        }

        #add-item-modal .form-group {
            margin-bottom: 15px;
        }

        /* Print styles */
        @@media print {
            body * {
                visibility: hidden;
            }

            .print-area, .print-area * {
                visibility: visible;
            }

            .print-area {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
            }

            .no-print {
                display: none !important;
            }
        }

        /* --- Responsive Styles (scoped) --- */
        @@media (max-width: 991px) {
            #pallet-app-modal .top-info-cards {
                display: grid;
                grid-template-columns: 1fr 1fr;
            }

            #pallet-app-modal .details-grid > .col-md-7,
            #pallet-app-modal .details-grid > .col-md-5 {
                width: 100%;
            }

            #pallet-app-modal .details-grid > .col-md-5 {
                margin-top: 20px;
            }
        }

        @@media (max-width: 767px) {
            #pallet-app-modal .top-info-cards {
                grid-template-columns: 1fr;
            }

            #pallet-app-modal .action-buttons-bar {
                display: flex;
                flex-direction: column;
                gap: 10px;
            }

                #pallet-app-modal .action-buttons-bar .btn {
                    width: 100%;
                    margin-left: 0;
                }


            #pallet-app-modal .page-header {
                flex-direction: column;
                align-items: flex-start;
            }

                #pallet-app-modal .page-header h1 {
                    margin-bottom: 15px;
                }

                #pallet-app-modal .page-header .btn {
                    width: 100%;
                    font-size: 16px;
                }

            #pallet-app-modal #pallet-detail-header {
                align-items: center;
            }

                #pallet-app-modal #pallet-detail-header h1 {
                    font-size: 24px;
                    text-align: left;
                    margin-left: 15px;
                }

                #pallet-app-modal #pallet-detail-header .btn {
                    padding: 6px 12px;
                }
            /* Card styles for pallet list */
            #pallet-app-modal .pallet-card {
                background-color: var(--panel-bg);
                border: 1px solid var(--border-color);
                border-radius: 8px;
                padding: 15px;
                margin-bottom: 15px;
                box-shadow: 0 2px 4px rgba(0,0,0,0.04);
            }

            #pallet-app-modal .pallet-card-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                border-bottom: 1px solid var(--border-color);
                padding-bottom: 10px;
                margin-bottom: 10px;
            }

            #pallet-app-modal .pallet-card-body .info-row {
                display: flex;
                justify-content: space-between;
                margin-bottom: 8px;
                font-size: 14px;
            }

                #pallet-app-modal .pallet-card-body .info-row .label-text {
                    color: var(--text-muted);
                }

                #pallet-app-modal .pallet-card-body .info-row .value-text {
                    font-weight: 600;
                }

            #pallet-app-modal .pallet-card-footer {
                margin-top: 15px;
                padding-top: 15px;
                border-top: 1px solid var(--border-color);
                text-align: right;
            }
            /* Card styles for pallet items */
            #pallet-app-modal .item-card {
                background-color: #fff;
                border-bottom: 1px solid var(--border-color);
                padding: 15px;
            }

                #pallet-app-modal .item-card:last-child {
                    border-bottom: none;
                    border-bottom-left-radius: 8px;
                    border-bottom-right-radius: 8px;
                }

            #pallet-app-modal .item-card-header {
                font-weight: bold;
                font-size: 16px;
                margin-bottom: 5px;
            }

            #pallet-app-modal .item-card-subheader {
                font-size: 13px;
                color: var(--text-muted);
                margin-bottom: 10px;
            }

            #pallet-app-modal .item-card-body .info-grid {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 10px;
                font-size: 14px;
            }

            #pallet-app-modal .item-card-body .info-item .label-text {
                display: block;
                font-size: 12px;
                color: var(--text-muted);
            }

            #pallet-app-modal .item-card-body .info-item .value-text {
                font-weight: 600;
            }

            #pallet-app-modal .item-card-footer {
                margin-top: 15px;
                padding-top: 15px;
                border-top: 1px solid var(--border-color);
                text-align: right;
            }
        }

        .swal2-title {
            font-size: 22px !important;
        }

        body#page-gerador-lotes {
            background-color: #f0f2f5;
        }

        #productionModal .modal-body-custom {
            padding: 25px;
            background-color: #f7f7f7;
        }

        #productionModal .table-header-custom {
            background-color: #e9ecef;
            text-align: left;
            font-weight: bold;
        }

        #productionModal .table-input {
            border: none;
            background-color: transparent;
            box-shadow: none;
            width: 100%;
            height: 100%;
        }

        #productionModal .arrow {
            color: orange;
        }
        /* Flexbox-like utilities scoped to the modal */
        #productionModal .d-flex {
            display: flex;
        }

        #productionModal .justify-content-between {
            justify-content: space-between;
        }

        #productionModal .align-items-center {
            align-items: center;
        }

        #productionModal .align-items-end {
            align-items: flex-end;
        }

        #productionModal .gap-2 > * + * {
            margin-left: 0.5rem;
        }

        #productionModal .mb-0 {
            margin-bottom: 0 !important;
        }

        #productionModal .mb-4 {
            margin-bottom: 1.5rem !important;
        }

        #productionModal .mt-1 {
            margin-top: 0.25rem !important;
        }

        #productionModal .mt-3 {
            margin-top: 1rem !important;
        }

        #productionModal .fw-bold {
            font-weight: bold;
        }

        .modal-dialog {
            width: 95%;
            max-width: 1200px; /* Adjust max-width as needed */
            margin: 1.75rem auto;
        }

        .main-window {
            --primary-bg: #F0F0F0;
            --secondary-bg: #FFFFFF;
            /*--header-bg: #005A9E;*/
            /*--header-text-color: #FFFFFF;*/
            --border-color: #D1D1D1;
            --button-primary-bg: #E18E01;
            --button-secondary-bg: #EFEFEF;
            --button-text-color: #000000;
            --selected-row-bg: #D2E7F7;
            --table-header-bg: #E1E1E1;
            --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-family: var(--font-family);
            color: #333;
            width: 100%;
            background-color: var(--primary-bg);
            border: 1px solid #999;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            display: flex;
            flex-direction: column;
        }

            .main-window .window-header {
                background-color: var(--header-bg);
                color: var(--header-text-color);
                padding: 8px 12px;
                font-weight: bold;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            .main-window .window-controls {
                display: flex;
                gap: 4px;
            }

            .main-window .control-btn {
                font-family: sans-serif;
                padding: 0 8px;
                cursor: default;
            }

            .main-window .window-content {
                padding: 15px;
                flex-grow: 1;
            }

        .window-Text {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-bottom: 15px;
            font-weight: bold;
        }

            .window-Text input {
                border: 1px solid var(--border-color);
                padding: 4px 6px;
                font-family: var(--font-family);
                font-weight: bold;
                color: #333;
                text-align: right;
            }

        .main-window .info-container {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-bottom: 15px;
            font-weight: bold;
        }

            .main-window .info-container input {
                border: 1px solid var(--border-color);
                padding: 4px 6px;
                background-color: #E9E9E9; /* readonly style */
                font-family: var(--font-family);
                font-weight: bold;
                color: #333;
                text-align: right;
            }

        .main-window .section-title {
            font-size: 1em;
            font-weight: bold;
            color: var(--header-bg);
            margin-top: 0;
            margin-bottom: 10px;
        }

        .main-window .filters-container {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
        }

            .main-window .filters-container input {
                flex: 1;
                border: 1px solid var(--border-color);
                padding: 4px 6px;
                font-family: var(--font-family);
                min-width: 150px; /* Prevent inputs from becoming too small */
            }

        .main-window .table-container {
            border: 1px solid var(--border-color);
            background-color: var(--secondary-bg);
            overflow: auto; /* Handles both vertical and horizontal scrolling */
            height: 200px;
        }

        .main-window .document-lines .table-container {
            height: auto;
            min-height: 60px;
            max-height: 150px;
        }

        .main-window table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.9em;
        }

        .main-window th, .main-window td {
            border-right: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
            padding: 6px 8px;
            text-align: left;
            white-space: nowrap;
        }

            .main-window th:last-child, .main-window td:last-child {
                border-right: none;
            }

        .main-window thead tr {
            background-color: var(--table-header-bg);
        }

        .main-window tbody tr {
            cursor: pointer;
        }

            .main-window tbody tr:hover {
                background-color: #E8F0F7;
            }

        .main-window .selected-row {
            background-color: var(--selected-row-bg) !important;
        }

        .main-window td span {
            color: #E18E01;
            font-weight: bold;
            margin-right: 4px;
        }

        .main-window td input[type="number"] {
            width: 80px;
            border: 1px solid #aaa;
            border-radius: 2px;
            padding: 4px;
            background-color: #fff;
            font-family: var(--font-family);
        }

        .main-window .lot-selection-area {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .main-window .available-lots-panel, .main-window .selected-lots-panel {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-width: 250px; /* Ensure panels don't get too crushed */
        }

        .main-window .search-bar {
            margin-bottom: 10px;
        }

            .main-window .search-bar label {
                margin-right: 10px;
            }

            .main-window .search-bar input {
                border: 1px solid var(--border-color);
                padding: 4px 6px;
            }

        .main-window .transfer-controls {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 10px;
            align-self: center;
        }

            .main-window .transfer-controls button {
                padding: 5px 10px;
                font-size: 1.2em;
                border: 1px solid var(--border-color);
                background-color: var(--button-secondary-bg);
                cursor: pointer;
            }

                .main-window .transfer-controls button:hover {
                    border-color: #999;
                }

        .main-window .window-footer {
            padding: 10px 15px;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: var(--primary-bg);
        }

        /* Responsive Adjustments */
        @@media (max-width: 900px) {
            .main-window .lot-selection-area {
                flex-direction: column;
            }

            .main-window .transfer-controls {
                flex-direction: row;
                padding: 10px 0;
            }

                .main-window .transfer-controls button:first-child {
                    transform: rotate(90deg);
                }

                .main-window .transfer-controls button:last-child {
                    transform: rotate(90deg);
                }
        }

        @@media (max-width: 600px) {
            .main-window .filters-container {
                flex-direction: column;
            }

            .main-window .window-content {
                padding: 10px;
            }
        }

        body {
            padding: 10px 0;
        }

        .dataTables_filter {
            display: none;
        }

        .vertical-buttons {
            flex-direction: column;
        }

        .buttonCodBarras {
            margin-top: -30% !important;
            margin-left: 105% !important;
            background-color: #2778c4 !important;
            color: #fff !important;
        }

        .inputCodBarras {
            margin-left: -6% !important
        }

        .checkBox {
            width: unset !important;
            height: unset !important;
        }

        .chkReposicao {
            appearance: none; /* Remove o estilo padrão */
            width: 30px; /* Largura customizada */
            height: 30px; /* Altura customizada */
            border: 2px solid #ccc; /* Borda */
            border-radius: 5px; /* Borda arredondada */
            background-color: white; /* Fundo branco */
            position: relative;
            cursor: pointer;
            vertical-align: middle; /* Isso ajuda a alinhar verticalmente */
            margin-top: -5px; /* Ajusta a posição para cima */
        }

            .chkReposicao:checked {
                background-color: #4CAF50; /* Cor de fundo quando marcado */
                border-color: #4CAF50; /* Cor da borda quando marcado */
            }

                .chkReposicao:checked::after {
                    content: '?'; /* Adiciona um símbolo de check */
                    position: absolute;
                    top: 2px;
                    left: 6px;
                    font-size: 18px;
                    color: white;
                }

        /*
         * CSS CUSTOMIZADO APENAS PARA O CONTEÚDO INTERNO
         * O container externo agora é gerenciado pelo Bootstrap
         */

        #loteSerieListaModal {
            --ls-primary: #2563eb;
            --ls-bg: #f3f4f6;
            --ls-border: #e5e7eb;
            --ls-text: #1f2937;
            --ls-success: #16a34a;
            --ls-danger: #dc2626;
        }

            /* Ajuste para o Modal ficar largo e centralizado */
            #loteSerieListaModal .modal-dialog {
                width: 95%;
                max-width: 900px;
                margin: 30px auto;
            }

            #loteSerieListaModal .modal-content {
                border-radius: 8px;
                box-shadow: 0 10px 25px rgba(0,0,0,0.2);
                border: none;
                /* Garante fonte consistente dentro do modal */
                font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
            }

            /* Header Customizado */
            #loteSerieListaModal .modal-header {
                padding: 15px 20px;
                border-bottom: 1px solid var(--ls-border);
                background-color: #fff;
                border-radius: 8px 8px 0 0;
                display: flex;
                justify-content: space-between;
                align-items: center;
                /* Garante que o header ocupe tudo para o space-between funcionar */
                width: 100%;
            }

            #loteSerieListaModal .modal-title {
                font-size: 18px;
                font-weight: 600;
                color: var(--ls-text);
                margin: 0;
                /* Garante que o titulo não empurre demais */
                line-height: 1.5;
            }

            /* Correção específica para o botão Fechar dentro do Flexbox */
            #loteSerieListaModal .close {
                position: absolute;
                top: 10px;
                right: 15px;
                margin: 0 !important; /* Remove margem do Bootstrap */
                float: none !important; /* Remove float do Bootstrap */
                font-size: 28px;
                font-weight: 400;
                line-height: 1;
                color: #999;
                opacity: 1;
                outline: none;
                z-index: 10;
            }

                #loteSerieListaModal .close:hover {
                    color: #333;
                }

        /* Painel de Instruções */
        .ls-instructions {
            background-color: #eff6ff; /* Azul bem claro */
            border-bottom: 1px solid var(--ls-border);
            color: #1e40af;
            padding: 12px 20px;
            font-size: 13px;
            line-height: 1.5;
        }

            .ls-instructions strong {
                color: #1e3a8a;
                display: block;
                margin-bottom: 4px;
            }

            .ls-instructions ul {
                margin: 0;
                padding-left: 18px;
                color: #4b5563;
            }

            .ls-instructions li {
                margin-bottom: 2px;
            }

        /* Área de Controles (Inputs) */
        #loteSerieListaModal .ls-controls {
            padding: 20px;
            background-color: #fff;
            border-bottom: 1px solid var(--ls-border);
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            align-items: flex-start; /* Alinhamento superior */
        }

        .ls-control-group {
            flex: 1;
            min-width: 200px;
        }

        .ls-label {
            display: block;
            font-size: 11px;
            text-transform: uppercase;
            color: #6b7280;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .ls-input {
            width: 100%;
            padding: 8px 10px;
            border: 1px solid var(--ls-border);
            border-radius: 4px;
            font-size: 14px;
            color: var(--ls-text);
        }

            .ls-input.readonly {
                background-color: var(--ls-bg);
                pointer-events: none;
            }

        /* Status do Saldo */
        .ls-status-value {
            font-size: 20px;
            font-weight: 700;
            color: #f59e0b;
            display: block;
        }

        .ls-status-text {
            font-size: 12px;
            color: #6b7280;
        }

        /* Tabela */
        .ls-table-wrapper {
            max-height: 400px;
            overflow-y: auto;
            padding: 20px; /* Espaçamento adicionado conforme solicitado */
        }

        .ls-table {
            width: 100%;
            margin-bottom: 0;
        }

            /* Ajustes finos para compatibilidade com table-bordered do bootstrap */
            .ls-table th {
                background-color: #f8fafc;
                font-size: 11px;
                text-transform: uppercase;
                color: #6b7280;
                vertical-align: middle !important;
            }

            .ls-table td {
                vertical-align: middle !important;
                font-size: 13px;
            }

        /* Input dentro da tabela */
        .ls-qty-input {
            width: 100%;
            max-width: 120px;
            padding: 6px;
            border: 1px solid var(--ls-border);
            border-radius: 4px;
            text-align: right;
        }

            .ls-qty-input:focus {
                border-color: var(--ls-primary);
                outline: none;
            }

            .ls-qty-input:disabled {
                background-color: #eee;
                color: #aaa;
            }

        /* --- NOVO: Estilos de Seleção de Linha --- */
        .ls-table tbody tr {
            cursor: pointer;
            transition: background-color 0.15s ease-in-out;
        }

            .ls-table tbody tr:hover {
                background-color: #f9fafb;
            }

        /* Classe aplicada quando a linha tem quantidade preenchida */
        .ls-row-selected {
            background-color: #50e66e !important; /* verde claro */
        }

            .ls-row-selected td {
                color: #1e40af; /* Azul escuro texto */
                font-weight: 500;
            }
        /* ----------------------------------------- */

        /* Rodapé */
        #loteSerieListaModal .modal-footer {
            background-color: #f8fafc;
            border-radius: 0 0 8px 8px;
            padding: 15px 20px;
            border-top: 1px solid var(--ls-border);
        }

        .btn-ls-primary {
            background-color: var(--ls-primary);
            color: #fff;
            border: none;
        }

            .btn-ls-primary:hover {
                background-color: #1d4ed8;
                color: #fff;
            }
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 5px;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
}

.expand-btn {
    cursor: pointer;
    font-weight: bold;
}

.subtable-container {
    display: none;
    margin-left: 20px;
    margin-bottom: 15px;
}

    .subtable-container table {
        width: auto;
        border: 1px solid #aaa;
        margin-top: 5px;
    }

    .subtable-container th, .subtable-container td {
        border: 1px solid #aaa;
        padding: 6px;
    }