/* Registrid.ee 2.5.61 · Avatud riigihanked · detailreferentsi sisustiilid */
.rhr-open-update { display: grid; justify-items: end; gap: .35rem; }
.rhr-open-update a { font-size: .8rem; }
.rhr-open-stat-grid > div {
    display:grid; gap:.34rem; min-width:0; padding:1.15rem 1.2rem;
}
.rhr-open-stat-grid span { color:var(--text-muted); font-size:.75rem; line-height:1.35; }
.rhr-open-stat-grid strong { font-size:1.22rem; line-height:1.25; }
.rhr-open-filter-form {
    margin: 0 0 1rem;
    padding: 1rem 1.05rem;
}
.rhr-open-filter-primary {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.35fr)
        minmax(155px, .75fr)
        minmax(155px, .75fr)
        minmax(175px, .8fr)
        minmax(190px, .9fr)
        auto;
    gap: .75rem;
    align-items: center;
}
.rhr-open-filter-primary > label {
    min-width: 0;
}
.rhr-open-filter-primary .ui-input,
.rhr-open-filter-primary .ui-select {
    width: 100%;
}
.rhr-open-filter-primary .ui-button {
    white-space: nowrap;
}
.rhr-open-filter-utility {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    margin-top: .7rem;
}
.rhr-open-known-value {
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    color: var(--text-secondary);
    font-size: .82rem;
    font-weight: 520;
    cursor: pointer;
}
.rhr-open-known-value input {
    width: auto;
    min-height: 0;
    margin: 0;
}
.rhr-open-result-head { display: flex; justify-content: space-between; align-items: end; margin: 1.3rem 0 .72rem; }
.rhr-open-result-head strong, .rhr-open-result-head span { display: block; }
.rhr-open-result-head strong { font-family: var(--font-serif); font-size: 1.48rem; line-height: 1.15; }
.rhr-open-result-head span { color: var(--text-secondary); font-size: .82rem; }
.rhr-open-list { display: grid; gap: .6rem; }
.rhr-open-card {
    display: grid; grid-template-columns: minmax(0,1fr) 215px; gap: 1.2rem; padding: 1.1rem 1.2rem;
    background: rgba(255,255,255,.52); border: 1px solid var(--border); border-radius: 5px;
}
.rhr-open-card:hover { border-color: var(--border-strong); }
.rhr-open-kicker { margin: 0; color: var(--text-muted); font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .035em; }
.rhr-open-card h2 { margin: .2rem 0 .4rem; font-family: var(--font-serif); font-size: 1.28rem; font-weight: 600; line-height: 1.25; }
.rhr-open-card h2 a { color: inherit; text-decoration: none; }
.rhr-open-card h2 a:hover { text-decoration: underline; text-underline-offset: .2rem; }
.rhr-open-buyer { margin: .35rem 0; font-size: .86rem; }
.rhr-open-buyer a, .rhr-buyer-link { color: var(--text-primary); text-decoration: none; }
.rhr-open-buyer a:hover, .rhr-buyer-link:hover { text-decoration: underline; text-underline-offset: .18rem; }
.rhr-open-description {
    display: -webkit-box; max-width: 86ch; margin: .48rem 0; color: var(--text-secondary); font-size: .86rem; line-height: 1.5;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rhr-open-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--text-muted); font-size: .76rem; }
.rhr-open-deadline { display: flex; flex-direction: column; justify-content: center; padding-left: 1.15rem; border-left: 1px solid var(--border); }
.rhr-open-deadline span { color: var(--text-muted); font-size: .75rem; }
.rhr-open-deadline strong { margin: .18rem 0 .7rem; font-size: .9rem; line-height: 1.35; }
.rhr-open-deadline a { font-size: .82rem; font-weight: 700; }
.rhr-empty-state { padding: 2.2rem 1.2rem; text-align: center; background: rgba(255,255,255,.52); border: 1px solid var(--border); border-radius: 5px; }

