:root {
    --chs-main: #294f69;
    --chs-main-dark: #1c374a;
    --chs-main-light: #3d6f8f;
    --chs-accent: #c9a227;
    --chs-accent-light: #e2c465;
    --chs-bg: #f4f6f9;
    --chs-ink: #16232d;
    --chs-footer-bg: #1c374a;
    --chs-footer-text: #aebac4;
    --chs-option-selected: #d6564c;
}


@font-face {
    font-family: 'BrandoArabic';
    src: url('/_layouts/15/Surveys2026/content/fonts/Brando-Arabic.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    font-family: 'BrandoArabic', 'Segoe UI', Tahoma, sans-serif !important;
}

body {
    font-family: 'BrandoArabic', 'Segoe UI', Tahoma, sans-serif !important;
    background-color: var(--chs-bg);
    color: #26333f;
    overflow: auto !important;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

div#ms-designer-ribbon {
    display: none;
}


.s4-notdlg {
    display: none;
}

a {
    transition: color .15s ease;
    font-family: 'BrandoArabic', 'Segoe UI', Tahoma, sans-serif !important;
}

.btn, .form-control, .form-select {
    border-radius: 8px;
}

.btn {
    font-weight: 700;
}

    .btn:focus-visible,
    .nav-link:focus-visible,
    a:focus-visible {
        outline: 2px solid var(--chs-accent);
        outline-offset: 2px;
    }

/* ---------- الشعار المميز ---------- */
.chs-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(155deg, var(--chs-accent-light), var(--chs-accent));
    color: var(--chs-main-dark);
    font-size: 1.2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

    .chs-badge.chs-badge-sm {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

/* ---------- الترويسة العلوية ---------- */
.chs-navbar {
    background: linear-gradient(120deg, var(--chs-main) 0%, var(--chs-main-dark) 100%);
    border-bottom: 3px solid var(--chs-accent);
    box-shadow: 0 2px 14px rgba(12, 26, 36, .18);
    padding-top: .65rem;
    padding-bottom: .65rem;
}

.chs-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.chs-navbar .navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.chs-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.chs-brand-title {
    font-weight: 800;
    color: #fff;
    font-size: 1.05rem;
}

.chs-brand-sub {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .7);
}

.chs-navbar .btn-outline-light {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.chs-navbar .navbar-user {
    color: rgba(255, 255, 255, .85);
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

/* ---------- الشريط الجانبي ---------- */
.chs-sidebar {
    background-color: #fff;
    border-left: 1px solid #e3e7ec;
    min-height: calc(100vh - 56px);
}

.chs-sidebar-heading {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #9aa7b2;
    text-transform: uppercase;
    padding: 0 .75rem;
    margin-bottom: .5rem;
}

.chs-sidebar .nav-link {
    color: #40505e;
    border-radius: 8px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: .6rem;
}

    .chs-sidebar .nav-link i {
        font-size: 1.05rem;
        width: 1.25em;
        text-align: center;
        color: #8b9aa6;
    }

    .chs-sidebar .nav-link.active,
    .chs-sidebar .nav-link:hover {
        background-color: var(--chs-bg);
        color: var(--chs-main);
        font-weight: 700;
    }

        .chs-sidebar .nav-link.active i,
        .chs-sidebar .nav-link:hover i {
            color: var(--chs-accent);
        }

/* ---------- التذييل ---------- */
.chs-footer {
    background: var(--chs-footer-bg);
    color: var(--chs-footer-text);
    border-top: 3px solid var(--chs-accent);
    margin-top: 3rem;
    padding: 2.25rem 0 1.25rem;
}

    .chs-footer a {
        color: var(--chs-footer-text);
        text-decoration: none;
    }

        .chs-footer a:hover {
            color: #fff;
        }

.chs-footer-brand {
    /*display: flex;
    align-items: center;
    gap: .6rem;*/
    margin-bottom: .6rem;
    text-align: center;
}

.chs-footer-logo {
    display: inline-block;
    height: 64px;
}

.chs-footer-title {
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
}

.chs-footer-tagline {
    font-size: .82rem;
    color: var(--chs-footer-text);
    max-width: 26rem;
}

.chs-footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .9rem;
}

.chs-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .chs-footer-links li {
        margin-bottom: .55rem;
        font-size: .875rem;
    }

    .chs-footer-links i {
        width: 1.1em;
        display: inline-block;
        color: var(--chs-footer-text);
        margin-left: 3px;
    }

.chs-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.75rem;
    list-style: none;
    padding: 0;
    margin: .5rem 0 0;
    font-size: .875rem;
}

.chs-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 1.75rem;
    padding-top: 1rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, .5);
}

