:root {
    --app-ink: #18212f;
    --app-muted: #667085;
    --app-line: #d9e0ea;
    --app-soft: #f4f7fb;
    --app-brand: #112C45;
    --app-brand-dark: #0A2239;
    --app-brand-hover: #0B2136;
    --app-brand-soft: #eaf0f6;
    --app-accent: #173b5c;
}

body {
    min-height: 100vh;
    background: #f6f8fb;
    color: var(--app-ink);
    font-size: 15px;
    letter-spacing: 0;
}

a {
    color: var(--app-brand);
}

a:hover {
    color: var(--app-brand-hover);
}

.app-navbar {
    background: var(--app-brand-dark);
    box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

.app-nav-inner {
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
    padding-right: clamp(14px, 3vw, 28px);
    padding-left: clamp(14px, 3vw, 28px);
}

.navbar-brand {
    font-weight: 700;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.app-brand-mark {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 7px;
}

.debug-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 360px;
}

.nav-account-zone {
    display: flex;
    align-items: center;
    gap: 14px;
}

.account-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 7px 12px;
    color: #fff;
    background: rgba(0,0,0,.18);
    border: 0;
    border-radius: 0;
}

.account-toggle:hover,
.account-toggle.show {
    background: rgba(0,0,0,.3);
}

.nav-avatar,
.account-menu-avatar,
.account-avatar {
    display: inline-block;
    overflow: hidden;
    object-fit: cover;
    border-radius: 999px;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

.nav-avatar-fallback,
.account-menu-avatar-fallback,
.account-avatar-fallback {
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: #87949a;
    font-weight: 800;
}

.account-toggle-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
    text-align: left;
}

.account-toggle-name {
    max-width: 190px;
    overflow: hidden;
    color: #fff;
    font-weight: 750;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-toggle-email {
    max-width: 210px;
    overflow: hidden;
    color: rgba(255,255,255,.7);
    font-size: .82rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-caret {
    color: rgba(255,255,255,.88);
    font-size: .9rem;
}

.account-menu {
    width: min(92vw, 420px);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(17,44,69,.18);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(16,24,40,.18);
}

.account-menu-head {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fff;
}

.account-menu-avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    font-size: 1.6rem;
}

.account-menu-name {
    color: #2b3038;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
}

.account-menu-email {
    margin-top: 4px;
    color: #667085;
}

.account-menu-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 20px;
}

.account-menu-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid var(--app-line);
}

.debug-login {
    border-top: 1px solid var(--app-line);
}

.app-shell {
    max-width: 1320px;
    padding: 22px clamp(14px, 3vw, 28px) 32px;
}

.auth-shell {
    position: relative;
    min-height: calc(100vh - 48px);
    display: grid;
    place-items: center;
    padding: 24px 24px 18px;
    overflow: hidden;
    background:
        linear-gradient(120deg, #061827 0%, var(--app-brand-dark) 34%, var(--app-brand) 68%, #2b5878 100%);
}

.auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 46%, rgba(255,255,255,.16) 46.2% 46.8%, transparent 47%),
        linear-gradient(132deg, transparent 0 58%, rgba(255,255,255,.08) 58.3% 68%, transparent 68.2%),
        linear-gradient(90deg, rgba(255,255,255,.08) 0%, transparent 38%);
    pointer-events: none;
}

.auth-shell::after {
    content: "";
    position: absolute;
    right: -12vw;
    bottom: -12vh;
    width: 72vw;
    height: 46vh;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,.08) 48%, rgba(255,255,255,.15) 100%);
    clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
    pointer-events: none;
}

.auth-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 8px;
    box-shadow: 0 24px 68px rgba(2,13,25,.34);
    padding: 28px;
}

.app-footer {
    font-size: .78rem;
}

.app-footer-boxed {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(14px, 3vw, 28px) 22px;
}

.app-footer-auth {
    display: flex;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px 18px;
    background: #2b5878;
}

.app-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(17,44,69,.12);
}

.app-footer-links a {
    color: rgba(17,44,69,.62);
    text-decoration: none;
}

.app-footer-links a:hover {
    color: var(--app-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.app-footer-auth .app-footer-links {
    max-width: 680px;
    border-top-color: rgba(255,255,255,.18);
}

.app-footer-auth .app-footer-links a {
    color: rgba(255,255,255,.72);
}

.app-footer-auth .app-footer-links a:hover {
    color: #fff;
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    gap: 16px;
    align-items: start;
}

.account-profile {
    display: flex;
    align-items: center;
    gap: 18px;
}

.account-avatar {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    font-size: 2rem;
}

.account-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-logo-card {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 136px;
    padding: 18px;
    background: var(--app-brand);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--app-brand);
    --bs-btn-border-color: var(--app-brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--app-brand-hover);
    --bs-btn-hover-border-color: var(--app-brand-hover);
    --bs-btn-focus-shadow-rgb: 17,44,69;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--app-brand-hover);
    --bs-btn-active-border-color: var(--app-brand-hover);
}

