/* Shared list layouts; document and PDF print rules remain independent. */
@media screen {
    .sv-app.sv-legacy-page .btn-danger,
    .sv-app .toast button.close {
        min-width: 44px;
        min-height: 44px;
    }

    .sv-app .sv-remove-x.js-remove-carico {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .sv-app .sv-carico-card {
        padding-right: 66px;
    }

    .sv-lists-page #settingcontainer,
    .sv-lists-page #settingcontainer.scroll {
        overflow: visible;
        text-align: left !important;
    }

    .sv-lists-page #settingcontainer .row > [class*="col-"] {
        overflow: visible;
    }

    .sv-lists-page #settingcontainer > .col-12 {
        padding-right: 0;
        padding-left: 0;
    }

    .sv-lists-page #settingcontainer .text-center {
        text-align: left !important;
    }

    .sv-lists-page #settingcontainer h1 {
        margin-top: 18px;
        margin-bottom: 20px;
        font-size: clamp(1.55rem, 2.5vw, 2.1rem);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .sv-lists-page .sv-list-section-title {
        margin: 24px 0 12px;
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .sv-lists-page .sv-list-patient {
        margin: -8px 0 24px;
        color: var(--sv-muted, #526477);
        font-size: 1.05rem;
        font-weight: 650;
        overflow-wrap: anywhere;
    }

    .sv-lists-page .sv-list-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .sv-lists-page .sv-list-toolbar .btn {
        margin: 0;
    }

    .sv-lists-page .sv-list-toolbar--end {
        justify-content: flex-end;
    }

    .sv-lists-page .sv-list-scroll {
        width: 100%;
        max-width: 100%;
        margin: 12px 0 20px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        border: 1px solid var(--sv-border, #dce5eb);
        border-radius: 14px;
        background: #fff;
        -webkit-overflow-scrolling: touch;
    }

    .sv-lists-page .sv-list-scroll:focus-visible {
        outline: 3px solid var(--sv-primary-dark, #0d7780);
        outline-offset: 3px;
    }

    .sv-lists-page table.sv-list-table {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        font-size: .95rem;
        line-height: 1.45;
    }

    .sv-lists-page table.sv-list-table--compact {
        min-width: 0;
        table-layout: auto;
    }

    .sv-lists-page table.sv-list-table--compact td,
    .sv-lists-page table.sv-list-table--compact th {
        overflow-wrap: anywhere;
    }

    .sv-lists-page table.sv-list-table--compact tr > :first-child {
        width: 48px;
    }

    .sv-lists-page table.sv-list-table--dense {
        min-width: 600px;
    }

    .sv-lists-page table.sv-list-table tr > :first-child {
        font-variant-numeric: tabular-nums;
    }

    .sv-lists-page table.sv-list-table a:not(.btn) {
        display: inline-block;
        padding-top: 7px;
        padding-bottom: 7px;
        text-underline-offset: 3px;
    }

    .sv-lists-page table.sv-list-table .btn {
        margin: 0;
        box-shadow: none;
    }

    .sv-lists-page .sv-list-empty {
        margin: 10px 0 24px;
        padding: 18px;
        border: 1px dashed var(--sv-border, #dce5eb);
        border-radius: 12px;
        background: #f7fafb;
        color: var(--sv-muted, #526477);
        text-align: center;
    }

    .sv-lists-page .sv-list-empty[hidden] {
        display: none;
    }

    .sv-lists-page .sv-calendar-choices {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        max-width: 760px;
        margin: 10px 0 20px;
    }

    .sv-lists-page .sv-calendar-choices .btnadmin {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        height: auto;
        min-height: 124px;
        margin: 0;
        padding: 24px;
        border-radius: 18px;
        text-align: left;
    }

    .sv-lists-page .sv-calendar-choices strong {
        font-size: 1.2rem;
    }

    .sv-lists-page .sv-calendar-choices span {
        font-size: .95rem;
        font-weight: 500;
        line-height: 1.4;
    }
}

@media screen and (max-width: 767.98px) {
    .sv-lists-page .sv-list-toolbar--end {
        justify-content: flex-start;
        margin-top: 8px;
    }

    .sv-lists-page #settingcontainer .row {
        margin-right: -8px;
        margin-left: -8px;
    }

    .sv-lists-page #settingcontainer .row > [class*="col-"] {
        padding-right: 8px;
        padding-left: 8px;
    }

    .sv-lists-page table.sv-list-table {
        font-size: .9rem;
    }

    .sv-lists-page table.sv-list-table td,
    .sv-lists-page table.sv-list-table th {
        padding: 10px 8px;
    }

    .sv-lists-page table.sv-list-table--compact tr > :first-child {
        width: 34px;
    }
}

@media screen and (max-width: 480px) {
    .sv-lists-page .sv-calendar-choices {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .sv-lists-page .sv-calendar-choices .btnadmin {
        min-height: 112px;
        padding: 20px;
    }
}
