/* LM design system - adapted from LM_CapacityManagement.
   Brand navy #013469, accent indigo #667eea / purple #764ba2. */

html, body {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #667eea;
}

.btn-primary {
    color: #fff;
    background-color: #667eea;
    border-color: #5a6fd6;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #5a6fd6;
    border-color: #4e5fc2;
}

/* ── Sign-in "dialog" card ── */
.login-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1rem 3rem;
}

.login-logo {
    height: 52px;
    width: auto;
    margin-bottom: 1.75rem;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(1, 52, 105, 0.14);
    padding: 2.5rem 2.25rem;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #013469;
    text-align: center;
    margin-bottom: 0.35rem;
}

.login-title.danger {
    color: #c0392b;
}

.login-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 1.75rem;
}

/* Full-width navy primary action, matching the brand top bar. */
.btn-login {
    width: 100%;
    background: #013469;
    border: 1px solid #013469;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-login:hover,
.btn-login:focus {
    background: #012a55;
    border-color: #012a55;
    color: #fff;
}

/* Secondary sign-in option (passkey): outlined so it reads below the primary button. */
.btn-login-outline {
    width: 100%;
    background: #fff;
    border: 1px solid #013469;
    color: #013469;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-login-outline:hover,
.btn-login-outline:focus {
    background: #f0f4fa;
    color: #013469;
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 1.25rem 0;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.login-divider::before { margin-right: 0.75rem; }
.login-divider::after { margin-left: 0.75rem; }

.login-links {
    text-align: center;
}

.login-links a {
    font-weight: 600;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-note {
    text-align: center;
    color: #9ca3af;
    font-size: 0.82rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
    }
}

/* ── Two-row navbar ── */
.navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar-top {
    background: #013469;
    padding: 0.5rem 1rem;
}

.navbar-top .navbar-brand {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-top .navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 12px;
}

.navbar-top .brand-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.user-section {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    color: #fff;
}

.user-info .user-name {
    font-weight: 500;
}

.user-info i.fa-user-circle {
    font-size: 1.25rem;
}

/* Menu bar */
.navbar-menu {
    background: #013469;
    padding: 0;
    min-height: auto;
    box-shadow: none;
}

.navbar-menu .container-fluid {
    padding: 0;
    display: flex;
    align-items: stretch;
}

.navbar-menu .navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-menu .nav-item {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.navbar-menu .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.navbar-menu .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar-menu .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Settings dropdown in the menu bar */
.navbar-menu .nav-item.dropdown {
    position: relative;
}

.navbar-menu .dropdown-menu {
    margin-top: 0;
    border: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    padding: 0.35rem 0;
    min-width: 12rem;
}

.navbar-menu .dropdown-item {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    color: #013469;
}

.navbar-menu .dropdown-item:hover,
.navbar-menu .dropdown-item:focus {
    background-color: rgba(1, 52, 105, 0.08);
    color: #013469;
}

.navbar-menu .dropdown-item.active {
    background-color: #013469;
    color: #fff;
}

/* ── Cards ── */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: #fff;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 1rem 1.25rem;
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
}

.card-body {
    padding: 1.25rem;
}

/* ── Forms & tables ── */
.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.page-header {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* ── Dashboard: KPI stat cards ── */
.stat-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 1.15rem 1.35rem;
    display: flex;
    /* Top-align the text: cards with a sub-line are taller, and centring would push the labels of
       the shorter cards down so they no longer line up across the row. */
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    height: 100%;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
    font-weight: 600;
    color: #8a94a6;
    margin-bottom: 0.15rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.05;
    color: #1a2230;
    font-variant-numeric: tabular-nums;
}

.stat-sub {
    font-size: 0.76rem;
    color: #8a94a6;
    margin-top: 0.2rem;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
    align-self: center; /* icon stays vertically centred even though the text is top-aligned */
}

.stat-icon-navy { background: linear-gradient(135deg, #013469, #1e5aa8); }
.stat-icon-purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-icon-green { background: linear-gradient(135deg, #11998e, #38ef7d); }
.stat-icon-pink { background: linear-gradient(135deg, #f093fb, #f5576c); }
.stat-icon-blue { background: linear-gradient(135deg, #4facfe, #00c6fb); }
.stat-icon-red { background: linear-gradient(135deg, #ff6a6a, #ee0979); }
.stat-icon-amber { background: linear-gradient(135deg, #f7971e, #ffd200); }

/* A stat card that is also a link (dashboard "Needs your attention" tiles) */
.stat-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.stat-link .stat-card { transition: box-shadow 0.15s ease, transform 0.15s ease; }
.stat-link:hover .stat-card,
.stat-link:focus-visible .stat-card { box-shadow: 0 6px 20px rgba(1, 52, 105, 0.18); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
    .stat-link .stat-card { transition: none; }
    .stat-link:hover .stat-card, .stat-link:focus-visible .stat-card { transform: none; }
}

/* Dashboard section headings ("Board actions", "Administration") */
.dash-section {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #013469;
    margin: 1.75rem 0 0.75rem;
}

/* Count pill used in dashboard summary tables */
.count-pill {
    display: inline-block;
    min-width: 34px;
    text-align: center;
    background: #013469;
    color: #fff;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ── Toasts (self-dismissing "it worked" feedback) ── */
.toast-host {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none; /* let clicks through the empty container */
}

.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    min-width: 260px;
    max-width: 380px;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: #fff;
    font-size: 0.92rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    animation: toast-in 0.22s ease-out;
}

.toast-success { background: #1e7e4f; }
.toast-danger { background: #c0392b; }
.toast-warning { background: #9a6700; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .toast-item {
        animation: none;
    }
}

@media (max-width: 575.98px) {
    .toast-host {
        left: 1rem;
        right: 1rem;
    }

    .toast-item {
        min-width: 0;
        max-width: none;
    }
}

/* ── Responsive / mobile ── */

/* Wrapped tables keep the rounded card look while scrolling horizontally on narrow screens. */
.table-responsive {
    border-radius: 12px;
}

/* Rating scale: comfortable finger targets, wrap cleanly instead of overflowing. */
.rating-options .btn {
    min-height: 44px;
}

/* Menu bar: on tablets/phones let items wrap to another line rather than run off-screen. */
@media (max-width: 991.98px) {
    .navbar-menu .navbar-nav {
        flex-wrap: wrap;
    }

    .navbar-menu .nav-link {
        padding: 0.55rem 0.85rem;
    }
}

/* Small screens: tidy the header rows, page titles and card padding. */
@media (max-width: 767.98px) {
    .page-header {
        padding: 1.1rem;
    }

    .page-header h1,
    h1 {
        font-size: 1.5rem;
    }

    /* Title-and-actions rows stack instead of squashing. */
    .page-header.d-flex,
    .page-header .d-flex {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .card-header,
    .card-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Very small screens: keep the top brand bar uncramped. */
@media (max-width: 575.98px) {
    .navbar-top {
        padding: 0.5rem 0.75rem;
    }

    .navbar-top .brand-text {
        font-size: 1.05rem;
    }

    .user-info .user-name {
        display: none;
    }
}

/* ── Response Comparison matrix (ReviewCycleComparison.razor) ──────────────
   Skills down, people across. Both header rows and the skill column stay put
   while the wide grid scrolls inside .cmp-wrap. */
.cmp-wrap {
    overflow: auto;
    max-height: 78vh;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #fff;
}

.cmp-table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    min-width: 100%;
}

.cmp-table th,
.cmp-table td {
    white-space: nowrap;
    vertical-align: middle;
    border-bottom: 1px solid #e5e8ec;
}

.cmp-table thead th {
    position: sticky;
    z-index: 2;
    background: #013469;
    color: #fff;
    border-bottom: 0;
}

.cmp-table thead tr.cmp-subjects th {
    top: 0;
    height: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

/* Second line under each name (gender/age, or "3 people" for a group): a taller first header row,
   so the sticky second row has to start lower too. */
.cmp-table.cmp-has-detail thead tr.cmp-subjects th { height: 58px; }
.cmp-table.cmp-has-detail thead tr.cmp-columns th { top: 58px; }
.cmp-table .cmp-detail { color: rgba(255, 255, 255, 0.8); line-height: 1.25; }

.cmp-table thead tr.cmp-columns th {
    top: 40px;
    background: #d6e4f2;
    color: #013469;
    font-size: 0.8rem;
    font-weight: 600;
    border-right: 1px solid #fff;
}

.cmp-table th.cmp-skill-col,
.cmp-table td.cmp-skill {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 260px;
    max-width: 340px;
    white-space: normal;
    background: #fff;
    border-right: 1px solid #dee2e6;
}

.cmp-table thead th.cmp-skill-col {
    z-index: 3;
    background: #013469;
}

.cmp-table th.cmp-avg-col,
.cmp-table td.cmp-avg-col {
    border-left: 2px solid #013469;
}

.cmp-table tbody tr.cmp-group td {
    background: #dee2e8;
    font-weight: 600;
    color: #013469;
}

.cmp-table tbody tr.cmp-avg td {
    background: #f5f7fa;
    font-style: italic;
    color: #555;
}

.cmp-table tbody tr.cmp-overall td {
    background: #dee2e8;
    font-weight: 600;
}

.cmp-table tbody tr:hover td:not(.cmp-skill) {
    filter: brightness(0.96);
}

.cmp-dot {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    margin-right: 0.4rem;
    vertical-align: -1px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* ── Review form (ReviewMatrix.razor) ──────────────────────────────────────
   Pinned footer with progress + actions; inline highlight for unanswered items. */
.review-form {
    padding-bottom: 7.5rem;
}

.review-skill {
    padding-left: 0.75rem;
    margin-left: -0.75rem;
    border-left: 3px solid transparent;
    scroll-margin-top: 1rem;
}

.review-skill-missing {
    border-left-color: #dc3545;
    background: #fff5f5;
    border-radius: 0 0.375rem 0.375rem 0;
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
}

.review-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 0.6rem 0 calc(0.6rem + env(safe-area-inset-bottom, 0));
}

.review-footer-error {
    border-top-color: #dc3545;
    background: #fff8f8;
}

.review-footer-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.review-footer-status {
    flex: 1 1 260px;
    min-width: 0;
}

.review-footer-count {
    white-space: nowrap;
    font-size: 0.9rem;
}

.review-footer-save {
    margin-top: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-footer-actions {
    display: flex;
    gap: 0.5rem;
    flex: 0 0 auto;
    margin-left: auto;
}

@media (max-width: 575.98px) {
    .review-footer-actions {
        width: 100%;
        margin-left: 0;
    }

    .review-footer-actions .btn {
        flex: 1 1 0;
    }

    .review-footer-save {
        white-space: normal;
    }
}

/* Comparison: compact header + denser rows so the matrix owns the viewport. */
.cmp-head {
    background: #fff;
    border-radius: 8px;
    padding: 0.5rem 0.9rem;
    margin-bottom: 0.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cmp-head h5 {
    color: #013469;
    font-weight: 600;
}

.cmp-table {
    font-size: 0.85rem;
}

.cmp-table th,
.cmp-table td {
    padding: 0.18rem 0.5rem;
    line-height: 1.25;
}

.cmp-table thead tr.cmp-subjects th {
    height: 30px;
}

.cmp-table thead tr.cmp-columns th {
    top: 30px;
    font-size: 0.78rem;
}

.cmp-table th.cmp-skill-col,
.cmp-table td.cmp-skill {
    min-width: 220px;
}

.cmp-dot {
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.3rem;
}

/* Ballot results: small colour swatch beside a tally label */
.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 6px;
    vertical-align: middle;
}

/* Action register + history */
.action-text-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

.action-latest {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.action-grid .e-grid .e-row {
    cursor: pointer;
}

.action-history-item {
    border-left: 3px solid #dee2e6;
    padding: 0.25rem 0 0.75rem 0.85rem;
    margin-left: 0.25rem;
}

.action-comment {
    white-space: pre-wrap;
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

/* My Actions cards + member update form */
.action-card {
    display: block;
    width: 100%;
    background: #fff;
    border: 1px solid #dee2e6;
    border-left: 4px solid #adb5bd;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: inherit;
}

.action-card:hover {
    background: #f8f9fa;
}

.action-card.overdue {
    border-left-color: #dc3545;
}

.action-card.due-soon {
    border-left-color: #fd7e14;
}

.action-status-btn {
    border: 2px solid var(--status-colour);
    color: var(--status-colour);
    background: #fff;
    min-height: 44px;
    padding-left: 1rem;
    padding-right: 1rem;
    font-weight: 600;
}

.action-status-btn.selected {
    background: var(--status-colour);
    color: #fff;
}

/* Event calendars */
.e-schedule .e-appointment.lm-event-cancelled {
    opacity: 0.55;
    text-decoration: line-through;
}

/* ── Risk heat map (likelihood x consequence) ── */
.heatmap-wrap {
    overflow-x: auto;
}

.heatmap {
    border-collapse: separate;
    border-spacing: 4px;
    margin: 0 auto;
}

.heatmap th {
    color: #013469;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
}

.heatmap-axis {
    width: 1.75rem;
}

.heatmap-axis span {
    display: inline-block;
    transform: rotate(-90deg);
    white-space: nowrap;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.heatmap-axis-x {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.25rem;
}

.heatmap-head {
    min-width: 4.5rem;
    line-height: 1.15;
}

.heatmap-row-head {
    text-align: right !important;
    padding-right: 0.5rem;
    white-space: nowrap;
}

.heatmap-cell {
    width: 4.5rem;
    height: 3.25rem;
    border-radius: 8px;
    text-align: center;
    vertical-align: middle;
}

.heatmap-score {
    font-size: 0.75rem;
    line-height: 1.1;
    color: rgba(0, 0, 0, 0.55);
    font-weight: 600;
}

.heatmap-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.4rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: #013469;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.heatmap-count:hover,
.heatmap-count:focus-visible {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Register grid: rows open the risk */
.risk-grid .e-grid .e-row {
    cursor: pointer;
}

/* Risk detail: label/value pairs */
.risk-facts dt {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.85rem;
}

.risk-facts dd {
    margin-bottom: 0.75rem;
}

.risk-text {
    white-space: pre-wrap;
}

/* Person picker (directory type-ahead) */
.person-picker-results {
    z-index: 1060;
    max-height: 18rem;
    overflow-y: auto;
    top: 100%;
}

/* Criteria tables: workbook-style coloured first column */
.criteria-table td.criteria-name {
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.criteria-table td {
    vertical-align: top;
}

/* Consequence table: shade alternate column groups (Financial, Compliance) and draw a divider at
   the start of each group so the columns under Financial / Operational / Compliance / Strategic
   read as blocks, as in the workbook. */
.criteria-table .cg-start {
    border-left: 2px solid #adb5bd;
}

.criteria-table th.cg-financial,
.criteria-table td.cg-financial,
.criteria-table th.cg-compliance,
.criteria-table td.cg-compliance {
    background-color: #f1f3f5;
}

.criteria-table thead th.cg-financial,
.criteria-table thead th.cg-compliance {
    background-color: #e4e7ea;
}

.criteria-table thead th.cg-operational,
.criteria-table thead th.cg-strategic {
    background-color: #f8f9fa;
}

/* Risk form section headings, mirroring the workbook's grouped columns */
.risk-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

/* ── Trend arrows (residual rating movement) ── */
.trend-up { color: #c0392b; }
.trend-down { color: #1e8e3e; }

/* ── Dashboard trend chart (inline SVG) ── */
.trend-chart {
    width: 100%;
    height: auto;
    max-height: 240px;
    display: block;
}

.trend-grid { stroke: #e5e7eb; stroke-width: 1; }
.trend-axis { font-size: 11px; fill: #6b7280; }
.trend-bar { stroke: #fff; stroke-width: 0.5; }
.trend-bar:hover { opacity: 0.85; }

.trend-swatch {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 2px;
    margin-right: 0.3rem;
    vertical-align: -1px;
}

/* ── Treatment actions on the risk page ── */
.risk-action-check {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.risk-action-done { background: #fafbfc; }

/* ── Audit log ── */
.audit-changes dt {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.audit-changes dd {
    margin-bottom: 0.1rem;
    word-break: break-word;
}

.audit-table td { vertical-align: top; }
