/* ค้นหาห้องว่างตามวันที่และเวลา — ใช้ร่วมกัน /classroom และ /meetingroom (prefix rs-)
   markup: layouts/partials/room-search.php · JS: public/js/room-search.js
   ห้ามตั้ง display ให้ element ที่สลับ class hidden (จะทับ .hidden ของ Tailwind) */
.rs-control {
    width: 100%; height: 40px; padding: 0 12px;
    font-size: 16px; /* มือถือ: 16px กัน iOS ซูมตอนโฟกัส */
    color: #111827; background-color: #fff;
    border: 1px solid #9ca3af; border-radius: 10px;
    touch-action: manipulation;
}
@media (min-width: 768px) { .rs-control { height: 34px; font-size: 14px; } }
.rs-control:focus-visible { border-color: #15803d; box-shadow: 0 0 0 3px rgba(22, 163, 74, .25); }
.rs-control[aria-invalid="true"] { border-color: #b91c1c; box-shadow: 0 0 0 1px #b91c1c; }
.rs-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 32px; padding: 0 12px; font-size: 13px; font-weight: 500; line-height: 1;
    border: 1px solid transparent; border-radius: 9px; white-space: nowrap;
    touch-action: manipulation;
}
.rs-btn:focus-visible { box-shadow: 0 0 0 3px rgba(22, 163, 74, .35); }
.rs-btn-primary { background-color: #15803d; color: #fff; }
.rs-btn-primary:hover { background-color: #166534; }
.rs-btn-primary[aria-disabled="true"] { opacity: .75; cursor: progress; }
.rs-btn-quiet { background-color: #fff; color: #374151; border-color: #d1d5db; }
.rs-btn-quiet:hover { background-color: #f9fafb; border-color: #9ca3af; }
.rs-busy-summary { list-style: none; }
.rs-busy-summary::-webkit-details-marker { display: none; }
.rs-busy-summary:focus-visible { box-shadow: 0 0 0 3px rgba(22, 163, 74, .35); outline: none; }
.rs-busy-caret { transition: transform .15s; }
#rs-busy[open] .rs-busy-caret { transform: rotate(90deg); }
#rs-grid.rs-loading { opacity: .5; transition: opacity .15s; }
/* แถบเวลาทั้งวันของห้อง: 1 ช่อง = 1 ช่วงเวลาจอง กรอบดำ = ช่วงที่ค้นหา */
.rs-day { position: relative; padding: 3px 0; }
.rs-strip { display: flex; gap: 1px; height: 10px; border-radius: 3px; overflow: hidden; }
.rs-strip > span { flex: 1 1 0; min-width: 0; }
.rs-f { background-color: #4ade80; } /* ว่าง */
.rs-c { background-color: #0284c7; } /* มีเรียน */
.rs-b { background-color: #d97706; } /* มีการจอง */
.rs-e { background-color: #1f2937; } /* ช่วงสอบ */
.rs-p { background-color: #d1d5db; } /* ผ่านไปแล้ว */
.rs-window { position: absolute; top: 0; bottom: 0; border: 2px solid #111827; border-radius: 4px; pointer-events: none; }
.rs-ends { display: flex; justify-content: space-between; margin-top: 2px; font-size: 10px; line-height: 1.2; color: #6b7280; font-variant-numeric: tabular-nums; }
.rs-swatch { display: inline-block; width: 14px; height: 8px; border-radius: 2px; vertical-align: middle; }
.rs-swatch.rs-window-swatch { height: 12px; background: transparent; border: 2px solid #111827; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
    .rs-busy-caret, #rs-grid.rs-loading { transition: none; }
}
