@import "98.css";





/* ============================================================
   WINDOWS 98 - GLOBAL THEME
   ============================================================ */

:root {
    --win98-gray: #c0c0c0;
    --win98-light: #ffffff;
    --win98-dark: #808080;
    --win98-black: #000000;
    --win98-blue: #000080;
    --win98-desktop: #008080;
    --win98-text: #000000;
    --win98-font: Tahoma, Arial, sans-serif;
}


/* ============================================================
   FONT WINDOWS 98
   ============================================================ */



*/
/* ============================================================
   RESET / BASE
   ============================================================ */
html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    color: var(--win98-text);
    /*    background-color: var(--win98-desktop);
*/ font-family: var(--win98-font);
    font-size: 14px;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* ============================================================
   ELEMENTI GENERALI
   ============================================================ */

button,
input,
select,
textarea,
table {
    font-family: var(--win98-font);
}

button,
input,
select,
textarea {
    border-radius: 0;
}


/* ============================================================
   DESKTOP WINDOWS 98
   ============================================================ */

.win98-desktop {
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}


/* ============================================================
   LAYOUT GENERALE
   ============================================================ */

.minHeightHeader {
    min-height: 40vh;
}

.minHeightContent {
    min-height: 30vh;
}

.contentHeight {
    min-height: 75vh;
}

.footerHeight {
    min-height: 17vh;
}

.footerHeight2 {
    min-height: 25vh;
}

.headerHeight {
    min-height: 20vh;
}

.height {
    min-height: 85vh;
}


/* ============================================================
   NAVBAR
   ============================================================ */

.backgroundNavbar,
.navBackground {
    background-color: var(--win98-gray);
    border-top: 2px solid var(--win98-light);
    border-left: 2px solid var(--win98-light);
    border-right: 2px solid var(--win98-black);
    border-bottom: 2px solid var(--win98-black);
}


/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 180px !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    background-color: var(--win98-desktop) !important;
    border: none !important;
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: auto;
}


    /* ============================================================
   SIDEBAR - WINDOW
   ============================================================ */

    .sidebar .window {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
        background-color: var(--win98-desktop) !important;
        border: none !important;
    }


    /* ============================================================
   SIDEBAR - BODY
   ============================================================ */

    .sidebar .window-body {
        width: 100% !important;
        min-height: 100%;
        margin: 0 !important;
        padding: 8px !important;
        box-sizing: border-box;
        background-color: var(--win98-desktop) !important;
        border: none !important;
    }


    /* ============================================================
   SIDEBAR - MENU
   ============================================================ */

    .sidebar .nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none;
    }


    /* ============================================================
   SIDEBAR - ITEM
   ============================================================ */

    .sidebar .nav-item {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }


    /* ============================================================
   SIDEBAR - LINK
   ============================================================ */

    .sidebar .nav-link {
        display: block;
        width: 100%;
        margin: 0 !important;
        padding: 7px 8px;
        box-sizing: border-box;
        color: #ffffff !important;
        background-color: var(--win98-desktop) !important;
        border: none !important;
        font-family: var(--win98-font);
        font-size: 14px;
        text-decoration: none;
        cursor: pointer;
    }


        /* ============================================================
   SIDEBAR - HOVER / ACTIVE
   ============================================================ */

        .sidebar .nav-link:hover,
        .sidebar .nav-link.active {
            color: #ffffff !important;
            background-color: var(--win98-blue) !important;
            text-decoration: none;
        }


/* ============================================================
   SIDEBAR - PARTE INFERIORE
   ============================================================ */

.sidebar-bottom {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--win98-dark);
}


/* ============================================================
   INFORMAZIONI UTENTE
   ============================================================ */

.user-info {
    padding: 6px 8px;
    color: var(--win98-black);
    font-size: 12px;
}

    .user-info small {
        display: block;
        margin-top: 2px;
        color: #404040;
    }

    .user-info strong {
        display: block;
        color: var(--win98-black);
        font-weight: bold;
    }


