/* ===============================
   Global Layout / Sticky Footer
================================ */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    font-family: 'Tajawal', sans-serif;
}

/* يغلف محتوى الصفحة */
.page-wrap {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* منطقة المحتوى */
.page-content {
    flex: 1 0 auto;
    padding-bottom: 30px;
    min-height: calc(100vh - 190px);
}

/* الفوتر */
.site-footer {
    margin-top: auto;
    flex-shrink: 0;
}

/* ===============================
   Global
================================ */

h2 {
    letter-spacing: 0.3px;
}

/* ===============================
   Orders Table
================================ */

.orders-table {
    table-layout: fixed;
    width: 100%;
}

.orders-table th {
    white-space: nowrap;
}

.orders-table td {
    vertical-align: middle;
    white-space: nowrap;
}

/* ===============================
   Product Cell
================================ */

.product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 260px;
    overflow: hidden;
}

.product-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background-color: #f1f3f5;
    flex-shrink: 0;
}

.product-thumb.placeholder {
    display: block;
}

.product-info {
    overflow: hidden;
    max-width: 200px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===============================
   Prevent table break
================================ */

.table-responsive {
    overflow-x: auto;
}

/* ===============================
   Badges
================================ */

.badge {
    font-size: 0.8rem;
    padding: 6px 10px;
}

/* ===============================
   Dashboard Cards
================================ */

.dash-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #eef0f3;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    transition: all .2s ease;
}

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

.dash-number {
    font-size: 30px;
    font-weight: 800;
    color: #0d6efd;
}

.dash-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.dash-card-link .dash-card {
    transition: all .2s ease;
    cursor: pointer;
}

.dash-card-link:hover .dash-card {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* ===============================
   Responsive
================================ */

@media (max-width: 768px) {

    .product-info {
        max-width: 140px;
    }

    .page-content {
        padding-bottom: 22px;
    }

}

/* ===============================
   Saudi Riyal Symbol
================================ */

.money-value {
    display: inline-block;
    direction: ltr;
    unicode-bidi: isolate;
}

.saudi-riyal-symbol {
    width: 0.92em;
    height: 0.92em;
    display: inline-block;
    vertical-align: -0.12em;
    margin-inline-start: 3px;
    object-fit: contain;
}

.saudi-riyal-symbol-fallback {
    width: auto;
    height: auto;
    font-weight: 800;
    color: inherit;
    vertical-align: baseline;
    margin-inline-start: 4px;
}

.dpl-money{
    display:inline-flex;
    align-items:center;
    gap:4px;
    direction:ltr;
}