/* ===============================
   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;
}

/* ===============================
   Lazi Brand / Authentication
================================ */
:root {
    --lazi-blue: #0D6EFD;
    --lazi-blue-dark: #075EDB;
    --lazi-yellow: #FFC107;
    --lazi-text: #0F172A;
    --lazi-muted: #64748B;
    --lazi-border: #E2E8F0;
}

.lazi-auth-section {
    display: flex;
    justify-content: center;
    padding: 12px 0 22px;
}

.lazi-auth-card {
    width: min(100%, 520px);
    max-width: 520px;
    margin-inline: auto;
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 26px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .09);
    padding: 28px;
}

.lazi-auth-brand {
    text-align: center;
    margin-bottom: 20px;
}

.lazi-auth-logo {
    display: block;
    width: auto;
    height: 96px;
    max-width: min(180px, 58vw);
    max-height: 96px;
    object-fit: contain;
    flex: 0 0 auto;
    margin: 0 auto 14px;
}

.lazi-auth-title {
    margin: 0;
    color: var(--lazi-text);
    font-size: 1.6rem;
    font-weight: 800;
}

.lazi-auth-subtitle {
    margin: 7px 0 0;
    color: var(--lazi-muted);
    line-height: 1.8;
}

.lazi-auth-card .form-label {
    font-weight: 700;
    color: #27364a;
}

.lazi-auth-card .form-control {
    min-height: 48px;
    border-radius: 14px;
    border-color: #d8e2ee;
}

.lazi-auth-card .form-control:focus {
    border-color: var(--lazi-blue);
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
}

.lazi-auth-card .btn-primary {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 800;
    background: var(--lazi-blue);
    border-color: var(--lazi-blue);
}

.lazi-auth-card .btn-primary:hover {
    background: var(--lazi-blue-dark);
    border-color: var(--lazi-blue-dark);
}

.lazi-auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: .95rem;
}

.lazi-auth-links a {
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 576px) {
    .lazi-auth-section { padding-top: 0; }
    .lazi-auth-card { padding: 22px 18px; border-radius: 22px; }
    .lazi-auth-logo { height: 82px; }
    .lazi-auth-title { font-size: 1.42rem; }
    .lazi-auth-links { justify-content: center; text-align: center; }
}
