/* =========================================================
   Global Styles
========================================================= */
body {
    font-family: Tahoma, Arial, sans-serif;
    background: #f5f6fa;
    margin: 0;
    direction: rtl;
}

/* =========================================================
   Layout Wrapper
========================================================= */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* =========================================================
   Sidebar
========================================================= */
.app-sidebar {
    width: 240px;
    background: #1e272e;
    color: #fff;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 20px 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.app-sidebar::-webkit-scrollbar {
    width: 6px;
}

.app-sidebar::-webkit-scrollbar-thumb {
    background: #485460;
    border-radius: 10px;
}

.app-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-logo {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 30px;
}

.sidebar-logo i {
    margin-left: 5px;
}

/* Menu */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: #d2dae2;
    text-decoration: none;
    transition: 0.3s;
}

.sidebar-menu a:hover {
    background: #485460;
    color: #fff;
}


/* =========================================================
   Sidebar Dropdown Menu
========================================================= */
.sidebar-dropdown-toggle {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.sidebar-dropdown-toggle span {
    flex: 1;
}

.sidebar-dropdown-arrow {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.sidebar-dropdown.open .sidebar-dropdown-arrow,
.sidebar-dropdown-toggle[aria-expanded="true"] .sidebar-dropdown-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.14);
}

.sidebar-submenu li {
    margin-bottom: 0;
}

.sidebar-submenu a {
    padding: 10px 38px 10px 15px;
    font-size: 13px;
}

.sidebar-submenu a i {
    width: 18px;
    margin-left: 6px;
}

/* =========================================================
   Main Area
========================================================= */
.app-main {
    margin-right: 240px;
    width: 100%;
}

/* =========================================================
   Navbar
========================================================= */
.app-navbar {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-title {
    font-size: 18px;
    font-weight: bold;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-link {
    color: red;
    text-decoration: none;
}

/* =========================================================
   Content
========================================================= */
.app-content {
    padding: 20px;
}

/* =========================================================
   Guest صفحات (login)
========================================================= */
.guest-wrapper {
    padding: 40px;
}

/* =========================================================
   Cards تحسين بسيط
========================================================= */
.card {
    border-radius: 12px;
    border: none;
}

/* =========================================================
   Active Sidebar Menu
========================================================= */
.sidebar-menu a.active {
    background: #485460;
    color: #fff;
    border-right: 4px solid #0d6efd;
}

.sidebar-menu a.active i {
    color: #fff;
}

/* =========================================================
   Dashboard
========================================================= */
.dashboard-card .card-body {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #f1f2f6;
    color: #1e272e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.dashboard-card h5 {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.dashboard-card h3 {
    margin: 5px 0 0 0;
    font-weight: bold;
}

.select2-container {
    /* z-index: 9999; */
}

/* =========================================================
   Notifications Dropdown
========================================================= */
.notifications-dropdown {
    position: relative;
}

.notification-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid #edf0f4;
    background: #fff;
    color: #1e293b;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.notification-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    font-weight: 700;
}

.notification-menu {
    width: 380px;
    max-width: calc(100vw - 30px);
    padding: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.notification-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
}

.notification-menu-header small {
    color: rgba(255, 255, 255, 0.8);
}

.notification-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 13px 14px;
    text-decoration: none;
    color: #111827;
    border-bottom: 1px solid #eef2f7;
    transition: 0.2s ease;
}

.notification-item:hover {
    background: #f8fafc;
    color: #0d6efd;
}

.notification-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
}

.notification-content strong {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}

.notification-content small {
    display: block;
    color: #64748b;
    line-height: 1.6;
}

.notification-tag {
    font-size: 11px;
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 4px 8px;
}

.notification-empty {
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #64748b;
}

.notification-empty i {
    font-size: 28px;
    color: #22c55e;
}

/* =========================================================
   FullCalendar Premium Polish
========================================================= */
.calendar-hero {
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
    overflow: hidden;
}

.calendar-eyebrow {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475569;
    background: #fff;
    border: 1px solid #edf2f7;
    padding: 7px 10px;
    border-radius: 999px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.calendar-card {
    border-radius: 20px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.07);
}

#hearingsCalendar {
    direction: rtl;
}

.fc {
    font-family: inherit;
}

.fc .fc-toolbar-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.fc .fc-button-primary {
    background: #0d6efd;
    border-color: #0d6efd;
    border-radius: 12px;
    box-shadow: none !important;
}

.fc .fc-button-primary:hover,
.fc .fc-button-primary:focus {
    background: #0b5ed7;
    border-color: #0b5ed7;
}

.fc .fc-daygrid-day {
    transition: 0.2s ease;
}

.fc .fc-daygrid-day:hover {
    background: #f8fbff;
}

.fc .fc-day-today {
    background: #fff7ed !important;
}

.fc .fc-event {
    border: 0 !important;
    border-radius: 10px;
    padding: 3px 6px;
    font-size: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.fc-event-scheduled {
    background: #2563eb !important;
    color: #fff !important;
}

.fc-event-completed {
    background: #16a34a !important;
    color: #fff !important;
}

.fc-event-postponed {
    background: #f59e0b !important;
    color: #111827 !important;
}

.fc-event-overdue {
    background: #dc2626 !important;
    color: #fff !important;
}

.fc-event-cancelled {
    background: #64748b !important;
    color: #fff !important;
}

.calendar-event-details {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 16px;
}

@media (max-width: 768px) {
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .notification-menu {
        width: 330px;
    }
}

/* =========================================================
   Reports Print Enhancements
========================================================= */
@media print {
    @page {
        size: A4 landscape;
        margin: 10mm;
    }

    html,
    body {
        width: 100% !important;
        background: #fff !important;
        color: #000 !important;
        font-size: 12px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .app-sidebar,
    .app-navbar,
    .navbar,
    .sidebar,
    .breadcrumb,
    .page-header,
    .d-print-none,
    .btn,
    .modal,
    .alert,
    .dataTables_length,
    .dataTables_filter,
    .dataTables_info,
    .dataTables_paginate,
    .dataTables_wrapper .row:first-child,
    .dataTables_wrapper .row:last-child {
        display: none !important;
    }

    .app-main,
    .main-content,
    .app-content,
    .content-wrapper,
    .container,
    .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        border-radius: 0 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        margin-bottom: 8px !important;
    }

    .card-body {
        padding: 8px !important;
    }

    .report-kpi-section,
    .report-insights-section {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .report-kpi-section>div,
    .report-insights-section>div {
        float: none !important;
        flex: 1 1 0 !important;
        max-width: none !important;
        width: auto !important;
        margin-bottom: 0 !important;
    }

    .report-details-section {
        page-break-before: auto !important;
    }

    table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 11px !important;
    }

    table th,
    table td {
        border: 1px solid #ccc !important;
        padding: 4px !important;
        vertical-align: middle !important;
    }

    .badge {
        border: 1px solid #999 !important;
        color: #000 !important;
        background: #fff !important;
    }

    a {
        color: #000 !important;
        text-decoration: none !important;
    }

    .print-header {
        direction: rtl;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #ccc;
        padding-bottom: 10px;
        margin-bottom: 18px;
    }

    .header-right {
        text-align: right;
        line-height: 1.35;
    }

    .header-right h2 {
        margin: 0 0 4px;
        font-size: 18px;
        font-weight: bold;
    }

    .header-right p {
        margin: 2px 0;
        font-size: 11px;
    }

    .header-left {
        text-align: left;
    }

    .header-left img {
        width: 70px;
        height: 70px;
        object-fit: contain;
    }
}

/* =========================================================
   Executive Dashboard & Report Charts
========================================================= */
.dashboard-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.report-chart-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.report-chart-label {
    font-weight: 700;
    color: #344054;
}

.report-chart-track {
    height: 12px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}

.report-chart-fill {
    height: 100%;
    background: #198754;
    border-radius: 999px;
    min-width: 4px;
}

.report-chart-value {
    font-weight: 700;
    color: #198754;
    text-align: left;
}

.report-progress-sm {
    height: 7px;
    background: #eef2f7;
    border-radius: 999px;
}

.report-progress-lg {
    height: 12px;
    background: #eef2f7;
    border-radius: 999px;
}

.report-progress-sm .progress-bar,
.report-progress-lg .progress-bar {
    border-radius: 999px;
}

.dashboard-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

@media (max-width: 767px) {
    .report-chart-row {
        grid-template-columns: 70px 1fr;
    }

    .report-chart-value {
        grid-column: 2;
        text-align: right;
    }
}

/* =========================================================
   Dashboard UI Polish
========================================================= */
.dashboard-hero-pro {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 210px;
    background:
        radial-gradient(circle at 15% 20%, rgba(13, 110, 253, .35), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(25, 135, 84, .28), transparent 24%),
        linear-gradient(135deg, #111827 0%, #1e293b 55%, #0f766e 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
    color: #fff;
}

.dashboard-hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .35;
}

.dashboard-hero-content {
    position: relative;
    z-index: 1;
    padding: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 210px;
}

.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .10);
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 14px;
}

