640ea96ae7
TaxBaik CI/CD / build-and-deploy (push) Successful in 48s
- Convert .admin-metric-grid to CSS Grid (grid-template-columns: repeat(auto-fit)) - Add flexbox layout to .admin-metric-card for proper content distribution - Remove all MudBlazor component direct styling (MudGrid, MudItem, MudPaper) - Focus only on custom admin-* classes - Fix metric cards layout (4-column desktop, responsive mobile) - Improve typography and spacing hierarchy - Add proper !important only where necessary for class overrides Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
561 lines
11 KiB
CSS
561 lines
11 KiB
CSS
/* ============================================================================
|
|
Admin Layout & Dashboard Styles
|
|
- Integrates with MudBlazor without overriding Mud components
|
|
- Focuses on custom admin-* and accent-* classes only
|
|
============================================================================ */
|
|
|
|
/* Global Reset */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html, body {
|
|
font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background-color: #f5f5f5;
|
|
color: #333;
|
|
}
|
|
|
|
/* Utility Classes */
|
|
.d-flex {
|
|
display: flex;
|
|
}
|
|
|
|
.align-center {
|
|
align-items: center;
|
|
}
|
|
|
|
.justify-center {
|
|
justify-content: center;
|
|
}
|
|
|
|
.justify-space-between {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.pa-8 {
|
|
padding: 32px !important;
|
|
}
|
|
|
|
.mb-4 {
|
|
margin-bottom: 16px !important;
|
|
}
|
|
|
|
.mb-6 {
|
|
margin-bottom: 24px !important;
|
|
}
|
|
|
|
.mt-4 {
|
|
margin-top: 16px !important;
|
|
}
|
|
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.ml-3 {
|
|
margin-left: 12px !important;
|
|
}
|
|
|
|
.cursor-pointer {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.font-weight-bold {
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
/* ============================================================================
|
|
Login Page Styles
|
|
============================================================================ */
|
|
|
|
.admin-login-page.mud-container {
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.admin-login-page.mud-container-maxwidth-small {
|
|
max-width: 600px !important;
|
|
}
|
|
|
|
.admin-login-page .mud-paper {
|
|
background-color: white;
|
|
border-radius: 4px;
|
|
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12);
|
|
padding: 16px;
|
|
}
|
|
|
|
.admin-login-page .mud-paper.elevation-3 {
|
|
box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
|
|
}
|
|
|
|
.admin-login-page .mud-typography {
|
|
color: #333;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.admin-login-page .mud-typography--h4 {
|
|
font-size: 2.125rem;
|
|
font-weight: 500;
|
|
color: #1976d2;
|
|
}
|
|
|
|
.admin-login-page .mud-typography--body1 {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.admin-login-page input[type="text"],
|
|
.admin-login-page input[type="password"] {
|
|
width: 100%;
|
|
padding: 12px;
|
|
margin-bottom: 12px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-family: inherit;
|
|
font-size: 1rem;
|
|
transition: border-color 0.3s;
|
|
}
|
|
|
|
.admin-login-page input[type="text"]:focus,
|
|
.admin-login-page input[type="password"]:focus {
|
|
outline: none;
|
|
border-color: #1976d2;
|
|
box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
|
|
}
|
|
|
|
.admin-login-page label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
font-weight: 500;
|
|
color: #555;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.admin-login-page button {
|
|
width: 100%;
|
|
padding: 12px 24px;
|
|
margin-top: 12px;
|
|
background-color: #1976d2;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.admin-login-page button:hover {
|
|
background-color: #1565c0;
|
|
}
|
|
|
|
.admin-login-page button:disabled {
|
|
background-color: #bdbdbd;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.admin-login-page .mud-alert {
|
|
padding: 12px 16px;
|
|
margin-bottom: 16px;
|
|
border-radius: 4px;
|
|
background-color: #ffebee;
|
|
border-left: 4px solid #c62828;
|
|
color: #c62828;
|
|
}
|
|
|
|
.admin-login-page .mud-alert--error {
|
|
background-color: #ffebee;
|
|
color: #c62828;
|
|
}
|
|
|
|
.admin-login-page .mud-alert--success {
|
|
background-color: #e8f5e9;
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.admin-login-page .mud-alert--info {
|
|
background-color: #e3f2fd;
|
|
color: #1565c0;
|
|
}
|
|
|
|
.admin-login-page .mud-progress-circular {
|
|
display: inline-block;
|
|
}
|
|
|
|
.loading {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* Reconnect Modal */
|
|
.admin-reconnect-modal {
|
|
display: none;
|
|
}
|
|
|
|
.admin-reconnect-modal.components-reconnect-show,
|
|
.admin-reconnect-modal.components-reconnect-failed,
|
|
.admin-reconnect-modal.components-reconnect-rejected {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 10000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
background: rgba(15, 23, 42, 0.48);
|
|
}
|
|
|
|
.admin-reconnect-card {
|
|
width: min(420px, 100%);
|
|
padding: 24px;
|
|
border-radius: 16px;
|
|
background: #fff;
|
|
box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
|
|
}
|
|
|
|
.admin-reconnect-card strong,
|
|
.admin-reconnect-card span {
|
|
display: block;
|
|
}
|
|
|
|
.admin-reconnect-card span {
|
|
margin-top: 8px;
|
|
color: #64748b;
|
|
}
|
|
|
|
/* ============================================================================
|
|
Admin Shell (Main Layout)
|
|
============================================================================ */
|
|
|
|
.admin-shell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.admin-topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 12px 24px;
|
|
background-color: #fff;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.admin-menu-button {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.admin-topbar-title {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.admin-topbar-action {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.admin-drawer {
|
|
width: 280px;
|
|
background-color: #fff;
|
|
border-right: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.admin-drawer-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 20px 16px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.admin-brand-mark {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
|
|
color: white;
|
|
font-weight: bold;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.admin-nav {
|
|
padding: 16px 0;
|
|
}
|
|
|
|
.admin-nav .mud-nav-link,
|
|
.admin-nav .mud-nav-group-header {
|
|
margin: 4px 8px !important;
|
|
border-radius: 8px !important;
|
|
}
|
|
|
|
.admin-nav .mud-nav-link.active {
|
|
background-color: #e3f2fd !important;
|
|
}
|
|
|
|
.admin-drawer-footer {
|
|
padding: 16px;
|
|
border-top: 1px solid #f0f0f0;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.admin-main {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.admin-content {
|
|
padding: 32px;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
/* ============================================================================
|
|
Dashboard Page Styles
|
|
============================================================================ */
|
|
|
|
/* Page Header */
|
|
.admin-page-hero {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 24px;
|
|
margin-bottom: 32px;
|
|
padding-bottom: 24px;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.admin-page-hero > div {
|
|
flex: 1;
|
|
}
|
|
|
|
.admin-eyebrow {
|
|
display: block;
|
|
color: #1976d2;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
font-size: 0.75rem;
|
|
letter-spacing: 0.5px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.admin-page-title {
|
|
display: block;
|
|
color: #1a1a1a;
|
|
font-weight: 600;
|
|
margin-bottom: 8px;
|
|
font-size: 1.75rem;
|
|
}
|
|
|
|
.admin-page-subtitle {
|
|
display: block;
|
|
color: #666;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
/* Metrics Grid - CSS Grid Layout */
|
|
.admin-metric-grid {
|
|
display: grid !important;
|
|
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
|
|
gap: 16px !important;
|
|
margin-bottom: 32px !important;
|
|
}
|
|
|
|
/* Metric Card - Customization for MudPaper */
|
|
.admin-metric-card {
|
|
padding: 20px !important;
|
|
border-radius: 8px !important;
|
|
background-color: #fff !important;
|
|
border: 1px solid #e0e0e0 !important;
|
|
transition: all 0.2s ease !important;
|
|
cursor: pointer !important;
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
justify-content: space-between !important;
|
|
min-height: 140px !important;
|
|
}
|
|
|
|
.admin-metric-card:hover {
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
|
|
border-color: #d0d0d0 !important;
|
|
transform: translateY(-2px) !important;
|
|
}
|
|
|
|
/* Metric Card Accent Colors */
|
|
.accent-blue {
|
|
background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
|
|
border-color: #90caf9 !important;
|
|
}
|
|
|
|
.accent-amber {
|
|
background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%) !important;
|
|
border-color: #ffcc80 !important;
|
|
}
|
|
|
|
.accent-slate {
|
|
background: linear-gradient(135deg, #eceff1 0%, #cfd8dc 100%) !important;
|
|
border-color: #b0bec5 !important;
|
|
}
|
|
|
|
.accent-green {
|
|
background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%) !important;
|
|
border-color: #81c784 !important;
|
|
}
|
|
|
|
/* Surfaces & Containers */
|
|
.admin-surface {
|
|
padding: 24px !important;
|
|
border-radius: 8px !important;
|
|
background-color: #fff !important;
|
|
border: 1px solid #e0e0e0 !important;
|
|
margin-bottom: 24px !important;
|
|
}
|
|
|
|
.admin-section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 16px;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 16px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.admin-section-header > div:first-child {
|
|
flex: 1;
|
|
}
|
|
|
|
/* Tables */
|
|
.admin-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.admin-table thead {
|
|
background-color: #f5f5f5;
|
|
border-bottom: 2px solid #e0e0e0;
|
|
}
|
|
|
|
.admin-table thead th {
|
|
padding: 12px 16px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: #666;
|
|
font-size: 0.85rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.admin-table tbody tr {
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.admin-table tbody tr:hover {
|
|
background-color: #fafafa;
|
|
}
|
|
|
|
.admin-table tbody td {
|
|
padding: 12px 16px;
|
|
color: #333;
|
|
}
|
|
|
|
.admin-table tbody a {
|
|
color: #1976d2;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.admin-table tbody a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.admin-table .mud-chip-small {
|
|
height: 24px !important;
|
|
font-size: 0.75rem !important;
|
|
}
|
|
|
|
/* ============================================================================
|
|
Responsive Design
|
|
============================================================================ */
|
|
|
|
@media (max-width: 960px) {
|
|
.admin-drawer {
|
|
width: 64px;
|
|
}
|
|
|
|
.admin-content {
|
|
padding: 24px;
|
|
}
|
|
|
|
.admin-page-hero {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.admin-section-header {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.admin-metric-grid {
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.admin-login-page.mud-container-maxwidth-small {
|
|
max-width: 100% !important;
|
|
padding: 16px;
|
|
}
|
|
|
|
.admin-login-page .mud-typography--h4 {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.admin-content {
|
|
padding: 16px;
|
|
}
|
|
|
|
.admin-page-hero {
|
|
gap: 12px;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 16px;
|
|
}
|
|
|
|
.admin-page-title {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.admin-metric-grid {
|
|
grid-template-columns: 1fr !important;
|
|
gap: 12px !important;
|
|
}
|
|
|
|
.admin-surface {
|
|
padding: 16px !important;
|
|
}
|
|
|
|
.admin-section-header {
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
padding-bottom: 12px;
|
|
}
|
|
|
|
.admin-table thead th {
|
|
padding: 8px 12px;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.admin-table tbody td {
|
|
padding: 8px 12px;
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|