/* ARA SMART - athlete dashboard shared cards and microcycle page fixes */

body.athlete-dashboard-page {
  background: #f4f6f9;
  color: #0f172a;
}

body.athlete-dashboard-page .ara-athlete-view-title {
  display: none !important;
}

@media (min-width: 861px) {
  body.athlete-dashboard-page.ara-athlete-shell-ready > #topbarMount.container-fullwidth {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: calc(var(--ara-athlete-menu-rail, 268px) + 18px) !important;
    padding-right: 18px !important;
    box-sizing: border-box !important;
  }

  body.athlete-dashboard-page.ara-athlete-shell-ready > #topbarMount .topbar {
    width: 100% !important;
    max-width: none !important;
    margin: 10px 0 0 !important;
  }
}

body.athlete-dashboard-page .athlete-dash-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 18px 58px;
  display: grid;
  gap: 6px;
}

body.athlete-dashboard-page .dashboardCard {
  width: 100%;
  border: 1px solid #dfe5ee;
  border-radius: 18px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 18px 44px rgba(16, 26, 51, .08);
  padding: 22px;
}

body.athlete-dashboard-page .assignHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

body.athlete-dashboard-page .assignHead h2,
body.athlete-dashboard-page .openByIdCard h2 {
  margin: 0;
  color: #061126;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: 0;
}

body.athlete-dashboard-page .countBadge {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffe48a;
  color: #6b4a00;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(224, 168, 0, .18);
}

body.athlete-dashboard-page .assignmentTools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 18px;
}

body.athlete-dashboard-page .searchBox {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d7dfec;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  color: #1e3a8a;
}

body.athlete-dashboard-page .searchBox input,
body.athlete-dashboard-page .openByIdForm input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent !important;
  color: #0f172a !important;
}

body.athlete-dashboard-page .searchBox input::placeholder,
body.athlete-dashboard-page .openByIdForm input::placeholder {
  color: #64748b;
}

body.athlete-dashboard-page .primaryBtn,
body.athlete-dashboard-page .pagerBtn,
body.athlete-dashboard-page .tableOpenBtn {
  min-height: 46px;
  border: 1px solid #cfd7e5;
  border-radius: 12px;
  background: #fff;
  color: #061126;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(224, 168, 0, .08);
}

body.athlete-dashboard-page .primaryBtn:hover,
body.athlete-dashboard-page .pagerBtn:hover,
body.athlete-dashboard-page .tableOpenBtn:hover {
  border-color: #e0a800;
  box-shadow: 0 16px 34px rgba(224, 168, 0, .16);
}

body.athlete-dashboard-page .assignTableWrap {
  overflow: hidden;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  background: #fff;
}

body.athlete-dashboard-page .assignTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

body.athlete-dashboard-page .assignTable th {
  padding: 14px 16px;
  color: #c7cedb;
  text-align: left;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}

body.athlete-dashboard-page .assignTable td {
  padding: 10px 16px;
  min-height: 46px;
  color: #061126;
  font-weight: 800;
  vertical-align: middle;
}

body.athlete-dashboard-page .idPill {
  min-width: 46px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #fff0b8;
  color: #061126;
  font-weight: 950;
}

body.athlete-dashboard-page .coachCell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

body.athlete-dashboard-page .coachCell i {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e7ecf4;
}

