/* =========================================================
       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: 8px 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);
  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;
  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 {
  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;
}

.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;
  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;
}

/* =========================================================
       SMALL 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;
}

/* --------------------------------- Homework Page -------------------------------- */

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

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

.ph-accordion .accordion-button {
  padding: 21px 26px 21px 19px;
  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;
}
.ph-accordion-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ph-accordion-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ph-accordion .accordion-button::after {
  content: none;
}
.edit-ph-section-chevron {
  width: 24px;
  height: 24px;
  display: block;
  transition: all 0.15s ease;
}
.ph-accordion .accordion-button:not(.collapsed) .edit-ph-section-chevron {
  transform: rotate(180deg);
}

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

/* Section icon */
.ph-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;
}

.ph-section-icon svg {
  width: 24.5px;
  height: 24.5px;
}
.ph-accordion-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border: 1px solid var(--borderLight);
  background: white;
  border-radius: 4px;
  color: var(--textAccent);
  font-size: 13.57px;
  line-height: 17.44px;
  font-weight: 500;
}
.ph-accordion-note svg {
  width: 16px;
  height: 16px;
  display: block;
  transition: all 0.15s ease;
}
/* =========================================================
       ACCORDION CONTENT ITEMS
       ========================================================= */

.ph-accordion-content {
  display: flex;
  flex-direction: column;
  padding: 13px 25px 13px 19px;
  border-top: 1px solid var(--borderLight);
}
.ph-accordion-list {
  padding: 28px;
  background-color: #f4f7fa;
  border: 1px solid #f4f7fa;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: var(--textSecondary);
  width: 100%;
  list-style: none;
}
.ph-accordion-list li {
  position: relative;
  padding-left: 33px;
}

.ph-accordion-list li:not(:last-child) {
  margin-bottom: 9px;
}
.ph-accordion-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-size: contain;
  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='M12.1 13.1C12.6523 13.1 13.1 12.6523 13.1 12.1C13.1 11.5477 12.6523 11.1 12.1 11.1C11.5477 11.1 11.1 11.5477 11.1 12.1C11.1 12.6523 11.5477 13.1 12.1 13.1Z' stroke='black' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: translateY(-50%);
}

/* ── Accordion section ── */

/* ── Column header row ── */
.ph-thead {
  display: grid;
  grid-template-columns: 1fr 82px 82px 82px;
  padding: 14px 100px 14px 60px;
  border-bottom: 1px solid var(--borderLight);
  gap: 36px;
}
.ph-thead-cell {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: var(--textMuted);
  text-transform: uppercase;
}
.ph-thead-cell + .ph-thead-cell {
  text-align: center;
}

/* ── Flat exercise row (SMR / MetCon) ── */
.ph-row {
  display: grid;
  grid-template-columns: 1fr 82px 82px 82px;
  align-items: center;
  padding: 14px 100px 14px 60px;
  border-bottom: 1px solid var(--borderLight);
  gap: 36px;
}
.ph-row:last-child {
  border-bottom: none;
}

.ph-ex-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ph-ex-link {
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--textAccent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.ph-ex-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.ph-clip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--textPrimary);
  flex-shrink: 0;
  transition: color 0.15s ease;
  padding: 0;
}
.ph-clip-btn:hover {
  color: var(--textAccent);
}
.ph-clip-btn svg {
  width: 32px;
  height: 32px;
}

.ph-val-cell {
  font-size: 18px;
  line-height: 25px;
  color: var(--textPrimary);
  padding: 5px 12px;
  display: inline-block;
  font-weight: 500;
  border: 1px solid var(--borderLight);
  border-radius: 4px;
  text-align: center;
}
.ph-val-cell.is-empty {
  color: var(--textSecondary);
}

