﻿/* ==========================================================================
   Design System: Chatlan NCC / Dathangtk CSS (Mobile-First & Clean Code)
   Thiet ke theo style Mazer Dashboard, responsive tu dien thoai den desktop.
   Tat ca comment viet bang tieng Viet khong dau de tranh loi ky tu.
   ========================================================================== */

:root {
  /* Theme Mazer Variables */
  --color-primary: #435ebe;
  --color-primary-dark: #3449a4;
  --color-primary-soft: #ebf3ff;
  --color-bg: #f2f7ff;
  --color-surface: #ffffff;
  --color-text: #25396f;
  --color-text-body: #607080;
  --color-border: #dce7f3;
  --color-warning: #eaca4a;
  --color-danger: #f3616d;
  --color-info: #56b6f7;
  
  /* Shadows & Layouts */
  --shadow-soft: -8px 12px 18px rgba(25, 42, 70, 0.08);
  --sidebar-width: 300px;
  --transition-speed: 0.3s;
}

/* ==========================================================================
   1. Base & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-body);
  font-family: "Nunito", "Segoe UI", Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Base headings */
h1, h2, h3 {
  color: var(--color-text);
  margin: 0;
}

h1 {
  font-size: 20px;
  font-weight: 800;
}

h2 {
  font-size: 16px;
  font-weight: 700;
}

h3 {
  font-size: 14px;
  font-weight: 700;
}

/* ==========================================================================
   2. Layout & Shell (Mobile-First)
   ========================================================================== */
.dathangtk-app {
  display: block;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Backdrop (Mobile-only) */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  border: 0;
  background: rgba(37, 57, 111, 0.28);
  padding: 0;
  width: 100%;
  height: 100%;
}

.sidebar-backdrop.show {
  display: block;
}

/* Sidebar off-screen by default (Mobile) */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  left: calc(var(--sidebar-width) * -1);
  z-index: 30;
  width: var(--sidebar-width);
  overflow-y: auto;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.sidebar.show {
  left: 0;
}

.sidebar-header {
  padding: 2rem 2rem 1rem;
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 10px 18px rgba(67, 94, 190, 0.24);
}

.brand-name {
  color: var(--color-text);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.15;
  display: block;
}

.brand-subtitle {
  color: #7c8db5;
  font-size: 0.82rem;
  font-weight: 600;
  display: block;
  margin-top: 0.1rem;
}

/* Menu items */
.sidebar-menu {
  padding: 0 2rem 1rem;
  flex-grow: 1;
}

.menu, .submenu {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-title {
  margin: 1.4rem 0 0.55rem;
  color: #7c8db5;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-link, .submenu-link {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-link i, .submenu-link i {
  color: #7c8db5;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.sidebar-link:hover, .submenu-link:hover {
  background: rgb(240, 241, 245);
}

.sidebar-item.active > .sidebar-link {
  color: #fff;
  background: var(--color-primary);
}

.sidebar-item.active > .sidebar-link i {
  color: #fff;
}

.sidebar-link .chevron {
  margin-left: auto;
  font-size: 0.85rem;
}

.submenu {
  display: grid;
  gap: 0.12rem;
  padding: 0.35rem 0 0.35rem 1.35rem;
}

.submenu-link {
  min-height: 34px;
  padding: 0.45rem 0.75rem;
  color: var(--color-text-body);
  font-size: 0.9rem;
}

.submenu-link.active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.sidebar-user {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  min-height: 42px;
  margin: 0 2rem 2rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  background: var(--color-surface);
  font-weight: 700;
}

/* Page content wrapper */
.dathangtk-page {
  min-width: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================================
   3. Topbar & Header
   ========================================================================== */
.dathangtk-topbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mobile-toggle,
.desktop-toggle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  background: var(--color-surface);
  font-size: 1.35rem;
  cursor: pointer;
}

.desktop-toggle {
  display: none;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.topbar-actions .btn {
  flex: 1;
}

/* ==========================================================================
   4. Panels & Cards
   ========================================================================== */
.panel {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.main-panels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-heading {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--color-text-body);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d9e6ff;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-text);
  font-size: 11px;
  font-weight: 800;
}

/* Form fields responsive */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field .form-label {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.form-control, .form-select {
  border-color: var(--color-border);
  color: var(--color-text);
  min-height: 38px;
  border-radius: 8px;
}

.form-control:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(67, 94, 190, 0.12);
}

/* ==========================================================================
   5. Buttons System
   ========================================================================== */
.btn {
  min-height: 38px;
  padding: 0.375rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-secondary {
  background: #fff;
  border-color: var(--color-border);
  color: var(--color-primary);
}

.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-primary-soft);
  border-color: #c9d8ff;
}

