/* Estilo compartilhado das áreas internas: painel administrativo e área do cliente */

:root { --principal: #2563eb; }

body { background: #f4f6f9; }

.p-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.p-cab {
  /* Gradiente + brilho sutil: o topo é a primeira coisa que se vê ao entrar. */
  background: linear-gradient(120deg, #0b1220 0%, #16224a 45%, #1e3a8a 100%);
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 10px 30px -18px rgba(30, 58, 138, .9);
}
.p-cab::after {
  content: ""; position: absolute; top: -60%; right: -8%;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.32) 0%, transparent 68%);
  pointer-events: none;
}
.p-cab-linha { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; position: relative; z-index: 1; }
.p-cab-linha img { transition: transform .25s ease, filter .25s ease; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.p-cab-linha a:hover img { transform: scale(1.04); }
.p-cab .p-user {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(6px);
}
.p-cab .marca { color: #fff; }
.p-user { font-size: 12px; color: #94a3b8; }

.p-abas { display: flex; gap: 4px; overflow-x: auto; padding: 0 20px 12px; }
.p-abas a, .p-abas button { padding: 9px 16px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #cbd5e1; background: none; border: none; white-space: nowrap; }
.p-abas a.on, .p-abas button.on { background: var(--principal); color: #fff; }
.p-abas a:hover, .p-abas button:hover { color: #fff; }
.p-abas .sair { margin-left: auto; color: #f87171; }

.p-wrap { padding-top: 28px; padding-bottom: 60px; }
.p-titulo { font-size: 22px; font-weight: 900; margin: 0 0 4px; color: #0f172a; }
.p-sub { color: #64748b; font-size: 13px; margin: 0 0 24px; }

.p-msg { padding: 12px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 18px; }
.p-msg.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.p-msg.ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

.p-caixa { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px; margin-bottom: 20px; }

.p-grade { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .p-grade.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .p-grade.cols-3 { grid-template-columns: repeat(3, 1fr); } .p-grade.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.p-cartao-metrica { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px; }
.p-cartao-metrica b { display: block; font-size: 26px; font-weight: 900; color: #0f172a; }
.p-cartao-metrica span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; font-weight: 700; }

.p-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 10px; border: none; background: var(--principal); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.p-btn.secundario { background: #e2e8f0; color: #334155; }
.p-btn.perigo { background: #fee2e2; color: #b91c1c; }
.p-btn.pequeno { padding: 7px 12px; font-size: 11px; }

.p-form label { display: block; font-size: 11px; text-transform: uppercase; font-weight: 700; color: #64748b; margin-bottom: 6px; }
.p-form input, .p-form select, .p-form textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; font-family: inherit; }
.p-form input:focus, .p-form select:focus, .p-form textarea:focus { outline: 2px solid var(--principal); outline-offset: -1px; }

.p-tabela-wrap { overflow-x: auto; }
.p-tabela { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: 12px; overflow: hidden; }
.p-tabela th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.p-tabela td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.p-tabela tr:last-child td { border-bottom: none; }

.p-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.p-badge.cinza { background: #f1f5f9; color: #475569; }
.p-badge.azul { background: #eff6ff; color: #1d4ed8; }
.p-badge.verde { background: #f0fdf4; color: #15803d; }
.p-badge.amarelo { background: #fffbeb; color: #b45309; }
.p-badge.vermelho { background: #fef2f2; color: #b91c1c; }

.p-kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.p-coluna { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; }
.p-coluna h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; color: #475569; }
.p-cartao { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; margin-bottom: 10px; font-size: 12px; }
.p-cartao b { display: block; font-size: 13px; margin-bottom: 4px; }
.p-cartao .meta { color: #94a3b8; font-size: 11px; }

.p-login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #0f172a; }
.p-login { width: 100%; max-width: 380px; padding: 20px; }
.p-login h1 { color: #fff; text-align: center; font-size: 18px; margin-bottom: 20px; }
.p-login .p-caixa { margin-bottom: 0; }
.p-login .p-abas-login { display: flex; gap: 4px; margin-bottom: 18px; background: #f1f5f9; border-radius: 10px; padding: 4px; }
.p-login .p-abas-login button { flex: 1; padding: 8px; border-radius: 8px; border: none; background: none; font-size: 12px; font-weight: 700; color: #64748b; }
.p-login .p-abas-login button.on { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.p-aba-conteudo { display: none; }
.p-aba-conteudo.on { display: block; }

.p-linha-acoes { display: flex; gap: 8px; flex-wrap: wrap; }

.p-drawer-overlay { position: fixed; inset: 0; background: rgba(2,6,23,.5); z-index: 60; display: none; align-items: flex-start; justify-content: flex-end; }
.p-drawer-overlay.aberto { display: flex; }
.p-drawer { background: #fff; width: min(480px, 100%); height: 100%; overflow-y: auto; padding: 24px; }
