/* Board náboru v administrácii */
.board-hint { margin: -4px 0 14px; font-size: 14px; }
.board-search { padding: 8px 12px; border: 1.5px solid #e3ddd3; border-radius: 10px; font: inherit; min-width: 240px; }
.board { display: grid; grid-template-columns: repeat(5, minmax(205px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.board-col { background: #f7f4ef; border-radius: 14px; padding: 10px; min-height: 120px; border-top: 4px solid #c9c2b8; }
.board-lead { border-top-color: #8a8580; }
.board-missing { border-top-color: #e0a100; }
.board-ready { border-top-color: #f36805; }
.board-bistro { border-top-color: #3a7bd5; }
.board-active { border-top-color: #1a8682; }
.board-col-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15px; color: #242e30; padding: 2px 4px; }
.board-count { background: #fff; border-radius: 999px; padding: 1px 10px; font-size: 13px; }
.board-col-sub { font-size: 12px; color: #7a746e; margin: 2px 4px 10px; }
.board-empty { font-size: 13px; padding: 4px; }
.bc { background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(36, 46, 48, 0.08); font-size: 14px; }
.bc-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.bc-age { font-size: 12px; color: #9a948d; white-space: nowrap; }
.bc-meta { color: #5c5752; font-size: 13px; margin-top: 2px; }
.bc-meta a { color: inherit; }
.bc-msg { font-size: 13px; font-style: italic; color: #5c5752; margin-top: 6px; }
.bc-missing { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: #a15c00; }
.bc-missing li { margin: 1px 0; }
.bc-rem { font-size: 12px; color: #1a8682; margin-top: 6px; }
.bc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bc-actions .btn-sm { padding: 5px 10px; font-size: 13px; }

/* Portál: návody k chýbajúcim veciam */
.docs-help { margin: 12px 0 4px; background: #fff8f1; border: 1.5px solid #f9d3b0; border-radius: 14px; padding: 12px 14px; }
.docs-help-title { font-weight: 800; margin: 0 0 8px; color: #242e30; }
.docs-help-item { border-top: 1px solid #f3e2d2; padding: 8px 0; }
.docs-help-item summary { cursor: pointer; font-weight: 600; color: #242e30; }
.docs-help-item p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: #4a4542; }
.docs-help-more { margin: 8px 0 0; font-size: 14px; }
.docs-help-more a { color: #d95c00; font-weight: 600; }

/* Admin: všetko sa zmestí na jednu obrazovku, bez posúvania do strán */
.admin-container { max-width: 1400px; }
.board { grid-template-columns: repeat(5, minmax(0, 1fr)); overflow-x: visible; }
.bc { overflow-wrap: anywhere; }

/* Tabuľka kuriérov: kompaktná, tlačidlá sa zalomia do 2 riadkov */
#couriers-table th, #couriers-table td { padding-left: 8px; padding-right: 8px; }
#couriers-table td { vertical-align: middle; }
#couriers-table td:first-child { min-width: 150px; }
#couriers-table .ct-phone { font-size: 13px; white-space: nowrap; }
#couriers-table td:first-child .mono { font-size: 10.5px; white-space: nowrap; }
#couriers-table .badge { white-space: nowrap; padding: 3px 9px; }
#couriers-table td:nth-child(7) { white-space: nowrap; }
#couriers-table .cell-actions { white-space: normal; display: flex; flex-wrap: wrap; gap: 4px; max-width: 230px; }
#couriers-table .cell-actions .btn { margin: 0; padding: 4px 9px; font-size: 12.5px; }

@media (max-width: 1000px) {
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .board { grid-template-columns: 1fr; }
}

.portal-pw-box { flex-basis: 100%; margin-top: 10px; padding: 12px 14px; border: 1.5px solid #f9d3b0; background: #fff8f1; border-radius: 12px; display: grid; gap: 6px; }

/* Klikateľné riadky + štádium kuriéra v detaile */
tr.row-click { cursor: pointer; }
tr.row-click:hover td { background: #fff6ec; }
.stage-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.stage-missing { background: #fff4d6; color: #8a5a00; }
.stage-ready { background: #f36805; color: #fff; }
.stage-bistro { background: #e6efff; color: #1d4fa8; }
.stage-active { background: #e3f5f2; color: #136b66; }
.stage-rejected { background: #fdecec; color: #a31f1f; }
#detail-stage { margin: 4px 0 18px; }
.stage-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; flex-wrap: wrap; }
.stage-steps li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1.5px solid #ece5da; font-size: 13px; font-weight: 700; color: #8a8580; background: #fff; }
.stage-steps li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f1ece4; color: #242e30; font-size: 12px; }
.stage-steps li.done { color: #136b66; border-color: #bfe3dd; }
.stage-steps li.done span { background: #1a8682; color: #fff; }
.stage-steps li.current { color: #242e30; border-color: #f36805; }
.stage-steps li.current span { background: #f36805; color: #fff; }
.stage-alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; text-align: left; }
.stage-alert ul { margin: 6px 0 8px 18px; padding: 0; }
.stage-alert.orange { background: #fff6ec; border: 1.5px solid #f9d3b0; color: #6b3a00; }
.stage-alert.orange.strong { background: #f36805; border-color: #f36805; color: #fff; }
.stage-alert.blue { background: #eef4ff; border: 1.5px solid #c9dafc; color: #1d3f80; }
.stage-alert.green { background: #e9f7f4; border: 1.5px solid #bfe3dd; color: #0f5a55; }
.stage-alert.red { background: #fdeeee; border: 1.5px solid #f3c3c3; color: #8a1c1c; }
.stage-alert-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Detail kuriéra: širšie okno a doklady s náhľadom */
#detail-modal .modal { max-width: 1120px; width: min(94vw, 1120px); }
#detail-modal .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { #detail-modal .detail-grid { grid-template-columns: 1fr 1fr; } }
.detail-docs { margin: 0 0 20px; text-align: left; }
.docs-title { margin: 6px 0 10px; font-size: 18px; }
.doc-group { border-top: 1px solid #ece5da; padding: 14px 0; }
.doc-group-title { font-weight: 800; font-size: 15px; color: #242e30; margin-bottom: 10px; }
.doc-row { display: grid; gap: 14px; }
.doc-row.cols-2 { grid-template-columns: 1fr 1fr; }
.doc-row.cols-1 { grid-template-columns: minmax(0, 560px); }
@media (max-width: 720px) { .doc-row.cols-2 { grid-template-columns: 1fr; } }
.doc-tile { border: 1.5px solid #ece5da; border-radius: 14px; padding: 10px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.doc-tile.ok { border-color: #bfe3dd; }
.doc-tile.wait { border-color: #f9d3b0; }
.doc-tile.missing { background: #faf8f5; border-style: dashed; }
.doc-tile-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.doc-st { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st-ok { background: #e3f5f2; color: #136b66; }
.st-wait { background: #fff1e0; color: #a14d00; }
.st-miss { background: #f1ece4; color: #7a746e; }
.doc-prev { height: 280px; border-radius: 10px; overflow: hidden; background: #f4f1ec; display: grid; place-items: center; }
.doc-prev-wide { height: 420px; }
.doc-prev a { display: block; width: 100%; height: 100%; }
.doc-prev img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
.doc-prev iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.doc-prev.empty { height: 120px; color: #9a948d; font-size: 14px; }
.doc-prev-file { font-size: 14px; color: #4a4542; padding: 10px; }
.doc-meta { font-size: 12px; color: #8a8580; word-break: break-all; }
.doc-btns { display: flex; flex-wrap: wrap; gap: 6px; }

/* Zväčšená fotka dokladu */
.zoom-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(20, 24, 25, 0.92); display: flex; flex-direction: column; }
.zoom-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: #fff; font-weight: 700; flex-wrap: wrap; }
.zoom-bar .zoom-hint { font-weight: 400; font-size: 13px; color: #c9c3ba; margin-right: auto; }
.zoom-bar .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); background: transparent; }
.zoom-stage { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 10px; }
.zoom-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; image-rendering: auto; }
.zoom-stage.full { align-items: flex-start; justify-content: flex-start; }
.zoom-stage.full img { max-width: none; max-height: none; cursor: zoom-out; }

.docs-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.doc-card-info { border-style: dashed; }

.sig-prev { background: #fff; border: 1px dashed #ddd5c9; }
.sig-prev img { object-fit: contain; padding: 10px; }

.doc-prev { position: relative; }
.rot-note { position: absolute; left: 8px; bottom: 8px; background: rgba(36,46,48,0.8); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 999px; }
.sig-compare { height: 360px; }
.sig-prev { height: 360px; }
.sig-compare.has-crop { background: #fff; }
.sig-compare.has-crop img { object-fit: contain; cursor: zoom-in; }
.doc-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.doc-prev { height: 320px; }
.doc-prev.empty { height: 120px; }

.board { grid-template-columns: repeat(6, minmax(200px, 1fr)); }
.board-trash { border-top-color: #b8b0a6; background: #f2efea; }
.board-trash .bc { opacity: 0.92; }
.bc-trash { margin-top: 8px; display: grid; gap: 6px; }
.bc-trash select, .stage-move select { padding: 6px 8px; border: 1.5px solid #ddd5c9; border-radius: 10px; font: inherit; font-size: 13px; background: #fff; }
.stage-move { display: inline-flex; gap: 6px; align-items: center; }
.bc-trash select { width: 100%; max-width: 100%; min-width: 0; }
.bc-trash .stage-badge { justify-self: start; }

.bc-rem.none { color: #a14d00; }

.board-nointerest { border-top-color: #9aa3ad; }
.board { grid-template-columns: repeat(7, minmax(205px, 1fr)); }
.bc-keep { margin-top: 8px; padding: 7px 9px; border-radius: 8px; background: #f1f3f6; font-size: 12.5px; color: #4b5563; line-height: 1.45; }
.bc-ni { margin-top: 8px; padding: 9px; border: 1px dashed #c9d1da; border-radius: 10px; background: #fafbfc; }
.bc-ni-t { font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.bc-ni-b { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.bc-actions .bc-del { color: #b42318; }
