/* ============================================================
   CHOIR MANAGEMENT SYSTEM — Responsive Styles
   Breakpoints: 1200px, 992px, 768px, 576px
   ============================================================ */

/* -------------------------------------------------------
   Extra Large — max-width: 1400px
   ------------------------------------------------------- */
@media (max-width: 1400px) {
    .header-search input {
        width: 260px;
    }

    .header-search input:focus {
        width: 300px;
    }
}

/* -------------------------------------------------------
   Large — max-width: 1200px
   ------------------------------------------------------- */
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-icon {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .content-area {
        padding: 20px 25px;
    }

    .form-row.four-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .chat-sidebar {
        width: 280px;
    }

    .profile-info {
        padding: 0 20px 20px;
    }
}

/* -------------------------------------------------------
   Medium — max-width: 992px
   ------------------------------------------------------- */
@media (max-width: 992px) {
    /* Sidebar: hidden by default, slide in on toggle */
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 1100;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3);
    }

    /* Reset collapsed state on mobile */
    .sidebar.collapsed {
        width: var(--sidebar-width);
    }

    .sidebar.collapsed .sidebar-logo span,
    .sidebar.collapsed .sidebar-nav-link span,
    .sidebar.collapsed .nav-badge {
        display: inline !important;
    }

    .sidebar.collapsed .sidebar-nav-section,
    .sidebar.collapsed .sidebar-footer-info {
        display: block !important;
    }

    .sidebar.collapsed .sidebar-header {
        justify-content: flex-start;
        padding: 22px 20px;
    }

    .sidebar.collapsed .sidebar-nav-link {
        justify-content: flex-start;
        padding: 11px 15px;
    }

    .sidebar.collapsed .sidebar-nav-link i {
        margin: 0;
        font-size: 1.1rem;
    }

    .sidebar.collapsed .sidebar-nav-item {
        margin: 2px 10px;
    }

    /* Mobile overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1050;
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.active {
        display: block;
        animation: fadeIn 0.2s ease;
    }

    /* Main content takes full width */
    .main-content,
    .main-content.expanded,
    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }

    /* Grid adjustments */
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Form row to single column */
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row.three-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Page header stack */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header-right {
        width: 100%;
    }

    /* Table adjustments */
    .table th,
    .table td {
        padding: 10px 12px;
    }

    /* Chat: hide sidebar on mobile */
    .chat-sidebar {
        display: none;
    }

    .chat-sidebar.mobile-open {
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        width: 320px;
        height: 100vh;
        z-index: 1100;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.2);
    }

    .chat-container {
        height: calc(100vh - var(--header-height) - 60px);
    }

    /* Profile header */
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .profile-details {
        text-align: center;
    }

    .profile-actions {
        justify-content: center;
    }

    /* Header search shrink */
    .header-search input {
        width: 220px;
    }

    .header-search input:focus {
        width: 250px;
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Notification panel */
    .notification-panel {
        width: 340px;
        right: -20px;
    }

    /* Calendar */
    .calendar-day {
        min-height: 80px;
        padding: 8px;
    }

    .calendar-event {
        font-size: 0.65rem;
    }
}

