@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Merriweather:wght@400;700&family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --primary: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --primary-gradient: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);

    --secondary: #475569;
    --success: #059669;
    --success-gradient: linear-gradient(135deg, #10b981 0%, #047857 100%);
    --warning: #d97706;
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #c2410c 100%);
    --danger: #dc2626;
    --info: #0891b2;
    --info-gradient: linear-gradient(135deg, #0ea5e9 0%, #0f766e 100%);

    --dark: #0f172a;
    --light: #f8fafc;
    --surface: rgba(255, 255, 255, 0.74);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --border-soft: rgba(148, 163, 184, 0.25);

    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: 1px solid rgba(255, 255, 255, 0.65);
    --glass-shadow: 0 20px 44px -24px rgba(15, 23, 42, 0.26);
    --backdrop-blur: blur(14px);

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;

    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-head: 'Plus Jakarta Sans', sans-serif;
    --radius-card: 22px;
    --radius-control: 12px;
    --radius-badge: 999px;
    --radius-nav: 14px;
    --card-hover-lift: -2px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background-color: #eef4fb;
    background-image:
        radial-gradient(1100px 600px at -10% -20%, rgba(59, 130, 246, 0.18) 0%, transparent 60%),
        radial-gradient(1000px 560px at 110% -10%, rgba(20, 184, 166, 0.16) 0%, transparent 58%),
        radial-gradient(900px 500px at 50% 115%, rgba(245, 158, 11, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, #f7fbff 0%, #eef4fb 65%, #f9fbff 100%);
    background-attachment: fixed;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(84px);
    z-index: -1;
    opacity: 0.32;
}

body::before {
    top: -160px;
    right: -120px;
    background: rgba(59, 130, 246, 0.7);
}

body::after {
    bottom: -180px;
    left: -100px;
    background: rgba(20, 184, 166, 0.65);
}

.container-fluid,
.container-fluid > .row {
    min-height: 100vh;
}

.mobile-header {
    display: none;
}

.sidebar-overlay {
    display: none;
}

.sidebar {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--surface-strong);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-right: 1px solid var(--border-soft);
    box-shadow: 12px 0 40px -34px rgba(15, 23, 42, 0.5);
    z-index: 1000;
    padding: 22px 18px;
    position: sticky;
    top: 0;
}

.sidebar .brand {
    padding: 10px 12px 24px;
}

.sidebar .brand h5,
.mobile-header .brand {
    font-family: var(--font-head);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: -0.4px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidebar a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-nav);
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.93rem;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.sidebar a i {
    font-size: 1.15rem;
    margin-right: 12px;
}

.sidebar a:hover {
    color: var(--primary-dark);
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(3px);
}

.sidebar a.active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 14px 26px -16px rgba(29, 78, 216, 0.8);
}

.sidebar .border-top {
    border-color: rgba(148, 163, 184, 0.25) !important;
}

.main-content {
    padding: 34px 34px 30px;
    animation: pageEnter 0.55s ease-out;
}

.page-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.page-header h2 {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--dark);
    font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem);
    letter-spacing: -0.7px;
    margin: 0;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--glass-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(var(--card-hover-lift));
    box-shadow: 0 30px 46px -30px rgba(15, 23, 42, 0.46);
}

.card-header {
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 20px 24px;
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
}

.card-body {
    padding: 24px;
}

.stat-card {
    border: none;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.stat-card.bg-primary { background: var(--primary-gradient); }
.stat-card.bg-success { background: var(--success-gradient); }
.stat-card.bg-warning { background: var(--warning-gradient); }
.stat-card.bg-info { background: var(--info-gradient); }

.stat-card::before,
.stat-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.stat-card::before {
    width: 136px;
    height: 136px;
    top: -44px;
    right: -36px;
}

.stat-card::after {
    width: 92px;
    height: 92px;
    left: -20px;
    bottom: -20px;
}

.stat-card h6 {
    opacity: 0.9;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 10px;
}

.stat-card h2 {
    font-weight: 800;
    font-size: clamp(1.35rem, 1.05rem + 1.1vw, 2rem);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.table-responsive {
    border-radius: calc(var(--radius-card) - 2px);
}

.table {
    margin: 0;
    vertical-align: middle;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: rgba(241, 245, 249, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 1px;
    padding: 16px 18px;
    white-space: nowrap;
}

.table tbody td {
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.36);
    border-bottom: 1px solid rgba(226, 232, 240, 0.72);
    color: var(--text-primary);
    font-weight: 500;
}

.table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.92);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: rgba(37, 99, 235, 0.04) !important;
    color: var(--text-primary);
}

