/* GM-02 work templates (GM-U04–06) */
.wt-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.wt-item { border: 1px solid #e2e8e9; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; background: #fbfdfd; }
.wt-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wt-item .field-grid { margin: 8px 0 12px; }
/* checkbox rows of a checklist item (Kötelező / Hibánál fénykép is kell): a real touch target on a phone */
.wt-item .check-label { min-height: 44px; gap: 12px; font-size: 14px; white-space: normal; }
.wt-item .check-label input { width: 22px; height: 22px; flex: none; }
.wt-phone { max-width: 400px; border: 2px solid #cddfe0; border-radius: 22px; padding: 18px; background: #fff; }
.wt-phone-title { font-size: 18px; font-weight: 700; color: #18394d; margin-bottom: 4px; }
.wt-phone-item { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid #eef2f3; padding: 12px 0; }
.wt-phone .secondary-button, .wt-phone .field-input { min-height: 44px; width: 100%; }
@media (max-width: 720px) { .wt-item .field-grid { grid-template-columns: 1fr; } }

/* GM-03 agreements */
.wt-row-selected { background: #f1f8f7; }
.wt-events { margin: 0; padding-left: 18px; line-height: 1.8; }

/* GM-04 dispatcher calendar */
.cal-toolbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-wrap { padding: 12px; }
.cal-grid { table-layout: fixed; min-width: 720px; }
.cal-grid th, .cal-grid td { vertical-align: top; border: 1px solid #eef2f3; padding: 6px; }
.cal-grid td { min-width: 120px; height: 64px; }
.cal-lane-head { width: 150px; position: sticky; left: 0; background: #fff; text-align: left; font-size: 13px; z-index: 1; }
.cal-today { background: #f4faf9; }
.cal-card { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; margin-bottom: 6px; padding: 8px 10px;
  border: 1px solid #cddfe0; border-left: 4px solid #2b958e; border-radius: 8px; background: #fff; font-size: 12px; min-height: 44px; }
.cal-card:hover, .cal-card:focus-visible { background: #f1f8f7; outline: 2px solid #2b958e; }
.cal-card.cal-conflict { border-left-color: #c9822b; background: #fffaf0; }
.cal-card.cal-selected { outline: 2px solid #147f86; }
.cal-time { font-weight: 700; color: #18394d; }
.cal-warn { color: #8a5a00; }
@media (max-width: 720px) { .cal-lane-head { width: 110px; } .cal-grid { min-width: 560px; } }

/* GM-05 field execution (mobile first, 360 px+) */
.fw-page { max-width: 760px; margin: 0 auto; }
.fw-head h1 { font-size: 24px; margin-bottom: 6px; }
.fw-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; color: #51717a; }
.fw-card { background: #fff; border: 1px solid #e2e8e9; border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.fw-card h2 { font-size: 17px; margin-bottom: 12px; }
.fw-item { border-top: 1px solid #eef2f3; padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.fw-item:first-of-type { border-top: 0; }
.fw-item-title { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fw-done .fw-item-title strong { color: #1f7a4d; }
.fw-check { display: flex; gap: 12px; align-items: center; min-height: 48px; font-size: 16px; }
.fw-check input { width: 26px; height: 26px; }
.fw-input { width: 100%; min-height: 48px; font-size: 16px; }

/* CO-02 per-item outcome: three real buttons, each at least 48 px high, state also written as text */
.fw-oc { display: flex; gap: 8px; flex-wrap: wrap; }
.fw-oc-btn { flex: 1 1 96px; min-width: 0; min-height: 48px; padding: 6px 8px; font-size: 16px; font-weight: 600; line-height: 1.2;
  border: 2px solid #b9cdd0; border-radius: 10px; background: #fff; color: #18394d; cursor: pointer; }
.fw-oc-btn:disabled { opacity: .55; cursor: default; }
.fw-oc-btn:focus-visible { outline: 3px solid #147f86; outline-offset: 2px; }
.fw-oc-btn[aria-pressed="true"].fw-oc-done { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.fw-oc-btn[aria-pressed="true"].fw-oc-issue { background: #b3261e; border-color: #b3261e; color: #fff; }
.fw-oc-btn[aria-pressed="true"].fw-oc-na { background: #51717a; border-color: #51717a; color: #fff; }
.fw-oc-state { color: #51717a; }
.fw-oc-note { margin: 0; padding: 8px 10px; background: #f3f6f6; border-radius: 8px; overflow-wrap: anywhere; }
.fw-oc-mark { font-weight: 700; }
.fw-issue .fw-item-title strong { color: #b3261e; }
.fw-na .fw-item-title strong { color: #51717a; }
.fw-oc-summary { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #cddfe0; border-radius: 10px; background: #f8fbfb; }
.fw-oc-summary p { margin: 8px 0 0; overflow-wrap: anywhere; }
.fw-big { min-height: 52px; width: 100%; font-size: 16px; display: inline-flex; justify-content: center; align-items: center; }
.fw-file { position: relative; cursor: pointer; overflow: hidden; }
.fw-file input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fw-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.fw-photos figure { margin: 0; width: 140px; }
.fw-photos img { width: 100%; height: 105px; object-fit: cover; border-radius: 8px; border: 1px solid #cddfe0; background: #f3f6f6; }
.fw-photos figcaption { font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.fw-pending { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 0; }
.fw-time-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #eef2f3; flex-wrap: wrap; }
.fw-actions { margin: 12px 0; }
.fw-manual { margin-top: 12px; }
.fw-submit { border-color: #2b958e; }
@media (min-width: 720px) { .fw-big { width: auto; min-width: 260px; } }

/* GM-05b customer document preview */
.fw-doc { border: 1px dashed #9bb8bd; border-radius: 12px; padding: 16px; margin-top: 12px; background: #fcfefe; }
.fw-doc ul { list-style: none; padding-left: 0; }
.fw-doc li { padding: 4px 0; border-bottom: 1px solid #eef2f3; }

/* GM-06A subscription view */
.saas-meter { margin-bottom: 16px; }
.saas-meter-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.saas-meter meter { width: 100%; height: 14px; }
.saas-features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.saas-features li.on { color: #1f7a4d; }
.saas-features li.off { color: #8a9ca3; }

/* GM-07a: work overview tiles and report filters */
.wr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.wr-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border, #d8dee4); border-radius: 10px; background: var(--surface, #fff); color: inherit; text-decoration: none; }
.wr-tile strong { font-size: 1.8rem; line-height: 1; }
.wr-tile.attention strong { color: #b42318; }
.wr-tile:not(.static):hover, .wr-tile:not(.static):focus-visible { border-color: #2f6f4e; }
.wr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.wr-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.wr-filters label { display: flex; flex-direction: column; gap: 4px; }
.wr-filters label.check { flex-direction: row; align-items: center; gap: 6px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 12px; }

/* GM-01: onboarding checklist, team rows, organization switcher */
.ob-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.ob-list li { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; }
.ob-list li.done { opacity: .75; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.org-switcher { display: inline-flex; gap: 6px; align-items: center; }
