/* M17 Dashboard - Mobile Support */

@media (max-width: 768px) {

    body {
        overflow-x: auto;
    }

    .container,
    .container-fluid {
        width: 100%;
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        width: 100%;
        font-size: 12px;
    }

    th,
    td {
        padding: 5px !important;
        white-space: nowrap;
    }

    input,
    select,
    button,
    .form-control,
    .btn {
        max-width: 100%;
    }

    footer {
        font-size: 11px;
        overflow-wrap: anywhere;
    }
}

/* Mobile navbar cleanup */
@media (max-width: 768px) {
    .navbar {
        position: static !important;
        min-height: auto !important;
        margin-bottom: 10px !important;
    }

    .navbar-header,
    .navbar-brand {
        float: none !important;
        display: block !important;
        width: 100% !important;
    }

    .navbar-brand {
        height: auto !important;
        padding: 10px 8px !important;
        white-space: normal !important;
        line-height: 1.2 !important;
        font-size: 20px !important;
    }

    .navbar-toggle {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        margin: 0 !important;
    }

    body {
        padding-top: 0 !important;
    }
}
