/* Shared mobile layout for the staff, veterinarian, and pet owner portals. */
.petowner-notification-panel { position: fixed; top: 80px; right: 16px; width: min(380px, calc(100vw - 32px)); max-height: calc(100dvh - 100px); overflow-y: auto; z-index: 3800; background: #fff; border: 1px solid #dfe9e1; border-radius: 14px; padding: 18px; box-sizing: border-box; box-shadow: 0 12px 36px #173b2930; }
.petowner-notification-panel[hidden] { display: none; }
.petowner-notification-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.petowner-notification-heading h3 { margin: 0; font: 700 1rem 'Lora', serif; }
#mobilePanelUnreadBadge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #fff4d6; color: #8b6914; font: 800 .65rem 'Nunito', sans-serif; }
#mobilePanelUnreadBadge[hidden] { display: none; }
.petowner-notification-panel .notification { display: flex; gap: 11px; padding: 13px 8px; border-bottom: 1px solid #edf1ed; border-radius: 8px; cursor: pointer; transition: .15s; }
.petowner-notification-panel .notification:last-child { border-bottom: 0; }
.petowner-notification-panel .notification:hover { background: #f6f9f6; }
.petowner-notification-panel .notification.unread { background: linear-gradient(90deg, #fff9e7, transparent); margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.petowner-notification-panel .notif-icon { width: 34px; height: 34px; border-radius: 50%; background: #edf4ef; color: #1e3b2b; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.petowner-notification-panel .notif-title { font-size: .8rem; font-weight: 800; }
.petowner-notification-panel .notif-msg { margin: 0; font-size: .76rem; color: #7a8a7e; line-height: 1.4; }
.petowner-notification-panel .notif-time { font-size: .68rem; color: #9ca79e; }
.petowner-notification-modal { display: none; position: fixed; inset: 0; z-index: 5000; background: rgb(0 0 0 / 45%); padding: 18px; align-items: center; justify-content: center; }
.petowner-notification-modal.active { display: flex; }
.petowner-notification-detail { width: 420px; max-width: 100%; max-height: calc(100dvh - 36px); overflow-y: auto; background: #fff; border-radius: 13px; padding: 24px; text-align: center; overflow-wrap: anywhere; box-shadow: 0 14px 38px rgb(0 0 0 / 22%); }
#mobileNotificationIcon { width: 46px; height: 46px; border-radius: 50%; background: #edf4ef; color: #1e3b2b; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.petowner-notification-detail h3 { font-family: 'Lora', serif; margin: 0 0 8px; }
.petowner-notification-detail p { margin: 0 0 7px; font-size: .84rem; color: #58645b; line-height: 1.55; }
#mobileNotificationTime { display: block; font-size: .7rem; color: #98a39a; margin-bottom: 18px; }
.petowner-notification-actions { display: flex; gap: 8px; }
.petowner-notification-actions button { flex: 1; padding: 9px; border: 1px solid #ddd; border-radius: 7px; background: #fff; color: #555; font-family: inherit; font-weight: 800; cursor: pointer; }
#toggleMobileNotificationState { background: #1e3b2b; border-color: #1e3b2b; color: #fff; }
.petowner-notification-heading button { padding: 6px 9px; border: 1px solid #cfd9d0; border-radius: 7px; background: #fff; color: #1e3b2b; font: 800 .7rem 'Nunito', sans-serif; cursor: pointer; }
.petowner-notification-heading button:hover { background: #f6f9f6; }
@media (max-width: 520px) { .petowner-notification-actions { flex-direction: column; } }
.mobile-notification-bell { display: none; }
.mobile-notification-bell { position: relative; text-decoration: none; }
@media (max-width: 900px) {
    .oasis-has-sidebar .mobile-notification-bell { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #dfe9e1; border-radius: 12px; background: #fff; color: #183e2b; font-size: 20px; cursor: pointer; }
}
.mobile-notification-count { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; background: #c0392b; color: #fff; font: 800 10px/15px 'Nunito', sans-serif; text-align: center; }
@media (max-width: 900px) {
    .oasis-has-sidebar .oasis-mobile-bar .mobile-notification-bell { margin-left: auto; flex-shrink: 0; }
    .sidebar-notification-count { display: none; }
    #dashboardNotifications { display: none !important; }
    #dashboardNotifications.mobile-notifications-open { display: block !important; position: fixed; top: 70px; right: 16px; width: min(380px, calc(100vw - 32px)); max-height: calc(100dvh - 94px); overflow-y: auto !important; z-index: 3800; background: #fff; box-shadow: 0 12px 36px #173b2930; }
    body.oasis-has-sidebar { background: #f5f8f5; }
    body.oasis-has-sidebar.oasis-nav-open { overflow: hidden !important; }
    body.oasis-has-sidebar:has(.logout-modal-overlay.active) { overflow: hidden !important; }
    .oasis-has-sidebar .logout-modal-overlay {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        z-index: 5000;
        background: rgb(10 22 15 / 40%);
        backdrop-filter: none;
    }
    .oasis-has-sidebar:has(.logout-modal-overlay.active) .oasis-sidebar-backdrop { visibility: hidden; opacity: 0; transition: none; }
    .oasis-has-sidebar .oasis-mobile-bar { background: #fff; color: #183e2b; border-bottom: 1px solid #e0e9e2; box-shadow: 0 2px 12px #173b2908; }
    .oasis-has-sidebar .oasis-menu-toggle { width: 44px; height: 44px; color: #183e2b; background: #eef4ef; border-color: #dfe9e1; flex-shrink: 0; }
    .oasis-has-sidebar .content-area { padding: 0 16px 32px !important; }
    .oasis-has-sidebar .topbar { padding: 20px 16px 16px !important; background: transparent; }
    .oasis-has-sidebar .topbar h1 { font-size: 1.4rem !important; line-height: 1.25 !important; }
    .oasis-has-sidebar .topbar p { font-size: .85rem; }
    .oasis-has-sidebar .topbar .oasis-topbar-tools {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 128px;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }
    .oasis-has-sidebar .topbar .oasis-topbar-tools .search-bar {
        width: 100% !important;
        min-width: 0;
        height: 48px;
        min-height: 48px;
        padding: 0 10px;
        gap: 8px;
        border-radius: 10px;
        display: flex;
        align-items: center;
    }
    .oasis-has-sidebar .topbar .search-bar input {
        min-height: 0;
        height: 100%;
        padding: 0;
        font-size: 16px !important;
    }
    .oasis-has-sidebar .topbar .oasis-live-datetime {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3px;
        width: 100%;
        min-width: 0;
        height: 48px;
        box-sizing: border-box;
        padding: 5px 6px;
        text-align: center;
    }
    .oasis-has-sidebar .topbar .oasis-live-date { font-size: .6rem; letter-spacing: 0; line-height: 1.2; }
    .oasis-has-sidebar .topbar .oasis-topbar-tools > .oasis-live-datetime:only-child { grid-column: 2; }
    .oasis-has-sidebar .topbar .oasis-live-time { font-size: .75rem; line-height: 1.2; margin: 0; }
    .oasis-has-sidebar :is(.stats-grid, .stats-grid-3, .stats-grid-4, .stats) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        margin-bottom: 20px;
        align-items: stretch;
    }
    .oasis-has-sidebar :is(.stat-card, .stat) {
        min-width: 0;
        padding: 16px 12px !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 14px #173b290a;
        height: auto;
        text-align: left;
    }
    .oasis-has-sidebar :is(.stat-title, .stat-label, .stat-card > small, .stat > small) {
        display: block;
        font-size: .72rem !important;
        line-height: 1.45;
        letter-spacing: .025em;
        white-space: normal;
        color: #54645b;
        margin-bottom: 8px;
    }
    .oasis-has-sidebar :is(.stat-value, .stat-card > strong, .stat > strong) {
        display: block;
        font-size: clamp(1.25rem, 4.8vw, 1.85rem) !important;
        line-height: 1.2;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
        letter-spacing: -.025em;
        white-space: normal;
        overflow-wrap: anywhere;
        margin: 0;
    }
    .oasis-has-sidebar :is(.stat-subtext, .stat-indicator, .stat-card .trend) { font-size: .72rem !important; line-height: 1.45; margin-top: 8px; white-space: normal; }
    .oasis-has-sidebar :is(.stats-grid, .stats-grid-3, .stats-grid-4, .stats) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .oasis-has-sidebar :is(.grid-2, .grid-2-col, .grid-3-col, .analytics-overview, .diagnostic-section, .rule-grid, .records-grid, .reports-layout, .booking-layout, .dashboard-grid) {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }
    .oasis-has-sidebar :is(.panel, .profile-card, .pet-card, .upcoming-card, .new-pet-box, .guide-box, .card, .receipt) {
        border-radius: 16px !important;
        padding: 16px !important;
        min-width: 0;
        box-shadow: 0 4px 16px #173b290a;
    }
    .oasis-has-sidebar .panel:has(.table-wrap, .table-responsive) { overflow: visible !important; }
    .oasis-has-sidebar :is(.table-wrap, .table-responsive) { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid #e3eae5; border-radius: 10px; }
    .oasis-has-sidebar table :is(th, td) { padding: 12px 10px; font-size: .8rem; line-height: 1.45; }
    .oasis-has-sidebar table th { background: #f0f5f1; }
    .oasis-has-sidebar :is(.panel-head, .panel-header, .panel-header-row, .section-header, .toolbar, .filters-row) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
    .oasis-has-sidebar :is(.panel, .card) :is(h2, h3) { line-height: 1.35; overflow-wrap: anywhere; }
    .oasis-has-sidebar :is(.panel-sub, .empty) { font-size: .8rem !important; line-height: 1.5; }
    .oasis-has-sidebar .empty { padding: 24px 12px; }
    .oasis-has-sidebar :is(.form-row, .form-grid, .modal-grid) { grid-template-columns: minmax(0, 1fr) !important; gap: 14px; }
    .oasis-has-sidebar :is(.form-row, .form-grid, .modal-grid) > :is(.full, .full-width) { grid-column: 1 / -1 !important; }
    .oasis-has-sidebar :is(.form-group, .field) { min-width: 0; }
    .oasis-has-sidebar :is(.form-control, select, input:not([type=checkbox]):not([type=radio]):not([type=hidden])) { min-height: 44px; border-radius: 10px; }
    .oasis-has-sidebar :is(button, .btn, .btn-gold, .back-link, .action-btn, .tab-btn) { min-height: 44px; }
    .oasis-has-sidebar :is(.tabs, .tabs-row, .filter-tabs) { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; gap: 8px; padding-bottom: 6px; }
    .oasis-has-sidebar :is(.tabs, .tabs-row, .filter-tabs) > * { flex-shrink: 0; }
    .oasis-has-sidebar .portal-filter { flex-wrap: wrap; gap: 8px; }
    .oasis-has-sidebar .portal-filter select { flex: 1; min-width: 0; }
    .oasis-has-sidebar .slots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
    .oasis-has-sidebar :is(.welcome-banner, .banner-header) { padding: 20px 16px !important; border-radius: 16px; }
    .oasis-has-sidebar :is(.modal-card, .action-modal-card, .logout-modal-card) { max-height: calc(100dvh - 32px) !important; padding: 20px 16px; border-radius: 18px; }
    .oasis-has-sidebar .modal-actions { gap: 10px; }
    .oasis-has-sidebar .modal-actions > button { width: 100%; }
}
@media (max-width: 359px) {
    .oasis-has-sidebar :is(.stats-grid, .stats-grid-3, .stats-grid-4, .stats) { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (hover: none) {
    .oasis-has-sidebar :is(.stat-card, .stat, .panel, .profile-card, .pet-card, .upcoming-card, .card):hover { transform: none; }
}
