/* KMU Navigation – Rating-Dashboard-Styles */

body.dashboard-page { background: #F4F5F7; }
.dash-wrap { max-width: var(--maxw); margin: 0 auto; padding: 24px; }

.topbar { background: white; padding: 18px 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 24px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar .logo-circle { width: 52px; height: 52px; }
.topbar .logo-text .kmu { font-size: 22px; letter-spacing: 1px; }
.topbar .logo-text .nav-label { font-size: 12px; letter-spacing: 3px; }
.topbar-meta { text-align: right; font-size: 13px; color: var(--text-light); }
.topbar-meta strong { color: var(--text); display: block; font-size: 14px; }
.topbar-back { font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 600; }
.topbar-back:hover { text-decoration: underline; }

.dash-header { background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); color: white; padding: 28px 32px; border-radius: 12px; margin-bottom: 24px; }
.dash-header h1 { margin: 0 0 6px 0; font-size: 26px; font-weight: 700; }
.dash-header p { margin: 0; opacity: 0.9; font-size: 15px; }

.demo-banner { background: #FFF3CD; border: 1px solid #FFEEBA; color: #856404; border-radius: 8px; padding: 12px 18px; font-size: 13px; margin-bottom: 24px; }

.summary { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.stat { background: white; padding: 18px; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border-left: 4px solid var(--accent); }
.stat-label { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.stat-value { font-size: 22px; font-weight: 700; color: var(--primary); }
.stat-sub { font-size: 12px; color: var(--text-light); margin-top: 2px; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card { background: white; border-radius: 12px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.card h2 { margin: 0 0 4px 0; font-size: 17px; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.card .subtitle { font-size: 12px; color: var(--text-light); margin-bottom: 16px; }

.rating-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #F0F0F0; }
.rating-row:last-child { border-bottom: none; }
.rating-row .label { font-size: 14px; }
.rating-row .label-detail { color: var(--text-light); font-size: 12px; margin-top: 2px; }
.rating-row > div:first-child { flex: 1; }

.badge { font-weight: 700; padding: 4px 12px; border-radius: 20px; font-size: 13px; min-width: 28px; text-align: center; }
.badge-A { background: #D4EDDA; color: #155724; border: 1px solid #C3E6CB; }
.badge-B { background: #DAF1D9; color: #2C6B2A; border: 1px solid #C3E6CB; }
.badge-C { background: #FFF3CD; color: #856404; border: 1px solid #FFEEBA; }
.badge-D { background: #FFE4B5; color: #8B5A00; border: 1px solid #FFD580; }
.badge-E { background: #F8D7DA; color: #721C24; border: 1px solid #F5C6CB; }
.badge-F { background: #E8B4B4; color: #5C0F0F; border: 1px solid #D89090; }

.gauge { position: relative; width: 100%; height: 160px; margin: 16px 0 8px 0; }
.gauge svg { width: 100%; height: 100%; }
.gauge-text { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; }
.gauge-text .big { font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1; }
.gauge-text .small { font-size: 12px; color: var(--text-light); margin-top: 4px; }

.measures { background: var(--grey-bg); padding: 14px; border-radius: 8px; margin-top: 14px; border-left: 3px solid var(--accent); }
.measures-title { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.measure-item { font-size: 13px; padding: 6px 0; display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.measure-item::before { content: ""; min-width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-top: 6px; }
.priority { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 3px; margin-left: 6px; vertical-align: middle; }
.priority-high { background: #FFE0E0; color: var(--red); }
.priority-mid { background: #FFF3CD; color: #856404; }
.priority-low { background: #D4EDDA; color: #155724; }

.upsale { background: linear-gradient(135deg, #FFF8E7 0%, #FFEAB8 100%); border: 1px solid var(--gold); border-radius: 12px; padding: 18px; margin-top: 24px; }
.upsale h3 { margin: 0 0 10px 0; color: #8B6914; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.upsale-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 12px; }
.upsale-item { background: white; padding: 10px 12px; border-radius: 8px; font-size: 12px; border: 1px solid #EBD78E; }
.upsale-item strong { color: var(--primary); display: block; font-size: 13px; }

.dash-foot { margin-top: 24px; padding: 18px 24px; background: white; border-radius: 8px; font-size: 12px; color: var(--text-light); text-align: center; }

.legend { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; font-size: 11px; color: var(--text-light); justify-content: center; }
.legend-item { display: flex; align-items: center; gap: 4px; }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; }

@media (max-width: 768px) {
  .dash-grid { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr 1fr; }
  .upsale-grid { grid-template-columns: 1fr; }
  .topbar-meta { text-align: left; }
}