/* Mobile grouped values (hidden on desktop) */
.ph-mob-vals {
  display: none;
  gap: 31px;
}
.ph-mv-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ph-mv-lbl {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: var(--textMuted);
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
}
.ph-mv-val {
  font-size: 18px;
  line-height: 25px;
  padding: 5px 10px;
  min-width: 85px;
  display: inline-block;
  text-align: center;
  border: 1px solid var(--borderLight);
  border-radius: 4px;
  color: var(--textPrimary);
}

.ph-mv-val.is-empty {
  color: var(--textSecondary);
}

@media (max-width: 1280px) {
  /* .ph-accordion .accordion-button {
    padding: 13px 26px 13px 19px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    gap: 8px;
  }
  
  .ph-section-icon {
    width: 40px;
    height: 40px;
  }

  .ph-section-icon svg {
    width: 22.5px;
    height: 22.5px;
  }
  
.ph-accordion-list{
 padding: 22px;
}
.ph-accordion-list{  
  font-size: 16px;
  line-height: 20px;
}
.ph-accordion-list li {
    padding-left: 30px;
}

.ph-accordion-list li:not(:last-child){
  margin-bottom: 6px;
}
.ph-accordion-list li::before {
    width: 22px;
    height: 22px;
} */

  .ph-thead {
    padding: 14px 50px 14px 20px;
    gap: 20px;
  }
  .ph-row {
    padding: 14px 50px 14px 20px;
    gap: 20px;
  }
}

/* =========================================================
           RESPONSIVE — TABLET/MOBILE (max-width: 991px)
           ========================================================= */
@media (max-width: 991px) {
  .ph-accordion .accordion-button {
    padding: 16px 26px 16px 19px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    gap: 8px;
  }

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

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

  .ph-accordion-list {
    padding: 22px;
  }
  .ph-accordion-list {
    font-size: 16px;
    line-height: 20px;
  }
  .ph-accordion-list li {
    padding-left: 30px;
  }

  .ph-accordion-list li:not(:last-child) {
    margin-bottom: 6px;
  }
  .ph-accordion-list li::before {
    width: 22px;
    height: 22px;
  }

  /* Hide column headers on mobile */
  .ph-thead .ph-thead-cell.hide-on-mob {
    display: none;
  }

  /* Flat row: name full width, values row below */
  .ph-row {
    display: flex;
    flex-wrap: wrap;
    padding: 15px 21px;
    gap: 16px 0;
  }
  .ph-ex-cell {
    flex: 0 0 100%;
  }

  .ph-ex-link {
    font-size: 16px;
    line-height: 20px;
  }

  .ph-clip-btn svg {
    width: 25px;
    height: 25px;
  }
  .ph-row .ph-val-cell {
    display: none;
  }
  .ph-row .ph-mob-vals {
    display: flex;
    justify-content: space-between;
    flex: 0 0 90%;
  }
  .ph-log-tbl {
    display: none;
  }
  .ph-log-mob {
    display: block;
  }
}
@media (max-width: 767px) {
  .edit-ph-section-chevron {
    width: 22px;
    height: 22px;
  }
  .ph-accordion .accordion-button {
    padding: 13px 20px 13px 14px;
  }

  .ph-accordion-content {
    padding: 13px 20px 13px 14px;
  }

  .ph-accordion-list {
    padding: 16px;
  }
}

@media (max-width: 392px) {
  .ph-mob-vals {
    gap: 10px;
    flex-wrap: wrap;
  }
  .ph-mv-val {
    padding: 5px 8px;
    min-width: 80px;
  }
}

/* =========================================================
           CURRENT TABLE STYLES
           ========================================================= */

/* ===== Table Wrapper ===== */
.ph-exercise-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--borderLight);
  border-radius: 8px;
}

/* ===== Base Table ===== */
.ph-exercise-table {
  width: 100%;
  border-collapse: collapse;
}

/* ===== Table Header ===== */
.ph-exercise-table thead th {
  padding: 20px 20px;
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--textSecondary);
  text-transform: uppercase;
  text-align: center;
  background-color: #eef0f9;
  border-bottom: 1px solid var(--borderLight);
  white-space: nowrap;
}

