/* WageDecoder -- federal.css
 *
 * The federal route is a focused certified-payroll surface built on the same
 * production builder. The visual language stays the product's cream/navy/ink
 * system; this file only adds the federal page shell and removes the old
 * multi-purpose marketing/state-rate surfaces.
 */

.federal-mode .home-only,
.federal-mode .coverage-strip,
.federal-mode .pricing,
.federal-mode #pricingMount {
  display: none !important;
}

.federal-mode .fed-hide,
.federal-mode #dualField,
.federal-mode #stateGrid,
.federal-mode #rateCard,
.federal-mode #portalFiles,
.federal-mode #dirRegField {
  display: none !important;
}

.federal-mode .lang {
  display: none;
}

.federal-mode .top nav a.fed-nav-active {
  background: var(--surface-2);
  color: var(--ink);
}

.federal-mode .top nav {
  gap: 4px;
}

.federal-mode .top nav a {
  padding: 7px 9px;
  border-radius: 7px;
}

/* ============================================================ federal hero */

.fed-hero {
  background:
    radial-gradient(1200px 380px at 82% -120px, rgba(156, 37, 49, .26), transparent 60%),
    linear-gradient(135deg, #0c172a 0%, #13243d 52%, #1d3f6e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.fed-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, .16);
}

.fed-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .72fr);
  gap: 56px;
  align-items: center;
  padding-top: 52px;
  padding-bottom: 48px;
  max-width: 1180px;
}

.fed-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--flag-red);
}

.fed-hero .fed-eyebrow {
  color: #f2b7bd;
}

.fed-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

.fed-hero h1 {
  max-width: 760px;
  margin: 16px 0 18px;
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 600;
}

.fed-hero-copy > p {
  max-width: 660px;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .76);
  letter-spacing: -.008em;
}

.fed-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.fed-hero .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .5);
}

.fed-hero .btn-primary:hover {
  background: #f1eee7;
  border-color: #f1eee7;
}

.fed-hero .btn-ghost {
  color: rgba(255, 255, 255, .78);
  border-color: rgba(255, 255, 255, .22);
}

.fed-hero .btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .36);
}

.fed-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 12px;
  color: rgba(255, 255, 255, .62);
}

.fed-offer b { color: #fff; font-weight: 650; }
.fed-offer i {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, .22);
  margin: 0 2px;
}

.fed-hero-side {
  justify-self: end;
  width: 100%;
  max-width: 390px;
}

.fed-side-card {
  background: #fdfcf9;
  color: var(--ink);
  border-radius: 16px;
  padding: 20px 20px 16px;
  box-shadow: 0 26px 60px -28px rgba(0, 0, 0, .65), 0 1px 0 rgba(255, 255, 255, .16) inset;
  transform: rotate(1.2deg);
}

.fed-side-kicker {
  display: block;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.fed-side-project {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.fed-side-meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
}

.fed-side-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
}

.fed-side-check > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.fed-side-check.ok { background: #f0f8f4; border-color: #d3e8de; }
.fed-side-check.ok > span { background: #dff2e8; color: var(--ok); }
.fed-side-check.bad { background: #fdf4f2; border-color: #f0d8d4; }
.fed-side-check.bad > span { background: #f8e3e0; color: var(--danger); }

.fed-side-check b {
  display: block;
  font-size: 11.5px;
  line-height: 1.4;
}

.fed-side-check small {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  line-height: 1.45;
  color: var(--ink-3);
}

.fed-side-output {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--ink-4);
}

.fed-side-output b {
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  text-align: right;
}

.fed-side-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, .58);
}

/* ============================================================ builder shell */

.federal-mode .cloud-project-host {
  max-width: 1180px;
  margin: 18px auto 0;
}

.federal-mode .cloud-project-bar {
  border-left-color: var(--flag-red);
  background: #f6f3ed;
}

.federal-mode .cols {
  max-width: 1180px;
  grid-template-columns: minmax(0, 1fr) 336px;
  padding-top: 22px;
}

.federal-mode .card {
  border-radius: 13px;
}

.federal-mode .card > header {
  background: linear-gradient(180deg, #f4f1e9, rgba(244, 241, 233, .45));
}

.federal-mode .card > header h2 {
  font-size: 14.5px;
}

.federal-mode .card > header .idx {
  background: var(--ink);
  color: #fff;
}

.federal-mode #state .body {
  padding-top: 18px;
}

.federal-mode #state .grid-3 {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr);
}

