﻿@import url("open-iconic/font/css/open-iconic-bootstrap.min.css");

html,
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
}
table th {
  vertical-align: middle;
  text-align: center;
  font-weight: 600 !important;
}
table td {
  vertical-align: middle !important;
}
label {
  font-weight: 600;
}
h1:focus {
  outline: none;
}

input[type="number"] {
  text-align: right;
}

.content {
  padding-top: 1.1rem;
}

.valid.modified:not([type="checkbox"]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid red;
}

.validation-message {
  color: red;
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=)
      no-repeat 1rem/1.8rem,
    #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

.status-bar-safe-area {
  display: none;
}

@supports (-webkit-touch-callout: none) {
  .status-bar-safe-area {
    display: flex;
    position: sticky;
    top: 0;
    height: env(safe-area-inset-top);
    background-color: #f7f7f7;
    width: 100%;
    z-index: 1;
  }

  .flex-column,
  .navbar-brand {
    padding-left: env(safe-area-inset-left);
  }
}

.sidebar {
  position: static !important;
  font-size: 16px;
  height: unset !important;
}
.sidebar .menu-group,
.sidebar .menu-group .nav-item {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}
.sidebar .menu-group-title,
.sidebar span.nav-link {
  color: #d7d7d7;
  border-radius: 4px;
  height: 3rem;
  display: flex;
  align-items: center;
  line-height: 3rem;
  cursor: pointer;
}
.sidebar .menu-group-title:hover,
.sidebar span.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}
.sidebar .menu-group-title {
  justify-content: space-between;
}

hr {
  background: #fff;
}

.small-box {
  position: relative;
}
.small-box > .inner {
  padding: 10px;
}
.small-box h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 10px;
  padding: 0;
  white-space: nowrap;
}
.small-box p {
  font-size: 1rem;
}
.small-box .icon {
  color: rgba(0, 0, 0, 0.15);
  z-index: 0;
}
.small-box .icon > span {
  font-size: 70px;
  position: absolute;
  right: 15px;
  top: 15px;
  transition: -webkit-transform 0.3s linear;
  transition: transform 0.3s linear;
  transition: transform 0.3s linear, -webkit-transform 0.3s linear;
}
.small-box .small-box-footer {
  background-color: rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 0.8);
  display: block;
  padding: 3px 0;
  position: relative;
  text-align: center;
  text-decoration: none;
  z-index: 10;
}
.small-box a.button {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  vertical-align: middle;
}
.small-box a.button i {
  font-size: 75px;
  margin: 15px;
  color: #000;
}

.modalconfig {
  position: absolute;
}
.modal button.close {
  border: none;
  background: none;
}
.configsetup {
  margin: 10px 0px;
}

.card-header {
  display: flex;
  justify-content: space-between;
}
.card-title {
  margin: 0px;
  font-size: 1rem;
}

.tags label {
  float: left;
}
.tags .tag {
  float: left;
  margin-left: 5px;
  margin-top: 5px;
  margin-bottom: 5px;
  background: #e0e0e0;
  padding: 5px;
}
.tags img {
  width: 10px;
}

.order-create-section hr {
  margin: 0px;
  background: #ccc;
}
.auto-list-group {
  position: absolute;
  z-index: 1000;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  background-color: #fff;
  top: 22px;
  list-style-type: none;
  padding: 0px;
}
.auto-list-group-item {
  cursor: pointer;
  padding: 3px;
  color: #000;
}
.auto-list-group-item:hover {
  background-color: #f0f0f0;
}
.order-create-section .auto-list-group {
  left: 85px;
}
.product-section .auto-list-group {
  left: 68px;
}

.validation-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.validation-message {
  font-size: 0.75rem;
  margin-top: 2px;
}

.ql-align .ql-picker-label {
  padding-top: 0px !important;
}
.ql-formats .btn-img {
  padding-top: 0px !important;
}
.ql-formats .btn-code {
  width: 24px !important;
  border: 1px solid !important;
  padding: 0px !important;
  font-size: 12px;
  height: 18px !important;
  margin-top: 3px;
  font-weight: 600;
}

