
input[type="file"]::file-selector-button {
  border-radius: 4px;
  padding: 0 16px;
  height: 40px;
  cursor: pointer;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
  margin-right: 16px;
  transition: background-color 200ms;
  color: darkblue;
}

:root {
  --primary-color: #34495e;
  --secondary-color: #2c3e50;
  --accent-color: #2980b9;
  --text-color: #333;
  --background-color: #d8d8d8;
  --card-bg: white; 
  --border-color: #ddd;
  --success-color: #27ae60;
  --danger-color: #e74c3c;
  --warning-color: #e67e22;
  --grid-color: rgb(226, 226, 226);

  --professional-primary: #007bff;
  --professional-secondary: #6c757d;
  --professional-accent: #28a745;
  --professional-danger: #dc3545;
  --professional-info: #17a2b8;
  --professional-light: #f8f9fa;
  --professional-dark: #343a40;
  --professional-border: #ced4da;
}

.discount-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--professional-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.discount-section label {
  font-weight: bold;
  color: var(--professional-dark);
  white-space: nowrap;
}
.discount-section input[type="number"] {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid var(--professional-border);
  border-radius: 5px;
  font-size: 16px;
  text-align: right;
  color: var(--professional-dark);
  background-color: white;
}
.checkout-modal-content .payment-summary .summary-row.discount-row {
  color: var(--professional-danger);
  font-weight: bold;
}
.checkout-modal-content .payment-summary .summary-row.final-total-row {
  font-size: 18px;
  font-weight: bold;
  color: var(--professional-accent);
}

.checkout-modal-content {
  background-color: var(--professional-light);
  padding: 25px;
  border-radius: 10px;
  width: 95%;
  max-width: 500px;
  margin: 20px auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
}

.checkout-modal-content h3 {
  color: var(--professional-dark);
  margin-bottom: 20px;
  text-align: center;
  font-size: 24px;
  border-bottom: 2px solid var(--professional-border);
  padding-bottom: 10px;
}

.checkout-modal-content p {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--professional-dark);
}

.checkout-modal-content .payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.checkout-modal-content .payment-option {
  background: var(--professional-primary);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 12px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.checkout-modal-content .payment-option:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.checkout-modal-content .payment-summary {
  margin-top: 15px;
  padding: 15px;
  background: var(--professional-border);
  border-radius: 8px;
  display: none;
  font-size: 16px;
  color: var(--professional-dark);
}

.checkout-modal-content .payment-summary div {
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
}

.checkout-modal-content .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.checkout-modal-content .modal-actions button {
  padding: 12px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.checkout-modal-content .modal-actions button.btn-cash {
  background: var(--professional-accent);
  color: white;
}

.checkout-modal-content .modal-actions button.btn-cash:hover {
  background: #218838;
  transform: translateY(-2px);
}
.checkout-modal-content .modal-actions button.btn-transfer {
  background: var(--professional-primary);
  color: white;
}
.checkout-modal-content .modal-actions button.btn-transfer:hover {
  background: #0056b3;
  transform: translateY(-2px);
}
.checkout-modal-content .modal-actions button.btn-cancel {
  background: var(--professional-danger);
  color: white;
}
.checkout-modal-content .modal-actions button.btn-cancel:hover {
  background: #c82333;
  transform: translateY(-2px);
}

.manual-payment-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--professional-border);
}

.manual-payment-input label {
  font-weight: bold;
  color: var(--professional-dark);
  white-space: nowrap;
}

.manual-payment-input input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid var(--professional-border);
  border-radius: 5px;
  font-size: 16px;
  text-align: right;
  color: var(--professional-dark);
  background-color: white;
}

.cart-actions {
  display: flex;
  gap: 10px;
}

.cart-actions .btn-cash {
  background: var(--professional-accent);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-actions .btn-cash:hover {
  background: #218838;
  transform: translateY(-2px);
}

.cart-actions .btn-transfer {
  background: var(--professional-primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-actions .btn-transfer:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: var(--primary-color);
  z-index: 10000;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  padding: 20px;
  background: var(--secondary-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  height: calc(100% - 60px);
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 5px;
}

.sidebar-menu a {
  display: block;
  padding: 12px 15px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.sidebar-menu a:hover {
  background-color: #2c3e50;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
   z-index: 9999;
  display: none;
}

.sidebar-menu .submenu {
  list-style: none;
  padding-left: 20px;
  margin-top: 5px;
  display: none;
}

.sidebar-menu .submenu li {
  margin-bottom: 0;
}

.sidebar-menu .submenu a {
  padding: 8px 15px;
  font-size: 14px;
}

.sidebar-menu li.active > a + .submenu {
  display: block;
}
.sidebar-menu .submenu {
  pointer-events: auto;
}

.sidebar-menu li > a {
  pointer-events: auto;
}

.menu-button {
  border-radius: 50%;
  background: #2c3e50;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
  top: auto;
  left: auto;
  width: 40px;
  height: 40px;
  margin-right: 10px;
  flex-shrink: 0;
}

.notification {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background-color: #27ae60;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 150;
  display: flex;
  align-items: center;
  max-width: 250px;
  width: auto;
  animation: fadeIn 0.3s, fadeOut 0.5s 2.5s forwards;
}

.cart-modal {
  position: fixed;
  bottom: 90px;
  right: -350px;
  width: 350px;
  max-height: 500px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 10002;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: right 0.3s ease;
}


.cart-modal.open {
  right: 20px; 
}


@media (min-width: 768px) {
  .cart-modal {
    top: var(--total-header-height);
    position: fixed;
    right: -400px;
    width: 380px;
    height: calc(100% - var(--total-header-height));
    max-height: 100%;
    border-radius: 0;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
  }

  .cart-modal.open {
    display: flex;
    right: 0; 
    animation: none; 
  }

  .cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999; 
    display: none; 
  }


  #cartButton {
    display: none;
  }

 
body.cart-sidebar-open {
  padding-right: 380px; 
  overflow: hidden; 
}
}


@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cart-modal-header {
  padding: 15px;
  background: #2980b9;
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-modal-content {
  padding: 15px;
  overflow-y: auto;
  flex: 1 1 0;
  min-height: 0;
}
.cart-item {
  display: flex;
  flex-direction: column;
  padding: 12px;
  margin-bottom: 10px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.cart-item-info {
  margin-bottom: 8px;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-item-controls {
  display: flex;
  gap: 5px;
  align-items: center;
}

.cart-modal-footer {
  padding: 15px;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.cart-item-controls {
  display: flex;
  gap: 5px;
  margin-top: 5px;
  justify-content: flex-end;
}

.cart-item-controls button {
  background: #e74c3c; 
  color: white;
  border: none;
  border-radius: 4px;
  width: 25px;
  height: 25px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-controls button:first-child {
  background: #3498db;
}
.cart-item-controls button:nth-child(2) {
  background: #28a745;
}

.cart-total {
  font-weight: bold;
  width: 100%;
  text-align: left;
  margin-bottom: 1px;
}

#salesData th[onclick] {
  cursor: pointer;
  user-select: none;
}

#salesData th[onclick]:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  transition: background-color 0.5s ease, color 0.3s ease;
  font-family: Arial, sans-serif;
  scrollbar-gutter: stable both-edges;
  color: #333;
  overflow-x: hidden;
  background-size: 40px 40px;
  background-color: var(--background-color);
  color: var(--text-color);
}

.button-group {
  display: none;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(94, 94, 94, 0.9);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
  animation: fadeInUp 0.3s ease-out;
  flex-direction: row;
  gap: 10px;
}

.button-group .action-btn {
  margin: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.navbar {
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  white-space: nowrap;
  z-index: 999;
  padding: 8px 10px;
  gap: 8px;
}

   .save-btn {
     padding: 12px 24px;
     position: relative;
     overflow: hidden;
   }
   .save-btn:after {
     content: '';
     position: absolute;
     top: -10px;
     left: -10px;
     right: -10px;
     bottom: -10px;
   }


.navbar::-webkit-scrollbar {
  display: none;
}
.navbar button {
  background: #eaeeeb;
  border: none;
  padding: 10px 15px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-color: #27ae60;
  position: relative;
  overflow: hidden;
}

.navbar button:hover, .navbar button.active {
  background-color: #d43fd5;
  color: white;
}

.navbar .manage-category {
  background: #9b59b6;
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar .manage-category:hover {
  background: #27ae60;
}

.navbar button.active-category {
  background-color: #f25ef3 !important;
  color: white !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-navbar::-webkit-scrollbar {
  display: none;
}

/* Navbar two-column layout */
.navbar-filters-display {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  flex: 1 1 0;
  min-width: 0;
}

.navbar-filters-display::-webkit-scrollbar {
  display: none;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 8px;
}

/* Applied filter chips in navbar */
.applied-filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 16px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: default;
}

.applied-filter-category {
  background: #9b59b6;
  color: #fff;
  cursor: default;
}

.applied-filter-tag {
  background: #4CAF50;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.applied-filter-tag:hover {
  background: #388e3c;
}

.main-navbar button {
  background: #2c3e50;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin: 0 5px;
  flex: 0 0 auto;
  transition: all 0.1s;
}

.main-navbar button:hover,
.main-navbar button.active {
  background: #f25ef3;
}

.main-navbar .manage-category {
  background: #9b59b6;
}

.main-navbar .manage-category:hover {
  background: #8e44ad;
}

.menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  color: white;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  padding: 10px 15px;
  height: 60px;
}

/* ===== FILTER DROPDOWN ===== */
.filter-dropdown-wrapper {
  position: relative;
  flex-shrink: 0;
}

.filter-dropdown-panel {
  position: fixed;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  z-index: 1100;
  min-width: 260px;
  max-width: 92vw;
  padding: 14px;
  animation: fadeIn 0.18s ease-out;
}

.filter-section {
  margin-bottom: 10px;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #999;
  font-weight: 600;
  margin-bottom: 8px;
}

.filter-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn-group button {
  background: #f0f0f0;
  border: 1.5px solid transparent;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  color: #444;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.filter-btn-group button:hover {
  background: #e8d8f8;
  color: #7b2d8b;
}

.filter-btn-group button.active-category {
  background: #d43fd5;
  border-color: #d43fd5;
  color: #fff;
  font-weight: 600;
}

#filterDropdownBtn {
  position: relative;
}

.filter-active-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  background: #f39c12;
  border-radius: 50%;
  pointer-events: none;
}


.search-container {
  display: flex;
  align-items: center;
  flex-grow: 1;
  max-width: calc(100% - 100px);
  margin: 0 10px;
}

.search-container .search-icon {
  margin-right: 8px;
  font-size: 18px;
}

#searchInput {
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition: all 0.3s;
  width: 100%;
  padding: 8px 12px;
  margin: 0;
}

#searchInput:focus {
  outline: none;
  border-color: #5ef390;
  box-shadow: 0 0 5px rgba(113, 255, 201, 0.5);
}

.menu-title {
  color: white;
  font-weight: bold;
  margin-left: 50px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.theme-toggle.animating {
  animation: spin 0.5s ease-in-out, pulse 0.5s ease-in-out;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.sales-section {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card-bg);
  z-index: 1002;
  padding: 1px;
  display: none;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 20px;
  max-width: 95%;
  margin-top: 20px;
}

.sales-section.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

#salesTab {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1003;
  width: auto;
  padding: 10px 20px;
  background: var(--accent-color);
  border: none;
  color: white;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#salesData {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 0px;
  margin-top: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex-grow: 1;
  overflow-y: auto;
}

#salesData table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
#salesData th, #salesData td {
  padding: 6px;
  text-align: left;
  word-wrap: break-word;
  max-width: none;
  border: 1px solid var(--border-color);
}
#salesData th {
  background-color: var(--accent-color);
  color: white;
  padding: 8px;
  text-align: left;
  position: sticky;
  top: 0;
  border: 1px solid var(--border-color);
}
#salesData td {
  padding: 8px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  vertical-align: top;
  text-align: left;
}

