/* =========================================================
       CSS VARIABLES — DESIGN SYSTEM (from your theme)
       ========================================================= */
:root {
  --accent: #5a83d3;
  --body: #e9ebf3;
  --dashboard: #d1d4df;
  --sidebar: #eaecf2;
  --card: #fcfcfc;
  --sidebarActive: #dde2ee;
  --iconBackground: #f0f0f6;
  --inputBackground: #fcfcfc;
  --tableHeader: #f9f7fb;
  --textPrimary: #000000;
  --textSecondary: #212529b2;
  --textAccent: #4c78ce;
  --textMuted: #6b7280;
  --borderLight: #ebe7e7;
  --cardBorder: #dee1e7;
  --inputBorder: #e4e3eb;
  --cardShadow: 0px 16px 20px -13px #00000026;
  --shadow2:
    0px 2px 4px 0px #b5b5b51a, 0px 8px 8px 0px #b5b5b517,
    0px 18px 11px 0px #b5b5b50d, 0px 31px 12px 0px #b5b5b503,
    0px 49px 14px 0px #b5b5b500;
  --shadow3:
    0px 0px 4px 0px #b5b5b51a, 0px 2px 4px 0px #b5b5b517,
    0px 8px 4px 0px #b5b5b50d, 0px 12px 4px 0px #b5b5b503,
    0px 45px 14px 0px #b5b5b500;
  --btnPrimaryBg: #5a83d3;
  --btnPrimaryBorder: #2d5ebb;
  --btnPrimaryColor: #ffffff;
  --btnSecondaryBg: #f4f7fa;
  --btnSecondaryBorder: #ebe7e7;
  --btnSecondaryColor: #212529b2;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --sidebarWidth: 245px;
  --dashboardMaxWidth: 1440px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
}

/* =========================================================
       BASE
       ========================================================= */
@font-face {
  font-family: "Helvetica Neue";
  src: url(./assets/fonts/HelveticaNeueRoman.otf) format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url(./assets/fonts/HelveticaNeueBold.otf) format("opentype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url(./assets/fonts/HelveticaNeueMedium.otf) format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url(./assets/fonts/RalewayVariableFont.ttf) format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html,
body {
  height: 100%;
  overflow-y: auto;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--body);
  color: var(--textPrimary);
  font-size: 16px;
  line-height: 20px;
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 63px 48px;
  min-height: auto;
}

/* =========================================================
       LAYOUT
       ========================================================= */
.app-layout {
  display: flex;
  /* min-height: 100vh; */
  max-width: var(--dashboardMaxWidth);
  margin: 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0px 6px 20px 0px #0000001f;
  min-height: 100%;
}

/* =========================================================
       DESKTOP SIDEBAR
       ========================================================= */
.sidebar {
  width: var(--sidebarWidth);
  background-color: var(--sidebar);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 0px 0 16px 0;
  border-right: 1px solid #dfe3e9;
}

.sidebar-brand {
  text-align: center;
  margin-bottom: 24px;
  padding: 10px;
  border-bottom: 1px solid #f4f7fa;
}

.sidebar-brand img {
  max-width: 63px;
  height: auto;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.sidebar-nav-item {
  margin-bottom: 2px;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12.5px 20px;
  color: var(--textSecondary);
  text-decoration: none;
  font-size: 16px;
  line-height: 20px;
  font-weight: var(--fw-medium);
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
  border-radius: 0;
  margin-left: 10px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.sidebar-nav-link:hover {
  /* background-color: rgba(0, 0, 0, 0.03); */
  background-color: var(--sidebarActive);
  /* color: var(--textPrimary); */
}

.sidebar-nav-link.active {
  background-color: var(--sidebarActive);
  color: var(--textAccent);
  font-weight: var(--fw-medium);
}

.sidebar-nav-link i,
.sidebar-nav-link svg {
  font-size: 20px;
  width: 25px;
  text-align: center;
  flex-shrink: 0;
  color: #000;
}
.sidebar-nav-link.active svg {
  color: var(--textAccent);
}

/* =========================================================
       MOBILE SIDEBER DRAWER
       ========================================================= */
.mobile-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.show {
  display: block;
  opacity: 1;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background-color: var(--sidebar);
  z-index: 1050;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 20px 0 16px 0;
  overflow-y: auto;
}

.mobile-sidebar.open {
  transform: translateX(0);
}

.mobile-sidebar .sidebar-brand {
  text-align: left;
  padding: 0 20px;
  margin-bottom: 20px;
}

.mobile-sidebar .sidebar-brand img {
  max-width: 80px;
}

.mobile-sidebar .sidebar-nav-link {
  padding: 12px 20px;
  font-size: 16px;
}

.mobile-sidebar .sidebar-nav-link i,
.mobile-sidebar .sidebar-nav-link svg {
  font-size: 20px;
  width: 28px;
}

.mobile-sidebar-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--textSecondary);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* =========================================================
       MAIN CONTENT
       ========================================================= */
.main-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* =========================================================
       PAGE HEADER
       ========================================================= */
.page-header {
  background-color: #fcfcfd;
  padding: 21px 27px;
  border: 1px solid var(--borderLight);
  border-inline: none;
}

.page-header-title {
  font-size: 35px;
  line-height: 45px;
  letter-spacing: -0.3px;
  font-weight: var(--fw-bold);
  margin: 0;
}

.page-header-subtitle {
  font-size: 16px;
  line-height: 20px;
  color: var(--textSecondary);
  margin: 2px 0 0 0;
}

.page-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.page-header-notification {
  background: transparent;
  border: none;
  padding: 6px;
  color: black;
  position: relative;
  cursor: pointer;
  transition: all 0.15s ease;
}
.page-header-notification svg {
  width: 28px;
  height: 28px;
}
.page-header-notification:hover {
  color: var(--textAccent);
}
.header-notification-count {
  position: absolute;
  min-width: 21px;
  min-height: 21px;
  background-color: var(--textAccent);
  border-radius: 50px;
  color: #fff;
  font-size: 10.15px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -4px;
  right: -1px;
  font-variant: tabular-nums;
  text-box-trim: trim-both;
  padding: 5px;
  height: 21px;
}
.page-header-profile-btn {
  background: var(--textAccent);
  width: 51px;
  height: 51px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  line-height: 25px;
  cursor: pointer;
  border: none;
}
/* =========================================================
       DATE PICKER
       ========================================================= */

.date-picker-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  background-color: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  overflow: hidden;
}

.date-picker-wrapper:hover {
  box-shadow: var(--shadow2);
  border-color: #9ca3af;
}

.date-picker-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 10px;
}

.date-picker-main i {
  color: var(--textSecondary);
}

.date-picker-main svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #000;
}

.date-picker-chevron i {
  color: var(--textPrimary);
  transition: transform 0.2s ease;
  font-size: 14px;
}

.date-picker-wrapper.picker-open .date-picker-chevron i {
  transform: rotate(180deg);
}

#dateDisplay {
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  color: var(--textSecondary);
  flex: 1;
}

.date-picker-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-left: 1px solid var(--borderLight);
}

.date-picker-chevron svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #000;
  transition: transform 0.2s ease;
}

.date-picker-wrapper.picker-open .date-picker-chevron svg {
  transform: rotate(180deg);
}

.date-picker-input,
#dateInput {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0;
  z-index: 2;
}

/* =========================================================
       BODY CONTENT
       ========================================================= */
.body-content {
  padding: 30px 27px 37px;
  background-image: url(./assets/images/background-body.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: #f4f6f8;
  flex: 1;
}

/* =========================================================
       MOBILE BOTTOM NAV
       ========================================================= */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card);
  border-top: 1px solid var(--cardBorder);
  padding: 10px 12px 20px 12px;
  z-index: 1000;
  height: 80px;
  box-shadow: 0px 10px 25px 10px #0000001a;
}

.mobile-bottom-nav-list {
  display: flex;
  justify-content: space-between;
  align-items: start;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #7c7c7c;
  font-size: 10px;
  line-height: 14px;
  padding: 4px 8px;
  transition: color 0.15s ease;
  font-weight: var(--fw-medium);
  text-align: center;
}

.mobile-bottom-nav-link i {
  font-size: 20px;
}
.mobile-bottom-nav-link svg {
  width: 25px;
  height: 25px;
  color: black;
}

.mobile-bottom-nav-link.active,
.mobile-bottom-nav-link:has(a.active),
.mobile-bottom-nav-link.active svg,
.mobile-bottom-nav-link:has(a.active) svg {
  color: var(--textAccent);
}
.dropdown-menu.dropdown-globe-menu {
  background: #fefefe;
  border: 1px solid #ebe7e7;
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow3);
}
.dropdown-menu.dropdown-globe-menu li:not(:last-child) {
  margin-bottom: 3px;
}
.dropdown-menu.dropdown-globe-menu li a,
.dropdown-menu.dropdown-globe-menu li button {
  padding: 8px 10px;
  display: flex;
  border-radius: 6px;
  gap: 10px;
  font-size: 16px;
  line-height: 20px;
  color: var(--textSecondary);
  transition: all 0.15s ease;
}
.dropdown-menu.dropdown-globe-menu li a svg,
.dropdown-menu.dropdown-globe-menu li button svg {
  width: 20px;
  height: 20px;
}
.dropdown-menu.dropdown-globe-menu li a.active,
.dropdown-menu.dropdown-globe-menu li button.active {
  background-color: var(--sidebarActive);
  color: var(--textAccent);
}
.dropdown-menu.dropdown-globe-menu li a:hover,
.dropdown-menu.dropdown-globe-menu li button:hover {
  background-color: var(--sidebarActive)!important;
  color: var(--textAccent);
}
.dropdown-menu.dropdown-globe-menu li a:active,
.dropdown-menu.dropdown-globe-menu li button:active {
  background-color: #cdd6ec;
}
.dropdown-menu.dropdown-globe-menu li a.delete-link,
.dropdown-menu.dropdown-globe-menu li a.active.delete-link,
.dropdown-menu.dropdown-globe-menu li button.delete-link,
.dropdown-menu.dropdown-globe-menu li button.active.delete-link {
  color: #d54248;
}

/* =========================================================
       MOBILE TOP BAR (logo bar on mobile)
       ========================================================= */
.mobile-top-bar {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: #f4f7fa;
}

.mobile-top-bar img {
  max-width: 63px;
}

/* =========================================================
       BUTTON
       ========================================================= */

.btn-ds-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--btnSecondaryBg);
  border: 1px solid #e3e6ef;
  color: var(--btnSecondaryColor);
  border-radius: var(--radius-sm);
  font-size: 16px;
  line-height: 20px;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-ds-secondary:hover {
  background-color: var(--sidebarActive);
}

.btn-ds-secondary:active {
  transform: translateY(1px);
}
.btn-ds-primary {
  display: block;
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
  padding: 17.5px 24px;
  background-color: var(--btnPrimaryBg);
  border: 1px solid var(--btnPrimaryBorder);
  color: var(--btnPrimaryColor);
  border-radius: var(--radius-sm);
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    transform 0.1s ease;
  text-align: center;
}

.btn-ds-primary:hover {
  opacity: 0.92;
}

.btn-ds-primary:active {
  transform: translateY(1px);
}

/* =========================================================
       RESPONSIVE — TABLET/MOBILE (max-width: 991px)
       ========================================================= */
@media (max-width: 991px) {
  body {
    padding: 0px;
    padding-bottom: 80px;
  }

  .app-layout {
    border-radius: 0;
    box-shadow: none;
    min-height: calc(100% - 85px);
  }

  .sidebar {
    display: none;
  }

  .mobile-top-header {
    display: flex;
  }

  .mobile-top-bar {
    display: flex;
  }

  .page-header {
    padding: 22px 27px;
  }

  .page-header-title {
    font-size: 28px;
    line-height: 36px;
  }

  .page-header-notification {
    padding: 6px;
  }
  .page-header-notification svg {
    width: 24px;
    height: 24px;
  }
  .header-notification-count {
    font-size: 9px;
  }
  .page-header-profile-btn {
    width: 42px;
    height: 42px;
    font-size: 15px;
    line-height: 20px;
  }

  .mobile-bottom-nav {
    display: block;
  }
}

/* =========================================================
       RESPONSIVE — MOBILE (max-width: 767px)
       ========================================================= */
@media (max-width: 767px) {
  body {
    padding-bottom: 74px;
    min-height: 100dvh;
    position: relative;
  }

  .app-layout {
    flex-direction: column;
  }
  .page-top-actions {
    display: none;
  }
  .page-header {
    padding: 20px 12px 26px;
  }

  .body-content {
    padding: 30px 12px 20px;
  }

  .page-header-title {
    font-size: 25px;
    line-height: 32px;
  }

  .page-header-subtitle {
    font-size: 14px;
    line-height: 18px;
  }

  .page-header-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .mobile-bottom-nav {
    display: block;
  }

  .btn-ds-secondary {
    display: none;
  }

  .btn-ds-primary {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 15px 0;
  }

  /* .main-content {
    padding-bottom: 80px;
  } */
  .dropdown-menu.dropdown-globe-menu li a {
    font-size: 14px;
    line-height: 18px;
  }
}

/* =========================================================
       RESPONSIVE — SMALL MOBILE (max-width: 359px)
       ========================================================= */
@media (max-width: 359px) {
  .page-header-title {
    font-size: 22px;
    line-height: 28px;
  }
}

/*--------------------------- LINK CARDS  ---------------------------*/
/* Page header */

/* Cards grid */
.tp-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 30px;
  row-gap: 20px;
}