.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(41, 79, 105, .07);
    transition: box-shadow .15s ease;
}

    .card:hover {
        box-shadow: 0 6px 22px rgba(41, 79, 105, .12);
    }

.btn-primary {
    background-color: var(--chs-main);
    border-color: var(--chs-main);
}

    .btn-primary:hover, .btn-primary:focus {
        background-color: var(--chs-main-dark);
        border-color: var(--chs-main-dark);
    }

.chs-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--chs-bg);
    color: var(--chs-main);
    font-size: 1.3rem;
    margin-bottom: .75rem;
}

.badge-status-draft {
    background-color: #9aa4ad;
}

.badge-status-active {
    background-color: #2e8b57;
}

.badge-status-inactive {
    background-color: #b23b3b;
}

.badge-status-ended {
    background-color: #5a6b78;
}

.badge-status-notstarted {
    background-color: var(--chs-main-light);
}

/* ---------- تصنيفات الاستبيان (شارة + أزرار تصفية) ---------- */
.chs-badge-category {
    background-color: var(--chs-main-light);
}

.chs-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.chs-pill {
    display: inline-block;
    padding: .4rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbe1e7;
    color: #40505e;
    font-weight: 600;
    font-size: .875rem;
    text-decoration: none;
}

    .chs-pill:hover {
        border-color: var(--chs-main-light);
        color: var(--chs-main);
    }

    .chs-pill.active {
        background: var(--chs-main);
        border-color: var(--chs-main);
        color: #fff;
    }

/* ---------- تقييم النجوم (CSS فقط، بدون جافاسكربت) ---------- */
.chs-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

    .chs-star-rating input {
        display: none;
    }

    .chs-star-rating label {
        font-size: 2.3rem;
        color: #d8dde2;
        cursor: pointer;
        transition: color .15s;
    }

        .chs-star-rating input:checked ~ label,
        .chs-star-rating label:hover,
        .chs-star-rating label:hover ~ label {
            color: var(--chs-accent);
        }

/* ---------- عناصر شرطية ---------- */
.chs-conditional {
    display: none;
}

    .chs-conditional.chs-visible {
        display: block;
    }

/* ---------- جدول الأسئلة من نوع Matrix ---------- */
.chs-matrix-table {
    width: 100%;
}

    .chs-matrix-table th, .chs-matrix-table td {
        text-align: center;
        vertical-align: middle;
    }

        .chs-matrix-table th:first-child, .chs-matrix-table td:first-child {
            text-align: right;
        }

/* ---------- بناء الاستبيان في لوحة التحكم ---------- */
.chs-builder-section {
    border: 1px solid #e3e7ec;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fbfcfd;
}

.chs-chart-box {
    max-width: 320px;
    margin: 0 auto;
}

/* ---------- نافذة منبثقة (تصنيفات إلخ) ---------- */
.chs-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 40, .55);
    z-index: 1050;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 3rem 1rem;
}

    .chs-modal-backdrop.show {
        display: flex;
    }

.chs-modal-dialog {
    max-width: 600px;
    width: 100%;
}

.chs-modal-content {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}

.chs-modal-header, .chs-modal-footer {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
}

.chs-modal-header {
    justify-content: space-between;
    border-bottom: 1px solid #e3e7ec;
}

.chs-modal-footer {
    justify-content: flex-end;
    gap: .5rem;
    border-top: 1px solid #e3e7ec;
}