#salesData tr {
  margin-bottom: 1px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 1px;
}

.sales-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.sales-item-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.sales-item-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
}

#salesData th:nth-child(1),
#salesData td:nth-child(1) {
  width: 25%;
  min-width: 80px;
}

#salesData th:nth-child(2),
#salesData td:nth-child(2) {
  width: 40%;
  min-width: 120px;
}
#salesData th:nth-child(3),
#salesData td:nth-child(3) {
  width: 25%;
  min-width: 80px;
  text-align: right;
}
#salesData th:nth-child(4),
#salesData td:nth-child(4) {
  border: 1px solid white;
  position:sticky;
  width: 10%;
  min-width: 60px;
  text-align: center;
}

.sales-item-code {
  font-size: 14px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 4px;
}

.sales-item-category {
  font-size: 12px;
  color: #7f8c8d;
  margin-bottom: 4px;
}

.sales-total {
  font-weight: bold;
  text-align: right;
  margin-top: 10px;
  padding: 10px;
  background-color: var(--card-bg);
  border-radius: 8px;
}

.sales-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.sales-item-row {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
}

#downloadExcelBtn:hover {
  background-color: #2ecc71;
}

.payment-input {
  margin: 15px 0;
}

.payment-input input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.tab-content {
  display: none;
  padding: 10px;
  height: calc(100vh - var(--total-header-height));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1px !important;
  animation: fadeIn 0.1s ease-in-out;
}

.tab-content.active {
  display: block;
  height: calc(100vh - 140px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 15px;
}

@media (max-width: 480px) {
  #salesData th, #salesData td {
    padding: 4px;
    font-size: 12px;
  }

  .sales-item-name {
    font-size: 11px;
  }

  .sales-item-category {
    font-size: 9px;
  }

  .sales-item-qty {
    font-size: 10px;
  }

  .btn-delete-sales {
    padding: 3px 6px;
    font-size: 9px;
  }
  .btn-delete-sales {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  #salesData th:nth-child(1),
  #salesData td:nth-child(1) {
    min-width: 60px;
  }
  #salesData th:nth-child(2),
  #salesData td:nth-child(2) {
    min-width: 100px;
  }
  #salesData th:nth-child(3),
  #salesData td:nth-child(3) {
    min-width: 60px;
  }
  #salesData th:nth-child(4),
  #salesData td:nth-child(4) {
    min-width: 50px;
  }
}

.product-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 8px;
  text-align: center;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  color: #333;
  overflow: hidden;
  border: 1px solid var(--border-color);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  justify-content: space-between;
}

.product-img-container {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden; 
  margin: 0;
}
img {
  image-orientation: from-image;
}

.product-img {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border-radius: 3px 3px 0 0;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  transition: transform 0.2s;

}

.product-img.no-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 3px 3px 0 0;
  color: #bbb;
  font-size: 2rem;
  cursor: pointer;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  width: 100%;
  text-align: center;
  padding-top: 5px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 2px 0;
}

.product-price {
  font-weight: bold;
  color: var(--accent-color);
  font-size: 15px;
  margin-top: 5px;
  margin-bottom: 2px;
}

.stock-info-container {
  margin-bottom: 5px;
  margin-top: 0; 
}

.stock-info {
  font-size: 12px;
  margin: 0; 
  display: flex;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.stock-info-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 5px;
}

.stock-info-label {
  font-weight: bold;
  margin-right: 5px;
}

.stock-info-value {
  font-weight: normal;
}


.quantity-controls {
  display: flex;
  align-items: center;
  margin: 5px 0;
  justify-content: center;
  margin-top: auto;
  padding-top: 1px;
}

.quantity-controls button {
  background-color: #4CAF50;
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 2px;
  cursor: pointer;
  font-weight: bold;
  font-size: 20px;
}
.quantity-controls button:hover {
  background-color: #45a049;
}

.quantity-controls button:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

.quantity-controls input {
  width: 50px;
  height: 30px;
  text-align: center;
  margin: 0 2px;
  padding: 3px;
  background-color: #d8d8d8;
  border: 0px solid #f5f5f5;
  font-size: 14px;
}

