@font-face {
    font-family: 'Cairo';
    src: url("Cairo-Bold.woff2") format('woff2'),
          url("Cairo-Bold.woff") format('woff');
    font-weight: bold;
    font-style: normal;
}
body {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    background-color: #fafafa;
    direction: rtl; /* Ensure the whole page is RTL */
}

.sidebar {
    background-color: #343a40;
    color: #fff;
    height: 100%;
    width: 250px;
    position: fixed;
    bottom: 0;
    top:0;
    right: 0; /* Align sidebar to the right for RTL */
    z-index:100000;
    overflow-y: auto;
    transition: transform 0.3s ease;
    transform: translateX(0);
}

.sidebar.hidden {
    transform: translateX(250px); /* Hide sidebar on mobile */
}

.sidebar .brand {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #495057;
}

.sidebar a {
    color: #fff;
    display: block;
    border-bottom: 1px solid white;
    padding: 10px 15px;
    text-decoration: none;
    text-align: right; /* Align link text to the right */
}

.sidebar a:hover {
    background-color: #495057;
}

.header {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    height: 53px;
    top: 0;
    left:0;
    width: calc(100% - 250px); /* Full width minus sidebar width */
    z-index: 1000;
    transition: right 0.3s ease;
}

.user-info {
    background-color: #ffffff;
    color:#212529;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #dee2e6;
}


.header .btn-logout {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.header .btn-logout:hover {
    background-color: #c82333;
}

.header .btn-sidebar {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    display: none;
}

.header .btn-sidebar:hover {
    background-color: #0056b3;
}

.main-content {
    margin-top: 60px; /* Adjust margin to make space for the fixed header */
    margin-right: 250px; /* Adjust margin for RTL */
    padding: 20px;
    transition: margin-right 0.3s ease;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(250px); /* Hide sidebar on mobile */
        top:53px;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .user-info{
        display: none;
    }

    .header {
        right: 0; /* Full width on mobile */
        width: 100%; /* Full width on mobile */
    }

    .header .btn-sidebar {
        display: block;
    }

    .main-content {
        margin-right: 0; /* Adjust margin for RTL */
    }
}
main {
    display: flex;
    justify-content: center;
    align-items: center;
}
#reader {
    width: 600px;
}
#html5-qrcode-anchor-scan-type-change{
    display: none !important;
}
.btndanger{
    --bs-btn-padding-x: 0.75rem;
    --bs-btn-padding-y: 0.375rem;
    --bs-btn-font-family: ;
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 400;
    --bs-btn-line-height: 1.5;
    --bs-btn-color: #212529;
    --bs-btn-bg: transparent;
    --bs-btn-border-width: 1px;
    --bs-btn-border-color: transparent;
    --bs-btn-border-radius: 0.375rem;
    --bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
    --bs-btn-disabled-opacity: 0.65;
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);
    display: inline-block;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    font-family: var(--bs-btn-font-family);
    font-size: var(--bs-btn-font-size);
    font-weight: var(--bs-btn-font-weight);
    line-height: var(--bs-btn-line-height);
    color: var(--bs-btn-color);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
    border-radius: var(--bs-btn-border-radius);
    background-color: var(--bs-btn-bg);
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    --bs-btn-color: #fff;
    --bs-btn-bg: #0d6efd;
    --bs-btn-border-color: #0d6efd;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0a58ca;
    --bs-btn-active-border-color: #0a53be;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0d6efd;
    --bs-btn-disabled-border-color: #0d6efd;
}
.table-card {
    border: 1px solid #dee2e6; /* إطار خفيف حول الجدول */
    border-radius: 0.375rem; /* زوايا مستديرة تشبه تصميم البطاقة */
    overflow: hidden; /* لإخفاء أي تجاوز */
    background-color: #fff; /* خلفية بيضاء للجدول */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* ظل خفيف يشبه تصميم البطاقة */
}
.table-card thead {
    background-color: #007bff; /* خلفية زرقاء للرؤوس */
    color: #fff; /* نص أبيض للرؤوس */
}
.table-card thead th {
    font-weight: bold; /* تعزيز خط العناوين */
    padding: 12px; /* تباعد مناسب داخل رؤوس الأعمدة */
    border-bottom: 2px solid #0056b3; /* خط سفلي لتحديد الفاصل بين العناوين والبيانات */
}
.table-card tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* خلفية فاتحة للصفوف الزوجية */
}
.table-card tbody tr:hover {
    background-color: #e2e6ea; /* خلفية فاتحة عند التمرير بالماوس */
}
.table-card th, .table-card td {
    text-align: center;
    padding: 12px; /* تباعد مناسب داخل الخلايا */
}
.table-card th {
    font-weight: 600; /* تعزيز خط العناوين */
}
