:root{--navy:#061f4b;--navy2:#0b2f6b;--blue:#1273ff;--blue2:#0bb9ff;--bg:#f5f8fc;--panel:#fff;--text:#08204a;--muted:#6c7d9c;--line:#dce6f4;--green:#15b76a;--red:#e44848;--orange:#ff9f1c;--shadow:0 18px 48px rgba(18,55,110,.08)}
*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);font-size:14px}.app-shell{min-height:100vh;display:grid;grid-template-columns:290px 1fr}.sidebar{background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);border-right:1px solid var(--line);padding:22px 18px;display:flex;flex-direction:column;gap:18px;position:sticky;top:0;height:100vh;overflow:auto}.brand img{display:block;width:210px;max-width:100%;height:auto;margin:0 auto 8px}.nav{display:flex;flex-direction:column;gap:4px}.nav-section{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#7183a3;font-weight:800;margin:18px 8px 8px}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:12px;text-decoration:none;color:var(--text);font-weight:800;transition:.18s ease}.nav-item svg{width:19px;height:19px;fill:none;stroke:var(--blue);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.nav-item:hover,.nav-item.active{background:#eaf3ff;color:#0068ee}.nav-item.active{box-shadow:inset 3px 0 0 var(--blue)}.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:14px}.smtp-mini-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:0 10px 24px rgba(9,35,74,.04)}.mini-card-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.smtp-mini-card p{margin:8px 0 10px;color:var(--muted);font-size:12px}.mini-link,.panel-link{color:#006eff;text-decoration:none;font-weight:800}.sidebar-footer{display:flex;align-items:center;justify-content:space-between;color:#7485a5;font-size:12px}.sidebar-footer a{color:#e11d48;text-decoration:none;font-weight:900}.main{padding:28px 32px 18px;min-width:0}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.title-row{display:flex;align-items:center;gap:12px}.title-row h1{font-size:32px;line-height:1.1;margin:0;color:var(--navy)}.topbar p{margin:8px 0 0;color:var(--muted);font-weight:650}.concept-pill{background:linear-gradient(135deg,var(--blue),var(--blue2));color:#fff;border-radius:9px;padding:8px 12px;font-weight:900}.top-actions{display:flex;align-items:center;gap:12px}.select-like,.user-menu{background:#fff;border:1px solid var(--line);border-radius:14px;padding:11px 18px;min-width:160px;box-shadow:0 10px 30px rgba(9,35,74,.04)}.select-like small,.user-menu small{display:block;color:#7a8aaa;font-size:11px}.select-like strong,.user-menu strong{display:block;font-size:14px}.icon-btn{width:48px;height:48px;border-radius:14px;border:1px solid var(--line);background:#fff;color:var(--navy);display:grid;place-items:center;font-weight:900;position:relative;box-shadow:0 10px 30px rgba(9,35,74,.04)}.icon-btn svg{width:19px;height:19px;fill:none;stroke:var(--navy);stroke-width:2}.notification span{position:absolute;top:-6px;right:-6px;background:var(--blue);color:#fff;font-size:11px;border-radius:999px;padding:4px 6px}.notice-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px 20px;margin-bottom:20px;box-shadow:var(--shadow);border-left:5px solid var(--blue)}.notice-card strong{display:block;font-size:16px;margin-bottom:5px}.notice-card span{color:var(--muted);font-weight:650}.kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-bottom:22px}.kpi-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:19px 18px;box-shadow:var(--shadow);min-height:126px}.kpi-head{display:flex;align-items:center;justify-content:space-between;color:var(--text);font-weight:900}.kpi-head svg{width:18px;height:18px;fill:none;stroke:#6d82a6;stroke-width:2}.kpi-card strong{display:block;font-size:28px;margin:14px 0 6px}.kpi-card small{display:block;color:var(--muted);margin-top:8px}.kpi-card em{font-style:normal;font-weight:900}.blue{color:#006eff}.red{color:var(--red)}.dashboard-grid{display:grid;gap:18px;margin-bottom:18px}.dashboard-grid.two{grid-template-columns:1fr 1fr}.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:var(--shadow);min-width:0}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.panel-title h2{font-size:20px;margin:0;color:var(--navy)}.table-wrap{width:100%;overflow:auto;border:1px solid #e5edf8;border-radius:12px}table{width:100%;border-collapse:collapse;min-width:620px}th{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#7183a3;text-align:left;padding:13px 14px;background:#f9fbff;border-bottom:1px solid #e5edf8}td{padding:13px 14px;border-bottom:1px solid #edf2f9;color:#17305b;font-weight:650}tbody tr:last-child td{border-bottom:0}.priority,.status,.badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:900}.priority.alta{background:#ffe8e8;color:#e03a3a}.priority.media{background:#fff4d8;color:#bd7a00}.priority.bassa{background:#e4f8ed;color:#14945b}.status.ok,.badge.green{background:#dcf8e9;color:#138553}.status.warn{background:#fff1d6;color:#bc7100}.status.info{background:#e8f1ff;color:#126cf4}.score,.green-text{color:var(--green);font-weight:900}.mini-action{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#eff6ff;color:var(--blue);margin-right:6px;font-weight:900}.mini-action svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}.event-list{display:flex;flex-direction:column;border-top:1px solid #edf2f9}.event-row{display:grid;grid-template-columns:86px 190px 1fr 70px;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #edf2f9;color:#425777}.event-row time{color:#617494}.event-row strong{color:var(--text)}.event-row em{font-style:normal;text-align:right;font-weight:900}.progress{display:inline-block;width:95px;height:10px;background:#e8eef7;border-radius:999px;overflow:hidden;vertical-align:middle;margin-right:8px}.progress span{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--blue2));border-radius:inherit}.panel-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px}.primary-btn{background:var(--blue);color:#fff;text-decoration:none;border-radius:12px;padding:12px 16px;font-weight:900;box-shadow:0 12px 26px rgba(18,115,255,.18)}.system-strip{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;box-shadow:var(--shadow)}.system-strip div{border-right:1px solid #edf2f9;padding-right:14px}.system-strip div:last-child{border-right:0}.system-strip span{display:block;color:#7183a3;font-size:12px;font-weight:800}.system-strip strong{display:inline-block;margin-top:8px;color:var(--green);font-size:13px}.system-strip .uptime strong{color:var(--navy)}.footer-note{display:flex;justify-content:space-between;gap:20px;color:#7183a3;font-size:12px;margin:20px 0 0}.placeholder-page{min-height:calc(100vh - 170px);display:grid;place-items:center}.empty-state-card{width:min(760px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;padding:48px;text-align:center;box-shadow:var(--shadow)}.empty-icon{width:74px;height:74px;border-radius:20px;background:#eaf3ff;color:var(--blue);display:grid;place-items:center;margin:0 auto 20px}.empty-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2}.empty-state-card h2{font-size:30px;margin:0 0 10px}.empty-state-card p{color:var(--muted);font-size:16px;line-height:1.6}.warning-strip{display:inline-flex;margin-top:18px;background:#fff8e7;color:#9b6500;border:1px solid #ffe2a6;border-radius:14px;padding:12px 16px;font-weight:900}.login-body{min-height:100vh;background:radial-gradient(circle at top left,#dff1ff,transparent 35%),linear-gradient(135deg,#f7fbff,#eef5ff);display:grid;place-items:center}.login-wrap{width:min(460px,calc(100% - 32px))}.login-card{background:#fff;border:1px solid var(--line);border-radius:28px;padding:34px;box-shadow:0 28px 90px rgba(8,32,74,.14);text-align:center}.login-logo{width:240px;max-width:100%;display:block;margin:0 auto 18px}.login-card h1{margin:0 0 8px;font-size:30px}.login-card p{color:var(--muted);line-height:1.5}.login-form{text-align:left;display:grid;gap:14px;margin-top:22px}.login-form label{font-weight:900;color:var(--text)}.login-form input{width:100%;border:1px solid var(--line);border-radius:13px;padding:13px 14px;margin-top:7px;font:inherit}.login-form button{border:0;border-radius:14px;background:linear-gradient(135deg,var(--blue),var(--blue2));color:#fff;font-weight:900;padding:14px 16px;font:inherit;cursor:pointer}.login-error{background:#ffe8e8;color:#c02828;border-radius:12px;padding:12px;margin:14px 0;font-weight:900}.login-card small{display:block;margin-top:16px;color:#7183a3}@media (max-width:1200px){.kpi-grid{grid-template-columns:repeat(3,1fr)}.dashboard-grid.two{grid-template-columns:1fr}.app-shell{grid-template-columns:250px 1fr}.system-strip{grid-template-columns:repeat(3,1fr)}}@media (max-width:820px){.app-shell{display:block}.sidebar{position:relative;height:auto}.topbar{flex-direction:column}.kpi-grid{grid-template-columns:1fr}.main{padding:20px}.top-actions{flex-wrap:wrap}.event-row{grid-template-columns:1fr}.system-strip{grid-template-columns:1fr}.system-strip div{border-right:0;border-bottom:1px solid #edf2f9;padding-bottom:12px}.system-strip div:last-child{border-bottom:0}}

/* Intervallo visibile ma disabilitato: nessun filtro reale disponibile finché non esistono dati Mailer */
.select-like.disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

.select-like.disabled strong {
    color: #7b8798;
}

/* Refresh reale pagina */
.icon-btn.is-spinning svg {
    animation: refreshSpin .35s linear infinite;
}

@keyframes refreshSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hover coerente solo su elementi realmente cliccabili */
button:not(:disabled),
a.nav-item,
a.mini-link,
a.btn,
.icon-btn,
.user-menu,
.dropdown-trigger {
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease, opacity .16s ease;
}

button:not(:disabled):hover,
a.nav-item:hover,
a.mini-link:hover,
a.btn:hover,
.icon-btn:hover,
.user-menu:hover,
.dropdown-trigger:hover {
    transform: translateY(-1px);
}

.icon-btn:hover {
    box-shadow: 0 10px 24px rgba(7, 31, 79, .12);
}

a.nav-item:hover {
    background: rgba(31, 111, 235, .08);
    color: #071f4f;
}

a.mini-link:hover,
a.btn:hover {
    text-decoration: none;
    opacity: .82;
}

button:disabled,
.disabled,
[aria-disabled="true"] {
    transform: none !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

/* Bordo azzurro logo su hover elementi cliccabili */
button:not(:disabled):hover,
a.nav-item:hover,
a.mini-link:hover,
a.btn:hover,
.icon-btn:hover,
.user-menu:hover,
.dropdown-trigger:hover {
    border-color: #35b8ff !important;
}

button:disabled:hover,
.disabled:hover,
[aria-disabled="true"]:hover {
    border-color: inherit !important;
}

/* Pagina notifiche reali Mailer */
.real-section {
    background: #ffffff;
    border: 1px solid rgba(7, 31, 79, .08);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(7, 31, 79, .06);
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0 0 6px;
    color: #071f4f;
}

.section-head p {
    margin: 0;
    color: #6f7d91;
}

.empty-real {
    border: 1px dashed rgba(7, 31, 79, .18);
    border-radius: 16px;
    padding: 18px;
    color: #6f7d91;
}

.real-list {
    display: grid;
    gap: 12px;
}

.real-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(7, 31, 79, .08);
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
}

.real-row.is-unread {
    border-color: rgba(53, 184, 255, .55);
    background: rgba(53, 184, 255, .06);
}

.real-row strong {
    color: #071f4f;
}

.real-row p {
    margin: 6px 0;
    color: #42526a;
}

.real-row small {
    color: #7b8798;
}

.level-badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.level-success {
    background: rgba(22, 163, 74, .10);
    color: #166534;
}

.level-warning {
    background: rgba(245, 158, 11, .12);
    color: #92400e;
}

.level-info {
    background: rgba(53, 184, 255, .12);
    color: #075985;
}

/* Badge reale notifiche */
.icon-btn.notification {
    position: relative;
}

.icon-btn.notification span {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #35b8ff;
    color: #071f4f;
    border: 2px solid #ffffff;
    font-size: 11px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Azioni reali pagina notifiche */
.inline-action-form {
    margin: 0;
}

.btn-outline-small {
    border: 1px solid rgba(53, 184, 255, .55);
    background: #ffffff;
    color: #071f4f;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    cursor: pointer;
}

.btn-outline-small:hover {
    border-color: #35b8ff !important;
    background: rgba(53, 184, 255, .08);
}

/* Tendina notifiche reali */
.notification-wrap {
    position: relative;
    display: inline-grid;
}

.icon-btn.notification span {
    color: #ffffff !important;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    background: #ffffff;
    border: 1px solid rgba(7, 31, 79, .10);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(7, 31, 79, .18);
    padding: 14px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    pointer-events: none;
}

.notification-wrap:hover .notification-dropdown,
.notification-wrap:focus-within .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.notification-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 4px 12px;
    border-bottom: 1px solid rgba(7, 31, 79, .08);
}

.notification-dropdown-head strong {
    color: #071f4f;
}

.notification-dropdown-head small {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #35b8ff;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.notification-dropdown-empty {
    padding: 16px 4px;
    color: #637083;
}

.notification-dropdown-list {
    display: grid;
    gap: 10px;
    padding: 12px 0;
}

.notification-dropdown-item {
    border: 1px solid rgba(7, 31, 79, .08);
    border-radius: 14px;
    padding: 12px;
    background: rgba(53, 184, 255, .05);
    display: grid;
    gap: 5px;
}

.notification-dropdown-item strong {
    color: #071f4f;
    font-size: 13px;
}

.notification-dropdown-item span {
    color: #42526a;
    font-size: 12px;
    line-height: 1.4;
}

.notification-dropdown-item small {
    color: #7b8798;
    font-size: 11px;
}

.notification-dropdown-actions {
    margin: 2px 0 10px;
}

.notification-dropdown-actions button {
    width: 100%;
    border: 1px solid rgba(53, 184, 255, .55);
    background: #ffffff;
    color: #071f4f;
    border-radius: 999px;
    padding: 10px 12px;
    font-weight: 900;
    cursor: pointer;
}

.notification-dropdown-actions button:hover {
    border-color: #35b8ff !important;
    background: rgba(53, 184, 255, .08);
}

.notification-dropdown-link {
    display: block;
    text-align: center;
    color: #006eff;
    font-weight: 900;
    text-decoration: none;
    padding-top: 8px;
    border-top: 1px solid rgba(7, 31, 79, .08);
}

/* Tendina notifiche aperta al click, non solo hover */
.notification-wrap.is-open .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Il vecchio hover resta innocuo, ma l'apertura stabile è gestita da .is-open */
.notification-wrap:hover .notification-dropdown {
    pointer-events: auto;
}

/* Bottone reale "Segna tutte come lette" */
.notification-mark-read-btn {
    width: 100%;
    border: 1px solid rgba(53, 184, 255, .55);
    background: #ffffff;
    color: #071f4f;
    border-radius: 999px;
    padding: 10px 12px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.notification-mark-read-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.notification-mark-read-btn:hover {
    border-color: #35b8ff !important;
    background: rgba(53, 184, 255, .08);
}

/* KPI Mailer visibili ma non abilitati finché non esistono dati reali */
.kpi-card.kpi-disabled {
    opacity: .68;
    cursor: not-allowed;
}

.kpi-card.kpi-disabled strong {
    color: #7b8798;
}

.kpi-card.kpi-disabled em {
    color: #7b8798;
    font-style: normal;
    font-weight: 900;
}

.kpi-card.kpi-disabled:hover {
    transform: none !important;
    box-shadow: var(--shadow) !important;
    border-color: var(--line) !important;
}

/* Box Panoramica larghi, collapsible e chiusi di default */
.overview-collapsible-stack {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.overview-collapse {
    background: #ffffff;
    border: 1px solid rgba(7, 31, 79, .08);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.overview-collapse summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.overview-collapse summary::-webkit-details-marker {
    display: none;
}

.overview-collapse summary span {
    color: #071f4f;
    font-weight: 900;
    font-size: 17px;
}

.overview-collapse summary em {
    color: #7b8798;
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.overview-collapse summary::after {
    content: "+";
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(53, 184, 255, .45);
    border-radius: 999px;
    color: #071f4f;
    display: inline-grid;
    place-items: center;
    font-weight: 900;
}

.overview-collapse[open] summary::after {
    content: "−";
}

.overview-collapse summary:hover {
    border-color: #35b8ff;
    background: rgba(53, 184, 255, .06);
}

.overview-collapse-body {
    border-top: 1px solid rgba(7, 31, 79, .08);
    padding: 18px 20px;
    color: #637083;
    line-height: 1.55;
}

/* Box laterale dati reali server Siria */
.server-mini-lines {
    display: grid;
    gap: 6px;
    margin: 10px 0 12px;
    color: #637083;
    font-size: 12px;
    line-height: 1.35;
}

.server-mini-lines span {
    display: block;
}

.server-mini-lines b {
    color: #071f4f;
}

/* Badge stato reale server */
.badge.warn {
    background: #fff1d6;
    color: #bc7100;
}

.badge.neutral {
    background: #edf2f7;
    color: #637083;
}

/* Menu account admin in topbar */
.admin-menu-wrap {
    position: relative;
    display: inline-block;
}

.user-menu {
    cursor: pointer;
    text-align: left;
}

.admin-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 230px;
    background: #ffffff;
    border: 1px solid rgba(7, 31, 79, .10);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(7, 31, 79, .18);
    padding: 8px;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    pointer-events: none;
}

.admin-menu-wrap.is-open .admin-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.admin-dropdown a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: #071f4f;
    text-decoration: none;
    font-weight: 850;
    border: 1px solid transparent;
}

.admin-dropdown a:hover {
    background: rgba(53, 184, 255, .08);
    border-color: #35b8ff;
}

.admin-dropdown .danger-link {
    color: #be123c;
}

.admin-dropdown .danger-link:hover {
    background: rgba(225, 29, 72, .08);
    border-color: rgba(225, 29, 72, .35);
}

/* Account page */
.account-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-info-grid div {
    border: 1px solid rgba(7, 31, 79, .08);
    border-radius: 16px;
    padding: 16px;
    background: #ffffff;
}

.account-info-grid span {
    display: block;
    color: #7b8798;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 7px;
}

.account-info-grid strong {
    color: #071f4f;
    font-size: 16px;
}

/* Menu account admin in topbar */
.admin-menu-wrap {
    position: relative;
    display: inline-block;
}

.user-menu {
    cursor: pointer;
    text-align: left;
}

.admin-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 230px;
    background: #ffffff;
    border: 1px solid rgba(7, 31, 79, .10);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(7, 31, 79, .18);
    padding: 8px;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    pointer-events: none;
}

.admin-menu-wrap.is-open .admin-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.admin-dropdown a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: #071f4f;
    text-decoration: none;
    font-weight: 850;
    border: 1px solid transparent;
}

.admin-dropdown a:hover {
    background: rgba(53, 184, 255, .08);
    border-color: #35b8ff;
}

.admin-dropdown .danger-link {
    color: #be123c;
}

.admin-dropdown .danger-link:hover {
    background: rgba(225, 29, 72, .08);
    border-color: rgba(225, 29, 72, .35);
}

/* Impostazioni reali Mailer */
.settings-stack {
    display: grid;
    gap: 16px;
}

.settings-block {
    border: 1px solid rgba(7, 31, 79, .08);
    border-radius: 18px;
    padding: 20px;
    background: #ffffff;
    display: grid;
    gap: 16px;
}

.settings-block h3 {
    margin: 0 0 7px;
    color: #071f4f;
    font-size: 19px;
}

.settings-block p {
    margin: 0;
    color: #637083;
    line-height: 1.55;
}

.settings-status-box {
    border: 1px solid rgba(53, 184, 255, .28);
    background: rgba(53, 184, 255, .06);
    border-radius: 16px;
    padding: 14px 16px;
}

.settings-status-box span,
.settings-real-grid span {
    display: block;
    color: #7b8798;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.settings-status-box strong,
.settings-real-grid strong {
    color: #071f4f;
    font-size: 15px;
}

.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.settings-actions button {
    border: 1px solid rgba(7, 31, 79, .12);
    background: #ffffff;
    color: #071f4f;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 850;
}

.settings-actions button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.settings-real-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.settings-real-grid div {
    border: 1px solid rgba(7, 31, 79, .08);
    border-radius: 16px;
    padding: 14px 16px;
}

/* Colore azzurro logo per icone menu e link testuali */
.nav-item svg {
    stroke: #35b8ff !important;
}

.mini-link,
.panel-link,
.notification-dropdown-link,
.clean-page-panel a:not(.btn):not(.primary-btn),
.real-section a:not(.btn):not(.primary-btn) {
    color: #35b8ff !important;
}

.mini-link:hover,
.panel-link:hover,
.notification-dropdown-link:hover {
    color: #109ee8 !important;
}

/* Badge Regolare: effetto server vivo */
.smtp-mini-card .badge.green {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
}

.smtp-mini-card .badge.green::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #16a34a;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, .45);
    animation: serverAlivePulse 1.8s ease-out infinite;
}

@keyframes serverAlivePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, .45);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

