/* Quản trị Lịch công tác trong Không gian làm việc (lich-admin-ui.js). */
.lich-admin-ui .card{margin:14px 0}
.lich-admin-ui .lich-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0}
.lich-admin-ui input[type="text"]{font:inherit;padding:7px 9px;border:1px solid #cbb87f;border-radius:7px;width:100%}
.lich-admin-ui input[type="file"]{font:inherit;padding:7px 0}
.lich-warn{background:#fff7db;border:1px solid #e0a83e;border-radius:9px;padding:8px 12px;margin:8px 0;font-size:14px}
.lich-edit-table input[type="text"]{min-width:130px}
/* Trình Xem/sửa từng tuần: Nội dung/Địa điểm cũng là textarea tự giãn
   toàn văn (trước đây input một dòng làm nội dung dài bị khuất). */
.lich-edit-table textarea[data-f]{font:inherit;line-height:1.35;padding:7px 9px;border:1px solid #cbb87f;border-radius:7px;resize:none;overflow:hidden;width:100%;box-sizing:border-box;background:#fff;color:inherit}
.lich-edit-table textarea[data-f="noi_dung"]{min-width:280px}
.lich-edit-table textarea[data-f="dia_diem"]{min-width:130px}
.lich-tv-flex{display:flex;gap:18px;flex-wrap:wrap;align-items:flex-start}
.lich-tv-qr{width:150px;min-height:150px}
.lich-tv-qr svg{width:150px;height:150px}
.lich-tv-side{flex:1;min-width:260px}
/* Ô Lái xe trong trình sửa: viền đứt + nền vàng nhạt để nhìn là biết đang chờ điền. */
.lich-admin-ui .drv-edit{border:1.5px dashed #b98a1c !important;background:#fffbe8}
.lich-admin-ui .drv-edit::placeholder{color:#8a6d1a;font-style:italic}
.lich-admin-ui .drv-edit:focus{outline:2px solid #e0a83e;border-style:solid !important}
/* Khối Lịch theo ngày (bản đã phát hành, sửa trực tiếp): cùng bảng 4 cột,
   nhãn buổi và MỘT màu chữ xanh dương thuần #0000FF như trang hiển thị
   /lich — token --lich-ink khai tại khối này vì KG làm việc không nạp
   lich.css. Nhãn buổi giữ style gốc (vàng/cam nhạt/đỏ thẫm). */
.lich-day-board{--lich-ink:#0000FF}
.lich-day-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.lich-day-head h3{margin:0}
.lich-day-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0}
.lich-day-controls .field{margin:0}
.lich-day-controls select{font:inherit;padding:8px 10px;border:1.5px solid #b9975b;border-radius:9px;background:#fff;min-height:40px}
.lich-day-nav{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.lich-day-nav button{font:inherit;padding:7px 10px;border:1.5px solid #b9975b;border-radius:9px;background:#fff;cursor:pointer;min-height:44px;line-height:1.25;text-align:center}
.lich-day-nav button.on{background:#f7c948;font-weight:700}
.lich-day-board .lich-holiday{text-align:center;background:#d9e6fb;color:var(--lich-ink);border:1.5px solid var(--lich-ink);font-weight:700;padding:10px;border-radius:10px;margin:10px 0}
.lich-day-board table.lich-table{width:100%;border-collapse:collapse;background:#fff;box-shadow:0 2px 10px rgba(90,60,10,.12);color:var(--lich-ink)}
/* Cỡ chữ bảng ngày quản trị NHỎ HƠN bản công khai /lich khoảng 15%
   (Duong chốt 23/11/2026: "thu nhỏ hơn chút, để hiển thị đầy đủ" — bảng
   rà soát trong KG làm việc ưu tiên chứa được nhiều nội dung trong một
   màn hình, đỡ cuộn; bản hiển thị /lich và TV giữ nguyên cỡ chữ cũ).
   Sàn nội dung giữ >= 12.5px để vẫn đọc rõ. */
.lich-day-board .lich-table th{background:#ffd400;color:var(--lich-ink);font-size:clamp(12px,.9vw,18px);padding:8px 10px;border:1.5px solid #b9975b;text-transform:uppercase;text-align:left}
.lich-day-board .lich-table td{border:1.5px solid #d8c491;padding:7px 9px;vertical-align:top;font-size:clamp(12.5px,.9vw,18px);line-height:1.35;color:var(--lich-ink)}
.lich-day-board .lich-table .pname{width:23%}
.lich-day-board .lich-table .pname .dc{display:block;font-style:italic;font-weight:400;font-size:clamp(11px,.75vw,14px);color:var(--lich-ink)}
.lich-day-board .lich-table .pname .nm{display:block;font-weight:800;font-size:clamp(13.5px,1vw,21px);color:var(--lich-ink)}
.lich-day-board .lich-table .pname .cv{display:block;font-size:clamp(11px,.75vw,14px);color:var(--lich-ink);margin-top:2px}
.lich-day-board .lich-table td.loc,.lich-day-board .lich-table td.drv{width:15%;color:var(--lich-ink)}
.lich-day-board tr.sess-chieu td{background:#fdf6e3}
.lich-day-board tr.sess-ca-ngay td{background:#fdf1ec}
.lich-day-board .chip{display:inline-block;font-size:10.5px;font-weight:800;padding:2px 7px;border-radius:999px;margin:0 8px 5px 0;vertical-align:2px;letter-spacing:.02em}
.lich-day-board .chip.SANG{background:#ffd400;color:#1c1503}
.lich-day-board .chip.CHIEU{background:#f6d9a8;color:#5c3a05;border:1px solid #e0a83e}
.lich-day-board .chip.TOI,.lich-day-board .chip.CA_NGAY{background:#8c1d2f;color:#fff}
/* Textarea tự giãn (autogrow): cấm cuộn nội bộ và cấm kéo tay — chiều cao
   do JS đặt đúng bằng nội dung nên toàn văn luôn hiện đủ như bản công khai. */
.lich-day-board textarea[data-f]{display:block;width:100%;box-sizing:border-box;font:inherit;line-height:1.35;padding:7px 9px;border:1px solid #cbb87f;border-radius:7px;resize:none;overflow:hidden;color:var(--lich-ink);background:#fff}
.lich-day-board input[data-f]{color:var(--lich-ink)}
.lich-day-board [data-f].saved{outline:2px solid #2e7d32}
.lich-day-board [data-f].save-err{outline:2px solid #be1e2d}
@media (max-width:680px){
  /* Điện thoại: nén gọn như trang hiển thị — chữ/đệm nhỏ lại, cột tên thu hẹp. */
  .lich-day-board .lich-table th{font-size:12.5px;padding:7px 5px}
  .lich-day-board .lich-table td{font-size:14.5px;padding:7px}
  .lich-day-board .lich-table .pname{width:30%}
  .lich-day-board .lich-table .pname .nm{font-size:16px}
  .lich-day-board .lich-table td.loc,.lich-day-board .lich-table td.drv{width:auto}
  .lich-day-nav button{flex:1 1 22%;padding:6px 4px;font-size:13.5px}
}
