/* Scoped rider operations UI. Reuses the established admin theme; no remote fonts. */
.rd-panel { padding:24px; }
.rd-stats { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px; }
.rd-stat { border:1px solid var(--line);border-radius:12px;padding:18px 20px;background:var(--panel); }
.rd-stat span { display:block;color:var(--muted);font-size:13px;margin-bottom:10px; }
.rd-stat strong { font-size:28px;font-variant-numeric:tabular-nums; }
.rd-toolbar { display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:16px 0; }
.rd-toolbar label,.rd-form label { display:flex;flex-direction:column;gap:8px;color:var(--text);font-size:13px; }
.rd-toolbar input,.rd-toolbar select,.rd-form input,.rd-form select { box-sizing:border-box;min-width:150px;min-height:42px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);font:inherit; }
.rd-toolbar label:first-child { flex:1;min-width:180px; }
.rd-toolbar input:focus-visible,.rd-toolbar select:focus-visible,.rd-form input:focus-visible,.rd-form select:focus-visible,.rd-link:focus-visible { outline:2px solid var(--primary);outline-offset:3px; }
.rd-caption { color:var(--muted);font-size:13px;line-height:1.7; }
.rd-error { color:var(--danger);background:#fff1f1;padding:12px;border-radius:8px;line-height:1.6; }
.rd-table { max-width:100%;overflow-x:auto; }
.rd-table table { width:100%;min-width:850px; }
.rd-table td { vertical-align:middle;padding:16px 12px; }
.rd-id { display:block;font-size:11px;color:var(--muted);max-width:180px;overflow-wrap:anywhere;margin-top:5px; }
.rd-tag { display:inline-block;border-radius:6px;padding:4px 8px;font-size:12px;background:var(--bg);color:var(--text);line-height:1.5; }
.rd-green { background:#e8f5ee;color:#146b3b; }.rd-amber { background:#fff3dc;color:#885100; }.rd-red { background:#ffebeb;color:#a52b2b; }
.rd-link { border:0;background:transparent;color:var(--primary-dark);padding:7px 4px;font:inherit;white-space:nowrap; }
.rd-link:hover { text-decoration:underline; }.rd-link:disabled { opacity:.55;cursor:not-allowed; }
.rd-empty { text-align:center;padding:40px 20px;color:var(--muted); }
.rd-empty strong { font-size:17px;color:var(--text); }
.rd-drawer { position:fixed;inset:0 0 0 auto;margin:0;width:min(480px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-left:1px solid var(--line);padding:24px;background:var(--panel);color:var(--text);box-shadow:-12px 0 40px #0002;overflow:auto;z-index:100; }
.rd-drawer::backdrop { background:#15223866; }
.rd-drawer-head { display:flex;align-items:center;justify-content:space-between;gap:12px; }.rd-drawer h2 { margin:0;font-size:22px; }
.rd-form { display:grid;gap:16px;max-width:560px;margin:20px 0; }.rd-form label input,.rd-form label select { width:100%; }
.rd-form-footer { display:flex;gap:12px;justify-content:flex-end;border-top:1px solid var(--line);padding-top:20px; }
.rd-details { display:grid;grid-template-columns:130px minmax(0,1fr);gap:16px; }.rd-details dt { color:var(--muted); }.rd-details dd { margin:0;overflow-wrap:anywhere; }
.rd-fee-setting { border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:24px; }.rd-fee-setting h3 { margin-top:0; }
.rd-form .rd-check { display:flex;flex-direction:row;align-items:center; }.rd-check input { width:18px!important;min-width:18px;min-height:18px; }
@media(max-width:900px){.rd-stats{grid-template-columns:repeat(2,minmax(0,1fr));}.rd-panel{padding:16px;}}
@media(max-width:480px){.rd-toolbar>label{flex:1 1 100%;}.rd-toolbar input,.rd-toolbar select{width:100%;}.rd-stat{padding:14px;}.rd-stat strong{font-size:24px;}}
@media(max-width:700px){.shell:has(.rd-panel){grid-template-rows:auto minmax(0,1fr);}.shell:has(.rd-panel) .topbar{flex-wrap:wrap;gap:10px;padding:12px;}.shell:has(.rd-panel) .topbar .account{flex-wrap:wrap;gap:8px;max-width:100%;}.shell:has(.rd-panel) .brand .muted{display:none;}.shell:has(.rd-panel) .page-head{flex-wrap:wrap;}.shell:has(.rd-panel) .content{min-width:0;padding:14px;}.rd-toolbar label:first-child{min-width:0;}.rd-toolbar input,.rd-toolbar select{min-width:0;}}
@media(prefers-reduced-motion:reduce){.rd-panel *,.rd-drawer *{animation:none!important;transition:none!important;}}