/* Menu attivo più pulito: niente barra laterale, testo navy */
.nav-item.active {
    box-shadow: none !important;
    background: #eaf3ff !important;
    color: #071f4f !important;
}

.nav-item.active span {
    color: #071f4f !important;
}

.nav-item.active svg {
    stroke: #35b8ff !important;
}

/* Badge stato applicazione nel footer sidebar */
.app-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #edf2f7;
    color: #42526a;
    border: 1px solid rgba(7, 31, 79, .08);
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 900;
}

/* Footer generale su due righe */
.footer-note.footer-note-two-lines {
    display: grid;
    gap: 5px;
    justify-content: start;
}

.footer-note.footer-note-two-lines span {
    display: block;
}

.footer-note.footer-note-two-lines a {
    color: #35b8ff;
    font-weight: 900;
    text-decoration: none;
}

.footer-note.footer-note-two-lines a:hover {
    color: #109ee8;
    text-decoration: none;
}

/* Badge Operativo: punto grigio vivo */
.app-status-badge {
    gap: 7px;
}

.app-status-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 0 rgba(148, 163, 184, .45);
    animation: appAlivePulse 1.9s ease-out infinite;
}

@keyframes appAlivePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(148, 163, 184, .45);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(148, 163, 184, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(148, 163, 184, 0);
    }
}

