:root{--bg:#071321;--panel:#0d1d31;--panel2:#10243b;--line:#203b59;--text:#edf6ff;--muted:#89a7ca;--cyan:#2cc8ee;--cyan2:#1aafd6;--green:#36e59a;--danger:#ff6d7a;--shadow:0 18px 45px rgba(0,0,0,.22)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.shell{min-height:100vh;display:grid;grid-template-columns:255px 1fr}.sidebar{position:sticky;top:0;height:100vh;padding:28px 20px;background:#09182a;border-right:1px solid #17304a;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:14px;padding:2px 10px 28px}.brand-mark{display:grid;place-items:center;width:46px;height:46px;border:1px solid var(--cyan);border-radius:14px;color:var(--cyan);font-size:20px;font-weight:900;background:linear-gradient(145deg,#123254,#0b1b2d)}.brand strong{letter-spacing:4px}.brand small,.userbox small,.sidebar-foot small{display:block;color:var(--muted);font-size:11px;letter-spacing:1.3px;margin-top:4px}.main-nav{display:flex;flex-direction:column;gap:6px}.main-nav a,.nav-disabled{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:10px;color:#a9bed6;text-decoration:none;font-size:14px}.main-nav a span,.nav-disabled>span{width:18px;text-align:center}.main-nav a:hover,.main-nav a.active{background:#102a45;color:white}.main-nav a.active{box-shadow:inset 3px 0 var(--cyan)}.nav-disabled{opacity:.45}.nav-disabled em{margin-left:auto;font-size:9px;font-style:normal}.sidebar-foot{margin-top:auto;padding:18px 10px 4px;color:#b9cce0;font-size:12px;border-top:1px solid #17304a}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);margin-right:7px}main{min-width:0}.topbar{height:98px;padding:22px 38px;border-bottom:1px solid #17304a;display:flex;justify-content:space-between;align-items:center;background:rgba(7,19,33,.88);backdrop-filter:blur(12px);position:sticky;top:0;z-index:10}.topbar h1{margin:3px 0 0;font-size:25px}.eyebrow{text-transform:uppercase;letter-spacing:1.8px;color:var(--cyan);font-size:10px;font-weight:800}.userbox{display:flex;align-items:center;gap:18px;text-align:right}.ghost{border:1px solid var(--line);background:transparent;color:#cfe1f4;padding:8px 12px;border-radius:8px;cursor:pointer}.content{padding:34px 38px 60px;max-width:1500px}.welcome,.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.hero-panel{padding:26px 28px;border:1px solid var(--line);background:linear-gradient(135deg,#102944,#0a192a);border-radius:16px}.welcome h2,.page-head h2{font-size:28px;margin:6px 0}.welcome p,.page-head p,.panel p{color:var(--muted);margin:0}.pill,.badge{display:inline-flex;align-items:center;border-radius:999px;font-size:11px;font-weight:700;padding:7px 10px}.pill.online{color:var(--green);background:rgba(54,229,154,.09);border:1px solid rgba(54,229,154,.25)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.stats article,.panel{background:var(--panel);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.stats article{padding:20px}.stats span{color:var(--muted);font-size:12px}.stats strong{display:block;font-size:32px;margin:8px 0}.stats small{color:#6887a8}.grid{display:grid;grid-template-columns:1.3fr 1fr;gap:20px}.panel{padding:22px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.panel h3{margin:5px 0}.activity>div{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #18314c}.activity .dot{width:8px;height:8px;border-radius:50%;background:var(--cyan);margin-top:5px}.activity strong,.compact-list strong{font-size:13px}.activity small,.compact-list small{display:block;color:var(--muted);margin-top:4px}.compact-list>a{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid #18314c;color:inherit;text-decoration:none}.badge.active{color:var(--green);background:rgba(54,229,154,.1)}.badge.suspended{color:#ffbd6e;background:rgba(255,189,110,.1)}.text-link,.actions a{color:var(--cyan);text-decoration:none;font-size:12px}.button{display:inline-flex;align-items:center;justify-content:center;border-radius:9px;padding:10px 15px;text-decoration:none;border:0;cursor:pointer;font-weight:750}.button.primary{background:linear-gradient(135deg,var(--cyan2),var(--cyan));color:#03111c}.ghost-button{border:1px solid var(--line);color:#cfe1f4;background:transparent}.danger-button{background:rgba(255,109,122,.12);color:#ff8d98;border:1px solid rgba(255,109,122,.35);margin-top:20px}.button-row,.form-actions{display:flex;gap:10px}.table-panel{padding:0;overflow:hidden}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{text-align:left;padding:16px 18px;border-bottom:1px solid #19334f}.data-table th{font-size:10px;text-transform:uppercase;letter-spacing:1.2px;color:var(--muted);background:#0b1a2b}.data-table td{font-size:13px}.data-table td small{display:block;color:var(--muted);margin-top:4px}.actions{text-align:right!important;white-space:nowrap}.actions a{margin-left:15px}.empty{text-align:center!important;color:var(--muted);padding:42px!important}.pagination{padding:14px 18px}.pagination nav>div:first-child{display:none}.pagination svg{width:16px}.pagination a,.pagination span{color:var(--muted)}.form-panel{max-width:1000px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid label{display:flex;flex-direction:column;gap:8px}.form-grid label span{font-size:12px;color:#c5d8eb}.form-grid input,.form-grid select,.form-grid textarea{width:100%;background:#081625;border:1px solid #26445f;color:white;border-radius:9px;padding:12px 13px;font:inherit}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{outline:none;border-color:var(--cyan)}.full{grid-column:1/-1}.form-actions{justify-content:flex-end;margin-top:24px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.full-panel{grid-column:1/-1}.details{margin:15px 0 0}.details>div{display:grid;grid-template-columns:130px 1fr;padding:12px 0;border-bottom:1px solid #19334f}.details dt{color:var(--muted);font-size:12px}.details dd{margin:0;font-size:13px;word-break:break-word}.alert{padding:13px 16px;border-radius:10px;margin-bottom:18px;font-size:13px}.alert.success{background:rgba(54,229,154,.1);border:1px solid rgba(54,229,154,.3);color:#9cf5c9}.alert.danger{background:rgba(255,109,122,.1);border:1px solid rgba(255,109,122,.3);color:#ffc0c6}.muted{color:var(--muted)}@media(max-width:1000px){.shell{grid-template-columns:82px 1fr}.sidebar{padding:24px 10px}.brand div,.main-nav a:not(.active),.nav-disabled,.sidebar-foot{font-size:0}.brand{padding-left:7px}.main-nav a{justify-content:center}.main-nav a span{font-size:18px}.stats{grid-template-columns:1fr 1fr}.grid{grid-template-columns:1fr}}@media(max-width:700px){.shell{display:block}.sidebar{display:none}.topbar{padding:18px 20px}.content{padding:22px 18px}.userbox>div{display:none}.stats,.form-grid,.detail-grid{grid-template-columns:1fr}.welcome,.page-head{align-items:flex-start;flex-direction:column}.data-table{min-width:700px}.table-panel{overflow:auto}.full-panel{grid-column:auto}}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid label{display:flex;flex-direction:column;gap:8px;font-weight:700}.form-grid .full{grid-column:1/-1}.check-row{flex-direction:row!important;align-items:center}.check-row input{width:auto}.form-card input,.form-card select,.form-card textarea{width:100%;box-sizing:border-box}.form-actions,.page-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px}.badge.revoked{background:rgba(255,88,112,.16);color:#ff8194}.badge.suspended{background:rgba(255,190,75,.16);color:#ffc65c}.danger-button{background:#3b1720;color:#ff9aaa;border:1px solid #6d2835;border-radius:12px;padding:12px 18px;cursor:pointer}.detail-grid{display:grid;grid-template-columns:2fr 1fr;gap:20px}.detail-grid dl{display:grid;grid-template-columns:160px 1fr;gap:12px}.detail-grid dt{color:#7f96b8}.detail-grid dd{margin:0}@media(max-width:850px){.form-grid,.detail-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}}

/* ORION SPRINT 5 COMPATIBILITY START */

/*
 * Compatibilità definitiva tra le Blade Sprint 5
 * e la base grafica Orion UI v1.
 */

.hero-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(44, 200, 238, .13), transparent 38%),
        linear-gradient(135deg, #102944, #0a192a);
    box-shadow: var(--shadow);
}

