/* Boss HQ demo: Receipts & Invoices styles. Shared classes live in demo.css. */
.rc .card + .card {
  margin-top: 18px;
}
.rc-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 34px 16px;
  border: 2px dashed var(--input);
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  background: transparent;
}
.rc-drop > div {
  font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text);
}
.rc-drop:hover,
.rc-drop:focus-visible {
  border-color: var(--accent);
}
.rc-dl {
  color: var(--muted);
}
.rc .card-head .right {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.rc-filter {
  width: 150px;
  min-width: 0;
}
.rc .tbl th,
.rc .tbl td {
  padding: 9px 8px;
  font-size: 13px;
}
.rc .tbl th {
  font-size: 10.5px;
}
/* Real app: the cost code reads as plain mono text; the control shows on hover or focus. */
.rc .tbl .rc-codesel:not(.empty) {
  background: transparent;
  border-color: transparent;
  padding-left: 0;
  min-width: 96px;
}
.rc .tbl .rc-codesel:not(.empty) .ms {
  opacity: 0;
}
@media (min-width: 769px) {
  .rc .tbl th,
  .rc .tbl td {
    padding-left: 4px;
    padding-right: 4px;
  }
  .rc .tbl .rc-codesel {
    max-width: 134px;
  }
  .rc .tbl .rc-codesel .sel-l {
    max-width: 100px;
  }
  .rc .tbl .rc-codesel.empty .sel-l {
    max-width: none;
  }
  .rc .tbl .rc-codesel.empty {
    min-width: 148px;
    max-width: 148px;
  }
}
/* The real table has no spare width either (inv/receipts.md section 3, 11 columns): Filed via drops out where the card is narrow. */
@media (min-width: 769px) and (max-width: 1500px) {
  .rc .tbl th:nth-child(8),
  .rc .tbl td:nth-child(8) {
    display: none;
  }
}
.rc .tbl .rc-codesel:not(.empty):hover,
.rc .tbl .rc-codesel:not(.empty):focus-visible {
  background: var(--card);
  border-color: var(--input);
  padding-left: 10px;
}
.rc .tbl .rc-codesel:not(.empty):hover .ms,
.rc .tbl .rc-codesel:not(.empty):focus-visible .ms {
  opacity: 1;
}
.rc .tbl td:nth-child(2),
.rc .tbl td:nth-child(7) {
  white-space: nowrap;
}
.rc .tbl td:nth-child(3) .tiny {
  width: 130px;
}
.rc-row {
  cursor: pointer;
}
.rc-row .lnk,
.rc .lnk {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.rc .lnk:hover {
  text-decoration: underline;
}
.rc-src {
  display: inline-flex;
  gap: 2px;
}
.rc-src .btn {
  padding: 4px 6px;
}
.rc-codesel {
  min-width: 120px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12px;
}
.rc-codesel.empty .sel-l {
  color: var(--warn);
}
.rc .tbl td .tiny {
  max-width: 200px;
  display: inline-block;
}
.rc-cards {
  display: none;
}
.rc-mrow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--hair);
  cursor: pointer;
}
.rc-ml {
  min-width: 0;
}
.rc-mr {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: none;
}
.rc-mact {
  margin-top: 4px;
}
.rc-mcode {
  margin-top: 6px;
}
.rc-mcode .rc-codesel {
  width: 100%;
  max-width: 210px;
  min-height: 44px;
}
.rc-mcode .rc-codesel .sel-l {
  max-width: none;
}
.rc-form {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
}
.rc-form:not(:has(.rc-thumb)) {
  grid-template-columns: 1fr;
}
.rc-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 10px;
  text-align: center;
  background: var(--sunk);
  border: 1px solid var(--hair);
  border-radius: 6px;
  color: var(--muted);
}
.rc-fields .field {
  margin-bottom: 12px;
}
.rc-fields .mini,
.rc-fields .sel {
  width: 100%;
}
.rc-seg {
  display: flex;
  border: 1px solid var(--input);
  border-radius: 4px;
  overflow: hidden;
}
.rc-seg button {
  flex: 1;
  padding: 8px 10px;
  background: var(--card);
  border: 0;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.rc-seg button.on {
  background: var(--accent);
  color: var(--on-accent);
}
.rc-seg button + button {
  border-left: 1px solid var(--input);
}
.rc-oh {
  margin-bottom: 12px;
}
.rc-chk {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  margin-bottom: 10px;
}
#rc-why {
  min-height: 18px;
  margin-top: 4px;
}
.rc-sheet {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
}
.rc-photo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rc-slip {
  background: #fbfaf6;
  color: #333;
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 16px 14px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.rc-line {
  height: 6px;
  background: #d9d7d0;
  margin: 10px 0;
  border-radius: 2px;
}
.rc-line.s {
  width: 60%;
}
.rc-tot {
  margin-top: 14px;
  font-weight: 700;
  text-align: right;
}
.rc-acts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rc-pr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 13.5px;
}
.rc-pr > .muted {
  white-space: nowrap;
  flex: none;
}
.rc-props .tiny {
  padding: 6px 0;
}
.rc-p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}
/* the real app lists receipts as cards only on its phone shell, up to 768px (app.js:3921); at 800 it shows the table */
@media (max-width: 768px) {
  .rc-recent:not(.rc-inv) .tbl-wrap {
    display: none;
  }
  .rc-cards {
    display: block;
  }
}
@media (max-width: 768px) {
  .rc-form,
  .rc-sheet {
    grid-template-columns: 1fr;
  }
  .rc .card-head .right {
    width: 100%;
    flex-wrap: wrap;
  }
}
.rc-codesel {
  min-width: 0;
  width: 118px;
}
.rc-codesel .sel-l {
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc .tbl td:nth-child(8),
.rc .tbl td:nth-child(9) {
  white-space: nowrap;
}
.rc .tbl td:nth-child(3) .tiny {
  width: 100px;
}
.rc .tbl th,
.rc .tbl td {
  padding: 9px 5px;
  font-size: 12.5px;
}
.rc .tbl th {
  letter-spacing: 0;
}
.rc-codesel {
  width: 100px;
}
.rc .tbl .rc-codesel.empty {
  width: 132px;
}
.rc .tbl .rc-codesel.empty .sel-l {
  max-width: 100px;
}
.rc-src .btn {
  padding: 3px 3px;
}
.rc .tbl td:nth-child(7) {
  white-space: normal;
}
@media (max-width: 768px) {
  .rc .card-head .right {
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 2px;
  }
  .rc .card-head .right::-webkit-scrollbar {
    display: none;
  }
  .rc .card-head .right > * {
    flex: none;
  }
  .rc-filter {
    width: 150px;
  }
  .rc-inv .tbl-wrap {
    display: block;
    padding: 12px;
  }
  .rc-inv .tbl td {
    white-space: normal;
  }
  .rc-inv .tbl td:nth-child(1) .tiny {
    width: auto;
  }
  .rc-mrow {
    min-height: 64px;
  }
  .rc-seg button {
    min-height: 44px;
  }
  .rc-src .btn {
    min-width: 44px;
    min-height: 44px;
  }
  .rc-chk input {
    width: 24px;
    height: 24px;
  }
}
@media (pointer: coarse) {
  .rc-row .lnk,
  .rc .lnk {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
