/* Control deck and history of the Dataset page (admin-deck.js). */
.dk-deck, .dk-history { padding: 20px 22px !important; color: #15211c; }
.dk-deck { margin-top: 18px; }
.dk-faint { color: #5d6c65; font-size: 12.5px; }
.dk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dk-kicker { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #5d6c65; }
body[data-page] .dk-title { margin: 2px 0 4px; font-size: 22px; line-height: 1.25; font-weight: 650; }
.dk-sub { margin: 0; color: #5d6c65; font-size: 13px; }
.dk-sub b { color: #15211c; font-weight: 600; }
.dk-state { flex: none; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.dk-state.is-ok { background: #e7f5ee; color: #11724f; }
.dk-state.is-warning { background: #fdf3e2; color: #8a5a12; }
.dk-state.is-error { background: #fbeaea; color: #b42f2b; }
.dk-notices { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.dk-notices li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 10px; background: #fbf8f3; border: 1px solid #f1e3cc; }
.dk-notices p { margin: 3px 0 0; font-size: 13px; color: #33423c; overflow-wrap: anywhere; }
.dk-action { color: #5d6c65 !important; font-size: 12.5px !important; }
.dk-action a { color: #1859cc; }
.dk-tag { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11px; font-weight: 700; white-space: nowrap; height: fit-content; }
.dk-tag.is-error { background: #fbeaea; color: #b42f2b; }
.dk-tag.is-warning { background: #fdf3e2; color: #8a5a12; }
.dk-tag.is-action { background: #fff1e6; color: #c2410c; }
.dk-tag.is-ok { background: #e7f5ee; color: #11724f; }
.dk-tag.is-muted { background: #f1f3f5; color: #5b6b78; }
.dk-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.dk-tile { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(83,103,94,.16); background: #fff; position: relative; overflow: hidden; }
.dk-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #2f9e6f; }
.dk-tile.is-warning::before { background: #e3a12f; }
.dk-tile-label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #5d6c65; }
.dk-tile strong { font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; }
.dk-tile-sub { font-size: 12px; color: #5d6c65; }
.dk-jobs { margin-top: 14px; }
.dk-jobs > summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.dk-jobs table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.dk-jobs th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #5d6c65; font-weight: 600; padding: 4px 8px 6px 0; }
.dk-jobs td { padding: 6px 8px 6px 0; border-top: 1px solid rgba(83,103,94,.12); }
.dk-history { margin-top: 18px; }
.dk-history-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
body[data-page] .dk-history-head h2 { margin: 0; font-size: 18px; }
.dk-history-head p { margin: 2px 0 0; }
.dk-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-filters button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(83,103,94,.28); background: #fff; font: inherit; font-size: 12.5px; cursor: pointer; color: #15211c; }
.dk-filters button.is-on { background: #15211c; color: #fff; border-color: #15211c; }
.dk-history-list { margin-top: 12px; max-height: 560px; overflow-y: auto; }
.dk-day h4 { margin: 12px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #5d6c65; position: sticky; top: 0; background: #fff; padding: 4px 0; }
.dk-day ul { list-style: none; margin: 0; padding: 0; }
.dk-day li { display: grid; grid-template-columns: 44px 10px 74px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid rgba(83,103,94,.1); font-size: 13px; }
.dk-time { color: #5d6c65; font-variant-numeric: tabular-nums; }
.dk-dot { width: 8px; height: 8px; border-radius: 50%; background: #b6c0c8; align-self: center; }
.dk-day li.is-ok .dk-dot { background: #2f9e6f; }
.dk-day li.is-warning .dk-dot { background: #e3a12f; }
.dk-day li.is-error .dk-dot { background: #d4504b; }
.dk-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5d6c65; }
.dk-what b { font-weight: 600; }
@media (max-width: 1100px) { .dk-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .dk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-head { flex-direction: column; }
  .dk-day li { grid-template-columns: 40px 10px minmax(0, 1fr); }
  .dk-kind { display: none; }
}
body[data-page] .dk-history, body[data-page] .dk-deck { background: #fff !important; }
body[data-page] .dk-history-head h2 { border: 0 !important; padding: 0 !important; }
