/* Shared visual refinements deliberately restricted to screens. */
@media screen {
    .sv-refined {
        --sv-shadow: 0 10px 28px rgba(22, 52, 69, .075);
        --sv-shadow-soft: 0 3px 12px rgba(22, 52, 69, .055);
        --sv-radius: 22px;
        --sv-border: #dce5ea;
        --sv-muted: #52677a;
        --sv-ink: #193347;
        --sv-ui-font: Arial, Helvetica, sans-serif;
        scroll-padding-top: 105px;
    }
    .sv-refined body.sv-app {
        color: var(--sv-ink);
        font-family: var(--sv-ui-font);
        line-height: 1.5;
        background: linear-gradient(160deg, #f1f8fa, #f6f8fa 48%, #edf4f6);
        -webkit-text-size-adjust: 100%;
    }
    .sv-refined body.sv-site-lampedusa { background: linear-gradient(160deg, #f2f8fc, #f8f9f7 48%, #edf4f8); }
    .sv-refined body.sv-app :is(button, input, select, textarea) { font-family: inherit; }
    .sv-refined body.sv-app :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
        outline: 3px solid var(--sv-primary-dark, #0d7780) !important;
        outline-offset: 3px;
    }
    .sv-refined body.sv-app :is(button, a, input, select, textarea) { touch-action: manipulation; }
    .sv-refined body.sv-app :is(h1, h2, h3, h4) { text-shadow: none; overflow-wrap: anywhere; }
    .sv-refined .sv-page { width: min(calc(100% - 40px), 1320px); padding-top: 18px; }
    .sv-refined .sv-topbar {
        gap: 16px; padding: 12px 16px; border-color: var(--sv-border);
        border-radius: 22px; background: rgba(255, 255, 255, .97); box-shadow: var(--sv-shadow-soft);
    }
    .sv-refined .sv-brand { gap: 11px; }
    .sv-refined .sv-logo { width: 48px; height: 48px; border-radius: 12px; box-shadow: none; }
    .sv-refined .sv-brand-kicker { font-size: .66rem; letter-spacing: .065em; font-weight: 700; }
    .sv-refined .sv-brand-title { font-size: clamp(1.1rem, 1.7vw, 1.5rem); font-weight: 750; line-height: 1.2; }
    .sv-refined .sv-top-actions { gap: 8px; flex-wrap: wrap; flex-direction: row; }
    .sv-refined .sv-topbar > * { min-width: 0; }
    .sv-refined .sv-user-box { border-radius: 15px; padding: 5px 7px; gap: 8px; box-shadow: none; }
    .sv-refined .sv-user-avatar { width: 32px; height: 32px; font-weight: 700; background: var(--sv-primary-dark); }
    .sv-refined .sv-user-meta { gap: 4px; }
    .sv-refined .sv-user-meta strong { font-weight: 700; font-size: .85rem; max-width: 170px; }
    .sv-refined .sv-user-meta small { font-weight: 400; font-size: .73rem; }
    .sv-refined .sv-logout-button { min-height: 40px; padding: 8px 12px; border-radius: 11px; font-size: .82rem; font-weight: 700; }
    .sv-refined .sv-structure-switch { min-height: 44px; padding: 10px 13px; border-radius: 13px; box-shadow: none; font-size: .84rem; font-weight: 700; }
    .sv-refined .sv-notifications .svn-trigger { min-height: 48px; border-radius: 14px; padding: 5px 10px 5px 6px; gap: 8px; box-shadow: none; }
    .sv-refined .sv-notifications .svn-trigger-label { font-size: .85rem; font-weight: 700; }
    .sv-refined .sv-notifications .svn-bell { width: 31px; height: 31px; border-radius: 9px; }
    .sv-refined .svn-panel { border-radius: 20px; }
    .sv-refined .svn-panel .svn-section-title { font-weight: 700; }
    .sv-refined .svn-message-patient { line-height: 1.45; }
    .sv-refined .svn-message-actions :is(a, button) { min-height: 42px; display: inline-flex; align-items: center; }
    .sv-refined .svn-panel .svn-refresh, .sv-refined .svn-panel .svn-close { min-height: 42px; }
    .sv-refined .svn-panel .svn-close { min-width: 42px; }
    .sv-refined :is(.sv-panel, .sv-ops-panel, .sv-dashboard-start, .sv-list-card, .svpn-area) { border-color: var(--sv-border); box-shadow: var(--sv-shadow-soft); }
    .sv-refined :is(.sv-panel-title, .sv-search-title-row strong, .sv-action-title, .sv-list-card-head h2) { font-weight: 750; }
    .sv-refined :is(.sv-step-label, .sv-start-kicker, .svpn-kicker) { font-weight: 700; letter-spacing: .065em; }
    .sv-refined :is(.sv-pill-button, .sv-submit-button, .sv-submit-actions .btn, .sv-legacy-page .btn) { border-radius: 13px; box-shadow: none; font-weight: 700; min-height: 44px; }
    .sv-refined :is(.sv-home-bounce, .sv-home-button):hover { animation: none !important; }
    .sv-refined :is(.sv-action-card, .sv-pill-button, .sv-submit-button, .sv-structure-switch):hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22, 52, 69, .09); }
    .sv-refined .sv-dashboard-start { padding: 20px; border-radius: 22px; }
    .sv-refined .sv-start-summary { gap: 20px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--sv-border); }
    .sv-refined .sv-start-location { padding: 10px 14px; border-width: 1px; border-radius: 15px; box-shadow: none; }
    .sv-refined .sv-start-location h2 { font-size: 1.75rem; font-weight: 750; }
    .sv-refined .sv-location-mark-compact { width: 40px; height: 40px; border-radius: 12px; }
    .sv-refined .sv-start-stats { gap: 7px; }
    .sv-refined .sv-start-stats :is(span, button) { padding: 8px 12px; border-radius: 12px; box-shadow: none; font-size: .78rem; font-weight: 400; }
    .sv-refined .sv-start-stats strong { font-size: 1.2rem; font-weight: 750; margin-bottom: 3px; }
    .sv-refined .sv-start-workspace { grid-template-columns: minmax(290px, .78fr) minmax(0, 1.22fr); gap: 22px; }
    .sv-refined :is(.sv-start-search, .sv-start-actions) { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
    .sv-refined .sv-search-title-row { margin-bottom: 12px; gap: 8px; flex-wrap: wrap; }
    .sv-refined .sv-search-title-row small { font-weight: 400; }
    .sv-refined .sv-search-field .form-control { border-radius: 13px; border-width: 1px; min-height: 50px; font-weight: 400; font-size: 1rem; }
    .sv-refined .sv-search-field .form-control::placeholder { font-weight: 400; color: #64778a; }
    .sv-refined .sv-search-filters { border-radius: 12px; box-shadow: none; gap: 4px; }
    .sv-refined .sv-search-filters button { border-radius: 9px; font-weight: 700; min-height: 40px; }
    .sv-refined .sv-search-status { color: var(--sv-muted); font-weight: 400; line-height: 1.5; }
    .sv-refined .sv-clear-search { width: 40px; height: 40px; }
    .sv-refined .sv-fast-actions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .sv-refined .sv-fast-actions-grid .sv-action-card { min-height: 94px; padding: 14px 11px; gap: 10px; border: 1px solid var(--sv-border) !important; border-radius: 15px !important; box-shadow: none; }
    .sv-refined .sv-action-card::before, .sv-refined .sv-action-card::after { display: none; }
    .sv-refined .sv-action-card .sv-action-title { line-height: 1.25; }
    .sv-refined .sv-action-card .sv-action-text { color: #54697a; font-weight: 400; line-height: 1.4; }
    .sv-refined .sv-action-card.is-primary .sv-action-text { color: rgba(255, 255, 255, .92); }
    .sv-refined .sv-action-card .sv-action-icon { width: 38px; height: 38px; min-width: 38px; padding: 0 2px; white-space: nowrap; border-radius: 12px; box-shadow: none; }
    .sv-refined .sv-fast-actions-grid .sv-action-top { position: static; }
    .sv-refined :is(.sv-action-icon, .sv-location-mark, .sv-list-hero-mark) svg { display: block; width: 22px; height: 22px; }
    .sv-refined :is(.sv-location-mark, .sv-list-hero-mark) svg { width: 27px; height: 27px; }
    .sv-refined .sv-action-card .sv-action-badge { min-width: 26px; height: 23px; font-size: .71rem; right: 6px; top: 4px; font-weight: 700; }
    .sv-refined .sv-patient-card { border-radius: 15px; box-shadow: none; }
    .sv-refined .sv-patient-card h3 { font-weight: 750; line-height: 1.3; }
    .sv-refined .sv-patient-data strong { font-weight: 500; }
    .sv-refined .sv-patient-results { scrollbar-width: thin; scrollbar-color: #9db7c2 transparent; }
    .sv-refined .sv-open-patient { min-height: 44px; border-radius: 12px; font-weight: 700; }
    .sv-refined :is(.sv-status-badge, .sv-tipo-badge, .sv-structure-badge, .sv-patient-code) { font-weight: 700; }
    .sv-refined :is(.sv-patient-hero, .vm-hero, .sv-social-hero, .sv-print-compact) { border-radius: 20px; padding: 18px 20px; box-shadow: none; }
    .sv-refined :is(.sv-patient-hero, .vm-hero, .sv-social-hero, .sv-print-compact) h1 { font-weight: 750; line-height: 1.2; }
    .sv-refined :is(.sv-qr-box, .vm-qr-box) { box-shadow: none; border-radius: 14px; }
    .sv-refined :is(.sv-action-toolbar, .sv-inline-actions) { gap: 8px; }
    .sv-refined :is(.sv-field, .sv-field-card) { min-width: 0; }
    .sv-refined :is(.sv-field, .sv-field-card) :is(input, select, textarea) { border-width: 1px; border-radius: 12px; font-weight: 400; min-width: 0; }
    .sv-refined :is(.sv-field, .sv-field-card) label { font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.4; }
    .sv-refined .sv-field-card { border-radius: 15px; box-shadow: none; }
    .sv-refined .sv-form-section { box-shadow: none; border-radius: 20px; }
    .sv-refined .sv-form-section-head h2 { font-weight: 750; }
    .sv-refined .sv-list-hero { border-width: 1px; box-shadow: none; border-radius: 20px; }
    .sv-refined .sv-list-hero h1 { font-size: 2rem; font-weight: 750; }
    .sv-refined .sv-list-kpi { box-shadow: none; border-radius: 15px; }
    .sv-refined .sv-list-kpi strong { font-weight: 750; }
    .sv-refined .sv-list-search-panel { border-radius: 20px; box-shadow: none; }
    .sv-refined .sv-list-search { border-width: 1px; border-radius: 12px; }
    .sv-refined .sv-list-search input { font-size: 1rem; font-weight: 400; }
    .sv-refined .sv-list-filter-buttons { gap: 4px; border-radius: 12px; }
    .sv-refined .sv-list-filter-buttons button { border-radius: 9px; font-weight: 700; min-height: 44px; }
    .sv-refined .sv-ops-row { box-shadow: none; border-radius: 14px; }
    .sv-refined .sv-ops-row strong, .sv-refined .sv-ops-row b { font-weight: 750; }
    .sv-refined .sv-list-table :is(td, th) { line-height: 1.45; }
    .sv-refined .sv-list-table td { font-weight: 400; }
    .sv-refined .sv-list-name { font-weight: 700 !important; }
    .sv-refined .sv-list-name a { color: inherit; text-decoration: none; }
    .sv-refined .sv-list-name a:hover { text-decoration: underline; }
    .sv-refined .sv-list-table thead button { min-height: 36px; }
    .sv-refined .sv-list-table tbody tr:focus-within { background: #e9f5f6; }
    .sv-refined .sv-ui-table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #9db7c2 #f0f5f7; -webkit-overflow-scrolling: touch; }
    .sv-refined .sv-ui-scroll-hint { margin: 4px 0 8px; color: #52677a; font-size: .76rem; text-align: right; }
    .sv-refined .sv-ui-scroll-hint[hidden] { display: none; }
    .sv-refined :is(.table, .sv-list-table) :is(th, td) { vertical-align: middle; }
    .sv-refined .table thead th { line-height: 1.4; }
    .sv-refined .col-lg-4 > .table td:hover { transform: none; box-shadow: none; }
    .sv-refined .sv-ui-table-filter { display: grid; gap: 6px; max-width: 440px; margin: 18px 0; text-align: left; }
    .sv-refined .sv-ui-table-filter label { margin: 0; color: var(--sv-ink); font-size: .88rem; font-weight: 700; }
    .sv-refined .sv-ui-table-filter input { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #bdced8; border-radius: 12px; font-size: 1rem; background: #fff; }
    .sv-refined .sv-ui-table-filter small, .sv-refined .sv-ui-empty { color: var(--sv-muted); font-size: .84rem; line-height: 1.5; }
    .sv-refined .sv-ui-empty { padding: 18px; text-align: center; }
    .sv-refined .sv-ui-empty[hidden] { display: none; }
    .sv-refined .sv-ui-skip { position: fixed; top: 8px; left: 12px; z-index: 2000; padding: 12px 18px; border-radius: 12px; color: #fff; background: #124e61; transform: translateY(-160%); }
    .sv-refined .sv-ui-skip:focus { transform: none; }
    .sv-refined :is(.sv-floating-trigger, .sv-clinical-floating-trigger) { box-shadow: var(--sv-shadow-soft) !important; font-weight: 700 !important; min-width: 0; }
    .sv-refined :is(.sv-floating-trigger, .sv-clinical-floating-trigger) i { box-shadow: none; border-radius: 10px; }
    .sv-refined :is(.sv-floating-panel, .sv-clinical-quick-panel) { border-radius: 20px; overscroll-behavior: contain; }
    .sv-refined :is(.sv-floating-panel-head, .sv-clinical-quick-panel-head) button { min-width: 44px; min-height: 44px; }
    .sv-refined body.sv-legacy-page { padding: clamp(12px, 2vw, 24px); height: auto; user-select: auto; }
    .sv-refined .sv-legacy-page .space { border: 1px solid var(--sv-border); border-radius: 20px; box-shadow: var(--sv-shadow-soft); background: #fff; }
    .sv-refined .sv-legacy-page .space img { width: 48px !important; height: 48px !important; box-shadow: none; }
    .sv-refined .sv-legacy-page .space::after { font-weight: 700; font-size: 1rem; }
    .sv-refined .sv-legacy-page :is(#settingcontainer, .containerlogin) { border: 1px solid var(--sv-border); box-shadow: var(--sv-shadow-soft); border-radius: 22px; }
    .sv-refined .sv-legacy-page h1 { font-size: clamp(1.45rem, 2.7vw, 2rem); font-weight: 750; line-height: 1.3; }
    .sv-refined .sv-legacy-page :is(h2, h3) { font-weight: 700; }
    .sv-refined .sv-legacy-page :is(input, select, textarea) { font-weight: 400; border-width: 1px; }
    .sv-refined .sv-legacy-page table.table { box-shadow: none; }
    .sv-refined .sv-legacy-page table.table :is(th, td) { line-height: 1.45; font-weight: 400; }
    .sv-refined .sv-legacy-page table.table th { font-weight: 700; }
    .sv-refined .sv-legacy-page table .btn { font-weight: 700; }
    .sv-refined .svpn-area { border-radius: 20px; }
    .sv-refined .svpn-area :is(h2, h3, .svpn-mode, .svpn-send) { font-weight: 700; }
    .sv-refined .svpn-compose { border-radius: 15px; }
    .sv-refined .svpn-area textarea { line-height: 1.65; }
    .sv-refined .svpn-area :is(.svpn-reload, .svpn-read, .svpn-more, .svpn-mode) { min-height: 44px; }
    .sv-refined .sv-legacy-login .containerlogin { margin-top: 20px; }
    .sv-refined .sv-legacy-login label { margin-bottom: 5px; font-size: .9rem; font-weight: 700; }
    .sv-refined .sv-legacy-login .form-control { margin-left: 0; margin-right: 0; }
    .sv-refined .sv-legacy-login .containerlogin .btn { width: 100%; }
    .sv-refined .sv-ui-keyboard-open :is(.sv-floating-tools, .sv-clinical-floating-tools, .vm-savebar-clone, .sv-floating-save, .sv-save-floating) { visibility: hidden !important; pointer-events: none !important; }
}
@media screen and (min-width: 821px) and (max-width: 1180px) {
    .sv-refined .sv-topbar { align-items: flex-start; }
    .sv-refined .sv-top-actions { flex: 1; }
    .sv-refined .sv-user-meta strong { max-width: 135px; }
    .sv-refined .sv-start-workspace { grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); gap: 16px; }
    .sv-refined .sv-fast-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 820px) {
    .sv-refined { scroll-padding-top: 16px; }
    .sv-refined .sv-page { width: calc(100% - 24px); padding-top: 12px; }
    .sv-refined .sv-topbar { position: static; gap: 12px; padding: 12px; border-radius: 18px; }
    .sv-refined .sv-brand { justify-content: flex-start; text-align: left; }
    .sv-refined .sv-top-actions { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 8px; width: 100%; }
    .sv-refined .sv-top-actions > .sv-structure-switch { flex: 1 1 160px; order: 1; width: auto; min-height: 44px; }
    .sv-refined .sv-top-actions > .sv-home-button { flex-basis: 90px; }
    .sv-refined .sv-top-actions > .sv-notifications { flex: 1 1 135px; order: 1; width: auto; }
    .sv-refined .sv-notifications .svn-trigger { width: 100%; justify-content: flex-start; }
    .sv-refined .sv-top-actions > .sv-user-box { display: grid; flex: 1 1 100%; order: 2; grid-template-columns: auto minmax(0, 1fr) auto; width: 100%; border-radius: 13px; }
    .sv-refined .sv-user-meta strong { max-width: none; }
    .sv-refined .sv-logout-button { width: auto; grid-column: auto; min-height: 40px; }
    .sv-refined .sv-start-workspace { grid-template-columns: 1fr; gap: 22px; }
    .sv-refined .sv-start-summary { grid-template-columns: 1fr; gap: 12px; }
    .sv-refined .sv-start-stats { display: flex; flex-wrap: wrap; gap: 6px; }
    .sv-refined .sv-start-stats :is(span, button) { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 5px; min-height: 42px; padding: 8px; font-size: .75rem; }
    .sv-refined .sv-start-stats strong { display: inline; font-size: 1rem; margin: 0; }
    .sv-refined .sv-start-location { justify-content: flex-start; text-align: left; }
    .sv-refined .sv-start-location .sv-location-mark { margin: 0; flex-shrink: 0; }
    .sv-refined .sv-social-hero { text-align: left; border-width: 1px; }
    .sv-refined .sv-social-hero .sv-social-heading h1 { font-size: clamp(1.6rem, 5vw, 2rem); }
    .sv-refined .sv-social-hero .sv-patient-meta-row { justify-content: flex-start; }
    .sv-refined .sv-social-hero .sv-location-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
    .sv-refined .sv-social-hero .sv-location-stats span { min-height: 0; padding: 8px; border-radius: 12px; font-size: .75rem; font-weight: 400; }
    .sv-refined .sv-social-hero .sv-location-stats strong { font-size: 1rem; font-weight: 700; }
    .sv-refined .sv-search-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sv-refined .sv-search-filters button { min-height: 44px; padding: 8px 6px; }
    .sv-refined .sv-fast-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sv-refined :is(.sv-floating-tools, .sv-clinical-floating-tools) { bottom: calc(8px + env(safe-area-inset-bottom)) !important; gap: 6px; }
    .sv-refined :is(.sv-floating-trigger, .sv-clinical-floating-trigger) { padding: 7px 5px !important; min-height: 58px; border-radius: 14px !important; font-size: .72rem !important; }
    .sv-refined :is(.sv-floating-trigger, .sv-clinical-floating-trigger) i { width: 27px; height: 27px; font-size: .95rem; }
    .sv-refined .sv-ui-has-tools .sv-page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
    .sv-refined .sv-ui-has-tools.sv-legacy-page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
    .sv-refined :is(.sv-floating-panel, .sv-clinical-quick-panel) { inset: 8px; width: auto; max-height: calc(100dvh - 16px); border-radius: 18px; }
    .sv-refined :is(.sv-field, .sv-field-card, .sv-legacy-page, .svpn-area) :is(input, select, textarea) { font-size: max(1rem, 16px); }
    .sv-refined .sv-legacy-page .row { margin-left: -8px; margin-right: -8px; }
    .sv-refined .sv-legacy-page .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; }
}
@media screen and (max-width: 560px) {
    .sv-refined .sv-page { width: calc(100% - 20px); padding-top: 10px; }
    .sv-refined .sv-dashboard-start { padding: 14px; }
    .sv-refined .sv-brand-title { font-size: 1.12rem; }
    .sv-refined .sv-start-location { padding: 9px 11px; }
    .sv-refined .sv-start-location h2 { font-size: 1.6rem; }
    .sv-refined .sv-search-title-row small { text-align: left; }
    .sv-refined .sv-fast-actions-grid .sv-action-card { min-height: 98px; padding: 12px 9px; gap: 8px; }
    .sv-refined .sv-fast-actions-grid .sv-action-title { font-size: .87rem; }
    .sv-refined .sv-fast-actions-grid .sv-action-text { font-size: .75rem; }
    .sv-refined .sv-fast-actions-grid .sv-action-icon { width: 30px; height: 30px; min-width: 30px; font-size: .95rem; border-radius: 9px; }
    .sv-refined .sv-action-toolbar { justify-content: flex-start; }
    .sv-refined .sv-inline-actions { justify-content: flex-start; width: 100%; }
    .sv-refined .sv-inline-actions > :is(a, button) { flex: 1 1 auto; text-align: center; }
    .sv-refined :is(.sv-patient-hero, .vm-hero, .sv-social-hero, .sv-print-compact) { padding: 15px; }
    .sv-refined .sv-patient-meta-row { gap: 6px; }
    .sv-refined .sv-list-table th, .sv-refined .sv-list-table td { padding: 10px 7px; }
    .sv-refined .sv-list-table thead th { font-size: .7rem; }
    .sv-refined .sv-list-table td { font-size: .84rem; }
    .sv-refined .sv-list-table .sv-list-index { width: 28px; }
    .sv-refined .sv-list-table .sv-list-name { min-width: 105px; }
    .sv-refined .sv-list-hero h1 { font-size: 1.7rem; }
    .sv-refined .sv-list-hero-mark { width: 46px; height: 46px; border-radius: 14px; }
    .sv-refined .sv-list-hero { padding: 12px; }
    .sv-refined .sv-list-kpi { padding: 12px; min-height: 72px; }
    .sv-refined .sv-list-search-panel { padding: 12px; gap: 10px; }
    .sv-refined body.sv-legacy-page { padding: 10px; }
    .sv-refined .sv-legacy-page #settingcontainer { padding: 14px; }
    .sv-refined .sv-legacy-page .space { padding: 10px 12px; min-height: 66px; border-radius: 18px; }
    .sv-refined .sv-legacy-page .space::after { font-size: .88rem; }
    .sv-refined .svpn-area { padding: 14px; }
    .sv-refined .svpn-note { padding: 13px; }
}
@media screen and (max-width: 360px) {
    .sv-refined .sv-top-actions > .sv-structure-switch:not(.sv-home-button) { flex-basis: 100%; }
    .sv-refined .sv-fast-actions-grid .sv-action-card { grid-template-columns: 1fr; gap: 7px; padding: 11px; }
    .sv-refined .sv-fast-actions-grid .sv-action-top { min-height: 30px; }
    .sv-refined .sv-start-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (prefers-reduced-motion: reduce) {
    .sv-refined *, .sv-refined *::before, .sv-refined *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media screen and (max-width: 820px) {
    .sv-refined :is(.sv-floating-tools, .sv-clinical-floating-tools) {
        grid-template-columns: repeat(var(--sv-ui-tool-count, 4), minmax(0, 1fr)) !important;
    }
    .sv-refined :is(.sv-floating-trigger, .sv-clinical-floating-trigger) { width: auto !important; overflow-wrap: anywhere; }
}
/* The wrapping elements must not change printed table widths or page breaks. */
@media print {
    .sv-ui-skip, .sv-ui-scroll-hint, .sv-form-section-nav, .sv-ui-table-filter { display: none !important; }
    .sv-ui-table-scroll { display: contents !important; }
}
@media screen and (max-width: 820px) {
    .sv-refined body.sv-app :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
    .sv-refined body.sv-app.sv-cartella-polished .sv-form-panel :is(input, select, textarea) { font-size: 16px !important; }
    .sv-refined :is(.sv-scadenze-page, .sv-lists-page) .table .btn,
    .sv-refined .sv-ui-form-page .vm-inline-buttons .btn,
    .sv-refined .sv-ui-form-page .vm-ptr-actions .btn,
    .sv-refined .sv-filter-button { min-width: 44px; min-height: 44px; }
    .sv-refined .sv-list-clear { min-width: 40px; min-height: 40px; }
    .sv-refined .sv-list-table thead button { min-width: 40px; min-height: 44px; }
}