.federal-mode #state .field:first-child {
  grid-column: auto;
}

.federal-mode .fed-no-work {
  margin: 12px 0 0;
}

.federal-mode .fed-wd-quick {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(29, 63, 110, .24);
  border-left: 3px solid #0f6b78;
  border-radius: 10px;
  background: #f7fbfb;
}

.federal-mode .fed-wd-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.federal-mode .fed-wd-quick-actions .hint {
  flex: 1 1 220px;
  min-width: 0;
}

.federal-mode .fed-nowork-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  padding: 9px 12px;
  border-left: 3px solid #c9a45c;
  border-radius: 0 8px 8px 0;
  background: #fbf7ea;
  color: #6b7787;
  font-size: 12px;
  line-height: 1.5;
}

.federal-mode .fed-nowork-line span b {
  color: #1d3f6e;
  font-weight: 600;
}

.federal-mode .fed-nowork-line a {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid #d5c39d;
  border-radius: 999px;
  background: #fff;
  color: #8a6429;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.federal-mode .fed-nowork-line a:hover {
  border-color: #1d3f6e;
  background: #fff;
  color: #1d3f6e;
}

@media (max-width: 640px) {
  .federal-mode .fed-nowork-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

.federal-mode .fed-wd-results {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  max-height: 260px;
  overflow: auto;
}

.federal-mode .fed-wd-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(29, 63, 110, .16);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.federal-mode .fed-wd-result:hover,
.federal-mode .fed-wd-result:focus-visible {
  border-color: #0f6b78;
  background: #eef8f8;
}

.federal-mode .fed-wd-result-main {
  min-width: 0;
}

.federal-mode .fed-wd-result-title {
  display: block;
  font-weight: 700;
}

.federal-mode .fed-wd-result-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.federal-mode .fed-wd-result-tag {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e6f2f3;
  color: #0f6b78;
  font-size: 11px;
  white-space: nowrap;
}

.federal-mode .fed-wd-mod-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(29, 63, 110, .2);
}

.federal-mode .fed-wd-mod-row .field {
  flex: 0 1 260px;
}

.federal-mode .fed-contract-wd {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(29, 63, 110, .2);
  border-left: 3px solid var(--ink);
  border-radius: 10px;
  background: #fff;
}

.federal-mode .fed-wd-nested {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(29, 63, 110, .18);
}

.federal-mode .fed-contract-wd-details summary {
  position: relative;
  display: block;
  padding-right: 24px;
  list-style: none;
  cursor: pointer;
}

.federal-mode .fed-contract-wd-details summary::-webkit-details-marker {
  display: none;
}

.federal-mode .fed-contract-wd-details summary strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: -.01em;
}

.federal-mode .fed-contract-wd-details summary .hint {
  display: block;
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 11px;
}

.federal-mode .fed-contract-wd-details summary::after {
  position: absolute;
  top: -2px;
  right: 0;
  color: #0f6b78;
  content: "+";
  font-size: 18px;
  font-weight: 600;
}

.federal-mode .fed-contract-wd-details[open] summary::after {
  content: "−";
}

.federal-mode .fed-contract-wd-details[open] summary {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}

.federal-mode .fed-contract-grid {
  margin-top: 12px;
}

.federal-mode .fed-contract-grid .field {
  min-width: 0;
}

.federal-mode .fed-contract-revisions {
  margin-top: 10px;
}

.federal-mode .fed-contract-revisions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.federal-mode .fed-contract-revisions-row .hint {
  flex: 1 1 220px;
  min-width: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-3);
}