.action-btn {
  padding: 5px 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin: 0;
  flex: 1;
  text-align: center;
}
.btn-delete {
  background-color: #e74c3c;
}

.btn-delete:hover {
  background-color: #c0392b;
}

.btn-soldout {
  background-color: #dd6700;
}

.btn-edit {
  background-color: #3498db;
}

.btn-edit:hover {
  background-color: #2980b9;
}

form.add-form, form.edit-form {
  background: white;
  padding: 15px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #333;
}

form.add-form input[type="text"],
form.add-form input[type="number"],
form.add-form input[type="file"],
form.edit-form input[type="text"],
form.edit-form input[type="number"],
form.edit-form input[type="file"] {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  outline: none;
}

form.add-form input:focus,
form.edit-form input:focus {
  border-color: #f25ef3;
  box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2);
}
.add-form {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

form.add-form button,
form.edit-form button {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 16px;
  z-index: 10;
  position: relative;
}

form.add-form button:disabled,
form.edit-form button:disabled {
  background-color: #95a5a6 !important;
  cursor: not-allowed;
}

form.add-form button:hover:not(:disabled),
form.edit-form button:hover:not(:disabled) {
  background-color: #2ecc71;
}
#editModal .modal-content h3 {
  position: sticky;
  top: 0; 
  background-color: #fff;
  z-index: 10;
  padding-top: 0;
  margin-top: 0;
  padding-bottom: 10px; 
  border-bottom: 2px solid #eee; 
}

img.preview {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin: 0 auto;
  display: none;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 1001;
  justify-content: center;
  align-items: center;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 1001;
  max-height: 90vh;
  box-sizing: border-box;
}
.modal-scrollable-content {
  flex-grow: 1; 
  overflow-y: auto; 
  padding-right: 10px; 
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.modal-content input[type="text"],
.modal-content input[type="number"],
.modal-content input[type="file"] {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s;
  background-color: white;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="number"]:focus {
  border-color: #f25ef3;
  box-shadow: 0 0 0 3px rgba(242, 94, 243, 0.2);
  outline: none;
}

.modal-content label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.modal-content .preview {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid #ddd;
  margin: 10px auto;
  display: block;
  background-color: #f9f9f9;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.modal-content input[type="file"] {
  padding: 8px;
}

.modal-content input[type="file"]::file-selector-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
  transition: background-color 0.3s;
}

.modal-content input[type="file"]::file-selector-button:hover {
  background-color: #2980b9;
}

#categoryModal button[type="submit"] {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
  transition: all 0.1s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

#categoryModal button[type="submit"]:hover {
  background-color: #2ecc71;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#categoryModal button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

#newCategoryName {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 10px;
  transition: all 0.3s;
}

#newCategoryName:focus {
  border-color: #f25ef3;
  box-shadow: 0 0 0 3px rgba(242, 94, 243, 0.2);
  outline: none;
}

#categoryModal h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

    form.edit-form button[type="submit"] {
      position: relative; 
      z-index: 10; 
      background-color: #27ae60;
      color: white;
      border: none;
      padding: 12px;
      border-radius: 8px;
      font-weight: bold;
      cursor: pointer;
      transition: background-color 0.3s;
      font-size: 16px;
    }

    form.edit-form button[type="submit"] span { 
      position: relative; 
      z-index: 1; 
    }


#categoryModal button[type="submit"] .icon {
  font-size: 20px;
  font-weight: bold;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 10%;
  width: 30px;
  height: 30px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100; 
}
.close-modal:hover {
  background: #c0392b;
}

.category-modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.category-list {
  margin: 15px 0;
  max-height: 400px;
  overflow-y: auto;
}
.category-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.category-item button {
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
}

.category-item button:hover {
  background: #c0392b;
}

#cartButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #e960bb;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  cursor: pointer;
  z-index: 100;
  border: none;
  transition: all 0.3s;
}

#cartButton:hover {
  transform: scale(1.1);
  background-color: #f151e4;
}

#cartButton .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

.empty-state {
  text-align: center;
  padding: 20px;
  color: #7f8c8d;
}

.btn-delete-sales {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-delete-sales:hover {
  background-color: #c0392b;
}

.storage-warning {
  background-color: #f39c12;
  color: white;
  padding: 8px;
  text-align: center;
  font-size: 14px;
  display: none;
}

.backup-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.backup-option {
  padding: 15px;
  border-radius: 8px;
  background: #f5f5f5;
  cursor: pointer;
  transition: background-color 0.3s;
}

.backup-option:hover {
  background: #e0e0e0;
}

.backup-option h4 {
  margin-bottom: 5px;
  color: #2980b9;
}

.backup-option p {
  font-size: 14px;
  color: #666;
}


.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4CAF50;
  color: white;
  padding: 15px 20px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  display: none;
  animation: fadeInUp 0.3s ease-out, fadeOutDown 0.5s ease 2.5s forwards;
}

.welcome-message {
  padding: 15px 0;
  line-height: 1.6;
}

.welcome-message ul {
  margin: 10px 0 10px 20px;
}

.welcome-close-btn {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 15px;
  width: 100%;
  transition: background-color 0.3s;
}

.welcome-close-btn:hover {
  background-color: #2ecc71;
}

.image-input-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-source-buttons {
  display: flex;
  gap: 10px;
}

.image-source-btn {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: #3498db;
  color: white;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  transition: background-color 0.3s;
}




.preview {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid #ddd;
  margin: 0 auto;
  background-color: #f9f9f9;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes liquid {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.navbar button.active {
  background-color: #f25ef3 !important;
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar button.manage-category {
  background-color: var(--accent-color) !important;
}

.navbar button.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0);
  border-radius: 50%;
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.product-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  background-color: #e74c3c;
  color: white;
  border-radius: 10%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  z-index: 1;
}

.product-code-badge {
  position: absolute;
  top: 1px;
  left: 1px;
  background-color: white;
  color: #333;
  border: 1px solid #2773ff;
  border-radius: 10%;
  padding: 5px 10px;
  font-size: 15px;
  font-weight: bold;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
}

.product-card {
  min-height: 240px;
  position: relative;
  display: flex;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 15px 0;
}

.payment-option {
  background: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.payment-option:hover {
  background: #2980b9;
}

.payment-summary {
  margin-top: 15px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 5px;
  display: none;
}

.payment-summary div {
  margin: 5px 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #FFD700;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  z-index: 2;
}

input:checked + .slider {
  background-color: #87CEFA;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.theme-toggle-container {
  margin-top: auto;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.theme-label {
  color: white;
  margin-top: 10px;
  font-size: 14px;
}

.emoji {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
  z-index: 1;
}

.emoji.sun {
  left: 8px;
  color: #333;
}

.emoji.moon {
  right: 8px;
  color: #333;
}

input:checked + .slider .emoji.sun {
  color: #fff;
}

input:checked + .slider .emoji.moon {
  color: #fff;
}

.theme-label {
  color: var(--text-color);
  margin-top: 8px;
  font-size: 12px;
  font-weight: bold;
}

.empty-state {
  text-align: center;
  padding: 20px;
  color: #7f8c8d;
  width: 100%;
}

.menu-controls {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.control-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
  width: 40px;
  height: 40px;
  font-size: 18px
}

.control-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

#fullscreenButton.fullscreen-active {
  background: rgba(255, 255, 255, 0.3);
}

.dashboard-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1px;
}

.dashboard-tab {
  padding: 10px 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #7f8c8d;
  position: relative;
}

.dashboard-tab.active {
  color: #2980b9;
  font-weight: bold;
}

.dashboard-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2980b9;
}

.dashboard-tab-content.active {
  display: block;
}
.dashboard-tab-content {
  flex: 1;
  overflow-y: auto;
  max-height: calc(85vh - 150px);
}

.top-products-list {
  flex-grow: 1;
  overflow-y: auto;
}

.top-product-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.top-product-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-product-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
}

.chart-options {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.chart-options select {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.chart-options button {
  padding: 8px 15px;
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}



#downloadExcelBtn {
  background-color: var(--professional-accent);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

#downloadExcelBtn:hover {
  background-color: #218838;
}

#downloadExcelBtn:active {
  background-color: #1e7e34;
}