/* Training card */
.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px 27px 22px 22px;
  background-color: var(--card, #fcfcfd);
  border: 1px solid var(--cardBorder, #dee1e7);
  border-radius: var(--radius-sm, 8px);
  box-shadow: var(--cardShadow, 0px 16px 20px -13px #00000026);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  cursor: pointer;
}

/* Makes the whole card clickable without nesting an <a> inside an <a>
   (invalid HTML — browsers silently split the outer anchor, which was
   rendering as an empty box before the Print button). This overlay anchor
   covers the card; the Print button/link sits above it via z-index so it
   keeps its own separate click target. */
.link-card-stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.link-card-view-btn {
  position: relative;
  z-index: 2;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 20px 24px -10px #00000030;
}

/* Card icon container */
.link-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 73px;
  height: 73px;
  background-color: var(--iconBackground, #f0f0f6);
  border-radius: var(--radius-sm, 8px);
  flex-shrink: 0;
}

.link-card-icon i {
  font-size: 24px;
  color: var(--textPrimary, #000000);
}
.link-card-icon svg {
  width: 40px;
  height: 40px;
  color: var(--textPrimary, #000000);
}

/* Card content */
.link-card-content {
  flex: 1;
  min-width: 0;
}

.link-card-title {
  font-size: 18px;
  line-height: 25px;
  font-weight: var(--fw-bold, 700);
  color: var(--textPrimary, #000000);
  margin: 0 0 8px 0;
}

.link-card-desc {
  font-size: 16px;
  line-height: 20px;
  color: var(--textSecondary, #212529b2);
  margin: 0;
}

/* Card arrow */
.link-card-arrow {
  color: var(--textSecondary, #212529b2);
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.link-card:hover .link-card-arrow {
  transform: translateX(4px);
}
.link-card-right {
  display: flex;
  align-items: center;
  justify-content: end;
}
.link-card-view-btn {
  font-size: 16px;
  line-height: 20px;
  padding: 6px 14px;
  border: 1px solid #dddddd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--textSecondary, #212529b2);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.link-card-view-btn svg {
  width: 24px;
  height: 24px;
}
.link-card-view-btn:hover {
  background: var(--sidebarActive);
}
.link-card-view-btn:active {
  background: #ced5e3;
}

/* =========================================================
       RESPONSIVE — TABLET/WIDE (max-width: 1280px)
       ========================================================= */

@media (max-width: 1280px) {
  .tp-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
       RESPONSIVE — TABLET (max-width: 991px)
       ========================================================= */
@media (max-width: 991px) {
  .tp-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* =========================================================
       RESPONSIVE — MOBILE (max-width: 767px)
       ========================================================= */
@media (max-width: 767px) {
  .tp-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .link-card {
    padding: 12px 20px 12px 16px;
    gap: 9px;
  }

  .link-card-icon {
    width: 51px;
    height: 51px;
  }

  .link-card-icon i {
    font-size: 20px;
  }

  .link-card-icon svg {
    width: 28px;
    height: 28px;
  }

  .link-card-title {
    font-size: 12.53px;
    line-height: 17.41px;
    margin-bottom: 6px;
  }

  .link-card-desc {
    font-size: 11.14px;
    line-height: 13.92px;
  }

  .link-card-arrow {
    width: 31px;
    height: 31px;
  }

  .link-card-view-btn {
    font-size: 14px;
    line-height: 18px;
    padding: 4px 10px;
    gap: 4px;
  }
  .link-card-view-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* =========================================================
       RESPONSIVE — SMALL MOBILE (max-width: 359px)
       ========================================================= */
@media (max-width: 359px) {
  .link-card {
    padding: 12px;
  }

  .link-card-icon {
    width: 36px;
    height: 36px;
  }
}

/* =========================================================
       WHITE BLACK FILTER
       ========================================================= */

/* Filter tabs row */
.white-black-filter-tabs {
  display: inline-flex;
  align-items: stretch;
  margin-bottom: 20px;
  flex-wrap: wrap;
  border: 1px solid #e8eaed;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
}

.white-black-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  background-color: #ffffff;
  border: none;
  border-right: 1px solid #e8eaed;
  font-size: 13px;
  line-height: 100%;
  font-weight: var(--fw-medium, 500);
  color: var(--textMuted, #6b7280);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.calendar-wrapper {
  position: relative;
  display: inline-block;
}
.calendar-wrapper .white-black-filter-btn {
  height: 100%;
}

#white-black-filter-calendar-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

#white-black-filter-calendar-input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.white-black-filter-btn:hover,
.calendar-wrapper:hover .white-black-filter-btn {
  background-color: var(--sidebarActive, #dde2ee);
  /* color: var(--textPrimary, #000000); */
}
.white-black-filter-btn:last-child,
.white-black-filter-btn.white-black-btn-border-right-none {
  border-right: none;
}

.white-black-filter-btn.active {
  background-color: #111827;
  border-color: #111827;
  color: #ffffff;
}

.white-black-filter-btn i,
.white-black-filter-btn svg {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/*--------------------------- Homwwork page ---------------------------*/

.btn-add-homework {
  max-width: fit-content;
  margin-left: auto;
  margin-right: 0;
  padding: 14.5px 20px;
  background-color: var(--textAccent);
  border-color: var(--textAccent);
  box-shadow: 0px 1px 2px 0px #2d588614;
  margin-bottom: 23px;
}
.btn-add-homework svg {
  width: 25px;
  height: 25px;
}
/* stat cards */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.stat-card {
  background-color: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: var(--radius-sm, 8px);
  box-shadow: var(--shadow3);
  display: flex;
  padding: 25px 26px;
  gap: 13px;
}
.stat-card-icon-container {
  width: 61px;
  height: 61px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eeedfb;
  border-radius: var(--radius-sm, 8px);
  flex-shrink: 0;
}
.stat-card-icon-container svg {
  width: 32px;
  height: 32px;
  color: var(--textAccent);
}
.stat-card-value {
  font-size: 25px;
  line-height: 25px;
  letter-spacing: -0.3px;
  color: var(--textAccent);
  font-weight: 500;
  margin: 0;
}
.stat-card-label {
  font-size: 16px;
  line-height: 20px;
  color: var(--textSecondary);
  font-weight: 700;
  margin: 2px 0;
}
.stat-card-desc {
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  margin: 0;
}
.stat-card.stat-success .stat-card-icon-container {
  background-color: #e5f5e8;
}
.stat-card.stat-success .stat-card-icon-container svg {
  color: #10a04b;
}
.stat-card.stat-success .stat-card-value {
  color: #149e4e;
}
.stat-card.stat-primary .stat-card-icon-container {
  background-color: #eaf2fc;
}
.stat-card.stat-primary .stat-card-icon-container svg {
  color: #3d2ec5;
}
.stat-card.stat-primary .stat-card-value {
  color: #3d2ec5;
}
.stat-card.stat-warning .stat-card-icon-container {
  background-color: #fef3e8;
}
.stat-card.stat-warning .stat-card-icon-container svg {
  color: #fc8e34;
}
.stat-card.stat-warning .stat-card-value {
  color: #fc8e34;
}

.homework-table-filter {
  padding: 27px 24px;
  background-color: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: var(--radius-sm);
  margin-bottom: 23px;
  box-shadow: var(--cardShadow);
  margin-top: 22px;
  container: homework-table-filter/inline-size;
}
.homework-top-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  margin-bottom: 19px;
  gap: 20px;
  flex-wrap: wrap;
}
/* =========================================================
       SEARCH BAR
       ========================================================= */
.homework-search-wrap {
  position: relative;
  max-width: 448px;
  flex-basis: 250px;
  flex-grow: 1;
  flex-shrink: 1;
}

.homework-search-wrap .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--textMuted);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.homework-search-input {
  width: 100%;
  padding: 15px 16px 16px 52px;
  border: 1px solid var(--inputBorder);
  border-radius: var(--radius-xs);
  background-color: #fefefe;
  font-size: 13px;
  line-height: 18px;
  color: var(--textPrimary);
  outline: none;
  transition: border-color 0.15s ease;
}

.homework-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}

.homework-search-input::placeholder {
  color: var(--textSecondary);
}
#homework-filter-tabs {
  margin-bottom: 0;
}
#portalStatusDropdown .date-picker-wrapper {
  width: 204px;
}
#portalStatusDropdown .date-picker-main {
  flex: 1;
}
#portalStatus {
  font-size: 16px;
  line-height: 20px;
  color: var(--textSecondary);
}
@container homework-table-filter (max-width: 835px) {
  .homework-search-wrap {
    flex-basis: auto;
    flex-grow: 1;
    flex-shrink: 1;
    width: 100%;
    max-width: 100%;
  }
  .homework-top-bar {
    flex-direction: column;
  }
}

/* =========================================================
       CLEAR BUTTON
       ========================================================= */
.homework-clear-btn {
  padding: 12px 25px;
  background-color: #ffffff;
  border: 1px solid var(--inputBorder);
  border-radius: var(--radius-xs);
  font-size: 16px;
  line-height: 20px;
  font-weight: var(--fw-medium);
  color: var(--textSecondary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.homework-clear-btn:hover {
  background-color: var(--sidebarActive);
}

/* =========================================================
       PORTAL STATUS DROPDOWN
       ========================================================= */

.dropdown-menu.dropdown-small-variant {
  background: #fefefe;
  border: 1px solid #ebe7e7;
  border-radius: 8px;
  padding: 10px;
  box-shadow: var(--shadow3);
}
.dropdown-menu.dropdown-small-variant li:not(:last-child) {
  margin-bottom: 3px;
}
.dropdown-menu.dropdown-small-variant li a,
.dropdown-menu.dropdown-small-variant li button {
  padding: 8px 10px;
  display: flex;
  border-radius: 6px;
  gap: 10px;
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  transition: all 0.15s ease;
}
.dropdown-menu.dropdown-small-variant li a svg,
.dropdown-menu.dropdown-small-variant li button svg {
  width: 20px;
  height: 20px;
}
.dropdown-menu.dropdown-small-variant li a.active,
.dropdown-menu.dropdown-small-variant li button.active {
  background-color: var(--sidebarActive);
  color: var(--textAccent);
}
.dropdown-menu.dropdown-small-variant li a:hover,
.dropdown-menu.dropdown-small-variant li button:hover {
  background-color: var(--sidebarActive);
}
.dropdown-menu.dropdown-small-variant li a:active,
.dropdown-menu.dropdown-small-variant li button:active {
  background-color: #cdd6ec;
}
.dropdown-menu.dropdown-small-variant li a.delete-link,
.dropdown-menu.dropdown-small-variant li a.active.delete-link,
.dropdown-menu.dropdown-small-variant li button.delete-link,
.dropdown-menu.dropdown-small-variant li button.active.delete-link {
  color: #d54248;
}

/* =========================================================
       TABLE STYLES
       ========================================================= */
.homework-table-card {
  background-color: var(--card);
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.dropdown-menu.dropdown-globe-menu.small-radius {
  border-radius: 8px;
}

.homework-table {
  width: 100%;
  margin-bottom: 0;
}

.homework-table thead th {
  background-color: var(--tableHeader);
  border-bottom: 1px solid var(--cardBorder);
  padding: 17px 23px;
  font-size: 18px;
  line-height: 25px;
  font-weight: 500;
  color: var(--textPrimary);
  white-space: nowrap;
}

.homework-table thead th.sortable {
  cursor: pointer;
  user-select: none;
}

.homework-table thead th.sortable:hover {
  color: var(--textAccent);
}

.homework-table thead th.sortable.sort-active {
  color: var(--textAccent);
}

.homework-table thead th.sortable.sort-active svg {
  stroke: var(--textAccent);
  color: var(--textAccent);
}

.homework-table thead th.sortable.sort-active.sort-desc svg path:first-child {
  display: none;
}

.homework-table
  thead
  th.sortable.sort-active:not(.sort-desc)
  svg
  path:last-child {
  display: none;
}

.homework-table thead th svg {
  width: 16px;
  height: 16px;
  margin-left: 4px;
  color: var(--textPrimary);
  transition: color 0.2s ease;
}

.homework-table tbody td {
  padding: 20px 23px;
  border-bottom: 1px solid var(--borderLight);
  font-size: 16px;
  line-height: 20px;
  color: var(--textSecondary);
  vertical-align: middle;
}

.homework-table tbody tr:last-child td {
  border-bottom: none;
}

.homework-table tbody tr:hover {
  background-color: #f8f9fb;
}

.homework-table .checkbox-col {
  width: 40px;
  text-align: center;
}

.homework-table .no-col {
  width: 60px;
  font-size: 18px;
  line-height: 25px;
  text-align: center;
  font-weight: 500;
}
.food-journal-table .no-col {
  max-width: 166px;
  text-align: left;
  width: auto;
  padding-left: 40px;
}

/* ===== Member status badge / inline toggle (Home / member list) ===== */
.member-status-toggle {
  display: inline-flex;
  gap: 4px;
}
.member-status-toggle button {
  border: 1px solid var(--borderLight, #ebe7e7);
  background: #fff;
  color: var(--textSecondary, #6b7280);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.member-status-toggle button.is-current-active {
  background: var(--textAccent, #4c78ce);
  border-color: var(--textAccent, #4c78ce);
  color: #fff;
  cursor: default;
}
.member-status-toggle button.is-current-inactive {
  background: #eef0f9;
  border-color: #eef0f9;
  color: var(--textPrimary, #212529);
  cursor: default;
}
.member-status-toggle button:not(.is-current-active):not(.is-current-inactive):hover {
  background: var(--sidebarActive, #dde2ee);
}
.member-profile-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef0f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--textAccent, #4c78ce);
}
.member-feature-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--borderLight, #ebe7e7);
  border-radius: 6px;
  color: var(--textSecondary, #6b7280);
  transition: all 0.15s ease;
}
.member-feature-icon-link:hover {
  background: var(--sidebarActive, #dde2ee);
  border-color: var(--accent, #5a83d3);
  color: var(--textAccent, #4c78ce);
}
.member-feature-icon-link svg {
  width: 18px;
  height: 18px;
}

.homework-table .doc-link {
  color: var(--textAccent);
  text-decoration: none;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.homework-table .doc-link:hover {
  text-decoration: underline;
}

.homework-table .doc-link svg {
  color: var(--textAccent);
  width: 20px;
  height: 20px;
}

.homework-table .date-col {
  color: var(--textSecondary);
  white-space: nowrap;
}

.homework-table .action-col {
  width: 50px;
  text-align: center;
}

.homework-table tbody td.empty-field {
  color: #dde2ee;
}

/* =========================================================
       ACTION DROPDOWN (Bootstrap)
       ========================================================= */
.homework-action-dropdown .homework-action-dropdown-btn {
  padding: 0px;
  width: 42px;
  height: 42px;
  background: var(--card);
  border: 1px solid var(--borderLight);
  color: var(--textPrimary);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.homework-action-dropdown .homework-action-dropdown-btn svg {
  width: 24px;
  height: 24px;
}

.homework-action-dropdown .homework-action-dropdown-btn:hover,
.homework-action-dropdown .homework-action-dropdown-btn:focus {
  background: var(--sidebarActive, #dde2ee);
  color: var(--textPrimary);
}
.homework-action-dropdown .homework-action-dropdown-btn:active {
  background: #c5cee0;
  color: var(--textAccent);
  border-color: var(--sidebarActive);
}
.dropdown-menu.fixed-pos-dropdown {
  width: fit-content !important;
}

/* =========================================================
       CHECKBOX
       ========================================================= */
.homework-checkbox {
  width: 18px;
  height: 18px;
  border: 1px solid #b9c0d3;
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--accent);
}

/* =========================================================
       BOTTOM BAR
       ========================================================= */
.homework-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 21px;
}

.homework-bottom-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.homework-bottom-right {
  display: flex;
  align-items: center;
  column-gap: 42px;
  row-gap: 12px;
}

.btn-ds-primary.update-portal-btn {
  padding: 5.5px 13px;
  font-size: 12px;
  line-height: 18px;
  border-radius: 4px;
  background-color: var(--textAccent);
  border-color: var(--textAccent);
}

.homework-pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.homework-pagination .page-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card);
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--textPrimary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.homework-pagination .page-btn svg {
  width: 24px;
  height: 24px;
}

.homework-pagination .page-btn:hover {
  background-color: var(--sidebarActive);
}

.homework-pagination .page-btn.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.homework-pagination .page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.homework-per-page-dropdown .homework-per-page-dropdown-btn {
  padding: 12px 15px;
  background-color: var(--card);
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 18px;
  color: var(--textSecondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.homework-showing-text {
  margin-top: 8px;
  font-size: 16px;
  line-height: 20px;
  color: var(--textSecondary);
}

/* =========================================================
       RESPONSIVE
       ========================================================= */
@media (max-width: 767px) {
  .homework-search-wrap {
    max-width: 100%;
  }
  /* .homework-bottom-bar {
        flex-direction: column;
        align-items: stretch;
      }
      .homework-bottom-left,
      .homework-bottom-right {
        justify-content: center;
      } */
}

@media (max-width: 991px) {
  .btn-add-homework {
    padding: 13px 20px;
  }
  /* stat cards */
  .stat-cards-grid {
    gap: 16px;
  }
  .stat-card {
    padding: 20px;
  }
  .stat-card-icon-container {
    width: 56px;
    height: 56px;
  }
  .stat-card-icon-container svg {
    width: 28px;
    height: 28px;
  }
  .stat-card-value {
    font-size: 22px;
    line-height: 22px;
    letter-spacing: -0.27px;
  }

  .homework-table thead th {
    padding: 15px 20px;
    font-size: 16px!important;
    line-height: 22px!important;
  }

  .homework-table tbody td {
    padding: 15px 20px;
    font-size: 16px!important;
  }
  .homework-checkbox {
    width: 16px;
    height: 16px;
  }
  .homework-action-dropdown .homework-action-dropdown-btn {
    width: 38px;
    height: 38px;
  }
  .homework-action-dropdown .homework-action-dropdown-btn svg {
    width: 20px;
    height: 20px;
  }
  .homework-pagination .page-btn {
    width: 38px;
    height: 38px;
  }
  .homework-pagination .page-btn svg {
    width: 20px;
    height: 20px;
  }
  .homework-per-page-dropdown .homework-per-page-dropdown-btn {
    padding: 8px 12px;
    font-size: 12.5px;
    line-height: 17px;
  }
  .homework-bottom-right {
    column-gap: 30px;
  }
}

@media (max-width: 767px) {
  .homework-table-filter {
    padding: 20px;
  }
  .homework-top-bar {
    gap: 12px;
  }
  .btn-add-homework {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 23px;
  }
  .btn-add-homework svg {
    width: 21px;
    height: 21px;
  }
  /* stat cards */
  .stat-cards-grid {
    gap: 14px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-card-icon-container {
    width: 50px;
    height: 50px;
  }
  .stat-card-icon-container svg {
    width: 26px;
    height: 26px;
  }
  .stat-card-value {
    font-size: 18px;
    line-height: 18px;
  }
  .stat-card-label {
    font-size: 14px;
    line-height: 18px;
  }
  .stat-card-desc {
    font-size: 12.5px;
    line-height: 17px;
  }

  .homework-table thead th {
    padding: 12px 18px;
    font-size: 15px!important;
    line-height: 22px!important;
  }

  .homework-table tbody td {
    padding: 12px 18px;
    font-size: 14px!important;
  }
  .food-journal-table .no-col {
    padding-left: 30px;
  }
  .homework-checkbox {
    width: 13px;
    height: 13px;
  }
  .homework-action-dropdown .homework-action-dropdown-btn {
    width: 35px;
    height: 35px;
  }
  .homework-action-dropdown .homework-action-dropdown-btn svg {
    width: 18px;
    height: 18px;
  }
  .homework-pagination .page-btn {
    width: 35px;
    height: 35px;
  }
  .homework-pagination .page-btn svg {
    width: 18px;
    height: 18px;
  }

  .homework-showing-text {
    font-size: 14px;
    line-height: 18px;
  }
}
@media (max-width: 600px) {
  .homework-bottom-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .homework-bottom-left .homework-showing-text{
    width: 100%;
    text-align: center;
  }
  .update-portal-btn {
    padding: 10px 12px;
    font-size: 14px;
  }
  .homework-bottom-right {
    column-gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/*--------------------------- Email page ---------------------------*/

/* =========================================================
       EMAIL COMPOSER CARD
       ========================================================= */
.email-composer-card {
  background-color: #fcfcfd;
  border-radius: var(--radius-lg);
  padding: 21px 25px 54px;
  overflow: hidden;
}
.email-composer-send-btn {
  background-color: var(--textAccent);
  border-color: var(--textAccent);
  padding: 10px 10px;
  font-weight: 400;
  max-width: fit-content;
  border-radius: 8px;
  gap: 7px;
  margin: 0;
  margin-left: auto;
  margin-bottom: 10px;
}
.email-composer-send-btn svg {
  width: 17px;
  height: 17px;
}

/* =========================================================
       TOP FIELDS ROW (To + Subject)
       ========================================================= */
.email-fields-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.email-field-group {
  flex: 1;
  min-width: 280px;
}

.email-field-label {
  display: block;
  font-size: 18px;
  line-height: 24px;
  color: var(--textSecondary);
  margin-bottom: 8px;
}

/* To field with tags + clear all button */
.email-to-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--inputBorder);
  border-radius: var(--radius-xs);
  background-color: var(--inputBackground);
  padding: 8px 40px 8px 14px;
  min-height: 42px;
  transition: border-color 0.15s ease;
  gap: 6px;
  flex-wrap: wrap;
  overflow: hidden;
  max-height: 120px;
  overflow-y: auto;
}

.email-to-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: rgba(90, 131, 211, 0.1) 0px 0px 0px 3px;
}

.email-to-input-wrap::-webkit-scrollbar {
  width: 4px;
}

.email-to-input-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.email-to-input-wrap::-webkit-scrollbar-thumb {
  background: var(--borderLight);
  border-radius: 4px;
}

.email-to-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--btnSecondaryBg);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 16px;
  line-height: 20px;
  color: var(--textSecondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.email-to-tag .email-to-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: none;
  background: transparent;
  color: var(--textSecondary);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0;
  border-radius: 3px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.email-to-tag .email-to-remove svg {
  width: 100%;
  height: 100%;
}
.email-to-tag .email-to-remove:hover {
  background-color: var(--borderLight);
  color: var(--textPrimary);
}

.email-to-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  line-height: 20px;
  color: var(--textPrimary);
  outline: none;
  padding: 4px 2px;
  min-width: 80px;
}

.email-to-input::placeholder {
  color: var(--textMuted);
}

/* Clear all button inside To field */
.email-to-clear-all {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: var(--textMuted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  border-radius: 4px;
  transition: all 0.15s ease;
  z-index: 2;
}

.email-to-clear-all:hover {
  background-color: var(--borderLight);
  color: var(--textPrimary);
}

.email-to-clear-all svg {
  width: 16px;
  height: 16px;
}

.email-subject-input {
  width: 100%;
  padding: 13px 21px;
  border: 1px solid var(--inputBorder);
  border-radius: var(--radius-xs);
  background-color: var(--inputBackground);
  font-size: 16px;
  line-height: 20px;
  color: var(--textPrimary);
  outline: none;
  transition: border-color 0.15s ease;
}

.email-subject-input:focus {
  border-color: var(--accent);
  box-shadow: rgba(90, 131, 211, 0.1) 0px 0px 0px 3px;
}

.email-subject-input::placeholder {
  color: var(--textMuted);
}

/* =========================================================
       QUILL EDITOR CUSTOM STYLING
       ========================================================= */
.body-field-wrapper {
  margin-top: 20px;
}
.email-editor-wrap {
  border: 1px solid var(--inputBorder);
  border-radius: var(--radius-sm);
  background-color: var(--inputBackground);
  /* overflow: hidden; */
}

/* Override Quill toolbar to match design */
.email-editor-wrap .ql-toolbar {
  border: none !important;
  border-bottom: 1px solid var(--inputBorder) !important;
  background-color: var(--inputBackground);
  padding: 8px 12px !important;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.email-editor-wrap .ql-toolbar .ql-formats {
  margin-right: 0 !important;
  display: flex;
  align-items: center;
  gap: 2px;
  padding-right: 8px;
  border-right: 1px solid var(--borderLight);
  flex-wrap: wrap;
}

.email-editor-wrap .ql-toolbar .ql-formats:nth-child(3),
.email-editor-wrap .ql-toolbar .ql-formats:nth-child(4) {
  padding-left: 8px;
}

.email-editor-wrap .ql-toolbar .ql-formats:last-child {
  border-right: none;
  padding-right: 0;
}

.email-editor-wrap .ql-toolbar .ql-formats:first-child {
  border-right: none;
}

/* Style all toolbar buttons */
.email-editor-wrap .ql-toolbar button {
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s ease;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.email-editor-wrap .ql-toolbar button:hover {
  background-color: var(--sidebarActive);
}

.email-editor-wrap .ql-toolbar button.ql-active {
  background-color: var(--sidebarActive);
  color: var(--accent);
}

.email-editor-wrap .ql-toolbar button svg {
  width: 21px;
  height: 21px !important;
}

/* Style the dropdown (Paragraph selector) */
.email-editor-wrap .ql-toolbar .ql-picker {
  height: 32px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--borderLight);
  padding-right: 5px;
  width: 117px !important;
}

.email-editor-wrap .ql-toolbar .ql-picker-label {
  border: none !important;
  padding: 0 8px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: var(--textSecondary);
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  transition: all 0.15s ease;
  outline: none;
}

.email-editor-wrap .ql-toolbar .ql-picker-label:hover {
  background-color: var(--sidebarActive);
  color: var(--textPrimary);
}

.email-editor-wrap .ql-toolbar .ql-picker-label::before {
  line-height: 32px;
}
.ql-snow .ql-picker.ql-expanded .ql-picker-label {
  color: var(--accent) !important;
}
.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {
  stroke: var(--accent) !important;
}

.email-editor-wrap .ql-toolbar .ql-picker-options {
  /* border: 1px solid var(--inputBorder);
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow2);
      padding: 4px;
      background-color: var(--card); */
  background: #fefefe;
  border: 1px solid #ebe7e7 !important;
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow3) !important;
}

.email-editor-wrap .ql-toolbar .ql-picker-item {
  /* padding: 6px 12px;
      border-radius: 6px;
      font-size: 14px;
      color: var(--textPrimary); */
  padding: 8px 10px;
  display: flex;
  border-radius: 6px;
  gap: 10px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--textSecondary);
  transition: all 0.15s ease;
}

.email-editor-wrap .ql-toolbar .ql-picker-item:hover {
  background-color: var(--sidebarActive);
}

.email-editor-wrap .ql-toolbar .ql-picker-item.ql-selected {
  background-color: var(--sidebarActive);
}

/* Custom SVG icons for Quill buttons */
.email-editor-wrap .ql-bold .ql-stroke {
  stroke: var(--textSecondary);
}
.email-editor-wrap .ql-bold:hover .ql-stroke,
.email-editor-wrap .ql-bold.ql-active .ql-stroke {
  stroke: var(--textPrimary);
}

.email-editor-wrap .ql-italic .ql-stroke {
  stroke: var(--textSecondary);
}
.email-editor-wrap .ql-italic:hover .ql-stroke,
.email-editor-wrap .ql-italic.ql-active .ql-stroke {
  stroke: var(--textPrimary);
}

.email-editor-wrap .ql-underline .ql-stroke {
  stroke: var(--textSecondary);
}
.email-editor-wrap .ql-underline:hover .ql-stroke,
.email-editor-wrap .ql-underline.ql-active .ql-stroke {
  stroke: var(--textPrimary);
}

.email-editor-wrap .ql-strike .ql-stroke {
  stroke: var(--textSecondary);
}
.email-editor-wrap .ql-strike:hover .ql-stroke,
.email-editor-wrap .ql-strike.ql-active .ql-stroke {
  stroke: var(--textPrimary);
}

.email-editor-wrap .ql-list .ql-stroke,
.email-editor-wrap .ql-link .ql-stroke,
.email-editor-wrap .ql-image .ql-stroke {
  stroke: var(--textSecondary);
}
.email-editor-wrap .ql-list:hover .ql-stroke,
.email-editor-wrap .ql-link:hover .ql-stroke,
.email-editor-wrap .ql-image:hover .ql-stroke,
.email-editor-wrap .ql-list.ql-active .ql-stroke,
.email-editor-wrap .ql-link.ql-active .ql-stroke,
.email-editor-wrap .ql-image.ql-active .ql-stroke {
  stroke: var(--textPrimary);
}

/* ── Toolbar: make it flex so actions can push right ── */
.email-editor-wrap .ql-toolbar.ql-snow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}

/* ── Spacer group that pushes buttons to the right ── */
.email-editor-wrap .ql-toolbar .ql-toolbar-actions {
  /* margin-left: auto; */
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* ── Preview & Fullscreen buttons ── */
.email-editor-wrap button.ql-custom-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px;
  padding: 4px 8px !important;
  border: none !important;
  background: transparent !important;
  border-radius: 6px !important;
  cursor: pointer;
  color: var(--textSecondary) !important;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1;
  transition: background 0.15s !important;
  width: auto !important;
  height: auto !important;
}
.email-editor-wrap .ql-custom-separator {
  align-self: stretch;
  height: auto;
  width: 1px;
  background: var(--borderLight) !important;
}
.email-editor-wrap button.ql-custom-btn:hover {
  background-color: var(--sidebarActive) !important;
}

.email-editor-wrap button.ql-custom-btn svg {
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

/* ── Fullscreen overlay state ── */
.email-editor-wrap.editor-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
}

.email-editor-wrap.editor-fullscreen #email-quill-editor {
  flex: 1;
  overflow-y: auto;
}

/* Editor content area */
.email-editor-wrap .ql-container {
  border: none !important;
  font-size: 16px;
  line-height: 1.6;
  color: var(--textPrimary);
}

.email-editor-wrap .ql-editor {
  min-height: 200px;
  padding: 16px;
}

.email-editor-wrap .ql-editor.ql-blank::before {
  color: var(--textMuted);
  font-style: normal;
  font-size: 14px;
}

/* Custom footer with word count */
.email-editor-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 13px 40px;
  border-top: 1px solid var(--borderLight);
  background-color: var(--card);
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

.email-word-count {
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: var(--textMuted);
}

/* =========================================================
       ATTACH DOCUMENTS CARD
       ========================================================= */
.attach-docs-card {
  margin-top: 32px;
  background-color: #fcfcfd;
  border-radius: var(--radius-lg);
  padding: 23px 25px 64px;
  overflow: hidden;
}

/* =========================================================
       HEADER
       ========================================================= */
.attach-docs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 20px;
}

.attach-docs-title-wrap h2 {
  font-size: 22px;
  line-height: 25px;
  font-weight: 500;
  color: var(--textPrimary);
  margin-bottom: 10px;
}

.attach-docs-subtitle {
  font-size: 18px;
  line-height: 24px;
  color: var(--textSecondary);
  margin: 0;
}
.attach-docs-selected-dropdown {
  margin-left: auto;
}
.attach-docs-selected-dropdown .btn {
  padding: 8px 14px;
  background-color: transparent;
  border: none;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: var(--textSecondary);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.attach-docs-selected-dropdown .btn:hover,
.attach-docs-selected-dropdown .btn:focus {
  color: var(--textPrimary);
}

/* =========================================================
       BOOTSTRAP ACCORDION OVERRIDES
       ========================================================= */
.attach-docs-accordion .accordion-item {
  background-color: #fcfcfd;
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.attach-docs-accordion .accordion-item:last-child {
  margin-bottom: 0;
}

.attach-docs-accordion .accordion-button {
  padding: 13px 26px 13px 19px;
  background-color: transparent;
  box-shadow: none;
  color: var(--textSecondary);
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.attach-docs-accordion .accordion-button::after {
  margin-left: auto;
  width: 16px;
  height: 16px;
  background-size: 16px;
  filter: brightness(0) saturate(100%) invert(45%) sepia(10%) saturate(400%)
    hue-rotate(180deg);
  transition: transform 0.2s ease;
}

.attach-docs-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.attach-docs-accordion .accordion-button:focus {
  box-shadow: none;
}

.attach-docs-accordion .accordion-body {
  padding: 0 0 16px 0;
}

/* Section icon */
.attach-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--textAccent);
  font-size: 16px;
  background: #eef0f9;
  border-radius: 8px;
}

.attach-section-icon svg {
  width: 24.5px;
  height: 24.5px;
}

/* Count badge */
.attach-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  background-color: #e2e8f0;
  border-radius: 4px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--textAccent);
}

/* =========================================================
       ACCORDION CONTENT ITEMS
       ========================================================= */
.attach-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 25px 13px 19px;
  border-top: 1px solid var(--borderLight);
}
.attach-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.attach-item-checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid #b9c0d3;
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--accent);
}

.attach-item-name {
  font-size: 16px;
  line-height: 20px;
  color: var(--textSecondary);
}

.attach-item-preview {
  font-size: 16px;
  line-height: 20px;
  color: var(--textAccent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.15s ease;
}

.attach-item-preview:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.attach-item-preview i {
  font-size: 12px;
}
.attach-item-preview svg {
  width: 24px;
  height: 24px;
}

/* =========================================================
       DATE FILTER BAR (inside accordion)
       ========================================================= */
.attach-date-filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 29px 22px 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--borderLight);
}

.attach-date-field {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.attach-date-field label {
  font-size: 18px;
  line-height: 24px;
  color: var(--textSecondary);
  white-space: nowrap;
}

.attach-date-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-basis: 267px;
}

.attach-date-input {
  padding: 14px 32px 14px 15px;
  border: 1px solid var(--inputBorder);
  border-radius: var(--radius-xs);
  background-color: var(--inputBackground);
  font-size: 16px;
  line-height: 20px;
  color: var(--textSecondary);
  outline: none;
  transition: border-color 0.15s ease;
  flex-basis: 267px;
  /* width: 267px; */
  /* max-width: 267px; */
}

.attach-date-input:focus {
  border-color: var(--accent);
  box-shadow: rgba(90, 131, 211, 0.1) 0px 0px 0px 3px;
}

.attach-date-input::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 23px;
  opacity: 0;
  cursor: pointer;
}

.attach-date-icon {
  position: absolute;
  right: 25px;
  pointer-events: none;
  color: var(--textMuted);
  width: 16px;
  height: 16px;
}

.attach-add-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 15px;
  background-color: var(--card);
  border: 1px solid var(--inputBorder);
  border-radius: var(--radius-xs);
  font-size: 16px;
  line-height: 20px;
  font-weight: var(--fw-medium);
  color: var(--textAccent);
  cursor: pointer;
  transition: all 0.15s ease;
  /* margin-left: auto; */
}
.attach-add-pdf-btn svg {
  width: 21px;
  height: 21px;
}
.attach-add-pdf-btn:hover {
  background-color: var(--sidebarActive);
}

/* =========================================================
       EMPTY STATE
       ========================================================= */
.attach-empty-state {
  padding: 16px 0 16px 34px;
  font-size: 18px;
  line-height: 24px;
  border-top: 1px solid var(--borderLight);
  color: var(--textSecondary);
}

/* =========================================================
       FOOTER NOTE
       ========================================================= */
.attach-footer-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 21px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: var(--textSecondary);
}

.attach-footer-note svg {
  width: 24px;
  height: 24px;
  color: var(--textSecondary);
}

/* =========================================================
       Accountability data
       ========================================================= */
.attach-accountability-data {
  padding: 22px 29px 22px 20px;
  border-top: 1px solid var(--borderLight);
}
.attach-accountability-week-select-btn-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.accountability-chart-week-select-wrapper {
  flex: 1;
  flex-basis: 700px;
  min-width: 0;
}
/* =========================================================
       RESPONSIVE
       ========================================================= */

@media (max-width: 1280px) {
  .attach-docs-title-wrap h2 {
    font-size: 20px;
    line-height: 22px;
    margin-bottom: 10px;
  }

  .attach-docs-subtitle {
    font-size: 15px;
    line-height: 20px;
  }

  .attach-docs-selected-dropdown .btn {
    padding: 4px 8px;
    font-size: 16px;
    line-height: 20px;
  }

  .attach-docs-accordion .accordion-button {
    padding: 13px 26px 13px 19px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    gap: 8px;
  }

  /* Section icon */
  .attach-section-icon {
    width: 40px;
    height: 40px;
  }

  .attach-section-icon svg {
    width: 22.5px;
    height: 22.5px;
  }

  /* Count badge */
  .attach-count-badge {
    min-width: 21px;
    height: 21px;
    font-size: 14px;
    line-height: 18px;
  }
  .attach-empty-state {
    font-size: 16px;
    line-height: 20px;
  }
}
@media (max-width: 767px) {
  .email-fields-row {
    flex-direction: column;
    gap: 20px;
  }
  .email-field-group {
    min-width: 100%;
  }
  .email-editor-footer {
    padding: 13px 20px;
  }
  .email-composer-card {
    padding: 21px 16px 40px;
    border-radius: 12px;
  }
  .attach-docs-card {
    padding: 16px;
    padding-bottom: 40px;
    border-radius: 12px;
  }
  .attach-item-row {
    padding: 13px 20px 13px 14px;
  }
  .attach-date-filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .attach-accountability-week-select-btn-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .accountability-chart-week-select-wrapper {
    flex: auto;
    flex-basis: auto;
    width: 100%;
  }
  .attach-add-pdf-btn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  .attach-docs-header {
    margin-bottom: 18px;
  }
  .attach-docs-accordion .accordion-button {
    padding: 12px 20px 13px 14px;
  }
}

/*--------------------------- Baseline Detials page  ---------------------------*/

/* =========================================================
       BODY COMPOSITION CARD
       ========================================================= */
.body-comp-card {
  background-color: #fcfcfd;
  border: 1px solid var(--inputBorder);
  border-radius: var(--radius-lg);
  padding: 28px 27px;
  overflow: hidden;
}
.body-comp-card + .body-comp-card {
  margin-top: 24px;
}

/* =========================================================
       HEADER
       ========================================================= */
.body-comp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 18px;
}

.body-comp-header-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.body-comp-icon-wrap {
  width: 47px;
  height: 47px;
  background-color: #eef0f9;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.body-comp-icon-wrap svg {
  width: 24px;
  height: 24px;
  color: var(--textPrimary);
}

.body-comp-header-title {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: var(--textPrimary);
  margin-bottom: 0;
}

.body-comp-add-col-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 12px;
  background-color: transparent;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xs);
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: var(--textSecondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.body-comp-add-col-btn:hover {
  background-color: var(--sidebarActive);
  color: var(--accent);
}

.body-comp-add-col-btn svg {
  width: 21px;
  height: 21px;
}

/* =========================================================
       TABLE
       ========================================================= */
.body-comp-table-wrap {
  border: 1px solid var(--borderLight);
  background-color: #fcfcfd;
  border-radius: 12px;
  margin-top: 20px;
  overflow-x: auto;
}

.body-comp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
}

/* Table header row */
.body-comp-table thead th {
  padding: 13px 14px;
  text-align: left;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: var(--textPrimary);
  text-transform: uppercase;
  border-bottom: 1px solid var(--borderLight);
  background-color: transparent;
  white-space: nowrap;
  border-right: 1px solid var(--borderLight);
}

.body-comp-table thead th:first-child {
  width: 180px;
  min-width: 180px;
  padding-left: 23px;
  background-color: #f7f9fc;
}

.body-comp-table thead th:not(:first-child) {
  min-width: 200px;
}
.body-comp-table thead th:first-child,
.body-comp-table thead th:last-child {
  border-right: none;
}

/* Date picker in header */
.body-comp-table .date-picker-wrapper {
  width: 100%;
}
.body-comp-table .date-picker-main svg {
  width: 22px;
  height: 22px;
}
.body-comp-table .date-picker-main {
  gap: 8px;
  padding: 8px;
  flex: 1;
}
.body-comp-table .date-picker-chevron {
  border-left: none;
  padding: 8px;
}
.body-comp-table .date-picker-chevron svg {
  width: 22px;
  height: 22px;
}
.body-comp-table .date-display {
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: var(--textSecondary);
  text-transform: none;
}

/* Table body */
.body-comp-table tbody td {
  padding: 8px 14px;
  vertical-align: middle;
  border-right: 1px solid var(--borderLight);
}

.body-comp-table tbody tr:first-child td {
  padding-top: 16px;
}
.body-comp-table tbody tr:last-child td {
  padding-bottom: 16px;
}
.body-comp-table tbody tr td:first-child {
  padding-left: 23px;
  background-color: #f7f9fc;
}
.body-comp-table tbody td:first-child,
.body-comp-table tbody td:last-child {
  border-right: none;
}
/* Parameter label column */
.body-comp-param-label {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--textSecondary);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Input fields */
.body-comp-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-xs);
  background-color: white;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--textSecondary);
  outline: none;
  transition: border-color 0.15s ease;
}

.body-comp-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}

.body-comp-input::placeholder {
  color: var(--textMuted);
}
.body-comp-input-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}
.body-comp-input-pair .body-comp-input {
  flex: 1;
}
.input-divider {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--textSecondary);
  white-space: nowrap;
}
.save-baseline-btn {
  padding: 12px 25px;
  max-width: 220px;
  margin: 0 auto;
  margin-top: 17px;
}