.ph-th-no {
  width: 50px;
  padding-left: 20px !important;
  text-align: left;
}

.ph-th-exercise {
  min-width: 280px;
  text-align: left !important;
}

.ph-th-sets,
.ph-th-reps,
.ph-th-rest {
  min-width: 80px;
}

/* ===== Table Body ===== */
.ph-exercise-table tbody td {
  padding: 15px 20px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  background-color: #fcfcfd;
  color: var(--textSecondary);
  border-bottom: 1px solid var(--borderLight);
  vertical-align: middle;
}

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

/* ===== NO Column ===== */
.ph-td-no {
  padding-left: 20px !important;
  color: var(--textAccent) !important;
}

/* ===== EXERCISE Column ===== */
.ph-td-exercise {
  text-align: left;
  color: var(--textAccent) !important;
}

/* ===== SETS Column ===== */
.ph-td-sets {
  text-align: center;
}
.ph-col-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fcfcfc;
  border: 1px solid #e4e3eb;
  border-radius: 4px;
  padding: 6px 9px;
  max-width: 65px;
  min-width: 60px;
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
}

/* ===== REPS Column ===== */
.ph-td-reps {
  text-align: center;
}
/* ===== REST Column ===== */
.ph-td-rest {
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .ph-exercise-table thead th {
    padding: 16px 14px;
    font-size: 16px;
    line-height: 20px;
  }

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

  .ph-th-no,
  .ph-td-no {
    padding-left: 12px !important;
  }
}

/* ------------- cardio conditioning 1 ------------- */

/* ===== Top Table Wrapper ===== */
.cc-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
      border: 1px solid var(--borderLight);
    border-radius: 8px;
}

/* ===== Zones Table ===== */
.cc-zones-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

/* ===== Table Header ===== */
.cc-zones-table thead {
  /* background-color: #f4f6f9; */
}

.cc-zones-table thead th {
  padding: 21px 20px;
  font-size: 18px;
  line-height: 25px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.65);
  text-transform: uppercase;
  text-align: center;
  border-bottom: 1px solid var(--borderLight);
  white-space: nowrap;
  /* background-color: #eef0f9; */
  background:white;
}

.cc-th-zone {
  width: 60px;
  text-align: left!important;
}
.cc-th-hr {
  min-width: 160px;
  white-space: normal!important;
}
.cc-th-hrr {
  min-width: 100px;
}
.cc-th-rpe {
  min-width: 80px;
}
.cc-th-sets {
  min-width: 80px;  
}
.cc-th-reps {
  min-width: 80px;  
}
.cc-th-rest {
  min-width: 80px;  
}

/* ===== Table Body ===== */
.cc-zones-table tbody td {
  padding: 12px 20px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  text-align: center;
  color: var(--textPrimary);
  background-color: #FCFCFD;
  border-bottom: 1px solid var(--borderLight);
  vertical-align: middle;
}

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


/* ===== Zone Number ===== */
.cc-td-zone {
  width: 120px;
  text-align: left!important;
  color: var(--textSecondary) !important;
  /* color: var(--textAccent) !important; */
}
/* ===== Heart Rate ===== */
.cc-td-hr {
  /* color: var(--textAccent) !important; */
}


/* ===== HRR % ===== */
.cc-td-hrr {
white-space: nowrap;
}


/* ===== RPE ===== */

/* ===== Sets ===== */

.cc-col-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fcfcfc;
  border: 1px solid #e4e3eb;
  border-radius: 4px;
  padding: 6px 9px;
  max-width: 65px;
  min-width: 60px;
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
}

/* ===== Reps ===== */

/* ===== Rest ===== */


/* ===== Weeks Grid ===== */
.cc-weeks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(410px, 1fr));
  column-gap: 28px;
  row-gap:20px;
}


/* ===== Week Card ===== */
.cc-week-card {
  background-color: #FCFCFD;
  border: 1px solid var(--borderLight);
  border-radius: 8px;
  padding-bottom: 10px;
}

