

@media (max-width: 768px) {
    
    #tabla_cotizaciones_seguimiento thead {
        display: none;
    }

    #tabla_cotizaciones_seguimiento, 
    #tabla_cotizaciones_seguimiento tbody, 
    #tabla_cotizaciones_seguimiento tr, 
    #tabla_cotizaciones_seguimiento td {
        display: block;
        width: 100% !important;
    }

    #tabla_cotizaciones_seguimiento {
        table-layout: auto;
        min-width: 0 !important;
        border: none;
    }

    #tabla_cotizaciones_seguimiento tr {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 15px;
        padding: 12px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        position: relative;
    }

    #tabla_cotizaciones_seguimiento td {
        padding: 8px 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        font-size: 11px !important;
        border-bottom: 1px solid #f8fafc;
    }

    
    #tabla_cotizaciones_seguimiento td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        color: #64748b;
        font-size: 9px;
        text-align: left;
    }

    
    #tabla_cotizaciones_seguimiento td:first-child {
        border-bottom: 2px solid #eff6ff;
        padding-bottom: 10px;
        margin-bottom: 10px;
        font-size: 14px !important;
        justify-content: flex-start;
        gap: 10px;
    }

    #tabla_cotizaciones_seguimiento td:first-child::before {
        content: "FOLIO: ";
        font-size: 11px;
    }

    
    #tabla_cotizaciones_seguimiento td[data-label="Total"] {
        background: #f0f9ff;
        margin: 5px -12px;
        padding: 10px 12px;
        font-weight: 800;
        color: #2563eb;
        font-size: 14px !important;
    }

    
    #tabla_cotizaciones_seguimiento td[data-label="Estado"],
    #tabla_cotizaciones_seguimiento td[data-label="Acciones"] {
        justify-content: space-between;
        border-top: 1px solid #f1f5f9;
        padding-top: 12px;
        margin-top: 5px;
    }

    .action-btns {
        display: flex !important;
        gap: 10px !important;
    }

    
    .partidas-detail-row td {
        padding: 0 !important;
        border: none !important;
    }

    .partidas-inner {
        padding: 10px 0;
    }

    
    .partidas-table, 
    .partidas-table thead, 
    .partidas-table tbody, 
    .partidas-table tr, 
    .partidas-table td {
        display: block;
        width: 100% !important;
    }

    .partidas-table thead {
        display: none;
    }

    .partidas-table tr {
        background: #fff;
        border: 2px solid #bae6fd;
        border-radius: 14px;
        margin-bottom: 20px;
        padding: 15px;
        box-shadow: 0 4px 6px rgba(186, 230, 253, 0.2);
    }

    .partidas-table td {
        padding: 8px 0;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .partidas-table td:last-child {
        border-bottom: none;
        padding-top: 12px;
        flex-direction: row;
        justify-content: center;
    }

    .partidas-table td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        color: #64748b;
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    .partidas-table select,
    .partidas-table input,
    .partidas-table textarea {
        font-size: 14px !important;
        padding: 10px !important;
    }

    .partidas-table .neto-cell {
        font-size: 16px !important;
        color: #1e40af;
        text-align: right !important;
    }

    .totales-box {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .totales-box .t-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .totales-box .t-val {
        font-size: 18px;
    }
}
