@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap");

:root {
    --fm-font-en: "Inter", "Segoe UI", Arial, sans-serif;
    --fm-font-ar: "Noto Sans Arabic", "Tahoma", Arial, sans-serif;
    --fm-font-size-base: 15px;
    --fm-line-height-base: 1.55;
    --fm-surface: #ffffff;
    --fm-surface-soft: #f7fafb;
    --fm-surface-muted: #eef6f7;
    --fm-border: #dde9ec;
    --fm-border-strong: #c6d9de;
    --fm-text: #27343b;
    --fm-text-muted: #71828b;
    --fm-primary: #0498ad;
    --fm-primary-deep: #027f92;
    --fm-primary-soft: #e9f8fa;
    --fm-danger: #d84b55;
    --fm-shadow-soft: 0 14px 34px rgba(31, 64, 73, 0.08);
    --fm-shadow-control: 0 1px 2px rgba(31, 64, 73, 0.04);
}

html,
body,
button,
input,
select,
textarea,
.btn,
.form-control,
.table,
.dataTable,
.dropdown-menu,
.sidebar .menu ul.list li a {
    font-family: var(--fm-font-en) !important;
}

html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] .btn,
html[dir="rtl"] .form-control,
html[dir="rtl"] .table,
html[dir="rtl"] .dataTable,
html[dir="rtl"] .dropdown-menu,
html[dir="rtl"] .sidebar .menu ul.list li a {
    font-family: var(--fm-font-ar) !important;
}

body {
    font-size: var(--fm-font-size-base);
    line-height: var(--fm-line-height-base);
    font-weight: 400;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sidebar {
    background: #fbfdfe;
    border-right: 1px solid #e4eef1;
    box-shadow: 8px 0 24px rgba(31, 52, 60, 0.045);
    height: 100vh !important;
    overflow-x: hidden;
    overflow-y: auto;
    top: 0;
}

.sidebar .user-info {
    background: transparent;
    border-bottom: 1px solid #e8f0f2;
    margin: 0 12px;
    padding: 28px 14px 26px;
}

.sidebar .user-info .imagee {
    margin-bottom: 14px;
}

.sidebar .user-info .imagee img {
    display: block;
    height: 42px;
    margin: 0 auto;
    max-width: 160px;
    object-fit: contain;
    padding: 0;
    width: auto;
}

.sidebar .user-info .detail {
    margin-top: 8px;
    text-align: center;
}

.sidebar .user-info .detail h4 {
    color: #12343f !important;
    font-size: 11px !important;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0.9px;
    line-height: 1.2;
    margin: 0 0 7px;
    text-transform: uppercase;
}

.sidebar .user-info .detail small {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #009aae;
    display: inline-flex;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1px;
    line-height: 1.25;
    padding: 0;
    text-transform: uppercase;
}

.sidebar .menu {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 12px 18px 32px;
}

.sidebar .menu::-webkit-scrollbar {
    width: 0;
}

.sidebar .menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar .menu::-webkit-scrollbar-thumb {
    background: #cfe2e7;
    border-radius: 999px;
}

.sidebar .menu .list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding: 0;
}

.sidebar .menu .list > li {
    margin: 0 !important;
}

.sidebar .menu .list > li > a,
.sidebar .menu ul.list li a {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: #0095aa !important;
    display: flex;
    font-size: 14px !important;
    font-style: italic;
    font-weight: 750 !important;
    font-family: var(--fm-font-en) !important;
    justify-content: space-between;
    letter-spacing: 0;
    line-height: 1.3;
    min-height: 32px;
    padding: 7px 8px !important;
    text-decoration: none;
    transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

html[dir="rtl"] .sidebar .menu .list > li > a,
html[dir="rtl"] .sidebar .menu ul.list li a {
    font-family: var(--fm-font-ar) !important;
}

.sidebar .menu .list > li > a span,
.sidebar .menu ul.list li a span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar .menu .list > li > a:hover,
.sidebar .menu .list > li.active > a,
.sidebar .menu .list > li.open > a,
.sidebar .menu .list > li > a.toggled {
    background: #eef8fa;
    box-shadow: none;
    color: #075f70 !important;
    font-size: 14px !important;
    transform: none;
}

.sidebar .menu .list > li.active > a {
    background: #eaf8fa;
    box-shadow: inset 3px 0 0 #00a2b8;
    color: #047f91 !important;
    font-weight: 750 !important;
}

.sidebar .menu .list .menu-toggle::before,
.sidebar .menu .list .menu-toggle::after {
    color: currentColor;
    font-size: 13px;
    right: 7px;
    top: 50%;
}

.sidebar .menu .list .menu-toggle::before {
    transform: translateY(-50%) rotate(0deg);
}

.sidebar .menu .list .menu-toggle::after {
    transform: translateY(-50%) rotate(90deg);
}

.sidebar .menu .list .menu-toggle.toggled::before {
    transform: translateY(-50%) rotate(90deg);
}

.sidebar .menu .list .menu-toggle.toggled::after {
    transform: translateY(-50%) rotate(180deg);
}

.sidebar .menu .list .ml-menu {
    background: transparent;
    border-left: 1px solid #dcecef;
    border-radius: 0;
    margin: 2px 0 4px 10px;
    padding: 4px 0 4px 10px;
}

.sidebar .menu .list .ml-menu li a {
    border-radius: 7px;
    color: #617780 !important;
    font-size: 12.5px !important;
    font-style: italic;
    font-weight: 600 !important;
    min-height: 32px;
    padding: 7px 10px !important;
}

.sidebar .menu .list .ml-menu li a:hover,
.sidebar .menu .list .ml-menu li.active > a {
    font-size: 12.5px !important;
}

.sidebar .menu .list .ml-menu li a:hover,
.sidebar .menu .list .ml-menu li.active > a {
    background: #ffffff;
    color: #075f70 !important;
    transform: none;
}

.sidebar .menu .list .ml-menu li a::before {
    content: none !important;
}

.sidebar .menu .list li#ChangePassword > a {
    color: #364c55 !important;
}

.sidebar .menu .list li#logout > a {
    color: #c7434e !important;
}

.sidebar .menu .list li#logout > a:hover {
    background: #fff5f6;
    color: #b93440 !important;
}

.sidebar .menu .list li#ChangePassword,
.sidebar .menu .list li#logout {
    margin-top: 0 !important;
}

