/* Member Shows - General Layout */
.member-shows-wrapper { 
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Call for Entry Grid */
.member-show-card {
    background: #fff;
    padding: 20px;
    border-radius: 0px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    cursor: pointer;
    transition: 0.2s ease;
}
.member-show-card:hover {
    transform: translateY(-3px);
}

/* Artwork Entry Admin Columns */
.artwork-status-accepted { color: #2e7d32; }
.artwork-status-pending { color: #f9a825; }
.artwork-status-rejected { color: #c62828; }

/* from code template Member show */
.member-show-card {
    display: flex;
    gap: 20px;
    border: 1px solid #eee;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 0px;
}
.msc-poster img {
    width: 180px;
    border-radius: 4px;
}
.msc-content {
    flex: 1;
}
.msc-button {
    font-style: normal;
    margin: 8px 0px 8px 0px;
    color: var(--global-palette9);
    background: var(--global-palette2);
    border: 2px solid currentColor;
    border-color: var(--global-palette2);
    box-shadow: 0px 0px 0px -7px rgba(0, 0, 0, 0);
}

/* Wrapper Box */
.msc-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    margin-bottom: 50px;
    background-color: var(--pmpro--color--base);
    border: 1px solid var(--pmpro--color--border--variation);
    box-shadow: var(--pmpro--box-shadow);
    padding: 30px;
    margin: 0 0 30px;
}

/* Poster Image */
.msc-image img {
    width: 100%;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: zoom-in;
}

/* Title + Subtitle */
.msc-title {
    font-size: 40px;
    margin-bottom: 10px;
}
.msc-subtitle {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
    font-family: var(--global-primary-nav-font-family);
    text-transform: uppercase;
    margin-bottom:10px!important;
}
.msc-dates {
font-weight: 600; font-size: 22px; line-height: 1.3; font-family: var(--global-primary-nav-font-family); text-transform: capitalize;
}

/* Show Description */
.msc-description p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Info Section */
.msc-info {
    margin-top: 20px;
}

/* Align label/value on same line */
.msc-info-item {
    display: flex;
    gap: 3px;
    margin-bottom: 5px;
    align-items: center;
}

.msc-info-item h5 {
    font-size: 17px;
    font-weight: 600;
    margin: 0!important;
    min-width: 180px;
}
.msc-info-item p {
    font-size: 15px;
    margin: 0;
}

/* Button */
.msc-btn-wrap {
    margin-top: 30px;
}
.msc-btn-wrap .button {
}
/* Closed state button */
.msc-submit-btn.is-disabled{
  background: #5f5f5f !important;
  border-color: #5f5f5f !important;
  color: #fff !important;
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}
/* Lightbox */
.msc-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.msc-lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
}

.msc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* Info item row layout */
.msc-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.msc-info-item h5 {
    width: 200px;
    margin: 0 0 30px;
}

/* ===========================
   Modern Artist Submissions Table
   =========================== */

.artist-submissions-table-wrapper {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #e5e7eb; /* Tailwind border-gray-200 */
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* Header */
.artist-submissions-table-header {
    padding: 18px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

.artist-submissions-table-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937; /* gray-800 */
}

/* Table container */
.artist-submissions-table {
    width: 100%;
    border-collapse: collapse;
     font-size: 15px;
    border-radius: 20px;
    padding: 40px 25px 20px;
    background-color: #f0f0f0;
}

/* Header row */
.artist-submissions-table thead tr {
    background: #f7f7f7;
}

.artist-submissions-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #000000;
    border-bottom: 1px solid #dddddd;
    white-space: nowrap;
}

/* Body rows */
.artist-submissions-table tbody tr {
    border-bottom: 1px solid #dddddd;  background: #ffffff;
}

.artist-submissions-table tbody tr:nth-child(even) {
    background: #ffffff;
}

.artist-submissions-table tbody tr:hover {
    background: #dddddd; /* light hover */
}

/* Table cells */
.artist-submissions-table td {
    padding: 14px 16px;
    vertical-align: middle;
    color: #000000; /* gray-700 */
}

/* Thumbnail + artwork name layout */
.artist-submissions-table .artwork-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Thumbnail */
.artist-submissions-table .artwork-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Status tags */
.status-pill {
    display: inline-block;
    padding: 3px 10px;
    font-size: 13px;
    border-radius: 999px;
    font-weight: 600;
    text-align: center;
}

.status-accepted {
    background: #dcfce7;
    color: #166534;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background: #f3f4f6;
    color: #4b5563;
}


.artist-submissions-table .status-rejected {
    color: #b71c1c;
    font-weight: 600;
}

.artist-submissions-table .status-pending {
    color: #777;
}
.msc-section-title--divider{
  border-top: 0px solid var(--global-palette7);
  padding-top: 16px;
  margin-top: 22px !important;
}

/* ===== Submit Artwork page: two boxes side-by-side on desktop ===== */
.msc-submit-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

/* Artwork entries table (GP Nested Forms) - nicer layout */
.msc-submit-wrap .gpnf-nested-entries-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  font-size: 15px;
  border-radius: 20px;
  padding: 20px 25px 20px;
  background-color: #f0f0f0;
}

/* Scroll area: table only; Add Entry button stays below */
.msc-submit-wrap .gpnf-nested-entries-scroll {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-gutter: stable;
}

.msc-submit-wrap .gpnf-nested-entries-container .gpnf-add-entry {
  margin-top: 16px;
}

.msc-submit-wrap .gpnf-nested-entries-scroll::-webkit-scrollbar {
  -webkit-appearance: none;
  height: 12px;
}

.msc-submit-wrap .gpnf-nested-entries-scroll::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 6px;
}

