/* Faturat box: phone first, big targets (48px and up), words only. */

.ft-page .field span {
  color: #56615b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* 16px inputs: phones do not zoom in on them. */
.ft-page .field input {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
}

.ft-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ft-two .big-button {
  min-height: 56px;
}

.ft-two-fields,
.ft-three-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ft-three-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 380px) {
  .ft-two,
  .ft-two-fields {
    grid-template-columns: 1fr;
  }
}

.ft-clients {
  overflow-x: auto;
}

.ft-clients button {
  min-height: 48px;
  white-space: nowrap;
}

.ft-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--muted);
  font-size: 15px;
}

.ft-check input {
  width: 24px;
  height: 24px;
  accent-color: var(--green);
}

.ft-months {
  display: grid;
  gap: 12px;
}

.ft-month .card-top {
  flex-wrap: wrap;
}

.ft-month .card-top small {
  text-align: right;
}

.ft-rows,
.ft-lines,
.ft-checks,
.ft-pick,
.ft-edit-lines,
.ft-report {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-row,
.ft-pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ft-row:active,
.ft-pick-row:active {
  background: var(--soft);
}

.ft-row.is-old {
  opacity: 0.6;
}

.ft-row-main,
.ft-pick-row > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ft-row-main strong,
.ft-pick-row strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.ft-row-main small,
.ft-pick-row small {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.ft-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ft-pills:empty {
  display: none;
}

.ft-row-amount {
  flex-shrink: 0;
  font-weight: 800;
  white-space: nowrap;
}

.ft-pick-add {
  flex-shrink: 0;
  min-width: 64px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  text-align: center;
}

.ft-pick li[hidden] {
  display: none;
}

.ft-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}

.ft-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.ft-facts div:last-child {
  border-bottom: 0;
}

.ft-facts dt {
  color: var(--muted);
}

.ft-facts dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.ft-line {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.ft-line:last-child {
  border-bottom: 0;
}

.ft-line small {
  display: block;
  color: var(--muted);
}

.ft-line-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-variant-numeric: tabular-nums;
}

.ft-est {
  color: #c65911;
  font-style: italic;
}

.ft-missing,
.ft-bad {
  color: var(--red);
}

.ft-warn {
  color: #a8741a;
}

.ft-bad,
.ft-warn {
  margin: 0;
  font-size: 14px;
}

.ft-checks li {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: var(--soft);
  font-size: 14px;
}

.ft-checks li.bad {
  border-left-color: var(--red);
}

.ft-checks li.warn {
  border-left-color: #a8741a;
}

.ft-edit-line {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ft-edit-head small {
  display: block;
  color: var(--muted);
}

.ft-edit-line .link-button {
  justify-self: start;
  min-height: 44px;
  color: var(--red);
}

.ft-totals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ft-total {
  display: grid;
  gap: 2px;
  text-align: center;
}

.ft-total span {
  color: var(--muted);
  font-size: 13px;
}

.ft-total strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.ft-editor .tap-save .link-button {
  min-height: 44px;
}

.ft-report .card-top h2 {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.ft-report .card-top .pill {
  flex-shrink: 0;
}
