/* GLOBAL RESET */
* {
    font-family: Cairo, sans-serif;
}

body {
    font-family: "Cairo", sans-serif;
    background: #f4f6f9;
    color: #222;
    margin: 0;
    padding: 0;
    direction: rtl;
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 79, 108, 0.6) transparent;
}

#notify-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notify {
    min-width: 260px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    opacity: 0;
    transform: translateY(-10px);
    transition: all .4s ease;
}

.notify.show {
    opacity: 1;
    transform: translateY(0);
}

.notify.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #22c55e;
}

.notify.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.notify.info {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #38bdf8;
}

/* MAIN LAYOUT */

.layout {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
}


/* MAIN CONTENT — FIXED */

.main-content {
    flex: 1;
    background: #f3f7fc;
    min-height: 100vh;
    padding: 30px;
    overflow-x: auto;
    margin-right: 250px;
}




/* CONTENT WRAPPER */

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}


/* MEDIUM SCREENS */

@media (max-width: 1440px) {
    .main-content {
        padding: 20px;
    }
}


/* TABLES */


/* تثبيت رأس الجدول عند التمرير */


/* تثبيت رأس الجدول عند التمرير + تحسين الألوان */


/* FORMS */

input,
select,
textarea {
    width: 100%;
    border: 1px solid #ccd4dd;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}


/* BUTTONS */

.btn {
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #0d6efd;
    color: white;
}

.btn-success {
    background: #198754;
    color: white;
}

.btn-orange {
    background: #fd7e14;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}


/* RESPONSIVE TABLE FIX */

@media (max-width: 1366px) {

    table.table-basic th,
    table.table-basic td {
        font-size: 13px;
        padding: 6px 4px;
    }

    .btn {
        padding: 6px 8px;
        font-size: 13px;
    }
}

.btn-action {
    padding: 5px 8px;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    min-width: 32px;
}

.btn-action:hover {
    opacity: 0.85;
}

.btn-blue {
    background: #2563eb;
}

.btn-blue:hover {
    background: #1e40af;
}


/* Sticky Header */


/* Status Pill */

.status {
    padding: 4px 10px;
    border-radius: 6px;
    color: white;
    font-size: 13px;
}

.status.paid {
    background-color: #198754;
}

.status.partial {
    background-color: #fd7e14;
}

.status.unpaid {
    background-color: #dc3545;
}


/* Table Styling */

.btn-action:hover {
    opacity: 0.85;
}

/* يجعل المحتوى يملأ الشاشة بالكامل */
.main-content.full-width {
    margin-right: 260px;
    /* عرض السايدبار */
    padding: 20px 25px;
    width: calc(100% - 260px);
    min-height: 100vh;
}

/* موبايل */
@media (max-width: 991px) {
    .main-content.full-width {
        margin-right: 0;
        width: 100%;
    }
}