/* HOMES Timesheets: the app's pages. Colors and the top bar are in theme.css.
   Big tap targets for the crew. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.45;
  background: var(--page);
  color: var(--text);
}

main { max-width: 900px; margin: 0 auto; padding: 20px 16px 48px; }
main.wide { max-width: 1180px; padding: 16px 12px 60px; }
h1 { font-size: 28px; margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0 0 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.card h2 { font-size: 20px; margin: 0 0 8px; }

.big-buttons { display: grid; gap: 12px; }
/* The menu: each big button can say what's waiting there. One with shortcuts sits in an
   outlined box with them underneath, each with an icon, so it's clear which go together. */
.menu-item .big-button .waiting { display: block; font-size: 15px; font-weight: 500; opacity: .85; margin-top: 4px; }
.menu-item.has-shortcuts { border: 2px solid var(--navy); border-radius: 14px; overflow: hidden; background: var(--card); }
.menu-item.has-shortcuts .big-button { border-radius: 0; }
.shortcuts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; padding: 8px; }
.shortcuts a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px;
  color: var(--text); font-weight: 600; font-size: 16px; text-decoration: none; }
.shortcuts a:hover { background: var(--page); }
.shortcuts .icon { width: 22px; height: 22px; flex: none; color: var(--link); }
.menu-foot { text-align: center; margin-top: 18px; }
.menu-foot a { color: var(--link); font-weight: 600; }
@media (max-width: 560px) {  /* Phones: two even columns instead of a ragged row. */
  .shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortcuts a { padding: 0 10px; }
}
.big-button {
  display: block;
  background: var(--navy);
  color: var(--navy-text);
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 0;
  width: 100%;
  cursor: pointer;
}
.coming {
  background: var(--todo);
  border-radius: 12px;
  padding: 16px;
}

.messages .msg { padding: 12px 14px; border-radius: 10px; margin: 0 0 12px; font-weight: 600;
  background: #DCEEE1; color: #1e4d2b; border-left: 6px solid var(--ok); }
.messages .msg.error { background: #F7DCDA; color: #7a1d17; border-left-color: var(--bad); }
.people { list-style: none; padding: 0; margin: 0; }
.people li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.people li:last-child { border-bottom: 0; }
.muted { color: var(--muted); }

/* The login, setup-link, all-set, and Change my PIN pages: one column, in the middle
   of a computer screen as well as a phone's. */
.login { max-width: 420px; margin: 0 auto; }
.login > h1, .login > .big, .login > p.small, .login > p.muted, .login form > div > .big { text-align: center; }
.login label { display: block; font-weight: 600; margin: 12px 0 4px; }
.login input {
  width: 100%; font-size: 20px; padding: 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--todo); color: var(--text);
}
.login .big-button { margin-top: 20px; }
.error { color: var(--bad); font-weight: 600; }
.login-logo { height: 56px; width: auto; display: block; margin: 4px auto 8px; }
@media (prefers-color-scheme: dark) { .login-logo { filter: brightness(0) invert(1); } }
.big { font-size: 1.2rem; }
.small { font-size: .95rem; }
.linkish { background: none; border: 0; color: var(--link); text-decoration: underline; font: inherit; cursor: pointer; padding: 8px 0; }
.install ol { padding-left: 22px; }
.install li { margin-bottom: 6px; }

/* PIN pad: four dots and big number keys. */
.pinpad { margin: 8px 0 12px; }
.pinpad .dots { display: flex; gap: 14px; justify-content: center; margin: 6px 0 16px; }
.pinpad .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--navy); }
.pinpad .dot.on { background: var(--navy); }
@media (prefers-color-scheme: dark) { .pinpad .dot { border-color: var(--text); } .pinpad .dot.on { background: var(--text); } }
.pinpad .keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pinpad .keys button {
  min-height: 64px; font: inherit; font-size: 1.7rem; font-weight: 700;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); cursor: pointer;
}
.pinpad .keys button:active { background: var(--todo); }

/* "Get texts about your time sheet?" (after the PIN, on the next visit) and the switch in My details. */
.texts-ask { border: 2px solid var(--navy); margin-bottom: 16px; text-align: left; }
.texts-ask h2 { margin-top: 0; }
.texts-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.texts-buttons .texts-btn { flex: 1 1 130px; min-height: 54px; padding: 0 10px; font-size: 19px; white-space: nowrap; }
.texts-btn { min-height: 46px; padding: 0 18px; border-radius: 10px; border: 2px solid var(--navy);
  background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.texts-btn.yes { background: var(--ok); border-color: var(--ok); color: #fff; }
.texts-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.texts-row > span { flex: 1 1 260px; }
.texts-row small { display: block; margin-top: 4px; }
.texts-row .st { margin-left: 6px; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.texts-row .st.ok { background: var(--ok); color: #fff; }
.texts-row .st.off { background: var(--line); color: var(--text); }
/* The public "Texts from HOMES" page (/texts/), the Twilio opt-in proof. */
.texts-page { max-width: 640px; margin: 0 auto; }
.texts-page h2 { margin-top: 28px; }
.texts-example { border: 2px dashed var(--line); border-radius: 14px; padding: 12px; margin: 12px 0; }
.texts-example .texts-ask, .texts-example .messages .msg { margin-bottom: 0; }
.texts-example .texts-btn { cursor: default; }
/* The tick box on "Get texts about your time sheet?" (Nov 9 2026: Twilio's checklist asks for one). */
.texts-ask .texts-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin: 10px 0;
  border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.texts-ask .texts-check input { width: 28px; height: 28px; flex: 0 0 28px; margin: 0; accent-color: var(--ok); }
.texts-ask .texts-check span { line-height: 1.4; font-weight: 400; }
.texts-ask .texts-check b { font-size: 18px; }
.texts-save { width: 100%; min-height: 54px; font-size: 19px; }
.texts-bubble { background: #e9e9eb; color: #111; border-radius: 18px; padding: 10px 14px; margin: 0; max-width: 85%; }
