/* ==========================================================
   kafalat-classic.css
   ستايل صفحة الكفالات (التصميم القديم) فوق:
   common_style.css + style_v1.css + style-revamp.css
   يعتمد على متغيراتها: --main-color / --purple / --soft / --main-font
   ========================================================== */

:root {
    --kf-pink: #b22297;
    --kf-grad: linear-gradient(269deg, #481f66 0%, #7d48a0 100%);
}

body {
    background-color: var(--soft);
}

/* ---------------- Header ---------------- */
.kf-header {
    background: var(--kf-grad);
    height: 88px;
    color: #fff;
    position: relative;
    z-index: 20;
}

.kf-header__inner {
    max-width: 86%;
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.kf-logo img {
    height: 60px;
    display: block;
}

.kf-menu {
    display: flex;
    gap: 24px;
}

.kf-menu__item {
    position: relative;
}

.kf-menu__link {
    color: #fff;
    font-size: 15px;
    padding: 10px 0;
    display: block;
    transition: .4s;
}

.kf-menu__link:hover {
    color: var(--yellow);
}

.kf-submenu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 160px;
    background: #fff;
    border-radius: 6px;
    padding: 8px 0;
    box-shadow: 0 5px 15px #262d3314;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .4s;
}

.kf-menu__item:hover .kf-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.kf-submenu a {
    display: block;
    color: #4b5157;
    font-weight: 200;
    padding: 8px 16px;
    transition: .4s;
}

.kf-submenu a:hover {
    color: var(--main-color);
    background: #9567c62e;
}

.kf-cart {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.kf-cart:hover {
    color: var(--yellow);
}

.kf-cart__count {
    background: var(--kf-pink);
    border-radius: 45%;
    padding: 2px 9px;
    font-size: 12px;
    line-height: 20px;
}

.kf-burger {
    cursor: pointer;
    display: none;
    background: none;
    border: 0;
    width: 28px;
    height: 20px;
    padding: 0;
    flex-direction: column;
    justify-content: space-between;
}

.kf-burger span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: .4s;
}

/* ---------------- Page ---------------- */
.kf-page {
    padding-bottom: 50px;
    background: var(--soft);
}

.kf-wrap {
    max-width: 1137px;
    width: 84%;
    margin: 0 auto;
}

.kf-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--main-color);
    border-bottom: 1px solid var(--main-color);
    padding-bottom: 18px;
    margin: 51px 0 42px;
    padding-inline-end: 46px;
    background: url("https://classic.kaaf.bh/assets/images/plusMinus.png") no-repeat left 4px top 4px;
}

.kf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

/* ---------------- Card ---------------- */
.kf-card__title {
    font-size: 23px;
    font-weight: 600;
    color: #262d33;
    margin-bottom: 14px;
}

.kf-card__img {
    display: block;
    aspect-ratio: 359 / 245;
    overflow: hidden;
    border-radius: 8px;
}

.kf-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s ease;
}

.kf-card__img:hover img {
    transform: scale(1.14);
}

.kf-card__foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--kf-pink);
}

.kf-card__details {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    color: var(--purple);
    transition: .4s;
}

.kf-card__details:hover {
    color: var(--kf-pink);
}

.kf-amount {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #6c6c6c;
    border-radius: 13px;
    padding: 4px 8px;
}

.kf-amount input {
    width: 70px;
    border: 1px solid #bebebe;
    border-radius: 13px;
    padding: 6px 8px 4px;
    direction: ltr;
    font-size: 14px;
}

.kf-amount input::placeholder {
    color: #bebebe;
}

.kf-add {
    background: var(--main-color);
    color: #fff;
    border: 0;
    border-radius: 15px;
    padding: 7px 14px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.kf-add::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--kf-pink);
    z-index: -1;
    transform: scaleX(0);
    transition: transform .3s ease-out;
}