.dashboard-hero-content h2 {
    font-weight: 800;
    font-size: 30px;
    margin-bottom: 10px;
}

.dashboard-hero-content p {
    color: rgba(255, 255, 255, .78);
    max-width: 680px;
    margin: 0;
}

.dashboard-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-kpi-card {
    position: relative;
    overflow: hidden;
    border: 0;
    color: #fff;
    border-radius: 20px;
    min-height: 138px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .10);
    transition: transform .18s ease, box-shadow .18s ease;
}

.dashboard-kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(15, 23, 42, .16);
}

.dashboard-kpi-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    left: -45px;
    top: -35px;
    background: rgba(255, 255, 255, .14);
}

.dashboard-kpi-card .card-body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-kpi-blue {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.dashboard-kpi-dark {
    background: linear-gradient(135deg, #111827, #475569);
}

.dashboard-kpi-orange {
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.dashboard-kpi-green {
    background: linear-gradient(135deg, #16a34a, #0f766e);
}

.dashboard-kpi-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.dashboard-kpi-content span,
.dashboard-kpi-content small {
    display: block;
    color: rgba(255, 255, 255, .78);
}

.dashboard-kpi-content strong {
    display: block;
    font-size: 27px;
    line-height: 1.2;
    margin: 4px 0;
}

.dashboard-panel {
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.dashboard-section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-section-title.compact {
    align-items: center;
}

.dashboard-section-title h5 {
    margin: 0;
    font-weight: 800;
    color: #111827;
}

.dashboard-section-title p {
    margin: 5px 0 0;
    color: #667085;
    font-size: 13px;
}

.dashboard-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700;
    font-size: 12px;
}

.dashboard-pill.success {
    color: #027a48;
    background: #ecfdf3;
}

.dashboard-chart-row {
    grid-template-columns: 85px 1fr 130px;
}

.dashboard-collection-box {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 14px;
}

.dashboard-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-action-card {
    min-height: 86px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    color: #111827;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    border: 1px solid #eef2f7;
    transition: all .18s ease;
}

.dashboard-action-card:hover {
    background: #eff6ff;
    color: #0d6efd;
    transform: translateY(-2px);
}

.dashboard-action-card i {
    font-size: 20px;
}

.dashboard-action-card span {
    font-weight: 700;
    font-size: 13px;
}

.dashboard-method-row,
.dashboard-status-row,
.dashboard-balance-item {
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}

.dashboard-method-row:last-child,
.dashboard-status-row:last-child,
.dashboard-balance-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dashboard-dark-panel {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
}

.dashboard-dark-panel .dashboard-section-title h5 {
    color: #fff;
}

.dashboard-pulse-list {
    display: grid;
    gap: 12px;
}

.dashboard-pulse-list>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 12px;
}

.dashboard-pulse-list span {
    color: rgba(255, 255, 255, .72);
}

.dashboard-pulse-list strong {
    font-size: 18px;
}

.dashboard-table th {
    color: #667085;
    font-size: 12px;
    white-space: nowrap;
}

.dashboard-table td {
    vertical-align: middle;
}

.dashboard-empty-state {
    min-height: 120px;
    border: 1px dashed #d0d5dd;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #667085;
    background: #fcfcfd;
}

.dashboard-empty-state i {
    font-size: 20px;
}

@media (max-width: 991px) {
    .dashboard-hero-content {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .dashboard-hero-content {
        padding: 24px;
    }

    .dashboard-hero-content h2 {
        font-size: 24px;
    }

    .dashboard-quick-actions {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Final UI Polish - Tables, Forms, Buttons, Empty States
========================================================= */
:root {
    --app-surface: #ffffff;
    --app-muted: #667085;
    --app-border: #e4e7ec;
    --app-soft: #f8fafc;
    --app-primary: #0d6efd;
    --app-success: #198754;
    --app-danger: #dc3545;
    --app-warning: #ffc107;
    --app-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.app-card,
.card {
    border: 1px solid rgba(228, 231, 236, .9) !important;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .045);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
    border-bottom: 1px solid var(--app-border);
    font-weight: 700;
}

.card-body>h4:first-child,
.card-body>h5:first-child {
    font-weight: 800;
    color: #111827;
}

.app-content {
    background:
        radial-gradient(circle at 8% 8%, rgba(13, 110, 253, .045), transparent 24%),
        radial-gradient(circle at 88% 0%, rgba(25, 135, 84, .04), transparent 22%),
        #f5f7fb;
    min-height: calc(100vh - 64px);
}

/* Flash messages */
.app-flash-message {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0 !important;
    border-right: 5px solid currentColor !important;
    border-radius: 16px !important;
    box-shadow: var(--app-shadow);
    padding: 14px 16px;
}

.app-flash-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .55);
    font-size: 17px;
}

.app-flash-text {
    flex: 1;
    font-weight: 700;
}

/* Tables */
.table-responsive,
.dataTables_wrapper {
    border-radius: 16px;
}

.app-table,
.table {
    margin-bottom: 0;
    border-color: var(--app-border) !important;
}

.app-table thead th,
.table thead th {
    background: #f8fafc !important;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    border-bottom: 1px solid var(--app-border) !important;
    white-space: nowrap;
}

.app-table tbody td,
.table tbody td {
    color: #1f2937;
    border-color: #eef2f7 !important;
}

.app-table tbody tr,
.table tbody tr {
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.app-table tbody tr:hover,
.table tbody tr:hover {
    background: #f8fbff !important;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: rgba(248, 250, 252, .65);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--app-border);
    border-radius: 12px;
    padding: 7px 10px;
    outline: 0;
    background: #fff;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: rgba(13, 110, 253, .45);
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .08);
}

.dataTables_wrapper .row:first-child {
    align-items: center;
    margin-bottom: 12px;
}

.dataTables_wrapper .row:last-child {
    align-items: center;
    margin-top: 12px;
}

.dataTables_info {
    color: var(--app-muted);
    font-size: 13px;
}

.page-link {
    border-radius: 10px !important;
    margin: 0 2px;
    border-color: #e5e7eb;
}

/* Forms */
.form-label {
    font-weight: 800;
    color: #344054;
    margin-bottom: 7px;
}

.form-control,
.form-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 1px solid var(--app-border) !important;
    border-radius: 12px !important;
    min-height: 42px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.form-control:focus,
.form-select:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: rgba(13, 110, 253, .55) !important;
    box-shadow: 0 0 0 .22rem rgba(13, 110, 253, .09) !important;
}

.form-control::placeholder {
    color: #98a2b3;
}

textarea.form-control {
    min-height: 92px;
}

.invalid-feedback {
    font-weight: 700;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: rgba(220, 53, 69, .65) !important;
    box-shadow: 0 0 0 .18rem rgba(220, 53, 69, .08) !important;
}

/* Buttons */
.btn {
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .10);
}

.btn-sm {
    border-radius: 10px;
    font-weight: 700;
}

.btn-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info {
    border: 0;
}

.btn-warning {
    color: #111827;
}

/* Badges */
.badge {
    border-radius: 999px;
    padding: .45em .7em;
    font-weight: 800;
    letter-spacing: 0;
}

/* Empty states */
.app-empty-state {
    min-height: 170px;
    border: 1px dashed #cbd5e1;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--app-muted);
    padding: 22px;
    gap: 7px;
}

.app-empty-state-sm {
    min-height: 110px;
    border: 0;
    background: transparent;
}

.app-empty-state i {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: var(--app-primary);
    font-size: 20px;
    margin-bottom: 4px;
}

.app-empty-state strong {
    color: #111827;
    font-size: 15px;
}

.app-empty-state span {
    font-size: 13px;
}

/* Modals */
.app-modal-content,
.modal-content {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 1px solid var(--app-border);
    justify-content: space-between;
}

.modal-title {
    font-weight: 900;
    color: #111827;
}

.modal-footer {
    background: #f8fafc;
    border-top: 1px solid var(--app-border);
}

/* Loading helpers */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive polish */
@media (max-width: 767px) {
    .app-content {
        padding: 14px;
    }

    .card-body {
        padding: 14px;
    }

    .btn {
        width: auto;
    }

    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        text-align: right !important;
        margin-bottom: 8px;
    }
}

.demo-login-info {
    background: #f1f5ff;
    border: 1px dashed #0d6efd;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.8;
}

/* =========================================================
   Notifications Styles
========================================================= */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 7px;
    min-width: 20px;
    text-align: center;
    line-height: 1.3;
}

