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

/* =========================================================
       MOBILE TOP HEADER
       ========================================================= */
.mobile-top-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: var(--sidebar);
  border-bottom: 1px solid var(--cardBorder);
}

.mobile-top-header .brand-logo {
  height: 32px;
}

.mobile-top-header .menu-toggle {
  background: none;
  border: none;
  color: var(--textSecondary);
  font-size: 24px;
  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: 34px 27px 29px;
  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: 18px;
  line-height: 24px;
  color: var(--textSecondary);
  margin: 10px 0 0 0;
}

.page-header-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

/* =========================================================
       INSTRUCTION TEXT
       ========================================================= */
.instruction-text {
  font-size: 18px;
  line-height: 24px;
  color: var(--textSecondary);
  margin-bottom: 16px;
}

/* =========================================================
       CARDS AREA
       ========================================================= */

.card-ds {
  background-color: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: var(--radius-sm);
  box-shadow: var(--cardShadow);
  padding: 0 23px 10px 23px;
  height: 100%;
}

.card-ds-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 0 13px 0;
  font-weight: var(--fw-bold);
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--textSecondary);
}

.card-ds-header i {
  color: var(--textPrimary);
  font-size: 20px;
}
.card-ds-header svg {
  color: var(--textPrimary);
  font-size: 25px;
}

/* =========================================================
       LOG ROW
       ========================================================= */
.log-list {
  border-top: 0.5px solid var(--borderLight);
}

.log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 0.5px solid var(--borderLight);
}

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

.log-row-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 20px;
  color: var(--textSecondary);
  flex-shrink: 0;
}

.log-row-label i {
  color: var(--textPrimary);
  font-size: 20px;
}
.log-row-label svg {
  color: var(--textPrimary);
  font-size: 25px;
}

.log-row-controls {
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.23px solid #c9ccd3;
}

.log-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 40px;
  padding: 0 24px;
  font-size: 14px;
  line-height: 1;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  border-right: 1.23px solid #c9ccd3;
  background-color: var(--iconBackground);
  color: var(--textSecondary);
}

.log-btn:last-child {
  border-right: none;
}

.log-btn:hover {
  background-color: var(--body);
}

.log-btn:active {
  background-color: rgba(45, 94, 187, 0.17);
}

.log-btn i {
  font-size: 16px;
  color: #6b7280;
}
.log-btn svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
}
.log-btn:last-child svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

/* =========================================================
       ACTION BAR / FOOTER
       ========================================================= */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 25px 30px;
  background-color: var(--card);
  border-top: 1px solid var(--cardBorder);
}

.action-bar-mobile {
  display: none;
  margin-top: 30px;
  border-radius: var(--radius-sm);
  box-shadow: var(--cardShadow);
  border: 1px solid var(--cardBorder);
  align-items: start;
}

.how-to-use-btn-mobile {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 9px;
  font-size: 14px;
  line-height: 18px;
  font-weight: var(--fw-regular);
  text-decoration: underline;
  transition: all 0.15s ease;
  color: var(--textSecondary);
}

.how-to-use-btn-mobile:hover {
  text-decoration: none;
}

.how-to-use-btn {
  background-color: #f4f7fa;
  border: 1px solid #e3e6ef;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--textMuted);
}

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

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

