/* Έλεγχος ταμείων — πάνω από το base.css (χρώματα και μπάρα του patron) */
.page { padding: 20px 0 40px; display: grid; gap: 16px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; padding: 9px 15px; font-weight: 600; font-size: 13.5px; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-d); }
.btn:disabled { opacity: .55; cursor: default; }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Μπάρα ημερομηνίας */
.bar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 14px 20px; }
.datepick { display: flex; align-items: end; gap: 8px; }
.datepick label { display: grid; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.datepick input { font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); padding: 7px 10px; border: 1px solid #cfd8e3; border-radius: 10px; background: #fbfcfe; }
.datepick b { align-self: center; margin-left: 8px; font-size: 16px; font-weight: 700; }
.ibtn { width: 36px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-size: 20px; line-height: 1; color: var(--muted); }
.ibtn:hover { border-color: var(--blue); color: var(--blue); }
.daysum { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.stat { background: var(--soft); border-radius: 10px; padding: 6px 12px; font-size: 13px; color: var(--muted); }
.stat b { color: var(--ink); font-size: 15px; margin-right: 3px; }
.stat.ok b { color: var(--ok); } .stat.err b { color: var(--bad); } .stat.warn b { color: var(--warn); }
.stamp { flex-basis: 100%; font-size: 12px; color: var(--muted); margin-top: -8px; }
.stamp:empty { display: none; }

/* Διάταξη */
.board { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
.detail { display: grid; gap: 16px; min-width: 0; }
.side { padding: 16px 12px; position: sticky; top: 84px; }
.side h2 { margin: 0 8px 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cashiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cashiers button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: none; border-radius: 10px; padding: 9px 10px; color: var(--ink); }
.cashiers button:hover { background: var(--soft); }
.cashiers button.on { background: #e9f3fc; box-shadow: inset 3px 0 0 var(--blue); }
.cn { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.cn small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }

/* Ετικέτες */
.bdg { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.bdg.ok { background: var(--ok-bg); color: var(--ok); }
.bdg.err { background: var(--bad-bg); color: var(--bad); }
.bdg.warn { background: var(--warn-bg); color: var(--warn); }
.bdg.na { background: #eef1f5; color: var(--muted); font-weight: 600; }
.kind { display: inline-block; border-radius: 6px; padding: 2px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; background: #eef1f5; color: #4a5568; }
.kind.card { background: #e9f3fc; color: #0f5c9f; }
.kind.cash { background: #e5f5ec; color: #1b6e3f; }
.kind.dep { background: #f1ebfb; color: #5b3aa6; }
.kind.iris { background: #fdeee0; color: #a85a00; }

.card-head { flex-wrap: wrap; row-gap: 8px; }
.filters { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.chip b { color: var(--ink); margin-left: 2px; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.on b { color: #fff; }
.chip:disabled { opacity: .45; cursor: default; }

/* Πίνακες */
table { border-collapse: collapse; width: 100%; }
.totals { margin-bottom: 18px; max-width: 860px; }
.totals th, .totals td { padding: 7px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.totals th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.totals th.num { text-align: right; }
.totals td.bad { color: var(--bad); font-weight: 700; }
.tablewrap { margin: 0 -24px -22px; overflow-x: auto; border-top: 1px solid var(--line); }
.rows th { position: sticky; top: 0; background: #f8fafc; text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rows th.num { text-align: right; }
.rows td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 13.5px; }
.rows th:first-child, .rows td:first-child { padding-left: 24px; }
.rows tr:last-child td { border-bottom: 0; }
.rows tr.r-err td { background: #fff8f8; }
.rows tr.r-warn td { background: #fffbf2; }
.rows tr.r-err td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.rows tr.r-warn td:first-child { box-shadow: inset 3px 0 0 #e0a030; }
.rows tr.done td { background: #fafbfc; color: var(--muted); }
.rows tr.done td:first-child { box-shadow: inset 3px 0 0 #b8c2cf; }
.rows td:nth-child(3) { min-width: 250px; }
.rem { color: var(--muted); max-width: 220px; }
.chk { min-width: 260px; max-width: 420px; }
.chk .msg { display: block; margin-top: 4px; font-weight: 600; line-height: 1.35; }
.r-na .chk .msg, .r-ok .chk .msg { font-weight: 400; color: var(--muted); }
.chk .ref { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.note { min-width: 200px; }
.tick { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.ntext { display: block; width: 100%; margin-top: 5px; font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid #d5dce6; border-radius: 8px; background: #fff; }
.ntext:focus { outline: 3px solid rgba(21, 114, 192, .15); border-color: var(--blue); }

.empty { text-align: center; padding: 44px 24px; }
.empty h2 { margin: 0 0 6px; font-size: 19px; }
.empty .chips { justify-content: center; }

@media (max-width: 1100px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .cashiers { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .daysum { margin-left: 0; }
  .tablewrap { margin: 0 -16px -18px; }
  .rows th:first-child, .rows td:first-child { padding-left: 16px; }
}

/* Αρχεία ημέρας */
.files.drag { outline: 3px dashed var(--blue); outline-offset: -6px; }
.files .upl { margin-left: auto; cursor: pointer; }
.filelist { display: flex; gap: 8px; flex-wrap: wrap; }
.fchip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 12px; font-size: 13px; background: #fff; }
.fchip b { font-weight: 600; }
.fchip small { color: var(--muted); }
.fchip.miss { border-style: dashed; color: var(--muted); padding-right: 12px; background: #fbfcfe; }
.fchip button { border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; width: 24px; height: 24px; border-radius: 6px; }
.fchip button:hover { background: var(--bad-bg); color: var(--bad); }
.filemsg { margin-top: 10px; font-size: 13px; display: grid; gap: 3px; }
.filemsg:empty { display: none; }
.filemsg .bad { color: var(--bad); font-weight: 600; }
.filemsg .good { color: var(--ok); }
.extras { margin-top: 14px; }
.extras summary { cursor: pointer; font-size: 13.5px; font-weight: 600; padding: 4px 0 10px; }

.extras .tablewrap { margin-bottom: -22px; }
.rows tr.r-info td { color: var(--muted); }
.extras h3 { margin: 6px 0 10px; font-size: 13.5px; font-weight: 700; }
#extraBad .tablewrap { margin-bottom: 0; border-bottom: 1px solid var(--line); }
.extras summary { color: var(--muted); }
details.extras:not([open]) { margin-bottom: -8px; }