.federal-mode .fed-contract-revisions-row .link-btn {
  padding: 0;
  font-size: 11.5px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.federal-mode .fed-contract-revisions-row .link-btn[aria-busy="true"] {
  opacity: .55;
  pointer-events: none;
}

.federal-mode .fed-wd-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.federal-mode .fed-wd-history[hidden] {
  display: none;
}

.federal-mode .fed-wd-history-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(29, 63, 110, .18);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.federal-mode .fed-wd-history-row:hover,
.federal-mode .fed-wd-history-row:focus-visible {
  border-color: rgba(29, 63, 110, .42);
  background: #fff;
  outline: none;
}

.federal-mode .fed-wd-history-row.is-selected {
  border-color: var(--ink);
  background: #fff;
}

.federal-mode .fed-wd-history-mod {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}

.federal-mode .fed-wd-history-tag {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e8f3ec;
  color: #216e4e;
  font-size: 10px;
  font-weight: 600;
}

.federal-mode .fed-wd-history-empty {
  margin: 0;
  font-size: 11px;
  color: var(--ink-3);
}

.federal-mode .fed-contract-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.federal-mode .fed-contract-actions .hint {
  flex: 1 1 220px;
  min-width: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-3);
}

.federal-mode #wdContractStatus.is-warn,
.federal-mode #wdManualStatus.is-warn {
  color: #9c2531;
}

.federal-mode #wdContractStatus.is-ok,
.federal-mode #wdManualStatus.is-ok {
  color: #216e4e;
}

.federal-mode .fed-contract-actions .btn {
  flex: 0 0 auto;
}

.federal-mode .fed-contract-fallback {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(156, 37, 49, .18);
  border-radius: 8px;
  background: #fffaf7;
}

.federal-mode .fed-contract-fallback p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.federal-mode .fed-contract-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.federal-mode .fed-contract-links .btn {
  padding: 7px 10px;
  font-size: 11.5px;
}

.federal-mode .fed-contract-manual {
  margin-top: 12px;
}

.federal-mode .fed-contract-manual label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--ink-3);
}

.federal-mode .fed-contract-manual textarea {
  width: 100%;
  min-height: 92px;
  padding: 9px 10px;
  border: 1px solid rgba(29, 63, 110, .22);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

.federal-mode .fed-contract-manual textarea:focus {
  outline: 2px solid rgba(29, 63, 110, .22);
  outline-offset: 1px;
}

.federal-mode .fed-wd-pick {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(29, 63, 110, .17);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: #f5f8fc;
}

.federal-mode .fed-wd-reference {
  border-left-color: rgba(29, 63, 110, .32);
  background: #fafbfc;
}

.federal-mode .fed-wd-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.federal-mode .fed-wd-head strong {
  display: block;
  font-size: 13px;
  letter-spacing: -.01em;
}

.federal-mode .fed-wd-head .hint {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-3);
}

.federal-mode .fed-wd-note {
  max-width: 330px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-3);
  text-align: right;
}

.federal-mode .fed-wd-grid {
  margin-top: 12px;
}

.federal-mode .fed-wd-grid .btn {
  width: 100%;
}

.federal-mode .wd-choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.federal-mode .wd-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(29, 63, 110, .16);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.federal-mode .wd-choice:hover {
  border-color: rgba(29, 63, 110, .38);
}

.federal-mode .wd-choice.is-selected {
  border-color: var(--accent);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.federal-mode .wd-choice input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.federal-mode .wd-choice-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.federal-mode .wd-choice-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.federal-mode .wd-choice-meta {
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-3);
}

.federal-mode .wd-attachment {
  margin-top: 12px;
  background: #fffdf9;
}

.federal-mode .worker-tools .btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.federal-mode .export-bar {
  border-radius: 12px;
}

/* Keep the three Statement fields on one baseline. The apprentice label wraps
   to two lines, which used to push its input about 19px below Signer and Title. */
.federal-mode .statement-fields { align-items: end; }
.federal-mode .statement-fields .field label {
  min-height: 38px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.federal-mode #apprenticeProgram:disabled {
  background: var(--surface-2);
  color: var(--ink-4);
  cursor: not-allowed;
}
.federal-mode .fed-s4-note {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
  border: 1px solid #e6d6ac;
  border-radius: 999px;
  background: #fbf3dd;
  color: #7c5c16;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
}
.federal-mode .check.is-locked { cursor: default; }
.federal-mode .check.is-locked:hover { background: transparent; }
.federal-mode .check.is-locked input { cursor: not-allowed; opacity: .7; }
.federal-mode #apprenticeRegisteredWith:disabled {
  background: var(--surface-2);
  color: var(--ink-4);
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .federal-mode .statement-fields .field label { min-height: 0; }
}

