/* Responsive Global Emgusprint */

/* Viewport meta is required for these to work on mobile */

@media (max-width: 1024px) {

    /* Layout */
    .app-container {
        flex-direction: column;
        min-height: 100vh;
    }

    .sidebar {
        position: fixed !important;
        left: 0;
        top: 0;
        bottom: 0;
        width: 280px !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 2000 !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
        display: flex !important;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        padding: 60px 20px 20px !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .mobile-nav-toggle {
        display: flex !important;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 2001;
        background: white;
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid #ddd;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        font-weight: bold;
    }

    /* Header adjustments */
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }

    .header-actions {
        width: 100%;
        gap: 10px;
    }

    .btn {
        flex: 1;
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Cotizador */
    .layout-cotizador {
        flex-direction: column !important;
    }

    .panel-resumen {
        order: -1;
        max-width: 100% !important;
        min-width: 100% !important;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Kanban */
    .kanban-wrapper {
        padding: 10px;
        overflow-x: auto;
    }

    .kanban-board {
        width: max-content;
    }

    /* Tables */
    .data-table {
        display: block;
        overflow-x: auto;
    }

    /* Modals */
    .modal {
        width: 95% !important;
        max-width: none !important;
    }
}