/* Sidebar option 3: clean product navigation. */
.sidebar {
    background: #fbfdfe !important;
    border-right: 1px solid #dfeaec !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

.sidebar .user-info {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #e3edf0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 14px 10px !important;
    padding: 24px 10px 18px !important;
}

.sidebar .user-info .imagee {
    margin: 0 0 8px !important;
}

.sidebar .user-info .imagee img {
    height: 36px !important;
    max-width: 152px !important;
}

.sidebar .user-info .detail {
    margin-top: 4px !important;
    text-align: center !important;
}

.sidebar .user-info .detail h4 {
    color: #112d36 !important;
    font-family: var(--fm-font-en) !important;
    font-size: 10.5px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    letter-spacing: 0.9px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
}

.sidebar .user-info .detail small {
    display: none !important;
}

.sidebar .user-info .detail small:not(:empty) {
    background: transparent !important;
    border: 0 !important;
    color: #0795aa !important;
    display: block !important;
    font-family: var(--fm-font-en) !important;
    font-size: 9.5px !important;
    font-style: normal !important;
    font-weight: 750 !important;
    letter-spacing: 0.8px !important;
    line-height: 1.15 !important;
    margin-top: 5px !important;
    padding: 0 !important;
    text-transform: uppercase !important;
}

.sidebar .menu {
    height: auto !important;
    overflow: visible !important;
    padding: 4px 20px 18px !important;
}

.sidebar .menu .list {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar .menu .list > li {
    margin: 0 0 3px !important;
}

.sidebar .menu .list > li > a,
.sidebar .menu ul.list li a {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    color: #0095aa !important;
    display: flex !important;
    font-family: var(--fm-font-en) !important;
    font-size: 13.25px !important;
    font-style: normal !important;
    font-weight: 750 !important;
    justify-content: space-between !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    min-height: 31px !important;
    padding: 6px 8px !important;
    text-decoration: none !important;
    transform: none !important;
}

.sidebar .menu .list > li > a::before {
    content: none !important;
}

.sidebar .menu .list > li > a:hover,
.sidebar .menu .list > li.open > a,
.sidebar .menu .list > li > a.toggled {
    background: #edf8fa !important;
    color: #067f91 !important;
    font-size: 13.25px !important;
}

.sidebar .menu .list > li.active > a {
    background: #e8f7fa !important;
    color: #056b7c !important;
    font-size: 13.25px !important;
}

.sidebar .menu .list .menu-toggle::before,
.sidebar .menu .list .menu-toggle::after {
    content: none !important;
}

.sidebar .menu .list .menu-toggle span::after {
    color: #8ca6ad;
    content: "\203A";
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar .menu .list .menu-toggle.toggled span::after {
    transform: translateY(-50%) rotate(90deg);
}

.sidebar .menu .list > li > a span {
    min-width: 0 !important;
    overflow: hidden !important;
    padding-right: 18px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.sidebar .menu .list .ml-menu {
    background: transparent !important;
    border: 0 !important;
    margin: 0 0 4px 8px !important;
    padding: 2px 0 2px 8px !important;
}

.sidebar .menu .list .ml-menu li a {
    color: #60757c !important;
    font-family: var(--fm-font-en) !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 650 !important;
    min-height: 27px !important;
    padding: 5px 8px !important;
}

.sidebar .menu .list .ml-menu li a:hover,
.sidebar .menu .list .ml-menu li.active > a {
    background: #edf8fa !important;
    color: #067f91 !important;
    font-size: 12px !important;
}

.sidebar .menu .list li#ChangePassword > a {
    color: #43545b !important;
}

.sidebar .menu .list li#logout > a {
    color: #e0313f !important;
}

html[dir="rtl"] .sidebar .menu .list .menu-toggle span::after {
    left: 8px;
    right: auto;
    transform: translateY(-50%) rotate(180deg);
}

html[dir="rtl"] .sidebar .menu .list .menu-toggle.toggled span::after {
    transform: translateY(-50%) rotate(90deg);
}

html[dir="rtl"] .sidebar .menu .list > li > a span {
    padding-left: 18px !important;
    padding-right: 0 !important;
}

/* Sidebar option 4: premium flat navigation, no identity card. */
.sidebar {
    background: linear-gradient(180deg, #f8fcfd 0%, #ffffff 46%, #f7fbfc 100%) !important;
    border-right: 1px solid #dce9ed !important;
    box-shadow: 8px 0 28px rgba(27, 52, 61, 0.055) !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

.sidebar .user-info {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #e3eef1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 18px 8px !important;
    padding: 18px 4px 14px !important;
}

.sidebar .user-info .imagee {
    margin: 0 0 6px !important;
}

.sidebar .user-info .imagee img {
    height: 34px !important;
    max-width: 148px !important;
}

.sidebar .user-info .detail {
    margin-top: 2px !important;
    text-align: center !important;
}

.sidebar .user-info .detail h4 {
    color: #15323b !important;
    font-size: 10px !important;
    font-style: normal !important;
    font-weight: 850 !important;
    letter-spacing: 1px !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
}

.sidebar .user-info .detail small {
    display: none !important;
}

.sidebar .menu {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 6px 16px 14px !important;
}

.sidebar .menu .list {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar .menu .list > li {
    margin: 0 !important;
}

.sidebar .menu .list > li > a,
.sidebar .menu ul.list li a {
    align-items: center !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    color: #2f6470 !important;
    display: flex !important;
    font-family: var(--fm-font-en) !important;
    font-size: 13px !important;
    font-style: normal !important;
    font-weight: 760 !important;
    justify-content: space-between !important;
    letter-spacing: 0 !important;
    line-height: 1.18 !important;
    min-height: 32px !important;
    padding: 7px 9px 7px 10px !important;
    position: relative !important;
    text-decoration: none !important;
    transform: none !important;
}

.sidebar .menu .list > li > a::before {
    background: #079db3;
    border-radius: 999px;
    content: "" !important;
    height: 18px;
    left: -6px;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
}

.sidebar .menu .list > li > a span {
    min-width: 0 !important;
    overflow: hidden !important;
    padding-right: 18px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.sidebar .menu .list > li > a:hover,
.sidebar .menu .list > li.open > a,
.sidebar .menu .list > li > a.toggled {
    background: #f0fafb !important;
    border-color: #d9edf1 !important;
    color: #075f70 !important;
    font-size: 13px !important;
}

.sidebar .menu .list > li.active > a {
    background: #ffffff !important;
    border-color: #d1e9ee !important;
    box-shadow: 0 8px 18px rgba(4, 132, 151, 0.07) !important;
    color: #064f5e !important;
    font-size: 13px !important;
}

.sidebar .menu .list > li > a:hover::before,
.sidebar .menu .list > li.open > a::before,
.sidebar .menu .list > li > a.toggled::before,
.sidebar .menu .list > li.active > a::before {
    opacity: 1;
}

.sidebar .menu .list .menu-toggle::before,
.sidebar .menu .list .menu-toggle::after {
    content: none !important;
}

.sidebar .menu .list .menu-toggle span::after {
    color: #8ea9b0 !important;
    content: "\203A" !important;
    font-size: 17px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    position: absolute !important;
    right: 9px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.sidebar .menu .list .menu-toggle.toggled span::after {
    transform: translateY(-50%) rotate(90deg) !important;
}

.sidebar .menu .list .ml-menu {
    background: #f7fbfc !important;
    border: 0 !important;
    border-radius: 10px !important;
    margin: 2px 0 4px 6px !important;
    padding: 4px !important;
}

.sidebar .menu .list .ml-menu li a {
    background: transparent !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #5c747c !important;
    font-family: var(--fm-font-en) !important;
    font-size: 11.75px !important;
    font-style: normal !important;
    font-weight: 650 !important;
    line-height: 1.15 !important;
    min-height: 26px !important;
    padding: 5px 8px !important;
}

.sidebar .menu .list .ml-menu li a:hover,
.sidebar .menu .list .ml-menu li.active > a {
    background: #ffffff !important;
    color: #075f70 !important;
    font-size: 11.75px !important;
}

.sidebar .menu .list li#ChangePassword > a {
    color: #40545c !important;
}

.sidebar .menu .list li#logout > a {
    color: #d93543 !important;
}

.sidebar .menu .list li#logout > a:hover {
    background: #fff4f5 !important;
    border-color: #f1d1d5 !important;
    color: #b82f3b !important;
}

html[dir="rtl"] .sidebar {
    border-left: 1px solid #dce9ed !important;
    border-right: 0 !important;
    box-shadow: -8px 0 28px rgba(27, 52, 61, 0.055) !important;
}

html[dir="rtl"] .sidebar .menu .list > li > a::before {
    left: auto;
    right: -6px;
}

html[dir="rtl"] .sidebar .menu .list > li > a span {
    padding-left: 18px !important;
    padding-right: 0 !important;
}

html[dir="rtl"] .sidebar .menu .list .menu-toggle span::after {
    left: 9px !important;
    right: auto !important;
    transform: translateY(-50%) rotate(180deg) !important;
}

html[dir="rtl"] .sidebar .menu .list .menu-toggle.toggled span::after {
    transform: translateY(-50%) rotate(90deg) !important;
}

/* Sidebar option 5: modern readable navigation. */
.sidebar {
    background: #ffffff !important;
    border-right: 1px solid #dbe8ec !important;
    box-shadow: 10px 0 30px rgba(25, 54, 62, 0.06) !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

.sidebar .user-info {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #e4edf0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 20px 12px !important;
    padding: 22px 0 18px !important;
}

.sidebar .user-info .imagee img {
    height: 40px !important;
    max-width: 168px !important;
}

.sidebar .user-info .detail h4 {
    color: #102f38 !important;
    font-family: var(--fm-font-en) !important;
    font-size: 11px !important;
    font-style: normal !important;
    font-weight: 850 !important;
    letter-spacing: 0.8px !important;
    line-height: 1.2 !important;
    margin: 6px 0 0 !important;
    text-transform: uppercase !important;
}

.sidebar .user-info .detail small {
    display: none !important;
}

.sidebar .menu {
    padding: 4px 16px 18px !important;
}

.sidebar .menu .list {
    gap: 6px !important;
}

.sidebar .menu .list > li > a,
.sidebar .menu ul.list li a {
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    color: #157f91 !important;
    font-family: var(--fm-font-en) !important;
    font-size: 14.5px !important;
    font-style: normal !important;
    font-weight: 760 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    min-height: 38px !important;
    padding: 9px 12px !important;
}

.sidebar .menu .list > li > a span {
    padding-right: 20px !important;
}

.sidebar .menu .list > li > a::before {
    background: #05a8bd;
    border-radius: 999px;
    content: "" !important;
    height: 20px;
    left: -6px;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
}

.sidebar .menu .list > li > a:hover,
.sidebar .menu .list > li.open > a,
.sidebar .menu .list > li > a.toggled {
    background: #f0fafb !important;
    border-color: #d7eef2 !important;
    color: #056b7c !important;
    font-size: 14.5px !important;
}

.sidebar .menu .list > li.active > a {
    background: linear-gradient(135deg, #f3fbfc 0%, #e9f8fa 100%) !important;
    border-color: #cdebf0 !important;
    box-shadow: 0 8px 18px rgba(5, 117, 136, 0.08) !important;
    color: #064f5e !important;
    font-size: 14.5px !important;
}

.sidebar .menu .list > li > a:hover::before,
.sidebar .menu .list > li.open > a::before,
.sidebar .menu .list > li > a.toggled::before,
.sidebar .menu .list > li.active > a::before {
    opacity: 1;
}

.sidebar .menu .list .menu-toggle span::after {
    color: #8aa4ab !important;
    content: "\203A" !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    position: absolute !important;
    right: 11px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.sidebar .menu .list .menu-toggle::before,
.sidebar .menu .list .menu-toggle::after {
    content: none !important;
}

.sidebar .menu .list .ml-menu {
    background: #f7fbfc !important;
    border: 0 !important;
    border-radius: 12px !important;
    margin: 3px 0 5px 8px !important;
    padding: 6px !important;
}

.sidebar .menu .list .ml-menu li a {
    border-radius: 10px !important;
    color: #607982 !important;
    font-size: 13px !important;
    font-style: normal !important;
    font-weight: 680 !important;
    min-height: 31px !important;
    padding: 7px 10px !important;
}

.sidebar .menu .list .ml-menu li a:hover,
.sidebar .menu .list .ml-menu li.active > a {
    background: #ffffff !important;
    color: #056b7c !important;
    font-size: 13px !important;
}

.sidebar .menu .list li#ChangePassword > a {
    color: #40545c !important;
}

.sidebar .menu .list li#logout > a {
    color: #d93543 !important;
}

html[dir="rtl"] .sidebar {
    border-left: 1px solid #dbe8ec !important;
    border-right: 0 !important;
    box-shadow: -10px 0 30px rgba(25, 54, 62, 0.06) !important;
}

html[dir="rtl"] .sidebar .menu .list > li > a::before {
    left: auto;
    right: -6px;
}

html[dir="rtl"] .sidebar .menu .list > li > a span {
    padding-left: 20px !important;
    padding-right: 0 !important;
}

html[dir="rtl"] .sidebar .menu .list .menu-toggle span::after {
    left: 11px !important;
    right: auto !important;
    transform: translateY(-50%) rotate(180deg) !important;
}

html[dir="rtl"] .sidebar {
    border-left: 1px solid #e3eef1;
    border-right: 0;
    box-shadow: -14px 0 32px rgba(25, 54, 62, 0.07);
}

html[dir="rtl"] .sidebar .menu .list > li > a:hover,
html[dir="rtl"] .sidebar .menu .list > li.active > a,
html[dir="rtl"] .sidebar .menu .list > li.open > a,
html[dir="rtl"] .sidebar .menu .list > li > a.toggled {
    transform: none;
}

html[dir="rtl"] .sidebar .menu .list .menu-toggle::before,
html[dir="rtl"] .sidebar .menu .list .menu-toggle::after {
    left: 11px;
    right: auto;
}

html[dir="rtl"] .sidebar .menu .list .ml-menu {
    border-left: 0;
    border-right: 1px solid #d9e8ec;
    margin: 2px 10px 4px 0;
    padding: 4px 10px 4px 0;
}

section.content {
    margin-top: 0;
    padding-top: 0;
}

section.content::before,
section.content:before {
    /* opt1 saved:
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 100%),
        linear-gradient(135deg, #02b8c8 0%, #02a4b8 48%, #078ca4 100%);
    background-size: 38px 100%, auto;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.2), 0 16px 34px rgba(5, 117, 136, 0.14);
    */
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.22), transparent 32%),
        linear-gradient(135deg, #0b7285 0%, #0994a8 48%, #02b8c8 100%);
    background-size: auto;
    border-radius: 0;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.24), 0 18px 38px rgba(6, 77, 92, 0.16);
    height: 88px;
    top: 0 !important;
}

.block-header {
    align-items: center;
    display: flex;
    min-height: 88px;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

.block-header > .row {
    align-items: center;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.block-header > .row > [class*="col-"] {
    float: none;
    padding-left: 0;
    padding-right: 0;
    position: static !important;
}

.block-header h2 {
    color: #ffffff;
    font-size: 24px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
    text-shadow: 0 1px 2px rgba(16, 81, 92, 0.18);
}

.block-header h2::after {
    background: #ffffff;
    border-radius: 999px;
    content: "";
    display: block;
    height: 2px;
    margin-top: 10px;
    opacity: 0.9;
    width: 46px;
}

.block-header h2 small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    margin-top: 4px;
}

.block-header .breadcrumb {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(2, 116, 134, 0.12);
    border-radius: 10px;
    box-shadow: 0 12px 26px rgba(2, 78, 96, 0.16);
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 7px;
    justify-content: flex-end;
    margin: 0;
    max-width: 100%;
    min-height: 42px;
    padding: 9px 15px;
    white-space: nowrap;
}

.block-header .breadcrumb,
.block-header .breadcrumb li,
.block-header .breadcrumb .breadcrumb-item,
.block-header .breadcrumb .active {
    color: #5d747c;
    font-size: 13px;
    font-style: normal;
    font-weight: 650;
    line-height: 1.2;
}

.block-header .breadcrumb .active {
    color: #078ca4;
}

.block-header .breadcrumb a {
    color: #123d48 !important;
    font-weight: 750;
    text-decoration: none;
}

.block-header .breadcrumb i {
    align-items: center;
    background: #e8f8fa;
    border-radius: 8px;
    display: inline-flex;
    font-size: 14px;
    height: 24px;
    justify-content: center;
    margin-right: 7px;
    transform: translateY(1px);
    width: 24px;
}

.block-header .breadcrumb > li + li::before,
.block-header .breadcrumb-item + .breadcrumb-item::before {
    color: #9db0b6;
    font-style: normal;
    padding: 0 2px 0 0;
}

.block-header + .container-fluid {
    margin-top: 14px;
}

html[dir="rtl"] .block-header .breadcrumb {
    justify-content: flex-start;
}

html[dir="rtl"] .block-header .breadcrumb i {
    margin-left: 7px;
    margin-right: 0;
}

@media (max-width: 991px) {
    section.content::before,
    section.content:before {
        height: 96px;
    }

    .block-header {
        min-height: 96px;
        padding: 14px 20px;
    }

    .block-header > .row {
        gap: 10px;
    }

    .block-header .breadcrumb {
        justify-content: flex-start;
        min-height: 36px;
        padding: 7px 12px;
    }

    section.content {
        margin-left: 0 !important;
    }
}

h1,
h2,
h3,
h4,
h5,
h6,
.block-header h1,
.block-header h2,
.block-header h3,
.card .header h2,
.login-logo {
    font-family: var(--fm-font-en) !important;
    font-weight: 650;
    letter-spacing: 0;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .block-header h1,
html[dir="rtl"] .block-header h2,
html[dir="rtl"] .block-header h3,
html[dir="rtl"] .card .header h2,
html[dir="rtl"] .login-logo {
    font-family: var(--fm-font-ar) !important;
    font-weight: 650;
}

.form-control,
select.form-control,
textarea.form-control,
.btn,
.dropdown-menu,
.pagination,
.dataTables_info,
.dataTables_paginate,
.sidebar .menu ul.list li a {
    font-size: 15px;
    line-height: 1.45;
}

.table,
.dataTable {
    font-size: 14.5px;
    line-height: 1.5;
}

.table th,
.dataTable th,
.datagrid tr.gridheader th,
.datagrid tr.gridheader td {
    font-weight: 650;
}

.table td,
.table th,
.dataTable td,
.dataTable th {
    vertical-align: middle;
}

.sidebar .menu ul.list li a {
    font-size: 15.5px;
    line-height: 1.38;
    font-weight: 450;
    letter-spacing: 0;
    padding-top: 7px;
    padding-bottom: 7px;
}

.sidebar .menu ul.list li a span {
    font: inherit;
}

.sidebar .menu ul.list li a:hover,
.sidebar .menu ul.list li.active > a,
.sidebar .menu ul.list li.open > a {
    font-size: 15.5px;
    font-weight: 550;
}

.patients-list {
    background: #ffffff;
    border: 1px solid var(--fm-border);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(31, 64, 73, 0.08);
    overflow: hidden;
}

.patients-list > .header,
.patients-list .header {
    padding: 18px 18px 0;
}

.patients-list .header h2 {
    align-items: center;
    color: var(--fm-text);
    display: flex;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    gap: 5px;
    margin: 0 0 14px;
}

.patients-list .header h2::before {
    background: var(--fm-primary);
    border-radius: 999px;
    content: "";
    display: inline-block;
    height: 22px;
    margin-right: 8px;
    width: 4px;
}

.patients-list .header h2 strong {
    color: var(--fm-primary-deep);
    font-weight: 700;
}

#searchForm.modal-content,
.patients-list form.modal-content,
form.search-md-form {
    background: #ffffff;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 0 18px !important;
    padding: 4px 0 16px !important;
}

#searchForm.modal-content > .row,
.patients-list form.modal-content > .row,
form.search-md-form {
    align-items: end;
    display: grid;
    gap: 14px 18px;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(190px, 0.8fr);
    margin: 0;
}

#searchForm.modal-content > .row > :nth-child(1),
.patients-list form.modal-content > .row > :nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

#searchForm.modal-content > .row > :nth-child(2),
.patients-list form.modal-content > .row > :nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

#searchForm.modal-content > .row > :nth-child(3),
.patients-list form.modal-content > .row > :nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

#searchForm.modal-content > .row > :nth-child(4),
.patients-list form.modal-content > .row > :nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

#searchForm.modal-content > .row > :nth-child(5),
.patients-list form.modal-content > .row > :nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

#searchForm.modal-content .col-sm-2,
#searchForm.modal-content .col-sm-5,
.patients-list form.modal-content .col-sm-2,
.patients-list form.modal-content .col-sm-5,
form.search-md-form > [class*="col-"] {
    float: none;
    max-width: none;
    padding: 0;
    width: auto;
}

#searchForm.modal-content .form-group,
.patients-list form.modal-content .form-group,
form.search-md-form .form-group {
    margin: 0;
}

#searchForm.modal-content label,
.patients-list form.modal-content label,
form.search-md-form label {
    color: #31424a;
    display: block;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    margin: 0 0 8px;
    text-transform: none;
}

#searchForm.modal-content .form-control,
.patients-list form.modal-content .form-control,
form.search-md-form .form-control {
    background: #fbfdfe;
    border: 1px solid #cfdde2;
    border-radius: 8px;
    box-shadow: none;
    color: var(--fm-text);
    font-size: 15px;
    font-weight: 400;
    height: 40px;
    min-height: 40px;
    padding: 8px 12px;
}

#searchForm.modal-content .form-control:focus,
.patients-list form.modal-content .form-control:focus,
form.search-md-form .form-control:focus {
    background: #ffffff;
    border-color: var(--fm-primary);
    box-shadow: 0 0 0 4px rgba(4, 152, 173, 0.13);
}

#searchForm.modal-content input[type="radio"],
.patients-list form.modal-content input[type="radio"],
form.search-md-form input[type="radio"] {
    accent-color: var(--fm-primary);
    margin: 0 5px 0 0;
    transform: translateY(1px);
}

#searchForm.modal-content .form-group:has(input[type="radio"]),
.patients-list form.modal-content .form-group:has(input[type="radio"]),
form.search-md-form .form-group:has(input[type="radio"]) {
    align-items: center;
    background: #f6fbfc;
    border: 1px solid var(--fm-border);
    border-radius: 10px;
    color: var(--fm-text);
    display: flex;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    gap: 8px;
    min-height: 40px;
    padding: 5px;
    white-space: nowrap;
}

#searchForm.modal-content .form-group:has(input[type="radio"])::before,
.patients-list form.modal-content .form-group:has(input[type="radio"])::before,
form.search-md-form .form-group:has(input[type="radio"])::before {
    color: #31424a;
    content: "Status";
    display: block;
    font-size: 13px;
    font-weight: 600;
    left: 0;
    position: absolute;
    top: -25px;
}

#searchForm.modal-content .form-group:has(input[type="radio"]),
.patients-list form.modal-content .form-group:has(input[type="radio"]),
form.search-md-form .form-group:has(input[type="radio"]) {
    margin-top: 25px;
    position: relative;
}

#searchForm.modal-content .form-group:has(input[type="radio"]) input[type="radio"],
.patients-list form.modal-content .form-group:has(input[type="radio"]) input[type="radio"],
form.search-md-form .form-group:has(input[type="radio"]) input[type="radio"] {
    margin-left: 8px;
}

#searchForm.modal-content .form-group:has(input[type="radio"]) input[type="radio"]:first-child,
.patients-list form.modal-content .form-group:has(input[type="radio"]) input[type="radio"]:first-child,
form.search-md-form .form-group:has(input[type="radio"]) input[type="radio"]:first-child {
    margin-left: 6px;
}

#searchForm.modal-content .btn.btn-primary,
.patients-list form.modal-content .btn.btn-primary,
form.search-md-form .btn.btn-primary {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    min-width: 112px;
    padding: 9px 18px;
    width: auto;
}

#searchForm.modal-content .btn.btn-primary::before,
.patients-list form.modal-content .btn.btn-primary::before,
form.search-md-form .btn.btn-primary::before {
    content: none;
}

.patients-list .body {
    padding: 0 18px 18px;
}

.patients-list .body > .row:has(.action-buttons) {
    background: #ffffff;
    border: 0;
    box-shadow: none;
    display: block;
    margin: 0 0 14px;
    padding: 0;
}

.patients-list .body > .row:has(.action-buttons) > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.patients-list .body .action-buttons,
.patients-list .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
}

.patients-list .body .action-buttons + .action-buttons,
.patients-list .action-buttons + .action-buttons {
    margin-top: 0;
}

.patients-list .action-buttons .btn,
.patients-list .action-buttons a.btn,
.patients-list .action-buttons button.btn {
    min-height: 40px;
    min-width: 96px;
    padding: 9px 14px;
}

.patients-list .action-buttons .btn i,
.patients-list .action-buttons a.btn i,
.patients-list .action-buttons button.btn i {
    display: none;
}

.patients-list .action-buttons .btn {
    text-align: center;
}

.patients-list .tab-content.m-t-10 {
    margin-top: 0 !important;
    width: 100%;
}

.patients-list .tab-pane.table-responsive {
    background: #ffffff;
    border: 1px solid #dbe8ec;
    border-top: 4px solid var(--fm-primary);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(23, 48, 57, 0.08);
    overflow-x: auto;
    padding: 0;
}

.patients-list .table-hd {
    background: #ffffff !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

.patients-list .table-hd thead {
    background: transparent !important;
    color: var(--fm-text) !important;
    text-align: left !important;
}

.patients-list .table-hd th {
    background: #f6fafb !important;
    border: 0 !important;
    border-bottom: 1px solid #dce9ed !important;
    color: #405660 !important;
    font-size: 11.8px !important;
    font-weight: 700 !important;
    padding: 15px 18px !important;
    text-align: left !important;
    text-transform: uppercase !important;
    white-space: nowrap;
}

.patients-list .table-hd th:first-child {
    border-top-left-radius: 8px;
    box-shadow: none;
}

.patients-list .table-hd th:last-child {
    border-top-right-radius: 8px;
}

.patients-list .table-hd tbody tr {
    background: #ffffff;
    box-shadow: none;
    transition: background-color 0.14s ease, box-shadow 0.14s ease;
}

.patients-list .table-hd tbody tr:hover {
    background: #f9fcfd !important;
    box-shadow: inset 3px 0 0 var(--fm-primary);
    cursor: default !important;
}

.patients-list .table-hd td {
    border: 0 !important;
    border-bottom: 1px solid #edf3f5 !important;
    color: #27343b;
    font-size: 14.2px;
    padding: 13px 18px !important;
    text-align: left !important;
    vertical-align: middle;
}

.patients-list .table-hd td + td,
.patients-list .table-hd th + th {
    border-left: 0 !important;
}

.patients-list .table-hd tbody tr:last-child td:first-child {
    border-bottom-left-radius: 14px;
}

.patients-list .table-hd tbody tr:last-child td:last-child {
    border-bottom-right-radius: 14px;
}

.patients-list .table-hd td:first-child {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

.patients-list .table-hd td:last-child {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.patients-list .table-hd tbody tr:nth-child(even) {
    background: #ffffff !important;
}

.patients-list .table-hd tbody tr:last-child td {
    border-bottom: 0 !important;
}

.patients-list .table-hd input[type="checkbox"] {
    accent-color: var(--fm-primary);
    cursor: pointer;
    height: 16px;
    width: 16px;
}

.patients-list .table-hd td.text-center,
.patients-list .table-hd th.text-center,
.patients-list .table-hd td[style*="text-center"],
.patients-list .table-hd th[style*="text-center"] {
    text-align: center !important;
}

.patients-list .table-hd a {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--fm-primary-deep) !important;
    display: inline-flex;
    font-weight: 600;
    gap: 5px;
    min-height: 0;
    padding: 0;
    text-decoration: none !important;
    transition: color 0.16s ease;
}

.patients-list .table-hd a:hover {
    background: transparent;
    border-color: transparent;
    color: var(--fm-primary) !important;
}

.patients-list .action-icon,
.patients-list .zmdi {
    color: var(--fm-primary-deep) !important;
    font-size: 17px;
}

.patients-list .table-hd td.text-center a,
.patients-list .table-hd th.text-center a {
    justify-content: center;
}

.patients-list .table-hd td.text-center .zmdi,
.patients-list .table-hd td.text-center .fa {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe8ec;
    border-radius: 8px;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.patients-list .table-hd .fa-check,
.patients-list .table-hd .zmdi-check {
    background: #e8f8f1 !important;
    color: #168a65 !important;
}

.patients-list .table-hd .fa-ban,
.patients-list .table-hd .zmdi-block-alt,
.patients-list .table-hd .fa-trash-o,
.patients-list .table-hd .zmdi-delete {
    background: #fff3f4 !important;
    color: #c94c57 !important;
}

.patients-list .inactive-icon,
.patients-list .zmdi-block-alt {
    color: var(--fm-danger) !important;
}

.content .box,
.card {
    border: 1px solid var(--fm-border);
    border-radius: 12px;
    box-shadow: var(--fm-shadow-soft);
}

.content .box-header {
    border-bottom: 0;
    padding: 16px 18px 4px;
}

.content .box-body {
    padding: 16px 18px 20px;
}

.content .box-body > .row:first-child,
.content .box-body > .row:has(.action-buttons),
.content .box-body > .row:has(#ddlFilter),
.content .box-body > .row:has(#txtSearchField) {
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, var(--fm-surface-soft) 100%);
    border: 1px solid var(--fm-border);
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(31, 64, 73, 0.06);
    display: flex;
    gap: 12px;
    margin: 0 0 16px;
    padding: 14px;
}

.action-buttons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.action-buttons .btn-group,
.pull-right .btn,
.pull-right .form-control {
    margin: 0;
}

.btn.btn-primary,
.btn-primary.btn-flat {
    background: linear-gradient(180deg, #08a8bd 0%, var(--fm-primary) 100%);
    border-color: rgba(4, 152, 173, 0.9);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(31, 64, 73, 0.08);
    color: #ffffff;
    font-weight: 600;
    min-height: 38px;
    padding: 8px 14px;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn.btn-primary:hover,
.btn-primary.btn-flat:hover,
.btn.btn-primary:focus,
.btn-primary.btn-flat:focus {
    background: linear-gradient(180deg, #0498ad 0%, var(--fm-primary-deep) 100%);
    border-color: var(--fm-primary-deep);
    box-shadow: 0 10px 22px rgba(4, 152, 173, 0.18);
    color: #ffffff;
    transform: translateY(-1px);
}

.pull-right {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-end;
}

#ddlFilter,
#txtSearchField,
#ddlStatus,
#ddlPageSize,
.form-control.input-sm,
.input-small.input-inline {
    background-color: #ffffff;
    border: 1px solid var(--fm-border);
    border-radius: 8px;
    box-shadow: var(--fm-shadow-control);
    color: var(--fm-text);
    font-weight: 500;
    min-height: 38px;
    padding: 8px 12px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

#ddlFilter,
#ddlStatus {
    min-width: 170px;
}

#txtSearchField {
    min-width: 240px;
}

#ddlFilter:focus,
#txtSearchField:focus,
#ddlStatus:focus,
#ddlPageSize:focus,
.form-control.input-sm:focus,
.input-small.input-inline:focus {
    border-color: var(--fm-primary);
    box-shadow: 0 0 0 3px rgba(4, 152, 173, 0.14);
    outline: 0;
}

.datagrid.table-responsive,
.table-responsive.datagrid {
    background: var(--fm-surface);
    border: 1px solid var(--fm-border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(31, 64, 73, 0.06);
    margin-top: 14px;
    overflow-x: auto;
    overflow-y: hidden;
}

.datagrid .table,
.table.table-hd {
    background: #ffffff;
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    width: 100%;
}

.datagrid.table-responsive::-webkit-scrollbar,
.table-responsive.datagrid::-webkit-scrollbar {
    height: 8px;
}

.datagrid.table-responsive::-webkit-scrollbar-track,
.table-responsive.datagrid::-webkit-scrollbar-track {
    background: #f3f7f8;
}

.datagrid.table-responsive::-webkit-scrollbar-thumb,
.table-responsive.datagrid::-webkit-scrollbar-thumb {
    background: #c7dde2;
    border-radius: 999px;
}

.datagrid .table > thead > tr > th,
.datagrid .table > thead > tr > td,
.table-hd > thead > tr > th,
.table-hd > thead > tr > td,
.datagrid tr.gridheader th,
.datagrid tr.gridheader td {
    background: linear-gradient(180deg, #f8fbfc 0%, #eef7f8 100%) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--fm-border-strong) !important;
    color: var(--fm-text);
    font-size: 12.5px;
    font-weight: 700;
    padding: 14px 15px;
    text-transform: uppercase;
}

.datagrid tr.gridheader td a,
.datagrid tr.gridheader th a {
    background: transparent !important;
    color: var(--fm-text) !important;
    font-weight: inherit;
}

.datagrid .table > tbody > tr > td,
.table-hd > tbody > tr > td {
    border: 0 !important;
    border-bottom: 1px solid #edf4f6 !important;
    color: var(--fm-text);
    padding: 13px 15px;
}

.datagrid .table > tbody > tr:nth-child(even),
.table-hd > tbody > tr:nth-child(even) {
    background-color: #fbfdfe;
}

.datagrid .table > tbody > tr:hover,
.table-hd > tbody > tr:hover {
    background-color: var(--fm-primary-soft);
    box-shadow: inset 3px 0 0 var(--fm-primary);
}

.datagrid .table > tbody > tr:last-child > td,
.table-hd > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

.search_field {
    cursor: pointer;
    position: relative;
}

.search_field:hover {
    color: var(--fm-primary-deep) !important;
}

.search_field.ascending::after,
.search_field.descending::after {
    color: var(--fm-primary);
    font-family: FontAwesome;
    font-size: 11px;
    margin-left: 7px;
}

.search_field.ascending::after {
    content: "\f0de";
}

.search_field.descending::after {
    content: "\f0dd";
}

.datagrid a,
.table-hd a {
    color: var(--fm-primary-deep);
    font-weight: 600;
}

.datagrid a:hover,
.table-hd a:hover {
    color: var(--fm-primary);
}

.datagrid .fa-check {
    color: #1f9f70;
}

.datagrid .fa-ban,
.datagrid .fa-trash-o {
    color: var(--fm-danger);
}

.datagrid .fa-edit {
    color: var(--fm-primary-deep);
}

.dataTables_paginate,
.pagination {
    margin: 0;
}

.pagination > li > a,
.pagination > li > span,
.dataTables_paginate a {
    border: 1px solid var(--fm-border) !important;
    border-radius: 7px !important;
    color: var(--fm-text-muted) !important;
    margin: 0 3px;
    min-width: 34px;
    padding: 7px 10px;
}

.pagination > .active > a,
.pagination > .active > span,
.dataTables_paginate .active a,
.dataTables_paginate .current {
    background: var(--fm-primary) !important;
    border-color: var(--fm-primary) !important;
    color: #ffffff !important;
}

.dataTables_info,
.margin-top-10,
.box-body label,
#ddlPageSize + span {
    color: var(--fm-text-muted);
    font-weight: 500;
}

@media (max-width: 991px) {
    #searchForm.modal-content > .row,
    .patients-list form.modal-content > .row,
    form.search-md-form {
        grid-template-columns: 1fr 1fr;
    }

    #searchForm.modal-content > .row > :nth-child(1),
    .patients-list form.modal-content > .row > :nth-child(1) {
        grid-column: 1;
        grid-row: auto;
    }

    #searchForm.modal-content > .row > :nth-child(2),
    .patients-list form.modal-content > .row > :nth-child(2) {
        grid-column: 2;
        grid-row: auto;
    }

    #searchForm.modal-content > .row > :nth-child(3),
    .patients-list form.modal-content > .row > :nth-child(3) {
        grid-column: 1;
        grid-row: auto;
    }

    #searchForm.modal-content > .row > :nth-child(4),
    .patients-list form.modal-content > .row > :nth-child(4) {
        grid-column: 2;
        grid-row: auto;
    }

    #searchForm.modal-content > .row > :nth-child(5),
    .patients-list form.modal-content > .row > :nth-child(5) {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    #searchForm.modal-content .btn.btn-primary,
    .patients-list form.modal-content .btn.btn-primary,
    form.search-md-form .btn.btn-primary {
        width: 100%;
    }
}

@media (max-width: 767px) {
    section.content::before,
    section.content:before {
        height: 112px;
    }

    .block-header {
        min-height: 112px;
        padding: 16px;
    }

    .block-header h2 {
        font-size: 20px;
    }

    .block-header h2::after {
        margin-top: 8px;
        width: 32px;
    }

    .block-header .breadcrumb,
    .block-header .breadcrumb li,
    .block-header .breadcrumb .breadcrumb-item,
    .block-header .breadcrumb .active {
        font-size: 12px;
    }

    #searchForm.modal-content > .row,
    .patients-list form.modal-content > .row,
    form.search-md-form {
        grid-template-columns: 1fr;
    }

    #searchForm.modal-content .btn.btn-primary,
    .patients-list form.modal-content .btn.btn-primary,
    form.search-md-form .btn.btn-primary {
        width: 100%;
    }

    .content .box-body > .row:first-child,
    .content .box-body > .row:has(.action-buttons),
    .content .box-body > .row:has(#ddlFilter),
    .content .box-body > .row:has(#txtSearchField) {
        display: block;
    }

    .pull-right {
        justify-content: flex-start;
        margin-top: 10px;
    }

    #ddlFilter,
    #txtSearchField,
    #ddlStatus {
        min-width: 100%;
        width: 100% !important;
    }
}

/* Sidebar menu final layer: scoped, scroll-safe, and intentionally quiet. */
.sidebar {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.sidebar .menu {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 12px 18px 32px !important;
}

.sidebar .menu .list {
    gap: 9px !important;
}

.sidebar .menu .list > li > a,
.sidebar .menu ul.list li a {
    background: transparent !important;
    border: 0 !important;
    border-radius: 9px !important;
    color: #0095aa !important;
    font-family: var(--fm-font-en) !important;
    font-size: 14px !important;
    font-style: italic !important;
    font-weight: 750 !important;
    line-height: 1.3 !important;
    min-height: 32px !important;
    padding: 7px 8px !important;
}

html[dir="rtl"] .sidebar .menu .list > li > a,
html[dir="rtl"] .sidebar .menu ul.list li a {
    font-family: var(--fm-font-ar) !important;
}

.sidebar .menu .list > li > a:hover,
.sidebar .menu .list > li.active > a,
.sidebar .menu .list > li.open > a,
.sidebar .menu .list > li > a.toggled {
    background: #eef8fa !important;
    box-shadow: none !important;
    color: #047f91 !important;
    font-size: 14px !important;
    transform: none !important;
}

.sidebar .menu .list > li.active > a {
    background: #eaf8fa !important;
    box-shadow: inset 3px 0 0 #00a2b8 !important;
}

.sidebar .menu .list .ml-menu {
    background: transparent !important;
    border-left: 1px solid #dcecef !important;
    margin: 2px 0 4px 10px !important;
    padding: 4px 0 4px 10px !important;
}

.sidebar .menu .list .ml-menu li a {
    color: #617780 !important;
    font-size: 12.5px !important;
    font-style: italic !important;
    font-weight: 600 !important;
    min-height: 32px !important;
    padding: 7px 10px !important;
}

html[dir="rtl"] .sidebar .menu .list .ml-menu {
    border-left: 0 !important;
    border-right: 1px solid #dcecef !important;
    margin: 2px 10px 4px 0 !important;
    padding: 4px 10px 4px 0 !important;
}

/* Sidebar option 2: clinical console navigation. */
.sidebar {
    background: linear-gradient(180deg, #f3fafb 0%, #ffffff 44%, #f8fcfd 100%) !important;
    border-right: 1px solid #d8e8ec !important;
    box-shadow: 12px 0 34px rgba(20, 55, 65, 0.06) !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

.sidebar .user-info {
    background: #ffffff !important;
    border: 1px solid #e2eff2 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 18px rgba(28, 77, 88, 0.045) !important;
    margin: 12px 14px 8px !important;
    padding: 12px 12px 10px !important;
}

.sidebar .user-info .imagee {
    margin-bottom: 8px !important;
}

.sidebar .user-info .imagee img {
    height: 32px !important;
    max-width: 140px !important;
}

.sidebar .user-info .detail h4 {
    color: #15313a !important;
    font-family: var(--fm-font-en) !important;
    font-size: 9.5px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    line-height: 1.15 !important;
    margin: 0 0 5px !important;
}

.sidebar .user-info .detail small {
    background: #ecfafc !important;
    border: 1px solid #d4eef3 !important;
    border-radius: 999px !important;
    color: #067c91 !important;
    font-family: var(--fm-font-en) !important;
    font-size: 9px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    letter-spacing: 0.6px !important;
    line-height: 1.1 !important;
    padding: 4px 8px !important;
}

.sidebar .menu {
    height: auto !important;
    overflow: visible !important;
    padding: 8px 14px 12px !important;
}

.sidebar .menu .list {
    gap: 3px !important;
}

.sidebar .menu .list > li > a,
.sidebar .menu ul.list li a {
    align-items: center !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    color: #355762 !important;
    font-family: var(--fm-font-en) !important;
    font-size: 12.5px !important;
    font-style: normal !important;
    font-weight: 720 !important;
    letter-spacing: 0 !important;
    line-height: 1.18 !important;
    min-height: 31px !important;
    padding: 7px 10px 7px 12px !important;
    position: relative !important;
}

.sidebar .menu .list > li > a::before {
    background: #04a7ba;
    border-radius: 999px;
    content: "";
    height: 16px;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.14s ease;
    width: 3px;
}

.sidebar .menu .list > li > a:hover,
.sidebar .menu .list > li.open > a,
.sidebar .menu .list > li > a.toggled {
    background: #f0fafb !important;
    border-color: #d9edf1 !important;
    color: #075f70 !important;
}

.sidebar .menu .list > li.active > a {
    background: #ffffff !important;
    border-color: #cfe9ee !important;
    box-shadow: 0 10px 22px rgba(4, 132, 151, 0.09) !important;
    color: #064f5e !important;
}

.sidebar .menu .list > li.active > a::before,
.sidebar .menu .list > li > a:hover::before,
.sidebar .menu .list > li.open > a::before,
.sidebar .menu .list > li > a.toggled::before {
    opacity: 1;
}

.sidebar .menu .list .menu-toggle::before,
.sidebar .menu .list .menu-toggle::after {
    color: #77a0aa !important;
    font-size: 12px !important;
    right: 10px !important;
}

.sidebar .menu .list .ml-menu {
    background: rgba(255, 255, 255, 0.62) !important;
    border: 0 !important;
    border-radius: 10px !important;
    margin: 2px 0 3px 8px !important;
    padding: 4px !important;
}

.sidebar .menu .list .ml-menu li a {
    border-radius: 8px !important;
    color: #607982 !important;
    font-family: var(--fm-font-en) !important;
    font-size: 11.75px !important;
    font-style: normal !important;
    font-weight: 650 !important;
    line-height: 1.15 !important;
    min-height: 28px !important;
    padding: 6px 9px !important;
}

.sidebar .menu .list .ml-menu li a:hover,
.sidebar .menu .list .ml-menu li.active > a {
    background: #edf8fa !important;
    color: #075f70 !important;
}

.sidebar .menu .list li#ChangePassword > a {
    color: #455f68 !important;
}

.sidebar .menu .list li#logout > a {
    color: #bd3d49 !important;
}

.sidebar .menu .list li#logout > a:hover {
    background: #fff3f4 !important;
    border-color: #f1d1d5 !important;
    color: #a8323d !important;
}

html[dir="rtl"] .sidebar {
    border-left: 1px solid #d8e8ec !important;
    border-right: 0 !important;
    box-shadow: -12px 0 34px rgba(20, 55, 65, 0.06) !important;
}

html[dir="rtl"] .sidebar .menu .list > li > a::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .sidebar .menu .list .menu-toggle::before,
html[dir="rtl"] .sidebar .menu .list .menu-toggle::after {
    left: 12px !important;
    right: auto !important;
}

html[dir="rtl"] .sidebar .menu .list .ml-menu {
    margin: 4px 8px 6px 0 !important;
}

.sidebar .menu .list > li > a:hover,
.sidebar .menu .list > li.active > a,
.sidebar .menu .list > li.open > a,
.sidebar .menu .list > li > a.toggled {
    font-size: 12.5px !important;
}

.sidebar .menu .list .ml-menu li a:hover,
.sidebar .menu .list .ml-menu li.active > a {
    font-size: 11.75px !important;
}

.sidebar .menu .list li#ChangePassword,
.sidebar .menu .list li#logout {
    margin-top: 0 !important;
}