/* ============================================================
   CONTENUTO PRINCIPALE
   ============================================================ */

.main-content {
    margin-left: 180px;
    padding: 20px;
    padding-bottom: 50px;
    box-sizing: border-box;
    min-width: 0;
}


/* ============================================================
   HEADER
   ============================================================ */

.headerBackground {
    padding: 4px 6px;
    background-color: var(--win98-blue);
    color: var(--win98-light);
}

    .headerBackground h1,
    .headerBackground h2,
    .headerBackground h3,
    .headerBackground h4,
    .headerBackground h5,
    .headerBackground h6 {
        color: var(--win98-light);
    }


/* ============================================================
   TEXTURE HEADER
   ============================================================ */

.texture {
    background-image: url("header.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* ============================================================
   FOOTER
   ============================================================ */

.footerBackground {
    background-color: var(--win98-gray);
    border-top: 2px solid var(--win98-light);
    border-left: 2px solid var(--win98-light);
    border-right: 2px solid var(--win98-black);
    border-bottom: 2px solid var(--win98-black);
}


/* ============================================================
   TESTO
   ============================================================ */

.carattere {
    font-family: var(--win98-font);
}


/* ============================================================
   BORDI WINDOWS 98
   ============================================================ */

.bordo {
    background-color: var(--win98-gray);
    border-top: 2px solid var(--win98-light);
    border-left: 2px solid var(--win98-light);
    border-right: 2px solid var(--win98-black);
    border-bottom: 2px solid var(--win98-black);
    border-radius: 0;
}


/* ============================================================
   IMMAGINI
   ============================================================ */

.img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}


/* ============================================================
   WINDOWS
   ============================================================ */

.window {
    margin-bottom: 20px;
}

.window-body {
    box-sizing: border-box;
}


/* ============================================================
   SEARCH CONTAINER
   ============================================================ */

.search-form-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    margin: 20px;
}


/* ============================================================
   SEARCH FORM
   ============================================================ */

.search-form {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 350px;
    padding: 8px;
    box-sizing: border-box;
    background-color: var(--win98-gray);
    border-top: 2px solid var(--win98-light);
    border-left: 2px solid var(--win98-light);
    border-right: 2px solid var(--win98-black);
    border-bottom: 2px solid var(--win98-black);
}


    /* ============================================================
   SEARCH INPUT
   ============================================================ */

    .search-form input[type="text"],
    .search-form input[type="date"] {
        width: 100%;
        min-width: 0;
        padding: 3px 4px;
        box-sizing: border-box;
        background-color: var(--win98-light);
        color: var(--win98-black);
        border-top: 2px solid var(--win98-dark);
        border-left: 2px solid var(--win98-dark);
        border-right: 2px solid var(--win98-light);
        border-bottom: 2px solid var(--win98-light);
        font-family: var(--win98-font);
        font-size: 13px;
    }


        /* ============================================================
   SEARCH INPUT - FOCUS
   ============================================================ */

        .search-form input[type="text"]:focus,
        .search-form input[type="date"]:focus {
            outline: 1px dotted var(--win98-black);
        }


    /* ============================================================
   SEARCH BUTTON
   ============================================================ */

    .search-form button {
        min-width: 70px;
        padding: 4px 10px;
        background-color: var(--win98-gray);
        color: var(--win98-black);
        border-radius: 0;
        cursor: pointer;
        font-family: var(--win98-font);
        font-size: 13px;
    }

        .search-form button:hover {
            background-color: var(--win98-gray);
            color: var(--win98-black);
        }

        .search-form button:active {
            position: relative;
            top: 1px;
        }


/* ============================================================
   BUTTON GENERICI
   ============================================================ */

button {
    font-family: var(--win98-font);
    font-size: 13px;
    cursor: pointer;
}


/* ============================================================
   LINK
   ============================================================ */

a {
    color: #0000ff;
}

    a:visited {
        color: #800080;
    }

    a:hover {
        color: #ff0000;
    }


