/* Items list renewal page */
body.items-page {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  background: #fff !important;
  overflow-x: hidden;
}

body.items-page .adminuiux-wrap {
  width: 100vw !important;
  max-width: 430px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow-x: hidden;
}

body.items-page .adminuiux-header .container-fluid {
  width: 100% !important;
  max-width: 430px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.items-main {
  box-sizing: border-box;
  width: 100vw !important;
  max-width: 430px !important;
  min-height: 100vh;
  margin: 0 auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  background: #fff;
  padding: 20px 15px 120px !important;
  overflow-x: hidden;
}

body.items-page .adminuiux-wrap .adminuiux-content.has-sidebar.items-main {
  padding: 20px 15px 120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 430px) {
  body.items-page .adminuiux-wrap,
  body.items-page .adminuiux-header .container-fluid {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc((100vw - 100%) / 2) !important;
    margin-right: calc((100vw - 100%) / 2) !important;
  }

  body.items-page .adminuiux-wrap .adminuiux-content.has-sidebar.items-main {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

.items-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
}

.items-hero-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.items-hero-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 46px;
}

.items-hero-text {
  min-width: 0;
  margin-left: 10px;
}

.items-hero-label {
  color: #6a6e74;
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: -0.5px;
  margin-bottom: 3px;
}

.items-hero h1 {
  color: #121314;
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.6px;
  margin: 0;
}


.items-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
}

.items-page-title-wrap {
  min-width: 0;
}

.items-page-title-wrap h1 {
  color: #121314;
  font-size: 22px;
  font-weight: 500;
  line-height: 27px;
  letter-spacing: -0.7px;
  margin: 0 0 4px;
}

.items-page-title-wrap p {
  color: #858c94;
  font-size: 13px;
  font-weight: 400;
  line-height: 17px;
  letter-spacing: -0.4px;
  margin: 0;
}

.items-add-button {
  min-width: 64px;
  height: 30px;
  border: 1px solid #e2e4e9;
  border-radius: 8px;
  background: #fff;
  color: #000 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -0.5px;
  text-decoration: none !important;
  padding: 0 8px;
}

.items-date-section {
  display: block;
  margin: 0 0 12px;
  padding: 0;
}

.items-month-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 5px;
}

.items-month-picker {
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.items-month-arrow {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2f6fff;
  display: inline-block;
  position: relative;
  flex: 0 0 18px;
}

.items-month-arrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.items-date-chip-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.items-date-chip-row::-webkit-scrollbar {
  display: none;
}

.items-date-empty {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  background: #f7f9fc;
  color: #6e7780;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.items-shortcuts {
  margin: 0 0 15px;
  overflow: hidden;
}

.items-chip-track {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.items-chip-track::-webkit-scrollbar {
  display: none;
}

.items-date-chip {
  width: 48px;
  min-width: 48px;
  height: 46px;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  background: #fff;
  color: #888;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 0 4px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.items-date-week,
.items-date-chip strong {
  display: block;
  font-size: 13px;
}

.items-date-week {
  font-weight: 500;
  line-height: 18px;
  position: relative;
  min-width: 22px;
}

.items-date-week::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 30px;
  height: 1px;
  border-radius: 999px;
  background: #e1e5ec;
  transform: translateX(-50%);
}

.items-date-chip strong {
  font-weight: 500;
  line-height: 14px;
  margin-top: 4px;
}

.items-date-chip.is-active {
  border-color: #4279ff;
  background: #4279ff;
  background-image: linear-gradient(180deg, #568bff 0%, #4279ff 48%, #326cf4 100%);
  color: #fff;
}

.items-date-chip.is-active .items-date-week::after {
  background: rgba(255, 255, 255, 0.58);
}

.items-date-chip.is-today:not(.is-active) {
  border-color: #dbe6ff;
  color: #2f6fff;
}

.items-date-chip.is-today:not(.is-active) .items-date-week::after {
  background: #dbe6ff;
}


.items-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
}

.items-filter-button {
  height: 34px;
  border: 1px solid #edf0f3;
  border-radius: 10px;
  background: #fff;
  color: #6e7780;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
}

.items-filter-button i {
  font-size: 12px;
  line-height: 1;
}

.items-filter-button.is-active {
  border-color: #3182f6;
  background: rgba(49, 130, 246, .08);
  color: #2368d7;
}

.items-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 15px;
}

.items-count {
  color: #6e7780;
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -0.4px;
}

.items-count strong {
  color: #121314;
  font-size: 15px;
  font-weight: 500;
  padding: 0 2px;
}

.items-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}

.items-tool-button {
  height: 38px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.4px;
}