@media (max-width: 768px) {
  .checkout-modal-content {
    width: 90%;
    padding: 20px;
  }

  .checkout-modal-content h3 {
    font-size: 20px;
  }

  .checkout-modal-content .payment-option {
    padding: 10px;
    font-size: 14px;
  }

  .manual-payment-input {
    flex-direction: column;
    align-items: stretch;
  }

  .manual-payment-input label {
    margin-bottom: 5px;
  }
}

@media (max-width: 480px) {
  .checkout-modal-content {
    width: 95%;
    padding: 15px;
  }

  .checkout-modal-content h3 {
    font-size: 18px;
  }

  .checkout-modal-content .payment-option {
    padding: 8px;
    font-size: 12px;
  }
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
  background-color: #f9f9f9;
  margin-bottom: 5px;
  border-radius: 5px;
}

.category-item:last-child {
  border-bottom: none;
}

.category-item span {
  flex-grow: 1;
  font-size: 16px;
  color: #333;
  font-weight: bold;
}

.category-item .category-actions {
  display: flex;
  gap: 8px;
}

.category-item .category-actions button {
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.category-item .category-actions .btn-edit-category {
  background: #3498db;
  color: white;
}

.category-item .category-actions .btn-edit-category:hover {
  background: #2980b9;
}

.category-item .category-actions .btn-delete-category {
  background: #e74c3c;
  color: white;
}

.category-item .category-actions .btn-delete-category:hover {
  background: #c0392b;
}

.category-item input[type="text"] {
  flex-grow: 1;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin-right: 8px;
}

.category-item .btn-save-category {
  background: #27ae60;
  color: white;
}

.category-item .btn-save-category:hover {
  background: #2ecc71;
}

.category-item .btn-cancel-edit {
  background: #95a5a6;
  color: white;
}

.category-item .btn-cancel-edit:hover {
  background: #7f8c8d;
}

.sales-actions-bottom {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  padding-bottom: 15px;
}

#deleteAllSalesBtn {
  background-color: var(--professional-danger);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

#deleteAllSalesBtn:hover {
  background-color: #c82333;
}

#deleteAllSalesBtn:active {
  background-color: #bd2130;
}

.quick-count-section {
  width: 100%;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  text-align: center;
}

.quick-count-input {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  text-align: right;
}

.quick-count-input:focus {
  outline: none;
  border-color: var(--professional-info);
  box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.2);
}

.quick-count-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 5px;
}

.quick-count-buttons button {
  background-color: var(--professional-info);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.quick-count-buttons button:hover {
  background-color: #138496;
}

.quick-count-result {
  font-weight: bold;
  font-size: 16px;
  color: var(--professional-dark);
}

#paymentMethodModal .modal-content {
  max-width: 500px;
}

#paymentMethodModal h3 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--professional-dark);
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--professional-border);
}

#paymentMethodModal form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#paymentMethodModal input[type="text"] {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid var(--professional-border);
  border-radius: 5px;
  font-size: 16px;
}

#paymentMethodModal button[type="submit"] {
  background-color: var(--professional-accent);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#paymentMethodModal button[type="submit"]:hover {
  background-color: #218838;
}

.payment-method-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--professional-border);
  border-radius: 5px;
}

.payment-method-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
  background-color: white;
}

.payment-method-item:last-child {
  border-bottom: none;
}

.payment-method-item span {
  font-size: 16px;
  color: var(--professional-dark);
  font-weight: bold;
}

.payment-method-actions {
  display: flex;
  gap: 8px;
}

.payment-method-actions button {
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.payment-method-actions .btn-edit-method {
  background: var(--professional-primary);
  color: white;
}

.payment-method-actions .btn-edit-method:hover {
  background: #0056b3;
}

.payment-method-actions .btn-delete-method {
  background: var(--professional-danger);
  color: white;
}

.payment-method-actions .btn-delete-method:hover {
  background: #c82333;
}

.payment-method-item input[type="text"] {
  flex-grow: 1;
  padding: 6px 10px;
  border: 1px solid var(--professional-border);
  border-radius: 4px;
  font-size: 16px;
  margin-right: 8px;
}

.payment-method-item .btn-save-method {
  background: var(--professional-accent);
  color: white;
}

.payment-method-item .btn-save-method:hover {
  background: #218838;
}

.payment-method-item .btn-cancel-edit {
  background: var(--professional-secondary);
  color: white;
}

.payment-method-item .btn-cancel-edit:hover {
  background: #5a6268;
}

.btn-manage-payment {
  background-color: var(--professional-info);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 15px;
  width: 100%;
  transition: background-color 0.3s ease;
}

.btn-manage-payment:hover {
  background-color: #138496;
}

.preorder-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 15px;
}

.preorder-tab {
  padding: 10px 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #7f8c8d;
  position: relative;
}

.preorder-tab.active {
  color: var(--professional-primary);
  font-weight: bold;
}

.preorder-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--professional-primary);
}

.preorder-tab-content {
  display: none;
  flex-grow: 1;
  overflow-y: auto;
  padding-top: 10px;
}

#addPreOrderForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#addPreOrderForm label {
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 2px;
}

#addPreOrderForm input[type="text"],
#addPreOrderForm select,
#addPreOrderForm textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 15px;
}

#addPreOrderForm input[type="number"]
{
  width: 20%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 15px;
}

#addPreOrderForm button[type="submit"] {
  background-color: var(--professional-accent);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

#addPreOrderForm button[type="submit"]:hover {
  background-color: #218838;
}

.delivery-method-options {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 5px;
}

.delivery-method-options input[type="radio"] {
  width: auto;
  margin-right: 5px;
}

.delivery-method-options label {
  margin: 0;
  font-weight: normal;
}

.preorder-card {
  background-color: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.preorder-card.completed {
  background-color: #e6ffe6;
  border-color: var(--success-color);
}

.preorder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.preorder-header h4 {
  margin: 0;
  color: var(--professional-dark);
}

.preorder-status {
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 12px;
  color: white;
}

.preorder-status.pending {
  background-color: var(--warning-color);
}

.preorder-status.completed {
  background-color: var(--success-color);
}

.preorder-details p {
  margin-bottom: 5px;
  font-size: 14px;
  color: #555;
}

.preorder-details ul {
  list-style: inside;
  padding-left: 0;
  margin-top: 5px;
  margin-bottom: 10px;
}

.preorder-details ul li {
  font-size: 14px;
  color: #666;
}

.preorder-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: flex-end;
}

.preorder-actions button {
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.preorder-actions .btn-complete-po {
  background-color: var(--success-color);
  color: white;
}

.preorder-actions .btn-complete-po:hover {
  background-color: #218838;
}

.preorder-actions .btn-delete-po {
  background-color: var(--professional-danger);
  color: white;
}

.preorder-actions .btn-delete-po:hover {
  background-color: #c82333;
}

.preorder-actions .btn-edit-po {
  background-color: #3498db;
  color: white;
}

.preorder-actions .btn-edit-po:hover {
  background-color: #217dbb;
}

.btn-cancel-edit-preorder {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
  width: 100%;
}

.btn-cancel-edit-preorder:hover {
  background-color: #545b62;
}

.choices {
  position: relative;
  margin-bottom: 10px;
  font-size: 16px;
}

.choices__inner {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  background-color: #fff;
  font-size: 15px;
  min-height: 44px;
}

.choices__list--multiple .choices__item {
  background-color: var(--professional-primary);
  color: white;
  border-radius: 20px;
  padding: 5px 10px;
  margin-right: 5px;
  margin-bottom: 5px;
  font-size: 13px;
}

.choices__list--multiple .choices__item.is-highlighted {
  background-color: #0056b3;
}

.choices__list--multiple .choices__item.is-deletable .choices__button {
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  opacity: 0.7;
}

.choices__list--multiple .choices__item.is-deletable .choices__button:hover {
  opacity: 1;
}

.choices__list--dropdown, .choices__list[aria-expanded] {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 100;
}

.choices__list--dropdown .choices__item, .choices__list[aria-expanded] .choices__item {
  padding: 10px;
  font-size: 15px;
  color: #333;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted, .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background-color: #f0f0f0;
}

.selected-products-display {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  background-color: #f9f9f9;
  margin-top: 5px;
  max-height: 150px;
  overflow-y: auto;
}

.selected-product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed #eee;
  flex-wrap: wrap;
}

