:root{
 --bs-primary:#087f8c;
 --bs-dark:#123b52;
 --bs-bg:#f3f7fa;
 --bs-border:#dfe8ee;
 --bs-text:#263746;
 --bs-radius:12px;
}
html,body,button,input,select,textarea,table,th,td,
h1,h2,h3,h4,p,a,label,small{
 font-family:Tahoma,Arial,sans-serif;
}
body{
 color:var(--bs-text);
 background:var(--bs-bg);
 line-height:1.7;
}
h1,h2,h3,h4{line-height:1.45;font-weight:700}
h2{font-size:1.35rem}
h3{font-size:1.12rem}
body>header,.topbar{
 background:var(--bs-dark);
 color:#fff;
}
.card,.panel,main>section,.modal-content{
 border-radius:var(--bs-radius);
}
.card{
 border-color:var(--bs-border);
 box-shadow:0 3px 14px rgba(18,59,82,.055);
}
button,.btn,a.btn,input[type=submit],input[type=button]{
 border-radius:8px!important;
 transition:background .18s,transform .18s,box-shadow .18s;
}
button:hover,.btn:hover,a.btn:hover{
 filter:brightness(.95);
 box-shadow:0 3px 9px rgba(18,59,82,.13);
}
input:not([type=hidden]),select,textarea{
 border:1px solid #ccd9e1;
 border-radius:8px;
 min-height:40px;
 transition:border-color .15s,box-shadow .15s;
}
input:focus,select:focus,textarea:focus{
 border-color:var(--bs-primary)!important;
 outline:none!important;
 box-shadow:0 0 0 3px rgba(8,127,140,.13)!important;
}
textarea{resize:vertical}
table{border-collapse:collapse}
th{font-weight:700}
td,th{vertical-align:middle}
a{transition:color .15s}
.bs-field-wrap{
 position:relative;
 display:block;
 width:100%;
 min-width:0;
 margin:6px 0 13px;
}
.bs-field-wrap>input,
.bs-field-wrap>select,
.bs-field-wrap>textarea{
 display:block;
 width:100%!important;
 max-width:100%;
 box-sizing:border-box;
 margin:0!important;
 padding-right:40px!important;
}
.bs-field-icon{
 position:absolute;
 right:13px;
 top:50%;
 transform:translateY(-50%);
 color:#718897;
 pointer-events:none;
 font-size:14px;
}
.bs-field-wrap:has(textarea) .bs-field-icon{
 top:15px;
 transform:none;
}
.bs-action-icon{
 display:inline-block;
 margin-left:7px;
 font-size:.95em;
}
.fa-solid,.fa-regular,.fa-brands{
 font-family:"Font Awesome 6 Free" !important;
}
@media(max-width:600px){
 .card{padding:14px}
 button,.btn,a.btn{min-height:38px}
}
@media print{
 .bs-action-icon,.bs-field-icon{display:none!important}
}

/* === BAIT AL-SHIFA VISUAL POLISH START === */

:root {
    --bs-navy: #172c63;
    --bs-blue: #2879d8;
    --bs-teal: #169b95;
    --bs-page: #f4f7fb;
    --bs-border: #e5ebf3;
    --bs-text: #233451;
    --bs-muted: #73819a;
    --bs-card-shadow: 0 6px 24px rgba(23, 44, 99, .07);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif !important;
    background: var(--bs-page) !important;
    color: var(--bs-text);
    -webkit-font-smoothing: antialiased;
}

.content-wrapper,
.main-panel,
.main-content,
.page-content {
    background: var(--bs-page) !important;
}

/* شريط الأعلى */
.main-header,
.navbar-white,
header.topbar {
    background: #fff !important;
    border-bottom: 1px solid var(--bs-border) !important;
    box-shadow: 0 2px 12px rgba(23, 44, 99, .035);
}

/* القائمة الجانبية */
.main-sidebar,
.sidebar-dark-primary {
    background: #172c63 !important;
}

.main-sidebar .brand-link {
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
}

.main-sidebar .nav-sidebar .nav-link,
.sidebar .nav-link {
    border-radius: 10px;
    margin: 3px 8px;
    transition: background .18s ease, color .18s ease;
}

.main-sidebar .nav-sidebar .nav-link:hover,
.sidebar .nav-link:hover {
    background: rgba(255,255,255,.10) !important;
    color: #fff !important;
}

.main-sidebar .nav-sidebar .nav-link.active,
.sidebar .nav-link.active {
    background: #2879d8 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* العناوين */
.content-header h1,
.content-header .h1,
.page-title {
    color: var(--bs-navy);
    font-weight: 800;
    letter-spacing: -.25px;
}

.content-header {
    padding-top: 20px;
    padding-bottom: 12px;
}

/* البطاقات واللوحات */
.card,
.info-box,
.small-box,
.panel,
.dashboard-card,
.stat-card {
    border: 1px solid var(--bs-border) !important;
    border-radius: 15px !important;
    box-shadow: var(--bs-card-shadow) !important;
}

.card {
    margin-bottom: 20px;
}

.card-header {
    background: #fff !important;
    border-bottom: 1px solid var(--bs-border) !important;
    padding: 16px 20px;
    border-radius: 15px 15px 0 0 !important;
}

.card-title {
    color: var(--bs-navy);
    font-weight: 700;
}

.card-body {
    padding: 20px;
}

/* الجداول */
.table-responsive {
    border-radius: 12px;
}

.table {
    color: var(--bs-text);
    margin-bottom: 0;
    background: #fff;
}

.table thead th {
    background: #f2f6fc !important;
    color: #52627d !important;
    font-weight: 700;
    border-bottom: 1px solid #dfe7f2 !important;
    vertical-align: middle;
    white-space: nowrap;
    padding: 14px 12px;
}

.table tbody td {
    vertical-align: middle;
    padding: 12px;
    border-color: #edf1f6;
}

.table tbody tr {
    transition: background .15s ease;
}

.table tbody tr:hover {
    background: #f5f9ff !important;
}

/* حقول الإدخال */
.form-control,
.form-select,
select,
textarea,
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="hidden"]) {
    border: 1px solid #d9e2ef;
    border-radius: 10px;
    color: var(--bs-text);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.form-control,
.form-select {
    min-height: 42px;
}

.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus,
input:focus {
    border-color: #76afe9 !important;
    box-shadow: 0 0 0 3px rgba(40,121,216,.12) !important;
    outline: none;
}

label,
.form-label {
    color: #52627d;
    font-weight: 600;
    margin-bottom: 7px;
}

/* الأزرار */
.btn {
    border-radius: 10px !important;
    font-weight: 600;
    padding: 9px 15px;
    transition: transform .15s ease, box-shadow .15s ease,
                background .15s ease;
}

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

.btn-primary {
    background: var(--bs-blue) !important;
    border-color: var(--bs-blue) !important;
    box-shadow: 0 4px 10px rgba(40,121,216,.16);
}

.btn-success {
    background: var(--bs-teal) !important;
    border-color: var(--bs-teal) !important;
}

.btn-sm {
    border-radius: 8px !important;
    padding: 6px 10px;
}

/* الحالات والتنبيهات */
.badge {
    border-radius: 7px;
    font-weight: 600;
    padding: 6px 9px;
}

.alert {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(23,44,99,.04);
}

.dropdown-menu {
    border: 1px solid var(--bs-border);
    border-radius: 12px;
    padding: 7px;
    box-shadow: 0 10px 28px rgba(23,44,99,.12);
}

.dropdown-item {
    border-radius: 7px;
    padding: 9px 12px;
}

.dropdown-item:hover {
    background: #edf5ff;
    color: var(--bs-blue);
}

/* التبويبات والتنقل بين الصفحات */
.nav-tabs {
    border-bottom-color: var(--bs-border);
}

.nav-tabs .nav-link {
    border-radius: 9px 9px 0 0;
    color: #596983;
}

.nav-tabs .nav-link.active {
    color: var(--bs-blue);
    font-weight: 700;
}

.pagination .page-link {
    border-color: var(--bs-border);
    color: var(--bs-blue);
}

.pagination .page-item.active .page-link {
    background: var(--bs-blue);
    border-color: var(--bs-blue);
}

/* البحث والاختيار */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.select2-container--default .select2-selection--single {
    border: 1px solid #d9e2ef;
    border-radius: 9px;
    min-height: 38px;
    padding: 5px 10px;
}

hr {
    border-color: var(--bs-border);
    opacity: 1;
}

/* الهاتف والشاشات الصغيرة */
@media (max-width: 768px) {
    .content-wrapper .content,
    .content,
    .page-content {
        padding: 12px !important;
    }

    .card {
        margin-bottom: 14px;
        border-radius: 12px !important;
    }

    .card-header,
    .card-body {
        padding: 14px;
    }

    .content-header h1,
    .content-header .h1 {
        font-size: 21px;
    }

    .table thead th,
    .table tbody td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .btn {
        max-width: 100%;
    }

    .form-control,
    .form-select {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* === BAIT AL-SHIFA VISUAL POLISH END === */

/* === UNIFIED ADMIN HEADER FOOTER START === */

.bs-unified-header {
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    min-height: 82px;
    padding: 16px clamp(16px, 3vw, 40px) !important;
    background: #fff !important;
    color: #172c63 !important;
    border-bottom: 1px solid #e5ebf3 !important;
    box-shadow: 0 4px 18px rgba(23, 44, 99, .06);
    position: relative;
    z-index: 5;
}

.bs-unified-header h1,
.bs-unified-header h2,
.bs-unified-header strong,
.bs-unified-header b {
    color: #172c63;
}

.bs-unified-header a:not(.btn) {
    color: #2879d8 !important;
}

.bs-branch-switcher {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 !important;
    padding: 0;
}

.bs-branch-switcher label {
    margin: 0 !important;
    color: #52627d !important;
    font-size: 13px;
    font-weight: 700;
}

.bs-branch-switcher select {
    box-sizing: border-box;
    min-width: 145px;
    max-width: 250px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #d9e2ef;
    border-radius: 10px;
    background: #f8fbff;
    color: #172c63;
}

.bs-branch-switcher button {
    min-height: 42px;
    padding: 9px 15px;
    border: 0;
    border-radius: 10px;
    background: #159b9a;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.bs-branch-switcher button:hover {
    background: #117f80;
}

.bs-unified-footer {
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    width: 100%;
    margin-top: 28px;
    padding: 16px clamp(16px, 3vw, 40px);
    background: #fff !important;
    color: #73819a !important;
    border-top: 1px solid #e5ebf3;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.8;
}

@media (max-width: 700px) {
    .bs-unified-header {
        min-height: 70px;
        padding: 13px 14px !important;
        gap: 12px;
    }

    .bs-branch-switcher {
        width: 100%;
    }

    .bs-branch-switcher select {
        flex: 1;
        min-width: 0;
        max-width: 100%;
    }

    .bs-branch-switcher button {
        white-space: nowrap;
    }

    .bs-unified-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
    }
}

/* === UNIFIED ADMIN HEADER FOOTER END === */

/* === BEIT AL-SHIFA UI ENHANCEMENTS V2 START === */

.bs-unified-header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: inset 0 3px 0 #2879d8,
                0 5px 20px rgba(23,44,99,.07) !important;
}

.bs-brand-logo {
    flex-shrink: 0;
    border: 1px solid #edf1f7;
    box-shadow: 0 2px 8px rgba(23,44,99,.07);
}

.bs-unified-footer {
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px 24px;
    width: 100%;
    margin-top: 30px;
    padding: 18px clamp(16px, 3vw, 40px);
    background: #fff !important;
    color: #73819a !important;
    border-top: 1px solid #e5ebf3;
    font: 12px/1.8 Tahoma, "Segoe UI", Arial, sans-serif;
}

.bs-footer-main {
    display: flex;
    align-items: center;
    gap: 11px;
}

.bs-footer-symbol {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    background: #e5f5f4;
    color: #168b87;
    font-size: 22px;
    font-weight: 800;
}

.bs-footer-identity {
    display: grid;
    gap: 2px;
}

.bs-footer-identity strong {
    color: #172c63;
    font-size: 13px;
}

.bs-footer-identity small {
    color: #73819a;
    font-size: 11px;
}

.bs-footer-copyright {
    color: #7b879b;
}

.bs-footer-custom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bs-footer-custom:empty {
    display: none;
}

.bs-footer-custom a {
    color: #2879d8;
    text-decoration: none;
}

.bs-footer-custom a:hover {
    text-decoration: underline;
}

.bs-back-to-top {
    position: fixed;
    z-index: 999;
    left: 22px;
    bottom: 22px;
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 14px;
    background: #172c63;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 8px 22px rgba(23,44,99,.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    cursor: pointer;
}

.bs-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bs-back-to-top:hover {
    background: #2879d8;
}

.bs-unified-header .bs-branch-switcher {
    gap: 8px;
}

.bs-unified-header .bs-branch-switcher button {
    transition: background .18s ease, transform .18s ease;
}

.bs-unified-header .bs-branch-switcher button:hover {
    transform: translateY(-1px);
}

.table-responsive,
.table-wrap {
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #cad7e8 transparent;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(40,121,216,.35);
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .bs-unified-header {
        position: relative;
        gap: 10px;
    }

    .bs-unified-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 16px;
    }

    .bs-back-to-top {
        left: 14px;
        bottom: 14px;
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bs-back-to-top,
    .bs-unified-header *,
    .bs-unified-footer * {
        transition: none !important;
    }
}

/* === BEIT AL-SHIFA UI ENHANCEMENTS V2 END === */

/* === DIRECT HEADER FOOTER FIX V3 START === */

/* يعمل مباشرة حتى إذا لم يضف JavaScript أصناف التنسيق */
body > header,
body > main > header,
body > .app > .main > header,
body > .app > .main > .topbar,
body > .main > .topbar,
.main > header,
.main > .topbar {
    box-sizing: border-box !important;
    min-height: 76px;
    padding: 16px clamp(16px, 3vw, 36px) !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    background: #ffffff !important;
    color: #172c63 !important;
    border-bottom: 1px solid #dce6f3 !important;
    box-shadow: 0 5px 22px rgba(23,44,99,.08) !important;
}

body > header h1,
body > header h2,
body > header strong,
body > header b,
body > .app > .main > header h1,
body > .app > .main > header h2,
body > .app > .main > header strong,
body > .app > .main > header b,
.main > .topbar h1,
.main > .topbar h2 {
    color: #172c63 !important;
    font-weight: 800;
}

body > header a:not(.btn),
body > main > header a:not(.btn),
body > .app > .main > header a:not(.btn),
.main > .topbar a:not(.btn) {
    color: #2879d8 !important;
}

body > footer,
body > main > footer,
body > .app > .main > footer,
.main > footer,
body > .main > footer {
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 22px;
    width: 100%;
    min-height: 64px;
    margin-top: 28px;
    padding: 17px clamp(16px, 3vw, 36px) !important;
    background: #ffffff !important;
    color: #73819a !important;
    border-top: 1px solid #e5ebf3 !important;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.8;
}

body > footer a,
body > main > footer a,
body > .app > .main > footer a,
.main > footer a {
    color: #2879d8 !important;
}

@media (max-width: 700px) {
    body > header,
    body > main > header,
    body > .app > .main > header,
    body > .app > .main > .topbar,
    .main > .topbar {
        min-height: 64px;
        padding: 13px 14px !important;
        gap: 10px;
    }

    body > footer,
    body > main > footer,
    body > .app > .main > footer,
    .main > footer {
        padding: 14px !important;
        gap: 8px;
    }
}

/* === DIRECT HEADER FOOTER FIX V3 END === */

/* === HOSPITAL UI POLISH V5 START === */

body.bs-admin-ui {
    --bs-primary: #2879d8;
    --bs-navy: #172c63;
    --bs-teal: #159b95;
    --bs-line: #e4ebf4;
    --bs-surface: #ffffff;
    --bs-surface-soft: #f7faff;
    --bs-text: #243552;
    --bs-muted: #77849a;
    --bs-radius: 14px;
    --bs-shadow-soft: 0 5px 20px rgba(23,44,99,.055);
}

body.bs-admin-ui .content,
body.bs-admin-ui .content-wrapper,
body.bs-admin-ui .main-content,
body.bs-admin-ui .page-content,
body.bs-admin-ui main:not(.main) {
    min-width: 0;
}

body.bs-admin-ui .content-header,
body.bs-admin-ui .pagehead,
body.bs-admin-ui .page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bs-line);
}

