:root {
    --bg: #0b1220;
    --bg-soft: #111a2e;
    --surface: rgba(17, 26, 46, 0.88);
    --surface-2: rgba(22, 33, 58, 0.92);
    --border: rgba(126, 145, 177, 0.18);
    --text: #e8eefc;
    --text-soft: #aab8d3;
    --primary: #3b82f6;
    --primary-2: #06b6d4;
    --success: #10b981;
    --warning: #fbbf24;
    --danger: #ef4444;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    --radius: 18px;
    --navbar-height: 48px;
    --navbar-shell-max: 3050px;
    --navbar-bg: linear-gradient(135deg, rgba(8, 20, 40, 0.76), rgba(10, 34, 62, 0.68) 52%, rgba(8, 64, 76, 0.62));
    --navbar-border: rgba(255, 255, 255, 0.12);
    --navbar-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
    --navbar-blur: 106px;
    --navbar-radius: 10px;
    --bg-primary: var(--bg);
    --bg-surface: var(--surface);
    --bg-surface-strong: var(--surface-2);
    --text-primary: var(--text);
    --text-secondary: var(--text-soft);
    --border-color: var(--border);
    --accent-color: var(--primary);
    --accent-color-soft: rgba(59, 130, 246, 0.18);
    --divider-color: rgba(148, 163, 184, 0.14);
    --control-bg: rgba(255, 255, 255, 0.06);
    --control-bg-hover: rgba(255, 255, 255, 0.12);
    --control-border: rgba(255, 255, 255, 0.12);
    --control-text: #eef4ff;
    --theme-transition: background-color .24s ease, background .24s ease, color .24s ease, border-color .24s ease, box-shadow .24s ease, fill .24s ease, stroke .24s ease;
}

.process-card-detail {
    --card-bg: rgba(8, 13, 23, .86);
    --card-bg-strong: rgba(13, 20, 34, .94);
    --card-border: rgba(148, 163, 184, .14);
    --card-text: #f8fafc;
    --card-muted: #94a3b8;
    --card-accent: #14b8a6;
    --card-accent-2: #8b5cf6;
    --card-danger: #f43f5e;
    --process-content-panel-height: 360px;
    display: grid;
    gap: 18px;
}

.process-card-hero,
.process-card-panel {
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .88));
    box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
}

.process-card-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.process-card-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(20, 184, 166, .14), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(139, 92, 246, .22), transparent 28%);
}

.process-card-hero-copy,
.process-card-hero-side {
    position: relative;
    z-index: 1;
}

.process-card-hero h1 {
    max-width: 980px;
    margin: 4px 0 12px;
    color: var(--card-text);
    font-size: clamp(1.55rem, 3vw, 2.7rem);
    font-weight: 850;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.process-card-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.process-card-hero-meta span,
.process-state-pill,
.process-priority-dot,
.process-deadline-alert,
.process-result-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #dbeafe;
    background: rgba(148, 163, 184, .12);
    border: 1px solid rgba(148, 163, 184, .14);
    font-size: .78rem;
    font-weight: 800;
}

.process-result-link {
    color: #bfdbfe;
    text-decoration: none;
}

.process-result-link:hover {
    color: #ffffff;
    border-color: rgba(96, 165, 250, .42);
}

.process-state-pill {
    color: #ccfbf1;
    background: rgba(20, 184, 166, .16);
    border-color: rgba(20, 184, 166, .24);
}

.process-priority-dot.priority-alta {
    color: #fef3c7;
    background: rgba(245, 158, 11, .18);
    border-color: rgba(245, 158, 11, .28);
}

.process-priority-dot.priority-media {
    color: #ddd6fe;
    background: rgba(139, 92, 246, .18);
    border-color: rgba(139, 92, 246, .26);
}

.process-priority-dot.priority-baixa {
    color: #bbf7d0;
    background: rgba(34, 197, 94, .16);
    border-color: rgba(34, 197, 94, .24);
}

.process-deadline-alert {
    color: #ffe4e6 !important;
    background: rgba(244, 63, 94, .2) !important;
    border-color: rgba(244, 63, 94, .34) !important;
    box-shadow: 0 0 22px rgba(244, 63, 94, .16);
}

.process-card-hero-side {
    display: flex;
    align-items: center;
    gap: 16px;
}

.process-card-owner {
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(15, 23, 42, .56);
    border: 1px solid rgba(148, 163, 184, .14);
}

.process-card-owner > span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #f8fafc;
    background: linear-gradient(135deg, #14b8a6, #8b5cf6);
    font-size: .78rem;
    font-weight: 900;
}

.process-card-owner small,
.process-card-owner strong {
    display: block;
}

.process-card-owner small {
    color: var(--card-muted);
    font-size: .74rem;
}

.process-card-owner strong {
    max-width: 180px;
    color: var(--card-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.process-card-progress-ring {
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
    display: grid;
    place-content: center;
    text-align: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #0b1120 58%, transparent 59%),
        conic-gradient(var(--card-accent) calc(var(--progress) * 1%), rgba(148, 163, 184, .16) 0);
}

.process-card-progress-ring strong {
    color: var(--card-text);
    font-size: 1.35rem;
    line-height: 1;
}

.process-card-progress-ring span {
    color: var(--card-muted);
    font-size: .72rem;
    font-weight: 800;
}

.process-card-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 18px;
    align-items: start;
}

.process-card-main,
.process-card-sidebar {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.process-card-sidebar {
    align-self: stretch;
}

.process-card-panel {
    padding: 16px;
}

.process-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.process-panel-title span {
    color: var(--card-accent);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.process-panel-title h2 {
    margin: 2px 0 0;
    color: var(--card-text);
    font-size: 1.05rem;
    font-weight: 850;
}

.process-unsaved-indicator {
    transform: translateY(-4px);
    opacity: 0;
    pointer-events: none;
    border-radius: 999px;
    padding: 7px 10px;
    color: #fef3c7;
    background: rgba(245, 158, 11, .14);
    border: 1px solid rgba(245, 158, 11, .26);
    font-size: .74rem;
    font-weight: 850;
    transition: opacity .2s ease, transform .2s ease;
}

.process-unsaved-indicator.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.process-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.process-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.process-field-wide {
    grid-column: span 2;
}

.process-field-full {
    grid-column: 1 / -1;
}

.process-field label,
.process-upload-box label {
    color: #cbd5e1;
    font-size: .78rem;
    font-weight: 850;
}

.process-card-detail .process-smart-input {
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, .16) !important;
    background: rgba(2, 6, 23, .44) !important;
    color: #f8fafc !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.process-card-detail textarea.process-smart-input {
    resize: vertical;
    min-height: 112px;
}

.process-card-detail .process-smart-input::placeholder {
    color: rgba(148, 163, 184, .8);
}

.process-card-detail .process-smart-input:focus {
    border-color: rgba(20, 184, 166, .58) !important;
    background: rgba(8, 13, 23, .82) !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .12), 0 10px 26px rgba(0, 0, 0, .18) !important;
}

.process-field.is-active label {
    color: #99f6e4;
}

.process-card-actions,
.process-inline-add,
.process-comment-form,
.process-upload-box,
.process-attachment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.process-card-actions {
    flex-wrap: wrap;
    margin-top: 18px;
}

.process-btn,
.process-icon-action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 9px 13px;
    color: #f8fafc;
    font-size: .82rem;
    font-weight: 850;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.process-btn:hover,
.process-icon-action:hover {
    transform: translateY(-1px);
    color: #ffffff;
}

.process-btn-primary {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    box-shadow: 0 12px 28px rgba(20, 184, 166, .2);
}

.process-btn-muted {
    background: rgba(148, 163, 184, .12);
    border-color: rgba(148, 163, 184, .16);
}

.process-btn-danger {
    background: linear-gradient(135deg, #be123c, #f43f5e);
    box-shadow: 0 12px 28px rgba(244, 63, 94, .18);
}

.process-icon-action {
    min-height: 32px;
    padding: 7px 10px;
    background: rgba(148, 163, 184, .09);
    border-color: rgba(148, 163, 184, .13);
    color: #cbd5e1;
    font-size: .74rem;
}

.process-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.process-card-pair {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.process-result-panel {
    padding: 16px;
}

.process-result-panel .process-panel-title {
    margin-bottom: 16px;
}

.process-result-panel .process-panel-title h2 {
    font-size: 1.05rem;
}

.process-card-grid > .process-card-panel,
.process-card-pair > .process-card-panel {
    min-height: 0;
}

.process-card-grid > .process-card-panel,
.process-card-pair > .process-card-panel {
    display: flex;
    flex-direction: column;
}

.process-content-panel {
    height: var(--process-content-panel-height);
    min-height: var(--process-content-panel-height) !important;
    max-height: var(--process-content-panel-height);
    overflow: hidden;
}

.process-content-panel .process-panel-title,
.process-content-panel > form,
.process-content-panel > .alert {
    flex: 0 0 auto;
}

.process-content-panel .process-autosize {
    max-height: 140px;
    overflow-y: auto;
}

.process-mini-progress {
    width: 293px;
    display: grid;
    gap: 6px;
}

.process-mini-progress::before {
    content: "";
}

.process-mini-progress {
    position: relative;
    height: 30px;
}

.process-mini-progress > span {
    position: absolute;
    left: 0;
    top: 5px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #14b8a6, #8b5cf6);
}

.process-mini-progress::after {
    content: "";
    position: absolute;
    inset: 5px 0 auto 0;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .16);
    z-index: -1;
}

.process-mini-progress b {
    position: absolute;
    right: 0;
    bottom: 0;
    color: var(--card-muted);
    font-size: .72rem;
}

.process-inline-add {
    margin-bottom: 14px;
}

.process-inline-add input {
    flex: 1;
}

.process-result-link-list,
.process-checklist-list,
.process-comment-list,
.process-attachment-list {
    display: grid;
    flex: 1 1 auto;
    min-height: 4rem;
    gap: 10px;
    overflow-y: auto;
    padding-right: 4px;
    align-content: start;
    scrollbar-gutter: stable;
}

.process-content-panel .process-empty-state {
    min-height: 100%;
    display: grid;
    place-items: center;
}

.process-history-list {
    display: grid;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.process-check-item {
    --delay: 0ms;
    opacity: 0;
    transform: translateY(6px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 8px;
    background: rgba(15, 23, 42, .54);
}

.process-check-item.is-mounted {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .24s ease var(--delay), transform .24s ease var(--delay), border-color .18s ease, background .18s ease;
}

.process-check-item:hover {
    border-color: rgba(20, 184, 166, .24);
    background: rgba(15, 23, 42, .78);
}

.process-check-item form {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.process-check-item span {
    min-width: 0;
    color: #e2e8f0;
    overflow-wrap: anywhere;
}

.process-check-item.is-done span {
    color: #94a3b8;
    text-decoration: line-through;
}

.process-check-toggle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(2, 6, 23, .34);
    position: relative;
}

.process-check-toggle::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: transparent;
    transition: background .18s ease, transform .18s ease;
}

.process-check-item.is-done .process-check-toggle {
    border-color: rgba(20, 184, 166, .46);
    background: rgba(20, 184, 166, .14);
}

.process-check-item.is-done .process-check-toggle::after {
    background: #14b8a6;
    transform: scale(1.12);
}

.process-comment-form {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 14px;
}

.process-comment-form textarea {
    width: 100%;
}

.process-comment-card {
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 8px;
    min-height: 70px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, .48);
}

.process-comment-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 7px;
}

.process-comment-head strong {
    color: #f8fafc;
}

.process-comment-head span {
    color: var(--card-muted);
    font-size: .76rem;
}

.process-comment-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.process-comment-meta form {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.process-comment-meta .process-icon-action {
    min-height: 28px;
    padding: 5px 8px;
    font-size: .7rem;
}

.process-comment-card p,
.process-history-item p {
    margin: 0;
    color: #cbd5e1;
    white-space: pre-wrap;
}

.process-comment-card a,
.process-history-item a {
    color: #93c5fd;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.process-comment-card a:hover,
.process-history-item a:hover {
    color: #dbeafe;
}

.process-link-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.process-link-input .form-control {
    min-width: 0;
}

.process-link-input .process-btn {
    flex: 0 0 auto;
    min-height: 42px;
}

.process-link-add {
    display: grid;
    grid-template-columns: minmax(110px, .7fr) minmax(160px, 1.3fr) auto;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 8px;
    background: rgba(15, 23, 42, .32);
}

.process-link-add .process-smart-input {
    min-height: 34px;
    padding: 6px 9px;
    font-size: .82rem;
}

.process-link-add .process-btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: .78rem;
    white-space: nowrap;
}

.process-link-title-action {
    min-height: 34px;
    padding: 6px 12px;
    font-size: .78rem;
    white-space: nowrap;
}

.process-result-link-list {
    gap: 6px;
}

.process-result-link-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1px 8px;
    align-items: center;
    min-height: 64px;
    padding: 6px 8px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 8px;
    background: rgba(15, 23, 42, .42);
}

.process-result-link-item a {
    color: #bfdbfe;
    font-weight: 900;
    font-size: .84rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.process-result-link-item small {
    grid-column: 1 / -1;
    color: var(--card-muted);
    font-size: .72rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.process-result-link-item form {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.process-result-link-item .process-icon-action {
    min-height: 28px;
    padding: 5px 8px;
    font-size: .7rem;
}

.process-upload-box {
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 10px;
    border: 1px dashed rgba(20, 184, 166, .28);
    border-radius: 8px;
    background: rgba(20, 184, 166, .06);
}

.process-upload-box > div {
    flex: 1 1 260px;
    display: grid;
    gap: 7px;
}

.process-upload-box .process-btn {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
}

.process-upload-box small {
    color: var(--card-muted);
}

.process-attachment-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 70px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 8px;
    background: rgba(15, 23, 42, .48);
}

.process-attachment-thumb,
.process-attachment-icon {
    width: 58px;
    height: 44px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(148, 163, 184, .12);
}

.process-attachment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-attachment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ccfbf1;
    font-size: .78rem;
    font-weight: 900;
}

.process-attachment-info {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.process-attachment-info strong {
    color: #f8fafc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.process-attachment-info span {
    color: var(--card-muted);
    font-size: .76rem;
}

.process-attachment-actions form {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.process-attachment-actions {
    gap: 8px;
}

.process-attachment-actions .process-btn,
.process-attachment-actions .process-icon-action {
    min-height: 32px;
    padding: 7px 10px;
}

.process-sticky-panel {
    position: sticky;
    top: calc(var(--navbar-height) + 18px);
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.process-history-list {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

.process-history-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 8px;
    background: rgba(15, 23, 42, .48);
}

.process-history-delete-form {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.process-trash-action {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 7px;
    background: rgba(148, 163, 184, .08);
    color: #cbd5e1;
}

.process-trash-action::before,
.process-trash-action::after,
.process-trash-action span {
    content: "";
    display: block;
    position: absolute;
}

.process-trash-action {
    position: relative;
}

.process-trash-action::before {
    width: 11px;
    height: 2px;
    top: 7px;
    border-radius: 999px;
    background: currentColor;
}

.process-trash-action::after {
    width: 9px;
    height: 10px;
    top: 10px;
    border: 1.6px solid currentColor;
    border-top: 0;
    border-radius: 0 0 2px 2px;
}

.process-trash-action span {
    width: 5px;
    height: 1.6px;
    top: 5px;
    border-radius: 999px;
    background: currentColor;
}

.process-trash-action:hover,
.process-trash-action:focus {
    color: #ffffff;
    border-color: rgba(244, 63, 94, .35);
    background: rgba(244, 63, 94, .14);
}

.process-history-dot {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: #14b8a6;
    box-shadow: 0 0 0 5px rgba(20, 184, 166, .12);
}

.process-history-item strong {
    display: block;
    color: #f8fafc;
}

.process-history-item small {
    display: block;
    margin: 3px 0 7px;
    color: var(--card-muted);
}

.process-empty-state {
    border: 1px dashed rgba(148, 163, 184, .18);
    border-radius: 8px;
    padding: 18px;
    color: var(--card-muted);
    text-align: center;
    background: rgba(15, 23, 42, .34);
}

body[data-theme="light"] .process-card-detail {
    --card-bg: rgba(255, 255, 255, .92);
    --card-bg-strong: rgba(248, 250, 252, .98);
    --card-border: rgba(15, 23, 42, .12);
    --card-text: #0f172a;
    --card-muted: #64748b;
}

body[data-theme="light"] .process-card-hero,
body[data-theme="light"] .process-card-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(241, 245, 249, .94));
    border-color: var(--card-border);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .08);
}

body.app-body.process-card-edit-body[data-theme="light"] {
    background: #f4f7fb;
}

body.app-body.process-card-edit-body[data-theme="light"] .process-card-hero,
body.app-body.process-card-edit-body[data-theme="light"] .process-card-panel {
    background: #ffffff;
    box-shadow: none;
}

body.app-body.process-card-edit-body[data-theme="light"] .process-card-hero::before {
    background: none;
}

body[data-theme="light"] .process-card-owner,
body[data-theme="light"] .process-check-item,
body[data-theme="light"] .process-comment-card,
body[data-theme="light"] .process-attachment-card,
body[data-theme="light"] .process-link-add,
body[data-theme="light"] .process-result-link-item,
body[data-theme="light"] .process-history-item,
body[data-theme="light"] .process-empty-state {
    background: rgba(255, 255, 255, .72);
    border-color: rgba(15, 23, 42, .1);
}

body[data-theme="light"] .process-link-add,
body[data-theme="light"] .process-result-link-item {
    box-shadow: none;
}

body[data-theme="light"] .process-result-link-item a {
    color: #2f63a8;
}

body[data-theme="light"] .process-result-link-item small {
    color: #64748b;
}

body[data-theme="light"] .process-card-detail .process-icon-action,
body[data-theme="light"] .process-card-detail .process-btn-danger,
body[data-theme="light"] .process-card-detail .process-trash-action {
    color: #111827 !important;
    background: linear-gradient(180deg, #ffffff, #edf3f9) !important;
    border-color: rgba(67, 88, 118, 0.2) !important;
    box-shadow: 0 8px 18px rgba(39, 56, 86, 0.08) !important;
}

body[data-theme="light"] .process-card-detail .process-icon-action:hover,
body[data-theme="light"] .process-card-detail .process-icon-action:focus,
body[data-theme="light"] .process-card-detail .process-btn-danger:hover,
body[data-theme="light"] .process-card-detail .process-btn-danger:focus,
body[data-theme="light"] .process-card-detail .process-trash-action:hover,
body[data-theme="light"] .process-card-detail .process-trash-action:focus {
    color: #111827 !important;
    background: linear-gradient(180deg, #f4f7fb, #e1ebf5) !important;
    border-color: rgba(67, 88, 118, 0.3) !important;
}

body[data-theme="light"] .process-card-detail .process-smart-input {
    background: rgba(255, 255, 255, .86) !important;
    border-color: rgba(15, 23, 42, .13) !important;
    color: #0f172a !important;
}

body[data-theme="light"] .process-field label,
body[data-theme="light"] .process-upload-box label,
body[data-theme="light"] .process-check-item span,
body[data-theme="light"] .process-comment-head strong,
body[data-theme="light"] .process-comment-card p,
body[data-theme="light"] .process-history-item p,
body[data-theme="light"] .process-attachment-info strong {
    color: #0f172a;
}

body[data-theme="light"] .process-card-progress-ring {
    background:
        radial-gradient(circle at center, #f8fafc 58%, transparent 59%),
        conic-gradient(var(--card-accent) calc(var(--progress) * 1%), rgba(148, 163, 184, .18) 0);
}

body[data-theme="light"] .process-card-hero-meta span,
body[data-theme="light"] .process-state-pill,
body[data-theme="light"] .process-result-link {
    color: #1f4f46 !important;
    background: rgba(20, 184, 166, 0.14) !important;
    border-color: rgba(13, 148, 136, 0.26) !important;
}

body[data-theme="light"] .process-priority-dot.priority-alta {
    color: #7c3f00 !important;
    background: rgba(245, 158, 11, 0.22) !important;
    border-color: rgba(217, 119, 6, 0.34) !important;
}

body[data-theme="light"] .process-priority-dot.priority-media {
    color: #4c1d95 !important;
    background: rgba(139, 92, 246, 0.18) !important;
    border-color: rgba(124, 58, 237, 0.26) !important;
}

body[data-theme="light"] .process-priority-dot.priority-baixa {
    color: #166534 !important;
    background: rgba(34, 197, 94, 0.16) !important;
    border-color: rgba(22, 163, 74, 0.24) !important;
}

body[data-theme="light"] .process-deadline-alert {
    color: #9f1239 !important;
    background: rgba(244, 63, 94, 0.16) !important;
    border-color: rgba(225, 29, 72, 0.30) !important;
}

body[data-theme="light"] .process-card-detail .process-btn-muted {
    color: #2d3a4d !important;
    background: linear-gradient(180deg, #ffffff, #edf3f9) !important;
    border-color: rgba(67, 88, 118, 0.20) !important;
    box-shadow: 0 8px 18px rgba(39, 56, 86, 0.08) !important;
}

body[data-theme="light"] .process-card-detail .process-btn-muted:hover,
body[data-theme="light"] .process-card-detail .process-btn-muted:focus {
    color: #1f3045 !important;
    background: linear-gradient(180deg, #f4f7fb, #e1ebf5) !important;
    border-color: rgba(67, 88, 118, 0.30) !important;
}

@media (max-width: 1200px) {
    .process-card-layout {
        grid-template-columns: 1fr;
    }

    .process-sticky-panel {
        position: static;
        height: auto;
        min-height: 0;
    }
}

@media (max-width: 860px) {
    .process-card-hero,
    .process-card-hero-side,
    .process-upload-box,
    .process-card-actions,
    .process-inline-add {
        align-items: stretch;
        flex-direction: column;
    }

    .process-card-hero-side {
        width: 100%;
    }

    .process-card-owner {
        min-width: 0;
    }

    .process-form-grid,
    .process-card-grid,
    .process-card-pair {
        grid-template-columns: 1fr;
    }

    .process-field-wide,
    .process-field-full {
        grid-column: auto;
    }

    .process-attachment-card {
        grid-template-columns: 1fr;
    }

    .process-attachment-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    html,
    body,
    .app-body,
    .app-main-shell,
    .app-main,
    .main-content {
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .process-card-detail {
        --process-content-panel-height: 420px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        gap: 14px;
        margin-top: -2.35rem;
    }

    .process-card-detail *,
    .process-card-detail *::before,
    .process-card-detail *::after {
        box-sizing: border-box;
        max-width: 100%;
    }

    .process-card-hero,
    .process-card-panel {
        width: 100%;
        min-width: 0;
        border-radius: 8px;
    }

    .process-card-hero {
        gap: 14px;
        padding: 16px;
    }

    .process-card-hero-copy,
    .process-card-hero-side,
    .process-card-main,
    .process-card-sidebar,
    .process-card-layout,
    .process-card-form,
    .process-card-grid,
    .process-card-pair,
    .process-field {
        width: 100%;
        min-width: 0;
    }

    .process-card-hero h1 {
        font-size: 1.45rem;
        line-height: 1.12;
    }

    .process-card-hero-meta {
        width: 100%;
        min-width: 0;
    }

    .process-card-hero-meta span,
    .process-state-pill,
    .process-priority-dot,
    .process-deadline-alert,
    .process-result-link {
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: left;
    }

    .process-card-owner {
        width: 100%;
    }

    .process-card-owner > div {
        min-width: 0;
    }

    .process-card-owner strong {
        max-width: none;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .process-card-progress-ring {
        flex: 0 0 98px;
        height: 98px;
        width: 98px;
    }

    .process-panel-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .process-card-detail .process-smart-input,
    .process-card-detail input,
    .process-card-detail select,
    .process-card-detail textarea,
    .process-card-detail button {
        width: 100%;
        min-width: 0;
    }

    .process-card-actions,
    .process-inline-add,
    .process-comment-form,
    .process-link-input,
    .process-upload-box,
    .process-attachment-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .process-btn,
    .process-icon-action {
        width: 100%;
    }

    .process-result-panel .process-panel-title {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .process-result-panel .process-panel-title > div {
        flex: 1 1 auto;
        min-width: 0;
    }

    .process-result-panel .process-panel-title h2 {
        font-size: .98rem;
        line-height: 1.12;
    }

    .process-link-title-action {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        min-height: 32px;
        padding: 6px 10px;
        font-size: .72rem;
    }

    .process-result-panel .process-link-title-action {
        width: 30% !important;
        max-width: 88px;
    }

    .process-mini-progress {
        width: min(293px, 100%);
    }

    .process-link-add {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        padding: 8px;
        width: 100%;
    }

    .process-link-add .process-smart-input {
        width: 100%;
    }
}

.process-panel-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.process-panel-head,
.process-panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.process-panel-head h1 {
    margin: 0;
    font-size: clamp(.95rem, 1.35vw, 1.3rem);
    font-weight: 800;
}

.process-panel-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.process-filter-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1050;
    width: min(360px, calc(100vw - 28px));
    height: 100vh;
    transform: translateX(104%);
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 8px 0 0 8px;
    background: rgba(10, 15, 24, .96);
    padding: 18px;
    box-shadow: -24px 0 60px rgba(0, 0, 0, .32);
    transition: transform .24s ease;
}

.process-filter-panel.is-open {
    transform: translateX(0);
}

.process-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(2, 6, 23, .46);
    backdrop-filter: blur(2px);
}

.process-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.process-filter-head span,
.process-filter-head strong {
    display: block;
}

.process-filter-head span {
    color: #14b8a6;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.process-filter-head strong {
    color: #f8fafc;
    font-size: 1.2rem;
}

.process-filter-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    color: #cbd5e1;
    background: rgba(148, 163, 184, .1);
    font-weight: 900;
}

.process-filter-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
}

.process-filter-form > div {
    display: grid;
    gap: 6px;
}

.process-filter-form label {
    color: #cbd5e1;
    font-size: .76rem;
    font-weight: 850;
}

.process-filter-form .form-select {
    min-height: 40px;
    border-color: rgba(148, 163, 184, .22);
    background-color: rgba(2, 6, 23, .76);
    color: #f8fafc;
}

.board-control-grid {
    display: none !important;
}

.board-sidebar-divider {
    height: 1px;
    margin: 18px 0;
    background: rgba(148, 163, 184, .16);
}

.board-sidebar-input {
    min-height: 40px;
    border-color: rgba(148, 163, 184, .22) !important;
    background-color: rgba(2, 6, 23, .76) !important;
    color: #f8fafc !important;
}

.board-sidebar-input::placeholder {
    color: rgba(148, 163, 184, .72) !important;
}

.process-metric-card,
.process-table-panel,
.process-owner-panel,
.process-efficiency-panel {
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 8px;
    background: rgba(10, 15, 24, .82);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.process-metric-card {
    min-height: 86px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 13px 14px;
}

.process-metric-card span {
    color: #e5e7eb;
    font-size: .78rem;
    font-weight: 700;
}

.process-metric-card strong {
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    line-height: 1;
    color: #f8fafc;
}

.process-metric-card--warning {
    background: linear-gradient(145deg, rgba(24, 18, 9, .94), rgba(10, 15, 24, .82));
}

.process-panel-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 14px;
    align-items: stretch;
}

.process-panel-layout--single {
    grid-template-columns: minmax(0, 1fr);
}

.process-table-panel,
.process-owner-panel,
.process-efficiency-panel {
    min-width: 0;
    padding: 16px;
}

.process-efficiency-panel {
    grid-column: 1 / -1;
}

.process-panel-toolbar {
    margin-bottom: 14px;
}

.process-panel-toolbar-spaced {
    margin-top: 22px;
}

.process-panel-toolbar h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.process-panel-toolbar span {
    color: #94a3b8;
    font-size: .82rem;
}

.process-panel-toolbar .form-control {
    max-width: 360px;
    border-color: rgba(148, 163, 184, .22);
    background: rgba(2, 6, 23, .76);
    color: #f8fafc;
}

.process-rank-actions {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 999px;
    background: rgba(2, 6, 23, .36);
}

.process-rank-btn {
    min-height: 28px;
    border: 0;
    border-radius: 999px;
    padding: 5px 9px;
    color: #94a3b8;
    background: transparent;
    font-size: .72rem;
    font-weight: 850;
    transition: background .18s ease, color .18s ease;
}

.process-rank-btn.is-active,
.process-rank-btn:hover {
    color: #ecfeff;
    background: rgba(20, 184, 166, .22);
}

.process-table-shell {
    max-height: 314px;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, .14);
    scrollbar-color: rgba(148, 163, 184, .28) transparent;
    scrollbar-width: thin;
}

.process-standalone-shell {
    height: 520px;
    max-height: 520px;
}

.process-efficiency-shell {
    max-height: 260px;
}

.process-table-shell::-webkit-scrollbar,
.process-owner-chart::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.process-table-shell::-webkit-scrollbar-track,
.process-owner-chart::-webkit-scrollbar-track {
    background: transparent;
}

.process-table-shell::-webkit-scrollbar-thumb,
.process-owner-chart::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, .24);
}

.process-project-table {
    width: 100%;
    min-width: 1020px;
    border-collapse: collapse;
}

.process-efficiency-table {
    min-width: 860px;
}

.process-project-table th,
.process-project-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, .13);
    vertical-align: middle;
}

.process-project-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #94a3b8;
    background: #090d13;
    font-size: .7rem;
    font-weight: 700;
    cursor: pointer;
}

.process-project-row {
    cursor: pointer;
}

.process-project-row:hover td {
    background: rgba(124, 92, 255, .08);
}

.process-project-link {
    display: grid;
    gap: 4px;
    color: #f8fafc;
    text-decoration: none;
}

.process-project-link span {
    color: #22c55e;
    font-size: .76rem;
    font-weight: 800;
}

.process-project-link strong {
    max-width: 360px;
    font-size: .86rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.process-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}

.process-progress-track,
.process-owner-track {
    overflow: hidden;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .18);
}

.process-progress-track span,
.process-owner-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #7c5cff);
}

.process-progress b {
    min-width: 48px;
    color: #f8fafc;
    font-size: .82rem;
}

.process-priority,
.process-late-flag,
.process-ok-flag {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: .75rem;
    font-weight: 800;
}

.process-priority.is-high {
    color: #451a03;
    background: #fbbf24;
}

.process-priority.is-medium {
    color: #dbeafe;
    background: rgba(37, 99, 235, .42);
}

.process-priority.is-low {
    color: #dcfce7;
    background: rgba(22, 163, 74, .42);
}

