/* ==========================================================================
   YachtFriends — Owner & Club Dashboard Styles (Light Mode)
   File: assets/dashboard/dashboard.css
   ========================================================================== */

:root {
  --yf-primary: #6c9e9e;
  --yf-primary-hover: #5a8a8a;
  --yf-bg-body: #ffffff;
  --yf-bg-sidebar: #ffffff;
  --yf-bg-content: #ffffff;
  --yf-bg-card: #ffffff;
  --yf-text-main: #2d3436;
  --yf-text-muted: #636e72;
  --yf-border: #dfe6e9;
  --yf-radius: 10px;
  --yf-shadow: none;
}

/* Full Width & Height Reset */
body.page-template-template-fullwidth,
body.page-template-default {
  margin: 0;
}

.yf-dashboard-wrapper {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  background: var(--yf-bg-body);
  color: var(--yf-text-main);
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

/* Top Bar */
.yf-dashboard-top-bar {
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid var(--yf-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  flex-shrink: 0;
  z-index: 10;
}

.yf-mobile-menu-toggle {
  display: none !important;
}

.yf-dashboard-backdrop {
  display: none;
}

.yf-dashboard-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yf-primary);
  letter-spacing: -0.5px;
}

.yf-user-profile-mini {
  display: flex;
  align-items: center;
  gap: 15px;
}

.yf-user-info-mini {
  text-align: right;
}

.yf-user-info-mini .yf-user-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.yf-user-info-mini .yf-user-role {
  font-size: 0.7rem;
  color: var(--yf-text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.yf-user-avatar-mini img {
  border-radius: 50%;
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 2px solid var(--yf-primary);
  display: block;
}

.yf-dashboard-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.yf-dashboard-sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--yf-bg-sidebar);
  border-right: 1px solid var(--yf-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.yf-sidebar-nav {
  list-style: none !important;
  padding: 20px 0 !important;
  margin: 0 !important;
  flex: 1;
  overflow-y: auto;
}

.yf-sidebar-nav li {
  margin: 4px 15px !important;
}

.yf-sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  color: var(--yf-text-muted);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.yf-sidebar-nav a i {
  margin-right: 12px;
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.yf-sidebar-nav li.active > a,
.yf-sidebar-nav a:hover {
  color: var(--yf-primary);
  background: rgba(108, 158, 158, 0.08);
}

/* Dropdown Navigation */
.yf-sidebar-submenu {
  list-style: none !important;
  padding: 0 0 0 40px !important;
  margin: 5px 0 10px !important;
  display: none;
}

.has-dropdown.open .yf-sidebar-submenu {
  display: block;
}

.yf-dropdown-arrow {
  margin-left: auto;
  font-size: 1rem !important;
  transition: transform 0.3s ease;
}

.has-dropdown.open .yf-dropdown-arrow {
  transform: rotate(180deg);
}

.yf-sidebar-submenu a {
  padding: 8px 15px;
  font-size: 0.9rem;
}

/* List Controls (Filters & Search) */
/* List Controls (Filters & Search) */
.yf-list-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 20px;
  background: #f8fafc;
  padding: 15px 20px;
  border-radius: 6px;
  border: 1px solid var(--yf-border);
}

.yf-subsubsub {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.85rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.yf-subsubsub li {
  display: inline-block !important;
  margin: 0 !important;
}

.yf-subsubsub a {
  text-decoration: none;
  color: var(--yf-primary);
  font-weight: 500;
}

.yf-subsubsub a.current {
  font-weight: 700;
  color: #000;
}

.yf-subsubsub .count {
  color: #666;
  font-weight: 400;
}

.yf-search-box {
  display: flex;
  gap: 8px;
}

.yf-search-box input {
  padding: 8px 12px;
  border: 1px solid var(--yf-border);
  border-radius: 4px;
  font-size: 0.85rem;
}

.yf-search-box button {
  padding: 8px 15px !important;
  font-size: 0.85rem;
}

/* Table Nav (Bulk Actions) */
.yf-tablenav {
  height: 30px;
  margin: 6px 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yf-tablenav .actions {
  display: flex;
  gap: 10px;
}

.yf-tablenav select {
  padding: 5px 10px;
  border: 1px solid var(--yf-border);
  border-radius: 4px;
  font-size: 0.85rem;
}

.yf-tablenav button {
  padding: 5px 15px !important;
  font-size: 0.85rem;
}

.tablenav-pages-count {
  font-size: 0.85rem;
  color: var(--yf-text-muted);
}

/* Main Content Area */
.yf-dashboard-content {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 40px 60px;
  background: var(--yf-bg-body);
}

.yf-tab-pane {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.yf-tab-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--yf-border);
  padding-bottom: 25px;
}

.yf-tab-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--yf-text-main);
  letter-spacing: -0.5px;
}

.yf-row-actions {
  margin-top: 5px;
  font-size: 0.75rem;
  color: #cbd5e0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
  min-height: 18px; /* Reserved space to prevent shift */
}

.yf-td-primary:hover .yf-row-actions {
  visibility: visible;
  opacity: 1;
}

.yf-row-actions a {
  color: var(--yf-primary);
  text-decoration: none;
  font-weight: 500;
}

.yf-row-actions a:hover {
  text-decoration: underline;
}

.yf-row-actions a.yf-action-trash {
  color: #e53e3e;
}

.yf-tab-header p {
  color: var(--yf-text-muted);
  margin: 0;
  font-size: 1rem;
}

/* Stats Cards */
.yf-overview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.yf-stat-card {
  background: var(--yf-bg-card);
  padding: 25px;
  border-radius: 6px;
  border: 1px solid var(--yf-border);
}

.yf-stat-title {
  color: var(--yf-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}

.yf-stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--yf-primary);
}

/* Forms */
.yf-form-wrapper {
  /* Styles removed to prevent double-card nesting. 
       Now relying on .yf-form-section for individual card styling. */
}