.federal-mode .export-actions .btn-primary {
  min-height: 40px;
}
.federal-mode .export-actions .btn {
  min-height: 40px;
}

.federal-mode .checks {
  top: 80px;
}

/* The toast must be readable even though the old deadline/flash host is hidden. */
.wd-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  transform: translateY(10px);
  max-width: min(380px, calc(100vw - 40px));
  padding: 10px 14px;
  border: 1px solid #bcd9c7;
  border-radius: 9px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 10px 30px -12px rgba(15, 26, 46, .28);
  opacity: 0;
  transition: opacity .18s, transform .18s;
}

.wd-toast.on {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================ plan */

.fed-plan {
  padding: 8px 0 40px;
}

.fed-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .52fr);
  gap: 32px;
  align-items: start;
  max-width: 1180px;
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
}

.fed-plan h2 {
  margin: 10px 0 10px;
  font-size: 24px;
  letter-spacing: -.035em;
}

.fed-plan p {
  margin: 0;
  max-width: 700px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-3);
}

.fed-textlink {
  display: inline-block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

.fed-textlink:hover { text-decoration: underline; }

.fed-license-box {
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
}

.fed-license-box summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.fed-license-note {
  margin-top: 8px !important;
  font-size: 10.5px !important;
  color: var(--ink-4) !important;
}

.fed-license-box .lic {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ============================================================ week record */

.federal-mode .week-record .body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.federal-mode .sign-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fffdf9;
}

.federal-mode .sign-record-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.federal-mode .sign-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.federal-mode .sign-state {
  font-size: 15px;
  line-height: 1.25;
  color: var(--ink);
}

.federal-mode .sign-state.signed { color: var(--ok); }
.federal-mode .sign-state.changed { color: var(--warn); }
.federal-mode .sign-state.draft { color: var(--ink-2); }

.federal-mode #signMeta {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-3);
}

.federal-mode .sign-record-note {
  margin: -4px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-4);
}

.federal-mode .week-history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.federal-mode .week-history-head strong {
  font-size: 12.5px;
  letter-spacing: -.01em;
}

.federal-mode #weekHistoryStatus {
  font-size: 10.5px;
  color: var(--ink-4);
}

.federal-mode .week-history {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
}

.federal-mode .week-history-empty {
  padding: 13px 14px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-3);
}

.federal-mode .week-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
}

.federal-mode .week-history-row:last-child { border-bottom: 0; }

.federal-mode .week-history-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.federal-mode .week-history-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.federal-mode .week-history-sub {
  font-size: 10.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.federal-mode .week-history-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.federal-mode .week-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.federal-mode .week-status.signed {
  background: var(--ok-soft);
  color: var(--ok);
}

.federal-mode .week-status.open {
  background: var(--warn-soft);
  color: var(--warn);
}

.federal-mode .week-status.changed {
  background: var(--warn-soft);
  color: var(--warn);
}

.federal-mode .week-status.draft {
  background: var(--surface-2);
  color: var(--ink-3);
}

.federal-mode .week-history-more {
  padding: 9px 13px;
  border-top: 1px solid var(--line);
  text-align: right;
}

.federal-mode .week-history-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.federal-mode .week-history-foot .hint {
  font-size: 10.5px;
  color: var(--ink-4);
}

@media (max-width: 720px) {
  .federal-mode .sign-record {
    align-items: flex-start;
    flex-direction: column;
  }

  .federal-mode .sign-record .btn {
    width: 100%;
  }

  .federal-mode .week-history-row {
    align-items: flex-start;
  }

  .federal-mode .week-history-side {
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
  }
}

/* ============================================================ responsive */

@media (max-width: 980px) {
  .fed-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 38px;
  }

  .fed-hero-side {
    justify-self: start;
    max-width: 520px;
  }

  .fed-side-card { transform: none; }

  .federal-mode .cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .federal-mode .checks { position: static; }

  .fed-plan-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 720px) {
  .fed-hero h1 {
    font-size: 34px;
    line-height: 1.06;
  }

  .fed-hero-copy > p { font-size: 14.5px; }

  .fed-hero-grid { padding-top: 30px; padding-bottom: 32px; }

  .fed-offer {
    display: block;
    line-height: 1.6;
  }

  .fed-offer i { display: none; }
  .fed-offer b { display: inline; }

  .federal-mode #state .grid-3,
  .federal-mode .fed-wd-grid {
    grid-template-columns: 1fr;
  }

  .federal-mode .fed-wd-head { display: block; }
  .federal-mode .fed-wd-note { text-align: left; margin-top: 8px; max-width: none; }

  .federal-mode .cloud-project-host { width: calc(100% - 32px); }
}