.kf-add:hover::before {
    transform: scaleX(1);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
    .kf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 776px) {
    .kf-header {
        height: 70px;
    }

    .kf-header__inner {
        max-width: 92%;
        gap: 16px;
    }

    .kf-logo img {
        height: 46px;
    }

    .kf-burger {
        display: flex;
        order: 3;
    }

    .kf-cart span:not(.kf-cart__count) {
        display: none;
    }

    .kf-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--main-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height .5s;
    }

    .kf-toggle:checked ~ .kf-header .kf-nav {
        max-height: 500px;
    }

    .kf-menu {
        flex-direction: column;
        gap: 0;
        padding: 10px 6%;
    }

    .kf-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
    }

    .kf-submenu a {
        color: #fff;
    }

    .kf-wrap {
        width: 92%;
    }

    .kf-title {
        font-size: 22px;
        margin: 30px 0;
    }

    .kf-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .kf-card__title {
        font-size: 20px;
    }
}

/* ==========================================================
   صفحات: categories / list-projects / orphan-details
   ========================================================== */

/* العنوان الفرعي (inner-head-sub) */
.kf-subtitle {
    font-size: 25px;
    font-weight: 600;
    color: #4d2b5f;
    border-bottom: 1px solid var(--kf-pink);
    padding-bottom: 18px;
    margin: 20px 0 17px;
    padding-inline-end: 46px;
    background: url("https://classic.kaaf.bh/assets/images/plusMinus.png") no-repeat left 4px top 4px;
}

.kf-title + .kf-subtitle {
    margin-top: 20px;
}

.kf-subtitle:last-of-type {
    margin-bottom: 30px;
}

/* قائمة الاختيار */
.kf-select {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.kf-select select {
    flex: 1;
    height: 55px;
    border: 1px solid #c2c2c2;
    border-radius: 5px;
    padding: 10px 5px;
    font-size: 14px;
    color: #535353;
    background: #fff;
}

.kf-select .kf-add {
    padding: 0 24px;
    font-size: 16px;
    border-radius: 15px;
}

/* تنبيه الكفالات الشهرية */
.kf-disclaimer {
    background: #fff;
    border-radius: 5px;
    padding: 10px 16px;
    margin-bottom: 18px;
    box-shadow: 0 3px 6px #00000014;
}

.kf-disclaimer p {
    color: #939699;
    font-size: 14px;
    line-height: 30px;
}

.kf-disclaimer a {
    color: var(--purple);
    text-decoration: underline;
    font-weight: 600;
}

/* جدول بيانات اليتيم داخل البطاقة */
.kf-orphan-form {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
    margin-top: 30px;
    color: #585858;
    line-height: 29px;
}

.kf-orphan-form td {
    border-bottom: 1px solid #545454;
    padding: 10px;
}

.kf-orphan-form td:last-child {
    text-align: left;
}

.kf-field input {
    text-align: right;
    border: 1px solid #bebebe;
    border-radius: 5px;
    height: 28px;
    width: 65px;
    padding: 5px;
}

.kf-card__foot--plain {
    border-bottom: 0;
    padding-bottom: 10px;
    margin-top: 15px;
}

/* صفحة التفاصيل */
.kf-box {
    background: #fff;
    padding: 16px;
    margin-bottom: 20px;
}

.kf-detail {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 30px;
    align-items: start;
}

.kf-detail__img img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.kf-detail__info .kf-card__title {
    margin-bottom: 10px;
}

.kf-info__row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: #f9f9f9;
    padding: 10px 14px;
    margin-bottom: 10px;
    color: #939699;
    line-height: 29px;
}

.kf-info__label {
    flex: 0 0 58%;
    text-align: right;
    padding-inline-start: 60px;
}

.kf-info__val {
    text-align: left;
}

