/* Chỉ bổ sung những gì SB Admin 2 chưa có. Màu, card, nút, menu dùng nguyên của template. */
#sideItems { width: 100%; }

.steps { display: flex; list-style: none; padding: 0; margin: 0; }
.steps li { flex: 1; position: relative; text-align: center; font-size: .75rem; color: #858796; }
.steps li::before { content: ''; position: absolute; top: .85rem; right: 50%; width: 100%; height: 2px; background: #e3e6f0; }
.steps li:first-child::before { display: none; }
.steps b { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; margin: 0 auto .35rem; border-radius: 50%; background: #eaecf4; }
.steps .ok b { background: #1cc88a; color: #fff; }
.steps .ok::before, .steps .now::before { background: #1cc88a; }
.steps .now { color: #4e73df; font-weight: 700; }
.steps .now b { background: #4e73df; color: #fff; }
.steps .fail { color: #e74a3b; font-weight: 700; }
.steps .fail b { background: #e74a3b; color: #fff; }

.doc-view { background: #eaecf4; padding: 1rem; max-height: 620px; overflow: auto; }
.paper { background: #fff; color: #3a3b45; min-height: 430px; padding: 2rem; box-shadow: 0 .15rem .5rem rgba(58, 59, 69, .15); overflow-wrap: anywhere; }
.paper h4 { font-size: .8rem; font-weight: 700; color: #4e73df; border-bottom: 1px solid #e3e6f0; margin-top: 1.5rem; padding-bottom: .25rem; }
.paper-blur { filter: blur(4px); user-select: none; }
.paper .hit { background: #fdf3d8; outline: 2px solid #f6c23e; }
.paper.zoom { zoom: 1.35; }

.action-bar { position: sticky; bottom: 0; z-index: 10; }
.clickable { cursor: pointer; }
.app-notice { position: fixed; top: 5rem; right: 1rem; z-index: 2000; max-width: calc(100% - 2rem); }

.drop-zone { display: block; border: 2px dashed #b7b9cc; border-radius: .5rem; padding: 2rem 1rem; text-align: center; cursor: pointer; overflow-wrap: anywhere; }
.drop-zone.over, .drop-zone:hover, .drop-zone:focus-within { border-color: #4e73df; background: #f8f9fc; }
.drop-zone input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* Giữ nhãn .sr-only nằm trong vùng cuộn của bảng trên mobile */
.table-responsive { position: relative; }

.sidebar .sidebar-brand .sidebar-brand-text { font-size: .82rem; white-space: nowrap; }

@media (max-width: 575.98px) {
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; border: 0; }
  .table-stack thead { display: none; }
  .table-stack tr { border: 1px solid #e3e6f0; border-radius: .35rem; padding: .5rem; margin-bottom: .75rem; }
  .table-stack td { display: flex; padding: .3rem .25rem; }
  .table-stack td::before { content: attr(data-label); flex: 0 0 38%; padding-right: .5rem; font-size: .75rem; font-weight: 700; }
  .table-stack td[data-label=""]::before, .table-stack td[colspan]::before { display: none; }
  .table-stack td > div { min-width: 0; overflow-wrap: anywhere; }
}

.redacted { display: inline-block; width: 9rem; max-width: 100%; height: 1em; background: #3a3b45; vertical-align: middle; }
.redacted.wide { width: 100%; }
.doc-line { display: block; width: 100%; margin: 0 0 .6rem; padding: .2rem .25rem; text-align: left; color: inherit; background: none; border: 0; }
.doc-line.maskable { border: 1px dashed #d1d3e2; }
.doc-line.maskable:hover, .doc-line.maskable:focus { background: #fdf3d8; }

.contract-field { padding: .5rem 0; border-bottom: 1px solid #eaecf4; }
.contract-field[hidden] { display: none; }
.comment { margin: .35rem 0; padding: .5rem .65rem; font-size: .8rem; color: #5a5c69; background: #fdf3d8; border-left: 3px solid #f6c23e; border-radius: .25rem; }
.comment.resolved { background: #f8f9fc; border-color: #1cc88a; }
.comment .reply { margin-top: .35rem; padding-left: .5rem; border-left: 2px solid #d1d3e2; }
.folder:hover, .folder:focus { border-color: #4e73df; background: #f8f9fc; }
.id-photo { margin-top: 1rem; padding: 1.5rem 1rem; text-align: center; font-size: .8rem; color: #fff; background: #3a3b45; border-radius: .25rem; }

/* Xem trước bản che khi tải lên: ảnh + các dòng chữ bấm được để che thêm */
.ocr-preview { max-height: 560px; overflow: auto; }
.ocr-stage { position: relative; }
/* 162C: xem trước cạnh bảng hàng chờ, vừa khít chiều cao màn hình; bấm để phóng to theo chiều rộng. */
.preview-side { position: sticky; top: 1rem; }
.doc-fit { background: #eaecf4; padding: .5rem; height: calc(100vh - 12rem); min-height: 420px; overflow: auto; cursor: zoom-in; border-radius: .35rem; }
.doc-fit:focus { outline: 2px solid #4e73df; }
.doc-fit .ocr-stage { height: 100%; }
.doc-fit img { display: block; width: 100%; height: 100%; object-fit: contain; }
.doc-fit.zoom { cursor: zoom-out; }
.doc-fit.zoom .ocr-stage, .doc-fit.zoom img { height: auto; }
.ocr-preview img { display: block; width: 100%; height: auto; }
.ocr-line { position: absolute; padding: 0; border: 1px dashed transparent; background: transparent; cursor: pointer; }
.ocr-line:hover, .ocr-line:focus { border-color: #4e73df; background: rgba(78, 115, 223, .12); outline: none; }
.ocr-line.on { background: #000; border-color: #000; }

/* Xem file đã lưu: chữ chìm tên người xem phủ lên ảnh */
.doc-img { position: relative; overflow: hidden; background: #fff; }
.doc-img img { display: block; width: 100%; height: auto; }
.doc-mark { position: absolute; inset: 0; pointer-events: none; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; overflow: hidden; }
.doc-mark span { transform: rotate(-28deg); font-size: .85rem; font-weight: 700; color: rgba(231, 74, 59, .22); white-space: nowrap; padding: 2.5rem 1rem; user-select: none; }
.skill-chip { display: inline-flex; align-items: center; margin: 0 .35rem .35rem 0; padding: .2rem .6rem; border: 1px solid #d1d3e2; border-radius: 1rem; font-size: .8rem; background: #f8f9fc; }
.skill-chip input { margin-right: .35rem; }