.submenu-open {
  padding-left: 25px;
}
.form-check {
  padding-left: 2.5em !important;
}
.input-group-text:has(> input.form-check-input) {
  padding-left: 25px;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: unset !important;
}
.table > :not(:last-child) > :last-child > * {
  border-bottom-color: snow !important;
}

.card-header {
  padding: 5px !important;
}
.card-header .card-title {
  font-size: 1rem;
}
/*.table-hover tbody tr:hover {color: #212529;background-color: #FCE0A6!important}*/
.form-check-input {
  position: unset !important;
}

.categoriesproduct {
}
.categoriesproduct .item {
  height: 100%;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  vertical-align: middle;
  align-items: center;
  height: 100%;
  display: grid;
  cursor: pointer;
  color: #fff;
}
.categoriesproduct .item i {
  font-size: 36px;
}
.categoriesproduct .item .producttext {
}
.categoriesproduct-item {
  height: calc(100vh - 110px) !important;
  padding-left: 8px;
  padding-right: 8px;
}

.nav-sidebar > .nav-item > .nav-link {
  background-color: rgba(255, 255, 255, 0.1);
}

.container-fluid {
  width: 100%;
  padding-right: 7.5px;
  padding-left: 7.5px;
  margin-right: auto;
  margin-left: auto;
}
.container-fluid-height {
  height: calc(100vh - 30px) !important;
}

.card {
  margin-bottom: 0 !important;
}

.card-body.p-0 .table tbody > tr > td:first-of-type,
.card-body.p-0 .table tbody > tr > th:first-of-type,
.card-body.p-0 .table tfoot > tr > td:first-of-type,
.card-body.p-0 .table tfoot > tr > th:first-of-type,
.card-body.p-0 .table thead > tr > td:first-of-type,
.card-body.p-0 .table thead > tr > th:first-of-type {
  padding-left: 0.3rem !important;
}
.card-body.p-0 .table tbody > tr > td:last-of-type,
.card-body.p-0 .table tbody > tr > th:last-of-type,
.card-body.p-0 .table tfoot > tr > td:last-of-type,
.card-body.p-0 .table tfoot > tr > th:last-of-type,
.card-body.p-0 .table thead > tr > td:last-of-type,
.card-body.p-0 .table thead > tr > th:last-of-type {
  padding-right: 0.3rem !important;
}

.content-wrapper > .content {
  padding: 1rem !important;
}

.card-header {
  border-bottom: unset !important;
}

[class*="bg-"].disabled {
  opacity: 0.65;
}

.container-fluid table td,
.container-fluid table th {
  font-weight: 400 !important;
}

.bg-olive-active .area-name {
  font-weight: 600 !important;
}

.bg-no-olive {
  background-color: #fff;
  border-left: 2px solid transparent !important;
}

.bg-olive-active .area-name {
  font-weight: 600 !important;
  color: #000000 !important; /* POSONE: Màu tên khu vực khi active */
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 150px;
  width: 100%;
  background: #fff;
  color: #000;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  padding: 8px 4px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-card-img {
  height: 50%;
  object-fit: contain;
  margin-bottom: 4px;
  background: transparent;
  border-radius: 4px;
  mix-blend-mode: multiply;
}

.product-card-price {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
  margin-top: 2px;
}

.product-card-title {
  text-align: center;
  font-size: 14px;
  line-height: 1.2;
  max-height: 2.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  font-weight: 600;
}

.btn-circle {
  width: 60px;
  height: 60px;
  padding: 10px;
  border-radius: 50%;
  font-size: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  transition: all 0.3s ease;
}

.btn-circle:hover {
}

.icon-shape {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  background-color: white;
  transition: all 0.3s ease;
}

.icon-sm {
  width: 1.7rem;
  height: 1.7rem;
  line-height: 1.7rem;
}

.button-minus:hover,
.button-plus:hover {
  cursor: pointer;
}

.quantity-field {
  width: 30px !important;
  font-size: 14px;
  background: transparent;
}

.quantity-field::-webkit-outer-spin-button,
.quantity-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-field[type="number"] {
  -moz-appearance: textfield;
}

