/* Only the item catalogue, its login screen and the supplied Excel buttons. */
* { box-sizing: border-box; }
:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #212529; background: #f8f9fa; font-size: 14px; }
html, body { margin: 0; width: 100%; min-height: 100%; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #0d6efd; outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; min-height: 38px; margin: 0; padding: 0 11px; border: 1px solid transparent; border-radius: 5px; color: #fff; line-height: 1; }
.btn:hover:not(:disabled) { filter: brightness(.96); }
.btn-success { background: #198754; }
.btn-primary { background: #0d6efd; }
.btn-warning { background: #ffc107; color: #212529; }
.btn-danger { background: #d85d69; }
.btn-secondary { background: #6c757d; }
.btn-outline { color: #6c757d; background: #fff; border-color: #ced4da; }
.app-body { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.top-header { flex: 0 0 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px; background: #fff; border-bottom: 1px solid #dee2e6; }
.logo-area { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; color: #0d6efd; white-space: nowrap; }
.brand-icon { width: 40px; height: 40px; flex-shrink: 0; display: block; object-fit: contain; }
.user-area { display: flex; align-items: center; gap: 8px; }
#userName { font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.role-badge { background: #ffc107; border-radius: 4px; padding: 3px 6px; font-size: 10px; font-weight: 700; }
#btnLogout { min-height: 32px; font-size: 13px; }
.server-status { display: inline-flex; align-items: center; gap: 7px; border-radius: 20px; color: #fff; background: #6c757d; padding: 0 10px; height: 30px; font-size: 12px; }
.server-status.online { background: #198754; }
.server-status.offline { background: #dc3545; }
.status-dot { flex-shrink: 0; width: 7px; height: 7px; background: currentColor; border-radius: 50%; }

/* Nhan che do du lieu o dau trang de phan biet Ban chinh va Ban test. */
.data-mode-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 30px;
    min-width: 76px;
    padding: 0 10px;
    border: 1px solid #adb5bd;
    border-radius: 5px;
    background: #6c757d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}
.data-mode-badge.mode-main { background: #0d6efd; border-color: #0d6efd; }
.data-mode-badge.mode-test { background: #d97706; border-color: #d97706; }
.main-wrapper { display: flex; flex: 1; min-height: 0; min-width: 0; }
.sidebar { flex: 0 0 220px; width: 220px; background: #fff; border-right: 1px solid #dee2e6; }
/* Menu chính gọn: dòng cao 30px, chữ 14px và căn giữa theo chiều dọc. */
.menu-item { display: flex; align-items: center; height: 30px; padding: 0 15px; text-decoration: none; color: #333; font-size: 14px; font-weight: 500; border-bottom: 1px solid #eee; }
.menu-item.active { background: #0d6efd; color: #fff; }
.main-content { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; padding: 4px; background: #fff; }
.toolbar-3-rows { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 4px; flex-shrink: 0; }
.toolbar-row, .action-group { display: flex; align-items: center; gap: 4px; }
/* Cac nut, o tim kiem va bo loc tren hang cong cu dung chung chieu cao 30px. */
.action-group > .btn { height: 30px; min-height: 30px; }
.search-row { flex: 1 1 180px; min-width: 150px; }
.search-box { display: flex; align-items: center; flex: 1; height: 30px; min-width: 0; border: 1px solid #ced4da; border-radius: 5px; overflow: hidden; background: #fff; }
.search-box svg { margin: 0 8px; width: 16px; height: 16px; fill: #6c757d; flex-shrink: 0; }
.search-box input { width: 100%; min-width: 0; height: 100%; padding: 0 6px 0 0; border: 0; background: transparent; }
.search-box:focus-within { border-color: #0d6efd; }
.search-box input:focus { outline: none; }
.filter-row select { height: 30px; min-width: 125px; max-width: 190px; padding: 0 22px 0 8px; border: 1px solid #ced4da; border-radius: 5px; background: #fff; }
/* Bo loc khi focus dung vien xanh giong o tim kiem, khong tao vong outline ben ngoai. */
.filter-row select:focus, .filter-row select:focus-visible { border-color: #0d6efd; outline: none; box-shadow: none; }
.action-row { margin-left: auto; min-height: 30px; }
.btn-divider { height: 28px; width: 2px; background: #dee2e6; margin: 0 2px; }
#btnMenuMobile { display: none; }
.notice { padding: 8px 10px; margin-bottom: 4px; border: 1px solid #cde8da; border-radius: 4px; background: #effaf4; white-space: pre-line; font-size: 13px; flex-shrink: 0; max-height: 160px; overflow: auto; }
.notice.error { border-color: #f1aeb5; background: #fff0f1; color: #842029; }
.relogin { display: block; padding: 6px; color: #0d6efd; }
.table-container { flex: 1; min-height: 0; min-width: 0; width: 100%; overflow: auto; border: 1px solid #dee2e6; -webkit-overflow-scrolling: touch; }
.items-table { table-layout: fixed; border-collapse: separate; border-spacing: 0; min-width: 100%; white-space: nowrap; font-size: 14px; }
.items-table th, .items-table td { border-right: 1px solid #dee2e6; border-bottom: 1px solid #dee2e6; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; }
/* Hàng tiêu đề: cao 25px, chữ 12px, nét thường. */
.items-table th { position: sticky; top: 0; z-index: 1; background: #f8f9fa; text-align: center; font-weight: 400; height: 25px; padding: 0 8px; line-height: 24px; font-size: 12px; }
/* Data rows: exactly 30px; leave multi-level column headers unchanged. */
.items-table tbody td { height: 30px; padding: 0 8px; line-height: 24px; font-size: 12px; }
/* Giữ đường dọc cho cột cuối cùng. */
.items-table th:last-child, .items-table td:last-child { border-right: 1px solid #dee2e6; }
.items-table tbody tr:not(.editing-row):hover { background: #f4f7fa; }
.items-table tr.table-active td { background: #e6f0ff; }
/* Mã hàng hiển thị nét chữ thường, giữ màu xanh hiện tại. */
.items-table td.item-code { color: #0d6efd; font-weight: 400; }
.items-table td.date-cell { color: #6c757d; font-size: 12px; }
.items-table td.empty-row { text-align: center; color: #6c757d; padding: 24px 8px; }
.items-table .editing-row td { height: 30px; padding: 0 8px; background: #fff; }
.inline-input { display: block; width: 100%; min-width: 0; height: 24px; padding: 0; margin: 0; border: 0; outline: none; background: transparent; font: inherit; color: inherit; line-height: 24px; }
.inline-input:focus { box-shadow: 0 1px 0 #0d6efd; outline: none; }
.resizer { position: absolute; right: 0; top: 0; bottom: 0; width: 9px; cursor: col-resize; touch-action: none; z-index: 2; }
/* Giữ vùng kéo cột hoạt động nhưng không tô màu khi rê chuột/focus. */
.resizer:hover, .resizer:focus { background: transparent; }
body.resizing { cursor: col-resize; user-select: none; }
.table-footer { display: flex; justify-content: space-between; gap: 8px; padding: 5px 3px 1px; color: #6c757d; font-size: 11px; flex-shrink: 0; }
.login-body { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px; overflow: auto; }
.login-card { width: min(100%, 390px); padding: 30px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 6px 30px #172b4d12; }
.login-title { text-align: center; color: #0d6efd; }
.login-title .brand-icon { width: 58px; height: 58px; display: block; margin: 0 auto 8px; }
.login-title h1 { margin: 8px 0 4px; font-size: 25px; }
.login-title p { margin: 0 0 26px; color: #6c757d; font-size: 12px; }
.login-field { margin-bottom: 16px; }
.login-field label { display: block; margin-bottom: 6px; font-weight: 600; }
.login-field input { width: 100%; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid #ced4da; border-radius: 5px; }
/* O dang nhap focus hien vien xanh giong o tim kiem, khong tao vong outline ben ngoai. */
.login-field input:focus, .login-field input:focus-visible { border-color: #0d6efd; outline: none; box-shadow: none; }
/* Share one focus border across the password input and its show/hide button. */
.password-field { display: flex; border: 1px solid #ced4da; border-radius: 5px; overflow: hidden; }
.password-field:focus-within { border-color: #0d6efd; outline: none; box-shadow: none; }
.password-field input { border: 0; border-radius: 0; }
.password-field button { border: 0; border-left: 1px solid #ced4da; border-radius: 0; min-width: 50px; }
.password-field input:focus, .password-field input:focus-visible, .password-field button:focus, .password-field button:focus-visible { outline: none; box-shadow: none; }
/* Chọn dữ liệu Chính/Test ngay tại màn hình đăng nhập. */
.login-mode-group { margin: 0 0 14px; padding: 0; border: 0; }
.login-mode-group legend { margin-bottom: 6px; padding: 0; font-weight: 600; }
.login-mode-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.login-mode-option { position: relative; display: block; cursor: pointer; }
.login-mode-option input { position: absolute; opacity: 0; pointer-events: none; }
.login-mode-option span { display: flex; align-items: center; justify-content: center; height: 34px; border: 1px solid #ced4da; border-radius: 5px; background: #fff; color: #495057; font-size: 13px; font-weight: 600; user-select: none; }
.login-mode-main input:checked + span { border-color: #0d6efd; background: #0d6efd; color: #fff; }
.login-mode-test input:checked + span { border-color: #d97706; background: #fff7ed; color: #9a3412; }
.login-mode-option input:focus-visible + span { outline: 2px solid #0d6efd; outline-offset: 2px; }
.login-mode-option input:disabled + span { opacity: .55; cursor: not-allowed; }
.login-mode-hint { margin: 5px 0 0; min-height: 16px; color: #6c757d; font-size: 11px; }
.login-mode-hint.test { color: #9a3412; font-weight: 600; }
.remember { display: flex; align-items: center; gap: 6px; margin-bottom: 22px; color: #6c757d; }
#btnLogin { width: 100%; height: 42px; font-weight: 600; }
.login-version { text-align: center; margin: 18px 0 0; color: #8a9097; font-size: 11px; }
@media (max-width: 1280px) and (min-width: 769px) {
    .search-row { flex-grow: 1; }
    .action-row { flex-basis: 100%; justify-content: flex-end; }
}
@media (max-width: 768px) {
    .top-header { padding: 0 6px; gap: 5px; }
    .logo-area { font-size: 16px; gap: 5px; }
    .logo-area .brand-icon { width: 30px; height: 30px; }
    .user-area { font-size: 12px; gap: 5px; }

    .data-mode-badge { height: 24px; min-width: 54px; padding: 0 5px; font-size: 10px; }
    .role-badge { display: none; }
    #userName { max-width: 60px; }
    #btnLogout { min-height: 30px; padding: 0 6px; font-size: 11px; }
    .server-status { width: 24px; height: 24px; padding: 0; justify-content: center; }
    .status-label { display: none; }
    .sidebar { position: fixed; left: -220px; top: 56px; bottom: 0; z-index: 5; box-shadow: 3px 0 10px #0002; transition: left .15s ease; }
    .sidebar.show { left: 0; }
    .toolbar-3-rows { flex-direction: column; align-items: stretch; }
    .toolbar-row { width: 100%; }
    .search-row { flex: none; }
    .filter-row select { width: 50%; max-width: none; min-width: 0; font-size: 12px; }
    .action-row { margin-left: 0; min-height: 30px; }
    .action-group { width: 100%; }
    .action-group > .btn { flex: 1; height: 30px; min-height: 30px; padding: 0 4px; font-size: 12px; }
    .action-group .excel-toolbar, .btn-divider { display: none; }
    /* Nut menu tren dien thoai cao bang o tim kiem (30px). */
    #btnMenuMobile { display: inline-flex; height: 30px; min-height: 30px; padding: 0 9px; }
    .items-table { font-size: 13px; }
    .table-footer { font-size: 10px; }
}

/* Nhom nut: luon nam cung mot hang, cach nhau 5px. */
.excel-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Dinh dang chung: nen trang, vien mong, icon va chu can giua. */
.excel-toolbar .excel-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 6px;
  height: 30px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  white-space: nowrap;
  text-transform: none;
  box-shadow: none;
  appearance: none;
  cursor: pointer;
}

/* Mau sac va kich thuoc rieng cho tung nut. */
.excel-toolbar .excel-btn--import { width: 115px; color: #198754; }
.excel-toolbar .excel-btn--export { width: 115px; color: #0d6efd; }

.excel-btn svg {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.excel-btn--export svg { width: 22.5px; }

/* Doi mau khi re chuot/bam: nen theo mau nut, chu va icon chuyen sang trang. */
.excel-toolbar .excel-btn {
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.excel-toolbar .excel-btn--import:hover,
.excel-toolbar .excel-btn--import:active {
  background: #198754;
  color: #fff;
  border-color: #198754;
  box-shadow: none;
  transform: none;
}
.excel-toolbar .excel-btn--export:hover,
.excel-toolbar .excel-btn--export:active {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
  box-shadow: none;
  transform: none;
}
.excel-toolbar .excel-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.excel-toolbar .excel-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Đơn đặt hàng: căn số lượng và màu trạng thái, dùng chung kích thước bảng hiện tại. */
.orders-page .items-table td.quantity-cell { text-align: right; }
.orders-page .items-table td.quantity-cell .inline-input { text-align: right; }
.orders-page .mobile-date-field { display: flex; align-items: center; width: 100%; height: 24px; }
.orders-page .mobile-date-field .inline-input { flex: 1; min-width: 0; }
.orders-page .date-picker-btn {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-left: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}
.orders-page .date-picker-btn svg { width: 15px; height: 15px; fill: currentColor; pointer-events: none; }
.orders-page .date-picker-btn:active { background: #eef4ff; color: #0d6efd; }
/* Input date that phu toan bo bieu tuong: nguoi dung cham truc tiep vao native date control. */
.orders-page .mobile-date-picker {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: auto;
    appearance: auto;
}
.order-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    max-width: 100%;
    padding: 0 6px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.status-ordered { color: #084298; background: #cfe2ff; }
.status-shipping { color: #664d03; background: #fff3cd; }
.status-received { color: #0f5132; background: #d1e7dd; }
.status-cancelled { color: #842029; background: #f8d7da; }

@media (max-width: 768px) {
    /* Mobile Đơn đặt hàng: ẩn Nhập/Xuất Excel, chỉ giữ các nút thao tác. */
    .orders-page .filter-row select { width: auto; flex: 1 1 0; min-width: 0; }
    .orders-page .action-row { width: 100%; }
    .orders-page #normalActions { display: flex; flex-wrap: wrap; width: 100%; }
    .orders-page #normalActions .excel-toolbar { display: none !important; }
    .orders-page #normalActions > .btn { flex: 1 1 0; min-width: 0; }
    .orders-page #normalActions .btn-divider { display: none; }
    .orders-page #editActions { width: 100%; }
    .orders-page #editActions > .btn { flex: 1 1 0; }
}

/* Desktop: Add and Edit buttons use the same width; mobile keeps the current equal-flex layout. */
@media (min-width: 769px) {
    .products-page #btnAdd,
    .products-page #btnEdit,
    .orders-page #btnAdd,
    .orders-page #btnEdit {
        width: 64px;
        min-width: 64px;
        max-width: 64px;
        flex: 0 0 64px;
    }
}


/* Khoa zoom tren dien thoai: van cho phep cuon ngang/doc bang mot ngon. */
@media (max-width: 768px) {
  html, body { touch-action: pan-x pan-y; }
}

/* Gợi ý Mã hàng trong Đơn đặt hàng: bảng nổi dùng chung cho desktop và mobile. */
.product-suggest {
    position: fixed;
    z-index: 1000;
    max-height: 230px;
    max-width: calc(100vw - 12px);
    box-sizing: border-box;
    overflow: auto;
    border: 1px solid #b8c2cc;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 14px #0000001f;
    font-size: 12px;
}
.product-suggest[hidden] { display: none !important; }
.product-suggest-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.product-suggest-table th,
.product-suggest-table td {
    height: 25px;
    padding: 0 7px;
    border-right: 1px solid #e1e5e9;
    border-bottom: 1px solid #e1e5e9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    font-weight: 400;
}
.product-suggest-table th { position: sticky; top: 0; z-index: 1; background: #f8f9fa; }
/* Ma hang va DVT giu do rong vua phai; phan con lai danh cho ten hang. */
.product-suggest-table th:nth-child(1), .product-suggest-table td:nth-child(1) { width: var(--suggest-code-width, 120px); }
.product-suggest-table th:nth-child(2), .product-suggest-table td:nth-child(2) { width: auto; }
.product-suggest-table th:nth-child(3), .product-suggest-table td:nth-child(3) { width: 60px; }
/* Ten hang dai luon hien thi day du, tu xuong dong neu khong du cho. */
.product-suggest-table td:nth-child(2) {
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    line-height: 1.4;
    padding-top: 3px;
    padding-bottom: 3px;
}
.product-suggest-table th:last-child, .product-suggest-table td:last-child { border-right: 0; }
.product-suggest-table tbody tr { cursor: pointer; }
.product-suggest-table tbody tr:hover,
.product-suggest-table tbody tr.active { background: #e9f2ff; }
@media (max-width: 768px) {
    .product-suggest { max-height: 190px; }
    .product-suggest-table th, .product-suggest-table td { height: 28px; padding: 0 5px; }
    .product-suggest-table th:nth-child(1), .product-suggest-table td:nth-child(1) { width: 29%; }
    .product-suggest-table th:nth-child(3), .product-suggest-table td:nth-child(3) { width: 16%; }
    .product-suggest-table td:nth-child(2) { padding-top: 3px; padding-bottom: 3px; }
}

/* Tồn thực tế: tiêu đề 2 tầng, các cột số căn phải và cảnh báo theo Hạn sử dụng. */
.actual-stock-page .actual-stock-table thead .actual-stock-head-main th { top: 0; }
.actual-stock-page .actual-stock-table thead .actual-stock-head-sub th { top: 25px; }
.actual-stock-page .actual-stock-table thead .actual-stock-head-main th[rowspan="2"] { height: 50px; }
.actual-stock-page .actual-stock-table thead .actual-stock-head-main th[colspan] { height: 25px; }
.actual-stock-page .actual-stock-table thead .actual-stock-head-sub th { height: 25px; }
.actual-stock-page .items-table td.quantity-cell { text-align: right; }
.actual-stock-page .items-table td.quantity-cell .inline-input { text-align: right; }
.actual-stock-page .mobile-date-field { display: flex; align-items: center; width: 100%; height: 24px; }
.actual-stock-page .mobile-date-field .inline-input { flex: 1; min-width: 0; }
.actual-stock-page .date-picker-btn {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-left: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}
.actual-stock-page .date-picker-btn svg { width: 15px; height: 15px; fill: currentColor; pointer-events: none; }
.actual-stock-page .date-picker-btn:active { background: #eef4ff; color: #0d6efd; }
.actual-stock-page .mobile-date-picker {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: auto;
    appearance: auto;
}
.stock-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.warning-expired { color: #842029; background: #f8d7da; }
.warning-soon { color: #664d03; background: #fff3cd; }
.warning-watch { color: #084298; background: #cfe2ff; }
.warning-normal { color: #0f5132; background: #d1e7dd; }
.warning-none { color: #495057; background: #e9ecef; }

@media (max-width: 768px) {
    .actual-stock-page .filter-row select { width: auto; flex: 1 1 0; min-width: 0; }
    .actual-stock-page .action-row { width: 100%; }
    .actual-stock-page #normalActions { display: flex; flex-wrap: wrap; width: 100%; }
    /* Tồn thực tế vẫn giữ Nhập/Xuất Excel trên điện thoại: 2 nút một hàng, thao tác một hàng. */
    .actual-stock-page #normalActions .excel-toolbar { display: flex !important; width: 100%; }
    .actual-stock-page #normalActions .excel-toolbar .excel-btn { flex: 1 1 0; width: auto; }
    .actual-stock-page #normalActions > .btn { flex: 1 1 0; min-width: 0; }
    .actual-stock-page #normalActions .btn-divider { display: none; }
    .actual-stock-page #editActions { width: 100%; }
    .actual-stock-page #editActions > .btn { flex: 1 1 0; }
}

@media (min-width: 769px) {
    .actual-stock-page #btnAdd,
    .actual-stock-page #btnEdit {
        width: 64px;
        min-width: 64px;
        max-width: 64px;
        flex: 0 0 64px;
    }
}

/* Sent goods: quantity, image preview and compact image picker. */
.sent-goods-page .items-table td.quantity-cell { text-align: right; }
.sent-goods-page .items-table td.quantity-cell .inline-input { text-align: right; }

/* Hàng gửi mobile: ô Ngày dạng số dd/mm/yyyy kèm icon lịch, giống Đơn đặt hàng. */
.sent-goods-page .mobile-date-field { display: flex; align-items: center; width: 100%; height: 24px; }
.sent-goods-page .mobile-date-field .inline-input { flex: 1; min-width: 0; }
.sent-goods-page .date-picker-btn {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-left: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}
.sent-goods-page .date-picker-btn svg { width: 15px; height: 15px; fill: currentColor; pointer-events: none; }
.sent-goods-page .date-picker-btn:active { background: #eef4ff; color: #0d6efd; }
.sent-goods-page .mobile-date-picker {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.sent-goods-page .items-table td:nth-child(6) { text-align: center; }
.sent-goods-page .image-view-link {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0d6efd;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.sent-goods-page .image-view-link:hover,
.sent-goods-page .image-view-link:focus-visible { color: #0a58ca; }
.sent-goods-page .image-editor { display: flex; align-items: center; gap: 4px; width: 100%; height: 24px; min-width: 0; }
.sent-goods-page .image-picker-button {
    height: 22px; min-width: 58px; padding: 0 6px; border: 1px solid #0d6efd; border-radius: 4px;
    background: #fff; color: #0d6efd; font-size: 11px; line-height: 20px; white-space: nowrap;
}
.sent-goods-page .image-picker-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #6c757d; }

@media (max-width: 768px) {
    .sent-goods-page .filter-row select { width: auto; flex: 1 1 0; min-width: 0; }
    .sent-goods-page .action-row { width: 100%; }
    .sent-goods-page #normalActions { display: flex; flex-wrap: wrap; width: 100%; }
    /* Mobile Hàng gửi: ẩn 2 nút Nhập/Xuất Excel. */
    .sent-goods-page #normalActions .excel-toolbar { display: none !important; }
    .sent-goods-page #normalActions > .btn { flex: 1 1 0; min-width: 0; }
    .sent-goods-page #normalActions .btn-divider { display: none; }
    .sent-goods-page #editActions { width: 100%; }
    .sent-goods-page #editActions > .btn { flex: 1 1 0; }
}

@media (min-width: 769px) {
    .sent-goods-page #btnAdd,
    .sent-goods-page #btnEdit {
        width: 64px; min-width: 64px; max-width: 64px; flex: 0 0 64px;
    }
}


/* Trình xem ảnh Hàng gửi hiển thị ngay trong trang. */
.image-viewer[hidden] { display: none !important; }
.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}
.image-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
}
.image-viewer-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #111;
    border: 0;
    border-radius: 0;
    overflow: hidden;
}
.image-viewer-toolbar {
    flex: 0 0 42px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 10px 0 14px;
    color: #fff;
    background: #1c1c1c;
    border-bottom: 1px solid rgba(255,255,255,.14);
}
.image-viewer-counter { font-size: 13px; }
.image-viewer-close {
    height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 5px;
    background: transparent;
    color: #fff;
    font: inherit;
    cursor: pointer;
}
.image-viewer-close:hover { background: rgba(255,255,255,.12); }
.image-viewer-stage {
    flex: 1;
    min-height: 0;
    min-width: 0;
    position: relative;
    display: block;
}
.image-viewer-image-wrap {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    touch-action: none;
    overscroll-behavior: contain;
    -webkit-user-select: none;
    user-select: none;
    cursor: default;
}
.image-viewer-image-wrap.is-zoomed { cursor: grab; }
.image-viewer-image-wrap.is-dragging { cursor: grabbing; }
.image-viewer-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    transition: transform .06s ease-out;
    will-change: transform;
}
.image-viewer-image-wrap.is-dragging .image-viewer-img { transition: none; }
.image-viewer-error {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}
/* Mũi tên nổi trực tiếp trên ảnh, không còn dải nền hai bên. */
.image-viewer-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 44px;
    height: 64px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.image-viewer-prev { left: 6px; }
.image-viewer-next { right: 6px; }
.image-viewer-nav:hover:not(:disabled),
.image-viewer-nav:focus-visible { background: transparent; }
.image-viewer-nav:disabled { opacity: .22; cursor: default; }
body.image-viewer-open { overflow: hidden; }

@media (max-width: 768px) {
    .image-viewer-toolbar { min-height: 44px; flex-basis: 44px; }
    .image-viewer-nav { width: 40px; height: 56px; font-size: 28px; }
    .image-viewer-prev { left: 2px; }
    .image-viewer-next { right: 2px; }
    .image-viewer-close { height: 32px; }
}

/* Inventory summary / movement / adjustment pages. */
.inventory-summary-page .stock-view { width: 115px; min-width: 115px; }
.inventory-summary-page .quantity-cell,
.warehouse-movement-page .quantity-cell,
.warehouse-adjustment-page .quantity-cell { text-align: right; }
.compact-date-label {
    display: inline-flex; align-items: center; gap: 4px; height: 30px; padding-left: 7px;
    border: 1px solid #ced4da; border-radius: 5px; background: #fff; white-space: nowrap; font-size: 12px;
}
.compact-date-label:focus-within { border-color: #0d6efd; }
.compact-date-label input { height: 28px; min-width: 118px; padding: 0 5px; border: 0; outline: 0; background: transparent; font: inherit; }
.stock-export {
    box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: 115px; height: 30px; margin: 0; padding: 0 10px; border: 1px solid #0d6efd; border-radius: 8px;
    background: #fff; color: #0d6efd; font: inherit; font-size: 14px; line-height: 1; cursor: pointer;
}
.stock-export svg { width: 20px; height: 20px; fill: currentColor; }
.stock-export:hover, .stock-export:active { background: #0d6efd; color: #fff; }
.warehouse-movement-page .product-suggest,
.warehouse-adjustment-page .product-suggest { z-index: 12000; }
@media (min-width: 769px) {
    .warehouse-movement-page #btnAdd, .warehouse-movement-page #btnEdit,
    .warehouse-adjustment-page #btnAdd, .warehouse-adjustment-page #btnEdit { width: 64px; min-width: 64px; max-width: 64px; flex: 0 0 64px; }
}
@media (max-width: 768px) {
    .stock-date-row { flex-wrap: wrap; }
    .stock-date-row .compact-date-label { flex: 1 1 calc(50% - 2px); min-width: 0; }
    .stock-date-row .compact-date-label input { min-width: 0; width: 100%; }
    /* Tồn kho mobile: ngày hiển thị bằng số dd/mm/yyyy, vẫn giữ nút lịch để chọn nhanh. */
    .stock-date-row .compact-date-label.mobile-numeric-date { padding-right: 2px; }
    .stock-date-row .compact-date-label.mobile-numeric-date > input[type="text"] { flex: 1 1 auto; min-width: 0; width: 100%; }
    .stock-date-filter-picker-btn { position: relative; flex: 0 0 24px; width: 24px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: #6c757d; overflow: hidden; }
    .stock-date-filter-picker-btn svg { width: 15px; height: 15px; fill: currentColor; pointer-events: none; }
    .compact-date-label input.stock-date-filter-picker { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; padding: 0; margin: 0; opacity: 0; cursor: pointer; }
    .inventory-summary-page .filter-row select { flex: 1 1 calc(50% - 2px); width: auto; }
    .inventory-summary-page .stock-actions { display: flex; width: 100%; }
    .inventory-summary-page .stock-actions .stock-export,
    .inventory-summary-page .stock-actions .btn { flex: 1 1 0; width: auto; min-width: 0; }
    .warehouse-movement-page .filter-row,
    .warehouse-adjustment-page .filter-row { flex-wrap: wrap; }
    .warehouse-movement-page .filter-row select,
    .warehouse-adjustment-page .filter-row select { flex: 1 1 calc(50% - 2px); width: auto; min-width: 0; max-width: none; }
    .warehouse-movement-page #normalActions,
    .warehouse-adjustment-page #normalActions { display: flex; flex-wrap: wrap; width: 100%; }
    .warehouse-movement-page #normalActions .excel-toolbar,
    .warehouse-adjustment-page #normalActions .excel-toolbar { display: inline-flex; flex: 1 1 234px; }
    .warehouse-movement-page #normalActions .excel-btn,
    .warehouse-adjustment-page #normalActions .excel-btn { flex: 1 1 0; width: auto; min-width: 0; }
    .warehouse-movement-page #normalActions > .btn,
    .warehouse-adjustment-page #normalActions > .btn { flex: 1 1 0; min-width: 0; }
}

/* Chi tiết nhập/xuất của dòng Tồn kho đang chọn. */
.stock-detail-open { overflow: hidden; }
.stock-detail-modal {
    position: fixed; inset: 0; z-index: 1200; padding: 4px;
    background: rgba(0,0,0,.45); display: flex; align-items: stretch; justify-content: center;
}
.stock-detail-modal[hidden] { display: none !important; }
.stock-detail-dialog {
    width: min(1180px, calc(100vw - 8px)); height: calc(100vh - 8px); height: calc(100dvh - 8px); max-height: none;
    background: #fff; border-radius: 5px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #d8dee6;
}
.stock-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #dee2e6; }
.stock-detail-title { font-size: 15px; font-weight: 600; }
.stock-detail-meta { margin-top: 3px; font-size: 12px; color: #6c757d; }
.stock-detail-summary { display: flex; flex-wrap: wrap; gap: 14px; padding: 8px 12px; font-size: 12px; border-bottom: 1px solid #dee2e6; }
.stock-detail-table-wrap { flex: 1 1 auto; overflow: auto; min-height: 0; }
.stock-detail-table { table-layout: auto; min-width: 980px; width: 100%; }
.stock-detail-table th { position: sticky; top: 0; z-index: 2; }
.stock-detail-opening-row td,
.stock-detail-total-row td { font-weight: 600; background: #f8f9fa; }
.stock-detail-opening-row td:last-child,
.stock-detail-total-row td:last-child { white-space: nowrap; }
.inventory-summary-page .items-table tbody tr:not(.editing-row) { cursor: pointer; }
@media (max-width: 768px) {
    .stock-detail-modal { padding: 2px; }
    .stock-detail-dialog { width: 100%; height: calc(100vh - 4px); height: calc(100dvh - 4px); max-height: none; border-radius: 4px; }
    .stock-detail-head { padding: 7px 8px; }
    .stock-detail-summary { gap: 8px 12px; padding: 7px 8px; }
}
/* Chi tiết nhập/xuất Tồn kho: dòng được bấm chọn hiển thị màu xanh dương. */
.stock-detail-table tbody tr.stock-detail-selectable { cursor: pointer; }
.stock-detail-table tbody tr.stock-detail-selected td {
    background: #0d6efd !important;
    color: #fff !important;
}


/* Nhập/Xuất kho + Điều chỉnh kho: khi thêm/sửa, ô số lượng căn sát mép phải cột. */
.warehouse-movement-page .items-table td.quantity-cell .inline-input,
.warehouse-adjustment-page .items-table td.quantity-cell .inline-input {
    text-align: right;
}

/* Dong bo o nhap so: bo nut mui ten tang/giam, van giu nhap so binh thuong. */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Mobile: an toan bo nut Nhap/Xuat Excel tren cac muc; desktop giu nguyen. */
@media (max-width: 768px) {
    .excel-toolbar,
    .excel-btn,
    .stock-export {
        display: none !important;
    }
    .btn-divider {
        display: none !important;
    }
}

/* Báo cáo nhập - xuất - tồn: bố cục đồng bộ với các mục kho hiện có. */
.warehouse-report-page .quantity-cell { text-align: right; }
.warehouse-report-page .report-filter-row select { min-width: 135px; }
.warehouse-report-page .report-actions { display: flex; }
.warehouse-report-page #btnViewReport { min-width: 115px; }
@media (max-width: 768px) {
    .warehouse-report-page .report-filter-row { flex-wrap: wrap; }
    .warehouse-report-page .report-filter-row select { flex: 1 1 100%; width: 100%; max-width: none; }
    .warehouse-report-page .report-actions { width: 100%; }
    .warehouse-report-page .report-actions #btnViewReport { flex: 1 1 100%; width: 100%; }
}


/* Xuất bảng dữ liệu thành ảnh PNG/JPG. */
.image-export-btn {
    height: 30px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #0d6efd;
    background: #fff;
    color: #0d6efd;
    font-size: 13px;
}
.image-export-btn:hover:not(:disabled) { background: #0d6efd; color: #fff; filter: none; }
.image-export-btn svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }
.image-export-btn.is-exporting { opacity: .65; }
.image-export-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #0005;
}
.image-export-dialog {
    width: min(100%, 300px);
    padding: 18px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 40px #0003;
}
.image-export-title { margin-bottom: 14px; text-align: center; font-size: 16px; font-weight: 700; }
.image-export-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.image-format-btn { height: 38px; background: #0d6efd; color: #fff; font-weight: 700; }
.image-export-cancel { width: 100%; height: 34px; }
@media (max-width: 768px) {
    .image-export-btn { flex: 1; padding: 0 5px; font-size: 12px; }
}

/* ===== Quản trị tài khoản: dùng chung header/sidebar/toolbar với Mã hàng ===== */
.role-badge.role-user { background: #6c757d; color: #fff; }
.admin-content { gap: 0; }
.admin-toolbar { margin-bottom: 4px; }
.admin-filter-row select { min-width: 150px; }
.admin-workspace {
    display: grid;
    grid-template-columns: minmax(0, 60%) minmax(360px, 40%);
    flex: 1 1 auto;
    min-height: 0;
    border: 1px solid #dee2e6;
    background: #fff;
}
.admin-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.admin-list-panel { border-right: 1px solid #dee2e6; }
.admin-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 32px;
    min-height: 32px;
    padding: 0 8px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    font-size: 12px;
}
.admin-panel-title strong { font-size: 12px; }
.admin-panel-title > span { color: #6c757d; font-size: 11px; }
.admin-table-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; }
.admin-users-table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; }
.admin-users-table th, .admin-users-table td {
    height: 25px;
    padding: 0 8px;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
.admin-users-table th { position: sticky; top: 0; z-index: 1; background: #f8f9fa; text-align: center; font-weight: 400; }
.admin-users-table tbody td:not(.empty-row) { height: 30px; }
.admin-users-table th:last-child, .admin-users-table td:last-child { border-right: 0; }
.admin-users-table tbody tr:hover { background: #f4f7fa; }
.admin-users-table tbody tr.selected td { background: #e6f0ff; }
.admin-users-table td.code { color: #0d6efd; }
.admin-users-table td.center { text-align: center; }
.admin-users-table td.empty-row { height: 40px; text-align: center; color: #6c757d; }
.admin-form { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 8px; }
.admin-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.admin-fields label, .admin-modal-form label { display: grid; gap: 4px; min-width: 0; font-size: 12px; font-weight: 600; }
.admin-fields input, .admin-fields select, .admin-modal-form input {
    width: 100%; height: 30px; padding: 0 8px; border: 1px solid #ced4da; border-radius: 5px; background: #fff; font-size: 12px;
}
.admin-fields input:focus, .admin-fields select:focus, .admin-modal-form input:focus { border-color: #0d6efd; outline: none; }
.admin-fields input:disabled, .admin-fields select:disabled { background: #f5f6f7; color: #6c757d; opacity: 1; }
.admin-active-check { display: flex; align-items: center; height: 30px; padding: 0 8px; border: 1px solid #ced4da; border-radius: 5px; font-weight: 400; }
.admin-active-check input { width: 15px; height: 15px; margin: 0 7px 0 0; }
.admin-password-fields { margin-top: 8px; }
.admin-permissions { margin-top: 10px; }
.admin-permission-title { margin-bottom: 4px; font-weight: 700; font-size: 12px; }
.admin-permission-note { margin-bottom: 6px; color: #6c757d; font-size: 10px; }
.admin-permission-table { width: 100%; border-top: 1px solid #dee2e6; border-left: 1px solid #dee2e6; }
.admin-permission-row { display: grid; grid-template-columns: minmax(150px, 1fr) 54px 54px 54px; min-height: 30px; border-bottom: 1px solid #dee2e6; }
.admin-permission-row > span, .admin-permission-row > label { display: flex; align-items: center; min-width: 0; border-right: 1px solid #dee2e6; }
.admin-permission-row.head { background: #f8f9fa; text-align: center; font-weight: 600; }
.admin-permission-row.head > span:not(:first-child), .admin-permission-row > label { justify-content: center; }
.admin-permission-row .name { padding: 0 8px; font-weight: 600; }
.admin-permission-row input { width: 15px; height: 15px; margin: 0; }
.admin-permission-row .na { color: #adb5bd; }
.admin-status { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; height: 20px; padding: 0 8px; border-radius: 10px; background: #edf0f2; }
.admin-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: #0006; }
.admin-modal-card { width: min(420px, 100%); background: #fff; border-radius: 8px; box-shadow: 0 16px 50px #0004; overflow: hidden; }
.admin-modal-title { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 10px; border-bottom: 1px solid #dee2e6; }
.admin-modal-close { width: 30px; height: 30px; border: 0; background: transparent; font-size: 22px; color: #6c757d; }
.admin-modal-form { display: grid; gap: 10px; padding: 12px; }
.admin-modal-actions { display: flex; justify-content: flex-end; gap: 4px; }
.admin-modal-actions .btn { min-height: 30px; }

@media (max-width: 900px) {
    .admin-workspace { grid-template-columns: 1fr; overflow: auto; }
    .admin-list-panel { min-height: 45dvh; border-right: 0; border-bottom: 1px solid #dee2e6; }
    .admin-detail-panel { min-height: 55dvh; }
}
@media (max-width: 768px) {
    .admin-fields { grid-template-columns: 1fr; }
    .admin-filter-row select { min-width: 0; }
    .admin-permission-row { grid-template-columns: minmax(120px, 1fr) 48px 48px 48px; }
}

/* Thanh kéo thay đổi chiều rộng menu trái trên máy tính. */
@media (min-width: 769px) {
    .sidebar { position: relative; }
    .sidebar-resizer {
        position: absolute;
        top: 0;
        right: -3px;
        bottom: 0;
        width: 6px;
        z-index: 20;
        cursor: col-resize;
        touch-action: none;
        background: transparent;
    }
    .sidebar-resizer:hover,
    body.sidebar-resizing .sidebar-resizer { background: rgba(13, 110, 253, .12); }
    body.sidebar-resizing,
    body.sidebar-resizing * { cursor: col-resize !important; user-select: none !important; }
}
@media (max-width: 768px) {
    .sidebar-resizer { display: none !important; }
}


/* Khong hien vien focus quanh khung bang sau thao tac xoa/refresh. */
.table-container:focus,
.table-container:focus-visible {
    outline: none;
}

/* V3 - Dong bo font 12px cho cong cu tren tat ca module (2026-10-09). */
/* Chi ap dung cho thanh cong cu va cac dieu khien phan trang;
   khong doi co chu menu, logo, tieu de cot, du lieu bang hay o nhap noi dong. */
body.app-body .main-content .toolbar-3-rows input:not([type="file"]),
body.app-body .main-content .toolbar-3-rows select,
body.app-body .main-content .toolbar-3-rows button:not(#btnMenuMobile),
body.app-body .main-content .toolbar-3-rows button span:not([aria-hidden="true"]),
body.app-body .main-content .toolbar-3-rows label,
body.app-body .main-content .table-footer button,
body.app-body .main-content .table-footer select,
body.app-body .main-content .table-footer input:not([type="checkbox"]),
body.app-body .main-content .table-footer label,
body.app-body .main-content .software-stock-pagination button,
body.app-body .main-content .software-stock-pagination select,
body.app-body .main-content .software-stock-pagination label,
body.app-body .main-content .pagination-controls button,
body.app-body .main-content .pagination-controls select,
body.app-body .main-content .pagination-controls label,
body.app-body .main-content .pagination-bar button,
body.app-body .main-content .pagination-bar select,
body.app-body .main-content .pagination-bar label,
body.app-body .main-content .stocktake-pagination button,
body.app-body .main-content .stocktake-pagination select,
body.app-body .main-content .stocktake-pagination label,
body.app-body .main-content .inventory-pagination button,
body.app-body .main-content .inventory-pagination select,
body.app-body .main-content .inventory-pagination label {
    font-size: 12px !important;
}
