@media(min-width: 1201px) {
    .container {
        max-width: 1364px;
    }

    header .nav-link {
        flex-direction: row !important;
        border-radius: 8px;
        padding: 12px 25px !important;
        width: auto;
        aspect-ratio: auto;
    }

    header .nav-link span {
        font-size: 16px;
        padding-left: 10px;
    }
}

@media(max-width: 1600px) {

    .attr {
        display: block;

    }

    .attr label {
        width: calc(100% - 25px);
        margin-right: 0;
    }

    .attr span {
        display: block;
        margin: 0 0 0 25px;
        width: calc(100% - 25px);
    }

}

@media(min-width: 1900px) {
    .container {
        max-width: 1800px;
    }
}

@media(min-width: 1700px) {
    .container {
        max-width: 1700px;
    }
}

@media(min-width: 0px) {
    .navbar-toggler {
        display: none;
    }

    .left-toggler {
        display: none;
    }

    header .nav-link {
        text-align: center;
    }

    header .nav-link .fa {
        display: block;
        margin: 0 auto;
    }
}




@media(max-width: 1600px) {
    header .nav-link {
        border-radius: 6px;
        padding: 10px 15px !important;
    }

    header .nav-link span {
        font-size: 14px;
        padding-left: 8px;
    }

    .header-user {
        font-size: 14px;
        margin-right: 5px;
    }

    .header-user .fa-key {
        margin: 0 2px;
    }

    .screenshots3d .btn {
        font-size: 12px;
    }

    .view-buttons>div>button {
        width: 48%;
    }


}



@media(max-width: 767px) {


    header .box {
        padding: 5px 10px;
    }

    header .box input {
        font-size: 14px;
        border: none;
    }

    #main-content {
        margin-top: 160px;
        margin-bottom: 100px;
    }

    .dashboard-tile {
        width: calc(50% - 20px);
    }

    .header-user {
        font-size: 10px;
        paddding: 10px 10px;
    }

    .header-user .fas {
        font-size: 16px;
        margin: 2px 5px 0 5px;
    }

    aheader .nav-item {
        display: block;
        margin: 0;

    }

    aheader .nav-link {
        displaty: block;
        border-radius: 0;
        padding: 10px 25px !important;
        margin: 0px 0;
        font-weight: 500;
        font-size: 14px;
        position: relative;
        border: 1px solid transparent;
    }

    aheader .navbar {
        position: absolute;
        display: block;
        left: 0;
        width: 100vw;
        background: #fff;
        top: 60px;
        padding: 0;
        z-index: 10;

    }


    header .nav-link {
        color: #555;
        padding: 0 !important;
        margin: 0px 0;
        width: 50px;
        font-weight: 400;
        font-size: 18px;
        position: relative;
        border-radius: 100%;
        aspect-ratio: 1;
        background: #fff;
    }

    header .nav-link span {
        font-size: 9px;
        text-align: center;
        display: none;
    }


    #navigace.show {
        box-shadow: 0px 20px 20px rgba(0, 0, 0, 0.2) !important;
        padding-bottom: 10px;
    }




    header .logo-img {
        height: 20px;
        margin: 5px 10px;
    }

    .headeruser {
        font-size: 12px;
        line-height: 1;
    }

    #list-filter {
        aheight: 0;
        overflow: hidden;
    }

    #fulltext {
        border: 1px solid #ccc;
        max-width: 400px;
    }


    #content {
        margin-left: 0;
        width: calc(100vw);
        margin-top: 70px;
    }


    #left .left-toggler {
        position: absolute;
        top: -5px;
        left: 50%;
        font-size: 20px;
        width: 10px;
        color: #333;
        font-weight: bold;
        cursor: pointer;
    }


    #left.expanded {
        height: auto;
        position: relative;
        border: none;
        padding: 0 15px;
    }

    #left.expanded .left-toggler {
        display: none;
    }

    header h1 {
        font-size: 20px;
        margin: 10px 0;
        text-align: center;
    }

}

/* mobile landscape ----------------------------------- */
@media (min-width: 481px) and (max-width: 896px) and (orientation: landscape) {
    body {
        height: 100vh !important;
        overflow: hidden;
    }

    .landscape {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 20;
        text-align: center;
    }

    .landscape h6 {
        font-size: 22px;
    }

    .landscape div {
        position: absolute;
        left: 50%;
        top: 50%;
        margin: 0;
        transform: translate(-50%, -50%);
        width: 80%;
    }

}


