/* Trang Doanh thu theo ca live — tab "CTV & lịch ca", hộp chọn CTV khi gán ca, ngăn chi tiết CTV. */

/* ---- Thẻ CTV ---- */
.ls-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ls-rcard { text-align: left; background: #fff; border: 1.5px solid #eef0f3; border-radius: 16px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(17,24,39,.04); color: inherit; transition: border-color .15s, transform .15s; }
.ls-rcard:hover { border-color: #fed7aa; transform: translateY(-1px); }
.ls-rcard.is-off { opacity: .6; background: #fafafa; }
.ls-rcard-top { display: flex; align-items: center; gap: 10px; }
.ls-pct { text-align: center; font-size: 1.1rem; font-weight: 800; color: #9a3412; line-height: 1.1; }
.ls-pct small { display: block; font-size: .62rem; font-weight: 600; color: #9ca3af; }
.ls-slots { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 8px; }
.ls-slot-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; color: #1d4ed8; background: #eff6ff; border-radius: 8px; padding: 3px 8px; }
.ls-slot-tag.is-empty { color: #6b7280; background: #f3f4f6; }
.ls-rcard-kpi { display: flex; gap: 10px; font-size: .74rem; color: #4b5563; border-top: 1px dashed #eef0f3; padding-top: 8px; }
.ls-rcard-kpi .is-dark { font-weight: 800; color: #111827; margin-left: auto; }
.ls-rcard-kpi.is-muted { color: #9ca3af; }

/* ---- Form CTV ---- */
.ls-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.ls-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #e5e7eb; color: #fff; font-size: .7rem; display: grid; place-items: center; padding: 0; }
.ls-color.is-active { box-shadow: 0 0 0 2px #111827; }
.ls-sched-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; }
.ls-sched-head h6 { margin: 0; font-weight: 800; }
.ls-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #f9fafb; border: 1px solid #eef0f3; border-radius: 12px; padding: 8px 10px; margin-bottom: 6px; }
.ls-days { display: flex; gap: 3px; }
.ls-day { width: 34px; height: 30px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; font-size: .72rem; font-weight: 700; color: #6b7280; }
.ls-day.is-on { background: #ea580c; border-color: #ea580c; color: #fff; }
.ls-slot-time { display: flex; align-items: center; gap: 4px; }
.ls-slot-time .form-control { width: 104px; }
.ls-slot .form-select { width: auto; }
.ls-slot-hint { flex-basis: 100%; font-size: .7rem; color: #92400e; }
.ls-slot-empty { font-size: .8rem; color: #6b7280; background: #f9fafb; border: 1px dashed #e5e7eb; border-radius: 12px; padding: 12px; }

/* ---- Chọn CTV khi gán ca ---- */
.ls-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; }
.ls-pick:empty { display: none; }
.ls-pick-item { display: flex; align-items: center; gap: 8px; text-align: left; border: 1.5px solid #e5e7eb; background: #fff; border-radius: 12px; padding: 6px 8px; }
.ls-pick-item span { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.ls-pick-item b { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-pick-item small { font-size: .66rem; color: #6b7280; }
.ls-pick-item em { font-style: normal; font-size: .68rem; font-weight: 800; color: #9a3412; }
.ls-pick-item.is-active { border-color: #ea580c; background: #fff7ed; }

/* ---- Ngăn chi tiết CTV ---- */
.ls-offcanvas { width: min(440px, 100vw) !important; }
.ls-dhead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ls-dhead b { display: block; font-size: 1.1rem; }
.ls-dhead span { font-size: .8rem; color: #6b7280; }
.ls-dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ls-dstat { background: #f9fafb; border-radius: 12px; padding: 8px 10px; }
.ls-dstat small { display: block; font-size: .7rem; color: #6b7280; }
.ls-dstat b { font-size: .95rem; font-variant-numeric: tabular-nums; }
.ls-dstat b small { display: inline; font-weight: 500; }
.ls-dstat b.is-green { color: #047857; }
.ls-dstat:first-child { background: linear-gradient(135deg, #111827, #3b1d10); }
.ls-dstat:first-child small, .ls-dstat:first-child b { color: #fff; }
.ls-dsub { font-weight: 800; margin: 16px 0 6px; }
.ls-drow { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; padding: 7px 0; border-bottom: 1px solid #f3f4f6; }
.ls-drow-num { white-space: nowrap; color: #4b5563; }
.ls-drow-num b { color: #047857; }

@media (max-width: 640px) {
    .ls-roster { grid-template-columns: 1fr; }
    .ls-slot-time .form-control { width: 92px; }
}

/* ---- Hướng dẫn + chức năng cuối trang ---- */
.ls-guide { margin-top: 24px; background: #fff; border: 1px solid #eef0f3; border-radius: 20px; padding: 22px; box-shadow: 0 1px 2px rgba(17,24,39,.04); }
.ls-guide-head { text-align: center; max-width: 640px; margin: 0 auto 18px; }
.ls-guide-badge { display: inline-flex; gap: 6px; align-items: center; font-size: .72rem; font-weight: 800; color: #9a3412; background: #ffedd5; border-radius: 999px; padding: 3px 10px; text-transform: uppercase; letter-spacing: .04em; }
.ls-guide-head h2 { font-size: 1.25rem; font-weight: 800; margin: 10px 0 4px; }
.ls-guide-head p { color: #6b7280; font-size: .86rem; margin: 0; }
.ls-steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.ls-steps li { display: flex; gap: 10px; background: #fff7ed; border-radius: 14px; padding: 14px; }
.ls-steps li > span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #ea580c; color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.ls-steps li > div > b { display: block; margin-bottom: 4px; }
.ls-steps p { font-size: .8rem; color: #4b5563; margin: 0; }
.ls-steps a { color: #c2410c; font-weight: 700; }
.ls-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.ls-features > div { border: 1px solid #eef0f3; border-radius: 14px; padding: 12px 14px; }
.ls-features .bi { font-size: 1.2rem; color: #ea580c; }
.ls-features b { display: block; margin: 4px 0 2px; font-size: .9rem; }
.ls-features p { font-size: .78rem; color: #6b7280; margin: 0; }
.ls-faq details { border-top: 1px solid #f3f4f6; padding: 10px 2px; }
.ls-faq summary { font-weight: 700; font-size: .88rem; cursor: pointer; }
.ls-faq p { font-size: .82rem; color: #4b5563; margin: 6px 0 0; }
@media (max-width: 1199px) { .ls-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) { .ls-steps { grid-template-columns: 1fr 1fr; } .ls-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .ls-steps, .ls-features { grid-template-columns: 1fr; } .ls-guide { padding: 16px; } }

/* ---- Mốc giờ suy từ đơn + khối Đơn huỷ & quyết toán ---- */
.ls-est { color: #1d4ed8; font-weight: 800; border-bottom: 1px dashed #93c5fd; cursor: help; }
.ls-tmeta { font-size: .72rem; color: #6b7280; margin-top: 2px; }
.ls-tmeta b { color: #374151; }
.ls-tmeta .bi { color: #ea580c; margin-right: 2px; }
.ls-quality-panel { margin-bottom: 18px; }
.ls-q-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ls-q { background: #f9fafb; border-radius: 14px; padding: 12px; min-width: 0; }
.ls-q small { display: block; font-size: .72rem; color: #6b7280; font-weight: 600; }
.ls-q b { display: block; font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ls-q b.is-ok { color: #15803d; } .ls-q b.is-warn { color: #b45309; } .ls-q b.is-bad { color: #b91c1c; }
.ls-q span { display: block; font-size: .72rem; color: #6b7280; }
.ls-q-bar { height: 6px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin: 4px 0; }
.ls-q-bar i { display: block; height: 100%; background: #059669; border-radius: 999px; }
.ls-q-table { width: 100%; margin-top: 12px; font-size: .8rem; border-collapse: collapse; }
.ls-q-table th { font-size: .68rem; color: #6b7280; font-weight: 700; padding: 4px 6px; text-align: right; }
.ls-q-table td { padding: 6px; border-top: 1px solid #f3f4f6; text-align: right; font-variant-numeric: tabular-nums; }
.ls-q-table th:first-child, .ls-q-table td:first-child { text-align: left; }
.ls-q-table td:first-child .ls-ava { width: 20px; height: 20px; font-size: .6rem; vertical-align: middle; }
.ls-rate { font-weight: 800; color: #15803d; } .ls-rate.is-warn { color: #b45309; } .ls-rate.is-bad { color: #b91c1c; }
@media (max-width: 991px) { .ls-q-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Link cho CTV tự xem số (trong hộp sửa CTV) ---- */
.ls-share { margin-top: 18px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; padding: 12px 14px; }
.ls-share:empty { display: none; }
.ls-share-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 8px; }
.ls-share-head h6 { margin: 0; font-weight: 800; color: #9a3412; }
.ls-share-head span { font-size: .74rem; color: #6b7280; }
.ls-share-link { display: flex; gap: 6px; }
.ls-share-link .form-control { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; background: #fff; }
.ls-share-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ls-share-actions .btn-link { text-decoration: none; padding-left: 0; }
.ls-slot-tag.is-share { color: #9a3412; background: #ffedd5; }