@media (max-width: 1000px) {
    .kf-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 776px) {
    .kf-subtitle {
        font-size: 20px;
    }

    .kf-select {
        flex-direction: column;
    }

    .kf-select select {
        height: 50px;
    }

    .kf-select .kf-add {
        height: 44px;
    }

    .kf-info__row {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    .kf-info__label {
        padding-inline-start: 0;
        text-align: center;
    }

    .kf-info__val {
        text-align: center;
    }
}

/* ==========================================================
   Modal: تمت الإضافة في السلة
   ========================================================== */
.add-to-cart-modal {
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
}

.add-to-cart-modal .modal-overlay {
    opacity: .8;
}

.kf-modal__box {
    position: relative;
    z-index: 11;
    width: 263px;
    padding: 5px 20px 13px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px #262d3314;
    text-align: center;
}

.kf-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    line-height: 25px;
    font-size: 16px;
    font-weight: bold;
    color: #bcbfc2;
    background: none;
    border: 0;
    cursor: pointer;
}

.kf-modal__title {
    margin-top: 25px;
    color: #4b5157;
    font-weight: 700;
}

.kf-modal__name {
    margin-top: 10px;
    color: #4b5157;
}

.kf-modal__btn {
    display: block;
    width: 181px;
    height: 40px;
    line-height: 38px;
    margin: 10px auto;
    border-radius: 20px;
    border: 1px solid var(--kf-pink);
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: .3s;
}

.kf-modal__btn--primary {
    background: var(--kf-pink);
    color: #fff;
}

.kf-modal__btn--primary:hover {
    background: var(--main-color);
    border-color: var(--main-color);
}

.kf-modal__btn--ghost {
    background: #fff;
    color: var(--kf-pink);
}

.kf-modal__btn--ghost:hover {
    background: var(--kf-pink);
    color: #fff;
}

/* ==========================================================
   Pagination
   ========================================================== */
.kf-pagination {
    margin-top: 30px;
    direction: rtl;
}

.kf-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.kf-pagination li {
    margin-bottom: 10px;
}

.kf-pagination a {
    display: inline-block;
    padding: 4px 10px;
    line-height: 1.5em;
    border: 1px solid var(--kf-pink);
    border-radius: 15px;
    color: var(--kf-pink);
    text-decoration: none;
    cursor: pointer;
    transition: .3s;
}

.kf-pagination a:hover {
    background: #4d2b5f;
    border-color: #4d2b5f;
    color: #fff;
}

.kf-pagination a.page-current {
    background: var(--kf-pink);
    color: #fff;
    cursor: default;
}

.kf-pagination a.is-dots {
    cursor: default;
}

.kf-pagination a.is-dots:hover {
    background: transparent;
    border-color: var(--kf-pink);
    color: var(--kf-pink);
}

/* ==========================================================
   صفحة السلة
   ========================================================== */
.kf-cart-title {
    font-size: 22px;
    font-weight: 700;
    color: #4d2b5f;
    border-bottom: 1px solid #4d2b5f;
    padding-bottom: 14px;
    margin: 40px 0 12px;
}

.kf-cart-box {
    background: #fff;
    border-radius: 10px;
    padding: 10px 6px 30px;
    margin-bottom: 50px;
}

.kf-cart-empty {
    text-align: center;
    padding: 40px 0;
    color: #585858;
}

.kf-cart-empty a {
    color: var(--kf-pink);
    text-decoration: underline;
}

.kf-cart-scroll {
    overflow-x: auto;
}

.kf-cart-table {
    width: 98%;
    margin: 10px auto;
    background: #f6f5ff;
    border-radius: 10px;
    border-collapse: collapse;
    direction: rtl;
}

.kf-cart-table th {
    color: #4d2b5f;
    font-size: 16px;
    font-weight: 700;
    text-align: right;
    padding: 18px 10px;
    border-bottom: 1px solid #d9dadb;
}

.kf-cart-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e6e4f0;
    vertical-align: middle;
}

