Files
taxbaik/TaxBaik.Web/wwwroot/css/admin.css
T
kjh2064 ae7ca7e382
TaxBaik CI/CD / build-and-deploy (push) Successful in 54s
fix: remove :deep() CSS selectors and strengthen admin dashboard styles
- Remove :deep() pseudo-selectors (not supported in external CSS files)
- Add !important to metric card, accent colors, and page hero styles to ensure MudBlazor components display correctly
- Improve CSS specificity for typography classes (.mud-typography--h3 and .mud-typography-h3)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 09:58:40 +09:00

546 lines
10 KiB
CSS

/* MudBlazor 초기화 전 기본 스타일 */
* {
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;
}
/* Login 페이지 기본 스타일 */
.d-flex {
display: flex;
}
.align-center {
align-items: center;
}
.justify-center {
justify-content: center;
}
.pa-8 {
padding: 32px !important;
}
.mb-4 {
margin-bottom: 16px !important;
}
.mb-6 {
margin-bottom: 24px !important;
}
.text-center {
text-align: center;
}
.ml-3 {
margin-left: 12px !important;
}
/* Login page scoped fallback styles. Keep these scoped so they do not override MudBlazor globally. */
.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;
}
/* Form Elements */
.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;
}
/* Login button fallback. Do not apply this to all admin buttons. */
.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;
}
/* MudAlert */
.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;
}
/* Progress Circle */
.admin-login-page .mud-progress-circular {
display: inline-block;
}
/* Loading state */
.loading {
opacity: 0.6;
}
.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 & 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;
border-radius: 8px;
}
.admin-nav .mud-nav-link.active {
background-color: #e3f2fd;
}
.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%;
}
/* Page Header */
.admin-page-hero {
display: flex !important;
justify-content: space-between !important;
align-items: flex-end !important;
gap: 24px !important;
margin-bottom: 32px !important;
padding-bottom: 24px !important;
border-bottom: 1px solid #e0e0e0 !important;
}
.admin-eyebrow {
display: block !important;
color: #1976d2 !important;
font-weight: 600 !important;
text-transform: uppercase !important;
font-size: 0.75rem !important;
letter-spacing: 0.5px !important;
margin-bottom: 4px !important;
}
.admin-page-title {
display: block !important;
color: #1a1a1a !important;
font-weight: 600 !important;
margin-bottom: 8px !important;
}
.admin-page-subtitle {
display: block !important;
color: #666 !important;
font-size: 0.95rem !important;
}
/* Metrics Grid */
.admin-metric-grid {
margin-bottom: 32px;
}
.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: block !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;
}
.admin-metric-card .mud-typography-caption {
display: block;
color: #999;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 12px;
}
.admin-metric-card .mud-typography-h3 {
font-weight: 700;
color: #1a1a1a;
margin-bottom: 8px;
}
.admin-metric-card .mud-typography-body2 {
color: #666;
font-size: 0.85rem;
}
.accent-blue {
background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
border-color: #90caf9 !important;
}
.accent-blue .mud-typography--h3,
.accent-blue .mud-typography-h3 {
color: #1565c0 !important;
}
.accent-amber {
background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%) !important;
border-color: #ffcc80 !important;
}
.accent-amber .mud-typography--h3,
.accent-amber .mud-typography-h3 {
color: #e65100 !important;
}
.accent-slate {
background: linear-gradient(135deg, #eceff1 0%, #cfd8dc 100%) !important;
border-color: #b0bec5 !important;
}
.accent-slate .mud-typography--h3,
.accent-slate .mud-typography-h3 {
color: #455a64 !important;
}
.accent-green {
background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%) !important;
border-color: #81c784 !important;
}
.accent-green .mud-typography--h3,
.accent-green .mud-typography-h3 {
color: #2e7d32 !important;
}
/* Surfaces */
.admin-surface {
padding: 24px;
border-radius: 8px;
background-color: #fff;
border: 1px solid #e0e0e0;
margin-bottom: 24px;
}
.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 {
flex: 1;
}
.admin-section-header .mud-typography-h6 {
color: #1a1a1a;
font-weight: 600;
margin-bottom: 4px;
}
.admin-section-header .mud-typography-body2 {
color: #666;
font-size: 0.9rem;
}
/* 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;
font-size: 0.75rem;
}
/* Cursor utilities */
.cursor-pointer {
cursor: pointer;
}
/* Responsive */
@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;
}
}
@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-metric-card {
padding: 16px;
}
.admin-surface {
padding: 16px;
}
.admin-section-header > div {
width: 100%;
}
}