/* =========================================================================
   css/modes/partner-hiring.css
   Partner Hiring mode - Hiring Leads page (hl-* classes).
   One theme: amber is the only accent; status colours come from the shared
   badge palette (js/core/constants.js / HVHiring.statusChip).
   ========================================================================= */

.hl-page { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hl-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 1px 3px rgba(16,24,40,.05); min-width: 0; }
.hl-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; }
.hl-title { font-size: 14px; font-weight: 700; color: #111827; margin: 0; line-height: 1.3; }
.hl-sub { font-size: 12px; color: #6b7280; margin: 3px 0 0; line-height: 1.45; }
.hl-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hl-muted { font-size: 12px; color: #9ca3af; }
.hl-help { font-size: 11px; color: #9ca3af; margin: 4px 0 0; line-height: 1.45; display: block; }
.hl-warn { color: #b45309; }
.hl-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.hl-text { font-size: 13px; color: #374151; line-height: 1.5; margin: 0; }
.hl-link { background: none; border: none; color: #d97706; font-size: 12px; font-weight: 600; cursor: pointer; padding: 2px 4px; }
.hl-link-bad { background: none; border: none; color: #b91c1c; font-size: 12px; font-weight: 600; cursor: pointer; padding: 2px 0; text-decoration: underline; }

/* alerts / banner */
.hl-alert { padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.45; border: 1px solid transparent; }
.hl-alert a { text-decoration: underline; font-weight: 600; }
.hl-alert-info { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.hl-alert-ok { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.hl-alert-bad { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* stats strip */
.hl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.hl-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.hl-stat:hover { border-color: #fcd34d; }
.hl-stat.on { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.hl-stat-label { font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.hl-stat-val { font-size: 22px; font-weight: 800; color: #111827; line-height: 1.2; }
.hl-stat-sub { font-size: 11px; color: #9ca3af; }

/* filters */
.hl-filters { padding: 16px 20px; }
.hl-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.hl-filter-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f3f4f6; }
.hl-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hl-label { font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.hl-multi { position: relative; }
.hl-multi summary { list-style: none; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-multi summary::-webkit-details-marker { display: none; }
.hl-multi-list { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 100%; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 8px 24px rgba(16,24,40,.12); padding: 8px; display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.hl-multi-list label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #374151; padding: 3px 4px; white-space: nowrap; }

/* selection bar + table */
.hl-selbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #374151; min-height: 32px; }
.hl-scroll { overflow-x: auto; }
.hl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hl-table th { padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; background: #f9fafb; white-space: nowrap; }
.hl-table td { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; color: #374151; }
.hl-table tr:last-child td { border-bottom: none; }
.hl-clip { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-wrap { white-space: normal; min-width: 200px; max-width: 360px; line-height: 1.4; }
.hl-name { background: none; border: none; padding: 0; font-weight: 600; color: #111827; cursor: pointer; text-align: left; }
.hl-name:hover { color: #b45309; text-decoration: underline; }
.hl-row-actions { white-space: nowrap; }
.hl-mini { padding: 4px 10px; font-size: 12px; font-weight: 600; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #374151; cursor: pointer; margin-right: 4px; }
.hl-mini:hover:not(:disabled) { border-color: #fcd34d; background: #fffbeb; }
.hl-mini:disabled { opacity: .4; cursor: not-allowed; }
.hl-mini-bad { color: #b91c1c; border-color: #fecaca; }
.hl-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid #f3f4f6; }
.hl-empty { padding: 40px 16px; text-align: center; color: #9ca3af; font-size: 13px; }
.hl-badge { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 9999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.hl-badge-amber { background: #fef3c7; color: #92400e; }
.hl-badge-bad { background: #fee2e2; color: #991b1b; }
.hl-badge-ok { background: #d1fae5; color: #065f46; }
.hl-badge-grey { background: #f3f4f6; color: #4b5563; }

/* modal */
.hl-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(17,24,39,.45); display: flex; align-items: center; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.hl-dialog { background: #fff; border-radius: 18px; width: 100%; max-width: 520px; box-shadow: 0 20px 50px rgba(16,24,40,.25); display: flex; flex-direction: column; max-height: calc(100vh - 48px); margin: auto; }
.hl-dialog.hl-wide { max-width: 860px; }
.hl-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #f3f4f6; }
.hl-dialog-body { padding: 16px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.hl-dialog-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid #f3f4f6; }
.hl-close { background: none; border: none; font-size: 22px; line-height: 1; color: #9ca3af; cursor: pointer; padding: 0 4px; }
.hl-close:hover { color: #111827; }
.hl-or { font-size: 11px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.hl-tots { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.hl-tot { background: #f9fafb; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #6b7280; }
.hl-tot b { font-size: 18px; color: #111827; }
.hl-tot.ok b { color: #065f46; }
.hl-tot.bad b { color: #b91c1c; }
.hl-cols { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: #374151; }
.hl-preview { max-height: 320px; overflow-y: auto; border: 1px solid #f3f4f6; border-radius: 12px; }
.hl-section { font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 6px; border-bottom: 1px solid #f3f4f6; margin-top: 4px; }
.hl-sched { display: flex; flex-direction: column; gap: 10px; }
.hl-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; align-items: end; }
.hl-indent { padding-left: 26px; }
.hl-radio { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #374151; cursor: pointer; }
.hl-radio input { margin-top: 3px; accent-color: #f59e0b; }
.hl-radio.off { opacity: .5; cursor: not-allowed; }
.hl-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #374151; }
.hl-check input { accent-color: #f59e0b; }
.hl-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hl-inline .hl-radio { min-width: 90px; }
.hl-time { width: auto; min-width: 120px; }
.hl-plan { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.hl-plan-main { font-size: 14px; font-weight: 700; color: #92400e; }
.hl-kvs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.hl-kv { background: #f9fafb; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hl-kv span { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #9ca3af; }
.hl-kv b { font-size: 13px; font-weight: 600; color: #111827; word-break: break-word; }

@media (max-width: 640px) {
  .hl-head, .hl-filters { padding: 14px 16px; }
  .hl-overlay { padding: 16px 8px; }
  .hl-dialog { max-height: calc(100vh - 32px); }
  .hl-indent { padding-left: 0; }
}