.msc-submit-wrap .gpnf-nested-entries-scroll::-webkit-scrollbar-thumb:hover {
  background: #777;
}

.msc-submit-wrap .gpnf-nested-entries-scroll::-webkit-scrollbar-track {
  background: #eee;
}

.msc-submit-wrap .gpnf-nested-entries {
  width: 100%;
  min-width: 1000px;
  border-collapse: collapse;
  border: 1px solid var(--global-palette7);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px !important;
}

.msc-submit-wrap .gpnf-nested-entries tbody tr {
  background: #fff;
}

/* Column min-widths so headers stay on one line */
.msc-submit-wrap .gpnf-nested-entries .gpnf-field-row_id {
  min-width: 70px;
}

.msc-submit-wrap .gpnf-nested-entries .gpnf-field-4 {
  min-width: 180px;
}

.msc-submit-wrap .gpnf-nested-entries .gpnf-field-7 {
  min-width: 160px;
}

.msc-submit-wrap .gpnf-nested-entries .gpnf-field-8,
.msc-submit-wrap .gpnf-nested-entries .gpnf-field-9,
.msc-submit-wrap .gpnf-nested-entries .gpnf-field-10 {
  min-width: 75px;
}

.msc-submit-wrap .gpnf-nested-entries .gpnf-field-11 {
  min-width: 80px;
}

.msc-submit-wrap .gpnf-nested-entries .gpnf-field-13 {
  min-width: 85px;
}

.msc-submit-wrap .gpnf-nested-entries .gpnf-field-19,
.msc-submit-wrap .gpnf-nested-entries .gpnf-field-21 {
  min-width: 110px;
}

.msc-submit-wrap .gpnf-nested-entries thead {
  background: #f8f9fa;
}

.msc-submit-wrap .gpnf-nested-entries thead th {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  border-bottom: 1px solid var(--global-palette7);
  border-right: 1px solid var(--global-palette7);
  white-space: nowrap;
}

.msc-submit-wrap .gpnf-nested-entries thead th:last-child {
  border-right: 0;
}

.msc-submit-wrap .gpnf-nested-entries--actions-first thead th:first-child {
  width: 1%;
  white-space: nowrap;
}

.msc-submit-wrap .gpnf-nested-entries tbody td {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--global-palette7);
  border-right: 1px solid var(--global-palette7);
  vertical-align: middle;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.msc-submit-wrap .gpnf-nested-entries tbody td:last-child {
  border-right: 0;
}