.kf-cart-table tfoot td {
    font-size: 18px;
    font-weight: 700;
    color: #444;
    border-bottom: 0;
    padding: 18px 10px;
}

/* رقم الصف بعدّاد CSS */
.kf-cart-table tbody {
    counter-reset: kfrow;
}

.kf-cart-table tbody tr {
    counter-increment: kfrow;
}

.kf-cart-num::before {
    content: counter(kfrow);
}

.kf-cart-input {
    width: 80px;
    border: 1px solid #bebebe;
    border-radius: 13px;
    padding: 6px 8px 4px;
    text-align: center;
    direction: ltr;
    background: #fff;
}

.kf-cart-remove {
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 18px;
    color: #585858;
}

.kf-cart-remove:hover {
    color: var(--kf-pink);
}

.kf-cart-error {
    color: #c0392b;
    font-size: 13px;
    margin: 4px 0 0;
}

/* نموذج بيانات المتبرع */
.kf-cart-form {
    width: 85%;
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 14px;
}

.kf-cart-form .full {
    grid-column: 1 / -1;
}

.kf-cart-field label {
    display: block;
    margin-bottom: 6px;
    color: #444;
    font-size: 14px;
}

.kf-cart-field input,
.kf-cart-field select,
.kf-cart-field textarea {
    width: 100%;
    border: 1px solid #bebebe;
    border-radius: 5px;
    padding: 9px 10px;
    background: #fff;
}

.kf-cart-field textarea {
    height: 130px;
}

.kf-cart-phone {
    display: flex;
    gap: 6px;
    direction: ltr;
}

.kf-cart-phone select {
    width: 86px;
    flex: none;
    padding: 9px 4px;
    text-align: center;
}

.kf-cart-submit {
    background: var(--kf-pink);
    color: #fff;
    border: 0;
    border-radius: 20px;
    padding: 9px 36px;
    font-size: 16px;
    cursor: pointer;
    transition: .3s;
}

.kf-cart-submit:hover {
    background: #4d2b5f;
}

@media (max-width: 776px) {
    .kf-cart-form {
        width: 94%;
        grid-template-columns: 1fr;
    }
}

/* ===== سلة التبرع على الجوال: بطاقات بدل جدول ===== */
@media (max-width: 776px) {
    .kf-cart-scroll {
        overflow-x: visible;
    }

    .kf-cart-table {
        width: 100%;
        display: block;
        background: transparent;
        border-radius: 0;
        margin: 10px 0;
    }

    .kf-cart-table thead {
        display: none;
    }

    .kf-cart-table tbody,
    .kf-cart-table tfoot {
        display: block;
    }

    .kf-cart-table tbody tr {
        display: block;
        position: relative;
        background: #f6f5ff;
        border-radius: 10px;
        padding: 12px 14px;
        margin-bottom: 12px;
    }

    .kf-cart-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 9px 0;
        border-bottom: 1px dashed #ded9ef;
        text-align: right;
    }

    .kf-cart-table tbody td::before {
        content: attr(data-label);
        flex: none;
        color: #4d2b5f;
        font-weight: 700;
        font-size: 14px;
    }

    /* ترويسة البطاقة: رقم البند */
    .kf-cart-table tbody td.kf-cart-num {
        padding: 0 0 10px;
        border-bottom: 1px solid #d3cfe4;
        font-weight: 700;
        color: #4d2b5f;
    }

    .kf-cart-table tbody td.kf-cart-num::before {
        content: 'البند ' counter(kfrow);
        font-size: 15px;
    }

    /* اسم المشروع يأخذ سطراً كاملاً */
    .kf-cart-table tbody td.kf-cart-name {
        display: block;
        font-weight: 600;
        color: #2e2e2e;
        padding-top: 10px;
    }

    .kf-cart-table tbody td.kf-cart-name::before {
        display: block;
        margin-bottom: 4px;
        font-size: 13px;
        font-weight: 400;
        color: #7d7490;
    }

    /* إخفاء الحقول غير المتاحة للتصنيفات */
    .kf-cart-table tbody td.kf-cart-na {
        display: none;
    }

    /* الإجمالي مبرز */
    .kf-cart-table tbody td.kf-cart-total {
        border-bottom: 0;
        padding-bottom: 0;
        font-size: 17px;
        color: #4d2b5f;
    }

    /* زر الحذف في زاوية البطاقة */
    .kf-cart-table tbody td.kf-cart-actions {
        position: absolute;
        top: 8px;
        left: 12px;
        padding: 0;
        border: 0;
        display: block;
    }

    .kf-cart-table tbody td.kf-cart-actions::before {
        content: none;
    }

    .kf-cart-remove {
        font-size: 22px;
        line-height: 1;
        padding: 4px 8px;
    }

    .kf-cart-input {
        width: 110px;
    }

    /* المجموع */
    .kf-cart-table tfoot tr {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #4d2b5f;
        border-radius: 10px;
        padding: 14px 16px;
    }

    .kf-cart-table tfoot td {
        display: block;
        padding: 0;
        border: 0;
        color: #fff;
        font-size: 17px;
    }
}

