/* Styles specific to personnel dashboard (RTL) */
/* Primary Button */
.ip-btn--primary {
  background-color: var(--ip-primary) !important;
  color: white !important;
  border: unset !important;
  border-radius: 6px !important;
}

.ip-btn--primary:hover {
  background-color: var(--ip-accent) !important;
}

/* Secondary Button */
.ip-btn--secondary {
  background: #f0f0f1 !important;
  color: #2c3338 !important;
  border: unset !important;
  border-radius: 6px !important;
}

.ip-btn--secondary:hover {
  background: #dcdcde !important;
  color: #2c3338 !important;
}

/* Danger Button */
.ip-btn--danger {
  background: #dc3232;
  color: white;
}

.ip-btn--danger:hover {
  background: #b32d2e;
}

/* Success Button */
.ip-btn--success {
  background: #46b450;
  color: white;
}

.ip-btn--success:hover {
  background: #2ea02e;
}

/* Small Button */
.ip-btn--small {
  padding: 6px 12px;
  font-size: 12px;
}

/* Large Button */
.ip-btn--large {
  padding: 14px 28px;
  font-size: 16px;
}

.ip-dashboard {
  direction: rtl;
  background: var(--ip-bg);
  padding: 16px;
}

.ip-wrap {
  display: flex;
  gap: 20px;
  transition: gap 0.3s ease;
}

.ip-wrap.sidebar-hidden {
  gap: 0;
}

.ip-main {
  flex: 1 1 auto;
  transition: all 0.3s ease;
}

.ip-sidebar {
  width: 250px;
  flex: 0 0 250px;
  min-width: 250px;
  position: sticky;
  /* top: 16px; */
  align-self: start;
  height: 88vh;
  overflow: auto;
  background-color: var(--ip-aside);
  padding: 8px 12px;
  border-radius: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease, flex 0.3s ease, min-width 0.3s ease;
  transform: translateX(0);
  opacity: 1;
}

