/* RichHome bookmark memo V4: desktop-only first-column fix.
 * No effect below 1024px. Existing V3 JS, memo routes and saved data unchanged.
 */
@media screen and (min-width: 1024px) {
  table.rh-bm-order-table-v3 {
    table-layout: auto !important;
    width: 100% !important;
    min-width: 1780px !important;
  }
  table.rh-bm-order-table-v3 > colgroup > col:first-child,
  table.rh-bm-order-table-v3 > col:first-child {
    width: 76px !important;
    min-width: 76px !important;
  }
  table.rh-bm-order-table-v3 thead tr > th:first-child,
  #order-rows tr.rh-bm-order-row-v3 > td.rh-bm-bookmark-cell-v3.rh-bm-flag-only-v3 {
    box-sizing: border-box !important;
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    overflow: visible !important;
    white-space: nowrap !important;
    text-align: center !important;
    vertical-align: middle !important;
  }
  #order-rows tr.rh-bm-order-row-v3 > td.rh-bm-bookmark-cell-v3.rh-bm-flag-only-v3 {
    padding: 3px 4px !important;
  }
  #order-rows tr.rh-bm-order-row-v3 td.rh-bm-bookmark-cell-v3 .rh-bm-flag-control-v3 {
    box-sizing: border-box !important;
    display: inline-flex !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 3px !important;
    margin: 0 !important;
    vertical-align: middle !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #order-rows tr.rh-bm-order-row-v3 td.rh-bm-bookmark-cell-v3 .rh-bookmark-memo-launch {
    position: relative !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: none !important;
    gap: 0 !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 0 !important;
    margin: 0 0 0 3px !important;
    border-radius: 7px !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    font-size: 0 !important;
  }
  #order-rows tr.rh-bm-order-row-v3 td.rh-bm-bookmark-cell-v3 .rh-bookmark-memo-launch[hidden] {
    display: none !important;
  }
  #order-rows tr.rh-bm-order-row-v3 td.rh-bm-bookmark-cell-v3 .rh-bookmark-memo-launch > svg {
    display: block !important;
    flex: 0 0 14px !important;
    width: 14px !important;
    height: 14px !important;
  }
  #order-rows tr.rh-bm-order-row-v3 td.rh-bm-bookmark-cell-v3 .rh-bookmark-memo-launch > .rh-bm-launch-label {
    display: none !important;
  }
  #order-rows tr.rh-bm-order-row-v3 td.rh-bm-bookmark-cell-v3 .rh-bookmark-memo-launch.has-memo > .rh-bm-memo-dot {
    position: absolute !important;
    right: 2px !important;
    bottom: 2px !important;
    display: block !important;
    width: 4px !important;
    height: 4px !important;
  }
  /* Leave the next column's data untouched; reserve its own width. */
  table.rh-bm-order-table-v3 thead tr > th:nth-child(2),
  #order-rows tr.rh-bm-order-row-v3 > td:nth-child(2) {
    min-width: 120px !important;
  }
}

@media screen and (min-width: 1024px) {
  #order-rows tr.rh-bm-order-row-v3 td.rh-bm-bookmark-cell-v3 .rh-bm-flag-control-v3 { flex: 0 0 30px !important; font-size: 14px !important; border-radius: 7px !important; }
  #order-rows tr.rh-bm-order-row-v3 td.rh-bm-bookmark-cell-v3 .rh-bm-flag-control-v3 svg,
  #order-rows tr.rh-bm-order-row-v3 td.rh-bm-bookmark-cell-v3 .rh-bm-flag-control-v3 > i,
  #order-rows tr.rh-bm-order-row-v3 td.rh-bm-bookmark-cell-v3 .rh-bm-flag-control-v3 > img { width:14px !important; height:14px !important; max-width:14px !important; max-height:14px !important; }
}
