main { min-width: 0; }
.riman-grid { max-height: 63vh; }
.riman-grid table { width: max-content; min-width: 100%; border-spacing: 0; }
.riman-grid thead th { position: sticky; top: 0; z-index: 2; background: #dce8f5; color: #122439; }
.riman-grid tbody td, .riman-grid tbody th { background: #fff; color: #16283b; }
.riman-grid tbody a { color: #164d7c; }
.riman-grid tbody tr:nth-child(even) td { background: #f3f7fb; color: #16283b; }
.riman-grid tbody tr td:first-child, .riman-grid tbody th:first-child { position: sticky; left: 0; background: #fff; }
.riman-grid thead th:first-child { position: sticky; left: 0; z-index: 3; }
.riman-grid td, .riman-grid th { border-inline-end: 1px solid #d6e0ea; }
.riman-grid th { white-space: nowrap; }
.riman-wide thead tr:nth-child(2) th { top: 2.65rem; }
.riman-grid tr[data-state="Production at risk"] td { background: #fff0e7; color: #751d07; }
.riman-grid tr[data-state="Verified actual"] td { background: #e7f5ee; color: #114b29; }
.riman-grid td:focus-visible { outline: 2px solid #155a9c; outline-offset: -3px; }
#riman-filter { margin-inline-end: .6rem; }
@media(max-width: 650px) {
  .riman-grid { max-height: 55vh; }
  main form label { display: block; margin-block: .5rem; }
  main form select, main form input[type=date], main form textarea { width: min(100%, 27rem); }
  main form button { min-height: 2.75rem; }
}


.riman-wide thead tr:nth-child(2) th { top: 2.6rem; background: #dce7ef; }
.riman-wide thead tr:nth-child(3) th { top: 5.2rem; background: #edf3f8; }
.riman-wide thead tr:nth-child(3) th[data-fill="D1FFFF"] { background: #d1ffff; }
.riman-wide thead tr:nth-child(3) th[data-fill="DBFFC9"] { background: #dbffc9; }
.riman-wide thead tr:nth-child(3) th[data-fill="E4DFEC"] { background: #e4dfec; }
.riman-wide thead tr:nth-child(3) th[data-fill="FF0000"] { background: #ea6666; color: #151416; }
.riman-wide thead tr:nth-child(3) th[data-fill="FFFF99"] { background: #ffff99; }
.riman-column-normal { min-width: 8rem; }
.riman-column-wide { min-width: 11rem; }
.riman-column-long { min-width: 14rem; }


.ezio-nav, .ezio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block: 0 1rem;
}
.ezio-nav a, .ezio-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .45rem .8rem;
  border: 1px solid var(--edge);
  border-radius: .5rem;
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
}
.ezio-nav a[aria-current="page"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #19222d;
}
.ezio-nav a:hover, .ezio-actions a:hover { border-color: var(--brand); }
.ezio-nav a:focus-visible, .ezio-actions a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ezio-panel { min-width: 0; }
.ezio-panel > h2 { margin-top: 0; }
.ezio-order-list { padding-inline-start: 1.25rem; }
.ezio-order-list a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 650px) {
  .ezio-nav, .ezio-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.ezio-tracker-controls { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.ezio-tracker-controls form { margin: 0; }
.ezio-tracker-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,21rem),1fr)); gap: .8rem; align-items: start; }
.ezio-tracker-cards section { min-width: 0; margin: 0; padding: 1rem; border-radius: .65rem; }
.ezio-tracker-cards h3 { margin: 0; }
.ezio-count { display: inline-block; margin-inline-start: .3rem; font-size: .85em; color: var(--muted); }
.ezio-tracker-cards ul { list-style: none; padding: 0; }
.ezio-tracker-cards li { padding: .6rem 0; border-bottom: 1px solid var(--edge); }
.ezio-tracker-cards li p { margin: .25rem 0; }
.ezio-date-pair { color: var(--muted); }
.ezio-label { display: inline-block; padding: .15rem .4rem; border-radius: .2rem; background: #fff; color: #172634; font-weight: 650; }
.ezio-label[data-ezio-tone="forecast-good"], .riman-grid tbody tr td[data-ezio-tone="forecast-good"] { color: #00b050; background: #fff; }
.ezio-label[data-ezio-tone="forecast-warning"], .riman-grid tbody tr td[data-ezio-tone="forecast-warning"] { color: #f00; background: #ffc000; }
.ezio-label[data-ezio-tone="forecast-late"], .riman-grid tbody tr td[data-ezio-tone="forecast-late"] { color: #fff; background: #f00; }
.ezio-label[data-ezio-tone="forecast-untriggered"], .riman-grid tbody tr td[data-ezio-tone="forecast-untriggered"] { color: #fff; background: #8064a2; }
.ezio-label[data-ezio-tone="upcoming"], .riman-grid tbody tr td[data-ezio-tone="upcoming"] { color: #000; background: #ffc000; }
.ezio-label[data-ezio-tone="late-text"], .riman-grid tbody tr td[data-ezio-tone="late-text"] { color: #f00; background: #fff; }
.ezio-label[data-ezio-tone="missing"], .riman-grid tbody tr td[data-ezio-tone="missing"] { color: #000; background: #ff0; }
.ezio-label[data-ezio-tone="waived"], .riman-grid tbody tr td[data-ezio-tone="waived"] { color: #000; background: #bfbfbf; }
.ezio-label[data-ezio-tone="chronology"], .riman-grid tbody tr td[data-ezio-tone="chronology"] { color: #ff0; background: #000; }
.riman-grid tbody tr td[data-ezio-tone="chronology-late"] { color: #f00; background: #000; }
.riman-grid tbody tr td[data-ezio-tone] a { color: inherit; text-decoration: underline; }

.ezio-label[data-ezio-tone="missing-with-red"], .riman-grid tbody tr td[data-ezio-tone="missing-with-red"] { color: #f00; background: #ff0; }
.ezio-label[data-ezio-tone="missing-pale"], .riman-grid tbody tr td[data-ezio-tone="missing-pale"] { color: #000; background: #ffff99; }
.ezio-label[data-ezio-tone="missing-pale-with-red"], .riman-grid tbody tr td[data-ezio-tone="missing-pale-with-red"] { color: #f00; background: #ffff99; }

.ezio-dashboard-filters { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; margin-bottom: 1rem; }
.ezio-dashboard-filters label { display: grid; gap: .25rem; min-width: 0; }
.ezio-dashboard-filters input, .ezio-dashboard-filters select { max-width: 100%; }
@media(max-width:650px) {
  .ezio-dashboard-filters { display: grid; grid-template-columns: minmax(0,1fr); }
}

.with-sidebar > main { width: 100%; margin: 0; }

.ezio-workspace-credit { margin-block: .25rem .65rem; color: var(--muted); font-size: .8rem; }
