:root {
  --color-product-bg: #f0f7ff;
  --color-product-border: #cce5ff;
  --color-scrollbar-thumb: #ddd;
  --color-input-border: #ced4da;
  --color-clear-btn: #888;
  --font-size-sm: 0.875rem;
  --font-size-xs: 0.75rem;
  --input-height: 31px;
  --color-white: #fff;
  --color-text-muted: #666;
  --color-border-primary: #0d6efd;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-container {
  flex: 1;
  display: flex;
  padding-left: 250px;
}

.sidebar {
  width: 250px;
  background-color: #ffffff;
  border-right: 1px solid #e0e0e0;
  height: calc(100vh - 56px);
  position: fixed !important;
  top: 56px;
  left: 0;
  z-index: 1000;
  padding-top: 10px;
  padding-bottom: 50px;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.05);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.3s;
}

.sidebar:hover {
  scrollbar-color: #c1c1c1 #f1f1f1;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}

.sidebar:hover::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.sidebar:hover::-webkit-scrollbar-thumb {
  background: #c1c1c1;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.sidebar a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-radius: 0 20px 20px 0;
  margin-bottom: 6px;
}

.sidebar a:hover {
  background-color: #e9f2ff;
  color: #0d6efd;
}

.sidebar a.active {
  background-color: #fff;
  color: #0d6efd;
  font-weight: 600;
}

.sidebar a.active i {
  color: #0d6efd;
}

.sidebar a i {
  margin-right: 10px;
  font-size: 18px;
}

.content {
  flex: 1;
  padding: 20px;
  background-color: #f8f9fa;
}

footer {
  background-color: #f1f1f1;
  text-align: center;
  padding: 10px 0;
}

.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1030;
}

.navbar-brand {
  font-weight: 600;
  color: #0d6efd !important;
}

.navbar-text {
  font-size: 15px;
}

.btn-logout {
  font-size: 14px;
  border-radius: 6px;
}

.bi-person-circle {
  font-size: 20px;
}

.scroll-history {
  max-height: 600px;
  overflow-y: auto;
}

.order-card {
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 15px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-border-primary);
}

.order-card h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.order-card small {
  color: var(--color-text-muted);
}

.order-card ul {
  padding-left: 18px;
  margin-bottom: 5px;
}

.modal-backdrop.stacked {
  z-index: 1065 !important;
}

.modal.stacked {
  z-index: 1070 !important;
}

.product-row {
  background-color: var(--color-product-bg) !important;
  border: 1px solid var(--color-product-border) !important;
}

.technical-overview {
  margin-top: 20px;
}

.tech-label {
  font-size: var(--font-size-sm);
  line-height: 1.25;
  padding-top: 1px;
}

.technical-staff-item {
  width: 60px;
  flex-shrink: 0;
}

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

.technical-percent {
  -moz-appearance: textfield;
  height: var(--input-height);
  padding: 0.25rem;
  font-size: var(--font-size-sm);
}

.technical-percent:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--color-input-border) !important;
}

.technical-staff-list::-webkit-scrollbar {
  height: 2px;
}

.technical-staff-list::-webkit-scrollbar-thumb {
  background: var(--color-scrollbar-thumb);
}

.select2-container .select2-selection--single {
  height: var(--input-height);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: var(--input-height);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: var(--input-height);
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  height: 29px;
}

.select2-container--default .select2-selection--multiple,
.select2-container--bootstrap-5 .select2-selection--multiple {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  min-height: var(--input-height) !important;
  height: var(--input-height) !important;
  padding: 0 20px 0 4px !important;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.select2-container--default .select2-selection--multiple::-webkit-scrollbar,
.select2-container--bootstrap-5 .select2-selection--multiple::-webkit-scrollbar {
  display: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered,
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  overflow: visible !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 4px !important;
  font-size: var(--font-size-xs) !important;
  line-height: 1.4 !important;
  flex-shrink: 0 !important;
  color: #212529 !important;
  background-color: #e9ecef !important;
  border: 1px solid #ced4da !important;
}

.select2-container--default .select2-selection--multiple .select2-search--inline,
.select2-container--bootstrap-5 .select2-selection--multiple .select2-search--inline {
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-search__field,
.select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field {
  margin: 0 !important;
  height: 22px !important;
  font-size: var(--font-size-xs) !important;
}