.ip-sidebar.hidden {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  flex: 0 0 0 !important;
  min-width: 0 !important;
  width: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.ip-cards {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.ip-card {
  background: var(--ip-card);
  padding: 18px;
  border-radius: 10px;
  display: flex;
  gap: 16px;
  align-items: self-end;
  flex: auto;
}

.ip-card-icon {
  width: 44px;
  height: 44px;
  pointer-events: none;
  display: block;
  filter: none;
}



/* Gradient variants for the dashboard cards (visual highlights) */
.ip-cards .ip-card:nth-child(1) {
  background: linear-gradient(135deg, #fe909d 0%, #fe5d70 100%);
  color: #fff;
  border: 6px solid #e0e0e0;
}
.ip-cards .ip-card:nth-child(2) {
  background: linear-gradient(135deg, #02dbdf 0%, #01a9ac 100%);
  color: #fff;
  border: 6px solid #e0e0e0;
}
.ip-cards .ip-card:nth-child(3) {
  background: linear-gradient(135deg, #feb697 0%, #fe9365 100%);
  color: #fff;
  border: 6px solid #e0e0e0;
}
.ip-cards .ip-card:nth-child(4) {
  background: linear-gradient(135deg, #0cf0a1 0%, #0ac282 100%);
  color: #fff;
  border: 6px solid #e0e0e0;
}

.ip-cards .ip-card .title {
  color: rgba(255, 255, 255, 0.9);
}
.ip-cards .ip-card .value {
  color: #ffffff;
}

.title {
  color: var(--ip-bg);
  font-size: 16px;
  font-weight: 500;
}

.ip-card .value {
  font-size: 20px;
  color: var(--ip-primary);
  margin-top: 6px;
}

.ip-placeholder {
  height: 240px;
  background: var(--ip-card);
  border-radius: 10px;
  border: 1px solid var(--ip-border);
  margin-bottom: 18px;
}

.ip-header {
  background: linear-gradient(90deg, var(--ip-primary), var(--ip-aside));
  color: #fff;
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  height: 80px;
}

.ip-header h1 {
  margin: 0;
  font-size: 18px;
}

.ip-header .ip-subtitle {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 6px;
}

.ip-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.ip-header-title {
  display: block;
  direction: rtl;
  text-align: right;
  margin-right: 50px;
}

.ip-power,
.ip-hamburger {
  background: #21212100 !important;
  color: #fff;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 6px !important;
  cursor: pointer;
  padding: 0 !important;
}

.ip-power:hover,
.ip-hamburger:hover {
  filter: none;
  background: #21212100 !important;
}

.ip-power svg,
.ip-hamburger svg {
  width: 32px;
  height: 32px;
  display: block;
}

/* hamburger button: visible on desktop, positioned on tablet/mobile */
.ip-hamburger {
  display: inline-flex !important;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

@media (min-width: 992px) {
  .ip-panel--workout-program-add .my-style {
    max-width: 100% !important;
  }
  
  /* Additional specificity rule */
  .ip-wrap:not(.sidebar-hidden) .ip-panel--workout-program-add .ip-card--main.my-style {
    max-width: calc(100vw - 320px) !important;
  }
}

@media (max-width: 992px) {
  .ip-sidebar {
    transition: transform 0.3s ease;
    transform: translateX(0);
  }
  .ip-sidebar.open {
    transform: translateX(-100%);
  }
  .ip-hamburger {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
  }
  .ip-header-title {
    margin-right: 64px;
  }
}

.ip-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  color: var(--ip-bg);
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
}
.ip-menu .ip-menu-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  opacity: 0.95;
}
.ip-menu .ip-menu-label {
  flex: 1 1 auto;
  text-align: right;
  direction: rtl;
}

.ip-menu a:hover {
  background: var(--ip-hover);
  color: var(--ip-bg);
}

.ip-small {
  font-size: 12px;
  color: var(--ip-bg);
}

.ip-panel {
  display: none;
  width: 100%;
}

.ip-panel.active {
  display: block;
  width: 100%;
}

/* Ensure dynamically loaded panels have proper width */
#dynamic-content {
  width: 100%;
  padding: 0;
  margin: 0;
  min-width: 100%;
  min-height: 200px;
}

#dynamic-content .ip-panel {
  width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Ensure all content inside dynamic container takes full width */
#panel-content-container {
  width: 100%;
}

.ip-menu a.active {
  background: var(--ip-active);
  color: white;
  font-weight: 500;
}

/* ساب‌منو (مثل افزودن برنامه جدید زیر برنامه تمرینی) */
.ip-menu a.ip-menu-sub .ip-menu-icon {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  margin-right: 8px !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: brightness(0) invert(1) !important;
}

@media (max-width: 992px) {
  .ip-wrap {
    flex-direction: column;
  }
  /* make sidebar slide-in instead of fully removed */
  .ip-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    transform: translateX(110%);
    transition: transform 260ms ease;
    z-index: 9999999;
    display: block !important;
    border-radius: 0;
    padding-top: 20px;
    padding-bottom: 20px;
    height: 100vh;
    pointer-events: auto;
  }

  /* Ensure sidebar menu items are clickable on mobile */
  .ip-sidebar .ip-menu {
    pointer-events: auto;
  }
  
  .ip-sidebar .ip-menu a {
    pointer-events: auto;
    position: relative;
    z-index: 1;
  }
  .ip-main {
    width: 100%;
    flex: 1 1 100% !important;
  }

  /* when dashboard has open class, slide sidebar into view */
  .ip-dashboard.open .ip-sidebar {
    transform: translateX(0);
  }

  /* backdrop that appears behind sidebar */
  .ip-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 200ms ease;
    z-index: 999;
    pointer-events: none;
  }

  body.ip-sidebar-open .ip-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.ip-sidebar-open {
    overflow: hidden;
  }
  .ip-cards {
    gap: 12px;
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 1200px) {
  .ip-cards {
    gap: 12px;
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .ip-cards {
    gap: 10px;
    display: flex;
    flex-wrap: wrap;
  }
  .ip-header {
    padding: 12px;
  }
  .ip-header h1 {
    font-size: 16px;
  }
}

/* Logout Confirmation Dialog Styles */
.logout-dialog-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 99999999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.logout-dialog-overlay.active {
  display: flex !important;
  opacity: 1 !important;
}

.logout-dialog-box {
  position: relative !important;
  width: 90% !important;
  max-width: 450px !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: scale(0.9) !important;
  transition: transform 0.3s ease !important;
}

.logout-dialog-overlay.active .logout-dialog-box {
  transform: scale(1) !important;
}

.logout-dialog-content {
  padding: 0 !important;
  width: 100% !important;
}

/* Logout Dialog Styles */
#confirm-logout-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#confirm-logout-dialog.active {
  display: flex;
  opacity: 1;
}

#confirm-logout-dialog.hiding {
  opacity: 0;
}

.logout-box {
  position: relative;
  background: white;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--ip-border);
  min-width: 420px;
  text-align: right;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.5s ease;
}

