/* Portal da Transparência: interface enxuta, sem cabeçalho institucional, pronta para shortcode. */
.pdt-portal { --pdt-green: #006b3f; --pdt-lime: #9dbb16; --pdt-ink: #172018; --pdt-muted: #637065; --pdt-line: #dce4dd; --pdt-wash: #f7faf7; color: var(--pdt-ink); font-family: Arial, sans-serif; font-size: 16px; line-height: 1.45; }
.pdt-portal *, .pdt-portal *::before, .pdt-portal *::after { box-sizing: border-box; }
.pdt-portal button, .pdt-portal input, .pdt-portal select { font: inherit; }
.pdt-tools { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 0.68fr)) auto; gap: 10px; align-items: center; margin-bottom: 18px; }
.pdt-search, .pdt-select-wrap { position: relative; display: block; }
.pdt-search svg { position: absolute; top: 50%; left: 14px; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--pdt-green); stroke-linecap: round; stroke-width: 1.8; }
.pdt-search-input, .pdt-select-wrap select { width: 100%; min-height: 44px; border: 1px solid var(--pdt-line); border-radius: 0; background: #fff; color: var(--pdt-ink); outline: none; }
.pdt-search-input { padding: 10px 12px 10px 42px; }
.pdt-select-wrap select { padding: 9px 34px 9px 12px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--pdt-green) 50%), linear-gradient(135deg, var(--pdt-green) 50%, transparent 50%); background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.pdt-search-input:focus, .pdt-select-wrap select:focus { border-color: var(--pdt-green); box-shadow: 0 0 0 3px rgba(0, 107, 63, 0.12); }
.pdt-clear { min-height: 44px; border: 1px solid var(--pdt-line); border-radius: 0; background: #fff; color: var(--pdt-green); cursor: pointer; font-weight: 700; padding: 10px 14px; white-space: nowrap; }
.pdt-clear:hover { background: var(--pdt-wash); border-color: var(--pdt-green); }
.pdt-result-count { color: var(--pdt-muted); font-size: 14px; margin: 0 0 9px; }
.pdt-result-count strong { color: var(--pdt-ink); }
.pdt-list { border-top: 1px solid var(--pdt-line); }
.pdt-item { position: relative; display: grid; grid-template-columns: 5px 100px minmax(220px, 1fr) minmax(100px, auto) minmax(118px, auto) 24px; gap: 16px; width: 100%; align-items: center; border: 0; border-bottom: 1px solid var(--pdt-line); border-radius: 0; background: #fff; color: inherit; cursor: pointer; padding: 18px 14px 18px 0; text-align: left; transition: background 160ms ease; }
.pdt-item:hover { background: var(--pdt-wash); }
.pdt-item:focus-visible { outline: 3px solid rgba(0, 107, 63, 0.35); outline-offset: -3px; }
.pdt-item__indicator { align-self: stretch; background: transparent; transition: background 160ms ease; }
.pdt-item:hover .pdt-item__indicator, .pdt-item:focus-visible .pdt-item__indicator { background: var(--pdt-green); }
.pdt-item__type { color: var(--pdt-green); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pdt-item__body { display: grid; gap: 4px; min-width: 0; }
.pdt-item__body strong { color: var(--pdt-ink); font-size: 15px; line-height: 1.3; }
.pdt-item__body span { color: var(--pdt-muted); font-size: 13px; }
.pdt-item__value { color: var(--pdt-ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.pdt-status { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cce1d2; background: #eaf5ef; color: #005c36; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; padding: 5px 8px; text-transform: uppercase; white-space: nowrap; }
.pdt-status > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pdt-status.is-review { border-color: #dce6ad; background: #f4f8da; color: #596c00; }
.pdt-item__arrow { width: 18px; height: 18px; fill: none; stroke: var(--pdt-green); stroke-linecap: round; stroke-width: 1.8; transition: transform 160ms ease; }
.pdt-item:hover .pdt-item__arrow { transform: translateX(3px); }
.pdt-no-results, .pdt-empty { border-bottom: 1px solid var(--pdt-line); color: var(--pdt-muted); margin: 0; padding: 36px 16px; text-align: center; }
.pdt-notice { border-left: 2px solid var(--pdt-green); color: var(--pdt-muted); font-size: 12px; line-height: 1.55; margin: 18px 0 0; padding-left: 12px; }
.pdt-modal-open { overflow: hidden; }
.pdt-modal { position: fixed; z-index: 99999; inset: 0; display: grid; place-items: center; padding: 20px; }
.pdt-modal[hidden] { display: none; }
.pdt-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 12, 0.62); }
.pdt-modal__panel { position: relative; z-index: 1; width: min(100%, 650px); max-height: min(760px, calc(100vh - 40px)); overflow: auto; border-top: 4px solid var(--pdt-green); background: #fff; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28); padding: 36px; }
.pdt-modal__close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 1px solid var(--pdt-line); background: #fff; color: var(--pdt-ink); cursor: pointer; font-size: 27px; line-height: 1; }
.pdt-modal__close:hover { border-color: var(--pdt-green); color: var(--pdt-green); }
.pdt-modal__type { color: var(--pdt-green); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; margin: 0 0 10px; text-transform: uppercase; }
.pdt-modal h2 { color: var(--pdt-ink); font-size: clamp(24px, 4vw, 34px); line-height: 1.1; margin: 0; }
.pdt-modal__description { color: var(--pdt-muted); line-height: 1.65; margin: 18px 0 0; }
.pdt-modal__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--pdt-line); margin: 28px 0; }
.pdt-modal__meta div { background: var(--pdt-wash); padding: 14px; }
.pdt-modal__meta dt { color: var(--pdt-muted); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pdt-modal__meta dd { color: var(--pdt-ink); font-size: 14px; font-weight: 700; margin: 6px 0 0; }
.pdt-modal__file { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--pdt-line); background: var(--pdt-wash); padding: 15px; }
.pdt-modal__file > span { color: var(--pdt-muted); font-size: 12px; font-weight: 700; }
.pdt-modal__file a { background: var(--pdt-green); color: #fff; font-size: 13px; font-weight: 700; padding: 10px 12px; text-decoration: none; }
.pdt-modal__file a:hover { background: #004c2d; }
.pdt-modal__file small { width: 100%; color: var(--pdt-muted); font-size: 11px; overflow-wrap: anywhere; }
.pdt-modal__unavailable { border-left: 2px solid var(--pdt-lime); color: var(--pdt-muted); font-size: 13px; margin: 0; padding-left: 12px; }
@media (max-width: 900px) { .pdt-tools { grid-template-columns: 1fr 1fr; } .pdt-search { grid-column: span 2; } .pdt-item { grid-template-columns: 4px 76px minmax(180px, 1fr) minmax(100px, auto) 22px; } .pdt-status { display: none; } }
@media (max-width: 620px) { .pdt-tools { grid-template-columns: 1fr; } .pdt-search { grid-column: auto; } .pdt-item { grid-template-columns: 4px 1fr 18px; gap: 10px; padding: 16px 0; } .pdt-item__type { display: none; } .pdt-item__body span { font-size: 12px; } .pdt-item__value { grid-column: 2; } .pdt-item__arrow { grid-column: 3; grid-row: 1; } .pdt-modal { padding: 12px; } .pdt-modal__panel { padding: 28px 20px 22px; } .pdt-modal__meta { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .pdt-modal__panel { animation: pdt-enter 180ms cubic-bezier(0.23, 1, 0.32, 1); } @keyframes pdt-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } }
