/* app/static/css/responsive.css */

/* Ajustes para pantallas pequeñas (móviles) */
@media screen and (max-width: 768px) {
    body { font-size: 16px; }
    
    .App-menu, .App-content, .form-group, .form-group label, .form-group select, .form-group input, .card, table td, .documents-container, .modal-content, .modal-group, #notification-modal, .table-container, #trucks, button, select, input { font-size: 16px; }
    
    .route-header, .route-group, .route-content { font-size: 16px; }
    .App-menu { width: 100%; padding: 10px; margin: 20px 0 0 0; font-size: 12px; }
    .App-content { width: 100%; padding: 10px; margin: 0; font-size: 12px; order: 2; }
    #map { height: calc(50vh - 60px); min-height: 300px; font-size: 12px; }
    .App-menu { order: 1; }
    
    main { display: flex; flex: 1; flex-direction: row; flex-wrap: wrap; margin-top: 40px; margin-bottom: 40px; }
    
    #menu-toggle { display: block; position: relative; margin-left: auto; font-size: 2.0em; }
    nav { position: static; width: 100%; }
    nav ul { display: none; flex-direction: column; background-color: #000; color: #fff; position: fixed; top: 55px; left: 0; right: 0; width: 100%; padding: 10px 0; z-index: 1000; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
    nav ul li { margin: 0; padding: 12px 20px; border-bottom: 1px solid #333; transition: all 0.3s ease; }
    nav ul li:hover { background-color: #ffed00; }
    nav ul li:hover a { color: #000; }
    nav ul li:last-child { border-bottom: none; }
    nav ul li a { color: #fff; display: block; font-size: 1.2em; transition: all 0.3s ease; }
    nav ul.show { display: flex; } /* ESTO ARREGLA EL MENÚ DE HAMBURGUESA */
    
    table { border: 0; }
    table thead { display: none; }
    table tr { margin-bottom: 1rem; display: block; border: 1px solid #000; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
    table td { display: block; text-align: right; font-size: 16px; border-bottom: 1px solid #000; position: relative; padding-left: 40%; padding-right: 5%; }
    table td:before { content: attr(data-label); position: absolute; left: 5px; width: 45%; padding-right: 10px; text-align: left; font-weight: bold; color: black; }
    table td:last-child { border-bottom: 0; }
    table td button { width: auto; margin: 5px; }
    table td input { width: 100%; margin: 0; }
    
    .modal-content { margin: 20% auto; font-size: 12px; }
    .login-container { padding: 1.5rem; max-width: 75%; margin-top: 10%; }
    
    .topbar { display: flex; align-items: center; justify-content: space-between; position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1001; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
    .topbar-header{ flex: 0 0 auto; width: 20%; }
    .topbar-nav { flex: 0 0 auto; width: 20%; border-bottom-right-radius: 10px; }
    
    #ros { margin: 0; padding: 0; max-width: 80px; max-height: 40px; }
    #editstatusimg { margin: auto; padding: auto; max-width: 50%; max-height: 50%; margin-left: 25%; }
    
    .route-header { margin-top: 25px; padding: 10px; text-align: center; }
    .route-group { display: flex; flex-direction: column; align-items: stretch; }
    table { table-layout: auto; width: 100%; }
    table colgroup col { width: auto !important; }
    #editstatusimg { margin-left: 25%; }
    footer{ display: none; }
    .input-group { display: block; }
    #trucks{ margin: 0; padding: 0; }
}

/* Ajustes para pantallas medianas (tablets) */
@media screen and (max-width: 1024px) and (min-width: 768px) {
    body { font-size: 16px; }
    .App-menu, .App-content, .form-group, .form-group label, .form-group select, .form-group input, .card, table td, .documents-container, .modal-content, .modal-group, #notification-modal, .table-container, #trucks, button, select, input { font-size: 16px; }
    .route-header, .route-group, .route-content { font-size: 16px; }
    .App-menu { width: 100%; padding: 10px; margin: 20px 0 0 0; font-size: 12px; }
    .App-content { width: 100%; padding: 10px; margin: 0; font-size: 12px; order: 2; }
    #map { height: calc(50vh - 60px); min-height: 300px; font-size: 12px; }
    .App-menu { order: 1; }
    main { display: flex; flex: 1; flex-direction: row; flex-wrap: wrap; margin-top: 40px; margin-bottom: 40px; }
    #menu-toggle { display: block; position: relative; margin-left: auto; font-size: 2.0em; }
    nav { position: static; width: 100%; }
    nav ul { display: none; flex-direction: column; background-color: #000; color: #fff; position: fixed; top: 55px; left: 0; right: 0; width: 100%; padding: 10px 0; z-index: 1000; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
    nav ul li { margin: 0; padding: 12px 20px; border-bottom: 1px solid #333; transition: all 0.3s ease; }
    nav ul li:hover { background-color: #ffed00; }
    nav ul li:hover a { color: #000; }
    nav ul li:last-child { border-bottom: none; }
    nav ul li a { color: #fff; display: block; font-size: 1.2em; transition: all 0.3s ease; }
    nav ul.show { display: flex; }
    table { border: 0; }
    table thead { display: none; }
    table tr { margin-bottom: 1rem; display: block; border: 1px solid #000; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
    table td { display: block; text-align: right; font-size: 12px; border-bottom: 1px solid #000; position: relative; padding-left: 40%; padding-right: 5%; }
    table td:before { content: attr(data-label); position: absolute; left: 12px; width: 45%; padding-right: 10px; text-align: left; font-weight: bold; color: black; }
    table td:last-child { border-bottom: 0; }
    table td button { width: auto; margin: 5px; }
    table td input { width: 100%; margin: 0; }
    .modal-content { margin: 20% auto; font-size: 12px; }
    .login-container { padding: 1.5rem; max-width: 75%; margin-top: 10%; }
    .topbar { display: flex; align-items: center; justify-content: space-between; position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1001; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
    .topbar-header{ flex: 0 0 auto; width: 20%; }
    .topbar-nav { flex: 0 0 auto; width: 20%; border-bottom-right-radius: 10px; }
    #ros { margin: 0; padding: 0; max-width: 80px; max-height: 40px; }
    #editstatusimg { margin: auto; padding: auto; max-width: 50%; max-height: 50%; margin-left: 25%; }
    .route-header { margin-top: 25px; padding: 10px; text-align: center; }
    .route-group { display: flex; flex-direction: column; align-items: stretch; }
    table { table-layout: auto; width: 100%; }
    table colgroup col { width: auto !important; }
    footer { display: none; }
    .input-group { display: block; }
    #trucks{ margin: 0; padding: 0; }
}

/* Ajustes para pantallas grandes (escritorio) */
@media (min-width: 1367px) {
    .route-display { max-height: 55vh; margin: 5px; text-align: left; background-color: #ffffff; padding: 5px; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); overflow: auto; overflow-y: auto; font-size: 12px; }
}