/* ============================================================
   LINK SIDEBAR
   ============================================================ */

.sidebar a,
.sidebar a:visited,
.sidebar a:hover,
.sidebar .nav-link.active {
    color: #ffffff !important;
}


/* ============================================================
   FIELDSET
   ============================================================ */

fieldset {
    margin-bottom: 15px;
}


/* ============================================================
   FORM GENERALE
   ============================================================ */

input,
select,
textarea {
    font-family: var(--win98-font);
    font-size: 13px;
}


    /* ============================================================
   INPUT WINDOWS 98
   ============================================================ */

    .form-control,
    input[type="text"],
    input[type="date"],
    input[type="email"],
    input[type="number"],
    input[type="password"],
    select,
    textarea {
        width: 100%;
        min-height: 24px;
        padding: 3px 5px;
        box-sizing: border-box;
        font-family: var(--win98-font);
        font-size: 13px;
        color: var(--win98-black);
        background-color: var(--win98-light);
        border-radius: 0;
        border-top: 2px solid var(--win98-dark);
        border-left: 2px solid var(--win98-dark);
        border-right: 2px solid var(--win98-light);
        border-bottom: 2px solid var(--win98-light);
        box-shadow: none;
        outline: none;
    }


        /* ============================================================
   INPUT - FOCUS
   ============================================================ */

        .form-control:focus,
        input[type="text"]:focus,
        input[type="date"]:focus,
        input[type="email"]:focus,
        input[type="number"]:focus,
        input[type="password"]:focus,
        select:focus,
        textarea:focus {
            border-radius: 0;
            border-top: 2px solid var(--win98-black);
            border-left: 2px solid var(--win98-black);
            border-right: 2px solid var(--win98-light);
            border-bottom: 2px solid var(--win98-light);
            box-shadow: none;
            outline: none;
        }


/* ============================================================
   TABELLE GENERICHE
   ============================================================ */

table {
    border-collapse: collapse;
    background-color: var(--win98-gray);
}

    table th,
    table td {
        padding: 4px 6px;
        border: 1px solid var(--win98-dark);
    }

    table th {
        background-color: var(--win98-gray);
        font-weight: bold;
    }


/* ============================================================
   TABLE WRAPPER
   ============================================================ */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* ============================================================
   TABLE WINDOWS 98
   ============================================================ */

.table {
    width: 100%;
    margin-bottom: 12px;
    background-color: var(--win98-gray);
    border-collapse: separate;
    border-spacing: 0;
}

    .table th,
    .table td {
        padding: 6px 8px;
        color: var(--win98-black);
        border-top: 1px solid var(--win98-light);
        border-left: 1px solid var(--win98-light);
        border-right: 1px solid var(--win98-dark);
        border-bottom: 1px solid var(--win98-dark);
        vertical-align: middle;
    }

    .table th {
        background-color: var(--win98-gray);
        font-weight: bold;
    }

    .table tbody tr:hover td {
        background-color: var(--win98-blue);
        color: var(--win98-light);
    }


/* ============================================================
   DASHBOARD TABLE
   ============================================================ */

