/* Winner Royal CASH V3 CMS content index. Scope is strictly the CMS index. */
.mrw-cms-index{display:grid;gap:11px;min-width:0;width:100%}
.mrw-cms-index-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.mrw-cms-index-search{display:flex;gap:8px;flex:1;min-width:0;align-items:center}
.mrw-cms-index-search input{flex:1;min-width:0;max-width:440px;background:#0e1b25;border:1px solid #354b5c;color:#e0eff3;border-radius:8px;padding:10px 12px;font:inherit;font-size:12px}
.mrw-cms-index-search select{background:#0e1b25;border:1px solid #354b5c;color:#d8e8ed;border-radius:8px;padding:9px;min-height:38px;font:inherit;font-size:12px}
.mrw-cms-index-count{font-size:11px;color:#96adb7;font-variant-numeric:tabular-nums}
.mrw-cms-index-list{display:grid;gap:7px;min-width:0}
.mrw-cms-index-item{display:grid;grid-template-columns:minmax(210px,1.35fr) minmax(210px,2fr) minmax(160px,.9fr);align-items:center;gap:14px;padding:12px 14px;min-width:0;border:1px solid #344653;background:linear-gradient(110deg,#121e28,#15222c);border-radius:9px;transition:border-color .16s ease}
.mrw-cms-index-item:hover,.mrw-cms-index-item:focus-within{border-color:#338f83}
.mrw-cms-index-item[hidden]{display:none!important}
.mrw-cms-index-identity{display:flex;gap:12px;align-items:center;min-width:0}
.mrw-cms-index-thumb{flex:0 0 98px;width:98px;height:58px;border-radius:7px;background:#071317;border:1px solid #384e55;overflow:hidden;display:grid;place-items:center}
.mrw-cms-index-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.mrw-cms-index-thumb .mrw-banner-thumb-image{width:100%;height:100%}
.mrw-cms-index-placeholder{font-size:10px;color:#9eafb9;text-align:center}
.mrw-cms-index-caption{display:flex;flex-direction:column;gap:4px;min-width:0}
.mrw-cms-index-caption strong{font-size:12px;color:#e8f1f7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mrw-cms-index-caption small{font-size:10px;color:#8eafb4}
.mrw-cms-index-details{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;min-width:0}
.mrw-cms-index-detail{min-width:55px;max-width:100%;display:flex;flex-direction:column;gap:4px;font-size:11px;color:#d8e6ea}
.mrw-cms-index-detail>small{font-size:9px;letter-spacing:.04em;color:#839caa;font-weight:700}
.mrw-cms-index-detail>span{display:block;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mrw-cms-index-detail .status{font-size:10px}
.mrw-cms-index-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap}
.mrw-cms-index-actions button{min-height:29px;font-size:11px;white-space:nowrap}
.mrw-cms-index-buttons{display:flex;gap:5px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.mrw-cms-index-empty{padding:15px;margin:0;border:1px dashed #395661;text-align:center;border-radius:7px;color:#90a6b4;font-size:12px}
.mrw-cms-index-empty[hidden]{display:none}
@media(max-width:1150px){
 .mrw-cms-drawer-responsive{grid-template-columns:minmax(0,1fr)!important}
 .mrw-cms-drawer-responsive>div{min-width:0}
 .mrw-cms-drawer-responsive>div[style*="position:sticky"]{position:static!important}
 .mrw-cms-index-item{grid-template-columns:minmax(175px,1.1fr) minmax(210px,2fr);gap:12px}
 .mrw-cms-index-actions{grid-column:1/-1;justify-content:flex-end;border-top:1px solid #2c404a;padding-top:7px}
}
@media(max-width:670px){
 .mrw-cms-index-item{grid-template-columns:minmax(0,1fr);gap:10px;padding:10px}
 .mrw-cms-index-thumb{width:90px;flex-basis:90px;height:55px}
 .mrw-cms-index-details{gap:8px 14px}
 .mrw-cms-index-detail>span{max-width:min(52vw,220px)}
 .mrw-cms-index-actions{grid-column:auto;justify-content:space-between}
 .mrw-cms-index-search{width:100%}
 .mrw-cms-index-search input{max-width:none}
}
@media(max-width:360px){
 .mrw-cms-index-search{flex-wrap:wrap}
 .mrw-cms-index-search select{width:100%}
 .mrw-cms-index-actions{gap:6px}
 .mrw-cms-index-thumb{width:76px;flex-basis:76px}
}
@media(prefers-reduced-motion:reduce){.mrw-cms-index-item{transition:none}}

/* CASH: CMS image upload controls for banner/pop-up editor, 2026-10-16 */
.mrw-cms-file-picker{display:block;margin:10px 0;padding:13px;border:1px dashed #6e927d;border-radius:10px;background:rgba(44,115,80,.08)}
.mrw-cms-file-picker strong{display:block;font-size:12px;margin-bottom:5px}
.mrw-cms-file-picker small{display:block;font-size:11px;line-height:1.5;color:var(--muted,#9aa8ae);margin-bottom:9px}
.mrw-cms-file-picker input[type=file]{display:block;max-width:100%;width:100%;font-size:12px;padding:8px 0;cursor:pointer}
.mrw-cms-file-feedback{display:block;min-height:19px;margin:7px 0;color:var(--muted,#9aa8ae);font-size:11px;overflow-wrap:anywhere}
.mrw-cms-file-preview{display:none;max-width:100%;max-height:145px;object-fit:contain;border:1px solid #54745d;border-radius:7px;background:#071910}
.mrw-cms-file-preview[src]{display:block}