.process-late-flag {
    color: #fff1f2;
    background: linear-gradient(135deg, #ef4444, #be123c);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 18px rgba(239, 68, 68, .28);
}

.process-ok-flag {
    color: #bbf7d0;
    background: rgba(22, 163, 74, .18);
}

.process-owner {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.process-owner-compact {
    justify-content: center;
    gap: 0;
    min-width: 28px;
}

.process-owner img,
.process-owner > span {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
}

.process-owner img {
    object-fit: cover;
}

.process-owner > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    background: linear-gradient(135deg, #334155, #7c5cff);
    font-size: .72rem;
    font-weight: 900;
}

.process-owner b {
    overflow: hidden;
    color: #e5e7eb;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.process-owner-chart {
    max-height: 520px;
    overflow-y: auto;
    display: grid;
    gap: 14px;
    padding-right: 4px;
}

.process-owner-chart:not(.process-sector-chart) {
    height: 520px;
    max-height: 520px;
}

.process-sector-chart {
    max-height: 340px;
}

.process-owner-bar {
    display: grid;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, .13);
}

button.process-owner-bar {
    width: 100%;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

button.process-owner-bar:hover,
button.process-owner-bar.is-active {
    border-bottom-color: rgba(59, 130, 246, .42);
}

button.process-owner-bar.is-active .process-owner-bar-head {
    color: #bfdbfe;
}

button.process-owner-bar.is-reset {
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 8px;
    background: rgba(15, 23, 42, .38);
}

.entity-owner-reset {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, .52);
    font-size: .82rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.entity-owner-reset:hover,
.entity-owner-reset.is-active {
    color: #ffffff;
    border-color: rgba(59, 130, 246, .45);
    background: rgba(37, 99, 235, .22);
}

body[data-theme="light"] .entity-owner-reset {
    color: #334155;
    border-color: rgba(62, 82, 111, .14);
    background: rgba(255, 255, 255, .82);
}

body[data-theme="light"] .entity-owner-reset:hover,
body[data-theme="light"] .entity-owner-reset.is-active {
    color: #0f172a;
    border-color: rgba(47, 99, 168, .42);
    background: rgba(47, 99, 168, .12);
}

.process-owner-bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.process-owner-bar-head strong {
    color: #f8fafc;
}

.process-owner-bar em {
    color: #fb7185;
    font-size: .76rem;
    font-style: normal;
    font-weight: 800;
}

.process-sector-label {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.process-sector-label b {
    overflow: hidden;
    color: #e5e7eb;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.process-sector-label span {
    color: #94a3b8;
    font-size: .74rem;
}

.process-sector-track span {
    background: linear-gradient(90deg, #f59e0b, #14b8a6);
}

.process-efficiency-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 28px;
    border-radius: 999px;
    color: #eaf3ff;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    font-size: .78rem;
    font-weight: 900;
}

.process-empty-cell {
    padding: 28px 12px !important;
    color: #94a3b8;
    text-align: center;
}

body[data-theme="light"] .process-metric-card,
body[data-theme="light"] .process-table-panel,
body[data-theme="light"] .process-owner-panel,
body[data-theme="light"] .process-efficiency-panel,
body[data-theme="light"] .process-filter-panel {
    background: rgba(255, 255, 255, .96);
    border-color: rgba(15, 23, 42, .11);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}

body[data-theme="light"] .process-metric-card span,
body[data-theme="light"] .process-metric-card strong,
body[data-theme="light"] .process-panel-head h1,
body[data-theme="light"] .process-panel-toolbar h2,
body[data-theme="light"] .process-project-link,
body[data-theme="light"] .process-owner b,
body[data-theme="light"] .process-progress b {
    color: #0f172a;
}

body[data-theme="light"] .process-project-table th {
    background: #f8fafc;
    color: #475569;
}

body[data-theme="light"] .process-project-table th,
body[data-theme="light"] .process-project-table td,
body[data-theme="light"] .process-table-shell,
body[data-theme="light"] .process-owner-bar {
    border-color: rgba(15, 23, 42, .11);
}

body[data-theme="light"] .process-panel-toolbar .form-control {
    background: #ffffff;
    color: #0f172a;
}

body[data-theme="light"] .process-filter-form label,
body[data-theme="light"] .process-sector-label b {
    color: #0f172a;
}

body[data-theme="light"] .process-filter-form .form-select {
    background-color: #ffffff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, .14);
}

body[data-theme="light"] .board-sidebar-input {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, .14) !important;
}

body[data-theme="light"] .process-rank-actions {
    background: rgba(241, 245, 249, .9);
    border-color: rgba(15, 23, 42, .1);
}

body[data-theme="light"] .process-rank-btn {
    color: #64748b;
}

body[data-theme="light"] .process-rank-btn.is-active,
body[data-theme="light"] .process-rank-btn:hover {
    color: #0f172a;
    background: rgba(20, 184, 166, .18);
}

@media (max-width: 1180px) {
    .process-panel-grid,
    .process-panel-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-filter-form {
        grid-template-columns: 1fr;
    }

    .process-table-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .process-panel-head,
    .process-panel-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .process-panel-grid,
    .process-panel-layout,
    .process-filter-form {
        grid-template-columns: 1fr;
    }

    .process-panel-toolbar .form-control {
        max-width: none;
    }
}

@media (min-width: 992px) {
    :root {
        --navbar-height: 68px;
    }
}

body[data-theme="light"] {
    --bg: #eef4ff;
    --bg-soft: #ffffff;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-2: rgba(245, 249, 255, 0.98);
    --border: rgba(86, 107, 148, 0.18);
    --text: #0f172a;
    --text-soft: #475569;
    --shadow: 0 14px 36px rgba(110, 130, 170, 0.16);
    --accent-color-soft: rgba(59, 130, 246, 0.12);
    --divider-color: rgba(100, 116, 139, 0.18);
    --control-bg: rgba(255, 255, 255, 0.72);
    --control-bg-hover: rgba(255, 255, 255, 0.94);
    --control-border: rgba(148, 163, 184, 0.18);
    --control-text: #10203b;
}

html {
    font-size: 15px;
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text-primary);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 28%), radial-gradient(circle at top right, rgba(6, 182, 212, 0.14), transparent 22%), linear-gradient(135deg, #08101d 0%, #0b1220 45%, #0d1528 100%);
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    transition: var(--theme-transition);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.26) var(--bg-primary);
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

*::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.24);
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.38);
}

*::-webkit-scrollbar-corner {
    background: var(--bg-primary);
}

body[data-theme="light"] * {
    scrollbar-color: rgba(100, 116, 139, 0.28) #edf4ff;
}

body[data-theme="light"] *::-webkit-scrollbar-track,
body[data-theme="light"] *::-webkit-scrollbar-corner {
    background: #edf4ff;
}

    body[data-theme="light"] {
        background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 28%), radial-gradient(circle at top right, rgba(6, 182, 212, 0.10), transparent 22%), linear-gradient(135deg, #f6f9ff 0%, #edf4ff 45%, #e8f1ff 100%);
    }

.app-body {
    min-height: 10vh;
}

body,
body::before,
body::after,
.app-navbar,
.app-navbar .app-nav-shell,
.card,
.surface-card,
.form-control,
.form-select,
.btn,
.nav-link,
.dropdown-menu,
.dropdown-item,
.app-theme-toggle--minimal,
.app-signout-button,
.app-auth-button,
.app-profile-link.app-user-chip,
.app-footer-copy,
.app-footer-meta,
.section-kicker,
.table,
.table th,
.table td {
    transition: var(--theme-transition);
}

/* NAVBAR */
.app-navbar {
    background: rgba(8, 16, 29, 0.82) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: var(--navbar-height);
}

body[data-theme="light"] .app-navbar {
    background: rgba(255, 255, 255, 0.88) !important;
    border-bottom: 0.1px solid rgba(15, 23, 42, 0.08);
}

.navbar-brand {
    font-size: 0.96rem;
    letter-spacing: 0.3px;
    color: #fff !important;
}

.app-brand-mark {
    --logo-glow-x: 50%;
    --logo-glow-y: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0.24rem;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(23, 37, 64, 0.92), rgba(9, 17, 30, 0.95));
    border: 1px solid rgba(125, 211, 252, 0.18);
    box-shadow: none;
    overflow: hidden;
    isolation: isolate;
}

    .app-brand-mark::before,
    .app-brand-mark::after,
    .login-brand-logo-shell::before,
    .login-brand-logo-shell::after,
    .startup-splash-logo-shell::before,
    .startup-splash-logo-shell::after,
    .app-footer-logo-shell::before,
    .app-footer-logo-shell::after {
        content: none !important;
        display: none !important;
    }

.app-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    transform: translateZ(0);
}

body[data-theme="light"] .navbar-brand,
body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3,
body[data-theme="light"] h4,
body[data-theme="light"] h5,
body[data-theme="light"] .card-title {
    color: #0f172a !important;
}

.app-brand-line {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    white-space: nowrap;
    min-width: 0;
}

.app-brand-title {
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #f8fbff;
}

.app-brand-subtitle {
    color: #9fb3d9;
    font-size: 0.64rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

body[data-theme="light"] .app-brand-mark {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 42%), linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(237, 244, 255, 0.98));
    border-color: rgba(59, 130, 246, 0.14);
    box-shadow: 0 14px 24px rgba(110, 130, 170, 0.18);
}

body[data-theme="light"] .app-brand-title {
    color: #0f172a;
}

body[data-theme="light"] .app-brand-subtitle {
    color: #64748b;
}

.nav-link {
    color: var(--text-soft) !important;
    font-weight: 500;
    transition: all 0.25s ease;
    border-radius: 10px;
    padding: 0.32rem 0.6rem !important;
    font-size: 0.84rem;
}

    .nav-link:hover,
    .nav-link:focus {
        color: #fff !important;
        background: rgba(59, 130, 246, 0.12);
    }

    .nav-link.text-warning {
        color: #ffd76a !important;
    }

    .nav-link.is-active {
        color: #ffffff !important;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.24), rgba(6, 182, 212, 0.18));
        box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.18);
    }

body[data-theme="light"] .nav-link.is-active {
    color: #0f172a !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(6, 182, 212, 0.12));
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
}

/* MAIN CONTAINER */
main.container {
    background: transparent;
}

/* TITLES */
h1, h2, h3, h4, h5 {
    color: #f7fbff;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.35rem;
    margin-bottom: 1.25rem;
}

/* CARDS / PANELS */
.card,
.alert,
.table,
form,
.app-panel {
    border-radius: var(--radius);
}

.card {
    background: linear-gradient(180deg, rgba(20,31,54,0.95), rgba(14,22,38,0.96));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--text);
}

body[data-theme="light"] .card,
body[data-theme="light"] .surface-card,
body[data-theme="light"] .conversation-create-card,
body[data-theme="light"] .conversation-list-card,
body[data-theme="light"] .conversation-thread-card,
body[data-theme="light"] .empty-thread-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,255,0.98));
    border-color: rgba(100, 116, 139, 0.16);
}

body[data-theme="light"] .board-badge,
body[data-theme="light"] .section-kicker {
    background: rgba(59, 130, 246, 0.10);
    color: #315ea8;
}

body[data-theme="light"] .board-subtitle,
body[data-theme="light"] .conversation-page-subtle,
body[data-theme="light"] .dashboard-inline-meta span,
body[data-theme="light"] .dashboard-story-kicker,
body[data-theme="light"] .compact-kpi-label,
body[data-theme="light"] .metric-kicker,
body[data-theme="light"] .metric-tile p,
body[data-theme="light"] .compact-kpi-card p,
body[data-theme="light"] .daily-summary-item span,
body[data-theme="light"] .conversation-thread-summary,
body[data-theme="light"] .conversation-list-head span,
body[data-theme="light"] .conversation-list-meta span,
body[data-theme="light"] .conversation-list-item p,
body[data-theme="light"] .chat-bubble-meta span,
body[data-theme="light"] .empty-thread-card p,
body[data-theme="light"] .user-activity-item span,
body[data-theme="light"] .process-highlight-meta span,
body[data-theme="light"] .process-highlight-details span,
body[data-theme="light"] .timeline-group,
body[data-theme="light"] .timeline-date,
body[data-theme="light"] .timeline-meta span,
body[data-theme="light"] .table-title-stack span {
    color: #64748b;
}

body[data-theme="light"] .admin-hero-context span,
body[data-theme="light"] .conversation-tag,
body[data-theme="light"] .conversation-page-stat,
body[data-theme="light"] .dashboard-inline-meta span,
body[data-theme="light"] .daily-summary-item,
body[data-theme="light"] .dashboard-story-card,
body[data-theme="light"] .snapshot-tile,
body[data-theme="light"] .meeting-context-chip,
body[data-theme="light"] .meeting-kpi,
body[data-theme="light"] .user-activity-item,
body[data-theme="light"] .process-highlight-card,
body[data-theme="light"] .timeline-item,
body[data-theme="light"] .notification-card,
body[data-theme="light"] .empty-state-inline {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(100, 116, 139, 0.14);
    color: #334155;
}

    body[data-theme="light"] .admin-dashboard-page h1,
    body[data-theme="light"] .dashboard-compact-head h1,
    body[data-theme="light"] .conversation-page-title-row h1,
    body[data-theme="light"] .insight-head h2,
    body[data-theme="light"] .dashboard-block-head h2,
    body[data-theme="light"] .dashboard-panel-head h2,
    body[data-theme="light"] .conversation-thread-header h2,
    body[data-theme="light"] .empty-thread-card h2,
    body[data-theme="light"] .meeting-hero h1,
    body[data-theme="light"] .story-card h2,
    body[data-theme="light"] .analytics-card h2,
    body[data-theme="light"] .timeline-card h2,
    body[data-theme="light"] .conversation-list-toolbar h2,
    body[data-theme="light"] .user-activity-item strong,
    body[data-theme="light"] .process-highlight-card strong,
    body[data-theme="light"] .timeline-item h3,
    body[data-theme="light"] .meeting-context-chip strong,
    body[data-theme="light"] .meeting-kpi strong,
    body[data-theme="light"] .daily-summary-item strong,
    body[data-theme="light"] .metric-tile strong,
    body[data-theme="light"] .compact-kpi-card strong,
    body[data-theme="light"] .snapshot-tile strong,
    body[data-theme="light"] .conversation-page-stat strong,
    body[data-theme="light"] .conversation-list-head strong,
    body[data-theme="light"] .conversation-thread-header strong,
    body[data-theme="light"] .chat-bubble-meta strong {
        color: #0f172a !important;
    }

    body[data-theme="light"] .insight-bar-meta,
    body[data-theme="light"] .analytics-bar-meta,
    body[data-theme="light"] .story-card p,
    body[data-theme="light"] .dashboard-story-card p,
    body[data-theme="light"] .snapshot-tile span,
    body[data-theme="light"] .timeline-content p {
        color: #334155;
    }

body[data-theme="light"] .insight-bar-track,
body[data-theme="light"] .analytics-bar-track {
    background: rgba(148, 163, 184, 0.20);
}

body[data-theme="light"] .dashboard-table-shell {
    border-color: rgba(100, 116, 139, 0.16);
    background: rgba(255, 255, 255, 0.55);
}

body[data-theme="light"] .compact-dark-table {
    color: #0f172a;
}

    body[data-theme="light"] .compact-dark-table thead th {
        background: #dfeafe;
        color: #1e3a8a;
        border-color: rgba(100, 116, 139, 0.18);
    }

    body[data-theme="light"] .compact-dark-table td {
        background: rgba(255, 255, 255, 0.96);
        color: #0f172a;
        border-color: rgba(148, 163, 184, 0.18);
    }

    body[data-theme="light"] .compact-dark-table tbody tr:hover td {
        background: rgba(239, 246, 255, 0.98);
    }

body[data-theme="light"] .table-value-chip {
    background: rgba(59, 130, 246, 0.08);
    color: #1e293b;
}

    body[data-theme="light"] .table-value-chip.is-old {
        color: #b91c1c;
    }

    body[data-theme="light"] .table-value-chip.is-new {
        color: #047857;
    }

body[data-theme="light"] .status-pill.is-primary {
    color: #ffffff;
}

body[data-theme="light"] .conversation-list-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(100, 116, 139, 0.14);
}

    body[data-theme="light"] .conversation-list-item:hover,
    body[data-theme="light"] .conversation-list-item.is-active {
        background: rgba(219, 234, 254, 0.92);
        box-shadow: inset 3px 0 0 #3b82f6;
    }

body[data-theme="light"] .conversation-thread-messages {
    background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(248,250,252,.9)), radial-gradient(circle at 20% 20%, rgba(82, 142, 255, 0.10), transparent 22rem);
    border-color: rgba(100, 116, 139, 0.14);
}

body[data-theme="light"] .chat-bubble {
    background: rgba(226, 232, 240, 0.72);
    border-color: rgba(148, 163, 184, 0.22);
}

    body[data-theme="light"] .chat-bubble.is-own {
        background: linear-gradient(145deg, rgba(59, 130, 246, 0.16), rgba(96, 165, 250, 0.12));
        border-color: rgba(59, 130, 246, 0.26);
    }

body[data-theme="light"] .conversation-page .form-control,
body[data-theme="light"] .conversation-page .form-select,
body[data-theme="light"] .conversation-page textarea,
body[data-theme="light"] .conversation-page select,
body[data-theme="light"] .conversation-page input {
    background: linear-gradient(180deg, rgba(229, 238, 252, 0.96), rgba(216, 228, 246, 0.96)) !important;
    border-color: rgba(148, 163, 184, 0.34) !important;
    color: #17304f !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

    body[data-theme="light"] .conversation-page .form-control::placeholder,
    body[data-theme="light"] .conversation-page textarea::placeholder,
    body[data-theme="light"] .conversation-page input::placeholder {
        color: rgba(71, 85, 105, 0.84) !important;
    }

    body[data-theme="light"] .conversation-page .form-control:focus,
    body[data-theme="light"] .conversation-page .form-select:focus,
    body[data-theme="light"] .conversation-page textarea:focus,
    body[data-theme="light"] .conversation-page select:focus,
    body[data-theme="light"] .conversation-page input:focus {
        background: linear-gradient(180deg, rgba(238, 245, 255, 0.98), rgba(224, 236, 252, 0.98)) !important;
        border-color: rgba(59, 130, 246, 0.45) !important;
        box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.14) !important;
    }

body[data-theme="light"] .conversation-page .btn-outline-light {
    background: linear-gradient(180deg, rgba(222, 234, 252, 0.96), rgba(208, 223, 246, 0.96)) !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
    color: #17304f !important;
}

    body[data-theme="light"] .conversation-page .btn-outline-light:hover,
    body[data-theme="light"] .conversation-page .btn-outline-light:focus {
        background: linear-gradient(180deg, rgba(205, 222, 249, 0.98), rgba(190, 211, 244, 0.98)) !important;
        border-color: rgba(59, 130, 246, 0.3) !important;
        color: #10233b !important;
    }

body[data-theme="light"] .kanban-column {
    background: linear-gradient(180deg, rgba(239, 245, 255, 0.96), rgba(225, 235, 249, 0.98));
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 35px rgba(148, 163, 184, 0.16);
}

body[data-theme="light"] .kanban-column-backlog {
    background: linear-gradient(180deg, rgba(232, 240, 255, 0.98), rgba(220, 231, 248, 0.98));
}

body[data-theme="light"] .kanban-column-em-andamento {
    background: linear-gradient(180deg, rgba(226, 241, 255, 0.98), rgba(214, 230, 246, 0.98));
}

body[data-theme="light"] .kanban-column-aguardando {
    background: linear-gradient(180deg, rgba(255, 245, 220, 0.98), rgba(248, 235, 203, 0.98));
}

body[data-theme="light"] .kanban-column-concluido {
    background: linear-gradient(180deg, rgba(228, 246, 238, 0.98), rgba(215, 237, 229, 0.98));
}

body[data-theme="light"] .kanban-column h2,
body[data-theme="light"] .kanban-column-title,
body[data-theme="light"] .kanban-card h3,
body[data-theme="light"] .kanban-user,
body[data-theme="light"] .kanban-card-id {
    color: #0f172a !important;
}

body[data-theme="light"] .kanban-column-header span,
body[data-theme="light"] .kanban-avatar {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

body[data-theme="light"] .kanban-add-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #17304f;
}

    body[data-theme="light"] .kanban-add-card:hover {
        background: rgba(59, 130, 246, 0.14);
        color: #1d4ed8;
    }

body[data-theme="light"] .kanban-delete-column {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.22);
    color: #b91c1c;
}

    body[data-theme="light"] .kanban-delete-column:hover {
        background: rgba(239, 68, 68, 0.18);
        color: #991b1b;
    }

body[data-theme="light"] .kanban-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 255, 0.96));
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 14px 30px rgba(148, 163, 184, 0.14);
}

    body[data-theme="light"] .kanban-card p,
    body[data-theme="light"] .kanban-empty,
    body[data-theme="light"] .kanban-meta span,
    body[data-theme="light"] .kanban-chip {
        color: #475569 !important;
    }

body[data-theme="light"] .kanban-meta span,
body[data-theme="light"] .kanban-chip {
    background: rgba(223, 232, 245, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

body[data-theme="light"] .kanban-tag {
    background: rgba(14, 165, 233, 0.14);
    color: #0369a1;
}

body[data-theme="light"] .kanban-empty {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(148, 163, 184, 0.24);
}

body[data-theme="light"] .board-panel .form-control,
body[data-theme="light"] .board-panel .form-select,
body[data-theme="light"] .board-panel textarea,
body[data-theme="light"] .board-panel select,
body[data-theme="light"] .board-panel input {
    background: linear-gradient(180deg, rgba(229, 238, 252, 0.96), rgba(216, 228, 246, 0.96)) !important;
    border-color: rgba(148, 163, 184, 0.34) !important;
    color: #17304f !important;
}

    body[data-theme="light"] .board-panel .form-control::placeholder,
    body[data-theme="light"] .board-panel textarea::placeholder,
    body[data-theme="light"] .board-panel input::placeholder {
        color: rgba(71, 85, 105, 0.84) !important;
    }

body[data-theme="light"] .board-hero {
    background: linear-gradient(135deg, rgba(233, 241, 252, 0.98), rgba(214, 229, 247, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 22px 40px rgba(148, 163, 184, 0.18);
}

    body[data-theme="light"] .board-hero h1,
    body[data-theme="light"] .board-hero .board-subtitle,
    body[data-theme="light"] .board-hero .board-badge,
    body[data-theme="light"] .board-context span {
        color: #17304f !important;
    }

body[data-theme="light"] .board-badge,
body[data-theme="light"] .board-context span {
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

body[data-theme="light"] .board-stat {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(229, 238, 252, 0.82));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 24px rgba(148, 163, 184, 0.12);
}

    body[data-theme="light"] .board-stat strong,
    body[data-theme="light"] .board-stat span {
        color: #17304f !important;
    }

body[data-theme="light"] .board-actions .btn-secondary,
body[data-theme="light"] .board-actions a.btn-secondary,
body[data-theme="light"] .compact-filter-form .btn-secondary,
body[data-theme="light"] .compact-filter-form button.btn-secondary {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

    body[data-theme="light"] .board-actions .btn-secondary:hover,
    body[data-theme="light"] .board-actions a.btn-secondary:hover,
    body[data-theme="light"] .compact-filter-form .btn-secondary:hover,
    body[data-theme="light"] .compact-filter-form button.btn-secondary:hover {
        background: linear-gradient(135deg, #475569, #334155) !important;
        border-color: #334155 !important;
        color: #ffffff !important;
    }

body[data-theme="light"] .board-actions .btn-outline-secondary,
body[data-theme="light"] .board-actions a.btn-outline-secondary {
    background: linear-gradient(180deg, rgba(226, 236, 252, 0.98), rgba(210, 225, 247, 0.98)) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
    color: #17304f !important;
}

    body[data-theme="light"] .board-actions .btn-outline-secondary:hover,
    body[data-theme="light"] .board-actions a.btn-outline-secondary:hover {
        background: linear-gradient(180deg, rgba(210, 225, 247, 1), rgba(194, 213, 241, 1)) !important;
        border-color: rgba(59, 130, 246, 0.28) !important;
        color: #10233b !important;
    }

body[data-theme="light"] .table th {
    background: linear-gradient(180deg, #dbe7fb, #e8f1ff);
    color: #1e3a8a;
    border-color: rgba(100, 116, 139, 0.18) !important;
}

body[data-theme="light"] .table td {
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.16) !important;
}

body[data-theme="light"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(241, 245, 249, 0.95);
    color: #0f172a;
}

body[data-theme="light"] .table-hover tbody tr:hover td {
    background: rgba(219, 234, 254, 0.96) !important;
}

.card-title {
    color: #fff;
}

/* BUTTONS */
.btn {
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 0.65rem 1rem;
    border: none;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(0,0,0,0.24);
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #4b5563, #374151);
    color: white;
}

.mobile-table-shell {
    width: 100%;
}

.table-action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.8rem;
}

    .table-action-stack a {
        color: #8fc4ff;
        text-decoration: none;
        font-weight: 600;
    }

        .table-action-stack a:hover {
            color: #ffffff;
        }

body[data-theme="light"] .table-action-stack a {
    color: #1d4ed8;
}

    body[data-theme="light"] .table-action-stack a:hover {
        color: #0f172a;
    }

.app-profile-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    text-decoration: none !important;
}

.app-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(126, 145, 177, 0.24);
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-user-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-user-avatar-fallback {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.app-profile-link-copy {
    display: grid;
    min-width: 0;
    line-height: 1;
}

    .app-profile-link-copy strong {
        color: inherit;
        font-size: 0.8rem;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-profile-link-copy small {
        color: var(--text-soft);
        font-size: 0.64rem;
        letter-spacing: 0.02em;
    }

.app-theme-toggle {
    min-width: 72px;
}

body[data-theme="light"] .app-login-shell {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .app-user-greeting {
    color: #1e293b !important;
}

body[data-theme="light"] .app-profile-link-copy small {
    color: #64748b;
}

body[data-theme="light"] .app-theme-toggle,
body[data-theme="light"] .app-inline-form .btn,
body[data-theme="light"] .app-login-nav .btn-outline-light {
    border-color: rgba(59, 130, 246, 0.18) !important;
    background: rgba(59, 130, 246, 0.08) !important;
    color: #0f172a !important;
}

    body[data-theme="light"] .app-theme-toggle:hover,
    body[data-theme="light"] .app-inline-form .btn:hover,
    body[data-theme="light"] .app-login-nav .btn-outline-light:hover {
        background: rgba(59, 130, 246, 0.14) !important;
        color: #0b1220 !important;
    }

.profile-shell {
    padding: 1.4rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.4rem;
}

.profile-avatar-frame {
    width: 106px;
    height: 106px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(126, 145, 177, 0.22);
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-fallback {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    color: var(--text-soft);
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 0;
}

.profile-form-card {
    padding: 1rem;
}

.profile-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.nav-link-with-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
}

.app-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
}

.notification-card {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(126, 145, 177, 0.14);
    background: rgba(13, 22, 39, 0.72);
}

    .notification-card.is-unread {
        border-color: rgba(59, 130, 246, 0.42);
        background: linear-gradient(180deg, rgba(18, 34, 64, 0.94), rgba(14, 24, 42, 0.94));
        box-shadow: 0 10px 28px rgba(21, 72, 173, 0.14);
    }

    .notification-card.is-read {
        opacity: 0.92;
    }

.notification-date {
    color: #8ea3ca;
    font-size: 0.85rem;
}

.notification-card h5,
.notification-card strong,
.notification-card .badge.bg-primary {
    color: #f8fbff;
}

.notification-card p,
.notification-card .text-muted,
.notification-card .notification-date {
    color: #aebcdc !important;
}

.notification-card .btn-outline-light {
    color: #f8fbff;
    border-color: rgba(147, 197, 253, 0.3);
    background: rgba(30, 41, 59, 0.72);
}

    .notification-card .btn-outline-light:hover,
    .notification-card .btn-outline-light:focus {
        color: #ffffff;
        border-color: rgba(96, 165, 250, 0.5);
        background: rgba(37, 99, 235, 0.32);
    }

.mobile-analytics-table td::before {
    display: none;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #111827;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
}

.btn-dark {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
}

/* FORMS */
form {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.form-control,
.form-select,
textarea,
select,
input {
    background: rgba(9, 16, 29, 0.75) !important;
    border: 1px solid rgba(120, 145, 184, 0.22) !important;
    color: #f3f7ff !important;
    border-radius: 12px !important;
    min-height: 46px;
    box-shadow: none !important;
}

    .form-control:focus,
    .form-select:focus,
    textarea:focus,
    select:focus,
    input:focus {
        border-color: rgba(59, 130, 246, 0.75) !important;
        box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18) !important;
        background: rgba(12, 19, 34, 0.94) !important;
        color: white !important;
    }

label,
.control-label,
.form-label {
    color: var(--text-soft);
    font-weight: 600;
    margin-bottom: 0.45rem;
}

input[readonly] {
    opacity: 0.9;
}

/* TABLES */
.table {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--text);
}

    .table th {
        background: linear-gradient(180deg, rgba(18, 31, 53, 0.98), rgba(12, 22, 40, 0.98));
        color: #f8fbff;
        border-color: rgba(255,255,255,0.06) !important;
        font-weight: 700;
        padding: 1rem 0.85rem;
    }

    .table td {
        background: rgba(14, 22, 38, 0.82);
        color: var(--text);
        border-color: rgba(255,255,255,0.05) !important;
        vertical-align: middle;
        padding: 0.9rem 0.85rem;
    }

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(18, 28, 48, 0.92);
    color: var(--text);
}

.table-hover tbody tr:hover td {
    background: rgba(32, 49, 81, 0.95) !important;
}

/* LINKS */
a {
    color: #79b8ff;
    text-decoration: none;
    transition: all 0.2s ease;
}

    a:hover {
        color: #a5d8ff;
        text-decoration: underline;
    }

/* ALERTS */
.alert {
    border: 1px solid transparent;
    box-shadow: var(--shadow);
    padding: 1rem 1.2rem;
}

.alert-info {
    background: rgba(8, 145, 178, 0.15);
    color: #c8f6ff;
    border-color: rgba(34, 211, 238, 0.25);
}

.alert-success {
    background: rgba(16, 185, 129, 0.14);
    color: #d1fae5;
    border-color: rgba(16, 185, 129, 0.25);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #fee2e2;
    border-color: rgba(239, 68, 68, 0.22);
}

.alert-warning {
    background: rgba(251, 191, 36, 0.12);
    color: #fef3c7;
    border-color: rgba(251, 191, 36, 0.22);
}

/* BADGES */
.badge {
    border-radius: 999px;
    padding: 0.5rem 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* FOOTER */
.app-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1020;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--text-soft);
    padding: 1rem 0 1.15rem 0;
    background: rgba(8, 16, 29, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.24);
}

.app-footer-logo-shell {
    --logo-glow-x: 50%;
    --logo-glow-y: 50%;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    overflow: hidden;
    isolation: isolate;
}

.app-footer-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.18rem;
}

body[data-theme="light"] .app-footer {
    background: rgba(255, 255, 255, 0.92);
    border-top-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 -14px 28px rgba(148, 163, 184, 0.18);
}

/* VALIDATION */
.text-danger,
.validation-summary-errors,
.field-validation-error {
    color: #ff8e8e !important;
    font-size: 0.92rem;
}

/* LOGIN AREA */
a[href*="Login"],
a[href*="Register"],
a[href*="Logout"] {
    font-weight: 600;
}

/* TABLE ACTION LINKS */
td a {
    font-weight: 600;
}

.btn-outline-dark,
.btn-outline-primary,
.btn-outline-secondary {
    border: 1px solid rgba(124, 181, 255, 0.28) !important;
    background: rgba(37, 99, 235, 0.14) !important;
    color: #eaf3ff !important;
}

    .btn-outline-dark:hover,
    .btn-outline-primary:hover,
    .btn-outline-secondary:hover,
    .btn-outline-dark:focus,
    .btn-outline-primary:focus,
    .btn-outline-secondary:focus {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(6, 182, 212, 0.92)) !important;
        border-color: rgba(125, 211, 252, 0.9) !important;
        color: #ffffff !important;
    }

    .btn-outline-dark.disabled,
    .btn-outline-dark:disabled,
    .btn-outline-primary.disabled,
    .btn-outline-primary:disabled,
    .btn-outline-secondary.disabled,
    .btn-outline-secondary:disabled {
        background: rgba(255,255,255,0.08) !important;
        border-color: rgba(255,255,255,0.08) !important;
        color: rgba(232, 238, 252, 0.55) !important;
        opacity: 1;
    }

.table .btn-sm {
    min-width: 92px;
}

.table td .d-flex.gap-2 {
    row-gap: 0.65rem !important;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    gap: 1.2rem;
    align-items: start;
}

.kanban-column {
    background: linear-gradient(180deg, rgba(17, 29, 52, 0.96), rgba(11, 20, 37, 0.98));
    border: 1px solid rgba(124, 181, 255, 0.12);
    border-radius: 20px;
    box-shadow: var(--shadow);
    min-height: 420px;
    padding: 1rem;
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

    .kanban-column-header h2 {
        font-size: 1.05rem;
        margin: 0;
    }

    .kanban-column-header span {
        display: inline-flex;
        min-width: 34px;
        height: 34px;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: rgba(59, 130, 246, 0.2);
        color: #dcecff;
        font-weight: 700;
    }

.kanban-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kanban-card {
    background: linear-gradient(180deg, rgba(22, 36, 65, 0.96), rgba(15, 24, 43, 0.98));
    border: 1px solid rgba(124, 181, 255, 0.14);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

    .kanban-card h3 {
        font-size: 1rem;
        margin: 0.75rem 0 0.55rem 0;
    }

    .kanban-card p {
        color: var(--text-soft);
        font-size: 0.93rem;
        margin-bottom: 0.9rem;
        white-space: pre-wrap;
    }

.kanban-card-top,
.kanban-meta,
.kanban-actions,
.kanban-moves {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.kanban-card-top {
    justify-content: space-between;
}

.kanban-meta {
    margin-bottom: 0.9rem;
}

    .kanban-meta span,
    .kanban-tag,
    .kanban-priority {
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        padding: 0.32rem 0.7rem;
        font-size: 0.78rem;
        font-weight: 700;
    }

.kanban-tag {
    background: rgba(6, 182, 212, 0.14);
    color: #94f4ff;
}

.kanban-meta span {
    background: rgba(255,255,255,0.06);
    color: #d7e7ff;
}

.priority-baixa {
    background: rgba(34, 197, 94, 0.16);
    color: #a7f3c7;
}

.priority-media {
    background: rgba(251, 191, 36, 0.16);
    color: #ffe08a;
}

.priority-alta {
    background: rgba(239, 68, 68, 0.16);
    color: #ffb2b2;
}

.kanban-actions {
    margin-bottom: 0.75rem;
}

    .kanban-actions form,
    .kanban-moves form {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

.kanban-empty {
    border: 1px dashed rgba(124, 181, 255, 0.2);
    border-radius: 16px;
    padding: 1rem;
    color: var(--text-soft);
    text-align: center;
    background: rgba(255,255,255,0.03);
}

/* DASHBOARD CARDS */
.row .card h2 {
    font-size: 2rem;
    margin-bottom: 0;
    color: #fff;
}

.row .card .card-title {
    color: var(--text-soft);
    font-size: 0.98rem;
    font-weight: 600;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0a1222;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1d4ed8, #0891b2);
    border-radius: 10px;
}

/* SELECT2 */
.select2-container--default .select2-selection--single {
    background: rgba(9, 16, 29, 0.75) !important;
    border: 1px solid rgba(120, 145, 184, 0.22) !important;
    border-radius: 12px !important;
    height: 46px !important;
    padding-top: 8px !important;
    color: white !important;
}

.select2-dropdown {
    background: #0f172a !important;
    color: white !important;
    border: 1px solid rgba(120, 145, 184, 0.22) !important;
}

.select2-results__option {
    color: white !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #2563eb !important;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    h1 {
        font-size: 1.9rem;
    }

    .table {
        font-size: 0.94rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .navbar-collapse {
        margin-top: 0.5rem;
    }

    .kanban-board {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    body.app-body {
        padding-top: calc(var(--navbar-height) + 8px);
    }

    .container-fluid.px-3.px-lg-5.mt-3 {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
        margin-top: 0.45rem !important;
    }

    .app-navbar .container-fluid {
        align-items: center;
    }

    .navbar-brand {
        font-size: 0.92rem;
        gap: 0.5rem !important;
    }

        .navbar-brand > span:first-child {
            width: 34px !important;
            height: 34px !important;
        }

    .navbar-collapse {
        margin-top: 0;
        padding: 0.65rem;
        border-radius: 14px;
        background: rgba(9, 16, 29, 0.96);
        border: 1px solid rgba(126, 145, 177, 0.16);
    }

    .navbar-nav {
        gap: 0.18rem !important;
    }

    .app-login-shell,
    .app-login-nav {
        width: 100%;
    }

    .app-login-nav {
        align-items: stretch !important;
    }

    .app-profile-link {
        justify-content: flex-start;
    }

    .app-user-greeting,
    .app-inline-form,
    .app-inline-form .btn,
    .app-login-nav .btn {
        width: 100%;
    }

    main.container {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    form {
        padding: 1rem;
    }

    .table th,
    .table td {
        padding: 0.75rem 0.6rem;
    }

    .kanban-board {
        grid-template-columns: 1fr;
    }

    .app-footer {
        padding-bottom: 1.35rem;
    }

        .app-footer .d-flex {
            gap: 0.65rem !important;
        }

    .responsive-stack-table {
        border-collapse: separate;
        border-spacing: 0 0.85rem;
        min-width: 100%;
    }

        .responsive-stack-table thead {
            display: none;
        }

        .responsive-stack-table,
        .responsive-stack-table tbody,
        .responsive-stack-table tr,
        .responsive-stack-table td {
            display: block;
            width: 100%;
        }

            .responsive-stack-table tbody tr {
                margin: 0;
                padding: 0.95rem 1rem;
                border: 1px solid rgba(126, 145, 177, 0.16);
                border-radius: 18px;
                background: linear-gradient(180deg, rgba(20,31,54,0.95), rgba(14,22,38,0.96));
                box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
            }

            .responsive-stack-table td {
                border: 0 !important;
                padding: 0.55rem 0 !important;
                text-align: left;
            }

                .responsive-stack-table td::before {
                    content: attr(data-label);
                    display: block;
                    margin-bottom: 0.28rem;
                    color: #8ea3ca;
                    font-size: 0.76rem;
                    font-weight: 700;
                    text-transform: uppercase;
                    letter-spacing: 0.08em;
                }

                .responsive-stack-table td:last-child {
                    padding-top: 0.8rem !important;
                }

    .table-action-stack {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-form-actions .btn {
        width: 100%;
    }

    .dashboard-table-shell .table-responsive {
        overflow: visible;
    }

    .mobile-analytics-table thead {
        display: none;
    }

    .mobile-analytics-table,
    .mobile-analytics-table tbody,
    .mobile-analytics-table tr,
    .mobile-analytics-table td {
        display: block;
        width: 100%;
    }

    .mobile-analytics-table {
        border-collapse: separate;
        border-spacing: 0 0.8rem;
    }

        .mobile-analytics-table tbody tr {
            border: 1px solid rgba(126, 145, 177, 0.16);
            border-radius: 18px;
            background: linear-gradient(180deg, rgba(20,31,54,0.95), rgba(14,22,38,0.96));
            padding: 0.95rem 1rem;
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
        }

        .mobile-analytics-table td {
            border: 0 !important;
            padding: 0.5rem 0 !important;
            text-align: left;
        }

            .mobile-analytics-table td::before {
                content: attr(data-label);
                display: block;
                margin-bottom: 0.28rem;
                color: #8ea3ca;
                font-size: 0.74rem;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 0.08em;
            }

            .mobile-analytics-table td:last-child {
                padding-top: 0.8rem !important;
            }

    .meeting-filter-actions .btn,
    .dashboard-block-head .btn,
    .analytics-head .btn {
        width: 100%;
    }
}

/* Login experience */
.login-page {
    overflow: hidden;
    min-height: 100vh;
    background:
        linear-gradient(115deg, rgba(220, 232, 245, 0.94) 0%, rgba(244, 247, 249, 0.92) 46%, rgba(235, 239, 235, 0.96) 100%),
        radial-gradient(circle at 18% 22%, rgba(47, 99, 168, 0.20), transparent 24rem),
        radial-gradient(circle at 82% 12%, rgba(94, 154, 78, 0.10), transparent 22rem);
    color: #172235;
}

.login-canvas,
.login-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.login-canvas {
    opacity: 0.95;
}

.login-noise {
    opacity: 0.16;
    background-image: linear-gradient(rgba(47, 99, 168, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 99, 168, .08) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
}

.login-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 480px);
    gap: 2rem;
    align-items: center;
    padding: 2rem clamp(1.2rem, 3vw, 3rem);
}

.login-brand-panel {
    max-width: 720px;
}

.login-brand-lockup {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 1rem 0 1.4rem 0;
}

.login-brand-logo-shell {
    --logo-glow-x: 50%;
    --logo-glow-y: 50%;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(132px, 18vw, 210px);
    aspect-ratio: 1 / 1;
    border-radius: 32px;
    overflow: hidden;
    isolation: isolate;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(203, 213, 225, 0.92);
    box-shadow: none;
    backdrop-filter: none;
}

.login-brand-logo {
    width: 88%;
    height: auto;
    object-fit: contain;
    filter: none;
}

.login-brand-copy-block {
    display: grid;
    gap: 0.55rem;
}

.login-brand-badge,
.login-panel-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.42rem 0.85rem;
    background: rgba(255, 255, 255, 0.72);
    color: #315d99;
    border: 1px solid rgba(47, 99, 168, 0.12);
    box-shadow: 0 10px 24px rgba(38, 56, 85, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-brand-panel h1 {
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    line-height: 0.92;
    margin: 0;
    max-width: 10ch;
    color: #2f63a8;
    text-shadow: 0 12px 28px rgba(47, 99, 168, 0.10);
}

.login-brand-copy {
    max-width: 620px;
    font-size: 1.08rem;
    line-height: 1.7;
    color: #5c6c82;
    margin-bottom: 1.6rem;
}

.login-feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.login-feature-card {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(67, 91, 124, 0.16);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 36px rgba(38, 56, 85, 0.12);
}

.login-feature-index {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #d5a232;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.login-feature-card strong {
    display: block;
    color: #18253a;
    margin-bottom: 0.45rem;
}

.login-feature-card p {
    margin: 0;
    color: #607086;
    font-size: 0.92rem;
    line-height: 1.55;
}

.login-form-panel {
    position: relative;
    padding: 1.3rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(23, 36, 58, 0.96), rgba(17, 29, 48, 0.98));
    border: 1px solid rgba(47, 99, 168, 0.18);
    box-shadow: 0 30px 58px rgba(29, 44, 66, 0.34);
    backdrop-filter: blur(14px);
}

.login-panel-head h2 {
    margin: 1rem 0 0.45rem 0;
    font-size: 2rem;
    color: #f6f9fc;
}

.login-panel-head p {
    color: #c7d5ea;
    margin-bottom: 1.2rem;
}

.login-form-panel .form-label,
.login-form-panel .form-check-label {
    color: #d6e1f1;
}

.login-form-panel .form-control {
    background: #edf4ff !important;
    border-color: rgba(203, 213, 225, 0.85) !important;
    color: #111827 !important;
}

.login-form-panel .form-control:focus {
    background: #ffffff !important;
    border-color: rgba(79, 140, 201, 0.82) !important;
    box-shadow: 0 0 0 0.18rem rgba(79, 140, 201, 0.18) !important;
}

.login-password-field {
    position: relative;
}

.login-password-field .form-control {
    padding-right: 3rem;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    color: #526783;
    transform: translateY(-50%);
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
    color: #2f63a8;
    background: rgba(47, 99, 168, 0.09);
}

.login-password-toggle:focus-visible {
    outline: 2px solid rgba(79, 140, 201, 0.45);
    outline-offset: 1px;
}

.login-password-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.login-password-icon--hide {
    display: none;
}

.login-password-toggle[aria-pressed="true"] .login-password-icon--show {
    display: none;
}

.login-password-toggle[aria-pressed="true"] .login-password-icon--hide {
    display: block;
}

.login-form-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.login-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 0.85rem 0 1.2rem 0;
}

.login-security-dot {
    color: #8ed9aa;
    font-size: 0.88rem;
    font-weight: 700;
}

.login-submit-btn {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
}

.login-theme-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.35rem;
    z-index: 8;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 14px;
}

body.login-page:not([data-theme="light"]) {
    background:
        linear-gradient(115deg, rgba(6, 15, 30, 0.98) 0%, rgba(10, 24, 46, 0.97) 46%, rgba(8, 46, 59, 0.95) 100%),
        radial-gradient(circle at 18% 22%, rgba(47, 99, 168, 0.28), transparent 24rem),
        radial-gradient(circle at 82% 12%, rgba(20, 184, 166, 0.12), transparent 22rem);
    color: #edf5ff;
}

body.login-page:not([data-theme="light"]) .login-noise {
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(125, 211, 252, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, .06) 1px, transparent 1px);
}

body.login-page:not([data-theme="light"]) .login-brand-logo-shell {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.32);
}

body.login-page:not([data-theme="light"]) .login-brand-badge,
body.login-page:not([data-theme="light"]) .login-panel-tag {
    background: rgba(255, 255, 255, 0.10);
    color: #b9d7ff;
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: none;
}

body.login-page:not([data-theme="light"]) .login-brand-panel h1 {
    color: #8bbcff;
    text-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

body.login-page:not([data-theme="light"]) .login-brand-copy {
    color: #b9c8dc;
}

body.login-page:not([data-theme="light"]) .login-feature-card {
    background: rgba(17, 29, 48, 0.82);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 20px 42px rgba(2, 6, 23, 0.32);
}

body.login-page:not([data-theme="light"]) .login-feature-card strong {
    color: #f3f7ff;
}

body.login-page:not([data-theme="light"]) .login-feature-card p {
    color: #b8c7dc;
}

body.login-page[data-theme="light"] .login-form-panel {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(67, 91, 124, 0.18);
    box-shadow: 0 30px 58px rgba(38, 56, 85, 0.16);
}

body.login-page[data-theme="light"] .login-panel-head h2 {
    color: #2f63a8;
}

body.login-page[data-theme="light"] .login-panel-head p,
body.login-page[data-theme="light"] .login-form-panel .form-label,
body.login-page[data-theme="light"] .login-form-panel .form-check-label {
    color: #465974;
}

body.login-page[data-theme="light"] .login-form-panel .form-control {
    background: #f8fbff !important;
    border-color: rgba(133, 153, 181, 0.42) !important;
}

body.login-page[data-theme="light"] .login-security-dot {
    color: #166534;
}

.startup-splash {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: radial-gradient(circle at center, rgba(8, 21, 44, 0.72), rgba(2, 8, 18, 0.98));
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

    .startup-splash.is-hidden {
        opacity: 0;
        visibility: hidden;
    }

.startup-splash-logo-shell {
    --logo-glow-x: 50%;
    --logo-glow-y: 50%;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(300px, 38vw);
    aspect-ratio: 1 / 1;
    border-radius: 40px;
    overflow: hidden;
    isolation: isolate;
    background: rgba(248, 250, 252, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: none;
    backdrop-filter: none;
}

.startup-splash-logo {
    width: 86%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    filter: none;
    animation: none;
}

.startup-splash-text {
    position: relative;
    text-align: center;
    z-index: 2;
}

    .startup-splash-text span {
        display: block;
        color: #f7c34e;
        font-size: 0.82rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        margin-bottom: 0.65rem;
    }

    .startup-splash-text strong {
        font-size: clamp(2rem, 5vw, 4.2rem);
        color: white;
        letter-spacing: -0.03em;
    }

.startup-splash-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58,126,255,.35), transparent 68%);
    filter: blur(8px);
    animation: splashGlow 1.6s ease-out forwards;
}

@keyframes splashPulse {
    0% {
        transform: scale(0.72);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes splashGlow {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.35;
    }
}

@media (max-width: 1100px) {
    .login-shell {
        grid-template-columns: 1fr;
        gap: 1.4rem;
        padding-top: 5.25rem;
    }

    .login-brand-panel h1 {
        max-width: none;
    }

    .login-brand-lockup {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .login-feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .login-shell {
        padding: 1rem;
        align-items: start;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        padding: 1rem;
        border-radius: 22px;
    }

    .login-panel-head h2 {
        font-size: 1.6rem;
    }

    .login-form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .startup-splash-logo-shell {
        width: min(210px, 54vw);
    }

    .startup-splash-logo {
        width: 84%;
    }

    .startup-splash-text strong {
        font-size: 2rem;
    }
}

/* Trello-like board refinements */
.kanban-board-shell {
    overflow-x: auto;
    padding-bottom: 0.75rem;
}

.board-hero {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 1.5rem;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.24), transparent 25%), radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.28), transparent 30%), linear-gradient(135deg, rgba(18, 36, 66, 0.98), rgba(14, 27, 49, 0.98));
    border: 1px solid rgba(125, 211, 252, 0.12);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.28);
}

