/* App styling (same base + small tweaks for Reports) */
:root{
  --rw-primary:#004aad;
  --rw-bg:#0b1020;
  --rw-surface:#10172a;
  --rw-card:#0f172a;
  --rw-border:#1f2937;
  --rw-text:#e5e7eb;
  --rw-muted:#94a3b8;
  --rw-accent:#14b8a6;
  --rw-danger:#ef4444;
}
*{box-sizing:border-box}
body.rwapp-body{background:linear-gradient(180deg,#0c1224 0%,#0b1020 100%);margin:0;color:var(--rw-text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,'Helvetica Neue',Arial,'Noto Sans',sans-serif}
.rwapp-header{display:flex;align-items:center;justify-content:space-between;padding:14px 24px;border-bottom:1px solid var(--rw-border);background:rgba(16,23,42,.5);backdrop-filter:blur(8px);position:sticky;top:0;z-index:50}
.rwapp-brand{display:flex;align-items:center;gap:10px}
.rwapp-sitename{color:#fff;text-decoration:none;font-weight:700;font-size:18px}
.rwapp-powered{color:var(--rw-muted);font-size:12px}
.rwapp-nav ul{display:flex;gap:12px;list-style:none;margin:0;padding:0}
.rwapp-nav a{color:var(--rw-text);text-decoration:none;padding:8px 10px;border-radius:8px}
.rwapp-nav a:hover{background:rgba(255,255,255,.06)}
.rwapp-main{padding:24px}
.rwapp-container{max-width:1200px;margin:0 auto}
.rwapp-hero{padding:28px;border:1px solid var(--rw-border);border-radius:20px;background:linear-gradient(180deg,#10172a,#0f172a);box-shadow:0 10px 30px rgba(0,0,0,.2)}
.rwapp-sub{color:var(--rw-muted)}
.rwapp-tabs{display:flex;gap:8px;margin:18px 0}
.rwapp-tab{padding:10px 16px;border:1px solid var(--rw-border);background:var(--rw-surface);color:var(--rw-text);border-radius:12px;cursor:pointer}
.rwapp-tab.is-active{background:var(--rw-primary);border-color:var(--rw-primary)}
.rwapp-section{display:none}
.rwapp-section.is-active{display:block}
.rwapp-card{border:1px solid var(--rw-border);background:var(--rw-card);border-radius:16px;padding:18px;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.rwapp-filterbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px;align-items:center}
.rwapp-input,.rwapp-select{background:#0b1220;border:1px solid var(--rw-border);color:var(--rw-text);padding:10px 12px;border-radius:10px;min-width:180px}
.rwapp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width:1000px){ .rwapp-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){ .rwapp-grid{grid-template-columns:1fr} }
.rwapp-carditem{border:1px solid var(--rw-border);border-radius:14px;overflow:hidden;background:linear-gradient(180deg,#0f172a,#0c1324)}
.rwapp-carditem .rwapp-thumb{height:140px;background:#0b1220;display:flex;align-items:center;justify-content:center}
.rwapp-carditem .rwapp-thumb img{max-height:100%;max-width:100%}
.rwapp-carditem .rwapp-body{padding:12px}
.rwapp-carditem h4{margin:0 0 8px;font-size:16px}
.rwapp-meta{display:flex;gap:8px;color:var(--rw-muted);font-size:12px}
.rwapp-actions{display:flex;gap:8px;margin-top:10px}
.rwapp-btn{background:var(--rw-primary);border:0;color:#fff;padding:10px 14px;border-radius:10px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.rwapp-btn.secondary{background:#111827}
.rwapp-btn.ghost{background:transparent;border:1px solid var(--rw-border)}
.rwapp-muted{color:var(--rw-muted)}
.rwapp-footer{padding:18px 24px;color:var(--rw-muted);border-top:1px solid var(--rw-border)}
.rwapp-dates input{min-width:150px}