.cc-week-header {  
  padding: 20px 25px 15px;
  border-bottom: 1px solid #EBE7E7;
}

.cc-week-title {
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--textPrimary);
  text-align: center;
  text-transform: uppercase;
  margin: 0;
}

.cc-week-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===== Info Row ===== */
.cc-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 13px 25px;
  border-bottom: 1px solid var(--borderLight);
}

.cc-info-row:last-child {
  border-bottom: none;
}

.cc-info-label {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}

.cc-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24.3px;
  height: 24.3px;
  color: #0000;
  flex-shrink: 0;
}
.cc-info-icon svg{
  width: 100%;
  height: 100%;
}

.cc-info-text {
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: var(--textSecondary);
  word-break: break-word;
}

.cc-info-value {
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: var(--textPrimary);
  flex: 1;
  min-width: 0;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .cc-table-wrap{
    margin-bottom: 18px;
  }
  .cc-zones-table thead th {
    padding: 16px 10px;
    font-size: 16px;
    line-height: 20px;
}
.cc-zones-table tbody td {
    padding: 13px 10px;
    font-size: 16px;
    line-height: 20px;
}
.cc-weeks-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 0px;
  row-gap:18px;
}

  .cc-week-header {  
  padding: 16px 16px 14px;
}

.cc-week-title {
  font-size: 16px;
  line-height: 20px;
}
.cc-info-row {
  padding: 12px 16px;
}

.cc-info-label {
  gap: 7px;
}

.cc-info-icon {
  width: 20px;
  height: 20px;
}
  .cc-info-text, .cc-info-value {
    font-size: 16px;
    line-height: 20px;
  }
}


/* cardio condition 1 new  */
.cc-body-content .ph-accordion-content.excercise-table{
padding: 0;
}

.ph-thead, .ph-row{
  padding-left: 13px;
  padding-right: 13px;
}
.ph-exercise-table thead th {
    font-weight: 400;
    background-color: #FFFFFF;
}
.ph-col-value{
  color: black;
}


@media (min-width:768px){
.cc-body-content .ph-accordion-content{
  padding: 13px 28px 13px 28px;
}
.cc-body-content .ph-accordion .accordion-button{
padding: 21px 26px 21px 28px;
}
.ph-thead, .ph-row{
  padding-left: 28px;
  padding-right: 28px;
}
.hide-on-desktop{
  display: none;
}
}

@media (max-width: 767px) {
    .ph-accordion .accordion-button {
        padding: 10.5px 13px 10.5px 13px;
        font-size: 14px;
        line-height: 18px;
    }
    .cc-zones-table thead th {
    padding: 8px 8px;
    font-size: 16px;
    line-height: 20px;    
    /* border-bottom: none; */
    white-space: nowrap;
    background: transparent;
}
.cc-table-wrap {
    margin-bottom: 5px;
    /* border: none; */
}
.cc-zones-table tbody td{
  width: fit-content;
  border-bottom: none;
}
.cc-zones-table {    
    min-width: auto;
}
.cc-weeks-grid {
    row-gap: 5px;
}
.cc-body-content .ph-accordion-content.excercise-table{
  padding: 13px 20px 13px 14px;
}
.ph-table-container {
    border: 1px solid #EBE7E7;
    border-radius: 8px;
    overflow: hidden;
}
.ph-thead{
  background-color: white;;
}
.ph-thead-cell {
    font-size: 14px;
    line-height: 18px;
}
.ph-row {
    gap: 10px 0;
    padding-top: 13px;
    padding-bottom: 13px;
}
.hide-on-mobile{
  display: none;
}

}
@media (max-width: 640px) {
  
.ph-mv-lbl {
    font-size: 14px;
    line-height: 18px;
    min-width: 80px;
}
.ph-mv-val {
    font-size: 13.2px;
    line-height: 16.97px;
    padding: 5px 10px;
    min-width: 80px;
}
.ph-row .ph-mob-vals {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}
  }