.hero-panel h2 {
    margin: 6px 0 8px;
    font-size: 30px;
}

.hero-panel p {
    margin: 0;
    color: var(--muted);
}

.live-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border: 1px solid rgba(54, 229, 154, .28);
    border-radius: 999px;
    background: rgba(54, 229, 154, .09);
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.stats-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
    min-width: 0;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background:
        linear-gradient(145deg, rgba(16, 36, 59, .96), rgba(13, 29, 49, .96));
    box-shadow: var(--shadow);
}

.stat-card > span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.stat-card > strong {
    display: block;
    margin: 8px 0 3px;
    font-size: 32px;
    line-height: 1;
}

.stat-card > small {
    color: #6887a8;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
    gap: 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-row {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
    padding: 14px 0;
    border-bottom: 1px solid #18314c;
    color: inherit;
    text-decoration: none;
}

.activity-row:last-child {
    border-bottom: 0;
}

a.activity-row {
    border-radius: 10px;
    transition:
        background-color .15s ease,
        padding-left .15s ease,
        padding-right .15s ease;
}

a.activity-row:hover {
    padding-left: 10px;
    padding-right: 10px;
    background: rgba(44, 200, 238, .055);
}

.activity-row > div {
    min-width: 0;
}

.activity-row strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-row small {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(44, 200, 238, .24);
    border-radius: 7px;
    background: rgba(44, 200, 238, .08);
    color: var(--cyan);
}

.status-dot.off {
    background: #5b7189;
    box-shadow: none;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.table-wrap table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
    padding: 16px 18px;
    border-bottom: 1px solid #19334f;
    text-align: left;
    vertical-align: middle;
}

.table-wrap th {
    background: #0b1a2b;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.table-wrap td {
    color: #dceaf7;
    font-size: 13px;
}

.table-wrap tbody tr {
    transition: background-color .15s ease;
}

.table-wrap tbody tr:hover {
    background: rgba(44, 200, 238, .035);
}

.table-wrap a {
    color: var(--text);
    text-decoration: none;
}

.table-wrap a:hover {
    color: var(--cyan);
}

.block {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.mono {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 11px;
    word-break: break-all;
}

.badge.muted {
    color: #9db1c7;
    background: rgba(137, 167, 202, .1);
    border: 1px solid rgba(137, 167, 202, .16);
}

.panel > nav,
.panel > div + nav {
    padding: 15px 18px;
}

.content > .panel {
    overflow: hidden;
}

.back {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--cyan);
    font-size: 12px;
    text-decoration: none;
}

.primary,
.danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 750;
}