.yf-form-section {
  background: var(--yf-bg-card);
  border: 1px solid var(--yf-border);
  border-radius: var(--yf-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.yf-form-section h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 25px;
  color: var(--yf-text-main);
  border-left: 4px solid var(--yf-primary);
  padding-left: 15px;
}

.yf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.yf-form-group {
  margin-bottom: 25px;
}

.yf-form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--yf-text-main);
  font-size: 0.95rem;
}

.yf-form-group input:not([type="checkbox"]):not(.select2-search__field),
.yf-form-group select,
.yf-form-group textarea {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--yf-border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: #fafafa;
}

.yf-form-group input:focus:not(.select2-search__field),
.yf-form-group textarea:focus {
  outline: none;
  border-color: var(--yf-primary);
  background: #fff;
}

/* Fix wp_editor layout conflicts */
.yf-form-group .wp-editor-wrap {
  background: #fff;
  border: 1px solid var(--yf-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.yf-form-group .wp-editor-tools {
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--yf-border);
}

.yf-form-group .wp-editor-tabs {
  float: right;
}

.yf-form-group .wp-switch-editor {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-bottom: none;
  color: #64748b;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  margin-right: 4px;
}

.yf-form-group .tmce-active .switch-tmce,
.yf-form-group .html-active .switch-html {
  background: #fff !important;
  color: var(--yf-primary) !important;
  border-color: #e2e8f0 !important;
  font-weight: 600;
}

.yf-form-group .wp-editor-container {
  border: none !important;
  background: #fff !important;
}

.yf-form-group .wp-editor-container textarea.wp-editor-area {
  padding: 15px !important;
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
}

.yf-form-group .mce-toolbar-grp {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 4px !important;
}

/* Quicktags Toolbar & Buttons Fix */
.yf-form-group .quicktags-toolbar {
  padding: 6px 12px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid var(--yf-border) !important;
}

.yf-form-group .quicktags-toolbar input.qt-button,
.yf-form-group .quicktags-toolbar input[type="button"] {
  width: auto !important;
  padding: 4px 8px !important;
  display: inline-block !important;
  margin: 2px 4px 2px 0 !important;
  height: auto !important;
  min-height: auto !important;
  background: #f6f7f7 !important;
  border: 1px solid #c3c4c7 !important;
  border-radius: 3px !important;
  color: #2c3338 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 0 #c3c4c7 !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

.yf-form-group .quicktags-toolbar input.qt-button:hover,
.yf-form-group .quicktags-toolbar input[type="button"]:hover {
  background: #f0f0f1 !important;
  border-color: #a7aaad !important;
  color: #1d2327 !important;
}

.yf-form-group .mce-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.yf-form-group .mce-btn:hover {
  background: #f1f5f9 !important;
  border-radius: 4px;
}

.yf-form-group .mce-btn.mce-active,
.yf-form-group .mce-btn:active {
  background: #e2e8f0 !important;
}

.yf-form-group .mce-edit-area iframe {
  background: #fff !important;
}

/* Fix Select2 Dropdown Z-index */
.select2-container--open {
  z-index: 99999 !important;
}

/* Password Field Toggle */
.yf-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.yf-password-wrapper input {
  width: 100%;
  padding-right: 40px !important;
}

.yf-password-toggle {
  position: absolute;
  right: 15px;
  cursor: pointer;
  color: #cbd5e0;
  transition: color 0.2s;
  font-size: 20px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.yf-password-toggle:hover {
  color: var(--yf-text-muted);
}

/* Tables */
.yf-table-responsive {
  background: var(--yf-bg-card);
  border-radius: 6px;
  border: 1px solid var(--yf-border);
  overflow: hidden;
}

.yf-dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.yf-dashboard-table th {
  background: #fcfcfc;
  padding: 18px 25px;
  text-align: left;
  font-weight: 600;
  color: var(--yf-text-muted);
  border-bottom: 1px solid var(--yf-border);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.yf-dashboard-table td {
  padding: 18px 25px;
  border-bottom: 1px solid var(--yf-border);
}

.yf-dashboard-table .check-column {
  width: 40px;
  padding-left: 15px;
  padding-right: 0;
  text-align: center;
}

.yf-dashboard-table .check-column input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.yf-dashboard-table tr:last-child td {
  border-bottom: none;
}

/* Profile Specific */
.yf-profile-avatar-upload {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 35px;
  background: #fcfcfc;
  padding: 20px;
  border-radius: 12px;
}

#yf-avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yf-border);
}

/* Buttons */
.yf-dashboard-wrapper .yf-form-actions {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 30px !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.yf-dashboard-wrapper .yf-form-actions button,
.yf-dashboard-wrapper .yf-form-actions .yf-btn-primary,
.yf-dashboard-wrapper .yf-form-actions .yf-btn-secondary {
  width: auto !important;
  min-width: 120px !important;
  margin: 0 !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.yf-btn-primary {
  background: var(--yf-primary);
  color: #fff !important;
  padding: 10px 22px;
  font-size: 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.yf-btn-primary:hover {
  background: var(--yf-primary-hover);
}

.yf-btn-secondary {
  background: var(--yf-primary);
  border: 1px solid var(--yf-primary);
  color: #fff !important;
  padding: 9px 20px;
  font-size: 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.yf-btn-secondary:hover {
  background: var(--yf-primary-hover);
  border-color: var(--yf-primary-hover);
  color: #fff !important;
}

/* Status Badges */
.yf-status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.yf-status.status-publish {
  background: #e6fffa;
  color: #2c7a7b;
}

.yf-status.status-pending {
  background: #fffaf0;
  color: #b7791f;
}

.yf-status.status-draft {
  background: #edf2f7;
  color: #4a5568;
}

.yf-status.status-rejected {
  background: #fff5f5;
  color: #c53030;
}

.yf-date-info {
  font-size: 0.75rem;
  color: var(--yf-text-muted);
  line-height: 1.4;
}

.yf-date-info strong {
  color: var(--yf-text-main);
  font-weight: 600;
}

.yf-status.status-active {
  background: #e1f5e6;
  color: #27ae60;
}

.yf-status.status-pending {
  background: #fff3e0;
  color: #f39c12;
}

/* Response messaging */
#yf-profile-msg,
#yf-add-boat-msg {
  font-weight: 600;
}

.success {
  color: #27ae60;
}
.error {
  color: #e74c3c;
}

/* Empty States */
.yf-empty-state {
  padding: 60px 40px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--yf-border);
  border-radius: 8px;
  margin: 20px 0;
}

.yf-empty-icon {
  font-size: 4rem;
  color: var(--yf-primary);
  margin-bottom: 20px;
  opacity: 0.3;
}

.yf-empty-icon i {
  width: auto;
  height: auto;
  font-size: inherit;
}

.yf-empty-state h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  color: var(--yf-text-main);
}

.yf-empty-state p {
  color: var(--yf-text-muted);
  max-width: 400px;
  margin: 0 auto 25px;
  line-height: 1.6;
}

/* Preloader */
.yf-preloader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition:
    opacity 0.4s ease,
    visibility 0.4s;
}

.yf-preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.yf-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(108, 158, 158, 0.2);
  border-top-color: var(--yf-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .yf-form-row {
    grid-template-columns: 1fr;
  }
}

#yf-boats-table-area {
  position: relative;
  min-height: 200px;
}

.yf-loading {
  display: block !important;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.yf-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid rgba(108, 158, 158, 0.2);
  border-top-color: var(--yf-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 10;
}

/* Job Postings Specific */
.yf-job-interest-badge {
  background: var(--yf-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.yf-job-form-box {
  /* Styles removed to prevent double-card nesting. */
}

.yf-job-form-box h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--yf-primary);
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.yf-job-interest-badge:empty {
  display: none;
}

/* Modals */
.yf-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.yf-modal-content {
  background-color: #fff;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.yf-modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.yf-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #333;
}

.yf-modal-close {
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}

.yf-modal-close:hover {
  color: #333;
}

.yf-modal-body {
  padding: 25px;
  max-height: 70vh;
  overflow-y: auto;
}

/* Candidate List Item */
.yf-candidate-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
}

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

.yf-candidate-item:hover {
  background: #f8fafc;
}

.yf-candidate-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.yf-candidate-info {
  flex-grow: 1;
}

.yf-candidate-name {
  display: block;
  font-weight: 600;
  color: #333;
  font-size: 1.05rem;
}

.yf-candidate-role {
  font-size: 0.85rem;
  color: #64748b;
}

.yf-candidate-actions .yf-btn-view-profile {
  font-size: 0.8rem;
  padding: 6px 12px;
}

/* Hire Requests Status Badges */
.yf-status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.status-pending {
  background: #e3f2fd;
  color: #1976d2;
}

.status-accepted {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-declined {
  background: #ffebee;
  color: #c62828;
}

.yf-requests-table-wrapper {
  margin-top: 20px;
  background: #fff;
  border-radius: var(--yf-radius);
  border: 1px solid var(--yf-border);
  overflow: hidden;
}

.yf-dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.yf-dashboard-table th {
  background: #f8f9fa;
  padding: 15px 20px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yf-text-muted);
  border-bottom: 1px solid var(--yf-border);
}

.yf-dashboard-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--yf-border);
  font-size: 0.95rem;
}

.yf-dashboard-table tr:last-child td {
  border-bottom: none;
}

/* Event Popup Styles */
.yf-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
}

