130 lines
4.2 KiB
CSS
130 lines
4.2 KiB
CSS
/* --- 다크 모드 기본 스타일 --- */
|
|
body {
|
|
background-color: #0f172a;
|
|
color: #f1f5f9;
|
|
font-family: 'Pretendard', sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* --- 헤더 --- */
|
|
header {
|
|
background-color: #1e293b;
|
|
color: #fff;
|
|
border-bottom: 1px solid #334155;
|
|
padding: 0 30px;
|
|
height: 60px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-shrink: 0;
|
|
}
|
|
.logo { font-weight: 800; font-size: 1.3rem; margin-right: 40px; }
|
|
|
|
nav { display: flex; gap: 10px; flex: 1; }
|
|
.nav-btn { text-decoration: none; color: #94a3b8; font-weight: 600; padding: 8px 16px; border-radius: 8px; transition: all 0.2s; font-size: 0.9rem; }
|
|
.nav-btn:hover { background-color: #334155; color: #fff; }
|
|
.nav-btn.active { background-color: #3b82f6; color: #fff; box-shadow: 0 0 10px rgba(59, 130, 246, 0.3); }
|
|
|
|
.container { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 20px; gap: 20px; box-sizing: border-box; }
|
|
|
|
/* 다크 모드 섹션 스타일 */
|
|
.inventory-section {
|
|
flex: 1;
|
|
background: #1e293b;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.2);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
border: 1px solid #334155;
|
|
}
|
|
|
|
.section-header {
|
|
padding: 15px 20px;
|
|
border-bottom: 1px solid #334155;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-weight: 700;
|
|
font-size: 1.1rem;
|
|
color: #e2e8f0;
|
|
background-color: #0f172a;
|
|
}
|
|
|
|
.table-wrapper { flex: 1; overflow-y: auto; }
|
|
|
|
/* 다크 모드 테이블 */
|
|
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
|
|
th {
|
|
position: sticky; top: 0;
|
|
background-color: #0f172a;
|
|
color: #94a3b8;
|
|
padding: 12px 20px;
|
|
text-align: left;
|
|
border-bottom: 2px solid #334155;
|
|
font-size: 0.85rem;
|
|
font-weight: 700;
|
|
z-index: 10;
|
|
}
|
|
td {
|
|
padding: 12px 20px;
|
|
border-bottom: 1px solid #334155;
|
|
color: #f1f5f9;
|
|
vertical-align: middle;
|
|
}
|
|
tr:hover td { background-color: #334155; }
|
|
|
|
.sortable { cursor: pointer; user-select: none; transition: color 0.2s; }
|
|
.sortable:hover { color: #3b82f6; background-color: #1e293b; }
|
|
|
|
/* 다크 모드 배지 스타일 */
|
|
.badge { padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; display: inline-block; min-width: 80px; text-align: center; }
|
|
|
|
.expiry-expired { background-color: #450a0a; color: #f87171; border: 1px solid #b91c1c; } /* 만료 */
|
|
.expiry-warning { background-color: #422006; color: #fbbf24; border: 1px solid #b45309; } /* 임박 */
|
|
.expiry-good { background-color: #064e3b; color: #34d399; border: 1px solid #059669; } /* 안전 */
|
|
|
|
.stock-badge { padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; display: inline-block; text-align: center; }
|
|
.stock-low { background-color: #450a0a; color: #f87171; border: 1px solid #b91c1c; }
|
|
.stock-normal { background-color: #334155; color: #94a3b8; border: 1px solid #475569; }
|
|
|
|
/* 매출 섹션 */
|
|
.sales-section { flex: 1; display: flex; gap: 20px; min-height: 0; }
|
|
.kpi-container { display: flex; flex-direction: column; gap: 15px; width: 250px; flex-shrink: 0; }
|
|
|
|
.kpi-card {
|
|
background: #1e293b;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
border: 1px solid #334155;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.2);
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
.kpi-title { font-size: 0.9rem; color: #94a3b8; margin-bottom: 5px; font-weight: 600; }
|
|
.kpi-value { font-size: 1.8rem; font-weight: 800; color: #fff; }
|
|
.kpi-icon { font-size: 2rem; margin-bottom: 10px; }
|
|
|
|
.chart-container {
|
|
flex: 1;
|
|
background: #1e293b;
|
|
border-radius: 12px;
|
|
border: 1px solid #334155;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.2);
|
|
padding: 20px;
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
::-webkit-scrollbar { width: 8px; }
|
|
::-webkit-scrollbar-track { background: #0f172a; }
|
|
::-webkit-scrollbar-thumb { background: #475569; border-radius: 4px; }
|
|
::-webkit-scrollbar-thumb:hover { background: #64748b; } |