/* Campfire week 1 time form */
:root {
  --cream: #F4EFE6;
  --charcoal: #1C1410;
  --ember: #C45C26;
  --gold: #D4A04A;
  --ink: #1C1410;
  --line: rgba(28, 20, 16, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.45;
}

.wrap {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 20px 16px 48px;
}
.wrap.wide { width: min(880px, 100%); }

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.mark { width: 44px; height: 44px; border-radius: 10px; }
.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  color: var(--ember);
}
h1 { margin: 2px 0 0; font-size: 28px; letter-spacing: -0.03em; }
h2 { margin: 0 0 10px; font-size: 18px; }
.sub, .hint, .who { color: rgba(28,20,16,0.72); }
.who { font-weight: 600; color: var(--charcoal); }

.card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
}

label, .lab {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0 6px;
}

input, select, button {
  font-family: inherit;
  font-size: 16px; /* phone: no iOS zoom */
}

input, select {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--charcoal);
}

.primary, .ghost, .book-btn, .remove {
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
}

.primary {
  display: inline-block;
  width: 100%;
  margin-top: 12px;
  background: var(--ember);
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.ghost {
  width: 100%;
  background: transparent;
  color: var(--ember);
  border: 1px solid var(--ember);
}

.book-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.book-btn {
  background: #fff;
  color: var(--charcoal);
  border: 2px solid var(--line);
}
.book-btn.on {
  background: var(--ember);
  color: #fff;
  border-color: var(--ember);
}

.remove {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  color: var(--charcoal);
  border: 1px dashed var(--line);
}

.totalbar {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 14px 4px 4px;
  font-size: 16px;
}
.totalbar strong { font-size: 28px; color: var(--ember); }

.alert {
  background: #fff4e8;
  border: 1px solid var(--gold);
  color: var(--charcoal);
  padding: 12px 14px;
  border-radius: 12px;
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: rgba(28,20,16,0.6); font-weight: 600; }

ul { padding-left: 18px; }
.inline { display: inline; }
.rowish { display: grid; gap: 10px; }
.is-locked { opacity: 0.92; }

/* unused hook: hours by book */
.later-hours-by-book { display: none !important; }
/* unused hook: hours by client */
.later-hours-by-client { display: none !important; }
/* unused hook: capacity vs billed-retainer */
.later-capacity-vs-billed-retainer { display: none !important; }

body.admin, .wrap.wide { max-width: 960px; }
.tabs { display:flex; gap:8px; margin: 8px 0 16px; }
.tabs a { flex:1; text-align:center; padding:12px; border-radius:10px; text-decoration:none; color:#2A221C; background:#efe6d6; font-weight:600; min-height:48px; }
.tabs a.on { background:#1C1410; color:#F4EFE6; }
.list-edit { margin-bottom:12px; padding-bottom:10px; border-bottom:1px solid #eadfcd; }
.inline { display:inline; }
.rowish { display:flex; flex-wrap:wrap; gap:10px; align-items:end; }
.rowish .primary, .rowish .ghost { width:auto; }

.over50-warn { margin-top: 8px; }
.over50-confirm[hidden], .over50-warn[hidden] { display: none !important; }
label[hidden] { display: none !important; }
.over50-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 4px;
  font-weight: 600;
}
.over50-confirm input {
  width: auto;
  margin-top: 3px;
  flex: 0 0 auto;
}
.flag-over50 {
  color: var(--ember);
  font-weight: 700;
  margin-left: 6px;
}

/* Tyler pay page — desktop-first */
body.pay .wrap.wide { width: min(1040px, 100%); max-width: 1040px; }
body.pay .rowish a.primary,
body.pay .rowish a.ghost { text-decoration: none; }
body.pay .rowish a.primary.on,
body.pay .rowish a.ghost.on {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}
.pay-table { font-size: 15px; }
.pay-table th, .pay-table td { padding: 10px 8px; vertical-align: middle; }
.pay-table tfoot th, .pay-table tfoot td { border-bottom: 0; padding-top: 14px; }
.pay-rate {
  width: 110px;
  max-width: 110px;
  padding: 8px 10px;
  font-size: 14px;
}
.badge-flat {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #efe6d6;
  color: var(--charcoal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pay-totals { font-weight: 700; }
.pay-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }

.badge-request {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #efe6d6;
  color: var(--ember);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