/* =========================================================
       RESPONSIVE
       ========================================================= */
@media (max-width: 767px) {
  .body-comp-card {
    padding: 24px 20px;
  }
  .body-comp-card:not(:first-child) {
    margin-top: 20px;
  }

  .body-comp-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .body-comp-icon-wrap svg {
    width: 20px;
    height: 20px;
  }
  .body-comp-table thead th {
    padding: 10px 14px;
    font-size: 14px;
    line-height: 18px;
  }
  .body-comp-table thead th:first-child {
    padding-left: 18px;
  }
  .body-comp-table tbody tr td:first-child {
    padding-left: 18px;
  }
  .body-comp-table tbody tr:first-child td {
    padding-top: 14px;
  }
  .body-comp-table tbody tr:last-child td {
    padding-bottom: 14px;
  }
  .body-comp-table tbody td {
    padding: 6px 14px;
  }
  .body-comp-param-label,
  .input-divider {
    font-size: 14px;
    line-height: 18px;
  }
  .body-comp-input {
    padding: 8px 10px;
    font-size: 14px;
    line-height: 18px;
  }
}

/*--------------------------- Goal Detials page  ---------------------------*/
/* =========================================================
       GOALS CARD
       ========================================================= */
.goals-card {
  background-color: #fcfcfd;
  border: 1px solid #e4e3eb;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.goals-card .goals-card-header-table {
  padding: 28px 27px 34px;
}

/* =========================================================
       TABLE
       ========================================================= */
.goals-table-wrap {
  margin-top: 40px;
  overflow-x: auto;
  position: relative;
  overflow-y: clip;
}

.goals-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 500px;
  overflow-y: clip;
}

/* Table header */
.goals-table thead th {
  padding: 12px 8px;
  text-align: left;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: var(--textPrimary);
  white-space: nowrap;
}

.goals-table thead th:first-child {
  width: 120px;
  min-width: 120px;
}

.goals-table thead th:not(:first-child) {
  min-width: 220px;
}
.goals-table .swap-btn-cell {
  width: 50px !important;
  max-width: 50px !important;
  min-width: 50px !important;
}

/* Table body */
.goals-table tbody td {
  padding: 12px 8px;
  vertical-align: top;
  position: relative;
}

/* Parameter label column */
.goals-param-label {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: var(--textPrimary);
  white-space: nowrap;
  display: block;
  padding-top: 8px;
}

/* =========================================================
       TEXTAREA WRAP
       ========================================================= */
.goals-textarea-wrap {
  position: relative;
  width: 100%;
}

.goals-textarea {
  width: 100%;
  min-height: 120px;
  padding: 9px;
  padding-bottom: 18px;
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-xs);
  background-color: white;
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  resize: vertical;
  outline: none;
  line-height: 1.5;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.goals-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}

.goals-textarea::placeholder {
  color: var(--textMuted);
}

/* =========================================================
       SWAP BUTTON (centered between columns)
       ========================================================= */
.goals-swap-btn-wrap {
  /* position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      z-index: 10;
      pointer-events: none; */
}

.goals-swap-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #eef0f9;
  color: var(--textAccent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}
.goals-swap-btn-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: var(--wrapper-height);
  border: 1px dotted #e4e3eb;
  z-index: -1;
}

.goals-swap-btn:hover {
  background-color: var(--sidebarActive);
}
.goals-swap-btn:active {
  opacity: 0.8;
}

.goals-swap-btn svg {
  width: 21px;
  height: 21px;
}

/* =========================================================
       SAVE BUTTON
       ========================================================= */
.goals-save-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 24px 34px;
  border-top: 1px solid #e4e3eb;
}

.goals-save-btn {
  padding: 12px 20px;
  max-width: fit-content;
  margin: 0 auto;
}

/* =========================================================
       DATE PICKER (reused from your design)
       ========================================================= */

.goals-table-wrap .date-picker-wrapper {
  width: 100%;
  background-color: white;
}
.goals-table-wrap .date-picker-main svg {
  width: 22px;
  height: 22px;
}
.goals-table-wrap .date-picker-main {
  gap: 8px;
  padding: 8px;
  flex: 1;
}
.goals-table-wrap .date-picker-chevron {
  border-left: none;
  padding: 8px;
}
.goals-table-wrap .date-picker-chevron svg {
  width: 22px;
  height: 22px;
}
.goals-table-wrap .date-display {
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: var(--textSecondary);
  text-transform: none;
}

/* =========================================================
       RESPONSIVE
       ========================================================= */
@media (max-width: 767px) {
  .goals-card .goals-card-header-table {
    padding: 24px 20px 34px;
  }
  .goals-table-wrap {
    margin-top: 30px;
  }

  .goals-table thead th,
  .goals-table tbody td {
    padding: 6px 6px;
  }
  .goals-param-label,
  .goals-table thead th {
    font-size: 14px;
    line-height: 18px;
  }
  .goals-textarea {
    min-height: 100px;
  }
  .goals-table thead th:first-child {
    width: 105px;
    min-width: 105px;
  }
}

/*--------------------------- Edit Member & Add New Exercise Page  ---------------------------*/

.edit-member-body {
  background-color: #fcfcfc;
  border: 1px solid var(--cardBorder, #dee1e7);
  border-radius: var(--radius-sm, 8px);
  box-shadow: var(--cardShadow, 0px 16px 20px -13px #00000026);
  padding: 47px 45px 85px 45px;
}

.edit-member-card {
  margin-bottom: 80px;
}
.edit-member-card:last-child {
  margin-bottom: 0;
}

/* Section header */
.edit-member-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.edit-member-section-head i {
  font-size: 20px;
  color: var(--textPrimary, #000000);
}
.edit-member-section-head svg {
  width: 24px;
  height: 24px;
  color: var(--textPrimary, #000000);
}

.edit-member-section-title {
  font-size: 18px;
  line-height: 16px;
  font-weight: var(--fw-bold, 700);
  color: #212529;
  margin: 0;
}

.edit-member-section-subtitle {
  font-size: 16px;
  line-height: 24px;
  color: #7c7c7c;
  margin: 0 0 30px 0;
}

/* Form grid */
.edit-member-form .row > *,
.edit-member-form .row {
  margin-top: 0px;
}

.edit-member-field {
  margin-bottom: 26px;
}

.edit-member-label {
  display: block;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: var(--textSecondary, #212529b2);
  margin-bottom: 11px;
}

.edit-member-input,
.edit-member-select,
.edit-member-date-picker-wrapper {
  width: 100%;
  height: 68px;
  padding: 20px 22px;
  background-color: var(--inputBackground, #fcfcfc);
  border: 1px solid var(--inputBorder, #e4e3eb);
  border-radius: var(--radius-sm, 8px);
  font-size: 16px;
  line-height: 20px;
  color: var(--textPrimary, #000000);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.edit-member-input::placeholder {
  color: #21252980;
}

.edit-member-input:focus {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}

/* Select dropdown */
.edit-member-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%236B7280' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 24px center;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.edit-member-select option {
  color: var(--textPrimary, #000000);
}
.edit-member-select:has(option[value=""]:checked) {
  color: #21252980;
}

.edit-member-select:focus {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}

/* Date picker wrapper in profile */
.edit-member-date-wrap {
  position: relative;
  width: 100%;
}
.edit-member-date-wrap .edit-member-date-picker-wrapper {
  padding-right: 45px;
  display: flex;
  align-items: center;
}
.edit-member-date-wrap .edit-member-date-picker-icon svg {
  width: 23px;
  height: 24px;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.edit-member-date-wrap #dobDisplay {
  color: var(--textPrimary); /* black when date selected */
}

.edit-member-date-wrap #dobDisplay.placeholder-color {
  color: #21252980;
}

/* Password field */
.edit-member-pass-field {
  display: flex;
  gap: 28px;
}
.edit-member-pass-label-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-basis: 165px;
  flex-shrink: 0;
}
.edit-member-radio-wrapper,
.edit-member-checkbox-wrapper {
  display: flex;
  column-gap: 20px;
  row-gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.radio-label-wrapper,
.checkbox-label-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.radio-label-wrapper input[type="radio"] {
  accent-color: var(--textAccent);
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.edit-member-radio-wrapper label,
.edit-member-checkbox-wrapper label {
  margin-bottom: 0 !important;
  cursor: pointer;
}
.medication-status-wrapper {
  display: flex;
  align-items: center;
  column-gap: 16px;
  flex-wrap: wrap;
}
.medication-status-wrapper > div:first-child {
  flex: 1;
  flex-basis: 125px;
}
.medication-status-wrapper > div:nth-child(2) {
  flex: 1;
  flex-basis: 166px;
}
.checkbox-label-wrapper {
  gap: 9px;
}
.checkbox-label-wrapper input[type="checkbox"] {
  accent-color: var(--textAccent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.edit-member-update-btn {
  padding: 16.5px 30px;
  max-width: fit-content;
  margin: 0 auto;
}
.radio-checkbox-wrapper {
  margin-bottom: 30px;
}
.add-exercise-btn {
  padding: 16.5px 33px;
  max-width: fit-content;
  margin: 0 auto;
}
.add-new-exercise-body {
  padding: 63px 45px;
}

/* =========================================================
       RESPONSIVE —  (max-width: 1280px)
       ========================================================= */
@media (max-width: 1280px) {
  .edit-member-body {
    padding: 38px 30px 43px 30px;
  }
  .add-new-exercise-body {
    padding: 50px 30px;
  }
  .edit-member-card {
    margin-bottom: 30px;
  }
  .edit-member-section-subtitle {
    margin-bottom: 27px;
  }
}
/* =========================================================
       RESPONSIVE — MOBILE (max-width: 767px)
       ========================================================= */
@media (max-width: 767px) {
  .edit-member-body {
    padding: 24px 17px 30px 17px;
    overflow: hidden;
  }
  .add-new-exercise-body {
    padding: 35px 17px;
  }
  .edit-member-info-form {
    padding-top: 20px;
    position: relative;
  }
  .add-new-exercise-form {
    padding-top: 0;
  }
  .edit-member-form-divider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1px;
    background-color: #dee1e7;
  }

  .edit-member-card {
    margin-bottom: 88px;
  }
  .edit-member-section-subtitle {
    margin-bottom: 16px;
  }
  .edit-member-label {
    margin-bottom: 8px;
  }
  .edit-member-input,
  .edit-member-select,
  .edit-member-date-picker-wrapper {
    height: 52px;
    padding: 13px 18px;
  }
  .edit-member-pass-field {
    flex-direction: column;
    gap: 8px;
  }
  .edit-member-pass-label-wrap {
    flex-basis: auto;
  }
  .edit-member-field {
    margin-bottom: 16px;
  }
  .radio-checkbox-wrapper {
    margin-bottom: 30px;
  }
}

/*--------------------------- Exercise Library Page  ---------------------------*/

/* =========================================================
       FILTER BAR
       ========================================================= */
.exercise-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 24px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: var(--radius-sm);
  box-shadow: var(--cardShadow);
}

.exercise-filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exercise-filter-label {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: var(--textSecondary);
}

/* Category Dropdown */

.exercise-filter-select {
  width: 100%;
  height: 50px;
  padding: 14px 15px;
  padding-right: 40px;
  background-color: var(--inputBackground, #fcfcfc);
  border: 1px solid var(--inputBorder, #e4e3eb);
  border-radius: var(--radius-sm, 8px);
  font-size: 16px;
  line-height: 20px;
  color: var(--textPrimary, #000000);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.exercise-filter-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23' height='23' viewBox='0 0 23 23' fill='none'%3E%3Cpath d='M5.54688 8.3208L11.094 13.868L16.6412 8.3208' stroke='%23000000' stroke-opacity='0.5' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.exercise-filter-select option {
  color: var(--textPrimary, #000000);
}
.exercise-filter-select:has(option[value=""]:checked) {
  color: #21252980;
}

.exercise-filter-select:focus {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}

.filter-group-category {
  flex-basis: 192px;
  flex-shrink: 1;
  flex-grow: 0;
}

/* Search Input */
.exercise-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.exercise-search-wrap svg {
  position: absolute;
  left: 16px;
  width: 24px;
  height: 24px;
  color: var(--textPrimary);
  pointer-events: none;
}

.exercise-search-input {
  padding: 14px 15px 14px 50px;
  background-color: var(--inputBackground);
  border: 1px solid var(--inputBorder);
  border-radius: var(--radius-sm);
  font-size: 16px;
  line-height: 20px;
  color: var(--textPrimary);
  outline: none;
  transition: border-color 0.15s ease;
  min-width: 220px;
  width: 100%;
}

.exercise-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}

.exercise-search-input::placeholder {
  color: var(--textSecondary);
}
.filter-group-search {
  flex-basis: 250px;
  flex-shrink: 2;
  flex-grow: 1;
}

/* Status Filter Tabs */
#library-filter-tabs {
  margin-bottom: 0 !important;
  height: 50px;
}
#library-filter-tabs .white-black-filter-btn {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  flex: 1;
  color: var(--textSecondary);
}
#library-filter-tabs .white-black-filter-btn.active {
  color: white;
}
.filter-group-tabs {
  flex-basis: 251px;
  flex-shrink: 1;
  flex-grow: 0;
}

/* Action Buttons */
.exercise-action-btns {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-left: auto;
  flex-basis: 225px;
  flex-shrink: 1;
  flex-grow: 0;
}
.exercise-action-btns{
  flex-basis: 117px;
  margin-left: 0;
}

.exercise-apply-btn {
  padding: 13px 20px;
  flex: 1;
}

.exercise-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--btnSecondaryBg);
  border-radius: var(--radius-sm);
  font-size: 16px;
  line-height: 20px;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background-color 0.15s ease;
  padding: 13px 20px;
  border: 1px solid var(--btnPrimaryBorder);
  color: var(--textAccent);
  flex: 1;
  text-decoration: none;
  border: 1px solid #111827;
  color: #000;
  background: white;
}

.exercise-clear-btn:hover {
  /* background-color: var(--sidebarActive); */
  background: var(--sidebar);
}

.exercise-clear-btn:active {
  transform: translateY(1px);
}

/* =========================================================
       EXERSISE CONTENT
       ========================================================= */
.exercise-content {
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: var(--radius-sm);
  box-shadow: var(--cardShadow);
  margin-top: 28px;
}
.exercise-results-count {
  padding: 36px 28px 21px 28px;
  font-size: 18px;
  line-height: 16px;
  font-weight: 700;
  color: #212529;
}

/* =========================================================
       TABLE
       ========================================================= */
.exercise-table-wrap {
  padding-bottom: 20px;
  overflow-x: auto;
}

.exercise-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  /* min-width: 600px; */
  min-width: 768px;
}

.exercise-table thead th {
  padding: 18px 18px;
  text-align: left;
  font-size: 18px;
  line-height: 25px;
  font-weight: 500;
  color: var(--textPrimary);
  background-color: var(--tableHeader);
  white-space: nowrap;
}

.exercise-table thead th:first-child {
  width: 60px;
  padding-left: 60px;
  text-align: center;
}
.exercise-table thead th:last-child {
  padding-right: 60px;
}

/* .exercise-table thead th:nth-child(2) {
  width: 50px;
  text-align: center;
} */

.exercise-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--borderLight);
  font-size: 16px;
  line-height: 20px;
  color: var(--textSecondary);
  vertical-align: middle;
  white-space: nowrap;
}
.exercise-table tbody td:first-child {
  padding-left: 60px;
}
.exercise-table tbody td:last-child {
  padding-right: 60px;
}

.exercise-table tbody tr:last-child td {
  border-bottom: none;
}

.exercise-table tbody tr:hover {
  background-color: #f8f9fb;
}

/* Edit column */
.edit-exercise-link {
  text-decoration: none;
  color: var(--textAccent);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.edit-exercise-link:hover {
  color: var(--accent);
}
.edit-exercise-link svg {
  width: 25px;
  height: 25px;
}
/* No. column */
.exercise-no {
  color: var(--textSecondary);
}

/* Category badge */
.exercise-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 19px;
  background-color: #e6edfb;
  border-radius: 4px;
  font-weight: 400;
  color: var(--textSecondary);
}

/* Exercise name */
.exercise-name {
  margin-left: 15px;
}

/* Video Link */
.exercise-video-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--textAccent);
  text-decoration: none;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.exercise-video-link:hover {
  opacity: 0.8;
}

.exercise-video-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.exercise-video-link-arrow-icon{
  transform: rotate(45deg);
}
.exercise-card .homework-showing-text {
  margin: 0 !important;
}
/* =========================================================
       TABLE COLUMNS WIDTH
 ========================================================= */
.exercise-col-edit {
  width: 60px;
}

.exercise-col-no {
  /* width: 20%; */
  width: 14%;
}

.exercise-col-category {
  /* width: 35%; */
  width: 46%;
}
.exercise-col-video {
  width: auto;
}

/* =========================================================
       RESPONSIVE
       ========================================================= */
@media (max-width: 767px) {
  .exercise-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 24px 20px;
  }
  .filter-group-search,
  .filter-group-category,
  .filter-group-tabs,
  .exercise-action-btns {
    flex-basis: auto;
    flex-grow: 1;
    flex-shrink: 1;
  }
  .exercise-action-btns {
    margin-left: 0;
    width: 100%;
  }
  .exercise-action-btns button {
    flex: 1;
  }
  .exercise-search-input {
    min-width: 100%;
  }

  .exercise-results-count {
    padding: 30px 20px 21px 20px;
    font-size: 16px;
    line-height: 1.4;
  }
  .exercise-col-category {
    width: auto;
  }
  .exercise-col-video {
      width: auto;
  }
  .exercise-table thead th {
    padding: 15px 15px;
    font-size: 16px;
    line-height: 20px;
  }

  .exercise-table thead th:first-child,
  .exercise-table tbody td:first-child {
    padding-left: 30px;
  }
  .exercise-table thead th:last-child,
  .exercise-table tbody td:last-child {
    padding-right: 30px;
  }
  .exercise-table tbody td {
    padding: 13px 13px;
  }
  .edit-exercise-link svg {
    width: 22px;
    height: 22px;
  }
  .exercise-category-badge {
    /* padding: 8px 14px; */
    padding: 6px 10px;
  }
  .exercise-name {
    margin-left: 10px;
  }

  .exercise-video-link {
    gap: 4px;
  }
  .exercise-video-link svg {
    width: 22px;
    height: 22px;
  }

  .exercise-action-btns button {
    height: 45px;
    padding: 10px 15px;
    font-size: 15px;
    line-height: 18px;
  }
  .exercise-filter-label {
    font-size: 15px;
    line-height: 18px;
  }
  .exercise-filter-group {
    gap: 10px;
  }
  .exercise-filter-select {
    height: 45px;
    padding: 10px 15px;
    font-size: 15px;
    line-height: 18px;
  }
  .exercise-search-wrap svg {
    left: 14px;
    width: 20px;
    height: 20px;
  }
  .exercise-search-input {
    padding: 12px 15px 12px 40px;
    height: 45px;
    font-size: 15px;
    line-height: 18px;
  }
  #library-filter-tabs .white-black-filter-btn {
    font-size: 15px;
    line-height: 18px;
  }
  #library-filter-tabs {
    height: 45px;
  }

  .exercise-table tbody td {
    font-size: 16px;
    line-height: 20px;
  }

  /* =========================================================
       TABLE COLUMNS WIDTH
 ========================================================= */

  .exercise-table {
    min-width: 600px;
  }
  .exercise-col-no {
    width: 10%;
  }
}
@media (max-width: 505px) {
  .exercise-filter-bar {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
}

/*--------------------------- Resistance Training 1 Page  ---------------------------*/
.res-training-title {
  margin: 0;
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--textPrimary);
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 10px;
}
.res-training-title svg {
  width: 21px;
  height: 21px;
}
.res-training-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.res-training-body .attach-docs-card {
  margin-top: 20px;
  flex: 1;
}
@media (max-width: 767px) {
  .res-training-title {
    font-size: 16px;
    line-height: 20px;
  }
}

/*--------------------------- Homework 1 Page  ---------------------------*/
.homework-1-body .attach-docs-card {
  padding: 24px 25px 64px;
}
@media (max-width: 767px) {
  .homework-1-body .attach-docs-card {
    padding: 16px;
    padding-bottom: 40px;
  }
}

/*--------------------------- Resistance Training 1 Detail Page  ---------------------------*/

