/* Module Tài sản — trang asset/items (hrm-asset-ui-list1). Bulma là chính; file này chỉ giữ phần Bulma không có.
   Ngăn kéo dùng chung khung .rec-drawer của recruitment.css (backdrop / header / body / footer). */

/* Dải công cụ MỘT hàng: tab · băng sắp hết hạn · tìm · Lọc */
.asset-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.asset-toolbar .asset-tabs { flex: 0 0 auto; margin-bottom: 0; }
.asset-toolbar .asset-tabs ul { border-bottom: 0; }
.asset-toolbar .asset-due { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #FFF4E0; color: #8A5A00; font-size: 13px; white-space: nowrap; }
.asset-toolbar .asset-due.is-overdue { background: #FDE8E8; color: #A32020; }
.asset-toolbar .asset-spacer { flex: 1 1 auto; }
.asset-search-input { width: 240px; }
.asset-filter-wrap { position: relative; }
.asset-filter-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 300px; padding: 12px; background: #fff; border: 1px solid #EBEBEC; border-radius: 12px; display: flex; flex-direction: column; gap: 12px; }

/* Ô bảng */
.asset-table td, .asset-table th { vertical-align: middle; }
.asset-row-disposed td { color: #9a9aa0; }
.asset-holder-ghost, .asset-holder-shared { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; color: #5a5a5f; flex: 0 0 auto; }
.asset-holder-ghost { border: 1px dashed #9a9aa0; }
.asset-holder-shared { background: #EEF2F8; }

/* Ô người giữ trong ngăn kéo */
.asset-holder-picker { position: relative; }
.asset-holder-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border: 1px solid #EBEBEC; border-radius: 10px; max-height: 280px; overflow-y: auto; padding: 6px; }
.asset-holder-backdrop { position: fixed; inset: 0; z-index: 20; }
.asset-holder-group { font-size: 12px; color: #5a5a5f; padding: 6px 8px 2px; }
.asset-holder-option { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; padding: 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.asset-holder-option:hover { background: #F2F5FB; }
.asset-holder-option.is-add { color: #31538c; font-weight: 500; }
.asset-holder-external { margin-top: 10px; padding: 12px; border: 1px dashed #B5C7EE; border-radius: 10px; background: #F5F8FF; }
.asset-drawer-group + .asset-drawer-group { margin-top: 4px; }

/* Hộp nhập: bước */
.asset-steps { display: flex; gap: 12px; list-style: none; margin: 0 12px; padding: 0; font-size: 13px; color: #9a9aa0; }
.asset-steps li.is-current { color: #31538c; font-weight: 600; }
.asset-steps li.is-done { color: #3b7a3b; }

/* Ngăn kéo: desktop là drawer phải; mobile = trang riêng, nút Lưu dính đáy (luật 5) */
.asset-drawer-back { display: none; }
@media (max-width: 768px) {
  .asset-drawer { inset: 0; width: 100%; max-width: 100%; border-radius: 0; }
  .asset-drawer-back { display: inline-flex; }
  .asset-drawer-close { display: none; }
  .asset-drawer-footer { position: sticky; bottom: 0; background: #fff; }
  /* tab cuộn ngang trong dải, không kéo cả trang */
  .asset-toolbar { flex-wrap: wrap; }
  .asset-toolbar .asset-tabs { max-width: 100%; overflow-x: auto; }
  .asset-search-input { width: 100%; }
}
