:root {
  --bg: #eef3fb;
  --card: #ffffff;
  --line: #dde6f3;
  --text: #143a66;
  --muted: #6f84a0;
  --primary: #2667c9;
  --primary-dark: #1d57ab;
  --green: #16a34a;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 24px;
  --shadow: 0 12px 32px rgba(27, 75, 137, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: Inter, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.app-shell { max-width: 520px; margin: 0 auto; min-height: 100vh; position: relative; background: var(--bg); }
.topbar { position: sticky; top: 0; z-index: 20; padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px 12px; background: #fff; backdrop-filter: blur(14px); border: 1px solid var(--line); border-top: none; border-radius: 0 0 22px 22px; }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-wrap { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 42px; height: 42px; object-fit: contain; display: block; }
.brand-icon-image { width: 48px; height: 56px; border-radius: 0; background: transparent; box-shadow: none; }
.brand-icon--large { width: 56px; height: 56px; border-radius: 18px; font-size: 1.4rem; }
.brand-icon--large-image { width: 72px; height: 84px; }
.brand-title { font-size: 1.7rem; font-weight: 650; letter-spacing: -.03em; }
.brand-wordmark-text { display:flex; align-items:baseline; gap:0; font-size:clamp(2rem, 3vw, 2.65rem); line-height:.92; letter-spacing:-.055em; color:#184777; white-space:nowrap; }
.brand-wordmark-text__light { font-weight:400; }
.brand-wordmark-text__bold { font-weight: 650; }
.brand-wordmark-text--login { font-size:clamp(2.2rem, 5vw, 3rem); }
.brand-subtitle { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.topbar__actions { display:flex; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; background: white; display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow); }
.main-content { padding: 8px 18px 20px; }
.main-content.has-bottom-nav { padding-bottom: 98px; }
.mobile-page { display: grid; gap: 16px; }
.desktop-wide { max-width: 920px; margin: 0 auto; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap: 12px; margin-top: 4px; }
.section-head h2 { margin: 0; font-size: 1.35rem; }
.section-head--desktop { align-items:flex-end; }
.no-margin { margin:0; }
.ghost-link,.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-card, .search-card, .profile-card, .signature-card, .process-card, .process-hero, .form-card { padding: 18px; }
.panel-card__top, .process-card__top { display:flex; align-items:center; justify-content:space-between; gap: 12px; margin-bottom: 12px; }
.stats-grid { display:grid; grid-template-columns:repeat(2,1fr); gap: 12px; }
.stat-card { border-radius: 22px; padding: 18px; color: white; min-height: 110px; display:flex; flex-direction:column; justify-content:space-between; }
.stat-card strong { font-size: 2rem; line-height: 1; }
.stat-card span { font-size: .92rem; opacity: .95; }
.stat-card--blue { background: linear-gradient(135deg, #4384ea, #265fbd); }
.stat-card--amber { background: linear-gradient(135deg, #f9b322, #e38a0a); }
.stat-card--red { background: linear-gradient(135deg, #f56f6f, #e13d55); }
.stat-card--green { background: linear-gradient(135deg, #35c16d, #1f944f); }
.timeline-feed { position: relative; display:grid; gap: 14px; }
.timeline-item { display:flex; gap: 14px; align-items:flex-start; }
.timeline-dot { width: 16px; height:16px; border-radius:50%; background:#8fb3ea; margin-top: 7px; box-shadow: 0 0 0 6px rgba(38,103,201,.09); flex: none; }
.timeline-dot.is-green { background: var(--green); box-shadow: 0 0 0 6px rgba(22,163,74,.12); }
.timeline-dot.is-amber { background: var(--amber); box-shadow: 0 0 0 6px rgba(245,158,11,.12); }
.timeline-dot.is-blue { background: var(--primary); }
.timeline-body { flex:1; background: rgba(255,255,255,.72); border:1px solid var(--line); border-radius: 20px; padding: 14px 16px; }
.timeline-body--card { background: #fdfefe; }
.timeline-body--hover { transition: transform .15s ease, box-shadow .15s ease; }
.timeline-item:hover .timeline-body--hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(27,75,137,.08); }
.timeline-title { font-weight: 650; font-size: 1.02rem; margin-bottom: 4px; }
.timeline-meta, .timeline-note { color: var(--muted); font-size: .9rem; line-height:1.2; margin:0; }
.timeline-note { margin-top: 8px; }
.chips-row { display:flex; flex-wrap:wrap; gap: 8px; margin-top: 10px; }
.chip { display:inline-flex; align-items:center; padding: 7px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.chip-status { background: #e9f1ff; color: var(--primary-dark); }
.chip-soft { background: #f4f7fb; color: var(--muted); }
.chip-last-access { background:#fff7e8; color:#8a5a00; border:1px solid #f1ddb0; }
.search-card { display:grid; gap: 12px; }
.fake-search { height: 50px; display:flex; align-items:center; padding: 0 16px; border-radius: 16px; background: #f5f8fd; color: #8ba0bc; border: 1px solid var(--line); }
.filter-pills { display:flex; flex-wrap:wrap; gap: 8px; }
.pill { padding: 9px 14px; border-radius: 999px; background: #f4f7fb; color: var(--muted); font-weight: 700; font-size: .85rem; border: none; cursor: pointer; font-family: inherit; }
.pill.active { background: var(--primary); color: #fff; }
.process-card__object { font-size: 1rem; font-weight: 600; line-height: 1.45; margin: 8px 0; }
.process-card__meta, .mini-link { color: var(--muted); font-size: .9rem; }
.process-hero__text { margin: 10px 0 0; line-height: 1.5; color: var(--muted); }
.bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(520px, 100%); background: #fff; backdrop-filter: blur(14px); border: 1px solid var(--line); border-bottom: none; border-radius: 22px 22px 0 0; display:flex; justify-content:space-around; padding: 10px 8px calc(env(safe-area-inset-bottom, 0px) + 10px); z-index: 30; }
.bottom-nav__item { display:grid; justify-items:center; gap:6px; color: var(--muted); font-size: .78rem; min-width: 60px; }
.bottom-nav__item span { font-size: 1.2rem; }
.bottom-nav__item.active { color: var(--primary); font-weight: 650; }
.bottom-nav__item--primary { margin-top: -26px; width: 64px; height: 64px; border-radius: 22px; background: linear-gradient(135deg, #3e7be0, #205fbf); color: white; display:flex; flex-direction:column; align-items:center; justify-content:center; box-shadow: 0 18px 35px rgba(38,103,201,.25); }
.bottom-nav__item--primary small { margin-top: 2px; }
.login-screen { min-height: 100vh; display:flex; align-items:center; justify-content:center; padding: 24px; }
.login-screen__inner { width: 100%; max-width: 420px; display:grid; gap: 14px; }
.login-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 24px 26px 14px; box-shadow: var(--shadow); }
.brand-lockup { display:flex; gap: 14px; align-items:center; margin-bottom: 18px; }
.brand-lockup--login { margin-bottom: 14px; }
.brand-lockup--login-centered { justify-content:center; text-align:center; }
.brand-lockup h1 { margin: 0; font-size: 2rem; }
.brand-lockup p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }
.field-group { display:grid; gap: 8px; }
.field-group span { font-weight: 700; }
.field-group input,
.field-group select,
.field-group textarea { border: 1px solid var(--line); background: #f5f8fd; border-radius: 16px; min-height: 52px; padding: 14px; font-size: 1rem; width: 100%; }
.field-group textarea { resize: vertical; }
.stack-16 { display:grid; gap: 16px; }
.btn { border:0; border-radius: 16px; min-height: 50px; padding: 0 18px; font-weight: 650; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.btn-block { width:100%; }
.btn-sm { min-height: 42px; padding: 0 14px; }
.btn-primary { background: linear-gradient(135deg, #3e7be0, #205fbf); color:#fff; }
.btn-outline { background:#fff; color:var(--primary); border:1px solid var(--line); }
.login-tip { margin-top: 14px; color: var(--muted); font-size: .9rem; line-height:1.5; }

.login-card{position:relative;overflow:hidden}
.login-card::after{content:'';position:absolute;inset:auto -80px -80px auto;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle, rgba(38,103,201,.07) 0%, rgba(38,103,201,0) 70%);pointer-events:none}
.stack-16--login{gap:14px}
.login-page-footer{display:flex;justify-content:center;align-items:center;margin-top:10px;padding-top:12px;border-top:1px solid #edf2f8;color:#b7c0cd;font-size:.84rem;line-height:1;text-align:center}
.alert-error, .alert-success { border-radius: 16px; padding: 12px 14px; }
.alert-error { background: #ffe9e9; color: #b42318; }
.alert-success { background: #e8fff0; color: #127a3b; }
.profile-card { text-align:center; }
.avatar-lg { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 24px; background: linear-gradient(135deg, #3e7be0, #205fbf); color:#fff; display:flex; align-items:center; justify-content:center; font-size: 1.8rem; font-weight: 650; }
.profile-list { display:grid; gap: 10px; text-align:left; margin: 20px 0; }
.profile-list div { display:flex; justify-content:space-between; gap: 12px; background: #f8fbff; border-radius: 16px; padding: 12px 14px; }
.profile-list span { color: var(--muted); }
.signature-doc { font-weight: 650; font-size: 1.05rem; }
.signature-meta { margin-top: 8px; color: var(--muted); }
.top-actions-inline { display:flex; gap: 8px; flex-wrap: wrap; }
.form-grid { display:grid; gap: 16px; }
.form-grid--2 { grid-template-columns: 1fr; }
.form-grid--3 { grid-template-columns: 1fr; }
.form-card { display:grid; gap: 16px; }
.form-actions { display:flex; gap: 12px; justify-content:flex-end; flex-wrap: wrap; }
@media (min-width: 860px) {
  .app-shell { max-width: 1180px; }
  .topbar { padding-left: 26px; padding-right: 26px; }
  .main-content { padding-left: 26px; padding-right: 26px; }
  .bottom-nav { width: min(1180px, 100%); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .mobile-page { max-width: 1020px; margin: 0 auto; }
  .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.brand-link { text-decoration:none; }
.stat-link { cursor:pointer; }
.bottom-nav__item--ghost { visibility:hidden; }
.btn-xs { min-height: 32px; padding: 0 10px; font-size: .79rem; border-radius: 12px; }
.empty-box { background:#f8fbff; border:1px dashed var(--line); border-radius:18px; padding:14px; color:var(--muted); }
.comment-form { display:grid; gap:14px; }
.comment-card { background:#f8fbff; border:1px solid var(--line); border-radius:18px; padding:14px; }
.comment-card__head, .user-row { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.comment-card__meta { color:var(--muted); font-size:.85rem; margin-top:8px; }
.mt-8 { margin-top:8px; }
.compact-right { justify-content:flex-end; }
.user-row { background:#f8fbff; border:1px solid var(--line); border-radius:18px; padding:14px; }
@media (max-width: 640px) { .comment-card__head, .user-row { flex-direction:column; } }

.no-margin-bottom { margin-bottom: 0; }
.form-grid--search { grid-template-columns: 1fr; align-items: end; }
.form-actions--left { justify-content: flex-start; }
.field-group--checkbox { align-content: start; }
.switch-row { display:flex; align-items:center; gap:10px; min-height:52px; padding:14px; border:1px solid var(--line); border-radius:16px; background:#f5f8fd; }
.switch-row input { width:18px; height:18px; }
.user-row--admin { display:grid; gap:14px; }
.user-row__main { display:grid; gap:3px; }
.user-row__actions { display:flex; gap:10px; flex-wrap:wrap; }
.password-box { display:grid; gap:10px; grid-template-columns: 1fr auto; align-items:end; }
.inline-form { margin:0; }
.compact-left { justify-content:flex-start; }
@media (min-width: 860px) {
  .form-grid--search { grid-template-columns: 1fr auto; }
  .user-row--admin { grid-template-columns: 1fr auto; align-items:start; }
  .password-box { grid-column: 1 / -1; max-width: 420px; }
}
@media (max-width: 640px) {
  .password-box { grid-template-columns: 1fr; }
  .user-row__actions { width:100%; }
}

.bottom-nav__item--disabled { background: none; color: #93a4bb; box-shadow: none; opacity: .95; pointer-events: none; }
.bottom-nav__item--disabled span, .bottom-nav__item--disabled small { opacity: .9; }
.panel-card__top h3 { margin: 0; }

.process-hero__head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.process-hero__head h2 { margin:0; font-size:1.45rem; }
.process-hero__secretaria { margin:6px 0 0; color:var(--muted); font-weight:700; }
.process-hero__status-wrap { display:grid; gap:8px; justify-items:end; }
.process-hero__coord { color:var(--muted); font-size:.84rem; text-align:right; }
.action-bar { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.action-file-btn { position:relative; overflow:hidden; }
.btn-disabled { pointer-events:none; opacity:.55; }
.pending-inline { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.modal-overlay { position:fixed; inset:0; background:rgba(9,21,38,.42); display:flex; align-items:center; justify-content:center; padding:18px; z-index:900; }
.modal-overlay[hidden] { display:none !important; }
.modal-overlay.show { display:flex !important; }
body.modal-open { overflow:hidden; }
.modal-box { position:relative; z-index:901; width:min(640px,100%); max-height:88vh; background:#fff; border:1px solid var(--line); border-radius:24px; padding:18px; box-shadow:0 24px 48px rgba(16,39,78,.18); display:flex; flex-direction:column; overflow-y:auto; overflow-x:hidden; }
.modal-box--module{ padding:0; overflow:hidden; }
.modal-box--sm { width:min(520px,100%); }
.modal-form-space { margin-top:10px; }
.inline-upload-form { margin:0; }
@media (max-width: 640px) {
  .process-hero__head { flex-direction:column; }
  .process-hero__status-wrap { justify-items:start; }
  .process-hero__coord { text-align:left; }
}


/* v9 visual refinement */
.process-summary-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:10px; margin-top:14px; }
.summary-tile { background:linear-gradient(180deg,#f8fbff,#f1f6fd); border:1px solid var(--line); border-radius:18px; padding:14px; display:grid; gap:6px; }
.summary-tile strong { font-size:1.25rem; line-height:1; }
.summary-tile__label { color:var(--muted); font-size:.8rem; font-weight:700; }
.action-grid .btn, .action-grid .action-file-btn { min-height:44px; }
.action-grid .btn-primary, .action-grid .btn-outline, .action-grid .action-file-btn { border-radius:14px; }
.panel-strip { margin-top:14px; padding:12px 14px; border-radius:18px; background:linear-gradient(180deg,#f8fbff,#f3f7fd); border:1px solid var(--line); }
.panel-strip__title { font-size:.82rem; font-weight: 650; color:var(--muted); margin-bottom:8px; }
.comment-card, .user-row, .timeline-body--card { box-shadow: 0 8px 18px rgba(27,75,137,.04); }
.process-hero { background:linear-gradient(180deg,#ffffff,#f9fbff); }
@media (max-width: 640px) {
  .process-summary-grid { grid-template-columns: 1fr; }
  .action-grid { flex-direction:column; }
  .action-grid > * { width:100%; }
  .action-grid .btn, .action-grid .action-file-btn { width:100%; }
}

/* v10 process interaction modals */
.action-grid--4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.pending-stack{display:grid;gap:10px}
.pending-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:14px;background:#fff}
.pending-row.is-open{background:linear-gradient(180deg,#fffdf7,#fff8e9)}
.pending-row__right{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.interest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:320px;overflow:auto;padding:4px 2px}
.interest-option{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#f9fbff;cursor:pointer}
.interest-option input{margin-top:2px}
.interest-option span{display:grid;gap:2px}
.interest-option small{color:var(--muted)}
.modal-box--lg{width:min(760px,94vw)}
.modal-form-space{display:grid;gap:14px;margin-top:12px}
@media (max-width: 820px){
  .action-grid--4{grid-template-columns:1fr 1fr}
  .interest-grid{grid-template-columns:1fr}
}
@media (max-width: 560px){
  .action-grid--4{grid-template-columns:1fr}
  .pending-row{flex-direction:column;align-items:flex-start}
  .pending-row__right{justify-content:flex-start}
}


/* v11 process action simplification */
.process-summary-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.action-grid--3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@media (max-width:820px){.action-grid--3{grid-template-columns:1fr}.process-summary-grid--4{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.process-summary-grid--4{grid-template-columns:1fr}}

/* v12 stage-centric process UX */
.summary-tile__text{font-size:.92rem;line-height:1.25}
.current-stage-inline{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.etapa-card{display:grid;gap:12px}
.etapa-sublist{display:grid;gap:10px;margin-top:4px}
.etapa-subtitle{font-size:.82rem;font-weight: 650;color:var(--muted)}
.compact-card{padding:12px}
.modal-stage-selected{margin-top:10px;color:var(--muted);font-size:.92rem}
.interest-list{display:grid;gap:8px;max-height:360px;overflow:auto;padding-right:4px}
.interest-line{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#f9fbff;cursor:pointer}
.interest-line small{grid-column:2;color:var(--muted)}
.interest-line__name{font-weight:800}
.conditional-block[hidden]{display:none!important}
.etapas-existing-list{display:grid;gap:10px;margin-top:16px}
@media (max-width:640px){.interest-line{grid-template-columns:auto 1fr}.interest-line small{grid-column:1 / -1;margin-left:30px}}


/* dashboard refinements requested */
.welcome-user{font-size:1.6rem;font-weight:700;letter-spacing:-.02em;color:#6b7280;font-family:"Segoe UI",Inter,Arial,sans-serif}
.welcome-user span{color:#4b5563;font-weight:800}
.timeline-title--soft{color:#6b7280;font-family:"Segoe UI",Inter,Arial,sans-serif;font-weight: 650;letter-spacing:-.01em}
.timeline-body .chip-soft{color:#7b8798}
.bottom-nav__item--primary{gap:2px;padding-top:6px}
.bottom-nav__item--primary span{font-size:1.45rem;line-height:1;font-weight: 650;display:block;margin-top:2px}
.bottom-nav__item--primary small{font-size:.68rem;line-height:1.05;text-align:center;display:block;max-width:58px;white-space:normal;margin-top:0}
@media (max-width:640px){
  .bottom-nav__item--primary{width:68px;height:68px;border-radius:22px}
  .bottom-nav__item--primary small{font-size:.64rem;max-width:54px}
}

/* v13 conteúdos por etapa */
.process-page-shell{padding-bottom:88px}
.etapa-card__head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.pending-row__main{display:grid;gap:4px}
.inline-form{display:inline-flex}
.comment-card__actions{margin-top:10px;display:flex;justify-content:flex-end}
.action-card-inline{border:1px solid var(--line);border-radius:16px;padding:14px;background:#fff;display:grid;gap:12px}
.action-card-inline + .action-card-inline{margin-top:14px}
.process-fixed-action{position:fixed;right:18px;bottom:18px;z-index:850;border:none;border-radius:999px;padding:14px 18px;background:var(--primary);color:#fff;font-weight: 650;box-shadow:0 16px 28px rgba(27,75,137,.28);cursor:pointer}
@media (max-width:640px){.etapa-card__head{flex-direction:column}.process-fixed-action{right:14px;left:14px;bottom:14px;text-align:center}}


.inline-form--danger{display:inline-flex;align-items:center;margin:0}
.btn-danger-outline{border-color:#d1d5db;color:#6b7280;background:#fff;white-space:nowrap}
.btn-danger-outline:hover{border-color:#dc2626;color:#dc2626;background:#fff5f5}
@media (max-width: 760px){.btn-danger-outline{padding:.45rem .6rem;font-size:.7rem}}


/* v13 process status quick edit + summary layout */
.process-summary-grid--process{grid-template-columns:repeat(3,minmax(0,1fr))}
.summary-tile--full{grid-column:1 / -1}
.process-status-edit{position:relative;display:grid;justify-items:end;gap:8px}
.chip-status--button{border:0;cursor:pointer}
.process-status-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:30;width:min(260px,92vw);padding:12px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 18px 36px rgba(16,39,78,.14)}
.field-group--compact{gap:6px}
.field-group--compact span{font-size:.78rem}
@media (max-width:820px){.process-summary-grid--process{grid-template-columns:1fr 1fr}.summary-tile--full{grid-column:1 / -1}}
@media (max-width:560px){.process-summary-grid--process{grid-template-columns:1fr}.process-status-edit{justify-items:start}.process-status-menu{left:0;right:auto;width:100%}}


.modal-box--xl{width:min(1100px,96vw);max-width:1100px;}
.pdf-preview-wrap{padding:14px 18px 18px;}
.pdf-preview-wrap iframe{width:100%;height:min(78vh,820px);border:1px solid #dbe3ef;border-radius:16px;background:#f8fafc;}

.field-help{display:block;margin-top:6px;font-size:12px;color:#6b7280}
.field-group--attachments{display:flex;flex-direction:column;gap:12px}
.attachment-builder{display:flex;flex-direction:column;gap:10px}
.attachment-row{display:grid;grid-template-columns:minmax(240px,1.3fr) minmax(260px,1fr) auto;gap:10px;align-items:center}
.attachment-actions{padding-top:0}
@media (max-width: 860px){
  .attachment-row{grid-template-columns:1fr}
}


/* v13 compact multi pickers */
.multi-picker-native{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.multi-picker{display:grid;gap:10px}
.multi-picker__control{width:100%;min-height:52px;padding:0 14px;border-radius:16px;border:1px solid var(--line);background:#f5f8fd;color:var(--text);appearance:auto}
.multi-picker__chips{display:flex;flex-wrap:wrap;gap:8px}
.multi-picker__chip{display:inline-flex;align-items:center;gap:8px;border:1px solid #cfe0fb;background:#edf4ff;color:var(--primary-dark);border-radius:999px;padding:8px 12px;font-size:.84rem;font-weight:700;cursor:pointer}
.multi-picker__chip strong{font-size:1rem;line-height:1}
.multi-picker__empty{color:var(--muted);font-size:.86rem}

.field-label-inline{display:flex;align-items:center;justify-content:space-between;gap:10px}
.field-add-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;border:1px solid var(--line);background:#f5f8fd;color:var(--primary-dark);font-size:1.3rem;font-weight:700;cursor:pointer;line-height:1}
.field-add-btn:hover{background:#edf4ff}
.picker-summary{min-height:52px;border:1px dashed #cfe0fb;background:#fbfdff;border-radius:16px;padding:12px 14px;display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;color:var(--muted)}
.picker-tag{display:inline-flex;align-items:center;gap:8px;border:1px solid #cfe0fb;background:#edf4ff;color:var(--primary-dark);border-radius:999px;padding:8px 12px;font-size:.84rem;font-weight:700}
.modal-card--picker{width:min(720px,100%);max-height:min(78vh,760px);background:#fff;border-radius:22px;box-shadow:0 20px 50px rgba(9,21,38,.24);display:flex;flex-direction:column;overflow:hidden}
.modal-card__head,.modal-card__foot{padding:16px 18px;border-bottom:1px solid #edf1f7;display:flex;align-items:center;justify-content:space-between;gap:12px}
.modal-card__foot{border-top:1px solid #edf1f7;border-bottom:0;justify-content:flex-end}
.modal-card__head h3{margin:0;font-size:1.08rem}
.modal-card__body{padding:10px 18px 18px;overflow:auto;display:grid;gap:10px}
.picker-row{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid #e4ebf5;border-radius:16px;background:#f9fbfe;cursor:pointer}
.picker-row input{margin-top:3px}
.picker-row:hover{border-color:#cfe0fb;background:#f5f8fd}


.icon-btn{color:var(--primary);border:1px solid rgba(32,95,191,.12)}
.icon-btn svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav__item span{display:flex;align-items:center;justify-content:center;height:28px}
.bottom-nav__item svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav__item--primary svg{width:24px;height:24px}
.timeline-title--soft{font-weight:650}
.timeline-heading-row,.process-card__top--deadline{display:flex;align-items:center;gap:10px;justify-content:space-between}
.timeline-deadline,.process-card__deadline{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:.83rem;white-space:nowrap;flex-shrink:0}
.timeline-deadline svg,.process-card__deadline svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.chips-row:empty{display:none}


/* v16 dashboard/list fixes */
.icon-btn{color:var(--primary)!important}
.icon-btn svg{display:block;stroke:currentColor!important;fill:none!important}
.bottom-nav__item{color:var(--primary-dark)}
.bottom-nav__item svg{display:block;stroke:currentColor!important;fill:none!important}
.bottom-nav__item.active{color:var(--primary)}
.bottom-nav__item--primary{color:#fff!important}
.bottom-nav__item--primary svg{stroke:currentColor!important}
.timeline-heading-row,.process-card__top--deadline{align-items:center}
.timeline-title--soft{font-weight:650!important}
.timeline-deadline,.process-card__deadline{display:inline-flex;align-items:center;gap:6px;color:var(--primary-dark);font-size:.84rem;font-weight:700;white-space:nowrap}
.timeline-deadline svg,.process-card__deadline svg{width:16px;height:16px;display:block;stroke:currentColor!important;fill:none!important}
.timeline-body{min-height:auto!important}
.timeline-meta:empty{display:none}
.panel-card .timeline-item + .timeline-item{margin-top:2px}

/* v17 new process picker alignment */
.picker-summary--stack{display:grid;gap:10px}
.picker-tag--remove{cursor:pointer;text-align:left}
.picker-tag--remove strong{font-size:1rem;line-height:1}
.picker-tag__remove{border:none;background:none;color:var(--muted);font-size:1rem;line-height:1;cursor:pointer;padding:0 0 0 4px;font-weight:700;vertical-align:middle}
.picker-tag__remove:hover{color:#dc2626}
.attachment-summary-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid #e4ebf5;border-radius:16px;background:#f9fbfe}
.attachment-summary-item strong{display:block;color:var(--text);font-size:.95rem}
.attachment-summary-item small{display:block;margin-top:4px;color:var(--muted)}
@media (max-width: 860px){
  .attachment-summary-item{flex-direction:column;align-items:flex-start}
}

@media (max-width: 560px) {
  .login-screen { align-items:flex-start; padding-top: 56px; }
  .login-screen__inner { gap: 12px; }
  .login-card { padding: 22px 18px 18px; border-radius: 24px; }
  .brand-icon--large-image { width: 64px; height: 76px; }
  .brand-wordmark-text--login { font-size: clamp(2rem, 9vw, 2.6rem); }
  .login-page-footer img { max-width: 160px; }
}

.auth-body { overflow: hidden; }
.auth-shell { max-width: none; min-height: 100vh; display: flex; }
.auth-main { padding: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.login-screen { min-height: auto; width: 100%; padding: 24px; }
.login-screen__inner { width: 100%; max-width: 420px; display: grid; gap: 12px; }
.btn.btn-primary.btn-block { font-weight: 650; }


.btn-logout-strong{font-weight:650!important}
.profile-password-card{display:grid;gap:14px;text-align:left;margin:10px 0 18px;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fbfdff}
.profile-modal-box{display:grid;gap:14px;padding-top:22px}
.profile-modal-head{text-align:center;display:grid;justify-items:center;gap:6px}
.profile-modal-head .avatar-lg{margin-bottom:2px}
.profile-modal-head h3{margin:0;font-size:1.2rem}
.profile-modal-close{position:absolute;top:12px;right:14px;width:34px;height:34px;border:0;border-radius:12px;background:#eef4ff;color:var(--primary);font-size:1.3rem;line-height:1;cursor:pointer}
.profile-list--modal{margin:0}
.profile-list--modal div{justify-content:center;text-align:center}
.profile-password-form{margin-top:0}
.profile-modal-actions{display:grid;gap:10px}


/* Popup de perfil compacto sem scroll no desktop */
.profile-modal-box{
  width:min(418px,calc(100vw - 28px));
  gap:8px;
  padding:14px;
  padding-top:16px;
  max-height:calc(100vh - 36px);
  overflow:auto;
}
.profile-modal-head{gap:3px}
.profile-modal-head .avatar-lg{
  width:58px;
  height:58px;
  border-radius:18px;
  font-size:1.5rem;
}
.profile-modal-head h3{font-size:1rem}
.profile-modal-head .muted{font-size:.88rem}
.profile-modal-close{top:10px;right:10px;width:30px;height:30px;border-radius:10px;font-size:1.1rem}
.profile-list--modal div{
  padding:7px 10px;
  border-radius:14px;
  background:#f5f8fd;
  border:1px solid var(--line);
}
.profile-list--modal span{font-size:.92rem;color:#6c7f9f}
.profile-list--modal strong{font-size:.92rem}
.profile-password-form{display:grid;gap:7px}
.profile-password-form .field-group{gap:4px}
.profile-password-form .field-group span{font-size:.9rem}
.profile-password-form .field-group input{
  min-height:40px;
  padding:9px 12px;
  border-radius:13px;
}
.profile-password-form .btn{margin-top:2px;min-height:40px}
.profile-modal-actions{gap:8px}
.profile-modal-actions .btn{min-height:40px}
@media (min-width: 761px){
  .profile-modal-box{
    margin-top:-10px;
    max-height:none;
    overflow:visible;
  }
}


/* topbar menu dropdown */
.topbar__actions{position:relative}
.topbar-menu{position:relative}
.topbar-menu__trigger{border:none;cursor:pointer}
.topbar-menu__trigger svg,.topbar-menu__icon svg{width:20px;height:20px;display:block;stroke:currentColor!important;fill:none!important}
.topbar-menu__dropdown{position:absolute;top:calc(100% + 10px);right:0;min-width:220px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 40px rgba(16,39,78,.12);padding:8px;display:grid;gap:4px;z-index:80}
.topbar-menu__dropdown::before{content:'';position:absolute;top:-6px;right:16px;width:12px;height:12px;background:#fff;border-left:1px solid var(--line);border-top:1px solid var(--line);transform:rotate(45deg)}
.topbar-menu__item{width:100%;display:flex;align-items:center;gap:10px;padding:11px 12px;border:none;background:#fff;border-radius:14px;color:var(--primary-dark);font-weight:700;text-align:left;cursor:pointer}
.topbar-menu__item:hover{background:#f4f8ff}
.topbar-menu__item--danger{color:#b42318}
.topbar-menu__item--danger:hover{background:#fff1f1}
.topbar-menu__icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.topbar-menu__form{margin:0}
.config-card{gap:18px}
.config-list{display:grid;gap:12px}
.config-item{display:grid;gap:6px;padding:16px 18px;border:1px solid var(--line);background:#f8fbff;border-radius:18px}
.config-item strong{font-size:1rem}
.config-item span{color:var(--muted);line-height:1.5}

.topbar-menu__dropdown[hidden]{display:none!important}
.topbar-menu__item--disabled{opacity:.58;cursor:default;pointer-events:none}
.topbar-menu__item--disabled:hover{background:#fff}


/* v12 corrected process layout */
.process-hero__status-wrap--stacked .process-hero__coord,
.process-hero__status-wrap--stacked .process-hero__deadline{font-size:.84rem;color:var(--muted);font-weight:700;text-align:right;line-height:1.35}
.process-summary-grid--actions{grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch}
.summary-action{min-height:86px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#f8fbff,#f1f6fd);display:grid;place-items:center;gap:6px;padding:14px;text-align:center;font:inherit;font-weight: 650;color:var(--text);cursor:pointer;box-shadow:0 8px 18px rgba(27,75,137,.04)}
.summary-action--outline{background:#fff}
.summary-action__icon{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:999px;background:rgba(15,111,255,.10);color:var(--primary);font-size:1.1rem;font-weight:900;line-height:1}
.summary-action__text{font-size:.92rem;line-height:1.15}
.summary-action--disabled{opacity:.55;pointer-events:none}
.panel-strip--accent{border:1px solid #bfd7ff;box-shadow:0 10px 20px rgba(15,111,255,.08)}
.timeline-item--guide .timeline-body{border-color:#bfd7ff;background:linear-gradient(180deg,#fbfdff,#f5f9ff)}
@media (max-width:980px){.process-summary-grid--actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:820px){.process-summary-grid--actions{grid-template-columns:1fr 1fr}.process-hero__status-wrap--stacked .process-hero__coord,.process-hero__status-wrap--stacked .process-hero__deadline{text-align:left}}
@media (max-width:560px){.process-summary-grid--actions{grid-template-columns:1fr}}

.search-form-inline{display:block}
.fake-search--form{display:flex;align-items:center;gap:10px;padding:0 14px;background:#f5f8fd;border:1px solid var(--line);border-radius:16px;height:50px}
.fake-search--form input{border:none;outline:none;background:transparent;width:100%;font:inherit;color:var(--text)}
.fake-search__icon{display:inline-flex;align-items:center;justify-content:center;color:var(--primary)}
.fake-search__icon svg{width:18px;height:18px;display:block}
.btn-icon{font-size:1rem;line-height:1;margin-right:6px;display:inline-block}
.pagination-bar{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:18px;flex-wrap:wrap}
.pagination-bar__label{font-size:.92rem;color:var(--muted);font-weight:600}
.pagination-chip{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 10px;border-radius:999px;border:1.5px solid var(--line);font-size:.82rem;font-weight:650;color:var(--muted);background:#fff;cursor:pointer;text-decoration:none;transition:all .12s}
.pagination-chip:hover{border-color:var(--primary);color:var(--primary);background:#f0f5ff}
.pagination-chip.is-active{background:var(--primary);border-color:var(--primary);color:#fff}
.pagination-chip--dots{border:none;background:none;cursor:default;pointer-events:none}
.btn-disabled{pointer-events:none;opacity:.45}
.topbar-notify{position:relative}
.topbar-notify__trigger{position:relative}
.notification-badge{position:absolute;top:-6px;right:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#e11d48;color:#fff;font-size:.7rem;font-weight:750;display:inline-flex;align-items:center;justify-content:center;border:2px solid #fff;box-shadow:0 2px 8px rgba(225,29,72,.40);line-height:1}
.notify-pop{position:absolute;top:calc(100% + 10px);right:0;width:min(380px,calc(100vw - 24px));background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 18px 40px rgba(16,39,78,.14);padding:10px;z-index:90}
@media(max-width:480px){.notify-pop{right:auto;left:50%;transform:translateX(-50%);width:calc(100vw - 24px)}}
.notify-pop[hidden]{display:none!important}
.notify-pop__head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 6px 10px;border-bottom:1px solid var(--line);margin-bottom:8px}
.notify-pop__head strong{font-size:.92rem}
.notify-pop__clear-form{margin:0}.notify-pop__clear{border:none;background:transparent;color:var(--primary);font-size:.82rem;font-weight:650;cursor:pointer}
.notify-pop__list{display:grid;gap:6px;max-height:420px;overflow-y:auto;padding:2px}
.notify-item{display:block;padding:11px 13px;border:1px solid var(--line);border-radius:14px;background:#fff;text-decoration:none;color:inherit;transition:background .12s,border-color .12s}
.notify-item:hover{background:#f7fbff;border-color:#cfe0ff}
.notify-item__title{font-size:.86rem;font-weight:650;color:var(--text);margin-bottom:2px}
.notify-item__meta{font-size:.78rem;color:var(--primary-dark);font-weight:650;margin-bottom:3px}
.notify-item__detail{font-size:.84rem;color:var(--muted);line-height:1.4}
.notify-item__date{font-size:.76rem;color:var(--muted);margin-top:6px}
.notify-empty{padding:18px 10px;text-align:center;color:var(--muted);font-size:.88rem}
.notify-empty{padding:18px 12px;text-align:center;color:var(--muted)}


/* dashboard redesign */
.dashboard-page{gap:20px}
.dashboard-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.dashboard-greeting{font-size:1.5rem;font-weight:700;color:var(--text);margin:0 0 4px}
.dashboard-greeting strong{color:var(--primary-dark)}
.dashboard-subtitle{margin:0;font-size:.9rem;line-height:1.5}

/* Cards de métricas modernos */
.dash-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.dash-metric{display:flex;align-items:center;gap:14px;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:20px;text-decoration:none;transition:border-color .15s,box-shadow .15s}
.dash-metric:hover{border-color:#c2d4f0;box-shadow:0 4px 16px rgba(27,75,137,.07)}
.dash-metric__icon{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.dash-metric__icon svg{width:22px;height:22px}
.dash-metric__icon--blue{background:#e8f0fd;color:#2563eb}
.dash-metric__icon--amber{background:#fef3cd;color:#d97706}
.dash-metric__icon--red{background:#fde8e8;color:#dc2626}
.dash-metric__icon--green{background:#dcfce7;color:#16a34a}
.dash-metric__body{display:grid;gap:2px}
.dash-metric__value{font-size:1.8rem;font-weight:750;line-height:1;color:var(--text)}
.dash-metric__label{font-size:.78rem;color:var(--muted);font-weight:650}

/* Lista de processos recentes */
.dash-process-list{display:grid;gap:6px}
.dash-process-item{display:grid;gap:6px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;text-decoration:none;transition:border-color .15s,background .15s}
.dash-process-item:hover{border-color:#c2d4f0;background:#f8fbff}
.dash-process-item-wrap{position:relative}
.dash-process-item--cancelado{border-color:#f5c6cb!important;background:#fff5f5!important;opacity:.85}
.dash-process-item--cancelado .dash-process-item__title{text-decoration:line-through;color:var(--muted)!important}
.dash-process-item__cancel-form{position:absolute;top:10px;right:12px;margin:0}
.dash-process-item__cancel-btn{background:transparent;border:1px solid #f5c6cb;color:#c0392b;font-size:.72rem;font-weight:650;padding:4px 10px;border-radius:999px;cursor:pointer;transition:background .12s}
.dash-process-item__cancel-btn:hover{background:#fde8e8}
.dash-process-item__cancel-btn--reativar{border-color:#bfe0c2;color:#1e7e34}
.dash-process-item__cancel-btn--reativar:hover{background:#e9f7ec}
.dash-process-item__main{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;min-width:0}
.dash-process-item__code{font-size:.88rem;font-weight:750;color:var(--primary-dark);white-space:nowrap}
.dash-process-item__sep{color:var(--muted);font-size:.82rem}
.dash-process-item__title{font-size:.88rem;color:var(--text);overflow-wrap:anywhere}
.dash-process-item__meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dash-process-item__deadline{display:inline-flex;align-items:center;gap:4px;font-size:.78rem;color:var(--muted)}
.dash-process-item__deadline svg{width:12px;height:12px;flex-shrink:0}

.empty-box--large{padding:22px 18px}
.empty-box--large strong{display:block;margin-bottom:6px;color:var(--text)}
.empty-box--large p{margin:0;line-height:1.5}

@media (max-width:640px){
  .dash-metrics{grid-template-columns:1fr 1fr}
  .dash-metric__value{font-size:1.5rem}
  .dash-metric{padding:13px 14px;gap:10px}
  .dash-metric__icon{width:38px;height:38px}
  .dash-metric__icon svg{width:18px;height:18px}
}


/* process form refinement v2026-04 */
.process-form-screen{display:grid;gap:16px}
.process-form-card{overflow:visible}
.process-form-headercard{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;border:1px dashed #c9d8ec;border-radius:18px;background:#f8fbff;margin-bottom:18px}
.process-form-headercard__label{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#6e7f95;font-weight:700}
.process-form-headercard__value{font-size:15px;font-weight:700;color:#17324d}
.process-form-headercard__badge{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#e8f1ff;color:#0a57c7;font-weight:700;font-size:13px}
.modal-card--searchable .modal-card__toolbar{padding:0 20px 12px}
.modal-search{width:100%;border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:#fff;font:inherit}
.modal-card__empty{padding:0 20px 18px;color:var(--muted);font-size:14px}
.attachment-builder{display:grid;gap:12px}
.attachment-list{display:grid;gap:10px}
.attachment-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:#fbfdff}
.attachment-empty,.attachment-hint{color:var(--muted);font-size:14px}
.picker-summary--stack{white-space:normal}
.field-help{display:block;color:var(--muted);margin-top:6px}
.picker-row[hidden]{display:none!important}
.participant-item[hidden]{display:none!important}
.user-row[hidden]{display:none!important}
.icon-btn[hidden]{display:none!important}
.empty-state[hidden]{display:none!important}
@media (max-width:780px){.process-form-headercard{flex-direction:column;align-items:flex-start}.attachment-row{flex-direction:column;align-items:flex-start}.modal-card--searchable .modal-card__toolbar{padding:0 16px 12px}}

.process-form-card{overflow:visible}
.modal-card--centered{margin-inline:auto}
.modal-search{min-height:44px;background:#f8fbff;border-color:#d6e4f5;border-radius:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.65)}
.modal-search:focus{outline:none;border-color:#8db6f0;box-shadow:0 0 0 3px rgba(74,144,226,.12)}
.picker-summary--stack{display:flex;flex-wrap:wrap;gap:8px}
.picker-chip{display:inline-flex;align-items:center;min-height:34px;padding:6px 12px;border-radius:999px;background:#eef5ff;color:#12457a;font-weight:700;font-size:13px;border:1px solid #d8e7fb}
.picker-row{position:relative;display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid #edf1f7;border-radius:16px;background:#fff}
.picker-row span{flex:1}
.picker-row em{font-style:normal;font-size:12px;font-weight:700;color:#5f7ea5;background:#eef5ff;border:1px solid #d8e7fb;border-radius:999px;padding:4px 8px}
.picker-row--locked{background:#f8fbff;border-color:#dbe8f7}
.linked-attachments{display:grid;gap:10px;margin-top:12px}
.linked-attachment-item{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;padding:12px 14px;border:1px solid #dbe6f3;border-radius:16px;background:#fff;cursor:pointer;text-align:left}
.linked-attachment-item:hover{border-color:#9ec1f0;box-shadow:0 10px 18px rgba(10,87,199,.08)}
.linked-attachment-item__title{font-weight:700;color:#17324d}
.linked-attachment-item__meta{font-size:13px;color:#6d7f96}
.linked-attachments__empty{padding:14px;border:1px dashed #d5dfec;border-radius:16px;color:#6d7f96;background:#fbfdff}
@media (max-width:780px){
  .linked-attachment-item{padding:12px}
}


.modal-card__toolbar{display:flex;justify-content:center;align-items:center;padding:0 20px 12px;width:100%}
.modal-card--searchable .modal-card__toolbar{padding:0 20px 12px;width:100%;justify-content:center}
.modal-card--searchable .modal-search{display:block;width:min(100%,560px);max-width:560px;margin:0 auto}
.modal-card--picker.modal-card--centered{margin-inline:auto}
.modal-card__body[data-picker-body]{justify-items:center}
.modal-card__body[data-picker-body] .picker-row{width:100%}
.attachment-builder--single{max-width:560px;margin:0 auto;width:100%}
.modal-card--preview{width:900px;max-width:96vw;height:500px;max-height:88vh}
.pdf-preview-card{width:min(1020px,calc(100vw - 36px));height:min(72vh,760px);display:flex;flex-direction:column}
.pdf-preview-card__body{padding:0;flex:1;overflow:hidden;display:block;min-height:0;position:relative}
.pdf-preview-card__body iframe{width:100%;height:100%;min-height:0;border:0;display:block;background:#fff}
.pdf-canvas-viewer{position:absolute;inset:0;display:flex;flex-direction:column;background:#525659}
.pdf-canvas-viewer[hidden]{display:none!important}
.pdf-canvas-viewer__scroll{flex:1;overflow:auto;display:flex;justify-content:center;padding:12px}
.pdf-canvas-viewer__scroll canvas{box-shadow:0 4px 16px rgba(0,0,0,.3);background:#fff;max-width:100%;height:auto}
.pdf-canvas-viewer__nav{display:flex;align-items:center;justify-content:center;gap:14px;padding:10px;background:#fff;border-top:1px solid var(--line)}
.pdf-canvas-viewer__nav span{font-size:.85rem;font-weight:650;color:var(--muted);min-width:110px;text-align:center}
@media (max-width: 860px){
  .pdf-preview-card{width:min(920px,calc(100vw - 24px));height:min(68vh,680px)}
}
.modal-card__body--preview{padding:18px;display:flex;align-items:center;justify-content:center;background:#f6f9fd}
.modal-card__body--preview iframe{display:block;width:100%;height:100%;min-height:0;border:0;background:#fff;border-radius:14px;box-shadow:inset 0 0 0 1px #dbe6f3}

/* config settings */
.config-shell{padding:20px;display:grid;gap:20px}
.config-tabs{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:4px;border-bottom:1px solid var(--line)}
.config-tab{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 18px;border-radius:999px;background:transparent;border:1px solid transparent;color:var(--muted);font-weight:650;font-size:.88rem;transition:background .15s,color .15s}
.config-tab:hover{background:#f4f7fb;color:var(--text)}
.config-tab.is-active{background:var(--primary);color:#fff;border-color:transparent}

/* Aba Geral */
.config-geral-form{display:grid;gap:0}
.config-form-grid{padding-top:4px}
.config-geral-actions{display:flex;justify-content:flex-end;padding-top:24px;border-top:1px solid var(--line);margin-top:24px}
.config-form-grid .field-group input[readonly],
.config-form-grid .field-group select:disabled,
.config-form-grid .field-group input:disabled{background:#f8fafc;color:#526072;cursor:not-allowed}

/* Catálogo geral (Secretarias, Cargos, Etapas, Formulários) */
.config-catalog{display:grid;gap:0}
.config-catalog__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:16px}
.config-catalog__head h3{margin:0;font-size:1rem;font-weight:650}
.config-catalog__count{font-size:.82rem;color:var(--muted);margin-top:2px}
.config-catalog__list{display:grid;gap:8px}

/* Busca */
.config-search{margin-bottom:16px}
.config-search__row{display:flex;gap:8px;align-items:center}
.config-search__input{flex:1;border:1px solid var(--line);border-radius:12px;padding:9px 14px;font-size:.9rem;font-family:inherit;background:var(--bg);color:var(--text);min-width:0}
.config-search__input:focus{outline:none;border-color:var(--primary)}

/* Item de catálogo */
.catalog-item-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border:1px solid var(--line);border-radius:16px;background:#fff;transition:border-color .15s}
.catalog-item-row:hover{border-color:#c2d4f0}
.catalog-item-row--expanded{border-color:var(--primary);background:#f8fbff;flex-direction:column;align-items:stretch}
.catalog-item-row--expanded .catalog-item-row__info{width:100%}
.catalog-item-row--expanded .catalog-item-row__actions{justify-content:flex-end}
.catalog-item-row__info{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.catalog-item-row__info strong{font-size:.92rem;font-weight:650;color:var(--text);overflow-wrap:anywhere}
.catalog-item-row__chips{display:flex;flex-wrap:wrap;gap:6px;flex-shrink:0}
.catalog-item-row__actions{display:flex;gap:6px;flex-wrap:wrap;flex-shrink:0}
.catalog-item-row__status--active{background:#e6f9f0;color:#1a7a4a;border:1px solid #b3e8cf}
.catalog-item-row__status--inactive{background:#f5f5f5;color:var(--muted);border:1px solid var(--line)}
.btn-danger{color:#c0392b;border-color:#f5c6cb}
.btn-danger:hover{background:#fff0f0}

/* Perguntas de formulário */
.config-perguntas{margin-top:16px;padding-top:16px;border-top:1px solid var(--line);display:grid;gap:12px}
.config-perguntas__head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.config-perguntas__title{font-size:.82rem;font-weight:650;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.config-perguntas__list{display:grid;gap:6px}
.config-perguntas__empty{font-size:.88rem;color:var(--muted);padding:10px 0}
.config-pergunta-row{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:#f8fbff}
.config-pergunta-row__ordem{width:28px;height:28px;border-radius:8px;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.78rem;font-weight:650;flex-shrink:0}
.config-pergunta-row__texto{flex:1;min-width:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.config-pergunta-row__texto span:first-child{font-size:.88rem;color:var(--text);overflow-wrap:anywhere}
.config-pergunta-row__status{font-size:.72rem}
.config-pergunta-row__actions{display:flex;gap:6px;flex-shrink:0}

.config-grid-hero{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.config-highlight{border:1px solid var(--line);border-radius:20px;padding:16px 18px;background:linear-gradient(180deg,#f8fbff,#eef5ff);display:grid;gap:6px}
.config-highlight--soft{background:linear-gradient(180deg,#ffffff,#f7faff)}
.config-highlight__label{font-size:.82rem;color:var(--muted);font-weight:650}
.config-highlight strong{font-size:1.2rem}
.config-highlight small{color:var(--muted);line-height:1.45}
.no-gap{gap:0}
.no-pad{padding:0;border:none;box-shadow:none;background:transparent}
.catalog-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--line);border-radius:18px;background:#f8fbff}
.catalog-row__main{display:grid;gap:6px}
.catalog-row__actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.config-grid-2{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:16px}
.catalog-top-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.btn-icon{width:34px;height:34px;min-width:34px;padding:0;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:22px;line-height:1}
.config-modal .modal-box{max-width:520px}

@media (max-width:860px){
  .config-grid-hero,.config-grid-2{grid-template-columns:1fr}
  .catalog-row{flex-direction:column}
  .catalog-row__actions{justify-content:flex-start}
  .catalog-item-row{flex-direction:column;align-items:stretch}
  .catalog-item-row__info{flex-wrap:wrap}
  .catalog-item-row__actions{justify-content:flex-start}
  .config-search__row{flex-wrap:wrap}
}


/* users v1 */
.user-modal-box{width:min(860px,96vw)}
.choice-grid{display:grid;gap:10px}
.choice-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.choice-pill{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:16px;background:#f8fbff;cursor:pointer;text-align:center}
.choice-pill input{margin:0}
.choice-pill span{font-weight:650}
.switch-row--stacked{display:grid;gap:4px;align-content:center}
.user-form-note .switch-row{min-height:84px;align-items:start}
.empty-state--compact{padding:20px;border:1px dashed var(--line);border-radius:18px;background:#fbfdff;display:grid;gap:4px;text-align:center}
.panel-card__actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
@media (max-width: 820px){
  .choice-grid--4{grid-template-columns:1fr 1fr}
}
@media (max-width: 560px){
  .choice-grid--4{grid-template-columns:1fr}
}


.user-row--inactive{border-color:#d9534f;background:#fff7f7}
.choice-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.choice-grid--simple{gap:4px 12px}
.choice-option{display:flex;align-items:center;gap:8px;padding:4px 0;cursor:pointer}
.choice-option input{margin:0}
.choice-option span{font-weight:600}
.pagination-wrap{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;padding-top:14px}
.page-link{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);text-decoration:none}
.page-link.is-active{background:var(--primary);color:#fff;border-color:var(--primary)}
@media (max-width: 640px){.choice-grid--2{grid-template-columns:1fr 1fr}}

.user-row__chips .chip-last-access{max-width:100%;white-space:nowrap}

.system-dialog-box{max-width:520px;padding:20px 20px 18px}.system-dialog__head h3{margin:0;font-size:1.05rem}.system-dialog__body{margin:12px 0 16px;color:var(--text)}.system-dialog__actions{display:flex;justify-content:flex-end;gap:10px}.btn-danger{background:#c62828;border-color:#c62828;color:#fff}.btn-danger:hover{filter:brightness(.96)}


.user-modal-box{width:min(820px,94vw)}
.user-modal-box .panel-card__top h3{font-size:1.1rem;line-height:1.1}
.user-modal-box .panel-card__top{align-items:center}
.user-modal-box .modal-form-space{gap:10px;margin-top:8px}
.user-modal-box .field-group span{font-size:.92rem;line-height:1.1}
.user-modal-box .field-group input,
.user-modal-box .field-group select,
.user-modal-box .field-group textarea{min-height:44px;padding:10px 12px;font-size:.95rem;border-radius:14px}
.user-modal-box .switch-row{min-height:44px;padding:10px 12px;border-radius:14px}
.user-modal-box .switch-row small{font-size:.88rem;line-height:1.25}
.user-modal-box .user-form-note .switch-row{min-height:72px}
.user-modal-box .choice-grid--simple{gap:2px 10px}
.user-modal-box .choice-option{padding:0;gap:4px}
.user-modal-box .choice-option span{font-size:.88rem;font-weight:600}
.user-modal-box .form-actions{margin-top:2px}
.user-modal-box .btn{padding:10px 14px;border-radius:14px}
.user-modal-box .btn.btn-outline.btn-xs{padding:8px 12px}
@media (max-width: 900px){
  .user-modal-box{width:min(760px,96vw)}
  .user-modal-box .field-group input,
  .user-modal-box .field-group select,
  .user-modal-box .field-group textarea{min-height:42px;padding:9px 11px;font-size:.92rem}
  .user-modal-box .choice-option span{font-size:.92rem}
}

.user-row__info-line{display:flex;flex-wrap:wrap;gap:2px;align-items:center;line-height:1.15;margin:1px 0}
.user-row__info-line b{color:var(--text);font-weight:650}

.choice-grid--switches{gap:6px 8px}
.switch-row--ingresso{display:flex;justify-content:flex-start;align-items:center;gap:8px;min-height:40px;padding:7px 10px;border-radius:10px;background:#f7f9fc;border:1px solid #d8e1ef}
.switch-row--ingresso input[type=radio]{appearance:none;-webkit-appearance:none;width:18px;height:18px;flex:0 0 18px;border:2px solid #8fa3bf;border-radius:4px;background:#fff;margin:0;display:inline-block;position:relative}
.switch-row--ingresso input[type=radio]:checked{border-color:var(--primary);background:var(--primary)}
.switch-row--ingresso input[type=radio]:checked::after{content:"";position:absolute;left:3px;top:0px;width:5px;height:9px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg)}
.switch-row--ingresso small{font-size:.82rem;font-weight:600;line-height:1.1;color:#173b6c}
.user-modal-box .choice-grid--switches{gap:6px 8px}
.user-modal-box .switch-row--ingresso{min-height:36px;padding:5px 8px;gap:7px}
.user-modal-box .switch-row--ingresso input[type=radio]{width:18px;height:18px;flex:0 0 18px}
.user-modal-box .switch-row--ingresso input[type=radio]:checked::after{left:3px;top:0px;width:5px;height:9px}
.user-modal-box .switch-row--ingresso small{font-size:.79rem}


.user-form-compact .form-grid--2{align-items:start}
.user-form-compact .field-group{align-self:start}
.user-form-compact .choice-grid--switches{align-content:start}


.modal-card__body--picker-center{padding:18px;display:flex;justify-content:center;align-items:flex-start}

/* Detalhes do Processo — Passo 3: cabeçalho compacto oficial */
.process-details-page{
  display:grid;
  gap:16px;
}
.process-header-compact{
  padding:18px 20px;
  background:linear-gradient(180deg,#ffffff,#fbfdff);
}
.process-header-compact__row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(210px,260px);
  gap:18px;
  align-items:start;
}
.process-header-compact__left{
  min-width:0;
  display:grid;
  gap:7px;
}
.process-header-compact__right{
  min-width:0;
  display:grid;
  gap:8px;
  justify-items:end;
  text-align:right;
}
.process-header-compact__number{
  width:max-content;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  color:var(--text);
  font-size:1.48rem;
  line-height:1.05;
  font-weight:650;
  letter-spacing:-.025em;
  text-decoration:none;
}
.process-header-compact__number:hover{
  color:var(--primary-dark);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:4px;
}
.process-header-compact__number--static{
  cursor:default;
}
.process-header-compact__secretarias{
  color:var(--muted);
  font-size:.92rem;
  line-height:1.35;
  font-weight:650;
  overflow-wrap:anywhere;
}
.process-title-cover{
  color:var(--text);
  font-size:1rem;
  line-height:1.32;
  font-weight:650;
  letter-spacing:-.01em;
  overflow-wrap:anywhere;
}
.process-header-compact__subtitle{
  color:var(--muted);
  font-size:.9rem;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.process-header-compact__meta{
  display:grid;
  gap:3px;
  color:var(--muted);
  font-size:.82rem;
  line-height:1.15;
  font-weight:650;
}
.process-header-compact__meta strong{
  color:var(--text);
  font-size:.96rem;
  font-weight:650;
}
.process-header-compact__status{
  margin-top:0;
  min-height:34px;
  padding:7px 13px;
  border:1px solid #d7e6ff;
  box-shadow:none;
}
.process-header-compact__status-edit{
  justify-items:end;
  margin-top:0;
}
.process-header-compact__status-menu{
  right:0;
  top:calc(100% + 8px);
  text-align:left;
}
.process-header-compact__status-menu .field-group select{
  min-height:44px;
  border-radius:14px;
  background:#f8fbff;
}
.process-details-placeholder{
  min-height:8px;
}
@media (max-width:720px){
  .process-header-compact__row{grid-template-columns:1fr;}
  .process-header-compact__right{justify-items:start;text-align:left;}
  .process-header-compact__status-edit{justify-items:start;}
  .process-header-compact__status-menu{left:0;right:auto;width:min(260px,92vw);}
  .process-header-compact__number{font-size:1.3rem;}
}

/* Detalhes do Processo — Passo 4: faixa de ações e modal-base */
.process-detail-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.process-detail-action{
  min-height:76px;
  border-radius:18px;
}
.process-module-modal__box{
  width:min(560px,calc(100vw - 28px));
  border-radius:24px;
  overflow:hidden;
}
.process-module-modal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px 14px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  flex-shrink:0;
  border-radius:24px 24px 0 0;
}
.process-module-modal__eyebrow{
  display:block;
  margin-bottom:4px;
  color:var(--muted);
  font-size:.76rem;
  font-weight:650;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.process-module-modal__head h3{
  margin:0;
  color:var(--text);
  font-size:1.15rem;
  line-height:1.2;
  font-weight:650;
}
.process-module-modal__close{
  width:36px;
  height:36px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--primary-dark);
  font-size:1.3rem;
  line-height:1;
  cursor:pointer;
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.process-module-modal__body{
  padding:18px 20px;
  color:var(--muted);
  font-size:.95rem;
  line-height:1.45;
  flex:1;
  min-height:0;
  overflow-y:auto;
}
.process-module-modal__body p{
  margin:0;
}
.process-module-modal__actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:14px 20px 18px;
  flex-shrink:0;
  border-top:1px solid var(--line);
}
.process-module-modal__actions--space-between{
  justify-content:space-between;
  align-items:center;
}
.process-module-modal__actions-right{
  display:flex;
  gap:10px;
  align-items:center;
}
@media (max-width:720px){
  .process-detail-actions{grid-template-columns:1fr;}
  .process-detail-action{min-height:66px;}
}
@media (max-width:640px){
  .modal-box{max-height:92vh;}
}

/* Detalhes do Processo — Fase 1.1: timeline central (somente leitura) */
.process-cover-attachments{
  display:grid;
  gap:10px;
  padding:16px 18px;
}
.process-timeline-block__title{
  display:block;
  color:var(--muted);
  font-size:.78rem;
  font-weight:650;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.process-cover-attachments__list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.process-timeline-card__attachments{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:4px;
}
.process-cover-attachment{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#f8fbff;
  color:var(--text);
  font-size:.86rem;
  font-weight:650;
}
.process-cover-attachment__icon{
  font-size:1rem;
  line-height:1;
}
.process-timeline{
  display:grid;
  gap:14px;
}
.process-timeline__empty{
  padding:28px 18px;
  text-align:center;
  color:var(--muted);
  font-size:.92rem;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.process-timeline-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px 18px;
  display:grid;
  gap:12px;
}
.process-timeline-card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.process-timeline-card__author{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.avatar-sm{
  width:36px;
  height:36px;
  flex-shrink:0;
  border-radius:12px;
  background:linear-gradient(135deg,#3e7be0,#205fbf);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.92rem;
  font-weight:650;
}
.process-timeline-card__author-info{
  display:grid;
  gap:2px;
  min-width:0;
}
.process-timeline-card__author-info strong{
  font-size:.92rem;
  color:var(--text);
  overflow-wrap:anywhere;
}
.process-timeline-card__date{
  color:var(--muted);
  font-size:.78rem;
}
.process-timeline-card__type{
  flex-shrink:0;
}
.process-timeline-card__type-group{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  flex-shrink:0;
}
.process-timeline-card__body{
  display:grid;
  gap:8px;
}
.process-timeline-card__title{
  font-size:.96rem;
  color:var(--text);
}
.process-timeline-card__text{
  margin:0;
  color:var(--text);
  font-size:.9rem;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.process-timeline-card__actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding-top:4px;
  border-top:1px solid var(--line);
}
.process-timeline-card__action{
  border:1px solid var(--line);
  border-radius:999px;
  background:#f8fbff;
  color:var(--muted);
  font-size:.8rem;
  font-weight:650;
  padding:7px 14px;
  cursor:not-allowed;
}
@media (max-width:720px){
  .process-timeline-card__head{flex-direction:column;}
  .process-timeline-card__type{align-self:flex-start;}
}
.process-timeline-card__action--secondary{background:#f4f7fb;color:var(--text);border-color:var(--line)}
.process-timeline-card__action--danger{background:#fff0f0;color:#c0392b;border-color:#f5c6cb}
.process-timeline-card__action-form{display:inline-flex}
.process-timeline-card__comment-form,.process-timeline-card__edit-form{padding-top:10px;border-top:1px solid var(--line)}
.process-timeline-comment-form{display:grid;gap:10px}
.process-timeline-comment-form__textarea{width:100%;border:1px solid var(--line);border-radius:14px;padding:10px 14px;font-size:.9rem;font-family:inherit;resize:vertical;min-height:72px;color:var(--text);background:var(--bg);box-sizing:border-box}
.process-timeline-comment-form__textarea:focus{outline:none;border-color:var(--primary)}
.process-timeline-comment-form__actions{display:flex;gap:10px}
/* Modal de Etapas */
.etapas-modal-body{display:grid;gap:16px}
.etapas-form{display:grid;gap:16px}
.field-group__select,.field-group__input{width:100%;border:1px solid var(--line);border-radius:14px;padding:10px 14px;font-size:.9rem;font-family:inherit;color:var(--text);background:var(--bg);box-sizing:border-box}
.field-group__select:focus,.field-group__input:focus{outline:none;border-color:var(--primary)}
.field-group__select:disabled{opacity:.55;cursor:not-allowed}
.field-group__hint{display:block;font-size:.78rem;color:var(--muted);margin-top:4px}
.radio-group{display:flex;flex-wrap:wrap;gap:10px}
.radio-option{display:inline-flex;align-items:center;gap:6px;font-size:.9rem;cursor:pointer;padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:#f8fbff}
.radio-option:has(input:checked){border-color:var(--primary);background:#e9f1ff;color:var(--primary-dark);font-weight:650}
.required{color:#c0392b}
/* Modal de Conteúdos */
.conteudos-modal-body{display:grid;gap:16px}
.conteudos-modal-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);padding-bottom:2px}
.conteudos-modal-tab{border:0;background:none;padding:10px 4px;font-size:.9rem;font-weight:650;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}
.conteudos-modal-tab.is-active{color:var(--primary-dark);border-bottom-color:var(--primary)}
.conteudos-modal-pane{display:none}
.conteudos-modal-pane.is-active{display:block}
.autorizados-list{display:grid;gap:10px;max-height:320px;overflow-y:auto}
/* Card de reunião na timeline */
.process-timeline-card__meeting-date{margin:0;font-size:.88rem;color:var(--muted);font-weight:650}
.process-timeline-card__form-progress{margin:0;font-size:.88rem;color:var(--muted);font-weight:650}
.process-timeline-card__meeting-open{align-self:flex-start;margin-top:4px}
/* Sala de reunião (chat) */
.sala-reuniao-box{display:flex;flex-direction:column;max-height:86vh}
.sala-reuniao-body{display:flex;flex-direction:column;gap:14px;flex:1;min-height:0}
.sala-reuniao-descricao{margin:0}
.sala-reuniao-chat{flex:1;min-height:200px;max-height:46vh;overflow-y:auto;display:grid;gap:14px;padding:4px 2px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding-top:14px;padding-bottom:14px}
.sala-reuniao-msg{display:flex;gap:10px;align-items:flex-start}
.sala-reuniao-msg__body{flex:1;min-width:0;background:#f4f7fb;border-radius:14px;padding:10px 14px}
.sala-reuniao-msg__head{display:flex;justify-content:space-between;gap:10px;font-size:.8rem;margin-bottom:4px}
.sala-reuniao-msg__body p{margin:0;font-size:.9rem;color:var(--text);overflow-wrap:anywhere}
.sala-reuniao-form{display:flex;gap:10px;align-items:flex-end}
.sala-reuniao-form .process-timeline-comment-form__textarea{flex:1}
.btn:disabled{opacity:.6;cursor:not-allowed}
.sala-reuniao-head-actions{display:flex;justify-content:flex-end}
.sala-reuniao-edit-form{padding:14px;border:1px solid var(--line);border-radius:16px;background:#f8fbff}
/* Assinaturas digitais */
.process-timeline-attachment-wrap{display:grid;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#f8fbff}
.process-timeline-sign-info{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.process-timeline-sign-chip{font-size:.75rem}
.process-timeline-sign-names{display:flex;flex-direction:column;gap:2px;width:100%}
.process-timeline-sign-name{font-size:.75rem;color:var(--muted)}
/* Lista de participantes compacta (modal de reunião) */
.participant-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.participant-list-head label{margin:0;font-size:.82rem;font-weight:650;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.participant-list{display:grid;gap:4px;max-height:260px;overflow-y:auto;padding:2px}
.participant-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;transition:background .12s,border-color .12s}
.participant-item:hover{background:#f8fbff;border-color:#c2d4f0}
.participant-item:has(input:checked){background:#eef5ff;border-color:#bfdbfe}
.participant-item__name{font-size:.88rem;color:var(--text);flex:1;min-width:0;overflow-wrap:anywhere}
.participant-item input[type="checkbox"]{width:18px;height:18px;accent-color:var(--primary);flex-shrink:0;cursor:pointer}
/* Pill radio buttons compactos (Modalidade e Status no modal de Etapas) */
.field-group--inline{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.field-group--inline > label{white-space:nowrap;flex-shrink:0;margin:0;font-weight:650;font-size:.82rem;color:var(--muted)}
.field-group--inline .pill-radio-group{display:flex;gap:6px;flex-wrap:wrap;width:auto}
.field-group--inline input,.field-group--inline select,.field-group--inline textarea{width:auto;min-height:auto;padding:0}
.pill-radio-group .pill-radio span{width:auto;min-height:auto;padding:5px 14px;border-radius:999px;font-size:.82rem;font-weight:650;background:#fff;border:1.5px solid var(--line);color:var(--muted)}
.pill-radio-group{display:flex;gap:6px;flex-wrap:wrap}
.pill-radio{display:inline-flex;cursor:pointer}
.pill-radio input[type="radio"]{position:absolute;opacity:0;pointer-events:none;width:0!important;height:0!important;min-height:0!important;padding:0!important;border:none!important;background:none!important}
.pill-radio input:checked + span{background:var(--primary)!important;border-color:var(--primary)!important;color:#fff!important}
.pill-radio:hover span{border-color:#a0bcf0;background:#f0f5ff}

/* Status da etapa na timeline */
.etapa-status-row{display:flex;align-items:center;gap:10px;margin-top:6px;flex-wrap:wrap}
.chip-status--pending{background:#fef3cd;color:#92400e;border:1px solid #fcd34d}
.chip-status--active{background:#dbeafe;color:#1e40af;border:1px solid #93c5fd}
.chip-status--done{background:#dcfce7;color:#15803d;border:1px solid #86efac}
.chip-status--danger{background:#fde8e8;color:#b42318;border:1px solid #f5c6cb}
.etapa-status-form{margin:0;display:contents}
.etapa-status-select{border:1px solid var(--line);border-radius:8px;padding:4px 10px;font-size:.78rem;font-family:inherit;background:#fff;color:var(--text);cursor:pointer}
.etapa-status-select:focus{outline:none;border-color:var(--primary)}
/* Timeline: barra de ações redesenhada */
.process-timeline-card__actions-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:10px;border-top:1px solid var(--line);margin-top:10px}
.process-timeline-card__actions-left{display:flex;align-items:center;gap:8px}
.process-timeline-card__actions-right{display:flex;align-items:center;gap:6px;flex-wrap:wrap}

/* Ícone de comentários estilo Instagram */
.timeline-comment-btn{display:inline-flex;align-items:center;gap:5px;border:none;background:transparent;color:var(--muted);cursor:pointer;padding:4px 6px;border-radius:8px;font-size:.82rem;font-weight:650;transition:color .12s,background .12s}
.timeline-comment-btn svg{width:18px;height:18px;flex-shrink:0}
.timeline-comment-btn:hover{color:var(--primary);background:#f0f5ff}
.timeline-comment-btn--readonly{opacity:.7}
.timeline-comment-btn__count{font-size:.78rem;font-weight:700;color:inherit}

/* Card cancelado */
.process-timeline-card--cancelado{border-color:#f5c6cb!important;background:#fff5f5!important;opacity:.85}
.process-timeline-card--cancelado .process-timeline-card__title,
.process-timeline-card--cancelado .process-timeline-card__text{text-decoration:line-through;color:var(--muted)!important}

/* Lista de comentários no popup */
.timeline-comments-list{display:grid;gap:12px}
.timeline-comment-item{display:flex;gap:10px;align-items:flex-start}
.avatar-sm--xs{width:28px;height:28px;min-width:28px;font-size:.7rem;flex-shrink:0}
.timeline-comment-item__body{flex:1;min-width:0}
.timeline-comment-item__head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:3px}
.timeline-comment-item__head strong{font-size:.86rem;color:var(--text)}
.timeline-comment-item__head .muted{font-size:.76rem}
.timeline-comment-item__body p{font-size:.88rem;color:var(--text);line-height:1.45;margin:0}
/* Botão chip suave para Cancelar/Excluir */
.btn-chip-danger{display:inline-flex;align-items:center;padding:3px 10px;background:#fde8e8;color:#c0392b;border:1px solid #f5c6cb;border-radius:999px;font-size:.75rem;font-weight:650;cursor:pointer;transition:background .12s,border-color .12s;white-space:nowrap;font-family:inherit}
.btn-chip-danger:hover{background:#fbd0d0;border-color:#e8a0a0}

/* Anexo bloqueado (conteúdo cancelado) */
.process-timeline-attachment-wrap--cancelado{opacity:.5;pointer-events:none}
.process-cover-attachment--blocked{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:.82rem;cursor:not-allowed;text-decoration:line-through}
/* Formulário vinculado dentro do card de etapa */
.etapa-formulario-box{margin-top:10px;padding:10px 14px;border:1px solid #dbeafe;border-radius:14px;background:#f0f7ff;display:grid;gap:8px}
.etapa-formulario-box__head{display:flex;align-items:center;gap:8px}
.etapa-formulario-box__icon{font-size:1rem;flex-shrink:0}
.etapa-formulario-box__titulo{font-size:.86rem;font-weight:650;color:#1e40af}
.etapa-formulario-box__footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.etapa-formulario-box__actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}

/* Modal de respostas do formulário */
.form-respostas-body{display:grid;gap:20px}
.form-respostas-header{padding:14px 16px;background:#f8fbff;border:1px solid var(--line);border-radius:14px;display:grid;gap:8px}
.form-respostas-header__logo strong{font-size:1.1rem;font-weight:800;color:#1e3a6e}
.form-respostas-header__logo{display:flex;flex-direction:column;gap:2px}
.form-respostas-header__logo span{font-size:.76rem;color:var(--muted)}
.form-respostas-header__info{display:grid;gap:4px;font-size:.82rem;color:var(--muted)}
.form-respostas-header__info span{font-weight:400}
.form-respostas-header__info strong{color:var(--text)}
.form-respostas-respondente{border:1px solid var(--line);border-radius:14px;overflow:hidden}
.form-respostas-respondente__head{display:flex;align-items:center;gap:10px;padding:12px 14px;background:#f8fbff;border-bottom:1px solid var(--line)}
.form-respostas-respondente__head strong{display:block;font-size:.88rem;color:var(--text)}
.form-respostas-respondente__head .muted{font-size:.76rem}
.form-respostas-qa{padding:12px 14px;border-bottom:1px solid #f1f5f9}
.form-respostas-qa:last-child{border-bottom:none}
.form-respostas-qa__pergunta{font-size:.82rem;font-weight:650;color:var(--muted);margin:0 0 6px}
.form-respostas-qa__resposta{font-size:.88rem;color:var(--text);line-height:1.5;margin:0}

/* Print: esconde tudo menos o modal de respostas */
@media print {
  body > *:not(.modal-overlay){display:none!important}
  .modal-overlay{position:static!important;background:none!important;display:block!important}
  .modal-box{box-shadow:none!important;border:none!important;max-height:none!important}
  .process-module-modal__head button,.process-module-modal__actions{display:none!important}
  .process-module-modal__body{overflow:visible!important;max-height:none!important}
}
/* Modal de comentários estilo Instagram */
.comment-modal-body{flex:1;min-height:0;overflow-y:auto;padding:14px 20px}
.comment-modal-composer{border-top:1px solid var(--line);padding:10px 16px;flex-shrink:0;background:#fff}
.comment-composer-form{display:flex;align-items:flex-end;gap:10px}
.comment-composer-avatar{flex-shrink:0;align-self:flex-start;margin-top:4px}
.comment-composer-textarea{flex:1;border:1px solid var(--line);border-radius:20px;padding:8px 14px;font-size:.88rem;font-family:inherit;resize:none;min-height:36px;max-height:100px;outline:none;background:#f8fbff;line-height:1.4}
.comment-composer-textarea:focus{border-color:var(--primary);background:#fff}
.comment-composer-btn{width:36px;height:36px;border:none;background:var(--primary);color:#fff;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .12s}
.comment-composer-btn:hover{background:var(--primary-dark)}
.comment-composer-btn svg{width:16px;height:16px}

/* Integrantes do formulário */
.fv-integrantes-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.fv-integrante-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:999px;font-size:.76rem;font-weight:650}
.fv-integrante-chip--ok{background:#f0fdf4;color:#15803d;border:1px solid #86efac}
.fv-integrante-chip--pend{background:#fef3cd;color:#92400e;border:1px solid #fcd34d}

/* Respostas do formulário colapsáveis */
.form-respostas-toggle{display:flex;align-items:center;gap:10px;width:100%;border:none;background:#f8fbff;cursor:pointer;padding:12px 14px;border-bottom:1px solid var(--line);text-align:left}
.form-respostas-toggle:hover{background:#f0f5ff}
.form-respostas-toggle__icon{margin-left:auto;font-size:.76rem;color:var(--muted)}
.form-respostas-respondente__body{padding:0}
.form-respostas-respondente__body[hidden]{display:none}
/* Banner de visualização obrigatória do anexo da capa */
.anexo-capa-alert{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:14px 18px;background:#fffbeb;border:1px solid #fcd34d;border-radius:16px;margin-bottom:12px}
.anexo-capa-alert__icon{font-size:1.4rem;flex-shrink:0}
.anexo-capa-alert__body strong{display:block;font-size:.9rem;font-weight:700;color:#92400e;margin-bottom:2px}
.anexo-capa-alert__body p{font-size:.82rem;color:#b45309;margin:0;line-height:1.4}
.anexo-capa-alert__actions{display:flex;flex-direction:column;gap:6px;align-items:flex-end}

/* Wrap de cada anexo da capa */
.process-cover-attachment-wrap{display:grid;gap:6px;position:relative}
.process-cover-attachment-wrap .process-cover-attachment{padding-right:34px}
.process-cover-attachment__delete{position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:50%;border:1px solid transparent;background:transparent;color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center}
.process-cover-attachment__delete:hover{background:#fee2e2;color:#b91c1c;border-color:#fecaca}

/* Lista de visualizadores */
.anexo-capa-visualizadores{display:flex;flex-wrap:wrap;gap:6px;padding:4px 0}
.anexo-capa-viz-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;background:#f0fdf4;border:1px solid #86efac;border-radius:999px;font-size:.74rem;color:#15803d;cursor:default}
.anexo-capa-viz-chip .avatar-sm--xs{width:18px;height:18px;font-size:.6rem;flex-shrink:0}

/* Brasão no bottom-nav */
.bottom-nav__item--brasao{position:relative;display:flex;align-items:center;justify-content:center;padding:0;align-self:center}
.bottom-nav__brasao-wrap{width:auto;height:auto;background:none;display:flex;align-items:center;justify-content:center;box-shadow:none;border:none;margin-top:0;overflow:visible}
.bottom-nav__item--brasao:not(.bottom-nav__item--disabled):hover .bottom-nav__brasao-wrap{box-shadow:none}
.bottom-nav__item--brasao.bottom-nav__item--disabled .bottom-nav__brasao-wrap{opacity:.6}
.bottom-nav__brasao{width:54px;height:54px;object-fit:contain}

/* Avatar de perfil no topbar */
.topbar-avatar{width:32px;height:32px;border-radius:50%;background:var(--primary);color:#fff;font-size:.8rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;border:2px solid #e8f0fe}
.topbar-profile__trigger{padding:0;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center}
.topbar-profile__trigger:hover .topbar-avatar{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.15)}

/* Histórico de coordenadores */
.picker-tag--historico{background:#f8fbff;border:1px solid #dbeafe;color:#475569;font-size:.78rem;display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px}
.picker-tag__date{font-size:.7rem;color:#94a3b8;font-weight:400}

/* 2FA TOTP */
.totp-info{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:14px;margin-bottom:16px}
.totp-info__icon{font-size:1.5rem;flex-shrink:0}
.totp-info p{font-size:.88rem;color:#1e40af;margin:0;line-height:1.5}

/* Juntada do processo — lista arrastável */
.juntada-lista{display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow-y:auto;padding:2px}
.juntada-item{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#f8fafc;border:1px solid var(--line);border-radius:10px;cursor:grab;user-select:none}
.juntada-item--arrastando{opacity:.4;border-style:dashed}
.juntada-item__handle{font-size:1.1rem;color:var(--muted);flex-shrink:0;cursor:grab}
.juntada-item__info{display:flex;flex-direction:column;gap:2px;min-width:0}
.juntada-item__info strong{font-size:.86rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.juntada-item__info span{font-size:.74rem}
.juntada-item__remover{margin-left:auto;flex-shrink:0;width:26px;height:26px;border-radius:50%;border:1px solid transparent;background:transparent;color:var(--muted);font-size:.85rem;cursor:pointer;display:flex;align-items:center;justify-content:center}
.juntada-item__remover:hover{background:#fee2e2;color:#b91c1c;border-color:#fecaca}

/* Sala de reunião — indicador de presença online */
.sala-reuniao-participantes{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0;margin-bottom:6px;border-bottom:1px solid var(--line)}
.sala-reuniao-participante{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:600;color:var(--muted);background:#f4f7fb;border-radius:999px;padding:5px 12px 5px 8px}
.sala-reuniao-participante__bolinha{width:8px;height:8px;border-radius:50%;background:#cbd5e1;flex-shrink:0;transition:background-color .3s}
.sala-reuniao-participante--online{color:#166534;background:#f0fdf4}
.sala-reuniao-participante--online .sala-reuniao-participante__bolinha{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.18)}

/* Corrige a rolagem do modal "Ver respostas": o modal-box--module usa
   overflow:hidden (pra manter as bordas arredondadas do cabeçalho), mas
   quando há muitas perguntas o corpo não estava encolhendo/rolando de
   verdade e o conteúdo ficava inacessível abaixo do limite da caixa.
   Aqui a própria caixa passa a rolar, com o cabeçalho fixo (sticky) por
   cima enquanto o resto desliza por baixo dele. */
.modal-box--respostas{overflow-y:auto!important;overflow-x:hidden}
.modal-box--respostas .process-module-modal__head{position:sticky;top:0;z-index:2;background:#fff;border-radius:24px 24px 0 0}
.modal-box--respostas .process-module-modal__body{flex:none!important;overflow:visible!important;height:auto!important}
.form-respostas-respondente__print{padding:10px 14px;border-top:1px solid #f1f5f9}

/* Avatar com foto de perfil — mantém o mesmo tamanho/formato de cada
   variante (avatar-sm, avatar-sm--xs, avatar-lg, topbar-avatar), só troca
   o fundo em gradiente por uma imagem de verdade */
/* Avatar com foto de perfil — <img> de verdade agora (não span com
   background), pra respeitar a rotação EXIF de fotos de celular. Mantém o
   mesmo tamanho/formato de cada variante (avatar-sm, avatar-lg, etc.), só
   preenche todo o círculo/quadrado sem distorcer, sempre centralizado. */
.avatar-photo{
  object-fit:cover!important;
  object-position:center!important;
  display:block;
}

/* Botão "Editar" abaixo do avatar grande, no modal de perfil e na página de perfil */
.profile-avatar-edit-wrap{display:flex;flex-direction:column;align-items:center;gap:6px;margin:0 auto 14px}
.profile-avatar-edit-wrap .avatar-lg{margin:0}
.profile-avatar-edit-actions{display:flex;align-items:center;gap:2px}
.profile-avatar-edit-btn{background:none;border:none;color:var(--primary);font-size:.82rem;font-weight:650;cursor:pointer;padding:2px 8px}
.profile-avatar-edit-btn--danger{color:#dc2626}
.profile-avatar-edit-sep{color:var(--line);font-size:.82rem}
.profile-avatar-edit-btn:hover{text-decoration:underline}

/* Mini-modal "Tirar foto / Escolher da galeria", estilo WhatsApp */
.foto-perfil-opcoes-box{max-width:320px;padding:24px}
.foto-perfil-opcoes-list{display:flex;flex-direction:column;gap:4px}
.foto-perfil-opcao{display:flex;align-items:center;gap:14px;padding:12px 10px;border:none;background:none;border-radius:12px;cursor:pointer;font-size:.94rem;font-weight:600;color:var(--text);text-align:left;width:100%}
.foto-perfil-opcao:hover{background:#f4f7fb}
.foto-perfil-opcao__icon{width:38px;height:38px;border-radius:50%;background:#eef4ff;color:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.foto-perfil-opcao__icon svg{width:19px;height:19px}

/* ===== Checklist do processo (card recolhido + modal) ===== */
.process-checklist-card{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-bottom:12px;cursor:pointer;transition:background .15s}
.process-checklist-card:hover{background:#f2f7ff}
.process-checklist-card__icon{flex-shrink:0;color:var(--primary);display:flex}
.process-checklist-card__body{flex:1;min-width:0}
.process-checklist-card__head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.process-checklist-card__title{font-size:14px;font-weight:600;color:var(--text)}
.process-checklist-card__count{font-size:12px;font-weight:600;color:var(--primary-dark)}
.process-checklist-card__bar{display:block;height:6px;background:#e6f1fb;border-radius:99px;overflow:hidden}
.process-checklist-card__bar-fill{display:block;height:100%;background:var(--primary);border-radius:99px;transition:width .2s}
.process-checklist-card__chevron{flex-shrink:0;color:#94a3b8;display:flex}

.process-checklist-modal__progress{display:flex;align-items:center;justify-content:space-between;font-size:12.5px;color:var(--primary-dark);margin-bottom:5px}
.process-checklist-modal__progress-label{font-weight:600}
.process-checklist-modal__list{display:flex;flex-direction:column;gap:2px;max-height:52vh;overflow-y:auto}
.process-checklist-item{margin:0}
.process-checklist-item__btn{display:flex;align-items:flex-start;gap:10px;width:100%;text-align:left;background:transparent;border:none;padding:8px 6px;border-radius:8px;cursor:pointer;font:inherit;color:var(--text);transition:background .12s}
.process-checklist-item__btn:hover{background:#f4f7fb}
.process-checklist-item__box{flex-shrink:0;width:19px;height:19px;border-radius:5px;border:1.6px solid #b4b2a9;display:flex;align-items:center;justify-content:center;margin-top:1px;color:#fff;transition:all .12s}
.process-checklist-item__btn.is-done .process-checklist-item__box{background:var(--primary);border-color:var(--primary)}
.process-checklist-item__text{font-size:13px;line-height:1.4}
.process-checklist-item__btn.is-done .process-checklist-item__text{color:#94a3b8;text-decoration:line-through}
.process-checklist-modal__note{font-size:11.5px;color:#94a3b8;margin-top:10px;border-top:1px solid #eef2f7;padding-top:8px}

/* ===== Alerta de validacao de campo (WhatsApp) ===== */
.field-alerta{font-size:.78rem;line-height:1.4;margin-top:4px}
.field-alerta--erro{color:#c0392b}
.field-alerta--ok{color:#1d8348}
input.input-erro{border-color:#e57373 !important;background:#fff6f6}
input.input-ok{border-color:#81c784 !important}

/* Icone do Autenticar um pouco maior que os demais itens do bottom-nav */
.bottom-nav__item[aria-label="Autenticar"] svg{width:28px;height:28px;stroke-width:1.5}

/* ===== Menu do avatar (topbar) ===== */
.topbar-profile__head{display:flex;align-items:center;gap:10px;padding:6px 10px 10px;margin-bottom:2px;border-bottom:1px solid var(--line);min-width:0}
.topbar-profile__head .topbar-avatar{width:36px;height:36px}
.topbar-profile__info{min-width:0}
.topbar-profile__name{font-weight:700;color:var(--text);font-size:.9rem;line-height:1.25;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar-profile__role{font-size:.78rem;color:var(--muted);line-height:1.3}
a.topbar-menu__item{text-decoration:none}

/* ===== Página Assinaturas — abas ===== */
.assin-tabs{margin:2px 0 14px;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.assin-tabs::-webkit-scrollbar{display:none}
.assin-tab{flex:none}
@media (max-width:480px){.assin-tabs{gap:4px}.assin-tab{padding:0 11px;min-height:36px;gap:6px;font-size:.84rem}}
.assin-tab{text-decoration:none;gap:8px}
.assin-tab__count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;padding:0 7px;border-radius:999px;background:#eef3fb;color:var(--muted);font-size:.74rem;font-weight:700}
.config-tab.is-active .assin-tab__count{background:rgba(255,255,255,.22);color:#fff}
.assin-panel[hidden]{display:none!important}

/* ===== Juntar PDF ===== */
.jp-drop{display:flex;flex-direction:column;align-items:center;gap:6px;padding:28px 18px;border:2px dashed #c2d4f0;border-radius:var(--radius);background:#f8fbff;text-align:center;transition:border-color .15s,background .15s}
.jp-drop.is-over{border-color:var(--primary);background:#eaf2ff}
.jp-drop__icon{width:34px;height:34px;color:var(--primary)}
.jp-drop__title{color:var(--text);font-size:1rem}
.jp-drop__or{color:var(--muted);font-size:.82rem}
.jp-drop__hint{color:var(--muted);font-size:.78rem;margin-top:4px}
.jp-panel{padding:16px 18px;display:grid;gap:12px}
.jp-resumo{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;color:var(--text)}
.jp-resumo .muted{font-size:.82rem}
.jp-lista{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.jp-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:14px;background:#fff;position:relative}
.jp-item.is-dragging{opacity:.45}
.jp-item.is-drop-before{box-shadow:0 -3px 0 var(--primary)}
.jp-item.is-drop-after{box-shadow:0 3px 0 var(--primary)}
.jp-item--protegido,.jp-item--erro{background:#fff8eb;border-color:#f1ddb0}
.jp-item--protegido .jp-item__meta,.jp-item--erro .jp-item__meta{color:#8a5a00}
.jp-item__grip{width:18px;height:18px;color:#a9b8cc;cursor:grab;flex:none}
.jp-item__grip svg{width:18px;height:18px;display:block}
.jp-item__num{min-width:18px;text-align:center;font-size:.8rem;font-weight:700;color:var(--muted);flex:none}
.jp-item__thumb{width:44px;height:56px;border:1px solid var(--line);border-radius:6px;background:#f4f7fb;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:none;color:#a9b8cc}
.jp-item__thumb img{width:100%;height:100%;object-fit:cover;object-position:top}
.jp-item__thumb svg{width:22px;height:22px}
.jp-item__info{flex:1;min-width:0}
.jp-item__nome{font-weight:700;color:var(--text);font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jp-item__meta{font-size:.78rem;color:var(--muted);margin-top:2px}
.jp-item__acoes{display:flex;gap:4px;flex:none}
.jp-ico{width:34px;height:34px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--primary-dark);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.jp-ico svg{width:17px;height:17px}
.jp-ico:hover:not(:disabled){background:#f4f8ff;border-color:#c2d4f0}
.jp-ico[data-remover]:hover:not(:disabled){background:#fff1f1;border-color:#f5c6cb;color:#b42318}
.jp-ico:disabled{opacity:.35;cursor:default}
.jp-aviso{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border-radius:14px;background:#f4f7fb;color:var(--muted);font-size:.82rem;line-height:1.45}
.jp-aviso svg{width:17px;height:17px;flex:none;margin-top:1px}
.jp-acoes{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.jp-acoes__sec{display:flex;gap:8px;flex-wrap:wrap}
.jp-btn-limpar{color:var(--muted)}
.jp-progresso{display:flex;align-items:center;gap:10px;color:var(--primary-dark);font-weight:650;font-size:.88rem}
.jp-progresso[hidden],.jp-resultado[hidden],.jp-panel[hidden]{display:none!important}
.jp-spinner{width:18px;height:18px;border:2.5px solid #c2d4f0;border-top-color:var(--primary);border-radius:50%;display:inline-block;animation:jp-giro .8s linear infinite}
@keyframes jp-giro{to{transform:rotate(360deg)}}
.jp-resultado{padding:16px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-color:#86efac;background:#f0fdf4}
.jp-resultado__info{display:flex;gap:10px;align-items:flex-start;min-width:0}
.jp-resultado__info>svg{width:22px;height:22px;color:#16a34a;flex:none;margin-top:1px}
.jp-resultado__info strong{color:#15803d}
.jp-resultado__nome{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.82rem;color:var(--text);word-break:break-all}
.jp-resultado__info .muted{font-size:.8rem}
.jp-resultado__acoes{display:flex;gap:8px;flex-wrap:wrap}
@media (max-width:600px){
  .jp-item{flex-wrap:wrap;padding:10px}
  .jp-item__grip{display:none}
  .jp-item__info{flex-basis:calc(100% - 90px)}
  .jp-item__acoes{width:100%;justify-content:flex-end;padding-top:6px;border-top:1px dashed var(--line)}
  .jp-ico{width:42px;height:38px}
  .jp-acoes{flex-direction:column-reverse;align-items:stretch}
  .jp-btn-juntar{width:100%}
  .jp-acoes__sec>.btn,.jp-resultado__acoes>.btn{flex:1;white-space:nowrap;padding:0 10px;font-size:.86rem}
  .jp-resultado__acoes{width:100%}
}


/* ===== Gestão de usuários (cartões, filtros, bloqueio) ===== */
.usr-ico{width:15px;height:15px;flex:none;display:inline-block;vertical-align:-3px}
.usr-page{grid-template-columns:minmax(0,1fr)}
.usr-head{align-items:center}
.usr-head>div{flex:1;min-width:0}
.usr-btn-novo{gap:8px;white-space:nowrap}
.usr-btn-novo .usr-ico{width:18px;height:18px}
.usr-filtros-card{padding:14px 16px;display:grid;gap:10px}
.usr-busca-linha{display:flex;gap:8px;align-items:center}
.usr-busca{flex:1;min-width:0;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:14px;background:var(--bg);padding:0 12px;color:var(--muted)}
.usr-busca:focus-within{border-color:var(--primary)}
.usr-busca input{flex:1;min-width:0;width:0;border:0;background:transparent;padding:11px 0;font:inherit;font-size:.9rem;color:var(--text);outline:none}
.usr-btn-filtros{display:none;gap:6px;white-space:nowrap}
.usr-filtros-badge{min-width:18px;height:18px;border-radius:999px;background:var(--primary);color:#fff;font-size:.7rem;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}
.usr-filtros-badge[hidden]{display:none}
.usr-filtros{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;align-items:center}
.usr-filtros .field-group__select{padding:9px 12px}
.usr-filtros .btn[hidden]{display:none}
.usr-status-filtros{display:flex;gap:6px;flex-wrap:wrap}
.usr-status{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);background:#fff;color:var(--muted);border-radius:999px;padding:6px 12px;font-size:.8rem;font-weight:700;cursor:pointer;font-family:inherit}
.usr-status:hover{border-color:#c2d4f0;color:var(--primary-dark)}
.usr-status.is-active{background:var(--primary);border-color:var(--primary);color:#fff}
.usr-status span{font-weight:600;opacity:.85}
.usr-lista{display:grid;gap:10px}
.user-row.usr-card{display:flex;flex-direction:row;justify-content:flex-start;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 16px}
.usr-card:hover{border-color:#c2d4f0}
.usr-card--bloqueado{background:#fff8f8!important;border-color:#f5c6cb!important}
.usr-card--bloqueado .usr-card__nome{color:var(--muted)}
.usr-card--bloqueado .usr-avatar{filter:grayscale(1);opacity:.6}
.usr-avatar{width:42px!important;height:42px!important;border-radius:50%!important;font-size:1rem}
.usr-card__corpo{flex:1;min-width:0;display:grid;gap:8px}
.usr-card__topo{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.usr-card__nome{font-size:.98rem;color:var(--text)}
.usr-card__dados{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px}
.usr-dado{display:flex;align-items:center;gap:6px;font-size:.82rem;color:var(--muted);min-width:0}
.usr-dado>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.usr-dado b{color:var(--text);font-weight:700}
.usr-dado__sep{color:#a9b8cc}
.usr-card__pills{display:flex;gap:6px;flex-wrap:wrap}
.usr-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;font-size:.74rem;font-weight:700;line-height:1.3;border:1px solid transparent}
.usr-pill .usr-ico{width:13px;height:13px;vertical-align:0}
.usr-pill--perfil{background:#e9f1ff;color:var(--primary-dark)}
.usr-pill--ativo{background:#f0fdf4;color:#15803d;border-color:#86efac}
.usr-pill--bloqueado,.usr-pill--bloqueio{background:#fde8e8;color:#b42318;border-color:#f5c6cb}
.usr-pill--bloqueio{border-radius:12px}
.usr-pill--acesso{background:#fff7e8;color:#8a5a00;border-color:#f1ddb0}
.usr-pill--soft{background:#f4f7fb;color:var(--muted)}
.usr-card__acoes{display:flex;gap:6px;align-items:center;flex:none}
.usr-acao{gap:6px;white-space:nowrap}
.usr-acao--desbloquear{color:#15803d!important;border-color:#86efac!important}
.usr-acao--desbloquear:hover{background:#f0fdf4!important}
.usr-acao--mais{padding:0 10px}
.usr-acao__rotulo-mob{display:none}
.usr-acao-form{margin:0}
.usr-menu .topbar-menu__dropdown{min-width:210px}
.usr-menu .topbar-menu__item{font-size:.86rem}
.usr-menu .topbar-menu__icon .usr-ico{width:18px;height:18px}
@media (max-width:760px){
  .usr-card__dados{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:600px){
  .usr-head{flex-direction:row;align-items:center}
  .usr-btn-novo{width:44px;height:44px;min-height:44px;padding:0;border-radius:14px;justify-content:center}
  .usr-btn-novo span{display:none}
  .usr-filtros-card{padding:12px}
  .usr-btn-filtros{display:inline-flex}
  .usr-filtros{display:none;grid-template-columns:minmax(0,1fr)}
  .usr-filtros.is-open{display:grid}
  .usr-status-filtros{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .usr-status-filtros::-webkit-scrollbar{display:none}
  .usr-status{flex:none}
  .user-row.usr-card{flex-direction:row;flex-wrap:wrap;padding:12px;gap:10px}
  .usr-avatar{width:38px!important;height:38px!important}
  .usr-card__corpo{flex-basis:calc(100% - 48px)}
  .usr-card__acoes{width:100%;flex-wrap:wrap;padding-top:10px;border-top:1px dashed var(--line)}
  .usr-card--bloqueado .usr-card__acoes{border-top-color:#f5c6cb}
  .usr-card__acoes>.btn,.usr-card__acoes>.usr-acao-form,.usr-card__acoes>.usr-menu{flex:1 1 0}
  .usr-card__acoes .btn{width:100%;justify-content:center;min-height:38px}
  .usr-acao__rotulo-mob{display:inline}
  .usr-menu .topbar-menu__dropdown{right:0;left:auto}
  .usr-pill--bloqueio{white-space:normal}
}

.usr-setor-legado{display:block;margin-top:4px;font-size:.76rem;color:#8a5a00;line-height:1.35}
.usr-setor-legado[hidden]{display:none}

/* ===== Autenticar: busca instantânea ===== */
.autenticar-busca-info{font-size:.82rem;margin:0 0 10px 2px}
.autenticar-busca-spinner{width:16px;height:16px;flex:none;border:2px solid #c2d4f0;border-top-color:var(--primary);border-radius:50%;animation:jp-giro .8s linear infinite}
.autenticar-busca-spinner[hidden]{display:none}
/* Espaço para o botão Cancelar/Reativar não cobrir o título */
.dash-process-item-wrap--com-acao .dash-process-item__main{padding-right:104px}
/* Separador dentro dos menus do topo */
.topbar-menu__sep{height:1px;background:var(--line);margin:4px 6px}
