/* ==========================================================================
   Teletubbies Library — tt-polish.css (v7)
   --------------------------------------------------------------------------
   ชั้นตกแต่งเพิ่มเติม "ทับ" ดีไซน์เดิม (tt-theme.css / tt-unified.css)
   - ไม่แก้โครงสร้าง HTML / PHP / Logic เดิม  ลบไฟล์นี้ทิ้งก็กลับเป็นหน้าตาเดิมได้ทันที
   - ใช้ตัวเลือก body:not(#_u):not(#_v6):not(#_tt):not(#_p7) (4 ระดับ id)
     จึงมีผลเหนือ tt-unified.css (3 ระดับ id) เสมอ
   - โหลดพร้อม data-tt-noengine เพื่อไม่ให้ theme-engine.js แปลงสีในไฟล์นี้

   สารบัญ
     1) ป้ายสถานะยืม-คืน (สีเข้ม: คืนสำเร็จ=เขียว / ชำรุด=ส้ม / สูญหาย=แดง)
     2) ช่องค้นหา — รูปแบบเดียวกันทุกหน้า
     3) ปุ่มจัดการในตาราง (ดู=เขียว / แก้ไข=ดำ / ลบ=ถังขยะแดง) ไม่เปลี่ยนตามธีม
     4) ป้ายประเภททรัพยากร — สีตามประเภท (เข้ม) ไม่เปลี่ยนตามธีม
     5) ตารางหนังสือ: ซ่อนคอลัมน์ "หนังสือยอดนิยม / หนังสือแนะนำ"
     6) แถบเมนูซ้าย: โลโก้ใหญ่ มีมิติ ไม่มีกรอบสี่เหลี่ยม + ไอคอนเมนูนูน
     7) แถบด้านบน: ซ่อนปุ่มแฮมเบอร์เกอร์ (จอคอมพิวเตอร์) + ป้ายผู้ใช้
     8) ไอคอน/ช่องกรอก มีมิติมากขึ้น
     9) บาร์โค้ดตัวเล่ม (หน้าเพิ่ม/แก้ไขหนังสือ)
    10) OPAC: ภาพพื้นหลังกล่องค้นหา + ส่วนท้าย + ป้ายผู้ใช้
   ========================================================================== */