/* Hanke detail kasutab sama detail-lepingut nagu ettevõtte vaade. */
.rhr-detail-breadcrumb span:last-child { max-width: min(58vw, 680px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rhr-procurement-hero { align-items: end; }
.rhr-procurement-hero .detail-title { font-size: clamp(2.55rem, 3.55vw, 3.9rem); }
.rhr-procurement-hero .detail-meta a { color: inherit; }
.rhr-deadline-state { font-weight: 650; }
.rhr-deadline-state.status-closing_soon { color: #8a5a00; }
.rhr-deadline-state.status-closed { color: #7a2e2e; }
.rhr-procurement-facts strong { overflow-wrap: anywhere; }
.rhr-open-detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; margin: .65rem 0 1.2rem; }
.rhr-open-panel { padding: 1.2rem 1.25rem; }
.rhr-open-panel h2 { margin: .1rem 0 1rem; font-family: var(--font-serif); font-size: 1.42rem; line-height: 1.15; }
.rhr-open-details { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: .58rem 1rem; margin: 0; font-size: .86rem; }
.rhr-open-details dt { color: var(--text-muted); }
.rhr-open-details dd { margin: 0; overflow-wrap: anywhere; }
.rhr-open-chip-list { display: flex; flex-wrap: wrap; gap: .42rem; margin: .75rem 0 0; }
.rhr-open-chip-list + .rhr-open-chip-list { margin-top: .55rem; }
.rhr-open-chip-list span { padding: .35rem .55rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.66); color: var(--text-secondary); font-size: .76rem; }
.rhr-open-section { margin-top: 0; }
.rhr-open-full-description { max-width: 92ch; margin: .5rem 0 0; white-space: pre-line; line-height: 1.65; }
.rhr-open-detail-page .rhr-table-wrap { margin-top: .85rem; }
.rhr-registry-refs { margin-top: 1.2rem; padding-top: .9rem; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: .8rem; }
.rhr-registry-refs summary { width: max-content; cursor: pointer; font-weight: 650; }
.rhr-registry-refs-body { max-width: 900px; padding: .8rem 0 .2rem; }
.rhr-registry-refs-body > p { margin-top: 0; }
@media (max-width: 1100px) {
    .rhr-open-filter-primary { grid-template-columns: 1fr 1fr; }
    .rhr-open-filter-primary button { width: max-content; }
}
@media (max-width: 820px) {
    .rhr-open-update { justify-items: start; }
    .rhr-open-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .rhr-open-filter-primary { grid-template-columns: 1fr; }
    .rhr-open-filter-primary button { width: 100%; }
    .rhr-open-card { grid-template-columns: 1fr; }
    .rhr-open-deadline { padding-left: 0; padding-top: .75rem; border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 680px) {
    .rhr-detail-breadcrumb span:last-child { display: none; }
    .rhr-open-details { grid-template-columns: 1fr; gap: .18rem; }
    .rhr-open-details dt { margin-top: .55rem; }
    .rhr-open-panel { padding: 1rem; }
}

/* 2.5.60c · detailkomponentide avatud hangete sisu */
.theme-editorial-airy.page-rhr-open .rhr-open-stat-grid.detail-fact-strip { margin:0; }
.theme-editorial-airy.page-rhr-open .rhr-open-stat-grid.detail-fact-strip > div {
    display:flex;
    min-width:0;
    flex-direction:column;
    justify-content:center;
    padding:1.5rem 1.45rem;
}
.theme-editorial-airy.page-rhr-open .rhr-open-stat-grid.detail-fact-strip > div strong {
    font-size:1.16rem;
    font-weight:520;
}
.theme-editorial-airy.page-rhr-open .rhr-source-meta { flex-wrap:wrap; }
.theme-editorial-airy.page-rhr-open .rhr-open-results.detail-section { margin-top:1.2rem; }
.theme-editorial-airy.page-rhr-open .rhr-open-results .rhr-open-result-head { margin:0 0 .55rem; }
.theme-editorial-airy.page-rhr-open .rhr-open-results .detail-section-title { margin:0 0 .18rem; }
.theme-editorial-airy.page-rhr-open .rhr-open-list { gap:0; border-top:1px solid var(--border); }
.theme-editorial-airy.page-rhr-open .rhr-open-card {
    grid-template-columns:minmax(0,1fr) 215px;
    gap:1.35rem;
    padding:1.15rem .1rem 1.15rem 0;
    border:0;
    border-bottom:1px solid var(--border);
    border-radius:0;
    background:transparent;
}
.theme-editorial-airy.page-rhr-open .rhr-open-card:hover { background:rgba(255,255,255,.26); }
.theme-editorial-airy.page-rhr-open .rhr-open-deadline { padding-left:1.2rem; }
.theme-editorial-airy.page-rhr-open .rhr-empty-state {
    border:0;
    border-bottom:1px solid var(--border);
    border-radius:0;
    background:transparent;
}
.theme-editorial-airy.page-rhr-procurement-detail .rhr-open-detail-grid.detail-overview { margin-top:.75rem; }
@media(max-width:1180px) {
    .theme-editorial-airy.page-rhr-open .rhr-open-stat-grid.detail-fact-strip > div:nth-child(2) { border-right:0; }
    .theme-editorial-airy.page-rhr-open .rhr-open-stat-grid.detail-fact-strip > div:nth-child(-n+2) { border-bottom:1px solid var(--border); }
}
@media(max-width:760px) {
    .theme-editorial-airy.page-rhr-open .rhr-open-card { grid-template-columns:1fr; padding-right:0; }
}
@media(max-width:680px) {
    .theme-editorial-airy.page-rhr-open .rhr-open-stat-grid.detail-fact-strip > div {
        padding:.9rem 1rem;
        border-right:0;
        border-bottom:1px solid var(--border);
    }
    .theme-editorial-airy.page-rhr-open .rhr-open-stat-grid.detail-fact-strip > div:last-child { border-bottom:0; }
}