.notification-menu-header {
    padding: 10px 15px;
    border-bottom: 1px solid var(--app-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 15px;
    border-bottom: 1px solid var(--app-border);
    text-decoration: none;
    color: #111827;
    transition: background .15s ease;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f8fbff;
}

.notification-item.unread {
    background-color: #eff6ff;
    font-weight: 700;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.notification-icon.bg-general {
    background-color: #0d6efd;
}

.notification-icon.bg-success {
    background-color: #198754;
}

.notification-icon.bg-warning {
    background-color: #ffc107;
    color: #111827;
}

.notification-icon.bg-danger {
    background-color: #dc3545;
}

.notification-content {
    flex: 1;
}

.notification-content strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.notification-content small {
    display: block;
    color: var(--app-muted);
    font-size: 12px;
}

.notification-content em {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
    font-style: normal;
}

.notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #dc3545;
    align-self: center;
}

.notifications-dropdown {
    position: relative;
}

.notification-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.notification-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 50px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
}

.notification-menu {
    width: 360px;
    max-height: 430px;
    overflow-y: auto;
    padding: 0;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.18);
}

.notification-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 13px 16px;
    text-decoration: none;
    color: #111827;
    border-bottom: 1px solid #f1f5f9;
}

.notification-item:hover {
    background: #f8fafc;
    color: #111827;
}

.notification-item.unread {
    background: #eff6ff;
}

.notification-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon i {
    color: #fff;
    font-size: 15px;
}

.notification-icon.bg-hearing {
    background: #0d6efd;
}

.notification-icon.bg-payment {
    background: #198754;
}

.notification-icon.bg-document {
    background: #0dcaf0;
}

.notification-icon.bg-case {
    background: #ffc107;
}

.notification-icon.bg-client {
    background: #6c757d;
}

.notification-icon.bg-general {
    background: #212529;
}

.notification-content {
    flex: 1;
}

.notification-content strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.notification-content small {
    display: block;
    color: #4b5563;
    line-height: 1.5;
}

.notification-content em {
    display: block;
    margin-top: 4px;
    color: #9ca3af;
    font-size: 11px;
    font-style: normal;
}

.notification-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
    background: #dc3545;
    margin-top: 8px;
}

.notification-empty {
    padding: 25px 15px;
    text-align: center;
    color: #6b7280;
}

.notification-empty i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    color: #198754;
}

.session-near-row td {
    background-color: #f7c5c8 !important;
}

.session-near-row:hover td {
    background-color: #ffe4e6 !important;
}

/* =========================================================
   Case Full Details Experience
========================================================= */
.case-details-hero {
    background: linear-gradient(135deg, #123f73, #1d6fd1);
    color: #fff;
    border-radius: 22px;
    padding: 26px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 18px 45px rgba(18, 63, 115, .22);
}

.case-kpi-card {
    position: relative;
    min-height: 125px;
    background: #fff;
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    border: 1px solid rgba(13, 110, 253, .08);
    overflow: hidden;
}

.case-kpi-card span {
    display: block;
    color: #6c757d;
    margin-bottom: 10px;
    font-weight: 700;
}

.case-kpi-card strong {
    font-size: 28px;
    color: #1f2937;
}

.case-kpi-icon {
    position: absolute;
    left: 22px;
    top: 24px;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: .92;
}

.case-section-card,
.side-profile-card {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
    overflow: hidden;
}

.case-section-card .card-header,
.side-profile-card .card-header {
    background: #fff;
    font-weight: 800;
    color: #123f73;
    border-bottom: 1px solid #eef2f7;
    padding: 16px 20px;
}

.case-info-grid label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 800;
    margin-bottom: 5px;
}