/* Mobile: keep the active product, price and account on one line. */
@media (max-width: 760px) {
  .federal-mode .top-inner { flex-wrap: nowrap; gap: 10px; }
  .federal-mode .top nav { flex-wrap: nowrap; gap: 2px; }
  .federal-mode .top nav a[href="/certified-payroll/"],
  .federal-mode .top nav a[href="/projects/"] { display: none; }
  .federal-mode .top nav a { padding: 6px 7px; font-size: 11px; }
  .federal-mode .top nav .account-link { padding: 6px 7px; font-size: 11px; }
}

/* ============================================================ 2026-11-22 worksheet layout
 * A single continuous WH-347 sheet: project & contractor, crew, statement.
 * The old card grid and right-hand Checks column are intentionally overridden.
 */

.fed-hero-compact {
  padding: 0;
}

.fed-hero-compact .wrap {
  max-width: 1120px;
  padding-top: 34px;
  padding-bottom: 30px;
}

.fed-hero-line {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 36px;
  align-items: end;
  margin-top: 12px;
}

.fed-hero-compact h1 {
  margin: 0;
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.03;
}

.fed-hero-compact .fed-hero-line p {
  max-width: 560px;
  margin: 0;
  padding-bottom: 3px;
  font-size: 14.5px;
  line-height: 1.6;
}

.fed-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: 12px;
  color: rgba(255,255,255,.66);
}

.fed-hero-meta b { color: #fff; font-weight: 600; }
.fed-hero-meta a { margin-left: auto; color: #f2b7bd; font-weight: 600; text-decoration: none; }
.fed-hero-meta a:hover { text-decoration: underline; }

.federal-mode #toolRoot {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 0 10px;
}

.federal-mode #toolRoot > .fed-status { order: -1; width: 100%; }

.fed-sheet {
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  box-shadow: 0 10px 34px rgba(17, 36, 62, .05);
  overflow: hidden;
}

.fed-block {
  border-bottom: 1px solid var(--line-2);
  background: #fff;
}

.fed-block:last-of-type { border-bottom: 0; }

.fed-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  background: #f5f2eb;
  border-bottom: 1px solid var(--line-2);
}

.fed-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fed-block-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #14233c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 auto;
}

.fed-block-title h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -.012em;
}

.fed-block-head .hint {
  max-width: 520px;
  text-align: right;
  font-size: 11.5px;
  line-height: 1.45;
}

.fed-block-body { padding: 18px 20px 22px; }

.fed-field-grid {
  display: grid;
  gap: 12px 14px;
  align-items: start;
}

.fed-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fed-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fed-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fed-span-2 { grid-column: span 2; }

.fed-check-field {
  align-self: end;
  padding-bottom: 8px;
}

.fed-check-field .check {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
}

.fed-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 10px;
  padding-top: 13px;
  border-top: 1px solid var(--line-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink);
}

.fed-subhead .sub {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
}

.fed-statement-checks {
  display: grid;
  gap: 7px;
}

.fed-status {
  background: #fff;
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 10px 14px;
  box-shadow: 0 5px 18px rgba(17, 36, 62, .04);
}

.fed-status .score {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.fed-status .score-ring {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  font-size: 11px;
}

.fed-status .score-text {
  min-width: 0;
}

.fed-status .score-text strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.fed-status .score-text span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-3);
}

.fed-status-details { margin-left: auto; }

.fed-status-details summary {
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.fed-status .findings {
  position: absolute;
  z-index: 30;
  right: 18px;
  left: auto;
  width: min(540px, calc(100vw - 56px));
  max-height: 320px;
  overflow: auto;
  margin-top: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(17, 36, 62, .15);
}

.fed-status .score { position: relative; }

.fed-status .findings:empty { display: none; }

.fed-worker {
  margin-top: 14px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: #fffdf8;
  overflow: hidden;
}

.fed-worker:first-child { margin-top: 0; }

.fed-worker-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: #f8f6f0;
  border-bottom: 1px solid var(--line-2);
}

