@keyframes gwp_pfade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-moz-keyframes gwp_pfade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-webkit-keyframes gwp_pfade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-o-keyframes gwp_pfade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-ms-keyframes gwp_pfade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes aptop {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.gwp_popup {
  display: none;
  position: fixed;
  /* Stay in place */
  z-index: 10000;
  /* Sit on top */
  /*padding-top: 10px;*/
  /* Location of the box */
  /*padding-bottom: 10px;*/
  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  /*overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */

  animation: gwp_pfade ease 5s;
  -webkit-animation: gwp_pfade 0.5s;
  -moz-animation: gwp_pfade 0.5s;
  -o-animation: gwp_pfade 0.5s;
  -ms-animation: gwp_pfade 0.5s;


  /*animation: gwp_aptop 5s;
            -webkit-animation: gwp_aptop 5s;
            -moz-animation: gwp_aptop 5s;
            -o-animation: gwp_aptop 5s;
            -ms-animation: gwp_aptop 5s;*/
}

.gwp_popupsearch {
  display: none;
  position: fixed;
  /* Stay in place */
  z-index: 28000;
  /* Sit on top */
  /*padding-top: 10px;*/
  /* Location of the box */
  /*padding-bottom: 10px;*/
  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  color: #ffffff;
  /*overflow: auto; /* Enable scroll if needed */
  background-color: transparent;
  /* Black w/ opacity */
  background-color: rgba(23, 121, 186, 0.4);
  background-color: rgba(255, 255, 255, 0.4);
}

.gwp_warning_popup {
  display: none;
  position: fixed;
  /* Stay in place */
  z-index: 100000;
  /* Sit on top */
  /*padding-top: 10px;*/
  /* Location of the box */
  /*padding-bottom: 10px;*/
  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  /*overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
  background-color: #e74c3c;
}

/*.button {
          font-size: 1em;
          padding: 10px;
          color: #fff;
          border: 2px solid #06D85F;
          border-radius: 20px/50px;
          text-decoration: none;
          cursor: pointer;
          transition: all 0.3s ease-out;
        }
        .button:hover {
          background: #06D85F;
        }*/

.gwp_cpopupbody {
  display: flex;
  flex-flow: column;
  height: calc(100%);
  background: #ffffff;
  /*position: relative;*/
  transition: all 5s ease-in-out;
}

.gwp_cpopupbody .gwp_cpopupheader {
  flex: 0 1 auto;
}

.gwp_cpopupbody .gwp_cpopupcontent {
  flex: 1 1 auto;
}

.gwp_cpopupbody .gwp_cpopupbuttons {
  /*flex: 0 1 40px;*/
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

.gwp_popupbody {
  display: flex;
  flex-flow: column;
  height: calc(100% - 20px);
  margin: 5px;
  border-radius: 5px;
  padding: 10px 20px 0px 20px;
  background: #ffffff;
  /*position: relative;*/
  transition: all 5s ease-in-out;
}

/* .gwp_popup is position:fixed (viewport-relative), so WP core's own #wpadminbar (z-index 99999, far
   above this popup's 10000) sits on top of and clips the top of .gwp_popupbody whenever this popup is
   opened on a plain wp-admin page with the admin bar visible — confirmed live on the Rota popup, a
   pre-existing issue in this shared file, not specific to any one tool. WP core adds body.admin-bar
   whenever the bar renders, so offset only then; pages that hide the bar (framework/public pages) are
   unaffected. */
body.admin-bar .gwp_popupbody {
  margin-top: 50px;
  height: calc(100% - 65px);
}

.gwp_popupbody .gwp_popupheader {
  flex: 0 1 auto;
}

.gwp_popupbody .gwp_popupcontent {
  flex: 1 1 auto;
}

.gwp_popupbody .gwp_popupbuttons {
  flex: 0 1 40px;
}

.gwp_popupbodyd {
  flex-flow: column;
  display: flex;
  width: 300px;
  height: auto;
  min-height: 200px;
  border-radius: 5px;
  padding: 10px 20px 10px 20px;
  background: #ffffff;
  /*position: relative;*/
  transition: all 5s ease-in-out;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.gwp_popupbodyd .gwp_popupheader {
  flex: 0 1 auto;
}

.gwp_popupbodyd .gwp_popupcontent {
  flex: 1 1 auto;
}

.gwp_popupbodyd .gwp_popupbuttons {
  flex: 0 1 40px;
}

.gwp_popupbodyda {
  flex-flow: column;
  display: flex;
  width: 600px;
  height: 600px;
  border-radius: 5px;
  padding: 10px 20px 0px 20px;
  background: #ffffff;
  /*position: relative;*/
  transition: all 5s ease-in-out;
  text-align: left;
  position: absolute;
  top: 50%;
  margin-top: -300px;
  left: 50%;
  margin-left: -320px;
}

.gwp_popupbodyda .gwp_popupheader {
  flex: 0 1 auto;
}

.gwp_popupbodyda .gwp_popupcontent {
  flex: 1 1 auto;
}

.gwp_popupbodyda .gwp_popupbuttons {
  flex: 0 1 40px;
}

.gwp_popuprow {
  margin-bottom: 20px;
}

.gwp_popupbuttons {
  margin-top: 5px;
  margin-bottom: 0;
}

.gwp_cpopupbuttons {
  margin-top: 5px;
}

.gwp_search_popupbody {
  display: flex;
  flex-flow: column;
  height: 100%;

  /*margin: 70px; */
  padding: 20px 40px 0px 40px;
  /*background: transparent;*/
  background-color: rgb(0, 0, 0, 0.01);
  /*position: relative;*/
  transition: all 5s ease-in-out;
}

.gwp_search_popupbody .gwp_search_popupheader {
  flex: 0 1 auto;
}

.gwp_search_popupbody .gwp_search_popupcontent {
  flex: 1 1 auto;
}

.gwp_search_popupbody .gwp_search_popupbuttons {
  flex: 0 1 40px;
}

.gwp_search_popupbuttons {
  margin-top: 20px;
  margin-bottom: 40px;
}

.gwp_publishdetails {
  margin-top: 15px;
  padding: 12px 15px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}

.gwp_publishdetails b {
  color: #374151;
  font-weight: 600;
}

.gwp_search_popupheader>h2 {
  width: 80%;
  background-color: #efefef;
  color: #000000;
  font-weight: bold;
  text-align: center;
  text-shadow: #000 0px 0px 1px, #000 0px 0px 1px, #000 0px 0px 1px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  -webkit-font-smoothing: antialiased
}

.gwp_search_popupcontent {
  overflow-x: auto;
  max-height: 95%;
  text-align: center;
}

.gwp_popupcontent {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 95%;
  max-width: 100%;
  position: relative;
}

/* Colour-picker fields inside popups (e.g. #gwp_sch_colortheme in the
   schedule popup) need their own positioned ancestor for .select_cp_dropdown
   to anchor to — without it the dropdown floats off to whatever unrelated
   ancestor happens to be positioned instead of opening under the swatch. */
.gwp_colpic {
  position: relative;
  z-index: 1;
}

.gwp_cpopupcontent {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 100%;
  max-width: 100%;
  position: relative;
}

.gwp_totop {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 50px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #555;
  color: white;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
}

.gwp_totop:hover {
  background-color: #000000;
}

.gwp_emediatitle {
  display: inline-block;
}

.gwp_emediaicon {
  font-size: 20px;
  display: inline-block;
  margin-left: 5px;
  cursor: pointer;
}

.gwp_emediaicon:hover {
  color: var(--accent1);
}

.gwp_emediaid {
  display: none;
}

.gwp_emediagtag {
  width: 420px;
}

.gwp_shareformlines>* {
  margin-top: 20px;
}

.gwp_popuptitle {
  font-size: 25px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.gwp_popuptitlealt {
  display: inline-block;
  max-width: 90%;
  font-size: 25px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  vertical-align: middle;
}

.gwp_cp {
  cursor: pointer;
}

/* ===========================================
           CLOSE X BUTTON - Modern circular style
           =========================================== */
.gwp_cpopupbody .gwp_close {
  position: absolute;
  top: 15px;
  right: 30px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-size: 24px;
  font-weight: 300;
  text-decoration: none;
  color: #6b7280;
  z-index: 1;
}

.gwp_cpopupbody .gwp_close:hover {
  background: #fef2f2;
  color: #ef4444;
  transform: rotate(90deg);
  transform-origin: center center;
}

.gwp_popupbody .gwp_close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-size: 24px;
  font-weight: 300;
  text-decoration: none;
  color: #6b7280;
  line-height: 1;
}

.gwp_popupbody .gwp_close:hover {
  background: #fef2f2;
  color: #ef4444;
  transform: rotate(90deg);
  transform-origin: center center;
}

.gwp_search_popupbody .gwp_close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-size: 24px;
  font-weight: 300;
  text-decoration: none;
  color: #6b7280;
}

.gwp_search_popupbody .gwp_close:hover {
  background: #fef2f2;
  color: #ef4444;
  transform: rotate(90deg);
  transform-origin: center center;
}

.gwp_popupcontent::-webkit-scrollbar-track,
.gwp_pb::-webkit-scrollbar-track {
  margin-top: 2px;
  margin-bottom: 2px;
  /*border: 1px solid #000;*/
  padding: 2px 0;
  background-color: transparent;
  /*background-color: #404040;*/
  /*border-radius: 10px;*/
  border-radius: 2px;
}

.gwp_popupcontent::-webkit-scrollbar,
.gwp_pb::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  cursor: grab;
}

.gwp_popupcontent::-webkit-scrollbar-thumb,
.gwp_pb::-webkit-scrollbar-thumb {
  border-radius: 4px;
  /*box-shadow: inset 0 0 6px rgba(0,0,0,.3);*/
  /*background-color: #ffffff;*/
  background-color: #404040;
  /*background: rgb(64, 64, 64, 0.4);*/
  border: 1px solid #000;
  cursor: grab;
}

.gwp_popupcontent::-webkit-scrollbar-button,
.gwp_pb::-webkit-scrollbar-button {
  display: none;
  margin: 5px;
  border-radius: 10px;
  background-color: #404040;
  color: #ffffff;
}







.gwp_warning_popupbody {
  /*margin: 70px;*/
  padding: 40px;
  background: #e74c3c;
  /*border-radius: 5px;*/
  /*width: 90%;*/
  height: 100%;
  position: relative;
  transition: all 5s ease-in-out;
}

.popupbody h2 {
  margin-top: 0;
  color: #333;
  font-family: Tahoma, Arial, sans-serif;
}

.gwp_close {
  cursor: pointer;
}

.gwp_dclose {
  cursor: pointer;
  float: right;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-size: 20px;
  font-weight: 300;
  text-decoration: none;
  color: #6b7280;
}

.gwp_dclose:hover {
  background: #fef2f2;
  color: #ef4444;
  transform: rotate(90deg);
  transform-origin: center center;
}

.gwp_warning_popupbody .gwp_close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.gwp_filterbody .gwp_close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.gwp_warning_popupcontent {
  text-align: center;
}

.gwp_deletetext {
  display: block;
  color: #ffffff;
  margin: 20px;
  font-size: 30px
}

/* ===========================================
   TEXT TABS - tab bar on own row
   Parent: .gwp_popup_tabs
   =========================================== */
.gwp_popup_tabs {
  display: block;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 12px;
  padding: 0;
}

.gwp_popup_tab {
  display: inline-block;
  padding: 8px 16px;
  margin-bottom: -2px;
  background-color: transparent;
  color: #6b7280;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.gwp_popup_tab:hover {
  color: #374151;
  border-bottom-color: #d1d5db;
}

.gwp_popup_tabselected {
  display: inline-block;
  padding: 8px 16px;
  margin-bottom: -2px;
  background-color: transparent;
  color: var(--accent1, #0073aa);
  border: none;
  border-bottom: 2px solid var(--accent1, #0073aa);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ===========================================
           ICON TABS - Pill button tabs
           Parent: .gwp_popup_tabsalt (inline with title)
           =========================================== */
.gwp_popup_tabsalt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  padding: 2px 2px 2px 10px;
  margin-left: 10px;
  vertical-align: middle;
}

.gwp_popup_taba,
.gwp_popup_tabaselected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 32px;
  padding: 0 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  border-radius: 6px;
  transition: all 0.15s ease;
  color: #64748b;
  background: transparent;
  border: none;
  white-space: nowrap;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.gwp_popup_taba:hover {
  background: rgba(255, 255, 255, 0.6);
  color: #334155;
}

.gwp_popup_tabaselected {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.gwp_popup_tabaselected:hover {
  background: #fff;
  color: #1e293b;
}

.gwp_popup_taba i,
.gwp_popup_tabaselected i {
  font-size: 16px;
  line-height: 1;
  vertical-align: middle;
}

/* Action toolbar buttons inside tab bar */
.gwp_popup_tabsalt .gwp_db_tbuttons,
.gwp_popup_tabsalt .gwp_db_fbuttons {
  align-items: center;
  align-self: stretch;
  overflow: hidden;
  gap: 4px;
  padding: 0 8px 0 6px;
  margin-left: 4px;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  border-radius: 0;
}

.gwp_popup_tabsalt .gwp_db_tbuttons::before,
.gwp_popup_tabsalt .gwp_db_fbuttons::before {
  display: none;
}

/* ===========================================
   DBTABS POPUP TYPE — Modern redesign
   Desktop Row 1: Title  ×
   Desktop Row 2: [Underline tabs][action icons]  flush together
   Mobile Row 1:  Title  [‹ icon Label ›]  ×
   Mobile Row 2:  action icons (tabs hidden)
   =========================================== */


.gwp_popupheader_dbtabs {
  padding-bottom: 0;
  position: relative;
  z-index: 10;
  overflow: visible;
}

/* ── Single row: Title + Actions + Tabs + (mobile nav) ── */
.gwp_dbtabs_titlerow {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 16px;
  padding-right: 92px;
  /* .gwp_dbtabs_topright (the settings/share/close circle buttons) is absolutely positioned,
     so it never contributes to this row's own flex-content height — without this, a short
     title can leave the divider line above the buttons' bottom edge instead of below it.
     36px matches the buttons' own height (top:5px + 36px tall), so the line sits exactly
     5px below them, the same gap the buttons have above them from the popup's top edge. */
  min-height: 36px;
}

.gwp_dbtabs_title {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 30px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  line-height: 1;
  padding: 4px 14px 4px 8px;
  flex-shrink: 0;
}

/* select_input inside the title inherits min-width:320px — override it */
.gwp_dbtabs_title .select_input {
  min-width: 0;
  max-width: 100%;
  border-bottom: none;
}

.gwp_dbtabs_title:hover { color: #374151; }

/* Mobile tab dropdown navigator — hidden on desktop */
.gwp_dbtabs_mobilenav {
  display: none;
}

/* Override gwp_lib_type_current sizing for compact title row */
.gwp_dbtabs_mobilenav .gwp_lib_type_current {
  min-width: 130px;
  max-width: 200px;
  padding: 4px 4px;
  font-size: 12px;
}

.gwp_dbtabs_mobilenav .gwp_dbtabs_nav_title {
  flex: 1;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  padding: 0 2px;
}

.gwp_dbtabs_mobilenav .gwp_dbtabs_nav_title i { font-size: 15px; line-height: 1; }
.gwp_dbtabs_mobilenav .gwp_dbtabs_nav_label { overflow: hidden; text-overflow: ellipsis; }

/* Generalized carousel (Event/Schedule/tabs/tabsalt with >3 tabs) sits on
   its own row rather than sharing a row with the title like dbtabs does,
   so it should span the full popup width instead of the compact box. */
.gwp_has_mobilenav .gwp_dbtabs_mobilenav {
  width: 100%;
  margin-bottom: 10px;
}

.gwp_has_mobilenav .gwp_dbtabs_mobilenav .gwp_lib_type_current {
  min-width: 0;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.gwp_has_mobilenav .gwp_dbtabs_mobilenav .gwp_lib_type_list {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  /* The generic mobile rule for this shared component (v2_shell.css) sets
     position:fixed;top:64px — correct for Library's own top-of-page nav bar,
     which really does sit 64px down, but wrong for a dbtabs popup, where the
     toggle can be anywhere on screen: the fixed list renders almost directly
     on top of its own toggle row instead of below it, so a second tap meant
     to close it hits a dropdown item instead (confirmed live, same overlap
     on the real Register/Rota popups too, not something new here — nobody
     had tapped it closed on a real small screen before). .gwp_dbtabs_mobilenav
     is already position:relative, so position it relative to that instead
     of the viewport. */
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
}

/* Section-switcher icon tabs inside dbtabs header — pill/button style matching schedule/activity/calendar */
.gwp_popupheader_dbtabs .gwp_popup_tabsalt {
  display: flex;
  align-items: center;
  gap: 2px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.gwp_popupheader_dbtabs .gwp_popup_taba,
.gwp_popupheader_dbtabs .gwp_popup_tabaselected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  border: 1px solid transparent;
  font-size: 14px;
  margin-bottom: 0;
  color: #374151;
}

.gwp_popupheader_dbtabs .gwp_popup_taba:hover {
  color: #111827;
  background: #f3f4f6;
}

.gwp_popupheader_dbtabs .gwp_popup_tabaselected {
  color: #111827;
  background: #f8f9fa;
  border: 1px solid var(--accent1, #2563eb);
  font-weight: 500;
}

.gwp_popupheader_dbtabs .gwp_popup_taba i,
.gwp_popupheader_dbtabs .gwp_popup_tabaselected i {
  font-size: 17px;
  line-height: 1;
}

/* Numbered tabs (gwp_popup_tab) inside a dbtabs titlerow — pill/button style */
.gwp_dbtabs_titlerow .gwp_popup_tabs {
  border-bottom: none;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.gwp_dbtabs_titlerow .gwp_popup_tab,
.gwp_dbtabs_titlerow .gwp_popup_tabselected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  border: 1px solid transparent;
  font-size: 14px;
  margin-bottom: 0;
}

.gwp_dbtabs_titlerow .gwp_popup_tab { color: #374151; }
.gwp_dbtabs_titlerow .gwp_popup_tab:hover { color: #111827; background: #f3f4f6; }
.gwp_dbtabs_titlerow .gwp_popup_tabselected {
  color: #111827;
  background: #f8f9fa;
  border: 1px solid var(--accent1, #2563eb);
  font-weight: 600;
}

.gwp_dbtab_label {
  font-size: 12px;
  font-weight: 500;
  margin-left: 5px;
  letter-spacing: 0.01em;
}

/* Top-right group: circle buttons + close, absolute top-right */
.gwp_dbtabs_topright {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 1;
}

/* View/action button directly in topright — matches original circle style */
.gwp_dbtabs_topright .gwp_evt_topbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.gwp_dbtabs_topright .gwp_evt_topbtn:hover {
  background: #eff6ff;
  color: var(--accent1, #0073aa);
}

/* All topright circles — exact same base as gwp_popupbody .gwp_close */
.gwp_dbtabs_topright .gwp_db_circlebtn,
.gwp_close_dbtabs {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  min-height: 36px;
  border: 0; /* written for <div>/<a>, which have no native border; a real <button> does — same class
                of gap already fixed for .gwp_db_tbutton above */
  border-radius: 50% !important;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  position: static !important;
  top: auto !important;
  right: auto !important;
  flex-shrink: 0;
  box-sizing: content-box;
  padding: 0 !important;
}

/* Close: red on hover, rotates like standard */
.gwp_close_dbtabs:hover {
  background: #fef2f2;
  color: #ef4444;
  transform: rotate(90deg);
  transform-origin: center center;
}

/* Share: green on hover */
.gwp_dbtabs_topright #gwp_dbshare:hover,
.gwp_dbtabs_topright #gwp_regshare:hover,
.gwp_dbtabs_topright .gwp_db_circlebtn:hover {
  background: #d1fae5;
  color: #059669;
}

.gwp_dbtabs_topright .gwp_db_circlebtn i { font-size: 18px; line-height: 1; }

/* Table toolbar — exact match of gwp_rota_toolbar_icons, overrides output.css */
.gwp_db_tbuttons {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 4px 8px !important;
  background: #f3f4f6 !important;
  border-radius: 8px !important;
  margin-bottom: 8px;
  margin-left: 0 !important;
  position: static !important;
  width: auto !important;
}

.gwp_db_tbuttons::before { display: none !important; }


.gwp_db_tbuttons .gwp_db_tbutton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 16px;
  color: #6b7280;
  cursor: pointer;
  border: 0; /* this rule was written for the original <div class="gwp_db_tbutton">, which has no native
                border to begin with; a real <button> (Tables' own convention) does, and needs this
                explicit reset or it keeps the browser's default 2px outset border — confirmed live */
  border-radius: 6px;
  transition: all 0.15s ease;
  background: transparent;
}

.gwp_db_tbuttons .gwp_db_tbutton:hover {
  background: #fff;
  color: var(--accent1, #2a9d90);
}

.gwp_db_tbuttons .gwp_db_tbutton i { font-size: 16px; line-height: 1; }

/* Action toolbar — in title row, after tabs, left of close button */
.gwp_dbtabs_actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
  border-left: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.gwp_dbtabs_actions .gwp_db_tbuttons,
.gwp_dbtabs_actions .gwp_db_fbuttons {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  border-left: none;
}

.gwp_dbtabs_actions .gwp_db_tbuttons::before,
.gwp_dbtabs_actions .gwp_db_fbuttons::before {
  display: none;
}

.gwp_dbtabs_actions .gwp_db_tbutton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0; /* same gap as .gwp_db_tbuttons .gwp_db_tbutton above — written for a <div>, no native
                border to reset; kept consistent in case a real <button> reuses this slot too */
  border-radius: 6px;
  cursor: pointer;
  color: #6b7280;
  transition: background 0.12s, color 0.12s;
}

.gwp_dbtabs_actions .gwp_db_tbutton:hover {
  background: #f3f4f6;
  color: #111827;
}

.gwp_dbtabs_actions .gwp_db_tbutton i {
  font-size: 19px;
  line-height: 1;
}

/* ── dbtabs Mobile layout (≤768px) ── */
@media (max-width: 768px) {

  /* Mobile nav shows in title row */
  .gwp_dbtabs_mobilenav {
    display: block;
    flex-shrink: 0;
  }

  /* Hide tab pills on mobile — whenever the carousel replacement is
     present (dbtabs always has one; tabsalt/"tabs" popups only get one
     once tabs.length > 3, see gwp_has_mobilenav in popupfuncs.js). */
  .gwp_popupheader_dbtabs .gwp_popup_tabsalt,
  .gwp_has_mobilenav .gwp_popup_tabsalt,
  .gwp_has_mobilenav .gwp_popup_tabs {
    display: none !important;
  }

  /* Hide actions bar on mobile */
  .gwp_dbtabs_actions {
    display: none !important;
  }

  /* Topright: compact position on mobile */
  .gwp_dbtabs_topright {
    top: 13px;
    right: 14px;
  }

  .gwp_dbtabs_topright .gwp_db_circlebtn,
  .gwp_dbtabs_topright .gwp_evt_topbtn,
  .gwp_close_dbtabs {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px;
    min-height: 30px;
    font-size: 15px;
  }

  .gwp_dbtabs_topright .gwp_db_circlebtn i,
  .gwp_dbtabs_topright .gwp_evt_topbtn i { font-size: 15px; }

  /* Form buttons: icon-only on mobile */
  .gwp_form_btns_wrap .gwp_form_edit_toggle {
    font-size: 0;
    padding: 8px;
    min-width: 36px;
    justify-content: center;
    gap: 0;
  }

  .gwp_form_btns_wrap .gwp_form_edit_toggle i { font-size: 16px; }

  /* Title: spaced from top, border removed (mobilenav sits below) */
  .gwp_dbtabs_titlerow {
    border-bottom: none;
    padding-top: 13px;
    padding-bottom: 6px;
    min-width: 0;
    flex-wrap: wrap;
  }

  .gwp_dbtabs_mobilenav {
    order: -1;
  }

  .gwp_dbtabs_title {
    padding-right: 80px; /* clear the topright buttons */
    font-size: 45px;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
  }

  .gwp_dbtabs_title .select_input {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    display: block;
    border-bottom: none;
  }
}

.gwp_popup_tabcontent {
  display: none;
}

.gwp_popupbody:has(.gwp_popupheader_dbtabs) .gwp_popup_tabcontent,
.gwp_popupbody:has(.gwp_popupheader_dbtabs) .gwp_popup_tabcontentselected {
  padding-top: 14px;
}

.gwp_popup_tabcontentselected {
  display: block;
  /*max-height:450px;
            overflow: auto;*/
}

.gwp_twocolumns {
  margin-top: 10px;
  margin-bottom: 10px;
  margin-right: 10px;
  display: inline-block;
  width: 45%;
  vertical-align: top;
}

.gwp_warningbutton {
  color: #ffffff;
  background-color: #c0392b;
  margin: 2px;
  cursor: pointer;
  border: 1px solid #c0392b;
  border-radius: 2px;
  padding: 5px 10px;
  font-size: 20px;
  font-family: 'Lato', sans-serif;
}

.gwp_warningbutton:hover {
  background-color: #A5281B;
  color: #ffffff;
}

.gwp_warningtitle {
  color: #ffffff;
}

.gwp_popuptitlehr {
  background-color: var(--accent1);
  border: 1px solid var(--accent1);
  max-width: 100% !important;
}

.gwp_warning_popuptitlehr {
  background-color: #ffffff;
  border: 1px solid #ffffff;
}

.gwp_infoicon {
  position: relative;
  display: inline-block;
  font-size: 18px;
  cursor: pointer;
  margin-left: 10px;
  vertical-align: middle;
}

.gwp_infoicon>* {
  display: inline-block;
  vertical-align: middle;
}



.gwp_infoicon .gwp_infotext {
  display: none;
  width: 90vw;
  color: black;
  text-align: left;
  border-radius: 6px;
  padding-left: 5px;
  /*position: absolute;*/
  z-index: 1;
  left: 20px;
  bottom: 0px;
  margin-left: 0px;
  background-color: white;
  opacity: 0;
  transition: opacity 1s;
  font-size: 14px;
  vertical-align: middle;
  line-height: 18px;
}

.gwp_infoicon:hover .gwp_infotext {
  display: inline-block;
  opacity: 1;
}

.gwp_vsch_sactivities {
  display: none;
  margin: 10px 5px 10px 5px;
  border-radius: 4px;
  padding: 4px;
  width: 98%;
}

.gwp_activity-item a {
  /* color: #65C6BB; */
  color: var(--accent1);
  text-decoration: none;
}

.gwp_vsch_description {
  display: block;
  background-color: #efefef;
  color: #000000;
  padding: 10px;
  margin: 10px 5px 10px 5px;
  border-radius: 4px;
  width: 98%;
}

.gwp_vevt_tbar>*,
.gwp_vsch_tbar>* {
  max-width: 90%;
}

.gwp_vevt_description {
  display: block;
  background-color: #efefef;
  color: #000000;
  padding: 10px;
  margin: 10px 5px 10px 5px;
  border-radius: 4px;
  width: 98%;
}

.gwp_vevt_descriptor {
  margin-left: 5px;
}

.gwp_vevt_roomd {
  display: inline-block;
  margin-top: 8px;
  margin-left: 2px;
  padding: 2px 5px 2px 5px;
  padding-right: 5px;
  margin-right: 2px;
  border: solid 1px #ffffff;
  border-radius: 5px;
  background-color: #efefef;
  color: #676767;
  cursor: pointer;
  line-height: 20px;
  font-size: 16px;
}

#gwp_vevt_location {
  background-color: #efefef;
}

.gwp_vevt_schedules {
  display: block;
  padding: 10px;
  margin: 10px 5px 10px 5px;
  border-radius: 4px;
  border: 2px solid #D3D3D3;
  width: 98%;
}

.gwp_vevt_schedule {
  display: inline-block;
  margin-right: 10px;
}

.gwp_tabletcontent {
  display: none;
  margin: 10px 5px 10px 5px;
  border-radius: 4px;
  padding: 4px;
  border: 2px solid #efefef;
  width: 98%;
}

.gwp_tagscontent {
  display: block;
}

.gwp_popuptags {
  display: inline-block;
  margin-top: 8px;
  margin-left: 2px;
  padding: 2px 5px 2px 5px;
  padding-right: 5px;
  margin-right: 2px;
  border: solid 1px #ffffff;
  border-radius: 5px;
  background-color: #efefef;
  color: #676767;
  cursor: pointer;
  line-height: 20px;
  font-size: 16px;
}

#gwp_vevttitle {
  display: inline-block;
  vertical-align: middle;
}

#gwp_vevtsubtitle {
  font-size: 25px;
  color: #000000;
  vertical-align: middle;
  margin-bottom: 7px;
  line-height: 44px;
}

.gwp_vevtcontent {
  width: 100%;
  /*max-height: 425px;*/
  overflow: auto;
}

#gwp_vevt_publishdetails {
  display: inline-block;
  vertical-align: middle;
  margin-top: 0px;
}

#gwp_viewevent_button {
  display: inline-block;
  vertical-align: middle;
}

.gwp_popuperror {
  margin-top: 20px;
  color: red;
  font-style: italic;
}

.select_singledropdown {
  min-height: 35px;
}

/*External cal urls*/
.gwp_ecal {
  background-color: #efefef;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 10px;
}

.gwp_calname {
  margin-left: 5px;
  cursor: pointer;
}

.gwp_calname>h4 {
  margin-top: 0px;
  margin-bottom: 5px;
}

.gwp_calurl {
  margin-left: 10px;
}

.gwp_caldelete {
  margin-left: 10px;
}

.gwp_ecalevent {
  margin-bottom: 10px;
  padding: 10px;
  background-color: #efefef;
  border-radius: 4px;
}

.gwp_ecebutton {
  display: inline-block;
  margin-left: 10px;
}

.gwp_ecaltitle {
  display: inline-block;
  margin-left: 10px;
}

.gwp_ecebutton>button {
  display: inline-block;
  color: var(--accent1);
  border: solid 1px var(--accent1);
  border-radius: 4px;
  cursor: pointer;
}

.gwp_ecebutton>button:hover {
  display: inline-block;
  background-color: var(--accent1);
  color: #ffffff;
  cursor: pointer;
}

/* ===========================================
   SAVE BUTTON - Primary action
   =========================================== */
.gwp_save_button {
  background: var(--accent1, #0073aa);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  margin-right: 10px;
  text-decoration: none;
  display: inline-block;
}

.gwp_save_button:hover {
  filter: brightness(0.9);
}

/* ===========================================
   CLOSE BUTTON - Secondary action
   =========================================== */
.gwp_close_button {
  display: inline-block;
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  margin-right: 10px;
}

.gwp_close_button:hover {
  background: #eee;
}

/* ===========================================
   DELETE BUTTON - Destructive action
   =========================================== */
.gwp_delete_button {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  margin-right: 10px;
}

.gwp_delete_button:hover {
  filter: brightness(0.9);
}

/* ===========================================
   POST STATUS - Inline status indicator
   =========================================== */
.gwp_poststatus {
  display: inline-block;
  margin-right: 10px;
}

.gwp_poststatus>.select_singleframe {
  min-width: 100px;
}

/* ===========================================
   ATTACHMENTS - File attachment display
   =========================================== */
.gwp_attachment {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 4px 8px;
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: #374151;
  font-size: 12px;
  transition: all 0.15s;
}

.gwp_attachment:hover {
  background-color: #e5e7eb;
}

.gwp_attachment>a,
.gwp_attachment>a:hover,
.gwp_attachment>a:visited,
.gwp_attachment>a:active {
  color: inherit;
  text-decoration: none;
}

.gwp_attachmenticon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  color: var(--accent1, #0073aa);
}

.gwp_attchmentname,
.gwp_attachmentname {
  display: inline-block;
  vertical-align: middle;
}

/* Delete button inside attachment - styled like close button */
.gwp_rattachment {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  width: 18px;
  height: 18px;
  line-height: 16px;
  text-align: center;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.gwp_rattachment:hover {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #ef4444;
}

/* ===========================================
   LOCATION DATA - Address fields
   =========================================== */
.gwp_locationdata {
  display: block;
}

.gwp_addressfield {
  display: block;
  margin-bottom: 8px;
}

.gwp_locationdata .gwp_save_button {
  margin-top: 10px;
  margin-right: 8px;
  margin-left: 0;
}

/* ===========================================
   TAXONOMY BOXES - Series, Topic, Category, etc.
   =========================================== */
.gwp_seriesbox,
.gwp_topicbox,
.gwp_categoriesbox,
.gwp_projectsbox {
  margin-bottom: 12px;
}

.gwp_roombox,
.gwp_groupbox,
.gwp_addressfields,
.gwp_eventdetails {
  margin-bottom: 18px;
}

/* Tighten vertical rhythm in the Add Event popup on mobile — less
   scrolling. Scoped to #gwp_addevent so other popups reusing these
   classes (schedule, activities, etc.) keep their normal spacing. */
@media (max-width: 700px) {
  #gwp_addevent .gwp_roombox,
  #gwp_addevent .gwp_groupbox,
  #gwp_addevent .gwp_addressfields,
  #gwp_addevent .gwp_eventdetails {
    margin-bottom: 4px;
    margin-top: 4px;
  }
}

.gwp_taxonomy_input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gwp_taxonomy_input>.select_multiframe {
  flex: 1;
}

/* ===========================================
   SCHEDULE LIST TAB - Schedule selection & list
   =========================================== */
.gwp_schedulelist {
  margin-bottom: 12px;
}

.gwp_bottombuttons {
  margin-bottom: 15px;
}

.gwp_schedulelists {
  display: block;
  margin: 10px 0;
}

.gwp_schedule {
  min-height: 40px;
  background-color: #f3f4f6 !important;
  margin-bottom: 5px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  color: #374151;
  display: block;
}

.gwp_schedulerow {
  background-color: #ffffff;
  display: block;
  border-radius: 3px;
  padding: 10px;
  margin-top: 5px;
}

.gwp_schedulerow:last-child {
  border-bottom: none;
}

.gwp_schid {
  display: none;
}

.gwp_schtitle {
  display: inline-block;
  margin-top: 5px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-weight: 500;
  color: #374151;
}

.gwp_editschedule {
  float: right;
  margin-top: 8px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.gwp_editschedule .gwp_save_button {
  padding: 4px 10px;
  font-size: 12px;
  margin-left: 4px;
}

/* Popup row for date/time layout */
.gwp_popuprow {
  margin-bottom: 12px;
}

.gwp_popuprow>div {
  margin-right: 20px;
  margin-bottom: 8px;
  color: #374151;
  font-size: 13px;
}

.gwp_popuprow input[type="checkbox"] {
  vertical-align: middle;
  margin-left: 5px;
}

/* ===========================================
   ADD TAXONOMY - New item input
   =========================================== */
.gwp_add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.15s;
}

.gwp_add:hover {
  background: var(--accent1, #0073aa);
  border-color: var(--accent1, #0073aa);
  color: #fff;
}

.gwp_addtaxbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.gwp_newtaxinput {
  flex: 1;
}

.gwp_addtaxbutton {
  display: inline-block;
  background: var(--accent1, #0073aa);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.gwp_addtaxbutton:hover {
  filter: brightness(0.9);
}


/* ===========================================
   ICON TABS - Mobile layout
   =========================================== */
@media (max-width: 768px) {
  .gwp_popup_tabsalt {
    display: flex;
    width: fit-content;
    flex-wrap: wrap;
    overflow-x: visible;
    margin: 4px 0;
    margin-left: 0;
  }

  .gwp_popup_tabsalt .gwp_popup_taba,
  .gwp_popup_tabsalt .gwp_popup_tabaselected {
    padding: 6px 12px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .gwp_popup_tabsalt .gwp_popup_taba i,
  .gwp_popup_tabsalt .gwp_popup_tabaselected i {
    font-size: 16px;
  }

  /* Action button groups drop to a second row */
  .gwp_popup_tabsalt .gwp_db_tbuttons,
  .gwp_popup_tabsalt .gwp_db_fbuttons {
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
    padding: 3px 4px;
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    justify-content: flex-start;
    box-sizing: border-box;
  }

}

@media screen and (max-width: 700px) {
  .box {
    width: 70%;
  }

  .gwp_popupbody {
    padding: 5px 10px 5px 10px;
  }

  .gwp_popupbodyda {
    width: calc(100% - 20px);
    height: calc(100% - 10px);
    top: 0;
    margin-top: 0px;
    left: 0;
    margin-left: 0px;
    padding: 5px 10px 5px 10px;
  }

  .gwp_totop {
    right: 30px;
  }
}
/* Schedule Details tab (tab 51) field styling */
.gwp_taxonomy_section { padding: 8px 16px; }
.gwp_popup_label { display: block; font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 4px; letter-spacing: 0.3px; }
.gwp_sch_metagrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 16px; }
.gwp_sch_metarow { display: flex; flex-direction: column; gap: 4px; }
.gwp_sch_metarow label { font-size: 12px; font-weight: 600; color: #6b7280; }
#gwp_selectitem { z-index: 29000; }


/* Choose-one tile grid used by Add to library, Add documents, Templates and the page-builder element picker.
   (These classes had no CSS anywhere in the plugin.) */
.gwp_ipelements {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 10px;
    padding: 4px 0 10px;
}

.gwp_ipelement {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 92px;
    padding: 18px 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
}

.gwp_ipelement:hover {
    border-color: var(--accent1, #3498db);
    background: #f0f9ff;
}

.gwp_ipicon i {
    font-size: 28px;
    color: var(--accent1, #3498db);
}

.gwp_iptitle {
    font-size: 13px;
    line-height: 1.25;
    color: #374151;
}

@media (max-width: 480px) {
    .gwp_ipelements {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Event editor, Resources tab: grouped sections ──────────────────────────────────────────
   Hairline-separated sections (no boxed cards), a tinted icon chip, dropdown and Add side by side,
   secondary actions as soft pills, attached items as flat hairline rows. Scoped to this tab only. */
/* A readable column, left-aligned with the tabs above, with each section its own soft panel. */
#gwp_popup_tabcontent18 { max-width: 880px; margin: 0; padding-top: 6px; }
#gwp_popup_tabcontent18 .gwp_evt_res { background: var(--v3-soft, #f3f3f0); border-radius: 16px; padding: 18px 20px 20px; margin: 0 0 14px; }
#gwp_popup_tabcontent18 .gwp_evt_res:last-child { margin-bottom: 4px; }
#gwp_popup_tabcontent18 .gwp_evt_res_head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
#gwp_popup_tabcontent18 .gwp_evt_res_chip { flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 19px;
    background: color-mix(in srgb, var(--gwp_tool, #3d4bd0) 12%, transparent); color: var(--gwp_tool, #3d4bd0); }
#gwp_popup_tabcontent18 .gwp_evt_res_title { font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--v2-ink, #0f1115); }
#gwp_popup_tabcontent18 .gwp_evt_res_hint { font-size: 12.5px; line-height: 1.4; color: var(--v2-muted, #6b7280); margin-top: 2px; }
#gwp_popup_tabcontent18 .gwp_evt_res_empty { margin: 0 0 10px; font-size: 13px; color: var(--v2-muted, #6b7280); }

#gwp_popup_tabcontent18 .gwp_evt_res_add { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#gwp_popup_tabcontent18 .gwp_evt_res_add .gwp_evt_resourcelist { flex: 1 1 260px; min-width: 0; margin: 0; }
#gwp_popup_tabcontent18 .gwp_evt_res_add .select_singleframe { width: 100%; min-width: 0; }
#gwp_popup_tabcontent18 .gwp_evt_res_add .select_singledropdown { box-sizing: border-box; min-height: 38px; }
#gwp_popup_tabcontent18 .gwp_evt_res_more { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#gwp_popup_tabcontent18 .gwp_evt_res .gwp_save_button { display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; height: 38px; margin: 0; padding: 0 16px; border: 0; border-radius: 999px; line-height: 1;
    font-size: 13.5px; font-weight: 600; white-space: nowrap; background: var(--gwp_tool, #4259cd); color: #fff; }
#gwp_popup_tabcontent18 .gwp_evt_res .gwp_save_button i { margin: 0; }
#gwp_popup_tabcontent18 .gwp_evt_res .gwp_save_button.gwp_evt_res_btn2 { background: #fff; color: var(--v2-ink, #0f1115); box-shadow: none; }
#gwp_popup_tabcontent18 .gwp_evt_res .gwp_save_button.gwp_evt_res_btn2:hover { background: color-mix(in srgb, #fff 82%, #d9d9d3); }

#gwp_popup_tabcontent18 .gwp_evt_resourcelists { display: flex; flex-direction: column; gap: 0; margin-top: 12px; }
#gwp_popup_tabcontent18 .gwp_evt_resourcelists:empty { display: none; }
#gwp_popup_tabcontent18 .gwp_resource_row { display: flex; align-items: center; gap: 8px; background: transparent; border: 0; border-top: 1px solid rgba(15, 17, 21, .08); border-radius: 0; padding: 12px 2px; margin: 0; }
#gwp_popup_tabcontent18 .gwp_resource_row:hover { background: rgba(255, 255, 255, .6); }
#gwp_popup_tabcontent18 .gwp_resource_row .gwp_schid { display: none; }
#gwp_popup_tabcontent18 .gwp_resource_row .gwp_schtitle { flex: 1; min-width: 0; margin: 0; padding: 0; font-size: 14px; font-weight: 500; color: var(--v2-ink, #0f1115); overflow-wrap: anywhere; }
#gwp_popup_tabcontent18 .gwp_resource_row .gwp_editschedule { float: none; margin: 0; padding: 0; }
#gwp_popup_tabcontent18 .gwp_resource_row .gwp_save_button { height: 32px; padding: 0 14px; font-size: 12.5px; background: #fff; color: var(--v2-ink, #0f1115); }
#gwp_popup_tabcontent18 .gwp_resource_draft_badge { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #fff7ed; color: #9a5b0f; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
#gwp_popup_tabcontent18 .gwp_resource_publish_btn { flex: none; background: var(--gwp_tool, #4259cd) !important; color: #fff !important; }
#gwp_popup_tabcontent18 .gwp_resource_publish_btn:hover { background: var(--gwp_tool_hover, #334bc2) !important; }

#gwp_popup_tabcontent18 #gwp_evt_ticket_summary { margin-top: 12px; padding: 14px 16px; border: 0; border-radius: 14px; background: #fff; }
#gwp_popup_tabcontent18 .gwp_evt_res_empty { margin-bottom: 0; }
@media (max-width: 600px) { #gwp_popup_tabcontent18 .gwp_evt_res { padding: 16px; border-radius: 14px; } }
@media (max-width: 600px) {
    #gwp_popup_tabcontent18 .gwp_evt_res_add .gwp_save_button { width: 100%; justify-content: center; }
}

/* ── Event editor, Resources tab: Signup sheet field editor ───────────────────────────────── */
#gwp_popup_tabcontent18 .gwp_sf_row { background: #fff; border: 1px solid rgba(15, 17, 21, .08); border-radius: 14px; padding: 12px 14px; margin: 0 0 8px; }
#gwp_popup_tabcontent18 .gwp_sf_row_main { display: flex; align-items: center; gap: 10px; }
#gwp_popup_tabcontent18 .gwp_sf_label, #gwp_popup_tabcontent18 .gwp_sf_type, #gwp_popup_tabcontent18 .gwp_sf_options {
    box-sizing: border-box; height: 40px; padding: 0 14px; border: 1px solid var(--v2-line, #ececec); border-radius: 10px;
    background: var(--v3-soft, #f3f3f0); color: var(--v2-ink, #0f1115); font-size: 13.5px; font-family: 'Figtree', system-ui, sans-serif; transition: none; }
#gwp_popup_tabcontent18 .gwp_sf_label { flex: 2 1 160px; min-width: 0; }
#gwp_popup_tabcontent18 .gwp_sf_type { flex: 1 1 130px; min-width: 110px; }
#gwp_popup_tabcontent18 .gwp_sf_label:hover, #gwp_popup_tabcontent18 .gwp_sf_type:hover, #gwp_popup_tabcontent18 .gwp_sf_options:hover { background: #fff; border-color: #c9ccd8; }
#gwp_popup_tabcontent18 .gwp_sf_label:focus, #gwp_popup_tabcontent18 .gwp_sf_type:focus, #gwp_popup_tabcontent18 .gwp_sf_options:focus {
    outline: 0; background: #fff; border-color: var(--gwp_tool, #4259cd); box-shadow: 0 0 0 3px var(--gwp_tool_tint, rgba(66, 89, 205, .14)); }
#gwp_popup_tabcontent18 .gwp_sf_options { width: 100%; margin-top: 8px; }

#gwp_popup_tabcontent18 .gwp_sf_switch { display: flex; align-items: center; gap: 8px; flex: none; cursor: pointer; user-select: none; position: relative; }
#gwp_popup_tabcontent18 .gwp_sf_switch_label { font-size: 12px; font-weight: 600; color: var(--v2-muted, #6b7280); white-space: nowrap; }
#gwp_popup_tabcontent18 .gwp_sf_switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
#gwp_popup_tabcontent18 .gwp_sf_switch_track { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: #c9c9c3; transition: none; }
#gwp_popup_tabcontent18 .gwp_sf_switch_track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 17, 21, .25); }
#gwp_popup_tabcontent18 .gwp_sf_switch input:checked ~ .gwp_sf_switch_track { background: var(--gwp_tool, #4259cd); }
#gwp_popup_tabcontent18 .gwp_sf_switch input:checked ~ .gwp_sf_switch_track::after { left: 18px; }
#gwp_popup_tabcontent18 .gwp_sf_switch input:focus-visible ~ .gwp_sf_switch_track { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gwp_tool, #4259cd); }

#gwp_popup_tabcontent18 .gwp_sf_remove { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fee2e2; color: #dc2626; display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; }
#gwp_popup_tabcontent18 .gwp_sf_remove:hover { background: #fecaca; }

@media (max-width: 600px) {
    #gwp_popup_tabcontent18 .gwp_sf_row_main { flex-wrap: wrap; }
    #gwp_popup_tabcontent18 .gwp_sf_label { flex: 1 1 100%; }
    #gwp_popup_tabcontent18 .gwp_sf_type { flex: 1 1 calc(50% - 5px); }
}