.btn-outline-primary {
    --bs-btn-color: var(--app-brand);
    --bs-btn-border-color: var(--app-brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--app-brand);
    --bs-btn-hover-border-color: var(--app-brand);
    --bs-btn-focus-shadow-rgb: 17,44,69;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--app-brand-hover);
    --bs-btn-active-border-color: var(--app-brand-hover);
}

.form-label {
    color: #344054;
    font-size: .9rem;
    font-weight: 750;
}

.form-control,
.form-select {
    min-height: 42px;
    color: var(--app-ink);
    background-color: #fbfdff;
    border-color: #c9d6e3;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(17,44,69,.025);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

textarea.form-control {
    min-height: auto;
}

.form-control-sm,
.form-select-sm {
    min-height: 32px;
    border-radius: 7px;
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(17,44,69,.38);
    background-color: #fff;
}

.form-control::placeholder {
    color: #98a2b3;
}

.input-group-text {
    color: var(--app-brand);
    background: var(--app-brand-soft);
    border-color: #c9d6e3;
    border-radius: 8px;
}

.input-group > .form-control,
.input-group > .form-select,
.input-group > .input-group-text,
.input-group > .btn {
    border-radius: 8px;
}

.input-group > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > :not(:first-child):not(.dropdown-menu) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > :not(:first-child) {
    margin-left: -1px;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    border-color: rgba(17,44,69,.55);
    box-shadow: 0 0 0 .2rem rgba(17,44,69,.14);
}

.text-bg-primary {
    background-color: var(--app-brand) !important;
}

.auth-logo {
    display: block;
    width: min(100%, 310px);
    height: 126px;
    object-fit: cover;
    object-position: center;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--app-brand);
    font-weight: 750;
}

.auth-kicker-icon {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 5px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.case-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f8fbfd);
    box-shadow: 0 10px 28px rgba(16,24,40,.05);
}

.case-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid var(--app-line);
    border-radius: 8px;
}

.case-meta-label {
    color: #475467;
    font-size: .82rem;
    font-weight: 750;
    text-transform: uppercase;
}

.case-meta-muted {
    color: #667085;
    font-size: .9rem;
}

.case-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--app-brand-soft);
    border: 1px solid var(--app-line);
    border-radius: 8px;
}

.case-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    padding: 6px 10px;
    color: #344054;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
}

.case-tab:hover {
    color: var(--app-accent);
}

.case-tab.active {
    color: var(--app-brand);
    background: #fff;
    box-shadow: 0 1px 3px rgba(16,24,40,.08);
}

.page-title {
    font-size: clamp(1.35rem, 1.2rem + .6vw, 2rem);
    font-weight: 700;
    margin: 0;
}

.page-subtitle {
    color: var(--app-muted);
    margin: 4px 0 0;
}

.breadcrumb-wrap {
    margin-bottom: 14px;
    overflow-x: auto;
    padding: 2px 0 4px;
}

.breadcrumb-trail {
    display: inline-flex;
    align-items: stretch;
    min-width: max-content;
    padding: 0;
    margin: 0;
    list-style: none;
    isolation: isolate;
}

.breadcrumb-step {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    padding: 0 38px 0 36px;
    color: #2b3038;
    background: #fff;
    border: 2px solid #c7c9cf;
    border-left: 0;
    border-right: 0;
    font-size: clamp(1.08rem, 1rem + .45vw, 1.42rem);
    font-weight: 550;
    line-height: 1;
    white-space: nowrap;
}

.breadcrumb-step:first-child {
    z-index: 6;
    border-left: 2px solid #c7c9cf;
    border-radius: 7px 0 0 7px;
    padding-left: 17px;
}

.breadcrumb-step:nth-child(2) {
    z-index: 5;
}

.breadcrumb-step:nth-child(3) {
    z-index: 4;
}

.breadcrumb-step:nth-child(4) {
    z-index: 3;
}

.breadcrumb-step:nth-child(5) {
    z-index: 2;
}

.breadcrumb-step:last-child {
    z-index: 1;
    border-right: 2px solid #c7c9cf;
    border-radius: 0 7px 7px 0;
    padding-right: 28px;
}

