/* ============================================================
   Field collection — mobile officer app (POS receipts)
   ============================================================ */
.field-app { max-width: 760px; margin: 0 auto; padding-bottom: 86px; }
.field-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  background: radial-gradient(circle at 92% 0%, rgba(230,184,60,.28), transparent 45%),
              linear-gradient(120deg, #0a3b51 0%, #0c5571 60%, #0f718e 100%);
  color: #fff; border-radius: 18px; padding: 18px 18px 16px;
  box-shadow: 0 14px 30px rgba(7,47,66,.2);
}
.field-hero::after {
  content: ""; position: absolute; right: -50px; bottom: -80px; width: 190px; height: 190px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
}
.field-eyebrow { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #a9cde0; font-weight: 700; }
.field-title { font-size: 21px; font-weight: 800; margin-top: 3px; letter-spacing: -.02em; }
.field-sub { font-size: 12px; color: #c8dfe9; margin-top: 3px; }
.field-conn { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; position: relative; z-index: 1; }
.conn-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.16);
  color: #eaf5fa; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  white-space: nowrap;
}
.conn-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #41c98a; box-shadow: 0 0 0 3px rgba(65,201,138,.2); }
.conn-pill.off .dot { background: #ffb020; box-shadow: 0 0 0 3px rgba(255,176,32,.2); }
.conn-pill.pending { background: rgba(230,184,60,.22); border-color: rgba(230,184,60,.4); color: #ffe9a8; cursor: pointer; }
.conn-pill.sync { background: rgba(255,255,255,.1); }
.field-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: #e7eef4; border-radius: 12px; padding: 4px; margin: 14px 0;
}
.field-tab {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; background: transparent; color: #4d6379; border-radius: 9px;
  padding: 9px 10px; font-size: 13px; font-weight: 700; cursor: pointer; min-height: 42px;
}
.field-tab svg { width: 16px; height: 16px; }
.field-tab.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(15,44,66,.1); }
.field-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
.field-stat {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 11px; box-shadow: var(--shadow);
}
.field-stat span { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.field-stat strong { display: block; font-size: 15px; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.field-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.field-search { flex: 1; }
.field-search .input { min-width: 0; width: 100%; background: #fff; }
.field-chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px; margin-bottom: 10px; }
.fchip {
  border: 1px solid var(--border-strong); background: #fff; color: #4d6379;
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600;
  white-space: nowrap; cursor: pointer; min-height: 34px;
}
.fchip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.due-list { display: flex; flex-direction: column; gap: 9px; }
.due-card {
  background: #fff; border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 13px; padding: 12px 13px; cursor: pointer; box-shadow: var(--shadow);
  transition: border-color .15s, transform .08s;
}
.due-card:hover, .due-card:focus-visible { border-color: #a9c6d8; }
.due-card:active { transform: scale(.995); }
.due-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.due-name { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.due-money { font-size: 15px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.due-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.due-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: #4d6379; margin-top: 7px; }
.due-dpd { color: var(--danger); font-weight: 700; }
.due-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.due-status { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.due-call {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; color: var(--primary);
  background: #eef6fa; border-radius: 999px; padding: 4px 9px;
}
.due-call svg { width: 13px; height: 13px; }
.field-note {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-radius: 10px; padding: 9px 11px; font-size: 12px; margin-bottom: 11px;
}
.field-note svg { width: 15px; height: 15px; }
.field-note.offline { background: #fff7e8; color: #8a5a06; border: 1px solid #f1d9a9; }
.field-note.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #f0d9b5; }
.field-note .btn { margin-left: auto; }
.field-empty { text-align: center; color: var(--muted); padding: 34px 12px; background: #fff; border: 1px dashed var(--border-strong); border-radius: 13px; }
.field-empty svg { width: 30px; height: 30px; opacity: .45; margin-bottom: 6px; }
.field-saved { text-align: center; font-size: 10.5px; color: #8a9aab; margin: 12px 0 4px; }
.field-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
@media (min-width: 1025px) { .field-actions { left: var(--sidebar-w); } }
.receipt-list { display: flex; flex-direction: column; gap: 8px; }
.receipt-row {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px;
}
.receipt-row-main { min-width: 0; flex: 1; }
.receipt-row-name { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt-row-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.receipt-row-amt { font-weight: 800; color: var(--primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt-sheet { display: flex; justify-content: center; padding: 4px 0 12px; }
.receipt-sheet img {
  width: min(260px, 72vw); border: 1px solid #e2e9f0; border-radius: 6px;
  box-shadow: 0 10px 30px rgba(15,44,66,.14); background: #fff;
}
.print-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.print-actions .btn { min-height: 44px; }
.print-status { font-size: 11.5px; color: var(--muted); margin-top: 10px; min-height: 16px; }
.print-status.ok { color: var(--success); }
.print-status.error { color: var(--danger); }
.field-label { display: block; font-size: 11.5px; font-weight: 700; color: #46586e; margin: 14px 0 5px; }
.fc-head { margin-bottom: 10px; }
.fc-name { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.fc-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.fc-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.fc-figures > div { background: #f6fafc; border: 1px solid var(--border); border-radius: 10px; padding: 8px 9px; }
.fc-figures span { display: block; font-size: 10px; color: var(--muted); font-weight: 600; }
.fc-figures strong { display: block; font-size: 13.5px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.fc-figures .neg { color: var(--danger); }
.fc-amount { font-size: 22px; font-weight: 800; height: 54px; font-variant-numeric: tabular-nums; }
.fc-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.fc-chips button {
  border: 1px solid var(--border-strong); background: #fff; color: var(--primary);
  border-radius: 999px; padding: 6px 10px; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.fc-chips button:hover { background: #f2f8fb; }
.fc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.fc-note { font-size: 11px; color: var(--muted); margin-top: 12px; line-height: 1.45; }
.printer-state { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.printer-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: #eef6fa; color: var(--primary);
}
.printer-icon svg { width: 22px; height: 22px; }
.printer-title { font-weight: 800; font-size: 14px; }
.printer-help { margin: 14px 0 0; padding-left: 18px; font-size: 11.5px; color: #4d6379; line-height: 1.55; }
.printer-help li { margin-bottom: 5px; }
@media (max-width: 430px) {
  .field-stats { grid-template-columns: 1fr 1fr; }
  .field-stat:nth-child(3) { grid-column: 1 / -1; }
  .fc-figures { grid-template-columns: 1fr 1fr; }
  .print-actions { grid-template-columns: 1fr; }
}