#confirm-logout-dialog.active .logout-box {
  transform: scale(1);
  opacity: 1;
}

#confirm-logout-dialog.hiding .logout-box {
  transform: scale(0.9);
  opacity: 0;
}

.actions-btn {
  display: flex;
  justify-content: left;
  gap: 10px;
}

.form-actions {
  margin-top: 20px;
  text-align: left;
  gap: 10px;
  display: flex;
  justify-self: left;
}

.selected-files-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  min-height: 100px;
  border: 2px dashed #bbb;
  padding: 15px;
  border-radius: 8px;
  background: #fff;
  margin-top: 15px;
  position: relative;
}

.preview-box {
  position: relative;
  width: 110px;
  border: 1px solid #ddd;
  padding: 5px;
  background: #f9f9f9;
  text-align: center;
  border-radius: 8px;
}

.preview-box img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

.btn-remove-file {
  position: absolute;
  top: -10px !important;
  left: -10px !important;
  width: 22px !important;
  height: 22px !important;
  background-color: #ff4d4d !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  border: 2px solid #fff !important;
  z-index: 99;
  padding: 0 !important;
  line-height: 1 !important;
  font-family: Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: bold !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-remove-file:hover {
  background-color: #d32f2f !important;
}

.btn-remove-file svg {
  width: 14px;
  height: 14px;
  fill: white;
  pointer-events: none;
}

.file-name-label {
  font-size: 10px;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 5px;}

/* Spinner Styles */
.spinner {
  width: 12px;
  height: 12px;
  display: inline-block;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

.ip-loading-spinner {
  display: flex;
  justify-content: center !important;
  align-items: center !important;
  height: 200px;
  width: 100%;
  min-height: 60vh;
}

.ip-loading-spinner .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--ip-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner.show {
  display: inline-block !important;
}

.spinner.hide {
  display: none !important;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Exercises Table Styles */
.ip-exercises-table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

.ip-exercises-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ip-exercises-table th {
  background: var(--ip-primary);
  color: white;
  padding: 12px 16px;
  text-align: right;
  font-weight: 600;
  border: none;
}

.ip-exercises-table td {
  padding: 10px;
  border-bottom: 1px solid #e0e0e0;
  text-align: right;
  vertical-align: middle;
}

.ip-exercises-table tr:last-child td {
  border-bottom: none;
}

.ip-exercises-table tr:hover {
  background-color: #f8f9fa;
}

.ip-exercise-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.icon-action-img {
  display: block;
  cursor: pointer;
  width: 18px;
  transition: background-color 0.2s;
}

.icon-action-img:hover {
  background-color: #f0f0f0;
}

.ip-exercises-table th:nth-child(1),
.ip-exercises-table td:nth-child(1) {
  width: 30px;
  text-align: center;
  font-weight: 600;
}

.ip-exercises-table th:nth-child(2),
.ip-exercises-table td:nth-child(2) {
  width: auto;
}

.ip-exercises-table th:nth-child(3),
.ip-exercises-table td:nth-child(3) {
  width: 120px;
}

.ip-exercises-table th:nth-child(4),
.ip-exercises-table td:nth-child(4) {
  width: 120px;
  text-align: center;
}

/* Workout Programs Table Styles */
.ip-workout-programs-table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

.ip-workout-programs-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ip-workout-programs-table th {
  background: var(--ip-primary);
  color: white;
  padding: 12px 16px;
  text-align: right;
  font-weight: 600;
  border: none;
}

.ip-workout-programs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  text-align: right;
}

.ip-workout-programs-table tr:last-child td {
  border-bottom: none;
}

.ip-workout-programs-table tr:hover {
  background-color: #f8f9fa;
}

.ip-workout-programs-table th:nth-child(1),
.ip-workout-programs-table td:nth-child(1) {
  width: 60px;
  text-align: center;
  font-weight: 600;
}

.ip-workout-programs-table th:nth-child(2),
.ip-workout-programs-table td:nth-child(2) {
  width: auto;
  min-width: 150px;
}

.ip-workout-programs-table th:nth-child(3),
.ip-workout-programs-table td:nth-child(3) {
  width: 120px;
}

.ip-workout-programs-table th:nth-child(4),
.ip-workout-programs-table td:nth-child(4) {
  width: 100px;
}

.ip-workout-programs-table th:nth-child(5),
.ip-workout-programs-table td:nth-child(5) {
  width: 120px;
  text-align: center;
}

/* Users Table Styles */
.ip-users-table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

.ip-users-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ip-users-table th {
  background: var(--ip-primary);
  color: white;
  padding: 12px 16px;
  text-align: right;
  font-weight: 600;
  border: none;
}

.ip-users-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  text-align: right;
}

.ip-users-table tr:last-child td {
  border-bottom: none;
}

.ip-users-table tr:hover {
  background-color: #f8f9fa;
}

/* Nutrition Programs Table Styles */
.ip-nutrition-programs-table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

.ip-nutrition-programs-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ip-nutrition-programs-table th {
  background: var(--ip-primary);
  color: white;
  padding: 12px 16px;
  text-align: right;
  font-weight: 600;
  border: none;
}

.ip-nutrition-programs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  text-align: right;
}