/* PAGE HEADER */
.rt-page-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 23px;
}
.rt-page-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--textPrimary);
  margin: 0;
}
.rt-page-title .rt-title-icon {
  width: 21px;
  height: 21px;
  color: var(--textSecondary);
}
.rt-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.rt-header-text {
  background: var(--inputBackground);
  border: 1px solid var(--inputBorder);
  border-radius: var(--radius-xs);
  padding: 8px 17px;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
}
.rt-btn-show {
  display: inline-flex;
  align-items: center;
  padding: 8px 17px;
  /* background-color: var(--textAccent);
  border: 1px solid var(--textAccent);
  color: white; */
  background: var(--inputBackground);
  border: 1px solid var(--inputBorder);
  color: var(--textSecondary);
  border-radius: var(--radius-xs);
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.rt-btn-show:disabled{
  background-color: var(--textAccent);
  border: 1px solid var(--textAccent);
  color: white;
}
.rt-btn-show:hover {
  opacity: 0.9;
}

/* TOP CONTROL BAR */
.rt-control-bar {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
  container: control-bar/inline-size;
}
.rt-control-phase {
  background-color: #fcfcfd;
  border: 1px solid var(--inputBorder);
  padding: 25px 22px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.rt-phase-label {
  font-size: 18px;
  line-height: 24px;
  color: var(--textSecondary);
}
.rt-select-wrapper {
  position: relative;
  width: 100%;
}
.rt-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 30px 8px 11px;
  background-color: var(--inputBackground);
  border: 1px solid var(--inputBorder);
  border-radius: var(--radius-xs);
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  cursor: pointer;
  min-width: 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23000000' stroke-opacity='0.5' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.rt-select option {
  color: var(--textPrimary, #000000);
}
.rt-select:has(option[value=""]:checked) {
  color: #21252980;
}

.rt-select:focus {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}
.rt-internal-notes {
  background-color: #fcfcfd;
  border: 1px solid var(--inputBorder);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  flex: 2;
  flex-basis: 300px;
  max-width: 468px;
}
.rt-internal-notes-label {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--textSecondary);
  text-transform: uppercase;
}
.rt-internal-notes-text {
  font-size: 12px;
  font-weight: 400;
  background-color: var(--inputBackground);
  border: 1px solid var(--inputBorder);
  border-radius: var(--radius-xs);
  padding: 5px 8px;
  color: #d74549;
  line-height: 18px;
  margin: 0;
  flex: 1 1 195px;
}
.rt-control-date {
  background-color: #fcfcfd;
  border: 1px solid var(--inputBorder);
  padding: 25px 22px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.rt-date-label {
  font-size: 18px;
  line-height: 24px;
  color: var(--textSecondary);
}

.rt-date-input {
  width: 100%;
  height: 35px;
  padding: 8px 30px 8px 11px;
  background-color: var(--inputBackground, #fcfcfc);
  border: 1px solid var(--inputBorder, #e4e3eb);
  border-radius: var(--radius-xs, 4px);
  font-size: 14px;
  line-height: 18px;
  min-width: 180px;
  color: var(--textSecondary);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.rt-date-input::placeholder {
  color: var(--textSecondary);
}

.rt-date-input:focus {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}

.rt-date-icon svg {
  width: 17px;
  height: 17px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.rt-internal-notes-last {
  display: none;
  max-width: 100%;
}
@container control-bar (max-width:885px) {
  .rt-internal-notes {
    display: none;
  }
  .rt-internal-notes-last {
    padding: 25px 22px;
    display: flex;
  }
}

/* CARDS */
.rt-card {
  background-color: #fcfcfd;
  border: 1px solid var(--inputBorder);
  border-radius: var(--radius-sm);
  padding: 20px 14px;
  margin-bottom: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.rt-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 23px;
}
.rt-card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--textPrimary);
  background-color: #eef0f9;
  font-size: 14px;
  border-radius: 8px;
}
.rt-card-icon svg {
  width: 16px;
  height: 16px;
}
.rt-card-title {
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--textPrimary);
  text-transform: uppercase;
  margin: 0;
}

/* TABLE STYLES */
.rt-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.rt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.rt-table th {
  text-align: left;
  padding: 8px 5px;
  font-weight: 700;
  color: var(--textPrimary);
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
}
.rt-table td {
  padding: 8px 5px;
}
.rt-table tbody tr:first-child td {
  padding-top: 2px;
}
.rt-card .rt-table thead th:not(:first-child),
.rt-card .rt-table tbody td:not(:first-child) {
  text-align: center;
}
.rt-table-input {
  width: 100%;
  padding: 3px 8px;
  background-color: var(--inputBackground);
  border: 1px solid var(--inputBorder);
  border-radius: 4px;
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  text-align: center;
}
.rt-table-input::placeholder {
  color: var(--textSecondary);
}
.rt-table-select {
  width: 100%;
  padding: 3px 25px 3px 7px;
  background-color: var(--inputBackground);
  border: 1px solid var(--inputBorder);
  border-radius: 4px;
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%236B7280' stroke-opacity='0.5' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  cursor: pointer;
}
.rt-exercise-name {
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  text-transform: uppercase;
  font-weight: 400;
}
.rt-exercise-select {
  width: 100%;
  padding: 3px 30px 3px 7px;
  background-color: var(--inputBackground);
  border: 1px solid var(--inputBorder);
  border-radius: 4px;
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%236B7280' stroke-opacity='0.5' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  cursor: pointer;
}
.rt-table-select:focus,
.rt-exercise-select:focus,
.rt-table-input:focus {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}

/* EXERCISE DETAILS TABLE (Large) */
.exercise-details-wrapper {
  margin-block: 16px;
}
.exercise-details-wrapper .rt-card {
  padding-top: 0;
  padding-inline: 0;
}
.exercise-details-wrapper .rt-card .rt-card-header {
  padding: 20px 14px 0;
}
.rt-exercise-details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 970px;
}
.rt-exercise-details-table th {
  text-align: center;
  padding: 6px 12px;
  font-weight: 600;
  color: var(--textPrimary);
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
  white-space: nowrap;
}
.rt-exercise-details-table th:first-child,
.rt-exercise-details-table td:first-child {
  text-align: left;
  padding-left: 20px;
}
.rt-exercise-details-table td {
  padding: 4px 14px;
  color: var(--textSecondary);
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
}
.rt-exercise-details-table tbody tr:nth-child(even) {
  background-color: #f6f5ff;
}
.rt-exercise-details-table .rt-row-number {
  color: var(--textSecondary);
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
}
.rt-exercise-details-table .rt-exercise-cell {
  color: var(--textSecondary);
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  text-align: center;
}
.rt-exercise-details-table .rt-week-header {
  font-size: 16px;
  line-height: 20px;
}
.rt-exercise-details-table .rt-week-sub {
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
}
.rt-exercise-details-table .rt-table-input {
  max-width: 86px !important;
}

/* NOTES */
.rt-notes-textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  background-color: var(--inputBackground);
  border: 1px solid var(--inputBorder);
  border-radius: var(--radius-xs);
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  resize: vertical;
  flex-grow: 1;
}
.rt-notes-textarea::placeholder {
  color: var(--textSecondary);
}

/* WEIGHTS TABLE */

.rt-card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.rt-card-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.rt-card-info-icon svg {
  width: 18px;
  height: 18px;
}
.rt-weight-card {
  container: rt-weights-card/inline-size;
}
.rt-weights-tables-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.rt-weights-tables-wrapper table {
  max-width: 225px;
  flex-basis: 150px;
  flex-grow: 1;
}
.rt-weights-tables-wrapper .rt-table tbody td {
  padding: 2px;
}

@container rt-weights-card (max-width:330px) {
  .rt-weights-tables-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  .rt-weights-tables-wrapper table {
    max-width: 100%;
    flex-basis: auto;
  }
}

/* HINTS */
.rt-hint-card .rt-table tbody td {
  padding: 2px;
}

/* CHECKBOX */
.rt-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
}
.rt-checkbox-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.rt-checkbox-wrapper label {
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  cursor: pointer;
}
.rt-update-btn {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  padding: 6px 20px;
  max-width: 115px;
  background-color: var(--textAccent);
  border: none;
  border-radius: 4px;
  color: white;
  margin-top: 5px;
  margin-inline: auto;
  display: flex;
}

.rt-update-btn:hover {
  opacity: 0.92;
}

.rt-update-btn:active {
  transform: translateY(1px);
}

/* RESPONSIVE */
@media (min-width: 1280px) {
  .rt-card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) and (max-width: 991px) {
  .rt-card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 991px) {
  .rt-date-label,
  .rt-phase-label {
    font-size: 16px;
    line-height: 20px;
  }
  .rt-hints-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rt-card-title {
    font-size: 16px;
    line-height: 20px;
  }
  .rt-table th {
    font-size: 14px;
    line-height: 18px;
  }
  .rt-card-grid,
  .rt-card-grid-2 {
    gap: 12px;
  }
  .exercise-details-wrapper {
    margin-block: 12px;
  }
  .rt-control-bar {
    column-gap: 12px;
    row-gap: 12px;
  }
  .rt-exercise-details-table th,
  .rt-exercise-details-table .rt-week-header,
  .rt-exercise-details-table .rt-week-sub {
    font-size: 14px;
    line-height: 18px;
  }
}
@media (max-width: 767px) {
  .rt-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .rt-card-grid,
  .rt-card-grid-2 {
    gap: 10px;
  }
  .exercise-details-wrapper {
    margin-block: 10px;
  }
  .rt-card-header {
    margin-bottom: 15px;
  }
  .rt-control-bar {
    /* flex-direction: column;
    align-items: flex-start; */
    column-gap: 10px;
    row-gap: 10px;
  }
  .rt-control-phase,
  .rt-control-date,
  .rt-internal-notes,
  .rt-internal-notes-last {
    padding: 18px;
  }
  .rt-internal-notes {
    max-width: 100%;
    width: 100%;
  }
  .rt-exercise-details-table {
    font-size: 10px;
  }
  /* .rt-exercise-details-table th,
  .rt-exercise-details-table td {
    padding: 4px 2px;
  } */
  .rt-exercise-details-table th {
    padding: 6px 8px;
  }
  .rt-exercise-details-table td {
    padding: 4px 10px;
  }
  .rt-hints-grid {
    grid-template-columns: 1fr;
  }
}

/*--------------------------- Homework Detials 1 page  ---------------------------*/

.homework-detail-body {
  container: homework-detail-body/inline-size;
}
/* ===== TOP CONTROL BAR ===== */
.corr-control-bar {
  display: flex;
  /* flex-direction: column; */
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.corr-control-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.corr-control-phase {
  background-color: #fcfcfd;
  border: 1px solid var(--inputBorder);
  padding: 25px 22px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-basis: 320px;
  /* width: fit-content; */
}
.corr-control-label {
  font-size: 18px;
  line-height: 24px;
  color: var(--textSecondary);
}
.corr-editor-wrapper {
  flex: 1;
  flex-basis: 400px;
}
@container homework-detail-body (max-width: 740px) {
  .corr-control-bar {
    flex-direction: column;
  }
  .corr-control-phase,
  .corr-editor-wrapper {
    flex-basis: auto;
    width: 100%;
  }
}
.corr-control-input {
  padding: 8px 11px;
  background-color: var(--inputBackground);
  border: 1px solid var(--inputBorder);
  border-radius: var(--radius-xs);
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  /* cursor: pointer; */
  min-width: 180px;
}
.corr-control-input:focus {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}

/* ===== INTERNAL NOTES EDITOR ===== */
.corr-internal-notes-wrap {
  /* flex: 1;
  min-width: 300px;
  max-width: 600px; */
  background-color: #fcfcfd;
  border: 1px solid var(--inputBorder);
  padding: 25px 22px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.corr-internal-notes-label {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--textSecondary);
}

/* ===== QUILL EDITOR CUSTOM STYLING ===== */
.corr-email-editor-wrap {
  background-color: var(--card);
  border: 1px solid var(--borderLight);
  border-radius: 12px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  /* overflow: hidden; */
}
.corr-card .corr-email-editor-wrap {
  height: 100%;
}
.corr-email-editor-wrap .ql-toolbar {
  border: none !important;
  border-bottom: 1px solid var(--inputBorder) !important;
  background-color: var(--inputBackground);
  padding: 8px 12px !important;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.corr-email-editor-wrap .ql-toolbar .ql-formats {
  margin-right: 0 !important;
  display: flex;
  align-items: center;
  gap: 2px;
  padding-right: 8px;
  border-right: 1px solid var(--borderLight);
  flex-wrap: wrap;
}
.corr-email-editor-wrap .ql-toolbar .ql-formats:nth-child(3),
.corr-email-editor-wrap .ql-toolbar .ql-formats:nth-child(4) {
  padding-left: 8px;
}

.corr-email-editor-wrap .ql-toolbar .ql-formats:last-child {
  border-right: none;
  padding-right: 0;
}

.corr-email-editor-wrap .ql-toolbar .ql-formats:first-child {
  border-right: none;
}

.corr-email-editor-wrap .ql-toolbar button {
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s ease;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.corr-email-editor-wrap .ql-toolbar button:hover {
  background-color: var(--sidebarActive);
}

.corr-email-editor-wrap .ql-toolbar button.ql-active {
  background-color: var(--sidebarActive);
  color: var(--accent);
}

.corr-email-editor-wrap .ql-toolbar button svg {
  width: 21px;
  height: 21px !important;
}

/* Style the dropdown (Paragraph selector) */
.corr-email-editor-wrap .ql-toolbar .ql-picker {
  height: 32px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--borderLight);
  padding-right: 5px;
  width: 117px !important;
}

.corr-email-editor-wrap .ql-toolbar .ql-picker-label {
  border: none !important;
  padding: 0 8px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: var(--textSecondary);
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  transition: all 0.15s ease;
  outline: none;
}

.corr-email-editor-wrap .ql-toolbar .ql-picker-label:hover {
  background-color: var(--sidebarActive);
  color: var(--textPrimary);
}

.corr-email-editor-wrap .ql-toolbar .ql-picker-label::before {
  line-height: 32px;
}

.corr-email-editor-wrap .ql-toolbar .ql-picker-options {
  /* border: 1px solid var(--inputBorder);
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow2);
      padding: 4px;
      background-color: var(--card); */
  background: #fefefe;
  border: 1px solid #ebe7e7 !important;
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow3) !important;
}

.corr-email-editor-wrap .ql-toolbar .ql-picker-item {
  /* padding: 6px 12px;
      border-radius: 6px;
      font-size: 14px;
      color: var(--textPrimary); */
  padding: 8px 10px;
  display: flex;
  border-radius: 6px;
  gap: 10px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--textSecondary);
  transition: all 0.15s ease;
}

.corr-email-editor-wrap .ql-toolbar .ql-picker-item:hover {
  background-color: var(--sidebarActive);
}

.corr-email-editor-wrap .ql-toolbar .ql-picker-item.ql-selected {
  background-color: var(--sidebarActive);
}

/* Custom SVG icons for Quill buttons */
.corr-email-editor-wrap .ql-bold .ql-stroke {
  stroke: var(--textSecondary);
}
.corr-email-editor-wrap .ql-bold:hover .ql-stroke,
.corr-email-editor-wrap .ql-bold.ql-active .ql-stroke {
  stroke: var(--textPrimary);
}

.corr-email-editor-wrap .ql-italic .ql-stroke {
  stroke: var(--textSecondary);
}
.corr-email-editor-wrap .ql-italic:hover .ql-stroke,
.corr-email-editor-wrap .ql-italic.ql-active .ql-stroke {
  stroke: var(--textPrimary);
}

.corr-email-editor-wrap .ql-underline .ql-stroke {
  stroke: var(--textSecondary);
}
.corr-email-editor-wrap .ql-underline:hover .ql-stroke,
.corr-email-editor-wrap .ql-underline.ql-active .ql-stroke {
  stroke: var(--textPrimary);
}

.corr-email-editor-wrap .ql-strike .ql-stroke {
  stroke: var(--textSecondary);
}
.corr-email-editor-wrap .ql-strike:hover .ql-stroke,
.corr-email-editor-wrap .ql-strike.ql-active .ql-stroke {
  stroke: var(--textPrimary);
}

.corr-email-editor-wrap .ql-list .ql-stroke,
.corr-email-editor-wrap .ql-link .ql-stroke,
.corr-email-editor-wrap .ql-image .ql-stroke {
  stroke: var(--textSecondary);
}
.corr-email-editor-wrap .ql-list:hover .ql-stroke,
.corr-email-editor-wrap .ql-link:hover .ql-stroke,
.corr-email-editor-wrap .ql-image:hover .ql-stroke,
.corr-email-editor-wrap .ql-list.ql-active .ql-stroke,
.corr-email-editor-wrap .ql-link.ql-active .ql-stroke,
.corr-email-editor-wrap .ql-image.ql-active .ql-stroke {
  stroke: var(--textPrimary);
}

/* ── Toolbar: make it flex so actions can push right ── */
.corr-email-editor-wrap .ql-toolbar.ql-snow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background-color: var(--tableHeader);
  row-gap: 7px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* ── Spacer group that pushes buttons to the right ── */
.corr-email-editor-wrap .ql-toolbar .ql-toolbar-actions {
  /* margin-left: auto; */
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* ── Preview & Fullscreen buttons ── */
.corr-email-editor-wrap button.ql-custom-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px;
  padding: 6px 8px !important;
  border: none !important;
  background: transparent !important;
  border-radius: 6px !important;
  cursor: pointer;
  color: var(--textSecondary) !important;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  line-height: 1;
  transition: background 0.15s !important;
  width: auto !important;
  height: auto !important;
}

.corr-email-editor-wrap .ql-custom-separator {
  align-self: stretch;
  height: auto;
  width: 1px;
  background: var(--borderLight) !important;
}
.corr-email-editor-wrap button.ql-custom-btn:hover {
  background-color: var(--sidebarActive) !important;
}

.corr-email-editor-wrap button.ql-custom-btn svg {
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

/* ── Fullscreen overlay state ── */
.corr-email-editor-wrap.editor-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
}

.corr-email-editor-wrap.editor-fullscreen #corr-email-quill-editor {
  flex: 1;
  overflow-y: auto;
}

/* Editor content area */
.corr-email-editor-wrap .ql-container {
  border: none !important;
  font-size: 16px;
  line-height: 1.6;
  color: var(--textPrimary);
}

.corr-email-editor-wrap .ql-editor {
  min-height: 200px;
  padding: 16px;
}

.corr-email-editor-wrap .ql-editor.ql-blank::before {
  color: var(--textMuted);
  font-style: normal;
  font-size: 14px;
}

/* Custom footer with word count */
.corr-email-editor-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 13px 40px;
  border-top: 1px solid var(--borderLight);
  background-color: var(--card);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.corr-email-word-count {
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: var(--textMuted);
}

/* ===== MAIN CARD ===== */
.corr-card {
  background-color: var(--card);
  border: 1px solid var(--borderLight);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
  container: corr-card/inline-size;
}
.corr-card:last-child {
  margin-bottom: 0;
}
.corr-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-bottom: 1px solid var(--borderLight);
  background-color: var(--tableHeader);
}
.corr-card-title {
  font-size: 25px;
  line-height: 25px;
  font-weight: 500;
  color: var(--textPrimary);
  text-transform: uppercase;
  margin: 0;
}

/* ===== TABLE STYLES ===== */
.corr-table-wrapper {
  display: flex;
  padding-bottom: 20px;
  flex-wrap: wrap;
}
.corr-table-left {
  flex: 1;
  width: 100%;
  flex-basis: 410px;
  overflow-x: auto;
}
.corr-table-right {
  width: 45%;
  border-left: 1px solid var(--borderLight);
  flex-direction: column;
  display: flex;
}
@container corr-card (max-width: 795px) {
  .corr-table-wrapper {
    flex-direction: column;
    gap: 10px;
  }
  .corr-table-left {
    flex-basis: auto;
  }
  .corr-table-right {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--borderLight);
  }
}
.corr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 20px;
  min-width: 410px;
}
.corr-table th {
  text-align: left;
  padding: 13px 9px;
  font-weight: 500;
  color: var(--textPrimary);
  font-size: 18px;
  line-height: 25px;
  background-color: var(--tableHeader);
}
.corr-table th:nth-last-child(-n + 3) {
  text-align: center;
}
.corr-table td {
  padding: 17px 9px;
  border-bottom: 1px solid var(--borderLight);
  vertical-align: middle;
}

.corr-table th:first-child,
.corr-table td:first-child {
  padding-left: 30px;
}
.corr-table th:last-child,
.corr-table td:last-child {
  padding-right: 30px;
}

/* Checkbox column */
.corr-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Row number */
.corr-row-num {
  font-size: 18px;
  line-height: 25px;
  color: var(--textSecondary);
  font-weight: 500;
}

/* Exercise select */
.corr-exercise-select {
  width: 100%;
  padding: 8px 28px 8px 10px;
  background-color: var(--inputBackground);
  border: 1px solid var(--inputBorder);
  border-radius: 4px;
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='black' stroke-opacity='0.5' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
  max-width: 150px;
}

.corr-exercise-select option {
  color: var(--textPrimary, #000000);
}
.corr-exercise-select:has(option[value=""]:checked) {
  color: #21252980;
}

.corr-exercise-select:focus,
.corr-table-input:focus {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}

/* Table inputs */
.corr-table-input {
  width: 100%;
  padding: 6px 8px;
  background-color: var(--inputBackground);
  border: 1px solid var(--inputBorder);
  border-radius: 4px;
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  text-align: center;
}
.corr-table-input::placeholder {
  color: var(--textSecondary);
}

/* Notes section */
.corr-notes-label {
  font-size: 18px;
  line-height: 25px;
  font-weight: 500;
  color: var(--textPrimary);
  text-transform: uppercase;
  padding: 13px 9px;
  background-color: var(--tableHeader);
  text-align: center;
  margin-bottom: 9px;
}
.corr-notes-editor-wrap {
  padding: 10px;
  padding-bottom: 0;
  flex-grow: 1;
}
.corr-notes-editor-wrap .ql-editor {
  min-height: 280px !important;
}
.corr-card-save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  border-radius: 4px;
  border: none;
  padding: 12px 20px;
  color: white;
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
  margin: 0 auto;
  max-width: 185px;
  width: 100%;
  margin-block: 31px;
}

.corr-card-save-btn:hover {
  opacity: 0.92;
}

.corr-card-save-btn:active {
  transform: translateY(1px);
}
.homework-update-btn {
  max-width: fit-content;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .corr-table-wrapper {
    flex-direction: column;
  }
  .corr-table-right {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--borderLight);
  }
  .corr-control-label {
    font-size: 16px;
    line-height: 20px;
  }
  .corr-card-title {
    font-size: 20px;
    line-height: 20px;
  }
  .corr-table th,
  .corr-notes-label {
    font-size: 16px;
    line-height: 20px;
  }
}
@media (max-width: 767px) {
  .corr-control-phase,
  .corr-internal-notes-wrap {
    padding: 18px;
  }
  .corr-internal-notes-wrap {
    max-width: 100%;
    width: 100%;
  }

  .corr-email-fields-row {
    flex-direction: column;
    gap: 20px;
  }
  .corr-email-field-group {
    min-width: 100%;
  }
  .corr-email-editor-footer {
    padding: 13px 20px;
  }
  .corr-email-composer-card {
    padding: 21px 16px 40px;
    border-radius: 12px;
  }
  .corr-card-title {
    font-size: 18px;
    line-height: 20px;
  }
  .corr-table th {
    padding: 8px 5px;
  }
  .corr-table td {
    padding: 10px 5px;
  }

  .corr-table th:first-child,
  .corr-table td:first-child {
    padding-left: 20px;
  }

  .corr-table th:last-child,
  .corr-table td:last-child {
    padding-right: 20px;
  }
  .corr-card-save-btn {
    margin-block: 20px;
  }
}

/*--------------------------- Cardio page  ---------------------------*/
.cardio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 20px;
  margin-bottom: 23px;
}
.cardio-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cardio-med-btn {
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 16px;
  line-height: 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.3s ease;
}
.cardio-med-btn.is-active {
  background-color: #ebf2fc;
  border: 1px solid var(--textAccent);
  opacity: 1;
  color: var(--textAccent);
}
.cardio-med-btn svg {
  width: 20px;
  height: 20px;
}
.cardio-med-btn {
  background-color: #fefefe;
  border: 1px solid #788ca7;
  color: var(--textSecondary);
  opacity: 0.5;
}
.cardio-header .btn-add-homework {
  margin-left: 0;
  margin-bottom: 0;
}
.cardio-med-btn.is-active:hover {
  opacity: 0.92;
}

.cardio-med-btn:hover {
  opacity: 0.4;
}
.cardio-med-btn:active {
  transform: translateY(1px);
}
@media (max-width: 767px) {
  .cardio-med-btn {
    padding: 8px 16px;
    font-size: 14px;
    line-height: 18px;
  }
  .cardio-med-btn svg {
    width: 18px;
    height: 18px;
  }
}

/*--------------------------- Weekly Schedule Details 1 Page  ---------------------------*/

/* ===== PAGE HEADER ===== */
.ws-page-header {
  margin-bottom: 20px;
}
.ws-page-title {
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--textPrimary);
  margin: 0;
}
.ws-page-header h2:nth-child(2) {
  margin-top: 15px;
}
.ws-page-title svg {
  width: 21px;
  height: 21px;
}