.btn-warning {
  background: var(--color-warning);
  border-color: var(--color-warning);
  color: #fff;
}

.btn-info {
  background: var(--color-info);
  border-color: var(--color-info);
  color: #fff;
}

.btn-danger {
  background: #fff;
  border-color: #f8c8ce;
  color: var(--color-danger);
}

.btn-danger:hover, .btn-danger:focus {
  background: #fff1f3;
  border-color: #f8c8ce;
}

/* Action toolbars and grids */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.action-grid .wide {
  grid-column: span 2;
}

.criteria-launch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px 0;
}

.right-switcher {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

/* ==========================================================================
   6. Select2 & NCC Picker Customizations
   ========================================================================== */
.ncc-picker, .branch-picker {
  position: relative;
}

.ncc-picker .select2-container, .branch-picker .select2-container {
  width: 100% !important;
}

.ncc-picker .select2-selection--multiple, .branch-picker .select2-selection--multiple {
  min-height: 38px;
  border-color: var(--color-border) !important;
  border-radius: 8px !important;
}

.ncc-picker .select2-container--focus .select2-selection--multiple,
.ncc-picker .select2-container--open .select2-selection--multiple,
.branch-picker .select2-container--focus .select2-selection--multiple,
.branch-picker .select2-container--open .select2-selection--multiple {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(67, 94, 190, 0.12);
}

.ncc-picker .select2-selection__rendered, .branch-picker .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px 7px !important;
}

.ncc-picker .select2-search--inline, .branch-picker .select2-search--inline {
  flex: 1 1 200px;
  min-width: 150px;
}

.ncc-picker .select2-search--inline .select2-search__field,
.branch-picker .select2-search--inline .select2-search__field {
  width: 100% !important;
  min-height: 26px;
  margin: 0 !important;
  color: var(--color-text);
  font-family: inherit;
}

.ncc-picker .select2-selection__choice, .branch-picker .select2-selection__choice {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  margin: 0 !important;
  padding: 0 8px 0 4px !important;
  border: 1px solid #d9e6ff !important;
  border-radius: 999px !important;
  background: var(--color-primary-soft) !important;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 800;
}

.ncc-picker .select2-selection__choice__remove, .branch-picker .select2-selection__choice__remove {
  position: static !important;
  order: 2;
  display: inline-grid !important;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 0 !important;
  border-radius: 999px;
  color: var(--color-danger) !important;
  background: rgba(243, 97, 109, 0.1);
  line-height: 1;
}

/* Kieu loi canh bao cua Select2 */
.select2-container.select2-error .select2-selection--multiple {
  border-color: var(--color-danger) !important;
  box-shadow: 0 0 0 0.2rem rgba(243, 97, 109, 0.15) !important;
}

.select2-dropdown {
  border-color: var(--color-border);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(25, 42, 70, 0.14);
  overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--color-primary);
}

.sr-only-proxy,
.ncc-results {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   7. Summary Strip (2x2 Mobile, 1x4 Desktop)
   ========================================================================== */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.summary-item {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.summary-item strong {
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.1;
}

.summary-item span {
  color: var(--color-text-body);
  font-size: 12px;
}

/* ==========================================================================
   8. DataTables & Table Styling
   ========================================================================== */
.table-panel {
  padding: 0;
  overflow: hidden;
}

.table-panel-head {
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.loading {
  margin: 12px 16px 0;
  padding: 10px 12px;
  border: 1px solid #cce4ff;
  border-radius: 8px;
  background: #f7fbff;
  color: var(--color-text);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  padding: 16px;
}

/* Base table style overrides */
.bd-data-table, #report {
  width: 100% !important;
  min-width: 1420px;
  border-collapse: separate !important;
  border-spacing: 0;
}

#report th {
  background: #f5f8fc;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 900;
  border-bottom: 2px solid var(--color-border);
}

#report td, #report th {
  padding: 8px 10px;
  vertical-align: middle;
  line-height: 1.3;
}