.board-hero-content {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.board-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.09);
    color: #cfe8ff;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.board-subtitle {
    max-width: 840px;
    color: #b9cae6;
    font-size: 1rem;
}

.board-stats {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.board-stat {
    min-width: 120px;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(9, 18, 35, 0.36);
    border: 1px solid rgba(255,255,255,0.06);
}

    .board-stat strong {
        display: block;
        font-size: 1.55rem;
        color: #fff;
    }

    .board-stat span {
        color: #9cb4db;
        font-size: 0.86rem;
    }

.board-context {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

    .board-context span {
        display: inline-flex;
        padding: 0.38rem 0.85rem;
        border-radius: 999px;
        background: rgba(255,255,255,0.06);
        color: #bfd3f7;
        font-size: 0.82rem;
        font-weight: 600;
    }

.kanban-board {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    min-width: max-content;
}

.kanban-column {
    width: 320px;
}

.kanban-column-backlog {
    background: linear-gradient(180deg, rgba(28, 37, 61, 0.98), rgba(15, 22, 38, 0.98));
}

.kanban-column-em-andamento {
    background: linear-gradient(180deg, rgba(19, 44, 73, 0.98), rgba(13, 24, 44, 0.98));
}

.kanban-column-aguardando {
    background: linear-gradient(180deg, rgba(54, 39, 17, 0.98), rgba(24, 20, 13, 0.98));
}

.kanban-column-concluido {
    background: linear-gradient(180deg, rgba(15, 53, 42, 0.98), rgba(12, 25, 22, 0.98));
}

.kanban-column-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

    .kanban-column-title span {
        display: inline-flex;
        min-width: 34px;
        height: 34px;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: rgba(59, 130, 246, 0.2);
        color: #dcecff;
        font-weight: 700;
    }

.kanban-add-card {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: #eef6ff;
    font-size: 1.2rem;
    font-weight: 700;
}

    .kanban-add-card:hover {
        text-decoration: none;
        background: rgba(59, 130, 246, 0.26);
        color: #fff;
    }

.kanban-column-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

    .kanban-column-actions .app-inline-form {
        width: auto;
    }

.kanban-delete-column {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(248, 113, 113, 0.32);
    border-radius: 12px;
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

    .kanban-delete-column:hover {
        background: rgba(248, 113, 113, 0.24);
        color: #fff;
    }

.kanban-card {
    position: relative;
    overflow: hidden;
}

.kanban-card-cover {
    height: 8px;
    margin: -1rem -1rem 0.9rem -1rem;
    background: linear-gradient(90deg, #64748b, #94a3b8);
}

    .kanban-card-cover.priority-baixa {
        background: linear-gradient(90deg, #22c55e, #86efac);
    }

    .kanban-card-cover.priority-media {
        background: linear-gradient(90deg, #f59e0b, #fde68a);
    }

    .kanban-card-cover.priority-alta {
        background: linear-gradient(90deg, #ef4444, #fca5a5);
    }

.kanban-card-tags,
.kanban-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.kanban-card-id {
    color: #8da4ca;
    font-size: 0.78rem;
    font-weight: 700;
}

.kanban-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255,255,255,0.06);
    color: #d7e7ff;
}

.kanban-chip-link {
    text-decoration: none;
    border: 1px solid rgba(96, 165, 250, .28);
}

.kanban-chip-link:hover {
    color: #ffffff;
    border-color: rgba(96, 165, 250, .5);
}

.kanban-card-footer {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.95rem;
}

.kanban-user {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #d6e6ff;
    font-size: 0.85rem;
    font-weight: 600;
}

.kanban-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59,130,246,.85), rgba(6,182,212,.75));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

img.kanban-avatar {
    display: block;
    object-fit: cover;
    padding: 0;
}

.kanban-user--table {
    color: inherit;
}

.deadline-overdue {
    background: rgba(239, 68, 68, 0.16);
    color: #ffbbbb;
}

.deadline-today {
    background: rgba(251, 191, 36, 0.18);
    color: #ffe38e;
}

.deadline-normal {
    background: rgba(255,255,255,0.06);
    color: #d7e7ff;
}

.kanban-card.dragging {
    opacity: 0.55;
    transform: rotate(1.5deg);
}

.kanban-column.drop-target {
    outline: 2px dashed rgba(125, 211, 252, 0.75);
    outline-offset: 4px;
}

.card-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.card-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.card-detail-wide {
    grid-column: 1 / -1;
}

.compact-card .card-body {
    padding: 1rem;
}

.compact-form {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.card-inline-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.checklist-list,
.comment-list,
.history-list,
.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.checklist-item,
.comment-card,
.history-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 0.9rem 1rem;
}

.checklist-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
}

    .checklist-item.done span {
        text-decoration: line-through;
        color: #8ea3ca;
    }

.check-toggle {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    background: rgba(37, 99, 235, 0.15);
    color: #eaf3ff;
    font-weight: 800;
}

.comment-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
    color: #d7e7ff;
}

.comment-card p,
.history-item p {
    margin: 0;
    color: #b8cae6;
    white-space: pre-wrap;
}

.history-item strong,
.history-item span,
.history-item small {
    display: block;
}

.history-item span {
    color: #dce9ff;
    margin-top: 0.2rem;
}

.history-item small {
    color: #8ea3ca;
    margin: 0.2rem 0 0.45rem 0;
}

.attachment-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 0.9rem 1rem;
}

.attachment-card-image {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) auto;
    align-items: center;
}

.attachment-main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.attachment-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59,130,246,.9), rgba(6,182,212,.75));
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.attachment-main strong {
    display: block;
    color: #f4f8ff;
    word-break: break-word;
}

.attachment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.3rem;
    color: #9fb6db;
    font-size: 0.85rem;
}

.attachment-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-shrink: 0;
}

    .attachment-actions form {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

.attachment-thumb-link {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}

.attachment-thumb {
    display: block;
    width: 100%;
    height: 96px;
    object-fit: cover;
}

.compact-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.card-detail-shell .card-header {
    padding: 0.85rem 1rem;
}

.card-detail-shell .card-body textarea {
    min-height: 88px;
}

.card-detail-shell .card {
    background: linear-gradient(180deg, rgba(17, 28, 49, 0.98), rgba(10, 18, 33, 0.98));
    border: 1px solid rgba(124, 181, 255, 0.12);
    box-shadow: 0 18px 36px rgba(2, 8, 23, 0.34);
}

.card-detail-shell .card-header.bg-primary {
    background: linear-gradient(135deg, #2a77f4, #1d4ed8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-detail-shell .card-body,
.card-detail-shell .card-body label,
.card-detail-shell .history-item strong,
.card-detail-shell .comment-head strong,
.card-detail-shell .attachment-main strong,
.card-detail-shell .checklist-item span {
    color: #eef4ff;
}

.card-detail-shell .text-muted,
.card-detail-shell small.text-muted,
.card-detail-shell .comment-head span,
.card-detail-shell .attachment-meta span {
    color: #9ab1da !important;
}

.card-detail-shell .card-body .form-control,
.card-detail-shell .card-body .form-select,
.card-detail-shell .card-body textarea,
.card-detail-shell .card-body select,
.card-detail-shell .card-body input {
    background: linear-gradient(180deg, rgba(10, 18, 33, 0.96), rgba(14, 23, 41, 0.96)) !important;
    border-color: rgba(124, 181, 255, 0.14) !important;
    color: #f8fbff !important;
}

    .card-detail-shell .card-body .form-control::placeholder,
    .card-detail-shell .card-body textarea::placeholder,
    .card-detail-shell .card-body input::placeholder {
        color: rgba(154, 177, 218, 0.78) !important;
    }

    .card-detail-shell .card-body .form-control:focus,
    .card-detail-shell .card-body .form-select:focus,
    .card-detail-shell .card-body textarea:focus,
    .card-detail-shell .card-body select:focus,
    .card-detail-shell .card-body input:focus {
        border-color: rgba(96, 165, 250, 0.6) !important;
        box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15) !important;
    }

.card-detail-shell .checklist-item,
.card-detail-shell .comment-card,
.card-detail-shell .history-item,
.card-detail-shell .attachment-card {
    background: linear-gradient(180deg, rgba(28, 41, 68, 0.92), rgba(20, 31, 52, 0.96));
    border-color: rgba(124, 181, 255, 0.1);
}

    .card-detail-shell .history-item span,
    .card-detail-shell .history-item small,
    .card-detail-shell .comment-card p,
    .card-detail-shell .history-item p {
        color: #c7d8f3;
    }

.card-detail-shell .check-toggle {
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

body[data-theme="light"] .card-detail-shell .card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 34px rgba(148, 163, 184, 0.16);
}

body[data-theme="light"] .card-detail-shell .card-header.bg-primary {
    background: linear-gradient(135deg, #2f7bf7, #2563eb) !important;
    border-bottom-color: rgba(37, 99, 235, 0.1);
}

body[data-theme="light"] .card-detail-shell .card-body,
body[data-theme="light"] .card-detail-shell .card-body label,
body[data-theme="light"] .card-detail-shell .history-item strong,
body[data-theme="light"] .card-detail-shell .comment-head strong,
body[data-theme="light"] .card-detail-shell .attachment-main strong,
body[data-theme="light"] .card-detail-shell .checklist-item span {
    color: #0f172a !important;
}

body[data-theme="light"] .card-detail-shell .text-muted,
body[data-theme="light"] .card-detail-shell small.text-muted,
body[data-theme="light"] .card-detail-shell .comment-head span,
body[data-theme="light"] .card-detail-shell .attachment-meta span,
body[data-theme="light"] .card-detail-shell .history-item span,
body[data-theme="light"] .card-detail-shell .history-item small,
body[data-theme="light"] .card-detail-shell .comment-card p,
body[data-theme="light"] .card-detail-shell .history-item p {
    color: #64748b !important;
}

body[data-theme="light"] .card-detail-shell .card-body .form-control,
body[data-theme="light"] .card-detail-shell .card-body .form-select,
body[data-theme="light"] .card-detail-shell .card-body textarea,
body[data-theme="light"] .card-detail-shell .card-body select,
body[data-theme="light"] .card-detail-shell .card-body input {
    background: linear-gradient(180deg, rgba(232, 239, 250, 0.98), rgba(219, 230, 246, 0.98)) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    color: #17304f !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

    body[data-theme="light"] .card-detail-shell .card-body .form-control::placeholder,
    body[data-theme="light"] .card-detail-shell .card-body textarea::placeholder,
    body[data-theme="light"] .card-detail-shell .card-body input::placeholder {
        color: rgba(71, 85, 105, 0.84) !important;
    }

    body[data-theme="light"] .card-detail-shell .card-body .form-control:focus,
    body[data-theme="light"] .card-detail-shell .card-body .form-select:focus,
    body[data-theme="light"] .card-detail-shell .card-body textarea:focus,
    body[data-theme="light"] .card-detail-shell .card-body select:focus,
    body[data-theme="light"] .card-detail-shell .card-body input:focus {
        background: linear-gradient(180deg, rgba(240, 245, 255, 0.98), rgba(228, 237, 251, 0.98)) !important;
        border-color: rgba(59, 130, 246, 0.42) !important;
        box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.12) !important;
    }

body[data-theme="light"] .card-detail-shell .checklist-item,
body[data-theme="light"] .card-detail-shell .comment-card,
body[data-theme="light"] .card-detail-shell .history-item,
body[data-theme="light"] .card-detail-shell .attachment-card {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(237, 244, 252, 0.98));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 22px rgba(148, 163, 184, 0.1);
}

body[data-theme="light"] .card-detail-shell .check-toggle {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

@media (max-width: 992px) {
    .board-hero-content {
        align-items: flex-start;
    }

    .card-detail-shell {
        grid-template-columns: 1fr;
    }

    .card-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .kanban-column {
        width: 88vw;
    }

    .card-inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .attachment-card {
        flex-direction: column;
        align-items: stretch;
    }

    .attachment-card-image {
        grid-template-columns: 1fr;
    }

    .attachment-actions {
        width: 100%;
        flex-direction: column;
    }
}

/* Layout and board compact overrides */
.app-login-shell {
    padding: 0.14rem 0.32rem;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.05);
}

.app-login-nav {
    flex-wrap: nowrap;
}

.app-user-greeting {
    color: #c9d7f2 !important;
    white-space: nowrap;
    font-size: 0.78rem;
}

.app-inline-form {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.board-hero-compact {
    padding: 1rem 1.15rem;
    border-radius: 22px;
}

.board-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.board-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

    .board-actions .btn {
        margin-bottom: 0;
    }

.board-control-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.board-panel .card-body {
    padding: 0.95rem 1rem;
}

.compact-filter-form {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

    .compact-filter-form .form-label {
        margin-bottom: 0.3rem;
        font-size: 0.9rem;
    }

    .compact-filter-form .form-control,
    .compact-filter-form .form-select {
        min-height: 42px;
    }

.kanban-column .kanban-stack {
    min-height: 120px;
}

.kanban-card {
    padding: 0.85rem;
}

    .kanban-card h3 {
        margin: 0.55rem 0 0.4rem 0;
    }

    .kanban-card p {
        font-size: 0.88rem;
        margin-bottom: 0.7rem;
    }

.kanban-card-footer {
    margin-bottom: 0.6rem;
}

@media (max-width: 992px) {
    .board-topbar {
        align-items: stretch;
    }

    .board-actions {
        width: 100%;
    }

        .board-actions .btn {
            flex: 1 1 0;
            width: auto;
        }

    .app-login-shell {
        width: 100%;
    }

    .app-login-nav {
        justify-content: space-between;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .board-hero-compact {
        padding: 0.9rem;
    }

    .board-badge {
        margin-bottom: 0.45rem;
    }

    .board-subtitle {
        font-size: 0.9rem;
    }

    .board-stats {
        width: 100%;
    }

    .board-stat {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.7rem 0.85rem;
    }

    .board-context {
        gap: 0.45rem;
    }

        .board-context span {
            font-size: 0.76rem;
            padding: 0.34rem 0.7rem;
        }

    .board-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

        .board-actions .btn {
            width: 100%;
        }

    .kanban-board-shell {
        overflow-x: visible;
    }

    .navbar-brand {
        max-width: calc(100vw - 92px);
    }

    .app-brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        padding: 0.18rem;
    }

    .app-brand-line {
        display: block;
        min-width: 0;
    }

    .app-brand-title {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.88rem;
    }

    .app-brand-subtitle {
        display: none;
    }
}

/* Global motion and refined layout */
body.app-body {
    --cursor-x: 50vw;
    --cursor-y: 25vh;
    --app-footer-height: 88px;
    background: radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(56, 123, 255, 0.08), transparent 18rem), linear-gradient(180deg, #08111f 0%, #091525 40%, #0b1629 100%);
    padding-top: 0;
    padding-bottom: calc(var(--app-footer-height) + 1.2rem);
    min-height: 100vh;
}

body[data-theme="light"].app-body {
    background: radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(56, 123, 255, 0.09), transparent 18rem), linear-gradient(180deg, #f6f9ff 0%, #edf4ff 40%, #e8f1ff 100%);
}

.app-navbar,
.surface-card,
.premium-card,
.btn,
.table tbody tr,
.kanban-card,
.conversation-list-item,
.chat-bubble {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease, opacity 0.28s ease;
}

.app-navbar {
    backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
}

body.app-body > .container-fluid.px-3.px-lg-5.mt-3 {
    min-height: calc(100vh - var(--navbar-height) - var(--app-footer-height));
}

.app-main-shell {
    margin-top: 0 !important;
}

body.app-body > .container-fluid.px-3.px-lg-5.mt-3 {
    min-height: calc(100vh - var(--navbar-height) - var(--app-footer-height));
}

.main-content {
    padding-top: var(--navbar-height);
}

.app-brand-line {
    display: inline-flex;
    align-items: center;
}

.navbar-nav .nav-link {
    border-radius: 12px;
    padding: 0.6rem 0.8rem !important;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
    }

.page-shell {
    display: grid;
    gap: 1rem;
    padding-top: 0.15rem;
}

[data-motion] {
    opacity: 0;
    transform: translateY(18px) scale(0.992);
}

    [data-motion].is-visible,
    body.app-ready [data-motion="none"] {
        opacity: 1;
        transform: none;
    }

.surface-card {
    background: linear-gradient(155deg, rgba(17, 29, 58, 0.96), rgba(10, 18, 36, 0.96));
    border: 1px solid rgba(101, 142, 219, 0.16);
    border-radius: 24px;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
}

    .surface-card:hover {
        border-color: rgba(114, 162, 255, 0.28);
        box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
    }

.section-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    background: rgba(80, 127, 221, 0.18);
    color: #c8dcff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.admin-dashboard-page h1,
.conversation-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 3.1vw, 3rem);
    letter-spacing: -0.04em;
    color: #fff;
}

.admin-hero,
.conversation-hero {
    padding: 1.35rem 1.45rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.admin-hero-context,
.conversation-hero-meta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

    .admin-hero-context span,
    .conversation-tag {
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 0.8rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.05);
        color: #bcd1f8;
        text-decoration: none;
    }

.admin-metric-grid,
.admin-insight-grid,
.admin-bottom-grid {
    display: grid;
    gap: 1rem;
}

.admin-dashboard-premium {
    gap: 0.9rem;
}

.admin-dashboard-hero-grid,
.admin-dashboard-kpi-row,
.admin-dashboard-core-grid,
.admin-dashboard-secondary-grid,
.admin-dashboard-bottom-grid {
    display: grid;
    gap: 0.9rem;
}

.admin-dashboard-hero-grid {
    grid-template-columns: 1.45fr 0.95fr;
}

.admin-dashboard-kpi-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-dashboard-core-grid,
.admin-dashboard-secondary-grid,
.admin-dashboard-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-executive-summary,
.dashboard-snapshot-card,
.dashboard-panel,
.compact-kpi-card {
    padding: 0.95rem 1rem;
}

.dashboard-compact-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

    .dashboard-compact-head h1 {
        margin: 0.15rem 0 0;
        font-size: 1.85rem;
        line-height: 1.04;
        letter-spacing: -0.04em;
    }

.dashboard-inline-meta {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

    .dashboard-inline-meta span,
    .dashboard-story-kicker,
    .compact-kpi-label {
        color: #8ea3ca;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .dashboard-inline-meta span {
        padding: 0.45rem 0.7rem;
        border-radius: 999px;
        background: rgba(255,255,255,.05);
    }

.dashboard-story-grid,
.dashboard-snapshot-grid {
    display: grid;
    gap: 0.75rem;
}

.dashboard-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-story-card {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}

    .dashboard-story-card p {
        margin: 0.4rem 0 0;
        color: #d7e4ff;
        line-height: 1.55;
    }

.dashboard-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.snapshot-tile {
    padding: 0.95rem;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}

    .snapshot-tile span {
        display: block;
        color: #93acd8;
        font-size: 0.8rem;
    }

    .snapshot-tile strong {
        display: block;
        margin-top: 0.35rem;
        color: #fff;
        font-size: 1.6rem;
        line-height: 1.05;
    }

.compact-kpi-card {
    min-height: 0;
}

    .compact-kpi-card strong {
        display: block;
        margin-top: 0.25rem;
        color: #fff;
        font-size: 2rem;
        line-height: 1;
    }

    .compact-kpi-card p {
        margin: 0.45rem 0 0;
        color: #90a7d3;
        font-size: 0.9rem;
    }

.dashboard-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

    .dashboard-panel-head h2 {
        margin: 0.15rem 0 0;
        font-size: 1.1rem;
        color: #fff;
    }

.daily-summary-grid--dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-insight-grid {
    grid-template-columns: 1.35fr 0.9fr;
}

.admin-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-tile {
    padding: 1.2rem;
}

.metric-kicker {
    display: block;
    color: #9db4e6;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.metric-tile strong {
    display: block;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: #fff;
    line-height: 1;
}

.metric-tile p {
    margin: 0.8rem 0 0;
    color: #88a0cc;
}

.insight-card,
.dashboard-block {
    padding: 1.15rem;
}

.insight-head,
.dashboard-block-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .insight-head h2,
    .dashboard-block-head h2,
    .conversation-thread-header h2,
    .empty-thread-card h2 {
        margin: 0.2rem 0 0;
        color: #fff;
        font-size: 1.3rem;
    }

.insight-bars {
    display: grid;
    gap: 0.95rem;
}

.insight-bar-row {
    display: grid;
    gap: 0.45rem;
}

.insight-bar-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #dbe7ff;
}

.insight-bar-track {
    position: relative;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.insight-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    min-width: 1.4rem;
}

    .insight-bar-fill.is-warning,
    .status-pill.is-warning {
        background: linear-gradient(90deg, #f6c34d, #ffdf87);
        color: #403100;
    }

    .insight-bar-fill.is-success,
    .status-pill.is-success {
        background: linear-gradient(90deg, #19c37d, #61f0b4);
        color: #06311f;
    }

    .insight-bar-fill.is-danger,
    .status-pill.is-danger {
        background: linear-gradient(90deg, #ff6e6e, #ff9f9f);
        color: #3c0c0c;
    }

.daily-summary-grid {
    display: grid;
    gap: 0.9rem;
}

.daily-summary-item {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

    .daily-summary-item strong {
        display: block;
        font-size: 1.65rem;
        color: #fff;
    }

    .daily-summary-item span {
        color: #98add5;
        font-size: 0.92rem;
    }

.dashboard-table-shell {
    max-height: 430px;
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-table-shell--small {
    max-height: 340px;
}

.compact-dark-table {
    margin: 0;
    color: #e7f0ff;
}

    .compact-dark-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #1a2742;
        color: #b6c9ef;
        border-color: rgba(255, 255, 255, 0.06);
    }

    .compact-dark-table td {
        background: rgba(10, 18, 36, 0.9);
        border-color: rgba(255, 255, 255, 0.06);
        vertical-align: middle;
    }

    .compact-dark-table tbody tr:hover td {
        background: rgba(22, 35, 63, 0.95);
    }

.table-value-chip,
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.table-value-chip {
    background: rgba(255, 255, 255, 0.05);
    color: #dce9ff;
}

    .table-value-chip.is-old {
        color: #ffc2c2;
    }

    .table-value-chip.is-new {
        color: #abffca;
    }

.conversation-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 1rem;
}

.conversation-page {
    gap: 0.8rem;
}

.conversation-page-header {
    position: sticky;
    top: 70px;
    z-index: 1005;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1rem;
    min-height: 0;
}

.conversation-page-header-main {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.conversation-page-title-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

    .conversation-page-title-row h1 {
        margin: 0;
        font-size: 1.1rem;
        line-height: 1;
        letter-spacing: -0.02em;
    }

.conversation-page-subtle {
    color: #8ea3ca;
    font-size: 0.82rem;
    line-height: 1.2;
}

.conversation-page-stats {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.conversation-page-stat {
    min-width: 92px;
    padding: 0.5rem 0.8rem;
    border-radius: 16px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}

    .conversation-page-stat strong {
        display: block;
        color: #fff;
        font-size: 1.2rem;
        line-height: 1;
    }

    .conversation-page-stat span {
        color: #8ea3ca;
        font-size: 0.78rem;
    }

.conversation-layout--messenger {
    align-items: stretch;
}

.conversation-sidebar,
.conversation-main {
    display: grid;
    gap: 1rem;
}

.conversation-layout--messenger .conversation-sidebar,
.conversation-layout--messenger .conversation-main {
    min-height: calc(100vh - 164px);
    min-width: 0;
}

.conversation-create-card,
.conversation-list-card,
.conversation-thread-card,
.empty-thread-card {
    padding: 1.1rem;
}

.conversation-thread-card {
    padding-top: 0.9rem;
}

.conversation-list-card,
.conversation-thread-card,
.empty-thread-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.conversation-sidebar {
    grid-template-rows: auto minmax(0, 1fr);
}

.conversation-main {
    min-height: 0;
}

.conversation-form,
.conversation-filter-form,
.conversation-reply-form {
    display: grid;
    gap: 0.85rem;
}

.conversation-list {
    display: grid;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100vh - 470px);
    overflow: auto;
    padding-right: 0.15rem;
}

.conversation-list-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

    .conversation-list-item:hover,
    .conversation-list-item.is-active {
        transform: translateY(-2px);
        border-color: rgba(95, 151, 255, 0.28);
        background: rgba(49, 91, 171, 0.18);
        box-shadow: inset 3px 0 0 #62a4ff;
    }

.conversation-list-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #356ff1, #67b9ff);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 10px 24px rgba(35, 99, 227, 0.24);
}

.conversation-list-body {
    min-width: 0;
}

.conversation-list-toolbar {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

    .conversation-list-toolbar h2 {
        margin: 0;
        color: #fff;
        font-size: 1.2rem;
    }

.conversation-filter-form--inline {
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
}

.conversation-list-head,
.conversation-list-meta,
.conversation-thread-header,
.chat-bubble-meta,
.conversation-reply-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

    .conversation-list-head strong,
    .conversation-thread-header strong {
        color: #fff;
    }

    .conversation-list-head span,
    .conversation-list-meta span,
    .conversation-list-item p,
    .conversation-thread-summary,
    .chat-bubble-meta span,
    .empty-thread-card p {
        color: #9ab1da;
    }

.conversation-list-item p,
.chat-bubble p {
    margin: 0;
}

.conversation-list-item p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.conversation-thread-tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
    margin-bottom: 1.15rem;
}

.conversation-thread-header {
    margin-bottom: 0.45rem;
}

.conversation-thread-messages {
    display: grid;
    grid-auto-rows: max-content;
    align-content: start;
    align-items: start;
    gap: 0.8rem;
    flex: 1 1 auto;
    min-height: 0;
    height: calc(100vh - 390px);
    max-height: calc(100vh - 390px);
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 0.15rem 0.1rem 0.1rem;
    background: linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,.01)), radial-gradient(circle at 20% 20%, rgba(82, 142, 255, 0.05), transparent 22rem);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.04);
    padding: 1rem;
}

.chat-bubble {
    width: fit-content;
    max-width: min(760px, 78%);
    height: auto;
    justify-self: start;
    align-self: start;
    padding: 0.9rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

    .chat-bubble.is-own {
        justify-self: end;
        align-self: start;
        background: linear-gradient(145deg, rgba(38, 93, 208, 0.4), rgba(18, 49, 120, 0.3));
        border-color: rgba(108, 164, 255, 0.28);
    }

.conversation-thread-messages::-webkit-scrollbar,
.conversation-list::-webkit-scrollbar {
    width: 10px;
}

.conversation-thread-messages::-webkit-scrollbar-track,
.conversation-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
}

.conversation-thread-messages::-webkit-scrollbar-thumb,
.conversation-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3d7cff, #66c4ff);
    border-radius: 999px;
}

.conversation-reply-form {
    margin-top: 0.9rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(255,255,255,.06);
}

.empty-state-inline {
    padding: 1rem;
    border-radius: 16px;
    color: #9ab1da;
    background: rgba(255, 255, 255, 0.03);
}

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

    .conversation-layout {
        grid-template-columns: 320px minmax(0, 1fr);
    }
}

