/* Admin PWA — mobile-first. Shares tokens from core.css. */

/* Stat tiles (dashboard) */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-3); }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-4); box-shadow: var(--shadow-sm); }
.stat .n { font-size: var(--fs-2xl); font-weight: 800; color: var(--brand-dark); line-height: 1.1; }
.stat .l { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 2px; }
.stat.warn { border-color: var(--warn); background: #fffbeb; }
.stat.warn .n { color: var(--warn); }

/* Quick action buttons */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.quick { display: flex; flex-direction: column; align-items: center; gap: var(--s-1); padding: var(--s-4); background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); text-decoration: none; color: var(--text); text-align: center; }
.quick .qic { font-size: 1.6rem; }
.quick .ql { font-size: var(--fs-sm); font-weight: 600; }

/* Filter chips / segmented control */
.chips { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: var(--s-2); margin-bottom: var(--s-3); }
.chip { white-space: nowrap; padding: 6px var(--s-3); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; border: 1px solid var(--border); background: var(--card); color: var(--text-muted); cursor: pointer; }
.chip.active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* Rate editor rows */
.rate-cat { font-weight: 700; color: var(--brand-dark); margin: var(--s-4) 0 var(--s-2); }
.rate-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--border); }
.rate-row .rname { flex: 1; min-width: 0; }
.rate-row .rname .en { font-weight: 600; }
.rate-row .rname .ur { color: var(--text-muted); font-size: var(--fs-sm); }
.rate-row .rprev { color: var(--text-muted); font-size: var(--fs-sm); white-space: nowrap; }
.rate-row input { width: 96px; min-height: var(--tap); text-align: end; padding: var(--s-2); border: 1px solid var(--gray-300); border-radius: var(--r-md); font-size: var(--fs-md); }
.rate-row input.changed { border-color: var(--brand); background: var(--brand-tint); }

/* Sticky save bar */
.save-bar { position: sticky; bottom: 72px; z-index: 15; padding: var(--s-3) 0; background: linear-gradient(transparent, var(--bg) 30%); }

/* Admin list row with actions */
.arow { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--border); }
.arow:last-child { border-bottom: 0; }
.arow .grow { flex: 1; min-width: 0; }
.arow .actions { display: flex; gap: var(--s-2); }

/* Toolbar */
.toolbar { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; margin-bottom: var(--s-3); }
.toolbar .grow { flex: 1; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: var(--s-4); }
.login-card { width: 100%; max-width: 400px; }
.login-card .brand { text-align: center; margin-bottom: var(--s-5); }
.login-card .brand .logo { font-size: 2.5rem; }

/* Role pill */
.role { text-transform: capitalize; }

/* Order status select */
.status-actions { display: flex; flex-direction: column; gap: var(--s-2); }