/* Footer generale su due righe */
.footer-note.footer-note-two-lines {
    display: grid !important;
    gap: 5px;
    justify-content: start;
    align-items: start;
}

.footer-note.footer-note-two-lines span {
    display: block;
}

.footer-note.footer-note-two-lines a {
    color: #35b8ff;
    font-weight: 900;
    text-decoration: none;
}

.footer-note.footer-note-two-lines a:hover {
    color: #109ee8;
    text-decoration: none;
}

/* Footer generale su due righe */
.footer-note.footer-note-two-lines {
    display: grid !important;
    gap: 5px;
    justify-content: start;
    align-items: start;
}

.footer-note.footer-note-two-lines span {
    display: block;
}

.footer-note.footer-note-two-lines a {
    color: #35b8ff;
    font-weight: 900;
    text-decoration: none;
}

.footer-note.footer-note-two-lines a:hover {
    color: #109ee8;
    text-decoration: none;
}

/* Tabella utenti impostazioni */
.settings-users-table table {
    min-width: 920px;
}

.table-disabled-action {
    border: 1px solid rgba(7, 31, 79, .12);
    background: #ffffff;
    color: #7b8798;
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: 850;
    cursor: not-allowed;
    opacity: .55;
}

/* Modifica utente base */
.table-edit-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(53, 184, 255, .55);
    background: #ffffff;
    color: #35b8ff;
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: 900;
    text-decoration: none;
}

