/* Northwoods Printers brand — kept in step with northwoodsprinters.com (css/styles.css). */

:root {
  --primary: #0f6a37;
  --primary-dark: #0a4f29;
  --primary-light: #e8f5ed;
  --text: #444444;
  --text-light: #666666;
  --white: #ffffff;
  --bg: #f9f9f9;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding: 24px 20px 48px; }
h1 { font-size: 1.9rem; margin: 12px 0; color: var(--primary); font-weight: 700; }
h2 { font-size: 1.15rem; margin: 18px 0 8px; font-weight: 700; }
h3 { font-size: 0.95rem; margin: 16px 0 4px; font-weight: 700; }

/* ── Header (matches the main site's nav bar) ───────── */
header.nav { background: #e0e0e0; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; gap: 14px; padding: 10px 20px; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 56px; width: auto; display: block; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-name { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; color: #111111; letter-spacing: 1px; text-transform: uppercase; }
.nav-logo-sub { font-family: Georgia, serif; font-size: 0.85rem; font-weight: 500; color: #2e7d32; letter-spacing: 2px; text-transform: uppercase; }
.nav-tag { color: var(--text-light); font-size: 0.9rem; border-left: 1px solid #c4c4c4; padding-left: 14px; }
.nav-site { margin-left: auto; font-size: 0.9rem; font-weight: 500; text-decoration: none; }
@media (max-width: 620px) {
  .nav-tag, .nav-site { display: none; }
}

/* ── Cards, tables, forms ───────────────────────────── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; margin: 16px 0; box-shadow: var(--shadow); }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 8px 0; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eceff3; vertical-align: top; font-size: 14px; }
th { color: var(--text-light); font-weight: 600; }
td.num, th.num { text-align: right; white-space: nowrap; }
label { cursor: pointer; display: block; font-size: 14px; }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; padding: 8px 10px; border: 1px solid #c9cfd8; border-radius: 4px; font: inherit; margin: 2px 0 10px; background: var(--white); color: var(--text); transition: border-color 0.2s; }
input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
input[type=file] { margin: 4px 0 10px; font-size: 13px; }
textarea { min-height: 70px; }
fieldset { border: 1px solid var(--border); border-radius: 8px; margin: 10px 0; }
legend { font-size: 13px; color: var(--text-light); padding: 0 6px; }

/* ── Buttons (main-site style) ──────────────────────── */
button, .btn { display: inline-block; background: var(--primary); color: var(--white); border: 0; border-radius: 4px; padding: 10px 20px; font: inherit; font-size: 0.95rem; font-weight: 500; cursor: pointer; text-decoration: none; transition: background 0.2s; }
button:hover, .btn:hover { background: var(--primary-dark); color: var(--white); }
button.secondary, .btn.secondary { background: var(--primary-light); color: var(--primary-dark); }
button.secondary:hover, .btn.secondary:hover { background: #d8ecdf; color: var(--primary-dark); }
button.danger { background: #a4243b; }
button.danger:hover { background: #831d2f; }
button.small { padding: 4px 10px; font-size: 12px; }

/* ── Text helpers, notices, flashes ─────────────────── */
.muted { color: var(--text-light); font-size: 13px; }
.lead { font-size: 17px; color: var(--text-light); }
.notice { background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.flash { border-radius: 8px; padding: 10px 14px; margin: 10px 0; font-size: 14px; }
.flash.error { background: #fdecec; border: 1px solid #f2b8b8; color: #8a1f2d; }
.flash.success { background: var(--primary-light); border: 1px solid #b5e0c6; color: var(--primary-dark); }
.warn { color: #a4243b; font-weight: 600; }
.okchip { background: var(--primary-light); color: var(--primary-dark); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
pre.address { background: var(--primary-light); border: 1px solid #b5e0c6; border-radius: 8px; padding: 12px 16px; font-size: 15px; }
.pill { display: inline-block; background: #e9ecf1; border-radius: 999px; padding: 6px 14px; margin: 0 8px 8px 0; }
.pill input { margin-right: 4px; }

/* ── Progress steps ─────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eceff3; }
.steps li:last-child { border-bottom: 0; }
.steps .mark { width: 22px; height: 22px; border-radius: 50%; flex: none; text-align: center; line-height: 22px; font-size: 13px; background: #e9ecf1; color: var(--text-light); }
.steps li.done .mark { background: var(--primary); color: var(--white); }

/* ── Status chips ───────────────────────────────────── */
.statuschip { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; background: #e9ecf1; vertical-align: middle; }
.statuschip.active, .statuschip.ready_to_activate { background: var(--primary-light); color: var(--primary-dark); }
.statuschip.overdue, .statuschip.cancelled { background: #fdecec; color: #8a1f2d; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
.agreement h3 { margin-top: 14px; }
hr { border: 0; border-top: 1px solid #eceff3; margin: 14px 0; }

/* ── Staff box grid ─────────────────────────────────── */
.boxgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.tile { border: 1px solid #d9dde3; border-radius: 8px; padding: 8px 10px; min-height: 66px; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit; background: #fbfcfd; font-size: 13px; }
a.tile:hover { border-color: var(--primary); }
.tile .num { font-weight: 700; }
.tile .who { color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.available .who { color: #9aa3af; }
.tile.reserved { background: #fff7e6; border-color: #f0d9a8; }
.tile.occupied { background: var(--primary-light); border-color: #b5e0c6; }
.tile.overdue { background: #fdecec; border-color: #f2b8b8; }
.tile.out_of_service { background: #e5e7eb; color: var(--text-light); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-style: normal; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: #e9ecf1; color: #374151; white-space: nowrap; }
.chip.pay { background: #fdecec; color: #8a1f2d; }
.chip.todo { background: #fff1cc; color: #7a5a00; }
.chip.ok, .chip.ready { background: #dff2e6; color: var(--primary-dark); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; margin: 8px 0 4px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid #c9cfd8; }

/* ── Footer (matches the main site's dark footer) ───── */
footer.footer { background: #1a1a1a; color: #cccccc; padding: 28px 0; margin-top: 32px; font-size: 0.9rem; }
footer.footer a { color: #cccccc; }
footer.footer a:hover { color: var(--white); }
footer.footer p { margin: 0 0 12px; }
footer.footer p:last-child { margin-bottom: 0; }
.footer-privacy { color: #888888; font-size: 0.85rem; }
