:root {
  --ink:#111827;
  --muted:#52627a;
  --line:#dbe3ef;
  --bg:#eef2f7;
  --card:#ffffff;
  --dark:#0f172a;
  --soft:#f8fafc;
}
* { box-sizing: border-box; }
body { margin:0; font-family: Arial, Helvetica, sans-serif; background:var(--bg); color:var(--ink); }
button, input, select, textarea { font: inherit; }
.container { max-width:1180px; margin:0 auto; padding:16px; }
.hero { background:var(--dark); color:white; border-radius:24px; padding:24px; margin-bottom:18px; }
.hero h1 { margin:0; font-size:34px; }
.sub { color:var(--muted); font-size:14px; margin-top:4px; }
.hero .sub { color:#cbd5e1; }
.hero-compact { padding:22px 24px; }
.hero-row { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.hero-nav { margin-top:0; }
.hero-nav .btn { padding:10px 16px; border-radius:14px; }
@media (max-width:760px){ .hero-row{ align-items:flex-start; } .hero-nav{ width:100%; } }

.card { background:var(--card); border:1px solid var(--line); border-radius:20px; padding:18px; box-shadow:0 8px 24px rgba(15,23,42,.06); margin-bottom:16px; }
.card-header { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.grid { display:grid; gap:14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width:850px){ .grid-2,.grid-3,.grid-5{ grid-template-columns:1fr; } }
label { display:block; font-size:12px; font-weight:700; color:#42526b; margin-bottom:6px; }
input, select, textarea { width:100%; border:1px solid var(--line); border-radius:14px; padding:12px 14px; background:white; min-height:44px; }
textarea { min-height:90px; resize:vertical; }
.btn { border:0; border-radius:16px; padding:12px 16px; cursor:pointer; font-weight:700; }
.btn.dark { background:var(--dark); color:white; }
.btn.light { background:white; color:#24314a; border:1px solid var(--line); }
.btn.danger { background:#fee2e2; color:#991b1b; }
.button-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.section { margin-top:14px; }
.small { font-size:12px; }
.muted { color:var(--muted); }
.tag { display:inline-flex; align-items:center; gap:6px; padding:8px 10px; border:1px solid var(--line); border-radius:999px; background:var(--soft); font-size:13px; margin:4px 4px 4px 0; }
.activity-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:8px; }
@media (max-width:850px){ .activity-grid{ grid-template-columns:1fr 1fr; } }
.check { display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:12px; padding:8px 10px; background:var(--soft); }
.check input { width:auto; min-height:auto; }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:16px; }
table { width:100%; border-collapse:collapse; background:white; }
th, td { border-bottom:1px solid var(--line); padding:10px; text-align:left; vertical-align:top; font-size:14px; }
th { background:#f8fafc; font-size:12px; color:#334155; }
.workforce-row { display:grid; grid-template-columns: 1.6fr .95fr .75fr 1fr 1.15fr .65fr .65fr .65fr .65fr .65fr auto; gap:8px; align-items:start; margin-bottom:8px; }
.workforce-row input, .workforce-row select { padding:10px; border-radius:10px; min-height:40px; }
@media (max-width:1050px){ .workforce-row{ grid-template-columns:1fr 1fr; } }
.status { margin-top:10px; font-weight:700; }
.status.ok { color:#166534; }
.status.err { color:#991b1b; }
.soft-card { background:#f8fafc; box-shadow:none; }
.print-page { background:white; padding:24px; }
.print-title { text-align:center; font-size:22px; font-weight:800; }
.print-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:8px; margin-top:14px; }
.print-box { border:1px solid #111; padding:8px; min-height:36px; }
.print-section-title { background:#c9c1a0; border:1px solid #111; padding:5px; font-weight:700; margin-top:12px; }
@media print { body { background:white; } .no-print { display:none !important; } .container { max-width:none; padding:0; } .card { box-shadow:none; border:0; } }
.inline-control { display:flex; gap:8px; align-items:center; }
.inline-control input { flex:1; }
.small-btn { padding:10px 12px; min-height:44px; white-space:nowrap; }

.signature-pad { width:100%; height:70px; border:1px solid var(--line); border-radius:14px; background:#ffffff; display:block; touch-action:none; cursor:crosshair; }
#locationDescription { min-height:120px; max-height:260px; overflow:auto; }
@media print { #locationDescription { max-height:none; overflow:visible; } }

.hero-copy { min-width: 0; }
.hero-logo { width: 86px; height: 86px; object-fit: contain; opacity: .9; flex: 0 0 auto; }
.submit-confirm { margin-top:14px; border:1px solid #f59e0b; background:#fffbeb; color:#78350f; border-radius:16px; padding:14px; }
.submit-thank-you { text-align:center; max-width:720px; margin:24px auto; }
.success-icon { width:62px; height:62px; border-radius:999px; background:#dcfce7; color:#166534; display:flex; align-items:center; justify-content:center; font-size:36px; font-weight:800; margin:0 auto 14px; }
@media (max-width:760px){ .hero-logo { width:58px; height:58px; } .hero h1 { font-size:28px; } }
@media print { .hero-logo { display:none !important; } }