.table-edit-action:hover {
    border-color: #35b8ff;
    background: rgba(53, 184, 255, .08);
    color: #109ee8;
}

.user-edit-form {
    display: grid;
    gap: 18px;
}

.form-card-field {
    border: 1px solid rgba(7, 31, 79, .08);
    border-radius: 16px;
    padding: 14px 16px;
    background: #ffffff;
    display: grid;
    gap: 8px;
}

.form-card-field span {
    color: #7b8798;
    font-size: 12px;
    font-weight: 800;
}

.form-card-field input {
    width: 100%;
    border: 1px solid rgba(7, 31, 79, .12);
    border-radius: 12px;
    padding: 11px 12px;
    color: #071f4f;
    font-weight: 800;
    background: #ffffff;
}

.form-card-field input:focus {
    outline: none;
    border-color: #35b8ff;
    box-shadow: 0 0 0 4px rgba(53, 184, 255, .12);
}

.form-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-secondary-link {
    border: 1px solid rgba(7, 31, 79, .12);
    background: #ffffff;
    color: #071f4f;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
    text-decoration: none;
}

.btn-secondary-link:hover {
    border-color: #35b8ff;
    background: rgba(53, 184, 255, .08);
}

/* Pulsante Salva modifiche più coerente con UI Siria */
.primary-btn {
    border: 1px solid #35b8ff !important;
    background: #35b8ff !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(53, 184, 255, .22) !important;
}