.selected-product-item:last-child {
  border-bottom: none;
}

.selected-product-item span {
  font-size: 15px;
  color: #333;
  white-space: normal;
  word-break: break-word;
  flex-grow: 1;

}
.selected-product-item input[type="number"].po-product-qty {
  padding: 3px;
  text-align: center;
  font-size: 20px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin: 0 5px;
  flex-shrink: 0;
  width: 20%;
  height: 50px;

}

.selected-product-item input[type="number"] {
  width: 60px;
  padding: 3px;
  text-align: center;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.selected-product-item button {
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 5px;
}

.selected-product-item button:hover {
  background: #c0392b;
}

#checkoutConfirmationModal .modal-content {
  max-width: 450px;
  padding: 25px;
}

.checkout-confirmation-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--professional-border);
}

.checkout-confirmation-header h4 {
  color: var(--professional-dark);
  font-size: 22px;
  margin-bottom: 10px;
}

.checkout-confirmation-header p {
  font-size: 16px;
  color: var(--professional-dark);
}

.checkout-kembalian-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  padding: 4px 0;
  color: var(--professional-dark);
}

.checkout-kembalian-row.kembalian-lebih {
  font-weight: bold;
  color: #2e7d32;
}

.checkout-kembalian-row.kembalian-kurang {
  font-weight: bold;
}

.payment-method-options {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.payment-method-options::-webkit-scrollbar {
  height: 5px;
}
.payment-method-options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.payment-method-options::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.btn-payment-option {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

.btn-payment-option.btn-cash {
  background-color: var(--professional-accent);
  color: white;
}



.btn-payment-option.btn-transfer {
  background-color: var(--professional-primary);
  color: white;
}



.btn-cancel-confirmation {
  background-color: var(--professional-secondary);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-cancel-confirmation:hover {
  background-color: #5a6268;
}

.cart-modal-footer .btn-checkout-cart {
  background-color: #e960bb;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  padding: 10px 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin-top: 10px;
}

.cart-modal-footer .btn-checkout-cart:hover {
  background: #f151e4;
  transform: translateY(-2px);
}

.btn-reset-cart {
  background-color: #e53935 !important;
  color: white !important;
  border-color: #e53935 !important;
}

.btn-reset-cart:hover {
  background-color: #b71c1c !important;
  border-color: #b71c1c !important;
}

.btn-payment-option.btn-transfer-dynamic {
          padding: 16px 20px;
            border-radius: 10px;
            border: 2px solid #e0e0e0;
            background-color: #f8f8f8;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            color: #333;
            text-align: center;
            transition: all 0.3s ease;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 200px;
        }


.btn-payment-option.btn-transfer-dynamic.active {
  background-color: var(--professional-accent);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
  color: white;
}

.btn-confirm-payment {
  background-color: var(--professional-success);
  color: rgb(255, 255, 255);
  background-color: #28a745;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease, transform 0.2s ease;
}




.date-filter-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f0f0f0;
  border-radius: 8px;
  flex-wrap: wrap;
}

.date-filter-container label {
  font-weight: bold;
  color: var(--professional-dark);
  white-space: nowrap;
}

.date-filter-container input[type="date"] {
  padding: 8px;
  border: 1px solid var(--professional-border);
  border-radius: 5px;
  font-size: 14px;
  flex-grow: 1;
  min-width: 120px;
}

.date-filter-container button {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.date-filter-container button:first-of-type { 
  background-color: var(--professional-primary);
  color: white;
}

.date-filter-container button:first-of-type:hover {
  background-color: #0056b3;
}

.date-filter-container button:last-of-type {
  background-color: var(--professional-secondary);
  color: white;
}

.date-filter-container button:last-of-type:hover {
  background-color: #5a6268;
}


@media (max-width: 480px) {
  .date-filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  .date-filter-container label {
    margin-bottom: 5px;
  }
  .date-filter-container input[type="date"],
  .date-filter-container button {
    width: 100%;
  }
}

.artist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
  background-color: #f9f9f9;
  margin-bottom: 5px;
  border-radius: 5px;
}

.artist-item:last-child {
  border-bottom: none;
}

.artist-item span {
  flex-grow: 1;
  font-size: 16px;
  color: #333;
  font-weight: bold;
}

.artist-actions {
  display: flex;
  gap: 8px;
}

.artist-actions button {
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.artist-actions .btn-edit-artist {
  background: #3498db;
  color: white;
}

.artist-actions .btn-edit-artist:hover {
  background: #2980b9;
}

.artist-actions .btn-delete-artist {
  background: #e74c3c;
  color: white;
}

.artist-actions .btn-delete-artist:hover {
  background: #c0392b;
}

.artist-item input[type="text"] {
  flex-grow: 1;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin-right: 8px;
}

.artist-item .btn-save-artist {
  background: #27ae60;
  color: white;
}

.artist-item .btn-save-artist:hover {
  background: #2ecc71;
}

.artist-item .btn-cancel-edit {
  background: #95a5a6;
  color: white;
}

.artist-item .btn-cancel-edit:hover {
  background: #7f8c8d;
}
.artist-filter-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  flex-wrap: wrap;
}

.artist-filter-container label {
  font-weight: bold;
  color: var(--professional-dark);
  white-space: nowrap;
  margin-bottom: 0;
}

.artist-filter-container select,
.artist-filter-container input[type="date"] {
  padding: 8px 12px;
  border: 1px solid var(--professional-border);
  border-radius: 5px;
  font-size: 14px;
  background-color: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.artist-ranking-list {
  margin-bottom: 30px;
}

.artist-rank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.artist-rank-info {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.artist-rank-number {
  font-size: 24px;
  font-weight: bold;
  margin-right: 15px;
  min-width: 40px;
}

.artist-rank-details {
  flex-grow: 1;
}

.artist-rank-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.artist-rank-stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.stat-item {
  font-size: 14px;
  color: #666;
}

.artist-rank-badge {
  font-size: 24px;
  margin-left: 15px;
}




.artist-badge {
  display: inline-block;
  padding: 4px 8px;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.artist-sales-table-container {
  overflow-x: auto;
  margin-top: 15px;
}

.artist-sales-table {
  width: 100%;
  border-collapse: collapse;
}

.artist-sales-table th,
.artist-sales-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.artist-sales-table th {
  background: #f5f5f5;
  font-weight: bold;
}

.artist-sales-table td {
  padding: 12px;
  border-bottom: 1px solid #e9ecef;
}

.artist-sales-table tr:hover {
  background-color: #f8f9fa;
}

@media (max-width: 768px) {
    #dashboardModal .modal-content {
    width: 95%;
    max-height: 90vh;
    margin: 10px;
  }
  
  .artist-filter-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .artist-filter-container select,
  .artist-filter-container input,
  .artist-filter-container button {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  }
  .artist-rank-stats {
    flex-direction: column;
    gap: 5px;
  }
  
  .artist-rank-info {
    gap: 10px;
  }
  
  .artist-rank-number {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .artist-rank-name {
    font-size: 16px;
  }
  
  .stat-item {
    font-size: 12px;
  }
}
#dashboardModal .modal-content {
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#artistSalesTab {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#artistSalesData {
  flex: 1;
  overflow-y: auto;
  padding: 0 5px;
}
.artist-ranking-list,
.artist-sales-details {
  max-width: 100%;
  overflow-x: hidden;
}

.btn-add-artist {
  background-color: var(--professional-accent);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-artist:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-add-artist:active {
  transform: translateY(0);
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

.btn-add-artist .icon {
  font-size: 18px;
  font-weight: bold;
}

#newArtistName {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 10px;
  transition: all 0.3s;
}

#newArtistName:focus {
  border-color: #f25ef3;
  box-shadow: 0 0 0 3px rgba(242, 94, 243, 0.2);
  outline: none;
}

#downloadArtistExcelBtn {
  background-color: var(--professional-info);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

#downloadArtistExcelBtn:hover {
  background-color: #138496;
}

#downloadArtistExcelBtn:active {
  background-color: #117a8b;
}


#__all__-category {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--professional-border);
  border-radius: 5px;
  font-size: 15px;
  background-color: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  font-weight: 600;
  color: var(--professional-dark);
  cursor: pointer;
}

#__all__-category:focus {
  border-color: var(--professional-primary);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
  outline: none;
}