@media(max-width: 468px) and (orientation: portrait) {

    .headeruser {
        position: absolute;
        top: 5px;
        right: 0px;
    }

    header .nav-item {
        margin: 0 5px;
    }

    .scroll-down header {
        top: -230px;
    }


    .dashboard-tile {
        width: calc(100% - 30px);
    }

    header .col-md-2,
    header .col-md-3 {
        text-align: center !important;
        padding-top: 10px;
    }

    .page-link {
        padding: 5px 8px;
        font-size: 11px;
    }

    .float-start,
    .float-end {
        float: none !important;
    }

    div.dt-container div.dt-paging ul.pagination {
        margin: 10px 0 !important;
    }


    #main-content {
        margin-top: 200px;
        margin-bottom: 100px;
    }


    .formTypesMenu .nav {
        margin: 10px 0 !important;
        font-size: 10px;
        text-align: center;
    }

    .formTypesMenu .nav-item {
        margin: 5px;
    }

    .formTypesMenu .nav-item .nav-link {
        padding: 5px 10px;
    }


    .adminDetail {
        padding: 15px;
    }

    .adminDetail .col {
        flex: 1 0 100%;
    }

    .appForm {
        padding: 15px;
    }

    .col-md-8 .question h3 {
        font-size: 14px;
    }



    #bottom .btn {
        margin: 7px 3px;
        font-size: 10px;
        padding: 4px 10px !important;
    }

    .attr {
        display: flex;
    }

    .attr label {
        display: inline-block;
        width: 160px;
        margin-right: 5px;
        color: #004990;
        font-weight: bold;
    }

    .attr span {
        display: inline-block;
        width: calc(100% - 165px);
        margin-left: auto;
        overflow: hidden;
    }




}



/* =========================
   MOBILE FIX: header + menu
   ========================= */

@media (max-width: 767px) {

    /* ---- HEADER: 2 řádky, bez chaosu ---- */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, .08);
    }

    header .d-flex {
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
    }

    /* hamburger */
    .mobile-menu-btn {
        display: inline;
        position: absolute;
        top: 5px;
        left: 5px;
        align-items: center;
        justify-content: center;
        z-index: 100;
        width: 44px;
        height: 44px;
        border: none;
        background: #fff;
        border-radius: 10px;
        flex: 0 0 auto;
    }

    header .col-md-7.col-2.d-flex {
        display: none !important;
    }

    a.back {
        margin-top: -30px;
    }

    .mobile-menu-btn i {
        font-size: 20px;
    }

    /* logo */
    header .header-left {
        max-width: 100vw !important;
        display: block !important;
        width: 100vw !important;
        position: absolute;
        text-align: center !important;
        justify-content: center !important;
        top: 10px;
    }



    header .logo-img {
        height: 22px;
        margin: 0;
    }

    /* uživatel vpravo */
    header .headeruser {
        position: static;
        /* rušíme absolutní pozicování */
        flex: 0 0 auto;
        margin-left: auto;
        text-align: right;
        font-size: 12px;
        line-height: 1.1;
        white-space: nowrap;
        z-index: 200;
    }

    /* druhý řádek: title + search přes celou šířku */
    header .col-md-7.col-2.d-flex {
        flex: 0 0 100%;
        width: 100%;
        order: 10;
        align-items: center;
        gap: 8px;
    }

    header .col-md-7 h2 {
        margin: 0 !important;
        font-size: 16px;
        line-height: 1.2;
        white-space: nowrap;
    }

    header form {
        min-width: 0 !important;
        width: 50%;
        display: none;
    }

    header .me-3.mt-1 {
        margin: -10px 0 0 0 !important;
    }

    .headeruser a {
        display: inline-block;
        font-size: 14px;
        margin: 5px 5px;
    }

    #fulltext {
        width: 100%;
        max-width: none !important;
        font-size: 14px;
        height: 38px;
    }

    /* obsah posunout pod fixed header */
    #content {
        margin-left: 0 !important;
        width: 100% !important;
        margin-top: 92px !important;
        /* dle výšky headeru */
    }



    /* ---- MENU: výsuvné zleva ---- */
    #left-bar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 82vw;
        /* menu šířka na telefonu */
        max-width: 260px;
        z-index: 1100;
        overflow-y: auto;
        position: fixed;

        transform: translateX(-105%);
        transition: transform .2s ease;
        box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
        padding-top: 20px;
        /* aby menu nezačínalo pod headerem */
    }

    body.menu-open #left-bar {
        transform: translateX(0);
    }

    /* overlay */
    body.menu-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .35);
        z-index: 1050;
    }

    /* navigace: vrať texty (ty je teď skrýváš) */
    header .nav-link {
        width: auto !important;
        aspect-ratio: auto !important;
        border-radius: 10px !important;
        padding: 10px 14px !important;
        background: transparent !important;
        text-align: left !important;
    }

    header .nav-link span {
        display: inline !important;
        font-size: 14px !important;
        padding-left: 10px !important;
    }

    /* menu položky a ikony */
    #left-bar .nav-item {
        margin: 2px 10px;
    }

    #left-bar .nav-link i {
        width: 22px;
        text-align: center;
    }
    
}

/* na desktopu hamburger schovat */
@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    div.dt-container div.dt-search input {
        width: 100% !important;
    }
    .dt-search
    {
        margin: 0 !important;
    }
}