/* Rider presentation only. No admin, export, print, data or permission rules. */
@media screen {
  #rider #rider-baemin-activity > .ba-activity-rider {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  #rider #rider-baemin-activity > .ba-activity-rider::before {
    position: absolute;
    z-index: 1;
    top: 13px;
    left: 0;
    width: 3px;
    height: 29px;
    border-radius: 0 4px 4px 0;
    background: #3970cd;
    content: '';
  }
  #rider #rider-baemin-activity > .ba-activity-rider > summary {
    min-height: 54px !important;
    padding: 13px 17px !important;
    list-style: none;
    line-height: 1.6;
    cursor: pointer;
    -webkit-appearance: none;
  }
  #rider #rider-baemin-activity > .ba-activity-rider > summary::marker { content: ''; }
  #rider #rider-baemin-activity > .ba-activity-rider > summary::-webkit-details-marker { display: none; }
  #rider #rider-baemin-activity > .ba-activity-rider > summary::after {
    color: #3970cd !important;
    background: #eff5ff !important;
  }
  #rider #rider-baemin-activity > .ba-activity-rider[open] > summary { border-bottom: 1px solid #e8eef5; }
  #rider #rider-baemin-activity > .ba-activity-rider > .ba-activity { padding: 16px 17px 14px; }
  #rider #rider-baemin-activity .ba-activity-query {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
  }
  #rider #rider-baemin-activity .ba-activity-query > label {
    min-width: 0;
    max-width: none;
    width: auto;
    margin: 0;
    color: #61748f;
    font-size: 13px;
    line-height: 1.5;
  }
  #rider #rider-baemin-activity [data-ba-rider-week] {
    min-width: 0;
    min-height: 44px;
    margin: 0;
    border-color: #d6e2f0;
    color: #25466f;
    font-size: 13px;
  }
  #rider #rider-baemin-activity [data-ba-rider-reload] {
    justify-self: end;
    flex: 0 0 auto;
    width: auto !important;
    min-width: 0;
    min-height: 44px;
    height: auto;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #d6e2f0;
    border-radius: 10px;
    color: #365b88;
    background: #f7faff;
    box-shadow: none;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
    white-space: nowrap;
  }
  #rider #rider-baemin-activity [data-ba-rider-reload]:focus-visible {
    outline: 3px solid #7bb4d8;
    outline-offset: 3px;
  }
  @media (max-width: 480px) {
    #rider #rider-baemin-activity > .ba-activity-rider > .ba-activity { padding: 14px 14px 12px; }
    #rider #rider-baemin-activity .ba-activity-query { grid-template-columns: minmax(0, 1fr); }
    #rider #rider-baemin-activity [data-ba-rider-reload] { padding: 8px 12px; }
  }
}

/* Rider week selector presentation only; no admin, data or calculation rules. */
@media screen {
  #rider #rider-baemin-activity .ba-activity-query {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  #rider #rider-baemin-activity .ba-activity-week-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
  }
  #rider #rider-baemin-activity .ba-activity-week-head > label {
    min-width: 0;
    margin: 0;
    color: #61748f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
  }
  #rider #rider-baemin-activity .ba-activity-week-head > [data-ba-rider-reload] {
    flex: 0 0 auto;
    margin: 0;
    min-height: 44px;
    padding: 8px 12px;
  }
  #rider #rider-baemin-activity .ba-activity-query > [data-ba-rider-week] {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }
  #rider #rider-baemin-activity .ba-activity-period-heading {
    margin: 14px 0 4px;
    color: #365b88;
    font-weight: 700;
  }
  #rider #rider-baemin-activity .ba-activity-counted-dates {
    margin: 0 0 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }
}

/* Rider activity heading typography consistency. */
@media screen {
  #rider .rider-monthly-report-settings > .rider-monthly-report-header > span {
    font-weight: 760;
    color: #253a58;
  }
}

/* Monthly report heading and summary share a clear reading edge. */
@media screen {
  #rider .rider-monthly-report-settings > .rider-monthly-report-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-content: start;
    gap: 6px;
    padding: 14px 17px;
    text-align: left;
  }
  #rider .rider-monthly-report-settings > .rider-monthly-report-header > small {
    width: 100%;
    margin: 0;
    text-align: left;
    line-height: 1.6;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  @media (min-width: 761px) {
    #rider .rider-monthly-report-settings > .rider-monthly-report-header {
      display: flex;
      align-items: baseline;
      justify-content: flex-start;
      gap: 8px 18px;
    }
    #rider .rider-monthly-report-settings > .rider-monthly-report-header > small {
      flex: 0 1 auto;
      width: auto;
    }
  }
}
