/* ==========================================================================
   qamarhire.com on the RecruitmentCV design system - the few QamarHire-only
   rules (footer logo, the header Login menu, kept content blocks). Loaded
   after style.css + qh-kit.css by resources/views/qamarhire/layouts/app.
   CRM -> Website -> Branding -> Logo Size (qamarhire.com) overrides the
   header logo size below (QamarHireSite::logoCss(), printed after this file).
   ========================================================================== */

/* Header logo: the same size md.recruitmentcv.com uses (200 x 40). */
.worker-scope { --w-header-logo-h: 40px; --w-header-logo-w: 200px; }
.worker-scope .w-footer .w-logo { --w-brand-logo-h: 44px; --w-brand-logo-max-w: 230px; }

/* Header Login menu (Customer Login / Partner Login) - the account-menu panel, button-sized. */
.worker-scope .qh-login-menu .w-user-menu-panel { width: 13.5rem; }
.worker-scope .qh-login-menu button.w-user-menu-item { width: 100%; background: none; border: 0; font-family: inherit; cursor: pointer; text-align: start; }

/* Mobile menu copies of the account buttons (buttons as well as links). */
.worker-scope .w-nav .w-nav-auth { font: inherit; cursor: pointer; }

/* The reused order / login modals open above the sticky header. */
.qh-ui .qh-kit .modal { z-index: 1065; }
.qh-ui .modal-backdrop { z-index: 1060; }
.qh-ui .w-header { z-index: 1000; }

/* Toasts (existing session messages) in the brand colours. */
.qh-ui #toast-container > .toast-success { background-color: var(--w-primary); }
.qh-ui #toast-container > .toast-error { background-color: #b91c1c; }
.qh-ui #toast-container > div { border-radius: var(--w-radius); box-shadow: var(--w-shadow); opacity: 1; }

/* Detail page: Hire Now | Download CV | Add to Wishlist - the md.recruitmentcv.com
   candidate row, measured on the reference (style.css .w-btn / .w-cta-row .w-btn /
   .w-btn-outline / .w-wishlist-btn): 43px buttons, 12px 10px padding, 13.6px bold
   DM Sans, 8px radius, 8px gap, 1px lift on hover. Saved to Wishlist = same colours,
   filled heart. Stacked on phones. */
.qh-ui .qh-order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.qh-ui .qh-order-actions > * { margin: 0 !important; }
.qh-ui .qh-order-actions .btn { flex: 1 1 auto; min-height: 0; padding: 12px 10px; gap: 6px; font-family: var(--w-font-body); font-size: .85rem; font-weight: 700; line-height: normal; border-radius: 8px; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s; }
.qh-ui .qh-order-actions .btn:hover { transform: translateY(-1px); }
.qh-ui .qh-order-actions .qh-cta-outline { background: transparent; border: 1px solid var(--w-ink-200); color: var(--w-ink-800); }
.qh-ui .qh-order-actions .qh-cta-outline:hover,
.qh-ui .qh-order-actions .qh-cta-outline:focus-visible { border-color: var(--w-primary); color: var(--w-primary); background: transparent; }
.qh-ui .qh-order-actions .w-wishlist-btn svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; }
.qh-ui .qh-order-actions .w-wishlist-btn.is-active { color: var(--w-ink-800); border-color: var(--w-ink-200); }
.qh-ui .qh-order-actions .w-wishlist-btn.is-active:hover { color: var(--w-primary); border-color: var(--w-primary); }
.qh-ui .qh-order-actions .w-wishlist-btn.is-active svg { fill: currentColor; }
/* Pending request: the reference's disabled .w-btn (opacity .55, no lift). */
.qh-ui .qh-order-actions .w-wishlist-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.qh-ui .qh-cv-alert { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 14px; font-weight: 500; }
/* Ordered candidate: View Order | Download CV | Saved to Wishlist on one desktop row
   (378px card) - slightly tighter spacing, same height / font / radius. */
