/* JJ Gestão · design system */
@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
:root {
  --bg: #F4F3EF;
  --surface: #FFFFFF;
  --surface-2: #FAF9F6;
  --ink: #18202F;
  --ink-2: #4A5468;
  --ink-3: #8A92A3;
  --line: #E6E3DC;
  --line-2: #EFEDE8;
  --side: #141C2E;
  --side-2: #1D2740;
  --side-ink: #C9D0DF;
  --accent: #3157D5;
  --accent-2: #2443AE;
  --accent-soft: #EAF0FF;
  --gold: #C8A464;
  --green: #12805C;   --green-soft: #E3F4EC;
  --red: #C8372D;     --red-soft: #FCE9E7;
  --orange: #C2620B;  --orange-soft: #FDF0E1;
  --amber: #A16207;   --amber-soft: #FEF5D8;
  --blue: #2F5BEA;    --blue-soft: #E8EEFE;
  --violet: #7048E8;  --violet-soft: #F0EBFF;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 28, 46, .04), 0 4px 16px rgba(20, 28, 46, .05);
  --shadow-lg: 0 12px 40px rgba(20, 28, 46, .18);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14.5px; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.ic { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------- layout */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto; }
.marca { display: flex; align-items: center; gap: 11px; padding: 6px 10px 22px; color: #fff; }
.marca-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--gold), #9C7A3C); color: #1B1A16; }
.marca b { font-family: var(--serif); font-size: 19px; font-weight: 600; display: block; line-height: 1.1; }
.marca span { font-size: 11.5px; color: #8E98AE; }
.nav-grupo { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #69748C;
  padding: 16px 12px 6px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--side-ink);
  font-weight: 600; font-size: 14px; margin-bottom: 2px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.ativo { background: #fff; color: var(--side); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.nav a.ativo .ic { color: var(--accent); }
.nav .cont { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  border-radius: 99px; padding: 1px 7px; min-width: 20px; text-align: center; }
.side-pe { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid #263150; display: flex; align-items: center; gap: 10px; }
.side-pe .av { background: var(--side-2); color: #fff; }
.side-pe a { color: #8E98AE; margin-left: auto; padding: 6px; border-radius: 8px; }
.side-pe a:hover { background: var(--side-2); color: #fff; }

.principal { min-width: 0; display: flex; flex-direction: column; }
.topo { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 32px;
  background: rgba(244, 243, 239, .86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.topo.rolou { border-bottom-color: var(--line); }
.busca-global { flex: 1; max-width: 520px; position: relative; }
.busca-global input { width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  padding: 0 44px 0 42px; font: inherit; color: var(--ink); box-shadow: var(--shadow); }
.busca-global input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.busca-global .ic { position: absolute; left: 14px; top: 12px; color: var(--ink-3); }
.busca-global kbd { position: absolute; right: 12px; top: 10px; font: 600 11px var(--font); color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; background: var(--surface-2); }
.btn.menu-btn { display: none; }
.conteudo { padding: 8px 32px 48px; max-width: 1380px; width: 100%; }

/* ---------------------------------------------------------- page header */
.cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 14px 0 22px; flex-wrap: wrap; }
.cabecalho h1 { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.15; }
.cabecalho p { margin: 6px 0 0; color: var(--ink-2); }
.cabecalho .acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.voltar { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; font-size: 13px; margin-top: 8px; }
.voltar:hover { color: var(--ink); }

/* ---------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 13.5px var(--font);
  cursor: pointer; white-space: nowrap; transition: transform .08s, background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: #CFCAC0; color: var(--ink); box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn-pri { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(49, 87, 213, .28); }
.btn-pri:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-escuro { background: var(--side); border-color: var(--side); color: #fff; }
.btn-escuro:hover { background: #222D47; color: #fff; }
.btn-zap { background: #1FAF5A; border-color: #1FAF5A; color: #fff; box-shadow: 0 4px 14px rgba(31, 175, 90, .3); }
.btn-zap:hover { background: #17964C; border-color: #17964C; color: #fff; }
.btn-fantasma { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-fantasma:hover { background: var(--line-2); box-shadow: none; }
.btn-perigo { color: var(--red); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; gap: 6px; }
.btn-ic { width: 34px; padding: 0; height: 34px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 13px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* dropdown "Novo" */
.drop { position: relative; }
.drop-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 230px; display: none; z-index: 40; }
.drop.aberto .drop-menu { display: block; animation: surgir .14s ease-out; }
.drop-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; }
.drop-menu a:hover { background: var(--surface-2); }
.drop-menu a .ic { color: var(--accent); }
.drop-menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 4px 0; }
@keyframes surgir { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px 22px; }
.card-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px;
  border-bottom: 1px solid var(--line-2); }
.card-topo h2 { font-size: 15.5px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.card-topo h2 .ic { color: var(--ink-3); }
.card-pe { padding: 12px 20px; border-top: 1px solid var(--line-2); }
.grade { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.mt { margin-top: 18px; }

.stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.stat .rot { font-size: 12.5px; color: var(--ink-2); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.stat .val { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12.5px; color: var(--ink-3); }
.bolha { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.t-red { background: var(--red-soft); color: var(--red); }
.t-amber { background: var(--amber-soft); color: var(--amber); }
.t-blue { background: var(--blue-soft); color: var(--blue); }
.t-green { background: var(--green-soft); color: var(--green); }
.t-violet { background: var(--violet-soft); color: var(--violet); }
.t-gray { background: var(--line-2); color: var(--ink-2); }
.stat.destaque { background: var(--side); color: #fff; border-color: var(--side); }
.stat.destaque .rot, .stat.destaque .sub { color: #A9B2C6; }
.stat.destaque::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,164,100,.35), transparent 70%); }
.verde { color: var(--green); } .vermelho { color: var(--red); }

/* hero do painel */
.boas-vindas { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 14px 0 22px; flex-wrap: wrap; }
.boas-vindas h1 { font-family: var(--serif); font-size: 32px; font-weight: 600; }
.boas-vindas p { margin: 4px 0 0; color: var(--ink-2); }

/* ---------------------------------------------------------- lists & tables */
.tabela { width: 100%; border-collapse: separate; border-spacing: 0; }
.tabela th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3);
  font-weight: 800; padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tabela th:first-child { border-top-left-radius: var(--radius); }
.tabela th:last-child { border-top-right-radius: var(--radius); }
.tabela td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr { transition: background .12s; }
.tabela tbody tr:hover { background: #FBFAF7; }
.tabela tr.clicavel { cursor: pointer; }
.tabela .tit { font-weight: 700; color: var(--ink); }
.tabela .sub { font-size: 12.5px; color: var(--ink-3); }
.tabela tfoot td { font-weight: 800; background: var(--surface-2); }
.rolavel { overflow-x: auto; }

.lista-item { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.lista-item:last-child { border-bottom: 0; }
a.lista-item:hover { background: #FBFAF7; color: var(--ink); }
.lista-item { flex-wrap: wrap; }
.lista-item .corpo { flex: 1; min-width: 220px; }
.lista-item .tit { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista-item .sub { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* date tile */
.data-tile { width: 48px; min-width: 48px; height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.data-tile b { font-size: 19px; font-weight: 800; }
.data-tile span { font-size: 10.5px; text-transform: uppercase; font-weight: 800; color: var(--ink-3); margin-top: 3px; letter-spacing: .05em; }
.data-tile.perdido, .data-tile.atrasado { background: var(--red-soft); border-color: #F5C9C4; color: var(--red); }
.data-tile.hoje { background: var(--amber-soft); border-color: #F3DE9E; color: var(--amber); }
.data-tile.breve { background: var(--blue-soft); border-color: #CBD8FC; color: var(--blue); }
.data-tile.ok { background: var(--green-soft); border-color: #BFE4D2; color: var(--green); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px; border-radius: 99px; font-size: 11.5px;
  font-weight: 800; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.sem-ponto::before { display: none; }
.b-perdido, .b-erro, .b-recusado { background: var(--red-soft); color: var(--red); }
.b-atrasado { background: var(--orange-soft); color: var(--orange); }
.b-hoje, .b-enviado { background: var(--amber-soft); color: var(--amber); }
.b-breve { background: var(--blue-soft); color: var(--blue); }
.b-ok, .b-assinado { background: var(--green-soft); color: var(--green); }
.b-futuro, .b-rascunho { background: var(--line-2); color: var(--ink-2); }
.b-violeta { background: var(--violet-soft); color: var(--violet); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 11.5px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }

/* avatar */
.av { width: 38px; height: 38px; min-width: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13.5px;
  background: var(--accent-soft); color: var(--accent); letter-spacing: .02em; }
.av.pj { background: var(--violet-soft); color: var(--violet); }
.av.parc { background: #FFF2DE; color: #9C6A1C; }
.av-lg { width: 64px; height: 64px; min-width: 64px; border-radius: 18px; font-size: 22px; }

/* ---------------------------------------------------------- filters */
.filtros { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.seg { display: inline-flex; background: #E9E7E1; border-radius: 11px; padding: 3px; gap: 2px; }
.seg a, .seg label { padding: 7px 13px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg a:hover { color: var(--ink); }
.seg a.on, .seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.campo-busca { position: relative; }
.campo-busca input { height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px 0 38px;
  font: inherit; min-width: 260px; }
.campo-busca .ic { position: absolute; left: 12px; top: 11px; color: var(--ink-3); }
select.mini { height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); padding: 0 32px 0 12px; font: 600 13px var(--font); color: var(--ink); }
.mes-nav { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.mes-nav span { font-weight: 800; padding: 0 10px; min-width: 150px; text-align: center; }

/* tabs */
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.abas a { padding: 11px 14px; font-weight: 700; color: var(--ink-2); border-bottom: 2.5px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.abas a:hover { color: var(--ink); }
.abas a.on { color: var(--ink); border-bottom-color: var(--accent); }
.abas .n { background: var(--line-2); color: var(--ink-2); border-radius: 99px; font-size: 11px; padding: 1px 7px; }

/* ---------------------------------------------------------- forms */
.form-grade { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 16px; }
.col-1 { grid-column: span 1; } .col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; } .col-10 { grid-column: span 10; } .col-11 { grid-column: span 11; } .col-12 { grid-column: span 12; }
.secao { padding: 22px 24px; border-bottom: 1px solid var(--line-2); }
.secao:last-of-type { border-bottom: 0; }
.secao h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 800; margin-bottom: 16px; }
.campo label.rot { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--ink); }
.campo .ajuda { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.campo .erro { font-size: 12.5px; color: var(--red); margin-top: 5px; font-weight: 600; }
.campo input[type=text], .campo input[type=email], .campo input[type=number], .campo input[type=date], .campo input[type=time],
.campo input[type=password], .campo input[type=url], .campo select, .campo textarea, .input {
  width: 100%; height: 42px; border: 1px solid #DAD6CD; border-radius: 11px; padding: 0 12px; font: 500 14.5px var(--font);
  color: var(--ink); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.campo textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 84px; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.campo.tem-erro input, .campo.tem-erro select, .campo.tem-erro textarea { border-color: var(--red); }
.campo input[type=color] { height: 42px; width: 64px; padding: 4px; border: 1px solid #DAD6CD; border-radius: 11px; background: var(--surface); }
.campo input[type=file] { font: inherit; font-size: 13px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; padding-top: 4px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.radios { display: inline-flex; background: #EDEBE6; padding: 3px; border-radius: 12px; gap: 2px; }
.radios label { cursor: pointer; }
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios span { display: block; white-space: nowrap; padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.radios input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.form-pe { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; background: var(--surface-2);
  border-top: 1px solid var(--line-2); border-radius: 0 0 var(--radius) var(--radius); position: sticky; bottom: 0; }
.erros-form { background: var(--red-soft); color: var(--red); border-radius: 11px; padding: 12px 16px; margin: 18px 24px 0; font-weight: 600; }

/* ---------------------------------------------------------- toasts */
.toasts { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 100; max-width: 420px; }
.toast { display: flex; gap: 12px; align-items: flex-start; background: var(--side); color: #fff; border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--shadow-lg); animation: entrar .25s ease-out; font-weight: 600; }
.toast .ic { margin-top: 1px; }
.toast.success .ic { color: #5BE0A5; } .toast.error { background: #7A1F17; } .toast.info .ic { color: #9DB7FF; }
.toast button { background: none; border: 0; color: #8E98AE; cursor: pointer; margin-left: auto; padding: 0; }
.toast.saindo { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes entrar { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- modal */
dialog.modal { border: 0; border-radius: 18px; padding: 0; width: min(480px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog.modal::backdrop { background: rgba(20, 28, 46, .45); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: surgir .18s ease-out; }
.modal-topo { padding: 20px 24px 6px; }
.modal-topo h3 { font-size: 19px; font-family: var(--serif); font-weight: 600; }
.modal-topo p { margin: 4px 0 0; color: var(--ink-2); }
.modal-corpo { padding: 16px 24px; display: grid; gap: 14px; }
.modal-pe { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 20px; }

/* ---------------------------------------------------------- empty state */
.vazio { text-align: center; padding: 42px 20px; color: var(--ink-3); }
.vazio .bolha { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 12px; }
.vazio b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* ---------------------------------------------------------- financeiro */
.conta-card { padding: 16px 18px; border-left: 4px solid var(--c, var(--accent)); display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
a.conta-card:hover { box-shadow: var(--shadow-lg); color: var(--ink); }
.conta-card .nome { font-weight: 800; display: flex; align-items: center; gap: 8px; }
.conta-card .saldo { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.grafico { display: flex; align-items: flex-end; gap: 14px; height: 210px; padding: 10px 6px 0; }
.mes-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.barras { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 5px; }
.barra { width: 38%; max-width: 30px; display: flex; flex-direction: column-reverse; border-radius: 7px 7px 3px 3px; overflow: hidden; min-height: 3px; }
.barra i { display: block; }
.barra.ent i.real { background: var(--green); } .barra.ent i.prev { background: repeating-linear-gradient(45deg, #9FD8BE, #9FD8BE 4px, #C9EBDB 4px, #C9EBDB 8px); }
.barra.sai i.real { background: #E06A5F; } .barra.sai i.prev { background: repeating-linear-gradient(45deg, #F2B6AF, #F2B6AF 4px, #F9D9D5 4px, #F9D9D5 8px); }
.mes-col .rot { font-size: 12px; font-weight: 800; color: var(--ink-3); text-transform: capitalize; }
.mes-col.atual .rot { color: var(--ink); background: var(--line-2); padding: 1px 8px; border-radius: 99px; }
.legenda { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.prog { height: 7px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.prog i { display: block; height: 100%; border-radius: 99px; }
.valor-r { color: var(--green); font-weight: 800; } .valor-p { color: var(--red); font-weight: 800; }

/* ---------------------------------------------------------- documentos */
.doc-escolha { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.doc-card { position: relative; cursor: pointer; display: block; }
.doc-card input { position: absolute; opacity: 0; }
.doc-card .caixa { border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; background: var(--surface); height: 100%;
  display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s, transform .1s; }
.doc-card:hover .caixa { border-color: #C8C3B8; }
.doc-card input:checked + .caixa { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.doc-card input:focus-visible + .caixa { outline: 2px solid var(--accent); }
.doc-card .marca-check { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid #CFCAC0;
  display: grid; place-items: center; color: transparent; background: var(--surface); transition: .15s; }
.doc-card input:checked ~ .marca-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.doc-card .doc-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.doc-card .doc-ic.contrato { background: #FFF2DE; color: #9C6A1C; }
.doc-card .doc-ic.declaracao { background: var(--green-soft); color: var(--green); }
.doc-card .doc-ic.procuracao { background: var(--violet-soft); color: var(--violet); }
.doc-card b { font-size: 15px; }
.doc-card .desc { font-size: 12.5px; color: var(--ink-3); }
.doc-card.desabilitado { cursor: not-allowed; opacity: .55; }
.doc-card.desabilitado .caixa { background: var(--surface-2); }
.passos { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.passo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-3); font-size: 13px; }
.passo .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-size: 12.5px; }
.passo.on { color: var(--ink); } .passo.on .n { background: var(--accent); color: #fff; }
.passo.feito .n { background: var(--green); color: #fff; }
.passo-sep { width: 28px; height: 2px; background: var(--line); border-radius: 2px; }
.aviso { display: flex; gap: 12px; padding: 14px 16px; border-radius: 13px; background: var(--amber-soft); color: #7A4B05; font-weight: 600; align-items: flex-start; }
.aviso.azul { background: var(--accent-soft); color: #1E3A9E; }
.aviso.verde { background: var(--green-soft); color: #0B5C41; }
.aviso.vermelho { background: var(--red-soft); color: #8C2219; }
.barra-acao { position: sticky; bottom: 16px; margin-top: 20px; background: var(--side); color: #fff; border-radius: 16px; padding: 14px 16px 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: var(--shadow-lg); flex-wrap: wrap; z-index: 5; }
.barra-acao .info { font-weight: 700; }
.barra-acao .info span { color: #A9B2C6; font-weight: 600; }
.link-box { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px dashed #CFCAC0; border-radius: 12px; padding: 10px 12px; }
.link-box code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.linha-tempo { list-style: none; margin: 0; padding: 0; }
.linha-tempo li { position: relative; padding: 0 0 20px 34px; }
.linha-tempo li::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.linha-tempo li:last-child::before { display: none; }
.linha-tempo .pt { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--line-2); color: var(--ink-3); }
.linha-tempo .pt.on { background: var(--green); color: #fff; }
.linha-tempo b { display: block; }

/* perfil */
.perfil { display: flex; gap: 18px; align-items: center; }
.perfil h1 { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.info-lista { display: grid; gap: 12px; }
.info-lista div { display: flex; gap: 10px; align-items: flex-start; }
.info-lista .ic { color: var(--ink-3); margin-top: 2px; }
.info-lista span { color: var(--ink-3); font-size: 12px; display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
dl.dados { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 20px; margin: 0; }
dl.dados dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 800; }
dl.dados dd { margin: 3px 0 0; font-weight: 600; }

/* cards de parceiros */
.parc-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
a.parc-card:hover { box-shadow: var(--shadow-lg); color: var(--ink); transform: translateY(-1px); }
.parc-card .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--surface-2); border-radius: 12px; padding: 10px; }
.parc-card .nums b { display: block; font-size: 17px; }
.parc-card .nums span { font-size: 11.5px; color: var(--ink-3); font-weight: 700; }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-arte { background: var(--side); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-arte::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -160px;
  background: radial-gradient(circle, rgba(200,164,100,.28), transparent 65%); }
.login-arte::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; left: -140px; bottom: -180px;
  background: radial-gradient(circle, rgba(49,87,213,.35), transparent 65%); }
.login-arte h2 { font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1.15; max-width: 460px; position: relative; z-index: 1; }
.login-arte p { color: #A9B2C6; max-width: 420px; position: relative; z-index: 1; }
.login-form { display: grid; place-items: center; padding: 40px; }
.login-form form { width: 100%; max-width: 360px; display: grid; gap: 16px; }
.login-form h1 { font-family: var(--serif); font-weight: 600; font-size: 30px; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: 1fr; }
}
@media (max-width: 1500px) { .g-main .grade .lista-item .hide-m { display: none; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .app.menu-aberto .side { transform: none; box-shadow: var(--shadow-lg); }
  .btn.menu-btn { display: inline-flex; }
  .topo, .conteudo { padding-left: 16px; padding-right: 16px; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .form-grade > [class*="col-"] { grid-column: span 12; }
  .busca-global kbd { display: none; }
  .tabela .hide-m, .lista-item .hide-m { display: none; }
  .login { grid-template-columns: 1fr; }
  .login-arte { display: none; }
  .cabecalho h1 { font-size: 25px; }
}
@media (max-width: 560px) {
  .g-4 { grid-template-columns: 1fr; }
  .campo-busca input { min-width: 0; width: 100%; }
}
@media print {
  .side, .topo, .acoes, .filtros, .barra-acao { display: none !important; }
  .app { display: block; }
  body { background: #fff; }
}

.lista-item .sub.quebra { white-space: normal; }

/* ---------------------------------------------------------- agenda */
.g-status { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); margin-right: 4px; vertical-align: 1px; }
.g-status.on { background: #1FAF5A; box-shadow: 0 0 0 3px rgba(31,175,90,.18); }
.cal { overflow: hidden; }
.cal-cab, .cal-semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-cab div { padding: 10px 12px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3);
  background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.cal-dia { min-height: 124px; padding: 6px 6px 8px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-dia[data-dia] { cursor: copy; }
.cal-dia[data-dia]:hover { background: #FCFBF8; }
.cal-semana .cal-dia:nth-child(7n) { border-right: 0; }
.cal-semana:last-child .cal-dia { border-bottom: 0; }
.cal-dia.fora { background: #FAF9F5; }
.cal-dia.fora .cal-num { color: #C3C0B8; }
.cal-num { font-size: 13px; font-weight: 800; color: var(--ink-2); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 2px; }
.cal-dia.hoje .cal-num { background: var(--accent); color: #fff; }
.cal-mais { font-size: 11.5px; font-weight: 800; color: var(--ink-3); padding: 1px 6px; }
.ev { display: block; width: 100%; text-align: left; border: 0; font: 700 12px/1.3 var(--font); padding: 4px 7px; border-radius: 7px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); background: var(--line-2); border-left: 3px solid var(--ink-3); }
.ev:hover { filter: brightness(.96); color: var(--ink); }
.ev em { font-style: normal; font-weight: 800; opacity: .75; }
.ev small { display: block; font-weight: 600; color: var(--ink-3); font-size: 12px; white-space: normal; margin-top: 2px; }
.ev.prazo { background: #FDEDEB; border-left-color: var(--red); }
.ev.prazo-atrasado { background: var(--red); color: #fff; border-left-color: #8C2219; }
.ev.prazo-atrasado:hover { color: #fff; }
.ev.audiencia { background: var(--violet-soft); border-left-color: var(--violet); }
.ev.tarefa { background: #FEF6DA; border-left-color: #E0A100; }
.ev.cumprido { background: var(--green-soft); border-left-color: var(--green); color: #4E6A5E; text-decoration: line-through; text-decoration-color: rgba(18,128,92,.4); }
.ev.google { background: #E6F4FC; border-left-color: #039BE5; }
.ev.cor-1 { background: #ECEEF8; border-left-color: #7986CB; } .ev.cor-2 { background: #E5F5EC; border-left-color: #33B679; }
.ev.cor-3 { background: #F3E6F7; border-left-color: #8E24AA; } .ev.cor-4 { background: #FBEAE9; border-left-color: #E67C73; }
.ev.cor-5 { background: #FEF7DE; border-left-color: #F6BF26; } .ev.cor-6 { background: #FDE9E2; border-left-color: #F4511E; }
.ev.cor-8 { background: #EEEEEE; border-left-color: #616161; } .ev.cor-9 { background: #E8EAF6; border-left-color: #3F51B5; }
.ev.cor-10 { background: #E1F0E9; border-left-color: #0B8043; } .ev.cor-11 { background: #FBE3E3; border-left-color: #D50000; }
.ag-dia { display: flex; gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.ag-dia:last-child { border-bottom: 0; }
.ag-data { width: 64px; min-width: 64px; text-align: center; }
.ag-data b { display: block; font-size: 26px; font-weight: 800; line-height: 1; }
.ag-data span { font-size: 11.5px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; }
.ag-data.hoje b { color: var(--accent); }
.ag-itens { flex: 1; display: grid; gap: 6px; min-width: 0; }
.ag-itens .ev { white-space: normal; font-size: 13.5px; padding: 8px 12px; border-radius: 9px; }
ol.guia { margin: 0; padding-left: 22px; display: grid; gap: 14px; line-height: 1.6; }
ol.guia li::marker { font-weight: 800; color: var(--accent); }
.g-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: #0277BD; background: #E6F4FC; border-radius: 6px; padding: 1px 6px; }
@media (max-width: 900px) {
  .cal-dia { min-height: 84px; padding: 3px; }
  .ev { font-size: 10.5px; padding: 2px 4px; }
  .ev em { display: none; }
}

/* ---------------------------------------------------------- intimações */
.intim { padding: 18px 20px; display: grid; gap: 8px; }
.intim.is-sentenca { border-left: 4px solid var(--violet); }
.intim-topo { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.intim-titulo { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 15.5px; }
.intim-titulo .mono { font-size: 14px; }
.intim-resumo { margin: 4px 0 0; line-height: 1.6; background: var(--surface-2); border-radius: 11px; padding: 12px 14px; }
.intim-prazos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.intim-prazo { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 11px; background: #FDEDEB;
  color: var(--ink); border-left: 3px solid var(--red); line-height: 1.35; }
.intim-prazo .ic { color: var(--red); margin-top: 2px; }
.intim-prazo.ed { background: var(--violet-soft); border-left-color: var(--violet); } .intim-prazo.ed .ic { color: var(--violet); }
.intim-prazo.aud { background: var(--blue-soft); border-left-color: var(--blue); } .intim-prazo.aud .ic { color: var(--blue); }
.intim-prazo.tar { background: var(--amber-soft); border-left-color: #E0A100; } .intim-prazo.tar .ic { color: var(--amber); }
.intim-prazo:hover { color: var(--ink); filter: brightness(.98); }
.intim-vincular { background: var(--amber-soft); border-radius: 11px; padding: 12px 14px; }
.intim-texto summary { cursor: pointer; font-weight: 700; color: var(--accent); font-size: 13px; }
.intim-texto div { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--ink-2); max-height: 320px; overflow: auto;
  background: var(--surface-2); padding: 12px; border-radius: 10px; }
.intim-acoes { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: 4px; }
.carregando { position: fixed; inset: 0; background: rgba(20,28,46,.45); display: grid; place-items: center; z-index: 200; color: #fff;
  font-weight: 800; font-size: 16px; backdrop-filter: blur(3px); }
.g-main .form-pe { position: static; }

/* ---------------------------------------------------------- Asaas */
.btn-asaas { color: #0030B9; border-color: #C9D5FA; background: #F1F5FF; }
.btn-asaas:hover { color: #0030B9; border-color: #8FA8F5; }
.boleto-valor { font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pix-box { background: var(--surface-2); border: 1px dashed #CFCAC0; border-radius: 12px; padding: 12px; font: 12px/1.5 ui-monospace, monospace; word-break: break-all; max-height: 92px; overflow: auto; }

/* ---------------------------------------------------------- atendimentos */
.funil { display: grid; gap: 12px; }
.funil-linha { display: grid; grid-template-columns: 160px 1fr 40px; gap: 12px; align-items: center; }
.funil-rot { font-weight: 700; font-size: 13px; color: var(--ink-2); }
.funil-trilho { height: 26px; background: var(--line-2); border-radius: 8px; overflow: hidden; }
.funil-trilho i { display: block; height: 100%; border-radius: 8px; min-width: 4px; }
.funil-linha b { text-align: right; font-size: 17px; }
.at-conteudo { display: grid; gap: 18px; }
.at-conteudo h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 800; margin-bottom: 6px; }
.at-conteudo p { margin: 0; line-height: 1.65; }
.servico-opcoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.servico-op { position: relative; cursor: pointer; }
.servico-op input { position: absolute; opacity: 0; }
.servico-op span { display: block; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 13px; font-weight: 700; background: var(--surface); height: 100%; }
.servico-op input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ev.retorno { background: #E6F4FC; border-left-color: #039BE5; }
@media (max-width: 900px) { .funil-linha { grid-template-columns: 110px 1fr 32px; } }

/* ---------- cadastro único: papéis */
.pp { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.pp-cliente { background: var(--blue-soft); color: var(--blue); }
.pp-parceiro { background: var(--amber-soft); color: var(--amber); }
.pp-fornecedor { background: var(--violet-soft); color: var(--violet); }
.papeis-linha { display: flex; gap: 5px; flex-wrap: wrap; }
.papeis-escolha { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.papel-op { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s; }
.papel-op:hover { border-color: #C9CDD6; }
.papel-op input { position: absolute; opacity: 0; pointer-events: none; }
.papel-op .bolha { width: 40px; height: 40px; min-width: 40px; }
.papel-op b { display: block; font-size: 15px; }
.papel-op small { color: var(--ink-3); font-size: 12.5px; line-height: 1.35; display: block; }
.papel-op .marca { margin-left: auto; width: 22px; height: 22px; min-width: 22px; border-radius: 7px; border: 1.5px solid #C9CDD6; display: grid; place-items: center; color: transparent; }
.papel-op:has(input:checked) { box-shadow: 0 0 0 3px rgba(47,91,234,.12); }
.papel-op.cli:has(input:checked) { border-color: var(--blue); background: #F7F9FF; }
.papel-op.par:has(input:checked) { border-color: var(--amber); background: #FFFCF2; }
.papel-op.for:has(input:checked) { border-color: var(--violet); background: #FBF9FF; }
.papel-op:has(input:checked) .marca { background: var(--ink); border-color: var(--ink); color: #fff; }
.papel-op:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 760px) { .papeis-escolha { grid-template-columns: minmax(0, 1fr); } }