.primary-btn:hover {
    border-color: #109ee8 !important;
    background: #109ee8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(53, 184, 255, .28) !important;
}

.primary-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(53, 184, 255, .16), 0 12px 26px rgba(53, 184, 255, .22) !important;
}

/* Stato successo azioni account */
.clean-success-state {
    border: 1px solid rgba(22, 163, 74, .22);
    background: rgba(22, 163, 74, .07);
    border-radius: 18px;
    padding: 16px 18px;
    display: grid;
    gap: 5px;
    margin-bottom: 18px;
}

.clean-success-state strong {
    color: #166534;
    font-size: 15px;
}

.clean-success-state span {
    color: #637083;
}

/* Select coerente nei form card */
.form-card-field select {
    width: 100%;
    border: 1px solid rgba(7, 31, 79, .12);
    border-radius: 12px;
    padding: 11px 12px;
    color: #071f4f;
    font-weight: 800;
    background: #ffffff;
}

.form-card-field select:focus {
    outline: none;
    border-color: #35b8ff;
    box-shadow: 0 0 0 4px rgba(53, 184, 255, .12);
}

/* Voci menu visibili ma non autorizzate */
.nav-item.nav-disabled {
    opacity: .46;
    cursor: not-allowed;
    pointer-events: none;
    background: transparent !important;
    color: #7b8798 !important;
}

