/* A.R.M.S v205.44 — Daily Board Remarks table stability
   Keeps Remarks as a real three-column table on every viewport and prevents
   the global UI zebra rules from mixing white rows into Night Mode. */

html body[data-active-view="DAILY"] .daily37-special.remarks {
  overflow: hidden !important;
}

html body[data-active-view="DAILY"] .daily37-special.remarks > .arms-v151-auto-table-wrap,
html body[data-active-view="DAILY"] .daily37-special.remarks > .tbl-wrap {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 213, 255, .72) rgba(7, 20, 38, .42);
}

html body[data-active-view="DAILY"] .daily37-special.remarks > .arms-v151-auto-table-wrap::after,
html body[data-active-view="DAILY"] .daily37-special.remarks > .tbl-wrap::after {
  content: none !important;
  display: none !important;
}

html body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table {
  display: table !important;
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 0 !important;
}

html body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table thead {
  display: table-header-group !important;
}

html body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table tbody {
  display: table-row-group !important;
}

html body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table tr {
  display: table-row !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table th,
html body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table td {
  display: table-cell !important;
  width: 33.3333% !important;
  max-width: none !important;
  text-align: left !important;
  vertical-align: top !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table td::before,
html body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table td::after {
  content: none !important;
  display: none !important;
}

/* Night Mode: a restrained navy zebra, never white. */
html body:not([data-theme="light"])[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table tbody tr:nth-child(odd) > td,
html:not([data-theme="light"]) body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table tbody tr:nth-child(odd) > td,
html body[data-theme="dark"][data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table tbody tr:nth-child(odd) > td {
  background: #071426 !important;
  background-color: #071426 !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  border-color: rgba(125, 211, 252, .18) !important;
}

html body:not([data-theme="light"])[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table tbody tr:nth-child(even) > td,
html:not([data-theme="light"]) body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table tbody tr:nth-child(even) > td,
html body[data-theme="dark"][data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table tbody tr:nth-child(even) > td {
  background: #0b2038 !important;
  background-color: #0b2038 !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  border-color: rgba(125, 211, 252, .18) !important;
}

/* Day Mode: white and baby-blue rows, matching the approved sidebar palette. */
html body[data-theme="light"][data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table tbody tr:nth-child(odd) > td {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  border-color: rgba(15, 95, 168, .18) !important;
}

html body[data-theme="light"][data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table tbody tr:nth-child(even) > td {
  background: #edf8ff !important;
  background-color: #edf8ff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  border-color: rgba(15, 95, 168, .18) !important;
}

html body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table tbody tr:hover > td {
  background: #123453 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html body[data-theme="light"][data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table tbody tr:hover > td {
  background: #dff3ff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

@media (max-width: 760px) {
  html body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table {
    display: table !important;
    width: 720px !important;
    min-width: 720px !important;
    table-layout: fixed !important;
  }

  html body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table th,
  html body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table td {
    display: table-cell !important;
    width: 240px !important;
    min-width: 240px !important;
    padding: 10px 12px !important;
    font-size: 11px !important;
  }

  html body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table th {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
  }
}

@media (max-width: 390px) {
  html body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table {
    width: 660px !important;
    min-width: 660px !important;
  }

  html body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table th,
  html body[data-active-view="DAILY"] .daily37-special.remarks .daily37-remark-table td {
    width: 220px !important;
    min-width: 220px !important;
  }
}
