/* ClearOps client portal: navy, teal and white, phone first */
:root {
  --navy: #0c263b;
  --teal: #097c82;
  --teal-dark: #076469;
  --mint: #d5f5eb;
  --line: #dae4e9;
  --muted: #4f6474;
  --paper: #f1f6f8;
  --red: #a61b1b;
  --amber: #8a5a00;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; } /* long and short pages keep the same left edge */
body { margin: 0; font-family: "Segoe UI", Inter, Arial, sans-serif; color: var(--navy); background: var(--paper); font-size: 16px; line-height: 1.55; }
a { color: var(--teal); }
button, input, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #168b91; outline-offset: 3px; }
[hidden] { display: none !important; }

.top { background: #fff; border-bottom: 1px solid var(--line); }
.bar { max-width: 960px; margin: auto; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 600; }
.brand img { height: 38px; width: auto; }
.brand span { border-left: 1px solid var(--line); padding-left: 10px; font-size: 15px; }
.who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); text-align: right; }
.tabs { max-width: 960px; margin: auto; padding: 0 8px; display: flex; gap: 4px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 12px; color: var(--muted); font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabs button[aria-current="page"] { color: var(--navy); border-bottom-color: var(--teal); }

main { max-width: 960px; margin: auto; padding: 20px 16px 40px; outline: none; }
h1 { font-size: 24px; margin: 4px 0 6px; font-weight: 600; }
h2 { font-size: 18px; margin: 22px 0 8px; font-weight: 600; }
.lead { color: var(--muted); margin: 0 0 18px; }
.loading { color: var(--muted); }

.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.narrow { max-width: 420px; margin: 24px auto; }
main > h1 ~ .narrow { margin-left: 0; } /* inside a page (Account), line up with the heading */
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input[type=text], input[type=password], textarea { width: 100%; padding: 12px; border: 1px solid #b6c8d2; border-radius: 6px; background: #fff; color: var(--navy); }
textarea { min-height: 80px; resize: vertical; }
.btn { display: inline-block; background: var(--teal); color: #fff; border: 0; border-radius: 6px; padding: 12px 18px; font-weight: 600; cursor: pointer; min-height: 46px; text-decoration: none; }
.btn:hover { background: var(--teal-dark); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.alt { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.link { background: none; border: 0; color: var(--teal); font-weight: 600; cursor: pointer; padding: 6px 0; text-decoration: underline; }
.message { margin-top: 12px; padding: 10px 12px; border-radius: 6px; font-size: 14px; }
.message.error { background: #fde4e4; color: var(--red); }
.message.ok { background: #e3f4f1; color: #0b6b62; }
.help { font-size: 13px; color: var(--muted); }

.jobs { display: grid; gap: 10px; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-align: left; width: 100%; cursor: pointer; color: var(--navy); }
.job:hover { border-color: var(--teal); }
.job strong { font-size: 16px; }
.job small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.stage { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.stage.received, .stage.checking { background: #e7eef3; color: #2c4a5e; }
.stage.waiting { background: #fff3d6; color: var(--amber); }
.stage.approved { background: #e3f4f1; color: #0b6b62; }
.stage.delivered { background: var(--teal); color: #fff; }
.empty { color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 10px; padding: 18px; }

.back { margin-bottom: 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.question { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.question.done { border-left-color: var(--teal); }
.question .about { font-size: 13px; color: var(--muted); }
.question p { margin: 6px 0; }
.file { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.file span { min-width: 0; overflow-wrap: anywhere; }
.file .btn { flex: none; width: auto; }

.drop { border: 2px dashed #9cb7c4; border-radius: 10px; background: #fff; padding: 22px; text-align: center; }
.drop.over { border-color: var(--teal); background: #eaf6f4; }
.chosen { margin: 10px 0 0; padding-left: 18px; font-size: 14px; }

.foot { max-width: 960px; margin: auto; padding: 16px; color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 520px) {
  .brand span { display: none; }
  .who span { display: none; }
  h1 { font-size: 21px; }
  .btn { width: 100%; }
}