/* -------------------------------------------------------
   Small — max-width: 768px
   ------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --space-xs: 4px;
        --space-sm: 8px;
        --space-md: 16px;
        --space-lg: 20px;
        --space-xl: 24px;
        --space-2xl: 32px;
    }

    /* Grid: all single column */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Stats grid: 2 columns still */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Content area padding */
    .content-area {
        padding: var(--space-md);
    }

    /* Top header */
    .top-header {
        padding: 0 15px;
        height: 58px;
    }

    /* Header search: hide on small screens */
    .header-search {
        display: none;
    }

    /* Header user info hide */
    .header-user-info {
        display: none;
    }

    /* Card header stack */
    .card-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .card-tools {
        width: 100%;
    }

    .card-body {
        padding: var(--space-lg);
    }

    .card-header {
        padding: var(--space-md) var(--space-lg);
    }

    /* Table responsive */
    .table-responsive {
        font-size: 0.85rem;
    }

    .table th,
    .table td {
        padding: 10px;
    }

    /* Hide columns on mobile */
    .hide-mobile {
        display: none !important;
    }

    /* Action buttons */
    .action-buttons {
        gap: 4px;
    }

    .action-buttons .btn {
        min-width: 28px;
        height: 28px;
        padding: 0 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
    }

    /* Page title */
    .page-title {
        font-size: 1.4rem;
    }

    .page-subtitle {
        font-size: 0.85rem;
    }

    /* Search box */
    .search-box input {
        min-width: 100%;
    }

    /* Filter group stack */
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group .form-select {
        min-width: 100%;
    }

    /* Stat cards */
    .stat-card {
        padding: 16px;
        gap: 14px;
    }

    .stat-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Auth pages */
    .auth-wrapper {
        flex-direction: column;
    }

    .auth-left {
        min-height: 220px;
        flex: none;
        padding: 30px 20px;
    }

    .auth-left h1 {
        font-size: 1.6rem;
    }

    .auth-left p {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .auth-feature-list {
        display: none;
    }

    .auth-right {
        padding: 30px 20px;
    }

    .auth-form-header h2 {
        font-size: 1.5rem;
    }

    .auth-mobile-logo {
        display: block;
    }

    /* Modal */
    .modal {
        width: 95%;
        max-height: 90vh;
        margin: 10px;
    }

    .modal-header {
        padding: 16px 18px;
    }

    .modal-body {
        padding: 18px;
    }

    .modal-footer {
        padding: 12px 18px;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }

    /* Tabs: scrollable */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-item {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    /* Notification panel */
    .notification-panel {
        position: fixed;
        top: 58px;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        max-height: 70vh;
    }

    /* Calendar */
    .calendar-grid {
        font-size: 0.8rem;
    }

    .calendar-day {
        min-height: 60px;
        padding: 6px;
    }

    .calendar-day-header {
        padding: 8px 4px;
        font-size: 0.7rem;
    }

    .day-number {
        font-size: 0.78rem;
    }

    .calendar-event {
        font-size: 0.6rem;
        padding: 1px 4px;
    }

    .calendar-title {
        font-size: 1.1rem;
    }

    /* Chat */
    .chat-container {
        flex-direction: column;
    }

    .chat-bubble {
        max-width: 85%;
    }

    /* Pagination */
    .pagination {
        gap: 3px;
    }

    .page-link {
        padding: 6px 10px;
        font-size: 0.82rem;
        min-width: 32px;
        height: 32px;
    }

    /* Profile */
    .profile-cover {
        height: 120px;
    }

    .profile-avatar,
    .profile-avatar-initials {
        width: 80px;
        height: 80px;
        font-size: 1.6rem;
    }

    .profile-name {
        font-size: 1.25rem;
    }

    /* Detail list */
    .detail-item {
        flex-direction: column;
        gap: 4px;
    }

    .detail-label {
        min-width: auto;
    }

    /* Toast */
    .toast-container {
        top: auto;
        bottom: 15px;
        right: 15px;
        left: 15px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }

    /* Member cards in grid */
    .member-card {
        padding: 18px;
    }

    .member-card .member-avatar,
    .member-card .member-initials {
        width: 64px;
        height: 64px;
        font-size: 1.3rem;
    }

    /* FAB */
    .fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    /* Form row */
    .form-row,
    .form-row.three-cols,
    .form-row.four-cols {
        grid-template-columns: 1fr;
    }

    /* Buttons */
    .btn {
        padding: 9px 18px;
        font-size: 0.88rem;
    }

    .btn-lg {
        padding: 12px 22px;
    }
}

/* -------------------------------------------------------
   Extra Small — max-width: 576px
   ------------------------------------------------------- */
@media (max-width: 576px) {
    /* Stats grid: single column */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .btn-sm {
        padding: 5px 10px;
        font-size: 0.78rem;
    }

    /* Page title */
    .page-title {
        font-size: 1.3rem;
    }

    .page-title i {
        font-size: 1.1rem;
    }

    /* Action buttons wrap */
    .action-buttons {
        flex-wrap: wrap;
    }

    /* Content padding */
    .content-area {
        padding: 12px;
    }

    /* Card */
    .card-body {
        padding: 14px;
    }

    .card-header {
        padding: 12px 14px;
    }

    .card-footer {
        padding: 12px 14px;
    }

    /* Auth */
    .auth-left {
        min-height: 180px;
        padding: 25px 15px;
    }

    .auth-left h1 {
        font-size: 1.3rem;
    }

    .auth-left p {
        font-size: 0.88rem;
    }

    .auth-left-logo .logo-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .auth-left-logo span {
        font-size: 1.4rem;
    }

    .auth-right {
        padding: 25px 15px;
    }

    .auth-form-header h2 {
        font-size: 1.35rem;
    }

    .auth-form .form-control {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .auth-form .btn-primary {
        padding: 12px;
    }

    .auth-form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    /* Header */
    .top-header {
        height: 54px;
    }

    .sidebar-toggle {
        font-size: 1.2rem;
    }

    .header-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .header-user {
        padding: 4px 6px;
        margin-left: 4px;
    }

    .header-user-avatar {
        width: 32px;
        height: 32px;
    }

    /* Calendar: simplify */
    .calendar-day {
        min-height: 45px;
        padding: 4px;
    }

    .calendar-event {
        display: none;
    }

    /* Show event dots instead */
    .calendar-day .event-dots {
        display: flex;
        gap: 2px;
        justify-content: center;
        margin-top: 2px;
    }

    .event-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
    }

    /* Avatar sizes reduce */
    .avatar-xl {
        width: 64px;
        height: 64px;
    }

    .avatar-lg {
        width: 52px;
        height: 52px;
    }

    /* Breadcrumb hide on very small */
    .breadcrumb {
        display: none;
    }

    /* Empty state */
    .empty-state {
        padding: 40px 15px;
    }

    .empty-state i {
        font-size: 3rem;
    }

    .empty-state h3 {
        font-size: 1.05rem;
    }

    /* Modal */
    .modal-overlay {
        padding: 10px;
    }

    /* Dropdown */
    .dropdown-menu {
        min-width: 170px;
    }

    /* Page header */
    .page-header-right {
        flex-wrap: wrap;
    }

    .page-header-right .btn {
        flex: 1;
        min-width: 120px;
    }

    /* Detail list */
    .detail-label {
        font-size: 0.82rem;
    }

    .detail-value {
        font-size: 0.85rem;
    }

    /* Profile */
    .profile-cover {
        height: 100px;
    }

    .profile-avatar,
    .profile-avatar-initials {
        width: 70px;
        height: 70px;
    }

    .profile-name {
        font-size: 1.15rem;
    }

    .profile-info {
        margin-top: -30px;
        padding: 0 15px 15px;
    }

    /* Timeline */
    .timeline-item {
        padding-left: 25px;
    }

    .timeline-content {
        padding: 10px 12px;
    }

    /* Chat */
    .chat-messages {
        padding: 12px;
    }

    .chat-input {
        padding: 12px;
    }
}

/* -------------------------------------------------------
   Very Small — max-width: 360px
   ------------------------------------------------------- */
@media (max-width: 360px) {
    .content-area {
        padding: 10px;
    }

    .page-title {
        font-size: 1.15rem;
    }

    .card-body {
        padding: 12px;
    }

    .stat-card {
        padding: 14px;
        gap: 12px;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
        border-radius: 8px;
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .btn {
        padding: 7px 12px;
        font-size: 0.82rem;
    }

    .auth-left {
        min-height: 150px;
    }

    .auth-left h1 {
        font-size: 1.15rem;
    }

    .auth-form-header h2 {
        font-size: 1.2rem;
    }
}

/* -------------------------------------------------------
   Landscape Phone
   ------------------------------------------------------- */
@media (max-height: 500px) and (orientation: landscape) {
    .auth-wrapper {
        flex-direction: row;
    }

    .auth-left {
        min-height: 100vh;
        flex: 0.8;
        padding: 20px;
    }

    .auth-left h1 {
        font-size: 1.4rem;
    }

    .auth-right {
        flex: 1.2;
        padding: 20px;
    }

    .auth-form .form-group {
        margin-bottom: 14px;
    }

    .auth-form .form-control {
        padding: 10px 14px;
    }

    .auth-form .btn-primary {
        padding: 10px;
    }
}

/* -------------------------------------------------------
   High-DPI displays
   ------------------------------------------------------- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .sidebar {
        -webkit-font-smoothing: antialiased;
    }
}

/* -------------------------------------------------------
   Hover-capable devices only
   ------------------------------------------------------- */
@media (hover: hover) {
    .sidebar-nav-link:hover {
        transform: translateX(3px);
    }

    .stat-card:hover {
        transform: translateY(-2px);
    }

    .member-card:hover {
        transform: translateY(-3px);
    }

    .btn-primary:hover {
        transform: translateY(-1px);
    }
}

/* Touch devices: remove hover transforms */
@media (hover: none) {
    .sidebar-nav-link:hover {
        transform: none;
    }

    .stat-card:hover {
        transform: none;
    }

    .member-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }
}

/* -------------------------------------------------------
   Reduced Motion
   ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-note {
        display: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================================
   MOBILE UX/UI ENHANCEMENTS 
   ============================================================ */

/* Make sure mobile search toggle is hidden on desktop */
.d-block-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    /* Responsive Spacing tweaks */
    :root {
        --space-lg: 16px;
        --space-xl: 20px;
        --header-height: 60px;
    }

    .d-none-mobile {
        display: none !important;
    }
    
    .d-block-mobile {
        display: flex !important;
    }

    #mobileSearchToggle {
        position: relative;
        z-index: 11; /* Keep above search overlay */
    }

    /* Mobile Search Display Logic */
    .header-center.show-mobile-search {
        display: flex !important;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-glass);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        z-index: 10;
        padding: 0 15px;
        align-items: center;
        justify-content: center;
    }
    
    .header-center.show-mobile-search .header-search {
        width: 100%;
        max-width: 400px;
        margin-right: 40px; /* Leave space for the close button */
    }
    
    .header-center.show-mobile-search .search-box input {
        width: 100%;
        background: var(--bg-secondary);
    }

    /* Enhanced Mobile Header */
    .top-header {
        padding: 0 10px;
    }

    .header-right {
        gap: 2px;
    }

    /* Fix header dropdowns to be full screen width on mobile */
    .header-notification .dropdown-menu,
    .header-user-dropdown .dropdown-menu {
        position: fixed !important;
        top: var(--header-height) !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        min-width: 0 !important;
        transform: none !important;
        margin: 0 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    /* Responsive Tables (swipeable) */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: var(--space-md);
        box-shadow: inset -10px 0 10px -10px rgba(0,0,0,0.1);
        border: 0;
    }
    
    .table th, .table td {
        white-space: nowrap;
    }

    /* Improve touch targets for mobile accessibility */
    .btn, .sidebar-nav-link, .dropdown-item, .form-control {
        min-height: 44px;
    }

    /* Sidebar Overlay smooth transition */
    .sidebar-overlay {
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
        backdrop-filter: blur(4px);
    }
    
    /* Ensure sidebar slides in smoothly */
    .sidebar {
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    }
}

