.planogramcontainerHidden {
  display: none;
  visibility: hidden;
}
/* .planogramContainer {
  width: 100%;
  height: 100%;
  background-color: lightgrey;
  position: fixed;
  top: 50px;
  left: 60px;
  z-index: 9;
  overflow: scroll;
} */
.planogramContainer {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  max-width: fit-content !important;
  width: fit-content !important;
  height: fit-content;
  align-self: flex-start;
  overflow: visible;
  z-index: 4;
}
.planogramResizeHandle {
  position: absolute;
  top: 0;
  right: -8px;
  width: 14px;
  height: 100%;
  cursor: ew-resize;
  background: linear-gradient(90deg, rgba(120, 136, 153, 0), rgba(120, 136, 153, 0.55));
  z-index: 20;
  box-shadow: 0 0 0 1px rgba(120, 136, 153, 0.2);
}
.planogramResizeHandle:hover {
  background: linear-gradient(90deg, rgba(120, 136, 153, 0.1), rgba(120, 136, 153, 0.6));
}
/* .planogramInnerWrapper {
  width: 100%;
  height: 100%;
  background-color: aliceblue;
  position: relative;
  z-index: 9;
  overflow: scroll;
} */
.planogramInnerWrapper {
  position: relative;
  display: flow-root;
  /* width: fit-content !important; */
  min-width: 0;
  width: max-content;
  padding-right: 18px;
  --planogram-font-scale: 0.7;
  --planogram-font-family: "Poppins", "Segoe UI", sans-serif;
  font-family: var(--planogram-font-family);
}
.planogramInnerWrapper input,
.planogramInnerWrapper button,
.planogramInnerWrapper .sales-stats-container,
.planogramInnerWrapper .sales-badge,
.planogramInnerWrapper .item_stats_green,
.planogramInnerWrapper .item_stats_amber,
.planogramInnerWrapper .item_stats_red,
.planogramInnerWrapper .item_counts,
.planogramInnerWrapper #item_price,
.planogramInnerWrapper .planogram-expiry-btn,
.planogramInnerWrapper .item_selection,
.planogramInnerWrapper .itemInfo {
  font-family: var(--planogram-font-family);
}
.planogramInnerWrapper .bi {
  font-family: "bootstrap-icons" !important;
}
.planogramInnerWrapper .item_green {
  position: relative;
  height: 160px;
  background-color: #e6f6ee;
  text-align: center;
  margin: 5px;
  float: left;
  box-shadow: 2px 3px 5px grey;
  border-radius: 5px;
}
.planogramInnerWrapper .item_green:hover {
  top: -2px;
  z-index: 1;
  cursor: pointer;
}

.planogramInnerWrapper .item_amber {
  position: relative;
  height: 160px;
  background-color: #fff3db;
  text-align: center;
  margin: 5px;
  float: left;
  box-shadow: 2px 3px 5px grey;
  border-radius: 5px;
}
.planogramInnerWrapper .item_amber:hover {
  top: -2px;
  z-index: 1;
  cursor: pointer;
}

.planogramInnerWrapper .item_red {
  position: relative;
  height: 160px;
  background-color: #fde4e7;
  text-align: center;
  margin: 5px;
  float: left;
  box-shadow: 2px 3px 5px grey;
  border-radius: 5px;
}
.planogramInnerWrapper .item_red:hover {
  top: -2px;
  z-index: 1;
  cursor: pointer;
}

.planogram-expiry-btn {
  position: absolute;
  right: 3px;
  top: 30px;
  transform: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.12);
  color: #0b1220;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.planogram-expiry-btn.hidden {
  display: none;
}