.yf-popup-inner {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  position: relative;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  animation: popupFadeIn 0.2s ease-out;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.yf-popup-close {
  background: none;
  border: none;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.yf-popup-close:hover {
  color: #333;
}

/* Hide FullCalendar event time label */
.fc-event-time {
  display: none !important;
}

/* ==========================================================================
   Availability Calendar Management
   ========================================================================== */

.yf-availability-mgmt-section {
  margin-top: 40px;
}

#yf-owner-boat-calendar {
  font-family: inherit;
}

#yf-owner-boat-calendar .fc-toolbar-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
}

#yf-owner-boat-calendar .fc-button-primary {
  background-color: #fff !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
  font-size: 0.85rem !important;
  text-transform: capitalize !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

#yf-owner-boat-calendar .fc-button-primary:hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

#yf-owner-boat-calendar .fc-button-active {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

#yf-owner-boat-calendar .fc-daygrid-day-number {
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: none;
  padding: 8px;
}

#yf-owner-boat-calendar .fc-col-header-cell-cushion {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 0;
}

#yf-owner-boat-calendar .fc-event {
  border: none;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 0.75rem;
}

/* Event Modal Styling */
.yf-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.yf-modal-content {
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: yfModalSlideUp 0.3s ease-out;
}

@keyframes yfModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.yf-owner-delete-block-btn:hover {
  background-color: #dc2626 !important;
}

/* ==========================================================================
   EXTRACTED TEMPLATE STYLES & RESPONSIVE OVERRIDES
   ========================================================================== */