/* Summary box custom style */
.summary-box {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(32, 201, 151, 0.08);
  padding: 1rem;
}
.summary-box .total {
  font-weight: 700;
  font-size: 1.3rem;
  text-align: right;
}
.summary-box .tax-label {
  font-weight: 600;
}

/* Bootstrap tooltip warning style override */

/* end tooltip */
.modal-header .modal-title {
  font-size: 14pt !important;
  /* font-weight: unset !important; */
}
.input-group label.input-group-text {
  font-weight: unset !important;
}

/* Custom Scrollbar - Small and Teal */
/* For Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: #adb5bd; /* teal */
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: #e0f7fa;
  border-radius: 8px;
}
/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #adb5bd #e0f7fa;
}

/* .form-label{
    font-weight: unset !important;
} */
.form-group label,
label.form-check-label {
  /* font-weight: unset !important; */
}

/* Click effect with light teal background */
.click-effect {
  transition: background-color 0.2s ease;
}

.click-effect:active {
}

/* Hover effect with light teal background */
.hover-effect {
  transition: background-color 0.2s ease;
}

.hover-effect:hover {
}

/* Common interactive elements with click effect */
.btn-click:active,
.card-click:active,
.product-card-click:active,
.small-box-click:active,
.nav-link-click:active {
  background-color: rgba(32, 201, 151, 0.2) !important;
}

/* Common interactive elements with hover effect */
.btn-hover:hover,
.card-hover:hover,
.product-card-hover:hover,
.small-box-hover:hover,
.nav-link-hover:hover {
}

/* Ensure text remains readable during interactions */
.click-effect:active,
.btn-click:active,
.card-click:active,
.product-card-click:active,
.small-box-click:active,
.nav-link-click:active,
.hover-effect:hover,
.btn-hover:hover,
.card-hover:hover,
.product-card-hover:hover,
.small-box-hover:hover,
.nav-link-hover:hover {
  color: inherit !important;
}

#app {
  height: 100vh;
  width:100%;
}
.content-wrapper {
  /*    height: 100vh !important;*/
}

.content-wrapper > .content {
  padding: 0.5rem !important;
}

input::placeholder {
  color: gray;
  font-style: italic;
  opacity: 0.7; /* độ mờ */
  font-size: 12px;
  font-weight: normal !important;
}
.form-select:focus {
  box-shadow: none !important;
}

/* CSS riêng cho trang ProductCreateNew.razor */
.product-create-tabs .nav-tabs {
  /* border-bottom: 1px solid #dee2e6 !important; */
  margin: 0 !important;
  padding: 0 !important;
}

.product-create-tabs .nav-item {
  margin-bottom: -1px;
}

.product-create-tabs .nav-link {
  border: none !important;
  border-radius: 0.25rem !important;
  color: #6c757d;
  position: relative;
  padding: 8px 10px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-right: 5px;
}

.product-create-tabs .nav-link.active {
  color: #fff !important;
  background-color: #007bff !important;
  /* border-bottom: 3px solid #007bff !important; */
}

.product-create-tabs .nav-link:hover:not(.active) {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.05);
}

.product-create-tabs .nav-link i {
  margin-right: 5px;
}

.product-create-tabs .card-header {
  background-color: white;
  padding: 10px !important;
  border-bottom: 1px solid #dee2e6 !important;
}

.product-create-tabs .tab-content {
  padding-top: 15px;
}

.product-create-tabs .card-body {
  padding: 1.25rem;
}

/* Form label styling for ProductCreateNew.razor */
.product-create-tabs .form-label,
.product-create-form .form-label {
  font-weight: 600 !important;
}

.config-form .form-check-label {
  font-weight: 400 !important;
}

.product-create-tabs .form-check-inline {
  padding-left: 0 !important;
}

/* Responsive styles for product creation page */
@media (max-width: 768px) {
  .product-create-tabs .nav-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  .product-create-tabs .table-responsive .table-sm td {
    padding: 0.3rem 0px !important;
  }
}