.case-info-grid p {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 10px 12px;
    min-height: 44px;
    margin-bottom: 14px;
    font-weight: 700;
}

.case-info-list p {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px dashed #e5e7eb;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.case-info-list span {
    color: #6b7280;
    font-size: 13px;
}

.case-info-list strong {
    text-align: left;
    color: #111827;
}

.opponent-card {
    border-top: 4px solid #dc3545;
}

.section-mini-title {
    font-weight: 800;
    color: #123f73;
    background: #f3f8ff;
    border: 1px solid #d8e8ff;
    border-radius: 12px;
    padding: 10px 14px;
}

.receipt-box {
    border: 2px solid #1b4f91;
    border-radius: 18px;
    padding: 25px;
    background: #fff;
}

.receipt-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 15px;
    margin-bottom: 18px;
    color: #123f73;
}

.receipt-amount {
    text-align: center;
    font-size: 34px;
    font-weight: 900;
    color: #198754;
    margin: 20px 0;
}

.receipt-sign {
    display: flex;
    justify-content: space-between;
    margin-top: 45px;
    font-weight: 800;
}

/* 
@media print {

    .app-sidebar,
    .app-header,
    .d-print-none,
    .btn,
    .modal {
        display: none !important
    }

    .app-content {
        margin: 0 !important;
        padding: 0 !important
    }

    .case-details-hero {
        box-shadow: none
    }

    .card {
        box-shadow: none !important;
        break-inside: avoid
    }
} */