/* --- 1. Extracted Login Styles (from class-owner-dashboard.php) --- */
.yf-dashboard-login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 20px 60px 20px;
}
.yf-dashboard-login-container {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #eaeaea;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}
.yf-dashboard-login-container.wide {
  max-width: 800px;
}
.yf-dashboard-login-container h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 26px;
  color: #222;
  font-weight: 700;
  line-height: 1.2;
}
.yf-dashboard-login-container form .login-username,
.yf-dashboard-login-container form .login-password,
.yf-dashboard-login-container form .yf-form-group {
  margin-bottom: 20px;
}
.yf-dashboard-login-container form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #444;
  font-weight: 600;
}
.yf-dashboard-login-container form input[type="text"],
.yf-dashboard-login-container form input[type="email"],
.yf-dashboard-login-container form input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  background: #fdfdfd;
  box-sizing: border-box;
}
.yf-dashboard-login-container form input[type="text"]:focus,
.yf-dashboard-login-container form input[type="email"]:focus,
.yf-dashboard-login-container form input[type="password"]:focus,
.yf-form-group input:focus:not(.select2-search__field),
.yf-form-group textarea:focus {
  outline: none;
  border-color: #6c9e9e;
  background: #fff;
}
.yf-form-group .wp-editor-container textarea.wp-editor-area {
  padding: 10px !important;
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
}
.yf-form-group .wp-editor-wrap {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}
.yf-form-group .wp-editor-container {
  border: none !important;
}
.yf-dashboard-login-container form .login-remember {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}
.yf-dashboard-login-container form .login-remember label {
  margin-bottom: 0;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
}
.yf-dashboard-login-container form .login-remember input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #6c9e9e;
  cursor: pointer;
}
.yf-dashboard-login-container form .login-submit {
  margin-bottom: 0;
}
.yf-dashboard-login-container form .login-submit input[type="submit"],
.yf-btn-primary.full-width {
  width: 100%;
  background: #6c9e9e;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.1s ease;
}
.yf-dashboard-login-container form .login-submit input[type="submit"]:hover,
.yf-btn-primary.full-width:hover {
  background: #5a8a8a;
}
.yf-dashboard-login-container form .login-submit input[type="submit"]:active,
.yf-btn-primary.full-width:active {
  transform: scale(0.98);
}
.yf-dashboard-login-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #666;
  padding-top: 20px;
  border-top: 1px solid #eaeaea;
}
.yf-dashboard-login-footer a {
  color: #6c9e9e;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.yf-dashboard-login-footer a:hover {
  color: #4b6e6e;
  text-decoration: underline;
}
.yf-role-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.yf-role-card {
  display: flex;
  align-items: center;
  padding: 20px;
  border: 2px solid #eaeaea;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
  background: #fafafa;
}
.yf-role-card:hover {
  border-color: #6c9e9e;
  background: #f0f7f7;
  transform: translateY(-2px);
}
.yf-role-card i {
  font-size: 24px;
  color: #6c9e9e;
  margin-right: 15px;
}
.yf-role-info h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 700;
}
.yf-role-info p {
  margin: 0;
  font-size: 13px;
  color: #666;
}
.yf-password-wrapper {
  position: relative;
}
.yf-password-wrapper input {
  padding-right: 45px !important;
}
.yf-password-toggle {
  position: absolute;
  right: 15px;
  top: 15px;
  cursor: pointer;
  color: #666;
  font-size: 18px;
  line-height: 1;
}
.yf-password-strength {
  margin-top: 8px;
  height: 4px;
  background: #eaeaea;
  border-radius: 2px;
  overflow: hidden;
  display: none;
}
.yf-password-strength-bar {
  height: 100%;
  width: 0;
  transition:
    width 0.3s ease,
    background-color 0.3s ease;
}
.yf-password-msg {
  font-size: 12px;
  margin-top: 5px;
  color: #e53e3e;
  display: none;
}
.yf-login-subtext {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
}

/* --- 2. Extracted Media Uploader Styles --- */
.media-modal,
.media-frame {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif !important;
}
.media-modal h1,
.media-frame-title h1 {
  font-size: 22px !important;
  line-height: 50px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  color: #1d2327 !important;
  font-weight: 600 !important;
  background: none !important;
  border: none !important;
}
.media-frame-router .media-router a,
.media-frame-router .media-router button {
  font-size: 14px !important;
  line-height: 18px !important;
  padding: 8px 12px !important;
  color: #2271b1 !important;
  background: none !important;
}
.media-frame-router .media-router .active {
  color: #1d2327 !important;
  border-bottom: 3px solid #2271b1 !important;
  background: none !important;
}
.media-toolbar-primary search {
  font-size: 13px !important;
}
.media-modal-close {
  background: transparent !important;
  border: none !important;
  color: #646970 !important;
  top: 5px !important;
  right: 5px !important;
  width: 40px !important;
  height: 40px !important;
}
.media-modal-close:hover,
.media-modal-close:focus {
  color: #2271b1 !important;
  background: transparent !important;
}
.media-modal-close span.media-modal-icon {
  font-size: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}
.media-modal-close span.media-modal-icon::before {
  color: #646970 !important;
}
.media-modal-close:hover span.media-modal-icon::before {
  color: #2271b1 !important;
}
.media-sidebar .media-uploader-status h2,
.media-sidebar h2 {
  font-size: 13px !important;
  color: #1d2327 !important;
  margin: 0 0 12px !important;
  font-weight: 600 !important;
  border: none !important;
}
.media-toolbar-secondary h2 {
  font-size: 13px !important;
  line-height: 1.5 !important;
}
.media-frame-toolbar .media-toolbar-primary .button {
  font-size: 13px !important;
  padding: 0 10px !important;
  height: 30px !important;
  line-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* --- 3. Extracted Hire Request & Status Badges --- */
.yf-status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.status-pending {
  background: #ebf8ff;
  color: #2b6cb0;
}
.status-accepted {
  background: #f0fff4;
  color: #2f855a;
}
.status-declined {
  background: #fff5f5;
  color: #c53030;
}
.yf-requests-table-wrapper {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-top: 20px;
}
.yf-dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.yf-dashboard-table th,
.yf-dashboard-table td {
  padding: 15px;
  border-bottom: 1px solid #edf2f7;
}
.yf-dashboard-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #4a5568;
}
.yf-confirm-hire-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: transparent !important;
  background-image: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  height: auto !important;
  width: auto !important;
  line-height: normal !important;
  border: 1px solid !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.yf-confirm-hire-accept {
  border-color: #48bb78 !important;
  color: #48bb78 !important;
}
.yf-confirm-hire-accept:hover {
  background-color: #48bb78 !important;
  color: white !important;
}
.yf-confirm-hire-decline {
  border-color: #e53e3e !important;
  color: #e53e3e !important;
}
.yf-confirm-hire-decline:hover {
  background-color: #e53e3e !important;
  color: white !important;
}
.yf-status-waiting {
  color: #a0aec0;
}
.yf-status-not-available {
  color: #e53e3e;
}
.yf-avatar-circle {
  border-radius: 50%;
  object-fit: cover;
}

