:root {
  --ink: #132b25;
  --muted: #657b74;
  --line: #dce8e3;
  --surface: #ffffff;
  --canvas: #eef5f2;
  --green-950: #073a32;
  --green-900: #084b40;
  --green-800: #0b6252;
  --green-700: #0e7863;
  --green-600: #149177;
  --green-100: #ddf2eb;
  --green-50: #eef9f5;
  --gold: #e2ad45;
  --gold-light: #f9ebc7;
  --danger: #c84e4e;
  --shadow: 0 14px 38px rgba(21, 69, 58, .08);
  --sidebar: 272px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif; background: radial-gradient(circle at 84% 3%, rgba(20,145,119,.06), transparent 23%), var(--canvas); font-size: 16px; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button { border: 0; cursor: pointer; }

.portal-gate { display: none; min-height: 100vh; padding: 45px 22px; color: white; background: radial-gradient(circle at 78% 18%, rgba(231,198,112,.14), transparent 23%), linear-gradient(145deg, #0a3d34, #126250 62%, #0b4439); position: relative; overflow: hidden; }
.portal-gate::before, .portal-gate::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; pointer-events: none; }
.portal-gate::before { width: 430px; height: 430px; left: -230px; bottom: -180px; box-shadow: 0 0 0 70px rgba(255,255,255,.02), 0 0 0 140px rgba(255,255,255,.015); }
.portal-gate::after { width: 330px; height: 330px; right: -150px; top: -170px; box-shadow: 0 0 0 55px rgba(255,255,255,.018); }
body.portal-locked .portal-gate { display: grid; place-items: center; }
body.portal-locked .app-shell { display: none; }
.portal-gate-inner { width: min(890px, 100%); position: relative; z-index: 1; }
.portal-brand { text-align: center; }
.portal-logo { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; color: #f0ce76; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 15px; }
.portal-logo svg { width: 28px; height: 28px; }
.portal-brand > span { color: #efd07d; font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.portal-brand h1 { margin: 9px 0 8px; font-size: 30px; font-weight: 600; letter-spacing: .04em; }
.portal-brand p { margin: 0; color: rgba(255,255,255,.58); font-size: 14px; }
.portal-options { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.portal-card { min-height: 360px; padding: 27px; color: var(--ink); background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; box-shadow: 0 24px 70px rgba(2,30,24,.22); position: relative; overflow: hidden; }
.portal-card::after { content: ""; position: absolute; right: -45px; top: -55px; width: 130px; height: 130px; background: var(--green-50); border-radius: 50%; }
.portal-card-icon { width: 45px; height: 45px; display: grid; place-items: center; color: var(--green-700); background: var(--green-100); border-radius: 12px; position: relative; z-index: 1; }
.portal-card-icon svg { width: 22px; height: 22px; }
.reporter-card .portal-card-icon { color: #9c741f; background: #f8edd1; }
.portal-tag { display: block; margin-top: 20px; color: var(--green-700); font-size: 10px; font-weight: 800; letter-spacing: .19em; }
.reporter-card .portal-tag { color: #9c741f; }
.portal-card h2 { margin: 6px 0 7px; font-size: 21px; }
.portal-card p { min-height: 34px; margin: 0; color: #7d8a86; font-size: 12px; line-height: 1.7; }
.portal-card ul { min-height: 81px; margin: 17px 0 20px; padding: 0; display: grid; gap: 8px; list-style: none; color: #53655f; font-size: 12px; }
.portal-card li::before { content: "✓"; margin-right: 8px; color: var(--green-600); font-weight: 700; }
.portal-unit-select { min-height: 81px; margin: 17px 0 20px; display: grid; align-content: start; gap: 7px; color: #53655f; font-size: 12px; }
.portal-unit-select select { width: 100%; height: 43px; padding: 0 11px; color: #213e36; background: #f7faf9; border: 1px solid #d9e4e0; border-radius: 8px; outline: none; }
.portal-unit-select select:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(29,133,111,.1); }
.portal-card .primary-button { position: relative; z-index: 1; }
.portal-footnote { margin: 20px 0 0; color: rgba(255,255,255,.42); font-size: 11px; text-align: center; }
.login-panel { display: none; width: min(430px, 100%); margin: 30px auto 0; padding: 28px 30px 30px; color: var(--ink); background: rgba(255,255,255,.98); border-radius: 16px; box-shadow: 0 24px 70px rgba(2,30,24,.24); position: relative; }
body.login-open .portal-options { display: none; }
body.login-open .login-panel { display: block; }
.login-back { padding: 0; display: flex; align-items: center; gap: 4px; color: #74827e; background: transparent; font-size: 11px; }
.login-back:hover { color: var(--green-700); }
.login-back svg { width: 14px; }
.login-icon { width: 48px; height: 48px; margin: 18px auto 12px; display: grid; place-items: center; color: var(--green-700); background: var(--green-100); border-radius: 13px; }
.login-icon svg { width: 23px; }
.login-panel > .portal-tag, .login-panel > h2, .login-panel > p { text-align: center; }
.login-panel h2 { margin: 6px 0; font-size: 22px; }
.login-panel > p { margin: 0; color: #7d8a86; font-size: 12px; }
.login-panel form { margin-top: 22px; display: grid; gap: 14px; }
.login-panel label, .account-form-body label { display: grid; gap: 7px; color: #52635e; font-size: 12px; }
.login-panel input, .login-panel select, .account-form-body input, .account-form-body select { width: 100%; height: 42px; padding: 0 11px; color: var(--ink); background: #f8faf9; border: 1px solid #d9e3df; border-radius: 8px; outline: none; }
.login-panel input:focus, .login-panel select:focus, .account-form-body input:focus, .account-form-body select:focus { background: white; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(29,133,111,.1); }
.password-input { position: relative; }
.password-input input { padding-right: 42px; }
.password-input button { position: absolute; right: 5px; top: 5px; width: 32px; height: 32px; display: grid; place-items: center; color: #7b8884; background: transparent; border-radius: 6px; }
.password-input button:hover { background: #eaf1ee; }
.password-input svg { width: 16px; }
.login-error { min-height: 15px; margin: -3px 0 0 !important; color: var(--danger) !important; font-size: 11px !important; text-align: left !important; }
.default-account { margin-top: 16px; padding: 10px 12px; color: #6f7d79; background: #f5f8f7; border: 1px dashed #d8e3df; border-radius: 8px; font-size: 11px; line-height: 1.65; }
.default-account b { color: #29473e; }
.register-invitation { margin-top: 17px; color: #7d8a86; font-size: 13px; text-align: center; }
.register-invitation button, .return-login { padding: 4px; color: var(--green-700); background: transparent; font-size: 13px; }
.register-invitation button:hover, .return-login:hover { text-decoration: underline; }
.return-login { justify-self: center; }
body.reporter-mode .admin-only { display: none !important; }
body.reporter-mode .ranking-panel { display: none; }
body.reporter-mode .quick-calendar-panel { grid-column: 1 / -1; }
body.reporter-mode #ledgerDepartment { display: none; }
body.reporter-mode .entry-dialog #entryDepartment { color: #5b6a65; background: #edf2f0; cursor: not-allowed; }
body.admin-mode .day-entry { cursor: default; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: var(--sidebar); padding: 27px 18px 20px; color: #fff; background: linear-gradient(165deg, #114e43 0%, #0c3e35 58%, #0a332d 100%); display: flex; flex-direction: column; box-shadow: 9px 0 32px rgba(8, 49, 41, .13); }
.sidebar::after { content: ""; position: absolute; inset: auto -50px 80px auto; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; box-shadow: 0 0 0 36px rgba(255,255,255,.025), 0 0 0 72px rgba(255,255,255,.018); pointer-events: none; }
.brand { display: flex; align-items: center; gap: 13px; padding: 0 8px 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #fbdf9c; }
.brand-mark svg { width: 24px; height: 24px; }
.brand strong { display: block; font-size: 21px; letter-spacing: .12em; }
.brand span { display: block; margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.58); letter-spacing: .05em; }
.main-nav { display: grid; gap: 7px; margin-top: 25px; }
.nav-item { position: relative; width: 100%; min-height: 47px; padding: 0 14px; display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.68); background: transparent; border-radius: 10px; text-align: left; transition: .2s ease; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: white; background: rgba(255,255,255,.115); box-shadow: inset 3px 0 #efc767; }
.nav-item svg { width: 19px; }
.nav-item em { margin-left: auto; min-width: 21px; height: 21px; padding: 0 6px; display: inline-grid; place-items: center; background: var(--gold); color: #173b31; border-radius: 11px; font-size: 13px; font-style: normal; font-weight: 700; }
.sidebar-note { position: relative; z-index: 1; margin-top: auto; display: flex; gap: 11px; padding: 15px 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.045); }
.note-icon { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; color: #f1c96e; }
.note-icon svg { width: 18px; }
.sidebar-note strong { font-size: 14px; font-weight: 600; }
.sidebar-note p { margin: 4px 0 0; color: rgba(255,255,255,.48); font-size: 12px; line-height: 1.6; }
.user-card { position: relative; z-index: 1; margin-top: 14px; padding: 15px 4px 0; border-top: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; gap: 10px; }
.avatar { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #d9b45c; color: #183f35; font-weight: 700; }
.user-card div:nth-child(2) { min-width: 0; }
.user-card strong, .user-card span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card strong { font-size: 14px; }
.user-card span { margin-top: 3px; font-size: 12px; color: rgba(255,255,255,.48); }
.user-card button { margin-left: auto; padding: 6px; color: rgba(255,255,255,.55); background: transparent; border-radius: 7px; }
.user-card button:hover { color: white; background: rgba(255,255,255,.08); }

.main-content { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { min-height: 88px; padding: 17px 34px; display: flex; align-items: center; gap: 18px; background: rgba(255,255,255,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); position: sticky; z-index: 20; top: 0; }
.page-heading p { margin: 0 0 4px; color: var(--green-700); font-size: 12px; font-weight: 700; letter-spacing: .17em; }
.page-heading h1 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: .01em; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-button { width: 39px; height: 39px; display: grid; place-items: center; color: var(--green-800); background: #f0f5f3; border: 1px solid #e1e9e6; border-radius: 9px; }
.icon-button:hover { background: var(--green-100); }
.month-switcher { height: 39px; display: flex; align-items: center; background: white; border: 1px solid #dfe7e4; border-radius: 9px; overflow: hidden; }
.month-switcher button { height: 100%; padding: 0 10px; background: transparent; }
.month-switcher button:hover { background: #f4f7f6; }
.month-switcher .month-label { min-width: 103px; padding: 0 4px; font-weight: 600; font-size: 15px; }
.month-switcher svg { width: 16px; }
.primary-button, .soft-button, .ghost-button { min-height: 39px; border-radius: 9px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; transition: .18s ease; }
.primary-button { color: white; background: var(--green-700); box-shadow: 0 5px 12px rgba(22,112,94,.18); }
.primary-button:hover { background: var(--green-800); transform: translateY(-1px); }
.primary-button svg, .soft-button svg { width: 17px; }
.soft-button { color: var(--green-800); background: var(--green-50); border: 1px solid #d8e9e3; }
.soft-button:hover { background: var(--green-100); }
.ghost-button { color: #596b65; background: white; border: 1px solid #dfe6e3; }
.ghost-button:hover { background: #f4f7f6; }
.compact { min-height: 36px; padding: 0 13px; }
.full { width: 100%; }
.mobile-menu { display: none; width: 38px; height: 38px; place-items: center; background: #eef4f2; border-radius: 9px; }

.view { display: none; padding: 28px 34px 46px; animation: fade-in .25s ease; }
.view.active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(3px); } }

.welcome-strip { min-height: 128px; padding: 25px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: white; background: linear-gradient(108deg, #145b4d 0%, #197360 58%, #1d7b68 100%); border-radius: 15px; box-shadow: 0 12px 28px rgba(18, 91, 76, .14); position: relative; overflow: hidden; }
.welcome-strip::after { content: ""; position: absolute; right: 7%; top: -110px; width: 310px; height: 310px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.03), 0 0 0 95px rgba(255,255,255,.02); }
.welcome-strip > * { position: relative; z-index: 1; }
.eyebrow { color: #edcf87; font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.welcome-strip h2 { margin: 8px 0 7px; font-size: 23px; font-weight: 500; }
.welcome-strip h2 b { color: #f1d48f; font-weight: 650; }
.welcome-strip p { margin: 0; color: rgba(255,255,255,.65); font-size: 14px; }
.welcome-strip .soft-button { color: white; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); }
.welcome-strip .soft-button:hover { background: rgba(255,255,255,.16); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.kpi-card { min-height: 132px; padding: 20px 21px; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi-card::after { content: ""; position: absolute; width: 85px; height: 85px; border-radius: 50%; right: -30px; bottom: -37px; background: var(--tint); }
.kpi-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
.kpi-icon { width: 32px; height: 32px; display: grid; place-items: center; color: var(--accent); background: var(--tint); border-radius: 9px; }
.kpi-icon svg { width: 17px; }
.kpi-value { margin-top: 14px; display: flex; align-items: baseline; gap: 5px; }
.kpi-value strong { font-size: 30px; line-height: 1; letter-spacing: -.03em; }
.kpi-value span { color: #8a9793; font-size: 13px; }
.kpi-foot { margin-top: 11px; color: #94a09c; font-size: 12px; }
.kpi-foot b { color: var(--accent); font-weight: 600; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .9fr); gap: 16px; margin-top: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.trend-panel, .progress-panel, .ranking-panel, .quick-calendar-panel { min-height: 340px; padding: 23px; }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.section-kicker { color: var(--green-600); font-size: 11px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.panel-header h3, .calendar-toolbar h2, .table-toolbar h2, .ledger-head h2 { margin: 6px 0 0; font-size: 18px; font-weight: 650; }
.legend { display: flex; gap: 16px; color: #7f8c88; font-size: 12px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.dot.teal { background: var(--green-700); }
.dot.gold { background: var(--gold); }
.chart-summary { display: flex; align-items: baseline; gap: 9px; margin-top: 23px; }
.chart-summary strong { font-size: 26px; }
.chart-summary span { color: #7d8985; font-size: 13px; }
.chart-summary em { margin-left: auto; color: #8d9995; font-size: 12px; font-style: normal; }
.bar-chart { height: 205px; margin-top: 14px; display: flex; align-items: stretch; gap: 7px; border-bottom: 1px solid #dfe7e4; background: repeating-linear-gradient(to bottom, transparent 0, transparent 50px, #edf1ef 51px); }
.bar-day { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.bar-stack { width: min(16px, 72%); min-height: 2px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 3px 3px 0 0; overflow: hidden; transition: .25s; }
.bar-stack:hover { filter: brightness(.92); }
.bar-online { background: var(--gold); }
.bar-onsite { background: var(--green-700); }
.bar-label { height: 25px; padding-top: 7px; color: #86928e; font-size: 10px; }
.bar-tip { display: none; position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3; min-width: 90px; padding: 7px 8px; color: white; background: #193b33; border-radius: 6px; font-size: 11px; text-align: center; box-shadow: 0 5px 12px rgba(0,0,0,.15); }
.bar-day:hover .bar-tip { display: block; }

.monthly-chart-empty { width: 100%; display: grid; place-items: center; color: #8b9793; font-size: 12px; }
.link-button { padding: 3px; color: var(--green-700); background: transparent; font-size: 13px; }
.progress-visual { margin: 30px 0 25px; display: flex; align-items: center; gap: 19px; }
.progress-ring { --progress: 0deg; width: 88px; height: 88px; flex: 0 0 auto; display: grid; place-items: center; background: conic-gradient(var(--green-700) var(--progress), #eaf0ed 0); border-radius: 50%; position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 9px; background: white; border-radius: 50%; }
.progress-ring span { position: relative; z-index: 1; font-size: 18px; font-weight: 700; }
.progress-visual strong { font-size: 16px; }
.progress-visual p { margin: 6px 0 0; color: #8a9692; font-size: 12px; }
.mini-status-list { display: grid; gap: 9px; }
.mini-status { display: flex; align-items: center; gap: 9px; padding-top: 9px; border-top: 1px dashed #e5ebe8; color: #75827e; font-size: 12px; }
.mini-status b { margin-left: auto; color: #4c5f59; font-size: 12px; }
.mini-status i { width: 7px; height: 7px; border-radius: 50%; }

.ranking-list { margin-top: 17px; display: grid; gap: 12px; }
.rank-item { display: grid; grid-template-columns: 28px minmax(120px, 1fr) minmax(120px, 1.2fr) 64px; align-items: center; gap: 10px; }
.rank-no { width: 23px; height: 23px; display: grid; place-items: center; color: #6d7a76; background: #edf2f0; border-radius: 7px; font-size: 12px; font-weight: 700; }
.rank-item:nth-child(1) .rank-no { color: #785813; background: #f6e7bc; }
.rank-item:nth-child(2) .rank-no { color: #52605c; background: #dfe7e4; }
.rank-name { min-width: 0; }
.rank-name strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.rank-name span { display: block; margin-top: 3px; color: #98a29f; font-size: 10px; }
.rank-bar { height: 5px; background: #edf1ef; border-radius: 3px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--green-600); border-radius: inherit; }
.rank-value { text-align: right; font-size: 13px; font-weight: 650; }

.today-pill { padding: 4px 8px; color: var(--green-700); background: var(--green-100); border-radius: 10px; font-size: 11px; }
.mini-weekdays, .mini-calendar { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.mini-weekdays { margin-top: 23px; color: #8c9894; font-size: 11px; }
.mini-calendar { margin-top: 8px; row-gap: 5px; }
.mini-day { height: 32px; display: grid; place-items: center; background: transparent; border-radius: 50%; font-size: 12px; position: relative; }
.mini-day.blank { pointer-events: none; }
.mini-day.has-data::after { content: ""; position: absolute; bottom: 3px; width: 3px; height: 3px; background: var(--gold); border-radius: 50%; }
.mini-day.today { color: white; background: var(--green-700); }
.mini-day.selected:not(.today) { color: var(--green-800); background: var(--green-100); font-weight: 700; }
.mini-day:hover:not(.blank) { background: #eef4f2; }
.mini-weekdays { display: none; }
.mini-calendar { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mini-day.month-cell { height: 42px; border: 1px solid #e2ebe7; border-radius: 9px; }
.mini-day.month-cell.has-data::after { bottom: 4px; width: 4px; height: 4px; }

.calendar-layout { display: grid; grid-template-columns: minmax(650px, 1fr) 300px; gap: 18px; align-items: start; }
.calendar-panel { padding: 25px; }
.calendar-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.calendar-toolbar-actions { display: flex; gap: 8px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays.month-head { display: block; margin-top: 20px; padding: 10px 12px; color: #667a73; background: #f1f7f4; border: 1px solid #dce9e4; border-radius: 9px; text-align: left; }
.calendar-grid.monthly-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 15px; border: 0; }
.calendar-day.month-card { min-height: 122px; border: 1px solid #e1eae6; border-radius: 10px; }
.calendar-day.month-card .day-number { width: auto; padding: 0 8px; border-radius: 13px; }
.calendar-day.month-card.has-data { background: #f7fbf9; }
.calendar-weekdays { margin-top: 24px; padding: 0 0 10px; color: #87938f; border-bottom: 1px solid var(--line); font-size: 12px; text-align: center; }
.calendar-grid { border-left: 1px solid #edf1ef; }
.calendar-day { min-height: 105px; padding: 9px; text-align: left; vertical-align: top; background: white; border: 0; border-right: 1px solid #edf1ef; border-bottom: 1px solid #edf1ef; position: relative; transition: .15s; }
.calendar-day:hover { z-index: 1; background: #f7faf9; box-shadow: inset 0 0 0 1px #b9d5cc; }
.calendar-day.outside { color: #b1bab7; background: #fafbfb; }
.calendar-day.selected { background: #f1f8f5; box-shadow: inset 0 0 0 2px var(--green-600); }
.calendar-day.today .day-number { color: white; background: var(--green-700); }
.calendar-day .day-number { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 600; }
.calendar-day .day-total-small { margin-top: 14px; display: block; color: var(--green-800); font-size: 16px; font-weight: 700; }
.calendar-day .day-total-small small { margin-left: 2px; color: #8b9793; font-size: 10px; font-weight: 400; }
.calendar-day .entry-count { display: block; margin-top: 4px; color: #87928f; font-size: 10px; }
.calendar-day .import-mark { position: absolute; top: 10px; right: 7px; padding: 2px 4px; color: #8b681b; background: #f9edcd; border-radius: 4px; font-size: 9px; }
.calendar-legend { display: flex; gap: 18px; margin-top: 16px; color: #83908c; font-size: 11px; }
.calendar-legend span { display: flex; align-items: center; gap: 6px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; }
.status-dot.complete { background: var(--green-600); }.status-dot.today { background: #103f35; }.status-dot.imported { background: var(--gold); }

.day-panel { position: sticky; top: 116px; padding: 23px; }
.selected-date-card { padding: 20px; color: white; background: linear-gradient(145deg, #145f50, #0e4b40); border-radius: 12px; text-align: center; }
.selected-date-card span { color: #efd693; font-size: 12px; }
.selected-date-card strong { display: block; margin: 4px 0 2px; font-family: Georgia, serif; font-size: 46px; font-weight: 500; line-height: 1; }
.selected-date-card p { margin: 0; color: rgba(255,255,255,.62); font-size: 12px; }
.day-total { margin: 20px 0 15px; display: flex; align-items: center; justify-content: space-between; }
.day-total span { color: #7e8b87; font-size: 13px; }
.day-total strong { color: var(--green-700); font-size: 23px; }
.day-entry-list { max-height: 385px; overflow-y: auto; display: grid; gap: 8px; margin-bottom: 16px; }
.day-entry { padding: 12px; background: #f7f9f8; border: 1px solid #e6ebe9; border-radius: 9px; cursor: pointer; }
.day-entry:hover { border-color: #b9d6cd; }
.day-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.day-entry-head strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.source-tag { flex: 0 0 auto; padding: 2px 5px; color: #886416; background: #faedc8; border-radius: 4px; font-size: 9px; }
.day-entry p { margin: 6px 0 0; color: #8a9692; font-size: 11px; }
.empty-state { padding: 32px 12px; color: #8b9793; text-align: center; }
.empty-state svg { width: 34px; height: 34px; color: #b7c4bf; }
.empty-state strong { display: block; margin-top: 9px; color: #60716b; font-size: 13px; }
.empty-state p { margin: 4px 0 0; font-size: 11px; line-height: 1.6; }

.table-panel { overflow: hidden; }
.table-toolbar { padding: 25px 26px 19px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.table-toolbar p, .ledger-head p { margin: 8px 0 0; color: #87938f; font-size: 12px; }
.table-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.table-actions button { white-space: nowrap; }
.filter-row { min-height: 58px; padding: 10px 26px; display: flex; align-items: center; gap: 10px; background: #f8faf9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-box { width: 230px; height: 36px; padding: 0 10px; display: flex; align-items: center; gap: 8px; background: white; border: 1px solid #dde5e2; border-radius: 8px; }
.search-box svg { width: 15px; color: #8b9793; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: none; font-size: 13px; }
.filter-row select, .filter-row input[type="date"] { height: 36px; min-width: 135px; padding: 0 10px; color: #54645f; background: white; border: 1px solid #dde5e2; border-radius: 8px; outline: none; font-size: 13px; }
.record-count { margin-left: auto; color: #8b9693; font-size: 12px; }
.summary-presets { padding: 12px 26px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); }
.summary-presets-label { margin-right: 2px; color: #788982; font-size: 12px; }
.summary-presets .compact { min-height: 32px; padding: 0 11px; font-size: 13px; }
.summary-presets button[aria-pressed="true"] { color: white; background: var(--green-700); border-color: var(--green-700); }
.table-scroll { overflow: auto; max-height: calc(100vh - 285px); }
.summary-table { width: 100%; min-width: 1560px; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.summary-table th, .summary-table td { height: 43px; padding: 7px 10px; border-bottom: 1px solid #edf1ef; border-right: 1px solid #f0f3f2; text-align: center; white-space: nowrap; }
.summary-table th { position: sticky; z-index: 4; top: 0; color: #f4f8f7; background: #174f45; font-weight: 600; line-height: 1.6; }
.summary-table th[data-metric-label] { min-width: 105px; white-space: normal; }
.summary-table th[data-metric-label="noon"] { min-width: 140px; }
.summary-table th[data-metric-label="extended"] { min-width: 180px; width: 180px; }
.summary-table th:first-child { left: 0; z-index: 6; }
.summary-table th:nth-child(4) { min-width: 180px; text-align: left; }
.summary-table td:first-child { position: sticky; left: 0; z-index: 2; background: inherit; }
.summary-table td:nth-child(4) { text-align: left; font-weight: 600; }
.summary-table tbody tr { background: white; }
.summary-table tbody tr:hover { background: #f3f8f6; }
.summary-table .accent-col { color: #725411; background: #dcb457; }
.summary-table td.accent-col { color: #145647; background: #edf7f3; font-weight: 750; }
.summary-table td.window-group-total { min-width: 140px; color: var(--green-800); background: #f1f8f5; vertical-align: middle; }
.window-group-label { display: block; margin-bottom: 6px; color: #71867e; font-size: 11px; }
.window-group-value { font-size: 17px; font-weight: 700; }
.summary-table tfoot td { position: sticky; bottom: 0; z-index: 3; color: white; background: #123f37; font-weight: 650; }
.summary-table tfoot td:first-child { z-index: 4; background: #123f37; }
.zero { color: #bcc5c2; }

.ledger-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.ledger-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.ledger-stat { padding: 18px 20px; display: flex; align-items: center; gap: 13px; background: white; border: 1px solid var(--line); border-radius: 11px; }
.ledger-stat i { width: 36px; height: 36px; display: grid; place-items: center; color: var(--green-700); background: var(--green-100); border-radius: 10px; font-style: normal; }
.ledger-stat i svg { width: 18px; }
.ledger-stat strong { display: block; font-size: 21px; }.ledger-stat span { display: block; margin-top: 2px; color: #87938f; font-size: 11px; }
.ledger-panel { overflow: hidden; }
.ledger-filters { border-top: 0; }
.ledger-month-picker { display:flex; align-items:center; gap:8px; }
.ledger-year-picker { width:118px; position:relative; }.ledger-year-picker input { width:100%; height:36px; padding:0 31px 0 10px; color:#54645f; background:white; border:1px solid #dde5e2; border-radius:8px; outline:none; }.ledger-year-picker input:focus { border-color:var(--green-600); box-shadow:0 0 0 3px rgba(29,133,111,.1); }.ledger-year-picker em { position:absolute; right:10px; top:50%; transform:translateY(-50%); color:#5d6f69; font-size:12px; font-style:normal; pointer-events:none; }.ledger-month-picker select { min-width:115px; height:36px; padding:0 10px; color:#54645f; background:white; border:1px solid #dde5e2; border-radius:8px; outline:none; }
.ledger-list { padding: 9px 20px 20px; }
.ledger-row { display: grid; grid-template-columns: 100px minmax(180px, 1fr) repeat(3, 105px) 95px; align-items: center; gap: 12px; min-height: 66px; padding: 9px 7px; border-bottom: 1px solid #edf1ef; }
.ledger-row:hover { background: #fafcfb; }
.ledger-date strong, .ledger-unit strong { display: block; font-size: 13px; }.ledger-date span, .ledger-unit span { display: block; margin-top: 3px; color: #909b98; font-size: 10px; }
.ledger-metric { text-align: right; }.ledger-metric strong { display: block; font-size: 15px; }.ledger-metric span { display: block; margin-top: 3px; color: #929d99; font-size: 10px; }
.ledger-actions { display: flex; justify-content: flex-end; gap: 5px; }
.ledger-actions button { width: 30px; height: 30px; display: grid; place-items: center; color: #71807b; background: #f1f5f3; border-radius: 7px; }.ledger-actions button:hover { color: var(--green-700); background: var(--green-100); }.ledger-actions button.delete:hover { color: var(--danger); background: #fbeeee; }.ledger-actions svg { width: 14px; }

.account-panel { overflow: hidden; }
.account-table-wrap { max-height: calc(100vh - 330px); overflow: auto; }
.account-table { width: 100%; min-width: 1080px; border-collapse: collapse; font-size: 12px; }
.account-table th, .account-table td { height: 50px; padding: 9px 14px; border-bottom: 1px solid #edf1ef; text-align: left; }
.account-table th { position: sticky; z-index: 2; top: 0; color: #52645e; background: #f7faf9; font-weight: 600; }
.account-table tbody tr:hover { background: #fafcfb; }
.account-name strong, .account-name span { display: block; }.account-name strong { font-size: 13px; }.account-name span { margin-top: 3px; color: #96a19e; font-size: 10px; }
.role-chip, .status-chip { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 5px; font-size: 10px; }
.role-chip.admin { color: #735315; background: #f8eccb; }.role-chip.reporter { color: #16604f; background: #e7f3ef; }
.status-chip.active { color: #176451; background: #e7f3ef; }.status-chip.disabled { color: #8a5555; background: #f8eaea; }
.account-actions { display: flex; align-items: center; gap: 6px; }
.account-actions button { min-height: 28px; padding: 0 9px; color: #53655f; background: #f0f4f2; border-radius: 6px; font-size: 10px; }
.account-actions button:hover { color: var(--green-700); background: var(--green-100); }
.account-actions button.danger:hover { color: var(--danger); background: #fbeeee; }
.account-password { min-width: 165px; display: flex; align-items: center; gap: 7px; }
.account-password code { min-width: 88px; max-width: 160px; padding: 5px 7px; overflow-x: auto; color: #26483f; background: #f0f5f3; border-radius: 6px; font-family: Consolas, monospace; font-size: 11px; white-space: nowrap; }
.account-password button { min-height: 28px; padding: 0 9px; color: var(--green-700); background: var(--green-100); border-radius: 6px; font-size: 10px; }
.password-unavailable { color: #9a6d18; font-size: 11px; white-space: nowrap; }

dialog { padding: 0; border: 0; border-radius: 15px; box-shadow: 0 28px 90px rgba(13, 44, 37, .28); color: var(--ink); }
dialog::backdrop { background: rgba(9, 31, 27, .48); backdrop-filter: blur(3px); }
.entry-dialog { width: min(780px, calc(100vw - 30px)); max-height: calc(100vh - 36px); }
.entry-dialog form { max-height: calc(100vh - 36px); display: flex; flex-direction: column; }
.dialog-header { flex: 0 0 auto; padding: 22px 25px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 5px 0 0; font-size: 20px; }.dialog-header p { margin: 6px 0 0; color: #82908b; font-size: 12px; }
.dialog-header.simple { align-items: center; }
.dialog-header.simple h2 { margin: 0; }
.dialog-close { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: #798681; background: #f1f5f3; border-radius: 9px; }.dialog-close:hover { color: #233d35; background: #e7eeeb; }
.dialog-body { padding: 20px 25px 22px; overflow-y: auto; }
.form-row { display: grid; gap: 13px; }.form-row.two { grid-template-columns: repeat(2, 1fr); }.form-row.three { grid-template-columns: repeat(3, 1fr); }
.form-row label, .form-row .form-field, .notes-field, .jump-fields label { display: grid; gap: 7px; color: #576963; font-size: 12px; }
.form-row label span b, .form-row .form-field > span b { color: var(--danger); }
.form-row input, .form-row select, .notes-field textarea, .jump-fields input, .jump-fields select { width: 100%; height: 39px; padding: 0 11px; color: var(--ink); background: #fbfcfc; border: 1px solid #dce5e1; border-radius: 8px; outline: none; transition: .15s; }
.form-row input:focus, .form-row select:focus, .notes-field textarea:focus, .jump-fields input:focus, .jump-fields select:focus { background: white; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(29,133,111,.1); }
.chinese-month-picker { display: grid; grid-template-columns: minmax(130px,1fr) minmax(110px,.8fr); gap: 9px; }
.year-picker { position: relative; }.year-picker input { padding-right: 32px; }.year-picker em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #4f635c; font-size: 13px; font-style: normal; pointer-events: none; }
.department-context { min-height: 29px; margin: 10px 0 0; display: flex; align-items: center; gap: 6px; color: #687873; font-size: 11px; }
.context-chip { padding: 4px 7px; background: #eef4f2; border-radius: 5px; }
.auto-total-card { margin: 10px 0 18px; padding: 14px 17px; display: flex; align-items: center; gap: 14px; color: white; background: linear-gradient(100deg, #145a4c, #1a705e); border-radius: 10px; }
.auto-total-card span { font-size: 12px; }.auto-total-card strong { margin-left: auto; font-size: 25px; }.auto-total-card em { color: rgba(255,255,255,.62); font-size: 11px; font-style: normal; }
.form-section-title { margin: 15px 0 9px; display: flex; align-items: center; justify-content: space-between; color: #2d4941; font-size: 13px; font-weight: 650; }.form-section-title button { color: var(--green-700); background: transparent; font-size: 11px; }.form-section-title button:hover { text-decoration: underline; }
.compact-inputs { row-gap: 12px; align-items: end; }
.compact-inputs label > span { line-height: 1.6; overflow-wrap: anywhere; }
.notes-field { margin-top: 16px; }.notes-field textarea { height: 70px; padding: 10px 11px; resize: vertical; }
.dialog-footer { flex: 0 0 auto; min-height: 66px; padding: 12px 25px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #f7f9f8; border-top: 1px solid var(--line); }.dialog-footer > span { color: #87938f; font-size: 11px; }.dialog-footer > span i { width: 6px; height: 6px; display: inline-block; background: #49a488; border-radius: 50%; }.dialog-footer > div { display: flex; gap: 8px; }
.jump-dialog { width: min(430px, calc(100vw - 30px)); }.jump-fields { padding: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.settings-dialog { width: min(500px, calc(100vw - 30px)); }.settings-options { padding: 12px 20px 22px; display: grid; gap: 8px; }.settings-options > button, .import-label { width: 100%; min-height: 70px; padding: 12px 13px; display: flex; align-items: center; gap: 12px; color: inherit; background: white; border: 1px solid #e3eae7; border-radius: 10px; text-align: left; cursor: pointer; }.settings-options > button:hover, .import-label:hover { background: #f7faf9; border-color: #bed6ce; }.setting-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: var(--green-700); background: var(--green-100); border-radius: 9px; }.setting-icon svg { width: 18px; }.settings-options strong, .settings-options small { display: block; }.settings-options strong { font-size: 13px; }.settings-options small { margin-top: 5px; color: #87938f; font-size: 11px; }.import-label input { display: none; }.settings-options .danger-option .setting-icon { color: var(--danger); background: #fbeeee; }
.account-dialog { width: min(520px, calc(100vw - 30px)); }
.account-form-body { padding: 22px 25px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.account-form-body label:nth-child(3), .account-form-body .login-error { grid-column: 1 / -1; }
.account-form-body label span b { color: var(--danger); }

.toast { position: fixed; z-index: 100; right: 25px; bottom: 25px; min-width: 230px; padding: 13px 16px; display: flex; align-items: center; gap: 10px; color: white; background: #143f37; border-radius: 10px; box-shadow: 0 14px 35px rgba(0,0,0,.22); transform: translateY(30px); opacity: 0; pointer-events: none; transition: .25s; }.toast.show { transform: none; opacity: 1; }.toast span { width: 22px; height: 22px; display: grid; place-items: center; color: #17483d; background: #e8d08c; border-radius: 50%; font-size: 13px; font-weight: 700; }.toast p { margin: 0; font-size: 13px; }
.overlay { display: none; }

body.overall-view .topbar-actions > :not(#topbarLogout) { display: none; }
.overall-hero { min-height: 126px; padding: 27px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: white; background: linear-gradient(115deg, #124e43, #1a7764 62%, #b9923e 145%); border-radius: 14px; box-shadow: 0 13px 30px rgba(14,70,59,.16); overflow: hidden; position: relative; }
.overall-hero::after { content: ""; position: absolute; right: -80px; top: -150px; width: 310px; height: 310px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.018); }
.overall-hero > * { position: relative; z-index: 1; }
.overall-hero .eyebrow { color: #f0d17d; font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.overall-hero h2 { margin: 8px 0 7px; font-size: 23px; font-weight: 550; }
.overall-hero p { margin: 0; color: rgba(255,255,255,.67); font-size: 13px; }
.overall-period { flex: 0 0 auto; padding: 9px 13px; color: #f6e6b7; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; font-size: 12px; }
.overall-kpi-dot { width: 12px; height: 12px; background: var(--accent); border: 4px solid var(--tint); border-radius: 50%; box-sizing: content-box; }
.overall-main-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .85fr); gap: 16px; }
.overall-main-grid > *, .overall-bottom-grid > * { min-width: 0; }
.overall-trend-panel, .overall-region-panel, .overall-services-panel, .overall-other-panel, .overall-sharing-panel { padding: 23px; }
.overall-trend-panel, .overall-region-panel { min-height: 385px; }
.overall-trend { height: 245px; margin-top: 10px; padding-top: 15px; display: grid; grid-template-columns: repeat(9, minmax(42px, 1fr)); align-items: end; gap: 9px; border-bottom: 1px solid #dfe7e4; background: repeating-linear-gradient(to bottom, transparent 0, transparent 58px, #edf1ef 59px); overflow-x: auto; }
.overall-bar-item { min-width: 42px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.overall-bar-value { margin-bottom: 5px; color: #53655f; font-size: 10px; font-weight: 650; }
.overall-bar-stack { width: min(30px, 65%); min-height: 4px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 4px 4px 0 0; overflow: hidden; }
.overall-bar-stack i { display: block; flex: 0 0 auto; width: 100%; }
.overall-bar-item b { margin-top: 7px; color: #52635e; font-size: 12px; }
.overall-bar-item > span:last-child { margin-top: 3px; color: #929d99; font-size: 9px; }
.overall-regions { margin-top: 18px; display: grid; gap: 12px; }
.region-card { padding: 16px; background: #f7faf9; border: 1px solid #e2eae7; border-radius: 11px; }
.region-card-head, .region-channel, .region-groups { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.region-card-head span { color: #4c6059; font-size: 13px; font-weight: 650; }
.region-card-head strong { color: var(--green-700); font-size: 21px; }.region-card-head small { margin-left: 3px; color: #8b9793; font-size: 10px; font-weight: 400; }
.region-channel { margin-top: 12px; padding: 9px 0; color: #7b8984; border-top: 1px dashed #dce5e1; border-bottom: 1px dashed #dce5e1; font-size: 11px; }.region-channel b { margin-left: 4px; color: #334a43; }
.region-groups { margin-top: 11px; align-items: stretch; }.region-groups span { min-width: 0; flex: 1; color: #85918d; font-size: 10px; }.region-groups b { display: block; margin-top: 4px; color: #41554f; font-size: 12px; }
.overall-services-panel, .overall-table-panel, .overall-bottom-grid { margin-top: 16px; }
.overall-services { margin-top: 17px; display: grid; grid-template-columns: repeat(9, minmax(90px, 1fr)); gap: 9px; }
.service-stat { min-height: 80px; padding: 13px 10px; background: #f7faf9; border: 1px solid #e4ebe8; border-radius: 9px; text-align: center; }
.service-stat span { display: block; min-height: 25px; color: #7a8984; font-size: 11px; line-height: 1.5; }.service-stat strong { color: #194e43; font-size: 19px; }.service-stat small { margin-left: 2px; color: #94a09c; font-size: 10px; }
.overall-table-panel { overflow: hidden; }
.overall-table-scroll { overflow: auto; }
.overall-table { width: 100%; min-width: 1210px; border-collapse: collapse; font-size: 12px; }
.overall-table th, .overall-table td { height: 43px; padding: 8px 10px; border-right: 1px solid #edf1ef; border-bottom: 1px solid #edf1ef; text-align: center; white-space: nowrap; }
.overall-table th { color: white; background: #174f45; font-weight: 600; }
.overall-table tbody tr:hover { background: #f4f8f6; }
.overall-table td.accent { color: #176653; background: #edf7f3; font-weight: 700; }
.overall-table tfoot td { color: white; background: #123f37; font-weight: 650; }
.overall-bottom-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; }
.overall-other-services { margin-top: 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.overall-other-services > span { padding: 11px 12px; background: #f7faf9; border: 1px solid #e4ebe8; border-radius: 8px; }.overall-other-services b { display: block; color: #7d8b86; font-size: 10px; font-weight: 500; }.overall-other-services strong { display: block; margin-top: 5px; color: #28483f; font-size: 16px; }
.overall-data-sharing { margin-top: 17px; display: grid; gap: 8px; }.overall-data-sharing > div { padding: 12px 13px; display: flex; align-items: baseline; background: #f7faf9; border: 1px solid #e4ebe8; border-radius: 8px; }.overall-data-sharing span { color: #74837e; font-size: 11px; }.overall-data-sharing strong { margin-left: auto; color: var(--green-700); font-size: 18px; }.overall-data-sharing small { margin-left: 3px; color: #929e9a; font-size: 10px; }
.overall-source-note { margin-top: 16px; padding: 15px 18px; color: #75612d; background: #fff9e9; border: 1px solid #eee0b6; border-radius: 10px; font-size: 11px; line-height: 1.7; }.overall-source-note strong { display: block; color: #654f18; font-size: 12px; }.overall-source-note ul { margin: 6px 0 0; padding-left: 17px; }

/* 2026 government service visual refresh */
::selection { color: white; background: var(--green-600); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(20,145,119,.23); outline-offset: 2px; }
.portal-gate { background: radial-gradient(circle at 14% 18%, rgba(245,205,111,.18), transparent 24%), radial-gradient(circle at 86% 78%, rgba(36,178,145,.24), transparent 30%), linear-gradient(140deg, #052f2a 0%, #075446 48%, #0b7561 100%); }
.portal-gate-inner { width: min(960px, 100%); }
.portal-logo { width: 62px; height: 62px; margin-bottom: 17px; color: #ffe59e; background: linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.07)); border-color: rgba(255,255,255,.22); border-radius: 19px; box-shadow: 0 16px 35px rgba(0,0,0,.18); }
.portal-logo svg { width: 32px; height: 32px; }
.portal-brand > span { display: inline-block; padding: 6px 12px; color: #ffe49a; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; letter-spacing: .1em; }
.portal-brand h1 { margin-top: 14px; text-shadow: 0 4px 18px rgba(0,0,0,.16); }
.portal-brand p { color: rgba(255,255,255,.7); }
.login-panel { width: min(460px, 100%); padding: 30px 34px 33px; background: rgba(255,255,255,.965); border: 1px solid rgba(255,255,255,.78); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,28,24,.28); backdrop-filter: blur(18px); }
.login-icon { width: 54px; height: 54px; color: #08705d; background: linear-gradient(145deg, #dff5ee, #edf9f5); border: 1px solid #d4ebe4; border-radius: 16px; box-shadow: 0 8px 20px rgba(10,104,87,.09); }
.login-panel input, .login-panel select, .account-form-body input, .account-form-body select { height: 46px; background: #f7fbf9; border-color: #d7e5df; border-radius: 11px; }
.login-panel .primary-button { min-height: 46px; border-radius: 11px; }
.default-account { background: #f5faf8; border-color: #d5e6df; border-radius: 11px; }
.sidebar { padding: 26px 18px 20px; background: radial-gradient(circle at 25% 92%, rgba(226,173,69,.12), transparent 21%), linear-gradient(180deg, #073f37 0%, #075345 54%, #063c35 100%); border-right: 1px solid rgba(255,255,255,.08); box-shadow: 12px 0 38px rgba(6,52,44,.13); }
.brand { padding: 0 8px 24px; }
.brand-mark { width: 48px; height: 48px; color: #ffe092; background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.07)); border: 1px solid rgba(255,255,255,.11); border-radius: 15px; box-shadow: 0 9px 22px rgba(0,0,0,.12); }
.brand strong { letter-spacing: .06em; }
.brand span { color: rgba(255,255,255,.66); letter-spacing: .02em; }
.main-nav { gap: 8px; margin-top: 23px; }
.nav-item { min-height: 50px; padding: 0 13px; gap: 11px; color: rgba(255,255,255,.72); border: 1px solid transparent; border-radius: 13px; }
.nav-item svg { width: 30px; height: 30px; padding: 6px; background: rgba(255,255,255,.07); border-radius: 9px; }
.nav-item:hover { color: white; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.06); transform: translateX(2px); }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,.09)); border-color: rgba(255,255,255,.1); box-shadow: inset 3px 0 #f2c75e, 0 8px 18px rgba(0,0,0,.08); }
.nav-item.active svg { color: #ffe090; background: rgba(255,224,144,.12); }
.sidebar-note { padding: 16px 14px; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); border-radius: 14px; }
.user-card { padding-top: 16px; }
.avatar { width: 38px; height: 38px; background: linear-gradient(145deg, #f5ce70, #dca63a); box-shadow: 0 5px 15px rgba(0,0,0,.13); }
.main-content { background: linear-gradient(180deg, rgba(255,255,255,.36), transparent 240px); }
.topbar { min-height: 92px; padding-inline: 36px; background: rgba(255,255,255,.9); border-bottom-color: rgba(206,223,216,.8); box-shadow: 0 7px 24px rgba(28,73,63,.05); }
.page-heading p { width: max-content; padding: 3px 8px; background: var(--green-50); border-radius: 5px; letter-spacing: .12em; }
.page-heading h1 { margin-top: 5px; }
.mobile-menu, .icon-button { background: white; border: 1px solid #dce9e4; box-shadow: 0 5px 13px rgba(19,76,64,.07); }
.month-switcher { height: 42px; border-color: #d8e6e0; border-radius: 11px; box-shadow: 0 4px 12px rgba(19,76,64,.04); }
.primary-button, .soft-button, .ghost-button { min-height: 42px; border-radius: 11px; }
.primary-button { background: linear-gradient(135deg, var(--green-700), var(--green-600)); box-shadow: 0 8px 18px rgba(14,120,99,.19); }
.primary-button:hover { background: linear-gradient(135deg, var(--green-800), var(--green-700)); box-shadow: 0 11px 23px rgba(14,120,99,.24); }
.soft-button { background: #f1f9f6; border-color: #d7e9e2; }
.view { padding: 30px 36px 50px; }
.welcome-strip, .overall-hero { min-height: 142px; padding: 28px 32px; background: radial-gradient(circle at 82% 25%, rgba(255,255,255,.13), transparent 24%), linear-gradient(115deg, #085346, #0d806a 66%, #12977c); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; box-shadow: 0 18px 42px rgba(8,92,75,.17); }
.welcome-strip::after, .overall-hero::after { right: 4%; opacity: .75; }
.welcome-strip .soft-button { min-height: 44px; padding-inline: 18px; background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.22); backdrop-filter: blur(4px); }
.kpi-grid { gap: 18px; margin-top: 20px; }
.kpi-card { min-height: 140px; padding: 21px 22px; border-color: rgba(213,229,223,.9); border-radius: 18px; box-shadow: 0 13px 32px rgba(19,72,61,.07); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.kpi-card:hover { transform: translateY(-3px); border-color: #c7dfd6; box-shadow: 0 18px 38px rgba(19,72,61,.11); }
.kpi-card::after { width: 100px; height: 100px; right: -36px; bottom: -47px; opacity: .82; }
.kpi-icon { width: 38px; height: 38px; border-radius: 11px; }
.panel { border-color: rgba(213,229,223,.92); border-radius: 18px; box-shadow: 0 13px 34px rgba(19,72,61,.07); }
.trend-panel, .progress-panel, .ranking-panel, .quick-calendar-panel { padding: 25px; }
.dashboard-grid { gap: 18px; margin-top: 20px; }
.progress-ring { box-shadow: inset 0 0 0 1px rgba(14,120,99,.05), 0 10px 24px rgba(14,120,99,.1); }
.calendar-panel, .day-panel { border-radius: 18px; }
.calendar-day { transition: background .16s ease, box-shadow .16s ease, transform .16s ease; }
.calendar-day:hover { transform: translateY(-1px); }
.table-panel, .ledger-panel, .account-panel, .overall-table-panel { border-radius: 18px; }
.summary-table th, .overall-table th { background: linear-gradient(180deg, #0d5d4f, #094a40); }
.summary-table tbody tr:nth-child(even), .overall-table tbody tr:nth-child(even) { background: #fbfdfc; }
.filter-row { background: #f7fbf9; }
.search-box, .filter-row select, .filter-row input[type="date"] { height: 39px; border-color: #d7e5df; border-radius: 10px; }
.ledger-stat { border-color: #dae8e2; border-radius: 14px; box-shadow: 0 8px 22px rgba(19,72,61,.05); }
.account-actions button { border-radius: 8px; }
dialog { border: 1px solid rgba(215,230,224,.9); border-radius: 20px; box-shadow: 0 34px 95px rgba(8,52,43,.28); }
dialog::backdrop { background: rgba(4,38,32,.54); backdrop-filter: blur(5px); }
.form-row input, .form-row select, .notes-field textarea, .jump-fields input, .jump-fields select { min-height: 43px; background: #f8fbfa; border-color: #d7e5df; border-radius: 10px; }
.auto-total-card { background: linear-gradient(110deg, #084f43, #0d806a); border-radius: 13px; box-shadow: 0 9px 20px rgba(8,92,75,.14); }
.overall-services-panel, .overall-other-panel, .overall-sharing-panel { border-radius: 18px; }
.region-card, .service-stat, .overall-other-services > span, .overall-data-sharing > div { background: linear-gradient(145deg, #f8fcfa, #f3f8f6); border-color: #dbe9e3; border-radius: 12px; }
.overall-source-note { border-radius: 13px; }

body.efficient-view .topbar-actions > :not(#topbarLogout) { display: none; }
body.park-view .topbar-actions > :not(#topbarLogout) { display: none; }
.efficient-hero { min-height: 142px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: white; background: radial-gradient(circle at 86% 26%, rgba(255,255,255,.15), transparent 26%), linear-gradient(115deg, #254b8d, #3675b8 60%, #1c9ca1); border: 1px solid rgba(255,255,255,.11); border-radius: 20px; box-shadow: 0 18px 42px rgba(38,92,154,.18); overflow: hidden; position: relative; }
.efficient-hero::after { content: ""; position: absolute; right: 4%; top: -124px; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 46px rgba(255,255,255,.035), 0 0 0 92px rgba(255,255,255,.018); }
.efficient-hero > * { position: relative; z-index: 1; }.efficient-hero .eyebrow { color: #ffdf87; font-size: 11px; font-weight: 700; letter-spacing: .2em; }.efficient-hero h2 { margin: 8px 0 7px; font-size: 23px; font-weight: 600; }.efficient-hero p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; }.efficient-period { flex: 0 0 auto; padding: 9px 13px; color: #e7f6ff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; font-size: 12px; }
.efficient-main-grid { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(330px, .88fr); gap: 18px; }.efficient-main-grid > * { min-width: 0; }
.efficient-trend-panel, .efficient-ranking-panel, .efficient-source-panel { padding: 25px; }.efficient-trend-panel, .efficient-ranking-panel { min-height: 390px; }
.efficient-trend { height: 245px; margin-top: 10px; padding-top: 15px; display: grid; grid-template-columns: repeat(9, minmax(42px, 1fr)); align-items: end; gap: 9px; border-bottom: 1px solid #dfe7e4; background: repeating-linear-gradient(to bottom, transparent 0, transparent 58px, #edf1ef 59px); overflow-x: auto; }
.efficient-trend .bar-online { background: #5b8cca; }.efficient-trend .bar-onsite { background: #1a94a0; }
.efficient-trend-panel .legend .teal { background: #5b8cca; }.efficient-trend-panel .legend .gold { background: #1a94a0; }
.efficient-ranking { margin-top: 20px; display: grid; gap: 15px; }.efficient-rank-item { display: grid; grid-template-columns: 28px minmax(115px, 1fr) minmax(95px, 1.1fr) 68px; align-items: center; gap: 10px; }.efficient-rank-item > div { min-width: 0; }.efficient-rank-item strong, .efficient-rank-item span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.efficient-rank-item strong { font-size: 13px; }.efficient-rank-item span { margin-top: 3px; color: #81908b; font-size: 11px; }.efficient-rank-item > i { height: 6px; background: #eaf0ee; border-radius: 5px; overflow: hidden; }.efficient-rank-item > i b { display: block; height: 100%; background: linear-gradient(90deg, #437abb, #209f9f); border-radius: inherit; }.efficient-rank-item em { color: #1f4d72; font-size: 12px; font-style: normal; font-weight: 700; text-align: right; }
.efficient-source-panel, .efficient-table-panel { margin-top: 18px; }.efficient-sources { margin-top: 18px; display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 11px; }.efficient-sources > div { min-height: 88px; padding: 14px; background: linear-gradient(145deg, #f5faff, #eff8f7); border: 1px solid #d8e7e7; border-radius: 12px; }.efficient-sources span { display: block; min-height: 34px; color: #61767a; font-size: 11px; line-height: 1.5; }.efficient-sources strong { color: #1f5f91; font-size: 19px; }.efficient-sources small { margin-left: 3px; color: #8c9da0; font-size: 10px; }
.efficient-table-panel { overflow: hidden; }.efficient-filters { flex-wrap: wrap; }.efficient-table-scroll { overflow: auto; max-height: calc(100vh - 260px); }.efficient-table { width: 100%; min-width: 1840px; border-collapse: separate; border-spacing: 0; font-size: 12px; }.efficient-table th, .efficient-table td { height: 46px; padding: 8px 11px; border-bottom: 1px solid #e7eeeb; border-right: 1px solid #edf2f0; text-align: center; white-space: nowrap; }.efficient-table th { position: sticky; z-index: 3; top: 0; color: white; background: linear-gradient(180deg, #26548e, #1c4576); font-weight: 600; }.efficient-table th:first-child { left: 0; z-index: 5; }.efficient-table th:nth-child(2) { min-width: 200px; text-align: left; }.efficient-table th:nth-child(3) { min-width: 145px; }.efficient-table th:nth-child(4) { min-width: 160px; }.efficient-table tbody tr { background: white; }.efficient-table tbody tr:nth-child(even) { background: #fbfdfe; }.efficient-table tbody tr:hover { background: #f1f8fb; }.efficient-table td:first-child { position: sticky; left: 0; z-index: 2; background: inherit; }.efficient-table .accent { color: #1f5f91; background: #edf6fd; font-weight: 750; }.efficient-name { text-align: left !important; }.efficient-name strong, .efficient-name span { display: block; }.efficient-name strong { font-size: 12px; }.efficient-name span { margin-top: 3px; color: #87959a; font-size: 10px; }.basis-chip { display: inline-flex; max-width: 150px; padding: 4px 7px; color: #38647c; background: #edf5f8; border: 1px solid #dbe9ee; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }.efficient-table tfoot td { position: sticky; z-index: 4; bottom: 0; color: white; background: #1c4576; font-weight: 650; }.efficient-table tfoot td:first-child { z-index: 5; }
.efficient-source-note { margin-top: 16px; padding: 15px 18px; color: #365f75; background: #f1f8fb; border: 1px solid #d6e8ee; border-radius: 13px; font-size: 11px; line-height: 1.7; }.efficient-source-note strong { display: block; color: #1c4f70; font-size: 12px; }.efficient-source-note ul { margin: 6px 0 0; padding-left: 17px; }
.efficient-rank-item { grid-template-columns: 28px minmax(0, 1fr) 68px; row-gap: 6px; }
.efficient-rank-item > .rank-no { grid-column: 1; grid-row: 1 / span 2; }
.efficient-rank-item > div { grid-column: 2; grid-row: 1; }
.efficient-rank-item strong { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.efficient-rank-item > i { grid-column: 2; grid-row: 2; }
.efficient-rank-item em { grid-column: 3; grid-row: 1 / span 2; }
.sidebar { overflow-y: auto; overflow-x: hidden; }
.sidebar > * { flex-shrink: 0; }

@media (max-width: 1180px) {
  :root { --sidebar: 238px; }
  .view { padding: 25px; }.topbar { padding-inline: 25px; }
  .dashboard-grid { grid-template-columns: 1fr 330px; }
  .calendar-layout { grid-template-columns: minmax(560px, 1fr) 285px; }
  .overall-main-grid { grid-template-columns: 1fr 300px; }
  .overall-services { grid-template-columns: repeat(5, 1fr); }
  .efficient-main-grid { grid-template-columns: 1fr 310px; }
  .efficient-sources { grid-template-columns: repeat(4, 1fr); }
  .calendar-day { min-height: 92px; }
}

@media (max-width: 960px) {
  :root { --sidebar: 258px; }
  .sidebar { transform: translateX(-105%); transition: .25s ease; }.sidebar.open { transform: none; }
  .main-content { margin-left: 0; }
  .mobile-menu { display: grid; }
  .overlay { position: fixed; z-index: 29; inset: 0; background: rgba(0,0,0,.32); }.overlay.show { display: block; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }.trend-panel { grid-column: 1 / -1; }
  .calendar-layout { grid-template-columns: 1fr; }.day-panel { position: static; display: grid; grid-template-columns: 160px 1fr; gap: 15px; }.day-panel > .full { grid-column: 1 / -1; }.day-total { margin: 0; }.day-entry-list { max-height: 220px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .overall-main-grid, .overall-bottom-grid { grid-template-columns: 1fr; }
  .efficient-main-grid { grid-template-columns: 1fr; }.efficient-ranking-panel { min-height: 0; }
  .efficient-sources { grid-template-columns: repeat(3, 1fr); }
  .overall-region-panel { min-height: 0; }
  .overall-regions { grid-template-columns: 1fr 1fr; }
  .overall-services { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .overall-hero { padding: 23px 20px; align-items: flex-start; flex-direction: column; }.overall-hero h2 { font-size: 20px; }.overall-period { padding: 7px 10px; }
  .efficient-hero { padding: 23px 20px; align-items: flex-start; flex-direction: column; }.efficient-hero h2 { font-size: 20px; }.efficient-period { padding: 7px 10px; }
  .overall-trend-panel, .overall-region-panel, .overall-services-panel, .overall-other-panel, .overall-sharing-panel { padding: 18px; }
  .efficient-trend-panel, .efficient-ranking-panel, .efficient-source-panel { padding: 18px; }
  .overall-trend { grid-template-columns: repeat(9, 54px); }
  .efficient-trend { grid-template-columns: repeat(9, 54px); }
  .overall-regions { grid-template-columns: 1fr; }
  .overall-services { grid-template-columns: repeat(2, 1fr); }
  .overall-other-services { grid-template-columns: repeat(2, 1fr); }
  .efficient-sources { grid-template-columns: repeat(2, 1fr); }
  .summary-presets { padding: 10px 12px; gap: 6px; }.summary-presets .compact { font-size: 12px; padding: 0 8px; }
  .portal-gate { padding: 28px 15px; align-items: start; }.portal-brand h1 { font-size: 24px; }.portal-brand p { line-height: 1.7; }.portal-options { grid-template-columns: 1fr; margin-top: 24px; }.portal-card { min-height: 0; padding: 22px; }.portal-card ul, .portal-unit-select { min-height: 0; }.portal-footnote { margin-bottom: 10px; }
  .login-panel { margin-top: 22px; padding: 22px; }
  .topbar { min-height: 70px; padding: 11px 14px; }.page-heading p { display: none; }.page-heading h1 { font-size: 17px; }.icon-button { display: none; }.month-switcher .month-label { min-width: 88px; }.topbar .primary-button { width: 39px; padding: 0; font-size: 0; }.topbar .primary-button svg { margin: 0; }
  .view { padding: 15px 13px 32px; }.welcome-strip { padding: 22px 20px; }.welcome-strip .soft-button { display: none; }.welcome-strip h2 { font-size: 19px; }.welcome-strip p { line-height: 1.7; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.kpi-card { min-height: 119px; padding: 15px; }.kpi-value strong { font-size: 24px; }.kpi-head span:first-child { max-width: 80px; }
  .dashboard-grid { grid-template-columns: 1fr; }.trend-panel, .progress-panel, .ranking-panel, .quick-calendar-panel { min-height: auto; padding: 18px; }.legend { display: none; }.bar-chart { height: 185px; gap: 3px; }.bar-label { font-size: 9px; }.rank-item { grid-template-columns: 25px minmax(105px, 1fr) 70px 55px; }
  .calendar-panel { padding: 16px 10px; }.calendar-toolbar { align-items: center; }.calendar-toolbar-actions .soft-button { display: none; }.calendar-weekdays span { font-size: 0; }.calendar-weekdays span::after { font-size: 12px; }.calendar-weekdays span:nth-child(1)::after { content: "一"; }.calendar-weekdays span:nth-child(2)::after { content: "二"; }.calendar-weekdays span:nth-child(3)::after { content: "三"; }.calendar-weekdays span:nth-child(4)::after { content: "四"; }.calendar-weekdays span:nth-child(5)::after { content: "五"; }.calendar-weekdays span:nth-child(6)::after { content: "六"; }.calendar-weekdays span:nth-child(7)::after { content: "日"; }.calendar-day { min-height: 73px; padding: 5px; }.calendar-day .day-total-small { margin-top: 8px; font-size: 13px; }.calendar-day .entry-count { display: none; }.calendar-day .import-mark { font-size: 0; width: 5px; height: 5px; padding: 0; border-radius: 50%; }.calendar-legend { padding-left: 5px; }.day-panel { grid-template-columns: 110px 1fr; padding: 15px; }.selected-date-card { padding: 15px 10px; }.selected-date-card strong { font-size: 37px; }
  .table-toolbar { padding: 19px; }.table-toolbar { flex-direction: column; }.table-actions { width: 100%; }.table-actions button { flex: 1; }.filter-row { padding: 9px 12px; overflow-x: auto; }.search-box { min-width: 190px; }.record-count { display: none; }
  .ledger-head { align-items: center; }.ledger-head p { display: none; }.ledger-stats { grid-template-columns: 1fr; gap: 8px; }.ledger-stat { padding: 13px 15px; }.ledger-row { grid-template-columns: 78px minmax(130px, 1fr) 75px 70px; }.ledger-row .ledger-metric:nth-of-type(3) { display: none; }.ledger-actions { grid-column: 4; }.ledger-panel { overflow-x: auto; }.ledger-list { min-width: 520px; padding-inline: 12px; }
  .account-table { min-width: 1000px; }.account-table-wrap { max-height: none; }.account-form-body { grid-template-columns: 1fr; }.account-form-body label:nth-child(3), .account-form-body .login-error { grid-column: auto; }
  .form-row.two, .form-row.three { grid-template-columns: 1fr 1fr; }.dialog-body { padding: 17px; }.dialog-header, .dialog-footer { padding-inline: 17px; }.dialog-footer > span { display: none; }
}

@media (max-width: 700px) {
  .calendar-grid.monthly-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.calendar-day.month-card { min-height:100px; }.mini-calendar { grid-template-columns:repeat(3,1fr); }
}

.efficient-table { min-width: 2100px; }
.efficient-table-description { padding: 0 24px 16px; margin: 0; color: #657b80; font-size: 13px; line-height: 1.7; }
.efficient-table tbody tr:nth-child(even) { background: white; }
.efficient-table tbody tr.efficient-row-alt { background: #f5f9fc; }
.efficient-table tbody tr:hover { background: #eef6fb; }
.efficient-table tbody td:first-child { position: static; left: auto; z-index: auto; }
.efficient-table tbody td.efficient-sequence { position: sticky; left: 0; z-index: 2; }
.efficient-table .efficient-channel { min-width: 80px; font-weight: 650; }
.efficient-table .efficient-channel.online { color: #236c88; background: #edf7fb; }
.efficient-table .efficient-channel.offline { color: #8a671f; background: #fcf6e9; }
.efficient-table .quarter-total { color: #345d81; background: #f1f6fc; font-weight: 650; }
.efficient-table tfoot { position: sticky; bottom: 0; z-index: 6; }
.efficient-table tfoot td { position: sticky; bottom: 0; left: auto; background: #1c4576; border-top: 2px solid #557daa; box-shadow: 0 -3px 6px rgba(20, 51, 85, .12); }
.efficient-table tfoot td.efficient-total-label { left: 0; z-index: 7; color: white; background: #1c4576; white-space: nowrap; box-shadow: 3px -3px 6px rgba(20, 51, 85, .16); }
.park-hero { min-height: 140px; padding: 27px 32px; display: flex; align-items: center; justify-content: space-between; gap: 22px; color: white; background: radial-gradient(circle at 86% 20%, rgba(255,255,255,.14), transparent 28%), linear-gradient(115deg,#155a4e,#178373 62%,#2d7896); border-radius: 20px; box-shadow: 0 18px 42px rgba(22,105,88,.18); }
.park-hero .eyebrow { color: #ffe08a; font-size: 11px; font-weight: 700; letter-spacing: .18em; }.park-hero h2 { margin: 8px 0 7px; font-size: 24px; }.park-hero p { margin: 0; color: rgba(255,255,255,.76); }.park-hero-actions { display: flex; align-items: center; gap: 10px; }.park-hero-actions > span { padding: 9px 13px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; }
.park-section-panel,.park-table-panel { margin-top: 18px; }.park-section-panel { padding: 24px; }.park-section-panel .panel-header > span { color: #956b1c; font-size: 12px; }.park-section-cards { margin-top: 17px; display: grid; grid-template-columns: repeat(5,minmax(140px,1fr)); gap: 10px; }.park-section-cards button { min-height: 94px; padding: 14px; text-align: left; color: #31564e; background: linear-gradient(145deg,#f4fbf8,#edf6f3); border: 1px solid #d9e9e4; border-radius: 12px; }.park-section-cards button:hover { border-color: #8bc5b5; transform: translateY(-1px); }.park-section-cards strong { display: block; color: #127360; font-size: 22px; }.park-section-cards span { display: block; min-height: 34px; margin-top: 4px; font-size: 12px; line-height: 1.4; }.park-section-cards small { color: #84948f; }
.park-table-panel { overflow: hidden; }.park-filters { flex-wrap: wrap; }.park-table-scroll { max-height: calc(100vh - 245px); overflow: auto; }.park-table { width: 100%; min-width: 2350px; border-collapse: separate; border-spacing: 0; font-size: 12px; }.park-table th,.park-table td { height: 48px; padding: 8px 10px; border-right: 1px solid #eaf0ed; border-bottom: 1px solid #e4ece8; text-align: center; white-space: nowrap; }.park-table th { position: sticky; z-index: 4; top: 0; color: white; background: linear-gradient(180deg,#1b695c,#105549); }.park-table th:first-child,.park-table td:first-child { position: sticky; left: 0; z-index: 3; background: inherit; }.park-table th:first-child { z-index: 6; background:#105549; }.park-table tbody tr { background:white; }.park-table tbody tr:nth-child(even) { background:#f9fcfb; }.park-table tbody tr:hover { background:#eff8f4; }.park-table .park-name { min-width: 260px; max-width: 360px; text-align:left; white-space:normal; }.park-name strong,.park-name span { display:block; }.park-name strong { line-height:1.45; }.park-name span { margin-top:4px; color:#879690; font-size:10px; }.park-flag { display:inline-flex; min-width:28px; justify-content:center; padding:3px 6px; border-radius:10px; }.park-flag.yes { color:#087963; background:#e2f3ed; font-weight:700; }.park-flag.no { color:#aeb9b5; }.park-count-value { color:#155f50; font-weight:750; background:#eff8f5; }.park-count-value.completed { color:#285f91; background:#eff6fb; }.park-pending.warn { color:#a5680d; background:#fff5df; font-weight:750; }.park-updated { display:block; }.park-updated small { display:block; margin-top:3px; color:#879690; }.park-edit-button { padding:6px 9px; color:#087963; background:#e2f3ed; border-radius:7px; }.readonly-chip { color:#899792; }.park-table tfoot { position:sticky; bottom:0; z-index:5; }.park-table tfoot td { color:white; background:#105549; border-top:2px solid #438f80; font-weight:700; }.park-table tfoot td:first-child { z-index:7; background:#105549; }
.park-note-field { grid-column:1 / -1; }.park-note-field textarea { min-height:90px; }.module-permission-list { padding:22px 24px; display:grid; gap:10px; }.module-permission-list > label { display:flex; align-items:center; gap:12px; padding:14px; border:1px solid #dfe9e5; border-radius:10px; }.module-permission-list input { width:18px; height:18px; accent-color:#087963; }.module-permission-list strong,.module-permission-list small { display:block; }.module-permission-list small { margin-top:3px; color:#82908c; }.account-module-field { grid-column:1 / -1; padding:13px; display:flex; gap:20px; border:1px solid #dfe9e5; border-radius:9px; }.account-module-field legend { padding:0 6px; color:#5d7069; font-size:12px; }.account-module-field label { display:flex; align-items:center; gap:6px; }.account-module-field input { accent-color:#087963; }.account-modules { min-width:145px; display:flex; flex-wrap:wrap; align-items:center; gap:5px; }.module-chip { padding:4px 6px; color:#315e54; background:#e7f3ef; border-radius:6px; font-size:10px; }.module-chip.park { color:#315d83; background:#e7f0f8; }.module-chip.all { color:#805b19; background:#fbefd1; }.account-modules button { padding:4px 7px; color:#087963; background:#edf6f3; border-radius:6px; font-size:10px; }

@media (max-width: 420px) {
  .month-switcher > button:first-child, .month-switcher > button:last-child { padding-inline: 6px; }.month-switcher .month-label { min-width: 82px; }.kpi-grid { grid-template-columns: 1fr; }.kpi-card { min-height: 105px; }.form-row.two, .form-row.three { grid-template-columns: 1fr; }.auto-total-card { flex-wrap: wrap; }.auto-total-card strong { margin-left: auto; }.auto-total-card em { width: 100%; }.jump-fields { grid-template-columns: 1fr; }.toast { left: 14px; right: 14px; bottom: 14px; }
}

@media (max-width: 700px) {
  .park-hero { padding:22px 19px; align-items:flex-start; flex-direction:column; }.park-hero h2 { font-size:21px; }.park-hero-actions { width:100%; flex-wrap:wrap; }.park-section-cards { grid-template-columns:1fr 1fr; }.park-section-panel { padding:18px; }.park-table-scroll { max-height:calc(100vh - 410px); }.park-fixed-total { min-height:78px; padding:7px 12px; flex-wrap:wrap; align-content:center; gap:0 11px; overflow:hidden; }.park-fixed-total strong { width:100%; }.park-fixed-total span { font-size:10px; }.park-fixed-total b { font-size:12px; }.account-module-field { flex-direction:column; gap:10px; }
  .ledger-filters { flex-wrap:wrap; overflow:visible; }.ledger-filters .search-box { width:100%; }.ledger-filters #ledgerDepartment { flex:1; }.ledger-month-picker { width:100%; }.ledger-year-picker { flex:1; }.ledger-month-picker select { flex:1; }.ledger-filters #clearLedgerFilters { margin-left:auto; }
}

.park-table tfoot td.park-total-summary { position:sticky; left:0; z-index:8; width:max-content; min-width:620px; padding:0 18px; text-align:left; background:#105549; box-shadow:5px -3px 8px rgba(8,55,47,.2); }
.park-total-summary strong,.park-total-summary span { display:inline-flex; align-items:center; min-height:46px; }.park-total-summary strong { margin-right:20px; }.park-total-summary span { margin-right:18px; color:rgba(255,255,255,.78); font-weight:500; }.park-total-summary b { margin:0 4px; color:#ffe18b; font-size:14px; }
.park-table tfoot { display:none; }
.park-fixed-total { position:sticky; z-index:10; bottom:0; min-height:49px; padding:0 18px; display:flex; align-items:center; gap:20px; color:white; background:#105549; border-top:2px solid #438f80; border-radius:0 0 14px 14px; box-shadow:0 -3px 8px rgba(8,55,47,.15); overflow-x:auto; white-space:nowrap; }
.park-fixed-total strong { flex:0 0 auto; }.park-fixed-total span { flex:0 0 auto; color:rgba(255,255,255,.8); }.park-fixed-total b { margin:0 4px; color:#ffe18b; font-size:14px; }

@media print {
  .summary-presets { display: none !important; }
  body { background: white; }.sidebar, .topbar, .welcome-strip, .kpi-grid, .dashboard-grid, .table-actions, .filter-row, .ledger-head, .ledger-stats { display: none !important; }.main-content { margin: 0; }.view { display: none !important; padding: 0; }.view#print-view, #view-summary { display: block !important; }.table-panel { border: 0; box-shadow: none; }.table-scroll { max-height: none; overflow: visible; }.summary-table { min-width: 0; font-size: 6px; }.summary-table th, .summary-table td { height: 28px; padding: 3px; }.table-toolbar { padding: 0 0 15px; }
}

/* 顶栏退出登录按钮 */
#topbarLogout { white-space: nowrap; }
@media (max-width: 700px) {
  .topbar #topbarLogout { width: 39px; min-height: 39px; padding: 0; flex: 0 0 auto; }
  .topbar #topbarLogout span { display: none; }
}

/* 登录页右上角退出按钮 */
.portal-gate .gate-exit { position: absolute; top: 22px; right: 26px; z-index: 5; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; color: rgba(255,255,255,.88); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); border-radius: 11px; font-size: 14px; text-decoration: none; backdrop-filter: blur(6px); }
.portal-gate .gate-exit:hover { color: white; background: rgba(255,255,255,.2); }
.portal-gate .gate-exit svg { width: 16px; height: 16px; }
@media (max-width: 700px) {
  .portal-gate .gate-exit { top: 14px; right: 14px; padding: 7px 12px; font-size: 13px; }
}
