:root {
  color-scheme: dark;
  --bg: #07050b;
  --panel: rgba(16, 12, 22, .86);
  --panel-2: rgba(23, 17, 31, .78);
  --line: rgba(255,255,255,.09);
  --text: #f8f3fb;
  --muted: #a99faf;
  --pink: #ff4edc;
  --purple: #b657ff;
  --blue: #35a7ff;
  --gold: #f6c550;
  --danger: #ff6c84;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 15% 0%, rgba(167,32,191,.12), transparent 32%), radial-gradient(circle at 88% 8%, rgba(27,90,214,.12), transparent 30%), #07050b; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
code { color: #ffd6f8; }
[hidden] { display: none !important; }

.ambient { position: fixed; inset: auto; border-radius: 999px; filter: blur(110px); pointer-events: none; opacity: .12; z-index: -1; }
.ambient-one { width: 360px; height: 360px; background: var(--pink); left: -120px; top: 35%; }
.ambient-two { width: 420px; height: 420px; background: var(--blue); right: -180px; top: 18%; }

.site-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 14px 34px; border-bottom: 1px solid var(--line); background: rgba(7,5,11,.84); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(246,197,80,.72); border-radius: 12px; color: var(--gold); font-weight: 900; letter-spacing: -.06em; box-shadow: inset 0 0 18px rgba(246,197,80,.08), 0 0 22px rgba(246,197,80,.06); }
.brand-copy { display: grid; line-height: 1; gap: 4px; }
.brand-copy strong { font-size: 16px; letter-spacing: .18em; }
.brand-copy small { font-size: 9px; color: var(--muted); letter-spacing: .32em; }
.main-nav { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); }
.main-nav a { padding: 9px 16px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 700; }
.main-nav a.active { color: #fff; background: linear-gradient(120deg, rgba(255,78,220,.18), rgba(53,167,255,.14)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.account { justify-self: end; display: flex; align-items: center; gap: 10px; color: #d9d0df; font-size: 13px; }
.account form { margin: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.15); }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; }
.icon-button:hover { border-color: rgba(255,78,220,.35); color: var(--pink); }

