.safety-dashboard {
    background: #eef1f7;
    min-height: 100vh;
    padding: 34px 28px;
}

.dashboard-head {
    margin-bottom: 28px;
}

.dashboard-head h1 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 800;
    color: #171717;
}

.dashboard-head p {
    margin: 0;
    font-size: 16px;
    color: #555b66;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 22px;
}

.summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 26px 24px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.summary-card h6 {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 20px;
}

.summary-card h2 {
    font-size: 30px;
    font-weight: 800;
    margin: 0;
}

.summary-card p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #555b66;
}

.summary-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-icon.blue { background: #e9f3ff; color: #1473d2; }
.summary-icon.yellow { background: #fff4dc; color: #f2bd3f; }
.summary-icon.green { background: #e4f8ec; color: #18a957; }
.summary-icon.red { background: #fde7e9; color: #c91920; }

.dashboard-panel {
    background: #fff;
    border-radius: 12px;
    padding: 30px 34px;
    margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.panel-header,
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.panel-header h3,
.table-toolbar h3 {
    font-size: 19px;
    font-weight: 800;
    margin: 0;
}

.chart-legend {
    display: flex;
    gap: 20px;
    font-size: 13px;
    font-weight: 600;
}

.dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot.yellow { background: #f7c64c; }
.dot.green { background: #17a653; }
.dot.red { background: #bd1618; }

.fake-chart {
    height: 310px;
    border-bottom: 1px solid #edf0f4;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 51px,
        #edf0f4 52px
    );
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
    padding: 0 35px 28px;
}

.chart-month {
    text-align: center;
}

.bars {
    height: 190px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 8px;
}

.bar {
    width: 14px;
    border-radius: 3px 3px 0 0;
}

.bar.pending { height: 165px; background: #f7c64c; }
.bar.completed { height: 78px; background: #17a653; }
.bar.overdue { height: 125px; background: #bd1618; }

.chart-month small {
    font-size: 11px;
    font-weight: 800;
    color: #3f4650;
}

.table-filter {
    display: flex;
    gap: 12px;
}

.search-box {
    width: 500px;
    height: 36px;
    border: 1px solid #dfe5ee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    gap: 10px;
}

.search-box input,
.table-filter select {
    border: none;
    outline: none;
    width: 100%;
    color: #6b7280;
}

.table-filter select {
    width: 150px;
    height: 36px;
    border: 1px solid #dfe5ee;
    border-radius: 4px;
    padding: 0 10px;
}

.safety-table {
    width: 100%;
    border-collapse: collapse;
}

.safety-table thead {
    background: #e7f7ed;
}

.safety-table th {
    padding: 20px 14px;
    font-size: 12px;
    letter-spacing: .7px;
    color: #333;
}

.safety-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #edf0f4;
    vertical-align: top;
    font-size: 13px;
    color: #333;
}

.safety-table td strong {
    display: block;
    max-width: 420px;
    font-weight: 500;
    line-height: 1.45;
}

.safety-table td small {
    display: block;
    color: #7d8490;
    font-size: 10px;
}

.status-count {
    text-align: center;
    margin-bottom: 5px;
}

.badge-status {
    display: inline-flex;
    min-width: 78px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

.badge-status.pending {
    background: #f7c64c;
}

.action-list {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn.orange { background: #ff8738; }
.action-btn.green { background: #21bf83; }
.action-btn.blue { background: #477ee8; }

@media (max-width: 1200px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-box {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .panel-header,
    .table-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .table-filter {
        width: 100%;
        flex-direction: column;
    }

    .search-box,
    .table-filter select {
        width: 100%;
    }
}
