/*
  The Upload drawer on the employer Insights page (class.insights_upload.php): the month chips,
  the picture zone, the review rows, the rate line. Built on process_drawer.css (pd_) and it
  borrows the staff list import's purely visual pieces from add_staff_drawer.css (asd_intro_*,
  asi_drop_icon / title / sub / types, asi_or, asi_paste, asi_working, asi_summary, asi_count,
  asi_person_num, asi_remove, asi_pill_*, asi_done_*, asi_result) - none of those have js on
  them. Everything the js touches is iu_.

  NOTE: px throughout (bootstrap_old makes a rem 10px here).
*/

.iu_body { padding-bottom: 20px; }

/* the month chips */
.iu_chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.iu_chip
{
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border: 1px solid var(--pd_line); border-radius: 17px; background: #ffffff;
  color: var(--pd_ink); font-size: 14px; font-weight: 600; text-decoration: none;
}
.iu_chip:hover, .iu_chip:focus { border-color: var(--pd_brand); color: var(--pd_brand); text-decoration: none; }
.iu_chip.iu_chip_on, .iu_chip.iu_chip_on:hover { background: var(--pd_brand); border-color: var(--pd_brand); color: #ffffff; }

/* what is being brought in */
.iu_metric { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 12px 14px; background: #ffffff; border: 1px solid var(--pd_line); border-radius: var(--pd_radius); }
.iu_metric_icon { flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--pd_brand_wash); color: var(--pd_brand); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.iu_metric > div b { display: block; font-size: 14.5px; color: #16211f; }
.iu_metric > div span { display: block; color: var(--pd_muted); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }

.iu_question_2 { margin-top: 26px; }

/* the picture zone (the staff import's drop zone, with a camera button beside the chooser) */
.iu_drop
{
  position: relative; margin-top: 16px;
  border: 2px dashed var(--pd_brand_edge); border-radius: 14px; background: #ffffff;
  padding: 26px 16px 22px; text-align: center; transition: background .15s, border-color .15s; cursor: pointer;
}
.iu_drop.is_over { background: var(--pd_brand_wash); border-color: var(--pd_brand); border-style: solid; }
.iu_drop.has_file { border-style: solid; border-color: var(--pd_brand_edge); background: #f8fcfc; cursor: default; }
.iu_drop .iu_file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.iu_drop_buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.iu_camera.btn, .iu_choose.btn, .iu_clear.btn
{
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 8px; border: 1px solid var(--pd_line); background: #ffffff; color: var(--pd_ink);
  font-size: 14px; font-weight: 700; box-shadow: none;
}
.iu_camera.btn:hover, .iu_choose.btn:hover, .iu_clear.btn:hover { border-color: var(--pd_brand); color: var(--pd_brand); }
.iu_camera.btn { background: var(--pd_brand); border-color: var(--pd_brand); color: #ffffff; }
.iu_camera.btn:hover { background: var(--pd_brand_deep); border-color: var(--pd_brand_deep); color: #ffffff; }
.iu_drop_file .iu_preview { display: block; max-width: 100%; max-height: 260px; margin: 0 auto 12px; border-radius: 8px; border: 1px solid var(--pd_line); object-fit: contain; }
.iu_drop_file .iu_preview.hide_me, .iu_preview_icon.hide_me { display: none; }
.iu_drop_idle.hide_me, .iu_drop_file.hide_me { display: none; }
.iu_working.hide_me { display: none; }

/* the review */
.iu_period_warn { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; background: #fff8e1; border: 1px solid #f0d28a; border-radius: 8px; color: #7a5a00; font-size: 13.5px; line-height: 1.45; }
.iu_period_warn i { flex: none; margin-top: 2px; }
.iu_period_warn a { color: var(--pd_brand_deep); font-weight: 700; text-decoration: underline; }
.iu_period_warn > div { flex: 1; min-width: 0; }
.iu_period_warn > div a { display: inline-block; margin-top: 4px; }
.iu_rows { display: flex; flex-direction: column; gap: 10px; }
.iu_row { background: #ffffff; border: 1px solid var(--pd_line); border-radius: var(--pd_radius); padding: 12px 12px 10px; }
.iu_row.is_unmatched { border-color: #f0d28a; background: #fffdf5; }
.iu_row_head { display: flex; align-items: center; gap: 8px; }
.iu_row_label { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: #16211f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iu_row_label i { color: var(--pd_faint); font-size: 12px; margin-right: 2px; }
.iu_row_fields { display: grid; grid-template-columns: 1fr 110px; gap: 6px; margin-top: 8px; }
.iu_row_fields label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; min-width: 0; }
.iu_row_fields label i { flex: none; color: var(--pd_faint); font-size: 14px; width: 16px; text-align: center; }
.iu_row .form-control { height: 36px; font-size: 14px; border-radius: 8px; border-color: var(--pd_line); box-shadow: none; padding: 6px 10px; min-width: 0; }
.iu_row .form-control:focus { border-color: var(--pd_brand); box-shadow: none; }
.iu_row select.form-control { padding-right: 24px; }
.iu_row.is_unmatched .iu_staff { border-color: #e2b84a; background: #fff8e1; }
.iu_row .iu_value { font-weight: 700; text-align: right; }
.iu_row_rate { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; padding: 6px 10px; background: #f5f8f8; border-radius: 8px; font-size: 13px; color: var(--pd_muted); }
.iu_row_rate .iu_rate b { color: var(--pd_brand_deep); font-size: 15px; }
.iu_pill_replace { background: #e6f3f4; color: var(--pd_brand_deep); max-width: 100%; white-space: normal; text-align: left; }
.iu_none { margin-top: 12px; }
.asi_pill_role.hide_me { display: none; }

/* the done panel's rate column */
.iu_container .asi_result em { white-space: nowrap; }
.asi_result em b { color: var(--pd_brand_deep); font-style: normal; font-size: 15px; }
