@media screen {
    .sv-refined body.sv-app { --sv-shell-width: 1320px; --sv-shell-gutter: 40px; }
    .sv-refined body.sv-app.sv-legacy-page { padding-top: 0; padding-left: 0; padding-right: 0; }
    .sv-refined body.sv-app > .sv-page {
        width: min(calc(100% - var(--sv-shell-gutter)), var(--sv-shell-width));
        max-width: none; margin: 0 auto; padding-top: 0;
    }
    .sv-refined body.sv-legacy-page > #settingcontainer {
        width: min(calc(100% - var(--sv-shell-gutter)), var(--sv-shell-width)); max-width: none;
    }
    .sv-refined body.sv-app > .sv-app-header {
        position: relative; top: auto; display: flex; flex-direction: row;
        width: min(calc(100% - var(--sv-shell-gutter)), var(--sv-shell-width));
        max-width: none; min-height: 82px; margin: 18px auto; padding: 12px 16px;
        align-items: center; justify-content: space-between; gap: 20px;
        border: 1px solid #dce5ea; border-radius: 20px;
        color: #193347; background: #fff; box-shadow: 0 3px 12px rgba(22,52,69,.055);
        text-align: left; line-height: 1.4; backdrop-filter: none;
    }
    .sv-refined body.sv-app .sv-app-header .sv-brand {
        display: flex; align-items: center; flex: 1 1 auto; gap: 11px; min-width: 0;
        color: inherit; text-decoration: none; justify-content: flex-start; text-align: left;
    }
    .sv-refined body.sv-app .sv-app-header .sv-logo {
        width: 48px; height: 48px; flex: 0 0 48px; padding: 0;
        object-fit: contain; border: 0; border-radius: 10px; box-shadow: none;
    }
    .sv-refined body.sv-app .sv-app-header .sv-brand-copy { min-width: 0; }
    .sv-refined body.sv-app .sv-app-header .sv-brand-kicker {
        display: block; margin: 0 0 3px; color: #126578; font-size: 10px;
        line-height: 1.3; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    }
    .sv-refined body.sv-app .sv-app-header .sv-brand-title {
        margin: 0; color: #193347; font-size: 19px; line-height: 1.25; font-weight: 700;
        text-transform: none; letter-spacing: 0; text-shadow: none; overflow-wrap: anywhere;
    }
    .sv-refined body.sv-app .sv-app-header .sv-top-actions {
        display: flex; flex: 0 0 auto; width: auto; flex-direction: row; flex-wrap: nowrap;
        align-items: center; justify-content: flex-end; gap: 8px; min-width: 0;
    }
    .sv-refined body.sv-app .sv-app-header .sv-structure-switch {
        display: inline-flex; flex: 0 0 auto; order: 0; width: auto; min-height: 44px;
        align-items: center; justify-content: center; gap: 7px; margin: 0; padding: 10px 12px;
        border: 1px solid #c8dee3; border-radius: 12px; background: #eff7f8;
        color: #126578; box-shadow: none; font-size: 13px; font-weight: 700; line-height: 1.3;
        white-space: nowrap; text-decoration: none; animation: none; transform: none;
    }
    .sv-refined body.sv-app .sv-app-header .sv-structure-switch:hover { background: #e2f0f3; }
    .sv-refined body.sv-app .sv-app-header .sv-home-button { background: #126578; border-color: #126578; color: #fff; }
    .sv-refined body.sv-app .sv-app-header .sv-home-button:hover { background: #0c4e60; border-color: #0c4e60; color: #fff; }
    .sv-refined body.sv-app .sv-app-header .sv-site-switch {
        background: linear-gradient(135deg, var(--sv-primary, #1598aa), var(--sv-primary-dark, #126578));
        border-color: transparent; color: #fff;
    }
    .sv-refined body.sv-app .sv-app-header .sv-site-switch:hover {
        background: linear-gradient(135deg, var(--sv-primary-dark, #126578), #0c4e60); color: #fff;
    }
    .sv-refined body.sv-app .sv-app-header .sv-notifications { flex: 0 0 auto; order: 0; width: auto; }
    .sv-refined body.sv-app .sv-app-header .svn-trigger {
        display: flex; width: auto; min-height: 48px; margin: 0; padding: 5px 9px 5px 6px;
        align-items: center; justify-content: center; gap: 7px; border-radius: 13px;
        font-size: 13px; line-height: 1.3; box-shadow: none;
    }
    .sv-refined body.sv-app .sv-app-header .svn-trigger-label { font-size: 13px; font-weight: 700; }
    .sv-refined body.sv-app .sv-app-header .svn-bell { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; }
    .sv-refined body.sv-app .sv-app-header .sv-user-box {
        display: flex; flex: 0 1 auto; order: 0; width: auto; min-width: 0; margin: 0;
        align-items: center; gap: 8px; padding: 5px 6px; border: 1px solid #dce5ea;
        border-radius: 13px; background: #fff; box-shadow: none;
    }
    .sv-refined body.sv-app .sv-app-header .sv-user-avatar { width: 32px; height: 32px; flex: 0 0 32px; font-size: 14px; }
    .sv-refined body.sv-app .sv-app-header .sv-user-meta { display: grid; flex: 1 1 auto; min-width: 0; gap: 2px; }
    .sv-refined body.sv-app .sv-app-header .sv-user-meta strong {
        display: block; max-width: 180px; color: #193347; font-size: 13px; font-weight: 700;
        line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .sv-refined body.sv-app .sv-app-header .sv-user-meta small {
        display: block; max-width: 220px; color: #52677a; font-size: 11px; font-weight: 400;
        line-height: 1.4; white-space: normal;
    }
    .sv-refined body.sv-app .sv-app-header .sv-logout-button {
        display: inline-flex; width: auto; flex: 0 0 auto; min-width: 44px; min-height: 44px;
        align-items: center; justify-content: center; margin: 0; padding: 8px 10px;
        color: #193347; background: #f0f4f6; border: 0; border-radius: 9px;
        font-size: 12px; line-height: 1.3; font-weight: 700; text-decoration: none; box-shadow: none;
    }
    .sv-refined body.sv-app .sv-app-header .sv-logout-button:hover { background: #e3ebef; }
    .sv-refined body.sv-app .sv-list-main { width: 100%; margin-left: 0; }
    .sv-refined body.sv-app > .sv-app-header--compact { min-height: 64px; padding-top: 7px; padding-bottom: 7px; }
    .sv-refined body.sv-app > .sv-app-header--compact .sv-logo { width: 36px; height: 36px; flex-basis: 36px; }
    .sv-refined body.sv-app.sv-signature-with-header {
        display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
        height: 100vh; height: 100dvh; padding: 0 0 12px; overflow: auto;
    }
    .sv-refined body.sv-app.sv-signature-with-header > .sv-app-header { flex: 0 0 auto; margin-top: 10px; margin-bottom: 10px; }
    .sv-refined body.sv-app.sv-signature-with-header > .signature-pad {
        flex: 1 1 auto; width: min(calc(100% - var(--sv-shell-gutter)), 900px);
        height: auto; min-height: 220px; max-height: 650px; max-width: none; margin: 0 auto;
    }
    .sv-refined body.sv-app :is(.sv-floating-tools, .sv-clinical-floating-tools) {
        right: max(12px, calc((100vw - 1320px) / 2 - 96px));
    }
}
@media screen and (min-width: 1051px) {
    .sv-refined body.sv-app .sv-list-table-wrap { max-height: min(70vh, 900px); }
}
@media screen {
    .sv-refined body.sv-app :is(.sv-floating-tools, .sv-clinical-floating-tools).sv-tools-inline {
        display: grid; grid-template-columns: repeat(var(--sv-ui-tool-count, 4), minmax(0, 1fr)) !important;
        position: sticky !important; top: 8px !important; bottom: auto !important; left: auto !important; right: auto !important;
        width: min(calc(100% - var(--sv-shell-gutter)), var(--sv-shell-width));
        margin: 0 auto 16px; gap: 8px; transform: none !important;
        opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
        z-index: 25; padding: 5px; background: #f1f7f9; border-radius: 16px;
    }
    .sv-refined body.sv-app .sv-tools-inline :is(.sv-floating-trigger, .sv-clinical-floating-trigger) {
        width: auto !important; min-height: 56px; padding: 7px 9px !important;
        border-radius: 14px !important; font-size: 12px !important;
    }
    .sv-refined body.sv-app .sv-tools-inline :is(.sv-floating-trigger, .sv-clinical-floating-trigger) i { width: 27px; height: 27px; }
    .sv-refined body.sv-app.sv-ui-has-tools :is(input, select, textarea, [id]) { scroll-margin-top: 108px; }
    .sv-refined body.sv-app.sv-ui-keyboard-open .sv-tools-inline { visibility: hidden !important; pointer-events: none !important; }
}
@media screen and (max-width: 1100px) {
    .sv-refined body.sv-app > .sv-app-header:not(.sv-app-header--compact) { flex-wrap: wrap; gap: 12px; }
    .sv-refined body.sv-app .sv-app-header:not(.sv-app-header--compact) .sv-brand { flex-basis: 100%; }
    .sv-refined body.sv-app .sv-app-header:not(.sv-app-header--compact) .sv-top-actions { flex: 1 1 100%; justify-content: flex-start; }
    .sv-refined body.sv-app .sv-app-header .sv-user-box { margin-left: auto; }
}
@media screen and (max-width: 600px) {
    .sv-refined body.sv-app { --sv-shell-gutter: 20px; }
    .sv-refined body.sv-app > .sv-app-header { margin-top: 10px; margin-bottom: 14px; padding: 12px; gap: 10px; border-radius: 17px; }
    .sv-refined body.sv-app .sv-app-header .sv-logo { width: 40px; height: 40px; flex-basis: 40px; }
    .sv-refined body.sv-app .sv-app-header .sv-brand-title { font-size: 17px; }
    .sv-refined body.sv-app .sv-app-header .sv-top-actions { flex-wrap: wrap; gap: 7px; }
    .sv-refined body.sv-app .sv-app-header .sv-notifications { margin-left: auto; }
    .sv-refined body.sv-app .sv-app-header .sv-user-box { flex: 1 1 100%; width: 100%; margin-left: 0; }
    .sv-refined body.sv-app .sv-app-header .sv-user-meta strong { max-width: none; }
    .sv-refined body.sv-app .sv-app-header .sv-site-switch { order: 1; flex: 1 1 100%; min-height: 40px; }
    .sv-refined body.sv-app .sv-app-header .sv-user-box { order: 2; }
    .sv-refined body.sv-app .sv-app-header--compact .sv-top-actions { flex: 0 0 auto; width: auto; }
}
@media print {
    .sv-app-header, .sv-tools-inline { display: none !important; }
}
@media screen and (min-width: 1024px) and (pointer: fine) {
    .sv-refined body.sv-app.sv-desktop-wide-tables { --sv-shell-width: 1760px; --sv-shell-gutter: 32px; }
    .sv-refined .sv-desktop-wide-tables .sv-list-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sv-refined .sv-desktop-wide-tables .sv-list-table { table-layout: fixed; }
    .sv-refined .sv-desktop-wide-tables .sv-list-table :is(th, td) { padding: 11px 8px; white-space: normal; overflow-wrap: anywhere; }
    .sv-refined .sv-desktop-wide-tables .sv-list-table thead th { letter-spacing: 0; }
    .sv-refined .sv-desktop-wide-tables .sv-list-table thead button { gap: 4px; }
    .sv-refined .sv-desktop-wide-tables .sv-list-table th:nth-child(1) { width: 40px; }
    .sv-refined .sv-desktop-wide-tables .sv-list-table th:nth-child(2) { width: 76px; }
    .sv-refined .sv-desktop-wide-tables .sv-list-table th:nth-child(4) { width: 88px; }
    .sv-refined .sv-desktop-wide-tables .sv-list-table th:nth-child(5) { width: 108px; }
    .sv-refined .sv-desktop-wide-tables .sv-list-table th:nth-child(6) { width: 100px; }
    .sv-refined .sv-desktop-wide-tables .sv-list-name { min-width: 0; }
    .sv-refined .sv-desktop-wide-tables .sv-list-code { max-width: 100%; }
    .sv-refined .sv-desktop-wide-tables.sv-scadenze-page #settingcontainer { padding: 20px 16px; }
    .sv-refined .sv-desktop-wide-tables .sv-scadenze-panel { padding: 12px; }
    .sv-refined .sv-desktop-wide-tables .sv-scadenze-panel table.table { min-width: 0; width: 100%; }
    .sv-refined .sv-desktop-wide-tables .sv-scadenze-panel table.table :is(th, td) {
        padding: 10px 8px; white-space: normal; overflow-wrap: anywhere;
    }
    .sv-refined .sv-desktop-wide-tables .sv-scadenze-panel .btn { white-space: normal; }
}
@media screen and (min-width: 1024px) and (max-width: 1199px) and (pointer: fine) {
    .sv-refined .sv-desktop-wide-tables .sv-list-main { grid-template-columns: minmax(0, 1fr); }
    .sv-refined .sv-desktop-wide-tables .sv-scadenze-grid > .col-lg-6 { flex: 0 0 100%; max-width: 100%; }
}
@media screen and (min-width: 1024px) and (max-width: 1599px) and (pointer: fine) {
    .sv-refined .sv-desktop-wide-tables .sv-scadenze-grid > .col-xl-6 { flex: 0 0 100%; max-width: 100%; }
}