.btn {
    border-radius: var(--radius-control);
    padding: 10px 18px;
    font-weight: 600;
    letter-spacing: 0.2px;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    box-shadow: 0 10px 18px -12px rgba(29, 78, 216, 0.8);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 22px -14px rgba(29, 78, 216, 0.85);
}

.btn-success {
    background: var(--success-gradient);
    box-shadow: 0 10px 18px -12px rgba(5, 150, 105, 0.8);
}

.btn-outline-primary {
    border: 1px solid rgba(37, 99, 235, 0.4);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.75);
}

.btn-outline-primary:hover {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-dark);
}

.btn-outline-warning {
    border: 1px solid rgba(217, 119, 6, 0.45);
    color: var(--warning);
    background: rgba(255, 255, 255, 0.75);
}

.btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.btn-outline-secondary {
    border: 1px solid rgba(100, 116, 139, 0.42);
    color: #475569;
    background: rgba(255, 255, 255, 0.75);
}

.btn-outline-danger {
    border: 1px solid rgba(220, 38, 38, 0.34);
    color: var(--danger);
    background: rgba(255, 255, 255, 0.82);
}

.action-toolbar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.action-toolbar .btn i {
    width: 1.05rem;
    text-align: center;
    line-height: 1;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: var(--radius-control);
    padding: 12px 14px;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background: #fff;
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.badge {
    padding: 6px 10px;
    border-radius: var(--radius-badge);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.stato-aperta {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    border: 1px solid rgba(5, 150, 105, 0.25);
}

.stato-in-lavorazione {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.24);
}

.stato-chiusa {
    background: rgba(239, 68, 68, 0.13);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.22);
}

.stato-finalizzata {
    background: rgba(14, 165, 233, 0.14);
    color: #0369a1;
    border: 1px solid rgba(8, 145, 178, 0.26);
}

.badge.bg-primary {
    background: rgba(37, 99, 235, 0.12) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(37, 99, 235, 0.22);
}

.badge.bg-info {
    background: rgba(14, 165, 233, 0.12) !important;
    color: #0369a1 !important;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.badge.bg-success {
    background: rgba(16, 185, 129, 0.13) !important;
    color: #047857 !important;
    border: 1px solid rgba(5, 150, 105, 0.22);
}

.badge.bg-warning {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #b45309 !important;
    border: 1px solid rgba(217, 119, 6, 0.26);
}

.badge.bg-danger {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #b91c1c !important;
    border: 1px solid rgba(220, 38, 38, 0.22);
}

.journal-action-auth {
    background: rgba(14, 165, 233, 0.14);
    color: #0369a1;
    border: 1px solid rgba(14, 165, 233, 0.24);
}

.journal-action-pratica {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    border: 1px solid rgba(5, 150, 105, 0.24);
}

.journal-action-user {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.24);
}

.journal-action-advisor {
    background: rgba(99, 102, 241, 0.16);
    color: #4338ca;
    border: 1px solid rgba(79, 70, 229, 0.24);
}

.journal-action-file {
    background: rgba(236, 72, 153, 0.14);
    color: #be185d;
    border: 1px solid rgba(219, 39, 119, 0.22);
}

.journal-action-settings {
    background: rgba(100, 116, 139, 0.16);
    color: #334155;
    border: 1px solid rgba(71, 85, 105, 0.24);
}

.journal-action-generic {
    background: rgba(148, 163, 184, 0.18);
    color: #334155;
    border: 1px solid rgba(100, 116, 139, 0.24);
}

.alert {
    border: 1px solid transparent;
    border-radius: var(--radius-control);
}

.alert-info {
    color: #0c4a6e;
    background: rgba(224, 242, 254, 0.72);
    border-color: rgba(125, 211, 252, 0.5);
}

