@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
    color-scheme: light;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #cbd5e1;
    --panel: rgba(255, 255, 255, 0.94);
    --soft: #f8fafc;
    --accent: #14b8a6;
    --accent-dark: #0f766e;
    --warn: #92400e;
    --danger: #be123c;
    --info: #155e75;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.4;
    font-weight: 400;
    font-size: 15px;
}

.followup-archive-filter-card {
    padding-block: 0.85rem;
}

.archive-filter-head {
    gap: 0.75rem;
}

.archive-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.archive-active-toggle {
    min-height: 36px;
    white-space: nowrap;
}

.archive-reset-actions {
    align-items: end;
    flex-wrap: nowrap;
}

.followup-archive-table .archive-click-row {
    cursor: pointer;
}

.followup-archive-table .archive-click-row:hover,
.followup-archive-table .archive-click-row:focus {
    background: rgba(15, 23, 42, 0.04);
    outline: none;
}

.followup-archive-drawer .detail-section {
    scroll-margin-top: 16px;
}

.archive-req-doc-panel .req-doc-review-item {
    align-items: center;
}

.archive-attachment-list {
    display: grid;
    gap: 10px;
}

.archive-attachment-list > div {
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.archive-attachment-list span,
.archive-attachment-list small {
    color: var(--muted);
    font-size: 0.82rem;
}

.archive-timeline {
    position: relative;
    display: grid;
    gap: 0;
}

.archive-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    padding: 0 0 18px;
}

.archive-timeline-item::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 16px;
    bottom: 0;
    width: 2px;
    background: var(--line);
}

.archive-timeline-item:last-child {
    padding-bottom: 0;
}

.archive-timeline-item:last-child::before {
    content: none;
}

.archive-timeline-dot {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 3px solid var(--panel);
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--line);
}

.archive-timeline-item > div {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.archive-timeline-item span {
    color: var(--muted);
    font-size: 0.8rem;
}

.archive-timeline-item strong {
    color: var(--ink);
}

.archive-timeline-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.archive-timeline-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

@media (max-width: 760px) {
    .archive-filter-actions {
        width: 100%;
        justify-content: space-between;
    }

    .archive-attachment-list > div {
        grid-template-columns: 1fr;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #f1f5f9;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.app-shell {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, #eaf6fb 0%, #f5f8fb 100%);
}

.app-version {
    position: fixed;
    right: 0.85rem;
    bottom: 0.55rem;
    z-index: 20;
    color: rgba(100, 116, 139, 0.72);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.loading-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #f1f5f9;
}

.loading-card,
.login-card,
.login-hero,
.panel-card,
.filter-card,
.modal-card,
.empty-card {
    background: var(--panel);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.8rem;
    box-shadow: var(--shadow);
}

.loading-card {
    padding: 20px 24px;
    color: var(--muted);
}

.btn,
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 0.8rem;
    padding: 0.6rem 0.85rem;
    font-weight: 700;
    min-height: 2.55rem;
    line-height: 1;
    text-decoration: none;
}

.btn-sm {
    padding: 0.48rem 0.68rem;
    min-height: 2.15rem;
    font-size: 0.9rem;
}

.btn-dark {
    background: #020617;
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-outline {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.disabled-link {
    pointer-events: none;
    opacity: 0.55;
}

.danger {
    background: #ffe4e6;
    color: var(--danger);
}

.logout-button {
    display: inline-grid;
    place-items: center;
    width: 40px;
    min-width: 40px;
    padding: 0;
}

.logout-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.close-button {
    display: inline-grid;
    place-items: center;
    width: 2.35rem;
    min-width: 2.35rem;
    height: 2.35rem;
    min-height: 2.35rem;
    padding: 0;
    border: 1px solid rgba(190, 18, 60, 0.28);
    background: #ffe4e6;
    color: var(--danger);
}

.close-button svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.close-button:hover {
    border-color: rgba(190, 18, 60, 0.45);
    background: #fecdd3;
    color: #9f1239;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow.light {
    color: #cffafe;
}

.eyebrow.dark {
    color: var(--accent-dark);
}

.login-shell {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 2rem;
    background-color: #eef7f6;
    background-image:
        linear-gradient(rgba(15, 118, 110, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(255, 255, 255, 0) 42%, rgba(15, 118, 110, 0.11));
    background-size: 42px 42px, 42px 42px, auto;
}

.login-shell::before {
    content: "";
    position: absolute;
    inset: 8% -10% auto -10%;
    height: 18rem;
    transform: rotate(-7deg);
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.18), rgba(255, 255, 255, 0.55), rgba(15, 118, 110, 0.08));
    filter: blur(18px);
    pointer-events: none;
}

.login-layout {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    align-items: stretch;
    gap: 1.25rem;
}

.login-hero {
    position: relative;
    overflow: hidden;
    min-height: 38rem;
    padding: 2rem;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(12, 148, 136, 0.98), rgba(17, 94, 89, 0.98) 45%, rgba(9, 26, 25, 0.98)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: auto, 36px 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.4rem;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.24);
}

.login-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.42), transparent);
    pointer-events: none;
}

.login-hero > * {
    position: relative;
    z-index: 1;
}

.login-hero-top,
.projects-header,
.panel-title-row,
.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.login-brand,
.login-card-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.login-brand strong,
.login-card-brand > span:not(.login-brand-mark) {
    display: block;
    font-weight: 800;
}

.login-brand div > span {
    display: block;
    color: rgba(240, 253, 250, 0.76);
    font-size: 0.78rem;
    font-weight: 700;
}

.login-brand-mark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 2.7rem;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.15);
    color: #ccfbf1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.login-brand-mark svg,
.login-hero-badge svg,
.login-input-shell svg,
.login-password-toggle svg,
.login-submit svg,
.login-error svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-hero-content {
    max-width: 36rem;
    margin-top: 4rem;
}

.login-hero h1 {
    margin: 0.95rem 0 1rem;
    font-size: 3.65rem;
    line-height: 1.02;
}

.login-hero p {
    color: rgba(241, 245, 249, 0.92);
    line-height: 1.65;
}

.login-hero-badge,
.pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 0.38rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.login-hero-badge {
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.login-dashboard-preview {
    width: min(30rem, 100%);
    margin-top: 2.3rem;
    padding: 1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.17);
    box-shadow: 0 24px 54px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(18px);
}

.login-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #ccfbf1;
    font-size: 0.82rem;
    font-weight: 800;
}

.login-preview-head strong {
    color: #fff;
}

.login-preview-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.login-preview-metrics div {
    min-width: 0;
    padding: 0.85rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.13);
}

.login-preview-metrics span {
    display: block;
    color: rgba(204, 251, 241, 0.82);
    font-size: 0.72rem;
    font-weight: 800;
}

.login-preview-metrics strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.55rem;
}

.login-preview-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.login-preview-list span {
    display: block;
    height: 0.58rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.login-preview-list .active {
    width: 82%;
    background: #5eead4;
}

.login-preview-list span:nth-child(2) {
    width: 64%;
}

.login-preview-list span:nth-child(3) {
    width: 48%;
}

.login-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.login-hero-stats div {
    min-width: 0;
    padding: 0.9rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-hero-stats span,
.stat-card span,
.topbar-user span,
.drawer-meta span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.login-hero-stats span {
    color: #bdeee5;
}

.login-card {
    display: grid;
    align-content: center;
    padding: 2rem;
    align-self: center;
    min-height: 34rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.13);
    backdrop-filter: blur(22px);
}

.login-card-brand {
    margin-bottom: 2rem;
    color: #0f172a;
}

.login-card-brand .login-brand-mark {
    background: #0f766e;
    color: #fff;
}

.login-card-header h2 {
    font-size: 2rem;
    line-height: 1.1;
}

.login-field {
    gap: 0.55rem;
}

.login-input-shell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.35rem;
    padding: 0 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.95rem;
    color: #64748b;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-input-shell:focus-within {
    border-color: #0f766e;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.login-input-shell input {
    min-width: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.login-input-shell input:focus {
    border-color: transparent;
    box-shadow: none;
}

.login-password-toggle {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border: 0;
    border-radius: 0.65rem;
    color: #64748b;
    background: transparent;
}

.login-password-toggle:hover {
    color: #0f766e;
    background: #ecfdf5;
}

.login-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    min-height: 3.2rem;
    margin-top: 0.35rem;
    background: linear-gradient(135deg, #0f766e, #042f2e);
    box-shadow: 0 16px 34px rgba(15, 118, 110, 0.25);
}

.login-submit:disabled {
    cursor: progress;
    opacity: 0.72;
}

.login-error {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    color: #be123c;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    font-size: 0.88rem;
    font-weight: 800;
}

.login-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(203, 213, 225, 0.76);
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
}

.section-header h2,
.panel-card h3,
.filter-card h3 {
    margin: 0 0 6px;
}

.section-header p,
.panel-card p,
.filter-card p {
    margin: 0;
    color: var(--muted);
}

.stack-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.field {
    display: grid;
    gap: 7px;
}

.field span {
    color: #344054;
    font-size: 0.88rem;
    font-weight: 800;
}

.login-field .login-input-shell {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.8rem;
    padding: 0.6rem 0.75rem;
    color: var(--ink);
    background: #fff;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.table-input {
    min-width: 7.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.55rem;
}

.table-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
    color: #344054;
}

.table-check input {
    width: 1rem;
    height: 1rem;
}

textarea {
    resize: vertical;
}

.file-field small,
.file-field a {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.file-field a {
    color: #0f766e;
}

.file-link,
.file-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    min-width: 0;
    line-height: 1.2;
}

.file-link span:last-child,
.file-preview span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-icon {
    display: inline-grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    flex: 0 0 1.45rem;
    border-radius: 0.45rem;
    background: #e2e8f0;
    color: #475569;
}

.file-icon svg {
    width: 0.98rem;
    height: 0.98rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.file-pdf .file-icon {
    background: #ffe4e6;
    color: #be123c;
}

.file-doc .file-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.file-sheet .file-icon {
    background: #dcfce7;
    color: #15803d;
}

.file-image .file-icon {
    background: #fef3c7;
    color: #92400e;
}

.field-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.companies-house-status {
    display: block;
    margin-top: 0.08rem;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.25;
}

.companies-house-status.loading {
    color: var(--muted);
}

.companies-house-status.success {
    color: #0f766e;
}

.companies-house-status.error {
    color: var(--danger);
}

.error-banner {
    margin: 0;
    padding: 0.65rem 0.8rem;
    border-radius: 0.8rem;
    color: var(--danger);
    background: #ffe4e6;
    font-weight: 700;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0.85rem 0.85rem;
    align-items: start;
}

.topbar-card {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0 0 0.9rem 0.9rem;
    background: #020617;
    color: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
}

.topbar-card::before {
    content: "";
    position: absolute;
    inset: -1rem -1rem auto;
    height: 1rem;
    background: #eaf6fb;
    pointer-events: none;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 12rem;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
    background: #14b8a6;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.topbar-brand .eyebrow {
    margin-bottom: 0.1rem;
    font-size: 0.68rem;
}

.topbar-brand h1 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.1;
}

.top-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-width: 0;
    flex: 1 1 auto;
}

.bottom-nav-list {
    display: none;
}

.top-nav-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    border-radius: 0.75rem;
    padding: 0.58rem 0.72rem;
    border: 0;
    color: #dbe7f2;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.top-nav-group {
    position: relative;
}

.top-nav-group summary {
    list-style: none;
}

.top-nav-group summary::-webkit-details-marker {
    display: none;
}

.top-nav-chevron {
    display: inline-grid;
    place-items: center;
    width: 0.95rem;
    height: 0.95rem;
    color: #94a3b8;
    transition: transform 160ms ease;
}

.top-nav-chevron svg {
    width: 0.95rem;
    height: 0.95rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.top-nav-group[open] .top-nav-chevron {
    transform: rotate(180deg);
}

.top-nav-dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    z-index: 60;
    display: grid;
    gap: 0.3rem;
    width: 16rem;
    padding: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 0.8rem;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.28);
}

.top-nav-dropdown-link {
    display: grid;
    gap: 0.12rem;
    padding: 0.62rem 0.7rem;
    border-radius: 0.62rem;
    color: #f8fafc;
    text-decoration: none;
}

.top-nav-dropdown-link span {
    font-size: 0.88rem;
    font-weight: 900;
}

.top-nav-dropdown-link small {
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 750;
}

.top-nav-dropdown-link:hover,
.top-nav-dropdown-link.active {
    background: rgba(255, 255, 255, 0.1);
}

.top-nav-dropdown-link:hover small,
.top-nav-dropdown-link.active small {
    color: #cbd5e1;
}

.top-nav-icon {
    display: inline-grid;
    place-items: center;
    width: 1.1rem;
    height: 1.1rem;
    color: #94a3b8;
    flex: 0 0 1.1rem;
}

.top-nav-icon svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.top-nav-ticket {
    color: #fda4af;
}

.top-nav-ticket .top-nav-icon {
    color: #fb7185;
}

.top-nav-link.active,
.top-nav-link:hover,
.top-nav-group[open] > .top-nav-link,
.top-nav-group:has(.top-nav-dropdown-link.active) > .top-nav-link {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.top-nav-link.active .top-nav-icon,
.top-nav-link:hover .top-nav-icon,
.top-nav-group[open] > .top-nav-link .top-nav-icon,
.top-nav-group:has(.top-nav-dropdown-link.active) > .top-nav-link .top-nav-icon {
    color: #fff;
}

.top-nav-ticket.active,
.top-nav-ticket:hover {
    border-color: rgba(251, 113, 133, 0.86);
    background: #be123c;
    color: #fff;
    box-shadow: 0 10px 24px rgba(190, 18, 60, 0.28);
}

.topbar-user {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    min-width: 11rem;
}

.topbar-user span {
    color: #cbd5e1;
}

.notification-menu {
    position: relative;
}

.notification-menu summary {
    list-style: none;
}

.notification-menu summary::-webkit-details-marker {
    display: none;
}

.notification-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.75rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.notification-button svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-button span {
    position: absolute;
    top: -0.28rem;
    right: -0.28rem;
    display: inline-grid;
    place-items: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.28rem;
    border: 2px solid #020617;
    border-radius: 999px;
    background: #f43f5e;
    color: #fff;
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1;
}

.notification-menu[open] .notification-button,
.notification-button:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 70;
    width: min(22rem, calc(100vw - 1.5rem));
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.8rem;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.28);
}

