@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Plus+Jakarta+Sans:wght@700;800&display=swap');
:root {
  --orange: #FE5500; --orange-2: #FF7A30; --text: #0E1118; --muted: #576070;
  --page: #F5F6FA; --card: #FFFFFF; --line: #E3E6EE; --ok: #1E8E5A; --bad: #C62828;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'DM Sans', system-ui, sans-serif; color: var(--text); background: var(--page); font-size: 15px; }
h1, h2, h3 { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 800; margin: 0 0 12px; }
h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 16px; font-weight: 700; }
a { color: var(--orange); }
.muted { color: var(--muted); }
.centre { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.narrow { max-width: 440px; width: 100%; text-align: center; }
.logo { height: 46px; margin-bottom: 14px; }
header.top { background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 24px; display: flex; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 2; }
header.top img { height: 34px; }
header.top .title { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 18px; }
header.top .spacer { flex: 1; }
nav.tabs { display: flex; gap: 6px; }
nav.tabs button { background: none; border: 0; padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 500; color: var(--muted); cursor: pointer; }
nav.tabs button.active { background: #FFF1E9; color: var(--orange); }
main.wrap { max-width: 1180px; margin: 0 auto; padding: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; border: 0; border-radius: 9px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--orange-2); }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid #F1C4C4; }
input, select { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
input:focus, select:focus { outline: 2px solid #FFD2BA; border-color: var(--orange); }
input[type=checkbox] { width: auto; accent-color: var(--orange); }
input[type=time] { width: 110px; }
label.field { display: block; margin-bottom: 12px; text-align: left; }
label.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.pill.ok { background: #E3F5EC; color: var(--ok); } .pill.off { background: #FDECEC; color: var(--bad); } .pill.grey { background: #EEF0F5; color: var(--muted); }
.feature-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.msg { padding: 10px 14px; border-radius: 9px; margin: 10px 0; }
.msg.err { background: #FDECEC; color: var(--bad); } .msg.ok { background: #E3F5EC; color: var(--ok); }
.secret { font-family: Consolas, monospace; background: #FFF1E9; padding: 2px 8px; border-radius: 6px; font-size: 15px; }
pre { background: #0E1118; color: #E8EAF0; padding: 14px; border-radius: 10px; overflow: auto; font-size: 12.5px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hidden { display: none !important; }
.sched td { padding: 6px 8px; }
@media (max-width: 800px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
/* Call reports */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tile .v { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 24px; line-height: 1.1; }
.tile .k { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--line); padding-top: 22px; }
.bars .b { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; cursor: default; }
.bars .b i { display: block; width: 100%; background: var(--orange); border-radius: 4px 4px 0 0; min-height: 0; }
.bars .b:hover i { background: var(--orange-2); }
.bars .b:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; z-index: 1; }
.bar-axis { display: flex; gap: 2px; font-size: 11px; color: var(--muted); margin-top: 4px; }
.bar-axis span { flex: 1; text-align: center; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.res-missed, .res-busy { color: var(--bad); font-weight: 700; }
.res-answered { color: var(--ok); }
header.top { flex-wrap: wrap; }
nav.tabs { flex-wrap: wrap; }
nav.tabs button { white-space: nowrap; }
