/* Airwright CMS – module Requests. Uses the --aw-… colours of the template. */
.req [hidden] { display: none !important; }
.req-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 26px; }
.req-head h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 800; letter-spacing: -.04em; }
.req-now { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: var(--aw-radius, 18px); background: var(--aw-surface, #10131b); border: 1px solid var(--aw-line, rgba(255, 255, 255, .09)); min-width: min(380px, 100%); max-width: 460px; }
.req-now-cover img, .req-now-cover .req-nocover { width: 84px; height: 84px; border-radius: 12px; }
.req-now-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.req-now-text small { color: var(--aw-muted, #98a2b6); font-size: 12.5px; }
.req-now-text > small:first-child { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.req-now-text b { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req-now-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req-progress { height: 4px; border-radius: 2px; background: var(--aw-surface-2, #171b26); margin: 8px 0 6px; overflow: hidden; }
.req-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--aw-accent, #ff3d6e), var(--aw-accent-2, #7c5cff)); transition: width 1s linear; }
.req-notice { margin: 0 0 18px; }
.req-toast { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; font-weight: 600; background: color-mix(in srgb, #2ecc8f 18%, transparent); border: 1px solid color-mix(in srgb, #2ecc8f 55%, transparent); }

.req-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--aw-line, rgba(255, 255, 255, .09)); margin-bottom: 20px; overflow-x: auto; }
.req-tabs button { padding: 12px 18px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--aw-muted, #98a2b6); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.req-tabs button.active { color: var(--aw-text, #eef1f7); border-color: var(--aw-accent, #ff3d6e); }

.req-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.req-tools label { display: flex; align-items: center; gap: 8px; color: var(--aw-muted, #98a2b6); font-size: 14.5px; }
.req-tools select, .req-tools input, .req-dialog input, .req-dialog textarea { font: inherit; color: var(--aw-text, #eef1f7); background: var(--aw-surface, #10131b); border: 1px solid var(--aw-line, rgba(255, 255, 255, .09)); border-radius: 12px; padding: 9px 12px; outline: none; }
.req-tools input { flex: 1; min-width: 220px; margin-left: auto; max-width: 420px; border-radius: 999px; padding-left: 18px; }
.req-tools select:focus, .req-tools input:focus, .req-dialog input:focus, .req-dialog textarea:focus { border-color: var(--aw-accent, #ff3d6e); }
.req-list-head { display: flex; justify-content: space-between; padding: 8px 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--aw-muted, #98a2b6); }
.req-list { border-radius: var(--aw-radius, 18px); background: var(--aw-surface, #10131b); border: 1px solid var(--aw-line, rgba(255, 255, 255, .09)); overflow: hidden; transition: opacity .15s; }
.req.is-loading .req-list { opacity: .55; }
.req-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--aw-line, rgba(255, 255, 255, .09)); }
.req-row:last-child { border-bottom: 0; }
.req-row:hover { background: color-mix(in srgb, var(--aw-accent, #ff3d6e) 6%, transparent); }
.req-row img, .req-nocover { width: 50px; height: 50px; border-radius: 9px; object-fit: cover; flex: none; background: var(--aw-surface-2, #171b26); display: grid; place-items: center; color: var(--aw-muted, #98a2b6); }
.req-row-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.req-row-text b, .req-row-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req-row-text small { color: var(--aw-muted, #98a2b6); font-size: 14px; }
.req-dur, .req-time { color: var(--aw-muted, #98a2b6); font-variant-numeric: tabular-nums; font-size: 14px; flex: none; }
.req-time { width: 46px; font-weight: 600; }
.req-row .btn { padding: 8px 16px; font-size: 14px; flex: none; }
.req-row .btn:disabled { opacity: .5; cursor: default; transform: none; }
.req-status { font-size: 13.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--aw-surface-2, #171b26); flex: none; max-width: 50%; text-align: right; }
.req-status-approved, .req-status-played { background: color-mix(in srgb, #2ecc8f 20%, transparent); color: #6fe3b3; }
.req-status-rejected { background: color-mix(in srgb, #ff5d6c 18%, transparent); color: #ff9aa3; }
.req-empty { text-align: center; color: var(--aw-muted, #98a2b6); padding: 44px 16px; margin: 0; }
.req-pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.req-pager > span:last-child { display: flex; align-items: center; gap: 10px; }
.req-pager .btn { padding: 8px 14px; }
.req-pager .btn:disabled { opacity: .35; cursor: default; }

.req-dialog { width: min(460px, 92vw); border: 1px solid var(--aw-line, rgba(255, 255, 255, .09)); border-radius: 22px; background: var(--aw-surface, #10131b); color: var(--aw-text, #eef1f7); padding: 26px; }
.req-dialog::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px); }
.req-dialog h2 { font-size: 26px; }
.req-dialog label { display: block; margin-top: 16px; font-size: 14px; color: var(--aw-muted, #98a2b6); }
.req-dialog input, .req-dialog textarea { display: block; width: 100%; margin-top: 6px; background: var(--aw-bg, #07080c); resize: vertical; }
.req-hp { position: absolute !important; left: -9999px; width: 1px !important; height: 1px; opacity: 0; }
.req-error { color: #ff9aa3; font-weight: 600; margin: 14px 0 0; }
.req-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

@media (max-width: 860px) {
    .req-dur { display: none; }
    .req-tools input { margin-left: 0; max-width: none; }
}