.breadcrumb-step:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%;
    right: -19px;
    width: 38px;
    height: 38px;
    background: #fff;
    border-top: 2px solid #c7c9cf;
    border-right: 2px solid #c7c9cf;
    transform: translateY(-50%) rotate(45deg);
    border-radius: 0 4px 0 0;
}

.breadcrumb-step > a,
.breadcrumb-step > span {
    position: relative;
    z-index: 3;
}

.breadcrumb-step a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb-step a:hover {
    color: var(--app-accent);
}

.breadcrumb-step.active {
    color: #2b3038;
}

.breadcrumb-home {
    width: 68px;
    justify-content: center;
    padding-right: 25px;
}

.breadcrumb-home .ui-icon {
    width: 1.7rem;
    height: 1.7rem;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.case-card {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(17,44,69,.18);
    border-radius: 8px;
    padding: 18px;
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.case-card:hover {
    border-color: rgba(17,44,69,.5);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(17,44,69,.1);
}

.case-card-people {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.case-ref {
    font-weight: 700;
    color: var(--app-brand);
}

.quiet-card,
.table-panel {
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
}

.table-panel {
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    color: #465467;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: 0;
    background: #f8fafc;
}

.client-badges,
.read-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.client-badge,
.read-badge {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.client-badge.has-avatar,
.read-badge.has-avatar {
    display: inline-block;
    object-fit: cover;
    padding: 0;
    background: #fff;
}

.client-badge {
    background: var(--app-brand-soft);
    color: var(--app-brand);
    border-color: #c9d6e3;
}

.lawyer-badge {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.actor-badge {
    flex: 0 0 auto;
}

.system-badge {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

.read-badge {
    background: #e9edf5;
    color: #465467;
    border-width: 2px;
    box-shadow: 0 0 0 2px #fff;
}

.read-badge.seen {
    background: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.read-badge.read {
    background: #dcfce7;
    color: #166534;
    border-color: #22c55e;
}

.read-badge.unread {
    background: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.status-line {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.message-page-head {
    align-items: flex-start;
}

.message-sender-line {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.message-sender-line .client-badge {
    width: 46px;
    height: 46px;
    font-size: .92rem;
}

.message-sender-name {
    color: var(--app-ink);
    font-weight: 750;
    line-height: 1.1;
}

.message-sender-meta {
    color: #8a96a8;
    font-size: .82rem;
}

.message-card-wrap {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}

.message-card {
    box-shadow: 0 14px 34px rgba(16,24,40,.06);
}

.message-body {
    white-space: pre-wrap;
    line-height: 1.62;
    font-size: 1.02rem;
}

.message-reply-actions {
    display: flex;
    justify-content: flex-end;
}

.empty-state {
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    padding: 42px;
    text-align: center;
}

.nav-tabs .nav-link {
    color: #475467;
}

.nav-tabs .nav-link.active {
    color: var(--app-accent);
    font-weight: 700;
}

.badge.text-bg-light {
    border: 1px solid var(--app-line);
    color: #475467;
}

.form-hint {
    color: var(--app-muted);
    font-size: .88rem;
}

.ui-icon {
    width: 1.05em;
    height: 1.05em;
    vertical-align: -0.16em;
}

.btn .ui-icon,
.filter-chip .ui-icon,
.type-pill .ui-icon {
    margin-right: 6px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 38px;
    padding: 7px 12px;
    color: #344054;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 999px;
    font-weight: 650;
}

.filter-chip:hover {
    color: var(--app-accent);
    border-color: rgba(17,44,69,.38);
}

.filter-chip.active {
    color: #fff;
    background: var(--app-accent);
    border-color: var(--app-accent);
}

.event-panel {
    box-shadow: 0 10px 26px rgba(16,24,40,.05);
}

.event-table th:first-child,
.event-table td:first-child {
    min-width: 390px;
}

.event-table th:nth-child(4),
.event-table td:nth-child(4) {
    min-width: 150px;
}

.event-row {
    transition: background .15s ease;
}

.event-row.event-deleted > * {
    background-color: #fff1f2;
}

.event-row.event-deleted:hover > * {
    background-color: #ffe4e6;
}

.event-row:hover {
    background: #fbfcff;
}

.event-titleline {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.event-copy {
    min-width: 0;
    max-width: 68ch;
}

.event-title {
    color: var(--app-brand);
    font-weight: 520;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.event-title-unread {
    font-weight: 800;
}

.event-title-read {
    color: #344054;
}

a.event-title:hover {
    color: var(--app-accent);
    text-decoration: underline;
}

.event-description {
    margin-top: 5px;
    color: #8a96a8;
    font-size: .84rem;
    line-height: 1.32;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.type-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 700;
    white-space: nowrap;
}

.type-document {
    color: #075985;
    background: #e0f2fe;
}

.type-message {
    color: #166534;
    background: #dcfce7;
}

.type-audit {
    color: #334155;
    background: #e2e8f0;
}

.admin-user-head {
    align-items: center;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.metric-card {
    display: grid;
    gap: 3px;
    min-height: 78px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid rgba(17,44,69,.16);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(16,24,40,.04);
}

.metric-card strong {
    color: var(--app-brand);
    font-size: 1.55rem;
    line-height: 1;
}

.metric-card-muted strong {
    color: #991b1b;
}

.metric-label {
    color: #667085;
    font-size: .78rem;
    font-weight: 750;
    text-transform: uppercase;
}

.admin-create-card {
    box-shadow: 0 14px 34px rgba(16,24,40,.06);
}

.admin-card-title,
.admin-table-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.admin-main-action {
    min-width: 170px;
}

.admin-user-panel {
    box-shadow: 0 14px 34px rgba(16,24,40,.06);
}

.admin-table-toolbar {
    padding: 18px;
    border-bottom: 1px solid var(--app-line);
}

.admin-user-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) minmax(150px, .8fr) minmax(150px, .8fr) auto auto;
    gap: 8px;
    align-items: center;
    min-width: min(100%, 760px);
}

.admin-user-table th:first-child,
.admin-user-table td:first-child {
    width: 64px;
}

.admin-user-table th:last-child,
.admin-user-table td:last-child {
    width: 150px;
}

.user-icon-cell .client-badge {
    width: 38px;
    height: 38px;
}

.user-name-line {
    color: var(--app-ink);
    font-weight: 750;
}

.user-mail-line {
    color: #667085;
    font-size: .9rem;
    text-decoration: none;
}

.user-mail-line:hover {
    color: var(--app-brand);
    text-decoration: underline;
}

.role-pill,
.user-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 750;
    white-space: nowrap;
}

.role-lawyer {
    color: #9a3412;
    background: #fff7ed;
    border-color: #fed7aa;
}

.role-staff {
    color: #075985;
    background: #e0f2fe;
    border-color: #bae6fd;
}

.role-client {
    color: var(--app-brand);
    background: var(--app-brand-soft);
    border-color: #c9d6e3;
}

.role-user {
    color: #475467;
    background: #f8fafc;
    border-color: var(--app-line);
}

.user-status-pill.status-active {
    color: #166534;
    background: #dcfce7;
    border-color: #86efac;
}

.user-status-pill.status-deleted {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fca5a5;
}

.user-row-deleted > * {
    background: #fff1f2;
}

.user-row-deleted .user-name-line,
.user-row-deleted .user-mail-line {
    color: #7f1d1d;
}

.user-edit-row > td {
    background: #f8fafc;
    border-top: 0;
}

.admin-user-edit-form {
    padding: 18px;
    border-top: 1px solid var(--app-line);
    background: linear-gradient(180deg, #f8fafc, #fff);
}

@media (max-width: 720px) {
    .page-head {
        display: block;
    }

    .nav-account-zone {
        display: block;
        margin-top: 12px;
    }

    .account-toggle {
        width: 100%;
        justify-content: flex-start;
        border-radius: 8px;
    }

    .account-toggle-copy {
        flex: 1;
    }

    .account-menu {
        width: 100%;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-profile {
        align-items: flex-start;
    }

    .case-hero {
        display: block;
        padding: 18px;
    }

    .actions {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .breadcrumb-wrap {
        margin-bottom: 12px;
    }

    .breadcrumb-step {
        min-height: 44px;
        padding: 0 30px 0 26px;
        font-size: .98rem;
    }

    .breadcrumb-step:not(:last-child)::after {
        right: -15px;
        width: 30px;
        height: 30px;
    }

    .breadcrumb-home {
        width: 56px;
        padding-left: 12px;
        padding-right: 19px;
    }

    .breadcrumb-home .ui-icon {
        width: 1.4rem;
        height: 1.4rem;
    }

    .event-table th:first-child,
    .event-table td:first-child {
        min-width: 260px;
    }

    .table-responsive .btn {
        width: 100%;
        margin-bottom: 4px;
    }
}

@media (max-width: 1100px) {
    .admin-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-table-toolbar {
        display: block;
    }

    .admin-user-filters {
        grid-template-columns: 1fr 1fr;
        margin-top: 14px;
    }
}

@media (max-width: 720px) {
    .admin-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-user-filters {
        grid-template-columns: 1fr;
    }

    .admin-user-head .btn {
        margin-top: 12px;
    }
}
