/* Support insights (module 32): command center panels, metric builder, custom dashboards, supervision and wallboard. */

/* ---- section accents on the staff dashboard */
.db-sect.s-cc-volume { --a1: #3d97f0; --a2: #0b5fc4; }
.db-sect.s-cc-service { --a1: #f5b13b; --a2: #d07f00; }
.db-sect.s-cc-teams { --a1: #8a6be0; --a2: #4a2bb0; }
.db-sect.s-cc-customers { --a1: #25c08f; --a2: #04955d; }
.db-sect.s-cc-channels { --a1: #3cc3e3; --a2: #0c8ec6; }
.db-sect.s-cc-activity { --a1: #f07a4f; --a2: #d23a10; }

/* ---- shared */
.in-page { min-width: 0; }
.in-ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; white-space: nowrap; }
.in-nowrap { white-space: nowrap; }
.ct-tbl td.in-wrap, .in-wrap { white-space: normal; min-width: 180px; }
.in-small { font-size: 12px; margin: 8px 0 0; }
.in-hot { color: var(--px-dn, #b4233d); font-weight: 700; }
.in-center { display: flex; justify-content: center; padding: 4px 0 8px; }
.in-inline { display: inline; }
.in-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.in-grid2 > * { min-width: 0; }
.in-tips { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.5; color: #2f4559; }
.in-tips li { margin-bottom: 6px; }
.in-h4 { font-size: 13px; margin: 12px 0 8px; color: #2f4559; }
.in-saved { flex-wrap: wrap; gap: 6px; }
.in-bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ct-tbl th.ck, .ct-tbl td.ck { width: 30px; text-align: center; }
.in-timeline .sub { color: var(--px-mut, #6b7d92); font-size: 12px; margin-top: 2px; }

/* ---- command center panels */
.in-agecols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; margin: 2px 0 14px; }
.in-agecols .col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.in-agecols .v { font-size: 17px; font-weight: 800; color: var(--px-ink, #0b1f3a); }
.in-agecols .bar { width: 100%; max-width: 74px; height: 86px; background: var(--px-track, #edf1f6); border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.in-agecols .bar i { display: block; width: 100%; border-radius: 8px 8px 0 0; }
.in-agecols .l { font-size: 11.5px; font-weight: 700; color: #2f4559; text-align: center; }
.in-agecols small { font-size: 11px; color: var(--px-mut, #6b7d92); }
.in-statuslist { display: flex; flex-direction: column; margin: 12px 0; }
.in-statuslist .row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--px-line, #e6ecf3); color: inherit; text-decoration: none; }
.in-statuslist .row:hover { background: var(--px-soft, #f5f8fc); }
.in-statuslist .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.in-statuslist .l { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.in-statuslist .l small { color: var(--px-mut, #6b7d92); font-size: 11.5px; }
.in-statuslist .num { font-size: 16px; }
.in-count { font-weight: 700; }
.in-count.soon { color: #a35f00; }
.in-count.late { color: var(--px-dn, #b4233d); }
.in-team { padding: 6px 0 4px; border-bottom: 1px dashed var(--px-line, #e6ecf3); }
.in-team:last-of-type { border-bottom: 0; }
.in-team .top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; margin-bottom: 2px; flex-wrap: wrap; }
.in-team .top .num { color: var(--px-mut, #6b7d92); }
.in-av { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 9px; background: #e2f6ec; color: #0b7a50; white-space: nowrap; }
.in-av.busy { background: #fff4d6; color: #8b620d; }
.in-av.away { background: #eef2f6; color: #5b6b7f; }
.db-av i.av-busy { background: #f5a524; }
.db-av i.av-away { background: #97a6b8; }
.in-csat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 10px; }
.in-csat .trend { min-width: 0; }
.in-csat .trend small { font-size: 11.5px; color: var(--px-mut, #6b7d92); font-weight: 600; }
.in-chatnow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.in-chatnow > div { background: var(--px-soft, #f5f8fc); border: 1px solid var(--px-line, #e6ecf3); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.in-chatnow b { font-size: 20px; color: var(--px-ink, #0b1f3a); }
.in-chatnow span { font-size: 11.5px; color: var(--px-mut, #6b7d92); }
.in-dir { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; flex: none; background: #e7f0fd; color: #1a6fd6; }
.in-dir.in { background: #e2f6ec; color: #0b7a50; }
.in-dir.note { background: #f0ebfb; color: #5b3cc4; }
.in-stream td { vertical-align: middle; }
.in-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 12px; font-weight: 700; }

/* ---- reports landing */
.in-repgroup { margin-top: 2px; }
.in-reps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.in-rep { background: #fff; border: 1px solid #dbe4ed; border-radius: 10px; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 1px 2px rgba(16, 42, 74, .04); }
.in-rep .main { display: flex; gap: 12px; padding: 12px 14px; color: inherit; text-decoration: none; flex: 1; }
.in-rep .main:hover b { color: var(--brand-primary, #0a6fd2); }
.in-rep .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, #e8f1fd, #d4e5fb); color: #0b5fc4; font-size: 15px; }
.in-rep .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.in-rep .tx b { font-size: 13.5px; color: var(--px-ink, #0b1f3a); }
.in-rep .tx span { font-size: 12px; color: var(--px-mut, #6b7d92); line-height: 1.45; }
.in-rep .acts { display: flex; gap: 12px; padding: 7px 14px; border-top: 1px solid #edf1f6; font-size: 11.5px; font-weight: 700; flex-wrap: wrap; }

/* ---- metric builder */
.in-conds { display: flex; flex-direction: column; gap: 8px; }
.in-cond { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px; align-items: start; }
.in-cond select, .in-cond input { width: 100%; min-width: 0; }
.in-cond .v { min-width: 0; display: block; }
.in-def { font-size: 13px; line-height: 1.5; color: var(--px-ink2, #2b3f55); margin: 0 0 10px; }
.in-archive { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--px-line, #e6ecf3); }
.in-gform { gap: 8px; }
.in-mform [hidden] { display: none !important; }

/* ---- custom dashboards */
.in-wgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.in-wcell { grid-column: span var(--span, 4); min-width: 0; display: flex; }
.in-wcell > .ct-panel { flex: 1; }
.in-number { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 12px; }
.in-number .v { font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--px-ink, #0b1f3a); text-decoration: none; line-height: 1.1; }
a.v:hover { color: var(--brand-primary, #0a6fd2); }
.in-number .was { font-size: 12px; color: var(--px-mut, #6b7d92); }
.in-number .goal { align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 9px; background: #fde8ec; color: #b4233d; }
.in-number .goal.ok { background: #e2f6ec; color: #0b7a50; }
.in-wfoot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--px-mut, #6b7d92); margin-top: 8px; }
.in-wfoot a { font-weight: 700; }
.in-rank { display: flex; flex-direction: column; gap: 4px; }
.in-rank .row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "rk l v" "rk t t"; gap: 2px 8px; padding: 6px 4px; border-radius: 8px; color: inherit; text-decoration: none; }
.in-rank a.row[href]:hover { background: var(--px-soft, #f5f8fc); }
.in-rank .rk { grid-area: rk; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: #edf1f6; color: #2f4559; }
.in-rank .l { grid-area: l; font-size: 12.5px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.in-rank .l small { font-weight: 500; color: var(--px-mut, #6b7d92); margin-left: 6px; }
.in-rank b { grid-area: v; font-size: 13px; }
.in-rank .track { grid-area: t; position: relative; height: 7px; border-radius: 999px; background: var(--px-track, #edf1f6); }
.in-rank .track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6aa9f2, #0b5fc4); }
.in-rank .track em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--brand-navy, #0b2a57); }
.in-drill { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 12px; align-items: center; }
.in-drill span { color: var(--px-mut, #6b7d92); }
.in-drill a { padding: 2px 8px; border-radius: 9px; background: #eef4fc; font-weight: 600; }
.in-wlist .in-acts { display: flex; gap: 4px; justify-content: flex-end; }
.in-wlist .in-acts form { display: inline; }
.in-dfilter .ct-input { min-height: 32px; }

/* ---- supervision */
.in-stamp { margin-right: 6px; }
.in-live .ct-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.in-why { white-space: normal; }
.in-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 8px; background: #fff1e0; color: #8b4a00; margin: 1px 3px 1px 0; }
.in-step { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.in-step form { display: inline-flex; gap: 4px; align-items: center; }
.in-assign select { width: 130px; max-width: 180px; min-height: 32px; }
.in-load { min-width: 150px; }
.in-load .track { display: inline-block; vertical-align: middle; width: 96px; height: 8px; border-radius: 999px; background: var(--px-track, #edf1f6); overflow: hidden; margin-right: 8px; }
.in-load .track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6fd3b0, #12a079); }
.in-load .track i.mid { background: linear-gradient(90deg, #f7c56b, #e08a00); }
.in-load .track i.hi { background: linear-gradient(90deg, #f59a7a, #d23a10); }
.in-tix { white-space: normal; }
.in-chip { display: inline-block; font: 700 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 2px 7px; border-radius: 7px; background: #eef4fc; margin: 1px 4px 1px 0; white-space: nowrap; }
.in-chip.p-urgent { background: #fde8ec; color: #b4233d; }
.in-chip.p-high { background: #fff4d6; color: #8b620d; }
.in-convcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.in-convcols .col { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.in-convcols .hd { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--px-line, #e6ecf3); flex-wrap: wrap; }
.in-conv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding: 7px 9px; border: 1px solid var(--px-line, #e6ecf3); border-radius: 9px; color: inherit; text-decoration: none; background: #fff; }
.in-conv b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.in-conv small { grid-column: 1; font-size: 11px; color: var(--px-mut, #6b7d92); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.in-conv .t { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 12px; font-weight: 700; color: #2f4559; }
.in-conv .t.late { color: var(--px-dn, #b4233d); }
.in-alertbody { margin-bottom: 12px; }
.in-summary .in-sumlist { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; color: #22364d; }
.in-sumlist li { margin-bottom: 8px; }

/* ---- wallboard (full screen, no menu) */
body.in-wallbody { background: #071a33; color: #e8f1fb; margin: 0; }
.in-wall { padding: 18px 22px 30px; min-height: 100vh; box-sizing: border-box; }
.in-wallhead { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.in-wallhead .brand { display: flex; align-items: center; gap: 12px; font-size: 20px; }
.in-wallhead .brand img { height: 34px; width: auto; }
.in-wallhead .clock { margin-left: auto; font-size: 15px; color: #9fc0e6; display: flex; align-items: center; gap: 8px; }
.in-wallx { color: #9fc0e6; font-size: 13px; text-decoration: none; border: 1px solid #23456f; padding: 6px 10px; border-radius: 8px; }
.in-walltiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.in-walltiles .tile { background: #0d2a4f; border: 1px solid #1c3f6b; border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; border-left: 6px solid #3d97f0; min-width: 0; }
.in-walltiles .tile.ok { border-left-color: #13b985; }
.in-walltiles .tile.warn { border-left-color: #f5a524; }
.in-walltiles .tile.bad { border-left-color: #ef5927; background: #2a1830; }
.in-walltiles .l { font-size: 15px; color: #9fc0e6; font-weight: 600; }
.in-walltiles b { font-size: 48px; line-height: 1.05; color: #fff; letter-spacing: -.02em; }
.in-walltiles small { font-size: 13px; color: #8fb0d6; }
.in-wallgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.in-wallgrid .card { background: #0d2a4f; border: 1px solid #1c3f6b; border-radius: 14px; padding: 14px 18px; min-width: 0; }
.in-wallgrid h2 { font-size: 17px; margin: 0 0 10px; color: #cfe2f7; }
.in-wallgrid table { width: 100%; border-collapse: collapse; font-size: 16px; }
.in-wallgrid th { text-align: left; font-size: 12.5px; color: #8fb0d6; font-weight: 600; padding: 6px 8px; border-bottom: 1px solid #1c3f6b; }
.in-wallgrid td { padding: 8px; border-bottom: 1px solid #16365e; }
.in-wallgrid .r { text-align: right; }
.in-wallgrid tr .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #13b985; margin-right: 8px; }
.in-wallgrid tr.warn .dot { background: #f5a524; }
.in-wallgrid tr.bad .dot { background: #ef5927; }
.in-wallmeters .m { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; margin-bottom: 12px; font-size: 14px; }
.in-wallmeters .track { grid-column: 1 / -1; position: relative; height: 10px; border-radius: 999px; background: #16365e; }
.in-wallmeters .track i { display: block; height: 100%; border-radius: 999px; background: #13b985; }
.in-wallmeters .track i.warn { background: #f5a524; }
.in-wallmeters .track em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; }
.in-wallagents { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.in-wallagents .ag { background: #102f58; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; border-left: 4px solid #13b985; min-width: 0; }
.in-wallagents .ag.busy { border-left-color: #f5a524; }
.in-wallagents .ag.away, .in-wallagents .ag.offline { border-left-color: #6c8199; opacity: .85; }
.in-wallagents b { font-size: 15px; }
.in-wallagents span { font-size: 12.5px; color: #9fc0e6; }
.in-wallagents .track { height: 6px; border-radius: 999px; background: #16365e; overflow: hidden; }
.in-wallagents .track i { display: block; height: 100%; background: #3d97f0; }
.in-wallgrid .sig { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #16365e; font-size: 14px; }
.in-wallgrid .sig i { font-size: 18px; color: #3d97f0; }
.in-wallgrid .sig.bad i { color: #ef5927; }
.in-wallgrid .sig.warn i { color: #f5a524; }
.in-wallgrid .sig.ok i { color: #13b985; }
.in-wallgrid .sig b { display: block; }
.in-wallgrid .sig span { color: #9fc0e6; font-size: 13px; }

/* ---- phones and narrow screens */
@media (max-width: 1100px) {
    .in-wcell { grid-column: span 6; }
    .in-walltiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .in-wallgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .in-wcell { grid-column: span 12; }
    .in-grid2, .in-cond, .in-convcols { grid-template-columns: minmax(0, 1fr); }
    .in-csat { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    .in-csat .trend { width: 100%; }
    .in-live .ct-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .in-reps { grid-template-columns: minmax(0, 1fr); }
    .in-walltiles b { font-size: 34px; }
    .in-step { justify-content: flex-start; }
}

/* ---- small labels in command center tables */
.in-avt { font-size: 11px; color: var(--px-mut, #6b7d92); }
.in-avt.online:before, .in-avt.busy:before, .in-avt.away:before, .in-avt.offline:before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: #13b985; vertical-align: 1px; }
.in-avt.busy:before { background: #f5a524; }
.in-avt.away:before, .in-avt.offline:before { background: #97a6b8; }
.in-prio { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 7px; background: #eef4fc; color: #1a6fd6; margin-left: 4px; }
.in-prio.p-urgent { background: #fde8ec; color: #b4233d; }
.in-prio.p-high { background: #fff4d6; color: #8b620d; }
.in-prio.p-low { background: #eef2f6; color: #5b6b7f; }
.in-attn td { vertical-align: top; }
.in-attn .in-why { margin-top: 4px; }
.in-attn .in-step { flex-wrap: nowrap; }
.in-moreline { padding: 10px 12px; font-size: 12.5px; color: var(--px-mut, #6b7d92); border-top: 1px solid var(--px-line, #e6ecf3); }
.in-handoffs td.in-wrap { min-width: 140px; }
.db-filterbar .ct-input { width: auto; min-width: 0; max-width: 220px; min-height: 32px; }
.db-filterbar .db-fright { flex-wrap: wrap; }
.in-wallgrid .card { overflow-x: auto; position: relative; }
@media (max-width: 760px) {
    .in-wall { padding: 12px; }
    .in-wallgrid table { font-size: 13px; }
    .in-wallhead .clock { margin-left: 0; font-size: 13px; }
    .db-filterbar .ct-input { max-width: 100%; flex: 1 1 140px; }
}