.items-tool-button.is-copy { background: #436bed; }
.items-tool-button.is-refresh { background: #2f80ed; }
.items-tool-button.is-start { background: #15c942; }
.items-tool-button.is-stop { background: #fd3b3b; }
.items-tool-button.is-link { background: #ffa128; color: #fff; }

.items-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.items-empty-card,
.items-product-card {
  width: 100%;
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}

.items-empty-card {
  min-height: 160px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.items-empty-title {
  color: #121314;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.items-empty-desc {
  color: #858c94;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.4px;
}


.items-list,
.items-product-card,
.items-product-card * {
  box-sizing: border-box;
}

.items-product-card {
  max-width: 100%;
  overflow: hidden;
}

.items-card-top,
.items-stock-box,
.items-stat-grid,
.items-card-actions {
  min-width: 0;
  max-width: 100%;
}

.items-card-head,
.items-meta-row,
.items-stock-control {
  min-width: 0;
}

.items-card-head h2,
.items-meta-row strong,
.items-stock-control input {
  min-width: 0;
}

.items-thumb a,
.items-thumb p,
.items-thumb div,
.items-thumb span {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.items-product-card {
  border: 1px solid #eef0f4;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.items-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.items-thumb {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  background: #f5f6f7;
  overflow: hidden;
  flex: 0 0 92px;
}

.items-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.items-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a7ae;
  font-size: 11px;
}

.items-card-info {
  min-width: 0;
  flex: 1 1 auto;
}

.items-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.items-card-head h2 {
  color: #121314;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.5px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.items-status-pill {
  flex: 0 0 auto;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.4px;
}

.items-status-pill.is-open { background: #15c942; }
.items-status-pill.is-ready { background: #858c94; }

.items-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.items-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #6e7780;
  font-size: 12px;
  line-height: 15px;
  letter-spacing: -0.4px;
}

.items-meta-row strong {
  color: #121314;
  font-weight: 600;
  text-align: right;
}

.items-stock-box {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8px;
  margin: 13px 0 0;
}

.items-stock-control {
  min-height: 40px;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  margin: 0;
}

.items-stock-control span {
  color: #6e7780;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.items-stock-control input {
  min-width: 0;
  flex: 1 1 auto;
  height: 30px;
  border: 1px solid #3182f6 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #121314 !important;
  text-align: right;
  padding: 0 8px !important;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none !important;
}

.items-stock-control em {
  color: #6e7780;
  font-style: normal;
  font-size: 12px;
}

.items-stock-control input.is-saved {
  background: #edf6ff !important;
}

.items-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 0;
}

.items-stat-grid div {
  border-radius: 12px;
  background: #f5f6f7;
  padding: 8px 4px;
  text-align: center;
}

.items-stat-grid span {
  display: block;
  color: #6e7780;
  font-size: 11px;
  font-weight: 500;
  line-height: 13px;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.items-stat-grid strong {
  display: block;
  color: #121314;
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: -0.4px;
}

.items-card-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 0;
}

.items-card-button {
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f5f6f7;
  color: #303441;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.4px;
}

.items-card-button.is-open { background: #15c942; color: #fff; }
.items-card-button.is-close { background: #858c94; color: #fff; }
.items-card-button.is-edit { background: #edf6ff; color: #1289ff; }
.items-card-button.is-copy { background: #eff0ff; color: #5860ff; }
.items-card-button.is-delete { background: #fff6f6; color: #fd3b3b; }

@media (max-width: 360px) {
  .items-card-top {
    flex-direction: column;
  }

  .items-thumb {
    width: 100%;
    height: 160px;
  }

  .items-stat-grid,
  .items-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.items-page-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
}

.items-add-button {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: #3182f6;
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 8px 18px rgba(49, 130, 246, 0.18);
}

.items-add-button:hover,
.items-add-button:focus,
.items-add-button:active {
  background: #3182f6 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(49, 130, 246, 0.18) !important;
}

.items-toolbar {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.items-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 3px;
}

.items-tool-button {
  width: 78px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  color: #fff !important;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 8px;
  box-shadow: none !important;
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: -0.45px;
  white-space: nowrap;
}

.items-tool-button span {
  color: inherit !important;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.items-tool-button .items-tool-svg {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
  color: inherit !important;
}

.items-tool-button .items-tool-svg svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.items-tool-button .items-tool-svg i {
  display: block;
  font-size: 15px;
  line-height: 1;
}

.items-tool-button.is-copy { background: #436bed !important; }
.items-tool-button.is-refresh { background: #2f80ed !important; }
.items-tool-button.is-start { background: #15c942 !important; }
.items-tool-button.is-stop { background: #fd3b3b !important; }
.items-tool-button.is-link { background: #303441 !important; }

.items-tool-button:hover,
.items-tool-button:focus,
.items-tool-button:active {
  color: #fff !important;
  box-shadow: none !important;
}

.items-tool-button.is-copy:hover,
.items-tool-button.is-copy:focus,
.items-tool-button.is-copy:active { background: #436bed !important; }
.items-tool-button.is-refresh:hover,
.items-tool-button.is-refresh:focus,
.items-tool-button.is-refresh:active { background: #2f80ed !important; }
.items-tool-button.is-start:hover,
.items-tool-button.is-start:focus,
.items-tool-button.is-start:active { background: #15c942 !important; }
.items-tool-button.is-stop:hover,
.items-tool-button.is-stop:focus,
.items-tool-button.is-stop:active { background: #fd3b3b !important; }
.items-tool-button.is-link:hover,
.items-tool-button.is-link:focus,
.items-tool-button.is-link:active { background: #303441 !important; }

.items-tool-button:disabled,
.items-tool-button.is-loading {
  opacity: 0.72;
  cursor: wait;
}

.items-tool-button.is-loading .items-tool-svg {
  animation: itemsRefreshSpin 0.8s linear infinite;
}

@keyframes itemsRefreshSpin {
  to { transform: rotate(360deg); }
}

.items-add-button,
.items-add-button:hover,
.items-add-button:focus,
.items-add-button:active {
  box-shadow: none !important;
}


/* Rich item card: includes all product/order metrics */
.items-rich-card {
  border: 1px solid #edf0f3 !important;
  box-shadow: none !important;
  padding: 14px !important;
}

.items-rich-main {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.items-rich-thumb {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 12px;
}

.items-rich-body {
  min-width: 0;
  flex: 1 1 auto;
}

.items-rich-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.items-rich-title-wrap {
  min-width: 0;
  flex: 1 1 auto;
}

.items-rich-title-wrap h2 {
  color: #121314;
  font-size: 17px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: -0.55px;
  margin: 0 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.items-rich-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.items-rich-badges .items-status-pill {
  height: 24px;
  border-radius: 7px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
}

.items-order-control {
  flex: 0 0 auto;
  height: 32px;
  border: 1px solid #edf0f3;
  border-radius: 9px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 6px;
  margin: 0;
}

.items-drag-dot {
  color: #b0b8c1;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -5px;
  transform: rotate(90deg);
}

.items-order-control input {
  width: 28px;
  height: 24px;
  border: 0 !important;
  background: transparent !important;
  color: #121314 !important;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 0 !important;
  box-shadow: none !important;
}

.items-rich-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6e7780;
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
  letter-spacing: -0.4px;
  margin: 10px 0 0;
}

.items-rich-sub span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.items-rich-sub img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  margin-right: 5px;
}

.items-price-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 12px 0 0;
  border-top: 1px solid #edf0f3;
  border-bottom: 1px solid #edf0f3;
}

.items-price-board div {
  min-width: 0;
  padding: 10px 8px;
  border-right: 1px solid #edf0f3;
}

.items-price-board div:last-child {
  border-right: 0;
}

.items-price-board span,
.items-qty-strip span,
.items-qty-edit span {
  display: block;
  color: #6e7780;
  font-size: 11px;
  font-weight: 500;
  line-height: 13px;
  letter-spacing: -0.35px;
  margin-bottom: 5px;
}

.items-price-board strong {
  display: block;
  color: #121314;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  letter-spacing: -0.45px;
  white-space: nowrap;
}

.items-price-board .is-profit strong,
.items-price-board .is-margin strong {
  color: #15c942;
}

.items-qty-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(82px, 1fr));
  gap: 0;
  margin: 12px -14px 0;
  padding: 10px 14px 0;
  border-top: 1px solid #edf0f3;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.items-qty-strip::-webkit-scrollbar {
  height: 0;
}

.items-qty-strip > div,
.items-qty-edit {
  min-height: 48px;
  border-right: 1px solid #edf0f3;
  padding: 0 9px;
  margin: 0;
}

.items-qty-strip > div:last-child {
  border-right: 0;
}

.items-qty-strip strong {
  color: #121314;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  letter-spacing: -0.45px;
  white-space: nowrap;
}

.items-qty-edit {
  display: block;
}

.items-qty-edit input {
  width: 42px;
  height: 24px;
  border: 1px solid #b8c2ff !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #121314 !important;
  text-align: center;
  padding: 0 4px !important;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none !important;
}

.items-qty-edit em {
  color: #6e7780;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  margin-left: 2px;
}

.items-rich-actions {
  margin-top: 12px;
}

@media (max-width: 380px) {
  .items-rich-main {
    gap: 9px;
  }

  .items-rich-thumb {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .items-price-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .items-price-board div:nth-child(2) {
    border-right: 0;
  }

  .items-price-board div:nth-child(-n+2) {
    border-bottom: 1px solid #edf0f3;
  }
}


/* KREAM-like compact product card layout */
.items-rich-card {
  padding: 14px !important;
  border: 1px solid #edf0f3 !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  background: #fff !important;
}

.items-kream-head {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.items-kream-info {
  min-width: 0;
  flex: 1 1 auto;
}

.items-kream-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.items-kream-title-line h2 {
  min-width: 0;
  color: #121314;
  font-size: 17px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: -0.55px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.items-kream-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.items-kream-badges .items-status-pill {
  height: 24px;
  border-radius: 7px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
}

.items-kream-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6e7780;
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
  letter-spacing: -0.4px;
  margin-top: 9px;
}

.items-kream-meta span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.items-kream-meta img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  margin-right: 5px;
}

.items-rich-thumb {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 12px;
}

.items-order-control {
  flex: 0 0 auto;
  height: 30px;
  border: 1px solid #edf0f3;
  border-radius: 9px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  margin: 0;
}

.items-order-control span {
  color: #8b95a1;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.items-order-control input {
  width: 26px;
  height: 22px;
  border: 0 !important;
  background: transparent !important;
  color: #121314 !important;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 0 !important;
  box-shadow: none !important;
}

.items-kream-price {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 13px;
  border-top: 1px solid #edf0f3;
  border-bottom: 1px solid #edf0f3;
}

.items-kream-price > div {
  min-width: 0;
  padding: 10px 8px;
  border-right: 1px solid #edf0f3;
}

.items-kream-price > div:last-child {
  border-right: 0;
}

.items-kream-price span,
.items-kream-inventory span,
.items-kream-status span,
.items-stock-inline span {
  display: block;
  color: #6e7780;
  font-size: 11px;
  font-weight: 500;
  line-height: 13px;
  letter-spacing: -0.35px;
  margin-bottom: 5px;
}

.items-kream-price strong,
.items-kream-inventory strong,
.items-kream-status strong {
  display: block;
  color: #121314;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  letter-spacing: -0.45px;
  white-space: nowrap;
}

.items-kream-price .is-profit strong,
.items-kream-price .is-margin strong {
  color: #15c942;
}

.items-kream-inventory {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.items-kream-inventory > div,
.items-stock-inline {
  min-width: 0;
  min-height: 50px;
  border-radius: 12px;
  background: #f8fafc;
  padding: 8px 10px;
  margin: 0;
}

.items-stock-inline > div {
  display: flex;
  align-items: center;
  gap: 3px;
}

.items-stock-inline input {
  width: 46px;
  height: 24px;
  border: 1px solid #b8c2ff !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #121314 !important;
  text-align: center;
  padding: 0 4px !important;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none !important;
}

.items-stock-inline em {
  color: #6e7780;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
}

.items-kream-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 10px;
  border: 1px solid #edf0f3;
  border-radius: 12px;
  overflow: hidden;
}

.items-kream-status > div {
  min-width: 0;
  padding: 9px 6px;
  text-align: center;
  border-right: 1px solid #edf0f3;
}

.items-kream-status > div:last-child {
  border-right: 0;
}

.items-kream-status span {
  margin-bottom: 4px;
}

.items-rich-actions {
  margin-top: 12px;
}

@media (max-width: 380px) {
  .items-kream-head {
    gap: 9px;
  }

  .items-rich-thumb {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .items-kream-price {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .items-kream-price > div:nth-child(2) {
    border-right: 0;
  }

  .items-kream-price > div:nth-child(-n+2) {
    border-bottom: 1px solid #edf0f3;
  }

  .items-kream-inventory {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .items-kream-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .items-kream-status > div:nth-child(2) {
    border-right: 0;
  }

  .items-kream-status > div:nth-child(-n+2) {
    border-bottom: 1px solid #edf0f3;
  }
}


/* Compact product card overrides */
.items-rich-card {
  padding: 12px !important;
}

.items-list {
  gap: 9px;
}

.items-kream-head {
  gap: 10px;
}

.items-rich-thumb {
  width: 62px !important;
  height: 62px !important;
  flex-basis: 62px !important;
  border-radius: 10px !important;
}

.items-kream-title-line h2 {
  font-size: 15px;
  line-height: 19px;
}

.items-kream-badges {
  margin-top: 4px;
}

.items-kream-badges .items-status-pill {
  height: 21px;
  border-radius: 6px;
  padding: 0 7px;
  font-size: 11px;
  line-height: 21px;
}

.items-kream-meta {
  margin-top: 6px;
  font-size: 11px;
  gap: 8px;
}

.items-order-control {
  height: 27px;
  border-radius: 8px;
}

.items-compact-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #edf0f3;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
  background: #fff;
}

.items-compact-info > div,
.items-compact-info > label {
  min-width: 0;
  min-height: 40px;
  padding: 7px 7px;
  border-right: 1px solid #edf0f3;
  border-bottom: 1px solid #edf0f3;
  margin: 0;
  background: #fff;
}

.items-compact-info > div:nth-child(4n),
.items-compact-info > label:nth-child(4n) {
  border-right: 0;
}

.items-compact-info > div:nth-last-child(-n+3) {
  border-bottom: 0;
}

.items-compact-info span,
.items-compact-info .items-stock-inline span {
  display: block;
  color: #6e7780;
  font-size: 10px;
  font-weight: 500;
  line-height: 12px;
  letter-spacing: -0.35px;
  margin-bottom: 3px;
}

.items-compact-info strong {
  display: block;
  color: #121314;
  font-size: 12px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.items-compact-info .is-profit strong,
.items-compact-info .is-margin strong {
  color: #15c942;
}

.items-compact-info .items-stock-inline > div {
  display: flex;
  align-items: center;
  gap: 2px;
}

.items-compact-info .items-stock-inline input {
  width: 36px;
  height: 20px;
  border: 1px solid #b8c2ff !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #121314 !important;
  text-align: center;
  padding: 0 3px !important;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none !important;
}

.items-compact-info .items-stock-inline em {
  color: #6e7780;
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
}

.items-rich-actions {
  margin-top: 9px !important;
}

.items-card-button {
  height: 32px;
}

@media (max-width: 380px) {
  .items-compact-info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .items-compact-info > div,
  .items-compact-info > label {
    border-right: 1px solid #edf0f3;
    border-bottom: 1px solid #edf0f3;
  }

  .items-compact-info > div:nth-child(3n),
  .items-compact-info > label:nth-child(3n) {
    border-right: 0;
  }
}


.items-rich-thumb {
  position: relative;
}

.items-thumb-badges {
  position: absolute;
  left: 5px;
  top: 5px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  pointer-events: none;
}

.items-thumb-badges .items-status-pill,
.items-thumb-badges .items-time-sale-pill,
.items-thumb-badges .items-tax-pill {
  height: 17px;
  border-radius: 5px;
  padding: 0 5px;
  font-size: 9px;
  font-weight: 600;
  line-height: 17px;
  box-shadow: none;
}

.items-thumb-badges .items-tax-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 243, 255, 0.92);
  color: #436bed;
}

.items-kream-badges {
  display: none !important;
}


/* Force image overlay badges */
.items-thumb.items-rich-thumb {
  position: relative !important;
  overflow: hidden !important;
}

.items-thumb.items-rich-thumb > img {
  position: relative;
  z-index: 1;
}

.items-thumb-badges {
  position: absolute !important;
  left: 4px !important;
  top: 4px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 5 !important;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 3px !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

.items-thumb-badges .items-status-pill,
.items-thumb-badges .items-time-sale-pill,
.items-thumb-badges .items-tax-pill {
  position: static !important;
  width: auto !important;
  min-width: auto !important;
  height: 16px !important;
  border-radius: 999px !important;
  padding: 0 5px !important;
  margin: 0 !important;
  font-size: 8.5px !important;
  font-weight: 600 !important;
  line-height: 16px !important;
  letter-spacing: -0.3px !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.items-thumb-badges .items-status-pill.is-open {
  background: rgba(21, 201, 66, 0.92) !important;
  color: #fff !important;
}

.items-thumb-badges .items-status-pill.is-ready {
  background: rgba(48, 52, 65, 0.72) !important;
  color: #fff !important;
}

.items-thumb-badges .items-time-sale-pill {
  background: rgba(255, 122, 0, 0.94) !important;
  color: #fff !important;
}

.items-thumb-badges .items-time-sale-pill i {
  font-size: 8px !important;
  line-height: 1 !important;
  margin-right: 2px !important;
}

.items-thumb-badges .items-tax-pill {
  background: rgba(67, 107, 237, 0.92) !important;
  color: #fff !important;
}


/* Bigger product image and content-width badges */
.items-rich-thumb,
.items-thumb.items-rich-thumb {
  width: 92px !important;
  height: 92px !important;
  flex: 0 0 92px !important;
  border-radius: 13px !important;
}

.items-thumb-badges {
  width: fit-content !important;
  max-width: calc(100% - 8px) !important;
  flex-wrap: wrap !important;
}

.items-thumb-badges .items-status-pill,
.items-thumb-badges .items-time-sale-pill,
.items-thumb-badges .items-tax-pill {
  flex: 0 0 auto !important;
  width: fit-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 18px !important;
  line-height: 18px !important;
  padding: 0 6px !important;
  font-size: 9px !important;
}

@media (max-width: 380px) {
  .items-rich-thumb,
  .items-thumb.items-rich-thumb {
    width: 82px !important;
    height: 82px !important;
    flex-basis: 82px !important;
  }
}


/* Keep thumbnail badges in one horizontal row */
.items-thumb-badges {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 3px !important;
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
}

.items-thumb-badges .items-status-pill,
.items-thumb-badges .items-time-sale-pill,
.items-thumb-badges .items-tax-pill {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}


/* Slightly larger thumbnail */
.items-rich-thumb,
.items-thumb.items-rich-thumb {
  width: 102px !important;
  height: 102px !important;
  flex-basis: 102px !important;
}

@media (max-width: 380px) {
  .items-rich-thumb,
  .items-thumb.items-rich-thumb {
    width: 92px !important;
    height: 92px !important;
    flex-basis: 92px !important;
  }
}


/* Price board lives inside product info area */
.items-kream-info .items-kream-price {
  margin-top: 9px !important;
  border: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  background: #fff !important;
}

.items-kream-info .items-kream-price > div {
  padding: 0 7px !important;
  border-right: 1px solid #edf0f3 !important;
  border-bottom: 0 !important;
}

.items-kream-info .items-kream-price > div:first-child {
  padding-left: 0 !important;
}

.items-kream-info .items-kream-price > div:last-child {
  border-right: 0 !important;
  padding-right: 0 !important;
}

.items-kream-info .items-kream-price span {
  font-size: 10px !important;
  line-height: 12px !important;
  margin-bottom: 3px !important;
}

.items-kream-info .items-kream-price strong {
  font-size: 12px !important;
  line-height: 14px !important;
}

.items-compact-info {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}


/* Stock is larger, status metrics are single-line */
.items-stock-wide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.items-stock-wide.is-master {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.items-stock-wide.has-road {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.items-stock-wide > label,
.items-stock-wide > div {
  min-height: 42px;
  border-radius: 11px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 10px;
  margin: 0;
}

.items-stock-wide span {
  color: #6e7780;
  font-size: 11px;
  font-weight: 500;
  line-height: 13px;
  letter-spacing: -0.35px;
  white-space: nowrap;
}

.items-stock-wide strong {
  color: #121314;
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.items-stock-wide label > div {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.items-stock-wide input {
  width: 58px;
  height: 30px;
  border: 1px solid #b8c2ff !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #121314 !important;
  text-align: center;
  padding: 0 5px !important;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none !important;
}

.items-stock-wide input.items-road-amount-input {
  width: 48px;
  height: 28px;
  border-color: #d9dee8 !important;
  color: #121314 !important;
}


.items-road-sales-value {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.items-road-stepper {
  width: 90px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 30px 30px 30px;
  align-items: center;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.items-road-stepper .items-road-qty-button {
  width: 100%;
  height: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #6c6c6c !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  padding: 0 !important;
}

.items-road-stepper .items-road-qty-button:disabled {
  color: #c6cbd3 !important;
  cursor: not-allowed;
}

.items-stock-wide .items-road-stepper input.items-road-amount-input {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #000 !important;
  text-align: center;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  appearance: textfield;
}

.items-road-stepper input.items-road-amount-input::-webkit-outer-spin-button,
.items-road-stepper input.items-road-amount-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.items-road-stepper.is-saving {
  opacity: 0.65;
}

.items-road-amount-input.is-saving {
  opacity: 0.65;
}

.items-option-stock-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.items-option-stock-card {
  padding: 8px;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  background: #fbfcfe;
}

.items-option-stock-title {
  color: #16181d;
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.items-option-price-board {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 6px 0 7px !important;
  border: 1px solid #edf2f7 !important;
  border-radius: 10px !important;
  background: #fff !important;
  overflow: hidden;
}

.items-option-price-board > div {
  min-height: 30px !important;
  padding: 6px 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
}

.items-option-price-board > div:nth-child(odd) {
  border-right: 1px solid #edf2f7 !important;
}

.items-option-price-board > div:nth-child(-n+2) {
  border-bottom: 1px solid #edf2f7 !important;
}

.items-option-price-board span {
  margin: 0 !important;
  color: #6e7780 !important;
  font-size: 10.5px !important;
  line-height: 13px !important;
  white-space: nowrap !important;
}

.items-option-price-board strong {
  color: #121314 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 14px !important;
  white-space: nowrap !important;
  text-align: right !important;
}

.items-stock-wide.has-road.items-option-stock-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  margin-top: 0 !important;
  gap: 6px !important;
}

.items-stock-wide.has-road.items-option-stock-wide > label,
.items-stock-wide.has-road.items-option-stock-wide > div {
  min-height: 40px !important;
  background: #fff !important;
}

.items-stock-wide.has-road.items-option-stock-wide .items-road-sales-value {
  justify-content: flex-end;
}

.items-option-road-stepper {
  width: 96px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 30px 36px 30px;
  align-items: center;
  border: 1px solid #e2e7ef;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.items-option-road-stepper .items-option-road-qty-button {
  width: 100%;
  height: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #6c6c6c !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  padding: 0 !important;
}

.items-option-road-stepper .items-option-road-qty-button:disabled {
  color: #c6cbd3 !important;
  cursor: not-allowed;
}

.items-option-road-stepper input.items-option-road-amount-input {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #000 !important;
  text-align: center;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  appearance: textfield;
}

.items-option-road-stepper input.items-option-road-amount-input::-webkit-outer-spin-button,
.items-option-road-stepper input.items-option-road-amount-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.items-option-road-stepper.is-saving,
.items-option-road-amount-input.is-saving {
  opacity: 0.65;
}

.items-option-road-empty {
  padding: 8px;
  border-radius: 9px;
  background: #fff;
  color: #9aa3af;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.items-stock-wide em {
  color: #6e7780;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
}

.items-line-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #edf0f3;
  border-radius: 11px;
  overflow: hidden;
  margin-top: 8px;
}

.items-line-status > div {
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 5px;
  border-right: 1px solid #edf0f3;
}

.items-line-status > div:last-child {
  border-right: 0;
}

.items-line-status span {
  color: #6e7780;
  font-size: 10px;
  font-weight: 500;
  line-height: 12px;
  letter-spacing: -0.35px;
  white-space: nowrap;
}

.items-line-status strong {
  color: #121314;
  font-size: 12px;
  font-weight: 600;
  line-height: 14px;
  white-space: nowrap;
}

.items-option-line-status {
  margin-top: 7px;
  border-color: #edf2f7;
  background: #fff;
}

.items-option-line-status > div {
  min-height: 30px;
  padding: 0 4px;
  border-color: #edf2f7;
}

.items-option-line-status span {
  font-size: 9.5px;
  font-weight: 500;
}

.items-option-line-status strong {
  font-size: 11px;
  font-weight: 500;
}

@media (max-width: 380px) {
  .items-stock-wide {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .items-line-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .items-line-status > div:nth-child(2) {
    border-right: 0;
  }

  .items-line-status > div:nth-child(-n+2) {
    border-bottom: 1px solid #edf0f3;
  }
}


/* Sort moved to modal */
.items-toolbar {
  flex-wrap: wrap;
}

.items-sort-open {
  flex: 0 0 auto;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: #303441;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.4px;
  padding: 0 10px;
}

.items-title-meta {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  max-width: 105px;
}

.items-title-meta span {
  max-width: 105px;
  color: #6e7780;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 13px;
  letter-spacing: -0.35px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.items-sort-modal .modal-dialog {
  width: calc(100% - 30px);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.items-sort-modal .modal-content {
  border: 0;
  border-radius: 18px;
  box-shadow: none;
  overflow: hidden;
}

.items-sort-modal .modal-title {
  color: #121314;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.items-sort-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.items-sort-row {
  min-height: 46px;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 8px 12px;
}

.items-sort-name {
  min-width: 0;
  color: #121314;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.items-sort-row .input-orders {
  flex: 0 0 58px;
  width: 58px;
  height: 30px;
  border: 1px solid #b8c2ff !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #121314 !important;
  text-align: center;
  padding: 0 6px !important;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none !important;
}

.items-sort-empty {
  min-height: 80px;
  border-radius: 14px;
  background: #f8fafc;
  color: #8b95a1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.items-sort-modal .modal-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 0;
}

.items-sort-close {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: #3182f6;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.items-order-control {
  display: none !important;
}


/* Toolbar lighter buttons and event toggle */
.items-tool-button,
.items-sort-open {
  font-weight: 500 !important;
}

.items-tool-button span {
  font-weight: 500 !important;
}

.items-event-toggle {
  height: 44px;
  border-radius: 14px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  margin: -4px 0 12px;
}

.items-event-toggle div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.items-event-toggle span {
  color: #6e7780;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.items-event-toggle strong {
  color: #121314;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.45px;
}

.items-event-switch {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  margin: 0;
}

.items-event-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.items-event-switch > span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8dde4;
  transition: background-color 0.18s ease;
}

.items-event-switch > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease;
}

.items-event-switch input:checked + span {
  background: #15c942;
}

.items-event-switch input:checked + span::after {
  transform: translateX(20px);
}


.items-actions .items-sort-open {
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: #303441;
  color: #fff;
  font-size: 11px;
  font-weight: 500 !important;
  letter-spacing: -0.4px;
  padding: 0 10px;
}


.items-kream-category {
  color: #6e7780;
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: -0.35px;
  margin: 0 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.items-title-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.items-title-left {
  min-width: 0;
  flex: 1 1 auto;
}

.items-title-left h2 {
  color: #121314;
  font-size: 15px;
  font-weight: 600;
  line-height: 19px;
  letter-spacing: -0.55px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.items-title-meta-row .items-title-meta {
  padding-top: 0;
}


/* Price metrics: label/value one-line, 2x2 grid */
.items-kream-info .items-kream-price {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin-top: 8px !important;
  background: transparent !important;
}

.items-kream-info .items-kream-price > div {
  min-height: 30px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  padding: 6px 8px !important;
}

.items-kream-info .items-kream-price > div:nth-child(odd) {
  border-right: 1px solid #edf0f3 !important;
}

.items-kream-info .items-kream-price > div:nth-child(-n+2) {
  border-bottom: 1px solid #edf0f3 !important;
}

.items-kream-info .items-kream-price > div:first-child,
.items-kream-info .items-kream-price > div:last-child {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.items-kream-info .items-kream-price span {
  margin: 0 !important;
  color: #6e7780 !important;
  font-size: 10.5px !important;
  line-height: 13px !important;
  white-space: nowrap !important;
}

.items-kream-info .items-kream-price strong {
  color: #121314 !important;
  font-size: 12px !important;
  line-height: 14px !important;
  white-space: nowrap !important;
  text-align: right !important;
}

.items-kream-info .items-kream-price .is-profit strong,
.items-kream-info .items-kream-price .is-margin strong {
  color: #121314 !important;
}

/* Stock board: neutral 2x2 metrics with editable field only by form shape */
.items-stock-wide.has-road {
  gap: 6px !important;
  margin-top: 9px !important;
}

.items-stock-wide.has-road > label,
.items-stock-wide.has-road > div {
  min-height: 40px !important;
  border: 1px solid #edf2f7 !important;
  background: #fff !important;
  gap: 4px !important;
  padding: 0 8px !important;
}

.items-stock-wide.has-road span {
  font-size: 10.5px !important;
  letter-spacing: -0.45px !important;
}

.items-stock-wide.has-road strong {
  font-size: 12.5px !important;
  letter-spacing: -0.45px !important;
}

.items-stock-wide.has-road .items-road-sales-value {
  gap: 3px !important;
}

.items-stock-wide.has-road .items-road-sales-control {
  background: #f8fafc !important;
  border-color: #e6ebf3 !important;
}

.items-stock-wide.has-road > div:last-child {
  background: #f8fafc !important;
  border-color: #e6ebf3 !important;
}

.items-stock-wide.has-road > div:last-child span,
.items-stock-wide.has-road > div:last-child strong {
  color: #121314 !important;
}


/* Date floats so title can use wider content width */
.items-title-meta-row {
  position: relative !important;
  display: block !important;
  padding-right: 78px !important;
}

.items-title-left {
  width: 100% !important;
  max-width: 100% !important;
}

.items-title-meta-row .items-title-meta {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  max-width: 74px !important;
  align-items: flex-end !important;
}

.items-title-meta-row .items-title-meta span {
  max-width: 74px !important;
}


.items-title-meta-row {
  padding-right: 0 !important;
}


/* Compact event toggle */
.items-event-toggle {
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 10px !important;
  padding: 0 10px !important;
  margin: -6px 0 10px !important;
}

.items-event-toggle span {
  font-size: 12px !important;
}

.items-event-toggle strong {
  font-size: 13px !important;
}

.items-event-switch {
  width: 40px !important;
  height: 22px !important;
}

.items-event-switch > span::after {
  top: 3px !important;
  left: 3px !important;
  width: 16px !important;
  height: 16px !important;
}

.items-event-switch input:checked + span::after {
  transform: translateX(18px) !important;
}


/* More breathing room between product cards */
.items-list {
  gap: 14px !important;
}


/* Sort modal move buttons */
.items-sort-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.items-sort-move-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.items-sort-move {
  width: 30px;
  height: 30px;
  border: 1px solid #e6e8ef;
  border-radius: 9px;
  background: #fff;
  color: #303441;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.items-sort-move:disabled {
  opacity: 0.28;
}

/* Force thumbnail badges inline spacing */
.items-thumb-badges .items-status-pill {
  margin-right: 2px !important;
}

/* Thumbnail badge wrapper should only position badges */
.items-thumb-badges {
  position: absolute !important;
  left: 4px !important;
  top: 4px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 5 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}

.items-thumb-badges .items-status-pill,
.items-thumb-badges .items-time-sale-pill,
.items-thumb-badges .items-tax-pill {
  display: inline-flex !important;
  position: static !important;
  vertical-align: top !important;
}

/* Center no-image text in thumbnail */
.items-thumb .items-no-image {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.2 !important;
}


/* Event status colors */
.items-event-toggle.is-ready {
  background: #fff9e8 !important;
  border: 1px solid #ffe2a8 !important;
}

.items-event-toggle.is-ready strong {
  color: #ff8a00 !important;
}

.items-event-toggle.is-ready .items-event-switch > span {
  background: #ffd98a !important;
}

.items-event-toggle.is-open {
  background: #effaf2 !important;
  border: 1px solid #b9efc7 !important;
}

.items-event-toggle.is-open strong {
  color: #15a53a !important;
}

.items-event-toggle.is-open .items-event-switch > span {
  background: #15c942 !important;
}

.items-event-toggle.is-expired .items-event-switch {
  cursor: not-allowed;
  opacity: 0.72;
}

.items-event-toggle.is-expired .items-event-switch > span {
  background: #d8dde4 !important;
}

/* Align event status label/value */
.items-event-toggle > div {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  line-height: 1 !important;
}

.items-event-toggle > div > span,
.items-event-toggle > div > strong {
  display: inline-flex !important;
  align-items: center !important;
  height: 18px !important;
  line-height: 18px !important;
  margin: 0 !important;
}

/* Event status spacing */
.items-event-toggle.is-open,
.items-event-toggle.is-ready {
  margin-top: 2px !important;
  margin-bottom: 12px !important;
}

/* Product register date picker */
.items-register-date-field {
  margin-bottom: 8px !important;
}

.items-register-field-label {
  display: block;
  margin: 0 0 6px;
  color: #6a6e74;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.35px;
}

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

.items-register-date-card .admin-date-range {
  min-height: 58px;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 16px;
}

.items-register-date-card .admin-date-value {
  width: 100%;
  justify-content: space-between;
}



/* Product register page renewal */
body.items-register-page {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  background: #fff !important;
  overflow-x: hidden;
}

body.items-register-page .adminuiux-wrap {
  width: 100vw !important;
  max-width: 430px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow-x: hidden;
  background: #fff;
}

body.items-register-page .adminuiux-header .container-fluid {
  width: 100% !important;
  max-width: 430px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.items-register-main {
  box-sizing: border-box;
  width: 100vw !important;
  max-width: 430px !important;
  min-height: 100vh;
  margin: 0 auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  background: #fff;
  padding: 20px 15px 120px !important;
  overflow-x: hidden;
}

body.items-register-page .adminuiux-wrap .adminuiux-content.has-sidebar.items-register-main {
  padding: 20px 15px 120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.items-register-head {
  margin-bottom: 16px !important;
}

.items-register-load {
  border: 0 !important;
  white-space: nowrap;
}

.items-register-card {
  display: block;
  width: 100%;
}

.items-register-card .form-floating {
  margin-bottom: 10px !important;
}

.items-register-card .form-control,
.items-register-card .form-select {
  min-height: 52px;
  border: 1px solid #e2e4e9 !important;
  border-radius: 12px !important;
  background-color: #fff !important;
  color: #1f2430 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: -0.35px;
  box-shadow: none !important;
}

.items-register-card .form-control:focus,
.items-register-card .form-select:focus {
  border-color: #9fc2ff !important;
  box-shadow: 0 0 0 3px rgba(49, 130, 246, .08) !important;
}

.items-register-card .form-floating > label {
  color: #858c94 !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.35px;
}

.items-register-thumb-area,
.items-register-info-area {
  min-width: 0;
}

.items-register-thumb-area {
  margin-bottom: 12px;
}

#toolbar-container2,
#toolbar-container {
  border: 1px solid #e5e8ee !important;
  border-radius: 12px 12px 0 0 !important;
  background: #f8faff !important;
  padding: 8px 10px !important;
}

#toolbar-container2 .note {
  color: #858c94;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

#thumb,
#editor {
  border: 1px solid #e5e8ee !important;
  border-top: 0 !important;
  border-radius: 0 0 12px 12px !important;
  background: #fff !important;
  overflow: hidden;
}

#thumb {
  min-height: 180px;
  margin-bottom: 12px;
}

#editor {
  min-height: 260px;
  margin-bottom: 14px;
}

#thumb .ql-editor,
#editor .ql-editor {
  min-height: inherit;
  padding: 14px !important;
  color: #1f2430;
  font-size: 14px;
  line-height: 1.55;
}

.items-register-date-field {
  margin-bottom: 10px !important;
}

.items-register-date-card .admin-date-range {
  min-height: 52px !important;
  border-radius: 12px !important;
  border-color: #e2e4e9 !important;
  font-weight: 600 !important;
}

.items-register-submit {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: #3182f6;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.45px;
  box-shadow: 0 10px 20px rgba(49, 130, 246, .18);
}

.items-register-submit:active {
  transform: translateY(1px);
}

body.items-register-page #btn-reg {
  display: none !important;
}

body.items-register-page .modal-content.checkout-modal-content {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
}

body.items-register-page .btn-align-date {
  border-radius: 999px !important;
  padding: 6px 14px !important;
}

@media (max-width: 430px) {
  body.items-register-page .adminuiux-wrap,
  body.items-register-page .adminuiux-header .container-fluid {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc((100vw - 100%) / 2) !important;
    margin-right: calc((100vw - 100%) / 2) !important;
  }

  body.items-register-page .adminuiux-wrap .adminuiux-content.has-sidebar.items-register-main {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}


/* Product register single-column layout */
.items-register-top {
  display: block !important;
}

.items-register-thumb-area,
.items-register-info-area {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.items-register-info-area {
  margin-top: 4px;
}


/* Compact product register thumbnail editor */
.items-register-thumb-area {
  margin-bottom: 8px !important;
}

.items-register-thumb-area #toolbar-container2 {
  min-height: 34px !important;
  padding: 5px 8px !important;
  border-radius: 10px 10px 0 0 !important;
}

.items-register-thumb-area #toolbar-container2 .ql-formats {
  margin-right: 6px !important;
}

.items-register-thumb-area #toolbar-container2 .ql-image {
  width: 28px !important;
  height: 24px !important;
  padding: 2px !important;
}

.items-register-thumb-area #toolbar-container2 .note {
  font-size: 11px !important;
  line-height: 14px !important;
}

.items-register-thumb-area #thumb {
  min-height: 108px !important;
  height: 108px !important;
  margin-bottom: 10px !important;
  border-radius: 0 0 10px 10px !important;
}

.items-register-thumb-area #thumb .ql-editor {
  min-height: 108px !important;
  padding: 8px !important;
}

.items-register-thumb-area #thumb .ql-editor img {
  max-height: 92px !important;
  width: auto !important;
  object-fit: contain !important;
}


/* Product register thumbnail upload card */
.items-register-thumb-panel {
  border: 1px solid #e5e8ee;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 62%);
  padding: 12px;
  margin-bottom: 12px;
}

.items-register-thumb-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.items-register-thumb-header strong {
  display: block;
  color: #1f2430;
  font-size: 15px;
  font-weight: 500;
  line-height: 19px;
  letter-spacing: -0.45px;
}

.items-register-thumb-header > div span {
  display: block;
  margin-top: 2px;
  color: #858c94;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -0.35px;
}

.items-register-thumb-header small {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(49, 130, 246, .08);
  color: #3182f6;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: -0.3px;
}

.items-register-thumb-box {
  position: relative;
  min-height: 132px;
  border: 1px dashed #cfd9e8;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.items-register-thumb-box #thumb {
  min-height: 132px !important;
  height: 132px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
}

.items-register-thumb-box #thumb .ql-editor {
  min-height: 132px !important;
  padding: 12px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.items-register-thumb-box #thumb .ql-editor.ql-blank::before {
  left: 0 !important;
  right: 0 !important;
  top: 48px !important;
  color: #a1a9b3 !important;
  font-style: normal !important;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  content: '이미지를 등록해 주세요' !important;
}

.items-register-thumb-box #thumb .ql-editor img {
  max-width: 100% !important;
  max-height: 108px !important;
  width: auto !important;
  object-fit: contain !important;
  border-radius: 10px;
}

.items-register-thumb-box #toolbar-container2 {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  width: auto !important;
  min-height: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #3182f6 !important;
  box-shadow: 0 8px 16px rgba(49, 130, 246, .18);
}

.items-register-thumb-box #toolbar-container2 .ql-formats {
  margin: 0 !important;
}

.items-register-thumb-box #toolbar-container2 .ql-image {
  width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  color: #fff !important;
}

.items-register-thumb-box #toolbar-container2 .ql-image svg {
  width: 18px !important;
  height: 18px !important;
}

.items-register-thumb-box #toolbar-container2 .ql-stroke {
  stroke: #fff !important;
}

.items-register-thumb-box #toolbar-container2 .ql-fill,
.items-register-thumb-box #toolbar-container2 .ql-even {
  fill: #fff !important;
}

.items-register-thumb-box #toolbar-container2 .note {
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 16px !important;
  letter-spacing: -0.35px;
}


/* Product register price field spacing */
.items-register-price-row {
  --bs-gutter-x: 8px !important;
}

.items-register-price-row .form-floating {
  margin-bottom: 8px !important;
}


/* Product register extra purchase fields */
.items-register-purpose-field {
  margin: 0 0 10px;
}

.items-register-purpose-field .items-register-choice {
  height: 46px;
}

.items-register-extra-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 2px 0 10px;
}

.items-register-field-title {
  display: block;
  margin: 0 0 7px;
  color: #2a2f3a;
  font-size: 13px;
  font-weight: 600;
  line-height: 17px;
  letter-spacing: -0.38px;
}

.items-register-field-title em {
  color: #f04438;
  font-style: normal;
}

.items-register-field-title small {
  color: #858c94;
  font-size: 12px;
  font-weight: 500;
}

.items-register-option-field,
.items-register-unit-field {
  min-width: 0;
}

.items-register-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.items-register-choice-row.is-compact {
  max-width: none;
}

.items-register-choice {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #e2e4e9;
  border-radius: 12px;
  background: #fff;
  color: #303441;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.35px;
}

.items-register-choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #4c3cff;
  flex: 0 0 18px;
}

.items-register-choice:has(input:checked) {
  border-color: rgba(76, 60, 255, .26);
  background: rgba(76, 60, 255, .035);
}

.items-register-unit-input {
  height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid #e2e4e9;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.items-register-unit-input input {
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: #1f2430;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.35px;
  background: transparent;
}

.items-register-unit-input input::placeholder {
  color: #9aa3b2;
}

.items-register-unit-input span {
  flex: 0 0 auto;
  padding: 0 12px 0 6px;
  color: #6f7785;
  font-size: 14px;
  font-weight: 600;
}

.items-register-buy-card {
  margin: 10px 0 12px;
  padding: 14px 12px 12px;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  background: #fff;
}

.items-register-buy-card h2 {
  margin: 0 0 12px;
  color: #171b22;
  font-size: 17px;
  font-weight: 500;
  line-height: 21px;
  letter-spacing: -0.55px;
}

.items-register-buy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

.items-register-sale-card .items-register-price-row {
  margin-bottom: 2px;
}

.items-register-sale-card .items-register-extra-grid {
  margin: 2px 0 0;
}

.items-register-date-field--inline {
  margin-bottom: 0 !important;
}

.items-time-sale-card {
  width: 100%;
}

.items-time-sale-card .items-register-buy-grid,
.items-time-sale-card .items-register-option-field,
.items-time-sale-card .items-register-unit-field {
  width: 100%;
  max-width: 100%;
}

.items-time-sale-card .items-register-choice-row {
  grid-template-columns: 1fr;
}

.items-time-sale-datetime-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
}

.items-time-sale-date-card.admin-date-card,
.items-time-sale-time-card.admin-date-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.items-time-sale-date-card .admin-date-range,
.items-time-sale-time-card .admin-date-range {
  width: 100%;
  min-width: 0;
  height: 48px;
  justify-content: space-between;
}

.items-time-sale-date-card .admin-date-value,
.items-time-sale-time-card .admin-date-value {
  width: 100%;
  justify-content: space-between;
}

.items-time-sale-time-card {
  min-width: 136px;
}

.items-time-sale-time-button {
  padding: 0 12px !important;
}

.items-time-sale-time-button i {
  flex: 0 0 auto;
  color: #8b95a1;
  font-size: 16px;
  line-height: 1;
}

.items-time-sale-date-picker:disabled,
.items-time-sale-time-button:disabled {
  background: #f5f7fb !important;
  color: #a1a9b3;
  cursor: not-allowed;
}

.admin-time-picker .dashboard-month-panel {
  width: min(360px, calc(100dvw - 24px)) !important;
  padding-bottom: 16px;
}

.admin-time-picker .dashboard-month-header {
  margin-bottom: 8px;
}

.admin-time-picker-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f2f4f6;
  color: #303441;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-time-picker-close:hover,
.admin-time-picker-close:focus,
.admin-time-picker-close:active {
  background: #e9edf3 !important;
  box-shadow: none !important;
}

.admin-time-picker-subtitle {
  display: block;
  margin: 12px 0 7px;
  color: #6f7785;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.35px;
}

.admin-time-grid,
.admin-time-minute-grid {
  display: grid;
  gap: 6px;
  width: 100%;
}

.admin-time-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-time-minute-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-time-grid .admin-day-option,
.admin-time-minute-grid .admin-day-option {
  height: 36px;
  border-radius: 10px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .items-time-sale-datetime-row {
    grid-template-columns: 1fr;
  }

  .items-time-sale-time-card {
    min-width: 0;
  }
}


/* Modern CKEditor replacement for product register */
.items-modern-editor-panel {
  margin: 12px 0 14px;
  border: 1px solid #e5e8ee;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.items-modern-editor-head {
  padding: 12px 13px 10px;
  border-bottom: 1px solid #eef1f5;
  background: #f8fbff;
}

.items-modern-editor-head strong {
  display: block;
  color: #1f2430;
  font-size: 15px;
  font-weight: 500;
  line-height: 19px;
  letter-spacing: -0.45px;
}

.items-modern-editor-head span {
  display: block;
  margin-top: 2px;
  color: #858c94;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.35px;
}

.items-register-page .ck.ck-editor {
  width: 100%;
}

.items-register-page .ck.ck-toolbar {
  border: 0 !important;
  border-bottom: 1px solid #eef1f5 !important;
  background: #fff !important;
  padding: 6px 8px !important;
}

.items-register-page .ck.ck-toolbar .ck-button {
  border-radius: 8px !important;
}

.items-register-page .ck.ck-editor__main > .ck-editor__editable {
  min-height: 260px;
  border: 0 !important;
  box-shadow: none !important;
  padding: 14px !important;
  color: #1f2430;
  font-size: 14px;
  line-height: 1.6;
}

.items-register-page .ck-content img {
  max-width: 100%;
  height: auto;
}

.items-modern-thumb-preview {
  position: relative;
  min-height: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
}

.items-modern-thumb-preview > p {
  margin: 0;
}

.items-modern-thumb-preview img {
  max-width: 100% !important;
  max-height: 108px !important;
  width: auto !important;
  object-fit: contain !important;
  border-radius: 10px;
}

.items-thumb-placeholder {
  display: block;
  color: #a1a9b3;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.35px;
}

.items-modern-thumb-preview.has-image .items-thumb-placeholder,
.items-modern-thumb-preview:has(img) .items-thumb-placeholder {
  display: none;
}

.items-thumb-upload-button {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #3182f6;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.35px;
  box-shadow: 0 8px 16px rgba(49, 130, 246, .18);
}

.items-thumb-upload-button i {
  font-size: 14px;
  line-height: 1;
}



.items-modern-editor-fallback {
  min-height: 260px;
  padding: 14px;
  outline: 0;
}

.items-modern-editor-fallback:empty::before {
  content: attr(data-placeholder);
  color: #9aa3b2;
}


/* Stable writing editor restyle (Quill core, modern shell) */
.items-modern-editor-panel #toolbar-container.items-content-toolbar,
.items-modern-editor-panel .ql-toolbar.ql-snow {
  border: 0 !important;
  border-bottom: 1px solid #eef1f5 !important;
  border-radius: 0 !important;
  background: #fff !important;
  padding: 7px 8px !important;
}

.items-modern-editor-panel #editor.ql-container.ql-snow {
  min-height: 280px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

.items-modern-editor-panel #editor .ql-editor {
  min-height: 280px !important;
  padding: 14px !important;
  color: #1f2430;
  font-size: 14px;
  line-height: 1.65;
}

.items-modern-editor-panel #editor .ql-editor.ql-blank::before {
  color: #9aa3b2 !important;
  font-style: normal !important;
  left: 14px !important;
  right: 14px !important;
}

.items-register-thumb-box #toolbar-container2.items-thumb-toolbar,
.items-register-thumb-box #toolbar-container2.ql-toolbar.ql-snow {
  position: absolute !important;
  left: 50% !important;
  bottom: 12px !important;
  transform: translateX(-50%) !important;
  z-index: 2 !important;
  width: auto !important;
  min-height: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 7px 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #3182f6 !important;
  box-shadow: 0 8px 16px rgba(49, 130, 246, .18) !important;
}

.items-register-thumb-box #toolbar-container2 .ql-formats { margin: 0 !important; }
.items-register-thumb-box #toolbar-container2 .ql-image { width: 18px !important; height: 18px !important; padding: 0 !important; }
.items-register-thumb-box #toolbar-container2 .ql-image svg { width: 18px !important; height: 18px !important; }
.items-register-thumb-box #toolbar-container2 .ql-stroke { stroke: #fff !important; }
.items-register-thumb-box #toolbar-container2 .ql-fill,
.items-register-thumb-box #toolbar-container2 .ql-even { fill: #fff !important; }
.items-register-thumb-box #toolbar-container2 .note { color: #fff !important; font-size: 12px !important; font-weight: 500 !important; line-height: 16px !important; }

.items-register-thumb-box #thumb.ql-container.ql-snow {
  min-height: 132px !important;
  height: 132px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
}

.items-register-thumb-box #thumb .ql-editor {
  min-height: 132px !important;
  padding: 12px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.items-register-thumb-box #thumb .ql-editor.ql-blank::before {
  left: 0 !important;
  right: 0 !important;
  top: 48px !important;
  color: #a1a9b3 !important;
  font-style: normal !important;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  content: '이미지를 등록해 주세요' !important;
}

.items-register-thumb-box #thumb .ql-editor img {
  max-width: 100% !important;
  max-height: 108px !important;
  width: auto !important;
  object-fit: contain !important;
  border-radius: 10px;
}


/* SOOP-style CKEditor4 writing editor */
.items-editor-wrap {
  margin: 12px 0 14px;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.editor_header.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
  border-bottom: 1px solid #eef1f5;
  background: #f8fbff;
}

.editor_header .img,
.editor_header .write_info button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce3ef;
  border-radius: 999px;
  background: #fff;
  color: #2a3442;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.35px;
}

.editor_header .img {
  padding: 0 14px 0 12px;
  background: #3182f6;
  border-color: #3182f6;
  color: #fff;
  box-shadow: 0 8px 16px rgba(49, 130, 246, .16);
}

.editor_header .img::before {
  content: '\F42A';
  font-family: 'bootstrap-icons';
  margin-right: 5px;
  font-weight: normal;
}

.editor_header .write_info button {
  padding: 0 11px;
  color: #6f7785;
}

.items-editor-wrap .cke_chrome {
  border: 0 !important;
  box-shadow: none !important;
}

.items-editor-wrap .cke_top {
  border-bottom: 1px solid #eef1f5 !important;
  background: #fff !important;
  padding: 7px 8px 3px !important;
}

.items-editor-wrap .cke_toolgroup,
.items-editor-wrap .cke_combo_button {
  border-color: #e1e6ee !important;
  border-radius: 8px !important;
  background: #fff !important;
}

.items-editor-wrap .cke_button {
  border-radius: 7px !important;
}

.items-editor-wrap .cke_button:hover,
.items-editor-wrap .cke_button:focus,
.items-editor-wrap .cke_button_on {
  background: #eef4ff !important;
  box-shadow: none !important;
}

.items-editor-wrap .cke_contents {
  min-height: 400px !important;
}

.items-editor-wrap .cke_bottom {
  border-top: 1px solid #eef1f5 !important;
  background: #fafbfc !important;
}


/* SOOP toolbar icon labels and spacing */
.items-editor-wrap .cke_top {
  padding: 12px 14px 9px !important;
}

.items-editor-wrap .cke_toolbar {
  margin-right: 12px !important;
  margin-bottom: 6px !important;
}

.items-editor-wrap .cke_toolbar_separator {
  margin: 0 8px !important;
}

.items-editor-wrap .cke_button__link_icon {
  display: none !important;
}

.items-editor-wrap .cke_button__link .cke_button_label {
  display: inline !important;
  color: #4a4a4a !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 18px !important;
  padding: 0 2px !important;
}

.items-editor-wrap .cke_button__source_icon {
  display: inline-block !important;
}

.items-editor-wrap .cke_button__source .cke_button_label {
  display: inline !important;
  color: #4a4a4a !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 18px !important;
  padding-left: 4px !important;
}

.items-editor-wrap .cke_combo__font .cke_combo_button,
.items-editor-wrap .cke_combo__fontsize .cke_combo_button {
  min-width: 150px !important;
  height: 28px !important;
  border: 0 !important;
  border-right: 1px solid #d7d7d7 !important;
  border-radius: 0 !important;
}

.items-editor-wrap .cke_combo__fontsize .cke_combo_button {
  min-width: 120px !important;
}


/* Force CKEditor toolbar visible */
.items-editor-wrap .cke_top,
.items-editor-wrap .cke_toolbox,
.items-editor-wrap .cke_toolbar,
.items-editor-wrap .cke_toolgroup,
.items-editor-wrap .cke_combo {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.items-editor-wrap .cke_top {
  height: auto !important;
  min-height: 52px !important;
  overflow: visible !important;
  white-space: normal !important;
}

.items-editor-wrap .cke_toolbox {
  width: 100% !important;
  white-space: normal !important;
}

.items-editor-wrap .cke_toolbar {
  float: none !important;
  vertical-align: middle !important;
}

.items-editor-wrap .cke_button_label,
.items-editor-wrap .cke_combo_label {
  clip: auto !important;
}


/* SOOP-like TinyMCE writing editor without CKEditor warnings */
.items-editor-wrap .tox.tox-tinymce {
  border: 0 !important;
  border-radius: 0 !important;
  min-height: 450px;
}

.items-editor-wrap .tox .tox-editor-header {
  border-bottom: 1px solid #eef1f5 !important;
  box-shadow: none !important;
  padding: 8px 10px 4px !important;
}

.items-editor-wrap .tox .tox-toolbar__primary {
  background: #fff !important;
}

.items-editor-wrap .tox .tox-toolbar__group {
  border-color: #d7d7d7 !important;
  padding: 0 7px !important;
}

.items-editor-wrap .tox .tox-tbtn,
.items-editor-wrap .tox .tox-split-button,
.items-editor-wrap .tox .tox-listboxfield .tox-listbox--select {
  border-radius: 7px !important;
}

.items-editor-wrap .tox .tox-tbtn:hover,
.items-editor-wrap .tox .tox-tbtn--enabled,
.items-editor-wrap .tox .tox-split-button:hover {
  background: #eef4ff !important;
}

.items-editor-wrap .tox .tox-edit-area__iframe {
  background: #fff !important;
}

/* Show all TinyMCE tools, no collapsing */
.items-editor-wrap .tox .tox-editor-header {
  overflow: visible !important;
}

.items-editor-wrap .tox .tox-toolbar-overlord,
.items-editor-wrap .tox .tox-toolbar,
.items-editor-wrap .tox .tox-toolbar__primary {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  white-space: normal !important;
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
  row-gap: 5px !important;
}

.items-editor-wrap .tox .tox-toolbar__primary {
  gap: 4px 0 !important;
}

.items-editor-wrap .tox .tox-toolbar__group {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 2px !important;
  margin: 0 0 4px !important;
  padding: 0 5px !important;
  max-width: 100% !important;
}

.items-editor-wrap .tox .tox-tbtn,
.items-editor-wrap .tox .tox-split-button,
.items-editor-wrap .tox .tox-listboxfield {
  flex: 0 0 auto !important;
}

.items-editor-wrap .tox .tox-tbtn--bespoke {
  min-width: 76px !important;
}

.items-editor-wrap .tox .tox-toolbar__overflow,
.items-editor-wrap .tox .tox-tbtn[aria-label='More...'],
.items-editor-wrap .tox .tox-tbtn[title='More...'] {
  display: none !important;
}

@media (max-width: 640px) {
  .items-editor-wrap .tox .tox-editor-header {
    padding: 8px 8px 5px !important;
  }

  .items-editor-wrap .tox .tox-toolbar-overlord,
  .items-editor-wrap .tox .tox-toolbar,
  .items-editor-wrap .tox .tox-toolbar__primary {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
  }

  .items-editor-wrap .tox .tox-toolbar__primary {
    row-gap: 3px !important;
  }

  .items-editor-wrap .tox .tox-toolbar__group {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 0 3px !important;
    border-right: 0 !important;
  }

  .items-editor-wrap .tox .tox-tbtn {
    width: 30px !important;
    height: 30px !important;
  }

  .items-editor-wrap .tox .tox-tbtn--bespoke {
    width: auto !important;
    min-width: 126px !important;
    max-width: calc(50% - 4px) !important;
  }

  .items-editor-wrap .tox .tox-tbtn svg {
    transform: scale(.9);
  }
}

/* Clean fixed rows for mobile writing tools */
.items-editor-wrap .tox .tox-toolbar {
  border-bottom: 1px solid #edf1f7 !important;
  padding: 4px 0 !important;
}

.items-editor-wrap .tox .tox-toolbar:last-child {
  border-bottom: 0 !important;
}

.items-editor-wrap .tox .tox-toolbar__group::after {
  display: none !important;
}

.items-editor-wrap .tox .tox-tbtn,
.items-editor-wrap .tox .tox-split-button {
  color: #172033 !important;
}

@media (max-width: 640px) {
  .items-editor-wrap .tox .tox-toolbar-overlord {
    padding: 0 6px !important;
  }

  .items-editor-wrap .tox .tox-toolbar {
    min-height: 34px !important;
  }

  .items-editor-wrap .tox .tox-toolbar__group {
    gap: 5px !important;
  }

  .items-editor-wrap .tox .tox-tbtn--select,
  .items-editor-wrap .tox .tox-tbtn--bespoke {
    height: 32px !important;
    background: #f7f8fb !important;
    border-radius: 8px !important;
  }
}

/* Register page mobile canvas must not start after the sidebar gutter */
@media (max-width: 640px) {
  body.items-register-page .adminuiux-wrap,
  body.items-register-page .adminuiux-header .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.items-register-page .adminuiux-wrap .adminuiux-content.has-sidebar.items-register-main,
  body.items-register-page .items-register-main {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  body.items-register-page .items-register-form,
  body.items-register-page .items-register-thumb-panel,
  body.items-register-page .items-editor-wrap,
  body.items-register-page .tox.tox-tinymce {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Keep register cards inside the mobile viewport */
body.items-register-page .items-register-main,
body.items-register-page .items-register-main *,
body.items-register-page .items-register-main *::before,
body.items-register-page .items-register-main *::after {
  box-sizing: border-box !important;
}

body.items-register-page .items-register-thumb-panel,
body.items-register-page .items-editor-wrap,
body.items-register-page .items-register-date-card,
body.items-register-page .items-register-submit,
body.items-register-page .form-control,
body.items-register-page .form-select {
  max-width: 100% !important;
}

@media (max-width: 640px) {
  body.items-register-page .editor_header.flex {
    gap: 6px !important;
  }

  body.items-register-page .editor_header .img,
  body.items-register-page .editor_header .write_info button {
    height: 32px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }
}

/* Hard mobile width cap: cards/buttons stay within the 15px page gutters */
@media (max-width: 640px) {
  body.items-register-page .items-register-head,
  body.items-register-page .items-register-load,
  body.items-register-page .items-register-form,
  body.items-register-page .items-register-thumb-panel,
  body.items-register-page .items-register-info-area,
  body.items-register-page .items-editor-wrap,
  body.items-register-page .items-register-submit {
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
  }

  body.items-register-page .items-register-price-row,
  body.items-register-page .items-register-extra-grid,
  body.items-register-page .items-register-sale-card,
  body.items-register-page .items-register-purchase-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Two-row compact TinyMCE toolbar */
.items-editor-wrap .tox .tox-toolbar-overlord {
  padding: 0 8px !important;
}

.items-editor-wrap .tox .tox-toolbar {
  min-height: 36px !important;
  padding: 5px 0 !important;
}

.items-editor-wrap .tox .tox-toolbar__group {
  width: auto !important;
  flex-wrap: nowrap !important;
  gap: 3px !important;
  margin: 0 !important;
  padding: 0 4px !important;
}

.items-editor-wrap .tox .tox-tbtn {
  width: 30px !important;
  height: 30px !important;
}

.items-editor-wrap .tox .tox-tbtn--select,
.items-editor-wrap .tox .tox-tbtn--bespoke {
  height: 30px !important;
  min-width: 92px !important;
  max-width: 112px !important;
}

.items-editor-wrap .tox .tox-tbtn--bespoke .tox-tbtn__select-label {
  max-width: 64px !important;
}

@media (max-width: 640px) {
  .items-editor-wrap .tox .tox-toolbar__primary {
    row-gap: 0 !important;
  }

  .items-editor-wrap .tox .tox-toolbar {
    border-bottom: 1px solid #edf1f7 !important;
  }

  .items-editor-wrap .tox .tox-toolbar:last-child {
    border-bottom: 0 !important;
  }

  .items-editor-wrap .tox .tox-toolbar__group {
    width: auto !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 3px !important;
  }

  .items-editor-wrap .tox .tox-tbtn {
    width: 28px !important;
    height: 30px !important;
  }

  .items-editor-wrap .tox .tox-tbtn--select,
  .items-editor-wrap .tox .tox-tbtn--bespoke {
    min-width: 84px !important;
    max-width: 104px !important;
  }
}


/* Compact toolbar controls so the 2-row editor does not clip on mobile */
.items-editor-wrap .tox .tox-toolbar__primary,
.items-editor-wrap .tox .tox-toolbar {
  max-width: 100% !important;
}

.items-editor-wrap .tox .tox-toolbar__group {
  gap: 0 !important;
  padding-left: 1px !important;
  padding-right: 1px !important;
}

.items-editor-wrap .tox .tox-tbtn,
.items-editor-wrap .tox .tox-split-button {
  width: 26px !important;
  min-width: 26px !important;
  height: 28px !important;
  margin: 0 !important;
}

.items-editor-wrap .tox .tox-tbtn svg,
.items-editor-wrap .tox .tox-split-button svg {
  transform: scale(.82) !important;
}

.items-editor-wrap .tox .tox-tbtn--select,
.items-editor-wrap .tox .tox-tbtn--bespoke {
  height: 28px !important;
  min-width: 0 !important;
  width: 76px !important;
  max-width: 76px !important;
  padding: 0 4px !important;
}

.items-editor-wrap .tox .tox-tbtn--bespoke .tox-tbtn__select-label {
  max-width: 44px !important;
  font-size: 12px !important;
}

.items-editor-wrap .tox .tox-tbtn__select-chevron {
  width: 12px !important;
}

@media (max-width: 640px) {
  .items-editor-wrap .tox .tox-editor-header {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .items-editor-wrap .tox .tox-toolbar-overlord {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }

  .items-editor-wrap .tox .tox-toolbar {
    min-height: 31px !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
  }

  .items-editor-wrap .tox .tox-toolbar__group {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .items-editor-wrap .tox .tox-tbtn,
  .items-editor-wrap .tox .tox-split-button {
    width: 24px !important;
    min-width: 24px !important;
    height: 27px !important;
  }

  .items-editor-wrap .tox .tox-tbtn--select,
  .items-editor-wrap .tox .tox-tbtn--bespoke {
    width: 72px !important;
    max-width: 72px !important;
  }

  .items-editor-wrap .tox .tox-tbtn--bespoke .tox-tbtn__select-label {
    max-width: 40px !important;
    font-size: 11px !important;
  }
}

/* Editor image attachment summary */
.items-editor-attachments {
  display: none;
  padding: 13px 14px 14px;
  border-bottom: 1px solid #edf1f7;
  background: #fff;
}

.items-editor-attachments.is-visible {
  display: block;
}

.items-editor-attachments-title {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
  color: #9b9da3;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.items-editor-attachments-title strong {
  color: #33353a;
  font-size: 18px;
  font-weight: 600;
}

.items-editor-attachments-title #editorImageCount {
  color: #2f80ed;
}

.items-editor-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.items-editor-attachment {
  position: relative;
  width: 72px;
  height: 72px;
  border: 3px solid #1f88ff;
  background: #f7f9fc;
  overflow: visible;
}

.items-editor-attachment img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.items-editor-attachment-remove {
  position: absolute;
  top: -17px;
  right: -17px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 2px solid #8a8f98;
  border-radius: 50%;
  background: #fff;
  color: #4d5158;
  font-size: 26px;
  line-height: 24px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.items-editor-attachment-main {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 123, 255, .92);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

@media (max-width: 640px) {
  .items-editor-attachments {
    padding: 12px 11px 13px;
  }

  .items-editor-attachments-title {
    font-size: 15px;
    margin-bottom: 9px;
  }

  .items-editor-attachments-title strong {
    font-size: 16px;
  }

  .items-editor-attachment {
    width: 64px;
    height: 64px;
  }

  .items-editor-attachment-remove {
    width: 30px;
    height: 30px;
    top: -15px;
    right: -15px;
    font-size: 24px;
  }

  .items-editor-attachment-main {
    height: 22px;
    font-size: 14px;
  }
}

/* Touch drag sorting for attached editor images */
.items-editor-attachment-list.is-sorting {
  user-select: none;
  touch-action: none;
}

.items-editor-attachment {
  cursor: grab;
  touch-action: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, border-color .15s ease;
}

.items-editor-attachment.is-dragging {
  cursor: grabbing;
  opacity: .62;
  transform: scale(.96);
  box-shadow: 0 8px 18px rgba(31, 136, 255, .22);
}

.items-editor-attachment.is-drop-target {
  border-color: #005fcc;
  transform: translateY(-2px);
  box-shadow: 0 7px 16px rgba(0, 95, 204, .18);
}


/* Smaller delete control for editor image attachments */
.items-editor-attachment-remove {
  top: -11px !important;
  right: -11px !important;
  width: 22px !important;
  height: 22px !important;
  border-width: 1.5px !important;
  font-size: 17px !important;
  line-height: 18px !important;
}

@media (max-width: 640px) {
  .items-editor-attachment-remove {
    top: -10px !important;
    right: -10px !important;
    width: 21px !important;
    height: 21px !important;
    font-size: 16px !important;
    line-height: 17px !important;
  }
}


/* Editor header after removing unused writing-info button */
.items-editor-wrap .editor_header.flex {
  justify-content: flex-start !important;
}


/* Real drag sorting states for attached editor images */
.items-editor-attachment.is-sortable-chosen {
  cursor: grabbing !important;
  transform: scale(.98);
}

.items-editor-attachment.is-sortable-ghost {
  opacity: .35;
  border-style: dashed;
}

.items-editor-attachment.is-sortable-drag {
  opacity: .95;
  transform: scale(1.04);
  box-shadow: 0 12px 24px rgba(31, 136, 255, .28);
}


/* Smaller attachment count and drag guide */
.items-editor-attachments-title {
  margin-bottom: 3px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.items-editor-attachments-title strong {
  font-size: 14px !important;
  font-weight: 500 !important;
}

.items-editor-attachments-guide {
  margin: 0 0 10px !important;
  color: #7b8494;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

@media (max-width: 640px) {
  .items-editor-attachments-title {
    font-size: 12px !important;
  }

  .items-editor-attachments-title strong {
    font-size: 13px !important;
  }

  .items-editor-attachments-guide {
    font-size: 11px;
  }
}


/* Lighter mobile drag performance for attachment sorting */
.items-editor-attachment-list.is-sorting .items-editor-attachment,
.items-editor-attachment.is-sortable-chosen,
.items-editor-attachment.is-sortable-ghost,
.items-editor-attachment.is-sortable-drag,
.items-sortable-fallback {
  transition: none !important;
}

.items-editor-attachment.is-sortable-chosen {
  transform: none !important;
  box-shadow: none !important;
}

.items-editor-attachment.is-sortable-drag,
.items-sortable-fallback {
  opacity: .92 !important;
  transform: none !important;
  box-shadow: 0 4px 10px rgba(31, 136, 255, .16) !important;
  will-change: transform;
  pointer-events: none !important;
}

.items-editor-attachment.is-sortable-ghost {
  opacity: .28 !important;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  .items-editor-attachment,
  .items-sortable-fallback {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
  }

  .items-editor-attachment.is-sortable-drag,
  .items-sortable-fallback {
    box-shadow: 0 2px 6px rgba(31, 136, 255, .12) !important;
  }
}

/* Touch press feedback for editor attachment thumbnails */
.items-editor-attachment:active,
.items-editor-attachment.is-sortable-chosen {
  border-color: #005fcc !important;
  background: #eaf3ff !important;
  opacity: .86 !important;
}

.items-editor-attachment:active::after,
.items-editor-attachment.is-sortable-chosen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 95, 204, .12);
  pointer-events: none;
}

@media (max-width: 640px) {
  .items-editor-attachment:active,
  .items-editor-attachment.is-sortable-chosen {
    border-color: #006de5 !important;
    opacity: .82 !important;
  }
}


/* Thumbnail image delete button */
.items-thumb-remove-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(65, 74, 88, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #414a58;
  font-size: 18px;
  line-height: 20px;
  font-weight: 400;
  padding: 0;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .12);
}

.items-register-thumb-box:has(.items-modern-thumb-preview.has-image) .items-thumb-remove-button,
.items-register-thumb-box:has(.items-modern-thumb-preview img) .items-thumb-remove-button {
  display: inline-flex;
}

.items-thumb-remove-button:active {
  background: #eef4ff;
  border-color: #3182f6;
  color: #1f6ed4;
}

@media (max-width: 640px) {
  .items-thumb-remove-button {
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    font-size: 17px;
  }
}

/* Archive upper product lookup renewal */
body.archive-page {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  background: #fff !important;
  overflow-x: hidden;
}

body.archive-page .adminuiux-wrap {
  width: 100vw !important;
  max-width: 430px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow-x: hidden;
  background: #fff;
}

.archive-main {
  box-sizing: border-box;
  width: 100vw !important;
  max-width: 430px !important;
  min-height: 100vh;
  margin: 0 auto !important;
  left: auto !important;
  right: auto !important;
  background: #fff;
  padding: 20px 15px 120px !important;
  overflow-x: hidden;
}

body.archive-page .adminuiux-header .container-fluid {
  width: 100% !important;
  max-width: 430px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.archive-head {
  align-items: flex-start;
  margin-bottom: 16px;
}

.archive-switch {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid #edf0f4;
  border-radius: 999px;
  background: #f8fafc;
}

.archive-switch a {
  min-width: 58px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #7a828d !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.35px;
  text-decoration: none !important;
}

.archive-switch a.is-active {
  background: #3182f6;
  color: #fff !important;
  box-shadow: 0 6px 12px rgba(49, 130, 246, .18);
}

.archive-filter-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 72%);
  margin-bottom: 12px;
}

.archive-filter-card label {
  display: block;
  margin: 0;
}

.archive-filter-card label > span {
  display: block;
  margin: 0 0 5px;
  color: #6f7785;
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: -0.35px;
}

.archive-date-input-wrap,
.archive-filter-card select,
.archive-filter-card input[type='text'] {
  width: 100%;
  height: 42px;
  border: 1px solid #e2e6ed;
  border-radius: 12px;
  background: #fff;
}

.archive-date-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.archive-date-input-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100% !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #1f2430;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.4px;
  padding: 0 !important;
}

.archive-filter-card select,
.archive-filter-card input[type='text'] {
  color: #1f2430;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.35px;
  padding: 0 12px;
  outline: 0;
}

.archive-filter-card input::placeholder {
  color: #a5adba;
  font-weight: 500;
}

.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}

.archive-counts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.archive-counts span {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}

.archive-counts span:not(:last-child)::after {
  content: '';
  width: 1px;
  height: 10px;
  margin-left: 8px;
  background: #d8dee8;
}

.archive-counts strong {
  color: #2563eb;
}

.archive-copy-button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 10px !important;
}

.archive-list {
  display: grid;
  gap: 10px;
}

.archive-item-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 11px;
  min-height: 122px;
  padding: 12px;
  border: 1px solid #edf0f4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.archive-item-card.is-selected {
  border-color: rgba(49, 130, 246, .72);
  background: #f5f9ff;
  box-shadow: 0 10px 24px rgba(49, 130, 246, .12);
}

.archive-select-mark {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #b8c2d1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  z-index: 2;
}

.archive-item-card.is-selected .archive-select-mark {
  color: #3182f6;
}

.archive-item-thumb {
  width: 82px;
  height: 98px;
  border-radius: 14px;
  background: #f4f7fb;
  border: 1px solid #edf0f4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-item-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

.archive-thumb-empty {
  color: #a5adba;
  font-size: 11px;
  font-weight: 600;
}

.archive-item-info {
  min-width: 0;
  padding-right: 20px;
}

.archive-item-top {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 5px;
  padding-right: 14px;
}

.archive-category,
.archive-date {
  max-width: 50%;
  min-width: 0;
  height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.35px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archive-category {
  background: rgba(49, 130, 246, .08);
  color: #2f6fd6;
}

.archive-date {
  background: #f2f4f7;
  color: #737b88;
}

.archive-item-name {
  color: #121314;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.45px;
  margin: 0 0 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
}

.archive-metrics div {
  min-width: 0;
  padding: 7px 5px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f0f2f6;
}

.archive-metrics dt {
  color: #8a929f;
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  letter-spacing: -0.3px;
  margin: 0 0 3px;
}

.archive-metrics dd {
  color: #2368d7;
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -0.35px;
  margin: 0;
  white-space: nowrap;
}

.archive-metrics dd span {
  margin-left: 1px;
  color: #8a929f;
  font-size: 10px;
  font-weight: 600;
}

.archive-empty-state,
.archive-loading-state,
.archive-filter-empty {
  min-height: 180px;
}

@media (max-width: 430px) {
  body.archive-page .adminuiux-wrap,
  body.archive-page .adminuiux-header .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.archive-page .adminuiux-wrap .adminuiux-content.has-sidebar.archive-main,
  body.archive-page .archive-main {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .archive-head {
    gap: 8px;
  }

  .archive-switch a {
    min-width: 54px;
    font-size: 11px;
  }
}

/* Archive mobile viewport correction */
body.archive-page,
body.archive-page .adminuiux-wrap,
body.archive-page .adminuiux-content.has-sidebar.archive-main {
  box-sizing: border-box !important;
}

body.archive-page .adminuiux-content.has-sidebar.archive-main {
  transform: none !important;
}

.archive-copy-button {
  width: 112px !important;
  min-width: 112px !important;
  font-size: 11px !important;
}

@media (max-width: 640px) {
  body.archive-page .adminuiux-wrap,
  body.archive-page .adminuiux-header .container-fluid {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.archive-page .adminuiux-wrap .adminuiux-content.has-sidebar.archive-main,
  body.archive-page .adminuiux-content.has-sidebar.archive-main,
  body.archive-page .archive-main {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  body.archive-page .archive-head,
  body.archive-page .archive-filter-card,
  body.archive-page .archive-toolbar,
  body.archive-page .archive-list {
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
  }

  .archive-toolbar {
    justify-content: space-between !important;
  }
}

/* Archive toolbar: avoid clipped action button on mobile */
@media (max-width: 640px) {
  .archive-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .archive-copy-button {
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
  }
}


/* Archive date uses shared admin date component */
.archive-date-field > span {
  display: block;
  margin: 0 0 5px;
  color: #6f7785;
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: -0.35px;
}

.archive-date-card {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.archive-date-card .admin-date-range {
  width: 100%;
  height: 42px;
  min-height: 42px;
  border: 1px solid #e2e6ed;
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
}

.archive-date-card .admin-date-value {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.4px;
}

.archive-date-card .admin-range-divider {
  color: #a5adba;
  font-size: 13px;
}

.archive-date-input-wrap {
  display: none !important;
}

/* Category management page */
body.category-page {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  background: #fff !important;
  overflow-x: hidden;
}

body.category-page .adminuiux-wrap {
  width: 100vw !important;
  max-width: 430px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow-x: hidden;
}

body.category-page .adminuiux-header .container-fluid {
  width: 100% !important;
  max-width: 430px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.category-page .adminuiux-wrap .adminuiux-content.has-sidebar.category-main {
  padding: 20px 15px 120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.category-head {
  margin-bottom: 16px;
}

.category-create-card {
  width: 100%;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  margin: 0 0 12px;
}

.category-create-card > label {
  display: block;
  margin: 0 0 7px;
  color: #6f7785;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -0.35px;
}

.category-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 7px;
  align-items: center;
}

.category-create-row input,
.category-card-field input {
  width: 100%;
  height: 38px;
  border: 1px solid #e3e7ee;
  border-radius: 10px;
  background: #fff;
  color: #121314;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.45px;
  padding: 0 11px;
  outline: none;
}

.category-create-row input:focus,
.category-card-field input:focus {
  border-color: #3182f6;
  box-shadow: 0 0 0 3px rgba(49, 130, 246, .08);
}

.category-primary-button {
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: #3182f6;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.category-primary-button:hover,
.category-primary-button:focus,
.category-primary-button:active {
  background: #3182f6 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.category-toolbar {
  margin: 0 0 8px;
}

.category-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.category-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
}

.category-card-field {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.category-card-index {
  color: #9aa3af;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

.category-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.category-icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.category-icon-button.is-edit {
  color: #2563eb;
}

.category-icon-button.is-delete {
  color: #ef4444;
}

.category-icon-button:hover,
.category-icon-button:focus,
.category-icon-button:active {
  background: #f8fafc !important;
  box-shadow: none !important;
}

.category-empty-state,
.category-loading-state {
  margin-top: 10px;
}

@media (max-width: 430px) {
  body.category-page .adminuiux-wrap,
  body.category-page .adminuiux-header .container-fluid {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc((100vw - 100%) / 2) !important;
    margin-right: calc((100vw - 100%) / 2) !important;
  }

  body.category-page .adminuiux-wrap .adminuiux-content.has-sidebar.category-main {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .category-create-row {
    grid-template-columns: minmax(0, 1fr) 60px;
  }

  .category-card {
    gap: 6px;
    padding: 7px;
  }

  .category-card-field {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 5px;
  }

  .category-icon-button {
    width: 30px;
    height: 30px;
  }
}

/* Notifications page */
body.notifications-page {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  background: #fff !important;
  overflow-x: hidden;
}

body.notifications-page .adminuiux-wrap {
  width: 100vw !important;
  max-width: 430px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow-x: hidden;
}

body.notifications-page .adminuiux-header .container-fluid {
  width: 100% !important;
  max-width: 430px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.notifications-page .adminuiux-wrap .adminuiux-content.has-sidebar.notifications-main {
  padding: 20px 15px 120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.notifications-head {
  margin-bottom: 14px;
}

.notifications-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: #f8fbff;
  padding: 14px;
  margin: 0 0 10px;
}

.notifications-summary-card span {
  display: block;
  color: #6f7785;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -0.35px;
  margin-bottom: 3px;
}

.notifications-summary-card strong {
  display: block;
  color: #121314;
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: -0.55px;
}

.notifications-summary-card > i {
  color: #3182f6;
  font-size: 22px;
}

.notifications-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.notifications-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  background: #fff;
  color: inherit !important;
  padding: 11px;
  text-decoration: none !important;
}

.notifications-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.notifications-icon.is-order { background: #eff6ff; color: #2563eb; }
.notifications-icon.is-store { background: #ecfdf5; color: #16a34a; }
.notifications-icon.is-item { background: #fff7ed; color: #ea580c; }

.notifications-card strong {
  display: block;
  color: #121314;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.45px;
  margin-bottom: 3px;
}

.notifications-card p {
  color: #858c94;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -0.35px;
  margin: 0;
}

.notifications-card > .bi-chevron-right {
  color: #b0b8c4;
  font-size: 14px;
}

@media (max-width: 430px) {
  body.notifications-page .adminuiux-wrap,
  body.notifications-page .adminuiux-header .container-fluid {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc((100vw - 100%) / 2) !important;
    margin-right: calc((100vw - 100%) / 2) !important;
  }

  body.notifications-page .adminuiux-wrap .adminuiux-content.has-sidebar.notifications-main {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

.category-order-actions {
  display: inline-grid;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  margin-right: 2px;
}

.category-order-button {
  width: 28px;
  height: 18px;
  border: 1px solid #e5e9f0;
  border-radius: 7px;
  background: #fff;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}

.category-order-button:hover,
.category-order-button:focus,
.category-order-button:active {
  background: #f8fafc !important;
  color: #2563eb !important;
  box-shadow: none !important;
}

.category-order-button:disabled {
  opacity: .35;
  cursor: not-allowed;
  color: #b8c0cc;
}

.category-list.is-order-saving {
  opacity: .72;
  pointer-events: none;
}

@media (max-width: 430px) {
  .category-order-button {
    width: 26px;
    height: 17px;
    border-radius: 6px;
    font-size: 11px;
  }
}


.category-card-field input[readonly] {
  background: #f8fafc;
  color: #4b5563;
  cursor: default;
}

.category-card.is-editing {
  border-color: rgba(49, 130, 246, .35);
  background: #fbfdff;
}

.category-card.is-editing .category-card-field input {
  background: #fff;
  color: #121314;
  cursor: text;
}

.category-save-area {
  position: sticky;
  bottom: 78px;
  z-index: 5;
  margin-top: 12px;
  padding: 8px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 28%);
}

.category-save-button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 13px;
  background: #3182f6;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.45px;
}

.category-save-button:disabled {
  opacity: .6;
}

.category-save-button:hover,
.category-save-button:focus,
.category-save-button:active {
  background: #2563eb !important;
  color: #fff !important;
  box-shadow: none !important;
}


.category-icon-button.is-edit {
  width: 54px;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
}

.category-icon-button.is-edit span {
  line-height: 1;
}

.category-save-button:disabled {
  background: #d8dee8 !important;
  color: #7d8794 !important;
  opacity: 1;
}

.category-card {
  grid-template-columns: minmax(0, 1fr) max-content;
}

.category-card-actions {
  flex-shrink: 0;
  gap: 3px;
}

.category-card-field {
  min-width: 0;
  grid-template-columns: 24px minmax(0, 1fr);
}

.category-card-field input {
  min-width: 0;
  padding-left: 9px;
  padding-right: 9px;
}

.category-icon-button.is-edit {
  width: 34px;
}

.category-icon-button.is-edit span {
  display: none;
}

.category-icon-button,
.category-icon-button.is-edit {
  height: 30px;
  border-radius: 9px;
}

.category-order-button {
  width: 24px;
  height: 15px;
}

@media (max-width: 430px) {
  .category-card {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 4px;
  }

  .category-card-actions {
    gap: 2px;
  }

  .category-icon-button,
  .category-icon-button.is-edit {
    width: 28px;
    height: 28px;
  }

  .category-order-button {
    width: 22px;
    height: 14px;
  }
}

.category-save-area {
  position: static !important;
  bottom: auto !important;
  z-index: auto !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.category-main {
  padding-bottom: 140px !important;
}


/* Show ON/OFF text inside item event switch */
.items-event-switch {
  width: 54px !important;
  height: 24px !important;
}

.items-event-switch > span::before {
  content: "OFF";
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.2px;
  z-index: 1;
  pointer-events: none;
}

.items-event-switch > span::after {
  top: 3px !important;
  left: 3px !important;
  width: 18px !important;
  height: 18px !important;
  z-index: 2;
}

.items-event-switch input:checked + span::before {
  content: "ON";
  left: 8px;
  right: auto;
}

.items-event-switch input:checked + span::after {
  transform: translateX(30px) !important;
}

/* Product import modal */
body.items-register-page .items-load-modal .modal-dialog {
  width: calc(100vw - 30px);
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

body.items-register-page .items-load-modal-content {
  border: 0;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
}

body.items-register-page .items-load-modal-header {
  align-items: flex-start;
  border-bottom: 1px solid #edf0f4;
  padding: 16px 16px 13px;
}

body.items-register-page .items-load-modal-header .checkout-modal-txt1 {
  color: #171b22;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.55px;
}

body.items-register-page .items-load-modal-header span {
  display: block;
  margin-top: 3px;
  color: #858c94;
  font-size: 12px;
  font-weight: 500;
  line-height: 17px;
  letter-spacing: -0.35px;
}

body.items-register-page .items-load-filter {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid #f0f2f6;
  background: #fbfcfe;
  padding: 12px 14px;
}

body.items-register-page .items-load-date-tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

body.items-register-page .items-load-date-tabs .date-scroll-wrapper {
  display: inline-flex;
  gap: 6px;
  min-width: max-content;
  white-space: nowrap;
}

body.items-register-page .items-load-date-tabs .btn-align-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  border: 1px solid #e2e7f0;
  border-radius: 999px !important;
  background: #fff;
  color: #6f7785;
  padding: 0 11px !important;
  margin: 0 !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.35px;
  white-space: nowrap;
}

body.items-register-page .items-load-date-tabs .btn-align-date em {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  padding: 0 5px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
}

body.items-register-page .items-load-date-tabs .btn-align-date.active {
  border-color: rgba(49, 130, 246, .18) !important;
  background: rgba(49, 130, 246, .09) !important;
  color: #2563eb !important;
}

body.items-register-page .items-load-date-tabs .btn-align-date.active em {
  background: rgba(37, 99, 235, .12);
  color: #2563eb;
}

body.items-register-page .items-load-search {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e3e7ee;
  border-radius: 13px;
  background: #fff;
  padding: 0 11px;
}

body.items-register-page .items-load-search i {
  color: #9aa3af;
  font-size: 15px;
}

body.items-register-page .items-load-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #171b22;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.35px;
}

body.items-register-page .items-load-list {
  height: min(56vh, 520px);
  display: grid;
  align-content: flex-start;
  gap: 9px;
  overflow-y: auto;
  padding: 12px 14px 16px;
}

body.items-register-page .items-load-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 10px;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
}

body.items-register-page .items-load-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: #f4f7fb;
  overflow: hidden;
}

body.items-register-page .items-load-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

body.items-register-page .items-load-info {
  min-width: 0;
}

body.items-register-page .items-load-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

body.items-register-page .items-load-title-row span,
body.items-register-page .items-load-title-row time {
  color: #858c94;
  font-size: 11px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: -0.35px;
  white-space: nowrap;
}

body.items-register-page .items-load-info strong {
  display: block;
  color: #171b22;
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
  letter-spacing: -0.45px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 8px;
}

body.items-register-page .items-load-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

body.items-register-page .items-load-metrics span {
  min-width: 0;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  background: #fbfcfe;
  padding: 6px 7px;
}

body.items-register-page .items-load-metrics small {
  display: block;
  color: #9aa3af;
  font-size: 10px;
  font-weight: 500;
  line-height: 13px;
  letter-spacing: -0.3px;
}

body.items-register-page .items-load-metrics b {
  display: block;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -0.35px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.items-register-page .items-load-card .btn-copy-item {
  width: 58px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #3182f6;
  color: #fff;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.35px;
}

/* Product import modal layout correction */
body.items-register-page .items-load-card {
  grid-template-columns: 68px minmax(0, 1fr);
  grid-template-areas:
    "thumb info"
    "action action";
  align-items: start;
  gap: 9px 10px;
}

body.items-register-page .items-load-thumb {
  grid-area: thumb;
  width: 68px;
  height: 68px;
}

body.items-register-page .items-load-info {
  grid-area: info;
}

body.items-register-page .items-load-card .btn-copy-item {
  grid-area: action;
  width: 100%;
  height: 40px;
  margin-top: 2px;
}

body.items-register-page .items-load-title-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  row-gap: 2px;
}

body.items-register-page .items-load-title-row span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.items-register-page .items-load-title-row time {
  color: #9aa3af;
}

/* Product import modal button position reset */
body.items-register-page #upper-item-list .items-load-card .btn-copy-item {
  position: static !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
  margin: 2px 0 0 !important;
  line-height: 1 !important;
}

/* Product import thumbnail fallback */
body.items-register-page .items-load-thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #a5adba;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.3px;
  text-align: center;
}

body.items-register-page .items-load-thumb-empty i {
  font-size: 18px;
  line-height: 1;
}

/* Thumbnail empty state: icon-only preview with explicit header action */
.items-register-thumb-header .items-thumb-upload-button {
  position: static !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  flex: 0 0 auto;
  height: auto !important;
  min-height: 0 !important;
  padding: 6px 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(49, 130, 246, .08) !important;
  color: #3182f6 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 16px !important;
  letter-spacing: -0.3px !important;
  box-shadow: none !important;
}

.items-register-thumb-header .items-thumb-upload-button i {
  font-size: 13px;
}

.items-register-thumb-header .items-thumb-upload-button span {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}


.items-thumb-placeholder {
  width: 56px;
  height: 56px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: transparent;
  color: #a1a9b3;
  font-size: 0;
}

.items-thumb-placeholder i {
  font-size: 28px;
  line-height: 1;
}

.items-thumb-upload-button i {
  font-size: 16px !important;
}

/* Product import source tabs */
body.items-register-page .items-load-source-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

body.items-register-page .items-load-source-button {
  height: 36px;
  border: 1px solid #e2e7f0;
  border-radius: 12px;
  background: #fff;
  color: #6f7785;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.35px;
}

body.items-register-page .items-load-source-button.is-active {
  border-color: rgba(49, 130, 246, .18);
  background: rgba(49, 130, 246, .09);
  color: #2563eb;
}


/* Store item exposure helper text */
.items-event-helper {
  margin: -7px 2px 12px;
  color: #9aa3ad;
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: -0.3px;
}

/* Product option SKU UX polish */
.items-option-card {
  padding: 15px 12px 13px;
  border-color: #dfe7f3;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 54%);
}

.items-option-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.items-option-title-wrap {
  min-width: 0;
}

.items-option-card .items-option-title-wrap h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 23px;
}

.items-option-title-wrap p {
  margin: 0;
  color: #77808f;
  font-size: 12px;
  font-weight: 500;
  line-height: 17px;
  letter-spacing: -0.32px;
}

.items-option-toggle {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #303846;
  cursor: pointer;
  user-select: none;
}

.items-option-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.items-option-toggle-ui {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #c9d1dc;
  transition: background .18s ease;
}

.items-option-toggle-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .16);
  transition: transform .18s ease;
}

.items-option-toggle input:checked + .items-option-toggle-ui {
  background: #3182f6;
}

.items-option-toggle input:checked + .items-option-toggle-ui::after {
  transform: translateX(14px);
}

.items-option-toggle strong {
  color: #303846;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.32px;
  white-space: nowrap;
}

.items-option-row-panel {
  padding: 10px;
  border: 1px solid #e6ebf3;
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
}

.items-option-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.items-option-panel-head strong {
  color: #202632;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.38px;
}

.items-time-sale-detail-field,
.items-option-time-sale-panel,
.items-option-time-sale-column,
.items-option-time-sale-cell {
  display: none;
}

.items-time-sale-card.is-time-sale-mode {
  border-color: #e4eaf3;
  background: #fff;
}

.items-option-time-sale-panel {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid #e6ebf3;
  border-radius: 14px;
  background: #f8fafc;
}

.items-option-time-sale-panel.is-visible {
  display: block;
}

.items-option-time-sale-panel-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: #222b38;
}

.items-option-time-sale-panel-head i {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(49, 130, 246, .1);
  color: #3182f6;
  font-size: 13px;
  line-height: 1;
}

.items-option-time-sale-panel-head strong {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.36px;
}

.items-option-time-sale-notice {
  margin: -3px 0 10px;
  padding-left: 31px;
  color: #7b8493;
  font-size: 12px;
  font-weight: 500;
  line-height: 17px;
  letter-spacing: -0.32px;
}

.items-option-time-sale-rows {
  display: grid;
  gap: 8px;
}

.items-option-time-sale-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 10px;
  border: 1px solid #edf1f6;
  border-radius: 13px;
  background: #fff;
}

.items-option-time-sale-row-info {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f6f8fb;
}

.items-option-time-sale-row-info strong {
  min-width: 0;
  color: #27313f;
  font-size: 13px;
  font-weight: 500;
  line-height: 17px;
  letter-spacing: -0.34px;
  word-break: keep-all;
}

.items-option-time-sale-row-info span {
  flex: 0 0 auto;
  color: #7b8493;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.items-option-time-sale-price-wrap {
  display: grid;
  gap: 6px;
}

.items-option-time-sale-price-wrap label,
.items-option-time-sale-input-label {
  margin: 0;
  color: #4b5565;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.3px;
}

.items-option-time-sale-input {
  height: 46px !important;
  border-color: #dfe6f0 !important;
  border-radius: 12px !important;
}

.items-option-time-sale-input input {
  font-size: 15px !important;
  font-weight: 600 !important;
}

.items-option-time-sale-input span {
  color: #4b5565;
  font-size: 13px;
  font-weight: 500;
}

.items-option-time-sale-input:focus-within {
  border-color: #3182f6 !important;
  box-shadow: 0 0 0 3px rgba(49, 130, 246, .12);
}

.items-option-time-sale-input input:disabled {
  background: #fff1ed !important;
  color: #b66a5a !important;
  cursor: not-allowed;
}

.items-option-time-sale-empty {
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  color: #7b8493;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.items-option-add-button {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: #3182f6;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.items-option-add-button i {
  font-size: 11px;
  line-height: 1;
}

.items-option-table-wrap {
  margin: 0;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  background: #fff;
}

.items-option-row-table {
  min-width: 980px;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
}

.items-option-row-table thead th {
  padding: 10px 8px;
  border: 0 !important;
  border-bottom: 1px solid #eef1f6 !important;
  background: #f8faff;
  color: #697283;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.32px;
  white-space: nowrap;
}

.items-option-row-table tbody td {
  padding: 8px 6px;
  border: 0 !important;
  border-top: 1px solid #f1f3f6 !important;
  vertical-align: top;
}

.items-option-row-table tbody tr:first-child td {
  border-top: 0 !important;
}

.items-option-row-table .form-control {
  min-height: 42px !important;
  height: 42px;
  padding: 0 10px !important;
  border-color: #e3e8f0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.items-option-row-table td[data-label="할인율"] {
  position: relative;
}

.items-option-row-table td[data-label="할인율"] .form-control {
  padding-right: 24px !important;
  text-align: right;
}

.items-option-percent-unit {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #7b8493;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
}

.items-option-name-cell {
  min-width: 190px;
}

.items-option-sort-cell {
  width: 78px;
}

.items-option-action-cell {
  width: 72px;
}

.items-option-delete-button {
  width: 100%;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 10px;
  background: #fff1f1;
  color: #e5484d;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.28px;
}

.items-option-delete-button i {
  font-size: 13px;
}

.items-option-help {
  margin: 9px 0 0;
  color: #697283;
  font-size: 12px;
  font-weight: 500;
  line-height: 17px;
  letter-spacing: -0.32px;
}

@media (max-width: 640px) {
  body.items-register-page .items-option-card {
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    padding: 14px 12px 12px;
  }

  .items-option-card-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .items-option-toggle {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

  .items-option-row-panel {
    padding: 9px;
  }

  .items-option-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .items-option-add-button {
    width: auto;
    height: 32px;
    align-self: flex-end;
  }

  .items-option-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .items-option-row-table,
  .items-option-row-table tbody,
  .items-option-row-table tr,
  .items-option-row-table td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
  }

  .items-option-row-table {
    min-width: 0;
  }

  .items-option-row-table thead {
    display: none;
  }

  .items-option-row-table tbody {
    display: grid;
    gap: 10px;
  }

  .items-option-row-table tr.items-option-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 11px;
    border: 1px solid #e6ebf3;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(32, 38, 50, .04);
  }

  .items-option-row-table tbody td {
    padding: 0 !important;
    border: 0 !important;
  }

  .items-option-row-table tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: #747d8d;
    font-size: 11px;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: -0.28px;
  }

  .items-option-row-table .items-option-name-cell,
  .items-option-row-table .items-option-action-cell {
    grid-column: 1 / -1;
  }

  .items-option-row-table .form-control {
    height: 44px;
    min-height: 44px !important;
  }

  .items-option-delete-button {
    height: 40px;
  }

  .items-option-time-sale-row {
    grid-template-columns: 1fr;
  }
}

/* Product option enabled state: parent price row becomes reference-only */
.items-register-price-row.is-option-overridden,
.items-register-unit-field.is-option-overridden {
  position: relative;
  margin-bottom: 12px;
  padding: 10px 8px 8px;
  border: 1px dashed #cfd9e8;
  border-radius: 13px;
  background: #f7f9fc;
}

.items-register-price-row.is-option-overridden::before {
  content: '옵션 사용 중: 실제 주문 수량·가격은 아래 옵션별 판매 정보가 적용됩니다.';
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  margin: 0 4px 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
  letter-spacing: -0.32px;
}

.items-register-price-row.is-option-overridden .form-floating,
.items-register-unit-field.is-option-overridden {
  opacity: .58;
}

.items-register-price-row.is-option-overridden .form-control[readonly],
.items-register-unit-field.is-option-overridden input[readonly] {
  background: #eef2f7 !important;
  color: #7b8493 !important;
  cursor: not-allowed;
}

/* Thumbnail upload guidance */
.items-modern-thumb-preview .items-thumb-placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 100%;
  color: #8d98a8;
  text-align: center;
}

.items-modern-thumb-preview .items-thumb-placeholder i {
  font-size: 28px;
  line-height: 1;
}

.items-modern-thumb-preview .items-thumb-placeholder small {
  display: block;
  max-width: 220px;
  color: #7b8493;
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
  letter-spacing: -0.32px;
  word-break: keep-all;
}


/* Time-sale badge can coexist with sale status and tax badges */
.items-thumb-badges {
  display: flex !important;
  align-items: flex-start !important;
  flex-wrap: wrap !important;
  gap: 3px !important;
  max-width: calc(100% - 8px) !important;
  white-space: normal !important;
}

.items-thumb-badges .items-status-pill,
.items-thumb-badges .items-time-sale-pill,
.items-thumb-badges .items-tax-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