/* Header style for DataTables floating headers */
.fixedHeader-floating {
  z-index: 1050 !important;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 8px 18px rgba(25, 42, 70, 0.12);
}

/* DataTables fixed columns styles */
#report .dtfc-fixed-start,
#report .dtfc-fixed-left {
  background: var(--color-surface) !important;
}

#report thead .dtfc-fixed-start,
#report thead .dtfc-fixed-left {
  background: #f5f8fc !important;
  z-index: 7;
}

#report tbody tr:hover .dtfc-fixed-start,
#report tbody tr:hover .dtfc-fixed-left {
  background: #f8fbff !important;
}

#report .dtfc-fixed-start:last-of-type,
#report .dtfc-fixed-left:last-of-type {
  box-shadow: 8px 0 12px -10px rgba(25, 42, 70, 0.38);
}

/* Thiet ke va gioi han width cho cot ma hang, ten hang voi line-clamp 3 dong */
#report th.col-mahh,
#report td.col-mahh {
  width: 112px !important;
  min-width: 112px !important;
  max-width: 300px !important;
  font-weight: 700;
  color: var(--color-primary);
  
  white-space: normal !important;
  word-wrap: break-word;
}

#report th.col-tenhh,
#report td.col-tenhh {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  white-space: normal !important;
  word-wrap: break-word;
}

#report td.col-tenhh .cell-line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: calc(1.4em * 3);
  cursor: pointer;
  transition: color var(--transition-speed) ease;
}

#report td.col-tenhh .cell-line-clamp:hover {
  color: var(--color-primary);
}

/* Style for order quantity input inside table cell */
#report .order-qty-input {
  width: 78px;
  min-height: 32px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  text-align: right;
  padding: 0 6px;
  transition: all 0.15s ease;
}

#report .order-qty-input.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-text);
  box-shadow: 0 0 0 0.18rem rgba(67, 94, 190, 0.12);
  font-weight: 700;
}


/* Visual highlights for rows with orders (Dung mau solid 100% opacity thay cho rgba de bo qua hieu ung thuc, khong bi lo chu khi cuộn qua cac cot va header co dinh) */
#report tbody tr.has-order-qty > td,
#report tbody tr.has-order-qty > td.dtfc-fixed-start,
#report tbody tr.has-order-qty > td.dtfc-fixed-left {
  background: #e5fcf1 !important;
}

#report tbody tr.has-order-qty:hover > td,
#report tbody tr.has-order-qty:hover > td.dtfc-fixed-start,
#report tbody tr.has-order-qty:hover > td.dtfc-fixed-left {
  background: #d6fae9 !important;
}

/* Custom DataTables Toolbar & Footer */
.dt-toolbar, .dt-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px;
  font-size: 13px;
  background: #fbfdff;
}

.dt-toolbar {
  border-bottom: 1px solid var(--color-border);
}

.dt-footer {
  border-top: 1px solid var(--color-border);
  color: var(--color-text-body);
}

.dt-toolbar .dt-length select {
  width: 80px;
}

.dt-toolbar .dt-search label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  width: 100%;
}

.dt-toolbar .dt-search input {
  width: 100%;
}

.dt-footer .dt-paging .pagination {
  margin: 0;
  flex-wrap: wrap;
  gap: 4px;
}

.dt-footer .dt-paging .page-link {
  min-width: 32px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  border-color: var(--color-border);
  color: var(--color-primary);
  box-shadow: none;
}

.dt-footer .dt-paging .page-link:hover {
  background: var(--color-primary-soft);
}