.ip-nutrition-programs-table tr:last-child td {
  border-bottom: none;
}

.ip-nutrition-programs-table tr:hover {
  background-color: #f8f9fa;
}

.ip-nutrition-programs-table th:nth-child(1),
.ip-nutrition-programs-table td:nth-child(1) {
  width: 60px;
  text-align: center;
  font-weight: 600;
}

.ip-nutrition-programs-table th:nth-child(2),
.ip-nutrition-programs-table td:nth-child(2) {
  width: auto;
  min-width: 150px;
}

.ip-nutrition-programs-table th:nth-child(3),
.ip-nutrition-programs-table td:nth-child(3) {
  width: 120px;
}

.ip-nutrition-programs-table th:nth-child(4),
.ip-nutrition-programs-table td:nth-child(4) {
  width: 100px;
}

.ip-nutrition-programs-table th:nth-child(5),
.ip-nutrition-programs-table td:nth-child(5) {
  width: 120px;
  text-align: center;
}

.ip-nutrition-programs-table th:nth-child(6),
.ip-nutrition-programs-table td:nth-child(6) {
  width: 80px;
  text-align: center;
}

.ip-nutrition-programs-table th:nth-child(7),
.ip-nutrition-programs-table td:nth-child(7) {
  width: auto;
  min-width: 200px;
}

