chore: initial commit
This commit is contained in:
@@ -0,0 +1,351 @@
|
||||
:root {
|
||||
font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
|
||||
color: #172033;
|
||||
background: #f4f6f8;
|
||||
font-synthesis: none;
|
||||
--cc-primary: #155eef;
|
||||
--cc-navy: #172a46;
|
||||
--cc-border: #e3e8ef;
|
||||
--cc-muted: #667085;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html, body, #app { width: 100%; min-width: 0; min-height: 100%; margin: 0; }
|
||||
body { min-height: 100vh; background: #f4f6f8; }
|
||||
button, input, textarea, select { font: inherit; }
|
||||
button { letter-spacing: 0; }
|
||||
:focus-visible { outline: 3px solid rgba(21, 94, 239, .28); outline-offset: 2px; }
|
||||
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
|
||||
|
||||
.app-shell { min-width: 0; min-height: 100vh; }
|
||||
.app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: 240px; flex-direction: column; background: var(--cc-navy); color: #fff; }
|
||||
.is-collapsed .app-sidebar { width: 76px; }
|
||||
.brand-block { display: flex; height: 72px; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
|
||||
.brand-mark { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: #fff; color: var(--cc-navy); font-weight: 800; letter-spacing: 0; }
|
||||
.brand-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
|
||||
.brand-copy strong { font-size: 16px; }
|
||||
.brand-copy span { color: #aebbd0; font-size: 12px; }
|
||||
.side-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 10px; }
|
||||
.side-nav-menu {
|
||||
width: 100%;
|
||||
border-right: 0 !important;
|
||||
background: transparent !important;
|
||||
--el-menu-bg-color: transparent;
|
||||
--el-menu-text-color: #bdc7d7;
|
||||
--el-menu-active-color: var(--cc-navy);
|
||||
--el-menu-hover-bg-color: rgba(255,255,255,.08);
|
||||
}
|
||||
.side-nav-menu.el-menu--collapse { width: 56px; }
|
||||
.side-nav-menu .el-menu-item,
|
||||
.side-nav-menu .el-sub-menu__title { height: 44px; margin: 3px 0; border-radius: 8px; line-height: 44px; }
|
||||
.side-nav-menu .el-menu-item:hover,
|
||||
.side-nav-menu .el-sub-menu__title:hover { color: #fff; }
|
||||
.side-nav-menu .el-menu-item.is-active { background: #fff; color: var(--cc-navy); font-weight: 650; }
|
||||
.side-nav-menu .el-sub-menu .el-menu-item { min-width: 0; padding-left: 48px !important; }
|
||||
.side-nav-menu .el-menu-item svg,
|
||||
.side-nav-menu .el-sub-menu__title svg { flex: 0 0 auto; margin-right: 12px; }
|
||||
.sidebar-toggle { display: flex; height: 52px; align-items: center; justify-content: center; gap: 8px; border: 0; border-top: 1px solid rgba(255,255,255,.1); background: transparent; color: #aebbd0; cursor: pointer; }
|
||||
.app-main { min-width: 0; min-height: 100vh; margin-left: 240px; }
|
||||
.is-collapsed .app-main { margin-left: 76px; }
|
||||
.app-header { position: sticky; top: 0; z-index: 15; display: flex; min-width: 0; min-height: 72px; align-items: center; gap: 16px; padding: 10px 28px; border-bottom: 1px solid var(--cc-border); background: rgba(255,255,255,.96); }
|
||||
.page-heading { min-width: 0; flex: 1; }
|
||||
.page-heading h1 { margin: 0; overflow: hidden; font-size: 20px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.page-heading p { margin: 4px 0 0; overflow: hidden; color: var(--cc-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.header-user { display: flex; min-width: 0; flex: 0 0 auto; align-items: center; gap: 10px; }
|
||||
.user-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #eaf1ff; color: var(--cc-primary); font-weight: 700; }
|
||||
.user-copy { display: flex; flex-direction: column; }
|
||||
.user-copy strong { font-size: 13px; }
|
||||
.user-copy span { color: var(--cc-muted); font-size: 11px; }
|
||||
.mobile-menu-button { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
|
||||
.header-user .el-button { width: 44px; height: 44px; }
|
||||
.page-container { padding: 24px 28px 40px; }
|
||||
|
||||
/* Static permission preview */
|
||||
.app-header > .el-dropdown { min-width: 0; max-width: 320px; flex: 0 1 320px; }
|
||||
.role-preview-trigger { display: flex; width: 100%; min-width: 0; min-height: 44px; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--cc-border); border-radius: 8px; background: #fff; color: #172033; text-align: left; cursor: pointer; }
|
||||
.role-preview-trigger:hover { border-color: #b8c6d9; background: #f8fafc; }
|
||||
.role-preview-trigger:focus-visible { border-color: var(--cc-primary); outline: 3px solid rgba(21, 94, 239, .2); outline-offset: 1px; }
|
||||
.role-preview-trigger:disabled, .role-preview-trigger[aria-disabled="true"] { cursor: not-allowed; opacity: .58; }
|
||||
.role-preview-trigger > svg { flex: 0 0 auto; }
|
||||
.role-preview-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
|
||||
.role-preview-copy strong, .role-preview-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.role-preview-copy strong { font-size: 12px; font-weight: 700; }
|
||||
.role-preview-copy small { color: var(--cc-muted); font-size: 10px; line-height: 1.35; }
|
||||
|
||||
.forbidden-page { display: flex; min-height: min(560px, calc(100vh - 136px)); align-items: center; justify-content: center; flex-direction: column; padding: clamp(28px, 7vw, 64px) clamp(18px, 6vw, 48px); border: 1px solid var(--cc-border); border-radius: 8px; background: #fff; text-align: center; }
|
||||
.forbidden-icon { display: grid; width: 56px; height: 56px; place-items: center; margin-bottom: 18px; border-radius: 8px; background: #fef3f2; color: #b42318; }
|
||||
.forbidden-page .section-kicker { margin: 0 0 8px; }
|
||||
.forbidden-page h2 { max-width: 560px; margin: 0 0 10px; font-size: 20px; line-height: 1.35; }
|
||||
.forbidden-page > p:not(.section-kicker) { max-width: 560px; margin: 0 0 10px; color: var(--cc-muted); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
|
||||
.forbidden-page .forbidden-source { margin-bottom: 20px; color: #475467; font-size: 12px; }
|
||||
.forbidden-page .el-button { min-height: 44px; }
|
||||
|
||||
.login-page { display: grid; min-height: 100vh; grid-template-columns: minmax(420px, 1.05fr) minmax(420px, .95fr); background: #fff; }
|
||||
.login-intro { display: flex; flex-direction: column; justify-content: space-between; padding: 46px clamp(42px, 7vw, 100px); background: var(--cc-navy); color: #fff; }
|
||||
.login-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
|
||||
.login-brand span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 10px; background: #fff; color: var(--cc-navy); }
|
||||
.eyebrow, .section-kicker { color: #3975e9; font-size: 11px; font-weight: 750; letter-spacing: 0; }
|
||||
.login-intro h1 { max-width: 680px; margin: 16px 0 22px; font-size: 52px; line-height: 1.16; letter-spacing: 0; }
|
||||
.intro-copy { max-width: 560px; color: #b9c6d8; font-size: 16px; line-height: 1.8; }
|
||||
.security-note { display: flex; align-items: center; gap: 10px; color: #cbd5e1; font-size: 13px; }
|
||||
.login-panel { display: grid; place-items: center; padding: 48px; }
|
||||
.login-card { width: min(410px, 100%); }
|
||||
.login-card-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; background: #eaf1ff; color: var(--cc-primary); }
|
||||
.login-card h2 { margin: 22px 0 8px; font-size: 28px; }
|
||||
.login-card > p { margin: 0 0 30px; color: var(--cc-muted); }
|
||||
.login-submit { width: 100%; }
|
||||
.login-submit span { display: flex; align-items: center; gap: 8px; }
|
||||
.login-error { margin: 14px 0 0; color: #b42318; font-size: 13px; line-height: 1.5; }
|
||||
.login-error > p { margin: 0; }
|
||||
.api-error-alert-title { min-width: 0; }
|
||||
.demo-tip { margin-top: 18px; padding: 10px 12px; border: 1px solid #dce6f8; background: #f7faff; color: #64748b; font-size: 12px; }
|
||||
|
||||
.dashboard-stack { display: flex; flex-direction: column; gap: 20px; }
|
||||
.welcome-panel, .content-card, .module-card { border: 1px solid var(--cc-border); background: #fff; }
|
||||
.welcome-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 30px; }
|
||||
.welcome-panel h2 { margin: 8px 0 7px; font-size: 23px; }
|
||||
.welcome-panel p { margin: 0; color: var(--cc-muted); }
|
||||
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
|
||||
.stat-card { padding: 20px; border: 1px solid var(--cc-border); border-radius: 8px; background: #fff; color: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
|
||||
.stat-card:hover { border-color: #b8c6d9; box-shadow: 0 6px 16px rgba(23,42,70,.08); transform: translateY(-1px); }
|
||||
.stat-icon { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 20px; background: #eaf1ff; color: var(--cc-primary); }
|
||||
.stat-icon.is-amber { background: #fff7e6; color: #b76e00; }
|
||||
.stat-icon.is-teal { background: #e8f7f4; color: #087d70; }
|
||||
.stat-icon.is-red { background: #fff0f0; color: #c2413b; }
|
||||
.stat-label { color: var(--cc-muted); font-size: 13px; }
|
||||
.stat-card > strong { display: block; margin: 4px 0; font-size: 30px; }
|
||||
.stat-card > span { color: #98a2b3; font-size: 11px; }
|
||||
.content-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
|
||||
.content-card { padding: 24px; }
|
||||
.card-heading h3 { margin: 5px 0 18px; font-size: 18px; }
|
||||
.milestone-list { border-top: 1px solid var(--cc-border); }
|
||||
.milestone-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--cc-border); }
|
||||
.milestone-code { color: var(--cc-primary); font-size: 12px; font-weight: 750; }
|
||||
.next-list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
|
||||
.next-list li { display: flex; gap: 12px; }
|
||||
.next-list li > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border: 1px solid #cddaf0; color: var(--cc-primary); font-size: 12px; font-weight: 700; }
|
||||
.next-list strong { font-size: 14px; }
|
||||
.next-list p { margin: 4px 0 0; color: var(--cc-muted); font-size: 12px; line-height: 1.5; }
|
||||
.module-page { display: flex; flex-direction: column; gap: 16px; }
|
||||
.module-toolbar { display: flex; justify-content: flex-end; gap: 10px; }
|
||||
.module-toolbar .el-input { width: 280px; }
|
||||
.module-card { min-height: 430px; }
|
||||
.empty-state { display: flex; min-height: 430px; align-items: center; justify-content: center; flex-direction: column; padding: 40px; text-align: center; }
|
||||
.empty-icon { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 18px; background: #eef3fa; color: #55708f; }
|
||||
.empty-state h2 { margin: 0 0 8px; font-size: 20px; }
|
||||
.empty-state p { max-width: 540px; margin: 0 0 18px; color: var(--cc-muted); }
|
||||
|
||||
/* Business modules */
|
||||
.business-page { display: flex; min-width: 0; flex-direction: column; gap: 16px; }
|
||||
.surface-panel { min-width: 0; border: 1px solid var(--cc-border); border-radius: 8px; background: #fff; }
|
||||
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--cc-border); border-radius: 8px; background: #fff; }
|
||||
.metric-item { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--cc-border); }
|
||||
.metric-item:last-child { border-right: 0; }
|
||||
.metric-item span, .metric-item small { display: block; color: var(--cc-muted); }
|
||||
.metric-item span { margin-bottom: 7px; font-size: 12px; }
|
||||
.metric-item strong { display: block; overflow-wrap: anywhere; font-size: 25px; line-height: 1.15; }
|
||||
.metric-item small { margin-top: 5px; font-size: 11px; }
|
||||
.filter-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; }
|
||||
.filter-fields, .filter-actions { display: flex; align-items: center; gap: 10px; }
|
||||
.filter-fields { min-width: 0; flex: 1; }
|
||||
.filter-fields > .el-input { width: min(360px, 100%); }
|
||||
.filter-fields > .el-select { width: 150px; flex: 0 0 auto; }
|
||||
.filter-actions { flex: 0 0 auto; }
|
||||
.filter-actions .el-button + .el-button { margin-left: 0; }
|
||||
.filter-actions .el-button span, .table-actions .el-button span { gap: 5px; }
|
||||
.table-panel { overflow: hidden; }
|
||||
.panel-heading { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--cc-border); }
|
||||
.panel-heading h2 { margin: 0; font-size: 16px; }
|
||||
.panel-heading p { margin: 5px 0 0; color: var(--cc-muted); font-size: 12px; line-height: 1.5; }
|
||||
.table-panel .el-table { --el-table-border-color: #edf0f4; --el-table-header-bg-color: #f8fafc; --el-table-row-hover-bg-color: #f8fbff; }
|
||||
.table-panel .el-table th.el-table__cell { height: 44px; color: #475467; font-size: 12px; font-weight: 650; }
|
||||
.table-panel .el-table td.el-table__cell { padding: 12px 0; }
|
||||
.primary-cell, .user-cell { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
|
||||
.primary-cell strong, .user-cell strong { overflow: hidden; color: #172033; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.primary-cell span, .user-cell span { overflow: hidden; color: var(--cc-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.user-cell { flex-direction: row; align-items: center; gap: 10px; }
|
||||
.user-cell > span:first-child, .detail-identity > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #eaf1ff; color: var(--cc-primary); font-weight: 700; }
|
||||
.user-cell > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
|
||||
.table-actions { display: flex; align-items: center; white-space: nowrap; }
|
||||
.table-actions .el-button + .el-button { margin-left: 10px; }
|
||||
.table-footer { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--cc-border); color: var(--cc-muted); font-size: 12px; }
|
||||
.status-badge { display: inline-flex; min-height: 24px; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 11px; font-weight: 650; white-space: nowrap; }
|
||||
.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
|
||||
.status-badge.is-success { background: #ecfdf3; color: #067647; }
|
||||
.status-badge.is-warning { background: #fffaeb; color: #b54708; }
|
||||
.status-badge.is-danger { background: #fef3f2; color: #b42318; }
|
||||
.status-badge.is-info { background: #eff4ff; color: #3538cd; }
|
||||
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
|
||||
.tag-list .el-tag + .el-tag { margin-left: 0; }
|
||||
.muted-value { color: #98a2b3; }
|
||||
|
||||
/* Drawers and forms */
|
||||
.business-drawer { max-width: 100vw; }
|
||||
.business-drawer .el-drawer__header { margin-bottom: 0; padding: 20px 24px 16px; border-bottom: 1px solid var(--cc-border); color: #172033; font-weight: 700; }
|
||||
.business-drawer .el-drawer__body { padding: 0; }
|
||||
.editor-drawer { top: 72px; height: calc(100% - 72px); }
|
||||
.business-drawer .el-drawer__footer { padding: 14px 24px; border-top: 1px solid var(--cc-border); }
|
||||
.drawer-form { padding: 4px 24px 24px; }
|
||||
.form-section { padding: 22px 0; border-bottom: 1px solid var(--cc-border); }
|
||||
.form-section:last-child { border-bottom: 0; }
|
||||
.form-section h3, .detail-section h3 { margin: 0 0 16px; font-size: 14px; }
|
||||
.form-grid { display: grid; gap: 0 16px; }
|
||||
.form-grid.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.form-grid.three-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
.drawer-form .el-form-item { min-width: 0; margin-bottom: 18px; }
|
||||
.drawer-form .el-select, .drawer-form .el-input-number, .drawer-form .el-date-editor { width: 100%; }
|
||||
.field-suffix { margin-left: 8px; color: var(--cc-muted); font-size: 12px; }
|
||||
.form-help { margin: -7px 0 18px; color: var(--cc-muted); font-size: 11px; line-height: 1.6; }
|
||||
.drawer-footer { display: flex; justify-content: flex-end; gap: 10px; }
|
||||
.drawer-footer .el-button + .el-button { margin-left: 0; }
|
||||
.detail-identity { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 24px; border-bottom: 1px solid var(--cc-border); }
|
||||
.detail-identity > span { width: 44px; height: 44px; }
|
||||
.detail-identity h2, .order-detail-head h2 { margin: 0; font-size: 17px; }
|
||||
.detail-identity p, .order-detail-head p { margin: 5px 0 0; color: var(--cc-muted); font-size: 12px; overflow-wrap: anywhere; }
|
||||
.business-drawer .metric-strip { margin: 20px 24px 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
.detail-section { padding: 22px 24px 0; }
|
||||
.detail-note { margin: 12px 0 0; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 6px; background: #f8fafc; color: #475467; font-size: 12px; line-height: 1.65; }
|
||||
|
||||
/* Role and permission management */
|
||||
.role-cell { display: flex; align-items: center; gap: 8px; }
|
||||
.section-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
|
||||
.section-heading-row h3 { margin-bottom: 4px; }
|
||||
.section-heading-row p { margin: 0; color: var(--cc-muted); font-size: 12px; line-height: 1.5; }
|
||||
.section-heading-row > span { color: var(--cc-muted); font-size: 11px; white-space: nowrap; }
|
||||
.permission-tree { margin-top: 16px; padding: 8px 0; border-top: 1px solid var(--cc-border); }
|
||||
.permission-tree .el-tree-node__content { min-height: 36px; }
|
||||
.permission-node { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: space-between; gap: 16px; padding-right: 12px; }
|
||||
.permission-node code, .code-value, .endpoint-cell code { color: #475467; font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }
|
||||
.legend-list { display: flex; flex-wrap: wrap; gap: 14px; color: var(--cc-muted); font-size: 11px; }
|
||||
.legend-list span { display: inline-flex; align-items: center; gap: 5px; }
|
||||
.legend-list i { width: 8px; height: 8px; border-radius: 2px; background: #155eef; }
|
||||
.legend-list i.is-action { background: #087d70; }
|
||||
.legend-list i.is-api { background: #8b5cf6; }
|
||||
.permission-name { display: flex; align-items: center; gap: 8px; }
|
||||
.permission-name > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 6px; background: #eef4ff; color: #155eef; }
|
||||
.permission-name > span.is-action { background: #e8f7f4; color: #087d70; }
|
||||
.permission-name > span.is-api { background: #f3efff; color: #7047b8; }
|
||||
.endpoint-cell { display: flex; align-items: center; gap: 8px; }
|
||||
.endpoint-cell > span { padding: 2px 5px; border-radius: 3px; background: #edf2f7; color: #344054; font-size: 10px; font-weight: 700; }
|
||||
.form-callout { display: flex; gap: 10px; margin-top: 18px; padding: 13px 14px; border: 1px solid #dbe5f5; border-radius: 6px; background: #f7faff; color: #344054; }
|
||||
.form-callout > svg { flex: 0 0 auto; color: var(--cc-primary); }
|
||||
.form-callout strong { font-size: 12px; }
|
||||
.form-callout p { margin: 3px 0 0; color: #5c6f87; font-size: 11px; line-height: 1.6; }
|
||||
|
||||
/* First-leg orders */
|
||||
.order-filter .filter-fields > .el-input { width: 280px; }
|
||||
.order-no { color: var(--cc-primary); font-weight: 700; }
|
||||
.route-cell { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; font-size: 12px; }
|
||||
.route-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.route-cell i { width: 18px; height: 1px; background: #98a2b3; }
|
||||
.selection-note { color: var(--cc-primary); font-size: 12px; font-weight: 650; }
|
||||
.order-detail-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 24px; border-bottom: 1px solid var(--cc-border); }
|
||||
.order-detail-head > div > span { color: var(--cc-primary); font-size: 11px; font-weight: 700; }
|
||||
.party-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
|
||||
.party-grid > div { padding: 14px; border: 1px solid var(--cc-border); border-radius: 6px; }
|
||||
.party-grid span { display: block; margin-bottom: 5px; color: var(--cc-muted); font-size: 11px; }
|
||||
.party-grid strong { font-size: 13px; line-height: 1.5; }
|
||||
.order-progress { margin: 4px 0 0; padding-left: 5px; }
|
||||
.order-progress .el-timeline-item__timestamp { color: #667085; font-size: 11px; }
|
||||
.order-progress h4 { margin: 0 0 4px; font-size: 13px; }
|
||||
.order-progress p { margin: 0; color: var(--cc-muted); font-size: 12px; line-height: 1.6; }
|
||||
.amount-field { display: flex; align-items: center; gap: 8px; }
|
||||
.amount-field .el-input-number { flex: 1; }
|
||||
.amount-field .el-select { width: 92px; flex: 0 0 auto; }
|
||||
.status-dialog .el-form-item { margin-bottom: 18px; }
|
||||
.status-dialog .el-select { width: 100%; }
|
||||
|
||||
/* Dashboard tasks */
|
||||
.task-card { padding-bottom: 10px; }
|
||||
.task-row { display: grid; width: 100%; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border: 0; border-top: 1px solid var(--cc-border); background: transparent; color: inherit; text-align: left; cursor: pointer; }
|
||||
.task-row:hover strong { color: var(--cc-primary); }
|
||||
.task-row > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
|
||||
.task-row small { color: var(--cc-muted); font-size: 11px; }
|
||||
.task-count { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 6px; background: #eef4ff; color: var(--cc-primary); font-size: 12px; font-weight: 700; }
|
||||
.milestone-row { grid-template-columns: 20px 1fr auto; }
|
||||
.milestone-state { width: 8px; height: 8px; border-radius: 50%; background: #12b76a; }
|
||||
.sidebar-scrim { display: none; }
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.stats-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
.content-grid { grid-template-columns: 1fr; }
|
||||
.metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.metric-item:nth-child(2) { border-right: 0; }
|
||||
.metric-item:nth-child(-n+2) { border-bottom: 1px solid var(--cc-border); }
|
||||
.filter-panel { align-items: stretch; flex-direction: column; }
|
||||
.filter-actions { justify-content: flex-end; }
|
||||
.form-grid.three-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.login-page { grid-template-columns: 1fr; }
|
||||
.login-intro { display: none; }
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.app-sidebar { display: flex; width: min(280px, 86vw); transform: translateX(-100%); transition: transform .2s ease; }
|
||||
.is-mobile-open .app-sidebar { transform: translateX(0); }
|
||||
.is-collapsed .app-sidebar { width: min(280px, 86vw); }
|
||||
.is-collapsed .brand-copy, .is-collapsed .sidebar-toggle span { display: flex; }
|
||||
.side-nav-menu, .side-nav-menu.el-menu--collapse { width: 100%; }
|
||||
.sidebar-toggle { display: none; }
|
||||
.sidebar-scrim { position: fixed; inset: 0 0 0 min(280px, 86vw); z-index: 19; display: block; border: 0; background: rgba(15, 23, 42, .46); }
|
||||
.app-main, .is-collapsed .app-main { margin-left: 0; }
|
||||
.mobile-menu-button { display: inline-grid; place-items: center; }
|
||||
.app-header > .el-dropdown { width: 44px; max-width: 44px; flex: 0 0 44px; }
|
||||
.role-preview-trigger { width: 44px; height: 44px; justify-content: center; padding: 0; }
|
||||
.role-preview-copy, .role-preview-trigger > svg:last-child { display: none; }
|
||||
.user-copy { display: none; }
|
||||
.page-heading p { display: none; }
|
||||
.page-container { padding: 18px 14px 30px; }
|
||||
.app-header { padding: 10px 14px; }
|
||||
.stats-grid { grid-template-columns: 1fr; }
|
||||
.welcome-panel { align-items: flex-start; flex-direction: column; }
|
||||
.metric-strip { grid-template-columns: 1fr 1fr; }
|
||||
.metric-item { padding: 15px; }
|
||||
.metric-item strong { font-size: 22px; }
|
||||
.filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.filter-fields > .el-input, .filter-fields > .el-select, .order-filter .filter-fields > .el-input { width: 100%; }
|
||||
.filter-fields > .el-input { grid-column: 1 / -1; }
|
||||
.filter-fields > .el-date-editor { width: 100%; min-width: 0; max-width: 100%; }
|
||||
.order-filter .filter-fields > .el-date-editor { grid-column: 1 / -1; }
|
||||
.filter-actions { overflow-x: auto; justify-content: flex-start; padding-bottom: 2px; }
|
||||
.filter-actions .el-button, .table-actions .el-button { min-height: 44px; }
|
||||
.panel-heading { align-items: flex-start; flex-direction: column; padding: 15px; }
|
||||
.table-footer { align-items: flex-start; flex-direction: column; }
|
||||
.table-footer .el-pagination { max-width: 100%; overflow-x: auto; }
|
||||
.business-drawer { width: 100% !important; }
|
||||
.drawer-form { padding: 4px 16px 20px; }
|
||||
.business-drawer .el-drawer__header { padding: 18px 16px 14px; }
|
||||
.business-drawer .el-drawer__footer { padding: 12px 16px; }
|
||||
.form-grid.two-cols, .form-grid.three-cols, .party-grid { grid-template-columns: 1fr; }
|
||||
.business-drawer .metric-strip { margin: 16px 16px 0; grid-template-columns: 1fr; }
|
||||
.business-drawer .metric-item { border-right: 0; border-bottom: 1px solid var(--cc-border); }
|
||||
.business-drawer .metric-item:last-child { border-bottom: 0; }
|
||||
.detail-section, .detail-identity, .order-detail-head { padding-right: 16px; padding-left: 16px; }
|
||||
.detail-identity { grid-template-columns: auto minmax(0, 1fr); }
|
||||
.detail-identity .status-badge { grid-column: 2; justify-self: start; }
|
||||
.section-heading-row { flex-direction: column; }
|
||||
.legend-list { display: none; }
|
||||
.login-panel { padding: 30px 20px; }
|
||||
}
|
||||
|
||||
@media (max-width: 420px) {
|
||||
.metric-strip { grid-template-columns: 1fr; }
|
||||
.metric-item { border-right: 0; border-bottom: 1px solid var(--cc-border); }
|
||||
.metric-item:last-child { border-bottom: 0; }
|
||||
.filter-fields { grid-template-columns: minmax(0, 1fr); }
|
||||
.filter-fields > .el-input { grid-column: auto; }
|
||||
.header-user .user-avatar { display: none; }
|
||||
.forbidden-page { min-height: calc(100vh - 120px); padding: 28px 16px; }
|
||||
.forbidden-page h2 { font-size: 18px; }
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {
|
||||
.app-header { gap: 6px; padding: 8px; }
|
||||
.page-heading h1 { max-width: 100%; font-size: 17px; }
|
||||
.mobile-menu-button, .role-preview-trigger, .header-user .el-button { min-width: 44px; min-height: 44px; }
|
||||
.page-container { padding: 14px 8px 24px; }
|
||||
.forbidden-page { padding-right: 14px; padding-left: 14px; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.app-sidebar, .side-nav-item, .stat-card { transition: none !important; }
|
||||
}
|
||||
Reference in New Issue
Block a user