/* Istoricul cursului BNR: /web/curs-bnr/ (module/Web/view/web/bnr/curs.phtml, grafic.phtml) */
.cb-section { padding: 40px 0 70px; background: #f7f7f7; }
.cb-crumbs { font-size: 13px; color: #6f6f6f; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.cb-crumbs a { color: #6f6f6f; text-decoration: underline; }
.cb-crumbs [aria-current] { color: #232323; }
.cb-h1 { font-size: 30px; line-height: 1.25; font-weight: 600; color: #232323; margin: 0 0 12px; letter-spacing: 0; }
.cb-h2 { font-size: 21px; font-weight: 600; color: #232323; margin: 38px 0 14px; letter-spacing: 0; }
.cb-intro { font-size: 15px; color: #6f6f6f; max-width: 760px; margin: 0 0 22px; }
.cb-muted { color: #6f6f6f; }
.cb-box { background: #fff; border-radius: 12px; box-shadow: 0 4px 18px rgba(0, 0, 0, .05); }
.cb-empty { padding: 30px; text-align: center; }

.cb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cb-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 18px rgba(0, 0, 0, .05); padding: 20px 22px 16px; display: flex; flex-direction: column; gap: 8px; }
.cb-card-head { display: flex; align-items: baseline; gap: 10px; }
.cb-code { font-size: 14px; font-weight: 700; letter-spacing: .5px; color: #fff; background: #232323; border-radius: 6px; padding: 2px 8px; }
.cb-name { font-size: 14px; color: #6f6f6f; }
.cb-value { font-size: 34px; line-height: 1.1; font-weight: 600; color: #232323; font-variant-numeric: tabular-nums; }
.cb-value small { font-size: 15px; font-weight: 400; color: #6f6f6f; }
.cb-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; }
.cb-change { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* cresterea / scaderea cursului nu e "bine" sau "rau" (depinde de cine cumpara): aceeasi culoare, directia o da sageata */
.cb-change { color: #232323; }
.cb-arrow { color: #6f6f6f; }
.cb-change.cb-flat { color: #6f6f6f; }
.cb-arrow { font-size: 10px; vertical-align: 1px; }
.cb-card-foot { font-size: 13px; }
.cb-minmax { margin: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 14px; }
.cb-minmax dt { font-weight: 400; color: #6f6f6f; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.cb-minmax dd { margin: 0; font-variant-numeric: tabular-nums; color: #232323; }

.cb-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cb-figure { margin: 0; padding: 16px 16px 8px; }
.cb-figure figcaption { font-size: 14px; margin-bottom: 4px; }
.cb-chart { display: block; width: 100%; height: auto; overflow: visible; }
.cb-spark { width: 100%; height: auto; margin: 6px 0 2px; }
.cb-line { fill: none; stroke: #2f7d0a; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cb-end { fill: #2f7d0a; stroke: #fff; stroke-width: 2; }
.cb-grid { stroke: #ececec; stroke-width: 1; }
.cb-axis { font-size: 11px; fill: #6f6f6f; font-variant-numeric: tabular-nums; }
.cb-hit { fill: transparent; }
.cb-cross { stroke: #bdbdbd; stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.cb-dot { fill: #2f7d0a; stroke: #fff; stroke-width: 2; opacity: 0; }
.cb-pt:hover .cb-cross, .cb-pt:hover .cb-dot { opacity: 1; }

.cb-table-wrap { overflow-x: auto; }
.cb-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cb-table th, .cb-table td { padding: 11px 16px; border-bottom: 1px solid #f0f0f0; text-align: left; vertical-align: middle; }
.cb-table thead th { font-size: 13px; font-weight: 600; color: #6f6f6f; background: #fafafa; white-space: nowrap; }
.cb-table tbody th { font-weight: 500; color: #232323; white-space: nowrap; }
.cb-table tbody tr:last-child th, .cb-table tbody tr:last-child td { border-bottom: 0; }
.cb-table tbody tr:hover { background: #fafdf7; }
.cb-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb-th-sub { display: block; font-weight: 400; font-size: 11px; }
.cb-range { font-size: 13px; }
.cb-weekday { font-size: 13px; font-weight: 400; margin-left: 4px; }
.cb-src { text-align: right !important; white-space: nowrap; font-size: 13px; }
.cb-src a { color: #2f7d0a; text-decoration: underline; }

.cb-pager-months { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.cb-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid #dcdcdc; border-radius: 8px; background: #fff; color: #232323; font-size: 14px; }
.cb-btn:hover, .cb-btn:focus { border-color: #55df0c; color: #232323; }

.cb-archive { display: grid; gap: 12px; }
.cb-year { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 18px; }
.cb-year-link { font-size: 18px; font-weight: 600; color: #232323; min-width: 56px; }
.cb-year-link.is-current { text-decoration: underline; }
.cb-month-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 36px; padding: 4px 12px; border: 1px solid #dcdcdc; border-radius: 999px; font-size: 14px; color: #232323; background: #fff; }
.cb-pill:hover, .cb-pill:focus { border-color: #55df0c; color: #232323; }
.cb-pill.is-current { background: #232323; border-color: #232323; color: #fff; }

.cb-note { margin-top: 30px; padding: 18px 22px; font-size: 14px; color: #555; }
.cb-note p { margin: 0 0 8px; }
.cb-note p:last-child { margin: 0; }
.cb-note a { text-decoration: underline; }

@media (max-width: 991px) {
    .cb-cards, .cb-charts { grid-template-columns: 1fr; }
    .cb-cards { gap: 12px; }
}
@media (max-width: 575px) {
    .cb-section { padding: 24px 0 50px; }
    .cb-h1 { font-size: 23px; }
    .cb-value { font-size: 30px; }
    /* tabelul zilnic pe mobil: fiecare zi e un card cu etichete (data-label) */
    .cb-table thead { display: none; }
    .cb-table, .cb-table tbody, .cb-table tr, .cb-table th, .cb-table td { display: block; width: 100%; }
    .cb-table tr { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; }
    .cb-table tbody th { padding: 0 0 6px; border: 0; }
    .cb-table td { display: flex; justify-content: space-between; padding: 3px 0; border: 0; }
    .cb-table td::before { content: attr(data-label); color: #6f6f6f; font-size: 13px; }
    .cb-table td.cb-num, .cb-table td.cb-src { text-align: left !important; }
}
