/* Reports & Analytics (reports-analytics.js): navy / gold, matches the Admin portal. Phone-first: grids shrink to the screen, tables scroll inside their own box, nothing overlaps. */
.ra { --n1: #0b1f3a; --n2: #12305a; --gold: #f5b400; --gold2: #ffd24d; --line: rgba(255,255,255,.14); --mut: #a9b8d0; background: var(--n1); color: #eaf0fb; border-radius: 20px; padding: 18px; border: 1px solid rgba(245,180,0,.25); min-width: 0; max-width: 100%; }
.ra *, .ra *::before, .ra *::after { box-sizing: border-box; }
.ra :where(b, small, span, p, li, em, h3, h4, h5, label, time, a, td, th) { overflow-wrap: anywhere; }
.ra-head h3 { margin: 0; font-size: 22px; font-weight: 800; color: #fff; } .ra-head p { margin: 4px 0 12px; color: var(--mut); font-size: 13px; max-width: 760px; }
.ra-nav { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: thin; }
.ra-nav button { flex: 0 0 auto; white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--n2); color: #eaf0fb; font: 700 13px inherit; font-family: inherit; cursor: pointer; }
.ra-nav button.on { background: var(--gold); color: var(--n1); border-color: var(--gold); } .ra-nav i { font-style: normal; background: #ef4444; color: #fff; border-radius: 99px; padding: 0 7px; font-size: 11px; margin-left: 4px; }
.ra-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 13px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: #fff; font: 700 12.5px/1.2 inherit; font-family: inherit; cursor: pointer; text-align: center; }
.ra-btn:hover { background: rgba(255,255,255,.16); } .ra-btn:disabled { opacity: .5; cursor: default; }
.ra-gold { background: linear-gradient(90deg, var(--gold), var(--gold2)); color: var(--n1); border-color: transparent; } .ra-gold:hover { filter: brightness(1.07); background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.ra-link { background: none; border: 0; color: var(--gold2); font: 700 inherit; font-family: inherit; text-decoration: underline; cursor: pointer; padding: 0; text-align: left; }
.ra-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
.ra-fbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--n2); margin-bottom: 12px; }
.ra-fld { display: grid; gap: 4px; min-width: 0; } .ra-fld > span { font-size: 11px; font-weight: 800; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
.ra-in { width: 100%; max-width: 100%; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--n1); color: #fff; font: 13px inherit; font-family: inherit; } .ra-in:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.ra-mut { color: var(--mut); font-size: 12px; }
.ra-warn { padding: 10px 14px; border-radius: 12px; background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.5); color: #fecaca; font-size: 13px; margin-bottom: 10px; }
.ra-info, .ra-ok { padding: 12px 14px; border-radius: 12px; background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.4); color: #bae6fd; font-size: 13px; margin-bottom: 12px; } .ra-ok { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.5); color: #bbf7d0; }
.ra-body { display: grid; gap: 14px; min-width: 0; } .ra-body.busy { opacity: .6; }
.ra-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 10px; }
.ra-card { display: grid; gap: 2px; align-content: start; text-align: left; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--n2); color: #eaf0fb; min-width: 0; font-family: inherit; }
button.ra-card { cursor: pointer; } button.ra-card:hover { border-color: var(--gold); }
.ra-card b { font-size: 24px; color: var(--gold); line-height: 1.15; } .ra-card span { font-size: 12px; font-weight: 700; color: #dbe6f7; } .ra-card small { font-size: 11px; color: var(--mut); }
.ra-d { font-style: normal; font-size: 11px; font-weight: 700; color: var(--mut); } .ra-d.up { color: #86efac; } .ra-d.dn { color: #fca5a5; }
.ra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.ra-panel { background: var(--n2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; min-width: 0; }
.ra-ph { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 10px; } .ra-ph h4 { margin: 0; font-size: 15px; color: #fff; }
.ra-note { color: var(--mut); font-size: 12px; margin: 8px 0 0; } .ra-empty { padding: 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--mut); font-size: 13px; text-align: center; }
.ra-bars { display: grid; gap: 6px; } .ra-bar { display: grid; grid-template-columns: minmax(70px, 34%) minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 8px; background: none; border: 0; color: inherit; font: 12.5px inherit; font-family: inherit; text-align: left; width: 100%; }
button.ra-bar { cursor: pointer; } button.ra-bar:hover { background: rgba(255,255,255,.07); }
.ra-bl { min-width: 0; } .ra-bt { height: 10px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; } .ra-bt i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-radius: 99px; } .ra-bv { font-weight: 800; color: #fff; text-align: right; white-space: nowrap; }
.ra-line { width: 100%; height: auto; max-height: 190px; display: block; } .ra-line .g { stroke: rgba(255,255,255,.15); } .ra-line text { font-size: 9px; fill: #a9b8d0; } .ra-line .l { fill: none; stroke: var(--gold); stroke-width: 2.5; } .ra-line circle { fill: var(--n1); stroke: var(--gold); stroke-width: 2; } .ra-line .b { fill: var(--gold); }
.ra-donut { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; } .ra-donut svg { width: 130px; height: 130px; flex: 0 0 auto; } .ra-donut .c { font-size: 20px; font-weight: 800; fill: #fff; }
.ra-donut ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; flex: 1 1 140px; min-width: 0; } .ra-donut li button, .ra-donut li span { display: flex; gap: 8px; align-items: center; background: none; border: 0; color: inherit; font: 13px inherit; font-family: inherit; padding: 2px 0; cursor: pointer; text-align: left; } .ra-donut li span { cursor: default; } .ra-donut li i { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; } .ra-donut b { color: #fff; }
.ra-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; } .ra-tools .ra-in { flex: 1 1 180px; width: auto; }
.ra-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; }
.ra table { width: 100%; border-collapse: collapse; font-size: 12.5px; } .ra th, .ra td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; } .ra th { background: rgba(255,255,255,.06); white-space: nowrap; position: sticky; top: 0; } .ra th button { background: none; border: 0; color: var(--gold2); font: 800 11.5px inherit; font-family: inherit; cursor: pointer; text-transform: uppercase; letter-spacing: .03em; padding: 0; }
.ra td { min-width: 70px; } .ra tbody tr:last-child td { border-bottom: 0; }
.ra-pg { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 8px; font-size: 12px; color: var(--mut); }
.ra-ins { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.ra-i { background: var(--n2); border: 1px solid var(--line); border-left: 5px solid #94a3b8; border-radius: 14px; padding: 14px; min-width: 0; } .ra-i.high { border-left-color: #ef4444; } .ra-i.medium { border-left-color: #f59e0b; } .ra-i.low { border-left-color: #38bdf8; }
.ra-i-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .ra-i-h b { flex: 1 1 160px; color: #fff; } .ra-pri { font-size: 10.5px; font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.12); } .ra-n { background: var(--gold); color: var(--n1); font-weight: 800; border-radius: 99px; padding: 1px 9px; font-size: 12px; }
.ra-i p { margin: 6px 0; font-size: 13px; } .ra-act { color: var(--gold2); } .ra-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ra-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .ra-feed li { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); } .ra-feed li > div { min-width: 0; } .ra-feed b { display: block; font-size: 13px; color: #fff; } .ra-feed small { color: var(--mut); } .ra-feed time { font-size: 12px; color: var(--mut); white-space: nowrap; }
.ra-defs { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: #dbe6f7; }
.ra-back { position: fixed; inset: 0; z-index: 10000; background: rgba(2,8,23,.75); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; justify-items: center; align-content: center; padding: 12px; overflow-y: auto; overflow-x: hidden; border: 0; border-radius: 0; max-width: none; box-sizing: border-box; }
.ra-dlg { width: min(960px, 100%); min-width: 0; max-width: 100%; margin: auto; box-sizing: border-box; max-height: calc(100vh - 24px); display: flex; flex-direction: column; background: var(--n1); color: #eaf0fb; border: 1px solid rgba(245,180,0,.4); border-radius: 18px; padding: 16px; } .ra-dlg-b { overflow: auto; min-width: 0; min-height: 0; flex: 1 1 auto; }
.ra-dlg-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; } .ra-dlg-h h3 { margin: 0; font-size: 17px; color: #fff; } .ra-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; flex: 0 0 auto; }
.ra-dlg-f { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.ra-sr { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 10px; } .ra-sr h5 { margin: 0 0 6px; color: var(--gold2); } .ra-sr h6 { margin: 10px 0 2px; font-size: 11.5px; text-transform: uppercase; color: var(--mut); } .ra-sr ul { margin: 0; padding-left: 18px; font-size: 13px; } .ra-sr dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 8px; margin: 0; } .ra-sr dt { font-size: 10.5px; color: var(--mut); text-transform: uppercase; } .ra-sr dd { margin: 0; font-weight: 700; font-size: 13px; } .ra-srep code { font-size: 12px; }
@media (max-width: 640px) { .ra { padding: 12px; border-radius: 16px; } .ra-btn { flex: 1 1 auto; } .ra-bar { grid-template-columns: minmax(60px, 40%) minmax(0, 1fr) auto; } .ra-dlg { padding: 12px; } }