body.bs-admin-ui .content-header h1,
body.bs-admin-ui .pagehead h1,
body.bs-admin-ui .page-header h1 {
    margin: 0;
    color: var(--bs-navy);
    font-size: clamp(21px, 2vw, 28px);
    font-weight: 800;
    letter-spacing: -.3px;
}

body.bs-admin-ui .content-header p,
body.bs-admin-ui .pagehead p,
body.bs-admin-ui .page-header p {
    margin: 6px 0 0;
    color: var(--bs-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* لوحات المحتوى */
body.bs-admin-ui .card,
body.bs-admin-ui .panel,
body.bs-admin-ui .info-box,
body.bs-admin-ui .small-box,
body.bs-admin-ui .dashboard-card,
body.bs-admin-ui .stat-card {
    border: 1px solid var(--bs-line) !important;
    border-radius: var(--bs-radius) !important;
    box-shadow: var(--bs-shadow-soft) !important;
    background: var(--bs-surface);
    transition: box-shadow .18s ease, border-color .18s ease;
}

body.bs-admin-ui .card:hover,
body.bs-admin-ui .panel:hover {
    border-color: #d8e4f2 !important;
    box-shadow: 0 9px 26px rgba(23,44,99,.075) !important;
}

body.bs-admin-ui .card-header {
    border-right: 4px solid var(--bs-teal);
    border-bottom: 1px solid var(--bs-line);
    background: linear-gradient(90deg, #fff, #f9fbff) !important;
}

body.bs-admin-ui .card-title,
body.bs-admin-ui .panel h2,
body.bs-admin-ui .panel h3 {
    color: var(--bs-navy);
    font-weight: 750;
}

body.bs-admin-ui .card-body {
    min-width: 0;
}

/* الإحصائيات */
body.bs-admin-ui .info-box,
body.bs-admin-ui .small-box,
body.bs-admin-ui .stat-card {
    overflow-wrap: anywhere;
}

body.bs-admin-ui .info-box .info-box-icon {
    border-radius: 11px;
}

body.bs-admin-ui .small-box .inner h3,
body.bs-admin-ui .info-box-number {
    color: var(--bs-navy);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

body.bs-admin-ui .small-box .icon {
    opacity: .14;
}

/* الجداول الاحترافية */
body.bs-admin-ui .table-responsive,
body.bs-admin-ui .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--bs-line);
    border-radius: 11px;
    background: #fff;
}

body.bs-admin-ui table {
    margin-bottom: 0;
    background: #fff;
    color: var(--bs-text);
    border-collapse: separate;
    border-spacing: 0;
}

body.bs-admin-ui table thead th {
    position: relative;
    background: #f0f5fb !important;
    color: #52627d !important;
    padding: 13px 12px;
    font-weight: 750;
    border-bottom: 1px solid #dce6f1 !important;
    white-space: nowrap;
}

body.bs-admin-ui table tbody tr:nth-child(even) {
    background: #fbfcfe;
}

body.bs-admin-ui table tbody tr:hover {
    background: #f0f7ff !important;
}

body.bs-admin-ui table tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid #edf1f6;
    vertical-align: middle;
}

body.bs-admin-ui table tbody tr:last-child td {
    border-bottom: 0;
}

/* نماذج الإدخال */
body.bs-admin-ui .field,
body.bs-admin-ui .form-group,
body.bs-admin-ui .form-grid > *,
body.bs-admin-ui .grid > * {
    min-width: 0;
}

body.bs-admin-ui .field,
body.bs-admin-ui .form-group {
    margin-bottom: 15px;
}

body.bs-admin-ui label,
body.bs-admin-ui .form-label {
    display: inline-block;
    margin-bottom: 7px;
    color: #52627d;
    font-size: 12px;
    font-weight: 750;
}

body.bs-admin-ui input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="file"]),
body.bs-admin-ui select,
body.bs-admin-ui textarea,
body.bs-admin-ui .form-control,
body.bs-admin-ui .form-select {
    width: 100%;
    max-width: 100%;
    border: 1px solid #d7e1ee;
    border-radius: 9px;
    background: #fff;
    color: var(--bs-text);
    box-shadow: none;
}

body.bs-admin-ui input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="file"]),
body.bs-admin-ui select,
body.bs-admin-ui .form-control,
body.bs-admin-ui .form-select {
    min-height: 42px;
    padding: 9px 11px;
}

body.bs-admin-ui textarea {
    min-height: 105px;
    padding: 11px;
    resize: vertical;
}

body.bs-admin-ui input:focus,
body.bs-admin-ui select:focus,
body.bs-admin-ui textarea:focus,
body.bs-admin-ui .form-control:focus,
body.bs-admin-ui .form-select:focus {
    border-color: #78afe5 !important;
    box-shadow: 0 0 0 3px rgba(40,121,216,.12) !important;
    outline: none;
}

body.bs-admin-ui input[type="checkbox"],
body.bs-admin-ui input[type="radio"] {
    accent-color: var(--bs-primary);
}

/* الأزرار والإجراءات */
body.bs-admin-ui .btn {
    min-height: 38px;
    border-radius: 9px !important;
    font-weight: 700;
    transition: background .16s ease, box-shadow .16s ease;
}

body.bs-admin-ui .btn-primary {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    box-shadow: 0 3px 9px rgba(40,121,216,.14);
}

body.bs-admin-ui .btn-success {
    background: var(--bs-teal) !important;
    border-color: var(--bs-teal) !important;
}

body.bs-admin-ui .btn:not(:disabled):focus-visible {
    outline: 3px solid rgba(40,121,216,.25);
    outline-offset: 2px;
}

body.bs-admin-ui .actions,
body.bs-admin-ui .form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* حالات السجلات والتنبيهات */
body.bs-admin-ui .badge,
body.bs-admin-ui .status,
body.bs-admin-ui .pill {
    border-radius: 7px;
    padding: 5px 9px;
    font-weight: 750;
    font-size: 11px;
    line-height: 1.5;
}

body.bs-admin-ui .alert,
body.bs-admin-ui .notice,
body.bs-admin-ui .errors,
body.bs-admin-ui .ok {
    border-radius: 11px;
    padding: 13px 15px;
    line-height: 1.8;
}

body.bs-admin-ui .empty,
body.bs-admin-ui td[colspan] {
    color: var(--bs-muted);
}

/* قائمة التنقل */
body.bs-admin-ui .sidebar .nav a,
body.bs-admin-ui .sidebar .nav-link,
body.bs-admin-ui .main-sidebar .nav-link {
    border-radius: 9px;
    transition: background .16s ease, color .16s ease;
}

body.bs-admin-ui .sidebar .nav a.active,
body.bs-admin-ui .sidebar .nav-link.active,
body.bs-admin-ui .main-sidebar .nav-link.active {
    font-weight: 750;
}

body.bs-admin-ui .dropdown-menu {
    border: 1px solid var(--bs-line);
    border-radius: 11px;
    box-shadow: 0 10px 26px rgba(23,44,99,.12);
    padding: 6px;
}

body.bs-admin-ui .dropdown-item {
    border-radius: 7px;
    padding: 9px 11px;
}

/* الطباعة */
@media print {
    body.bs-admin-ui {
        background: #fff !important;
    }

    body.bs-admin-ui .sidebar,
    body.bs-admin-ui .main-sidebar,
    body.bs-admin-ui .bs-back-to-top,
    body.bs-admin-ui .btn,
    body.bs-admin-ui .bs-branch-switcher {
        display: none !important;
    }

    body.bs-admin-ui .card,
    body.bs-admin-ui .panel {
        box-shadow: none !important;
        break-inside: avoid;
    }
}

