/* pogosov.com custom styles on top of Metronic 9 */

/* ---------- stats chips (page header) */
.stat-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.stat-chip { display: flex; flex-direction: column; gap: .1rem; min-width: 5.5rem; padding: .4rem .75rem; border: 1px solid var(--tw-gray-200); border-radius: .5rem; background: var(--tw-light); }
.dark .stat-chip { border-color: var(--tw-gray-300); background: var(--tw-coal-300); }
.stat-chip__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tw-gray-600); }
.stat-chip__value { font-size: .95rem; font-weight: 600; color: var(--tw-gray-900); }

/* ---------- filter bar */
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem .75rem; align-items: end; }
.filters__item { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.filters__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tw-gray-600); line-height: 1; }
.filters .select, .filters .input { width: 100%; }
.filters .input input { min-width: 0; width: 100%; }
.filters__item--date { display: none; }
.filters--custom .filters__item--date { display: flex; }
.filters__item--search { grid-column: 1 / -1; }
.filters__item--actions { grid-column: 1 / -1; }
.filters__item--actions > div { justify-content: space-between; }
@media (min-width: 640px) {
    .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .filters__item--search { grid-column: span 3; }
    .filters__item--actions { grid-column: span 1; }
    .filters__item--actions > div { justify-content: flex-end; }
}
@media (min-width: 1024px) {
    .filters { display: flex; flex-wrap: wrap; }
    .filters__item { flex: 0 0 auto; }
    .filters__item--period { width: 8.5rem; }
    .filters__item--date { width: 10rem; }
    .filters__item--impact { width: 6rem; }
    .filters__item--publisher { width: 12.5rem; }
    .filters__item--merge { width: 8rem; }
    .filters__item--search { flex: 1 1 14rem; min-width: 12rem; }
    .filters__item--actions { margin-inline-start: auto; }
}
.switch .switch-label { margin-inline-start: .4rem; }

/* ---------- news table */
.news-table td { vertical-align: middle; }
.news-table .news-row-hot td:first-child { box-shadow: inset 3px 0 0 var(--tw-danger); }
.news-table a.sort-link { text-decoration: none; }
.news-table tr.details-row > td { background: var(--tw-light); padding: .5rem 1rem; }
.dark .news-table tr.details-row > td { background: var(--tw-coal-300); }
.pubdate__abs { line-height: 1.1; }
.badge.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.show-sm, .show-md { display: none; }
@media (max-width: 767.98px) {
    .hide-sm { display: none !important; }
    .show-sm { display: inline; }
    .news-table .col-headline { min-width: 0 !important; }
    .news-table td:first-child, .news-table th:first-child { width: 40px !important; }
    .stat-chips { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .stat-chip { min-width: 0; }
    .news-table th, .news-table td { padding-left: .5rem; padding-right: .5rem; }
    .news-table .pubdate__abs { display: none; }
}
@media (max-width: 1023.98px) {
    .hide-md { display: none !important; }
    .show-md { display: inline; }
}
.pagination .btn.disabled { pointer-events: none; opacity: .5; }
#refresh-indicator i { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sidebar (collapsed by default, expands on hover like Metronic demo1) */
.sidebar-collapse .sidebar:not(:hover) .menu-heading { visibility: hidden; }

/* ---------- US debt */
#debt-range .btn.active { background: var(--tw-primary); color: #fff; }
#chartdiv { min-height: 320px; }
@media (max-width: 767.98px) { #chartdiv { height: 320px !important; } }
