
@media (max-width: 992px) {
    
    html, body {
        overflow-x: hidden !important;
        position: relative;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    * {
        box-sizing: border-box !important;
    }

    .container {
        padding: 8px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }

    
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding-bottom: 15px !important;
    }

    .header div {
        flex-direction: column;
        text-align: center;
    }

    
    .tabs-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px;
        padding: 10px;
    }

    .tabs-header div {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .tab-btn {
        flex: 1 1 100% !important;
        font-size: 11px;
        padding: 12px;
    }

    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        display: block !important;
    }

    .form-group {
        width: 100% !important;
        margin-bottom: 12px;
    }

    .form-group input, .form-group select, .form-group textarea {
        width: 100% !important;
        font-size: 14px !important;
    }

    
    .table-responsive {
        border: none !important;
        overflow-x: visible !important;
    }

    table, thead, tbody, tr, td {
        display: block;
        width: 100% !important;
    }

    table thead {
        display: none !important; 
    }

    table tbody tr {
        background: #fff;
        border: 2px solid #e2e8f0;
        border-radius: 14px;
        margin-bottom: 20px;
        padding: 15px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.02);
        position: relative;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    table tbody td {
        padding: 10px 0 !important;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        text-align: left !important;
        font-size: 14px;
        font-weight: 500;
        overflow-wrap: anywhere;
        white-space: normal !important;
        min-height: auto !important;
    }

    table tbody td:last-child {
        border-bottom: none !important;
        padding-top: 15px !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    
    table tbody td::before {
        content: attr(data-label);
        font-weight: 800;
        text-transform: uppercase;
        color: #94a3b8;
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    
    .action-btns {
        width: 100% !important;
        display: flex !important;
        gap: 8px !important;
    }

    .action-btns button {
        flex: 1;
        justify-content: center;
        padding: 10px !important;
    }

    
    .modal-content {
        width: 95% !important;
        padding: 15px !important;
        margin: 10px auto !important;
    }

    .modal-rechazo-inner {
        width: 95% !important;
    }

    
    .ot-page {
        padding: 15px !important;
        width: 100% !important;
        transform: none !important;
    }

    .ot-header-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .ot-data-grid, .ot-costs-grid {
        grid-template-columns: 1fr !important;
    }

    .ot-field {
        width: 100% !important;
    }
}
