/* ===== ระบบบันทึกการใช้บริการห้องสมุด — custom styles ===== */

body,
.btn,
.form-control,
.form-select,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    min-height: 100vh;
}

.navbar-brand i {
    color: #fff;
}

/* ---------- หน้าหลัก: ภาพพื้นหลัง + ปุ่มทับตำแหน่ง ---------- */
.home-stage {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    aspect-ratio: 1920 / 1080;
    overflow: hidden;
    background: #060a17;
}

.home-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
}

.hotspot-btn {
    position: absolute;
    top: 27.5%;
    height: 56%;
    border: 3px solid transparent;
    border-radius: 1.6vw;
    background: transparent;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.hotspot-btn:focus-visible {
    background-color: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .55);
    transform: translateY(-4px);
    outline: none;
}

@media (hover: hover) and (pointer: fine) {
    .hotspot-btn:hover {
        background-color: rgba(255, 255, 255, .18);
border-color: rgba(255, 255, 255, .7);
transform: translateY(-4px);
    }
}

.hotspot-btn.is-pressed {
    background-color: rgba(255, 255, 255, .18);
border-color: rgba(255, 255, 255, .7);
transform: translateY(-4px);
}

.hotspot-btn.disabled {
    cursor: progress;
    opacity: .6;
}

.hotspot-1 { left: 4.271%; width: 22.848%; }
.hotspot-2 { left: 27.396%; width: 22.337%; }
.hotspot-3 { left: 50.365%; width: 22.083%; }
.hotspot-4 { left: 72.885%; width: 22.983%; }

/* ---------- หน้ารายงาน ---------- */
.report-table th,
.report-table td {
    vertical-align: middle;
    text-align: center;
}

.report-table td.text-start {
    text-align: left;
}

.report-table tfoot td {
    font-weight: 700;
    background-color: #f8f9fe;
}

/* Argon Dashboard ลบเส้นขอบแถวสุดท้ายของ tbody ทุกตารางไว้เป็นค่าเริ่มต้น
   (.table tbody tr:last-child td{border-width:0}) ทำให้แถวสุดท้ายของตารางนี้เส้นหาย
   บังคับคืนเส้นขอบทุกด้านเฉพาะตารางรายงาน */
.report-table tbody tr:last-child td {
    border-width: 1px !important;
    border-color: var(--bs-table-border-color, #e9ecef) !important;
}

.chart-wrap {
    position: relative;
    height: 320px;
}

.flatpickr-input[readonly] {
    background-color: #fff;
    cursor: pointer;
}

/* ปีในหัวปฏิทินถูกบังคับเป็น พ.ศ. ผ่าน JS แล้ว ปิดการคลิกลูกศรปรับปีเพื่อกันปีเพี้ยน
   (นำทางข้ามปีได้ด้วยลูกศรเปลี่ยนเดือนแทน) */
.flatpickr-current-month input.cur-year {
    pointer-events: none;
}

.report-search-btn {
    display: flex;
    align-items: flex-end;
}

.report-search-btn .btn {
    /* ปุ่มของ Argon มี margin-bottom ติดมาโดย default ทำให้ปุ่มลอยสูงกว่าช่อง input
       เมื่อจัดชิดล่างด้วย flex ต้องรีเซ็ตเป็น 0 */
    margin-bottom: 0;
}
