﻿/* Mobile nav — oddelená logika od PC mini-navbar */
@media only screen and (max-width: 1200px) {
    /* Sidebar vždy display:block, ale skrytý mimo obrazovky */
    .body-small .navbar-static-side {
        display: block !important;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 220px !important;
        height: 100vh;
        overflow-y: auto;
        z-index: 9999;
        background-color: #ffffff;
        transform: translateX(-100%);
        transition: transform 0.3s ease !important;
    }

    /* Otvorený stav — slide in z ľava */
    .body-small.mobile-nav-open .navbar-static-side {
        transform: translateX(0);
    }

    /* Backdrop — fade in/out */
    .mobile-nav-backdrop {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mobile-nav-open .mobile-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    /* Zamkni scroll stránky keď je mobilné menu otvorené */
    body.mobile-nav-open {
        overflow: hidden;
        overscroll-behavior: none;
    }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 1200px) {
    .prepayedicon {     
        width: 40px !important;
        height: 40px !important;
        line-height: 39px !important;
    }

    .notcomebutton, #instantPay {
        margin-top: 10px;
    }

    .accordionsettings button {
        font-size: 14px;
    }

    .btn-gradient.icon, .btn-payment.icon {
        padding: 5px 12px !important;
        margin-right: 10px;
        font-size: 21px !important;
    }

    .fc-toolbar {
        display: block !important;
    }

    .fc-toolbar-chunk:first-child, .fc-toolbar-chunk:last-child {
        float: right;
    }

    .loginform {
        width: 80%;
    }

    .fc-toolbar-title {
        background: #fabd3e;
        padding: 5px 50px;
        border-radius: 0 20px 20px 0;
        margin-left: -25px !important;
        font-size: 18px !important;
    }

    .fc-button-group .fc-prev-button, .fc-button-group .fc-next-button {
        font-size: 17px !important;
        margin-top: -6px !important;
    }

    .fc-toolbar-chunk:first-child {
        margin-top: 0;
        margin-bottom: 5px;
    }

    .hideonmobile {
        display: none;
    }

    .sidenav {
        width: 50px;
    }

    .logobg {
        padding: 10px 0;
    }

    .hideonpc {
        display: block;
    }

    .sidenav a {
        padding: 10px 8px 10px 8px;
    }

    .logout {
        margin-right: 10px;
    }

    .resp-content {
        padding: 0 5px 0 55px;
    }

    .smallonmob {
        font-size: 25px !important;
    }

    #wrapper {
        background: #2c2c2c;
    }

    .dataTables_wrapper {
        overflow-x: scroll;
    }

    .w-75 {
        width: 100% !important;
    }

    .canvas-container, .pdf-canvas {
        width: 93% !important;
        height: 116vw !important;
    }

    #fileLabel {
        margin-top: 20px;
    }

    #homeicons {
        margin-top: 0 !important;
    }

    #productsTable_filter [type=search], #catsTable_filter [type=search], #brandsTable_filter [type=search], #typesTable_filter [type=search], #attributesTable_filter [type=search], #couponsTable_filter [type=search], #myTable_filter [type=search], #myTableVaca_filter [type=search] {
        width: 250px;
    }

    #productsTable_length, #catsTable_length, #brandsTable_length, #typesTable_length, #attributesTable_length, #couponsTable_length, #myTable_length, #myTableVaca_length {
        float: left !important;
    }

    #select-container, #select-currency {
        width: 48px !important;
    }

    /* .open class drží dropdown otvorený aj keď hover zmizne (scroll gesto) */
    #select-container.open,
    #select-currency.open {
        height: auto;
        border-radius: 20px;
        box-shadow: 0px 7px 10px rgba(79, 104, 113, 0.30);
    }

    #select-container.open ul,
    #select-currency.open ul {
        max-height: 220px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-top: 10px;
    }

    #select-container li:first-child,
    #select-currency li:first-child {
        pointer-events: none;
    }

    #select-container li,
    #select-currency li {
        touch-action: manipulation;
    }

    .titleimage{
        width:100%;
    }

    #NotAllowed .modal-content .firstcol {     
        padding: 35px;
    }

    #NotAllowed .modaltitle {
        margin-top: 0 !important;
    }
} 

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {

} 

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) and (max-width: 900px) {

} 

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {

} 

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

}