.chs-modal-body {
    padding: 1.25rem;
    max-height: 65vh;
    overflow-y: auto;
}

.chs-modal-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6c7a86;
}

.chs-tab-pane {
    display: none;
}

/* ---------- الترويسة العلوية (الموقع العام) ---------- */
.chs-topbar {
    background: linear-gradient(120deg, var(--chs-main) 0%, var(--chs-main-dark) 100%);
    border-bottom: 3px solid var(--chs-accent);
    box-shadow: 0 2px 14px rgba(12, 26, 36, .18);
    padding: 1.6rem 0;
    background: url(https://chamber.sa/Style%20Library/ar-sa/Custom/Design/images/header-bg.jpg) center no-repeat;
    background-size: cover;
}

.chs-topbar-brand {
    display: flex;
    align-items: center;
}

.chs-topbar-logo {
    height: 52px;
    display: block;
}

.chs-topbar-utility {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.35rem;
}

.chs-util-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: rgba(255, 255, 255, .9);
    font-size: .85rem;
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
    text-decoration: none;
    cursor: pointer;
}

    .chs-util-item:hover,
    .chs-util-item:focus {
        color: #fff;
    }

.chs-util-dropdown {
    position: relative;
}

.chs-util-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    padding: .5rem;
    margin-top: .6rem;
}

    .chs-util-menu .dropdown-item {
        border-radius: 6px;
        font-size: .875rem;
        padding: .5rem .75rem;
    }

.chs-util-staff {
    padding-inline-start: 1.35rem;
    border-inline-start: 1px solid rgba(255, 255, 255, .25);
}

@media (max-width: 767.98px) {
    .chs-topbar-utility {
        gap: .8rem;
    }

    .chs-util-item {
        font-size: .78rem;
    }

    .chs-util-staff {
        padding-inline-start: .8rem;
    }
}

/* ---------- بطاقة تعبئة الاستبيان ---------- */
.chs-survey-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.chs-survey-card {
    border-radius: 18px;
}

.chs-survey-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--chs-ink);
    margin-bottom: .6rem;
}

.chs-title-underline {
    width: 70px;
    height: 4px;
    background: var(--chs-accent);
    border-radius: 2px;
    margin-bottom: 1.25rem;
}

.chs-survey-intro {
    margin-bottom: 1.5rem;
}

.chs-section {
    border: 1px solid #ccc;
    background: #d8e1e7;
    padding: 0 15px;
    margin: 15px 0;
    border-radius: 3px;
}

    .chs-section + .chs-section {
        padding-top: 1.5rem;
        border-top: 1px solid #e7ebef;
    }

.chs-section-title {
    margin-bottom: 1.25rem;
    font-size: 25px;
    text-align: center;
    font-weight: bold;
    background: #d4d7e3;
    padding: 18px 0;
    color: #ffe875;
    background: #294f69;
}

.chs-question-block {
    background: #fff;
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}



.chs-question-label {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--chs-ink);
    margin-bottom: 1rem;
    display: block;
}

.chs-question-num {
    color: var(--chs-main);
    font-weight: 700;
    margin-inline-end: .25rem;
}

.chs-question-note {
    color: #6c7a86;
    font-size: .85rem;
    margin-top: -.5rem;
    margin-bottom: .85rem;
}

.chs-choice-group {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.chs-choice {
    position: relative;
}

.chs-choice-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.chs-choice label {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--chs-main);
    color: #fff;
    font-weight: 500;
    padding: 15px;
    border-radius: 3px;
    margin: 0;
    cursor: pointer;
    transition: background-color .15s ease;
}

    .chs-choice label::before {
        content: "";
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        border: 2px solid rgba(255, 255, 255, .85);
        border-radius: 4px;
        background: transparent;
        transition: background-color .15s ease, box-shadow .15s ease;
    }

.chs-choice-input[type="radio"] ~ label::before {
    border-radius: 50%;
}

.chs-choice label:hover {
    background: var(--chs-main-light);
}