.qh-ui .qh-order-actions.has-order { gap: 6px; }
.qh-ui .qh-order-actions.has-order .btn { padding-inline: 8px; }
@media (max-width: 480px) { .qh-ui .qh-order-actions { flex-direction: column; } }
.qh-ui .qh-order-actions .btn-warning,
.qh-ui .qh-order-actions .btn-success { background: var(--w-accent); border-color: var(--w-accent); color: var(--w-gold-ink); }
.qh-ui .qh-order-actions .btn-warning:hover,
.qh-ui .qh-order-actions .btn-success:hover { background: var(--w-accent-dark); border-color: var(--w-accent-dark); }
.qh-ui .qh-reservation { margin-top: 14px; }

/* Content blocks kept from the previous pages (About / Services / Contact). */
.qh-ui .qh-rich p { color: var(--w-ink-700); }
.qh-ui .qh-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.qh-ui .qh-gallery a { display: block; border-radius: var(--w-radius); overflow: hidden; border: 1px solid var(--w-border); aspect-ratio: 4 / 3; background: var(--w-ink-100); }
.qh-ui .qh-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.qh-ui .qh-gallery a:hover img { transform: scale(1.04); }
@media (max-width: 767.98px) { .qh-ui .qh-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qh-ui .qh-branch-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.qh-ui .qh-branch { background: #fff; border: 1px solid var(--w-border); border-radius: var(--w-radius-lg); padding: 14px; text-align: center; box-shadow: var(--w-shadow-sm); }
.qh-ui .qh-branch img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--w-radius); margin-bottom: 10px; }
.qh-ui .qh-branch strong { color: var(--w-ink-900); font-family: var(--w-font-heading); }
@media (max-width: 991.98px) { .qh-ui .qh-branch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .qh-ui .qh-branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qh-ui .qh-arabic-block { direction: rtl; font-family: 'Tajawal', sans-serif; text-align: right; }
.qh-ui .qh-arabic-block li { font-family: 'Tajawal', sans-serif; }

/* Office-selection modal (#modalLarge) in the RecruitmentCV list style. */
.qh-kit .qh-office-modal .qh-office-help { color: var(--w-ink-500); font-size: 14px; margin-bottom: 12px; }
.qh-kit .qh-office-modal .table { border-collapse: separate; border-spacing: 0 8px; margin: 0; }
.qh-kit .qh-office-modal .table thead th { background: transparent; border: 0; padding: 2px 14px; }
.qh-kit .qh-office-modal .table tbody td { background: #fff; border-top: 1px solid var(--w-border); border-bottom: 1px solid var(--w-border); border-inline-start: 0; border-inline-end: 0; padding: 14px !important; text-align: start; }
.qh-kit .qh-office-modal .table tbody td:first-child { border-inline-start: 1px solid var(--w-border); border-start-start-radius: var(--w-radius); border-end-start-radius: var(--w-radius); font-weight: 700; color: var(--w-ink-900); }
.qh-kit .qh-office-modal .table tbody td:last-child { border-inline-end: 1px solid var(--w-border); border-start-end-radius: var(--w-radius); border-end-end-radius: var(--w-radius); width: 90px; text-align: center; }
.qh-kit .qh-office-modal .table tbody tr { cursor: pointer; }
.qh-kit .qh-office-modal .table tbody tr:hover td { background: var(--w-ink-50); }
.qh-kit .qh-office-modal .table tbody tr:has(input:checked) td { background: var(--w-primary-50); border-color: var(--w-primary); }
.qh-kit .qh-office-modal .table tbody tr:has(input:checked) td:first-child { box-shadow: inset 4px 0 0 var(--w-accent); }
[dir="rtl"] .qh-kit .qh-office-modal .table tbody tr:has(input:checked) td:first-child { box-shadow: inset -4px 0 0 var(--w-accent); }
.qh-kit .qh-office-modal .address-para { display: block; margin-top: 3px; color: var(--w-ink-500); font-weight: 400; font-size: 13px; }
.qh-kit .qh-office-modal input[type="radio"] { width: 20px; height: 20px; accent-color: var(--w-primary); }

/* How It Works: QamarHire's four steps (RecruitmentCV shows three). */
.worker-scope .w-steps.qh-steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .worker-scope .w-steps.qh-steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .worker-scope .w-steps.qh-steps-4 { grid-template-columns: 1fr; } }

/* Customer account pages. */
.worker-scope .qh-account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.worker-scope .qh-account-logout { margin: 0; }
.worker-scope .qh-account-logout button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: none; font: inherit; color: var(--w-ink-600); cursor: pointer; border-radius: var(--w-radius); text-align: start; }
.worker-scope .qh-account-logout button:hover { background: var(--w-ink-100); color: #b91c1c; }
.worker-scope .qh-profile-photo { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.worker-scope .qh-profile-photo img { border-radius: 50%; object-fit: cover; border: 3px solid var(--w-primary-50); }
.worker-scope .qh-profile-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 46px; padding: 6px 6px 6px 14px; border: 1px solid var(--w-border); border-radius: var(--w-radius); background: var(--w-ink-50); }
.worker-scope .qh-profile-phone #phone-value { font-weight: 600; color: var(--w-ink-900); margin-inline-end: auto; }
.worker-scope .qh-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .worker-scope .qh-form-grid { grid-template-columns: 1fr; } }

