/* RedBill reseller portal: mobile first, plain CSS, Red Data red accent. */
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; font-size: 16px; color: #0f172a; background: #f1f5f9; }
.top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #fff; border-bottom: 3px solid #dc2626; }
.brand { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.who { display: flex; align-items: center; gap: 8px; text-align: right; }
.who form { margin: 0; }
.help { color: #dc2626; font-weight: 600; text-decoration: none; }
main { max-width: 720px; margin: 0 auto; padding: 16px; }
h1, h2 { font-size: 20px; margin: 0 0 12px; }
.muted { color: #64748b; font-size: 14px; }
.error { color: #b91c1c; font-weight: 600; }
.card { background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.figure { font-size: 28px; font-weight: 700; margin: 0; }
label { display: block; margin-top: 12px; font-weight: 600; }
input, select, textarea { font-size: 16px; width: 100%; padding: 10px; margin: 6px 0 12px; border: 1px solid #cbd5e1; border-radius: 6px; }
button, .button { display: inline-block; font-size: 16px; padding: 12px 16px; border: 0; border-radius: 6px; background: #dc2626;
                  color: #fff; text-decoration: none; cursor: pointer; }
.card form > button[type=submit] { width: 100%; }
button.link { background: none; color: #dc2626; padding: 4px; width: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #e2e8f0; }
td.num, th.num { text-align: right; }
@media (min-width: 720px) { main { padding: 24px; } }
.lang form { margin: 0; }
/* D-28: the menu is a bottom bar on a phone and a left side menu from 900px; same items, CSS only */
.menu { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: #fff; border-top: 1px solid #e2e8f0; z-index: 10; }
.menu a { flex: 1; text-align: center; padding: 14px 4px; color: #334155; text-decoration: none; font-weight: 600; }
.menu a[aria-current] { color: #dc2626; }
body.framed main { padding-bottom: 72px; }
@media (min-width: 900px) {
  .menu { top: 56px; bottom: 0; right: auto; width: 200px; flex-direction: column; border-top: 0; border-right: 1px solid #e2e8f0; }
  .menu a { flex: none; text-align: left; padding: 12px 20px; }
  body.framed main { margin-left: 200px; padding-bottom: 24px; }
}
.notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.notice.locked, .notice.offline { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; font-weight: 600; }
.notice.viewing { background: #fef3c7; color: #92400e; border: 0; border-radius: 0; margin: 0; display: flex; align-items: center; gap: 8px; }
.notice.viewing form { margin: 0 0 0 auto; }
.messages { list-style: none; padding: 0; margin: 0 0 16px; }
.messages li { background: #fff; border-left: 4px solid #16a34a; padding: 10px 12px; margin-bottom: 8px; border-radius: 4px; }
.messages li.error { border-left-color: #dc2626; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e2e8f0; }
.row:last-child { border-bottom: 0; }
[hidden] { display: none !important; }  /* the #checking and #offline-note banners (portal.js) */
/* D-26, D-33: count tiles opening the filtered customer list */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.tile { display: block; padding: 12px; border: 1px solid #e2e8f0; border-radius: 6px; color: #334155; text-decoration: none; }
.tile strong { display: block; font-size: 22px; color: #0f172a; }
.tile[aria-current] { border-color: #dc2626; }
.inline { display: inline; margin: 0; }
.card { overflow-x: auto; }  /* the customer list's wide table on a phone */
.more { display: block; padding: 12px 0; border-bottom: 1px solid #e2e8f0; color: #0f172a; text-decoration: none; }