/* ===== الإيصال ===== */
.kf-receipt-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 850px;
    margin: 0 auto 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.kf-receipt-head {
    text-align: center;
    border-bottom: 2px solid var(--kf-pink);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.kf-receipt-head h2 {
    color: #4d2b5f;
    margin: 0 0 6px;
}

.kf-receipt-head p {
    margin: 0;
    color: #555;
}

.kf-receipt-table {
    width: 100%;
    border-collapse: collapse;
}

.kf-receipt-table th,
.kf-receipt-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

.kf-receipt-table th {
    background: #f5f0f8;
    color: #4d2b5f;
}

.kf-receipt-table tfoot td {
    font-weight: bold;
    background: #faf7fc;
}

.kf-receipt-info {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.kf-receipt-info > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed #ddd;
}

.kf-receipt-info > div > span:first-child {
    color: #666;
}

.kf-receipt-info .full {
    grid-column: 1 / -1;
}

.kf-receipt-ok {
    color: #2e7d32;
    font-weight: bold;
}

.kf-receipt-actions {
    text-align: center;
    margin-top: 26px;
}

@media (max-width: 776px) {
    .kf-receipt-box {
        padding: 16px;
    }

    .kf-receipt-info {
        grid-template-columns: 1fr;
    }
}

/* الطباعة: نخفي الهيدر والفوتر والأزرار */
@media print {
    .kf-header,
    .main-footer,
    .add-to-cart-modal,
    .kf-no-print {
        display: none !important;
    }

    .kf-receipt-box {
        box-shadow: none;
        padding: 0;
    }
}

/* ===== صفحة سداد الأقساط ===== */

/* مقاسات موحدة: 13 للعناوين الصغيرة، 15 للمحتوى، 17 للعناوين */
.kf-dues-group,
.kf-dues-toolbar,
.kf-dues-hint,
.kf-dues-stats {
    font-size: 15px;
    color: #333;
}

.kf-dues-group input,
.kf-dues-toolbar input {
    font-family: inherit;
}

.kf-dues-hello {
    text-align: center;
    color: #585858;
    font-size: 16px;
    margin: 24px 0 18px;
}

/* الملخص */
.kf-dues-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 520px;
    margin: 0 auto 24px;
}

.kf-dues-stat {
    background: #f6f5ff;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.kf-dues-stat strong {
    display: block;
    font-size: 24px;
    color: #4d2b5f;
}

.kf-dues-stat span {
    color: #777;
    font-size: 14px;
}

/* تحديد الكل + سطر التوضيح */
.kf-dues-toolbar {
    width: 92%;
    margin: 0 auto 6px;
}

.kf-dues-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
}

.kf-dues-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--kf-pink);
}

