/* bs5_app.css — (12/11/2026) class ของระบบบน Bootstrap 5 (แทน class BS3 ที่ BS5 ไม่มี) · โหลดใน backoffice/linkheader.php ต่อจาก bootstrap 5
   ห้ามใส่กฎ BS3 ที่นี่ — ไฟล์นี้อยู่ถาวรหลังลบ bs3_compat.css
   (13/11/2026 ผู้ใช้เลือกแบบ ข) ยกเว้นส่วน "ฟอร์มของระบบ" ท้ายไฟล์ : class ฟอร์มชื่อเดิม (form-group / form-horizontal / control-label / checkbox / radio / has-* …) ที่ BS5 ไม่มี → เป็น class ของระบบ หน้าตาเท่าเดิม */

/* ==== ค่าพื้นฐานของระบบ (16/11/2026 · ย้ายจาก bs3_compat.css — ส่วนที่มีผลจริงตอนจำลองตัด compat ทุกหน้า) ====
   วางต้นไฟล์ = ตำแหน่งเดิมในลำดับ cascade (ต่อจาก bs3_compat.css) · ห้ามตั้งตัวแปร --bs-* ระดับ :root ทับ (ธีม app-assets ใช้) */
/* หัวข้อ / ย่อหน้า / รายการ / blockquote : ขนาดและระยะของระบบ (ธีมแต่งทับเกือบทุกที่) */
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 { font-family:inherit; font-weight:500; line-height:1.1; color:inherit }
.h1 .small,
.h1 small,
.h2 .small,
.h2 small,
.h3 .small,
.h3 small,
.h4 .small,
.h4 small,
.h5 .small,
.h5 small,
.h6 .small,
.h6 small,
h1 .small,
h1 small,
h2 .small,
h2 small,
h3 .small,
h3 small,
h4 .small,
h4 small,
h5 .small,
h5 small,
h6 .small,
h6 small { font-weight:400; line-height:1; color:#777 }
.h1,
.h2,
.h3,
h1,
h2,
h3 { margin-top:20px; margin-bottom:10px }
.h1 .small,
.h1 small,
.h2 .small,
.h2 small,
.h3 .small,
.h3 small,
h1 .small,
h1 small,
h2 .small,
h2 small,
h3 .small,
h3 small { font-size:65% }
.h4,
.h5,
.h6,
h4,
h5,
h6 { margin-top:10px; margin-bottom:10px }
.h4 .small,
.h4 small,
.h5 .small,
.h5 small,
.h6 .small,
.h6 small,
h4 .small,
h4 small,
h5 .small,
h5 small,
h6 .small,
h6 small { font-size:75% }
.h1,
h1 { font-size:36px }
.h2,
h2 { font-size:30px }
.h3,
h3 { font-size:24px }
.h4,
h4 { font-size:18px }
.h5,
h5 { font-size:14px }
.h6,
h6 { font-size:12px }
p { margin:0 0 10px }
ol,
ul { margin-top:0; margin-bottom:10px }
ol ol,
ol ul,
ul ol,
ul ul { margin-bottom:0 }
blockquote { padding:10px 20px; margin:0 0 20px; font-size:17.5px; border-left:5px solid #eee }
blockquote ol:last-child,
blockquote p:last-child,
blockquote ul:last-child { margin-bottom:0 }
blockquote .small,
blockquote footer,
blockquote small { display:block; font-size:80%; line-height:1.42857143; color:#777 }
blockquote .small:before,
blockquote footer:before,
blockquote small:before { content:'\2014 \00A0' }
/* ตัวอักษร / ลิงก์ */
body { font-size: 14px; line-height: 1.42857143; color: #333; background-color: #fff; }
a { color: #337ab7; text-decoration: none; }
a:hover, a:focus { color: #23527c; text-decoration: underline; }
b, strong { font-weight: 700; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; }
small, .small { font-size: 85%; }
hr { height: 0; box-sizing: content-box; margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #eee; opacity: 1; }
ol, ul { padding-left: 40px; } /* BS5 reboot 2rem · เดิมใช้ค่าเบราว์เซอร์ 40px (แผนภูมิ branch) */
::file-selector-button { font: revert; } /* ปุ่มเลือกไฟล์ใช้ฟอนต์ของเบราว์เซอร์ */

/* ปุ่ม : ขนาด/สีของระบบผ่านตัวแปรปุ่ม BS5 */
.btn { --bs-btn-font-size: 14px; --bs-btn-line-height: 1.42857143; --bs-btn-padding-y: 6px; --bs-btn-padding-x: 12px; --bs-btn-border-radius: 4px; }
.btn-lg { --bs-btn-padding-y: 10px; --bs-btn-padding-x: 16px; --bs-btn-font-size: 18px; --bs-btn-line-height: 1.3333333; --bs-btn-border-radius: 6px; }
.btn-sm { --bs-btn-padding-y: 5px; --bs-btn-padding-x: 10px; --bs-btn-font-size: 12px; --bs-btn-line-height: 1.5; --bs-btn-border-radius: 3px; }
.btn-xs { --bs-btn-padding-y: 1px; --bs-btn-padding-x: 5px; --bs-btn-font-size: 12px; --bs-btn-line-height: 1.5; --bs-btn-border-radius: 3px; } /* class ของระบบ (BS5 ไม่มี) */
.btn-primary { --bs-btn-bg: #337ab7; --bs-btn-border-color: #2e6da4; --bs-btn-hover-bg: #286090; --bs-btn-hover-border-color: #204d74; --bs-btn-active-bg: #204d74; --bs-btn-active-border-color: #122b40; --bs-btn-disabled-bg: #337ab7; --bs-btn-disabled-border-color: #2e6da4; }
.btn-success { --bs-btn-bg: #5cb85c; --bs-btn-border-color: #4cae4c; --bs-btn-hover-bg: #449d44; --bs-btn-hover-border-color: #398439; --bs-btn-active-bg: #398439; --bs-btn-active-border-color: #255625; --bs-btn-disabled-bg: #5cb85c; --bs-btn-disabled-border-color: #4cae4c; }
.btn-info { --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; --bs-btn-disabled-color: #fff; --bs-btn-bg: #5bc0de; --bs-btn-border-color: #46b8da; --bs-btn-hover-bg: #31b0d5; --bs-btn-hover-border-color: #269abc; --bs-btn-active-bg: #269abc; --bs-btn-active-border-color: #1b6d85; --bs-btn-disabled-bg: #5bc0de; --bs-btn-disabled-border-color: #46b8da; }
.btn-warning { --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; --bs-btn-disabled-color: #fff; --bs-btn-bg: #f0ad4e; --bs-btn-border-color: #eea236; --bs-btn-hover-bg: #ec971f; --bs-btn-hover-border-color: #d58512; --bs-btn-active-bg: #d58512; --bs-btn-active-border-color: #985f0d; --bs-btn-disabled-bg: #f0ad4e; --bs-btn-disabled-border-color: #eea236; }
.btn-danger { --bs-btn-bg: #d9534f; --bs-btn-border-color: #d43f3a; --bs-btn-hover-bg: #c9302c; --bs-btn-hover-border-color: #ac2925; --bs-btn-active-bg: #ac2925; --bs-btn-active-border-color: #761c19; --bs-btn-disabled-bg: #d9534f; --bs-btn-disabled-border-color: #d43f3a; }
.btn-link { --bs-btn-color: #337ab7; --bs-btn-hover-color: #23527c; }
/* กลุ่มปุ่ม = inline-block + ปุ่ม float (ตัดบรรทัดได้เมื่อแคบ เช่น toolbar summernote บนมือถือ) · BS5 = inline-flex ไม่ตัด */
.btn-group { display: inline-block; }
.btn-group > .btn, .btn-group > .btn-group { float: left; }
.btn-group > .btn.w-100 { width: auto !important; } /* ปุ่ม SN Gallery ของ summernote */

/* สีข้อความ/พื้น + ป้าย ของระบบ */
.text-success { color: #3c763d !important; }
.text-info { color: #31708f !important; }
.text-warning { color: #8a6d3b !important; }
.text-danger { color: #a94442 !important; }
.text-muted { color: #777 !important; }
.bg-success { background-color: #dff0d8 !important; }
.bg-info { background-color: #d9edf7 !important; }
.bg-warning { background-color: #fcf8e3 !important; }
.bg-danger { background-color: #f2dede !important; }
.badge:not([class*="bg-"]):not([class*="text-bg-"]) { background-color: #777; color: #fff; }
.badge { font-size: 12px; border-radius: 10px; padding: 3px 7px; }

/* modal กว้าง 600 / lg 900 */
@media (min-width: 576px) { .modal { --bs-modal-width: 600px; } }
@media (min-width: 992px) { .modal-lg { --bs-modal-width: 900px; } }

/* .card : ระบบใช้เป็นกล่องเปล่า (ธีม style.php / app-assets แต่งเอง) — ล้างค่าที่ BS5 ใส่ให้ */
.card { border: 0; border-radius: 0; background-color: transparent; color: inherit; }
.card-header { padding: 0; margin-bottom: 0; background-color: transparent; border-bottom: 0; color: inherit; }
.card-header:first-child { border-radius: 0; }
.card-body { padding: 0; color: inherit; }
.card-footer { padding: 0; background-color: transparent; border-top: 0; color: inherit; }
.card-title { margin-bottom: 0; }

/* รูปในแกลเลอรี (.thumbnail ของ backoffice/gallery.php) */
.thumbnail { display: block; padding: 4px; margin-bottom: 20px; line-height: 1.42857143; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; transition: border .2s ease-in-out; }
.thumbnail > img, .thumbnail a > img { display: block; max-width: 100%; height: auto; margin-right: auto; margin-left: auto; }


/* ปุ่มพื้นฐาน (เดิม .btn-default ของ BS3 : พื้นขาว ขอบเทา) — ธีม style.php แต่งสีทับเหมือน btn-default เดิม */
.btn-app-default { --bs-btn-color: #333; --bs-btn-bg: #fff; --bs-btn-border-color: #ccc; --bs-btn-hover-color: #333; --bs-btn-hover-bg: #e6e6e6; --bs-btn-hover-border-color: #adadad; --bs-btn-active-color: #333; --bs-btn-active-bg: #d4d4d4; --bs-btn-active-border-color: #8c8c8c; --bs-btn-disabled-color: #333; --bs-btn-disabled-bg: #fff; --bs-btn-disabled-border-color: #ccc; --bs-btn-focus-shadow-rgb: 204,204,204; }

/* ซ่อนเฉพาะช่วงจอ (เดิม .hidden-xs/sm/md/lg ของ BS3 · breakpoint 768/992/1200) — นอกช่วงไม่บังคับ display
   (d-none d-md-inline ของ BS5 บังคับ display ทุกจอ → ทับ display:flex ของธีม) · แสดงเฉพาะมือถือใช้ d-block d-md-none */
@media (max-width: 767.98px) { .app-hide-xs { display: none !important; } }
@media (min-width: 768px) and (max-width: 991.98px) { .app-hide-sm { display: none !important; } }
@media (min-width: 992px) and (max-width: 1199.98px) { .app-hide-md { display: none !important; } }
@media (min-width: 1200px) { .app-hide-lg { display: none !important; } }

/* ลูกศร dropdown (เดิม .caret ของ BS3) — ระบบวาดลูกศรเองด้วย <span class="app-caret"> จึงปิด ::after ของ BS5 (ยกเว้นใน summernote) */
.dropdown-toggle::after { display: none; }
.note-editor .dropdown-toggle::after { display: inline-block; }
.app-caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px solid; border-right: 4px solid transparent; border-left: 4px solid transparent; }
.btn .app-caret { margin-left: 0; }
.dropup .app-caret { border-top: 0; border-bottom: 4px solid; }

/* ปุ่มปิด × (เดิม .close ของ BS3 — BS5 .btn-close เป็นไอคอน SVG และวางคนละแบบใน modal-header) */
.app-close { float: right; font-size: 21px; font-weight: 700; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; opacity: .2; }
.app-close:focus, .app-close:hover { color: #000; text-decoration: none; cursor: pointer; opacity: .5; }
button.app-close { -webkit-appearance: none; appearance: none; padding: 0; cursor: pointer; background: 0 0; border: 0; }
/* modal-header ของ BS5 = flex : markup เดิมวางปุ่ม × ก่อนชื่อ → ให้ไปขวาสุดเหมือนเดิม */
.modal-header > .app-close { order: 2; margin: 0 0 0 auto; float: none; }
.alert-dismissible .app-close { position: relative; top: -2px; right: -21px; color: inherit; }

/* แถบหัว (nav.navbar.navbar-static-top) — BS5 .navbar = flex + padding 8px · ธีมวางโลโก้ (float) กับเมนูขวา (float-end) แบบ block
   จึงกำหนดโครงแถบหัวเองที่นี่ (ค่าเดิมของ BS3 : block · สูงขั้นต่ำ 45 · z-index 1000 · ขอบล่าง 1px · clearfix · .navbar-header ลอยซ้ายตั้งแต่ 768) */
/* specificity 1 class (เท่า .navbar ของ BS5 · โหลดทีหลังจึงชนะ) — ธีม app_nav.css/style.php โหลดทีหลังแต่งขอบล่าง/สูงขั้นต่ำทับได้ */
.navbar-static-top { display: block; min-height: 45px; padding: 0; z-index: 1000; }
.navbar-static-top::before, .navbar-static-top::after, .navbar-header::before, .navbar-header::after { content: " "; display: table; }
.navbar-static-top::after, .navbar-header::after { clear: both; }
@media (min-width: 768px) { .navbar-header { float: left; } }

/* แถบแท็บกลุ่มสินค้า (ul.pagination.tab-scroll > li.page-item > a.page-link · 13/11/2026) — ขอบ #ddd / มุมเหลี่ยม / ไม่มีวงโฟกัส แบบเดิม · สีพื้นตั้งใน CSS ของแต่ละไฟล์ (color_code) */
.pagination.tab-scroll { --bs-pagination-border-color: #ddd; --bs-pagination-border-radius: 0; --bs-pagination-focus-box-shadow: none; }

/* ==== ฟอร์มของระบบ (13/11/2026 · ย้ายจาก bs3_compat.css ทั้งชุด ลำดับเดิม) ====
   ชื่อ class เดิมจาก Bootstrap 3 ที่ BS5 ไม่มี (form-group, form-horizontal, form-inline, control-label, checkbox/radio(-inline), has-error/warning/success/feedback, form-control-static/-feedback)
   + ค่าหน้าตา .form-control / label / legend / input แบบเดิม (สูง 34 · padding 6px 12px · label ตัวหนา) · หน้าใหม่ใช้ class ฟอร์มของ BS5 ได้ (mb-3, form-label, form-check …) */
input[type=reset],
input[type=submit] { -webkit-appearance:button; cursor:pointer }
input[type=checkbox],
input[type=radio] { -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; padding:0 }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { height:auto }
input[type=search] { -webkit-box-sizing:content-box; -moz-box-sizing:content-box; box-sizing:content-box; -webkit-appearance:textfield }
input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration { -webkit-appearance:none }
legend { padding:0; border:0 }
legend { display:block; width:100%; padding:0; margin:20px 0px; font-size:21px; line-height:inherit; color:#333; border:0; border-bottom:1px solid #e5e5e5 }
label { display:inline-block; max-width:100%; margin-bottom:5px; font-weight:700 }
input[type=search] { -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box }
input[type=checkbox],
input[type=radio] { margin:4px 0 0; margin-top:1px\9; line-height:normal }
input[type=file] { display:block }
input[type=range] { display:block; width:100% }
select[multiple],
select[size] { height:auto }
input[type=file]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus { outline:5px auto -webkit-focus-ring-color; outline-offset:-2px }
output { display:block; padding-top:7px; font-size:14px; line-height:1.42857143; color:#555 }
.form-control { display:block; width:100%; height:34px; padding:6px 12px; font-size:14px; line-height:1.42857143; color:#555; background-color:#fff; background-image:none; border:1px solid #ccc; border-radius:4px; -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075); box-shadow:inset 0 1px 1px rgba(0,0,0,.075); -webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s; -o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s; transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s }
.form-control:focus { border-color:#66afe9; outline:0; -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6); box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6) }
.form-control::-moz-placeholder { color:#999; opacity:1 }
.form-control:-ms-input-placeholder { color:#999 }
.form-control::-webkit-input-placeholder { color:#999 }
.form-control::-ms-expand { background-color:transparent; border:0 }
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control { background-color:#eee; opacity:1 }
.form-control[disabled],
fieldset[disabled] .form-control { cursor:not-allowed }
textarea.form-control { height:auto }
input[type=search] { -webkit-appearance:none }
@media screen and (-webkit-min-device-pixel-ratio:0) {
  input[type=date].form-control,
input[type=time].form-control,
input[type=datetime-local].form-control,
input[type=month].form-control { line-height:34px }
}
.form-group { margin-bottom:15px }
.checkbox,
.radio { position:relative; margin-top:10px; margin-bottom:10px }
.checkbox label,
.radio label { min-height:20px; padding-left:20px; margin-bottom:0; font-weight:400; cursor:pointer }
.checkbox input[type=checkbox],
.checkbox-inline input[type=checkbox],
.radio input[type=radio],
.radio-inline input[type=radio] { margin-left:5px }
.checkbox+.checkbox,
.radio+.radio { margin-top:-5px }
.checkbox-inline,
.radio-inline { position:relative; display:inline-block; padding-left:20px; margin-bottom:0; font-weight:400; vertical-align:middle; cursor:pointer }
.checkbox-inline+.checkbox-inline,
.radio-inline+.radio-inline { margin-top:0; margin-left:10px }
input[type=checkbox].disabled,
input[type=checkbox][disabled],
input[type=radio].disabled,
input[type=radio][disabled] { cursor:not-allowed }
.checkbox-inline.disabled,
.radio-inline.disabled,
fieldset[disabled] .checkbox-inline,
fieldset[disabled] .radio-inline { cursor:not-allowed }
.checkbox.disabled label,
.radio.disabled label,
fieldset[disabled] .checkbox label,
fieldset[disabled] .radio label { cursor:not-allowed }
.form-control-static { min-height:34px; padding-top:7px; padding-bottom:7px; margin-bottom:0 }
.form-group-sm .form-control { height:30px; padding:5px 10px; font-size:12px; line-height:1.5; border-radius:3px }
.form-group-sm select.form-control { height:30px; line-height:30px }
.form-group-sm select[multiple].form-control,
.form-group-sm textarea.form-control { height:auto }
.form-group-sm .form-control-static { height:30px; min-height:32px; padding:6px 10px; font-size:12px; line-height:1.5 }
.form-group-lg .form-control { height:46px; padding:10px 16px; font-size:18px; line-height:1.3333333; border-radius:6px }
.form-group-lg select.form-control { height:46px; line-height:46px }
.form-group-lg select[multiple].form-control,
.form-group-lg textarea.form-control { height:auto }
.form-group-lg .form-control-static { height:46px; min-height:38px; padding:11px 16px; font-size:18px; line-height:1.3333333 }
.has-feedback { position:relative }
.has-feedback .form-control { padding-right:42.5px }
.form-control-feedback { position:absolute; top:0; right:0; z-index:2; display:block; width:34px; height:34px; line-height:34px; text-align:center; pointer-events:none }
.form-group-lg .form-control+.form-control-feedback { width:46px; height:46px; line-height:46px }
.form-group-sm .form-control+.form-control-feedback { width:30px; height:30px; line-height:30px }
.has-success .checkbox,
.has-success .checkbox-inline,
.has-success .control-label,
.has-success .radio,
.has-success .radio-inline,
.has-success.checkbox label,
.has-success.checkbox-inline label,
.has-success.radio label,
.has-success.radio-inline label { color:#3c763d }
.has-success .form-control { border-color:#3c763d; -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075); box-shadow:inset 0 1px 1px rgba(0,0,0,.075) }
.has-success .form-control:focus { border-color:#2b542c; -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168; box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168 }
.has-success .form-control-feedback { color:#3c763d }
.has-warning .checkbox,
.has-warning .checkbox-inline,
.has-warning .control-label,
.has-warning .radio,
.has-warning .radio-inline,
.has-warning.checkbox label,
.has-warning.checkbox-inline label,
.has-warning.radio label,
.has-warning.radio-inline label { color:#8a6d3b }
.has-warning .form-control { border-color:#8a6d3b; -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075); box-shadow:inset 0 1px 1px rgba(0,0,0,.075) }
.has-warning .form-control:focus { border-color:#66512c; -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b; box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b }
.has-warning .form-control-feedback { color:#8a6d3b }
.has-error .checkbox,
.has-error .checkbox-inline,
.has-error .control-label,
.has-error .radio,
.has-error .radio-inline,
.has-error.checkbox label,
.has-error.checkbox-inline label,
.has-error.radio label,
.has-error.radio-inline label { color:#a94442 }
.has-error .form-control { border-color:#a94442; -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075); box-shadow:inset 0 1px 1px rgba(0,0,0,.075) }
.has-error .form-control:focus { border-color:#843534; -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483; box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483 }
.has-error .form-control-feedback { color:#a94442 }
.has-feedback label~.form-control-feedback { top:25px }
.has-feedback label.sr-only~.form-control-feedback { top:0 }
@media (min-width:768px) {
  .form-inline .form-group { display:inline-block; margin-bottom:0; vertical-align:middle }
  .form-inline .form-control { display:inline-block; width:auto; vertical-align:middle }
  .form-inline .form-control-static { display:inline-block }
  .form-inline .control-label { margin-bottom:0; vertical-align:middle }
  .form-inline .checkbox,
.form-inline .radio { display:inline-block; margin-top:0; margin-bottom:0; vertical-align:middle }
  .form-inline .checkbox label,
.form-inline .radio label { padding-left:0 }
  .form-inline .checkbox input[type=checkbox],
.form-inline .radio input[type=radio] { position:relative; margin-left:0 }
  .form-inline .has-feedback .form-control-feedback { top:0 }
}
.form-horizontal .checkbox,
.form-horizontal .checkbox-inline,
.form-horizontal .radio,
.form-horizontal .radio-inline { margin-top:0; margin-bottom:0 }
.form-horizontal .checkbox,
.form-horizontal .radio { min-height:27px }
.form-horizontal .form-group { margin-right:-15px; margin-left:-15px }
@media (min-width:768px) {
  .form-horizontal .control-label { padding-top:7px; margin-bottom:0; text-align:right }
}
.form-horizontal .has-feedback .form-control-feedback { right:15px }
@media (min-width:768px) {
  .form-horizontal .form-group-lg .control-label { padding-top:11px; font-size:18px }
  .form-horizontal .form-group-sm .control-label { padding-top:6px; font-size:12px }
}
.form-horizontal .form-group:after,
.form-horizontal .form-group:before { display:table; content:" " }
.form-horizontal .form-group:after { clear:both }
select.form-control { -webkit-appearance: menulist; -moz-appearance: menulist; appearance: auto; background-image: none; padding-right: 6px; }
select[multiple].form-control,
select[size].form-control { -webkit-appearance: listbox; appearance: auto; }
.form-control[type="file"] { height: auto; }
legend { float: none; }
.form-control::file-selector-button,
.form-control:hover:not(:disabled):not([readonly])::file-selector-button { all: revert; }

/* ==== input-group (13/11/2026 · BS5 แท้ : .input-group = flex · ป้าย = .input-group-text) ==== */
/* ไม่ตัดบรรทัด (BS5 ค่าเริ่มต้น wrap → ธีมที่ตั้ง .form-control width:100% ทำให้ช่องตกไปบรรทัดใหม่) — แบบเดียวกับ .flex-nowrap */
.input-group { flex-wrap: nowrap; }
/* ป้ายหน้า/หลังช่อง : ขนาด/สีเดียวกับ .form-control ของระบบ (สูง 34 · ตัว 14px · พื้น #eee ขอบ #ccc) — มุมต่อกันใช้กฎของ BS5 */
.input-group-text { justify-content: center; padding: 6px 6px; font-size: 14px; line-height: 1; color: #555; background-color: #eee; border-color: #ccc; border-radius: 4px; }
.input-group-text input[type=checkbox], .input-group-text input[type=radio] { margin-top: 0; }
.has-success .input-group-text { color: #3c763d; background-color: #dff0d8; border-color: #3c763d; }
.has-warning .input-group-text { color: #8a6d3b; background-color: #fcf8e3; border-color: #8a6d3b; }
.has-error .input-group-text { color: #a94442; background-color: #f2dede; border-color: #a94442; }
/* ตัวห่อของปลั๊กอินในกลุ่ม (select2 / asColorPicker / bootstrap-select / typeahead) : ยืด-หดเหมือน .form-control (ปลั๊กอินบางตัวตั้ง width เป็น inline) */
.input-group > .select2-container, .input-group > .asColorPicker-wrap, .input-group > .bootstrap-select, .input-group > .twitter-typeahead { flex: 1 1 auto; width: 1% !important; min-width: 0; }
/* กล่องสีของ asColorPicker วางนอกตัวห่อ (right:-35px ใน style.php) → เว้นที่ด้านขวาไว้ */
.input-group > .asColorPicker-wrap { margin-right: 35px; }
/* .input-group-btn (class ระบบ · BS5 ไม่มี) : กล่องห่อปุ่มในกลุ่ม — ปุ่มชิดกัน มุมด้านที่ต่อกับช่องเป็นเหลี่ยม */
.input-group > .input-group-btn { position: relative; display: flex; white-space: nowrap; }
.input-group > .input-group-btn:not(:first-child) { margin-left: -1px; }
.input-group-btn > .btn { position: relative; }
.input-group-btn > .btn:hover, .input-group-btn > .btn:focus, .input-group-btn > .btn:active { z-index: 2; }
.input-group-btn > .btn + .btn { margin-left: -1px; }
.input-group > .input-group-btn:not(:last-child) > .btn, .input-group-btn > .btn:not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .input-group-btn:not(:first-child) > .btn, .input-group-btn > .btn:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* ==== ตารางพื้นฐาน (13/11/2026) : <table> ที่ไม่ใช้ class .table (ตารางจัดวาง/ฟอร์มเก่า) ค่าแบบเดิม — BS5 reboot ไม่รีเซ็ต padding เซลล์ ====
   ตาราง .table ใช้ของ BS5 + ตัวแปรธีม (--bs-table-* / --bs-border-color) */
/* .table : พื้นเซลล์โปร่ง + สีตัวอักษรตามที่ครอบ (BS5 ใช้ --bs-body-bg เป็นพื้นเซลล์ แต่ธีมตั้ง --bs-body-bg = สีพื้นหน้า #edf1f5 → ตารางในการ์ดขาวกลายเป็นเทา) */
.table { --bs-table-bg: transparent; --bs-table-color: currentcolor; }
table { border-spacing: 0; border-collapse: collapse; background-color: transparent; }
td, th { padding: 0; }
th { text-align: left; }
/* <table border="1"> แบบเดิม : เส้นทุกเซลล์ (BS5 reboot ตั้ง border-width 0 ให้ td/th) */
table[border]:not([border="0"]):not(.table) > * > tr > td,
table[border]:not([border="0"]):not(.table) > * > tr > th { border-width: 1px; border-style: inset; border-color: grey; }