/* ===== CARDS ===== */
.ws-card {
  background-color: #fcfcfd;
  border-radius: var(--radius-lg);
  padding: 44px 30px;
  margin-bottom: 20px;
}
.ws-card-filters {
  display: flex;
  flex-direction: column;
  row-gap: 17px;
  container: ws-card-filters/inline-size;
}
.ws-card-filter-top-bar {
  /* display: grid; */
  /* grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); */
  display: flex;
  flex-wrap: wrap;
  column-gap: 13px;
  row-gap: 17px;
}
.ws-card-filter-top-bar > div {
  flex: 1 1 220px;
}
.ws-card-filter-bottom-bar {
  display: grid;
  grid-template-columns: 7fr 5fr;
  column-gap: 13px;
  row-gap: 17px;
}
/* ===== FORM LABELS ===== */
.ws-label {
  display: block;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: var(--textPrimary);
  margin-bottom: 11px;
}

/* ===== INPUTS & TEXTAREAS ===== */
.ws-input {
  width: 100%;
  padding: 12px 9px;
  background-color: white;
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-xs);
  font-size: 13.57px;
  line-height: 17.44px;
  color: var(--textSecondary);
  transition: border-color 0.15s ease;
}
.ws-input:focus {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}
.ws-input::placeholder {
  color: var(--textSecondary);
}
.goal-field-wrapper {
  display: flex;
  flex-direction: column;
}
.ws-textarea {
  height: 100%;
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  background-color: white;
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-xs);
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  resize: vertical;
  transition: border-color 0.15s ease;
}
.ws-textarea:focus {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}
.ws-textarea::placeholder {
  color: var(--textSecondary);
}

/* ===== SELECT ===== */
.ws-select-wrapper {
  position: relative;
}
.ws-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 30px 12px 9px;
  background-color: white;
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-xs);
  font-size: 13.57px;
  line-height: 17.44px;
  color: var(--textSecondary);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21' fill='none'%3E%3Cpath d='M5.15552 7.7334L10.3111 12.8889L15.4666 7.7334' stroke='black' stroke-width='0.859258' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}

.ws-select option {
  color: var(--textPrimary, #000000);
}
.ws-select:has(option[value=""]:checked) {
  color: #21252980;
}
.ws-select:focus {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}

/* ===== WEEKLY SCHEDULE GRID ===== */
.ws-schedule-card {
  background-color: #fcfcfd;
  border-radius: var(--radius-lg);
  padding: 24px 25px 28px;
}
.ws-schedule-content-wrapper {
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #fcfcfd;
  container: ws-schedule-content-wrapper/inline-size;
}
.ws-schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.ws-day-column {
  border-right: 1px solid var(--borderLight);
  display: flex;
  flex-direction: column;
}
.ws-day-column:last-child {
  border-right: none;
}

.ws-day-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 14px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--textSecondary);
  text-transform: uppercase;
  border-bottom: 1px solid var(--borderLight);
  background-color: #f4f7fa;
}
.ws-day-header svg {
  width: 25px;
  height: 25px;
}
.ws-day-slots {
  padding: 13px 14px 27px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.ws-slot {
  position: relative;
}
.ws-slot-textarea {
  width: 100%;
  min-height: 70px;
  padding: 9px;
  background-color: white;
  border: 1px solid var(--borderLight);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--textSecondary);
  resize: vertical;
  line-height: 1.4;
}
.ws-slot-textarea:focus {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}
.ws-slot-textarea::placeholder {
  color: var(--textSecondary);
}
.ws-schedule-footer {
  padding: 16px 0px;
}
/* ===== RESPONSIVE ===== */
@container ws-card-filters (max-width:610px) {
  .ws-card-filter-bottom-bar {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1440px) {
  .ws-schedule-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .ws-day-column:nth-child(4) {
    border-right: none;
  }
  .ws-day-column:nth-child(1),
  .ws-day-column:nth-child(2),
  .ws-day-column:nth-child(3),
  .ws-day-column:nth-child(4) {
    border-bottom: 1px solid var(--borderLight);
  }
  .ws-day-column:last-child {
    border-right: 1px solid var(--borderLight);
  }
}

@container ws-schedule-content-wrapper (max-width:767px) {
  .ws-schedule-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ws-day-column:nth-child(3),
  .ws-day-column:nth-child(6) {
    border-right: none;
  }
  .ws-day-column:nth-child(4) {
    border-right: 1px solid var(--borderLight);
  }
  .ws-day-column:nth-child(5),
  .ws-day-column:nth-child(6) {
    border-bottom: 1px solid var(--borderLight);
  }
}
@media (max-width: 991px) {
  .ws-day-slots {
    gap: 8px;
    padding-bottom: 20px;
  }
}
@media (max-width: 767px) {
  .ws-page-title {
    font-size: 16px;
    line-height: 20px;
  }
  .ws-card {
    padding: 30px 20px;
  }
  .ws-schedule-card {
    padding: 20px 16px 20px;
  }
  .ws-day-header {
    padding: 12px 10px;
    font-size: 15px;
  }
  .ws-day-header svg {
    width: 21px;
    height: 21px;
  }
  .ws-page-header h2:nth-child(2) {
    margin-top: 10px;
  }
  .ws-card-filters {
    row-gap: 15px;
  }
  .ws-schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ws-day-column:nth-child(2),
  .ws-day-column:nth-child(4) {
    border-right: none;
  }
  .ws-day-column:nth-child(3),
  .ws-day-column:nth-child(5) {
    border-right: 1px solid var(--borderLight);
  }
}
@media (max-width: 480px) {
  .ws-schedule-grid {
    grid-template-columns: 1fr;
  }
  .ws-day-column {
    border-right: none !important;
    border-bottom: 1px solid var(--borderLight);
  }
  .ws-day-column:last-child {
    border-bottom: none;
  }
}
.ws-details-form button.rt-update-btn {
  max-width: 165px;

}

/*--------------------------- Cardio Details 1 Page  ---------------------------*/

/* ===== PAGE HEADER ===== */

.cd-page-header {
  margin-bottom: 20px;
}
.cd-page-title {
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--textPrimary);
  margin: 0;
}
.cd-page-title svg {
  width: 21px;
  height: 21px;
}

/* ===== CARDS ===== */
.cd-card {
  background-color: #fcfcfd;
  border-radius: var(--radius-lg);
  padding: 44px 30px;
  margin-bottom: 19px;
}

/* ===== FORM LABELS ===== */
.cd-label {
  display: block;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: var(--textPrimary);
  margin-bottom: 11px;
}

/* ===== INPUTS & TEXTAREAS ===== */

.cd-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  background-color: white;
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-xs);
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  resize: vertical;
  transition: border-color 0.15s ease;
}
.cd-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}
.cd-textarea::placeholder {
  color: var(--textSecondary);
}

/* ===== SELECT ===== */
.cd-select-wrapper {
  position: relative;
}
.cd-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 30px 12px 9px;
  background-color: white;
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-xs);
  font-size: 13.57px;
  line-height: 17.44px;
  color: var(--textSecondary);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21' fill='none'%3E%3Cpath d='M5.15552 7.7334L10.3111 12.8889L15.4666 7.7334' stroke='black' stroke-width='0.859258' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}

.cd-select option {
  color: var(--textPrimary, #000000);
}
.cd-select:has(option[value=""]:checked) {
  color: #21252980;
}
.cd-select:focus {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}
.cd-select[type="text"]{
  cursor: text;
}
.cd-card-body-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 13px;
}
/* ===== TABLE STYLES ===== */
.cd-data-card-grid {
  background-color: #fcfcfd;
  border-radius: var(--radius-lg);
  padding: 24px 25px;
  margin-bottom: 19px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}
.cardio-details-internal-notes-editor .ql-editor {
  min-height: 90px !important;
}
.cd-data-card {
  background-color: #fcfcfd;
  border-radius: 8px;
  border: 1px solid var(--borderLight);
  overflow: hidden;
}
.cd-table-wrapper {
  overflow-x: auto;
}
.cd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 435px;
}
.cd-table th {
  text-align: left;
  padding: 7px 15px;
  font-weight: 500;
  color: var(--textSecondary);
  font-size: 14px;
  line-height: 18px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--borderLight);
  border-top: 1px solid var(--borderLight);
  background-color: #f4f7fa;
  text-align: center;
}
.cd-table th:first-child {
  text-align: left;
}
.cd-table th:not(:last-child) {
  border-right: 1px solid var(--borderLight);
}
.cd-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--borderLight);
  border-right: 1px solid var(--borderLight);
  text-align: center;
  vertical-align: middle;
  font-size: 13.57px;
  line-height: 17.44px;
  color: var(--textSecondary);
}
.cardio-phase-form .cd-table td{
  font-size: 13.57px;
  line-height: 17.44px;
}
.cardio-phase-form .cd-table {
  min-width: auto;
  white-space: nowrap;
}
.cd-table tr:last-child td {
  border-bottom: none;
}
.cd-table td:last-child {
  border-right: none;
}
.cd-table td:first-child {
  text-align: left;
}
.cd-table-input {
  /* width: 100%; */
  max-width: 95px;
  padding: 5px 8px;
  background-color: white;
  border: 1px solid var(--borderLight);
  border-radius: 4px;
  font-size: 13.57px;
  line-height: 17.44px;
  font-weight: 500;
  color: var(--textSecondary);
  text-align: center;
}
.cd-table-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}
.cd-table-input::placeholder {
  color: var(--textMuted);
  font-size: 10px;
  line-height: 17.44px;
}
.cd-zone-label {
  font-size: 13.57px;
  line-height: 17.44px;
  font-weight: 500;
  color: var(--textSecondary);
  text-transform: uppercase;
}

/* ===== CARD HEADER WITH ICON ===== */
.cd-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 17px;
  background-color: #f4f7fa;
}
.cd-card-icon {
  width: 24px;
  height: 24px;
  color: var(--textPrimary);
}
.cd-card-title {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--textSecondary);
  text-transform: uppercase;
  margin: 0;
}

/* ===== WEEKS CARD ===== */
.cd-weeks-card {
  background-color: #fcfcfd;
  border-radius: 8px;
  border: 1px solid var(--borderLight);
  overflow: hidden;
}
.cd-weeks-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 17px;
  background-color: #f4f7fa;
  border-bottom: 1px solid var(--borderLight);
}
.cd-weeks-title {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--textSecondary);
  text-transform: uppercase;
  margin: 0;
}
.cd-weeks-icon {
  width: 24px;
  height: 24px;
  color: var(--textPrimary);
}

.cd-weeks-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 7px 36px 7px 17px;
  flex-wrap: wrap;
  position: relative;
  border-bottom: 1px solid var(--borderLight);
}
.cd-weeks-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cd-weeks-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cd-weeks-meta-label {
  font-size: 13.57px;
  line-height: 17.44px;
  font-weight: 500;
  color: var(--textSecondary);
}
.cd-weeks-meta-input {
  width: 60px;
  padding: 5px 6px;
  background-color: white;
  border: 1px solid var(--borderLight);
  border-radius: 4px;
  font-size: 13.57px;
  line-height: 17.44px;
  color: var(--textSecondary);
  text-align: center;
  transition: all 0.15s ease;
}
.cd-weeks-meta-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}
.frequency-input {
  max-width: 96px;
  width: 100%;
}
.cd-week-meta-close {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--textPrimary);
  background: transparent;
  border: none;
  padding: 0;
  transition: all 0.15s ease;
}
.cd-week-meta-close:hover {
  color: var(--textSecondary);
}
.cd-week-meta-close svg {
  width: 100%;
  height: 100%;
}
.cd-weeks-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--borderLight);
}
.cd-weeks-row:last-child {
  border-bottom: none;
}
.cd-weeks-row-label {
  font-size: 13.57px;
  line-height: 17.44px;
  color: var(--textSecondary);
  font-weight: 500;
  text-transform: uppercase;
  min-width: 100px;
}
.cd-weeks-row-input {
  flex: 1;
  max-width: 250px;
  padding: 5px 19px;
  background-color: white;
  border: 1px solid var(--borderLight);
  border-radius: 4px;
  font-size: 13.57px;
  line-height: 17.44px;
  color: var(--textSecondary);
  transition: all 0.15s ease;
  width: 100%;
}
.cd-weeks-row-input::placeholder {
  color: var(--textSecondary);
}
.cd-weeks-row-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .cd-weeks-meta {
    gap: 14px;
  }
  .cd-card-body-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cd-card {
    padding: 30px 30px;
  }
}
@media (max-width: 767px) {
  .cd-card-body-grid {
    grid-template-columns: 1fr;
  }
  .cd-card {
    padding: 25px 20px;
  }
  .cd-card-header, .cd-weeks-header {
    padding: 10px 14px;
  }
  .cd-table td {
    padding: 8px 11px;
  }
  .cd-data-card-grid {
    gap: 12px;
    padding: 16px;
  }
  .cd-footer-wrapper {
    padding-inline: 10px;
  }
}
@media (max-width: 600px) {
  .cd-data-card-grid {
    grid-template-columns: 1fr;
  }
}
/* Hide default Quill arrow */
.ql-snow .ql-picker-label svg {
  display: none;
}

/* Add custom SVG */
.ql-snow .ql-picker-label::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='M5%207.5L10%2012.5L15%207.5'%20stroke='currentColor'%20stroke-opacity='0.5'%20stroke-width='1.33333'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
  position: absolute;
  right: 1px;
}
.cardio-phase-form .cd-card-header, .cardio-phase-form .cd-weeks-header{
text-align: center;
justify-content: center;
}
.cd-weeks-meta{
  justify-content: flex-start;
}

/*--------------------------- Edit Res Training Page  ---------------------------*/

.edit-rtp-top-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.edit-rtp-preview-btn {
  background-color: #fcfcfc;
  border: 1px solid #e4e3eb;
  border-radius: 4px;
  font-size: 14px;
  line-height: 18px;
  padding: 9px 13px;
  color: var(--textSecondary);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.edit-rtp-preview-btn svg {
  width: 17px;
  height: 17px;
}
.edit-rtp-preview-btn:hover {
  background-color: var(--sidebarActive);
}
.edit-rtp-preview-btn:active {
  opacity: 0.8;
}
.edit-rtp-save-btn {
  background-color: var(--textAccent);
  border: 1px solid var(--textAccent);
  border-radius: 4px;
  font-size: 14px;
  line-height: 18px;
  padding: 9px 13px;
  color: white;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.edit-rtp-save-btn:hover {
  background-color: var(--accent);
}
.edit-rtp-save-btn:active {
  opacity: 0.8;
}
/* footer */
.edit-rtp-footer{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  column-gap: 27px;
  row-gap: 17px;
  margin-top: 20px;
}
.edit-rtp-program-heading{
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  margin-bottom: 13px;
  padding: 0;
}
.edit-rtp-internal-notes-details .edit-rtp-program-heading{
  margin-bottom: 8.62px;
}
.edit-rtp-program-details{
  background-color: #FCFCFD;
  border: 1px solid #E4E3EB;
  border-radius: 8px;
  padding: 26px 13px;
  display: flex;
  flex-direction: column;
}
.edit-rtp-fields{
  flex-grow: 1;
}
.edit-rtp-field-label{
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  color: var(--textPrimary);
  margin-bottom: 6px;
}
.edit-rtp-field-wrapper{
  margin-bottom: 13px;
}
.edit-rtp-field-wrapper:last-child{
  margin-bottom: 0;
}
.edit-rtp-field-select-wrapper {
  position: relative;
}
.edit-rtp-field-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 10px 30px 10px 9px;
  background-color: white;
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-xs);
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  cursor: pointer;
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21' fill='none'%3E%3Cpath d='M5.15552 7.7334L10.3111 12.8889L15.4666 7.7334' stroke='black' stroke-width='0.859258' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center; */
}
.edit-rtp-field-select[type="text"] {
    cursor:text;
}

.edit-rtp-field-select option {
  color: var(--textPrimary, #000000);
}
.edit-rtp-field-select:has(option[value=""]:checked) {
  color: #21252980;
}
.edit-rtp-date-picker-wrapper{
  background-color: white;
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-xs);
  width: 100%;
}
.edit-rtp-date-picker-main{
  width: 100%;
  padding: 11px 9px;
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  /* cursor: pointer; */
}
.edit-rtp-date-picker-wrapper:hover {
    box-shadow: none;
    border-color: var(--borderLight);
}
.edit-rtp-field-textarea{
  background-color: #FCFCFC;
  border: 1px solid #E4E3EB;
  border-radius: 4px;
  padding: 16px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: var(--textSecondary);
  width: 100%;
  height: 100%;
}
.edit-rtp-field-select:focus, .edit-rtp-field-textarea:focus,
.edit-rtp-date-picker-wrapper:has(.date-picker-input:focus) {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}
.edit-rtp-internal-notes-details .corr-notes-editor-wrap .ql-editor {
    min-height: 226px !important;
}

@media (max-width: 991px) {
  .edit-rtp-footer{
  column-gap: 16px;
}
}

@media (max-width: 767px) {
  .edit-rtp-preview-btn,
  .edit-rtp-save-btn {
    font-size: 12px;
    line-height: 16px;
    padding: 8px 10px;
    gap: 6px;
  }
  .edit-rtp-preview-btn svg {
    width: 15px;
    height: 15px;
  }
  .edit-rtp-header {
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .edit-rtp-footer{
  grid-template-columns: 1fr;
}
}
.edit-rtp-body {
  background-color: #fcfcfd;
  border-radius: 16px;
  padding: 23px 25px;
}

.edit-rtp-card {
  padding-inline: 20px;
}
 .edit-rtp-footer .corr-notes-editor-wrap{
padding:0;
  }
  .edit-rtp-footer .corr-email-editor-wrap {
    border-radius: 12px;
}
@media (max-width: 767px) {
  .edit-rtp-card {
  padding-inline: 13px;
}
}
/* =========================================================
       PAGE HEADER
       ========================================================= */

/* =========================================================
       SECTION LIST (Collapsed Sections)
       ========================================================= */

.edit-rtp-section-list .accordion-item {
  background-color: #fcfcfd;
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.edit-rtp-section-list .accordion-item:last-child {
  margin-bottom: 0;
}

.edit-rtp-section-list .accordion-button {
  padding: 12px 24px 12px 24px;
  background-color: transparent;
  box-shadow: none;
  color: var(--textSecondary);
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
}
.edit-rtp-section-item-left-wrapper {
  display: flex;
  align-items: center;
  gap: 28px;
}
.edit-rtp-section-item-drag-btn {
  background: transparent;
  border: none;
  padding: 0;
}
.edit-rtp-section-item-drag-btn svg {
  width: 25px;
  height: 25px;
  color: black;
  transition: all 0.15s ease;
}
.edit-rtp-section-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.edit-rtp-section-number {
  width: 32px;
  height: 32px;
  border-radius: 100px;
  background-color: var(--textAccent);
  color: #f4f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  flex-shrink: 0;
}
.edit-rtp-section-name {
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--textSecondary);
  word-break: break-word;
}
.edit-rtp-section-desc {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: var(--textSecondary);
}
.edit-rtp-section-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.edit-rtp-section-label {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: var(--textSecondary);
}
.edit-rtp-section-chevron {
  width: 24px;
  height: 24px;
  display: block;
  transition: all 0.15s ease;
}
.edit-rtp-section-list .accordion-body {
  border-top: 1px solid var(--borderLight);
  padding: 15px 17px 30px;
}
.edit-rtp-section-list .accordion-button::after {
  content: none;
}

.edit-rtp-section-list
  .accordion-button:not(.collapsed)
  .edit-rtp-section-chevron {
  transform: rotate(180deg);
}

.edit-rtp-section-list .accordion-button:focus {
  box-shadow: none;
}

.edit-rtp-section-list .accordion-body {
  padding: 15px 17px 30px;
}

/* =========================================================
       OPEN CARD (Expanded Section)
       ========================================================= */

/* =========================================================
       BLOCK TABS
       ========================================================= */

.res-training-item-body {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.edit-rtp-block-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edit-rtp-block-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-xs);
  background-color: var(--card);
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: var(--textSecondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.edit-rtp-block-tab:hover {
  background-color: var(--sidebarActive);
}

.edit-rtp-block-tab.active {
  background-color: #4c78ce1a;
  border-color: var(--textAccent);
  color: var(--textAccent);
}
.edit-rtp-section-list .accordion-body {
  container: rtp-accordion-body/inline-size;
}

/* =========================================================
       SMR TABLE
       ========================================================= */
       .edit-rtp-smr-table-wrap {
    overflow-x: auto;
    /* padding: 0 20px 20px; */
  }

  .edit-rtp-smr-table {
    width: 100%;
     border-collapse: separate;
  border-spacing: 20px 0;
  min-width: 600px;
  }

  .edit-rtp-smr-table thead th {
    padding: 12px 10px 12px 0;
    font-size: 18px;
    line-height: 25px;
    font-weight: 700;
    color: var(--textMuted, #6b7280);
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
  }

  .edit-rtp-smr-table thead th:first-child {
    padding-left: 0;
    width: 40px;
  }

  .edit-rtp-smr-table tbody td {
    padding: 12px 25px;
    font-size: 16px;
    line-height: 20px;
    color: var(--textSecondary);
    border: 1px solid #E4E3EB;
    vertical-align: middle;
    font-weight: 700;
  }

  .edit-rtp-smr-table tbody td:first-child {
    padding-left: 0;
    width: 40px;
    border: none;
  }

  .edit-rtp-smr-table tbody tr:last-child td {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
  }
  .edit-rtp-smr-table tbody tr:not(:first-child) td {
    border-top: none;
  }
  .edit-rtp-smr-table tbody tr:first-child td {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
  }

  .edit-rtp-smr-number {    
    text-align: center;
  }

  .edit-rtp-dash {
    font-size: 12px;
    font-weight: 400;
  }
/* =========================================================
       EXERCISE TABLE
       ========================================================= */
.res-training-item-block-wrapper {
  flex: 1;
  min-width: 0;
}
.edit-rtp-exercise-table-wrap {
  overflow-x: auto;
}

.edit-rtp-exercise-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 900px;
}

.edit-rtp-exercise-table thead th {
  background-color: var(--tableHeader);
  padding: 11px 3px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--textSecondary);
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--borderLight);
  border-top: 1px solid var(--borderLight);
  white-space: nowrap;
}

.edit-rtp-exercise-table thead th:first-child {
  padding-left: 20px;
  border-left: 1px solid var(--borderLight);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.edit-rtp-exercise-table thead th:last-child {
  padding-right: 20px;
  border-right: 1px solid var(--borderLight);
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.edit-rtp-exercise-table thead th:nth-child(n + 6) {
  text-align: center;
}

.edit-rtp-exercise-table tbody td {
  padding: 3px 3px;
  font-size: 12px;
  line-height: 18px;
  color: var(--textSecondary);
  vertical-align: top;
}
.edit-rtp-exercise-table thead th:nth-child(2) {
  min-width: 160px;
}
.edit-rtp-exercise-table thead th:nth-child(n + 3) {
  min-width: 70px;
}
.edit-rtp-exercise-table tbody td:first-child {
  padding-left: 10px;
}

.edit-rtp-exercise-table tbody td:last-child {
  padding-right: 20px;
}

.edit-rtp-exercise-table tbody tr:last-child td {
  border-bottom: none;
}

.edit-rtp-exercise-code {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: var(--textSecondary);
  padding: 6px 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--borderLight);
  border-radius: 4px;
  text-transform: uppercase;
}

.edit-rtp-exercise-name {
  font-size: 10px;
  line-height: 18px;
  font-weight: 400;
  color: var(--textSecondary);
  cursor: pointer;
  transition: color 0.15s ease;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--borderLight);
  border-radius: 4px;
}

.edit-rtp-exercise-name:hover {
  color: var(--textAccent);
}

.edit-rtp-normal-data {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: var(--textSecondary);
  cursor: pointer;
  transition: color 0.15s ease;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--borderLight);
  border-radius: 4px;
}

.edit-rtp-week-cell {
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: var(--textSecondary);
  cursor: pointer;
  transition: color 0.15s ease;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--borderLight);
  border-radius: 4px;
  max-width: 72px;
  word-break: break-all;
  text-align: center;
}

.edit-rtp-week-cell:hover {
  background-color: var(--sidebarActive);
}

.edit-rtp-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--borderLight);
  background-color: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--textMuted);
  margin: 0 auto;
}

.edit-rtp-action-btn:hover {
  background-color: var(--sidebarActive);
  color: var(--textPrimary);
}
.edit-rtp-exercise-code,
.edit-rtp-exercise-name,
.edit-rtp-normal-data,
.edit-rtp-week-cell {
  min-height: 32px;
}
/* =========================================================
       WEIGHT EDIT POPOVER (Dropdown-like)
       ========================================================= */
.edit-rtp-weight-popover {
  position: absolute;
  z-index: 1050;
  background-color: #fcfcfd;
  border: 1px solid var(--borderLight);
  border-radius: 12px;
  box-shadow: var(--shadow3);
  min-width: 280px;
  display: none;
}

.edit-rtp-weight-popover.show {
  display: block;
}

.edit-rtp-weight-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 13px 11px 30px;
  gap: 10px;
}

.edit-rtp-weight-popover-title {
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--textAccent);
}

