/* ContaCloud Portal do Cliente - mesma gramática visual da consola de suporte e do SuperAdmin (azul #0046fe / laranja #f47920, Roboto + Poppins).
   Prefixo pc-*. Mobile primeiro: nada de scroll horizontal da página; as tabelas largas rolam dentro do seu contentor. */

:root {
    --pc-blue: #0046fe; --pc-blue-hover: #0037c9; --pc-blue-soft: #e6edff;
    --pc-orange: #f47920; --pc-orange-soft: #fef0e6;
    --pc-bg: #eef1f4; --pc-surface: #fff; --pc-surface-2: #f6f7f9; --pc-border: #e0e3e8; --pc-border-strong: #c3c8d0;
    --pc-text: #1f2328; --pc-muted: #5f6670;
    --pc-ok: #2e7d32; --pc-ok-bg: #e8f5e9; --pc-warn: #b45309; --pc-warn-bg: #fff3e0; --pc-danger: #c62828; --pc-danger-bg: #ffebee;
    --pc-info: #0046fe; --pc-info-bg: #e6edff; --pc-neutral: #5f6670; --pc-neutral-bg: #eceff2;
    --pc-radius: 8px; --pc-radius-sm: 5px;
    --pc-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --pc-head: "Poppins", "Roboto", system-ui, Arial, sans-serif;
    --pc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --pc-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-synthesis: none; font-family: var(--pc-font); font-size: 15px; line-height: 1.5; color: var(--pc-text); background: var(--pc-bg); overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--pc-head); font-weight: 500; }
ul, ol { list-style: none; }
a { color: var(--pc-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.ti { line-height: 1; }
:focus-visible { outline: 2px solid var(--pc-blue); outline-offset: 2px; }
.pc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pc-sub { display: block; font-size: 13px; color: var(--pc-muted); }
.pc-wrap { overflow-wrap: anywhere; }
.pc-mb { margin-bottom: 12px; }
.pc-center { text-align: center !important; }
.pc-link { display: inline-block; margin-top: 10px; font-weight: 500; }

/* ── Estrutura ── */
.pc-app { min-height: 100vh; display: flex; flex-direction: column; }
.pc-top { background: var(--pc-blue); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; min-height: 56px; position: sticky; top: 0; z-index: 30; border-bottom: 3px solid var(--pc-orange); }
.pc-top__brand { display: flex; align-items: center; gap: 10px; flex: none; }
.pc-top__brand strong { font-family: var(--pc-head); font-size: 17px; letter-spacing: .1px; }
.pc-top__logo { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--pc-blue); display: inline-flex; align-items: center; justify-content: center; font: italic 500 19px Georgia, serif; flex: none; }
.pc-top__tag { font-size: 11px; font-weight: 500; letter-spacing: 1.2px; color: #dbe4fb; padding: 2px 8px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 2px; white-space: nowrap; }
.pc-top__name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.pc-top__right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; flex: 1 1 auto; }
.pc-top__logout { margin: 0; }
.pc-top__btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid rgba(255, 255, 255, .4); color: #fff; border-radius: var(--pc-radius-sm); padding: 6px 10px; font: 500 13px var(--pc-font); cursor: pointer; }
.pc-top__btn:hover { background: rgba(255, 255, 255, .12); }
.pc-co { display: inline-flex; align-items: center; gap: 8px; color: #fff; padding: 5px 10px; border-radius: var(--pc-radius-sm); background: rgba(255, 255, 255, .12); min-width: 0; max-width: 360px; }
.pc-co:hover { background: rgba(255, 255, 255, .2); text-decoration: none; }
.pc-co__name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pc-co__switch { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #e8eefc; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .35); white-space: nowrap; }

.pc-shell { flex: 1; display: grid; grid-template-columns: 240px minmax(0, 1fr); width: 100%; align-items: start; background: linear-gradient(to right, var(--pc-surface) 239px, var(--pc-border) 239px, var(--pc-border) 240px, transparent 240px); }
.pc-nav { position: sticky; top: 59px; align-self: start; height: calc(100vh - 59px); overflow-y: auto; display: flex; flex-direction: column; background: var(--pc-surface); border-right: 1px solid var(--pc-border); padding: 8px 0 24px; }
.pc-nav__group { padding: 16px 20px 6px; font-size: 11px; font-weight: 500; letter-spacing: 1.1px; text-transform: uppercase; color: var(--pc-muted); }
.pc-nav__item { display: flex; align-items: center; gap: 10px; padding: 9px 20px; color: var(--pc-text); font-size: 14px; border-left: 3px solid transparent; }
.pc-nav__item i { font-size: 18px; color: var(--pc-muted); flex: none; }
.pc-nav__item:hover { background: var(--pc-surface-2); text-decoration: none; }
.pc-nav__item.is-active { background: var(--pc-blue-soft); border-left-color: var(--pc-orange); color: var(--pc-blue); font-weight: 500; }
.pc-nav__item.is-active i { color: var(--pc-blue); }
.pc-nav__count { margin-left: auto; min-width: 20px; padding: 0 6px; height: 20px; border-radius: 999px; background: var(--pc-orange); color: #fff; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }
.pc-main { min-width: 0; padding: 22px 28px 40px; max-width: 1180px; width: 100%; }
.pc-main--solo { flex: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 24px 20px; }
.pc-foot { text-align: center; color: var(--pc-muted); font-size: 12px; padding: 18px 12px 24px; }

.pc-page { display: flex; flex-direction: column; gap: 16px; }
.pc-page__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pc-page__titles { min-width: 0; }
.pc-page__title { font-size: 22px; line-height: 1.25; }
.pc-page__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pc-page__actions form { margin: 0; }

.pc-card { background: var(--pc-surface); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); box-shadow: var(--pc-shadow); padding: 18px; min-width: 0; }
.pc-card__title { font-size: 16px; margin-bottom: 12px; }
.pc-card__sub { font-size: 14px; margin: 16px 0 6px; color: var(--pc-muted); font-weight: 500; }
.pc-card__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pc-card__bar .pc-card__title { margin: 0; }

/* ── Botões e campos ── */
.pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; min-height: 40px; border: 1px solid var(--pc-border-strong); border-radius: var(--pc-radius-sm); background: var(--pc-surface); color: var(--pc-text); font: 500 14px var(--pc-font); cursor: pointer; white-space: nowrap; }
.pc-btn:hover { background: var(--pc-surface-2); text-decoration: none; }
.pc-btn--primary { background: var(--pc-blue); border-color: var(--pc-blue); color: #fff; }
.pc-btn--primary:hover { background: var(--pc-blue-hover); }
.pc-btn--sm { padding: 6px 12px; min-height: 34px; font-size: 13px; }
.pc-btn--block { width: 100%; }
.pc-btn[disabled] { opacity: .55; cursor: not-allowed; }
.pc-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--pc-radius-sm); color: var(--pc-muted); border: 1px solid var(--pc-border); background: var(--pc-surface); cursor: pointer; }
.pc-iconbtn:hover { color: var(--pc-blue); background: var(--pc-blue-soft); text-decoration: none; }
.pc-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pc-field__label { font-size: 13px; font-weight: 500; color: var(--pc-muted); }
.pc-field__label em { font-style: normal; font-weight: 400; }
.pc-field--grow { flex: 1 1 200px; }
.pc-input, .pc-select, .pc-textarea { width: 100%; padding: 9px 11px; min-height: 40px; border: 1px solid var(--pc-border-strong); border-radius: var(--pc-radius-sm); background: #fff; color: var(--pc-text); font: 15px var(--pc-font); }
.pc-select { padding-right: 28px; }
.pc-select--sm { min-height: 34px; padding: 5px 28px 5px 10px; font-size: 13px; width: auto; }
.pc-textarea { resize: vertical; min-height: 64px; }
.pc-input:focus, .pc-select:focus, .pc-textarea:focus { outline: 2px solid var(--pc-blue-soft); border-color: var(--pc-blue); }
.pc-hint { font-size: 13px; color: var(--pc-muted); }
.pc-form { display: flex; flex-direction: column; gap: 14px; }
.pc-form--inline { max-width: 460px; }
.pc-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Avisos, emblemas, vazio ── */
.pc-alert { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: var(--pc-radius-sm); font-size: 14px; border: 1px solid transparent; border-left-width: 4px; }
.pc-alert i { font-size: 18px; margin-top: 1px; flex: none; }
.pc-alert--ok { background: var(--pc-ok-bg); color: #1b5e20; border-color: #c8e6c9; }
.pc-alert--danger { background: var(--pc-danger-bg); color: #b71c1c; border-color: #ffcdd2; }
.pc-alert--warn { background: var(--pc-warn-bg); color: #8a4100; border-color: #ffe0b2; }
.pc-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pc-badge--ok { background: var(--pc-ok-bg); color: var(--pc-ok); }
.pc-badge--info { background: var(--pc-info-bg); color: var(--pc-info); }
.pc-badge--warn { background: var(--pc-warn-bg); color: var(--pc-warn); }
.pc-badge--danger { background: var(--pc-danger-bg); color: var(--pc-danger); }
.pc-badge--neutral { background: var(--pc-neutral-bg); color: var(--pc-neutral); }
.pc-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 12px; color: var(--pc-muted); }
.pc-empty strong { color: var(--pc-text); font-family: var(--pc-head); font-size: 15px; }
.pc-empty__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--pc-blue-soft); color: var(--pc-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 4px; }
.pc-empty__actions { margin-top: 10px; }
.pc-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--pc-muted); }
.pc-note--ok { color: var(--pc-ok); } .pc-note--warn { color: var(--pc-warn); }
.pc-note--mobile { display: none; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--pc-surface-2); border: 1px solid var(--pc-border); color: var(--pc-muted); }
.pc-chip--info { background: var(--pc-info-bg); border-color: transparent; color: var(--pc-info); }
.pc-code { font-family: var(--pc-mono); font-size: 13px; background: var(--pc-surface-2); border: 1px solid var(--pc-border); border-radius: 4px; padding: 1px 6px; }

/* ── Listas ── */
.pc-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--pc-border); }
.pc-list li:first-child { border-top: 0; }
.pc-list__main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pc-list--links li { padding: 0; }
.pc-list--links a { display: flex; align-items: center; gap: 12px; padding: 11px 4px; width: 100%; color: var(--pc-text); }
.pc-list--links a:hover { background: var(--pc-surface-2); text-decoration: none; }
.pc-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 20px; }
.pc-dl dt { font-size: 12px; color: var(--pc-muted); text-transform: uppercase; letter-spacing: .4px; }
.pc-dl dd { font-weight: 500; }

