Files
report/frontend/src/style.css
T
2026-07-19 03:44:35 +09:00

554 lines
10 KiB
CSS

:root {
--primary: #2563eb;
--primary-light: #eff6ff;
--secondary: #64748b;
--bg-main: #f8fafc;
--bg-card: #ffffff;
--text-main: #1e293b;
--text-muted: #64748b;
--border: #e2e8f0;
--success: #10b981;
--danger: #ef4444;
--sidebar-bg: #1e293b;
--sidebar-text: #f8fafc;
--radius: 12px;
--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
/* 전역 스크롤바 숨김 */
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
*::-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera */
}
body {
font-family: 'Inter', 'Noto Sans KR', sans-serif;
background-color: var(--bg-main);
color: var(--text-main);
line-height: 1.5;
}
.app-container {
display: flex;
min-height: 100vh;
}
/* Sidebar Styling */
.sidebar {
width: 260px;
background-color: var(--sidebar-bg);
color: var(--sidebar-text);
padding: 24px;
display: flex;
flex-direction: column;
flex-shrink: 0;
}
.sidebar-header h2 {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 24px;
color: #fff;
}
.user-info {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
background: rgba(255, 255, 255, 0.1);
border-radius: var(--radius);
margin-bottom: 32px;
}
.avatar {
width: 36px;
height: 36px;
background: var(--primary);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
}
.sidebar-nav .nav-group {
margin-bottom: 24px;
}
.sidebar-nav h3 {
font-size: 0.75rem;
text-transform: uppercase;
color: #94a3b8;
margin-bottom: 12px;
letter-spacing: 0.05em;
}
.sidebar-nav ul {
list-style: none;
}
.sidebar-nav li {
padding: 10px 12px;
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
transition: all 0.2s;
font-size: 0.9rem;
margin-bottom: 4px;
}
.sidebar-nav li i {
width: 18px;
}
.sidebar-nav li:hover {
background: rgba(255, 255, 255, 0.05);
}
.sidebar-nav li.active {
background: var(--primary);
color: white;
}
.sidebar-footer {
margin-top: auto;
}
.btn-logout {
width: 100%;
padding: 10px;
background: transparent;
border: 1px solid rgba(255,255,255,0.1);
color: #fff;
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
/* Main Content Area */
.main-content {
flex-grow: 1;
padding: 32px;
max-width: 1400px;
margin: 0 auto;
}
.main-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 32px;
}
.main-header h1 {
font-size: 1.75rem;
font-weight: 700;
margin-bottom: 4px;
}
.breadcrumb {
font-size: 0.85rem;
color: var(--text-muted);
}
.header-right {
display: flex;
gap: 12px;
align-items: center;
}
.date-picker {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background: white;
border: 1px solid var(--border);
border-radius: var(--radius);
font-size: 0.9rem;
cursor: pointer;
}
.btn {
padding: 10px 20px;
border-radius: var(--radius);
font-weight: 500;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
transition: all 0.2s;
border: none;
}
.btn-primary {
background-color: var(--primary);
color: white;
}
.btn-primary:hover {
background-color: #1d4ed8;
}
.btn-outline {
background: white;
border: 1px solid var(--border);
color: var(--text-main);
}
.btn-sm {
padding: 6px 12px;
font-size: 0.8rem;
}
.btn-pdf { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.btn-excel { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
/* Dashboard Grid */
.dashboard-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
}
.card {
background: var(--bg-card);
border-radius: var(--radius);
padding: 24px;
box-shadow: var(--shadow);
border: 1px solid var(--border);
}
.card-full { grid-column: span 2; }
.card-half { grid-column: span 1; }
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.card-header h3 {
font-size: 1.1rem;
display: flex;
align-items: center;
gap: 10px;
color: var(--text-main);
}
.badge {
padding: 4px 10px;
background: var(--primary-light);
color: var(--primary);
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
}
/* Tables */
.data-table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
}
.data-table th {
text-align: center;
padding: 12px;
background: #f8fafc;
font-size: 0.85rem;
color: var(--text-muted);
border-bottom: 2px solid var(--border);
}
.data-table td {
padding: 16px 12px;
border-bottom: 1px solid var(--border);
font-size: 0.9rem;
}
.text-up { color: var(--success); font-weight: 600; }
.text-down { color: var(--danger); font-weight: 600; }
.grid-2 {
display: grid;
grid-template-columns: 1.5fr 1fr;
gap: 24px;
}
.chart-container {
height: 300px;
}
.chart-container-small {
height: 200px;
width: 200px;
margin: 0 auto;
display: block;
position: relative;
}
.chart-container-small canvas {
max-width: 100% !important;
max-height: 100% !important;
}
.section-desc {
margin-top: 16px;
font-size: 0.9rem;
color: var(--text-muted);
background: #f1f5f9;
padding: 12px;
border-radius: 8px;
border-left: 4px solid var(--primary);
}
/* Inflow specific */
.mt-4 { margin-top: 1rem; }
/* Exposure Status */
.keyword-status ul {
list-style: none;
}
.keyword-status li {
display: flex;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px dashed var(--border);
}
.rank-badge {
color: var(--primary);
font-weight: bold;
}
.image-preview {
display: flex;
gap: 12px;
}
.preview-box {
flex: 1;
text-align: center;
}
.preview-box .label {
font-size: 0.75rem;
color: var(--text-muted);
margin-bottom: 4px;
display: block;
}
.img-placeholder {
width: 100%;
aspect-ratio: 16/9;
background: #e2e8f0;
border-radius: 8px;
background-size: cover;
background-position: center;
}
/* Plan section */
.styled-textarea {
width: 100%;
height: 120px;
padding: 16px;
border-radius: 8px;
border: 1px solid var(--border);
font-family: inherit;
resize: none;
background: #f8fafc;
}
.styled-textarea:focus {
outline: none;
border-color: var(--primary);
background: #fff;
}
/* Transfer info */
.transfer-info-box {
background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
padding: 20px;
border-radius: var(--radius);
}
.info-row {
display: flex;
justify-content: space-between;
margin-bottom: 12px;
}
.info-row:last-child { margin-bottom: 0; }
.info-row .label { color: var(--secondary); font-size: 0.85rem; }
.info-row .value { font-weight: 600; }
.info-row .value.highlight { color: var(--primary); font-size: 1.25rem; }
/* Deposit Section */
.grid-deposit {
display: grid;
grid-template-columns: 300px 1fr;
gap: 24px;
}
.calendar-mini {
border: 1px solid var(--border);
border-radius: 8px;
padding: 16px;
}
.calendar-header {
text-align: center;
font-weight: bold;
margin-bottom: 12px;
}
.calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 4px;
text-align: center;
font-size: 0.75rem;
}
.cal-day {
padding: 8px 0;
border-radius: 4px;
}
.cal-day.active { background: var(--primary); color: white; }
/* Company Info Grid */
.grid-info {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.info-group label {
display: block;
font-size: 0.75rem;
color: var(--text-muted);
margin-bottom: 4px;
text-transform: uppercase;
}
.info-group p {
font-weight: 500;
}
.info-group a {
color: var(--primary);
text-decoration: none;
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.card {
animation: fadeIn 0.5s ease-out forwards;
}
/* Print Optimization */
/* ==========================================================================
Print Optimization (Standard A4)
========================================================================== */
@media print {
/* 1. 기본 인쇄 여백 설정 */
@page {
size: A4 portrait;
margin-top: 15mm !important;
margin-bottom: 10mm !important;
margin-left: 10mm !important;
margin-right: 10mm !important;
}
/* 2. 레이아웃 초기화 */
html, body, #app, .app-layout, .main-content, .dashboard-grid {
height: auto !important;
overflow: visible !important;
display: block !important;
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
background: white !important;
}
/* 3. 불필요 UI 숨김 */
.sidebar, .btn, .breadcrumb, .date-picker, .badge, .btn-sm, .card-actions, .main-header-actions {
display: none !important;
}
/* 4. 카드 및 콘텐츠 최적화 */
.card {
page-break-inside: avoid !important;
margin-bottom: 10px !important;
padding: 12px 16px !important;
border: 1px solid #f1f5f9 !important;
box-shadow: none !important;
}
/* 5. 비율 및 여백 압축 (2페이지 안착 목적) */
.chart-container {
height: 240px !important;
width: 100% !important;
}
.data-table td, .data-table th {
padding: 8px 10px !important;
font-size: 0.8rem !important;
}
canvas {
max-width: 100% !important;
height: auto !important;
}
* { color: #1e293b !important; }
}
/* 수동 인쇄 요소 숨김 */
.print-page-logo, .print-header, .print-footer {
display: none !important;
}
.empty-table-msg {
padding: 60px !important;
text-align: center;
color: #94a3b8;
background: #f8fafc;
font-size: 0.95rem;
border-radius: 0 0 12px 12px;
}
.empty-chart-msg {
height: 350px;
display: flex;
align-items: center;
justify-content: center;
background: #f8fafc;
color: #94a3b8;
border-radius: 12px;
border: 1px dashed #e2e8f0;
margin-bottom: 24px;
font-size: 0.95rem;
}