.fed-worker-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fed-worker-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #14233c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.fed-worker-title strong {
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fed-worker-sum {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
}

.fed-worker-sum b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.fed-worker .row-del {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.fed-worker-grid {
  display: grid;
  gap: 10px 12px;
  align-items: start;
  padding: 12px 12px 0;
}
.fed-worker-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fed-worker-grid-6 .field:has(select[data-field="kind"]) { grid-column: 1 / -1; }
.fed-worker-grid-3 { grid-template-columns: 1.4fr 1fr 1fr; }
.fed-worker-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 12px; }

.fed-worker .field { margin: 0; }
.fed-worker .field label { font-size: 10px; }

.fed-hours-wrap {
  padding: 6px 12px 0;
  overflow-x: auto;
}

.fed-hours {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.fed-hours th,
.fed-hours td {
  border: 1px solid var(--line-2);
  padding: 4px 5px;
  text-align: center;
  font-size: 10.5px;
}

.fed-hours th:first-child,
.fed-hours td:first-child {
  width: 44px;
  text-align: left;
  color: var(--ink-3);
  background: #faf8f3;
}

.fed-hours input {
  width: 100%;
  min-width: 34px;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 11px;
  padding: 2px 0;
}

.fed-hours input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.fed-crew-total {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 0 0;
  border-top: 1px solid var(--line-2);
  font-size: 11px;
  color: var(--ink-3);
}

.fed-crew-total b,
.fed-crew-total span:last-child {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

@media (max-width: 900px) {
  .fed-hero-line { grid-template-columns: 1fr; gap: 10px; }
  .fed-hero-meta a { margin-left: 0; width: 100%; }
  .fed-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fed-worker-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fed-worker-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fed-block-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .fed-block-head .hint { max-width: none; text-align: left; }
}

@media (max-width: 620px) {
  .fed-hero-compact .wrap { padding-top: 24px; padding-bottom: 22px; }
  .fed-hero-compact h1 { font-size: 31px; }
  .fed-grid-2, .fed-grid-3, .fed-grid-4, .fed-worker-grid-6, .fed-worker-grid-3, .fed-worker-grid-4 { grid-template-columns: 1fr; }
  .fed-span-2 { grid-column: auto; }
  .fed-block-body { padding: 14px 12px 18px; }
  .fed-block-head { padding: 10px 12px; }
  .fed-status .findings { position: static; width: auto; box-shadow: none; margin-top: 8px; }
  .fed-status-details { margin-left: 0; }
  .fed-status .score { flex-wrap: wrap; }
  .fed-status-details { width: 100%; }
  .fed-worker-head { flex-wrap: wrap; gap: 6px; }
  .fed-worker-sum { width: 100%; margin-left: 0; }
  .fed-worker-grid { padding: 10px 10px 0; }
}

/* Federal crew card: one compact record per worker, matching the order of the
   official WH-347 row. Entry No. is auto-assigned and is not an input. */
.fed-worker-compact .fed-worker-grid {
  padding: 9px 12px 0;
  gap: 8px 10px;
}
.fed-worker-compact .fed-worker-grid-4 { padding-bottom: 9px; }
.fed-worker-compact .fed-hours-wrap { padding-top: 2px; }
.fed-card-issues {
  margin: 7px 12px 10px;
  color: #a3352b;
  font-size: 11px;
  line-height: 1.45;
}
.fed-net-field output {
  display: block;
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: #f7f5ef;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.federal-mode .fed-appr-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid #d8e4ea;
  border-left: 3px solid #315c70;
  border-radius: 8px;
  background: #f3f8fa;
  color: #274a5a;
  font-size: 12.5px;
  line-height: 1.5;
}
.federal-mode .fed-appr-notice[hidden] { display: none; }
.federal-mode .fed-appr-notice .btn {
  min-height: 30px;
  padding: 0 12px;
  white-space: nowrap;
  background: #fff;
}
@media (max-width: 640px) {
  .federal-mode .fed-appr-notice { align-items: flex-start; flex-direction: column; }
}