/* ── Painel ── */
.pc-todo__list { display: flex; flex-direction: column; gap: 8px; }
.pc-todo__item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--pc-radius-sm); border: 1px solid var(--pc-border); border-left-width: 4px; color: var(--pc-text); background: var(--pc-surface); }
.pc-todo__item:hover { background: var(--pc-surface-2); text-decoration: none; }
.pc-todo__item--danger { border-left-color: var(--pc-danger); } .pc-todo__item--warn { border-left-color: var(--pc-orange); } .pc-todo__item--info { border-left-color: var(--pc-blue); }
.pc-todo__ico { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; background: var(--pc-surface-2); color: var(--pc-muted); flex: none; }
.pc-todo__item--danger .pc-todo__ico { background: var(--pc-danger-bg); color: var(--pc-danger); }
.pc-todo__item--warn .pc-todo__ico { background: var(--pc-warn-bg); color: var(--pc-warn); }
.pc-todo__item--info .pc-todo__ico { background: var(--pc-info-bg); color: var(--pc-info); }
.pc-todo__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pc-todo__txt strong { overflow-wrap: anywhere; }
.pc-todo__go { color: var(--pc-muted); }
.pc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.pc-kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--pc-surface); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); box-shadow: var(--pc-shadow); color: var(--pc-text); }
.pc-kpi:hover { text-decoration: none; border-color: var(--pc-blue); }
.pc-kpi__n { font: 500 26px var(--pc-head); color: var(--pc-blue); line-height: 1.2; }
.pc-kpi__n--txt { font-size: 17px; padding: 5px 0; }
.pc-kpi__n--txt::first-letter { text-transform: uppercase; }
.pc-kpi__l { font-size: 13px; color: var(--pc-muted); }

/* ── Empresas ── */
.pc-co-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.pc-co-card { display: flex; align-items: center; gap: 14px; }
.pc-co-card.is-current { border-color: var(--pc-blue); }
.pc-co-card__ico { width: 44px; height: 44px; border-radius: var(--pc-radius); background: var(--pc-blue-soft); color: var(--pc-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.pc-co-card__main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; align-items: flex-start; }
.pc-co-card__main strong { overflow-wrap: anywhere; }
.pc-co-card form { margin: 0; }

/* ── Pedidos ── */
.pc-reqs { display: flex; flex-direction: column; gap: 12px; }
.pc-req { display: flex; gap: 16px; justify-content: space-between; align-items: center; border-left: 4px solid var(--pc-blue); scroll-margin-top: 80px; }
.pc-req--danger { border-left-color: var(--pc-danger); } .pc-req--warn { border-left-color: var(--pc-orange); }
.pc-req__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.pc-req__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-req__title { font-size: 15px; overflow-wrap: anywhere; }
.pc-req__desc { color: var(--pc-muted); font-size: 14px; overflow-wrap: anywhere; }
.pc-req__act { display: flex; flex-direction: column; gap: 8px; flex: none; }
.pc-req:target { box-shadow: 0 0 0 2px var(--pc-blue-soft), var(--pc-shadow); }
.pc-done summary { cursor: pointer; list-style: none; }
.pc-done summary::-webkit-details-marker { display: none; }
.pc-done summary h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.pc-done summary h2::before { content: "\ea61"; font-family: "tabler-icons", "tabler-icons-full"; font-size: 16px; color: var(--pc-muted); transition: transform .15s; }
.pc-done[open] summary h2::before { transform: rotate(90deg); }
.pc-done .pc-list { margin-top: 10px; }

/* ── Enviar ── */
.pc-upload { display: flex; flex-direction: column; gap: 14px; }
.pc-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 30px 16px; text-align: center; border: 2px dashed var(--pc-border-strong); border-radius: var(--pc-radius); background: var(--pc-surface-2); cursor: pointer; color: var(--pc-muted); transition: background .15s, border-color .15s; }
.pc-drop i { font-size: 38px; color: var(--pc-blue); }
.pc-drop strong { color: var(--pc-text); font-family: var(--pc-head); font-weight: 500; }
.pc-drop span { font-size: 13px; }
.pc-drop:hover, .pc-drop.is-over { border-color: var(--pc-blue); background: var(--pc-blue-soft); }
.pc-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pc-drop:focus-within { outline: 2px solid var(--pc-blue); outline-offset: 2px; }
.pc-files { display: flex; flex-direction: column; gap: 10px; }
.pc-files:empty { display: none; }
.pc-file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; padding: 12px; border: 1px solid var(--pc-border); border-radius: var(--pc-radius-sm); background: var(--pc-surface); }
.pc-file.is-ok { border-color: #a5d6a7; background: #f6fbf6; }
.pc-file.is-error { border-color: #ef9a9a; background: #fff8f8; }
.pc-file.is-dup { border-color: #ffcc80; background: #fffaf3; }
.pc-file__head { display: flex; align-items: center; gap: 10px; min-width: 0; grid-column: 1; }
.pc-file__ico { font-size: 24px; color: var(--pc-blue); flex: none; }
.pc-file__name { display: flex; flex-direction: column; min-width: 0; }
.pc-file__name strong { overflow-wrap: anywhere; font-size: 14px; }
.pc-file__x { grid-column: 2; grid-row: 1; align-self: start; }
.pc-file__fields { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pc-file__msg { grid-column: 1 / -1; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--pc-muted); }
.pc-file__msg .is-warn { color: var(--pc-warn); } .pc-file__msg .is-err { color: var(--pc-danger); } .pc-file__msg .is-good { color: var(--pc-ok); }
.pc-file__bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--pc-neutral-bg); overflow: hidden; }
.pc-file__bar > span { display: block; height: 100%; width: 0; background: var(--pc-blue); transition: width .15s; }
.pc-file .pc-input, .pc-file .pc-select { min-height: 36px; padding: 6px 9px; font-size: 14px; }
.pc-more summary { cursor: pointer; font-size: 14px; color: var(--pc-blue); font-weight: 500; }
.pc-more__body { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.pc-upload__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pc-filter { margin: 0; }
.pc-reason { display: flex; align-items: flex-start; gap: 5px; font-size: 13px; color: var(--pc-warn); margin-top: 4px; max-width: 280px; }

/* ── Tabelas ── */
.pc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -2px; }
.pc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pc-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--pc-muted); font-weight: 500; padding: 9px 10px; border-bottom: 1px solid var(--pc-border-strong); background: var(--pc-surface-2); white-space: nowrap; }
.pc-table td { padding: 10px; border-bottom: 1px solid var(--pc-border); vertical-align: top; }
.pc-table td > span:not(.pc-badge) { display: block; }
.pc-col-act { text-align: right; white-space: nowrap; }
.pc-col-act > * { margin-left: 4px; }
.pc-num { font-variant-numeric: tabular-nums; }
.pc-bal thead th:not(.pc-th-conta):not(.pc-th-desc), .pc-bal tbody td:nth-child(n+3), .pc-bal tfoot td:nth-child(n+2) { text-align: right; }
.pc-ext__tbl thead th:nth-child(n+4), .pc-ext__tbl tbody td:nth-child(n+4), .pc-ext__tbl tfoot td:nth-child(n+2), .pc-ext__tbl .pc-row-sub td:last-child { text-align: right; }
.pc-ext__tbl .pc-row-sub td:first-child { text-align: left; }
.pc-num tfoot td { font-weight: 500; background: var(--pc-surface-2); border-top: 2px solid var(--pc-border-strong); }
.pc-num tfoot td:first-child { text-align: left; }
.pc-bal td { padding: 7px 10px; white-space: nowrap; }
.pc-bal .pc-td-desc { white-space: normal; min-width: 180px; }
.pc-bal .pc-td-conta { font-family: var(--pc-mono); font-size: 13px; }
.pc-row-top td { font-weight: 500; background: #fafbfc; }
.pc-row-sub td { background: var(--pc-surface-2); font-weight: 500; color: var(--pc-muted); }
.pc-print__head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.pc-print > .pc-card + .pc-card { margin-top: 12px; }
.pc-print > .pc-print__head { margin-bottom: 12px; }
.pc-ext__title { font-size: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.pc-ext__doc { white-space: nowrap; font-family: var(--pc-mono); font-size: 13px; }
.pc-ext__tbl .pc-td-desc { min-width: 200px; }
.pc-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.pc-filters .pc-field { flex: 0 1 170px; }
.pc-filters .pc-field--grow { flex: 1 1 200px; }
.pc-filters__act { display: flex; }
.pc-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 14px; }
.pc-pager__info { font-size: 13px; color: var(--pc-muted); }

/* ── Mensagens e notificações ── */
.pc-chat { display: flex; flex-direction: column; gap: 14px; }
.pc-msgs { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 2px; }
.pc-msg { display: flex; }
.pc-msg--me { justify-content: flex-end; }
.pc-msg__bubble { max-width: min(560px, 88%); padding: 9px 13px; border-radius: 14px; background: var(--pc-surface-2); border: 1px solid var(--pc-border); display: flex; flex-direction: column; gap: 2px; }
.pc-msg--me .pc-msg__bubble { background: var(--pc-blue-soft); border-color: #cfd9f6; border-bottom-right-radius: 4px; }
.pc-msg--them .pc-msg__bubble { border-bottom-left-radius: 4px; }
.pc-msg__who { font-size: 12px; font-weight: 500; color: var(--pc-muted); }
.pc-msg__txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.pc-msg__time { font-size: 11px; color: var(--pc-muted); align-self: flex-end; }
.pc-compose { display: flex; gap: 10px; align-items: flex-end; border-top: 1px solid var(--pc-border); padding-top: 14px; }
.pc-compose .pc-textarea { flex: 1; }
.pc-notes li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--pc-border); }
.pc-notes li:first-child { border-top: 0; }
.pc-note-item__ico { width: 36px; height: 36px; border-radius: 50%; background: var(--pc-surface-2); color: var(--pc-muted); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.pc-note-item.is-unread .pc-note-item__ico { background: var(--pc-blue-soft); color: var(--pc-blue); }
.pc-note-item__main { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.pc-note-item__txt { color: var(--pc-muted); font-size: 14px; overflow-wrap: anywhere; }
.pc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pc-orange); margin-top: 8px; flex: none; }

