/* Scoped to the flash-sale page and its dialogs. */
.rush-page .rush-shell { overflow:hidden; }
.rush-page-head { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:26px 28px 22px; }
.rush-page-head h2 { margin:0 0 8px; font-size:20px; color:var(--text); }
.rush-page-head p { margin:0; font-size:14px; }
.rush-filters { display:flex; align-items:center; gap:12px; padding:0 28px 24px; border-bottom:1px solid var(--border); }
.rush-filters .input { flex:1; max-width:420px; min-width:200px; }
.rush-filters .select { width:190px; flex:none; }
.rush-list { padding:12px 28px 24px; }
.rush-page .rush-table { min-width:1080px; width:100%; table-layout:fixed; }
.rush-page .rush-table th:nth-child(1) { width:22%; }
.rush-page .rush-table th:nth-child(2) { width:18%; }
.rush-page .rush-table th:nth-child(3) { width:12%; }
.rush-page .rush-table th:nth-child(4) { width:17%; }
.rush-page .rush-table th:nth-child(5) { width:10%; }
.rush-page .rush-table th:nth-child(6) { width:21%; }
/* Keep status and actions in the same scrollable row; a pinned action cell
   would cover status on smaller desktop windows. */
.rush-page .rush-table.has-actions th:last-child,
.rush-page .rush-table.has-actions td:last-child { position:static; border-left:0; box-shadow:none!important; }
.rush-page .rush-list .table-wrap-x { scrollbar-width:none; }
.rush-page .rush-list .table-wrap-x::-webkit-scrollbar { height:0; }
.rush-page .rush-list .hscroll:not(.hidden) { display:block!important; }
.rush-page .rush-table td { padding:20px 16px; vertical-align:middle; white-space:nowrap; }
.rush-page .rush-table th { padding:16px; font-size:13px; }
.rush-page .rush-table td:first-child { white-space:normal; min-width:200px; max-width:260px; }
.rush-list-title { font-size:15px; font-weight:600; margin-bottom:7px; overflow-wrap:anywhere; }
.rush-table small { display:block; margin-top:5px; font-size:12px; }
.rush-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; max-width:270px; }
.rush-actions .btn { min-height:36px; padding:7px 12px; font-size:13px; white-space:nowrap; }
.rush-status { display:inline-flex; align-items:center; padding:6px 11px; border-radius:999px; background:#f0f2f4; color:#65716d; font-size:12px; white-space:nowrap; }
.rush-status-active { background:#eaf5ef; color:#256d50; }
.rush-status-scheduled { background:#edf3fc; color:#446f9f; }
.rush-status-soldout { background:#fff1e6; color:#a86623; }
.rush-empty { padding:64px 20px; text-align:center; color:var(--muted); }
.rush-empty h3 { color:var(--text); font-size:17px; margin:0 0 12px; }
.rush-empty p { margin:0; font-size:14px; }
#modal:has(.rush-dialog) { width:min(980px,calc(100vw - 64px)); max-width:980px; }
.rush-dialog { color:var(--text); font-size:14px; display:flex; flex-direction:column; gap:22px; padding:2px; }
.rush-dialog .rush-note { padding:13px 16px; border-radius:10px; background:#f5f7f6; border:1px solid #e9eeeb; color:#6e7c75; font-size:13px; line-height:1.7; }
.rush-section { border:1px solid var(--border); border-radius:14px; padding:22px; }
.rush-section h3 { margin:0 0 18px; font-size:16px; color:var(--text); }
.rush-section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.rush-section-heading .muted { font-size:12px; margin-bottom:18px; }
.rush-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; }
.rush-field { display:flex; flex-direction:column; gap:9px; min-width:0; }
.rush-label { font-size:13px; color:#61716b; }
.rush-field .input,.rush-field .select { width:100%; min-width:0; }
.rush-field input:disabled,.rush-field select:disabled { background:#f5f6f6; opacity:1; color:#73817a; cursor:not-allowed; }
.rush-field-hint { color:#839088; font-size:12px; line-height:1.6; margin:0; }
.rush-ticket-list { display:flex; flex-direction:column; gap:12px; margin-bottom:16px; }
.rush-ticket-row { border:1px solid #e4e9e6; border-radius:12px; background:var(--card,#fff); overflow:hidden; }
.rush-ticket-row.is-selected { border-color:#e7bfa9; }
.rush-ticket-choice { display:flex; align-items:center; gap:12px; padding:16px; cursor:pointer; }
.rush-ticket-choice input,.rush-checkline input { flex:none; width:17px; height:17px; accent-color:var(--primary,#ce623d); }
.rush-ticket-identity { display:flex; flex-direction:column; gap:6px; min-width:0; }
.rush-ticket-name { font-size:14px; font-weight:500; color:var(--text); overflow-wrap:anywhere; }
.rush-ticket-identity small { font-size:12px; color:#809087; }
.rush-ticket-config { border-top:1px solid #f0e5de; background:#fffaf7; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px 24px; padding:18px 20px; }
.rush-stock-control { display:flex; gap:8px; min-width:0; }
.rush-stock-control .select { width:120px; flex:none; }
.rush-stock-control .input { min-width:80px; }
.rush-ticket-stats { grid-column:1 / -1; font-size:12px; color:#8b887e; }
.rush-checkline { display:flex; align-items:center; gap:10px; cursor:pointer; margin-bottom:12px; }
.rush-preview { background:#f8faf8; border:1px solid #dce8df; border-radius:12px; padding:18px 20px; display:flex; flex-direction:column; gap:8px; }
.rush-preview-label { color:#71917c; font-size:12px; }
.rush-preview strong { font-size:16px; font-weight:500; }
.rush-preview p { margin:0; color:#54685c; font-size:13px; line-height:1.6; }
.rush-preview small { color:#849086; font-size:12px; line-height:1.6; }
.rush-form-error { color:#b34b31; background:#fff2ed; border:1px solid #f3d1c5; border-radius:10px; padding:13px 16px; line-height:1.6; }
.rush-form-error[hidden],.rush-stock-control input[hidden] { display:none; }
.rush-inline-error { color:#b34b31; font-size:12px; line-height:1.6; }
.rush-dialog [aria-invalid="true"] { border-color:#d27b60; box-shadow:0 0 0 3px #fcedE7; }
.rush-detail-top { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.rush-detail-top h3 { margin:0; font-size:20px; }
.rush-product-name { color:#6f7c76; margin-top:-10px; }
.rush-facts { display:grid; grid-template-columns:90px minmax(0,1fr); gap:12px 16px; margin:0; font-size:13px; line-height:1.7; }
.rush-facts dt { color:#819087; }
.rush-facts dd { margin:0; }
.rush-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.rush-stats>div { border:1px solid var(--border); border-radius:12px; padding:16px 20px; display:flex; flex-direction:column; gap:10px; }
.rush-stats span { color:#819087; font-size:12px; }
.rush-stats strong { font-size:24px; font-weight:500; }
.rush-table-scroll { max-width:100%; overflow-x:auto; }
.rush-detail-table { width:100%; min-width:850px; }
.rush-detail-table th,.rush-detail-table td { white-space:nowrap; padding:14px 12px; font-size:13px; }
body[data-theme="dark"] .rush-dialog .rush-note,body[data-theme="dark"] .rush-preview,body[data-theme="dark"] .rush-ticket-config { background:#25312c; border-color:#405148; }
body[data-theme="dark"] .rush-ticket-row { border-color:#405148; }
body[data-theme="dark"] .rush-preview p { color:#bacabf; }
@media(max-width:1000px) and (min-width:768px) { .rush-page-head,.rush-filters { padding-left:20px; padding-right:20px; } .rush-filters { flex-wrap:wrap; } .rush-list { padding-left:20px; padding-right:20px; } }
@media(max-width:767px) { .rush-product-entry { display:none!important; } }