.ip-nutrition-programs-table th:nth-child(8),
.ip-nutrition-programs-table td:nth-child(8) {
  width: 120px;
  text-align: center;
}

.ip-users-table th:nth-child(1),
.ip-users-table td:nth-child(1) {
  width: 120px;
  min-width: 100px;
  max-width: 150px;
}

.ip-users-table th:nth-child(2),
.ip-users-table td:nth-child(2) {
  width: 120px;
}

.ip-users-table th:nth-child(3),
.ip-users-table td:nth-child(3) {
  width: 80px;
  text-align: center;
}

.ip-users-table th:nth-child(4),
.ip-users-table td:nth-child(4) {
  width: 80px;
  text-align: center;
}

.ip-users-table th:nth-child(5),
.ip-users-table td:nth-child(5) {
  width: 80px;
  text-align: center;
}

.ip-users-table th:nth-child(6),
.ip-users-table td:nth-child(6) {
  width: 120px;
  text-align: center;
}

/* Pagination Styles */
.ip-pagination-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.ip-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ip-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.ip-pagination-btn:hover {
  background: var(--ip-primary);
  color: white;
  border-color: var(--ip-primary);
  text-decoration: none;
}

.ip-pagination-active {
  background: var(--ip-primary) !important;
  color: white !important;
  border-color: var(--ip-primary) !important;
}

.ip-pagination-dots {
  padding: 0 8px;
  color: #999;
  font-weight: bold;
}

.ip-pagination-info {
  color: #666;
  font-size: 14px;
  text-align: center;
}

.ip-exercises-table th:nth-child(1),
.ip-exercises-table td:nth-child(1) {
  width: 30px;
  text-align: center;
  font-weight: 600;
}

.ip-exercises-table th:nth-child(2),
.ip-exercises-table td:nth-child(2) {
  width: auto;
}

.ip-exercises-table th:nth-child(3),
.ip-exercises-table td:nth-child(3) {
  width: 120px;
}

