/* TNW Directory D03 — ส่วนเสริมของหน้าจัดการ (ใช้ร่วมกับ id-theme.css · ตัวแปรเชิงความหมายเท่านั้น ห้ามสีตายตัว) */
.tnw-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tnw-toolbar .tnw-input { flex: 1 1 150px; width: auto; min-width: 0; }
.tnw-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tnw-field--check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.tnw-field--check label { color: var(--ink); }
.tnw-field--wide { grid-column: 1 / -1; }
textarea.tnw-input { min-height: 88px; padding-block: 10px; resize: vertical; }
.tnw-dialog--wide { max-width: min(94vw, 640px); width: 100%; }
.tnw-dialog h2 { margin-bottom: 12px; }
.tnw-kv { display: grid; gap: 2px; }
.tnw-kv__k { color: var(--muted); }
.tnw-more { display: flex; justify-content: center; }
.tnw-who { max-width: 100%; }

/* ปฏิทินรายเดือน */
.tnw-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tnw-cal__dow { text-align: center; color: var(--muted); padding: 4px 0; }
.tnw-cal__day { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink); display: grid; place-items: center; align-content: center; gap: 2px; cursor: pointer; padding: 2px; font-family: var(--font-head); }
.tnw-cal__day--other { opacity: .45; }
.tnw-cal__day--today { border-color: var(--primary); border-width: 2px; }
.tnw-cal__day[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.tnw-cal__dots { display: flex; gap: 3px; min-height: 8px; }
.tnw-cal__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-bright); }
.tnw-cal__day[aria-pressed="true"] .tnw-cal__dot { background: var(--on-primary); }
.tnw-cal__dot[data-kind="freeze"] { background: var(--err); }
.tnw-cal__dot[data-kind="holiday"] { background: var(--ok); }
.tnw-cal__dot[data-kind="midterm_exam"], .tnw-cal__dot[data-kind="final_exam"] { background: var(--warn); }
.tnw-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tnw-cal__title { font-family: var(--font-head); font-size: 1.25rem; }
.tnw-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tnw-events__item { display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--line); }
.tnw-events__top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.tnw-events__title { font-family: var(--font-head); overflow-wrap: anywhere; }
@media (min-width: 768px) { .tnw-cal__day { min-height: 64px; } }
