/* Console assistenza Push Idea — sopra il template del gestionale CineVision.
   Niente stili in linea nelle pagine: la Content-Security-Policy li vieta. */

body { font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

/* ── Barra laterale (dalle regole di partials/sidebar.php del gestionale) ── */
nav#sidebar { display: flex !important; flex-direction: column !important; height: 100vh; height: 100dvh; }
#sidebar ul.menu-categories {
    flex: 1 1 0 !important; height: 0 !important; min-height: 0 !important;
    overflow-y: auto !important; overscroll-behavior: contain; padding-bottom: 40px;
}
#sidebar ul.menu-categories li.menu > .dropdown-toggle > div { min-width: 0; display: flex; align-items: center; }
#sidebar ul.menu-categories li.menu > .dropdown-toggle > div > svg { flex-shrink: 0; }
.sidebar-wrapper { transition: width .28s ease, transform .28s ease, min-width .28s ease; }
.main-container.sidebar-closed .sidebar-wrapper { width: 0 !important; min-width: 0 !important; overflow: hidden !important; transform: translateX(-100%); }
#content { transition: margin-left .28s ease; }
.main-container.sidebar-closed #content { margin-left: 0 !important; }
@media (min-width: 992px) {
    body.cv-sb-closed .header-container, body.cv-sb-closed .header-container.container-xxl { left: 0; }
}
body.cv-sb-noanim .sidebar-wrapper, body.cv-sb-noanim #content, body.cv-sb-noanim .header-container { transition: none !important; }

.badge-assistenza {
    display: inline-block; background: #4361ee; color: #fff; font-weight: 700;
    font-size: .7rem; letter-spacing: .12em; padding: 3px 10px; border-radius: 4px;
}

/* ── Tabelle: come nel gestionale, il testo va a capo ── */
.table thead tr th, body.dark .table thead tr th { padding-left: 12px; padding-right: 12px; }
.table tbody tr td, body.dark .table tbody tr td { white-space: normal; overflow-wrap: break-word; padding-left: 12px; padding-right: 12px; }

/* ── Console ── */
.id-rustdesk { font-family: Consolas, "Courier New", monospace; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.id-grande { font-size: 2rem; }
.riga-aperta td { background: rgba(231, 81, 90, .08); }
.riga-da-completare td { background: rgba(226, 160, 63, .08); }
.card-richieste { border-left: 4px solid #e7515a; }
.w-35 { width: 35%; }
.segreto-etichetta { min-width: 110px; }
.segreto-valore { word-break: break-all; user-select: all; }
.copiato { background: #00ab55 !important; color: #fff !important; border-color: #00ab55 !important; }

/* ── Accesso ── */
body.pagina-accesso { background: #f1f2f3; min-height: 100vh; }
.accesso { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.accesso-card { width: 100%; max-width: 400px; }
.accesso-logo { font-size: 1.8rem; font-weight: 800; color: #0e1726; }
.accesso-logo span { color: #4361ee; }
.codice-accesso { letter-spacing: .4em; font-family: Consolas, "Courier New", monospace; }