body.athlete-dashboard-page .tableOpenBtn {
  min-width: 122px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body.athlete-dashboard-page .assignFooter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

body.athlete-dashboard-page .pageText {
  color: #061126;
  font-weight: 950;
}

body.athlete-dashboard-page .openByIdCard {
  display: grid;
  grid-template-columns: minmax(220px, .44fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 0;
}

body.athlete-dashboard-page .openByIdCard p {
  margin: 6px 0 0;
  color: #334155;
  font-weight: 650;
}

body.athlete-dashboard-page .openByIdForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 12px;
  align-items: stretch;
}

body.athlete-dashboard-page .openByIdForm input {
  border: 1px solid #d7dfec !important;
  border-radius: 12px;
  padding: 0 16px;
  background: #fff !important;
}

body.athlete-dashboard-page:has(#tblAssignments) .searchBox input {
  background: transparent !important;
  color: #0f172a !important;
}

body.athlete-dashboard-page:has(#tblAssignments) .openByIdForm input {
  background: #fff !important;
  border-color: #d7dfec !important;
  color: #0f172a !important;
}

@media (max-width: 900px) {
  body.athlete-dashboard-page .athlete-dash-shell {
    padding: 12px 12px 112px;
  }

  body.athlete-dashboard-page .assignmentTools,
  body.athlete-dashboard-page .assignFooter,
  body.athlete-dashboard-page .openByIdCard,
  body.athlete-dashboard-page .openByIdForm {
    grid-template-columns: 1fr;
  }

  body.athlete-dashboard-page .assignTableWrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  body.athlete-dashboard-page .assignTable,
  body.athlete-dashboard-page .assignTable tbody,
  body.athlete-dashboard-page .assignTable tr,
  body.athlete-dashboard-page .assignTable td {
    display: block;
    width: 100%;
  }

  body.athlete-dashboard-page .assignTable thead {
    display: none;
  }

  body.athlete-dashboard-page .assignTable tbody {
    display: grid;
    gap: 12px;
  }

  body.athlete-dashboard-page .assignTable tr {
    border: 1px solid #dfe5ee;
    border-radius: 16px;
    background: #fff;
    padding: 12px;
  }

  body.athlete-dashboard-page .assignTable td {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
  }

  body.athlete-dashboard-page .assignTable td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
  }

  body[data-theme="light"].athlete-dashboard-page.ara-athlete-mobile-polish,
  body.athlete-dashboard-page.ara-athlete-mobile-polish:not([data-theme="dark"]) {
    background: #f4f6f9 !important;
    color: #0f172a !important;
  }

  body[data-theme="light"].athlete-dashboard-page.ara-athlete-mobile-polish .athlete-dash-shell,
  body.athlete-dashboard-page.ara-athlete-mobile-polish:not([data-theme="dark"]) .athlete-dash-shell {
    background: #f4f6f9 !important;
  }

  body[data-theme="light"].athlete-dashboard-page.ara-athlete-mobile-polish .dashboardCard,
  body.athlete-dashboard-page.ara-athlete-mobile-polish:not([data-theme="dark"]) .dashboardCard {
    background: #fff !important;
    color: #0f172a !important;
    border-color: #dfe5ee !important;
    box-shadow: 0 18px 44px rgba(16, 26, 51, .08) !important;
  }

  body[data-theme="light"].athlete-dashboard-page.ara-athlete-mobile-polish .assignHead h2,
  body[data-theme="light"].athlete-dashboard-page.ara-athlete-mobile-polish .openByIdCard h2,
  body.athlete-dashboard-page.ara-athlete-mobile-polish:not([data-theme="dark"]) .assignHead h2,
  body.athlete-dashboard-page.ara-athlete-mobile-polish:not([data-theme="dark"]) .openByIdCard h2 {
    color: #061126 !important;
  }

  body[data-theme="light"].athlete-dashboard-page.ara-athlete-mobile-polish .searchBox,
  body[data-theme="light"].athlete-dashboard-page.ara-athlete-mobile-polish .openByIdForm input,
  body.athlete-dashboard-page.ara-athlete-mobile-polish:not([data-theme="dark"]) .searchBox,
  body.athlete-dashboard-page.ara-athlete-mobile-polish:not([data-theme="dark"]) .openByIdForm input {
    background: #fff !important;
    border-color: #d7dfec !important;
    color: #0f172a !important;
  }

  body[data-theme="light"].athlete-dashboard-page.ara-athlete-mobile-polish .searchBox input,
  body.athlete-dashboard-page.ara-athlete-mobile-polish:not([data-theme="dark"]) .searchBox input {
    color: #0f172a !important;
  }

  body[data-theme="light"].athlete-dashboard-page.ara-athlete-mobile-polish .primaryBtn,
  body[data-theme="light"].athlete-dashboard-page.ara-athlete-mobile-polish .pagerBtn,
  body[data-theme="light"].athlete-dashboard-page.ara-athlete-mobile-polish .tableOpenBtn,
  body.athlete-dashboard-page.ara-athlete-mobile-polish:not([data-theme="dark"]) .primaryBtn,
  body.athlete-dashboard-page.ara-athlete-mobile-polish:not([data-theme="dark"]) .pagerBtn,
  body.athlete-dashboard-page.ara-athlete-mobile-polish:not([data-theme="dark"]) .tableOpenBtn {
    background: #fff !important;
    border-color: #cfd7e5 !important;
    color: #061126 !important;
  }

  body[data-theme="light"].athlete-dashboard-page.ara-athlete-mobile-polish .assignTable tr,
  body.athlete-dashboard-page.ara-athlete-mobile-polish:not([data-theme="dark"]) .assignTable tr {
    background: #fff !important;
    border-color: #dfe5ee !important;
    color: #061126 !important;
    box-shadow: 0 10px 24px rgba(16, 26, 51, .06) !important;
  }

  body[data-theme="light"].athlete-dashboard-page.ara-athlete-mobile-polish .assignTable td,
  body.athlete-dashboard-page.ara-athlete-mobile-polish:not([data-theme="dark"]) .assignTable td {
    color: #061126 !important;
    border-bottom-color: #e5eaf2 !important;
  }

  body[data-theme="light"].athlete-dashboard-page.ara-athlete-mobile-polish .assignTable td::before,
  body.athlete-dashboard-page.ara-athlete-mobile-polish:not([data-theme="dark"]) .assignTable td::before {
    color: #64748b !important;
  }

  body[data-theme="light"].athlete-dashboard-page.ara-athlete-mobile-polish .coachCell i,
  body.athlete-dashboard-page.ara-athlete-mobile-polish:not([data-theme="dark"]) .coachCell i {
    background: #e7ecf4 !important;
  }

  body[data-theme="light"].athlete-dashboard-page.ara-athlete-mobile-polish .openByIdCard p,
  body.athlete-dashboard-page.ara-athlete-mobile-polish:not([data-theme="dark"]) .openByIdCard p {
    color: #334155 !important;
  }
}
