/* Administração de contas do Portal INEST. */
.portal-users-create { padding:22px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.portal-users-create .portal-field { min-width:0; }
.portal-users .portal-panel-header > svg { width:24px; height:24px; color:var(--blue-500); flex-shrink:0; }
.portal-users .portal-panel-header { flex-direction:row; align-items:center; }
.portal-users-create-footer { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; }
.portal-users-create-footer p { flex:1; min-width:220px; margin:0; color:var(--ink-500); font-size:12px; line-height:1.6; }
.portal-users-password { position:relative; }
.portal-users .portal-users-password input { width:100%; padding-right:46px; }
.portal-users .portal-field input, .portal-users .password-visibility, .portal-users .status-badge { border-radius:8px; }
.portal-users-filter { padding:18px 22px; display:flex; align-items:flex-end; gap:12px; }
.portal-users-filter .portal-field { flex:1; min-width:0; }
.portal-users-actions, .portal-users-pagination nav { display:flex; align-items:center; gap:10px; }
.portal-users-actions .portal-button { height:44px; }
.portal-users-table small { display:block; margin-top:4px; color:var(--ink-500); overflow-wrap:anywhere; }
.portal-users-table th:not(:first-child), .portal-users-table td:not(:first-child) { text-align:center; white-space:nowrap; }
.portal-users-table td:first-child { min-width:200px; }
.portal-users-self { font-size:10px; color:var(--blue-500); }
.portal-users-pagination { padding:18px 22px; display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:12px; }
@media (max-width:1000px) { .portal-users-create { grid-template-columns:1fr 1fr; } .portal-users-create > .portal-field:first-of-type { grid-column:1/-1; } }
@media (max-width:600px) {
  .portal-users-create { grid-template-columns:1fr; padding:18px; }
  .portal-users-filter { flex-wrap:wrap; padding:18px; }
  .portal-users-filter .portal-field { flex-basis:100%; }
  .portal-users-create-footer p { min-width:0; flex-basis:100%; }
  .portal-users-create-footer .portal-button { width:100%; }
}

:root {
  --navy-950: #041426;
  --navy-900: #071d35;
  --navy-800: #0d3155;
  --blue-500: #2d83c5;
  --cyan-300: #7dd9df;
  --red-600: #c91f2c;
  --red-500: #dc2d3a;
  --green-500: #2ca66f;
  --ink-900: #102033;
  --ink-700: #415166;
  --ink-500: #6f7c8c;
  --line: #dfe7ed;
  --paper: #f4f7f9;
  --white: #fff;
  --radius: 8px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; overflow-x: clip; color: var(--ink-900); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.login-body { background: var(--navy-950); }
.portal-container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }
.portal-header { min-height: 76px; color: var(--white); background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.1); }
.portal-header-inner { min-height: 76px; display: flex; align-items: center; gap: 34px; }
.portal-brand { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.portal-brand img { width: 118px; height: 48px; object-fit: contain; object-position: left center; }
.portal-brand > span { padding-left: 13px; border-left: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.68); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portal-nav { display: flex; align-items: center; gap: 8px; }
.portal-nav a { padding: 10px 12px; border-radius: 6px; color: rgba(255,255,255,.67); font-size: 12px; font-weight: 750; }
.portal-nav a:hover, .portal-nav a.is-active { color: var(--white); background: rgba(255,255,255,.08); }
.portal-account { margin-left: auto; display: flex; align-items: center; gap: 13px; }
.portal-account > span { display: flex; flex-direction: column; align-items: flex-end; color: var(--white); font-size: 12px; font-weight: 750; }
.portal-account small { color: rgba(255,255,255,.48); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portal-account form { margin: 0; }
.portal-account button { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; color: rgba(255,255,255,.76); background: transparent; cursor: pointer; }
.portal-account button:hover { color: var(--white); border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.07); }
.portal-account svg { width: 18px; height: 18px; }
.portal-main { flex: 1; padding: 54px 0 75px; }
.portal-alert { margin-bottom: 24px; padding: 14px 16px; display: flex; align-items: center; gap: 11px; border: 1px solid; border-radius: 7px; font-size: 13px; font-weight: 700; }
.portal-alert span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: var(--white); font-weight: 900; }
.portal-alert.is-success { color: #176a48; border-color: #bfe2d2; background: #eff9f4; }
.portal-alert.is-success span { background: var(--green-500); }
.portal-alert.is-error { color: #94212b; border-color: #efc9cd; background: #fff3f4; }
.portal-alert.is-error span { background: var(--red-600); }
.portal-page-heading { margin-bottom: 31px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.portal-page-heading small { color: var(--red-600); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.portal-page-heading h1 { margin: 7px 0 6px; color: var(--navy-900); font-size: clamp(30px, 4vw, 43px); line-height: 1.15; letter-spacing: -.035em; }
.portal-page-heading p { max-width: 660px; margin: 0; color: var(--ink-500); font-size: 14px; }
.portal-button { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; color: var(--white); background: var(--red-600); font-size: 12px; font-weight: 800; cursor: pointer; }
.portal-button:hover { background: var(--red-500); }
.portal-button.is-secondary { color: var(--navy-800); border-color: #cdd9e1; background: var(--white); }
.portal-button.is-secondary:hover { border-color: #9fb5c4; background: #f8fafb; }
.portal-button svg { width: 17px; height: 17px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.metric-card { padding: 23px; border: 1px solid #d9e3e9; border-radius: var(--radius); background: var(--white); }
.metric-card span { color: var(--ink-500); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.metric-card strong { margin-top: 8px; display: block; color: var(--navy-900); font-size: 30px; line-height: 1; }
.metric-card.is-new { border-top: 3px solid var(--red-600); }
.metric-card.is-review { border-top: 3px solid var(--blue-500); }
.metric-card.is-contacted { border-top: 3px solid var(--green-500); }
.portal-panel { margin-top: 22px; overflow: visible; border: 1px solid #d9e3e9; border-radius: var(--radius); background: var(--white); }
.portal-panel-header { min-height: 65px; padding: 14px 21px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e3eaee; }
.portal-panel-header h2 { margin: 0; color: var(--navy-900); font-size: 17px; }
.portal-panel-header p { margin: 3px 0 0; color: var(--ink-500); font-size: 11px; }
.portal-table-wrap { overflow-x: auto; }
.portal-table { width: 100%; border-collapse: collapse; }
.portal-table th { padding: 13px 18px; color: #738194; background: #f7f9fa; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.portal-table td { padding: 16px 18px; border-top: 1px solid #e7ecef; color: var(--ink-700); font-size: 12px; vertical-align: middle; }
.portal-table tbody tr:hover { background: #fafcfd; }
.portal-table a { color: var(--navy-800); font-weight: 800; }
.portal-table a:hover { color: var(--red-600); }
.cell-person { display: flex; flex-direction: column; }
.cell-person strong { color: var(--ink-900); }
.cell-person small { color: var(--ink-500); }
.status-badge { min-height: 26px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 6px; font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.status-badge.is-new { color: #9a1c27; background: #fff0f1; }
.status-badge.is-review { color: #1d5f91; background: #edf6fc; }
.status-badge.is-contacted { color: #176a48; background: #edf8f3; }
.status-badge.is-archived { color: #657386; background: #eef1f4; }
.empty-state { padding: 52px 24px; text-align: center; }
.empty-state span { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; color: var(--blue-500); background: #edf5fa; }
.empty-state svg { width: 25px; height: 25px; }
.empty-state h3 { margin: 0 0 5px; color: var(--navy-900); font-size: 17px; }
.empty-state p { margin: 0; color: var(--ink-500); font-size: 12px; }
.filter-form { display: flex; align-items: flex-end; gap: 12px; }
.course-filter-form { width: 100%; display: grid; grid-template-columns: minmax(230px, 1fr) 180px 180px auto; align-items: end; }
.portal-field { display: flex; flex-direction: column; gap: 6px; }
.portal-field label { color: var(--ink-700); font-size: 10px; font-weight: 800; }
.portal-field input, .portal-field select, .portal-field textarea { border: 1px solid #cfdbe3; border-radius: 7px; color: var(--ink-900); outline: 0; background: var(--white); font: inherit; font-size: 13px; }
.portal-field input, .portal-field select { height: 44px; padding: 0 12px; }
.portal-field textarea { min-height: 135px; padding: 12px; resize: vertical; }
.portal-field input:focus, .portal-field select:focus, .portal-field textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(45,131,197,.11); }
.detail-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 22px; }
.detail-content { padding: 25px; }
.detail-data { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-data div { display: flex; flex-direction: column; }
.detail-data small, .experience-box > small { color: var(--ink-500); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.detail-data strong { margin-top: 4px; color: var(--ink-900); font-size: 13px; }
.curriculum-box { margin-top: 24px; padding: 16px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid #dbe5eb; border-radius: var(--radius); background: #f8fafb; }
.curriculum-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 7px; color: var(--red-600); background: #fff0f1; }
.curriculum-icon svg { width: 21px; height: 21px; }
.curriculum-box > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.curriculum-box small { color: var(--ink-500); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.curriculum-box strong { margin-top: 3px; overflow: hidden; color: var(--ink-900); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.curriculum-box em { margin-top: 2px; color: var(--ink-500); font-size: 10px; font-style: normal; }
.experience-box { margin-top: 24px; padding-top: 22px; border-top: 1px solid #e3eaee; }
.experience-box p { margin: 8px 0 0; color: var(--ink-700); font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.status-form { padding: 23px; display: grid; gap: 14px; }
.status-form .portal-button { width: 100%; }
.security-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr); gap: 22px; align-items: start; }
.security-form { padding: 25px; display: grid; gap: 17px; }
.security-form .portal-button { width: fit-content; min-width: 190px; }
.security-notice { padding: 25px; }
.security-notice h2 { margin: 0 0 8px; color: var(--navy-900); font-size: 17px; }
.security-notice p { margin: 0; color: var(--ink-500); font-size: 12px; line-height: 1.65; }
.password-rules { margin: 16px 0 0; padding: 16px 17px 16px 34px; border: 1px solid #dfe7ed; border-radius: 7px; color: var(--ink-700); background: #f8fafb; font-size: 11px; line-height: 1.8; }
.portal-footer { min-height: 64px; color: rgba(255,255,255,.45); background: var(--navy-950); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.portal-footer .portal-container { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.login-page { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 46px 24px; overflow: hidden; background: radial-gradient(circle at 82% 20%, rgba(45,131,197,.22), transparent 27%), linear-gradient(125deg, #041426, #071d35 56%, #0a2b4d); }
.login-page::before { content: ""; position: absolute; width: 620px; height: 620px; right: -280px; top: -230px; border: 1px solid rgba(125,217,223,.15); border-radius: 50%; box-shadow: 0 0 0 100px rgba(125,217,223,.025), 0 0 0 200px rgba(125,217,223,.02); }
.login-card { position: relative; z-index: 1; width: min(100%, 1080px); min-height: 620px; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border: 1px solid rgba(255,255,255,.17); border-radius: var(--radius); background: var(--white); box-shadow: 0 34px 90px rgba(0,0,0,.3); }
.login-card::before { content: ""; position: absolute; z-index: 3; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--red-600), #ec5260 46%, rgba(255,255,255,0) 82%); }
.login-story { position: relative; min-width: 0; padding: 47px 50px 39px; display: flex; flex-direction: column; overflow: hidden; color: var(--white); border-right: 1px solid rgba(255,255,255,.1); background: linear-gradient(145deg, rgba(6,25,45,.98), rgba(11,48,82,.98)); }
.login-story::before { content: ""; position: absolute; width: 410px; height: 410px; right: -235px; bottom: -230px; border: 1px solid rgba(125,217,223,.13); border-radius: 50%; box-shadow: 0 0 0 64px rgba(125,217,223,.025), 0 0 0 128px rgba(125,217,223,.018); }
.login-brand { position: relative; z-index: 1; width: 190px; display: block; }
.login-brand img { width: 100%; height: 73px; object-fit: contain; object-position: left center; }
.login-story-copy { position: relative; z-index: 1; margin-top: 54px; }
.login-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--cyan-300); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.login-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--red-500); box-shadow: 0 0 0 4px rgba(220,45,58,.12); }
.login-story-copy h2 { max-width: 490px; margin: 19px 0 18px; color: var(--white); font-size: clamp(37px, 4vw, 50px); line-height: 1.04; letter-spacing: -.04em; }
.login-story-copy p { max-width: 500px; margin: 0; color: rgba(255,255,255,.63); font-size: 14px; line-height: 1.72; }
.login-capabilities { position: relative; z-index: 1; margin-top: 34px; display: grid; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); background: rgba(4,20,38,.24); }
.login-capabilities > div { min-height: 68px; padding: 12px 15px; display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 12px; }
.login-capabilities > div + div { border-top: 1px solid rgba(255,255,255,.1); }
.login-capabilities > div > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; color: var(--cyan-300); background: rgba(125,217,223,.08); }
.login-capabilities svg { width: 19px; height: 19px; }
.login-capabilities p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.login-capabilities strong { color: rgba(255,255,255,.88); font-size: 11px; }
.login-capabilities small { color: rgba(255,255,255,.44); font-size: 9px; }
.login-story-footer { position: relative; z-index: 1; margin-top: auto; padding-top: 25px; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.4); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.login-story-footer svg { width: 17px; height: 17px; color: var(--cyan-300); }
.login-panel { min-width: 0; padding: 58px 55px; display: flex; align-items: center; background: rgba(255,255,255,.99); }
.login-form-wrap { width: 100%; max-width: 400px; margin: 0 auto; }
.login-heading { text-align: left; }
.login-heading span { color: var(--red-600); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.login-heading h1 { margin: 8px 0 8px; color: var(--navy-900); font-size: 31px; letter-spacing: -.025em; }
.login-heading p { margin: 0; color: var(--ink-500); font-size: 12px; }
.login-panel .portal-alert { margin: 24px 0 0; }
.login-form { margin-top: 29px; display: grid; gap: 18px; }
.login-input-shell { position: relative; display: flex; align-items: center; border: 1px solid #cfdbe3; border-radius: var(--radius); background: var(--white); transition: border-color .18s ease, box-shadow .18s ease; }
.login-input-shell:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(45,131,197,.11); }
.login-field-icon { position: absolute; width: 42px; inset: 0 auto 0 0; display: grid; place-items: center; color: #8795a5; pointer-events: none; }
.login-field-icon svg { width: 18px; height: 18px; }
.login-input-shell:focus-within .login-field-icon { color: var(--blue-500); }
.portal-field .login-input-shell input { width: 100%; height: 48px; padding: 0 13px 0 42px; border: 0; border-radius: var(--radius); outline: 0; background: transparent; box-shadow: none; }
.portal-field .login-input-shell.has-password-toggle input { padding-right: 48px; }
.portal-field .login-input-shell input::placeholder { color: #98a4b1; }
.login-captcha-field { min-width: 0; }
.login-captcha-shell { min-height: 76px; border-radius: var(--radius); }
.login-captcha-shell altcha-widget { min-height: 76px; display: block; --altcha-max-width: 100%; --altcha-border-radius: 8px; --altcha-checkbox-border-radius: 6px; --altcha-checkbox-size: 26px; --altcha-color-base: #f8fafb; --altcha-color-base-content: #102033; --altcha-color-neutral: #cfdbe3; --altcha-color-neutral-content: #5f6f82; --altcha-color-primary: #c91f2c; --altcha-color-primary-content: #fff; --altcha-color-success: #2ca66f; --altcha-color-success-content: #fff; --altcha-padding: .85rem; }
.login-captcha-shell .altcha-main { width: 100%; min-height: 76px; padding: 14px 16px; flex-direction: row; align-items: center; gap: 14px; border-radius: 8px !important; }
.login-captcha-shell .altcha-main > * { width: auto; }
.login-captcha-shell .altcha-main > :first-child { min-width: 0; flex: 1 1 auto; }
.login-captcha-shell .altcha-checkbox-wrap { min-height: 32px; align-items: center; gap: 10px; font-size: 12px; font-weight: 750; }
.login-captcha-shell .altcha-checkbox,
.login-captcha-shell .altcha-checkbox input { width: var(--altcha-checkbox-size); min-width: var(--altcha-checkbox-size); height: var(--altcha-checkbox-size); min-height: var(--altcha-checkbox-size); flex: 0 0 var(--altcha-checkbox-size); }
.login-captcha-shell .altcha-checkbox input { padding: 0; border-radius: var(--altcha-checkbox-border-radius); box-shadow: none; }
.login-captcha-shell .altcha-checkbox input:focus { border-color: var(--altcha-checkbox-border-color); box-shadow: none; }
.login-captcha-shell .altcha-footer { flex: 0 0 auto; align-items: center; margin-left: auto; font-size: 9px; }
.captcha-noscript { min-height: 55px; padding: 11px 13px; display: flex; align-items: center; border: 1px solid #efc9cd; border-radius: var(--radius); color: #94212b; background: #fff3f4; font-size: 11px; font-weight: 700; line-height: 1.45; }
.login-page.is-authenticator { padding-block: 24px; overflow-y: auto; }
.login-auth-form { gap: 16px; }
.login-auth-setup { padding: 15px; display: grid; justify-items: center; border: 1px solid #d9e3e9; border-radius: var(--radius); background: #f7fafb; }
.login-auth-setup ol { width: 100%; margin: 0 0 12px; padding-left: 20px; color: var(--ink-700); font-size: 10px; line-height: 1.55; }
.login-auth-setup img { width: 168px; max-width: 100%; height: auto; padding: 5px; border: 1px solid #dfe7ed; border-radius: var(--radius); background: var(--white); }
.login-auth-setup > span { margin-top: 10px; color: var(--ink-500); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.login-auth-setup > strong { max-width: 100%; margin-top: 5px; overflow-wrap: anywhere; color: var(--navy-900); font-size: 11px; letter-spacing: .08em; text-align: center; }
.portal-field .login-auth-code-shell input { height: 50px; padding: 0 14px; color: var(--navy-900); font-size: 20px; font-weight: 850; letter-spacing: .32em; text-align: center; }
.portal-field .login-auth-code-shell input::placeholder { color: #a6b1bd; }
.login-auth-trust { padding: 10px 12px; display: flex; align-items: center; gap: 9px; border: 1px solid #dce9e4; border-radius: var(--radius); color: #376254; background: #f1f8f5; font-size: 9px; font-weight: 750; line-height: 1.45; }
.login-auth-trust svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--green-500); }
.login-auth-back { justify-self: center; color: var(--ink-500); font-size: 10px; font-weight: 800; }
.login-auth-back:hover { color: var(--red-600); }
.password-visibility { position: absolute; width: 36px; height: 36px; top: 50%; right: 5px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 7px; color: var(--ink-500); outline: 0; background: transparent; cursor: pointer; transform: translateY(-50%); transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.password-visibility:hover { color: var(--navy-800); background: #eef4f7; }
.password-visibility:focus-visible { color: var(--navy-800); box-shadow: 0 0 0 3px rgba(45,131,197,.14); }
.password-visibility svg { width: 18px; height: 18px; }
.password-eye-closed { display: none; }
.password-visibility.is-visible .password-eye-open { display: none; }
.password-visibility.is-visible .password-eye-closed { display: block; }
.login-form .login-submit { width: 100%; min-height: 49px; margin-top: 4px; justify-content: space-between; padding: 0 17px 0 19px; }
.login-submit svg { width: 18px; height: 18px; }
.login-panel-footer { margin-top: 27px; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid #e0e7ec; }
.login-panel-footer > span { color: var(--ink-500); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.login-back { display: inline-flex; align-items: center; gap: 4px; color: var(--navy-800); font-size: 10px; font-weight: 800; }
.login-back svg { width: 15px; height: 15px; }
.login-back:hover { color: var(--red-600); }

@media (max-width: 900px) {
  .portal-container { width: min(calc(100% - 32px), var(--container)); }
  .portal-header-inner { padding: 13px 0; flex-wrap: wrap; }
  .portal-nav { order: 3; width: 100%; overflow-x: auto; }
  .portal-nav a { white-space: nowrap; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .login-page { padding: 30px 20px; overflow-y: auto; }
  .login-card { width: min(100%, 680px); grid-template-columns: 1fr; }
  .login-story { min-height: 0; padding: 35px 38px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .login-brand { width: 165px; }
  .login-brand img { height: 62px; }
  .login-story-copy { margin-top: 28px; }
  .login-story-copy h2 { max-width: 560px; font-size: 35px; }
  .login-capabilities { grid-template-columns: 1fr 1fr; }
  .login-capabilities > div + div { border-top: 0; border-left: 1px solid rgba(255,255,255,.1); }
  .login-story-footer { margin-top: 28px; }
  .login-panel { padding: 43px 38px; }
}

@media (max-width: 600px) {
  .portal-brand > span, .portal-account > span { display: none; }
  .portal-main { padding: 38px 0 55px; }
  .portal-page-heading { align-items: stretch; flex-direction: column; }
  .portal-page-heading .portal-button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { padding: 18px; }
  .metric-card strong { font-size: 25px; }
  .portal-panel-header { align-items: stretch; flex-direction: column; }
  .filter-form { align-items: stretch; flex-direction: column; }
  .course-filter-form { display: flex; }
  .filter-form .portal-button { width: 100%; }
  .detail-data { grid-template-columns: 1fr; }
  .curriculum-box { grid-template-columns: 42px minmax(0, 1fr); }
  .curriculum-box .portal-button { grid-column: 1 / -1; }
  .portal-footer .portal-container { padding: 18px 0; align-items: flex-start; flex-direction: column; }
  .login-page { display: block; padding: 16px 12px; }
  .login-card { min-height: 0; }
  .login-story { padding: 28px 24px; }
  .login-brand { width: 150px; }
  .login-brand img { height: 55px; }
  .login-story-copy { margin-top: 21px; }
  .login-story-copy h2 { margin: 14px 0 12px; font-size: 31px; }
  .login-story-copy p { font-size: 12px; }
  .login-capabilities { margin-top: 25px; grid-template-columns: 1fr; }
  .login-capabilities > div + div { border-top: 1px solid rgba(255,255,255,.1); border-left: 0; }
  .login-story-footer { display: none; }
  .login-panel { padding: 35px 24px; }
  .login-heading h1 { font-size: 28px; }
  .login-panel-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .login-page.is-authenticator .login-story { padding: 17px 24px; }
  .login-page.is-authenticator .login-card { width: calc(100vw - 24px); max-width: calc(100vw - 24px); grid-template-columns: minmax(0, 1fr); }
  .login-page.is-authenticator .login-panel,
  .login-page.is-authenticator .login-form-wrap,
  .login-page.is-authenticator .login-form,
  .login-page.is-authenticator .login-auth-setup { width: 100%; min-width: 0; max-width: 100%; }
  .login-page.is-authenticator .login-brand { width: 138px; }
  .login-page.is-authenticator .login-brand img { height: 49px; }
  .login-page.is-authenticator .login-story-copy,
  .login-page.is-authenticator .login-capabilities,
  .login-page.is-authenticator .login-story-footer { display: none; }
  .login-page.is-authenticator .login-panel { padding: 28px 20px; overflow: hidden; }
  .login-page.is-authenticator .login-form-wrap { max-width: calc(100vw - 66px); }
  .login-page.is-authenticator .login-heading h1 { font-size: 25px; }
  .login-auth-setup img { width: 155px; }
  .login-auth-setup > strong { width: 100%; }
  .login-captcha-shell .altcha-main { padding: 13px 14px; gap: 8px; }
  .login-captcha-shell .altcha-checkbox-wrap { gap: 8px; font-size: 11px; }
  .login-captcha-shell .altcha-footer { font-size: 8px; }
}

/* Estrutura autenticada: navegação lateral */
body.portal-body {
  min-height: 100vh;
  display: block;
  background: var(--paper);
}

.portal-shell {
  min-height: 100vh;
  padding-left: 260px;
}

.portal-sidebar {
  position: fixed;
  z-index: 1001;
  inset: 0 auto 0 0;
  width: 260px;
  min-height: 100vh;
  padding: 0 13px 16px;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--white);
  border-right: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 0 100%, rgba(45,131,197,.14), transparent 34%),
    linear-gradient(180deg, #071d35, #06182c 72%, #041426);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.24) transparent;
}

.portal-sidebar::-webkit-scrollbar { width: 7px; }
.portal-sidebar::-webkit-scrollbar-track { background: transparent; }
.portal-sidebar::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: rgba(255,255,255,.24); background-clip: padding-box; }

.portal-sidebar-head {
  min-height: 132px;
  padding: 23px 13px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.portal-sidebar-brand {
  width: 146px;
  display: block;
}

.portal-sidebar-brand img {
  display: block;
  width: 100%;
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

.portal-sidebar-head > span {
  color: rgba(255,255,255,.48);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portal-sidebar-nav {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.portal-sidebar-section {
  padding: 0 12px 7px;
  color: rgba(255,255,255,.36);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.portal-sidebar-section.is-secondary {
  margin-top: 19px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.portal-sidebar-nav a {
  position: relative;
  min-height: 46px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: rgba(255,255,255,.66);
  font-size: 12px;
  font-weight: 750;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.portal-sidebar-nav a::before {
  content: "";
  position: absolute;
  width: 3px;
  height: 22px;
  left: 0;
  top: 50%;
  border-radius: 0 3px 3px 0;
  background: transparent;
  transform: translateY(-50%);
}

.portal-sidebar-nav a:hover {
  color: var(--white);
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.055);
}

.portal-sidebar-nav a.is-active {
  color: var(--white);
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.09);
}

.portal-sidebar-nav a.is-active::before {
  background: var(--red-500);
}

.portal-sidebar-nav a > svg {
  width: 19px;
  height: 19px;
  color: rgba(125,217,223,.78);
}

.portal-sidebar-nav a:hover > svg,
.portal-sidebar-nav a.is-active > svg {
  color: var(--white);
}

.portal-sidebar-nav .portal-sidebar-external {
  width: 14px;
  height: 14px;
  color: rgba(255,255,255,.32);
}

.portal-sidebar-account {
  margin-top: auto;
  padding: 14px 3px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

.portal-sidebar-user {
  min-width: 0;
  padding: 4px 8px 13px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.portal-sidebar-user > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125,217,223,.18);
  border-radius: 7px;
  color: var(--cyan-300);
  background: rgba(125,217,223,.07);
}

.portal-sidebar-user svg {
  width: 18px;
  height: 18px;
}

.portal-sidebar-user p {
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portal-sidebar-user small {
  color: rgba(255,255,255,.38);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.portal-sidebar-user strong {
  overflow: hidden;
  color: rgba(255,255,255,.9);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-sidebar-account form {
  margin: 0;
}

.portal-sidebar-account button {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 7px;
  color: rgba(255,255,255,.64);
  background: rgba(255,255,255,.035);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.portal-sidebar-account button:hover {
  color: var(--white);
  border-color: rgba(220,45,58,.42);
  background: rgba(201,31,44,.13);
}

.portal-sidebar-account button svg {
  width: 18px;
  height: 18px;
}

/* Gestão de clientes e organização do menu */
.portal-select-shell { position: relative; min-width: 0; }
.portal-select-shell > select { width: 100%; padding-right: 42px; appearance: none; cursor: pointer; }
.portal-select-shell::after { content: ""; position: absolute; width: 7px; height: 7px; top: 16px; right: 16px; border-right: 2px solid var(--ink-500); border-bottom: 2px solid var(--ink-500); pointer-events: none; transform: rotate(45deg); }
.portal-select-shell.is-ready > select { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.portal-select-shell.is-ready::after { display: none; }
.portal-select-trigger { width: 100%; height: 44px; padding: 0 12px; display: none; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #cfdbe3; border-radius: var(--radius); color: var(--ink-900); outline: 0; background: var(--white); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.portal-select-shell.is-ready .portal-select-trigger { display: flex; }
.portal-select-trigger > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-select-trigger svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--ink-500); transition: transform .18s ease; }
.portal-select-shell.is-open .portal-select-trigger { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(45,131,197,.11); }
.portal-select-shell.is-open .portal-select-trigger svg { transform: rotate(180deg); }
.portal-select-menu { position: absolute; z-index: 1200; top: calc(100% + 6px); left: 0; right: 0; max-height: 280px; padding: 6px; overflow-y: auto; border: 1px solid #d4dfe6; border-radius: var(--radius); background: var(--white); box-shadow: 0 14px 32px rgba(4,20,38,.13); }
.portal-select-option { width: 100%; min-height: 40px; padding: 8px 10px; display: flex; align-items: center; border: 0; border-radius: 7px; color: var(--ink-700); outline: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; }
.portal-select-option + .portal-select-option { margin-top: 3px; }
.portal-select-option:hover, .portal-select-option:focus-visible { color: var(--navy-800); background: #eef5fa; }
.portal-select-option[aria-selected="true"] { color: #176a48; background: #edf8f3; }

.partner-detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); gap: 22px; align-items: start; }
.partner-side-stack { display: grid; gap: 22px; }
.partner-side-stack .portal-panel { margin-top: 22px; }
.partner-edit-form { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.portal-form-section { grid-column: 1 / -1; margin-top: 8px; padding-top: 22px; border-top: 1px solid #e3eaee; }
.portal-form-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.portal-form-section span { color: var(--navy-900); font-size: 13px; font-weight: 850; }
.portal-form-section p { margin: 3px 0 0; color: var(--ink-500); font-size: 10px; }
.portal-field-wide, .portal-field-full { grid-column: 1 / -1; }
.partner-form-actions { padding-top: 6px; display: flex; align-items: center; gap: 15px; }
.partner-form-actions > span { color: var(--ink-500); font-size: 10px; line-height: 1.5; }
.partner-access-status { padding: 20px 22px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.partner-access-status small { color: var(--ink-500); font-size: 10px; overflow-wrap: anywhere; }
.partner-password-form, .partner-danger-panel form { padding: 20px 22px 23px; display: grid; gap: 14px; }
.partner-password-form .portal-button, .partner-danger-panel .portal-button { width: 100%; }
.portal-form-help { color: var(--ink-500); font-size: 9px; line-height: 1.55; }
.portal-password-shell { position: relative; }
.portal-field .portal-password-shell input { width: 100%; padding-right: 45px; }
.portal-password-shell button { position: absolute; width: 34px; height: 34px; top: 5px; right: 5px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 7px; color: var(--ink-500); background: transparent; cursor: pointer; }
.portal-password-shell button:hover { color: var(--navy-800); background: #eef4f7; }
.portal-password-shell svg { width: 17px; height: 17px; }
.partner-danger-panel { border-color: #efd6d8; }
.partner-danger-panel form p { margin: 0; color: var(--ink-500); font-size: 10px; line-height: 1.65; }
.portal-button.is-danger { color: #a51e29; border-color: #efc9cd; background: #fff3f4; }
.portal-button.is-danger:hover { color: var(--white); border-color: var(--red-600); background: var(--red-600); }
.partner-list-header { align-items: flex-end; flex-direction: column; }
.partner-list-header > div { align-self: flex-start; }
.partner-filter-form { width: 100%; display: grid; grid-template-columns: minmax(220px, 1fr) 190px 190px auto; align-items: end; gap: 11px; }
.partner-search input[type="search"] { min-width: 0; }

.menu-admin-panel { overflow: visible; }
.menu-order-list { padding: 10px; display: grid; gap: 7px; }
.menu-order-item { min-height: 68px; padding: 10px 12px; display: grid; grid-template-columns: 34px 42px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; border: 1px solid #dfe7ed; border-radius: var(--radius); background: var(--white); }
.menu-order-item.is-hidden { background: #f7f9fa; opacity: .78; }
.menu-order-position { color: var(--ink-500); font-size: 11px; font-weight: 850; text-align: center; }
.menu-order-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 7px; color: var(--blue-500); background: #edf5fa; }
.menu-order-icon svg { width: 20px; height: 20px; }
.menu-order-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.menu-order-copy strong { color: var(--navy-900); font-size: 12px; }
.menu-order-copy small { overflow: hidden; color: var(--ink-500); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.menu-order-actions { display: flex; align-items: center; gap: 5px; }
.menu-order-actions form { margin: 0; }
.menu-order-actions button { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 1px solid #d4dfe6; border-radius: 7px; color: var(--navy-800); background: var(--white); cursor: pointer; }
.menu-order-actions button:hover { border-color: #a9bdca; background: #f5f8fa; }
.menu-order-actions button:disabled { color: #b6c0c9; border-color: #e5eaed; background: #f8fafb; cursor: not-allowed; }
.menu-order-actions button svg { width: 17px; height: 17px; }
.portal-info-note { margin-top: 18px; padding: 16px 18px; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 11px; border: 1px solid #d6e3ea; border-radius: var(--radius); color: var(--ink-700); background: #f8fafb; }
.portal-info-note svg { width: 20px; height: 20px; color: var(--blue-500); }
.portal-info-note p { margin: 0; font-size: 11px; line-height: 1.65; }
.portal-info-note strong { color: var(--navy-900); }

.family-admin-detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .45fr); gap: 22px; align-items: start; }
.family-admin-detail > .partner-danger-panel { margin-top: 22px; }
.family-admin-form { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.family-list-header { align-items: flex-end; flex-direction: column; }
.family-list-header > div { align-self: flex-start; }
.family-filter-form { width: 100%; display: grid; grid-template-columns: minmax(240px, 1fr) 210px auto; align-items: end; gap: 11px; }
.membership-filter-form { grid-template-columns: minmax(230px, 1fr) 190px 190px auto; }
.membership-admin-summary { margin: 22px 24px 0; padding: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border: 1px solid #d8e3e9; border-radius: 8px; background: #f7fafb; }
.membership-admin-summary > span { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.membership-admin-summary small { color: var(--ink-500); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.membership-admin-summary strong { color: var(--navy-900); font-size: 13px; line-height: 1.45; }
.partner-danger-panel button:disabled { cursor: not-allowed; opacity: .5; }

.portal-sidebar-overlay,
.portal-mobile-header {
  display: none;
}

.portal-workspace {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.portal-workspace .portal-main {
  width: 100%;
  flex: 1;
}

.portal-workspace .portal-footer {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  body.portal-menu-open {
    overflow: hidden;
  }

  .portal-shell {
    padding-left: 0;
  }

  .portal-sidebar {
    width: min(290px, calc(100vw - 54px));
    box-shadow: 18px 0 45px rgba(4,20,38,.26);
    transform: translateX(-102%);
    transition: transform .22s ease;
  }

  .portal-sidebar.is-open {
    transform: translateX(0);
  }

  .portal-sidebar-overlay {
    position: fixed;
    z-index: 1000;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    display: block;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: rgba(4,20,38,.56);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }

  body.portal-menu-open .portal-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .portal-mobile-header {
    position: sticky;
    z-index: 999;
    top: 0;
    min-height: 70px;
    padding: 10px 18px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 92px;
    align-items: center;
    gap: 12px;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: var(--navy-900);
  }

  .portal-mobile-header > button {
    width: 42px;
    height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 7px;
    color: var(--white);
    background: rgba(255,255,255,.04);
    cursor: pointer;
  }

  .portal-mobile-header > button svg {
    width: 20px;
    height: 20px;
  }

  .portal-mobile-header > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    color: rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 800;
  }

  .portal-mobile-header > span small {
    color: rgba(255,255,255,.4);
    font-size: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .portal-mobile-header > img {
    justify-self: end;
    width: 92px;
    height: 40px;
    object-fit: contain;
    object-position: right center;
  }

  .portal-workspace .portal-main {
    padding-top: 40px;
  }

  .partner-detail-grid { grid-template-columns: 1fr; }
  .partner-side-stack .portal-panel:first-child { margin-top: 0; }
  .partner-filter-form { grid-template-columns: 1fr 1fr; }
  .family-admin-detail { grid-template-columns: 1fr; }
  .family-admin-detail > .partner-danger-panel { margin-top: 0; }
  .family-filter-form { grid-template-columns: 1fr 1fr; }
  .membership-filter-form { grid-template-columns: 1fr 1fr; }
  .membership-admin-summary { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .portal-mobile-header {
    grid-template-columns: 42px minmax(0, 1fr) 76px;
    padding-inline: 12px;
  }

  .portal-mobile-header > img {
    width: 76px;
  }

  .portal-workspace .portal-main {
    padding-top: 32px;
  }

  .partner-edit-form { grid-template-columns: 1fr; padding: 19px; }
  .portal-field-wide, .portal-field-full, .portal-form-section { grid-column: auto; }
  .partner-form-actions { align-items: stretch; flex-direction: column; }
  .partner-form-actions .portal-button { width: 100%; }
  .partner-filter-form { grid-template-columns: 1fr; }
  .family-admin-form { grid-template-columns: 1fr; padding: 19px; }
  .family-filter-form { grid-template-columns: 1fr; }
  .membership-filter-form, .membership-admin-summary { grid-template-columns: 1fr; }
  .menu-order-item { grid-template-columns: 30px 38px minmax(0, 1fr); }
  .menu-order-icon { width: 38px; height: 38px; }
  .menu-order-item > .status-badge { grid-column: 2 / -1; justify-self: start; }
  .menu-order-actions { grid-column: 2 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-sidebar,
  .portal-sidebar-overlay,
  .portal-sidebar-nav a {
    transition: none;
  }
}

/* Financeiro institucional */
.financeiro-metricas .metric-card { min-width: 0; }
.financeiro-metricas .metric-card strong { font-size: clamp(20px, 2vw, 28px); white-space: nowrap; }
.financeiro-metricas .metric-card strong.is-negative { color: var(--red-600); }
.financeiro-metricas .metric-card > small { margin-top: 8px; display: block; color: var(--ink-500); font-size: 9px; line-height: 1.45; }
.financeiro-leitura { margin-top: 22px; }
.financeiro-formulario-panel { overflow: visible; }
.financeiro-formulario { padding: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.financeiro-formulario .portal-field-wide { grid-column: span 2; }
.financeiro-formulario .portal-field-full,
.financeiro-formulario .portal-form-section { grid-column: 1 / -1; }
.financeiro-upload input[type="file"],
.financeiro-anexar input[type="file"] { min-height: 52px; height: auto; padding: 10px 12px; cursor: pointer; }
.financeiro-upload small,
.financeiro-anexar small { color: var(--ink-500); font-size: 9px; line-height: 1.5; }
.financeiro-cabecalho-acoes { display: flex; align-items: center; gap: 8px; }
.financeiro-resumo-detalhe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.financeiro-resumo-detalhe > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.financeiro-resumo-detalhe small,
.financeiro-documentos-cabecalho small { color: var(--ink-500); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.financeiro-resumo-detalhe strong { color: var(--ink-900); font-size: 13px; }
.financeiro-tipo { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-700); font-size: 11px; font-weight: 850; }
.financeiro-tipo::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--ink-500); }
.financeiro-tipo.is-entry { color: #176a48; }
.financeiro-tipo.is-entry::before { background: var(--green-500); }
.financeiro-tipo.is-exit { color: #9a1c27; }
.financeiro-tipo.is-exit::before { background: var(--red-600); }
.financeiro-documentos-cabecalho { margin-top: 26px; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e3eaee; }
.financeiro-documentos-cabecalho > div { display: flex; flex-direction: column; gap: 3px; }
.financeiro-documentos-cabecalho strong { color: var(--navy-900); font-size: 14px; }
.financeiro-sem-documentos { margin-top: 12px; padding: 18px; border: 1px dashed #cfdae1; border-radius: var(--radius); color: var(--ink-500); background: #fafcfd; font-size: 11px; text-align: center; }
.financeiro-documentos-lista { margin-top: 12px; display: grid; gap: 8px; }
.financeiro-documentos-lista article { min-height: 62px; padding: 9px 11px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 11px; border: 1px solid #dfe7ed; border-radius: var(--radius); background: #fafcfd; }
.financeiro-documento-icone { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 7px; color: var(--red-600); background: #fff0f1; }
.financeiro-documento-icone svg { width: 20px; height: 20px; }
.financeiro-documentos-lista article > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.financeiro-documentos-lista article > span:nth-child(2) strong { overflow: hidden; color: var(--ink-900); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.financeiro-documentos-lista article > span:nth-child(2) small { color: var(--ink-500); font-size: 9px; }
.financeiro-documentos-lista article > a { min-height: 36px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cdd9e1; border-radius: 7px; color: var(--navy-800); background: var(--white); font-size: 10px; font-weight: 800; }
.financeiro-documentos-lista article > a:hover { border-color: #9fb5c4; background: #f5f8fa; }
.financeiro-documentos-lista article > a svg { width: 16px; height: 16px; }
.financeiro-documentos-lista article form { margin: 0; }
.financeiro-documentos-lista article form button { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 1px solid #efc9cd; border-radius: 7px; color: #a51e29; background: #fff3f4; cursor: pointer; }
.financeiro-documentos-lista article form button:hover { color: var(--white); border-color: var(--red-600); background: var(--red-600); }
.financeiro-documentos-lista article form svg { width: 16px; height: 16px; }
.financeiro-anexar { margin-top: 18px; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; border: 1px solid #dce5ea; border-radius: var(--radius); background: #f8fafb; }
.financeiro-lista-cabecalho { align-items: flex-end; flex-direction: column; }
.financeiro-lista-cabecalho > div { align-self: flex-start; }
.financeiro-filtros { width: 100%; display: grid; grid-template-columns: minmax(210px, 1fr) 155px 120px 155px 155px auto; align-items: end; gap: 10px; }
.financeiro-tabela td:first-child { white-space: nowrap; }
.financeiro-tabela td:first-child small { margin-top: 3px; display: block; color: var(--ink-500); font-size: 8px; }
.financeiro-tabela td:nth-child(5) { color: var(--ink-900); white-space: nowrap; }
.financeiro-anexos-contagem { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-700); font-size: 11px; font-weight: 800; }
.financeiro-anexos-contagem svg { width: 15px; height: 15px; color: var(--blue-500); }

@media (max-width: 1100px) {
  .financeiro-formulario { grid-template-columns: 1fr 1fr; }
  .financeiro-filtros { grid-template-columns: 1fr 1fr 1fr; }
  .financeiro-filtros .financeiro-busca { grid-column: span 2; }
}

@media (max-width: 700px) {
  .financeiro-metricas { grid-template-columns: 1fr; }
  .financeiro-formulario { grid-template-columns: 1fr; padding: 19px; }
  .financeiro-formulario .portal-field-wide,
  .financeiro-formulario .portal-field-full,
  .financeiro-formulario .portal-form-section { grid-column: auto; }
  .financeiro-cabecalho-acoes { align-items: stretch; flex-direction: column; width: 100%; }
  .financeiro-resumo-detalhe { grid-template-columns: 1fr 1fr; }
  .financeiro-documentos-lista article { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .financeiro-documentos-lista article > a { grid-column: 2; justify-self: start; }
  .financeiro-documentos-lista article form { grid-column: 3; grid-row: 2; }
  .financeiro-anexar { grid-template-columns: 1fr; }
  .financeiro-anexar .portal-button { width: 100%; }
  .financeiro-filtros { grid-template-columns: 1fr; }
  .financeiro-filtros .financeiro-busca { grid-column: auto; }
  .financeiro-filtros .portal-button { width: 100%; }
}
