[hidden] { display: none !important; }
.page-description { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.sidebar { position: sticky; top: 70px; height: calc(100vh - 70px); overflow-y: auto; }
.sidebar-title { margin-top: 20px; }
.nav-button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--ink); text-align: left; }
.nav-button:hover, .nav-button.active { border-color: #cfe4e7; background: #edf6f7; }
.nav-button span:last-child { display: flex; min-width: 0; flex-direction: column; }
.nav-button small { margin-top: 4px; color: var(--muted); }
.nav-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #0b4f6c, #18a6a1); color: #fff; font-size: 18px; font-weight: 800; }
.sidebar > .nav-button + .nav-button { margin-top: 10px; }
.company-button { display: none; }
.danger { padding: 10px 16px; border: 1px solid #f1c7c3; border-radius: 10px; background: #fff4f2; color: #b42318; font-weight: 700; }
.danger:hover { border-color: #dd8f87; background: #ffe9e6; }
.danger:disabled { cursor: not-allowed; opacity: .45; }
.employee-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 210px; align-items: end; gap: 16px; }
.employee-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.employee-admin-card { display: grid; min-width: 0; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px; border: 1px solid #d9e7eb; border-radius: 17px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 8px 25px #10304409; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.employee-admin-card:hover, .employee-admin-card.active { border-color: #81c9c7; box-shadow: 0 13px 32px #0b4f6c14; transform: translateY(-1px); }
.employee-admin-photo { width: 84px; height: 108px; border-radius: 12px; background: #e6eef1; object-fit: cover; }
.employee-admin-copy { display: flex; min-width: 0; flex-direction: column; gap: 9px; }
.employee-admin-name { display: flex; min-width: 0; align-items: baseline; gap: 9px; }
.employee-admin-name strong { overflow: hidden; color: var(--navy); font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.employee-admin-name small, .employee-admin-title { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.employee-admin-title { font-size: 13px; }
.employee-admin-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.employee-admin-badges small { margin: 0 !important; padding: 4px 7px; border-radius: 999px; font-size: 10px !important; }
.owner-state { background: #f0f3f5; color: #647783; }
.owner-state.bound { background: #e5f6ef; color: #16734c; }
.access-state { background: #e8f2f7; color: #0b5872; }
.employee-admin-arrow { color: #138d8a; font-size: 12px; font-weight: 800; white-space: nowrap; }
.employee-empty { grid-column: 1 / -1; padding: 60px 24px; color: var(--muted); text-align: center; }
.employee-empty strong { color: var(--navy); font-size: 19px; }
.employee-empty p { margin-bottom: 0; }
.metric-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.metric-card { position: relative; overflow: hidden; min-height: 146px; padding: 22px; border: 1px solid #d9e7eb; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px #1030440a; }
.metric-card::after { position: absolute; right: -30px; bottom: -54px; width: 118px; height: 118px; border: 22px solid #18a6a112; border-radius: 50%; content: ''; }
.metric-card span, .metric-card small { display: block; color: var(--muted); }
.metric-card strong { display: block; margin: 14px 0 7px; color: var(--navy); font-size: 36px; line-height: 1; }
.metric-1 { background: linear-gradient(145deg, #073d5a, #0b6074); }
.metric-1 span, .metric-1 small { color: #d7eef1aa; }
.metric-1 strong { color: #fff; }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 18px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-title h3 { margin: 0 0 5px; }
.panel-title p { margin: 0; color: var(--muted); font-size: 13px; }
.daily-chart { display: flex; height: 210px; align-items: flex-end; gap: 5px; padding-top: 20px; border-bottom: 1px solid var(--line); }
.day-column { position: relative; display: flex; height: 100%; min-width: 2px; flex: 1; align-items: flex-end; }
.day-column .bar { width: 100%; min-height: 2px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #1bc1b8, #0b5872); transition: height .25s ease; }
.day-column small { position: absolute; bottom: -22px; left: 50%; color: #83949e; font-size: 9px; transform: translateX(-50%); white-space: nowrap; }
.source-chart { display: flex; flex-direction: column; gap: 25px; padding: 10px 0; }
.source-row > div:first-child { display: flex; justify-content: space-between; margin-bottom: 9px; }
.source-row span { color: var(--muted); font-size: 13px; }
.source-track { overflow: hidden; height: 9px; border-radius: 999px; background: #e8f0f2; }
.source-track i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b4f6c, #1dbbb2); transform-origin: left center; }
.ranking { display: flex; flex-direction: column; }
.rank-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 90px 90px; align-items: center; min-height: 72px; border-top: 1px solid #e7eef1; }
.rank-row:first-child { border-top: 0; }
.rank-index { color: #86a0ad; font-size: 13px; font-weight: 800; }
.rank-person, .rank-number { display: flex; flex-direction: column; }
.rank-person small, .rank-number small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.rank-number { text-align: right; }
.rank-number strong { color: var(--navy); font-size: 20px; }
.empty-copy { color: var(--muted); text-align: center; }
.owner-panel { border-color: #cfe4e7; background: linear-gradient(145deg, #fff, #f4fbfa); }
.owner-badge { padding: 6px 11px; border-radius: 999px; background: #eef2f4; color: #637784; font-size: 12px; font-weight: 800; }
.owner-badge.bound { background: #e4f6ef; color: #16734c; }
.owner-warning { padding: 11px 13px; border-radius: 10px; background: #fff5df; color: #8a5c00; font-size: 13px; }
.owner-permission-field { margin: 16px 0; padding: 16px; border: 1px solid #d4e7e8; border-radius: 12px; background: #fff; }
.owner-permission-field small { color: var(--muted); font-weight: 400; line-height: 1.55; }
.owner-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.owner-code-result { margin-top: 16px; padding: 16px; border: 1px dashed #8cc9c6; border-radius: 12px; background: #eef9f8; }
.owner-code-result > span { display: block; margin-bottom: 11px; color: var(--muted); font-size: 13px; }
.owner-code-result > div { display: flex; align-items: center; gap: 12px; }
.owner-code-result code { color: #07566d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 27px; font-weight: 900; letter-spacing: .14em; }
#wechatSettingsDialog form { display: flex; width: min(430px, 82vw); flex-direction: column; gap: 16px; }
#wechatSettingsDialog h2 { margin: 0; }
#wechatSettingsDialog .eyebrow { margin: 0; }
.dialog-copy { margin: -7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.settings-status { display: flex; flex-direction: column; gap: 5px; padding: 13px 15px; border-radius: 11px; font-size: 13px; }
.settings-status.configured { background: #e8f7f1; color: #176946; }
.settings-status.missing { background: #fff5df; color: #855900; }
.settings-status span { opacity: .82; line-height: 1.55; }
.settings-safety { margin: -6px 0 0; color: #8a5c00; font-size: 12px; }
.repeater-panel { padding: 24px; }
.add-button { padding: 8px 13px; border: 1px solid #bcdce0; border-radius: 9px; background: #eff9f8; color: #087b78; font-size: 13px; font-weight: 700; }
.repeater { display: flex; flex-direction: column; gap: 13px; }
.repeater-item { padding: 18px; border: 1px solid #dce7eb; border-radius: 13px; background: #f9fbfc; }
.repeater-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.repeater-head > div { display: flex; flex-direction: column; }
.repeater-head small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.remove-button { padding: 6px 9px; border: 0; border-radius: 7px; background: #fff0ef; color: #b42318; font-size: 12px; }
.compact-row { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(180px, 1.3fr) auto; align-items: end; gap: 14px; }
.wide-field { grid-column: 1 / -1; }
.product-editor { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
.product-photo { display: grid; overflow: hidden; min-height: 185px; place-items: center; border-radius: 12px; background: #e6eef1; }
.product-photo img { width: 100%; height: 155px; object-fit: cover; }
.product-photo span { color: var(--muted); }
.product-photo .upload-button { width: 100%; border-radius: 0; text-align: center; }
.product-fields { min-width: 0; }
@media (max-width: 1100px) { .employee-admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .metric-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .analytics-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .sidebar { position: static; height: auto; } .metric-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .employee-toolbar { grid-template-columns: 1fr; } .product-editor { grid-template-columns: 1fr; } .product-photo { min-height: 230px; } .product-photo img { height: 210px; } .compact-row { grid-template-columns: 1fr; } .remove-button { justify-self: start; } }
@media (max-width: 560px) { .employee-admin-card { grid-template-columns: 70px minmax(0, 1fr); } .employee-admin-photo { width: 70px; height: 92px; } .employee-admin-arrow { display: none; } }
@media (max-width: 500px) { .metric-cards { grid-template-columns: 1fr; } .rank-row { grid-template-columns: 36px minmax(0, 1fr) 70px 70px; } .metric-card { min-height: 120px; } }