.planogram-expiry-btn.expiry-soon {
  background: #343957;
  color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

.planogram-expiry-btn.expiry-warn {
  background: #343957;
  color: #f59e0b;
}

.planogram-expiry-btn.expiry-ok {
  background: #343957;
  color: #22c55e;
}

.planogram-expiry-btn i {
  font-size: 0.9rem;
}

.planogram-expiry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.planogram-expiry-modal {
  width: min(520px, 92vw);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.planogram-expiry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.planogram-expiry-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.planogram-expiry-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.planogram-expiry-slot {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.planogram-expiry-slot:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(226, 232, 240, 0.55));
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.planogram-expiry-slot.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.planogram-expiry-slot-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.planogram-expiry-slot-date {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.85rem;
}

.planogram-expiry-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.planogram-expiry-picker input {
  flex: 1;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.planogram-expiry-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.planogramToolBar {
  position: relative;
  width: 100%;
  /* height: 50px; */
  /* background: #46627d; */
  /* margin-bottom: 20px; */
  flex: 1 1 0%;
  height: 32px;
  /* max-width: 1620px; */
  /* min-width: 1620px; */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.planogramThemePickerWrapper {
    position: absolute !important;
    display: inline-flex;
    align-items: center;
    right: 0px;
    margin-left: 12px;
    gap: 8px;
}
.planogramThemeBtn {
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, #eef2f7 100%);
  color: #111827;
  padding: 4px 10px;
  height: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.planogramThemeBtn i {
  color: inherit;
  display: block;
  line-height: 1;
}
.planogramThemeBtn:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  border-color: rgba(15, 23, 42, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.2);
}
.planogramThemeBtn:hover i {
  color: #111827;
}
.planogramThemeBtn:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}
.planogramFontBtn {
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, #eef2f7 100%);
  color: #111827;
  padding: 4px 10px;
  height: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.planogramFontBtn:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  border-color: rgba(15, 23, 42, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.2);
}
.planogramFontBtn:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}
.planogramFontBtn i {
  color: inherit;
  display: block;
  line-height: 1;
}
.planogramFontStyleBtn {
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, #eef2f7 100%);
  color: #111827;
  padding: 4px 10px;
  height: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.planogramFontStyleBtn:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  border-color: rgba(15, 23, 42, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.2);
}
.planogramFontStyleBtn:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}
.planogramFontStyleBtn i {
  color: inherit;
  display: block;
  line-height: 1;
}

.planogramToolBar .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.planogramToolBar .btn i,
.planogramToolBar .btn .bi {
  display: block;
  line-height: 1;
}
.planogramToolBar .btn:hover,
.planogramToolBar .btn:focus {
  color: #111827;
  border-color: rgba(15, 23, 42, 0.28);
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
}
.planogramToolBar .btn:hover i,
.planogramToolBar .btn:hover .bi,
.planogramToolBar .btn:focus i,
.planogramToolBar .btn:focus .bi {
  color: inherit;
}
.planogramToolBar .btn-danger:hover,
.planogramToolBar .btn-danger:focus {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #dc2626;
}
.planogramToolBar .btn-danger:hover i,
.planogramToolBar .btn-danger:focus i,
.planogramToolBar .btn-danger:hover .bi,
.planogramToolBar .btn-danger:focus .bi {
  color: #ffffff;
}
.planogramToolBar .btn-outline-danger:hover,
.planogramToolBar .btn-outline-danger:focus {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #dc2626;
}
.planogramToolBar .btn-outline-danger:hover i,
.planogramToolBar .btn-outline-danger:focus i,
.planogramToolBar .btn-outline-danger:hover .bi,
.planogramToolBar .btn-outline-danger:focus .bi {
  color: #ffffff;
}
.planogramThemePicker {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  max-height: 70vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 60;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
}
.planogramFontPicker {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  max-height: 70vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 60;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
}
.planogramFontPickerHidden {
  display: none;
}
.planogramFontStylePicker {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  max-height: 70vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 60;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
}
.planogramFontStylePickerHidden {
  display: none;
}
.planogramFontStyleOption {
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #111827;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.planogramFontStyleOption:hover {
  background: rgba(15, 23, 42, 0.08);
}
.planogramFontStyleOption.active {
  background: rgba(59, 130, 246, 0.12);
  font-weight: 600;
}
.planogramFontOption {
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #111827;
  cursor: pointer;
}
.planogramFontOption:hover {
  background: rgba(15, 23, 42, 0.08);
}
.planogramFontOption.active {
  background: rgba(59, 130, 246, 0.12);
  font-weight: 600;
}
.planogramThemePickerHidden {
  display: none;
}
.planogramThemeOption {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #111827;
  cursor: pointer;
}
.planogramThemeOption:hover {
  background: rgba(15, 23, 42, 0.08);
}
.planogramThemeOption.active {
  background: rgba(59, 130, 246, 0.12);
  font-weight: 600;
}
.planogramThemeSwatch {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  flex: 0 0 16px;
}
.planogramThemeSwatch.theme-original {
  background: linear-gradient(135deg, #e6f6ee, #fde4e7);
}
.planogramThemeSwatch.theme-lite {
  background: linear-gradient(135deg, #f3fbf6, #fff7eb);
}
.planogramThemeSwatch.theme-dark {
  background: linear-gradient(135deg, #c7d9d2, #d8c2c6);
}
.planogramThemeSwatch.theme-neo-dark {
  background: linear-gradient(135deg, #0f172a, #334155);
}
.planogramThemeSwatch.theme-cyber-slate {
  background: linear-gradient(135deg, #22d3ee, #ef4444);
}
.planogramThemeSwatch.theme-neu-chalk {
  background: linear-gradient(135deg, #f8fafc, #d1d9e6);
}
.planogramThemeSwatch.theme-liquid-mercury {
  background: linear-gradient(135deg, #e6e9ef, #ffffff);
}
.planogramThemeSwatch.theme-prism-dark {
  background: linear-gradient(135deg, #0f172a, #ffffff);
}
.planogramThemeSwatch.theme-prism-lite {
  background: linear-gradient(135deg, #dcfce7, #fff7ed);
}
.planogramThemeSwatch.theme-prism-dawn {
  background: linear-gradient(135deg, #e7f0ff, #fff4dd);
}
.planogramThemeSwatch.theme-paper-mist {
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
}
.planogramThemeSwatch.theme-glacier {
  background: linear-gradient(135deg, #dbeafe, #f0f7ff);
}
.planogramThemeSwatch.theme-opaline {
  background: linear-gradient(135deg, #fff6f8, #e8f7ff);
}
.planogramThemeSwatch.theme-solar-breeze {
  background: linear-gradient(135deg, #fff3d6, #e8f6ff);
}
.planogramThemeSwatch.theme-aurora-noir {
  background: linear-gradient(135deg, #0b0f16, #22c55e);
}
.planogramThemeSwatch.theme-obsidian-grid {
  background: linear-gradient(135deg, #0f172a, #1f2937);
}
.planogramThemeSwatch.theme-ember-night {
  background: linear-gradient(135deg, #140f0f, #ef4444);
}
.planogramThemeSwatch.theme-prism-void {
  background: linear-gradient(135deg, #0b0f19, #6d28d9);
}
.planogramThemeSwatch.theme-nebula-grid {
  background: linear-gradient(135deg, #0c1220, #14b8a6);
}
.planogramThemeSwatch.theme-noir-glow {
  background: linear-gradient(135deg, #0f1117, #f43f5e);
}
.planogramThemeGroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.planogramThemeGroup:first-of-type {
  border-top: none;
  padding-top: 0;
}
.planogramThemeGroupToggle {
  border: none;
  background: transparent;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  color: #1f2937;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.planogramThemeGroupToggle::after {
  content: "▾";
  font-size: 0.75rem;
  color: #64748b;
  transition: transform 0.15s ease;
}
.planogramThemeGroup.collapsed .planogramThemeGroupToggle::after {
  transform: rotate(-90deg);
}
.planogramThemeGroupToggle:hover {
  background: rgba(15, 23, 42, 0.06);
}
.planogramThemeGroupList {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 2px 2px 2px;
}
.planogramThemeGroup.collapsed .planogramThemeGroupList {
  display: none;
}
.planogram-notes-layout {
  --planogram-notes-width: 260px;
  --planogram-notes-empty-width: 56px;
  display: flex;
  align-items: flex-start;
  width: max-content;
  flex: 0 0 auto;
}
/* .planogram-notes-layout.planogram-notes-layout-empty {
  padding-right: calc(
    var(--planogram-notes-width) - var(--planogram-notes-empty-width)
  );
} */
.planogram-notes-panel {
  width: var(--planogram-notes-width);
  background: linear-gradient(160deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: none;
  overflow: visible;
  margin-top: 33px;
  margin-left: 5px;
}
.planogram-notes-panel.hidden {
  display: none;
}
.planogram-notes-panel.planogram-notes-panel-empty {
  width: var(--planogram-notes-empty-width);
  min-width: var(--planogram-notes-empty-width);
  padding: 10px;
  align-items: center;
  justify-content: flex-start;
}
.planogram-notes-empty-add {
  border: none;
  background: #111827;
  color: #ffffff;
  border-radius: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.22);
}
.planogram-notes-empty-add i {
  font-size: 20px;
}
.planogram-notes-empty-add:hover {
  background: #1f2937;
}
.planogram-notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.planogram-notes-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}
.planogram-notes-section + .planogram-notes-section {
  margin-top: 12px;
}
.planogram-notes-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #0f172a;
}
.planogram-notes-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0));
}
.planogram-notes-section-planogram .planogram-notes-section-title {
  color: #0f766e;
}
.planogram-notes-section-planogram .planogram-notes-section-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2dd4bf, #0f766e);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}
.planogram-notes-section-machine .planogram-notes-section-title {
  color: #1d4ed8;
}
.planogram-notes-section-machine .planogram-notes-section-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #1d4ed8);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.planogram-notes-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2a35;
  letter-spacing: 0.2px;
}
.planogram-notes-add {
  border: none;
  background: #1f2937;
  color: #ffffff;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.planogram-notes-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.28);
}
.planogram-notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
  padding-right: 4px;
}
.planogram-note-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e6e9f2;
  padding: 12px 18px 12px 12px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.planogram-note-card-important {
  border: 1px solid #f7b2b2;
  border-left: 4px solid #f46a6a;
  background: linear-gradient(135deg, #fff1f1 0%, #ffe7e7 100%);
  box-shadow: 0 14px 26px rgba(244, 106, 106, 0.18);
}
.planogram-note-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  color: #c03b3b;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.planogram-note-close:hover {
  background: transparent;
  color: #e11d48;
  transform: translateY(-1px);
}
.planogram-note-meta {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
  word-break: break-word;
  white-space: normal;
}
.planogram-note-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.planogram-note-body {
  font-size: 12px;
  color: #1f2937;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 36px;
}
.planogram-note-actions {
  display: flex;
  gap: 6px;
}
.planogram-note-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: #e9ecf5;
  color: #2f3552;
}
.planogram-note-btn-edit {
  background: #e5ecff;
  color: #3657b5;
}
.planogram-note-btn-save {
  background: #0f766e;
  color: #ffffff;
}
.planogram-note-btn-cancel {
  background: #f1f5f9;
  color: #4b5563;
}
.planogram-note-editor {
  width: 100%;
  min-height: 80px;
  border-radius: 10px;
  border: 1px solid #d4dbe7;
  padding: 8px;
  font-size: 12px;
  resize: vertical;
}
.planogram-note-important-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}
.planogram-note-important-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #f46a6a;
}
.planogram-note-original-toggle {
  background: transparent;
  border: none;
  color: #2563eb;
  font-size: 11px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
.planogram-note-original-toggle:hover {
  background: transparent;
  color: #1d4ed8;
  text-decoration: underline;
}
.planogram-note-original {
  margin-top: 6px;
  padding: 8px;
  border-radius: 10px;
  background: #f3f6fb;
  color: #3a445b;
  font-size: 11px;
}
.planogram-note-original.hidden {
  display: none;
}
.planogram-notes-fab {
  position: absolute;
  top: 36px;
  left: 17px;
  border: none;
  background: #111827;
  color: #ffffff;
  border-radius: 12px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.25);
}
.planogram-notes-fab i {
  font-size: 20px;
}
.planogramOptions {
  background-color: lightslategrey !important;
  border: 0px solid !important;
  font-size: 12px !important;
  height: 27px;
}
.planogramOptions:hover {
  background-color: rgba(119, 136, 153, 0.849) !important;
}
.planogramOptionsMenu {
  position: absolute !important;
  top: 33px;
  background-color: white;
  z-index: 10;
  font-size: 12px;
}
.planogramOptionsMenuHidden {
  display: none !important;
  visibility: hidden;
}
.planogramOptionsMenu a {
  color: #343957 !important;
}
.planogramOptionsMenu a:hover {
  color: #637dfc !important;
}

.planogramOptionsMenuDivider {
  width: 100%;
  height: 1px;
  margin-bottom: 5px;
  box-shadow: 0px 10px 10px;
}
.planogramSettings {
  color: #637dfc !important;
}
.planogramSubmit {
  margin-left: 2px;
  margin-right: 2px;
  font-size: 12px !important;
  height: 27px;
}
#cancelAllPlanogramChanges {
  font-size: 12px !important;
  height: 27px;
}
.planogramToolBar div {
  position: relative;
}
.totalStockValue {
  font-size: 12px;
  padding: 5px;
  left: 50px;
  width: 184px;
}
.itemTotals {
  width: fit-content;
  display: flex;
  gap: 5px;
  height: fit-content;
  padding: 2px;
  margin-right: 12px;
}
.itemTotalsGroup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.planogramShowAllToggle {
  margin-left: 0;
}
.hide-column {
  display: none !important;
}
.item-totals-tooltip {
  --bs-tooltip-bg: white !important;
  --bs-tooltip-color: #343957 !important;
  --bs-tooltip-max-width: 1000px !important; /* Set max-width using CSS variable */
  opacity: 1 !important;
  box-shadow: 5px 5px 5px grey !important;
  --bs-tooltip-border-radius: 2px !important;
  background-color: white !important;
}
.item-totals-tooltip .tooltip-inner {
  max-width: 1000px !important;
  /* width: max-content !important; */
  text-align: left !important;
  /* padding: 10px !important; */
  font-size: 12px !important;
  background-color: white !important;
  width: 170px;
}
/* .tooltip-inner ul li{
  float: left;
} */
.tooltip-inner {
  max-width: 100% !important;
  padding: var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);
  color: var(--bs-tooltip-color);
  text-align: left !important;
  background-color: #24263cf2 !important;
  /* width: max-content !important; */
  border-radius: var(--bs-tooltip-border-radius);
  padding: 10px !important;

}

#greenItemTotals {
  background-color: #28a745 !important;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  left: 5px;
  position: relative;
  color: white;
  line-height: 25px;
  font-family: monospace;
  font-size: small;
  text-align: center;
  font-weight: 900;
  -moz-box-shadow: 0 0 2px rgb(0, 0, 0);
  -webkit-box-shadow: 0 0 2px rgb(0, 0, 0);
  box-shadow: 0 0 2px rgb(0, 0, 0);
  cursor: pointer;
}
#amberItemTotals {
  background-color: #ffc107 !important;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  left: 5px;
  position: relative;
  color: white;
  line-height: 25px;
  font-family: monospace;
  font-size: small;
  text-align: center;
  font-weight: 900;
  -moz-box-shadow: 0 0 2px rgb(0, 0, 0);
  -webkit-box-shadow: 0 0 2px rgb(0, 0, 0);
  box-shadow: 0 0 2px rgb(0, 0, 0);
  cursor: pointer;
}
#redItemTotals {
  background-color: #dc3545 !important;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  left: 5px;
  position: relative;
  color: white;
  line-height: 25px;
  font-family: monospace;
  font-size: small;
  text-align: center;
  font-weight: 900;
  -moz-box-shadow: 0 0 2px rgb(0, 0, 0);
  -webkit-box-shadow: 0 0 2px rgb(0, 0, 0);
  box-shadow: 0 0 2px rgb(0, 0, 0);
  cursor: pointer;
}
.closePlanogram {
  position: relative;
  float: left;
  color: white;
  padding: 7px;
  padding-left: 10px;
}
.closePlanogram:hover {
  color: #f24c5d;
  cursor: pointer;
}
.planogramTitle {
  color: white;
  font-size: 18px;
  height: 50px;
  position: relative;
  left: 20px;
  line-height: 2.8;
}
.switchPlanogramView {
  margin-left: 19px;
  height: 27px;
  line-height: 0 !important;
  padding: 6px !important;
  padding-top: 4px !important;
  font-size: 19px !important;
  background-color: #778899 !important;
  border: 0px !important;
}
.itemRow {
  flex: 1 1 0%;
  /* max-width: 1620px;
  min-width: 1620px; */
  display: flex;
  min-height: 0px;
  flex-direction: row;
}
.item_selection {
  position: relative;
  top: 5px;
  left: 5px;
  width: 80%;
  font-family: monospace;
  font-size: 12px;
  text-align: left;
  
  /* --- ADD THESE LINES --- */
  display: flex;          /* Use Flexbox for alignment */
  align-items: center;    /* Vertically align items in the middle */
  gap: 0px;               /* Add a 5px gap between each item */
}
.planogramInnerWrapper .item_selection {
  font-family: var(--planogram-font-family);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  width: fit-content;
  max-width: calc(100% - 10px);
}
.planogramInnerWrapper .item_selection span {
  font-weight: 800;
}
.planogramInnerWrapper[data-planogram-theme="dark"] .item_selection,
.planogramInnerWrapper[data-planogram-theme="neo-dark"] .item_selection,
.planogramInnerWrapper[data-planogram-theme="cyber-slate"] .item_selection,
.planogramInnerWrapper[data-planogram-theme="prism-dark"] .item_selection,
.planogramInnerWrapper[data-planogram-theme="aurora-noir"] .item_selection,
.planogramInnerWrapper[data-planogram-theme="obsidian-grid"] .item_selection,
.planogramInnerWrapper[data-planogram-theme="ember-night"] .item_selection {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.35);
  color: #f8fafc;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.6);
}
.item_selection_table{
  position: static !important;
  display: table-cell !important;
}
#cancelSwap {
  width: 24px;
  background: lightgrey;
  padding: 0px;
  border-color: lightgray;
  box-shadow: 0px 0px 2px black;
  color: black;
}
#cancelSwap:hover {
  color: red;
  box-shadow: 0px 0px 2px red;
}
.cancelSwap {
  font-size: 14px;
}
.tableCancelSwap {
  float: right;
  margin-right: 8px !important;
  margin-top: 1px;
  height: 24px;
}
.sales-stats-container {
  display: grid;
  width: 100%;           /* Spans full width of the parent */
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;                /* Layout gap between grid columns */
}
.sales-badges-center {
  display: flex;
  gap: clamp(2px, 1.2vw, 6px);
  justify-self: start;
  grid-column: 1;
}
.sales-badge {
  flex: 0 0 auto;
}
.sales-gap-left {
  margin-left: 12px;
}
.sales-push-right {
  margin-left: auto;
}
.sales-right {
  justify-self: end;
  grid-column: 3;
}
.greenIcon, .amberIcon, .redIcon {
  flex: 1;               /* Makes all badges take up equal width */
  max-width: 40px;       /* Prevents them from getting too wide in large containers */
  height: 25px;          /* Adjusted height for a "bar" look */
  line-height: 25px;     /* Matches height to center text vertically */
  border-radius: 2px;    /* Slight rounding for a modern square look */
  color: white;
  font-family: var(--planogram-font-family);
  font-size: 11px;       /* "small" can be inconsistent, px is safer here */
  text-align: center;
  font-weight: 900;
  display: inline-block;
}
.sales-stats-container .greenIcon,
.sales-stats-container .amberIcon,
.sales-stats-container .redIcon {
  font-family: var(--planogram-font-family) !important;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  min-width: clamp(18px, 6vw, 28px);
  padding: 0 clamp(3px, 1.2vw, 6px);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: calc(1.2rem * var(--planogram-font-scale));
}

/* Allow sales badges to scale down in narrow planogram items */
.item {
  container-type: inline-size;
  position: relative;
}

@container (max-width: 240px) {
  .sales-badges-center {
    gap: 3px;
  }
  .sales-stats-container .greenIcon,
  .sales-stats-container .amberIcon,
  .sales-stats-container .redIcon {
    min-width: 18px;
    padding: 0 4px;
    font-size: calc(1rem * var(--planogram-font-scale));
  }
}

@container (max-width: 190px) {
  .sales-badges-center {
    gap: 2px;
  }
  .sales-stats-container .greenIcon,
  .sales-stats-container .amberIcon,
  .sales-stats-container .redIcon {
    min-width: 16px;
    padding: 0 3px;
    font-size: calc(0.95rem * var(--planogram-font-scale));
  }
}

.planogramInnerWrapper[data-planogram-theme="original"] .greenIcon {
  background-color: #28a745;
  border: 1px solid #1e7e34; /* Darker green border */
}

.planogramInnerWrapper[data-planogram-theme="original"] .amberIcon {
  background-color: #f39c12;
  border: 1px solid #d35400;
  color: white;           /* Improved contrast for yellow background */
}

.planogramInnerWrapper[data-planogram-theme="original"] .redIcon {
  background-color: #dc3545;
  border: 1px solid #bd2130; /* Darker red border */
}

.planogramInnerWrapper[data-planogram-theme="original"] .sales-stats-container {
  background: transparent !important;
  border: none !important;
}
.planogramInnerWrapper[data-planogram-theme="original"] .sales-stats-container .greenIcon,
.planogramInnerWrapper[data-planogram-theme="original"] .sales-stats-container .amberIcon,
.planogramInnerWrapper[data-planogram-theme="original"] .sales-stats-container .redIcon {
  background-color: inherit !important;
  border-color: inherit !important;
  color: inherit !important;
}
.planogramInnerWrapper[data-planogram-theme="original"] .sales-stats-container .greenIcon {
  background-color: #28a745 !important;
  border: 1px solid #1e7e34 !important;
  color: #ffffff !important;
}
.planogramInnerWrapper[data-planogram-theme="original"] .sales-stats-container .amberIcon {
  background-color: #f39c12 !important;
  border: 1px solid #d35400 !important;
  color: #ffffff !important;
}
.planogramInnerWrapper[data-planogram-theme="original"] .sales-stats-container .redIcon {
  background-color: #dc3545 !important;
  border: 1px solid #bd2130 !important;
  color: #ffffff !important;
}
.salesGreenIcon{
  background-color: #28a745 !important;
  display: inline-block;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  /* border: 2px solid rgba(64, 184, 92, 0.534); */
  position: relative;
  /* margin-left: 2px; */
  color: white;
  line-height: 21px;
  font-family: monospace;
  font-size: small;
  text-align: center;
  font-weight: 900;
  -moz-box-shadow: 0 0 2px rgb(0, 0, 0);
  -webkit-box-shadow: 0 0 2px rgb(0, 0, 0);
  box-shadow: 0 0 2px rgb(0, 0, 0);
}
.salesAmberIcon{
  background-color: #dc3545 !important;
  display: inline-block;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  /* border: 2px solid rgba(64, 184, 92, 0.534); */
  position: relative;
  /* margin-left: 2px; */
  color: white;
  line-height: 21px;
  font-family: monospace;
  font-size: small;
  text-align: center;
  font-weight: 900;
  -moz-box-shadow: 0 0 2px rgb(0, 0, 0);
  -webkit-box-shadow: 0 0 2px rgb(0, 0, 0);
  box-shadow: 0 0 2px rgb(0, 0, 0);
}
.salesRedIcon{
  background-color: #dc3545 !important;
  display: inline-block;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  /* border: 2px solid rgba(64, 184, 92, 0.534); */
  position: relative;
  /* margin-left: 2px; */
  color: white;
  line-height: 21px;
  font-family: monospace;
  font-size: small;
  text-align: center;
  font-weight: 900;
  -moz-box-shadow: 0 0 2px rgb(0, 0, 0);
  -webkit-box-shadow: 0 0 2px rgb(0, 0, 0);
  box-shadow: 0 0 2px rgb(0, 0, 0);
}
.item-totals-tooltip .tooltip-inner span {
  display: inline-block;
  /* float: left; */
  margin-bottom: 3px;
  background-color: white;
}
.itemInfo {
  position: absolute;
  bottom: 23px;
  left: 4px;
  float: left;
  z-index: 9;
}
.itemInfo i {
  position: relative;
  color: lightgray;
  background-color: black;
  /* border: 0px solid grey; */
  border-radius: 100%;
  height: 15px;
  display: flex;
}
.item-hcg {
  position: absolute;
  right: 6px;
  bottom: 24px;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hcg-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  background: transparent;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}
.hcg-dot.hcg-green {
  background: #22c55e;
  border-color: #15803d;
}
.hcg-dot.hcg-amber {
  background: #f59e0b;
  border-color: #b45309;
}
.hcg-dot.hcg-red {
  background: #ef4444;
  border-color: #b91c1c;
}
.hcg-dot.hcg-none {
  background: transparent;
  border-color: #cbd5f5;
}
.product_image {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;

  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  height: 76px;
  margin: auto;
  position: relative;
  top: 5px;
  font-weight: 999;

  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}
.image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex: 1 1 0%; /* flex-grow: 1, flex-shrink: 1, flex-basis: 0% */
}
.item-soldout {
  position: absolute;
  max-width: 118px;
  width: 85%;
}
/* .product_image div {
  width: 20px;
  height: 20px;
  color: rgb(139, 83, 0);
} */
/* When both images are present */
.product_image:has(.image-wrapper.target) .image-wrapper.original {
  flex: 0 0 50%; /* Don't grow, don't shrink, width 60% */
}

.product_image:has(.image-wrapper.target) .image-wrapper.target {
  flex: 0 0 50%; /* Don't grow, don't shrink, width 40% */
  opacity: 0.5;
}

.product_image:has(.image-wrapper.target) .image-wrapper.target img {
  max-width: 40%; /* Target image is smaller */
}

.image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;

  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}