.dashboard-table {
    width: 100%;
    margin: 0 0 25px 0;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--win98-gray);
    border-top: 2px solid var(--win98-light);
    border-left: 2px solid var(--win98-light);
    border-right: 2px solid var(--win98-black);
    border-bottom: 2px solid var(--win98-black);
    font-family: var(--win98-font);
    font-size: 14px;
}

    .dashboard-table thead th {
        padding: 7px 10px;
        background-color: var(--win98-blue);
        color: var(--win98-light);
        text-align: left;
        font-weight: bold;
        border-right: 1px solid var(--win98-dark);
        border-bottom: 1px solid var(--win98-black);
    }

        .dashboard-table thead th:last-child {
            border-right: none;
        }

    .dashboard-table tbody td {
        padding: 8px 10px;
        min-height: 28px;
        background-color: var(--win98-gray);
        border-right: 1px solid var(--win98-dark);
        border-bottom: 1px solid var(--win98-dark);
        vertical-align: middle;
    }

        .dashboard-table tbody td:last-child {
            border-right: none;
        }

    .dashboard-table tbody tr:nth-child(even) td {
        background-color: #d4d0c8;
    }

    .dashboard-table tbody tr:hover td {
        background-color: var(--win98-blue);
        color: var(--win98-light);
    }

    .dashboard-table th:nth-child(1),
    .dashboard-table td:nth-child(1) {
        width: 35%;
    }

    .dashboard-table th:nth-child(2),
    .dashboard-table td:nth-child(2) {
        width: 30%;
    }

    .dashboard-table th:nth-child(3),
    .dashboard-table td:nth-child(3) {
        width: 35%;
    }


/* ============================================================
   TABELLA MESI
   ============================================================ */

.mesi-container {
    width: 100%;
    min-width: 0;
}

.mesi-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--win98-gray);
    border-top: 2px solid var(--win98-light);
    border-left: 2px solid var(--win98-light);
    border-right: 2px solid var(--win98-black);
    border-bottom: 2px solid var(--win98-black);
    font-family: var(--win98-font);
    font-size: 14px;
}

    .mesi-table th {
        padding: 7px 10px;
        background-color: var(--win98-blue);
        color: var(--win98-light);
        text-align: left;
        font-weight: bold;
        border-right: 1px solid var(--win98-dark);
        border-bottom: 1px solid var(--win98-black);
    }

        .mesi-table th:last-child {
            border-right: none;
        }

    .mesi-table td {
        padding: 8px 10px;
        background-color: var(--win98-gray);
        border-right: 1px solid var(--win98-dark);
        border-bottom: 1px solid var(--win98-dark);
        vertical-align: middle;
    }

        .mesi-table td:last-child {
            border-right: none;
        }

    .mesi-table tbody tr:nth-child(even) td {
        background-color: #d4d0c8;
    }

    .mesi-table tbody tr:hover td {
        background-color: var(--win98-blue);
        color: var(--win98-light);
    }


/* ============================================================
   NAVIGAZIONE MESI
   ============================================================ */

.mesi-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.win98-button {
    min-width: 150px;
    padding: 5px 12px;
    background-color: var(--win98-gray);
    color: var(--win98-black);
    border-top: 2px solid var(--win98-light);
    border-left: 2px solid var(--win98-light);
    border-right: 2px solid var(--win98-black);
    border-bottom: 2px solid var(--win98-black);
    border-radius: 0;
    font-family: var(--win98-font);
    font-size: 13px;
    cursor: pointer;
}

    .win98-button:hover:not(:disabled) {
        background-color: var(--win98-gray);
    }

    .win98-button:active:not(:disabled) {
        border-top: 2px solid var(--win98-black);
        border-left: 2px solid var(--win98-black);
        border-right: 2px solid var(--win98-light);
        border-bottom: 2px solid var(--win98-light);
        padding-top: 6px;
        padding-left: 13px;
    }

    .win98-button:disabled {
        color: var(--win98-dark);
        cursor: default;
    }

.anno-corrente {
    padding: 4px 12px;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}


/* ============================================================
   TABELLA BATTERIA
   ============================================================ */

.batteria-container {
    width: 100%;
    min-width: 0;
}

