/* Área do Cliente · Perfil — © 2026 Perfil Contabilidade e Assessoria Empresarial. Todos os direitos reservados. */
@font-face { font-family: "Schibsted Grotesk"; src: url(fonte.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
:root {
  --bg: #EEF2F6; --panel: #FFFFFF; --soft: #F3F6F9; --ink: #13274A; --gray: #56677A; --mid: #8E9CAB; --hair: #DCE3EA;
  --navy: #13274A; --navy-2: #1E3A66; --red: #CC2422; --blue: #2F6FAF; --copper: #B4532A; --sage: #2E7D5B;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] { --bg: #0D1825; --panel: #132233; --soft: #182A3D; --ink: #E6EDF5; --gray: #9AABBD; --mid: #63778D; --hair: #22364C; --blue: #7DB3EA; --copper: #E58B5F; --sage: #7FCFA5; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- página de acesso ---------- */
.lg { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(400px, 1fr); }
.lg-foto { position: relative; overflow: hidden; color: #FFFFFF; background: var(--navy) center / cover no-repeat; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 60px); gap: 32px; }
.lg-foto::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(19 39 74 / .72) 0%, rgb(19 39 74 / .55) 40%, rgb(19 39 74 / .94) 100%), linear-gradient(90deg, rgb(19 39 74 / .6), transparent 70%); }
.lg-foto > * { position: relative; z-index: 1; }
.lg-logo { height: 40px; width: auto; align-self: flex-start; }
.lg-msg { display: flex; flex-direction: column; gap: 16px; max-width: 34rem; }
.lg-msg .tag { align-self: flex-start; font-size: .82rem; font-weight: 600; color: #FFFFFF; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .25); border-radius: 999px; padding: 5px 13px; backdrop-filter: blur(6px); }
.lg-msg h1 { margin: 0; font-size: clamp(2rem, 1.1rem + 2.6vw, 3.3rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 750; text-wrap: balance; }
.lg-msg p { margin: 0; font-size: 1.04rem; line-height: 1.6; color: #D3DEE9; max-width: 42ch; }
.lg-fatos { display: flex; flex-wrap: wrap; gap: 26px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .2); }
.lg-fatos div b { display: block; font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; }
.lg-fatos div span { font-size: .82rem; color: #C2D1E0; }
.lg-lado { display: flex; flex-direction: column; background: var(--panel); padding: clamp(20px, 3vw, 44px); gap: 20px; }
.lg-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lg-topo a { font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--gray); }
.lg-topo a:hover { color: var(--ink); }
.lg-tema { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hair); background: var(--panel); display: grid; place-items: center; cursor: pointer; }
.lg-tema svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lg-card { width: min(100%, 400px); margin: auto; display: flex; flex-direction: column; gap: 22px; }
.lg-card .area { font-size: .86rem; font-weight: 600; color: var(--blue); }
.lg-card h2 { margin: 4px 0 0; font-size: 2rem; letter-spacing: -.03em; font-weight: 750; line-height: 1.1; }
.lg-card .lead { margin: 8px 0 0; color: var(--gray); font-size: .95rem; line-height: 1.55; }
.lg-emp { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.lg-emp .mk, .mk { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: #FFFFFF; display: grid; place-items: center; font-weight: 700; font-size: .82rem; flex: none; }
:root[data-theme="dark"] .mk { background: var(--blue); color: #0D1825; }
.lg-emp small { display: block; color: var(--gray); font-size: .76rem; } .lg-emp b { display: block; font-size: .95rem; }
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld label { font-size: .86rem; font-weight: 600; }
.fld input, .fld select { width: 100%; border: 1px solid var(--hair); background: var(--panel); border-radius: 12px; padding: 13px 14px; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.fld .hint { font-size: .78rem; color: var(--gray); }
.senha { position: relative; } .senha input { padding-right: 84px; }
.senha button { position: absolute; right: 8px; top: 50%; translate: 0 -50%; border: 0; background: none; color: var(--blue); font-weight: 600; font-size: .82rem; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; border-radius: 12px; padding: 14px 18px; font-size: 1rem; font-weight: 650; background: var(--navy); color: #FFFFFF; cursor: pointer; text-decoration: none; transition: background .2s, transform .15s; }
.btn:hover { background: var(--navy-2); } .btn:active { transform: scale(.99); }
:root[data-theme="dark"] .btn { background: var(--blue); color: #0D1825; }
.linha { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .86rem; color: var(--gray); }
.lnk { color: var(--blue); font-weight: 600; text-decoration: none; font-size: .86rem; } .lnk:hover { text-decoration: underline; }
.msg { margin: 0; padding: 11px 14px; border-radius: 10px; font-size: .88rem; line-height: 1.45; }
.msg.err { background: color-mix(in srgb, var(--copper) 12%, transparent); color: var(--copper); }
.msg.ok { background: color-mix(in srgb, var(--sage) 12%, transparent); color: var(--sage); }
.lg-contato { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 18px; border-top: 1px solid var(--hair); font-size: .82rem; color: var(--gray); line-height: 1.5; }
.lg-contato b { display: block; color: var(--ink); font-size: .86rem; }
.lg-contato a { color: var(--ink); text-decoration: none; } .lg-contato a:hover { color: var(--blue); }
.lg-rodape { font-size: .76rem; color: var(--mid); line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .lg-msg > *, .lg-fatos { animation: sobe .8s var(--ease) both; } .lg-msg > :nth-child(2) { animation-delay: .08s; } .lg-msg > :nth-child(3) { animation-delay: .16s; } .lg-fatos { animation-delay: .26s; }
  .lg-card { animation: sobe .7s var(--ease) .12s both; }
  .lg-foto { animation: zoom 14s ease-out both; }
}
@keyframes sobe { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes zoom { from { background-size: 112%; } to { background-size: 100%; } }
@media (max-width: 960px) {
  .lg { grid-template-columns: minmax(0, 1fr); }
  .lg-foto { min-height: 0; padding-bottom: 28px; } .lg-fatos { display: none; } .lg-msg h1 { font-size: 1.9rem; } .lg-msg p { display: none; }
  .lg-foto { animation: none; background-size: cover; }
  .lg-card { margin: 8px auto 24px; }
}

/* ---------- área do cliente (relatórios) ---------- */
.ar { min-height: 100vh; display: flex; flex-direction: column; }
.ar-top { background: var(--navy); color: #FFFFFF; }
.ar-bar { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 14px clamp(16px, 3vw, 32px); }
.ar-bar img { height: 30px; }
.ar-bar .sp { flex: 1; }
.ar-bar a, .ar-bar button { color: #D3DEE9; text-decoration: none; font-size: .86rem; font-weight: 600; background: none; border: 0; cursor: pointer; padding: 8px 10px; border-radius: 8px; }
.ar-bar a:hover, .ar-bar button:hover { color: #FFFFFF; background: rgb(255 255 255 / .08); }
.ar-hero { max-width: 1180px; margin: 0 auto; width: 100%; padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 32px) clamp(28px, 4vw, 52px); display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ar-hero small { display: block; color: #C2D1E0; font-size: .9rem; }
.ar-hero h1 { margin: 6px 0 0; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -.03em; line-height: 1.1; }
.ar-emp { display: flex; align-items: center; gap: 12px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); border-radius: 14px; padding: 10px 14px; }
.ar-emp .mk { background: #FFFFFF; color: var(--navy); }
.ar-emp small { color: #C2D1E0; font-size: .74rem; display: block; } .ar-emp b { font-size: .95rem; }
.ar-main { max-width: 1180px; margin: 0 auto; width: 100%; padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 32px) 48px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.ar-main h2 { margin: 0; font-size: 1.1rem; }
.ar-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rel { display: flex; flex-direction: column; gap: 14px; background: var(--panel); border: 1px solid var(--hair); border-radius: 18px; padding: 20px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.rel:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 16px 30px -24px rgb(19 39 74 / .6); }
.rel .ic { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); display: grid; place-items: center; }
.rel .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rel b { font-size: 1.1rem; letter-spacing: -.01em; }
.rel span { color: var(--gray); font-size: .86rem; line-height: 1.5; }
.rel .ab { margin-top: auto; color: var(--blue); font-weight: 650; font-size: .88rem; }
.vazio { background: var(--panel); border: 1px dashed var(--hair); border-radius: 18px; padding: 32px; color: var(--gray); line-height: 1.6; }
.ar-pe { border-top: 1px solid var(--hair); }
.ar-pe div { max-width: 1180px; margin: 0 auto; padding: 18px clamp(16px, 3vw, 32px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--gray); }
.ar-pe a { color: var(--gray); }
.cx { max-width: 460px; margin: clamp(24px, 6vw, 72px) auto; width: calc(100% - 32px); background: var(--panel); border: 1px solid var(--hair); border-radius: 20px; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; }
.cx h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.02em; }
.cx p { margin: 0; color: var(--gray); line-height: 1.55; }

/* ---------- administração ---------- */
.adm { min-height: 100vh; background: var(--bg); }
.adm-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 24px; padding: 0 clamp(16px, 3vw, 40px); height: 62px; background: var(--panel); border-bottom: 1px solid var(--hair); }
.adm-top img { height: 24px; }
.adm-top nav { display: flex; gap: 2px; height: 100%; overflow-x: auto; }
.adm-top nav a { display: flex; align-items: center; padding: 0 12px; color: var(--gray); text-decoration: none; font-size: .88rem; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.adm-top nav a:hover { color: var(--ink); }
.adm-top nav a[aria-current="page"] { color: var(--ink); font-weight: 650; border-bottom-color: var(--navy); }
.adm-top .quem { margin-left: auto; font-size: .8rem; color: var(--gray); display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.adm-top .quem a { color: var(--blue); font-weight: 600; text-decoration: none; }
.adm-main { max-width: 1200px; margin: 0 auto; padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 40px) 60px; display: flex; flex-direction: column; gap: 22px; }
.adm-main h1 { margin: 0; font-size: 1.7rem; letter-spacing: -.025em; }
.adm-main h2 { margin: 0 0 12px; font-size: 1.05rem; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.adm-head p { margin: 4px 0 0; color: var(--gray); font-size: .9rem; }
.adm-card { background: var(--panel); border: 1px solid var(--hair); border-radius: 18px; padding: clamp(16px, 2vw, 24px); }
.adm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.adm-kpis .adm-card small { color: var(--gray); font-size: .8rem; display: block; }
.adm-kpis .adm-card b { font-size: 1.6rem; letter-spacing: -.02em; }
.adm-tb { width: 100%; border-collapse: collapse; font-size: .88rem; }
.adm-tb th { text-align: left; font-weight: 600; color: var(--gray); font-size: .78rem; padding: 10px 8px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.adm-tb td { padding: 11px 8px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.adm-tb tr:last-child td { border-bottom: 0; }
.adm-tb .num { text-align: right; }
.adm-wrap { overflow-x: auto; }
.adm-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--soft); color: var(--gray); white-space: nowrap; }
.adm-tag.ok { background: color-mix(in srgb, var(--sage) 13%, transparent); color: var(--sage); }
.adm-tag.no { background: color-mix(in srgb, var(--copper) 13%, transparent); color: var(--copper); }
.adm-form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
.adm-form .fld input, .adm-form .fld select { width: 100%; border: 1px solid var(--hair); background: var(--panel); border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.adm-form .btn, .adm-btn { width: auto; padding: 11px 18px; font-size: .88rem; border-radius: 10px; }
.adm-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--hair); background: var(--panel); color: var(--ink); cursor: pointer; font-weight: 600; text-decoration: none; }
.adm-btn:hover { background: var(--soft); }
.adm-btn.pri { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }
.adm-btn.del { color: var(--copper); }
.adm-btn.sm { padding: 6px 11px; font-size: .78rem; border-radius: 8px; }
.adm-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.adm-link { font-family: inherit; font-size: .8rem; color: var(--gray); background: var(--soft); padding: 4px 8px; border-radius: 6px; word-break: break-all; }
.adm-flash { padding: 12px 16px; border-radius: 12px; font-size: .9rem; }
.adm-flash.ok { background: color-mix(in srgb, var(--sage) 13%, transparent); color: var(--sage); }
.adm-flash.err { background: color-mix(in srgb, var(--copper) 13%, transparent); color: var(--copper); }
.adm-empty { color: var(--gray); font-size: .9rem; padding: 18px 0; }
.adm-grid2 { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); }
@media (max-width: 900px) { .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adm-grid2 { grid-template-columns: minmax(0, 1fr); } .adm-top .quem span { display: none; } }
.adm-acts details { position: relative; }
.adm-acts details > summary { list-style: none; } .adm-acts details > summary::-webkit-details-marker { display: none; }
.adm-acts details[open] > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 4; background: var(--panel); border: 1px solid var(--hair); border-radius: 14px; padding: 14px; box-shadow: 0 18px 40px -18px rgb(19 39 74 / .45); text-align: left; }
.adm-acts details .fld input { padding: 9px 11px; font-size: .9rem; }
.adm-acts form { margin: 0; }
.adm-tb td .adm-link { word-break: normal; white-space: nowrap; }
.adm-form { align-items: start; }
.adm-form > div:last-child:has(> .btn) { align-self: end; }
.adm-acts { flex-wrap: nowrap; }
@media (max-width: 700px) { .adm-acts { flex-wrap: wrap; } }
td.adm-acts { display: table-cell; text-align: right; white-space: nowrap; }
td.adm-acts > * { display: inline-block; vertical-align: middle; margin-left: 6px; }

/* cores da marca Perfil: azul-marinho #13274A e vermelho #CC2422 */
.lg-card .area { color: var(--red); display: inline-flex; align-items: center; gap: 8px; }
.lg-card .area::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--red); }
.lg-msg .tag { display: inline-flex; align-items: center; gap: 8px; }
.lg-msg .tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--red); }
.lg-fatos { border-top-color: rgb(204 36 34 / .55); }
.ar-top { border-bottom: 3px solid var(--red); }
.adm-top nav a[aria-current="page"] { border-bottom-color: var(--red); }
:root[data-theme="dark"] { --red: #F0564F; }
