/* The Kimputing palette, shared with docs.kimputing.com and the training site. */
:root {
  --navy: #0b2543;
  --navy-hover: #163b6a;
  --blue: #1e88e5;
  --text: #1a2330;
  --muted: #5c6b7d;
  --label: #9fb3cc;
  --border: #dde3ec;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --idle: #eef2f7;
  --warn: #8a1c14;
  --warn-bg: #fdecea;
  --warn-border: #f5c2c0;
  --sent: #14425f;
  --sent-bg: #eef6ff;
  --sent-border: #cfe3f8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--blue); }
h1, h2 { color: var(--navy); font-weight: 600; }

/* Brand: the logo is white, for a navy background; the product label sits under or beside it. */
.logo { display: block; width: auto; }
.product { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--label); }

/* Sign-in: a centred card, as on the docs sign-in page. */
.signin { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
        box-shadow: 0 6px 24px rgba(11, 37, 67, .08); overflow: hidden; }
.card-header { background: var(--navy); padding: 22px 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.card-header .logo { height: 64px; max-width: 100%; }
.card-body { padding: 28px 32px 32px; }
.card-body h1 { font-size: 20px; margin: 0 0 4px; }
.lede { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.sent { margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--sent-border); border-radius: 6px;
        background: var(--sent-bg); color: var(--sent); font-size: 14px; }

/* Signed in: a navy bar across the top, then the work area. */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
          background: var(--navy); color: #fff; padding: 12px 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.topbar .logo { height: 40px; }
.account { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.topbar button.link { margin: 0; color: #fff; }
.content { max-width: 1100px; width: 100%; margin: 0 auto; padding: 24px 16px 32px; }
.panel { margin-top: 24px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.panel h2 { font-size: 17px; margin: 0 0 14px; }
#licence { margin: 0; color: var(--muted); }
#picker { max-width: 420px; }

/* Forms */
label { display: block; margin: 10px 0 6px; font-size: 13px; font-weight: 600; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: 13px; font-weight: 600; padding: 0; }
fieldset label { font-weight: 400; font-size: 14px; margin: 6px 0; }
#issue-form, #admin-form { max-width: 520px; }
#issue-form p, #admin-form p { margin: 0; }
input[type=email], input:not([type]), select {
  width: 100%; padding: 9px 12px; font: inherit; color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: 6px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 136, 229, .18); }
button { font: inherit; cursor: pointer; }
button.primary { margin: 16px 8px 0 0; padding: 10px 18px; font-weight: 600; color: #fff; background: var(--navy);
                 border: 0; border-radius: 6px; transition: background .15s; }
.card-body button.primary { width: 100%; margin-right: 0; }
button.primary:hover { background: var(--navy-hover); }
button[disabled], button.primary[disabled] { background: #9ca3af; border-color: #9ca3af; cursor: not-allowed; }
button.link { margin: 12px 0 0; padding: 0; color: var(--navy); background: none; border: 0; text-decoration: underline; }

/* Seat table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
     padding: 8px 10px; border-bottom: 2px solid var(--border); white-space: nowrap; }
td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
td button, #admin-list button { margin: 0 4px 0 0; padding: 3px 10px; font-size: 13px; color: var(--navy); background: #fff;
            border: 1px solid var(--navy); border-radius: 5px; }
td button:hover:not([disabled]), #admin-list button:hover:not([disabled]) { background: var(--idle); }
.flag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--warn-bg); color: var(--warn); font-size: 12px; }
.status-revoked, .status-expired, .status-superseded { color: var(--muted); }

/* Requests and notices */
#request-list, #admin-list { margin: 0; padding-left: 20px; }
#request-list li, #admin-list li { margin: 6px 0; }
#admin-list button { margin-left: 8px; }
li button.link { margin: 0 0 0 8px; }
.request-refused, .request-failed, .request-done_email_failed { color: var(--warn); }
.request-help { margin-top: 2px; font-size: 13px; color: var(--muted); }
#notice { margin: 0; }
#notice:not(:empty) { max-width: 640px; margin: 16px auto 0; padding: 10px 14px; border: 1px solid var(--border);
                      border-radius: 6px; background: var(--surface); font-size: 14px; }

.foot { padding: 16px 24px; text-align: center; font-size: 12px; color: var(--muted); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--navy); text-decoration: underline; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
code { background: var(--idle); padding: 1px 4px; border-radius: 3px; font-size: 12px; }