/* الهاتف */
@media (max-width: 768px) {
    body.bs-admin-ui .content,
    body.bs-admin-ui .content-wrapper > .content,
    body.bs-admin-ui .main-content,
    body.bs-admin-ui .page-content,
    body.bs-admin-ui main:not(.main) {
        padding: 13px !important;
    }

    body.bs-admin-ui .content-header,
    body.bs-admin-ui .pagehead,
    body.bs-admin-ui .page-header {
        align-items: flex-start;
        margin-bottom: 15px;
        gap: 10px;
    }

    body.bs-admin-ui .card,
    body.bs-admin-ui .panel {
        margin-bottom: 14px;
        border-radius: 12px !important;
    }

    body.bs-admin-ui .card-header,
    body.bs-admin-ui .card-body {
        padding: 14px;
    }

    body.bs-admin-ui .form-grid,
    body.bs-admin-ui .grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.bs-admin-ui .btn {
        max-width: 100%;
    }

    body.bs-admin-ui table {
        font-size: 12px;
    }

    body.bs-admin-ui table th,
    body.bs-admin-ui table td {
        padding: 9px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.bs-admin-ui *,
    body.bs-admin-ui *::before,
    body.bs-admin-ui *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* === HOSPITAL UI POLISH V5 END === */

/* === BEIT AL-SHIFA UI V6: CONSISTENT ADMIN POLISH === */

:root {
  --bs-ui-radius: 14px;
  --bs-ui-shadow: 0 5px 20px rgba(23, 44, 99, .065);
  --bs-ui-focus: 0 0 0 3px rgba(22, 155, 149, .15);
}

body {
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

.card,
.panel,
.dashboard-card,
.stat-card,
.info-box {
  border-radius: var(--bs-ui-radius);
  box-shadow: var(--bs-ui-shadow);
}

.card-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.card-header .card-title {
  margin-bottom: 0;
}

.card-body {
  min-width: 0;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--bs-border);
  border-radius: 12px;
}

.table {
  width: 100%;
  margin-bottom: 0;
}

.table tbody tr {
  transition: background-color .15s ease;
}

.table tbody tr:hover {
  background-color: #f5f9fd;
}

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

label {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 600;
}

input:not([type="hidden"]):focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--bs-teal, #169b95);
  outline-offset: 2px;
}

input:not([type="hidden"]),
select,
textarea {
  max-width: 100%;
  box-sizing: border-box;
}

textarea {
  min-height: 96px;
}

.btn,
button,
a.btn {
  max-width: 100%;
  white-space: normal;
}

.alert {
  border-radius: 10px;
  border-width: 1px;
  line-height: 1.7;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

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

@media (max-width: 768px) {
  .content-header {
    padding: 14px 12px 10px;
  }

  .content-header h1,
  .content-header .h1,
  .page-title {
    font-size: 1.25rem;
    line-height: 1.5;
  }

  .card,
  .panel {
    margin-bottom: 14px;
  }

  .card-header,
  .card-body {
    padding: 14px;
  }

  .table td,
  .table th {
    padding: 10px 8px;
    font-size: .9rem;
  }

  .bs-field-wrap {
    max-width: 100%;
  }

  .main-header .nav-link,
  .topbar a,
  .topbar button {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .card-header {
    align-items: flex-start;
  }

  .btn,
  a.btn,
  button {
    min-height: 40px;
  }

  .table-responsive {
    border-radius: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* === END BEIT AL-SHIFA UI V6 === */


/* === BEIT AL-SHIFA UI V7 === */
:root {
  --bs-v7-radius: 14px;
  --bs-v7-border: #e3eaf1;
  --bs-v7-shadow: 0 5px 20px rgba(23, 44, 99, .065);
}

html {
  scroll-padding-top: 80px;
}

body {
  min-width: 320px;
}

.card,
.panel,
.dashboard-card,
.stat-card,
.info-box {
  border-radius: var(--bs-v7-radius);
}

.card,
.panel,
.dashboard-card,
.stat-card {
  border-color: var(--bs-v7-border);
}

.card,
.panel,
.dashboard-card,
.stat-card,
.info-box {
  box-shadow: var(--bs-v7-shadow);
}

.card-header {
  gap: 10px;
}

.card-header .card-title {
  line-height: 1.6;
}

.table-responsive {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.table-responsive > .table {
  margin-bottom: 0;
}

.table tbody tr {
  transition: background-color .15s ease;
}

.table tbody tr:hover {
  background-color: #f5f9fd;
}

form {
  min-width: 0;
}

input:not([type="hidden"]),
select,
textarea {
  max-width: 100%;
}

img {
  height: auto;
}

.btn,
button,
a.btn {
  transition: background-color .18s ease,
              box-shadow .18s ease,
              border-color .18s ease;
}

button:disabled,
.btn:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .7;
}

@media (max-width: 768px) {
  .card,
  .panel,
  .dashboard-card,
  .stat-card {
    margin-bottom: 14px;
  }

  .card-header,
  .card-body {
    padding: 14px;
  }

  .table-responsive {
    width: 100%;
  }

  .content-header h1,
  .content-header .h1,
  .page-title {
    font-size: 1.25rem;
    line-height: 1.55;
  }

  input:not([type="hidden"]),
  select,
  textarea {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
/* === END BEIT AL-SHIFA UI V7 === */

/* BEIT_SHIFA_PROTOTYPE_THEME_V1 */
:root {
  --bsh-navy: #172c63;
  --bsh-blue: #2879d8;
  --bsh-cyan: #35bdd0;
  --bsh-teal: #169b95;
  --bsh-bg: #f4f7fb;
  --bsh-line: #e5ebf3;
  --bsh-shadow: 0 8px 28px rgba(21,45,85,.07);
}

body {
  background: var(--bsh-bg);
  color: #172747;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

.content-wrapper, .admin-content, .main-content {
  background: var(--bsh-bg);
}

.card, .panel, .box, .info-box, .small-box, .dashboard-card {
  border: 1px solid var(--bsh-line);
  border-radius: 15px;
  box-shadow: var(--bsh-shadow);
}

.card-header, .card-footer, .box-header, .box-footer {
  background: #fff;
  border-color: var(--bsh-line);
}

h1, h2, h3, h4, .card-title, .box-title {
  color: var(--bsh-navy);
}

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

.btn-primary {
  background-color: var(--bsh-blue);
  border-color: var(--bsh-blue);
}

.btn-success {
  background-color: var(--bsh-teal);
  border-color: var(--bsh-teal);
}

.form-control, .form-select, input, select, textarea {
  border-color: #dce4ef;
  border-radius: 9px;
}

.table thead th, table thead th {
  background: #f8fafd;
  color: #65748e;
}

.table td, .table th, table td, table th {
  border-color: #edf1f6;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .content-wrapper, .admin-content, .main-content {
    overflow-x: hidden;
  }
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }
}
/* END BEIT_SHIFA_PROTOTYPE_THEME_V1 */


/* BEIT_SHIFA_DASHBOARD_COMPACT_V1 */
.stats > a.card > div[style*="grid-template-columns"] {
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px 8px !important;
}
.stats > a.card > div[style*="grid-template-columns"] span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f4f8fd;
  font-size: 12px;
}
.stats > .card,
.stats > a.card {
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(21,45,85,.06);
}
.stats > .card .stat-icon {
  background: #e6f3ff;
  color: #2879d8;
  border-radius: 13px;
}
/* END BEIT_SHIFA_DASHBOARD_COMPACT_V1 */


/* BEIT_SHIFA_DASHBOARD_COMPACT_V2 */
body .layout .content .stats {
  align-items: start !important;
  gap: 18px !important;
}

body .layout .content .stats > .card,
body .layout .content .stats > a.card {
  min-width: 0;
  padding: 18px !important;
  border: 1px solid #e2eaf4 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 26px rgba(23,44,99,.08) !important;
}

body .layout .content .stats > a.card > div[style*="grid-template-columns"] {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  gap: 7px !important;
  margin-top: 12px !important;
}

body .layout .content .stats > a.card > div[style*="grid-template-columns"] span {
  display: inline-flex;
  padding: 7px 9px;
  border: 1px solid #e2ecf7;
  border-radius: 9px;
  background: #f3f8fe;
  color: #344c70;
  font-size: 12px;
}

body .layout .content .stats .stat-icon {
  background: #e6f3ff !important;
  color: #2879d8 !important;
  border-radius: 13px !important;
}
/* END BEIT_SHIFA_DASHBOARD_COMPACT_V2 */


/* BEIT_SHIFA_HOME_CARE_SUMMARY_V1 */
.home-care-summary {
  margin-bottom: 22px;
}
.home-care-summary .card-title {
  margin-bottom: 14px;
}
.home-care-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.home-care-summary-grid > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e2ecf7;
  border-radius: 11px;
  background: #f4f8fd;
  color: #435674;
  font-size: 13px;
}
.home-care-summary-grid strong {
  color: var(--bsh-navy, #172c63);
  font-size: 18px;
}
@media (max-width: 900px) {
  .home-care-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .home-care-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* END BEIT_SHIFA_HOME_CARE_SUMMARY_V1 */

/* BEIT_SHIFA_GLOBAL_PAGES_V1 */
:root {
  --bsh-navy: #172c63;
  --bsh-blue: #2879d8;
  --bsh-teal: #169b95;
  --bsh-page-bg: #f4f7fb;
  --bsh-border: #e3ebf5;
  --bsh-shadow: 0 8px 26px rgba(23,44,99,.07);
}

body {
  background: var(--bsh-page-bg);
  color: #172747;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

body :is(.content-wrapper, .admin-content, .main-content, .page-content) {
  background: var(--bsh-page-bg);
}

body header:has(select[name="branch_id"]),
body .topbar:has(select[name="branch_id"]),
body .admin-header:has(select[name="branch_id"]),
body .bsh-global-header:has(select[name="branch_id"]) {
  height: auto !important;
  min-height: 0 !important;
  padding: 16px 24px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

body header:has(select[name="branch_id"]) > div,
body .topbar:has(select[name="branch_id"]) > div,
body .admin-header:has(select[name="branch_id"]) > div {
  width: auto !important;
  min-width: 0;
  flex: 0 1 auto !important;
}

body header:has(select[name="branch_id"]) form,
body .topbar:has(select[name="branch_id"]) form,
body .admin-header:has(select[name="branch_id"]) form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
}

body :is(.card, .panel, .box, .data-card, .table-container) {
  border: 1px solid var(--bsh-border);
  border-radius: 16px;
  box-shadow: var(--bsh-shadow);
  background-color: #fff;
}

body :is(.card, .panel, .box):has(
  input[type="search"],
  input[name="search"],
  input[placeholder*="بحث"]
) {
  height: auto !important;
  min-height: 0 !important;
  padding: 16px !important;
  margin-bottom: 18px;
}

body form:has(
  input[type="search"],
  input[name="search"],
  input[placeholder*="بحث"]
) {
  height: auto !important;
  min-height: 0 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body :is(input, select, textarea, .form-control, .form-select) {
  border-color: #dce5f0;
  border-radius: 10px;
  max-width: 100%;
}

body :is(input, select, textarea):focus {
  border-color: #35bdd0;
  box-shadow: 0 0 0 3px rgba(53,189,208,.14);
  outline: none;
}

body :is(button, .btn) {
  border-radius: 10px;
  font-weight: 600;
}

body :is(.btn-primary, button[type="submit"]) {
  transition: background-color .15s ease, box-shadow .15s ease;
}

body :is(.table-responsive, .table-container) {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body table {
  width: 100%;
  border-collapse: collapse;
}

body table thead th {
  background: #f1f6fc;
  color: #536885;
  font-weight: 600;
}

body table th,
body table td {
  border-color: #e7edf5;
  padding: 12px 14px;
  vertical-align: middle;
}

body table tbody tr:hover {
  background: #f8fbff;
}

body footer {
  border-top: 1px solid var(--bsh-border);
  color: #71809a;
}

@media (max-width: 768px) {
  body header:has(select[name="branch_id"]),
  body .topbar:has(select[name="branch_id"]),
  body .admin-header:has(select[name="branch_id"]) {
    padding: 12px !important;
    gap: 10px !important;
  }

  body header:has(select[name="branch_id"]) > div,
  body .topbar:has(select[name="branch_id"]) > div,
  body .admin-header:has(select[name="branch_id"]) > div {
    max-width: 100%;
  }

  body :is(.card, .panel, .box, .data-card) {
    border-radius: 13px;
  }

  body table th,
  body table td {
    padding: 10px 8px;
    white-space: nowrap;
  }
}
/* END BEIT_SHIFA_GLOBAL_PAGES_V1 */


/* BEIT_SHIFA_FORCE_COLORS_V1 */
:root {
  --bsh-navy: #172c63;
  --bsh-blue: #2879d8;
  --bsh-teal: #169b95;
  --bsh-pale-blue: #e8f5ff;
}

/* Primary actions: consistent medical blue */
body .btn:not(.btn-light):not(.btn-secondary):not(.btn-outline-primary):not(.btn-outline-secondary),
body a.btn:not(.btn-light):not(.btn-secondary):not(.btn-outline-primary):not(.btn-outline-secondary),
body button.btn:not(.btn-light):not(.btn-secondary):not(.btn-outline-primary):not(.btn-outline-secondary),
body input[type="submit"] {
  background-color: #2879d8 !important;
  border-color: #2879d8 !important;
  color: #fff !important;
}

body .btn:not(.btn-light):not(.btn-secondary):hover,
body a.btn:not(.btn-light):not(.btn-secondary):hover,
body button.btn:not(.btn-light):not(.btn-secondary):hover {
  background-color: #172c63 !important;
  border-color: #172c63 !important;
  color: #fff !important;
}

/* Secondary actions */
body .btn-secondary,
body .btn-light,
body .btn-outline-primary,
body .btn-outline-secondary {
  background-color: #e8f5ff !important;
  border-color: #d5e9fc !important;
  color: #175c9f !important;
}

/* Unified sidebar and active navigation */
body .sidebar {
  background-color: #fff !important;
  color: #172747 !important;
  border-color: #e5ebf3 !important;
}

body .sidebar .nav a {
  color: #52627e !important;
  border-radius: 10px;
}

body .sidebar .nav a.active,
body .sidebar .nav a:hover {
  background-color: #e8f5ff !important;
  color: #126bd0 !important;
}

/* Inputs */
body input:focus,
body select:focus,
body textarea:focus,
body .form-control:focus {
  border-color: #35bdd0 !important;
  box-shadow: 0 0 0 3px rgba(53,189,208,.14) !important;
  outline: none;
}
/* END BEIT_SHIFA_FORCE_COLORS_V1 */



/* BEIT_SHIFA_CAIRO_FONT_GLOBAL_V1 */
html,
body,
body *:not(i):not(svg):not([class*="fa"]):not([class*="icon"]) {
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}
/* END BEIT_SHIFA_CAIRO_FONT_GLOBAL_V1 */


/* BEIT_SHIFA_GLOBAL_SHAPE_V2 */
:root {
  --bsh-navy: #172c63;
  --bsh-blue: #2879d8;
  --bsh-teal: #169b95;
  --bsh-bg: #f4f7fb;
  --bsh-line: #e3ebf5;
  --bsh-shadow: 0 8px 26px rgba(23,44,99,.07);
}

html { background: var(--bsh-bg); }
body {
  background: var(--bsh-bg) !important;
  color: #172747;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

/* Header for standalone administration pages */
body > header {
  box-sizing: border-box;
  width: 100%;
  min-height: 82px;
  height: auto !important;
  padding: 14px clamp(16px, 3vw, 42px) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px 24px !important;
  background: #fff !important;
  color: var(--bsh-navy) !important;
  border-bottom: 1px solid var(--bsh-line) !important;
  box-shadow: 0 4px 20px rgba(23,44,99,.04);
}

body > header h1,
body > header h2,
body > header h3 {
  color: var(--bsh-navy) !important;
  margin-top: 0;
  margin-bottom: 5px;
}

body > header .muted {
  color: #72809a !important;
}

body > header form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
}

/* Main content and section spacing */
body > main {
  width: 100% !important;
  max-width: 1500px !important;
  box-sizing: border-box;
  margin: 22px auto !important;
  padding: 0 clamp(14px, 2.5vw, 36px) !important;
}

body .content {
  max-width: 1500px;
  margin-inline: auto;
}

body :is(.card, .panel, .box, .data-card, .table-container) {
  background: #fff;
  border: 1px solid var(--bsh-line);
  border-radius: 16px;
  box-shadow: var(--bsh-shadow);
}

body > main > section.card {
  padding: clamp(16px, 2vw, 26px);
  margin-bottom: 18px;
}

body :is(h1, h2, h3, h4, .card-title) {
  color: var(--bsh-navy);
}

/* Buttons */
body .btn:not(.secondary):not(.danger):not(.btn-light):not(.btn-secondary):not(.btn-outline-primary),
body button[type="submit"],
body input[type="submit"] {
  border-radius: 10px;
}

body .btn:not(.secondary):not(.danger):not(.btn-light):not(.btn-secondary):not(.btn-outline-primary),
body button[type="submit"] {
  background-color: var(--bsh-blue);
  border-color: var(--bsh-blue);
  color: #fff;
}

body .btn.secondary,
body .btn.btn-secondary,
body .btn-light {
  background: #e8f5ff;
  border-color: #d8eafb;
  color: #175c9f;
}

/* Forms and search areas */
body input,
body select,
body textarea,
body .form-control,
body .form-select {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

body input:focus,
body select:focus,
body textarea:focus,
body .form-control:focus {
  border-color: #35bdd0;
  box-shadow: 0 0 0 3px rgba(53,189,208,.14);
  outline: none;
}

body > main form.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

body > main form.row input[name="q"],
body > main form.row input[type="search"] {
  flex: 1 1 320px;
  min-width: min(240px, 100%);
}

/* Tables */
body .table-responsive,
body .table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body table {
  border-collapse: collapse;
  width: 100%;
}

body table thead th {
  background: #f0f5fc;
  color: #526885;
  font-weight: 700;
  border-bottom: 1px solid var(--bsh-line);
}

body table th,
body table td {
  padding: 13px 14px;
  border-color: #e7edf5;
  vertical-align: middle;
}

body table tbody tr:hover {
  background-color: #f8fbff;
}

/* Existing dashboard sidebar */
body .sidebar {
  background: #fff !important;
  color: #172747 !important;
  border-color: var(--bsh-line) !important;
}

body .sidebar .nav a {
  color: #52627e !important;
  border-radius: 11px;
}

body .sidebar .nav a.active,
body .sidebar .nav a:hover {
  background: #e8f5ff !important;
  color: #126bd0 !important;
}

body .topbar {
  background: #fff !important;
  border-color: var(--bsh-line) !important;
}

@media (max-width: 768px) {
  body > header {
    padding: 12px 14px !important;
    gap: 10px !important;
  }

  body > main {
    margin-top: 14px !important;
    padding-inline: 12px !important;
  }

  body > main > section.card {
    padding: 14px;
    border-radius: 13px;
  }

  body table th,
  body table td {
    padding: 10px 8px;
    white-space: nowrap;
  }
}
/* END BEIT_SHIFA_GLOBAL_SHAPE_V2 */


/* BEIT_SHIFA_GLOBAL_SIDEBAR_V1 */
body.bsh-has-sidebar {
  box-sizing: border-box;
  padding-right: 268px !important;
  min-height: 100vh;
}

.bsh-global-sidebar {
  position: fixed;
  z-index: 9999;
  top: 0;
  right: 0;
  bottom: 0;
  width: 268px;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 22px 15px;
  background: #fff;
  color: #172747;
  border-left: 1px solid #e3ebf5;
  box-shadow: -6px 0 22px rgba(23,44,99,.035);
  direction: rtl;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}

.bsh-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 3px 7px 22px;
  border-bottom: 1px solid #e5ebf3;
  margin-bottom: 21px;
}

.bsh-sidebar-logo {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #172c63, #2879d8 65%, #35bdd0);
  font-size: 25px;
}

.bsh-sidebar-brand-copy strong {
  display: block;
  color: #172c63;
  font-size: 15px;
  line-height: 1.7;
}

.bsh-sidebar-brand-copy small {
  display: block;
  color: #72809a;
  font-size: 11px;
  margin-top: 2px;
}

.bsh-sidebar-menu-label {
  padding: 0 11px;
  margin: 18px 0 10px;
  color: #8794a8;
  font-size: 11px;
}

.bsh-sidebar-nav {
  display: grid;
  gap: 5px;
}

.bsh-global-sidebar .bsh-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  box-sizing: border-box;
  padding: 11px 12px;
  border-radius: 12px;
  color: #52627e;
  text-decoration: none;
  font-size: 13px;
  transition: background .15s ease, color .15s ease;
}

.bsh-global-sidebar .bsh-sidebar-link:hover,
.bsh-global-sidebar .bsh-sidebar-link.active {
  background: #e8f5ff;
  color: #126bd0;
}

.bsh-global-sidebar .bsh-sidebar-link.active {
  font-weight: 700;
}

.bsh-sidebar-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  min-width: 24px;
  font-size: 18px;
  color: inherit;
  text-align: center;
}

.bsh-sidebar-label {
  min-width: 0;
}

.bsh-sidebar-foot {
  margin-top: 25px;
  padding: 12px;
  border-radius: 11px;
  background: #f0f8ff;
  color: #61758f;
  font-size: 11px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  body.bsh-has-sidebar {
    padding-right: 76px !important;
  }

  .bsh-global-sidebar {
    width: 76px;
    padding: 16px 7px;
  }

  .bsh-sidebar-brand {
    justify-content: center;
    padding: 0 0 17px;
  }

  .bsh-sidebar-brand-copy,
  .bsh-sidebar-menu-label,
  .bsh-sidebar-label,
  .bsh-sidebar-foot {
    display: none !important;
  }

  .bsh-global-sidebar .bsh-sidebar-link {
    justify-content: center;
    padding: 11px 5px;
  }
}

@media (max-width: 420px) {
  body.bsh-has-sidebar {
    padding-right: 62px !important;
  }

  .bsh-global-sidebar {
    width: 62px;
    padding-inline: 4px;
  }

  .bsh-sidebar-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}
/* END BEIT_SHIFA_GLOBAL_SIDEBAR_V1 */


/* BEIT_SHIFA_UNIFIED_BRAND_V2 */
:root {
  --bsh-navy: #172c63;
  --bsh-blue: #2879d8;
  --bsh-cyan: #35bdd0;
  --bsh-teal: #169b95;
  --bsh-bg: #f4f7fb;
  --bsh-pale: #e8f5ff;
  --bsh-line: #e3ebf5;
}

html, body {
  background: var(--bsh-bg) !important;
  color: #172747;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

body .bsh-global-sidebar,
body aside.bsh-global-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  background: #fff !important;
  color: #172747 !important;
  border-left: 1px solid var(--bsh-line) !important;
  box-shadow: -5px 0 22px rgba(23,44,99,.04) !important;
}

body aside.bsh-global-sidebar .bsh-sidebar-brand {
  border-bottom: 1px solid var(--bsh-line) !important;
}

body aside.bsh-global-sidebar .bsh-sidebar-brand-copy strong {
  color: var(--bsh-navy) !important;
}

body aside.bsh-global-sidebar .bsh-sidebar-brand-copy small {
  color: #72809a !important;
}

body aside.bsh-global-sidebar .bsh-sidebar-link,
body aside.bsh-global-sidebar nav.bsh-sidebar-nav > a.bsh-sidebar-link,
body aside.bsh-global-sidebar nav.bsh-sidebar-nav > a.bsh-sidebar-link:not(.active) {
  display: flex !important;
  align-items: center !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #52627e !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  margin: 2px 0 !important;
  font-weight: 500 !important;
}

body aside.bsh-global-sidebar nav.bsh-sidebar-nav > a.bsh-sidebar-link:hover,
body aside.bsh-global-sidebar nav.bsh-sidebar-nav > a.bsh-sidebar-link.active,
body aside.bsh-global-sidebar nav.bsh-sidebar-nav > a.bsh-sidebar-link[aria-current="page"] {
  background: var(--bsh-pale) !important;
  background-color: var(--bsh-pale) !important;
  color: #126bd0 !important;
  font-weight: 700 !important;
}

body aside.bsh-global-sidebar .bsh-sidebar-icon {
  color: inherit !important;
}

body aside.bsh-global-sidebar .bsh-sidebar-foot {
  background: #f0f8ff !important;
  color: #61758f !important;
}

/* Main action buttons: blue; secondary: pale blue; destructive: red */
body a.btn:not(.secondary):not(.danger):not(.btn-secondary):not(.btn-light):not(.btn-outline-primary),
body button.btn:not(.secondary):not(.danger):not(.btn-secondary):not(.btn-light):not(.btn-outline-primary),
body input.btn:not(.secondary):not(.danger):not(.btn-secondary):not(.btn-light):not(.btn-outline-primary),
body .btn-primary,
body button[type="submit"]:not(.secondary):not(.danger) {
  background: var(--bsh-blue) !important;
  background-color: var(--bsh-blue) !important;
  border-color: var(--bsh-blue) !important;
  color: #fff !important;
}

body a.btn.secondary,
body button.btn.secondary,
body .btn-secondary,
body .btn-light {
  background: var(--bsh-pale) !important;
  background-color: var(--bsh-pale) !important;
  border-color: #d5e9fc !important;
  color: #175c9f !important;
}

body .btn.danger,
body .btn-danger {
  background: #c83f4f !important;
  border-color: #c83f4f !important;
  color: #fff !important;
}

body :is(input, select, textarea, .form-control, .form-select) {
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  border-color: #dce5f0;
  border-radius: 10px;
}

body :is(input, select, textarea, .form-control):focus {
  border-color: var(--bsh-cyan) !important;
  box-shadow: 0 0 0 3px rgba(53,189,208,.14) !important;
}

body :is(.card, .panel, .box, .table-container) {
  border-color: var(--bsh-line);
  border-radius: 16px;
}

body table thead th {
  background: #f0f5fc !important;
  color: #526885 !important;
}

body table tbody tr:nth-child(even) {
  background: #f8fbff;
}

/* Dashboard's native sidebar */
body .layout > .sidebar {
  background: #fff !important;
  color: #172747 !important;
  border-left: 1px solid var(--bsh-line) !important;
}

body .layout > .sidebar .nav a {
  color: #52627e !important;
}

body .layout > .sidebar .nav a.active,
body .layout > .sidebar .nav a:hover {
  background: var(--bsh-pale) !important;
  color: #126bd0 !important;
}

/* END BEIT_SHIFA_UNIFIED_BRAND_V2 */



/* BEIT_SHIFA_TELEMEDICINE_POLISH_V1 */
body:has(.doctor-layout) {
  background: #f4f7fb !important;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

body .doctor-layout {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start !important;
  gap: 22px !important;
  margin-bottom: 22px;
}

body .doctor-layout > .panel {
  min-width: 0;
  padding: clamp(16px, 2vw, 26px) !important;
  background: #fff !important;
  border: 1px solid #e3ebf5 !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(23,44,99,.07) !important;
}

body .doctor-layout .panel h3 {
  color: #172c63 !important;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.65;
  margin: 0 0 16px;
}

body .doctor-layout .callbox {
  min-width: 0;
  min-height: 270px;
  box-sizing: border-box;
  padding: 28px 20px !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, #172c63 0%, #2879d8 100%) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

body .doctor-layout .callbox b,
body .doctor-layout .callbox strong {
  color: #fff !important;
  line-height: 1.7;
}

body .doctor-layout .call-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

body .doctor-layout .roundbtn {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50% !important;
  background: rgba(255,255,255,.17) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  transition: transform .15s ease, background .15s ease;
}

body .doctor-layout .roundbtn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.27) !important;
}

body .doctor-layout .roundbtn.end {
  background: #e34f63 !important;
  border-color: #e34f63 !important;
}

body .doctor-layout .btn,
body .doctor-layout button.btn,
body .doctor-layout a.btn {
  min-height: 42px;
  box-sizing: border-box;
  border-radius: 11px !important;
  padding: 11px 17px !important;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  font-weight: 700;
}

body .doctor-layout .btn:not(.ghost):not(.secondary):not(.danger) {
  background: #2879d8 !important;
  border-color: #2879d8 !important;
  color: #fff !important;
}

body .doctor-layout .btn.ghost,
body .doctor-layout .btn.secondary {
  background: #e8f5ff !important;
  border: 1px solid #d5e9fc !important;
  color: #175c9f !important;
  box-shadow: none !important;
}

body .doctor-layout .filedrop {
  box-sizing: border-box;
  width: 100%;
  padding: 24px 18px !important;
  border: 2px dashed #c6d9ee !important;
  border-radius: 17px !important;
  background: #f8fbff !important;
  color: #657b9b !important;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

body .doctor-layout .filedrop input[type="file"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #dbe7f4;
  border-radius: 10px;
  background: #fff;
  color: #52627e;
  font: inherit;
  font-size: 13px;
}

body .doctor-layout .filedrop input[type="file"]::file-selector-button {
  padding: 9px 13px;
  margin-inline-end: 10px;
  border: 0;
  border-radius: 8px;
  background: #e8f5ff;
  color: #175c9f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

body .doctor-layout .field {
  display: grid;
  gap: 8px;
}

body .doctor-layout .field label {
  color: #526885;
  font-weight: 600;
}

body .doctor-layout .field textarea,
body .doctor-layout .field input,
body .doctor-layout .field select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #fff;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

body .doctor-layout .field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.8;
}

body .doctor-layout .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

body .doctor-layout .file-list {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

body .doctor-layout .file-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid #e1ebf6;
  border-radius: 11px;
  background: #f6faff;
  color: #425875;
  overflow-wrap: anywhere;
}

body .doctor-layout .note {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #f4dfb5;
  border-radius: 13px;
  background: #fff9ed;
  color: #835d20;
  line-height: 1.9;
}

@media (max-width: 900px) {
  body .doctor-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px !important;
  }

  body .doctor-layout > .panel {
    padding: 16px !important;
  }

  body .doctor-layout .callbox {
    min-height: 230px;
  }
}

@media (max-width: 480px) {
  body .doctor-layout .form-actions > * {
    flex: 1 1 100%;
  }

  body .doctor-layout .filedrop {
    padding: 17px 12px !important;
  }

  body .doctor-layout .callbox {
    padding: 22px 13px !important;
  }
}
/* END BEIT_SHIFA_TELEMEDICINE_POLISH_V1 */

/* BEIT_SHIFA_TELEMEDICINE_ROOM_V2 */
body.bsh-telemedicine-room {
  background: #f4f7fb !important;
  color: #172747;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

/* Compact top bar */
body.bsh-telemedicine-room > header {
  min-height: 76px !important;
  height: auto !important;
  padding: 12px 24px !important;
  gap: 12px 20px !important;
  align-items: center !important;
  background: #fff !important;
  color: #172c63 !important;
  border-bottom: 1px solid #e3ebf5 !important;
  box-shadow: 0 5px 20px rgba(23,44,99,.04);
}

body.bsh-telemedicine-room > header strong {
  color: #172c63 !important;
  font-size: 18px;
  line-height: 1.7;
}

body.bsh-telemedicine-room > header a {
  color: #2879d8 !important;
  font-weight: 700;
  text-decoration: none !important;
}

/* Main page container */
body.bsh-telemedicine-room > main {
  width: 100% !important;
  max-width: 1500px !important;
  margin: 22px auto !important;
  padding: 0 clamp(12px, 2.2vw, 30px) !important;
  box-sizing: border-box;
}

body.bsh-telemedicine-room > main > .card,
body.bsh-telemedicine-room > main > .grid > .card {
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(16px, 1.8vw, 25px) !important;
  margin-bottom: 20px !important;
  border: 1px solid #e1eaf5 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 8px 28px rgba(23,44,99,.06) !important;
}

body.bsh-telemedicine-room h2,
body.bsh-telemedicine-room h3 {
  color: #172c63 !important;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 16px;
}

body.bsh-telemedicine-room h2 {
  font-size: clamp(20px, 2vw, 27px);
}

body.bsh-telemedicine-room h3 {
  font-size: clamp(17px, 1.5vw, 22px);
}

/* Details, video/chat, attachments: two balanced columns */
body.bsh-telemedicine-room .grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px !important;
}

body.bsh-telemedicine-room .grid > div,
body.bsh-telemedicine-room .grid > section {
  min-width: 0;
}

body.bsh-telemedicine-room main > .card > .grid > div p {
  line-height: 1.9;
  overflow-wrap: anywhere;
}

body.bsh-telemedicine-room label {
  display: block;
  margin: 12px 0 7px;
  color: #526885;
  font-weight: 700;
  font-size: 14px;
}

/* Video panels */
body.bsh-telemedicine-room video {
  display: block;
  width: 100%;
  min-height: 180px;
  max-height: 340px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #172c3d !important;
  border: 1px solid #dce6f2;
  border-radius: 15px !important;
}

body.bsh-telemedicine-room #call-state {
  padding: 12px 15px !important;
  border: 1px solid #d4e8fb;
  border-radius: 12px !important;
  background: #eff7ff !important;
  color: #24547e;
  line-height: 1.8;
}

/* Buttons */
body.bsh-telemedicine-room .btn,
body.bsh-telemedicine-room button.btn,
body.bsh-telemedicine-room button[type="submit"] {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #2879d8;
  border-radius: 10px !important;
  background: #2879d8 !important;
  color: #fff !important;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  font-weight: 700;
  cursor: pointer;
}

body.bsh-telemedicine-room .btn.secondary {
  border-color: #d5e9fc !important;
  background: #e8f5ff !important;
  color: #175c9f !important;
}

body.bsh-telemedicine-room .btn.danger {
  border-color: #c83f4f !important;
  background: #c83f4f !important;
  color: #fff !important;
}

body.bsh-telemedicine-room button[hidden] {
  display: none !important;
}

/* Messages */
body.bsh-telemedicine-room #messages {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  margin-bottom: 16px;
}

body.bsh-telemedicine-room .msg {
  padding: 12px 14px !important;
  border: 1px solid #e0eaf5;
  border-radius: 13px !important;
  background: #f3f8fe !important;
  color: #243b5a;
  line-height: 1.9;
}

body.bsh-telemedicine-room .msg b {
  display: block;
  color: #172c63;
  margin-bottom: 4px;
}

body.bsh-telemedicine-room .small {
  color: #71809a !important;
  line-height: 1.8;
}

/* Forms and file attachments */
body.bsh-telemedicine-room input,
body.bsh-telemedicine-room select,
body.bsh-telemedicine-room textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid #dce5f0 !important;
  border-radius: 11px !important;
  background-color: #fff;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

body.bsh-telemedicine-room textarea {
  min-height: 100px;
  line-height: 1.9;
  resize: vertical;
}

body.bsh-telemedicine-room input:focus,
body.bsh-telemedicine-room select:focus,
body.bsh-telemedicine-room textarea:focus {
  border-color: #35bdd0 !important;
  box-shadow: 0 0 0 3px rgba(53,189,208,.14);
  outline: none;
}

body.bsh-telemedicine-room input[type="file"] {
  padding: 10px;
  background: #f8fbff;
  font-size: 13px;
}

body.bsh-telemedicine-room table {
  width: 100%;
  border-collapse: collapse;
}

body.bsh-telemedicine-room th {
  background: #f0f5fc !important;
  color: #526885;
  font-weight: 700;
}

body.bsh-telemedicine-room th,
body.bsh-telemedicine-room td {
  padding: 12px;
  border-bottom: 1px solid #e5edf6;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

body.bsh-telemedicine-room .notice {
  padding: 12px 15px;
  border: 1px solid #d1eadc;
  border-radius: 12px;
  background: #effaf4;
  color: #256346;
  line-height: 1.9;
}

body.bsh-telemedicine-room .notice[style*="b42318"] {
  background: #fff2f2;
}

@media (max-width: 900px) {
  body.bsh-telemedicine-room .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px !important;
  }

  body.bsh-telemedicine-room > main {
    margin-top: 15px !important;
  }
}

@media (max-width: 480px) {
  body.bsh-telemedicine-room > header {
    padding: 12px 14px !important;
  }

  body.bsh-telemedicine-room > main > .card,
  body.bsh-telemedicine-room > main > .grid > .card {
    padding: 14px !important;
    border-radius: 13px !important;
  }

  body.bsh-telemedicine-room .btn,
  body.bsh-telemedicine-room button.btn {
    max-width: 100%;
    white-space: normal;
  }

  body.bsh-telemedicine-room video {
    min-height: 150px;
  }
}
/* END BEIT_SHIFA_TELEMEDICINE_ROOM_V2 */


/* BEIT_SHIFA_ROOM_COMPACT_HEADER_V3 */
body.bsh-telemedicine-room > header {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px 18px !important;
  width: 100% !important;
  min-height: 68px !important;
  height: auto !important;
  padding: 8px 20px !important;
  margin: 0 !important;
  background: #fff !important;
  color: #172c63 !important;
  border-bottom: 1px solid #e3ebf5 !important;
  box-shadow: 0 3px 12px rgba(23,44,99,.04) !important;
}

body.bsh-telemedicine-room > header > * {
  min-width: 0 !important;
  width: auto !important;
  flex: 0 1 auto !important;
  margin-block: 0 !important;
}

body.bsh-telemedicine-room > header > strong {
  font-size: 17px !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
  color: #172c63 !important;
}

body.bsh-telemedicine-room > header > a {
  white-space: nowrap !important;
  margin: 0 !important;
  align-self: center !important;
  color: #2879d8 !important;
}

body.bsh-telemedicine-room > header .bs-branch-switcher,
body.bsh-telemedicine-room > header form:has(select[name="branch_id"]) {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: auto !important;
  max-width: 100% !important;
  flex: 0 1 auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.bsh-telemedicine-room > header .bs-branch-switcher label,
body.bsh-telemedicine-room > header form:has(select[name="branch_id"]) label {
  display: inline-block !important;
  margin: 0 !important;
  white-space: nowrap !important;
  font-size: 12px !important;
}

body.bsh-telemedicine-room > header select[name="branch_id"] {
  width: auto !important;
  min-width: 140px !important;
  max-width: 230px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 7px 10px !important;
}

body.bsh-telemedicine-room > header .bs-branch-switcher button,
body.bsh-telemedicine-room > header form:has(select[name="branch_id"]) button {
  min-height: 38px !important;
  padding: 7px 12px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

body.bsh-telemedicine-room > header img,
body.bsh-telemedicine-room > header .logo {
  max-width: 52px !important;
  max-height: 52px !important;
}

@media (max-width: 1000px) {
  body.bsh-telemedicine-room > header {
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    min-height: 62px !important;
    padding: 9px 13px !important;
    gap: 8px 12px !important;
  }

  body.bsh-telemedicine-room > header > strong {
    white-space: normal !important;
  }

  body.bsh-telemedicine-room > header .bs-branch-switcher,
  body.bsh-telemedicine-room > header form:has(select[name="branch_id"]) {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 520px) {
  body.bsh-telemedicine-room > header > strong {
    flex-basis: 100% !important;
    font-size: 15px !important;
  }

  body.bsh-telemedicine-room > header select[name="branch_id"] {
    min-width: 0 !important;
    width: 100% !important;
  }
}
/* END BEIT_SHIFA_ROOM_COMPACT_HEADER_V3 */


/* BEIT_SHIFA_REPORTS_DIRECTORY_V1 */
body.bsh-reports-page {
  background: #f4f7fb !important;
  color: #172747;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

body.bsh-reports-page > header {
  min-height: 66px !important;
  height: auto !important;
  padding: 10px 22px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px 18px !important;
  color: #172c63 !important;
  background: #fff !important;
  border-bottom: 1px solid #e3ebf5 !important;
}

body.bsh-reports-page > header strong {
  color: #172c63 !important;
}

body.bsh-reports-page > header a {
  color: #2879d8 !important;
  text-decoration: none;
  font-weight: 700;
}

body.bsh-reports-page > main {
  width: 100% !important;
  max-width: 1500px !important;
  box-sizing: border-box;
  margin: 24px auto !important;
  padding: 0 clamp(14px, 2.5vw, 36px) !important;
}

.bsh-reports-page .reports-home {
  margin-bottom: 24px;
}

.bsh-reports-page .reports-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.bsh-reports-page .reports-page-heading h1 {
  margin: 0 0 6px;
  color: #172c63;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.5;
}

.bsh-reports-page .reports-page-heading p {
  margin: 0;
  color: #72809a;
  font-size: 14px;
  line-height: 1.8;
}

.bsh-reports-page .reports-print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #2879d8;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.bsh-reports-page .reports-directory {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  align-items: stretch;
  gap: 18px;
}

.bsh-reports-page .reports-group {
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid #e3ebf5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(23,44,99,.06);
}

.bsh-reports-page .reports-group h2 {
  margin: 0 0 18px;
  color: #172c63;
  font-size: 21px;
  line-height: 1.6;
}

.bsh-reports-page .reports-list {
  display: grid;
}

.bsh-reports-page .reports-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #e5edf6;
  color: #172747;
  text-decoration: none;
}

.bsh-reports-page .reports-item:last-child {
  border-bottom: 0;
}

.bsh-reports-page .reports-item-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.bsh-reports-page .reports-item-copy strong {
  color: #172c63;
  font-size: 16px;
  line-height: 1.7;
}

.bsh-reports-page .reports-item-copy small {
  color: #72809a;
  font-size: 12px;
  line-height: 1.8;
}

.bsh-reports-page .reports-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 64px;
  padding: 10px 16px;
  border-radius: 11px;
  background: #e8f3ff;
  color: #1769bd;
  font-weight: 700;
  font-size: 14px;
}

.bsh-reports-page .reports-item:hover .reports-open {
  background: #2879d8;
  color: #fff;
}

.bsh-reports-page .report-detail-shell {
  margin-top: 22px;
  border: 1px solid #e3ebf5;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(23,44,99,.04);
  overflow: hidden;
}

.bsh-reports-page .report-detail-shell > summary {
  padding: 16px 20px;
  cursor: pointer;
  color: #172c63;
  background: #fff;
  font-weight: 700;
  line-height: 1.8;
}

.bsh-reports-page .report-detail-shell[open] > summary {
  background: #f0f6fd;
  border-bottom: 1px solid #e3ebf5;
}

.bsh-reports-page .report-detail-content {
  padding: 18px;
}

.bsh-reports-page .report-detail-content .card {
  border: 1px solid #e3ebf5;
  border-radius: 15px;
  box-shadow: 0 5px 18px rgba(23,44,99,.04);
}

.bsh-reports-page .report-detail-content .stat {
  color: #2879d8;
}

.bsh-reports-page .report-detail-content .btn {
  border-radius: 10px;
  background: #2879d8;
  border-color: #2879d8;
  color: #fff;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}

.bsh-reports-page .report-detail-content input {
  border-radius: 10px;
  border-color: #dce5f0;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}

.bsh-reports-page .report-detail-content table th {
  background: #f0f5fc;
  color: #526885;
}

@media (max-width: 780px) {
  .bsh-reports-page .reports-directory {
    grid-template-columns: minmax(0, 1fr);
  }

  .bsh-reports-page .reports-group {
    padding: 17px;
  }

  .bsh-reports-page .reports-item {
    gap: 10px;
  }

  .bsh-reports-page .reports-item-copy strong {
    font-size: 15px;
  }

  .bsh-reports-page .report-detail-content {
    padding: 12px;
  }
}

@media print {
  .bsh-reports-page .reports-directory,
  .bsh-reports-page .reports-page-heading,
  .bsh-reports-page > header {
    display: none !important;
  }

  .bsh-reports-page .report-detail-shell {
    display: block !important;
    border: 0;
    box-shadow: none;
  }

  .bsh-reports-page .report-detail-shell > summary {
    display: none !important;
  }
}
/* END BEIT_SHIFA_REPORTS_DIRECTORY_V1 */

/* BEIT_SHIFA_FINANCE_PAGE_V1 */
body.bsh-finance-page {
  box-sizing: border-box;
  background: #f4f7fb !important;
  color: #172747;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

body.bsh-finance-page .wrap {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

body.bsh-finance-page .header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  padding: 18px 24px !important;
  background: #fff !important;
  border: 1px solid #e3ebf5;
  border-radius: 16px !important;
  box-shadow: 0 6px 22px rgba(23,44,99,.05);
}

body.bsh-finance-page .header h1 {
  margin: 0 0 6px;
  color: #172c63;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.5;
}

body.bsh-finance-page .muted {
  color: #72809a !important;
  line-height: 1.8;
}

body.bsh-finance-page .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.bsh-finance-page .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

body.bsh-finance-page .card,
body.bsh-finance-page .panel {
  min-width: 0;
  padding: 20px !important;
  background: #fff !important;
  border: 1px solid #e3ebf5;
  border-radius: 16px !important;
  box-shadow: 0 8px 26px rgba(23,44,99,.06);
}

body.bsh-finance-page .card h3 {
  color: #526885 !important;
  font-size: 14px;
  line-height: 1.8;
}

body.bsh-finance-page .number,
body.bsh-finance-page .stat {
  color: #172c63 !important;
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 800;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body.bsh-finance-page .panel h2 {
  color: #172c63;
  font-size: 20px;
  line-height: 1.7;
}

body.bsh-finance-page a.btn,
body.bsh-finance-page button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 15px;
  border: 1px solid #2879d8;
  border-radius: 10px !important;
  background: #2879d8 !important;
  color: #fff !important;
  text-decoration: none;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  font-weight: 700;
  cursor: pointer;
}

body.bsh-finance-page a.btn.secondary {
  background: #e8f5ff !important;
  border-color: #d5e9fc !important;
  color: #175c9f !important;
}

body.bsh-finance-page form.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

body.bsh-finance-page form.filters > div {
  display: grid;
  gap: 6px;
}

body.bsh-finance-page label {
  color: #526885;
  font-weight: 700;
  font-size: 13px;
}

body.bsh-finance-page input,
body.bsh-finance-page select {
  box-sizing: border-box;
  min-height: 42px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #dce5f0 !important;
  border-radius: 10px !important;
  background: #fff;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

body.bsh-finance-page input:focus,
body.bsh-finance-page select:focus {
  border-color: #35bdd0 !important;
  box-shadow: 0 0 0 3px rgba(53,189,208,.14);
  outline: none;
}

body.bsh-finance-page .table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.bsh-finance-page table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

body.bsh-finance-page table th {
  background: #f0f5fc !important;
  color: #526885;
  font-weight: 700;
}

body.bsh-finance-page table th,
body.bsh-finance-page table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5edf6;
  vertical-align: middle;
  line-height: 1.8;
}

@media (max-width: 1050px) {
  body.bsh-finance-page .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  body.bsh-finance-page {
    padding: 10px !important;
  }

  body.bsh-finance-page .header,
  body.bsh-finance-page .card,
  body.bsh-finance-page .panel {
    padding: 14px !important;
  }

  body.bsh-finance-page .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.bsh-finance-page .actions > * {
    flex: 1 1 auto;
  }

  body.bsh-finance-page form.filters > div {
    width: 100%;
  }
}
/* END BEIT_SHIFA_FINANCE_PAGE_V1 */



/* BEIT_SHIFA_DOCTOR_PHOTOS_V1 */
.bsh-doctor-avatar {
  overflow: hidden;
  flex-shrink: 0;
}
.bsh-doctor-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.bsh-doctor-current-photo {
  display: flex;
  align-items: center;
  margin: 12px 0;
}
.bsh-doctor-current-photo img {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #e3ebf5;
  box-shadow: 0 5px 18px rgba(23,44,99,.12);
}
.bsh-doctor-photo-field {
  margin: 10px 0 18px;
  padding: 16px;
  border: 1px dashed #c7d9ed;
  border-radius: 14px;
  background: #f7fbff;
}
.bsh-doctor-photo-field label {
  display: block;
  margin: 8px 0;
  color: #172c63;
  font-weight: 700;
}
.bsh-doctor-photo-field input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #fff;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}
.bsh-doctor-photo-field small {
  display: block;
  margin-top: 8px;
  color: #72809a;
  line-height: 1.8;
}
/* END BEIT_SHIFA_DOCTOR_PHOTOS_V1 */


/* BSH_DOCTOR_FORM_PRINT_V2 */
body.bsh-doctor-form-page .wrap {
  width: 100%;
  max-width: 1180px;
  margin: 22px auto;
  padding-inline: 18px;
  box-sizing: border-box;
}
body.bsh-doctor-form-page .wrap > .card {
  padding: clamp(18px, 2.4vw, 32px) !important;
  border: 1px solid #e3ebf5;
  border-radius: 18px !important;
  background: #fff;
  box-shadow: 0 8px 28px rgba(23,44,99,.06);
}
body.bsh-doctor-form-page .wrap > .card > h2 {
  margin: 0 0 24px;
  color: #172c63;
  font-size: 27px;
  line-height: 1.6;
}
body.bsh-doctor-form-page .bsh-doctor-photo-panel {
  display: grid;
  grid-template-columns: 132px minmax(0,1fr);
  gap: 18px 24px;
  align-items: center;
  margin-bottom: 26px;
  padding: 20px;
  border: 1px solid #dce9f8;
  border-radius: 16px;
  background: #f7fbff;
}
body.bsh-doctor-form-page .bsh-doctor-photo-preview {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  width: 124px;
  height: 124px;
  overflow: hidden;
  border: 1px solid #dce9f8;
  border-radius: 50%;
  background: #e8f3ff;
  color: #2879d8;
  font-size: 42px;
}
body.bsh-doctor-form-page .bsh-doctor-photo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.bsh-doctor-form-page .bsh-doctor-photo-preview small {
  font-size: 11px;
  color: #72809a;
}
body.bsh-doctor-form-page .bsh-doctor-photo-controls label,
body.bsh-doctor-form-page .bsh-doctor-field label {
  display: block;
  margin: 0 0 8px;
  color: #526885;
  font-weight: 700;
  line-height: 1.8;
}
body.bsh-doctor-form-page .bsh-doctor-photo-controls input[type="file"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #fff;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}
body.bsh-doctor-form-page .bsh-doctor-photo-controls small {
  display: block;
  margin-top: 8px;
  color: #72809a;
  line-height: 1.8;
}
body.bsh-doctor-form-page .bsh-doctor-fields-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}
body.bsh-doctor-form-page .bsh-doctor-field {
  min-width: 0;
}
body.bsh-doctor-form-page .bsh-doctor-field-full {
  grid-column: 1 / -1;
}
body.bsh-doctor-form-page .bsh-doctor-fields-grid input,
body.bsh-doctor-form-page .bsh-doctor-fields-grid select,
body.bsh-doctor-form-page .bsh-doctor-fields-grid textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #dce5f0;
  border-radius: 11px;
  background: #fff;
  font: inherit;
}
body.bsh-doctor-form-page .bsh-doctor-fields-grid textarea {
  min-height: 110px;
  line-height: 1.9;
  resize: vertical;
}
body.bsh-doctor-form-page .bsh-doctor-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
body.bsh-doctor-form-page .bsh-doctor-form-actions > a,
body.bsh-doctor-form-page .bsh-doctor-form-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 10px 17px;
  border-radius: 10px;
  font: 700 14px "Cairo", Tahoma, Arial, sans-serif;
  text-decoration: none;
}
body.bsh-doctor-form-page .bsh-doctor-print-button {
  background: #e8f3ff !important;
  border: 1px solid #d5e9fc !important;
  color: #175c9f !important;
}
body.bsh-doctor-form-page .bsh-doctor-form-actions button[type="submit"] {
  background: #2879d8 !important;
  border: 1px solid #2879d8 !important;
  color: #fff !important;
}
body.bsh-module-doctors .bsh-doctor-print-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #2879d8;
  border-radius: 10px;
  background: #2879d8;
  color: #fff !important;
  font: 700 13px "Cairo", Tahoma, Arial, sans-serif;
  text-decoration: none;
}
@media (max-width: 650px) {
  body.bsh-doctor-form-page .bsh-doctor-photo-panel {
    grid-template-columns: minmax(0,1fr);
    justify-items: start;
    padding: 15px;
  }
  body.bsh-doctor-form-page .bsh-doctor-fields-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 16px;
  }
  body.bsh-doctor-form-page .bsh-doctor-field-full {
    grid-column: auto;
  }
  body.bsh-doctor-form-page .bsh-doctor-form-actions > * {
    flex: 1 1 auto;
  }
}
/* END BSH_DOCTOR_FORM_PRINT_V2 */

/* BEIT_SHIFA_APPOINTMENT_COMPACT_FIELDS_V2 */
body.bsh-module-appointments {
  background: #f4f7fb !important;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

body.bsh-module-appointments .wrap {
  width: 100%;
  max-width: 1180px;
  margin: 18px auto;
  padding: 0 18px;
  box-sizing: border-box;
}

body.bsh-module-appointments .wrap > .card {
  padding: clamp(18px, 2.2vw, 28px) !important;
  border: 1px solid #e3ebf5;
  border-radius: 16px !important;
  background: #fff;
  box-shadow: 0 8px 26px rgba(23,44,99,.06);
}

body.bsh-module-appointments .bsh-appointment-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px 20px;
}

body.bsh-module-appointments .bsh-appointment-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

body.bsh-module-appointments .bsh-appointment-field-full {
  grid-column: 1 / -1;
}

body.bsh-module-appointments .bsh-appointment-field label {
  margin: 0;
  color: #526885;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

body.bsh-module-appointments .bsh-appointment-field input,
body.bsh-module-appointments .bsh-appointment-field select,
body.bsh-module-appointments .bsh-appointment-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  height: auto;
  margin: 0 !important;
  padding: 8px 12px !important;
  box-sizing: border-box;
  border: 1px solid #d8e4f1 !important;
  border-radius: 10px !important;
  background: #fff;
  color: #172747;
  font: 400 14px/1.7 "Cairo", Tahoma, Arial, sans-serif !important;
}

body.bsh-module-appointments .bsh-appointment-field textarea {
  min-height: 82px;
  resize: vertical;
}

body.bsh-module-appointments .bsh-appointment-field input:focus,
body.bsh-module-appointments .bsh-appointment-field select:focus,
body.bsh-module-appointments .bsh-appointment-field textarea:focus {
  border-color: #35bdd0 !important;
  box-shadow: 0 0 0 3px rgba(53,189,208,.13) !important;
  outline: none;
}

body.bsh-module-appointments .wrap > .card > button,
body.bsh-module-appointments .wrap > .card > a {
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 10px !important;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

@media (max-width: 700px) {
  body.bsh-module-appointments .wrap {
    margin: 12px auto;
    padding: 0 11px;
  }

  body.bsh-module-appointments .wrap > .card {
    padding: 16px !important;
  }

  body.bsh-module-appointments .bsh-appointment-fields-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 14px;
  }

  body.bsh-module-appointments .bsh-appointment-field-full {
    grid-column: auto;
  }
}
/* END BEIT_SHIFA_APPOINTMENT_COMPACT_FIELDS_V2 */


/* BEIT_SHIFA_APPOINTMENTS_PRINT_V1 */
body.bsh-module-appointments .bsh-print-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #d5e9fc !important;
  border-radius: 10px;
  background: #e8f3ff !important;
  color: #175c9f !important;
  font: 700 14px "Cairo", Tahoma, Arial, sans-serif;
  cursor: pointer;
}

body.bsh-module-appointments .bsh-print-button:hover {
  background: #d8ebff !important;
}

@media print {
  body.bsh-module-appointments {
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }

  body.bsh-module-appointments .bsh-global-sidebar,
  body.bsh-module-appointments .sidebar,
  body.bsh-module-appointments .main-sidebar,
  body.bsh-module-appointments .topbar,
  body.bsh-module-appointments .main-header,
  body.bsh-module-appointments .admin-header,
  body.bsh-module-appointments .bsh-global-header,
  body.bsh-module-appointments .bsh-print-button,
  body.bsh-module-appointments .bsh-module-head-actions,
  body.bsh-module-appointments .top > div > a,
  body.bsh-module-appointments .actions,
  body.bsh-module-appointments .pagination,
  body.bsh-module-appointments footer {
    display: none !important;
  }

  body.bsh-module-appointments .wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.bsh-module-appointments .top {
    padding: 0 0 12px !important;
    margin-bottom: 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  body.bsh-module-appointments .top h2 {
    display: block !important;
    color: #172c63 !important;
    font-size: 22px !important;
  }

  body.bsh-module-appointments .card {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    break-inside: avoid;
  }

  body.bsh-module-appointments table {
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: collapse !important;
    font-size: 10pt !important;
    color: #000 !important;
  }

  body.bsh-module-appointments table th,
  body.bsh-module-appointments table td {
    padding: 7px !important;
    border: 1px solid #d8dee7 !important;
    color: #000 !important;
    background: #fff !important;
    white-space: normal !important;
  }

  body.bsh-module-appointments table th:last-child,
  body.bsh-module-appointments table td:last-child {
    display: none !important;
  }

  body.bsh-module-appointments a {
    color: #000 !important;
    text-decoration: none !important;
  }
}
/* END BEIT_SHIFA_APPOINTMENTS_PRINT_V1 */


/* BEIT_SHIFA_APPOINTMENT_ROW_PRINT_V1 */
body.bsh-module-appointments .bsh-row-print-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid #d5e9fc !important;
  border-radius: 10px !important;
  background: #e8f3ff !important;
  color: #175c9f !important;
  font: 700 13px "Cairo", Tahoma, Arial, sans-serif !important;
  cursor: pointer;
}

body.bsh-module-appointments .bsh-row-print-button:hover {
  background: #d8ebff !important;
}

@media print {
  body.bsh-module-appointments.bsh-print-single-appointment
  table tbody tr:not(.bsh-printing-row) {
    display: none !important;
  }

  body.bsh-module-appointments.bsh-print-single-appointment
  table tbody tr.bsh-printing-row {
    display: table-row !important;
  }

  body.bsh-module-appointments.bsh-print-single-appointment
  table {
    min-width: 0 !important;
    width: 100% !important;
  }
}
/* END BEIT_SHIFA_APPOINTMENT_ROW_PRINT_V1 */



/* BEIT_SHIFA_APPOINTMENT_FULL_PRINT_V2 */
body.bsh-module-appointments .bsh-row-print-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #d5e9fc !important;
  border-radius: 10px !important;
  background: #e8f3ff !important;
  color: #175c9f !important;
  font: 700 13px "Cairo", Tahoma, Arial, sans-serif !important;
  text-decoration: none !important;
  white-space: nowrap;
}
/* END BEIT_SHIFA_APPOINTMENT_FULL_PRINT_V2 */


/* BSH_DOCTOR_SPECIALTIES_BUTTON_V1 */
body.bsh-module-doctors .bsh-module-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body.bsh-module-doctors .bsh-specialties-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  box-sizing: border-box;
  padding: 10px 15px;
  border: 1px solid #d5e9fc !important;
  border-radius: 10px !important;
  background: #e8f3ff !important;
  color: #175c9f !important;
  font: 700 13px "Cairo", Tahoma, Arial, sans-serif;
  text-decoration: none !important;
}

body.bsh-module-doctors .bsh-specialties-link:hover {
  background: #d8ebff !important;
}
/* END BSH_DOCTOR_SPECIALTIES_BUTTON_V1 */


/* BSH_APPOINTMENT_INLINE_STATUS_V1 */
.bsh-appointment-status-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.bsh-appointment-status-select {
  min-width: 112px;
  max-width: 155px;
  padding: 8px 10px;
  border: 1px solid #d6e2f0;
  border-radius: 9px;
  background: #fff;
  color: #19366d;
  font: inherit;
  font-size: 13px;
}
.bsh-appointment-status-save {
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: #e7f2ff;
  color: #1765ad;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.bsh-appointment-status-save:hover {
  background: #d6eaff;
}
.bsh-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* END BSH_APPOINTMENT_INLINE_STATUS_V1 */

/* BEIT_SHIFA_APPOINTMENTS_COMPACT_ACTIONS_V2 */
body.bsh-module-appointments .card:has(table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.bsh-module-appointments table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

body.bsh-module-appointments table th,
body.bsh-module-appointments table td {
  padding: 9px 10px;
  vertical-align: middle;
}

body.bsh-module-appointments .actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 360px;
}

body.bsh-module-appointments .actions > a,
body.bsh-module-appointments .actions > button,
body.bsh-module-appointments .actions form button,
body.bsh-module-appointments .bsh-appointment-status-save,
body.bsh-module-appointments .bsh-row-print-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px !important;
  height: auto;
  margin: 0 !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  font: 600 12px/1.5 "Cairo", Tahoma, Arial, sans-serif !important;
  white-space: nowrap;
  box-sizing: border-box;
}

body.bsh-module-appointments .actions svg,
body.bsh-module-appointments .actions i,
body.bsh-module-appointments .actions .icon,
body.bsh-module-appointments .actions [class*="icon"] {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  flex-shrink: 0;
}

body.bsh-module-appointments .bsh-appointment-status-form {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  margin: 0;
}

body.bsh-module-appointments .bsh-appointment-status-select {
  width: 100px;
  min-width: 92px;
  max-width: 115px;
  min-height: 34px !important;
  height: 34px;
  padding: 5px 7px !important;
  border-radius: 8px !important;
  font: 600 12px/1.4 "Cairo", Tahoma, Arial, sans-serif !important;
}

body.bsh-module-appointments .bsh-appointment-status-save {
  background: #2879d8 !important;
  color: #fff !important;
  border: 1px solid #2879d8 !important;
}

body.bsh-module-appointments .bsh-row-print-button {
  background: #e8f3ff !important;
  color: #175c9f !important;
  border: 1px solid #d5e9fc !important;
  text-decoration: none !important;
}

body.bsh-module-appointments .actions form {
  display: inline-flex;
  margin: 0;
}

body.bsh-module-appointments .actions form button {
  background: #c83f4f;
  color: #fff;
  border: 1px solid #c83f4f;
}

@media (max-width: 700px) {
  body.bsh-module-appointments table {
    min-width: 900px;
  }

  body.bsh-module-appointments .actions {
    min-width: 330px;
    gap: 5px;
  }

  body.bsh-module-appointments .bsh-appointment-status-select {
    width: 92px;
    min-width: 88px;
  }
}
/* END BEIT_SHIFA_APPOINTMENTS_COMPACT_ACTIONS_V2 */


/* BEIT_SHIFA_INVOICE_DETAIL_DESIGN_V1 */
body.bsh-invoice-detail {
  background: #f3f6fb !important;
  color: #172747 !important;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  padding: 0 !important;
}

body.bsh-invoice-detail .wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 1360px;
  margin: 18px auto !important;
  padding: 0 clamp(12px, 2.2vw, 30px) !important;
}

