/* VipLicita - resultados premium */

:root {
    --lr-navy: #092449;
    --lr-blue: #146fe8;
    --lr-text: #132b54;
    --lr-border: #dce7f5;
    --lr-background: #f4f8fd;
    --lr-green: #138a50;
    --lr-red: #d9283d;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.lr-results-page {
    background: var(--lr-background);
    color: var(--lr-text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
}
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
.lr-results-app { min-height: 100vh; }

.lr-results-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: 236px;
    overflow-y: auto;
    padding: 18px 0 22px;
    background: linear-gradient(180deg, #08234a 0%, #092d5a 100%);
    color: #fff;
    box-shadow: 6px 0 24px rgba(6, 33, 71, .12);
}
.lr-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 18px 18px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.lr-brand-mark {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 2px solid #2d8cff;
    border-radius: 50%;
    color: #65b4ff;
    font-size: 19px;
    font-weight: 800;
}
.lr-brand-name { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.4px; }
.lr-brand-subtitle { display: block; margin-top: 2px; color: #a8c4e8; font-size: 10px; }
.lr-side-nav { padding-top: 14px; }
.lr-nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 40px;
    padding: 0 19px;
    color: #d7e6fb;
    font-size: 13px;
    transition: background .15s ease, color .15s ease;
}
.lr-nav-link:hover, .lr-nav-link.active {
    background: linear-gradient(90deg, #1769c8, #1556a5);
    color: #fff;
}
.lr-nav-icon { width: 18px; color: #b9d7fc; font-size: 14px; text-align: center; }
.lr-side-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 30px 16px 0;
    padding: 12px;
    border: 1px solid rgba(126,183,246,.24);
    border-radius: 10px;
    color: #d7e6fb;
    font-size: 11px;
}
.lr-side-footer strong, .lr-side-footer span { display: block; }
.lr-side-footer span { margin-top: 3px; color: #87a9d2; font-size: 10px; }
.lr-online-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #38c982;
    box-shadow: 0 0 0 4px rgba(56,201,130,.12);
}

.lr-results-content { min-height: 100vh; margin-left: 236px; }
.lr-topbar {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 11px 31px;
    background: #fff;
    border-bottom: 1px solid #e5edf7;
}
.lr-topbar-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 850px;
    height: 42px;
    padding: 0 14px;
    background: #f0f5fb;
    border: 1px solid #e2ebf7;
    border-radius: 9px;
}
.lr-topbar-search span { color: #3179c9; font-size: 19px; }
.lr-topbar-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--lr-text); }
.lr-topbar-search input::placeholder { color: #8296b5; }
.lr-updated { display: flex; align-items: center; gap: 9px; white-space: nowrap; color: var(--lr-text); }
.lr-updated-icon { color: #1665bc; font-size: 18px; }
.lr-updated small, .lr-updated strong { display: block; }
.lr-updated small { color: #7990b1; font-size: 10px; }
.lr-updated strong { margin-top: 2px; font-size: 12px; }
.lr-account {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-left: 17px;
    border-left: 1px solid #e4ebf5;
    color: var(--lr-text);
    font-weight: 700;
    white-space: nowrap;
}
.lr-account-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #e7f0fb; color: #2163a9; font-size: 16px; }

.lr-results-main { padding: 24px 25px 60px; }
.lr-results-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; margin-bottom: 19px; }
.lr-results-title h1 { margin: 0; color: #102856; font-size: 31px; line-height: 1.12; letter-spacing: -.8px; }
.lr-results-title p { margin: 7px 0 0; color: #6880a2; font-size: 16px; }

.lr-filter-panel { width: min(470px, 38%); }
.lr-filter-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    border: 1px solid #cfe0f5;
    border-radius: 9px;
    background: #f4f8fe;
    color: #0d67d4;
    font-weight: 800;
    cursor: pointer;
}
.lr-filter-toggle span:first-child { display: flex; gap: 9px; align-items: center; }
.lr-filter-form {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 9px;
    padding: 13px;
    border: 1px solid #dce8f5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(16,53,99,.07);
}
.lr-filter-form.open { display: grid; }
.lr-filter-form input, .lr-filter-form select {
    width: 100%;
    min-height: 35px;
    padding: 7px 9px;
    border: 1px solid #d3e0ef;
    border-radius: 6px;
    background: #fff;
    color: var(--lr-text);
    outline: 0;
}
.lr-filter-form .lr-filter-submit {
    grid-column: 1 / -1;
    min-height: 36px;
    border: 0;
    border-radius: 6px;
    background: var(--lr-blue);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.lr-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.lr-summary-card {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 17px;
    border: 1px solid #dbe7f5;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15,49,92,.035);
}
.lr-summary-card.medical { background: #fffbe9; border-color: #f1e5a4; }
.lr-summary-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #edf4fc;
    color: #1f61a6;
    font-size: 18px;
}
.lr-summary-icon.green { background: #dff7e9; color: #12a45c; }
.lr-summary-icon.red { background: #ffe3e7; color: #df2a43; }
.lr-summary-icon.gold { background: transparent; color: #123d7a; font-size: 24px; }
.lr-summary-card strong, .lr-summary-card span { display: block; }
.lr-summary-card strong { color: #102552; font-size: 21px; line-height: 1; }
.lr-summary-card span { margin-top: 5px; color: #637b9f; font-size: 13px; }

.lr-query-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
    padding: 12px 16px;
    border: 1px solid #dce8f5;
    border-radius: 9px;
    background: #fff;
}
.lr-query-row strong { color: #1b3156; }
.lr-query-row span { color: #1b66cb; font-weight: 700; }
.lr-query-clear { border: 0; background: transparent; color: #146fe8; cursor: pointer; font-weight: 700; }

.lr-results-list { display: grid; gap: 18px; }
.lr-result-card {
    overflow: hidden;
    padding: 20px 22px 16px;
    border: 1px solid #e0e9f4;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(16,53,99,.055);
}
.lr-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid #e2eaf4; }
.lr-card-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-width: 0; }
.lr-card-title { color: #1268d9; font-size: 25px; font-weight: 800; line-height: 1.1; letter-spacing: -.5px; }
.lr-card-title:hover { color: #094a9f; }
.lr-relevance { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 8px; background: #e7f0ff; color: #1d6bcc; font-size: 11px; font-weight: 800; white-space: nowrap; }
.lr-relevance .star { color: #f2b932; font-size: 17px; line-height: 1; }
.lr-identifier { margin-top: 7px; color: #637b9f; font-size: 13px; }
.lr-identifier strong { color: #1a3158; }
.lr-source-badge { display: inline-flex; align-items: center; min-height: 29px; padding: 0 12px; border-radius: 7px; color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.lr-source-pncp { background: #1076dd; }
.lr-source-bll { background: #6b46d4; }
.lr-source-compras { background: #159664; }
.lr-source-default { background: #315e99; }
.lr-opening { min-width: 135px; padding-left: 17px; border-left: 1px solid #dfe8f3; color: #6980a1; font-size: 12px; }
.lr-opening strong { display: block; margin-top: 5px; color: #193363; font-size: 14px; }
.lr-status-wrap { min-width: 95px; padding-left: 17px; border-left: 1px solid #dfe8f3; color: #6980a1; font-size: 12px; }
.lr-status { display: inline-flex; margin-top: 5px; padding: 6px 13px; border-radius: 8px; background: #ffe1e5; color: var(--lr-red); font-size: 11px; font-weight: 900; }
.lr-status.open { background: #dff7e9; color: var(--lr-green); }
.lr-card-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.lr-action { min-height: 39px; padding: 0 15px; border: 1px solid #c9dcf3; border-radius: 8px; background: #fff; color: #1268d9; font-weight: 800; cursor: pointer; }
.lr-action.primary { border-color: #146fe8; background: #146fe8; color: #fff; }
.lr-action.icon-only { width: 39px; padding: 0; font-size: 18px; }

.lr-card-meta { display: grid; grid-template-columns: 1.05fr 1.55fr 1.1fr 1.1fr; gap: 0; padding: 14px 0; border-bottom: 1px solid #e2eaf4; }
.lr-meta-item { min-width: 0; padding: 0 17px; border-right: 1px solid #e2eaf4; }
.lr-meta-item:first-child { padding-left: 0; }
.lr-meta-item:last-child { padding-right: 0; border-right: 0; }
.lr-meta-label { display: block; margin-bottom: 5px; color: #6680a5; font-size: 12px; }
.lr-meta-value { display: block; color: #1c3767; font-size: 14px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.lr-meta-value.value { color: #138546; font-size: 16px; }
.lr-card-object { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding-top: 13px; color: #203c70; font-size: 14px; line-height: 1.45; }
.lr-object-label { color: #6680a5; font-weight: 700; }
.lr-keyword { padding: 1px 3px; border-radius: 2px; background: #ffef49; color: #172d50; }
.lr-loading, .lr-no-results { padding: 30px; border: 1px solid #dce7f5; border-radius: 12px; background: #fff; color: #607695; text-align: center; }

.lr-pagination { display: flex; justify-content: center; gap: 4px; margin-top: 21px; }
.lr-pagination a { min-width: 35px; padding: 9px 12px; border: 1px solid #d6e3f2; border-radius: 6px; background: #fff; color: #146fe8; text-align: center; font-weight: 700; }
.lr-pagination a.active { border-color: #146fe8; background: #146fe8; color: #fff; }

@media (max-width: 1200px) {
    .lr-card-head { grid-template-columns: minmax(0, 1fr) auto auto; }
    .lr-card-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .lr-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .lr-results-sidebar { position: static; width: 100%; max-height: none; }
    .lr-results-content { margin-left: 0; }
    .lr-side-nav { display: none; }
    .lr-topbar { padding: 10px 15px; }
    .lr-account { display: none; }
    .lr-results-main { padding: 18px 14px 45px; }
    .lr-results-header { display: block; }
    .lr-filter-panel { width: 100%; margin-top: 17px; }
    .lr-card-head { grid-template-columns: 1fr; gap: 10px; }
    .lr-source-badge, .lr-opening, .lr-status-wrap { width: fit-content; border-left: 0; padding-left: 0; }
    .lr-card-actions { justify-content: flex-start; }
    .lr-card-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
    .lr-meta-item:nth-child(2) { border-right: 0; }
    .lr-meta-item:nth-child(3) { padding-left: 0; }
    .lr-meta-item:nth-child(4) { padding-right: 0; }
}
@media (max-width: 540px) {
    .lr-summary-grid { grid-template-columns: 1fr 1fr; }
    .lr-summary-card { padding: 11px; }
    .lr-summary-icon { width: 28px; height: 28px; flex-basis: 28px; font-size: 14px; }
    .lr-summary-card strong { font-size: 18px; }
    .lr-card-title { font-size: 21px; }
    .lr-card-meta { grid-template-columns: 1fr; }
    .lr-meta-item, .lr-meta-item:first-child, .lr-meta-item:last-child { padding: 0 0 11px; border-right: 0; border-bottom: 1px solid #edf2f8; }
    .lr-meta-item:last-child { padding-bottom: 0; border-bottom: 0; }
    .lr-card-object { grid-template-columns: 1fr; gap: 4px; }
    .lr-action { flex: 1; padding: 0 9px; }
    .lr-action.icon-only { flex: 0 0 39px; }
}


/* Results card specification; scoped to this page. */
:root { --lr-navy:#092B4C; --lr-blue:#0D6EFD; --lr-text:#102A56; --lr-border:#D9E3F0; --lr-background:#F3F7FC; --lr-green:#168A45; --lr-red:#DC3545; }
.lr-results-sidebar { background:linear-gradient(180deg,#092B4C,#0B355E); }
.lr-result-card { border-color:#D9E3F0; }
.lr-card-head { display:flex; flex-wrap:wrap; gap:12px; }
.lr-card-title { color:#1266E3; font-size:23px; overflow-wrap:anywhere; }
.lr-favorite { flex:0 0 40px; height:40px; border:1px solid #D9E3F0; border-radius:8px; background:white; color:#667085; font-size:26px; cursor:pointer; }
.lr-favorite.selected { color:#F4C430; background:#fffae4; }
.lr-source-pncp { background:#1476D4; }.lr-source-bll { background:#7138D4; }.lr-source-gov { background:#159447; }.lr-source-parana { background:#008F83; }.lr-source-tce { background:#D97706; }.lr-source-default { background:#667085; }
.lr-status { margin:0; color:white; }.lr-status.open { background:#168A45; color:white; }.lr-status.scheduled { background:#1266E3; }.lr-status.closed { background:#DC3545; }.lr-status.cancelled { background:#667085; }.lr-status.suspended { background:#F4C430; color:#102A56; }.lr-status.failed { background:#D97706; }.lr-status.unknown { background:#e4e7ec; color:#475467; }
.lr-value { color:#168A45; font-size:18px; }.lr-opening,.lr-meta-label,.lr-object-label,.lr-identifier { color:#667085; }
.lr-card-meta { grid-template-columns:1.1fr 1fr 1.6fr 1fr; }.lr-keyword { background:#FFF176; padding:0; }
.lr-object-text { white-space:pre-wrap; overflow-wrap:anywhere; min-width:0; }
.lr-card-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:16px; border-top:1px solid #D9E3F0; padding-top:12px; }
.lr-identifier { overflow-wrap:anywhere; min-width:0; }.lr-card-actions { flex-wrap:wrap; }.lr-action { display:inline-flex; align-items:center; justify-content:center; }.lr-action.primary { background:#0D6EFD; border-color:#0D6EFD; }.save-action.saved { background:#e9f2ff; border-color:#1266E3; }
[data-count]:not(:empty) { margin-left:auto; border-radius:12px; padding:2px 7px; background:#0B355E; color:white; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline:3px solid #1266E3; outline-offset:3px; }
#state-error { color:#a61d2d; background:#fff; padding:12px; border:1px solid #DC3545; border-radius:8px; }
@media(max-width:1100px) { .lr-card-meta { grid-template-columns:1fr 1fr; gap:14px 0; }.lr-meta-item:nth-child(2) { border-right:0; }.lr-meta-item:nth-child(3) { padding-left:0; } }
@media(max-width:860px) { .lr-side-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-height:180px; overflow:auto; }.lr-side-footer { display:none; }.lr-topbar-search { min-width:0; }.lr-updated { display:none; }.lr-card-head { gap:10px; }.lr-card-title { max-width:calc(100% - 52px); }.lr-card-footer .lr-card-actions { margin-left:0; }.lr-card-actions { width:100%; } }
@media(max-width:540px) { .lr-card-meta { grid-template-columns:1fr; }.lr-result-card { padding:16px; }.lr-nav-link { padding:8px 12px; font-size:12px; }.lr-opening { width:100%; }.lr-summary-card { gap:6px; }.lr-summary-card span { font-size:11px; }.lr-card-title { font-size:21px; } }
