/* UIDM Hub reusable components */

/* Global Standardized KPI Card Component */
.admin-kpi-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
    gap: 0.9rem !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
}

.admin-kpi-row-operations {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 1199.98px) {
    .admin-kpi-row {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767.98px) {
    .admin-kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .admin-kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
}

.stat-card,
.kpi-card,
.admin-kpi-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    min-height: 96px !important;
    height: 100% !important;
    width: 100% !important;
    padding: 0.75rem 0.65rem !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

.stat-card:hover,
.kpi-card:hover,
.admin-kpi-card:hover {
    transform: translateY(-2px) !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.stat-card .card-body {
    padding: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
}

.stat-card-icon,
.staff-kpi-icon,
.admin-kpi-icon,
.kpi-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
    margin-top: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.stat-card-icon.primary,
.staff-kpi-icon.primary,
.admin-kpi-icon.primary,
.kpi-icon.primary { background: rgba(29, 78, 216, 0.08) !important; color: #1d4ed8 !important; }

.stat-card-icon.success,
.staff-kpi-icon.success,
.admin-kpi-icon.success,
.kpi-icon.success { background: rgba(15, 159, 110, 0.1) !important; color: #0f9f6e !important; }

.stat-card-icon.info,
.staff-kpi-icon.info,
.admin-kpi-icon.info,
.kpi-icon.info { background: rgba(8, 145, 178, 0.1) !important; color: #0891b2 !important; }

.stat-card-icon.warning,
.staff-kpi-icon.warning,
.admin-kpi-icon.warning,
.kpi-icon.warning { background: #fef3c7 !important; color: #d97706 !important; }

.stat-card-icon.danger,
.staff-kpi-icon.danger,
.admin-kpi-icon.danger,
.kpi-icon.danger { background: #ffe4e6 !important; color: #e11d48 !important; }

.stat-card-icon.secondary,
.staff-kpi-icon.secondary,
.admin-kpi-icon.secondary,
.kpi-icon.secondary { background: #f1f5f9 !important; color: #475569 !important; }

.stat-card-content,
.kpi-card > span:not(.kpi-icon) {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.stat-card-value,
.kpi-value {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1 !important;
    margin-bottom: 0.15rem !important;
}

.stat-card-title,
.kpi-title,
.kpi-label {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    display: block !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
    hyphens: manual !important;
}

.stat-card-subtitle,
.kpi-subtitle {
    display: block !important;
    margin-top: 0.3rem !important;
    color: #64748b !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
}

.quick-action,
.quick-nav-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    min-height: 76px;
    padding: 1rem;
    border: 1px solid #c6d9f5;
    border-radius: var(--uidm-radius-lg);
    background: linear-gradient(135deg, #eef4ff, #f8fbff);
    color: var(--uidm-navy);
    box-shadow: var(--uidm-shadow-sm);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.quick-action:hover,
.quick-action:focus,
.quick-nav-btn:hover,
.quick-nav-btn:focus {
    transform: translateY(-2px);
    border-color: #a9c5ef;
    color: var(--uidm-primary-hover);
    box-shadow: var(--uidm-shadow);
    text-decoration: none;
}

.quick-action .qa-icon,
.quick-nav-pill {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: var(--uidm-radius-pill);
    background: #ffffff;
    border: 1px solid #bfd4f3;
    color: var(--uidm-primary-hover);
    font-weight: 800;
}

/* Notification Attachment Action Buttons */
.nc-download-btn,
.nc-download-btn:link,
.nc-download-btn:visited {
    background-color: var(--uidm-primary, #1d4ed8) !important;
    border-color: var(--uidm-primary, #1d4ed8) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.nc-download-btn:hover,
.nc-download-btn:focus,
.nc-download-btn:focus-visible {
    background-color: var(--uidm-primary-hover, #1e40af) !important;
    border-color: var(--uidm-primary-hover, #1e40af) !important;
    color: #ffffff !important;
}

/* Global Status & Category Badges */
.badge-pending,
.badge-pending_dept_head,
.badge-open,
.badge-draft {
    background: rgba(201, 130, 8, 0.14) !important;
    color: #7a4d05 !important;
}

.badge-approved,
.badge-completed,
.badge-resolved,
.badge-published,
.badge-active,
.badge-good {
    background: rgba(15, 159, 110, 0.13) !important;
    color: #066347 !important;
}

.badge-rejected,
.badge-danger,
.badge-damaged,
.badge-lost,
.badge-critical {
    background: rgba(220, 53, 69, 0.13) !important;
    color: #9f1f2d !important;
}

.badge-general {
    background: rgba(29, 78, 216, 0.12) !important;
    color: #1d4ed8 !important;
}

.badge-bug {
    background: rgba(201, 130, 8, 0.14) !important;
    color: #7a4d05 !important;
}

.badge-feature_request {
    background: rgba(111, 66, 193, 0.13) !important;
    color: #5b21b6 !important;
}

.badge-read {
    background: rgba(82, 105, 135, 0.13) !important;
    color: #31435e !important;
}

.badge-replied {
    background: rgba(15, 159, 110, 0.13) !important;
    color: #066347 !important;
}

.badge-cancelled,
.badge-closed,
.badge-archived,
.badge-inactive,
.badge-unavailable {
    background: rgba(82, 105, 135, 0.13) !important;
    color: #31435e !important;
}

.badge-checked_in,
.badge-in_progress,
.badge-maintenance,
.badge-info,
.badge-fair {
    background: rgba(29, 78, 216, 0.12) !important;
    color: #163fae !important;
}

.table .btn-outline-secondary {
    color: #475569 !important;
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    transition: all 0.2s ease-in-out !important;
}

.table .btn-outline-secondary:hover,
.table .btn-outline-secondary:focus {
    color: #ffffff !important;
    background-color: #0f172a !important;
    border-color: #0f172a !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15) !important;
}

.table .btn-outline-danger {
    color: #dc2626 !important;
    background-color: #ffffff !important;
    border-color: #fca5a5 !important;
    transition: all 0.2s ease-in-out !important;
}

.table .btn-outline-danger:hover,
.table .btn-outline-danger:focus {
    color: #ffffff !important;
    background-color: #e11d48 !important;
    border-color: #e11d48 !important;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25) !important;
}
.modal .btn-close,
.eq-summary-modal-dialog .btn-close,
.equipment-booking-modal .btn-close {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    background-color: transparent !important;
    opacity: 0.6 !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease !important;
}

.modal .btn-close:hover,
.eq-summary-modal-dialog .btn-close:hover,
.equipment-booking-modal .btn-close:hover {
    opacity: 1 !important;
    transform: rotate(90deg) scale(1.15) !important;
}

.modal .btn-close:focus,
.eq-summary-modal-dialog .btn-close:focus,
.equipment-booking-modal .btn-close:focus {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}

/* Clean Integrated Password Toggle Button Styling */
.input-group .btn-pwd-toggle {
    background-color: var(--bs-body-bg, #f8fafc);
    border: 1px solid #dee2e6;
    border-left: none;
    color: #64748b;
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.input-group .input-group-text + .form-control-pwd {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.input-group .btn-pwd-toggle:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}
.input-group:focus-within .btn-pwd-toggle {
    border-color: #86b7fe;
    background-color: #ffffff;
}
.input-group .form-control-pwd {
    border-right: none;
}
.input-group:focus-within .form-control-pwd {
    border-color: #86b7fe;
    box-shadow: none;
}
.modal .btn-close:focus-visible {
    box-shadow: none !important;
    outline: none !important;
    background-color: transparent !important;
}

.modal .btn-close:hover {
    transform: rotate(90deg) scale(1.15);
    background-color: transparent !important;
    opacity: 1 !important;
}

/* Pagination Layout & Styling Improvements */
nav:has(.pagination) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

nav:has(.pagination) > div:first-child {
    display: none;
}

.pagination {
    margin-bottom: 0;
    gap: 0.35rem;
    align-items: center;
}

.pagination .page-item .page-link {
    border-radius: 10px !important;
    border: 1px solid #dbe3ee;
    color: var(--uidm-navy, #0f2240);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 0.85rem;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.15s ease;
}

.pagination .page-item .page-link:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.pagination .page-item.active .page-link {
    background-color: var(--uidm-primary, #1d4ed8);
    border-color: var(--uidm-primary, #1d4ed8);
    color: #ffffff;
}

.pagination .page-item.disabled .page-link {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    opacity: 0.7;
    box-shadow: none;
}

.badge-low {
    background: rgba(15, 159, 110, 0.13) !important;
    color: #066347 !important;
}

.badge-normal,
.badge-medium {
    background: rgba(29, 78, 216, 0.12) !important;
    color: #163fae !important;
}

.badge-high,
.badge-urgent {
    background: rgba(201, 130, 8, 0.14) !important;
    color: #7a4d05 !important;
}

.badge-urgent {
    background: rgba(220, 53, 69, 0.13) !important;
    color: #9f1f2d !important;
}

.badge-booking {
    background: rgba(29, 78, 216, 0.12) !important;
    color: #1d4ed8 !important;
}

.badge-feedback {
    background: rgba(8, 145, 178, 0.12) !important;
    color: #0891b2 !important;
}

.badge-task {
    background: rgba(111, 66, 193, 0.12) !important;
    color: #6f42c1 !important;
}

.badge-return {
    background: rgba(217, 119, 6, 0.12) !important;
    color: #d97706 !important;
}

.badge-available {
    background: rgba(15, 159, 110, 0.13) !important;
    color: #066347 !important;
}

/* Standardized Active Filter Chip Shadow */
.notification-filter-chips .btn,
.notification-filter-chips .badge,
.notification-filter-chips .btn-primary,
.btn-primary.rounded-pill {
    box-shadow: none !important;
}

/* Custom Professional Colors for Filter Chips */
.notification-filter-chips .btn-info {
    background-color: #0891b2 !important;
    border-color: #0891b2 !important;
    color: #ffffff !important;
}

/* Global Empty State Styling */
.empty-state {
    padding: 3.5rem 1.5rem !important;
    text-align: center !important;
}

.empty-state .empty-icon {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    background: #eef2ff !important;
    color: var(--uidm-primary, #1d4ed8) !important;
    font-size: 1.8rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1rem auto !important;
}

.empty-state h5 {
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 0.35rem !important;
    font-size: 1.1rem !important;
}

.empty-state p {
    color: #64748b !important;
    font-size: 0.875rem !important;
    margin-bottom: 0 !important;
}
/* ===== Global Notification Popup Animation (ported from uidm_new) ===== */
#globalNotificationContainer {
    position: fixed;
    top: -400px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    transition: top 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    opacity: 0;
    pointer-events: auto;
    width: 400px;
    max-width: calc(100vw - 2rem);
}
#globalNotificationContainer.show {
    top: 24px;
    opacity: 1;
}
#globalNotificationContainer * {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ==========================================================================
   Global Native Mobile Carousel / Page-Slider (Physical Unit Breakdown Style)
   ========================================================================== */
/* ==========================================================================
   Global Native Mobile Carousel / Page-Slider (Physical Unit Breakdown Style)
   ========================================================================== */
.mobile-page-slider-track {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 0 !important;
}

.mobile-page-slider-track::-webkit-scrollbar {
    display: none !important;
}

.mobile-page-slider-pane {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    padding: 0.85rem 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

#globalNotificationContainer .anim-wrapper {
    background: #fff;
    border: 1px solid var(--uidm-border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-radius: var(--uidm-radius-lg);
    overflow: hidden;
    animation: notif-popup-slide 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#globalNotificationContainer .anim-close {
    position: absolute;
    top: 6px;
    right: 10px;
    border: none;
    background: transparent;
    color: inherit;
    opacity: 0.6;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 5;
    padding: 2px 6px;
    border-radius: 6px;
    transition: opacity 0.15s;
}
#globalNotificationContainer .anim-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.08);
}
@keyframes notif-popup-slide {
    0% { transform: translateY(-60px) scale(0.92); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Global UIDM Custom Fixed Tooltip Styling (Exact Visual Design preserved) */
.uidm-custom-tooltip {
    position: fixed;
    z-index: 1090;
    max-width: 280px;
    padding: 0.65rem 0.9rem;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    border-radius: 8px;
    font-size: 0.825rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease-out, transform 0.12s ease-out;
    transform: translateY(4px);
}

.uidm-custom-tooltip.show {
    opacity: 1;
    visibility: visible !important;
    transform: translateY(0);
}

/* Global Bootstrap Tooltip Custom Styling (Legacy Fallback) */
.tooltip-inner {
    max-width: 280px;
    padding: 0.65rem 0.9rem;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    border-radius: 8px;
    font-size: 0.825rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
}
.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #cbd5e1;
}
.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #cbd5e1;
}


/* iOS-inspired Clean Event Preview Button (Dark Glass Media Player Style) */
.btn-ios-preview {
    background: #1c1c1e !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    letter-spacing: -0.01em !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 9999px !important;
    padding: 0.42rem 1.05rem 0.42rem 0.5rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-wrap: nowrap !important;
}

.btn-ios-preview:hover,
.btn-ios-preview:focus {
    transform: scale(1.03) translateY(-1px) !important;
    background: #2c2c2e !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
    color: #ffffff !important;
}

.btn-ios-preview:active {
    transform: scale(0.97) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
}

.btn-ios-preview .ios-play-icon {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    margin-right: 0.05rem !important;
    backdrop-filter: blur(4px) !important;
}

.btn-ios-preview .ios-play-icon i {
    margin-left: 2px !important;
}

/* iOS-inspired Segmented Media Card Selector */
.ios-media-card {
    background: #ffffff !important;
    border: 1px solid var(--uidm-border-soft, #e1e9f7) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ios-media-card .ios-check-badge {
    width: 22px;
    height: 22px;
    border: 2px solid var(--uidm-border, #cddcf1);
    background: transparent;
    color: transparent;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.ios-media-card .card-title-text {
    color: var(--uidm-navy, #10223d);
}

.ios-media-card .card-desc-text {
    color: var(--uidm-slate-500, #6f82a3) !important;
    font-weight: 400 !important;
}

/* Active State via Bootstrap .btn-check */
.btn-check:checked + .ios-media-card {
    background: #ffffff !important;
    border-color: var(--uidm-primary, #1d4ed8) !important;
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.12) !important;
}

.btn-check:checked + .ios-media-card .ios-check-badge {
    background: var(--uidm-primary, #1d4ed8);
    border-color: var(--uidm-primary, #1d4ed8);
    color: #ffffff;
}

/* Standardized Notification Filter Bar Component (Admin & Staff) */
.notification-toolbar-container {
    background: #ffffff;
    border: 1px solid var(--uidm-border-soft, #e2e8f0);
    border-radius: var(--uidm-radius-lg, 16px);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    padding: 0.75rem 1rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.notification-toolbar-container .notification-search-box {
    max-width: 380px;
    min-width: 220px;
}

.notification-toolbar-container .notification-search-box .input-group-text {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
    border-top-left-radius: 9999px;
    border-bottom-left-radius: 9999px;
    padding-left: 1rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.notification-toolbar-container .notification-search-box .form-control {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    font-size: 0.875rem;
    color: #1e293b;
    border-top-right-radius: 9999px;
    border-bottom-right-radius: 9999px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    transition: all 0.15s ease;
}

.notification-toolbar-container .notification-search-box .form-control:focus {
    background-color: #ffffff;
    border-color: var(--uidm-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.notification-toolbar-container .notification-search-box .form-control:focus + .input-group-text,
.notification-toolbar-container .notification-search-box:focus-within .input-group-text {
    background-color: #ffffff;
    border-color: var(--uidm-primary, #2563eb);
    color: var(--uidm-primary, #2563eb);
}

/* Modern Segmented Filter Chips (Wrap & Responsive Grid) */
.notification-filter-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.2rem 0;
    max-width: 100%;
    overflow: visible !important;
}

.notification-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.84rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.notification-filter-chip i {
    font-size: 0.95rem;
    transition: color 0.18s ease;
}

.notification-filter-chip:hover {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.notification-filter-chip:focus-visible {
    outline: 2px solid var(--uidm-primary, #2563eb);
    outline-offset: 2px;
}

/* Active State */
.notification-filter-chip.active,
.notification-filter-chip.active:hover {
    background-color: var(--uidm-primary, #2563eb) !important;
    border-color: var(--uidm-primary, #2563eb) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.notification-filter-chip.active i {
    color: #ffffff !important;
}

/* Equipment Cart Drawer Overlay & Slide Panel (iOS Inspired) */
.eq-cart-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 1070 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s !important;
}

.eq-cart-drawer-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    width: min(440px, 100vw) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #f8fafc !important;
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12) !important;
    z-index: 1075 !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

body.equipment-cart-open {
    overflow: hidden !important;
}

body.equipment-cart-open .eq-cart-overlay,
.eq-cart-overlay.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition-delay: 0s !important;
}

body.equipment-cart-open .eq-cart-drawer-panel,
.eq-cart-drawer-panel.is-open {
    transform: translateX(0) !important;
}

/* Header */
.eq-cart-header {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-shrink: 0;
}
.eq-cart-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.eq-cart-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
}
.eq-cart-title-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.eq-cart-subtitle {
    font-size: 0.73rem;
    color: #64748b;
    font-weight: 500;
    display: block;
}
.eq-cart-badge {
    background: #2563eb;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.eq-cart-badge.hidden { display: none !important; }

.eq-cart-close-btn {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}
.eq-cart-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Body & Cards */
.eq-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.eq-cart-notice-card {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
}
.eq-cart-notice-icon {
    color: #2563eb;
    font-size: 0.95rem;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}
.eq-cart-notice-text {
    font-size: 0.76rem;
    color: #1e40af;
    line-height: 1.4;
}

.eq-cart-gauge-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.eq-cart-gauge-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}
.eq-cart-gauge-val {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
}
.eq-cart-progress-bg {
    height: 6px;
    background: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
}
.eq-cart-progress-bar {
    height: 100%;
    border-radius: 9999px;
    background-color: #2563eb;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.eq-cart-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.eq-cart-empty-state {
    text-align: center;
    padding: 3rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.eq-cart-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}
.eq-cart-empty-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.eq-cart-empty-desc {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 1.15rem;
}
.eq-cart-empty-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 1.15rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.eq-cart-empty-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

/* Equipment Summary Modal Overlay & Fixed Structure */
.eq-summary-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 1080 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}
.eq-summary-modal-overlay.hidden {
    display: none !important;
}

.equipment-booking-modal {
    width: min(640px, calc(100vw - 32px)) !important;
    max-height: calc(100dvh - 32px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.eq-summary-modal-content {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    width: 100% !important;
    max-height: 100% !important;
}

.equipment-booking-modal__body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
}

.equipment-booking-modal__footer {
    flex: 0 0 auto !important;
}

.eq-cart-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.eq-cart-item-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.eq-cart-item-card.unavailable {
    border-color: #fca5a5;
    background: #fff5f5;
}

.eq-cart-item-top {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}
.eq-cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.eq-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eq-cart-item-info {
    flex: 1;
    min-width: 0;
}
.eq-cart-item-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.2rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.eq-cart-item-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}
.eq-cart-item-err {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #dc2626;
    background: #fee2e2;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

.eq-cart-remove-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.3rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.15s ease, background 0.15s ease;
}
.eq-cart-remove-btn:hover {
    color: #dc2626;
    background: #fee2e2;
}

.eq-cart-item-btm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.6rem;
    border-top: 1px solid #f1f5f9;
}
.eq-cart-qty-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}
.eq-cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
}
.eq-cart-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.12s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.eq-cart-qty-btn:hover:not(:disabled) {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}
.eq-cart-qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f1f5f9;
    box-shadow: none;
}
.eq-cart-qty-val {
    font-size: 0.82rem;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
    color: #0f172a;
}

/* Footer / Action Sheet */
.eq-cart-footer {
    padding: 1.15rem 1.25rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.03);
}
.eq-cart-summary-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}
.eq-cart-summary-sub {
    font-size: 0.68rem;
    color: #94a3b8;
}
.eq-cart-summary-count {
    font-size: 1.35rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
}
.eq-cart-summary-unit {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}
.eq-cart-checkout-btn {
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.eq-cart-checkout-btn:hover:not(:disabled) {
    background: #1d4ed8;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}
.eq-cart-checkout-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}
.notification-filter-chip .chip-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    background-color: #e2e8f0;
    color: #334155;
    transition: all 0.18s ease;
}

.notification-filter-chip:hover .chip-count-badge {
    background-color: #dbeafe;
    color: #1e40af;
}

.notification-filter-chip.active .chip-count-badge {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* Responsive Grid / Wrap Layout */
@media (max-width: 1199.98px) {
    .notification-toolbar-container .notification-search-box {
        max-width: 100%;
        width: 100%;
        margin-bottom: 0.25rem;
    }
    .notification-filter-chips {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .notification-toolbar-container {
        padding: 0.75rem;
    }
    .notification-filter-chips {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        width: 100%;
    }
    .notification-filter-chip {
        width: 100%;
        justify-content: center;
        padding: 0.4rem 0.5rem;
    }
    /* Odd final chip spans full width nicely */
    .notification-filter-chip:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* Global Mobile Toast Floating Pill Styles (iOS Dynamic Capsule) */
@media (max-width: 767.98px) {
    #toastContainer,
    .toast-container {
        top: 1rem !important;
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 2rem) !important;
        max-width: 420px !important;
        padding: 0 !important;
        pointer-events: none !important;
        z-index: 1099 !important;
    }

    #toastContainer .toast,
    .toast-container .toast {
        border-radius: 50rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.14), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid rgba(226, 232, 240, 0.9) !important;
        pointer-events: auto !important;
        margin-bottom: 0.5rem !important;
    }

    #toastContainer .toast .d-flex,
    .toast-container .toast .d-flex {
        padding: 0.65rem 1rem !important;
    }

    #toastContainer .toast .toast-body,
    .toast-container .toast .toast-body {
        font-size: 0.8rem !important;
    }

    #toastContainer .toast .btn-close,
    .toast-container .toast .btn-close {
        font-size: 0.7rem !important;
    }
}

/* Native Mobile Multi-Pane Page Carousel Slider */
@media (max-width: 991.98px) {
    .mobile-page-slider-track {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        width: 100% !important;
        padding: 0 !important;
        gap: 0 !important;
        touch-action: pan-y pinch-zoom !important;
    }
    .mobile-page-slider-track::-webkit-scrollbar {
        display: none !important;
    }
    .mobile-page-slider-pane {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
        padding: 0.85rem 0.75rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
}
@media (min-width: 992px) {
    .mobile-page-slider-track,
    .mobile-page-slider-pane {
        display: none !important;
    }
}

/* ==========================================================================
   Global Native Mobile Bottom Sheet & Ergonomic Modal Design System (DRY)
   Applies to all Bootstrap .modal on mobile viewport (< 768px)
   ========================================================================== */
@media (max-width: 767.98px) {
    .modal:not(.modal-mobile-dialog-center) {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important;
    }

    .modal:not(.modal-mobile-dialog-center) .modal-dialog {
        margin: 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 88dvh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        transform: translate3d(0, 100%, 0) !important;
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1) !important;
        will-change: transform;
    }

    .modal:not(.modal-mobile-dialog-center).show .modal-dialog {
        transform: translate3d(0, 0, 0) !important;
    }

    /* Animate modal closing / sliding down */
    .modal:not(.modal-mobile-dialog-center):not(.show) .modal-dialog {
        transform: translate3d(0, 100%, 0) !important;
        transition: transform 0.26s cubic-bezier(0.4, 0, 1, 1) !important;
    }

    .modal:not(.modal-mobile-dialog-center) .modal-content {
        border-radius: 24px 24px 0 0 !important;
        border: none !important;
        box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.2) !important;
        max-height: 88dvh !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }

    .modal:not(.modal-mobile-dialog-center) form {
        display: flex !important;
        flex-direction: column !important;
        max-height: 88dvh !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .modal:not(.modal-mobile-dialog-center) .modal-header {
        flex: 0 0 auto !important;
        position: relative !important;
        padding: 1.25rem 1.25rem 0.85rem !important;
        border-bottom: 1px solid #f1f5f9 !important;
        background: #ffffff !important;
        touch-action: none;
        user-select: none;
        -webkit-user-select: none;
        cursor: grab;
    }

    .modal:not(.modal-mobile-dialog-center) .modal-header:active {
        cursor: grabbing;
    }

    /* Automatic decorative top drag-pill for bottom sheet feel */
    .modal:not(.modal-mobile-dialog-center) .modal-header::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 44px;
        height: 5px;
        background-color: #cbd5e1;
        border-radius: 9999px;
        cursor: grab;
        touch-action: none;
        transition: background-color 0.15s ease, transform 0.15s ease;
    }

    .modal:not(.modal-mobile-dialog-center) .modal-header:active::before {
        background-color: #94a3b8;
        transform: translateX(-50%) scale(1.1);
    }

    .modal:not(.modal-mobile-dialog-center) .modal-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        padding: 1rem 1.25rem !important;
    }

    .modal:not(.modal-mobile-dialog-center) .modal-footer {
        flex: 0 0 auto !important;
        padding: 1.15rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom, 16px)) !important;
        background: #ffffff !important;
        border-top: 1px solid #f1f5f9 !important;
        box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.04) !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .modal:not(.modal-mobile-dialog-center) .modal-footer .btn {
        min-height: 44px;
        padding-top: 0.55rem !important;
        padding-bottom: 0.55rem !important;
    }

    /* Extra padding & elevated button touch clearance for confirmation modals on mobile */
    #logoutConfirmModal .p-4.bg-white.text-start,
    #deleteConfirmModal .modal-footer,
    [id*="delete"][id*="Modal"] .modal-footer,
    [id*="Delete"][id*="Modal"] .modal-footer {
        padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 20px)) !important;
    }

    #logoutConfirmModal .btn,
    #deleteConfirmModal .btn,
    [id*="delete"][id*="Modal"] .btn,
    [id*="Delete"][id*="Modal"] .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Exception: Small confirm/alert modals that should remain centered dialogs */
    .modal.modal-mobile-dialog-center .modal-dialog {
        margin: auto !important;
        width: calc(100% - 2rem) !important;
        max-width: 420px !important;
    }
    .modal.modal-mobile-dialog-center .modal-content {
        border-radius: 20px !important;
    }

    /* Condition Selector Tiles on Mobile */
    .mobile-condition-selector {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .mobile-condition-tile {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0.65rem 0.75rem;
        background: #f8fafc;
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.18s ease;
        min-height: 52px;
    }

    .mobile-condition-tile input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .mobile-condition-tile.active-good {
        border-color: #10b981 !important;
        background: #ecfdf5 !important;
        color: #065f46 !important;
    }
    .mobile-condition-tile.active-fair {
        border-color: #3b82f6 !important;
        background: #eff6ff !important;
        color: #1e40af !important;
    }
    .mobile-condition-tile.active-damaged {
        border-color: #ef4444 !important;
        background: #fef2f2 !important;
        color: #991b1b !important;
    }
    .mobile-condition-tile.active-missing {
        border-color: #f59e0b !important;
        background: #fffbeb !important;
        color: #92400e !important;
    }
}


