Files
lehuo/apps/admin-web/src/styles.css
T
admin 7e71455c6b chore(release): freeze v0.2.0
版本冻结 v0.2.0,固化 2026-09-24 本轮全部变更。

admin-web:
- 修复旧物善用管理页缺失样式类 .workspace-view / .view-header / .table-wrap,
  此前页面无内边距导致内容被侧边栏遮挡、窄屏表格无横向滚动
- 修复服务统计页缺失样式类 .dashboard-grid / .dashboard-card / .stat-row,
  此前 8 个指标卡退化为裸文本堆叠
- 补齐未定义的 --shadow-card 变量(财务编辑面板阴影此前失效)
- 侧边栏 13 项导航由手写重复改为 NAV_ITEMS 数据驱动,并按业务顺序重排
- AdminIcon 补齐 coins / phone / volunteer / flag / calendar / recycle 语义图标
- 侧边栏行高与间距压缩使 13 项一屏放下,滚动条隐藏
- 小于等于 760px 断点导航由 display:none 改为横向滚动,移动端恢复可切换

api:
- prisma.config.ts 显式加载仓库根 .env,修复 prisma generate / migrate 取不到 DATABASE_URL
- dev / bootstrap:admin / test:integration 增加 tsx --env-file-if-exists=../../.env

miniprogram:
- custom-tab-bar 选中态与申请表单分步流程抽为可测纯函数并补充单测
- 页面完整性门禁脚本增强

工程:
- 版本统一升位 0.1.0 到 0.2.0(根与 4 个 workspace 包)
- .gitignore 增加 .pnpm-store/、.workbuddy/、微信开发者工具私人配置
  与仓库根目录误生成的工程配置,避免本地产物与机器相关信息入库

验证:pnpm lint 通过、pnpm test:unit 19 个用例通过、miniprogram typecheck 通过、
admin-web typecheck 与 build 通过、pnpm install --frozen-lockfile 未改写 lockfile、
无头浏览器端到端登录复验通过、待提交内容密钥扫描无命中。

说明:本轮定位并排除了一起 Prisma 生成目录残缺事故——API 开发进程与并发的
prisma generate 争抢同一输出目录,Windows 文件锁导致只生成 34/56 个模型文件,
使 TS 全量类型解析失败并产生数千条 lint 报错;停止竞争进程后干净重新生成即恢复。
该生成目录已被 .gitignore 忽略,不进入版本库。
2026-09-24 19:50:07 +08:00

1631 lines
29 KiB
CSS