/* Professional case details print sheet */
.case-print-sheet {
    display: none;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 8mm;
    }

    html,
    body {
        width: auto !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #111 !important;
        direction: rtl !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .app-sidebar,
    .app-navbar,
    .app-header,
    .navbar,
    .sidebar,
    .breadcrumb,
    .page-header,
    .modal,
    .btn,
    .d-print-none,
    .case-details-hero,
    .case-screen-content>.row,
    .case-screen-content>.case-details-hero,
    .case-screen-content>.row.mb-4 {
        display: none !important;
    }

    .app-wrapper,
    .app-main,
    .main-content,
    .app-content,
    .content-wrapper,
    .container,
    .container-fluid,
    .case-screen-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .case-screen-content> :not(.case-print-sheet) {
        display: none !important;
    }

    .case-print-sheet,
    .case-print-sheet.d-none,
    .case-print-sheet.d-print-block {
        display: block !important;
        position: relative !important;
        float: none !important;
        clear: both !important;
        width: 185mm !important;
        max-width: 185mm !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 0 !important;
        inset: auto !important;
        transform: none !important;
        direction: rtl !important;
        text-align: right !important;
        color: #111 !important;
        background: #fff !important;
        font-family: Tahoma, Arial, sans-serif !important;
        font-size: 10.5px !important;
        line-height: 1.35 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .case-print-sheet * {
        box-sizing: border-box !important;
    }

    .case-print-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-direction: row !important;
        width: 100% !important;
        border-bottom: 2px solid #1b4f91 !important;
        padding-bottom: 6px !important;
        margin: 0 0 8px 0 !important;
        page-break-inside: avoid !important;
    }

    .case-print-header>div {
        flex: 1 1 auto !important;
        text-align: right !important;
    }

    .case-print-header h2 {
        font-size: 17px !important;
        margin: 0 0 2px !important;
        font-weight: 800 !important;
        color: #111 !important;
    }

    .case-print-header p {
        margin: 1px 0 !important;
        color: #444 !important;
        font-size: 9.5px !important;
    }

    .case-print-header img {
        flex: 0 0 auto !important;
        width: 50px !important;
        height: 50px !important;
        object-fit: contain !important;
        margin-right: 10px !important;
    }

    .case-print-title {
        text-align: center !important;
        background: #f3f6fb !important;
        border: 1px solid #d7e2f2 !important;
        border-radius: 7px !important;
        padding: 6px !important;
        margin-bottom: 8px !important;
        page-break-inside: avoid !important;
    }

    .case-print-title h3 {
        margin: 0 0 2px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #111 !important;
    }

    .case-print-title p {
        margin: 0 !important;
        color: #555 !important;
        font-size: 9.5px !important;
    }

    .case-print-kpis {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        margin-bottom: 8px !important;
        page-break-inside: avoid !important;
    }

    .case-print-kpis div,
    .case-print-section {
        border: 1px solid #d8dee8 !important;
        border-radius: 7px !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .case-print-kpis div {
        padding: 6px 8px !important;
        text-align: center !important;
    }

    .case-print-kpis span {
        display: block !important;
        color: #666 !important;
        margin-bottom: 1px !important;
        font-size: 9.5px !important;
    }

    .case-print-kpis strong {
        font-size: 13px !important;
        color: #111 !important;
    }

    .case-print-section {
        padding: 6px !important;
        margin-bottom: 6px !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .case-print-section h4 {
        font-size: 12.5px !important;
        margin: 0 0 5px !important;
        padding-bottom: 3px !important;
        border-bottom: 1px solid #e5e7eb !important;
        font-weight: 800 !important;
        color: #123f73 !important;
    }

    .case-print-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 4px 6px !important;
    }

    .case-print-grid p {
        margin: 0 !important;
        border: 1px solid #edf0f4 !important;
        border-radius: 5px !important;
        padding: 3px 5px !important;
        min-height: 23px !important;
        overflow: hidden !important;
    }

    .case-print-grid span {
        display: block !important;
        color: #666 !important;
        font-size: 8.8px !important;
        margin-bottom: 0 !important;
    }

    .case-print-grid strong {
        display: block !important;
        font-size: 9.8px !important;
        color: #111 !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }

    .case-print-section table {
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: fixed !important;
        margin: 0 !important;
        font-size: 9.3px !important;
        direction: rtl !important;
    }

    .case-print-section th,
    .case-print-section td {
        border: 1px solid #dfe3ea !important;
        padding: 3px 4px !important;
        vertical-align: top !important;
        color: #111 !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }

    .case-print-section th {
        background: #f3f6fb !important;
        font-weight: 800 !important;
    }

    .case-print-sheet a {
        color: #111 !important;
        text-decoration: none !important;
    }
}
/* =========================================================
   Professional Reports Pages + Unified Print Helpers
========================================================= */
.pro-report-page .report-hero {
    background: linear-gradient(135deg, #111827, #1d4ed8);
    color: #fff;
    border-radius: 24px;
    padding: 26px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, .16);
}

.pro-report-page .report-hero.financial {
    background: linear-gradient(135deg, #064e3b, #16a34a);
}

.pro-report-page .report-hero.cases {
    background: linear-gradient(135deg, #3b0764, #7c3aed);
}

.report-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.pro-report-page .report-hero h3 {
    font-weight: 900;
    margin: 0 0 8px;
}

.pro-report-page .report-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    max-width: 780px;
}

.report-subtitle-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.report-subtitle-card span {
    color: #667085;
    font-weight: 800;
    font-size: 12px;
}

.report-subtitle-card h4 {
    margin: 4px 0;
    font-weight: 900;
    color: #111827;
}

.report-subtitle-card p {
    margin: 0;
    color: #667085;
}

.report-score-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #fff 58%, transparent 59%), conic-gradient(#16a34a 0deg, #16a34a 260deg, #e5e7eb 260deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ecfdf3;
}

.report-score-ring strong {
    font-size: 22px;
    color: #16a34a;
    font-weight: 900;
    line-height: 1;
}

.report-score-ring span {
    font-size: 10px;
    color: #667085;
    margin-top: 5px;
}

.report-kpi-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-right: 5px solid #2563eb;
    border-radius: 18px;
    padding: 18px;
    min-height: 126px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.report-kpi-card.success { border-right-color: #16a34a; }
.report-kpi-card.danger { border-right-color: #dc2626; }
.report-kpi-card.warning { border-right-color: #f59e0b; }
.report-kpi-card.dark { border-right-color: #111827; }

.report-kpi-card span,
.report-kpi-card small {
    display: block;
    color: #667085;
    font-weight: 700;
}

.report-kpi-card strong {
    display: block;
    font-size: 26px;
    font-weight: 900;
    color: #111827;
    margin: 8px 0 3px;
}

.report-bar-row {
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.report-bar-row:last-child { border-bottom: 0; }
.report-bar-row strong { display: block; color: #111827; font-weight: 900; }
.report-bar-row small { display: block; color: #667085; font-size: 12px; margin-top: 2px; }

.report-bar {
    height: 10px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
    margin-top: 8px;
}

.report-bar span {
    display: block;
    height: 100%;
    background: #2563eb;
    border-radius: inherit;
}

.report-bar.success span { background: #16a34a; }
.report-bar.warning span { background: #f59e0b; }

.mini-progress {
    height: 7px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
    margin-bottom: 4px;
}

.mini-progress span {
    display: block;
    height: 100%;
    background: #16a34a;
}

.statement-case-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #eef2f7;
}

.statement-case-row:last-child { border-bottom: 0; }
.statement-case-row strong,
.statement-case-row small,
.statement-case-row span { display: block; }
.statement-case-row small { color: #667085; }
.statement-case-row > div:last-child { text-align: left; font-weight: 800; font-size: 12px; }

@media print {
    .pro-report-page .d-print-none,
    .pro-report-page .report-hero,
    .pro-report-page form,
    .pro-report-page .select2,
    .pro-report-page .btn,
    .pro-report-page .dataTables_length,
    .pro-report-page .dataTables_filter,
    .pro-report-page .dataTables_info,
    .pro-report-page .dataTables_paginate,
    .pro-report-page .dataTables_wrapper .row:first-child,
    .pro-report-page .dataTables_wrapper .row:last-child,
    .dataTables_wrapper .row:first-child,
    .dataTables_wrapper .row:last-child {
        display: none !important;
    }

    .unified-print-head {
        display: block !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    .pro-report-page,
    .pro-report-page .card,
    .pro-report-page .card-body,
    .pro-report-page .table-responsive,
    .pro-report-page .dataTables_wrapper,
    .report-details-section,
    .report-details-section .card-body,
    .report-details-section .table-responsive,
    .report-details-section .dataTables_wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        box-shadow: none !important;
    }

    .pro-report-page .card {
        border: 1px solid #ddd !important;
        margin-bottom: 7px !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .report-kpi-section,
    .report-insights-section {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
    }

    .report-kpi-section > div,
    .report-insights-section > div {
        flex: 1 1 0 !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 3px !important;
    }

    .report-kpi-card,
    .report-subtitle-card {
        box-shadow: none !important;
        padding: 8px !important;
        min-height: auto !important;
    }

    .report-kpi-card strong { font-size: 15px !important; }
    .report-subtitle-card h4 { font-size: 15px !important; }
    .report-score-ring { width: 66px !important; height: 66px !important; }
    .report-score-ring strong { font-size: 15px !important; }

    .report-full-print-table,
    .report-details-section table,
    .dataTable,
    table.dataTable {
        display: table !important;
        width: 100% !important;
        max-width: 100% !important;
        border-collapse: collapse !important;
        table-layout: fixed !important;
        font-size: 9px !important;
    }

    .report-full-print-table thead,
    .report-full-print-table tbody,
    .report-full-print-table tfoot,
    .report-full-print-table tr,
    .report-full-print-table th,
    .report-full-print-table td,
    table.dataTable thead,
    table.dataTable tbody,
    table.dataTable tfoot,
    table.dataTable tr,
    table.dataTable th,
    table.dataTable td {
        display: revert !important;
        visibility: visible !important;
    }

    .report-full-print-table th,
    .report-full-print-table td,
    table.dataTable th,
    table.dataTable td {
        white-space: normal !important;
        word-break: break-word !important;
        padding: 3px 4px !important;
        color: #111 !important;
        background: #fff !important;
    }

    .dataTables_scroll,
    .dataTables_scrollBody,
    .dataTables_scrollHead,
    .dataTables_scrollFoot {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
}

/* =========================================================
   Multi-office signup / terms pages
========================================================= */
.auth-pro-body,
.terms-pro-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 20%, rgba(13, 110, 253, .28), transparent 24%),
        radial-gradient(circle at 90% 10%, rgba(25, 135, 84, .22), transparent 22%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #123f73 100%);
}

.auth-pro-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 560px;
    gap: 28px;
    padding: 38px;
    align-items: center;
}

.auth-pro-showcase {
    color: #fff;
    padding: 34px;
}

.auth-pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    margin-bottom: 18px;
    font-weight: 800;
}

.auth-pro-showcase h1 {
    font-size: 42px;
    line-height: 1.35;
    font-weight: 900;
    margin-bottom: 16px;
}

.auth-pro-showcase p {
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 1.9;
    max-width: 720px;
}

.auth-pro-features {
    display: grid;
    gap: 12px;
    margin-top: 26px;
    max-width: 560px;
}

.auth-pro-features div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.12);
}

.auth-pro-features i {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.14);
}

.auth-pro-card {
    background: #fff;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 30px 90px rgba(0,0,0,.26);
}

.auth-pro-icon {
    width: 62px;
    height: 62px;
    border-radius: 22px;
    margin: 0 auto 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #123f73, #1d6fd1);
    color: #fff;
    font-size: 24px;
}

.auth-terms-check {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px 42px 14px 14px;
}

.terms-pro-hero {
    color: #fff;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 28px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.terms-pro-hero span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    margin-bottom: 10px;
    font-weight: 800;
}

.terms-pro-hero h1 {
    font-weight: 900;
    margin-bottom: 8px;
}

.terms-pro-hero p {
    margin: 0;
    color: rgba(255,255,255,.78);
}

.terms-pro-hero i {
    font-size: 54px;
    opacity: .9;
}

.terms-pro-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 24px 70px rgba(0,0,0,.20);
}

.terms-pro-card h4 {
    color: #123f73;
    font-weight: 900;
    margin-top: 22px;
}

.terms-pro-card h4:first-child {
    margin-top: 0;
}

.terms-pro-card p {
    color: #344054;
    line-height: 1.9;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .auth-pro-page {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .auth-pro-showcase {
        padding: 14px;
    }

    .auth-pro-showcase h1 {
        font-size: 30px;
    }
}


/* =========================================================
   Responsive Layout Fixes - Mobile First / App Wide
   Added to prevent page overflow and make dashboard usable on phones.
========================================================= */
:root {
    --app-sidebar-width: 240px;
    --app-navbar-height: 64px;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

.app-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.app-main {
    min-width: 0;
    width: calc(100% - var(--app-sidebar-width));
    margin-right: var(--app-sidebar-width);
    max-width: calc(100vw - var(--app-sidebar-width));
    overflow-x: hidden;
}

.app-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.app-navbar {
    min-height: var(--app-navbar-height);
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-sidebar-toggle {
    display: none;
    flex: 0 0 auto;
}

.app-sidebar-overlay {
    display: none;
}

.card,
.app-card,
.card-body,
.modal-body,
.app-content > * {
    max-width: 100%;
}

.row {
    min-width: 0;
}

[class*="col-"] {
    min-width: 0;
}

.form-control,
.form-select,
.select2-container {
    max-width: 100%;
}

.dataTables_wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.app-table-responsive,
.dataTables_scroll,
.dataTables_scrollBody {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.app-table-responsive table,
.dataTables_scroll table {
    margin-bottom: 0;
}

.table {
    white-space: nowrap;
}

.table td,
.table th {
    vertical-align: middle;
}

.dataTables_wrapper .row {
    align-items: center;
    row-gap: 10px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    width: 100%;
    max-width: 100%;
}

.dataTables_wrapper .dataTables_filter input {
    max-width: 100%;
    margin: 0 8px 0 0;
}

.btn,
.badge,
.form-control,
.form-select {
    font-size: .92rem;
}

@media (min-width: 992px) {
    .app-sidebar {
        transform: none !important;
    }
}

@media (max-width: 991.98px) {
    :root {
        --app-sidebar-width: 280px;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .app-sidebar {
        width: var(--app-sidebar-width);
        max-width: 86vw;
        transform: translateX(100%);
        transition: transform .25s ease;
        z-index: 1045;
        box-shadow: -18px 0 45px rgba(15, 23, 42, .22);
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .45);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
        z-index: 1040;
    }

    body.sidebar-open .app-sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .app-main {
        width: 100%;
        max-width: 100vw;
        margin-right: 0;
    }

    .app-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .app-navbar {
        padding: 10px 12px;
        flex-wrap: wrap;
    }

    .navbar-title {
        flex: 1;
        min-width: 120px;
        font-size: 16px;
    }

    .navbar-user {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
        flex-wrap: wrap;
        font-size: 13px;
    }

    .notification-menu {
        max-width: calc(100vw - 24px);
    }

    .app-content {
        padding: 12px;
    }

    .card-body {
        padding: 14px;
    }

    .card .card-body.d-flex,
    .card-header.d-flex {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
    }

    form.row,
    .row.g-3,
    .row.align-items-end {
        row-gap: 10px;
    }

    form.row > [class*="col-"],
    .row.g-3 > [class*="col-"] {
        width: 100%;
        flex: 0 0 100%;
    }

    .btn {
        white-space: nowrap;
    }

    .d-flex.gap-2,
    .d-flex.justify-content-end,
    .d-flex.justify-content-between {
        flex-wrap: wrap;
    }

    .table {
        font-size: 13px;
        min-width: 900px;
    }

    .dataTables_wrapper .row > div {
        width: 100%;
        text-align: right !important;
    }

    .dataTables_wrapper .dataTables_filter label,
    .dataTables_wrapper .dataTables_length label {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .dataTables_wrapper .dataTables_filter input,
    .dataTables_wrapper .dataTables_length select {
        flex: 1 1 180px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }

    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .select2-container .select2-selection--single {
        min-height: 38px;
    }
}

@media (max-width: 575.98px) {
    .app-navbar {
        align-items: flex-start;
    }

    .navbar-user .logout-link {
        font-size: 13px;
    }

    .app-content {
        padding: 10px 8px;
    }

    .card {
        border-radius: 12px;
    }

    .card-body {
        padding: 12px;
    }

    h1, .h1 { font-size: 1.55rem; }
    h2, .h2 { font-size: 1.35rem; }
    h3, .h3 { font-size: 1.2rem; }
    h4, .h4 { font-size: 1.05rem; }

    .table {
        min-width: 780px;
        font-size: 12px;
    }

    .btn-sm,
    .btn {
        padding-inline: .6rem;
    }
}

/* =========================================================
   Unified Compact Responsive Layout Fix - 2026-06
   Keeps wide tables inside content area and prevents sidebar overlap
========================================================= */
:root {
    --app-sidebar-width: 220px;
    --app-page-font-size: 13px;
    --app-table-font-size: 11.8px;
    --app-control-height: 34px;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden !important;
}

body {
    font-size: var(--app-page-font-size);
}

.app-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.app-sidebar {
    width: var(--app-sidebar-width) !important;
    z-index: 1040;
}

.app-main {
    margin-right: var(--app-sidebar-width) !important;
    width: calc(100vw - var(--app-sidebar-width)) !important;
    max-width: calc(100vw - var(--app-sidebar-width)) !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
}

.app-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding: 14px !important;
}

.app-navbar {
    min-width: 0;
    padding: 11px 16px !important;
}

.navbar-title {
    font-size: 16px !important;
}

.card,
.app-card {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px !important;
}

.card-body {
    min-width: 0;
    padding: 12px 14px !important;
}

h1, .h1 { font-size: 1.45rem; }
h2, .h2 { font-size: 1.3rem; }
h3, .h3 { font-size: 1.16rem; }
h4, .h4 { font-size: 1.02rem; }
h5, .h5 { font-size: .95rem; }

.form-label {
    font-size: 12px;
    margin-bottom: 4px;
    font-weight: 700;
}

.form-control,
.form-select,
.select2-container .select2-selection--single {
    min-height: var(--app-control-height) !important;
    height: var(--app-control-height) !important;
    font-size: 12px !important;
    border-radius: 10px !important;
}

textarea.form-control {
    height: auto !important;
    min-height: 78px !important;
}

.btn {
    font-size: 12px !important;
    border-radius: 10px !important;
    padding: .36rem .65rem !important;
}

.btn-sm {
    font-size: 11.5px !important;
    padding: .28rem .48rem !important;
    line-height: 1.25 !important;
}

.badge {
    font-size: 10.5px !important;
    padding: .35em .55em;
}

/* Tables must scroll inside the card only, never on the whole page */
.app-table-responsive,
.table-responsive,
.dataTables_wrapper,
.dataTables_scroll,
.dataTables_scrollHead,
.dataTables_scrollBody {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.table-responsive,
.app-table-responsive,
.dataTables_scrollBody {
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.dataTables_wrapper {
    overflow: hidden !important;
}

.dataTables_scroll {
    border-radius: 12px;
    overflow: hidden;
}

.dataTables_scrollBody {
    border-bottom: 1px solid #eef2f7;
}

.table,
.app-table,
.dataTable {
    font-size: var(--app-table-font-size) !important;
    line-height: 1.45;
    margin-bottom: 0 !important;
}

.table th,
.table td,
.app-table th,
.app-table td,
.dataTable th,
.dataTable td {
    padding: .42rem .48rem !important;
    vertical-align: middle !important;
    white-space: normal;
    word-break: normal;
}

.table thead th,
.app-table thead th,
.dataTable thead th {
    white-space: nowrap !important;
    font-size: 11px !important;
}

/* DataTables generated table can be wider, but only inside its scroll viewport */
.dataTables_scrollHeadInner,
.dataTables_scrollHeadInner table,
.dataTables_scrollBody table {
    min-width: 100% !important;
}

.dataTables_scrollBody table {
    width: max-content !important;
}

.dataTables_wrapper .row {
    --bs-gutter-x: .75rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: center;
}

.dataTables_wrapper .row > div {
    padding-left: .25rem !important;
    padding-right: .25rem !important;
}

.dataTables_length,
.dataTables_filter,
.dataTables_info,
.dataTables_paginate {
    font-size: 12px !important;
}

.dataTables_filter input,
.dataTables_length select {
    height: 32px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}

/* Keep action buttons compact in crowded tables */
.table td .btn,
.dataTable td .btn {
    margin: 2px 0;
    white-space: nowrap;
}

/* Case/session/payment list screens */
.card.mb-3 .row.align-items-end > [class*="col-"] {
    min-width: 0;
}

@media (min-width: 1200px) {
    .app-content {
        padding: 16px !important;
    }

    .table,
    .app-table,
    .dataTable {
        font-size: 12px !important;
    }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    :root {
        --app-sidebar-width: 205px;
        --app-page-font-size: 12.5px;
        --app-table-font-size: 11.5px;
    }

    .sidebar-logo {
        font-size: 16px !important;
    }

    .sidebar-menu a {
        padding: 10px 14px !important;
        font-size: 12.5px !important;
    }
}

@media (max-width: 991.98px) {
    :root {
        --app-sidebar-width: 230px;
        --app-page-font-size: 12.5px;
        --app-table-font-size: 11.5px;
    }

    .app-sidebar {
        transform: translateX(100%);
        transition: transform .25s ease;
        width: var(--app-sidebar-width) !important;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-main {
        margin-right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .app-content {
        padding: 10px !important;
    }

    .app-navbar {
        padding: 9px 12px !important;
        gap: 8px;
    }

    .card-body {
        padding: 10px !important;
    }

    .row.align-items-end > [class*="col-"],
    form.row > [class*="col-"] {
        margin-bottom: 8px;
    }

    .table,
    .app-table,
    .dataTable {
        font-size: 11px !important;
    }
}

@media (max-width: 575.98px) {
    .app-content {
        padding: 8px 6px !important;
    }

    .app-navbar {
        flex-wrap: wrap;
    }

    .navbar-user {
        gap: 8px !important;
        flex-wrap: wrap;
    }

    .form-control,
    .form-select,
    .select2-container .select2-selection--single {
        min-height: 32px !important;
        height: 32px !important;
        font-size: 11.5px !important;
    }

    .btn {
        font-size: 11.5px !important;
        padding: .3rem .5rem !important;
    }

    .table,
    .app-table,
    .dataTable {
        min-width: 760px;
        font-size: 10.8px !important;
    }
}

/* Login page vertical center under public header */
.auth-public-page .login-center-row {
    min-height: calc(100vh - 82px);
}


/* =========================================================
   Global Print: remove DataTables UI/effects and print all rows
========================================================= */
@media print {
    .dataTables_length,
    .dataTables_filter,
    .dataTables_info,
    .dataTables_paginate,
    .dataTables_processing,
    .dataTables_scrollHead,
    .dataTables_scrollFoot,
    .dt-buttons,
    .sorting:before,
    .sorting:after,
    .sorting_asc:before,
    .sorting_asc:after,
    .sorting_desc:before,
    .sorting_desc:after {
        display: none !important;
    }

    .dataTables_wrapper,
    .dataTables_scroll,
    .dataTables_scrollBody,
    .table-responsive,
    .app-table-responsive {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        border: 0 !important;
    }

    .dataTables_scrollBody {
        position: static !important;
    }

    table.dataTable,
    .dataTables_wrapper table,
    .table-responsive table,
    .app-table-responsive table {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        border-collapse: collapse !important;
        table-layout: fixed !important;
    }

    table.dataTable th,
    table.dataTable td,
    .dataTables_wrapper table th,
    .dataTables_wrapper table td,
    .table-responsive table th,
    .table-responsive table td,
    .app-table-responsive table th,
    .app-table-responsive table td {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        padding: 4px 5px !important;
        font-size: 9px !important;
        line-height: 1.35 !important;
    }

    table.dataTable thead .sorting,
    table.dataTable thead .sorting_asc,
    table.dataTable thead .sorting_desc {
        background-image: none !important;
    }
}

/* Batch 1: إصلاح وضوح ألوان نصوص قائمة الإشعارات */
.notification-menu,
.notification-menu * {
    color: inherit;
}
.notification-menu-header,
.notification-menu-header strong {
    color: #111827 !important;
}
.notification-menu-header small,
.notification-menu-header a {
    color: #0d6efd !important;
}
.notification-content strong {
    color: #111827 !important;
}
.notification-content small {
    color: #374151 !important;
}
.notification-content em {
    color: #6b7280 !important;
}
.notification-empty,
.notification-empty span {
    color: #6b7280 !important;
}



.expense-quick-badge{border:1px solid #e3e8f0;border-radius:14px;padding:10px 14px;background:#fff;display:inline-flex;gap:8px;align-items:center;margin:3px;text-decoration:none;color:#1f2937}.expense-quick-badge.active{background:#0d6efd;color:#fff;border-color:#0d6efd}.expense-total-box{background:#f8fafc;border:1px solid #e3e8f0;border-radius:12px;padding:12px 16px;font-weight:bold}


/* Suggestions + Select2 modal fixes */
.app-suggestion-floating-btn {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1030;
    border-radius: 30px;
    font-size: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
}
.select2-container--open {
    z-index: 20000 !important;
}
.modal .select2-container {
    width: 100% !important;
}
.select2-dropdown {
    direction: rtl;
    text-align: right;
}
.select2-search__field {
    direction: rtl;
    text-align: right;
}
@media print {
    .app-suggestion-floating-btn,
    #globalSuggestionModal,
    .select2-container--open {
        display: none !important;
    }
}

/* Client appointments + profile print hotfix */
.logout-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    transition: all .2s ease;
}

.logout-link:hover {
    background: rgba(220, 53, 69, .10);
    color: #dc3545 !important;
    text-decoration: none;
    transform: translateY(-1px);
}

@media print {
    .client-profile-screen,
    .client-profile-screen > :not(.case-print-sheet),
    .client-profile-screen .row,
    .client-profile-screen .card,
    .client-profile-screen .case-kpi-card,
    .client-profile-screen .case-section-card,
    .client-profile-screen .side-profile-card {
        display: block !important;
        visibility: visible !important;
    }

    .client-profile-screen .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .client-profile-screen .col-xl-8,
    .client-profile-screen .col-xl-4,
    .client-profile-screen .col-md-3 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .client-profile-screen .case-details-hero {
        background: #0d3b66 !important;
        color: #fff !important;
        border-radius: 12px !important;
        padding: 18px !important;
        margin-bottom: 16px !important;
    }

    .client-profile-screen .case-details-hero .btn,
    .client-profile-screen .case-details-hero a,
    .client-profile-screen .case-details-hero button {
        display: none !important;
    }

    .client-profile-screen .table-responsive {
        overflow: visible !important;
    }
}

/* =========================================================
   Mobile UX Safety Layer - 2026-06-26
   Conservative responsive fixes only. Desktop remains unchanged.
========================================================= */
@media (max-width: 991.98px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        font-size: 14px !important;
        background: #f5f6fa;
    }

    .app-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .app-main {
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .app-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: min(292px, 86vw) !important;
        max-width: 86vw !important;
        transform: translateX(105%) !important;
        transition: transform .25s ease !important;
        z-index: 1050 !important;
        box-shadow: -18px 0 45px rgba(15, 23, 42, .25);
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0) !important;
    }

    .app-sidebar-overlay {
        display: block !important;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .48);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
        z-index: 1040;
    }

    body.sidebar-open .app-sidebar-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

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

    .app-sidebar-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 14px !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    }

    .app-navbar {
        position: sticky !important;
        top: 0;
        z-index: 1030;
        min-height: 62px;
        padding: 10px 12px !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        background: #fff;
    }

    .navbar-title {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 16px !important;
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar-user {
        flex: 0 0 auto;
        width: auto !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        font-size: 13px !important;
    }

    .navbar-user > span {
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navbar-user .logout-link {
        font-size: 0 !important;
    }

    .navbar-user .logout-link i {
        font-size: 14px !important;
        margin: 0;
    }

    .notification-toggle {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }

    .app-content {
        padding: 12px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .card,
    .app-card {
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    .card-body {
        padding: 14px 12px !important;
    }

    .form-label {
        font-size: 13px !important;
    }

    .form-control,
    .form-select,
    .select2-container .select2-selection--single {
        min-height: 42px !important;
        height: 42px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
    }

    textarea.form-control {
        min-height: 110px !important;
        height: auto !important;
    }

    .btn {
        min-height: 38px;
        font-size: 13px !important;
        border-radius: 12px !important;
    }

    .btn-sm {
        min-height: 32px;
        font-size: 12px !important;
    }

    form.row > [class*="col-"],
    .row.align-items-end > [class*="col-"],
    .row.g-3 > [class*="col-"] {
        margin-bottom: 8px;
    }

    .modal-dialog {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }

    .modal-content {
        border-radius: 18px !important;
    }

    .modal-footer {
        gap: 8px;
        flex-wrap: wrap;
    }

    .modal-footer .btn {
        flex: 1 1 140px;
    }

    .app-suggestion-floating-btn {
        right: 12px !important;
        left: auto !important;
        bottom: 12px !important;
        z-index: 1020 !important;
        max-width: calc(100vw - 24px);
    }
}

@media (max-width: 767.98px) {
    /* Keep all data screens as scrollable tables, not cards. */
    .table-responsive,
    .app-table-responsive,
    .dataTables_scrollBody {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }

    .table,
    table.dataTable,
    .dataTables_scrollBody table {
        min-width: 780px !important;
        width: max-content !important;
        max-width: none !important;
        white-space: nowrap !important;
    }

    .table th,
    .table td,
    table.dataTable th,
    table.dataTable td {
        white-space: nowrap !important;
        font-size: 12px !important;
        padding: .5rem .55rem !important;
        vertical-align: middle !important;
    }

    .dataTables_wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .dataTables_wrapper .row {
        row-gap: 8px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .dataTables_wrapper .row > div {
        width: 100% !important;
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .dataTables_filter label,
    .dataTables_length label {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        font-size: 12px !important;
    }

    .dataTables_filter input {
        flex: 1 1 180px;
        max-width: 220px;
        min-height: 36px !important;
    }

    .dataTables_length select {
        min-height: 34px !important;
    }

    .dataTables_paginate .pagination {
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 14px !important;
    }

    .app-content {
        padding: 10px 8px !important;
    }

    .navbar-user > span {
        display: none;
    }

    .card-body {
        padding: 12px 10px !important;
    }

    .dashboard-hero-content,
    .dashboard-card .card-body {
        padding: 16px !important;
    }

    .notification-menu {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
    }
}

/* =========================================================
   Mobile Sidebar Hotfix - 2026-06-26
   Keeps desktop unchanged and only fixes the off-canvas menu on mobile/tablet.
========================================================= */
@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: min(280px, 86vw) !important;
        max-width: 86vw !important;
        height: 100vh !important;
        transform: translateX(110%) !important;
        transition: transform .25s ease !important;
        z-index: 1055 !important;
        box-shadow: -18px 0 45px rgba(15, 23, 42, .25) !important;
        will-change: transform;
    }

    body.sidebar-open .app-sidebar,
    body.mobile-sidebar-open .app-sidebar {
        transform: translateX(0) !important;
    }

    .app-sidebar-overlay {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(15, 23, 42, .48) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity .25s ease, visibility .25s ease !important;
        z-index: 1050 !important;
    }

    body.sidebar-open .app-sidebar-overlay,
    body.mobile-sidebar-open .app-sidebar-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    body.sidebar-open,
    body.mobile-sidebar-open {
        overflow: hidden !important;
    }

    .app-sidebar-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 1060 !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
    }
}

/* =========================================================
   Mobile Sidebar Scroll Hotfix - 2026-06-27
   Allows the off-canvas sidebar itself to scroll while the page behind stays locked.
========================================================= */
@media (max-width: 991.98px) {
    .app-sidebar {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        touch-action: pan-y !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        z-index: 1075 !important;
    }

    .app-sidebar .sidebar-menu {
        padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
    }

    .app-sidebar-overlay {
        z-index: 1070 !important;
        overscroll-behavior: contain !important;
        touch-action: none !important;
    }

    .app-sidebar-toggle {
        z-index: 1080 !important;
    }

    body.sidebar-open,
    body.mobile-sidebar-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
}


.visit-website-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#A77B47;
    font-weight:600;
    text-decoration:none;
    transition:.3s;
}

.visit-website-link i{
    font-size:15px;
}

.visit-website-link:hover{
    color:#000;
    transform:translateY(-2px);
}
.dashboard-staff-login-list {
    display: grid;
    gap: 10px;
}

.dashboard-staff-login-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #f8fafc;
}

.dashboard-staff-login-item strong,
.dashboard-staff-login-item small,
.dashboard-staff-login-meta small {
    display: block;
}

.dashboard-staff-login-item strong {
    color: #111827;
    font-size: 13px;
}

.dashboard-staff-login-item small,
.dashboard-staff-login-meta small {
    color: #667085;
    font-size: 12px;
}

.dashboard-staff-login-meta {
    text-align: left;
    white-space: nowrap;
}