.notification-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}

.notification-head strong {
    font-size: 0.92rem;
}

.notification-head button {
    border: 0;
    background: transparent;
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 900;
}

.notification-empty {
    padding: 1rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.notification-list {
    display: grid;
    max-height: 23rem;
    overflow: auto;
}

.notification-item {
    display: grid;
    grid-template-columns: 0.55rem 1fr;
    gap: 0.65rem;
    width: 100%;
    padding: 0.78rem 0.85rem;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
    color: inherit;
    text-align: left;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #f0fdfa;
}

.notification-dot {
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.32rem;
    border-radius: 999px;
    background: transparent;
}

.notification-item.unread .notification-dot {
    background: var(--accent);
}

.notification-item > span:last-child {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.notification-item strong {
    color: var(--ink);
    font-size: 0.88rem;
}

.notification-item small {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.notification-item time {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 800;
}

.profile-link {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
    color: #fff;
    text-decoration: none;
    border-radius: 0.7rem;
    padding: 0.42rem 0.55rem;
}

.profile-link:hover,
.profile-link.active {
    background: rgba(255, 255, 255, 0.08);
}

.profile-link strong,
.profile-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-shell {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
}

.panel-card,
.filter-card {
    min-width: 0;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(226, 232, 240, 0.95);
}

.main-content {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.8rem;
    box-shadow: var(--shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.profile-shell {
    display: grid;
    gap: 0.75rem;
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    min-height: 7.6rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.95rem;
    background:
        radial-gradient(circle at 96% 8%, rgba(20, 184, 166, 0.2), transparent 14rem),
        radial-gradient(circle at 2% 100%, rgba(14, 165, 233, 0.12), transparent 16rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    box-shadow: var(--shadow);
}

.profile-hero-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.profile-avatar {
    display: inline-grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: #ccfbf1;
    color: #115e59;
    font-weight: 900;
}

.profile-avatar.large {
    width: 3.8rem;
    height: 3.8rem;
    font-size: 1.15rem;
    box-shadow:
        0 0 0 0.38rem rgba(204, 251, 241, 0.48),
        0 18px 40px rgba(15, 118, 110, 0.14);
}

.profile-kicker {
    display: inline-flex;
    margin-bottom: 0.25rem;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-hero h3 {
    margin: 0 0 0.2rem;
    color: #0f172a;
    font-size: 1.28rem;
    line-height: 1.12;
}

.profile-hero p {
    margin: 0;
    color: var(--muted);
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.profile-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.profile-inline-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    padding: 0.2rem 0.48rem;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #475569;
    font-size: 0.76rem;
    font-weight: 850;
}

.profile-hero-meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
    min-width: 12.2rem;
    padding: 0.7rem;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.profile-meta-icon,
.profile-card-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 0.7rem;
}

.profile-meta-icon {
    width: 2.1rem;
    height: 2.1rem;
    background: #e0f2fe;
    color: #0369a1;
}

.profile-meta-icon svg,
.profile-card-icon svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-hero-meta span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.profile-hero-meta strong {
    display: block;
    margin-top: 0.25rem;
    color: #0f172a;
    font-size: 1rem;
}

.profile-hero-meta small {
    color: var(--muted);
    font-weight: 700;
}

.profile-account-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.1), transparent 16rem),
        #fff;
}

.profile-security-card {
    display: grid;
    gap: 0.7rem;
    align-content: start;
    padding: 0.9rem 1rem;
}

.profile-security-card {
    background: transparent;
}

.account-password-card {
    border-right: 1px solid rgba(226, 232, 240, 0.9);
}

.profile-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
}

.profile-card-icon {
    width: 2.15rem;
    height: 2.15rem;
    background: #e0f2fe;
    color: #0369a1;
}

.profile-card-icon.secure {
    background: #ccfbf1;
    color: #0f766e;
}

.profile-card-icon.account {
    background: #e0f2fe;
    color: #0369a1;
}

.profile-card-head h3 {
    margin: 0 0 0.18rem;
    color: #0f172a;
    font-size: 0.98rem;
}

.profile-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.25;
}

.profile-password-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    gap: 0.55rem;
    width: 100%;
    margin-top: 0;
    padding-top: 0.1rem;
}

.profile-password-form .message-actions {
    grid-column: 1 / -1;
    align-items: center;
}

.profile-password-form .btn {
    min-width: 9rem;
}

.secure-field-form {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e2e8f0;
}

.stat-card {
    border-radius: 0.8rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 2rem;
}

.stat-card.dark {
    border-top: 4px solid #020617;
}

.stat-card.warn {
    border-top: 4px solid var(--warn);
}

.stat-card.info {
    border-top: 4px solid var(--info);
}

.stat-card.ticket {
    border-top: 4px solid #be123c;
}

.stat-card.danger {
    border-top: 4px solid var(--danger);
}

.stat-card.muted {
    border-top: 4px solid #98a2b3;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    min-height: 5.35rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(20, 184, 166, 0.14);
    border-radius: 0.8rem;
    background: linear-gradient(135deg, #ffffff, #f0fdfa);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.dashboard-hero h3 {
    margin: 0.12rem 0 0.12rem;
    color: #0f172a;
    font-size: 1.28rem;
    line-height: 1.12;
}

.dashboard-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 750;
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.dashboard-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 0.6rem;
}

.dashboard-metric-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    min-height: 5.65rem;
    padding: 0.72rem 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 0.7rem;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}

a.dashboard-metric-card {
    text-decoration: none;
}

a.dashboard-metric-card:hover {
    border-color: rgba(20, 184, 166, 0.45);
    transform: translateY(-1px);
}

.dashboard-metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.24rem;
    height: auto;
    background: #0f172a;
}

.dashboard-metric-card span:not(.dashboard-metric-icon) {
    display: block;
    color: #64748b;
    font-size: 0.73rem;
    font-weight: 900;
}

.dashboard-metric-card strong {
    display: block;
    margin: 0.18rem 0 0.1rem;
    color: #0f172a;
    font-size: 1.65rem;
    line-height: 1;
}

.dashboard-metric-card small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.dashboard-metric-icon {
    display: inline-grid;
    place-items: center;
    grid-column: 2;
    grid-row: 1;
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 0.62rem;
    color: #0f172a;
    background: #e2e8f0;
}

.dashboard-metric-icon svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-metric-card.followup::before,
.dashboard-metric-card.followup .dashboard-metric-icon {
    background: #14b8a6;
    color: #fff;
}

.dashboard-metric-card.review::before,
.dashboard-metric-card.review .dashboard-metric-icon {
    background: #0ea5e9;
    color: #fff;
}

.dashboard-metric-card.preferred::before,
.dashboard-metric-card.preferred .dashboard-metric-icon {
    background: #f59e0b;
    color: #fff;
}

.dashboard-metric-card.ticket::before,
.dashboard-metric-card.ticket .dashboard-metric-icon {
    background: #be123c;
    color: #fff;
}

.dashboard-metric-card.danger::before,
.dashboard-metric-card.danger .dashboard-metric-icon {
    background: #e11d48;
    color: #fff;
}

.dashboard-metric-card.muted::before,
.dashboard-metric-card.muted .dashboard-metric-icon {
    background: #64748b;
    color: #fff;
}

.dashboard-work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.dashboard-work-panel {
    display: grid;
    align-content: start;
    gap: 0.58rem;
    padding: 0.75rem;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}

.dashboard-panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-panel-head h3 {
    margin: 0 0 0.1rem;
    color: #0f172a;
    font-size: 0.98rem;
}

.dashboard-panel-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.dashboard-focus-list {
    display: grid;
    gap: 0.45rem;
}

.dashboard-focus-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.5rem 0.55rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.58rem;
    background: #f8fafc;
}

.dashboard-focus-item strong,
.dashboard-focus-item span:not(.pill):not(.dashboard-focus-marker) {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-focus-item strong {
    color: #0f172a;
    font-size: 0.84rem;
}

.dashboard-focus-item span:not(.pill):not(.dashboard-focus-marker) {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.dashboard-focus-marker {
    display: inline-block;
    width: 0.42rem;
    height: 1.85rem;
    border-radius: 999px;
    background: #0f766e;
}

.dashboard-focus-marker.ticket {
    background: #be123c;
}

.dashboard-empty-line {
    padding: 0.7rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.58rem;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 800;
}

.warn-soft {
    background: #fff7ed;
}

.info-soft {
    background: #ecfeff;
}

.filter-grid,
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.followup-search-card.expanded {
    padding-bottom: 0.7rem;
}

.followup-search-card.collapsed {
    padding-block: 0.64rem;
}

.followup-search-card .filter-grid {
    gap: 8px;
    margin-top: 8px;
}

.followup-search-card .field {
    gap: 0.25rem;
    min-width: 0;
}

.followup-search-card .field span,
.followup-search-card .checkbox-field span {
    font-size: 0.78rem;
    line-height: 1.1;
}

.followup-search-card input,
.followup-search-card select {
    min-height: 34px;
    border-radius: 0.55rem;
    padding: 0.4rem 0.55rem;
    font-size: 0.84rem;
    line-height: 1.2;
}

.followup-search-card .btn {
    min-height: 34px;
    border-radius: 0.55rem;
    padding: 0.42rem 0.65rem;
    font-size: 0.84rem;
}

.followup-search-card .history-actions {
    gap: 0.35rem;
}

.filter-toggle-button {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid #dbe3ee;
    border-radius: 0.55rem;
    background: #fff;
    color: #475569;
    cursor: pointer;
}

.filter-toggle-button:hover {
    border-color: rgba(15, 118, 110, 0.36);
    background: #f0fdfa;
    color: #0f766e;
}

.filter-toggle-button svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 160ms ease;
}

.filter-toggle-button.expanded svg {
    transform: rotate(180deg);
}

.filter-grid.followup-archive-filter-grid {
    grid-template-columns: minmax(240px, 1.3fr) minmax(180px, 0.9fr) minmax(160px, 0.7fr) max-content max-content;
    align-items: end;
    gap: 8px;
    margin-top: 8px;
}

.followup-archive-filter-grid .field {
    min-width: 0;
    gap: 0.25rem;
}

.followup-archive-filter-grid .field span,
.followup-archive-filter-grid .checkbox-field span {
    font-size: 0.78rem;
}

.followup-archive-filter-grid input,
.followup-archive-filter-grid select {
    min-height: 36px;
    padding-block: 0.42rem;
}

.followup-archive-filter-grid .archive-active-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: max-content;
    padding-inline: 0.2rem;
}

.followup-archive-filter-grid .archive-active-toggle input {
    width: 18px;
    min-height: 18px;
}

@media (max-width: 760px) {
    .filter-grid.followup-archive-filter-grid {
        grid-template-columns: 1fr;
    }

    .followup-archive-filter-grid .archive-active-toggle {
        justify-content: flex-start;
        width: 100%;
    }
}

.history-filter-grid {
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(120px, 0.4fr) auto;
    align-items: end;
}

.workflow-filter-grid {
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.8fr) minmax(150px, 0.55fr) minmax(150px, 0.55fr) auto;
    align-items: end;
}

.workflow-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.workflow-stats-grid .stat-card {
    min-width: 0;
}

.stat-breakdown {
    display: grid;
    gap: 0.35rem;
    max-height: 10.5rem;
    margin-top: 0.75rem;
    overflow: auto;
}

.stat-breakdown div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 0.3rem;
}

.stat-breakdown div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.stat-breakdown span {
    min-width: 0;
    overflow: hidden;
    color: #344054;
    font-size: 0.78rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-breakdown strong {
    flex: 0 0 auto;
    display: inline;
    margin-top: 0;
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1;
}

.followup-filter-grid {
    grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.9fr) minmax(180px, 0.9fr) minmax(160px, 0.8fr) auto;
    align-items: end;
}

.client-filter-grid {
    grid-template-columns: minmax(280px, 1.35fr) minmax(220px, 1fr) minmax(220px, 1fr);
    align-items: end;
}

.invoice-filter-grid {
    grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.9fr) minmax(150px, 0.7fr) auto;
    align-items: end;
}

.ticket-filter-grid {
    grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.65fr) minmax(190px, 0.9fr) auto;
    align-items: end;
}