.primary {
    background: linear-gradient(135deg, var(--cyan2), var(--cyan));
    color: #03111c;
}

.danger {
    border: 1px solid rgba(255, 109, 122, .35);
    background: rgba(255, 109, 122, .12);
    color: #ff9aa4;
}

/* Correzione paginazione Laravel/Tailwind senza Tailwind */
nav[role="navigation"] {
    color: var(--muted);
}

nav[role="navigation"] > div:first-child {
    display: none;
}

nav[role="navigation"] > div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

nav[role="navigation"] a,
nav[role="navigation"] span {
    text-decoration: none;
}

nav[role="navigation"] svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid.compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .hero-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-grid,
    .stats-grid.compact {
        grid-template-columns: 1fr;
    }

    .hero-panel h2 {
        font-size: 25px;
    }
}

/* ORION SPRINT 5 COMPATIBILITY END */

/* ORION PASSWORD PAGE START */

.user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-actions form {
    margin: 0;
}

.account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.profile-security-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr);
    gap: 20px;
    align-items: start;
}

.security-form-panel {
    max-width: none;
}

.password-form-grid {
    align-items: start;
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    padding-right: 88px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    padding: 7px 10px;
    border: 0;
    border-radius: 7px;
    background: rgba(44, 200, 238, .09);
    color: var(--cyan);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    transform: translateY(-50%);
}

.password-toggle:hover {
    background: rgba(44, 200, 238, .16);
}

.field-error {
    display: block;
    margin-top: 7px;
    color: #ff9aa4;
    font-size: 12px;
}

.password-requirements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid #1c3956;
    border-radius: 12px;
    background: rgba(6, 18, 31, .42);
}

.password-requirements strong {
    grid-column: 1 / -1;
    margin-bottom: 3px;
    color: #dceaf7;
    font-size: 12px;
}

