/* Identidade PJ2X: roxo Moov como base; grafite e dourado como acentos. */
:root {
    color-scheme: light;
    --roxo-principal: #7240bb;
    --roxo-escuro: #492477;
    --roxo-suave: #f2ecfa;
    --dourado: #c5a451;
    --amarelo-detalhe: #c5a451;
    --cinza-escuro: #26232e;
    --cinza-medio: #696371;
    --branco: #fff;
    --line: #e8e4ed;
    --surface: #f8f7fa;
    --shadow: 0 3px 14px rgba(48, 28, 75, .035);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 16px;
    color: var(--cinza-escuro);
    background: var(--surface);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
[hidden] { display: none !important; }
svg { flex-shrink: 0; vertical-align: middle; }
img { max-width: 100%; }
a { color: var(--roxo-principal); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #b38be9; outline-offset: 3px; }
h1, h2, h3, p { margin: 0 0 .7rem; }
h1 { font-size: clamp(1.75rem, 2.5vw, 2.15rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.2; }
h2 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.015em; }
h3 { font-size: 1rem; font-weight: 600; }
small { font-size: .8125rem; }
.muted, small { color: var(--cinza-medio); }
strong { font-weight: 600; }
.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; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; background: #fff; padding: .8rem; border: 2px solid var(--roxo-principal); }
.skip-link:focus { top: 1rem; }
.app-shell { display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 30px 18px 18px; background: var(--branco); color: var(--cinza-escuro); border-right: 1px solid var(--line); overflow-y: auto; }
.sidebar-top { display: flex; align-items: flex-start; justify-content: space-between; }
.brand { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 12px; padding: 0 8px 24px; color: var(--cinza-medio); }
.brand-lockup { display: grid; grid-template-columns: minmax(0, 1.18fr) 1px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; }
.brand img { display: block; width: 100%; height: auto; }
.brand-divider { height: 26px; background: var(--line); }
.brand-moov { display: block; width: 100%; aspect-ratio: 4; background: var(--roxo-principal); mask: url('../icons/moov-logo-mask.png') center / contain no-repeat; -webkit-mask: url('../icons/moov-logo-mask.png') center / contain no-repeat; }
.brand span { font-size: .8125rem; }
.brand:hover { text-decoration: none; }
.menu-label { margin: 18px 14px 8px; font-size: .6875rem; text-transform: uppercase; letter-spacing: .11em; color: var(--cinza-medio); }
.menu { display: grid; gap: 4px; }
.menu a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; color: #5c5267; font-size: .875rem; border-radius: 8px; min-height: 44px; }
.menu a:hover { background: #f8f5fc; text-decoration: none; }
.menu a[aria-current="page"] { background: var(--roxo-suave); color: var(--roxo-escuro); font-weight: 600; }
.product-menu a { font-size: .8125rem; }
.product-menu svg { color: #94701d; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.powered { display: flex; gap: 8px; align-items: center; margin: 22px 14px 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--cinza-medio); }
.powered strong, .story-footer strong { font-size: 1.3rem; letter-spacing: -.06em; }
.powered strong { color: var(--roxo-principal); }
.story-footer strong { color: #fff; }
.powered strong span, .story-footer strong span { color: var(--dourado); font-size: .55rem; margin-left: 3px; }
.workspace { min-width: 0; }
.topbar { height: 78px; padding: 0 36px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 15px; font-size: .875rem; color: var(--cinza-medio); }
.breadcrumb strong { color: #3d3648; font-weight: 500; }
.topbar-account { display: flex; gap: 11px; align-items: center; min-width: 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; background: #f0e9f8; color: #633795; font-weight: 600; border-radius: 50%; }
.account-name { display: grid; font-size: .8125rem; }
.account-name strong { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-name small { font-size: .75rem; }
.icon-button { background: transparent; border: 0; border-radius: 8px; min-height: 44px; min-width: 44px; padding: 10px; color: inherit; }
.icon-button:hover { background: #a78ac01a; }
.main { padding: 32px 36px 18px; max-width: 1640px; margin: 0 auto; min-width: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { color: #79578e; text-transform: uppercase; font-size: .6875rem; letter-spacing: .1em; font-weight: 600; margin-bottom: 10px; }
.page-description { color: var(--cinza-medio); margin-bottom: 0; font-size: .875rem; max-width: 680px; }
.page-heading h1 { margin-bottom: 8px; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; font-size: .75rem; color: #77707f; }
.panel { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 20px; box-shadow: var(--shadow); min-width: 0; }
.panel.narrow { max-width: 480px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title h2, .section-title p { margin-bottom: 0; }
.section-title p { font-size: .875rem; margin-top: 5px; }
.section-title > .muted { font-size: .8125rem; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.cards-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-fields { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.account-fields > legend { padding: 0; margin-bottom: 16px; font-size: .9375rem; font-weight: 600; color: #33283f; }
.metric-card { position: relative; padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); min-width: 0; }
.metric-card > span { display: block; color: var(--cinza-medio); font-size: .8125rem; margin-bottom: 12px; }
.metric-card > strong { display: block; font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.2; letter-spacing: -.04em; color: #33283f; font-weight: 650; overflow-wrap: anywhere; }
.metric-card > small { display: block; font-size: .75rem; margin-top: 9px; }
.metric-card.accent { border-top: 3px solid var(--roxo-principal); padding-top: 19px; }
.metric-card .metric-icon { position: absolute; right: 18px; top: 17px; color: #9a82b7; }
.data-caption { display: block; font-size: .75rem; color: #746d7b; margin-bottom: 14px; }
.portfolio-title { margin-top: 25px; margin-bottom: 12px; }
.portfolio { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.portfolio-card { display: flex; position: relative; align-items: flex-start; gap: 16px; padding: 22px; border: 1px solid #dfd2ed; border-radius: 12px; background: linear-gradient(110deg, #fbf9fe, #fff); color: var(--cinza-escuro); transition: border-color .15s; }
.portfolio-card:hover { text-decoration: none; border-color: var(--roxo-principal); }
.portfolio-health { border-color: #e8dfca; background: linear-gradient(110deg, #fdfbf5, #fff); }
.product-icon, .choice-icon { width: 46px; height: 46px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: #ede3f8; color: var(--roxo-principal); flex-shrink: 0; }
.portfolio-health .product-icon { background: #f5edda; color: #94701d; }
.portfolio-card h3 { margin: 0 0 5px; }
.portfolio-card p { font-size: .8125rem; color: var(--cinza-medio); margin-bottom: 14px; }
.portfolio-count { font-size: .75rem; color: var(--cinza-medio); }
.portfolio-count strong { font-size: 1.25rem; color: #3e2c52; margin-right: 4px; }
.portfolio-count span { margin-left: 14px; }
.portfolio-link { font-size: .75rem; color: var(--roxo-principal); margin-left: auto; white-space: nowrap; align-self: flex-end; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compact-list, .timeline { list-style: none; padding: 0; margin: 0; }
.compact-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #f1eef4; font-size: .875rem; }
.compact-list li:last-child { border-bottom: 0; }
.compact-list strong { display: inline-flex; justify-content: center; min-width: 32px; padding: 3px 9px; background: var(--roxo-suave); border-radius: 5px; color: #694194; }
.timeline li { padding: 0 0 20px 20px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--roxo-principal); }
.timeline span, .timeline strong, .timeline small { display: block; }
.timeline span { color: var(--cinza-medio); font-size: .75rem; }
.timeline strong { margin: 4px 0; font-size: .875rem; }
label { display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-start; font-size: .875rem; font-weight: 500; min-width: 0; }
label input, label select, label textarea, label .password-field { flex-basis: 100%; }
input, select, textarea { width: 100%; min-width: 0; background: #fff; border: 1px solid #dcd6e4; border-radius: 7px; color: #322b3b; padding: 10px 12px; min-height: 44px; font-size: .875rem; }
input::placeholder, textarea::placeholder { color: #8a8292; }
input:hover, select:hover, textarea:hover { border-color: #b7a9c8; }
input:focus, select:focus, textarea:focus { border-color: var(--roxo-principal); }
input[readonly] { background: #f7f5f9; color: var(--cinza-medio); }
input[type="checkbox"], input[type="radio"] { width: 18px; min-height: 18px; height: 18px; accent-color: var(--roxo-principal); flex-basis: auto; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23696371' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.stack-form { display: grid; gap: 18px; }
.single-field { margin: 16px 0; }
.form-page h2 { margin-top: 24px; }
.form-page h2:first-child, .section-title h2 { margin-top: 0; }
.form-actions, .filter-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-actions { align-self: end; }
.form-actions { margin-top: 8px; }
.filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: end; gap: 16px; }
.list-filters { grid-template-columns: 1.5fr 1fr 1fr 1fr auto; padding: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; padding: 10px 16px; min-height: 44px; font-size: .875rem; font-weight: 500; line-height: 1.4; color: var(--roxo-principal); background: #f1eafa; white-space: nowrap; text-decoration: none; }
.btn:hover { text-decoration: none; filter: brightness(.96); }
.btn-primary { background: var(--roxo-principal); color: #fff; box-shadow: 0 2px 5px #63349f17; }
.btn-secondary { color: #68418d; border-color: #ded2ed; background: #f6f1fc; }
.btn-ghost { background: transparent; border-color: var(--line); color: #665c72; }
.btn-small { min-height: 38px; padding: 8px 12px; font-size: .8125rem; }
.btn.danger { background: #fff8f8; border-color: #eccaca; color: #a42d39; }
.btn.is-loading::before { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.messages { display: grid; gap: 10px; margin-bottom: 20px; }
.alert { border: 1px solid var(--line); border-radius: 8px; padding: 12px 15px; font-size: .875rem; background: #f5f0fa; }
.alert-success { color: #286443; border-color: #c9e6d4; background: #f0f9f3; }
.alert-error { color: #982d3d; border-color: #edc8ce; background: #fff4f5; }
.alert-warning, .helper-box { color: #705924; border-color: #eddfbc; background: #fffbf1; }
.badge { display: inline-block; font-size: .75rem; font-weight: 500; border-radius: 5px; padding: 4px 9px; line-height: 1.5; background: #f1eff4; color: #61596d; white-space: nowrap; }
.badge[data-status="Contato"] { background: #f0e9fa; color: #7146a3; }
.badge[data-status="Em negociação"] { background: #eaf0fa; color: #3b5d91; }
.badge[data-status="Sem resposta do cliente"], .badge[data-status="Pendente"] { background: #fff4d9; color: #846516; }
.badge[data-status="Cadastro reprovado"], .badge[data-status="Reprovado"] { background: #fbecef; color: #a13c53; }
.badge[data-status="Venda ganha"], .badge[data-status="Pago"], .badge[data-status="Aprovado"] { background: #eaf5ee; color: #346c4c; }
.result-count { font-size: .8125rem; color: var(--cinza-medio); background: #f6f3f9; border-radius: 5px; padding: 4px 10px; }
.table-wrap { overflow: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .875rem; }
th { background: #faf9fc; border-block: 1px solid #efebf3; color: #756b80; font-size: .75rem; font-weight: 500; white-space: nowrap; }
th, td { padding: 15px 14px; vertical-align: middle; border-bottom: 1px solid #f0edf4; }
td { overflow-wrap: anywhere; }
tbody tr:hover { background: #fcfaff; }
tbody tr:last-child td { border-bottom: 0; }
.client-name { font-size: .875rem; font-weight: 600; }
.cell-secondary { display: block; margin-top: 3px; font-size: .75rem; }
.product-pill { display: inline-flex; gap: 6px; align-items: center; font-size: .75rem; color: #775297; white-space: nowrap; }
.product-pill.health { color: #96732b; }
.pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 12px; font-size: .8125rem; color: var(--cinza-medio); }
.pagination > div { display: flex; gap: 8px; }
.empty-state { display: grid; justify-items: center; padding: 48px 20px; text-align: center; }
.empty-state p { font-size: .875rem; max-width: 420px; color: var(--cinza-medio); margin-bottom: 20px; }
.empty-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: #f5f0fc; color: #9670b5; border-radius: 18px; margin-bottom: 18px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-grid div { min-width: 0; }
.detail-grid span { display: block; color: var(--cinza-medio); font-size: .8125rem; }
.detail-grid strong { display: block; font-size: .875rem; overflow-wrap: anywhere; margin-top: 4px; }
.free-text { white-space: pre-wrap; font-size: .875rem; }
.danger-zone { border-color: #edcfd3; margin-top: 32px; }
.danger-zone h2 { color: #9b3946; }
.followup-list { display: grid; gap: 8px; }
.followup-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border-radius: 7px; background: #fffcf4; color: #625531; font-size: .875rem; }
.followup-item small { display: block; margin-top: 4px; }
.followup-days { font-size: .75rem; white-space: nowrap; }
.alert-panel { border-left: 3px solid var(--dourado); }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form select { min-width: 130px; }
.actions-cell { display: grid; gap: 8px; }
.finance-table { min-width: 720px; }
.finance-table td { overflow-wrap: normal; padding-block: 16px; }
.finance-client { min-width: 170px; max-width: 250px; }
.finance-client .client-name { display: block; }
.finance-nowrap { white-space: nowrap; }
.finance-credit { color: var(--roxo-escuro); font-weight: 600; }
.finance-table .cell-secondary { line-height: 1.5; }
.finance-is-open { overflow: hidden; }
.finance-drawer { position: fixed; inset: 0 0 0 auto; width: min(560px, 100%); height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--line); background: #fff; color: var(--cinza-escuro); box-shadow: -12px 0 50px #2415311a; }
.finance-drawer[open] { display: flex; flex-direction: column; }
.finance-drawer::backdrop { background: #24153166; }
.finance-drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px; border-bottom: 1px solid var(--line); }
.finance-drawer-header h2 { font-size: 1.2rem; margin-bottom: 6px; }
.finance-drawer-header p { margin-bottom: 0; color: var(--cinza-medio); font-size: .875rem; overflow-wrap: anywhere; }
.finance-drawer-header .icon-button { color: var(--cinza-medio); }
.finance-drawer-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px; }
.finance-credit-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; border: 1px solid #e3d6f1; border-radius: 9px; background: #faf7fe; margin-bottom: 24px; }
.finance-credit-summary div > span { display: block; color: var(--cinza-medio); font-size: .8125rem; }
.finance-credit-summary strong { display: block; font-size: 1.75rem; color: var(--roxo-escuro); margin-top: 5px; }
.finance-section + .finance-section { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 24px; }
.finance-section h3 { margin-bottom: 18px; }
.finance-more { margin-top: 18px; font-size: .875rem; }
.finance-more > summary { cursor: pointer; color: var(--roxo-principal); padding-block: 10px; }
.finance-more .detail-grid { margin-top: 14px; }
.finance-observation { margin: 20px 0; }
.finance-observation > span { color: var(--cinza-medio); font-size: .8125rem; }
.finance-observation p { font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 5px; }
.finance-operation { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 4px; }
.finance-operation > summary { padding: 14px 0; cursor: pointer; font-size: .875rem; font-weight: 500; }
.finance-operation .stack-form { margin: 6px 0 18px; }
.finance-operation textarea { min-height: 76px; }
.finance-operation .muted { font-size: .8125rem; margin-bottom: 0; }
.finance-reject > summary { color: #a42d39; }
.financial-fields { display: none; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; border-radius: 8px; background: #f8f5fb; }
.financial-fields.is-visible { display: grid; }
.helper-box { padding: 14px; font-size: .8125rem; border: 1px solid #eddfbc; border-radius: 8px; overflow-wrap: anywhere; }
.helper-box span, .helper-box code { display: block; }
.helper-box code { margin-top: 5px; white-space: pre-wrap; }
.check-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; }
.checkbox-wrapper { display: flex; align-items: center; gap: 8px; }
.checkbox-wrapper .checkbox-custom { display: none; }
.checkbox-label-text { cursor: pointer; }
.product-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0; margin: 0; border: 0; }
.product-choice { position: relative; display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.product-choice input { flex-shrink: 0; margin: 0; }
.product-choice strong, .product-choice small { display: block; }
.product-choice small { margin-top: 4px; font-size: .75rem; font-weight: 400; }
.product-choice:has(input:checked) { border-color: var(--roxo-principal); background: #f9f5ff; box-shadow: 0 0 0 1px var(--roxo-principal); }
.required-label { font-size: .6875rem; font-weight: 400; color: #82728f; margin-left: auto; }
.step-label { color: #896f43; background: #f8f2e5; padding: 4px 10px; border-radius: 5px; font-size: .75rem; }
.opportunity-form { max-width: 1060px; }
.notes-field { margin-top: 24px; }
.notes-field small { font-weight: 400; }
.form-bottom { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 20px; }
.referrer { display: flex; align-items: center; gap: 12px; font-size: .75rem; color: var(--cinza-medio); }
.referrer strong { color: #51465d; display: block; }
.referrer small { display: block; }
.password-field { position: relative; display: block; width: 100%; }
.password-field input { padding-right: 48px; }
.password-toggle { position: absolute; top: 0; right: 1px; min-height: 44px; width: 44px; border: 0; border-radius: 6px; background: transparent; color: #7b6c8a; }
.password-toggle svg { width: 20px; height: 20px; }
.password-toggle:hover { background: #7444b310; }
.password-toggle.is-visible { color: var(--roxo-principal); }
.login-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; background: #fff; }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 54px 9%; background: radial-gradient(ellipse at 15% 20%, #7750a4 0, #563080 38%, #362047 100%); color: #fff; }
.login-story::after { content: ''; width: 600px; height: 600px; position: absolute; right: -380px; bottom: -160px; border: 1px solid #cab17b22; border-radius: 50%; box-shadow: 0 0 0 65px #cab17b08, 0 0 0 130px #cab17b06; pointer-events: none; }
.login-brands { display: grid; grid-template-columns: minmax(0, 1.15fr) 1px minmax(0, 1fr); align-items: center; gap: 18px; width: 100%; max-width: 330px; position: relative; z-index: 1; }
.login-logo, .login-moov-logo { display: block; width: 100%; height: auto; }
.login-brand-divider { height: 32px; background: #ffffff45; }
.story-content { padding: 60px 0 70px; position: relative; z-index: 1; }
.story-kicker { font-size: .6875rem; text-transform: uppercase; letter-spacing: .13em; color: #d5bc84; margin-bottom: 24px; }
.story-content h1 { font-size: clamp(2.5rem, 4.1vw, 4rem); font-weight: 500; line-height: 1.08; letter-spacing: -.055em; margin-bottom: 30px; }
.story-content em { font-style: normal; color: #dec180; }
.story-content > p:not(.story-kicker) { color: #ddcfe9; max-width: 360px; font-size: 1rem; line-height: 1.7; }
.story-products { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.story-products span { display: flex; gap: 8px; align-items: center; font-size: .75rem; padding: 10px 12px; border: 1px solid #d9c2f13b; border-radius: 7px; background: #ffffff08; }
.story-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .6875rem; color: #d8c9e6; position: relative; z-index: 1; }
.story-footer > span:last-child { display: flex; align-items: center; gap: 7px; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 60px 12%; }
.login-form-wrap { width: 100%; max-width: 390px; }
.login-form-wrap h2 { font-size: clamp(1.8rem, 2.4vw, 2.3rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.2; margin: 14px 0; }
.login-form-wrap > .muted { font-size: .875rem; }
.login-form { margin-top: 32px; gap: 20px; }
.login-form input { min-height: 48px; }
.login-form .password-toggle { min-height: 48px; }
.login-form .btn { margin-top: 5px; min-height: 48px; }
.login-help { color: #79707f; font-size: .75rem; margin-top: 20px; text-align: center; }
.login-help summary { cursor: pointer; padding: 8px; }
.login-help p { margin-top: 10px; }
.login-caption { margin: 50px 0 0; text-align: center; font-size: .6875rem; color: #8a818e; }
.auth-page { min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; background: #f4f0f9; }
.auth-card { padding: 36px; max-width: 460px; width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 50px #3e21500a; }
.auth-card-wide { max-width: 740px; }
.auth-card h1 { font-size: 1.6rem; }
.auth-card > p { color: var(--cinza-medio); font-size: .875rem; margin-bottom: 24px; }
.auth-logo { width: 128px; margin-bottom: 26px; }
.auth-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; font-size: .875rem; }
.demo-banner { background: #fff7df; color: #7d642c; text-align: center; font-size: .75rem; padding: 7px 16px; border-bottom: 1px solid #eddfbd; }
.notification-schedule { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.notification-schedule li { padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: #faf8fd; }
.notification-schedule span, .notification-schedule strong, .notification-schedule small { display: block; }
.notification-schedule span { font-size: .75rem; color: var(--roxo-principal); margin-bottom: 6px; }
.notification-schedule strong { font-size: .875rem; margin-bottom: 7px; }
.notification-schedule small { font-size: .75rem; }
.email-field-note { font-size: .8125rem; color: var(--cinza-medio); margin-bottom: 0; }
.email-days-off > summary, .email-variables > summary { cursor: pointer; font-size: .875rem; color: var(--roxo-principal); padding-block: 8px; }
.email-days-off label { margin-top: 12px; }
.email-variables > div { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 12px; }
.email-variables code { background: #f4eefb; color: #70478f; padding: 5px 8px; border-radius: 5px; font-size: .75rem; }
.email-preview-controls { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 16px; align-items: end; margin-bottom: 20px; }
.email-preview-controls label { margin: 0; min-width: 0; }
.email-preview-frame { width: 100%; height: 950px; border: 1px solid var(--line); border-radius: 8px; background: #f5f3f8; }
.badge[data-email-status="enviado"] { background: #eaf5ee; color: #346c4c; }
.badge[data-email-status="falha"] { background: #fbecef; color: #a13c53; }
.badge[data-email-status="nova_tentativa"] { background: #fff4d9; color: #846516; }
.advanced-filters { grid-column: 1 / -1; color: var(--cinza-medio); font-size: .8125rem; }
.advanced-filters summary, .financial-summary summary { cursor: pointer; padding: 8px 0; }
.advanced-filters .grid-form { margin-top: 16px; }
.financial-summary { font-size: .875rem; }
.financial-summary .cards { margin-top: 20px; margin-bottom: 14px; }
.financial-summary > .muted { font-size: .8125rem; }
.demo-access { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.demo-access p { font-size: .75rem; color: var(--cinza-medio); }
.demo-access > div { display: flex; flex-wrap: wrap; gap: 7px; }
.demo-access .btn { font-size: .75rem; min-height: 40px; padding: 8px 10px; }
.mobile-only { display: none; }
@media (min-width: 1600px) { .portfolio-card { padding: 26px; } }
@media (max-width: 1250px) {
    .app-shell { grid-template-columns: 224px minmax(0,1fr); }
    .main { padding: 28px 24px 18px; }
    .topbar { padding-inline: 24px; }
    .list-filters { grid-template-columns: 1fr 1fr; }
    .list-filters .search-field { grid-column: 1 / -1; }
    .portfolio-link { display: none; }
    .portfolio-card { padding: 20px; gap: 12px; }
    .metric-card { padding: 18px; }
    .metric-card .metric-icon { display: none; }
}
@media (max-width: 1000px) {
    .finance-table { min-width: 0; }
    .finance-client { min-width: 0; max-width: none; }
    .app-shell { display: block; }
    .sidebar { position: fixed; z-index: 50; width: 270px; transform: translateX(-100%); visibility: hidden; }
    .menu-is-open .sidebar { transform: translateX(0); visibility: visible; }
    .menu-backdrop { position: fixed; inset: 0; background: #24153177; z-index: 45; }
    body.menu-is-open { overflow: hidden; }
    .mobile-only { display: inline-flex; align-items: center; justify-content: center; }
    .sidebar-top .icon-button { color: var(--roxo-escuro); }
    .brand { padding-left: 8px; }
    .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .login-story { padding: 36px 10%; }
    .login-form-side { padding: 40px 10%; }
    .story-footer > span:first-child { display: none; }
    .story-products { flex-direction: column; align-items: flex-start; }
    .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
    .responsive-table tbody { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
    .responsive-table tr { display: block; border: 1px solid var(--line); border-radius: 9px; padding: 12px; }
    .responsive-table td { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 5px 10px; padding: 8px 0; font-size: .8125rem; border: 0; }
    .responsive-table td::before { content: attr(data-label); color: var(--cinza-medio); font-weight: 400; font-size: .75rem; grid-row: 1 / 3; }
    .responsive-table td .cell-secondary { grid-column: 2; margin-top: 0; }
    .responsive-table td .badge, .responsive-table td .btn { justify-self: start; white-space: normal; }
}
@media (max-width: 680px) {
    .notification-schedule { grid-template-columns: 1fr; }
    .email-preview-controls { grid-template-columns: 1fr; }
    .email-preview-controls .btn { width: 100%; }
    .finance-drawer-header, .finance-drawer-body { padding: 20px; }
    .finance-drawer .detail-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .finance-drawer .detail-grid strong { font-size: .8125rem; }
    .main { padding: 24px 16px 16px; }
    .topbar { height: 68px; padding-inline: 12px; gap: 8px; }
    .breadcrumb { gap: 9px; font-size: .8125rem; }
    .breadcrumb > span:first-of-type { display: none; }
    .breadcrumb > span:nth-of-type(2) { display: none; }
    .account-name { display: none; }
    .topbar-account { gap: 3px; }
    .avatar { width: 34px; height: 34px; }
    .page-heading { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
    .page-heading h1 { font-size: 1.75rem; }
    .eyebrow { font-size: .625rem; }
    .page-description { font-size: .875rem; }
    .panel { padding: 18px; border-radius: 10px; }
    .portfolio, .two-column, .grid-form, .detail-grid, .product-choices, .filters, .financial-fields { grid-template-columns: 1fr; }
    .cards { gap: 10px; }
    .cards-two { grid-template-columns: 1fr; }
    .metric-card { padding: 15px; }
    .metric-card > strong { font-size: 1.45rem; }
    .metric-card > span { font-size: .75rem; min-height: 36px; margin-bottom: 4px; }
    .metric-card > small { font-size: .6875rem; }
    .portfolio-title { align-items: flex-start; flex-direction: column; gap: 4px; }
    .portfolio-title > .muted { font-size: .75rem; }
    .portfolio-count { font-size: .75rem; }
    .portfolio-count span { margin-left: 10px; }
    .portfolio-card p { font-size: .75rem; }
    .portfolio { gap: 12px; }
    .section-title { flex-wrap: wrap; }
    .product-choice { padding: 16px; }
    .choice-icon { width: 38px; height: 38px; }
    .form-bottom { align-items: stretch; flex-direction: column; }
    .form-bottom .form-actions { justify-content: flex-end; }
    .inline-form { flex-wrap: wrap; }
    .inline-form select { flex: 1; }
    .followup-item { align-items: flex-start; flex-direction: column; gap: 8px; }
    .page-footer { flex-direction: column; font-size: .6875rem; gap: 5px; }
    .pagination { font-size: .75rem; }
    .responsive-table tbody { grid-template-columns: 1fr; }
    .login-page { grid-template-columns: 1fr; }
    .login-story { padding: 28px 26px; min-height: auto; }
    .login-brands { max-width: 290px; gap: 16px; }
    .story-content { padding: 32px 0 8px; }
    .story-content h1 { font-size: 2.3rem; margin-bottom: 16px; }
    .story-content h1 br { display: none; }
    .story-content > p:not(.story-kicker), .story-footer, .story-kicker { display: none; }
    .story-products { margin-top: 20px; flex-direction: row; gap: 8px; }
    .story-products span { font-size: .6875rem; padding: 8px; }
    .story-products svg { width: 16px; }
    .login-form-side { padding: 36px 26px; }
    .login-form-wrap { max-width: 440px; }
    .login-form-wrap h2 { font-size: 1.9rem; }
    .login-form { margin-top: 24px; }
    .login-caption { margin-top: 30px; }
    .auth-card { padding: 26px; }
    .auth-actions { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