.kf-dues-hint {
    width: 92%;
    margin: 0 auto 14px;
    font-size: 14px;
    color: #777;
}

/* مجموعة الكفالة */
.kf-dues-group {
    width: 92%;
    margin: 0 auto 16px;
    border: 1px solid #e6e4f0;
    border-radius: 10px;
    overflow: hidden;
}

.kf-dues-grouphead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: #f6f5ff;
}

.kf-dues-grouphead h3 {
    margin: 0;
    padding: 0;
    background: none;
    font-size: 17px;
    font-weight: 700;
    color: #4d2b5f;
}

.kf-dues-extra {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #4d2b5f;
}

/* حقول الإدخال (الأشهر الإضافية + الصدقة) */
.kf-dues-extra input,
.kf-dues-sadaqa-field input {
    padding: 6px 8px;
    border: 1px solid #d9d5e6;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    color: #333;
    background: #fff;
}

.kf-dues-extra input {
    width: 70px;
}

.kf-dues-sadaqa-field input {
    width: 90px;
}

.kf-dues-extra input:disabled {
    background: #f1f0f5;
    cursor: not-allowed;
}

/* الجدول */
.kf-dues-tablewrap {
    overflow-x: auto;
}

.kf-dues-table {
    width: 100%;
    min-width: 540px;
    border-collapse: collapse;
}

.kf-dues-table th {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #777;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.kf-dues-table td {
    padding: 10px 12px;
    font-size: 15px;
    color: #333;
    border-top: 1px solid #f0eef6;
    vertical-align: middle;
}

.kf-dues-table tbody tr:hover {
    background: #faf8ff;
}

.kf-dues-table .num {
    font-weight: 700;
    white-space: nowrap;
}

.kf-dues-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--kf-pink);
}

.kf-dues-table input[type="checkbox"]:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.kf-dues-none {
    text-align: center;
    color: #888;
}

/* حالة القسط */
.kf-dues-tag {
    display: inline-block;
    font-size: 13px;
    border-radius: 10px;
    padding: 2px 10px;
    background: #eaf6ec;
    color: #2e7d32;
}

.kf-dues-tag.late {
    background: #fdecea;
    color: #c0392b;
}

/* شريط الإجمالي والدفع */
.kf-dues-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 20px;
    background: #fff;
    border-top: 1px solid #e6e4f0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, .06);
}

.kf-dues-bar .sum {
    font-size: 18px;
    font-weight: 700;
    color: #4d2b5f;
}

.kf-cart-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.kf-dues-note {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin: 14px 0 0;
}

/* الجوال: كل قسط يصير بطاقة بدون سحب جانبي */
@media (max-width: 776px) {
    .kf-dues-group,
    .kf-dues-toolbar,
    .kf-dues-hint {
        width: 96%;
    }

    .kf-dues-stat strong {
        font-size: 20px;
    }

    .kf-dues-bar {
        flex-direction: column;
    }

    .kf-dues-table {
        min-width: 0;
    }

    .kf-dues-table thead {
        display: none;
    }

    .kf-dues-table,
    .kf-dues-table tbody,
    .kf-dues-table tr {
        display: block;
        width: 100%;
    }

    .kf-dues-table tr {
        padding: 10px 14px;
        border-top: 1px solid #e6e4f0;
    }

    .kf-dues-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 6px 0;
        border: 0;
    }

    /* اسم العمود بجانب كل قيمة */
    .kf-dues-table td::before {
        content: attr(data-label);
        font-size: 13px;
        font-weight: 600;
        color: #777;
    }

    .kf-dues-table td.kf-dues-none {
        justify-content: center;
    }

    .kf-dues-sadaqa-field {
        flex-wrap: wrap;
    }
}

input,
select,
textarea,
.kf-cart-input,
.kf-cart-field input,
.kf-cart-field select,
.kf-cart-field textarea {
    font-size: 16px;
}