/* Bottom line for every row */
.msc-submit-wrap .gpnf-nested-entries tbody tr td {
  border-bottom: 1px solid var(--global-palette7);
}

.msc-submit-wrap .gpnf-nested-entries .gpnf-row-actions {
  text-align: left;
  padding: 10px 14px;
}

.msc-submit-wrap .gpnf-nested-entries .gpnf-row-actions ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.msc-submit-wrap .gpnf-nested-entries .gpnf-row-actions .edit-button {
  font-size: 13px;
  padding: 6px 14px;
  font-weight: 600;
}

/* Remove bullets from Artwork Type and Artwork Frame columns */
.msc-submit-wrap .gpnf-nested-entries .gpnf-field-19,
.msc-submit-wrap .gpnf-nested-entries .gpnf-field-21 {
  list-style: none !important;
}

.msc-submit-wrap .gpnf-nested-entries .gpnf-field-19 ul,
.msc-submit-wrap .gpnf-nested-entries .gpnf-field-21 ul,
.msc-submit-wrap .gpnf-nested-entries td[data-heading="Artwork Type"] ul,
.msc-submit-wrap .gpnf-nested-entries td[data-heading="Artwork Frame"] ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.msc-submit-wrap .gpnf-nested-entries .gpnf-field-19 li,
.msc-submit-wrap .gpnf-nested-entries .gpnf-field-21 li,
.msc-submit-wrap .gpnf-nested-entries td[data-heading="Artwork Type"] li,
.msc-submit-wrap .gpnf-nested-entries td[data-heading="Artwork Frame"] li {
  list-style: none !important;
  padding-left: 0 !important;
}

.msc-submit-wrap .gpnf-nested-entries .gpnf-field-19 li::marker,
.msc-submit-wrap .gpnf-nested-entries .gpnf-field-21 li::marker,
.msc-submit-wrap .gpnf-nested-entries td[data-heading="Artwork Type"] li::marker,
.msc-submit-wrap .gpnf-nested-entries td[data-heading="Artwork Frame"] li::marker {
  content: none !important;
}

/* Artwork Entries label (Gravity Form field 4_36) */
.msc-submit-wrap label[for="input_4_36"] {
  margin-top: 40px;
  margin-bottom: 16px !important;
  padding: 0 !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Submit cards: override show-card layout (no poster), compact style */
.msc-submit-grid .msc-card--summary,
.msc-submit-grid .msc-card--stats{
  display: block;
  grid-template-columns: unset;
  padding: 18px 20px 10px;
  margin-bottom: 0;
}

/* ===== Summary rows: compact, organized ===== */
.msc-submit-grid .msc-dl > div{
    display: grid;
    grid-template-columns: minmax(0, 150px) 1fr;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--global-palette7);
    align-items: center;
}

.msc-submit-grid .msc-dl dt{
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.msc-submit-grid .msc-dl dd{
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

/* Compact show title in submit grid */
.msc-submit-grid .msc-show-title{
  margin-bottom: 8px;
  font-size: 18px;
}

/* ===== Your submission: compact stats ===== */
.msc-submit-grid .msc-stats{
  display: grid;
  gap: 0;
  margin-top: 4px;
  border-top: 1px solid var(--global-palette7);
}

.msc-submit-grid .msc-stat{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--global-palette7);
  border-radius: 0;
  background: transparent;
}

.msc-submit-grid .msc-stat:last-child{
  border-bottom: 0;
}

.msc-submit-grid h4.msc-card-title{
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  display: inline-block;
}

.msc-submit-grid .msc-stat-label{
  font-weight: 600;
  font-size: 15px;
  color: var(--global-palette3);
}

.msc-submit-grid .msc-stat-value{
  font-weight: 700;
  font-size: 16px;
  color: var(--global-palette4);
}

/* Fallback: Summary rows when NOT in submit grid (e.g. other contexts) */
.msc-dl > div{
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--global-palette7);
    align-items: center;
}

.msc-dl dt{
  margin: 0;
  line-height: 1.2;
}

.msc-dl dd{
  margin: 0;
  line-height: 1.2;
}

dl.msc-dl {
  margin-block-end: 0em;
}

