/* Shared Hajj presentation, based on the statistics dashboard. */
body.hajj-theme {
    --system-ink:#183d35; --system-green:#15543f; --system-muted:#708579;
    --system-line:#e0e8e2; --system-tint:#f0f6f2; --system-gold:#e5c882;
    background:#f5f6f8; color:var(--system-ink); font-family:"IBM Plex Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;
    font-size:14px; line-height:1.75;
}
body.hajj-theme .system-page {min-width:0; color:var(--system-ink)}
body.hajj-theme .app-container.system-page {max-width:1536px; padding-inline:28px}
body.hajj-theme .system-page>.container,
body.hajj-theme .system-page>.container-fluid {max-width:100%; padding-inline:0}
body.hajj-theme .system-page :is(h1,h2,h3,h4,h5,h6) {color:var(--system-ink);font-weight:700;line-height:1.55}
body.hajj-theme .system-page h1 {font-size:28px}
body.hajj-theme .system-page h2 {font-size:23px}
body.hajj-theme .system-page h3 {font-size:20px}
body.hajj-theme .system-page :is(h4,h5,h6) {font-size:17px}
body.hajj-theme .system-page p {line-height:1.85}
body.hajj-theme .system-page .text-muted {color:var(--system-muted)!important}
body.hajj-theme .system-page .text-primary {color:var(--system-green)!important}
body.hajj-theme .system-page .ui-standalone-heading {padding-right:0;font-weight:700!important;margin-bottom:7px!important}
body.hajj-theme .system-page .ui-standalone-heading::before {display:none}