.nav-item.nav-disabled svg {
    stroke: #94a3b8 !important;
}

.nav-item.nav-disabled span {
    color: #7b8798 !important;
}

.nav-item.nav-disabled em {
    margin-left: auto;
    font-style: normal;
    font-size: 10px;
    font-weight: 900;
    color: #94a3b8;
    background: #edf2f7;
    border-radius: 999px;
    padding: 3px 7px;
}

/* Pagina accesso non autorizzato integrata */
.unauthorized-panel {
    max-width: 860px;
}

.unauthorized-icon {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(53, 184, 255, .10);
    border: 1px solid rgba(53, 184, 255, .32);
    color: #071f4f;
    font-weight: 950;
    font-size: 22px;
    margin-bottom: 16px;
}

/* Pagina Non autorizzato migliorata */
.unauthorized-panel {
    max-width: 820px;
    margin-top: 26px;
    background: #ffffff;
    border: 1px solid rgba(7, 31, 79, .08);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 24px 60px rgba(7, 31, 79, .08);
}

.unauthorized-panel .clean-page-head {
    margin-bottom: 18px;
}

.unauthorized-panel .clean-page-head h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.1;
    color: #071f4f;
}

.unauthorized-panel .clean-page-head p {
    margin: 0;
    max-width: 620px;
    color: #637083;
    line-height: 1.55;
}

