.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 🚀 Ticker (Live 전광판) Styles */
.ticker-container {
    background: #1e293b;
    color: #38bdf8;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 10px rgba(56, 189, 248, 0.2);
    border: 1px solid #334155;
    margin-bottom: 5px;
}

.ticker-label {
    background: #38bdf8;
    color: #1e293b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker-content {
    display: flex;
    gap: 50px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-item i {
    color: #facc15;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background-color: #facc15;
    /* Yellow accent */
    border-radius: 2px;
}

.card-header select {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    outline: none;
}

.card-body {
    padding: 20px;
    flex: 1;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card-gauge {
    position: relative;
    text-align: center;
}

.gauge-label {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
}

.gauge-label .percentage {
    font-size: 18px;
    font-weight: 800;
}

.gauge-label .count {
    font-size: 14px;
    font-weight: 700;
}

.gauge-label .sub {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Progress Row */
.progress-item {
    margin-bottom: 12px;
}

.progress-item .label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.progress-item .pct {
    color: var(--accent-primary);
}

.progress-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2px;
}

.progress-bar .fill {
    height: 100%;
}

.progress-item .values {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: right;
}

/* Revenue Card Enhanced */
.card-revenue {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.card-revenue .card-body {
    display: flex;
    flex-direction: row;
    /* Side by side layout */
    align-items: center;
    justify-content: space-between;
    padding: 24px;
}

.revenue-info {
    text-align: left;
    margin-bottom: 0;
    flex: 1;
}

.revenue-info .label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.revenue-info .amount {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: #1e3a8a;
    /* Navy focus */
    margin-bottom: 8px;
}

.revenue-info .target-box {
    background: rgba(59, 130, 246, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
}

.revenue-info .target {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
}

.revenue-chart {
    position: relative;
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
    /* Visible outline */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Soft inner shadow */
    display: flex;
    align-items: center;
    justify-content: center;
}

.pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.pie-center .badge-rev {
    background: var(--accent-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    /* No wrapping */
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pie-center .badge-rev .pct {
    font-size: 16px;
    line-height: 1;
}

.pie-center .badge-rev .lbl {
    font-size: 8px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Data card Enhanced */
.card-data {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.data-info .desc {
    font-size: 12px;
    color: #92400e;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.data-info .desc::before {
    content: '\f1c0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.data-item {
    display: flex;
    flex-direction: column;
    /* Stacked for more presence */
    gap: 4px;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.data-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.data-item .name {
    font-size: 13px;
    color: var(--text-secondary);
}

.data-item .period {
    font-size: 22px;
    /* Increased size */
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
    /* Soft glow */
}

/* Counter Animation Helper */
.counter-anim {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 🏆 Management Dashboard Add-ons */
.management-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    margin-top: 24px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.rank-badge {
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    margin-right: 15px;
    flex-shrink: 0;
}

.rank-1 .rank-badge {
    background: #fef08a;
    color: #854d0e;
}

.rank-2 .rank-badge {
    background: #e2e8f0;
    color: #475569;
}

.rank-3 .rank-badge {
    background: #ffedd5;
    color: #9a3412;
}

.staff-info {
    flex: 1;
}

.staff-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.staff-dept {
    font-size: 11px;
    color: #94a3b8;
}

.performance-metric {
    text-align: right;
}

.metric-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--kt-primary);
    display: block;
}

.metric-label {
    font-size: 10px;
    color: #64748b;
}

/* AI Forecast Card */
.ai-forecast-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    color: white !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.ai-forecast-card .card-header h3 {
    color: #38bdf8;
}

.ai-forecast-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.forecast-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.forecast-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.forecast-icon {
    font-size: 20px;
    color: #38bdf8;
    margin-bottom: 10px;
}

.forecast-val {
    font-size: 20px;
    font-weight: 800;
    display: block;
    margin-bottom: 3px;
    color: #fff;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.forecast-lbl {
    font-size: 11px;
    color: #94a3b8;
}

.ai-insight-box {
    margin-top: 20px;
    padding: 15px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 8px;
    border-left: 4px solid #38bdf8;
}

.ai-insight-box p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    color: #e2e8f0;
}

.ai-insight-box strong {
    color: #38bdf8;
}

.data-item .period::after {
    content: 'Total Assets';
    font-size: 10px;
    color: #94a3b8;
    font-weight: 400;
}

/* Performance Table */
.performance-section .controls {
    display: flex;
    gap: 8px;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

th,
td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #f1f5f9;
}

th {
    background-color: #f8fafc;
    font-weight: 700;
    color: var(--text-secondary);
}

td:first-child {
    text-align: left;
    font-weight: 600;
    background-color: #f8fafc;
}

td.negative {
    color: #ef4444;
}

/* Line Charts Row */
.line-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Circular Status Row */
.circular-status-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.status-item canvas {
    max-width: 100px;
    max-height: 100px;
}

.status-item .label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}
/* 🌟 Additional Dashboard UI Components */
.ai-matching-pipeline { background: rgba(56, 189, 248, 0.05); border: 1px dashed rgba(56, 189, 248, 0.3); border-radius: 12px; padding: 15px; }
.pipeline-item { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; border-bottom: 1px solid rgba(56, 189, 248, 0.1); padding-bottom: 10px; }
.pipeline-status { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: #38bdf8; color: #fff; }
.pipeline-info { font-size: 12px; color: #e2e8f0; }
.pipeline-time { margin-left: auto; font-size: 10px; color: #94a3b8; }
.trend-card { background: #fff; }
.trend-stats { display: flex; justify-content: space-around; margin-top: 15px; }
.trend-item { text-align: center; }
.trend-val { font-size: 18px; font-weight: 800; color: #2563eb; display: block; }
.trend-lbl { font-size: 11px; color: #64748b; }