/* Existing headings and their actions stay in their original DOM order. */
body.hajj-theme .system-page :is(.system-hero,.page-heading,.ha-hero) {
    padding:26px 30px!important; margin:2px 0 22px!important;
    border:1px solid #1d6b55!important;border-radius:18px;
    background:linear-gradient(120deg,#103e34,#17604a)!important;
    color:#fff;box-shadow:0 8px 24px #0e44300d;
}
body.hajj-theme .system-page .system-heading-row {align-items:center;row-gap:15px}
body.hajj-theme .system-page .system-heading-row>* {min-width:0}
body.hajj-theme .system-page :is(.system-hero,.page-heading,.ha-hero) :is(h1,h2,h3,h4,h5,h6) {color:#fff!important;margin-bottom:7px!important;line-height:1.5}
body.hajj-theme .system-page :is(.system-hero,.page-heading,.ha-hero) :is(p,.ui-page-subtitle,.discounts-help,.discount-report-sub,.text-muted,.breadcrumb,.breadcrumb-item.active) {color:#d9e9e1!important;font-size:13px}
body.hajj-theme .system-page :is(.system-hero,.page-heading) .breadcrumb a {color:#e5c882}
body.hajj-theme .system-page .page-heading-accent {background:#e5c882;height:44px;width:4px;flex-basis:4px}
body.hajj-theme .system-page .system-hero .ui-page-subtitle {margin:0!important}
body.hajj-theme .system-page .system-hero :is(.btn,.report-button,.discounts-select) {margin:3px;box-shadow:none}
body.hajj-theme .system-page .system-hero :is(.btn.ui-secondary-action,.report-button.secondary,.discounts-select) {background:#fff!important;color:#15543f!important}
body.hajj-theme .system-page .system-hero :is(.btn.ui-primary-action,.report-button:not(.secondary),.btn-success) {background:#e5c882!important;color:#163d32!important;border-color:#e5c882!important}

/* Surfaces and compact, consistent section headers. */
body.hajj-theme .system-page :is(.card,.discounts-card,.discount-report-card,.discount-report-stat,.ha-card) {
    border:1px solid var(--system-line)!important; border-radius:14px;
    background:#fff;box-shadow:0 3px 13px #17402b05!important;overflow:visible;
}
body.hajj-theme .system-page .card-header,
body.hajj-theme .system-page .card .card-header:is(.bg-primary,.bg-success,.bg-info,.bg-secondary,.bg-dark,.bg-warning) {
    padding:17px 20px; border:0!important;border-bottom:1px solid #edf2ee!important;
    background:#fff!important;color:#496255!important;font-size:15px;font-weight:700;border-radius:14px 14px 0 0;
}
body.hajj-theme .system-page .card-header :is(h1,h2,h3,h4,h5,h6,.text-white) {color:#284d3e!important;font-size:18px!important}
body.hajj-theme .system-page .card-body {padding:20px}
body.hajj-theme .system-page .card-footer {padding:13px 20px;background:#f9fbfa;border-color:var(--system-line);border-radius:0 0 14px 14px;font-size:12px}
body.hajj-theme .system-page :is(.discounts-card,.discount-report-card,.discount-report-stat,.ha-card) {padding:20px}
body.hajj-theme .system-page :is(.discounts-top,.discount-report-head) {margin-top:0}
body.hajj-theme .system-page .discount-report-stat strong {font-size:29px;font-weight:700;font-variant-numeric:tabular-nums}
body.hajj-theme .system-page :is(.discount-report-stat span,.ha-counts dt) {font-size:13px;color:var(--system-muted)}
body.hajj-theme .system-page .ha {--ink:#183d35;--paper:#f0f6f2;--gold:#729b80;font-size:14px}
body.hajj-theme .system-page .ha-counts dd {font-size:21px;color:#24523e}
body.hajj-theme .system-page .ha-card h3 {font-size:17px}
body.hajj-theme .system-page .ha-card--pending {background:#f9fcf9}
body.hajj-theme .system-page .ha-hero {border-right-width:1px!important}

/* Fields: no changes to names, values, validation, or hidden states. */
body.hajj-theme .system-page :is(.form-label,.form-group>label,.discounts-label,.search-field>label) {font-size:13px;color:#496255;font-weight:600;margin-bottom:7px}
body.hajj-theme .system-page :is(.form-control,.form-select,.phone-input,.input,.textarea,.ha-form input,.ha-form select) {
    font-family:inherit;font-size:14px;line-height:1.65;min-height:44px;
    border:1px solid #cddcd2;border-radius:9px;background-color:#fff;color:#254537;
    padding:9px 12px;max-width:100%;box-shadow:none;
}
body.hajj-theme .system-page :is(.form-control,.form-select,.phone-input,.input,.textarea,.ha-form input,.ha-form select):focus {border-color:#6b9c7e;box-shadow:0 0 0 3px #15543f16;outline:none}
body.hajj-theme .system-page :is(.form-control,.input)[readonly],
body.hajj-theme .system-page :is(.form-control,.form-select,.input):disabled {background:#f3f6f4;color:#738479}
body.hajj-theme .system-page .form-control.is-invalid {border-color:#c65760}
body.hajj-theme .system-page .form-control.is-valid {border-color:#43835c}
body.hajj-theme .system-page :is(.form-control-sm,.form-select-sm) {min-height:35px;padding:5px 9px;font-size:12px}
body.hajj-theme .system-page :is(.form-check-input,input[type=radio],input[type=checkbox]) {accent-color:#15543f}
body.hajj-theme .system-page .form-check-input:checked {background-color:#15543f;border-color:#15543f}
body.hajj-theme .system-page .select2-container--default .select2-selection--single {min-height:44px;border:1px solid #cddcd2;border-radius:9px}
body.hajj-theme .system-page .select2-container--default .select2-selection--single .select2-selection__rendered {line-height:42px;color:#254537;font-size:14px}
body.hajj-theme .system-page textarea {resize:vertical}

/* The semantic colors of destructive and warning actions are preserved. */
body.hajj-theme .system-page :is(.btn,.discounts-button,.report-button,.ha-btn) {
    font-family:inherit;border-radius:9px;font-size:13px;font-weight:600;line-height:1.65;
    padding:9px 16px;min-height:40px;box-shadow:none;white-space:normal;
}
body.hajj-theme .system-page :is(.btn-primary,.btn-success,.btn.ui-primary-action,.discounts-button,.report-button:not(.secondary),.ha-btn--main) {background:#15543f!important;border:1px solid #15543f!important;color:#fff!important}
body.hajj-theme .system-page :is(.btn-primary,.btn-success,.btn.ui-primary-action,.discounts-button,.report-button:not(.secondary),.ha-btn--main):hover {background:#0f4231!important;border-color:#0f4231!important}
body.hajj-theme .system-page :is(.btn.ui-secondary-action,.btn-outline-primary,.btn-outline-success,.report-button.secondary,.ha-btn:not(.ha-btn--main)) {background:#fff!important;color:#236144!important;border:1px solid #bfd3c5!important}
body.hajj-theme .system-page :is(.btn.ui-danger-action,.btn-danger) {background:#fff1f2!important;color:#ad3542!important;border:1px solid #eec6cc!important}
body.hajj-theme .system-page :is(.btn-sm,.btn-group-sm>.btn) {padding:6px 10px;min-height:33px;font-size:12px}
body.hajj-theme .system-page .btn-group {gap:4px;flex-wrap:wrap}
body.hajj-theme .system-page .btn-group>.btn {border-radius:8px!important}
body.hajj-theme .system-page :is(a,button,input,select,textarea,summary):focus-visible {outline:3px solid #94bea3;outline-offset:3px}
body.hajj-theme .system-page :is(button:disabled,.btn.disabled) {opacity:.55;cursor:not-allowed}
body.hajj-theme .system-page .btn.ui-success-action {background:#eaf6ed!important;color:#28734b!important;border-color:#c4e2cd!important}

/* Table scroll regions keep the page and controls within the viewport. */
body.hajj-theme .system-page :is(.table-responsive,.system-table-scroll,.ha-table-wrap,.discount-report-scroll,.discounts-results) {max-width:100%;overflow-x:auto!important;border-radius:12px;scrollbar-width:thin;scrollbar-color:#b8cfc1 #f1f6f3}
body.hajj-theme .system-page .system-table-scroll {border:1px solid var(--system-line);background:#fff;clear:both}
body.hajj-theme .system-page table {width:100%;color:#425c4c;font-size:13px;border-color:#e6eee8;font-variant-numeric:tabular-nums}
body.hajj-theme .system-page :is(.table,table.dataTable) {margin:0}
body.hajj-theme .system-page table thead th,
body.hajj-theme .system-page table.dataTable thead th {background:#f0f6f2!important;color:#375b46!important;font-size:12px!important;font-weight:700!important;border-bottom:1px solid #dce8df!important;padding:13px 12px!important;line-height:1.6!important}
body.hajj-theme .system-page table tbody td {font-size:13px;line-height:1.7;padding:12px!important;border-color:#e9efeb;color:inherit}
body.hajj-theme .system-page table tbody tr:hover td {background:#f3f8f4}
body.hajj-theme .system-page .table-striped>tbody>tr:nth-of-type(odd)>* {--bs-table-accent-bg:#f9fbfa}
body.hajj-theme .system-page .dataTables_wrapper {min-width:0;max-width:100%;padding:18px;background:#fff;border:1px solid var(--system-line);border-radius:14px;margin-top:18px}
body.hajj-theme .system-page .dataTables_wrapper :is(.dataTables_filter,.dataTables_length,.dataTables_info,.dataTables_paginate) {font-size:12px;color:#708579}
body.hajj-theme .system-page .dataTables_wrapper :is(.dataTables_filter input,.dataTables_length select) {height:40px;border:1px solid #cddcd2;border-radius:8px;background:#fff;color:#254537;padding:6px 10px;font-family:inherit;max-width:100%}
body.hajj-theme .system-page .dataTables_wrapper .dataTables_paginate .paginate_button.current {background:#15543f!important;color:white!important;border:1px solid #15543f!important;border-radius:7px}
body.hajj-theme .system-page .dataTables_wrapper .dataTables_paginate .paginate_button {border-radius:7px;font-size:12px}
body.hajj-theme .system-page .dataTables_wrapper .dataTables_paginate .paginate_button:hover {background:#f0f6f2!important;color:#15543f!important;border-color:#cddcd2!important}
body.hajj-theme .system-page :is(.dt-buttons .dt-button,.page-link) {font-family:inherit;border:1px solid #d7e5dc;border-radius:7px;color:#236144;background:#fff;font-size:12px;padding:7px 11px}
body.hajj-theme .system-page .page-item.active .page-link {background:#15543f;color:#fff;border-color:#15543f}
body.hajj-theme .system-page .table-responsive {box-shadow:none;border-color:var(--system-line)}
body.hajj-theme .system-page .system-hero+.dataTables_wrapper {margin-top:0}
body.hajj-theme .system-page .column-filters :is(input,select) {min-height:34px;height:auto!important}

/* Tabs, notices, and status labels. */
body.hajj-theme .system-page :is(.nav-tabs,.nav-pills) {gap:9px;padding:5px 0 13px;border-bottom:1px solid var(--system-line)}
body.hajj-theme .system-page :is(.nav-tabs,.nav-pills) .nav-link {border:1px solid #dfe8e2!important;border-radius:10px!important;background:#fff!important;color:#4b6459!important;font-size:13px;padding:10px 15px;font-weight:600;min-height:43px}
body.hajj-theme .system-page :is(.nav-tabs,.nav-pills) .nav-link.active {background:#15543f!important;color:#fff!important;border-color:#15543f!important;box-shadow:0 3px 10px #103c3015}
body.hajj-theme .system-page :is(.nav-tabs,.nav-pills) .nav-link.active::after {display:none}
body.hajj-theme .system-page .alert {border-radius:10px;padding:13px 16px;font-size:13px;line-height:1.85}
body.hajj-theme .system-page :is(.badge,.ui-status,.ha-tag) {font-size:11px;font-weight:600;border-radius:7px;padding:5px 8px;line-height:1.5}
body.hajj-theme .system-page .breadcrumb {font-size:12px;margin:7px 0 0}
body.hajj-theme .system-page .ha-form {background:#f0f6f2}
body.hajj-theme .system-page .ha-tabs a {font-size:13px;border-color:var(--system-line);border-radius:9px}
body.hajj-theme .system-page .ha-tabs a[aria-current=page] {background:#15543f;color:#fff}
body.hajj-theme .system-page .ha-notice {font-size:13px;line-height:1.85}

/* Independent pilgrim forms share the same visual language. */
body.hajj-theme.hajj-public {margin:0;direction:rtl;text-align:right;--ink:#183d35;--muted:#708579;--line:#e0e8e2;--bg:#f5f6f8;--green:#15543f;--gold:#15543f;--gold2:#17604a}
body.hajj-theme.hajj-public * {box-sizing:border-box}
body.hajj-theme.hajj-public :is(button,input,select,textarea) {font-family:inherit}
body.hajj-theme.hajj-public .system-page>.container {max-width:1140px;padding-inline:20px}
body.hajj-theme.hajj-public .shell {max-width:780px}
body.hajj-theme.hajj-public .brand {background:linear-gradient(120deg,#103e34,#17604a);color:white;padding:21px;border:1px solid #1d6b55;border-radius:16px;margin-bottom:20px}
body.hajj-theme.hajj-public .brand .season {color:#e5c882}
body.hajj-theme.hajj-public .card .brand {background:none;border:0;color:#183d35}
body.hajj-theme.hajj-public .step-dot.active {color:#15543f}
body.hajj-theme.hajj-public :is(.step-dot.active,.step-dot.done) b {background:#15543f;border-color:#15543f}
body.hajj-theme.hajj-public :is(.choice,.option-card):has(input:checked) {border-color:#5c9675;background:#f0f7f2;box-shadow:0 0 0 2px #15543f0b}
body.hajj-theme.hajj-public .title {font-size:23px;margin-bottom:7px}
body.hajj-theme.hajj-public .subtitle {font-size:13px;line-height:1.85}
body.hajj-theme.hajj-public .costbar {background:#f0f6f2;border-color:#cddfd2}
body.hajj-theme.hajj-public .grand {background:#f0f6f2;color:#24523e}
body.hajj-theme.hajj-public .system-verification {padding:24px 16px}
body.hajj-theme.hajj-public .system-verification>.card {max-width:560px;margin:10px auto;padding:26px}
body.hajj-theme.hajj-public .system-verification h2 {font-size:24px}
body.hajj-theme .system-page.system-login .vh-100 {min-height:70vh;height:auto!important;padding-block:35px}

@media(max-width:991px){
    body.hajj-theme .system-page .system-heading-row>[class*=col-] {flex:0 1 auto;width:auto;text-align:right!important}
    body.hajj-theme .system-page .system-heading-row>.system-title-column {flex:1 1 100%;width:100%}
}
@media(max-width:700px){
    body.hajj-theme .app-container.system-page {padding-inline:16px}
    body.hajj-theme .system-page :is(.system-hero,.page-heading,.ha-hero) {padding:20px!important;border-radius:14px;margin-bottom:18px!important}
    body.hajj-theme .system-page h1 {font-size:23px}
    body.hajj-theme .system-page h2 {font-size:21px}
    body.hajj-theme .system-page .card-header {padding:14px}
    body.hajj-theme .system-page :is(.card-body,.discounts-card,.discount-report-card,.discount-report-stat,.ha-card) {padding:15px}
    body.hajj-theme .system-page .card-header :is(h1,h2,h3,h4,h5,h6) {font-size:16px!important}
    body.hajj-theme .system-page .dataTables_wrapper {padding:12px}
    body.hajj-theme .system-page .dataTables_wrapper .dataTables_filter input {min-width:0;width:min(240px,70vw)}
    body.hajj-theme .system-page .dataTables_wrapper :is(.dataTables_filter,.dataTables_length) {float:none;width:100%;text-align:right;margin-bottom:12px}
    body.hajj-theme .system-page .dataTables_wrapper .dataTables_paginate {float:none;text-align:right;white-space:normal}
    body.hajj-theme .system-page .system-table-scroll>table {min-width:650px}
    body.hajj-theme .system-page .ha-details {min-width:0}
    body.hajj-theme .system-page .system-hero .btn {font-size:12px}
    body.hajj-theme.hajj-public .system-page>.container {padding-inline:14px}
    body.hajj-theme.hajj-public .shell {padding-inline:12px}
    body.hajj-theme.hajj-public .brand {padding:17px}
    body.hajj-theme.hajj-public .system-verification {padding:14px 12px}
    body.hajj-theme.hajj-public .system-verification>.card {padding:22px 17px}
}
@media(prefers-reduced-motion:reduce){body.hajj-theme .system-page *{scroll-behavior:auto!important}}
@media print {
    body.hajj-theme {background:#fff}
    body.hajj-theme .system-page :is(.system-hero,.page-heading,.ha-hero) {background:white!important;border-color:#ddd!important;color:#183d35;box-shadow:none}
    body.hajj-theme .system-page :is(.system-hero,.page-heading,.ha-hero) :is(h1,h2,h3,p,.ui-page-subtitle) {color:#183d35!important}
    body.hajj-theme .system-page :is(.system-table-scroll,.table-responsive) {overflow:visible!important}
}

body.hajj-theme .system-page .system-table-scroll table.dataTable tbody td {min-width:105px}
body.hajj-theme .system-page .system-table-scroll table.dataTable tbody td .btn {white-space:nowrap}
body.hajj-theme .system-page .column-filters :is(input,select) {min-width:105px}
body.hajj-theme .system-page .system-hero .btn-primary:not(.ui-primary-action) {background:#ffffff14!important;border-color:#ffffff35!important;color:#fff!important}

body.hajj-theme .system-page table.dataTable thead>tr>th:is(.sorting,.sorting_asc,.sorting_desc) {position:relative!important}
body.hajj-theme .system-page table a:not(.btn) {color:#236144;font-weight:600}
body.hajj-theme .system-page :is(.btn-info,.btn-outline-info,.btn-secondary,.btn-outline-secondary):not(.ui-danger-action) {background:#fff!important;color:#236144!important;border:1px solid #bfd3c5!important}