.unauthorized-icon {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(53, 184, 255, .10);
    border: 1px solid rgba(53, 184, 255, .34);
    color: #35b8ff;
    font-weight: 950;
    font-size: 28px;
    margin-bottom: 18px;
    box-shadow: 0 12px 28px rgba(53, 184, 255, .12);
}

.unauthorized-panel .clean-empty-state {
    border: 1px solid rgba(7, 31, 79, .08);
    background: #f8fbff;
    border-radius: 18px;
    padding: 18px 20px;
    margin: 18px 0 22px;
    display: grid;
    gap: 6px;
}

.unauthorized-panel .clean-empty-state strong {
    color: #071f4f;
    font-size: 17px;
}

.unauthorized-panel .clean-empty-state span {
    color: #637083;
    line-height: 1.5;
}

.unauthorized-panel .form-actions-row {
    justify-content: flex-start;
}

.unauthorized-panel .btn-secondary-link {
    border-color: rgba(53, 184, 255, .55);
    color: #35b8ff;
    box-shadow: 0 10px 24px rgba(53, 184, 255, .10);
}

.unauthorized-panel .btn-secondary-link:hover {
    background: rgba(53, 184, 255, .08);
    border-color: #35b8ff;
    color: #109ee8;
}

.unauthorized-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #edf2f7;
    color: #42526a;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 14px;
}

