/* CFM Service Request: the same look as cfmechanics.com (navy header, orange highlight, red call-to-action, grey page, white cards).
   The two typefaces are served from this site; nothing is fetched from anywhere else. */
@font-face { font-family: "Roboto"; src: url("/static/fonts/roboto-latin.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/static/fonts/open-sans-latin.woff2") format("woff2"); font-style: normal; font-weight: 300 800; font-display: swap; }

:root {
  --navy: #0f1332; --orange: #ff9f68; --orange-dark: #e88850; --red: #e74c3c; --red-dark: #c0392b;
  --heading: #2c3e50; --text: #333333; --muted: #666666; --page: #f8f9fa; --line: #dee2e6; --card: #ffffff;
  --green: #1e7e4a; --green-bg: #e6f4ec; --amber: #9a5b00; --amber-bg: #fff3dc;
}

* { box-sizing: border-box; }
html { font-family: "Open Sans", "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--page); font-size: 16px; line-height: 1.5; }
body { margin: 0; }
h1, h2, h3 { font-family: "Roboto", "Segoe UI", Arial, sans-serif; font-weight: 700; color: var(--heading); margin: 0 0 .5rem; line-height: 1.25; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
a { color: var(--red-dark); }

.top { background: var(--navy); color: #fff; }
.top-inner { max-width: 960px; margin: 0 auto; padding: .75rem 16px; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.top img { height: 44px; width: auto; display: block; }
.top .site-name { font-family: "Roboto", sans-serif; font-weight: 700; font-size: 1.05rem; color: #fff; text-decoration: none; }
.top .who { margin-left: auto; color: #bdc3c7; font-size: .9rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.top form { margin: 0; }

main { max-width: 960px; margin: 0 auto; padding: 1.25rem 16px 3rem; }
.card { background: var(--card); border-radius: 10px; box-shadow: 0 5px 20px rgba(0, 0, 0, .08); padding: 1.25rem; margin-bottom: 1.25rem; }
.card.narrow { max-width: 440px; margin: 2rem auto; }
.card.attention { border-top: 4px solid var(--orange); }
.muted { color: var(--muted); font-size: .9rem; }
.gap-top { margin-top: 1rem; }
.card.medium { max-width: 640px; }
.eyebrow { color: var(--red-dark); font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .25rem; }

.button { display: inline-block; background: var(--red); color: #fff; border: 0; border-radius: 5px; padding: .65rem 1.2rem; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap; }
.button:hover { background: var(--red-dark); box-shadow: 0 5px 15px rgba(231, 76, 60, .3); }
.button.plain { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); padding: .35rem .8rem; font-weight: 600; font-size: .9rem; }
.button.plain:hover { background: #fff; color: var(--navy); box-shadow: none; }

label { display: block; font-weight: 600; margin-bottom: .9rem; }
input[type=text], input[type=email], select, textarea { display: block; width: 100%; margin-top: .3rem; padding: .6rem .7rem; font: inherit; color: var(--text);
  border: 1px solid var(--line); border-radius: 5px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 159, 104, .3); }
input.code { font-size: 1.6rem; letter-spacing: .4em; text-align: center; }

.banner { border-radius: 5px; padding: .7rem .9rem; margin-bottom: 1rem; font-weight: 600; }
.banner.success { background: var(--green-bg); color: var(--green); }
.banner.error { background: #fdecea; color: var(--red-dark); }

ul.needs { margin: 0; padding-left: 1.2rem; } ul.needs li { margin-bottom: .35rem; }

details.machine { background: var(--card); border-radius: 10px; box-shadow: 0 5px 20px rgba(0, 0, 0, .08); margin-bottom: .9rem; }
details.machine summary { cursor: pointer; padding: 1rem 1.25rem; font-family: "Roboto", sans-serif; font-weight: 700; color: var(--heading); }
details.machine summary .muted { font-family: "Open Sans", sans-serif; font-weight: 400; margin-left: .5rem; }
details.machine .inside { padding: 0 1.25rem 1.25rem; }
.visit { border-top: 1px solid var(--line); padding: .8rem 0; }
.visit:first-child { border-top: 0; padding-top: 0; }
.visit .line { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.pill { display: inline-block; border-radius: 999px; padding: .1rem .6rem; font-size: .8rem; font-weight: 700; background: var(--amber-bg); color: var(--amber); }
.pill.done { background: var(--green-bg); color: var(--green); }
.pill.off { background: #ececec; color: #555; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
td { padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.scroll { overflow-x: auto; }
.pre { white-space: pre-wrap; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
footer { max-width: 960px; margin: 0 auto; padding: 0 16px 2rem; color: var(--muted); font-size: .85rem; }
