* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --vemarca-roxo-e2: #bd0fea;
  --vemarca-roxo-e1: #8705be;
  --vemarca-roxo-c: #820ad1;
  --vemarca-roxo-d1: #4c0677;
  --vemarca-roxo-d2: #2f0549;
  --vemarca-branco: #fff;
  --vemarca-quase-branco: #f4f4f4;
  --vemarca-cinza-claro: #b7b8b9;
  --vemarca-cinza-escuro: #53565a;
  --vemarca-preto: #000;
  --vemarca-ouro: #ffd700;
  --vemarca-coral: #f18070;
  --vemarca-azul-claro: #6ff5ff;
}
html, body { min-height: 100%; }
body { background: var(--vemarca-quase-branco); color: var(--vemarca-roxo-d2); }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.background { position: fixed; inset: 0; background-position: center; background-size: cover; z-index: 0; }
.background-landing { background-image: url('/images/bg/app_background_tela_1.png'); background-color: var(--vemarca-roxo-d2); }
.background-app { background-image: url('/images/bg/app_background_tela_2.png'); background-color: var(--vemarca-quase-branco); }
.viewport-container { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.logo-topo { display: flex; justify-content: center; padding-top: 60px; }
.logo-topo img { width: 48px; height: 48px; }
.brand-mantra { position: absolute; top: 50%; left: 50%; width: min(80%, 360px); transform: translate(-50%, -50%); }
.brand-mantra img { width: 100%; }
.acao-universal { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 430px); padding: 0 24px calc(36px + env(safe-area-inset-bottom)); display: grid; gap: 18px; }
.btn-padrao { min-height: 54px; border: 0; border-radius: 28px; background: var(--vemarca-quase-branco); color: var(--vemarca-roxo-d1); display: flex; align-items: center; justify-content: center; font-weight: 750; text-decoration: none; text-transform: uppercase; cursor: pointer; box-shadow: 0 4px 15px rgb(0 0 0 / .24); }
.form-container > .btn-padrao { width: 100%; padding: 0 24px; white-space: nowrap; }
.btn-padrao:disabled { opacity: .6; cursor: wait; }
.copyright-universal, .flow-footer { color: var(--vemarca-quase-branco); font-size: 12px; text-align: center; opacity: .8; }
.logo-section { height: 42vh; display: flex; justify-content: center; align-items: center; }
.logo-section img { width: min(250px, 65vw); }
.login-card { background: linear-gradient(180deg, var(--vemarca-roxo-d1), var(--vemarca-roxo-d2)); border-radius: 50px 50px 0 0; padding: 52px 35px 60px; flex: 1; display: flex; justify-content: center; }
.form-container { width: min(100%, 330px); }
.input-group { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--vemarca-quase-branco); margin-bottom: 28px; padding: 10px 0; }
.input-group img { position: absolute; left: 8px; width: 20px; height: 20px; filter: brightness(0) invert(.9); }
.input-group input { width: 100%; border: 0; outline: 0; background: transparent; color: #fff; text-align: center; font-weight: 700; letter-spacing: .08em; padding: 8px 36px; }
.input-group input::placeholder { color: var(--vemarca-quase-branco); opacity: .7; text-transform: uppercase; }
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  -webkit-background-clip: text;
  background-clip: text;
  box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 9999s ease-out 0s;
}
.input-group input:autofill { background: transparent; color: #fff; }
.form-message { color: #fff; min-height: 42px; font-size: 14px; text-align: center; }
.card-title { color: #fff; font-size: 22px; text-align: center; margin-bottom: 8px; }
.card-copy { color: var(--vemarca-quase-branco); text-align: center; font-size: 14px; margin-bottom: 28px; }
.card-copy a { color: inherit; }
.header-processos { height: 140px; flex: 0 0 140px; display: grid; place-items: center; position: relative; }
.header-processos img { display: block; width: 200px; max-width: 58vw; height: auto; }
.logout-button { position: absolute; right: 24px; border: 0; background: #4c0677; color: #fff; border-radius: 20px; padding: 9px 16px; cursor: pointer; }
.main-content { background: #fff; border: 0; border-radius: 30px 30px 0 0; flex: 1; overflow-y: auto; padding: 45px 35px 36px; box-shadow: none; display: flex; flex-direction: column; }
.welcome-section { margin-bottom: 28px; }
.welcome-section h1 { font-size: 14px; font-weight: 400; line-height: 1.5; margin-bottom: 20px; }
.welcome-section p { color: #17121b; font-size: 14px; line-height: 1.5; max-width: 330px; }
.welcome-section strong { font-weight: 750; }
.page-status { min-height: 24px; color: #666; font-size: 14px; }
.loading-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgb(244 244 244 / .72); backdrop-filter: blur(1.5px); opacity: 1; visibility: visible; transition: opacity .2s ease, visibility .2s ease; }
.loading-overlay.is-complete { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-spinner { width: 30px; height: 30px; border: 2px solid rgb(76 6 119 / .24); border-top-color: #4c0677; border-radius: 50%; animation: loading-spin .72s linear infinite; }
body.data-loading .welcome-section { visibility: hidden; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading-spinner { animation-duration: 1.6s; } }
.process-list { display: grid; gap: 24px; }
.process-card { display: block; background: #f8f8f8; border-radius: 24px; padding: 30px 24px; box-shadow: 0 13px 18px rgb(0 0 0 / .12); text-decoration: none; color: inherit; }
.process-card:focus-visible, .btn-padrao:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #f18070; outline-offset: 3px; }
.process-card .number { font-size: 14px; margin-bottom: 18px; }
.process-card .number strong { margin-left: 6px; }
.status-box { color: #fff; border-radius: 10px; padding: 12px 14px; margin: 18px 0; font-size: 14px; line-height: 1.3; font-weight: 650; }
.status-tone-light-gray { background: linear-gradient(100deg, #b7b8b9, #f4f4f4); color: #2f0549; }
.status-tone-dark-gray { background: linear-gradient(100deg, #53565a, #000); color: #fff; }
.status-tone-coral { background: linear-gradient(100deg, #f18070, #ff8b82); color: #fff; }
.status-tone-purple { background: linear-gradient(100deg, #4c0677, #8705be); color: #fff; }
.process-card .metadata, .grid-duplo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.process-card span, .grid-duplo span, .line-info span { display: block; color: #666; font-size: 13px; margin-bottom: 4px; }
.process-card strong, .grid-duplo strong, .line-info strong { display: block; font-size: 14px; word-break: break-word; }
.process-card-details { display: grid; gap: 13px; }
.process-card-row, .detail-row { display: grid; grid-template-columns: minmax(112px, .8fr) minmax(0, 1.2fr); gap: 14px; align-items: start; }
.process-card-row span, .detail-row span { color: #29232c; font-size: 14px; }
.process-card-row strong, .detail-row strong { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.process-card-row .status-box { margin: 0; width: fit-content; max-width: 100%; }
.flow-footer { color: #53565a; margin-top: auto; padding-top: 44px; }
.detail-flow { display: flex; }
.back-link { display: inline-block; color: #4c0677; font-weight: 700; text-decoration: none; margin-bottom: 24px; }
.process-intro { margin-bottom: 36px; }
.card-processo-master { background: #f8f8f8; border-radius: 24px; padding: 34px 25px 22px; box-shadow: 0 13px 18px rgb(0 0 0 / .12); }
.card-processo-master > .detail-row { margin-bottom: 16px; }
.status-row { align-items: center; }
.status-row .status-box { display: inline-block; margin: 0; width: fit-content; max-width: 100%; }
.line-info { margin-bottom: 14px; }
.brand-image-wrap { margin: 18px auto 8px; width: min(220px, 100%); text-align: center; }
.brand-image-wrap img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: contain; border-radius: 12px; background: #fff; }
.grid-duplo { margin: 20px 0; }
.card-processo-master h2, .content-section h2 { font-size: 16px; margin: 26px 0 16px; }
.plain-list { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.process-extra { border-top: 1px solid #e3dfe5; margin-top: 24px; padding-top: 1px; }
.process-extra[hidden] { display: none; }
.process-extra .detail-row { margin-bottom: 12px; }
.source-row { border-top: 1px solid #e3dfe5; padding-top: 16px; margin-top: 20px; }
.details-toggle { display: grid; place-items: center; width: 42px; height: 42px; margin: 25px auto 0; border: 0; border-radius: 50%; background: #4c0677; color: #fff; cursor: pointer; transition: background-color .18s ease; }
.details-toggle::before { content: ''; width: 10px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-2px) rotate(45deg); }
.details-toggle.expanded { background: #f18070; }
.details-toggle.expanded::before { transform: translateY(3px) rotate(225deg); }
.content-section { margin-top: 48px; }
.timeline-container { --timeline-color: #53565a; position: relative; padding-left: 38px; }
.timeline-container[data-tone='light-gray'] { --timeline-color: #b7b8b9; }
.timeline-container[data-tone='dark-gray'] { --timeline-color: #53565a; }
.timeline-container[data-tone='coral'] { --timeline-color: #f18070; }
.timeline-container[data-tone='purple'] { --timeline-color: #820ad1; }
.timeline-item { position: relative; margin-bottom: 36px; padding-bottom: 2px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item:not(:last-child)::after { content: ''; position: absolute; left: -30px; top: 9px; bottom: -45px; width: 1px; background: var(--timeline-color); z-index: 0; }
.timeline-marker { position: absolute; top: 2px; box-sizing: border-box; border-radius: 50%; z-index: 1; }
.timeline-item.status-current .timeline-marker { left: -38px; width: 18px; height: 18px; background: #fff; border: 3px solid var(--timeline-color); }
.timeline-item.status-done .timeline-marker { left: -36px; width: 14px; height: 14px; background: var(--timeline-color); border: 0; }
.timeline-date { color: #888; font-size: 14px; }
.timeline-rpi { display: block; color: var(--timeline-color); font-size: 14px; font-weight: 750; margin-top: 4px; }
.timeline-title { font-size: 14px; font-weight: 700; margin: 5px 0; }
.timeline-description { font-size: 14px; color: #444; line-height: 1.5; }
.return-button { min-height: 54px; margin-top: 52px; border-radius: 28px; background: linear-gradient(90deg, #3a045d, #610090, #3a045d); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 750; text-decoration: none; text-transform: uppercase; box-shadow: 0 9px 18px rgb(42 0 65 / .22); }
.document-list { display: grid; gap: 14px; }
.document-card { border: 1px solid #e2dbe7; border-radius: 14px; padding: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.document-card p { font-size: 14px; overflow-wrap: anywhere; }
.document-card span { display: block; margin-top: 5px; color: #666; font-size: 12px; }
.document-card a { flex: 0 0 auto; color: #fff; background: #4c0677; border-radius: 18px; padding: 9px 13px; text-decoration: none; font-size: 13px; font-weight: 700; }
.certificate-section { margin-top: 38px; }
.certificate-section h2 { color: #2f0549; }
.certificate-list { display: grid; gap: 12px; }
.certificate-card { border: 1px solid rgb(76 6 119 / .2); background: linear-gradient(135deg, #fff, #f7f1fa); box-shadow: 0 9px 18px rgb(76 6 119 / .08); }
.certificate-card p { color: #2f0549; font-weight: 750; }
@media (min-width: 760px) { .main-content { width: min(760px, 100%); margin: 0 auto; } .process-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 430px) { .main-content { padding-inline: 35px; }.process-card-row, .detail-row { grid-template-columns: 110px minmax(0, 1fr); } }
@media (max-height: 700px) { .logo-section { height: 36vh; } .login-card { padding-top: 38px; } }

/* Central Administrativa: shell próprio, responsivo e sem compartilhar sessão cliente. */
.admin-body { background: var(--vemarca-quase-branco); overflow-x: hidden; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 268px minmax(0, 1fr); }
.admin-sidebar { background: var(--vemarca-roxo-d2); color: #fff; padding: 26px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 20; }
.admin-brand { color: #fff; text-decoration: none; display: grid; gap: 10px; padding: 0 10px 24px; border-bottom: 1px solid rgb(255 255 255 / .15); font-size: 13px; }
.admin-brand img { width: 150px; max-width: 100%; }
.admin-sidebar nav { display: grid; gap: 4px; padding-top: 20px; }
.admin-sidebar nav button { border: 0; background: transparent; color: #e9dff0; text-align: left; padding: 11px 13px; border-radius: 9px; cursor: pointer; }
.admin-sidebar nav button:hover, .admin-sidebar nav button.active { color: #fff; background: var(--vemarca-roxo-d1); }
.admin-main { min-width: 0; padding: 0 34px 48px; }
.admin-topbar { min-height: 98px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid #ddd5e3; }
.admin-topbar h1 { font-size: clamp(22px, 3vw, 30px); }.eyebrow { color: var(--vemarca-roxo-c); font-size: 11px; letter-spacing: .16em; font-weight: 800; }
.admin-operator { margin-left: auto; display: flex; gap: 16px; align-items: center; color: #5f5763; font-size: 14px; }
.icon-button { display: none; border: 0; background: transparent; color: #4c0677; font-size: 25px; cursor: pointer; }
.admin-toolbar { display: flex; align-items: end; gap: 18px; padding: 26px 0 12px; }
.admin-search { display: grid; gap: 6px; width: min(520px, 100%); color: #655c69; font-size: 12px; font-weight: 700; }
.admin-search input, .dialog-label input, .dialog-label select { width: 100%; min-height: 44px; border: 1px solid #cfc5d5; background: #fff; border-radius: 10px; padding: 9px 12px; }
.admin-search input:disabled { background: #ece9ee; }
.primary-button, .secondary-button, .danger-button, .table-action { min-height: 42px; border-radius: 9px; padding: 9px 15px; border: 1px solid transparent; font-weight: 750; cursor: pointer; }
.primary-button { background: #4c0677; color: #fff; }.secondary-button, .table-action { color: #4c0677; background: #fff; border-color: #bfaec8; }.danger-button { background: #9e2334; color: #fff; }
.admin-message { min-height: 28px; color: #655c69; font-size: 14px; padding: 4px 0; }.error-text { color: #a2172b !important; }
.admin-content { outline: none; }.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.metric-card, .admin-panel, .empty-state { background: #fff; border: 1px solid #e1dbe5; border-radius: 14px; padding: 22px; box-shadow: 0 7px 20px rgb(50 14 70 / .05); }
.metric-card span { display: block; color: #6f6674; font-size: 12px; text-transform: uppercase; }.metric-card strong { display: block; margin-top: 12px; font-size: 26px; color: #3a0755; }
.admin-panel { margin-top: 20px; }.admin-panel h2 { font-size: 17px; margin-bottom: 16px; }.admin-panel p { color: #655c69; line-height: 1.5; margin-bottom: 18px; }
.action-panel button { margin: 0 10px 10px 0; }.table-wrap { width: 100%; overflow-x: auto; background: #fff; border: 1px solid #e1dbe5; border-radius: 14px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }.admin-table th { background: #f1edf4; color: #5b5060; text-transform: capitalize; text-align: left; }.admin-table th, .admin-table td { padding: 13px 14px; border-bottom: 1px solid #ebe6ee; max-width: 280px; overflow-wrap: anywhere; vertical-align: top; }.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .table-action { display: inline-flex; align-items: center; min-height: 34px; margin: 0 6px 6px 0; text-decoration: none; white-space: nowrap; }
.json-summary { overflow: auto; max-height: 430px; background: #25192a; color: #eae1ee; padding: 16px; border-radius: 9px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-state { text-align: center; padding: 52px 24px; }.empty-state p { margin-top: 7px; color: #766d7a; font-size: 14px; }
.detail-actions { margin-top: 24px; padding-top: 18px; border-top: 2px solid #eee7f1; }.detail-actions h3 { margin-bottom: 13px; font-size: 15px; }.detail-actions button { margin: 0 8px 8px 0; }.candidate-card { margin: 12px 0; padding: 14px; border: 1px solid #ddd3e2; border-radius: 10px; }
.admin-dialog { width: min(620px, calc(100% - 30px)); max-height: 88vh; border: 0; border-radius: 16px; padding: 28px; color: #231628; }.admin-dialog::backdrop { background: rgb(20 3 29 / .65); }.admin-dialog h2 { padding-right: 38px; margin-bottom: 22px; }.dialog-close { position: absolute; top: 16px; right: 18px; border: 0; background: transparent; font-size: 26px; cursor: pointer; }.dialog-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.dialog-label { display: grid; gap: 6px; color: #655c69; font-size: 12px; font-weight: 700; }.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }.detail-dialog { width: min(840px, calc(100% - 30px)); }.detail-line { display: grid; grid-template-columns: minmax(130px, .4fr) 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid #ece6ef; font-size: 13px; }.detail-line span { color: #706675; }.detail-line strong { overflow-wrap: anywhere; }.detail-dialog .primary-button { margin-bottom: 18px; }
@media (max-width: 860px) {
  .admin-shell { display: block; }.admin-sidebar { position: fixed; left: 0; transform: translateX(-105%); width: min(82vw, 300px); transition: transform .2s ease; box-shadow: 15px 0 35px rgb(0 0 0 / .25); }.admin-sidebar.open { transform: translateX(0); }.admin-main { padding: 0 18px 38px; }.icon-button { display: block; }.admin-topbar { min-height: 82px; }.admin-operator span { display: none; }.admin-toolbar { align-items: stretch; flex-direction: column; }.admin-toolbar .primary-button { align-self: stretch; }.dialog-fields { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .admin-topbar { gap: 10px; }.admin-topbar h1 { font-size: 20px; }.secondary-button { padding: 8px 11px; }.metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.metric-card { padding: 16px; }.metric-card strong { font-size: 22px; }.detail-line { grid-template-columns: 1fr; gap: 3px; } }
