/* records.css — สไตล์ "การลา / การลงเวลาปฏิบัติราชการ"
 * ใช้ทั้งฝั่งสมาชิก (#me-view) และฝั่งจัดการ (records panels)
 * โหลดต่อจาก styles.css + manage.css → ใช้ตัวแปร --card/--line/--shadow/--radius/--muted/--ink/--primary/--ring ได้
 * มือถือเป็นหลัก (base) แล้วค่อยขยายที่ 481 / 561 / 721 / 1025 */

/* ===== ป้ายสถานะเอกสาร (ใช้ร่วมทั้งสองฝั่ง) ===== */
.rec-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: "Prompt", sans-serif; font-size: 0.74rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.rec-status.st-pending { background: #fee2e2; color: #b91c1c; }
.rec-status.st-submitted { background: #dcfce7; color: #15803d; }
.rec-status.st-waived { background: #e2e8f0; color: #475569; }

.rec-doc-file { font-size: 0.85rem; color: #1d4ed8; text-decoration: none; font-weight: 500; word-break: break-word; }
.rec-doc-file:hover { text-decoration: underline; }
.rec-doc-size { color: var(--muted); font-weight: 400; }
.rec-doc-waived { font-size: 0.85rem; color: var(--muted); }

/* ===================== ฝั่งสมาชิก (#me-view) ===================== */
.me { padding: 22px 0 80px; }
.me-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.me-title { font-family: "Prompt", sans-serif; font-weight: 700; font-size: clamp(1.25rem, 4.5vw, 1.7rem); margin: 0; line-height: 1.3; }
.me-who { color: var(--muted); font-size: 0.9rem; margin: 4px 0 0; }
.btn-back { flex-shrink: 0; font-size: 0.85rem; padding: 8px 14px; }

/* การ์ดสรุป */
.me-summary { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.sum-hero {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px;
  border-radius: var(--radius); color: #fff; box-shadow: var(--shadow);
}
.sum-hero.has-pending { background: linear-gradient(135deg, #ef4444 0%, #f97316 100%); }
.sum-hero.all-clear { background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%); }
.sum-hero-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.sum-hero-num { font-family: "Prompt", sans-serif; font-weight: 700; font-size: 2.4rem; line-height: 1; }
.sum-hero-text { font-size: 0.95rem; opacity: 0.95; margin-top: 2px; }
.sum-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sum-stat {
  background: var(--card); border: 1px solid #eef2ff; border-radius: 14px;
  padding: 12px 10px; text-align: center; box-shadow: var(--shadow);
}
.sum-stat b { display: block; font-family: "Prompt", sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.sum-stat span { font-size: 0.8rem; color: var(--muted); }

/* ตัวกรอง */
.me-filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.me-tabs { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.me-tab {
  flex: 0 0 auto; font-family: "Prompt", sans-serif; font-size: 0.9rem;
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.me-tab:hover { color: var(--ink); border-color: var(--primary); }
.me-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.me-pending-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink); cursor: pointer; user-select: none; }
.me-pending-toggle input { width: 18px; height: 18px; accent-color: var(--primary); }

/* รายการ (การ์ด) */
.me-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.rec-card {
  background: var(--card); border: 1px solid #eef2ff;
  border-left: 5px solid var(--type-color, #3b82f6);
  border-radius: 16px; padding: 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px;
}
.rec-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rec-type { font-family: "Prompt", sans-serif; font-weight: 600; font-size: 0.98rem; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.rec-type-icon { font-size: 1.1rem; }
.rec-date { font-size: 0.88rem; color: var(--muted); }
.rec-note { font-size: 0.88rem; color: var(--ink); background: #f8fafc; border-radius: 10px; padding: 8px 10px; word-break: break-word; }
.rec-doc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; }
.rec-doc-actions { display: flex; gap: 6px; }
.rec-doc-hint { font-size: 0.82rem; color: #b91c1c; }
.me-empty { text-align: center; color: var(--muted); padding: 44px 0; font-size: 1rem; }

/* ===================== ฝั่งจัดการ (admin) ===================== */
/* แถบเครื่องมือกรอง */
.rec-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 14px; }
.rec-toolbar input, .rec-toolbar select {
  flex: 1 1 100%; min-width: 0; padding: 9px 12px; border: 1.5px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: 0.9rem; background: #fff; color: var(--ink);
}
.rec-toolbar input:focus, .rec-toolbar select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); outline: none; }

/* รายการ (แถว) */
.rec-list { display: flex; flex-direction: column; gap: 10px; }
.rec-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px;
  border: 1px solid #eef2ff; border-left: 5px solid var(--type-color, #3b82f6);
  border-radius: 12px; padding: 12px 14px; background: #fff;
}
.rec-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.rec-row-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rec-row-person { font-size: 0.86rem; color: var(--ink); }
.rec-row-meta { font-size: 0.82rem; color: var(--muted); word-break: break-word; }
.rec-kind-tag { font-family: "Prompt", sans-serif; font-size: 0.72rem; font-weight: 600; background: #eef2ff; color: #4338ca; padding: 1px 8px; border-radius: 6px; }
.rec-row-group { color: var(--muted); }
.rec-row-doc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 3px; }
.rec-row-actions { display: flex; gap: 7px; width: 100%; }

/* ช่องติ๊ก (modal) */
.check-field { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--ink); cursor: pointer; margin-bottom: 16px; }
.check-field input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }

/* ภาพรวมค้างเอกสาร */
.rec-totals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0 18px; }
.rt-card { border-radius: 14px; padding: 14px 10px; text-align: center; border: 1px solid var(--line); }
.rt-card b { display: block; font-family: "Prompt", sans-serif; font-weight: 700; font-size: 1.6rem; }
.rt-card span { font-size: 0.8rem; color: var(--muted); }
.rt-pending { background: #fef2f2; border-color: #fecaca; } .rt-pending b { color: #b91c1c; }
.rt-submitted { background: #f0fdf4; border-color: #bbf7d0; } .rt-submitted b { color: #15803d; }
.rt-waived { background: #f8fafc; } .rt-waived b { color: #475569; }
.rt-total { background: #eff6ff; border-color: #bfdbfe; } .rt-total b { color: #1d4ed8; }

.rec-pending-list { display: flex; flex-direction: column; gap: 8px; }
.pending-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  text-align: left; border: 1px solid #eef2ff; border-radius: 12px; padding: 12px 14px;
  background: #fff; cursor: pointer; font-family: inherit;
}
.pending-row:hover { background: #f8fafc; border-color: var(--line); }
.pending-name { font-family: "Prompt", sans-serif; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.pending-count { flex-shrink: 0; font-family: "Prompt", sans-serif; font-weight: 600; font-size: 0.82rem; color: #b91c1c; background: #fee2e2; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }

/* ===== breakpoints ===== */
@media (min-width: 561px) {
  .me-filters { flex-direction: row; align-items: center; justify-content: space-between; }
  .sum-stats { grid-template-columns: repeat(4, 1fr); }
  .rec-totals { grid-template-columns: repeat(4, 1fr); }
  .rec-toolbar input { flex: 2 1 240px; }
  .rec-toolbar select { flex: 1 1 150px; }
}
@media (min-width: 721px) {
  .me-summary { flex-direction: row; align-items: stretch; }
  .sum-hero { flex: 0 0 auto; min-width: 300px; }
  .sum-stats { flex: 1; grid-template-columns: repeat(4, 1fr); }
  .me-list { grid-template-columns: repeat(2, 1fr); }
  .rec-row { flex-wrap: nowrap; }
  .rec-row-actions { width: auto; flex-shrink: 0; align-self: center; }
}
@media (min-width: 1025px) {
  .me-list { grid-template-columns: repeat(3, 1fr); }
}

/* ===================== สลับมุมมอง รายการ / ปฏิทิน (สมาชิก) ===================== */
.me-view-toggle {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px;
  background: #eef2ff; border-radius: 999px;
}
.mv-btn {
  flex: 1 1 auto; font-family: "Prompt", sans-serif; font-size: 0.9rem; font-weight: 500;
  padding: 8px 18px; border: none; border-radius: 999px; background: transparent;
  color: var(--muted); cursor: pointer; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease;
}
.mv-btn.active { background: #fff; color: #4338ca; box-shadow: 0 4px 10px -6px rgba(15, 23, 42, 0.35); }

/* ===================== ปฏิทินสมาชิก ===================== */
.me-calendar {
  background: var(--card); border: 1px solid #eef2ff; border-radius: 16px;
  box-shadow: var(--shadow); padding: 14px;
}
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-title { flex: 1; text-align: center; font-family: "Prompt", sans-serif; font-weight: 600; font-size: 1.02rem; }
.cal-nav {
  width: 38px; height: 38px; flex-shrink: 0; border: 1.5px solid var(--line); background: #fff;
  border-radius: 10px; font-size: 1.2rem; line-height: 1; color: var(--ink); cursor: pointer;
}
.cal-nav:hover { background: #f1f5f9; }
.cal-today {
  flex-shrink: 0; font-family: "Prompt", sans-serif; font-size: 0.8rem; font-weight: 500;
  padding: 8px 12px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; color: #4338ca; cursor: pointer;
}
.cal-today:hover { background: #eef2ff; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-weekdays span { text-align: center; font-size: 0.72rem; font-weight: 600; color: var(--muted); padding: 2px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  position: relative; min-height: 46px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; padding: 3px 4px; display: flex; flex-direction: column; align-items: flex-start;
}
.cal-cell.is-blank { border: none; background: transparent; }
.cal-cell.is-empty { color: #cbd5e1; }
.cal-cell.has-rec { cursor: pointer; }
.cal-cell.has-rec:hover { border-color: var(--primary); background: #f8fafc; }
.cal-cell.has-pending { border-color: #fca5a5; background: #fef2f2; }
.cal-cell.is-today { box-shadow: 0 0 0 2px var(--primary) inset; }
.cal-cell.is-selected { background: #e0e7ff; border-color: var(--primary); }
.cal-num { font-size: 0.78rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.cal-cell.is-empty .cal-num { font-weight: 400; }
.cal-dots { display: flex; flex-wrap: wrap; gap: 2px; margin-top: auto; padding-top: 2px; }
.cal-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.cal-more { font-size: 0.6rem; font-weight: 700; color: var(--muted); line-height: 1; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 0.78rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend-pending { color: #b91c1c; font-weight: 500; }
/* day detail */
.cal-day-detail { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.cdd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cdd-head strong { font-family: "Prompt", sans-serif; font-size: 0.98rem; }
.cdd-close { width: 30px; height: 30px; border: none; background: #f1f5f9; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 0.9rem; }
.cdd-close:hover { background: #e2e8f0; }
.cdd-list { display: flex; flex-direction: column; gap: 10px; }

/* ===================== ปฏิทินย่อเลือกหลายวัน (modal admin) ===================== */
.r-cal { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: #fff; }
.rc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rc-title { flex: 1; text-align: center; font-family: "Prompt", sans-serif; font-weight: 600; font-size: 0.92rem; }
.rc-nav { width: 34px; height: 34px; border: 1.5px solid var(--line); background: #fff; border-radius: 9px; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--ink); }
.rc-nav:hover { background: #f1f5f9; }
.rc-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 3px; }
.rc-weekdays span { text-align: center; font-size: 0.68rem; font-weight: 600; color: var(--muted); }
.rc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.rc-cell {
  aspect-ratio: 1; min-height: 38px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-family: inherit; font-size: 0.85rem; color: var(--ink); cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center; transition: background 0.12s ease;
}
.rc-cell:hover { background: #eef2ff; }
.rc-cell.is-blank { border: none; background: transparent; cursor: default; }
.rc-cell.is-today { box-shadow: 0 0 0 2px var(--primary) inset; }
.rc-cell.is-sel { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.r-day-add { display: flex; gap: 8px; margin-bottom: 10px; }
.r-day-add input { flex: 1; min-width: 0; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 0.9rem; }
.r-day-add input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); outline: none; }
.r-day-add .btn { flex: 0 0 auto; }
.r-day-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 20px; }
.r-day-empty { font-size: 0.84rem; color: var(--muted); }
.r-day-chip {
  display: inline-flex; align-items: center; gap: 4px; font-family: "Prompt", sans-serif; font-size: 0.8rem;
  background: #eef2ff; color: #4338ca; padding: 5px 6px 5px 12px; border-radius: 999px;
}
.r-chip-x { border: none; background: rgba(67, 56, 202, 0.14); color: #4338ca; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 0.72rem; line-height: 1; }
.r-chip-x:hover { background: rgba(67, 56, 202, 0.28); }

/* ===================== กล่องยืนยันก่อนปิด (กันข้อมูลหาย) ===================== */
#discard-modal { z-index: 60; }
.discard-msg { font-size: 0.96rem; color: var(--ink); margin: 4px 0 18px; text-align: center; }
.discard-foot { display: flex; flex-direction: column; gap: 8px; }
.discard-foot .btn { width: 100%; min-width: 0; }

@media (min-width: 481px) {
  .me-view-toggle { display: flex; }
  .cal-cell { min-height: 52px; }
  .cal-dot { width: 8px; height: 8px; }
  .discard-foot { flex-direction: row; justify-content: flex-end; }
  .discard-foot .btn { width: auto; min-width: 120px; }
}
@media (min-width: 721px) {
  .cal-cell { min-height: 62px; }
}

/* ===================== ครึ่งวัน + ช่วงเวลา (record modal) ===================== */
.r-time-range { display: flex; align-items: center; gap: 8px; }
.r-time-range input[type="time"] { flex: 1; min-width: 0; }

/* ===================== บล็อกแนะนำเอกสารที่ต้องส่ง (การ์ดสมาชิก) ===================== */
.rec-doc-guide {
  background: #eff6ff;
  border-inline-start: 3px solid var(--type-color, #2563eb);
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.rec-doc-guide-note { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.rec-doc-links { display: inline-flex; gap: 6px; margin-inline-start: 6px; }
.rec-doc-okline { color: #16a34a; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
/* เลขที่หนังสือที่ฝ่ายบุคคลออก (แสดงบนการ์ดของสมาชิกเมื่อส่งแล้ว) */
.rec-doc-no { font-size: 0.84rem; color: #475569; margin: 0 0 6px; }
.rec-doc-no b { color: #4338ca; font-weight: 700; }

/* ===================== แถบรอบประเมิน + เกณฑ์ (หน้า /me) ===================== */
.me-round {
  background: #eef2ff; border: 1px solid #e0e7ff; border-radius: 12px;
  padding: 9px 14px; font-size: 0.9rem; color: #3730a3; margin-bottom: 4px;
}
.me-round b { font-weight: 700; }
.me-round span { color: var(--muted); font-weight: 400; }
.sum-limit {
  margin-top: 4px; padding: 10px 14px; background: var(--card);
  border: 1px solid #eef2ff; border-radius: 14px; font-size: 0.9rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.lim-chip {
  font-family: "Prompt", sans-serif; font-size: 0.82rem; font-weight: 600;
  padding: 3px 12px; border-radius: 999px; background: #dcfce7; color: #15803d; white-space: nowrap;
}
.lim-chip.over { background: #fee2e2; color: #b91c1c; }

/* ===================== แถบวันลาสะสม (สรุปหน้า /me) ===================== */
.sum-leave { margin-top: 10px; padding: 10px 14px; background: var(--card); border: 1px solid #eef2ff; border-radius: 14px; font-size: 0.92rem; }
.sum-leave-title { font-weight: 600; }
.sum-leave-item b { font-size: 1.02em; }

/* การ์ดสรุปการลารวม (แยกประเภท + เทียบเกณฑ์ในที่เดียว — แทน sum-limit + sum-leave) */
.sum-eval {
  margin-top: 10px; padding: 12px 14px; background: var(--card);
  border: 1px solid #eef2ff; border-radius: 14px; font-size: 0.92rem;
  display: flex; flex-direction: column; gap: 8px;
}
.sum-eval-detail { line-height: 1.7; }
.sum-eval-gauge {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding-top: 8px; border-top: 1px dashed var(--line);
}
.sum-eval-lbl { font-weight: 600; }
.sum-eval-none { color: var(--muted); }
.sum-eval .sum-leave-item b { font-size: 1.02em; }

/* ===================== แถบเลือกรอบประเมิน (admin ดูย้อนหลัง) ===================== */
.round-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.round-bar .round-label { flex: 1; min-width: 160px; text-align: center; font-family: "Prompt", sans-serif; font-weight: 600; font-size: 0.92rem; color: #4338ca; }

/* ปุ่มโหลดเพิ่ม (pagination) */
.load-more { width: 100%; margin-top: 6px; }

/* ===================== รายงานรายบุคคล (หน้าสรุปแอดมิน) ===================== */
.rec-report-head { margin: 22px 0 4px; font-size: 1.02rem; }
.report-limits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ช่องปรับจำนวนวันลา (record modal) */
.r-days-row { display: flex; gap: 8px; }
.r-days-row input { flex: 1; min-width: 0; }
.r-days-row .btn { flex: 0 0 auto; }
.r-days-field em b { color: var(--ink); }
.rec-report { display: flex; flex-direction: column; gap: 8px; }
.report-row {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px;
}
.report-who { font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.report-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.report-chip {
  border: 1px solid var(--line); border-inline-start: 3px solid var(--type-color, #64748b);
  border-radius: 999px; padding: 2px 10px; font-size: 0.82rem; white-space: nowrap;
}
.report-total { margin-inline-start: auto; font-size: 0.85rem; color: var(--muted); }

/* ค้นหา + เรียง รายงานรายบุคคล — สไตล์เดียวกับ .rec-toolbar (ให้เข้ากับ search bar อื่น ๆ) */
.rec-report-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; }
.rec-report-controls input[type="search"], .rec-report-controls select {
  padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 0.9rem; background: #fff; color: var(--ink);
}
.rec-report-controls input[type="search"] { flex: 2 1 240px; min-width: 0; }
.rec-report-controls select { flex: 1 1 180px; }
.rec-report-controls input[type="search"]:focus, .rec-report-controls select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); outline: none;
}

/* แถวรายงานแบบคลิกได้ (ปุ่ม) */
.report-row-btn {
  width: 100%; text-align: start; font: inherit; color: inherit;
  cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.report-row-btn:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(59, 130, 246, 0.12); }
.report-row-btn:active { transform: translateY(1px); }

/* หัวข้อกลุ่มสาระ (โหมดจัดกลุ่ม) */
.report-group-head {
  font-family: "Prompt", sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--primary);
  margin: 10px 0 2px; padding-inline-start: 2px;
}
.report-group-head:first-child { margin-top: 0; }

/* รายการรายวัน (ใน modal — ลาวันไหนบ้าง) */
.report-reclist { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.report-reclist-head { font-family: "Prompt", sans-serif; font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; }
.report-rec-ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.report-rec {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-inline-start: 3px solid var(--type-color, #94a3b8);
  border-radius: 10px; padding: 8px 12px; font-size: 0.88rem;
}
.report-rec-type { font-weight: 600; white-space: nowrap; }
.report-rec-when { color: var(--muted); }
.report-rec-status { margin-inline-start: auto; font-size: 0.78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; white-space: nowrap; background: #f1f5f9; color: #475569; }
.report-rec-status.s-submitted { background: #dcfce7; color: #15803d; }
.report-rec-status.s-pending { background: #fee2e2; color: #b91c1c; }
.report-rec-status.s-waived { background: #e0e7ff; color: #4338ca; }

/* ===== <select> ในธีม: chevron ของเราแทน native arrow (ทุก dropdown ทั้งแอป) =====
   วางท้ายไฟล์นี้ (โหลดหลัง manage.css) เพื่อให้ background-image ชนะ background:#fff (shorthand)
   ของ .field / .rec-toolbar / .rec-report-controls / .users-toolbar — เติมแค่ chevron+ที่ว่างขวา
   ไม่แตะสี/ขอบ/โฟกัสเดิม appearance:none ได้จากกฎ select ใน styles.css แล้ว */
.field select,
.rec-toolbar select,
.rec-report-controls select,
.users-toolbar #user-group-filter,
.users-toolbar #user-role-filter {
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding-right: 34px;
}
