.rem-wrapper {
    direction: rtl;
    color: #fff;
    width: 100%;
    max-width: 100%;
    display: block;
}

.rem-box {
    background: #12161c;
    border: 1px solid #2a2f38;
    border-radius: 16px;
    padding: 18px;
    margin: 20px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.rem-title {
    color: #fff;
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 20px;
}

.rem-box .form-control,
.rem-box .form-select,
.rem-box textarea {
    background: #1b222c;
    border: 1px solid #303744;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
}

.rem-box .form-control:focus,
.rem-box .form-select:focus,
.rem-box textarea:focus {
    background: #1b222c;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: none;
}

.rem-box .form-label,
.rem-box .form-check-label,
.rem-box small,
.rem-box .text-muted {
    color: #c7d0dd !important;
    font-size: 13px;
}

.entry-content .rem-wrapper,
.site-main .rem-wrapper,
.content-area .rem-wrapper,
.elementor-widget-container .rem-wrapper,
#primary .rem-wrapper,
main .rem-wrapper,
.rem-wrapper,
.rem-box,
#rem-public-results,
#rem-staff-results {
    width: 100% !important;
    max-width: 100% !important;
}

/* =========================
   عمومی
========================= */

#rem-public-results {
    width: 100%;
    max-width: 100%;
    display: block;
}

.rem-public-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 16px;
    width: 100%;
}

.rem-public-item {
    width: 100%;
    min-width: 0;
}

.rem-public-card {
    background: #1a1f26;
    border: 1px solid #333b47;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
    width: 100%;
    height: 100%;
}

.rem-public-image-wrap {
    width: 100%;
    height: 180px;
    background: #101418;
    overflow: hidden;
}

.rem-public-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rem-public-body {
    padding: 12px;
}

.rem-row-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.rem-row-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.rem-mini-box,
.rem-facilities-box {
    background: #171d24;
    border: 1px solid #38414f;
    border-radius: 12px;
    padding: 8px 9px;
    color: #fff;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-wrap: break-word;
    word-break: break-word;
}

.rem-mini-box span,
.rem-facilities-box span {
    font-size: 11px;
    color: #a8b3c2;
    margin-bottom: 3px;
    line-height: 1.5;
}

.rem-mini-box strong,
.rem-facilities-box strong {
    font-size: 13px;
    color: #fff;
    line-height: 1.7;
    font-weight: 700;
    word-break: break-word;
}

.rem-accent {
    border-color: #7b5f2d;
}

.rem-accent strong {
    color: #ffb37c;
}

.rem-green {
    border-color: #1d5d4c;
}

.rem-green strong {
    color: #58e0c1;
}

.rem-yes strong {
    color: #65d6a6;
}

.rem-no strong {
    color: #ff8d8d;
}

.rem-facilities-box {
    margin-bottom: 8px;
    min-height: 68px;
}

.rem-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.rem-actions .btn {
    border-radius: 10px;
    padding: 7px 14px;
    font-weight: 700;
    font-size: 13px;
}

.rem-no-image {
    background: #232a34;
    color: #d7dce4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100px;
    text-align: center;
    font-size: 13px;
}

/* =========================
   پرسنل - جدولی
========================= */

#rem-staff-results {
    width: 100%;
    max-width: 100%;
    display: block;
}

.rem-staff-table-card {
    background: #171c23;
    border: 1px solid #313845;
    border-radius: 14px;
    margin-bottom: 18px;
    overflow: hidden;
}

.rem-staff-table-head {
    padding: 12px 14px;
    background: #1f2630;
    border-bottom: 1px solid #313845;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rem-staff-table-head-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.rem-staff-table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rem-staff-table-actions .btn {
    border-radius: 9px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
}

.rem-staff-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.rem-staff-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.rem-staff-table th,
.rem-staff-table td {
    border: 1px solid #313845;
    padding: 10px 12px;
    font-size: 13px;
    color: #dbe3ef;
    vertical-align: top;
}

.rem-staff-table th {
    background: #202733;
    color: #9fb0c5;
    width: 140px;
    white-space: nowrap;
    font-weight: 700;
}

.rem-staff-table td {
    background: #171c23;
    line-height: 1.9;
}

.rem-staff-thumb-mini {
    width: 120px;
    height: 85px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    border: 1px solid #313845;
    background: #101418;
}

.rem-table-empty-image {
    width: 120px;
    height: 85px;
    border-radius: 10px;
    border: 1px solid #313845;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #b7c3d3;
    background: #101418;
}

.rem-modal-content {
    background: #10151b;
    color: #fff;
    border-radius: 16px;
    border: 1px solid #2d3440;
}

.rem-gallery-image {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    background: #000;
}

.rem-existing-image-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #39414c;
}

.rem-existing-image-box img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.rem-remove-existing-image {
    position: absolute;
    top: 5px;
    left: 5px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    line-height: 28px;
    text-align: center;
}

.alert {
    border-radius: 12px;
    font-size: 13px;
}

/* دسکتاپ متوسط */
@media (max-width: 1199px) {
    .rem-public-grid {
        grid-template-columns: 1fr;
    }
}

/* موبایل */
@media (max-width: 767px) {
    .rem-public-grid {
        grid-template-columns: 1fr;
    }

    .rem-public-image-wrap {
        height: 170px;
    }

    .rem-row-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rem-row-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .rem-mini-box,
    .rem-facilities-box {
        min-height: 54px;
        padding: 7px 6px;
    }

    .rem-mini-box span,
    .rem-facilities-box span {
        font-size: 10px;
    }

    .rem-mini-box strong,
    .rem-facilities-box strong {
        font-size: 11px;
        line-height: 1.5;
    }

    .rem-actions .btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    .rem-staff-table-head {
        padding: 10px;
    }

    .rem-staff-table-head-title {
        font-size: 13px;
    }
}
