/* DentalPro 3.11.2 — Android & iOS PWA/mobile interface */

.mobile-bottom-nav,
.mobile-more-sheet,
.mobile-sheet-backdrop,
.pwa-install-dialog,
.mobile-connection-status {
    display: none;
}

.pwa-install-button[hidden],
[data-install-pwa-sheet][hidden] { display: none !important; }

@media (max-width: 900px) {
    :root {
        --mobile-nav-height: 68px;
        --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
        --mobile-safe-top: env(safe-area-inset-top, 0px);
        --mobile-page-pad: 12px;
    }

    html {
        min-height: 100%;
        background: #f3f7f6;
        overscroll-behavior-y: none;
    }

    body {
        min-height: 100dvh;
        overflow-x: hidden;
        background: #f3f7f6;
        -webkit-text-size-adjust: 100%;
        touch-action: manipulation;
    }

    body.app-body { padding-bottom: calc(var(--mobile-nav-height) + var(--mobile-safe-bottom)); }
    body.is-standalone { user-select: none; }
    body.is-standalone input,
    body.is-standalone textarea,
    body.is-standalone select { user-select: text; }

    .app-shell { display: block; min-height: 100dvh; }
    .sidebar { display: none !important; }
    .main-area { width: 100%; min-height: 100dvh; }
    .mobile-menu { display: none !important; }

    .topbar {
        min-height: calc(62px + var(--mobile-safe-top));
        padding: calc(9px + var(--mobile-safe-top)) 12px 9px;
        gap: 8px;
        z-index: 70;
        background: rgba(255,255,255,.96);
        box-shadow: 0 5px 20px rgba(22,66,59,.07);
        backdrop-filter: blur(18px);
    }

    .topbar-title-block {
        min-width: 0;
        flex: 1;
    }

    .topbar-title-block h1 {
        margin: 0;
        overflow: hidden;
        color: #173c37;
        font-size: 18px;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-title-block .eyebrow,
    .topbar-title-block .topbar-subtitle { display: none; }

    .top-actions {
        flex: 0 0 auto;
        gap: 6px;
    }

    /* New patient lives in the central bottom navigation action on mobile. */
    .top-actions > a.btn-primary { display: none; }

    .topbar-notifications,
    .notification-trigger,
    .pwa-install-button {
        flex: 0 0 auto;
    }

    .notification-trigger,
    .pwa-install-button {
        width: 42px;
        height: 42px;
        min-width: 42px;
        padding: 0;
        display: grid;
        place-items: center;
        border: 1px solid #d7e5e1;
        border-radius: 13px;
        background: #fff;
        color: #225e55;
        box-shadow: 0 5px 14px rgba(22,73,64,.06);
    }

    .pwa-install-button span { display: none; }
    .notification-trigger .ui-icon,
    .pwa-install-button .ui-icon { width: 20px; height: 20px; }
    .notification-count { top: -5px; right: -4px; min-width: 19px; height: 19px; font-size: 10px; }

    .notification-popover {
        position: fixed !important;
        z-index: 120;
        top: calc(61px + var(--mobile-safe-top)) !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-width: none !important;
        max-height: min(72dvh, 620px);
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 24px 70px rgba(10,48,43,.24);
    }

    .notification-list { max-height: min(54dvh, 480px); overflow-y: auto; overscroll-behavior: contain; }
    .notification-item { min-height: 70px; padding: 10px; }
    .notification-item-copy strong { font-size: 14px; }
    .notification-item-copy small,
    .notification-item-copy em { font-size: 11px; }

    .topbar:has(.topbar-status-cards) {
        flex-wrap: wrap;
        align-items: center;
    }

    .topbar:has(.topbar-status-cards) > .topbar-title-block { flex: 1; min-width: 140px; }
    .topbar-status-cards {
        order: 5;
        width: 100%;
        max-width: none;
        padding: 1px 0 2px;
        display: flex;
        gap: 7px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .topbar-status-cards::-webkit-scrollbar { display: none; }
    .topbar-status-card {
        min-width: 118px;
        min-height: 54px;
        padding: 7px 9px;
        scroll-snap-align: start;
    }
    .topbar-status-card > span { width: 31px; height: 31px; }
    .topbar-status-card > span .ui-icon { width: 17px; height: 17px; }
    .topbar-status-card small { font-size: 9px; }
    .topbar-status-card strong { font-size: 19px; }

    .content {
        width: 100%;
        padding: 12px var(--mobile-page-pad) calc(24px + var(--mobile-safe-bottom));
    }
    .footer { display: none; }

    .card,
    .panel,
    .module-card {
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(22,66,59,.07);
    }

    .card { padding: 14px; }
    .page-header,
    .section-header,
    .card-header,
    .toolbar,
    .filter-row,
    .list-toolbar {
        gap: 9px;
    }

    .page-header,
    .section-header,
    .card-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .page-header h2,
    .section-header h2,
    .card-header h2 { font-size: 18px; }

    .btn,
    button,
    .icon-button,
    .icon-action {
        min-height: 42px;
    }

    .btn { padding: 9px 13px; border-radius: 12px; font-size: 14px; }
    .icon-button,
    .icon-action { min-width: 42px; width: 42px; border-radius: 12px; }
    .btn .ui-icon,
    .icon-button .ui-icon,
    .icon-action .ui-icon { width: 18px; height: 18px; }

    input,
    select,
    textarea {
        min-height: 46px;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 16px !important; /* Prevent iOS form zoom. */
    }
    textarea { min-height: 96px; }
    label.field > span,
    .field-label { font-size: 12px; }

    .form-grid,
    .form-grid.cols-2,
    .form-grid.cols-3,
    .form-layout,
    .patient-form-section-grid,
    .settings-grid,
    .clinical-grid-two,
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    .span-2,
    .span-3,
    .field.span-2,
    .field.span-3 { grid-column: 1 !important; }

    .form-actions,
    .modal-footer,
    .visit-command-footer {
        position: sticky;
        z-index: 16;
        bottom: 0;
        margin-right: -14px;
        margin-bottom: -14px;
        margin-left: -14px;
        padding: 10px 14px calc(10px + var(--mobile-safe-bottom));
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 8px;
        border-top: 1px solid #dce8e4;
        background: rgba(255,255,255,.97);
        backdrop-filter: blur(16px);
    }
    .form-actions .btn,
    .modal-footer .btn,
    .visit-command-footer .btn { width: 100%; min-height: 48px; justify-content: center; }

    /* Every working modal becomes a full-screen mobile workspace. */
    dialog:not(.pwa-install-dialog) {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    dialog:not(.pwa-install-dialog)::backdrop { background: rgba(8,29,26,.72); }
    dialog:not(.pwa-install-dialog) > form,
    dialog:not(.pwa-install-dialog) > section,
    dialog:not(.pwa-install-dialog) > div {
        height: 100%;
        max-height: none !important;
    }
    .modal-header,
    .visit-command-header-compact {
        position: sticky;
        z-index: 22;
        top: 0;
        min-height: calc(58px + var(--mobile-safe-top));
        padding-top: calc(9px + var(--mobile-safe-top)) !important;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(16px);
    }
    .modal-body,
    .visit-command-body {
        padding: 12px !important;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    /* Convert standard data tables into readable mobile records. mobile.js adds labels. */
    .table-wrap,
    .responsive-table,
    .data-table-wrap { overflow: visible !important; }

    table.mobile-card-table {
        width: 100%;
        display: block;
        border: 0 !important;
        background: transparent !important;
    }
    table.mobile-card-table thead { display: none; }
    table.mobile-card-table tbody {
        width: 100%;
        display: grid;
        gap: 10px;
    }
    table.mobile-card-table tr {
        width: 100%;
        padding: 5px 12px;
        display: block;
        border: 1px solid #d9e6e2 !important;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(22,66,59,.055);
    }
    table.mobile-card-table td {
        min-height: 39px;
        padding: 8px 0 !important;
        display: grid;
        grid-template-columns: minmax(104px, 38%) minmax(0,1fr);
        align-items: center;
        gap: 10px;
        border: 0 !important;
        border-bottom: 1px solid #edf3f1 !important;
        text-align: right !important;
        overflow-wrap: anywhere;
    }
    table.mobile-card-table td:last-child { border-bottom: 0 !important; }
    table.mobile-card-table td::before {
        content: attr(data-mobile-label);
        color: #6b817c;
        font-size: 10px;
        font-weight: 850;
        letter-spacing: .04em;
        text-align: left;
        text-transform: uppercase;
    }
    table.mobile-card-table td[data-mobile-label=""],
    table.mobile-card-table td[colspan] { grid-template-columns: 1fr; text-align: left !important; }
    table.mobile-card-table td[data-mobile-label=""]::before,
    table.mobile-card-table td[colspan]::before { display: none; }
    table.mobile-card-table td.actions,
    table.mobile-card-table td:last-child:has(.table-actions),
    table.mobile-card-table td:last-child:has(form) {
        grid-template-columns: minmax(104px,38%) minmax(0,1fr);
    }
    table.mobile-card-table .table-actions,
    table.mobile-card-table .action-buttons,
    table.mobile-card-table td > form {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    /* Calendar: one day per horizontal swipe on phones. */
    .appointments-five-page { overflow: hidden; }
    .appointments-five-toolbar { padding: 10px; }
    .appointments-five-controls { align-items: stretch; flex-direction: column; }
    .appointments-five-dentist-filter { width: 100%; }
    .appointments-five-dentist-filter .field { width: 100%; }
    .appointments-five-navigation { width: 100%; justify-content: center; }
    .appointments-five-today { flex: 1; max-width: 220px; }
    .appointments-five-board {
        width: 100%;
        padding: 2px 0 8px;
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: calc(100vw - (2 * var(--mobile-page-pad)));
        grid-template-columns: none !important;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 0;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }
    .appointments-five-board::-webkit-scrollbar { display: none; }
    .appointments-day-column {
        min-width: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        border-radius: 16px;
    }
    .appointments-day-column-header { position: sticky; top: 0; z-index: 5; }
    .appointments-day-column-body { min-height: 52dvh; }
    .appointment-record { padding: 11px; border-radius: 13px; }
    .appointment-record-actions { gap: 6px; }

    /* Legacy 5-day time grid remains usable through snap scrolling. */
    .weekly-calendar-scroll { max-height: calc(100dvh - 220px); scroll-snap-type: x proximity; }
    .weekly-calendar.calendar-view-five-days { min-width: 930px; }

    .patient-hero,
    .clinical-patient-head,
    .cash-date-bar,
    .inventory-toolbar,
    .materials-toolbar,
    .services-toolbar {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .hero-actions,
    .toolbar-actions { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .hero-actions .btn,
    .toolbar-actions .btn { width: 100%; justify-content: center; }

    .service-module-tabs,
    .material-module-tabs,
    .module-tabs {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .service-module-tabs::-webkit-scrollbar,
    .material-module-tabs::-webkit-scrollbar,
    .module-tabs::-webkit-scrollbar { display: none; }
    .service-module-tabs > *,
    .material-module-tabs > *,
    .module-tabs > * {
        min-width: min(82vw, 280px) !important;
        scroll-snap-align: start;
    }

    .multi-tooth-picker,
    .visit-command-modal .multi-tooth-picker { grid-template-columns: repeat(8,minmax(34px,1fr)) !important; }
    .odontogram-chart { grid-template-columns: repeat(4,minmax(54px,1fr)) !important; }
    .visit-financial-summary,
    .cash-stats,
    .stats-grid,
    .stats-grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }

    .flash-stack {
        right: 10px;
        bottom: calc(var(--mobile-nav-height) + var(--mobile-safe-bottom) + 10px);
        left: 10px;
        width: auto;
    }

    /* Fixed Android/iOS-style bottom navigation. */
    .mobile-bottom-nav {
        position: fixed;
        z-index: 100;
        right: 0;
        bottom: 0;
        left: 0;
        height: calc(var(--mobile-nav-height) + var(--mobile-safe-bottom));
        padding: 6px 6px var(--mobile-safe-bottom);
        display: grid;
        grid-template-columns: repeat(5,minmax(0,1fr));
        align-items: end;
        border-top: 1px solid rgba(201,220,215,.95);
        background: rgba(255,255,255,.96);
        box-shadow: 0 -10px 30px rgba(16,57,51,.10);
        backdrop-filter: blur(20px);
    }

    .mobile-nav-item {
        position: relative;
        min-width: 0;
        height: 56px;
        padding: 5px 2px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        border: 0;
        border-radius: 13px;
        color: #6b817c;
        background: transparent;
        font-family: inherit;
        text-decoration: none;
        cursor: pointer;
    }
    .mobile-nav-item .ui-icon { width: 20px; height: 20px; }
    .mobile-nav-item > span:last-child { overflow: hidden; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
    .mobile-nav-item.active { color: #0f766e; background: #e9f6f2; }
    .mobile-nav-item.active::before {
        content: "";
        position: absolute;
        top: 1px;
        width: 22px;
        height: 3px;
        border-radius: 999px;
        background: #0f766e;
    }

    .mobile-nav-create { overflow: visible; }
    .mobile-nav-create-icon {
        width: 50px;
        height: 50px;
        margin-top: -24px;
        display: grid;
        place-items: center;
        border: 5px solid #fff;
        border-radius: 17px;
        color: #fff;
        background: linear-gradient(145deg,#1a9785,#0f766e);
        box-shadow: 0 10px 24px rgba(15,118,110,.28);
    }
    .mobile-nav-create-icon .ui-icon { width: 23px; height: 23px; }
    .mobile-nav-create > span:last-child { margin-top: -2px; color: #0f766e; }

    .mobile-sheet-backdrop {
        position: fixed;
        z-index: 130;
        inset: 0;
        display: block;
        background: rgba(7,30,27,.48);
        opacity: 0;
        transition: opacity .2s ease;
        backdrop-filter: blur(3px);
    }
    .mobile-sheet-backdrop[hidden] { display: none; }
    .mobile-sheet-backdrop.is-open { opacity: 1; }

    .mobile-more-sheet {
        position: fixed;
        z-index: 140;
        right: 0;
        bottom: 0;
        left: 0;
        padding: 10px 14px calc(18px + var(--mobile-safe-bottom));
        display: block;
        border-radius: 24px 24px 0 0;
        background: #fff;
        box-shadow: 0 -24px 70px rgba(7,30,27,.24);
        transform: translateY(110%);
        transition: transform .24s cubic-bezier(.2,.8,.2,1);
    }
    .mobile-more-sheet.is-open { transform: translateY(0); }
    .mobile-more-sheet > header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; }
    .mobile-more-sheet > header strong { color: #183f39; font-size: 18px; }
    .mobile-more-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .mobile-more-grid > a,
    .mobile-more-grid > button {
        min-height: 74px;
        padding: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
        border: 1px solid #d9e6e2;
        border-radius: 15px;
        color: #285b53;
        background: #f8fbfa;
        font: inherit;
        font-weight: 800;
        text-align: left;
        text-decoration: none;
    }
    .mobile-more-grid > *.active { border-color: #90c9bb; color: #0f766e; background: #eaf7f3; }
    .mobile-more-grid .ui-icon { width: 21px; height: 21px; }

    .pwa-install-dialog {
        width: min(420px,calc(100% - 24px));
        max-width: 420px;
        padding: 0;
        border: 0;
        border-radius: 22px;
        box-shadow: 0 28px 80px rgba(7,30,27,.30);
    }
    .pwa-install-dialog::backdrop { background: rgba(7,30,27,.58); backdrop-filter: blur(4px); }
    .pwa-install-dialog-inner { padding: 18px; background: #fff; }
    .pwa-install-dialog header { display: grid; grid-template-columns: 48px 1fr 42px; align-items: center; gap: 10px; }
    .pwa-dialog-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: #0f766e; }
    .pwa-dialog-icon .ui-icon { width: 24px; height: 24px; }
    .pwa-install-dialog header small,
    .pwa-install-dialog header strong { display: block; }
    .pwa-install-dialog header small { color: #71847f; font-size: 10px; }
    .pwa-install-dialog header strong { color: #183f39; font-size: 16px; }
    .pwa-install-content { padding: 18px 2px; color: #526d67; font-size: 14px; line-height: 1.55; }
    .pwa-install-content ol { margin: 10px 0 0; padding-left: 22px; }
    .pwa-install-content li + li { margin-top: 7px; }
    .pwa-install-dialog footer { display: flex; justify-content: flex-end; }

    .mobile-connection-status {
        position: fixed;
        z-index: 200;
        top: calc(8px + var(--mobile-safe-top));
        left: 50%;
        min-height: 38px;
        padding: 9px 14px;
        display: block;
        border-radius: 999px;
        color: #fff;
        background: #a33a35;
        box-shadow: 0 8px 22px rgba(7,30,27,.20);
        font-size: 12px;
        font-weight: 850;
        transform: translateX(-50%);
    }
    .mobile-connection-status.is-online { background: #0f766e; }
    .mobile-connection-status[hidden] { display: none; }
}

@media (max-width: 420px) {
    .topbar-title-block h1 { font-size: 16px; }
    .notification-trigger,
    .pwa-install-button { width: 39px; min-width: 39px; height: 39px; }
    table.mobile-card-table td { grid-template-columns: 96px minmax(0,1fr); gap: 7px; }
    .mobile-more-grid { grid-template-columns: 1fr 1fr; }
    .visit-financial-summary,
    .cash-stats,
    .stats-grid,
    .stats-grid-3 { grid-template-columns: 1fr 1fr !important; }
}

@media (display-mode: standalone) and (max-width: 900px) {
    .topbar { -webkit-app-region: drag; }
    .topbar button,
    .topbar a,
    .topbar details { -webkit-app-region: no-drag; }
}

@media print {
    .mobile-bottom-nav,
    .mobile-more-sheet,
    .mobile-sheet-backdrop,
    .pwa-install-dialog,
    .mobile-connection-status { display: none !important; }
}

/* DentalPro 3.11.1 — single-day mobile calendar and clearer appointment entry */
@media (max-width: 900px) {
    /* The server still prepares five operational days for desktop. On mobile only
       the anchor day is rendered visibly; the existing arrows load the adjacent day. */
    #weeklyCalendarApp .weekly-calendar-scroll {
        width: 100%;
        max-height: calc(100dvh - 250px);
        overflow-x: hidden !important;
        overflow-y: auto;
        border-radius: 14px;
        scrollbar-width: thin;
    }

    #weeklyCalendarApp .weekly-calendar.calendar-view-five-days {
        width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: 58px minmax(0, 1fr) !important;
        --calendar-days: 1 !important;
    }

    /* In every six-cell calendar row keep the time column and the first day only. */
    #weeklyCalendarApp .weekly-calendar.calendar-view-five-days > :nth-child(6n + 3),
    #weeklyCalendarApp .weekly-calendar.calendar-view-five-days > :nth-child(6n + 4),
    #weeklyCalendarApp .weekly-calendar.calendar-view-five-days > :nth-child(6n + 5),
    #weeklyCalendarApp .weekly-calendar.calendar-view-five-days > :nth-child(6n + 6) {
        display: none !important;
    }

    #weeklyCalendarApp .calendar-toolbar-five-days {
        min-height: 48px;
        padding: 6px 8px;
    }

    #weeklyCalendarApp .calendar-date-navigation-compact {
        width: 100%;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 7px;
    }

    #weeklyCalendarApp .calendar-date-navigation-compact .calendar-nav-arrow {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 13px;
    }

    #weeklyCalendarApp .calendar-date-navigation-compact .calendar-current-date {
        width: 100%;
        min-height: 44px;
        padding: 7px 12px;
        display: grid;
        place-items: center;
        border-radius: 13px;
        background: #edf8f4;
    }

    #weeklyCalendarApp .calendar-date-navigation-compact .calendar-current-date strong {
        color: #145e55;
        font-size: 14px;
        line-height: 1.2;
    }

    #weeklyCalendarApp .calendar-legend {
        padding: 8px 2px;
        display: flex;
        gap: 7px 11px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }
    #weeklyCalendarApp .calendar-legend::-webkit-scrollbar { display: none; }
    #weeklyCalendarApp .calendar-legend span { font-size: 10px; }

    #weeklyCalendarApp .calendar-corner,
    #weeklyCalendarApp .calendar-day-header {
        position: sticky;
        z-index: 8;
        top: 0;
    }

    #weeklyCalendarApp .calendar-corner {
        min-width: 58px;
        padding-inline: 4px;
        font-size: 9px;
    }

    #weeklyCalendarApp .calendar-day-header {
        min-width: 0;
        padding: 8px 10px;
    }
    #weeklyCalendarApp .calendar-day-header strong { font-size: 13px; }
    #weeklyCalendarApp .calendar-day-header span { font-size: 12px; }

    #weeklyCalendarApp .calendar-time-label {
        min-width: 58px;
        padding: 6px 4px;
    }
    #weeklyCalendarApp .calendar-time-label strong { font-size: 11px; }

    #weeklyCalendarApp .calendar-slot {
        min-width: 0;
        min-height: 82px;
        padding: 5px;
    }

    #weeklyCalendarApp .calendar-appointment {
        min-width: 0;
        padding: 9px;
        border-radius: 12px;
    }
    #weeklyCalendarApp .calendar-appointment h3 { font-size: 14px; }
    #weeklyCalendarApp .calendar-appointment p,
    #weeklyCalendarApp .calendar-appointment small { font-size: 11px; }

    /* Appointment editor: clear step-by-step sections with comfortable touch targets. */
    .appointment-modal .modal-header {
        min-height: calc(64px + var(--mobile-safe-top));
        padding-inline: 14px !important;
    }
    .appointment-modal .modal-header h2 { font-size: 20px; }
    .appointment-modal .modal-header .eyebrow { font-size: 10px; }

    .appointment-modal .appointment-mobile-form {
        padding: 12px !important;
        display: grid;
        align-content: start;
        gap: 11px;
        background: #f2f7f5;
    }

    .appointment-mobile-section {
        min-width: 0;
        padding: 13px;
        display: grid;
        gap: 12px;
        border: 1px solid #d9e7e2;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 7px 20px rgba(20, 72, 63, .055);
    }

    .appointment-mobile-section-title {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-bottom: 9px;
        border-bottom: 1px solid #e7efec;
    }

    .appointment-mobile-section-title > span {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        color: #0f766e;
        background: #e8f6f1;
    }
    .appointment-mobile-section-title > span .ui-icon { width: 19px; height: 19px; }
    .appointment-mobile-section-title > div { min-width: 0; display: grid; gap: 1px; }
    .appointment-mobile-section-title small {
        color: #7a8f89;
        font-size: 9px;
        font-weight: 850;
        letter-spacing: .05em;
        text-transform: uppercase;
    }
    .appointment-mobile-section-title strong {
        color: #183f39;
        font-size: 15px;
        line-height: 1.2;
    }

    .appointment-modal .appointment-time-summary {
        min-height: 64px;
        padding: 10px 12px;
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr) auto;
        align-items: center;
        gap: 9px;
        border: 1px solid #bfe1d7;
        border-radius: 14px;
        background: #edf9f5;
    }
    .appointment-modal .appointment-time-summary > .ui-icon { width: 22px; height: 22px; color: #0f766e; }
    .appointment-modal .appointment-time-summary div { min-width: 0; display: grid; gap: 2px; }
    .appointment-modal .appointment-time-summary small { color: #6d817b; font-size: 10px; }
    .appointment-modal .appointment-time-summary strong {
        overflow: hidden;
        color: #174b43;
        font-size: 14px;
        line-height: 1.3;
        text-overflow: ellipsis;
    }
    .appointment-modal .appointment-time-summary > span {
        padding: 5px 8px;
        border-radius: 999px;
        color: #0f766e;
        background: #fff;
        font-size: 11px;
        font-weight: 850;
        white-space: nowrap;
    }

    .appointment-modal label.field {
        display: grid;
        gap: 6px;
    }
    .appointment-modal label.field > span {
        color: #315b54;
        font-size: 13px;
        font-weight: 800;
    }
    .appointment-modal input,
    .appointment-modal select,
    .appointment-modal textarea {
        width: 100%;
        min-height: 50px;
        border-radius: 13px;
        font-size: 16px !important;
    }
    .appointment-modal textarea { min-height: 84px; resize: vertical; }

    .appointment-modal .appointment-mobile-two-fields {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 11px;
    }

    .appointment-modal .patient-search-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 50px;
        gap: 8px;
    }
    .appointment-modal .patient-search-input-wrap {
        min-width: 0;
        min-height: 50px;
        border-radius: 13px;
    }
    .appointment-modal .patient-search-input-wrap input { min-width: 0; }
    .appointment-modal #openQuickPatient {
        width: 50px;
        height: 50px;
        min-width: 50px;
        border-radius: 13px;
    }

    .appointment-modal .patient-search-results {
        max-height: 220px;
        overflow-y: auto;
        border-radius: 13px;
        box-shadow: 0 14px 34px rgba(13, 56, 50, .16);
    }

    .appointment-modal .selected-patient-card {
        min-height: 62px;
        padding: 9px 10px;
        border-radius: 14px;
    }
    .appointment-modal .selected-patient-card .avatar {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    .appointment-modal .selected-patient-card strong { font-size: 14px; }
    .appointment-modal .selected-patient-card small { font-size: 11px; }

    .appointment-modal .field-help {
        color: #71857f;
        font-size: 11px;
        line-height: 1.45;
    }

    .appointment-modal .status-default-note {
        padding: 10px 11px;
        align-items: flex-start;
        border-radius: 12px;
        font-size: 12px;
        line-height: 1.4;
    }

    .appointment-modal .modal-footer {
        min-height: calc(68px + var(--mobile-safe-bottom));
        padding: 9px 12px calc(9px + var(--mobile-safe-bottom));
    }
    .appointment-modal .modal-footer .btn {
        min-height: 50px;
        font-size: 15px;
    }
}

/* DentalPro 3.11.2 — mobile consistency */
@media (max-width: 900px) {
    .standard-edit-dialog {
        width: 100vw !important;
        max-width: 100vw !important;
        height: var(--mobile-visual-height, 100dvh) !important;
        max-height: var(--mobile-visual-height, 100dvh) !important;
        margin: 0;
        border-radius: 0;
    }
    .standard-edit-dialog > form,
    .standard-edit-dialog > .modal-card {
        height: 100%;
        max-height: 100% !important;
        border-radius: 0 !important;
    }
    .standard-edit-dialog .modal-header,
    .standard-edit-dialog .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    .standard-edit-dialog .modal-body {
        padding: 16px;
    }
    body[data-active-menu="patients"] .content input,
    body[data-active-menu="patients"] .content select,
    body[data-active-menu="patients"] .content textarea,
    body[data-active-menu="services"] .content input,
    body[data-active-menu="services"] .content select,
    body[data-active-menu="services"] .content textarea,
    body[data-active-menu="materials"] .content input,
    body[data-active-menu="materials"] .content select,
    body[data-active-menu="materials"] .content textarea {
        font-size: 16px;
    }
    .appointment-mobile-section-title > div > strong {
        font-size: 16px;
        line-height: 1.25;
    }
    .appointment-mobile-section-title > div > small {
        display: none;
    }
}
@media (max-width: 900px) {
    .topbar-brand-logo { display: block; }
}


/* DentalPro 3.11.3 — patient appointment/service register on phones */
@media (max-width: 760px) {
    .patient-appointments-register { border-radius: 16px; }
    .patient-appointments-register .card-header { padding: 14px !important; }
    .patient-appointments-table { min-width: 0 !important; }
    .patient-appointments-table tr { padding: 6px 13px !important; }
    .patient-appointments-table td[data-mobile-label="Услуги"] { align-items: start; }
    .patient-appointments-table .appointment-service-list { min-width: 0; justify-content: flex-end; }
    .patient-appointments-table .appointment-service-chip { max-width: 100%; text-align: left; }
    .patient-appointments-table .appointment-open-action { width: 100%; min-height: 46px; }
    .patient-appointments-table td.actions { grid-template-columns: 1fr !important; }
    .patient-appointments-table td.actions::before { display: none; }
}

/* DentalPro 3.11.4 — visit page on phones */
@media (max-width: 760px) {
    .visit-services-head { padding: 15px; align-items: stretch; flex-direction: column; }
    .visit-services-head .btn { width: 100%; justify-content: center; }
    .visit-services-title { align-items: flex-start; }
    .visit-services-title-icon { width: 42px; height: 42px; flex-basis: 42px; }
    .visit-services-title h2 { font-size: 19px; }
    .visit-service-kpis { padding: 10px 12px; grid-template-columns: 1fr; }
    .visit-service-kpis article { min-height: 56px; padding: 9px 11px; }
    .visit-services-body { padding: 13px; }
    .visit-service-card { grid-template-columns: 34px minmax(0, 1fr); border-radius: 13px; }
    .visit-service-content { padding: 12px; }
    .visit-service-topline { gap: 9px; flex-direction: column; }
    .visit-service-price { width: 100%; text-align: left; }
    .visit-service-price strong { font-size: 18px; }
    .visit-service-actions { margin: 12px -12px -12px; padding: 10px 12px; align-items: stretch; flex-direction: column; }
    .visit-service-actions details,
    .visit-service-actions form,
    .visit-service-actions .btn { width: 100%; }
    .visit-service-actions .btn { justify-content: center; }
    .visit-service-actions .inline-form { grid-template-columns: 1fr; }
    .visit-services-footer { padding: 14px; align-items: stretch; flex-direction: column; }
    .visit-services-footer form { min-width: 0; width: 100%; }
    .visit-related-heading { align-items: stretch; flex-direction: column; }
    .visit-related-heading .btn { width: 100%; justify-content: center; }
    .visit-related-grid { grid-template-columns: 1fr; }
    .visit-related-grid > article:last-child:nth-child(odd) { grid-column: auto; }
    .visit-teeth-list,
    .visit-document-list { max-height: none; }
}

/* DentalPro 3.11.5 — mobile visit footer and unified register density */
@media (max-width: 760px) {
    .visit-action-footer-spacer { height: 154px; }
    .visit-action-footer {
        left: 10px;
        right: 10px;
        bottom: calc(72px + var(--mobile-safe-bottom));
        min-height: 0;
        padding: 10px;
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        border-radius: 15px;
    }
    .visit-action-footer-summary {
        padding: 0 3px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .visit-action-footer-summary span { font-size: 10px; }
    .visit-action-footer-summary strong { margin: 0; font-size: 17px; white-space: nowrap; }
    .visit-action-footer-buttons {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px;
    }
    .visit-action-footer-buttons form:only-child { grid-column: 1 / -1; }
    .visit-action-footer-buttons .btn { width: 100%; min-width: 0; min-height: 46px; }
    .visit-services-summary-footer { padding: 12px 14px; }

    .catalog-standard-table .icon-action {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
    }
}

/* DentalPro 3.11.6 — compact schedule dialog without internal scrolling */
@media (max-width: 900px) {
    dialog.schedule-settings-modal {
        width: calc(100vw - 16px) !important;
        max-width: 720px !important;
        height: auto !important;
        max-height: none !important;
        margin: auto !important;
        border-radius: 18px !important;
        overflow: visible !important;
    }
    dialog.schedule-settings-modal > form {
        height: auto !important;
        max-height: none !important;
        border-radius: 18px !important;
    }
    .schedule-settings-modal .modal-header {
        position: static !important;
        min-height: auto !important;
        padding: 12px 14px !important;
    }
    .schedule-settings-modal .modal-body {
        padding: 10px 12px !important;
        overflow: visible !important;
    }
    .schedule-settings-modal .modal-footer {
        min-height: auto !important;
        padding: 10px 12px calc(10px + var(--mobile-safe-bottom)) !important;
    }
    .schedule-settings-modal .form-grid.cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .schedule-settings-modal .working-days-field {
        grid-column: 1 / -1 !important;
    }
    .schedule-settings-modal .working-day-options {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
    .schedule-settings-modal .modal-footer .btn {
        width: auto !important;
        flex: 1;
    }
}

/* DentalPro 3.11.12 — compact mobile flash/toast messages */
@media (max-width: 900px) {
    .flash-stack {
        top: auto !important;
        right: 12px !important;
        bottom: calc(var(--mobile-nav-height) + var(--mobile-safe-bottom) + 12px) !important;
        left: auto !important;
        z-index: 160 !important;
        width: min(330px, calc(100vw - 24px)) !important;
        height: auto !important;
        max-height: min(42dvh, 340px) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-end !important;
        gap: 7px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        pointer-events: none;
        scrollbar-width: none;
    }

    .flash-stack::-webkit-scrollbar { display: none; }
    .flash-stack:empty { display: none !important; }

    .flash-stack .alert {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 10px 10px 10px 12px !important;
        align-items: center !important;
        gap: 8px !important;
        border-radius: 13px !important;
        font-size: 12.5px !important;
        line-height: 1.35 !important;
        box-shadow: 0 12px 28px rgba(19, 62, 55, .18) !important;
        pointer-events: auto;
    }

    .flash-stack .alert > span {
        min-width: 0;
        flex: 1;
        overflow-wrap: anywhere;
    }

    .flash-stack .alert button {
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 6px !important;
        display: grid !important;
        place-items: center !important;
        flex: 0 0 30px !important;
        border-radius: 9px !important;
        cursor: pointer;
    }

    .flash-stack .alert button:active { background: rgba(15, 118, 110, .10); }
}

/* DentalPro 3.11.13 — reliable mobile patient registration and denser typography */
@media (max-width: 900px) {
    /* Keep the central action above the bottom-bar surface and make the entire
       anchor a dependable touch target in browser and installed PWA mode. */
    .mobile-nav-create {
        z-index: 3;
        pointer-events: auto !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-nav-create::after {
        content: "";
        position: absolute;
        inset: -8px 0 -4px;
        z-index: -1;
    }
    .mobile-nav-create-icon { pointer-events: none; }

    /* The previous sticky submit card sat underneath the fixed bottom navigation.
       Keep Save/Cancel fully visible and tappable above it. */
    [data-mobile-patient-form] {
        padding-bottom: calc(var(--mobile-nav-height) + var(--mobile-safe-bottom) + 22px);
    }
    [data-mobile-patient-form] .patient-unified-submit {
        position: sticky !important;
        z-index: 92 !important;
        bottom: calc(var(--mobile-nav-height) + var(--mobile-safe-bottom) + 8px) !important;
        margin: 0 0 4px !important;
        padding: 9px 10px !important;
        align-items: center !important;
        flex-direction: row !important;
        gap: 8px !important;
        border-radius: 15px !important;
        box-shadow: 0 12px 30px rgba(20, 59, 51, .18) !important;
    }
    [data-mobile-patient-form] .patient-unified-submit > div:first-child { display: none !important; }
    [data-mobile-patient-form] .patient-form-intro-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr) !important;
        gap: 8px !important;
    }
    [data-mobile-patient-form] .patient-form-intro-actions .btn {
        width: 100% !important;
        min-height: 44px !important;
        justify-content: center !important;
        pointer-events: auto !important;
        touch-action: manipulation;
    }
    [data-mobile-patient-save] { position: relative; z-index: 2; }

    /* Denser global mobile typography. Inputs remain 16px to prevent iOS zoom. */
    body.app-body,
    .content { font-size: 13px; }
    .topbar-title-block h1 { font-size: 16px; }
    .page-header h2,
    .section-header h2,
    .card-header h2 { font-size: 16px; }
    .content h2 { font-size: 16px; }
    .content h3 { font-size: 14px; }
    .content p { font-size: 12.5px; line-height: 1.45; }
    .content small,
    .field-help { font-size: 10.5px; line-height: 1.4; }
    .eyebrow { font-size: 9px !important; letter-spacing: .07em; }

    .btn { padding: 8px 11px; font-size: 12.5px; }
    .icon-button,
    .icon-action { font-size: 12px; }
    label.field > span,
    .field-label,
    .field legend { font-size: 11px; }

    table.mobile-card-table td {
        min-height: 35px;
        padding: 6px 0 !important;
        font-size: 12px;
        line-height: 1.35;
    }
    table.mobile-card-table td::before { font-size: 8.5px; }
    table.mobile-card-table td strong { font-size: 12.5px; }
    table.mobile-card-table tr { padding: 4px 10px; border-radius: 13px; }

    .badge,
    .status-badge,
    .service-chip { font-size: 9.5px; }
    .mobile-more-sheet > header strong { font-size: 16px; }
    .mobile-more-grid > a,
    .mobile-more-grid > button { min-height: 66px; font-size: 12px; }

    [data-mobile-patient-form] .patient-form-intro { padding: 13px 14px; }
    [data-mobile-patient-form] .patient-form-intro h2 { font-size: 18px; }
    [data-mobile-patient-form] .patient-form-intro p:not(.eyebrow) { font-size: 11px; }
    [data-mobile-patient-form] .patient-unified-sections { gap: 11px; }
    [data-mobile-patient-form] .patient-unified-section-head { padding: 12px 13px; gap: 10px; }
    [data-mobile-patient-form] .patient-unified-section-head .section-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
    [data-mobile-patient-form] .patient-unified-section-head h2 { font-size: 15px; }
    [data-mobile-patient-form] .patient-unified-section-head p:not(.eyebrow) { font-size: 10.5px; }
    [data-mobile-patient-form] .patient-unified-grid { padding: 13px; gap: 11px; }
    [data-mobile-patient-form] .patient-unified-photo-layout { padding: 13px; }

    .appointment-modal .modal-header h2 { font-size: 17px; }
    .appointment-mobile-section-title strong,
    .appointment-mobile-section-title > div > strong { font-size: 13.5px; }
    .appointment-modal label.field > span { font-size: 11.5px; }
    .appointment-modal .selected-patient-card strong { font-size: 12.5px; }
    .appointment-modal .modal-footer .btn { font-size: 13px; }
}

@media (max-width: 420px) {
    [data-mobile-patient-form] .patient-form-intro p:not(.eyebrow),
    [data-mobile-patient-form] .patient-unified-section-head p:not(.eyebrow) { display: none; }
    [data-mobile-patient-form] .patient-unified-section-head { align-items: center; }
}


/* DentalPro 3.11.14 — simplified mobile patient register */
.patient-records-mobile-create {
    display: none;
}

.patient-record-name-link {
    color: inherit;
    font-weight: 800;
    text-decoration: none;
}

.patient-record-name-link:hover,
.patient-record-name-link:focus-visible {
    color: #0f766e;
    text-decoration: underline;
}

@media (max-width: 900px) {
    body[data-active-menu="patients"] .patient-records-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
    }

    body[data-active-menu="patients"] .patient-records-toolbar .section-title-with-icon {
        min-width: 0;
    }

    body[data-active-menu="patients"] .patient-records-mobile-create {
        min-height: 42px;
        padding: 8px 11px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
    }

    body[data-active-menu="patients"] .patient-records-mobile-create span {
        font-size: 12px;
    }

    body[data-active-menu="patients"] .patient-records-search {
        grid-column: 1 / -1;
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 7px;
    }

    body[data-active-menu="patients"] .patient-records-search .search-input {
        min-width: 0;
    }

    body[data-active-menu="patients"] .patient-records-search > .btn {
        width: 42px;
        min-width: 42px;
        padding: 0;
    }

    body[data-active-menu="patients"] .patient-records-search > .btn span {
        display: none;
    }

    body[data-active-menu="patients"] .patient-records-search > .btn.btn-ghost {
        grid-column: 1 / -1;
        width: 100%;
    }

    body[data-active-menu="patients"] .patient-records-search > .btn.btn-ghost span {
        display: inline;
    }

    body[data-active-menu="patients"] .patient-records-table tbody {
        gap: 7px;
    }

    body[data-active-menu="patients"] .patient-records-table tr {
        min-height: 48px;
        padding: 0;
        border-radius: 12px;
        overflow: hidden;
    }

    body[data-active-menu="patients"] .patient-records-table td {
        display: none !important;
    }

    body[data-active-menu="patients"] .patient-records-table td:nth-child(2) {
        min-height: 48px;
        padding: 0 !important;
        display: block !important;
        border: 0 !important;
        text-align: left !important;
    }

    body[data-active-menu="patients"] .patient-records-table td:nth-child(2)::before {
        display: none !important;
    }

    body[data-active-menu="patients"] .patient-record-person {
        width: 100%;
        display: block;
    }

    body[data-active-menu="patients"] .patient-record-photo,
    body[data-active-menu="patients"] .patient-record-avatar,
    body[data-active-menu="patients"] .patient-record-name small {
        display: none !important;
    }

    body[data-active-menu="patients"] .patient-record-name {
        width: 100%;
        display: block;
    }

    body[data-active-menu="patients"] .patient-record-name-link {
        width: 100%;
        min-height: 48px;
        padding: 13px 14px;
        display: flex;
        align-items: center;
        color: #183f39;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.25;
        text-decoration: none;
    }

    body[data-active-menu="patients"] .patient-record-name-link:active {
        background: #edf8f4;
        color: #0f766e;
    }
}

/* Multi-clinic platform mobile refinements */
@media(max-width:760px){body[data-active-menu="platform-clinics"] .content{padding-bottom:92px}.platform-overview{margin-bottom:12px}.platform-new-clinic{width:100%}.platform-form-section{padding:13px}.platform-form-section>header{margin-bottom:11px}.platform-form-section .form-grid{grid-template-columns:1fr}.platform-form-section .field.full,.platform-form-section .check-field.full{grid-column:auto}.platform-clinic-dialog .modal-header{padding:15px}.platform-clinic-dialog .modal-footer{padding-bottom:calc(12px + env(safe-area-inset-bottom))}}

@media (max-width: 760px) {
    .platform-manual-mode { width: 100%; justify-content: center; font-size: 10.5px; text-align: center; }
}


/* DentalPro 3.13.5 — patient filters on mobile */
@media (max-width: 760px) {
    body[data-active-menu="patients"] .patient-records-search {
        grid-template-columns: minmax(0, 1fr) 112px 42px;
    }
    body[data-active-menu="patients"] .patient-records-status-filter {
        width: 112px;
        min-width: 0;
    }
    body[data-active-menu="patients"] .patient-records-status-filter select {
        min-height: 42px;
        padding: 8px 25px 8px 9px;
        font-size: 11px;
    }
    body[data-active-menu="patients"] .patient-records-search > .btn.btn-ghost {
        grid-column: 1 / -1;
    }
    body[data-active-menu="patients"] .topbar-title-block h1 {
        max-width: calc(100vw - 122px);
        font-size: 13px;
    }
}
@media (max-width: 390px) {
    body[data-active-menu="patients"] .patient-records-search {
        grid-template-columns: minmax(0, 1fr) 96px 40px;
        gap: 5px;
    }
    body[data-active-menu="patients"] .patient-records-status-filter { width: 96px; }
    body[data-active-menu="patients"] .patient-records-status-filter select { font-size: 10px; }
}


/* DentalPro 3.13.6 — compact patient identity on mobile */
@media (max-width: 760px) {
    body[data-active-menu="patients"] .patient-dossier-topbar { max-width: calc(100vw - 118px); }
    body[data-active-menu="patients"] .patient-dossier-title { gap: 4px; overflow: hidden; }
    body[data-active-menu="patients"] .patient-dossier-number { min-height: 24px; padding: 4px 7px; font-size: 7.5px; }
    body[data-active-menu="patients"] .patient-dossier-name { max-width: 42vw; font-size: 12px; }
    body[data-active-menu="patients"] .patient-dossier-meta { min-height: 24px; padding: 4px 6px; font-size: 7.5px; }
    body[data-active-menu="patients"] .patient-dossier-meta .ui-icon { display: none; }
    body[data-active-menu="patients"] .patient-record-name-link { min-height: 43px; padding: 10px 12px; font-size: 12px; }
}
@media (max-width: 430px) {
    body[data-active-menu="patients"] .patient-dossier-meta:not(.patient-dossier-age) { display: none; }
    body[data-active-menu="patients"] .patient-dossier-name { max-width: 38vw; }
}

/* DentalPro 3.13.8 — mobile Reviews register */
@media (max-width: 760px){
    .reviews-register-card{border-radius:14px}
    .reviews-toolbar{align-items:stretch;flex-direction:column;padding:12px}
    .reviews-filter-form{display:grid;grid-template-columns:1fr 1fr;gap:8px}
    .reviews-search-field{grid-column:1/-1}
    .reviews-search-field input,.reviews-status-field select{height:42px;font-size:12px}
    .reviews-filter-form .btn{min-height:42px;padding:8px 10px;font-size:10px}
    .reviews-filter-form>.btn-light{display:flex}
    .reviews-total-count{align-self:flex-end;padding:5px 9px}.reviews-total-count strong{font-size:15px}
    .reviews-table-wrap{overflow:visible}
    .reviews-table{display:block;min-width:0}
    .reviews-table thead{display:none}
    .reviews-table tbody{display:grid;gap:9px;padding:0 10px 12px}
    .reviews-table tr{display:grid;grid-template-columns:1fr auto;gap:7px 12px;padding:12px;border:1px solid #dce8e5;border-radius:13px;background:#fff;box-shadow:0 5px 15px rgba(18,65,56,.05)}
    .reviews-table td{display:block;padding:0!important;border:0!important;font-size:11px;background:transparent!important}
    .reviews-table td:nth-child(1){display:none}
    .reviews-table td:nth-child(2){grid-column:2;grid-row:1;text-align:right}
    .reviews-table td:nth-child(3){grid-column:1;grid-row:1}
    .reviews-table td:nth-child(4){grid-column:1/-1;grid-row:2}
    .reviews-table td:nth-child(5){display:block;grid-column:1/-1;grid-row:3}
    .reviews-table td:nth-child(6){grid-column:1;grid-row:4}
    .reviews-table td:nth-child(7){grid-column:2;grid-row:4;text-align:right}
    .reviews-table td:nth-child(8){grid-column:1/-1;grid-row:5}
    .review-patient strong{font-size:12px}.review-patient small,.review-date small,.table-subtext{font-size:9px}
    .review-reason{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;color:#5d706c}
    .reviews-row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.reviews-row-actions .btn{width:100%;justify-content:center;min-height:38px}
    .reviews-row-actions form{width:100%}
    .reviews-pagination{padding:11px 12px}.reviews-pagination>span{font-size:10px}.reviews-pagination .btn span{display:none}
}
