/* Sopra-Bot dashboard styles (on top of the Gentelella theme). */

.kpi-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 20px; }
.kpi { flex: 1 1 180px; background: #fff; border: 1px solid #e6e9ed; border-radius: 4px; padding: 12px 16px; }
.kpi .kpi-label { color: #73879c; font-size: 13px; }
.kpi .kpi-value { font-size: 28px; font-weight: 500; color: #2a3f54; line-height: 1.3; }
.kpi .kpi-hint { color: #73879c; font-size: 12px; overflow-wrap: anywhere; }
.kpi.kpi-warning .kpi-value { color: #c27c0e; }
.kpi.kpi-danger .kpi-value { color: #c9302c; }
.kpi.kpi-ok .kpi-value { color: #26b99a; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.toolbar .spacer { flex: 1; }
.toolbar select, .toolbar input { width: auto; display: inline-block; }
.toolbar .btn-group .btn .badge { margin-left: 4px; }

.action-list { width: 100%; }
.action-list th { color: #73879c; font-weight: 500; border-bottom: 1px solid #e6e9ed; padding: 6px 8px; }
.action-list td { border-top: 1px solid #f0f0f0; padding: 8px; vertical-align: middle; }
.action-list tr.is-done td { opacity: 0.7; }
.action-list .issue-ref { font-weight: 500; white-space: nowrap; }
.action-list .issue-title { color: #2a3f54; }
.action-list .meta { color: #73879c; font-size: 12px; }
.action-list .col-rule { width: 140px; }
.action-list .col-notify { width: 170px; }
.action-list .col-notify .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.action-list .col-when { width: 130px; white-space: nowrap; color: #73879c; }
.action-list .col-action { width: 130px; text-align: right; }
.action-list .label { font-size: 11px; font-weight: 500; }
.list-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; color: #73879c; }

.team-matrix { width: 100%; }
.team-matrix th, .team-matrix td { padding: 5px 8px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.team-matrix th:first-child, .team-matrix td:first-child { text-align: left; }
.team-matrix td.cell-0 { color: #ccc; }
.team-matrix td.cell-1 { background: #fdf3e1; }
.team-matrix td.cell-2 { background: #f9e0b8; }
.team-matrix td.cell-3 { background: #f2c27f; font-weight: 500; }
.team-matrix a { cursor: pointer; }

.chart-box { position: relative; height: 240px; }
.empty-state { color: #73879c; padding: 30px 0; text-align: center; }

.log-table td.log-message { word-break: break-word; }
.log-table tr.level-Error td { background: #fbeaea; }
.log-table .col-level { width: 90px; }
.log-table .col-date { width: 170px; white-space: nowrap; color: #73879c; }
.setting-description { color: #73879c; font-size: 12px; margin-top: 4px; }
.rule-settings td { vertical-align: middle !important; }
.rule-settings .col-select { width: 200px; }
.suppressed-users td { vertical-align: middle !important; }
.suppressed-users form { margin: 0; }
.cleanup-form .radio label { font-weight: normal; }
.cleanup-date { display: inline-block; width: 170px; margin-left: 20px; }
.cleanup-confirm { margin-top: 16px; }
.cleanup-confirm p { margin-bottom: 10px; }