/* --- 4. Extracted Reviewer Popup Modal Styles --- */
.yf-popup-container {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  color: #333;
  line-height: 1.5;
}
.yf-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.yf-profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.yf-profile-meta {
  flex: 1;
}
.yf-profile-meta h3 {
  margin: 0 0 5px 0;
  font-size: 22px;
  color: #1e293b;
}
.yf-role-badge {
  display: inline-block;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.yf-profile-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  font-size: 13px;
  color: #64748b;
}
.yf-profile-meta-grid strong {
  color: #334155;
}
.yf-section-title {
  font-size: 16px;
  color: #0f172a;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
  margin: 25px 0 15px 0;
  font-weight: 600;
}
.yf-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.yf-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}
.yf-card h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 5px;
}
.yf-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}
.yf-info-list li {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #f1f5f9;
  padding-bottom: 4px;
}
.yf-info-list li:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.yf-info-list strong {
  color: #64748b;
  font-weight: 500;
}
.yf-info-list span {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}
.yf-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-right: 6px;
  margin-bottom: 6px;
  border: 1px solid #e2e8f0;
}
.yf-repeater-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.yf-repeater-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
}
.yf-repeater-item-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 13px;
  color: #1e293b;
  margin-bottom: 6px;
}
.yf-repeater-item-dates {
  font-size: 11px;
  color: #64748b;
  font-weight: normal;
}
.yf-repeater-item-desc {
  font-size: 12px;
  color: #475569;
  margin-top: 5px;
  line-height: 1.4;
}
.yf-stars {
  color: #ffb800;
  font-size: 14px;
}
.yf-star-empty {
  color: #cbd5e1;
  font-size: 14px;
}
.yf-docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.yf-docs-table th,
.yf-docs-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.yf-docs-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
}
.yf-docs-table a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 500;
}
.yf-docs-table a:hover {
  text-decoration: underline;
}
.yf-textbox {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* --- 5. Extracted Membership Subscription Gate --- */
.yf-subscription-gate {
  margin: 24px 0;
  background: linear-gradient(135deg, #f0f7f7 0%, #e8f4f4 100%);
  border: 1px solid #b0d4d4;
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.yf-subscription-gate::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6c9e9e, #4a7f7f);
}
.yf-gate-icon {
  font-size: 48px;
  color: #6c9e9e;
  margin-bottom: 12px;
}
.yf-gate-count {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}
.yf-gate-msg {
  font-size: 1rem;
  color: #4a6b6b;
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.yf-gate-btn {
  display: inline-block;
  background: linear-gradient(135deg, #6c9e9e, #4a7f7f);
  color: #ffffff !important;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.3px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(108, 158, 158, 0.35);
}
.yf-gate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 158, 158, 0.5);
  color: #ffffff !important;
}
.yf-ajax-product-search + .select2-container {
  max-width: 100%;
  display: block;
  margin-top: 5px;
}
.select2-container--default .select2-selection--single {
  height: 32px;
  line-height: 32px;
}

/* --- 6. Extracted Wallet & Wavepoints Styles --- */
.yf-wallet-container {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eaeaea;
  font-family: "Inter", sans-serif;
}
.yf-wallet-header {
  margin-bottom: 30px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 15px;
}
.yf-wallet-header h2 {
  margin: 0;
  font-size: 24px;
  color: #2c3e50;
}
.yf-wallet-header p {
  margin: 5px 0 0 0;
  color: #666;
}
.yf-wallet-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.yf-wallet-card {
  background: linear-gradient(135deg, #6c9e9e 0%, #4a7a7a 100%);
  border-radius: 10px;
  padding: 25px;
  color: #fff;
  box-shadow: 0 10px 20px rgba(108, 158, 158, 0.2);
  position: relative;
  overflow: hidden;
}
.yf-wallet-card.wavepoints {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}
.yf-wallet-card h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.9;
  color: #fff;
}
.yf-wallet-card .yf-balance {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}
.yf-wallet-card i {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 48px;
  opacity: 0.2;
}
.yf-wallet-history {
  margin-top: 30px;
}
.yf-wallet-history h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}
.yf-wallet-table {
  width: 100%;
  border-collapse: collapse;
}
.yf-wallet-table th,
.yf-wallet-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eaeaea;
}
.yf-wallet-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
  font-size: 14px;
}
.yf-wallet-table td {
  color: #333;
  font-size: 15px;
}
.yf-wallet-empty {
  text-align: center;
  padding: 40px;
  background: #f8fafc;
  border-radius: 8px;
  color: #64748b;
}

/* --- 7. Extracted Backoffice & MLM Provider Info Styles --- */
.yf-info-button {
  padding: 12px 24px;
  background-color: #6c9e9e;
  color: white;
  font-size: 12px !important;
  text-transform: uppercase;
  font-family: "Lora", serif;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.yf-info-button::before {
  font-size: 12px;
}
.yf-info-btn-flex {
  display: flex !important;
  justify-content: flex-start !important;
}
#owner-info-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}
#owner-info-modal .modal-content {
  background: #fff;
  max-width: 600px;
  margin: 100px auto;
  padding: 30px;
  position: relative;
  border-radius: 8px;
  color: #000;
}
#owner-info-modal .modal-content p,
#owner-info-modal .modal-content h3 {
  color: #000;
}
#close-owner-info {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #000;
}
.yf-flex-left {
  display: flex !important;
  justify-content: flex-start !important;
}

