/* Trang Quy định chấm công (/config/timekeeping/rules) — chỉ áp dụng trong .rules-page.
   Nguyên nhân tràn trên điện thoại: .icon-text toàn cục (admin-app.css) đặt nowrap + ellipsis cho chữ,
   và nhiều hàng flex không cho phần tử con co lại (min-width mặc định = auto). */

.rules-page .rules-remind-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

@media screen and (max-width: 480px) {
  .rules-page {
    /* Chrome WebView tự phóng chữ ở khối tràn ngang → các dòng cùng cấp lệch cỡ chữ */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
  }

  .rules-page .icon-text {
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
  }

  .rules-page .icon-text > *:not(.icon) {
    min-width: 0;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .rules-page .is-flex > *,
  .rules-page .field > *,
  .rules-page .control {
    min-width: 0;
  }

  .rules-page .rules-remind-row {
    flex-wrap: wrap;
    white-space: normal;
  }

  .rules-page .rules-wrap-row {
    flex-wrap: wrap;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