.batteria-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--win98-gray);
    border-top: 2px solid var(--win98-light);
    border-left: 2px solid var(--win98-light);
    border-right: 2px solid var(--win98-black);
    border-bottom: 2px solid var(--win98-black);
    font-family: var(--win98-font);
    font-size: 14px;
}

    .batteria-table th {
        padding: 7px 10px;
        background-color: var(--win98-blue);
        color: var(--win98-light);
        text-align: left;
        font-weight: bold;
        border-right: 1px solid var(--win98-dark);
        border-bottom: 1px solid var(--win98-black);
    }

        .batteria-table th:last-child {
            border-right: none;
        }

    .batteria-table td {
        padding: 8px 10px;
        min-height: 28px;
        background-color: var(--win98-gray);
        border-right: 1px solid var(--win98-dark);
        border-bottom: 1px solid var(--win98-dark);
        vertical-align: middle;
    }

        .batteria-table td:last-child {
            border-right: none;
        }

    .batteria-table tbody tr:nth-child(even) td {
        background-color: #d4d0c8;
    }

    .batteria-table tbody tr:hover td {
        background-color: var(--win98-blue);
        color: var(--win98-light);
    }


/* ============================================================
   DESKTOP ICON
   ============================================================ */

.desktop-icon {
    width: 70px;
    margin-bottom: 20px;
    padding: 3px;
    text-align: center;
    color: var(--win98-light);
    cursor: pointer;
    user-select: none;
}

    .desktop-icon:hover {
        background-color: var(--win98-blue);
        color: var(--win98-light);
    }

    .desktop-icon img {
        display: block;
        width: 32px;
        height: 32px;
        margin: 0 auto 5px;
    }

    .desktop-icon span {
        display: block;
        font-size: 11px;
        line-height: 14px;
    }


/* ============================================================
   TASKBAR
   ============================================================ */

.taskbar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px;
    box-sizing: border-box;
    background-color: var(--win98-gray);
    border-top: 2px solid var(--win98-light);
    z-index: 2000;
}


/* ============================================================
   START BUTTON
   ============================================================ */

.start-button {
    height: 24px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 6px;
    padding-right: 6px;
    font-weight: bold;
}


/* ============================================================
   TASKBAR CLOCK
   ============================================================ */

.taskbar-clock {
    min-width: 70px;
    margin-left: auto;
    padding: 3px 8px;
    box-sizing: border-box;
    text-align: center;
    background-color: var(--win98-gray);
    border-top: 2px solid var(--win98-dark);
    border-left: 2px solid var(--win98-dark);
    border-right: 2px solid var(--win98-light);
    border-bottom: 2px solid var(--win98-light);
}


/* ============================================================
   MODALE
   ============================================================ */

.modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000;
    width: min(500px, 90vw);
    min-width: 300px;
    max-width: 90vw;
}


/* ============================================================
   MODALE BOOTSTRAP
   ============================================================ */

.modal-content {
    border-radius: 0;
    background-color: var(--win98-gray);
    border-top: 2px solid var(--win98-light);
    border-left: 2px solid var(--win98-light);
    border-right: 2px solid var(--win98-black);
    border-bottom: 2px solid var(--win98-black);
    box-shadow: none;
}

.modal-header {
    padding: 4px 6px;
    background-color: var(--win98-blue);
    color: var(--win98-light);
    border-radius: 0;
    border-bottom: 0;
}

.modal-title {
    font-family: var(--win98-font);
    font-size: 13px;
    font-weight: bold;
}

.modal-body {
    padding: 12px;
    background-color: var(--win98-gray);
    color: var(--win98-black);
}

.modal-footer {
    padding: 8px;
    background-color: var(--win98-gray);
    border-top: 0;
}


/* ============================================================
   CHIUSURA MODALE
   ============================================================ */

.btn-close {
    position: relative;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    background-color: var(--win98-gray);
    border-top: 2px solid var(--win98-light);
    border-left: 2px solid var(--win98-light);
    border-right: 2px solid var(--win98-black);
    border-bottom: 2px solid var(--win98-black);
    border-radius: 0;
    opacity: 1;
    background-image: none;
}

    .btn-close::before {
        content: "×";
        position: absolute;
        top: -3px;
        left: 2px;
        font-family: Arial, sans-serif;
        font-size: 15px;
        font-weight: bold;
        color: var(--win98-black);
    }

    .btn-close:hover {
        opacity: 1;
        background-color: var(--win98-gray);
    }