select[name="artist"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--professional-border);
  border-radius: 5px;
  font-size: 15px;
  background-color: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

select[name="artist"]:focus {
  border-color: var(--professional-primary);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
  outline: none;
}

select[name="artist"] option {
  padding: 8px;
  font-size: 14px;
}


#editModal select[name="artist"] {
  margin-bottom: 15px;
}


label[for="artistSelect-edit"],
form.add-form label:has(+ select[name="artist"]) {
  font-weight: bold;
  color: var(--professional-dark);
  margin-top: 15px;
  margin-bottom: 5px;
  display: block;
}


.image-input-container + label + select[name="artist"] {
  margin-top: 15px;
}


@media (max-width: 480px) {
  select[name="artist"] {
    padding: 8px;
    font-size: 14px;
  }
  
  #downloadArtistExcelBtn {
    padding: 8px 12px;
    font-size: 13px;
  }
}


.product-artist {
  margin: 4px 0;
  display: inline-block;
}


.sales-item-artist {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}


.sales-item-cell {
  vertical-align: top;
}

#artistSalesFilter {
  padding: 8px 12px;
  border: 1px solid var(--professional-border);
  border-radius: 5px;
  font-size: 14px;
  background-color: white;
  min-width: 150px;
}

#artistSalesFilter:focus {
  border-color: var(--professional-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}


@media (max-width: 768px) {
  .artist-filter-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .artist-filter-container label {
    margin-bottom: 5px;
  }
  
  .artist-filter-container select,
  .artist-filter-container input[type="date"],
  .artist-filter-container button {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .artist-filter-container {
    padding: 10px;
  }
  
  .artist-filter-container select,
  .artist-filter-container input[type="date"] {
    padding: 10px;
    font-size: 16px; 
  }
  
  .artist-filter-container button {
    padding: 10px 15px;
    font-size: 16px;
  }
}


#artistModal .modal-content {
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.artist-list {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
}

.artist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  background: white;
}

.artist-item:last-child {
  border-bottom: none;
}

.artist-actions {
  display: flex;
  gap: 8px;
}

.btn-edit-artist, .btn-delete-artist, .btn-save-artist, .btn-cancel-edit {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.btn-edit-artist {
  background: #3498db;
  color: white;
}

.btn-delete-artist {
  background: #e74c3c;
  color: white;
}

.btn-save-artist {
  background: #27ae60;
  color: white;
}

.btn-cancel-edit {
  background: #95a5a6;
  color: white;
}

#editArtistInput {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 200px;
}


.promo-modal-content {
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.promo-info {
  background: #e8f4fd;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #2980b9;
}

.promo-info p {
  margin: 5px 0;
}

.promo-category-selection {
  margin-bottom: 15px;
}

.promo-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 15px;
}

.promo-category-checkbox {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f0f0f0;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

.promo-category-checkbox input {
  margin: 0;
  cursor: pointer;
}

.promo-input-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.promo-input-group input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.btn-add-promo {
  background: #27ae60;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
}

.promo-rule-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #eee;
}

.promo-rule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.promo-rule-header h4 {
  margin: 0;
  color: #2c3e50;
}