/* Slightly reduce the big gap between title and first row */
.msc-show-title{
  margin-bottom: 10px;
      font-size: 26px;
}

/* ===== Your submission: 2-column clean rows (fallback) ===== */
.msc-stats{
  display: grid;
  gap: 0;
  margin-top: 6px;
  border-top: 1px solid var(--global-palette7);
}

.msc-stat{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;

  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--global-palette7);
  border-radius: 0;
  background: transparent;
}

.msc-stat:last-child{
  border-bottom: 0;
}
h4.msc-card-title {
    font-size: 22px;
}
.msc-stat-label{
  font-weight: 800;
  color: var(--global-palette3);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: none;
}

.msc-stat-value{
  font-weight: 900;
  font-size: 22px;
  color: var(--global-palette4);
  white-space: nowrap;
}

/* Optional: make Remaining stand out subtly without changing button styles */
.msc-stat--highlight{
      background:  color-mix(in srgb, #952a80 6%, #fff);
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 10px;
  border-bottom: 0;
}

/* Tag-style number in Remaining so it pops out */
.msc-stat--highlight .msc-stat-value {
  display: inline-block;
  background: color-mix(in srgb, #952a80 12%, #fff);
  color: #872573;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
}

/* wp-admin only */
.acf-field[data-key="field_boutique_entry_pieces_entered"] { display:none !important; }

/* ===========================
   Responsive fixes (Tablet + Mobile)
   Add to bottom of member-shows.css
   =========================== */

/* General spacing tweaks */
@media (max-width: 1024px) {
  .member-shows-wrapper{
    padding: 16px;
  }

  /* Member show card layout: stack image over content */
  .msc-card{
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .msc-image{
    max-width: 420px;
  }

  .msc-image img{
    width: 100%;
    height: auto;
  }

  .msc-title{
    font-size: 30px;
    line-height: 1.1;
  }

  .msc-subtitle{
    font-size: 18px;
  }

  .msc-dates{
    font-size: 18px;
  }

  /* Info rows: stop forcing wide label column */
  .msc-info-item{
    align-items: flex-start;
  }

  .msc-info-item h5{
    width: auto;
    min-width: 0;
    margin: 0 !important;
  }
}

/* Phone */
@media (max-width: 768px) {
  /* Titles */
  .msc-section-title--divider{
    padding-top: 12px;
    margin-top: 12px;
  }

  .msc-title{
    font-size: 26px;
  }

  .msc-show-title{
    font-size: 22px;
  }

  /* Submit grid: stack boxes on mobile */
  .msc-submit-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .msc-submit-grid .msc-dl > div{
    grid-template-columns: 1fr;
    padding: 8px 0;
  }

  /* Summary definition list: stack label/value */
  .msc-dl > div{
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .msc-dl dt{
    font-weight: 800;
  }

  /* Your submission stats */
  .msc-stat{
    grid-template-columns: 1fr auto;
    padding: 10px 0;
  }

  .msc-stat-value{
    font-size: 18px;
  }

  /* Make the poster image not dominate */
  .msc-image{
    max-width: 100%;
  }

  /* Artist submissions table: allow horizontal scroll */
  .artist-submissions-table-wrapper{
    max-width: 100%;
    margin: 24px auto;
    border-radius: 14px;
  }

  .artist-submissions-table{
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .artist-submissions-table thead th{
    font-size: 12px;
    padding: 12px 12px;
  }

  .artist-submissions-table td{
    padding: 12px 12px;
  }

  /* Keep thumbnail + title readable */
  .artist-submissions-table .artwork-thumb{
    width: 40px;
    height: 40px;
  }

  /* Buttons you injected: full width feels better on mobile */
  .msc-actions{
    gap: 10px;
  }
  .msc-btn{
    width: 100%;
    justify-content: space-between;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .msc-card{
    padding: 14px;
  }

  .msc-title{
    font-size: 24px;
  }

  .msc-subtitle{
    font-size: 16px;
  }

  .artist-submissions-table thead th{
    font-size: 11px;
  }
}
/* Buttons uppercase globally for this feature */
.msc-btn,
.msc-btn span {
  text-transform: uppercase;
}
