/* FML theme — ชุดสีทอง/ครีม/น้ำตาลโอลีฟ (อ้างอิงจากภาพตัวอย่าง)  โหลดเป็นไฟล์สุดท้ายเพื่อทับสไตล์ของไลบรารี */
:root{
  --fml-gold:#f2c335; --fml-gold-d:#d9a91a; --fml-gold-l:#fde68a;
  --fml-cream:#fffbe8; --fml-cream-2:#fff4c7;
  --fml-olive:#7a5c00; --fml-olive-d:#4a3800; --fml-ink:#3d2e00;
  --fml-bg-dark:#1f1a0c; --fml-surface-dark:#2b2410;
}
::selection{background:var(--fml-gold);color:var(--fml-ink)}
a{transition:color .2s}
a:hover{color:var(--fml-gold-d)}
body::-webkit-scrollbar-thumb{background:var(--fml-gold)!important}
/* SweetAlert2 / Alertify */
.swal2-styled.swal2-confirm{background-color:var(--fml-gold)!important;color:var(--fml-ink)!important;border-radius:10px}
.swal2-styled.swal2-cancel{border-radius:10px}
.swal2-popup{border-radius:16px}
.swal2-icon.swal2-info,.swal2-icon.swal2-question{border-color:var(--fml-gold)!important;color:var(--fml-olive)!important}
.alertify-button-ok,.alertify-button-ok:hover,.alertify-button-ok:focus{background:var(--fml-gold)!important;color:var(--fml-ink)!important;border-color:var(--fml-gold-d)!important;text-shadow:none!important}
/* DataTables */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{background:var(--fml-gold)!important;border-color:var(--fml-gold-d)!important;color:var(--fml-ink)!important}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover{background:var(--fml-gold-l)!important;border-color:var(--fml-gold)!important;color:var(--fml-ink)!important}
table.dataTable thead th{background:var(--fml-cream-2);color:var(--fml-olive-d);border-bottom:2px solid var(--fml-gold)}
table.dataTable tbody tr:hover{background:var(--fml-cream-2)}
table.dataTable.stripe tbody tr.odd{background:var(--fml-cream)}
/* Select2 / datepicker */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected]{background:var(--fml-gold)!important;color:var(--fml-ink)!important}
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-search--dropdown .select2-search__field:focus{border-color:var(--fml-gold-d)!important}
.datepicker table tr td.active,.datepicker table tr td.active:hover,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_current{background:var(--fml-gold)!important;color:var(--fml-ink)!important;box-shadow:none!important}
/* Form focus */
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--fml-gold-d)!important;box-shadow:0 0 0 3px rgba(242,195,53,.35)!important}
/* ปุ่มหลัก (Bootstrap-like) */
.btn-primary,.btn-info{background-color:var(--fml-gold)!important;border-color:var(--fml-gold-d)!important;color:var(--fml-ink)!important}
.btn-primary:hover,.btn-info:hover{background-color:var(--fml-gold-d)!important}
.badge-primary,.bg-primary{background-color:var(--fml-olive)!important;color:#fff!important}
.text-primary{color:var(--fml-olive)!important}