/* Avatar upload for ProductCreateNew.razor */
.product-avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.product-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.avatar-profile {
  border: 3px solid #adb5bd;
  padding: 3px;
}

.product-avatar-upload {
  position: absolute;
  bottom: 0;
  right: 0;
  background: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #e0e0e0;
}

.product-avatar-upload:hover {
  background: #f8f9fa;
  transform: scale(1.1);
}

.product-avatar-upload i {
  color: #007bff;
  font-size: 14px;
}

/* Responsive Radio Button Layout */
.radio-group-responsive {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 8px;
  align-items: flex-start;
}

.radio-group-responsive .form-check {
  margin-bottom: 0;
  padding-left: 1.5em !important;
  display: flex;
  align-items: center;
}

.radio-group-responsive .form-check-input {
  margin-top: 0;
  margin-right: 0.5rem;
}

.radio-group-responsive .form-check-label {
  margin-bottom: 0;
  line-height: 1.5;
  cursor: pointer;
}

/* Desktop: Radio buttons nằm ngang */
@media (min-width: 768px) {
  .radio-group-responsive {
    flex-direction: row;
    align-items: center;
  }

  .radio-group-responsive .form-check {
    flex: 0 0 auto;
    margin-right: 15px;
  }
}

/* Mobile: Radio buttons nằm dọc */
@media (max-width: 767.98px) {
  .radio-group-responsive {
    flex-direction: column;
    gap: 8px;
  }

  .radio-group-responsive .form-check {
    width: 100%;
    margin-right: 0;
  }
}

/* Đảm bảo alignment với label chính */
.form-group .radio-group-responsive {
  padding-left: 0;
}

/* Fix cho form-check alignment */
.product-create-form .form-check,
.product-create-tabs .form-check {
  padding-left: 1.5em !important;
  margin-bottom: 0.5rem;
}

.product-create-form .form-check-input,
.product-create-tabs .form-check-input {
  position: absolute;
  margin-left: -1.5em;
  margin-top: 0.25em;
}

.product-create-form .form-check-label,
.product-create-tabs .form-check-label {
  padding-left: 0;
  margin-bottom: 0;
}

/* Checkbox và Switch alignment */
.product-create-form .form-check.form-switch,
.product-create-tabs .form-check.form-switch {
  padding-left: 2.5em !important;
}

.product-create-form .form-switch .form-check-input,
.product-create-tabs .form-switch .form-check-input {
  margin-left: -2.5em;
  width: 2em;
  height: 1.2em;
}

/* Responsive Button Layout for Product Creation */
.product-action-buttons-desktop {
  display: grid;
  gap: 8px;
  margin-left: auto;
  width: fit-content;
}

.product-action-buttons-mobile {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 1rem;
}

.product-action-buttons-mobile .btn {
  flex: 1;
}

/* Desktop: Buttons aligned right with grid layout */
@media (min-width: 992px) {
  .product-action-buttons-desktop {
    display: grid;
    gap: 8px;
    margin-left: auto;
    width: fit-content;
  }
}

/* Mobile: Buttons on same row */
@media (max-width: 991.98px) {
  .product-action-buttons-mobile {
    flex-direction: row;
  }

  .product-action-buttons-mobile .btn {
    flex: 1;
    margin: 0;
  }
}

/* Navbar */
@media (max-width: 767.98px) {
  .navbar-expand {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    /* padding: 0.5rem 1rem !important; */
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
  }
  .navbar-expand .navbar-nav .nav-link {
    padding-right: 1.9rem !important;
    padding-left: unset !important;
  }
}

.dt-buttons {
  display: none !important;
}

.brand-link .brand-image {
  max-height: 65px !important;
}

.avatar-container {
  width: 103px;
  height: 103px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid #ddd;
}

.avatar-container .avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  vertical-align: middle;
}

.nav-tabs .nav-link.active {
  background-color: #007bff !important;
  color: white !important;
  border-color: #007bff !important;
}

.nav-tabs .nav-link {
  color: #6c757d;
}

.nav-tabs .nav-link:hover {
  border-color: #007bff;
  color: #007bff;
}