.history-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.table-summary {
    margin-bottom: 0.65rem;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.compact-table th,
.compact-table td {
    padding: 0.48rem 0.55rem;
    font-size: 0.84rem;
    vertical-align: middle;
}

.compact-stack {
    gap: 0.1rem;
}

.workflow-inline-cell {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: max-content;
    white-space: nowrap;
}

.workflow-inline-cell strong,
.workflow-inline-cell span,
.workflow-inline-cell a {
    white-space: nowrap;
}

.history-table th:nth-child(1),
.history-table td:nth-child(1) {
    min-width: 145px;
}

.history-table th:nth-child(6),
.history-table td:nth-child(6) {
    min-width: 260px;
    max-width: 420px;
}

.history-table th:last-child,
.history-table td:last-child {
    width: 1%;
    text-align: center;
    white-space: nowrap;
}

.history-note {
    display: block;
    max-width: min(420px, 48vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.developer-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1.3fr);
    gap: 16px;
}

.developer-panel {
    max-width: 520px;
}

.settings-layout {
    display: grid;
    grid-template-columns: minmax(190px, 0.24fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.settings-menu {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.65rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.settings-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.6rem;
    border: 0;
    border-radius: 0.65rem;
    padding: 0.55rem 0.65rem;
    background: transparent;
    color: #334155;
    font-weight: 800;
    text-align: left;
}

.settings-menu-item.active,
.settings-menu-item:hover {
    background: #ccfbf1;
    color: #115e59;
}

.settings-menu-icon {
    display: inline-grid;
    place-items: center;
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 1.1rem;
}

.settings-menu-icon svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-panel {
    min-width: 0;
}

.settings-panel-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.sql-editor {
    width: 100%;
    min-height: 220px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    resize: vertical;
}

.query-result {
    margin-top: 16px;
}

.panel-title-row.compact {
    margin-bottom: 8px;
}

.hint-text {
    color: var(--muted);
    font-size: 0.9rem;
}

.success-banner {
    margin: 0 0 12px;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    background: #ecfdf5;
    color: #047857;
    font-weight: 700;
}

.toast-region {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 4000;
    display: grid;
    gap: 0.65rem;
    width: min(380px, calc(100vw - 2rem));
    pointer-events: none;
}

.toast-item {
    display: grid;
    grid-template-columns: 1.45rem minmax(0, 1fr) 1.8rem;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.65rem;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
    font-weight: 800;
    pointer-events: auto;
}

.toast-success {
    border-left: 4px solid #16a34a;
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-icon {
    display: inline-grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.toast-success .toast-icon {
    background: #dcfce7;
    color: #15803d;
}

.toast-error .toast-icon {
    background: #ffe4e6;
    color: var(--danger);
}

.toast-close {
    width: 1.8rem;
    height: 1.8rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.toast-close:hover {
    background: rgba(15, 23, 42, 0.08);
    color: var(--ink);
}

.check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.check-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #344054;
}

.check-field input {
    width: 18px;
    height: 18px;
}

.table-wrap {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 14rem);
    min-width: 0;
    overflow: auto;
    margin-top: 10px;
    -webkit-overflow-scrolling: touch;
}

.wide-modal {
    max-width: 980px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    box-shadow: inset 0 -1px 0 var(--line);
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.table-cell-stack,
.attachment-link-list {
    display: grid;
    gap: 4px;
}

.attachment-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.attachment-link-remove {
    display: inline-grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    padding: 0;
    border: 1px solid #fecdd3;
    border-radius: 0.45rem;
    background: #fff1f2;
    color: #be123c;
    cursor: pointer;
}

.attachment-link-remove svg {
    width: 0.78rem;
    height: 0.78rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.attachment-link-remove:hover {
    border-color: #fb7185;
    background: #ffe4e6;
}

.attachment-pending-file {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
    padding: 0.42rem 0.5rem;
    border: 1px dashed rgba(15, 118, 110, 0.34);
    border-radius: 0.5rem;
    background: #f0fdfa;
}

.attachment-pending-file span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
}

.attachment-pending-file strong {
    min-width: 0;
    color: #0f172a;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-cell-stack strong {
    font-size: 0.92rem;
}

.table-cell-stack span,
.attachment-link-list span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.table-cell-stack a,
.attachment-link-list a {
    color: #0f766e;
    font-size: 0.86rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.extended-date-text {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.12rem 0.45rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
}

small.extended-date-text {
    font-weight: 800;
}

strong.extended-date-text {
    font-size: 0.84rem;
    font-weight: 800;
}

.extended-date-text.is-extended {
    border-color: #fdba74;
    background: #fff7ed;
    color: #c2410c;
}

.row-warning {
    background: #fde68a;
}

.workflow-table tr.row-warning td {
    background: #fde68a;
    border-bottom-color: rgba(180, 83, 9, 0.28);
}

.workflow-table tr.row-warning td:first-child {
    border-left: 6px solid #b45309;
}

.row-danger {
    background: #fecdd3;
    animation: danger-background-blink 5s ease-in-out infinite;
}

.workflow-table tr.row-danger td {
    background: #fecdd3;
    border-bottom-color: rgba(190, 18, 60, 0.28);
    animation: danger-background-blink 5s ease-in-out infinite;
}

.workflow-table tr.row-danger td:first-child {
    border-left: 6px solid #be123c;
}

.pill.active,
.pill.progress,
.pill.completed {
    background: #ccfbf1;
    color: #115e59;
}

.pill.followup,
.pill.warn,
.pill.submitted,
.pill.toreview {
    background: #fef3c7;
    color: #92400e;
}

.pill.scheduled,
.pill.info {
    background: #cffafe;
    color: #155e75;
}

.pill.renewed {
    background: #ccfbf1;
    color: #115e59;
}

.pill.closed,
.pill.discontinued,
.pill.muted {
    background: #e2e8f0;
    color: #334155;
}

.pill.priority-low {
    background: #dcfce7;
    color: #166534;
}

.pill.priority-normal {
    background: #cffafe;
    color: #155e75;
}

.pill.priority-high {
    background: #fef3c7;
    color: #92400e;
}

.pill.priority-urgent {
    background: #ffe4e6;
    color: #be123c;
}

.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    overflow: visible;
}

.client-list-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.55rem;
}

.followup-worklist-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.followup-worklist-title h3 {
    flex: 0 1 auto;
    margin: 0;
}

.followup-worklist-title .pill {
    flex: 0 0 auto;
}

.view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    padding: 0.24rem;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 0.75rem;
    background: #f8fafc;
}

.view-toggle-button,
.client-icon-action {
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    background: transparent;
    color: #475569;
}

.view-toggle-button {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.58rem;
}

.view-toggle-button.active {
    border-color: rgba(20, 184, 166, 0.34);
    background: #ccfbf1;
    color: #0f766e;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.12);
}

.view-toggle-button svg,
.client-icon-action svg,
.client-avatar svg,
.client-card-meta svg,
.client-contact-strip svg,
.client-compact-contact svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.client-card {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid rgba(203, 213, 225, 0.84);
    border-radius: 0.8rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
        #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.client-compact-list {
    display: grid;
    gap: 0.48rem;
    margin-top: 0.7rem;
}

.client-compact-card {
    display: grid;
    grid-template-columns: minmax(150px, 210px) minmax(250px, 0.95fr) minmax(380px, 1.6fr) auto;
    gap: 0.55rem;
    align-items: center;
    min-width: 0;
    padding: 0.58rem 0.65rem;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-left: 4px solid #14b8a6;
    border-radius: 0.68rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.client-compact-identity {
    align-items: center;
}

.client-compact-identity > div {
    min-width: 0;
}

.client-compact-identity .client-avatar {
    width: 2rem;
    height: 2rem;
    flex-basis: 2rem;
    border-radius: 0.62rem;
}

.client-compact-identity h4 {
    margin-bottom: 0.1rem;
    font-size: 0.9rem;
}

.client-compact-identity h4,
.client-compact-identity a,
.client-compact-identity > div > span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-compact-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem 0.55rem;
    min-width: 0;
}

.client-compact-contact span,
.client-compact-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    min-width: 0;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    white-space: nowrap;
}

.client-compact-contact a {
    color: #0f766e;
}

.client-compact-contact svg {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
}

.client-compact-services {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.34rem;
    min-width: 0;
}

.client-compact-services .service-chip {
    padding: 0.28rem 0.34rem 0.28rem 0.42rem;
}

.client-compact-services .service-chip strong {
    max-width: 7rem;
    font-size: 0.7rem;
}

.client-compact-services .service-chip-dates {
    flex: 0 1 auto;
}

.client-compact-services .service-date-pill {
    min-height: 1.18rem;
    padding: 0.1rem 0.3rem;
    font-size: 0.64rem;
}

.client-compact-services .service-date-pill span {
    font-size: 0.58rem;
}

.client-compact-more {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: 0.18rem 0.45rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 900;
    white-space: nowrap;
}

.client-compact-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    min-width: 0;
}

.client-compact-files {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.3rem;
    min-width: 0;
}

.client-compact-files .file-link {
    max-width: 8.5rem;
    padding: 0.2rem 0.4rem 0.2rem 0.22rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.client-compact-files .file-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-basis: 1.25rem;
    border-radius: 0.38rem;
}

.client-compact-files .file-icon svg {
    width: 0.84rem;
    height: 0.84rem;
}

.client-compact-card .client-empty-inline {
    min-height: 1.7rem;
    padding: 0.24rem 0.48rem;
    font-size: 0.74rem;
}

.client-compact-card .client-icon-action {
    width: 2rem;
    height: 2rem;
    border-radius: 0.58rem;
}

.client-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.client-card-identity {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    min-width: 0;
}

.client-avatar {
    display: inline-grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    border-radius: 0.75rem;
    background: #e0f2fe;
    color: #0369a1;
}

.client-card-identity h4 {
    margin: 0 0 0.16rem;
    color: #0f172a;
    font-size: 0.98rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.client-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.client-icon-action {
    width: 2.15rem;
    height: 2.15rem;
    border-color: #e2e8f0;
    border-radius: 0.65rem;
    background: #fff;
}

.client-icon-action:hover,
.view-toggle-button:hover {
    border-color: rgba(15, 118, 110, 0.34);
    color: #0f766e;
}

.client-card-meta,
.client-contact-strip,
.client-card-files,
.client-service-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-width: 0;
}

.client-card-meta span,
.client-contact-strip span,
.client-contact-strip a,
.client-empty-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    min-width: 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.client-contact-strip {
    padding: 0.6rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.75rem;
    background: #fff;
}

.client-contact-strip a {
    max-width: 100%;
    color: #0f766e;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.client-card-files {
    align-items: center;
}

.client-card-files .file-link {
    max-width: 100%;
    padding: 0.28rem 0.48rem 0.28rem 0.28rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
}

.client-empty-inline {
    min-height: 2rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
}

.client-service-chips {
    align-items: flex-start;
    gap: 0.4rem;
}

.service-chip {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.42rem;
    min-width: 0;
    max-width: 100%;
    padding: 0.34rem 0.38rem 0.34rem 0.5rem;
    border: 1px solid rgba(13, 148, 136, 0.22);
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fffd, #ecfdf5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.service-chip strong {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 9rem;
    color: #115e59;
    font-size: 0.74rem;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-chip-dates {
    display: inline-flex;
    align-items: center;
    flex: 1 1 11rem;
    flex-wrap: wrap;
    gap: 0.25rem;
    min-width: 0;
    max-width: 100%;
}

.service-date-pill {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    gap: 0.2rem;
    max-width: 100%;
    min-height: 1.35rem;
    padding: 0.14rem 0.36rem;
    border-radius: 999px;
    color: #334155;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.service-date-pill span {
    color: #0f766e;
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.service-date-pill.made-up-to {
    background: #e0f2fe;
}

.service-date-pill.made-up-to span {
    color: #0369a1;
}

.service-date-pill.due {
    background: #ccfbf1;
}

.service-date-pill.due span {
    color: #0f766e;
}

.service-chip.inactive {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    border-color: #e2e8f0;
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.client-service-table {
    width: max-content;
    min-width: 1180px;
}

.client-service-table th,
.client-service-table td {
    min-width: 130px;
    white-space: nowrap;
}

.table-service-dates {
    display: inline-grid;
    align-items: start;
    gap: 0.25rem;
    min-width: 0;
    max-width: 100%;
}

.client-service-table .service-date-pill {
    min-height: 1.25rem;
    padding: 0.12rem 0.34rem;
    font-size: 0.66rem;
}

.client-service-table .service-date-pill span {
    font-size: 0.6rem;
}

.client-service-table th:nth-child(2),
.client-service-table td:nth-child(2),
.client-service-table th:nth-child(3),
.client-service-table td:nth-child(3) {
    min-width: 210px;
    white-space: normal;
}

.workflow-table {
    width: max-content;
    min-width: 1840px;
}

.workflow-table th,
.workflow-table td {
    min-width: 160px;
    vertical-align: top;
}

.workflow-table th:nth-child(1),
.workflow-table td:nth-child(1),
.workflow-table th:nth-child(2),
.workflow-table td:nth-child(2),
.workflow-table th:nth-child(3),
.workflow-table td:nth-child(3),
.workflow-table th:nth-child(4),
.workflow-table td:nth-child(4),
.workflow-table th:nth-child(5),
.workflow-table td:nth-child(5) {
    min-width: 140px;
}

.followup-card-list {
    display: grid;
    gap: 0.48rem;
    margin-top: 0.55rem;
}

.followup-row-card {
    position: relative;
    display: grid;
    gap: 0.36rem;
    padding: 0.42rem 0.5rem;
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-left: 4px solid #94a3b8;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.followup-row-card.tone-warning {
    border-color: rgba(180, 83, 9, 0.46);
    border-left-color: #b45309;
    border-left-width: 7px;
    background: #fde68a;
    box-shadow: none;
}

.followup-row-card.tone-danger {
    border-color: rgba(190, 18, 60, 0.5);
    border-left-color: #be123c;
    border-left-width: 7px;
    background: #fecdd3;
    box-shadow: none;
    animation: danger-background-blink 5s ease-in-out infinite;
}

@keyframes danger-background-blink {
    0%,
    100% {
        background: #fecdd3;
    }

    50% {
        background: #fda4af;
    }
}

.followup-row-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.34rem;
    align-items: stretch;
    min-width: 0;
}

.followup-card-header {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    min-width: 0;
}

.followup-card-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex: 0 0 auto;
    min-width: 0;
}

.followup-card-header-actions .followup-assignee-select {
    order: 1;
}

.followup-card-header-actions .preferred-toggle {
    order: 2;
}

.followup-card-body {
    display: grid;
    grid-template-columns: minmax(620px, 1fr) auto;
    gap: 0.36rem;
    align-items: center;
    min-width: 0;
}

.followup-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    overflow: visible;
}

.followup-client-block {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    min-width: 0;
    flex: 1 1 auto;
}

.followup-client-copy {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    min-width: 0;
}

.followup-client-title-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.followup-row-icon,
.action-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 0.7rem;
}

.followup-row-icon {
    width: 1.72rem;
    height: 1.72rem;
    background: #e0f2fe;
    color: #0369a1;
}

.action-icon {
    width: 1.8rem;
    height: 1.8rem;
    background: #f8fafc;
    color: #475569;
}