/* .image-wrapper img {
  height: 45%;
  margin: 5px;
  max-height: 100%;
  object-fit: contain;
  bottom: 5px;
  position: relative;
} */

.item_stats_green {
  height: 20px;
  width: 100%;
  background-color: #343957;
  position: absolute;
  bottom: 0px;
  padding-top: 2px;
  padding-left: 2px;
  padding-bottom: 1px;
  pointer-events: none;
}
.item_stats_amber {
  height: 20px;
  width: 100%;
  background-color: #343957;
  position: absolute;
  bottom: 0px;
  padding-top: 2px;
  padding-left: 2px;
  padding-bottom: 1px;
  pointer-events: none;
}
.item_stats_red {
  height: 20px;
  width: 100%;
  background-color: #343957;
  position: absolute;
  bottom: 0px;
  padding-top: 2px;
  padding-left: 2px;
  padding-bottom: 1px;
  pointer-events: none;
}
.item_counts {
  width: 20px;
  height: 15px;
  background: white;
  float: left;
  margin-right: 1px;
  border: 1px solid lightgrey;
  pointer-events: all;
  font-size: 12px;
  text-align: center;
}
#item_price {
  width: 40px;
  height: 15px;
  float: right !important;
  margin-right: 2px;
  border: 1px solid lightgrey;
  pointer-events: all;
  font-size: 12px;
  text-align: right;
}
.btn-outline-danger {
  margin-right: 5px;
}
.productMenuHidden {
  position: relative;
  width: max-content;
  height: fit-content;
  display: none;
  visibility: hidden;
}
.productMenuVisible {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: fixed !important;
  width: 520px;
  height: max-content;
  visibility: visible;
  z-index: 40;
  background: white;
  box-shadow: 5px 5px 10px currentColor;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
}
.productToolbar {
  width: 520px;
  height: 50px;
  position: relative;
  display: flex;
  background: rgb(52 57 87);
  color: white;
  padding: 8px;
  padding-right: 0px;
  margin-bottom: 5px;
}
.productTitle {
  width: 460px;
  height: 36px;
  padding: 5px;
  font-size: 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.productClose {
  right: 0px;
}
.productClose:hover {
  color: #f24c5d;
  cursor: pointer;
}
.productClose svg:hover {
  color: #f24c5d;
  cursor: pointer;
}
.productDetail {
  position: relative;
  float: left;
  text-align: left;
  width: 200px;
  text-align: right;
}
.productDetailHidden {
  display: none;
  visibility: hidden;
}
.productDetailValue {
  width: 300px;
  float: left;
  position: relative;
  margin-left: 2px;
  padding: 1px;
}
.productDetailValueHidden {
  display: none;
  visibility: hidden;
}
.changeProduct {
  position: relative;
  width: 100%;
  height: 30px;
  background: #343957;
  float: left;
  text-align: center;
  /* padding: 5px; */
  line-height: 2.6;
  margin-top: 5px;
  font-weight: 500;
  color: white;
}
.changeProduct:hover {
  background-color: rgb(99 125 252);
  cursor: pointer;
}
.submitChanges {
  position: relative;
  position: relative;
  width: 100%;
  height: 30px;
  background: #28a745;
  float: left;
  text-align: center;
  /* padding: 5px; */
  line-height: 2.6;
  font-weight: 500;
  color: white;
}
.submitChanges:hover {
  background-color: #30c352;
  cursor: pointer;
}

/* PRODUCTS STYLES */
.productsContainer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  /* margin-left: -50px; */
  display: flex;
  flex-direction: column;
  width: 520px;
  height: 620px;
  visibility: visible;
  z-index: 20;
  background: #f6f7fb;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  /* pointer-events: none; */
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  pointer-events: auto;
}
.productsContainerDocked {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 680px;
  max-width: 680px;
  flex: 0 0 680px;
  height: auto;
  max-height: 100%;
  overflow: auto;
  background: #f6f7fb;
  border-radius: 14px;
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
  margin-top: 32px;
  margin-bottom: 0;
  align-self: flex-start;
  z-index: 2;
}
.productsContainerDocked .cancelProductMenu {
  display: none;
}
.planogramProductsCell {
  vertical-align: top;
  padding: 4px 0 4px 4px;
}
.planogramCell {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: nowrap;
  overflow: visible;
  vertical-align: top;
  height: fit-content;
}
.productsContainerHidden {
  display: none;
  visibility: hidden;
}
.productCategories {
  position: relative;
  width: 100%;
  height: auto;
  background: #343957;
  color: #e5e7eb;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  box-shadow: none;
}
.productCategory {
  position: relative;
  width: auto;
  height: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
  line-height: 1.2;
  font-size: 12px;
  font-weight: 600;
}
.productCategorySelected {
  background: #2563eb;
  color: #ffffff;
}
.productCategory:hover {
  background: #1d4ed8;
  cursor: pointer;
}
.productTypeFilters {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0px 0px;
  background: #2f3552;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.productTypeSwitch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5e7eb;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  user-select: none;
}
.productTypeSwitch input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #38bdf8;
}
.productTypeSwitch:has(input:checked) {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.5);
  color: #e0f2fe;
}
.productSubCategoryHidden {
  display: none;
  visibility: hidden;
}
.searchProducts {
  position: relative;
  width: 100%;
  padding: 10px 12px;
  background: #343957;
}
.searchProducts input {
  height: 30px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
  padding: 0 12px;
  font-size: 12px;
  outline: none;
}
.searchProducts input::placeholder {
  color: rgba(229, 231, 235, 0.7);
}
.productSubCategory {
  position: relative;
  width: 100%;
  height: auto;
  background: white;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.productSubCategory div {
  position: relative;
  width: auto;
  height: auto;
  padding: 4px 10px;
  border-radius: 999px;
  text-align: center;
  color: white;
  font-size: 12px;
  font-weight: 600;
}
.hcg_green {
  background: #0f172a !important;
}
.hcg_green:hover {
  background: #28a745 !important;
  cursor: pointer;
}
.hcg_greenSelected {
  background: #28a745 !important;
}
.hcg_amber {
  background: #0f172a !important;
}
.hcg_amber:hover {
  background: #ffc107 !important;
  cursor: pointer;
}
.hcg_amberSelected {
  background: #ffc107 !important;
}
.hcg_red {
  background: #0f172a !important;
  cursor: pointer;
}
.hcg_red:hover {
  background: #dc3545 !important;
  cursor: pointer;
}
.hcg_redSelected {
  background: #dc3545 !important;
  cursor: pointer;
}
.productList {
  width: 100%;
  height: auto;
  flex: 1 1 auto;
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  background: #ffffff;
}
.productListShrunk {
  height: auto !important;
}
.productLine {
  position: relative;
  width: 100%;
  min-height: 56px;
  padding: 6px 8px 6px 42px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 36px;
  align-items: flex-start;
  gap: 10px;
  background: #ffffff;
  margin-bottom: 8px;
}
.productLine::before {
  content: attr(data-rank);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #111827, #374151);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}
.productLineRestricted {
  opacity: 0.45;
  filter: grayscale(0.4);
  cursor: not-allowed;
}
.productLineSelected {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.35);
  color: #1e3a8a;
}
.productLineHidden {
  display: none;
}
.productLine:hover {
  background: #f1f5f9;
  color: #0f172a;
  cursor: pointer;
}
.productLineRestricted:hover {
  background: #ffffff;
  color: inherit;
  cursor: not-allowed;
}
.productImage {
  height: 52px;
  width: 52px;
  margin: 0;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
  font-weight: 999;
  position: relative;
  pointer-events: none;
}
.productImage img {
  width: 44px;
  height: 44px;
  margin: 0;
  max-height: 100%;
  object-fit: contain;
  position: relative;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}
.productName {
  width: auto;
  position: relative;
  margin-left: 0;
  height: auto;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}
.favouriteSelect {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.star {
  visibility: hidden;
  font-size: 30px;
  cursor: pointer;
  float: none;
  left: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.star:before {
  content: "\2606";
  position: relative;
  visibility: visible;
  color: lightgrey;
}
.star:checked:before {
  content: "\2605";
  position: relative;
  color: #ffc107;
}
.cancelProductMenu {
  width: 100%;
  height: 40px;
  background: #ef4444;
  color: white;
  text-align: center;
  line-height: 2.8;
  box-shadow: none;
  position: relative;
}
.cancelProductMenu:hover {
  background: #dc3545;
  cursor: pointer;
}
.originalProduct {
  position: relative;
  height: 100%;
}
.originalProduct img {
  width: 100px;
  height: 85%;
  margin: 10px;
  max-height: 100%;
  object-fit: contain;
  bottom: 5px;
  position: relative;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}

.newProduct {
  position: relative;
  height: 100%;
}
.newProduct img {
  width: 100px;
  height: 85%;
  margin: 10px;
  max-height: 100%;
  object-fit: contain;
  bottom: 5px;
  position: relative;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}
.productImgWrapper {
  padding: 30px;
  width: 80%;
  height: 150px;
  margin: 0px 0.2rem;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
  font-weight: 999;
  position: relative;
  pointer-events: none;
  margin: auto;
}
/* When both images are present */
.productImgWrapper:has(.image-wrapper.target) .image-wrapper.original {
  flex: 0 0 50%; /* Don't grow, don't shrink, width 60% */
}

.productImgWrapper:has(.image-wrapper.target) .image-wrapper.target {
  flex: 0 0 50%; /* Don't grow, don't shrink, width 40% */
  opacity: 0.5;
}

.productImgWrapper:has(.image-wrapper.target) .image-wrapper.target img {
  max-width: 50%; /* Target image is smaller */
}
.productDetailsWrapper {
  width: 100%;
  margin-bottom: 10px;
}
.productChangeWrapper {
  width: 100%;
  position: relative;
}
.productChangeWrapperHidden {
  display: none;
  visibility: hidden;
}
.productDetail {
  position: relative;
  width: 50%;
  height: 22px;
  float: left;
  right: 2px;
  margin: 2px;
  display: flex;
  align-items: center;
  justify-content: right;
}
.productValues {
  position: relative;
  width: 200px;
  /* height: 22px; */
  float: left;
  display: inline-flex;
  margin: 2px;
  display: flex;
  align-items: center;
  justify-content: left;
}
.productValuesHidden {
  display: none;
  visibility: hidden;
}
#defaultPrice {
  float: left;
  bottom: -2px;
  position: relative;
}
#defaultPriceButton {
  height: 20px;
  line-height: 0.5;
  font-size: 10px;
  margin-left: 5px;
  margin-top: -4px;
}
.reportedPriceGreen {
  width: fit-content;
  float: left;
  top: 2px;
  position: relative;
  color: #089c56;
}
.reportedPriceAlert {
  width: fit-content;
  float: left;
  top: 2px;
  position: relative;
  color: #dc3545;
}
#reportedPriceButton {
  height: 20px;
  line-height: 0.5;
  font-size: 10px;
  margin-left: 5px;
  margin-top: -2px;
  float: left;
}
.productCheckbox {
  border: 1px solid grey !important;
  position: relative;
  bottom: -2px;
}
.productValues input {
  margin-left: 5px;
  margin-right: 5px;
}
.product_counts {
  width: 20px;
  padding: 2px;
  text-align: center;
  border: 1px solid #80808069;
}
.product_price {
  border: 1px solid #80808069;
  left: -3px;
  position: relative;
  padding: 2px;
}
.changeActionEmpty {
  position: relative;
  display: inline;
  border-radius: 5px;
  background: #089c56;
  color: white;
  margin-top: 2px;
  margin-left: 5px;
  margin-right: 5px;
  padding-left: 5px;
  padding-right: 5px;
}
.changeActionForced {
  position: relative;
  display: inline;
  border-radius: 5px;
  background: #dc3545;
  color: white;
  margin-top: 2px;
  margin-left: 5px;
  margin-right: 5px;
  padding-left: 5px;
  padding-right: 5px;
}
.changeActionQueued {
  position: relative;
  display: inline;
  border-radius: 5px;
  background: orange;
  color: white;
  margin-top: 2px;
  margin-left: 5px;
  margin-right: 5px;
  padding-left: 5px;
  padding-right: 5px;
}
.planogramRowHidden {
  display: none;
  visibility: hidden;
}