/* ============================================================
   STATUS BAR
   ============================================================ */

.status-bar {
    display: flex;
    gap: 3px;
    margin-top: 8px;
    padding: 3px;
    background-color: var(--win98-gray);
}

.status-bar-field {
    flex: 1;
    margin: 0;
    padding: 2px 5px;
    background-color: var(--win98-gray);
    border-top: 1px solid var(--win98-dark);
    border-left: 1px solid var(--win98-dark);
    border-right: 1px solid var(--win98-light);
    border-bottom: 1px solid var(--win98-light);
    color: var(--win98-black);
}


/* ============================================================
   ALERT / MESSAGGI
   ============================================================ */

.alert {
    margin-bottom: 15px;
    padding: 10px;
    background-color: var(--win98-gray);
    border-top: 2px solid var(--win98-light);
    border-left: 2px solid var(--win98-light);
    border-right: 2px solid var(--win98-black);
    border-bottom: 2px solid var(--win98-black);
}


/* ============================================================
   CARD
   ============================================================ */

.card {
    margin-bottom: 15px;
    padding: 10px;
    background-color: var(--win98-gray);
    border-top: 2px solid var(--win98-light);
    border-left: 2px solid var(--win98-light);
    border-right: 2px solid var(--win98-black);
    border-bottom: 2px solid var(--win98-black);
    border-radius: 0;
}


/* ============================================================
   PULSANTI WINDOWS 98
   ============================================================ */

.btn {
    display: inline-block;
    padding: 4px 12px;
    color: var(--win98-black);
    background-color: var(--win98-gray);
    border-top: 2px solid var(--win98-light);
    border-left: 2px solid var(--win98-light);
    border-right: 2px solid var(--win98-black);
    border-bottom: 2px solid var(--win98-black);
    border-radius: 0;
    box-shadow: none;
    font-family: var(--win98-font);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

    .btn:hover {
        color: var(--win98-black);
        background-color: var(--win98-gray);
        text-decoration: none;
    }

    .btn:active {
        border-top: 2px solid var(--win98-black);
        border-left: 2px solid var(--win98-black);
        border-right: 2px solid var(--win98-light);
        border-bottom: 2px solid var(--win98-light);
        padding-top: 5px;
        padding-left: 13px;
        padding-bottom: 3px;
        padding-right: 11px;
    }

    .btn:focus {
        outline: 1px dotted var(--win98-black);
        outline-offset: -4px;
    }


/* ============================================================
   ACTION BUTTON
   ============================================================ */

.action-btn {
    min-width: 0;
    min-height: 24px;
    height: 24px;
    margin: 0;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
}


/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background-color: var(--win98-gray);
}

::-webkit-scrollbar-thumb {
    background-color: var(--win98-gray);
    border-top: 2px solid var(--win98-light);
    border-left: 2px solid var(--win98-light);
    border-right: 2px solid var(--win98-black);
    border-bottom: 2px solid var(--win98-black);
}


/* ============================================================
   SELEZIONE TESTO
   ============================================================ */

::selection {
    background-color: var(--win98-blue);
    color: var(--win98-light);
}


/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */

@media (max-width: 900px) {

    .main-content {
        padding: 15px;
    }

    .dashboard-table,
    .mesi-table,
    .batteria-table {
        font-size: 13px;
    }

        .dashboard-table th,
        .dashboard-table td,
        .mesi-table th,
        .mesi-table td,
        .batteria-table th,
        .batteria-table td {
            padding: 6px 7px;
        }
}


/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */

