html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
}

body {
    background: #f5f7fb;
    overflow-x: hidden;
}

h1:focus {
    outline: none;
}

a {
    color: #0071c1;
}

a:focus {
    outline: 2px solid #258cfb;
    outline-offset: 2px;
}

.content {
    padding: 0;
}

.main-content-container {
    background: linear-gradient(180deg, #ffffff 0, #ffffff 72px, #f6f8fb 72px, #f6f8fb 100%);
    min-height: 100vh;
    padding: 0;
}

.main-menu.mud-appbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5eaf2;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    color: #172033;
    overflow: visible;
    padding: 0 32px;
    position: relative;
}

.main-menu .main-menu-container {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.25rem;
    justify-content: flex-start;
    min-height: 72px;
    padding: 0;
    white-space: nowrap;
    width: 100%;
}

.main-menu .logo-text {
    color: #172033;
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    margin-right: 36px;
}

.main-menu .logo-text span {
    color: #12b85f;
}

.main-menu .logo-text strong {
    color: #172033;
    font-weight: 800;
}

.main-menu .primary-nav {
    align-items: stretch;
    display: flex;
    gap: 1.6rem;
    height: 72px;
}

.main-menu .mobile-menu-button,
.main-menu .mobile-nav-panel {
    display: none;
}

.main-menu .nav-link {
    align-items: center;
    border-radius: 0;
    color: #39455a !important;
    display: inline-flex;
    font-size: 14px;
    font-weight: 500;
    padding: 0 10px !important;
    position: relative;
    text-transform: none;
}

.main-menu .nav-link.active,
.main-menu .nav-link:hover {
    color: #172033 !important;
}

.main-menu .nav-link:focus,
.main-menu .nav-link:focus-visible,
.main-menu .reports-trigger:focus,
.main-menu .reports-trigger:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

.main-menu .nav-link.active::after {
    background: #12b85f;
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
}

.main-menu .reports-dropdown-link {
    border-bottom: 1px solid #edf2f7;
    border-radius: 0;
    color: #39455a;
    display: block;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.25;
    padding: 13px 16px;
    position: relative;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease;
}

