/* FirstLine Customer Portal - plain, accessible. Colours from firstline.au (navy #0A0E27, grey #E9ECEF, green #10B981);
   text-on-white colours chosen for >= 4.5:1 contrast. System fonts only (no external fonts). */
:root {
  --navy: #0A0E27;
  --grey: #E9ECEF;
  --green: #10B981;
  --green-text: #046C4E;
  --red-text: #B42318;
  --amber-text: #8A4B00;
  --text: #1A1D2E;
  --muted: #4B5163;
  --bg: #FFFFFF;
  --line: #CED3DA;
  --focus: #1D4ED8;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 30rem; }
.site-header { background: var(--navy); color: #fff; padding: 0.9rem 0; border-bottom: 4px solid var(--green); }
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.header-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.25rem; }
.brand-sub { opacity: 0.9; margin-left: 0.4rem; }
.business { font-weight: 600; }
h1 { font-size: 1.6rem; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.25rem; }
label { display: block; font-weight: 600; margin: 0.9rem 0 0.25rem; }
input, select {
  font: inherit; width: 100%; padding: 0.55rem 0.6rem; border: 1px solid #8A90A0; border-radius: 6px; background: #fff; color: var(--text);
}
.btn {
  font: inherit; font-weight: 600; margin-top: 1rem; padding: 0.6rem 1.2rem; border: 2px solid var(--green-text);
  background: var(--green-text); color: #fff; border-radius: 6px; cursor: pointer;
}
.btn:hover { background: #035A41; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-quiet { background: #fff; color: var(--green-text); }
.site-header .btn-quiet { margin-top: 0; background: transparent; color: #fff; border-color: #fff; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--green-text); text-decoration: underline; cursor: pointer; margin-top: 0.75rem; }
a { color: var(--green-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.notice { padding: 0.75rem 1rem; border-radius: 6px; margin: 1rem 0; border-left: 5px solid; }
.notice-error { background: #FDECEA; border-color: var(--red-text); color: #7A1A12; }
.notice-info { background: #E7F6F0; border-color: var(--green-text); color: #03432F; }
.small { font-size: 0.9rem; color: var(--muted); }
.muted { color: var(--muted); font-style: italic; }
.status { color: var(--muted); }
.tabs { display: flex; gap: 0.25rem; border-bottom: 2px solid var(--grey); margin-top: 1.25rem; flex-wrap: wrap; }
.tabs button {
  font: inherit; font-weight: 600; background: var(--grey); color: var(--text); border: 0; border-radius: 6px 6px 0 0;
  padding: 0.6rem 1rem; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.25rem 1rem; align-items: end; }
.filters label { margin-top: 0.4rem; }
.filter-btn .btn { margin-top: 0; width: 100%; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin-top: 0.5rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); }
th { background: var(--grey); font-weight: 700; white-space: nowrap; }
td:first-child { white-space: nowrap; }
.badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }
.badge-urgent { background: #FDECEA; color: var(--red-text); border: 1px solid var(--red-text); }
.note-ok { color: var(--green-text); font-size: 0.9rem; }
.note-warn { color: var(--amber-text); font-size: 0.9rem; font-weight: 600; }
.usage-line { font-size: 1.15rem; }
.usage-meter { width: 100%; max-width: 32rem; height: 1.5rem; }
code { background: var(--grey); padding: 0.1rem 0.3rem; border-radius: 4px; word-break: break-all; }
#qr { display: block; margin: 1rem 0; border: 1px solid var(--line); background: #fff; }
.footer-note { margin-top: 2.5rem; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--navy); padding: 0.5rem; z-index: 10; }
.skip:focus { left: 0.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 40rem) {
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 0.75rem; padding: 0.25rem 0.5rem; }
  td { border: 0; padding: 0.3rem 0; }
}
