/* 
* Fiscal Manager - Responsiivisuus
* Tämä tiedosto sisältää mobiilinäyttöjen optimoinnit
*/

/* Mobiililaitteet (alle 576px) */
@media (max-width: 576px) {
    /* Yleiset muotoilut */
    .container {
        padding-left: 10px;
        padding-right: 10px;
        width: 100%;
    }
    
    .body-content {
        margin-top: 60px;
        padding: 10px 0;
    }
    
    h1, h2, h3 {
        font-size: 1.5rem;
    }
    
    h4, h5, h6 {
        font-size: 1.2rem;
    }
    
    /* Header optimointi */
    .fiscal-header {
        height: 50px;
    }
    
    .fiscal-header .navbar-brand {
        font-size: 1.2rem;
    }
    
    .user-greeting {
        display: none;
    }
    
    /* Taulukkoasettelu */
    .table-responsive .table td {
        display: block;
        width: 100%;
        padding: 8px 0;
    }
    
    .table-responsive .table td:nth-child(2n) {
        padding: 8px 0;
    }
    
    /* Listbox optimointi */
    .e-listbox-wrapper, 
    .e-listbox-container {
        width: 100% !important;
    }
    
    /* Painikkeet */
    .e-btn, button, .button {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .files-buttons {
        flex-direction: column;
    }
    
    .files-buttons .e-btn {
        margin-bottom: 5px;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-left {
        margin-bottom: 15px;
    }
    
    .footer-right {
        flex-direction: column;
    }
    
    .footer-right a {
        margin: 5px 0;
    }
    
    /* Tiedostolista ja playerlista */
    .files-content, .player-content {
        width: 100%;
    }
    
    /* TableBottom asettelujen korjaus */
    .table-bottom-options {
        flex-direction: column-reverse;
    }
    
    .table-bottom-default-settings {
        flex-direction: column;
        width: 100%;
    }
    
    .table-bottom-default-settings .e-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    /* Dialog optimointi */
    .e-dialog {
        width: 95% !important;
        max-width: 95% !important;
    }
    
    .e-dialog .e-dlg-content {
        padding: 10px !important;
    }
}

/* Tabletit (576px - 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    /* Taulukkoasettelu */
    .table-responsive .table td {
        padding: 10px 5px;
    }
    
    /* Listbox optimointi */
    .e-listbox-wrapper, 
    .e-listbox-container {
        width: 100% !important;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-left {
        margin-bottom: 15px;
    }
}

/* Pienet näytöt (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    /* Taulukkoasettelu */
    .table-responsive .table td {
        padding: 10px 5px;
    }
}

/* Isot näytöt (yli 992px) */
@media (min-width: 993px) {
    /* Parannetut asetelmat isoille näytöille */
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .table-responsive .table td {
        padding: 0 15px 0 0;
    }
    
    /* Listbox optimointi */
    .e-listbox-wrapper, 
    .e-listbox-container {
        max-height: 600px;
    }
}

/* Isoja näyttöjä varten (yli 1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}