.main-menu .reports-dropdown-link:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.main-menu .reports-dropdown-link:last-child {
    border-bottom: 0;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.main-menu .reports-dropdown-link:hover,
.main-menu .reports-dropdown-link:focus,
.main-menu .reports-dropdown-link:focus-visible {
    background: #ecfdf3;
    color: #0f9f55;
    box-shadow: none !important;
    outline: none !important;
}

.main-menu .reports-dropdown-link.active {
    background: #ecfdf3;
    color: #0f9f55;
    font-weight: 500;
}

.main-menu .reports-dropdown-link.active::after {
    background: #12b85f;
    border-radius: 999px;
    bottom: 6px;
    content: "";
    height: 2px;
    left: 16px;
    position: absolute;
    right: 16px;
}

.main-menu .account-menu {
    align-items: center;
    display: inline-flex;
    height: 34px;
    position: relative;
}

.main-menu .account-menu-trigger {
    align-items: center;
    background: transparent;
    border: 0;
    color: #39455a;
    cursor: pointer;
    display: inline-flex;
    gap: 0.3rem;
    font-size: 13px;
    font-weight: 500;
    height: 34px;
    max-width: 250px;
    padding: 0 8px;
}

.main-menu .account-menu-trigger:hover {
    color: #172033;
}

.main-menu .account-menu-trigger:focus,
.main-menu .account-menu-trigger:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

.main-menu .nav-user-name {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-menu .account-menu-trigger .mud-icon-root {
    color: #526070;
    font-size: 17px;
}

.main-menu .account-dropdown {
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-radius: 6px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
    display: grid;
    min-width: 118px;
    opacity: 0;
    padding: 4px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(100% + 2px);
    transform: translateY(-2px);
    transition: opacity 120ms ease, transform 120ms ease;
    z-index: 1700;
}

.main-menu .account-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.main-menu .account-dropdown-link {
    align-items: center;
    border-radius: 4px;
    color: #39455a;
    display: flex;
    font-size: 13px;
    font-weight: 400;
    gap: 0.45rem;
    min-height: 34px;
    padding: 0 10px;
    text-decoration: none;
}

.main-menu .account-dropdown-link:hover,
.main-menu .account-dropdown-link:focus,
.main-menu .account-dropdown-link:focus-visible {
    background: #ecfdf3;
    color: #0f9f55;
    outline: none;
}

.main-menu .account-dropdown-link .mud-icon-root {
    color: inherit;
    font-size: 18px;
}

.floating-content-container {
    margin-top: 0;
    padding: 34px 40px 48px;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.app-loading-screen {
    align-items: center;
    background: #12b85f;
    color: #ffffff;
    display: flex;
    inset: 0;
    justify-content: center;
    min-height: 100vh;
    position: fixed;
    text-align: center;
    z-index: 9999;
}

.app-loading-title {
    font-size: clamp(0.9rem, 2.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    padding: 0 24px;
}

code {
    color: #c02d76;
}

.page-header {
    margin-bottom: 1.75rem;
    padding-left: 0;
}

.page-title {
    color: #172033;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.85rem;
}

.page-subtitle {
    align-items: center;
    color: #526070;
    display: flex;
    font-size: 15px;
    gap: 0.75rem;
}

.page-subtitle::before {
    background: #12b85f;
    border-radius: 999px;
    content: "";
    display: inline-block;
    height: 22px;
    width: 3px;
}

.page-content-container {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: block;
    margin-bottom: 30px;
    padding: 0;
    position: relative;
    width: 100%;
}

.case-search-panel {
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.5rem;
    padding: 1.65rem;
}

.mud-input-control {
    margin-top: 2px;
}

.mud-input-control .mud-input-label {
    color: #526070;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
}

.mud-input-control .mud-input {
    background: #ffffff;
    border-radius: 4px;
    color: #182230;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.mud-input-control .mud-input:hover {
    background: #ffffff;
}

.mud-input-control .mud-input.mud-input-focused {
    box-shadow: 0 0 0 3px rgba(22, 134, 77, 0.12);
}

.mud-input-control .mud-input-outlined-border {
    border-color: #d8e0ea;
    border-radius: 4px;
    transition: border-color 160ms ease, border-width 160ms ease;
}

.mud-input-control .mud-input-outlined,
.mud-input-control .mud-input-outlined .mud-input-outlined-border,
.mud-input-control fieldset {
    border-radius: 4px !important;
}

.mud-input-control .mud-input:hover .mud-input-outlined-border {
    border-color: #16864d;
}

.mud-input-control .mud-input.mud-input-focused .mud-input-outlined-border {
    border-color: #16864d;
    border-width: 1px;
}

.mud-input-control .mud-input-slot,
.mud-input-control .mud-select-input {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0;
}

.mud-input-control .mud-input-adornment .mud-icon-root {
    color: #64748b;
}

.mud-input-control input::placeholder,
.mud-input-control textarea::placeholder {
    color: #637083;
    font-size: 0.75rem;
    opacity: 1;
}

.ctl-autocomplete-popover {
    background: #ffffff;
    border: 1px solid #d8e0ea;
    border-radius: 4px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
    margin-top: 4px;
    overflow: hidden;
}

.ctl-autocomplete-list {
    background: #ffffff;
    padding: 4px;
}

.ctl-autocomplete-option {
    border-radius: 3px;
    color: #172033;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0;
    min-height: 38px;
}

.ctl-autocomplete-option .mud-list-item-text,
.ctl-autocomplete-option .mud-typography {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0;
}

.ctl-autocomplete-option:hover,
.ctl-autocomplete-option:focus-visible,
.ctl-autocomplete-option.mud-selected,
.ctl-autocomplete-option.mud-list-item-selected {
    background: #ecfdf3;
    color: #0f9f55;
}

.mud-popover:has(.mud-list):not(.ctl-autocomplete-popover) {
    background: #ffffff;
    border: 1px solid #d8e0ea;
    border-radius: 4px !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
    margin-top: 4px;
    overflow: hidden;
}

.mud-popover:has(.mud-list):not(.ctl-autocomplete-popover) .mud-list {
    background: #ffffff;
    padding: 4px;
}

.mud-popover:has(.mud-list):not(.ctl-autocomplete-popover) .mud-list-item {
    border-radius: 3px;
    color: #172033;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0;
    min-height: 38px;
}

.mud-popover:has(.mud-list):not(.ctl-autocomplete-popover) .mud-list-item .mud-list-item-text,
.mud-popover:has(.mud-list):not(.ctl-autocomplete-popover) .mud-list-item .mud-typography {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0;
}

.mud-popover:has(.mud-list):not(.ctl-autocomplete-popover) .mud-list-item:hover,
.mud-popover:has(.mud-list):not(.ctl-autocomplete-popover) .mud-list-item:focus-visible,
.mud-popover:has(.mud-list):not(.ctl-autocomplete-popover) .mud-list-item[aria-selected="true"],
.mud-popover:has(.mud-list):not(.ctl-autocomplete-popover) .mud-list-item.mud-selected,
.mud-popover:has(.mud-list):not(.ctl-autocomplete-popover) .mud-list-item.mud-list-item-selected {
    background: #ecfdf3 !important;
    color: #0f9f55 !important;
}

.case-search-actions {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding-top: 0.9rem;
    flex-wrap: wrap;
}

.report-actions {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr auto 1fr;
    padding-top: 0.9rem;
}

.report-run-actions,
.report-export-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.report-run-actions {
    grid-column: 2;
    justify-content: center;
}

.report-export-actions {
    grid-column: 3;
    justify-content: flex-end;
    justify-self: end;
}

.report-export-actions .report-export-button {
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0;
    min-height: 32px;
    min-width: 86px;
    padding: 0 12px;
    text-transform: uppercase;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.report-export-actions .report-export-button .mud-button-label {
    font-weight: 300;
    text-transform: uppercase;
}

.report-export-actions .report-export-button:not(:disabled):hover {
    box-shadow: 0 6px 14px rgba(24, 34, 48, 0.12);
    transform: translateY(-1px);
}

.case-search-actions .mud-button-root,
.report-run-actions .mud-button-root {
    border-radius: 4px;
    font-weight: 300;
    letter-spacing: 0;
    min-height: 42px;
    min-width: 150px;
    padding: 0 18px;
    text-transform: uppercase;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.case-search-actions .mud-button-label,
.report-run-actions .mud-button-label {
    font-weight: 300;
    text-transform: uppercase;
}

.case-search-actions .mud-button-root:not(:disabled):hover,
.report-run-actions .mud-button-root:not(:disabled):hover {
    box-shadow: 0 8px 18px rgba(24, 34, 48, 0.14);
    transform: translateY(-1px);
}

.case-search-actions .mud-button-root:disabled,
.report-run-actions .mud-button-root:disabled {
    box-shadow: none;
    transform: none;
}

.case-search-actions .mud-button-filled-primary,
.report-run-actions .mud-button-filled-primary {
    background: linear-gradient(135deg, #0f9f55 0%, #12b85f 100%);
    box-shadow: 0 12px 26px rgba(18, 184, 95, 0.26);
    color: white;
}

.case-search-actions .mud-button-filled-primary:not(:disabled):hover,
.report-run-actions .mud-button-filled-primary:not(:disabled):hover {
    background: linear-gradient(135deg, #0d8849 0%, #0fa854 100%);
}

.case-search-actions .case-search-primary-button,
.report-run-actions .case-search-primary-button {
    min-height: 52px;
    min-width: 220px;
    padding: 0 28px;
}

.case-search-actions .mud-button-outlined,
.report-run-actions .mud-button-outlined {
    background: #ffffff;
    border-color: #cbd5e1;
}

.case-search-actions .mud-button-outlined:not(:disabled):hover,
.report-run-actions .mud-button-outlined:not(:disabled):hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.case-search-actions .case-search-clear-button,
.report-run-actions .case-search-clear-button {
    background: #ffffff;
    border-color: #d8e0ea;
    color: #475569;
}

.case-search-actions .case-search-clear-button:not(:disabled):hover,
.report-run-actions .case-search-clear-button:not(:disabled):hover {
    background: #f8fafc;
    border-color: #12b85f;
    color: #334155;
}

.selected-client-filter-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.scroll-point {
    height: 1px;
}

.table-case-list {
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.table-case-list .mud-table {
    background: transparent;
}

.table-case-list .mud-progress-linear,
.table-case-list .mud-progress-linear-bar {
    color: #12b85f;
}

.table-case-list .mud-progress-linear-bar {
    background-color: #12b85f;
}

.table-case-list .mud-table-head .mud-table-cell {
    border-bottom: 1px solid #dfe5ee;
    color: #46546b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    padding-bottom: 18px;
    padding-top: 18px;
    text-transform: uppercase;
    white-space: nowrap;
}

.case-detail-table .mud-table-head .mud-table-cell,
.assigned-client-table .mud-table-head .mud-table-cell {
    white-space: nowrap;
}

.table-case-list .mud-table-body .mud-table-cell {
    border-bottom: 1px solid #e5eaf2;
    color: #172033;
    font-size: 14px;
    line-height: 1.45;
    padding-bottom: 24px;
    padding-top: 24px;
}

.table-case-list .mud-table-body .mud-table-row:hover {
    background: #f9fbfd;
}

.table-case-list .report-premises-text {
    color: #526070;
    font-size: 12px;
    font-style: italic;
    line-height: 1.35;
}

.table-case-list .legal-charges-total-cell {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    white-space: nowrap;
}

.table-case-list .legal-charges-total-cell span {
    color: #46546b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.legal-charges-report-table .legal-charges-tenant-column {
    min-width: 190px;
    width: 18%;
}

.legal-charges-report-table .legal-charges-tenant-cell {
    font-size: 12.5px;
    line-height: 1.35;
}

.table-case-list .court-appearance-detail-row td {
    background: #ffffff;
    border-bottom: 1px solid #e5eaf2;
    color: #46546b;
    font-size: 13px;
    padding: 0 18px 18px 72px;
}

.court-appearance-details {
    border-top: 1px solid #edf1f6;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.25rem;
    line-height: 1.35;
    padding-top: 12px;
}

.court-appearance-details strong {
    color: #172033;
    font-weight: 700;
    margin-right: 0.25rem;
}

.court-appearance-court-cell {
    white-space: nowrap;
}

.demand-notice-report-table .demand-notice-notice-column {
    min-width: 170px;
    width: 170px;
}

.demand-notice-report-table .demand-notice-expired-date {
    color: #e53935;
}

.stipulation-dates-report-table .stipulation-type-column {
    min-width: 150px;
    width: 150px;
}

.stipulation-dates-report-table .stipulation-notes-column {
    color: #46546b;
    font-size: 12px;
    line-height: 1.35;
}

.table-case-list .mud-table-pagination {
    border-top: 0;
    color: #526070;
    min-height: 72px;
}

.case-list-actions {
    text-align: right;
    white-space: nowrap;
}

.case-list-actions .mud-icon-button:focus,
.case-list-actions .mud-icon-button:focus-visible,
.case-list-actions .mud-button-root:focus,
.case-list-actions .mud-button-root:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

.case-list-actions .case-list-view-button {
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 300;
    height: 26px;
    letter-spacing: 0;
    line-height: 1;
    min-height: 26px;
    min-width: 64px;
    padding: 0 12px;
    text-transform: uppercase;
}

.case-client-stack {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.case-client-name {
    line-height: 1.25;
}

.case-details-page {
    margin-bottom: 18px;
}

.case-details-loading {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 180px;
}

.case-details-hero {
    display: grid;
    gap: 18px;
}

.case-details-title-row {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.case-details-title-group {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 14px;
    min-width: 0;
}

.case-details-title-copy {
    display: grid;
    gap: 4px;
    min-width: min(100%, 280px);
}

.case-details-title-group h1 {
    color: #101828;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
    overflow-wrap: anywhere;
}

.case-details-client-line {
    color: #475467;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.case-details-chip-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-details-chip-row .mud-chip {
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    height: 28px;
    letter-spacing: 0;
}

.case-details-type-chip {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

.case-details-status-chip {
    background: transparent !important;
}

.case-details-back-button {
    background: #ffffff;
    border-color: #dfe5ee;
    border-radius: 7px;
    color: #172033;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    min-height: 38px;
    padding: 0 14px;
    text-transform: none;
}

.case-details-back-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.case-details-stat-strip {
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
}

.case-details-stat {
    align-items: center;
    display: grid;
    gap: 2px 12px;
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 78px;
    padding: 14px 18px;
    position: relative;
}

.case-details-stat + .case-details-stat {
    border-left: 1px solid #edf1f6;
}

.case-details-stat-icon {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    display: flex;
    grid-row: 1 / span 2;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.case-details-stat-icon .mud-icon-root {
    color: #101828;
    font-size: 18px;
}

.case-details-stat-money .case-details-stat-icon .mud-icon-root,
.case-details-stat-money strong {
    color: #dc2626;
}

.case-details-stat-label {
    align-self: end;
    color: #526070;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: uppercase;
}

.case-details-stat strong {
    align-self: start;
    color: #111827;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.case-details-content {
    padding: 0;
}

.case-details-panel-grid {
    align-items: stretch;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.case-detail-section {
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    box-shadow: none;
    grid-column: span 2;
    height: 100%;
    overflow: hidden;
}

.case-detail-section-wide {
    grid-column: span 3;
}

.case-detail-section-financial {
    grid-column: span 2;
}

.case-detail-section-files {
    grid-column: span 2;
}

.case-detail-section-full {
    grid-column: 1 / -1;
}

.case-detail-section header {
    align-items: center;
    background: #ffffff;
    display: flex;
    gap: 10px;
    min-height: 46px;
    padding: 13px 16px 8px;
}

.case-panel-icon {
    align-items: center;
    color: #12a85c;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
}

.case-panel-icon .mud-icon-root {
    color: inherit;
    font-size: 19px;
}

.case-detail-section h2 {
    color: #111827;
    flex: 1 1 auto;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.2;
    margin: 0;
}

.case-panel-menu-icon {
    color: #111827;
    flex: 0 0 auto;
    font-size: 22px;
}

.case-detail-list {
    display: grid;
    gap: 12px 16px;
    grid-template-columns: minmax(86px, 0.5fr) minmax(0, 1fr);
    margin: 0;
    padding: 14px 16px 16px;
}

.case-detail-list-short {
    gap: 10px 16px;
    padding-bottom: 10px;
}

.case-detail-list dt {
    color: #526070;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0;
    text-transform: uppercase;
}

.case-detail-list dd {
    color: #111827;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    margin: 0;
    overflow-wrap: anywhere;
}

.case-detail-section-composite .case-detail-list {
    padding-bottom: 14px;
}

.case-detail-money-list dd {
    font-weight: 500;
    text-align: right;
}

.case-detail-money-list dt:last-of-type,
.case-detail-money-list dd:last-of-type {
    border-top: 1px solid #dfe5ee;
    padding-top: 12px;
}

.case-detail-money-list dd:nth-of-type(2),
.case-detail-money-list dd:last-of-type {
    color: #111827;
    font-weight: 650;
}

.case-court-context {
    align-items: center;
    color: #667085;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 6px 14px;
    line-height: 1.3;
    padding: 0 16px 10px;
}

.case-court-context span {
    position: relative;
}

.case-court-context span + span::before {
    background: #cbd5e1;
    border-radius: 999px;
    content: "";
    height: 4px;
    left: -9px;
    position: absolute;
    top: 0.48em;
    width: 4px;
}

.case-compact-list {
    border-top: 1px solid #edf1f6;
    display: grid;
    padding: 4px 16px 10px;
}

.case-compact-list-heading {
    color: #526070;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0;
    padding: 8px 0 4px;
    text-transform: uppercase;
}

.case-rent-scroll {
    max-height: 148px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.case-compact-row {
    align-items: center;
    border-top: 1px solid #f0f3f8;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(84px, 0.7fr) minmax(0, 1fr) auto;
    min-height: 32px;
    padding: 7px 0;
}

.case-compact-row:first-child,
.case-compact-list-heading + .case-compact-row {
    border-top: 0;
}

.case-compact-primary {
    color: #111827;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

.case-compact-secondary {
    color: #667085;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-compact-row strong {
    color: #111827;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
}

.case-court-list .case-compact-row strong {
    color: #344054;
    font-weight: 500;
}

.case-rent-list .case-compact-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.case-panel-subsection,
.case-files-split {
    border-top: 1px solid #edf1f6;
}

.case-panel-subheading {
    color: #526070;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0;
    padding: 11px 16px 2px;
    text-transform: uppercase;
}

.case-files-split {
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}

.case-file-half + .case-file-half {
    border-top: 1px solid #edf1f6;
}

.case-file-half .case-panel-subheading {
    padding-bottom: 0;
}

.case-party-group {
    padding: 13px 16px 10px;
}

.case-party-group + .case-party-group {
    border-top: 1px solid #edf0f5;
}

.case-party-group-compact {
    padding-top: 9px;
}

.case-party-group-compact + .case-party-group-compact {
    border-top: 0;
    padding-top: 4px;
}

.case-party-group h3 {
    color: #526070;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0;
    margin: 0 0 9px;
    text-transform: uppercase;
}

.case-party-row {
    align-items: flex-start;
    border-bottom: 1px solid #edf0f5;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-height: 34px;
    padding: 7px 0;
}

.case-party-row:last-child {
    border-bottom: 0;
}

.case-party-row strong {
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.case-party-row span,
.case-detail-empty,
.case-detail-note {
    color: #526070;
    font-size: 12px;
}

.case-detail-empty {
    margin: 0;
    padding: 0 18px 18px;
}

.case-party-group .case-detail-empty {
    padding: 0;
}

.case-compact-list .case-detail-empty {
    padding: 8px 0 2px;
}

.case-activity-list > .case-detail-empty {
    padding-top: 16px;
}

.case-detail-note {
    line-height: 1.45;
    margin-top: 3px;
    white-space: pre-wrap;
}

.case-detail-table {
    border-top: 0;
}

.case-detail-table .mud-table {
    background: #ffffff;
}

.case-detail-table .mud-table-head .mud-table-cell {
    border-bottom: 0;
    color: #526070;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0;
    padding: 8px 16px;
    text-transform: uppercase;
}

.case-detail-table .mud-table-body .mud-table-cell {
    border-bottom: 1px solid #edf1f6;
    color: #111827;
    font-size: 12px;
    line-height: 1.35;
    padding: 8px 16px;
}

.case-detail-table .mud-table-body .mud-table-row:last-child .mud-table-cell {
    border-bottom: 0;
}

.case-detail-table .mud-table-body .mud-table-row:hover {
    background: #f9fbfd;
}

.case-detail-file-table strong {
    font-weight: 500;
}

.case-detail-scroll {
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.case-detail-scroll-compact {
    max-height: 150px;
}

.case-detail-download-cell {
    text-align: right;
    white-space: nowrap;
}

.case-detail-download-cell .mud-button-root {
    border-radius: 4px;
    color: #0f9f55;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    min-width: 64px;
    padding: 0 4px;
    text-transform: uppercase;
}

.case-detail-download-cell .mud-button-root .mud-icon-root {
    font-size: 17px;
}

.case-activity-list {
    display: grid;
    max-height: 360px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.case-activity-item {
    align-items: start;
    border-top: 1px solid #edf1f6;
    display: grid;
    gap: 10px;
    grid-template-columns: 78px 92px minmax(0, 1fr);
    min-height: 46px;
    padding: 8px 14px 8px 34px;
    position: relative;
}

.case-activity-item::before {
    background: #ffffff;
    border: 2px solid #12a85c;
    border-radius: 999px;
    content: "";
    height: 8px;
    left: 14px;
    position: absolute;
    top: 13px;
    width: 8px;
    z-index: 1;
}

.case-activity-item::after {
    background: #d8e0ea;
    content: "";
    left: 18px;
    position: absolute;
    top: 21px;
    bottom: -1px;
    width: 1px;
}

.case-activity-item:last-child::after {
    display: none;
}

.case-activity-item-upcoming {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding-left: 31px;
}

.case-activity-item-upcoming::before {
    border-color: #f59e0b;
}

.case-activity-date {
    color: #111827;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
}

.case-activity-type {
    color: #111827;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.case-activity-copy {
    color: #111827;
    font-size: 12px;
    line-height: 1.35;
    min-width: 0;
}

.case-activity-copy strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
}

.case-court-activity-detail {
    display: grid;
    gap: 2px 10px;
    grid-template-columns: 78px minmax(0, 1fr);
}

.case-court-activity-detail span {
    color: #111827;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.case-court-activity-detail strong {
    color: #111827;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    overflow-wrap: anywhere;
}

.auth-page {
    align-items: center;
    background: linear-gradient(180deg, #45E388 0, #45E388 42%, #ebecee 42%, #ebecee 100%);
    display: flex;
    min-height: 100vh;
    padding: 24px;
}

.auth-container {
    margin: 0 auto;
}

.auth-panel {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    padding: 32px;
    position: relative;
}

.auth-panel::before {
    background: linear-gradient(90deg, #16864d 0%, #45e388 100%);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.auth-brand {
    color: #1f2937;
    font-weight: 800;
    margin-bottom: 6px;
}

.auth-heading {
    color: #526070;
    font-weight: 400;
    margin-bottom: 28px;
}

.auth-link-row {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.requested-account-input {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.requested-account-field {
    flex: 0 1 50%;
    max-width: 520px;
    min-width: 260px;
}

.requested-account-list {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.requested-account-row {
    align-items: center;
    border-bottom: 1px solid #e5e8ef;
    display: flex;
    justify-content: space-between;
    min-height: 40px;
    padding: 4px 8px 4px 12px;
}

.requested-account-row:last-child {
    border-bottom: 0;
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
}

.profile-password-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: block;
    padding: 18px;
}

.auth-panel .mud-button-root,
.profile-actions .mud-button-root,
.requested-account-input .mud-button-root {
    border-radius: 4px;
    font-weight: 300;
    letter-spacing: 0;
    min-height: 42px;
    text-transform: uppercase;
}

.requested-account-input .requested-account-add-button {
    align-self: flex-start;
    border-color: #8b98a9;
    color: #172033;
    font-weight: 700;
    min-width: 104px;
    position: relative;
    top: 7px;
}

.requested-account-input .requested-account-add-button:not(:disabled):hover {
    background: #f4f7fb;
    border-color: #526070;
    color: #172033;
}

.auth-panel .mud-button-filled-primary,
.profile-actions .mud-button-filled-primary {
    background: linear-gradient(135deg, #16864d 0%, #19a462 100%);
    box-shadow: 0 6px 16px rgba(22, 134, 77, 0.24);
}

.auth-panel .mud-button-filled-primary:not(:disabled):hover,
.profile-actions .mud-button-filled-primary:not(:disabled):hover {
    background: linear-gradient(135deg, #127342 0%, #168f55 100%);
    box-shadow: 0 8px 18px rgba(22, 134, 77, 0.28);
}

.assigned-client-table {
    border: 1px solid #d7dde8;
    border-radius: 8px;
    overflow: hidden;
}

.text-nowrap {
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .case-details-stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-details-stat:nth-child(3) {
        border-left: 0;
        border-top: 1px solid #edf1f6;
    }

    .case-details-stat:nth-child(4) {
        border-top: 1px solid #edf1f6;
    }

    .case-details-panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-detail-section,
    .case-detail-section-financial,
    .case-detail-section-wide {
        grid-column: span 1;
    }

    .case-detail-section-full {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .content {
        padding: 0;
    }

    .main-menu.mud-appbar {
        padding: 8px 12px;
    }

    .main-menu .main-menu-container {
        gap: 0.25rem;
        min-height: 64px;
        overflow: visible;
    }

    .main-menu .logo-text {
        font-size: 20px;
        margin-right: 0.5rem;
    }

    .main-menu .primary-nav {
        display: none !important;
    }

    .main-menu .account-menu {
        margin-left: auto;
    }

    .main-menu .account-menu-trigger {
        max-width: min(44vw, 220px);
        padding: 0 5px;
    }

    .main-menu .nav-user-name {
        max-width: min(38vw, 180px);
    }

    .main-menu .mobile-menu-button {
        align-items: center;
        border: 1px solid #d8e0ea;
        border-radius: 4px;
        color: #526070;
        display: inline-flex !important;
        height: 36px;
        justify-content: center;
        width: 36px;
    }

    .main-menu .mobile-menu-button:hover {
        background: #ecfdf3;
        border-color: #12b85f;
        color: #0f9f55;
    }

    .main-menu .mobile-nav-panel {
        background: #ffffff;
        border: 1px solid #dfe5ee;
        border-radius: 6px;
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
        display: none;
        gap: 0;
        left: 12px;
        padding: 6px;
        position: absolute;
        right: 12px;
        top: calc(100% + 8px);
        z-index: 1700;
    }

    .main-menu .mobile-nav-panel.open {
        display: grid;
    }

    .main-menu .mobile-nav-link,
    .main-menu .mobile-report-link {
        align-items: center;
        border: 0;
        border-bottom: 1px solid #edf2f7;
        border-radius: 0;
        color: #39455a;
        display: flex;
        font-size: 14px;
        font-weight: 400;
        justify-content: space-between;
        letter-spacing: 0;
        min-height: 44px;
        padding: 0 14px;
        position: relative;
        text-align: left;
        text-decoration: none;
        width: 100%;
    }

    .main-menu .mobile-nav-link {
        background: transparent;
        font: inherit;
    }

    .main-menu .mobile-nav-link:hover,
    .main-menu .mobile-nav-link:focus,
    .main-menu .mobile-nav-link:focus-visible,
    .main-menu .mobile-report-link:hover,
    .main-menu .mobile-report-link:focus,
    .main-menu .mobile-report-link:focus-visible {
        background: #ecfdf3;
        box-shadow: none !important;
        color: #0f9f55;
        outline: none !important;
    }

    .main-menu .mobile-nav-link.active,
    .main-menu .mobile-report-link.active {
        background: #ecfdf3;
        color: #0f9f55;
        font-weight: 500;
    }

    .main-menu .mobile-nav-link.active::after,
    .main-menu .mobile-report-link.active::after {
        background: #12b85f;
        border-radius: 999px;
        bottom: 6px;
        content: "";
        height: 2px;
        left: 14px;
        position: absolute;
        right: 14px;
    }

    .main-menu .mobile-reports-trigger.open .mud-icon-root {
        transform: rotate(180deg);
    }

    .main-menu .mobile-reports-list {
        background: #f8fafc;
        display: none;
        padding: 4px 0;
    }

    .main-menu .mobile-reports-list.open {
        display: grid;
    }

    .main-menu .mobile-report-link {
        min-height: 40px;
        padding-left: 28px;
    }

    .main-menu .mobile-account-nav {
        display: grid;
    }

    .main-menu .mobile-account-nav .mobile-nav-link:last-child {
        border-bottom: 0;
    }

    .floating-content-container {
        margin-top: 12px;
        padding: 20px 12px;
    }

    .case-search-actions {
        align-items: center;
        flex-direction: column-reverse;
    }

    .report-actions {
        display: flex;
        flex-direction: column;
    }

    .report-run-actions,
    .report-export-actions {
        justify-content: center;
        justify-self: auto;
        width: 100%;
    }

    .report-export-actions {
        justify-content: flex-end;
    }

    .case-search-actions .mud-button-root {
        width: min(100%, 230px);
    }

    .case-search-actions .case-search-primary-button,
    .report-run-actions .case-search-primary-button {
        width: 100%;
    }

    .table-case-list {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .table-case-list .mud-table,
    .table-case-list .mud-table-container {
        background: transparent;
        overflow: visible;
    }

    .table-case-list .mud-table-body {
        display: block;
    }

    .table-case-list .mud-table-body .mud-table-row {
        background: #ffffff;
        border: 1px solid #dfe5ee;
        border-radius: 6px;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
        display: block;
        margin-bottom: 12px;
        overflow: hidden;
    }

    .table-case-list .mud-table-body .mud-table-cell {
        align-items: center;
        border-bottom: 1px solid #edf1f6;
        color: #172033;
        display: flex;
        font-size: 0.8125rem;
        gap: 0.8rem;
        justify-content: space-between;
        line-height: 1.25;
        min-height: 36px;
        padding: 7px 14px;
        text-align: right;
    }

    .table-case-list .mud-table-body .mud-table-cell:last-child {
        border-bottom: 0;
    }

    .table-case-list .mud-table-body .mud-table-cell::before {
        color: #526070;
        flex: 0 0 86px;
        font-size: 0.75rem;
        font-weight: 600;
        line-height: 1.2;
        text-align: left;
    }

    .table-case-list .mud-table-body .mud-table-row:hover {
        background: #ffffff;
    }

    .table-case-list .court-appearance-detail-row {
        margin-top: -12px;
    }

    .table-case-list .court-appearance-detail-row td {
        background: #ffffff;
        border: 1px solid #dfe5ee;
        border-radius: 0 0 6px 6px;
        border-top: 0;
        display: block;
        font-size: 0.8125rem;
        margin-bottom: 12px;
        padding: 9px 14px 12px;
    }

    .court-appearance-details {
        display: grid;
        gap: 0.35rem;
        padding-top: 10px;
    }

    .table-case-list .mud-table-pagination {
        background: #ffffff;
        border: 1px solid #dfe5ee;
        border-radius: 6px;
        min-height: 48px;
    }

    .case-list-actions {
        justify-content: space-between;
        text-align: right;
    }

    .case-list-actions .case-list-view-button {
        font-size: 0.6875rem;
        height: 24px;
        min-height: 24px;
        min-width: 56px;
        padding: 0 10px;
    }

    .case-client-stack {
        align-items: flex-end;
        gap: 1px;
        max-width: calc(100% - 98px);
        text-align: right;
    }

    .case-client-code {
        white-space: nowrap;
    }

    .case-client-name {
        line-height: 1.15;
    }

    .auth-page {
        padding: 16px;
    }

    .auth-panel {
        padding: 20px;
    }

    .auth-link-row,
    .requested-account-input {
        align-items: stretch;
        flex-direction: column;
    }

    .requested-account-field {
        flex-basis: auto;
        max-width: none;
        min-width: 0;
        width: 100%;
    }

    .requested-account-input .requested-account-add-button {
        width: 100%;
    }

    .profile-actions {
        justify-content: stretch;
    }

    .profile-actions .mud-button-root {
        width: 100%;
    }

    .case-details-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .case-details-title-group {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .case-details-title-group h1 {
        font-size: 26px;
    }

    .case-details-back-button {
        width: 100%;
    }

    .case-details-stat-strip,
    .case-details-panel-grid {
        grid-template-columns: 1fr;
    }

    .case-details-stat + .case-details-stat,
    .case-details-stat:nth-child(3),
    .case-details-stat:nth-child(4) {
        border-left: 0;
        border-top: 1px solid #edf1f6;
    }

    .case-details-stat {
        min-height: 78px;
        padding: 14px 16px;
    }

    .case-detail-section,
    .case-detail-section-financial,
    .case-detail-section-wide,
    .case-detail-section-full {
        grid-column: 1 / -1;
    }

    .case-detail-section header {
        min-height: 50px;
        padding: 14px 16px 8px;
    }

    .case-detail-list {
        gap: 4px;
        grid-template-columns: 1fr;
        padding: 14px 16px 16px;
    }

    .case-detail-list dt {
        padding-top: 8px;
    }

    .case-detail-list dd {
        padding-bottom: 8px;
    }

    .case-detail-money-list dd {
        text-align: left;
    }

    .case-compact-row {
        align-items: start;
        grid-template-columns: 1fr auto;
    }

    .case-compact-secondary {
        grid-column: 1 / -1;
        white-space: normal;
    }

    .case-activity-item {
        gap: 8px;
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 16px 16px 16px 40px;
    }

    .case-activity-date {
        white-space: normal;
    }

    .case-activity-chip {
        min-width: 0;
    }
}
