/*
  Pay rates (class/class.pay_rates.php): the Pay rates section under Settings → Payroll/Invoice
  and the New pay rate process drawer. the drawer is built on process_drawer.css (pd_ classes);
  this file holds only its own pieces — the amount box, the read-back line, the condition cards,
  the check card and preview rows, the done mark — and the section's rows.
  no rem units (bootstrap_old makes a rem 10px). px throughout.
*/

/* ---- the section on Settings ---- */

.pr_section { max-width: 760px; }
.pr_section_head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.pr_section_title { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; color: #0f5e63; letter-spacing: 0.08em; text-transform: uppercase; padding-left: 4px; }
.pr_new_btn
{
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 15px;
  border-radius: 9px; background: #0f7777; border: 1px solid #0f7777; color: #ffffff !important;
  font-weight: 700; box-shadow: 0 7px 16px rgba(15,119,119,0.2);
}
.pr_new_btn:hover, .pr_new_btn:focus { background: #0f5e63; border-color: #0f5e63; color: #ffffff; }
.pr_list .settings_row { align-items: center; }
.pr_row_amt { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; color: #102634; margin: 0 8px 0 10px; white-space: nowrap; }
.pr_cond_pill { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #e6f3f4; color: #0f5e63; font-weight: 600; font-size: 11.5px; }
.pr_empty { padding: 18px 14px; color: #62727b; font-size: 14px; }
.pr_why { margin: 8px 4px 0; color: #62727b; font-size: 12.5px; }
.pr_in_drawer { max-width: none; }
.pr_in_drawer .pr_list { margin-top: 2px; }

/* ---- step 1: the name ---- */

.pr_examples { margin: 8px 2px 0; font-size: 13px; color: var(--pd_muted); }
.pr_examples a { color: var(--pd_brand); font-weight: 700; text-decoration: none; }

.pr_remove_wrap { margin-top: 22px; text-align: center; }
.pr_remove { color: #b42323; font-weight: 700; font-size: 14px; text-decoration: none; }

/* ---- step 2: the amount ---- */

.pr_units .pd_card_sub { white-space: normal; }

.pr_amount
{
  display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
  border: 1.5px solid var(--pd_line); border-radius: var(--pd_radius); padding: 10px 16px; background: #ffffff;
  font-size: 34px; font-weight: 800; letter-spacing: -0.02em;
}
.pr_amount:focus-within { border-color: var(--pd_brand); }
.pr_amount span { color: var(--pd_faint); font-size: 24px; }
.pr_amount input { flex: 1; min-width: 0; width: 100%; border: 0; font: inherit; outline: none; padding: 0; background: transparent; box-shadow: none; }
.pr_say
{
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: var(--pd_brand_wash); color: var(--pd_brand_deep); font-weight: 700; font-size: 15px; line-height: 1.4;
}

/* ---- step 3: the condition cards ---- */

.pr_cond { border: 1.5px solid var(--pd_line); border-radius: var(--pd_radius); background: #ffffff; margin-bottom: 8px; overflow: hidden; }
.pr_cond.on { border-color: var(--pd_brand); box-shadow: 0 0 0 1px var(--pd_brand) inset; }
.pr_cond.na { opacity: 0.5; }
.pr_cond_head
{
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 12px;
  background: transparent; border: 0; text-align: left; color: var(--pd_ink); font: inherit; cursor: pointer; outline: none;
}
.pr_cond_icon
{
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pd_brand_wash); color: var(--pd_brand); font-size: 16px;
}
.pr_cond_text { flex: 1; min-width: 0; }
.pr_cond_name { display: block; font-size: 15px; font-weight: 700; }
.pr_cond_sub { display: block; font-size: 13px; color: var(--pd_muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr_cond.on .pr_cond_sub { color: var(--pd_brand_deep); font-weight: 600; }
.pr_cond_state
{
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--pd_line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--pd_faint); font-size: 13px;
}
.pr_cond.on .pr_cond_state { border-color: var(--pd_brand); background: var(--pd_brand); color: #ffffff; }
.pr_cond_body { display: none; padding: 2px 12px 14px 60px; }
.pr_cond.open .pr_cond_body { display: block; }
.pr_cond_body .pd_chip { padding: 6px 12px; font-size: 13.5px; }
.pr_cond_body .pd_chip.pr_hidden { display: none; }
.pr_time { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.pr_time input { border: 1.5px solid var(--pd_line); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 16px; background: #ffffff; }
.pr_cond_note { margin-top: 8px; font-size: 12.5px; color: var(--pd_muted); }
.pr_cond_none { font-size: 13px; color: var(--pd_muted); }
@media (max-width: 480px) { .pr_cond_body { padding-left: 12px; } }

/* ---- step 4: the check ---- */

.pr_card { border: 1.5px solid var(--pd_brand); border-radius: 12px; background: var(--pd_brand_wash); padding: 14px 16px; }
.pr_card_name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.pr_card_pays { color: var(--pd_brand_deep); font-weight: 700; margin-top: 2px; }
.pr_card ul { margin: 10px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.55; }
.pr_card_everyday { margin: 10px 0 0; font-size: 14px; color: var(--pd_muted); }
.pr_prev { border: 1.5px solid var(--pd_line); border-radius: 10px; overflow: hidden; background: #ffffff; }
.pr_prev_ev { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--pd_line); font-size: 14px; }
.pr_prev_ev:first-child { border-top: 0; }
.pr_prev_ev .settings_row_icon { width: 32px; height: 32px; font-size: 15px; flex: none; }
.pr_prev_text { flex: 1; min-width: 0; }
.pr_prev_text b { display: block; }
.pr_prev_text small { display: block; color: var(--pd_muted); }
.pr_prev_n { flex: none; margin-left: auto; text-align: right; font-weight: 800; white-space: nowrap; color: #1f7a45; }
.pr_prev_n small { display: block; font-weight: 600; }
.pr_prev_n.pr_lose { color: var(--pd_faint); }
.pr_prev_empty { padding: 14px; color: var(--pd_muted); font-size: 14px; }

/* ---- step 5: done ---- */

.pr_done { text-align: center; padding: 28px 8px 8px; }
.pr_done .pd_question { margin-bottom: 8px; }
.pr_done_mark
{
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
  background: #e3f6ec; color: #1f7a45; font-size: 34px;
  display: inline-flex; align-items: center; justify-content: center;
}
.pr_recap { text-align: left; margin: 22px auto 0; max-width: 460px; border: 1.5px solid var(--pd_line); border-radius: 10px; overflow: hidden; background: #ffffff; }
.pr_recap div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--pd_line); font-size: 14px; }
.pr_recap div:first-child { border-top: 0; }
.pr_recap b { font-weight: 700; text-align: right; }
.pr_done_cards { margin: 16px auto 0; max-width: 460px; }
