/* M10 Phát triển kinh doanh (design frames TongQuanPTKD, KhachTiemNang, CoHoi, HoSoCoHoi, DoiTac, GioiThieu; 2026-10-31).
   Loaded after modnav.css. Only the view #view-bizdev uses these .m10-* rules, and bd.js draws it only while the module's
   new screens are on (CDLAF_FEATURES.ui('m10')), so nothing here changes another page. */

.m10 { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.m10-body { display: flex; flex-direction: column; gap: 14px; }
.m10-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m10-muted { color: var(--muted); }
.m10-note { margin: 0; font-size: 12px; color: var(--muted); }
.m10-sub { display: block; font-size: 11.5px; color: var(--muted); }
.m10-grow { flex: 1 1 40px; }
.m10-redf { color: var(--accent); }
.m10 a:not(.btn):not(.m10-tile):not(.m10-cardlink) { color: var(--accent); }

/* the bar above a list */
.m10-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.m10-search { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; padding: 0 12px; min-height: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.m10-search input { flex: 1; min-width: 0; font: inherit; font-size: 13px; border: 0; outline: none; background: transparent; color: var(--ink); }
.m10-search:focus-within { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; }
.m10-pick { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; }
.m10-pick select, .m10 select, .m10 input, .m10 textarea { font: inherit; font-size: 13px; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-sizing: border-box; }
.m10-pick select { min-height: 44px; padding: 0 10px; }
.m10 .m10-btn { width: auto; min-height: 44px; padding: 0 16px; font-size: 13px; text-decoration: none; justify-content: center; }
.m10 .m10-line { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.m10-seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.m10-seg button { font: inherit; font-size: 13px; min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.m10-seg button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.m10-toggle { font: inherit; font-size: 13px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.m10-toggle[aria-pressed="true"] { border-color: #2f5a96; background: color-mix(in srgb, #2f5a96 10%, var(--surface)); color: #24406b; }

/* chips of stages and statuses */
.m10-chip { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--sunken); color: var(--ink); }
.m10-blue { background: color-mix(in srgb, #2f5a96 10%, var(--surface)); color: #2f5a96; }
.m10-navy { background: color-mix(in srgb, #1f416f 14%, var(--surface)); color: #1f416f; }
.m10-amber { background: var(--warn-soft); color: var(--warn); }
.m10-green { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); color: var(--ok); }
.m10-grey { background: var(--sunken); color: var(--muted); }
.m10-soon { font-size: 11px; font-weight: 400; padding: 1px 6px; border-radius: 999px; background: var(--sunken); color: var(--muted); }

/* tables (gridtable.js) and the record beside them */
.m10-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.m10-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.m10-wide { min-width: 1000px; }
.m10-table th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; background: var(--sunken); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.m10-table td { padding: 9px 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); vertical-align: top; }
.m10-table .num { text-align: right; }
.m10-table .nowrap { white-space: nowrap; }
.m10-table tr.m10-sel td { background: var(--accent-soft); }
.m10-table select { min-height: 34px; padding: 0 6px; }
.m10-name { font-weight: 700; color: var(--accent); }
.m10-split { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.m10-main { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.m10-aside { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; position: sticky; top: 12px; }
.m10-aside:empty { display: none; }
.m10-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; }
.m10-rec-head { display: flex; flex-direction: column; gap: 2px; }
.m10-rec-head h2 { margin: 0; font-size: 17px; line-height: 1.35; }
.m10-rec-head > span:first-child { font-size: 12px; }
.m10-kv { display: grid; grid-template-columns: 130px 1fr; gap: 4px 10px; }
.m10-kv2 { grid-template-columns: 160px 1fr; gap: 6px 12px; }
.m10-k { color: var(--muted); }
.m10-sec { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.m10-cons { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.m10-cons > span:first-child { flex: 1 1 150px; }
.m10-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.m10-acts .btn { width: auto; min-height: 40px; }
.m10-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.m10-log summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.m10-log ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: 12.5px; }

/* forms */
.m10-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 12px; align-items: start; }
.m10-form h2 { margin: 0; font-size: 16px; }
.m10-form .span-all { grid-column: 1 / -1; }
.m10-form .span-2 { grid-column: span 2; }
.m10-form .field { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.m10-form .field > span:first-child { font-weight: 700; }
.m10-form input, .m10-form select, .m10-form textarea { width: 100%; min-height: 40px; padding: 8px 10px; }
.m10-form textarea { resize: vertical; }
.m10-form input:disabled, .m10-form select:disabled, .m10-form textarea:disabled { background: var(--sunken); color: var(--muted); }
.m10-radios { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.m10-radios label, .m10-check { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; font-weight: 400; }
.m10-check input, .m10-radios input { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
.m10-consent, .m10-contacts, .m10-reasons { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; gap: 8px; }
.m10-consent legend, .m10-contacts legend, .m10-reasons legend { font-size: 12px; font-weight: 700; padding: 0 4px; }
.m10-reasons { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.m10-reasons label { display: flex; align-items: center; gap: 8px; min-height: 30px; font-size: 13px; }
.m10-ctable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.m10-ctable th { text-align: left; font-size: 11.5px; color: var(--muted); padding: 4px 6px; }
.m10-ctable td { padding: 3px 6px; }
.m10-ctable input, .m10-ctable select { min-height: 34px; padding: 4px 6px; width: 100%; }
.m10-crow { display: grid; grid-template-columns: 80px repeat(4, minmax(0, 1fr)); gap: 6px; }
.m10-crow input, .m10-crow select { min-height: 36px; padding: 4px 8px; }
.m10-narrow { max-width: 200px; }
.m10-stage .field { min-width: 200px; }
.m10-formwrap { display: flex; flex-direction: column; gap: 10px; }
.m10-back { align-self: flex-start; display: inline-flex; align-items: center; min-height: 36px; font-size: 13px; }

/* the services of M03 as tags */
.m10-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; min-height: 40px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.m10-tags input { flex: 1 1 200px; min-height: 30px; border: 0; padding: 4px 6px; outline: none; }
.m10-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--sunken); font-size: 12.5px; font-weight: 400; }
.m10-tag button { font: inherit; border: 0; background: none; cursor: pointer; min-width: 24px; min-height: 24px; color: var(--muted); }
.m10-tag-ro { padding-right: 10px; }
.m10-found { list-style: none; margin: 4px 0 0; padding: 4px; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.m10-found button { display: block; width: 100%; text-align: left; font: inherit; font-size: 13px; font-weight: 400; padding: 8px 10px; min-height: 36px; border: 0; background: none; cursor: pointer; border-radius: 4px; }
.m10-found button:hover, .m10-found button:focus-visible { background: var(--accent-soft); }

/* duplicates (design KhoiTao): red when refused, amber to confirm */
.m10-dupe { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 6px; font-size: 13px; font-weight: 400; }
.m10-dupe ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.m10-stop { border: 1px solid var(--accent); background: var(--accent-soft); }
.m10-stop > b { color: var(--accent); }
.m10-ask { border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); background: var(--warn-soft); }
.m10-ask > b { color: var(--warn); }
.m10-dupe .btn { align-self: flex-start; }

/* boxes */
.m10-box { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 6px; font-size: 13px; font-weight: 400; }
.m10-wait { border: 1px dashed color-mix(in srgb, var(--warn) 55%, var(--line)); background: var(--warn-soft); }
.m10-info { background: color-mix(in srgb, #2f5a96 8%, var(--surface)); color: #24406b; }

/* M10.1-01 Tổng quan */
.m10-todo { display: flex; flex-wrap: wrap; gap: 12px; }
.m10-tile { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 13px; }
.m10-big { font-size: 26px; }
.m10-red { color: var(--accent); }
.m10-amberf { color: var(--warn); }
.m10-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.m10-head h2 { margin: 0; font-size: 16px; }
.m10-cap { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.m10-fun { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.m10-fun-t { flex: 0 0 230px; font-size: 13px; }
.m10-fun-bar { flex: 1 1 240px; min-width: 0; height: 26px; background: var(--sunken); border-radius: 4px; }
.m10-fun-bar i { display: block; height: 26px; border-radius: 4px; background: #6f8fc2; min-width: 2px; }
.m10-fun-bar .m10-st-new { background: #9fb4d6; }
.m10-fun-bar .m10-st-qualified { background: #2f5a96; }
.m10-fun-bar .m10-st-on_hold { background: #b8afb0; }
.m10-fun-bar .m10-st-converted { background: #5f9a6c; }
.m10-fun-n { flex: 0 0 260px; font-size: 13px; }
.m10-after-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.m10-after { display: flex; flex-wrap: wrap; gap: 8px; }
.m10-after-i { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--sunken); font-size: 12.5px; }
.m10-after-i b { font-size: 20px; color: #2f5a96; }
.m10-rate { margin: 0; font-size: 13px; }

/* M10.1-03 Cơ hội: the cards by stage, the record */
.m10-board { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.m10-col { flex: 0 0 210px; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 8px; background: var(--sunken); border: 1px solid var(--line); }
.m10-col-h { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; }
.m10-col-h b { flex: 1; }
.m10-cardlink { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 12.5px; }
.m10-cardlink b { font-size: 12px; }
.m10-late { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.m10-cardlink[draggable="true"] { cursor: grab; }
.m10-col.m10-over { outline: 2px dashed var(--accent); outline-offset: -2px; }
.m10-rhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.m10-rhead h1 { margin: 0; font-size: 20px; line-height: 1.3; flex: 1 1 360px; }
.m10-convert { border: 2px solid var(--accent); }
.m10-convert ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.m10-convert .btn { align-self: flex-start; }
.m10-ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.m10-linkbox summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.m10-linkbox { display: grid; gap: 8px; }
.m10-pickbox input { min-height: 40px; padding: 0 10px; }

/* phones: the rows as labelled cards (gridtable), the record under the list */
.m10-fstep { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; width: 100%; padding: 6px 4px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.m10-fstep:hover, .m10-fstep:focus-visible { background: var(--sunken); }
/* the reports (design v63): figures, bars, tabs, the side panel; the form "Ghi hoạt động" */
.m10-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.m10-stat { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; color: var(--muted); }
.m10-stat b { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.m10-stat b.m10-redf { color: var(--accent); }
.m10-hbar { display: inline-flex; vertical-align: middle; width: 120px; max-width: 100%; height: 10px; background: var(--sunken); border-radius: 5px; overflow: hidden; }
.m10-hbar i { display: block; height: 10px; }
.m10-hb-red { background: var(--accent); } .m10-hb-blue { background: #6f8fc2; } .m10-hb-green { background: #5f9a6c; } .m10-hb-grey { background: #a59c9d; }
.m10-two-tone { background: transparent; }
.m10-hrow { display: grid; grid-template-columns: minmax(120px, 220px) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.m10-hrow .m10-hbar { width: 100%; }
.m10-tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; border-bottom: 1px solid var(--line); }
.m10-tabs button { font: inherit; font-size: 13px; min-height: 38px; padding: 0 2px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--ink); cursor: pointer; }
.m10-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent); font-weight: 700; }
.m10-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.m10-side { flex: 0 1 320px; min-width: 260px; }
.m10-side h3 { margin: 0; font-size: 15px; }
.m10-side .m10-kv { grid-template-columns: 1fr auto; }
.m10-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.m10-h2 { margin: 0; font-size: 16px; }
.m10-table tr.m10-sum td { background: var(--sunken); }
.m10-table tr.m10-on td { background: var(--accent-soft); }
.m10-actform { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--sunken); }
.m10-actform .m10-chip { margin: 0 4px 4px 0; }
/* M10.3 Truyền thông và Tiếp thị (design v63): the calendar, the review queue, the steps of a piece */
.m10-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m10-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--muted); }
.m10-step.m10-on { color: var(--ink); font-weight: 700; }
.m10-text { font-size: 13.5px; line-height: 1.55; }
.m10-text p { margin: 0 0 8px; }
.m10-qlist { flex: 0 1 300px; min-width: 240px; }
.m10-qitem { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.m10-qitem[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.m10-qlink { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); font-size: 13px; }
.m10-side > b { margin-top: 6px; }
.m10-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.m10-caldow { font-size: 12px; color: var(--muted); text-align: center; padding: 4px 0; }
.m10-calday { min-height: 92px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.m10-calday.m10-off { background: transparent; border-style: dashed; }
.m10-calday.m10-today { border-color: var(--accent); }
.m10-caln { font-size: 11.5px; color: var(--muted); }
.m10 a.m10-calitem { display: block; padding: 2px 5px; border-radius: 4px; font-size: 11.5px; line-height: 1.3; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; background: var(--sunken); border-left: 3px solid #a59c9d; }
.m10 a.m10-ci-amber { border-left-color: #c9962e; } .m10 a.m10-ci-blue { border-left-color: #6f8fc2; } .m10 a.m10-ci-green { border-left-color: #5f9a6c; } .m10 a.m10-ci-red { border-left-color: var(--accent); } .m10 a.m10-ci-event { border-left-color: #8a5fb0; }
.m10-callist { display: flex; flex-direction: column; gap: 8px; }
.m10-calrow { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.m10-calrow > div { display: flex; flex-direction: column; gap: 4px; }
.m10-stats.m10-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m10-stats.m10-mini .m10-stat b { font-size: 16px; }
@media (max-width: 760px) {
  .m10 .m10-btn { flex: 1 1 auto; }
  .m10-aside { position: static; }
  .m10-table, .m10-wide { min-width: 0; }
  .m10-table, .m10-table tbody, .m10-table tr, .m10-table td { display: block; width: auto; }
  .m10-table thead { display: none; }
  .m10-table tbody tr { border-bottom: 1px solid var(--line); padding: 8px 10px; }
  .m10-table td { border: 0; padding: 3px 0; }
  .m10-table td[data-label]:not([data-label=""])::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; }
  .m10-table td.num { text-align: left; }
  .m10-kv, .m10-kv2 { grid-template-columns: 1fr; }
  .m10-fun-t, .m10-fun-n { flex-basis: 100%; }
  .m10-form .span-2 { grid-column: 1 / -1; }
  .m10-crow { grid-template-columns: 1fr 1fr; }
  .m10-ctable thead { display: none; }
  .m10-ctable, .m10-ctable tbody, .m10-ctable tr, .m10-ctable td { display: block; }
  .m10-ctable tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .m10-cal { grid-template-columns: 1fr; }
  .m10-caldow, .m10-calday.m10-off { display: none; }
  .m10-calday { min-height: 0; }
  .m10-calday:not(:has(a)) { display: none; }
  .m10-qlist, .m10-side { flex-basis: 100%; min-width: 0; }
}