:root {
--primitive-orange-500: #ff6b35;
--primitive-orange-600: #e95a28;
--primitive-navy-900: #202c38;
--primitive-navy-800: #293746;
--primitive-gray-50: #f5f7f9;
--primitive-gray-200: #e4e8ec;
--primitive-white: #fff;
--color-primary: var(--primitive-orange-500);
--color-primary-hover: #e95a28;
--color-primary-soft: #fff1eb;
--color-text: #1f2329;
--color-text-secondary: #646a73;
--color-danger: #b42318;
--color-success: #237a2b;
--color-warning: #8a5a00;
--color-info: #145ea8;
--color-surface: var(--primitive-white);
--color-background: var(--primitive-gray-50);
--color-border: var(--primitive-gray-200);
--color-sidebar: var(--primitive-navy-900);
--shadow-card: 0 3px 12px rgb(0 0 0 / 4%);
--focus-ring: 0 0 0 3px rgb(255 107 53 / 28%);
color: var(--color-text);
background: var(--color-background);
font-family:
-apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei',
sans-serif;
}
.old-items-view .metric-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
margin: 18px 0;
}
.old-items-view .metric-grid article {
background: #fff;
border: 1px solid #eee8e1;
border-radius: 14px;
padding: 20px;
}
.old-items-view .metric-grid span {
display: block;
color: #716b65;
}
.old-items-view .metric-grid strong {
font-size: 30px;
color: #1f9d55;
margin-right: 5px;
}
.segmented {
display: flex;
gap: 8px;
margin-bottom: 16px;
}
.segmented button {
border: 1px solid #e6dfd8;
background: #fff;
padding: 10px 18px;
border-radius: 999px;
}
.segmented button.active {
background: #ff6b35;
color: #fff;
border-color: #ff6b35;
}
.old-items-columns {
display: grid;
grid-template-columns: minmax(280px, 360px) 1fr;
gap: 18px;
}
.compact-form {
display: grid;
gap: 12px;
}
.compact-form label {
display: grid;
gap: 6px;
}
.need-admin-card {
border-bottom: 1px solid #eee8e1;
padding: 16px 0;
}
.need-admin-card div,
.action-row {
display: flex;
align-items: center;
gap: 10px;
margin-top: 10px;
}
.detail-modal {
width: min(680px, 92vw);
max-height: 86vh;
overflow: auto;
background: #fff;
border-radius: 18px;
padding: 24px;
position: relative;
}
.modal-backdrop {
position: fixed;
inset: 0;
background: #0008;
display: grid;
place-items: center;
z-index: 30;
}
.modal-close {
position: absolute;
right: 18px;
top: 18px;
}
.detail-modal dl {
display: grid;
grid-template-columns: 90px 1fr;
gap: 10px;
}
.trace-list li {
margin: 12px 0;
}
.trace-list span {
color: #777;
margin-left: 12px;
}
.danger-button {
background: #fff0ed;
color: #c73b22;
border: 1px solid #ffc4b6;
border-radius: 8px;
padding: 10px 16px;
}
.old-item-admin-images {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
margin: 16px 0;
}
.old-item-admin-images img {
width: 100%;
aspect-ratio: 1;
object-fit: cover;
border-radius: 10px;
}
.old-item-assignee {
display: grid;
gap: 7px;
margin: 16px 0;
font-weight: 700;
}
.old-item-assignee select {
padding: 10px;
border: 1px solid #ddd4cc;
border-radius: 8px;
background: #fff;
}
.inventory-toolbar {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 16px;
}
.inventory-help ol {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 8px;
padding: 0;
list-style: none;
counter-reset: inventory-step;
}
.inventory-help li {
counter-increment: inventory-step;
padding: 14px 8px;
border-radius: 12px;
background: #fff3ec;
color: #8b3519;
text-align: center;
}
.inventory-help li::before {
content: counter(inventory-step);
display: block;
margin: 0 auto 6px;
width: 24px;
height: 24px;
line-height: 24px;
border-radius: 50%;
background: #ff6b35;
color: white;
font-weight: 700;
}
.print-title {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 16px;
}
.reward-boundary {
margin-bottom: 16px;
border-left: 4px solid #52c41a;
background: #f3fbef;
}
.reward-boundary p,
.reward-config-form small,
.panel-heading small {
color: #6f6964;
}
.reward-point-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.certificate-preview {
position: relative;
align-self: start;
overflow: hidden;
min-height: 420px;
padding: 44px;
border: 8px double #f4b15f;
background:
radial-gradient(circle at 100% 0, rgb(255 107 53 / 16%), transparent 34%),
linear-gradient(145deg, #fffdf9, #fff5e8);
text-align: center;
}
.certificate-preview::before,
.certificate-preview::after {
position: absolute;
width: 90px;
height: 90px;
border: 2px solid rgb(255 107 53 / 22%);
border-radius: 50%;
content: '';
}
.certificate-preview::before {
top: -45px;
left: -45px;
}
.certificate-preview::after {
right: -45px;
bottom: -45px;
}
.certificate-seal {
display: grid;
place-items: center;
width: 58px;
height: 58px;
margin: 0 auto 18px;
border-radius: 50%;
background: linear-gradient(135deg, #ff6b35, #ff9636);
box-shadow: 0 8px 24px rgb(255 107 53 / 24%);
color: white;
font-size: 28px;
}
.certificate-preview h2 {
margin: 12px 0 30px;
color: #8a351c;
font-size: 30px;
letter-spacing: 4px;
}
.certificate-preview > strong {
display: block;
margin-bottom: 14px;
color: #2f2b28;
font-size: 22px;
}
.certificate-preview > p {
min-height: 100px;
color: #574e48;
line-height: 2;
text-align: left;
}
.certificate-preview > div {
display: grid;
gap: 10px;
margin-top: 24px;
text-align: right;
}
.certificate-history {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 12px;
margin-top: 18px;
}
.certificate-history article {
padding: 16px;
border: 1px solid #eee7e1;
border-radius: 14px;
background: #fffdfa;
}
.certificate-history article > div {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
}
.inventory-outbound-form,
.reward-config-form {
margin-bottom: 18px;
}
@media print {
body {
background: white;
}
body * {
visibility: hidden;
}
.print-ledger,
.print-ledger * {
visibility: visible;
}
.print-ledger {
position: absolute;
inset: 0;
box-shadow: none;
border: 0;
}
.no-print {
display: none !important;
}
.print-ledger table {
font-size: 10pt;
}
}
@media (max-width: 800px) {
.old-items-columns,
.old-items-view .metric-grid {
grid-template-columns: 1fr;
}
.reward-point-grid {
grid-template-columns: 1fr;
}
.certificate-preview {
min-height: 0;
padding: 28px 22px;
}
}
.financial-workspace {
display: grid;
gap: 20px;
}
.financial-editor-panel {
padding: 24px;
border: 1px solid var(--color-border);
border-radius: 16px;
background: #fff;
box-shadow: var(--shadow-card);
}
.financial-editor-head,
.rich-toolbar {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.financial-editor-head {
justify-content: flex-end;
margin-bottom: 20px;
}
.import-button {
display: inline-flex;
min-height: 38px;
align-items: center;
padding: 0 16px;
border: 1px solid var(--color-primary);
border-radius: 8px;
color: var(--color-primary);
cursor: pointer;
font-weight: 600;
}
.import-button input {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
opacity: 0;
}
.financial-fields {
display: grid;
grid-template-columns: minmax(0, 1fr) 140px;
gap: 16px;
margin-bottom: 18px;
}
.financial-fields label:first-child,
.financial-fields label:nth-child(2) {
grid-column: 1 / -1;
}
.inline-check {
display: flex;
align-items: center;
gap: 8px;
}
.inline-check input {
width: 18px;
height: 18px;
}
.rich-toolbar {
padding: 10px;
border: 1px solid var(--color-border);
border-bottom: 0;
border-radius: 10px 10px 0 0;
background: #f8fafc;
}
.rich-toolbar button {
min-height: 34px;
padding: 4px 10px;
border: 1px solid #d8dee8;
border-radius: 6px;
background: #fff;
color: #344054;
cursor: pointer;
}
.rich-editor {
min-height: 480px;
padding: 36px;
overflow: auto;
border: 1px solid var(--color-border);
border-radius: 0 0 10px 10px;
outline: none;
line-height: 1.8;
}
.rich-editor:focus {
border-color: var(--color-primary);
box-shadow: 0 0 0 3px rgb(240 90 40 / 12%);
}
.rich-editor table,
.public-rich-text table {
width: 100%;
border-collapse: collapse;
}
.rich-editor th,
.rich-editor td,
.public-rich-text th,
.public-rich-text td {
padding: 8px 10px;
border: 1px solid #d9dde4;
}
.mobile-preview {
width: min(420px, 100%);
min-height: 640px;
margin: 0 auto;
padding: 30px 24px;
border: 10px solid #25282d;
border-radius: 34px;
background: #fff;
box-shadow: 0 18px 48px rgb(23 31 45 / 18%);
}
.preview-label {
margin: -12px 0 24px;
color: #98a2b3;
font-size: 12px;
text-align: center;
}
.preview-summary {
padding: 14px;
border-radius: 10px;
background: #fff5ee;
color: #6d4b3b;
}
.public-rich-text {
overflow-wrap: anywhere;
color: #30343b;
line-height: 1.8;
}
.public-rich-text img {
max-width: 100%;
height: auto;
}
.status-chip {
margin-left: 8px;
padding: 2px 7px;
border-radius: 999px;
background: #fff0e8;
color: #e65322;
font-size: 12px;
}
@media (max-width: 720px) {
.financial-fields {
grid-template-columns: 1fr;
}
.financial-fields label {
grid-column: 1 !important;
}
.rich-editor {
padding: 20px;
}
}
* {
box-sizing: border-box;
}
body {
min-width: 320px;
min-height: 100vh;
margin: 0;
}
button,
input,
select,
textarea {
font: inherit;
}
button {
cursor: pointer;
}
button:disabled {
cursor: not-allowed;
opacity: 0.5;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
outline: none;
box-shadow: var(--focus-ring);
}
.app-shell {
min-height: 100vh;
padding: 24px 16px;
}
.app-shell--centered {
display: grid;
place-items: center;
}
.welcome-card,
.login-card {
width: min(560px, 100%);
padding: 32px;
border: 1px solid var(--color-border);
border-radius: 16px;
background: var(--color-surface);
box-shadow: 0 4px 16px rgb(0 0 0 / 6%);
}
.welcome-card h1,
.login-card h1 {
margin: 8px 0 16px;
font-size: clamp(24px, 4vw, 32px);
line-height: 1.25;
}
.welcome-card p,
.login-card p {
line-height: 1.7;
}
.eyebrow {
margin: 0;
color: var(--color-primary-hover);
font-weight: 600;
}
.intro {
margin-bottom: 24px;
color: var(--color-text-secondary);
}
.login-card form {
display: grid;
gap: 8px;
}
.login-card label {
margin-top: 8px;
font-weight: 600;
}
.login-card input {
width: 100%;
min-height: 48px;
padding: 10px 12px;
border: 1px solid var(--color-border);
border-radius: 12px;
color: var(--color-text);
background: var(--color-surface);
}
.login-card input:hover {
border-color: #aeb3bb;
}
input[aria-invalid='true'] {
border-color: var(--color-danger);
}
.password-field {
position: relative;
}
.password-field input {
padding-right: 72px;
}
.password-toggle {
position: absolute;
top: 2px;
right: 2px;
min-width: 64px;
min-height: 44px;
border: 0;
border-radius: 10px;
color: var(--color-primary-hover);
background: transparent;
}
.field-error,
.form-message,
.global-message {
margin: 0;
color: var(--color-danger);
font-size: 14px;
}
.primary-button,
.secondary-button {
min-height: 48px;
margin-top: 16px;
padding: 10px 20px;
border-radius: 12px;
font-weight: 600;
transition:
background-color 180ms ease,
border-color 180ms ease;
}
.primary-button {
border: 1px solid var(--color-primary);
color: #fff;
background: var(--color-primary);
}
.primary-button:hover:not(:disabled) {
border-color: var(--color-primary-hover);
background: var(--color-primary-hover);
}
.secondary-button {
border: 1px solid var(--color-primary);
color: var(--color-primary-hover);
background: var(--color-primary-soft);
}
.compact-button {
min-height: 44px;
margin: 0;
padding: 8px 18px;
}
.admin-layout {
display: grid;
min-height: 100vh;
grid-template-columns: 240px minmax(0, 1fr);
background: var(--color-background);
}
.admin-sidebar {
position: sticky;
top: 0;
display: flex;
height: 100vh;
padding: 24px 16px;
flex-direction: column;
color: #fff;
background: var(--color-sidebar);
}
.brand-block {
display: flex;
min-height: 64px;
padding: 8px;
align-items: center;
gap: 12px;
}
.brand-block strong,
.brand-block small {
display: block;
}
.brand-block strong {
font-size: 18px;
}
.brand-block small {
margin-top: 4px;
color: #bfc8d2;
}
.brand-mark {
width: 36px;
height: 36px;
border: 8px solid var(--color-primary);
border-top-color: #ffb13b;
border-radius: 50% 50% 50% 16px;
transform: rotate(-18deg);
}
.admin-sidebar nav {
margin-top: 28px;
min-height: 0;
flex: 1 1 auto;
overflow-y: auto;
scrollbar-width: none;
}
.admin-sidebar nav::-webkit-scrollbar {
display: none;
}
.nav-item {
display: flex;
width: 100%;
min-height: 42px;
padding: 8px 14px;
border: 0;
border-radius: 10px;
color: #e8edf2;
background: transparent;
text-align: left;
align-items: center;
gap: 12px;
}
.admin-icon {
width: 19px;
height: 19px;
flex: 0 0 auto;
fill: currentColor;
opacity: 0.9;
}
.nav-item--active {
color: #fff;
background: rgb(255 107 53 / 22%);
box-shadow: inset 3px 0 var(--color-primary);
}
.admin-sidebar nav {
display: grid;
gap: 4px;
}
.inline-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.link-button--danger {
color: var(--color-danger);
}
.phase-note {
margin-top: auto;
flex-shrink: 0;
padding: 14px;
border-radius: 10px;
color: #cbd3dc;
background: rgb(255 255 255 / 7%);
font-size: 13px;
line-height: 1.6;
}
.page-kicker {
margin: 0 0 6px !important;
color: var(--color-primary) !important;
font-size: 13px;
font-weight: 700;
letter-spacing: 0.08em;
}
.dashboard-summary .summary-card {
border: 0;
border-top: 3px solid var(--color-primary);
box-shadow: 0 5px 18px rgb(28 39 51 / 7%);
}
.dashboard-summary .summary-card:nth-child(2) {
border-color: #378fe8;
}
.dashboard-summary .summary-card:nth-child(3) {
border-color: #42af57;
}
.dashboard-summary .summary-card:nth-child(4) {
border-color: #ffb13b;
}
.dashboard-charts {
display: grid;
margin-bottom: 20px;
grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
gap: 20px;
}
.chart-panel {
min-height: 360px;
}
.panel-heading {
display: flex;
margin-bottom: 20px;
align-items: flex-start;
justify-content: space-between;
gap: 20px;
}
.panel-heading h2 {
margin: 0 0 5px;
}
.panel-heading p,
.panel-heading > span {
margin: 0;
color: var(--color-text-secondary);
font-size: 13px;
}
.bar-chart {
display: flex;
height: 220px;
padding: 18px 10px 0;
align-items: stretch;
justify-content: space-around;
gap: 10px;
border-bottom: 1px solid var(--color-border);
background: repeating-linear-gradient(
to bottom,
#eef1f4 0,
#eef1f4 1px,
transparent 1px,
transparent 55px
);
}
.bar-column {
display: flex;
min-width: 36px;
flex: 1;
flex-direction: column;
align-items: center;
justify-content: flex-end;
gap: 8px;
}
.bar-values {
display: flex;
width: 100%;
height: 180px;
align-items: flex-end;
justify-content: center;
gap: 5px;
}
.bar {
display: block;
width: min(18px, 35%);
min-height: 5px;
border-radius: 4px 4px 0 0;
}
.bar--application {
background: #4b98ee;
}
.bar--completed {
background: #ff7848;
}
.bar-column small {
color: var(--color-text-secondary);
}
.chart-legend {
display: flex;
margin-top: 18px;
justify-content: center;
gap: 24px;
color: var(--color-text-secondary);
font-size: 13px;
}
.legend-dot {
display: inline-block;
width: 9px;
height: 9px;
margin-right: 7px;
border-radius: 50%;
}
.legend-dot--blue {
background: #4b98ee;
}
.legend-dot--orange {
background: #ff7848;
}
.distribution-list {
display: grid;
gap: 19px;
}
.distribution-list > div > div {
display: flex;
margin-bottom: 7px;
justify-content: space-between;
font-size: 14px;
}
.distribution-list progress {
width: 100%;
height: 8px;
overflow: hidden;
border: 0;
border-radius: 10px;
accent-color: var(--color-primary);
}
.quick-panel {
margin-bottom: 28px;
}
.quick-actions {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 14px;
}
.quick-actions button {
display: flex;
min-height: 76px;
padding: 14px;
align-items: center;
gap: 12px;
border: 1px solid var(--color-border);
border-radius: 12px;
color: var(--color-text);
background: #fff;
text-align: left;
}
.quick-actions b {
display: grid;
width: 38px;
height: 38px;
place-items: center;
border-radius: 10px;
color: #fff;
background: var(--color-primary);
}
.quick-actions .blue {
background: #378fe8;
}
.quick-actions .green {
background: #42af57;
}
.quick-actions .gold {
background: #e8a22c;
}
.muted-text {
color: var(--color-text-secondary);
}
.case-stepper {
display: grid;
margin-bottom: 20px;
padding: 24px 32px;
grid-template-columns: repeat(5, 1fr);
border: 1px solid var(--color-border);
border-radius: 14px;
background: #fff;
}
.case-stepper div {
position: relative;
display: flex;
align-items: center;
flex-direction: column;
gap: 8px;
color: var(--color-text-secondary);
font-size: 13px;
}
.case-stepper div:not(:last-child)::after {
position: absolute;
z-index: 0;
top: 14px;
left: calc(50% + 20px);
width: calc(100% - 40px);
height: 2px;
content: '';
background: #dde2e6;
}
.case-stepper i {
position: relative;
z-index: 1;
display: grid;
width: 30px;
height: 30px;
place-items: center;
border: 2px solid #cbd2d8;
border-radius: 50%;
color: #7c858d;
background: #fff;
font-style: normal;
font-weight: 700;
}
.case-stepper .done {
color: #268948;
font-weight: 600;
}
.case-stepper .done i {
border-color: #3daf5c;
color: #fff;
background: #3daf5c;
}
.case-stepper .done:not(:last-child)::after {
background: #78ca8d;
}
.admin-main {
min-width: 0;
}
.admin-topbar {
display: flex;
min-height: 64px;
padding: 0 28px;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--color-border);
background: #fff;
}
.admin-topbar strong,
.admin-topbar span {
display: block;
}
.admin-topbar span {
margin-top: 2px;
color: var(--color-text-secondary);
font-size: 13px;
}
.text-button,
.back-button,
.link-button {
min-height: 44px;
padding: 8px 12px;
border: 0;
border-radius: 8px;
color: var(--color-info);
background: transparent;
font-weight: 600;
}
.text-button:hover,
.back-button:hover,
.link-button:hover {
background: #eaf4ff;
}
.admin-main > .global-message {
margin: 12px 28px 0;
}
.content-area {
width: min(1440px, 100%);
margin: 0 auto;
padding: 28px;
}
.workspace-view {
width: min(1440px, 100%);
margin: 0 auto;
padding: 28px;
}
.view-header {
display: flex;
margin-bottom: 22px;
align-items: flex-start;
justify-content: space-between;
gap: 24px;
}
.view-header h1 {
margin: 0;
font-size: 28px;
line-height: 1.3;
}
.view-header p {
margin: 8px 0 0;
color: var(--color-text-secondary);
line-height: 1.6;
}
.table-wrap {
overflow-x: auto;
}
.page-header {
display: flex;
margin-bottom: 22px;
align-items: flex-start;
justify-content: space-between;
gap: 24px;
}
.page-header h1 {
margin: 0;
font-size: 28px;
line-height: 1.3;
}
.page-header p {
margin: 8px 0 0;
color: var(--color-text-secondary);
line-height: 1.6;
}
.back-button {
margin: -8px 0 8px -12px;
}
.result-count {
padding: 8px 12px;
border-radius: 8px;
color: var(--color-text-secondary);
background: #fff;
font-variant-numeric: tabular-nums;
}
.filter-panel {
display: grid;
margin-bottom: 20px;
padding: 20px;
grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
align-items: end;
gap: 16px;
border: 1px solid var(--color-border);
border-radius: 14px;
background: #fff;
}
.filter-field {
display: grid;
gap: 8px;
}
.filter-field label {
font-size: 14px;
font-weight: 600;
}
.filter-field input,
.filter-field select {
width: 100%;
min-height: 44px;
padding: 8px 12px;
border: 1px solid var(--color-border);
border-radius: 9px;
color: var(--color-text);
background: #fff;
}
.filter-actions {
display: flex;
gap: 10px;
}
.panel,
.table-panel,
.empty-panel {
border: 1px solid var(--color-border);
border-radius: 14px;
background: #fff;
box-shadow: 0 3px 12px rgb(0 0 0 / 4%);
}
.panel {
padding: 24px;
}
.panel h2 {
margin: 0 0 20px;
font-size: 19px;
}
.panel h3 {
margin: 24px 0 10px;
font-size: 16px;
}
.empty-panel {
display: grid;
min-height: 280px;
padding: 32px;
place-content: center;
justify-items: center;
text-align: center;
}
.empty-panel h2 {
margin: 0;
font-size: 21px;
}
.empty-panel p {
max-width: 520px;
margin: 12px 0;
color: var(--color-text-secondary);
line-height: 1.7;
}
.table-scroll {
overflow-x: auto;
}
table {
width: 100%;
min-width: 980px;
border-collapse: collapse;
}
th,
td {
padding: 15px 16px;
border-bottom: 1px solid #ebecef;
text-align: left;
vertical-align: middle;
}
th {
color: #4e545d;
background: #fafafa;
font-size: 14px;
font-weight: 600;
white-space: nowrap;
}
td {
font-size: 14px;
}
tbody tr:hover {
background: #fffaf7;
}
.tabular {
font-variant-numeric: tabular-nums;
}
.pagination {
display: flex;
min-height: 64px;
padding: 10px 16px;
align-items: center;
justify-content: flex-end;
gap: 16px;
}
.pagination button {
min-height: 40px;
padding: 6px 14px;
border: 1px solid var(--color-border);
border-radius: 8px;
color: var(--color-text);
background: #fff;
}
.pagination span {
color: var(--color-text-secondary);
font-size: 14px;
}
.status-tag {
display: inline-flex;
min-height: 28px;
padding: 4px 9px;
align-items: center;
border-radius: 7px;
font-size: 13px;
font-weight: 600;
white-space: nowrap;
}
.status-tag--info {
color: var(--color-info);
background: #eaf4ff;
}
.status-tag--success {
color: var(--color-success);
background: #edf8ee;
}
.status-tag--warning {
color: var(--color-warning);
background: #fff6d8;
}
.status-tag--danger {
color: var(--color-danger);
background: #fff0ee;
}
.audit-notice {
margin-bottom: 20px;
padding: 14px 16px;
border-left: 4px solid #d18a00;
border-radius: 8px;
color: #604500;
background: #fff7de;
line-height: 1.6;
}
.detail-grid {
display: grid;
margin-bottom: 20px;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
.detail-list {
margin: 0;
}
.detail-list > div {
display: grid;
min-height: 48px;
padding: 11px 0;
grid-template-columns: 120px 1fr;
border-top: 1px solid #ebecef;
}
.detail-list dt {
color: var(--color-text-secondary);
}
.detail-list dd {
margin: 0;
overflow-wrap: anywhere;
}
.sensitive-value {
font-weight: 600;
}
.description-text {
margin: 0;
padding: 16px;
border-radius: 9px;
background: #fafafa;
line-height: 1.75;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.timeline-panel {
margin-bottom: 28px;
}
.workflow-panel {
margin-bottom: 20px;
}
.workflow-panel > p,
.consent-note {
color: var(--color-text-secondary);
line-height: 1.6;
}
.form-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px 20px;
}
.form-grid label {
display: grid;
align-content: start;
gap: 8px;
font-size: 14px;
font-weight: 600;
}
.form-grid input:not([type='checkbox']),
.form-grid select,
.form-grid textarea {
width: 100%;
min-height: 44px;
padding: 9px 12px;
border: 1px solid var(--color-border);
border-radius: 9px;
color: var(--color-text);
background: #fff;
}
.form-grid select[multiple] {
min-height: 132px;
}
.form-grid textarea {
min-height: 112px;
resize: vertical;
line-height: 1.6;
}
.form-span {
grid-column: 1 / -1;
}
.form-actions {
display: flex;
gap: 12px;
}
.checkbox-group {
display: flex;
padding: 14px;
flex-wrap: wrap;
gap: 12px 20px;
border: 1px solid var(--color-border);
border-radius: 10px;
}
.checkbox-group legend {
padding: 0 6px;
font-weight: 600;
}
.contact-summary {
padding: 16px;
border-radius: 10px;
background: #fafafa;
}
.contact-summary p {
margin: 8px 0 0;
}
.record-list {
margin-top: 20px;
}
.summary-grid {
display: grid;
margin-bottom: 20px;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 16px;
}
.dashboard-grid {
display: grid;
margin-bottom: 20px;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 16px;
}
.dashboard-card {
display: grid;
padding: 18px;
gap: 6px;
border: 1px solid var(--color-border);
border-radius: 14px;
background: var(--color-surface);
box-shadow: var(--shadow-card);
}
.dashboard-card span {
color: var(--color-text-secondary);
}
.dashboard-card strong {
font-size: 32px;
font-variant-numeric: tabular-nums;
}
.stat-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 0;
border-bottom: 1px solid #ebecef;
}
.stat-row:last-of-type {
border-bottom: 0;
}
.summary-card {
display: grid;
min-height: 126px;
padding: 18px;
align-content: space-between;
border: 1px solid var(--color-border);
border-radius: 14px;
color: var(--color-text);
background: #fff;
text-align: left;
box-shadow: 0 3px 12px rgb(0 0 0 / 4%);
}
button.summary-card:hover {
border-color: var(--color-danger);
background: #fff8f7;
}
.summary-card strong {
font-size: 32px;
font-variant-numeric: tabular-nums;
}
.summary-card small,
.block-note {
color: var(--color-text-secondary);
}
.summary-card--danger strong,
.danger-text {
color: var(--color-danger);
}
.block-note {
display: block;
margin-top: 4px;
font-size: 12px;
}
.consent-check {
display: flex !important;
min-height: 44px;
align-items: center;
gap: 10px;
line-height: 1.5;
}
.record-card {
padding: 18px 0;
border-top: 1px solid #ebecef;
}
.record-card header {
display: flex;
justify-content: space-between;
gap: 16px;
}
.record-card time {
color: var(--color-text-secondary);
font-size: 13px;
}
.record-card p {
line-height: 1.65;
white-space: pre-wrap;
}
.admin-timeline {
margin: 0;
padding: 0;
list-style: none;
}
.admin-timeline li {
position: relative;
display: grid;
min-height: 104px;
grid-template-columns: 24px 1fr;
gap: 14px;
}
.admin-timeline li:not(:last-child)::before {
position: absolute;
top: 18px;
bottom: -4px;
left: 7px;
width: 2px;
content: '';
background: #ffd3c1;
}
.timeline-marker {
position: relative;
z-index: 1;
width: 16px;
height: 16px;
margin-top: 3px;
border: 4px solid #ffe4d8;
border-radius: 50%;
background: var(--color-primary);
}
.admin-timeline strong {
font-size: 16px;
}
.admin-timeline p {
margin: 6px 0;
color: var(--color-text-secondary);
}
.admin-timeline time {
color: #767d87;
font-size: 13px;
font-variant-numeric: tabular-nums;
}
.table-skeleton {
height: 50px;
margin-bottom: 10px;
border-radius: 8px;
background: linear-gradient(90deg, #f0f1f3 25%, #fafafa 50%, #f0f1f3 75%);
background-size: 200% 100%;
animation: skeleton 1.4s ease-in-out infinite;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
@keyframes skeleton {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
@media (max-width: 1100px) {
.admin-layout {
grid-template-columns: 190px minmax(0, 1fr);
}
.filter-panel {
grid-template-columns: 1fr 1fr;
}
.filter-actions {
align-self: end;
}
.detail-grid {
grid-template-columns: 1fr;
}
.form-grid {
grid-template-columns: 1fr;
}
.form-span {
grid-column: auto;
}
.summary-grid {
grid-template-columns: 1fr 1fr;
}
.dashboard-grid {
grid-template-columns: 1fr 1fr;
}
.dashboard-charts {
grid-template-columns: 1fr;
}
.quick-actions {
grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 760px) {
.admin-layout {
display: block;
}
.admin-sidebar {
position: static;
width: 100%;
height: auto;
padding: 12px 16px;
}
.brand-block {
min-height: 52px;
}
.admin-sidebar nav {
display: flex;
margin-top: 12px;
overflow-x: auto;
overflow-y: hidden;
gap: 8px;
padding-bottom: 4px;
scrollbar-width: none;
}
.admin-sidebar nav::-webkit-scrollbar {
display: none;
}
.nav-item {
width: auto;
flex: 0 0 auto;
min-height: 44px;
white-space: nowrap;
}
.nav-item--active {
box-shadow: inset 0 -3px var(--color-primary);
}
.phase-note {
display: none;
}
.admin-topbar {
padding: 0 16px;
}
.content-area {
padding: 20px 16px;
}
.workspace-view {
padding: 20px 16px;
}
.page-header {
flex-direction: column;
}
.filter-panel {
grid-template-columns: 1fr;
}
.filter-actions {
width: 100%;
}
.filter-actions button {
flex: 1;
}
.detail-list > div {
grid-template-columns: 100px 1fr;
}
.welcome-card,
.login-card {
padding: 24px 20px;
}
.summary-grid {
grid-template-columns: 1fr;
}
.dashboard-grid {
grid-template-columns: 1fr;
}
.quick-actions {
grid-template-columns: 1fr;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
transition-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
}
}