.chs-choice-input:checked ~ label {
    background: var(--chs-option-selected);
}

    .chs-choice-input:checked ~ label::before {
        background: #fff;
        border-color: #fff;
        box-shadow: inset 0 0 0 3px var(--chs-option-selected);
    }

.chs-choice-input:focus-visible ~ label {
    outline: 2px solid var(--chs-accent);
    outline-offset: 2px;
}

.chs-submit-btn {
    margin-top: 1rem;
}

/* ---------- تحقق جانب العميل من الأسئلة الإلزامية ---------- */
.chs-question-block.chs-has-error .chs-question-label {
    color: var(--chs-option-selected);
}

.chs-question-block.chs-has-error .form-control,
.chs-question-block.chs-has-error .form-select {
    border-color: var(--chs-option-selected);
}

.chs-question-block.chs-has-error .chs-choice label {
    box-shadow: 0 0 0 2px var(--chs-option-selected) inset;
}

.chs-question-block.chs-has-error .chs-star-rating,
.chs-question-block.chs-has-error .chs-matrix-table,
.chs-question-block.chs-has-error .chs-textmatrix {
    outline: 2px solid var(--chs-option-selected);
    outline-offset: 6px;
    border-radius: 8px;
}

.chs-field-error {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--chs-option-selected);
    font-size: .82rem;
    font-weight: 600;
    margin-top: .6rem;
}

/* ---------- تحقق جانب العميل من نموذج تسجيل الدخول ---------- */
.chs-login-field.chs-has-error .form-label {
    color: var(--chs-option-selected);
}

.chs-login-field.chs-has-error .form-control {
    border-color: var(--chs-option-selected);
}

/* ---------- حقل التاريخ (تقويم ميلادي، dd/MM/yyyy) ---------- */
.chs-datefield {
    position: relative;
}

    .chs-datefield input.chs-datepicker {
        padding-inline-end: 2.3rem;
        padding-inline-start: 2.1rem;
    }

.chs-datefield-icon {
    position: absolute;
    top: 50%;
    inset-inline-end: .85rem;
    transform: translateY(-50%);
    color: #93a2ac;
    pointer-events: none;
    font-size: .95rem;
}

.chs-datefield-clear {
    position: absolute;
    top: 50%;
    inset-inline-start: .55rem;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #c3ccd3;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    font-size: .95rem;
}

    .chs-datefield-clear:hover {
        color: var(--chs-main);
    }

/* ---------- صفحة تحرير الاستبيان (لوحة التحكم) ---------- */
.chs-edit-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #5a6b78;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
}

    .chs-edit-back:hover {
        color: var(--chs-main);
    }

.chs-edit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chs-status-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .85rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
}

    .chs-status-pill.badge-status-draft {
        background: #9aa4ad;
    }

    .chs-status-pill.badge-status-active {
        background: #2e8b57;
    }

    .chs-status-pill.badge-status-inactive {
        background: #b23b3b;
    }

.chs-edit-tabs {
    display: inline-flex;
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 12px;
    padding: .3rem;
    gap: .25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(41, 79, 105, .06);
}

.chs-edit-tab {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1.15rem;
    border-radius: 9px;
    font-weight: 700;
    font-size: .875rem;
    color: #5a6b78;
    text-decoration: none;
    border: none;
    background: none;
    transition: background-color .15s ease, color .15s ease;
}

    .chs-edit-tab:hover {
        background: var(--chs-bg);
        color: var(--chs-main);
    }

    .chs-edit-tab.active {
        background: var(--chs-main);
        color: #fff;
    }

.chs-edit-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(41, 79, 105, .08);
    padding: 1.75rem;
}

@media (max-width: 575.98px) {
    .chs-edit-card {
        padding: 1.25rem;
    }
}

.chs-form-section + .chs-form-section {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid #eef1f4;
}

.chs-form-section-title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--chs-main);
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.15rem;
}

.chs-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--chs-bg);
    border-radius: 10px;
    padding: .85rem 1rem;
}

    .chs-toggle-row label {
        margin: 0;
        font-weight: 600;
        font-size: .875rem;
        color: #40505e;
    }