.btn-delete-rule {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.promo-subrules-container {
  margin-bottom: 12px;
}

.promo-subrule-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.promo-qty {
  font-weight: bold;
  color: #2980b9;
}

.promo-price {
  font-weight: bold;
  color: #27ae60;
}

.btn-remove-subrule {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 16px;
  margin-left: auto;
}

.promo-add-subrule {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.promo-add-subrule input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.promo-add-subrule button {
  background: #3498db;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}


.original-price-cell {
  color: #999;
  text-decoration: line-through;
}

.discounted-price-cell.has-discount {
  color: #e74c3c;
  font-weight: bold;
}

.strikethrough {
  text-decoration: line-through;
  color: #999;
  font-size: 12px;
}

.sales-summary {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}



.summary-row.discount {
  color: #e74c3c;
}

.summary-row.total {
  font-weight: bold;
  font-size: 16px;
  border-top: 1px solid #ddd;
  margin-top: 5px;
  padding-top: 8px;
}

.revenue-display .strikethrough {
  font-size: 11px;
}

.revenue-amount {
  color: #27ae60;
}

.discount-info {
  color: #e74c3c;
  font-size: 11px;
}




.cart-total-discount {
    font-size: 13px;
    color: #e74c3c;
    text-align: left;
}

.cart-total-final {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
    text-align: left;
    margin-top: 5px;
}

.cart-total-rounding {
    font-size: 11px;
    color: #f39c12;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #eee;
    text-align: left;
}

.rounding-note {
    font-size: 10px;
    color: #999;
    margin-left: 5px;
}


.cart-item.has-promo {
    background-color: #fff8e7;
    border-left: 3px solid #f39c12;
}

.cart-item-price-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.original-price-cart {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
}

.price-arrow {
    color: #999;
    font-size: 12px;
}

.promo-price {
    color: #e74c3c;
    font-weight: bold;
}

.original-total-cart.strikethrough {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
}

.total-arrow {
    color: #999;
    font-size: 12px;
}

.final-total-cart {
    color: #27ae60;
    font-weight: bold;
}


.rounded-price-cell {
    text-align: center;
    background-color: #fef9e7;
}

.rounded-price {
    color: #e67e22;
    font-weight: bold;
}

.rounding-diff {
    display: block;
    font-size: 10px;
    color: #f39c12;
}

.summary-row.total-after-promo {
    color: #2980b9;
}

.summary-row.total-rounded {
    font-weight: bold;
    font-size: 15px;
    color: #27ae60;
    border-top: 1px solid #ddd;
    margin-top: 5px;
    padding-top: 8px;
}

.summary-row.rounding {
    background-color: #fef9e7;
    border-left: 3px solid #f39c12;
    margin-top: 5px;
    padding: 6px 0 6px 8px;
}

.rounding-amount {
    color: #f39c12;
    font-weight: bold;
}


.sales-item-discount-info {
  font-size: 11px;
  color: #e74c3c;
  background: #fee;
  padding: 4px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 8px;
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .sales-item-discount-info {
    font-size: 10px;
    padding: 3px 6px;
  }
}

.discount-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.total-details {
    text-align: right;
}

.qty-badge {
    display: inline-block;
    background: #3498db;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 8px;
}

.original-total.strikethrough {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
    margin-right: 8px;
}

.final-total {
    color: #27ae60;
    font-size: 14px;
}

.rounding-info {
    display: block;
    font-size: 10px;
    color: #f39c12;
    margin-top: 2px;
}




.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.summary-row.discount {
    color: #e74c3c;
}

.summary-row.total {
    font-weight: bold;
    font-size: 15px;
    border-top: 1px solid #ddd;
    margin-top: 5px;
    padding-top: 8px;
}

.summary-row.savings {
    color: #27ae60;
    font-weight: bold;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
}

.summary-row.cash {
    color: #27ae60;
}

.summary-row.transfer {
    color: #2980b9;
}

.original-amount {
    color: #999;
    text-decoration: line-through;
}

.discount-amount {
    color: #e74c3c;
}

.total-amount {
    color: #27ae60;
    font-weight: bold;
    font-size: 16px;
}


.sales-actions-bottom {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px 0;
    flex-wrap: wrap;
}

.btn-download {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-download:hover {
    background-color: #219a52;
    transform: translateY(-2px);
}

.btn-delete-all {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-delete-all:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}


.sales-table-wrapper {
    overflow-x: auto;
    margin-top: 10px;
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sales-table th,
.sales-table td {
    padding: 10px 8px;
    text-align: left;
    border: 1px solid #ddd;
    vertical-align: top;
}

.sales-table th {
    background-color: #34495e;
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.sales-table tr:hover {
    background-color: #f5f5f5;
}


@media (max-width: 768px) {
    .sales-table {
        font-size: 11px;
    }
    
    .sales-table th,
    .sales-table td {
        padding: 6px 4px;
    }
    
    
    .sales-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-download,
    .btn-delete-all {
        padding: 8px 16px;
        font-size: 12px;
    }
}


@keyframes promoPulse {
    0% { border-left-color: #f39c12; }
    50% { border-left-color: #f1c40f; }
    100% { border-left-color: #f39c12; }
}

.cart-item.has-promo {
    animation: promoPulse 2s ease-in-out;
}



.bundle-info {
    font-size: 11px;
    color: #e67e22;
    background: #fff3e0;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 5px 0;
    display: inline-block;
}

.bundle-price-per-item {
    font-size: 10px;
    color: #f39c12;
}

.cart-savings {
    font-size: 14px;
    color: #27ae60;
    text-align: right;
    margin-top: 5px;
    padding: 5px 10px;
    background: #e8f8f5;
    border-radius: 8px;
}


.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item-info strong {
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.cart-item-code {
    font-size: 11px;
    color: #999;
    margin-left: 5px;
}

.cart-qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.cart-btn-minus, .cart-btn-plus, .cart-btn-delete {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn-minus {
    background: #e74c3c;
    color: white;
}

.cart-btn-plus {
    background: #27ae60;
    color: white;
}

.cart-btn-delete {
    background: #95a5a6;
    color: white;
}

.cart-btn-minus:hover, .cart-btn-plus:hover, .cart-btn-delete:hover {
    opacity: 0.8;
    transform: scale(1.02);
}


.price-breakdown {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.promo-raw-price {
    color: #e67e22;
    font-size: 12px;
}

.rounded {
    font-weight: bold;
    color: #e74c3c;
}

.rounding-badge {
    background: #f39c12;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

.rounding-info-cart {
    font-size: 10px;
    color: #f39c12;
    margin-top: 4px;
    font-style: italic;
}

.cart-rounding-saved {
    font-size: 12px;
    color: #f39c12;
    text-align: right;
    margin-top: 5px;
    padding: 3px 8px;
    background: #fff8e7;
    border-radius: 6px;
}


.promo-raw-price-cell {
  text-align: center;
  background-color: #fff3e0;
}

.promo-raw-price {
  color: #e67e22;
  font-weight: bold;
}

.rounded-price-cell {
  text-align: center;
  background-color: #e8f8f5;
}

.rounded-price {
  color: #27ae60;
  font-weight: bold;
}

.rounding-cell {
  text-align: center;
  background-color: #fef9e7;
}

.rounding-value {
  color: #f39c12;
  font-weight: bold;
}

.rounding-per-item {
  display: block;
  font-size: 10px;
  color: #f39c12;
}

.no-rounding {
  color: #ccc;
}

.sales-item-rounding-info {
  font-size: 10px;
  color: #f39c12;
  margin-top: 2px;
  font-style: italic;
}

.summary-row.total-after-promo {
  color: #2980b9;
}

.summary-row.total-rounded {
  font-weight: bold;
  font-size: 15px;
  color: #27ae60;
  border-top: 1px solid #ddd;
  margin-top: 5px;
  padding-top: 8px;
}

.summary-row.rounding-saved {
  background-color: #fef9e7;
  border-left: 3px solid #f39c12;
  margin-top: 5px;
  padding: 6px 0 6px 8px;
}

.rounding-saved-amount {
  color: #f39c12;
  font-weight: bold;
}

.summary-row.total-discount {
  border-top: 1px dashed #ddd;
  margin-top: 5px;
  padding-top: 8px;
  color: #e74c3c;
  font-weight: bold;
}

.summary-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex: 1;
  min-width: 200px;
}

.summary-card h4 {
  margin-bottom: 12px;
  color: #2c3e50;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}

.sales-summary {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .sales-summary {
    flex-direction: column;
    gap: 10px;
  }
  
  .summary-card {
    min-width: auto;
  }
}

.summary-row.note {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
    font-size: 11px;
}

.payment-note {
    color: #888;
    font-style: italic;
}


.product-artist.no-artist {
  background-color: #f8d7da !important;
  color: #721c24 !important;
  border-radius: 20px !important;
  display: inline-block !important;
  padding: 4px 12px !important;
  font-size: 13px !important;
  font-weight: bold !important;
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}

.tanpa-artist-rank {
  background: linear-gradient(135deg, #fff5f5, #ffe0e0) !important;
  border-left: 4px solid #e74c3c !important;
}

.tanpa-artist-name {
  color: #e74c3c !important;
}

.tanpa-artist-badge {
  background: #fee !important;
  color: #e74c3c !important;
  border: 1px solid #e74c3c !important;
}

.artist-rank-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}


.artist-cell {
  text-align: center;
  vertical-align: middle;
}

.artist-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  background: #e3f2fd;
  color: #1976d2;
}

.artist-badge.tanpa-artist-badge {
  background: #fee !important;
  color: #e74c3c !important;
  border: 1px solid #e74c3c !important;
}

.sales-table th:nth-child(3) {
  min-width: 120px;
}

#promoRulesModal .modal-content {
  display: flex;
  flex-direction: column;
  position: relative;
  max-height: 85vh;
  overflow: hidden;
}

#promoRulesModal .modal-scrollable-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  margin-top: 10px;
}

#promoRulesModal .close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1100;
}


.price-cell {
  min-width: 180px;
  vertical-align: middle;
}

.price-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px 0;
}

.final-price {
  font-size: 18px;
  font-weight: bold;
  color: #27ae60;
  display: block;
}

.rounding-saved {
  font-size: 11px;
  color: #f39c12;
  display: block;
  margin-top: 2px;
}

.item-qty-info {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding-top: 5px;
  border-top: 1px dashed #eee;
}

.qty-label {
  font-size: 11px;
  color: #666;
}

.qty-value {
  font-size: 14px;
  font-weight: bold;
  color: #3498db;
  background: #e3f2fd;
  padding: 2px 8px;
  border-radius: 20px;
}

.discount-info-small {
  font-size: 11px;
  color: #e74c3c;
  background: #fee;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 5px;
}

.payment-info {
  margin-top: 8px;
  padding-top: 5px;
  border-top: 1px solid #eee;
}

.payment-info small {
  font-size: 10px;
  color: #888;
}


@media (max-width: 768px) {
  .price-cell {
    min-width: 160px;
  }
  
  .final-price {
    font-size: 16px;
  }
  
  .qty-value {
    font-size: 12px;
    padding: 2px 6px;
  }
  
  .rounding-saved {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .price-cell {
    min-width: 140px;
  }
  
  .final-price {
    font-size: 14px;
  }
  
  .qty-label {
    font-size: 10px;
  }
  
  .qty-value {
    font-size: 11px;
  }
}


.sales-table th:nth-child(1) {
  min-width: 100px;
}

.sales-table th:nth-child(2) {
  min-width: 200px;
}

.sales-table th:nth-child(3) {
  min-width: 100px;
}

.sales-table th:nth-child(4) {
  min-width: 180px;
}

.sales-table th:nth-child(5) {
  min-width: 70px;
  text-align: center;
}

.sales-actions-cell {
  text-align: center;
  vertical-align: middle;
}

.btn-delete-sales {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-delete-sales:hover {
  background-color: #c0392b;
  transform: scale(1.02);
}


  #promoRulesModal .modal-content {
    display: flex;
    flex-direction: column;
    position: relative;
    max-height: 85vh;
    overflow: hidden;
    padding: 0;
  }
  
  #promoRulesModal .promo-modal-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1100;
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
  }
  
  #promoRulesModal .promo-modal-header h3 {
    margin: 0 0 10px 0;
    padding-right: 30px;
  }
  
  #promoRulesModal .promo-modal-header .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1101;
  }
  
  #promoRulesModal .modal-scrollable-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px 20px;
  }
  
 
  .promo-rules-list {
    margin-top: 20px;
  }

.product-artist.has-artist {
  background-color: #d4edda !important;
  color: #155724 !important;
  border-radius: 20px !important;
  display: inline-block !important;
  padding: 4px 12px !important;
  font-size: 13px !important;
  font-weight: bold !important;
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}


.delete-mode-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 9999;
  display: none;
  pointer-events: none;
}

.delete-mode-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 50px;
  padding: 12px 24px;
  display: flex;
  gap: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 10001;
  align-items: center;
}

.delete-mode-bar .selected-count {
  font-weight: bold;
  color: #e74c3c;
  font-size: 16px;
}

.delete-mode-bar button {
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.delete-mode-bar .btn-delete-selected {
  background-color: #e74c3c;
  color: white;
}

.delete-mode-bar .btn-delete-selected:hover {
  background-color: #c0392b;
  transform: scale(1.02);
}

.delete-mode-bar .btn-cancel-delete {
  background-color: #95a5a6;
  color: white;
}

.delete-mode-bar .btn-cancel-delete:hover {
  background-color: #7f8c8d;
}

.product-card.delete-mode .product-checkbox {
  display: flex !important;
}

.product-checkbox {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.product-checkbox.checked {
  background-color: #e74c3c;
  border-color: #e74c3c;
}

.product-checkbox.checked::after {
  content: "✓";
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.product-card.delete-mode {
.product-card.delete-mode .button-group {
  pointer-events: none !important;
  display: none !important;
}


.product-card.delete-mode .product-img-container {
  cursor: pointer;
}

.product-card.delete-mode .product-img {
  pointer-events: none;
}


.product-card.delete-mode .quantity-controls {
  pointer-events: none;
  opacity: 0.6;
}

.product-card.delete-mode .quantity-controls button {
  pointer-events: none;
}


.product-checkbox {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.9);
  border: 2px solid #ddd;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 25;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.1s ease;
}

.product-checkbox:hover {
  transform: scale(1.05);
  background: white;
}

.product-checkbox.checked {
  background-color: #e74c3c;
  border-color: #e74c3c;
}

.product-checkbox.checked::after {
  content: "✓";
  color: white;
  font-size: 18px;
  font-weight: bold;
}


.product-card.delete-mode .product-checkbox {
  display: flex !important;
  pointer-events: auto !important;
}


.product-card.delete-mode .product-img-container {
  cursor: pointer;
  pointer-events: auto !important;
} }





.btn-form-all {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-form-all a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-form-all:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}


.btn-donate {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.btn-donate a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-donate .donate-icon {
  font-size: 22px;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  40% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.btn-donate:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

.welcome-close-btn {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
  width: 100%;
  transition: all 0.3s ease;
}

.welcome-close-btn:hover {
  background-color: #2ecc71;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

@media (max-width: 600px) {
  .welcome-buttons-container {
    flex-direction: column;
  }
  
  .welcome-buttons-left,
  .welcome-buttons-right {
    text-align: center;
    width: 100%;
  }
  
  .welcome-buttons-right {
    text-align: center;
    margin-top: 15px;
  }
  
  .btn-form-all,
  .btn-donate {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  .btn-form-all a,
  .btn-donate a {
    justify-content: center;
  }
}

/* ===== TAGS SYSTEM ===== */

.tag-filter-bar {
  display: none;
}

.global-tag-filter-bar {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--total-header-height, 56px);
  z-index: 998;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 8px 10px;
  background: #f8f9fa;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.global-tag-filter-bar::-webkit-scrollbar {
  display: none;
}

.tag-filter-btn {
  background: #fff;
  border: 1.5px solid #ccc;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  color: #555;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.tag-filter-btn:hover {
  background: #e8f5e9;
  border-color: #4CAF50;
  color: #2e7d32;
}

.tag-filter-btn.active {
  background: #4CAF50;
  border-color: #4CAF50;
  color: #fff;
  font-weight: 600;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  justify-content: center;
}

.product-tag {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

/* Edit modal tag preview */
.tag-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 0;
  margin-top: 4px;
}

.delete-mode-bar .btn-bulk-edit-confirm {
  background: #2980b9;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}
.delete-mode-bar .btn-bulk-edit-confirm:hover {
  background: #2471a3;
}

.bulk-edit-mode-bar {
  background: #1a2a3a;
}

/* ── Navbar Bulk Buttons ───────────────────────────────────────────────────── */

.navbar-bulk-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
  cursor: pointer;
  color: white;
  flex: 0 0 auto;
  transition: background-color 0.2s;
}

.navbar-bulk-delete-btn {
  background: #e74c3c;
}
.navbar-bulk-delete-btn:hover {
  background: #c0392b;
}

.navbar-bulk-edit-btn {
  background: #2980b9;
}
.navbar-bulk-edit-btn:hover {
  background: #2471a3;
}

/* ── Bulk Edit Modal ───────────────────────────────────────────────────────── */

.bulk-edit-modal-content {
  max-width: 560px;
  width: 95%;
}

.bulk-edit-select-all-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
}

.bulk-edit-product-list {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 6px 8px;
  margin-bottom: 12px;
  background: #fafafa;
}

.bulk-edit-product-row {
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
}
.bulk-edit-product-row:last-child {
  border-bottom: none;
}

.bulk-edit-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
}

.bulk-edit-thumb {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 5px;
  border: 1px solid #ddd;
  background: #fff;
  flex-shrink: 0;
}

.bulk-edit-fields {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.bulk-edit-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.bulk-edit-field-row label.bulk-toggle-label {
  flex: 0 0 100px;
  font-size: 13px;
}

.bulk-edit-field-row input[type="text"],
.bulk-edit-field-row input[type="number"],
.bulk-edit-field-row select {
  padding: 7px 10px;
  border: 1px solid #ddd;
  border-radius: 7px;
  font-size: 13px;
  box-sizing: border-box;
}

/* ── Bulk Add ──────────────────────────────────────────────────────────────── */

.bulk-shared-section {
  margin-bottom: 10px;
}

.bulk-shared-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.bulk-shared-label-row label:first-child {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin: 0;
}

.bulk-toggle-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: normal !important;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
}

.bulk-toggle-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
  accent-color: #2980b9;
}

.bulk-row-optional-fields {
  margin-bottom: 4px;
}

.bulk-row-individual-field {
  background: #eef4fb;
  border: 1px solid #c5d9ef;
  border-radius: 7px;
  padding: 8px 10px;
  margin-bottom: 6px;
}

.bulk-row-individual-field label {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #2471a3 !important;
  margin-top: 0 !important;
}

.bulk-row-individual-field input,
.bulk-row-individual-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 9px;
  border: 1px solid #aac4de;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

.bulk-open-btn:hover {
  background-color: #7d3c98;
}

.bulk-add-modal-content {
  max-width: 560px;
  width: 95%;
}

#bulkAddForm label,
#bulkAddForm input,
#bulkAddForm select {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

#bulkAddForm input[type="text"],
#bulkAddForm input[type="number"],
#bulkAddForm select {
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 10px;
  margin-top: 4px;
}

#bulkAddForm label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 2px;
}

.bulk-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 8px;
  border-top: 1px solid #eee;
  padding-top: 12px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.bulk-add-row-btn {
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.bulk-add-row-btn:hover {
  background: #219a52;
}

.bulk-item-row {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.bulk-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bulk-row-label {
  font-weight: 600;
  font-size: 13px;
  color: #555;
}

.bulk-remove-row-btn {
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  width: 26px;
  height: 26px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}
.bulk-remove-row-btn:hover {
  background: #c0392b;
}

.bulk-item-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 2px;
  margin-top: 6px;
}

.bulk-item-row input[type="text"],
.bulk-item-row input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 7px;
  font-size: 13px;
  background: #fff;
  margin-bottom: 0;
}

.bulk-submit-btn {
  width: 100%;
  background: #2980b9;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 14px;
  transition: background-color 0.2s;
}
.bulk-submit-btn:hover {
  background: #2471a3;
}


