@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

.alert-danger {
    color: #fe0017 !important;
    background-color: #3105095c !important;
    border-color: #ff0018 !important;
}


.alert-success {
    color: #00ff87 !important;
    background-color: #005d332e !important;
    border-color: #00ff8b !important;
}

.alert-info {
    color: #00d5ff !important;
    background-color: #003d4b1f !important;
    border-color: #00c8f2 !important;
}

.login-bg {
    display: grid;
    min-height: 100dvh;
    place-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(38, 82, 247, 0.2), rgba(25, 17, 53, 0.2));
}

.login-glass {
    width: min(100%, 580px);
    padding: 2.5rem 2.5rem 2rem;
    border: 1px solid var(--analytics-glass-border);
    border-radius: 18px;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 30px rgba(255, 255, 255, 0.03);
}

.login-logo {
    margin: 0 0 1.6rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 400;
}

.login-subtitle,
.login-forgot {
    color: #a4afc8;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.login-subtitle {
    margin: 0 0 1.4rem;
    text-align: center;
}

.login-forgot {
    text-decoration: none;
}

.login-forgot:hover {
    color: #cedc00;
}

.login-glass .form-control {
    border-color: var(--analytics-glass-border);
    border-radius: 12px;
    background: var(--analytics-glass-bg);
    color: var(--analytics-text-primary);
}

.login-glass .form-control:focus {
    border-color: #9ca3af;
    box-shadow: none;
}

.login-glass .form-floating>label {
    color: #a4afc8;
}

.login-submit {
    min-width: 150px;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    background: #fff;
    color: #1a1625;
    font-weight: 600;
}

.login-submit:hover {
    background: #e4e6ed;
    color: #1a1625;
}

.login-error {
    color: #ffb3b3;
    font-size: 0.85rem;
}

.login-error.validation-summary-valid {
    display: none;
}

@media (max-width: 480px) {
    .login-glass {
        padding: 2rem 1.25rem;
    }
}


html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

:root {
    color-scheme: dark;
    --analytics-primary: #78a9cf;
    --analytics-accent: rgba(27, 79, 122, 0.2);
    --analytics-focus-color: #78a9cf;
    --analytics-bg-start: #071426;
    --analytics-bg-end: #0c1a2c;
    --analytics-glass-bg: rgba(255, 255, 255, 0.07);
    --analytics-glass-bg-strong: rgba(255, 255, 255, 0.13);
    --analytics-glass-border: rgba(255, 255, 255, 0.12);
    --analytics-text-primary: #fff;
    --analytics-text-secondary: rgba(255, 255, 255, 0.65);
    --analytics-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --analytics-font: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --rz-primary: #1b4f7a;
    --rz-primary-light: #3b82f6;
    --rz-primary-lighter: rgba(27, 79, 122, 0.2);
    --rz-primary-dark: #153f63;
    --rz-primary-darker: #1e40af;
}

.glass-card {
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid var(--analytics-glass-border);
    border-radius: 20px;
    background: var(--analytics-glass-bg);
    box-shadow: var(--analytics-shadow);
}

.modern-grid {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    color: var(--analytics-text-primary);
    margin-bottom: 10px;
}

.modern-grid table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
}

.modern-grid thead {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    overflow: hidden !important;
    border-radius: 12px 12px 0 0 !important;
}

.modern-grid thead tr:first-child th:first-child {
    overflow: hidden !important;
    border-top-left-radius: 12px !important;
}

.modern-grid thead tr:first-child th:last-child {
    overflow: hidden !important;
    border-top-right-radius: 12px !important;
}


.rz-datatable-tfoot td tr:first-child th:last-child {
    overflow: hidden !important;
    border-top-right-radius: 12px !important;
}



.modern-grid tbody,
.modern-grid tr,
.modern-grid .rz-data-row,
.modern-grid .rz-data-row td {
    background: transparent !important;
}

.modern-grid td {
    padding: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: transparent !important;
    color: var(--analytics-text-primary) !important;
}

.modern-grid th {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    padding: 0 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    background-color: rgb(22, 27, 51) !important;
    color: var(--analytics-text-secondary) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

.modern-grid tbody>tr>td,
.modern-grid tbody>tr:nth-child(odd)>td,
.modern-grid tbody>tr:nth-child(even)>td {
    background: transparent !important;
    color: var(--analytics-text-primary) !important;
}

.modern-grid tbody tr:hover>td,
.modern-grid .rz-data-row:hover td {
    cursor: pointer;
    background: rgba(100, 181, 246, 0.10) !important;
    transition: background 0.2s;
}

.modern-grid .rz-state-highlight,
.modern-grid .rz-state-highlight td,
.modern-grid tbody tr[aria-selected="true"]>td {
    background: rgba(100, 181, 246, 0.40) !important;
}

.modern-grid .rz-grid-table thead th .rz-column-title,
.modern-grid .rz-datatable-data td .rz-cell-data,
.modern-grid .rz-grid-table td .rz-cell-data {
    color: var(--analytics-text-primary) !important;
    padding-inline: unset !important;
}

.modern-grid .rz-cell {
    padding: 1rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: transparent !important;
    color: var(--analytics-text-primary) !important;
    font-size: 0.95rem !important;
    text-align: left !important;
}

.modern-grid .rz-grid-pager {
    padding: 0;
    border: none !important;
    background: transparent !important;
}

.modern-grid {
    overflow: hidden !important;
}

.rz-data-grid-data::-webkit-scrollbar {
    width: 8px;
}

.rz-data-grid-data::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.2);
}

.rz-data-grid-data::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 640px) {
    .glass-card {
        padding: 0.75rem;
    }
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #101628;
    color: var(--analytics-text-primary);
    font-family: var(--analytics-font);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--analytics-text-primary);
    font-family: var(--analytics-font);
}

a,
.btn-link {
    color: #fff;
}

.btn-primary {
    border-color: #fff;
    background-color: #fff;
    color: #171721;
}

.btn-primary:hover {
    border-color: rgba(255, 255, 255, 0.82);
    background-color: rgba(255, 255, 255, 0.82);
    color: #171721;
}

.btn:focus-visible,
.btn-link:focus-visible,
.form-control:focus-visible,
.form-check-input:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

input[type="checkbox"]:not([role="switch"]):not(.form-switch input):not(.rz-chkbox input) {
    appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 4px;
    background-color: #202b34;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 0.8rem;
    cursor: pointer;
}

input[type="checkbox"]:not([role="switch"]):not(.form-switch input):not(.rz-chkbox input):checked {
    border-color: #58a67b;
    background-color: #58a67b;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
}

input[type="checkbox"]:not([role="switch"]):not(.form-switch input):not(.rz-chkbox input):focus-visible {
    outline: 2px solid #a9d2f0;
    outline-offset: -2px;
    box-shadow: none;
}

input[type="checkbox"].form-check-input:focus {
    box-shadow: none;
}

input[type="checkbox"]:not([role="switch"]):not(.form-switch input):not(.rz-chkbox input):disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-label {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.valid.modified:not([type=checkbox]) {
    outline-color: #26b050;
}

.invalid {
    outline-color: #f17d78;
}

.validation-message {
    color: #f39b95;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

input.app-field-invalid,
select.app-field-invalid,
textarea.app-field-invalid {
    border-color: #f17d78 !important;
    outline-color: #f17d78;
}

.shared-folder-browser {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    border-top: 1px solid var(--analytics-glass-border);
}

.shared-folder-content {
    flex: 1 1 auto;
    min-height: 180px;
    overflow-y: auto;
    padding: 0.75rem 0;
}

.shared-folder-item {
    display: flex;
    width: 100%;
    height: 156px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--analytics-text-primary);
    font: inherit;
    cursor: pointer;
}

.shared-folder-item:hover {
    background: rgba(120, 169, 207, 0.09);
}

.shared-folder-item.is-selected {
    border-color: #78a9cf;
    background: rgba(120, 169, 207, 0.18);
}

.shared-folder-item:focus-visible {
    outline: 2px solid #78a9cf;
    outline-offset: 2px;
}

.shared-folder-file-icon {
    flex: 0 0 64px;
    color: #b7c9da;
    font-size: 4rem;
    line-height: 1;
}

.shared-folder-item.is-folder .shared-folder-file-icon {
    color: #e5bf62;
}

.shared-folder-item .ph-file-pdf {
    color: #ef9b92;
}

.shared-folder-item .ph-image {
    color: #7fcbb5;
}

.shared-folder-file-name {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: 0.85rem;
    line-height: 1.25;
    text-align: center;
}

.analytics-layout {
    min-height: 100vh;
    background: #000;
}

.modern-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 2;
    display: flex;
    width: 80px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    border-right: 1px solid var(--analytics-glass-border);
    background: rgba(2, 9, 32, 0.2);
    padding: 1.5rem 0;
    transition: width 0.2s ease;
}

.modern-sidebar.expanded {
    width: 240px;
    align-items: flex-start;
    overflow: hidden;
}

.sidebar-heading {
    display: flex;
    width: 100%;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.sidebar-toggle-btn {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border: 1px solid var(--analytics-glass-border);
    border-radius: 9px;
    background: var(--analytics-glass-bg);
    color: var(--analytics-text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease;
}

.sidebar-toggle-btn:hover {
    background: rgba(38, 82, 247, 0.15);
    color: var(--analytics-primary);
}

.modern-sidebar.expanded .sidebar-toggle-btn {
    align-self: flex-end;
    margin-left: auto;
    margin-right: 1.25rem;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.05rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 1rem;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    scrollbar-width: thin;
}

.nav-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modern-sidebar.expanded .nav-section {
    align-items: stretch;
}

.nav-section-label {
    display: none;
}

.nav-section+.nav-section::before {
    width: 36px;
    height: 1px;
    margin: 0.6rem auto;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.15);
    content: '';
    flex-shrink: 0;
}

.modern-sidebar.expanded .nav-section-label {
    display: block;
    height: auto;
    margin: 17px 10px 7px;
    background: transparent;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modern-sidebar.expanded .nav-section+.nav-section::before {
    display: none;
}

.sidebar-item {
    position: relative;
    display: flex;
    width: 48px;
    height: 28px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 12px;
    color: var(--analytics-text-secondary);
    font-size: 20px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: var(--analytics-glass-bg);
    color: var(--analytics-primary);
}

.sidebar-item.active::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: -10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--analytics-primary);
    content: '';
}

.sidebar-item-label {
    position: absolute;
    top: 50%;
    left: 62px;
    z-index: 30;
    padding: 0.45rem 1rem;
    transform: translateY(-50%);
    border: 1px solid var(--analytics-glass-border);
    border-radius: 8px;
    background: rgb(15, 22, 42);
    color: var(--analytics-text-primary);
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.sidebar-item:hover .sidebar-item-label {
    opacity: 1;
}

.modern-sidebar.expanded .sidebar-item {
    width: 100%;
    height: 40px;
    justify-content: flex-start;
    padding-left: 1rem;
}

.modern-sidebar.expanded .sidebar-item-label {
    position: static;
    margin-left: 10px;
    padding: 0;
    transform: none;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 1;
    pointer-events: auto;
}

.modern-sidebar.expanded .sidebar-item>.ph {
    width: 22px;
    flex: 0 0 22px;
}

.analytics-dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-left: 80px;
    background: linear-gradient(135deg, rgba(38, 82, 247, 0.2), rgba(25, 17, 53, 0.2));
    transition: padding-left 0.25s ease;
}

.analytics-dashboard.sidebar-expanded {
    padding-left: 240px;
}

.analytics-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 20px 1rem;
    background: linear-gradient(to bottom, rgba(0, 1, 5, 0.95), rgba(11, 20, 49, 0));
}

.analytics-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--analytics-text-primary);
    font-size: 1.55rem;
    font-weight: 400;
}

.analytics-brand .ph {
    font-size: 1.65rem;
}

.header-auth,
.header-auth>* {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-icon-button {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--analytics-text-primary);
    font-size: 1.15rem;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.header-icon-button:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--analytics-glass-bg-strong);
    color: var(--analytics-text-primary);
}

.header-chat-button {
    position: relative;
}

.header-chat-button.has-unread {
    color: #a9d2f0;
    border-color: rgba(120, 169, 207, 0.55);
}

.header-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    padding: 1px 4px;
    border-radius: 9px;
    background: #d65b57;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.header-auth form {
    display: inline-flex;
    margin: 0;
}

.header-auth form button {
    cursor: pointer;
}

.analytics-content {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 90px);
    padding: 10px 20px 0;
}

.analytics-content::-webkit-scrollbar {
    width: 8px;
}

.analytics-content::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.2);
}

.analytics-content::-webkit-scrollbar-track {
    background: transparent;
}

* {
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
    scrollbar-width: thin;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.18);
}

*::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.32);
}

.analytics-content h1 {
    font-size: 1.75rem;
    font-weight: 500;
}

.analytics-content p {
    color: var(--analytics-text-secondary);
}

.anagrafica-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.anagrafica-toolbar:has(.anagrafica-actions) {
    justify-content: flex-start;
}

.anagrafica-actions {
    margin-left: auto;
}

.anagrafica-search {
    width: min(100%, 300px);
}

.input_box {
    position: relative;
}

.input_box :is(input, textarea, select) {
    width: 100%;
    padding: 1.25rem 1rem 0.5rem;
    border: 1px solid var(--analytics-glass-border);
    border-radius: 12px;
    background: var(--analytics-glass-bg);
    color: var(--analytics-text-primary);
    font: inherit;
    font-size: 0.9rem;
}

.input_box :is(input, select) {
    height: 53px;
}

.input_box select {
    padding-right: 1.75rem;
}

.input_box select option {
    background: var(--analytics-bg-start);
}

.input_box :is(input, textarea, select):focus {
    outline: none;
    border-color: var(--analytics-focus-color);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2);
}

.input_box .floating-label {
    position: absolute;
    top: 50%;
    left: 1rem;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--analytics-text-secondary);
    font-size: 0.95rem;
    line-height: 1;
    pointer-events: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: top 0.2s ease, transform 0.2s ease, font-size 0.2s ease;
}

.input_box textarea~.floating-label {
    top: 1.25rem;
}

.input_box :is(input:focus, input:not(:placeholder-shown), textarea:focus, textarea:not(:placeholder-shown), select)~.floating-label {
    top: 0.5rem;
    transform: none;
    color: var(--analytics-focus-color);
    font-size: 0.75rem;
    font-weight: 600;
}