.chs-edit-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eef1f4;
}

/* بناء الأقسام والأسئلة */
.chs-builder-section {
    background: #fff;
    border: 1px solid #e9edf1;
    border-inline-start: 4px solid var(--chs-main-light);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 2px 10px rgba(41, 79, 105, .05);
}

.chs-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--chs-bg);
    color: var(--chs-main);
    font-weight: 700;
    font-size: .8rem;
    flex-shrink: 0;
}

.chs-question-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    padding: .75rem .9rem;
    border-radius: 10px;
    background: var(--chs-bg);
    margin-bottom: .5rem;
}

    .chs-question-row:last-child {
        margin-bottom: 0;
    }

.chs-qtype-badge {
    background: var(--chs-main-light);
    color: #fff;
    font-weight: 600;
    font-size: .72rem;
    padding: .3rem .65rem;
    border-radius: 999px;
}

.chs-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 8px;
    border: 1px solid #dbe1e7;
    background: #fff;
    color: #5a6b78;
    cursor: pointer;
    transition: all .15s ease;
}

    .chs-icon-btn:hover {
        background: var(--chs-main);
        border-color: var(--chs-main);
        color: #fff;
    }

    .chs-icon-btn.chs-icon-btn-danger:hover {
        background: #b23b3b;
        border-color: #b23b3b;
    }

/* الشروط */
.chs-rule-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    padding: .85rem 1rem;
    border-radius: 10px;
    background: var(--chs-bg);
    margin-bottom: .6rem;
}

    .chs-rule-row:last-child {
        margin-bottom: 0;
    }

.chs-rule-arrow {
    color: var(--chs-accent);
    font-size: 1.1rem;
}

/* ---------- جدول متجاوب: يتحول إلى بطاقات مكدّسة في الشاشات الصغيرة ---------- */
@media (max-width: 767.98px) {
    .chs-responsive-table thead {
        display: none;
    }

    .chs-responsive-table,
    .chs-responsive-table tbody,
    .chs-responsive-table tr,
    .chs-responsive-table td {
        display: block;
        width: 100%;
    }

        .chs-responsive-table tr {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(41, 79, 105, .07);
            margin-bottom: .85rem;
            padding: .25rem 1rem;
        }

            .chs-responsive-table tr:hover {
                background: #fff;
            }

        .chs-responsive-table td {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .75rem;
            border: none !important;
            border-bottom: 1px solid #f0f2f5 !important;
            padding: .6rem 0;
            text-align: end;
        }

            .chs-responsive-table td:last-child {
                border-bottom: none !important;
                flex-wrap: wrap;
                justify-content: flex-start;
                padding-top: .75rem;
            }

            .chs-responsive-table td::before {
                content: attr(data-label);
                font-weight: 700;
                color: var(--chs-main);
                font-size: .78rem;
                flex-shrink: 0;
            }

            .chs-responsive-table td:last-child::before {
                display: none;
            }
}

/* ---------- جدول الاستبيانات في لوحة التحكم: رأس بلون العلامة التجارية + حدود لكل الخلايا ---------- */
.chs-surveys-table thead th {
    background: var(--chs-main);
    color: #fff;
    border-color: var(--chs-main);
}

.flatpickr-calendar {
    direction: rtl;
}

/* ---------- طباعة صفحة النتائج ---------- */
@media print {
    .no-print {
        display: none !important;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    body {
        background: #fff !important;
    }

    main.col-md-10 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-inline-start: 0 !important;
        padding: 0 !important;
    }

    .container-fluid, .row {
        width: 100% !important;
        margin: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #d7dde3 !important;
        break-inside: avoid;
    }
}


#surveyQrCode img {
    width: 140px;
    height: 140px;
}

table.table.table-sm th {
    color: #fff;
    background: #224258;
}

.card-body h6 {
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    color: #224258;
}

p.mb-3.total-count {
    text-align: center;
    border: 1px solid #eee;
    padding: 15px 0;
    background: #b4d0e2;
    border-radius: 8px;
    font-size: 20px;
}
