/* ===== Shared page components (measured from Misa list screens) ===== */

/* --- Tab bar under header --- */
.navigation-tabs { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ms-tabs { height: 41px; flex: 0 0 41px; background: var(--bg-tabs); padding: 8px 16px 0; border-bottom: 1px solid #dfe1e3; display: flex; }
.ms-tabs .ul-tabs { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.ms-tabs .ul-tabs::-webkit-scrollbar { display: none; }
.ms-tabs-li { height: 32px; border-bottom: 2px solid transparent; display: flex; }
.ms-tabs-li .ms-tabs-btn { height: 30px; padding: 8px 12px; border-radius: 6px 6px 0 0; font-weight: 600; color: var(--text); white-space: nowrap; cursor: pointer; line-height: 16px; text-align: center; }
.ms-tabs-li:hover .ms-tabs-btn { background: rgba(255,255,255,.6); }
.ms-tabs-li.active-item { border-bottom-color: var(--brand); }
.ms-tabs-li.active-item .ms-tabs-btn { background: #fff; color: var(--brand); font-weight: 600; }
.ms-tabs .tab-badge-new { display: inline-block; margin-left: 5px; padding: 0 5px; height: 18px; line-height: 18px; border-radius: 5px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; vertical-align: 1px; }
.ms-tabs .tabs-right { display: flex; align-items: center; gap: 6px; margin-top: -4px; flex: 0 0 auto; }
.ms-tabs .icon-hint { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ms-tabs .tab-config { width: 25px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }

/* --- Page header (dashboard style: title + actions) --- */
.page-header { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 8px; }
.page-header h1 { font-size: 20px; font-weight: 700; margin: 0; }

/* --- List screen --- */
.list-screen { flex: 1; min-height: 0; padding: 12px 16px; display: flex; flex-direction: column; overflow: hidden; }
.layout-master-detail { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.master-section { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.master-section.with-detail { flex: 0 0 auto; }

/* stat cards */
.ls-stat-cards { display: flex; gap: 8px; margin: 0 0 8px; padding-left: 2px; }
.ls-stat-card { flex: 1; height: 48px; background: var(--bg-card); padding: 6px 12px; border-radius: 8px; border: 2px solid #fff; display: flex; align-items: center; gap: 12px; box-shadow: var(--accent, #039855) -2px 0 0 0, rgba(0,0,0,.1) 0 0 2px 0; }
.ls-stat-card--receipt { --accent: #039855; }
.ls-stat-card--payment { --accent: #ea7c18; }
.ls-stat-card--balance { --accent: #7c3aed; }
.ls-stat-card--blue { --accent: #1570ef; }
.ls-stat-card__icon-wrap { width: 36px; height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex: 0 0 36px; }
.ls-stat-card__icon-wrap--green { background: #eaf8ef; color: #039855; }
.ls-stat-card__icon-wrap--orange { background: #ffedd5; color: #ea7c18; }
.ls-stat-card__icon-wrap--purple { background: #ede9fe; color: #7c3aed; }
.ls-stat-card__icon-wrap--blue { background: #dbeafe; color: #1570ef; }
.ls-stat-card__body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ls-stat-card__title { font-size: 11px; line-height: 16px; }
.ls-stat-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 20px; }
.ls-stat-card__value { font-size: 15px; font-weight: 600; line-height: 22px; color: #000; cursor: pointer; }
.ls-stat-card__value--green { color: var(--green-value); }
.ls-stat-card__caption { display: flex; align-items: center; gap: 4px; color: var(--text-3); font-size: 12px; font-weight: 400; padding: 2px; }
.ls-stat-card__caption .mi { color: var(--muted); }
.ls-collapse-pill { width: 40px; height: 16px; margin: -16px auto 0; position: relative; z-index: 1; background: #fff; border: 1px solid var(--border-2); border-bottom: 0; border-radius: 4px 4px 0 0; display: flex; align-items: center; justify-content: center; color: #5d5d5d; cursor: pointer; }

/* list panel */
.ls-list-panel { background: #fff; border-radius: 8px; box-shadow: 0 0 2px rgba(0,0,0,.1); display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ls-toolbar { height: 44px; flex: 0 0 44px; padding: 8px 12px; border-radius: 8px 8px 0 0; }
.ls-toolbar__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 28px; }
.ls-toolbar__left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.ls-toolbar__right { display: flex; align-items: center; gap: 8px; }
.ls-toolbar__icon-group { display: flex; align-items: center; gap: 8px; }

/* Ở cửa sổ desktop hẹp, toolbar một hàng không đủ chỗ cho cả bộ lọc và
   nhóm thao tác. Chuyển thành hai hàng để các nút không đè/làm dịch input. */
@media (max-width: 1200px) {
  .ls-toolbar { height: 80px; flex-basis: 80px; }
  .ls-toolbar__row { height: 64px; flex-wrap: wrap; align-content: space-between; }
  .ls-toolbar__left, .ls-toolbar__right { flex: 0 0 100%; width: 100%; min-width: 0; }
  .ls-toolbar__right { justify-content: flex-end; }
  .ls-toolbar__left > * { flex-shrink: 0; }
}
.ms-searchbox { width: 220px; height: 28px; border: 1px solid var(--border); border-radius: 6px; background: #fff; display: flex; align-items: center; gap: 6px; padding: 0 8px; }
.ms-searchbox .mi { color: var(--muted-2); }
.ms-searchbox input { flex: 1; min-width: 0; border: 0; outline: none; height: 26px; font-size: 13px; font-weight: 400; background: transparent; }
.ms-searchbox input::placeholder { color: var(--muted-2); }
.list-condition { height: 28px; padding: 0 8px 0 12px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
.list-condition__label { color: var(--text-2); }
.list-condition .mi { color: var(--muted); }
.filter-item--default { white-space: nowrap; }
.ls-toolbar-icon-btn { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
.ls-toolbar-icon-btn:hover { background: #f3f4f6; }

/* buttons */
.ms-button { height: 28px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; cursor: pointer; line-height: 1; }
.ms-button-primary { background: var(--brand); color: #fff; }
.ms-button-primary:hover { background: #0c8a57; }
.ms-button-outline { background: #fff; border: 1px solid var(--border); color: var(--text); }
.ms-button-outline:hover { background: #f3f4f6; }
.ms-button-text { color: var(--text); }
.ms-button-link { color: var(--link); }
.ms-dropdown-split { display: flex; height: 28px; border-radius: 6px; background: var(--brand); color: #fff; }
.ms-dropdown-split .ms-button { border-radius: 6px 0 0 6px; background: transparent; }
.ms-dropdown-split .split-divider { width: 1px; background: rgba(0,0,0,.2); }
.ms-dropdown-split .split-arrow { width: 28px; display: flex; align-items: center; justify-content: center; border-radius: 0 6px 6px 0; cursor: pointer; }
.ms-dropdown-split:hover { background: #0c8a57; }

/* --- Grid / table --- */
.grid-model-control { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ms-grid-viewer { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.overflow-wapper { flex: 1; min-height: 0; overflow: auto; }
.ms-table-viewer { border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 100%; width: var(--table-w, 100%); }
.ms-table-viewer th, .ms-table-viewer td { padding: 0 4px; border-right: 1px solid var(--border); white-space: nowrap; }
.ms-table-viewer th:last-child, .ms-table-viewer td:last-child { border-right: 0; }
.ms-thead-viewer th { position: sticky; top: 0; z-index: 2; height: 32px; background: var(--grid-head); font-weight: 700; text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ms-thead-viewer th .ms-head-title { display: block; padding: 4px 20px 4px 12px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; }
.ms-thead-viewer th.text-left .ms-head-title { text-align: left; }
.ms-thead-viewer th.text-right .ms-head-title { text-align: right; }
.ms-tbody-viewer tr { height: 32px; background: #fff; }
.ms-tbody-viewer tr:hover { background: #f3f8f6; }
.ms-tbody-viewer tr.row-selected { background: var(--brand-selected); }
.ms-tbody-viewer td { border-bottom: 1px solid var(--border); vertical-align: middle; height: 32px; }
.ms-tbody-viewer td .padding-cell-content { padding: 4px 8px 4px 12px; line-height: 19.5px; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ms-tbody-viewer td.text-right .padding-cell-content { text-align: right; }
.ms-tbody-viewer td.text-center .padding-cell-content { text-align: center; }
.ms-tbody-viewer td .drilldown { color: var(--link); cursor: pointer; }
.ms-tbody-viewer tr.compact { height: 32px; }
.ms-tbody-viewer tr.compact td { height: 32px; }
.ms-tfoot-viewer th { height: 32px; background: var(--grid-foot); font-weight: 700; text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: sticky; bottom: 0; z-index: 2; }
.ms-tfoot-viewer th .padding-cell-footer { padding: 4px 8px 4px 12px; display: flex; }
.ms-tfoot-viewer th.text-right .padding-cell-footer { justify-content: flex-end; }
.ms-th-wiget, .ms-td-wiget { width: 110px; }
.ls-widget-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 4px 0 8px; height: 28px; color: var(--link); cursor: pointer; }
.ls-widget-actions .mi { color: var(--muted); }
.ms-grid-row-number { width: 32px; text-align: center; }
.con-ms-checkbox { display: flex; align-items: center; justify-content: center; height: 100%; }
.checkbox_x { width: 16px; height: 16px; border-radius: 4px; border: 1px solid #d5d7da; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.checkbox_x.checked { background: var(--brand); border-color: var(--brand); color: #fff; }
.text-red { color: #d92d20; }

/* pagination */
.ms-pagination { height: 40px; flex: 0 0 40px; background: #fff; border-radius: 0 0 8px 8px; }
.ms-paging { height: 40px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ms-paging__left { display: flex; align-items: center; }
.ms-paging__total b { font-weight: 600; }
.ms-paging__right { display: flex; align-items: center; gap: 16px; }
.calculation-result { display: flex; }
.calculation-item { display: flex; padding-left: 16px; }
.calculation-label { color: var(--muted-3); }
.calculation-value { margin-left: 4px; }
.ms-paging__page-size { display: flex; align-items: center; gap: 8px; }
.ms-combo { height: 28px; width: 80px; border: 1px solid var(--border); border-radius: 6px; background: #fff; display: flex; align-items: center; cursor: pointer; }
.ms-combo .selected-options { flex: 1; padding-left: 12px; }
.ms-combo .combo-actions { width: 32px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.ms-paging__nav { display: flex; align-items: center; }
.ms-paging__nav-btn { width: 32px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
.ms-paging__nav-btn--disabled { color: #9ca3af; cursor: default; }
.paging-number { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.paging-number.pageSelected { color: var(--brand); font-weight: 700; }

/* --- Detail section (master/detail) --- */
.detail-section { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.divider-section { height: 0; position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; }
.divider-section .slide-line { position: absolute; left: 0; right: 0; top: 2px; height: 13px; border-radius: 2px; }
.divider-section .resize-icon { position: absolute; top: 3px; visibility: hidden; width: 30px; height: 7px; border-top: 1px solid #a8a8a8; border-bottom: 1px solid #a8a8a8; }
.divider-section .resize-icon.first { left: 33.333%; }
.divider-section .resize-icon.second { left: 65%; }
.divider-section .collapse-btn { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 40px; height: 20px; background: #fff; border: 1px solid var(--border-2); border-top: 0; border-radius: 0 0 4px 4px; box-shadow: 0 1px 2px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; z-index: 6; user-select: none; }
.divider-section .collapse-btn:hover { color: var(--brand); background: #f3fbf7; }
.divider-section .collapse-btn:focus-visible { outline: 2px solid rgba(16,163,111,.35); outline-offset: 1px; }
.detail-section.misa-detail-collapsed { flex: 0 0 20px !important; min-height: 20px !important; }
.detail-section.misa-detail-collapsed .ls-detail-panel { display: none !important; }
.ls-detail-panel { background: #fff; border-radius: 8px; margin-top: 8px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ls-detail-panel .tab-title { margin: 8px 0 0 16px; display: flex; gap: 24px; }
.ls-detail-panel .tab-item { font-weight: 600; color: #111; cursor: pointer; }
.ls-detail-panel .tab-item.inactive { font-weight: 400; color: var(--muted); }
.ls-detail-panel .grid-model-control { margin-top: 8px; }

/* --- Process (Quy trình) page --- */
.process-page { flex: 1; overflow: auto; display: flex; flex-direction: column; align-items: center; padding: 108px 0 40px; }
.process-row { display: flex; gap: 20px; width: 1100px; }
.process-card { background: #fff; border-radius: 8px; padding: 20px 24px; box-shadow: 0 0 2px rgba(0,0,0,.1); }
.process-card h3 { margin: 0 0 12px; text-align: center; font-size: 13px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--border-2); }
.process-card.diagram { flex: 0 0 725px; height: 460px; position: relative; }
.process-card.reports { flex: 1; height: 460px; display: flex; flex-direction: column; }
.process-card.reports ul { list-style: none; margin: 0; padding: 0; }
.process-card.reports li { padding: 14px 0 14px 18px; border-bottom: 1px dashed var(--border-2); position: relative; }
.process-card.reports li::before { content: "•"; position: absolute; left: 4px; }
.process-card.reports .all { margin-top: auto; text-align: center; padding-top: 12px; }
.process-node { position: absolute; width: 90px; text-align: center; font-size: 13px; }
.process-node .pic { width: 56px; height: 56px; margin: 0 auto 6px; border-radius: 8px; background: #e6f5ef; display: flex; align-items: center; justify-content: center; color: var(--brand); position: relative; }
.process-node .pic .tag { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 8px; font-weight: 700; padding: 1px 4px; border-radius: 3px; }
.process-arrow { position: absolute; border-top: 1px dashed #8fd3b5; }
.process-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4px solid transparent; border-left-color: #8fd3b5; }
.process-arrow.vert { border-top: 0; border-left: 1px dashed #8fd3b5; }
.process-arrow.vert::after { right: -4px; top: auto; bottom: -1px; border: 4px solid transparent; border-top-color: #8fd3b5; }
.process-shortcuts { width: 1100px; margin-top: 12px; background: #fff; border-radius: 8px; height: 68px; display: flex; box-shadow: 0 0 2px rgba(0,0,0,.1); }
.process-shortcuts .sc { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-right: 1px solid var(--border-2); cursor: pointer; }
.process-shortcuts .sc:last-child { border-right: 0; }
.process-shortcuts .sc .mi { color: var(--brand); }
.process-promo { width: 1100px; margin-top: 16px; background: #eef9f3; border: 1px solid #cfe9db; border-radius: 8px; padding: 16px; }
.process-promo .head { display: flex; align-items: center; gap: 12px; }
.process-promo .head .logo { width: 36px; height: 36px; border-radius: 50%; background: #2d9cff; display: flex; align-items: center; justify-content: center; color: #fff; }
.process-promo .head b { display: block; }
.process-promo .head .btn { margin-left: auto; }
.process-promo .stories-title { margin: 20px 0 10px; font-weight: 600; font-size: 12px; text-transform: uppercase; }
.process-promo .stories { display: flex; gap: 16px; }
.process-promo .story { flex: 1; background: #fff; border-radius: 8px; padding: 10px; display: flex; gap: 10px; border: 1px solid var(--border-2); }
.process-promo .story .thumb { width: 90px; height: 64px; border-radius: 6px; background: linear-gradient(135deg, #cde5ff, #6fa8ff); flex: 0 0 90px; }
.process-promo .story .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.process-promo .story .s { color: var(--text-2); font-size: 12px; margin: 4px 0; }

/* --- Dashboard cards --- */
.dash-card { background: #fff; border-radius: 8px; box-shadow: 0 0 2px rgba(0,0,0,.1); padding: 16px; display: flex; flex-direction: column; }
.dash-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dash-card__title { font-weight: 600; font-size: 14px; }
.dash-card__period { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.dash-card__unit { font-size: 11px; color: var(--text-2); text-align: right; }
.dash-card__footer { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); }
.dash-card__footer a { margin-left: 4px; }

/* --- Generic form inputs --- */
.ms-input { height: 28px; border: 1px solid var(--border); border-radius: 6px; padding: 0 8px; background: #fff; outline: none; }
.ms-input:focus { border-color: var(--brand); }

/* --- Dropdown menus --- */
.ms-menu { position: absolute; background: #fff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.12); padding: 6px 0; min-width: 180px; z-index: 100; display: none; }
.ms-menu.open { display: block; }
.ms-menu a { display: block; padding: 7px 16px; color: var(--text); white-space: nowrap; }
.ms-menu a:hover { background: #f3f4f6; }

/* secondary button (white, bordered, grey icon) */
.ms-button-secondary { background: #fff; border: 1px solid var(--border); color: var(--text); }
.ms-button-secondary .mi { color: var(--muted); }
.ms-button-secondary:hover { background: #f3f4f6; }

/* compact 32px rows with single-line ellipsis */
.ms-tbody-viewer tr.compact td .padding-cell-content { display: block; white-space: nowrap; text-overflow: ellipsis; -webkit-line-clamp: unset; }

/* primary button in empty states */
.empty-state .ms-button-primary, .pge-empty .ms-button-primary { min-width: 80px; }

/* Measured on Misa: header cells have no vertical dividers, green bottom border; widget column keeps a left divider */
.ms-thead-viewer th { border-right: 0; border-bottom-color: #7cc7ae; }
.ms-thead-viewer th.ms-th-wiget { border-left: 1px solid var(--border); }
/* Pagination calculation (Trung bình / Số lượng) is hidden on Misa but still occupies space */
.calculation-result { visibility: hidden; }
/* Measured on Misa: body cells use dotted right dividers, rows #fbfbfc, action arrow in link blue, grid scrollbar 10px */
.ms-tbody-viewer tr { background: var(--bg-card); }
.ms-tbody-viewer td { border-right-style: dotted; }
.ms-tbody-viewer td:last-child { border-right: 0; }
.ls-widget-actions .mi { color: var(--link); }
.overflow-wapper::-webkit-scrollbar { width: 10px; height: 10px; }
.overflow-wapper::-webkit-scrollbar-thumb { background: #ced1d6; border-radius: 10px; }
/* Measured on Misa: buttons use normal letter-spacing (body text uses -0.2px) */
button, .ms-button, .quick-add-btn { letter-spacing: normal; }
/* Stat card pictograms: Misa uses Spites_2.svg (mi-s2-card-receipt / card-payment / card-balance, 36x36) */
.ls-stat-card__icon-wrap:has(> .ti-receipt-2), .ls-stat-card__icon-wrap:has(> .ti-receipt-refund), .ls-stat-card__icon-wrap:has(> .ti-coins), .ls-stat-card__icon-wrap.s2 { background: url("https://actapp.misacdn.net/dn/g2/assets/images/Spites_2.svg?v=96.1.3.14") no-repeat; border-radius: 0; }
.ls-stat-card__icon-wrap:has(> .ti-receipt-2) { background-position: -221px -64px; }
.ls-stat-card__icon-wrap:has(> .ti-receipt-refund) { background-position: -264px -64px; }
.ls-stat-card__icon-wrap:has(> .ti-coins) { background-position: -308px -64px; }
.ls-stat-card__icon-wrap:has(> .ti-receipt-2) > i, .ls-stat-card__icon-wrap:has(> .ti-receipt-refund) > i, .ls-stat-card__icon-wrap:has(> .ti-coins) > i { display: none; }
.ls-stat-card__icon-wrap:has(> .ti-receipt-2), .ls-stat-card__icon-wrap:has(> .ti-receipt-refund), .ls-stat-card__icon-wrap:has(> .ti-coins) { margin: 0 2px; }
.ls-stat-card__caption { padding-right: 6px; }
/* "Loại phiếu: Tất cả ▾" combo: value box min 43px, chevron in a 32px action area (Misa ms-combo) */
.list-condition:not(.af-org-filter) > span:not(.list-condition__label) { min-width: 43px; }
.list-condition:not(.af-org-filter) > .mi:last-child { margin: 0 8px 0 4px; }
/* "Xem ▾" widget (Misa ls-widget-btn: label 600, chevron centred in a 28px dropdown trigger) */
.ls-widget-actions > span { font-weight: 600; }
.ls-widget-actions > .mi:last-child { margin: 0 6px; }
/* Misa footer (Tổng) rows have no vertical cell separators */
.ms-tfoot-viewer th, .ms-tfoot-viewer td { border-right: 0; border-left: 0; }
.divider-section:hover .resize-icon { visibility: visible; }
.paging-number.pageSelected { text-decoration: underline; text-underline-offset: 3px; }
/* Misa: the "Chức năng" (widget) column is frozen at the right edge when the grid scrolls horizontally */
.ms-table-viewer th.ms-th-wiget { right: 0; z-index: 3; }
.ms-table-viewer:has(> thead th.ms-th-wiget:last-child) > tbody > tr > td:last-child,
.ms-table-viewer:has(> thead th.ms-th-wiget:last-child) > tfoot th:last-child { position: sticky; right: 0; z-index: 1; border-left: 1px dotted var(--border); background-color: inherit; }
.ms-table-viewer:has(> thead th.ms-th-wiget:last-child) > tfoot th:last-child { z-index: 3; background: var(--grid-foot); border-left: 0; }
.ms-ava-widget__btn-close i.ti-x, .banner-header .btn-close i.ti-x { color: #717680; }
/* list selection bar (Misa ls-batch-selected): "Đã chọn N  Bỏ chọn  [Ghi sổ] [Bỏ ghi] [Xóa]" */
.ls-batch-bar { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.ls-batch-selected { color: #000; line-height: 20px; }
.ls-batch-selected strong { font-weight: 600; }
.ls-batch-deselect { color: var(--link); cursor: pointer; line-height: 20px; }
.ls-batch-btn { min-width: 80px; height: 28px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.ls-batch-btn .msk { color: var(--text); }
.ls-batch-btn .msk.danger { color: #f04438; }
/* Misa splits list/detail ~60/40 of the available height (698px only at a 1277px-tall window) */
.layout-master-detail > .master-section.with-detail[style*="698px"] { flex-basis: 60.1% !important; }