.planogram-table tr[draggable="true"] {
  cursor: move;
}

/* .dragging {
  opacity: 0.5;
  background-color: #f0f0f0;
} */
.image-placeholder {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23778899' class='bi bi-card-image' viewBox='0 0 16 16'%3E%3Cpath d='M6.002 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z'/%3E%3Cpath d='M2.002 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2h-12zm12 1a1 1 0 0 1 1 1v6.5l-3.777-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062L1.002 12V3a1 1 0 0 1 1-1h12z'/%3E%3C/svg%3E");
  width: 32px;
  height: 32px;
}
.planogramSettingsContainerHidden {
  display: none !important;
  visibility: hidden;
}
.planogramSettingsContainer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: fit-content;
  visibility: visible;
  z-index: 10;
  background: white;
  box-shadow: 5px 5px 10px grey;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
}
/* Your main tooltip container styling (from previous answers) */
.item-totals-tooltip {
  --bs-tooltip-bg: white;
  --bs-tooltip-color: #343957;
  --bs-tooltip-max-width: 1000px;
  --bs-tooltip-border-radius: 2px;
  opacity: 1;
  box-shadow: 5px 5px 5px grey;
}

/* Styling for the Bootstrap-generated .tooltip-inner */
.item-totals-tooltip .tooltip-inner {
  width: 100%; /* Ensures this fills the parent tooltip up to its max-width */
  text-align: left;
  font-size: 12px;
  padding: 8px 12px; /* Add internal padding */
  box-sizing: border-box;
}

