﻿.kons-dashboard {
    padding: 18px;
}

.kons-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.kons-subtitle {
    color: #6c757d;
    margin-bottom: 20px;
}

.kons-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.kons-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    border-bottom: 4px solid #ddd;
    display: flex;
    align-items: center;
    gap: 18px;
}

    .kons-card.success {
        border-color: #28a745;
    }

    .kons-card.warning {
        border-color: #ff9800;
    }

    .kons-card.danger {
        border-color: #f44336;
    }

.kons-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

    .kons-icon.success {
        background: #28a745;
    }

    .kons-icon.warning {
        background: #ff9800;
    }

    .kons-icon.danger {
        background: #f44336;
    }

.kons-card-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.kons-card-number {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.kons-card-desc {
    color: #6c757d;
    font-size: 14px;
}

.kons-panel {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.kons-panel-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.kons-table {
    width: 100%;
    border-collapse: collapse;
}

    .kons-table th {
        background: #f5f7fb;
        padding: 12px;
        font-weight: 700;
        font-size: 14px;
    }

    .kons-table td {
        padding: 12px;
        border-bottom: 1px solid #e9ecef;
        font-size: 14px;
    }

.kons-badge {
    padding: 5px 9px;
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

    .kons-badge.unit {
        background: #28a745;
    }

    .kons-badge.infra {
        background: #007bff;
    }

    .kons-badge.done {
        background: #28a745;
    }

    .kons-badge.progress {
        background: #ff9800;
    }

    .kons-badge.empty {
        background: #f44336;
    }

.kons-progress {
    width: 180px;
    height: 8px;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
}

.kons-progress-bar {
    height: 100%;
    border-radius: 20px;
    background: #007bff;
}

    .kons-progress-bar.done {
        background: #28a745;
    }

    .kons-progress-bar.warning {
        background: #ff9800;
    }

    .kons-progress-bar.danger {
        background: #f44336;
    }

.kons-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid #007bff;
    color: #007bff;
    background: #fff;
    font-weight: 600;
}

    .kons-btn:hover {
        background: #007bff;
        color: #fff;
    }

.kons-btn-danger {
    border-color: #f44336;
    color: #f44336;
}

    .kons-btn-danger:hover {
        background: #f44336;
        color: #fff;
    }

.kons-action {
    text-align: center;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .kons-summary {
        grid-template-columns: 1fr;
    }

    .kons-table {
        min-width: 800px;
    }

    .kons-panel {
        overflow-x: auto;
    }
}
