:root {
    --navy: #17243d;
    --navy-soft: #223452;
    --blue: #315fdd;
    --blue-soft: #edf2ff;
    --ink: #1d2939;
    --muted: #667085;
    --line: #e5e9f0;
    --surface: #ffffff;
    --background: #f5f7fa;
    --green: #198754;
    --shadow: 0 10px 30px rgba(23, 36, 61, .07);
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; color: var(--ink); background: var(--background); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.app-shell { min-height: 100vh; display: flex; }

.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 244px; padding: 28px 18px 20px; display: flex; flex-direction: column; background: var(--navy); color: #fff; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 30px; color: inherit; text-decoration: none; }
.brand-mark { width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center; background: #5277e8; font: 800 20px Manrope, sans-serif; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 17px Manrope, sans-serif; letter-spacing: -.2px; }
.brand small { margin-top: 2px; color: #9facbf; font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px; }
.nav-label { margin: 0 12px 10px; color: #8290a8; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.main-nav { flex: 1; }
.nav-item { min-height: 46px; margin-bottom: 5px; padding: 0 12px; border-radius: 10px; display: flex; gap: 10px; align-items: center; color: #b9c4d5; text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-item.active { background: rgba(87, 121, 224, .19); color: #fff; }
.nav-item.disabled { cursor: default; opacity: .64; }
.nav-item small { margin-left: auto; font-size: 9px; color: #8090a9; }
.nav-icon { width: 21px; text-align: center; font-size: 18px; }
.nav-count { margin-left: auto; min-width: 24px; padding: 3px 7px; border-radius: 12px; text-align: center; color: #dce5ff; background: rgba(82,119,232,.28); font-size: 11px; }
.sidebar-footer { padding: 18px 8px 0; border-top: 1px solid rgba(255,255,255,.09); display: flex; gap: 10px; align-items: center; }
.sidebar-footer .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #2c4061; color: #dce5f4; font-size: 11px; font-weight: 700; }
.sidebar-footer strong, .sidebar-footer small { display: block; }
.sidebar-footer strong { font-size: 12px; }
.sidebar-footer small { margin-top: 3px; color: #8796ad; font-size: 10px; }
.user-summary { min-width: 0; flex: 1; }
.user-summary strong, .user-summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout-button { width: 30px; height: 30px; border: 0; border-radius: 8px; color: #aab6c8; background: rgba(255,255,255,.07); cursor: pointer; }
.logout-button:hover { color: #fff; background: rgba(255,255,255,.13); }

.main-content { width: calc(100% - 244px); margin-left: 244px; }
.topbar { height: 68px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(10px); }
.breadcrumb { display: flex; gap: 9px; align-items: center; font-size: 13px; }
.breadcrumb span, .breadcrumb b { color: #98a2b3; font-weight: 500; }
.breadcrumb strong { font-weight: 600; }
.sync-status { display: flex; gap: 8px; align-items: center; color: #5d6b80; font-size: 12px; font-weight: 500; }
.sync-status i { width: 8px; height: 8px; border-radius: 50%; background: #33b474; box-shadow: 0 0 0 4px #e3f5ec; }
.menu-button { display: none; border: 0; background: none; font-size: 20px; }
.content-wrap { max-width: 1480px; margin: 0 auto; padding: 38px 42px 50px; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; }
.eyebrow { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 1.6px; }
h1 { margin: 7px 0 7px; font: 800 30px/1.2 Manrope, sans-serif; letter-spacing: -.8px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.metric-card { min-width: 188px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 12px; align-items: center; background: var(--surface); box-shadow: 0 3px 12px rgba(23,36,61,.03); }
.metric-icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 19px; font-weight: 700; }
.metric-card strong, .metric-card small { display: block; }
.metric-card strong { font: 800 21px Manrope, sans-serif; }
.metric-card small { color: var(--muted); font-size: 10px; }

.filters { margin: 30px 0 24px; display: flex; gap: 10px; align-items: stretch; }
.search-field { width: min(480px, 50%); height: 43px; padding: 0 13px; border: 1px solid #dfe4ec; border-radius: 10px; display: flex; gap: 9px; align-items: center; background: #fff; color: #8490a2; box-shadow: 0 1px 2px rgba(0,0,0,.02); }
.search-field:focus-within { border-color: #91a9ef; box-shadow: 0 0 0 3px rgba(49,95,221,.09); }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.select-field { min-width: 178px; padding: 4px 11px; border: 1px solid #dfe4ec; border-radius: 10px; background: #fff; }
.select-field span { display: block; color: #98a2b3; font-size: 9px; }
.select-field select { width: 100%; border: 0; outline: 0; color: #344054; background: transparent; font-size: 12px; font-weight: 600; }
.filter-button { padding: 0 18px; border: 0; border-radius: 10px; color: #fff; background: var(--navy-soft); cursor: pointer; font-size: 12px; font-weight: 700; }
.clear-filter { align-self: center; color: var(--muted); font-size: 12px; }

.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.precatorio-card { min-width: 0; min-height: 279px; padding: 19px 19px 17px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; text-align: left; text-decoration: none; color: var(--ink); background: var(--surface); cursor: pointer; box-shadow: 0 2px 4px rgba(23,36,61,.02); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.precatorio-card:hover { transform: translateY(-3px); border-color: #cbd5ed; box-shadow: var(--shadow); }
.precatorio-card:focus-visible { outline: 3px solid rgba(49,95,221,.2); outline-offset: 2px; }
.precatorio-card-body { min-height: 210px; display: block; color: inherit; text-decoration: none; }
.card-topline, .card-footer { display: flex; justify-content: space-between; align-items: center; }
.court-badge { padding: 4px 8px; border-radius: 6px; color: #284ebc; background: var(--blue-soft); font-size: 10px; font-weight: 800; letter-spacing: .4px; }
.date { color: #8b96a8; font-size: 11px; }
.process-label { margin-top: 20px; color: #98a2b3; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.process-number { margin-top: 4px; font: 700 15px Manrope, sans-serif; letter-spacing: -.2px; }
.party-block { margin-top: 17px; }
.party-block small, .party-block strong { display: block; }
.party-block small { color: #98a2b3; font-size: 10px; }
.party-block strong { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.organ { margin-top: 12px; display: -webkit-box; overflow: hidden; color: #69768a; font-size: 11px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid #eff1f5; }
.class-badge { max-width: 48%; overflow: hidden; color: #67748a; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.view-link { color: var(--blue); font-size: 11px; font-weight: 700; }
.view-link b { margin-left: 4px; font-size: 15px; }
.card-actions { display: flex; gap: 8px; align-items: center; }
.card-qualify-button { height: 29px; padding: 0 10px; border: 0; border-radius: 7px; color: #fff; background: var(--blue); cursor: pointer; font-size: 9px; font-weight: 800; }
.card-qualify-button:hover { background: #284fbd; }

.drawer { position: fixed; z-index: 50; inset: 0; visibility: hidden; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(13,22,38,.47); opacity: 0; transition: opacity .25s; }
.drawer-panel { position: absolute; inset: 0 0 0 auto; width: min(610px, 92vw); display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 60px rgba(12,24,45,.18); transform: translateX(100%); transition: transform .28s ease; }
.drawer.open { visibility: visible; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-open { overflow: hidden; }
.drawer-header { padding: 28px 30px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.new-badge { margin-left: 6px; padding: 4px 8px; border-radius: 6px; color: #15744a; background: #e8f7ef; font-size: 10px; font-weight: 700; }
.drawer-header h2 { margin: 14px 0 5px; font: 800 20px Manrope, sans-serif; }
.drawer-header p { margin: 0; color: var(--muted); font-size: 11px; }
.close-button { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 9px; color: #68758a; background: #fff; cursor: pointer; font-size: 22px; }
.drawer-body { flex: 1; padding: 0 30px 26px; overflow-y: auto; }
.detail-section { padding: 25px 0; border-bottom: 1px solid #eceff4; }
.detail-section h3 { margin: 0 0 16px; font: 700 13px Manrope, sans-serif; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 28px; }
.detail-grid .wide { grid-column: 1 / -1; }
.detail-grid small, .detail-grid strong { display: block; }
.detail-grid small, .person-row small { margin-bottom: 4px; color: #98a2b3; font-size: 9px; text-transform: uppercase; letter-spacing: .6px; }
.detail-grid strong { color: #344054; font-size: 12px; line-height: 1.45; }
.person-row { margin-top: 10px; padding: 12px; border: 1px solid #e8ebf0; border-radius: 10px; display: flex; gap: 11px; align-items: center; }
.person-icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #315fdd; background: #edf2ff; font-size: 11px; font-weight: 800; }
.person-icon.lawyer { color: #825a1d; background: #fff5df; }
.person-row strong { display: block; font-size: 11px; }
.person-row em { display: block; margin-top: 3px; color: #758196; font-size: 10px; font-style: normal; }
.publication-text { padding: 18px; border-radius: 10px; color: #46546a; background: #f7f8fa; font-size: 12px; line-height: 1.75; white-space: pre-line; }
.metadata p { margin: 10px 0; display: grid; grid-template-columns: 130px 1fr; align-items: baseline; color: #667085; font-size: 10px; }
.metadata code, .metadata strong { overflow-wrap: anywhere; color: #344054; font-size: 10px; }
.muted { color: var(--muted); font-size: 12px; }
.drawer-footer { padding: 18px 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; background: #fff; }
.source-link { color: var(--blue); font-size: 11px; font-weight: 700; text-decoration: none; }
.source-link.primary { color: var(--navy); }
.drawer-links { display: flex; flex-direction: column; gap: 5px; }
.success-alert { margin-bottom: 22px; padding: 13px 16px; border: 1px solid #b8e1cb; border-radius: 10px; color: #146c43; background: #ecf8f1; font-size: 12px; font-weight: 700; }
.qualification-actions { display: flex; gap: 8px; }
.qualification-actions button, .confirm-action { padding: 9px 14px; border-radius: 8px; cursor: pointer; font-size: 10px; font-weight: 700; }
.discard-action { border: 1px solid #e3a9a9; color: #a93434; background: #fff; }
.qualify-action, .confirm-action { border: 1px solid var(--blue); color: #fff; background: var(--blue); }
.qualification-form { padding: 22px 30px 26px; border-top: 1px solid var(--line); background: #f8faff; }
.qualification-form.hidden { display: none; }
.qualification-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.qualification-heading small { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: 1.3px; }
.qualification-heading h3 { margin: 4px 0 0; font: 700 16px Manrope, sans-serif; }
.qualification-heading button { border: 0; color: #8490a2; background: transparent; cursor: pointer; font-size: 22px; }
.qualification-fields { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qualification-fields label > span:first-child { margin-bottom: 6px; display: block; color: #344054; font-size: 10px; font-weight: 700; }
.qualification-fields input, .qualification-fields select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #d9dfe8; border-radius: 8px; outline: 0; background: #fff; font-size: 12px; }
.qualification-fields input:focus, .qualification-fields select:focus { border-color: #8da6ef; box-shadow: 0 0 0 3px rgba(49,95,221,.09); }
.qualification-fields .wide { grid-column: 1 / -1; }
.money-input { position: relative; display: block; }
.money-input b { position: absolute; top: 50%; left: 11px; color: #8490a2; transform: translateY(-50%); font-size: 10px; }
.money-input input { padding-left: 34px; }
.qualification-errors { margin-top: 12px; color: #b42318; font-size: 11px; }
.confirm-action { width: 100%; height: 42px; margin-top: 16px; }
.empty-state { padding: 90px 20px; border: 1px dashed #d8dee8; border-radius: 14px; text-align: center; background: #fff; }
.empty-state > span { color: #90a3d9; font-size: 34px; }
.empty-state h2 { margin: 12px 0 5px; font: 700 16px Manrope, sans-serif; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.pagination { margin-top: 28px; display: flex; justify-content: center; gap: 28px; align-items: center; font-size: 11px; }
.pagination a { color: var(--blue); font-weight: 700; text-decoration: none; }
.pagination span { color: #adb5c2; }
.pagination small { color: var(--muted); }

.users-wrap { max-width: 1220px; }
.users-layout { margin-top: 30px; display: grid; grid-template-columns: minmax(360px, .8fr) minmax(500px, 1.2fr); gap: 20px; align-items: start; }
.user-form-card, .users-list-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 3px 12px rgba(23,36,61,.03); }
.user-form-card { padding: 25px; }
.user-form-grid { display: grid; gap: 18px; }
.user-form-grid label > span { margin-bottom: 7px; display: block; color: #344054; font-size: 11px; font-weight: 700; }
.user-form-grid input, .user-form-grid select { width: 100%; height: 45px; padding: 0 13px; border: 1px solid #d9dfe8; border-radius: 9px; outline: 0; color: #344054; background: #fff; font-size: 12px; }
.user-form-grid input:focus, .user-form-grid select:focus { border-color: #8da6ef; box-shadow: 0 0 0 3px rgba(49,95,221,.09); }
.user-form-grid label > small { margin-top: 6px; display: block; color: #b42318; font-size: 10px; }
.user-submit { width: 100%; height: 44px; margin-top: 22px; border: 0; border-radius: 9px; color: #fff; background: var(--blue); cursor: pointer; font-size: 11px; font-weight: 800; }
.user-submit:hover { background: #284fbd; }
.users-list-card { overflow: hidden; }
.users-list-card > header { min-height: 73px; padding: 0 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.users-list-card header small { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.users-list-card header h2 { margin: 3px 0 0; font: 800 15px Manrope, sans-serif; }
.users-list-card > header > span { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 15px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 800; }
.users-table-wrap { overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.users-table th { padding: 11px 18px; color: #8490a2; background: #fafbfc; text-align: left; font-size: 8px; letter-spacing: .7px; text-transform: uppercase; }
.users-table td { padding: 15px 18px; border-top: 1px solid #edf0f4; color: #667085; }
.users-table td strong, .users-table td small { display: block; }
.users-table td strong { color: #344054; font-size: 11px; }
.users-table td small { margin-top: 3px; color: #8a96a8; font-size: 9px; }
.role-badge { padding: 5px 8px; border-radius: 10px; color: #445167; background: #eef1f5; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.role-admin { color: #284ebc; background: #edf2ff; }
.role-gerente { color: #765314; background: #fff3cc; }
.role-comprador { color: #15744a; background: #e8f7ef; }

.version-badge { padding: 5px 9px; border: 1px solid #d7dff4; border-radius: 7px; color: var(--blue); background: #f5f7ff; font-size: 10px; font-weight: 800; letter-spacing: .7px; }
.pathways-wrap { max-width: 1280px; }
.pathways-heading { padding: 18px 0 12px; }
.pathways-heading h1 { font-size: 34px; }
.pathways-grid { margin-top: 42px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; }
.pathways-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pathway-card { position: relative; min-height: 330px; padding: 27px 26px 24px; border: 1px solid var(--line); border-radius: 17px; display: flex; flex-direction: column; overflow: hidden; color: var(--ink); background: #fff; text-decoration: none; box-shadow: 0 3px 10px rgba(23,36,61,.025); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.pathway-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -95px; bottom: -105px; border-radius: 50%; background: var(--pathway-soft); opacity: .65; transition: transform .25s ease; }
.pathway-card:hover, .pathway-card.selected { transform: translateY(-4px); border-color: var(--pathway-color); box-shadow: 0 16px 38px rgba(23,36,61,.1); }
.pathway-card:hover::after, .pathway-card.selected::after { transform: scale(1.25); }
.pathway-card.municipal { --pathway-color: #2c8c6a; --pathway-soft: #e5f5ef; }
.pathway-card.estadual { --pathway-color: #315fdd; --pathway-soft: #e7edff; }
.pathway-card.federal { --pathway-color: #8a5bca; --pathway-soft: #f0e8fa; }
.pathway-card.unidentified { --pathway-color: #b06b2c; --pathway-soft: #fff0df; }
.pathway-number { position: absolute; top: 24px; right: 25px; color: #c4cbd6; font: 700 11px Manrope, sans-serif; letter-spacing: 1px; }
.pathway-icon { width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; color: var(--pathway-color); background: var(--pathway-soft); }
.pathway-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pathway-copy { margin-top: 46px; display: block; }
.pathway-copy small, .pathway-copy strong, .pathway-copy span { display: block; }
.pathway-copy small { color: var(--pathway-color); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.pathway-copy strong { margin-top: 6px; font: 800 24px Manrope, sans-serif; letter-spacing: -.6px; }
.pathway-copy span { max-width: 280px; margin-top: 11px; color: #6e7b8f; font-size: 12px; line-height: 1.6; }
.pathway-arrow { position: relative; z-index: 1; width: 35px; height: 35px; margin-top: auto; border: 1px solid #e1e5eb; border-radius: 50%; display: grid; place-items: center; color: var(--pathway-color); background: #fff; font-size: 17px; transition: color .2s ease, background .2s ease, transform .2s ease; }
.pathway-card:hover .pathway-arrow, .pathway-card.selected .pathway-arrow { color: #fff; background: var(--pathway-color); transform: translateX(3px); }
.pathway-placeholder { margin-top: 24px; padding: 20px 24px; border: 1px solid #dfe4ec; border-radius: 13px; display: flex; gap: 15px; align-items: center; background: #fff; animation: pathway-in .25s ease both; }
.placeholder-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.pathway-placeholder small { color: #98a2b3; font-size: 8px; font-weight: 800; letter-spacing: 1.2px; }
.pathway-placeholder h2 { margin: 2px 0; font: 700 15px Manrope, sans-serif; }
.pathway-placeholder p { margin: 0; color: var(--muted); font-size: 11px; }
@keyframes pathway-in { from { opacity: 0; transform: translateY(6px); } }
.location-section { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); animation: pathway-in .25s ease both; }
.location-heading { margin-bottom: 18px; display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.location-heading small { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: 1.3px; }
.location-heading h2 { margin: 5px 0 0; font: 800 20px Manrope, sans-serif; letter-spacing: -.4px; }
.location-heading > span { color: #8a96a8; font-size: 10px; }
.location-warning { margin-bottom: 14px; padding: 13px 15px; border: 1px solid #efd49b; border-radius: 9px; color: #765314; background: #fff9eb; font-size: 11px; }
.location-warning code { font-weight: 700; }
.states-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.state-link { min-height: 61px; padding: 10px 13px; border: 1px solid #e1e5eb; border-radius: 10px; display: flex; gap: 11px; align-items: center; color: var(--ink); background: #fff; text-decoration: none; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.state-link:hover { transform: translateY(-2px); border-color: #aebdeb; box-shadow: 0 7px 18px rgba(23,36,61,.06); }
.state-uf { flex: 0 0 auto; width: 35px; height: 35px; border-radius: 8px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 800; }
.state-link strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.state-arrow { margin-left: auto; color: #91a0b5; font-size: 15px; }
.municipal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; align-items: start; }
.municipal-state { border: 1px solid #e1e5eb; border-radius: 11px; background: #fff; overflow: hidden; }
.municipal-state[open] { border-color: #b7c4e9; box-shadow: 0 8px 22px rgba(23,36,61,.055); }
.municipal-state summary { min-height: 63px; padding: 10px 13px; display: flex; gap: 11px; align-items: center; cursor: pointer; list-style: none; }
.municipal-state summary::-webkit-details-marker { display: none; }
.municipal-state summary strong { font-size: 11px; }
.municipal-status { margin-left: auto; color: #8a96a8; font-size: 9px; }
.summary-chevron { color: var(--blue); font-size: 16px; transition: transform .18s ease; }
.municipal-state[open] .summary-chevron { transform: rotate(180deg); }
.municipality-picker { padding: 15px; border-top: 1px solid #edf0f4; background: #fafbfc; }
.municipality-picker label { margin-bottom: 6px; display: block; color: #536176; font-size: 9px; font-weight: 700; }
.municipality-control { display: flex; gap: 8px; }
.municipality-control select { min-width: 0; height: 42px; flex: 1; padding: 0 9px; border: 1px solid #d8dee8; border-radius: 8px; outline: 0; color: #344054; background: #fff; font-size: 11px; }
.municipality-control select:focus { border-color: #8da6ef; box-shadow: 0 0 0 3px rgba(49,95,221,.08); }
.municipality-control button { min-width: 125px; padding: 0 12px; border: 0; border-radius: 8px; color: #fff; background: var(--blue); cursor: pointer; font-size: 9px; font-weight: 700; }
.municipality-control button:disabled { color: #98a2b3; background: #e9edf3; cursor: not-allowed; }
.municipality-picker p { margin: 8px 0 0; color: #8a96a8; font-size: 9px; }
.back-link { display: inline-flex; margin-bottom: 25px; color: var(--blue); font-size: 11px; font-weight: 700; text-decoration: none; }
.process-list-heading { padding-bottom: 28px; }
.process-empty { margin-top: 12px; }
.location-processes { margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.kanban-feedback { position: fixed; z-index: 60; right: 24px; bottom: 24px; padding: 10px 14px; border: 1px solid #b8e1cb; border-radius: 9px; color: #146c43; background: #ecf8f1; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s, transform .18s; font-size: 10px; font-weight: 700; }
.kanban-feedback.visible { opacity: 1; transform: translateY(0); }
.kanban-feedback.error { border-color: #f3c6c6; color: #a93434; background: #fff2f2; }
.kanban-board { margin: 8px -8px 0; padding: 8px 8px 22px; display: flex; gap: 13px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #c8d0dc transparent; }
.kanban-column { --kanban-color: #315fdd; flex: 0 0 275px; min-height: 420px; border: 1px solid #e1e6ed; border-radius: 13px; background: #f0f2f6; transition: border-color .15s, background .15s; }
.kanban-column.drag-over { border-color: color-mix(in srgb, var(--kanban-color) 55%, white); background: color-mix(in srgb, var(--kanban-color) 5%, #f0f2f6); }
.kanban-column.status-tentativa-contato-2 { --kanban-color: #b57a17; }
.kanban-column.status-nao-encontrado, .kanban-column.status-sem-interesse { --kanban-color: #bd5050; }
.kanban-column.status-contato-iniciado { --kanban-color: #2473b8; }
.kanban-column.status-fechado { --kanban-color: #5e6d83; }
.kanban-column.status-negociando { --kanban-color: #8059bd; }
.kanban-column.status-vendido { --kanban-color: #238b61; }
.kanban-column-header { min-height: 52px; padding: 0 13px; display: flex; gap: 8px; align-items: center; }
.kanban-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--kanban-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kanban-color) 13%, transparent); }
.kanban-column-header h2 { min-width: 0; margin: 0; flex: 1; color: #3e4b5e; font: 800 10px Manrope, sans-serif; text-transform: uppercase; letter-spacing: .25px; }
.kanban-count { min-width: 23px; height: 23px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center; color: #657287; background: #fff; font-size: 9px; font-weight: 800; }
.kanban-cards { min-height: 365px; padding: 0 9px 10px; }
.kanban-card { margin-bottom: 9px; padding: 13px; border: 1px solid #dfe4eb; border-radius: 10px; background: #fff; box-shadow: 0 2px 5px rgba(23,36,61,.04); cursor: grab; transition: opacity .15s, transform .15s, box-shadow .15s; }
.kanban-card:hover { box-shadow: 0 7px 18px rgba(23,36,61,.09); transform: translateY(-1px); }
.kanban-card.dragging { opacity: .42; cursor: grabbing; }
.kanban-card.saving { opacity: .68; }
.kanban-card-topline { display: flex; justify-content: space-between; align-items: center; }
.kanban-drag-handle { color: #a5afbd; font-size: 12px; line-height: 1; letter-spacing: -5px; }
.kanban-card > small, .kanban-person small { display: block; color: #98a2b3; font-size: 7px; font-weight: 800; letter-spacing: .7px; }
.kanban-card > small { margin-top: 13px; }
.kanban-card > a { margin-top: 4px; display: block; overflow-wrap: anywhere; color: #26364e; font: 800 11px/1.45 Manrope, sans-serif; text-decoration: none; }
.kanban-card > a:hover { color: var(--blue); }
.kanban-person { margin-top: 12px; }
.kanban-person strong { margin-top: 3px; display: block; overflow: hidden; color: #435066; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.kanban-card > p { min-height: 27px; margin: 9px 0 11px; display: -webkit-box; overflow: hidden; color: #7b8799; font-size: 8px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kanban-card footer { padding-top: 10px; border-top: 1px solid #edf0f4; display: flex; gap: 8px; align-items: center; }
.kanban-card time { flex: 1; color: #8995a7; font-size: 8px; }
.kanban-card select { width: 29px; height: 25px; border: 1px solid #dce2ea; border-radius: 7px; color: transparent; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%236b778c' stroke-width='1.5'/%3E%3C/svg%3E") center/10px 6px no-repeat; cursor: pointer; appearance: none; }
.kanban-card select option { color: #344054; }
.kanban-empty { min-height: 70px; padding: 20px 12px; border: 1px dashed #cfd6e1; border-radius: 9px; display: grid; place-items: center; color: #9aa5b4; text-align: center; font-size: 8px; }
.kanban-empty[hidden] { display: none; }

.breadcrumb a { color: #98a2b3; text-decoration: none; }
.autosave-label { color: #8490a2; font-size: 10px; }
.process-page { background: #f7f8fa; }
.process-content { max-width: 1520px; margin: 0 auto; padding: 28px 34px 55px; }
.process-hero, .pipeline-card, .cedent-card, .process-main-panel { border: 1px solid #e0e5ec; border-radius: 13px; background: #fff; box-shadow: 0 2px 6px rgba(23,36,61,.025); }
.process-hero { min-height: 112px; padding: 23px 26px; display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.process-title-line { display: flex; gap: 11px; align-items: center; }
.process-title-line h1 { margin: 0; font-size: 22px; text-transform: uppercase; }
.stage-badge { padding: 5px 9px; border-radius: 7px; color: #3f5d8a; background: #edf1f7; font-size: 9px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.stage-contato { color: #80600b; background: #fff4cf; }
.stage-negociacao { color: #17754d; background: #e8f7ef; }
.stage-descartado { color: #a13d3d; background: #fff0f0; }
.process-hero > div > p { margin: 13px 0 0; display: flex; gap: 10px; align-items: center; color: #68768b; font-size: 11px; font-weight: 600; }
.process-hero > div > p strong { color: #56657a; }
.process-hero > div > p span { width: 1px; height: 13px; background: #dce1e9; }
.process-hero-actions { display: flex; gap: 8px; align-items: center; }
.process-hero-actions button { min-height: 38px; padding: 0 13px; border-radius: 8px; cursor: pointer; font-size: 10px; font-weight: 700; }
.process-hero-actions a { min-height: 38px; padding: 0 13px; border-radius: 8px; display: inline-flex; align-items: center; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 700; text-decoration: none; }
.process-hero-actions .outline-action { border: 1px solid #dce1e9; color: #59677b; background: #fff; }
.process-qualification-form { margin-top: 15px; border: 1px solid #dce3ef; border-radius: 13px; box-shadow: 0 3px 12px rgba(23,36,61,.03); }
.tasks-card { margin-top: 15px; border: 1px solid #e0e5ec; border-radius: 13px; background: #fff; box-shadow: 0 2px 6px rgba(23,36,61,.025); overflow: hidden; }
.tasks-card summary { min-height: 70px; padding: 13px 22px; display: flex; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.tasks-card summary::-webkit-details-marker { display: none; }
.tasks-summary-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #b27612; background: #fff4d5; font-size: 13px; font-weight: 800; }
.tasks-card summary > span:nth-child(2) { flex: 1; }
.tasks-card summary small, .tasks-card summary strong { display: block; }
.tasks-card summary small { color: #7c899c; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.tasks-card summary strong { margin-top: 4px; color: #344054; font-size: 11px; }
.tasks-count { min-width: 25px; height: 25px; padding: 0 7px; border-radius: 13px; display: grid; place-items: center; color: #765314; background: #fff3cc; font-size: 9px; font-weight: 800; }
.tasks-chevron { color: #718096; font-size: 17px; transition: transform .18s ease; }
.tasks-card[open] .tasks-chevron { transform: rotate(180deg); }
.tasks-body { padding: 4px 22px 17px 68px; border-top: 1px solid #edf0f4; }
.task-item { min-height: 54px; padding: 10px 0; border-bottom: 1px solid #eef1f5; display: flex; gap: 11px; align-items: center; }
.task-item:last-child { border-bottom: 0; }
.task-check { flex: 0 0 auto; width: 17px; height: 17px; border: 2px solid #cbd3df; border-radius: 5px; }
.task-item > span:nth-child(2) { flex: 1; }
.task-item strong, .task-item small { display: block; }
.task-item strong { color: #3f4c60; font-size: 10px; }
.task-item small { margin-top: 3px; color: #8a96a8; font-size: 9px; }
.task-item em { padding: 4px 7px; border-radius: 10px; color: #657287; background: #f1f3f6; font-size: 7px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.tasks-empty { padding: 14px 0 3px; color: #718096; font-size: 10px; }
.pipeline-card { margin-top: 15px; padding: 18px 25px 21px; }
.pipeline-label { color: #536176; font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.pipeline-track { position: relative; max-width: 930px; margin: 18px auto 0; display: flex; justify-content: space-between; }
.pipeline-track::before { content: ""; position: absolute; z-index: 0; top: 15px; left: 7%; right: 7%; border-top: 2px dashed #dbe1ea; }
.pipeline-step { position: relative; z-index: 1; min-width: 100px; display: flex; flex-direction: column; gap: 6px; align-items: center; color: #a0a9b7; font-size: 10px; }
.pipeline-step i { width: 31px; height: 31px; border: 3px solid #e1e6ed; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 9px; font-style: normal; }
.pipeline-step.active { color: #344054; }
.pipeline-step.active i { border-color: #afc0f1; color: #fff; background: var(--blue); box-shadow: 0 0 0 4px #edf2ff; }
.process-workspace { margin-top: 15px; display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 15px; align-items: start; }
.cedent-card { overflow: hidden; }
.cedent-profile { padding: 25px 20px 22px; border-bottom: 1px solid #e7eaf0; text-align: center; background: linear-gradient(180deg, #f7f9fc 0%, #fff 75%); }
.cedent-label { display: inline-block; padding: 4px 9px; border: 1px solid #efd58b; border-radius: 12px; color: #886812; background: #fff9e8; font-size: 8px; font-weight: 800; letter-spacing: .7px; }
.cedent-avatar { width: 67px; height: 67px; margin: 10px auto 11px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--blue); box-shadow: 0 7px 15px rgba(49,95,221,.2); font: 800 20px Manrope, sans-serif; }
.cedent-profile h2 { margin: 0; font: 800 13px Manrope, sans-serif; text-transform: uppercase; }
.cedent-profile p { margin: 7px 0 0; color: #7b8799; font-size: 10px; }
.cedent-section { padding: 16px 18px; border-bottom: 1px solid #e7eaf0; }
.cedent-section > small { display: block; margin-bottom: 11px; color: #627087; font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.cedent-section p { margin: 8px 0; display: flex; justify-content: space-between; gap: 10px; color: #8290a3; font-size: 9px; }
.cedent-section p strong { color: #445167; font-size: 9px; }
.cedent-section .lawyer-summary { display: block; }
.lawyer-summary strong, .lawyer-summary span { display: block; }
.lawyer-summary span { margin-top: 3px; }
.calculation-shortcut a { height: 41px; padding: 0 13px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; color: #fff; background: var(--blue); box-shadow: 0 6px 14px rgba(49,95,221,.17); font-size: 10px; font-weight: 800; text-decoration: none; }
.calculation-shortcut a span { font-size: 16px; }
.process-main-panel { min-width: 0; padding: 0 20px 25px; }
.process-tabs { height: 58px; border-bottom: 1px solid #e5e9f0; display: flex; gap: 25px; align-items: flex-end; }
.process-tabs button { height: 58px; padding: 0 3px; border: 0; border-bottom: 2px solid transparent; display: flex; align-items: center; color: #718096; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.process-tabs button.active { border-color: var(--blue); color: var(--navy); }
.process-tabs button:focus-visible { outline: 2px solid #9eb1ed; outline-offset: -3px; }
.tab-count { min-width: 18px; margin-left: 6px; padding: 2px 5px; border-radius: 9px; color: #667085; background: #eef1f5; font-size: 8px; }
.process-tabs button.active .tab-count { color: var(--blue); background: var(--blue-soft); }
.process-tab-panel[hidden] { display: none; }
.summary-metrics { margin: 20px 0; border: 1px solid #e0e5ec; border-radius: 10px; display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.summary-metrics div { min-height: 72px; padding: 14px; border-right: 1px solid #e6eaf0; }
.summary-metrics div:last-child { border: 0; }
.summary-metrics small, .summary-metrics strong { display: block; }
.summary-metrics small, .process-info-grid small { color: #7f8b9e; font-size: 8px; font-weight: 800; letter-spacing: .7px; }
.summary-metrics strong { margin-top: 9px; color: #344054; font-size: 11px; }
.process-info-card, .publication-card, .history-card { margin-top: 15px; border: 1px solid #e0e5ec; border-radius: 10px; background: #fff; }
.process-info-card > header, .publication-card > header, .history-card > header { min-height: 50px; padding: 0 18px; border-bottom: 1px solid #e9ecf1; display: flex; gap: 9px; align-items: center; }
.process-info-card h2, .publication-card h2, .history-card h2 { margin: 0; font: 800 12px Manrope, sans-serif; }
.process-info-card header span, .publication-card header span { color: var(--blue); }
.process-info-grid { padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 25px 50px; }
.process-info-grid small, .process-info-grid strong { display: block; }
.process-info-grid strong { margin-top: 7px; color: #303d51; font-size: 11px; line-height: 1.5; }
.process-info-grid .court-badge { display: inline-block; margin-top: 0; }
.monospace { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.publication-card > p { margin: 0; padding: 20px 22px; color: #556277; font-size: 11px; line-height: 1.75; white-space: pre-line; }
.history-card > header { justify-content: space-between; }
.history-card > header span { color: #96a0b0; font-size: 9px; }
.history-empty { min-height: 180px; padding: 30px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #8d98a9; text-align: center; }
.history-empty i { margin-bottom: 10px; font-size: 22px; font-style: normal; }
.history-empty strong { color: #657287; font-size: 11px; }
.history-empty p { margin: 5px 0 0; font-size: 9px; }
.notes-card { margin-top: 20px; }
.note-form { padding: 18px; border: 1px solid #e0e5ec; border-radius: 10px; background: #fff; }
.note-form label { display: block; margin-bottom: 8px; color: #344054; font-size: 10px; font-weight: 800; }
.note-form textarea { width: 100%; padding: 12px 13px; border: 1px solid #dce2ea; border-radius: 9px; outline: 0; resize: vertical; color: #344054; background: #fbfcfd; font: 11px/1.6 "DM Sans", sans-serif; }
.note-form textarea:focus { border-color: #8da6ef; box-shadow: 0 0 0 3px rgba(49,95,221,.08); background: #fff; }
.note-form > div { margin-top: 10px; display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.note-form > div small { color: #929dad; font-size: 8px; }
.note-form button { height: 35px; padding: 0 14px; border: 0; border-radius: 8px; color: #fff; background: var(--blue); cursor: pointer; font-size: 9px; font-weight: 800; }
.note-error { margin: 6px 0 0; color: #b42318; font-size: 9px; }
.notes-list { margin-top: 13px; border: 1px solid #e0e5ec; border-radius: 10px; background: #fff; overflow: hidden; }
.note-item { padding: 16px 18px; border-bottom: 1px solid #eceff3; display: flex; gap: 11px; }
.note-item:last-child { border-bottom: 0; }
.note-avatar { flex: 0 0 auto; width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--navy-soft); font-size: 10px; font-weight: 800; }
.note-item > div { min-width: 0; flex: 1; }
.note-item header { display: flex; justify-content: space-between; gap: 10px; }
.note-item header strong { color: #344054; font-size: 10px; }
.note-item time { color: #98a2b3; font-size: 8px; }
.note-item p { margin: 7px 0 0; color: #566378; font-size: 10px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.notes-empty { min-height: 170px; padding: 30px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #8d98a9; text-align: center; }
.notes-empty > span { font-size: 20px; }
.notes-empty strong { margin-top: 7px; color: #657287; font-size: 10px; }
.notes-empty p { margin: 5px 0 0; font-size: 9px; }

.contact-wrap { max-width: 1320px; }
.contact-heading { padding: 10px 0 4px; }
.contact-total-card { position: relative; margin-top: 28px; padding: 22px 25px; border: 1px solid #dce3ef; border-radius: 14px; display: flex; gap: 17px; align-items: center; overflow: hidden; background: linear-gradient(105deg, #fff 0%, #f3f6ff 100%); box-shadow: 0 5px 18px rgba(23,36,61,.04); }
.contact-total-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; border: 30px solid rgba(49,95,221,.04); border-radius: 50%; }
.contact-total-icon { width: 49px; height: 49px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--blue); box-shadow: 0 7px 15px rgba(49,95,221,.18); font-size: 23px; }
.contact-total-card div:nth-child(2) { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: baseline; }
.contact-total-card small { grid-column: 1 / -1; color: #738198; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.contact-total-card strong { color: var(--navy); font: 800 30px Manrope, sans-serif; }
.contact-total-card p { margin: 0; color: #758196; font-size: 10px; }
.contact-total-card > span { position: relative; z-index: 1; margin-left: auto; padding: 5px 9px; border-radius: 10px; color: var(--blue); background: #e9efff; font-size: 8px; font-weight: 800; }
.contact-section { margin-top: 30px; }
.contact-section > header { margin-bottom: 14px; display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.contact-section > header > div { display: flex; gap: 11px; align-items: center; }
.section-number { width: 31px; height: 31px; border: 1px solid #dce2ea; border-radius: 8px; display: grid; place-items: center; color: #77859a; background: #fff; font: 800 9px Manrope, sans-serif; }
.contact-section header small { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: 1.2px; }
.contact-section header h2 { margin: 3px 0 0; font: 800 17px Manrope, sans-serif; }
.contact-section header p { margin: 0; color: #8995a7; font-size: 9px; }
.contact-status-grid { display: grid; gap: 12px; }
.contact-status-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-status-card { --status-color: var(--blue); position: relative; min-height: 190px; padding: 20px; border: 1px solid #e0e5ec; border-radius: 13px; overflow: hidden; background: #fff; box-shadow: 0 2px 5px rgba(23,36,61,.025); }
.contact-status-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--status-color); }
.status-order { position: absolute; top: 18px; right: 18px; width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; color: var(--status-color); background: color-mix(in srgb, var(--status-color) 10%, white); font-size: 9px; font-weight: 800; }
.status-value { display: block; color: var(--navy); font: 800 31px Manrope, sans-serif; }
.contact-status-card h3 { margin: 19px 0 5px; font: 700 12px Manrope, sans-serif; }
.contact-status-card p { margin: 0; color: #8995a7; font-size: 9px; line-height: 1.5; }
.status-progress { position: absolute; right: 20px; bottom: 18px; left: 20px; height: 3px; border-radius: 3px; background: #edf0f4; overflow: hidden; }
.status-progress i { display: block; height: 100%; background: var(--status-color); }
.status-blue { --status-color: #315fdd; }
.status-amber { --status-color: #c88717; }
.status-red { --status-color: #c95656; }
.status-slate { --status-color: #637187; }
.status-violet { --status-color: #8059bd; }
.status-green { --status-color: #238b61; }
.contact-status-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.commercial-status-card { --status-color: var(--blue); min-height: 92px; padding: 16px; border: 1px solid #e0e5ec; border-radius: 12px; display: flex; gap: 12px; align-items: center; background: #fff; }
.commercial-icon { flex: 0 0 auto; width: 37px; height: 37px; border-radius: 10px; display: grid; place-items: center; color: var(--status-color); background: color-mix(in srgb, var(--status-color) 9%, white); font-size: 13px; font-weight: 800; }
.commercial-status-card strong { display: block; color: var(--navy); font: 800 21px Manrope, sans-serif; }
.commercial-status-card h3 { margin: 2px 0 0; color: #68768b; font-size: 9px; font-weight: 700; }
.contact-footnote { margin-top: 25px; padding: 12px 14px; border: 1px dashed #d7dde7; border-radius: 9px; display: flex; gap: 9px; align-items: center; color: #8490a2; font-size: 9px; }
.contact-footnote span { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); font-size: 9px; font-weight: 800; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .85fr) minmax(480px, 1.15fr); background: #fff; }
.login-brand-panel { position: relative; min-height: 100vh; padding: 38px 48px; display: flex; flex-direction: column; overflow: hidden; color: #fff; background: var(--navy); }
.login-brand-panel::before { content: ""; position: absolute; width: 520px; height: 520px; right: -280px; bottom: -180px; border: 1px solid rgba(111,143,237,.18); border-radius: 50%; box-shadow: 0 0 0 70px rgba(65,94,176,.045), 0 0 0 140px rgba(65,94,176,.035); }
.login-brand { position: relative; padding: 0; }
.login-message { position: relative; max-width: 520px; margin: auto 0; }
.eyebrow.light { color: #8eabff; }
.login-message h1 { margin: 13px 0 18px; color: #fff; font-size: clamp(30px, 3.1vw, 47px); line-height: 1.16; letter-spacing: -1.7px; }
.login-message p { max-width: 450px; margin: 0; color: #aab6ca; font-size: 14px; line-height: 1.7; }
.login-copyright { position: relative; margin: 0; color: #77869e; font-size: 10px; }
.login-form-panel { min-height: 100vh; padding: 40px; display: grid; place-items: center; }
.login-form { width: min(100%, 400px); }
.login-heading { margin-bottom: 34px; }
.login-heading h2 { margin: 0 0 8px; font: 800 28px Manrope, sans-serif; letter-spacing: -.7px; }
.login-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.mobile-logo { display: none; }
.form-alert { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #f3c6c6; border-radius: 9px; color: #a93434; background: #fff2f2; font-size: 12px; }
.form-field { margin-bottom: 19px; display: block; }
.form-field > span:first-child { margin-bottom: 7px; display: block; color: #344054; font-size: 11px; font-weight: 700; }
.form-field input { width: 100%; height: 47px; padding: 0 13px; border: 1px solid #dce1e9; border-radius: 9px; outline: 0; color: var(--ink); background: #fff; font-size: 13px; }
.form-field input:focus { border-color: #8da6ef; box-shadow: 0 0 0 3px rgba(49,95,221,.09); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 72px; }
.password-field button { position: absolute; top: 50%; right: 8px; padding: 6px 7px; border: 0; color: var(--blue); background: transparent; cursor: pointer; transform: translateY(-50%); font-size: 10px; font-weight: 700; }
.remember-field { margin: -2px 0 24px; display: flex; gap: 8px; align-items: center; color: #59677b; font-size: 11px; cursor: pointer; }
.remember-field input { accent-color: var(--blue); }
.login-button { width: 100%; height: 48px; padding: 0 17px; border: 0; border-radius: 9px; display: flex; justify-content: center; gap: 12px; align-items: center; color: #fff; background: var(--blue); box-shadow: 0 8px 18px rgba(49,95,221,.2); cursor: pointer; font-size: 12px; font-weight: 700; }
.login-button:hover { background: #284fc0; }
.login-button span { font-size: 16px; }
.access-note { margin: 21px 0 0; color: #98a2b3; text-align: center; font-size: 10px; }

@media (max-width: 1080px) {
    .users-layout { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pathways-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pathway-card { min-height: 235px; }
    .pathway-copy { margin-top: 28px; }
    .states-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .municipal-list { grid-template-columns: 1fr; }
    .process-workspace { grid-template-columns: 235px minmax(0, 1fr); }
    .summary-metrics { grid-template-columns: 1fr 1fr; }
    .summary-metrics div:nth-child(2) { border-right: 0; }
    .summary-metrics div:nth-child(-n+2) { border-bottom: 1px solid #e6eaf0; }
    .contact-status-grid-five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: 15px 0 35px rgba(0,0,0,.15); }
    .sidebar.open { transform: translateX(0); }
    .main-content { width: 100%; margin-left: 0; }
    .menu-button { display: block; }
    .topbar { height: 60px; padding: 0 18px; justify-content: flex-start; gap: 16px; }
    .sync-status { margin-left: auto; }
    .sync-status span { display: none; }
    .content-wrap { padding: 27px 18px 40px; }
    .page-heading { align-items: flex-start; }
    .metric-card { min-width: 76px; justify-content: center; }
    .metric-icon, .metric-card small { display: none; }
    .filters { flex-wrap: wrap; }
    .search-field { width: 100%; }
    .select-field { flex: 1; }
    .cards-grid { grid-template-columns: 1fr; }
    .pathways-heading h1 { font-size: 27px; }
    .pathways-grid { margin-top: 28px; }
    .pathways-grid { grid-template-columns: 1fr; }
    .states-grid { grid-template-columns: 1fr; }
    .location-heading { align-items: flex-start; flex-direction: column; }
    .municipality-control { flex-direction: column; }
    .municipality-control button { height: 40px; }
    .process-content { padding: 20px 16px 40px; }
    .process-hero { align-items: flex-start; flex-direction: column; }
    .process-hero-actions { width: 100%; }
    .process-workspace { grid-template-columns: 1fr; }
    .cedent-card { display: grid; grid-template-columns: 1fr 1fr; }
    .cedent-profile { grid-row: span 2; }
    .process-info-grid { grid-template-columns: 1fr; gap: 20px; }
    .drawer-header, .drawer-body { padding-left: 20px; padding-right: 20px; }
    .drawer-footer { padding: 15px 20px; gap: 10px; }
    .login-page { display: block; background: #fff; }
    .login-brand-panel { display: none; }
    .login-form-panel { min-height: 100vh; padding: 28px; }
    .mobile-logo { width: 43px; height: 43px; margin-bottom: 28px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--blue); font: 800 20px Manrope, sans-serif; }
    .contact-status-grid-three, .contact-status-grid-five { grid-template-columns: 1fr; }
    .contact-section > header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
    h1 { font-size: 25px; }
    .page-heading p { font-size: 12px; }
    .metric-card { display: none; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-grid .wide { grid-column: auto; }
    .qualification-fields { grid-template-columns: 1fr; }
    .process-title-line { align-items: flex-start; flex-direction: column; }
    .process-title-line h1 { font-size: 18px; }
    .process-hero > div > p { flex-wrap: wrap; }
    .process-hero > div > p span { display: none; }
    .process-hero-actions { align-items: stretch; flex-direction: column; }
    .pipeline-card { overflow-x: auto; }
    .pipeline-track { min-width: 480px; }
    .cedent-card { display: block; }
    .process-main-panel { padding: 0 14px 18px; }
    .process-tabs { gap: 16px; }
    .summary-metrics { grid-template-columns: 1fr; }
    .summary-metrics div { border-right: 0; border-bottom: 1px solid #e6eaf0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
