/* Klantendashboard in beheer (issue #80). Dezelfde kleuren en kaarten als de startpagina (startpage-widgets.css). */

.customer-dashboard {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 4px 2px 16px;
}

.cd-toolbar {
    display: flex;
    justify-content: flex-end;
}

.cd-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.cd-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    border-radius: 10px;
    background: var(--fc-surface, #fff);
    border: 1px solid var(--fc-border, #dee2e6);
}

.cd-tile-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--fc-text);
    margin-bottom: 6px;
    white-space: nowrap;
}

.cd-tile-label {
    font-size: .75rem;
    font-weight: 500;
    color: var(--muted);
    text-align: center;
}

.cd-tile-success .cd-tile-value { color: var(--dxds-color-content-success-default-rest, #198754); }
.cd-tile-warning .cd-tile-value { color: var(--dxds-color-content-warning-default-rest, #f57c00); }
.cd-tile-info .cd-tile-value { color: #0284a8; }
.cd-tile-primary .cd-tile-value { color: var(--dxds-primary-40, #26a69a); }
.cd-tile-muted .cd-tile-value { color: var(--muted); }

.cd-note {
    color: var(--muted);
    font-size: .85rem;
    margin: 0;
}

.cd-card {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--fc-surface, #fff);
    border: 1px solid var(--fc-border, #dee2e6);
}

.cd-card h3 {
    font-size: .95rem;
    font-weight: 600;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cd-count {
    font-size: .75rem;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--fc-border, #dee2e6);
}

.cd-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    align-items: start;
}

.cd-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cd-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 6px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.cd-row:hover,
.cd-row:focus-visible {
    background: color-mix(in srgb, var(--dxds-primary-40, #26a69a) 12%, transparent);
}

.cd-row-code {
    color: var(--muted);
    font-size: .8rem;
    margin-left: 4px;
}

.cd-row-date {
    color: var(--muted);
    white-space: nowrap;
}

.cd-empty {
    color: var(--muted);
    font-size: .85rem;
    margin: 0;
}