body.bsh-invoice-detail .wrap > .card {
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(16px, 2vw, 26px) !important;
  margin: 0 0 16px !important;
  border: 1px solid #e1eaf5 !important;
  border-radius: 17px !important;
  background: #fff !important;
  box-shadow: 0 8px 25px rgba(23,44,99,.055) !important;
}

body.bsh-invoice-detail .wrap > .card:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
}

body.bsh-invoice-detail .wrap > .card h2 {
  margin: 0 0 10px;
  color: #172c63 !important;
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 800;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body.bsh-invoice-detail .wrap > .card h3 {
  margin: 18px 0 12px;
  color: #172c63 !important;
  font-size: 18px;
  line-height: 1.7;
}

body.bsh-invoice-detail .wrap > .card:first-child a,
body.bsh-invoice-detail .wrap > .card:first-child button,
body.bsh-invoice-detail .wrap button,
body.bsh-invoice-detail .wrap a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-sizing: border-box;
  min-height: 40px;
  margin: 3px 0;
  padding: 9px 14px;
  border: 1px solid #2879d8;
  border-radius: 10px !important;
  background: #2879d8;
  color: #fff !important;
  font: 700 13px/1.6 "Cairo", Tahoma, Arial, sans-serif !important;
  text-decoration: none !important;
  cursor: pointer;
}