/* --- 8. Extracted AJAX Crew Modal Styles --- */
.yf-crew-modal-layout {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.yf-crew-modal-header-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}
.yf-crew-modal-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.yf-crew-modal-info h2 {
  margin: 0 0 5px;
  font-size: 1.5rem;
  color: #1e293b;
}
.yf-crew-modal-contact {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  font-size: 13px;
  color: #64748b;
}
.yf-crew-modal-contact i,
.yf-crew-modal-contact span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.yf-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.yf-detail-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.yf-detail-card h3 {
  margin: 0 0 15px 0;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  border-left: 3px solid #1a6985;
  padding-left: 10px;
}
.yf-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.yf-data-table th,
.yf-data-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}
.yf-data-table th {
  font-weight: 500;
  color: #64748b;
  width: 35%;
}
.yf-data-table td {
  color: #1e293b;
  font-weight: 600;
}
.yf-data-table tr:last-child th,
.yf-data-table tr:last-child td {
  border-bottom: none;
}
.yf-section-header {
  font-size: 16px;
  color: #0f172a;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
  margin: 25px 0 15px 0;
  font-weight: 600;
}
.yf-item-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
}
.yf-item-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 13px;
  color: #1e293b;
  margin-bottom: 4px;
}
.yf-item-dates {
  font-size: 11px;
  color: #64748b;
  font-weight: normal;
}
.yf-item-desc {
  font-size: 12px;
  color: #475569;
  margin-top: 6px;
  line-height: 1.4;
}
.yf-text-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* --- 9. Extracted Crew Profile View & Edit Form Styles --- */
.crew-view-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  margin-top: 20px;
  max-width: 1400px;
}
.crew-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 24px;
}
.crew-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #edf2f7;
  color: #2d3748;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.crew-sidebar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 24px;
  height: fit-content;
}
.crew-profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
  border: 3px solid #6c9e9e;
}
.crew-no-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #edf2f7;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
  font-size: 14px;
}
.crew-name-title {
  text-align: center;
  margin-bottom: 8px;
  font-size: 22px;
  color: #1a202c;
  font-weight: 700;
}
.crew-role-badge {
  display: block;
  text-align: center;
  background: #e6f0f0;
  color: #6c9e9e;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 auto 20px;
  width: fit-content;
}
.crew-sidebar-meta {
  border-top: 1px solid #edf2f7;
  padding-top: 16px;
}
.crew-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #4a5568;
  font-size: 14px;
}
.crew-meta-item i {
  color: #6c9e9e;
  width: 20px;
  text-align: center;
  font-size: 16px;
}
.crew-meta-item strong {
  color: #2d3748;
}
.crew-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.crew-detail-item {
  margin-bottom: 16px;
}
.crew-detail-item label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #718096;
  margin-bottom: 4px;
  font-weight: 600;
}
.crew-detail-item .value {
  font-size: 15px;
  color: #2d3748;
  font-weight: 500;
}
.crew-textarea {
  background: #f7fafc;
  border: 1px solid #edf2f7;
  border-radius: 6px;
  padding: 12px;
  color: #4a5568;
  line-height: 1.6;
  font-size: 14px;
}
.experience-card,
.education-card {
  border-left: 3px solid #6c9e9e;
  padding-left: 16px;
  margin-bottom: 20px;
}
.experience-card:last-child,
.education-card:last-child {
  margin-bottom: 0;
}
.exp-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 4px;
}
.exp-meta {
  font-size: 13px;
  color: #718096;
  margin-bottom: 8px;
}
.exp-desc {
  font-size: 14px;
  color: #4a5568;
  margin: 0;
  line-height: 1.5;
}
.tag-pill {
  display: inline-block;
  background: #edf2f7;
  color: #4a5568;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-right: 8px;
  margin-bottom: 8px;
}
.stars-display {
  color: #ecc94b;
  letter-spacing: 2px;
}
.doc-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #f7fafc;
  border-radius: 6px;
  margin-bottom: 10px;
}
.doc-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #2d3748;
  font-weight: 500;
}
.doc-info i {
  color: #6c9e9e;
  font-size: 18px;
}
.doc-btn {
  background: #6c9e9e;
  color: #fff !important;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s;
}
.doc-btn:hover {
  background: #548282;
}
.ical-box {
  background: #f7fafc;
  border: 1px solid #edf2f7;
  border-radius: 6px;
  padding: 12px;
  font-family: monospace;
  font-size: 12px;
  color: #2d3748;
  word-break: break-all;
  user-select: all;
  cursor: pointer;
}
.crew-member-edit #rtx-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
  max-width: 100%;
}
.crew-edit-sidebar-col,
.crew-edit-main-col {
  display: contents;
}
.crew-member-edit .crew-form-section-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 24px;
}
.crew-member-edit .crew-form-section-card h3 {
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
  color: #2d3748;
  font-size: 18px;
}
.crew-member-edit .rtx-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.crew-member-edit .rtx-form-row:last-child {
  margin-bottom: 0;
}
.crew-member-edit .rtx-form-col {
  flex: 1;
  min-width: 250px;
}
.crew-member-edit label {
  display: block;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 6px;
  font-size: 14px;
}
.crew-member-edit input[type="text"],
.crew-member-edit input[type="email"],
.crew-member-edit input[type="url"],
.crew-member-edit input[type="number"],
.crew-member-edit select,
.crew-member-edit textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 14px;
  color: #2d3748;
  background: #fff;
  box-sizing: border-box;
}
.crew-member-edit input[type="text"]:focus,
.crew-member-edit input[type="email"]:focus,
.crew-member-edit input[type="url"]:focus,
.crew-member-edit input[type="number"]:focus,
.crew-member-edit select:focus,
.crew-member-edit textarea:focus {
  border-color: #6c9e9e;
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 158, 158, 0.1);
}
.crew-member-edit input[type="checkbox"],
.crew-member-edit input[type="radio"] {
  margin-right: 8px;
}
.crew-member-edit .button-primary {
  background: #6c9e9e !important;
  border-color: #6c9e9e !important;
  color: #fff !important;
  padding: 8px 24px !important;
  font-size: 15px !important;
  height: auto !important;
  line-height: 1.5 !important;
  border-radius: 6px !important;
}
.crew-member-edit .button-primary:hover {
  background: #548282 !important;
  border-color: #548282 !important;
}
.crew-member-edit .repeater-row {
  background: #f7fafc;
  border: 1px solid #edf2f7;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
}
.crew-member-edit .repeater-remove-btn {
  background: #fed7d7;
  color: #c53030;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 10px;
}
.crew-member-edit .repeater-remove-btn:hover {
  background: #feb2b2;
}
.crew-member-edit .repeater-add-btn {
  background: #edf2f7;
  color: #4a5568;
  border: 1px dashed #cbd5e0;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all 0.2s;
}
.crew-member-edit .repeater-add-btn:hover {
  background: #e2e8f0;
  border-color: #a0aec0;
}
.crew-member-edit .file-input-container {
  margin-top: 5px;
}
.crew-member-edit .file-input-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #e2e8f0 !important;
  color: #4a5568 !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  border: 1px solid #cbd5e0 !important;
  transition: background 0.2s !important;
}
.crew-member-edit .file-input-label:hover {
  background: #cbd5e0 !important;
}
.crew-member-edit .rtx-star-rating {
  font-size: 20px !important;
}