/* ── Autenticação ── */
.pc-auth { min-height: 100vh; display: flex; flex-direction: column; }
.pc-auth__body { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px 24px; }
.pc-auth__card { width: 100%; max-width: 440px; border-top: 4px solid var(--pc-blue); display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.pc-auth__card--wide { max-width: 860px; gap: 10px; padding: 20px 24px; }
.pc-auth__card--wide .pc-auth__title { font-size: 20px; }
.pc-auth__card--wide .pc-auth__lead { font-size: 13px; margin-top: -4px; }
.pc-auth__card--wide .pc-form { max-width: none; gap: 10px; }
.pc-auth__card--wide .pc-gab { padding: 7px 12px; }
.pc-auth__card--wide .pc-gab__txt { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.pc-auth__card--wide .pc-alert { padding: 8px 12px; font-size: 13px; }
.pc-auth__card--wide .pc-step { padding: 10px 14px 12px; gap: 9px; }
.pc-auth__card--wide .pc-step .pc-hint { font-size: 13px; }
.pc-invite { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.pc-mfa { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: start; }
.pc-mfa__qr { min-width: 0; }
.pc-mfa__qr .pc-qr { width: 170px; height: 170px; }
.pc-mfa__side { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.pc-mfa__manual { display: flex; flex-direction: column; gap: 5px; }
.pc-mfa__key { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-secret__code { font-family: var(--pc-mono); font-size: 13px; letter-spacing: 1px; color: var(--pc-text); user-select: all; overflow-wrap: anywhere; flex: 1 1 200px; }
@media (max-width: 860px) { .pc-invite { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .pc-mfa { grid-template-columns: minmax(0, 1fr); } .pc-mfa__qr .pc-qr { margin: 0 auto; } }
.pc-auth__title { font-size: 21px; }
.pc-auth__lead { color: var(--pc-muted); font-size: 14px; }
.pc-auth__alt { font-size: 13px; color: var(--pc-muted); }
.pc-auth__foot { text-align: center; color: var(--pc-muted); font-size: 12px; padding: 14px 16px 22px; }
.pc-gab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; background: var(--pc-blue-soft); border: 1px solid #cfd9f6; border-radius: var(--pc-radius-sm); }
.pc-gab__txt { display: flex; flex-direction: column; min-width: 0; }
.pc-gab__lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--pc-muted); }
.pc-gab__nome { overflow-wrap: anywhere; }
.pc-gab__id { font-size: 12px; color: var(--pc-muted); font-family: var(--pc-mono); overflow-wrap: anywhere; }
.pc-step { border: 1px solid var(--pc-border); border-radius: var(--pc-radius-sm); padding: 14px; display: flex; flex-direction: column; gap: 12px; margin: 0; min-width: 0; }
.pc-step legend { font: 500 14px var(--pc-head); padding: 0 6px; display: flex; align-items: center; gap: 8px; }
.pc-step__n { width: 22px; height: 22px; border-radius: 50%; background: var(--pc-blue); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.pc-qr { width: 184px; height: 184px; flex: none; margin: 0 auto; background: #fff; padding: 6px; border: 1px solid var(--pc-border); border-radius: var(--pc-radius-sm); }
.pc-qr svg { width: 100%; height: 100%; display: block; }
.pc-secret { font-size: 13px; color: var(--pc-muted); text-align: center; overflow-wrap: anywhere; }
.pc-secret code { font-family: var(--pc-mono); color: var(--pc-text); letter-spacing: 1px; }

/* ── Responsivo ── */
@media (max-width: 1000px) {
    .pc-shell { grid-template-columns: minmax(0, 1fr); padding: 0 0 16px; gap: 0; }
    .pc-nav__group { display: none; }
    .pc-nav { position: sticky; top: 59px; height: auto; z-index: 20; flex-direction: row; overflow-x: auto; border-radius: 0; border-width: 0 0 1px; padding: 6px 10px; gap: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .pc-nav::-webkit-scrollbar { display: none; }
    .pc-nav__item { flex: none; flex-direction: column; gap: 2px; padding: 6px 12px; border-left: 0; border-bottom: 3px solid transparent; font-size: 12px; position: relative; min-width: 66px; text-align: center; }
    .pc-nav__item i { font-size: 21px; }
    .pc-nav__count { position: absolute; top: 2px; right: 8px; margin: 0; min-width: 17px; height: 17px; font-size: 11px; padding: 0 4px; }
    .pc-main { padding: 14px 14px 0; }
    .pc-co__switch span { display: none; }
}
@media (max-width: 700px) {
    body { font-size: 15px; }
    .pc-top { padding: 0 12px; }
    .pc-top:has(.pc-co) .pc-top__tag { display: none; }
    .pc-top__tag { font-size: 10px; padding: 3px 7px; letter-spacing: .5px; }
    .pc-co { max-width: none; flex: 0 1 auto; }
    .pc-table:not(.pc-table--stack) { font-size: 13px; }
    .pc-table:not(.pc-table--stack) th, .pc-table:not(.pc-table--stack) td { padding: 8px 5px; }
    .pc-table--stack td:first-child { display: block; text-align: left !important; }
    .pc-bal .pc-td-desc { min-width: 0; }
    .pc-bal .pc-td-conta { font-size: 12px; }
    .pc-top__btn span { display: none; }
    .pc-top__btn { padding: 7px 9px; }
    .pc-page__title { font-size: 20px; }
    .pc-card { padding: 14px; }
    .pc-page__actions { width: 100%; }
    .pc-co-list { grid-template-columns: minmax(0, 1fr); }
    .pc-co-card { flex-wrap: wrap; }
    .pc-co-card form { width: 100%; } .pc-co-card form .pc-btn { width: 100%; }
    .pc-req { flex-direction: column; align-items: stretch; }
    .pc-req__act { flex-direction: row; flex-wrap: wrap; } .pc-req__act .pc-btn { flex: 1 1 auto; }
    .pc-file__fields { grid-template-columns: minmax(0, 1fr); }
    .pc-filters .pc-field { flex: 1 1 calc(50% - 6px); }
    .pc-filters .pc-field--grow { flex: 1 1 100%; }
    .pc-filters__act, .pc-filters__act .pc-btn { width: 100%; }
    .pc-hide-sm { display: none !important; }
    .pc-note--mobile { display: flex; }
    .pc-compose { flex-direction: column; align-items: stretch; }
    .pc-auth__body { padding: 20px 12px; } .pc-auth__card { padding: 20px 16px; }
    .pc-upload__bar .pc-btn { width: 100%; }
    /* Tabelas «empilhadas»: cada linha vira um cartão com rótulos. */
    .pc-table--stack thead { display: none; }
    .pc-table--stack, .pc-table--stack tbody, .pc-table--stack tfoot, .pc-table--stack tr, .pc-table--stack td { display: block; width: 100%; }
    .pc-table--stack tr { border: 1px solid var(--pc-border); border-radius: var(--pc-radius-sm); margin-bottom: 10px; padding: 6px 10px; background: var(--pc-surface); }
    .pc-table--stack td { border: 0; padding: 5px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; text-align: right !important; }
    .pc-table--stack td::before { content: attr(data-l); font-size: 12px; color: var(--pc-muted); text-align: left; flex: none; padding-top: 2px; }
    .pc-table--stack td[colspan] { display: block; text-align: left !important; }
    .pc-table--stack td > span:not(.pc-badge) { display: block; }
    .pc-table--stack td:first-child::before { content: none; }
    .pc-table--stack td.pc-col-act { justify-content: flex-end; }
    .pc-table--stack td.pc-col-act::before { content: none; }
    .pc-table--stack tfoot td { background: transparent; }
    .pc-table--stack tfoot tr { background: var(--pc-surface-2); }
    .pc-table--stack .pc-td-desc { min-width: 0; }
    .pc-table--stack td:first-child { font-weight: 500; }
    .pc-reason { max-width: none; }
}

/* ── Impressão ── */
@media print {
    @page { size: A4 landscape; margin: 12mm; }
    body { background: #fff; font-size: 11px; }
    .pc-top, .pc-nav, .pc-foot, .pc-page__head, .pc-filters, .pc-alert, .pc-note, .pc-pager { display: none !important; }
    .pc-shell { display: block; padding: 0; max-width: none; }
    .pc-main { padding: 0; }
    .pc-card { border: 0; box-shadow: none; padding: 0; }
    .pc-hide-sm { display: table-cell !important; }
    .pc-table-wrap { overflow: visible; }
    .pc-table { font-size: 11px; } .pc-table th, .pc-table td { padding: 3px 5px; }
    .pc-table tr { break-inside: avoid; }
    .pc-table--stack thead { display: table-header-group !important; }
    .pc-table--stack, .pc-table--stack tbody, .pc-table--stack tfoot { display: table !important; width: 100%; }
    .pc-table--stack tr { display: table-row !important; border: 0; padding: 0; margin: 0; }
    .pc-table--stack td { display: table-cell !important; padding: 3px 5px; text-align: left; border-bottom: 1px solid #ddd; }
    .pc-table--stack td::before { content: none !important; }
    .pc-print__head { display: flex !important; margin-bottom: 8px; }
    .pc-ext { break-inside: avoid-page; margin-bottom: 14px; }
    .pc-print > .pc-card + .pc-card { margin-top: 10px; }
}

/* ── Passos do início de sessão ── */
.pc-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 4px; padding: 0; }
.pc-steps__i { flex: 1; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--pc-muted); padding-top: 8px; border-top: 3px solid var(--pc-border); min-width: 0; }
.pc-steps__i.is-current { border-top-color: var(--pc-orange); color: var(--pc-text); font-weight: 500; }
.pc-steps__i.is-done { border-top-color: var(--pc-blue); color: var(--pc-blue); }
.pc-steps__n { width: 20px; height: 20px; border-radius: 50%; background: var(--pc-neutral-bg); color: var(--pc-muted); font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pc-steps__i.is-current .pc-steps__n { background: var(--pc-blue); color: #fff; }
.pc-steps__i.is-done .pc-steps__n { background: var(--pc-blue-soft); color: var(--pc-blue); }
.pc-steps__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Selector de empresa ── */
.pc-co-hint { display: flex; align-items: center; gap: 8px; color: var(--pc-muted); font-size: 13px; margin-top: 14px; }
.pc-co-card__ava { width: 44px; height: 44px; border-radius: 50%; background: var(--pc-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 500 15px var(--pc-head); flex: none; letter-spacing: .5px; }
.pc-co-card.is-current { box-shadow: inset 4px 0 0 var(--pc-orange); }
.pc-co-card__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.pc-chip { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--pc-neutral-bg); color: var(--pc-muted); }

@media (max-width: 1000px) { .pc-nav__item.is-active { border-bottom-color: var(--pc-orange); } .pc-top__name { display: none; } .pc-main { padding: 14px 14px 0; } }
@media (max-width: 700px) { .pc-top__btn span { display: none; } .pc-steps__t { font-size: 11px; } }

/* ═══ V2: menu da conta, atalhos de gabinete, KPIs, gráficos, fiscalidade, facturas, relatórios ═══ */
.pc-acct { position: relative; }
.pc-acct > summary { list-style: none; cursor: pointer; }
.pc-acct > summary::-webkit-details-marker { display: none; }
.pc-acct__sum { display: inline-flex; align-items: center; gap: 8px; color: #fff; padding: 4px 8px 4px 4px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); font-size: 13px; }
.pc-acct__sum:hover { background: rgba(255, 255, 255, .12); }
.pc-acct__ava { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--pc-blue); display: inline-flex; align-items: center; justify-content: center; font: 500 12px var(--pc-head); flex: none; }
.pc-acct__name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-acct__menu { position: absolute; right: 0; top: calc(100% + 8px); width: 270px; background: #fff; color: var(--pc-text); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); box-shadow: 0 8px 24px rgba(16, 24, 40, .18); padding: 6px; z-index: 50; }
.pc-acct__who { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 12px; border-bottom: 1px solid var(--pc-border); margin-bottom: 4px; overflow-wrap: anywhere; }
.pc-acct__gab { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--pc-blue); margin-top: 4px; }
.pc-acct__menu form { margin: 0; }
.pc-acct__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; background: transparent; color: var(--pc-text); font: 14px var(--pc-font); text-align: left; border-radius: var(--pc-radius-sm); cursor: pointer; }
.pc-acct__item i { font-size: 18px; color: var(--pc-muted); }
.pc-acct__item:hover { background: var(--pc-surface-2); text-decoration: none; }
.pc-acct__out { border-top: 1px solid var(--pc-border); margin-top: 4px !important; padding-top: 4px; }
.pc-inline { display: inline; margin: 0; }

.pc-gabs { border: 1px solid var(--pc-border); border-radius: var(--pc-radius); background: var(--pc-surface-2); padding: 12px; margin-bottom: 18px; }
.pc-gabs__t { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--pc-muted); margin-bottom: 8px; font-weight: 500; }
.pc-gabs__l { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.pc-gabs__i { display: flex; gap: 8px; align-items: stretch; }
.pc-gabs__go { flex: 1; min-width: 0; margin: 0; }
.pc-gabs__rm { margin: 0; display: flex; }
.pc-gabs__rm .pc-iconbtn { height: 100%; width: 38px; }
.pc-gabs__btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; background: #fff; border: 1px solid var(--pc-border-strong); border-radius: var(--pc-radius-sm); cursor: pointer; text-align: left; font: 14px var(--pc-font); color: var(--pc-text); min-height: 52px; }
.pc-gabs__btn:hover { border-color: var(--pc-blue); background: var(--pc-blue-soft); }
.pc-gabs__ava { width: 34px; height: 34px; border-radius: 50%; background: var(--pc-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 500 13px var(--pc-head); flex: none; }
.pc-gabs__nm { display: flex; flex-direction: column; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pc-gabs__btn > i { color: var(--pc-muted); }

/* Tabs */
.pc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--pc-border); overflow-x: auto; scrollbar-width: none; }
.pc-tabs::-webkit-scrollbar { display: none; }
.pc-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--pc-muted); font-weight: 500; font-size: 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.pc-tab:hover { color: var(--pc-text); text-decoration: none; }
.pc-tab.is-active { color: var(--pc-blue); border-bottom-color: var(--pc-orange); }
.pc-tab__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--pc-neutral-bg); color: var(--pc-muted); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.pc-tab.is-active .pc-tab__n { background: var(--pc-blue-soft); color: var(--pc-blue); }

/* KPIs */
.pc-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pc-kpis--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pc-kpi--static:hover { border-color: var(--pc-border); }
.pc-kpi--alert { border-color: #f1b3b3; background: #fff8f8; }
.pc-kpi__n small { font-size: 13px; font-weight: 500; color: var(--pc-muted); }
.pc-kpi__n.is-neg, .is-neg { color: var(--pc-danger); }
.pc-kpi__n--sm { font-size: 20px; }
.pc-kpi__n--alt { color: var(--pc-orange); }
.pc-kpi__s { font-size: 13px; color: var(--pc-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pc-kpi__duo { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pc-kpi__duo .pc-kpi__n--alt { color: var(--pc-orange); }
.pc-kpi__sep { color: var(--pc-border-strong); font-size: 20px; }
.pc-var { display: inline-flex; align-items: center; gap: 3px; font-weight: 500; }
.pc-var.is-up { color: var(--pc-ok); } .pc-var.is-down { color: var(--pc-danger); }

/* Painel financeiro */
.pc-fin { display: flex; flex-direction: column; gap: 14px; }
.pc-fin__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pc-fin__stamp { font-size: 13px; color: var(--pc-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-fin__year { margin: 0; display: inline-flex; gap: 6px; }
.pc-select--sm { min-height: 34px; padding: 5px 9px; font-size: 14px; width: auto; }
.pc-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pc-chartcard { display: flex; flex-direction: column; gap: 8px; }
.pc-chartcard--flat { border: 0; box-shadow: none; padding: 0 0 8px; }
.pc-chartcard__head { display: flex; flex-direction: column; gap: 4px; }
.pc-chartcard__head .pc-card__title { margin: 0; }
.pc-chartbox { min-width: 0; }
.pc-legend { list-style: none; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--pc-muted); padding: 0; margin: 0; }
.pc-legend li { display: inline-flex; align-items: center; gap: 6px; }
.pc-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.pc-sw--prov { background: #0046fe; } .pc-sw--cust { background: #f47920; }
.pc-sw--line { width: 14px; height: 3px; background: #0f766e; border-radius: 2px; } .pc-sw--tes { width: 14px; height: 3px; background: var(--pc-blue); border-radius: 2px; }
.pc-chart { width: 100%; height: auto; display: block; }
.pc-ch-grid { stroke: #e6e9ee; stroke-width: 1; } .pc-ch-zero { stroke: #9aa3ad; stroke-width: 1.2; }
.pc-ch-ytxt, .pc-ch-xtxt { font: 11px var(--pc-font); fill: #5f6670; }
.pc-ch-prov { fill: #0046fe; } .pc-ch-cust { fill: #f47920; }
.pc-ch-line { fill: none; stroke: #0f766e; stroke-width: 2.4; stroke-linejoin: round; }
.pc-ch-dot { fill: #fff; stroke: #0f766e; stroke-width: 2; } .pc-ch-dot--last { fill: #0f766e; }
.pc-ch-area { fill: rgba(0, 70, 254, .12); stroke: none; }
.pc-ch-tline { fill: none; stroke: #0046fe; stroke-width: 2.4; stroke-linejoin: round; }
.pc-ch-tdot { fill: #fff; stroke: #0046fe; stroke-width: 2; } .pc-ch-tdot--last { fill: #f47920; stroke: #fff; stroke-width: 2; }
.pc-ch-val { font: 500 12px var(--pc-font); fill: #1f2328; }
.pc-chartdata { border-top: 1px dashed var(--pc-border); padding-top: 6px; font-size: 13px; }
.pc-chartdata > summary { cursor: pointer; color: var(--pc-blue); padding: 4px 0; }
.pc-r { text-align: right !important; font-variant-numeric: tabular-nums; }
.pc-num td:not(:first-child), .pc-num th:not(:first-child) { font-variant-numeric: tabular-nums; }

/* Faixa inferior do Painel */
.pc-lower { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.pc-lower--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pc-todo__chips { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pc-border); }
.pc-todo__chips .pc-chip { color: var(--pc-text); }
.pc-todo__chips a.pc-chip:hover { background: var(--pc-blue-soft); text-decoration: none; }
.pc-link { font-size: 13px; font-weight: 500; }
.pc-imp__figs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-imp__fig { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--pc-border); border-radius: var(--pc-radius-sm); color: var(--pc-text); min-width: 0; }
.pc-imp__fig:hover { text-decoration: none; border-color: var(--pc-blue); }
.pc-imp__fig strong { font: 500 18px var(--pc-head); color: var(--pc-blue); overflow-wrap: anywhere; }
.pc-imp__fig strong small { font-size: 12px; color: var(--pc-muted); font-weight: 500; }
.pc-imp__fig.is-late { border-color: #f1b3b3; background: #fff8f8; } .pc-imp__fig.is-late strong { color: var(--pc-danger); }
.pc-imp__none { display: flex; align-items: center; gap: 8px; color: var(--pc-ok); margin-top: 14px; font-weight: 500; }
.pc-imp__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.pc-imp__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--pc-border); color: var(--pc-text); }
.pc-imp__row:hover { text-decoration: none; background: var(--pc-surface-2); }
.pc-imp__txt { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.pc-card__title--pad { padding: 14px 0 6px; font-size: 16px; }

/* Tabelas fiscais / facturas / relatórios */
.pc-late { color: var(--pc-danger) !important; font-weight: 500; }
tr.is-late td:first-child { box-shadow: inset 3px 0 0 var(--pc-danger); }
.pc-reason { display: flex; gap: 5px; align-items: flex-start; font-size: 13px; color: var(--pc-warn); margin-top: 4px; }
.pc-dr__head th { background: var(--pc-surface-2); text-transform: none; font-size: 13px; letter-spacing: 0; color: var(--pc-text); font-weight: 500; }
.pc-dr__sub td { font-weight: 500; background: #fafbfc; }
.pc-dr__tot td { font-weight: 500; background: var(--pc-blue-soft); color: var(--pc-blue); border-top: 2px solid var(--pc-blue); }
.pc-dr td:first-child { padding-left: 14px; }
.pc-proof__form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--pc-border); }
.pc-proof__act { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.pc-proof .pc-alert { margin-top: 16px; }
.pc-form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.pc-field em { font-style: normal; color: var(--pc-muted); font-weight: 400; }
.pc-reqstate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-file__more { margin-top: 8px; border-top: 1px dashed var(--pc-border); padding-top: 6px; }
.pc-file__more > summary { cursor: pointer; color: var(--pc-blue); font-size: 13px; padding: 4px 0; }
.pc-file__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.pc-field--wide { grid-column: 1 / -1; }

@media (max-width: 1000px) {
    .pc-kpis--4, .pc-kpis--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pc-charts, .pc-lower--2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .pc-acct__name { display: none; }
    .pc-acct__sum { padding: 3px 6px 3px 3px; }
    .pc-acct__menu { position: fixed; left: 12px; right: 12px; top: 62px; width: auto; }
    .pc-kpis--3 { grid-template-columns: minmax(0, 1fr); }
    .pc-kpis--4, .pc-kpis--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pc-kpi { padding: 12px; } .pc-kpi__n { font-size: 21px; } .pc-kpi__n--sm { font-size: 16px; }
    .pc-imp__figs { grid-template-columns: 1fr; }
    .pc-file__grid { grid-template-columns: minmax(0, 1fr); }
    .pc-tab { padding: 10px 10px; font-size: 13px; }
    .pc-dr .pc-hide-sm { display: none; }
}
@media print { .pc-tabs, .pc-filters, .pc-chartdata, .pc-acct { display: none !important; } }
.pc-charts--1 { grid-template-columns: minmax(0, 1fr); }
.pc-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-empty__form { margin: 14px 0 0; }
@media (max-width: 700px) { .pc-kpis--3 { grid-template-columns: minmax(0, 1fr); } }
input[type=file].pc-input { padding: 7px 9px; cursor: pointer; }
input[type=file].pc-input::file-selector-button { margin-right: 12px; padding: 6px 12px; border: 1px solid var(--pc-border-strong); border-radius: var(--pc-radius-sm); background: var(--pc-surface-2); font: 500 13px var(--pc-font); cursor: pointer; }
.pc-fin__stamp > span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 1000px) { .pc-shell { background: none; } }

/* Gráficos operacionais do Painel */
.pc-sw--ok { background: #2e7d32; } .pc-sw--work { background: #0046fe; } .pc-sw--bad { background: #c62828; } .pc-sw--pend { background: #b8c0cc; }
.pc-ch-ok { fill: #2e7d32; } .pc-ch-work { fill: #0046fe; } .pc-ch-bad { fill: #c62828; } .pc-ch-pend { fill: #b8c0cc; }
.pc-ch-now { fill: rgba(244, 121, 32, .10); } .pc-ch-xnow { font-weight: 500; fill: #1f2328; }
.pc-seg { display: inline-flex; border: 1px solid var(--pc-border-strong); border-radius: 999px; overflow: hidden; margin: 2px 0 0; align-self: flex-start; }
.pc-seg a { padding: 3px 12px; font-size: 13px; color: var(--pc-muted); }
.pc-seg a:hover { text-decoration: none; background: var(--pc-surface-2); }
.pc-seg a.is-active { background: var(--pc-blue); color: #fff; }
.pc-pct { margin: 2px 0 0; font-size: 13px; color: var(--pc-muted); } .pc-pct strong { font: 500 22px var(--pc-head); color: var(--pc-blue); margin-right: 4px; }

/* ── Nota de liquidação: RUPE em destaque e botões do documento ── */
.pc-rupe { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 4px; padding: 3px 8px; border-radius: 6px; background: var(--pc-blue-50, #eef3ff); color: var(--pc-blue); font-variant-numeric: tabular-nums; }
.pc-rupe small { font: 500 10px var(--pc-head); letter-spacing: .06em; text-transform: uppercase; }
.pc-rupe b { font-size: 15px; letter-spacing: .02em; }
.pc-btnrow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pc-nodoc { display: inline-flex; gap: 6px; align-items: center; max-width: 240px; }

/* ── Relatório emitido (Reporting): folha de leitura ── */
.pc-back { margin: 0 0 8px; font-size: 14px; }
.pc-back a { display: inline-flex; align-items: center; gap: 4px; }
.pc-stamp { display: flex; gap: 10px; align-items: flex-start; background: var(--pc-ok-bg); color: #1b5e20; border: 1px solid #c8e6c9; border-radius: var(--pc-radius); padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.pc-stamp i { font-size: 20px; flex: none; margin-top: 1px; }
.pc-emit .pc-card__title--pad { padding: 14px 16px 0; margin: 0; }
.pc-sheet { background: var(--pc-surface); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); box-shadow: var(--pc-shadow); padding: 22px 24px; }
.pc-sheet__mast { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--pc-muted); border-bottom: 1px solid var(--pc-border); padding-bottom: 8px; margin-bottom: 14px; }
.pc-sheet__title { font-size: 22px; margin: 0 0 2px; }
.pc-sheet__pres { display: block; color: var(--pc-muted); font-size: 14px; margin-bottom: 6px; }
.pc-sheet__co { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 10px 0 16px; padding: 10px 12px; background: var(--pc-surface-2); border-radius: var(--pc-radius-sm); }
.pc-sheet__co > div:first-child strong { display: block; }
.pc-sheet__co > div:first-child span { font-size: 13px; color: var(--pc-muted); }
.pc-sheet__ctx { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--pc-muted); }
.pc-sheet__ctx strong { color: var(--pc-text); font-weight: 500; }
.pc-sheet__warn { display: flex; gap: 8px; background: var(--pc-warn-bg); color: var(--pc-warn); border-radius: var(--pc-radius-sm); padding: 8px 12px; margin-bottom: 12px; font-size: 13px; }
.pc-sheet__table td, .pc-sheet__table th { padding-top: 7px; padding-bottom: 7px; }
.pc-sheet__table .pc-c { text-align: center; width: 70px; color: var(--pc-muted); }
.pc-sheet__table tr.is-major td { background: var(--pc-blue-soft); color: var(--pc-blue); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.pc-sheet__table tr.is-section td { background: var(--pc-surface-2); font-weight: 500; }
.pc-sheet__table tr.is-sub td { font-weight: 500; border-top: 1px solid var(--pc-border-strong); }
.pc-sheet__sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 36px 0 12px; }
.pc-sheet__sign > div { display: flex; flex-direction: column; gap: 3px; }
.pc-sheet__sign small { color: var(--pc-muted); }
.pc-sheet__line { display: block; border-top: 1px solid var(--pc-text); margin-bottom: 6px; margin-top: 30px; }
.pc-sheet__foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--pc-border); margin-top: 18px; padding-top: 8px; font-size: 12px; color: var(--pc-muted); }
.pc-sheet__intro { background: var(--pc-surface-2); border-radius: var(--pc-radius-sm); padding: 10px 14px; margin-bottom: 14px; }
.pc-sheet__intro p { margin: 4px 0 8px; font-size: 14px; color: var(--pc-muted); }
.pc-sheet__stats { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--pc-muted); }
.pc-sheet__stats b { color: var(--pc-blue); font-size: 16px; margin-right: 3px; }
.pc-sheet__gh { font-size: 16px; margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--pc-orange); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pc-sheet__gh small { font: 400 12px var(--pc-font); color: var(--pc-muted); }
.pc-sheet__note { border: 1px solid var(--pc-border); border-radius: var(--pc-radius-sm); padding: 12px 14px; margin-bottom: 10px; break-inside: avoid-page; }
.pc-sheet__note.is-na { background: var(--pc-surface-2); }
.pc-sheet__note > header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-sheet__note h4 { margin: 0; font: 500 15px var(--pc-head); flex: 1 1 200px; }
.pc-sheet__nn { background: var(--pc-blue); color: #fff; border-radius: 6px; padding: 1px 8px; font: 500 13px var(--pc-head); }
.pc-sheet__st { font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.pc-sheet__st.is-ap { background: var(--pc-info-bg); color: var(--pc-info); }
.pc-sheet__st.is-na { background: var(--pc-neutral-bg); color: var(--pc-neutral); }
.pc-sheet__st.is-pe { background: var(--pc-warn-bg); color: var(--pc-warn); }
.pc-sheet__req { margin: 8px 0 4px; font-size: 13px; color: var(--pc-muted); }
.pc-sheet__req strong { font-weight: 400; }
.pc-sheet__disc { font-size: 13px; color: var(--pc-muted); margin-bottom: 6px; }
.pc-sheet__disc summary { cursor: pointer; color: var(--pc-blue); }
.pc-sheet__disc ul { margin: 4px 0 0 18px; padding: 0; }
.pc-sheet__sched { margin: 10px 0; }
.pc-sheet__sched > strong { display: block; font-size: 14px; }
.pc-sheet__sched > small { display: block; color: var(--pc-muted); font-size: 12px; margin-bottom: 4px; }
.pc-sheet__ph { display: flex; gap: 8px; align-items: center; color: var(--pc-muted); font-size: 13px; margin: 8px 0 0; }
.pc-sheet__txt { margin-top: 8px; font-size: 14px; }
.pc-sheet__txt > strong { display: block; font-size: 13px; color: var(--pc-muted); }
.pc-sheet__txt p { margin: 6px 0; }
.pc-sheet__fields { margin: 8px 0 0; display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 4px 12px; font-size: 14px; }
.pc-sheet__fields dt { color: var(--pc-muted); } .pc-sheet__fields dd { margin: 0; white-space: pre-wrap; }
.pc-sheet__approx { display: flex; gap: 8px; font-size: 13px; color: var(--pc-muted); background: var(--pc-surface-2); padding: 8px 12px; border-radius: var(--pc-radius-sm); }
.pc-sheet__cover { display: flex; flex-direction: column; margin: 14px 0 0; font-size: 18px; } .pc-sheet__cover span { font-size: 14px; color: var(--pc-muted); }
@media (max-width: 720px) { .pc-sheet { padding: 14px 12px; } .pc-sheet__sign { grid-template-columns: 1fr; gap: 10px; } .pc-sheet__fields { grid-template-columns: 1fr; } }
@media print { .pc-stamp, .pc-back { display: none !important; } .pc-sheet { border: 0; box-shadow: none; padding: 0; } .pc-sheet__disc { display: none; } }
.pc-emit .pc-card__title--pad { padding: 0 0 10px; margin: 0; }
.pc-emit { padding-top: 16px; }
.pc-rupe { white-space: nowrap; max-width: 100%; }

/* ── Rosca «Documentos enviados» ── */
.pc-donutbox { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; padding: 8px 0; }
.pc-donut { width: 190px; height: 190px; flex: none; }
.pc-donut .pc-ch-sep { stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; }
.pc-donut__n { font: 500 24px var(--pc-head); fill: var(--pc-text); }
.pc-donut__l { font: 400 12px var(--pc-font); fill: var(--pc-muted); }
.pc-donutleg { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 220px; flex: 1 1 220px; max-width: 320px; }
.pc-donutleg li { display: grid; grid-template-columns: 14px 1fr auto 44px; gap: 8px; align-items: center; font-size: 14px; }
.pc-donutleg b { font-variant-numeric: tabular-nums; } .pc-donutleg em { font-style: normal; color: var(--pc-muted); text-align: right; font-variant-numeric: tabular-nums; }
.pc-segs { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-ch-d1 { fill: #0046fe; } .pc-ch-d2 { fill: #f47920; } .pc-ch-d3 { fill: #0f766e; } .pc-ch-d4 { fill: #7c3aed; } .pc-ch-d5 { fill: #c2185b; } .pc-ch-d6 { fill: #8a93a0; }
.pc-sw--d1 { background: #0046fe; } .pc-sw--d2 { background: #f47920; } .pc-sw--d3 { background: #0f766e; } .pc-sw--d4 { background: #7c3aed; } .pc-sw--d5 { background: #c2185b; } .pc-sw--d6 { background: #8a93a0; }
.pc-note--warn { color: var(--pc-warn); background: var(--pc-warn-bg); border-radius: var(--pc-radius-sm); padding: 8px 12px; margin: 10px 0 0; }
.pc-donutleg span { min-width: 0; overflow-wrap: anywhere; }

/* ── Alinhamento em altura dos cartões do Painel ── */
.pc-kpis { align-items: stretch; }
.pc-kpis > .pc-kpi { height: 100%; }
.pc-kpi__s { min-height: 1.5em; }
.pc-charts { align-items: stretch; }
.pc-charts > .pc-card, .pc-lower > .pc-card { height: 100%; display: flex; flex-direction: column; min-width: 0; }
.pc-lower { align-items: stretch; }
.pc-chartcard__head { min-height: 52px; }
.pc-chartcard .pc-chartdata { margin-top: auto; }
.pc-chartcard > .pc-donutbox, .pc-chartcard > .pc-chartbox { flex: 0 0 auto; }
.pc-todo__chips { margin-top: auto; }
.pc-todo__list { margin-bottom: 12px; }
.pc-reading { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 4px; padding: 8px 12px; border-radius: var(--pc-radius-sm); font-size: 14px; }
.pc-reading.is-pos { background: var(--pc-ok-bg); color: #1b5e20; } .pc-reading.is-neg { background: var(--pc-danger-bg); color: var(--pc-danger); }
.pc-cover { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 4px 0 6px; font-size: 13px; color: var(--pc-muted); }
.pc-cover b { color: var(--pc-text); font-size: 15px; } .pc-cover small { color: var(--pc-muted); }
.pc-ch-conn { stroke: #9aa3af; stroke-width: 1; stroke-dasharray: 3 3; }
.pc-waterfall .pc-ch-val { font-size: 12px; }
@media (max-width: 1000px) { .pc-charts, .pc-lower--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pc-charts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .pc-lower--2 { grid-template-columns: minmax(0, 1fr); } .pc-chartcard__head { min-height: 0; } }
.pc-chartcard > .pc-donutbox { flex: 1 1 auto; }

/* ═══════════ PC004 — gramática visual da plataforma ═══════════
   Mesmos tokens da aplicação (azul #0046fe, linhas #dde3ee, texto #172033, tipo de letra do sistema), menu lateral fixo (só o centro se move),
   cabeçalhos de tabela sem fundo e com títulos azuis, linhas compactas, cartões e campos iguais aos dos módulos. Só apresentação: sem alterar estrutura nem comportamento. */
:root {
    --pc-blue: #0046fe; --pc-blue-hover: #0037c9; --pc-blue-soft: #e6edff;
    --pc-orange: #c2410c; --pc-orange-soft: #fff1e8;
    --pc-bg: #eef1f6; --pc-surface-2: #f6f8fc; --pc-border: #dde3ee; --pc-border-strong: #c9d2e3;
    --pc-text: #172033; --pc-muted: #556077; --pc-info: #0046fe; --pc-info-bg: #e6edff;
    --pc-radius: 10px; --pc-radius-sm: 6px;
    --pc-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --pc-head: var(--pc-font);
    --pc-top-h: 56px; --pc-nav-w: 232px; --pc-foot-h: 24px;
    --pc-shadow: 0 1px 2px rgba(23, 32, 51, .05);
}
body { font-synthesis: none; font-size: 14px; line-height: 1.45; font-synthesis: none; }
h1, h2, h3 { font-weight: 500; }
button, input, select, textarea { font-family: inherit; }

/* Cabeçalho: igual ao da aplicação (azul liso; o laranja fica para o estado activo e as contagens) */
.pc-top { min-height: var(--pc-top-h); height: var(--pc-top-h); border-bottom: 0; padding: 0 16px; }
.pc-top__brand strong { font-size: 15px; font-weight: 500; }
.pc-top__tag { font-size: 11px; font-weight: 500; border-radius: 4px; }
.pc-top__logo { font: 500 18px var(--pc-font); font-style: normal; }

/* Estrutura fixa: o cabeçalho e o menu lateral não se movem; só o centro rola */
@media (min-width: 1001px) {
    html, body { height: 100%; overflow: hidden; }
    .pc-app { height: 100vh; min-height: 0; overflow: hidden; }
    .pc-shell { flex: 1 1 auto; min-height: 0; height: auto; grid-template-columns: var(--pc-nav-w) minmax(0, 1fr); align-items: stretch;
                background: linear-gradient(to right, var(--pc-surface) calc(var(--pc-nav-w) - 1px), var(--pc-border) calc(var(--pc-nav-w) - 1px), var(--pc-border) var(--pc-nav-w), transparent var(--pc-nav-w)); }
    .pc-nav { position: static; top: auto; height: 100%; align-self: stretch; overflow-y: auto; overscroll-behavior: contain; }
    .pc-shell > .pc-main { max-width: none; width: auto; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px 28px; scrollbar-gutter: stable; }
    .pc-main--solo { overflow-y: auto; }
    .pc-foot { flex: none; height: var(--pc-foot-h); padding: 0 16px; line-height: var(--pc-foot-h); background: var(--pc-surface); border-top: 1px solid var(--pc-border); font-size: 12px; text-align: left; }
}
.pc-shell > .pc-main > * { max-width: 1680px; margin-left: auto; margin-right: auto; }

/* Menu lateral */
.pc-nav__group { padding: 14px 18px 5px; font-size: 11px; font-weight: 500; letter-spacing: .8px; color: var(--pc-muted); }
.pc-nav__item { padding: 8px 18px; font-size: 13px; font-weight: 500; gap: 10px; }
.pc-nav__item i { font-size: 17px; }
.pc-nav__item:hover { background: var(--pc-surface-2); }
.pc-nav__item.is-active { background: var(--pc-blue-soft); border-left-color: var(--pc-orange); color: var(--pc-blue); font-weight: 500; }
.pc-nav__count { background: var(--pc-orange); }

/* Cabeçalho de página e cartões */
.pc-page { gap: 12px; }
.pc-page__title { font-size: 20px; font-weight: 500; color: var(--pc-text); }
.pc-sub { font-size: 13px; }
.pc-card { padding: 14px 16px; box-shadow: none; border-color: var(--pc-border); }
.pc-card__title, .pc-chartcard__head .pc-card__title { font-size: 14px; font-weight: 500; color: var(--pc-blue); margin-bottom: 8px; }
.pc-card__bar { margin-bottom: 8px; }

/* Indicadores */
.pc-kpi { padding: 10px 14px; border-left: 4px solid var(--pc-blue); box-shadow: none; gap: 1px; }
.pc-kpi:hover { border-color: var(--pc-border); border-left-color: var(--pc-blue); }
a.pc-kpi:hover { background: var(--pc-surface-2); }
.pc-kpi__n { font: 500 22px/1.2 var(--pc-font); }
.pc-kpi__n--txt { font-size: 15px; padding: 3px 0; }
.pc-kpi__l { font-size: 12px; font-weight: 500; color: var(--pc-muted); order: -1; }
.pc-kpi--alert { border-left-color: var(--pc-danger); }

/* Botões e campos */
.pc-btn { min-height: 34px; padding: 6px 14px; font: 500 13px var(--pc-font); border-radius: var(--pc-radius-sm); border-color: var(--pc-border-strong); color: var(--pc-text); }
.pc-btn--sm { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.pc-btn--primary { border-color: var(--pc-blue); color: #fff; }
.pc-input, .pc-select, .pc-textarea { min-height: 34px; padding: 6px 10px; font: 13px var(--pc-font); border-color: var(--pc-border-strong); }
.pc-select { padding-right: 26px; }
.pc-field__label { font-size: 12px; font-weight: 500; }
.pc-filters { padding: 10px 14px; align-items: flex-end; }

/* Tabelas: cabeçalhos sem fundo, títulos azuis, linhas compactas (30 px), cabeçalho fixo dentro do contentor */
.pc-table { font-size: 13px; }
.pc-table th { background: transparent; color: var(--pc-blue); font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; padding: 6px 10px; border-bottom: 1.5px solid var(--pc-blue); white-space: nowrap; }
.pc-table td { padding: 5px 10px; line-height: 1.3; border-bottom: 1px solid var(--pc-border); vertical-align: middle; }
.pc-table tbody tr:hover td { background: var(--pc-surface-2); }
.pc-table tfoot td, .pc-table tfoot th { font-weight: 500; color: var(--pc-blue); border-top: 1.5px solid var(--pc-blue); border-bottom: 0; background: transparent; }
.pc-table-wrap { max-height: calc(100vh - 330px); min-height: 160px; overflow: auto; margin: 0; }
.pc-table-wrap .pc-table thead th { position: sticky; top: 0; z-index: 2; background: var(--pc-surface); }
.pc-bal .pc-row-top td { font-weight: 500; }
.pc-print__head strong { color: var(--pc-blue); font-size: 15px; }
@media (max-width: 1000px) { .pc-table-wrap { max-height: none; } .pc-shell > .pc-main > * { max-width: none; } }
@media print { .pc-table-wrap { max-height: none !important; overflow: visible !important; } .pc-table th { background: transparent !important; } }

/* PC004 — painel que respira: menos blocos, mais espaço entre eles */
.pc-page { gap: 18px; }
.pc-fin { display: flex; flex-direction: column; gap: 16px; }
.pc-fin__bar { margin-bottom: 0; }
.pc-fin__stamp { font-size: 12px; color: var(--pc-muted); }
.pc-kpis { gap: 16px; }
.pc-kpi { padding: 14px 18px; gap: 3px; }
.pc-kpi__n { font-size: 24px; }
.pc-kpi__s { font-size: 12px; }
.pc-charts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pc-card { padding: 18px 20px; }
.pc-poslq { display: grid; grid-template-columns: minmax(0, 3fr) minmax(220px, 2fr); gap: 28px; align-items: center; }
.pc-poslq__side { display: flex; flex-direction: column; gap: 14px; }
.pc-poslq .pc-reading { margin: 0; }
.pc-lower { gap: 16px; }
.pc-todo__list { gap: 4px; }
.pc-todo__item { padding: 10px 12px; }
.pc-imp__figs { gap: 12px; margin-bottom: 14px; }
.pc-imp__row { padding: 9px 0; }
@media (max-width: 900px) { .pc-poslq { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* PC004 — tabelas de documento (balancete/extrato): ecrã = PDF */
.pc-doc .pc-th-grp th { border-bottom: 1px solid var(--pc-blue); padding-bottom: 3px; }
.pc-doc td { white-space: nowrap; }
.pc-doc td:nth-child(2) { white-space: normal; }
.pc-doc tbody td:first-child { font-variant-numeric: tabular-nums; }
.pc-doc .pc-row-sub td { background: transparent; font-weight: 500; color: var(--pc-muted); font-style: italic; }
.pc-doc tfoot td:first-child { text-align: left; }
.pc-ext__title { font-size: 14px; font-weight: 500; color: var(--pc-blue); }
.pc-filters .pc-field--apres { flex: 0 1 250px; }
.pc-poslq .pc-chartbox svg { max-height: 250px; width: 100%; }

/* ── PC006: visualizador de PDF nativo embebido; menu a negrito; Impostos junto ao gráfico, Cobertura em baixo ── */
.pc-imp--side { border-top: 1px solid var(--pc-border); padding-top: 12px; }
.pc-imp--side .pc-card__bar { margin-bottom: 8px; }
.pc-imp--side .pc-imp__figs { margin-bottom: 8px; }
.pc-imp--side .pc-imp__fig strong { font-size: 16px; }
.pc-cobr__n { font: 500 34px var(--pc-head); color: var(--pc-blue); margin: 6px 0 2px; } .pc-cobr__n.is-neg { color: var(--pc-danger); }
.pc-cobr .pc-imp__figs { margin-top: 12px; }

/* ── PC007: nome do gabinete no cabeçalho ── */
.pc-top__gab { display: inline-flex; align-items: center; gap: 10px; margin-left: 6px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.28); color: #fff; min-width: 0; max-width: 34vw; }
.pc-top__gab > i { font-size: 20px; color: #e8eefc; flex: none; }
.pc-top__gabtxt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.pc-top__gabtxt small { font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: #dbe4fb; font-weight: 500; }
.pc-top__gabtxt strong { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .pc-top__gabtxt small { display: none; } }
.pc-top__gabtxt strong { max-width: 260px; }
.pc-top__gab { min-width: 0; }
@media (max-width: 760px) { .pc-top__gab { display: none; } }

/* ── PC008: perfil organizado ── */
.pc-prof { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pc-prof__ava { width: 56px; height: 56px; border-radius: 50%; background: var(--pc-blue); color: #fff; display: grid; place-items: center; font: 500 20px var(--pc-head); flex: none; }
.pc-prof__id { flex: 1 1 260px; min-width: 0; }
.pc-prof__id h2 { margin: 0 0 4px; font: 500 20px var(--pc-head); }
.pc-prof__id p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; color: var(--pc-muted); font-size: 13px; }
.pc-prof__id p i { font-size: 16px; } .pc-prof__id p i + span + i { margin-left: 10px; }
.pc-prof__gab { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; border-left: 1px solid var(--pc-border); min-width: 0; }
.pc-prof__gab strong { display: flex; align-items: center; gap: 6px; font-size: 14px; } .pc-prof__gab strong i { color: var(--pc-blue); font-size: 18px; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-chip { padding: 2px 9px; border-radius: 999px; background: var(--pc-blue-soft); color: var(--pc-blue); font-size: 12px; font-weight: 500; white-space: nowrap; }
.pc-sec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pc-sec .pc-form { max-width: 420px; }
@media (max-width: 900px) { .pc-sec { grid-template-columns: minmax(0, 1fr); } .pc-prof__gab { padding-left: 0; border-left: 0; flex: 1 1 100%; } }

/* ── PC009: painel em 4 fatias (2 × 2): Posição líquida | Cobertura · Para fazer | Impostos ── */
.pc-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pc-charts.pc-charts--1 { grid-template-columns: minmax(0, 1fr); }
.pc-chartbox svg { max-height: 250px; width: 100%; }
.pc-cobr .pc-reading { margin: 0 0 14px; }
.pc-cobr__n { margin-top: 2px; }
.pc-cobr .pc-imp__figs { margin-top: auto; padding-top: 14px; margin-bottom: 0; }
@media (max-width: 900px) { .pc-charts { grid-template-columns: minmax(0, 1fr); } }

/* ── PC011: mensagens (conversa organizada) ── */
.pc-conv { padding: 0; gap: 0; overflow: hidden; }
.pc-conv__head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--pc-border); flex-wrap: wrap; }
.pc-conv__ico { width: 40px; height: 40px; border-radius: 10px; background: var(--pc-blue-soft); color: var(--pc-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.pc-conv__id { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.pc-conv__title { font-size: 16px; overflow-wrap: anywhere; }
.pc-conv__sub { font-size: 13px; color: var(--pc-muted); }
.pc-conv__tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pc-conv__desc { display: flex; gap: 8px; margin: 0; padding: 10px 20px; background: var(--pc-surface-2); border-bottom: 1px solid var(--pc-border); font-size: 13px; color: var(--pc-muted); }
.pc-conv__desc i { margin-top: 2px; }
.pc-thread { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; min-height: 240px; max-height: 58vh; overflow-y: auto; background: var(--pc-surface); }
.pc-thread:focus-visible { outline-offset: -2px; }
.pc-day { display: flex; align-items: center; gap: 12px; margin: 14px 0 8px; color: var(--pc-muted); font-size: 12px; text-transform: capitalize; }
.pc-day:first-child { margin-top: 0; }
.pc-day::before, .pc-day::after { content: ""; flex: 1; height: 1px; background: var(--pc-border); }
.pc-day span { padding: 2px 12px; border: 1px solid var(--pc-border); border-radius: 999px; background: var(--pc-surface-2); }
.pc-msg { display: flex; gap: 10px; align-items: flex-end; margin-top: 10px; max-width: 100%; }
.pc-msg--cont { margin-top: 0; }
.pc-msg--me { flex-direction: row-reverse; justify-content: flex-start; }
.pc-msg__ava { width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; background: var(--pc-blue-soft); color: var(--pc-blue); }
.pc-msg__ava--gab { background: #e8f3ee; color: #1d6b4f; }
.pc-msg__ava--ghost { background: transparent; }
.pc-msg__col { display: flex; flex-direction: column; gap: 3px; max-width: min(620px, 82%); min-width: 0; }
.pc-msg--me .pc-msg__col { align-items: flex-end; }
.pc-msg__meta { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.pc-msg--me .pc-msg__meta { flex-direction: row-reverse; }
.pc-msg__meta strong { font-weight: 500; }
.pc-role { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--pc-blue-soft); color: var(--pc-blue); }
.pc-role--gab { background: #e8f3ee; color: #1d6b4f; }
.pc-msg .pc-msg__bubble { max-width: none; padding: 9px 13px 6px; border-radius: 14px; gap: 2px; }
.pc-msg--them .pc-msg__bubble { background: var(--pc-surface-2); border-bottom-left-radius: 4px; }
.pc-msg--me .pc-msg__bubble { background: var(--pc-blue-soft); border-color: #cfd9f6; border-bottom-right-radius: 4px; }
.pc-msg--cont.pc-msg--them .pc-msg__bubble { border-top-left-radius: 4px; }
.pc-msg--cont.pc-msg--me .pc-msg__bubble { border-top-right-radius: 4px; }
.pc-msg__txt { margin: 0; line-height: 1.5; }
.pc-msg__time { display: inline-flex; gap: 4px; align-items: center; }
.pc-msg__time i { color: var(--pc-blue); font-size: 14px; }
.pc-compose { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 20px 16px; border-top: 1px solid var(--pc-border); background: var(--pc-surface-2); }
.pc-compose .pc-textarea { background: var(--pc-surface); resize: vertical; min-height: 76px; max-height: 240px; }
.pc-compose__bar { display: flex; align-items: center; gap: 14px; }
.pc-compose__hint { display: inline-flex; gap: 6px; align-items: center; color: var(--pc-muted); font-size: 12px; margin-right: auto; }
.pc-compose__count { color: var(--pc-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pc-compose__count.is-near { color: var(--pc-warn); }
.pc-conv__lock { display: flex; gap: 8px; align-items: center; margin: 0; padding: 14px 20px; border-top: 1px solid var(--pc-border); background: var(--pc-surface-2); font-size: 13px; color: var(--pc-muted); }
@media (max-width: 700px) {
  .pc-conv__head, .pc-thread, .pc-compose, .pc-conv__lock, .pc-conv__desc { padding-left: 14px; padding-right: 14px; }
  .pc-msg__col { max-width: 86%; }
  .pc-compose__hint { display: none; }
  .pc-compose__bar { justify-content: space-between; }
}
@media print { .pc-compose { display: none !important; } .pc-thread { max-height: none; overflow: visible; } }

/* ── PC012: laranja da marca (#f47920) com presença: decorativo em laranja vivo, texto em laranja-escuro (contraste) ── */
:root { --pc-orange: #f47920; --pc-orange-ink: #c2410c; --pc-orange-soft: #fef0e6; }
.pc-top { height: calc(var(--pc-top-h) + 3px); min-height: calc(var(--pc-top-h) + 3px); border-bottom: 3px solid var(--pc-orange); }
.pc-top__tag { background: var(--pc-orange); border-color: var(--pc-orange); color: #fff; }
.pc-page__title { position: relative; padding-bottom: 8px; }
.pc-page__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 2px; background: var(--pc-orange); }
.pc-card__title::before { content: ""; display: inline-block; width: 4px; height: 13px; margin-right: 8px; border-radius: 2px; background: var(--pc-orange); vertical-align: -1px; }
.pc-nav__item.is-active { border-left-width: 4px; }
.pc-kpi__n--alt, .pc-kpi__duo .pc-kpi__n--alt { color: var(--pc-orange-ink); }
.pc-kpi { border-top: 3px solid var(--pc-blue); }
.pc-kpi:nth-child(even) { border-top-color: var(--pc-orange); }
.pc-kpi--alert { border-top-color: var(--pc-danger); }
.pc-table th { border-bottom: 2px solid var(--pc-orange); }
.pc-table tfoot td, .pc-table tfoot th { border-top: 2px solid var(--pc-orange); }
.pc-ch-line { stroke: var(--pc-orange); }
.pc-ch-dot { stroke: var(--pc-orange); } .pc-ch-dot--last { fill: var(--pc-orange); }
.pc-seg a.is-active { background: var(--pc-orange); }
.pc-acct__ava { background: var(--pc-orange); color: #fff; }
.pc-prof__ava { background: var(--pc-orange); }
.pc-msg__ava--gab { background: var(--pc-orange-soft); color: var(--pc-orange-ink); }
.pc-role--gab { background: var(--pc-orange-soft); color: var(--pc-orange-ink); }
.pc-msg--them .pc-msg__bubble { border-left: 3px solid var(--pc-orange); }
.pc-conv__ico { background: var(--pc-orange-soft); color: var(--pc-orange-ink); }
.pc-day span { border-color: #f9c9a3; background: var(--pc-orange-soft); color: var(--pc-orange-ink); }
.pc-dot { background: var(--pc-orange); }
@media print { .pc-top__tag, .pc-page__title::after, .pc-card__title::before { display: none !important; } }

/* ── PC014: carregamento e transições, sem piscar ──
   1) Transição entre documentos: a página antiga fica no ecrã até a nova estar pronta; cabeçalho, menu e rodapé não se movem (só o centro faz fusão).
   2) Indicador de carregamento (barra no topo + centro esbatido + botão com roda) só aparece se a resposta demorar (ver js/pc-ux.js).
   3) Botões mantêm a largura; o visualizador de PDF tem esqueleto até estar pronto. */
@view-transition { navigation: auto; }
.pc-top { view-transition-name: pc-top; }
.pc-nav { view-transition-name: pc-nav; }
.pc-foot { view-transition-name: pc-foot; }
::view-transition-group(root), ::view-transition-group(pc-top), ::view-transition-group(pc-nav), ::view-transition-group(pc-foot) { animation-duration: .12s; animation-timing-function: ease-out; }
@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
    ::view-transition-old(*) { display: none; }
}

.pc-btn, .pc-iconbtn { position: relative; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.pc-btn--primary { --pc-spin: #fff; }
.pc-btn.is-loading, .pc-iconbtn.is-loading { color: transparent !important; pointer-events: none; }
.pc-btn.is-loading > *, .pc-iconbtn.is-loading > * { opacity: 0; }
.pc-btn.is-loading::after, .pc-iconbtn.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid var(--pc-spin, var(--pc-blue)); border-right-color: transparent; animation: pc-spin .7s linear infinite; }
@keyframes pc-spin { to { transform: rotate(360deg); } }

/* Visualizador de PDF: esqueleto até ao carregamento (e fallback sem JavaScript: aparece sozinho ao fim de 6 s) */
@media (prefers-reduced-motion: reduce) { .pc-btn.is-loading::after, .pc-iconbtn.is-loading::after { animation-duration: 1.6s; } }

/* Campos desativados (filtros sem dados): visíveis mas claramente inactivos */
.pc-select:disabled, .pc-input:disabled { background: var(--pc-surface-2); color: var(--pc-muted); border-color: var(--pc-border); cursor: not-allowed; opacity: .85; }


/* ── PC015: esqueletos (a estrutura da página já construída; só as informações em falta) ── */
.pc-sk { display: block; max-width: 100%; border-radius: 6px; background: linear-gradient(100deg, #e5e8ed 30%, #f3f5f8 50%, #e5e8ed 70%) 0 0 / 300% 100%; animation: pc-sk 1.5s ease-in-out infinite; }
.pc-sk--sub { margin-top: 6px; }
.pc-sk--field { border-radius: var(--pc-radius-sm); }
.pc-sk--pill { border-radius: 999px; }
.pc-sk--round { border-radius: 50%; flex: none; }
@keyframes pc-sk { from { background-position: 100% 0; } to { background-position: 0 0; } }
.pc-tab--sk { display: flex; align-items: center; padding: 12px 14px; pointer-events: none; }
.pc-seg--sk { display: inline-flex; gap: 8px; }
.pc-kpi.pc-kpi--static .pc-sk + .pc-sk { margin-top: 8px; }
.pc-sk-rows { display: flex; flex-direction: column; gap: 14px; }
.pc-sk-row { display: flex; align-items: center; gap: 12px; }
.pc-sk-row__txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pc-sk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.pc-sk-card { display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.pc-main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .pc-sk { animation: none; } }

/* Aviso de erro de rede / envio (fica 6 s; nunca bloqueia) */
.pc-toast { position: fixed; z-index: 3000; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: min(520px, calc(100vw - 32px)); padding: 11px 16px; border-radius: var(--pc-radius); background: #1f2328; color: #fff; font-size: 13px; box-shadow: 0 8px 24px rgba(16, 24, 40, .28); animation: pc-toast-in .2s ease-out; }
@keyframes pc-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.pc-filters--sk { min-height: 94px; }
.pc-kpi--sk { min-height: 102px; }
.pc-hint--sk { display: flex; align-items: center; min-height: 18px; }

/* ── PC016: comprovativo de pagamento do INSS/IRT por mês ── */
.pc-payproof { margin: 0 0 16px; }
.pc-payproof .pc-dl { margin-bottom: 4px; }
.pc-sk-proof { display: flex; flex-direction: column; gap: 12px; height: 96px; overflow: hidden; margin: 0 0 16px; }
.pc-payproof__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-payproof__empty { margin: 0; color: var(--pc-muted); font-size: 14px; }
.pc-dialog { border: 0; padding: 0; border-radius: var(--pc-radius); width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--pc-surface); color: var(--pc-text); box-shadow: 0 24px 64px rgba(10, 20, 40, .28); }
.pc-dialog::backdrop { background: rgba(15, 23, 42, .5); }
.pc-dialog[open] { animation: pc-dlg .16s ease-out; }
.pc-dialog[open]::backdrop { animation: pc-dlg-bg .16s ease-out; }
@keyframes pc-dlg { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pc-dlg-bg { from { opacity: 0; } to { opacity: 1; } }
.pc-dialog__box { display: flex; flex-direction: column; gap: 16px; padding: 22px; }
.pc-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pc-dialog__head h2 { margin: 0; font-family: var(--pc-head); font-weight: 500; font-size: 18px; }
.pc-dialog__sub { margin: 4px 0 0; color: var(--pc-muted); font-size: 13px; }
.pc-dialog__act { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.pc-dialog .pc-hint { margin: 0; }
.pc-drop--dialog { position: relative; padding: 26px 16px; }
.pc-drop--dialog.is-set { border-style: solid; border-color: var(--pc-blue); background: var(--pc-blue-soft); }
.pc-drop--dialog strong { word-break: break-all; }
@media (prefers-reduced-motion: reduce) { .pc-dialog[open], .pc-dialog[open]::backdrop { animation: none; } }
@media print { .pc-dialog { display: none; } }
.pc-dialog--wide { width: min(680px, calc(100vw - 32px)); overflow: auto; }
.pc-dialog .pc-upload { gap: 14px; }
.pc-dialog .pc-drop { padding: 24px 16px; }
.pc-filters--tall { min-height: 163px; }
.pc-sk-prof { display: flex; align-items: center; gap: 14px; min-height: 94px; }
.pc-tab--sk { padding: 14px 14px 13px; }
.pc-sk-stamp { display: flex; align-items: center; height: 43px; padding: 0 14px; margin-bottom: 12px; border-radius: var(--pc-radius-sm); background: var(--pc-surface); border: 1px solid var(--pc-border); }

/* ── PC024: o PDF no ecrã, página a página, desenhado em SVG dentro da página (sem visualizador do navegador) ── */
.pc-pdfsheet { padding: 0; overflow: hidden; background: var(--pc-surface-2); }
.pc-pdfsheet__stage { padding: 16px; }
.pc-pdfsheet__pg { width: min(840px, 100%); margin: 0 auto 16px; background: #fff; border: 1px solid #d7dde7; box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 6px 20px rgba(15, 23, 42, .08); line-height: 0; }
.pc-pdfsheet__pg.is-land { width: min(1160px, 100%); }
.pc-pdfsheet__pg:last-of-type { margin-bottom: 0; }
.pc-pdfsheet__pg svg { display: block; width: 100%; height: auto; }
.pc-pdfsheet__pg text { white-space: pre; }
.pc-pdfsheet__cut { margin: 16px auto 0; max-width: 840px; padding: 8px 10px; border: 1px solid #e6d9a8; border-radius: 4px; background: #fffaf0; color: #70581c; font-size: 13px; line-height: 1.5; }
@media (max-width: 640px) { .pc-pdfsheet__stage { padding: 6px; } .pc-pdfsheet__pg { margin-bottom: 8px; } }

/* PC025 · Imprimir o documento na própria página: cópia das páginas A4 (mesmo conteúdo do PDF), sem margens do navegador */
#pc-print { display: none; }
#pc-print .pc-pp { page: pp; }
#pc-print .pc-pl { page: pl; }
@page pp { size: A4 portrait; margin: 0; }
@page pl { size: A4 landscape; margin: 0; }
@media print {
    html.pc-printing, html.pc-printing body { background: #fff !important; margin: 0; padding: 0; height: auto !important; min-height: 0 !important; overflow: visible !important; }
    html.pc-printing body > *:not(#pc-print) { display: none !important; }
    html.pc-printing #pc-print { display: block; }
    #pc-print .pc-pdfsheet__pg { margin: 0; border: 0; box-shadow: none; background: #fff; overflow: visible; break-after: page; page-break-after: always; break-inside: avoid; }
    #pc-print .pc-pdfsheet__pg:last-child { break-after: auto; page-break-after: auto; }
    #pc-print .pc-pp { width: 210mm; height: 296.5mm; }
    #pc-print .pc-pl { width: 297mm; height: 209.5mm; }
    #pc-print .pc-pdfsheet__pg svg { display: block; width: 100%; height: 100%; }
}

/* PC026 · esqueleto da folha = a própria folha (mesma moldura e proporção A4 do PDF): a página não «salta» quando o relatório chega */
.pc-pdfsheet__pg--sk { aspect-ratio: 595 / 842; display: flex; flex-direction: column; gap: 9px; padding: 7% 8%; overflow: hidden; line-height: normal; }
.pc-pdfsheet__pg--sk.is-land { aspect-ratio: 842 / 595; padding: 5% 6%; }
.pc-pdfsheet__pg--sk .pc-sk { flex: none; }
.pc-pdfsheet__pg--sk .pc-sk--line { height: 9px; opacity: .8; }
@media print { .pc-pdfsheet--sk { display: none !important; } }

/* ── Notificações (sistema próprio do Portal) ──
   Toast = confirmação (canto superior direito, 5 s) · Alerta em linha (.pc-alert) = erro/aviso ao pé do formulário ·
   Sino = painel rápido das novidades por ler · /notificacoes = lista completa. Gravidades: ok · info · warn · danger. */
.pc-toasts { position: fixed; z-index: 3000; top: 68px; right: 16px; width: min(380px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.pc-ntoast { --n-c: #1675d1; --n-bg: #edf6ff; pointer-events: auto; display: grid; grid-template-columns: 22px minmax(0, 1fr) 26px; align-items: start; column-gap: 10px; padding: 11px 8px 11px 12px; background: var(--n-bg); border: 1px solid color-mix(in srgb, var(--n-c) 30%, #d8dde5); border-left: 4px solid var(--n-c); border-radius: 6px; box-shadow: 0 6px 20px rgba(15, 23, 42, .2); color: #1f2933; font-size: 14px; line-height: 20px; animation: pc-ntoast-in .18s ease-out; }
.pc-ntoast--ok { --n-c: #278443; --n-bg: #eef8f1; }
.pc-ntoast--warn { --n-c: #a36c00; --n-bg: #fff8e8; }
.pc-ntoast--danger { --n-c: #b43838; --n-bg: #fff1f1; }
.pc-ntoast.is-leaving { opacity: 0; transform: translateX(12px); transition: opacity .18s, transform .18s; }
.pc-ntoast__icon { font-size: 20px; line-height: 22px; color: var(--n-c); }
.pc-ntoast__body { min-width: 0; overflow-wrap: anywhere; }
.pc-ntoast__x { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #55606e; cursor: pointer; font-size: 15px; }
.pc-ntoast__x:hover { background: rgba(15, 23, 42, .08); color: #1f2933; }
@keyframes pc-ntoast-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pc-ntoast { animation: none; } .pc-ntoast.is-leaving { transition: none; } }
@media (max-width: 720px) { .pc-toasts { top: 60px; left: 10px; right: 10px; width: auto; } }

.pc-bell { position: relative; flex: none; }
.pc-bell > summary { list-style: none; cursor: pointer; }
.pc-bell > summary::-webkit-details-marker { display: none; }
.pc-bell__sum { position: relative; width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 8px; color: #fff; font-size: 21px; }
.pc-bell__sum:hover, .pc-bell[open] .pc-bell__sum { background: rgba(255, 255, 255, .16); }
.pc-bell__sum:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.pc-bell__n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--pc-blue); border-radius: 9px; background: var(--pc-orange); color: #fff; font-size: 11px; font-weight: 500; line-height: 1; }
.pc-bell__panel { position: absolute; z-index: 60; top: calc(100% + 10px); right: -8px; width: 380px; max-width: calc(100vw - 20px); max-height: min(520px, calc(100vh - 90px)); display: flex; flex-direction: column; background: #fff; color: var(--pc-text); border: 1px solid var(--pc-border); border-radius: 8px; box-shadow: 0 12px 32px rgba(15, 23, 42, .28); overflow: hidden; }
.pc-bell__head { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px 10px; background: var(--pc-surface-2); border-bottom: 1px solid var(--pc-border); }
.pc-bell__head strong { font-size: 15px; font-weight: 500; }
.pc-bell__list { list-style: none; margin: 0; padding: 0; overflow: auto; }
.pc-bell__item { border-bottom: 1px solid var(--pc-border); border-left: 3px solid transparent; }
.pc-bell__item.is-unread { background: var(--pc-blue-soft); border-left-color: var(--pc-blue); }
.pc-bell__item a { display: flex; align-items: flex-start; gap: 10px; padding: 11px 16px; color: inherit; text-decoration: none; }
.pc-bell__item a:hover { background: #e3eafc; }
.pc-bell__item i { flex: none; margin-top: 1px; font-size: 19px; color: var(--pc-blue); }
.pc-bell__txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pc-bell__txt strong { font-weight: 500; font-size: 14px; line-height: 19px; overflow-wrap: anywhere; }
.pc-bell__txt small { color: var(--pc-muted); font-size: 13px; }
.pc-bell__empty { display: flex; align-items: center; gap: 10px; padding: 22px 16px; color: #3b6b46; font-size: 14px; }
.pc-bell__empty i { font-size: 22px; color: #278443; }
.pc-bell__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--pc-border); background: var(--pc-surface-2); }
.pc-bell__foot form { margin: 0; }
.pc-bell__foot a, .pc-linkbtn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; font: 500 14px var(--pc-font); color: var(--pc-blue); text-decoration: none; cursor: pointer; }
.pc-bell__foot a:hover, .pc-linkbtn:hover { text-decoration: underline; }
@media (max-width: 720px) { .pc-bell { position: static; } .pc-bell__panel { position: fixed; top: 58px; left: 8px; right: 8px; width: auto; max-width: none; } }

/* Lista de notificações: filtro e realce de novas */
.pc-notefilter { display: flex; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; }
.pc-notefilter a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--pc-border); color: var(--pc-text); text-decoration: none; font-size: 14px; background: #fff; }
.pc-notefilter a.is-active { background: var(--pc-blue); border-color: var(--pc-blue); color: #fff; }
.pc-note-item.is-unread { background: var(--pc-blue-soft); border-radius: 6px; }