@media (max-width: 768px) {

    /* SIDEBAR */

    .sidebar {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        max-height: none;
        overflow-x: auto;
        overflow-y: visible;
        border: none !important;
    }


        .sidebar .window {
            width: 100% !important;
            height: auto !important;
        }


        .sidebar .window-body {
            width: 100% !important;
            min-height: auto;
            padding: 6px !important;
        }


        .sidebar .nav {
            flex-direction: row;
            width: max-content;
            gap: 3px;
        }


        .sidebar .nav-item {
            width: auto;
            flex: 0 0 auto;
        }


        .sidebar .nav-link {
            width: auto;
            min-width: 80px;
            padding: 7px 10px;
            white-space: nowrap;
            text-align: center;
        }


    .sidebar-bottom {
        margin-top: 0;
        margin-left: auto;
        padding-top: 0;
        border-top: none;
    }


    /* CONTENUTO */

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 10px;
        padding-bottom: 45px;
    }


    /* DESKTOP */

    .win98-desktop {
        padding: 10px;
    }


    /* SEARCH */

    .search-form-container {
        margin: 10px 0;
    }


    .search-form {
        max-width: 100%;
        flex-wrap: wrap;
    }


        .search-form input[type="text"],
        .search-form input[type="date"] {
            min-width: 0;
            flex: 1 1 150px;
        }


        .search-form button {
            flex: 0 0 auto;
        }


    /* TABELLE */

    .table-wrapper,
    .mesi-container,
    .batteria-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }


    .dashboard-table {
        width: 100%;
        font-size: 12px;
    }


        .dashboard-table th,
        .dashboard-table td {
            padding: 6px 5px;
            white-space: normal;
        }


    .mesi-table,
    .batteria-table {
        min-width: 600px;
        font-size: 13px;
    }


        .mesi-table th,
        .mesi-table td,
        .batteria-table th,
        .batteria-table td {
            padding: 6px 7px;
            white-space: nowrap;
        }


    /* NAVIGAZIONE MESI */

    .mesi-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }


    .win98-button {
        min-width: 0;
        flex: 1 1 130px;
    }


    .anno-corrente {
        order: -1;
        width: 100%;
        text-align: center;
    }


    /* STATUS BAR */

    .status-bar {
        flex-wrap: wrap;
    }


    .status-bar-field {
        flex: 1 1 100%;
    }


    /* TASKBAR */

    .taskbar {
        height: 32px;
    }


    .start-button {
        max-width: 110px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }


    .taskbar-clock {
        min-width: 60px;
        padding-left: 4px;
        padding-right: 4px;
    }


    /* MODALI */

    .modal-window {
        width: calc(100vw - 20px);
        min-width: 0;
        max-width: calc(100vw - 20px);
    }


    /* CARD */

    .card {
        padding: 8px;
    }
}


/* ============================================================
   RESPONSIVE - MOBILE PICCOLO
   ============================================================ */

@media (max-width: 480px) {

    body {
        font-size: 13px;
    }


    .main-content {
        padding: 8px;
        padding-bottom: 45px;
    }


    h1 {
        font-size: 22px;
    }


    h2 {
        font-size: 19px;
    }


    h3 {
        font-size: 17px;
    }


    /* SIDEBAR */

    .sidebar .nav-link {
        min-width: 75px;
        padding: 6px 8px;
        font-size: 12px;
    }


    /* DASHBOARD */

    .dashboard-table {
        font-size: 11px;
    }


        .dashboard-table th,
        .dashboard-table td {
            padding: 5px 4px;
        }


    /* MESI */

    .mesi-table,
    .batteria-table {
        min-width: 560px;
        font-size: 12px;
    }


    /* BOTTONI */

    .win98-button {
        font-size: 12px;
        padding: 5px 8px;
    }


    /* TASKBAR */

    .taskbar {
        height: 30px;
    }


    .start-button {
        font-size: 11px;
        padding-left: 4px;
        padding-right: 4px;
    }


    .taskbar-clock {
        min-width: 55px;
        font-size: 11px;
    }
}


/* ============================================================
   TOUCH / MOBILE
   ============================================================ */

@media (hover: none) and (pointer: coarse) {

    .sidebar .nav-link {
        min-height: 32px;
    }

    button,
    .btn,
    .win98-button {
        min-height: 32px;
    }

    input,
    select,
    textarea {
        min-height: 32px;
    }
}