body.bsh-invoice-detail .wrap > .card:nth-child(2) {
  padding: 15px 20px !important;
  border-right: 4px solid #35bdd0 !important;
  color: #175c9f;
  line-height: 1.9;
}

body.bsh-invoice-detail .wrap > .card:nth-child(2) p {
  margin: 0;
}

body.bsh-invoice-detail .wrap > .card:has(table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.bsh-invoice-detail .wrap table {
  width: 100%;
  min-width: 540px;
  border-collapse: separate;
  border-spacing: 0;
  color: #172747;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  font-size: 14px;
}

body.bsh-invoice-detail .wrap table th {
  padding: 12px 14px;
  border-bottom: 1px solid #dce7f4;
  background: #edf4fc !important;
  color: #526885 !important;
  font-weight: 800;
  line-height: 1.8;
  text-align: right;
  white-space: nowrap;
}

body.bsh-invoice-detail .wrap table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e8eef6;
  background: #fff;
  color: #172747;
  line-height: 1.9;
  vertical-align: middle;
}

body.bsh-invoice-detail .wrap table tbody tr:last-child td {
  border-bottom: 0;
}

body.bsh-invoice-detail .wrap table tbody tr:hover td {
  background: #f8fbff;
}

body.bsh-invoice-detail .wrap strong {
  color: #172c63;
}

