:root {
    --bg: #f4f6f8;
    --panel: #ffffff;
    --text: #17202a;
    --muted: #617080;
    --line: #d9e0e7;
    --form-bg: #f8fbfd;
    --card-border: #cfdae3;
    --card-soft: #f9fbfc;
    --brand-start: #6d5dff;
    --brand-end: #5ce4ff;
    --primary: #1f6f8b;
    --primary-dark: #17566d;
    --danger-bg: #fff1f1;
    --danger: #9f1d1d;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 88px;
}

/* ── Topbar público e menu responsivo ── */
.topbar{position:absolute;top:18px;left:24px;right:24px;display:flex;align-items:center;gap:16px;z-index:60}
.topbar .logo{display:flex;align-items:center;gap:10px;font-weight:900;color:#ffffff}
.topbar .logo .symbol{width:36px;height:36px;border-radius:8px;display:grid;place-items:center;background:linear-gradient(135deg,#6d5dff,#5ce4ff);color:#fff}
.topbar nav{margin-left:auto;display:flex;gap:18px;align-items:center}
.topbar a{color:rgba(255,255,255,0.95);font-weight:800;text-decoration:none}
.topbar a.cta{background:linear-gradient(135deg,#6d5dff,#5ce4ff);color:#fff;padding:8px 14px;border-radius:10px}

/* Hamburger */
.hamburger{display:none;margin-left:auto;background:transparent;border:0;color:#fff;font-size:20px;padding:8px;border-radius:8px}
.hamburger:focus{outline:2px solid rgba(109,93,255,0.24)}
.mobile-nav{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.6);z-index:70;align-items:center;justify-content:center}
.mobile-nav .panel{background:#fff;padding:20px;border-radius:12px;min-width:260px;max-width:320px;display:flex;flex-direction:column;gap:12px}
.mobile-nav a{color:#17202a}

@media (max-width:900px){
    .topbar{position:fixed;left:0;right:0;top:0;padding:10px 14px;background:#ffffff;box-shadow:0 6px 18px rgba(23,32,42,0.06);}
    .topbar .logo{color:#17202a}
    .topbar a{color:#425a66}
    .topbar a.cta{background:linear-gradient(135deg,#6d5dff,#5ce4ff);color:#fff}
    .topbar nav{display:none}
    .hamburger{display:block;color:#17202a}
}

/* Ajustes de espaçamento e estilo para combinar com screenshot */
.lg-wrap{min-height:calc(100vh - 0px)}
.lg-brand{padding:80px 72px;color:#fff;background:radial-gradient(1200px 600px at 10% 20%, rgba(92,228,255,0.06), transparent 12%),linear-gradient(135deg,#071026 10%,#0c1426 100%)}
.lg-headline{font-size:clamp(40px,5vw,64px);font-weight:900;line-height:1.02;margin-bottom:18px}
.lg-headline span{background:linear-gradient(135deg,#a78bfa,#5ce4ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.lg-features{gap:16px}
.lg-feat{font-size:15px;color:rgba(248,251,255,.8)}
.lg-feat-dot{width:10px;height:10px}
.lg-form-side{padding:56px 48px;border-radius:16px;box-shadow:0 30px 60px rgba(6,12,28,0.32);background:#fff;margin:48px}
.lg-card{max-width:420px;padding:18px 12px}

/* Topbar behavior: transparent on wide screens (over dark brand), white on small screens */
@media (min-width: 901px) {
    .topbar{position:absolute;left:32px;right:32px;top:28px;background:transparent;box-shadow:none}
    .topbar .logo{color:#ffffff}
    .topbar a{color:rgba(255,255,255,0.95)}
    .topbar a.cta{background:linear-gradient(135deg,#6d5dff,#5ce4ff);color:#fff}
}

/* Mobile nav panel tweaks */
.mobile-nav .panel{padding:18px}

/* ── Rodapé profissional ── */
.site-footer{background:linear-gradient(180deg,#050815 0%,#071026 60%);color:rgba(255,255,255,0.92);padding:48px 32px;margin-top:36px}
.site-footer .footer-inner{display:flex;gap:32px;align-items:flex-start;justify-content:space-between;max-width:1200px;margin:0 auto}
.site-footer .footer-col{flex:1;min-width:200px}
.site-footer .footer-brand .footer-logo{display:flex;align-items:center;gap:12px;font-weight:900;font-size:18px;color:#ffffff}
.site-footer .footer-brand .symbol{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,#6d5dff,#5ce4ff);color:#fff}
.site-footer h4{margin:0 0 10px;font-size:15px;color:#f3f7ff}
.site-footer p,.site-footer a{color:rgba(255,255,255,0.85)}
.site-footer .footer-links{list-style:none;padding:0;margin:0}
.site-footer .footer-links li{margin:6px 0}
.site-footer .footer-links a{color:rgba(255,255,255,0.85);text-decoration:none}
.site-footer .social{display:flex;gap:8px;margin-top:10px}
.site-footer .social a{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;background:rgba(255,255,255,0.06);color:#fff;text-decoration:none}
.site-footer .footer-bottom{max-width:1200px;margin:20px auto 0;padding-top:18px;border-top:1px solid rgba(255,255,255,0.04);font-size:13px;color:rgba(255,255,255,0.6);text-align:center}

@media (max-width:900px){
    .site-footer .footer-inner{flex-direction:column;gap:18px;padding:0 18px}
    .site-footer{padding:28px 16px}
}



* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.login-page,
.page-center {
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

body.login-page {
    background: #ffeb3b;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 520px);
    gap: 48px;
    width: 100%;
    min-height: calc(100vh - 64px);
    align-items: center;
    padding: 0 48px;
}

.login-brand h1,
.panel h1,
.content h1 {
    margin: 0 0 10px;
}

.login-brand p,
.muted {
    color: var(--muted);
    margin: 0;
}

.login-logo {
    display: block;
    width: min(360px, 100%);
    height: auto;
    margin-bottom: 24px;
}

.login-card,
.panel {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 6px 16px rgba(23, 32, 42, 0.045);
}

.panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, var(--primary), #78b5c7);
}

.login-card h2 {
    margin: 0 0 24px;
}

label {
    display: block;
    margin: 10px 0 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
}

input,
select {
    height: 36px;
}

textarea {
    min-height: 76px;
    padding-top: 8px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(31, 111, 139, 0.16);
}

button,
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 96px;
    min-height: 32px;
    margin-top: 12px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    padding: 0 14px;
    cursor: pointer;
}

.login-card button {
    width: 100%;
    min-height: 44px;
}

.login-actions {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
}

.login-actions.visible {
    justify-content: flex-start;
}

.dev-reset-link {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 10px;
    border: 1px dashed var(--primary);
    border-radius: 6px;
    background: #f5fbfd;
    font-size: 12px;
    overflow-wrap: anywhere;
}

button:hover,
.button:hover {
    background: var(--primary-dark);
}

.button.secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}

.button.secondary:hover {
    background: #f8fafc;
}

.alert {
    margin: 16px 0;
    padding: 12px;
    border-radius: 6px;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 14px;
}

.notice {
    margin: 16px 0;
    padding: 12px;
    border-radius: 6px;
    background: #edf8f2;
    color: #17633a;
    font-size: 14px;
    overflow: hidden;
    animation: flashOut 0.45s ease 4s forwards;
}

@keyframes flashOut {
    to {
        max-height: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
        opacity: 0;
    }
}

.credentials {
    margin: 18px 0 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    line-height: 1.6;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    padding: 18px 14px 16px;
    background: #0b1120;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 20;
    transition: width 180ms ease, padding 180ms ease;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #f8fbff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background 180ms ease, transform 180ms ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
    padding-left: 10px;
    padding-right: 10px;
}

.sidebar.collapsed .sidebar-brand {
    justify-content: center;
}

.sidebar.collapsed .brand-name,
.sidebar.collapsed .menu-label,
.sidebar.collapsed .sidebar-plan-text,
.sidebar.collapsed .tenant-brand-copy {
    display: none;
}

.sidebar.collapsed .brand-link {
    justify-content: center;
}

.sidebar.collapsed .sidebar-plan-badge {
    justify-content: center;
    padding: 8px 0;
}

.sidebar.collapsed .tenant-brand-card {
    justify-content: center;
    padding: 8px 0;
    border-color: transparent;
    background: transparent;
}

.sidebar.collapsed .menu-link {
    justify-content: center;
    padding: 8px 0;
}

.sidebar.collapsed .menu-link.active::before {
    display: none;
}

.sidebar.collapsed .nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: transparent;
}

.sidebar.collapsed .menu-link.active .nav-icon {
    background: rgba(109, 93, 255, 0.3);
}

.sidebar.collapsed .sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 10px;
}

.sidebar.collapsed .menu-badge,
.sidebar.collapsed .menu-group-label,
.sidebar.collapsed .sidebar-profile-info,
.sidebar.collapsed .profile-chevron {
    display: none;
}

.sidebar.collapsed .sidebar-profile {
    justify-content: center;
    padding: 12px 0;
}

.sidebar-brand .brand-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.brand-symbol {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.brand-link .brand-logo-img {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: contain;
    background: #ffffff;
    padding: 4px;
}

.brand-name {
    font-size: 18px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #f8fbff;
}

.tenant-brand-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    margin: 0 0 10px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #f8fbff;
    text-decoration: none;
}

.tenant-symbol,
.tenant-logo-img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
}

.tenant-symbol {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
}

.tenant-logo-img {
    display: block;
    object-fit: contain;
    background: #ffffff;
    padding: 4px;
}

.tenant-brand-copy {
    display: grid;
    min-width: 0;
    line-height: 1.15;
}

.tenant-brand-copy span {
    color: rgba(248, 251, 255, 0.52);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.tenant-brand-copy strong {
    max-width: 190px;
    overflow: hidden;
    color: #f8fbff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-plan-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 34px;
    margin: 0 0 18px;
    padding: 7px 10px;
    border: 1px solid rgba(92, 228, 255, 0.22);
    border-radius: 8px;
    background: rgba(92, 228, 255, 0.08);
    color: #f8fbff;
}

.sidebar-plan-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #5ce4ff;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

.sidebar-plan-badge.plan-bronze .sidebar-plan-symbol {
    color: #cd7f32;
}

.sidebar-plan-badge.plan-prata .sidebar-plan-symbol {
    color: #cbd5e1;
}

.sidebar-plan-badge.plan-gold .sidebar-plan-symbol {
    color: #f5c542;
}

.sidebar-plan-badge.plan-platinum .sidebar-plan-symbol {
    color: #5ce4ff;
}

.sidebar-plan-text {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-menu {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 8px;
}

.main-menu .menu-group-label:first-child {
    padding-top: 4px;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.menu-group-label {
    padding: 10px 10px 3px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(167, 139, 250, 0.9);
    user-select: none;
    display: flex;
    align-items: center;
    gap: 7px;
}

.menu-group-label::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 1.5px;
    background: rgba(167, 139, 250, 0.45);
    border-radius: 99px;
    flex-shrink: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    color: rgba(248, 251, 255, 0.65);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    transition: background 130ms ease, color 130ms ease;
    position: relative;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(248, 251, 255, 0.95);
}

.menu-link:hover .nav-icon {
    color: rgba(248, 251, 255, 0.95);
}

.menu-link.active {
    background: rgba(109, 93, 255, 0.22);
    color: #ffffff;
    font-weight: 700;
}

.menu-link.active .nav-icon {
    color: #a78bfa;
}

.menu-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #6d5dff, #5ce4ff);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
    color: rgba(248, 251, 255, 0.45);
    transition: color 130ms ease;
}

.menu-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6d5dff, #5ce4ff);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 10px;
    color: #f8fbff;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.sidebar-profile:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d5dff, #5ce4ff);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-role {
    display: block;
    color: rgba(248, 251, 255, 0.72);
    font-size: 13px;
}

.profile-chevron {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: rgba(248, 251, 255, 0.72);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.profile-dropdown {
    display: none;
    margin-top: 4px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-dropdown.open {
    display: block;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: rgba(248, 251, 255, 0.75);
    text-decoration: none;
    transition: background 0.15s;
}

.profile-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.profile-dropdown-item.logout:hover {
    background: rgba(220, 60, 60, 0.28);
    color: #ffc7c7;
}

.plan-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #eef3ff;
    color: #4338ca;
    font-size: 18px;
}

.plan-card strong {
    display: block;
    font-size: 15px;
    color: #0f172a;
}

.plan-card-header span,
.plan-card .plan-link {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.plan-days {
    font-size: 26px;
    color: #0f172a;
    margin-top: 4px;
}

.plan-progress {
    height: 8px;
    border-radius: 999px;
    background: #e5e7ff;
    overflow: hidden;
}

.plan-progress-fill {
    display: block;
    width: 64%;
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
}

.plan-link {
    padding: 12px 0;
    text-decoration: none;
    color: #4338ca;
    font-weight: 700;
}

@media (max-width: 980px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        box-shadow: none;
        border-right: none;
    }

    .content {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}

.dropdown-divider {
    border: 0;
    border-top: 1px solid #dbe5eb;
    margin: 5px 0;
}

.sidebar-search {
    margin: 0 0 18px;
}

.sidebar-search .top-search {
    display: flex;
    gap: 4px;
    align-items: center;
    width: 100%;
}

.sidebar-search .top-search input {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid #dbe5eb;
    padding: 0 14px;
    background: #f8fbfc;
}

.sidebar-search .top-search button {
    min-width: 90px;
    min-height: 44px;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
}

.sidebar-footer .user-menu,
.user-menu .user-button {
    width: 100%;
}

.user-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #dbe5eb;
    background: #fff;
    color: var(--text);
    border-radius: 14px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.user-menu .dropdown-menu {
    position: relative;
    left: auto;
    width: 100%;
    box-shadow: none;
}

.content {
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    padding: 24px 24px 32px;
    overflow-x: hidden;
    transition: width 180ms ease, max-width 180ms ease, margin-left 180ms ease;
}

body.sidebar-collapsed .content {
    width: calc(100% - var(--sidebar-collapsed-width));
    max-width: calc(100% - var(--sidebar-collapsed-width));
    margin-left: var(--sidebar-collapsed-width);
}

@media (max-width: 980px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        box-shadow: none;
        border-right: none;
    }

    .sidebar.collapsed {
        width: 100%;
    }

    .content,
    body.sidebar-collapsed .content {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}

.menu-item,
.user-menu {
    position: relative;
}

.has-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
}

.menu-item > a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 9px;
    border-radius: 6px;
    color: #405462;
    font-weight: 700;
}

.menu-item.has-dropdown > a::after {
    content: "▾";
    margin-left: 6px;
    font-size: 10px;
}

.menu-item > a.active,
.menu-item > a:hover {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 1px 4px rgba(23, 32, 42, 0.06);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    display: none;
    min-width: 230px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(23, 32, 42, 0.12);
}

.dropdown-menu a,
.dropdown-menu > span {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 8px;
    border-radius: 6px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dropdown-menu > span {
    color: var(--muted);
    font-weight: 400;
}

.dropdown-divider {
    width: 100%;
    border: 0;
    height: 1px;
    margin: 4px 2px;
    padding: 0;
    background: #edf2f5;
}

.menu-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #e9f4f8;
    color: var(--primary-dark);
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
}

.dropdown-menu a:hover {
    background: #eef5f7;
    color: var(--primary-dark);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-right {
    right: 0;
    left: auto;
}

.top-search {
    display: flex;
    align-items: center;
    height: 38px;
}

.top-search input {
    width: 220px;
    height: 38px;
    border-radius: 6px 0 0 6px;
    font-size: 13px;
}

.top-search button {
    min-width: 76px;
    min-height: 38px;
    margin: 0;
    border-radius: 0 6px 6px 0;
}

.user-button {
    min-width: 0;
    min-height: 38px;
    margin: 0;
    border: 1px solid #c7dce4;
    background: #fff;
    color: var(--text);
    font-weight: 700;
}

.user-button:hover {
    background: #eef5f7;
    color: var(--primary-dark);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand-link img {
    display: block;
    width: 130px;
    height: auto;
}

.topbar span {
    color: var(--muted);
}

.content {
    padding: 14px 18px;
}

.content.dashboard-home {
    padding: 24px 24px 32px;
}

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

.page-title h1 {
    font-size: 24px;
    line-height: 1.15;
}

.page-title .muted {
    font-size: 13px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 14px;
}

.dashboard-home {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 8px;
}

.dashboard-main {
    display: grid;
    gap: 16px;
}

.dashboard-hero {
    display: grid;
    gap: 24px;
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f6f8ff 0%, #ffffff 100%);
    border: 1px solid rgba(31, 111, 139, 0.12);
    box-shadow: 0 18px 54px rgba(31, 59, 98, 0.08);
}

.hero-heading {
    display: grid;
    gap: 10px;
}

.hero-heading .eyebrow {
    color: #1d3e7c;
    font-weight: 700;
    text-transform: none;
    font-size: 20px;
    letter-spacing: 0.04em;
}

.hero-heading h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
    color: #08131f;
    max-width: 760px;
}

.hero-heading p {
    margin: 0;
    color: #5b6c88;
    font-size: 15px;
    max-width: 720px;
}

.hero-ai-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: #f7f8ff;
    box-shadow: 0 18px 42px rgba(73, 93, 216, 0.08);
}

.hero-ai-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.hero-ai-badge {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 24px;
    background: linear-gradient(180deg, #eef4ff 0%, #dde5ff 100%);
    color: #4338ca;
    flex-shrink: 0;
}

.hero-ai-label {
    color: #08131f;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-ai-pill {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.18);
    color: #3f51b5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.hero-ai-submit {
    min-width: 58px;
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-top: 0;
}

.hero-card {
    display: grid;
    gap: 16px;
    padding: 26px;
    border-radius: 22px;
    border: 1px solid #e7ebff;
    background: #fff;
    box-shadow: 0 16px 36px rgba(23, 32, 42, 0.06);
}

.hero-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: #fff;
}

.hero-card-icon.blue {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.hero-card-icon.orange {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.hero-card-icon.purple {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.hero-card-icon.blue-light {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.hero-card-label {
    font-size: 14px;
    color: #5b6c88;
}

.hero-card strong {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    color: #08131f;
}

.hero-card-meta {
    margin: 0;
    color: #5b6c88;
    font-size: 14px;
}

.hero-card-change {
    font-weight: 700;
    margin-right: 8px;
}

.hero-card-change.positive {
    color: #0f7b44;
}

.hero-card-change.negative {
    color: #b91c1c;
}

@media (max-width: 1040px) {
    .hero-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 740px) {
    .hero-ai-box {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-ai-submit {
        width: 100%;
    }

    .hero-cards {
        grid-template-columns: 1fr;
    }
}

.sidebar-card {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid var(--card-border);
    background: #fff;
    box-shadow: 0 12px 32px rgba(23, 32, 42, 0.06);
}

.card {
    border-radius: 22px;
    border: 1px solid var(--card-border);
    background: #fff;
    box-shadow: 0 10px 30px rgba(23, 32, 42, 0.05);
    overflow: hidden;
}

.card.activity-panel {
    padding: 24px;
}

.card .section-card-title {
    margin-bottom: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.card.activity-panel .section-card-title {
    margin-bottom: 18px;
}

.sidebar-card .section-card-title h2 {
    font-size: 18px;
    margin: 0;
}

.insights-list,
.commitments-list,
.activity-list {
    display: grid;
    gap: 12px;
}

.insights-list a,
.commitments-list a,
.activity-item {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #e7eef4;
    background: #f8fbfc;
    color: var(--text);
    text-decoration: none;
}

.insights-list a:hover,
.commitments-list a:hover,
.activity-item:hover {
    background: #eef6fb;
}

.activity-item {
    background: #fff;
    box-shadow: 0 8px 20px rgba(23, 32, 42, 0.04);
}

.activity-item strong,
.insights-list a strong,
.commitments-list a strong {
    font-size: 15px;
    color: var(--text);
}

.activity-item p,
.activity-item small,
.commitments-list span {
    color: var(--muted);
    font-size: 13px;
}

.commitments-list time {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.commitments-list a span {
    display: block;
}

.commitments-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.commitments-calendar {
    padding: 12px;
    border: 1px solid #e7eef4;
    border-radius: 14px;
    background: #f8fbfc;
}

.commitments-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.commitments-calendar-head h3 {
    margin: 2px 0 0;
    font-size: 15px;
}

.calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.calendar-nav a {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
}

.calendar-nav strong {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e6f1f5;
    color: var(--primary);
    font-size: 12px;
}

.commitments-layout .commitments-list a {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
}

.commitments-layout .commitments-list a div {
    min-width: 0;
}

/* Dashboard restored layout */
.content.dashboard-home {
    padding: 6px 8px 14px;
}

.dashboard-home {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 0;
}

.dashboard-home .dashboard-main {
    display: grid;
    gap: 8px;
}

.dashboard-home .dashboard-hero {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f6f8ff 0%, #ffffff 100%);
    border: 1px solid rgba(31, 111, 139, 0.12);
    box-shadow: 0 8px 22px rgba(31, 59, 98, 0.06);
}

.dashboard-home .hero-heading {
    display: grid;
    gap: 1px;
}

.dashboard-home .hero-heading h1 {
    margin: 0;
    font-size: 15px;
    line-height: 1.15;
    color: #08131f;
    max-width: 760px;
}

.dashboard-home .hero-heading p {
    margin: 0;
    color: #5b6c88;
    font-size: 11px;
    max-width: 720px;
}

.dashboard-home .hero-ai-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: #f7f8ff;
    box-shadow: none;
}

.dashboard-home .hero-ai-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dashboard-home .hero-ai-badge {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 14px;
    background: linear-gradient(180deg, #eef4ff 0%, #dde5ff 100%);
    color: #4338ca;
    flex-shrink: 0;
}

.dashboard-home .hero-ai-label {
    color: #08131f;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.dashboard-home .hero-ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dashboard-home .hero-ai-pill {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.18);
    color: #3f51b5;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-home .hero-ai-submit {
    min-width: 34px;
    min-height: 34px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.dashboard-home .hero-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
}

.dashboard-home .hero-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 3px 8px;
    align-items: center;
    padding: 8px 9px;
    border-radius: 9px;
    border: 1px solid #e7ebff;
    background: #fff;
    box-shadow: 0 5px 14px rgba(23, 32, 42, 0.035);
}

.dashboard-home .hero-card::before {
    display: none;
}

.dashboard-home .hero-card-top {
    display: contents;
}

.dashboard-home .hero-card-icon {
    grid-row: 1 / span 3;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: #fff;
}

.dashboard-home .hero-card-label {
    font-size: 11px;
    line-height: 1.15;
    color: #5b6c88;
}

.dashboard-home .hero-card strong {
    margin: 0;
    font-size: 21px;
    line-height: 1;
    color: #08131f;
}

.dashboard-home .hero-card-meta {
    margin: 0;
    color: #5b6c88;
    font-size: 10px;
    line-height: 1.15;
}

.dashboard-home .hero-card-change {
    font-weight: 700;
    margin-right: 5px;
}

.dashboard-home .hero-card-change.positive {
    color: #0f7b44;
}

.dashboard-home .hero-card-change.negative {
    color: #b91c1c;
}

.dashboard-home .card {
    border-radius: 10px;
}

.dashboard-home .card.activity-panel,
.dashboard-home .commitments-panel {
    padding: 10px 12px;
}

.dashboard-home .activity-item,
.dashboard-home .commitments-list a {
    gap: 8px;
    padding: 16px 18px;
    border-radius: 14px;
}

.dashboard-home .activity-item strong,
.dashboard-home .commitments-list a strong {
    font-size: 15px;
}

.dashboard-home .activity-item p,
.dashboard-home .activity-item small,
.dashboard-home .commitments-list span {
    font-size: 13px;
}

.dashboard-home .recent-cases-panel {
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 8px 22px rgba(23, 32, 42, 0.045);
}

.dashboard-home .recent-cases-header {
    margin-bottom: 8px;
}

.dashboard-home .recent-cases-header h2 {
    font-size: 15px;
}

.dashboard-home .recent-cases-table th {
    padding: 8px 10px 7px;
    font-size: 11px;
}

.dashboard-home .recent-cases-table td {
    padding: 8px 10px;
    font-size: 12px;
}

.dashboard-home .recent-cases-table a,
.dashboard-home .recent-cases-table td strong {
    font-size: 12px;
}

.dashboard-home .cell-meta {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.25;
}

.dashboard-home .status-pill {
    min-height: 22px;
    padding: 0 9px;
    font-size: 11px;
}

.dashboard-home .recent-cases-footer {
    margin-top: 8px;
}

@media (max-width: 1180px) {
    .dashboard-home .hero-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 740px) {
    .dashboard-home .hero-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-home .hero-ai-box {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-home .hero-ai-submit {
        width: 100%;
    }
}

.recent-list .table-wrap {
    box-shadow: none;
}

.recent-list table {
    min-width: 0;
}

.recent-list th,
.recent-list td {
    padding: 12px 14px;
}

@media (max-width: 980px) {
    .dashboard-home {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .hero-header,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-header h1 {
        font-size: 26px;
    }
}

.stat {
    display: block;
    position: relative;
    overflow: hidden;
    padding: 11px 13px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff 0%, var(--card-soft) 100%);
    color: var(--text);
    box-shadow: 0 5px 14px rgba(23, 32, 42, 0.04);
}

.stat:hover {
    border-color: var(--primary);
    background: #fff;
    color: var(--text);
}

.stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0.8;
}

.stat span {
    display: block;
    color: var(--muted);
    margin-bottom: 4px;
    font-size: 13px;
}

.stat strong {
    font-size: 24px;
    line-height: 1;
}

.compact {
    width: auto;
    min-width: 96px;
    margin-top: 0;
    padding: 0 12px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    border-bottom: 1px solid var(--line);
}

.tabs a {
    padding: 12px 14px;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    font-weight: 700;
}

.tabs a.active {
    border-color: var(--primary);
    color: var(--primary);
}

.module-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.module-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
}

.module-actions a.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.cadastro-selector {
    margin: 20px 0;
    padding: 18px;
}

.cadastro-selector label {
    margin-top: 0;
}

.inline-select {
    display: grid;
    grid-template-columns: minmax(260px, 420px) auto;
    gap: 10px;
    align-items: center;
}

.inline-select button {
    width: auto;
    min-width: 110px;
    margin-top: 0;
    padding: 0 18px;
}

.work-grid {
    display: grid;
    grid-template-columns: minmax(520px, 1.1fr) minmax(420px, 0.9fr);
    gap: 10px;
    align-items: start;
}

.single-panel {
    width: 100%;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.list-header h2 {
    margin: 0;
}

.section-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 32, 42, 0.05);
}

.section-card-title h1 {
    margin: 2px 0 4px;
}

.eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.section-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.count-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.recent-cases-panel {
    border-radius: 24px;
    padding: 26px;
    background: #fff;
    border: 1px solid #e7edf5;
    box-shadow: 0 18px 50px rgba(23, 32, 42, 0.06);
}

.recent-cases-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.recent-cases-header h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.recent-cases-table table {
    width: 100%;
    border-collapse: collapse;
}

.recent-cases-table th {
    padding: 18px 14px 12px;
    text-align: left;
    color: #5b6c88;
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid #e9eff6;
}

.recent-cases-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #f2f6fb;
    vertical-align: top;
}

.recent-cases-table tbody tr:last-child td {
    border-bottom: none;
}

.recent-cases-table a {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.cell-meta {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #eef6ff;
    color: #1f5f8e;
}

.status-pill.warning {
    background: #fff4e6;
    color: #b26100;
}

.recent-cases-footer {
    margin-top: 20px;
}

.view-all-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 220px 220px minmax(0, 1fr);
    gap: 8px;
    margin-top: 8px;
    align-items: start;
}

.panel h2 {
    margin: 0 0 8px;
    font-size: 15px;
}

.form-panel button {
    width: auto;
    padding: 0 16px;
}

.form-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.form-actions-row button,
.form-actions-row .button {
    margin-top: 0;
}

.form-panel {
    background: var(--form-bg);
}

.process-form {
    width: 100%;
    padding: 4px 14px 16px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.process-form h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.process-form .form-grid {
    gap: 8px 14px;
}

.process-form label {
    margin-top: 0;
}

.form-grid {
    display: grid;
    gap: 0 10px;
}

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

.filters-panel {
    margin-bottom: 8px;
    padding: 10px;
    background: var(--form-bg);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: 8px;
    align-items: end;
}

.filters-grid label {
    margin-top: 0;
}

.filters-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filters-actions button,
.filters-actions .button {
    margin-top: 0;
}

.cadastro-content {
    padding: 10px;
}

.cadastro-content .section-card-title {
    margin-bottom: 8px;
    padding: 2px 0 10px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cadastro-content .section-card-title h1 {
    margin: 1px 0 2px;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0;
}

.cadastro-content .eyebrow {
    font-size: 10px;
    letter-spacing: 0.08em;
}

.cadastro-content .muted {
    font-size: 12px;
    line-height: 1.2;
}

.cadastro-content .section-card-actions {
    gap: 6px;
}

.cadastro-content .section-card-actions .button {
    min-height: 30px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 6px;
}

.cadastro-content .count-pill {
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
    background: #fff;
}

.cadastro-content .module-actions {
    gap: 6px;
    margin: 8px 0;
}

.cadastro-content .module-actions a {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 7px;
    font-size: 13px;
}

.cadastro-list-content .filters-panel {
    margin-bottom: 8px;
    padding: 6px 8px;
}

.cadastro-list-content .filters-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: end;
    gap: 4px 6px;
}

.cadastro-list-content .filters-grid > div {
    flex: 1 1 0;
    min-width: 0;
}

.cadastro-list-content .filters-grid > .filters-actions {
    flex: 0 0 auto;
}

.cadastro-list-content .filters-grid label {
    margin-bottom: 2px;
    font-size: 11px;
}

.cadastro-list-content .filters-panel input,
.cadastro-list-content .filters-panel select {
    height: 28px;
    padding: 0 8px;
    border-radius: 5px;
    font-size: 12px;
}

.cadastro-list-content .filters-actions {
    gap: 4px;
}

.cadastro-list-content .filter-icon-button {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 5px;
}

.cadastro-list-content .filter-icon-button svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cadastro-list-content > .panel:not(.filters-panel) {
    padding: 8px 10px 10px;
}

.cadastro-list-content table {
    font-size: 12px;
}

.cadastro-list-content th,
.cadastro-list-content td {
    padding: 5px 7px;
    line-height: 1.25;
}

.cadastro-list-content th {
    font-size: 11px;
}

.cadastro-list-content .badge {
    min-height: 19px;
    padding: 0 7px;
    font-size: 11px;
}

.cadastro-list-content .action-chip {
    height: 22px;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 5px;
    font-size: 11px;
}

.cadastro-form-content .single-panel {
    padding: 8px 10px 10px;
}

.cadastro-form-content .form-panel {
    background: #fff;
}

.cadastro-form-content .panel::before {
    height: 2px;
}

.cadastro-form-content .form-panel h2 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.1;
}

.cadastro-form-content .form-grid {
    gap: 3px 8px;
}

.cadastro-form-content .form-grid.two {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cadastro-form-content label {
    margin: 5px 0 2px;
    font-size: 11px;
}

.cadastro-form-content input,
.cadastro-form-content select {
    height: 28px;
    padding: 0 8px;
    border-radius: 5px;
    font-size: 12px;
}

.cadastro-form-content textarea {
    min-height: 56px;
    padding: 7px 8px;
    border-radius: 5px;
    font-size: 12px;
}

.cadastro-form-content .form-panel button,
.cadastro-form-content .form-actions-row .button {
    min-height: 28px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 5px;
}

.cadastro-form-content .form-panel > button {
    margin-top: 8px;
}

.cadastro-form-content .form-actions-row {
    margin-top: 8px;
}

.processos-list-content {
    padding: 10px;
}

.processos-list-content .section-card-title {
    margin-bottom: 8px;
    padding: 2px 0 10px;
    box-shadow: none;
}

.processos-list-content .section-card-title h1 {
    margin: 1px 0 2px;
    font-size: 24px;
    line-height: 1;
}

.processos-list-content .eyebrow {
    font-size: 10px;
}

.processos-list-content .muted {
    font-size: 12px;
    line-height: 1.2;
}

.processos-list-content .section-card-actions .button {
    min-height: 30px;
    padding: 0 12px;
}

.processos-list-content .count-pill {
    min-height: 28px;
    padding: 0 9px;
}

.process-filters-panel {
    margin-bottom: 6px;
    padding: 6px 8px;
}

.process-filters-panel .filters-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: end;
    gap: 4px 6px;
}

.process-filters-panel .filters-grid > div {
    flex: 1 1 0;
    min-width: 0;
}

.process-filters-panel .filters-grid > .filters-actions {
    flex: 0 0 auto;
}

.process-filters-panel label {
    margin-bottom: 2px;
    font-size: 11px;
}

.process-filters-panel input,
.process-filters-panel select {
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
    border-radius: 5px;
}

.process-filters-panel button,
.process-filters-panel .button {
    min-width: 78px;
    min-height: 28px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 5px;
}

.process-filters-panel .filters-actions {
    gap: 4px;
}

.process-filters-panel .filter-icon-button {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
}

.process-filters-panel .filter-icon-button svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.process-list-panel {
    padding: 6px 8px 8px;
}

.process-table {
    table-layout: fixed;
    min-width: 1040px;
    font-size: 12px;
}

.process-table th,
.process-table td {
    padding: 5px 7px;
    line-height: 1.25;
}

.process-table th {
    font-size: 11px;
}

.process-col-number {
    width: 12%;
}

.process-col-date {
    width: 6%;
}

.process-col-client {
    width: 11%;
}

.process-col-status {
    width: 8%;
}

.process-col-deadline {
    width: 7.5%;
}

.process-col-next {
    width: 19%;
}

.process-col-type {
    width: 5.5%;
}

.process-col-court {
    width: 11%;
}

.process-col-lawyers {
    width: 16%;
}

.process-col-actions {
    width: 4%;
}

.process-table .badge {
    min-height: 19px;
    padding: 0 7px;
    font-size: 11px;
}

.process-table .row-note {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.25;
}

.process-table .actions-cell {
    text-align: right;
}

.process-table .actions-menu-trigger {
    width: 34px;
    height: 26px;
    min-height: 26px;
}

.process-table .actions-menu-icon {
    width: 15px;
    height: 15px;
}

@media (max-width: 760px) {
    .cadastro-form-content .form-grid.two {
        grid-template-columns: 1fr;
    }

    .cadastro-list-content .filters-grid,
    .process-filters-panel .filters-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cadastro-list-content .filters-grid > div,
    .cadastro-list-content .filters-grid > .filters-actions,
    .process-filters-panel .filters-grid > div,
    .process-filters-panel .filters-grid > .filters-actions {
        min-width: 0;
    }
}

.compact-page {
    padding: 10px;
}

.compact-page .section-card-title {
    margin-bottom: 8px;
    padding: 2px 0 10px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.compact-page .section-card-title h1 {
    margin: 1px 0 2px;
    font-size: 24px;
    line-height: 1;
}

.compact-page .eyebrow {
    font-size: 10px;
    letter-spacing: 0.08em;
}

.compact-page .muted {
    font-size: 12px;
    line-height: 1.2;
}

.compact-page .section-card-actions {
    gap: 6px;
}

.compact-page .count-pill {
    min-height: 28px;
    padding: 0 8px;
    background: #fff;
    font-size: 11px;
}

.compact-page .button.compact,
.compact-page .section-card-actions .button {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 12px;
}

.compact-page .filters-panel,
.compact-page .agenda-filter-panel {
    margin-bottom: 8px;
    padding: 6px 8px;
}

.compact-page .filters-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: end;
    gap: 4px 6px;
}

.compact-page .filters-grid > div {
    flex: 1 1 0;
    min-width: 0;
}

.compact-page .filters-grid > .filters-actions {
    flex: 0 0 auto;
}

.compact-page .filters-grid label {
    margin-bottom: 2px;
    font-size: 11px;
}

.compact-page .filters-panel input,
.compact-page .filters-panel select,
.compact-page .agenda-filter-panel input,
.compact-page .agenda-filter-panel select {
    height: 28px;
    padding: 0 8px;
    border-radius: 5px;
    font-size: 12px;
}

.compact-page .filter-icon-button {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 5px;
}

.compact-page .filter-icon-button svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.finance-summary-grid,
.agenda-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.finance-summary-card,
.agenda-summary-card {
    padding: 8px 10px;
}

.finance-summary-card span,
.agenda-summary-card span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.finance-summary-card strong,
.agenda-summary-card strong {
    font-size: 18px;
}

.finance-create-panel {
    margin-bottom: 8px;
    padding: 8px 10px 10px;
}

.finance-create-panel h2 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.1;
}

.finance-create-panel .form-grid.two {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px 8px;
}

.finance-create-panel label {
    margin: 5px 0 2px;
    font-size: 11px;
}

.finance-create-panel input,
.finance-create-panel select {
    height: 28px;
    padding: 0 8px;
    border-radius: 5px;
    font-size: 12px;
}

.finance-create-panel button[type="submit"] {
    min-height: 28px;
    margin-top: 8px;
    padding: 0 12px;
    border-radius: 5px;
    font-size: 12px;
}

.finance-list-panel {
    padding: 8px 10px 10px;
}

.finance-list-panel table {
    font-size: 12px;
}

.finance-list-panel th,
.finance-list-panel td {
    padding: 5px 7px;
    line-height: 1.25;
}

.agenda-panel.agenda-main-panel {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
}

.agenda-page .agenda-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.agenda-page .agenda-head {
    margin-bottom: 6px;
}

.agenda-page .agenda-head h2 {
    font-size: 15px;
}

.agenda-page .calendar-day {
    min-height: 27px;
    font-size: 11px;
}

.agenda-page .agenda-list {
    max-height: 240px;
    gap: 6px;
}

.agenda-page .agenda-list a {
    grid-template-columns: 78px minmax(160px, 260px) minmax(0, 1fr) auto;
    padding: 6px 8px;
}

.agenda-page .agenda-event-card .action-chip {
    height: 22px;
    min-height: 22px;
    font-size: 11px;
}

@media (max-width: 760px) {
    .compact-page .filters-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .finance-summary-grid,
    .agenda-summary-grid,
    .finance-create-panel .form-grid.two {
        grid-template-columns: 1fr;
    }
}

.rel-content {
    padding: 0;
}

.rel-layout {
    display: flex;
    align-items: flex-start;
    gap: 0;
    min-height: calc(100vh - 48px);
}

.rel-sidebar {
    position: sticky;
    top: 0;
    flex-shrink: 0;
    width: 250px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-right: 1px solid #e4e9ef;
    background: #fff;
}

.rel-sidebar-hdr {
    padding: 10px 12px;
    border-bottom: 1px solid #e4e9ef;
    background: #f9fbfc;
}

.rel-sidebar-hdr h2 {
    margin: 0;
    color: #17202a;
    font-size: 13px;
    font-weight: 800;
}

.rel-cat-label {
    padding: 7px 12px 3px;
    color: #8b98a8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.rel-tpl-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    border-bottom: 1px solid #f4f6f8;
    color: #17202a;
    font-size: 12px;
    text-decoration: none;
}

.rel-tpl-link:hover {
    background: #f4f6ff;
}

.rel-tpl-link.active {
    padding-left: 9px;
    border-left: 3px solid #6d5dff;
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 700;
}

.rel-tpl-num {
    width: 16px;
    flex-shrink: 0;
    color: #8b98a8;
    font-size: 10px;
    font-weight: 800;
    text-align: right;
}

.rel-tpl-title {
    flex: 1;
}

.rel-tpl-destaque {
    padding: 1px 5px;
    border-radius: 4px;
    background: #fef3c7;
    color: #854d0e;
    font-size: 9px;
    font-weight: 800;
}

.rel-main {
    flex: 1;
    min-width: 0;
    padding: 12px 16px 24px;
}

.rel-tpl-hdr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.rel-current-category {
    margin-bottom: 2px;
    color: #8b98a8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.rel-tpl-hdr h1 {
    margin: 0;
    color: #17202a;
    font-size: 22px;
    line-height: 1;
}

.rel-form {
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #e4e9ef;
    border-radius: 8px;
    background: #fff;
}

.rel-form-row-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.rel-form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
}

.rel-form-group label {
    margin: 0;
    color: #617080;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rel-form-group input[type="text"],
.rel-form-group input[type="date"],
.rel-form-group select {
    height: 30px;
    padding: 0 8px;
    border: 1px solid #d0d8e1;
    border-radius: 5px;
    background: #f8fbfd;
    color: #17202a;
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

.rel-form-group textarea {
    min-height: 62px;
    padding: 7px 8px;
    border: 1px solid #d0d8e1;
    border-radius: 5px;
    background: #f8fbfd;
    color: #17202a;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.35;
    outline: none;
    resize: vertical;
}

.rel-form-group input:focus,
.rel-form-group select:focus,
.rel-form-group textarea:focus {
    border-color: #6d5dff;
    background: #fff;
}

.rel-divider {
    margin: 10px 0;
    border: 0;
    border-top: 1px solid #e4e9ef;
}

.rel-form-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.rel-btn-save,
.rel-btn-new,
.rel-btn-print {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-top: 0;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.rel-btn-save {
    border: 0;
    background: linear-gradient(135deg, #6d5dff, #5ce4ff);
    color: #fff;
}

.rel-btn-new,
.rel-btn-print {
    border: 1px solid #d0d8e1;
    background: #fff;
    color: #17202a;
}

.rel-saved-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.rel-saved-hdr h3 {
    margin: 0;
    color: #17202a;
    font-size: 13px;
    font-weight: 800;
}

.rel-saved-count,
.rel-saved-meta {
    color: #8b98a8;
    font-size: 11px;
}

.rel-saved-list {
    display: grid;
    gap: 6px;
}

.rel-saved-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e4e9ef;
    border-radius: 7px;
    background: #fff;
}

.rel-saved-item.editing {
    border-color: #6d5dff;
    background: #fafafe;
}

.rel-saved-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 6px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 800;
}

.rel-saved-info {
    flex: 1;
    min-width: 0;
}

.rel-saved-titulo {
    overflow: hidden;
    color: #17202a;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rel-saved-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.rel-inline-form {
    display: inline;
}

.rel-action-sm {
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid #d0d8e1;
    border-radius: 5px;
    background: #fff;
    color: #17202a;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.rel-notice,
.rel-error {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}

.rel-notice {
    border: 1px solid #86efac;
    background: #f0fdf4;
    color: #166534;
}

.rel-error {
    border: 1px solid #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.rel-empty {
    padding: 18px;
    border: 1px dashed #d0d8e1;
    border-radius: 8px;
    color: #8b98a8;
    font-size: 12px;
    text-align: center;
}

@media print {
    body * {
        visibility: hidden;
    }

    .rel-print-area,
    .rel-print-area * {
        visibility: visible;
    }

    .rel-print-area {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 24px 40px;
        font-family: Georgia, serif;
    }

    .rel-no-print {
        display: none !important;
    }
}

@media (max-width: 820px) {
    .rel-layout {
        flex-direction: column;
    }

    .rel-sidebar {
        position: static;
        width: 100%;
        max-height: none;
    }

    .rel-form-row-top {
        grid-template-columns: 1fr;
    }
}

.ia-interna-content {
    padding: 0;
    background: transparent;
}

.cliente-ia-header.ia-interna-header {
    padding: 10px 16px 8px;
    border-bottom: 1px solid var(--line);
}

.cliente-ia-header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1280px;
    margin: 0 auto;
}

.cliente-ia-header h1 {
    margin: 0 0 2px;
    color: var(--text);
    font-size: 24px;
    line-height: 1;
}

.cliente-ia-header .muted {
    font-size: 12px;
    line-height: 1.2;
}

.ai-orb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d5dff, #5ce4ff);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.ai-orb-lg {
    width: 40px;
    height: 40px;
    font-size: 12px;
}

.iai-page-alert {
    max-width: 1280px;
    margin: 8px auto;
}

.iai-no-processes {
    padding: 48px 16px;
    color: #617080;
    text-align: center;
}

.iai-wrap {
    display: flex;
    align-items: flex-start;
    max-width: 1280px;
    margin: 10px auto;
    padding: 0 10px;
}

.iai-sidebar {
    position: sticky;
    top: 10px;
    width: 280px;
    max-height: calc(100vh - 90px);
    flex-shrink: 0;
    overflow-y: auto;
    border: 1px solid #cfdae3;
    border-radius: 8px;
    background: #fff;
}

.iai-sidebar-title {
    padding: 8px 10px;
    border-bottom: 1px solid #d9e0e7;
    background: #f9fbfc;
    color: #617080;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.iai-search-wrap {
    padding: 6px 8px;
    border-bottom: 1px solid #d9e0e7;
    background: #f9fbfc;
}

.iai-search {
    width: 100%;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #cfdae3;
    border-radius: 6px;
    background: #f8fbfd;
    color: #17202a;
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

.iai-proc-item {
    display: block;
    padding: 8px 10px;
    border-bottom: 1px solid #d9e0e7;
    color: #17202a;
    text-decoration: none;
}

.iai-proc-item:hover,
.iai-proc-item.active {
    background: #eef2ff;
}

.iai-proc-item.active {
    border-left: 3px solid #6d5dff;
    padding-left: 7px;
}

.iai-proc-num {
    display: block;
    color: #17202a;
    font-size: 12px;
    font-weight: 800;
    word-break: break-word;
}

.iai-proc-cli {
    display: block;
    overflow: hidden;
    margin: 1px 0 3px;
    color: #617080;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iai-proc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.iai-proc-status {
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.iai-proc-status.andamento {
    background: #e8f5e9;
    color: #2e7d32;
}

.iai-proc-status.pausado {
    background: #fff8e1;
    color: #f57f17;
}

.iai-proc-status.encerrado {
    background: #fce4ec;
    color: #880e4f;
}

.iai-proc-status.outro,
.iai-proc-msgs {
    color: #617080;
}

.iai-proc-msgs {
    font-size: 10px;
}

.iai-chat {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 420px;
    margin-left: 10px;
    overflow: hidden;
    border: 1px solid #cfdae3;
    border-radius: 8px;
    background: #fff;
}

.iai-chat-hdr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-bottom: 1px solid #d9e0e7;
    background: #f9fbfc;
}

.iai-chat-hdr h2 {
    margin: 2px 0 1px;
    color: #17202a;
    font-size: 16px;
    line-height: 1.1;
}

.iai-process-meta {
    color: #617080;
    font-size: 12px;
}

.iai-chat-hdr-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.iai-intro {
    padding: 8px 12px;
    border-bottom: 1px solid #d9e0e7;
    background: #f8f9ff;
}

.iai-sugestoes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.iai-sug {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid #d0c9ff;
    border-radius: 999px;
    background: #eef2ff;
    color: #6d5dff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.iai-msgs {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-height: 220px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding: 12px;
    background: #f8fbfd;
}

.iai-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: auto;
    padding: 32px 16px;
    color: #617080;
    font-size: 13px;
    text-align: center;
}

.iai-select-empty {
    padding: 48px 16px;
}

.chat-message {
    padding: 8px 10px;
    border: 1px solid #e3e9ef;
    border-radius: 8px;
    background: #fff;
}

.chat-message header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    font-size: 12px;
}

.chat-message header span {
    color: #617080;
}

.chat-message p {
    margin: 0;
    color: #17202a;
    font-size: 13px;
    line-height: 1.4;
}

.chat-message.assistente {
    background: #f8f9ff;
}

.iai-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-top: 1px solid #d9e0e7;
    background: #fff;
}

.iai-form-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.iai-form-row textarea {
    flex: 1;
    min-height: 38px;
    resize: none;
    padding: 8px 10px;
    border: 1px solid #cfdae3;
    border-radius: 7px;
    background: #f8fbfd;
    color: #17202a;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.3;
}

.iai-send-btn {
    display: grid;
    place-items: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    margin-top: 0;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #6d5dff, #5ce4ff);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.iai-char {
    color: #617080;
    font-size: 11px;
    text-align: right;
}

.iai-char.near-limit {
    color: #e65100;
    font-weight: 800;
}

@media (max-width: 820px) {
    .iai-wrap {
        flex-direction: column;
    }

    .iai-sidebar {
        position: static;
        width: 100%;
        max-height: 260px;
    }

    .iai-chat {
        width: 100%;
        margin: 8px 0 0;
    }
}

.chat-content {
    height: 100vh;
    overflow: hidden;
    padding: 0;
}

body:has(.chat-content) {
    overflow: hidden;
}

.chat-page-wrap {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.chat-sidebar {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    width: 280px;
    overflow: hidden;
    border-right: 1px solid #e4e9ef;
    background: #fff;
}

.chat-sidebar-hdr {
    padding: 12px 14px 10px;
    border-bottom: 1px solid #e4e9ef;
}

.chat-sidebar-hdr h2 {
    margin: 0 0 2px;
    color: #17202a;
    font-size: 18px;
    line-height: 1;
}

.chat-sidebar-hdr p {
    margin: 0;
    color: #617080;
    font-size: 12px;
    line-height: 1.2;
}

.chat-user-list {
    flex: 1;
    overflow-y: auto;
}

.chat-user-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-bottom: 1px solid #f0f4f8;
    color: #17202a;
    text-decoration: none;
}

.chat-user-item:hover,
.chat-user-item.active {
    background: #eef2ff;
}

.chat-user-item.active {
    border-left: 3px solid #6d5dff;
    padding-left: 7px;
}

.chat-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.chat-avatar-lg {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.avatar-color-0 { background: #6d5dff; }
.avatar-color-1 { background: #0ea5e9; }
.avatar-color-2 { background: #10b981; }
.avatar-color-3 { background: #f59e0b; }
.avatar-color-4 { background: #ef4444; }
.avatar-color-5 { background: #8b5cf6; }
.avatar-color-6 { background: #ec4899; }
.avatar-color-7 { background: #14b8a6; }

.chat-user-info {
    flex: 1;
    min-width: 0;
}

.chat-user-name {
    display: block;
    overflow: hidden;
    color: #17202a;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-user-preview {
    display: block;
    overflow: hidden;
    margin-top: 1px;
    color: #617080;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-user-meta {
    flex-shrink: 0;
    text-align: right;
}

.chat-user-date {
    color: #8b98a8;
    font-size: 10px;
}

.chat-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    border-radius: 50%;
    background: #6d5dff;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.chat-panel {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    background: #f8fafc;
}

.chat-empty,
.chat-no-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #617080;
    text-align: center;
}

.chat-empty {
    gap: 8px;
    padding: 32px;
}

.chat-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eef2ff;
    font-size: 24px;
}

.chat-empty h3 {
    margin: 0;
    color: #17202a;
    font-size: 17px;
}

.chat-empty p {
    max-width: 280px;
    margin: 0;
    font-size: 13px;
}

.chat-no-messages {
    font-size: 13px;
}

.chat-conv-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 10px 12px;
    border-bottom: 1px solid #e4e9ef;
    background: #fff;
}

.chat-conv-hdr-info h3 {
    margin: 0 0 2px;
    color: #17202a;
    font-size: 14px;
    font-weight: 800;
}

.chat-conv-hdr-info p {
    margin: 0;
    color: #617080;
    font-size: 12px;
}

.chat-error {
    margin: 8px 12px;
    padding: 8px 10px;
    border: 1px solid #fca5a5;
    border-radius: 7px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 12px;
}

.chat-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
    overflow-y: auto;
    padding: 12px;
}

.chat-day-divider {
    position: relative;
    margin: 7px 0;
    color: #8b98a8;
    font-size: 11px;
    text-align: center;
}

.chat-day-divider span {
    position: relative;
    z-index: 1;
    padding: 0 8px;
    background: #f8fafc;
}

.chat-day-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e4e9ef;
}

.chat-bubble {
    display: flex;
    flex-direction: column;
    max-width: 60%;
    word-break: break-word;
}

.chat-bubble.enviada {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-bubble.recebida {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-bubble-body {
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.35;
}

.chat-bubble.enviada .chat-bubble-body {
    border-bottom-right-radius: 4px;
    background: #dcf8c6;
    color: #1a3a1a;
}

.chat-bubble.recebida .chat-bubble-body {
    border: 1px solid #e4e9ef;
    border-bottom-left-radius: 4px;
    background: #fff;
    color: #17202a;
}

.chat-bubble-time {
    margin-top: 2px;
    padding: 0 4px;
    color: #8b98a8;
    font-size: 10px;
}

.chat-form {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    padding: 10px 12px;
    border-top: 1px solid #e4e9ef;
    background: #fff;
}

.chat-form-attach {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    margin-top: 0;
    border: 1px solid #d0d8e1;
    border-radius: 50%;
    background: #f8fafc;
    color: #617080;
    cursor: pointer;
    font-size: 15px;
}

.chat-textarea-wrap {
    flex: 1;
}

.chat-textarea {
    width: 100%;
    max-height: 96px;
    min-height: 32px;
    padding: 7px 12px;
    resize: vertical;
    border: 1px solid #d0d8e1;
    border-radius: 16px;
    background: #f8fafc;
    color: #17202a;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.35;
    outline: none;
}

.chat-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    margin-top: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 16px;
    background: #6d5dff;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.chat-send-btn:disabled {
    opacity: 0.5;
}

@media (max-width: 820px) {
    .chat-sidebar {
        width: 230px;
    }

    .chat-bubble {
        max-width: 80%;
    }
}

@media (max-width: 600px) {
    .chat-page-wrap {
        flex-direction: column;
    }

    .chat-sidebar {
        width: 100%;
        height: 220px;
        border-right: 0;
        border-bottom: 1px solid #e4e9ef;
    }
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 6px;
    margin: 6px 0 10px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-weight: 400;
}

.check-item input {
    width: 18px;
    height: 18px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
    font-size: 13px;
}

th,
td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    line-height: 1.35;
}

th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e9f4f8;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.badge.attention {
    background: #fff3d6;
    color: #8a4b00;
}

.badge.inactive {
    margin-left: 4px;
    background: #eef1f3;
    color: #647382;
}

tr.row-attention td {
    background: #fffaf0;
}

tr.row-risk td {
    background: #fffdf7;
}

tr.row-attention td:first-child {
    box-shadow: inset 3px 0 0 #d98a00;
}

tr.row-risk td:first-child {
    box-shadow: inset 3px 0 0 #b8405e;
}

tr.row-inactive td {
    background: #f7f8f9;
    color: #647382;
}

tr.row-inactive td:first-child {
    box-shadow: inset 3px 0 0 #9aa7b2;
}

.status-list {
    display: grid;
    gap: 6px;
}

.status-list a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #dbe5eb;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(23, 32, 42, 0.03);
}

.status-list a:hover {
    border-color: var(--primary);
    background: #f7fbfc;
    color: var(--text);
}

.status-list span {
    font-size: 13px;
}

.status-list strong {
    font-size: 15px;
}

.row-note {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.process-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 0;
}

.detail-grid dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.detail-grid dd {
    margin: 2px 0 0;
    font-size: 14px;
}

.participant-list,
.timeline,
.notification-list {
    display: grid;
    gap: 7px;
}

.participant-list div,
.timeline article,
.notification-list a {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
}

.participant-list span,
.timeline span,
.notification-list span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.participant-list strong {
    font-size: 14px;
}

.participant-list .badge {
    display: inline-flex;
    min-height: 18px;
    margin-top: 4px;
    padding: 0 7px;
    font-size: 11px;
}

.participant-action {
    display: inline-block;
    margin: 4px 0 0 8px;
}

.participant-action .danger-link {
    font-size: 11px;
}

.compact-heading {
    align-items: center;
}

.compact-heading h2 {
    margin: 0;
}

.participant-compact-list {
    display: grid;
    gap: 4px;
}

.participant-compact-list div {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 120px auto;
    align-items: center;
    gap: 6px;
    padding: 5px 7px;
    border: 1px solid #dbe5eb;
    border-radius: 6px;
    background: #fff;
}

.participant-compact-list div.inactive {
    opacity: 0.65;
}

.participant-compact-list span {
    font-weight: 500;
    font-size: 12px;
}

.participant-compact-list small {
    color: var(--muted);
    font-size: 11px;
}

.participant-compact-list em {
    justify-self: end;
    min-width: 44px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e9f4f8;
    color: var(--primary-dark);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    text-align: center;
}

.distribution-filters {
    grid-template-columns: minmax(280px, 2fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
}

.distribution-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.distribution-summary span {
    color: var(--muted);
}

.distribution-panel {
    background: var(--form-bg);
}

.distribution-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.distribution-toolbar h2 {
    margin: 0 0 2px;
}

.distribution-toolbar button {
    margin-top: 0;
}

.distribution-table table {
    min-width: 760px;
}

.distribution-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.distribution-table .selected-row {
    background: #edf8fb;
}

.process-page .content {
    padding: 8px 16px;
}

.process-page .page-title h1 {
    font-size: 18px;
}

.process-page .page-title {
    align-items: center;
}

.process-page textarea {
    min-height: 64px;
}

.process-page .panel p {
    margin-top: 5px;
    line-height: 1.28;
}

.process-page .panel {
    padding: 8px 10px;
}

.process-page .panel h2 {
    margin-bottom: 6px;
    font-size: 13px;
}

.process-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    padding: 8px 10px;
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(23, 32, 42, 0.045);
}

.process-hero h1 {
    margin: 1px 0 4px;
    font-size: 19px;
}

.process-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    color: var(--muted);
    font-size: 12px;
}

.process-hero-meta strong {
    color: var(--text);
}

.process-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    min-width: 260px;
}

.process-view-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
    gap: 6px;
    margin-bottom: 6px;
}

.process-side-stack {
    display: grid;
    gap: 6px;
}

.process-summary-panel {
    min-height: 100%;
}

.process-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
}

.process-facts div {
    min-height: 42px;
    padding: 6px 7px;
    border: 1px solid #dbe5eb;
    border-radius: 6px;
    background: var(--form-bg);
}

.process-facts dt,
.mini-metrics dt {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.process-facts dd,
.mini-metrics dd {
    margin: 2px 0 0;
    color: var(--text);
    font-size: 12px;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.process-description {
    margin-top: 6px;
    padding: 7px 8px;
    border: 1px solid #dbe5eb;
    border-radius: 6px;
    background: #fff;
}

.process-description strong {
    font-size: 11px;
}

.process-description p {
    margin: 3px 0 0;
    color: var(--muted);
}

.process-journey-summary {
    margin-top: 14px;
}

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

.process-journey-head {
    margin-bottom: 8px;
}

.process-journey-link {
    color: #4f46e5;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.process-journey-link:hover {
    color: #312e81;
}

.process-journey-meter {
    margin-bottom: 6px;
}

.process-journey-progress {
    flex: 1;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e2e8f0;
    appearance: none;
}

.process-journey-progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #e2e8f0;
}

.process-journey-progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #6d5dff, #22c55e);
}

.process-journey-progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #6d5dff, #22c55e);
}

.process-journey-pct {
    color: #4f46e5;
    font-size: 12px;
    font-weight: 900;
}

.process-journey-meta {
    color: #617080;
    font-size: 12px;
}

.process-journey-meta strong {
    color: #17202a;
}

.process-modal {
    width: min(560px, calc(100vw - 28px));
    padding: 0;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.process-modal::backdrop {
    background: rgba(8, 17, 42, 0.48);
}

.process-modal-form {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.process-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.process-modal-head h2 {
    margin: 2px 0 0;
    font-size: 16px;
}

.process-modal-close {
    width: 30px;
    min-width: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-size: 18px;
}

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

.process-modal-actions button {
    margin-top: 0;
}

.danger-button {
    background: #9f1d1d;
}

.danger-button:hover {
    background: #6f1212;
}

.participant-compact-list .wide-note {
    grid-column: 1 / -1;
}

.process-activity-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
}

.activity-list {
    display: grid;
    gap: 5px;
    max-height: 200px;
    overflow: auto;
}

.activity-list article {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 6px;
    align-items: start;
    padding: 6px 7px;
    border: 1px solid #dbe5eb;
    border-radius: 6px;
    background: #fff;
}

.activity-list article.late {
    border-color: #f0c6c6;
    background: #fff8f8;
}

.activity-list time {
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 900;
}

.activity-list strong {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 500;
}

.activity-list p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.28;
}

.activity-list span {
    padding: 2px 6px;
    border-radius: 999px;
    background: #e9f4f8;
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.activity-list .late span {
    background: #fff1f1;
    color: var(--danger);
}

.compact-form textarea {
    min-height: 64px;
}

.inline-form-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 6px;
    align-items: end;
}

.inline-form-row button {
    margin: 0;
}

.mini-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px;
    margin: 0;
}

.mini-metrics div {
    padding: 6px 7px;
    border: 1px solid #dbe5eb;
    border-radius: 6px;
    background: var(--form-bg);
}

.mini-metrics dd {
    font-size: 15px;
    font-weight: 500;
}

.process-timeline article {
    background: #fff;
}

.process-timeline article header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 3px;
}

.process-timeline article header span {
    margin: 0;
    white-space: nowrap;
}

.process-timeline p {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 12px;
}

.notification-alert {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #cfe6ee;
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    background: #f5fbfd;
}

.notification-alert-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.notification-alert-head h2 {
    margin: 0;
    font-size: 14px;
}

.notification-alert-head strong {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
}

.eyebrow {
    display: block;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.notification-alert-list {
    display: grid;
    gap: 6px;
    max-height: 132px;
    overflow: auto;
}

.notification-alert-list a {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border: 1px solid #d7e7ed;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
}

.notification-alert-list a:hover {
    border-color: var(--primary);
}

.notification-alert-list strong,
.notification-alert-list span,
.notification-alert-list p,
.notification-alert-list small,
.notification-more {
    overflow-wrap: anywhere;
}

.notification-alert-list strong {
    font-size: 12px;
}

.notification-alert-list span {
    display: block;
    margin-top: 0;
    color: var(--muted);
    font-size: 11px;
}

.notification-alert-list p {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-alert-list small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.notification-more {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.agenda-panel {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 10px;
    margin: 0 0 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.agenda-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.agenda-head h2 {
    margin: 0;
    font-size: 16px;
}

.agenda-head strong {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e6f1f5;
    color: var(--primary);
    font-size: 12px;
}

.calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.calendar-nav a {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
}

.calendar-nav a:hover {
    border-color: var(--primary);
    background: #f5fbfd;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.calendar-weekdays {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    position: relative;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e9ee;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 800;
}

.calendar-day.empty {
    border-color: transparent;
    background: transparent;
}

.calendar-day.today {
    border-color: var(--primary);
}

.calendar-day.has-event {
    background: #e6f1f5;
    color: var(--primary);
}

.calendar-day small {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 9px;
}

.agenda-list {
    display: grid;
    gap: 7px;
    align-content: flex-start;
    max-height: 260px;
    overflow: auto;
}

.agenda-list a {
    display: grid;
    grid-template-columns: 86px minmax(180px, 280px) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    color: var(--text);
}

.agenda-list a:hover {
    border-color: var(--primary);
}

.agenda-list time {
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.agenda-list strong {
    font-size: 12px;
}

.agenda-list span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.agenda-list p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audiencia-panel {
    margin-bottom: 8px;
}

.audiencia-form {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #dbe7ec;
    border-radius: 7px;
    background: var(--form-bg);
}

.audiencia-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 10px;
}

.audiencia-grid .wide {
    grid-column: span 2;
}

.audiencia-list {
    display: grid;
    gap: 7px;
}

.audiencia-list article {
    display: grid;
    gap: 7px;
    padding: 8px 9px;
    border: 1px solid #dbe5eb;
    border-radius: 6px;
    background: #fff;
}

.audiencia-main {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.audiencia-main time {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
}

.audiencia-main strong {
    font-size: 13px;
}

.audiencia-main span {
    justify-self: end;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e9f4f8;
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.audiencia-list dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin: 0;
}

.audiencia-list dl div {
    padding: 5px 6px;
    border: 1px solid #edf2f5;
    border-radius: 6px;
    background: var(--form-bg);
}

.audiencia-list dt {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.audiencia-list dd {
    margin: 2px 0 0;
    color: var(--text);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.audiencia-list p {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.35;
}

.audiencia-list footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
}

.inline-form {
    margin-top: 18px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.upload-form {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #dbe7ec;
    border-radius: 7px;
    background: var(--form-bg);
}

.files-table {
    margin-top: 8px;
}

.actions-cell {
    white-space: nowrap;
    vertical-align: middle;
}

.actions-cell > .action-chip,
.actions-cell > .inline-action-form {
    margin: 0 4px 4px 0;
}

.action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-content: flex-start;
}

.action-stack > .action-chip,
.action-stack > .inline-action-form {
    margin: 0;
}

.actions-menu {
    position: relative;
    display: inline-block;
}

.actions-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 0;
    height: 28px;
    min-height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid #b9d9ee;
    border-radius: 8px;
    background: #fff;
    color: #2d77a8;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    font-family: inherit;
}

.actions-menu:hover .actions-menu-trigger,
.actions-menu:focus-within .actions-menu-trigger {
    border-color: #8ec5e8;
    background: #f2f9ff;
}

.actions-menu-icon {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.actions-menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.actions-menu-panel {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    z-index: 40;
    display: none;
    gap: 4px;
    width: 146px;
    padding: 5px;
    border: 1px solid #d8e2ea;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.actions-menu:hover .actions-menu-panel,
.actions-menu:focus-within .actions-menu-panel {
    display: grid;
}

.actions-menu-panel .action-chip,
.actions-menu-panel .inline-action-form {
    width: 100%;
}

.actions-menu-panel .action-chip {
    justify-content: flex-start;
    height: 25px;
    padding: 0 8px;
}

.process-table .action-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(58px, 1fr));
    align-content: start;
    gap: 4px;
}

.process-table .action-stack .action-chip,
.process-table .action-stack .inline-action-form {
    width: 100%;
}

.action-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    min-height: 24px;
    margin: 0 3px 0 0;
    padding: 0 8px;
    border: 1px solid #cfe0e7;
    border-radius: 6px;
    background: #f7fbfc;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    font-family: inherit;
    text-decoration: none;
}

.action-chip:hover {
    border-color: var(--primary);
    background: #eef7fa;
    color: var(--primary-dark);
}

.action-chip.edit {
    background: #f4f7f9;
    color: #526170;
}

.action-chip.attention {
    border-color: #efcf8c;
    background: #fff3d6;
    color: #8a4b00;
}

.action-chip.attention:hover {
    background: #ffe8ad;
    color: #633600;
}

.action-chip.danger {
    border-color: #f1c6c6;
    background: #fff1f1;
    color: var(--danger);
}

.action-chip.danger:hover {
    background: #ffe3e3;
    color: var(--danger);
}

.inline-action-form {
    display: inline-flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    line-height: 1;
    background: transparent;
}

.actions-cell form {
    display: inline-flex;
    vertical-align: middle;
    margin: 0;
}

.danger-link {
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--danger);
    font-size: 13px;
}

.danger-link:hover {
    background: transparent;
    color: #6f1212;
}

/* Operational page headers */
.section-card-title,
.pend-header,
.jg-header,
.cfg-header,
.flow-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 0 9px;
    border: 0;
    border-bottom: 1px solid #dce5ed;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.section-card-title h1,
.pend-header h1,
.jg-header h1,
.cfg-header h1,
.flow-header h1,
.hero-heading h1,
.cliente-ia-header h1 {
    margin: 0 0 3px;
    color: var(--text);
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.section-card-title .muted,
.pend-header p,
.jg-header p,
.cfg-header p,
.flow-header p,
.hero-heading .muted,
.cliente-ia-header .muted {
    max-width: 980px;
    margin: 0;
    color: #647386;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.section-card-title .eyebrow {
    display: inline-flex;
    margin-bottom: 2px;
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.section-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.count-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #d5e0e8;
    border-radius: 999px;
    background: #fff;
    color: #526173;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.section-card-actions .button,
.section-card-actions .button.compact {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-hero {
    gap: 10px;
    padding: 0 0 11px;
    border: 0;
    border-bottom: 1px solid #dce5ed;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hero-ai-box {
    margin-top: 2px;
}

.hero-ai-badge {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
}

.cliente-ia-header.ia-interna-header {
    margin-bottom: 10px;
    padding: 0 0 9px;
    border-bottom: 1px solid #dce5ed;
}

.cliente-ia-header-inner {
    gap: 10px;
}

.cliente-ia-orb-wrap {
    display: none;
}

/* Pendências */
.pend-page {
    padding: 10px;
}

.pend-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pend-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.pend-tab {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #d0d8e1;
    border-radius: 7px;
    background: #fff;
    color: #17202a;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.pend-tab.active {
    border-color: #1e1b4b;
    background: #1e1b4b;
    color: #fff;
}

.pend-tab small {
    margin-left: 5px;
    opacity: .75;
}

.pend-responsavel-filter {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-left: auto;
}

.pend-filter-field {
    display: grid;
    gap: 3px;
}

.pend-filter-field label {
    color: #637184;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .03em;
    line-height: 1;
    text-transform: uppercase;
}

.pend-filter-field select {
    min-width: 260px;
    height: 30px;
    font-size: 12px;
}

.pend-filter-btn,
.pend-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 30px;
    border: 1px solid #d7e0ea;
    border-radius: 7px;
    background: #fff;
    color: #3157c8;
}

.pend-filter-btn {
    border-color: #3157c8;
    background: #3157c8;
    color: #fff;
}

.pend-filter-btn svg,
.pend-filter-clear svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.pend-alert {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.pend-alert.ok {
    border: 1px solid #86efac;
    background: #f0fdf4;
    color: #166534;
}

.pend-alert.err {
    border: 1px solid #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.pend-list {
    display: grid;
    gap: 8px;
}

.pend-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 10px;
    align-items: start;
    padding: 9px 10px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: #fff;
}

.pend-card.risk-danger {
    border-left: 3px solid #b8405e;
    background: #fffafa;
}

.pend-card.risk-warn {
    border-left: 3px solid #d27b21;
    background: #fffdf7;
}

.pend-card.risk-neutral {
    border-left: 3px solid #8a97a8;
}

.pend-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.pend-title strong {
    color: #17202a;
    font-size: 14px;
}

.pend-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 900;
}

.pend-badge.warn {
    background: #fff7ed;
    color: #c2410c;
}

.pend-badge.danger {
    background: #fef2f2;
    color: #b91c1c;
}

.risk-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    background: #eaf6f3;
    color: #0f6f66;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.risk-label.ok {
    background: #eaf6f3;
    color: #0f6f66;
}

.risk-label.neutral {
    background: #eef2f6;
    color: #526173;
}

.risk-label.warn {
    background: #fff2d8;
    color: #91500b;
}

.risk-label.danger {
    background: #f9e4e8;
    color: #9a2340;
}

.next-action {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.next-action strong {
    overflow: hidden;
    color: #17202a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.next-action span {
    overflow: hidden;
    color: #617080;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.next-action .risk-label {
    margin-top: 1px;
}

.pend-meta {
    color: #617080;
    font-size: 12px;
    line-height: 1.35;
}

.pend-responsavel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
    margin-top: 4px;
    margin-right: 8px;
    padding: 0 8px;
    border: 1px solid #bfd5e4;
    border-radius: 999px;
    background: #eef7ff;
    color: #174d73;
    font-size: 11px;
    line-height: 1;
    vertical-align: middle;
}

.pend-responsavel span {
    color: #637184;
    font-weight: 800;
}

.pend-responsavel strong {
    color: #174d73;
    font-size: 11px;
    font-weight: 900;
}

.pend-responsavel.missing {
    border-color: #efc0c8;
    background: #fff1f3;
    color: #9a2340;
}

.pend-responsavel.missing strong {
    color: #9a2340;
}

.pend-deadline {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    color: #617080;
    font-weight: 700;
    vertical-align: middle;
}

.pend-actions {
    display: grid;
    justify-self: end;
    width: 480px;
    gap: 5px;
}

.pend-actions form {
    display: grid;
    align-items: center;
    gap: 5px;
}

.pend-actions .finish-form {
    grid-template-columns: minmax(120px, 1fr) 30px;
}

.pend-actions .forward-form {
    grid-template-columns: minmax(150px, 1fr) 116px 30px;
}

.pend-actions input,
.pend-actions select {
    width: 100%;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #d0d8e1;
    border-radius: 6px;
    background: #fff;
    color: #17202a;
    font: inherit;
    font-size: 12px;
}

.pend-actions input:focus,
.pend-actions select:focus {
    outline: none;
    border-color: #8b9cf7;
    box-shadow: 0 0 0 2px rgba(109, 93, 255, .12);
}

.pend-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 28px;
    min-height: 28px;
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: #1e1b4b;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.pend-btn.light {
    border: 1px solid #d0d8e1;
    background: #fff;
    color: #17202a;
}

.pend-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pend-empty {
    padding: 18px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: #fff;
    color: #617080;
}

/* Jornada geral */
.content.jg-content {
    padding: 10px;
}

.jg-page {
    padding: 0 0 16px;
}

.jg-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.jg-stat {
    padding: 10px 12px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: #fff;
}

.jg-stat-val {
    color: var(--text);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.jg-stat-lbl {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.jg-stat.green .jg-stat-val { color: #16a34a; }
.jg-stat.purple .jg-stat-val { color: #3157c8; }
.jg-stat.orange .jg-stat-val { color: #d97706; }

.jg-filters {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: #fff;
}

.jg-filters input[type="search"],
.jg-filters select {
    width: auto;
    min-width: 0;
    height: 28px;
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid var(--card-border);
    border-radius: 5px;
    background: var(--form-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

.jg-filters input[type="search"] {
    flex: 1.4 1 180px;
}

.jg-filters select {
    flex: 1 1 150px;
}

.jg-filters input:focus,
.jg-filters select:focus {
    border-color: #3157c8;
}

.jg-filter-btn,
.jg-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    margin-top: 0;
    padding: 0;
    border-radius: 7px;
}

.jg-filter-btn {
    border: 0;
    background: #3157c8;
    color: #fff;
    cursor: pointer;
}

.jg-filter-clear {
    border: 1px solid #d0d8e1;
    background: #fff;
    color: var(--text);
    text-decoration: none;
}

.jg-filter-btn svg,
.jg-filter-clear svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jg-view-toggle {
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
    margin-left: auto;
}

.jg-view-btn {
    min-width: 76px;
    min-height: 28px;
    margin-top: 0;
    padding: 0 10px;
    border: 1px solid #d0d8e1;
    border-radius: 7px;
    background: #fff;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.jg-view-btn.active {
    border-color: #3157c8;
    background: #3157c8;
    color: #fff;
}

.jg-empty {
    padding: 44px 24px;
    color: var(--muted);
    text-align: center;
}

.jg-empty p {
    margin: 0 0 8px;
    font-size: 15px;
}

.jg-empty a {
    color: #3157c8;
    font-weight: 700;
    text-decoration: none;
}

.jg-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: #fff;
}

.jg-table-wrap.visible {
    display: block;
}

.jg-table-wrap.hidden {
    display: none;
}

.jg-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 12px;
}

.jg-table thead tr {
    background: #1e1b4b;
    color: #fff;
}

.jg-table thead th {
    padding: 8px 10px;
    color: #a7b0bf;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.jg-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #e8edf2;
    line-height: 1.25;
    vertical-align: middle;
}

.jg-table tbody tr:last-child td {
    border-bottom: 0;
}

.jg-table tbody tr:hover {
    background: #f8fafc;
}

.jg-table td.num,
.jg-col-num {
    width: 36px;
}

.jg-table td.num {
    color: var(--muted);
    font-size: 11px;
}

.jg-col-progress {
    min-width: 180px;
}

.jg-proc-num {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.jg-proc-cli {
    color: var(--muted);
    font-size: 11px;
}

.jg-stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border: 1px solid #c7d2fe;
    border-radius: 20px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 700;
}

.jg-stage-badge.done {
    border-color: #86efac;
    background: #f0fdf4;
    color: #15803d;
}

.jg-mini-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jg-progress {
    flex: 1;
    min-width: 80px;
    height: 6px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e2e8f0;
    appearance: none;
}

.jg-progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #e2e8f0;
}

.jg-progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #3157c8, #16a34a);
}

.jg-progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #3157c8, #16a34a);
}

.jg-mini-pct {
    color: #3157c8;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.jg-progress-detail {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.jg-link {
    color: #3157c8;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.jg-link:hover {
    text-decoration: underline;
}

.jg-status {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.jg-status.andamento { background: #e8f5e9; color: #2e7d32; }
.jg-status.pausado { background: #fff8e1; color: #f57f17; }
.jg-status.encerrado { background: #fce4ec; color: #880e4f; }
.jg-status.outro { background: #f4f6f8; color: #617080; }

.jg-kanban {
    display: none;
}

.jg-kanban.visible {
    display: block;
}

.jg-group {
    margin-bottom: 10px;
}

.jg-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px 8px 0 0;
    background: #1e1b4b;
    color: #fff;
    cursor: pointer;
}

.jg-group-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.jg-group-title {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
}

.jg-group-count {
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
}

.jg-group-arrow {
    font-size: 12px;
    transition: transform .2s;
}

.jg-group-body {
    overflow: hidden;
    border: 1px solid #e4e9ef;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #fff;
}

.jg-group-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f4f8;
    color: var(--text);
    text-decoration: none;
}

.jg-group-row:last-child {
    border-bottom: 0;
}

.jg-group-row:hover {
    background: #f4f6ff;
}

.jg-group-row-num {
    min-width: 120px;
    font-size: 12px;
    font-weight: 700;
}

.jg-group-row-cli {
    flex: 1;
    color: var(--muted);
    font-size: 12px;
}

.jg-group-row-bar {
    width: 120px;
}

.jg-group-row-pct {
    width: 34px;
    color: #3157c8;
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}

@media (max-width: 1180px) {
    .pend-card {
        grid-template-columns: 1fr;
    }

    .pend-actions {
        justify-self: stretch;
        width: 100%;
    }
}

@media (max-width: 980px) {
    .pend-toolbar,
    .pend-responsavel-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .pend-responsavel-filter {
        margin-left: 0;
    }

    .pend-filter-field,
    .pend-filter-field select {
        min-width: 0;
        width: 100%;
    }

    .pend-filter-btn,
    .pend-filter-clear {
        width: 100%;
    }
}

@media (max-width: 960px) {
    .jg-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .pend-actions .finish-form,
    .pend-actions .forward-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .section-card-title,
    .pend-header,
    .jg-header,
    .cfg-header,
    .flow-header {
        align-items: stretch;
        flex-direction: column;
    }

    .section-card-actions {
        justify-content: flex-start;
    }

    .pend-page {
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .jg-stats {
        grid-template-columns: 1fr 1fr;
    }

    .jg-filters {
        align-items: stretch;
        flex-direction: column;
    }

    .jg-filters input[type="search"],
    .jg-filters select {
        width: 100%;
    }

    .jg-view-toggle {
        width: 100%;
        margin-left: 0;
    }

    .jg-view-btn {
        flex: 1;
    }
}

/* Admin compact screens: BI, permissions and workflow */
.bi-page,
.cfg-page,
.flow-page {
    padding: 10px 14px 24px;
}

.bi-page {
    min-height: calc(100vh - 58px);
    background:
        linear-gradient(180deg, #f5f8fb 0%, #eef3f7 100%);
}

.bi-tabs-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: -10px -14px 12px;
    padding: 10px 14px 0;
    overflow-x: auto;
    border-bottom: 1px solid #dbe4ec;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 18px rgba(28, 42, 58, .06);
    backdrop-filter: blur(8px);
}

.bi-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 6px 6px 0 0;
    background: transparent;
    color: #526173;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.bi-tab::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #8b98a8;
}

.bi-tab-geral::before { background: #3157c8; }
.bi-tab-financeiro::before { background: #0f8f82; }
.bi-tab-processos::before { background: #d27b21; }
.bi-tab-advogados::before { background: #6f4cc3; }
.bi-tab-clientes::before { background: #147da8; }

.bi-tab:hover {
    color: #17202a;
    background: #f6f9fc;
}

.bi-tab.active {
    color: #17202a;
    border-bottom-color: #3157c8;
    background: #eef4ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.bi-screen {
    display: none;
    padding: 0;
}

.bi-screen.active {
    display: block;
}

.bi-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.bi-kpi {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 82px;
    padding: 13px 14px 12px;
    overflow: hidden;
    border: 1px solid #d5e0e8;
    border-left: 4px solid #64748b;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: 0 10px 24px rgba(28, 42, 58, .07);
}

.bi-kpi::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #64748b;
    opacity: .8;
}

.bi-kpi-label {
    color: #667486;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
}

.bi-kpi-val {
    margin-top: 4px;
    color: var(--text);
    font-size: 28px;
    font-weight: 900;
    line-height: .95;
}

.bi-kpi-money-sm {
    font-size: 17px;
}

.bi-kpi-money-md {
    font-size: 18px;
}

.bi-kpi-sub {
    margin-top: 6px;
    color: #526173;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.bi-kpi.accent-purple {
    border-left-color: #3157c8;
}

.bi-kpi.accent-purple .bi-kpi-val {
    color: #3157c8;
}

.bi-kpi.accent-purple::after {
    background: linear-gradient(90deg, #3157c8, #147da8);
}

.bi-kpi.accent-green {
    border-left-color: #0f8f82;
}

.bi-kpi.accent-green .bi-kpi-val {
    color: #0f8f82;
}

.bi-kpi.accent-green::after {
    background: linear-gradient(90deg, #0f8f82, #2f9d58);
}

.bi-kpi.accent-orange {
    border-left-color: #d27b21;
}

.bi-kpi.accent-orange .bi-kpi-val {
    color: #d27b21;
}

.bi-kpi.accent-orange::after {
    background: linear-gradient(90deg, #d27b21, #b64b32);
}

.bi-kpi.accent-red {
    border-left-color: #b8405e;
}

.bi-kpi.accent-red .bi-kpi-val {
    color: #b8405e;
}

.bi-kpi.accent-red::after {
    background: linear-gradient(90deg, #b8405e, #9b5b1f);
}

.bi-row {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.bi-row-spaced,
.bi-card-spaced {
    margin-top: 10px;
}

.bi-row.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bi-row.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bi-row.cols-12 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.bi-row.cols-21 {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.bi-card {
    position: relative;
    min-width: 0;
    padding: 13px 15px 14px;
    overflow: hidden;
    border: 1px solid #d5e0e8;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 10px 26px rgba(28, 42, 58, .06);
}

.bi-card::before {
    content: '';
    display: block;
    height: 3px;
    margin: -13px -15px 11px;
    background: linear-gradient(90deg, #3157c8, #0f8f82, #d27b21);
}

.bi-card-title {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
}

.bi-card-sub {
    color: #7c8898;
    font-size: 11px;
    font-weight: 700;
}

.bi-chart-wrap {
    position: relative;
}

.bi-chart-center {
    display: flex;
    justify-content: center;
}

.bi-chart-h240 {
    max-height: 200px;
}

.bi-chart-h260 {
    max-height: 218px;
}

.bi-chart-h280 {
    max-height: 230px;
}

.bi-chart-h240 canvas,
.bi-chart-h260 canvas,
.bi-chart-h280 canvas {
    max-height: inherit;
}

.bi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.bi-table th {
    padding: 6px 8px;
    border-bottom: 1px solid #e2e8f0;
    color: #687789;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    text-align: left;
    text-transform: uppercase;
}

.bi-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #edf2f7;
    color: var(--text);
    vertical-align: middle;
}

.bi-table tr:last-child td {
    border-bottom: 0;
}

.bi-table .num {
    color: #3157c8;
    font-weight: 900;
}

.bi-table .muted {
    color: #8a97a8;
    font-size: 11px;
}

.bi-table .val,
.bi-positive {
    font-weight: 800;
}

.bi-positive {
    color: #0f8f82;
}

.bi-empty-note {
    margin: 0;
    padding: 20px 0;
    color: #8a97a8;
    font-size: 12px;
    text-align: center;
}

.bi-empty-cell {
    color: #8a97a8;
    text-align: center;
}

.bi-badge-status {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.bi-badge-status.vencido {
    background: #f9e4e8;
    color: #9a2340;
}

.bi-badge-status.pago {
    background: #def4ee;
    color: #075f55;
}

.bi-badge-status.aberto {
    background: #f8ead8;
    color: #91500b;
}

.bi-rank-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bi-rank-progress {
    width: 100px;
    height: 7px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #edf2f7;
    appearance: none;
}

.bi-rank-progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #edf2f7;
}

.bi-rank-progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #3157c8, #0f8f82);
}

.bi-rank-progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #3157c8, #0f8f82);
}

.bi-rank-pct {
    color: #8a97a8;
    font-size: 11px;
    font-weight: 700;
}

.cfg-header,
.flow-header {
    padding-bottom: 9px;
    border-bottom-color: #dce5ed;
}

.cfg-header h1,
.flow-header h1 {
    margin: 0 0 3px;
    color: var(--text);
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
}

.cfg-header p,
.flow-header p {
    max-width: 980px;
    margin: 0;
    color: #647386;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.cfg-toolbar,
.flow-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.cfg-save-btn,
.cfg-mark-btn,
.cfg-clear-btn,
.flow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.cfg-save-btn,
.flow-btn {
    border: 1px solid #1e1b4b;
    background: #1e1b4b;
    color: #fff;
}

.cfg-save-btn {
    border-color: transparent;
    background: linear-gradient(135deg, #5f58ee, #67c7e7);
}

.cfg-mark-btn,
.flow-btn.secondary {
    border: 1px solid #cfd9e3;
    background: #fff;
    color: var(--text);
}

.cfg-clear-btn {
    border: 1px solid #f2aaaa;
    background: #fff;
    color: #c83333;
}

.cfg-alert-success,
.cfg-alert-error,
.flow-alert {
    margin-bottom: 9px;
    padding: 8px 11px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
}

.cfg-alert-success,
.flow-alert.ok {
    border: 1px solid #8edfa9;
    background: #f1fcf5;
    color: #17643a;
}

.cfg-alert-error,
.flow-alert.err {
    border: 1px solid #f4aaa8;
    background: #fff2f2;
    color: #9f1d1d;
}

.cfg-table-wrap {
    overflow-x: auto;
    border: 1px solid #d7e0e8;
    border-radius: 8px;
    background: #fff;
}

.cfg-table {
    width: 100%;
    min-width: 930px;
    border-collapse: collapse;
    font-size: 12px;
}

.cfg-table thead tr {
    background: #1e1b4b;
}

.cfg-table th {
    padding: 9px 10px;
    color: #a7b0bf;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.cfg-table th.col-left {
    text-align: left;
}

.cfg-col-num-h {
    width: 34px;
}

.cfg-col-user-h {
    min-width: 150px;
}

.cfg-col-email-h {
    min-width: 175px;
}

.cfg-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5ebf1;
    vertical-align: middle;
}

.cfg-table tbody tr:last-child td {
    border-bottom: 0;
}

.cfg-table tbody tr:hover {
    background: #f7fafc;
}

.cfg-table .col-num {
    width: 34px;
    color: #6b7988;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.cfg-table .col-name {
    color: var(--text);
    font-weight: 900;
}

.cfg-table .col-email {
    color: #687789;
}

.cfg-table .col-cb,
.cfg-table .col-date {
    text-align: center;
}

.cfg-table .col-date {
    color: #7e8b9a;
    font-size: 11px;
    white-space: nowrap;
}

.cfg-tipo-badge {
    display: inline-flex;
    align-items: center;
    min-height: 17px;
    margin-left: 5px;
    padding: 0 7px;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    background: #f0f2ff;
    color: #4f46e5;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.perm-cb {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.perm-cb + label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #cfd8e3;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.perm-cb + label::after {
    content: '';
    display: none;
    width: 5px;
    height: 10px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg) translateY(-1px);
}

.perm-cb:checked + label::after {
    display: block;
}

.perm-visualizar .perm-cb:checked + label { background: #3b82f6; border-color: #3b82f6; }
.perm-criar .perm-cb:checked + label { background: #20984d; border-color: #20984d; }
.perm-editar .perm-cb:checked + label { background: #c56b1d; border-color: #c56b1d; }
.perm-deletar .perm-cb:checked + label { background: #c43b3b; border-color: #c43b3b; }
.perm-distribuir .perm-cb:checked + label { background: #0f9a97; border-color: #0f9a97; }
.perm-fechar .perm-cb:checked + label { background: #7c55cc; border-color: #7c55cc; }
.perm-pdf .perm-cb:checked + label { background: #526170; border-color: #526170; }
.perm-audiencias .perm-cb:checked + label { background: #1684c7; border-color: #1684c7; }

.flow-header {
    align-items: center;
}

.flow-stage {
    overflow: hidden;
    margin-bottom: 9px;
    border: 1px solid #d7e0e8;
    border-radius: 8px;
    background: #fff;
}

.flow-stage-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-bottom: 1px solid #e5ebf1;
    background: #f8fafc;
}

.flow-stage-num {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 7px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 900;
}

.flow-stage-title {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.flow-scroll {
    overflow-x: auto;
}

.flow-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}

.flow-table th {
    padding: 6px 8px;
    border-bottom: 1px solid #e5ebf1;
    background: #fff;
    color: #6d7a8b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    text-align: left;
    text-transform: uppercase;
}

.flow-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.flow-table tr:last-child td {
    border-bottom: 0;
}

.flow-table input:not([type="checkbox"]),
.flow-table select {
    width: 100%;
    height: 29px;
    min-height: 29px;
    padding: 4px 8px;
    border: 1px solid #cfd9e3;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.flow-table input:not([type="checkbox"]):focus,
.flow-table select:focus {
    outline: 0;
    border-color: #7c8af2;
    box-shadow: 0 0 0 2px rgba(91, 80, 230, .12);
}

.flow-table .ordem input,
.flow-table .prazo input {
    padding-right: 4px;
    padding-left: 4px;
    text-align: center;
}

.flow-table .ativo {
    text-align: center;
}

.flow-table .ativo input {
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 0;
    accent-color: #4f46e5;
}

.flow-col-ordem { width: 60px; }
.flow-col-acao { width: 255px; }
.flow-col-tipo { width: 220px; }
.flow-col-perfil { width: 165px; }
.flow-col-usuario { width: 320px; }
.flow-col-prazo { width: 66px; }
.flow-col-ativo { width: 56px; }

@media (max-width: 1100px) {
    .bi-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bi-row.cols-2,
    .bi-row.cols-12,
    .bi-row.cols-21 {
        grid-template-columns: 1fr;
    }

    .bi-row.cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .bi-page,
    .cfg-page,
    .flow-page {
        padding: 8px 10px 18px;
    }

    .bi-kpis,
    .bi-row.cols-3 {
        grid-template-columns: 1fr;
    }

    .cfg-header,
    .flow-header {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .login-shell,
    .stats-grid,
    .work-grid,
    .dashboard-grid,
    .commitments-layout,
    .agenda-panel,
    .notification-alert-list,
    .process-layout,
    .process-view-grid,
    .process-activity-grid,
    .process-facts,
    .mini-metrics,
    .audiencia-grid,
    .audiencia-list dl,
    .detail-grid,
    .filters-grid,
    .form-grid.two {
        grid-template-columns: 1fr;
    }

    .login-shell {
        gap: 24px;
    }

    .topbar,
    .main-menu,
    .topbar-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar {
        padding: 16px;
    }

    .top-search,
    .top-search input,
    .top-search button {
        width: 100%;
    }

    .process-hero,
    .process-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .process-hero-actions {
        min-width: 0;
        justify-content: flex-start;
    }

    .activity-list article,
    .commitments-layout .commitments-list a,
    .audiencia-main,
    .inline-form-row {
        grid-template-columns: 1fr;
    }

    .audiencia-grid .wide {
        grid-column: auto;
    }

    .audiencia-main span {
        justify-self: start;
    }

    .audiencia-list footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .notification-alert-list a {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .participant-compact-list div,
    .distribution-toolbar,
    .distribution-summary {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .notification-alert-list p,
    .notification-alert-list small {
        white-space: normal;
    }

    .agenda-list a {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .agenda-list p {
        white-space: normal;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
    }

    .page-title,
    .section-heading,
    .section-card-title,
    .section-card-actions,
    .tabs,
    .list-header,
    .module-actions,
    .inline-select {
        flex-direction: column;
        align-items: stretch;
    }

    .inline-select {
        display: grid;
        grid-template-columns: 1fr;
    }

    .filters-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .login-card button {
        width: 100%;
    }

}

/* Gradient operational header */
.content > .section-card-title,
.content > .page-title,
.process-hero,
.pend-header,
.jg-header,
.cfg-header,
.flow-header,
.dashboard-hero,
.cliente-ia-header.ia-interna-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: -10px -10px 12px;
    padding: 18px 24px 20px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #30267a 58%, #4b1d8f 100%);
    color: #fff;
    box-shadow: none;
}

.content.dashboard-home .dashboard-hero {
    margin: -24px -24px 16px;
}

.content > .page-title > div,
.content > .section-card-title > div:first-child,
.process-hero-main,
.pend-header > div:first-child,
.jg-header > div:first-child,
.cfg-header > div:first-child,
.flow-header > div:first-child,
.hero-heading,
.cliente-ia-header-inner {
    min-width: 0;
}

.content > .section-card-title .eyebrow,
.content > .page-title .eyebrow,
.process-hero .eyebrow,
.pend-header .eyebrow,
.jg-header .eyebrow,
.cfg-header .eyebrow,
.flow-header .eyebrow,
.dashboard-hero .eyebrow,
.cliente-ia-header .eyebrow {
    display: inline-flex;
    margin: 0 0 6px;
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
}

.content > .section-card-title h1,
.content > .page-title h1,
.process-hero h1,
.pend-header h1,
.jg-header h1,
.cfg-header h1,
.flow-header h1,
.dashboard-hero h1,
.cliente-ia-header h1 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.content > .section-card-title .muted,
.content > .page-title .muted,
.process-hero-meta,
.pend-header p,
.jg-header p,
.cfg-header p,
.flow-header p,
.dashboard-hero .muted,
.cliente-ia-header .muted {
    max-width: 980px;
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.section-card-actions,
.process-hero-actions,
.flow-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.content > .section-card-title .section-card-actions .button,
.content > .section-card-title .section-card-actions .button.compact,
.content > .page-title > .button,
.process-hero-actions .action-chip,
.flow-actions .flow-btn,
.dashboard-hero .hero-ai-submit {
    min-height: 31px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 7px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
}

.content > .section-card-title .section-card-actions .button:hover,
.content > .page-title > .button:hover,
.process-hero-actions .action-chip:hover,
.flow-actions .flow-btn:hover,
.dashboard-hero .hero-ai-submit:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.content > .section-card-title .section-card-actions .button.secondary,
.content > .section-card-title .section-card-actions .button.compact.secondary,
.content > .page-title > .button.secondary,
.process-hero-actions .action-chip.view,
.process-hero-actions .action-chip.edit,
.flow-actions .flow-btn.secondary {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .11);
    color: #fff;
}

.count-pill {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .86);
    font-size: 11px;
    font-weight: 900;
}

.dashboard-hero .hero-ai-box {
    align-self: flex-start;
    max-width: 780px;
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 9px;
    background: rgba(255, 255, 255, .09);
    box-shadow: none;
}

.dashboard-hero .hero-ai-label {
    color: rgba(255, 255, 255, .88);
}

.dashboard-hero .hero-ai-pill {
    min-height: 27px;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.dashboard-hero .hero-ai-badge {
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.cliente-ia-header.ia-interna-header {
    margin-bottom: 12px;
}

.cliente-ia-header-inner {
    width: 100%;
}

.cliente-ia-orb-wrap {
    display: none;
}

.process-hero {
    align-items: center;
}

.process-hero-meta strong,
.process-hero-meta .badge {
    color: #fff;
}

.process-hero-meta .badge {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .14);
}

.process-hero-actions {
    min-width: 0;
}

.process-hero-actions .action-chip {
    height: 31px;
    margin: 0;
}

.process-hero-actions .action-chip.journey {
    border-color: rgba(92, 228, 255, .34);
    background: rgba(92, 228, 255, .18);
}

@media (max-width: 760px) {
    .content > .section-card-title,
    .content > .page-title,
    .process-hero,
    .pend-header,
    .jg-header,
    .cfg-header,
    .flow-header,
    .dashboard-hero,
    .cliente-ia-header.ia-interna-header {
        align-items: stretch;
        flex-direction: column;
        margin-right: -10px;
        margin-left: -10px;
        padding: 16px;
    }

    .content.dashboard-home .dashboard-hero {
        margin-right: -10px;
        margin-left: -10px;
    }

    .section-card-actions,
    .process-hero-actions,
    .flow-actions {
        justify-content: flex-start;
    }
}

/* Executive dashboard header */
.content.dashboard-home {
    padding: 10px 10px 14px;
}

.content.dashboard-home .dashboard-main {
    width: 100%;
    max-width: none;
    gap: 8px;
}

.content > .page-title {
    margin: -14px -18px 12px;
}

.content.dashboard-home .dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: auto;
    max-width: none;
    margin: -10px -10px 0;
    padding: 18px 24px 20px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #30267a 58%, #4b1d8f 100%);
    color: #fff;
    box-shadow: none;
}

.content.dashboard-home .hero-heading {
    display: grid;
    gap: 2px;
}

.content.dashboard-home .hero-heading .eyebrow {
    margin: 0 0 4px;
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
}

.content.dashboard-home .hero-heading h1 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.content.dashboard-home .hero-heading p {
    max-width: 980px;
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.dashboard-command-panel {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
}

.content.dashboard-home .dashboard-command-panel .hero-ai-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #dbe5eb;
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
}

.content.dashboard-home .dashboard-command-panel .hero-ai-badge {
    width: 30px;
    height: 30px;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 900;
}

.content.dashboard-home .dashboard-command-panel .hero-ai-label {
    margin-bottom: 4px;
    color: #17202a;
    font-size: 13px;
    font-weight: 800;
}

.content.dashboard-home .dashboard-command-panel .hero-ai-pill {
    min-height: 27px;
    height: 27px;
    border-color: #d7dff0;
    background: #f7f8ff;
    color: #3157c8;
    font-size: 11px;
}

.content.dashboard-home .dashboard-command-panel .hero-ai-submit {
    min-width: 34px;
    min-height: 31px;
    padding: 0 13px;
    border: 1px solid #d7dff0;
    border-radius: 7px;
    background: #f7f8ff;
    color: #3157c8;
    font-size: 14px;
}

.content.dashboard-home .dashboard-command-panel .hero-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: none;
    margin-top: 0;
}

.content.dashboard-home .dashboard-command-panel .hero-card {
    border-color: #e1e8f0;
    background: #fff;
    box-shadow: none;
}

@media (max-width: 980px) {
    .content.dashboard-home .dashboard-command-panel .hero-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .content.dashboard-home .dashboard-hero {
        flex-direction: column;
        margin-right: -10px;
        margin-left: -10px;
        padding: 16px;
    }

    .content.dashboard-home .dashboard-command-panel .hero-ai-box {
        align-items: stretch;
        flex-direction: column;
    }

    .content.dashboard-home .dashboard-command-panel .hero-cards {
        grid-template-columns: 1fr;
    }
}

/* Aivios blue action palette */
.content > .section-card-title .count-pill,
.content > .page-title .count-pill,
.cadastro-content .section-card-title .count-pill,
.processos-list-content .section-card-title .count-pill,
.compact-page .section-card-title .count-pill {
    border: 1px solid rgba(255, 255, 255, .30);
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .86);
}

.module-actions a.active,
.cadastro-content .module-actions a.active,
.tabs a.active,
.pend-tab.active {
    border-color: #3157c8;
    background: #3157c8;
    color: #fff;
}

.tabs a.active {
    background: transparent;
    color: #3157c8;
}

.hero-card-change.positive,
.dashboard-home .hero-card-change.positive,
.jg-stat.green .jg-stat-val,
.bi-positive,
.bi-kpi.accent-green .bi-kpi-val {
    color: #3157c8;
}

.rel-notice,
.pend-alert.ok,
.cfg-alert-success,
.flow-alert.ok,
.jn-notice {
    border-color: #86efac !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
    overflow: hidden;
    animation: flashOut 0.45s ease 4s forwards;
}

.risk-label,
.risk-label.ok,
.bi-badge-status.pago,
.jg-status.andamento,
.iai-proc-status.andamento,
.jn-pill.done {
    background: #e8f3ff !important;
    color: #146c94 !important;
}

.jg-stage-badge.done,
.jn-item.checked {
    border-color: #b7c7ff !important;
    background: #eef4ff !important;
    color: #3157c8 !important;
}

.jn-item.checked .jn-item-box {
    border-color: #3157c8 !important;
    background: #3157c8 !important;
}

.bi-kpi.accent-green {
    border-left-color: #147da8;
}

.bi-tab-financeiro::before {
    background: #147da8;
}

.bi-card::before {
    background: linear-gradient(90deg, #3157c8, #67c7e7, #d27b21);
}

.bi-kpi.accent-green::after,
.process-journey-progress::-webkit-progress-value,
.process-journey-progress::-moz-progress-bar,
.jg-progress::-webkit-progress-value,
.jg-progress::-moz-progress-bar,
.bi-rank-progress::-webkit-progress-value,
.bi-rank-progress::-moz-progress-bar,
.jn-progress-bar-inner {
    background: linear-gradient(90deg, #3157c8, #67c7e7) !important;
}

/* Unified operational page headers */
.content:has(> .cfg-page),
.content.flow-page {
    padding: 10px 10px 14px;
}

.content > .cfg-page {
    padding: 0 0 24px;
}

.content > .cfg-page .cfg-header,
.content.flow-page .flow-header,
.rel-main .rel-tpl-hdr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: -10px -10px 12px;
    padding: 18px 24px 20px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #30267a 58%, #4b1d8f 100%);
    color: #fff;
    box-shadow: none;
}

.rel-main .rel-tpl-hdr {
    margin: -12px -16px 12px;
}

.content > .cfg-page .cfg-header > div:first-child,
.content.flow-page .flow-header > div:first-child,
.rel-main .rel-tpl-hdr > div:first-child {
    min-width: 0;
}

.content > .cfg-page .cfg-header .eyebrow,
.content.flow-page .flow-header .eyebrow,
.rel-main .rel-current-category {
    display: inline-flex;
    margin: 0 0 6px;
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
}

.content > .cfg-page .cfg-header h1,
.content.flow-page .flow-header h1,
.rel-main .rel-tpl-hdr h1 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.content > .cfg-page .cfg-header p,
.content.flow-page .flow-header p {
    max-width: 980px;
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.rel-main .rel-btn-new,
.content.flow-page .flow-actions .flow-btn {
    min-height: 31px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 7px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
}

.rel-main .rel-btn-new:hover,
.content.flow-page .flow-actions .flow-btn:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.content.flow-page .flow-actions .flow-btn.secondary {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .11);
}

@media (max-width: 760px) {
    .content > .cfg-page .cfg-header,
    .content.flow-page .flow-header,
    .rel-main .rel-tpl-hdr {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }
}

/* Compact headers: remove explanatory subtitles */
.content > .section-card-title > div:first-child > .muted,
.content > .page-title > div:first-child > .muted,
.content.dashboard-home .hero-heading > .muted,
.pend-header > div:first-child > p,
.jg-header > div:first-child > p,
.content > .cfg-page .cfg-header > div:first-child > p,
.content.flow-page .flow-header > div:first-child > p,
.cliente-ia-header .cliente-ia-header-inner > div:last-child > .muted {
    display: none;
}

/* AIVIOS design system foundation */
:root {
    --bg: #f3f6fa;
    --panel: #ffffff;
    --text: #17202a;
    --muted: #637184;
    --line: #d7e0ea;
    --form-bg: #fbfdff;
    --card-border: #d7e0ea;
    --card-soft: #f7f9fc;
    --brand-ink: #1e1b4b;
    --brand-royal: #3157c8;
    --brand-blue: #2563eb;
    --brand-cyan: #67c7e7;
    --brand-violet: #4b1d8f;
    --brand-start: #3157c8;
    --brand-end: #67c7e7;
    --primary: #3157c8;
    --primary-dark: #243f99;
    --focus-ring: rgba(49, 87, 200, .16);
    --shadow-soft: 0 8px 22px rgba(23, 32, 42, .045);
    --danger-bg: #fff1f1;
    --danger: #a12a2a;
    --warning-bg: #fff7ed;
    --warning: #a95313;
}

body {
    background: var(--bg);
    color: var(--text);
}

a,
.view-all-link,
.jg-link,
.process-journey-link {
    color: var(--brand-royal);
}

a:hover,
.view-all-link:hover,
.jg-link:hover,
.process-journey-link:hover {
    color: var(--primary-dark);
}

label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

input,
select,
textarea {
    border-color: var(--line);
    border-radius: 7px;
    background: var(--form-bg);
    color: var(--text);
}

input,
select {
    height: 34px;
}

textarea {
    min-height: 72px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-royal);
    outline: 3px solid var(--focus-ring);
}

.panel,
.card,
.recent-cases-panel,
.agenda-panel,
.bi-card,
.flow-stage,
.cfg-table-wrap,
.dashboard-command-panel .hero-ai-box,
.dashboard-command-panel .hero-card {
    border-color: var(--card-border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.panel::before,
.bi-card::before {
    background: linear-gradient(90deg, var(--brand-royal), var(--brand-cyan));
}

.filters-panel,
.agenda-filter-panel,
.finance-create-panel,
.finance-list-panel,
.process-list-panel {
    border-top-color: var(--brand-cyan);
}

.button,
button[type="submit"]:not(.danger-button):not(.filter-icon-button):not(.pend-btn):not(.jn-mini-btn),
.cfg-save-btn,
.flow-btn,
.rel-btn-save,
.rel-btn-new,
.iai-send-btn,
.cliente-ia-send-btn,
.chat-send-btn,
.jn-save-btn,
.filter-icon-button,
.jg-filter-btn,
.jg-view-btn.active,
.module-actions a.active,
.cadastro-content .module-actions a.active,
.pend-tab.active {
    border-color: var(--brand-royal);
    background: linear-gradient(135deg, var(--brand-royal), var(--brand-cyan));
    color: #fff;
    box-shadow: none;
}

.button:hover,
button[type="submit"]:not(.danger-button):not(.filter-icon-button):not(.pend-btn):not(.jn-mini-btn):hover,
.cfg-save-btn:hover,
.flow-btn:hover,
.rel-btn-save:hover,
.rel-btn-new:hover,
.iai-send-btn:hover,
.cliente-ia-send-btn:hover,
.chat-send-btn:hover,
.jn-save-btn:hover,
.filter-icon-button:hover,
.jg-filter-btn:hover,
.jg-view-btn.active:hover,
.module-actions a.active:hover,
.cadastro-content .module-actions a.active:hover,
.pend-tab.active:hover {
    border-color: var(--primary-dark);
    background: linear-gradient(135deg, var(--primary-dark), #3f8ed3);
    color: #fff;
}

.button.secondary,
.button.compact.secondary,
.cfg-mark-btn,
.flow-btn.secondary,
.rel-btn-new,
.rel-btn-print,
.jg-view-btn,
.pend-btn.light,
.jn-nav-btn,
.action-chip.edit,
.action-chip.view,
.filter-icon-button.button.secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}

.button.secondary:hover,
.button.compact.secondary:hover,
.cfg-mark-btn:hover,
.flow-btn.secondary:hover,
.rel-btn-new:hover,
.rel-btn-print:hover,
.jg-view-btn:hover,
.pend-btn.light:hover,
.jn-nav-btn:hover,
.action-chip.edit:hover,
.action-chip.view:hover,
.filter-icon-button.button.secondary:hover {
    border-color: #b9c8d8;
    background: #f6f9fc;
    color: var(--text);
}

.danger-button,
.cfg-clear-btn,
.action-chip.danger,
.danger-link {
    border-color: #efb7b7;
    background: var(--danger-bg);
    color: var(--danger);
}

.danger-button:hover,
.cfg-clear-btn:hover,
.action-chip.danger:hover,
.danger-link:hover {
    background: #ffe4e4;
    color: var(--danger);
}

.badge,
.status-pill,
.pend-badge,
.jg-status,
.bi-badge-status,
.cliente-processo-status,
.iai-proc-status,
.cfg-tipo-badge,
.risk-label {
    border: 0;
    background: #e8f3ff;
    color: #146c94;
    font-weight: 900;
}

.badge.attention,
.pend-badge.warn,
.status-pill.warning,
.jg-status.pausado,
.cliente-processo-status.pausado,
.iai-proc-status.pausado,
.bi-badge-status.aberto {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge.inactive,
.jg-status.encerrado,
.cliente-processo-status.encerrado,
.bi-badge-status.vencido,
.risk-label.danger {
    background: #f3f5f8;
    color: #5d6878;
}

.risk-label.warn {
    background: var(--warning-bg);
    color: var(--warning);
}

table,
.compact-table,
.process-table,
.jg-table,
.cfg-table,
.flow-table,
.bi-table {
    border-color: var(--line);
}

th,
.compact-table th,
.process-table th,
.jg-table thead th,
.cfg-table th,
.flow-table th,
.bi-table th {
    color: var(--muted);
    background: #fbfdff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
}

td,
.compact-table td,
.process-table td,
.jg-table td,
.cfg-table td,
.flow-table td,
.bi-table td {
    border-color: #e4eaf1;
}

.module-actions a,
.tabs a,
.pend-tab,
.hero-ai-pill,
.action-chip,
.rel-action-sm {
    border-color: var(--line);
    color: var(--text);
}

.tabs a.active {
    border-color: var(--brand-royal);
    background: transparent;
    color: var(--brand-royal);
}

.menu-link.active,
.sidebar.collapsed .menu-link.active {
    background: rgba(49, 87, 200, .18);
}

.menu-link.active::before {
    background: var(--brand-cyan);
}

/* Header action buttons keep the operational header treatment */
.content > .section-card-title .section-card-actions .button,
.content > .section-card-title .section-card-actions .button.compact,
.content > .page-title > .button,
.process-hero-actions .action-chip,
.content.flow-page .flow-actions .flow-btn,
.rel-main .rel-tpl-hdr .rel-btn-new {
    border: 1px solid rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.content > .section-card-title .section-card-actions .button:hover,
.content > .page-title > .button:hover,
.process-hero-actions .action-chip:hover,
.content.flow-page .flow-actions .flow-btn:hover,
.rel-main .rel-tpl-hdr .rel-btn-new:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.content > .section-card-title .section-card-actions .button.secondary,
.content > .section-card-title .section-card-actions .button.compact.secondary,
.content > .page-title > .button.secondary,
.process-hero-actions .action-chip.view,
.process-hero-actions .action-chip.edit,
.content.flow-page .flow-actions .flow-btn.secondary {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .11);
    color: #fff;
}

/* Dashboard management stream */
.dashboard-home .dashboard-critical-panel {
    padding: 10px 12px;
}

.dashboard-home .dashboard-critical-panel .section-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.dashboard-home .dashboard-critical-panel .section-card-title h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.15;
}

.dashboard-critical-table {
    overflow-x: auto;
}

.dashboard-critical-table table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-critical-table th {
    padding: 6px 8px;
    border-bottom: 1px solid #dfe7ef;
    color: #637184;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .03em;
    text-align: left;
    text-transform: uppercase;
}

.dashboard-critical-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #edf2f7;
    color: #17202a;
    font-size: 12px;
    vertical-align: middle;
}

.dashboard-critical-table tr:last-child td {
    border-bottom: 0;
}

.dashboard-critical-table a {
    color: #17202a;
    font-weight: 900;
    text-decoration: none;
}

.dashboard-critical-empty {
    padding: 12px;
    border: 1px dashed #d7e0ea;
    border-radius: 7px;
    color: #637184;
    font-size: 12px;
    text-align: center;
}

/* Dashboard activity stream compact density */
.dashboard-home .card.activity-panel {
    padding: 10px 12px;
}

.dashboard-home .card.activity-panel .section-card-title {
    margin-bottom: 8px;
}

.dashboard-home .card.activity-panel .section-card-title .eyebrow {
    margin-bottom: 4px;
    font-size: 10px;
}

.dashboard-home .card.activity-panel .section-card-title h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.15;
}

.dashboard-home .activity-list {
    gap: 6px;
}

.dashboard-home .activity-item {
    grid-template-columns: minmax(220px, 1.25fr) minmax(180px, 1fr) minmax(180px, .85fr);
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 8px 10px;
    border-radius: 7px;
    box-shadow: none;
}

.dashboard-home .activity-item strong {
    font-size: 12px;
    line-height: 1.2;
}

.dashboard-home .activity-item p,
.dashboard-home .activity-item small {
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
}

.dashboard-home .activity-item small {
    text-align: right;
}

@media (max-width: 900px) {
    .dashboard-home .activity-item {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .dashboard-home .activity-item small {
        text-align: left;
    }
}

/* Admin AIVIOS owner area */
.admin-aivios-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
    padding: 16px 18px;
    border: 1px solid #cfe1db;
    border-left: 4px solid #1c8f72;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fbf9 0%, #edf7f3 100%);
    box-shadow: none;
}

.admin-aivios-header-main {
    min-width: 0;
}

.admin-aivios-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-bottom: 7px;
    padding: 0 9px;
    border-radius: 999px;
    background: #dff4ec;
    color: #166b57;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-aivios-header h1 {
    margin: 0 0 5px;
    color: #14251f;
    font-size: 25px;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: 0;
}

.admin-aivios-header p {
    max-width: 860px;
    margin: 0;
    color: #566b65;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.admin-aivios-header-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 170px;
    color: #526b64;
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}

.admin-aivios-header-meta strong {
    color: #14251f;
    font-size: 13px;
    font-weight: 950;
}

.admin-aivios-header-meta small {
    color: #71847e;
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 760px) {
    .admin-aivios-header {
        flex-direction: column;
        padding: 14px;
    }

    .admin-aivios-header-meta {
        align-items: flex-start;
        min-width: 0;
        text-align: left;
    }
}