.password-requirements span {
    position: relative;
    padding-left: 17px;
    color: var(--muted);
    font-size: 11px;
}

.password-requirements span::before {
    position: absolute;
    left: 0;
    color: var(--green);
    content: "✓";
}

.security-info-panel {
    position: sticky;
    top: 122px;
}

.security-info-panel h3 {
    margin: 8px 0 12px;
    font-size: 20px;
}

.security-info-panel p {
    line-height: 1.65;
}

.security-shield {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border: 1px solid rgba(44, 200, 238, .35);
    border-radius: 14px;
    background: rgba(44, 200, 238, .08);
    color: var(--cyan);
    font-size: 24px;
}

.security-note {
    margin-top: 22px;
    padding: 14px;
    border-left: 3px solid var(--cyan);
    border-radius: 8px;
    background: rgba(44, 200, 238, .055);
    color: #b7cce1;
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 950px) {
    .profile-security-grid {
        grid-template-columns: 1fr;
    }

    .security-info-panel {
        position: static;
    }
}

@media (max-width: 700px) {
    .user-actions {
        gap: 5px;
    }

    .account-link {
        display: none;
    }

    .password-requirements {
        grid-template-columns: 1fr;
    }
}

/* ORION PASSWORD PAGE END */

/* ORION LOGIN PAGE START */

body.login-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(44, 200, 238, .13), transparent 32%),
        radial-gradient(circle at 82% 80%, rgba(54, 229, 154, .06), transparent 28%),
        #071321;
}

.login-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
    min-height: 100vh;
}

.login-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 8vw;
    overflow: hidden;
    border-right: 1px solid rgba(44, 200, 238, .12);
}

.login-hero::before {
    position: absolute;
    width: 520px;
    height: 520px;
    right: -220px;
    bottom: -230px;
    border: 1px solid rgba(44, 200, 238, .12);
    border-radius: 50%;
    content: "";
}

.login-hero::after {
    position: absolute;
    width: 300px;
    height: 300px;
    right: -110px;
    bottom: -120px;
    border: 1px solid rgba(44, 200, 238, .16);
    border-radius: 50%;
    content: "";
}

.login-hero .brand {
    position: absolute;
    top: 40px;
    left: 8vw;
    padding: 0;
}

.login-hero .brand.large .brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 17px;
    font-size: 23px;
}

.login-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 0 22px;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.06;
    letter-spacing: -2.5px;
}

.login-hero > p {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.login-hero .status {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 34px;
    padding: 10px 14px;
    border: 1px solid rgba(54, 229, 154, .25);
    border-radius: 999px;
    background: rgba(54, 229, 154, .07);
    color: #a8f5d1;
    font-size: 12px;
    font-weight: 700;
}

.login-hero .status span {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 14px rgba(54, 229, 154, .6);
}

.login-card {
    align-self: center;
    width: calc(100% - 80px);
    max-width: 520px;
    margin: 40px;
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(16, 36, 59, .97), rgba(10, 25, 42, .98));
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.login-card h2 {
    margin: 8px 0 10px;
    font-size: 31px;
}

.login-card > p {
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.55;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-card form > label:not(.check) {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #d8e8f7;
    font-size: 12px;
    font-weight: 700;
}

.login-card input[type="email"],
.login-card input[type="password"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #294763;
    border-radius: 10px;
    outline: none;
    background: #081625;
    color: white;
    font: inherit;
}

.login-card input[type="email"]:focus,
.login-card input[type="password"]:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(44, 200, 238, .09);
}

.login-card .check {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
}

.login-card .check input {
    accent-color: var(--cyan);
}

.login-card .primary {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cyan2), var(--cyan));
    color: #03111c;
    cursor: pointer;
    font-size: 14px;
    font-weight: 850;
}

.login-card .primary:hover {
    filter: brightness(1.07);
}

.login-card .secure {
    display: block;
    margin-top: 24px;
    color: #6f8dac;
    font-size: 11px;
    text-align: center;
}

.login-card > .alert {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 109, 122, .32);
    background: rgba(255, 109, 122, .1);
    color: #ffc0c6;
}

