/* Identidade visual Abess */
:root {
  --navy: #1B2C57; --navy-2: #243a72; --navy-3: #0f1b3a;
  --green: #00963F; --pink: #E51D75; --orange: #EA501E; --gray: #716F70;
  --bg: #f4f6fb; --card: #fff; --ink: #1a2238; --muted: #6b7390; --line: #e3e7f0;
  --ok: #0e7a3a; --warn: #a65b00; --bad: #c0271b; --info: #1B2C57;
  --radius: 14px; --shadow: 0 1px 2px rgba(27,44,87,.06), 0 8px 24px -12px rgba(27,44,87,.18);
}
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;700;800;900&display=swap');
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15.5px/1.55 "Nunito", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column;
  background-image: radial-gradient(circle at 0% 0%, rgba(0,150,63,.07), transparent 35%), radial-gradient(circle at 100% 10%, rgba(229,29,117,.07), transparent 35%), radial-gradient(circle at 80% 100%, rgba(234,80,30,.06), transparent 40%); background-attachment: fixed; }
h1, h2, h3, .btn, th, label { font-family: "Nunito", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
h1 { font-weight: 900; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 40px; }

/* barra superior */
.topbar { background: var(--navy); color: #fff; position: relative; }
.topbar::after { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--green) 0 25%, var(--pink) 25% 50%, var(--orange) 50% 75%, var(--gray) 75%); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 14px; flex-wrap: wrap; }
.brand { color: #fff; display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
.brand .unit { font-size: 12px; opacity: .85; letter-spacing: .06em; text-transform: uppercase; border-left: 1px solid rgba(255,255,255,.3); padding-left: 12px; line-height: 1.3; }
.brand .unit b { display: block; font-size: 13px; letter-spacing: .02em; text-transform: none; }
.topbar nav { display: flex; gap: 2px; flex-wrap: wrap; }
.topbar nav a { color: #fff; padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; }
.topbar nav a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.topbar nav a.active { background: rgba(255,255,255,.16); }
.topbar nav a.muted { opacity: .75; }
.foot { color: var(--muted); font-size: 12.5px; padding: 16px 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* tipografia e blocos */
h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.01em; color: var(--navy); }
h2 { font-size: 17px; margin: 0 0 14px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--green); }
.card.pink h2::before { background: var(--pink); } .card.orange h2::before { background: var(--orange); } .card.navy h2::before { background: var(--navy); }
.sub { color: var(--muted); margin: 0 0 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow); }
/* saudação lúdica */
.hello { display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, var(--navy), #2d4a8f); color: #fff; border-radius: 22px; padding: 24px 28px; margin-bottom: 22px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hello::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(229,29,117,.7), transparent 60%), radial-gradient(circle at 70% 65%, rgba(0,150,63,.7), transparent 60%), radial-gradient(circle at 40% 85%, rgba(234,80,30,.7), transparent 60%); filter: blur(14px); opacity: .9; }
.hello > div, .hello .av { position: relative; z-index: 1; }
.hello h1 { color: #fff; margin: 0; font-size: 28px; }
.hello p { margin: 4px 0 0; opacity: .85; }
.hello .av { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-weight: 900; font-size: 24px; color: #fff; background: linear-gradient(135deg, var(--green), var(--pink)); flex: none; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.hello .tag { position: relative; z-index: 1; display: inline-block; margin-top: 8px; background: rgba(255,255,255,.14); padding: 3px 10px; border-radius: 999px; font-size: 12.5px; }
.petals { display: inline-flex; gap: 4px; vertical-align: middle; }
.petals i { width: 10px; height: 10px; border-radius: 3px 3px 3px 0; display: block; }
.card { position: relative; }
.card.deco::before { content: ""; position: absolute; right: 18px; top: 18px; width: 46px; height: 46px; opacity: .9;
  background: conic-gradient(from 45deg, var(--green) 0 25%, var(--pink) 0 50%, var(--orange) 0 75%, var(--gray) 0); border-radius: 50%; mask: radial-gradient(circle, transparent 28%, #000 30%); -webkit-mask: radial-gradient(circle, transparent 28%, #000 30%); }
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 18px 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--green); opacity: .16; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--green); }
.stat.pink::before { background: var(--pink); } .stat.orange::before { background: var(--orange); } .stat.navy::before { background: var(--navy); }
.stat.pink::after { background: var(--pink); } .stat.orange::after { background: var(--orange); } .stat.navy::after { background: var(--navy); }
.stat .n { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* formulários */
label { display: block; font-weight: 600; font-size: 13.5px; margin: 14px 0 5px; color: var(--navy); }
input[type=text], input[type=password], input[type=email], input[type=date], input[type=month], input[type=number], input[type=file], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #cdd4e3; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(0,150,63,.2); border-color: var(--green); }
textarea { min-height: 120px; resize: vertical; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--green); background: var(--green); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: filter .15s, transform .05s; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.block { width: 100%; margin-top: 18px; }
.btn.sec { background: #fff; color: var(--navy); border-color: #cdd4e3; }
.btn.sec:hover { background: #f1f4fa; filter: none; }
.btn.navy { background: var(--navy); border-color: var(--navy); }
.btn.danger { background: #fff; color: var(--bad); border-color: #efb4ae; }
.btn.danger:hover { background: #fdecea; filter: none; }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.inline { display: inline; }

/* avisos */
.flash { padding: 12px 15px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; font-weight: 500; }
.flash.success { background: #e7f6ed; border-color: #b4e2c6; color: var(--ok); }
.flash.danger { background: #fdecea; border-color: #f3b8b2; color: var(--bad); }
.flash.warning { background: #fff4e3; border-color: #f2d5a3; color: var(--warn); }
.flash.info { background: #e9edf7; border-color: #c3cce4; color: var(--info); }

/* tabelas e listas */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
tr:hover td { background: #f7f9fd; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #e9edf7; color: var(--navy); }
.badge.ok { background: #e7f6ed; color: var(--ok); }
.badge.warn { background: #fff4e3; color: var(--warn); }
.badge.bad { background: #fdecea; color: var(--bad); }
.badge.gray { background: #eef0f4; color: var(--muted); }
.badge.pink { background: #fde6f0; color: var(--pink); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar form { display: flex; gap: 8px; flex: 1; }
.toolbar input[type=text] { max-width: 380px; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list .t { font-weight: 600; color: var(--navy); }
.doc-list .m { color: var(--muted); font-size: 12.5px; }
.doc-ico { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #e9edf7, #dbe4f5); color: var(--navy); display: grid; place-items: center; font-weight: 900; font-size: 11px; flex: none; }
.doc-ico.g { background: linear-gradient(135deg, #d7f2e2, #bfe9d0); color: var(--ok); } .doc-ico.p { background: linear-gradient(135deg, #fde0ec, #f9c6da); color: var(--pink); } .doc-ico.o { background: linear-gradient(135deg, #fde4da, #fbcbb9); color: var(--orange); }
.doc-row { display: flex; align-items: center; gap: 12px; }
.news { border-left: 4px solid var(--pink); padding: 12px 16px; margin-bottom: 12px; background: #fff; border-radius: 0 10px 10px 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news h3 { margin: 0 0 3px; font-size: 15.5px; color: var(--navy); }
.news .d { color: var(--muted); font-size: 12.5px; }
.news p { margin: 6px 0 0; white-space: pre-wrap; }
.year { margin: 20px 0 6px; color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; margin: 6px 0; }
.radio-row label { font-weight: 500; margin: 0; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.empty { color: var(--muted); padding: 26px; text-align: center; }
.err { color: var(--bad); }

/* página de login (tela dividida) */
body.auth-page main.wrap { max-width: none; padding: 0; display: flex; }
body.auth-page .topbar, body.auth-page .foot { display: none; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; width: 100%; }
.split .hero { background: var(--navy); color: #fff; padding: 56px 60px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.split .hero::before { content: ""; position: absolute; inset: auto -120px -160px auto; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(229,29,117,.55), transparent 60%), radial-gradient(circle at 70% 60%, rgba(0,150,63,.5), transparent 60%), radial-gradient(circle at 50% 90%, rgba(234,80,30,.5), transparent 60%); filter: blur(10px); opacity: .8; }
.split .hero img { height: 70px; width: auto; }
.split .hero h2 { color: #fff; font-size: 36px; line-height: 1.15; margin: 36px 0 12px; max-width: 440px; font-weight: 900; }
.split .hero .shapes { position: absolute; left: 60px; bottom: 90px; display: grid; grid-template-columns: repeat(2, 54px); gap: 8px; transform: rotate(-12deg); opacity: .95; }
.split .hero .shapes i { width: 54px; height: 54px; display: block; border-radius: 18px 18px 18px 4px; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.split .hero .shapes i:nth-child(1) { background: var(--green); } .split .hero .shapes i:nth-child(2) { background: var(--pink); border-radius: 18px 18px 4px 18px; }
.split .hero .shapes i:nth-child(3) { background: var(--orange); border-radius: 18px 4px 18px 18px; } .split .hero .shapes i:nth-child(4) { background: var(--gray); border-radius: 4px 18px 18px 18px; }
.split .form .card { border-radius: 24px; }
.split .hero h2::before { display: none; }
.split .hero p { opacity: .85; max-width: 420px; font-size: 15.5px; }
.split .hero .dots { display: flex; gap: 8px; margin-top: 14px; }
.split .hero .dots i { width: 14px; height: 14px; border-radius: 4px; display: block; }
.split .hero small { opacity: .6; font-size: 12.5px; position: relative; }
.split .form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.split .form .card { width: 100%; max-width: 420px; padding: 32px; }
.split .form h1 { font-size: 24px; }
.auth { max-width: 440px; margin: 30px auto; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split .hero { padding: 32px 24px; min-height: 0; }
  .split .hero h2 { font-size: 24px; margin-top: 20px; }
  .split .hero::before, .split .hero .shapes { display: none; }
}
@media (max-width: 640px) {
  .topbar nav a { padding: 6px 9px; font-size: 13px; }
  .brand .unit { display: none; }
  th, td { padding: 8px 6px; }
  .doc-list li { flex-direction: column; align-items: flex-start; }
  .hello { padding: 20px; gap: 14px; }
  .hello::after { opacity: .35; right: -90px; top: -110px; }
  .hello h1 { font-size: 24px; }
  .hello .av { width: 48px; height: 48px; font-size: 20px; }
}

/* comunicados: escolha de empresas e anexos */
.muted { color: var(--muted); font-weight: 400; }
.check-list { max-height: 220px; overflow-y: auto; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 10px; margin-top: 6px; }
.check-list label { display: flex; gap: 6px; align-items: center; font-weight: 500; margin: 4px 0; }
.attach-list { list-style: none; padding: 0; margin: 6px 0 0; }
.attach-list li { margin: 3px 0; }
.attach-list li::before { content: "📎 "; }

/* editor de texto dos comunicados */
.editor { border: 1px solid #d1d5db; border-radius: 8px; margin-top: 6px; background: #fff; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid #e5e7eb; background: #f9fafb; border-radius: 8px 8px 0 0; }
.editor-toolbar button { border: 1px solid #d1d5db; background: #fff; border-radius: 6px; padding: 4px 8px; font-size: 13px; cursor: pointer; min-width: 30px; }
.editor-toolbar button:hover { background: #eef2ff; }
.editor-toolbar .sep { width: 1px; background: #e5e7eb; margin: 0 4px; }
.editor-area { min-height: 160px; padding: 10px 12px; outline: none; line-height: 1.5; }
.editor-area:focus { box-shadow: inset 0 0 0 2px #c7d2fe; border-radius: 0 0 8px 8px; }
.news-body p { margin: 0 0 8px; }
.news-body h3, .news-body h4 { margin: 10px 0 6px; font-size: 1.05em; }
.news-body ul, .news-body ol { margin: 0 0 8px 20px; padding: 0; }
.news-body blockquote { margin: 6px 0; padding: 6px 12px; border-left: 3px solid #c7d2fe; background: #f8fafc; }

/* comunicados: abas publicados/ocultos e paginação */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #e5e7eb; margin-bottom: 12px; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; }
.tabs a.on { color: inherit; border-bottom-color: currentColor; }
.hidden-news { opacity: .75; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
