/* ===== Sukhumvit Set — วางไฟล์ฟอนต์ .woff2 ใน assets/fonts (ดู README.txt) ===== */
@font-face { font-family: 'Sukhumvit Set'; src: url('../fonts/SukhumvitSet-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Sukhumvit Set'; src: url('../fonts/SukhumvitSet-Text.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Sukhumvit Set'; src: url('../fonts/SukhumvitSet-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Sukhumvit Set'; src: url('../fonts/SukhumvitSet-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Sukhumvit Set'; src: url('../fonts/SukhumvitSet-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root { --primary: #4F46E5; }
* { font-family: 'Sukhumvit Set', 'Noto Sans Thai', 'Segoe UI', sans-serif; }
body { background: #F5F7FA; }

/* scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }

/* sidebar */
.sidebar-link { display: flex; align-items: center; gap: .75rem; padding: .65rem 1rem; border-radius: .75rem; color: #64748b; font-weight: 500; transition: all .15s; font-size: .92rem; }
.sidebar-link:hover { background: #eef2ff; color: var(--primary); }
.sidebar-link.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.35); }
.sidebar-link i { width: 1.25rem; text-align: center; }

/* form controls */
.inp { width: 100%; border: 1px solid #e2e8f0; border-radius: .75rem; padding: .55rem .9rem; font-size: .92rem; background: #fff; outline: none; transition: border .15s, box-shadow .15s; }
.inp:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.lbl { display: block; font-size: .85rem; font-weight: 600; color: #475569; margin-bottom: .35rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border-radius: .75rem; font-weight: 600; font-size: .9rem; transition: all .15s; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; } .btn-primary:hover { background: #4338ca; }
.btn-outline { border: 1px solid #e2e8f0; color: #475569; background: #fff; } .btn-outline:hover { background: #f8fafc; }
.btn-danger { background: #fee2e2; color: #dc2626; } .btn-danger:hover { background: #fecaca; }
.btn-success { background: #10B981; color: #fff; } .btn-success:hover { background: #059669; }

/* card + table */
.card { background: #fff; border-radius: 1rem; box-shadow: 0 1px 3px rgba(15,23,42,.06); }
table.dataTable { font-size: .9rem; }
table.dataTable thead th { background: #f8fafc; color: #475569; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .02em; }
table.dataTable tbody tr:hover { background: #f8fafc; }
.dataTables_wrapper .dataTables_length select, .dataTables_wrapper .dataTables_filter input { border: 1px solid #e2e8f0; border-radius: .5rem; padding: .3rem .6rem; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--primary) !important; color: #fff !important; border-radius: .5rem; border: none !important; }

/* print */
@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .print-area { box-shadow: none !important; margin: 0 !important; }
}