.modal-payment {
  max-width: 95vw;
}

@media (max-width: 768px) {
  .modal-payment {
    margin: 0.5rem;
  }

  .modal-payment .modal-body {
    /* max-height: calc(100vh - 150px); */
    overflow-y: auto;
  }

  .modal-payment .row {
    height: auto !important;
  }

  .modal-payment .payment-column {
    height: auto !important;
    min-height: 300px;
    max-height: none !important;
    overflow-y: visible !important;
    padding-right: 0 !important;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
  }

  .modal-payment .btn img {
    width: 50px !important;
    height: 50px !important;
  }

  .modal-payment .input-group-append {
    position: static !important;
  }

  .modal-payment .input-group-append button {
    margin-left: 0.5rem;
  }
}

@media (max-width: 576px) {
  .modal-payment {
    margin: 0;
    max-width: 100vw;
    height: 100vh;
  }

  .modal-payment .modal-content {
    height: 100vh;
    border-radius: 0;
  }

  .modal-payment .modal-body {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .modal-payment .payment-column {
    padding: 1rem;
    margin: 0 0 1rem 0;
  }

  .modal-payment .form-group {
    margin-bottom: 1rem;
  }

  .modal-payment .input-group {
    flex-wrap: nowrap;
  }

  .modal-payment .input-group-append {
    display: flex;
  }
}

.hover-bg-teal:hover {
  background-color: #20c997 !important;
}

.quantity-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #6c757d;
  border-radius: 8px;
  padding: 10px;
  max-width: 250px;
  margin: 0 auto;
}
.btn-quantity {
  width: 40px;
  height: 40px;
  border: 1px solid #dee2e6;
  background-color: #fff;
  color: #6c757d;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.btn-quantity:hover {
  background-color: #f8f9fa;
  color: #495057;
}
.quantity-input {
  width: 60px;
  height: 40px;
  border: none;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  background-color: transparent;
  color: #fff;
}
.quantity-input:focus {
  outline: none;
  box-shadow: none;
  border: none;
}
.btn-remove {
  color: #dc3545;
}
.btn-remove:hover {
  background-color: #f8f9fa;
  color: #dc3545;
}
.btn-add {
  color: #198754;
}
.btn-add:hover {
  background-color: #f8f9fa;
  color: #198754;
}

.blazored-toast-container {
  z-index: 11032002 !important;
}

/* CSS cho khung chọn file trong tab Signage */
.image-upload-box {
  width: 200px;
  height: 170px;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  position: relative;
}

.image-upload-box:hover {
  border-color: #007bff;
  background-color: #e3f2fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.15);
}

.image-upload-box:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.image-upload-box i {
  color: #6c757d;
  transition: color 0.3s ease;
}

.image-upload-box:hover i {
  color: #007bff;
}

.image-upload-box span {
  color: #6c757d;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.image-upload-box:hover span {
  color: #007bff;
}

/* Animation cho việc thêm ảnh mới */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.image-preview {
  animation: slideIn 0.3s ease-out;
}

/* ----------------------------- LOGIN PAGE LAYOUT & ANIMATIONS ----------------------------- */
/* Login page layout và animations */
/* Responsive outer gap so the form has visible space above/below */
:root {
  --login-viewport-gap: clamp(24px, 6vh, 64px);
}

html,
body {
  height: 100%;
  margin: 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

a {
  text-decoration: none;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  padding-top: var(--login-viewport-gap);
  padding-bottom: var(--login-viewport-gap);
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 1000px;
  min-height: 560px;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
}

/* Fit content without inner scroll on short screens */
@media (max-height: 760px) {
  :root {
    --login-viewport-gap: 16px;
  }
  .login-container {
    min-height: auto;
    flex-direction: column; /* stack to avoid cramped height */
  }
  .login-left-panel,
  .login-right-panel {
    padding: 32px 24px;
  }
  .brand-logo {
    width: 80px;
    height: 80px;
  }
  .feature-item {
    min-height: 56px;
    gap: 16px;
  }
  .qr-section {
    margin-top: 20px;
    padding-top: 16px;
  }
}

/* Force horizontal layout on large screens regardless of height */
@media (min-width: 1024px) {
  .login-container {
    flex-direction: row;
  }
  .login-left-panel,
  .login-right-panel {
    padding: 60px 40px;
  }
}

/* Small screens: stack with form on top, brand below */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }
  .login-right-panel {
    /* form */
    order: 1;
    padding: 32px 24px;
  }
  .login-left-panel {
    /* brand */
    order: 2;
    padding: 24px;
  }
}

