/* ============================================================
   MOVIMIENTOS.CSS - Estilos de Flujo de Caja y Movimientos
   Barraca Kollasuyo - Sistema de Gestión Comercial
   ============================================================ */

/* Pantalla de Movimientos */
.movements-container {
    background-color: #f5f5f5;
    min-height: 100vh;
    padding: 15px;
    max-width: none;
    width: 100%;
}

/* Resumen del período */
.movements-summary {
    background-color: white;
    padding: 18px 15px;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.summary-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

.refresh-btn {
    background-color: var(--color-primary, #680d03);
    border: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background-color: var(--color-primary-hover, #831608);
    transform: scale(1.02);
}

.refresh-btn:active {
    transform: scale(0.98);
}

.refresh-btn i {
    font-size: 0.85rem;
}

.refresh-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.summary-card {
    text-align: center;
    padding: 12px 10px;
    border-radius: 10px;
    background-color: var(--color-surface, #f8f8f8);
    border: 1px solid var(--color-border, #e2e8f0);
    transition: all 0.3s ease;
}

.summary-card.entradas {
    border-left: 4px solid #2E8B57;
}

.summary-card.salidas {
    border-left: 4px solid var(--color-primary, #680d03);
}

.summary-card.documentos-total {
    border-left: 4px solid #0284c7;
}

.summary-card.cotizacion-card-type {
    border-left: 4px solid #d97706;
}

.summary-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.entradas .summary-value {
    color: #2E8B57;
}

.salidas .summary-value {
    color: var(--color-primary, #680d03);
}

.documentos-total .summary-value {
    color: #0284c7;
}

.cotizacion-card-type .summary-value {
    color: #d97706;
}

.summary-label {
    font-size: 0.78rem;
    color: #666;
}

/* Panel Plegable de Filtros (Accordion) */
.filters-accordion {
    background-color: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.filters-accordion:hover {
    border-color: #ddd;
}

.filters-accordion-header {
    padding: 12px 15px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 10px;
}

.filters-accordion-header:hover {
    background-color: #fafafa;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.header-title i {
    color: var(--color-primary);
    font-size: 0.95rem;
}

.active-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    max-width: 100%;
}

.filter-chip {
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}

.filter-chip.highlight {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-count-badge {
    background-color: var(--color-primary, #680d03);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
}

.accordion-icon {
    font-size: 0.9rem;
    color: #666;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filters-accordion.open .accordion-icon {
    transform: rotate(180deg);
}

.filters-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fafafa;
    border-top: 1px solid transparent;
}

.filters-accordion.open .filters-accordion-body {
    max-height: 800px;
    border-top: 1px solid #eee;
}

.filters-body-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.period-selector {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0;
}

.period-option {
    padding: 6px 14px;
    background-color: #eee;
    border-radius: 18px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
}

.period-option:hover {
    background-color: #e0e0e0;
}

.period-option.active {
    background-color: var(--color-primary, #680d03);
    color: white;
}

.date-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.date-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.date-label {
    font-size: 0.72rem;
    color: #777;
    font-weight: 600;
}

.date-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.85rem;
    background-color: white;
    color: #333;
}

/* Buscador */
.search-container {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #888;
    font-size: 0.85rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 8px 34px 8px 34px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.88rem;
    background-color: white;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary, #680d03);
    box-shadow: 0 0 0 3px rgba(104, 13, 3, 0.12);
}

.clear-search-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    display: none;
}

.clear-search-btn.visible {
    display: block;
}

/* Selector de Tipo de Documento / Operación (Select Desplegable) */
.doctype-select-wrapper {
    position: relative;
    width: 100%;
}

.doctype-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    background-color: white;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.doctype-select:focus {
    border-color: var(--color-primary, #680d03);
    box-shadow: 0 0 0 3px rgba(104, 13, 3, 0.12);
}

/* Acciones del panel de filtros */
.filters-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 2px;
}

.btn-reset-filters {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-reset-filters:hover {
    background-color: #eee;
    color: #333;
}

.btn-apply-close {
    background-color: var(--color-primary, #680d03);
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-apply-close:hover {
    background-color: var(--color-primary-hover);
}

.movements-list {
    margin-top: 15px;
}

.list-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0 12px;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.results-count-badge {
    font-size: 0.8rem;
    font-weight: 600;
    background-color: #e5e7eb;
    color: #4b5563;
    padding: 3px 10px;
    border-radius: 12px;
}

.day-section {
    margin-bottom: 18px;
}

.day-header {
    font-size: 0.88rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.movement-card {
    background-color: white;
    border-radius: 12px;
    padding: 14px 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.movement-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.movement-card.entrada {
    border-left: 4px solid #2E8B57;
}

.movement-card.salida {
    border-left: 4px solid var(--color-primary, #680d03);
}

.movement-card.proforma-card-type {
    border-left: 4px solid #0284c7;
}

.movement-card.cotizacion-card-type {
    border-left: 4px solid #d97706;
}

.movement-info {
    flex: 1;
    padding-right: 10px;
}

.movement-type {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.entrada .movement-type {
    background-color: #e8f5e9;
    color: #2E8B57;
}

.salida .movement-type {
    background-color: var(--color-primary-subtle, #fef2f2);
    color: var(--color-primary, #680d03);
}

.proforma-card-type .movement-type {
    background-color: #e0f2fe;
    color: #0369a1;
}

.cotizacion-card-type .movement-type {
    background-color: #fef3c7;
    color: #b45309;
}

.movement-description {
    font-weight: 600;
    margin-bottom: 3px;
    color: #333;
    font-size: 0.92rem;
}

.movement-subinfo {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.movement-client-tag {
    color: var(--color-primary, #680d03);
    font-weight: 600;
}

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

.amount-value {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
}

.entrada .amount-value {
    color: #2E8B57;
}

.salida .amount-value {
    color: var(--color-primary, #680d03);
}

.proforma-card-type .amount-value {
    color: #0284c7;
}

.cotizacion-card-type .amount-value {
    color: #d97706;
}

.amount-datetime {
    font-size: 0.73rem;
    color: #777;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    font-weight: 500;
}

.card-date {
    color: #4b5563;
    font-weight: 600;
}

.card-time {
    color: #888;
}

.doc-number-bold {
    font-weight: 700;
    margin-left: 2px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.empty-icon {
    font-size: 2.8rem;
    color: #ddd;
    margin-bottom: 12px;
}

.empty-text {
    font-size: 0.95rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.empty-subtext {
    font-size: 0.85rem;
    color: #888;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 4px;
}

.badge-venta { background: #dbeafe; color: #1e40af; }
.badge-proforma { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-cotizacion { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.badge-pago { background: #dcfce7; color: #166534; }
.badge-otro-ingreso { background: #fef9c3; color: #854d0e; }
.badge-gasto { background: #fee2e2; color: #991b1b; }
.badge-compra { background: #f3e8ff; color: #6b21a8; }

/* Loader */
.loader {
    text-align: center;
    padding: 40px 20px;
    background: var(--color-surface, white);
    border-radius: 12px;
    border: 1px solid var(--color-border, #e2e8f0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: var(--color-text-muted, #666);
}

.loader i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    background: var(--color-primary, #680d03);
    color: white;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 16px 18px;
    overflow-y: auto;
    flex: 1;
}

/* Estilo TICKET BÁSICO */
.ticket-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
}

.ticket-header {
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-primary, #680d03);
    padding-bottom: 10px;
}

.ticket-header h3 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.ticket-header .ticket-fecha {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.ticket-item {
    display: flex;
    margin-bottom: 12px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 8px;
}

.ticket-label {
    font-weight: 600;
    color: #555;
    width: 105px;
    font-size: 0.88rem;
}

.ticket-value {
    flex: 1;
    color: #333;
    font-size: 0.92rem;
}

.ticket-value.categoria {
    font-weight: 600;
    color: var(--color-primary, #680d03);
}

.ticket-value.importe {
    font-weight: 700;
    font-size: 1.1rem;
}

.ticket-value.cliente {
    font-weight: 600;
    color: var(--color-primary, #680d03);
}

.badge-status-subtle {
    font-size: 0.70rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 4px;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
}

.badge-status-pagado {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.badge-status-parcial {
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.badge-status-pendiente {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.badge-status-proforma {
    color: #075985;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}

.badge-status-cotizacion {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.ticket-total {
    margin-top: 15px;
    border-top: 2px solid #333;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1rem;
}

.ticket-total .label {
    color: #333;
}

/* Estilo TICKET COMERCIAL COMPLETO */
.ticket-full-container {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
}

.ticket-full-header {
    text-align: center;
    border-bottom: 2px solid var(--color-primary, #680d03);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.ticket-full-company {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary, #680d03);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticket-full-doc-badge {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}

.ticket-full-date {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

.ticket-full-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background-color: #f9fafb;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.84rem;
}

.ticket-full-meta-grid .meta-item {
    display: flex;
    flex-direction: column;
}

.ticket-full-meta-grid .meta-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.ticket-full-meta-grid .meta-val {
    font-weight: 700;
    color: #111827;
}

/* Tabla de Productos del Ticket */
.ticket-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.ticket-items-table th {
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 700;
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #d1d5db;
    font-size: 0.74rem;
    text-transform: uppercase;
}

.ticket-items-table td {
    padding: 7px 8px;
    border-bottom: 1px dashed #e5e7eb;
    vertical-align: top;
}

.ticket-items-table .wood-title {
    font-weight: 700;
    color: #111827;
}

.ticket-items-table .wood-subtitle {
    font-size: 0.73rem;
    color: #6b7280;
}

.ticket-items-table .cuts-text {
    font-family: monospace;
    font-size: 0.76rem;
    color: #4b5563;
    background: #f3f4f6;
    padding: 2px 5px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
    word-break: break-word;
}

/* Totales del Ticket */
.ticket-totals-section {
    border-top: 2px dashed #9ca3af;
    padding-top: 10px;
    margin-top: 10px;
}

.ticket-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    margin-bottom: 4px;
    color: #4b5563;
}

.ticket-total-row.highlight {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    border-top: 1px solid #d1d5db;
    padding-top: 6px;
    margin-top: 6px;
}

.ticket-payments-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 0.83rem;
}

.ticket-debt-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 6px;
    font-size: 0.83rem;
    color: #991b1b;
    font-weight: 700;
}

.ticket-actions-bar {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.btn-ticket-print {
    flex: 1;
    background: var(--color-primary, #680d03);
    color: white;
    border: none;
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-ticket-print:hover {
    background: var(--color-primary-hover, #831608);
}

.btn-ticket-close {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
}

.btn-ticket-close:hover {
    background: #e5e7eb;
}

.btn-ver-detalle {
    background: var(--color-primary, #680d03);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
}

.btn-ver-detalle:hover {
    background: var(--color-primary-hover, #831608);
    transform: scale(1.02);
}

/* ============================================================
   🖨️ IMPRESIÓN DIRECTA DE TICKET TÉRMICO (80mm)
   ============================================================ */
#thermalPrintArea {
    display: none;
}

@media print {
    /* Ocultar toda la interfaz visual de la aplicación */
    body > *:not(#thermalPrintArea),
    .app-header,
    .app-sidebar,
    .spa-content,
    .modal-overlay,
    .bottom-nav,
    #movements-screen {
        display: none !important;
    }

    /* Mostrar y dar formato al ticket térmico continuo */
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
    }

    #thermalPrintArea {
        display: block !important;
        position: static !important;
        width: 76mm !important;
        margin: 0 auto !important;
        padding: 2mm 0 6mm 0 !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
        color: #000000 !important;
        background: #ffffff !important;
    }

    #thermalPrintArea .t-center { text-align: center !important; }
    #thermalPrintArea .t-right { text-align: right !important; }
    #thermalPrintArea .t-bold { font-weight: bold !important; }
    #thermalPrintArea .t-italic { font-style: italic !important; }
    #thermalPrintArea .t-header-title { font-size: 16px !important; font-weight: bold !important; margin: 0 !important; }
    #thermalPrintArea .t-sub-title { font-size: 12px !important; font-weight: bold !important; margin: 0 0 2px 0 !important; }
    #thermalPrintArea .t-desc { font-size: 8.5px !important; line-height: 1.15 !important; margin: 2px 0 !important; }
    #thermalPrintArea .t-doc-type { font-size: 13px !important; font-weight: bold !important; margin: 6px 0 4px 0 !important; }
    #thermalPrintArea .t-divider { border-top: 1px dashed #000 !important; margin: 5px 0 !important; }
    #thermalPrintArea .t-divider-solid { border-top: 1px solid #000 !important; margin: 4px 0 !important; }
    #thermalPrintArea .t-table { width: 100% !important; border-collapse: collapse !important; margin: 4px 0 !important; table-layout: fixed !important; }
    #thermalPrintArea .t-table th { font-weight: bold !important; border-top: 1px solid #000 !important; border-bottom: 1px solid #000 !important; padding: 3px 1px !important; font-size: 10px !important; }
    #thermalPrintArea .t-table td { padding: 3px 1px !important; vertical-align: top !important; font-size: 9.5px !important; }
    #thermalPrintArea .t-row { display: flex !important; justify-content: space-between !important; margin: 2px 0 !important; }
    #thermalPrintArea .t-row.t-right { justify-content: flex-end !important; text-align: right !important; }
    #thermalPrintArea .t-row.t-right span { text-align: right !important; }

    @page {
        size: 80mm auto;
        margin: 0;
    }
}