/* IMPORTANT: Updated CSS for the content wrapper (formerly .salesToolTip, now .sales-tooltip-content) */
.item-totals-tooltip .tooltip-inner .sales-tooltip-content {
  /* REMOVE width: max-content; */
  /* REMOVE height: max-content; (it's often default for block elements) */
  width: 100%; /* Make it fill the .tooltip-inner's width */
  /* background-color: white; - This is already set by --bs-tooltip-bg on the main tooltip */
}

/* CSS for each row within the tooltip */
.item-totals-tooltip .tooltip-inner .tooltip-row {
  position: relative;
  display: block;
}

/* Styles for the label and value spans within the row */
.item-totals-tooltip .tooltip-inner .tooltip-row .tooltip-label {
  flex-grow: 1; /* Allow label to take available space */
  padding-right: 3px; /* Space between label and value */
  white-space: nowrap; /* Prevent label from wrapping if it gets too long, consider overflow-ellipsis */
}

.item-totals-tooltip .tooltip-inner .tooltip-row .tooltip-value {
  flex-shrink: 0; /* Prevents the value from shrinking */
  text-align: right;
  /* Add margin-left if needed for more spacing */
  /* margin-left: auto; */ /* Alternative to push to right, if flex-grow on label isn't enough */
}

/* Your existing sales icon styles */
.salesGreenIcon, .salesRedIcon, .salesAmberIcon {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: bold;
  width: min-content;
  /* border-radius: 50%; */
  /* border: 2px solid rgba(64, 184, 92, 0.534); */
  position: relative;
  line-height: 18px;
  font-family: monospace;
  font-size: small;
  text-align: center;
  font-weight: 900;
  color: white;
}
.salesGreenIcon {
    background-color: #d4edda;
    color: white;
}
.salesRedIcon {
    background-color: #f8d7da;
    color: white;
}
.salesAmberIcon {
  background-color: #fbb907 !important;
    color: white;
}
.item-disabled {
  opacity: 0.55;
  filter: grayscale(0.4);
}
.item-disabled-badge {
  display: none;
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(52, 57, 87, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  z-index: 5;
}
.item-disabled .item-disabled-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.planogram-selection-input {
  width: 60px;
  max-width: 90px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(52, 57, 87, 0.4);
  background: #fff;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.planogramToggleBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.planogramToggleBtn.active {
  background: #2f6bff !important;
  border-color: #2f6bff !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.35) !important;
}

.planogramToggleBtn.active i {
  color: #fff !important;
}

.planogramToggleBtn.active:hover {
  background: #1f56e0 !important;
  border-color: #1f56e0 !important;
  color: #fff !important;
}

.planogramShowAllToggle.active {
  background: #16a34a !important;
  border-color: #16a34a !important;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.35) !important;
}

.planogramSelectionToggle.active {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.35) !important;
}

