.employee-db-detail-dialog {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 2rem);
    padding: 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 62%);
    border: 1px solid #e5e7eb;
    overflow: auto;
}

.employee-db-detail-dialog .dialog-header {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.employee-db-detail-dialog .dialog-title-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.employee-db-detail-dialog .dialog-copy {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.employee-db-detail-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.employee-db-detail-summary-card {
    display: flex;
    flex: 1 1 170px;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border: 1px solid #dbe4f0;
    border-radius: 0.85rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.employee-db-detail-summary-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1d4ed8;
}

.employee-db-detail-summary-value {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.employee-db-detail-card {
    padding: 0.9rem;
}

.employee-db-detail-card--technical {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border-color: #fed7aa;
}

.employee-db-detail-section-header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.9rem;
}

.employee-db-detail-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.employee-db-detail-section-copy {
    color: #64748b;
    line-height: 1.5;
}

.employee-db-detail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.employee-db-detail-list--technical .employee-db-detail-item {
    flex-basis: 100%;
}

.employee-db-detail-item {
    display: flex;
    flex: 1 1 100%;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
    padding: 0.8rem 0.95rem;
    border: 1px solid #dbe4f0;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.employee-db-detail-item--sensitive,
.employee-db-detail-item--technical {
    background: #fffaf5;
    border-color: #fed7aa;
}

.employee-db-detail-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.employee-db-detail-value {
    font-size: 0.98rem;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
    white-space: pre-wrap;
}

.employee-db-detail-value--mono {
    font-family: "IBM Plex Mono", "Fira Code", monospace;
    font-size: 0.88rem;
    font-weight: 500;
}

.employee-db-detail-dialog .dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .employee-db-detail-dialog {
        padding: 1.25rem;
    }

    .employee-db-detail-list {
        gap: 0.9rem;
    }

    .employee-db-detail-item {
        flex: 1 1 calc(50% - 0.45rem);
    }

    .employee-db-detail-list--technical .employee-db-detail-item {
        flex: 1 1 calc(50% - 0.45rem);
    }
}

@media (min-width: 1200px) {
    .employee-db-detail-item {
        flex: 1 1 calc(33.333% - 0.5rem);
    }

    .employee-db-detail-list--technical .employee-db-detail-item {
        flex: 1 1 calc(50% - 0.45rem);
    }
}