@media (max-width: 992px) {
    .admin-metric-grid,
    .admin-bottom-grid,
    .admin-insight-grid,
    .conversation-layout {
        grid-template-columns: 1fr;
    }

    .admin-hero,
    .conversation-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .conversation-page-header {
        top: 68px;
        flex-direction: column;
        align-items: flex-start;
    }

    .conversation-page-stats {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container-fluid.px-3.px-lg-5.mt-3 {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    body.app-body {
        --app-footer-height: 112px;
        padding-bottom: calc(var(--app-footer-height) + 1rem);
    }

    .app-login-shell {
        padding: 0.15rem;
        border-radius: 16px;
        width: 100%;
    }

    .app-footer {
        padding: 0.85rem 0 1rem 0;
    }

    .conversation-thread-messages,
    .conversation-list {
        max-height: none;
        height: auto;
    }

    .conversation-filter-form--inline {
        grid-template-columns: 1fr;
    }

    .conversation-page-header {
        top: 78px;
        padding: 0.65rem 0.85rem;
    }

    .conversation-page-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.3rem;
    }

        .conversation-page-title-row h1 {
            font-size: 1rem;
        }

    .conversation-page-subtle {
        font-size: 0.76rem;
    }

    .conversation-page-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .conversation-page-stat {
        width: 100%;
        min-width: 0;
    }

    .dashboard-table-shell,
    .dashboard-table-shell--small {
        max-height: none;
    }

    .compact-dark-table {
        min-width: 780px;
    }

    .admin-hero,
    .conversation-hero,
    .metric-tile,
    .insight-card,
    .dashboard-block,
    .conversation-create-card,
    .conversation-list-card,
    .conversation-thread-card,
    .empty-thread-card {
        padding: 1rem;
    }
}

/* Meeting report panel */
.meeting-report-page {
    gap: 1rem;
}

.meeting-hero,
.meeting-filter-card,
.story-card,
.analytics-card,
.timeline-card {
    padding: 0.95rem;
}

.meeting-hero {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    align-items: end;
}

    .meeting-hero h1 {
        margin: 0;
        font-size: clamp(1.55rem, 2.2vw, 2rem);
        color: #fff;
    }

.meeting-hero-context {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 0.6rem;
}

.meeting-context-chip {
    padding: 0.7rem 0.85rem;
    border-radius: 16px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.06);
}

    .meeting-context-chip span,
    .story-meta-row span,
    .timeline-side-note {
        color: #9ab1da;
        font-size: 0.9rem;
    }

    .meeting-context-chip strong {
        display: block;
        color: #fff;
        margin-top: 0.2rem;
    }

.meeting-filter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.7rem;
    align-items: end;
}

.meeting-filter-actions .btn {
    width: 100%;
    min-height: 44px;
}

.meeting-story-grid,
.meeting-analytics-grid,
.meeting-detail-grid {
    display: grid;
    gap: 0.85rem;
}

.meeting-story-grid {
    grid-template-columns: 1.3fr 1fr;
}

.meeting-analytics-grid,
.meeting-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-card h2,
.analytics-card h2,
.timeline-card h2 {
    margin: 0.1rem 0 0.3rem;
    color: #fff;
    font-size: 1rem;
}

.story-card p {
    color: #d7e4ff;
    margin: 0;
    line-height: 1.6;
}

.story-meta-row {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 0.7rem;
}

.meeting-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.meeting-kpi {
    padding: 0.75rem;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}

    .meeting-kpi strong {
        display: block;
        color: #fff;
        font-size: 1.5rem;
        line-height: 1;
    }

    .meeting-kpi span {
        color: #95abd4;
        font-size: 0.9rem;
    }

.analytics-bars {
    display: grid;
    gap: 0.75rem;
}

.analytics-bar-row {
    display: grid;
    gap: 0.3rem;
}

.analytics-bar-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    color: #d9e7ff;
}

.analytics-bar-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    overflow: hidden;
}

.analytics-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    min-width: 1.2rem;
}

    .analytics-bar-fill.is-primary,
    .status-pill.is-primary {
        background: linear-gradient(90deg, #3c83ff, #69c9ff);
        color: #ffffff;
    }

    .analytics-bar-fill.is-success {
        background: linear-gradient(90deg, #19c37d, #61f0b4);
    }

    .analytics-bar-fill.is-danger {
        background: linear-gradient(90deg, #ff6e6e, #ff9f9f);
    }

    .analytics-bar-fill.is-warning {
        background: linear-gradient(90deg, #f6c34d, #ffe38e);
    }

.user-activity-list,
.process-highlight-list,
.timeline-list {
    display: grid;
    gap: 0.65rem;
}

.user-activity-item,
.process-highlight-card,
.timeline-item {
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}

.user-activity-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

    .user-activity-item strong,
    .process-highlight-card strong,
    .timeline-item h3 {
        color: #fff;
    }

    .user-activity-item span,
    .process-highlight-meta span,
    .process-highlight-details span,
    .timeline-group,
    .timeline-date,
    .timeline-meta span,
    .table-title-stack span {
        color: #98afd8;
    }

.user-activity-metrics,
.process-highlight-meta,
.process-highlight-details,
.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.process-highlight-card {
    display: grid;
    gap: 0.45rem;
    text-decoration: none;
}

    .process-highlight-card:hover {
        transform: translateY(-2px);
        border-color: rgba(108, 158, 255, .28);
    }

.process-highlight-head,
.timeline-topline {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: start;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: 0.45rem;
    box-shadow: 0 0 0 6px rgba(255,255,255,.03);
}

    .timeline-dot.is-success {
        background: #27d28e;
    }

    .timeline-dot.is-danger {
        background: #ff7d7d;
    }

    .timeline-dot.is-warning {
        background: #f7cb5c;
    }

    .timeline-dot.is-primary {
        background: #5f98ff;
    }

.timeline-content h3 {
    margin: 0.2rem 0 0.25rem;
    font-size: 0.98rem;
}

.timeline-content p {
    margin: 0;
    color: #d7e4ff;
}

.table-title-stack {
    display: grid;
    gap: 0.25rem;
    min-width: 240px;
}

.dashboard-executive-summary h1 {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    line-height: 1.05;
}

.dashboard-executive-summary p,
.meeting-hero .board-subtitle {
    font-size: 0.9rem;
    line-height: 1.45;
}

.dashboard-panel h2,
.dashboard-story-card p,
.compact-kpi-card p,
.daily-summary-item span,
.meeting-kpi span,
.analytics-bar-meta span,
.analytics-bar-meta strong,
.timeline-content p,
.timeline-side-note,
.story-meta-row span,
.user-activity-item span,
.process-highlight-meta span,
.process-highlight-details span,
.table-title-stack span {
    font-size: 0.88rem;
}

.meeting-analytics-grid--compact .analytics-card,
.analytics-card--compact {
    min-height: 0;
}

.analytics-bars--compact {
    gap: 0.6rem;
}

.analytics-bar-row--compact .analytics-bar-meta {
    font-size: 0.86rem;
}

.dual-metric-list {
    display: grid;
    gap: 0.62rem;
}

.dual-metric-list--scroll {
    max-height: 20.5rem;
    overflow-y: auto;
    padding-right: 0.34rem;
}

.dual-metric-row {
    display: grid;
    grid-template-columns: minmax(230px, max-content) minmax(0, 1fr);
    gap: 0.78rem;
    align-items: center;
    padding: 0.74rem 0.82rem;
    border-radius: 12px;
    background: rgba(12, 22, 42, 0.52);
    border: 1px solid rgba(98, 132, 191, 0.16);
}

    .dual-metric-row:first-child {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 0.2rem 0 0.5rem;
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

.dual-metric-head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
    min-width: 0;
}

    .dual-metric-head strong {
        color: #fff;
        font-size: 0.9rem;
    }

    .dual-metric-head span {
        color: #9eb3d8;
        font-size: 0.8rem;
    }

.dual-metric-body {
    display: grid;
    grid-template-columns: minmax(260px, max-content) minmax(180px, 1fr);
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
}

.dual-metric-row:first-child .dual-metric-body {
    grid-template-columns: minmax(0, 1fr);
}

.dual-metric-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
    align-content: center;
    min-width: 0;
}

    .dual-metric-chips .status-pill {
        justify-content: center;
        width: 100%;
        min-height: 2rem;
        border-radius: 10px;
        font-weight: 800;
        white-space: nowrap;
        padding-left: 0.42rem;
        padding-right: 0.42rem;
    }

.dual-metric-row:first-child .dual-metric-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
}

    .dual-metric-row:first-child .dual-metric-chips .status-pill {
        min-height: 2.28rem;
        font-size: 0.82rem;
    }

.dual-bar-stack {
    display: grid;
    gap: 0.38rem;
    min-width: 0;
}

.dual-metric-row:first-child .dual-bar-stack {
    display: none;
}

.dual-bar-line {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0.45rem;
    align-items: center;
}

.dual-bar-label {
    color: #a8bbde;
    font-size: 0.78rem;
}

.dual-metric-row .analytics-bar-track {
    height: 0.54rem;
    background: rgba(148, 163, 184, 0.12);
}

.dual-metric-row .analytics-bar-fill {
    min-width: 0.78rem;
}

.analytics-card--scroll,
.timeline-card {
    min-height: 0;
}

.user-activity-list--scroll,
.process-highlight-list--scroll {
    max-height: 26rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.timeline-list--scroll {
    max-height: 34rem;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.timeline-card .timeline-list--scroll {
    display: none;
}

.timeline-table-shell {
    max-height: 340px;
}

.timeline-table-shell .dashboard-table td:nth-child(2),
.timeline-table-shell .dashboard-table td:nth-child(3) {
    max-width: 420px;
}

.timeline-table-shell .dashboard-table td:nth-child(3) {
    color: #b9c8e6;
}

.timeline-table-shell .btn {
    min-width: 108px;
}

.process-card-table-card .process-highlight-list {
    display: none !important;
}

.process-card-table-shell {
    max-height: 320px;
}

.process-card-table-shell .btn {
    min-width: 82px;
}

.process-card-table-shell th:nth-child(4),
.process-card-table-shell td:nth-child(4),
.process-card-table-shell th:nth-child(7),
.process-card-table-shell td:nth-child(7),
.process-card-table-shell th:nth-child(8),
.process-card-table-shell td:nth-child(8),
.process-card-table-shell th:nth-child(9),
.process-card-table-shell td:nth-child(9) {
    display: none;
}

.process-card-table-shell th:nth-child(1),
.process-card-table-shell td:nth-child(1) {
    width: 24%;
}

.process-card-table-shell th:nth-child(3),
.process-card-table-shell td:nth-child(3) {
    width: 22%;
}

.process-card-table-shell th:nth-child(5),
.process-card-table-shell td:nth-child(5),
.process-card-table-shell th:nth-child(6),
.process-card-table-shell td:nth-child(6) {
    width: 18%;
}

.process-card-link {
    color: #9fc2ff;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.process-card-link:hover,
.process-card-link:focus {
    color: #ffffff;
    text-decoration: underline;
}

.admin-dashboard-premium {
    gap: 0.9rem;
}

    .admin-dashboard-premium .surface-card,
    .admin-dashboard-premium .dashboard-panel,
    .admin-dashboard-premium .dashboard-executive-summary,
    .admin-dashboard-premium .dashboard-snapshot-card,
    .admin-dashboard-premium .compact-kpi-card {
        padding: 0.9rem;
    }

    .admin-dashboard-premium .dashboard-story-grid,
    .admin-dashboard-premium .dashboard-snapshot-grid,
    .admin-dashboard-premium .admin-dashboard-kpi-row,
    .admin-dashboard-premium .admin-dashboard-core-grid,
    .admin-dashboard-premium .admin-dashboard-secondary-grid,
    .admin-dashboard-premium .admin-dashboard-bottom-grid {
        gap: 0.85rem;
    }

    .admin-dashboard-premium .snapshot-tile,
    .admin-dashboard-premium .daily-summary-item,
    .admin-dashboard-premium .dashboard-story-card,
    .admin-dashboard-premium .user-activity-item {
        padding: 0.75rem 0.85rem;
    }

        .admin-dashboard-premium .compact-kpi-card strong,
        .admin-dashboard-premium .snapshot-tile strong,
        .admin-dashboard-premium .daily-summary-item strong {
            font-size: 1.1rem;
        }

    .admin-dashboard-premium .dashboard-panel-head {
        margin-bottom: 0.6rem;
    }

body[data-theme="light"] .surface-card,
body[data-theme="light"] .meeting-context-chip,
body[data-theme="light"] .meeting-kpi,
body[data-theme="light"] .user-activity-item,
body[data-theme="light"] .process-highlight-card,
body[data-theme="light"] .timeline-item,
body[data-theme="light"] .snapshot-tile,
body[data-theme="light"] .daily-summary-item,
body[data-theme="light"] .dashboard-story-card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(27, 50, 94, 0.10);
    box-shadow: 0 18px 38px rgba(28, 42, 74, 0.08);
}

body[data-theme="light"] .dashboard-executive-summary,
body[data-theme="light"] .dashboard-panel,
body[data-theme="light"] .analytics-card,
body[data-theme="light"] .timeline-card,
body[data-theme="light"] .meeting-hero,
body[data-theme="light"] .meeting-filter-card,
body[data-theme="light"] .story-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.98));
}

    body[data-theme="light"] .dashboard-executive-summary h1,
    body[data-theme="light"] .meeting-hero h1,
    body[data-theme="light"] .story-card h2,
    body[data-theme="light"] .analytics-card h2,
    body[data-theme="light"] .timeline-card h2,
    body[data-theme="light"] .dashboard-panel h2,
    body[data-theme="light"] .user-activity-item strong,
    body[data-theme="light"] .process-highlight-card strong,
    body[data-theme="light"] .timeline-item h3,
    body[data-theme="light"] .meeting-context-chip strong,
    body[data-theme="light"] .meeting-kpi strong,
    body[data-theme="light"] .snapshot-tile strong,
    body[data-theme="light"] .daily-summary-item strong,
    body[data-theme="light"] .analytics-bar-meta,
    body[data-theme="light"] .table-title-stack strong {
        color: #13294d;
    }

    body[data-theme="light"] .dashboard-executive-summary p,
    body[data-theme="light"] .meeting-hero .board-subtitle,
    body[data-theme="light"] .dashboard-story-card p,
    body[data-theme="light"] .compact-kpi-card p,
    body[data-theme="light"] .daily-summary-item span,
    body[data-theme="light"] .meeting-kpi span,
    body[data-theme="light"] .timeline-content p,
    body[data-theme="light"] .timeline-side-note,
    body[data-theme="light"] .story-meta-row span,
    body[data-theme="light"] .user-activity-item span,
    body[data-theme="light"] .process-highlight-meta span,
    body[data-theme="light"] .process-highlight-details span,
    body[data-theme="light"] .timeline-group,
    body[data-theme="light"] .timeline-date,
    body[data-theme="light"] .timeline-meta span,
    body[data-theme="light"] .table-title-stack span,
    body[data-theme="light"] .meeting-context-chip span {
        color: #546987;
    }

    body[data-theme="light"] .meeting-filter-card .form-control,
    body[data-theme="light"] .meeting-filter-card .form-select,
    body[data-theme="light"] .meeting-filter-card textarea,
    body[data-theme="light"] .meeting-filter-card select,
    body[data-theme="light"] .meeting-filter-card input {
        background: linear-gradient(180deg, rgba(229, 238, 252, 0.98), rgba(216, 228, 246, 0.98)) !important;
        border-color: rgba(148, 163, 184, 0.32) !important;
        color: #17304f !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
    }

        body[data-theme="light"] .meeting-filter-card .form-control::placeholder,
        body[data-theme="light"] .meeting-filter-card textarea::placeholder,
        body[data-theme="light"] .meeting-filter-card input::placeholder {
            color: rgba(71, 85, 105, 0.84) !important;
        }

        body[data-theme="light"] .meeting-filter-card .form-control:focus,
        body[data-theme="light"] .meeting-filter-card .form-select:focus,
        body[data-theme="light"] .meeting-filter-card textarea:focus,
        body[data-theme="light"] .meeting-filter-card select:focus,
        body[data-theme="light"] .meeting-filter-card input:focus {
            background: linear-gradient(180deg, rgba(239, 245, 255, 0.98), rgba(226, 236, 252, 0.98)) !important;
            border-color: rgba(59, 130, 246, 0.42) !important;
            box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.12) !important;
        }

    body[data-theme="light"] .meeting-filter-actions .btn,
    body[data-theme="light"] .meeting-filter-card .btn-primary {
        background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
        border-color: #2563eb !important;
        color: #ffffff !important;
        box-shadow: 0 12px 24px rgba(59, 130, 246, 0.18);
    }

        body[data-theme="light"] .meeting-filter-actions .btn:hover,
        body[data-theme="light"] .meeting-filter-card .btn-primary:hover,
        body[data-theme="light"] .meeting-filter-actions .btn:focus,
        body[data-theme="light"] .meeting-filter-card .btn-primary:focus {
            background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
            border-color: #1d4ed8 !important;
            color: #ffffff !important;
        }

body[data-theme="light"] .analytics-bar-track {
    background: rgba(31, 57, 104, 0.10);
}

body[data-theme="light"] .dual-metric-row {
    background: rgba(242, 247, 255, 0.9);
    border-color: rgba(133, 159, 199, 0.24);
}

body[data-theme="light"] .dual-metric-row:first-child {
    background: transparent;
    border-color: transparent;
}

body[data-theme="light"] .dual-metric-head strong {
    color: #17315c;
}

body[data-theme="light"] .dual-metric-head span,
body[data-theme="light"] .dual-bar-label {
    color: #5a6f90;
}

body[data-theme="light"] .dual-metric-row .analytics-bar-track {
    background: rgba(31, 57, 104, 0.12);
}

body[data-theme="light"] .dashboard-table-shell,
body[data-theme="light"] .dashboard-table-shell .table-responsive {
    background: rgba(255, 255, 255, 0.88);
}

body[data-theme="light"] .compact-dark-table {
    background: #ffffff;
    color: #13294d;
}

    body[data-theme="light"] .compact-dark-table thead th {
        background: #eef4ff;
        color: #193254;
        border-bottom-color: rgba(25, 50, 84, 0.12);
    }

    body[data-theme="light"] .compact-dark-table tbody tr {
        background: #ffffff;
    }

    body[data-theme="light"] .compact-dark-table tbody td {
        color: #193254;
        border-color: rgba(25, 50, 84, 0.10);
    }

    body[data-theme="light"] .compact-dark-table tbody tr:nth-child(even) {
        background: #f8fbff;
    }

    body[data-theme="light"] .compact-dark-table tbody tr:hover {
        background: #eef5ff;
    }

body[data-theme="light"] .table-value-chip.is-old {
    background: #eef2f8;
    color: #50627f;
}

body[data-theme="light"] .table-value-chip.is-new {
    background: #eaf8f0;
    color: #176544;
}

body[data-theme="light"] .timeline-card .btn-outline-light,
body[data-theme="light"] .timeline-item .btn-outline-light {
    background: #1e2f4f;
    border-color: #1e2f4f;
    color: #ffffff;
    opacity: 1 !important;
    box-shadow: 0 10px 24px rgba(31, 48, 79, 0.16);
}

    body[data-theme="light"] .timeline-card .btn-outline-light:hover,
    body[data-theme="light"] .timeline-card .btn-outline-light:focus,
    body[data-theme="light"] .timeline-item .btn-outline-light:hover,
    body[data-theme="light"] .timeline-item .btn-outline-light:focus {
        background: #14233c;
        border-color: #14233c;
        color: #ffffff;
    }

body[data-theme="light"] .timeline-card a.btn,
body[data-theme="light"] .timeline-item a.btn,
body[data-theme="light"] .timeline-card .btn-sm,
body[data-theme="light"] .timeline-item .btn-sm {
    color: #ffffff !important;
    background: #1e2f4f;
    border-color: #1e2f4f;
    opacity: 1 !important;
}

    body[data-theme="light"] .timeline-card a.btn:hover,
    body[data-theme="light"] .timeline-item a.btn:hover,
    body[data-theme="light"] .timeline-card .btn-sm:hover,
    body[data-theme="light"] .timeline-item .btn-sm:hover {
        color: #ffffff !important;
        background: #14233c;
        border-color: #14233c;
    }

body[data-theme="light"] .dashboard-panel-head .btn-outline-light,
body[data-theme="light"] .dashboard-panel-head a.btn-outline-light,
body[data-theme="light"] .dashboard-panel-head .btn-sm.btn-outline-light {
    background: #1e2f4f !important;
    border-color: #1e2f4f !important;
    color: #ffffff !important;
    opacity: 1 !important;
    box-shadow: 0 10px 24px rgba(31, 48, 79, 0.16);
}

    body[data-theme="light"] .dashboard-panel-head .btn-outline-light:hover,
    body[data-theme="light"] .dashboard-panel-head .btn-outline-light:focus,
    body[data-theme="light"] .dashboard-panel-head a.btn-outline-light:hover,
    body[data-theme="light"] .dashboard-panel-head a.btn-outline-light:focus,
    body[data-theme="light"] .dashboard-panel-head .btn-sm.btn-outline-light:hover,
    body[data-theme="light"] .dashboard-panel-head .btn-sm.btn-outline-light:focus {
        background: #14233c !important;
        border-color: #14233c !important;
        color: #ffffff !important;
    }

.user-dashboard-page {
    display: grid;
    gap: 1rem;
}

.page-shell {
    gap: 0.9rem;
}

.user-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
    gap: 1rem;
    align-items: start;
    padding: 0.9rem 1rem;
}

    .user-dashboard-hero h1 {
        margin: 0.1rem 0 0.3rem;
        font-size: 1.55rem;
    }

    .user-dashboard-hero p {
        margin: 0;
        max-width: 66ch;
        color: var(--text-soft);
    }

.user-dashboard-hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.user-dashboard-filter-card {
    padding: 0.85rem 0.95rem;
}

.user-dashboard-kpi-row,
.user-dashboard-core-grid,
.user-dashboard-secondary-grid,
.user-dashboard-bottom-grid {
    align-items: stretch;
}

.user-dashboard-assistant-card {
    min-height: 0;
    max-height: 112px;
    overflow: auto;
    justify-content: flex-start;
    align-self: start;
    padding: 0.75rem 0.85rem;
}

.user-dashboard-secondary-grid {
    align-items: start;
}

    .user-dashboard-secondary-grid > .dashboard-panel {
        min-height: 272px;
    }

.user-agenda-list {
    display: grid;
    gap: 0.75rem;
}

.user-dashboard-agenda-panel {
    align-self: start;
}

    .user-dashboard-agenda-panel .user-agenda-list {
        max-height: 156px;
        overflow: auto;
        padding-right: 0.15rem;
    }

.user-agenda-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(101, 142, 219, 0.14);
    background: rgba(20, 31, 54, 0.72);
    text-decoration: none;
    color: inherit;
}

    .user-agenda-item:hover {
        border-color: rgba(96, 165, 250, 0.32);
        transform: translateY(-1px);
    }

    .user-agenda-item strong {
        display: block;
        color: #f8fbff;
    }

    .user-agenda-item span {
        color: var(--text-soft);
    }

.user-agenda-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
    min-width: 220px;
}

    .user-agenda-meta span {
        padding: 0.35rem 0.6rem;
        border-radius: 999px;
        background: rgba(59, 130, 246, 0.14);
        color: #cfe3ff;
        font-size: 0.83rem;
        white-space: nowrap;
    }

.process-highlight-list--scroll {
    max-height: 360px;
    overflow: auto;
}

.user-dashboard-page .compact-kpi-card,
.admin-dashboard-page .compact-kpi-card,
.meeting-report-page .meeting-kpi,
.meeting-report-page .meeting-context-chip,
.user-dashboard-page .meeting-kpi,
.user-dashboard-page .dashboard-story-card,
.user-dashboard-page .dashboard-panel,
.admin-dashboard-page .dashboard-panel,
.meeting-report-page .story-card,
.meeting-report-page .analytics-card,
.meeting-report-page .timeline-card {
    padding: 0.8rem 0.9rem;
}

    .user-dashboard-page .compact-kpi-card strong,
    .admin-dashboard-page .compact-kpi-card strong,
    .meeting-report-page .meeting-kpi strong {
        font-size: 1.05rem;
    }

    .user-dashboard-page .compact-kpi-card p,
    .admin-dashboard-page .compact-kpi-card p,
    .meeting-report-page .meeting-kpi span,
    .meeting-report-page .story-card p,
    .meeting-report-page .analytics-card p {
        font-size: 0.92rem;
    }

    .user-dashboard-page .dashboard-panel-head h2,
    .admin-dashboard-page .dashboard-panel-head h2,
    .meeting-report-page .analytics-head h2,
    .meeting-report-page .story-card h2,
    .meeting-report-page .timeline-card h2 {
        font-size: 1rem;
        margin: 0.08rem 0 0.2rem;
    }

.user-dashboard-page .section-kicker,
.admin-dashboard-page .section-kicker,
.meeting-report-page .section-kicker {
    font-size: 0.76rem;
    padding: 0.38rem 0.68rem;
}

.meeting-hero,
.dashboard-executive-summary {
    padding: 0.9rem 1rem;
}

    .meeting-hero h1,
    .dashboard-compact-head h1 {
        font-size: 1.55rem;
        margin: 0.1rem 0 0.25rem;
    }

    .meeting-hero p,
    .dashboard-story-card p,
    .dashboard-story-card span,
    .timeline-side-note,
    .board-subtitle {
        font-size: 0.92rem;
    }

.meeting-filter-card {
    padding: 0.85rem 0.95rem;
}

