/* Báo cáo Cửa hàng trưởng (trial-ui/store-reports.js) */
.store-filters { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.store-filters select, .store-filters input { width:auto; min-width:150px; }
.store-quick { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.store-resp .store-total { font-size:var(--text-heading, 22px); color:var(--brand-navy); font-variant-numeric:tabular-nums; }
.store-slots { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; margin:10px 0; }
.store-slot { display:grid; gap:2px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--surface-2); }
.store-slot b { font-size:17px; font-variant-numeric:tabular-nums; }
.store-slot.full { border-color:#bfe5d3; background:var(--green-50); }
.store-slot.part { border-color:#f1d9a6; background:var(--amber-50); }
.store-slot.zero { border-color:#f2c6c9; background:var(--red-50); }
.store-table td:last-child { white-space:nowrap; }
.store-dialog { width:min(760px, 96vw); }
.store-facts-box { border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin:10px 0 14px; background:var(--surface-2); }
.store-facts-box h3, .store-dialog h3 { font-size:14px; margin:10px 0 6px; }
.store-facts td small { display:block; color:var(--muted); }
.store-kv { margin:0 0 8px; }
.store-review { margin-top:14px; padding-top:10px; border-top:1px dashed var(--line); display:grid; gap:8px; }
.store-review .chips { display:flex; flex-wrap:wrap; gap:6px; }
.store-review .chip { display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
.store-remind { width:min(520px, 94vw); }
.store-remind-list { list-style:none; margin:8px 0 0; padding:0; display:grid; gap:8px; }
.store-remind-list li { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; }
.store-remind-list li.overdue { border-color:#f2c6c9; background:var(--red-50); }
.store-remind-list li span { display:grid; gap:2px; }
.store-remind-list small { color:var(--muted); }
@media (max-width:680px) {
  .store-slots { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .store-quick .btn { flex:1 1 45%; }
}

/* Nháp / nộp chính thức, tiền phải nộp, trả / đổi / hoàn, lịch sử nộp */
.store-kv dd small, .store-facts td small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.store-facts-box h3 { margin: 14px 0 6px; font-size: 14px; }
.store-versions { margin: 8px 0; font-size: 13px; }
.store-versions ol { margin: 6px 0 0 18px; display: grid; gap: 2px; }
.store-dialog .modal-foot { flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) {
  .store-dialog .modal-foot .btn { flex: 1 1 140px; min-height: 44px; }
  .store-kv { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 640px) {
  #view-store-reports .store-facts td, .store-dialog .store-facts td { white-space: normal !important; overflow-wrap: anywhere; }
}

/* Tệp đính kèm báo cáo */
.store-files { margin: 12px 0; }
.store-files h3 { margin: 0 0 6px; font-size: 14px; }
.store-file-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.store-file-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.store-file-list a { overflow-wrap: anywhere; font-weight: 600; }
.store-file-list small { grid-column: 1; color: var(--muted); }
.store-file-list button { grid-row: 1 / span 2; grid-column: 2; }
.store-file-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.store-file-add .btn { min-height: 44px; display: inline-flex; align-items: center; }

/* Báo cáo ngày (bản 2): 5 phần, thanh chuyển nhanh, checklist, sự cố theo loại */
.store-deadline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 10px 12px; margin: 6px 0 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2, #f8fafc); font-size: 13px; }
.store-steps { position: sticky; top: -1px; z-index: 3; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; background: var(--surface, #fff); scrollbar-width: none; }
.store-steps::-webkit-scrollbar { display: none; }
.store-steps a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; }
.store-steps .dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--line); color: var(--muted); }
.store-steps a.done .dot { background: #12805c; color: #fff; }
.store-steps a.need .dot { background: #c8212b; color: #fff; }
.store-sec { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 10px 0; display: grid; gap: 10px; scroll-margin-top: 56px; }
.store-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.store-sec-h h3 { margin: 0; font-size: 15px; }
.store-sec h4 { margin: 4px 0 0; font-size: 13px; }
.store-src { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.store-src::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2459a9; }
.store-src.input::before { background: #a86400; }
.store-big { font-size: 26px; font-weight: 700; }
.store-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.store-kpis > div { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.store-kpis small { display: block; color: var(--muted); font-size: 12px; }
.store-target .row { display: flex; justify-content: space-between; }
.store-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0; }
.store-bar i { display: block; height: 100%; background: #102a56; border-radius: 99px; }
.store-checks { display: grid; gap: 8px; }
.store-check { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.store-check small { display: block; color: var(--muted); font-size: 12px; }
.store-seg { display: inline-flex; flex: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.store-seg button { min-height: 40px; min-width: 64px; border: 0; background: var(--surface, #fff); color: var(--muted); font: 600 13px inherit; font-family: inherit; cursor: pointer; }
.store-seg button + button { border-left: 1px solid var(--line); }
.store-seg button[aria-pressed="true"][data-v="yes"] { background: #12805c; color: #fff; }
.store-seg button[aria-pressed="true"][data-v="no"] { background: #a86400; color: #fff; }
.store-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.store-pills button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface, #fff); color: var(--ink); font: 500 14px inherit; font-family: inherit; cursor: pointer; }
.store-pills button[aria-pressed="true"] { background: #102a56; border-color: #102a56; color: #fff; }
.store-plain { margin: 0; padding-left: 18px; font-size: 14px; }
.store-dialog .modal-foot { position: sticky; bottom: 0; background: var(--surface, #fff); }
.store-hint { flex: 1 1 100%; margin: 0; color: var(--muted); text-align: center; }