.planogramSelectionToggle.active {
  background: rgba(52, 57, 87, 0.12);
  border-color: rgba(52, 57, 87, 0.35);
}

[data-planogram-selection-edit="true"] .item_selection span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, 0.55);
  background: rgba(124, 58, 237, 0.16);
  color: #241a4c;
  font-weight: 700;
}

.planogramInnerWrapper[data-planogram-theme="dark"] [data-planogram-selection-edit="true"] .item_selection span,
.planogramInnerWrapper[data-planogram-theme="neo-dark"] [data-planogram-selection-edit="true"] .item_selection span,
.planogramInnerWrapper[data-planogram-theme="cyber-slate"] [data-planogram-selection-edit="true"] .item_selection span,
.planogramInnerWrapper[data-planogram-theme="prism-dark"] [data-planogram-selection-edit="true"] .item_selection span,
.planogramInnerWrapper[data-planogram-theme="aurora-noir"] [data-planogram-selection-edit="true"] .item_selection span,
.planogramInnerWrapper[data-planogram-theme="obsidian-grid"] [data-planogram-selection-edit="true"] .item_selection span,
.planogramInnerWrapper[data-planogram-theme="ember-night"] [data-planogram-selection-edit="true"] .item_selection span,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="dark"] .item_selection span,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="neo-dark"] .item_selection span,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="cyber-slate"] .item_selection span,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="prism-dark"] .item_selection span,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="aurora-noir"] .item_selection span,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="obsidian-grid"] .item_selection span,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="ember-night"] .item_selection span {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35) !important;
}