.meeting-filter-grid {
    gap: 0.8rem;
}

    .meeting-filter-grid .form-control,
    .meeting-filter-grid .form-select,
    .user-dashboard-page .form-control,
    .user-dashboard-page .form-select {
        min-height: 44px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

.dashboard-table-shell {
    max-height: 320px;
}

.dashboard-table-shell--small {
    max-height: 260px;
}

.dashboard-table,
.dashboard-table.table,
.mobile-analytics-table {
    font-size: 0.92rem;
}

    .dashboard-table thead th,
    .mobile-analytics-table thead th {
        font-size: 0.84rem;
        padding: 0.75rem 0.8rem;
    }

    .dashboard-table tbody td,
    .mobile-analytics-table tbody td {
        padding: 0.7rem 0.8rem;
        vertical-align: middle;
    }

.table-value-chip,
.status-pill {
    padding: 0.3rem 0.62rem;
    font-size: 0.8rem;
}

.analytics-bars--compact .analytics-bar-row,
.analytics-bars .analytics-bar-row {
    gap: 0.32rem;
}

.analytics-bar-meta {
    font-size: 0.92rem;
}

.analytics-bar-track {
    height: 0.8rem;
}

.user-activity-list--scroll,
.timeline-list--scroll,
.process-highlight-list--scroll {
    max-height: 360px;
    overflow: auto;
    padding-right: 0.2rem;
}

.timeline-item,
.user-activity-item,
.process-highlight-card {
    padding: 0.78rem 0.85rem;
}

    .timeline-item h3,
    .user-activity-item strong,
    .process-highlight-card strong {
        font-size: 0.98rem;
    }

.user-dashboard-page .surface-card,
.meeting-report-page .surface-card,
.admin-dashboard-page .surface-card,
.admin-dashboard-page .dashboard-panel,
.meeting-report-page .story-card,
.meeting-report-page .analytics-card,
.meeting-report-page .timeline-card {
    border-radius: 22px;
}

.user-dashboard-page .meeting-kpi,
.meeting-report-page .meeting-kpi,
.meeting-report-page .meeting-context-chip {
    min-height: auto;
}

body[data-theme="light"] .user-dashboard-page .surface-card,
body[data-theme="light"] .meeting-report-page .surface-card,
body[data-theme="light"] .admin-dashboard-page .surface-card {
    box-shadow: 0 14px 30px rgba(120, 142, 177, 0.14);
}

@media (max-width: 991.98px) {
    .meeting-hero h1,
    .dashboard-compact-head h1,
    .user-dashboard-hero h1 {
        font-size: 1.32rem;
    }
}

.process-timeline-panel {
    margin-top: 1rem;
}

body[data-theme="light"] .user-dashboard-hero {
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34%), linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
}

body[data-theme="light"] .user-agenda-item {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(100, 116, 139, 0.14);
}

    body[data-theme="light"] .user-agenda-item strong {
        color: #0f172a;
    }

    body[data-theme="light"] .user-agenda-item span {
        color: #475569;
    }

body[data-theme="light"] .user-agenda-meta span {
    background: rgba(59, 130, 246, 0.12);
    color: #315ea8;
}

@media (max-width: 991.98px) {
    .user-dashboard-hero {
        grid-template-columns: 1fr;
    }

    .user-dashboard-hero-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .admin-dashboard-hero-grid,
    .admin-dashboard-core-grid,
    .admin-dashboard-secondary-grid,
    .admin-dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-kpi-row,
    .dashboard-story-grid,
    .dashboard-snapshot-grid,
    .daily-summary-grid--dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .meeting-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .meeting-story-grid,
    .meeting-analytics-grid,
    .meeting-detail-grid {
        grid-template-columns: 1fr;
    }

    .dual-metric-body {
        grid-template-columns: 1fr;
    }

    .dual-metric-chips {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dual-bar-line {
        grid-template-columns: 1fr;
    }

    .dual-metric-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-dashboard-kpi-row,
    .dashboard-story-grid,
    .dashboard-snapshot-grid,
    .daily-summary-grid--dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-compact-head,
    .dashboard-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-inline-meta {
        justify-content: flex-start;
    }

    .meeting-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .meeting-hero-context,
    .meeting-filter-grid,
    .meeting-kpi-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-dot {
        display: none;
    }
}

.company-form {
    display: grid;
    gap: 1.5rem;
}

.form-section {
    padding: 1.3rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.24);
}

body[data-theme="light"] .form-section {
    background: rgba(59, 130, 246, 0.04);
}

.form-section__header {
    margin-bottom: 1rem;
}

.form-section__title {
    margin: 0;
    font-size: 1rem;
}

.form-section__subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.panel-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.data-grid-shell {
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(12, 20, 36, 0.34);
}

body[data-theme="light"] .data-grid-shell {
    background: rgba(59, 130, 246, 0.04);
}

.data-grid-table {
    margin: 0;
    min-width: 1400px;
    color: var(--text);
}

    .data-grid-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: linear-gradient(180deg, rgba(18, 30, 53, 0.98), rgba(15, 24, 42, 0.96));
        color: #f8fbff;
        font-size: 0.83rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        white-space: nowrap;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

body[data-theme="light"] .data-grid-table thead th {
    background: linear-gradient(180deg, rgba(230, 239, 255, 0.98), rgba(240, 246, 255, 0.96));
    color: #1e3a5f;
    border-bottom-color: rgba(59, 130, 246, 0.10);
}