.modal-content {
    border-radius: calc(var(--radius-card) - 4px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(8px);
}

.modal-header,
.modal-footer {
    border-color: rgba(226, 232, 240, 0.9);
}

.layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.layout-option {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: calc(var(--radius-control) + 2px);
    padding: 10px;
    display: grid;
    gap: 4px;
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.layout-option input {
    position: absolute;
    opacity: 0;
}

.layout-option strong {
    font-size: 0.9rem;
}

.layout-option small {
    color: var(--text-secondary);
    font-size: 0.74rem;
}

.report-mini {
    width: 100%;
    height: 68px;
    border-radius: 10px;
    border: 1px solid rgba(100, 116, 139, 0.3);
    background: #ffffff;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.layout-option:hover .report-mini {
    transform: translateY(-1px);
}

.layout-option input:checked + .report-mini {
    border-color: rgba(37, 99, 235, 0.72);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22), 0 8px 18px rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

.layout-option input:checked ~ strong {
    color: #1d4ed8;
}

.layout-option input:checked ~ small {
    color: #334155;
}

.report-mini-header,
.report-mini-row {
    height: 8px;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.35);
}

.report-mini-row {
    height: 7px;
}

.report-mini-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.report-mini-kpis span,
.report-mini-chip-row span {
    height: 10px;
    border-radius: 6px;
    display: block;
}

.report-mini-chip-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.report-mini-classic {
    background: linear-gradient(180deg, rgba(231, 241, 252, 0.92), rgba(255, 255, 255, 1));
}

.report-mini-classic .report-mini-header {
    background: rgba(37, 99, 235, 0.45);
}

.report-mini-classic .report-mini-row {
    background: rgba(59, 130, 246, 0.25);
}

.report-mini-executive {
    background: linear-gradient(180deg, rgba(220, 252, 231, 0.95), rgba(255, 255, 255, 1));
}

.report-mini-executive .report-mini-kpis span {
    background: rgba(22, 163, 74, 0.35);
}

.report-mini-executive .report-mini-row {
    background: rgba(22, 163, 74, 0.22);
}

.report-mini-modern {
    background: linear-gradient(180deg, rgba(243, 232, 255, 0.95), rgba(255, 255, 255, 1));
}

.report-mini-modern .report-mini-header {
    background: rgba(124, 58, 237, 0.42);
}

.report-mini-modern .report-mini-chip-row span {
    background: rgba(139, 92, 246, 0.3);
}

.report-mini-modern .report-mini-row {
    background: rgba(167, 139, 250, 0.26);
}

.layout-option:hover {
    transform: translateY(-1px);
}

.layout-preview {
    height: 50px;
    border-radius: calc(var(--radius-control) - 2px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.layout-option input:checked + .layout-preview {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.82), 0 0 0 2px rgba(37, 99, 235, 0.5);
}

.layout-preview-oceanic {
    background: linear-gradient(130deg, #2563eb, #0f766e);
}

.layout-preview-sandstone {
    background: linear-gradient(130deg, #b45309, #a16207);
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(255, 244, 214, 0.6), inset 0 8px 14px rgba(17, 24, 39, 0.12);
}

.layout-preview-forest {
    background: linear-gradient(130deg, #166534, #0f766e);
    border-radius: 18px;
}

.layout-preview-graphite {
    background: linear-gradient(130deg, #334155, #0f172a);
    border-radius: 2px;
}

.layout-preview-sunrise {
    background: linear-gradient(130deg, #ea580c, #be123c);
    border-radius: 20px 6px 20px 6px;
}

body.layout-oceanic {
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-head: 'Plus Jakarta Sans', sans-serif;
    --radius-card: 22px;
    --radius-control: 12px;
    --radius-nav: 14px;
}

body.layout-sandstone {
    --font-main: 'IBM Plex Sans', sans-serif;
    --font-head: 'Merriweather', serif;
    --radius-card: 10px;
    --radius-control: 8px;
    --radius-nav: 8px;
    --card-hover-lift: -1px;
    --primary: #b45309;
    --primary-light: #d97706;
    --primary-dark: #92400e;
    --primary-gradient: linear-gradient(135deg, #b45309 0%, #a16207 100%);
    --success-gradient: linear-gradient(135deg, #65a30d 0%, #4d7c0f 100%);
    --info-gradient: linear-gradient(135deg, #d97706 0%, #92400e 100%);
    background-color: #f8f4ed;
    background-image:
        radial-gradient(1000px 580px at -10% -15%, rgba(217, 119, 6, 0.18) 0%, transparent 60%),
        radial-gradient(900px 520px at 105% -8%, rgba(132, 204, 22, 0.15) 0%, transparent 58%),
        linear-gradient(180deg, #fffaf2 0%, #f7f1e5 62%, #fbf6ee 100%);
}

body.layout-sandstone .main-content {
    padding: 40px 42px 36px;
}

body.layout-sandstone .card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(180, 137, 76, 0.24);
    box-shadow: 0 12px 30px -24px rgba(120, 53, 15, 0.55);
}

body.layout-sandstone .sidebar {
    background: rgba(255, 247, 235, 0.95);
}

body.layout-sandstone .btn {
    letter-spacing: 0.35px;
}

body.layout-sandstone .table thead th {
    font-size: 0.66rem;
    background: rgba(248, 232, 211, 0.74);
    border-bottom: 1px solid rgba(146, 64, 14, 0.18);
}

body.layout-sandstone .table tbody tr:nth-child(even) td {
    background: rgba(255, 247, 235, 0.86);
}

body.layout-forest {
    --font-main: 'Manrope', sans-serif;
    --font-head: 'Manrope', sans-serif;
    --radius-card: 28px;
    --radius-control: 14px;
    --radius-nav: 999px;
    --primary: #166534;
    --primary-light: #15803d;
    --primary-dark: #14532d;
    --primary-gradient: linear-gradient(135deg, #166534 0%, #0f766e 100%);
    --success-gradient: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    --info-gradient: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    background-color: #edf7f2;
    background-image:
        radial-gradient(1000px 560px at -10% -20%, rgba(21, 128, 61, 0.18) 0%, transparent 60%),
        radial-gradient(960px 530px at 110% -8%, rgba(20, 184, 166, 0.16) 0%, transparent 58%),
        linear-gradient(180deg, #f6fcf8 0%, #ecf8f1 62%, #f7fcf9 100%);
}

body.layout-forest .main-content {
    padding: 36px 38px 32px;
}

body.layout-forest .sidebar a {
    padding-left: 18px;
    padding-right: 18px;
}

body.layout-forest .card {
    border-width: 1px;
    box-shadow: 0 20px 36px -26px rgba(6, 78, 59, 0.45);
}

body.layout-forest .btn {
    border-radius: 999px;
}

body.layout-forest .form-control,
body.layout-forest .form-select {
    border-radius: 16px;
}

body.layout-forest .table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

body.layout-forest .table thead th {
    background: transparent;
    border-bottom: none;
    color: #166534;
}

body.layout-forest .table tbody td {
    background: rgba(255, 255, 255, 0.84);
    border-top: 1px solid rgba(21, 128, 61, 0.14);
    border-bottom: 1px solid rgba(21, 128, 61, 0.14);
}

body.layout-forest .table tbody td:first-child {
    border-left: 1px solid rgba(21, 128, 61, 0.14);
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

body.layout-forest .table tbody td:last-child {
    border-right: 1px solid rgba(21, 128, 61, 0.14);
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

body.layout-graphite {
    --font-main: 'Space Grotesk', sans-serif;
    --font-head: 'Space Grotesk', sans-serif;
    --radius-card: 8px;
    --radius-control: 8px;
    --radius-nav: 8px;
    --card-hover-lift: 0;
    --primary: #334155;
    --primary-light: #475569;
    --primary-dark: #1e293b;
    --primary-gradient: linear-gradient(135deg, #334155 0%, #0f172a 100%);
    --success-gradient: linear-gradient(135deg, #0f766e 0%, #155e75 100%);
    --info-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    background-color: #edf1f5;
    background-image:
        radial-gradient(1000px 560px at -10% -20%, rgba(71, 85, 105, 0.18) 0%, transparent 60%),
        radial-gradient(920px 520px at 110% -10%, rgba(2, 132, 199, 0.12) 0%, transparent 58%),
        linear-gradient(180deg, #f7fafc 0%, #edf2f7 65%, #f8fafc 100%);
}

body.layout-graphite .main-content {
    padding: 30px 30px 26px;
}

body.layout-graphite .sidebar {
    background: rgba(15, 23, 42, 0.92);
    border-right: 1px solid rgba(71, 85, 105, 0.5);
}

body.layout-graphite .sidebar .brand h5 {
    -webkit-text-fill-color: #e2e8f0;
    background: none;
}

body.layout-graphite .sidebar a {
    color: #cbd5e1;
    border: 1px solid rgba(71, 85, 105, 0.5);
    transform: none;
    justify-content: center;
    padding-inline: 10px;
    position: relative;
}

body.layout-graphite .sidebar .nav-label {
    display: none;
}

body.layout-graphite .sidebar a i {
    margin-right: 0;
}

body.layout-graphite .sidebar a::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.73rem;
    font-weight: 600;
    white-space: nowrap;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(100, 116, 139, 0.5);
    border-radius: 6px;
    padding: 4px 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

body.layout-graphite .sidebar a:hover::after {
    opacity: 1;
}

body.layout-graphite .sidebar a:hover {
    color: #fff;
    background: rgba(51, 65, 85, 0.7);
}

body.layout-graphite .sidebar a.active {
    background: #1e293b;
    border-color: #334155;
    box-shadow: none;
}

body.layout-graphite .card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(100, 116, 139, 0.3);
    box-shadow: none;
}

body.layout-graphite .btn {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.7px;
}

body.layout-graphite .table thead th {
    background: rgba(226, 232, 240, 0.65);
    border-bottom: 1px solid rgba(100, 116, 139, 0.24);
}

body.layout-graphite .table tbody td {
    border-bottom: 1px dashed rgba(100, 116, 139, 0.45);
}

body.layout-sunrise {
    --font-main: 'Poppins', sans-serif;
    --font-head: 'Poppins', sans-serif;
    --radius-card: 26px;
    --radius-control: 16px;
    --radius-nav: 18px;
    --primary: #ea580c;
    --primary-light: #f97316;
    --primary-dark: #c2410c;
    --primary-gradient: linear-gradient(135deg, #ea580c 0%, #be123c 100%);
    --success-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    --info-gradient: linear-gradient(135deg, #ec4899 0%, #be123c 100%);
    background-color: #fef2f2;
    background-image:
        radial-gradient(1000px 560px at -10% -20%, rgba(249, 115, 22, 0.2) 0%, transparent 60%),
        radial-gradient(920px 520px at 110% -10%, rgba(236, 72, 153, 0.15) 0%, transparent 58%),
        linear-gradient(180deg, #fff8f6 0%, #fff2ef 63%, #fff8f8 100%);
}

body.layout-sunrise .main-content {
    padding: 38px 40px 34px;
}

body.layout-sunrise .card {
    border-radius: 26px 10px 26px 10px;
    border: 1px solid rgba(251, 146, 60, 0.28);
}

body.layout-sunrise .sidebar {
    background: linear-gradient(180deg, rgba(255, 245, 240, 0.96) 0%, rgba(255, 236, 228, 0.96) 100%);
}

body.layout-sunrise .btn {
    border-radius: 999px;
    padding-inline: 20px;
}

body.layout-sunrise .table thead th {
    background: rgba(255, 237, 213, 0.76);
}

body.layout-sunrise .table tbody tr:nth-child(odd) td {
    background: rgba(255, 247, 237, 0.84);
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-soft);
        z-index: 1200;
    }

    .mobile-toggle {
        border: 1px solid rgba(37, 99, 235, 0.22);
        background: rgba(255, 255, 255, 0.95);
        width: 38px;
        height: 38px;
        border-radius: 10px;
        color: var(--primary-dark);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(78vw, 320px);
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        box-shadow: 22px 0 40px -24px rgba(15, 23, 42, 0.6);
        padding-top: 16px;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        display: block;
        opacity: 0;
        pointer-events: none;
        background: rgba(15, 23, 42, 0.38);
        transition: opacity 0.2s ease;
        z-index: 1100;
    }

    .sidebar-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }

    .main-content {
        padding: 84px 14px 18px;
    }

    .card {
        border-radius: 16px;
    }

    .card-body,
    .card-header {
        padding: 16px;
    }

    .table thead th,
    .table tbody td {
        padding: 12px 12px;
        font-size: 0.85rem;
    }

    .btn {
        padding: 9px 14px;
    }

    body.layout-sandstone .main-content,
    body.layout-forest .main-content,
    body.layout-graphite .main-content,
    body.layout-sunrise .main-content {
        padding: 84px 14px 18px;
    }

    body.layout-graphite .sidebar .nav-label {
        display: inline;
    }

    body.layout-graphite .sidebar a {
        justify-content: flex-start;
        padding-inline: 12px;
    }

    body.layout-graphite .sidebar a i {
        margin-right: 12px;
    }

    body.layout-graphite .sidebar a::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
