/* =====================================================================
   LcDatePicker — giao diện dùng chung cho bộ chọn ngày (xem lc-datepicker.js).
   Ô hiển thị mượn luôn .form-control của màn chủ nên tự khớp kích thước;
   phần lịch bật lên dùng tông accent #1F6FDD của khu quản trị.
   ===================================================================== */
.lc-dp { position: relative; width: 100%; }
.lc-dp-native { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.lc-dp-input { padding-right: 38px !important; cursor: pointer; }
.lc-dp-input::placeholder { color: #AEB4C0; }

.lc-dp-ic {
  position: absolute; top: 0; right: 0; height: 100%; width: 38px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: #8A93A5; cursor: pointer;
  border-radius: 0 6px 6px 0; transition: color .15s ease;
}
.lc-dp-ic:hover, .lc-dp-open .lc-dp-ic { color: #1F6FDD; }
.lc-dp-ic:focus { outline: none; }
.lc-dp-ic:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(31,111,221,.22); border-radius: 6px; }

/* ---- bảng lịch ---- */
.lc-dp-pop {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 1200;
  width: 288px; padding: 12px; box-sizing: border-box;
  background: #fff; border: 1px solid #E6E9EF; border-radius: 14px;
  box-shadow: 0 14px 36px rgba(18,36,63,.16), 0 2px 8px rgba(18,36,63,.07);
  font-family: inherit; color: #37415B;
  transform-origin: top center;
}
.lc-dp.lc-dp-open > .lc-dp-pop { display: block; animation: lcDpIn .14s ease; }
.lc-dp-pop.lc-dp-up { top: auto; bottom: calc(100% + 6px); transform-origin: bottom center; }
.lc-dp-pop.lc-dp-right { left: auto; right: 0; }
@keyframes lcDpIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

.lc-dp-head { display: flex; align-items: center; gap: 2px; margin-bottom: 8px; }
.lc-dp-title { flex: 1; text-align: center; font-size: 14px; font-weight: 700; color: #123F8F; letter-spacing: -.01em; }
.lc-dp-nav {
  width: 30px; height: 30px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: #5A6478; border-radius: 9px; cursor: pointer; transition: background .13s, color .13s;
}
.lc-dp-nav.lc-dp-rev svg { transform: scaleX(-1); }
.lc-dp-nav:hover { background: #EEF4FC; color: #1F6FDD; }
.lc-dp-nav:focus { outline: none; }
.lc-dp-nav:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(31,111,221,.22); }

.lc-dp-wd { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 2px; }
.lc-dp-wd span { text-align: center; font-size: 11px; font-weight: 700; color: #99A1B2; padding: 5px 0; text-transform: uppercase; letter-spacing: .02em; }
.lc-dp-wd .lc-dp-sun { color: #E5796F; }

.lc-dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.lc-dp-day {
  height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: #37415B; font-size: 13px; font-family: inherit;
  border-radius: 9px; cursor: pointer; transition: background .12s, color .12s; position: relative;
}
.lc-dp-day:hover { background: #EEF4FC; color: #1F6FDD; }
.lc-dp-day.lc-dp-sund { color: #E5796F; }
.lc-dp-day.lc-dp-out { color: #C4CAD5; }
.lc-dp-day.lc-dp-out.lc-dp-sund { color: #ECB9B3; }
.lc-dp-day.lc-dp-today { font-weight: 700; color: #1F6FDD; box-shadow: inset 0 0 0 1.5px #AFCCF4; }
.lc-dp-day.lc-dp-sel, .lc-dp-day.lc-dp-sel:hover { background: #1F6FDD; color: #fff; font-weight: 700; box-shadow: 0 2px 6px rgba(31,111,221,.35); }
.lc-dp-day.lc-dp-dis, .lc-dp-day.lc-dp-dis:hover { color: #D2D7E0; background: transparent; cursor: not-allowed; box-shadow: none; }
.lc-dp-today-btn[disabled] { color: #C4CAD5; cursor: not-allowed; background: transparent; }
.lc-dp-input:disabled, .lc-dp-ic:disabled { cursor: not-allowed; opacity: .7; }
.lc-dp-day:focus { outline: none; }
.lc-dp-day:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(31,111,221,.45); }

.lc-dp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 9px; border-top: 1px solid #EEF0F4; }
.lc-dp-today-btn, .lc-dp-clear-btn { border: 0; background: transparent; font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 4px 6px; border-radius: 6px; transition: background .12s, color .12s; }
.lc-dp-today-btn { color: #1F6FDD; }
.lc-dp-today-btn:hover { background: #EEF4FC; }
.lc-dp-clear-btn { color: #8A93A5; }
.lc-dp-clear-btn:hover { background: #F6F7F9; color: #E5484D; }
.lc-dp-today-btn:focus, .lc-dp-clear-btn:focus { outline: none; }
.lc-dp-today-btn:focus-visible, .lc-dp-clear-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(31,111,221,.22); }