.mobile-bottom-nav-link.active,
.mobile-bottom-nav-link:has(a.active) {
  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 {
  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 {
  width: 20px;
  height: 20px;
}
.dropdown-menu.dropdown-globe-menu li a.active {
  background-color: var(--sidebarActive);
  color: var(--textAccent);
}
.dropdown-menu.dropdown-globe-menu li a.delete-link,
.dropdown-menu.dropdown-globe-menu li a.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;
}

/* =========================================================
       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: 34px 27px 29px;
  }

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

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

  .card-ds {
    padding: 0 23px 10px 23px;
  }

  .action-bar {
    padding: 20px 24px;
  }

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

  .action-bar-desktop {
    display: none;
  }
}

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

  .app-layout {
    flex-direction: column;
  }

  .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: 16px;
    line-height: 20px;
  }

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

  .instruction-text {
    font-size: 16px;
    line-height: 20px;
  }

  .card-ds {
    padding: 0 16px 10px 16px;
  }

  .log-row {
    padding: 13px;
    margin: 0 -16px;
  }

  .log-row-label {
    font-size: 14px;
    line-height: 18px;
  }

  .log-row-label i {
    font-size: 18px;
  }

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

  .how-to-use-btn {
    display: block;
  }

  .log-btn {
    height: 36px;
    min-width: 36px;
    padding: 0 17px;
  }

  .log-btn i {
    font-size: 14px;
  }

  .action-bar {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

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

  .log-btn {
    height: 32px;
    min-width: 32px;
    padding: 0 8px;
  }
}
@media (min-width: 1280px) {
  .col-2xl-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}

/*--------------------------- TRAINING PROGRAM PAGE ---------------------------*/
/* 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);
}

/* Document card — icon/content + explicit View/Download actions,
   used in place of a single whole-card link so each action is unambiguous */
.link-card-doc {
  flex-wrap: wrap;
  cursor: default;
}

.link-card-doc:hover {
  transform: none;
  box-shadow: var(--cardShadow, 0px 16px 20px -13px #00000026);
}

.link-card-doc-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  width: 100%;
  margin-top: 4px;
}

.doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm, 8px);
  font-size: 14px;
  font-weight: var(--fw-bold, 700);
  text-decoration: none;
  border: 1px solid var(--cardBorder, #dee1e7);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.doc-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.doc-btn-view {
  background-color: var(--iconBackground, #f0f0f6);
  color: var(--textPrimary, #000000);
}

.doc-btn-view:hover {
  background-color: var(--cardBorder, #dee1e7);
  color: var(--textPrimary, #000000);
}

.doc-btn-download {
  background-color: var(--brand, #2f6feb);
  border-color: var(--brand, #2f6feb);
  color: #fff;
}

.doc-btn-download:hover {
  opacity: 0.9;
  color: #fff;
}

@media (max-width: 480px) {
  .doc-btn span {
    display: inline;
  }
}

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

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

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

/*--------------------------- PHOTO FOOD JOURNAL PAGE ---------------------------*/

/* Body content area */
.photo-food-page-body {
  padding: 30px 27px 37px;
  background-color: #fcfcfc;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--cardBorder, #dee1e7);
  box-shadow: var(--cardShadow, 0px 16px 20px -13px #00000026);
}

/* Action cards row */
.action-cards-row {
  display: flex;
  gap: 9px;
  margin-bottom: 24px;
}

/* Action card — same height on all breakpoints */
.action-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 27px;
  background-color: var(--card, #fcfcfd);
  border: 1px solid var(--cardBorder, #dee1e7);
  border-radius: var(--radius-sm, 8px);
  box-shadow: var(--shadow2);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  cursor: pointer;
  flex: 1;
  height: 51px;
}

.action-card:hover {
  transform: translateY(-1px);
  /* box-shadow: 0px 20px 24px -10px #00000030; */
  box-shadow: var(--cardShadow);
}

.action-card i {
  font-size: 32px;
  color: var(--textPrimary, #000000);
  flex-shrink: 0;
}
.action-card svg {
  width: 32px;
  height: 32px;
  color: var(--textPrimary, #000000);
  flex-shrink: 0;
}

.action-card-text {
  font-size: 18px;
  line-height: 25px;
  font-weight: var(--fw-bold, 700);
  color: var(--textPrimary, #000000);
  flex: 1;
}

.action-card-arrow {
  color: var(--textMuted, #6b7280);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
  width: 24px;
  height: 24px;
}

.action-card:hover .action-card-arrow {
  transform: translateX(4px);
}

/* Empty state card */
.photo-food-empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  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;
}

/* =========================================================
       RESPONSIVE — MOBILE (max-width: 767px)
       ========================================================= */
@media (max-width: 767px) {
  .photo-food-page-body {
    padding: 25px 17px;
  }

  /* Stack action cards vertically on mobile */
  .action-cards-row {
    flex-direction: column;
  }

  .action-card {
    padding: 12px 23px;
    height: 51px; /* Same height */
  }

  .action-card i {
    font-size: 24px; /* Smaller icon on mobile */
  }
  .action-card svg {
    width: 25px;
    height: 25px;
  }

  .action-card-text {
    font-size: 16px; /* Smaller text on mobile */
    line-height: 20px;
  }

  .photo-food-empty-state-card {
    padding: 60px 24px;
    padding-top: 50px;
  }

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

/*--------------------------- ADD FOOD ENTRY PAGE ---------------------------*/

/* Form card */
.form-card {
  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);
  padding: 44px 42px 50px 42px;
}

/* Date & Time row */
.datetime-row {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

/* .datetime-row .date-picker-wrapper {
      flex: 1;
      min-width: 200px;
    } */
.datetime-row .date-picker-wrapper:first-child {
  min-width: 292px;
}
.datetime-row .date-picker-wrapper:last-child {
  min-width: 219px;
}
.datetime-row .date-picker-main {
  flex: 1;
}
.form-card #timeDisplay {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--textSecondary);
}

/* Form group */
.form-group-ds {
  margin-bottom: 24px;
}

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

/* Select dropdown */
.select-ds {
  width: 100%;
  height: 68px;
  padding: 24px 22px;
  padding-right: 45px;
  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);
  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;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.select-ds option {
  color: var(--textPrimary, #000000);
}
.select-ds:has(option[value=""]:checked) {
  color: var(--textSecondary, #212529b2);
}

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

/* Photo upload area */
.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-area:hover {
  border-color: var(--accent, #5a83d3);
  background-color: rgba(90, 131, 211, 0.03);
}

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

.upload-area.has-file {
  border-style: solid;
  border-color: var(--accent, #5a83d3);
  background-color: rgba(90, 131, 211, 0.05);
}

.upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background-color: var(--iconBackground, #f0f0f6);
  border-radius: var(--radius-sm, 8px);
  margin-inline: auto;
  margin-bottom: 10px;
}

.upload-icon i {
  font-size: 32px;
  color: var(--textPrimary, #000000);
}
.upload-icon svg {
  width: 70px;
  height: 70px;
  color: var(--textPrimary, #000000);
}

.upload-text {
  font-size: 35px;
  line-height: 45px;
  letter-spacing: -0.3px;
  font-weight: var(--fw-bold, 700);
  color: var(--textPrimary, #000000);
  margin: 0;
}

.upload-hint {
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary, #212529b2);
  margin: 4px 0 0 0;
}
.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);
}

/* Remove button */
.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:hover {
  background-color: #fee2e2;
  border-color: #ef4444;
}

.upload-remove:hover i {
  color: #ef4444;
}

.upload-remove:active {
  transform: scale(0.95);
}

.upload-remove i {
  font-size: 14px;
  color: var(--textSecondary, #212529b2);
}

/* Hide default state when file uploaded */
.upload-area.has-file .upload-default {
  display: none;
}

.upload-area.has-file .upload-preview-wrap {
  display: flex !important;
}

/* Notes textarea */
.textarea-ds {
  width: 100%;
  min-height: 106px;
  padding: 24px 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);
  resize: vertical;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  font-family: inherit;
}

.textarea-ds::placeholder {
  color: var(--textSecondary, #212529b2);
  opacity: 0.6;
}

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

.notes-hint {
  color: #6b728080;
}

/* Save button */
.btn-save {
  width: 100%;
  max-width: 392px;
  margin: 0 auto;
  height: 64px;
}

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

@media (max-width: 1280px) {
  .upload-area {
    padding: 40px 20px;
  }
  .upload-icon {
    width: 67px;
    height: 67px;
    margin-bottom: 12px;
  }

  .upload-icon svg {
    width: 48px;
    height: 48px;
  }

  .upload-text {
    font-size: 25px;
    line-height: 25px;
    font-weight: 500;
    margin: 0;
  }
}

/* =========================================================
       RESPONSIVE — MOBILE (max-width: 767px)
       ========================================================= */
@media (max-width: 767px) {
  .form-card {
    padding: 35px 17px 36px 17px;
  }

  .datetime-row {
    flex-direction: column;
    margin-bottom: 17px;
  }

  .datetime-row .date-picker-wrapper {
    min-width: auto;
    width: fit-content;
  }
  .form-label-ds {
    margin-bottom: 8px;
  }
  .form-group-ds {
    margin-bottom: 25px;
  }

  .upload-area {
    padding: 30px 20px;
  }

  .upload-icon {
    width: 61px;
    height: 61px;
    margin-bottom: 30px;
  }

  .upload-icon svg {
    width: 42px;
    height: 42px;
  }

  .upload-text {
    font-size: 22px;
    line-height: 25px;
  }

  .btn-save {
    max-width: none;
    height: 54px;
  }
}

/*--------------------------- FOOD JOURNAL HISTORY ---------------------------*/

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

#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 {
  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;
}

/* Table card */
.journal-table-wrap {
  background-color: var(--card, #fcfcfd);
  border: 1px solid var(--borderLight, #ebe7e7);
  border-radius: 12px;
  overflow-y: auto;
  box-shadow: var(--cardShadow, 0px 16px 20px -13px #00000026);
}

/* Table styles */
.journal-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.journal-table thead th {
  padding: 18px 40px;
  font-size: 18px;
  line-height: 25px;
  font-weight: 500;
  color: var(--textPrimary, #000000);
  text-align: left;
  border-bottom: 1px solid var(--borderLight, #ebe7e7);
  background-color: var(--tableHeader, #f8f9fa);
  white-space: nowrap;
  max-width: 200px;
}

.journal-table thead th:last-child {
  /* text-align: right; */
  max-width: 700px;
}

.journal-table tbody td {
  padding: 12px 40px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: var(--textSecondary, #212529b2);
  border-bottom: 1px solid var(--borderLight, #ebe7e7);
  vertical-align: middle;
}

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

.journal-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

/* Meal title link */
.journal-meal-link {
  color: var(--textAccent, #4c78ce);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.journal-meal-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Action menu button */
.journal-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--card, #fcfcfd);
  border: 1px solid var(--borderLight, #ebe7e7);
  border-radius: 8px;
  color: var(--textSecondary, #212529b2);
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-size: 18px;
  padding: 0;
}
.journal-menu-btn svg {
  width: 24px;
  height: 24px;
}

.journal-menu-btn:hover {
  background-color: var(--iconBackground, #f0f0f6);
}

.journal-menu-btn::after {
  display: none;
}

/* =========================================================
       RESPONSIVE — MOBILE (max-width: 767px)
       ========================================================= */
@media (max-width: 767px) {
  .journal-table-content {
    background-color: #fcfcfc;
    border: 1px solid var(--cardBorder, #dee1e7);
    border-radius: var(--radius-sm, 8px);
    padding: 30px 20px;
  }

  .journal-table tbody td {
    padding: 14px 13px;
  }

  .journal-table thead th:last-child {
    width: 60px;
  }
  .journal-table thead th {
    padding: 14px 13px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
  }
  /* Action menu button */
  .journal-menu-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
  }
  .journal-menu-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* =========================================================
       RESPONSIVE — SMALL MOBILE (max-width: 359px)
       ========================================================= */
@media (max-width: 359px) {
  .journal-table thead th,
  .journal-table tbody td {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/*--------------------------- PROFILE PAGE  ---------------------------*/

.profile-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: 44px 70px 78px 70px;
}

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

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

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

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

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

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

.profile-field {
  margin-bottom: 28px;
}

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

.profile-input,
.profile-select,
.profile-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;
}

.profile-input::placeholder {
  color: #21252980;
}

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

/* Select dropdown */
.profile-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;
}

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

.profile-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 */
.profile-date-wrap {
  position: relative;
}
.profile-date-wrap .profile-date-picker-wrapper {
  padding-right: 45px;
  display: flex;
  align-items: center;
}
.profile-date-wrap .profile-date-picker-icon svg {
  width: 23px;
  height: 24px;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

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

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

/* Password field */
.profile-pass-field {
  display: flex;
  gap: 28px;
}
.profile-pass-label-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-basis: 165px;
  flex-shrink: 0;
}
.profile-pass-wrap {
  position: relative;
  flex: 1;
}
.profile-pass-label-wrap .profile-label {
  margin-bottom: 0;
}

.profile-pass-icon {
  width: 20px;
  height: 20px;
  color: var(--textPrimary, #000000);
  font-size: 16px;
}

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

  .profile-card {
    margin-bottom: 88px;
  }
  .profile-section-subtitle {
    margin-bottom: 16px;
  }
  .profile-label {
    margin-bottom: 8px;
  }
  .profile-input,
  .profile-select,
  .profile-date-picker-wrapper {
    height: 52px;
    padding: 13px 22px;
  }
  .profile-pass-field {
    flex-direction: column;
    gap: 8px;
  }
  .profile-pass-label-wrap {
    flex-basis: auto;
  }
  .profile-field {
    margin-bottom: 16px;
  }
  .password-form {
    margin-top: 29px;
  }
}

/*--------------------------- INNER CHART PAGE  ---------------------------*/
.chart-inner-body .white-black-filter-tabs {
  margin-bottom: 34px;
}
.chart-card {
  background: #fcfcfc;
  border-radius: 8px;
  padding: 47px 53px 35px 53px;
  box-shadow: var(--cardShadow);
  border: 1px solid #dee1e7;
  margin-bottom: 33px;
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
}

.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-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: 10px;
  }
  .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;
  }

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

/*--------------------------- DASHBOARD PAGE  ---------------------------*/

/* Section spacing */
.dashboard-section {
  margin-bottom: 48px;
}
.dashboard-section:last-child {
  margin-bottom: 0;
}

/* Section titles */
.dashboard-section-title {
  font-size: 25px;
  line-height: 25px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--textPrimary, #000000);
  margin: 0;
}
.charts-header,
.section-header {
  margin: 0 0 14px 0;
}

/* ── Progress Summary Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.stat-card {
  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: 20px 18px 22px 18px;
}

.stat-header {
  margin-bottom: 2px;
}

.stat-label {
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--textPrimary, #000000);
}

.stat-value {
  font-size: 35px;
  line-height: 45px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--textPrimary, #000000);
  margin-bottom: 10px;
}

.stat-unit {
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--textPrimary, #000000);
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.meta-detail-row {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--borderLight);
  display: flex;
  align-items: center;
}
.meta-detail-row > span {
  flex: 1;
}
.meta-detail-row > span:first-child {
  border-right: 1px solid var(--borderLight);
  padding-right: 15px;
}
.meta-detail-row > span:last-child {
  padding-left: 15px;
}

.stat-muted {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: var(--textPrimary, #000000);
}
.stat-muted-label {
  color: #64676a;
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  white-space: nowrap;
}
.stat-change svg {
  width: 16px;
  height: 16px;
}
.stat-change.stat-change-down svg {
  rotate: 0deg;
}
.stat-change.stat-change-up svg {
  rotate: 180deg;
}

.stat-change-neutral {
  color: var(--textMuted, #6b7280);
  font-size: 12px;
}

/* ── Progress Charts ── */
.dashboard-body .white-black-filter-tabs {
  margin-bottom: 0;
}

.charts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.charts-header,
.section-header {
  margin-bottom: 16px;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mini-chart-card {
  background-color: #fcfcfc;
  border: 1px solid var(--cardBorder, #dee1e7);
  border-radius: var(--radius-sm, 8px);
  box-shadow: var(--shadow3);
  padding: 20px 14px;
  min-width: 0;
}

.mini-chart-title {
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--textPrimary, #000000);
  margin: 0 0 12px 0;
}

.mini-chart-wrap {
  width: 100%;
  /* height: 140px; */
}
.mini-chart-tooltip-card {
  background: #273550;
  border: none;
  border-radius: 10px;
  padding: 9px 13px;
  min-width: 110px;
  /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18); */
}
.mini-chart-tooltip-date {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 3px;
  font-weight: 500;
}
.mini-chart-tooltip-value {
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  color: #ffffff;
}

/* ── Activity & Tracking + Quick Access Row ── */
.activity-quick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.activity-tracking-col {
  min-width: 0;
}

.activity-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.activity-card {
  background-color: #fcfcfc;
  border: 1px solid var(--cardBorder, #dee1e7);
  border-radius: var(--radius-sm, 8px);
  box-shadow: var(--shadow3);
  padding: 20px 22px;
  position: relative;
}

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

.score-badge {
  font-size: 25px;
  line-height: 25px;
  font-weight: 500;
  color: var(--textAccent, #4c78ce);
}

.score-label {
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: var(--textSecondary, #212529b2);
  margin-bottom: 23px;
}

.score-cumulative {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.score-cumulative-label {
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: var(--textSecondary, #212529b2);
}

.score-cumulative-value {
  font-size: 22px;
  line-height: 25px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--textPrimary, #000000);
}

/* Latest Progress Entry card */
.activity-card-entry {
  position: relative;
  padding: 20px 18px;
}
.activity-card-entry .activity-card-title {
  margin-bottom: 7px;
}

.entry-date {
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--textPrimary, #000000);
  margin-bottom: 20px;
}

.entry-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entry-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: var(--textMuted);
}

.entry-item strong {
  color: var(--textPrimary, #000000);
  font-weight: 500;
}

.entry-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--textPrimary, #000000);
}
.entry-details-arrow {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8;
}

.entry-arrow {
  width: 24px;
  height: 24px;
  color: #00000080;
  text-decoration: none;
  transition: color 0.15s ease;
}

.entry-arrow:hover {
  color: var(--textAccent, #4c78ce);
}

/* Quick Access */
.quick-access-col {
  min-width: 0;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-access-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 16px 12px;
  background-color: #fcfcfc;
  border: 1px solid var(--cardBorder, #dee1e7);
  border-radius: var(--radius-sm, 8px);
  box-shadow: var(--shadow3);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

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

.quick-access-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: #dde2ee80;
  border-radius: 9px;
  color: var(--textAccent, #4c78ce);
}

.quick-access-icon svg {
  width: 24px;
  height: 24px;
}

.quick-access-label {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--textPrimary, #000000);
  text-align: center;
}

/* ── Recent Activity ── */
.recent-activity-card {
  background-color: #fcfcfc;
  border: 1px solid var(--cardBorder, #dee1e7);
  border-radius: var(--radius-sm, 8px);
  box-shadow: var(--shadow3);
  padding-bottom: 10px;
}
.recent-activity-header {
  padding: 20px 29px;
  padding-bottom: 0;
  margin-bottom: 3px;
}
.recent-activity-title {
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--textPrimary, #000000);
  margin-bottom: 0;
}
.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 12px 29px;
  border-bottom: 1px solid var(--borderLight, #ebe7e7);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-date {
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: var(--textPrimary, #000000);
  flex-basis: 60px;
  flex-shrink: 0;
}
.activity-item-details {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1 1 0%;
  min-width: 0;
}
.activity-icon-desc {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 35%;
  min-width: 0;
}

.activity-icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--textAccent, #4c78ce);
}

.activity-desc {
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: var(--textSecondary, #212529b2);
}

.activity-value {
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary, #212529b2);
  flex: 1 1 65%;
  min-width: 0;
}
.activity-value strong {
  font-weight: 400;
  color: var(--textPrimary, #000000);
}

/* =========================================================
   RESPONSIVE — DESKTOP (max-width: 1280px)
   ========================================================= */
@media (max-width: 1280px) {
  .dashboard-section {
    margin-bottom: 36px;
  }
  .charts-header,
  .section-header {
    margin-bottom: 21px;
  }
  /* .stats-grid {
    grid-template-columns: repeat(2, 1fr);    
  } */
  .stat-card {
    border-radius: 7.82px;
  }
  .stat-header {
    margin-bottom: 1.4px;
  }
  .stat-label {
    font-size: 17.6px;
    line-height: 24.44px;
  }
  .stat-value {
    font-size: 34.22px;
    line-height: 43.99px;
    letter-spacing: -0.29px;
    margin-bottom: 9px;
  }

  .stat-unit {
    font-size: 17.6px;
    line-height: 23.46px;
  }
  .stat-change svg {
    width: 15.64px;
    height: 15.64px;
  }
  .stat-muted,
  .stat-change {
    font-size: 15.64px;
    line-height: 19.55px;
  }

  .charts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mini-chart-card {
    padding: 26px 18px;
    border-radius: 10.47px;
  }

  .mini-chart-title {
    font-size: 23.56px;
    line-height: 32.73px;
  }

  .mini-chart-tooltip-value {
    font-size: 18.33px;
    line-height: 23.56px;
  }

  .activity-quick-row {
    grid-template-columns: 1fr;
  }

  .quick-access-grid {
    gap: 16px;
  }

  .quick-access-icon {
    width: 41px;
    height: 41px;
    border-radius: 9.67px;
  }

  .quick-access-icon svg {
    width: 26px;
    height: 26px;
  }

  .quick-access-label {
    font-size: 17.18px;
    line-height: 21.48px;
  }

  .activity-card {
    padding: 22px 23px;
  }

  .activity-card-title {
    font-size: 19.33px;
    line-height: 26.85px;
    margin: 0 0 14px 0;
  }

  .score-badge {
    font-size: 26.85px;
    line-height: 26.85px;
  }

  .score-label {
    font-size: 19.33px;
    line-height: 25.77px;
    margin-bottom: 24px;
  }

  .score-cumulative-label {
    font-size: 15.04px;
    line-height: 19.33px;
  }

  .score-cumulative-value {
    font-size: 23.63px;
    line-height: 26.85px;
    letter-spacing: -0.32px;
  }

  /* Latest Progress Entry card */
  .activity-card-entry {
    padding: 22px 30px;
  }
  .activity-card-entry .activity-card-title {
    margin-bottom: 8px;
  }

  .entry-date {
    font-size: 19.33px;
    line-height: 26.85px;
  }

  .entry-item {
    font-size: 17.18px;
    line-height: 21.48px;
  }

  .entry-item svg {
    width: 21px;
    height: 21px;
  }

  .entry-arrow {
    width: 25px;
    height: 25px;
  }

  .recent-activity-card {
    padding-bottom: 6px;
  }
  .recent-activity-header {
    padding: 20px 31px;
    padding-bottom: 0;
    margin-bottom: 5px;
  }
  .recent-activity-title {
    font-size: 19.33px;
    line-height: 26.85px;
  }

  .activity-item {
    padding: 16px 31px;
  }

  .activity-date {
    font-size: 15.04px;
    line-height: 19.33px;
  }

  .activity-icon svg {
    width: 17px;
    height: 17px;
  }

  .activity-desc {
    font-size: 15.04px;
    line-height: 19.33px;
  }

  .activity-value {
    font-size: 15.04px;
    line-height: 19.33px;
  }
}
/* =========================================================
   RESPONSIVE — TABLET (max-width: 991px)
   ========================================================= */
@media (max-width: 991px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .activity-quick-row {
    grid-template-columns: 1fr;
  }
  .activity-cards-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE (max-width: 767px)
   ========================================================= */
@media (max-width: 767px) {
  .dashboard-section {
    margin-bottom: 38px;
  }
  .dashboard-section-title {
    font-size: 22px;
    line-height: 25px;
  }
  .charts-header,
  .section-header {
    margin-bottom: 14px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .stat-card {
    border-radius: 3.99px;
    padding: 11px 10px;
  }
  .stat-header {
    margin-bottom: 3.5px;
  }
  .stat-label {
    font-size: 13px;
    line-height: 18px;
  }
  .stat-value {
    font-size: 22px;
    line-height: 25px;
    letter-spacing: -0.25px;
    margin-bottom: 8px;
  }

  .stat-unit {
    font-size: 12px;
    line-height: 15px;
  }
  .stat-change svg {
    width: 12px;
    height: 12px;
  }

  .stat-muted,
  .stat-change {
    font-size: 13px;
    line-height: 15px;
  }
  .meta-detail-row {
    margin-top: 10px;
    padding-top: 10px;
  }

  .mini-chart-card {
    padding: 13px 10px;
    border-radius: 5.31px;
  }

  .mini-chart-title {
    font-size: 14px;
    line-height: 18px;
  }

  .mini-chart-tooltip-value {
    font-size: 9.29px;
    line-height: 11.95px;
  }

  .charts-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
  .activity-cards-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }

  .activity-card {
    padding: 14px;
  }

  .activity-card-title {
    font-size: 14px;
    line-height: 18px;
    margin: 0 0 10px 0;
  }

  .score-badge {
    font-size: 18px;
    line-height: 18px;
  }

  .score-label {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 18px;
  }

  .score-cumulative-label {
    font-size: 12px;
    line-height: 14px;
  }

  .score-cumulative-value {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.19px;
  }

  /* Latest Progress Entry card */
  .activity-card-entry {
    padding: 14px 12px;
  }
  .activity-card-entry .activity-card-title {
    margin-bottom: 6px;
  }

  .entry-date {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 14px;
  }

  .entry-item {
    font-size: 12px;
    line-height: 15px;
  }

  .entry-item svg {
    width: 16px;
    height: 16px;
  }

  .entry-arrow {
    width: 18px;
    height: 18px;
  }

  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-access-card {
    gap: 12px;
    padding: 14px 12px;
  }
  .quick-access-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .quick-access-icon svg {
    width: 24px;
    height: 24px;
  }

  .quick-access-label {
    font-size: 16px;
    line-height: 20px;
  }

  .recent-activity-card {
    padding-bottom: 22px;
  }
  .recent-activity-header {
    padding: 19px 14px;
    padding-bottom: 0;
  }
  .recent-activity-title {
    font-size: 18px;
    line-height: 25px;
  }

  .activity-item {
    padding: 11px 14px;
  }
  .activity-item-details {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .activity-icon-desc,
  .activity-value {
    flex: auto;
  }

  .activity-date {
    font-size: 14px;
    line-height: 18px;
  }

  .activity-icon svg {
    width: 16px;
    height: 16px;
  }

  .activity-desc {
    font-size: 14px;
    line-height: 18px;
  }

  .activity-value {
    font-size: 14px;
    line-height: 18px;
  }
}

/* =========================================================
   RESPONSIVE — EXTRA SMALL MOBILE (max-width: 600px)
   ========================================================= */
@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
  }
  .stat-card {
    border-radius: 3.99px;
    padding: 10px 9px;
  }
  .stat-header {
    margin-bottom: 1px;
  }
  .stat-label {
    font-size: 8.98px;
    line-height: 12.47px;
  }
  .stat-value {
    font-size: 17.45px;
    line-height: 22.44px;
    letter-spacing: -0.15px;
    margin-bottom: 8px;
  }

  .stat-unit {
    font-size: 8.98px;
    line-height: 11.97px;
  }
  .stat-change svg {
    width: 8px;
    height: 8px;
  }

  .stat-muted,
  .stat-change {
    font-size: 7.98px;
    line-height: 9.97px;
  }
  .meta-detail-row {
    margin-top: 11px;
    padding-top: 5px;
  }

  .mini-chart-title {
    font-size: 11.95px;
    line-height: 16.59px;
  }
  .activity-card {
    padding: 13px;
  }

  .activity-card-title {
    font-size: 11.39px;
    line-height: 15.82px;
    margin: 0 0 8px 0;
  }

  .score-badge {
    font-size: 15.82px;
    line-height: 15.82px;
  }

  .score-label {
    font-size: 11.39px;
    line-height: 15.19px;
    margin-bottom: 13px;
  }

  .score-cumulative-label {
    font-size: 8.86px;
    line-height: 11.39px;
  }

  .score-cumulative-value {
    font-size: 13.92px;
    line-height: 15.82px;
    letter-spacing: -0.19px;
  }

  /* Latest Progress Entry card */
  .activity-card-entry {
    padding: 13px 11px;
  }
  .activity-card-entry .activity-card-title {
    margin-bottom: 5px;
  }

  .entry-date {
    font-size: 11.39px;
    line-height: 15.82px;
    margin-bottom: 13px;
  }

  .entry-item {
    font-size: 10.13px;
    line-height: 12.66px;
  }

  .entry-item svg {
    width: 13px;
    height: 13px;
  }

  .entry-arrow {
    width: 16px;
    height: 16px;
  }

  .activity-item {
    padding: 11px 9px;
  }
}
/* =========================================================
   RESPONSIVE — SMALL MOBILE (max-width: 359px)
   ========================================================= */
@media (max-width: 359px) {
  .quick-access-grid {
    grid-template-columns: 1fr;
  }
  .stat-card {
    padding: 16px;
  }
}

/*--------------------------- CARDIO RESERVATIONS ---------------------------*/

/* Page body */
.cr-body {
  padding: 43px 48px 41px;
  background-color: var(--card, #fcfcfc);
  border: 1px solid var(--cardBorder, #dee1e7);
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}

/* Section header */
.cr-section-head {
  margin-bottom: 20px;
}

.cr-section-title {
  font-size: 25px;
  line-height: 25px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--textPrimary, #000000);
  margin: 0 0 4px 0;
}

.cr-section-subtitle {
  font-size: 18px;
  line-height: 24px;
  color: var(--textSecondary, #212529b2);
  margin: 0;
}

/* Equipment row card */
.cr-equip-card {
  display: flex;
  align-items: stretch;
  gap: 0px;
  background-color: var(--card, #fcfcfc);
  border-radius: 12px;
  box-shadow: var(--shadow3);
  margin-bottom: 24px;
}

.cr-equip-card:last-child {
  margin-bottom: 0;
}

/* Equipment info (left side) */
.cr-equip-info-wrap {
  padding: 47px 24px 47px 29px;
  flex-basis: 270px;
  flex-shrink: 0;
  background-color: #fefefe;
  border: 1px solid #b8b8b833;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.cr-equip-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
}

.cr-equip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 94px;
  height: 94px;
  flex-shrink: 0;
  background-color: var(--iconBackground, #f0f0f6);
  border-radius: 60px;
}

.cr-equip-icon svg {
  width: 58px;
  height: 58px;
  color: #374151;
}

.cr-equip-name {
  font-size: 22px;
  line-height: 25px;
  font-weight: 500;
  color: var(--textPrimary, #000000);
  margin-bottom: 9px;
}

.cr-equip-tag {
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  color: #2d5ebb;
  background-color: #4c78ce1a;
  padding: 8px 19px;
  border-radius: 20px;
}

/* Equipment controls (right side) */
.cr-equip-controls {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 25px 21px 25px 50px;
  gap: 37px;
}

/* Horizontal scroll container wrapper */
.cr-scroll-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

/* Scroll arrow buttons */
.cr-scroll-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 38px;
  background-color: var(--btnSecondaryBg, #f4f7fa);
  border: 1px solid var(--borderLight, #e3e6ef);
  border-radius: var(--radius-xs, 4px);
  color: var(--textSecondary, #212529b2);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}

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

.cr-scroll-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cr-scroll-arrow svg {
  width: 16px;
  height: 16px;
  color: #00000080;
}

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

/* Buttons common */
.cr-time-btn,
.cr-unit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--btnSecondaryBg, #f4f7fa);
  border: 1px solid var(--borderLight, #e3e6ef);
  border-radius: var(--radius-xs, 4px);
  font-size: 16px;
  line-height: 20px;
  font-weight: var(--fw-medium, 500);
  color: var(--textSecondary, #212529b2);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0px 1px 2px 0px #2d588614;
}

/* Equipment unit buttons */
.cr-unit-btn {
  padding: 9px 19px;
}

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

.cr-unit-btn.active,
.cr-time-btn.active {
  background-color: var(--textAccent, #4c78ce);
  border-color: var(--textAccent, #4c78ce);
  color: #ffffff;
}

/* Time slot buttons */
.cr-time-btn {
  padding: 9px 25px;
}

.cr-time-btn.reserved {
  background-color: #e8f0fe;
  border-color: #c6dafc;
  color: var(--textAccent, #4c78ce);
}

/* Action row */
.cr-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.cr-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background-color: var(--btnSecondaryBg, #f4f7fa);
  border: 1px solid #dee1e7;
  border-radius: var(--radius-xs, 4px);
  font-size: 16px;
  line-height: 20px;
  font-weight: var(--fw-medium, 500);
  color: var(--textSecondary, #212529b2);
  cursor: pointer;
  transition: color 0.15s ease;
  text-decoration: none;
  box-shadow: var(--shadow3);
}

.cr-clear-btn:hover {
  color: #d54248;
}

.cr-clear-btn svg {
  width: 16px;
  height: 16px;
}

.cr-reserve-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 21px;
  background-color: var(--textAccent, #4c78ce);
  border: 1px solid var(--textAccent, #4c78ce);
  border-radius: var(--radius-xs, 4px);
  font-size: 16px;
  line-height: 20px;
  font-weight: var(--fw-medium, 500);
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.cr-reserve-btn:hover {
  opacity: 0.92;
}

.cr-reserve-btn svg {
  width: 20px;
  height: 20px;
}

/* Footer note */
.cr-footer {
  margin-top: 24px;
  padding: 21px 0 0;
  position: relative;
}
.cr-footer-divider {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2000px;
  height: 1px;
  background-color: #b8b8b84d;
}
.cr-footer-note {
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary, #212529b2);
}

/* =========================================================
           RESPONSIVE — TABLET (max-width: 1280px)
           ========================================================= */
@media (max-width: 1280px) {
  .cr-body {
    padding: 42px 34px 23px;
  }

  .cr-section-head {
    margin-bottom: 32px;
  }
  .cr-equip-info-wrap {
    padding: 40px 38px;
    flex-basis: 180px;
  }
  .cr-equip-info {
    flex-direction: column;
    gap: 8px;
  }

  .cr-equip-icon {
    width: 100px;
    height: 100px;
  }

  .cr-equip-icon svg {
    width: 62px;
    height: 62px;
    color: #374151;
  }
  .cr-equip-controls {
    gap: 24px;
  }
  .cr-equip-name-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
  }
  .cr-equip-name {
    text-align: center;
    margin-bottom: 0;
  }
  .cr-unit-btn {
    padding: 9px 13px;
  }
  .cr-time-btn {
    padding: 9px 22px;
  }
  .cr-footer {
    margin-top: 28px;
  }
}
/* =========================================================
           RESPONSIVE — TABLET (max-width: 991px)
           ========================================================= */
@media (max-width: 991px) {
}

/* =========================================================
           RESPONSIVE — MOBILE (max-width: 767px)
           ========================================================= */
@media (max-width: 767px) {
  .cr-body {
    padding: 30px 12px;
  }
  .cr-section-head {
    margin-bottom: 31px;
    padding-inline: 10px;
  }

  .cr-section-title {
    font-size: 25px;
    line-height: 25px;
  }

  .cr-section-subtitle {
    font-size: 16px;
    line-height: 20px;
  }

  .cr-equip-card {
    flex-direction: column;
    margin-bottom: 20px;
  }
  .cr-equip-info-wrap {
    padding: 21px 14px;
    flex-basis: auto;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 8px;
  }

  .cr-equip-info {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-width: auto;
    gap: 12px;
  }

  .cr-equip-icon {
    width: 94px;
    height: 94px;
  }

  .cr-equip-icon svg {
    width: 58px;
    height: 58px;
  }

  .cr-equip-name-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .cr-equip-name {
    text-align: left;
  }
  .cr-equip-controls {
    padding: 17px 8px 27px;
    gap: 18px;
  }
  .cr-unit-btn {
    padding: 9px 15px;
  }

  .cr-time-btn {
    padding: 9px 19px;
  }
  .cr-action-row {
    margin-top: 10px;
  }
}

/*--------------------------- CONDITION PAGE ---------------------------*/
/* ── Outer card ── */

/* ── Accordion section ── */
.wpd-section {
  border-bottom: 1px solid var(--borderLight);
}
.wpd-section:last-child {
  border-bottom: none;
}
.wpd-section {
  box-shadow: var(--shadow3);
  border: 1px solid var(--cardBorder);
  background-color: var(--card);
  border-radius: 8px;
}
.wpd-section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 16px 25px 23px;
  cursor: pointer;
  user-select: none;
  background-color: var(--card);
  border-radius: 8px;
  transition:
    background-color 0.15s ease,
    border-radius 0.15s ease;
}
.wpd-section-hdr:hover {
  background-color: #f7f8fa;
}
.wpd-section.is-open .wpd-section-hdr {
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.wpd-section-name {
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--textSecondary);
}

.wpd-chevron {
  width: 24px;
  height: 24px;
  color: var(--textSecondary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.wpd-section.is-open .wpd-chevron {
  transform: rotate(180deg);
}

.wpd-section-body {
  /* display: none; */
  border-top: 1px solid var(--borderLight);
}
/* .wpd-section.is-open .wpd-section-body {
  display: block;
} */
.wpd-section-body.inner-accordion {
  padding: 25px 30px;
}

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

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

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

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

.wpd-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;
}
.wpd-clip-btn:hover {
  color: var(--textAccent);
}
.wpd-clip-btn svg {
  width: 32px;
  height: 32px;
}

.wpd-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;
}
.wpd-val-cell.is-empty {
  color: var(--textSecondary);
}

/* Mobile grouped values (hidden on desktop) */
.wpd-mob-vals {
  display: none;
  gap: 31px;
}
.wpd-mv-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wpd-mv-lbl {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: var(--textMuted);
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
}
.wpd-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);
}

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

/* ── Block item (Exercise section) ── */
.wpd-block-item {
  border: 1px solid var(--borderLight);
  background-color: var(--card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow3);
  margin-bottom: 32px;
}
.wpd-block-item:last-child {
  margin-bottom: 0;
}

.wpd-block-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 46px 16px 60px;
  cursor: pointer;
  user-select: none;
  background-color: #fafafa;
  border-bottom: 1px solid transparent;
  transition: background-color 0.15s ease;
}
.wpd-block-hdr:hover {
  background-color: var(--sidebarActive);
}
.wpd-block-item.is-open .wpd-block-hdr {
  border-bottom-color: var(--borderLight);
}

.wpd-block-hdr-l {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wpd-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 100%;
  font-weight: var(--fw-bold);
  color: #fff;
  flex-shrink: 0;
}
.wpd-badge-a {
  background-color: var(--accent);
}
.wpd-badge-b {
  background-color: #6b7280;
}
.wpd-badge-c {
  background-color: #9ca3af;
}

.wpd-block-label {
  font-size: 22px;
  line-height: 25px;
  font-weight: 500;
  color: var(--textPrimary);
}

.wpd-block-chev {
  width: 24px;
  height: 24px;
  color: var(--textSecondary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.wpd-block-item.is-open .wpd-block-chev {
  transform: rotate(180deg);
}

.wpd-block-body {
  /* display: none; */
}
.wpd-block-item.is-open .wpd-block-body {
  /* display: block; */
}

/* ── Block exercise row ── */
.wpd-brow-wrap,
.wpd-metcon-log-wrap {
  margin: 0 37px 30px;
  border-radius: 12px;
  background-color: var(--card);
  border: 1px solid var(--borderLight);
  box-shadow: var(--shadow3);
}

.wpd-block-body .wpd-thead {
  border-bottom: none;
}
.wpd-brow {
  border-bottom: 0.5px solid var(--borderLight);
}
.wpd-brow:last-child {
  border-bottom: none;
}

.wpd-brow-main,
.wpd-metcon-main {
  display: grid;
  grid-template-columns: 1fr 85px 85px 85px 27px;
  align-items: center;
  padding: 12px 24px;
  padding-right: 42px;
  gap: 4%;
}

.wpd-brow-ex {
  display: flex;
  align-items: center;
  gap: 7px;
}

.wpd-brow-lbl {
  font-size: 18px;
  line-height: 25px;
  font-weight: var(--fw-bold);
  color: var(--textPrimary);
  flex-shrink: 0;
  min-width: 25px;
}

.wpd-brow-mob-vals {
  display: none;
  gap: 20px;
  padding: 0 24px 10px;
}

/* ── Expand / collapse (+/−) button ── */
.wpd-plus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: #212529b2;
  transition: all 0.15s ease;
  flex-shrink: 0;
  padding: 0;
  margin-left: auto;
}
.wpd-plus-btn:hover {
  color: var(--textPrimary);
}
.wpd-plus-btn svg {
  width: 100%;
  height: 100%;
}

/* ── Log panel ── */
.wpd-log-panel {
  /* display: none; */
}
.wpd-brow.log-open .wpd-log-panel,
.wpd-metcon-row.log-open .wpd-log-panel {
  /* display: block; */
}

.wpd-log-inner {
  padding: 0px 0px 34px;
  overflow-x: auto;
}

.wpd-log-head {
  font-size: 18px;
  line-height: 25px;
  font-weight: var(--fw-bold);
  color: var(--textSecondary);
  margin: 11px 15px 8px;
}

.wpd-log-hint {
  font-size: 14px;
  line-height: 18px;
  font-weight: 300;
  color: var(--textSecondary);
  margin: 26.7px 0 0px 0;
  text-align: center;
}

.wpd-log-tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
}
.wpd-log-tbl th {
  padding: 16px 26px;
  text-align: center;
  font-size: 18px;
  line-height: 25px;
  font-weight: 500;
  color: var(--textSecondary);
  border-bottom: 1px solid var(--borderLight);
  border-top: 1px solid var(--borderLight);
  border-right: 1px solid var(--borderLight);
  white-space: nowrap;
}
.wpd-log-tbl th:first-child {
  text-align: left;
  width: 200px;
}
.wpd-log-tbl th:first-child,
.wpd-log-tbl th:last-child {
  border-right: none;
}
.wpd-log-tbl td {
  padding: 8px 15px;
  text-align: center;
  font-size: 14px;
  line-height: 18px;
  color: var(--textSecondary);
  font-weight: var(--fw-medium);
  border-bottom: 1px solid var(--borderLight);
  border-right: 1px solid var(--borderLight);
}
/* .wpd-log-tbl tbody tr:last-child td {
  border-bottom: none;
} */
.wpd-log-tbl td:first-child {
  text-align: left;
  font-size: 18px;
  line-height: 25px;
  padding-left: 26px;
}
.wpd-log-tbl td:first-child,
.wpd-log-tbl td:last-child {
  border-right: none;
}
.wpd-log-tbl td span {
  display: inline-block;
  padding: 7px 8px;
  min-width: 70px;
  background-color: #f4f7fa;
  border-radius: 4px;
  border: 1px solid var(--borderLight);
}

/* ── MetCon rows (no block label, same expand/log behavior) ── */
.wpd-metcon-row {
  border-bottom: 0.5px solid var(--borderLight);
}
.wpd-metcon-row:last-child {
  border-bottom: none;
}

.wpd-metcon-main {
  /* display: grid;
  grid-template-columns: 1fr 90px 90px 90px 44px;
  align-items: center;
  padding: 12px 24px;
  gap: 4px; */
  padding-right: 76px;
}
.wpd-metcon-log-wrap .wpd-log-tbl th {
  border-top: none;
}

.wpd-metcon-mob-vals {
  display: none;
  gap: 20px;
  padding: 0 24px 10px;
}

/* Week tab strip */
.wpd-log-mob {
  border-top: 1px solid var(--borderLight);
}
.wpd-log-week-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 15px 15px 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
}
.wpd-log-week-tabs::-webkit-scrollbar {
  display: none;
}

.wpd-log-wtab {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--borderLight);
  background: var(--card);
  font-size: 14px;
  line-height: 20.99px;
  font-weight: var(--fw-medium);
  color: var(--textSecondary);
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.wpd-log-wtab.is-active {
  border-color: var(--textAccent);
}

/* Set rows */
/* .wpd-log-sets {
  padding: 4px 0 6px;
} */

.wpd-log-set-row {
  display: flex;
  align-items: center;
  padding: 14px 17px;
  border-bottom: 1px solid var(--borderLight);
}
.wpd-log-set-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.wpd-log-set-lbl {
  font-size: 16px;
  line-height: 20px;
  font-weight: var(--fw-medium);
  color: var(--textSecondary);
  flex-basis: 60px;
}

.wpd-log-set-val {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 18px;
  background-color: #f4f7fa;
  border: 0.84px solid var(--borderLight);
  font-weight: var(--fw-medium);
  color: var(--textSecondary);
  flex: 1 1 0%;
}

@media (max-width: 1280px) {
  .wpd-section-hdr {
    padding: 25px 50px 25px 23px;
  }

  .wpd-thead {
    padding: 14px 50px 14px 20px;
    gap: 20px;
  }
  .wpd-row {
    padding: 14px 50px 14px 20px;
    gap: 20px;
  }
  .wpd-section-body.inner-accordion {
    padding: 25px 23px;
  }
  .wpd-block-hdr {
    padding: 16px 37px 16px 50px;
  }

  .wpd-badge {
    width: 31px;
    height: 31px;
    font-size: 15.11px;
    line-height: 100%;
  }

  .wpd-block-label {
    font-size: 18.47px;
    line-height: 20.99px;
    letter-spacing: -0.25px;
  }
  .wpd-block-chev {
    width: 20px;
    height: 20px;
  }
  .wpd-brow-wrap,
  .wpd-metcon-log-wrap {
    margin: 0 20px 28px;
  }
  .wpd-block-item .wpd-thead-cell {
    font-size: 13.43px;
    line-height: 16.79px;
  }
  .wpd-thead-5col {
    grid-template-columns: 1fr 76px 76px 76px 8px;
    padding-left: 50px;
    padding-right: 59px;
    gap: 2% !important;
  }

  .wpd-brow-main,
  .wpd-metcon-main {
    display: grid;
    grid-template-columns: 1fr 76px 76px 76px 20px;
    padding-right: 22px;
    gap: 2%;
  }
  .wpd-metcon-main {
    padding-right: 46px;
  }
  .wpd-brow-lbl {
    font-size: 15.11px;
  }
  .wpd-block-item .wpd-ex-link {
    font-size: 15.11px;
    line-height: 20.99px;
  }
  .wpd-block-item .wpd-clip-btn svg {
    width: 27px;
    height: 27px;
  }
  .wpd-block-item .wpd-val-cell {
    font-size: 15.11px;
    line-height: 20.99px;
  }
  .wpd-plus-btn {
    width: 20px;
    height: 20px;
  }

  .wpd-log-inner {
    padding: 0px 0px 12px;
  }

  .wpd-log-tbl th {
    padding: 10px 13px;
    font-size: 15.11px;
    line-height: 20.99px;
  }
  .wpd-log-tbl th:first-child {
    padding-left: 20px;
  }
  .wpd-log-tbl th:first-child {
    width: 150px;
  }
  .wpd-log-tbl td {
    padding: 7px 12px;
    font-size: 11.75px;
    line-height: 15.11px;
  }
  .wpd-log-tbl td:first-child {
    font-size: 15.11px;
    line-height: 20.99px;
    padding-left: 20px;
  }
  .wpd-log-tbl td span {
    padding: 6px 8px;
    min-width: 60px;
  }
  .wpd-log-hint {
    margin-top: 16px;
  }
}

/* =========================================================
           RESPONSIVE — TABLET/MOBILE (max-width: 991px)
           ========================================================= */
@media (max-width: 991px) {
  /* Hide column headers on mobile */
  .wpd-block-item .wpd-thead {
    display: none;
  }
  .wpd-thead .wpd-thead-cell.hide-on-mob {
    display: none;
  }

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

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

  .wpd-clip-btn svg {
    width: 25px;
    height: 25px;
  }
  .wpd-row .wpd-val-cell {
    display: none;
  }
  .wpd-row .wpd-mob-vals {
    display: flex;
    justify-content: space-between;
    flex: 0 0 90%;
  }
  .wpd-log-tbl {
    display: none;
  }
  .wpd-log-mob {
    display: block;
  }

  /* Block row */
  .wpd-brow-wrap,
  .wpd-metcon-log-wrap {
    margin: 0;
    border-radius: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
  }
  .wpd-brow-main,
  .wpd-metcon-main {
    grid-template-columns: 1fr 20px;
    padding: 18px 22px 16px;
  }
  .wpd-brow-main .wpd-val-cell,
  .wpd-metcon-main .wpd-val-cell {
    display: none;
  }

  .wpd-brow-mob-vals,
  .wpd-metcon-mob-vals {
    display: flex;
    padding: 0 18px 25px;
    max-width: 50%;
    justify-content: space-between;
  }

  .wpd-brow-lbl {
    font-size: 16px;
    line-height: 20px;
  }
  .wpd-block-item .wpd-ex-link {
    font-size: 16px;
    line-height: 20px;
  }
  .wpd-block-item .wpd-clip-btn svg {
    width: 22px;
    height: 22px;
  }
  .wpd-plus-btn {
    margin-inline: auto;
  }
  .wpd-section-hdr {
    padding: 15px 16px;
  }
  .wpd-block-hdr {
    padding: 12px 16px;
  }
  .wpd-log-inner {
    padding: 0px 0px 14px;
    border-top: 1px solid var(--borderLight);
  }
  .wpd-log-hint {
    display: none;
  }
}
@media (max-width: 767px) {
  .wpd-section-hdr {
    padding: 25px 10px 25px 23px;
  }
  .wpd-section-body.inner-accordion {
    padding: 14px 13px;
  }
  .wpd-block-item {
    margin-bottom: 16px;
  }
  .wpd-brow-main,
  .wpd-metcon-main {
    grid-template-columns: 1fr 20px;
    padding: 15px 14px 12px;
  }

  .wpd-brow-mob-vals,
  .wpd-metcon-mob-vals {
    display: flex;
    padding: 0 14px 21px;
  }

  .wpd-log-head {
    margin: 9px 9px 6px;
  }
  .wpd-log-week-tabs {
    padding: 11px 9px 0;
    gap: 0;
  }

  .wpd-log-wtab {
    padding: 5px 6px;
    font-size: 12px;
    line-height: 20.99px;
  }

  .wpd-log-set-row {
    padding: 13px 12px;
  }

  .wpd-log-set-lbl {
    font-size: 15.11px;
    line-height: 20.99px;
  }

  .wpd-log-set-val {
    padding: 5px 9px;
    border-radius: 3.36px;
    font-size: 11.75px;
    line-height: 15.11px;
  }
}
@media (max-width: 392px) {
  .wpd-mob-vals {
    gap: 10px;
    flex-wrap: wrap;
  }
  .wpd-mv-val {
    padding: 5px 8px;
    min-width: 80px;
  }
}
@media (min-width: 992px) {
  .wpd-brow-mob-vals,
  .wpd-metcon-mob-vals {
    display: none;
  }
  .wpd-log-head {
    display: none;
  }
  .wpd-log-mob {
    display: none;
  }
}