.login-left-panel {
  flex: 1;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-left-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: float 6s ease-in-out infinite;
}

.brand-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 40px;
}

.features-section {
  animation: fadeInLeft 1s ease-out 0.4s both;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 1.5rem;
}

.login-form-section {
  animation: fadeInRight 1s ease-out 0.2s both;
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.login-subtitle {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-control:focus {
  outline: none;
  background: white;
}

.password-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.login-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-reset:hover {
  transform: translateY(-2px);
}

.btn-login:hover {
  transform: translateY(-2px);
}

.btn-login:active {
  transform: translateY(0);
}

/* Login page animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Additional login page styles */
.brand-section {
  text-align: center;
  margin-bottom: 14px;
  animation: fadeInLeft 1s ease-out 0.2s both;
}

.brand-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.brand-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: flex-start; /* keep icons top-aligned */
  gap: 20px;
  margin-bottom: 20px;
  min-height: 72px; /* consistent height per row */
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  font-size: 1.5rem;
  flex: 0 0 50px; /* fixed box to prevent shifting */
}

.feature-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0; /* allow text truncation */
}
.feature-content h4 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.feature-content p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
  overflow: hidden; /* ensure clamping works */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* clamp to 2 lines */
  line-clamp: 2; /* standard prop */
}

.login-form-section {
  animation: fadeInRight 1s ease-out 0.2s both;
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.login-subtitle {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-control:focus {
  outline: none;
  background: white;
}

.password-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.login-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-reset {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-reset:hover {
  transform: translateY(-2px);
}

.btn-login {
  flex: 2;
  padding: 10px 14px;
  border: none;
  color: white;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
}

.btn-login:active {
  transform: translateY(0);
}

.login-links {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.login-links a {
  margin: 0 10px;
  transition: color 0.3s ease;
}

.login-links a:hover {
  text-decoration: underline;
}

.qr-section {
  margin-top: 40px;
  padding-top: 20px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.qr-title {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 400;
  text-align: center;
}

.qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-item img {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.qr-item img:hover {
  transform: scale(1.05);
}

.login-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.login-footer a {
  transition: color 0.3s ease;
}

/* .nav-link > p > .right:nth-child(2) {
  right: 1rem !important;
} */

.input-datetime-normal input[type="datetime-local"] + input[type="text"],
.input-datetime-normal input[type="date"] + input[type="text"],
.input-datetime-normal div[style*="position: relative"] input[type="text"] {
  font-size: 1rem !important;
  padding: 0.375rem 0.75rem !important;
  height: calc(1.5em + 0.75rem + 2px) !important;
  border-radius: 0.25rem !important;
  padding-right: 35px !important;
}

.input-datetime-normal input[type="datetime-local"] + input[type="text"] + i,
.input-datetime-normal input[type="date"] + input[type="text"],
.input-datetime-normal div[style*="position: relative"] i.fa-calendar {
  font-size: 14px !important;
  right: 12px !important;
}

/* Payment Modal Button Styling - Make buttons larger */
.modal-payment .modal-footer .btn {
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  min-height: 50px;
  font-weight: 500;
  border-radius: 8px;
}

.modal-payment .modal-footer .btn-secondary {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}

.modal-payment .modal-footer .btn-primary {
  background-color: #198754 !important;
  border-color: #198754 !important;
}

/* ============ SALES: SALE CHANNEL DROPDOWN ============ */
.dropdown-menu-sale-channel {
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  transform: translate3d(0px, 25px, 0px) !important;
  z-index: 1000 !important;
}

/* Override Bootstrap khi dropdown active */
.dropdown.show .dropdown-menu-sale-channel {
  transform: translate3d(0px, 25px, 0px) !important;
}

/* ============ FLEXIBLE TABLE SYSTEM ============ */
/* Base flexible table */
.table-flexible {
  table-layout: auto;  /* Cho phép tự động điều chỉnh */
  width: 100%;
}

/* Flexible columns với tỷ lệ */
.col-flex-1 { width: 1fr; min-width: 60px; }
.col-flex-2 { width: 2fr; min-width: 100px; }
.col-flex-3 { width: 3fr; min-width: 150px; }
.col-flex-4 { width: 4fr; min-width: 200px; }

/* Fixed columns cho số liệu */
.col-fixed-xs { width: 60px; min-width: 50px; max-width: 80px; }
.col-fixed-sm { width: 80px; min-width: 60px; max-width: 100px; }
.col-fixed-md { width: 100px; min-width: 80px; max-width: 120px; }
.col-fixed-lg { width: 120px; min-width: 100px; max-width: 150px; }
.col-fixed-xl { width: 150px; min-width: 120px; max-width: 180px; }

/* Text handling cho flexible table */
.table-flexible td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive adjustments cho sidebar */
@media (max-width: 1400px) {
  .col-fixed-lg { width: 100px; min-width: 80px; max-width: 120px; }
  .col-fixed-xl { width: 120px; min-width: 100px; max-width: 140px; }
}

@media (max-width: 1200px) {
  .col-fixed-sm { width: 70px; min-width: 50px; max-width: 90px; }
  .col-fixed-md { width: 90px; min-width: 70px; max-width: 110px; }
  .col-fixed-lg { width: 110px; min-width: 90px; max-width: 130px; }
  .col-fixed-xl { width: 130px; min-width: 110px; max-width: 150px; }
}

@media (max-width: 991px) {
  .table-flexible {
    font-size: 0.9rem;
  }
  .col-fixed-xs { width: 50px; min-width: 40px; max-width: 70px; }
  .col-fixed-sm { width: 60px; min-width: 50px; max-width: 80px; }
  .col-fixed-md { width: 80px; min-width: 60px; max-width: 100px; }
  .col-fixed-lg { width: 100px; min-width: 80px; max-width: 120px; }
  .col-fixed-xl { width: 120px; min-width: 100px; max-width: 140px; }
}

@media (max-width: 767px) {
  .table-flexible {
    font-size: 0.8rem;
  }
  .col-flex-1 { min-width: 50px; }
  .col-flex-2 { min-width: 80px; }
  .col-flex-3 { min-width: 120px; }
  .col-flex-4 { min-width: 150px; }
}

/* Configuration sections styling */
.config-section {
  background-color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.config-section h6 {
  color: #495057;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.config-section h6 i {
  margin-right: 8px;
  color: #6c757d;
}

.config-section .form-group {
  margin-bottom: 16px;
}

.config-section .form-group:last-child {
  margin-bottom: 0;
}

.config-section .form-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #495057;
  margin-bottom: 6px;
}

.config-section .form-control,
.config-section .form-select {
  font-size: 0.9rem;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.config-section .form-control:disabled,
.config-section .form-select:disabled {
  background-color: #bcc4cd;
  color: #6c757d;
  opacity: 0.7;
}

.config-section .form-check {
  margin-bottom: 0;
}

.config-section .form-check-input {
  margin-top: 0.25rem;
}

.config-section .btn {
  font-size: 0.85rem;
  padding: 6px 12px;
}

.config-section .row {
  margin-left: -8px;
  margin-right: -8px;
}

.config-section .row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

/* Sub-section styling */
.config-section .text-primary {
  color: #0d6efd ;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

.config-section .text-muted {
  font-size: 0.85rem;
  margin-bottom: 16px;
  color: #6c757d;
}

/* Consistent spacing for form controls */
.config-section .d-flex.gap-2 {
  gap: 8px;
}

.config-section .d-flex.gap-2 .btn {
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
}

.select2-container .select2-selection--single {
    height: calc(2.25rem + 2px) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    transform: translateY(50%) !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0px !important; 
}