/* FIX24 - Team cost dashboard */
.content.erp24-team-cost-mode > :not(.erp24-team-cost-page){display:none!important}
.erp24-team-cost-page{padding:0 0 32px}

.erp24-filter-panel{
  display:grid;
  grid-template-columns:minmax(160px,1fr) minmax(220px,1.35fr) 160px 160px auto;
  gap:10px;
  align-items:end;
  padding:14px 16px;
  margin-bottom:14px;
}
.erp24-filter-panel label{display:flex;flex-direction:column;gap:6px}
.erp24-filter-panel label>span{font-size:12px;font-weight:700;color:#5b6f8d}
.erp24-filter-panel select,.erp24-filter-panel input{
  height:40px;border:1px solid #d7e1ee;border-radius:9px;background:#fff;padding:0 10px;color:#203d64
}
.erp24-filter-panel .erp24-search{height:40px;min-width:84px}

.erp24-selected-summary{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin:0 2px 12px;color:#5c6f89;font-size:12px
}
.erp24-selected-summary b{font-size:14px;color:#173a67}
.erp24-selected-summary span{padding:5px 9px;border-radius:999px;background:#edf4fd;color:#41658d}
.erp24-selected-summary small{margin-left:auto;color:#8a98aa}

.erp24-metric-grid{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:14px
}
.erp24-metric{padding:15px 16px;display:flex;flex-direction:column;gap:6px}
.erp24-metric span{font-size:12px;color:#6c7f98}
.erp24-metric b{font-size:23px;letter-spacing:-.7px;color:#17375f}
.erp24-metric small{font-size:11px;color:#95a1b2}

.erp24-chart-panel,.erp24-table-panel{overflow:hidden;margin-bottom:14px}
.erp24-chart-panel .panel-head,.erp24-table-panel .panel-head{
  display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:16px 18px 8px
}
.erp24-chart-panel .panel-head h2,.erp24-table-panel .panel-head h2{margin:0;color:#17375f}
.erp24-chart-panel .panel-head p,.erp24-table-panel .panel-head p{margin:5px 0 0;color:#7f8da1;font-size:12px}
.erp24-chart-panel .panel-head>span,.erp24-table-panel .panel-head>span{
  white-space:nowrap;font-size:11px;color:#73859d;background:#f1f5fa;padding:5px 8px;border-radius:999px
}

.erp24-chart-legend{display:flex;gap:16px;flex-wrap:wrap;padding:8px 18px 2px;color:#526986;font-size:12px}
.erp24-chart-legend span{display:inline-flex;align-items:center;gap:6px}
.erp24-chart-legend i{width:18px;height:3px;border-radius:999px;background:var(--erp24-series)}
.erp24-chart-scroll{overflow-x:auto;padding:0 8px 6px}
.erp24-chart-scroll svg{display:block;width:max(100%,980px);height:auto}
.erp24-grid-line{stroke:#e7edf5;stroke-width:1}
.erp24-grid-vertical{stroke:#f2f5f9}
.erp24-axis-line{stroke:#c9d5e4;stroke-width:1.2}
.erp24-axis-label{fill:#8190a4;font-size:10px;font-weight:600}
.erp24-month-label{fill:#6f8098;font-size:10px;font-weight:700}
.erp24-point-label{font-size:9px;font-weight:800;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}
.erp24-series-line{filter:drop-shadow(0 1px 1px rgba(20,48,82,.05))}
.erp24-empty-chart{min-height:320px;display:flex;align-items:center;justify-content:center;color:#8b98a9}

.erp24-table-wrap{max-height:430px;overflow:auto}
.erp24-table-wrap table{min-width:980px}
.erp24-table-wrap thead th{position:sticky;top:0;z-index:2;background:#f7f9fc}
.erp24-table-wrap td,.erp24-table-wrap th{white-space:nowrap}

.erp24-definition-note{
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;
  padding:11px 13px;border-radius:10px;background:#f3f7fc;color:#647994;font-size:11px
}
.erp24-definition-note b{color:#294d77}
.erp24-definition-note span+span{border-left:1px solid #d6e0eb;padding-left:10px}

.erp24-loading-card{
  min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#34577f
}
.erp24-loading-mark{
  width:44px;height:44px;border-radius:12px;background:#2f72e5;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900
}
.erp24-loading-card small{color:#8d9aac}
.erp24-error{padding:24px;color:#8a3340}
.erp24-error p{margin:6px 0 0;color:#8b5962}

@media(max-width:1200px){
  .erp24-filter-panel{grid-template-columns:1fr 1fr 160px 160px}
  .erp24-filter-panel .erp24-search{grid-column:4}
  .erp24-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:800px){
  .erp24-filter-panel{grid-template-columns:1fr 1fr}
  .erp24-filter-panel .erp24-search{grid-column:auto}
  .erp24-metric-grid{grid-template-columns:1fr 1fr}
  .erp24-selected-summary small{margin-left:0;width:100%}
  .erp24-point-label{font-size:8px}
}
@media(max-width:520px){
  .erp24-filter-panel{grid-template-columns:1fr}
  .erp24-metric-grid{grid-template-columns:1fr}
}
