485 lines
8.0 KiB
CSS
485 lines
8.0 KiB
CSS
/* Clean Enterprise UI Reset */
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');
|
|
|
|
:root {
|
|
font-family: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
color: #141414;
|
|
background-color: #f0f2f5;
|
|
font-synthesis: none;
|
|
text-rendering: optimizeLegibility;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
--muted: #8c8c8c;
|
|
--accent: #1677ff;
|
|
--line: #f0f0f0;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#app {
|
|
min-height: 100vh;
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* Typography Utilities */
|
|
.eyebrow {
|
|
margin: 0 0 8px;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.muted {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.section-heading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.section-heading h3 {
|
|
margin: 0;
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: #1a1a1a;
|
|
}
|
|
|
|
.page-title-card {
|
|
background: #fff;
|
|
border: 1px solid #e6edf5;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.page-title-card__header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 24px;
|
|
padding: 24px;
|
|
}
|
|
|
|
.page-title-card__copy {
|
|
min-width: 0;
|
|
}
|
|
|
|
.page-title-card__copy h2 {
|
|
margin: 0;
|
|
color: #1a1a1a;
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.page-title-card__copy p {
|
|
margin: 6px 0 0;
|
|
color: #8c8c8c;
|
|
font-size: 13px;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.page-title-card__actions {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.table-actions-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 4px;
|
|
}
|
|
|
|
.action-btn.ant-btn {
|
|
color: #8c8c8c;
|
|
font-size: 14px;
|
|
transition:
|
|
color 0.2s,
|
|
background-color 0.2s;
|
|
}
|
|
|
|
.action-edit.ant-btn:hover:not(:disabled) {
|
|
color: #52c41a;
|
|
background: #f6ffed;
|
|
}
|
|
|
|
.action-eye.ant-btn:hover:not(:disabled) {
|
|
color: #13c2c2;
|
|
background: #e6fffb;
|
|
}
|
|
|
|
.action-enable.ant-btn:hover:not(:disabled) {
|
|
color: #52c41a;
|
|
background: #f6ffed;
|
|
}
|
|
|
|
.action-disable.ant-btn:hover:not(:disabled) {
|
|
color: #fa8c16;
|
|
background: #fff7e6;
|
|
}
|
|
|
|
.action-delete.ant-btn:hover:not(:disabled) {
|
|
color: #ff4d4f;
|
|
background: #fff2f0;
|
|
}
|
|
|
|
/* Component Overrides for Ant Design to match Pro style */
|
|
.ant-layout {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.ant-layout-header {
|
|
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08); /* slight shadow for topbar */
|
|
}
|
|
|
|
.ant-card {
|
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
.ant-menu-dark .ant-menu-item-selected {
|
|
background-color: var(--accent);
|
|
}
|
|
|
|
.app-root {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
.ant-app,
|
|
.ant-layout,
|
|
.ant-layout-content,
|
|
.ant-layout .ant-layout {
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Workspace Layout Specifics */
|
|
.workspace-view {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
|
|
.workspace-hero__subtitle {
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
margin-top: 8px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.metric-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 24px;
|
|
}
|
|
|
|
/* Auth / Login specific styling */
|
|
.login-screen {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex: 1;
|
|
width: 100%;
|
|
background-color: #f0f2f5;
|
|
}
|
|
|
|
.login-screen__cover {
|
|
flex: 1;
|
|
background: linear-gradient(135deg, #001529 0%, #1677ff 100%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #fff;
|
|
padding: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
.login-screen__cover h1 {
|
|
font-size: 48px;
|
|
font-weight: 700;
|
|
margin-bottom: 16px;
|
|
color: #fff;
|
|
}
|
|
|
|
.login-screen__cover p {
|
|
font-size: 18px;
|
|
opacity: 0.8;
|
|
max-width: 480px;
|
|
}
|
|
|
|
.login-screen__form-container {
|
|
width: 500px;
|
|
background: #fff;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
padding: 60px 48px;
|
|
box-shadow: -4px 0 16px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.login-header {
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.login-header h2 {
|
|
font-size: 28px;
|
|
font-weight: 600;
|
|
margin: 0 0 8px;
|
|
color: #141414;
|
|
}
|
|
|
|
.login-header p {
|
|
color: var(--muted);
|
|
margin: 0;
|
|
font-size: 15px;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 992px) {
|
|
.metric-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
.login-screen__cover {
|
|
display: none;
|
|
}
|
|
.login-screen__form-container {
|
|
width: 100%;
|
|
align-items: center;
|
|
}
|
|
.login-header,
|
|
.ant-form {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
}
|
|
}
|
|
@media (max-width: 576px) {
|
|
.metric-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* Premium Modal Overrides */
|
|
.ant-modal-root .ant-modal-mask {
|
|
z-index: 3000 !important;
|
|
}
|
|
|
|
.ant-modal-root .ant-modal-wrap {
|
|
z-index: 3001 !important;
|
|
}
|
|
|
|
.ant-message,
|
|
.ant-notification {
|
|
z-index: 3300 !important;
|
|
}
|
|
|
|
.ant-modal-content {
|
|
border-radius: 16px !important;
|
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
|
|
padding: 12px !important;
|
|
}
|
|
|
|
.ant-modal-header {
|
|
border-bottom: none !important;
|
|
padding: 16px 16px 8px !important;
|
|
background: transparent !important;
|
|
}
|
|
|
|
.ant-modal-title {
|
|
font-size: 18px !important;
|
|
font-weight: 700 !important;
|
|
color: #111827 !important;
|
|
}
|
|
|
|
.ant-modal-body {
|
|
padding: 12px 16px !important;
|
|
}
|
|
|
|
.ant-modal-footer {
|
|
border-top: none !important;
|
|
padding: 8px 16px 12px !important;
|
|
}
|
|
|
|
.ant-modal-footer .ant-btn {
|
|
border-radius: 8px !important;
|
|
height: 38px !important;
|
|
padding: 0 20px !important;
|
|
font-weight: 500 !important;
|
|
}
|
|
|
|
.ant-drawer-content-wrapper {
|
|
max-width: 100vw;
|
|
}
|
|
|
|
.ant-table-wrapper {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.ant-table-wrapper .ant-table-container,
|
|
.ant-table-wrapper .ant-table-content,
|
|
.ant-table-wrapper .ant-table-body {
|
|
max-width: 100%;
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
.ant-table-wrapper .ant-table-content,
|
|
.ant-table-wrapper .ant-table-body {
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.section-heading,
|
|
.page-title-card__header,
|
|
.page-title-card__actions,
|
|
.table-actions-row,
|
|
[class$='__header'],
|
|
[class$='__table-head'],
|
|
[class*='__toolbar'],
|
|
[class*='-toolbar'],
|
|
[class*='__filters-inline'],
|
|
[class*='__filters'] {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.section-heading,
|
|
.page-title-card__header {
|
|
align-items: stretch;
|
|
gap: 16px;
|
|
}
|
|
|
|
.section-heading {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.page-title-card__header {
|
|
padding: 16px;
|
|
}
|
|
|
|
.page-title-card__actions {
|
|
width: 100%;
|
|
}
|
|
|
|
.page-title-card__actions > * {
|
|
min-width: 0;
|
|
}
|
|
|
|
.page-title-card__copy h2 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.ant-card-body {
|
|
padding: 16px !important;
|
|
}
|
|
|
|
.ant-table-wrapper {
|
|
display: block;
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.ant-table-wrapper .ant-spin-nested-loading,
|
|
.ant-table-wrapper .ant-spin-container,
|
|
.ant-table-wrapper .ant-table,
|
|
.ant-table-wrapper .ant-table-container {
|
|
min-width: 0;
|
|
}
|
|
|
|
.ant-tabs-nav {
|
|
margin-bottom: 14px !important;
|
|
}
|
|
|
|
.ant-tabs-nav-wrap {
|
|
overflow: auto !important;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.ant-tabs-nav-wrap::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.ant-tabs-nav-list {
|
|
min-width: max-content;
|
|
}
|
|
|
|
.ant-form,
|
|
.ant-form-item,
|
|
.ant-picker,
|
|
.ant-select,
|
|
.ant-input,
|
|
.ant-input-number,
|
|
.ant-input-affix-wrapper,
|
|
.ant-space,
|
|
[class*='__filter'],
|
|
[class*='filter-item'] {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.ant-form .ant-row,
|
|
.ant-space,
|
|
[class*='__filters'],
|
|
[class*='__filters-inline'] {
|
|
row-gap: 12px;
|
|
}
|
|
|
|
.ant-space {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.ant-modal {
|
|
max-width: calc(100vw - 24px) !important;
|
|
margin: 12px auto !important;
|
|
}
|
|
|
|
.ant-modal-root .ant-modal-wrap {
|
|
padding: 0 12px !important;
|
|
}
|
|
|
|
.ant-modal-body {
|
|
max-height: calc(100dvh - 180px);
|
|
overflow: auto;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 576px) {
|
|
.login-screen__form-container {
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
.ant-card-body {
|
|
padding: 14px !important;
|
|
}
|
|
|
|
.ant-table-wrapper {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.ant-pagination {
|
|
justify-content: center;
|
|
}
|
|
|
|
.table-actions-row {
|
|
justify-content: flex-start;
|
|
}
|
|
}
|