.planogramInnerWrapper[data-planogram-theme="dark"] [data-planogram-selection-edit="true"] .item_selection,
.planogramInnerWrapper[data-planogram-theme="neo-dark"] [data-planogram-selection-edit="true"] .item_selection,
.planogramInnerWrapper[data-planogram-theme="cyber-slate"] [data-planogram-selection-edit="true"] .item_selection,
.planogramInnerWrapper[data-planogram-theme="prism-dark"] [data-planogram-selection-edit="true"] .item_selection,
.planogramInnerWrapper[data-planogram-theme="aurora-noir"] [data-planogram-selection-edit="true"] .item_selection,
.planogramInnerWrapper[data-planogram-theme="obsidian-grid"] [data-planogram-selection-edit="true"] .item_selection,
.planogramInnerWrapper[data-planogram-theme="ember-night"] [data-planogram-selection-edit="true"] .item_selection,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="dark"] .item_selection,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="neo-dark"] .item_selection,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="cyber-slate"] .item_selection,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="prism-dark"] .item_selection,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="aurora-noir"] .item_selection,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="obsidian-grid"] .item_selection,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="ember-night"] .item_selection {
  color: #f8fafc !important;
  background: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.planogramInnerWrapper[data-planogram-theme="dark"] .planogram-selection-input,
.planogramInnerWrapper[data-planogram-theme="neo-dark"] .planogram-selection-input,
.planogramInnerWrapper[data-planogram-theme="cyber-slate"] .planogram-selection-input,
.planogramInnerWrapper[data-planogram-theme="prism-dark"] .planogram-selection-input,
.planogramInnerWrapper[data-planogram-theme="aurora-noir"] .planogram-selection-input,
.planogramInnerWrapper[data-planogram-theme="obsidian-grid"] .planogram-selection-input,
.planogramInnerWrapper[data-planogram-theme="ember-night"] .planogram-selection-input,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="dark"] .planogram-selection-input,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="neo-dark"] .planogram-selection-input,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="cyber-slate"] .planogram-selection-input,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="prism-dark"] .planogram-selection-input,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="aurora-noir"] .planogram-selection-input,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="obsidian-grid"] .planogram-selection-input,
[data-planogram-selection-edit="true"] .planogramInnerWrapper[data-planogram-theme="ember-night"] .planogram-selection-input {
  background: rgba(15, 23, 42, 0.9) !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

.planogramInnerWrapper[data-planogram-theme="lite"] [data-planogram-selection-edit="true"] .item_selection span,
.planogramInnerWrapper[data-planogram-theme="neu-chalk"] [data-planogram-selection-edit="true"] .item_selection span,
.planogramInnerWrapper[data-planogram-theme="liquid-mercury"] [data-planogram-selection-edit="true"] .item_selection span {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.45);
  color: #241a4c;
}