.edit-rtp-weight-popover-subtitle {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--textSecondary);
  margin-top: 5px;
}

.edit-rtp-weight-popover-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--textMuted);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.edit-rtp-weight-popover-close svg {
  width: 24px;
  height: 24px;
}

.edit-rtp-weight-popover-body {
  /* padding: 12px 16px; */
}

.edit-rtp-weight-popover-table {
  width: 100%;
  border-collapse: collapse;
}

.edit-rtp-weight-popover-table th {
  text-align: left;
  padding: 0px 8px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--textSecondary);
  text-transform: uppercase;
  border-bottom: 1px solid var(--cardBorder);
}

.edit-rtp-weight-popover-table td {
  padding: 7px 8px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--textPrimary);
  border-bottom: 1px solid var(--borderLight);
}

.edit-rtp-weight-popover-table tr:last-child td {
  border-bottom: none;
  padding-bottom: 16px;
}
.edit-rtp-weight-popover-table th:first-child,
.edit-rtp-weight-popover-table td:first-child {
  padding-left: 30px;
}
.edit-rtp-weight-popover-table th:last-child,
.edit-rtp-weight-popover-table td:last-child {
  padding-left: 15px;
}
.edit-rtp-weight-input {
  width: 100%;
  padding: 6px 13px;
  border: 1px solid var(--inputBorder);
  border-radius: 4px;
  background-color: var(--inputBackground);
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: var(--textPrimary);
  outline: none;
  transition: border-color 0.15s ease;
}

.edit-rtp-weight-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}

.edit-rtp-weight-input::placeholder {
  color: var(--textSecondary);
}

/* =========================================================
       METABOLIC CONDITIONING TABLE (Simpler)
       ========================================================= */
.edit-rtp-block-content {
  overflow: hidden;
}

/* =========================================================
       UTILITY
       ========================================================= */
.edit-rtp-relative {
  position: relative;
}

/* =========================================================
       RESPONSIVE
       ========================================================= */

@container rtp-accordion-body (max-width:640px) {
  .res-training-item-body {
    flex-direction: column;
    gap: 12px;
  }
  .edit-rtp-block-tabs {
    flex-direction: row;
    gap: 6px;
  }
  .res-training-item-block-wrapper {
    flex: auto;
    overflow: hidden;
    width: 100%;
  }
}
@media (max-width: 767px) {
  .edit-rtp-section-list .accordion-button {
    padding: 12px 12px 12px 10px;
  }
  .edit-rtp-section-right {
    gap: 6px;
  }
  .edit-rtp-section-item-left-wrapper {
    /* gap: 17px; */
    gap: 10px;
  }
  .edit-rtp-section-item-drag-btn svg {
    width: 22px;
    height: 22px;
  }
  .edit-rtp-section-name {
    font-size: 17px;
    line-height: 22px;
  }
  .edit-rtp-section-left {
    gap: 10px;
  }
  .edit-rtp-section-chevron {
    width: 22px;
    height: 22px;
  }
  .edit-rtp-exercise-table thead th {
    padding: 6px 3px;
    font-size: 14px;
    line-height: 18px;
  }
  .edit-rtp-weight-popover-header {
    padding: 14px 9px 11px 18px;
  }
  .edit-rtp-weight-popover-title {
    font-size: 16px;
    line-height: 20px;
  }
  .edit-rtp-weight-popover-subtitle {
    font-size: 14px;
    line-height: 18px;
    margin-top: 4px;
  }
  .edit-rtp-weight-popover-close svg {
    width: 20px;
    height: 20px;
  }
  .edit-rtp-weight-popover-table th {
    font-size: 14px;
  }
  .edit-rtp-weight-popover-table th:first-child,
  .edit-rtp-weight-popover-table td:first-child {
    padding-left: 20px;
  }
  .edit-rtp-weight-popover-table td {
    font-size: 14px;
    line-height: 18px;
  }
  .edit-rtp-smr-table thead th {
    padding: 10px 10px 10px 0;
    font-size: 16px;
    line-height: 20px;
}
.edit-rtp-smr-table tbody td:first-child,
.edit-rtp-smr-table thead th:first-child {    
    width: 30px;
}
.edit-rtp-smr-table {
    border-spacing: 15px 0;
    min-width: 500px;
}
.edit-rtp-smr-table tbody td {
    padding: 10px 20px;
    font-size: 14px;
    line-height: 18px;
}
}
.edit-rtp-section-item-drag-btn {
  cursor: grab !important;
}

.edit-rtp-section-item-drag-btn:active {
  cursor: grabbing !important;
}

/* Optional styling for the item currently being dragged */
.accordion-item.dragging {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: #f8f9fa;
}
@media (max-width:600px){
.edit-rtp-section-name {
    font-size: 16px;
    line-height: 20px;
}
}

/*--------------------------- INNER CHART PAGE  ---------------------------*/
.chart-inner-body .white-black-filter-tabs {
  margin-bottom: 34px;
}
.progress-graph-card {
  margin-top: 0;
  padding-bottom: 28px;
}
.chart-card {
  background: #fcfcfc;
  border-radius: 8px;
  padding: 28px 53px 28px 53px;
  box-shadow: var(--cardShadow);
  border: 1px solid #dee1e7;
  margin-bottom: 33px;
}
.chart-card:last-child {
  margin-bottom: 0;
}
.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.chart-card-title {
  font-size: 18px;
  line-height: 16px;
  font-weight: 700;
  color: #212529;
  margin: 0;
  font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.chart-card-desc {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  margin-bottom: 0;
  margin-top: 15px;
  color: var(--textSecondary);
}

.chart-wrapper {
  width: 100%;
  position: relative;
}

/* ===== APEXCHARTS CUSTOM STYLES ===== */
.chart-tooltip {
  background: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 15px 21px !important;
}
.apexcharts-tooltip {
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0px 3.8px 3.8px -1.9px #00000026 !important;
}

/* .apexcharts-tooltip-title {
            background: transparent !important;
            border-bottom: none !important;
            font-family: inherit !important;
            font-size: 12px !important;
            font-weight: 600 !important;
            color: var(--textPrimary) !important;
            padding: 10px 14px 4px !important;
        }

        .apexcharts-tooltip-text {
            font-family: inherit !important;
            font-size: 12px !important;
            color: var(--textSecondary) !important;
            padding: 0 14px 10px !important;
        } */
.chart-tooltip-date,
.chart-tooltip-value {
  font-size: 11.39px;
  line-height: 16.01px;
  font-weight: 500;
  color: #212529;
  margin-bottom: 6px;
  font-family:
    "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
.chart-tooltip-value {
  margin-bottom: 0px;
}

.apexcharts-tooltip-marker {
  display: none !important;
}

/* =========================================================
       RESPONSIVE —  (max-width: 1280px)
       ========================================================= */
@media (max-width: 1280px) {
  .chart-inner-body .white-black-filter-tabs {
    margin-bottom: 18px;
  }
  .chart-card {
    padding: 21px 23px 28px 23px;
  }

  .chart-card-header {
    margin-bottom: 8px;
  }
  .chart-card-title {
    font-size: 12.06px;
    line-height: 10.72px;
  }
}

/* =========================================================
       RESPONSIVE — TABLET (max-width: 991px)
       ========================================================= */
@media (max-width: 991px) {
  .chart-inner-body .white-black-filter-tabs {
    margin-bottom: 18px;
  }
  .chart-card {
    margin-bottom: 28px;
  }
}

/* =========================================================
       RESPONSIVE — MOBILE (max-width: 767px)
       ========================================================= */
@media (max-width: 767px) {
  .chart-inner-body .white-black-filter-tabs {
    margin-bottom: 39px;
  }
  .progress-graph-card {
    padding-bottom: 16px;
  }

  .chart-card-header {
    margin-bottom: 4px;
  }
  .chart-card-title {
    font-size: 14px;
    line-height: 15.06px;
  }
  .chart-card {
    padding: 20px 11px 21px 11px;
    margin-bottom: 20px;
  }
}

/*--------------------------- Add Meal Plan PAGE  ---------------------------*/
.meal-plans-form .upload-doc-btn-primary{
max-width:140px;
}

/* =========================================================
       UPLOAD CARD
       ========================================================= */
.upload-doc-card {
  margin-top: 0;
  padding-bottom: 23px;
}
.upload-doc-card-iner-card {
  background-color: #fcfcfd;
  border: 1px solid var(--borderLight);
  border-radius: 8px;
  padding: 40px 30px;
}

/* =========================================================
       FORM GROUP
       ========================================================= */
.upload-doc-form-group {
  margin-bottom: 24px;
}

.upload-doc-label {
  display: block;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: var(--textSecondary);
  margin-bottom: 8px;
}

.upload-doc-input {
  width: 100%;
  padding: 13px 20px;
  border: 1px solid var(--inputBorder);
  border-radius: var(--radius-xs);
  background-color: var(--inputBackground);
  font-size: 16px;
  line-height: 20px;
  color: var(--textSecondary);
  outline: none;
  transition: border-color 0.15s ease;
}

.upload-doc-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}

.upload-doc-input::placeholder {
  color: var(--textSecondary);
}

/* =========================================================
       FILE UPLOAD AREA
       ========================================================= */
.upload-doc-dropzone {
  width: 100%;
  padding: 19px 20px;
  border: 1px dashed var(--inputBorder);
  border-radius: var(--radius-xs);
  background-color: var(--inputBackground);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  min-height: 119px;
}

.upload-doc-dropzone:hover {
  border-color: var(--accent);
  background-color: var(--sidebarActive);
}

.upload-doc-dropzone.dragover {
  border-color: var(--accent);
  background-color: var(--sidebarActive);
}

.upload-doc-dropzone-icon {
  font-size: 24px;
  color: var(--textMuted);
}
.upload-doc-dropzone-icon svg {
  width: 20px;
  height: 20px;
}
.upload-doc-dropzone-top-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.upload-doc-dropzone-text {
  font-size: 16px;
  line-height: 20px;
  color: var(--textSecondary);
}

.upload-doc-dropzone-hint {
  font-size: 16px;
  line-height: 20px;
  color: var(--textSecondary);
}

.upload-doc-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* =========================================================
       FILE SELECTED STATE
       ========================================================= */
.upload-doc-file-selected {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  /* background-color: var(--sidebarActive); */
  border: 1px solid var(--cardBorder);
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.upload-doc-file-selected.show {
  display: flex;
}

.upload-doc-file-icon {
  width: 20px;
  height: 20px;
  color: var(--textAccent);
}

.upload-doc-file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upload-doc-file-name {
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: var(--textSecondary);
}

.upload-doc-file-size {
  font-size: 12px;
  color: var(--textSecondary);
}

.upload-doc-file-remove {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--textMuted);
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
}

.upload-doc-file-remove:hover {
  opacity: 0.5;
}

/* =========================================================
       CHECKBOX
       ========================================================= */
.upload-doc-footer {
  padding-inline: 25px;
  padding-top: 17px;
}
.upload-doc-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.upload-doc-checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid var(--inputBorder);
  border-radius: 3px;
  accent-color: var(--accent);
  cursor: pointer;
}

.upload-doc-checkbox-label {
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  cursor: pointer;
  user-select: none;
}

/* =========================================================
       ACTION BUTTONS
       ========================================================= */
.upload-doc-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.upload-doc-btn-primary {
  padding: 8px 24px;
  background-color: var(--textAccent);
  border: 1px solid var(--textAccent);
  border-radius: var(--radius-xs);
  color: #fcfcfc;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  max-width: 104px;
  width: 100%;
  cursor: pointer;
  transition: all 0.15s ease;
}

.upload-doc-btn-primary:hover {
  opacity: 0.9;
}

.upload-doc-btn-secondary {
  padding: 5px 24px;
  background-color: white;
  border: 1px solid var(--textSecondary);
  border-radius: var(--radius-xs);
  color: var(--textSecondary);
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
}

.upload-doc-btn-secondary:hover {
  background-color: var(--sidebarActive);
}

.upload-doc-btn-secondary:active,
.upload-doc-btn-primary:active {
  transform: translateY(1px);
  opacity: 0.9;
}

/* =========================================================
       RESPONSIVE
       ========================================================= */
@media (max-width: 991px) {
  .upload-doc-card-iner-card {
    padding: 30px 30px;
  }
  .upload-doc-label {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 8px;
  }
}
@media (max-width: 767px) {
  .upload-doc-card {
    padding-bottom: 16px;
  }
  .upload-doc-footer {
    padding-inline: 16px;
    padding-top: 17px;
  }
  .upload-doc-card-iner-card {
    padding: 20px;
  }
  .upload-doc-dropzone-hint,
  .upload-doc-dropzone-text {
    font-size: 14px;
    line-height: 18px;
  }
  .upload-doc-dropzone-icon svg {
    width: 18px;
    height: 18px;
  }
  .upload-doc-form-group {
    margin-bottom: 20px;
  }
}

/*--------------------------- Accountability Charts page ---------------------------*/

.acc-chart-body {
  padding: 24px 25px 60px 19px;
  border-top: 1px solid var(--borderLight);
}
.acc-chart-header {
  color: var(--textSecondary);
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.acc-chart-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--textAccent);
  font-size: 16px;
  background: #eef0f9;
  border-radius: 8px;
}

.acc-chart-header-icon svg {
  width: 24px;
  height: 24px;
}
/* Horizontal scroll container wrapper */
.acc-chart-scroll-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
  max-width: 919px;
  width: 100%;
}

/* Scrollable container */
.acc-chart-scroll-container {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.acc-chart-scroll-track {
  display: flex;
  gap: 8px;
  transition: transform 0.3s ease;
  will-change: transform;
}

/* Scroll arrow buttons */
.acc-chart-scroll-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: #eef0f9;
  border: none;
  border-radius: 8px;
  color: var(--textAccent);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}

.acc-chart-scroll-arrow:hover {
  background-color: var(--sidebarActive, #dde2ee);
  border-color: var(--accent, #5a83d3);
  color: var(--textAccent, #4c78ce);
}

.acc-chart-scroll-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.acc-chart-scroll-arrow svg {
  width: 24px;
  height: 24px;
  color: var(--textAccent);
}

/* Show arrows when needed (JS toggles this) */
.acc-chart-scroll-wrap.has-overflow .acc-chart-scroll-arrow {
  display: flex;
}

/* Buttons common */
.acc-chart-week-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background-color: var(--btnSecondaryBg, #f4f7fa);
  border: 1px solid var(--borderLight, #ebe7e7);
  border-radius: var(--radius-xs, 4px);
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: var(--textPrimary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
  padding: 8px 19px;
}

.acc-chart-week-btn:hover {
  background-color: var(--sidebarActive, #dde2ee);
  border-color: var(--accent, #5a83d3);
  color: var(--textAccent, #4c78ce);
}

.acc-chart-week-btn.active {
  background-color: var(--textAccent, #4c78ce);
  border-color: var(--textAccent, #4c78ce);
  color: #ffffff;
}

/* fields */
.acc-chart-fields {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.acc-chart-field-wrapper {
  max-width: 617px;
  width: 100%;
}

.acc-chart-label {
  display: block;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: var(--textSecondary);
  margin-bottom: 8px;
}

.acc-chart-select-wrapper {
  position: relative;
}
.acc-chart-select-calender-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 17px;
  width: 18px;
  height: 18px;
}
.acc-chart-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 13px 35px 13px 41px;
  background-color: white;
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-xs);
  font-size: 16px;
  line-height: 19px;
  color: var(--textSecondary);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21' fill='none'%3E%3Cpath d='M5.15552 7.7334L10.3111 12.8889L15.4666 7.7334' stroke='black' stroke-width='0.859258' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.acc-chart-select option {
  color: var(--textPrimary, #000000);
}
.acc-chart-select:has(option[value=""]:checked) {
  color: #21252980;
}
.acc-chart-select:focus {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}
.acc-chart-preview-btn {
  border: 1px solid var(--borderLight);
  /* border:none; */
  background-color: transparent;
  border-radius: 4px;
  padding: 10px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  line-height: 20px;
  color: var(--textAccent);
  cursor: pointer;
  transition: all 0.15s ease;
}
.acc-chart-preview-btn svg {
  width: 20px;
  height: 20px;
}
.acc-chart-preview-btn:hover {
  background-color: var(--sidebarActive, #dde2ee);
  
  color: var(--textAccent, #4c78ce);
}
.acc-chart-preview-btn:focus {
  transform: translateY(1px);
}
/* =========================================================
           RESPONSIVE — TABLET (max-width: 1280px)
           ========================================================= */
@media (max-width: 1280px) {
  .acc-chart-week-btn {
    padding: 9px 13px;
  }

  .acc-chart-header-icon {
    width: 40px;
    height: 40px;
  }

  .acc-chart-header-icon svg {
    width: 22x;
    height: 22px;
  }
  .acc-chart-header {
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    gap: 8px;
  }

  .acc-chart-scroll-wrap {
    gap: 8px;
  }

  .acc-chart-week-btn {
    gap: 4px;
    font-size: 14px;
    line-height: 18px;
    padding: 6px 15px;
  }
  .acc-chart-date-fields-wrapper {
    flex: 1 1 200px;
}
}
/* =========================================================
           RESPONSIVE — MOBILE (max-width: 767px)
           ========================================================= */
@media (max-width: 767px) {
  .acc-chart-week-btn {
    padding: 9px 15px;
  }

  .acc-chart-body {
    padding: 20px 20px 30px 14px;
  }

  .acc-chart-scroll-arrow {
    width: 38px;
    height: 38px;
  }
  .acc-chart-label {
    font-size: 14px;
    line-height: 18px;
}
}



/* Add pargraph Text to Normal Quill */
.ql-snow .ql-picker.ql-header .ql-picker-label:not([data-value])::before,
.ql-snow .ql-picker.ql-header .ql-picker-item:not([data-value])::before {
    content: 'Paragraph';
}/* =========================================================
       CPH STATS CARDS
       ========================================================= */
.cph-body {
  container: cph-body / inline-size;
}
.cph-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.cph-stat-card {
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: var(--radius-sm);
  padding: 25px 24px;
  box-shadow: var(--shadow3);
  display: flex;
  align-items: flex-start;
  gap: 19px;
}

.cph-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #dde2ee80;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.active-stat-card {
  background: #e5f5e8;
}
.inactive-stat-card {
  background: #eaf2fc;
}
.cph-stat-icon svg {
  width: 20px;
  height: 20px;
}

.cph-stat-content {
  flex: 1;
}

.cph-stat-label {
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--textPrimary);
  margin-bottom: 2px;
}
.cph-stat-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.cph-stat-value {
  font-size: 35px;
  line-height: 45px;
  font-weight: var(--fw-bold);
  color: var(--textPrimary);
  letter-spacing: -0.3px;
}

.cph-stat-meta {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--textPrimary);
}

/* =========================================================
       CPH FILTER BAR
       ========================================================= */
.cph-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
   background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  box-shadow: var(--shadow3);
}

.cph-search-wrap {
  position: relative;
  flex: 1;
  max-width: 448px;
  flex-basis: 150px;
}
.cph-search-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--textMuted);
  width: 20px;
  height: 20px;
}
.cph-search-input {
  width: 100%;
  padding: 15px 15px 15px 52px;
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-sm);
  background: #FEFEFE;
  font-size: 13px;
  line-height: 18px;
  color: var(--textPrimary);
  font-weight: 400;
  outline: none;
  transition: border-color 0.15s ease;
}
.cph-search-input:focus {
  border-color: var(--accent);
  box-shadow: rgba(90, 131, 211, 0.1) 0px 0px 0px 3px;
}
.cph-search-input::placeholder {
  color: var(--textSecondary);
}

.cph-filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cph-filter-btn {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid var(--borderLight);
  background-color: white;
  color: var(--textSecondary);
}

.cph-filter-btn:hover {
  background: var(--sidebarActive);  
}
.cph-filter-btn.active {
   border: 1px solid #111827;
  background-color: #111827;
  color: white;
}

.cph-filter-clear-btn{
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  border: 1px solid var(--textAccent);
  background-color: white;
  color: var(--textAccent);
box-shadow: 0px 1px 2px 0px #2D588614;
}
.cph-filter-clear-btn:hover{
  background: var(--sidebar);  
  
}
/* =========================================================
       CPH TABLE CONTAINER — STICKY HEADER
       ========================================================= */
.cph-table-container {
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow3);
  overflow: hidden;
  container: cph-table-container/inline-size; ;
}

.cph-table-wrap {
  max-height: 520px;
  overflow-y: auto;
  overflow-x: auto;
}

.cph-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  line-height: 18px;
}

/* Sticky header */
.cph-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--tableHeader);
  border-bottom: 1px solid var(--borderLight);
  padding: 19px 4px;
  font-size: 13px;
  line-height: 18px;
  font-weight: var(--fw-semibold);
  color: var(--textPrimary);
  text-align: center;
  vertical-align: top;
}
.cph-table thead th:first-child {
  text-align: left;
  padding-left: 22px;
}
.cph-table thead th:nth-child(2) {
  text-align: left;
}
.cph-table thead th:last-child {
  padding-right: 16px;
}
/* .chp-th-last-name{
  white-space: nowrap;
} */
.chp-th-first-name{
  white-space: nowrap;
}
/* First/Last name headers centered over their columns (client request).
   Overrides the generic 2nd-column left-align above; Last Name wraps to two
   lines via a <br> in the markup. */
.cph-table thead th.chp-th-first-name,
.cph-table thead th.chp-th-last-name {
  text-align: center;
}

.cph-table tbody td {
  padding: 16px 4px;
  border-bottom: 1px solid var(--borderLight);
  vertical-align: middle;
  white-space: nowrap;
}
.cph-table tbody td:first-child {
  text-align: left;
  padding-left: 22px;
}
.cph-table tbody td:last-child {
  padding-right: 16px;
}
.cph-table th.chp-th-email,.cph-table td.cph-td-email{
padding-right: 10px;
}

.cph-table tbody tr:last-child td {
  border-bottom: none;
}

/* .cph-table tbody tr:hover {
  background: var(--sidebar);
} */

/* =========================================================
       CPH TABLE CELLS
       ========================================================= */
.cph-td-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cph-avatar {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64676A;
  flex-shrink: 0;
}

.cph-name {
  font-weight: 400;
  color: var(--textSecondary);
}

/* Status toggle buttons in table */
.cph-status-toggle {
  display: inline-flex;
  border-radius: 4px;
  overflow: hidden;
}
.cph-status-btn {
  padding: 4px 8px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cph-status-btn:first-child{
  border-radius: 4px 0 0 4px;
}
.cph-status-btn:last-child{
  border-radius: 0 4px 4px 0;
}
.cph-status-btn.active {
  background: var(--textAccent);
  color: #FCFCFC;
  border: 1px solid var(--textAccent);
}
.cph-status-btn.inactive {
  background: #fff;
  color: hsla(210, 11%, 15%, 0.5);
  border: 1px solid var(--borderLight);


}
.cph-status-btn.inactive:hover {
  background: #e9ecef;
  color: #6c757d;
}

/* Action icons */
.cph-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64676A;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 16px;
  background-color: #FFFFFF;
  border: 1px solid var(--borderLight);
}
.cph-action-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #64676A;
}
.cph-action-icon:hover {
  background: var(--sidebarActive);
  color: var(--textAccent);
}

/* =========================================================
       CPH PAGINATION
       ========================================================= */
.cph-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 22px 32px;
  margin-top: 10px;
  border-top: 1px solid var(--borderLight);
  background: var(--card);
  flex-wrap: wrap;
  gap: 12px;
}

.cph-page-info {
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  color: var(--textSecondary);
}

.cph-page-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cph-page-btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--borderLight);
  background: white;
  color: var(--textPrimary);
  font-size: 18px;
  line-height: 16px;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  /* padding: 0 8px; */
}
.cph-page-btn:hover {
  background: var(--sidebarActive);
}
.cph-page-btn.active {
  background: var(--textAccent);
  border-color: var(--textAccent);
  color: white;
}
.cph-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.cph-page-arrow-btn{
   min-width: 36px;
  height: 36px;
  border-radius: 4px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}