body.bsh-invoice-detail .wrap input,
body.bsh-invoice-detail .wrap select,
body.bsh-invoice-detail .wrap textarea {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid #d8e4f1 !important;
  border-radius: 10px !important;
  background: #fff;
  color: #172747;
  font: 400 14px/1.7 "Cairo", Tahoma, Arial, sans-serif !important;
}

body.bsh-invoice-detail .wrap input:focus,
body.bsh-invoice-detail .wrap select:focus,
body.bsh-invoice-detail .wrap textarea:focus {
  border-color: #35bdd0 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(53,189,208,.13) !important;
}

body.bsh-invoice-detail .wrap form {
  min-width: 0;
}

@media (max-width: 700px) {
  body.bsh-invoice-detail .wrap {
    margin: 10px auto !important;
    padding: 0 10px !important;
  }

  body.bsh-invoice-detail .wrap > .card {
    padding: 15px !important;
    border-radius: 13px !important;
  }

  body.bsh-invoice-detail .wrap > .card:first-child {
    align-items: stretch;
  }

  body.bsh-invoice-detail .wrap > .card:first-child > * {
    max-width: 100%;
  }

  body.bsh-invoice-detail .wrap table {
    min-width: 520px;
    font-size: 12px;
  }

  body.bsh-invoice-detail .wrap table th,
  body.bsh-invoice-detail .wrap table td {
    padding: 9px 10px;
  }

  body.bsh-invoice-detail .wrap > .card:first-child a,
  body.bsh-invoice-detail .wrap > .card:first-child button {
    min-height: 38px;
    padding: 8px 11px;
  }
}