.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 70px; }
.anonymous-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px 0; }
.hero-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--pink); font-size: 11px; font-weight: 900; letter-spacing: .22em; }
h1 { margin: 0; font-size: clamp(34px, 6vw, 58px); line-height: .96; letter-spacing: -.045em; }
h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.muted { color: var(--muted); margin: 12px 0 0; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid rgba(92,225,161,.18); border-radius: 999px; color: #a7e9c7; background: rgba(40,132,86,.08); font-size: 12px; font-weight: 800; white-space: nowrap; }
.live-pill span { width: 7px; height: 7px; border-radius: 50%; background: #5ce1a1; box-shadow: 0 0 14px #5ce1a1; }

.period-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); }
.period-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.period-pills button { border: 0; border-radius: 11px; padding: 9px 13px; cursor: pointer; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; }
.period-pills button.active, .period-pills button:hover { color: #fff; background: rgba(255,255,255,.07); }
.period-label { margin: 0 0 0 auto; color: var(--muted); font-size: 12px; }
.custom-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; padding-top: 10px; border-top: 1px solid var(--line); }
.custom-range label { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.custom-range input { background: #0d0a12; border: 1px solid var(--line); color: #fff; border-radius: 10px; padding: 8px 10px; }

.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; padding: 11px 16px; font-weight: 900; border: 1px solid transparent; cursor: pointer; }
.primary-button { color: #fff; background: linear-gradient(120deg, #a928cf, #2a78df); box-shadow: 0 14px 45px rgba(156,45,205,.18); }
.secondary-button { background: rgba(255,255,255,.06); border-color: var(--line); }

.notice { display: flex; gap: 8px 14px; align-items: baseline; flex-wrap: wrap; padding: 13px 16px; margin-bottom: 18px; border-radius: 14px; border: 1px solid var(--line); font-size: 13px; }
.notice span { color: var(--muted); }
.notice.warning { border-color: rgba(246,197,80,.24); background: rgba(246,197,80,.06); }
.notice.danger { border-color: rgba(255,108,132,.24); background: rgba(255,108,132,.06); }
.notice.compact { margin: 0 0 12px; }

.metric-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 12px; }
.metric-card { min-height: 138px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); }
.metric-card p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.metric-card strong { display: block; margin: 16px 0 7px; font-size: clamp(25px, 4vw, 36px); letter-spacing: -.045em; }
.metric-card small { color: #82798a; }
.main-metric { border-color: rgba(255,78,220,.22); background: radial-gradient(circle at 10% 0%, rgba(255,78,220,.14), transparent 52%), radial-gradient(circle at 100% 100%, rgba(53,167,255,.1), transparent 45%), var(--panel); }
.main-metric strong { color: #fff; text-shadow: 0 0 24px rgba(255,78,220,.14); }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 12px 0 22px; }
.category-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.category-card div { display: flex; align-items: center; gap: 10px; }
.category-card p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.category-card strong { font-size: 18px; }
.category-icon { font-size: 20px; }
.neon-pink { border-color: rgba(255,78,220,.17); }.neon-pink .category-icon { color: var(--pink); }
.neon-purple { border-color: rgba(182,87,255,.17); }.neon-purple .category-icon { color: var(--purple); }
.neon-blue { border-color: rgba(53,167,255,.17); }.neon-blue .category-icon { color: var(--blue); }
.neon-gold { border-color: rgba(246,197,80,.17); }.neon-gold .category-icon { color: var(--gold); }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 20px 70px rgba(0,0,0,.22); }
.operations-panel { padding: 18px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.panel-heading > span { color: var(--muted); font-size: 12px; }
.operations-list { border-top: 1px solid var(--line); }
.operation-row { display: grid; grid-template-columns: 10px minmax(0,1fr) auto auto 34px; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.operation-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.operation-dot.vip { background: var(--pink); box-shadow: 0 0 12px rgba(255,78,220,.4); }
.operation-dot.danseuses { background: var(--purple); }.operation-dot.boissons { background: var(--blue); }.operation-dot.depenses { background: var(--gold); }.operation-dot.autres { background: #5ce1a1; }
.operation-main { min-width: 0; display: grid; gap: 4px; }
.operation-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.operation-main span { color: var(--muted); font-size: 11px; }
.operation-category { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; text-transform: uppercase; font-weight: 900; letter-spacing: .08em; }
.operation-amount { min-width: 105px; text-align: right; font-size: 14px; }.operation-amount.negative { color: #ff9bac; }
.source-link { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); }
.source-link:hover { color: #fff; border-color: rgba(53,167,255,.32); }
.empty-state { display: grid; place-items: center; text-align: center; padding: 54px 20px; border-top: 1px solid var(--line); color: var(--muted); }
.empty-state > span { font-size: 34px; color: var(--blue); }.empty-state h3 { margin: 10px 0 3px; color: #fff; }.empty-state p { max-width: 560px; margin: 4px 0; }

.tariff-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 18px; align-items: start; }
.tariff-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tariff-card { padding: 20px; overflow: hidden; position: relative; }
.drinks-card { grid-column: 1 / -1; }
.pink-panel { box-shadow: inset 0 0 50px rgba(255,78,220,.035); border-color: rgba(255,78,220,.16); }
.purple-panel { box-shadow: inset 0 0 50px rgba(182,87,255,.035); border-color: rgba(182,87,255,.16); }
.blue-panel { box-shadow: inset 0 0 50px rgba(53,167,255,.035); border-color: rgba(53,167,255,.16); }
.tariff-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.tariff-list.two-columns { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.tariff-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: 12px; }
.tariff-list span { color: #d8d0dd; }.tariff-list strong { color: #fff; white-space: nowrap; }
.menu-reference { padding: 14px; position: sticky; top: 90px; }
.menu-reference img { width: 100%; display: block; border-radius: 15px; border: 1px solid var(--line); }

.login-card { position: relative; overflow: hidden; width: min(470px, 100%); padding: 42px; border: 1px solid rgba(255,255,255,.1); border-radius: 30px; background: linear-gradient(155deg, rgba(22,14,30,.96), rgba(8,7,12,.98)); box-shadow: 0 35px 120px rgba(0,0,0,.55); }
.login-glow { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: var(--pink); filter: blur(100px); opacity: .11; top: -120px; right: -80px; pointer-events: none; }
.login-brand { text-align: center; display: grid; justify-items: center; }
.brand-mark-large { width: 70px; height: 70px; border-radius: 20px; font-size: 24px; margin-bottom: 22px; }
.login-brand h1 { font-size: 48px; color: #f7d46f; text-shadow: 0 0 30px rgba(246,197,80,.12); }
.login-brand p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.discord-button { width: 100%; margin-top: 20px; }
.login-note { margin: 14px 0 0; text-align: center; color: #7f7585; font-size: 11px; line-height: 1.5; }
.error-card { max-width: 620px; margin: 80px auto; padding: 34px; text-align: center; }.error-code { color: var(--pink); font-weight: 900; letter-spacing: .2em; }.error-card p { color: var(--muted); }.error-card .primary-button { margin-top: 10px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; padding: 12px 18px; }.main-nav { order: 3; grid-column: 1 / -1; justify-content: center; }.account span { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }.category-grid { grid-template-columns: 1fr 1fr; }.tariff-layout { grid-template-columns: 1fr; }.menu-reference { position: static; }.tariff-list.two-columns { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .page-shell { width: min(100% - 24px, 1180px); padding-top: 28px; }.brand-copy { display: none; }.site-header { gap: 10px; }.main-nav a { padding: 8px 12px; }.hero-row { align-items: flex-start; flex-direction: column; }.live-pill { align-self: flex-start; }
  .metric-grid, .category-grid, .tariff-columns { grid-template-columns: 1fr; }.drinks-card { grid-column: auto; }.metric-card { min-height: 120px; }.operation-row { grid-template-columns: 9px minmax(0,1fr) auto; }.operation-category { display: none; }.operation-amount { grid-column: 2; text-align: left; }.source-link { grid-column: 3; grid-row: 1 / span 2; }.period-label { width: 100%; margin-left: 0; }.login-card { padding: 30px 22px; }.login-brand h1 { font-size: 38px; }
}

/* HornBills 1.1 — dashboard comptable complet */
.page-shell { width: min(1380px, calc(100% - 40px)); }
.dashboard-hero { align-items: center; }
.hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.selected-employee-pill { display: inline-flex; gap: 5px; align-items: center; padding: 9px 13px; border: 1px solid rgba(255,78,220,.2); border-radius: 999px; background: rgba(255,78,220,.06); color: #d9cfe0; font-size: 12px; }
.selected-employee-pill strong { color: #fff; }

.filters-panel { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; margin-bottom: 20px; }
.filters-panel .period-bar { margin-bottom: 0; }
.employee-filter { display: flex; align-items: end; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); }
.employee-filter label, .sort-controls label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.employee-filter select, .sort-controls select { min-width: 190px; height: 40px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 11px; color: #f7f1fa; background: #0d0a12; }
.clear-filter { align-self: center; padding: 10px 5px; color: var(--pink); font-size: 11px; font-weight: 800; }
.clear-filter:hover { color: #fff; }

.employee-focus { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; margin-bottom: 12px; border: 1px solid rgba(255,78,220,.16); border-radius: 18px; background: linear-gradient(100deg, rgba(255,78,220,.08), rgba(53,167,255,.035)); }
.employee-focus h2 { font-size: 27px; }
.employee-focus .muted { margin-top: 6px; font-size: 12px; }
.employee-focus-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.employee-focus-meta > span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }
.employee-focus-meta .status-live { color: #a7e9c7; border-color: rgba(92,225,161,.22); background: rgba(92,225,161,.07); }

.metric-grid-five { grid-template-columns: 1.35fr repeat(4, minmax(0,1fr)); }
.service-metric { border-color: rgba(53,167,255,.16); background: radial-gradient(circle at 100% 0%, rgba(53,167,255,.09), transparent 55%), linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); }

.employees-panel { margin: 0 0 18px; padding: 18px; overflow: hidden; }
.employee-panel-heading { align-items: flex-end; }
.panel-description { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.sort-controls { display: flex; align-items: end; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.sort-controls select { min-width: 150px; }
.sort-controls label:first-of-type select { min-width: 180px; }

.employee-stats-table { overflow-x: auto; border-top: 1px solid var(--line); }
.employee-stat-row { min-width: 1050px; display: grid; grid-template-columns: minmax(220px,1.6fr) repeat(6,minmax(100px,.75fr)) 60px; gap: 14px; align-items: center; padding: 13px 10px; border-bottom: 1px solid var(--line); font-size: 12px; }
.employee-stat-row:not(.employee-stat-head):hover { background: rgba(255,255,255,.025); }
.employee-stat-row.selected { background: linear-gradient(90deg, rgba(255,78,220,.08), rgba(53,167,255,.03)); box-shadow: inset 3px 0 0 rgba(255,78,220,.55); }
.employee-stat-head { position: sticky; top: 0; z-index: 2; color: #776d7f; font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; background: rgba(16,12,22,.97); }
.employee-identity { display: flex; align-items: center; min-width: 0; gap: 10px; }
.employee-avatar-fallback { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; color: #f4cff0; border: 1px solid rgba(255,78,220,.18); background: linear-gradient(135deg, rgba(255,78,220,.12), rgba(53,167,255,.08)); font-weight: 900; }
.employee-identity > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.employee-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.employee-identity small { color: var(--muted); font-size: 9px; }
.online-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #5ce1a1; box-shadow: 0 0 12px rgba(92,225,161,.75); }
.stat-positive { color: #c6f4dd; }
.stat-negative { color: #ff9bac; }
.row-action { justify-self: end; padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; color: #d9cfe0; font-size: 10px; font-weight: 900; }
.row-action:hover { color: #fff; border-color: rgba(255,78,220,.3); background: rgba(255,78,220,.06); }
.compact-empty { padding: 32px 18px; }

.activity-panel { margin-top: 0; }
.activity-table { overflow-x: auto; border-top: 1px solid var(--line); }
.activity-row { min-width: 1110px; display: grid; grid-template-columns: 128px 86px 170px minmax(340px,1fr) 128px 34px; gap: 14px; align-items: center; padding: 14px 8px; border-bottom: 1px solid var(--line); }
.activity-row:not(.activity-head):hover { background: rgba(255,255,255,.018); }
.activity-head { color: #776d7f; font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.activity-date { color: #a99faf; font-size: 10px; line-height: 1.5; }
.activity-kind { justify-self: start; display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: #c6bdcc; background: rgba(255,255,255,.02); font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.kind-billing { color: #ff9ced; border-color: rgba(255,78,220,.2); background: rgba(255,78,220,.055); }
.kind-payment { color: #ffd072; border-color: rgba(246,197,80,.22); background: rgba(246,197,80,.055); }
.kind-service { color: #8dcdff; border-color: rgba(53,167,255,.2); background: rgba(53,167,255,.055); }
.kind-chest { color: #bda3ff; border-color: rgba(182,87,255,.2); background: rgba(182,87,255,.055); }
.activity-employee { min-width: 0; display: grid; gap: 3px; }
.activity-employee strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.activity-employee small { color: #766d7d; font-size: 9px; }
.activity-detail { min-width: 0; display: flex; align-items: baseline; gap: 5px 12px; flex-wrap: wrap; }
.activity-detail > strong { width: 100%; color: #f7f3f9; font-size: 13px; line-height: 1.35; }
.activity-detail > span { position: relative; color: var(--muted); font-size: 10px; line-height: 1.45; }
.activity-detail > span + span::before { content: '·'; margin-right: 9px; color: #514958; }
.activity-detail .service-open-label { color: #a7e9c7; }
.calculation-note { width: 100%; color: #645b6c; font-size: 9px; }
.activity-value { display: grid; justify-items: end; gap: 3px; text-align: right; }
.activity-value strong { font-size: 14px; }
.activity-value .positive { color: #d9f7e7; }
.activity-value .negative { color: #ff9bac; }
.activity-value small, .activity-value span { color: var(--muted); font-size: 9px; }

@media (max-width: 1120px) {
  .filters-panel { grid-template-columns: 1fr; }
  .employee-filter { justify-content: flex-start; }
  .metric-grid-five { grid-template-columns: repeat(3,1fr); }
  .metric-grid-five .main-metric { grid-column: span 2; }
  .employee-panel-heading { align-items: flex-start; flex-direction: column; }
  .sort-controls { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .page-shell { width: min(100% - 24px, 1380px); }
  .dashboard-hero { align-items: flex-start; }
  .hero-actions { justify-content: flex-start; }
  .employee-filter { align-items: stretch; flex-direction: column; }
  .employee-filter select { width: 100%; min-width: 0; }
  .employee-filter .secondary-button { width: 100%; }
  .clear-filter { text-align: center; }
  .employee-focus { align-items: flex-start; flex-direction: column; }
  .metric-grid-five { grid-template-columns: 1fr 1fr; }
  .metric-grid-five .main-metric { grid-column: 1 / -1; }
  .sort-controls { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .sort-controls label:first-of-type select, .sort-controls select { width: 100%; min-width: 0; }
  .sort-controls .secondary-button { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .metric-grid-five { grid-template-columns: 1fr; }
  .metric-grid-five .main-metric { grid-column: auto; }
  .employees-panel, .operations-panel { padding: 14px; border-radius: 18px; }
  .sort-controls { grid-template-columns: 1fr; }
  .sort-controls .secondary-button { grid-column: auto; }
}

/* HornBills 1.2 — pilotage, recherche et exports */
.access-pill { display:inline-flex; align-items:center; gap:6px; padding:9px 13px; border:1px solid rgba(246,197,80,.28); border-radius:999px; color:#ffe08e; background:rgba(246,197,80,.07); font-size:11px; font-weight:900; letter-spacing:.04em; box-shadow:0 0 24px rgba(246,197,80,.05); }

.insight-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 18px; }
.insight-card { min-height:112px; padding:17px 18px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.014)); display:flex; flex-direction:column; justify-content:center; }
.insight-card > span { color:#8e8496; font-size:10px; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.insight-card > strong { margin-top:7px; color:#f8f4fb; font-size:23px; line-height:1.1; }
.insight-card > small { margin-top:7px; color:var(--muted); font-size:10px; line-height:1.45; }
.insight-card.quality-ok { border-color:rgba(92,225,161,.18); background:radial-gradient(circle at 100% 0,rgba(92,225,161,.07),transparent 58%),rgba(255,255,255,.018); }
.insight-card.quality-ok > strong { color:#a7e9c7; }
.insight-card.quality-alert { border-color:rgba(255,164,85,.22); background:radial-gradient(circle at 100% 0,rgba(255,164,85,.08),transparent 58%),rgba(255,255,255,.018); }
.insight-card.quality-alert > strong { color:#ffc084; }

.overview-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:18px; }
.overview-panel { margin:0; padding:18px; min-width:0; }
.compact-list { display:grid; border-top:1px solid var(--line); }
.compact-list-row { display:grid; grid-template-columns:12px minmax(0,1fr) auto; gap:10px; align-items:center; padding:12px 4px; border-bottom:1px solid var(--line); }
.compact-list-row > div { display:grid; gap:3px; }
.compact-list-row strong { font-size:12px; }
.compact-list-row small { color:var(--muted); font-size:9px; }
.status-beacon { width:7px; height:7px; border-radius:50%; background:#5ce1a1; box-shadow:0 0 12px rgba(92,225,161,.8); }
.status-live-text { color:#a7e9c7; font-size:10px; font-weight:800; }
.compact-warning { display:grid; gap:5px; margin-top:12px; padding:11px 12px; border:1px solid rgba(255,164,85,.18); border-radius:12px; background:rgba(255,164,85,.05); }
.compact-warning strong { color:#ffc084; font-size:11px; }
.compact-warning span,.empty-mini { color:var(--muted); font-size:10px; line-height:1.5; }
.empty-mini { padding:18px 2px 4px; }
.client-ranking { list-style:none; display:grid; margin:0; padding:0; border-top:1px solid var(--line); }
.client-ranking li { display:grid; grid-template-columns:28px minmax(0,1fr) auto; gap:10px; align-items:center; padding:11px 4px; border-bottom:1px solid var(--line); }
.client-ranking .rank-number { width:26px; height:26px; display:grid; place-items:center; border:1px solid rgba(246,197,80,.22); border-radius:9px; color:#ffe08e; font-size:9px; font-weight:900; background:rgba(246,197,80,.04); }
.client-ranking li > div { min-width:0; display:grid; gap:3px; }
.client-ranking li > div strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.client-ranking li small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:9px; }
.client-ranking li > strong { color:#d9f7e7; font-size:12px; white-space:nowrap; }

.panel-actions-wrap { display:flex; align-items:flex-end; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.export-button { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:0 12px; border:1px solid rgba(53,167,255,.22); border-radius:10px; color:#9fd7ff; background:rgba(53,167,255,.055); font-size:10px; font-weight:900; letter-spacing:.02em; white-space:nowrap; }
.export-button:hover { color:#fff; border-color:rgba(53,167,255,.4); background:rgba(53,167,255,.1); }

.employee-stat-row { min-width:1280px; grid-template-columns:minmax(210px,1.6fr) repeat(8,minmax(92px,.72fr)) 58px; }
.employee-stat-head { z-index:3; }

.activity-panel-heading { align-items:flex-end; }
.activity-filters { display:grid; grid-template-columns:minmax(260px,1fr) 170px auto auto auto; gap:9px; align-items:end; margin:0 0 12px; padding:12px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.015); }
.activity-filters label { display:grid; gap:6px; color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.activity-filters input,.activity-filters select { width:100%; height:40px; padding:0 11px; border:1px solid var(--line); border-radius:10px; color:#f7f1fa; background:#0d0a12; outline:none; }
.activity-filters input:focus,.activity-filters select:focus { border-color:rgba(53,167,255,.35); box-shadow:0 0 0 3px rgba(53,167,255,.06); }
.activity-filters .clear-filter { align-self:end; min-height:40px; display:flex; align-items:center; justify-content:center; }
.filter-result-count { align-self:center; justify-self:end; color:#746b7c; font-size:10px; white-space:nowrap; }

@media (max-width:1180px) {
  .insight-grid { grid-template-columns:1fr 1fr; }
  .overview-grid { grid-template-columns:1fr; }
  .panel-actions-wrap { width:100%; justify-content:flex-start; }
  .activity-filters { grid-template-columns:minmax(220px,1fr) 160px auto; }
  .activity-filters .clear-filter,.filter-result-count { grid-column:auto; }
}
@media (max-width:760px) {
  .insight-grid { grid-template-columns:1fr 1fr; }
  .activity-panel-heading { align-items:flex-start; flex-direction:column; gap:12px; }
  .activity-filters { grid-template-columns:1fr; }
  .filter-result-count { justify-self:start; }
  .panel-actions-wrap { align-items:stretch; flex-direction:column; }
  .panel-actions-wrap .export-button { width:100%; }
}
@media (max-width:520px) {
  .insight-grid { grid-template-columns:1fr; }
  .client-ranking li { grid-template-columns:26px minmax(0,1fr); }
  .client-ranking li > strong { grid-column:2; }
}

/* HornBills 1.3 — thème night-club, grille corrigée et fiches employés */
:root {
  --bg: #05040a;
  --panel: rgba(12, 8, 18, .91);
  --panel-2: rgba(19, 12, 29, .86);
  --line: rgba(255,255,255,.105);
  --pink: #ff3bd4;
  --purple: #9e48ff;
  --blue: #25a8ff;
  --gold: #ffc538;
  --cyan: #4de7ff;
}

body {
  background:
    radial-gradient(circle at 8% 12%, rgba(255,59,212,.15), transparent 25%),
    radial-gradient(circle at 90% 18%, rgba(37,168,255,.15), transparent 28%),
    radial-gradient(circle at 55% 102%, rgba(158,72,255,.11), transparent 35%),
    linear-gradient(180deg, #08040d 0%, #05040a 58%, #06050b 100%);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.013) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.013) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 85%);
}

.page-shell { width: min(1380px, calc(100% - 44px)); padding-top: 34px; }
.site-header { border-bottom-color: rgba(255,197,56,.14); box-shadow: 0 10px 40px rgba(0,0,0,.32), 0 1px 0 rgba(255,59,212,.06); }
.brand-mark {
  border-color: rgba(255,197,56,.82);
  background: radial-gradient(circle at 30% 20%, rgba(255,197,56,.16), transparent 58%);
  box-shadow: inset 0 0 24px rgba(255,197,56,.08), 0 0 24px rgba(255,197,56,.09);
}
.brand-copy strong { color: #fff0c7; text-shadow: 0 0 18px rgba(255,197,56,.12); }
.main-nav { border-color: rgba(255,255,255,.105); background: rgba(9,6,14,.78); }
.main-nav a.active {
  background: linear-gradient(120deg, rgba(255,59,212,.22), rgba(158,72,255,.18) 48%, rgba(37,168,255,.18));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 0 24px rgba(255,59,212,.06);
}

.dashboard-hero { position: relative; padding-bottom: 18px; }
.dashboard-hero::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(560px, 55vw);
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--pink), var(--blue), transparent);
  box-shadow: 0 0 14px rgba(255,59,212,.25);
}
.eyebrow { color: #ff70e4; text-shadow: 0 0 16px rgba(255,59,212,.25); }

.filters-panel, .period-bar, .employee-filter, .activity-filters {
  background: linear-gradient(145deg, rgba(255,59,212,.035), rgba(37,168,255,.025)), rgba(10,7,15,.8);
  border-color: rgba(255,255,255,.105);
}
.period-pills button.active {
  background: linear-gradient(120deg, rgba(255,59,212,.18), rgba(158,72,255,.15));
  box-shadow: inset 0 0 0 1px rgba(255,59,212,.08), 0 0 18px rgba(255,59,212,.055);
}

.metric-card, .insight-card, .category-card, .panel, .team-summary-card, .employee-kpi {
  position: relative;
  overflow: hidden;
}
.metric-card::before, .insight-card::before, .panel::before, .team-summary-card::before, .employee-kpi::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.028), transparent 34%);
}
.metric-grid-five { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); align-items: stretch; }
.metric-card { min-height: 126px; border-radius: 20px; }
.metric-card:nth-child(2) { border-color: rgba(255,59,212,.18); background: radial-gradient(circle at 100% 0, rgba(255,59,212,.09), transparent 52%), var(--panel); }
.metric-card:nth-child(3) { border-color: rgba(255,197,56,.17); background: radial-gradient(circle at 100% 0, rgba(255,197,56,.08), transparent 52%), var(--panel); }
.metric-card:nth-child(4) { border-color: rgba(37,168,255,.2); background: radial-gradient(circle at 100% 0, rgba(37,168,255,.12), transparent 52%), var(--panel); }
.metric-card:nth-child(5) { border-color: rgba(158,72,255,.18); background: radial-gradient(circle at 100% 0, rgba(158,72,255,.1), transparent 52%), var(--panel); }
.main-metric {
  border-color: rgba(255,59,212,.32);
  background: radial-gradient(circle at 10% 0, rgba(255,59,212,.18), transparent 52%), radial-gradient(circle at 100% 100%, rgba(37,168,255,.13), transparent 45%), var(--panel);
  box-shadow: inset 0 0 34px rgba(255,59,212,.025), 0 0 32px rgba(255,59,212,.035);
}

.insight-card:nth-child(1) { border-color: rgba(255,59,212,.14); }
.insight-card:nth-child(2) { border-color: rgba(37,168,255,.14); }
.insight-card:nth-child(3) { border-color: rgba(158,72,255,.14); }

.category-card { min-height: 64px; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.category-card:hover { transform: translateY(-2px); }
.neon-pink { background: radial-gradient(circle at 15% 50%, rgba(255,59,212,.12), transparent 48%), rgba(255,59,212,.025); box-shadow: inset 0 0 25px rgba(255,59,212,.025); }
.neon-purple { background: radial-gradient(circle at 15% 50%, rgba(158,72,255,.12), transparent 48%), rgba(158,72,255,.025); box-shadow: inset 0 0 25px rgba(158,72,255,.025); }
.neon-blue { background: radial-gradient(circle at 15% 50%, rgba(37,168,255,.13), transparent 48%), rgba(37,168,255,.025); box-shadow: inset 0 0 25px rgba(37,168,255,.025); }
.neon-gold { background: radial-gradient(circle at 15% 50%, rgba(255,197,56,.11), transparent 48%), rgba(255,197,56,.02); box-shadow: inset 0 0 25px rgba(255,197,56,.02); }
.neon-pink:hover { border-color: rgba(255,59,212,.35); box-shadow: 0 0 24px rgba(255,59,212,.055); }
.neon-purple:hover { border-color: rgba(158,72,255,.35); box-shadow: 0 0 24px rgba(158,72,255,.055); }
.neon-blue:hover { border-color: rgba(37,168,255,.35); box-shadow: 0 0 24px rgba(37,168,255,.055); }
.neon-gold:hover { border-color: rgba(255,197,56,.35); box-shadow: 0 0 24px rgba(255,197,56,.05); }

/* Corrige le grand carré vide de la zone service : contenu dense + hauteur naturelle. */
.overview-grid { align-items: stretch; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.overview-panel { min-height: 0; background: linear-gradient(145deg, rgba(255,255,255,.018), rgba(255,255,255,.006)), var(--panel); }
.service-total-panel { border-color: rgba(37,168,255,.18); background: radial-gradient(circle at 0 0, rgba(37,168,255,.09), transparent 44%), radial-gradient(circle at 100% 100%, rgba(158,72,255,.07), transparent 48%), var(--panel); }
.clients-panel { border-color: rgba(255,197,56,.14); background: radial-gradient(circle at 100% 0, rgba(255,197,56,.055), transparent 45%), var(--panel); }
.team-service-total { display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; padding: 4px 2px 17px; }
.team-service-total strong { font-size: clamp(35px, 4vw, 52px); line-height: .95; letter-spacing: -.055em; color: #eef9ff; text-shadow: 0 0 22px rgba(37,168,255,.17); }
.team-service-total span { color: var(--muted); font-size: 11px; padding-bottom: 4px; }
.service-summary-grid { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:8px; }
.service-summary-grid > div { padding: 11px 12px; border:1px solid rgba(255,255,255,.07); border-radius:12px; background:rgba(255,255,255,.018); display:grid; gap:5px; }
.service-summary-grid span { color:#82798a; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.service-summary-grid strong { font-size:13px; }
.service-leader-list { display:grid; margin-top:12px; border-top:1px solid var(--line); }
.service-leader-list a { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:9px 3px; border-bottom:1px solid var(--line); color:#cfc6d7; font-size:11px; }
.service-leader-list a:hover span { color:#fff; }
.service-leader-list strong { color:#96ddff; white-space:nowrap; }

.employees-button { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:0 12px; border:1px solid rgba(255,59,212,.23); border-radius:10px; color:#ff9bea; background:rgba(255,59,212,.055); font-size:10px; font-weight:900; white-space:nowrap; }
.employees-button:hover { color:#fff; border-color:rgba(255,59,212,.42); background:rgba(255,59,212,.1); }

/* Répertoire employés */
.employee-directory-filters { margin-bottom: 18px; }
.employee-directory-search { display:flex; align-items:end; gap:8px; padding:12px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.016); }
.employee-directory-search label { display:grid; gap:6px; flex:1; color:var(--muted); font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.employee-directory-search input { min-width:250px; height:40px; padding:0 11px; border:1px solid var(--line); border-radius:10px; color:#fff; background:#0b0810; outline:none; }
.employee-directory-search input:focus { border-color:rgba(255,59,212,.36); box-shadow:0 0 0 3px rgba(255,59,212,.06); }

.team-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.team-summary-card { min-height:118px; padding:18px; border:1px solid var(--line); border-radius:18px; background:var(--panel); display:flex; flex-direction:column; justify-content:center; }
.team-summary-card span { color:#918698; font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.09em; }
.team-summary-card strong { margin-top:8px; font-size:27px; letter-spacing:-.035em; }
.team-summary-card small { margin-top:6px; color:var(--muted); font-size:10px; }
.team-summary-gold { border-color:rgba(255,197,56,.2); background:radial-gradient(circle at 100% 0, rgba(255,197,56,.08), transparent 55%),var(--panel); }
.team-summary-pink { border-color:rgba(255,59,212,.2); background:radial-gradient(circle at 100% 0, rgba(255,59,212,.09), transparent 55%),var(--panel); }
.team-summary-blue { border-color:rgba(37,168,255,.2); background:radial-gradient(circle at 100% 0, rgba(37,168,255,.09), transparent 55%),var(--panel); }
.team-summary-purple { border-color:rgba(158,72,255,.2); background:radial-gradient(circle at 100% 0, rgba(158,72,255,.09), transparent 55%),var(--panel); }

.employee-directory-panel { padding:18px; }
.employee-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.employee-profile-card { position:relative; display:flex; flex-direction:column; min-width:0; padding:16px; border:1px solid rgba(255,255,255,.09); border-radius:18px; background:linear-gradient(145deg,rgba(255,255,255,.032),rgba(255,255,255,.012)); transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; overflow:hidden; }
.employee-profile-card::after { content:''; position:absolute; inset:auto -20% -52% 45%; height:150px; background:radial-gradient(circle,rgba(255,59,212,.08),transparent 68%); pointer-events:none; }
.employee-profile-card:hover { transform:translateY(-2px); border-color:rgba(255,59,212,.25); box-shadow:0 16px 38px rgba(0,0,0,.2),0 0 28px rgba(255,59,212,.035); }
.employee-profile-head { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:10px; min-width:0; }
.employee-profile-avatar { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; border:1px solid rgba(255,197,56,.22); color:#ffe29a; background:linear-gradient(145deg,rgba(255,197,56,.1),rgba(255,59,212,.07)); font-weight:900; box-shadow:inset 0 0 20px rgba(255,197,56,.035); }
.employee-profile-head > div { min-width:0; display:grid; gap:3px; }
.employee-profile-head > div strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.employee-profile-head small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:9px; }
.employee-live-badge { color:#a7e9c7; border:1px solid rgba(92,225,161,.2); background:rgba(92,225,161,.065); border-radius:999px; padding:5px 7px; font-size:8px; font-weight:900; white-space:nowrap; }
.employee-live-badge.large { font-size:10px; padding:8px 10px; }
.employee-profile-money { display:flex; align-items:end; justify-content:space-between; gap:12px; margin:15px 0 11px; padding:12px; border-radius:13px; background:linear-gradient(110deg,rgba(255,59,212,.08),rgba(37,168,255,.045)); border:1px solid rgba(255,59,212,.09); }
.employee-profile-money span { color:#a89dad; font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.07em; }
.employee-profile-money strong { font-size:19px; color:#fff; }
.employee-profile-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.employee-profile-stats > div { min-width:0; display:grid; gap:3px; padding:8px 9px; border:1px solid rgba(255,255,255,.06); border-radius:10px; background:rgba(255,255,255,.014); }
.employee-profile-stats span { color:#776d7f; font-size:8px; text-transform:uppercase; font-weight:900; letter-spacing:.05em; }
.employee-profile-stats strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
.employee-profile-open { margin-top:12px; color:#ff91e7; font-size:9px; font-weight:900; letter-spacing:.02em; }

/* Fiche détaillée employé */
.back-link { display:inline-flex; margin-bottom:15px; color:#aaa0b1; font-size:11px; font-weight:800; }
.back-link:hover { color:#fff; }
.employee-detail-hero { display:flex; align-items:center; justify-content:space-between; gap:22px; margin-bottom:18px; padding:20px; border:1px solid rgba(255,197,56,.15); border-radius:22px; background:radial-gradient(circle at 0 0,rgba(255,197,56,.085),transparent 33%),radial-gradient(circle at 100% 0,rgba(255,59,212,.09),transparent 36%),var(--panel); box-shadow:0 20px 65px rgba(0,0,0,.22); }
.employee-detail-identity { display:flex; align-items:center; gap:16px; min-width:0; }
.employee-detail-avatar { flex:0 0 64px; width:64px; height:64px; display:grid; place-items:center; border-radius:19px; border:1px solid rgba(255,197,56,.36); color:#ffe2a0; background:linear-gradient(145deg,rgba(255,197,56,.14),rgba(255,59,212,.09),rgba(37,168,255,.07)); font-size:24px; font-weight:900; box-shadow:inset 0 0 30px rgba(255,197,56,.05),0 0 24px rgba(255,197,56,.05); }
.employee-detail-identity h1 { font-size:clamp(30px,4vw,48px); }
.employee-detail-identity .muted { margin-top:7px; }
.employee-detail-badges { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.rank-badge { padding:8px 10px; border:1px solid rgba(255,197,56,.2); border-radius:999px; color:#ffdd84; background:rgba(255,197,56,.055); font-size:10px; font-weight:900; }
.employee-detail-period { margin-bottom:18px; }
.employee-kpi-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.employee-kpi { min-height:124px; padding:16px; border:1px solid var(--line); border-radius:18px; background:var(--panel); display:flex; flex-direction:column; justify-content:center; }
.employee-kpi span { color:#8e8496; font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.employee-kpi strong { margin-top:7px; font-size:22px; letter-spacing:-.035em; }
.employee-kpi small { margin-top:7px; color:#7f7586; font-size:9px; line-height:1.4; }
.employee-kpi.featured { border-color:rgba(255,197,56,.25); background:radial-gradient(circle at 100% 0,rgba(255,197,56,.1),transparent 55%),var(--panel); }
.employee-kpi.pink { border-color:rgba(255,59,212,.2); background:radial-gradient(circle at 100% 0,rgba(255,59,212,.09),transparent 55%),var(--panel); }
.employee-kpi.gold { border-color:rgba(255,197,56,.18); }
.employee-kpi.blue { border-color:rgba(37,168,255,.2); background:radial-gradient(circle at 100% 0,rgba(37,168,255,.08),transparent 55%),var(--panel); }
.employee-kpi.purple { border-color:rgba(158,72,255,.2); background:radial-gradient(circle at 100% 0,rgba(158,72,255,.08),transparent 55%),var(--panel); }
.employee-kpi.danger { border-color:rgba(255,108,132,.2); background:radial-gradient(circle at 100% 0,rgba(255,108,132,.07),transparent 55%),var(--panel); }
.employee-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:14px; }
.employee-snapshot-panel { padding:18px; }
.employee-stat-list { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--line); }
.employee-stat-list > div { display:flex; justify-content:space-between; gap:12px; padding:11px 5px; border-bottom:1px solid var(--line); }
.employee-stat-list > div:nth-child(odd) { padding-right:14px; border-right:1px solid var(--line); }
.employee-stat-list > div:nth-child(even) { padding-left:14px; }
.employee-stat-list span { color:var(--muted); font-size:10px; }
.employee-stat-list strong { font-size:11px; }
.service-summary-panel { border-color:rgba(37,168,255,.17); background:radial-gradient(circle at 100% 0,rgba(37,168,255,.08),transparent 48%),var(--panel); }
.service-total-display { display:flex; align-items:end; gap:10px; padding:4px 2px 16px; }
.service-total-display strong { font-size:40px; letter-spacing:-.05em; color:#e7f7ff; }
.service-total-display span { padding-bottom:5px; color:var(--muted); font-size:10px; }
.employee-history-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:14px; }
.employee-history-panel { padding:17px; min-width:0; }
.employee-mini-table { display:grid; border-top:1px solid var(--line); }
.employee-mini-row { display:grid; grid-template-columns:116px minmax(0,1fr) 105px 28px; gap:10px; align-items:center; padding:11px 3px; border-bottom:1px solid var(--line); min-width:0; }
.employee-mini-row time { color:#8e8595; font-size:9px; line-height:1.35; }
.employee-mini-row > div { min-width:0; display:grid; gap:3px; }
.employee-mini-row > div strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.employee-mini-row > div small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:9px; }
.employee-mini-row > strong { text-align:right; white-space:nowrap; font-size:11px; }
.employee-mini-row > a { width:26px; height:26px; display:grid; place-items:center; border:1px solid var(--line); border-radius:8px; color:#8f8597; }
.employee-mini-row > a:hover { color:#fff; border-color:rgba(37,168,255,.28); }
.employee-client-ranking { max-height:310px; overflow:auto; }
.employee-activity-panel { margin-top:0; }
.employee-activity-row { min-width:900px; grid-template-columns:128px 86px minmax(400px,1fr) 128px 34px; }

@media (max-width: 1280px) {
  .metric-grid-five { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .metric-grid-five .main-metric { grid-column: span 2; }
  .metric-grid-five .metric-card:last-child { grid-column: span 1; }
  .employee-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .employee-kpi-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .overview-grid, .employee-detail-grid, .employee-history-grid { grid-template-columns:1fr; }
  .team-summary-grid { grid-template-columns:1fr 1fr; }
  .service-summary-grid { grid-template-columns:1fr 1fr; }
  .employee-detail-hero { align-items:flex-start; flex-direction:column; }
  .employee-detail-badges { justify-content:flex-start; }
  .employee-directory-search { width:100%; }
}

@media (max-width: 700px) {
  .page-shell { width:min(100% - 24px,1380px); }
  .site-header { grid-template-columns:1fr auto; padding:12px 14px; }
  .main-nav { grid-row:2; grid-column:1/-1; width:100%; justify-content:center; overflow-x:auto; }
  .account > span { display:none; }
  .metric-grid-five { grid-template-columns:1fr 1fr; }
  .metric-grid-five .main-metric { grid-column:1/-1; }
  .employee-card-grid { grid-template-columns:1fr; }
  .employee-kpi-grid { grid-template-columns:1fr 1fr; }
  .employee-profile-stats { grid-template-columns:1fr 1fr 1fr; }
  .employee-directory-search { align-items:stretch; flex-direction:column; }
  .employee-directory-search input { min-width:0; width:100%; }
}

@media (max-width: 520px) {
  .metric-grid-five, .team-summary-grid, .employee-kpi-grid { grid-template-columns:1fr; }
  .metric-grid-five .main-metric { grid-column:auto; }
  .employee-profile-stats { grid-template-columns:1fr 1fr; }
  .employee-stat-list { grid-template-columns:1fr; }
  .employee-stat-list > div:nth-child(odd) { padding-right:5px; border-right:0; }
  .employee-stat-list > div:nth-child(even) { padding-left:5px; }
  .employee-detail-identity { align-items:flex-start; }
  .employee-detail-avatar { width:54px; height:54px; flex-basis:54px; border-radius:16px; }
}