/* Box Accesso non autorizzato largo come area contenuto */
.unauthorized-panel {
    max-width: none !important;
    width: 100% !important;
}

/* Log applicativi */
.app-logs-table table {
    min-width: 1080px;
}

.app-logs-table td {
    vertical-align: top;
}

.app-logs-table td:last-child {
    max-width: 420px;
    line-height: 1.45;
}

/* Siria Webmail - voci menu predisposte ma non ancora attive */
.nav-item.nav-disabled{
    opacity:.42;
    cursor:not-allowed;
    pointer-events:none;
}
.nav-item.nav-disabled:hover{
    background:transparent;
    color:var(--text);
    box-shadow:none;
}
.nav-item.nav-disabled svg{
    stroke:#8aa0bf;
}

/* Siria Webmail - sezione Sistema collapsible */
.nav-collapse{
    margin:0;
}
.nav-collapse summary{
    list-style:none;
}
.nav-collapse summary::-webkit-details-marker{
    display:none;
}
.nav-collapse-summary{
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:space-between;
}
.nav-collapse-summary::after{
    content:"+";
    font-size:15px;
    font-weight:900;
    color:#7183a3;
}
.nav-collapse[open] .nav-collapse-summary::after{
    content:"−";
}
.nav-collapse-body{
    display:flex;
    flex-direction:column;
    gap:4px;
}

/* Siria Webmail - dropdown utente alto a destra come Mailer */
.user-dropdown{
    position:relative;
}
.user-dropdown summary{
    list-style:none;
    cursor:pointer;
}
.user-dropdown summary::-webkit-details-marker{
    display:none;
}
.user-dropdown-panel{
    position:absolute;
    top:calc(100% + 16px);
    right:0;
    width:300px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:22px;
    padding:24px;
    box-shadow:0 28px 80px rgba(8,32,74,.16);
    z-index:50;
    display:flex;
    flex-direction:column;
    gap:8px;
}
.dropdown-item{
    display:block;
    padding:12px 18px;
    border-radius:14px;
    color:var(--navy);
    font-size:18px;
    font-weight:900;
    text-decoration:none;
}
.dropdown-item.disabled{
    opacity:.9;
    cursor:not-allowed;
}
.dropdown-item.danger{
    color:#be1e4a;
}
.dropdown-item.danger:hover{
    background:#fff1f4;
}

/* Siria Webmail - correzione dropdown compatto stile Mailer */
.user-dropdown-panel{
    width:240px !important;
    padding:14px !important;
    border-radius:18px !important;
    top:calc(100% + 10px) !important;
}
.dropdown-item{
    font-size:15px !important;
    line-height:1.25 !important;
    padding:10px 12px !important;
    border-radius:12px !important;
}
.webmail-status-bottom .smtp-mini-card p{
    line-height:1.6;
}
.webmail-status-bottom .sidebar-footer strong{
    font-size:12px;
}