/* --- 10. Extracted Purchased Crew List Styles --- */

/* --- 11. Extracted Crew List & Filter Styles --- */

/* --- 12. Extracted Single Crew View Styles --- */

.crew-two-col {
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
}

@media (max-width: 980px) {
  .crew-two-col {
    grid-template-columns: 1fr;
  }
}

/* Left column (profile card) */
.crew-left {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 16px;
  height: fit-content;
}

.crew-photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f7;
}

.crew-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.crew-name {
  font-size: 34px;
  margin: 16px 0 8px;
  line-height: 1.1;
  color: #243b53;
}

.crew-role-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f0f5f5;
  color: #4a6b6b;
  font-size: 13px;
  font-weight: 700;
  margin: 6px 0 14px;
}

.meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.meta-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.meta-item .label {
  min-width: 120px;
  color: #5a6b7b;
  font-weight: 700;
}

.meta-item .value {
  color: #2f3e4d;
  word-break: break-word;
}

.crew-buy {
  margin-top: 18px;
  display: flex;
}

.purchase-crew-btn {
  border-radius: 8px;
  padding: 10px 14px;
  border: 1px solid #d1e7dd;
  background: #e9f7ef;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.purchase-crew-btn.in-cart {
  background: #f0f4ff;
  border-color: #cfe1ff;
}

/* Right column sections */
.section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.section h3 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f2f4f7;
  color: #243b53;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.doc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e6e8ec;
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  color: #6c9e9e;
  background: #f8fafc;
}

.exp-card {
  border: 1px solid #eef1f4;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fcfcfe;
}

.exp-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #1f2937;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  color: #6c9e9e;
  text-decoration: none;
}

/* --- Custom styling voor linker kolom --- */
.crew-left {
  background: #6c9e9e !important;
  /* groene achtergrond */
  color: #fff !important;
  /* tekst wit */
}

.crew-left .crew-name,
.crew-left .meta-item .label,
.crew-left .meta-item .value,
.crew-left .back-link,
.crew-left .crew-role-badge {
  color: #fff !important;
}

.crew-left .crew-role-badge {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Profielfoto cirkelvormig */
.crew-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  border: 3px solid #fff;
  /* optioneel wit randje */
}

.crew-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Email en telefoon links wit maken */
.crew-left a,
.crew-left a:visited {
  color: #fff !important;
  text-decoration: none;
}

.crew-left a:hover {
  color: #e0e0e0 !important;
  /* iets lichter grijs bij hover */
}

.crew-role-badge {
  font-size: 20px;
  padding: 6px 14px;
}

.meta-item .label {
  font-weight: 600;
  font-size: 18px;
  opacity: 0.9;
}

.meta-item .value {
  font-size: 18px;
}

.section h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #1d2d35;
}

.crew-skills-block {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 15px 18px;
  margin-top: 20px;
  color: #fff;
}

.crew-skills-block h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.crew-skills-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.crew-skills-block li {
  color: #fff;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crew-skills-block li:last-child {
  border-bottom: none;
}

.skill-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* docs */
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #e8eaee;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fafbfd;
}

.doc-row.is-expired {
  border-color: #ffd7d7;
  background: #fff7f7;
}

.doc-link {
  text-decoration: none;
  font-weight: 600;
  color: #6c9e9e;
}

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

.doc-valid {
  color: #6b7280;
  font-size: 13px;
  white-space: nowrap;
  margin-left: 12px;
}

.doc-empty {
  padding: 8px 0;
}

.muted {
  color: #6b7280;
}

/* docs links */
.crew-certs-block {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 15px 18px;
  margin-top: 20px;
  color: #fff;
}

.crew-certs-block h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.crew-certs-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.crew-certs-block li {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 6px 0;
}

.crew-certs-block li:last-child {
  border-bottom: none;
}

.crew-certs-block a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
}

.crew-certs-block a:hover {
  opacity: 0.9;
}

.skill-icon {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.cert-label {
  flex: 1;
}

.cert-valid {
  opacity: 0.85;
  font-size: 12px;
  white-space: nowrap;
}

.crew-certs-block li.is-expired .cert-valid {
  color: #ffd6d6;
  opacity: 1;
}

/* YACHT EXPERIENCE */
.exp-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 6px;
}

.exp-date {
  font-size: 12px;
  opacity: 0.75;
  white-space: nowrap;
}

/* education & talen  */

.crew-languages li,
.crew-education li {
  margin: 3px 0;
  font-size: 15px;
  list-style: none;
}

.wave-icon {
  color: #6c9e9e;
  margin-right: 2px;
}

.crew-lang {
  font-size: 14px;
  margin-top: 5px;
}

.crew-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
}

