/* OrgSurvey - #/esplora (js/explorer.js): the tree of the organisation on the left, the card of
   the chosen node on the right. Below 760 px the two are steps of their own (tree, then card). */
.ex { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 760px) { .ex { grid-template-columns: 330px minmax(0, 1fr); } }
@media (min-width: 1200px) { .ex { grid-template-columns: 400px minmax(0, 1fr); } }
@media (max-width: 759px) { .ex.card-open .ex-tree-col { display: none; } .ex:not(.card-open) .ex-card-col { display: none; } }
.ex-tree-col .card { overflow: hidden; display: flex; flex-direction: column; }
@media (min-width: 760px) {
    .ex-tree-col { position: sticky; top: calc(var(--bar-h) + 16px); }
    .ex-tree { height: calc(100vh - var(--bar-h) - var(--nav-h) - 230px); min-height: 300px; overflow: auto; overscroll-behavior: contain; }
}
@media (min-width: 900px) { .ex-tree { height: calc(100vh - var(--bar-h) - 220px); } }
.ex-tools { padding: 10px 10px 4px; border-bottom: 1px solid var(--line-2); }
.ex-toolbar { display: flex; align-items: center; gap: 2px; margin-top: 6px; flex-wrap: wrap; }
.ex-toolbar .btn { min-height: 40px; padding: 0 10px; font-size: .85rem; }
@media (max-width: 899px) { .ex-toolbar .btn { min-height: 44px; } }
.ex-opt { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; font-size: .86rem; font-weight: 600; color: var(--ink-2); border-radius: 8px; }
.ex-opt:hover { background: #f1f5f9; }
.ex-opt input { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }
.ex-tree { padding: 4px 6px 10px; }
.ex-row {
    display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 2px 8px 2px calc(2px + var(--lvl) * 16px);
    border-radius: 8px; cursor: pointer; outline: none;
}
@media (max-width: 899px) { .ex-row { min-height: 48px; padding-left: calc(2px + var(--lvl) * 13px); } }
.ex-row:hover { background: #f1f5f9; }
.ex-row.sel { background: var(--blue-soft); }
.ex-row.sel .nm { color: #134a7c; }
.ex-row:focus-visible { box-shadow: inset 0 0 0 2px rgba(29, 111, 184, .5); }
.ex-row .tog { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--ink-3); flex: 0 0 auto; font-size: .78rem; }
@media (max-width: 899px) { .ex-row .tog { width: 40px; height: 44px; } }
.ex-row .tog:hover { background: rgba(13, 31, 48, .08); }
.ex-row .nm { flex: 1; min-width: 0; font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-row .nm small { font-weight: 400; color: var(--ink-3); margin-left: 7px; font-size: .8rem; }
.ex-row .cnt { display: flex; gap: 9px; font-size: .74rem; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ex-row.is-empty .nm { color: var(--ink-3); font-weight: 500; }
.ex-row.is-empty .ex-ic { opacity: .55; }
.ex mark { background: #ffe9a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.ex-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: .78rem; flex: 0 0 auto; white-space: nowrap; overflow-wrap: normal; line-height: 1; background: var(--line-2); color: var(--ink-2); font-weight: 700; }
.ex-ic.org { background: var(--navy); color: #fff; }
.ex-ic.site { background: #e8edfb; color: #3049a8; }
.ex-ic.dept { background: color-mix(in srgb, var(--c) 15%, #fff); color: var(--c); }
.ex-ic.office { background: var(--blue-soft); color: var(--blue); }
.ex-ic.ppl { border-radius: 50%; background: #eef3f8; color: #134a7c; font-size: .66rem; }
.ex-ic.eq { background: var(--teal-soft); color: var(--teal); }
.ex-ic.eq.off { background: var(--line-2); color: var(--ink-3); }
.ex-ic.warn { background: var(--amber-soft); color: var(--amber); }
.ex-ic.big { width: 52px; height: 52px; border-radius: 14px; font-size: 1.35rem; }
.ex-ic.ppl.big { border-radius: 50%; font-size: 1.05rem; }

.ex-head { display: flex; flex-direction: column; gap: 6px; }
.ex-back { align-self: flex-start; margin: -6px 0 2px -8px; }
.ex-crumbs { font-size: .82rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 2px 4px; align-items: center; }
.ex-crumbs button { border: 0; background: none; padding: 6px 2px; min-height: 32px; color: var(--blue); font-size: .82rem; font-weight: 600; }
.ex-crumbs button:hover { text-decoration: underline; }
.ex-title { display: flex; gap: 14px; align-items: center; }
.ex-title h2 { margin: 0 0 2px; font-size: 1.35rem; line-height: 1.2; }
.ex-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
@media (min-width: 1100px) {
    .ex-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
    .ex-head > * { grid-column: 1; }
    .ex-head .ex-actions { grid-column: 2; grid-row: 1 / span 3; align-self: start; margin-top: 0; justify-content: flex-end; }
}
.ex-link { border: 0; background: none; padding: 0; color: var(--blue); font-weight: 600; text-align: left; font-size: inherit; }
.ex-link:hover { text-decoration: underline; }
.ex-missing { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.ex-missing .badge { padding: 4px 10px; }
.ex-info { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); margin: 14px 0 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.ex-info dt, .ex-info dd { margin: 0; padding: 9px 12px; border-top: 1px solid var(--line-2); font-size: .92rem; }
.ex-info dt:first-of-type, .ex-info dt:first-of-type + dd { border-top: 0; }
.ex-info dt { color: var(--ink-3); background: #fafcfe; }
@media (max-width: 559px) {
    .ex-info { grid-template-columns: minmax(0, 1fr); }
    .ex-info dt { background: none; font-size: .8rem; padding-bottom: 0; }
    .ex-info dd { border-top: 0; padding-top: 2px; }
}

.ex-break { display: grid; gap: 2px; }
.ex-break-row {
    display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(50px, 160px) 46px 46px; gap: 10px; align-items: center;
    min-height: 44px; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; width: 100%;
}
.ex-break-row:hover { background: #f4f7fb; }
.ex-break-row.is-empty { color: var(--ink-3); }
.ex-break-row .nm { min-width: 0; font-weight: 600; font-size: .9rem; display: flex; flex-direction: column; }
.ex-break-row .nm small { font-weight: 400; color: var(--ink-3); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-break-row .track, .ex-check-row .track { display: block; height: 8px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.ex-break-row .fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue), #4a97db); }
.ex-break-row .num { font-size: .8rem; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 559px) { .ex-break-row { grid-template-columns: 26px minmax(0, 1fr) 42px 42px; } .ex-break-row .track { display: none; } }
.ex .bar .fill.role { background: linear-gradient(90deg, #6b4fbb, #9278d6); }

.ex-quality { display: flex; gap: 18px; align-items: flex-start; }
@media (max-width: 1099px) { .ex-quality { flex-direction: column; align-items: stretch; } .ex-donut { align-self: center; } }
.ex-donut {
    --p: 0; width: 92px; height: 92px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
    background: radial-gradient(closest-side, #fff 72%, transparent 73%), conic-gradient(var(--teal) calc(var(--p) * 1%), var(--line-2) 0);
}
.ex-donut span { font-weight: 800; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.ex-checks { flex: 1; min-width: 0; display: grid; gap: 2px; width: 100%; }
.ex-check-row {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 150px) 58px 16px; gap: 10px; align-items: center;
    width: 100%; min-height: 44px; padding: 4px 8px; border: 0; background: transparent; border-radius: 8px; text-align: left; font-size: .88rem;
}
.ex-check-row:not([disabled]):hover { background: #f4f7fb; }
.ex-check-row[disabled] { cursor: default; opacity: 1; color: inherit; }
.ex-check-row .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .82rem; }
.ex-check-row .fill { display: block; height: 100%; border-radius: 6px; }
.ex-check-row .fill.good { background: var(--teal); }
.ex-check-row .fill.mid { background: #d39b2a; }
.ex-check-row .fill.low { background: #d1574b; }
@media (max-width: 1099px) { .ex-check-row { grid-template-columns: minmax(0, 1fr) 56px 16px; row-gap: 6px; } .ex-check-row .track { grid-column: 1 / -1; grid-row: 2; } }
.ex-miss { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 4px 10px 10px; font-size: .86rem; }
.ex-miss .ex-link { min-height: 32px; }

.ex-trend { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding: 4px 2px 0; border-bottom: 1px solid var(--line); }
.ex-trend .col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.ex-trend .b { display: flex; flex-direction: column; justify-content: flex-end; background: #b9d3ec; border-radius: 4px 4px 0 0; overflow: hidden; }
.ex-trend .p { display: block; background: var(--blue); }
.ex-trend-days { display: flex; gap: 3px; padding: 3px 2px 0; }
.ex-trend-days span { flex: 1; min-width: 0; text-align: center; font-size: .68rem; color: var(--ink-3); white-space: nowrap; overflow: visible; }
.ex-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.ex-legend .sq { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ex-legend .sq.all { background: #b9d3ec; }
.ex-legend .sq.p { background: var(--blue); }
.ex-people { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.ex-feed { border: 1px solid var(--line-2); border-radius: 10px; max-height: 320px; overflow: auto; }
@media (min-width: 640px) { .ex .stat-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); } }
.ex-toolbar { flex-wrap: nowrap; }
.ex-toolbar .btn.icon { width: 40px; padding: 0; flex: 0 0 auto; }
.ex-opt { white-space: nowrap; }
@media (min-width: 560px) and (max-width: 1199px) { .ex-break-row { grid-template-columns: 26px minmax(0, 1fr) minmax(30px, 90px) 40px 42px; gap: 8px; } }
