/* Gestionale staff — modalità smartphone */

body.ddm-mobile-staff .dashboard-container[data-v-fcdb0107] {
    flex-direction: column;
    min-height: 100dvh;
}

body.ddm-mobile-staff .sidebar[data-v-fcdb0107] {
    display: none !important;
}

body.ddm-mobile-staff .main-content[data-v-fcdb0107] {
    width: 100% !important;
    max-width: 100vw;
}

body.ddm-mobile-staff .top-bar[data-v-fcdb0107] {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    padding-top: max(12px, env(safe-area-inset-top));
}

body.ddm-mobile-staff .top-bar[data-v-fcdb0107] h1 {
    font-size: 17px;
    line-height: 1.25;
    flex: 1;
    min-width: 0;
}

body.ddm-mobile-staff .content-body[data-v-fcdb0107] {
    padding: 14px 12px calc(88px + env(safe-area-inset-bottom));
}

/* Barra navigazione inferiore */
.ddm-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}

.ddm-mobile-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    padding: 4px 2px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ddm-mobile-bottom-nav button .icon {
    font-size: 18px;
    line-height: 1;
}

.ddm-mobile-bottom-nav button.active {
    color: #2563eb;
    background: #eff6ff;
}

/* Menu utente (logout) */
.ddm-mobile-user-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 18px;
    cursor: pointer;
}

.ddm-mobile-user-panel {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.ddm-mobile-user-panel[hidden] {
    display: none !important;
}

.ddm-mobile-user-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.ddm-mobile-user-card p {
    margin: 0 0 8px;
    color: #475569;
    font-size: 14px;
}

.ddm-mobile-user-card .btn-logout-mobile {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* Moduli — layout mobile */
body.ddm-mobile-staff .module-header[data-v-562e4640],
body.ddm-mobile-staff .module-header[data-v-c5c12cf4],
body.ddm-mobile-staff .module-header[data-v-32754155] {
    flex-direction: column;
    align-items: stretch;
}

body.ddm-mobile-staff .header-actions[data-v-bbc4f4e8],
body.ddm-mobile-staff .header-actions[data-v-562e4640] {
    flex-wrap: wrap;
}

body.ddm-mobile-staff .search-box input[data-v-562e4640] {
    width: 100%;
}

body.ddm-mobile-staff .filter-bar[data-v-c5c12cf4],
body.ddm-mobile-staff .filter-bar[data-v-562e4640],
body.ddm-mobile-staff .header-filters[data-v-562e4640] {
    flex-direction: column;
    align-items: stretch;
}

body.ddm-mobile-staff .table-container[data-v-562e4640],
body.ddm-mobile-staff .tabella-bacheca[data-v-c5c12cf4],
body.ddm-mobile-staff .table-container[data-v-32754155] {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.ddm-mobile-staff .tabella-bacheca[data-v-c5c12cf4] {
    min-width: 720px;
}

body.ddm-mobile-staff table[data-v-562e4640],
body.ddm-mobile-staff table[data-v-32754155] {
    min-width: 640px;
}

body.ddm-mobile-staff .scheda-dettaglio[data-v-562e4640] {
    padding: 16px;
}

body.ddm-mobile-staff .profilo-grid[data-v-562e4640] {
    grid-template-columns: 1fr;
}

body.ddm-mobile-staff .btn-action[data-v-c5c12cf4],
body.ddm-mobile-staff .btn-action[data-v-32754155],
body.ddm-mobile-staff .btn-action[data-v-562e4640] {
    width: 100%;
}

body.ddm-mobile-staff .modal-content[data-v-c5c12cf4],
body.ddm-mobile-staff .modal-content[data-v-562e4640],
body.ddm-mobile-staff .modal-content[data-v-32754155] {
    width: 100%;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
}

body.ddm-mobile-staff .grid-2[data-v-c5c12cf4] {
    grid-template-columns: 1fr;
}