.crew-box-title {
  font-weight: 600;
  color: #fff;
  font-size: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.crew-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.crew-list li {
  padding: 6px 0;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #fff;
}

.crew-list li:last-child {
  border-bottom: none;
}

.crew-item-label {
  font-weight: 500;
  font-size: 16px;
  text-transform: capitalize;
}

.btn-hire-status {
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  text-align: center;
  width: 100%;
  border: none;
  cursor: pointer;
}

.btn-pending {
  background: #ffeeba;
  color: #856404 !important;
  cursor: not-allowed;
}

.btn-accepted {
  background: #d4edda;
  color: #155724 !important;
}

.btn-declined {
  background: #f8d7da;
  color: #721c24 !important;
  cursor: not-allowed;
}

.crew-left .btn-request {
  background: #ffffff !important;
  color: #1d2d35 !important;
  border: 1px solid #ffffff !important;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.crew-left .btn-request:hover {
  background: #f8f9fa !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* --- 13. Extracted Boat CPT Admin Styles --- */
.yf-boat-section {
  background: #fff;
  border: 1px solid #ccd0d4;
  padding: 20px;
  margin-top: 0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}
.yf-tabs {
  padding-top: 10px;
  margin-bottom: 0;
  border-bottom: none;
}
.yf-tabs .nav-tab {
  font-size: 14px;
  padding: 10px 15px;
  margin-right: 5px;
  cursor: pointer;
}
.yf-tab-content {
  display: none;
}
.yf-tab-content.yf-active {
  display: block;
}
.yf-pt-group {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}
.yf-pt-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.yf-pt-section-title {
  margin-top: 0;
  font-size: 1.1em;
  color: #2271b1;
}
.form-field {
  margin-bottom: 15px;
}
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}
.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="url"],
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
}
.form-field .description {
  color: #666;
  font-size: 12px;
  display: block;
  margin-top: 5px;
}
.yf-pt-extras-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
.yf-pt-extras-table th,
.yf-pt-extras-table td {
  padding: 8px;
  border: 1px solid #ccd0d4;
  text-align: left;
}
.yf-pt-extras-table th {
  background: #f8f9f9;
}
.yf-repeat-group {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
}
.yf-repeat-group input {
  flex-grow: 1;
}

/* ==========================================================================
   UNIVERSAL RESPONSIVE MEDIA QUERIES (DESKTOP, LAPTOP, TABLET, MOBILE)
   ========================================================================== */

/* Laptop & Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .crew-member-list-item.is-couple-entry {
    grid-column: span 1;
  }
  .couple-body {
    flex-direction: column;
  }
  .couple-member-half {
    border-right: none;
    border-bottom: 1px solid #eee;
  }
  .yf-wallet-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .crew-two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .crew-view-container {
    grid-template-columns: 1fr;
  }
}

/* Tablet & Smaller Laptops (max-width: 900px) */
@media (max-width: 900px) {
  /* Responsive Sidebar Toggle Support */
  .yf-dashboard-sidebar {
    position: fixed;
    top: 70px;
    left: -300px;
    z-index: 1000;
    width: 280px;
    height: calc(100vh - 70px);
    transition: left 0.3s ease;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    display: flex !important;
  }
  .yf-dashboard-sidebar.yf-sidebar-open {
    left: 0;
  }
  .yf-dashboard-backdrop.is-visible {
    display: block !important;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }
  .yf-mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--yf-text-main, #2d3436);
    cursor: pointer;
    padding: 5px 10px;
    margin-right: 15px;
  }
  .yf-top-bar-left {
    display: flex;
    align-items: center;
  }
  .yf-form-row,
  .rtx-form-row,
  .yf-grid-2,
  .yf-details-grid,
  .yf-profile-meta-grid,
  .crew-grid-2 {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
  }
  .yf-form-col,
  .rtx-form-col {
    width: 100% !important;
    min-width: 100% !important;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .yf-dashboard-top-bar {
    padding: 0 15px;
    height: 60px;
  }
  .yf-dashboard-sidebar {
    top: 60px !important;
    height: calc(100vh - 60px) !important;
  }
  .yf-dashboard-backdrop.is-visible {
    top: 60px !important;
    height: calc(100vh - 60px) !important;
  }
  .yf-dashboard-title {
    font-size: 1.2rem;
  }
  .yf-user-info-mini {
    display: none; /* Keep clean avatar only on small screens */
  }
  .yf-wallet-cards {
    grid-template-columns: 1fr;
  }
  .crew-filter-form {
    flex-direction: column;
    align-items: stretch;
  }
  .crew-filter-form .filter-group,
  .crew-filter-form .filter-group.search-group {
    width: 100%;
    min-width: 100%;
  }
  .crew-filter-form .filter-actions {
    width: 100%;
    flex-direction: column;
  }
  .yf-btn-filter,
  .yf-btn-reset {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  body .yf-crew-filters {
    flex-direction: column;
    align-items: stretch;
  }
  body .yf-crew-filters input[type="text"],
  body .yf-crew-filters select,
  body .yf-crew-filters button {
    width: 100%;
    min-width: 100%;
  }
  /* Horizontal scroll for data tables on mobile */
  .yf-requests-table-wrapper,
  .yf-wallet-history,
  .yf-docs-table,
  .yf-data-table,
  .yf-pt-extras-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .crew-member-list-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .crew-member-image {
    margin-right: 0;
  }
  .crew-member-meta {
    justify-content: center;
  }
  .crew-member-actions {
    margin-left: 0;
    width: 100%;
  }
  .view-profile-btn {
    width: 100%;
    text-align: center;
  }
  .yf-dashboard-login-container {
    padding: 25px 15px;
  }
  .yf-role-selector {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .yf-dashboard-wrapper {
    position: relative; /* Allow natural scrolling on very small mobile if fixed viewport is restrictive */
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }
  .yf-dashboard-body {
    overflow-y: auto;
  }
  .yf-dashboard-content {
    padding: 15px !important;
  }
}