.planogram-template-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.planogram-template-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(52, 57, 87, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

.planogram-template-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #343957;
}

#planogram-save-template-overlay .popup-container,
#planogram-template-overlay .popup-container {
  width: min(560px, 92vw);
  height: auto;
  max-height: 80vh;
  border-radius: 18px;
  overflow: hidden;
  background: #f8f9ff;
  box-shadow: 0 22px 60px rgba(20, 35, 56, 0.3);
}

#planogram-save-template-overlay.popup-overlay,
#planogram-template-overlay.popup-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
}

#planogram-save-template-overlay .popup-content,
#planogram-template-overlay .popup-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 22px;
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 55%, #fbfbff 100%);
}

#planogram-save-template-overlay .popup-title-bar,
#planogram-template-overlay .popup-title-bar {
  padding: 14px 20px;
  border-bottom: none;
  background: linear-gradient(135deg, #1f2a63, #4058d6);
  color: #fff;
}

#planogram-save-template-overlay .popup-title-bar h3,
#planogram-template-overlay .popup-title-bar h3 {
  font-size: 1.15rem;
  letter-spacing: 0.02rem;
}

#planogram-save-template-overlay .popup-close-btn,
#planogram-template-overlay .popup-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1.2rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

#planogram-save-template-overlay .popup-close-btn:hover,
#planogram-template-overlay .popup-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: none;
}

#planogram-save-template-overlay .productClose i,
#planogram-template-overlay .productClose i {
  color: #fff;
}

#planogram-save-template-overlay .productClose:hover i,
#planogram-template-overlay .productClose:hover i {
  color: #dc3545;
}

#planogram-save-template-overlay .popup-input {
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid #d1d5e1;
  background: #fff;
  font-size: 0.98rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

#planogram-save-template-overlay .popup-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#planogram-save-template-overlay .popup-input:focus {
  border-color: #4058d6;
  box-shadow: 0 0 0 3px rgba(64, 88, 214, 0.18);
  outline: none;
}