.ip-exercises-table th:nth-child(4),
.ip-exercises-table td:nth-child(4) {
  width: 120px;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .ip-exercises-table-container {
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .ip-exercises-table {
    font-size: 14px;
    min-width: 600px;
    width: 100%;
  }
  
  .ip-exercises-table th,
  .ip-exercises-table td {
    padding: 8px 12px;
    white-space: nowrap;
  }
  
  /* Force display of exercise name column */
  .ip-exercises-table th:nth-child(2),
  .ip-exercises-table td:nth-child(2) {
    display: table-cell !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 200px;
    max-width: 300px;
  }
  
  /* Fix counter column for mobile */
  .ip-exercises-table th:nth-child(1),
  .ip-exercises-table td:nth-child(1) {
    width: 30px !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    padding: 8px 4px !important;
    white-space: nowrap !important;
  }
  
  .ip-exercises-table th:nth-child(3),
  .ip-exercises-table td:nth-child(3) {
    min-width: 120px;
  }
  
  .ip-exercise-actions {
    gap: 4px;
  }
  
  .icon-action-img img {
    width: 18px !important;
    height: 18px !important;
  }
  
  /* Pagination mobile layout */
  .ip-pagination-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  
  .ip-pagination {
    gap: 12px;
    justify-content: center;
  }
  
  .ip-pagination-btn {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
    padding: 0 8px;
  }
  
  .ip-pagination-info {
    font-size: 13px;
    text-align: center;
  }
  
  /* Workout Programs Table Mobile Responsive */
  .ip-workout-programs-table-container {
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .ip-workout-programs-table {
    font-size: 14px;
    min-width: 600px;
    width: 100%;
  }
  
  .ip-workout-programs-table th,
  .ip-workout-programs-table td {
    padding: 8px 12px;
    white-space: nowrap;
  }
  
  /* Nutrition Programs Table Mobile Responsive */
  .ip-nutrition-programs-table-container {
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .ip-nutrition-programs-table {
    font-size: 14px;
    min-width: 600px;
    width: 100%;
  }
  
  .ip-nutrition-programs-table th,
  .ip-nutrition-programs-table td {
    padding: 8px 12px;
    white-space: nowrap;
  }
  
  .ip-nutrition-programs-table th:nth-child(1),
  .ip-nutrition-programs-table td:nth-child(1) {
    width: 50px !important;
    text-align: center !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }
  
  .ip-nutrition-programs-table th:nth-child(2),
  .ip-nutrition-programs-table td:nth-child(2) {
    min-width: 150px !important;
    max-width: 200px !important;
  }
  
  .ip-nutrition-programs-table th:nth-child(3),
  .ip-nutrition-programs-table td:nth-child(3) {
    min-width: 100px !important;
  }
  
  .ip-nutrition-programs-table th:nth-child(4),
  .ip-nutrition-programs-table td:nth-child(4) {
    min-width: 80px !important;
  }
  
  .ip-nutrition-programs-table th:nth-child(5),
  .ip-nutrition-programs-table td:nth-child(5) {
    min-width: 100px !important;
  }
  
  .ip-nutrition-programs-table th:nth-child(6),
  .ip-nutrition-programs-table td:nth-child(6) {
    min-width: 60px !important;
  }
  
  .ip-nutrition-programs-table th:nth-child(7),
  .ip-nutrition-programs-table td:nth-child(7) {
    min-width: 150px !important;
  }
  
  .ip-nutrition-programs-table th:nth-child(8),
  .ip-nutrition-programs-table td:nth-child(8) {
    min-width: 80px !important;
  }
  
  .ip-workout-programs-table th:nth-child(1),
  .ip-workout-programs-table td:nth-child(1) {
    width: 50px !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    padding: 8px 4px !important;
    white-space: nowrap !important;
  }
  
  .ip-workout-programs-table th:nth-child(2),
  .ip-workout-programs-table td:nth-child(2) {
    min-width: 150px !important;
    max-width: 200px !important;
  }
  
  .ip-workout-programs-table th:nth-child(3),
  .ip-workout-programs-table td:nth-child(3) {
    min-width: 100px !important;
  }
  
  .ip-workout-programs-table th:nth-child(4),
  .ip-workout-programs-table td:nth-child(4) {
    min-width: 80px !important;
  }
  
  .ip-workout-programs-table th:nth-child(5),
  .ip-workout-programs-table td:nth-child(5) {
    min-width: 100px !important;
  }
  
  /* Users Table Mobile Responsive */
  .ip-users-table-container {
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .ip-users-table {
    font-size: 14px;
    min-width: 600px;
    width: 100%;
  }
  
  .ip-users-table th,
  .ip-users-table td {
    padding: 8px 12px;
    white-space: nowrap;
  }
  
  .ip-users-table th:nth-child(1),
  .ip-users-table td:nth-child(1) {
    min-width: 100px !important;
    max-width: 120px !important;
  }
  
  .ip-users-table th:nth-child(2),
  .ip-users-table td:nth-child(2) {
    min-width: 100px !important;
  }
  
  .ip-users-table th:nth-child(3),
  .ip-users-table td:nth-child(3) {
    min-width: 60px !important;
  }
  
  .ip-users-table th:nth-child(4),
  .ip-users-table td:nth-child(4) {
    min-width: 60px !important;
  }
  
  .ip-users-table th:nth-child(5),
  .ip-users-table td:nth-child(5) {
    min-width: 60px !important;
  }
  
  .ip-users-table th:nth-child(6),
  .ip-users-table td:nth-child(6) {
    min-width: 80px !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .ip-exercises-table th,
  .ip-exercises-table td {
    padding: 6px 8px;
  }
  
  .ip-exercises-table th:nth-child(2),
  .ip-exercises-table td:nth-child(2) {
    display: none;
  }
  
  /* Keep mobile layout for pagination */
  .ip-pagination-wrapper {
    flex-direction: column;
    margin-top: 16px;
  }
  
  .ip-pagination {
    gap: 8px;
    justify-content: center;
  }
  
  .ip-pagination-btn {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }
  
  .ip-pagination-info {
    text-align: center;
    font-size: 12px;
  }
  
  /* Workout Programs Table Small Mobile */
  .ip-workout-programs-table th,
  .ip-workout-programs-table td {
    padding: 6px 8px;
  }
  
  .ip-workout-programs-table th:nth-child(1),
  .ip-workout-programs-table td:nth-child(1) {
    width: 40px !important;
    font-size: 11px !important;
    padding: 6px 2px !important;
  }
  
  /* Nutrition Programs Table Small Mobile */
  .ip-nutrition-programs-table th,
  .ip-nutrition-programs-table td {
    padding: 6px 8px;
  }
  
  .ip-nutrition-programs-table th:nth-child(1),
  .ip-nutrition-programs-table td:nth-child(1) {
    width: 40px !important;
    font-size: 11px !important;
    padding: 6px 2px !important;
  }
  
  .ip-nutrition-programs-table th:nth-child(2),
  .ip-nutrition-programs-table td:nth-child(2) {
    min-width: 120px !important;
    max-width: 150px !important;
  }
  
  .ip-nutrition-programs-table th:nth-child(3),
  .ip-nutrition-programs-table td:nth-child(3) {
    min-width: 80px !important;
  }
  
  .ip-nutrition-programs-table th:nth-child(4),
  .ip-nutrition-programs-table td:nth-child(4) {
    min-width: 70px !important;
  }
  
  .ip-nutrition-programs-table th:nth-child(5),
  .ip-nutrition-programs-table td:nth-child(5) {
    min-width: 80px !important;
  }
  
  .ip-nutrition-programs-table th:nth-child(6),
  .ip-nutrition-programs-table td:nth-child(6) {
    min-width: 50px !important;
  }
  
  .ip-nutrition-programs-table th:nth-child(7),
  .ip-nutrition-programs-table td:nth-child(7) {
    min-width: 120px !important;
  }
  
  .ip-nutrition-programs-table th:nth-child(8),
  .ip-nutrition-programs-table td:nth-child(8) {
    min-width: 60px !important;
  }
  
  .ip-workout-programs-table th:nth-child(2),
  .ip-workout-programs-table td:nth-child(2) {
    min-width: 120px !important;
    max-width: 150px !important;
  }
  
  .ip-workout-programs-table th:nth-child(3),
  .ip-workout-programs-table td:nth-child(3) {
    min-width: 80px !important;
  }
  
  .ip-workout-programs-table th:nth-child(4),
  .ip-workout-programs-table td:nth-child(4) {
    min-width: 70px !important;
  }
  
  .ip-workout-programs-table th:nth-child(5),
  .ip-workout-programs-table td:nth-child(5) {
    min-width: 80px !important;
  }
  
  /* Users Table Small Mobile */
  .ip-users-table th,
  .ip-users-table td {
    padding: 6px 8px;
  }
  
  .ip-users-table th:nth-child(1),
  .ip-users-table td:nth-child(1) {
    min-width: 80px !important;
    max-width: 100px !important;
  }
  
  .ip-users-table th:nth-child(2),
  .ip-users-table td:nth-child(2) {
    min-width: 80px !important;
  }
  
  .ip-users-table th:nth-child(3),
  .ip-users-table td:nth-child(3) {
    min-width: 50px !important;
  }
  
  .ip-users-table th:nth-child(4),
  .ip-users-table td:nth-child(4) {
    min-width: 50px !important;
  }
  
  .ip-users-table th:nth-child(5),
  .ip-users-table td:nth-child(5) {
    min-width: 50px !important;
  }
  
  .ip-users-table th:nth-child(6),
  .ip-users-table td:nth-child(6) {
    min-width: 70px !important;
    text-align: center !important;
  }
}