@media print {
  body.bsh-invoice-detail {
    background: #fff !important;
    padding: 0 !important;
  }

  body.bsh-invoice-detail .wrap {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.bsh-invoice-detail .wrap > .card {
    box-shadow: none !important;
    break-inside: avoid;
  }
}
/* END BEIT_SHIFA_INVOICE_DETAIL_DESIGN_V1 */


/* BEIT_SHIFA_INVOICE_ONLY_PRINT_V2 */
.bsh-invoice-print-heading {
  display: none;
}

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

  html,
  body.bsh-invoice-detail {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    min-height: 0 !important;
    background: #fff !important;
    color: #172747 !important;
  }

  /* Only the actual invoice area is shown on the printed page. */
  body.bsh-invoice-detail * {
    visibility: hidden !important;
  }

  body.bsh-invoice-detail .wrap {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body.bsh-invoice-detail .wrap > *:not(.invoice-print-area) {
    display: none !important;
  }

  body.bsh-invoice-detail .invoice-print-area,
  body.bsh-invoice-detail .invoice-print-area * {
    visibility: visible !important;
  }

  body.bsh-invoice-detail .invoice-print-area {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #172747 !important;
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  }

  body.bsh-invoice-detail .bsh-invoice-print-heading {
    display: flex !important;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 0 0 16px;
    margin: 0 0 22px;
    border-bottom: 2px solid #dce7f4;
    break-inside: avoid;
  }

  body.bsh-invoice-detail .bsh-invoice-print-heading img {
    display: block !important;
    width: 66px !important;
    height: 66px !important;
    flex: 0 0 66px;
    object-fit: contain;
  }

  body.bsh-invoice-detail .bsh-invoice-print-heading > div:first-of-type {
    flex: 1;
  }

  body.bsh-invoice-detail .bsh-invoice-print-heading > div:first-of-type strong {
    display: block;
    color: #172c63 !important;
    font-size: 19px;
    line-height: 1.8;
  }

  body.bsh-invoice-detail .bsh-invoice-print-heading span {
    display: block;
    color: #64748b !important;
    font-size: 12px;
  }

  body.bsh-invoice-detail .bsh-invoice-print-number {
    max-width: 40%;
    text-align: left;
    overflow-wrap: anywhere;
  }

  body.bsh-invoice-detail .bsh-invoice-print-number small,
  body.bsh-invoice-detail .bsh-invoice-print-number strong {
    display: block;
  }

  body.bsh-invoice-detail .bsh-invoice-print-number small {
    color: #64748b !important;
  }

  body.bsh-invoice-detail .invoice-print-area > .grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
  }

  body.bsh-invoice-detail .invoice-print-area h3 {
    color: #172c63 !important;
    margin: 18px 0 10px;
  }

  body.bsh-invoice-detail .invoice-print-area table {
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: collapse !important;
    font-size: 11pt !important;
  }

  body.bsh-invoice-detail .invoice-print-area th,
  body.bsh-invoice-detail .invoice-print-area td {
    padding: 9px 10px !important;
    border: 1px solid #dce5f0 !important;
    color: #172747 !important;
    background: #fff !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  body.bsh-invoice-detail .invoice-print-area th {
    background: #edf4fc !important;
    font-weight: 700;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.bsh-invoice-detail .invoice-print-area p {
    margin: 9px 0;
    line-height: 1.9;
  }

  body.bsh-invoice-detail .invoice-print-area h3,
  body.bsh-invoice-detail .invoice-print-area table {
    break-inside: avoid;
  }

  body.bsh-invoice-detail .invoice-payment-form,
  body.bsh-invoice-detail .invoice-payment-history,
  body.bsh-invoice-detail .invoice-toolbar,
  body.bsh-invoice-detail .no-print {
    display: none !important;
  }
}
/* END BEIT_SHIFA_INVOICE_ONLY_PRINT_V2 */


/* BEIT_SHIFA_PRINT_HEADER_SCREEN_ONLY_V1 */

/* Normal invoice page: hide print-only and injected global header elements. */
@media screen {
  body.bsh-invoice-detail .bsh-invoice-print-heading {
    display: none !important;
  }

  body.bsh-invoice-detail header:not(.bsh-invoice-print-heading) {
    display: none !important;
  }

  body.bsh-invoice-detail .bsh-global-header,
  body.bsh-invoice-detail .beit-shifa-global-header,
  body.bsh-invoice-detail .global-header,
  body.bsh-invoice-detail .admin-global-header,
  body.bsh-invoice-detail .bsh-global-header-root,
  body.bsh-invoice-detail .branch-switcher-header {
    display: none !important;
  }
}

/* Print/PDF: explicitly restore the invoice's print-only heading and logo. */
@media print {
  body.bsh-invoice-detail .bsh-invoice-print-heading {
    display: flex !important;
  }

  body.bsh-invoice-detail .bsh-invoice-print-heading img {
    display: block !important;
  }
}
/* END BEIT_SHIFA_PRINT_HEADER_SCREEN_ONLY_V1 */


/* BEIT_SHIFA_SERVICE_CATALOG_V1 */
.bsh-services-entry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 4px;
  padding: 8px 13px;
  border: 1px solid #d5e9fc;
  border-radius: 9px;
  background: #e8f3ff;
  color: #175c9f !important;
  font: 700 13px "Cairo", Tahoma, Arial, sans-serif;
  text-decoration: none !important;
}
.bsh-service-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.bsh-invoice-service-cell {
  min-width: 250px;
}
.bsh-invoice-service-select {
  display: block;
  width: 100%;
  min-width: 230px;
  margin-bottom: 7px;
  padding: 8px 10px;
  border: 1px solid #d8e4f1;
  border-radius: 9px;
  background: #fff;
  color: #172747;
  font: 13px "Cairo", Tahoma, Arial, sans-serif;
}
.bsh-invoice-service-cell input[readonly] {
  background: #f1f6fc !important;
  color: #405779 !important;
}
@media(max-width:650px) {
  .bsh-service-table-heading {
    align-items: flex-start;
  }
}
/* END BEIT_SHIFA_SERVICE_CATALOG_V1 */


/* BEIT_SHIFA_SERVICE_SECTION_REVIEW_V2 */

/* Improve contrast of the Add Service button against global link styles. */
body .svc-wrap .svc-head .svc-button:not(.light) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-indent: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  line-height: 1.6 !important;
}
body .svc-wrap .svc-head .svc-button.light {
  color: #175c9f !important;
  -webkit-text-fill-color: #175c9f !important;
}