.dt-footer .dt-paging .page-item.active .page-link {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.dt-footer .dt-paging .page-item.disabled .page-link {
  opacity: 0.5;
  background: #fff;
}

/* ==========================================================================
   9. Modals (Responsive & Clean)
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(37, 57, 111, 0.35);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(25, 42, 70, 0.22);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

/* Close button for modals */
.close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 24px;
  color: var(--color-text-body);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.close:hover {
  color: var(--color-danger);
}

/* Criteria Modal Custom */
.criteria-modal .modal-content {
  max-width: 1120px;
  max-height: calc(100vh - 24px);
}

.criteria-modal-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.criteria-panel {
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: #fbfdff;
  overflow: hidden;
}

.criteria-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.criteria-table-wrap {
  max-height: 280px;
  overflow-y: auto;
  overflow-x: auto;
  padding: 10px;
}

#criteria, #criteriaVuot {
  min-width: 640px;
  margin-bottom: 0;
}

#criteria input, #criteriaVuot input {
  width: 78px;
  min-height: 32px;
  text-align: right;
}

.criteria-modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

/* ==========================================================================
   10. Media Queries (Desktop Adaptation - 992px & 1200px)
   ========================================================================== */

/* Medium screen / Tablet enhancements */
@media (min-width: 768px) {
  .topbar-actions {
    width: auto;
  }

  .topbar-actions .btn {
    flex: initial;
  }

  .summary-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .dt-toolbar, .dt-footer {
    flex-direction: row;
    justify-content: space-between;
  }

  .dt-toolbar .dt-search {
    align-self: flex-end;
    max-width: 320px;
  }

  .dt-footer .dt-paging {
    align-self: flex-end;
  }
}

/* Large screen / Desktop - 992px */
@media (min-width: 992px) {
  .dathangtk-topbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .main-panels {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }

  .filter-panel {
    grid-column: span 5;
  }

  .criteria-rail {
    grid-column: span 3;
  }

  .action-panel {
    grid-column: span 4;
  }

  .criteria-launch-grid {
    grid-template-columns: 1fr;
  }

  .criteria-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* Extra Large screen / Desktop with Fixed Sidebar - 1200px */
@media (min-width: 1200px) {
  .mobile-toggle {
    display: none;
  }

  .desktop-toggle {
    display: inline-grid;
  }

  .sidebar {
    left: 0;
  }

  .sidebar-backdrop {
    display: none !important;
  }

  .dathangtk-page {
    margin-left: var(--sidebar-width);
    padding: 24px;
    gap: 20px;
    transition: margin-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sidebar-collapsed .sidebar {
    left: calc(var(--sidebar-width) * -1);
  }

  .sidebar-collapsed .dathangtk-page {
    margin-left: 0;
  }

  .filter-panel {
    grid-column: span 4;
  }

  .criteria-rail {
    grid-column: span 4;
  }

  .action-panel {
    grid-column: span 4;
  }

  .criteria-launch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   11. Mobile Quantity & Details Modal Styles
   ========================================================================== */
.mobile-qty-modal-content {
  width: 100%;
  max-width: 500px;
}

.detail-item-box {
  padding: 8px 10px;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-label {
  display: block;
  font-size: 11px;
  color: var(--color-text-body);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 2px;
}

.detail-value {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
}

/* Stepper adjustments */
.mobile-qty-stepper-wrap .btn-outline-secondary {
  width: 48px;
  height: 48px;
  font-size: 18px;
  display: inline-grid;
  place-items: center;
}

@media (max-width: 767.98px) {
  .mobile-qty-modal {
    align-items: flex-end;
    padding: 0;
  }

  .mobile-qty-modal-content {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
    animation: slideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Order Success Modal & Swal Wide */
.swal2-popup.swal-wide {
  width: 650px !important;
  max-width: 95vw !important;
}

.order-success-container .order-item {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--color-border) !important;
}

.order-success-container .order-item:hover {
  background-color: #f8faff !important;
  box-shadow: 0 2px 8px rgba(67, 94, 190, 0.08);
}

/* ponytail: Bôi vàng các dòng sản phẩm bị trùng tên nhưng khác mã/giá trên DataTables */
tr.row-duplicate-name,
tr.row-duplicate-name > td {
  background-color: #fff8e1 !important;
}

tr.row-duplicate-name:hover,
tr.row-duplicate-name:hover > td {
  background-color: #ffecb3 !important;
}