/**
 * ขนาดตัวอักษรในการ์ดและหน้าต่าง ให้เท่ากันทั้งแอป
 * หัวข้อ 1.125rem · เนื้อหา 1rem
 * ไม่แตะเมนูด้านข้าง แถบบน ไอคอน ปุ่ม badge และ toast
 */
:root {
  --pi-title-size: 1.125rem;
  --pi-body-size: 1rem;
}

.layout-page .content-wrapper :where(.card, .table, .list-group) :not(
    .btn,
    .btn *,
    .badge,
    .badge *,
    .nav-link,
    .page-link,
    .menu-link,
    .dropdown-toggle,
    i,
    .bx,
    .fa,
    .fas,
    .far,
    .fab,
    .bi,
    svg,
    svg *
  ),
.modal :is(.modal-header, .modal-body, .modal-footer) :not(
    .btn,
    .btn *,
    .badge,
    .badge *,
    .nav-link,
    .dropdown-toggle,
    i,
    .bx,
    .fa,
    .fas,
    .far,
    .fab,
    .bi,
    svg,
    svg *
  ),
.offcanvas :is(.offcanvas-header, .offcanvas-body) :not(
    .btn,
    .btn *,
    .badge,
    .badge *,
    .nav-link,
    .dropdown-toggle,
    i,
    .bx,
    .fa,
    .fas,
    .far,
    .fab,
    .bi,
    svg,
    svg *
  ),
.swal2-popup:not(.swal2-toast) :is(.swal2-html-container, .swal2-html-container *) {
  font-size: var(--pi-body-size) !important;
  line-height: 1.5 !important;
}

.layout-page .content-wrapper :where(.card, .table, .list-group) :is(
    h4,
    h5,
    h6,
    .card-title,
    .form-label,
    .card-note-title,
    .card-note-section-title,
    [class*="patient-title"]
  ):not(.btn, .btn *, .badge, .badge *, i, .bx),
.layout-page .content-wrapper .card > .card-header :is(.fs-3, .fs-4, .fs-5, .fs-6, .fw-semibold, .fw-bold):not(
    .btn,
    .btn *,
    .badge,
    .badge *,
    .nav-link,
    i,
    .bx
  ),
.layout-page .content-wrapper .card :is(.fw-semibold, .fw-bold):not(
    .btn,
    .btn *,
    .badge,
    .badge *,
    .nav-link,
    p *,
    li *,
    td *,
    th *,
    .small *,
    small *
  ),
.modal :is(.modal-title, h4, h5, h6, .card-title, .form-label, .card-note-title),
.offcanvas :is(.offcanvas-title, h4, h5, h6, .card-title, .form-label),
.swal2-popup:not(.swal2-toast) .swal2-title {
  font-size: var(--pi-title-size) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.layout-page .content-wrapper :where(.card, .modal, .offcanvas) :is(.form-control, .form-select, textarea),
.modal :is(.form-control, .form-select, textarea),
.offcanvas :is(.form-control, .form-select, textarea) {
  font-size: var(--pi-body-size) !important;
}