/* Floating Action Button (FAB) */
.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 990;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4), inset 0 -2px 5px rgba(0,0,0,0.1);
    transition: var(--transition-bounce);
    border: none;
    cursor: pointer;
}

.fab-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
    color: var(--text-white);
}

.fab-btn:active {
    transform: scale(0.9);
}

@media (max-width: 576px) {
    .fab-container {
        bottom: 85px;
        right: 16px;
    }
    .fab-btn {
        width: 54px;
        height: 54px;
        font-size: 1.25rem;
    }
}

/* ============================================================
   BOTTOM NAVIGATION (Mobile Only)
   ============================================================ */
.bottom-nav {
    display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-glass);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
        border-top: 1px solid rgba(255,255,255,0.4);
        z-index: 995;
        padding-bottom: env(safe-area-inset-bottom); /* iOS support */
        justify-content: space-around;
        align-items: center;
        height: 65px;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: 100%;
        color: var(--text-muted);
        text-decoration: none;
        transition: var(--transition-fast);
        padding-top: 4px;
    }

    .bottom-nav-item i {
        font-size: 1.2rem;
        margin-bottom: 4px;
        transition: transform 0.2s ease;
    }

    .bottom-nav-item span {
        font-size: 0.65rem;
        font-weight: 500;
    }

    .bottom-nav-item.active {
        color: var(--primary);
    }

    .bottom-nav-item.active i {
        transform: translateY(-2px);
    }

    /* Add padding to body/main content to clear the bottom nav */
    .main-content {
        padding-bottom: 80px; 
    }
    
    .fab-container {
        bottom: 85px; /* Clear bottom nav */
    }

    /* Swipeable Carousels for Mobile */
    .mobile-carousel {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 10px; /* Space for scrollbar */
        margin-right: -10px; /* Bleed edge */
        margin-left: -10px;
        padding-left: 10px;
        padding-right: 10px;
        grid-template-columns: none !important;
    }
    
    .mobile-carousel > * {
        flex: 0 0 85%; /* Cards take up 85% width */
        scroll-snap-align: center;
        min-width: 0; /* Prevent flex box blowing out */
    }
    
    /* Native looking app cards without borders on mobile */
    .app-card, .stat-card {
        border-radius: var(--border-radius);
        border: none !important;
        box-shadow: var(--shadow-md) !important;
    }

    /* Mobile Tables to Cards Conversion */
    .table-mobile-cards, 
    .table-mobile-cards tbody, 
    .table-mobile-cards tr, 
    .table-mobile-cards td {
        display: block;
        width: 100%;
    }
    
    .table-mobile-cards thead {
        display: none !important;
    }
    
    .table-mobile-cards tr {
        margin-bottom: 15px;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        padding: 10px;
        box-shadow: var(--shadow-sm);
    }
    
    .table-mobile-cards td {
        display: block;
        position: relative;
        text-align: right;
        padding: 12px 15px 12px 45% !important;
        border: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        min-height: 45px;
        word-break: break-word;
    }
    
    .table-mobile-cards td:last-child {
        border-bottom: none !important;
    }
    
    .table-mobile-cards td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        top: 12px;
        width: 40%;
        font-weight: 600;
        text-align: left;
        color: var(--text-muted);
        white-space: normal;
        line-height: 1.4;
    }
    
    /* Align inner flex containers to the right */
    .table-mobile-cards td .d-flex {
        justify-content: flex-end;
    }
    
    .table-mobile-cards td .badge, 
    .table-mobile-cards td .btn,
    .table-mobile-cards td .btn-group {
        margin-left: auto;
    }
}