/* Search and activation filters */
.svc-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(190px, 1fr);
  gap: 14px;
  margin: 16px 0 8px;
  align-items: end;
}
.svc-filter-field {
  min-width: 0;
}
.svc-filter-field label {
  display: block;
  margin-bottom: 7px;
  color: #526885;
  font-size: 13px;
  font-weight: 700;
}
.svc-filter-field input,
.svc-filter-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d8e4f1;
  border-radius: 10px;
  background: #fff;
  color: #172747;
  font: 13px "Cairo", Tahoma, Arial, sans-serif;
}
.svc-filter-field input:focus,
.svc-filter-field select:focus {
  outline: none;
  border-color: #35bdd0;
  box-shadow: 0 0 0 3px rgba(53,189,208,.13);
}
.svc-filter-count {
  margin: 8px 0 12px;
  color: #72809a;
  font-size: 12px;
}
.svc-table tr[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  .svc-filters {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}
/* END BEIT_SHIFA_SERVICE_SECTION_REVIEW_V2 */


/* BSH_HIDE_BRANCH_ON_SERVICES_PAGE_V1 */
/* Hide the branch selector only on the services-management page. */
body.bsh-services-page .bs-branch-switcher {
  display: none !important;
}
/* END BSH_HIDE_BRANCH_ON_SERVICES_PAGE_V1 */


/* BEIT_SHIFA_SITE_WIDE_THEME_V1
   Shared appearance layer for complete Beit Al-Shifa admin pages.
   Does not change routes, permissions, business logic, or database data. */

body.bsh-unified-app {
  --bsh-navy: #172c63;
  --bsh-blue: #2879d8;
  --bsh-teal: #159b9a;
  --bsh-cyan: #35bdd0;
  --bsh-bg: #f3f6fb;
  --bsh-border: #e1eaf5;
  --bsh-muted: #72809a;
  margin: 0;
  color: #172747;
  background: #f3f6fb;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}

body.bsh-unified-app *,
body.bsh-unified-app *::before,
body.bsh-unified-app *::after {
  box-sizing: border-box;
}

body.bsh-unified-app h1,
body.bsh-unified-app h2,
body.bsh-unified-app h3,
body.bsh-unified-app h4 {
  color: #172c63;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  font-weight: 800;
  line-height: 1.7;
}

body.bsh-unified-app p,
body.bsh-unified-app small,
body.bsh-unified-app label {
  line-height: 1.9;
}

body.bsh-unified-app .wrap,
body.bsh-unified-app main,
body.bsh-unified-app .content-wrapper,
body.bsh-unified-app .admin-content,
body.bsh-unified-app .main-content {
  min-width: 0;
}

body.bsh-unified-app .wrap {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

body.bsh-unified-app .card,
body.bsh-unified-app .panel,
body.bsh-unified-app .content-card,
body.bsh-unified-app .stat-card {
  border-color: #e1eaf5;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 7px 24px rgba(23,44,99,.045);
}

body.bsh-unified-app input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
body.bsh-unified-app select,
body.bsh-unified-app textarea {
  max-width: 100%;
  border-color: #d8e4f1;
  border-radius: 10px;
  color: #172747;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}

body.bsh-unified-app input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
body.bsh-unified-app select {
  min-height: 40px;
}

body.bsh-unified-app input:focus,
body.bsh-unified-app select:focus,
body.bsh-unified-app textarea:focus {
  border-color: #35bdd0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(53,189,208,.12);
}

body.bsh-unified-app button,
body.bsh-unified-app input[type="submit"],
body.bsh-unified-app .btn,
body.bsh-unified-app a.btn {
  border-radius: 9px;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  font-weight: 700;
  transition: background-color .15s ease, box-shadow .15s ease;
}

body.bsh-unified-app button:not(.btn-danger):not(.danger):not(.bsh-doctor-delete):not([style*="#b83232"]):not([style*="#b83c4c"]),
body.bsh-unified-app input[type="submit"]:not(.btn-danger),
body.bsh-unified-app .btn:not(.btn-danger):not(.danger):not(.secondary):not(.light),
body.bsh-unified-app a.btn:not(.secondary):not(.light) {
  border-color: #2879d8;
  background-color: #2879d8;
  color: #fff;
}

body.bsh-unified-app table {
  max-width: 100%;
  border-color: #e1eaf5;
}

body.bsh-unified-app th {
  background-color: #edf4fc;
  color: #526885;
  font-weight: 800;
}

body.bsh-unified-app th,
body.bsh-unified-app td {
  border-color: #e6edf6;
  line-height: 1.8;
}

body.bsh-unified-app .success,
body.bsh-unified-app .alert-success {
  border-color: #ccebdd;
}

body.bsh-unified-app .error,
body.bsh-unified-app .alert-danger {
  border-color: #f3ccd1;
}

body.bsh-unified-app .table-responsive,
body.bsh-unified-app .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.bsh-unified-app .actions {
  gap: 7px;
  flex-wrap: wrap;
}

body.bsh-unified-app .pagination {
  flex-wrap: wrap;
}

body.bsh-unified-app .bs-unified-header {
  border-bottom-color: #e1eaf5;
  background: #fff;
  box-shadow: 0 4px 18px rgba(23,44,99,.035);
}

body.bsh-unified-app .bs-unified-header a,
body.bsh-unified-app .bs-unified-header button {
  border-radius: 10px;
}

body.bsh-unified-app .bs-unified-footer {
  border-top-color: #e1eaf5;
  background: #fff;
  color: #72809a;
}

@media (max-width: 768px) {
  body.bsh-unified-app .wrap {
    width: 100%;
    margin-top: 12px;
    margin-bottom: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }

  body.bsh-unified-app .card,
  body.bsh-unified-app .panel,
  body.bsh-unified-app .content-card {
    border-radius: 13px;
  }

  body.bsh-unified-app table {
    min-width: 540px;
  }

  body.bsh-unified-app .actions > a,
  body.bsh-unified-app .actions > button {
    min-height: 36px;
  }
}

@media print {
  body.bsh-unified-app {
    background: #fff !important;
  }
}
/* END BEIT_SHIFA_SITE_WIDE_THEME_V1 */


/* BEIT_SHIFA_SITE_WIDE_FORCE_V3
   Force the common Beit Al-Shifa appearance over older page-local styles. */

body.bsh-unified-app {
  background: #f3f6fb !important;
  color: #172747 !important;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  font-size: 14px;
}

body.bsh-unified-app h1,
body.bsh-unified-app h2,
body.bsh-unified-app h3,
body.bsh-unified-app h4,
body.bsh-unified-app h5 {
  color: #172c63 !important;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  font-weight: 800;
  line-height: 1.7;
}

body.bsh-unified-app .wrap {
  width: 100%;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(10px, 2vw, 28px);
  padding-right: clamp(10px, 2vw, 28px);
}

body.bsh-unified-app .wrap > .top,
body.bsh-unified-app .wrap > .card:not(.success):not(.error):not(.notice):not(.alert),
body.bsh-unified-app main > .card:not(.success):not(.error):not(.notice):not(.alert),
body.bsh-unified-app .content-wrapper > .card,
body.bsh-unified-app .main-content > .card,
body.bsh-unified-app .panel,
body.bsh-unified-app .content-card {
  border: 1px solid #e1eaf5 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 7px 24px rgba(23,44,99,.055) !important;
}

body.bsh-unified-app .wrap > .top {
  padding: 22px !important;
  margin-bottom: 18px !important;
}

body.bsh-unified-app .wrap > .card:not(.success):not(.error):not(.notice):not(.alert),
body.bsh-unified-app main > .card:not(.success):not(.error):not(.notice):not(.alert),
body.bsh-unified-app .panel,
body.bsh-unified-app .content-card {
  padding: clamp(15px, 2vw, 26px) !important;
  margin-bottom: 16px;
}

body.bsh-unified-app .wrap > .top h1,
body.bsh-unified-app .wrap > .top h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

body.bsh-unified-app label {
  display: block;
  color: #526885 !important;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  font-weight: 700;
  line-height: 1.8;
}

body.bsh-unified-app input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
body.bsh-unified-app select,
body.bsh-unified-app textarea {
  max-width: 100%;
  border: 1px solid #d8e4f1 !important;
  border-radius: 10px !important;
  background-color: #fff;
  color: #172747 !important;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  font-size: 13px;
  line-height: 1.8;
}

body.bsh-unified-app input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
body.bsh-unified-app select {
  min-height: 40px;
  padding: 8px 11px;
}

body.bsh-unified-app textarea {
  padding: 10px 12px;
}

body.bsh-unified-app input:focus,
body.bsh-unified-app select:focus,
body.bsh-unified-app textarea:focus {
  border-color: #35bdd0 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(53,189,208,.14) !important;
}

body.bsh-unified-app button:not(.danger):not(.btn-danger):not(.delete):not(.btn-delete):not([style*="#b83232"]):not([style*="#b83c4c"]):not([style*="#b42318"]):not([style*="#c83f4f"]),
body.bsh-unified-app input[type="submit"]:not(.danger):not(.btn-danger),
body.bsh-unified-app .btn:not(.danger):not(.btn-danger):not(.delete):not(.btn-delete):not(.secondary):not(.light):not([style*="#b83232"]):not([style*="#b83c4c"]):not([style*="#b42318"]):not([style*="#c83f4f"]),
body.bsh-unified-app a.btn:not(.secondary):not(.light) {
  border-radius: 9px !important;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  font-weight: 700;
}

body.bsh-unified-app button:not(.danger):not(.btn-danger):not(.delete):not(.btn-delete):not([style*="#b83232"]):not([style*="#b83c4c"]):not([style*="#b42318"]):not([style*="#c83f4f"]),
body.bsh-unified-app input[type="submit"]:not(.danger):not(.btn-danger),
body.bsh-unified-app .btn:not(.danger):not(.btn-danger):not(.delete):not(.btn-delete):not(.secondary):not(.light):not([style*="#b83232"]):not([style*="#b83c4c"]):not([style*="#b42318"]):not([style*="#c83f4f"]),
body.bsh-unified-app a.btn:not(.secondary):not(.light) {
  background-color: #2879d8 !important;
  border-color: #2879d8 !important;
  color: #fff !important;
}

body.bsh-unified-app .btn.secondary,
body.bsh-unified-app .btn.light,
body.bsh-unified-app a.secondary,
body.bsh-unified-app .button.secondary {
  background-color: #e8f3ff !important;
  border-color: #d5e9fc !important;
  color: #175c9f !important;
}

body.bsh-unified-app table {
  width: 100%;
  border-color: #e1eaf5;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

body.bsh-unified-app th {
  background: #edf4fc !important;
  color: #526885 !important;
  font-weight: 800 !important;
}

body.bsh-unified-app th,
body.bsh-unified-app td {
  border-color: #e6edf6 !important;
  line-height: 1.8;
  vertical-align: middle;
}

body.bsh-unified-app .table-responsive,
body.bsh-unified-app .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.bsh-unified-app .success,
body.bsh-unified-app .alert-success {
  background: #effaf5;
  border-color: #ccebdd;
  color: #166b51;
}

body.bsh-unified-app .error,
body.bsh-unified-app .alert-danger {
  background: #fff4f5;
  border-color: #f3ccd1;
  color: #a52232;
}

body.bsh-unified-app .bs-unified-header {
  background: #fff !important;
  border-bottom: 1px solid #e1eaf5 !important;
  box-shadow: 0 4px 18px rgba(23,44,99,.035) !important;
}

body.bsh-unified-app .bs-unified-footer {
  background: #fff !important;
  border-top: 1px solid #e1eaf5 !important;
  color: #72809a;
}

@media(max-width:768px) {
  body.bsh-unified-app .wrap {
    padding-left: 10px;
    padding-right: 10px;
  }

  body.bsh-unified-app .wrap > .top,
  body.bsh-unified-app .wrap > .card:not(.success):not(.error):not(.notice):not(.alert),
  body.bsh-unified-app main > .card:not(.success):not(.error):not(.notice):not(.alert) {
    border-radius: 13px !important;
  }

  body.bsh-unified-app .table-responsive,
  body.bsh-unified-app .table-wrap {
    overflow-x: auto !important;
  }
}

@media print {
  body.bsh-unified-app {
    background: #fff !important;
  }
}
/* END BEIT_SHIFA_SITE_WIDE_FORCE_V3 */


/* BEIT_SHIFA_BILLING_UNIFIED_V1
   Screen styling for invoice list, creation and detail pages.
   Keeps invoice-print rules and billing logic untouched. */

@media screen {
  body.bsh-billing-page {
    margin: 0 !important;
    padding: 0 !important;
    background: #f3f6fb !important;
    color: #172747 !important;
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  }

  body.bsh-billing-page .wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 1360px !important;
    margin: 20px auto !important;
    padding: 0 clamp(10px, 2vw, 26px) !important;
  }

  body.bsh-billing-page .wrap > .card,
  body.bsh-billing-page .wrap > form > .card {
    box-sizing: border-box;
    min-width: 0;
    padding: clamp(16px, 2vw, 26px) !important;
    margin: 0 0 16px !important;
    border: 1px solid #e1eaf5 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 7px 24px rgba(23,44,99,.055) !important;
  }

  body.bsh-billing-page .wrap h1,
  body.bsh-billing-page .wrap h2,
  body.bsh-billing-page .wrap h3,
  body.bsh-billing-page .wrap h4 {
    color: #172c63 !important;
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
    font-weight: 800 !important;
    line-height: 1.7;
  }

  body.bsh-billing-page .wrap h1,
  body.bsh-billing-page .wrap h2 {
    margin-top: 0;
  }

  body.bsh-billing-page .wrap p,
  body.bsh-billing-page .wrap label {
    line-height: 1.9;
  }

  body.bsh-billing-page .wrap label {
    display: block;
    margin: 10px 0 6px;
    color: #526885 !important;
    font-size: 13px;
    font-weight: 700;
  }

  body.bsh-billing-page .wrap input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
  body.bsh-billing-page .wrap select,
  body.bsh-billing-page .wrap textarea {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 10px 12px !important;
    border: 1px solid #d8e4f1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #172747 !important;
    font: 400 13px/1.8 "Cairo", Tahoma, Arial, sans-serif !important;
  }

  body.bsh-billing-page .wrap input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
  body.bsh-billing-page .wrap select {
    min-height: 40px;
  }

  body.bsh-billing-page .wrap input:focus,
  body.bsh-billing-page .wrap select:focus,
  body.bsh-billing-page .wrap textarea:focus {
    border-color: #35bdd0 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(53,189,208,.13) !important;
  }

  body.bsh-billing-page .wrap button,
  body.bsh-billing-page .wrap input[type="submit"],
  body.bsh-billing-page .wrap a.btn,
  body.bsh-billing-page .wrap button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 39px;
    margin: 4px 0;
    padding: 9px 14px !important;
    border: 1px solid #2879d8;
    border-radius: 9px !important;
    background: #2879d8;
    color: #fff !important;
    font: 700 13px/1.6 "Cairo", Tahoma, Arial, sans-serif !important;
    text-decoration: none !important;
    cursor: pointer;
  }

  body.bsh-billing-page .wrap a[href*="billing.index"],
  body.bsh-billing-page .wrap a[href*="/admin/billing"]:not(.btn) {
    text-decoration: none;
  }

  body.bsh-billing-page .wrap .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 14px;
  }

  body.bsh-billing-page .wrap .grid > div {
    min-width: 0;
  }

  body.bsh-billing-page .wrap table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    color: #172747;
    font: 400 13px/1.8 "Cairo", Tahoma, Arial, sans-serif !important;
  }

  body.bsh-billing-page .wrap table th {
    padding: 12px;
    border-bottom: 1px solid #dce7f4 !important;
    background: #edf4fc !important;
    color: #526885 !important;
    font-weight: 800 !important;
    text-align: right;
    white-space: nowrap;
  }

  body.bsh-billing-page .wrap table td {
    padding: 11px 12px;
    border-bottom: 1px solid #e6edf6 !important;
    color: #172747 !important;
    line-height: 1.8;
    vertical-align: middle;
    overflow-wrap: anywhere;
  }

  body.bsh-billing-page .wrap table tbody tr:hover td {
    background: #f8fbff;
  }

  body.bsh-billing-page .wrap .card:has(table) {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.bsh-billing-page .wrap .err,
  body.bsh-billing-page .wrap .error {
    border-color: #f3ccd1 !important;
    background: #fff4f5 !important;
    color: #a52232 !important;
  }

  body.bsh-billing-page .wrap .success {
    border-color: #ccebdd !important;
    background: #effaf5 !important;
    color: #166b51 !important;
  }

  body.bsh-billing-page .wrap strong {
    color: #172c63;
  }

  body.bsh-billing-page .wrap .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 14px;
  }

  /* Specific invoice detail totals. */
  body.bsh-billing-page.bsh-invoice-detail .invoice-print-area h3 {
    color: #172c63 !important;
  }

  @media (max-width: 650px) {
    body.bsh-billing-page .wrap {
      margin: 12px auto !important;
      padding: 0 10px !important;
    }

    body.bsh-billing-page .wrap > .card,
    body.bsh-billing-page .wrap > form > .card {
      padding: 15px !important;
      border-radius: 13px !important;
    }

    body.bsh-billing-page .wrap table {
      min-width: 520px;
      font-size: 12px !important;
    }

    body.bsh-billing-page .wrap table th,
    body.bsh-billing-page .wrap table td {
      padding: 9px 10px;
    }
  }
}
/* END BEIT_SHIFA_BILLING_UNIFIED_V1 */


/* BEIT_SHIFA_BILLING_LAYOUT_FIX_V2 */
@media screen {
  body.bsh-billing-page {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: #f3f6fb !important;
    color: #172747 !important;
  }

  /* The administration sidebar is fixed at the right side.
     Reserve its space so invoice content is not drawn underneath it. */
  body.bsh-billing-page .wrap {
    display: block;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 16px 0 !important;
    padding: 0 16px !important;
  }

  @media (min-width: 1200px) {
    body.bsh-billing-page .wrap {
      --bsh-billing-sidebar-space: clamp(300px, 22.3vw, 390px);
      width: calc(100% - var(--bsh-billing-sidebar-space)) !important;
      max-width: none !important;
      margin: 16px var(--bsh-billing-sidebar-space) 16px 0 !important;
      padding: 0 14px !important;
    }
  }

  body.bsh-billing-page .wrap > .card,
  body.bsh-billing-page .wrap > form > .card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box !important;
    border: 1px solid #e1eaf5 !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 7px 23px rgba(23,44,99,.05) !important;
  }

  body.bsh-billing-page .wrap > .card:first-child {
    display: block;
    overflow-wrap: anywhere;
  }

  body.bsh-billing-page .wrap > .card:first-child h1,
  body.bsh-billing-page .wrap > .card:first-child h2 {
    margin-top: 0;
    color: #172c63 !important;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  /* Override the older local teal anchor rules on billing screens. */
  body.bsh-billing-page .wrap a:not(.secondary):not(.light):not(.pagination a) {
    background-color: #2879d8 !important;
    border-color: #2879d8 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
    border-radius: 9px !important;
    text-decoration: none !important;
  }

  body.bsh-billing-page .wrap button,
  body.bsh-billing-page .wrap input[type="submit"],
  body.bsh-billing-page .wrap a.btn {
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 9px !important;
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
    font-weight: 700;
  }

  body.bsh-billing-page .wrap .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  body.bsh-billing-page .wrap .grid > * {
    min-width: 0;
    max-width: 100%;
  }

  /* Keep wide tables inside their own card, rather than under the sidebar. */
  body.bsh-billing-page .wrap .card:has(table) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  body.bsh-billing-page .wrap table {
    width: 100%;
    max-width: 100%;
    min-width: 780px;
    table-layout: auto;
    border-collapse: collapse;
  }

  body.bsh-billing-page .wrap table th,
  body.bsh-billing-page .wrap table td {
    padding: 10px 9px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.8;
    vertical-align: middle;
  }

  body.bsh-billing-page .wrap .actions,
  body.bsh-billing-page .wrap .actions form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  body.bsh-billing-page .wrap .actions > *,
  body.bsh-billing-page .wrap .actions form button {
    max-width: 100%;
    white-space: nowrap;
  }

  body.bsh-billing-page .wrap .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  body.bsh-billing-page .wrap input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
  body.bsh-billing-page .wrap select,
  body.bsh-billing-page .wrap textarea {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  @media (max-width: 1199px) {
    body.bsh-billing-page .wrap {
      width: 100% !important;
      margin: 12px 0 !important;
      padding: 0 12px !important;
    }
  }

  @media (max-width: 650px) {
    body.bsh-billing-page .wrap {
      padding: 0 9px !important;
    }

    body.bsh-billing-page .wrap > .card,
    body.bsh-billing-page .wrap > form > .card {
      padding: 14px !important;
      border-radius: 12px !important;
    }

    body.bsh-billing-page .wrap .grid {
      grid-template-columns: minmax(0, 1fr);
    }

    body.bsh-billing-page .wrap table {
      min-width: 760px;
    }
  }
}
/* END BEIT_SHIFA_BILLING_LAYOUT_FIX_V2 */


/* BEIT_SHIFA_BILLING_SIDEBAR_OVERLAP_FIX_V3 */
@media screen and (min-width: 1200px) {
  body.bsh-billing-page {
    --bsh-billing-sidebar-width: clamp(320px, 22.5vw, 400px);
    overflow-x: hidden !important;
  }

  /*
   * Use auto width between explicit physical margins.
   * The right margin reserves the fixed admin sidebar and a visual gap.
   */
  body.bsh-billing-page .wrap {
    display: block !important;
    position: relative;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-top: 18px !important;
    margin-bottom: 18px !important;
    margin-left: 20px !important;
    margin-right: calc(var(--bsh-billing-sidebar-width) + 20px) !important;
    padding: 0 !important;
    float: none !important;
    transform: none !important;
  }

  body.bsh-billing-page .wrap > .card,
  body.bsh-billing-page .wrap > form,
  body.bsh-billing-page .wrap > form > .card {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.bsh-billing-page .wrap > .card:first-child {
    overflow-wrap: anywhere;
  }

  body.bsh-billing-page .wrap .card:has(table) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
  }

  body.bsh-billing-page .wrap table {
    max-width: 100% !important;
  }

  body.bsh-billing-page .wrap > .card:first-child,
  body.bsh-billing-page .wrap > form > .card:first-child {
    margin-top: 0 !important;
  }
}

/* Keep mobile/tablet layout usable when the sidebar collapses or overlays. */
@media screen and (max-width: 1199px) {
  body.bsh-billing-page .wrap {
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 12px 10px !important;
    padding: 0 !important;
  }
}

/* Preserve the invoice-only print layout. */
@media print {
  body.bsh-billing-page .wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
/* END BEIT_SHIFA_BILLING_SIDEBAR_OVERLAP_FIX_V3 */