.data-grid-table td,
.data-grid-table th {
    padding: 1rem 0.9rem;
    border-color: rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

body[data-theme="light"] .data-grid-table td,
body[data-theme="light"] .data-grid-table th {
    border-color: rgba(59, 130, 246, 0.10);
}

.data-grid-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

body[data-theme="light"] .data-grid-table tbody tr:nth-child(even) {
    background: rgba(59, 130, 246, 0.03);
}

.table-code {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: #8cc6ff;
    font-weight: 700;
        white-space: nowrap;
    }

    .data-grid-table thead th.is-sortable {
        cursor: pointer;
        user-select: none;
    }

    .data-grid-table thead th.is-sortable::after {
        content: " \2195";
        color: currentColor;
        font-size: 0.72em;
        opacity: 0.62;
    }

    .data-grid-table thead th.is-sortable[aria-sort="ascending"]::after {
        content: " \2191";
        opacity: 0.95;
    }

    .data-grid-table thead th.is-sortable[aria-sort="descending"]::after {
        content: " \2193";
        opacity: 0.95;
    }

body[data-theme="light"] .table-code {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.table-primary-cell strong {
    display: block;
    color: var(--text);
}

.data-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.68rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.data-badge--neutral {
    background: rgba(148, 163, 184, 0.16);
    color: #d5e0f3;
}

.data-badge--info {
    background: rgba(6, 182, 212, 0.16);
    color: #8ce7ff;
}

body[data-theme="light"] .data-badge--neutral {
    background: rgba(148, 163, 184, 0.18);
    color: #334155;
}

body[data-theme="light"] .data-badge--info {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.company-table-shell {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.detail-card {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.30);
}

body[data-theme="light"] .detail-card {
    background: rgba(59, 130, 246, 0.04);
}

.detail-card--wide {
    grid-column: span 2;
}

.detail-card__label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-soft);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-card__value {
    color: var(--text);
    font-size: 1rem;
}

.excel-required-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.excel-import-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.metric-card--compact {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.30);
    display: grid;
    gap: 0.25rem;
}

body[data-theme="light"] .metric-card--compact {
    background: rgba(59, 130, 246, 0.04);
}

.metric-card__label {
    color: var(--text-soft);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.metric-card__value {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.data-badge--success {
    background: rgba(16, 185, 129, 0.18);
    color: #7cf3c4;
}

.data-badge--danger {
    background: rgba(239, 68, 68, 0.18);
    color: #ff9e9e;
}

body[data-theme="light"] .data-badge--success {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

body[data-theme="light"] .data-badge--danger {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-card--wide {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .excel-import-summary-grid {
        grid-template-columns: 1fr;
    }

    .data-grid-table {
        min-width: unset;
    }

    .responsive-stack-table thead {
        display: none;
    }

    .responsive-stack-table tbody,
    .responsive-stack-table tr,
    .responsive-stack-table td {
        display: block;
        width: 100%;
    }

    .responsive-stack-table tr {
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .responsive-stack-table td {
        padding: 0.45rem 0;
        border: 0;
    }

        .responsive-stack-table td::before {
            content: attr(data-label);
            display: block;
            margin-bottom: 0.18rem;
            color: var(--text-soft);
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
}

/* Enterprise topbar refresh */
.app-navbar {
    min-height: 56px;
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: 0;
    box-shadow: none;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

body[data-theme="light"] .app-navbar {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: 0;
    box-shadow: none;
}

.app-navbar .container-fluid {
    gap: 0.72rem;
    min-height: 52px;
    align-items: center;
    margin-inline: 0.3rem;
    padding: 0.32rem 0.72rem !important;
    border-radius: 16px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: linear-gradient(90deg, rgba(13, 31, 59, 0.9), rgba(6, 66, 78, 0.78));
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.2);
}

body[data-theme="light"] .app-navbar .container-fluid {
    border-color: rgba(56, 189, 248, 0.28);
    background: linear-gradient(90deg, rgba(227, 236, 252, 0.96), rgba(219, 245, 250, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 12px 24px rgba(148, 163, 184, 0.15);
}

.navbar-collapse {
    align-items: center;
    gap: 0.6rem;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.app-nav-center-shell {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 1400px;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body[data-theme="light"] .app-nav-center-shell {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.app-nav-center-list {
    width: 100%;
    margin: 0 !important;
    justify-content: flex-start;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.navbar-brand.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    min-width: 0;
    margin-right: 0.6rem;
    text-decoration: none;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 0.38rem 0.62rem;
    border: 1px solid rgba(203, 213, 225, 0.9);
    box-shadow: none;
}

.app-brand-mark.logo-container {
    width: auto;
    height: auto;
    min-width: 46px;
    min-height: 32px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.9);
    box-shadow: none;
    padding: 0.18rem 0.42rem;
}

.app-brand-logo {
    width: auto;
    height: 18px;
    object-fit: contain;
    filter: none;
}

.app-brand-copy {
    display: grid;
    gap: 0.02rem;
    min-width: 0;
    line-height: 0.96;
}

.app-brand-system {
    color: #b8c7e6;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-brand-institution {
    color: #f8fbff;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

body[data-theme="light"] .app-brand-system {
    color: #476078;
}

body[data-theme="light"] .app-brand-institution {
    color: #0f172a;
}

.navbar-nav.me-auto {
    gap: 0.2rem !important;
}

.navbar-nav .nav-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 600;
}

.app-topbar-actions {
    margin-left: auto;
}

.app-login-shell {
    padding: 0;
    border: 0;
    background: transparent;
}

.app-login-nav {
    gap: 0.4rem !important;
}

.user-box {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.38rem 0.22rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.16);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    .user-box:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(96, 165, 250, 0.18);
        box-shadow: 0 12px 28px rgba(2, 6, 23, 0.2);
    }

body[data-theme="light"] .user-box {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 10px 26px rgba(148, 163, 184, 0.16);
}

    body[data-theme="light"] .user-box:hover {
        background: rgba(255, 255, 255, 0.9);
    }

.user-box-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.1rem 0.2rem;
    min-width: 0;
    color: #eef5ff !important;
    text-decoration: none !important;
}

body[data-theme="light"] .user-box-profile {
    color: #0f172a !important;
}

.user-avatar,
.app-user-avatar.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(125, 211, 252, 0.28);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.08);
}

.user-box-meta {
    display: grid;
    min-width: 0;
}

.user-box-email {
    color: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
}

.app-theme-toggle--minimal,
.app-signout-button {
    min-height: 34px;
    border-radius: 999px;
    padding: 0.42rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.app-theme-toggle--minimal {
    min-width: 78px;
    background: rgba(255, 255, 255, 0.05);
    color: #e6eefc;
}

    .app-theme-toggle--minimal:hover,
    .app-signout-button:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }

.app-signout-button {
    background: transparent;
    color: #dbe7fb;
}

body[data-theme="light"] .app-theme-toggle--minimal,
body[data-theme="light"] .app-signout-button {
    background: rgba(241, 245, 249, 0.95);
    color: #1e293b;
    border-color: rgba(148, 163, 184, 0.22);
}

    body[data-theme="light"] .app-theme-toggle--minimal:hover,
    body[data-theme="light"] .app-signout-button:hover {
        background: rgba(226, 232, 240, 0.96);
        color: #0f172a;
    }

.app-footer {
    padding: 0.72rem 0 0.9rem;
}

.app-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.app-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.app-footer-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #d6e0f4;
}

    .app-footer-copy span:last-child,
    .app-footer-meta {
        color: #8ea3ca;
    }

body[data-theme="light"] .app-footer-copy {
    color: #1e293b;
}

    body[data-theme="light"] .app-footer-copy span:last-child,
    body[data-theme="light"] .app-footer-meta {
        color: #64748b;
    }

@media (max-width: 1199px) {
    .user-box-email {
        max-width: 150px;
    }
}

@media (max-width: 991.98px) {
    .app-navbar {
        min-height: 52px;
        padding-top: 0.22rem;
        padding-bottom: 0.2rem;
    }

        .app-navbar .container-fluid {
            min-height: 48px;
            margin-inline: 0.15rem;
            padding: 0.28rem 0.5rem !important;
        }

    .navbar-collapse {
        margin-top: 0.42rem;
        padding: 0.7rem;
        border-radius: 15px;
        background: rgba(8, 16, 29, 0.96);
        border: 1px solid rgba(148, 163, 184, 0.14);
        box-shadow: 0 18px 36px rgba(2, 6, 23, 0.24);
    }

    body[data-theme="light"] .navbar-collapse {
        background: rgba(255, 255, 255, 0.96);
        border-color: rgba(148, 163, 184, 0.22);
    }

    .app-nav-center-shell {
        max-width: none;
        width: 100%;
        margin-bottom: 0.35rem;
    }

    .app-nav-center-list {
        width: 100%;
    }

    .app-topbar-actions,
    .app-login-shell,
    .app-login-nav {
        width: 100%;
    }

    .app-login-nav {
        justify-content: space-between;
    }

    .user-box {
        width: 100%;
        justify-content: space-between;
    }

    .user-box-profile {
        flex: 1 1 auto;
        min-width: 0;
    }

    .user-box-email {
        max-width: none;
    }

    .app-footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .app-navbar {
        min-height: 48px;
    }

        .app-navbar .container-fluid {
            min-height: 44px;
        }

    .navbar-brand.app-brand {
        gap: 0.65rem;
        margin-right: 0;
        max-width: calc(100vw - 86px);
    }

    .app-brand-mark.logo-container {
        min-width: 42px;
        min-height: 30px;
        padding: 0.16rem 0.34rem;
        border-radius: 10px;
    }

    .app-brand-logo {
        height: 16px;
    }

    .app-brand-system {
        font-size: 0.54rem;
    }

    .app-brand-institution {
        font-size: 0.84rem;
    }

    .user-box {
        gap: 0.32rem;
        padding: 0.2rem 0.28rem 0.2rem 0.4rem;
    }

    .app-theme-toggle--minimal {
        min-width: 36px;
        width: 36px;
        padding-inline: 0;
    }

    .user-box-email {
        font-size: 0.74rem;
    }

    .app-signout-button {
        padding-inline: 0.58rem;
    }
}

@media (max-width: 575.98px) {
    .app-brand-system {
        display: none;
    }

    .app-brand-institution {
        font-size: 0.88rem;
    }

    .user-box {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        width: 100%;
    }

    .app-theme-toggle--minimal {
        justify-self: start;
    }

    .app-signout-button {
        justify-self: end;
    }
}

/* Premium navbar system */
.app-header {
    position: relative;
    z-index: 1100;
    margin: 0;
    padding: 0;
}

.app-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    width: 100%;
    min-height: var(--navbar-height);
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.app-navbar .app-nav-shell {
        max-width: none;
        width: 100%;
        min-height: var(--navbar-height);
        margin: 0;
        padding: 0.14rem 0.72rem !important;
        display: flex;
        align-items: center;
        gap: 0.58rem;
        border-radius: 0;
        border: 1px solid var(--divider-color);
        border-left: 0;
        border-right: 0;
        background: var(--navbar-bg);
        box-shadow: var(--navbar-shadow);
        backdrop-filter: blur(var(--navbar-blur));
        -webkit-backdrop-filter: blur(var(--navbar-blur));
    }

body[data-theme="light"] .app-navbar .app-nav-shell {
    background: linear-gradient(135deg, rgba(244, 248, 255, 0.86), rgba(234, 243, 255, 0.92) 52%, rgba(226, 246, 248, 0.88));
    border-color: var(--divider-color);
    box-shadow: var(--navbar-shadow);
}

.navbar-brand.app-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none;
}

.app-brand-mark.logo-container {
    min-width: 46px;
    min-height: 32px;
    padding: 0.18rem 0.42rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 16px rgba(3, 7, 18, 0.1);
}

.app-brand-logo {
    width: auto;
    height: 18px;
    object-fit: contain;
}

.app-brand-copy {
    display: grid;
    gap: 0.02rem;
    min-width: 0;
    line-height: 0.96;
}

.app-brand-system {
    color: rgba(214, 228, 255, 0.72);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.app-brand-institution {
    color: #f8fbff;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

body[data-theme="light"] .app-brand-system {
    color: #52647c;
}

body[data-theme="light"] .app-brand-institution {
    color: #10203b;
}

.app-navbar-collapse {
    min-width: 0;
}

.app-nav-center {
    flex: 1 1 auto;
    min-width: 0;
}

.app-nav-right {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.app-nav-center-list,
.app-main-nav {
    gap: 0.18rem !important;
    align-items: center;
}

.app-main-nav .dropdown {
    position: relative;
}

    .app-main-nav .nav-link {
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.4rem 0.68rem !important;
        border-radius: 10px;
        color: rgba(236, 243, 255, 0.82) !important;
        font-size: 0.84rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
    }

        .app-main-nav .nav-link:hover,
        .app-main-nav .nav-link:focus {
            color: #ffffff !important;
            background: rgba(255, 255, 255, 0.08);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        }

        .app-main-nav .nav-link.active-link,
        .app-main-nav .show > .nav-link.dropdown-toggle {
            color: #ffffff !important;
            background: rgba(255, 255, 255, 0.12);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 22px rgba(2, 6, 23, 0.16);
        }

    .app-main-nav .dropdown-menu {
        position: absolute;
        top: calc(100% + 0.55rem);
        left: 0;
        margin-top: 0.55rem;
        padding: 0.45rem;
        min-width: 220px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.09);
        background: rgba(6, 14, 28, 0.92);
        box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .app-main-nav .dropdown-item {
        border-radius: 10px;
        padding: 0.65rem 0.8rem;
        color: rgba(236, 243, 255, 0.82);
        font-weight: 600;
    }

        .app-main-nav .dropdown-item:hover,
        .app-main-nav .dropdown-item:focus {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.08);
        }

body[data-theme="light"] .app-main-nav .nav-link {
    color: rgba(15, 23, 42, 0.76) !important;
}

    body[data-theme="light"] .app-main-nav .nav-link:hover,
    body[data-theme="light"] .app-main-nav .nav-link:focus {
        color: #0f172a !important;
        background: rgba(255, 255, 255, 0.54);
        box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
    }

    body[data-theme="light"] .app-main-nav .nav-link.active-link,
    body[data-theme="light"] .app-main-nav .show > .nav-link.dropdown-toggle {
        color: #0f172a !important;
        background: rgba(255, 255, 255, 0.82);
        box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16), 0 12px 22px rgba(148, 163, 184, 0.16);
    }

body[data-theme="light"] .app-main-nav .dropdown-menu {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 22px 42px rgba(148, 163, 184, 0.2);
}

body[data-theme="light"] .app-main-nav .dropdown-item {
    color: #0f172a;
}

    body[data-theme="light"] .app-main-nav .dropdown-item:hover,
    body[data-theme="light"] .app-main-nav .dropdown-item:focus {
        background: rgba(226, 232, 240, 0.72);
        color: #0f172a;
    }

.app-login-nav {
    gap: 0.4rem !important;
    margin-left: 0 !important;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

    .app-login-nav .nav-item,
    .app-signout-form {
        margin: 0;
    }

.app-signout-item {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 0;
}

.app-signout-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 0;
    margin: 0;
}

.app-theme-toggle--minimal,
.app-signout-button,
.app-auth-button {
    min-height: 34px;
    height: 34px;
    padding: 0 0.72rem;
    border-radius: 12px;
    border: 1px solid var(--control-border);
    background: var(--control-bg);
    color: var(--control-text) !important;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, fill 0.22s ease, stroke 0.22s ease;
}

.app-signout-button {
    min-height: 30px;
    height: 30px;
    padding: 0 0.62rem;
    font-size: 0.76rem;
    line-height: 1;
}

.app-theme-toggle--minimal {
    width: 36px;
    min-width: 36px;
    padding: 0;
}

.app-theme-toggle__icons {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-theme-icon {
    position: absolute;
    inset: 0;
    width: 18px;
    height: 18px;
    opacity: 0;
    transform: scale(0.84) rotate(-8deg);
    transition: opacity .22s ease, transform .22s ease, fill .22s ease, stroke .22s ease;
}

body[data-theme="light"] .app-theme-icon--sun,
body[data-theme="dark"] .app-theme-icon--moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

    .app-theme-toggle--minimal:hover,
    .app-signout-button:hover,
    .app-auth-button:hover {
        background: var(--control-bg-hover);
        border-color: rgba(255, 255, 255, 0.18);
        color: var(--control-text) !important;
        transform: translateY(-1px);
    }

.app-auth-button--primary {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.92), rgba(37, 99, 235, 0.9));
    border-color: rgba(125, 211, 252, 0.28);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

    .app-auth-button--primary:hover {
        background: linear-gradient(135deg, rgba(74, 222, 255, 0.96), rgba(59, 130, 246, 0.94));
    }

.app-auth-button--secondary {
    background: rgba(255, 255, 255, 0.04);
}

.app-profile-link.app-user-chip {
    min-height: 36px;
    padding: 0.14rem 0.32rem 0.14rem 0.22rem;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

    .app-profile-link.app-user-chip:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 28px rgba(2, 6, 23, 0.16);
        transform: translateY(-1px);
    }

.user-avatar,
.app-user-avatar.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(125, 211, 252, 0.28);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.08);
}

.user-box-meta {
    display: grid;
    min-width: 0;
    padding-right: 0.12rem;
}

.user-box-email {
    color: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body[data-theme="light"] .app-theme-toggle--minimal,
body[data-theme="light"] .app-signout-button,
body[data-theme="light"] .app-auth-button,
body[data-theme="light"] .app-profile-link.app-user-chip {
    color: var(--control-text) !important;
    background: var(--control-bg);
    border-color: var(--control-border);
}

    body[data-theme="light"] .app-theme-toggle--minimal:hover,
    body[data-theme="light"] .app-signout-button:hover,
    body[data-theme="light"] .app-auth-button:hover,
    body[data-theme="light"] .app-profile-link.app-user-chip:hover {
        color: var(--text-primary) !important;
        background: var(--control-bg-hover);
        border-color: rgba(100, 116, 139, 0.2);
    }

body[data-theme="light"] .app-auth-button--primary {
    color: #ffffff !important;
}

.app-navbar-toggler {
    width: 36px;
    height: 36px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

    .app-navbar-toggler:hover {
        background: rgba(255, 255, 255, 0.12);
    }

    .app-navbar-toggler:focus {
        box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.2);
    }

body[data-theme="light"] .app-navbar-toggler {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(148, 163, 184, 0.18) !important;
}

.app-main-shell {
    min-height: calc(100vh - var(--app-footer-height));
    margin-top: 0 !important;
}

.app-main,
.main-content {
    padding-top: calc(var(--navbar-height) + 10px);
    min-height: calc(100vh - var(--app-footer-height));
}

@media (min-width: 992px) {
    .app-navbar-collapse {
        display: flex !important;
        align-items: center;
        gap: 0.9rem;
    }

    .app-main-nav {
        flex-wrap: nowrap;
        align-items: center;
    }
}

@media (max-width: 1199.98px) {
    .user-box-email {
        max-width: 160px;
    }
}

@media (max-width: 991.98px) {
    :root {
        --navbar-height: 48px;
        --navbar-radius: 15px;
    }

    .app-navbar {
        padding: 0;
    }

        .app-navbar .app-nav-shell {
            min-height: var(--navbar-height);
            padding: 0.14rem 0.56rem !important;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

    .navbar-brand.app-brand {
        margin-right: auto !important;
        max-width: calc(100vw - 92px);
    }

    .app-navbar-toggler {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .app-navbar-collapse {
        width: 100%;
        margin-top: 0.42rem;
        padding: 0.08rem 0 0;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .app-nav-center,
    .app-nav-right {
        width: 100%;
    }

    .app-nav-center {
        order: 1;
    }

    .app-nav-right {
        order: 2;
        margin-left: 0;
    }

    .app-main-nav {
        width: 100%;
        gap: 0.28rem !important;
    }

        .app-main-nav .nav-item,
        .app-main-nav .dropdown {
            width: 100%;
        }

        .app-main-nav .nav-link {
            width: 100%;
            justify-content: flex-start;
            min-height: 36px;
            padding-inline: 0.88rem !important;
        }

        .app-main-nav .dropdown-menu {
            position: static !important;
            inset: auto !important;
            transform: none !important;
            width: 100%;
            margin-top: 0.45rem;
        }

    .app-login-nav {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.4rem !important;
    }

        .app-login-nav .nav-item,
        .app-signout-form,
        .app-login-nav .btn,
        .app-login-nav .app-profile-link {
            width: 100%;
        }

    .app-signout-item {
        width: 100%;
    }

    .app-theme-toggle--minimal,
    .app-signout-button,
    .app-auth-button {
        width: 100%;
    }

    .user-box-email {
        max-width: none;
    }

    .app-main,
    .main-content {
        padding-top: calc(var(--navbar-height) + 8px);
    }
}

@media (min-width: 769px) {
    .app-main-nav {
        align-items: center;
    }

    .app-main-nav .nav-item,
    .app-main-nav .dropdown {
        width: auto !important;
        position: relative !important;
    }

    .app-main-nav .nav-link {
        width: auto !important;
        justify-content: center;
    }

    .app-main-nav .dropdown-menu {
        position: absolute !important;
        inset: auto auto auto 0 !important;
        top: 100% !important;
        left: 0 !important;
        width: max-content;
        min-width: 220px;
        margin-top: .5rem !important;
        transform: none !important;
        z-index: 1200;
    }

    .app-main-nav .dropdown-menu.show {
        display: block;
    }

    .app-navbar,
    .app-navbar .app-nav-shell,
    .app-navbar-collapse,
    .app-nav-center,
    .app-nav-right,
    .app-main-nav,
    .app-main-nav .nav-item,
    .app-main-nav .dropdown,
    .app-main-nav .dropdown-toggle,
    .app-main-nav .dropdown-menu {
        animation: none !important;
        transform: none !important;
    }

    .app-main-nav .dropdown,
    .app-main-nav .dropdown-toggle,
    .app-main-nav .dropdown-menu {
        transition: none !important;
    }
}

@media (max-width: 767.98px) {
    :root {
        --navbar-height: 46px;
    }

    .app-navbar {
        padding-inline: 0;
    }

        .app-navbar .app-nav-shell {
            min-height: var(--navbar-height);
            padding: 0.12rem 0.48rem !important;
        }

    .app-brand-mark.logo-container {
        min-width: 42px;
        min-height: 30px;
        padding: 0.16rem 0.34rem;
        border-radius: 10px;
    }

    .app-brand-logo {
        height: 16px;
    }

    .app-brand-system {
        font-size: 0.54rem;
    }

    .app-brand-institution {
        font-size: 0.84rem;
    }

    .app-profile-link.app-user-chip {
        min-height: 34px;
    }

    .app-signout-button {
        min-height: 32px;
        height: 32px;
        padding-inline: 0.56rem;
    }
}

@media (max-width: 575.98px) {
    .app-brand-system {
        display: none;
    }

    .app-brand-institution {
        font-size: 0.88rem;
    }
}

.cep-feedback {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.42rem 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(125, 211, 252, 0.16);
    background: rgba(15, 23, 42, 0.46);
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.35;
}

.cep-feedback--info {
    border-color: rgba(59, 130, 246, 0.24);
    background: rgba(59, 130, 246, 0.12);
    color: #cfe1ff;
}

.cep-feedback--warning {
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.12);
    color: #fde68a;
}

.cep-feedback--danger {
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}

body[data-theme="light"] .cep-feedback {
    border-color: rgba(59, 130, 246, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
}

body[data-theme="light"] .cep-feedback--info {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
}

body[data-theme="light"] .cep-feedback--warning {
    background: rgba(251, 191, 36, 0.16);
    color: #92400e;
}

body[data-theme="light"] .cep-feedback--danger {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

/* =========================
   KPI COMPACTO (META DO USUÁRIO)
========================= */

.compact-kpi {
    padding: 6px 10px; /* reduz altura do box */
}

    /* Label (Usuário / Período) */
    .compact-kpi .kpi-label {
        font-size: 11px;
        opacity: 0.6;
        display: block;
        margin-bottom: 2px;
    }

    /* Valor (Nome e período) */
    .compact-kpi .kpi-value {
        font-size: 13px;
        font-weight: 600;
    }

/* =========================
   TABELAS CADASTRAIS MINIMALISTAS
========================= */

.card-shell--spacious .data-grid-shell {
    margin-top: 1.45rem;
}

.data-grid-shell {
    border-radius: 12px;
    border-color: rgba(148, 163, 184, 0.12);
    background: rgba(8, 14, 26, 0.42);
    box-shadow: none;
}

body[data-theme="light"] .data-grid-shell {
    border-color: rgba(100, 116, 139, 0.16);
    background: rgba(255, 255, 255, 0.72);
}

.data-grid-table {
    font-size: 0.83rem;
    min-width: 1280px;
}

.data-grid-table thead th {
    background: rgba(13, 22, 38, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    color: rgba(232, 238, 252, 0.78);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.72rem 0.78rem;
}

body[data-theme="light"] .data-grid-table thead th {
    background: rgba(248, 250, 252, 0.96);
    color: #475569;
    border-bottom-color: rgba(100, 116, 139, 0.16);
}

.data-grid-table td,
.data-grid-table th {
    padding: 0.72rem 0.78rem;
}

.data-grid-table td {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.08) !important;
    line-height: 1.25;
}

.data-grid-table tbody tr:nth-child(even),
body[data-theme="light"] .data-grid-table tbody tr:nth-child(even) {
    background: transparent;
}

.data-grid-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.055) !important;
}

body[data-theme="light"] .data-grid-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.06) !important;
}

.table-code,
.data-badge {
    min-height: 24px;
    padding: 0.22rem 0.52rem;
    border-radius: 7px;
    font-size: 0.74rem;
    font-weight: 700;
}

.table-code {
    background: rgba(59, 130, 246, 0.10);
    color: #93c5fd;
}

.data-badge--neutral,
.data-badge--info {
    background: rgba(148, 163, 184, 0.10);
    color: #cbd5e1;
}

body[data-theme="light"] .table-code,
body[data-theme="light"] .data-badge--neutral,
body[data-theme="light"] .data-badge--info {
    background: rgba(100, 116, 139, 0.10);
    color: #334155;
}

.table-actions-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    align-items: center;
}

.table-actions-wrap .btn,
.data-grid-table .btn-sm {
    min-height: 30px;
    padding: 0.34rem 0.64rem;
    border-radius: 9px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
}

.table-sort-button {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
}

.table-sort-button::after {
    content: " ↕";
    opacity: 0.55;
}

.table-sort-button[aria-sort="ascending"]::after {
    content: " ↑";
    opacity: 1;
}

.table-sort-button[aria-sort="descending"]::after {
    content: " ↓";
    opacity: 1;
}

.data-grid-table .btn-warning {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #111827;
}

.data-grid-table .btn-info {
    background: #0891b2;
    border-color: #0891b2;
    color: #ffffff !important;
}

.data-grid-table .btn-danger {
    background: #dc2626;
    border-color: #dc2626;
}

.data-grid-table .btn-outline-secondary,
.data-grid-table .btn-outline-primary {
    background: transparent;
    border-color: rgba(96, 165, 250, 0.38);
    color: #bfdbfe;
}

.data-grid-table .btn:hover {
    transform: none;
    filter: brightness(1.05);
}

@media (max-width: 768px) {
    .card-shell--spacious .data-grid-shell {
        margin-top: 1rem;
    }

    .responsive-stack-table tr {
        padding: 0.78rem;
        border-radius: 12px;
        box-shadow: none;
    }
}

/* =========================
   TEMA CLARO INSTITUCIONAL
   Inspirado na leitura visual da Investe Piaui
========================= */

body[data-theme="light"] {
    --bg: #eef3f8;
    --bg-soft: #f6f9fc;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-2: rgba(247, 250, 253, 0.92);
    --border: rgba(62, 86, 122, 0.16);
    --text: #26374d;
    --text-soft: #5f6f86;
    --text-primary: #26374d;
    --text-secondary: #5f6f86;
    --divider-color: rgba(66, 88, 116, 0.14);
    --control-bg: #f8fbfe;
    --control-bg-hover: #ffffff;
    --control-border: rgba(69, 91, 121, 0.22);
    --control-text: #172235;
    --accent-color-soft: rgba(47, 99, 168, 0.11);
    --shadow: 0 20px 45px rgba(39, 58, 84, 0.10);
    --primary: #2f63a8;
    --primary-2: #4f8cc9;
    --success: #5e9a4e;
    background: linear-gradient(180deg, #f7fafc 0%, #eef3f8 48%, #e9eff6 100%) !important;
    color: var(--text-primary);
}

body[data-theme="light"] .app-navbar {
    background: linear-gradient(90deg, #376aa9, #275897) !important;
    border-bottom: 0;
    box-shadow: 0 6px 22px rgba(30, 68, 116, 0.16);
}

body[data-theme="light"] .app-navbar .app-nav-shell {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(52, 87, 137, 0.10);
    box-shadow: 0 12px 28px rgba(40, 67, 103, 0.12);
}

body[data-theme="light"] .app-main-nav .nav-link {
    color: #4f5f75 !important;
}

body[data-theme="light"] .app-main-nav .nav-link:hover,
body[data-theme="light"] .app-main-nav .nav-link:focus,
body[data-theme="light"] .app-main-nav .nav-link.active-link,
body[data-theme="light"] .app-main-nav .show > .nav-link.dropdown-toggle,
body[data-theme="light"] .nav-link.is-active {
    color: #204f8f !important;
    background: #eef4fb !important;
    border-color: rgba(47, 99, 168, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75) !important;
}

body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3,
body[data-theme="light"] h4,
body[data-theme="light"] h5,
body[data-theme="light"] strong,
body[data-theme="light"] .panel-title,
body[data-theme="light"] .panel-header h1,
body[data-theme="light"] .process-panel-head h1,
body[data-theme="light"] .dashboard-panel-head h2 {
    color: #2f63a8 !important;
}

body[data-theme="light"] strong {
    color: #2d3e55 !important;
}

body[data-theme="light"] .dashboard-panel strong,
body[data-theme="light"] .dashboard-executive-summary strong,
body[data-theme="light"] .dashboard-snapshot-card strong,
body[data-theme="light"] .dashboard-story-card strong,
body[data-theme="light"] .compact-kpi-card strong,
body[data-theme="light"] .snapshot-tile strong,
body[data-theme="light"] .metric-tile strong {
    color: #2d3e55 !important;
}

body[data-theme="light"] .panel-kicker,
body[data-theme="light"] .panel-subtitle,
body[data-theme="light"] .section-kicker,
body[data-theme="light"] .compact-kpi-label,
body[data-theme="light"] .metric-kicker,
body[data-theme="light"] .process-panel-toolbar span,
body[data-theme="light"] .table-title-stack span,
body[data-theme="light"] .dashboard-story-kicker,
body[data-theme="light"] .smart-label {
    color: #6a7890 !important;
}

body[data-theme="light"] .card-shell,
body[data-theme="light"] .card,
body[data-theme="light"] .surface-card,
body[data-theme="light"] .dashboard-panel,
body[data-theme="light"] .dashboard-executive-summary,
body[data-theme="light"] .dashboard-snapshot-card,
body[data-theme="light"] .compact-kpi-card,
body[data-theme="light"] .meeting-filter-card,
body[data-theme="light"] .process-metric-card,
body[data-theme="light"] .process-table-panel,
body[data-theme="light"] .process-owner-panel,
body[data-theme="light"] .process-efficiency-panel,
body[data-theme="light"] .process-filter-panel,
body[data-theme="light"] .conversation-create-card,
body[data-theme="light"] .conversation-list-card,
body[data-theme="light"] .conversation-thread-card,
body[data-theme="light"] .empty-thread-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 254, 0.84)) !important;
    border: 1px solid rgba(67, 91, 124, 0.14) !important;
    box-shadow: 0 18px 40px rgba(38, 56, 85, 0.09) !important;
    color: var(--text-primary) !important;
}

body[data-theme="light"] .card-shell--spacious,
body[data-theme="light"] .company-form,
body[data-theme="light"] .compact-filter-form,
body[data-theme="light"] .meeting-filter-grid,
body[data-theme="light"] .smart-sidebar-section {
    background: rgba(255, 255, 255, 0.76) !important;
    border: 1px solid rgba(67, 88, 118, 0.14) !important;
    box-shadow: 0 16px 34px rgba(36, 56, 89, 0.08) !important;
}

body[data-theme="light"] .company-form,
body[data-theme="light"] .compact-filter-form,
body[data-theme="light"] .meeting-filter-grid {
    padding: 1rem;
    border-radius: 16px;
}

body[data-theme="light"] .form-control,
body[data-theme="light"] .form-select,
body[data-theme="light"] textarea,
body[data-theme="light"] input,
body[data-theme="light"] select,
body[data-theme="light"] .process-panel-toolbar .form-control,
body[data-theme="light"] .process-filter-form .form-select,
body[data-theme="light"] .board-sidebar-input,
body[data-theme="light"] .meeting-filter-card .form-control,
body[data-theme="light"] .meeting-filter-card .form-select,
body[data-theme="light"] .user-dashboard-page .form-control,
body[data-theme="light"] .user-dashboard-page .form-select {
    background: linear-gradient(180deg, #ffffff, #f5f8fb) !important;
    border: 1px solid rgba(52, 70, 97, 0.22) !important;
    color: var(--text-primary) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 7px 16px rgba(41, 59, 88, 0.05) !important;
}

body[data-theme="light"] .form-control::placeholder,
body[data-theme="light"] textarea::placeholder,
body[data-theme="light"] input::placeholder,
body[data-theme="light"] .board-sidebar-input::placeholder {
    color: #7a8899 !important;
}

body[data-theme="light"] .form-control:focus,
body[data-theme="light"] .form-select:focus,
body[data-theme="light"] textarea:focus,
body[data-theme="light"] input:focus,
body[data-theme="light"] select:focus {
    background: #ffffff !important;
    border-color: rgba(47, 99, 168, 0.54) !important;
    box-shadow: 0 0 0 0.18rem rgba(47, 99, 168, 0.12), 0 10px 22px rgba(47, 99, 168, 0.08) !important;
}

body[data-theme="light"] .btn-primary,
body[data-theme="light"] .app-auth-button--primary,
body[data-theme="light"] .meeting-filter-card .btn-primary,
body[data-theme="light"] .smart-submit {
    color: #ffffff !important;
    background: linear-gradient(135deg, #2f63a8, #265895) !important;
    border-color: rgba(36, 83, 147, 0.34) !important;
    box-shadow: 0 12px 24px rgba(47, 99, 168, 0.20) !important;
}

body[data-theme="light"] .btn-secondary,
body[data-theme="light"] .btn-outline-secondary,
body[data-theme="light"] .btn-outline-light,
body[data-theme="light"] .app-theme-toggle--minimal,
body[data-theme="light"] .app-signout-button,
body[data-theme="light"] .app-auth-button,
body[data-theme="light"] .app-profile-link.app-user-chip,
body[data-theme="light"] .process-rank-btn {
    color: #2d3a4d !important;
    background: linear-gradient(180deg, #ffffff, #f0f5fa) !important;
    border-color: rgba(60, 80, 110, 0.18) !important;
    box-shadow: 0 8px 18px rgba(39, 56, 86, 0.08) !important;
}

body[data-theme="light"] .data-grid-shell,
body[data-theme="light"] .dashboard-table-shell,
body[data-theme="light"] .process-table-shell,
body[data-theme="light"] .smart-sheet-shell {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(62, 82, 111, 0.14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body[data-theme="light"] .data-grid-table,
body[data-theme="light"] .dashboard-table,
body[data-theme="light"] .compact-dark-table,
body[data-theme="light"] .process-project-table,
body[data-theme="light"] .smart-sheet-table {
    color: var(--text-primary) !important;
}

body[data-theme="light"] .data-grid-table thead th,
body[data-theme="light"] .dashboard-table thead th,
body[data-theme="light"] .compact-dark-table thead th,
body[data-theme="light"] .process-project-table th,
body[data-theme="light"] .smart-sheet-table thead th {
    background: linear-gradient(180deg, #f2f6fb, #e7eef6) !important;
    border-color: rgba(62, 82, 111, 0.14) !important;
    color: #38506d !important;
}

body[data-theme="light"] .data-grid-table td,
body[data-theme="light"] .dashboard-table tbody td,
body[data-theme="light"] .compact-dark-table td,
body[data-theme="light"] .process-project-table td,
body[data-theme="light"] .smart-sheet-table td {
    background: rgba(255, 255, 255, 0.68) !important;
    border-color: rgba(62, 82, 111, 0.09) !important;
    color: var(--text-primary) !important;
}

body[data-theme="light"] .data-grid-table tbody tr:hover td,
body[data-theme="light"] .compact-dark-table tbody tr:hover td,
body[data-theme="light"] .process-project-table tbody tr:hover td,
body[data-theme="light"] .smart-sheet-table tbody tr:hover td {
    background: rgba(232, 240, 249, 0.96) !important;
}

body[data-theme="light"] .table-code,
body[data-theme="light"] .data-badge,
body[data-theme="light"] .table-value-chip,
body[data-theme="light"] .smart-sheet-value,
body[data-theme="light"] .process-ok-flag {
    background: rgba(47, 99, 168, 0.09) !important;
    color: #20466f !important;
}

body[data-theme="light"] .trend-positive,
body[data-theme="light"] .smart-sheet-value.trend-positive,
body[data-theme="light"] .analytics-bar-fill.is-success,
body[data-theme="light"] .status-pill.is-success {
    color: #3f6f2f !important;
    background: rgba(94, 154, 78, 0.14) !important;
}

body[data-theme="light"] .process-late-flag,
body[data-theme="light"] .status-pill.is-danger,
body[data-theme="light"] .trend-negative {
    color: #9f1239 !important;
    background: rgba(225, 29, 72, 0.12) !important;
}

body[data-theme="light"] .process-owner-bar,
body[data-theme="light"] .process-highlight-card,
body[data-theme="light"] .dashboard-story-card,
body[data-theme="light"] .snapshot-tile,
body[data-theme="light"] .meeting-kpi,
body[data-theme="light"] .smart-note,
body[data-theme="light"] .smart-stat-chip,
body[data-theme="light"] .smart-mini-card,
body[data-theme="light"] .smart-change-item,
body[data-theme="light"] .smart-entry-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(241, 246, 251, 0.78)) !important;
    border-color: rgba(62, 82, 111, 0.13) !important;
}

body[data-theme="light"] .process-progress-track,
body[data-theme="light"] .process-owner-track,
body[data-theme="light"] .analytics-bar-track,
body[data-theme="light"] .insight-bar-track,
body[data-theme="light"] .smart-change-bar,
body[data-theme="light"] .smart-sheet-progress-track {
    background: rgba(77, 98, 128, 0.16) !important;
}

body[data-theme="light"] .process-progress-track span,
body[data-theme="light"] .process-owner-track span,
body[data-theme="light"] .analytics-bar-fill,
body[data-theme="light"] .insight-bar-fill,
body[data-theme="light"] .smart-change-bar span,
body[data-theme="light"] .smart-sheet-progress-track span {
    background: linear-gradient(90deg, #5e9a4e, #2f63a8) !important;
}

body[data-theme="light"] .process-priority.priority-alta {
    color: #7c3f00 !important;
    background: rgba(245, 158, 11, 0.18) !important;
}

body[data-theme="light"] .process-priority.priority-media {
    color: #1d4ed8 !important;
    background: rgba(37, 99, 235, 0.14) !important;
}

body[data-theme="light"] .process-priority.priority-baixa {
    color: #08734f !important;
    background: rgba(7, 150, 106, 0.16) !important;
}

body[data-theme="light"] .app-footer {
    background: rgba(248, 251, 254, 0.86) !important;
    border-top: 1px solid rgba(62, 82, 111, 0.10);
    color: #4b5b70 !important;
}

body[data-theme="light"] .entity-index-shell {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding-inline: 0 !important;
    color: var(--text-primary) !important;
}

body[data-theme="light"] .entity-index-shell.card-shell--spacious {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme="light"] .admin-registration-shell {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding-inline: 0 !important;
    color: var(--text-primary) !important;
}

body[data-theme="light"] .admin-registration-shell.card-shell--spacious {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme="light"] .admin-registration-shell .panel-header,
body[data-theme="light"] .admin-registration-shell .card-body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme="light"] .admin-registration-shell .card-body {
    padding-inline: 0 !important;
}

body[data-theme="light"] .entity-index-shell .panel-header {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme="light"] .entity-index-shell .company-form {
    background: rgba(255, 255, 255, 0.76) !important;
    border: 1px solid rgba(67, 88, 118, 0.14) !important;
    box-shadow: 0 16px 34px rgba(36, 56, 89, 0.08) !important;
}

body[data-theme="light"] .entity-index-shell .panel-header__actions .btn-outline-primary,
body[data-theme="light"] .entity-index-shell .panel-header__actions .btn-outline-secondary {
    color: #204f8f !important;
    background: rgba(255, 255, 255, 0.82) !important;
    border-color: rgba(47, 99, 168, 0.26) !important;
    box-shadow: 0 10px 22px rgba(39, 56, 86, 0.08) !important;
}

body[data-theme="light"] .entity-index-shell .panel-header__actions .btn-outline-primary:hover,
body[data-theme="light"] .entity-index-shell .panel-header__actions .btn-outline-secondary:hover,
body[data-theme="light"] .entity-index-shell .panel-header__actions .btn-outline-primary:focus,
body[data-theme="light"] .entity-index-shell .panel-header__actions .btn-outline-secondary:focus {
    color: #ffffff !important;
    background: #2f63a8 !important;
    border-color: #2f63a8 !important;
}

body[data-theme="light"] .entity-index-shell .entity-guidance-alert {
    margin-top: 1.15rem !important;
    color: #24415f !important;
    background: rgba(255, 255, 255, 0.82) !important;
    border: 1px solid rgba(47, 99, 168, 0.18) !important;
    box-shadow: 0 12px 26px rgba(38, 56, 85, 0.08) !important;
}

body[data-theme="light"] .entity-index-shell .entity-guidance-alert strong {
    color: #204f8f !important;
}

body[data-theme="light"] .entity-index-shell .data-grid-table .btn-outline-primary,
body[data-theme="light"] .entity-index-shell .data-grid-table .btn-outline-secondary {
    color: #204f8f !important;
    background: #ffffff !important;
    border-color: rgba(47, 99, 168, 0.28) !important;
}

body[data-theme="light"] .entity-index-shell .data-grid-table .btn-outline-primary:hover,
body[data-theme="light"] .entity-index-shell .data-grid-table .btn-outline-secondary:hover,
body[data-theme="light"] .entity-index-shell .data-grid-table .btn-outline-primary:focus,
body[data-theme="light"] .entity-index-shell .data-grid-table .btn-outline-secondary:focus {
    color: #ffffff !important;
    background: #2f63a8 !important;
    border-color: #2f63a8 !important;
}

body[data-theme="light"] .entity-import-shell {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding-inline: 0 !important;
    color: var(--text-primary) !important;
}

body[data-theme="light"] .entity-import-shell.card-shell--spacious {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme="light"] .entity-import-shell .panel-header {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme="light"] .entity-import-shell .card-body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding-inline: 0 !important;
}

body[data-theme="light"] .entity-import-shell .form-section {
    background: rgba(255, 255, 255, 0.76) !important;
    border: 1px solid rgba(67, 88, 118, 0.14) !important;
    box-shadow: 0 16px 34px rgba(36, 56, 89, 0.08) !important;
}

body[data-theme="light"] .entity-import-shell .form-section .btn-secondary {
    color: #204f8f !important;
    background: rgba(255, 255, 255, 0.86) !important;
    border-color: rgba(47, 99, 168, 0.24) !important;
}

body[data-theme="light"] .entity-import-shell .form-section .btn-secondary:hover,
body[data-theme="light"] .entity-import-shell .form-section .btn-secondary:focus {
    color: #ffffff !important;
    background: #2f63a8 !important;
    border-color: #2f63a8 !important;
}

.entity-import-shell .card-body > .form-section:first-of-type {
    margin-top: 1.35rem;
}

.admin-insights-page .analytics-card {
    overflow: hidden;
}

.admin-segmented-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-segmented-filter button {
    border: 0;
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    color: var(--text-soft);
    background: transparent;
    font-weight: 800;
}

.admin-segmented-filter button.is-active {
    color: #fff;
    background: linear-gradient(135deg, #2f63a8, #265895);
    box-shadow: 0 10px 20px rgba(47, 99, 168, 0.22);
}

.admin-insights-page .meeting-filter-actions .btn-primary,
.admin-insights-page .btn-admin-neutral {
    color: #e8eef7 !important;
    background: linear-gradient(180deg, #344257, #273348) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.20) !important;
}

.admin-insights-page .meeting-filter-actions .btn-primary:hover,
.admin-insights-page .meeting-filter-actions .btn-primary:focus,
.admin-insights-page .btn-admin-neutral:hover,
.admin-insights-page .btn-admin-neutral:focus {
    color: #ffffff !important;
    background: linear-gradient(180deg, #3d4c62, #303d52) !important;
    border-color: rgba(186, 200, 218, 0.34) !important;
}

.admin-insights-page .status-pill.is-neutral {
    color: #dbe4ef !important;
    background: rgba(148, 163, 184, 0.18) !important;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-request-row,
.admin-user-row {
    cursor: pointer;
}

.admin-request-row.is-selected td,
.admin-user-row.is-selected td {
    background: rgba(47, 99, 168, 0.16) !important;
}

.admin-table-bars {
    min-width: 240px;
}

.admin-request-hub > .dashboard-table-shell {
    margin-top: 1.15rem;
}

.admin-split-requests {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-request-block {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.32);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-request-block-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-request-block-head h3 {
    margin: 0.1rem 0 0;
    color: var(--text);
    font-size: 1.08rem;
}

.admin-request-block .dashboard-table-shell {
    margin-top: 0;
}

.admin-decision-card {
    grid-column: 1 / -1;
}

.admin-decision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.admin-decision-item {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-decision-item-head,
.admin-decision-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-decision-item-head strong {
    display: block;
    color: var(--text);
    font-size: 1rem;
}

.admin-decision-item-head small,
.admin-decision-footer small {
    color: var(--text-soft);
}

.admin-decision-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
}

.admin-decision-metrics span {
    display: grid;
    gap: 0.15rem;
    min-height: 58px;
    padding: 0.65rem;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.11);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-decision-metrics strong {
    color: var(--text);
    font-size: 1.1rem;
}

.admin-empty-state {
    display: grid;
    gap: 0.25rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 14px;
    color: var(--text-soft);
    background: rgba(15, 23, 42, 0.42);
    border: 1px dashed rgba(148, 163, 184, 0.24);
}

.admin-empty-state strong {
    color: var(--text);
}

.admin-context-section {
    display: grid;
    gap: 0.9rem;
    margin: 1.25rem 0;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.34);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-context-head h5 {
    margin: 0.1rem 0 0;
    color: var(--text);
    font-size: 1.1rem;
}

.admin-context-section .detail-grid {
    margin: 0;
}

.admin-context-section .dashboard-table-shell {
    margin-top: 0;
}

.admin-project-context-list {
    display: grid;
    gap: 1rem;
}

.admin-linked-project-detail {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(8, 15, 28, 0.36);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.admin-linked-project-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-linked-project-head h6 {
    margin: 0.12rem 0 0;
    color: var(--text);
    font-size: 1rem;
}

.admin-detail-panel,
.admin-user-detail {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.36);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-detail-head h3,
.admin-user-detail h3 {
    margin: 0.15rem 0 0;
    color: var(--text);
    font-size: 1.2rem;
}

.admin-detail-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

body:not([data-theme="light"]) .admin-detail-filters .form-control,
body:not([data-theme="light"]) .admin-detail-filters .form-select {
    background: rgba(8, 15, 28, 0.86) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
    color: #eef5ff !important;
}

body:not([data-theme="light"]) .admin-detail-filters .form-control::placeholder {
    color: #9fb0c7 !important;
}

body:not([data-theme="light"]) .admin-detail-filters .form-select option {
    color: #eef5ff;
    background: #0b1220;
}

.admin-user-wide-card {
    grid-column: 1 / -1;
}

.admin-user-picker-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
    gap: 1rem;
    align-items: end;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-user-picker-copy {
    display: grid;
    gap: 0.25rem;
}

.admin-user-picker-copy strong {
    color: var(--text);
    font-size: 1.05rem;
}

.admin-user-picker-copy small,
.admin-user-picker-field small {
    color: var(--text-soft);
}

.admin-user-picker-field {
    display: grid;
    gap: 0.4rem;
}

.admin-user-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
}

body:not([data-theme="light"]) .admin-user-picker-field .form-control {
    background: rgba(8, 15, 28, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.26) !important;
    color: #eef5ff !important;
}

body:not([data-theme="light"]) .admin-user-picker-field .form-control::placeholder {
    color: #9fb0c7 !important;
}

.admin-user-detail {
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(360px, 1.5fr);
    gap: 1rem;
    align-items: start;
}

.admin-user-detail p {
    margin: 0.4rem 0 0;
    color: var(--text-soft);
}

.admin-user-detail.is-empty .admin-user-stat-grid span {
    opacity: 0.72;
}

.admin-user-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-user-stat-grid span {
    display: grid;
    gap: 0.2rem;
    min-height: 74px;
    padding: 0.8rem;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-soft);
    font-weight: 700;
}

.admin-user-stat-grid strong {
    color: var(--text);
    font-size: 1.35rem;
}

body[data-theme="light"] .admin-segmented-filter {
    background: rgba(229, 236, 246, 0.86);
    border-color: rgba(67, 88, 118, 0.14);
}

body[data-theme="light"] .admin-detail-panel,
body[data-theme="light"] .admin-user-detail {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(67, 88, 118, 0.14);
    box-shadow: 0 16px 34px rgba(36, 56, 89, 0.08);
}

body[data-theme="light"] .admin-user-picker-panel {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(67, 88, 118, 0.14);
    box-shadow: 0 16px 34px rgba(36, 56, 89, 0.08);
}

body[data-theme="light"] .admin-request-block {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(67, 88, 118, 0.14);
    box-shadow: 0 16px 34px rgba(36, 56, 89, 0.08);
}

body[data-theme="light"] .admin-decision-item,
body[data-theme="light"] .admin-empty-state,
body[data-theme="light"] .admin-context-section {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(67, 88, 118, 0.14);
    box-shadow: 0 16px 34px rgba(36, 56, 89, 0.08);
}

body[data-theme="light"] .admin-linked-project-detail {
    background: rgba(247, 250, 253, 0.82);
    border-color: rgba(67, 88, 118, 0.12);
}

body[data-theme="light"] .admin-decision-metrics span {
    background: rgba(232, 240, 249, 0.72);
}

body[data-theme="light"] .admin-user-stat-grid span {
    background: rgba(232, 240, 249, 0.72);
}

body[data-theme="light"] .admin-insights-page .meeting-filter-actions .btn-primary,
body[data-theme="light"] .admin-insights-page .btn-admin-neutral {
    color: #2d3a4d !important;
    background: linear-gradient(180deg, #ffffff, #eef3f8) !important;
    border-color: rgba(67, 88, 118, 0.20) !important;
    box-shadow: 0 10px 22px rgba(39, 56, 86, 0.08) !important;
}

body[data-theme="light"] .admin-insights-page .meeting-filter-actions .btn-primary:hover,
body[data-theme="light"] .admin-insights-page .meeting-filter-actions .btn-primary:focus,
body[data-theme="light"] .admin-insights-page .btn-admin-neutral:hover,
body[data-theme="light"] .admin-insights-page .btn-admin-neutral:focus {
    color: #1f3045 !important;
    background: linear-gradient(180deg, #f4f7fb, #e5edf6) !important;
    border-color: rgba(67, 88, 118, 0.28) !important;
}

body[data-theme="light"] .admin-insights-page .status-pill.is-neutral {
    color: #42526a !important;
    background: rgba(105, 121, 145, 0.14) !important;
    border-color: rgba(105, 121, 145, 0.16);
}

@media (max-width: 991.98px) {
    .admin-detail-filters,
    .admin-decision-metrics,
    .admin-user-picker-panel,
    .admin-user-detail,
    .admin-user-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-detail-head {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .admin-user-search-row {
        grid-template-columns: 1fr;
    }
}

/* User operations dashboard */
.user-ops-dashboard {
    display: grid;
    gap: 0.85rem;
    color: #172033;
}

.user-ops-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    transition: grid-template-columns 240ms ease;
}

.user-ops-shell--collapsed {
    grid-template-columns: 72px minmax(0, 1fr);
}

.user-ops-main {
    display: grid;
    min-width: 0;
    gap: 0.85rem;
}

.ops-filter-sidebar {
    display: none;
    position: sticky;
    top: 78px;
    z-index: 8;
    display: grid;
    gap: 0.75rem;
    padding: 0.72rem;
    border: 1px solid rgba(36, 49, 73, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 60px rgba(31, 42, 67, 0.08);
    backdrop-filter: blur(18px);
}

.ops-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.ops-filter-title {
    display: grid;
    gap: 0.16rem;
}

.ops-filter-title span,
.ops-filter-section-title,
.ops-filter-body label span {
    color: #667085;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ops-filter-title strong {
    color: #111827;
    font-size: 0.95rem;
    line-height: 1.15;
}

.ops-sidebar-toggle {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(36, 49, 73, 0.14);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.72);
    color: #344054;
    font-weight: 900;
    cursor: pointer;
}

.ops-filter-body,
.ops-filter-section {
    display: grid;
    gap: 0.65rem;
}

.ops-filter-section {
    padding: 0.72rem;
    border: 1px solid rgba(36, 49, 73, 0.1);
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.03);
}

.ops-filter-body label {
    display: grid;
    gap: 0.3rem;
}

.ops-filter-sidebar .form-control {
    min-height: 38px;
    border-radius: 12px;
    border-color: rgba(36, 49, 73, 0.14);
}

.ops-filter-submit {
    width: 100%;
    min-height: 40px;
    border-radius: 12px !important;
}

.user-ops-shell--collapsed .ops-filter-title,
.user-ops-shell--collapsed .ops-filter-body {
    display: none;
}

.user-ops-shell--collapsed .ops-filter-sidebar {
    justify-items: center;
    padding: 0.65rem;
}

.ops-command-bar,
.ops-panel {
    border: 1px solid rgba(36, 49, 73, 0.12);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 60px rgba(31, 42, 67, 0.08);
}

.ops-command-bar {
    position: sticky;
    top: 78px;
    z-index: 8;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    backdrop-filter: blur(18px);
}

.ops-command-bar--compact {
    justify-content: flex-end;
    padding: 0.62rem 0.72rem;
    border-radius: 16px;
}

.ops-command-bar h1,
.ops-panel h2 {
    margin: 0.16rem 0 0;
    color: #111827;
    letter-spacing: 0;
}

.ops-command-bar h1 {
    font-size: 1.35rem;
}

.ops-panel h2 {
    font-size: 1rem;
    line-height: 1.25;
}

.ops-command-bar p,
.ops-panel p {
    margin: 0.35rem 0 0;
    color: #667085;
}

.ops-kicker {
    display: inline-flex;
    color: #667085;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ops-sector-chip {
    display: inline-flex;
    width: fit-content;
    margin-top: 0.35rem;
    padding: 0.22rem 0.55rem;
    border: 1px solid rgba(60, 131, 255, 0.18);
    border-radius: 999px;
    background: rgba(60, 131, 255, 0.08);
    color: #344054;
    font-size: 0.72rem;
    font-weight: 800;
}

.ops-date-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(158px, 1fr)) auto;
    gap: 0.6rem;
    align-items: end;
}

.ops-date-filter label {
    display: grid;
    gap: 0.25rem;
    color: #667085;
    font-size: 0.76rem;
    font-weight: 800;
}

.ops-date-filter .form-control {
    min-height: 34px;
    border-radius: 10px;
    border-color: rgba(36, 49, 73, 0.14);
}

.ops-top-grid,
.ops-main-grid,
.ops-analytics-grid {
    display: grid;
    gap: 0.85rem;
}

.ops-top-grid {
    grid-template-columns: 1.45fr 1fr repeat(4, minmax(145px, 0.75fr));
}

.ops-legacy-focus {
    display: none;
}

.ops-user-command {
    position: static;
    align-items: center;
}

.ops-command-meta {
    display: grid;
    gap: 0.5rem;
    justify-items: end;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: right;
}

.ops-dashboard-search {
    display: grid;
    grid-template-columns: minmax(260px, 360px) auto auto;
    gap: 0.45rem;
    align-items: center;
}

.ops-dashboard-search .form-control {
    min-height: 38px;
    border-radius: 12px;
    border-color: rgba(36, 49, 73, 0.14);
}

.ops-user-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.85rem;
}

.ops-main-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.68fr);
}

.ops-analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-analytics-grid.is-task-only {
    grid-template-columns: minmax(0, 1fr);
}

.ops-panel {
    border-radius: 18px;
    padding: 0.72rem;
}

.ops-team-card,
.ops-status-card,
.ops-metric-card {
    min-height: 88px;
}

.ops-team-card {
    display: grid;
    align-content: space-between;
}

.ops-team-card p,
.ops-status-card p,
.ops-metric-card p {
    display: -webkit-box;
    max-height: 2.8em;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.ops-status-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
}

.ops-avatar-row,
.ops-summary-chips {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.48rem;
    flex-wrap: wrap;
}

.ops-avatar-row span,
.ops-avatar-row small {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-right: -8px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #eaf1ff, #d5ffe9);
    color: #111827;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(31, 42, 67, 0.14);
}

.ops-avatar-row small {
    background: #111827;
    color: #fff;
}

.ops-summary-chips span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 28px;
    padding: 0.22rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.34);
    color: #c7d2fe;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.ops-summary-chips strong {
    display: inline-grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: #eef8ff;
    color: #0f172a;
    font-size: 0.76rem;
    font-weight: 900;
}

.ops-metric-card {
    display: grid;
    align-content: space-between;
    gap: 0.28rem;
}

.ops-metric-card--danger {
    border-color: rgba(240, 68, 56, 0.26);
}

.ops-metric-card--warning {
    border-color: rgba(246, 195, 77, 0.34);
}

.ops-metric-card span,
.ops-task-meta span,
.ops-task-side span,
.ops-task-side small,
.ops-notification span,
.ops-notification small,
.ops-history-status small,
.ops-history-type,
.ops-admin-comment span {
    color: #667085;
    font-size: 0.82rem;
}

.ops-metric-card strong {
    display: block;
    color: #111827;
    font-size: 1.18rem;
    line-height: 1;
}

.ops-ring {
    --pct: 0;
    display: grid;
    place-items: center;
    width: 78px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(#28c98b calc(var(--pct) * 1%), #eef2f6 0);
    position: relative;
}

.ops-ring::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: inherit;
    background: #fff;
}

.ops-ring strong,
.ops-ring span {
    position: relative;
    z-index: 1;
}

.ops-ring strong {
    color: #111827;
    font-size: 1.08rem;
    line-height: 1;
}

.ops-ring span {
    color: #667085;
    font-size: 0.62rem;
    font-weight: 800;
}

.ops-ring-small {
    width: 72px;
}

.ops-ring-small strong {
    font-size: 1.15rem;
}

.ops-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
}

.ops-soft-link,
.ops-count-chip,
.ops-filter-tabs button {
    border: 1px solid rgba(36, 49, 73, 0.12);
    border-radius: 999px;
    background: #f5f7fb;
    color: #344054;
    font-weight: 800;
    font-size: 0.78rem;
    text-decoration: none;
}

.ops-soft-link,
.ops-count-chip {
    padding: 0.42rem 0.7rem;
}

.ops-side-stack,
.ops-task-list,
.ops-reminder-list,
.ops-notification-list,
.ops-history-list,
.ops-bars {
    display: grid;
    gap: 0.65rem;
}

.ops-side-stack {
    align-content: start;
}

.ops-task-row,
.ops-reminder,
.ops-notification,
.ops-history-item {
    border: 1px solid rgba(36, 49, 73, 0.1);
    border-radius: 15px;
    background: #fbfcfe;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ops-task-row:hover,
.ops-reminder:hover,
.ops-notification:hover,
.ops-history-item:hover {
    transform: translateY(-2px);
    border-color: rgba(40, 201, 139, 0.32);
    box-shadow: 0 14px 32px rgba(31, 42, 67, 0.08);
}

.ops-task-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 1rem;
    padding: 0.78rem;
}

.ops-task-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.72rem;
}

.ops-task-main strong,
.ops-reminder strong,
.ops-notification strong,
.ops-history-main strong {
    color: #111827;
}

.ops-task-main p,
.ops-notification p,
.ops-history-main p,
.ops-admin-comment p {
    margin: 0.25rem 0 0;
    color: #667085;
}

.ops-task-dot {
    width: 10px;
    height: 10px;
    margin-top: 0.42rem;
    border-radius: 50%;
    background: #f6c34d;
}

.ops-task-dot.is-success { background: #28c98b; }
.ops-task-dot.is-primary { background: #3c83ff; }
.ops-task-dot.is-danger { background: #f04438; }

.ops-task-table-wrap {
    overflow-x: auto;
}

.ops-task-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    color: #344054;
    font-size: 0.84rem;
}

.ops-task-table th,
.ops-task-table td {
    padding: 0.68rem 0.72rem;
    border-bottom: 1px solid rgba(36, 49, 73, 0.1);
    vertical-align: top;
}

.ops-task-table th {
    color: #667085;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ops-task-table td:first-child {
    color: #111827;
}

.ops-task-title-cell {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.ops-task-title-link {
    color: inherit;
    font-weight: 900;
    text-decoration: none;
}

.ops-task-title-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.ops-task-table td:nth-child(2) strong {
    display: block;
    color: #111827;
}

.ops-task-table td:nth-child(2) {
    max-width: 420px;
    color: #667085;
}

.ops-task-description {
    display: -webkit-box;
    max-height: 2.8em;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.ops-click-row {
    cursor: pointer;
    transition: background 160ms ease;
}

.ops-click-row:hover {
    background: rgba(40, 201, 139, 0.08);
}

.ops-task-table .ops-task-dot {
    flex: 0 0 auto;
    margin-top: 0;
}

.ops-task-meta,
.ops-task-side,
.ops-history-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ops-task-meta {
    margin-top: 0.45rem;
}

.ops-task-side {
    justify-content: flex-end;
    align-content: center;
    text-align: right;
}

.ops-mini-progress,
.ops-bar-track {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f6;
}

.ops-mini-progress span,
.ops-bar-track span {
    display: block;
    height: 100%;
    min-width: 6px;
    border-radius: inherit;
    background: #28c98b;
}

.ops-priority-chip,
.ops-deadline {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.24rem 0.58rem;
    border-radius: 999px;
    background: rgba(60, 131, 255, 0.1);
    color: #245bcf;
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

.ops-deadline.is-danger {
    background: rgba(240, 68, 56, 0.14);
    color: #d92d20;
}

.ops-deadline.is-warning {
    background: rgba(246, 195, 77, 0.18);
    color: #b7791f;
}

.ops-deadline.is-success {
    background: rgba(40, 201, 139, 0.14);
    color: #16845a;
}

.ops-deadline.is-neutral {
    background: rgba(102, 112, 133, 0.12);
    color: #667085;
}

.ops-check-progress {
    display: grid;
    min-width: 96px;
    gap: 0.28rem;
    color: #344054;
    font-size: 0.76rem;
    font-weight: 800;
}

.ops-reminder,
.ops-notification {
    display: grid;
    gap: 0.2rem;
    padding: 0.72rem;
}

.ops-reminder {
    border-left: 4px solid #3c83ff;
}

.ops-reminder div {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
}

.ops-reminder small {
    color: #667085;
    font-size: 0.74rem;
}

.ops-reminder.is-warning { border-left-color: #f6c34d; }
.ops-reminder.is-danger { border-left-color: #f04438; }

.ops-notification.is-unread {
    background: linear-gradient(90deg, rgba(40, 201, 139, 0.12), #fbfcfe 42%);
}

.ops-notification-form {
    margin: 0;
}

.ops-notification-form .ops-notification {
    width: 100%;
    border: 1px solid rgba(36, 49, 73, 0.1);
    border-radius: 14px;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.ops-notification-form .ops-notification p {
    display: -webkit-box;
    max-height: 3.1em;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ops-notification-list {
    max-height: 340px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.ops-bars {
    margin-top: 0.4rem;
}

.ops-bar {
    display: grid;
    gap: 0.34rem;
}

.ops-bar > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    color: #344054;
}

.ops-bar-track span.is-success { background: #28c98b; }
.ops-bar-track span.is-warning { background: #f6c34d; }
.ops-bar-track span.is-danger { background: #f04438; }
.ops-bar-track span.is-primary { background: #3c83ff; }

.ops-strategy-table-wrap {
    overflow-x: auto;
}

.ops-strategy-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    color: #344054;
    font-size: 0.84rem;
}

.ops-strategy-table th,
.ops-strategy-table td {
    padding: 0.68rem 0.72rem;
    border-bottom: 1px solid rgba(36, 49, 73, 0.1);
    vertical-align: middle;
}

.ops-strategy-table th {
    color: #667085;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ops-strategy-table td:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #111827;
}

.ops-strategy-table td:first-child .ops-task-dot {
    margin-top: 0;
    flex: 0 0 auto;
}

.ops-table-value {
    display: inline-flex;
    min-width: 46px;
    justify-content: center;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #f2f6fb;
    color: #111827;
    font-weight: 900;
}

.ops-history-panel {
    padding-bottom: 1rem;
}

.ops-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ops-filter-tabs button {
    padding: 0.4rem 0.7rem;
}

.ops-filter-tabs button.is-active {
    background: #111827;
    color: #fff;
}

.ops-history-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 1rem;
    padding: 0.82rem;
}

.ops-history-status {
    justify-content: flex-end;
    align-content: start;
    text-align: right;
}

.ops-history-type {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ops-admin-comment {
    margin-top: 0.55rem;
    padding: 0.62rem;
    border-radius: 12px;
    background: #f2f6fb;
}

.ops-empty {
    padding: 0.9rem;
    border: 1px dashed rgba(36, 49, 73, 0.18);
    border-radius: 14px;
    color: #667085;
    background: #fbfcfe;
}

.user-ops-dashboard [data-motion] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.user-ops-dashboard [data-motion].is-visible {
    opacity: 1;
    transform: none;
}

body[data-theme="dark"] .user-ops-dashboard {
    color: #e7eefc;
}

body[data-theme="dark"] .ops-command-bar,
body[data-theme="dark"] .ops-panel {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .ops-filter-sidebar {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .ops-command-bar h1,
body[data-theme="dark"] .ops-panel h2,
body[data-theme="dark"] .ops-metric-card strong,
body[data-theme="dark"] .ops-ring strong,
body[data-theme="dark"] .ops-task-main strong,
body[data-theme="dark"] .ops-task-table td:nth-child(2) strong,
body[data-theme="dark"] .ops-reminder strong,
body[data-theme="dark"] .ops-notification strong,
body[data-theme="dark"] .ops-history-main strong {
    color: #f8fbff;
}

body[data-theme="dark"] .ops-filter-title strong {
    color: #f8fbff;
}

body[data-theme="dark"] .ops-command-bar p,
body[data-theme="dark"] .ops-panel p,
body[data-theme="dark"] .ops-command-meta,
body[data-theme="dark"] .ops-kicker,
body[data-theme="dark"] .ops-sector-chip,
body[data-theme="dark"] .ops-task-meta span,
body[data-theme="dark"] .ops-task-side span,
body[data-theme="dark"] .ops-task-side small,
body[data-theme="dark"] .ops-reminder small,
body[data-theme="dark"] .ops-notification span,
body[data-theme="dark"] .ops-notification small,
body[data-theme="dark"] .ops-history-status small,
body[data-theme="dark"] .ops-history-type,
body[data-theme="dark"] .ops-admin-comment span {
    color: #9fb0d0;
}

body[data-theme="dark"] .ops-filter-title span,
body[data-theme="dark"] .ops-filter-section-title,
body[data-theme="dark"] .ops-filter-body label span {
    color: #9fb0d0;
}

body[data-theme="dark"] .ops-sidebar-toggle {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.08);
    color: #dce7ff;
}

body[data-theme="dark"] .ops-filter-section {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .ops-filter-sidebar .form-control {
    background: rgba(8, 15, 28, 0.72);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e7eefc;
}

body[data-theme="dark"] .ops-dashboard-search .form-control {
    background: rgba(8, 15, 28, 0.72);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e7eefc;
}

body[data-theme="dark"] .ops-task-row,
body[data-theme="dark"] .ops-reminder,
body[data-theme="dark"] .ops-notification,
body[data-theme="dark"] .ops-notification-form .ops-notification,
body[data-theme="dark"] .ops-history-item,
body[data-theme="dark"] .ops-empty {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.07);
}

body[data-theme="dark"] .ops-task-table {
    color: #c6d3ee;
}

body[data-theme="dark"] .ops-task-table th,
body[data-theme="dark"] .ops-task-table td:nth-child(2) {
    color: #9fb0d0;
}

body[data-theme="dark"] .ops-task-table td {
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

body[data-theme="dark"] .ops-task-table td:first-child {
    color: #f8fbff;
}

body[data-theme="dark"] .ops-task-title-link {
    color: #f8fbff;
}

body[data-theme="dark"] .ops-check-progress {
    color: #dce7ff;
}

body[data-theme="dark"] .ops-notification.is-unread {
    background: linear-gradient(90deg, rgba(40, 201, 139, 0.16), rgba(15, 23, 42, 0.92) 48%);
}

body[data-theme="dark"] .ops-click-row:hover {
    background: rgba(40, 201, 139, 0.11);
}

body[data-theme="dark"] .ops-ring::before {
    background: #0f172a;
}

body[data-theme="dark"] .ops-soft-link,
body[data-theme="dark"] .ops-count-chip,
body[data-theme="dark"] .ops-filter-tabs button,
body[data-theme="dark"] .ops-admin-comment {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.08);
    color: #dce7ff;
}

body[data-theme="dark"] .ops-filter-tabs button.is-active {
    background: #f8fbff;
    color: #111827;
}

body[data-theme="dark"] .ops-mini-progress,
body[data-theme="dark"] .ops-bar-track {
    background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .ops-strategy-table {
    color: #c6d3ee;
}

body[data-theme="dark"] .ops-strategy-table th {
    color: #9fb0d0;
}

body[data-theme="dark"] .ops-strategy-table td {
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

body[data-theme="dark"] .ops-strategy-table td:first-child,
body[data-theme="dark"] .ops-table-value {
    color: #f8fbff;
}

body[data-theme="dark"] .ops-table-value {
    background: rgba(255, 255, 255, 0.055);
}

.admin-users-page {
    display: grid;
    gap: 0.85rem;
}

.admin-users-tabs-page {
    gap: 18px;
}

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

.admin-section-tab {
    min-height: 74px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 8px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, .48);
    text-decoration: none;
}

.admin-section-tab:hover,
.admin-section-tab.is-active {
    color: #ffffff;
    border-color: rgba(59, 130, 246, .55);
    background: rgba(37, 99, 235, .22);
}

.admin-section-tab span {
    font-size: .95rem;
    font-weight: 900;
}

.admin-section-tab small {
    color: #94a3b8;
    font-size: .76rem;
    font-weight: 750;
}

.admin-section-panel {
    max-width: 920px;
}

body[data-theme="light"] .admin-section-tab {
    color: #0f172a;
    border-color: rgba(62, 82, 111, .14);
    background: rgba(255, 255, 255, .78);
}

body[data-theme="light"] .admin-section-tab:hover,
body[data-theme="light"] .admin-section-tab.is-active {
    color: #0f172a;
    border-color: rgba(47, 99, 168, .42);
    background: rgba(47, 99, 168, .12);
}

body[data-theme="light"] .admin-section-tab small {
    color: #64748b;
}

.admin-users-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
    gap: 0.85rem;
}

.admin-user-form {
    display: grid;
    gap: 0.75rem;
}

.admin-user-form label {
    display: grid;
    gap: 0.28rem;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-user-form .select2-container .select2-selection--single {
    min-height: 43px;
    display: flex;
    align-items: center;
    border-radius: 8px;
}

.admin-user-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 41px;
}

.admin-user-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    min-height: 41px;
}

body[data-theme="dark"] .admin-user-form .select2-container--default .select2-selection--single {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(2, 6, 23, 0.42);
}

body[data-theme="dark"] .admin-user-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f8fbff;
}

body[data-theme="dark"] .admin-user-form .select2-dropdown {
    border-color: rgba(255, 255, 255, 0.1);
    background: #0f172a;
    color: #f8fbff;
}

body[data-theme="dark"] .admin-user-form .select2-search__field {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(2, 6, 23, 0.82);
    color: #f8fbff;
}

.admin-user-row .status-pill:not(.is-primary):not(.is-success):not(.is-danger):not(.is-warning) {
    background: rgba(148, 163, 184, 0.14);
    color: #94a3b8;
}

.admin-users-list {
    display: grid;
    gap: 0.55rem;
}

.admin-user-picker-card {
    display: grid;
    gap: 0.8rem;
}

.admin-user-picker-card label {
    display: grid;
    gap: 0.35rem;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-current-user {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    min-height: 88px;
    padding: 0.9rem;
    border: 1px solid rgba(36, 49, 73, 0.1);
    border-radius: 8px;
    background: #fbfcfe;
}

.admin-current-user[hidden] {
    display: none;
}

.admin-current-user-main {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.admin-current-user-main strong {
    color: #111827;
    overflow-wrap: anywhere;
}

.admin-current-user-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.admin-current-user-actions {
    display: flex;
    justify-content: flex-end;
}

.admin-current-user.is-empty {
    grid-template-columns: 1fr;
    color: #9fb0d0;
    font-weight: 800;
}

.admin-user-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem;
    border: 1px solid rgba(36, 49, 73, 0.1);
    border-radius: 14px;
    background: #fbfcfe;
}

.admin-user-row > div {
    display: grid;
    gap: 0.14rem;
}

.admin-user-row strong {
    color: #111827;
}

.admin-user-row span,
.admin-user-row small {
    color: #667085;
    font-size: 0.8rem;
}

body[data-theme="dark"] .admin-user-row {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.07);
}

body[data-theme="dark"] .admin-current-user {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.07);
}

body[data-theme="dark"] .admin-current-user-main strong {
    color: #f8fbff;
}

body[data-theme="dark"] .admin-user-row strong {
    color: #f8fbff;
}

body[data-theme="dark"] .admin-user-row span,
body[data-theme="dark"] .admin-user-row small {
    color: #9fb0d0;
}

@media (max-width: 1400px) {
    .user-ops-shell {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .ops-top-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ops-team-card,
    .ops-status-card {
        grid-column: span 2;
    }
}

@media (max-width: 1100px) {
    .user-ops-shell,
    .user-ops-shell--collapsed {
        grid-template-columns: 1fr;
    }

    .ops-filter-sidebar {
        position: static;
    }

    .user-ops-shell--collapsed .ops-filter-title,
    .user-ops-shell--collapsed .ops-filter-body {
        display: grid;
    }

    .user-ops-shell--collapsed .ops-filter-sidebar {
        justify-items: stretch;
    }

    .ops-main-grid,
    .ops-analytics-grid,
    .admin-users-grid {
        grid-template-columns: 1fr;
    }

    .admin-section-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-command-bar {
        position: static;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 760px) {
    .admin-section-tabs {
        grid-template-columns: 1fr;
    }

    .ops-top-grid,
    .ops-date-filter {
        grid-template-columns: 1fr;
    }

    .ops-team-card,
    .ops-status-card {
        grid-column: auto;
    }

    .ops-task-row,
    .ops-history-item {
        grid-template-columns: 1fr;
    }

    .ops-task-side,
    .ops-history-status {
        justify-content: flex-start;
        text-align: left;
    }
}
.responsaveis-dropdown {
    position: relative;
}

.responsaveis-dropdown > summary {
    cursor: pointer;
    list-style: none;
    min-height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.responsaveis-dropdown > summary::-webkit-details-marker {
    display: none;
}

.responsaveis-dropdown-menu {
    background: #07111f;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
    left: 0;
    margin-top: 6px;
    max-height: 240px;
    overflow-y: auto;
    padding: 8px;
    position: absolute;
    right: 0;
    z-index: 30;
}

.responsaveis-dropdown-option {
    align-items: center;
    border-radius: 6px;
    color: #e5edf7;
    cursor: pointer;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
}

.responsaveis-dropdown-option:hover {
    background: rgba(59, 130, 246, .16);
}

.responsaveis-dropdown-option input {
    flex: 0 0 auto;
}

body[data-theme="light"] .responsaveis-dropdown-menu {
    background: #ffffff;
    border-color: rgba(15, 23, 42, .16);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
}

body[data-theme="light"] .responsaveis-dropdown-option {
    color: #0f172a;
}

body[data-theme="light"] .responsaveis-dropdown-option:hover {
    background: rgba(37, 99, 235, .10);
}

.nps-page {
    --nps-accent: #10b981;
    display: grid;
    gap: 1rem;
    max-width: 1320px;
    margin: 0 auto;
    color: #f8fbff;
}

.nps-page--public {
    max-width: 760px;
}

.nps-page--public .nps-layout {
    grid-template-columns: minmax(0, 1fr);
}

.nps-public-body .app-main-shell {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nps-public-body .app-main {
    width: 100%;
    padding-bottom: 0 !important;
}

.nps-hero,
.nps-card,
.nps-list,
.nps-results,
.nps-metrics article {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(10, 18, 32, .82);
    box-shadow: 0 18px 54px rgba(0, 0, 0, .24);
}

.nps-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem;
    background:
        linear-gradient(135deg, rgba(16, 185, 129, .17), rgba(59, 130, 246, .1)),
        rgba(10, 18, 32, .84);
}

.nps-kicker {
    display: block;
    color: #93c5fd;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.nps-hero h1,
.nps-card h2,
.nps-list h2,
.nps-results h2 {
    margin: .25rem 0;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 0;
}

.nps-hero h1 {
    font-size: 2rem;
}

.nps-hero p,
.nps-card p {
    max-width: 720px;
    margin: 0;
    color: #cbd5e1;
}

.nps-score-orb {
    width: 128px;
    height: 128px;
    flex: 0 0 128px;
    display: grid;
    place-content: center;
    text-align: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(10, 18, 32, .96) 58%, transparent 59%),
        conic-gradient(var(--nps-accent) 72%, rgba(255, 255, 255, .12) 0);
}

.nps-score-orb strong {
    font-size: 1.8rem;
    line-height: 1;
}

.nps-score-orb span {
    color: #aab8d3;
    font-size: .72rem;
    font-weight: 800;
}

.nps-alert {
    border: 1px solid rgba(16, 185, 129, .28);
    border-radius: 8px;
    padding: .85rem 1rem;
    color: #bbf7d0;
    background: rgba(16, 185, 129, .12);
    font-weight: 800;
}

.nps-alert--warning {
    border-color: rgba(245, 158, 11, .35);
    color: #fde68a;
    background: rgba(245, 158, 11, .12);
}

.nps-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
}

.nps-metrics article {
    min-width: 0;
    padding: .9rem;
}

.nps-metrics span,
.nps-row small,
.nps-row span {
    color: #9fb0d0;
}

.nps-metrics strong {
    display: block;
    margin-top: .25rem;
    color: #ffffff;
    font-size: 1.45rem;
}

.nps-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.nps-card,
.nps-list,
.nps-results {
    padding: 1rem;
}

.nps-card {
    display: grid;
    gap: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease;
    border-color: color-mix(in srgb, var(--nps-accent) 42%, rgba(255, 255, 255, .12));
}

.nps-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .9rem;
    align-items: center;
}

.nps-emoji {
    width: 88px;
    height: 88px;
    display: grid;
    place-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--nps-accent) 18%, rgba(255, 255, 255, .08));
    font-size: 3.1rem;
    line-height: 1;
}

.nps-progress {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
}

.nps-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--nps-accent), #38bdf8);
    transition: width .2s ease, background .2s ease;
}

.nps-scale {
    display: grid;
    grid-template-columns: repeat(10, minmax(42px, 1fr));
    gap: .45rem;
}

.nps-score-button {
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    color: #e5edf7;
    background: rgba(255, 255, 255, .06);
    font-size: 1rem;
    font-weight: 900;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.nps-score-button:hover,
.nps-score-button.is-selected {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--nps-accent) 70%, #ffffff);
    background: var(--nps-accent);
    color: #ffffff;
}

.nps-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.nps-form-grid label {
    display: grid;
    gap: .35rem;
    min-width: 0;
}

.nps-form-grid label > span:first-child {
    color: #cbd5e1;
    font-size: .8rem;
    font-weight: 850;
}

.nps-field-full {
    grid-column: 1 / -1;
}

.nps-card .form-control {
    min-height: 44px;
    border-color: rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(2, 6, 23, .38);
    color: #f8fbff;
}

.nps-card .form-control:focus {
    border-color: var(--nps-accent);
    background: rgba(2, 6, 23, .62);
    color: #ffffff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nps-accent) 22%, transparent);
}

.nps-submit {
    min-height: 50px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--nps-accent), #2563eb);
    font-weight: 900;
}

.nps-list,
.nps-results {
    display: grid;
    gap: .75rem;
}

.nps-copy-status {
    margin: 0;
    color: #9fb0d0;
    font-size: .78rem;
    font-weight: 800;
}

.nps-auto-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
    margin: 0;
}

.nps-auto-meta div {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    padding: .7rem;
    background: rgba(255, 255, 255, .045);
}

.nps-auto-meta dt {
    color: #9fb0d0;
    font-size: .72rem;
    font-weight: 850;
}

.nps-auto-meta dd {
    margin: .2rem 0 0;
    color: #ffffff;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.nps-form-grid--single {
    grid-template-columns: 1fr;
}

.nps-list-head {
    display: grid;
    gap: .1rem;
}

.nps-results {
    margin-top: 1rem;
}

.nps-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nps-share {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    min-width: 0;
}

.nps-share-button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-content: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    color: #dbeafe;
    background: rgba(37, 99, 235, .14);
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.nps-share-button:hover,
.nps-share-button:focus-visible {
    border-color: rgba(56, 189, 248, .65);
    color: #ffffff;
    background: rgba(37, 99, 235, .34);
}

.nps-share-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nps-results-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
}

.nps-results-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    table-layout: fixed;
}

.nps-results-table th,
.nps-results-table td {
    padding: .75rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #e5edf7;
    text-align: left;
    vertical-align: top;
}

.nps-results-table th {
    color: #93c5fd;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.nps-results-table tbody tr:last-child td {
    border-bottom: 0;
}

.nps-results-table th:nth-child(1),
.nps-results-table td:nth-child(1) {
    width: 110px;
}

.nps-results-table th:nth-child(2),
.nps-results-table td:nth-child(2) {
    width: 230px;
}

.nps-results-table th:nth-child(3),
.nps-results-table td:nth-child(3) {
    width: 190px;
}

.nps-results-table th:nth-child(4),
.nps-results-table td:nth-child(4) {
    width: 70px;
}

.nps-results-table th:nth-child(5),
.nps-results-table td:nth-child(5) {
    width: 120px;
}

.nps-result-score {
    display: inline-grid;
    min-width: 2.2rem;
    min-height: 2.2rem;
    place-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
}

.nps-result-score--promotor {
    background: #10b981;
}

.nps-result-score--neutro {
    background: #f59e0b;
}

.nps-result-score--detrator {
    background: #ef4444;
}

.nps-comment-cell {
    min-width: 0;
}

.nps-comment-preview {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nps-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-left: 4px solid #94a3b8;
    border-radius: 8px;
    padding: .75rem;
    background: rgba(255, 255, 255, .045);
}

.nps-row--promotor {
    border-left-color: #10b981;
}

.nps-row--neutro {
    border-left-color: #f59e0b;
}

.nps-row--detrator {
    border-left-color: #ef4444;
}

.nps-row strong,
.nps-row span,
.nps-row small {
    display: block;
}

.nps-row > div:last-child {
    text-align: right;
}

.nps-row > div:last-child strong {
    font-size: 1.5rem;
    line-height: 1;
}

.nps-empty {
    border: 1px dashed rgba(255, 255, 255, .18);
    border-radius: 8px;
    padding: 1rem;
    color: #cbd5e1;
    text-align: center;
}

body[data-theme="light"] .nps-page {
    color: #101828;
}

body[data-theme="light"] .nps-hero,
body[data-theme="light"] .nps-card,
body[data-theme="light"] .nps-list,
body[data-theme="light"] .nps-results,
body[data-theme="light"] .nps-metrics article {
    border-color: rgba(15, 23, 42, .1);
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

body[data-theme="light"] .nps-hero h1,
body[data-theme="light"] .nps-card h2,
body[data-theme="light"] .nps-list h2,
body[data-theme="light"] .nps-results h2,
body[data-theme="light"] .nps-metrics strong,
body[data-theme="light"] .nps-row strong,
body[data-theme="light"] .nps-auto-meta dd {
    color: #101828;
}

body[data-theme="light"] .nps-hero p,
body[data-theme="light"] .nps-card p,
body[data-theme="light"] .nps-form-grid label > span:first-child,
body[data-theme="light"] .nps-auto-meta dt,
body[data-theme="light"] .nps-metrics span,
body[data-theme="light"] .nps-row small,
body[data-theme="light"] .nps-row span {
    color: #475467;
}

body[data-theme="light"] .nps-card .form-control {
    border-color: rgba(15, 23, 42, .14);
    background: #f8fafc;
    color: #101828;
}

body[data-theme="light"] .nps-score-button {
    border-color: rgba(15, 23, 42, .12);
    color: #101828;
    background: #f8fafc;
}

body[data-theme="light"] .nps-row {
    border-color: rgba(15, 23, 42, .1);
    background: #f8fafc;
}

body[data-theme="light"] .nps-results-table-wrap {
    border-color: rgba(15, 23, 42, .1);
}

body[data-theme="light"] .nps-results-table th,
body[data-theme="light"] .nps-results-table td {
    border-bottom-color: rgba(15, 23, 42, .08);
}

body[data-theme="light"] .nps-results-table td {
    color: #101828;
}

body[data-theme="light"] .nps-share-button {
    border-color: rgba(15, 23, 42, .12);
    color: #1d4ed8;
    background: rgba(37, 99, 235, .08);
}

body[data-theme="light"] .nps-auto-meta div {
    border-color: rgba(15, 23, 42, .1);
    background: #f8fafc;
}

@media (max-width: 1100px) {
    .nps-layout {
        grid-template-columns: 1fr;
    }

    .nps-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .nps-body .app-navbar-toggler {
        display: block !important;
        margin-left: auto;
    }

    .nps-body .app-navbar .app-nav-shell {
        flex-wrap: wrap !important;
    }

    .nps-body .app-navbar-collapse {
        position: static;
        top: auto;
        right: auto;
        transform: none;
        flex: 1 0 100% !important;
        width: 100% !important;
        margin-top: .6rem !important;
        padding: .75rem !important;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 8px;
        background: rgba(8, 18, 34, .96);
    }

    .nps-body .app-navbar-collapse:not(.show) {
        display: none !important;
    }

    .nps-body .app-navbar-collapse.show,
    .nps-body .app-nav-center {
        display: block !important;
    }

    .nps-body .app-nav-center-list {
        align-items: stretch !important;
    }

    .nps-body .app-nav-right {
        justify-content: flex-start;
        margin-left: 0 !important;
        padding-top: .4rem;
    }

    .nps-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem;
    }

    .nps-score-orb {
        width: 104px;
        height: 104px;
        flex-basis: 104px;
    }

    .nps-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
    }

    .nps-metrics article,
    .nps-card,
    .nps-list,
    .nps-results {
        padding: .85rem;
    }

    .nps-card-head,
    .nps-form-grid,
    .nps-auto-meta {
        grid-template-columns: 1fr;
    }

    .nps-card-head .nps-share {
        justify-content: flex-start;
    }

    .nps-emoji {
        width: 76px;
        height: 76px;
        font-size: 2.55rem;
    }

    .nps-scale {
        grid-template-columns: repeat(5, minmax(48px, 1fr));
        gap: .5rem;
    }

    .nps-score-button {
        min-height: 58px;
        font-size: 1.05rem;
    }

    .nps-field-full {
        grid-column: auto;
    }
}

.mobile-task-dashboard {
    display: grid;
    gap: 1rem;
    margin: 0 auto;
    max-width: 760px;
    min-width: 0;
    padding: 0.25rem 0 1.5rem;
    width: 100%;
}

.mobile-task-dashboard *,
.mobile-task-dashboard *::before,
.mobile-task-dashboard *::after {
    box-sizing: border-box;
}

.mobile-task-hero {
    background: linear-gradient(145deg, rgba(37, 99, 235, .28), rgba(14, 165, 233, .12));
    border: 1px solid rgba(96, 165, 250, .24);
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(2, 6, 23, .26);
    padding: 1.15rem;
}

.mobile-task-hero span,
.mobile-task-section-head span,
.mobile-task-summary span,
.mobile-task-meta dt {
    color: #9fb3d8;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mobile-task-hero h1 {
    color: #f8fbff;
    font-size: 1.65rem;
    line-height: 1.08;
    margin: .45rem 0;
    overflow-wrap: anywhere;
}

.mobile-task-hero p {
    color: #d8e3f5;
    margin: 0;
}

.mobile-task-summary {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
}

.mobile-task-summary article {
    background: rgba(15, 23, 42, .78);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 14px;
    min-width: 0;
    padding: .85rem;
}

.mobile-task-summary strong {
    color: #ffffff;
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    margin-top: .3rem;
}

.mobile-task-section {
    display: grid;
    gap: .9rem;
    min-width: 0;
}

.mobile-task-section-head {
    align-items: center;
    display: flex;
    gap: .85rem;
    justify-content: space-between;
}

.mobile-task-section-head h2 {
    color: #f8fbff;
    font-size: 1.25rem;
    margin: .2rem 0 0;
}

.mobile-task-board-link,
.mobile-task-action {
    align-items: center;
    border-radius: 12px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    text-decoration: none;
}

.mobile-task-board-link {
    background: rgba(59, 130, 246, .15);
    border: 1px solid rgba(96, 165, 250, .28);
    color: #dbeafe;
    padding: 0 .9rem;
}

.mobile-task-list {
    display: grid;
    gap: .9rem;
    min-width: 0;
}

.mobile-task-card {
    background: rgba(15, 23, 42, .86);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(2, 6, 23, .24);
    display: grid;
    gap: .85rem;
    min-width: 0;
    padding: 1rem;
}

.mobile-task-card-top {
    align-items: center;
    display: flex;
    gap: .55rem;
    justify-content: space-between;
}

.mobile-priority,
.mobile-status {
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 900;
    padding: .34rem .65rem;
}

.mobile-priority.is-high {
    background: rgba(239, 68, 68, .18);
    color: #fecaca;
}

.mobile-priority.is-medium {
    background: rgba(245, 158, 11, .18);
    color: #fde68a;
}

.mobile-priority.is-low {
    background: rgba(34, 197, 94, .16);
    color: #bbf7d0;
}

.mobile-status.is-primary {
    background: rgba(59, 130, 246, .16);
    color: #bfdbfe;
}

.mobile-status.is-warning {
    background: rgba(245, 158, 11, .18);
    color: #fde68a;
}

.mobile-status.is-success {
    background: rgba(34, 197, 94, .16);
    color: #bbf7d0;
}

.mobile-task-card h3 {
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1.25;
    margin: 0;
    overflow-wrap: anywhere;
}

.mobile-task-card p {
    color: #cbd5e1;
    font-size: .92rem;
    line-height: 1.45;
    margin: 0;
    overflow-wrap: anywhere;
}

.mobile-task-meta {
    display: grid;
    gap: .65rem;
    grid-template-columns: 1fr;
    margin: 0;
    min-width: 0;
}

.mobile-task-meta div {
    background: rgba(2, 6, 23, .28);
    border-radius: 12px;
    min-width: 0;
    padding: .7rem .75rem;
}

.mobile-task-meta dd {
    color: #f8fbff;
    font-weight: 700;
    margin: .18rem 0 0;
    overflow-wrap: anywhere;
}

.mobile-task-action {
    background: #2563eb;
    color: #ffffff;
    min-height: 50px;
    width: 100%;
}

.mobile-task-empty {
    background: rgba(15, 23, 42, .8);
    border: 1px dashed rgba(148, 163, 184, .28);
    border-radius: 16px;
    color: #cbd5e1;
    display: grid;
    gap: .25rem;
    padding: 1rem;
}

.mobile-task-empty strong {
    color: #ffffff;
}

body[data-theme="light"] .mobile-task-hero,
body[data-theme="light"] .mobile-task-summary article,
body[data-theme="light"] .mobile-task-card,
body[data-theme="light"] .mobile-task-empty {
    background: #ffffff;
    border-color: rgba(15, 23, 42, .1);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

body[data-theme="light"] .mobile-task-hero h1,
body[data-theme="light"] .mobile-task-section-head h2,
body[data-theme="light"] .mobile-task-summary strong,
body[data-theme="light"] .mobile-task-card h3,
body[data-theme="light"] .mobile-task-meta dd,
body[data-theme="light"] .mobile-task-empty strong {
    color: #0f172a;
}

body[data-theme="light"] .mobile-task-hero p,
body[data-theme="light"] .mobile-task-card p {
    color: #475569;
}

body[data-theme="light"] .mobile-task-meta div {
    background: #f1f5f9;
}

body[data-theme="light"] .mobile-task-hero span,
body[data-theme="light"] .mobile-task-section-head span,
body[data-theme="light"] .mobile-task-summary span,
body[data-theme="light"] .mobile-task-meta dt {
    color: #3b5b8a;
}

body[data-theme="light"] .mobile-task-board-link {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

body[data-theme="light"] .mobile-priority.is-high {
    background: #fee2e2;
    color: #991b1b;
}

body[data-theme="light"] .mobile-priority.is-medium {
    background: #fef3c7;
    color: #92400e;
}

body[data-theme="light"] .mobile-priority.is-low {
    background: #dcfce7;
    color: #166534;
}

body[data-theme="light"] .mobile-status.is-primary {
    background: #dbeafe;
    color: #1e40af;
}

body[data-theme="light"] .mobile-status.is-warning {
    background: #fef3c7;
    color: #92400e;
}

body[data-theme="light"] .mobile-status.is-success {
    background: #dcfce7;
    color: #166534;
}

@media (max-width: 768px) {
    .app-body {
        overflow-x: hidden;
    }

    .app-nav-center,
    .app-navbar-toggler {
        display: none !important;
    }

    .app-navbar {
        position: relative;
    }

    .app-navbar .app-nav-shell {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: .5rem;
        min-height: 58px;
        position: relative;
    }

    .app-navbar-collapse {
        display: flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0;
        margin-top: 0 !important;
        padding: 0 !important;
        position: absolute;
        top: 50%;
        right: .6rem;
        transform: translateY(-50%);
        z-index: 2;
    }

    .app-nav-shell {
        align-items: center;
        flex-wrap: nowrap;
        gap: .55rem;
        min-height: 58px;
    }

    .app-brand {
        flex: 0 0 auto;
        min-width: 0;
        max-width: none !important;
        margin-right: .4rem !important;
    }

    .app-brand-mark {
        height: 38px;
        width: 46px;
    }

    .app-brand-logo {
        max-height: 24px;
    }

    .app-brand-copy {
        display: none;
    }

    .app-nav-right {
        display: flex;
        justify-content: flex-end;
        margin-left: auto !important;
        min-width: 0;
        width: auto !important;
        order: 0 !important;
        flex: 0 0 auto;
    }

    .app-login-nav {
        display: flex !important;
        align-items: center !important;
        flex-direction: row !important;
        flex-wrap: nowrap;
        gap: .42rem !important;
        justify-content: flex-end;
        margin: 0;
        width: auto !important;
        min-width: 0;
    }

    .app-login-nav .nav-item {
        flex: 0 0 auto;
        width: auto !important;
    }

    .app-login-nav .nav-item:nth-child(1) {
        order: 1;
    }

    .app-login-nav .app-signout-item {
        order: 2;
    }

    .app-login-nav .nav-item:nth-child(2) {
        order: 3;
    }

    .app-theme-toggle--minimal,
    .app-signout-button,
    .app-profile-link.app-user-chip {
        border-radius: 999px;
        height: 38px;
        min-height: 38px;
        padding: 0 !important;
    }

    .app-theme-toggle--minimal {
        width: 38px;
        min-width: 38px;
    }

    .app-theme-toggle--minimal,
    .app-signout-button {
        transform: translateY(10%);
    }

    .app-profile-link.app-user-chip {
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        min-width: 36px;
        width: 36px;
    }

    .app-user-avatar {
        height: 34px;
        width: 34px;
    }

    .app-user-avatar-image,
    .app-user-avatar-fallback {
        height: 34px;
        width: 34px;
    }

    .user-box-meta {
        display: none !important;
    }

    .app-signout-button {
        font-size: .78rem;
        height: 38px;
        min-width: 56px;
        padding: 0 .72rem !important;
    }

    .app-signout-item,
    .app-signout-form {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        outline: 0 !important;
        padding: 0 !important;
    }

    .app-signout-button {
        background: rgba(255, 255, 255, .08) !important;
        border: 1px solid rgba(255, 255, 255, .18) !important;
        box-shadow: none !important;
        outline: 0 !important;
    }

    .app-main-shell {
        padding-left: .85rem !important;
        padding-right: .85rem !important;
    }

    .mobile-task-body .app-main-shell {
        padding-left: .65rem !important;
        padding-right: .65rem !important;
        overflow-x: hidden;
    }

    .app-main {
        padding-bottom: 1rem !important;
    }

    .mobile-task-body .app-main,
    .mobile-task-body .main-content {
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
        padding-top: .85rem !important;
        width: 100%;
    }

    .mobile-task-body .mobile-task-dashboard {
        gap: .85rem;
        max-width: 100%;
        padding-top: 0;
    }

    .mobile-task-hero {
        border-radius: 16px;
        padding: .95rem;
    }

    .mobile-task-hero h1 {
        font-size: 1.42rem;
        line-height: 1.12;
    }

    .mobile-task-summary {
        gap: .55rem;
    }

    .mobile-task-summary article {
        border-radius: 12px;
        padding: .7rem .55rem;
    }

    .mobile-task-summary span {
        font-size: .64rem;
        letter-spacing: .02em;
        overflow-wrap: anywhere;
    }

    .mobile-task-summary strong {
        font-size: 1.35rem;
    }

    .mobile-task-section-head {
        gap: .6rem;
        min-width: 0;
    }

    .mobile-task-section-head > div {
        min-width: 0;
    }

    .mobile-task-section-head h2 {
        font-size: 1.12rem;
        overflow-wrap: anywhere;
    }

    .mobile-task-board-link {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 0 .72rem;
    }

    .mobile-task-card {
        border-radius: 14px;
        gap: .75rem;
        padding: .9rem;
    }

    .mobile-priority,
    .mobile-status {
        font-size: .68rem;
        padding: .3rem .5rem;
        text-align: center;
    }

    .mobile-task-meta div {
        padding: .65rem .65rem;
    }

    .app-footer {
        display: none;
    }

    .mobile-task-body .app-header {
        position: sticky;
        top: 0;
        z-index: 40;
    }

    .mobile-task-body .app-navbar {
        background: rgba(8, 24, 42, .94) !important;
    }

body[data-theme="light"].mobile-task-body .app-navbar {
        background: rgba(255, 255, 255, .96) !important;
    }
}

/* Navbar fixa: remove movimento ao clicar nas abas e abrir dropdowns. */
@media (min-width: 769px) {
    .app-header,
    .app-navbar,
    .app-navbar .container-fluid,
    .app-navbar .app-nav-shell,
    .app-navbar-collapse,
    .app-nav-center,
    .app-nav-right,
    .app-nav-center-list,
    .app-main-nav,
    .app-main-nav *,
    .navbar-nav .nav-link,
    .dropdown-menu,
    .dropdown-item {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .app-navbar,
    .app-navbar .app-nav-shell {
        height: var(--navbar-height) !important;
        min-height: var(--navbar-height) !important;
        max-height: var(--navbar-height) !important;
    }

    .app-navbar .app-nav-shell,
    .app-navbar-collapse,
    .app-nav-center,
    .app-nav-right,
    .app-main-nav {
        align-items: center !important;
    }

    .app-main-nav,
    .app-main-nav .nav-item,
    .app-main-nav .dropdown {
        flex-wrap: nowrap !important;
    }

    .app-main-nav .nav-item,
    .app-main-nav .dropdown {
        width: auto !important;
        position: relative !important;
    }

    .app-main-nav .nav-link {
        width: auto !important;
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }

    .app-main-nav .dropdown-menu,
    .app-main-nav .dropdown-menu[data-bs-popper] {
        position: absolute !important;
        inset: auto auto auto 0 !important;
        top: calc(100% + .5rem) !important;
        left: 0 !important;
        width: max-content !important;
        min-width: 220px !important;
        margin: 0 !important;
        translate: none !important;
        transform: none !important;
        will-change: auto !important;
        z-index: 1200 !important;
    }
}

/* Painéis de Empresas e Projetos */
.entity-panel-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.entity-panel-hero {
    min-height: 118px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(125, 211, 252, .18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .24), rgba(30, 64, 175, .18)),
        rgba(10, 15, 24, .86);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.entity-panel-hero h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    font-weight: 900;
    letter-spacing: 0;
}

.entity-panel-hero p {
    max-width: 760px;
    margin: 6px 0 0;
    color: #cbd5e1;
    font-size: .92rem;
}

.entity-filter-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.entity-filter-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.entity-filter-icon::before,
.entity-filter-icon::after {
    content: "";
    position: absolute;
    left: 1px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.entity-filter-icon::before {
    top: 3px;
    width: 12px;
}

.entity-filter-icon::after {
    top: 9px;
    width: 8px;
}

.entity-metric-grid .process-metric-card strong {
    font-size: clamp(1.45rem, 2.25vw, 2.25rem);
}

.entity-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.entity-filter-form .form-control {
    min-height: 40px;
}

.entity-panel-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 14px;
    align-items: start;
}

.entity-main-panel {
    min-width: 0;
}

.entity-side-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.entity-table-shell {
    max-height: 620px;
}

.project-sector-panel--full {
    display: flex;
    flex-direction: column;
    max-height: 620px;
}

.project-sector-panel--full .process-owner-chart {
    max-height: calc(620px - 72px);
    align-content: start;
}

.entity-data-table {
    min-width: 1040px;
}

.entity-project-table {
    min-width: 1320px;
}

.entity-row {
    cursor: pointer;
}

.entity-row.is-selected td {
    background: rgba(37, 99, 235, .16) !important;
}

.entity-title-cell span {
    color: #22c55e;
}

.entity-inline-status-form {
    padding: 0;
    border: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

.entity-inline-status {
    width: 100%;
    min-width: 170px;
    max-width: 220px;
    height: 34px;
    border-radius: 8px;
    font-size: .76rem;
    font-weight: 850;
}

.entity-row-actions {
    align-items: center;
    gap: 6px;
}

.entity-row-actions .btn,
.entity-row-actions form {
    flex: 0 0 auto;
}

.entity-row-actions form {
    padding: 0;
    border: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

.entity-detail-actions form {
    display: inline-flex;
    padding: 0;
    border: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

.entity-progress {
    min-width: 170px;
}

.entity-detail-panel {
    position: sticky;
    top: calc(var(--navbar-height, 68px) + 16px);
}

.entity-detail-empty,
.entity-detail-content {
    display: grid;
    gap: 12px;
}

.entity-detail-empty h2,
.entity-detail-content h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
}

.entity-detail-empty p,
.entity-detail-content p {
    margin: 0;
    color: #94a3b8;
    font-size: .86rem;
}

.entity-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.entity-detail-grid span,
.entity-evidence-list > div,
.entity-progress-card {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 8px;
    background: rgba(15, 23, 42, .56);
}

.entity-detail-grid small,
.entity-evidence-list small,
.entity-progress-card small {
    display: block;
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.entity-detail-grid strong,
.entity-evidence-list strong,
.entity-progress-card strong {
    display: block;
    color: #f8fafc;
    font-size: .86rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.entity-evidence-list {
    display: grid;
    gap: 9px;
}

.entity-progress-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.entity-progress-card .process-progress-track {
    grid-column: 1 / -1;
}

.entity-progress-card > span {
    color: #f8fafc;
    font-size: .9rem;
    font-weight: 900;
}

.entity-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.entity-filter-checklist {
    display: grid;
    gap: 7px;
    max-height: 180px;
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    background: rgba(15, 23, 42, .38);
}

.entity-filter-dropdown {
    position: relative;
    display: block;
    overflow: visible;
}

.entity-filter-dropdown summary {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    color: #f8fafc;
    background: rgba(2, 6, 23, .36);
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
}

.entity-filter-dropdown .entity-filter-checklist {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1085;
    max-height: 220px;
    margin-top: 0;
    border-color: rgba(59, 130, 246, .32);
    background: #111827;
    box-shadow: 0 18px 42px rgba(2, 6, 23, .72);
}

.entity-filter-dropdown[open] summary {
    border-color: rgba(59, 130, 246, .48);
    background: rgba(15, 23, 42, .76);
}

.entity-filter-check--all {
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
}

.entity-filter-actions {
    position: sticky;
    bottom: 0;
    display: grid;
    gap: 8px;
    padding-top: 10px;
    background: rgba(10, 15, 24, .96);
}

#empresa-owner-panel .process-owner-chart {
    height: auto;
    align-content: start;
}

#empresa-owner-panel .process-owner-bar {
    align-content: start;
}

.entity-filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    color: #e2e8f0;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
}

.entity-filter-check input {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    accent-color: #14b8a6;
}

.entity-filter-check span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.entity-owner-name {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.entity-owner-name span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    font-size: .76rem;
    font-weight: 900;
}

.entity-owner-name b {
    max-width: 220px;
    color: #f8fafc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.process-owner-bar small {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: .76rem;
}

body[data-theme="light"] .entity-panel-hero {
    color: #0f172a;
    background:
        linear-gradient(135deg, rgba(94, 154, 78, .14), rgba(47, 99, 168, .13)),
        rgba(255, 255, 255, .92);
    border-color: rgba(62, 82, 111, .14);
    box-shadow: 0 18px 40px rgba(38, 56, 85, .09);
}

body[data-theme="light"] .entity-panel-hero p,
body[data-theme="light"] .entity-detail-empty p,
body[data-theme="light"] .entity-detail-content p,
body[data-theme="light"] .entity-detail-grid small,
body[data-theme="light"] .entity-evidence-list small,
body[data-theme="light"] .entity-progress-card small,
body[data-theme="light"] .process-owner-bar small {
    color: #64748b;
}

body[data-theme="light"] .entity-detail-grid span,
body[data-theme="light"] .entity-evidence-list > div,
body[data-theme="light"] .entity-progress-card,
body[data-theme="light"] .entity-filter-checklist {
    background: #ffffff;
    border-color: rgba(62, 82, 111, .13);
}

body[data-theme="light"] .entity-filter-dropdown summary,
body[data-theme="light"] .entity-filter-actions {
    color: #0f172a;
    background: rgba(255, 255, 255, .96);
    border-color: rgba(62, 82, 111, .13);
}

body[data-theme="light"] .entity-detail-grid strong,
body[data-theme="light"] .entity-evidence-list strong,
body[data-theme="light"] .entity-progress-card strong,
body[data-theme="light"] .entity-progress-card > span,
body[data-theme="light"] .entity-owner-name b,
body[data-theme="light"] .entity-filter-check {
    color: #0f172a;
}

body[data-theme="light"] .entity-row.is-selected td {
    background: rgba(47, 99, 168, .15) !important;
}

/* Definicao de etapas por setor */
.stage-definition-page {
    display: grid;
    gap: 18px;
}

.stage-sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.stage-sector-card {
    min-height: 74px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 8px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, .46);
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.stage-sector-card:hover,
.stage-sector-card.is-active {
    transform: translateY(-1px);
    color: #ffffff;
    border-color: rgba(59, 130, 246, .55);
    background: rgba(37, 99, 235, .2);
}

.stage-sector-card span {
    font-weight: 900;
}

.stage-sector-card small {
    color: #94a3b8;
    font-size: .76rem;
    font-weight: 750;
}

.stage-add-form,
.stage-edit-form {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.stage-add-form {
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 8px;
    background: rgba(15, 23, 42, .36);
}

.stage-add-form label,
.stage-edit-form label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.stage-add-form label span,
.stage-edit-form label span {
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.stage-list {
    display: grid;
    gap: 8px;
}

.stage-list-head,
.stage-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.stage-list-head {
    grid-template-columns: 120px minmax(0, 1fr) 190px;
    padding: 0 12px;
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.stage-row {
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 8px;
    background: rgba(15, 23, 42, .38);
}

.stage-delete-form {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.stage-empty {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px dashed rgba(148, 163, 184, .28);
    border-radius: 8px;
    color: #94a3b8;
    background: rgba(15, 23, 42, .22);
}

.stage-empty strong {
    color: #f8fafc;
}

body[data-theme="light"] .stage-sector-card,
body[data-theme="light"] .stage-add-form,
body[data-theme="light"] .stage-row,
body[data-theme="light"] .stage-empty {
    color: #0f172a;
    border-color: rgba(62, 82, 111, .14);
    background: rgba(255, 255, 255, .72);
}

body[data-theme="light"] .stage-sector-card:hover,
body[data-theme="light"] .stage-sector-card.is-active {
    color: #0f172a;
    border-color: rgba(47, 99, 168, .42);
    background: rgba(47, 99, 168, .12);
}

body[data-theme="light"] .stage-sector-card small,
body[data-theme="light"] .stage-add-form label span,
body[data-theme="light"] .stage-edit-form label span,
body[data-theme="light"] .stage-list-head,
body[data-theme="light"] .stage-empty {
    color: #64748b;
}

body[data-theme="light"] .stage-empty strong {
    color: #0f172a;
}

@media (max-width: 1180px) {
    .entity-panel-layout {
        grid-template-columns: 1fr;
    }

    .entity-detail-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .entity-panel-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .entity-detail-grid {
        grid-template-columns: 1fr;
    }

    .entity-row-actions,
    .entity-detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .stage-add-form,
    .stage-edit-form,
    .stage-row,
    .stage-list-head {
        grid-template-columns: 1fr;
    }

    .stage-list-head {
        display: none;
    }

    .stage-delete-form {
        justify-content: stretch;
    }

    .stage-delete-form .btn,
    .stage-add-form .btn,
    .stage-edit-form .btn {
        width: 100%;
    }
}

/* Barra superior institucional no tema claro. */
body[data-theme="light"] .app-navbar,
body[data-theme="light"] .app-navbar .app-nav-shell {
    background: #285da3 !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 8px 24px rgba(24, 66, 121, 0.22) !important;
}

body[data-theme="light"] .app-navbar .app-brand-system {
    color: rgba(255, 255, 255, 0.72) !important;
}

body[data-theme="light"] .app-navbar .app-brand-institution,
body[data-theme="light"] .app-navbar .app-main-nav .nav-link,
body[data-theme="light"] .app-navbar .user-box-email {
    color: #ffffff !important;
}

body[data-theme="light"] .app-navbar .app-main-nav .nav-link:hover,
body[data-theme="light"] .app-navbar .app-main-nav .nav-link:focus,
body[data-theme="light"] .app-navbar .app-main-nav .nav-link.active-link,
body[data-theme="light"] .app-navbar .app-main-nav .show > .nav-link.dropdown-toggle {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

body[data-theme="light"] .app-navbar .app-theme-toggle--minimal,
body[data-theme="light"] .app-navbar .app-auth-button,
body[data-theme="light"] .app-navbar .app-profile-link.app-user-chip {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: none !important;
}

body[data-theme="light"] .app-navbar .app-theme-toggle--minimal:hover,
body[data-theme="light"] .app-navbar .app-auth-button:hover,
body[data-theme="light"] .app-navbar .app-profile-link.app-user-chip:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

body[data-theme="light"] .app-navbar .app-signout-button,
body[data-theme="light"] .app-navbar .app-signout-button:hover,
body[data-theme="light"] .app-navbar .app-signout-button:focus {
    color: #111827 !important;
    background: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.82) !important;
    box-shadow: none !important;
}

/* Painel Estratégico: visão administrativa por setor. */
.strategic-panel-page {
    --strategic-bg: #071426;
    --strategic-surface: #101d32;
    --strategic-surface-raised: #14233b;
    --strategic-line: rgba(148, 163, 184, 0.16);
    --strategic-text: #f1f5f9;
    --strategic-muted: #9dacbf;
    --strategic-blue: #60a5fa;
    min-height: calc(100vh - 9.5rem);
    margin: 0 -1.5rem;
    padding: 1.25rem;
    color: var(--strategic-text);
    background:
        radial-gradient(circle at 82% 4%, rgba(37, 99, 235, 0.12), transparent 31rem),
        var(--strategic-bg);
}

.strategic-layout {
    display: grid;
    grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr);
    gap: 1rem;
    max-width: 1900px;
    margin: 0 auto;
}

.strategic-sidebar,
.strategic-table-card,
.strategic-kpi-card {
    border: 1px solid var(--strategic-line);
    background: var(--strategic-surface);
    box-shadow: 0 16px 35px rgba(2, 8, 23, 0.18);
}

.strategic-sidebar {
    position: sticky;
    top: 5rem;
    display: flex;
    flex-direction: column;
    align-self: start;
    height: calc(100vh - 6.5rem);
    min-height: 0;
    max-height: calc(100vh - 6.5rem);
    padding: 1.4rem;
    border-radius: 1.25rem;
    overflow: hidden;
}

.strategic-sidebar > * {
    flex-shrink: 0;
}

.strategic-main-heading,
.strategic-table-heading,
.strategic-filter-actions,
.strategic-registration-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.strategic-main-heading h2,
.strategic-table-heading h3 {
    margin: 0;
    color: var(--strategic-text);
}

.strategic-eyebrow {
    color: var(--strategic-blue);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.strategic-sector-table-head,
.strategic-sector-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5rem 3.5rem;
    align-items: center;
    gap: .4rem;
}

.strategic-sector-table-head {
    padding: 0 .7rem .45rem;
    color: var(--strategic-muted);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.strategic-sector-table-head span:not(:first-child),
.strategic-sector-row span {
    text-align: center;
}

.strategic-sector-list {
    flex: 1 1 auto;
    min-height: 8rem;
    margin: 0 -.35rem;
    padding: 0 .55rem 0 .35rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 165, 250, .55) rgba(148, 163, 184, .08);
}

.strategic-sector-row {
    min-height: 3.25rem;
    margin-bottom: .2rem;
    padding: .55rem .7rem;
    color: var(--strategic-muted);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: .75rem;
    transition: 150ms ease;
}

.strategic-sector-row strong {
    overflow: hidden;
    color: #d9e3f0;
    font-size: .82rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.strategic-sector-row span {
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}

.strategic-sector-row:hover,
.strategic-sector-row:focus-visible,
.strategic-sector-row.is-selected {
    color: #fff;
    border-color: rgba(96, 165, 250, .3);
    background: rgba(59, 130, 246, .13);
}

.strategic-sector-row.is-selected strong {
    color: #fff;
}

.strategic-filter-form {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--strategic-line);
}

.strategic-filter-form label {
    display: block;
    margin-bottom: .3rem;
    color: var(--strategic-muted);
    font-size: .69rem;
    font-weight: 700;
}

.strategic-filter-form .form-control,
.strategic-filter-form .form-select {
    min-height: 2.4rem;
    color: var(--strategic-text);
    border-color: var(--strategic-line);
    background-color: rgba(3, 10, 22, .44);
    font-size: .78rem;
}

.strategic-filter-form .form-control::placeholder {
    color: #728197;
}

.strategic-date-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
}

.strategic-filter-actions .btn {
    padding: .48rem .7rem;
    font-size: .75rem;
}

.strategic-filter-actions .btn-link {
    color: var(--strategic-muted);
    text-decoration: none;
}

.strategic-validation:empty {
    display: none;
}

.strategic-validation {
    color: #fca5a5;
    font-size: .75rem;
}

.strategic-registration-toggle {
    width: 100%;
    margin-top: auto;
    padding: .8rem 1rem;
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, .42);
    border-radius: .8rem;
    background: transparent;
    font-size: .83rem;
    font-weight: 700;
    transition: 150ms ease;
}

.strategic-registration-toggle:hover,
.strategic-registration-toggle:focus-visible {
    border-color: var(--strategic-blue);
    background: rgba(59, 130, 246, .12);
}

.strategic-main {
    min-width: 0;
}

.strategic-main-heading {
    margin-bottom: 1rem;
    padding: .3rem .2rem;
}

.strategic-main-heading h2 {
    margin-top: .15rem;
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.strategic-main-heading p {
    margin: .25rem 0 0;
    color: var(--strategic-muted);
    font-size: .82rem;
}

.strategic-scope-badge,
.strategic-result-count,
.strategic-row-scope {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--strategic-line);
    border-radius: 999px;
    background: rgba(96, 165, 250, .08);
}

.strategic-scope-badge {
    padding: .5rem .8rem;
    color: #bfdbfe;
    font-size: .78rem;
    font-weight: 700;
}

.strategic-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
    margin-bottom: .9rem;
}

.strategic-kpi-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 8.5rem;
    padding: 1.15rem;
    overflow: hidden;
    color: var(--strategic-text);
    text-decoration: none;
    border-radius: 1rem;
    transition: transform 150ms ease, border-color 150ms ease;
}

.strategic-kpi-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: .22rem;
    content: "";
    background: #60a5fa;
    opacity: .45;
}

.strategic-kpi-card.is-approved::before { background: #34d399; }
.strategic-kpi-card.is-rejected::before { background: #fb7185; }
.strategic-kpi-card.is-pending::before { background: #fbbf24; }

.strategic-kpi-card:hover,
.strategic-kpi-card:focus-visible,
.strategic-kpi-card.is-active {
    color: #fff;
    border-color: rgba(96, 165, 250, .45);
    transform: translateY(-2px);
}

.strategic-kpi-card.is-active::before {
    opacity: 1;
}

.strategic-kpi-card span {
    color: #cad5e3;
    font-size: .78rem;
    font-weight: 700;
}

.strategic-kpi-card strong {
    margin-top: auto;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

.strategic-kpi-card small {
    margin-top: .4rem;
    color: var(--strategic-muted);
    font-size: .68rem;
}

.strategic-table-card {
    min-height: min(56rem, calc(100vh - 17.5rem));
    overflow: hidden;
    border-radius: 1.15rem;
}

.strategic-panel-view[hidden] {
    display: none !important;
}

.strategic-table-heading {
    min-height: 5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--strategic-line);
}

.strategic-table-heading h3 {
    margin-top: .15rem;
    font-size: 1.05rem;
}

.strategic-result-count {
    padding: .38rem .65rem;
    color: var(--strategic-muted);
    font-size: .7rem;
}

.strategic-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.strategic-table {
    width: 100%;
    min-width: 1080px;
    color: #dbe5f1;
    border-collapse: collapse;
    font-size: .73rem;
}

.strategic-table th,
.strategic-table td {
    padding: .82rem .75rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid rgba(148, 163, 184, .1);
}

.strategic-table th {
    position: sticky;
    top: 0;
    color: #9dacbf;
    background: #0d1a2e;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
}

.strategic-table tbody tr:hover {
    background: rgba(96, 165, 250, .045);
}

.strategic-truncate {
    max-width: 13rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.strategic-status {
    display: inline-flex;
    padding: .3rem .52rem;
    border: 1px solid;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 800;
}

.strategic-status.is-approved {
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, .28);
    background: rgba(16, 185, 129, .09);
}

.strategic-status.is-rejected {
    color: #fda4af;
    border-color: rgba(251, 113, 133, .3);
    background: rgba(244, 63, 94, .09);
}

.strategic-status.is-pending {
    color: #fde68a;
    border-color: rgba(251, 191, 36, .3);
    background: rgba(245, 158, 11, .09);
}

.strategic-row-scope {
    max-width: 10rem;
    padding: .25rem .48rem;
    overflow: hidden;
    color: #bfdbfe;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.strategic-action-link {
    color: #93c5fd;
    font-weight: 750;
    text-decoration: none;
}

.strategic-action-link:hover {
    color: #dbeafe;
    text-decoration: underline;
}

.strategic-empty-cell {
    height: 18rem;
    color: var(--strategic-muted);
    text-align: center !important;
}

.strategic-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
}

.strategic-pagination a {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: var(--strategic-muted);
    text-decoration: none;
    border: 1px solid var(--strategic-line);
    border-radius: .55rem;
    font-size: .72rem;
}

.strategic-pagination a:hover,
.strategic-pagination a.is-current {
    color: #fff;
    border-color: rgba(96, 165, 250, .55);
    background: rgba(59, 130, 246, .18);
}

.strategic-mobile-bar,
.strategic-sidebar-backdrop {
    display: none;
}

body[data-theme="light"] .strategic-panel-page {
    --strategic-bg: #eef4fb;
    --strategic-surface: #ffffff;
    --strategic-surface-raised: #f7faff;
    --strategic-line: rgba(71, 92, 122, .18);
    --strategic-text: #17233a;
    --strategic-muted: #65748b;
    --strategic-blue: #2563b5;
    background: #eef4fb;
}

body[data-theme="light"] .strategic-sector-row strong,
body[data-theme="light"] .strategic-kpi-card span,
body[data-theme="light"] .strategic-table {
    color: #334155;
}

body[data-theme="light"] .strategic-sector-row:hover,
body[data-theme="light"] .strategic-sector-row:focus-visible,
body[data-theme="light"] .strategic-sector-row.is-selected {
    color: #153765;
    background: #e9f2ff;
}

body[data-theme="light"] .strategic-sector-row.is-selected strong,
body[data-theme="light"] .strategic-kpi-card strong {
    color: #17233a;
}

body[data-theme="light"] .strategic-filter-form .form-control,
body[data-theme="light"] .strategic-filter-form .form-select {
    color: #17233a;
    background-color: #f8fafc;
}

body[data-theme="light"] .strategic-registration-toggle {
    color: #244365;
}

body[data-theme="light"] .strategic-table th {
    color: #52637a;
    background: #f3f7fc;
}

@media (max-width: 1199.98px) {
    .app-navbar .app-nav-shell {
        flex-wrap: wrap;
    }

    .app-navbar-toggler {
        display: inline-flex !important;
        margin-left: auto;
    }

    .app-navbar-collapse.collapse:not(.show) {
        display: none !important;
    }

    .app-navbar-collapse.collapse.show,
    .app-navbar-collapse.collapsing {
        display: flex !important;
        flex: 1 0 100%;
        flex-direction: column;
        align-items: stretch !important;
        max-height: calc(100vh - 4.5rem);
        overflow-y: auto;
        padding: .65rem;
        border: 1px solid rgba(148, 163, 184, .18) !important;
        border-radius: 1rem;
        background: #0b1729 !important;
        box-shadow: 0 18px 38px rgba(2, 8, 23, .35) !important;
    }

    .app-navbar:has(.app-navbar-collapse.show),
    .app-navbar .app-nav-shell:has(.app-navbar-collapse.show) {
        height: auto !important;
        min-height: var(--navbar-height) !important;
        max-height: none !important;
    }

    .app-navbar-collapse.show .app-nav-center,
    .app-navbar-collapse.show .app-nav-right,
    .app-navbar-collapse.show .app-main-nav {
        width: 100%;
    }

    .app-navbar-collapse.show .app-main-nav {
        align-items: stretch !important;
        flex-direction: column;
    }

    .app-navbar-collapse.show .app-main-nav .nav-item,
    .app-navbar-collapse.show .app-main-nav .dropdown,
    .app-navbar-collapse.show .app-main-nav .nav-link {
        width: 100% !important;
    }

    .app-navbar-collapse.show .app-main-nav .nav-link {
        justify-content: flex-start !important;
    }

    .app-navbar-collapse.show .app-main-nav .dropdown-menu,
    .app-navbar-collapse.show .app-main-nav .dropdown-menu[data-bs-popper] {
        position: static !important;
        width: 100% !important;
        margin: .35rem 0 !important;
    }

    .app-navbar-collapse.show .app-login-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: .6rem;
    }

    body[data-theme="light"] .app-navbar-collapse.collapse.show,
    body[data-theme="light"] .app-navbar-collapse.collapsing {
        background: #285da3 !important;
    }

    .strategic-layout {
        grid-template-columns: 18.5rem minmax(0, 1fr);
    }

    .strategic-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .strategic-kpi-card {
        min-height: 7.4rem;
    }
}

@media (max-width: 991.98px) {
    .strategic-panel-page {
        margin: 0 -1rem;
        padding: 0 1rem 1rem;
    }

    .strategic-layout {
        display: block;
    }

    .strategic-mobile-bar {
        position: sticky;
        z-index: 1020;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 -1rem 1rem;
        padding: .7rem 1rem;
        border-bottom: 1px solid var(--strategic-line);
        background: rgba(7, 20, 38, .94);
        backdrop-filter: blur(14px);
    }

    body[data-theme="light"] .strategic-mobile-bar {
        background: rgba(238, 244, 251, .95);
    }

    .strategic-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        padding: .5rem .7rem;
        color: var(--strategic-text);
        border: 1px solid var(--strategic-line);
        border-radius: .65rem;
        background: var(--strategic-surface);
        font-size: .78rem;
        font-weight: 700;
    }

    .strategic-sidebar {
        position: fixed;
        z-index: 1051;
        inset: 4rem auto 0 0;
        width: min(23rem, 90vw);
        height: calc(100vh - 4rem);
        max-height: calc(100vh - 4rem);
        border-radius: 0 1.25rem 1.25rem 0;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 190ms ease;
    }

    .strategic-sector-list {
        flex: 0 0 auto;
        min-height: 0;
        padding-right: .35rem;
        overflow: visible;
    }

    .strategic-sidebar.is-open {
        transform: translateX(0);
    }

    .strategic-sidebar-backdrop:not([hidden]) {
        position: fixed;
        z-index: 1050;
        inset: 0;
        display: block;
        width: 100%;
        border: 0;
        background: rgba(1, 7, 18, .7);
        backdrop-filter: blur(2px);
    }

    body.strategic-sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 639.98px) {
    .strategic-kpi-grid {
        grid-template-columns: 1fr;
    }

    .strategic-kpi-card {
        min-height: 6.6rem;
    }

    .strategic-main-heading {
        align-items: flex-start;
    }

    .strategic-table-card {
        min-height: 0;
    }

    .strategic-table-scroll {
        overflow: visible;
    }

    .strategic-table {
        min-width: 0;
    }

    .strategic-table thead {
        display: none;
    }

    .strategic-table,
    .strategic-table tbody,
    .strategic-table tr,
    .strategic-table td {
        display: block;
        width: 100%;
    }

    .strategic-table tr {
        padding: .7rem 1rem;
        border-bottom: 1px solid var(--strategic-line);
    }

    .strategic-table td {
        display: grid;
        grid-template-columns: 6.2rem minmax(0, 1fr);
        gap: .65rem;
        padding: .4rem 0;
        border: 0;
    }

    .strategic-table td::before {
        color: var(--strategic-muted);
        content: attr(data-label);
        font-size: .64rem;
        font-weight: 800;
        letter-spacing: .03em;
        text-transform: uppercase;
    }

    .strategic-truncate {
        max-width: none;
        white-space: normal;
    }

    .strategic-empty-cell {
        display: block !important;
        height: auto;
        padding: 3rem 1rem !important;
    }

    .strategic-empty-cell::before {
        display: none;
    }
}