/* Detail page gallery: "Hired by You" pill and the locked driving-licence slide. */
.worker-scope .w-gallery-main-wrap { position: relative; }
/* CV page "Hired by You": the card pill (style.css .w-hiring-status.is-own) in the photo's
   bottom corner - one edge only, so it never stretches across the image. */
.worker-scope .qh-gallery-status { left: auto; right: auto; inset-inline-start: auto; inset-inline-end: 14px; bottom: 14px; z-index: 2; width: auto; max-width: calc(100% - 28px); }
.worker-scope .qh-locked-doc { display: flex; align-items: center; justify-content: center; min-height: 260px; background: var(--w-ink-100); }
.worker-scope .qh-locked-doc .w-gallery-blurred-note { position: static; transform: none; }
.worker-scope .w-gallery-thumbs button.is-restricted:not(:has(img)) { background: var(--w-ink-100); }

/* Partner Login: remember-me + back link. */
.worker-scope .qh-remember { display: flex; align-items: center; gap: 8px; margin: 2px 0 16px; font-size: 14px; color: var(--w-ink-700); cursor: pointer; }
.worker-scope .qh-remember input { width: 16px; height: 16px; accent-color: var(--w-primary); }
.worker-scope .qh-back-home { margin-top: 6px; }
.worker-scope .w-partner-auth-page .w-input.is-invalid { border-color: #b91c1c; }
.worker-scope .w-partner-auth-page-logo { height: 34px !important; width: auto !important; max-width: 200px !important; }
.worker-scope .w-partner-auth-page a.w-auth-forgot-link { display: block; width: fit-content; margin-inline-start: auto; text-decoration: none; }

/* My Order: the order opened from "View Order", and the notice when it is not one of the customer's live orders. */
.qh-ui .w-account-item.is-target { border-color: var(--w-primary); box-shadow: 0 0 0 3px rgba(8, 116, 67, .14); }
.qh-ui .qh-order-notice { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #fff8e6; border: 1px solid #f3dca1; color: #6b4e0a; font-size: 14px; font-weight: 500; }

/* My Order: the recruitment office (Partner) of each order. */
.qh-ui .qh-order-partner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 2px; font-size: 14px; color: var(--w-ink-600, var(--w-ink-500)); }
.qh-ui .qh-order-partner svg { flex: none; color: var(--w-primary); }
.qh-ui .qh-order-partner strong { color: var(--w-ink-900); font-weight: 700; }
.qh-ui .qh-order-partner strong.is-empty { color: var(--w-ink-500); font-weight: 600; font-style: italic; }

/* Office / review modal footers on phones: button labels stay on one line. */
.qh-kit .qh-office-modal .modal-footer .btn,
.qh-kit .qh-review-modal .modal-footer .btn {
  white-space: nowrap;
}