:root {
    --p7-p: var(--u-p, var(--tt-p, #7c3aed));
    --p7-s: var(--u-s, var(--tt-s, #4c1d95));
    --p7-p-deep: color-mix(in srgb, var(--p7-p) 45%, var(--p7-s));
    --p7-p-strong: color-mix(in srgb, var(--p7-p) 80%, var(--p7-s));
    --p7-p-50: color-mix(in srgb, var(--p7-p) 6%, #fff);
    --p7-p-100: color-mix(in srgb, var(--p7-p) 13%, #fff);
    --p7-p-200: color-mix(in srgb, var(--p7-p) 24%, #fff);
    --p7-p-300: color-mix(in srgb, var(--p7-p) 42%, #fff);
    --p7-field-line: color-mix(in srgb, var(--p7-p) 20%, #dcdfe8);
    --p7-field-lip: color-mix(in srgb, var(--p7-p) 24%, #d5d8e2);
    --p7-glyph-depth: drop-shadow(0 1px 0 rgba(255, 255, 255, .55)) drop-shadow(0 2px 2px rgba(0, 0, 0, .22));
}

/* ==========================================================================
   1) ป้ายสถานะยืม-คืน — สีเข้ม ตัวอักษรขาว
   ========================================================================== */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .borrow-status {
    min-height: 28px !important;
    padding: 4px 13px !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font: 600 12.5px/1.2 var(--u-font, 'Prompt', sans-serif) !important;
    letter-spacing: .1px !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .28) !important;
    background-color: #475467 !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .10) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -2px 0 rgba(0, 0, 0, .16), 0 2px 0 rgba(0, 0, 0, .18), 0 6px 12px -6px rgba(0, 0, 0, .45) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .borrow-status.returned { background-color: #15803d !important; border-color: #166534 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -2px 0 rgba(0, 0, 0, .16), 0 2px 0 #14532d, 0 6px 12px -6px rgba(21, 128, 61, .7) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .borrow-status.damaged  { background-color: #ea580c !important; border-color: #c2410c !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -2px 0 rgba(0, 0, 0, .16), 0 2px 0 #9a3412, 0 6px 12px -6px rgba(234, 88, 12, .7) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .borrow-status.lost     { background-color: #dc2626 !important; border-color: #b91c1c !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -2px 0 rgba(0, 0, 0, .16), 0 2px 0 #7f1d1d, 0 6px 12px -6px rgba(220, 38, 38, .7) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .borrow-status.active   { background-color: #2563eb !important; border-color: #1d4ed8 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -2px 0 rgba(0, 0, 0, .16), 0 2px 0 #1e3a8a, 0 6px 12px -6px rgba(37, 99, 235, .7) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full :is(.borrow-status.overdue, .borrow-status.late) { background-color: #be185d !important; border-color: #9d174d !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -2px 0 rgba(0, 0, 0, .16), 0 2px 0 #831843, 0 6px 12px -6px rgba(190, 24, 93, .7) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .borrow-status.cancelled { background-color: #64748b !important; border-color: #475569 !important; }
/* ข้อความสถานะซ้ำในคอลัมน์ "จัดการ" ของแถวที่คืนแล้ว */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full #activeLoanTable tr[data-loan-status="returned"] td:last-child .borrow-muted { font-weight: 600; }

/* ==========================================================================
   2) ช่องค้นหา — รูปแบบเดียวกันทุกหน้า (ไอคอนแว่นขยายด้านซ้าย + กรอบนูน)
      tt-polish.js ใส่คลาส .ttp-search ให้กล่องค้นหาทุกแบบ (และห่อช่องที่ไม่มีกล่อง)
   ========================================================================== */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .ttp-search {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    min-width: 0;
    min-height: 46px !important;
    height: auto !important;
    margin: 0;
    padding: 0 14px 0 15px !important;
    border: 1px solid var(--p7-field-line) !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--p7-p) 2%, #fcfcfe) 100%) !important;
    outline: 0 !important;
    box-shadow:
        inset 0 1px 0 #fff,
        inset 0 -1px 0 rgba(16, 24, 40, .03),
        0 3px 0 var(--p7-field-lip),
        0 10px 18px -12px color-mix(in srgb, var(--p7-p) 55%, rgba(16, 24, 40, .4)) !important;
    overflow: visible !important;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .ttp-search:hover { border-color: color-mix(in srgb, var(--p7-p) 38%, #dcdfe8) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .ttp-search:focus-within {
    border-color: var(--p7-p) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--p7-p) 16%, transparent), 0 3px 0 var(--p7-p-200), 0 10px 18px -12px color-mix(in srgb, var(--p7-p) 60%, transparent) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .ttp-search > .ttp-search-ico {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: var(--p7-p-strong) !important;
    font-size: 17px !important;
    line-height: 1 !important;
    pointer-events: none;
    filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 1px 1px color-mix(in srgb, var(--p7-p) 35%, transparent));
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .ttp-search > .ttp-search-ico :is(i, svg) { color: inherit !important; font-size: inherit !important; width: 1em; height: 1em; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .ttp-search > .ttp-search-ico i::before { line-height: 1 !important; vertical-align: 0 !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .ttp-search input:is([type="search"], [type="text"], :not([type])) {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--u-ink, #18202f) !important;
    font-size: 14.5px !important;
    font-family: var(--u-font-body, 'Sarabun', sans-serif) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .ttp-search input::placeholder { color: #98a2b3 !important; opacity: 1 !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .ttp-search input::-webkit-search-cancel-button { cursor: pointer; }
/* กล่องค้นหาที่สร้างใหม่ (ห่อช่องค้นหาเดิมที่ไม่มีกล่อง) */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .ttp-search.ttp-search--auto { flex: 1 1 260px; width: 100%; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .al-search > .ttp-search { flex: 1 1 auto; }
/* หน้าหนังสือ: ปุ่มค้นหาเดิมย้ายมาเป็นไอคอนด้านซ้าย (ยังกดค้นหาได้เหมือนเดิม) */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .ttp-search.search-input-fit > button {
    order: -1 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: var(--p7-p-strong) !important;
    -webkit-text-fill-color: currentColor !important;
    font-size: 17px !important;
    cursor: pointer;
    transform: none !important;
    filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 1px 1px color-mix(in srgb, var(--p7-p) 35%, transparent)) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .ttp-search.search-input-fit > button:hover { color: var(--p7-p-deep) !important; transform: scale(1.1) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .ttp-search.search-input-fit > button i { font-size: 16px !important; }
/* OPAC: กล่องคำค้นในฮีโร่ */
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-q.ttp-search { min-height: 50px !important; }
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-q.ttp-search input { height: 48px !important; min-height: 48px !important; font-size: 15px !important; }
/* หน้าสมาชิก */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) :is(.fav-search, .tb-search).ttp-search { border-radius: 14px !important; }

/* ==========================================================================
   3) ปุ่มจัดการในตาราง: ดู (ตาเขียว) / แก้ไข (ดินสอดำ) / ลบ (ถังขยะแดง)
      สีคงที่ ไม่เปลี่ยนตามการตั้งค่าธีม
   ========================================================================== */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) :is(.main-content-full, .mn-page, .portal) :is(
    .tt-icon-btn.view, .tt-icon-btn.edit, .tt-icon-btn.delete,
    .um-action.um-edit, .um-action.um-delete,
    .resv-smallbtn.resv-edit, .resv-smallbtn.resv-delete,
    .inventory-action-btn, .be-act.edit, .be-act.del, .bd-ico-btn[title="แก้ไข"],
    .table-book-list a.btn[title="ดูรายละเอียด"], .table-book-list a.btn[title="แก้ไข"], .table-book-list a.btn[title="ลบ"]
) {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 12px !important;
    border: 1px solid #d0d5dd !important;
    background-color: #fff !important;
    background-image: linear-gradient(180deg, #ffffff 0%, #f2f4f7 100%) !important;
    color: #111827 !important;
    -webkit-text-fill-color: currentColor !important;
    font-size: 16px !important;
    line-height: 1 !important;
    text-shadow: none !important;
    text-decoration: none !important;
    cursor: pointer;
    filter: none !important;
    transform: none !important;
    box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(16, 24, 40, .05), 0 3px 0 #c9ced8, 0 8px 14px -8px rgba(16, 24, 40, .45) !important;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease, color .14s ease !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) :is(.main-content-full, .mn-page, .portal) :is(
    .tt-icon-btn.view, .tt-icon-btn.edit, .tt-icon-btn.delete, .um-action.um-edit, .um-action.um-delete,
    .resv-smallbtn.resv-edit, .resv-smallbtn.resv-delete, .inventory-action-btn, .be-act.edit, .be-act.del, .bd-ico-btn[title="แก้ไข"],
    .table-book-list a.btn[title="ดูรายละเอียด"], .table-book-list a.btn[title="แก้ไข"], .table-book-list a.btn[title="ลบ"]
) :is(i, svg) {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    font-size: 16px !important;
    line-height: 1 !important;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .9)) drop-shadow(0 2px 1.5px rgba(16, 24, 40, .28));
    transition: transform .14s ease, filter .14s ease;
}
/* ดู = ตาสีเขียว */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) :is(.main-content-full, .mn-page, .portal) :is(.tt-icon-btn.view, .table-book-list a.btn[title="ดูรายละเอียด"], .inventory-action-btn[title^="ดู"]) {
    border-color: #a6e3bd !important;
    background-image: linear-gradient(180deg, #ffffff 0%, #e3f8ea 100%) !important;
    color: #15803d !important;
    box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(21, 128, 61, .06), 0 3px 0 #9fdcb5, 0 8px 14px -8px rgba(21, 128, 61, .55) !important;
}
/* แก้ไข = ดินสอสีดำ */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) :is(.main-content-full, .mn-page, .portal) :is(.tt-icon-btn.edit, .um-action.um-edit, .resv-smallbtn.resv-edit, .be-act.edit, .bd-ico-btn[title="แก้ไข"], .table-book-list a.btn[title="แก้ไข"]) {
    border-color: #cfd4dc !important;
    background-image: linear-gradient(180deg, #ffffff 0%, #eef0f4 100%) !important;
    color: #111111 !important;
    box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(16, 24, 40, .05), 0 3px 0 #c3c8d1, 0 8px 14px -8px rgba(16, 24, 40, .5) !important;
}
/* ลบ = ถังขยะสีแดง */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) :is(.main-content-full, .mn-page, .portal) :is(.tt-icon-btn.delete, .um-action.um-delete, .resv-smallbtn.resv-delete, .inventory-action-btn.danger, .be-act.del, .table-book-list a.btn[title="ลบ"]) {
    border-color: #f8b4b4 !important;
    background-image: linear-gradient(180deg, #ffffff 0%, #fdeaea 100%) !important;
    color: #dc2626 !important;
    box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(220, 38, 38, .06), 0 3px 0 #f1aaaa, 0 8px 14px -8px rgba(220, 38, 38, .55) !important;
}
/* ชี้ = ยกขึ้น + เติมสีเต็ม */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) :is(.main-content-full, .mn-page, .portal) :is(.tt-icon-btn.view, .table-book-list a.btn[title="ดูรายละเอียด"], .inventory-action-btn[title^="ดู"]):hover {
    background-image: linear-gradient(180deg, #4ade80 0%, #16a34a 100%) !important; border-color: #15803d !important; color: #fff !important;
    transform: translateY(-2px) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 0 #166534, 0 12px 18px -8px rgba(21, 128, 61, .65) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) :is(.main-content-full, .mn-page, .portal) :is(.tt-icon-btn.edit, .um-action.um-edit, .resv-smallbtn.resv-edit, .be-act.edit, .bd-ico-btn[title="แก้ไข"], .table-book-list a.btn[title="แก้ไข"]):hover {
    background-image: linear-gradient(180deg, #4b5563 0%, #111827 100%) !important; border-color: #111827 !important; color: #fff !important;
    transform: translateY(-2px) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 0 #030712, 0 12px 18px -8px rgba(17, 24, 39, .6) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) :is(.main-content-full, .mn-page, .portal) :is(.tt-icon-btn.delete, .um-action.um-delete, .resv-smallbtn.resv-delete, .inventory-action-btn.danger, .be-act.del, .table-book-list a.btn[title="ลบ"]):hover {
    background-image: linear-gradient(180deg, #f87171 0%, #dc2626 100%) !important; border-color: #b91c1c !important; color: #fff !important;
    transform: translateY(-2px) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 0 #991b1b, 0 12px 18px -8px rgba(220, 38, 38, .65) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) :is(.main-content-full, .mn-page, .portal) :is(
    .tt-icon-btn.view, .tt-icon-btn.edit, .tt-icon-btn.delete, .um-action.um-edit, .um-action.um-delete,
    .resv-smallbtn.resv-edit, .resv-smallbtn.resv-delete, .inventory-action-btn, .be-act.edit, .be-act.del, .bd-ico-btn[title="แก้ไข"],
    .table-book-list a.btn[title="ดูรายละเอียด"], .table-book-list a.btn[title="แก้ไข"], .table-book-list a.btn[title="ลบ"]
):hover :is(i, svg) { transform: scale(1.08); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) :is(.main-content-full, .mn-page, .portal) :is(
    .tt-icon-btn.view, .tt-icon-btn.edit, .tt-icon-btn.delete, .um-action.um-edit, .um-action.um-delete,
    .resv-smallbtn.resv-edit, .resv-smallbtn.resv-delete, .inventory-action-btn, .be-act.edit, .be-act.del, .bd-ico-btn[title="แก้ไข"],
    .table-book-list a.btn[title="ดูรายละเอียด"], .table-book-list a.btn[title="แก้ไข"], .table-book-list a.btn[title="ลบ"]
):active { transform: translateY(2px) !important; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .22) !important; }
/* แถวปุ่มจัดการ */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full :is(.mbr-actions, .um-actions, .sv-actions, .resv-actions) { gap: 8px !important; align-items: center !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .table-book-list td > div:has(> a.btn[title="ลบ"]) { gap: 8px !important; }

/* ==========================================================================
   4) ป้ายประเภททรัพยากร (หน้าหนังสือ) — สีตามประเภท โทนเข้ม ไม่เปลี่ยนตามธีม
   ========================================================================== */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .type-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 28px !important;
    max-width: 100%;
    padding: 4px 13px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(0, 0, 0, .18) !important;
    background-color: #344054 !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .12) 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font: 600 12.5px/1.25 var(--u-font, 'Prompt', sans-serif) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .3) !important;
    white-space: nowrap !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 2px 0 rgba(0, 0, 0, .22), 0 6px 12px -6px rgba(0, 0, 0, .5) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .type-badge.type-book        { background-color: #1d4ed8 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 2px 0 #1e3a8a, 0 6px 12px -6px rgba(29, 78, 216, .7) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .type-badge.type-reference   { background-color: #334155 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 2px 0 #0f172a, 0 6px 12px -6px rgba(51, 65, 85, .7) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .type-badge.type-thesis      { background-color: #a16207 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 2px 0 #713f12, 0 6px 12px -6px rgba(161, 98, 7, .7) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .type-badge.type-research    { background-color: #0e7490 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 2px 0 #164e63, 0 6px 12px -6px rgba(14, 116, 144, .7) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .type-badge.type-journal     { background-color: #047857 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 2px 0 #064e3b, 0 6px 12px -6px rgba(4, 120, 87, .7) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .type-badge.type-novel       { background-color: #7e22ce !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 2px 0 #581c87, 0 6px 12px -6px rgba(126, 34, 206, .7) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .type-badge.type-easy        { background-color: #c2410c !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 2px 0 #7c2d12, 0 6px 12px -6px rgba(194, 65, 12, .7) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .type-badge.type-short-story { background-color: #be185d !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 2px 0 #831843, 0 6px 12px -6px rgba(190, 24, 93, .7) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .type-badge.type-audiovisual { background-color: #1f2937 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 2px 0 #030712, 0 6px 12px -6px rgba(31, 41, 55, .7) !important; }

/* ==========================================================================
   5) ตารางหนังสือ: ไม่แสดงคอลัมน์ "หนังสือยอดนิยม" และ "หนังสือแนะนำ"
      (ยังเลือกได้จากหน้า "จัดการหนังสือแนะนำ / ยอดนิยม" และปุ่ม "เลือก" ในหน้าหลัก)
   ========================================================================== */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .table-book-list :is(th, td):is(:nth-child(7), :nth-child(8)) { display: none !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .table-book-list { min-width: 1150px !important; }

/* ==========================================================================
   6) แถบเมนูด้านซ้าย
   ========================================================================== */
/* โลโก้: ไม่มีกรอบสี่เหลี่ยม เหลือเฉพาะโลโก้ตัวใหญ่ มีมิติ */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .sidebar-left > .text-center,
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .sidebar-left.dark-sidebar > .text-center {
    position: relative !important;
    margin: 4px 0 20px !important;
    padding: 6px 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    perspective: 600px;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .sidebar-left > .text-center::before,
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .sidebar-left > .text-center::after { display: none !important; content: none !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .sidebar-left .sidebar-logo {
    position: relative; z-index: 1;
    display: block !important;
    width: 158px !important;
    height: 158px !important;
    max-width: 158px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 5px solid #fff !important;
    border-radius: 50% !important;
    background: #fff !important;
    object-fit: cover !important;
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--p7-p) 30%, #fff),
        0 0 0 9px color-mix(in srgb, var(--p7-p) 12%, transparent),
        inset 0 -6px 12px rgba(0, 0, 0, .12),
        0 8px 0 color-mix(in srgb, var(--p7-p-deep) 70%, #000),
        0 22px 34px -12px rgba(0, 0, 0, .55) !important;
    transform-style: preserve-3d;
    transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), box-shadow .35s ease !important;
    animation: p7LogoFloat 5.5s ease-in-out infinite;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .sidebar-left .sidebar-logo:hover { transform: translateY(-4px) rotateX(8deg) rotateY(-10deg) scale(1.04); animation-play-state: paused; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .sidebar-left.dark-sidebar .sidebar-logo {
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .35),
        0 0 0 10px rgba(255, 255, 255, .12),
        inset 0 -6px 12px rgba(0, 0, 0, .12),
        0 8px 0 rgba(0, 0, 0, .22),
        0 24px 36px -12px rgba(0, 0, 0, .6) !important;
}
/* แสงเงาวงรีใต้โลโก้ */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .sidebar-left > .text-center::after {
    content: '' !important; display: block !important; position: absolute; left: 50%; bottom: -4px; width: 120px; height: 14px; margin-left: -60px;
    border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .28), transparent); filter: blur(2px); pointer-events: none;
    animation: p7LogoShadow 5.5s ease-in-out infinite;
}
@keyframes p7LogoFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes p7LogoShadow { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.82); opacity: .55; } }
@media (max-width: 992px) {
    html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .sidebar-left .sidebar-logo { width: 112px !important; height: 112px !important; max-width: 112px !important; }
}
/* ไอคอนเมนู → ชิปนูนมีมิติ */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .sidebar-left .sidebar-item i {
    flex: 0 0 36px !important; width: 36px !important; height: 36px !important;
    border-radius: 12px !important;
    font-size: 16.5px !important;
    background-image: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--p7-p) 9%, #fff) 100%) !important;
    border: 1px solid color-mix(in srgb, var(--p7-p) 16%, #fff) !important;
    box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 color-mix(in srgb, var(--p7-p) 10%, transparent), 0 3px 0 color-mix(in srgb, var(--p7-p) 26%, #e4e7ec), 0 7px 12px -7px color-mix(in srgb, var(--p7-p) 70%, transparent) !important;
    text-shadow: 0 1px 0 #fff, 0 2px 3px color-mix(in srgb, var(--p7-p) 35%, transparent);
    transition: transform .18s ease !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .sidebar-left .sidebar-item:hover i { transform: translateY(-2px) rotate(-4deg); }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .sidebar-left .sidebar-item.active i {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .12)) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 3px 0 rgba(0, 0, 0, .16) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .sidebar-left.dark-sidebar .sidebar-item i {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .10) 100%) !important;
    border: 1px solid rgba(255, 255, 255, .34) !important;
    color: #fff !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 2px 6px rgba(0, 0, 0, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 3px 0 rgba(0, 0, 0, .2), 0 8px 14px -8px rgba(0, 0, 0, .5) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .sidebar-left.dark-sidebar .sidebar-item.active i {
    background-image: var(--u-btn) !important; border-color: transparent !important; color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 0, 0, .14), 0 3px 0 var(--p7-p-deep), 0 8px 14px -8px rgba(0, 0, 0, .5) !important;
}
/* เมนูย่อยของ "บริการ" ถูกนำออก — กันกรณีไฟล์ layout เก่ายังค้างในแคช */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .sidebar-left .sidebar-sub { display: none !important; }

/* ==========================================================================
   7) แถบด้านบน
   ========================================================================== */
/* ไม่แสดงปุ่มแฮมเบอร์เกอร์บนจอคอมพิวเตอร์ (ยุบเมนูได้จากปุ่มลูกศรในแถบเมนูซ้าย)
   บนมือถือ/แท็บเล็ตยังแสดง เพราะเป็นปุ่มเดียวที่ใช้เปิดเมนู */
@media (min-width: 993px) {
    html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .global-topbar .tt-burger { display: none !important; }
}
/* ป้ายผู้ใช้ (วงกลมรูปคน + ชื่อบทบาท + ภาษาอังกฤษ + ลูกศร) */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .global-user-menu > summary {
    height: 50px !important; min-height: 50px !important; gap: 10px !important; padding: 0 16px 0 6px !important;
    background: linear-gradient(180deg, #ffffff 0%, var(--p7-p-50) 100%) !important;
    border: 1px solid var(--p7-p-200) !important;
    box-shadow: inset 0 1px 0 #fff, 0 3px 0 var(--p7-p-200), 0 10px 18px -10px color-mix(in srgb, var(--p7-p) 60%, transparent) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .global-user-avatar {
    flex: 0 0 38px !important; width: 38px !important; height: 38px !important; min-width: 38px !important;
    background: var(--u-btn) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .16), 0 2px 0 var(--p7-p-deep), 0 6px 10px -5px color-mix(in srgb, var(--p7-p) 80%, transparent) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .global-user-avatar i { font-size: 18px !important; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .global-user-copy strong { font: 700 14.5px/1.15 var(--u-font, 'Prompt', sans-serif) !important; color: var(--u-head, #1d1633) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .global-user-copy small { font: 500 12px/1.15 var(--u-font, 'Prompt', sans-serif) !important; color: var(--u-muted, #667085) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .global-user-chevron { color: var(--p7-p-strong) !important; font-size: 13px !important; -webkit-text-stroke: .6px currentColor; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .global-topbar-home > i { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .16), 0 2px 0 var(--p7-p-deep) !important; }

/* ==========================================================================
   8) ไอคอน / ช่องกรอก มีมิติมากขึ้น
   ========================================================================== */
/* ไอคอนหัวหน้า (ชิปไล่สี) */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) :is(.main-content-full, .mn-page) :is(
    .tt-page-head .tt-ph-icon, .bd-top .bd-top-ico, .um-heading .um-title-icon, .al-top .al-heading-icon,
    .create-page-heading .create-title-icon, .settings-header-icon, .sv-empty-ico, .sv-dlg-ico, .mn-sec-ico, .sv-equip-ico
) {
    background-image: radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 55%), var(--u-btn) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -4px 0 rgba(0, 0, 0, .14), 0 4px 0 var(--p7-p-deep), 0 14px 22px -10px color-mix(in srgb, var(--p7-p) 80%, transparent) !important;
    text-shadow: 0 2px 2px rgba(0, 0, 0, .25);
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) :is(.main-content-full, .mn-page) :is(.tt-page-head .tt-ph-icon, .settings-header-icon) :is(i, svg) { filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .25)); }
/* ไอคอนการ์ดสถิติ / หัวการ์ด */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full :is(.tt-stat > .tt-ico, .mbr-type > .tt-ico, .bc-stat-ico, .resv-stat-icon, .inventory-stat-icon, .al-stat-icon, .rp-stat > .rp-ico) {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -3px 0 rgba(16, 24, 40, .07), 0 3px 0 rgba(16, 24, 40, .09), 0 10px 16px -10px rgba(16, 24, 40, .45) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full :is(.tt-stat > .tt-ico, .mbr-type > .tt-ico, .bc-stat-ico, .resv-stat-icon, .inventory-stat-icon, .al-stat-icon, .rp-stat > .rp-ico) :is(i, svg) { filter: var(--p7-glyph-depth); }
/* ช่องกรอก: ขอบล่างนูนชัดขึ้น */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) :is(.main-content-full, .mn-page) :is(
    input:is([type="text"], [type="email"], [type="password"], [type="number"], [type="date"], [type="datetime-local"], [type="tel"], [type="url"], [type="month"], [type="time"]),
    input:not([type]), select, textarea
):not([type="hidden"]):not(.tt-noform):not(.ttp-search *):not(.search-input-fit *):not(.res-search-wrap *):not(.sv-search *):not(.ifield > *):not(.opac-live-preview *):not(.opac-preview-modal *) {
    border-color: var(--p7-field-line) !important;
    box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(16, 24, 40, .03), 0 3px 0 var(--p7-field-lip), 0 8px 14px -10px color-mix(in srgb, var(--p7-p) 45%, rgba(16, 24, 40, .4)) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) :is(.main-content-full, .mn-page) :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not(.ttp-search *):not(.opac-live-preview *):not(.opac-preview-modal *):focus {
    border-color: var(--p7-p) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--p7-p) 16%, transparent), 0 3px 0 var(--p7-p-200) !important;
}

/* ==========================================================================
   9) บาร์โค้ดตัวเล่ม (เพิ่ม / แก้ไขหนังสือ)
   ========================================================================== */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full #copy-barcode-widget .bc-row { gap: 10px !important; margin: 10px 0 !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full #copy-barcode-widget .bc-row > label {
    min-width: 72px !important; margin: 0 !important; padding: 6px 10px; border-radius: 10px; text-align: center;
    background: linear-gradient(180deg, #fff, var(--p7-p-50)); border: 1px solid var(--p7-p-200); color: var(--p7-p-deep);
    font: 600 13px/1.2 var(--u-font, 'Prompt', sans-serif) !important; box-shadow: inset 0 1px 0 #fff, 0 2px 0 var(--p7-p-200);
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full #copy-barcode-widget .bc-row > input[name="copy_barcodes[]"] { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace !important; font-weight: 600 !important; letter-spacing: .4px; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full #copy-barcode-widget .bc-row.is-saved > input[name="copy_barcodes[]"] { background-image: linear-gradient(180deg, #fff, color-mix(in srgb, #16a34a 5%, #fff)) !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full #copy-barcode-widget .bc-row.is-fixed > input[name="copy_barcodes[]"] { border-color: #f59e0b !important; box-shadow: 0 0 0 4px rgba(245, 158, 11, .18), 0 3px 0 #fcd34d !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full #copy-barcode-widget .bc-remove {
    flex: 0 0 38px; width: 38px; height: 38px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px !important; border: 1px solid #f8b4b4 !important; color: #dc2626 !important; font-size: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #fdeaea 100%) !important;
    box-shadow: inset 0 1px 0 #fff, 0 3px 0 #f1aaaa, 0 8px 14px -8px rgba(220, 38, 38, .55) !important; transition: transform .14s ease;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full #copy-barcode-widget .bc-remove:hover:not(:disabled) { background: linear-gradient(180deg, #f87171, #dc2626) !important; color: #fff !important; transform: translateY(-2px); }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full #copy-barcode-widget .bc-remove:disabled { opacity: .45; cursor: not-allowed; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full #copy-barcode-widget .bc-fixnote {
    display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 10px 14px; border-radius: 12px;
    background: linear-gradient(180deg, #fffdf5, #fffaeb); border: 1px solid #fedf89; color: #93370d; font-size: 13.5px;
    box-shadow: inset 0 1px 0 #fff, 0 2px 0 #fedf89;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full #copy-barcode-widget .bc-fixnote[hidden] { display: none; }

/* ==========================================================================
   10) OPAC
   ========================================================================== */
/* ภาพพื้นหลังกล่องค้นหา (ตั้งค่าจากหน้าตั้งค่า OPAC) ให้แสดงเหมือนเดิม */
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-hero.has-img {
    background-color: var(--c-search, #fff) !important;
    /* ภาพมาจาก style ของ <section> (ใส่ !important ไว้แล้ว) */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: 4px solid rgba(255, 255, 255, .9) !important;
    outline: 1px solid color-mix(in srgb, var(--p7-p) 14%, #dfe2ea);
    outline-offset: -1px;
    box-shadow: inset 0 1px 0 #fff, 0 4px 0 color-mix(in srgb, var(--p7-p) 18%, #d9dce5), 0 26px 44px -24px color-mix(in srgb, var(--p7-s) 55%, rgba(16, 24, 40, .45)) !important;
}
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-hero.has-img .opx-search { background: rgba(255, 255, 255, .92) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 760px) {
    html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-hero.has-img { background-size: 100% auto !important; background-position: center top !important; }
}
/* ส่วนท้าย: ใช้สีจากหน้าตั้งค่า OPAC (สีส่วนท้าย) ตัวอักษรอ่านง่าย */
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-footer {
    position: relative;
    background:
        radial-gradient(700px 240px at 0% 0%, rgba(255, 255, 255, .10), transparent 70%),
        radial-gradient(600px 260px at 100% 100%, rgba(0, 0, 0, .14), transparent 70%),
        var(--c-footer, #1e1b3a) !important;
    color: var(--f-text, #fff) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-footer .opx-fb {
    background: none !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: var(--f-text, #fff) !important;
}
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-footer .opx-fi {
    width: 48px !important; height: 48px !important; min-width: 48px; border-radius: 15px !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--f-text, #fff) 26%, transparent), color-mix(in srgb, var(--f-text, #fff) 10%, transparent)) !important;
    border: 1px solid color-mix(in srgb, var(--f-text, #fff) 28%, transparent) !important;
    color: var(--f-text, #fff) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 3px 0 rgba(0, 0, 0, .18), 0 10px 18px -10px rgba(0, 0, 0, .55) !important;
}
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-footer .opx-fi i { color: var(--f-text, #fff) !important; font-size: 20px !important; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-footer :is(h3, strong) { color: var(--f-text, #fff) !important; -webkit-text-fill-color: currentColor !important; text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-footer p { color: var(--f-sub, rgba(255, 255, 255, .86)) !important; }
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-footer p i { color: var(--f-text, #fff) !important; opacity: .85; }
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-footer a { color: var(--f-text, #fff) !important; -webkit-text-fill-color: currentColor !important; }
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-fbot {
    background: var(--c-footer_bottom, rgba(0, 0, 0, .18)) !important;
    color: var(--f-btext, #fff) !important;
    border-top: 1px solid var(--f-line, rgba(255, 255, 255, .22)) !important;
}
/* ป้ายผู้ใช้บนแถบหัว OPAC = แบบเดียวกับแถบด้านบนของระบบหลัก */
.opx .opx-umenu { position: relative; }
.opx .opx-umenu > summary { list-style: none; cursor: pointer; user-select: none; }
.opx .opx-umenu > summary::-webkit-details-marker { display: none; }
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-umenu > summary.opx-pill.opx-user {
    display: inline-flex !important; align-items: center !important; gap: 10px !important;
    height: 50px !important; min-height: 50px !important; max-width: 300px !important; padding: 0 16px 0 6px !important;
    border-radius: 999px !important; border: 1px solid var(--p7-p-200) !important;
    background: linear-gradient(180deg, #ffffff 0%, var(--p7-p-50) 100%) !important;
    color: var(--u-ink, #18202f) !important;
    box-shadow: inset 0 1px 0 #fff, 0 3px 0 var(--p7-p-200), 0 10px 18px -10px color-mix(in srgb, var(--p7-p) 60%, transparent) !important;
    transition: transform .12s ease, box-shadow .12s ease !important;
}
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-umenu > summary.opx-pill.opx-user:hover { transform: translateY(-1px) !important; }
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-umenu > summary .opx-u-ava {
    flex: 0 0 38px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
    background: var(--u-btn, linear-gradient(180deg, #9f67ff, #6d28d9)) !important; color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .16), 0 2px 0 var(--p7-p-deep), 0 6px 10px -5px color-mix(in srgb, var(--p7-p) 80%, transparent);
}
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-umenu > summary .opx-u-ava i { width: auto !important; height: auto !important; background: none !important; color: #fff !important; font-size: 18px !important; box-shadow: none !important; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.opx .opx-umenu .opx-u-copy { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; line-height: 1.15; text-align: left; }
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-umenu .opx-u-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-head, #1d1633) !important; font: 700 14.5px/1.15 var(--u-font, 'Prompt', sans-serif) !important; }
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-umenu .opx-u-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-muted, #667085) !important; font: 500 12px/1.15 var(--u-font, 'Prompt', sans-serif) !important; }
html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-umenu .opx-u-chev { width: auto !important; height: auto !important; background: none !important; box-shadow: none !important; color: var(--p7-p-strong) !important; font-size: 13px !important; -webkit-text-stroke: .6px currentColor; transition: transform .2s ease; }
.opx .opx-umenu[open] .opx-u-chev { transform: rotate(180deg); }
.opx .opx-u-drop {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 240px; padding: 8px;
    border-radius: 18px; background: linear-gradient(160deg, #fff 0%, var(--p7-p-50) 100%);
    border: 1px solid color-mix(in srgb, var(--p7-p) 12%, #e4e7ec);
    box-shadow: inset 0 1px 0 #fff, 0 4px 0 color-mix(in srgb, var(--p7-p) 14%, #d9dce5), 0 26px 44px -18px rgba(16, 24, 40, .45);
    animation: p7Drop .16s ease;
}
@keyframes p7Drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.opx .opx-u-drop .opx-u-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; color: #344054; font-size: 14px; line-height: 1.4; }
.opx .opx-u-drop .opx-u-row + .opx-u-row { border-top: 1px solid color-mix(in srgb, var(--p7-p) 10%, #eaecf0); }
.opx .opx-u-drop .opx-u-row > i { width: 18px; margin-top: 2px; color: var(--p7-p-strong); text-align: center; }
.opx .opx-u-drop .opx-u-row small { display: block; color: #667085; font-size: 12px; }
.opx .opx-u-drop .opx-u-row b { display: block; color: #101828; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 760px) {
    html body.opx:not(#_u):not(#_v6):not(#_tt):not(#_p7) .opx-umenu > summary.opx-pill.opx-user { width: 50px !important; padding: 0 !important; justify-content: center !important; }
    .opx .opx-umenu .opx-u-copy, .opx .opx-umenu .opx-u-chev { display: none !important; }
}

/* ==========================================================================
   พิมพ์ / ลดการเคลื่อนไหว
   ========================================================================== */
@media print {
    .sidebar-left .sidebar-logo { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    html body .sidebar-left .sidebar-logo,
    html body .sidebar-left > .text-center::after { animation: none !important; }
}

/* ช่องค้นหาในหน้า "ประวัติการใช้งาน": ช่อง + ปุ่มอยู่บรรทัดเดียวกัน */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .al-search { display: flex !important; align-items: center !important; gap: 8px !important; flex-wrap: nowrap !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .al-search > .ttp-search { width: auto !important; flex: 1 1 auto !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7) .main-content-full .al-search > button { flex: 0 0 auto; white-space: nowrap; }

/* ==========================================================================
   P8) ป้ายบทบาท / สถานะ / ประวัติการใช้งาน / ประเภทสมาชิก → ช่องสีทึบเข้ม นูน
       (หน้า ผู้ใช้งาน, การจอง, ประวัติการใช้งาน, สมาชิก)
   ========================================================================== */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page) :is(
    .um-role, .um-status, .resv-pill, .al-pill, .al-module, .c-type .tt-pill
) {
    --tt-sb: #475569; --tt-sd: #1e293b;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 28px !important;
    min-width: 64px;
    padding: 4px 14px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(0, 0, 0, .18) !important;
    background-color: var(--tt-sb) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .12) 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font: 600 12.5px/1.25 var(--u-font, 'Prompt', sans-serif) !important;
    letter-spacing: .1px !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .3) !important;
    white-space: nowrap !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 2px 0 var(--tt-sd), 0 6px 12px -6px var(--tt-sb) !important;
}
/* โทนสี */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page) :is(
    .um-status:not(.um-status-off), .resv-pill.completed, .resv-pill.ready, .resv-pill.done, .al-pill.login, .c-type .tt-pill.green
) { --tt-sb: #15803d; --tt-sd: #14532d; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page) :is(
    .um-status-off, .resv-pill.expired, .al-pill.logout, .c-type .tt-pill.red
) { --tt-sb: #be123c; --tt-sd: #881337; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page) :is(
    .um-role, .al-pill.print, .c-type .tt-pill.orange
) { --tt-sb: #c2410c; --tt-sd: #7c2d12; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page) :is(
    .um-role.um-role-admin, .c-type .tt-pill.purple
) { --tt-sb: #6d28d9; --tt-sd: #4c1d95; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page) :is(
    .resv-pill.notified, .c-type .tt-pill.blue
) { --tt-sb: #1d4ed8; --tt-sd: #1e3a8a; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page) :is(
    .resv-pill.pending, .c-type .tt-pill.yellow
) { --tt-sb: #b45309; --tt-sd: #78350f; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page) :is(
    .resv-pill.cancelled, .al-pill.other, .c-type .tt-pill.gray, .c-type .tt-pill.grey
) { --tt-sb: #475569; --tt-sd: #1e293b; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page) .al-module {
    --tt-sb: #4338ca; --tt-sd: #312e81;
    font-size: 11.5px !important; letter-spacing: .6px !important; min-width: 0;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page) :is(.um-role, .um-status, .resv-pill, .al-pill, .al-module, .c-type .tt-pill):empty { display: none !important; }

/* ==========================================================================
   P8) ปุ่มจัดการ ดู / แก้ไข / ลบ → ช่องสีเข้มขึ้น ไอคอนตาเป็นสีดำ
   ========================================================================== */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page, .portal) :is(.tt-icon-btn.view, .table-book-list a.btn[title="ดูรายละเอียด"], .inventory-action-btn[title^="ดู"]) {
    border: 1.5px solid #16a34a !important;
    background-color: #86efac !important;
    background-image: linear-gradient(180deg, #bbf7d0 0%, #86efac 100%) !important;
    color: #111111 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(21, 128, 61, .18), 0 3px 0 #15803d, 0 8px 14px -8px rgba(21, 128, 61, .7) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page, .portal) :is(.tt-icon-btn.edit, .um-action.um-edit, .resv-smallbtn.resv-edit, .be-act.edit, .bd-ico-btn[title="แก้ไข"], .table-book-list a.btn[title="แก้ไข"]) {
    border: 1.5px solid #64748b !important;
    background-color: #cbd5e1 !important;
    background-image: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%) !important;
    color: #111111 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(15, 23, 42, .12), 0 3px 0 #475569, 0 8px 14px -8px rgba(15, 23, 42, .6) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page, .portal) :is(.tt-icon-btn.delete, .um-action.um-delete, .resv-smallbtn.resv-delete, .inventory-action-btn.danger, .be-act.del, .table-book-list a.btn[title="ลบ"]) {
    border: 1.5px solid #dc2626 !important;
    background-color: #fca5a5 !important;
    background-image: linear-gradient(180deg, #fecaca 0%, #fca5a5 100%) !important;
    color: #7f1d1d !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(185, 28, 28, .18), 0 3px 0 #b91c1c, 0 8px 14px -8px rgba(220, 38, 38, .7) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page, .portal) :is(.tt-icon-btn.view, .table-book-list a.btn[title="ดูรายละเอียด"], .inventory-action-btn[title^="ดู"]) :is(i, svg) { color: #111111 !important; -webkit-text-fill-color: #111111 !important; }
/* ชี้ = เติมสีเข้มเต็ม ไอคอนขาว */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page, .portal) :is(.tt-icon-btn.view, .table-book-list a.btn[title="ดูรายละเอียด"], .inventory-action-btn[title^="ดู"]):hover {
    background-image: linear-gradient(180deg, #22c55e 0%, #15803d 100%) !important; border-color: #14532d !important; color: #fff !important;
    transform: translateY(-2px) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 0 #14532d, 0 12px 18px -8px rgba(21, 128, 61, .7) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page, .portal) :is(.tt-icon-btn.view, .table-book-list a.btn[title="ดูรายละเอียด"], .inventory-action-btn[title^="ดู"]):hover :is(i, svg) { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page, .portal) :is(.tt-icon-btn.edit, .um-action.um-edit, .resv-smallbtn.resv-edit, .be-act.edit, .bd-ico-btn[title="แก้ไข"], .table-book-list a.btn[title="แก้ไข"]):hover {
    background-image: linear-gradient(180deg, #4b5563 0%, #111827 100%) !important; border-color: #030712 !important; color: #fff !important;
    transform: translateY(-2px) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 0 #030712, 0 12px 18px -8px rgba(17, 24, 39, .6) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page, .portal) :is(.tt-icon-btn.delete, .um-action.um-delete, .resv-smallbtn.resv-delete, .inventory-action-btn.danger, .be-act.del, .table-book-list a.btn[title="ลบ"]):hover {
    background-image: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%) !important; border-color: #7f1d1d !important; color: #fff !important;
    transform: translateY(-2px) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 0 #7f1d1d, 0 12px 18px -8px rgba(220, 38, 38, .7) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8) :is(.main-content-full, .mn-page, .portal) :is(
    .tt-icon-btn.view, .tt-icon-btn.edit, .tt-icon-btn.delete, .um-action.um-edit, .um-action.um-delete,
    .resv-smallbtn.resv-edit, .resv-smallbtn.resv-delete, .inventory-action-btn, .be-act.edit, .be-act.del, .bd-ico-btn[title="แก้ไข"],
    .table-book-list a.btn[title="ดูรายละเอียด"], .table-book-list a.btn[title="แก้ไข"], .table-book-list a.btn[title="ลบ"]
):active { transform: translateY(2px) !important; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25) !important; }

/* ==========================================================================
   P9) ปรับตามคำขอ (ต่อท้ายไฟล์ ไม่แก้กฎเดิม — ลบส่วนนี้เพื่อกลับเป็นแบบเดิม)
   ========================================================================== */
:root {
    --p9-dark: color-mix(in srgb, var(--p7-p-deep, #9a3412) 72%, #000);
    --p9-dark-2: color-mix(in srgb, var(--p7-p-deep, #9a3412) 50%, #000);
}

/* 1) ยุบเมนูด้านซ้ายแล้ว ไม่แสดงโลโก้ (เดิมโลโก้ล้นออกนอกแถบ) */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .app-layout-wrapper.sidebar-collapsed .sidebar-left > .text-center,
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .app-layout-wrapper.sidebar-collapsed .sidebar-left .sidebar-logo,
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .app-layout-wrapper.sidebar-collapsed .sidebar-left > .text-center::after {
    display: none !important;
    animation: none !important;
}

/* 2) ไอคอนเมนูด้านซ้าย: ปุ่มและกรอบสีเข้มทึบ */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .sidebar-left .sidebar-item i,
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .sidebar-left.dark-sidebar .sidebar-item i,
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .sidebar-left .sidebar-item.active i,
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .sidebar-left.dark-sidebar .sidebar-item.active i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--p9-dark) !important;
    background-image: none !important;
    border: 1.5px solid var(--p9-dark-2) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
    text-shadow: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 0 var(--p9-dark-2), 0 6px 12px -6px rgba(0, 0, 0, .55) !important;
}

/* 3) ป้ายสถานะในตาราง → สีเข้มทึบ (หนังสือ: พร้อมให้ยืม/ชำรุด/ไม่พร้อม, สมาชิก: ใช้งาน/ระงับ/หมดอายุ) */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .main-content-full :is(.table-book-list td .badge, .mbr-table .c-status .tt-pill, .c-status .tt-pill) {
    --tt-sb: #475569; --tt-sd: #1e293b;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 28px !important;
    min-width: 64px;
    padding: 4px 14px !important;
    border-radius: 999px !important;
    border: 1px solid var(--tt-sd) !important;
    background: var(--tt-sb) !important;
    background-image: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font: 600 12.5px/1.25 var(--u-font, 'Prompt', sans-serif) !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 0 var(--tt-sd) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .main-content-full :is(.table-book-list td .badge.bg-success, .c-status .tt-pill.green) { --tt-sb: #15803d; --tt-sd: #14532d; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .main-content-full :is(.table-book-list td .badge.bg-danger, .c-status .tt-pill.red) { --tt-sb: #be123c; --tt-sd: #881337; }
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .main-content-full :is(.table-book-list td .badge.bg-warning, .c-status .tt-pill.yellow) { --tt-sb: #b45309; --tt-sd: #78350f; }

/* 4) กล่องการแจ้งเตือน: ไม่แสดงจุดสีเขียว / คำว่าอัปเดตอัตโนมัติ (กันไฟล์ JS เก่าที่ค้างในแคช) */
.tt-bell .tt-bell-head .tt-live { display: none !important; }

/* 5) ลดอาการกระตุก/แลค: หยุดแอนิเมชันที่วนไม่รู้จบ (โลโก้ลอย/เงาโลโก้/จุดกะพริบ) ซึ่งทำให้เบราว์เซอร์วาดหน้าใหม่ตลอดเวลา */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .sidebar-left .sidebar-logo,
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .sidebar-left > .text-center::after,
.tt-live::before {
    animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 6) วงกลมรูปผู้ใช้บนแถบด้านบน (ผู้ดูแลระบบ/บรรณารักษ์): ให้กลมตรง ไอคอนอยู่กึ่งกลาง ขนาดเท่าไอคอน "หน้าหลัก" */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .global-user-menu > summary {
    display: inline-flex !important;
    align-items: center !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .global-user-avatar {
    position: relative !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    border: 0 !important;
    overflow: hidden !important;
    transform: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .16), 0 2px 0 var(--p7-p-deep) !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .global-user-avatar i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    transform: none !important;
}
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .global-user-avatar i::before {
    display: block !important;
    line-height: 1 !important;
    vertical-align: 0 !important;
    margin: 0 !important;
}

/* 7) หน้ายืม-คืน: การ์ดที่ 5 "ค่าปรับคงเหลือ" ใช้สัญลักษณ์ ฿ และโทนชมพู (ไม่ใช้ไอคอนหนังสือซ้ำกับการ์ดแรก) */
html body:not(#_u):not(#_v6):not(#_tt):not(#_p7):not(#_p8):not(#_p9) .main-content-full .borrow-list-count.fines::before {
    content: "\0E3F" !important;
    font-family: var(--u-font, 'Prompt', sans-serif) !important;
    font-weight: 700 !important;
    background: #fce7f3 !important;
    color: #be185d !important;
}
