.dashboard-operation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.dashboard-operation { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #e2e8f0; background: #fff; }
.dashboard-operation i { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: #1d4ed8; background: #dbeafe; font-size: 19px; }
.dashboard-operation:nth-child(2n) i { color: #08783e; background: #dcfce7; }
.dashboard-operation:nth-child(3n) i { color: #9a3412; background: #ffedd5; }
.dashboard-operation span, .dashboard-operation strong { display: block; }
.dashboard-operation span { color: #64748b; font-size: 11px; }
.dashboard-operation strong { margin-top: 3px; color: #0f172a; font-size: 18px; overflow-wrap: anywhere; }
.dashboard-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr); gap: 16px; min-height: 280px; }
.dashboard-section { min-width: 0; display: flex; flex-direction: column; border-top: 1px solid #dbe2ea; background: #fff; }
.dashboard-section > header { padding: 16px 18px 12px; }
.dashboard-section h2 { margin: 0 0 4px; font-size: 15px; }
.dashboard-section header p { margin: 0; color: #64748b; font-size: 11px; }
.dashboard-table { border-width: 1px 0 0; border-radius: 0; }
.dashboard-table table { min-width: 760px; }
.dashboard-task-list { display: grid; gap: 8px; padding: 0 16px 16px; }
.dashboard-task { width: 100%; min-height: 54px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid #e2e8f0; background: #fff; color: #334155; text-align: left; cursor: pointer; }
.dashboard-task i { font-size: 18px; color: #2563eb; }
.dashboard-task b { display: grid; min-width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #fef3c7; color: #92400e; }
.dashboard-empty { margin: 0; padding: 28px 16px; color: #64748b; text-align: center; font-size: 12px; }
@media(max-width:1180px){.dashboard-operation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-detail-grid{grid-template-columns:1fr}}
@media(max-width:640px){.dashboard-operation-grid{grid-template-columns:1fr}.dashboard-detail-grid{display:block}.dashboard-section+.dashboard-section{margin-top:16px}}
@media(max-width:1100px){.dashboard-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-content-grid{grid-template-columns:1fr}}
@media(max-width:640px){.dashboard-toolbar{align-items:flex-start;flex-direction:column}.dashboard-toolbar-actions,.dashboard-filters{width:100%}.dashboard-filters{display:grid;grid-template-columns:1fr}.dashboard-toolbar-actions{align-items:flex-end}.dashboard-metric-grid{grid-template-columns:1fr}.dashboard-widget>header{flex-direction:column}.dashboard-trend-control{width:100%;overflow:auto}.dashboard-trend-control button{flex:1 0 auto}.dashboard-chart{height:260px}}
.dashboard-toolbar { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.dashboard-scope { color: #0f172a; font-size: 15px; font-weight: 700; }
.dashboard-updated { min-height: 18px; margin-top: 3px; color: #64748b; font-size: 11px; }
.dashboard-toolbar-actions, .dashboard-filters { min-width: 0; display: flex; align-items: center; gap: 8px; }
.dashboard-filters .compact-select { min-width: 0; max-width: 240px; }
.dashboard-metric-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(220px,100%),1fr)); gap: 16px; margin-bottom: 16px; }
.dashboard-metric-grid .metric-card { min-height: 116px; }
.dashboard-metric-grid .metric-card > div:last-child { min-width: 0; }
.dashboard-metric-grid .metric-value { overflow-wrap: anywhere; }
.dashboard-note { min-height: 16px; margin-top: 4px; color: #64748b; font-size: 11px; }
.dashboard-content-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(290px,1fr); gap: 16px; }
.dashboard-widget { min-width: 0; padding: 18px; border: 1px solid #dbe2ea; background: #fff; }
.dashboard-widget > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.dashboard-widget h2 { margin: 0; color: #0f172a; font-size: 15px; }
.dashboard-widget header p { margin: 4px 0 0; color: #64748b; font-size: 11px; }
.dashboard-trend-control { display: flex; padding: 3px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; }
.dashboard-trend-control button { min-height: 30px; padding: 4px 10px; border: 0; border-radius: 4px; background: transparent; color: #475569; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.dashboard-trend-control button.active { background: #0f172a; color: #fff; }
.dashboard-chart { position: relative; width: 100%; height: clamp(260px, 34vh, 330px); }
.dashboard-chart canvas { max-width: 100%!important; }
.dashboard-stock-list { max-height: 310px; overflow: auto; }
.dashboard-stock-row { min-height: 58px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #e5e7eb; }
.dashboard-stock-row > b { width: 40px; height: 38px; display: grid; flex: 0 0 40px; place-items: center; border-radius: 6px; background: #dbeafe; color: #1d4ed8; font-size: 11px; }
.dashboard-stock-row > span { min-width: 0; display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 8px; }
.dashboard-stock-row strong, .dashboard-stock-row small { display: block; white-space: nowrap; }
.dashboard-stock-row strong { color: #0f172a; font-size: 13px; }
.dashboard-stock-row small { color: #64748b; font-size: 11px; }
@media(max-width:1280px){.dashboard-content-grid{grid-template-columns:minmax(0,1.65fr) minmax(250px,.85fr)}.dashboard-metric-grid{gap:12px}.dashboard-metric-grid .metric-card{padding:14px}.dashboard-metric-grid .metric-icon{margin-right:12px}.dashboard-metric-grid .metric-value{font-size:24px}}
@media(max-width:1024px){.dashboard-content-grid{grid-template-columns:1fr}.dashboard-stock-list{max-height:260px}}
@media(max-width:760px){.dashboard-toolbar{align-items:stretch;flex-direction:column}.dashboard-toolbar-actions{width:100%;justify-content:space-between}.dashboard-filters{flex:1}.dashboard-filters .compact-select{width:100%;max-width:none}.dashboard-widget{padding:14px}}
@media(max-width:520px){.dashboard-metric-grid{grid-template-columns:1fr}.dashboard-widget>header{flex-direction:column}.dashboard-trend-control{width:100%;overflow-x:auto}.dashboard-trend-control button{flex:1 0 auto}.dashboard-chart{height:250px}.dashboard-stock-row>span{align-items:flex-end;flex-direction:column}.dashboard-stock-row small{white-space:normal;text-align:right}}
