/* /dividend-calendar/ (pipeline/pages/divcal.py) */
.dc-stats .stat-value.dc-upd { font-size: 20px; }

/* two weeks, Monday to Friday */
.dc-wk { margin: 18px 0 8px; font: 600 15.5px var(--font); color: var(--ink-2); }
.dc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.dc-d { background: var(--surface); border-radius: 18px; padding: 12px 14px 14px; box-shadow: var(--shadow); min-width: 0; }
.dc-d[data-day] { cursor: pointer; }
.dc-d[data-day]:hover, .dc-d[data-day]:focus-visible { box-shadow: var(--shadow-lg); outline: none; }
.dc-d.is-today { box-shadow: inset 0 0 0 2px var(--solid), var(--shadow); }
.dc-d.is-past { opacity: .62; }
.dc-dh { display: flex; align-items: baseline; gap: 6px; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.dc-dh b { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.dc-n { margin-left: auto; font: 600 12.5px/1 var(--font); color: var(--solid-ink); background: var(--solid); border-radius: 999px; padding: 4px 8px; }
.dc-d ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dc-d li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.dc-d li a { font-weight: 600; color: var(--ink); text-decoration: none; }
.dc-d li a:hover { color: var(--accent-ink); text-decoration: underline; }
.dc-d li .num { color: var(--ink-2); font-family: var(--mono); font-size: 13px; letter-spacing: -0.03em; }
.dc-d .dc-more { color: var(--accent-ink); font-weight: 500; }
.dc-closed, .dc-empty { margin: 0; font-size: 13px; color: var(--muted); }

/* table */
.dc-bar { gap: 8px 10px; }
.dc-sel { font: 500 15px var(--font); color: var(--ink); background: var(--surface); border: 0; border-radius: 999px; padding: 11px 14px; box-shadow: var(--shadow); max-width: 100%; }
.dc-search { min-width: min(100%, 220px); flex: 1 1 200px; max-width: 320px; }
.dc-count { margin: 0 0 10px; }
.dc-reset[hidden] { display: none; }
.dc-table td, .dc-table th, .dc-ch td, .dc-ch th { padding: 9px 12px; }
.dc-table th:first-child, .dc-table td:first-child { padding-left: 18px; }
.dc-table .dc-co, .dc-ch .dc-co, .dc-table .dc-kind, .dc-table .dc-chg, .dc-table .dc-s, .dc-ch td:nth-child(4), .dc-ch th:nth-child(4), .dc-ch .dc-s { text-align: left; }
.dc-dayrow th { text-align: left; background: var(--track); color: var(--ink-2); font: 600 14px var(--font); padding: 8px 18px; position: static; }
.dc-table tbody tr.dc-dayrow:hover { background: var(--track); }
.dc-tk { font-weight: 650; color: var(--ink); text-decoration: none; margin-right: 8px; }
.dc-tk:hover { color: var(--accent-ink); text-decoration: underline; }
.dc-name { color: var(--ink-2); font-size: 14.5px; white-space: normal; }
.dc-co { max-width: 300px; white-space: normal; }
.dc-cls { color: var(--muted); font-size: 13px; }
.dc-amt { font-weight: 600; font-family: var(--mono); letter-spacing: -0.03em; }
.dc-ann { color: var(--ink-2); font-family: var(--mono); letter-spacing: -0.03em; }
.dc-ex { font-weight: 600; }
.dc-kind, .dc-dec, .dc-pay { color: var(--ink-2); }
.dc-chg .pill, .dc-ch .pill { padding: 5px 9px; font-size: 13.5px; }
.dc-tag { display: inline-block; font: 600 12.5px/1 var(--font); color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 5px 9px; }
.dc-same, .dc-dash { color: var(--muted); font-size: 14px; }
.dc-src { color: var(--accent-ink); font-size: 14px; }
tr.dc-past { opacity: .7; }
tr.dc-exp td { color: var(--muted); }
tr.dc-exp .dc-tk, tr.dc-exp .dc-name { color: var(--ink-2); }
tr.dc-exp .dc-amt { font-weight: 500; }
.dc-est { color: var(--muted); font-size: 13.5px; font-style: italic; }
.dc-d li.is-exp a, .dc-d li.is-exp .num { color: var(--muted); font-weight: 500; }
.dc-exp-tg { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.dc-exp-tg input { width: 16px; height: 16px; accent-color: var(--solid); }
.dc-missing { line-height: 1.9; }
.dc-missing a { white-space: nowrap; }
.dc-how ul, .dc-more ul { padding-left: 20px; display: grid; gap: 8px; }

@media (max-width: 900px) {
  .dc-grid { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
  .dc-d { scroll-snap-align: start; }
  .dc-table .dc-dec, .dc-table .dc-ann { display: none; }
}
@media (max-width: 600px) {
  .dc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc-table .dc-kind, .dc-table .dc-s { display: none; }
  .dc-co { max-width: 180px; }
  .dc-name { display: block; font-size: 13px; }
  .dc-search { max-width: none; }
}
