/* PQR: estilos aislados; no modifica los modulos existentes. */
.pqr-body { background: #eef4ef; color: #173027; }
.pqr-public-nav { background: #fff; border-bottom: 1px solid #d6e2d9; padding: 20px max(20px, calc((100% - 1080px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pqr-public-nav nav, .pqr-brand { display: flex; align-items: center; gap: 20px; }
.pqr-public-nav a { color: #176d49; text-decoration: none; }
.pqr-brand span { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 8px; background: #176d49; color: white; font-weight: 700; }
.pqr-public { max-width: 1040px; padding: 32px 24px 64px; margin: auto; }
.pqr-layout { min-width: 0; font-size: 16px; line-height: 1.5; }
.pqr-layout h1 { font-size: 30px; line-height: 1.2; margin: 4px 0 10px; }
.pqr-layout h2 { font-size: 21px; margin: 0 0 20px; overflow-wrap: anywhere; }
.pqr-heading { margin: 24px 0; }
.pqr-heading p { margin: 4px 0; color: #536c63; }
.pqr-heading .pqr-eyebrow { color: #176d49; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.pqr-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pqr-surface, .pqr-section { background: #fff; padding: 28px; border-top: 1px solid #d6e2d9; border-bottom: 1px solid #d6e2d9; }
.pqr-section + .pqr-section { border-top: 0; }
.pqr-form { display: grid; gap: 26px; }
.pqr-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pqr-form legend { font-size: 19px; font-weight: 700; padding: 0; margin-bottom: 16px; }
.pqr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.pqr-layout label { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-weight: 600; font-size: 15px; }
.pqr-layout label small { font-weight: 400; color: #62776d; }
.pqr-layout input, .pqr-layout select, .pqr-layout textarea { font: inherit; font-weight: 400; width: 100%; min-width: 0; color: #173027; background: #fff; border: 1px solid #becfc4; border-radius: 6px; padding: 11px 12px; box-sizing: border-box; }
.pqr-layout textarea { resize: vertical; line-height: 1.6; min-height: 140px; }
.pqr-layout :is(input, select, textarea, button, a):focus-visible { outline: 3px solid #80cbb0; outline-offset: 2px; }
.pqr-layout .pqr-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid #176d49; border-radius: 6px; background: #176d49; color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.pqr-layout .pqr-button:hover { background: #105437; }
.pqr-layout .pqr-button.secondary { color: #176d49; background: white; }
.pqr-layout a { color: #176d49; }
.pqr-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid #e1e8e3; }
.pqr-muted { color: #62776d; font-size: 14px; margin: 0; }
.pqr-notice, .pqr-errors { padding: 18px; margin: 20px 0; border-left: 4px solid #198254; background: #e3f4e9; overflow-wrap: anywhere; }
.pqr-errors { background: #fff0ee; border-color: #b33d31; color: #7d2921; }
.pqr-errors ul { margin: 8px 0 0; padding-left: 22px; }
.pqr-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 20px 0 26px; }
.pqr-data dt { font-size: 13px; color: #62776d; }
.pqr-data dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.pqr-prose { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.pqr-status { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; color: #36576b; background: #e9f2f8; white-space: nowrap; }
.pqr-status.en_gestion { background: #fff1cc; color: #775000; }
.pqr-status.remitida { background: #f1edfa; color: #5f4588; }
.pqr-status.resuelta { background: #e0f2e6; color: #176d49; }
.pqr-status.cerrada { background: #ecefef; color: #4b5c55; }
.pqr-surface .pqr-radicado { margin: 20px 0; font-size: 32px; }
.pqr-filters { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; padding: 20px 0; }
.pqr-filters label:first-child { flex: 1 1 230px; }
.pqr-filters label { flex: 0 1 170px; }
.pqr-filters > a { padding: 10px 0; }
.pqr-table-wrap { max-width: 100%; overflow-x: auto; background: #fff; }
.pqr-table { border-collapse: collapse; width: 100%; min-width: 850px; }
.pqr-table th, .pqr-table td { text-align: left; padding: 16px; border-bottom: 1px solid #dce5df; vertical-align: top; }
.pqr-table th { background: #f5f8f6; color: #536c63; font-size: 13px; }
.pqr-table td { font-size: 14px; max-width: 300px; overflow-wrap: anywhere; }
.pqr-table small { display: block; color: #62776d; margin-top: 4px; }
.pqr-table .pqr-overdue { color: #b04430; }
.pqr-empty { text-align: center !important; padding: 40px !important; }
.pqr-pagination { padding: 20px 0; }
.pqr-back { display: inline-block; margin: 20px 0 0; }
.pqr-history { list-style: none; padding: 0; margin: 0; }
.pqr-history li { border-left: 3px solid #99baa7; padding: 0 0 24px 20px; margin-bottom: 24px; border-bottom: 1px solid #e1e8e3; }
.pqr-history header { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.pqr-history time { color: #62776d; font-size: 13px; }
.pqr-changes { display: grid; gap: 10px; font-size: 14px; }
.pqr-changes dt { font-weight: 700; }
.pqr-changes dd { margin: 0; overflow-wrap: anywhere; }
.pqr-changes dd span { color: #62776d; }
.pqr-attachment { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin-top: 14px; padding: 11px 14px; border: 1px solid #c8d9ce; border-radius: 6px; background: #f5f9f6; color: #176d49; text-decoration: none; }
.pqr-attachment > span:nth-child(2) { display: grid; min-width: 0; }
.pqr-attachment strong { overflow-wrap: anywhere; }
.pqr-attachment small { color: #62776d; font-size: 12px; font-weight: 400; }
.pqr-attachment > span:last-child { margin-left: 10px; font-weight: 700; }
.pqr-attachment:hover { background: #e8f3ec; }
@media (max-width: 700px) {
    .pqr-grid, .pqr-data { grid-template-columns: minmax(0, 1fr); }
    .pqr-public { padding: 20px 14px 40px; }
    .pqr-surface, .pqr-section { padding: 20px 16px; }
    .pqr-public-nav { align-items: flex-start; padding: 16px; flex-wrap: wrap; }
    .pqr-public-nav nav { margin-left: auto; }
    .pqr-actions .pqr-button { width: 100%; }
    .pqr-attachment { align-items: flex-start; width: 100%; box-sizing: border-box; }
    .pqr-attachment > span:last-child { display: none; }
}