@media (max-width: 950px) {
    .login-wrap {
        grid-template-columns: 1fr;
    }

    .login-hero {
        min-height: 390px;
        padding: 130px 32px 55px;
        border-right: 0;
        border-bottom: 1px solid rgba(44, 200, 238, .12);
    }

    .login-hero .brand {
        top: 28px;
        left: 32px;
    }

    .login-hero h1 {
        font-size: 43px;
    }

    .login-card {
        width: calc(100% - 40px);
        max-width: 620px;
        margin: 35px auto;
    }
}

@media (max-width: 600px) {
    .login-hero {
        min-height: 350px;
        padding: 120px 22px 45px;
    }

    .login-hero .brand {
        left: 22px;
    }

    .login-hero h1 {
        font-size: 35px;
        letter-spacing: -1.4px;
    }

    .login-hero > p {
        font-size: 15px;
    }

    .login-card {
        width: calc(100% - 28px);
        margin: 22px auto;
        padding: 28px 22px;
    }
}

/* ORION LOGIN PAGE END */

/* ORION CUSTOMER USERS START */

.row-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.row-actions form {
    margin: 0;
}

.table-action-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #ff9aa4;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.table-action-button:hover {
    text-decoration: underline;
}

.field-help {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}

/* ORION CUSTOMER USERS END */

/* ORION VPN MODULE START */

.vpn-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr);
    gap: 20px;
    margin-bottom: 20px;
}

.vpn-list-panel {
    overflow: hidden;
}

.vpn-dashboard-grid aside h3 {
    margin: 8px 0 12px;
}

.vpn-dashboard-grid aside p {
    line-height: 1.65;
}

@media (max-width: 950px) {
    .vpn-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ORION VPN MODULE END */

/* =========================================================
   ORION MOBILE NAVIGATION FIX
   ========================================================= */

@media (max-width: 820px) {
    html,
    body {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .shell {
        display: block;
        width: 100%;
        min-height: 100vh;
    }

    .sidebar {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 0;
        padding: 14px;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid #1c3956;
    }

    .brand {
        margin-bottom: 14px;
    }

    .main-nav {
        display: flex;
        width: 100%;
        gap: 8px;
        padding-bottom: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav > a,
    .main-nav > .nav-disabled {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        min-width: max-content;
        min-height: 44px;
        margin: 0;
        padding: 10px 14px;
        white-space: nowrap;
    }

    .main-nav > .nav-disabled em {
        display: none;
    }

    .sidebar-foot {
        display: none;
    }

    .shell > main,
    main {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 16px;
    }

    .top-actions,
    .userbox {
        width: 100%;
    }

    .userbox {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .user-actions {
        display: flex;
        width: 100%;
        gap: 8px;
    }

    .user-actions > a,
    .user-actions > form,
    .user-actions button {
        flex: 1;
    }

    .content {
        width: 100%;
        min-width: 0;
        padding: 16px;
    }

    .dashboard-grid,
    .form-grid,
    .iptv-server-grid,
    .iptv-options {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .panel {
        width: 100%;
        min-width: 0;
        padding: 18px;
        overflow-wrap: anywhere;
    }

    .page-head,
    .panel-head,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .form-actions button,
    .form-actions .button {
        width: 100%;
    }

    input,
    select,
    textarea,
    button {
        max-width: 100%;
    }

    table {
        min-width: 680px;
    }

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


/* =========================================================
   ORION UI MOBILE DRAWER v1
   ========================================================= */

.mobile-header,
.mobile-drawer,
.mobile-drawer-overlay {
    display: none;
}

@media (max-width: 900px), (max-width: 1200px) and (pointer: coarse) {
    html,
    body {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    body.mobile-menu-is-open {
        overflow: hidden;
    }

    .shell {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 100vh;
    }

    .desktop-sidebar,
    .shell > .sidebar {
        display: none !important;
    }

    .shell > main,
    main {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .topbar {
        display: none !important;
    }

    .mobile-header {
        position: sticky;
        z-index: 900;
        top: 0;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-height: 68px;
        padding:
            max(10px, env(safe-area-inset-top))
            16px
            10px;
        border-bottom: 1px solid #193650;
        background: rgba(5, 19, 33, .97);
        box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
        backdrop-filter: blur(16px);
    }

    .mobile-menu-button,
    .mobile-drawer-close,
    .mobile-account-button {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid #285476;
        border-radius: 12px;
        background: rgba(12, 37, 60, .95);
        color: #edf7ff;
        text-decoration: none;
        cursor: pointer;
    }

    .mobile-menu-button {
        gap: 4px;
        align-content: center;
    }

    .mobile-menu-button span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 99px;
        background: currentColor;
    }

    .mobile-account-button {
        color: var(--cyan);
        font-weight: 800;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        min-width: 0;
        gap: 10px;
        color: #edf7ff;
        text-decoration: none;
    }

    .mobile-brand .brand-mark {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 18px;
    }

    .mobile-brand > span:last-child {
        display: flex;
        min-width: 0;
        flex-direction: column;
    }

    .mobile-brand strong {
        letter-spacing: 2px;
    }

    .mobile-brand small {
        overflow: hidden;
        color: #7795af;
        font-size: 9px;
        letter-spacing: 1.5px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-drawer {
        position: fixed;
        z-index: 1100;
        top: 0;
        bottom: 0;
        left: 0;
        display: flex;
        width: min(86vw, 360px);
        max-width: 360px;
        padding:
            max(18px, env(safe-area-inset-top))
            16px
            max(18px, env(safe-area-inset-bottom));
        overflow-y: auto;
        flex-direction: column;
        border-right: 1px solid #28506e;
        background:
            radial-gradient(
                circle at top left,
                rgba(44, 200, 238, .09),
                transparent 34%
            ),
            #071a2d;
        box-shadow: 24px 0 60px rgba(0, 0, 0, .42);
        transform: translateX(-105%);
        transition: transform .22s ease;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-drawer.is-open {
        transform: translateX(0);
    }

    .mobile-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 18px;
        border-bottom: 1px solid #1b3953;
    }

    .mobile-drawer-head .brand {
        margin: 0;
    }

    .mobile-drawer-close {
        flex: 0 0 44px;
        font-size: 30px;
        font-weight: 300;
        line-height: 1;
    }

    .mobile-nav {
        display: flex !important;
        width: 100% !important;
        margin: 18px 0 !important;
        gap: 8px !important;
        flex-direction: column !important;
        overflow: visible !important;
    }

    .mobile-nav > a,
    .mobile-nav > .nav-disabled {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 50px;
        margin: 0 !important;
        padding: 13px 14px !important;
        gap: 12px;
        align-items: center;
        justify-content: flex-start !important;
        border-radius: 11px;
        white-space: normal !important;
    }

    .mobile-nav > a span,
    .mobile-nav > .nav-disabled span {
        display: inline-grid;
        width: 25px;
        min-width: 25px;
        place-items: center;
        font-size: 18px;
    }

    .mobile-nav > a.active {
        border-left: 3px solid var(--cyan);
        background: rgba(24, 65, 99, .9);
        box-shadow: inset 0 0 22px rgba(44, 200, 238, .045);
    }

    .mobile-nav > .nav-disabled {
        opacity: .58;
    }

    .mobile-nav > .nav-disabled em {
        display: inline;
        margin-left: auto;
        font-size: 9px;
    }

    .mobile-drawer-account {
        display: grid;
        gap: 10px;
        margin-top: auto;
        padding-top: 18px;
        border-top: 1px solid #1b3953;
    }

    .mobile-drawer-account > div {
        display: flex;
        min-width: 0;
        flex-direction: column;
        padding-bottom: 6px;
    }

    .mobile-drawer-account small {
        overflow: hidden;
        color: #7895ad;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-drawer-account form,
    .mobile-drawer-account .button {
        width: 100%;
    }

    .mobile-drawer-overlay {
        position: fixed;
        z-index: 1050;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(1, 8, 15, .72);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
        backdrop-filter: blur(2px);
    }

    .mobile-menu-is-open .mobile-drawer-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .content {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        padding: 18px 16px 30px !important;
    }

    .page-head,
    .panel-head,
    .form-actions {
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .dashboard-grid,
    .form-grid,
    .iptv-server-grid,
    .iptv-options {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .panel,
    .dashboard-grid > *,
    .form-grid > * {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
    }

    .panel {
        padding: 20px !important;
        overflow-wrap: anywhere;
    }

    .form-actions button,
    .form-actions .button {
        width: 100%;
    }

    input,
    select,
    textarea,
    button {
        box-sizing: border-box;
        max-width: 100%;
    }

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

@media (max-width: 420px) {
    .mobile-header {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .content {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .panel {
        padding: 17px !important;
    }
}

/* ORION UI V2 RESPONSIVE START */
/* =========================================================
   ORION UI v2 — Responsive system
   Desktop invariato, mobile/tablet ridisegnati.
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

.content,
.content > *,
.panel,
.card,
.dashboard-card,
.stat-card {
    min-width: 0;
}

@media (max-width: 900px), (max-width: 1200px) and (pointer: coarse) {
    :root {
        --orion-mobile-gutter: 14px;
        --orion-mobile-radius: 16px;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    body {
        background:
            radial-gradient(circle at top, rgba(35, 184, 224, .08), transparent 34rem),
            #04111d;
    }

    .shell {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .desktop-sidebar,
    .shell > .sidebar,
    .topbar {
        display: none !important;
    }

    .shell > main,
    .shell main,
    main {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-header {
        position: sticky;
        top: 0;
        z-index: 900;
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 66px;
        padding: max(9px, env(safe-area-inset-top)) var(--orion-mobile-gutter) 9px;
        border-bottom: 1px solid rgba(74, 137, 181, .28);
        background: rgba(4, 17, 29, .96);
        box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
        backdrop-filter: blur(18px);
    }

    .content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 16px var(--orion-mobile-gutter) 32px !important;
    }

    .content > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .page-head,
    .panel-head,
    .section-head,
    .content-header,
    .toolbar,
    .form-actions,
    .actions,
    .action-row {
        display: flex !important;
        width: 100%;
        min-width: 0;
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .page-head h1,
    .page-head h2,
    .panel-head h2,
    .panel-head h3,
    .section-head h2,
    .section-head h3 {
        margin: 0;
        overflow-wrap: anywhere;
    }

    .dashboard-grid,
    .stats-grid,
    .cards-grid,
    .card-grid,
    .grid,
    .form-grid,
    .iptv-server-grid,
    .iptv-options {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 12px !important;
    }

    .dashboard-grid > *,
    .stats-grid > *,
    .cards-grid > *,
    .card-grid > *,
    .grid > *,
    .form-grid > *,
    .iptv-server-grid > *,
    .iptv-options > * {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .panel,
    .card,
    .dashboard-card,
    .stat-card,
    .metric-card,
    .widget,
    .box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 17px !important;
        border-radius: var(--orion-mobile-radius) !important;
        overflow: hidden;
        overflow-wrap: anywhere;
    }

    .panel + .panel,
    .card + .card {
        margin-top: 12px !important;
    }

    form,
    fieldset,
    .field,
    .form-group,
    .input-group {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    input,
    select,
    textarea {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        font-size: 16px !important;
    }

    textarea {
        min-height: 110px;
        resize: vertical;
    }

    button,
    .button,
    a.button,
    .btn {
        max-width: 100%;
        min-height: 44px;
    }

    .form-actions > *,
    .actions > *,
    .action-row > *,
    .toolbar > * {
        width: 100% !important;
        max-width: 100% !important;
    }

    .form-actions button,
    .form-actions .button,
    .actions button,
    .actions .button,
    .action-row button,
    .action-row .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .table-wrap,
    .table-responsive,
    .overflow-table {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        border-radius: var(--orion-mobile-radius);
        -webkit-overflow-scrolling: touch;
    }

    table {
        width: 100%;
        min-width: 680px;
        border-collapse: collapse;
    }

    .mobile-drawer {
        display: flex !important;
        width: min(88vw, 360px) !important;
        max-width: 360px !important;
    }

    .mobile-drawer-overlay {
        display: block !important;
    }

    .mobile-nav {
        overflow: visible !important;
    }

    .mobile-nav > a,
    .mobile-nav > .nav-disabled {
        min-height: 50px;
    }

    .alert {
        width: 100%;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    pre,
    code {
        max-width: 100%;
        overflow-x: auto;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 520px) {
    :root {
        --orion-mobile-gutter: 12px;
    }

    .mobile-header {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }

    .mobile-brand small {
        display: none;
    }

    .panel,
    .card,
    .dashboard-card,
    .stat-card,
    .metric-card,
    .widget,
    .box {
        padding: 15px !important;
        border-radius: 14px !important;
    }

    .content {
        padding-top: 13px !important;
    }
}

/* ORION UI V2 RESPONSIVE END */

/* ORION MOBILE MENU FIX 0.8.2 */
@media screen and (max-width: 1200px) {
    .desktop-sidebar,
    .shell > .sidebar,
    .topbar {
        display: none !important;
    }

    .mobile-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 2000 !important;
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 44px !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        min-height: 66px !important;
        padding: 10px 14px !important;
        border-bottom: 1px solid #234966 !important;
        background: #061827 !important;
    }

    .mobile-menu-button {
        display: grid !important;
        place-items: center !important;
        width: 44px !important;
        height: 44px !important;
        padding: 10px !important;
        border: 1px solid #2a5878 !important;
        border-radius: 11px !important;
        background: #0c2a40 !important;
        color: #ffffff !important;
    }

    .mobile-menu-button span {
        display: block !important;
        width: 21px !important;
        height: 2px !important;
        margin: 2px 0 !important;
        background: #ffffff !important;
    }

    .mobile-brand,
    .mobile-account-button {
        display: flex !important;
    }

    .mobile-drawer {
        position: fixed !important;
        z-index: 3000 !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        display: flex !important;
        width: min(88vw, 360px) !important;
        max-width: 360px !important;
        transform: translateX(-105%) !important;
        visibility: hidden !important;
        flex-direction: column !important;
        background: #071a2d !important;
        transition: transform .22s ease !important;
    }

    .mobile-drawer.is-open {
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    .mobile-drawer-overlay {
        position: fixed !important;
        z-index: 2500 !important;
        inset: 0 !important;
        display: none !important;
        border: 0 !important;
        background: rgba(0, 0, 0, .65) !important;
    }

    body.mobile-menu-is-open .mobile-drawer-overlay {
        display: block !important;
    }

    .shell > main,
    main {
        width: 100% !important;
        margin: 0 !important;
    }
}
/* END ORION MOBILE MENU FIX 0.8.2 */

/* ORION MOBILE DRAWER LABELS FIX 0.8.5 */
html.orion-mobile-device .mobile-drawer,
html.orion-mobile-device .mobile-drawer .sidebar,
html.orion-mobile-device .mobile-drawer nav,
html.orion-mobile-device .mobile-drawer .navigation {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

html.orion-mobile-device .mobile-drawer nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px !important;
}

html.orion-mobile-device .mobile-drawer a,
html.orion-mobile-device .mobile-drawer button {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 11px 14px !important;
    overflow: visible !important;
    white-space: nowrap !important;
    text-align: left !important;
}

html.orion-mobile-device .mobile-drawer a span,
html.orion-mobile-device .mobile-drawer button span,
html.orion-mobile-device .mobile-drawer .nav-label,
html.orion-mobile-device .mobile-drawer .menu-label,
html.orion-mobile-device .mobile-drawer .menu-text,
html.orion-mobile-device .mobile-drawer .sidebar-label,
html.orion-mobile-device .mobile-drawer .navigation-label {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    color: inherit !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    text-indent: 0 !important;
}

html.orion-mobile-device .mobile-drawer svg,
html.orion-mobile-device .mobile-drawer .nav-icon,
html.orion-mobile-device .mobile-drawer .menu-icon {
    display: block !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
}

/* Impedisce alla modalità sidebar compatta di nascondere il testo */
html.orion-mobile-device .mobile-drawer .sidebar-collapsed span,
html.orion-mobile-device .mobile-drawer .collapsed span,
html.orion-mobile-device .mobile-drawer [data-collapsed] span {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* END ORION MOBILE DRAWER LABELS FIX 0.8.5 */

/* ORION MOBILE DRAWER TEXT FIX 0.8.6 */
html.orion-mobile-device .mobile-drawer .main-nav a,
html.orion-mobile-device .mobile-drawer .main-nav a:not(.active),
html.orion-mobile-device .mobile-drawer .nav-disabled {
    font-size: 14px !important;
    line-height: 1.35 !important;
}

html.orion-mobile-device .mobile-drawer .main-nav a span,
html.orion-mobile-device .mobile-drawer .nav-disabled > span {
    flex: 0 0 22px !important;
    width: 22px !important;
    min-width: 22px !important;
    font-size: 18px !important;
    text-align: center !important;
}

html.orion-mobile-device .mobile-drawer .nav-disabled em {
    display: inline-block !important;
    margin-left: auto !important;
    font-size: 9px !important;
}
/* END ORION MOBILE DRAWER TEXT FIX 0.8.6 */