.analytics-content .btn {
    padding: 0.75rem 1.5rem;
    border-color: var(--analytics-glass-border);
    border-radius: 12px;
    background: var(--analytics-glass-bg);
    color: var(--analytics-text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.analytics-content .btn-group>.btn:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.analytics-content .btn-group>.btn:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.analytics-content .btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.analytics-content .btn-primary,
.analytics-content .btn-selected {
    border-color: var(--analytics-primary);
}

.analytics-content .btn-selected {
    background: var(--analytics-glass-bg-strong);
}

.analytics-content :is(.btn-secondary, .btn-outline-secondary) {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--analytics-text-secondary);
}

.analytics-content .btn-outline-secondary:not(:hover) {
    background: transparent;
}

.analytics-content .btn-outline-danger {
    border-color: rgba(255, 120, 137, 0.65);
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.analytics-content .btn-outline-danger:hover {
    border-color: rgba(255, 144, 158, 0.9);
    background: linear-gradient(135deg, rgba(185, 39, 59, 0.95), rgba(231, 84, 103, 0.88));
    color: #fff;
}

.anagrafica-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    border: 1px solid;
    border-radius: 6px;
    line-height: 1;
}

.anagrafica-indicator-default {
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.registration-document-supplier-cell {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.15rem;
}

.registration-document-supplier-cell strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.registration-document-supplier-cell span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.anagrafica-indicator-payment-partial {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.anagrafica-indicator-payment-unpaid {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

.anagrafica-indicator-payment-unknown {
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

.anagrafica-indicator-birthday {
    border-color: rgba(124, 77, 255, 0.3);
    background: rgba(124, 77, 255, 0.15);
    color: #7c4dff;
}

.anagrafica-indicator-missing-birth {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

.anagrafica-indicator-missing-payment {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.analytics-content .table {
    --bs-table-color: var(--analytics-text-primary);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--analytics-glass-border);
    --bs-table-hover-color: var(--analytics-text-primary);
    --bs-table-hover-bg: rgba(112, 210, 188, 0.06);
}

.analytics-content .table thead th {
    color: var(--analytics-text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.analytics-content .form-control,
.analytics-content .form-select {
    border-color: var(--analytics-glass-border);
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--analytics-text-primary);
}

.analytics-content .form-control:focus,
.analytics-content .form-select:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.12);
}

.dashboard-home {
    width: 100%;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 32px;
    min-height: 380px;
    padding: 32px;
    border: 1px solid var(--analytics-glass-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.015);
}

.dashboard-welcome {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.hero-title {
    font-size: 3rem;
    font-weight: 400;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.hero-badge {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--analytics-text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.hero-badge .ph {
    flex: 0 0 auto;
    font-size: 1rem;
}

.dashboard-welcome h1 {
    margin: 0;
    color: var(--analytics-text-primary);
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1.2;
}

.dashboard-welcome .hero-subtitle {
    margin: 0 0 2rem;
    color: var(--analytics-text-primary);
    font-size: 2.8rem;
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid #fff;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
    color: #1a1625;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.hero-cta:hover {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.85);
    color: #1a1625;
}

.hero-cta-secondary {
    border-color: rgba(255, 255, 255, 0.25);
    background: transparent;
    box-shadow: none;
    color: var(--analytics-text-primary);
}

.hero-cta-secondary:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: var(--analytics-text-primary);
}

.dashboard-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-action {
    display: flex;
    min-width: 190px;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: transparent;
    color: var(--analytics-text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.dashboard-metrics {
    min-width: 0;
    align-self: center;
}

.dashboard-metrics-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dashboard-metrics-heading h2 {
    margin: 0;
    color: var(--analytics-text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.demo-caption {
    color: var(--analytics-text-secondary);
    font-size: 0.72rem;
}

.dashboard-modal-close,
.widget-order-button,
.widget-visibility-button {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--analytics-glass-border);
    background: var(--analytics-glass-bg);
    color: var(--analytics-text-primary);
    cursor: pointer;
}

.dashboard-modal-close:hover,
.widget-order-button:not(:disabled):hover,
.widget-visibility-button:hover {
    background: var(--analytics-glass-bg-strong);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.metric-card {
    position: relative;
    min-width: 0;
    min-height: 112px;
    padding: 16px;
    border: 1px solid var(--analytics-glass-border);
    border-radius: 16px;
    background: var(--analytics-glass-bg);
}

.metric-label {
    display: flex;
    min-height: 32px;
    align-items: flex-start;
    gap: 8px;
    padding-right: 32px;
    color: var(--analytics-text-secondary);
    font-size: 0.72rem;
    line-height: 1.25;
    text-transform: uppercase;
}

.metric-icon {
    flex: 0 0 auto;
    color: var(--analytics-text-primary);
    font-size: 1rem;
}

.metric-value {
    margin: 9px 0 0;
    color: var(--analytics-text-primary);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.birthday-widget {
    display: flex;
    flex-direction: column;
    width: 100%;
    color: var(--analytics-text-primary);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.birthday-widget:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.metric-value.birthday-alert,
.birthday-error {
    color: #ff7777;
}

.birthday-modal {
    width: min(100%, 850px);
}

.birthday-table-wrap {
    overflow-x: auto;
}

.birthday-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--analytics-text-primary);
    font-size: 0.9rem;
}

.birthday-table th,
.birthday-table td {
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid var(--analytics-glass-border);
    text-align: left;
}

.birthday-table th {
    color: var(--analytics-text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
}

.birthday-table .birthday-twelfth,
.modern-grid .birthday-twelfth>td {
    background: rgba(220, 53, 69, 0.12);
    color: #ff9a9a;
}

.birthday-email-preview {
    display: block;
    max-width: min(100%, 520px);
    max-height: 260px;
    margin: 0 0 1rem;
    object-fit: contain;
}

.birthday-image-actions,
.birthday-email-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.birthday-image-upload {
    margin: 0;
    cursor: pointer;
}

.birthday-image-input:focus-visible+.birthday-image-upload {
    outline: 2px solid #a9d2f0;
    outline-offset: 2px;
}

.birthday-image-input:disabled+.birthday-image-upload {
    opacity: 0.5;
    cursor: not-allowed;
}

.birthday-email-action {
    min-width: 0;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.birthday-email-action .btn-icon.is-sent {
    color: #58c88c;
    opacity: 1;
}

.birthday-email-action .btn-icon.is-uncertain {
    color: #e4ad52;
    opacity: 1;
}

.dashboard-birthday-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-birthday-item>.dashboard-detail-row {
    min-width: 0;
    flex: 1;
    border-bottom: 0;
}

.dashboard-birthday-item>.birthday-email-action.is-confirming {
    flex: 1 0 100%;
    padding: 0 0.6rem 0.7rem;
}

.metric-demo-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.btn-add-widget {
    display: flex;
    min-height: 112px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px dashed rgba(255, 255, 255, 0.18);
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-add-widget .ph {
    font-size: 1.5rem;
}

.btn-add-widget:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
}

.dashboard-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100dvh;
    padding: 20px;
    background: transparent;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.dashboard-modal-backdrop::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: transparent;
    content: '';
}

.dashboard-customize-modal {
    width: min(100%, 560px);
    max-height: min(80vh, 720px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid var(--analytics-glass-border);
    border-radius: 16px;
    background: #11121d;
    box-shadow: var(--analytics-shadow);
}

.dashboard-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-modal-header h2 {
    margin: 0;
    color: var(--analytics-text-primary);
    font-size: 1.2rem;
}

.dashboard-modal-header p {
    margin: 4px 0 0;
    color: var(--analytics-text-secondary);
    font-size: 0.85rem;
}

.dashboard-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.dashboard-widget-options {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.dashboard-customize-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.dashboard-birthday-link {
    padding: 0;
    border: 0;
    background: none;
    color: #a9d2f0;
    cursor: pointer;
    text-align: left;
}

.dashboard-birthday-link:hover {
    text-decoration: underline;
}

.dashboard-widget-row {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-widget-icon {
    width: 22px;
    color: var(--analytics-text-secondary);
    font-size: 1.05rem;
    text-align: center;
}

.dashboard-widget-label {
    min-width: 0;
    flex: 1;
    color: var(--analytics-text-primary);
    font-size: 0.88rem;
}

.widget-order-button,
.widget-visibility-button {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.widget-order-button:disabled {
    cursor: default;
    opacity: 0.3;
}

.widget-visibility-button.is-visible {
    color: var(--analytics-text-primary);
}

.widget-visibility-button:not(.is-visible) {
    color: var(--analytics-text-secondary);
}

.dashboard-action:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: var(--analytics-glass-bg);
}

.dashboard-action-primary {
    border-color: #fff;
    background: #fff;
    color: #141622;
    box-shadow: 0 10px 32px rgba(255, 255, 255, 0.12);
}

.dashboard-action-primary:hover {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.85);
    color: #141622;
}

.dashboard-action-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid var(--analytics-glass-border);
    border-radius: 8px;
    background: var(--analytics-glass-bg);
    color: var(--analytics-primary);
    font-size: 1.15rem;
}

.dashboard-action-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.dashboard-action-copy strong {
    font-size: 0.98rem;
    font-weight: 600;
}

.dashboard-action-copy>span {
    color: var(--analytics-text-secondary);
    font-size: 0.8rem;
}

.dashboard-action-arrow {
    color: var(--analytics-text-secondary);
    font-size: 0.85rem;
}

.mobile-hamburger,
.mobile-sidebar-overlay {
    display: none;
}

#blazor-error-ui {
    background: #3a2526;
    color: #fff;
}

.blazor-error-boundary {
    border-left: 4px solid #e57972;
    background: #3a2526;
    padding: 1rem;
}

@media (max-width: 640px) {
    .modern-sidebar {
        z-index: 1000;
        width: 260px;
        max-width: 84vw;
        height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        border-right-color: rgba(255, 255, 255, 0.18);
        background: rgba(2, 9, 32, 0.98);
        box-shadow: 16px 0 40px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .modern-sidebar.expanded {
        width: 260px;
        max-width: 84vw;
        transform: translateX(0);
    }

    .modern-sidebar .sidebar-toggle-btn {
        align-self: flex-end;
        margin-right: 1.25rem;
    }

    .modern-sidebar .sidebar-item {
        width: 100%;
        height: 40px;
        justify-content: flex-start;
        padding-left: 1rem;
    }

    .modern-sidebar .sidebar-item>.ph {
        width: 22px;
        flex: 0 0 22px;
    }

    .modern-sidebar .sidebar-item-label {
        position: static;
        margin-left: 10px;
        padding: 0;
        transform: none;
        border: 0;
        background: transparent;
        color: inherit;
        opacity: 1;
    }

    .modern-sidebar.expanded .nav-section-label {
        display: block;
        height: auto;
        margin: 17px 10px 7px;
        background: transparent;
        color: rgba(255, 255, 255, 0.35);
        font-size: 0.64rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .modern-sidebar.expanded .nav-section+.nav-section::before {
        display: none;
    }

    .analytics-dashboard,
    .analytics-dashboard.sidebar-expanded {
        padding-left: 0;
    }

    .mobile-sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 999;
        display: block;
        border: 0;
        background: rgba(0, 0, 0, 0.68);
    }

    .mobile-hamburger {
        display: grid;
        order: -1;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        place-items: center;
        border: 1px solid var(--analytics-glass-border);
        border-radius: 10px;
        background: var(--analytics-glass-bg);
        color: var(--analytics-text-primary);
        font-size: 1.4rem;
    }

    .analytics-header {
        min-height: 56px;
        gap: 0.5rem;
        padding: 0.6rem 12px;
        background: transparent;
    }

    .analytics-brand {
        min-width: 0;
        flex: 1;
        gap: 6px;
        overflow: hidden;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .analytics-brand .ph {
        font-size: 1.05rem;
    }

    .header-auth,
    .header-auth>* {
        gap: 6px;
    }

    .header-icon-button {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        border-radius: 9px;
        font-size: 0.95rem;
    }

    .analytics-content {
        max-height: calc(100dvh - 70px);
        padding: 8px 10px 0;
    }

    .dashboard-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        min-height: 320px;
        padding: 28px 20px;
        border-radius: 18px;
    }

    .dashboard-welcome h1 {
        font-size: 2.25rem;
    }

    .dashboard-welcome .hero-subtitle {
        margin-bottom: 1.5rem;
        font-size: 1.8rem;
    }

    .dashboard-shortcuts {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-action {
        width: 100%;
    }

    .dashboard-metrics {
        width: 100%;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-card {
        min-height: 104px;
        padding: 13px;
    }

    .metric-label {
        min-height: 46px;
        padding-right: 0;
        font-size: 0.65rem;
    }

    .metric-demo-tag {
        display: none;
    }

    .dashboard-customize-modal {
        padding: 18px 14px;
    }
}

.hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 2rem;
    border: 1px solid var(--analytics-glass-border);
    border-radius: 24px;
}

.hero-title {
    margin: 0 0 1.5rem;
    color: var(--analytics-text-primary);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--analytics-text-secondary);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-cta {
    padding: 1rem 2.5rem;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    min-height: 0;
    padding: 1.5rem;
    border-radius: 16px;
}

.metric-label {
    min-height: 0;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-right: 0;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.metric-value {
    margin: 0;
    font-size: 2rem;
}

.btn-add-widget {
    gap: 0.3rem;
    min-height: 0;
    letter-spacing: 0.03em;
}

.btn-add-widget .ph {
    font-size: 1.5rem;
}

.btn-add-widget span:last-child {
    font-size: 0.7rem;
}

.db-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.db-modal {
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
    background: #1a2035;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.db-modal--lg {
    width: min(440px, 92vw);
    max-height: 82vh;
    overflow-y: auto;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    scrollbar-width: thin;
}

.db-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.db-modal__title {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.db-modal__desc {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.widget-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
}

.widget-label {
    flex: 1;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
}

.widget-toggle-btn {
    min-width: 90px;
    font-size: 0.8rem;
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-cta-group {
        align-items: stretch;
        flex-direction: column;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .metric-card {
        padding: 1rem;
    }

    .metric-value {
        font-size: 1.4rem;
    }
}

.grid-count-button {
    min-width: 42px;
    padding: 0.25rem 0.55rem;
    border: 1px solid var(--analytics-glass-border);
    border-radius: 7px;
    background: var(--analytics-glass-bg);
    color: var(--analytics-text-primary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.grid-count-button:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.45);
    background: var(--analytics-glass-bg-strong);
}

.grid-count-button:disabled {
    cursor: default;
    opacity: 0.45;
}

.nucleo-dialog-description {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.875rem;
}

.nucleo-dialog-empty {
    margin: 0;
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.58);
}

.anagrafica-tab {
    margin: 0 0 1rem;
    color: var(--analytics-text-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    padding: 5px 8px 5px 10px;
    border-bottom: 1px solid #424d6d7d;
}

.rz-tabview.rz-tabview-top>.rz-tabview-nav .rz-tabview-selected {
    border-bottom: 2px solid var(--analytics-primary) !important;
}

.rz-tabview-panel {
    max-width: 100%;
    overflow-x: hidden;
    padding: 10px 0 !important;
}

.rz-tabview-nav li a,
.rz-tabview-nav li a:not([href]):not([class]),
.rz-tabview-nav li button {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.18s ease;
}

.rz-tabview-nav .rz-tabview-selected a,
.rz-tabview-nav .rz-tabview-selected a:not([href]):not([class]),
.rz-tabview-nav .rz-tabview-selected button {
    color: #fff !important;
    font-weight: 700 !important;
}

.rz-tabview-nav li:hover:not(.rz-tabview-selected):not(.rz-state-disabled) {
    background: transparent !important;
}

.rz-tabview-nav li:hover:not(.rz-tabview-selected):not(.rz-state-disabled) a,
.rz-tabview-nav li:hover:not(.rz-tabview-selected):not(.rz-state-disabled) button {
    color: rgba(255, 255, 255, 0.85) !important;
}

.app-layout {
    position: relative;
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(to right, #071426 0%, #0b1628 18%, #101628 55%, #0c1a2c 100%);
}

.app-layout::before,
.app-layout::after {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    content: '';
}

.app-layout::before {
    top: -200px;
    right: 60px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(27, 79, 122, 0.28) 0%, transparent 60%);
}

.app-layout::after {
    right: 380px;
    bottom: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 60%);
}

.app-sidebar {
    position: relative;
    z-index: 50;
    width: 275px;
    min-width: 240px;
    height: 100vh;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.08);
}

.app-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.app-topbar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: #071426;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.topbar-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 600;
}

.app-main {
    flex: 1;
    overflow-y: auto;
    padding: 1.1rem 1.1rem;
}

.sidebar-nav {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: #071426;
    font-size: 0.875rem;
}

.sidebar-brand {
    display: flex;
    min-height: 64px;
    flex-shrink: 0;
    align-items: center;
    gap: 0.75rem;
    padding: 5px 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #fff;
}

.brand-mark {
    color: #78a9cf;
    font-size: 1.45rem;
}

.brand-name {
    font-size: 1.05rem;
    white-space: nowrap;
}

.nav-scroll {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.25rem 0 1.5rem;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
    scrollbar-width: thin;
}

.nav-scroll::-webkit-scrollbar {
    width: 3px;
}

.section-label {
    margin: 0;
    padding: 1.125rem 1.25rem 0.375rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    user-select: none;
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.25rem;
    overflow: hidden;
    border-left: 2px solid transparent;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.nav-link-item:hover {
    border-left-color: rgba(27, 79, 122, 0.55);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.nav-link-item.active {
    border-left-color: #1b4f7a;
    background: rgba(27, 79, 122, 0.18);
    color: #78a9cf;
    font-weight: 500;
}

.nav-link-dashboard {
    margin-top: 0.5rem;
}

.nav-icon {
    display: inline-block;
    width: 16px;
    flex-shrink: 0;
    opacity: 0.75;
    font-size: 1rem;
    line-height: 1;
    text-align: center;
}

.header-icon-button {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 8px;
    background: transparent;
}

.glass-card {
    padding: 1.25rem 1.5rem;
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.input_box :is(input, textarea, select) {
    padding: 1.15rem 0.75rem 0.45rem;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.875rem;
}

.input_box :is(input, select) {
    height: 46px;
}

.vies-input {
    position: relative;
}

.vies-input .input_box input {
    padding-right: 3rem;
}

.vies-input .input_box .floating-label {
    right: 3rem;
}

.vies-input .vies-input-button {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    transform: translateY(-50%);
    border: 0;
}

.vies-input-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.input_box :is(input, textarea, select):focus {
    border-color: rgba(120, 169, 207, 0.5);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(27, 79, 122, 0.15);
}

.input_box .floating-label {
    left: 0.75rem;
    right: 0.75rem;
    font-size: 0.875rem;
}

.input_box :is(input:focus, input:not(:placeholder-shown), textarea:focus, textarea:not(:placeholder-shown), select)~.floating-label {
    color: #78a9cf;
    font-size: 0.72rem;
}

.analytics-content .btn,
.app-main .btn {
    padding: 0.5625rem 0.7rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.app-main .btn-primary,
.app-main .btn-selected {
    border-color: rgba(255, 255, 255, 0.14);
    background: #1b4f7a;
    color: #fff;
}

.app-main .btn-primary:hover,
.app-main .btn-selected:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: #153f63;
    box-shadow: 0 2px 8px rgba(27, 79, 122, 0.35);
}

.app-main .btn-secondary,
.app-main .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}

.app-main .btn-secondary:hover,
.app-main .btn-outline-secondary:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
}

.rz-tabview.rz-tabview-top>.rz-tabview-nav .rz-tabview-selected {
    border-bottom: 2px solid #78a9cf !important;
}

.rz-tabview-nav .rz-tabview-selected button,
.rz-tabview-nav .rz-tabview-selected a {
    color: #fff !important;
    font-weight: 700 !important;
}

.modern-grid th,
.rz-grid-table thead th {
    background-color: rgb(49, 53, 69) !important;
}

.modern-grid tbody tr:hover>td,
.modern-grid .rz-data-row:hover td {
    background: rgba(255, 255, 255, 0.07) !important;
}

.modern-grid .rz-state-highlight,
.modern-grid .rz-state-highlight td,
.modern-grid tbody tr[aria-selected="true"]>td {
    background: rgba(27, 79, 122, 0.25) !important;
}

.dashboard {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-widget {
    min-width: 0;
}

.dashboard-widget.is-arranging {
    display: flex;
    min-height: 0;
    flex-direction: column;
}

.dashboard-widget.is-arranging> :not(.dashboard-widget-drag-handle) {
    min-height: 0;
    height: auto;
    flex: 1;
}

.dashboard-widget-drag-handle {
    display: flex;
    width: 100%;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px 4px 0 0;
    background: rgba(255, 255, 255, 0.08);
    color: #e7f2f5;
    cursor: grab;
    touch-action: none;
}

.dashboard-widget-drag-handle:active {
    cursor: grabbing;
}

.dashboard-widget.is-dragging {
    opacity: 0.45;
}

.dashboard-widget.is-drop-target {
    outline: 2px solid #78a9cf;
    outline-offset: -2px;
}

.dashboard-birthday-compact {
    position: relative;
    height: 100%;
}

.dashboard-birthday-compact>.kpi-card {
    height: 100%;
    padding-right: 3.5rem;
}

.dashboard-birthday-resize {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.dashboard-agenda-compact {
    height: 104px;
    min-width: 0;
    flex-direction: column;
    gap: 0.4rem;
    overflow: hidden;
}

.dashboard-agenda-compact .chart-card-header {
    width: 100%;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-agenda-compact .stat-card-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dashboard-agenda-compact .dashboard-detail-empty,
.dashboard-agenda-compact .birthday-error {
    margin: 0;
    overflow: hidden;
    font-size: 0.75rem;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-agenda-compact-appointment {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.875rem;
    text-decoration: none;
}

.dashboard-agenda-compact-appointment strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-widget-detail,
.dashboard-widget-wide,
.dashboard-widget-stat {
    grid-column: span 2;
}

.rz-scheduler-nav-views {
    gap: 0.5rem;
}

@media (min-width: 992px) {
    .dashboard-widgets {
        grid-template-columns: repeat(60, minmax(0, 1fr));
        grid-auto-flow: row;
        grid-auto-rows: 14px;
        column-gap: 0;
        margin-inline: -0.5rem;
    }

    .dashboard-widget {
        padding-inline: 0.5rem;
    }

    .dashboard-widget-metric {
        grid-column: span var(--dashboard-metric-span);
        grid-row: span 4;
    }

    .dashboard-widget-stat {
        grid-column: span 20;
        grid-row: span 6;
    }

    .dashboard-widget-detail {
        grid-column: span 30;
        grid-row: span 14;
    }

    .dashboard-widget-wide {
        grid-column: span 60;
        grid-row: span 14;
    }

    .dashboard-widget.is-arranging.dashboard-widget-metric {
        grid-row: span 6;
    }

    .dashboard-widget.is-arranging.dashboard-widget-stat {
        grid-row: span 8;
    }

    .dashboard-widget.is-arranging.dashboard-widget-detail,
    .dashboard-widget.is-arranging.dashboard-widget-wide {
        grid-row: span 16;
    }

    .dashboard-widget-metric>.kpi-card,
    .dashboard-widget-stat>.stat-card,
    .dashboard-widget-detail>.dashboard-detail-widget,
    .dashboard-widget-wide>.dashboard-detail-widget {
        height: 100%;
    }
}

.dashboard.is-loading .kpi-card,
.dashboard.is-loading .stat-card,
.dashboard.is-loading .chart-card {
    opacity: 0.72;
    filter: saturate(0.7);
}

.dashboard-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dashboard-spin 0.9s linear infinite;
}

@keyframes dashboard-spin {
    to {
        transform: rotate(360deg);
    }
}

.dash-header,
.chart-card-header,
.stat-card-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.dash-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.25rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8125rem;
    text-transform: capitalize;
}

.page-title {
    margin: 0;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.dash-year-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.dash-welcome {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
}

.dash-welcome strong {
    color: #fff;
}

.dash-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dash-section-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: -0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dash-section-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: normal;
    text-decoration: none;
    text-transform: none;
}

.dash-section-link:hover {
    color: #fff;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
}

.kpi-card,
.stat-card,
.chart-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.kpi-card {
    display: flex;
    min-height: 100px;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.kpi-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.kpi-card-clickable {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.kpi-card-clickable:focus-visible {
    outline: 2px solid rgba(120, 169, 207, 0.75);
    outline-offset: 2px;
}

.kpi-icon,
.stat-item-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.kpi-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
}

.kpi-icon-red,
.stat-icon-red {
    background: rgba(120, 169, 207, 0.18);
    color: #78a9cf;
}

.kpi-icon-blue,
.stat-icon-blue {
    background: rgba(99, 179, 237, 0.18);
    color: #93c5fd;
}

.kpi-icon-purple {
    background: rgba(196, 181, 253, 0.18);
    color: #c4b5fd;
}

.kpi-icon-green,
.stat-icon-green {
    background: rgba(134, 239, 172, 0.18);
    color: #86efac;
}

.kpi-icon-amber,
.stat-icon-amber {
    background: rgba(252, 211, 77, 0.18);
    color: #fcd34d;
}

.kpi-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.125rem;
}

.kpi-label,
.stat-item-label,
.aggi-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 500;
}

.kpi-value {
    color: #fff;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.1;
}

.kpi-value.birthday-count-warning {
    color: #f87171;
}

.dash-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1.125rem 1.25rem;
}

.stat-card-accent {
    border-color: rgba(120, 169, 207, 0.25);
    background: linear-gradient(135deg, rgba(27, 79, 122, 0.35) 0%, rgba(7, 20, 38, 0.72) 100%);
    box-shadow: 0 4px 24px rgba(27, 79, 122, 0.2);
}

.stat-card-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.stat-card-items {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.75rem;
}

.stat-item-divider {
    width: 1px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
}

.stat-item-icon {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
}

.stat-item-value {
    color: #fff;
    font-size: 1.375rem;
    font-weight: 700;
}

.aggi-value {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.dashboard-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

.dashboard-quick-actions .btn-action {
    min-width: 0;
    font-size: 0.75rem;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.5625rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.btn-action-primary {
    background: #1b4f7a;
}

.btn-action-primary:hover {
    background: #153f63;
    color: #fff;
    box-shadow: 0 2px 8px rgba(27, 79, 122, 0.35);
}

.btn-action-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}

.chart-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.5rem 1rem;
}

.dashboard-detail-widget {
    height: 395px;
    min-width: 0;
    overflow: hidden;
}

.dashboard-detail-count,
.dashboard-clock {
    color: #d3eaf6;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.dashboard-detail-empty {
    margin: auto 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-align: center;
}

.dashboard-detail-list {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
}

.dashboard-detail-row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.6rem;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: inherit;
    text-align: left;
}

button.dashboard-detail-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dashboard-detail-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    overflow-wrap: anywhere;
    font-size: 0.875rem;
}

.dashboard-detail-content>span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
}

.dashboard-detail-icon,
.dashboard-appointment-time {
    flex: 0 0 auto;
    color: #8ecbd6;
    font-variant-numeric: tabular-nums;
}

.dashboard-detail-age {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.dashboard-birthday-twelve,
.dashboard-appointment-current {
    border-left: 3px solid #e8ad57;
    background: rgba(232, 173, 87, 0.12);
}

.dashboard-birthday-twelve .dashboard-detail-age,
.dashboard-appointment-current .dashboard-detail-age {
    color: #f2c879;
    font-weight: 700;
}

.dashboard-detail-link {
    margin-top: auto;
}

.dashboard-weather-current {
    color: #e7f2f5;
    font-size: 1.5rem;
    font-weight: 600;
    white-space: nowrap;
}

.dashboard-wind-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.dashboard-wind-summary>div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.dashboard-wind-summary strong {
    color: #e7f2f5;
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
}

.dashboard-wind-summary small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
    font-weight: 400;
}

.dashboard-weather-caption {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.75rem;
}

.dashboard-weather-hours {
    display: flex;
    min-height: 0;
    gap: 0.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.dashboard-weather-hours::before,
.dashboard-weather-hours::after {
    content: "";
    flex: 0 0 max(0px, calc(50% - 36px));
}

.dashboard-weather-hour {
    display: flex;
    min-width: 72px;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.45rem 0.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    white-space: nowrap;
}

.dashboard-weather-hour .ph {
    color: #8ecbd6;
    font-size: 1.2rem;
}

.dashboard-weather-hour strong {
    color: #fff;
}

.dashboard-weather-hour.is-current {
    background: rgba(120, 169, 207, 0.16);
}

@media (max-width: 480px) {
    .dashboard-wind-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.chart-card-header {
    align-items: flex-start;
}

.chart-subtitle {
    margin-top: 0.125rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
}

@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {

    .kpi-grid,
    .dash-row-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .app-sidebar {
        width: 230px;
        min-width: 230px;
    }

    .app-main {
        padding: 1.25rem 1rem;
    }

    .dash-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .kpi-grid,
    .dash-row-2 {
        grid-template-columns: 1fr;
    }
}

.login-bg {
    background: linear-gradient(rgba(7, 20, 38, 0.65), rgba(7, 20, 38, 0.65)),
        url('../images/Panoramica-TeLiMar.jpg') center / cover no-repeat;
}

.login-glass {
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(100, 100, 255, 0.07);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(16px);
}

.login-logo {
    color: #fff;
    font-weight: 600;
}

.login-subtitle,
.login-forgot,
.login-glass .form-floating>label {
    color: rgba(255, 255, 255, 0.45);
}

.login-glass .form-control {
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.login-glass .form-control:focus {
    border-color: rgba(120, 169, 207, 0.5);
    box-shadow: 0 0 0 3px rgba(27, 79, 122, 0.15);
}

.login-submit {
    border-radius: 8px;
    background: #1b4f7a;
    color: #fff;
}

.login-submit:hover {
    background: #153f63;
    color: #fff;
    box-shadow: 0 2px 8px rgba(27, 79, 122, 0.35);
}

.rz-popup,
.rz-popup .rz-listbox,
.rz-dropdown-panel,
.rz-multiselect-panel {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: #1e1430 !important;
    color: #fff !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

.rz-popup .rz-listbox-item {
    color: rgba(255, 255, 255, 0.78) !important;
}

.rz-popup .rz-listbox-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.rz-popup .rz-listbox-item.rz-state-highlight {
    background: rgba(27, 79, 122, 0.35) !important;
    color: #fff !important;
}

.rz-dialog,
.dashboard-customize-modal,
.db-modal {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px !important;
    background: rgba(7, 20, 38, 0.90) !important;
    color: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.38) !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.rz-dialog-content {
    background: transparent !important;
}

.rz-dialog-mask {
    background: transparent !important;
}

.rz-dialog-titlebar,
.dashboard-modal-header {
    min-height: 56px;
    padding: 0.9rem 1.25rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

.rz-dialog-titlebar {
    display: none !important;
}

.rz-dialog-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
}

.rz-dialog-titlebar .rz-dialog-close {
    color: rgba(255, 255, 255, 0.55) !important;
}

.rz-dialog .rz-button.rz-primary,
.rz-dialog .rz-button.rz-primary.rz-shade-default {
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 8px !important;
    background: #1b4f7a !important;
    color: #fff !important;
    box-shadow: none !important;
}

.rz-dialog .rz-button.rz-primary:hover,
.rz-dialog .rz-button.rz-primary:focus,
.rz-dialog .rz-button.rz-primary:active {
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: #153f63 !important;
    box-shadow: 0 2px 8px rgba(27, 79, 122, 0.35) !important;
}

.rz-dialog .filter-field:has(> .filter-input) {
    position: relative;
    display: block;
    min-width: 0;
}

.rz-dialog .filter-field:has(> .filter-input)>.filter-label {
    position: absolute;
    z-index: 1;
    top: 0.45rem;
    right: 0.75rem;
    left: 0.75rem;
    margin: 0;
    line-height: 1;
    pointer-events: none;
}

.rz-dialog .filter-field:has(> .filter-input)>.filter-input {
    min-height: 53px;
    padding: 1.2rem 0.75rem 0.4rem;
}

.rz-dialog .filter-field:has(> textarea.filter-input)>.filter-input {
    min-height: 84px;
    padding-top: 1.5rem;
}

.rz-dialog-content::-webkit-scrollbar {
    width: 4px;
}

.rz-dialog-content::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.18);
}

.record-editor {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.record-editor-section {
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.record-editor-title {
    margin: 0;
    padding: 0.75rem 0 0.65rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.record-editor .filter-label {
    color: rgba(255, 255, 255, 0.58);
}

.record-editor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.875rem;
}

.record-editor-grid .record-editor-wide {
    grid-column: span 2;
}

.record-editor-check {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
}

.invoice-party-banner {
    padding: 0.7rem;
    border-left: 3px solid rgba(126, 181, 202, 0.7);
    background: rgba(255, 255, 255, 0.055);
    overflow-wrap: anywhere;
}

.invoice-party-banner strong {
    width: 100%;
    color: rgba(235, 246, 249, 0.95);
}

.invoice-customer-meta {
    overflow-wrap: anywhere;
    color: rgba(235, 246, 249, 0.7);
    font-size: 0.78rem;
}

.invoice-description-input textarea {
    min-height: 95px;
    resize: vertical;
}

.invoice-vat-note-input textarea {
    min-height: 68px;
    resize: vertical;
}

.invoice-party-bar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    gap: 1rem;
    margin-bottom: 0.65rem;
    padding: 1rem;
    border: 1px solid rgba(148, 170, 210, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.invoice-party-select {
    position: relative;
    min-width: 0;
}

.anagrafica-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid;
    border-radius: 7px;
}

.invoice-customer-dropdown {
    z-index: 20;
    border-color: rgba(148, 170, 210, 0.28);
    background: rgba(15, 25, 50, 0.88);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.invoice-party-details {
    display: flex;
    min-height: 38px;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
}

.invoice-editor-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 1.25rem;
}

.invoice-panel {
    min-width: 0;
    margin-bottom: 0.65rem;
    padding: 0.9rem 1rem 1rem;
    border: 1px solid rgba(148, 170, 210, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.invoice-document-panel {
    grid-column: span 7;
}

.invoice-payment-panel {
    grid-column: span 5;
}

.invoice-amount-panel {
    grid-column: span 5;
}

.invoice-extra-panel {
    grid-column: span 7;
}

.invoice-panel-title {
    margin: 0 0 0.7rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.invoice-fields {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 0.65rem 0.8rem;
}

.invoice-document-fields {
    grid-template-columns: minmax(0, 1.7fr) minmax(90px, 0.8fr) minmax(65px, 0.55fr) minmax(0, 1.35fr);
}

.invoice-document-fields> :first-child {
    grid-column: span 2;
}

.invoice-document-fields> :nth-child(4),
.invoice-document-fields> :nth-child(5) {
    grid-column: span 2;
}

.invoice-document-fields .invoice-toggle {
    min-height: 38px;
}

.invoice-field-wide {
    grid-column: 1 / -1;
}

.invoice-toggle {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
}

.invoice-toggle input {
    width: 1rem;
    height: 1rem;
    accent-color: #58a67b;
}

.invoice-calculated-value {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: flex-end;
    padding: 0 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.78);
    font-variant-numeric: tabular-nums;
    font-size: 1rem;
    font-weight: 600;
}

.invoice-amount-fields .invoice-calculated-value {
    font-size: 1.12rem;
}

.input_box.invoice-money-input input {
    font-size: 1.12rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.invoice-total-value {
    color: #fff;
    min-height: 48px;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(148, 170, 210, 0.24);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 1.65rem;
    line-height: 1.1;
    font-weight: 700;
}

.invoice-amount-fields .invoice-calculated-value.invoice-total-value {
    font-size: 1.65rem !important;
}

.invoice-advanced {
    margin-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.invoice-advanced summary {
    padding: 0.7rem 0;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
}

.invoice-advanced-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: 0.5rem;
}

.page-record-count {
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 500;
}

.modern-grid tfoot td,
.modern-grid .rz-grid-footer td,
.modern-grid .rz-grid-footer-cell {
    min-height: 42px;
    border-top: 2px solid rgba(120, 169, 207, 0.42) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: #111c2b !important;
    color: #fff !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
}

.modern-grid tfoot {
    background: transparent !important;
}

.modern-grid tfoot td {
    padding-right: 0.35rem !important;
    padding-left: 0.35rem !important;
}

.modern-grid tfoot tr:last-child>td:first-child,
.modern-grid .rz-grid-footer td:first-child,
.modern-grid .rz-grid-footer-cell:first-child {
    border-bottom-left-radius: 8px !important;
}

.modern-grid tfoot tr:last-child>td:last-child,
.modern-grid .rz-grid-footer td:last-child,
.modern-grid .rz-grid-footer-cell:last-child {
    border-bottom-right-radius: 8px !important;
}

.modern-grid tfoot .rz-column-footer,
.modern-grid tfoot .rz-column-footer * {
    background: transparent !important;
    color: #fff !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

.rz-grid-pager,
.rz-pager {
    min-height: 46px;
    padding: 8px 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 20, 38, 0.45) !important;
    color: rgba(255, 255, 255, 0.75) !important;
    border-radius: 15px !important;
    margin-bottom: 10px;
}

.rz-grid-pager .rz-pager-summary,
.rz-pager .rz-pager-summary,
.rz-grid-pager .rz-pager-label,
.rz-pager .rz-pager-label {
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 0.8125rem;
}

.rz-pager-button,
.rz-pager-page,
.rz-pager-element,
.rz-pager-back,
.rz-pager-next,
.rz-pager-first,
.rz-pager-last {
    min-width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.72) !important;
    box-shadow: none !important;
}

.rz-pager-button:hover,
.rz-pager-page:hover,
.rz-pager-element:hover,
.rz-pager-back:hover,
.rz-pager-next:hover,
.rz-pager-first:hover,
.rz-pager-last:hover {
    border-color: rgba(120, 169, 207, 0.4) !important;
    background: rgba(27, 79, 122, 0.35) !important;
    color: #fff !important;
}

.rz-pager-page.rz-state-active,
.rz-pager-element.rz-state-active,
.rz-pager-button.rz-state-active {
    border-color: #1b4f7a !important;
    background: #1b4f7a !important;
    color: #fff !important;
}

.rz-pager-button.rz-state-disabled,
.rz-pager-page.rz-state-disabled,
.rz-pager-element.rz-state-disabled,
.rz-pager-back.rz-state-disabled,
.rz-pager-next.rz-state-disabled,
.rz-pager-first.rz-state-disabled,
.rz-pager-last.rz-state-disabled {
    border-color: rgba(255, 255, 255, 0.06) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.28) !important;
    opacity: 1 !important;
}

.rz-grid-pager select,
.rz-pager select,
.rz-grid-pager .rz-dropdown,
.rz-pager .rz-dropdown {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

.app-sidebar,
.app-content {
    transition: width 0.2s ease;
}

.app-layout.sidebar-collapsed .app-sidebar {
    width: 76px;
    min-width: 76px;
}

.sidebar-brand {
    position: relative;
}

.sidebar-collapse-btn {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
}

.sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.app-layout.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding-inline: 0;
}

.app-layout.sidebar-collapsed .sidebar-brand .brand-mark,
.app-layout.sidebar-collapsed .sidebar-brand .brand-name,
.app-layout.sidebar-collapsed .section-label,
.app-layout.sidebar-collapsed .nav-link-item>span:not(.nav-icon) {
    display: none;
}

.app-layout.sidebar-collapsed .sidebar-collapse-btn {
    margin-left: 0;
}

.app-layout.sidebar-collapsed .nav-link-item {
    justify-content: center;
    padding-inline: 0;
    overflow: visible;
}

.app-layout.sidebar-collapsed .nav-link-item,
.app-layout.sidebar-collapsed .sidebar-collapse-btn {
    position: relative;
}

.app-layout.sidebar-collapsed .app-sidebar,
.app-layout.sidebar-collapsed .sidebar-nav,
.app-layout.sidebar-collapsed .nav-scroll {
    overflow: visible;
}

.app-layout.sidebar-collapsed [data-tooltip]::after,
.app-layout.sidebar-collapsed [data-tooltip]::before {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.app-layout.sidebar-collapsed [data-tooltip]::after {
    top: 50%;
    left: calc(100% + 12px);
    min-width: max-content;
    padding: 0.45rem 0.65rem;
    transform: translate(4px, -50%);
    border: 1px solid rgba(120, 169, 207, 0.45);
    border-radius: 7px;
    background: #1b4f7a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.92);
    content: attr(data-tooltip);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.app-layout.sidebar-collapsed [data-tooltip]::before {
    top: 50%;
    left: calc(100% + 7px);
    width: 8px;
    height: 8px;
    transform: translate(4px, -50%) rotate(45deg);
    border-bottom: 1px solid rgba(120, 169, 207, 0.45);
    border-left: 1px solid rgba(120, 169, 207, 0.45);
    background: #1b4f7a;
    content: '';
}

.app-layout.sidebar-collapsed [data-tooltip]:hover::after,
.app-layout.sidebar-collapsed [data-tooltip]:hover::before,
.app-layout.sidebar-collapsed [data-tooltip]:focus-visible::after,
.app-layout.sidebar-collapsed [data-tooltip]:focus-visible::before {
    opacity: 1;
    transform: translate(0, -50%);
}

.app-layout.sidebar-collapsed [data-tooltip]:hover::before,
.app-layout.sidebar-collapsed [data-tooltip]:focus-visible::before {
    transform: translate(0, -50%) rotate(45deg);
}

.page-container {
    display: flex;
    height: 100%;
    flex-direction: column;
    gap: 1.5rem;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.page-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-left: auto;
}

.registration-document-actions {
    align-items: center;
    flex-wrap: wrap;
}

.registration-document-type-filter {
    width: 210px;
    flex: 0 1 210px;
}

.registration-document-year-filter {
    width: 130px;
    flex: 0 0 130px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.375rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8125rem;
}

.page-breadcrumb .ph {
    opacity: 0.6;
    font-size: 0.65rem;
}

.grid-card {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    padding-right: 15px;
    padding-left: 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
}

.registration-document-list {
    flex: 0 1 auto;
    height: min(68vh, 680px);
    min-height: 360px;
}

.registration-document-grid {
    min-height: 0;
    height: 100% !important;
    flex: 1 1 auto;
}

.grid-toolbar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 0;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.08); */
}

.catalog-command-bar>.btn-action {
    flex-shrink: 0;
    white-space: nowrap;
}

.catalog-command-bar>.search-box {
    margin-left: auto;
}

.agenda-grid-toolbar .toolbar-actions {
    display: flex;
    width: auto;
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.agenda-grid-toolbar .search-box {
    width: min(340px, 46%);
    min-width: 0;
    flex: 0 1 340px;
}

.agenda-user-selector {
    width: 190px;
    flex: 0 0 190px;
}

@media (max-width: 760px) {

    .agenda-grid-toolbar .toolbar-actions,
    .agenda-grid-toolbar .search-box {
        width: 100%;
    }

    .agenda-grid-toolbar .search-box {
        min-width: 0;
    }

    .agenda-user-selector {
        width: min(190px, 100%);
        flex-basis: min(190px, 100%);
    }
}

.toolbar-actions,
.page-category-filters {
    width: 100%;
}

.anagrafica-export-actions {
    min-width: 0;
    flex: 0 1 440px;
}

.anagrafica-export-actions .search-box {
    width: auto;
    min-width: 0;
    flex: 1 1 200px;
}

.anagrafica-export-actions .search-box input {
    min-width: 0;
}

.marketing-campaign-toolbar {
    justify-content: flex-end;
}

.grid-export-error {
    flex-basis: 100%;
    color: #fca5a5;
    font-size: 0.75rem;
    text-align: right;
}

.anagrafica-export-actions.grid-export-error-visible {
    flex-wrap: wrap;
}

.page-category-add {
    margin-left: auto;
}

.filter-category-list,
.filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.search-box {
    display: flex;
    min-width: 280px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4375rem 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.search-box:focus-within {
    border-color: rgba(120, 169, 207, 0.6);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(27, 79, 122, 0.18);
}

.search-box>.ph {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.9375rem;
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-family: inherit;
    font-size: 0.875rem;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.search-box .search-clear {
    display: flex;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    font-size: 0.75rem;
}

.search-box .search-clear:hover {
    color: rgba(255, 255, 255, 0.75);
}

.filter-panel {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin: 0 -1px;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    animation: slideDown 0.15s ease-out;
}

.ospitalita-toolbar .input_box select,
.ospitalita-toolbar .input_box select:focus {
    background-color: transparent;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.875rem;
}

.filter-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.3125rem;
}

.filter-label {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.filter-input {
    width: 100%;
    padding: 0.4375rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    outline: none;
    appearance: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-family: inherit;
    font-size: 0.875rem;
}

.filter-input:focus {
    border-color: rgba(120, 169, 207, 0.5);
    box-shadow: 0 0 0 3px rgba(27, 79, 122, 0.15);
}

select.filter-input {
    padding-right: 2rem;
    cursor: pointer;
}

select.filter-input option {
    background: #071426;
    color: rgba(255, 255, 255, 0.85);
}

.btn-active {
    border-color: rgba(27, 79, 122, 0.45) !important;
    background: rgba(27, 79, 122, 0.22) !important;
    color: #78a9cf !important;
}

.corporate-grid-fill {
    min-height: 0;
    height: 100% !important;
    flex: 1;
}

.rz-dialog:has(.registration-document-form) {
    max-height: min(86vh, 760px);
}

.rz-dialog:has(.agenda-dialog) {
    max-height: min(84vh, 700px);
}

.rz-dialog:has(.agenda-dialog) .rz-dialog-content {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 0 !important;
}

.rz-dialog:has(.quote-elaborazione-dialog) {
    max-height: min(86vh, 760px);
}

.rz-dialog:has(.quote-elaborazione-dialog) .rz-dialog-content {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 0 !important;
}

.quote-elaborazione-dialog {
    display: flex;
    min-height: 0;
    height: 100%;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.quote-elaborazione-grid {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
}

.quote-elaborazione-actions {
    flex: 0 0 auto;
    margin-top: 0 !important;
}

.rz-dialog:has(.sdd-generation-dialog) {
    max-height: min(78vh, 680px);
}

.rz-dialog:has(.sdd-generation-dialog) .rz-dialog-content {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 0 !important;
}

.sdd-generation-dialog {
    display: flex;
    min-height: 0;
    height: 100%;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
    padding: 1rem;
}

.sdd-generation-list {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
}

.sdd-generation-list .rz-data-grid {
    min-height: 0;
    height: 100% !important;
    flex: 1 1 auto;
}

.sdd-preview-grid {
    height: min(24vh, 220px);
    min-height: 120px;
    overflow: auto;
}

.sdd-preview-grid .rz-data-grid {
    height: 100% !important;
}

.sdd-human-preview {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overflow-wrap: anywhere;
}

.sdd-generation-actions {
    flex: 0 0 auto;
    margin-top: 0 !important;
}

.agenda-dialog {
    display: flex;
    width: 100%;
    min-height: 0;
    height: 100%;
    flex-direction: column;
}

.agenda-dialog .entity-dialog-grid {
    min-height: 0;
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 1fr);
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.agenda-dialog .entity-dialog-section {
    min-width: 0;
}

.agenda-dialog .entity-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 0.75rem;
}

.agenda-dialog .entity-dialog-actions {
    position: sticky;
    bottom: 0;
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .agenda-dialog .entity-dialog-grid {
        padding: 1rem;
    }

    .agenda-dialog .entity-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

.rz-dialog:has(.aruba-received-dialog) {
    max-height: min(84vh, 760px);
}

.rz-dialog:has(.aruba-received-dialog) .rz-dialog-content {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 0 !important;
}

.aruba-received-dialog {
    display: flex;
    width: 100%;
    min-height: 0;
    height: 100%;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
}

.aruba-received-heading h2 {
    margin: 0;
    color: rgba(235, 246, 249, 0.94);
    font-size: 1.1rem;
}

.aruba-received-heading p,
.aruba-credentials-note {
    margin: 0.25rem 0 0;
    color: rgba(235, 246, 249, 0.55);
    font-size: 0.78rem;
}

.aruba-search-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 0.75rem;
}

.aruba-search-button {
    min-height: 46px;
}

.aruba-credentials-note {
    margin: 0;
}

.aruba-results-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    color: rgba(235, 246, 249, 0.7);
    font-size: 0.82rem;
}

.aruba-results-summary strong {
    color: rgba(235, 246, 249, 0.95);
}

.aruba-received-grid {
    min-height: 140px;
    flex: 1 1 auto;
}

.aruba-received-actions,
.aruba-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aruba-received-actions {
    flex: 0 0 auto;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
}

@media (max-width: 680px) {
    .aruba-received-dialog {
        padding: 1rem;
    }

    .aruba-search-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .aruba-received-grid {
        overflow-x: auto;
    }
}

.rz-scheduler {
    overflow: hidden;
    border: 1px solid rgba(148, 170, 210, 0.2) !important;
    border-radius: 10px;
    background: rgba(15, 22, 42, 0.42) !important;
    color: rgba(235, 246, 249, 0.84) !important;
}

.rz-scheduler-nav {
    min-height: 0 !important;
    padding: 0.65rem 0.8rem !important;
    border-bottom: 1px solid rgba(148, 170, 210, 0.2) !important;
    background: rgba(255, 255, 255, 0.025) !important;
    color: rgba(235, 246, 249, 0.86) !important;
}

.rz-scheduler-nav-title {
    color: rgba(235, 246, 249, 0.94) !important;
    font-size: 1rem;
    font-weight: 700;
}

.rz-scheduler .rz-button {
    min-height: 36px;
    border: 1px solid rgba(148, 170, 210, 0.2) !important;
    border-radius: 7px !important;
    background: rgba(255, 255, 255, 0.045) !important;
    color: rgba(235, 246, 249, 0.82) !important;
    box-shadow: none !important;
}

.rz-scheduler .rz-button:hover,
.rz-scheduler .rz-button:focus-visible {
    border-color: rgba(120, 169, 207, 0.55) !important;
    background: rgba(255, 255, 255, 0.09) !important;
    color: #fff !important;
}

.rz-scheduler .rz-button.rz-primary.rz-state-active,
.rz-scheduler .rz-button.rz-primary:active {
    border-color: rgba(120, 169, 207, 0.55) !important;
    background: rgba(27, 79, 122, 0.48) !important;
    color: #a9d2f3 !important;
}

.rz-scheduler .rz-view-header,
.rz-scheduler .rz-slot-header {
    border-color: rgba(148, 170, 210, 0.18) !important;
    background: rgba(255, 255, 255, 0.035) !important;
    color: rgba(235, 246, 249, 0.68) !important;
}

.rz-scheduler .rz-view-content,
.rz-scheduler .rz-week,
.rz-scheduler .rz-slot {
    border-color: rgba(148, 170, 210, 0.14) !important;
    color: rgba(235, 246, 249, 0.76) !important;
}

.rz-scheduler .rz-slot-title {
    color: var(--agenda-day-number-color, rgba(235, 246, 249, 0.76)) !important;
}

.rz-scheduler .rz-slot-title::after {
    display: inline;
    margin-left: 0.3rem;
    color: #e88383;
    content: var(--agenda-holiday-label, "");
    font-size: 0.64rem;
    font-weight: 600;
}

.rz-scheduler .rz-slot:hover {
    background: rgba(255, 255, 255, 0.045) !important;
}

.rz-scheduler .rz-event {
    border: 0 !important;
    border-radius: 5px !important;
    background: #1b4f7a !important;
    color: #fff !important;
}

.rz-dialog:has(.registration-document-form) .rz-dialog-content {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
    padding: 0 !important;
}

.registration-document-form {
    display: flex;
    width: 100%;
    min-height: 0;
    height: 100%;
    flex-direction: column;
}

.entity-dialog-grid {
    display: grid;
    min-height: 0;
    flex: 1 1 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.entity-dialog-section {
    min-width: 0;
}

.entity-dialog-section>h2 {
    margin: 0 0 0.8rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    font-weight: 700;
}

.entity-fields {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 0.65rem 0.8rem;
}

.entity-fields .entity-wide {
    grid-column: 1 / -1;
}

.entity-dialog-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 0.8rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(7, 20, 38, 0.25);
}

@media (max-width: 760px) {
    .entity-dialog-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .entity-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .entity-dialog-actions {
        padding: 0.7rem 1rem;
    }

    .registration-document-list {
        height: min(64vh, 600px);
        min-height: 320px;
    }
}

.grid-card>.corporate-grid-fill {
    margin-top: 0;
}

.modern-grid.is-loading-grid {
    opacity: 0.72;
    filter: saturate(0.7);
}

.action-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.btn-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-icon:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.btn-icon-danger:hover {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

.invoice-page-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-left: auto;
}

.invoice-page-field {
    display: flex;
    width: 220px;
    flex-direction: column;
    gap: 0.3rem;
}

.invoice-year-field {
    width: 112px;
}

.invoice-grid-toolbar {
    justify-content: space-between;
}

.invoice-grid-toolbar .toolbar-actions {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
}

.invoice-grid-toolbar>.search-box {
    width: auto;
    min-width: 0;
    margin-left: auto;
}

.grid-toolbar>.search-box {
    width: 280px;
    min-width: 0;
    flex: 0 1 280px;
}

.invoice-name-cell {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invoice-grid-money {
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1200px) {
    .filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .record-editor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .invoice-editor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .invoice-document-panel,
    .invoice-payment-panel,
    .invoice-amount-panel,
    .invoice-extra-panel {
        grid-column: span 1;
    }
}

@media (max-width: 760px) {
    .invoice-party-bar {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .invoice-editor-grid {
        grid-template-columns: 1fr;
    }

    .invoice-document-panel,
    .invoice-payment-panel,
    .invoice-amount-panel,
    .invoice-extra-panel {
        grid-column: 1;
    }

    .invoice-document-fields,
    .invoice-advanced-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .record-editor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .record-editor-grid .record-editor-wide {
        grid-column: 1 / -1;
    }

    .app-sidebar {
        width: 76px;
        min-width: 76px;
    }

    .sidebar-brand .brand-name,
    .section-label,
    .sidebar-nav .nav-link-item>span:not(.nav-icon) {
        display: none;
    }

    .nav-link-item {
        justify-content: center;
        padding-inline: 0;
    }

    .page-header,
    .grid-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .anagrafica-export-actions {
        width: 100%;
        flex: 0 1 auto;
    }

    .page-header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .settings-grid-header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .settings-grid-header .page-header-actions {
        width: auto;
    }

    .registration-document-actions {
        margin-left: 0;
        justify-content: flex-start;
    }

    .registration-document-type-filter {
        width: auto;
        flex: 1 1 190px;
    }

    .registration-document-year-filter {
        width: 125px;
        flex-basis: 125px;
    }

    .invoice-page-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    .invoice-page-field {
        width: auto;
        min-width: 150px;
        flex: 1 1 150px;
    }

    .invoice-year-field {
        min-width: 92px;
        flex: 0 1 100px;
    }

    .invoice-page-actions>button:last-child {
        margin-left: auto;
    }

    .search-box {
        width: 100%;
    }

    .catalog-command-bar>.search-box {
        width: 100%;
        flex: 0 1 auto;
        margin-left: 0;
    }

    .invoice-grid-toolbar .toolbar-actions {
        width: 100%;
    }

    .invoice-grid-toolbar>.search-box {
        width: 100%;
        min-width: 0;
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.form-card {
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
}

.scheda-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.scheda-tab {
    padding: 0.625rem 1.25rem;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.scheda-tab:hover {
    color: rgba(255, 255, 255, 0.85);
}

.scheda-tab.active {
    border-bottom-color: #78a9cf;
    color: #fff;
    font-weight: 600;
}

.scheda-tab:disabled {
    color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
}

.rz-dialog:has(.anagrafica-dialog) {
    max-height: min(94vh, 980px);
}

.rz-dialog:has(.anagrafica-dialog) .rz-dialog-content {
    display: flex;
    min-height: 0;
    flex: 1 1 0;
    flex-direction: column;
    overflow: hidden;
    padding: 0 !important;
}

.anagrafica-dialog {
    display: flex;
    min-height: 0;
    height: 100%;
    flex-direction: column;
}

.anagrafica-dialog>form {
    display: flex;
    min-height: 0;
    height: 100%;
    flex-direction: column;
}

.anagrafica-dialog>.alert {
    flex: 0 0 auto;
    margin: 1rem 1.25rem 0;
}

.anagrafica-dialog-form {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.anagrafica-dialog-scroll {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: auto;
    padding: 1.25rem 1.5rem;
}

.anagrafica-dialog-scroll.is-payer-dialog {
    overflow: hidden;
}

.anagrafica-dialog-heading {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.anagrafica-dialog-identity {
    flex: 1 1 250px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.anagrafica-dialog-heading.is-dismissed {
    margin: -1.25rem -1.5rem 0.85rem;
    padding: 1.25rem 1.5rem;
    background: #8d292d;
}

.anagrafica-dialog-status {
    display: block;
    margin-top: 0.25rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.anagrafica-dialog-heading h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    font-weight: 700;
}

.anagrafica-dialog-heading.invoice-dialog-heading h2 {
    font-size: 1.4rem;
}

.anagrafica-dialog-heading .anagrafica-dialog-code {
    display: inline-block;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.78rem;
}

.anagrafica-dialog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 600;
}

.business-supplier-form>.row.g-4> :nth-child(1) {
    order: 1;
}

.business-supplier-form>.row.g-4> :nth-child(5) {
    order: 2;
}

.business-supplier-form>.row.g-4> :nth-child(6) {
    order: 3;
}

.business-supplier-form>.row.g-4> :nth-child(2) {
    order: 4;
}

.business-supplier-form>.row.g-4> :nth-child(4) {
    order: 5;
}

.business-supplier-form>.row.g-4> :nth-child(3) {
    order: 6;
}

.business-supplier-form>.row.g-4> :nth-child(7) {
    order: 7;
}

.nucleo-member-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(100px, 150px);
    grid-template-areas:
        "personal information photo"
        "contacts gym save";
    align-items: start;
    gap: 1.5rem;
}

.nucleo-member-personal {
    grid-area: personal;
    min-width: 0;
}

.nucleo-member-contacts {
    grid-area: contacts;
    min-width: 0;
}

.nucleo-member-information {
    grid-area: information;
    min-width: 0;
}

.nucleo-member-gym {
    grid-area: gym;
    min-width: 0;
}

.nucleo-member-save {
    grid-area: save;
    align-self: end;
    justify-self: center;
    max-width: 100%;
}

.nucleo-member-heading {
    grid-area: photo;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    margin-top: 46px;
    text-align: center;
}

.nucleo-member-heading.is-dismissed {
    padding: 0.75rem;
    background: #8d292d;
}

.nucleo-member-identity {
    min-width: 0;
    overflow-wrap: anywhere;
}

.nucleo-member-identity h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.nucleo-member-identity .anagrafica-dialog-meta {
    justify-content: center;
}

.input_box.fiscal-code-generated input {
    border-color: #58a67b;
    background: rgba(88, 166, 123, 0.12);
}

.fiscal-code-status {
    margin-top: 0.35rem;
    color: #a4d8b8;
    font-size: 0.78rem;
}

.anagrafica-dialog .anagrafica-field-changed :is(input, textarea, select) {
    border-color: #e4ad52;
    background-color: rgba(228, 173, 82, 0.12);
}

.anagrafica-dialog .checkbox-label.anagrafica-field-changed {
    color: #f0c77e;
}

.anagrafica-dialog .invoice-toggle.anagrafica-field-changed {
    color: #f0c77e;
}

.anagrafica-dialog .certificate-actions.anagrafica-field-changed .btn-icon,
.anagrafica-dialog .anagrafica-photo-changed {
    outline: 2px solid #e4ad52;
    outline-offset: 2px;
}

.anagrafica-dialog .input_box:has(> input[required])>.floating-label::after,
.anagrafica-dialog .input_box:has(> select[required])>.floating-label::after,
.anagrafica-dialog .input_box:has(> input[aria-required="true"])>.floating-label::after,
.anagrafica-dialog .input_box:has(> select[aria-required="true"])>.floating-label::after {
    content: " *";
    color: #f39b95;
}

.anagrafica-dialog .scheda-tabs {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    margin: 0;
    padding: 0 0.25rem;
}

.anagrafica-dialog .scheda-tab-content {
    min-width: 0;
}

.anagrafica-dialog .scheda-tab-content.is-payer-tab {
    min-height: 0;
    flex: 1 1 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.anagrafica-dialog .scheda-tab-content.is-nucleo-tab {
    min-height: 0;
    flex: 1 1 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.anagrafica-dialog .scheda-tab-content.is-grid-tab,
.anagrafica-embedded-grid,
.anagrafica-dialog .invoice-embedded,
.anagrafica-dialog .invoice-embedded-grid {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex: 1 1 0;
    flex-direction: column;
    overflow: hidden;
}

.anagrafica-embedded-grid>.modern-grid,
.anagrafica-dialog .invoice-embedded-grid>.modern-grid {
    min-width: 0;
    min-height: 0;
    flex: 1 1 0;
    margin-bottom: 0;
}

.anagrafica-dialog-actions {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.8rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(7, 20, 38, 0.25);
}

.anagrafica-photo-frame,
.anagrafica-photo-empty {
    display: flex;
    min-height: 160px;
    max-height: 240px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.anagrafica-photo-preview {
    display: block;
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
}

.anagrafica-photo-empty {
    flex-direction: column;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
}

.anagrafica-photo-empty .ph {
    font-size: 2rem;
}

@media (max-width: 760px) {
    .anagrafica-dialog-scroll {
        padding: 1rem;
    }

    .anagrafica-dialog-heading.is-dismissed {
        margin: -1rem -1rem 0.85rem;
        padding: 1rem;
    }

    .anagrafica-dialog .scheda-tab {
        padding: 0.6rem 0.8rem;
    }

    .nucleo-member-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "photo photo"
            "personal information"
            "contacts gym"
            "save save";
        gap: 1rem;
    }

    .nucleo-member-heading {
        flex-direction: row-reverse;
        align-items: center;
        justify-content: center;
        margin-top: 0;
    }
}

@media (max-width: 500px) {
    .nucleo-member-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "photo" "personal" "contacts" "information" "gym" "save";
    }
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 20px;
    padding-bottom: 1.25rem;
}

.form-card .input_box {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.3125rem;
}

.form-card .input_box>.floating-label {
    position: static;
    order: -1;
    transform: none;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
}

.form-card .input_box :is(input, textarea, select) {
    width: 100%;
    height: auto;
    min-height: 38px;
    padding: 0.4375rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font: inherit;
    font-size: 0.875rem;
}

.form-card .input_box :is(input, textarea, select):focus {
    border-color: rgba(120, 169, 207, 0.5);
    background: transparent;
    box-shadow: 0 0 0 3px rgba(27, 79, 122, 0.15);
}

.form-card .filter-label {
    color: rgba(255, 255, 255, 0.62);
}

.spotlight-search-dialog {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 0.625rem;
}

.spotlight-search-box {
    width: 100%;
    min-width: 0;
    padding: 0.65rem 0.875rem;
    background: rgba(255, 255, 255, 0.08);
}

.spotlight-results {
    max-height: calc(78vh - 80px);
    overflow-y: auto;
    padding: 4px 2px 2px;
}

.spotlight-group {
    margin-top: 12px;
}

.spotlight-group:first-child {
    margin-top: 2px;
}

.spotlight-group-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 10px 6px;
    color: rgba(120, 169, 207, 0.78);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.spotlight-result-item {
    display: flex;
    width: 100%;
    flex-direction: column;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.spotlight-result-item:hover,
.spotlight-result-item.selected {
    background: rgba(27, 79, 122, 0.32);
}

.spotlight-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.spotlight-title {
    color: #e8f0ff;
    font-size: 14px;
    font-weight: 600;
}

.spotlight-desc {
    overflow: hidden;
    color: rgba(200, 215, 255, 0.65);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spotlight-tenant-badge {
    flex-shrink: 0;
    padding: 0.15rem 0.45rem;
    border: 1px solid rgba(120, 169, 207, 0.2);
    border-radius: 999px;
    background: rgba(27, 79, 122, 0.22);
    color: rgba(190, 220, 255, 0.85);
    font-size: 0.68rem;
    font-weight: 600;
}

.spotlight-loading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.spotlight-loading,
.spotlight-noresults {
    padding: 12px 10px;
    color: rgba(200, 215, 255, 0.7);
    font-size: 13px;
}

select:not([multiple]):not([size]),
select:not([multiple]):not([size]):focus {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ced4da' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.marketing-recipient-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
}

.marketing-recipient-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
}

.marketing-recipient-row>span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow-wrap: anywhere;
}

.marketing-recipient-row small {
    color: rgba(255, 255, 255, 0.55);
}

.rz-dialog:has(.internal-chat-dialog) .rz-dialog-content {
    display: flex;
    min-height: 0;
    flex: 1 1 0;
    flex-direction: column;
    overflow: hidden;
}

.internal-chat-dialog {
    display: flex;
    min-height: 0;
    height: 100%;
    flex: 1 1 auto;
    flex-direction: column;
}

.app-main:has(>.internal-chat-page) {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.internal-chat-page {
    width: 100%;
}

.internal-chat-dialog>.internal-chat {
    height: auto;
    min-height: 0;
    flex: 1 1 0;
}

.internal-chat-topbar {
    flex: 0 0 auto;
}

.internal-chat-close {
    display: none;
}

.internal-chat {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    height: min(65vh, 700px);
    min-height: min(420px, 55vh);
    overflow: hidden;
}

.internal-chat-sidebar,
.internal-chat-main {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
}

.internal-chat-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.internal-chat-new-group {
    align-self: flex-start;
    margin: 0.75rem 1rem 0;
}

.internal-chat-members-link {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a9d2f0;
    font: inherit;
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
}

.internal-chat-header strong,
.internal-chat-user-copy strong {
    overflow-wrap: anywhere;
}

.internal-chat-sender {
    color: #a9d2f0;
    font-size: 0.75rem;
}

.internal-chat-group-members {
    height: 185px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.internal-chat-group-member {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.internal-chat-group-member>input {
    flex-shrink: 0;
}

.internal-chat-group-member>span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow-wrap: anywhere;
}

.internal-chat-group-member small {
    color: rgba(255, 255, 255, 0.55);
}

.internal-chat-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.55);
}

.internal-chat-search input,
.internal-chat-compose textarea {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.internal-chat-users,
.internal-chat-messages {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
}

.internal-chat-user {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.internal-chat-user:hover,
.internal-chat-user.selected {
    background: rgba(120, 169, 207, 0.14);
}

.internal-chat-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 50%;
    background: rgba(120, 169, 207, 0.2);
    color: #a9d2f0;
    font-weight: 600;
}

.internal-chat-user-copy,
.internal-chat-header>span:last-child,
.internal-chat-contact-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.internal-chat-user-copy small,
.internal-chat-header small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.55);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.internal-chat-unread {
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    background: #1b4f7a;
    color: #fff;
    font-size: 0.75rem;
}

.internal-chat-header,
.internal-chat-compose {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.internal-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem;
}

.internal-chat-message-row {
    display: flex;
    align-items: flex-end;
    gap: 0.3rem;
}

.internal-chat-message-row.mine {
    justify-content: flex-end;
}

.internal-chat-message {
    display: flex;
    max-width: min(75%, 600px);
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.internal-chat-message-row.mine .internal-chat-message {
    background: rgba(27, 79, 122, 0.7);
}

.internal-chat-typing {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-style: italic;
}

.internal-chat-message small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.7rem;
}

.internal-chat-order-action {
    align-self: flex-start;
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.3;
}

.internal-chat-order-action .ph {
    flex-shrink: 0;
}

.internal-chat-compose {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 0;
}

.internal-chat-compose textarea {
    resize: vertical;
}

.internal-chat-empty {
    margin: auto;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.internal-chat-empty .ph {
    font-size: 2rem;
}

.internal-chat-back {
    display: none;
}

@media (max-width: 768px) {
    .rz-dialog:has(.internal-chat-dialog) {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        transform: none !important;
    }

    .rz-dialog:has(.internal-chat-dialog) .rz-dialog-content {
        padding: 0 !important;
    }

    .internal-chat-dialog {
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .internal-chat-topbar {
        min-height: 64px;
        margin-bottom: 0 !important;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .internal-chat-dialog.conversation-open>.internal-chat-topbar {
        display: none !important;
    }

    .internal-chat-dialog>.alert {
        flex: 0 0 auto;
        margin: 0.5rem;
    }

    .internal-chat {
        grid-template-columns: minmax(0, 1fr);
    }

    .internal-chat-sidebar {
        border-right: 0;
    }

    .internal-chat-search {
        flex: 0 0 auto;
        margin: 0.75rem;
        padding: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.05);
    }

    .internal-chat-search input,
    .internal-chat-compose textarea {
        font-size: 16px;
    }

    .internal-chat-user {
        min-height: 80px;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .internal-chat-user .internal-chat-avatar {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .internal-chat-user-copy {
        gap: 0.35rem;
    }

    .internal-chat-user-copy strong,
    .internal-chat-contact-copy strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .internal-chat-header {
        min-height: 64px;
        flex: 0 0 auto;
        padding: 0.65rem 0.75rem;
        gap: 0.5rem;
    }

    .internal-chat-messages {
        padding: 0.85rem;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        background: rgba(0, 0, 0, 0.12);
    }

    .internal-chat-message {
        max-width: 85%;
    }

    .internal-chat-compose {
        flex: 0 0 auto;
        align-items: flex-end;
        gap: 0.5rem;
        padding: 0.65rem 0.75rem;
    }

    .internal-chat-compose textarea {
        min-height: 44px;
        max-height: 120px;
        padding: 0.65rem 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06);
        resize: none;
    }

    .internal-chat-compose button,
    .internal-chat-header .btn-icon,
    .internal-chat-topbar .btn-icon {
        min-width: 44px;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .internal-chat:not(.has-selection) .internal-chat-main,
    .internal-chat.has-selection .internal-chat-sidebar {
        display: none;
    }

    .internal-chat-back,
    .internal-chat-close {
        display: inline-flex;
    }
}

.marketing-landing {
    min-height: 100vh;
    background: #101a2b;
    color: #f0f4f6;
}

.marketing-landing-body {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.marketing-landing-hero {
    position: relative;
    display: flex;
    min-height: min(48vh, 480px);
    align-items: flex-end;
    overflow: hidden;
    background: #192f3e;
}

.marketing-landing-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marketing-landing-hero::after {
    position: absolute;
    inset: 0;
    background: rgba(5, 18, 30, 0.5);
    content: '';
}

.marketing-landing-heading {
    position: relative;
    z-index: 1;
    padding-block: 3rem;
    overflow-wrap: anywhere;
}

.account-profile-avatar {
    position: relative;
    display: grid;
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(120, 169, 207, 0.18);
    color: #a9d2f0;
    cursor: pointer;
    font-size: 2rem;
}

.anagrafica-photo-button {
    padding: 0;
    border: 0;
}

.anagrafica-photo-dialog img {
    display: block;
    max-width: 100%;
    max-height: 65vh;
    margin: 0 auto;
    object-fit: contain;
}

.certificate-actions {
    display: grid;
    width: min(100%, 101px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 3.35rem;
}

.certificate-actions .btn-icon {
    width: 45px;
    height: 45px;
    min-width: 0;

}

.certificate-upload {
    margin: 0;
    cursor: pointer;
}

.certificate-file-input:focus-visible+.certificate-upload {
    outline: 2px solid #a9d2f0;
    outline-offset: 2px;
}

.certificate-file-input:disabled+.certificate-upload {
    opacity: 0.5;
    cursor: not-allowed;
}

.certificate-preview {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    gap: 0.75rem;
}

.certificate-preview iframe,
.certificate-preview img {
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    border: 0;
    object-fit: contain;
}

.certificate-preview-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    overflow-wrap: anywhere;
}

.account-profile-avatar-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.account-profile-avatar:hover .account-profile-avatar-overlay,
.account-profile-photo-input:focus-visible+.account-profile-avatar .account-profile-avatar-overlay {
    opacity: 1;
}

.account-profile-photo-input:focus-visible+.account-profile-avatar {
    outline: 2px solid #a9d2f0;
    outline-offset: 3px;
}

.account-profile-photo-input:disabled+.account-profile-avatar {
    cursor: default;
}

.account-profile-avatar img,
.header-profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.account-profile-avatar.anagrafica-logo-avatar {
    border-radius: 9px;
}

.account-profile-avatar.anagrafica-logo-avatar img {
    border-radius: inherit;
    object-fit: contain;
    padding: 0.4rem;
}

.internal-chat-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.settings-permissions-table {
    width: 100%;
    border-collapse: collapse;
    color: rgba(255, 255, 255, 0.88);
}

.settings-permissions-table th,
.settings-permissions-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-permissions-table th {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    font-weight: 600;
}

.settings-permissions-table :is(th, td):not(:first-child) {
    width: 110px;
    text-align: center;
}

.settings-permissions-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.settings-content {
    min-width: 0;
}

.orders-content {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
}

.orders-tabs {
    display: flex;
    flex-shrink: 0;
    gap: 0.25rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.orders-suppliers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.65rem;
}

.orders-supplier,
.orders-history-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.orders-supplier:hover,
.orders-history-row:hover {
    border-color: rgba(120, 169, 207, 0.5);
    background: rgba(120, 169, 207, 0.12);
}

.orders-supplier>span:nth-child(2),
.orders-history-row>span:first-child {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 0.2rem;
    overflow-wrap: anywhere;
}

.orders-supplier small,
.orders-history-row small {
    color: rgba(255, 255, 255, 0.58);
}

.orders-supplier-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 6px;
    background: rgba(120, 169, 207, 0.16);
    color: #a9d2f0;
    font-size: 1.3rem;
}

.orders-items,
.orders-history {
    display: grid;
    gap: 0.4rem;
}

.orders-catalog-list {
    min-height: 320px;
    height: min(64vh, 680px);
    flex: 0 1 auto;
}

.orders-catalog-list>.filter-panel {
    max-height: min(36vh, 300px);
    flex-shrink: 0;
    overflow-y: auto;
}

.orders-catalog-grid {
    min-height: 0;
    height: 100% !important;
    flex: 1 1 auto;
}

.orders-detail-heading {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.orders-detail-heading strong {
    overflow-wrap: anywhere;
    font-size: 0.9rem;
}

.orders-quantity {
    width: 100%;
    min-width: 0;
    text-align: right;
}

.orders-detail-footer {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.orders-detail-footer .form-actions {
    margin: 0;
    padding: 0;
    border: 0;
}

.agenda-mobile-view {
    display: none;
}

.orders-article-dialog .entity-dialog-grid {
    grid-template-columns: minmax(0, 1fr);
}

.orders-article-dialog .filter-field {
    min-width: 0;
    margin: 0;
}

.orders-item-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.12rem;
}

.orders-item-copy small {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.7rem;
}

.orders-items {
    max-height: 60vh;
    overflow-y: auto;
}

.orders-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.orders-item label {
    color: rgba(255, 255, 255, 0.88);
    overflow-wrap: anywhere;
}

.orders-item input {
    min-width: 0;
    text-align: right;
}

.orders-status {
    color: #a9d2f0;
    font-size: 0.8rem;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .orders-suppliers {
        grid-template-columns: 1fr;
    }

    .orders-item {
        grid-template-columns: minmax(0, 1fr) 85px;
    }

    .orders-history-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .orders-article-dialog .entity-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

.anagrafica-map {
    width: 100%;
    height: 171px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: #1a2035;
}

.pag-est .anagrafica-map {
    height: 154px;
}

.anagrafica-map-dialog .anagrafica-map {
    height: min(60vh, 540px);
    min-height: 260px;
}

.settings-catalog-dialog .entity-dialog-grid {
    grid-template-columns: minmax(0, 1fr);
}

.settings-permissions-heading {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.address-results {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
}

.address-results button {
    display: block;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 20, 38, 0.75);
    color: #fff;
    text-align: left;
}

.address-results button:hover,
.address-results button:focus-visible {
    background: rgba(27, 79, 122, 0.8);
}

.attention-card-red {
    border-color: rgba(248, 113, 113, 0.6);
    background: rgba(153, 27, 27, 0.35);
}

.attention-card-yellow {
    border-color: rgba(250, 204, 21, 0.6);
    background: rgba(133, 77, 14, 0.35);
}

.attention-card-green {
    border-color: rgba(74, 222, 128, 0.6);
    background: rgba(22, 101, 52, 0.35);
}

.attention-card-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.attention-card-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.25rem;
}

.attention-card-value {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.attention-card-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.attention-card-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.attention-card-button:disabled {
    cursor: default;
}

.topbar-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    white-space: nowrap;
}

.topbar-brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-brand-desktop-hidden,
.mobile-menu-toggle,
.mobile-menu-backdrop {
    display: none;
}

@media (max-width: 640px),
(max-width: 820px) and (orientation: portrait) {
    .app-layout {
        height: 100vh;
        height: 100dvh;
    }

    .app-main .rz-tabview {
        min-width: 0;
        max-width: 100%;
    }

    .app-main .rz-tabview-nav {
        max-width: 100%;
        flex-wrap: wrap;
    }

    .rz-dialog {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }

    .app-layout .app-sidebar,
    .app-layout.sidebar-collapsed .app-sidebar {
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        min-width: 0;
        height: 70vh;
        max-height: 640px;
        height: min(70dvh, 640px);
        overflow: hidden;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    }

    .app-layout:not(.mobile-menu-open) .app-sidebar {
        display: none;
    }

    .app-topbar {
        height: 64px;
        padding: 8px 12px;
    }

    .app-topbar .header-icon-button {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .app-main .grid-toolbar .btn-action,
    .app-main .page-header-actions .btn-action,
    .rz-dialog .form-actions .btn-action {
        min-height: 44px;
    }

    .topbar-left {
        min-width: 0;
        gap: 0.5rem;
    }

    .topbar-right {
        flex-shrink: 0;
        gap: 0.25rem;
    }

    .topbar-brand-desktop-hidden,
    .mobile-menu-toggle {
        display: inline-flex;
    }

    .mobile-menu-toggle {
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .mobile-menu-open .mobile-menu-backdrop {
        position: fixed;
        z-index: 49;
        top: 64px;
        right: 0;
        bottom: 0;
        left: 0;
        inset: 64px 0 0;
        display: block;
        width: 100%;
        padding: 0;
        border: 0;
        background: rgba(0, 0, 0, 0.4);
    }

    .app-layout .sidebar-brand {
        display: none;
    }

    .app-layout .section-label {
        display: block;
    }

    .app-layout .sidebar-nav .nav-link-item>span:not(.nav-icon) {
        display: inline;
    }

    .app-layout .nav-link-item {
        justify-content: flex-start;
        padding: 0.65rem 1.25rem;
    }

    .app-layout.sidebar-collapsed .sidebar-nav {
        overflow: hidden;
    }

    .app-layout.sidebar-collapsed .nav-scroll {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .app-layout.sidebar-collapsed .section-label {
        display: block;
    }

    .app-layout.sidebar-collapsed .nav-link-item>span:not(.nav-icon) {
        display: inline;
    }

    .app-layout.sidebar-collapsed .nav-link-item {
        justify-content: flex-start;
        padding: 0.65rem 1.25rem;
        overflow: hidden;
    }

    .app-layout.sidebar-collapsed [data-tooltip]::before,
    .app-layout.sidebar-collapsed [data-tooltip]::after {
        display: none;
    }

    .nav-link-item {
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .app-topbar .header-icon-button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .topbar-right {
        gap: 0.125rem;
    }
}

@media (max-width: 760px) {
    .topbar-left {
        min-width: 0;
    }

    .topbar-right {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .topbar-brand-name {
        display: none;
    }
}

.invoice-import-dialog {
    display: flex;
    width: 100%;
    min-height: 0;
    max-height: 100%;
    flex-direction: column;
}

.invoice-import-scroll {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.1rem 1.25rem 0.5rem;
}

.invoice-import-top-message {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    gap: 0.25rem;
    margin-bottom: 0.65rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(248, 113, 113, 0.55);
    border-radius: 6px;
    background: #351c23;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.32);
    color: #fee2e2;
    font-size: 0.8rem;
}

.invoice-import-top-message strong {
    color: #fecaca;
    font-size: 0.86rem;
}

.invoice-import-top-message span {
    overflow-wrap: anywhere;
}

.invoice-import-heading,
.invoice-import-section-title {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.invoice-import-heading {
    margin-bottom: 0.9rem;
}

.invoice-import-heading>.ph,
.invoice-import-section-title>.ph {
    margin-top: 0.1rem;
    color: #78a9cf;
    font-size: 1.1rem;
}

.invoice-import-heading h1,
.invoice-import-section-title h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}

.invoice-import-heading h1 {
    font-size: 1.05rem;
}

.invoice-import-section-title h2 {
    font-size: 0.74rem;
    text-transform: uppercase;
}

.invoice-import-heading p,
.invoice-import-section-title p {
    margin: 0.18rem 0 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.75rem;
}

.invoice-import-section {
    min-width: 0;
    margin-bottom: 0.55rem;
    padding: 0.3rem 0 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.invoice-import-section-title {
    margin-bottom: 0.6rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(130, 130, 130, 0.68);
}

.invoice-import-file-input {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0.55rem;
    border: 1px dashed rgba(120, 169, 207, 0.42);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.8);
}

.invoice-import-file-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 0.45rem;
}

.invoice-import-file {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.035);
}

.invoice-import-file.is-active {
    border-color: rgba(120, 169, 207, 0.55);
    background: rgba(120, 169, 207, 0.09);
}

.invoice-import-file-select {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.55rem;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.invoice-import-file-select>.ph {
    flex-shrink: 0;
    color: #78a9cf;
}

.invoice-import-file-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.invoice-import-file-copy strong,
.invoice-import-file-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invoice-import-file-copy strong {
    font-size: 0.76rem;
    font-weight: 600;
    color: rgb(160, 160, 160);
    font-weight: 500;
}

.invoice-import-file-copy small {
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.67rem;
}

.invoice-import-file-check {
    padding: 0 0.6rem;
}

.invoice-import-status {
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.12rem 0.35rem;
    border-radius: 3px;
    font-size: 0.63rem;
}

.invoice-import-status.is-new {
    background: rgba(74, 222, 128, 0.12);
    color: #86efac;
}

.invoice-import-status.is-update {
    background: rgba(250, 204, 21, 0.12);
    color: #fde047;
}

.invoice-import-current-title {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0.15rem 0 0.65rem;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.74rem;
}

.invoice-import-current-title strong {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
}

.invoice-import-current-title small {
    margin-left: auto;
}

.invoice-import-vendor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
    gap: 0.65rem;
}

.invoice-import-source,
.invoice-import-match {
    min-width: 0;
    padding: 0.6rem 0.7rem;
    border-left: 2px solid rgba(120, 169, 207, 0.5);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.74rem;
}

.invoice-import-source>* {
    display: block;
}

.invoice-import-source strong {
    margin: 0.1rem 0 0.2rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.86rem;
}

.invoice-import-overline {
    display: block;
    margin-bottom: 0.12rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.64rem;
    font-weight: 600;
    text-transform: uppercase;
}

.invoice-import-match {
    display: flex;
    gap: 0.5rem;
}

.invoice-import-match>.ph {
    flex-shrink: 0;
    margin-top: 0.08rem;
    font-size: 1rem;
}

.invoice-import-match>div,
.invoice-import-match small {
    display: block;
}

.invoice-import-match strong {
    display: block;
    color: rgba(255, 255, 255, 0.9);
}

.invoice-import-match small {
    margin-top: 0.12rem;
    color: rgba(255, 255, 255, 0.57);
    font-size: 0.68rem;
}

.invoice-import-match.is-found>.ph {
    color: #86efac;
}

.invoice-import-match.is-new>.ph {
    color: #fbbf24;
}

.invoice-import-document-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem 0.75rem;
}

.invoice-import-document-grid strong {
    display: block;
    overflow-wrap: anywhere;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.8rem;
}

.invoice-import-document-grid strong small {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.invoice-import-document-description {
    grid-column: 1 / -1;
}

.invoice-import-amounts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

.invoice-import-amounts>div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0.65rem;
    border-left: 2px solid rgba(120, 169, 207, 0.5);
    background: rgba(255, 255, 255, 0.035);
}

.invoice-import-amounts span {
    color: rgba(255, 255, 255, 0.53);
    font-size: 0.66rem;
}

.invoice-import-amounts strong {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
}

.invoice-import-amounts .invoice-import-total {
    border-left-color: #78a9cf;
    background: rgba(120, 169, 207, 0.08);
}

.invoice-import-total strong {
    color: #b6d5ec;
}

.invoice-import-payment-grid {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(200px, 1fr) minmax(200px, 1fr);
    align-items: end;
    gap: 0.7rem;
}

.invoice-import-lines-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.invoice-import-lines {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
}

.invoice-import-lines th,
.invoice-import-lines td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    vertical-align: top;
}

.invoice-import-lines th {
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.65rem;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.invoice-import-lines .numeric {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.invoice-import-lines td:nth-child(3) {
    min-width: 260px;
    overflow-wrap: anywhere;
}

.registration-entry-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.registration-entry-section {
    margin-bottom: 1.25rem;
}

.registration-entry-fields .registration-entry-wide {
    grid-column: 1 / -1;
}

.registration-entry-amounts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.registration-entry-amounts>.filter-field {
    min-width: 0;
    padding: 0.1rem 0.25rem 0.35rem;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: transparent;
}

.registration-entry-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.invoice-import-results {
    display: grid;
    gap: 0.3rem;
    margin: 0.5rem 0;
    font-size: 0.73rem;
}

.invoice-import-results>div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.55rem;
}

.invoice-import-results .is-success span {
    color: #86efac;
}

.invoice-import-results .is-error span {
    color: #fca5a5;
}

.invoice-import-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #0c1929;
}

.invoice-import-actions>span {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.73rem;
}

.invoice-import-actions>div {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
}

@media (max-width: 760px) {
    .invoice-import-scroll {
        padding: 0.85rem 0.75rem 0.4rem;
    }

    .registration-entry-fields,
    .registration-entry-amounts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .invoice-import-vendor-grid,
    .invoice-import-document-grid,
    .invoice-import-amounts,
    .invoice-import-payment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .invoice-import-document-description {
        grid-column: 1 / -1;
    }

    .invoice-import-actions {
        align-items: stretch;
        flex-direction: column;
        padding: 0.65rem 0.75rem;
    }

    .invoice-import-actions>div {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {

    .table-responsive,
    .birthday-table-wrap,
    .invoice-import-lines-wrap {
        overflow-x: visible;
    }

    .birthday-table,
    .invoice-import-lines,
    .birthday-table tbody,
    .invoice-import-lines tbody {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .birthday-table thead,
    .invoice-import-lines thead {
        display: none;
    }

    .birthday-table tbody>tr,
    .invoice-import-lines tbody>tr {
        display: block;
        margin-bottom: 0.75rem;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.04);
    }

    .birthday-table tbody>tr>td,
    .invoice-import-lines tbody>tr>td {
        display: grid;
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(85px, 35%) minmax(0, 1fr);
        gap: 0.5rem;
        padding: 0.55rem 0.7rem;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .birthday-table tbody>tr>td::before,
    .invoice-import-lines tbody>tr>td::before {
        color: rgba(255, 255, 255, 0.6);
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 600;
    }

    .app-main .page-container {
        height: auto;
        min-height: 100%;
    }

    .dashboard .dash-header-actions {
        display: flex;
        width: 100%;
        gap: 1rem;
    }

    .dashboard .dash-header-actions>.btn-action {
        min-width: 0;
        min-height: 48px;
        flex: 1 1 0;
        justify-content: center;
        padding: 0.75rem 0.5rem;
        white-space: normal;
    }

    .page-container .page-header {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .page-container .page-header-actions,
    .page-container .invoice-page-actions {
        display: flex;
        width: 100%;
        min-width: 0;
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .page-container .page-header-actions>.btn-action,
    .page-container .page-header-actions>label,
    .page-container .page-header-actions>.input_box,
    .page-container .invoice-page-actions>.btn-action,
    .page-container .invoice-page-actions>.invoice-page-field {
        min-width: 0;
        flex: 1 1 calc(50% - 0.25rem);
    }

    .page-container .page-header-actions .btn-action,
    .page-container .invoice-page-actions .btn-action,
    .grid-toolbar .toolbar-actions>.btn-action,
    .page-category-filters .btn-action {
        justify-content: center;
        min-height: 44px;
        padding: 0.6rem 0.65rem;
        white-space: normal;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .page-container .btn-action>.ph {
        flex-shrink: 0;
    }

    .page-category-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .page-category-filters>.btn-action {
        min-width: 0;
        flex: 1 1 calc(50% - 0.25rem);
    }

    .page-category-filters.row {
        gap: 0;
    }

    .page-container .invoice-page-actions>.invoice-page-field {
        width: auto;
        flex: 1 1 190px;
    }

    .page-container .invoice-page-actions>.invoice-year-field {
        flex: 0 0 100px;
    }

    .orders-tabs {
        display: flex;
        width: 100%;
        gap: 0;
    }

    .orders-tabs>.scheda-tab {
        min-width: 0;
        min-height: 44px;
        flex: 1 1 0;
        padding: 0.65rem 0.5rem;
        white-space: normal;
        text-align: center;
    }

    .page-container .grid-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 0.5rem;
    }

    .grid-toolbar .toolbar-actions {
        display: flex;
        min-width: 0;
        flex: 1 1 auto;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 0.5rem;
    }

    .grid-toolbar .toolbar-actions>.btn-action,
    .grid-toolbar .toolbar-actions>.input_box {
        min-width: 0;
        flex: 1 1 calc(50% - 0.25rem);
    }

    .grid-toolbar>.anagrafica-export-actions {
        order: 1;
        flex: 1 0 100%;
    }

    .grid-export-button,
    button:has(> .ph-funnel),
    .filter-panel,
    .grid-export-error {
        display: none !important;
    }

    .grid-toolbar .toolbar-actions:has(> button:only-child > .ph-funnel) {
        display: none !important;
    }

    .grid-toolbar .anagrafica-export-actions,
    .grid-toolbar .anagrafica-export-actions .search-box {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }

    .app-main .grid-card {
        min-width: 0;
        flex: 0 0 auto;
        overflow: visible;
    }

    .app-main .registration-document-list {
        height: auto;
        min-height: 0;
        padding: 0 0.65rem;
    }

    .orders-page .orders-content,
    .orders-page .orders-catalog-list,
    .orders-page .orders-catalog-grid {
        height: auto !important;
        min-height: 0;
        max-height: none;
        flex: 0 0 auto;
    }

    .orders-page .orders-detail-footer {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .orders-page .orders-detail-footer .form-actions,
    .orders-page .orders-detail-footer .btn-action {
        width: 100%;
        justify-content: center;
    }

    .agenda-page>.page-header,
    .agenda-page>.agenda-desktop-view {
        display: none;
    }

    .agenda-mobile-view {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .agenda-mobile-year {
        color: rgba(255, 255, 255, 0.65);
        font-size: 1.1rem;
    }

    .agenda-mobile-month {
        margin: 0;
        font-size: 2rem;
        font-weight: 700;
    }

    .agenda-mobile-calendar {
        display: block;
        width: 100%;
        --rz-datepicker-calendar-width: 100%;
        --rz-datepicker-background-color: transparent;
        --rz-datepicker-border: 0;
    }

    .agenda-mobile-calendar,
    .agenda-mobile-calendar .rz-calendar-view,
    .agenda-mobile-calendar .rz-calendar-view-container {
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: inherit;
    }

    .agenda-mobile-calendar .rz-calendar-view-container {
        padding: 0;
    }

    .agenda-mobile-calendar .rz-calendar-header {
        display: none;
    }

    .agenda-mobile-calendar .rz-calendar-view {
        width: 100%;
        table-layout: fixed;
    }

    .agenda-mobile-calendar .rz-calendar-view th {
        height: 30px;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.7rem;
        font-weight: 500;
        text-align: center;
    }

    .agenda-mobile-calendar .rz-calendar-view td {
        position: relative;
        height: 48px;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: transparent;
        text-align: center;
    }

    .agenda-mobile-calendar td>.rz-state-default {
        display: inline-flex;
        width: 34px;
        height: 34px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: rgba(255, 255, 255, 0.92);
        font-size: 1.05rem;
        font-weight: 600;
    }

    .agenda-mobile-calendar .rz-calendar-other-month>.rz-state-default {
        color: rgba(255, 255, 255, 0.25);
    }

    .agenda-mobile-calendar td>.rz-calendar-today,
    .agenda-mobile-calendar [data-holiday="true"]>.rz-state-default {
        color: #ef9b92;
    }

    .agenda-mobile-calendar td>.rz-state-active {
        background: #fff !important;
        color: #111 !important;
    }

    .agenda-mobile-calendar .rz-calendar-month-view tbody tr:last-child:has(td):not(:has(td:not(.rz-calendar-other-month))) {
        display: none;
    }

    .agenda-mobile-calendar [data-has-events="true"]::after {
        position: absolute;
        bottom: 3px;
        left: calc(50% - 3px);
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #8dce72;
        content: "";
    }

    .agenda-mobile-calendar [data-holiday="true"] {
        color: #ef9b92;
    }

    .agenda-mobile-day-title {
        margin: 0;
        color: rgba(255, 255, 255, 0.65);
        font-size: 0.9rem;
        font-weight: 500;
    }

    .agenda-mobile-appointment {
        display: flex;
        width: 100%;
        min-height: 72px;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.85rem 0;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        background: transparent;
        color: inherit;
        font: inherit;
        text-align: left;
    }

    .agenda-mobile-appointment::before {
        width: 4px;
        height: 42px;
        flex: 0 0 4px;
        border-radius: 2px;
        background: #8dce72;
        content: "";
    }

    .agenda-mobile-appointment-copy {
        display: flex;
        min-width: 0;
        flex: 1;
        flex-direction: column;
        gap: 0.2rem;
    }

    .agenda-mobile-appointment-copy strong,
    .agenda-mobile-appointment-copy small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .agenda-mobile-appointment small,
    .agenda-mobile-empty {
        color: rgba(255, 255, 255, 0.5);
    }

    .agenda-mobile-time {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        gap: 0.2rem;
        text-align: right;
    }

    .anagrafica-map-action {
        display: none !important;
    }

    .anagrafica-page .anagrafica-header-actions {
        width: 100%;
        margin-left: 0;
    }

    .anagrafica-page .anagrafica-header-actions .btn-action-primary {
        width: 100%;
        justify-content: center;
    }

    .anagrafica-page .page-category-filters .btn-action {
        justify-content: center;
        min-height: 44px;
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    .anagrafica-page .anagrafica-grid-toolbar {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .anagrafica-grid-toolbar .anagrafica-export-actions {
        order: -1;
        flex: 1 1 auto;
    }

    .anagrafica-grid-toolbar .toolbar-actions {
        width: auto;
        flex: 0 0 auto;
    }

    .registration-document-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .registration-document-actions .registration-document-type-filter {
        flex: 1 1 190px;
        width: auto;
        min-width: 0;
    }

    .registration-document-actions .registration-document-year-filter {
        flex: 0 0 100px;
        width: 100px;
    }

    .modern-grid.rz-datatable-reflow {
        height: auto !important;
        min-height: 0;
        flex: 0 0 auto;
        overflow: visible !important;
    }

    .modern-grid.rz-datatable-reflow .rz-data-grid-data {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .modern-grid.rz-datatable-reflow .rz-grid-table {
        display: block;
        width: 100% !important;
        max-width: 100%;
        table-layout: auto !important;
    }

    .modern-grid.rz-datatable-reflow colgroup {
        display: none;
    }

    .modern-grid.rz-datatable-reflow thead {
        display: none !important;
    }

    .modern-grid.rz-datatable-reflow .rz-data-row {
        display: block;
        margin-bottom: 0.75rem;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.04) !important;
    }

    .modern-grid.rz-datatable-reflow .rz-data-row>td {
        display: grid !important;
        width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: minmax(85px, 35%) minmax(0, 1fr);
        align-items: start;
        gap: 0.5rem;
        padding: 0.55rem 0.7rem !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .modern-grid.rz-datatable-reflow .rz-data-row>td>.rz-column-title {
        display: block;
        color: rgba(255, 255, 255, 0.6) !important;
        font-size: 0.75rem;
        font-weight: 600;
        overflow-wrap: anywhere;
    }

    .modern-grid.rz-datatable-reflow .rz-data-row>td>.rz-cell-data {
        display: block;
        min-width: 0;
        overflow: visible;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .modern-grid.rz-datatable-reflow .rz-datatable-tfoot {
        position: static !important;
        display: block;
        width: 100%;
        max-width: 100%;
        background: transparent !important;
        box-shadow: none !important;
    }

    .modern-grid.rz-datatable-reflow .rz-datatable-tfoot tr {
        position: static !important;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        padding: 0.75rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .modern-grid.rz-datatable-reflow .rz-datatable-tfoot td {
        position: static !important;
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0.4rem 0.6rem !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-align: right !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .modern-grid.rz-datatable-reflow .rz-datatable-tfoot td:has(> .rz-column-footer:empty),
    .modern-grid.rz-datatable-reflow .rz-datatable-tfoot td:has(.grid-total-heading) {
        display: none;
    }

    .modern-grid .grid-total {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.95rem;
        font-weight: 600;
    }

    .modern-grid .grid-total::before {
        content: attr(data-label);
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.75rem;
        font-weight: 400;
    }

    .registration-document-grid.rz-datatable-reflow .rz-data-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .registration-document-grid.rz-datatable-reflow .rz-data-row>td {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.2rem;
        padding: 0.55rem 0.7rem !important;
    }

    .registration-document-grid.rz-datatable-reflow .rz-data-row>td:nth-child(3) {
        order: -1;
        grid-column: 1 / -1;
    }

    .registration-document-grid.rz-datatable-reflow .rz-data-row>td:nth-child(3)>.rz-column-title {
        display: none;
    }

    .registration-document-grid .registration-document-supplier-cell>span {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .registration-document-grid.rz-datatable-reflow .rz-data-row>td:nth-child(6),
    .registration-document-grid.rz-datatable-reflow .rz-data-row>td:nth-child(7) {
        background: rgba(120, 169, 207, 0.08) !important;
    }

    .registration-document-grid.rz-datatable-reflow .rz-data-row>td:last-child {
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .rz-dialog .anagrafica-embedded-grid,
    .rz-dialog .invoice-embedded-grid,
    .rz-dialog .scheda-tab-content.is-grid-tab {
        overflow-y: auto;
    }
}

@media (max-width: 480px) {

    .registration-entry-fields,
    .registration-entry-amounts {
        grid-template-columns: minmax(0, 1fr);
    }

    .invoice-import-vendor-grid,
    .invoice-import-document-grid,
    .invoice-import-amounts,
    .invoice-import-payment-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .invoice-import-document-description {
        grid-column: auto;
    }
}