.discounts-standard-workspace { font-size:14px; min-width:0; }
.discounts-standard-workspace header { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.discounts-standard-workspace h1 { font-size:24px; margin:12px 0 24px; }
.discounts-standard-workspace h2 { font-size:18px; margin:0 0 16px; }
.discounts-breadcrumb { border:0; background:none; color:var(--primary,#2463cf); padding:0; cursor:pointer; font:inherit; text-align:left; }
.discounts-tabs, .discounts-filter-row, .discounts-pagination { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin:14px 0; }
.discounts-tabs button { background:transparent; border:0; border-bottom:2px solid transparent; padding:10px 8px; font:inherit; }
.discounts-tabs button[aria-current=page] { color:var(--primary,#2463cf); border-color:currentColor; }
.discounts-field { display:grid; grid-template-columns:171px minmax(0,1fr); align-items:center; gap:0; margin:18px 0; }
.discounts-field input, .discounts-input input, .discounts-filter-row input { min-width:0; border:1px solid #d6dfed; border-radius:5px; padding:9px 12px; font:inherit; background:white; }
.discounts-input { display:flex; position:relative; align-items:center; gap:0; }
.discounts-input input { width:100%; box-sizing:border-box; }
.discounts-input input[inputmode=decimal] { padding-right:24px; }
.discounts-input > span { position:absolute; right:8px; color:#9aa5b3; pointer-events:none; }
.discounts-standard-workspace [data-discounts-field=name] { width:100%; box-sizing:border-box; }
.discounts-required { font-style:normal; color:#db3d4c; }
.discounts-card { border:1px solid #d6dfed; border-radius:8px; padding:0; margin-top:22px; overflow:visible; }
.discounts-card-header { background:#edf1f9; border-radius:8px 8px 0 0; padding:10px 20px; }
.discounts-card-header .discounts-field { grid-template-columns:171px 134px; gap:7px; margin:0; font-weight:600; }
.discounts-card-header .discounts-input { font-weight:400; }
.discounts-category-columns { display:grid; grid-template-columns:1fr 1fr; padding:18px 20px; gap:40px; }
.discounts-category { display:grid; grid-template-columns:171px 134px; gap:0; align-items:center; margin:14px 0; }
.discounts-category label { display:flex; gap:8px; align-items:center; color:var(--primary,#2463cf); }
.discounts-category input:not([type=checkbox]), .discounts-card-header input { padding:5px 7px; }
.discounts-category input[inputmode=decimal], .discounts-card-header input[inputmode=decimal] { padding-right:24px; }
.discounts-standard-workspace input:disabled { background:#f3f5f8; color:#738094; }
.discounts-actions { display:flex; justify-content:flex-end; margin:26px 0 24px; }
.discounts-table-scroll { overflow-x:auto; border:1px solid #d6dfed; border-radius:7px; }
.discounts-standard-workspace table { width:100%; border-collapse:collapse; min-width:760px; }
.discounts-standard-workspace th { font-size:calc(14px + 1pt); text-align:center; background:#f0f4fa; padding:14px; }
.discounts-standard-workspace td { padding:14px; border-top:1px solid #d6dfed; vertical-align:top; }
.discounts-saved { background:#edf6ff; }
.discounts-standard-workspace [role=alert] { color:#a32a32; }
.discounts-filter-row > input:not([type=radio]) { width:240px; }
.discounts-pagination button[aria-current=true] { background:#2463cf; color:white; }
.discounts-standard-workspace button:disabled { cursor:default; opacity:.55; }
.discounts-salon { position:relative; }
.discounts-salon-input { display:flex; gap:5px; align-items:center; flex-wrap:wrap; border:1px solid #d6dfed; border-radius:5px; padding:4px 8px; background:white; min-height:35px; box-sizing:border-box; min-width:0; }
.discounts-salon-input input { border:0; flex:1; width:100px; padding:5px; }
.discounts-salon-input > button, .discounts-chip button { background:transparent; border:0; font:inherit; cursor:pointer; }
.discounts-chip { display:inline-flex; align-items:center; gap:4px; background:#eef3fc; border:1px solid #d6dfed; border-radius:3px; padding:3px 5px; }
.discounts-salon [data-discounts-salon-menu] { position:absolute; top:100%; left:171px; right:0; background:white; border:1px solid #d6dfed; border-radius:5px; box-shadow:0 5px 15px #1d355522; z-index:5; max-height:240px; overflow:auto; padding:6px; }
.discounts-salon [role=option] { display:block; width:100%; text-align:left; border:0; padding:9px; background:white; font:inherit; }
.discounts-salon [role=option][aria-selected=true] { color:#2463cf; font-weight:600; background:#eef3fc; }
.discounts-standard-workspace dialog { border:1px solid #d6dfed; border-radius:9px; max-width:min(440px,calc(100vw - 50px)); padding:24px; }
.discounts-standard-workspace dialog::backdrop { background:#15213866; }
.discounts-standard-workspace dialog .discounts-actions { gap:12px; margin-bottom:0; }
@media (max-width:900px) {
  .discounts-category { grid-template-columns:minmax(125px,1fr) 110px; }
  .discounts-category-columns { gap:18px; padding:12px; }
  .discounts-card-header .discounts-field { grid-template-columns:150px 110px; }
}
@media (max-width:700px) {
  .discounts-standard-workspace header { align-items:flex-start; flex-direction:column; }
  .discounts-standard-workspace h1 { font-size:21px; }
  .discounts-tabs { gap:3px; }
  .discounts-filter-row > input:not([type=radio]), .discounts-filter-row > .discount-list-choice { width:100%; box-sizing:border-box; }
  .discounts-field { grid-template-columns:1fr; gap:7px; }
  .discounts-card-header .discounts-field { grid-template-columns:minmax(130px,1fr) 110px; }
  .discounts-category { grid-template-columns:minmax(130px,1fr) 110px; }
  .discounts-category-columns { grid-template-columns:1fr; gap:0; }
  .discounts-salon [data-discounts-salon-menu] { left:0; }
}

/* Source journal has a single icon action column; edit is a row action, outside this create-only candidate. */
.discounts-standard-workspace th:last-child, .discounts-standard-workspace td:last-child { width:40px; box-sizing:border-box; padding:8px; text-align:center; }
.discounts-standard-workspace .confirm-button--danger { color:#fff; background:#b72f42; border-color:#b72f42; }

.discount-list-choice { max-width:100%; white-space:normal; overflow-wrap:anywhere; }

[data-discount-scroll-table] {
  overflow:auto; overscroll-behavior:contain; overflow-anchor:none; scrollbar-gutter:stable;
  max-height:min(62vh,46rem); max-width:100%;
}
[data-discount-scroll-table] th { position:sticky; top:0; z-index:1; }
[data-discount-scroll-table] tbody td { padding:12px 14px; line-height:20px; }
[data-discount-scroll-table] tbody tr[data-journal-spacer] td { padding:0; border:0; }
[data-discount-scroll-table] th:nth-child(2) { min-width:18rem; }
[data-discount-scroll-table] td:nth-child(n+4):not(:last-child) { min-width:10rem; }
.discount-scroll-scope-row { display:grid; grid-template-columns:max-content 1fr; gap:.5rem; }
.discount-scroll-amount,.discount-scroll-category,.discount-scroll-created { white-space:nowrap; }
.discount-scroll-category,.discount-scroll-created { display:block; }
.discount-scroll-text { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; }
td:has(.discount-scroll-created) .discount-scroll-text { -webkit-line-clamp:1; }
.reference-app [data-discount-scroll-retry][hidden],
[data-discount-scroll-status]:empty { display:none; }