.followup-row-icon svg,
.action-icon svg {
    width: 0.95rem;
    height: 0.95rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.followup-client-block h4 {
    margin: 0;
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.followup-assignee-pill {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 8.5rem;
    min-height: 1.2rem;
    padding: 0.1rem 0.38rem;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.followup-assignee-select {
    width: 100%;
    max-width: 12rem;
    min-height: 1.95rem;
    padding: 0.28rem 1.65rem 0.28rem 0.55rem;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 0.5rem;
    background: #fff;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}

.followup-assignee-select.compact {
    width: auto;
    min-width: 10.6rem;
    max-width: 12rem;
    min-height: 1.58rem;
    padding: 0.12rem 1.45rem 0.12rem 0.55rem;
    border-radius: 0.58rem;
    background: rgba(255, 255, 255, 0.76);
    color: #475569;
    font-size: 0.7rem;
}

.followup-assignee-select.table {
    min-width: 12rem;
}

.followup-assignee-select.detail {
    max-width: 100%;
    margin-top: 0.22rem;
}

.followup-summary-grid {
    display: grid;
    grid-template-columns: minmax(150px, 1.08fr) minmax(82px, 0.5fr) minmax(130px, 0.72fr) minmax(150px, 0.86fr) minmax(142px, 0.78fr) minmax(98px, 0.54fr) minmax(178px, 1.06fr);
    gap: 0.24rem;
    min-width: 0;
}

.followup-summary-item {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    min-width: 0;
    min-height: 1.72rem;
    padding: 0.18rem 0.34rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.48rem;
    background: #f8fafc;
}

.followup-due-item {
    padding-right: 0.22rem;
}

.due-extend-button {
    display: inline-grid;
    place-items: center;
    align-items: center;
    justify-items: center;
    width: 1.28rem;
    height: 1.28rem;
    flex: 0 0 1.28rem;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(14, 165, 233, 0.24);
    border-radius: 0.45rem;
    background: #eff6ff;
    color: #0369a1;
    cursor: pointer;
}

.due-extend-button:hover {
    border-color: rgba(14, 165, 233, 0.45);
    background: #dbeafe;
}

.due-extend-button svg {
    width: 0.78rem;
    height: 0.78rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

button.followup-summary-item {
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.req-doc-summary-tile {
    position: relative;
    overflow: hidden;
}

.req-doc-summary-tile .summary-icon,
.req-doc-table-badge::before {
    background: #eef2ff;
    color: #4f46e5;
}

.req-doc-summary-tile.partial .summary-icon,
.req-doc-table-badge.partial::before {
    background: #fef3c7;
    color: #b45309;
}

.req-doc-summary-tile.complete .summary-icon,
.req-doc-table-badge.complete::before {
    background: #dcfce7;
    color: #15803d;
}

.req-doc-summary-tile.waiting .summary-icon,
.req-doc-table-badge.waiting::before {
    background: #ffe4e6;
    color: #be123c;
}

.req-doc-summary-tile:hover,
.req-doc-table-badge:hover {
    border-color: rgba(79, 70, 229, 0.28);
    background: #f8faff;
}

.filing-summary-tile {
    overflow: hidden;
}

.filing-summary-tile .summary-icon {
    background: #ecfdf5;
    color: #047857;
}

.filing-summary-tile.waiting .summary-icon {
    background: #fff7ed;
    color: #c2410c;
}

.filing-summary-tile:hover {
    border-color: rgba(5, 150, 105, 0.28);
    background: #f0fdf4;
}

.filing-summary-copy {
    min-width: 0;
}

.reminder-summary-tile {
    display: grid;
    grid-template-columns: auto minmax(4.8rem, auto) minmax(8.8rem, 1fr);
    align-items: center;
    gap: 0.28rem;
    padding: 0.16rem 0.3rem;
}

.reminder-summary-tile .summary-icon {
    background: #ccfbf1;
    color: #0f766e;
}

.reminder-summary-meta {
    display: grid;
    min-width: 0;
    gap: 0.02rem;
}

.reminder-summary-meta small {
    color: var(--muted);
    font-size: 0.54rem;
    font-weight: 900;
    line-height: 1;
}

.reminder-summary-meta strong {
    min-width: 0;
    color: #0f172a;
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reminder-summary-tile .reminder-summary-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.18rem;
    min-width: 0;
}

.reminder-summary-tile .reminder-summary-buttons .channel-icon-button {
    min-width: 0;
    min-height: 1.48rem;
    height: 1.48rem;
    padding: 0 0.16rem;
    border-radius: 0.48rem;
    gap: 0.18rem;
}

.reminder-summary-tile .reminder-summary-buttons .channel-icon-button svg {
    width: 0.72rem;
    height: 0.72rem;
}

.reminder-summary-tile .reminder-summary-buttons .channel-count {
    min-width: 0.9rem;
    height: 0.9rem;
    padding: 0 0.14rem;
    font-size: 0.58rem;
}

.summary-icon {
    display: inline-grid;
    place-items: center;
    width: 1.28rem;
    height: 1.28rem;
    flex: 0 0 1.28rem;
    border-radius: 0.42rem;
    background: #e0f2fe;
    color: #0369a1;
}

.summary-icon svg {
    width: 0.78rem;
    height: 0.78rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.followup-summary-item strong {
    min-width: 0;
    color: #0f172a;
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-copy {
    display: grid;
    min-width: 0;
    gap: 0.02rem;
}

.summary-main-line {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
}

.summary-main-line strong {
    flex: 1 1 auto;
}

.summary-copy small {
    color: var(--muted);
    font-size: 0.54rem;
    font-weight: 900;
    line-height: 1;
}

.req-doc-summary-copy {
    gap: 0.16rem;
}

.req-doc-summary-copy .summary-main-line strong {
    flex: 1 1 auto;
}

.req-doc-progress {
    display: block;
    width: 100%;
    height: 0.34rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.req-doc-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #4f46e5;
}

.partial .req-doc-progress span {
    background: #f59e0b;
}

.complete .req-doc-progress span {
    background: #22c55e;
}

.waiting .req-doc-progress span {
    background: #e11d48;
}

.req-doc-table-badge {
    position: relative;
    display: grid;
    gap: 0.16rem;
    width: 100%;
    min-width: 9.5rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.58rem;
    padding: 0.42rem 0.52rem 0.46rem 2.15rem;
    background: #fff;
    color: #0f172a;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.req-doc-table-badge::before {
    content: "";
    position: absolute;
    left: 0.52rem;
    top: 0.52rem;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 0.36rem;
}

.req-doc-table-badge span {
    font-size: 0.74rem;
    font-weight: 950;
    line-height: 1.1;
}

.req-doc-table-badge strong {
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.15;
}

.followup-status-chip .summary-icon {
    background: #dcfce7;
    color: #15803d;
}

.followup-resolve-button {
    border: 1px solid rgba(15, 118, 110, 0.28);
    background: #0f766e;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
    white-space: nowrap;
}

.followup-resolve-button:hover {
    background: #115e59;
    color: #fff;
    border-color: #115e59;
}

.followup-more-menu {
    position: relative;
    flex: 0 0 auto;
}

.followup-view-button,
.followup-more-menu summary {
    display: inline-grid;
    place-items: center;
    align-items: center;
    justify-items: center;
    width: 1.72rem;
    height: 1.72rem;
    padding: 0;
    border: 1px solid #dbe3ee;
    border-radius: 0.55rem;
    background: #fff;
    color: #475569;
    cursor: pointer;
    list-style: none;
}

.followup-view-button {
    text-decoration: none;
}

.followup-more-menu summary::-webkit-details-marker {
    display: none;
}

.followup-view-button:hover,
.followup-more-menu summary:hover,
.followup-more-menu[open] summary {
    border-color: rgba(15, 118, 110, 0.36);
    background: #f0fdfa;
    color: #0f766e;
}

.followup-view-button svg,
.followup-more-menu summary svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.followup-more-menu-list {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 30;
    display: grid;
    min-width: 8.5rem;
    padding: 0.35rem;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 0.65rem;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.followup-more-menu-list button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2rem;
    border: 0;
    border-radius: 0.48rem;
    padding: 0.35rem 0.55rem;
    background: transparent;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
}

.followup-more-menu-list button:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.followup-more-menu-list button.resolve {
    color: #be123c;
}

.followup-more-menu-list button.resolve:hover {
    background: #ffe4e6;
    color: #9f1239;
}

.followup-action-toggle {
    position: relative;
    display: inline-grid;
    place-items: center;
    align-items: center;
    justify-items: center;
    width: 1.72rem;
    height: 1.72rem;
    padding: 0;
    border: 1px solid #dbe3ee;
    border-radius: 0.55rem;
    background: #fff;
    color: #475569;
    cursor: pointer;
}

.followup-action-toggle:hover {
    border-color: rgba(15, 118, 110, 0.36);
    background: #f0fdfa;
    color: #0f766e;
}

.followup-action-toggle svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 160ms ease;
}

.followup-action-toggle.expanded svg {
    transform: rotate(180deg);
}

.action-count-badge {
    position: absolute;
    top: -0.42rem;
    right: -0.42rem;
    display: inline-grid;
    place-items: center;
    min-width: 1.08rem;
    height: 1.08rem;
    padding: 0 0.22rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(15, 118, 110, 0.22);
}

.followup-action-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(132px, 1fr));
    gap: 0.48rem;
    align-items: stretch;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    -webkit-overflow-scrolling: touch;
}

.followup-action-panel {
    display: grid;
    align-content: start;
    gap: 0.5rem;
    min-width: 118px;
    min-height: 6.4rem;
    padding: 0.58rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.72rem;
    background: #fff;
}

.followup-action-head {
    display: flex;
    align-items: flex-start;
    gap: 0.42rem;
    min-width: 0;
}

.followup-action-head h5 {
    margin: 0;
    color: #0f172a;
    font-size: 0.8rem;
    line-height: 1.18;
}

.followup-action-head p,
.followup-contact-time,
.followup-status-line {
    margin: 0.12rem 0 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
}

.followup-action-head p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.followup-contact-time {
    display: block;
    overflow-wrap: anywhere;
}

.followup-status-line {
    display: block;
}

.request-panel .workflow-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.36rem;
}

.channel-icon-button,
.compact-command-button,
.compact-attachment-link,
.compact-manage-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-width: 2.15rem;
    min-height: 2.15rem;
    border: 1px solid #dbe3ee;
    border-radius: 0.62rem;
    background: #fff;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 900;
    text-decoration: none;
}

.channel-icon-button {
    position: relative;
    width: 100%;
    padding: 0 0.42rem;
}

.channel-icon-button svg,
.compact-command-button svg,
.compact-attachment-link svg,
.compact-manage-button svg,
.attachment-picker-icon svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.channel-icon-button:hover,
.compact-command-button:hover,
.compact-attachment-link:hover,
.compact-manage-button:hover {
    border-color: rgba(15, 118, 110, 0.36);
    color: #0f766e;
    background: #f0fdfa;
}

.channel-icon-button.channel-sent {
    border-color: rgba(20, 184, 166, 0.26);
    background: #ccfbf1;
    color: #115e59;
}

.channel-count {
    display: inline-grid;
    place-items: center;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.18rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 0.64rem;
    font-weight: 950;
    line-height: 1;
}

.channel-email {
    color: #0f766e;
}

.channel-sms {
    color: #155e75;
}

.channel-whatsapp {
    color: #15803d;
}

.compact-command-button,
.compact-attachment-link {
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    padding: 0.42rem 0.5rem;
}

.compact-command-button span,
.compact-attachment-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-attachment-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem;
    align-items: center;
    min-width: 0;
}

.filing-confirmation-card-action {
    display: grid;
    gap: 0.42rem;
    min-width: 0;
}

.filing-confirmation-count-button {
    min-height: 2.15rem;
}

.filing-confirmation-count-button.complete {
    border-color: rgba(5, 150, 105, 0.24);
    background: #f0fdf4;
    color: #047857;
}

.filing-confirmation-count-button.waiting {
    border-color: rgba(251, 146, 60, 0.34);
    background: #fff7ed;
    color: #c2410c;
}

.compact-manage-button {
    min-width: 2.15rem;
    padding: 0 0.5rem;
}

.compact-manage-button span {
    display: none;
}

.approval-panel {
    min-width: 125px;
}

.compact-approval {
    min-height: 2.2rem;
    padding: 0.42rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.62rem;
    background: #f8fafc;
}

.approval-pending-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.approval-status-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.approval-status-label.approved {
    color: #0f766e;
}

.approval-summary {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
}

.approval-summary-note {
    min-width: 0;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.approval-summary-file {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
    max-width: 100%;
    color: #0f766e;
    font-size: 0.74rem;
    font-weight: 900;
    text-decoration: none;
}

.approval-summary-file svg {
    width: 0.88rem;
    height: 0.88rem;
    flex: 0 0 0.88rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.approval-summary-file span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-panel {
    min-width: 128px;
}

.req-doc-compact-panel {
    min-width: 155px;
}

.req-doc-compact-body {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    min-width: 0;
}

.req-doc-view-button {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.6rem;
    background: #fff;
    color: #0f766e;
}

.req-doc-view-button svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.req-doc-view-button:hover {
    border-color: #99f6e4;
    background: #f0fdfa;
}

.req-doc-review-panel {
    display: grid;
    gap: 0.65rem;
    min-width: min(100%, 260px);
    padding: 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.68rem;
    background: #fff;
}

.req-doc-review-head {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
}

.req-doc-review-head h5 {
    margin: 0;
    font-size: 0.86rem;
}

.req-doc-review-head p {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.req-doc-empty {
    padding: 0.55rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.55rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
}

.req-doc-review-list {
    display: grid;
    gap: 0.5rem;
}

.req-doc-review-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.85fr) minmax(150px, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    padding: 0.55rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.58rem;
    background: #f8fafc;
}

.req-doc-review-row.status-accepted {
    border-color: #99f6e4;
    background: #f0fdfa;
}

.req-doc-review-row.status-rejected {
    border-color: #fecaca;
    background: #fff7f7;
}

.req-doc-review-row.status-uploaded {
    border-color: #fde68a;
    background: #fffbeb;
}

.req-doc-review-row.highlighted-document {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.req-doc-review-main {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.req-doc-review-main strong {
    min-width: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.req-doc-review-main small {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.25;
}

.req-doc-status,
.public-doc-status {
    width: fit-content;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.status-accepted .req-doc-status,
.status-accepted .public-doc-status {
    background: #ccfbf1;
    color: #0f766e;
}

.status-uploaded .req-doc-status,
.status-uploaded .public-doc-status {
    background: #fef3c7;
    color: #92400e;
}

.status-rejected .req-doc-status,
.status-rejected .public-doc-status {
    background: #fee2e2;
    color: #b91c1c;
}

.req-doc-review-file {
    min-width: 0;
}

.req-doc-review-file .file-link {
    max-width: 100%;
}

.req-doc-waiting {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
}

.req-doc-review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.35rem;
    align-items: center;
    min-width: 0;
}

.req-doc-review-actions .btn {
    white-space: nowrap;
}

.attachment-picker {
    display: grid;
    justify-items: center;
    gap: 0.8rem;
    margin-top: 0.9rem;
    padding: 1.25rem;
    border: 1px dashed #94a3b8;
    border-radius: 0.85rem;
    background: #f8fafc;
    text-align: center;
}

.attachment-picker-icon {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    background: #ccfbf1;
    color: #0f766e;
}

.attachment-picker h4 {
    margin: 0;
    font-size: 1rem;
}

.attachment-picker p {
    margin: 0.18rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.attachment-picker input[type="file"] {
    width: min(420px, 100%);
    border-style: solid;
    background: #fff;
}

.attachment-picker-label {
    color: #344054;
    font-size: 0.82rem;
    font-weight: 900;
}

.attachment-current-file {
    display: grid;
    gap: 0.35rem;
    width: min(420px, 100%);
    padding: 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    background: #fff;
    text-align: left;
}

.attachment-current-file > span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.compact-attachment-picker {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: stretch;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.7rem;
    padding: 0.75rem;
    border-radius: 0.68rem;
    text-align: left;
}

.compact-attachment-picker .attachment-picker-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.62rem;
}

.compact-attachment-picker h4 {
    font-size: 0.9rem;
}

.compact-attachment-picker p {
    font-size: 0.78rem;
}

.compact-attachment-picker .attachment-current-file {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0.5rem;
}

.compact-attachment-picker input[type="file"] {
    width: 100%;
    min-width: 0;
    font-size: 0.82rem;
}

.attachment-control-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.attachment-picker-actions {
    margin-top: 0.75rem;
}

.workflow-cell {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.paste-attachment-target {
    border: 1px dashed #cbd5e1;
    border-radius: 0.45rem;
    padding: 0.45rem;
    outline: none;
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.paste-attachment-target:focus,
.paste-attachment-target:focus-within {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgb(15 118 110 / 0.14);
}

.paste-attachment-target.is-pasting {
    background: #ccfbf1;
    border-color: #0f766e;
}

.paste-attachment-target.paste-missing {
    background: #fff7ed;
    border-color: #f97316;
}

.clipboard-paste-button {
    justify-self: start;
    min-height: 1.9rem;
    padding: 0.28rem 0.58rem;
    border: 1px solid #dbe3ee;
    border-radius: 0.5rem;
    background: #fff;
    color: #0f766e;
    font-size: 0.76rem;
    font-weight: 900;
    cursor: pointer;
}

.clipboard-paste-button:hover {
    border-color: rgba(15, 118, 110, 0.36);
    background: #f0fdfa;
}

.clipboard-paste-button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.workflow-cell span,
.workflow-cell small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.workflow-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.table-reminder-cell {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.42rem;
    min-width: 19rem;
}

.table-reminder-cell > span {
    white-space: nowrap;
}

.table-reminder-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(2.45rem, 1fr));
    gap: 0.22rem;
    min-width: 0;
}

.table-reminder-buttons .channel-icon-button {
    width: auto;
    min-width: 0;
    min-height: 1.72rem;
    height: 1.72rem;
    padding: 0 0.22rem;
    border-radius: 0.48rem;
    gap: 0.16rem;
}

.table-reminder-buttons .channel-icon-button svg {
    width: 0.78rem;
    height: 0.78rem;
}

.table-reminder-buttons .channel-count {
    min-width: 0.95rem;
    height: 0.95rem;
    padding: 0 0.14rem;
    font-size: 0.58rem;
}

.table-attachment-cell {
    grid-template-columns: minmax(7rem, 0.9fr) auto minmax(11rem, 1.1fr);
    align-items: center;
    gap: 0.32rem;
    min-width: 30rem;
    padding: 0.34rem;
}

.table-attachment-cell small {
    display: none;
}

.table-attachment-cell .filing-confirmation-count-button,
.table-attachment-cell > .file-link,
.table-attachment-cell > .field-hint {
    width: 100%;
    min-height: 1.72rem;
    margin: 0;
    padding: 0.24rem 0.42rem;
    border-radius: 0.48rem;
    font-size: 0.76rem;
}

.table-attachment-cell > .file-link,
.table-attachment-cell > .field-hint {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-attachment-cell > .field-hint {
    border: 1px solid rgba(251, 146, 60, 0.34);
    background: #fff7ed;
    color: #c2410c;
    font-weight: 900;
}

.table-attachment-cell > .file-link {
    border: 1px solid rgba(5, 150, 105, 0.24);
    background: #f0fdf4;
    color: #047857;
    font-weight: 900;
    text-decoration: none;
}

.table-attachment-cell .clipboard-paste-button {
    justify-self: stretch;
    min-height: 1.72rem;
    padding: 0.22rem 0.48rem;
    border-radius: 0.48rem;
    font-size: 0.72rem;
}

.table-attachment-cell input[type="file"] {
    width: 100%;
    min-width: 0;
    min-height: 1.72rem;
    padding: 0.2rem;
    border: 1px solid #dbe3ee;
    border-radius: 0.48rem;
    background: #fff;
    font-size: 0.76rem;
}

.channel-sent {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    border-radius: 0.55rem;
    padding: 0.34rem 0.48rem;
    background: #ccfbf1;
    color: #115e59;
    font-size: 0.76rem;
    font-weight: 800;
}

.btn-xs {
    min-height: 1.85rem;
    padding: 0.34rem 0.48rem;
    border-radius: 0.55rem;
    font-size: 0.76rem;
}

.workflow-textarea {
    width: 15rem;
    min-height: 4.5rem;
    padding: 0.48rem 0.55rem;
    border-radius: 0.55rem;
    font-size: 0.86rem;
    resize: vertical;
}

.message-modal {
    width: min(760px, 100%);
}

.call-history-panel {
    display: grid;
    gap: 0.65rem;
    padding: 0.8rem;
    border: 1px solid #d8dee8;
    border-radius: 0.7rem;
    background: #f8fafc;
}

.call-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.call-history-head span {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.call-history-head strong {
    display: inline-grid;
    min-width: 1.75rem;
    min-height: 1.75rem;
    place-items: center;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 0.78rem;
    font-weight: 900;
}

.call-history-empty {
    color: #64748b;
    font-size: 0.9rem;
}

.call-history-list {
    display: grid;
    gap: 0.55rem;
    max-height: 14rem;
    overflow: auto;
    padding-right: 0.2rem;
}

.call-history-item {
    display: grid;
    gap: 0.3rem;
    padding: 0.65rem 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    background: #ffffff;
}

.call-history-item time {
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 800;
}

.call-history-item p {
    margin: 0;
    color: #1f2937;
    font-size: 0.92rem;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.req-doc-review-modal {
    width: min(900px, 100%);
}

.create-ticket-modal {
    width: min(680px, 100%);
    padding: 0.85rem;
}

.create-ticket-modal .panel-title-row {
    padding-bottom: 0.55rem;
}

.create-ticket-modal .panel-title-row h3 {
    font-size: 1rem;
}

.create-ticket-modal .panel-title-row p {
    font-size: 0.86rem;
}

.create-ticket-form {
    gap: 10px;
    margin-top: 0.65rem;
}

.create-ticket-form .form-grid {
    gap: 10px 12px;
    margin-top: 0;
}

.create-ticket-form .field {
    gap: 5px;
}

.create-ticket-form .field span {
    font-size: 0.8rem;
}

.create-ticket-form input,
.create-ticket-form select,
.create-ticket-form textarea {
    min-height: 2.45rem;
    border-radius: 0.68rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.92rem;
}

.create-ticket-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.ticket-client-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ticket-general-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.35rem;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.ticket-general-toggle input {
    width: 0.95rem;
    height: 0.95rem;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: #0f766e;
}

.ticket-general-toggle span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.ticket-client-search-box input:disabled {
    background: #f8fafc;
    color: #94a3b8;
}

.ticket-table {
    min-width: 1240px;
}

.ticket-client-search-box {
    position: relative;
}

.ticket-client-results {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 70;
    display: grid;
    max-height: 15rem;
    overflow: auto;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.ticket-client-result {
    border: 0;
    border-bottom: 1px solid #eef2f7;
    border-radius: 0;
    padding: 0.62rem 0.75rem;
    background: #fff;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 800;
    text-align: left;
}

.ticket-client-result:hover,
.ticket-client-result:focus {
    background: #f0fdfa;
    color: #0f766e;
}

.ticket-client-result:last-child {
    border-bottom: 0;
}

.ticket-client-empty {
    padding: 0.72rem 0.75rem;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 800;
}

.ticket-status-tabs,
.followup-severity-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    padding: 0.24rem;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 0.75rem;
    background: #f8fafc;
}

.ticket-status-tab,
.followup-severity-tab {
    min-height: 2.1rem;
    border: 1px solid transparent;
    border-radius: 0.58rem;
    padding: 0.35rem 0.7rem;
    background: transparent;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 900;
}

.ticket-status-tab.active,
.followup-severity-tab.active {
    border-color: rgba(20, 184, 166, 0.34);
    background: #ccfbf1;
    color: #0f766e;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.12);
}

.followup-severity-tab.preferred.active {
    border-color: rgba(217, 119, 6, 0.32);
    background: #fef3c7;
    color: #b45309;
    box-shadow: 0 8px 18px rgba(180, 83, 9, 0.12);
}

.followup-severity-tab.danger.active {
    border-color: rgba(190, 18, 60, 0.32);
    background: #ffe4e6;
    color: #be123c;
    box-shadow: 0 8px 18px rgba(190, 18, 60, 0.12);
}

.followup-severity-tab.warning.active {
    border-color: rgba(180, 83, 9, 0.32);
    background: #fef3c7;
    color: #b45309;
    box-shadow: 0 8px 18px rgba(180, 83, 9, 0.12);
}

.followup-severity-tab.rest.active {
    border-color: rgba(100, 116, 139, 0.28);
    background: #e2e8f0;
    color: #334155;
    box-shadow: 0 8px 18px rgba(51, 65, 85, 0.1);
}

.followup-severity-tab span {
    margin-left: 0.28rem;
    font-size: 0.74rem;
    opacity: 0.8;
}

.preferred-toggle {
    display: inline-grid;
    place-items: center;
    align-items: center;
    justify-items: center;
    flex: 0 0 auto;
    width: 1.58rem;
    height: 1.58rem;
    padding: 0;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 0.55rem;
    background: #fff;
    color: #94a3b8;
    cursor: pointer;
}

.preferred-toggle svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.preferred-toggle:hover,
.preferred-toggle.active {
    border-color: rgba(217, 119, 6, 0.4);
    background: #fffbeb;
    color: #d97706;
}

.preferred-toggle.active svg {
    fill: currentColor;
}

.ticket-table th:nth-child(4),
.ticket-table td:nth-child(4),
.ticket-table th:nth-child(6),
.ticket-table td:nth-child(6) {
    min-width: 240px;
}

.ticket-id-date-cell {
    min-width: 5.5rem;
    gap: 2px;
}

.ticket-id-date-cell strong {
    color: #0f172a;
    font-size: 0.88rem;
    white-space: nowrap;
}

.ticket-id-date-cell span {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

.ticket-client-subject-cell {
    min-width: 12rem;
    gap: 2px;
}

.ticket-client-inline {
    display: inline-flex;
    align-items: baseline;
    gap: 0.38rem;
    min-width: 0;
    max-width: 18rem;
}

.ticket-client-inline strong {
    min-width: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-client-inline a {
    flex: 0 0 auto;
    font-size: 0.78rem;
    white-space: nowrap;
}

.ticket-subject-line {
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.ticket-query-cell {
    max-width: 25rem;
    min-width: 12rem;
    color: #334155;
    font-size: 0.88rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ticket-reply-cell {
    max-width: 24rem;
}

.ticket-reply-cell strong {
    color: #334155;
    font-size: 0.86rem;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ticket-actions {
    min-width: 10rem;
}

.ticket-icon-action {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    min-height: 2rem;
    border: 1px solid var(--line);
    border-radius: 0.55rem;
    background: #fff;
    color: #475569;
}

.ticket-icon-action:hover {
    border-color: rgba(15, 118, 110, 0.36);
    background: #f0fdfa;
    color: #0f766e;
}

.ticket-icon-action.primary {
    border-color: rgba(15, 118, 110, 0.3);
    background: #0f766e;
    color: #fff;
}

.ticket-icon-action.primary:hover {
    background: #115e59;
    color: #fff;
}

.ticket-icon-action.close-ticket-action {
    border-color: rgba(34, 197, 94, 0.34);
    background: #ecfdf5;
    color: #15803d;
}

.ticket-icon-action.close-ticket-action:hover {
    background: #16a34a;
    color: #fff;
}

.ticket-icon-action svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ticket-history-list {
    display: grid;
    gap: 0.55rem;
}

.ticket-history-item {
    display: grid;
    gap: 0.25rem;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 0.55rem;
    background: #f8fafc;
}

.ticket-history-item span,
.ticket-history-item small,
.ticket-history-item em {
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
}

.ticket-history-item strong {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.attachment-modal {
    width: min(560px, 100%);
}

.message-body {
    min-height: 12rem;
}

.message-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.client-form-page .message-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 0 -0.85rem -0.85rem;
    padding: 0.7rem 0.85rem;
    border-top: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 0 0 0.75rem 0.75rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
}

.popup-attention {
    animation: popup-attention 300ms ease;
}

@keyframes popup-attention {
    0% {
        transform: scale(1) translateX(0);
        box-shadow: var(--shadow);
    }

    18% {
        transform: scale(1.004) translateX(-3px);
        box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.1), var(--shadow);
    }

    38% {
        transform: scale(1.004) translateX(3px);
    }

    58% {
        transform: scale(1.004) translateX(-2px);
    }

    78% {
        transform: scale(1.004) translateX(2px);
    }

    100% {
        transform: scale(1) translateX(0);
        box-shadow: var(--shadow);
    }
}

.service-form-grid {
    display: grid;
    gap: 10px;
}

.client-form-route {
    width: 100%;
}

.client-form-hero {
    align-items: center;
}

.client-form-hero-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.client-form-hero-icon {
    display: inline-grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 2.8rem;
    border-radius: 0.8rem;
    background: #ccfbf1;
    color: #0f766e;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
}

.client-form-hero-icon svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-form-hero h3 {
    color: #0f766e;
}

.client-form-page {
    margin-top: 0;
    padding: 0.85rem;
    border-color: rgba(148, 163, 184, 0.42);
    background:
        linear-gradient(180deg, rgba(240, 253, 250, 0.45), rgba(255, 255, 255, 0.98) 12rem),
        #fff;
}

.client-form-page .stack-form {
    gap: 10px;
    margin-top: 0;
}

.client-entry-form {
    gap: 10px;
}

.client-form-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.client-form-section {
    display: grid;
    position: relative;
    gap: 8px;
    padding: 0.62rem 0.68rem 0.68rem;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #14b8a6;
    border-radius: 0.55rem;
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.035);
}

.company-section {
    grid-column: 1;
    grid-row: 1;
}

.tax-section {
    grid-column: 2;
    grid-row: 1;
}

.client-form-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    border-bottom: 1px solid rgba(20, 184, 166, 0.18);
    padding-bottom: 0.42rem;
    min-height: 2rem;
}

.client-form-section-head h4 {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin: 0;
    color: #0f766e;
    font-size: 0.9rem;
    font-weight: 900;
}

.client-form-section-head span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: right;
}

.client-form-section-head h4 > span:last-child {
    color: #0f172a;
    text-align: left;
}

.section-title-icon {
    display: inline-grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    flex: 0 0 1.45rem;
    border-radius: 0.45rem;
    background: #ccfbf1;
    color: #0f766e;
}

.section-title-icon svg {
    width: 0.88rem;
    height: 0.88rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 8px;
    justify-items: start;
}

.client-details-grid .span-2 {
    grid-column: span 2;
}

.company-section .client-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    justify-items: stretch;
}

.company-section .compact-field {
    grid-column: span 1;
}

.company-section .medium-field {
    grid-column: 1 / -1;
}

.company-section .span-2 {
    grid-column: 1 / -1;
}

.tax-section .client-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
}

.client-form-subhead {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.12rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(8, 145, 178, 0.16);
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 900;
}

.client-form-subhead small {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
}

.tax-auth-block {
    display: grid;
    gap: 8px;
    margin-top: 0.2rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(37, 99, 235, 0.18);
}

.tax-auth-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.tax-auth-head h5 {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin: 0;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 900;
}

.tax-auth-head > span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: right;
}

.tax-auth-block .section-title-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.client-form-subhead .section-title-icon {
    background: #cffafe;
    color: #0e7490;
}

.tax-section .tax-auth-block .section-title-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.secure-auth-grid {
    align-items: end;
    grid-template-columns: minmax(0, 1fr);
}

.secure-auth-grid .span-2,
.files-block .client-details-grid .span-2 {
    grid-column: span 1;
}

.files-block .client-details-grid,
.tax-auth-block .client-details-grid {
    grid-template-columns: minmax(0, 1fr);
}

.secure-auth-actions,
.secure-auth-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.secure-auth-summary {
    justify-content: space-between;
    min-height: 2.5rem;
}

.client-form-page .form-grid {
    gap: 8px 12px;
    margin-top: 0;
}

.client-entry-form .field {
    gap: 3px;
    width: 100%;
    min-width: 0;
}

.client-entry-form .compact-field {
    max-width: none;
}

.client-entry-form .medium-field {
    max-width: none;
}

.client-entry-form .field span {
    color: #334155;
    font-size: 0.76rem;
    letter-spacing: 0;
}

.client-entry-form input,
.client-entry-form select,
.client-entry-form textarea {
    min-height: 2rem;
    padding: 0.32rem 0.5rem;
    border-color: #cbd5e1;
    border-radius: 0.48rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
    font-size: 0.86rem;
}

.client-entry-form textarea {
    min-height: 3.1rem;
    resize: vertical;
}

.client-entry-form .file-field input {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.42rem;
    background: #f8fafc;
}

.client-entry-form input[type="file"]::file-selector-button {
    min-height: 1.45rem;
    margin-right: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.38rem;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
}

.client-entry-form .file-preview,
.client-entry-form .file-field .file-link {
    margin-top: 0.05rem;
    padding: 0.3rem 0.45rem;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 0.5rem;
    background: #fff;
}

.client-form-page .detail-section {
    gap: 8px;
    margin: 0;
    padding: 0.62rem 0.68rem 0.68rem;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #14b8a6;
    border-radius: 0.55rem;
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.035);
}

.client-form-page .detail-section h4 {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin: 0;
    padding-bottom: 0.42rem;
    border-bottom: 1px solid rgba(20, 184, 166, 0.18);
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 900;
}

.client-form-page .detail-section .section-title-icon {
    background: #ccfbf1;
    color: #0f766e;
}

.client-form-page .service-form-grid {
    gap: 4px;
}

.service-form-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 0.75fr) minmax(160px, 0.75fr) minmax(110px, 0.55fr) minmax(150px, 0.7fr) minmax(120px, 0.55fr);
    gap: 10px;
    align-items: center;
}

.service-form-header {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.client-form-page .service-form-row {
    grid-template-columns: minmax(190px, 1.1fr) minmax(145px, 0.68fr) minmax(145px, 0.68fr) minmax(115px, 0.55fr) minmax(135px, 0.62fr) minmax(95px, 0.42fr);
    gap: 6px;
}

.client-form-page .service-form-header {
    font-size: 0.72rem;
    padding: 0 0.42rem;
}

.service-form-item {
    display: grid;
    gap: 0.35rem;
    padding: 0.22rem 0.42rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
}

.service-form-item.active {
    border-color: #bfdbfe;
    background: #f8fbff;
    box-shadow: inset 3px 0 0 rgba(20, 184, 166, 0.55);
}

.client-form-page .check-field {
    min-height: 2.25rem;
}

.due-on-fields {
    display: grid;
    grid-template-columns: minmax(70px, 0.4fr) minmax(120px, 0.6fr);
    gap: 8px;
}

.service-form-display-date {
    display: flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--muted);
    font-weight: 800;
}

.service-form-row select {
    width: 100%;
}

.service-form-row input {
    min-width: 0;
}

.service-req-doc-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.16fr) minmax(0, 1fr);
    gap: 0.45rem;
    align-items: center;
    margin: 0 0 0.12rem 0;
    padding-left: 0.2rem;
}

.service-req-doc-title {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    min-width: 0;
}

.service-req-doc-title span {
    color: #1e3a8a;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.service-req-doc-title small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.15rem;
    padding: 0 0.32rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
}

.service-req-doc-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.38rem;
    min-width: 0;
}

.req-doc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    min-height: 1.25rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 900;
}

.req-doc-chip input {
    width: 0.78rem;
    height: 0.78rem;
    accent-color: #0f766e;
}

.empty-card {
    margin-top: 10px;
    padding: 14px;
    color: var(--muted);
    box-shadow: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.modal-backdrop,
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    background: rgba(15, 23, 42, 0.45);
}

.modal-backdrop {
    place-items: center;
    padding: 18px;
}

.modal-card {
    width: min(720px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
}

.service-type-modal {
    width: min(760px, 100%);
    padding: 0.85rem;
}

.req-doc-modal {
    width: min(620px, 100%);
    padding: 0.85rem;
}

.req-doc-form textarea {
    resize: vertical;
}

.req-doc-reject-backdrop {
    z-index: 140;
}

.req-doc-reject-modal {
    width: min(520px, 100%);
    padding: 0.9rem;
}

.req-doc-reject-modal .panel-title-row p {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.req-doc-reject-form textarea {
    min-height: 7rem;
    resize: vertical;
}

.service-type-form {
    gap: 10px;
}

.service-type-form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 10px;
    margin-top: 0;
    align-items: end;
}

.service-type-inline-grid {
    gap: 8px;
    margin-top: 0;
}

.grouped-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.grouped-field legend {
    margin-bottom: 7px;
    padding: 0;
    color: #344054;
    font-size: 0.88rem;
    font-weight: 800;
}

.paired-fields {
    display: grid;
    gap: 8px;
}

.input-suffix {
    position: relative;
    display: block;
    min-width: 0;
}

.input-suffix input {
    padding-right: 4.6rem;
}

.input-suffix span {
    position: absolute;
    top: 50%;
    right: 0.72rem;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    pointer-events: none;
}

.date-pair-fields {
    grid-template-columns: minmax(74px, 0.42fr) minmax(118px, 0.58fr);
}

.offset-pair-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-type-final-row {
    grid-template-columns: minmax(0, 0.48fr) minmax(0, 1fr);
}

.service-type-final-row .check-field {
    min-height: 2.8rem;
    align-self: end;
}

.confirm-backdrop {
    z-index: 160;
}

.confirm-modal {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem 0.9rem;
    width: min(440px, 100%);
    padding: 1rem;
    overflow: visible;
}

.confirm-modal-icon {
    display: inline-grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.65rem;
    background: #fef3c7;
    color: #b45309;
}

.confirm-modal-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.confirm-modal h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.2;
}

.confirm-modal p {
    margin: 0.3rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.confirm-modal .message-actions {
    grid-column: 1 / -1;
}

.notified-confirm-targets {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.6rem;
    padding: 0.75rem;
    border: 1px solid #dbeafe;
    border-radius: 0.7rem;
    background: #f8fafc;
}

.notified-confirm-targets div {
    display: grid;
    gap: 0.2rem;
}

.notified-confirm-targets span {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.notified-confirm-targets strong {
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.notified-confirm-client {
    color: #0f766e;
}

.notified-confirm-service {
    color: #b45309;
}

.modal-card .panel-title-row,
.drawer-head {
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #e2e8f0;
}

.drawer-head {
    position: sticky;
    top: 0;
    z-index: 4;
    margin: 0;
    padding: 1rem 1.15rem;
    border-bottom-color: rgba(15, 118, 110, 0.28);
    background:
        linear-gradient(135deg, rgba(204, 251, 241, 0.96), rgba(239, 246, 255, 0.96)),
        #f0fdfa;
    backdrop-filter: blur(12px);
}

.drawer-head > div {
    min-width: 0;
}

.modal-card .panel-title-row h3,
.drawer-head h3 {
    margin: 0 0 0.15rem;
    font-size: 1.05rem;
    line-height: 1.2;
}

.modal-card .panel-title-row p,
.drawer-head p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.25;
}

.modal-card .eyebrow,
.drawer-head .eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
}

.modal-card .stack-form,
.drawer-panel .stack-form {
    margin-top: 0.75rem;
}

.public-upload-shell {
    min-height: 100vh;
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 2.5rem);
    background:
        linear-gradient(180deg, rgba(240, 253, 250, 0.9), rgba(248, 250, 252, 0.96)),
        #f8fafc;
}

.public-upload-card {
    width: min(960px, 100%);
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.public-upload-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
}

.public-upload-hero h1 {
    margin: 0.2rem 0 0;
    color: #0f172a;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    letter-spacing: 0;
}

.public-upload-hero p {
    margin: 0.25rem 0 0;
    color: #475569;
    font-weight: 800;
}

.public-upload-client {
    display: grid;
    gap: 0.18rem;
    min-width: min(260px, 100%);
    padding: 0.7rem;
    border: 1px solid #ccfbf1;
    border-radius: 0.65rem;
    background: #f0fdfa;
    text-align: right;
}

.public-upload-client span {
    color: #0f766e;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.public-upload-client strong {
    color: #0f172a;
    font-size: 0.94rem;
}

.public-upload-error {
    width: min(520px, 100%);
    align-self: center;
    text-align: center;
}

.public-upload-error h1 {
    margin: 0.5rem 0 0.2rem;
}

.public-upload-error p {
    margin: 0;
    color: #64748b;
    font-weight: 800;
}

.public-upload-mark {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 1000;
}

.public-upload-footer {
    display: grid;
    align-items: center;
    justify-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    text-align: center;
}

.public-upload-success {
    margin: 0;
    padding: 0;
    color: #0f766e;
    font-weight: 900;
}

.public-upload-thanks {
    width: min(620px, 100%);
    align-self: center;
    text-align: center;
}

.public-upload-thanks h1 {
    margin: 0.45rem 0 0.35rem;
    color: #0f172a;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    letter-spacing: 0;
}

.public-upload-thanks p {
    margin: 0 auto 0.75rem;
    max-width: 34rem;
    color: #475569;
    font-weight: 800;
    line-height: 1.45;
}

.public-upload-thanks strong {
    color: #0f766e;
    font-weight: 1000;
}

.public-upload-thanks-mark {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
    border-radius: 0.9rem;
    background: #ccfbf1;
    color: #0f766e;
}

.public-upload-thanks-mark svg {
    width: 1.55rem;
    height: 1.55rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-doc-list {
    display: grid;
    gap: 0.65rem;
}

.public-doc-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    background: #f8fafc;
}

.public-doc-row.status-accepted {
    border-color: #99f6e4;
    background: #f0fdfa;
}

.public-doc-row.status-uploaded {
    border-color: #fde68a;
    background: #fffbeb;
}

.public-doc-row.status-rejected {
    border-color: #fecaca;
    background: #fff7f7;
}

.public-doc-main {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.public-doc-main h4 {
    margin: 0;
    color: #0f172a;
    font-size: 0.98rem;
}

.public-doc-main p {
    margin: 0;
    color: #b91c1c;
    font-size: 0.84rem;
    font-weight: 800;
}

.public-doc-main .file-link {
    width: fit-content;
    max-width: 100%;
}

.public-doc-action {
    display: flex;
    justify-content: flex-end;
    min-width: 190px;
}

.public-upload-button,
.public-additional-upload {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0 0.8rem;
    border: 1px solid #0f766e;
    border-radius: 0.62rem;
    background: #0f766e;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 900;
    overflow: hidden;
}

.public-upload-button input[type="file"],
.public-additional-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.public-doc-locked {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.58rem;
    background: #fff;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 900;
}

.public-additional-upload {
    margin-top: 0.8rem;
    background: #fff;
    color: #0f766e;
}

.drawer-backdrop {
    justify-content: end;
}

.drawer-panel {
    width: min(560px, 100vw);
    height: 100vh;
    overflow: auto;
    background: #fff;
    padding: 0;
    box-shadow: -12px 0 36px rgba(15, 23, 42, 0.16);
}

.drawer-panel .close-button {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    min-height: 2rem;
    border-radius: 0.6rem;
}

.drawer-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 0.85rem 1.15rem 0.65rem;
}

.drawer-meta div {
    border: 1px solid var(--line);
    border-radius: 0.55rem;
    padding: 0.5rem 0.55rem;
    background: #f8fafc;
}

.detail-section {
    display: grid;
    gap: 6px;
    margin: 0.65rem 1.15rem 0;
}

.detail-section h4 {
    margin: 0;
    color: #0f172a;
    font-size: 0.88rem;
    line-height: 1.15;
}

.detail-list,
.detail-file-list {
    display: grid;
    gap: 6px;
}

.detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-list div,
.detail-file-list {
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    padding: 0.46rem 0.55rem;
    background: #f8fafc;
}

.detail-list span,
.detail-file-list span {
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.15;
}

.detail-list strong,
.detail-list a,
.detail-file-list a {
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.detail-note {
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    padding: 0.5rem 0.6rem;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.drawer-panel .secure-field-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.5rem;
    margin-top: 0.55rem;
    padding-top: 0.55rem;
}

.drawer-panel .secure-field-form .message-actions {
    align-items: end;
}

.drawer-panel .detail-file-list .file-link {
    width: 100%;
    padding: 0.42rem 0.5rem;
    border-radius: 0.45rem;
}

.drawer-panel .detail-file-list .file-icon {
    width: 1.55rem;
    height: 1.55rem;
    flex-basis: 1.55rem;
}

.followup-detail-drawer {
    width: min(760px, 100vw);
    background: #ffffff;
}

.followup-detail-drawer .drawer-head h3 {
    max-width: 27rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.followup-detail-drawer .drawer-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0.7rem 1.15rem 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    background: #fff;
}

.followup-detail-drawer .drawer-meta div {
    min-width: 0;
    border: 0;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 0.52rem 0.62rem;
    background: #fff;
}

.followup-detail-drawer .drawer-meta div:last-child {
    border-right: 0;
}

.followup-detail-drawer .drawer-meta span,
.followup-detail-drawer .detail-list span,
.followup-detail-drawer .followup-detail-request-grid span,
.followup-detail-drawer .followup-detail-notes-grid span,
.followup-detail-drawer .followup-detail-file-grid span,
.followup-detail-drawer .followup-detail-history span {
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
    text-transform: uppercase;
}

.followup-detail-drawer .drawer-meta strong,
.followup-detail-drawer .detail-list strong,
.followup-detail-drawer .detail-list a,
.followup-detail-drawer .followup-detail-request-grid strong,
.followup-detail-drawer .followup-detail-notes-grid strong,
.followup-detail-drawer .followup-detail-history strong {
    display: block;
    min-width: 0;
    margin-top: 0.16rem;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.followup-detail-section {
    gap: 0.48rem;
    margin: 0 1.15rem;
    padding: 0.8rem 0 0;
}

.followup-detail-meta + .followup-detail-section {
    margin-top: 0.8rem;
}

.followup-detail-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.followup-detail-section h4::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: #e2e8f0;
}

.followup-detail-drawer .detail-list,
.followup-detail-drawer .followup-detail-request-grid,
.followup-detail-drawer .followup-detail-notes-grid,
.followup-detail-drawer .followup-detail-file-grid,
.followup-detail-drawer .followup-detail-history {
    gap: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    background: #fff;
}

.followup-detail-drawer .detail-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.followup-detail-drawer .followup-detail-request-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.followup-detail-drawer .followup-detail-notes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.followup-detail-drawer .followup-detail-file-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.followup-detail-drawer .detail-list > div,
.followup-detail-drawer .followup-detail-request-grid > div,
.followup-detail-drawer .followup-detail-notes-grid > div,
.followup-detail-drawer .followup-detail-file-grid > div,
.followup-detail-drawer .followup-detail-history > div {
    min-width: 0;
    border: 0;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 0.56rem 0.62rem;
    background: #fff;
}

.followup-detail-drawer .detail-list > div:nth-child(3n),
.followup-detail-drawer .followup-detail-notes-grid > div:nth-child(3n),
.followup-detail-drawer .followup-detail-file-grid > div:nth-child(3n),
.followup-detail-drawer .followup-detail-request-grid > div:nth-child(4n),
.followup-detail-drawer .followup-detail-history > div {
    border-right: 0;
}

.followup-detail-drawer .detail-list > div:nth-child(n + 4) {
    border-top: 1px solid #e2e8f0;
}

.followup-detail-drawer .followup-detail-file-grid .file-link {
    width: 100%;
    margin-top: 0.24rem;
    padding: 0.34rem 0.42rem;
    border-radius: 0.52rem;
    background: #f8fafc;
}

.followup-detail-drawer .followup-detail-file-grid .attachment-link-list {
    margin-top: 0.24rem;
}

.followup-detail-drawer .followup-detail-notes-grid small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.22;
}

.followup-detail-drawer .detail-note {
    border-color: #e2e8f0;
    border-radius: 0.7rem;
    background: #fff;
    font-size: 0.82rem;
}

.detail-action-button {
    min-height: 2rem;
    border: 1px solid transparent;
    border-radius: 0.58rem;
    padding: 0.42rem 0.68rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: none;
}

.detail-action-button.email {
    background: #0f766e;
    border-color: #0f766e;
}

.detail-action-button.whatsapp {
    background: #15803d;
    border-color: #15803d;
}

.detail-action-button.sms {
    background: #155e75;
    border-color: #155e75;
}

.detail-action-button.call {
    background: #4338ca;
    border-color: #4338ca;
}

.detail-action-button.review {
    background: #4f46e5;
    border-color: #4f46e5;
}

.detail-action-button.note {
    background: #334155;
    border-color: #334155;
}

.detail-action-button.approval {
    background: #0f766e;
    border-color: #0f766e;
}

.detail-action-button.extend {
    background: #0369a1;
    border-color: #0369a1;
}

.detail-action-button.resolve {
    background: #be123c;
    border-color: #be123c;
}

.detail-action-button:hover {
    filter: brightness(0.94);
}

.followup-detail-request-grid,
.followup-detail-notes-grid,
.followup-detail-file-grid,
.followup-detail-history {
    display: grid;
    gap: 6px;
}

.followup-detail-request-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.followup-detail-notes-grid,
.followup-detail-file-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.followup-detail-request-grid > div,
.followup-detail-notes-grid > div,
.followup-detail-file-grid > div,
.followup-detail-history > div {
    min-width: 0;
    padding: 0.46rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: #f8fafc;
}

.followup-detail-request-grid span,
.followup-detail-notes-grid span,
.followup-detail-file-grid span,
.followup-detail-history span {
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.15;
}

.followup-detail-request-grid strong,
.followup-detail-notes-grid strong,
.followup-detail-history strong {
    display: block;
    color: #0f172a;
    font-size: 0.86rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.followup-detail-request-grid small,
.followup-detail-notes-grid small {
    display: block;
    margin-top: 0.12rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.15;
}

.followup-detail-actions,
.followup-detail-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.followup-detail-footer {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 0.75rem 0 0;
    padding: 0.55rem 1.15rem;
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.followup-detail-drawer {
    width: min(700px, 100vw);
    background: #f8fafc;
    font-size: 0.92rem;
}

.followup-detail-drawer .drawer-head {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #d7eee9;
    background:
        linear-gradient(135deg, rgba(204, 251, 241, 0.72), rgba(239, 246, 255, 0.86)),
        #f8fafc;
}

.followup-detail-drawer .drawer-head .eyebrow {
    margin-bottom: 0.22rem;
    color: #0f766e;
    font-size: 0.58rem;
    font-weight: 950;
}

.followup-detail-drawer .drawer-head h3 {
    max-width: 30rem;
    margin-bottom: 0.08rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.18;
}

.followup-detail-drawer .drawer-head p {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.15;
}

.followup-detail-drawer .close-button {
    width: 1.85rem;
    min-width: 1.85rem;
    height: 1.85rem;
    min-height: 1.85rem;
    border: 1px solid #fecdd3;
    border-radius: 0.58rem;
    background: #fff1f2;
    color: #be123c;
}

.followup-detail-drawer .drawer-meta {
    margin: 0.62rem 1rem 0;
    border-color: #dbe3ee;
    border-radius: 0.62rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.followup-detail-drawer .drawer-meta div {
    padding: 0.42rem 0.55rem;
}

.followup-detail-drawer .drawer-meta span,
.followup-detail-drawer .detail-list span,
.followup-detail-drawer .followup-detail-request-grid span,
.followup-detail-drawer .followup-detail-notes-grid span,
.followup-detail-drawer .followup-detail-file-grid span,
.followup-detail-drawer .followup-detail-history span {
    color: #64748b;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
}

.followup-detail-drawer .drawer-meta strong,
.followup-detail-drawer .detail-list strong,
.followup-detail-drawer .detail-list a,
.followup-detail-drawer .followup-detail-request-grid strong,
.followup-detail-drawer .followup-detail-notes-grid strong,
.followup-detail-drawer .followup-detail-history strong {
    margin-top: 0.1rem;
    color: #111827;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.18;
}

.followup-detail-drawer .drawer-meta .extended-date-text {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #94a3b8;
}

.followup-detail-drawer .drawer-meta .extended-date-text.is-extended {
    display: inline-flex;
    width: fit-content;
    padding: 0.08rem 0.36rem;
    border: 1px solid #fdba74;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
}

.followup-detail-section {
    gap: 0.38rem;
    margin: 0 1rem;
    padding-top: 0.62rem;
}

.followup-detail-meta + .followup-detail-section {
    margin-top: 0.62rem;
}

.followup-detail-section h4 {
    gap: 0.45rem;
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1;
}

.followup-detail-section h4::after {
    background: #dde6ef;
}

.followup-detail-drawer .detail-list,
.followup-detail-drawer .followup-detail-request-grid,
.followup-detail-drawer .followup-detail-notes-grid,
.followup-detail-drawer .followup-detail-file-grid,
.followup-detail-drawer .followup-detail-history {
    border-color: #dbe3ee;
    border-radius: 0.62rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

.followup-detail-drawer .detail-list > div,
.followup-detail-drawer .followup-detail-request-grid > div,
.followup-detail-drawer .followup-detail-notes-grid > div,
.followup-detail-drawer .followup-detail-file-grid > div,
.followup-detail-drawer .followup-detail-history > div {
    border-color: #e2e8f0;
    padding: 0.42rem 0.55rem;
}

.followup-detail-drawer .followup-assignee-select.detail {
    min-height: 1.9rem;
    margin-top: 0.16rem;
    border-radius: 0.48rem;
    font-size: 0.76rem;
}

.followup-detail-drawer .followup-detail-actions {
    gap: 0.32rem;
    margin-top: 0.06rem;
}

.detail-action-button {
    min-height: 1.72rem;
    border-radius: 0.48rem;
    padding: 0.28rem 0.56rem;
    font-size: 0.72rem;
    font-weight: 900;
}

.detail-action-button.email {
    border-color: #99f6e4;
    background: #ecfdf5;
    color: #0f766e;
}

.detail-action-button.whatsapp {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.detail-action-button.sms {
    border-color: #a5f3fc;
    background: #ecfeff;
    color: #155e75;
}

.detail-action-button.call {
    border-color: #c4b5fd;
    background: #f5f3ff;
    color: #4338ca;
}

.detail-action-button.review {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
}

.detail-action-button.note {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #334155;
}

.detail-action-button.approval {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
}

.detail-action-button.extend {
    border-color: #0369a1;
    background: #0369a1;
    color: #fff;
}

.detail-action-button.resolve {
    border-color: #be123c;
    background: #be123c;
    color: #fff;
}

.detail-action-button:hover {
    filter: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

.followup-detail-drawer .followup-detail-file-grid .field-hint {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 1.45rem;
    margin-top: 0.18rem;
    padding: 0.18rem 0.42rem;
    border: 1px dashed #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.1;
}

.followup-detail-drawer .followup-detail-file-grid .file-link {
    width: fit-content;
    max-width: 100%;
    min-height: 1.7rem;
    margin-top: 0.2rem;
    padding: 0.24rem 0.44rem;
    border: 1px solid #ccfbf1;
    border-radius: 0.48rem;
    background: #f0fdfa;
    color: #0f766e;
    font-size: 0.76rem;
    font-weight: 850;
    text-decoration: none;
}

.followup-detail-drawer .followup-detail-file-grid .attachment-link-list {
    display: grid;
    gap: 0.28rem;
    margin-top: 0.18rem;
}

.followup-detail-drawer .followup-detail-file-grid .attachment-link-row {
    align-items: start;
}

.followup-detail-drawer .followup-detail-notes-grid small {
    margin-top: 0.08rem;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 750;
}

.followup-detail-drawer .approval-status-label {
    color: #b45309;
}

.followup-detail-drawer .approval-status-label.approved {
    color: #0f766e;
}

.followup-detail-drawer .followup-detail-history {
    border-radius: 0.62rem;
}

.followup-detail-drawer .followup-detail-history > div {
    border-right: 0;
    border-top: 1px solid #e2e8f0;
}

.followup-detail-drawer .followup-detail-history > div:first-child {
    border-top: 0;
}

.followup-detail-drawer .detail-note {
    padding: 0.48rem 0.58rem;
    border-color: #dbe3ee;
    border-radius: 0.62rem;
    background: #fff;
    color: #64748b;
    font-size: 0.78rem;
}

.followup-detail-footer {
    margin-top: 0.62rem;
    padding: 0.52rem 1rem;
    border-top-color: #dbe3ee;
    background: rgba(248, 250, 252, 0.94);
}

.detail-file-list .file-link span,
.attachment-link-list .file-link span,
.file-field .file-link span,
.file-preview span {
    display: inline;
}

.detail-file-list .file-link .file-icon,
.attachment-link-list .file-link .file-icon,
.file-field .file-link .file-icon,
.file-preview .file-icon {
    display: inline-grid;
}

.file-pdf .file-icon {
    background: #ffe4e6;
    color: #be123c;
}

.file-doc .file-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.file-sheet .file-icon {
    background: #dcfce7;
    color: #15803d;
}

.file-image .file-icon {
    background: #fef3c7;
    color: #92400e;
}

.timeline-list {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 10px;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    margin-top: 14px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-card {
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    padding: 0.75rem;
    background: #f8fafc;
}

.timeline-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #344054;
    font-size: 0.9rem;
}

.timeline-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.timeline-attachments {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.timeline-attachments a {
    color: #0f766e;
    font-size: 0.86rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    padding: 12px 14px;
    border-radius: 8px;
    background: #ffe4e6;
    color: var(--danger);
}

#blazor-error-ui .reload {
    margin-left: 8px;
    color: inherit;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .client-compact-card {
        grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    }

    .client-compact-services,
    .client-compact-end {
        grid-column: 1 / -1;
    }

    .client-compact-end {
        justify-content: space-between;
    }

    .client-compact-files {
        justify-content: flex-start;
    }

    .client-form-compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-section,
    .tax-section {
        grid-column: span 1;
        grid-row: auto;
    }

    .client-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .desktop-only {
        display: none;
    }

    .login-layout,
    .profile-account-panel,
    .settings-layout,
    .client-form-compact-grid,
    .client-details-grid,
    .filter-grid,
    .client-filter-grid,
    .followup-filter-grid,
    .invoice-filter-grid,
    .ticket-filter-grid,
    .history-filter-grid,
    .workflow-filter-grid,
    .form-grid,
    .drawer-meta {
        grid-template-columns: 1fr;
    }

    .login-shell {
        display: block;
        min-height: 100dvh;
        padding: 1rem;
    }

    .login-layout {
        width: min(36rem, 100%);
        margin: 0 auto;
        gap: 0.85rem;
    }

    .login-card {
        order: -1;
        min-height: 0;
        padding: 1.2rem;
    }

    .login-card-brand {
        margin-bottom: 1.45rem;
    }

    .login-hero {
        min-height: 0;
        padding: 1.2rem;
        border-radius: 1.1rem;
    }

    .login-hero-content {
        margin-top: 2rem;
    }

    .login-hero h1 {
        font-size: 2.15rem;
    }

    .login-dashboard-preview {
        margin-top: 1.25rem;
    }

    .login-hero-stats {
        grid-template-columns: 1fr;
    }

    .company-section,
    .tax-section {
        grid-column: span 1;
        grid-row: auto;
    }

    .client-details-grid .span-2 {
        grid-column: span 1;
    }

    .company-section .client-details-grid,
    .tax-section .client-details-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .company-section .compact-field,
    .company-section .medium-field,
    .company-section .span-2 {
        grid-column: span 1;
        max-width: none;
    }

    .client-form-section-head,
    .secure-auth-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .drawer-panel .secure-field-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .followup-detail-drawer .drawer-meta,
    .followup-detail-drawer .detail-list,
    .followup-detail-drawer .followup-detail-request-grid,
    .followup-detail-drawer .followup-detail-notes-grid,
    .followup-detail-drawer .followup-detail-file-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .followup-detail-drawer .drawer-meta div,
    .followup-detail-drawer .detail-list > div,
    .followup-detail-drawer .followup-detail-request-grid > div,
    .followup-detail-drawer .followup-detail-notes-grid > div,
    .followup-detail-drawer .followup-detail-file-grid > div {
        border-right: 0;
        border-top: 1px solid #e2e8f0;
    }

    .followup-detail-drawer .drawer-meta div:first-child,
    .followup-detail-drawer .detail-list > div:first-child,
    .followup-detail-drawer .followup-detail-request-grid > div:first-child,
    .followup-detail-drawer .followup-detail-notes-grid > div:first-child,
    .followup-detail-drawer .followup-detail-file-grid > div:first-child {
        border-top: 0;
    }

    .followup-detail-request-grid,
    .followup-detail-notes-grid,
    .followup-detail-file-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-hero {
        grid-template-columns: 1fr;
    }

    .profile-hero-meta {
        width: 100%;
    }

    .profile-card-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .profile-card-head > .pill {
        grid-column: 1 / -1;
        width: fit-content;
    }

    .account-password-card {
        border-right: 0;
        border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    }

    .profile-password-form {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .dashboard-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 0.85rem;
    }

    .dashboard-hero h3 {
        font-size: 1.16rem;
    }

    .dashboard-hero-actions {
        justify-content: flex-start;
    }

    .dashboard-metric-grid,
    .dashboard-work-grid {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .dashboard-metric-card {
        min-height: 0;
        padding: 0.75rem;
    }

    .dashboard-metric-card strong {
        font-size: 1.7rem;
    }

    .dashboard-panel-head,
    .dashboard-focus-item {
        grid-template-columns: 1fr;
    }

    .dashboard-panel-head .btn {
        width: fit-content;
    }

    .dashboard-focus-marker {
        width: 2.1rem;
        height: 0.45rem;
    }

    .stat-card {
        padding: 0.65rem 0.75rem;
        min-height: 5rem;
        border-top-width: 3px;
    }

    .stat-card span {
        font-size: 0.72rem;
        line-height: 1.2;
    }

    .stat-card strong {
        margin-top: 0.45rem;
        font-size: 1.55rem;
        line-height: 1;
    }

    .app-shell.admin-shell {
        min-height: 100dvh;
        padding-bottom: 5.35rem;
    }

    .app-version {
        right: 0.85rem;
        bottom: 5.25rem;
        color: rgba(100, 116, 139, 0.66);
        font-size: 0.58rem;
    }

    .dashboard-layout {
        display: grid;
        width: 100%;
        padding: 0 0.65rem 0.65rem;
        gap: 0.65rem;
    }

    .topbar-card {
        position: sticky;
        top: 0;
        display: flex;
        gap: 0.5rem;
        padding: 0.55rem;
        border-radius: 0 0 0.85rem 0.85rem;
    }

    .topbar-card::before {
        inset: -0.65rem -0.65rem auto;
        height: 0.65rem;
    }

    .topbar-brand {
        min-width: 0;
        flex: 1 1 auto;
        gap: 0.55rem;
    }

    .topbar-brand .eyebrow {
        margin: 0;
        font-size: 0.6rem;
        line-height: 1;
    }

    .topbar-brand h1 {
        margin-top: 0.12rem;
        font-size: 0.92rem;
        line-height: 1;
    }

    .brand-mark {
        width: 1.95rem;
        height: 1.95rem;
        border-radius: 0.62rem;
        font-size: 0.9rem;
    }

    .top-nav-list {
        display: none;
    }

    .bottom-nav-list {
        position: fixed;
        left: 0.6rem;
        right: 0.6rem;
        bottom: 0.6rem;
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: center;
        gap: 0.24rem;
        min-height: 4.35rem;
        overflow: visible;
        padding: 0.36rem;
        border: 1px solid rgba(15, 23, 42, 0.12);
        border-radius: 1.15rem;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
        backdrop-filter: blur(16px);
    }

    .top-nav-link {
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 0.2rem;
        width: 100%;
        min-width: 0;
        min-height: 3.45rem;
        border-radius: 0.9rem;
        padding: 0.4rem 0.16rem;
        font-size: 0.68rem;
        line-height: 1.05;
        white-space: normal;
        text-align: center;
    }

    .bottom-nav-list .top-nav-group {
        position: static;
        width: 100%;
        min-width: 0;
    }

    .bottom-nav-list .top-nav-group summary {
        list-style: none;
    }

    .top-nav-link span:last-child {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bottom-nav-list .top-nav-link.active,
    .bottom-nav-list .top-nav-link:hover,
    .bottom-nav-list .top-nav-group[open] > .top-nav-link,
    .bottom-nav-list .top-nav-group:has(.top-nav-dropdown-link.active) > .top-nav-link {
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }

    .bottom-nav-list .top-nav-ticket.active,
    .bottom-nav-list .top-nav-ticket:hover {
        border-color: rgba(251, 113, 133, 0.6);
        background: rgba(190, 18, 60, 0.96);
        box-shadow: 0 10px 22px rgba(190, 18, 60, 0.24);
    }

    .bottom-nav-list .top-nav-dropdown {
        position: fixed;
        top: auto;
        right: 0.85rem;
        bottom: 5.35rem;
        left: 0.85rem;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.42rem;
        width: auto;
        padding: 0.55rem;
        border-radius: 1rem;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.28);
    }

    .bottom-nav-list .top-nav-dropdown-link {
        min-height: 3.25rem;
        padding: 0.58rem 0.65rem;
        border-radius: 0.72rem;
    }

    .bottom-nav-list .top-nav-dropdown-link span {
        font-size: 0.84rem;
    }

    .bottom-nav-list .top-nav-dropdown-link small {
        font-size: 0.7rem;
        line-height: 1.15;
    }

    .top-nav-icon {
        width: 1.25rem;
        height: 1.25rem;
        flex-basis: 1.25rem;
    }

    .top-nav-icon svg {
        width: 1.15rem;
        height: 1.15rem;
    }

    .topbar-user {
        min-width: 0;
        flex: 0 0 auto;
        gap: 0.35rem;
    }

    .notification-button {
        width: 2rem;
        height: 2rem;
        border-radius: 0.68rem;
    }

    .notification-button svg {
        width: 1.05rem;
        height: 1.05rem;
    }

    .notification-dropdown {
        position: fixed;
        top: 3.7rem;
        right: 0.65rem;
        left: 0.65rem;
        width: auto;
        max-height: calc(100vh - 8rem);
    }

    .topbar-user .profile-link {
        display: none;
    }

    .logout-button {
        width: 2rem;
        min-width: 2rem;
        min-height: 2rem;
        border-radius: 0.68rem;
    }

    .content-shell {
        gap: 0.65rem;
    }

    .main-content,
    .panel-card,
    .filter-card {
        border-radius: 0.85rem;
    }

    .panel-title-row {
        align-items: flex-start;
    }

    .panel-card > .panel-title-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .panel-card > .panel-title-row > div:first-child {
        flex: 0 0 auto;
        min-width: 0;
    }

    .followup-worklist-title {
        width: 100%;
        justify-content: space-between;
    }

    .followup-worklist-title h3 {
        min-width: 0;
    }

    .client-list-tools {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        gap: 0.45rem;
    }

    .followup-severity-tabs {
        display: flex;
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .client-list-tools > .view-toggle {
        flex: 0 0 auto;
    }

    .followup-severity-tabs::-webkit-scrollbar {
        display: none;
    }

    .followup-severity-tab {
        flex: 0 0 auto;
        min-height: 2rem;
        padding: 0.3rem 0.58rem;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .followup-severity-tab span {
        display: block;
        margin: 0.12rem 0 0;
        text-align: center;
        font-size: 0.66rem;
        line-height: 1;
    }

    .client-card-grid {
        grid-template-columns: 1fr;
    }

    .client-compact-card,
    .client-compact-contact {
        grid-template-columns: 1fr;
    }

    .client-compact-end {
        align-items: flex-start;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .followup-row-main,
    .followup-card-body,
    .followup-summary-grid {
        grid-template-columns: 1fr;
    }

    .followup-card-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .followup-card-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .followup-client-copy {
        display: grid;
        gap: 0.08rem;
    }

    .followup-client-block h4 {
        white-space: normal;
    }

    .followup-assignee-select.compact {
        min-width: 0;
        width: min(100%, 12rem);
    }

    .followup-resolve-button {
        width: 100%;
    }

    .followup-action-grid {
        grid-template-columns: 1fr;
        overflow-x: visible;
    }

    .followup-action-panel {
        min-width: 0;
    }

    .main-content {
        padding: 0.75rem;
    }

    .settings-menu {
        display: flex;
        overflow-x: auto;
        padding: 0.45rem;
    }

    .settings-menu-item {
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
    }

    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        border: 1px solid var(--line);
        border-radius: 8px;
        margin-bottom: 10px;
        padding: 8px;
    }

    .data-table td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        border: 0;
        padding: 8px;
    }

    .data-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-weight: 800;
    }

    .client-service-table,
    .workflow-table {
        display: table;
        width: max-content;
    }

    .ticket-table {
        min-width: 0;
    }

    .client-service-table thead,
    .workflow-table thead {
        display: table-header-group;
    }

    .client-service-table tbody,
    .workflow-table tbody {
        display: table-row-group;
    }

    .client-service-table tr,
    .workflow-table tr {
        display: table-row;
        width: auto;
        border: 0;
        border-radius: 0;
        margin-bottom: 0;
        padding: 0;
    }

    .client-service-table td,
    .workflow-table td {
        display: table-cell;
        width: auto;
        border-bottom: 1px solid var(--line);
        padding: 10px 12px;
    }

    .client-service-table td::before,
    .workflow-table td::before {
        content: none;
    }

    .service-req-doc-row,
    .req-doc-review-row,
    .public-doc-row,
    .public-upload-hero {
        grid-template-columns: 1fr;
    }

    .public-upload-hero {
        display: grid;
        align-items: start;
    }

    .public-upload-client {
        text-align: left;
    }

    .public-doc-action {
        justify-content: stretch;
        min-width: 0;
    }

    .public-upload-button,
    .public-additional-upload,
    .public-doc-locked {
        width: 100%;
    }

    .req-doc-review-actions {
        justify-content: stretch;
    }

    .req-doc-review-actions .btn {
        flex: 1 1 0;
    }
}
