body {
    font-family: 'Cairo', sans-serif;
    background: #f5f6fa;
    margin: 0;
    overflow-x: hidden;
    text-align: right;
}

.layout {
    display: flex;
    min-height: 100vh;
}

/* === Sidebar === */
.sidebar {
    width: 250px;
    background: #263238;
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    /* RTL */
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    padding-top: 20px;
}

.sidebar-logo {
    display: block;
    width: 60%;
    margin: 0 auto 20px auto;
    filter: invert(1);
}

.sidebar h2 {
    font-size: 20px;
    text-align: center;
    margin: 20px 0;
    color: #fff;
}

.sidebar a {
    color: #b0bec5;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: all .2s;
    border-right: 4px solid transparent;
}

.sidebar a:hover,
.sidebar a.active {
    background: #37474f;
    color: #fff;
    border-right: 4px solid #03A9F4;
}

/* === Content === */
.content {
    flex-grow: 1;
    margin-right: 250px;
    /* RTL */
    padding: 20px 30px;
}

.card {
    border: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.card-body {
    background: #fff;
    border-radius: 10px;
}

.navbar {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: 20px;
}

.navbar h5 {
    margin: 0;
    color: #263238;
    font-weight: 600;
}

/* === Buttons & Forms === */
.btn-primary {
    background: #03A9F4;
    border-color: #03A9F4;
}

.btn-primary:hover {
    background: #0288D1;
    border-color: #0288D1;
}

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

footer {
    text-align: center;
    color: #90A4AE;
    padding: 20px;
    font-size: 14px;
    direction: ltr;
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .content {
        margin-right: 200px;
    }
}

.form-control {
    padding: 0.1rem 0.75rem .375rem .75rem;
}

.table .thead-light th {
    color: #495057;
    background-color: #e9ecef;
    border-color: #dee2e6;
    padding: 13px 0;
    text-align: center;
}

.table .thead-light th {
    font-size: 15px;
}

.table td,
.table th {
    padding: 5px;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    font-size: 14px;
    text-align: center;
}

@page {
    size: 80mm auto;
    margin: 0;
}

.printBody {
    font-family: 'Cairo', 'Arial', sans-serif;
    direction: rtl;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #000;
    width: 80mm;
}

.receipt-container {
    width: 72mm;
    margin: 0 auto;
    padding: 5px 0;
    position: relative;
    overflow: hidden;
}

.printBody h2 {
    text-align: center;
    color: #000;
    font-size: 16px;
    margin-bottom: 5px;
}

.receipt-header {
    text-align: center;
    padding-top: 25px;
}

.receipt-header img {
    max-width: 120px;
    margin-bottom: 5px;
}

.receipt-header h3 {
    margin: 5px 0;
    color: #000;
    font-size: 14px;
}

.printBody table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
    border: 1px solid #c3c3c3;
}

.printBody th,
.printBody td {
    font-weight: bold;
    padding: 8px 5px;
    text-align: right;
    border: 1px solid #000;
    font-size: 13px;
    color: #000;
    background-color: transparent !important;
}

.printBody th {
    font-weight: bold;
    width: 35%;
}

.printBody .footer {
    text-align: center;
    margin-top: 10px;
    font-size: 10px;
    color: #000;
}

.StampCont {
    direction: ltr;
    margin-top: 15px;
    text-align: center;
}

.StampCont h2 {
    text-align: left;
    margin-left: 40px;
    margin-top: 10px;
    margin-bottom: 0px;
    font-size: 14px;
}

.StampCont p {
    display: inline-block;
    text-align: left;
    margin-left: 20px;
    border: 1px solid #000;
    border-radius: 50%;
    padding: 50px;
    margin-top: 0;
}

.StampCont img {
    width: 35%;
}

.watermark {
    width: 110px;
    max-width: 200px;
    pointer-events: none;
    margin-bottom: 20px;
}

.print-button {
    display: block;
    width: 100%;
    max-width: 150px;
    margin: 10px auto;
    padding: 5px;
    background-color: #000;
    color: white;
    text-align: center;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Cairo', 'Arial', sans-serif;
}

.print-button:hover {
    background-color: #333;
}

.whatsapp-button {
    display: block;
    width: 100%;
    max-width: 150px;
    margin: 10px auto;
    padding: 8px;
    background-color: #25D366;
    color: white;
    text-align: center;
    font-size: 13px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Cairo', 'Arial', sans-serif;
    font-weight: bold;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    color: white;
    text-decoration: none;
}

@media print {

    .print-button,
    .no-print {
        display: none;
    }

    .printBody {
        margin: 0;
        padding: 0;
    }
}