.cph-page-arrow-btn svg{
width: 24px;
height: 24px;
}
.cph-page-arrow-btn:hover {
  background: var(--sidebarActive);
}
.cph-page-arrow-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cph-rows-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cph-rows-label {
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  color: var(--textSecondary);
}
.cph-rows-select {
  padding: 9px 35px 9px 12px;
  border: 1px solid var(--borderLight);
  border-radius: 8px;
  background: white;
  font-size: 16px;
  line-height: 20px;
  color: var(--textSecondary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23212529' stroke-opacity='0.7' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.cph-rows-select:focus {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}


/* =========================================================
       RESPONSIVE
       ========================================================= */

@container cph-body (max-width: 800px) {
  .cph-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}
@container cph-body (max-width: 657px) {
   .cph-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .cph-search-wrap {
    max-width: none;
    flex-basis: auto;
  }
  .cph-table-wrap {
    max-height: 400px;
  }
}
@container cph-body (max-width: 500px) {
  .cph-stats-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
@container cph-table-container (max-width: 760px) {
  .cph-pagination-bar {
       flex-direction: column;
    gap: 20px;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .cph-stat-card {
    padding: 20px 18px;
    gap: 14px;
  }

  .cph-stat-icon {
    width: 34px;
    height: 34px;
  }
  .active-stat-card {
    background: #e5f5e8;
  }
  .inactive-stat-card {
    background: #eaf2fc;
  }
  .cph-stat-icon svg {
    width: 18px;
    height: 18px;
  }

  .cph-stat-label {
    font-size: 16px;
    line-height: 20px;
  }

  .cph-stat-value {
    font-size: 30px;
    line-height: 40px;
    letter-spacing: -0.2px;
  }

  .cph-stat-meta {
    font-size: 14px;
    line-height: 16px;
  }
  .cph-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .cph-search-wrap {
    max-width: none;
    flex-basis: auto;
  }
  
  .cph-stats-row{
    margin-bottom: 20px;
  }
  .cph-filter-bar{
    margin-bottom: 16px;
  }
  
.cph-search-wrap svg {
  left: 14px;
}
.cph-search-input {
  padding: 15px 15px 15px 45px;
}
.cph-filter-group {
  flex-wrap: wrap;
}
.cph-filter-btn, .cph-filter-clear-btn {
  padding: 10px 16px;
  font-size: 14px;
  line-height: 18px;
}
  .cph-table-wrap {
    max-height: 400px;
  }
  .cph-pagination-bar{
    padding: 20px 20px 24px;
  }
  .cph-page-btn {
    min-width: 34px;
    height: 34px;
    font-size: 15px;
    line-height: 16px;
}

.cph-page-arrow-btn{
   min-width: 34px;
  height: 34px;
}
.cph-page-arrow-btn svg{
width: 20px;
height: 20px;
}

.cph-rows-select {
  padding: 7px 45px 7px 10px;
  border: 1px solid var(--borderLight);
  border-radius: 8px;
  background: white;
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23212529' stroke-opacity='0.7' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
  .cph-table thead th, .cph-table tbody td {
    padding: 14px 4px;
}
.cph-table thead th:first-child, .cph-table tbody td:first-child {  
    padding-left: 18px;
}
}

/* -------------------------- user management -------------------------- */
.user-management-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 24px;
}

.user-management-top-bar .btn-add-homework {
  margin-bottom: 0;
}

.user-management-search-wrap {
  flex: 1;
  max-width: 100%;
  min-width: 200px;
}

.user-management-search-wrap input {
  padding-top: 18px;
  padding-bottom: 18px;
  padding-left: 48px;
}

.user-management-table tbody td {
  padding: 12px 23px;
}

.user-management-table .no-col {
  width: auto;
  text-align: left;
  padding-left: 44px;
}

.user-management-table .action-col {
  text-align: center;
  padding-right: 44px;
}

.user-management-table .action-col .homework-action-dropdown {
  width: fit-content;
  margin: 0 auto;
}

.user-management-table .um-username-sub {
  display: block;
  font-size: 12px;
  color: var(--textSecondary, #6b7280);
  font-weight: 400;
}

.um-status-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 0px;
  border-radius: 4px;
  width: fit-content;
}

.um-status-toggle-btn {
  background-color: #FFFFFF;
  border: 1px solid var(--borderLight);
  padding: 4px 9px;
  font-size: 13px;
  line-height: 18px;
  color: var(--textSecondary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.um-status-toggle-btn:disabled {
  cursor: default;
}

.um-status-toggle-btn:hover:not(:disabled) {
  background-color: var(--sidebarActive, #dde2ee);
}

.um-active-btn {
  padding: 4px 9px;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.um-inactive-btn {
  padding: 4px 6px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.um-active-btn[data-status="active"] {
  background-color: var(--textAccent);
  border-color: var(--textAccent);
  color: #FCFCFC;
}

.um-inactive-btn[data-status="active"] {
  background-color: #D54248;
  border-color: #D54248;
  color: #FFFFFF;
}

.user-management-table-filter {
  padding-bottom: 38px;
}

@media (max-width: 767px) {
  .user-management-top-bar {
    gap: 10px 10px;
  }
}

/* -------------------------- progress graph: start/end date range -------------------------- */
/* A second pill, same visual language as .white-black-filter-tabs (border,
   radius, flush dividers between segments) so it reads as a sibling control
   group rather than a bare, disconnected row of native inputs. */
.pg-range-picker {
  display: inline-flex;
  align-items: stretch;
  margin-bottom: 20px;
  margin-left: 10px;
  flex-wrap: wrap;
  border: 1px solid #e8eaed;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
}

.pg-range-label {
  display: inline-flex;
  align-items: center;
  padding: 11px 10px 11px 14px;
  background-color: #ffffff;
  border-right: 1px solid #e8eaed;
  font-size: 13px;
  line-height: 100%;
  font-weight: var(--fw-medium, 500);
  color: var(--textMuted, #6b7280);
  white-space: nowrap;
}

.pg-range-input {
  display: inline-flex;
  align-items: center;
  padding: 11px 14px;
  background-color: #ffffff;
  border: none;
  border-right: 1px solid #e8eaed;
  font-size: 13px;
  line-height: 100%;
  font-weight: var(--fw-medium, 500);
  color: var(--textPrimary, #000000);
  cursor: pointer;
}

.pg-range-input:hover,
.pg-range-input:focus {
  background-color: var(--sidebarActive, #dde2ee);
  outline: none;
}

.pg-range-picker .white-black-filter-btn {
  border-right: none;
  background-color: #111827;
  border-color: #111827;
  color: #ffffff;
}

.pg-range-picker .white-black-filter-btn:hover {
  background-color: #1f2937;
}

@media (max-width: 767px) {
  .pg-range-picker {
    margin-left: 0;
    width: 100%;
  }
  .pg-range-label,
  .pg-range-input {
    flex: 1 1 auto;
  }
}

/* -------------------------- homepage: add member action bar -------------------------- */
.cph-actions-top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.cph-actions-top-bar .btn-add-homework {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .cph-actions-top-bar {
    justify-content: stretch;
  }
  .cph-actions-top-bar .btn-add-homework {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================= live css update ============================================= */

/* -------------------------- home: updates -------------------------- */
.cph-status-toggle >:first-child .cph-status-btn {
    border-radius: 4px 0 0 4px;
}
.cph-status-toggle >:last-child {
    border-radius: 0 4px 4px 0;
}
/* .cph-status-toggle >:last-child .cph-status-btn.active {
  background-color: #D54248;
  border-color: #D54248;
} */
.cph-status-btn:hover{
opacity: 0.8;
}
.cph-page-arrow-btn{
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------- User mange: updates -------------------------- */
@media (max-width: 991px) {
    .user-management-top-bar {
        gap: 10px 16px;
    }

    .user-management-table .no-col {
        padding-left: 28px;
    }
    .user-management-table .action-col {
    padding-right: 28px;
}
    .user-management-search-wrap input {
    padding-top: 13px;
    padding-bottom: 13px;
}
.user-management-search-wrap input {
    padding-top: 13px;
    padding-bottom: 13px;
}

}
.edit-member-cancel-btn {
    background: transparent !important;
    border: 1px solid var(--btnPrimaryBorder);
    color: var(--textAccent);
    text-decoration: none;
}
.edit-member-cancel-btn {
    background: transparent !important;
    border: 1px solid var(--btnPrimaryBorder);
    color: var(--textAccent);
    text-decoration: none;
    transition:all 0.15s ease;
}
.edit-member-cancel-btn:hover{
    background: var(--sidebarActive)!important;

}
.add-member-action-btn-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap:wrap;
}
.add-member-action-btn-wrap > *{
margin: 0!important;
}
@media (max-width: 767px) {
 .add-exercise-btn {
    padding: 13.5px 21px;
}
.add-member-action-btn-wrap {
    gap: 14px;
}
.edit-member-info-form {
  padding-top: 0px;
}
}

/* upload filed in add email notwa */



.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px 24px;
    background-color: var(--inputBackground, #fcfcfc);
    border: 1px solid var(--inputBorder, #e4e3eb);
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    transition: border-color 0.15s ease,
    background-color 0.15s ease;
    text-align: center;
}
.upload-preview-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.upload-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm, 8px);
}
.upload-remove {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card, #fcfcfd);
    border: 1px solid var(--cardBorder, #dee1e7);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.15s ease,
    transform 0.1s ease;
    z-index: 2;
}
.upload-remove svg {
    width: 20px;
    height: 20px;
    color: var(--textSecondary, #212529b2);
}
.upload-remove:hover {
    background-color: var(--iconBackground, #f0f0f6);
}
#uploadDefault {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.photo-food-empty-state-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 93px;
  height: 93px;
  background-color: var(--iconBackground, #f0f0f6);
  border-radius: var(--radius-sm, 8px);
  margin-bottom: 30px;
}

.photo-food-empty-state-icon i {
  font-size: 32px;
  color: var(--textPrimary, #000000);
}
.photo-food-empty-state-icon svg {
  width: 65px;
  height: 65px;
  color: var(--textPrimary, #000000);
}

.photo-food-empty-state-title {
  font-size: 25px;
  line-height: 25px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--textPrimary, #000000);
  margin: 0 0 24px 0;
}

.photo-food-empty-state-subtitle {
  font-size: 18px;
  line-height: 24px;
  color: var(--textSecondary, #212529b2);
  margin: 0;
}
@media (max-width:767px){
  
  .photo-food-empty-state-icon {
    width: 61px;
    height: 61px;
    border-radius: 5.22px;
  }

  .photo-food-empty-state-icon i {
    font-size: 24px;
  }
  .photo-food-empty-state-icon svg {
    width: 42px;
    height: 42px;
  }

  .photo-food-empty-state-title {
    font-size: 22px;
    line-height: 25px;
    margin-bottom: 8px;
  }

  .photo-food-empty-state-subtitle {
    font-size: 16px;
    line-height: 20px;
  }

}

.upload-area:hover {
  border: 1px dashed var(--accent, #5a83d3);
  background-color: rgba(90, 131, 211, 0.1);
}

.upload-area.drag-over {
  border: 1px dashed var(--accent, #5a83d3);
  background-color: rgba(90, 131, 211, 0.1);
}

.upload-area.has-file {
  border-style: solid;
  border: 1px dashed var(--accent, #5a83d3);
  background-color: rgba(90, 131, 211, 0.1);
}
.upload-area.has-file .upload-preview-wrap {
    display: flex !important;
}
.upload-area.has-file .upload-default {
    display: none!important;
}

/* -------------------------------  accountability page ------------------------------- */


.acc-chart-fields{
  container: acc-chart-fields/inline-size;
}
.acc-chart-date-fields-wrapper{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-basis:500px;
}
#accountability_week_form .acc-chart-date-fields-wrapper{
      flex: 1 1 617px;
}
.acc-chart-field-wrapper {
    max-width: 250px;
    width: 100%;
    flex: 1 0 200px;
}
#accountability_week_form .acc-chart-field-wrapper {   
        max-width: 617px;
    width: 100%;
}

/* Date picker wrapper in profile */
.acc-chart-date-wrap {
  position: relative;
  width: 100%;
}
.acc-chart-date-wrap .acc-chart-date-picker-wrapper {
  padding-right: 45px;
  display: flex;
  align-items: center;
}
.acc-chart-date-wrap .acc-chart-date-picker-icon svg {
  width: 20px;
  height: 22px;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.acc-chart-date-wrap #dobDisplay {
  color: var(--textPrimary); /* black when date selected */
}

.acc-chart-date-wrap #dobDisplay.placeholder-color {
  color: #21252980;
}

.acc-chart-date-picker-wrapper {
  width: 100%;
  height: 47px;
  padding: 13px 41px 13px 15px;
  background-color: white;
  border: 1px solid var(--borderLight);
  border-radius: 4px;
  font-size: 16px;
    line-height: 19px;
  color: var(--textSecondary);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.acc-chart-date-picker-wrapper {
  padding-right: 45px;
  display: flex;
  align-items: center;
}

.acc-chart-date-picker-wrapper:has(.acc-chart-date-picker-input:focus) {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}
.acc-chart-date-picker-input,
#accChartdobInput {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0;
  z-index: 2;
}
@container acc-chart-fields (max-width:420px){
  .acc-chart-date-fields-wrapper {
    flex-direction: column;
}
.acc-chart-field-wrapper {
  max-width: 100%!important;
    flex: auto!important;
}
}

.cd-table-wrapper {
    overflow-y: auto;
    height: 100%;
    border: 1px solid #ebe7e7;
    border-radius: 12px;
}

.cd-table th {
    border-top: 0;
    padding: 12px 15px;
    font-size: 16px;
    line-height: 20px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cd-table td {
    padding: 12px 10px;
    font-size: 16px;
    line-height: 20px;
}

.cd-table .cd-table-cell-data {
    display: block;
    max-width: 70px;
    padding: 7px 10px;
    border: 1px solid #EBE7E7;
    border-radius: 4px;
    background: #ffffff;
    margin-inline: auto;
    min-width: 70px;
}

.cd-data-card .cd-table td:first-child, .cd-data-card .cd-table th:first-child {
    padding-left: 22px!important;
}


.cd-table {
    border-collapse: separate;
    border-spacing: 0;
}
.attach-docs-card .cd-table-wrapper{
  margin-top:20px;
}
@media (max-width: 1200px) {
    .homework-1-body .attach-docs-card {
        padding: 0;
        margin: 0;
        border-radius: 0;
        background: transparent;
    }
    .homework-1-body .attach-docs-accordion .accordion-item {
    border: none;
    border-radius: 16px;
}
#accountability_week_form .acc-chart-preview-btn {
    padding: 14px 15px;
}
#accountability_week_form .acc-chart-fields {
    margin-top: 60px;
}
}
@media (max-width:1280px){
  .chart-card-desc {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 10px;
    margin-top: 10px;
}
#accountability_week_form .acc-chart-date-fields-wrapper {
    flex: 1 1 200px;
}
#accountability_week_form .acc-chart-preview-btn {
    /* margin-top: 25px; */
}
#accountability_week_form .acc-chart-fields {
    align-items: flex-end;
}
}
@media (max-width:767px){
  
.attach-docs-card .cd-table-wrapper{
  margin-top:15px;
}
  .chart-card-desc {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 10px;
    margin-top: 6px;
}
.cd-weeks-row {
    padding: 8px 20px;
}
  
.cd-data-card .cd-table td:first-child, .cd-data-card .cd-table th:first-child {
    padding-left: 16px!important;
}
.cd-table th {
    padding: 10px 14px;
    font-size: 14px;
    line-height: 18px;
}

.cd-table td {
    padding: 10px 10px;
    font-size: 14px;
    line-height: 18px;
}
  
.cd-table .cd-table-cell-data {
    
    max-width: 60px;
    padding: 7px 7px;
    min-width: 60px;
}
#accountability_week_form .acc-chart-fields {
    margin-top: 25px;
}

}
@container acc-chart-fields (max-width:310px){
#accountability_week_form .acc-chart-preview-btn {
    margin-top: 0px;
}
}
.res-training-body .attach-docs-card{
  flex: auto;
}

@media (max-width:350px){
  .cd-data-card .cd-table td:first-child, .cd-data-card .cd-table th:first-child {
    padding-left: 10px!important;
  }
  .cd-data-card .cd-table td:last-child, .cd-data-card .cd-table th:last-child {
    padding-right: 10px!important;
  }
}
/* ------------------------------- progress chart page ------------------------------- */
.chart-inner-body{
  container: chart-inner-body/inline-size;
}

.acc-chart-date-fields-wrapper{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-basis:500px;
}
.acc-chart-field-wrapper {
    max-width: 250px;
    width: 100%;
    flex: 1 0 200px;
}
/* Date picker wrapper in profile */
.acc-chart-date-wrap {
  position: relative;
  width: 100%;
}
.acc-chart-date-wrap .acc-chart-date-picker-wrapper {
  padding-right: 45px;
  display: flex;
  align-items: center;
}
.acc-chart-date-wrap .acc-chart-date-picker-icon svg {
  width: 20px;
  height: 22px;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.acc-chart-date-wrap #dobDisplay {
  color: var(--textPrimary); /* black when date selected */
}

.acc-chart-date-wrap #dobDisplay.placeholder-color {
  color: #21252980;
}


.acc-chart-date-picker-wrapper {
  width: 100%;
  height: 47px;
  padding: 13px 41px 13px 15px;
  background-color: white;
  border: 1px solid var(--borderLight);
  border-radius: 4px;
  font-size: 16px;
    line-height: 19px;
  color: var(--textSecondary);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.acc-chart-date-picker-wrapper {
  padding-right: 45px;
  display: flex;
  align-items: center;
}

.acc-chart-date-picker-wrapper:has(.acc-chart-date-picker-input:focus) {
  outline: none;
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}
.acc-chart-date-picker-input,
#accChartdobInput {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0;
  z-index: 2;
}
@container chart-inner-body (max-width: 545px) {
  .pg-range-picker{
    margin-bottom: 18px;
        display: grid;
    grid-template-columns: 140px 1fr;
  }
 .pg-range-label {
    padding: 16px 10px 16px 20px;
}
.pg-range-input {
    padding: 11px 20px;
}
.pg-range-picker .white-black-filter-btn {
 grid-column: -1 / 1;
 padding: 13px 14px;
}
.pg-range-picker > *:nth-child(-n+2) {
  border-bottom: 1px solid #e8eaed;
}
}
@media (max-width: 767px) {
    .chart-inner-body .white-black-filter-tabs {
        margin-bottom: 20px;
    }
}

.pg-range-picker {
    min-height: 40px;
}

.acc-chart-date-wrap .date-display {
    color: var(--textPrimary);
}

.acc-chart-date-wrap .date-display.placeholder-color {
    color: #21252980;
}

.pg-range-input .date-display{
  font-size: 13px;
  line-height: 100%;
}
.pg-range-input .acc-chart-date-picker-icon svg {
    width: 18px;
    height: 20px;
    right: 10px;
}
.acc-chart-date-picker-wrapper.pg-range-input {
    background: white;
    border: none;
    border-right: 1px solid #e8eaed;
    padding: 11px 14px;
    padding-right:40px;
    height: 100%;
    border-radius: 0;
}
.pg-range-picker .acc-chart-date-wrap{
width: auto;
}
.pg-range-picker .acc-chart-date-picker-wrapper:has(.acc-chart-date-picker-input:focus) {
    outline: none;
     border-color: transparent;
    box-shadow: none;
}
@media (max-width: 767px) {
    .pg-range-picker .acc-chart-date-wrap{
        flex: 1 1 auto;
    }
}


.progress-graph-meta{
  font-size: 16px;
  line-height: 20px;
}
.progress-graph-meta >*:not(:last-child){
  margin-bottom: 5px;
}


/* ------------------------------------- homework detail ---------------------------------- */
.rt-header-actions button{
  margin:0!important;
}
/* ===== TOP CONTROL BAR ===== */
.corr-control-bar {
  display: flex;
  /* flex-direction: column; */
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.corr-control-phase, .corr-internal-notes-wrap {
    background-color: transparent;
    border:none;
    padding: 0;
    border-radius: 0;
}
.corr-control-input{
  width:100%;
}
@container homework-detail-body (max-width: 780px) {
  .corr-control-bar {
    flex-direction: column;
  }
  .corr-control-phase,
  .corr-editor-wrapper,
  .corr-internal-notes-wrap {
    flex-basis: auto!important;
    width: 100%;
  }
}

.corr-control-bar {
    background-color: #fcfcfd;
    border: 1px solid var(--inputBorder);
    padding: 18px 26px;
    border-radius: 8px;
}

@media (max-width:767px) {
  .corr-control-bar {
    padding: 16px 20px;
  }
}

.corr-internal-notes-wrap {
    gap: 5px;
    flex: 1;
    flex-basis: 445px;
}

.corr-internal-notes-label, .corr-control-label {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;  
  color: var(--textPrimary);
}
.corr-table .input_dropdown{
  flex-direction:row;
  gap:3px;
  display:flex!important;
}

.corr-table-left{
   container-type: inline-size;
    container-name: exercise-inputs;
}

@container exercise-inputs (max-width:600px){
  .corr-table .input_dropdown{
  flex-direction:column;
}
}
/* =========================================================
   DESIGNER OVERRIDE LAYER (added) — coach app tweaks.
   Appended last so its rules win where designed. No renamed/
   removed classes, so nothing existing breaks.
   ========================================================= */

/* ================== coach new upadates ==================================== */

/* ---------------- login page ------------------- */

 .form-group-ds:first-of-type {
  margin-bottom: 24px;
}

@media (max-width: 767px) {

  /* Form group */
  .form-group-ds:first-of-type {
    margin-bottom: 20px;
  }

  .form-options {
    margin-top: 15px;
  }
}


/* ------------------- home page ------------------ */
.cph-filter-clear-btn {
    border: 1px solid #111827;
    color: #000000;
}


/* ------------------- user management page ------------------ */
@media (max-width: 767px) {
    .user-management-top-bar {
        gap: 10px 10px!important;
    }
}

/* Edit USer page */
.add-member-action-btn-wrap {
    gap: 14px;
}

@media (max-width: 767px) {
    .add-member-action-btn-wrap {
        gap: 12px;
    }
}


/* ----------- cardio details inner */
.cardio-phase-form .cd-table-wrapper {
    overflow-y: auto;
    height: auto!important;
    border:none;
    border-top: 1px solid #ebe7e7;
    border-radius: 0;
}
.cd-data-card .cd-table th {

    padding: 7px 15px!important;
    font-weight: 500!important;
    color: var(--textSecondary)!important;
    font-size: 14px!important;
    line-height: 18px!important;
}

.cd-data-card .cd-card-body-grid {
    margin:0!important;
    display: grid!important;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 17px 17px 20px;
    flex-wrap: wrap;
    position: relative;
    border-top: 1px solid var(--borderLight);
}
.cd-data-card .cd-label{
        font-size: 13.57px;
    line-height: 17.44px;
    font-weight: 500;
    margin-bottom:5px;
    color: var(--textSecondary);
}
.cd-data-card .cd-select {
    width: 100%;
    padding: 5px 6px;
    background-color: white;
    border: 1px solid var(--borderLight);
    border-radius: 4px;
    font-size: 13.57px;
    line-height: 17.44px;
    color: var(--textSecondary);
    text-align: left;
    transition: all 0.15s ease;

}
.cd-data-card .cd-select[type="text"] {
    background-image:none;
}
.cd-data-card{
    container:cd-data-card-contianer/inline-size
}
@container cd-data-card-contianer (max-width:415px){

.cd-data-card .cd-card-body-grid {
    grid-template-columns: 1fr 1fr ;
}
}


.cd-card .cd-card-header{
    display:none;
}

.cd-label:has(input[type="checkbox"]) {
    font-size: 14px;
    line-height: 18px;
    color: var(--textSecondary);
    cursor: pointer;
    font-weight:400;
    vertical-align:middle;
}
.cd-label input[type="checkbox"]{
    width:16px;
    height:16px;
    vertical-align:middle;
}

.cd-form .cd-data-card-grid ~ .add-exercise-btnn {
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    padding: 6px 20px;
    /* max-width: 130px; */
    text-align:center;
    background-color: var(--textAccent);
    border: none;
    border-radius: 4px;
    color: white;
    margin-top: 5px;
    margin-inline: auto;
    display: flex;
}





/* --------------------------- /foodjournal_list.php?member_id=3 */
.homework-clear-btn{
      display: flex;
    align-items: center;
    justify-content: center;
}




/* ------------------------------ /member_email.php?member_id=3 */


.date-dropdowns select {
  appearance: none;
  -webkit-appearance: none;
  /* width: 100%; */
  padding: 10px 30px 10px 9px;
  background-color: white;
  border: 1px solid var(--borderLight);
  border-radius: var(--radius-xs);
  font-size: 13.57px;
  line-height: 17.44px;
  color: var(--textSecondary);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21' fill='none'%3E%3Cpath d='M5.15552 7.7334L10.3111 12.8889L15.4666 7.7334' stroke='black' stroke-width='0.859258' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 5px center;
}
.date-dropdowns{
  display:flex;
  gap:2px;
  flex-wrap:wrap
}
.attach-item-left{
  flex-wrap:wrap;
  min-width: 0;
}


/* Designer follow-up: add-exercise button after the cardio data-card grid */
.cd-form .cd-data-card-grid ~ .add-exercise-btn {
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    padding: 6px 20px;
    /* max-width: 130px; */
    text-align:center;
    background-color: var(--textAccent);
    border: none;
    border-radius: 4px;
    color: white;
    margin-top: 5px;
    margin-inline: auto;
    display: flex;
}


/* ==============================================  new header section ============================================== */
.header-member-name{
  font-size: 18px;
  line-height: 25px;
  font-weight: 500;
  margin-bottom: 0;
  color:var(--textPrimary)
}
.header-btn-wrapper{
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F7F7F9;
  box-shadow: inset 0 0 0 1px #EDEEF1;
  border-radius: 200px;
  overflow: hidden;  
}
.active-btn, .inactive-btn {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: var(--textSecondary);
  padding: 10px 35px;
  transition:  color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.active-btn.inactive{
  padding-right:15px
}
.active-btn.active{
  padding-right:35px;
  background: var(--textAccent);
  color: #FCFCFD;
}

.inactive-btn.inactive{
  padding-left:15px
}

.inactive-btn.active{
  padding-left:35px;
  /* background: #D54248;
  color: #FFFFFF; */
  background: var(--textAccent);
  color: #FCFCFD;
}
@media (pointer:fine) and (hover:hover){
.active-btn:hover, .inactive-btn:hover{
  opacity: 0.8;
}}
.active-btn:active, .inactive-btn:active{
  opacity: 1;
}
.page-top-actions{
  gap:0;  
}
.page-header-notification{
  margin-right: 29px;
}
.header-member-name{
  margin-right: 14px;
}
.page-top-actions > *:last-child{
  margin-right: 0!important;
}
@media (max-width:991px){
.page-header-notification{
  margin-right: 20px;
}
.active-btn, .inactive-btn {
  padding: 10px 28px;
}

.active-btn.inactive{
  padding-right:15px
}
.active-btn.active{
  padding-right:28px;
}

.inactive-btn.inactive{
  padding-left:15px
}

.inactive-btn.active{
  padding-left:28px;
}
}
@media (max-width:767px){
      .page-top-actions {
        display: flex;
        flex-wrap: wrap;
        row-gap:10px;        
    }
    .page-header-meta{
      flex-direction: row;
      flex-wrap: wrap;
      row-gap:20px;
    }
    
.page-header-notification{
  margin-right: 20px;
}
.header-member-name{
  margin-right: 13px;
}
    .header-member-name{
  font-size: 16px;
  line-height: 20px;
}

.active-btn, .inactive-btn {
  padding: 10px 25px;
}

.active-btn.inactive{
  padding-right:12px
}
.active-btn.active{
  padding-right:25px;
}

.inactive-btn.inactive{
  padding-left:12px
}

.inactive-btn.active{
  padding-left:25px;
}
}








/* -------------------------------------- top right design */


.edit-rtp-top-action-container{
  container: edit-rtp-top-action-container/inline-size;
  
  flex-basis:395px;
  flex-grow:1;
}

/* Editor header, top right: the client's name + Active/Inactive indicator on
   one line, with Preview Workout Stack / View PDF stacked directly UNDERNEATH
   it — the approved layout. This was a wrap-when-it-fits flex ROW, so on a wide
   screen the buttons sat BESIDE the indicator instead of below it. */
.edit-rtp-top-action-wrapper{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.edit-rtp-top-action-wrapper > .edit-rtp-top-action {
  justify-content: flex-end;
}
@media (max-width:767px){
  .edit-rtp-top-action-wrapper {
    align-items: flex-start;
  }
  .edit-rtp-top-action-wrapper > .edit-rtp-top-action {
    justify-content: flex-start;
  }
}
/* ---------------- Homework editor: page-header action buttons ------------- */
.page-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.hw-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #fff;
    border: 1px solid var(--inputBorder, #E5E7EB);
    border-radius: 8px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    color: var(--textPrimary, #212529);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.hw-header-btn:hover {
    background: #f5f7fa;
    border-color: #cfd6e0;
}
.hw-header-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ---------------- Homework editor: caret + no inner scrollbars ------------ */
.homework-detail-body .ql-editor {
    caret-color: #212529;
    overflow-y: visible;
    word-break: break-word;
    overflow-wrap: anywhere;
}
/* keep scrolling only when an editor is expanded to fullscreen */
.homework-detail-body .editor-fullscreen .ql-editor {
    overflow-y: auto;
}
/* let the exercise table shrink to fit — removes the lateral scrollbar */
.homework-detail-body .corr-table {
    min-width: 0;
}
.homework-detail-body .corr-table-left {
    overflow-x: visible;
}




.homework-table-filter .white-black-filter-btn,
.homework-table-filter .white-black-filter-tabs .calendar-wrapper {
    white-space: nowrap;
    flex: 0 0 auto;
}

.homework-table-filter .white-black-filter-tabs{
        display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: fit-content;
}

.homework-table-filter .d-flex.align-items-stretch.gap-2.flex-wrap {
    min-width: 0;
    max-width: 100%;
}
.calendar-wrapper{
    overflow:hidden
}

.calendar-wrapper .white-black-filter-btn.active {
    background-color: #ffffff;
    border-color: #e8eaed;
    color: var(--textMuted, #6b7280);
}
.calendar-wrapper:hover .white-black-filter-btn.active {
    background-color: var(--sidebarActive, #dde2ee);
    /* color: var(--textPrimary, #000000); */
}


/* calender popup */

.cc-range-pop .cc-range-fields {
    width: 100%;
}

.cc-range-pop .cc-range-field {
    width: 100%;
}

.cc-range-pop .cc-range-box {
    border: 1px solid var(--cardBorder);
    border-radius: var(--radius-xs);
    color: var(--textMuted);
}

.cc-range-pop .container__months {
    border: 1px solid var(--cardBorder);
    box-shadow: none!important;
}

.cc-range-pop select.month-item-year, .cc-range-pop select.month-item-name {
    border: 1px solid var(--cardBorder);
    padding: 4px!important;
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='black' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1px center;
    background-size: 18px 18px;
    padding-right: 20px!important;
    outline:none;
    line-height:1.5;
    transition:all 0.15s ease;
}
.cc-range-pop select.month-item-year:active,
.cc-range-pop select.month-item-name:active,
.cc-range-pop select.month-item-year:hover,
.cc-range-pop select.month-item-name:hover{
    box-shadow: var(--shadow2);
    border-color: #9ca3af;
}
.litepicker .container__days{
    gap:2px;
    
}
.litepicker .container__days>div, .litepicker .container__days>a{
    flex-shrink:1;        
    width: calc(var(--litepicker-day-width) - 2px )!important;
}



/* edit res training updating css */
.edit-rtp-smr-table td:has(input.edit-rtp-cell-input){
    padding:0;
}
.smr-exercise-heading{
  width: 400px;
}
.smr-set-heading, .smr-reps-heading, .smr-rest-heading{
  min-width: 120px;
}
/* .edit-rtp-smr-table label.edit-rtp-cell-label {
    width: 100%;
    cursor: text;
} */
.edit-rtp-smr-table input.edit-rtp-cell-input {
    padding: 12px 25px;
    width: 100%;
    display: flex;
    height: 100%;
    max-width: 100%;
    text-align: left;
}
.smr-table-set-cell input, .smr-table-reps-cell input, .smr-table-reset-cell input{
  padding-inline: 20px!important;
}
.edit-rtp-smr-table td:has(input.edit-rtp-cell-input:focus) {
    box-shadow:0 0 0 1px #4C78CE inset;
    background:#fff;
}
.edit-rtp-smr-table .edit-rtp-cell-input:focus {
    outline: none;
    border-color: transparent;
    background: transparent;
}
.edit-rtp-smr-table .edit-rtp-cell-input:hover {
    border-color: transparent;
}
@media (max-width: 767px) {
.edit-rtp-smr-table input.edit-rtp-cell-input {
    padding: 10px 20px;
}
.smr-table-set-cell input, .smr-table-reps-cell input, .smr-table-reset-cell input{
  padding-inline: 15px!important;
}
}

.edit-rtp-smr-table td:has(input.edit-rtp-exercise-text-field) {
    padding:0;
}
.edit-rtp-smr-table input.edit-rtp-exercise-text-field{
    border:none;
    background:transparent;
padding: 12px 25px;
    max-width:100%;
    width:100%;
    color:inherit;
    font-weight:inherit;
}
.edit-rtp-smr-table td:has(input.edit-rtp-exercise-text-field:focus) {
    box-shadow:0 0 0 1px #4C78CE inset;
    background:#fff;
}
.edit-rtp-smr-table .edit-rtp-exercise-text-field:focus {
    outline: none;
    border-color: transparent;
    background: transparent;
}
.edit-rtp-smr-table .edit-rtp-exercise-text-field:hover {
    border-color: transparent;
}
@media (max-width: 767px) {
.edit-rtp-smr-table input.edit-rtp-exercise-text-field{
    padding: 10px 20px;
}
}


.edit-rtp-exercise-table .edit-rtp-exercise-text-field {
    font-size: 10px;
    line-height: 18px;
    font-weight: 400;
    color: var(--textSecondary);
    cursor: pointer;
    transition: color 0.15s ease;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--borderLight);
    border-radius: 4px;
    width: 100%;
    min-height: 32px;
    background: transparent;
}
.edit-rtp-exercise-table .edit-rtp-exercise-text-field:hover {
  color: var(--textAccent);
}

.edit-rtp-exercise-table .edit-rtp-cell-input {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: var(--textSecondary);
  cursor: pointer;
  transition: color 0.15s ease;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--borderLight);
  border-radius: 4px;
  min-height: 32px;
}
.edit-rtp-exercise-table .edit-rtp-exercise-text-field:focus,
.edit-rtp-exercise-table .edit-rtp-cell-input:focus {
    box-shadow:0 0 0 1px #4C78CE inset;
    background:#fff;
    outline: none;
    border-color: transparent;
    background: transparent;
}

.weight-loss-cell input{
  padding-inline: 0!important;
}

.weight-loss-cell{
  border: 1px solid #E4E3EB!important;
}

.edit-rtp-smr-table tbody tr:not(:first-child) .weight-loss-cell {
    border-top: none!important;
}





.email-notes-body .litepicker {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.16);
    padding: 16px;
    width: max-content;
}
 .email-notes-body .container__months {
    
    box-shadow: none!important;
}
.email-notes-body .litepicker .container__months .month-item{
 border: 1px solid var(--cardBorder); 
    border-radius: 5px;
}
.email-notes-body .litepicker .container__months.columns-2 {
    width: calc((var(--litepicker-month-width) * 2) + 34px);
    gap: 10px;
}

.email-notes-body .month-item-name, .email-notes-body .month-item-year {
    border: 1px solid var(--cardBorder);
    padding: 4px!important;
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='black' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1px center;
    background-size: 18px 18px;
    padding-right: 20px!important;
    outline: none;
    line-height:1.6;
    transition: all 0.15s ease;
}

.email-notes-body .litepicker .container__footer {
    box-shadow: none!important;
    background:transparent;
    padding-inline:0!important;
    margin-inline:0!important;
}

.email-notes-body .litepicker .container__footer .button-apply {
    border-radius: 5px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: var(--textAccent, #4c78ce);
    border: 1px solid var(--textAccent, #4c78ce);
    color: #fff;
}

.email-notes-body .litepicker .container__footer .button-cancel {
    border-radius: 5px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--cardBorder, #d1d5db);
    color: var(--textPrimary, #374151);
}



/* responsive popup */

/* ── responsive fallback + mobile popup-per-field for the coaching date range picker ── */
.cc-range-pop {
    max-width: calc(100vw - 16px);
    box-sizing: border-box;
}

.cc-range-pop.cc-range-pop--centered {
    max-height: calc(100vh - 16px);
    overflow: visible;
    /* overflow-x: clip; */
}

@media (max-width: 640px) {
    .cc-range-pop .cc-range-field {
        cursor: pointer;
    }
.cc-range-fields {
    flex-direction: column;
}

.cc-range-arrow {
    display: none;
}

.cc-range-pop {
    width: 300px!important;
}
    .cc-range-pop .cc-range-cal {
        display: none;
    }

    .cc-range-pop .cc-range-cal.is-open {
        display: block;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1060;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
        max-width: calc(100vw - 32px);
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        padding: 12px;
    }
}

/* ==========================================================================
   Shared date picker (design/js/datepicker.js)

   Opens on a month grid with an expandable year list, so any year is one or
   two clicks away — the native <input type="date"> popup only stepped months.
   Layout follows the client's calendar design: panel head shows the month
   being browsed, the open year is a plain caption above its month grid, and
   every other year is a full-width divided row.
   ========================================================================== */

/* ---- trigger (standalone field, e.g. Jump To Historical Week) ---- */
.ds-datepicker {
  position: relative;
  width: 100%;
}

.ds-datepicker-trigger {
  width: 100%;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  padding: 13px 15px;
  background-color: #fff;
  display: flex;
  align-items: center;
}

.ds-datepicker-trigger-icon,
.ds-datepicker-caret {
  display: inline-flex;
  align-items: center;
  color: #21252980;
  flex: 0 0 auto;
}

.ds-datepicker-value {
  flex: 1 1 auto;
  color: var(--textPrimary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-datepicker-value.placeholder-color,
.date-display.placeholder-color {
  color: #21252980;
}

.ds-datepicker-open .ds-datepicker-trigger {
  border-color: var(--accent, #5a83d3);
  box-shadow: 0 0 0 3px rgba(90, 131, 211, 0.1);
}

.ds-datepicker-open .ds-datepicker-caret {
  transform: rotate(180deg);
}

/* ---- panel ---- */
.ds-datepicker-panel {
  position: absolute;
  z-index: 1060;
  top: calc(100% + 6px);
  left: 0;
  /* width: 236px; */
  width: 252px;
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.12);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  cursor: default;
}

.ds-datepicker-panel[hidden] {
  display: none;
}

.ds-datepicker-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid #f0f0f2;
}

.ds-datepicker-head-title {
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 600;
  color: #16181c;
}

.ds-datepicker-head-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  color: #16181c;
  cursor: pointer;
}

/* The scrolling body — a long year list stays inside the panel. */
.ds-datepicker-view {
  max-height: 300px;
  overflow-y: auto;
}

.ds-datepicker-view[hidden] {
  display: none;
}

/* ---- open year: caption + month grid ---- */
.ds-dp-year.is-open {
  padding: 14px 16px 16px;
}

.ds-dp-year-caption {
  display: block;
  border: 0;
  background: transparent;
  padding: 0 0 10px;
  font-size: 12px;
  color: #9aa0a6;
  cursor: pointer;
}

.ds-dp-months {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ds-dp-month {
  border: 1px solid #e8e8ed;
  background: #fff;
  border-radius: 6px;
  padding: 9px 0;
  font-size: 13px;
  color: #202124;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.ds-dp-month:hover {
  border-color: var(--accent, #5a83d3);
}

.ds-dp-month.is-today {
  border-color: var(--accent, #5a83d3);
  color: var(--textAccent, #4c78ce);
}

.ds-dp-month.is-selected {
  background: var(--textAccent, #4c78ce);
  border-color: var(--textAccent, #4c78ce);
  color: #fff;
}

/* ---- collapsed year rows ---- */
.ds-dp-year-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-top: 1px solid #f0f0f2;
  background: transparent;
  padding: 14px 16px;
  font-size: 13px;
  color: #202124;
  cursor: pointer;
}

.ds-dp-year-row:hover {
  background: #f7f8fa;
}

.ds-dp-chevron {
  display: inline-flex;
  color: #9aa0a6;
}

/* ---- day grid ---- */
.ds-dp-days {
  padding: 14px 16px 16px;
}

.ds-dp-days-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.ds-dp-nav-btn {
  border: 0;
  background: transparent;
  color: #9aa0a6;
  padding: 4px;
  display: inline-flex;
  border-radius: 6px;
  cursor: pointer;
}

.ds-dp-nav-btn:hover {
  background: #f7f8fa;
}

/* Clicking the title goes back up to the year list. */
.ds-dp-nav-title {
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #16181c;
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 8px;
}

.ds-dp-nav-title:hover {
  background: #f7f8fa;
}

.ds-dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.ds-dp-weekday {
  text-align: center;
  font-size: 11px;
  color: #9aa0a6;
  padding-bottom: 4px;
}

.ds-dp-day {
  border: 0;
  background: transparent;
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  font-size: 12px;
  color: #202124;
  cursor: pointer;
  line-height: 1;
}

.ds-dp-day.is-empty {
  pointer-events: none;
}

.ds-dp-day:hover {
  background: #f7f8fa;
}

.ds-dp-day.is-today {
  color: var(--textAccent, #4c78ce);
  font-weight: 500;
}

.ds-dp-day.is-selected {
  background: var(--textAccent, #4c78ce);
  color: #fff;
}

/* ---- out of range: future dates, and years before the client's first record.
       Shown greyed rather than hidden so the grid keeps its shape. ---- */
.ds-dp-day.is-disabled,
.ds-dp-day:disabled,
.ds-dp-month.is-disabled,
.ds-dp-month:disabled {
  color: #b9bec7;
  cursor: not-allowed;
  pointer-events: none;
}

.ds-dp-month.is-disabled,
.ds-dp-month:disabled {
  background: #f7f8fa;
  border-color: #ececf1;
}

.ds-dp-day.is-disabled:hover,
.ds-dp-day:disabled:hover {
  background: transparent;
}

.ds-dp-month.is-disabled:hover,
.ds-dp-month:disabled:hover {
  border-color: #ececf1;
}

/* ---- footer ---- */
.ds-datepicker-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid #f0f0f2;
}

.ds-datepicker-link {
  border: 0;
  background: transparent;
  color: var(--textAccent, #4c78ce);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.ds-datepicker-link:hover {
  text-decoration: underline;
}

/* Inline picker: a bare text input the component wrapped so the panel has a
   positioned anchor. Used by the older baseline forms. */
.ds-datepicker-inline {
  position: relative;
  display: inline-block;
}

/* Table-header pickers sit in narrow cells — keep the panel from being clipped
   and let it flip to the right edge when it would overflow. */
.date-picker-wrapper {
  position: relative;
}

.date-picker-wrapper .ds-datepicker-panel {
  top: calc(100% + 4px);
  left: 0;
}

@media (max-width: 575px) {
  .ds-datepicker-panel {
    width: min(236px, calc(100vw - 32px));
  }
}

/* --------------------------------------------------------------------------
   Accountability "Select Date" panel — single Jump To Historical Week field
   (the week dropdown it used to sit beside was removed) and the week strip's
   has-data marker.
   -------------------------------------------------------------------------- */

/* With only one field left, let it take the design's wider measure instead of
   the 250px column it shared with the old dropdown. */
.acc-chart-date-fields-wrapper > .acc-chart-field-wrapper:only-child {
  max-width: 475px;
  flex: 1 1 300px;
}

.acc-chart-label[for="accChartCalendarPickerWrapper"] {
  font-size: 16px;
  line-height: 22px;
}

/* Weeks that already hold logged entries get a quiet dot, so the coach can see
   where the data is without the strip having to hide empty weeks. */
.acc-chart-week-btn {
  position: relative;
}
/* ==========================================================================
   Cardio detail page — approved client design
   ========================================================================== */

/* Medication status. An indicator, not a control: the value lives on the
   member record and is edited on the member page. */
.cd-meds-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.cd-meds-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--borderLight, #ebe7e7);
  background: #fff;
  font-size: 13px;
  line-height: 18px;
  color: #9aa0a6;
}

.cd-meds-chip.is-active {
  border-color: var(--textAccent, #4c78ce);
  background: #eef3fc;
  color: var(--textAccent, #4c78ce);
  font-weight: 500;
}

/* PHASE + INTERNAL NOTES: a narrow field beside the notes editor. */
.cd-top-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
  gap: 24px;
  align-items: start;
  padding: 20px;
}

.cd-top-grid .cd-label {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--textPrimary);
}

/* Zone tables gained HRR% and RPE columns, so give the heart-rate input the
   room and keep the reference bands centred and quiet. */
/* .cd-zone-table .cd-zone-band {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--textSecondary);
} */

/* .cd-zone-table td:first-child {
  width: 21%;
}

.cd-zone-table td:nth-child(2) {
  width: 37%;
} */

.cd-zone-table .cd-table-input::placeholder {
  color: #b0b4ba;
}

/* Week block header is centred in the design. */
.cd-weeks-header {
  justify-content: center;
}

.cd-weeks-title {
  text-align: center;
}

/* Phase / Level / Frequency sit on one row, with the clear button at the end. */
/* .cd-weeks-meta {
  justify-content: flex-start;
  gap: 14px;
} */

/* .cd-weeks-meta .cd-weeks-meta-input {
  max-width: 60px;
}

.cd-weeks-meta .frequency-input {
  max-width: 52px;
} */

.cd-week-meta-close {
  /* margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--textSecondary);
  display: inline-flex;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer; */
}

/* .cd-week-meta-close:hover {
  background: var(--iconBackground, #f0f0f6);
  color: #d54248;
} */

/* Footer: visibility checkbox on the left, primary action centred. */
.cd-form-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cd-visible-check {
  position: absolute;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: var(--textSecondary);
  cursor: pointer;
}

.cd-submit-btn {
  min-width: 150px;
}

/* Stack on narrow screens — absolute positioning would overlap the button. */
@media (max-width: 767px) {
  .cd-top-grid {
    grid-template-columns: 1fr;
  }

  .cd-form-footer {
    justify-content: space-between;
  }

  .cd-visible-check {
    position: static;
  }
}





/* calender css */

.ds-datepicker-panel .ds-dp-nav-title, 
.ds-datepicker-panel .ds-datepicker-head-title {
    font-weight: 500;
}

.ds-datepicker-panel .ds-dp-days {
    padding: 12px 8px 10px;
}

.ds-datepicker-panel .ds-dp-weekday {font-size: 12px;font-weight: 400;}

 .ds-datepicker-panel .ds-dp-months {
    /* padding: 12px 8px 10px; */
    gap: 5px;
}
.ds-datepicker-panel .ds-dp-year.is-open {
    padding: 14px 12px 16px;
    border-top: 1px solid #f0f0f2;
}


.ds-datepicker-panel .ds-dp-month {
    padding: 7px 0;
}

.ds-datepicker-panel .ds-dp-year-row {
    padding: 10px 12px;
}

.ds-datepicker-panel .ds-dp-day {
    font-size: 13px;
}

/* ============================================= status indicators ============================================= */
/* Active/Inactive on the member list and the client page header are read-only
   indicators — a client's status is changed only by the Status radio on their
   Profile page. The pills keep their existing colours (so the state still reads
   at a glance) but must not invite a click: no pointer cursor, no hover
   feedback, no text selection, and nothing focusable. */
.cph-status-indicator .cph-status-btn,
.header-status-indicator .active-btn,
.header-status-indicator .inactive-btn {
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.cph-status-indicator .cph-status-btn.inactive:hover {
  opacity: 1;
  background: inherit;
  color: inherit;
}
.cph-status-indicator .cph-status-btn:hover, .header-status-indicator .inactive-btn:hover, .header-status-indicator .active-btn:hover{
  opacity: 1;
}
.cph-status-indicator .cph-status-btn.inactive:hover {
  background: #fff;
  color: hsla(210, 11%, 15%, 0.5);
}
/* Spans are not flex items by default the way the old <button>s were. */
.header-status-indicator .active-btn,
.header-status-indicator .inactive-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Live-search feedback: dim the results region while a request is in flight. */
.live-search-region { transition: opacity .15s ease; }
.live-search-region.is-loading { opacity: .5; pointer-events: none; }



.food-journal-list-page #lightbox {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}
.food-journal-list-page .lightboxOverlay {
    inset: 0!important;
    position: fixed!important;
}



.ds-datepicker-view {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bbb transparent;
}

.ds-datepicker-view::-webkit-scrollbar {
  width: 4px;
}

.ds-datepicker-view::-webkit-scrollbar-track {
  background: transparent;
}

.ds-datepicker-view::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
}


/* date calender */
/* --- accordion open/close (added) --- */
.ds-datepicker-panel .ds-dp-months-wrap {
    overflow: hidden;
    max-height: 0;
    transition: max-height .22s ease;
}
.ds-datepicker-panel .ds-dp-chevron svg {
    transition: transform .18s ease;
}
.ds-datepicker-panel .ds-dp-year.is-open .ds-dp-chevron svg {
    transform: rotate(90deg);
}
.ds-datepicker-panel .ds-dp-year.is-open {
    /* padding: 14px 12px 16px; */
    padding:0;
    border-top: 0;
}
.ds-datepicker-panel .ds-dp-months {
    padding: 5px 8px 10px;
}
.ds-datepicker-panel .ds-dp-year.is-open .ds-dp-chevron svg {
    transform: rotate(90deg);
}
/* ============ editor Phase fields: text caret, not a pointer ============ */
/*
 * `cursor` inherits, so a pointer set on a surrounding control block lands on
 * the text inputs inside it and the Phase box shows a finger. These are typed
 * into, so state the caret explicitly on the inputs themselves.
 */
.corr-control-input,
input.corr-control-input,
.edit-rtp-field-select[type="text"],
input.edit-rtp-field-select,
.edit-rtp-exercise-text-field,
.edit-rtp-cell-input {
  cursor: text;
}

/* ================= In-PMS digital preview page ================= */
.digital-preview-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.digital-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.digital-preview-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--textPrimary, #212529);
  text-decoration: none;
}
.digital-preview-back:hover { text-decoration: underline; }
.digital-preview-note {
  font-size: 13px;
  color: hsla(210, 11%, 15%, 0.55);
}
/* The script grows this to the framed document's height; the min-height is the
   fallback if that ever fails, so the preview is never a sliver. */
.digital-preview-frame {
  width: 100%;
  min-height: 70vh;
  border: 1px solid var(--borderLight, #E5E7EB);
  border-radius: 12px;
  background: #fff;
  display: block;
}

/* Progress Graph: dim the cards while a new range is being fetched. */
#pgChartRegion { transition: opacity .15s ease; }
#pgChartRegion.is-loading { opacity: .55; pointer-events: none; }
