/* latin-ext */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/lato/v22/S6uyw4BMUTPHjxAwXjeu.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/lato/v22/S6uyw4BMUTPHjx4wXg.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: url(https://fonts.gstatic.com/s/lato/v22/S6u9w4BMUTPHh6UVSwaPGR_p.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: url(https://fonts.gstatic.com/s/lato/v22/S6u9w4BMUTPHh6UVSwiPGQ.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*////////////////////*/
/*///Font awesome////*/
/*//////////////////*/

/*i[class^="icon-"], [class*=" icon-"], i[class*="fa-"], span[class*="fa-"] {      
 font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
}*/

html,
body {
    overscroll-behavior-x: none;
}

/*////////////////////*/
/*///Standard css////*/
/*//////////////////*/
.gwp_inline {
    display: inline;
}

.gwp_inline-block {
    display: inline-block;
}

.gwp_ib {
    display: inline-block;
    min-width: 300px;
}

.gwp_float-right {
    float: right;
}

.gwp_float-left {
    float: left;
}

.gwp_block {
    display: block;
}


/* content holder*/
.gwp_container-wrap {
    margin-top: 0px !important;
    padding-top: 0px !important;
}

body {
    font-family: Lato;
}

/*body{
  height: 90%;
  overflow:hidden;
}*/

/*body::-webkit-scrollbar {
    width: 0px; 
    background: transparent;
}*/

/*@-moz-document url-prefix() {
    html,body{height:100%; overflow: hidden !important;}
}*/



/*#gwp_aframe{
  position: relative;
  overflow: hidden;
  min-height: 400px;
  max-height: 900px;
  display:block;
  overflow-y:auto;
}*/

#gwp_aframe {
    top: 0px;
    position: relative;
    display: block;
    padding-top: 20px;
    margin-right: 20px;
    margin-left: 20px;
    /*overflow-y:auto;
  overflow: hidden;*/
}

.gwp_accountframe {
    margin-top: 20px;
}

.gwp_mediaframe {
    margin-top: 20px;
}

.gwp_seriesframe {
    border-color: var(--accent1);
    margin-right: auto;
    margin-left: auto;
    display: block;
    width: 100%;
    min-height: 10px;
}

.gwp_cseriesframe {
    display: block;
    padding: 40px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 40px;
    margin-bottom: 20px;
    /*margin: 10px 10px 20px 10px;*/
    border-radius: 4px;
    text-align: center;
    background-color: #ffffff;
    width: 80%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    /*overflow-y:auto;
  overflow: hidden;*/
}

.gwp_seriesframetitle {
    text-align: center;
    padding-top: 40px;
}

.gwp_libitemstitle {
    text-align: center;
    padding-top: 40px;
}

/*.gwp_sseriesframe{
  top: 0px;
  display:block;
  padding: 20px;
  margin-right: auto; 
  margin-left: auto;
  margin: 10px 10px 20px 10px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  background-color: #ffffff;
}*/

.gwp_sseriesframe {
    /*box-shadow: 0 0 40px rgba(0,0,0,0.4);
  width: 15%;*/
    top: 0px;
    display: block;
    padding: 20px;
    margin-right: auto;
    margin-left: auto;
    margin: 10px 10px 20px 10px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    background-color: #ffffff;
}

.gwp_deletesitem {
    float: right;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
}

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

.gwp_blogframe {
    margin-right: auto;
    margin-left: auto;
    display: block;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
}

.gwp_content {
    margin: 10px 0px 20px 0px;
    height: auto;
    display: block;
    width: auto;
    font-size: 14px;
    border-radius: 8px;
    padding: 24px 20px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}

.gwp_bcontent {
    margin: 0 auto 20px;
    height: auto;
    display: block;
    width: min(90%, 780px);
    font-size: 15px;
    line-height: 1.6;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 32px 28px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.15s;
}

.gwp_bcontent:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

#gwp_popups {
    position: relative;
    overflow: hidden;
}

.gwp_topbuttonbar {
    background-color: #ffffff;
    top: 0px;
    position: -webkit-sticky;
    position: sticky;
    z-index: 9000;
    max-width: 100%;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.15s linear;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e8e8e8;
}

.gwp_topbuttonbar:after {
    display: none;
}

.gwp_topbuttonbar.active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gwp_basictopbuttonbar {
    top: 0px;
    position: -webkit-sticky;
    position: sticky;
    z-index: 9000;
    max-width: 100%;
    padding: 8px 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.15s linear;
    background: transparent;
    border: none;
    box-shadow: none;
}

.gwp_basictopbuttonbar:after {
    display: none;
}

.gwp_calbuttonbar {
    background-color: #ffffff;
    top: 0px;
    z-index: 1;
    height: 50px;
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 15px;
    padding-bottom: 50px;
    margin-bottom: 10px;
    vertical-align: middle;
    transition: all 0.15s linear;
}

.gwp_calbuttonbar:after {
    content: "";
    display: table;
    clear: both;
}

.gwp_clear {
    clear: both;
    display: block;
}

.gwp_addtopbuttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.gwp_navigation {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    color: #444444;
}

/* Holiday year tabs are appended to #gwp_navigation by JS.
   Position them absolutely so they drop below the sticky nav bar
   rather than expanding it (which looks wrong with gwp_topbuttonbar's
   solid white background). gwp_topbuttonbar is the containing block
   (position: sticky is non-static). */
#gwp_hyeartabs {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 8999;
}


.gwp_gbuttons {
    display: inline-block;
    padding-top: 0px;
    font-size: 18px;
    vertical-align: middle;
}

#gwp_appchooser {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.gwp_fasearch {
    margin-left: 5px;
}

.gwp_search {
    display: inline-block;
    padding: 5px;
    width: 300px;
    background-color: #ffffff;
    border: solid 1px var(--accent1);
    border-radius: 4px;
    margin-top: 5px;
    margin-bottom: 0px;
    text-overflow: ellipsis;
    vertical-align: middle;
    overflow: hidden;
    white-space: nowrap;
}

.gwp_msheader {
    display: inline-block;
    padding: 5px 20px 5px 20px;
    width: 80%;
    background-color: #efefef;
    background-color: rgba(0, 0, 0, 0.2);
    /*border: solid 1px #000000;*/
    border-radius: 4px 4px 0px 0px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    margin-bottom: 0px;
    text-overflow: ellipsis;
    vertical-align: bottom;
    overflow: hidden;
    white-space: nowrap;
    color: #000000;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    outline: 0px solid transparent;
}

.gwp_psearch {
    display: inline-block;
    padding: 20px 20px 20px 20px;
    width: 80%;
    background-color: #efefef;
    background-color: rgba(0, 0, 0, 0.1);
    /*border: solid 1px #000000;*/
    margin-left: auto;
    margin-right: auto;
    margin-top: 0px;
    margin-bottom: 0px;
    text-overflow: ellipsis;
    vertical-align: middle;
    overflow: hidden;
    white-space: nowrap;
    color: #000000;
    font-weight: bold;
    font-size: 25px;
    text-transform: uppercase;
    outline: 0px solid transparent;
}

.gwp_msclear {
    display: inline-block;
    padding: 5px 20px 5px 20px;
    width: 80%;
    background-color: #efefef;
    background-color: rgba(0, 0, 0, 0.2);
    /*border: solid 1px #000000;*/
    border-radius: 0px 0px 4px 4px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0px;
    margin-bottom: 0px;
    text-overflow: ellipsis;
    vertical-align: middle;
    overflow: hidden;
    white-space: nowrap;
    color: #000000;
    font-weight: bold;
    font-size: 20px;
    text-transform: uppercase;
    outline: 0px solid transparent;
}

.gwp_msclear:hover {
    color: var(--accent1);
    cursor: pointer;
}

.gwp_topbutton {
    margin-left: 5px;
    margin-right: 5px;
    font-size: 24px;
    color: #444444;
    vertical-align: middle;
}

.gwp_topbutton:hover {
    color: var(--accent1);
    cursor: pointer;
}

.gwp_topbuttonc {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    font-size: 18px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    vertical-align: middle;
    transition: border-color 0.15s;
}

.gwp_topbuttonc:hover:not(.gwp_navactive) {
    border-color: var(--accent1);
}

.gwp_itopbutton {
    margin: 0px 2px;
    color: #444444;
}

.gwp_itopbutton:hover {
    color: var(--accent1);
    cursor: pointer;
}

.gwp_itopbuttonhide {
    display: none;
    margin: 0px 2px;
    color: #444444;
}

.gwp_itopbuttonhide:hover {
    color: var(--accent1);
    cursor: pointer;
}

.gwp_menubutton {
    margin-right: 0px;
    font-size: 24px;
    color: #444444;
}

.gwp_menubutton:hover {
    color: var(--accent1);
    cursor: pointer;
}


.gwp_topeditbar {
    margin-top: 10px;
    margin-bottom: 20px;
}

/* No Results / Unauthorised */
.gwp_nrframe {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 24px;
}

.gwp_noresults {
    background: #fff;
    border-radius: 12px;
    padding: 40px 48px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.gwp_nr_icon {
    font-size: 52px;
    color: var(--accent1);
    margin-bottom: 16px;
    line-height: 1;
}

.gwp_nr_title {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 8px;
}

.gwp_nr_sub {
    font-size: 14px;
    color: #8c8f94;
    margin: 0 0 24px;
    line-height: 1.5;
}

.gwp_noresults .gwp_auth_btn_primary {
    max-width: 200px;
    margin: 0 auto;
}

#gwp_newactivity {
    margin: 10px 10px 0px 10px;
}

/*////////////////////*/
/*///Page elements///*/
/*//////////////////*/
.gwp_addimage {
    margin-top: 20px;
}

.gwp_addpeitem {
    position: relative;
    display: inline-block;
    border: 2px dashed var(--accent1);
    border-radius: 4px;
    margin: 7px 5px 7px 5px;
    height: 100px;
    width: 100px;
    overflow: hidden;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
    text-align: center;
    cursor: pointer;
}

.gwp_addpeitem:hover {
    border: 2px solid var(--accent1);
}

.gwp_addpeitem:hover>.gwp_pebox {
    background-color: var(--accent1);
    opacity: 0.6;
    color: #ffffff;
    margin: 0px;
}

.gwp_pemedia {
    border: 4px solid #efefef;
    border-radius: 4px;
}

.gwp_addpemedia {
    position: relative;
    display: inline-block;
    border: 4px solid #efefef;
    border-radius: 4px;
    margin: 2px;
    height: 100px;
    width: 100px;
    overflow: hidden;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
    text-align: center;
    cursor: pointer;
    box-shadow: 0 0 5px rgb(0 0 0 / 40%);
}

.gwp_addpemedia:hover {
    border: 4px solid var(--accent1);
}

.gwp_addpemedia:hover>.gwp_pebox {
    background-color: var(--accent1);
    opacity: 0.6;
    color: #ffffff;
    margin: 0px;
}

.gwp_peboximg {
    text-align: center;
    margin: 0px;
    font-size: 50px;
    width: 100%;
    height: 70px;
    padding: 0px 0px 0px 0px;
    background-color: #ffffff;
}

.gwp_pebox {
    text-align: center;
    margin: 0px;
    font-size: 50px;
    width: 100%;
    height: 70px;
    padding: 20px 0px 0px 0px;
    background-color: #ffffff;
}

.gwp_pefilename {
    position: absolute;
    bottom: 0;
    word-wrap: break-word;
    font-size: 10px;
    /*border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;*/
    background-color: #efefef;
    width: 96%;
    max-height: 36px;
    padding-top: 1px;
    padding-left: 3px;
    padding-right: 3px;
    text-align: center;
}

.gwp_chosenmedia {
    display: inline-block;
}

.gwp_pmdelete {
    position: absolute;
    background-color: #ffffff;
    padding: 2px;
    border-radius: 2px;
    top: 5px;
    right: 5px;
    display: inline-block;
    margin-left: 5px;
    cursor: pointer;
}

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

.gwp_gpurl {
    display: inline-block;
    cursor: pointer;
    margin-right: 5px;
}

.gwp_gpurl:hover {
    text-decoration: underline;
}

/*////////////////////*/
/*///Filter Form/////*/
/*//////////////////*/
.gwp_filtertitle {
    display: block;
    margin-top: 10px;
    padding-top: 10px !important;
    padding-bottom: 0px !important;
    color: #fff !important;
    text-transform: uppercase;
}

.gwp_filterfield {
    display: block;
    width: 100%;
}

.gwp_formitem {
    margin-top: 10px;
}

.gwp_offcanvas-button {
    width: 100% !important;
    margin-left: auto;
    margin-right: auto;
}

/*////////////////////*/
/*///Dropdown Menu///*/
/*//////////////////*/

/* dropdown More */
.gwp_overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */
    height: 100%;
    width: 0;
    position: fixed;
    /* Stay in place */
    z-index: 8000;
    /* Sit on top */
    left: 0;
    top: 0;
    /*   background-color: rgb(0,0,0);*/
    /* Black fallback color */
    /*   background-color: rgba(0,0,0, 0.9);*/
    /* Black w/opacity */
    background-color: transparent;
    overflow-x: hidden;
    /* Disable horizontal scroll */
    transition: 0.0s;
    /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
    cursor: default;
    pointer-events: none;
}

/* Only allow clicks when overlay is expanded */
.gwp_overlay[style*="width: 100%"],
.gwp_overlay[style*="width:100%"],
.gwp_overlay[style*="display: block"],
.gwp_overlay[style*="display:block"] {
    pointer-events: auto;
}

@keyframes gwp_showmoverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.4;
    }
}

.gwp_menuoverlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */
    height: 100%;
    width: 0;
    position: fixed;
    /* Stay in place */
    z-index: 8000;
    /* Sit on top */
    left: 0;
    top: 0;
    /*   background-color: rgb(0,0,0);*/
    /* Black fallback color */
    /*   background-color: rgba(0,0,0, 0.9);*/
    /* Black w/opacity */
    background-color: #000000;
    opacity: 0.4;
    overflow-x: hidden;
    /* Disable horizontal scroll */
    transition: 0.0s;
    /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
    animation: showmoverlay 500ms ease-in-out both;
}

.gwp_menuitemselected {
    background: rgba(var(--accent1-rgb, 0, 0, 0), 0.08);
    border-left: 3px solid var(--accent1);
    font-weight: 600;
}

.gwp_dropdown {
    float: right;
    position: relative;
    cursor: pointer;
    /*display: inline-block;*/
}

/* Prevent overlay from inheriting pointer cursor */
.gwp_dropdown .gwp_overlay {
    cursor: default;
}

.gwp_dropdown-content {
    display: inline-block;
    position: absolute;
    /*    top: 40px;*/
    right: 0px;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 28000;
}

.gwp_dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.gwp_printform {
    margin-bottom: 0px;
}

.gwp_dropdown-content a:hover {
    background-color: #f1f1f1
}

.gwp_dropdown-content div {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.gwp_dropdown-content div:hover {
    background-color: #f1f1f1;
}

.gwp_dropdown-menu {
    display: inline-block;
    position: fixed;
    /*    top: 40px;*/
    left: 0px;
    background-color: #ffffff;
    height: 4000px;
    min-width: 200px;
    font-size: 14px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 28000;
}

.gwp_dropdown-menucontent {
    flex: 1 1 auto;
    padding: 8px 0;
    overflow-y: auto;
}

@keyframes gwp_shownav {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gwp_dropdown-menu-show {
    position: fixed;
    display: flex;
    flex-flow: column;
    left: 0px;
    top: 0;
    background-color: #ffffff;
    height: 100%;
    min-width: 200px;
    font-size: 14px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 28000;
    padding: 0;
    animation: gwp_shownav 250ms ease-out both;
}

.gwp_dropdown-menu-show a {
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 28000;
    user-select: none;
    -webkit-user-select: none;
    border-radius: 0;
    transition: background 0.12s, color 0.12s;
    font-size: 14px;
}

.gwp_dropdown-menu-show a i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    color: #888;
    transition: color 0.12s;
}

.gwp_dropdown-menu-show>a:hover,
.gwp_dropdown-menucontent>a:hover {
    background: #f5f5f5;
    color: var(--accent1);
}

.gwp_dropdown-menu-show>a:hover i,
.gwp_dropdown-menucontent>a:hover i {
    color: var(--accent1);
}

.gwp_dropdown-menu-show>a>img:hover {
    filter: invert(100%) sepia(0%) saturate(2784%) hue-rotate(173deg) brightness(122%) contrast(111%);
}

.gwp_menulink {
    display: inline-block;
    color: inherit;
    width: 12px;
    vertical-align: middle;
}

.gwp_dropdown-menu-show .gwp_submenu {
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-top: 1px solid #eee;
    flex: 0 0 auto;
}

.gwp_dropdown-menu-show .gwp_submenulink {
    display: inline-block;
    font-size: 16px;
    padding: 3px 5px;
    border-radius: 2px;
    color: #666;
    cursor: pointer;
}

.gwp_submenulink:hover {
    background: #f0f0f0;
    color: var(--accent1);
}

.gwp_dropdown-menu-show .gwp_menuitemhr {
    margin: 4px 16px;
    border: 0;
    height: 1px;
    background: #eee;
}


.gwp_dropdown-additem {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 10px 10px;
    z-index: 28000;
    user-select: none;
    -webkit-user-select: none;
    padding: 6px 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

/* Make trigger containers the positioning anchor */
#gwp_addtb,
#gwp_calviewwrap,
#gwp_calmorewrap,
#gwp_mediasettingswrap {
    position: relative;
    display: inline-block;
}

/* Navbar overlay — covers page below the topbar to block interaction */
.gwp_navoverlay {
    height: 100%;
    width: 0;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 8998;
    background-color: rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: background-color 0.2s;
    pointer-events: auto;
}

/* Active trigger button styling — seamless join with dropdown */
#gwp_addtb.gwp_navactive,
#gwp_calviewwrap.gwp_navactive,
#gwp_calmorewrap.gwp_navactive {
    background-color: #ffffff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-bottom-color: #ffffff;
}

/* Override dropdown top radius when button is active to create seamless join */
.gwp_navactive .gwp_dropdown-additem {
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    margin-top: 0;
}

.gwp_dropdown-additem-show {
    display: inline-block;
    position: fixed;
    left: 0px;
    background-color: #ffffff;
    height: 4000px;
    min-width: 200px;
    font-size: 14px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 28000;
    transition: 0.25s ease-out;
    transform: translateY(0);
}



.gwp_dropdown-additem-show a {
    color: #333;
    padding: 10px 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 28000;
    font-size: 14px;
    transition: background 0.12s;
}

.gwp_dropdown-additem-show a:hover {
    background: #f5f5f5;
    color: var(--accent1);
}


.gwp_dropdown-additem div {
    color: #333;
    padding: 10px 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.12s;
}

.gwp_dropdown-additem div:hover {
    background: #f5f5f5;
    color: var(--accent1);
}

.gwp_dropdown-additem div i,
.gwp_dropdown-additem-show a i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    color: #888;
    transition: color 0.12s;
}

.gwp_dropdown-additem div:hover i,
.gwp_dropdown-additem-show a:hover i {
    color: var(--accent1);
}



.gwp_dropdown:hover .dropbtn {
    background-color: #3e8e41;
}

.gwp_dropdown-addnotification {
    position: fixed;
    right: 0px;
    background-color: #ffffff;
    width: 380px;
    max-width: 95vw;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 0 12px;
    z-index: 28000;
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
}

.gwp_dropdown-addnotification>.gwp_notif_card:hover {
    background: #f8f9fa;
}



*.icon-blue {
    color: #0088cc
}

*.icon-grey {
    color: grey
}


/* Notification badge */
.gwp_nbadge {
    position: relative;
    margin-left: -10px;
    top: -8px;
    background: #e74c3c;
    color: #fff;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    min-width: 8px;
    text-align: center;
    line-height: 16px;
}

/* Notification panel header */
.gwp_notif_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e8ecf0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}
.gwp_notif_header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}
.gwp_notif_actions {
    display: flex;
    gap: 4px;
}
.gwp_notif_actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s, color 0.15s;
}
.gwp_notif_actions button:hover {
    background: #f0f2f5;
    color: var(--accent1);
}
.gwp_notif_actions button i {
    font-size: 16px;
}

/* Notification card */
.gwp_notif_card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.15s;
    position: relative;
}
.gwp_notif_card:last-child {
    border-bottom: none;
}
.gwp_notif_card.gwp_notif_unread {
    background: #f0f7ff;
    border-left: 3px solid var(--accent1);
    padding-left: 13px;
}
.gwp_notif_card.gwp_notif_read {
    background: #fff;
    border-left: 3px solid transparent;
    padding-left: 13px;
    opacity: 0.75;
}
.gwp_notif_card.gwp_notif_read:hover {
    opacity: 1;
}

/* Origin icon */
.gwp_notif_icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}
.gwp_notif_icon.gwp_ni_calendar { background: #3498db; }
.gwp_notif_icon.gwp_ni_library { background: #9b59b6; }
.gwp_notif_icon.gwp_ni_schedule { background: #e67e22; }
.gwp_notif_icon.gwp_ni_members { background: #27ae60; }
.gwp_notif_icon.gwp_ni_messages { background: #1abc9c; }
.gwp_notif_icon.gwp_ni_groups { background: #2980b9; }
.gwp_notif_icon.gwp_ni_rota { background: #8e44ad; }
.gwp_notif_icon.gwp_ni_database { background: #34495e; }
.gwp_notif_icon.gwp_ni_broadcasts { background: #e74c3c; }
.gwp_notif_icon.gwp_ni_notes { background: #f39c12; }
.gwp_notif_icon.gwp_ni_attendance { background: #16a085; }
.gwp_notif_icon.gwp_ni_lists { background: #9b59b6; }
.gwp_notif_icon.gwp_ni_documents { background: #2c3e50; }
.gwp_notif_icon.gwp_ni_projects { background: #d35400; }
.gwp_notif_icon.gwp_ni_curriculum { background: #27ae60; }
.gwp_notif_icon.gwp_ni_default { background: #95a5a6; }

/* Notification body */
.gwp_notif_body {
    flex: 1;
    min-width: 0;
}
.gwp_notif_message {
    font-size: 13px;
    line-height: 1.4;
    color: #2c3e50;
    word-wrap: break-word;
}
.gwp_notif_message b, .gwp_notif_message strong {
    font-weight: 600;
}
.gwp_notif_meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 11px;
    color: #95a5a6;
}
.gwp_notif_time {
    white-space: nowrap;
}
.gwp_notif_origin_badge {
    background: #f0f2f5;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    text-transform: capitalize;
    color: #7f8c8d;
}

/* Notification card actions (right side) */
.gwp_notif_card_actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}
.gwp_notif_card:hover .gwp_notif_card_actions {
    opacity: 1;
}
.gwp_notif_card_actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 14px;
    color: #95a5a6;
    line-height: 1;
}
.gwp_notif_card_actions button:hover {
    background: #e8ecf0;
    color: #2c3e50;
}

/* Unread dot */
.gwp_notif_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent1);
    flex-shrink: 0;
    margin-top: 4px;
}

/* Empty state */
.gwp_notif_empty {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
}
.gwp_notif_empty i {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.4;
}
.gwp_notif_empty p {
    font-size: 14px;
    margin: 0;
}


.gwp_addmenu {
    position: relative;
    display: inline-block;
}


.gwp_ellipsis {
    float: right;
    font-size: 24px;
    color: #444444;
    margin-right: 10px;
}

/*Edit moretoggle Button*/
.gwp_moretoggle {
    background-color: transparent;
    margin: 2px;
    float: right;
    cursor: pointer;
    border: 1px solid;
    border-color: transparent;
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-size: 15px;
    padding: 2.5px 5px;
    text-shadow: 0px 0px 0px #2f6627;
}

.gwp_moretoggle:hover {
    margin-bottom: 5px !important;
}

.gwp_moretoggle:active {
    position: relative;
    top: 1px;
    margin-bottom: 5px !important;
}

/*////////////////////*/
/*///TaxonomyFields/////*/
/*//////////////////*/
.gwp_taxonomies {
    display: flex;
    width: auto;
}

.gwp_staxonomies {
    display: inline-block;
    width: auto;
}

/*////////////////////*/
/*///TopicFields/////*/
/*//////////////////*/
.gwp_topicwrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
    margin-bottom: 8px;
    background: color-mix(in srgb, var(--accent1) 8%, white);
    border: 1px solid color-mix(in srgb, var(--accent1) 20%, #e5e7eb);
    border-radius: 20px;
    color: #444;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    padding: 4px 12px;
    line-height: 1.5;
}

.gwp_topictext {
    color: #444;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
}

.gwp_topictext b {
    font-weight: 600;
    color: #333;
}

.gwp_topictext>a {
    color: var(--accent1);
    text-decoration: none;
}

.gwp_topictext>a:hover {
    text-decoration: underline;
}

.gwp_serieswrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
    margin-bottom: 8px;
    background: color-mix(in srgb, var(--accent1) 8%, white);
    border: 1px solid color-mix(in srgb, var(--accent1) 20%, #e5e7eb);
    border-radius: 20px;
    color: #444;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    padding: 4px 12px;
    line-height: 1.5;
}

.gwp_seriestext {
    color: #444;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
}

.gwp_seriestext b {
    font-weight: 600;
    color: #333;
}

.gwp_seriestext>a {
    color: var(--accent1);
    text-decoration: none;
}

.gwp_seriestext>a:hover {
    text-decoration: underline;
}

/*////////////////////*/
/*/Duration Fields///*/
/*//////////////////*/
.gwp_durationwrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
    margin-bottom: 8px;
    background: color-mix(in srgb, var(--accent1) 8%, white);
    border: 1px solid color-mix(in srgb, var(--accent1) 20%, #e5e7eb);
    border-radius: 20px;
    color: #444;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    padding: 4px 12px;
    line-height: 1.5;
}

.gwp_durationtext {
    color: #444;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
}

.gwp_durationtext>a {
    color: var(--accent1);
    text-decoration: none;
}

.gwp_durationimage {
    display: flex;
    align-items: center;
    padding-right: 3px;
}

.gwp_durationimg {
    display: block;
    line-height: 0;
    height: 14px;
    padding: 0;
    margin: 0;
}

/*//////Schedule item//////*/
.gwp_schedulewrap {
    display: block;
    overflow: hidden;
}

.gwp_scheduledescription {
    display: block;
    margin: 20px 0;
    background: #f2f2f2;
    padding: 14px 18px;
    border-radius: 8px;
}

.gwp_scheduleprogramme {
    display: block;
}

.gwp_schedulerow {
    background-color: #ffffff;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 8px 14px;
    margin-top: 4px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: background 0.15s;
}

.gwp_schedulerow:hover {
    background-color: #f9fafb;
}

.gwp_schedulerow_alt {
    background-color: #f9fafb;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 8px 14px;
    margin-top: 4px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.gwp_srlen {
    width: 100%;
}

.gwp_scheduleitem {
    display: inline-block;
    margin: 2px 16px 2px 0;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gwp_items {
    width: 100%;
}

.gwp_sheader {
    margin-top: 16px;
    margin-bottom: 4px;
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
}

.gwp_ssheader {
    display: block;
    margin-top: 10px;
    margin-bottom: 2px;
    font-size: 15px;
    font-weight: 400;
    color: #444;
}

/* ---- Row type overrides ---- */
.gwp_header_row {
    background: none;
    border: none;
    padding: 0;
    margin-top: 20px;
}

.gwp_header_row .gwp_sheader {
    margin-top: 0;
    font-size: 16px;
    font-weight: 700;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
}

.gwp_subheader_row {
    background: none;
    border: none;
    padding: 0;
    margin-top: 14px;
}

.gwp_subheader_row .gwp_ssheader {
    margin-top: 0;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gwp_space_row {
    background: none;
    border: none;
    padding: 0;
}

.gwp_sspace {
    height: 16px;
}

/* ---- Time + Main columns ---- */
.gwp_time_col {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 140px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    padding-top: 2px;
    flex-shrink: 0;
}

.gwp_time_col i {
    font-size: 14px;
    color: var(--accent1);
}

.gwp_main_col {
    flex: 1;
    min-width: 0;
    font-size: 14px;
}

.gwp_item_name {
    font-size: 14px;
    margin-bottom: 2px;
}

.gwp_item_name b {
    font-weight: 600;
    color: #1a1a1a;
}

.gwp_people_row {
    font-size: 13px;
    color: #555;
    margin-top: 2px;
}

.gwp_person_lead,
.gwp_person_helpers {
    margin-right: 12px;
}

.gwp_person_lead i,
.gwp_person_helpers i {
    margin-right: 3px;
    color: #999;
}

.gwp_inline_meta {
    font-size: 12px;
    color: #666;
    margin-left: 8px;
}

.gwp_inline_meta i {
    margin-right: 2px;
    color: #999;
}

.gwp_inline_notes {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-top: 4px;
}

.gwp_inline_notes i {
    font-style: normal;
    margin-right: 3px;
    color: #999;
}

/* ---- Item type styles ---- */
.gwp_stext { font-size: 14px; color: #333; line-height: 1.6; white-space: pre-wrap; padding: 4px 0; }

.gwp_sbreak { display: flex; align-items: center; gap: 8px; padding: 10px 0; color: #888; font-style: italic; border-top: 1px dashed #ddd; border-bottom: 1px dashed #ddd; margin: 4px 0; }
.gwp_sbreak i { font-size: 16px; }
.gwp_break_duration { font-size: 12px; color: #999; }

.gwp_slink { font-size: 14px; padding: 2px 0; }
.gwp_slink a { color: var(--accent1); text-decoration: none; }
.gwp_slink a:hover { text-decoration: underline; }
.gwp_slink i { margin-right: 4px; color: #999; }
.gwp_slink_notes { font-size: 12px; color: #888; font-style: italic; margin-top: 2px; }

.gwp_sdecision { font-size: 14px; padding: 8px 12px; background: #fff8e1; border-radius: 6px; border-left: 4px solid #ffc107; margin: 4px 0; }
.gwp_sdecision_notes { font-size: 12px; color: #888; font-style: italic; margin-top: 4px; }

.gwp_stask { font-size: 14px; }
.gwp_stask_name { font-weight: 600; }
.gwp_stask_assignee { font-size: 13px; color: #666; margin-top: 2px; }
.gwp_stask_notes { font-size: 13px; color: #666; font-style: italic; margin-top: 2px; }

.gwp_sstatus { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-left: 6px; text-transform: uppercase; vertical-align: middle; }
.gwp_sstatus.pending { background: #fff3cd; color: #856404; }
.gwp_sstatus.approved { background: #d4edda; color: #155724; }
.gwp_sstatus.rejected { background: #f8d7da; color: #721c24; }
.gwp_sstatus.deferred { background: #e2e3e5; color: #383d41; }
.gwp_sstatus.in-progress { background: #cce5ff; color: #004085; }
.gwp_sstatus.complete { background: #d4edda; color: #155724; }

.gwp_spriority { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-left: 6px; text-transform: uppercase; vertical-align: middle; }
.gwp_spriority.low { background: #e2e3e5; color: #383d41; }
.gwp_spriority.medium { background: #fff3cd; color: #856404; }
.gwp_spriority.high { background: #f8d7da; color: #721c24; }
.gwp_spriority.critical { background: #721c24; color: #fff; }

.gwp_media_caption { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 10px; }
.gwp_media_caption i { color: var(--accent1); margin-right: 4px; }

/* ---- Modernised Schedule Cards ---- */
.gwp_schedule_card {
    position: relative;
}

.gwp_schedule_title_row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-left: 12px;
}

.gwp_schedule_title_row .gwp_h3 {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.gwp_schedule_title_row .gwp_scheduletitle {
    font-size: 22px;
    line-height: 1.3;
    margin: 0;
    display: inline;
}

.gwp_schedule_title_row .gwp_nav_dropdown_wrap {
    flex-shrink: 0;
}

.gwp_schedule_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.gwp_schedule_tags .gwp_topicwrap,
.gwp_schedule_tags .gwp_serieswrap,
.gwp_schedule_tags .gwp_durationwrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f2f2f2;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    color: #444;
    margin: 0;
}

.gwp_schedule_tags .gwp_topicwrap i,
.gwp_schedule_tags .gwp_serieswrap i,
.gwp_schedule_tags .gwp_durationwrap i {
    color: var(--accent1);
    font-size: 14px;
}

.gwp_schedule_card .gwp_schedulewrap {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.gwp_schedule_card .gwp_schedulerow,
.gwp_schedule_card .gwp_schedulerow_alt {
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 4px;
}

.gwp_schedule_card .gwp_schedulerow {
    background-color: #ffffff;
}

.gwp_schedule_card .gwp_schedulerow_alt {
    background-color: #f2f2f2;
}

.gwp_schedule_card .gwp_sheader {
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
    margin-top: 16px;
}

.gwp_schedule_card .gwp_ssheader {
    font-size: 15px;
    font-weight: 400;
    color: #444;
    margin-top: 10px;
}

.gwp_schedule_card .gwp_goalbox {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f2f2f2;
    border-radius: 8px;
}

.gwp_schedule_card .gwp_descriptionbox {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f2f2f2;
    border-radius: 8px;
}

.gwp_schedule_card .gwp_attachmentslist {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f2f2f2;
    border-radius: 8px;
}

.gwp_schedule_card .gwp_topeditbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* ---- Filter Modal ---- */
.gwp_filter_section {
    margin-bottom: 20px;
}

.gwp_filter_section_title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.gwp_filter_section_title i {
    color: var(--accent1);
    margin-right: 4px;
}

.gwp_filter_section_items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.gwp_filter_checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    padding: 4px 0;
}

.gwp_filter_checkbox input[type="checkbox"] {
    accent-color: var(--accent1);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Filter button active state */
.gwp_nav_btn_active {
    background: color-mix(in srgb, var(--accent1) 10%, white);
    border-color: var(--accent1);
    color: var(--accent1);
}

/*//////Calendar//////*/
.gwp_calframe {
    /*background-color: #ffffff;*/
    top: 0px;
    z-index: 1;
    /*height:50px; 
    width: 100%;*/
    vertical-align: middle;
    transition: all 0.15s linear;
    padding-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    width: 98%;
    /*margin-bottom: 20px;*/
}

.gwp_calframecontents {
    overflow-y: scroll;
    height: calc(100vh - 150px);
    min-height: 400px;
    /* Fallback for WebView */
    width: 100%;
    scrollbar-width: none;
    touch-action: pan-y;
}

.gwp_calframecontents::-webkit-scrollbar {
    width: 0px;
    /* Remove scrollbar space */
    background: transparent;
    /* Optional: just make scrollbar invisible */
}

.gwp_calheader {
    /*background-color: #ffffff;*/
    top: 0px;
    position: -webkit-sticky;
    position: sticky;
    z-index: 9001;
    height: 50px;
    width: 100%;
    vertical-align: middle;
    transition: all 0.15s linear;
}

.gwp_calheader:after {
    content: "";
    display: table;
    clear: both;
}

#gwp_cframe {
    /*position: relative;*/
    display: block;
    /*padding-top: 53px;*/
    /*margin-right: 20px; 
  margin-left: 20px;
  padding-left: 20px;
  padding-right: 20px;*/
    padding-bottom: 1px;
}

#gwp_clframe {
    position: relative;
    overflow: hidden;
    display: none;
    padding-top: 0px;
    margin-top: 20px;
    padding-bottom: 5px;
}

#gwp_hframe {
    position: relative;
    overflow: hidden;
    display: none;
    padding-top: 0px;
    margin-right: auto;
    margin-left: auto;
    overflow-y: auto;
    margin-top: 20px;
    /*width: 98%;*/
    padding-bottom: 5px;
}

.gwp_huname {
    font-weight: bold;
}

.gwp_huser {
    margin: 10px 20px 20px 11px;
    padding: 30px 20px 30px 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    background-color: #ffffff;
}

.gwp_htitle {
    font-weight: bold;
}

.gwp_hcursor {
    cursor: pointer;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                supported by Chrome, Edge, Opera and Firefox */
}

.gwp_hcursor:hover {
    color: #49da9a;
}

.gwp_hdate {
    margin-top: 4px;
    margin-bottom: 2px;
}

.gwp_hentitlementi {
    display: inline-block;
    max-width: 100px;
}

.gwp_hevent {
    margin: 10px 0px 5px 0px;
    padding: 10px 10px 10px 10px;
    /*background-color: #efefef;*/
    border: 2px solid #e8e8e8;
    border-radius: 4px;
}


.gwp_habuttonsmall {
    display: inline-block;
    margin: 6px 2px 3px 3px;
    padding: 3px 5px 3px 5px;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    background-color: var(--accent1);
    color: #ffffff;
    border: solid 1px var(--accent1);
    text-align: center;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -khtml-user-drag: element;
    -webkit-user-drag: element;
    border-radius: 3px;
    font-size: 14px;
}

.gwp_workingdays {
    margin-top: 5px;
}

.gwp_hbuttonsmall {
    display: inline-block;
    margin: 0px 2px 0px 3px;
    padding: 3px 5px 3px 5px;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    background-color: #ffffff;
    color: #000000;
    border: solid 1px #aaa;
    text-align: center;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -khtml-user-drag: element;
    -webkit-user-drag: element;
    border-radius: 3px;
    font-size: 14px;
}

.gwp_hbuttonsmall:hover {
    border: solid 1px #ffffff;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.gwp_hstatus {
    margin: 10px 0px 0px 5px;
}

.gwp_habutton {
    display: inline-block;
    margin: 6px 2px 3px 3px;
    padding: 3px 5px 3px 5px;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    background-color: #ffffff;
    color: #000000;
    border: solid 1px #aaa;
    border-left: 5px solid #49da9a;
    text-align: center;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -khtml-user-drag: element;
    -webkit-user-drag: element;
    border-radius: 3px;
    font-size: 14px;
}

.gwp_hpbutton {
    display: inline-block;
    margin: 6px 2px 3px 3px;
    padding: 3px 5px 3px 5px;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    background-color: #ffffff;
    color: #000000;
    border: solid 1px #aaa;
    border-left: 5px solid #34bbe6;
    text-align: center;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -khtml-user-drag: element;
    -webkit-user-drag: element;
    border-radius: 3px;
    font-size: 14px;
}

.gwp_hrbutton {
    display: inline-block;
    margin: 6px 2px 3px 3px;
    padding: 3px 5px 3px 5px;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    background-color: #ffffff;
    color: #000000;
    border: solid 1px #aaa;
    border-left: 5px solid #ff645e;
    text-align: center;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -khtml-user-drag: element;
    -webkit-user-drag: element;
    border-radius: 3px;
    font-size: 14px;
}

.gwp_hsapproved {
    border-left: 5px solid #49da9a;
}

.gwp_hspending {
    border-left: 5px solid #34bbe6;
}

.gwp_hsrejected {
    border-left: 5px solid #ff645e;
}

.gwp_weekcategorys {
    width: 40px !important;
    margin: 6px 2px 3px 3px !important;
    padding: 0px 5px 0px 5px !important;
    text-align: center !important;
    border-radius: 3px !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    border: solid 1px #aaa !important;
    line-height: 13px !important;
}

.gwp_weekcategorys::-webkit-inner-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

.gwp_weekcategory {
    width: 40px !important;
    margin: 6px 2px 3px 3px !important;
    padding: 0px 5px 0px 5px !important;
    text-align: center !important;
    border-radius: 3px !important;
    background-color: #ffffff !important;
    color: #ffffff !important;
    border: solid 1px #ffffff !important;
    line-height: 13px !important;
}

.gwp_weekcategory::-webkit-inner-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

.select_catframe>.select_scatoption {
    width: 40px !important;
}

.select_catframe>.select_catoption {
    width: 40px !important;
}

.gwp_mobileevents {
    text-align: center;
    display: none;
    user-select: none;
    cursor: pointer;
}

.mei {
    display: none;
    text-align: center;
    color: #000000;
    font-size: 10px;
}

.gwp_expandday {
    position: absolute;
    bottom: 0px;
    text-align: center;
    width: 100%;
    display: none;
    background-color: #f9fafb;
    font-size: 14px;
    line-height: 18px;
    cursor: pointer;
    border-top: 1px solid #e5e7eb;
    color: #999;
    transition: background-color 0.15s, color 0.15s;
}

.gwp_expandday:hover {
    background-color: #000000;
    color: #ffffff;
}

.gwp_views {
    display: inline-block;
    vertical-align: middle;
    margin-left: 20px;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 18px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    user-select: none;
}

.gwp_calendarview {
    color: #c8c8c8;
    font-size: 20px;
    transition: color 0.15s;
}

.gwp_calendarview:hover {
    color: #000000;
    font-size: 20px;
    cursor: pointer;
}

.gwp_calendarselected {
    color: #000000;
    font-size: 20px;
}

.gwp_listview {
    color: #c8c8c8;
    font-size: 20px;
    transition: color 0.15s;
}

.gwp_listview:hover {
    color: #000000;
    font-size: 20px;
    cursor: pointer;
}

.gwp_listselected {
    color: #000000;
    font-size: 20px;
}

.gwp_chevron {
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    color: #666;
    transition: color 0.15s;
}

.gwp_chevron:hover {
    color: #000000;
    cursor: pointer;
}

#gwp_monthtitle {
    display: inline-block;
    margin-left: 5px;
    margin-right: 5px;
    width: 140px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    color: var(--accent2, #264653);
    letter-spacing: 0.02em;
    user-select: none;
}

.gwp_month {
    margin-right: 15px;
    display: inline-block;
    margin-bottom: 0px;
    vertical-align: middle;
}

#gwp_yeartitle {
    display: inline-block;
    margin-left: 5px;
    margin-right: 5px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 18px;
    color: var(--accent2, #264653);
    letter-spacing: 0.02em;
    user-select: none;
}

.gwp_year {
    margin-right: 15px;
    display: inline-block;
    margin-bottom: 0px;
    vertical-align: middle;
}

.gwp_rowtitle {
    display: block;
    font-size: 0;
    /*background-color: #ffffff;*/
    top: 0px;
    position: -webkit-sticky;
    position: sticky;
}

.gwp_row {
    display: block;
    font-size: 0;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

#gwp_row0 {
    /*background-color: #ffffff;*/
    padding-top: 20px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.gwp_h1 {
    display: inline-block;
    margin: 0px;
    padding-bottom: 5px;
}

.gwp_h3 {
    display: inline-block;
    margin: 0px;
}

.gwp_title,
.gwp_ltitle,
.gwp_rtitle {
    font-size: 13px;
    display: inline-block;
    border: 1px solid #e5e7eb;
    width: calc(100% / 7 - 2px);
    box-sizing: border-box;
    padding: 8px 0px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #666;
    user-select: none;
    background: #fafbfc;
    vertical-align: bottom;
}

.gwp_ltitle {
    border-top-left-radius: 8px;
}

.gwp_rtitle {
    border-top-right-radius: 8px;
}

.gwp_titledesktop {
    display: block;
    user-select: none;
}

.gwp_titlemobile {
    display: none;
    margin-left: auto;
    margin-right: auto;
    user-select: none;
}

.gwp_day,
.gwp_dayselected,
.gwp_dayalt {
    display: inline-block;
    border: 1px solid #e5e7eb;
    width: calc(100% / 7 - 2px);
    box-sizing: border-box;
    min-height: 100px;
    height: 200px;
    overflow: hidden;
    vertical-align: bottom;
    position: relative;
    background-color: #ffffff;
    font-size: 12px;
}

.gwp_dayselected {
    border-color: #000000;
    background-color: color-mix(in srgb, #000000 6%, white);
    box-shadow: inset 0 0 0 1px #000000;
}

.gwp_dayalt {
    background-color: #f9fafb;
}

.gwp_dayalt>* {
    opacity: 0.4;
}

.gwp_dayalt>.gwp_expandday {
    opacity: 1;
}


.gwp_daytitle {
    width: 100%;
    background-color: transparent;
    margin-left: 0px;
    margin-bottom: 4px;
    padding: 4px 6px 2px 6px;
    font-size: 12px;
    line-height: 14px;
    font-weight: 600;
    color: #666;
    user-select: none;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s;
}

.gwp_daytitle:hover {
    color: #000000;
    background-color: color-mix(in srgb, #000000 6%, white);
}

/*.gwp_singleday{
 display: none;
 margin: 10px 5px 20px 5px;
 border-radius: 2px;
 padding-bottom: 10px;
 padding-left: 5px;
 background-color: #ffffff;
 box-shadow: 0 -1px 0 #e0e0e0, 0 0 2px rgba(0,0,0,.12), 0 2px 4px rgba(0,0,0,.24);
 user-select: none;
}*/

.gwp_singleday {
    display: none;
    margin: 0 0 12px 0;
    border-radius: 0;
    padding: 0;
    user-select: none;
    background: #ffffff;
    border: none;
    overflow: hidden;
}

.gwp_singledaytitle {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--accent2, #264653);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-left: 4px solid var(--accent1);
    padding: 10px 16px;
    user-select: none;
    min-width: 0;
    background: #fafbfc;
    border-bottom: none;
}

.gwp_sdebullet {
    color: var(--accent1);
    border-color: #000000;
}

.gwp_sdevents {
    display: block;
    padding: 4px 12px 8px 12px;
}

/*.gwp_sdevent old*/

.gwp_sdevent {
    margin: 0;
    padding: 8px 12px 8px 12px;
    border: none;
    border-radius: 0;
    background-color: transparent;
    color: var(--accent2, #264653);
    cursor: pointer;
    line-height: 1.4;
    font-size: 13px;
    transition: background-color 0.15s;
}

.gwp_sdevent:hover {
    background-color: #f9fafb;
}

.gwp_sdehr {
    border: none;
    height: 0;
    border-top: 1px solid #f0f0f0;
    margin: 0 12px;
    padding: 0;
}

/*.gwp_sdevents{
    margin-top: 8px;
    margin-left: 2px;
    margin-right: 5px;
    padding: 5px 5px 5px 0px;
    border: 2px solid var(--accent1);
    border-radius: 5px;
    color: #676767;
    cursor: pointer;
    line-height: 20px;
    font-size: 14px;
    }*/

.gwp_sdeventtitle {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    color: var(--accent2, #264653);
    cursor: pointer;
    line-height: 1.4;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s, color 0.15s;
}

.gwp_sdeventtitle:hover {
    background-color: #000000;
    color: #ffffff;
    cursor: pointer;
}

.gwp_leventtitle {
    margin: 0;
    padding: 8px 12px 8px 24px;
    border: none;
    background-color: transparent;
    color: var(--accent2, #264653);
    cursor: pointer;
    line-height: 1.4;
    font-size: 14px;
    transition: background-color 0.15s;
}

.gwp_leventtitles {
    margin: 0;
    padding: 8px 12px 8px 24px;
    border: none;
    background-color: transparent;
    color: var(--accent2, #264653);
    cursor: pointer;
    line-height: 1.4;
    font-size: 14px;
    transition: background-color 0.15s;
}

.gwp_leventtitles:hover {
    background-color: #f9fafb;
    cursor: pointer;
}

.gwp_sdedit {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    color: #888;
    cursor: pointer;
    line-height: 1.4;
    font-size: 13px;
    transition: background-color 0.15s, color 0.15s;
}

.gwp_sdedit:hover {
    background-color: #f0f0f0;
    color: var(--accent2, #264653);
    cursor: pointer;
}

.gwp_todaytitle {
    width: 100%;
    background-color: var(--accent1);
    color: #ffffff;
    margin-bottom: 4px;
    padding: 4px 6px 2px 6px;
    font-size: 12px;
    line-height: 14px;
    font-weight: 700;
    user-select: none;
    cursor: pointer;
}

.gwp_dayalttitle {
    width: 100%;
    background-color: transparent;
    padding: 4px 6px 2px 6px;
    font-size: 12px;
    font-weight: 600;
    color: #bbb;
    user-select: none;
}

.gwp_event {
    margin: 5px 0;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent2, #264653);
    cursor: pointer;
    font-size: 11px;
    line-height: 18px;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.15s, color 0.15s;
    background-color: transparent;
}

.gwp_event:hover {
    background-color: color-mix(in srgb, #000000 10%, white);
    color: var(--accent2, #264653);
    border-left-color: color-mix(in srgb, #000000 25%, white);
    cursor: pointer;
}

.gwp_evtpopup {
    position: fixed;
    z-index: 100000;
    padding: 8px;
    pointer-events: auto;
}

.gwp_epcontent {
    min-width: 260px;
    max-width: 300px;
    min-height: 50px;
    max-height: 500px;
    background-color: #ffffff;
    padding: 16px;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    text-wrap: pretty;
}

.gwp_epdescription {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 80px;
    color: #666;
    line-height: 1.4;
}

.gwp_epheader {
    font-size: 16px;
    line-height: 1.3;
    text-wrap: pretty;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent2, #264653);
}

.gwp_epdate {
    font-size: 13px;
    text-wrap: pretty;
    margin-bottom: 8px;
    color: #666;
}

.gwp_epdate i {
    color: #000000;
    margin-right: 4px;
}

.gwp_epbuttons {
    margin-top: 12px;
    font-size: 14px;
    display: flex;
    gap: 6px;
}

.gwp_epbutton {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    padding: 6px 10px;
    background: #f9fafb;
    color: #333;
    font-size: 13px;
    transition: all 0.15s;
}

.gwp_epbutton:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}


.gwp_startarrow {

    display: inline-block;
    border-top: 12px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--accent1);
    vertical-align: bottom;
    width: 2%;
}

.gwp_alldayevent {
    margin-top: 2px;
    margin-left: 2px;
    margin-right: 2px;
    margin-bottom: 1px;
    padding-left: 5px;
    padding-right: 5px;
    border-left: solid 1px var(--accent1);
    border-right: solid 1px var(--accent1);
    border-top: solid 1px var(--accent1);
    border-bottom: solid 1px var(--accent1);
    border-radius: 2px;
    background-color: rgb(from var(--accent1) r g b / 20%);
    color: #000000;
    text-align: left;
    font-size: 10px;
    line-height: 20px;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
}

.gwp_alldayevent:hover {
    cursor: pointer;
}

.gwp_startevent {
    margin-top: 2px;
    margin-left: 2px;
    margin-right: 0;
    margin-bottom: 1px;
    padding-left: 5px;
    padding-right: 5px;
    border-left: solid 1px var(--accent1);
    border-top: solid 1px var(--accent1);
    border-bottom: solid 1px var(--accent1);
    border-radius: 2px 0 0 2px;
    background-color: rgb(from var(--accent1) r g b / 20%);
    color: #000000;
    text-align: left;
    font-size: 10px;
    line-height: 20px;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
}

.gwp_startevent:hover {
    cursor: pointer;
}

.gwp_midevent {
    margin-top: 2px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1px;
    padding-left: 5px;
    padding-right: 5px;
    border-top: solid 1px var(--accent1);
    border-bottom: solid 1px var(--accent1);
    background-color: rgb(from var(--accent1) r g b / 20%);
    color: #000000;
    text-align: center;
    font-size: 10px;
    line-height: 20px;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
}

.gwp_midevent:hover {
    cursor: pointer;
}

.gwp_endevent {
    margin-top: 2px;
    margin-left: 0;
    margin-right: 2px;
    margin-bottom: 1px;
    padding-left: 5px;
    padding-right: 5px;
    border-right: solid 1px var(--accent1);
    border-top: solid 1px var(--accent1);
    border-bottom: solid 1px var(--accent1);
    border-radius: 0 2px 2px 0;
    background-color: rgb(from var(--accent1) r g b / 20%);
    color: #000000;
    text-align: right;
    font-size: 10px;
    line-height: 20px;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
}

.gwp_endevent:hover {
    cursor: pointer;
}

.gwp_hdate {
    display: inline-block;
}

.vevt_mapouter {
    width: 100%;
}

/*.vevt_gmap_canvas {
   position: relative;
    padding-bottom: 75%; // This is the aspect ratio
    height: 0;
    overflow: hidden;
}*/
/*.vevt_gmap_canvas iframe {
    /*max-width: 2000px !important;
    height: 100% !important;
}*/


.gwp_rspacing {
    margin-top: 2px;
    margin-left: -1px;
    margin-right: 2px;
    padding-top: 0px;
    padding-left: 5px;
    padding-right: 5px;
    border: solid 1px transparent;
    border-radius: 2px;
    font-size: 10px;
    line-height: 20px;
}

.gwp_continueleft {
    vertical-align: bottom;
    float: left;
    margin-top: -3px;
}

.gwp_gen_button_alt {
    text-decoration: none;
    color: #FFFFFF;
    background-color: var(--accent1);
    cursor: pointer;
    border: 1px solid var(--accent1);
    border-radius: 2px;
    padding: 5px 10px;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
}

.gwp_gen_button_alt:hover {
    background-color: #10537F;
    color: #ffffff;
}

.gwp_rdelete_button {
    -webkit-box-sizing: content-box !important;
    -moz-box-sizing: content-box !important;
    box-sizing: content-box !important;
    color: #FFFFFF;
    background-color: var(--accent1);
    cursor: pointer;
    border: 1px solid var(--accent1);
    border-radius: 2px;
    padding: 5px 10px;
    font-size: 14px;
}

.gwp_eventdetails {
    display: inline-block;
    width: 75%;
    margin-top: 10px;
}

#gwp_eventstartdate {
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
    overflow: auto;
    margin-bottom: 5px;
    color: #747474;
    max-width: 200px;
    font-family: lato;
}

#gwp_eventstarttime {
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
    overflow: auto;
    margin-bottom: 5px;
    color: #747474;
    font-family: lato;
}

#gwp_eventenddate {
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
    overflow: auto;
    color: #747474;
    max-width: 200px;
    font-family: lato;
}

#gwp_eventendtime {
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
    overflow: auto;
    color: #747474;
    font-family: lato;
}

#gwp_eventsource {
    max-width: 400px;
}

.gwp_locationdata {
    padding-top: 10px;
}

.gwp_addressfieldselected {
    display: block;
    text-decoration: none;
    width: 460px;
    min-height: 35px;
    max-height: 35px;
    margin: 0px;
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
}

.gwp_addressfield {
    display: block;
}

#gwp_savelocation_button {
    display: none;
}

#gwp_newlocation_button {
    display: inline-block;
}

.gwp_reoccurringframe {
    display: inline-block;
    width: 75%;
    padding-bottom: 10px;
}

.gwp_excludeframe {
    display: inline-block;
    width: 75%;
    padding-bottom: 10px;
}


.gwp_eventtitle {
    vertical-align: top;
    display: inline-block;
    width: 20%;
}

.gwp_eventtitleh2 {
    padding: 0px !important;
}

.gwp_reoccurringrow {
    margin-top: 10px;
}

.gwp_addreoccuringbutton {
    margin-top: 10px;
}

.gwp_addexcludebutton {
    margin-top: 10px;
}

.gwp_reoccurringrowframe {
    display: inline-block;
    margin-bottom: 5px;
    min-width: 300px;
}

.gwp_removereoccuringevent {
    float: right;
}

.gwp_continueright {
    vertical-align: bottom;
    float: right;
    margin-top: -2px;
}

.gwp_activitytitle {
    /*min-width:460px;*/
    font-family: "Lato", "Lato", sans-serif;
}

.gwp_blogstitle {
    font-family: "Lato", "Lato", sans-serif;
    text-transform: uppercase;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                              supported by Chrome, Edge, Opera and Firefox */
    cursor: pointer;
}

.gwp_blogtitle {
    font-weight: 700;
    font-size: 1.6em;
    text-align: center;
    margin: 0 0 6px;
    color: #1a1a1a;
    line-height: 1.3;
}

.gwp_blogsubtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.gwp_blogtaxonomies {
    margin: 12px 0 0;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gwp_blogtaxonomies>div {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: color-mix(in srgb, var(--accent1) 10%, white);
    color: var(--accent1);
    border: 1px solid color-mix(in srgb, var(--accent1) 20%, transparent);
}

.gwp_blogtoggleup {
    display: none;
    font-size: 20px;
    margin-left: 5px;
    cursor: pointer;
}

.gwp_blogtoggledown {
    font-size: 20px;
    margin-left: 5px;
    cursor: pointer;
}

.gwp_pagenumbers {
    float: right;
    margin-bottom: 20px;
}

.gwp_fieldtitle {
    font-size: 14px;
    display: block;
    width: 100%;
    display: inline;
    position: inherit;
    float: left;
    font-family: 'Lato', sans-serif;
}

.gwp_fieldcontent {
    display: inline;
    vertical-align: text-top;
    position: inherit;
    margin: 0px 0px 0px 0px;
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;

}

/*more button */
.gwp_more_buttonwrap {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.gwp_hr {
    margin-top: 5px;
    display: block;
    width: 100%;
    opacity: 0.5;
}

.gwp_more_button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    background-color: #ffffff;
    color: var(--accent1);
    border: 1px solid color-mix(in srgb, var(--accent1) 30%, #e5e7eb);
    text-align: center;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    border-radius: 8px;
    transition: all 0.15s;
}

.gwp_more_button:hover {
    background-color: color-mix(in srgb, var(--accent1) 8%, white);
    border-color: var(--accent1);
}

.gwp_more_button:active {
    position: relative;
}

/*less button */
.gwp_less_button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    background-color: #ffffff;
    color: var(--accent1);
    border: 1px solid color-mix(in srgb, var(--accent1) 30%, #e5e7eb);
    text-align: center;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    border-radius: 8px;
    transition: all 0.15s;
}

.gwp_less_button:hover {
    background-color: color-mix(in srgb, var(--accent1) 8%, white);
    border-color: var(--accent1);
}

.gwp_less_button:active {
    position: relative;
}

.gwp_sbutton {
    display: inline-block;
    margin-right: 5px;
    padding: 10px;
    font-weight: 600;
    background-color: #ffffff;
    color: var(--accent1);
    border: solid 1px var(--accent1);
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -khtml-user-drag: element;
    -webkit-user-drag: element;
    border-radius: 4px;
}

.gwp_sbutton:hover {
    background-color: var(--accent1);
    color: #ffffff;
    border: solid 1px var(--accent1);
    border-radius: 4px;
}

.gwp_sbuttonsmall {
    display: inline-block;
    margin-right: 5px;
    padding: 4px;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    background-color: #ffffff;
    color: var(--accent1);
    border: solid 1px var(--accent1);
    text-align: center;
    /*text-transform: uppercase;*/
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -khtml-user-drag: element;
    -webkit-user-drag: element;
    border-radius: 2px;
    font-size: 12px;
}

.gwp_sbuttonsmall:hover {
    background-color: var(--accent1);
    color: #ffffff;
    border: solid 1px var(--accent1);
    border-radius: 2px;
}

.gwp_sbuttontiny {
    display: inline-block;
    margin-left: 5px;
    margin-right: 5px;
    padding: 2px;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    background-color: #ffffff;
    color: var(--accent1);
    border: solid 1px var(--accent1);
    text-align: center;
    /*text-transform: uppercase;*/
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -khtml-user-drag: element;
    -webkit-user-drag: element;
    border-radius: 2px;
    font-size: 12px;
}

.gwp_sbuttontiny:hover {
    background-color: var(--accent1);
    color: #ffffff;
    border: solid 1px var(--accent1);
    border-radius: 2px;
}

.gwp_sbuttonsquare {
    display: inline-block;
    padding: 10px;
    font-weight: 600;
    background-color: #ffffff;
    color: var(--accent1);
    border: solid 1px var(--accent1);
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -khtml-user-drag: element;
    -webkit-user-drag: element;
    line-height: 12px;
}

.gwp_sbuttonsquare:hover {
    background-color: var(--accent1);
    color: #ffffff;
    border: solid 1px var(--accent1);
}

.gwp_ntab {
    display: inline-block;
    margin: 0px 10px 0px 10px;
    padding: 0px 0px 0px 0px;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.gwp_ntab:hover {
    cursor: pointer;
    background: #ffffff;
    color: var(--accent1);
}

.gwp_ntab::after {
    display: block;
    content: '';
    border-bottom: solid 3px var(--accent1);
    transform: scaleX(0);
    transition: transform 250ms ease-in-out;
}

.gwp_ntab:hover:after {
    transform: scaleX(1);
}

.gwp_sntab {
    display: inline-block;
    margin: 0px 10px 0px 10px;
    padding: 0px 0px 0px 0px;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    content: '';
    border-bottom: solid 3px var(--accent1);
    transform: scaleX(1);
    transition: transform 250ms ease-in-out;
}

/*ics generator*/
.gwp_icstax>.select_multidropdown {
    background-color: #ffffff;
    border: 1px solid #ffffff;
}

.gwp_icsdetails {
    background-color: #f1f1f1;
    border-radius: 2px;
    margin-bottom: 10px;
    padding: 5px;
}

.gwp_editicstitle:hover {
    color: #000000;
    cursor: pointer;
}

.gwp_editicstitle {
    margin-left: 10px;
    color: var(--accent1);
}

.gwp_icsfilter {
    margin: 20px 0px 2px 0px;
}

.gwp_icsinfo {
    margin: 5px 0px 10px 10px;
}

.gwp_smallicsbuttons {
    margin: 10px 0px 5px 0px;
}

.gwp_icslinks {
    margin-top: 10px;
}

.gwp_icscode {
    display: inline-block;
    cursor: pointer;
}

.gwp_icsnumberinput {
    display: inline-block !important;
    width: 100%;
    min-height: 35px;
    background-color: #ffffff !important;
    border-color: #f1f1f1 !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-top-left-radius: 4px !important;
    border-top-right-radius: 4px !important;
    padding: 4.7px;
    cursor: text;
    vertical-align: middle !important;
    font: inherit;
    content: attr(empty-text);
    display: inline-block;
    margin: 4px 5px 4px 0px;
    padding: 3px 5px 3px 6px;
    /* background-color: #ffffff; */
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    padding-right: 1px !important;
    color: #747474 !important;
    opacity: 0.8;
    line-height: 13px;
}

.gwp_icsnumberinput:empty:not(:focus):before {
    font: inherit;
    content: attr(empty-text);
    display: inline-block;
    margin: 0px 6px 3px 0px;
    padding: 3px 5px 3px 0px;
    /*background-color: #ffffff;*/
    color: inherit;
    opacity: 0.8;
    line-height: 13px;
    max-height: 34px;
}

.gwp_icsnumberinput::-webkit-input-placeholder {
    /* Edge */
    display: block;
    margin: 6px 6px 4px 0px;
    padding: 3px 5px 3px 6px;
    /*background-color: #ffffff;*/
    color: #000000;
    opacity: 0.8;
    line-height: 13px;
}

.gwp_icsnumberinput:-ms-input-placeholder {
    /* Internet Explorer */
    display: block;
    margin: 6px 6px 4px 0px;
    padding: 3px 5px 3px 6px;
    /*background-color: #ffffff;*/
    color: #000000;
    opacity: 0.8;
    line-height: 13px;
}

.gwp_icsnumberinput::placeholder {
    display: block;
    margin: 6px 6px 4px 0px;
    padding: 3px 5px 3px 6px;
    /*background-color: #ffffff;*/
    color: #000000;
    opacity: 0.8;
    line-height: 13px;
}

/*countdown timer*/
.gwp_cdtitle {
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 8px;
}

.gwp_cdevent {
    margin-top: 5px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 5px;
    padding: 10px 5px 10px 5px;
    width: 250px;
    text-align: center;
}

.gwp_widgitcountdown {
    text-align: center;
    font-size: 18px;
}

.gwp_cddivider {
    display: inline-block;
    padding-left: 8px;
    padding-right: 8px;
    border: 1.5px solid;
    border-left: 1.5px transparent;
    border-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(226, 226, 226, 1) 48%, rgba(255, 255, 255, 0) 100%);
    border-image-slice: 1;
}

.gwp_cdldivider {
    display: inline-block;
    padding-left: 8px;
    padding-right: 8px;
}

.gwp_timelabel {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
}

.gwp_cdlive {
    font-size: 10px;
    margin-left: 10px;
    margin-right: 2px;
    color: red;
    vertical-align: middle;
}

.gwp_cdwidgitdate {
    margin-top: 8px;
    text-transform: uppercase;
}

.gwp_cdend {
    display: none;
    font-size: 10px;
    text-transform: uppercase;
}

.gwp_cdended {
    display: none;
    margin-top: 10px;
    font-size: 14px;
}

/*upcomingevents*/
/*.gwp_upcomingevents{
  margin: 10px;
  padding: 5px;
}*/

.gwp_pueframe {
    margin: 20px 10px 20px 10px;
    padding: 0px 20px 20px 20px;
    /* border: 1px solid #efefef; */
    background-color: #efefef;
    border-radius: 4px;
}

.gwp_puenav {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 4px;
}

.gwp_puegtitle {
    margin-top: -5px;
    padding: 10px 20px;
    font-size: 28px;
    margin-bottom: 20px;
    display: inline-block;
    background-color: var(--accent1);
    color: #ffffff;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.gwp_puebnav {
    margin-top: 20px;
    padding: 10px 00px 0px 0px;
}

.gwp_puebutton {
    display: inline-block;
    margin-right: 15px;
    background-color: #000000;
    border: 1px solid black;
    border-radius: 2px;
    padding: 5px 10px 5px 10px;
    color: #ffffff;
    cursor: pointer;
}

.gwp_puebutton:hover {
    display: inline-block;
    background-color: #ffffff;
    border: 1px solid black;
    color: #000000;
    cursor: pointer;
}

.gwp_pueimageframe {
    margin-top: 20px;
    padding: 20px;
    background-color: #ffffff;
    width: 700px;
    border-radius: 4px;
}

.gwp_pueventsframe {
    /*display: none;*/
    padding: 20px;
    background-color: #ffffff;
    border-radius: 4px;
}

.gwp_editpue {
    padding: 10px 0px 20px 0px;
}

.gwp_editpue>.select_tabmframe {
    display: inline-block;
}


.gwp_editcunit {
    display: inline-block;
    border: 1px solid #efefef;
    border-radius: 4px;
    margin-top: 20px;
    margin-right: 10px;
    padding: 5px 5px 5px 5px;
    font-weight: normal;
    font-size: 10px;
    background-color: #efefef;
    vertical-align: top;
}

.gwp_pufont {
    width: 120px;
}

.gwp_eselectframe {
    display: inline-block;
    min-width: 90px;
    max-width: 125px;
    background-color: #efefef;
    margin-right: 5px;
    margin-top: -2px;
    padding: 5px 0px;
    vertical-align: middle;
    cursor: pointer;
}

.gwp_puselect>.select_singledropdown {
    background-color: #ffffff;
    padding-top: -1px;
    padding-bottom: 3px;
    padding-left: 5px;
    padding-right: 5px;
    border: 0px;
    min-height: 11px;
    max-height: 18px;
    line-height: 10px;
    font-size: 10px;
    vertical-align: middle;
    border-radius: 4px;
    text-overflow: ellipsis;
}

.gwp_puselect>.select_singledropdown:after {
    float: right;
    content: "\25bc";
    color: var(--accent1);
    margin-left: 5px;
    margin-right: 2px;
}

.gwp_puselect>.select_dropdown>.select_dropdownitem {
    font-size: 10px;
}

.gwp_puselect>.select_dropdown>.select_dropdownitem_selected {
    font-size: 10px;
}

.gwp_ecudiv {
    margin-bottom: 5px;
}

.gwp_ecudiv>i {
    margin-right: 3px;
}

.gwp_editcunit .select_num_negative,
.gwp_editcunit .select_num_positive {
    padding-top: 4px;
}

.gwp_editcspace {
    padding: 6px;
}

.gwp_puemargin {
    margin: 0px 0px 0px 0px;
}

.gwp_puevents {
    display: inline-block;
    background-color: #ffffff;
    padding: 0px 0px 0px 0px;
    border: 0px;
}

.gwp_imagedownload {
    cursor: pointer;
}

.gwp_puerimage {
    padding-bottom: 10px;
    font-weight: bold;
    font-size: 14px;
}


.gwp_pueimage {
    margin-top: 10px;
    background-color: #ffffff;
    width: 660px;
    cursor: pointer;


}

.gwp_puecodeframe {
    margin-top: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 4px;
}

.gwp_puecHTML {
    padding-bottom: 10px;
    font-weight: bold;
    font-size: 14px;
}

.gwp_puecode {
    margin-bottom: 10px;
    word-wrap: break-word;
    white-space: normal;
    min-height: 50px;
    max-height: 200px;
    border: 1px solid #efefef;
    background-color: #ffffff;
}

/* Upcoming Events Widget — Container */
.gwp_upcomingevents {
    --ue-accent: var(--accent1, #4361ee);
    --ue-bg: transparent;
    --ue-font: #333333;
    --ue-date-bg: var(--ue-accent);
    --ue-date-font: #ffffff;
    --ue-border: #e8e8e8;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.gwp_uevent {
    margin-bottom: 10px;
    cursor: pointer;
}

.gwp_uevents {
    display: flex;
    align-items: stretch;
    background: var(--ue-bg, #ffffff);
    color: var(--ue-font, #333333);
    border: 1px solid var(--ue-border, #e8e8e8);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.gwp_uevents:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.gwp_widgettitle {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ue-font, #333333);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--ue-accent, var(--accent1, #4361ee));
    display: inline-block;
}

/* Date badge — .gwp_uevents prefix for specificity over .gwp_inlineblock */
.gwp_uevents > .gwp_udateicon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 12px 8px;
    background: var(--ue-date-bg, var(--accent1, #4361ee));
    color: var(--ue-date-font, #ffffff);
    font-family: 'Lato', sans-serif;
    text-align: center;
    flex-shrink: 0;
}

.gwp_udateicon .gwp_ue_day {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
}

.gwp_udateicon .gwp_ue_suffix {
    font-size: 13px;
    font-weight: 400;
    vertical-align: super;
}

.gwp_udateicon .gwp_ue_month {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Event details — .gwp_uevents prefix for specificity over .gwp_inlineblock */
.gwp_uevents > .gwp_ueventdetails {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 16px;
    min-width: 0;
    flex: 1;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.gwp_uetitle {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gwp_uedatetime {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 13px;
    color: #666666;
    line-height: 1.4;
}

.gwp_uedate,
.gwp_uetime {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.gwp_uedate i,
.gwp_uetime i,
.gwp_uelocation i {
    color: var(--ue-accent, var(--accent1, #4361ee));
    font-size: 12px;
}

.gwp_uelocation {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #888888;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* "LIVE" badge — sits next to title */
.gwp_ue_live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: var(--ue-live, #dc2626);
    padding: 2px 9px;
    border-radius: 12px;
    line-height: 1.6;
    margin-left: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.gwp_ue_live i {
    color: #ffffff;
    font-size: 11px;
    animation: gwp_ue_pulse 1.5s ease-in-out infinite;
}

@keyframes gwp_ue_pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* No events message */
.gwp_ue_noresults {
    padding: 24px 16px;
    text-align: center;
    color: #999999;
    font-size: 14px;
    border: 1px dashed var(--ue-border, #e0e0e0);
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 400px) {
    .gwp_udateicon {
        min-width: 56px;
        padding: 10px 6px;
    }
    .gwp_udateicon .gwp_ue_day {
        font-size: 22px;
    }
    .gwp_ueventdetails {
        padding: 10px 12px;
    }
    .gwp_uetitle {
        font-size: 14px;
    }
}

.gwp_rowformat>.select_multidropdown {
    background-color: #ffffff;
    border-color: #f1f1f1;
}

/*//Gatherova items//*/
.gwp_item_hr {
    font-family: 'Lato', sans-serif;
    font-size: 30px;
    display: inline-block;
    border: none;
    border-bottom: 4px solid var(--accent1);
    width: 100%;
    margin-top: 0px;
    margin-bottom: 0px;
}

#sortable {
    overflow: auto;
    max-height: 350px;
}

.gwp_scheduleframe {
    margin: 4px;
}

.gwp_frame {
    /*background-color: #ffffff;*/
    border-color: var(--accent1);
    display: block;
    width: 100%;
    max-width: 100VW;
    min-height: 10px;
    flex: 1 1 100%;
}


.gwp_subheader {
    display: block;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
    letter-spacing: -0.01em;
}

.gwp_li {
    margin-bottom: 0px !important;
    list-style-type: none;
}

.ui-state-default {
    margin-bottom: 0px !important;
}

.gwp_formcontainer {
    display: block;
    margin: 0 auto;
    /*overflow: hidden;*/
    width: 100%;
    min-height: 40px;
}

/*.gwp_helper{
            display: inline-block;
            vertical-align: middle;
            height: 100%;
        }*/

.gwp_dragicon {
    float: left;
    margin-left: 5px;
    margin-right: 10px;
    margin-top: 7px;
    max-height: 20px;
}

.gwp_dragcicon {
    float: left;
    margin-left: 5px;
    margin-right: 10px;
    margin-top: 7px;
}

.gwp_dragiconcell {
    height: 33%;
    display: inline-block;
    vertical-align: middle;
}

.gwp_dragticon {
    height: 33%;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.fa-sort {
    color: #7F8C8D;
}

.gwp_img {
    display: block;
    height: 20px;
}

.gwp_fieldcontainer {
    width: 85%;
    display: inline-block;
    margin-top: 4px;
}

.gwp_removecontainer {
    float: right;
    margin-top: 12px;
}

#gwp_remove_button {
    /*-webkit-transform: rotate(-90deg);*/
    margin-top: 3px;
    float: right;
}

.gwp_label {
    display: block;
    background-color: var(--accent1);
    color: #ffffff;
    width: inherit;
    white-space: nowrap;
    text-align: center;
}

.gwp_starttime,
.gwp_endtime {
    min-height: 40px;
    display: inline-block !important;
    width: inherit !important;
}

#gwp_starttime,
#gwp_endtime {
    min-height: 20px;
    min-height: 32px;
    background-color: #ffffff !important;
    border-color: #aaa !important;
    border-width: 1px !important;
    border-style: solid !important;
    padding: 4.7px;
    cursor: text;
    vertical-align: middle !important;
}

#gwp_starttime,
#gwp_endtime,
#gwp_person,
#gwp_persons,
#gwp_role,
#gwp_role_person,
#gwp_role_persons,
#gwp_activity {
    display: inline-block;
    margin: 0px;

}

#gwp_startingtime,
#gwp_finishingtime {
    display: inline-block;
    padding-left: 5px;
}

.gwp_rtoggletime {
    display: inline-block;
}

.chosen-select {
    width: 10px;
    height: 34px;
    width: 5%;
}

.chosen-container {
    border: 0px solid #eee !important;
}

.gwp_scheduler_time {
    display: inline-block;
    padding: 0px;
    margin-right: 10px;
    vertical-align: top;
}

.gwp_scheduler_roleinput {
    display: inline-block !important;
    width: 100%;
    min-height: 40px;
    background-color: #ffffff !important;
    border-color: #aaa !important;
    border-width: 1px !important;
    border-style: solid !important;
    padding: 4.7px;
    cursor: text;
    vertical-align: middle !important;
    font: inherit;
    content: attr(empty-text);
    display: inline-block;
    margin: 4px 5px 4px 0px;
    padding: 3px 5px 3px 6px;
    /* background-color: #ffffff; */
    color: #747474;
    opacity: 0.8;
    line-height: 13px;
}

.gwp_scheduler_roleinput::-webkit-input-placeholder {
    /* Edge */
    display: block;
    margin: 6px 6px 4px 0px;
    padding: 3px 5px 3px 6px;
    /*background-color: #ffffff;*/
    color: #000000;
    opacity: 0.8;
    line-height: 13px;
}

.gwp_scheduler_roleinput:-ms-input-placeholder {
    /* Internet Explorer */
    display: block;
    margin: 6px 6px 4px 0px;
    padding: 3px 5px 3px 6px;
    /*background-color: #ffffff;*/
    color: #000000;
    opacity: 0.8;
    line-height: 13px;
}

.gwp_scheduler_roleinput::placeholder {
    display: block;
    margin: 6px 6px 4px 0px;
    padding: 3px 5px 3px 6px;
    /*background-color: #ffffff;*/
    color: #000000;
    opacity: 0.8;
    line-height: 13px;
}

.gwp_scheduler_role {
    display: inline-block;
    padding: 0px;
    margin-right: 8px;
}

.gwp_scheduler_activity {
    display: inline-block;
    padding: 0px;
    margin-right: 10px;
    vertical-align: top;
}

.gwp_scheduler_activityinput {
    display: inline-block;
    background-color: #ffffff;
    width: 300px;
}

.gwp_scheduler_leader {
    display: inline-block;
    padding: 0px;
    margin-right: 10px;
    vertical-align: top;
}

.gwp_scheduler_leaderinput {
    display: inline-block;
    background-color: #ffffff;
    min-width: 150px;
    min-height: 40px;
}

.gwp_scheduler_users {
    display: inline-block;
    padding: 0px;
    margin-right: 10px;
    vertical-align: top;

}

.gwp_scheduler_usersinput {
    display: inline-block;
    background-color: #ffffff;
    min-width: 150px;
    min-height: 40px;
}

.gwp_scheduler_extrafields {
    margin-top: 4px;
}

.gwp_litem {
    display: none;
}

.gwp_scheduler_remove {
    display: inline-block;
    padding: 0px;
    margin-top: 0px !important;
    min-height: 34px;
    width: 5%;
}

.gwp_inlineblock {
    display: inline-block;
}

.gwp_hyear .select_input {
    min-width: 120px;
    max-width: 200px;
    font-weight: 600;
}

.gwp_add {
    margin-left: 5px;
    margin-right: 5px;
    color: var(--accent1);
}

.movable-row-placeholder {
    background: #ccc;
    height: auto;
    display: block;
    padding: 20px;
    margin: 15px 0 15px 0;
    border-style: dashed;
    border-width: 2px;
    border-color: #7F8C8D;
}

.gwp_topbuttons {
    margin-left: 0px;
    margin-top: 20px;
    margin-bottom: 20px;
}


.gwp_topbuttonhidden {
    display: none;
}

.gwp_bottombuttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.gwp_bottombutton {
    margin-right: 5px !important;
}

.gwp_loadingpopup {
    display: none;
    position: fixed;
    z-index: 29000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.gwp_loader {
    width: 192px;
    height: 192px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gwp_loader::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(transparent 0deg 15deg, #000000 15deg 175deg, transparent 175deg 195deg, var(--accent1, #e76f51) 195deg 355deg, transparent 355deg 360deg);
    mask: radial-gradient(circle at center, transparent 94px, black 95px);
    -webkit-mask: radial-gradient(circle at center, transparent 94px, black 95px);
    animation: gwp_loader_spin 2.5s linear infinite;
    -webkit-animation: gwp_loader_spin 2.5s linear infinite;
}
@keyframes gwp_loader_spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.gwp_loader_icon {
    width: 102px;
    height: 102px;
    object-fit: contain;
    display: block;
    animation: gwp_loader_pulse 2.8s ease-in-out infinite;
    -webkit-animation: gwp_loader_pulse 2.8s ease-in-out infinite;
}
@keyframes gwp_loader_pulse {
    0%   { transform: scale(0.9); }
    50%  { transform: scale(1); }
    100% { transform: scale(0.9); }
}

/* OnlyOffice modal */
#gwp_oo_modal { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
#gwp_oo_editor_container { flex: 1; min-height: 0; }

.gwp_floaderbox {
    display: none;
    border: 1px solid #ffffff;
    background-color: #ffffff;
    cursor: pointer;
    padding: 5px 5px 5px 5px;
    margin-right: 5px;
    min-height: 30px;
    font-size: 18px;
    height: 30px;
    width: 30px;
    align-items: center;
    border-radius: 5px;
}

.gwp_floader {
    background-color: #ffffff;
    display: inline-block;
    margin-top: -1px;
    margin-left: -1px;
    width: 20px;
    height: 20px;
    border: 5px dashed var(--accent1);
    animation-name: frotate;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    border-radius: 50%;
}

.gwp_bloaderframe {
    display: inline-block;
    margin-left: 20px;
    vertical-align: middle;
}

.gwp_bloader {
    margin-left: auto;
    margin-right: auto;
    width: 10px;
    height: 10px;
    border: 5px dashed var(--accent1);
    animation-name: frotate;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    border-radius: 50%;
}

@keyframes frotate {
    from {
        transform: rotate(-360deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.gwp_srotate {
    -webkit-animation: spin 2s linear infinite;
    /* Safari */
    animation: spin 2s linear infinite;
}

.gwp_ytserror {
    color: red;
}

/* ── YouTube Sync Popup (modernized) ── */
.gwp_ytsync_modern {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0;
}

/* Sync popup dropdowns — full width inside cards */
.gwp_yts_dropdown {
    margin-top: 4px;
    margin-bottom: 4px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Sync option cards */
.gwp_yts_card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.gwp_yts_card:hover {
    border-color: var(--accent1, #F83600);
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.gwp_yts_card_header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 0;
}
.gwp_yts_card_icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, rgba(59,130,246,0.04) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gwp_yts_card_icon i {
    font-size: 20px;
    color: var(--accent1, #F83600);
}
/* YouTube red icon for first card */
.gwp_yts_card:first-of-type .gwp_yts_card_icon {
    background: linear-gradient(135deg, rgba(220,38,38,0.12) 0%, rgba(220,38,38,0.04) 100%);
}
.gwp_yts_card:first-of-type .gwp_yts_card_icon i {
    color: #ef4444;
}
.gwp_yts_card_title h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}
.gwp_yts_card_title p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #6b7280;
}
.gwp_yts_card_body {
    padding: 12px 16px 14px;
}

/* Sync buttons — always on own line */
.gwp_yts_checkbox_label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    margin-bottom: 12px;
    cursor: pointer;
}
.gwp_yts_checkbox_label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent1, #F83600);
    cursor: pointer;
}
.gwp_yts_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 18px;
    background: var(--accent1, #F83600);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 10px;
}
.gwp_yts_btn:hover {
    background: color-mix(in srgb, var(--accent1, #F83600) 85%, #000);
    transform: translateY(-1px);
}
.gwp_yts_btn:active {
    transform: translateY(0);
}
.gwp_yts_btn i {
    font-size: 15px;
}

/* Input row */
.gwp_yts_input_row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gwp_yts_input {
    width: 100%;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #1f2937;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.gwp_yts_input:focus {
    border-color: var(--accent1, #F83600);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.gwp_yts_input::placeholder {
    color: #9ca3af;
}

/* Status & error messages */
.gwp_yts_status {
    padding: 8px 12px;
    background: #f0f4ff;
    border: 1px solid #e0e7ff;
    border-radius: 6px;
    font-size: 12px;
    color: #4b5563;
    margin-top: 6px;
}
.gwp_yts_status:empty {
    display: none;
}
.gwp_yts_error {
    padding: 6px 12px;
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}
.gwp_yts_error:empty {
    display: none;
}

/* Field labels inside cards */
.gwp_yts_field_label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    margin-bottom: 2px;
}

/* Channel picker in sync popup */
.gwp_yts_channel_picker {
    margin-bottom: 4px;
}
.gwp_yts_channel_dropdown {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.gwp_yts_ch_option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    flex: 1;
    min-width: 140px;
}
.gwp_yts_ch_option:hover {
    border-color: var(--accent1, #F83600);
    background: #eff6ff;
}
.gwp_yts_ch_option.gwp_yts_ch_active {
    border-color: var(--accent1, #F83600);
    background: #eff6ff;
    box-shadow: 0 0 0 1px var(--accent1, #F83600);
}
.gwp_yts_ch_option img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}
.gwp_yts_ch_option .gwp_yts_ch_name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gwp_yts_ch_option .gwp_yts_ch_method {
    font-size: 10px;
    color: #9ca3af;
}
.gwp_yts_ch_none {
    font-size: 13px;
    color: #9ca3af;
    padding: 8px 0;
}

/* Spinning sync icon */
.gwp_srotate {
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* YouTube sync popup — taller to fit group dropdown + cards */
#gwp_syncytv .gwp_popupbodyda {
    height: auto;
    max-height: 90vh;
    margin-top: 0;
    top: 5vh;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*//calendarmetabox//*/
.gwp_reoccurringtypeframes {
    display: none;
}

.gwp_fieldrow {
    margin-top: 5px;
    margin-bottom: 5px;
}

.gwp_reoccurringday {
    display: none;
}

.gwp_atst {
    display: none;
    margin-left: 5px;
}

.gwp_seriesenddate {
    display: none;
    margin-left: 5px;
}

.gwp_seriesendno {
    display: none;
    margin-left: 5px;
}

.gwp_rday {
    display: none;
}

.gwp_dayandweek {
    display: none;
    margin-left: 5px;
}

.gwp_dayofweek {
    display: none;
    margin-left: 5px;
}

.gwp_input {
    min-height: 34px;
    border: 1px solid #aaa !important;
    vertical-align: middle;
}

.gwp_inputcheckbox {
    margin-left: 2px;
}

/*///custom forms///*/
.gwp_form {
    margin: 10px 20px 20px 20px;
    padding: 30px 20px 30px 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    background-color: #ffffff;
}

.gwp_formtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
    text-transform: uppercase;
    font-size: 26px;
    text-align: left;
    font-weight: 600;
    margin-bottom: 24px;
    padding: 0 15px;
}

.gwp_formtitle_text {
    display: block;
    width: 100%;
    min-width: 0;
    outline: none;
}

.gwp_formtitle_editing {
    border-bottom: 2px dashed var(--accent1);
    padding-bottom: 4px;
    cursor: text;
    min-width: 150px;
}

.gwp_formtitle_editing:focus {
    border-bottom-style: solid;
}

.gwp_formtitle_editing:empty::before {
    content: 'Enter form title...';
    color: #aaa;
    font-style: italic;
    text-transform: none;
    font-weight: 400;
    font-size: 18px;
}

.gwp_formsubtitle_text {
    display: block;
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    text-transform: none;
    margin-top: 4px;
    outline: none;
}

.gwp_formsubtitle_text:empty {
    display: none;
}

.gwp_formsubtitle_text.gwp_formsubtitle_editing {
    display: block;
}

.gwp_formsubtitle_editing {
    border-bottom: 2px dashed var(--accent1);
    padding-bottom: 2px;
    cursor: text;
    min-width: 100px;
}

.gwp_formsubtitle_editing:focus {
    border-bottom-style: solid;
}

.gwp_formsubtitle_editing:empty::before {
    content: 'Enter subtitle...';
    color: #aaa;
    font-style: italic;
}

.gwp_nullformtitle {
    display: none;
}

.gwp_formnameids {
    display: none;
}

.gwp_formfields {
    display: block;
    width: 100%;
}

.gwp_formfieldline {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 0 15px;
    font-size: 14px;
}

.gwp_formfieldlinealt {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    background-color: #ffffff;
    vertical-align: top;
    margin-right: 10px;
}

.gwp_formfieldlinehidden {
    display: none;
}


.gwp_formfieldsubtitle {
    font-size: 18px;
    font-weight: 600;
}

.gwp_formfieldtitle {
    min-width: 120px;
    max-width: 120px;
    margin: 0;
    padding-top: 8px;
    line-height: 1.4;
    flex-shrink: 0;
    font-size: 16px;
}

.gwp_required_indicator {
    color: #ef4444;
    font-weight: 600;
    margin-left: 4px;
}

.gwp_formfieldtitlealt {
    display: inline-block;
    vertical-align: top;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

.gwp_formfieldvalue {
    display: inline-block;
    vertical-align: top;
    font-size: 16px;
    margin-top: 10px;
    margin-left: 5px;
}

.gwp_formfield {
    display: flex;
    align-items: center;
    min-height: 38px;
    flex-wrap: nowrap;
    flex: 1;
    gap: 0;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/* Switch fields - inline layout */
.gwp_formfieldline[gwp_ftype="switch"] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.gwp_formfieldline[gwp_ftype="switch"] .gwp_formfieldtitle {
    margin: 0;
    padding-top: 0;
}

.gwp_formfieldline[gwp_ftype="switch"] .gwp_formfield {
    display: inline-flex;
    align-items: center;
}

/* Consistent spacing for all field types */
.gwp_formfieldline[gwp_ftype="text"] .gwp_formfieldtitle,
.gwp_formfieldline[gwp_ftype="email"] .gwp_formfieldtitle,
.gwp_formfieldline[gwp_ftype="telephone"] .gwp_formfieldtitle,
.gwp_formfieldline[gwp_ftype="url"] .gwp_formfieldtitle,
.gwp_formfieldline[gwp_ftype="password"] .gwp_formfieldtitle,
.gwp_formfieldline[gwp_ftype="number"] .gwp_formfieldtitle,
.gwp_formfieldline[gwp_ftype="date"] .gwp_formfieldtitle,
.gwp_formfieldline[gwp_ftype="time"] .gwp_formfieldtitle,
.gwp_formfieldline[gwp_ftype="datetime-local"] .gwp_formfieldtitle,
.gwp_formfieldline[gwp_ftype="dropdown box"] .gwp_formfieldtitle,
.gwp_formfieldline[gwp_ftype="tagbox"] .gwp_formfieldtitle,
.gwp_formfieldline[gwp_ftype="star rating"] .gwp_formfieldtitle,
.gwp_formfieldline[gwp_ftype="slider"] .gwp_formfieldtitle,
.gwp_formfieldline[gwp_ftype="fill blanks"] .gwp_formfieldtitle,
.gwp_formfieldline[gwp_ftype="credit card"] .gwp_formfieldtitle {
    padding-top: 8px;
    margin: 0;
}

/* Textarea and form text fields */
.gwp_formfieldline[gwp_ftype="textarea"],
.gwp_formfieldline[gwp_ftype="form text"] {
    flex-direction: row;
    align-items: flex-start;
}

.gwp_formfieldline[gwp_ftype="textarea"] .gwp_formfieldtitle,
.gwp_formfieldline[gwp_ftype="form text"] .gwp_formfieldtitle {
    margin: 0;
    padding-top: 8px;
}

.gwp_formfieldline[gwp_ftype="textarea"] .gwp_formfield,
.gwp_formfieldline[gwp_ftype="form text"] .gwp_formfield {
    flex: 1;
    flex-wrap: wrap;
}

.gwp_sformfield {
    display: inline-block;
    width: 30%;
    vertical-align: top;
    margin-top: 10px;
    font-size: 16px;
}

.gwp_formfieldalt {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    width: 70%;
    font-size: 14px;
}

.gwp_formfieldsalt {
    display: inline-block;
    vertical-align: middle;
}


.gwp_boxstyle {
    display: inline-block;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
}

.gwp_formfieldalt>.switch {
    margin-bottom: 0px;
}

.gwp_forminlineblock {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.gwp_forminlineblock>.switch {
    margin-bottom: 0px;
}

.gwp_validationfield {
    display: block;
}

.gwp_spacingblock {
    display: inline-block;
    line-height: 30px;
}

.switch-paddle {
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.gwp_required {
    display: none;
    color: red;
    font-size: 12px;
    font-style: italic;
}

/* SUBMIT BUTTON - Styles moved to select.css */

/* =============================================
   LETTERHEAD FIELD STYLES
   ============================================= */

.gwp_formfieldline[gwp_ftype="letterhead"] .gwp_letterhead {
    flex: 1;
    min-width: 0;
}

.gwp_letterhead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.gwp_letterhead_logo {
    flex-shrink: 0;
}

.gwp_letterhead_logo img {
    max-width: 150px;
    max-height: 80px;
    height: auto;
    object-fit: contain;
}

.gwp_letterhead_address {
    flex: 1;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    text-align: right;
}

/* Layout: Logo left, address right (default) */
.gwp_letterhead_logo-left {
    flex-direction: row;
}

/* Layout: Address left, logo right */
.gwp_letterhead_logo-right {
    flex-direction: row-reverse;
}

.gwp_letterhead_logo-right .gwp_letterhead_address {
    text-align: left;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .gwp_letterhead {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .gwp_letterhead_address {
        text-align: center !important;
    }
}

/* Image Display field */
.gwp_imagedisplay {
    padding: 10px 0;
    width: 100%;
}

.gwp_imagedisplay img {
    display: block;
    height: auto;
    border-radius: 8px;
}

.gwp_imagedisplay_left {
    text-align: left;
}

.gwp_imagedisplay_center {
    text-align: center;
}

.gwp_imagedisplay_center img {
    margin: 0 auto;
}

.gwp_imagedisplay_right {
    text-align: right;
}

.gwp_imagedisplay_right img {
    margin-left: auto;
}

/* Event header image upload */
.gwp_evt_headerimage_box {
    padding: 10px 0;
    margin-bottom: 10px;
}

.gwp_field_hint {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.gwp_evt_headerimage_preview img {
    max-width: 300px;
    height: auto;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* View Event Popup */
.gwp_vevt_body {
    padding: 0 !important;
    overflow: hidden;
}

.gwp_vevt_close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    line-height: 1;
}

.gwp_vevt_close:hover {
    background: rgba(0,0,0,0.7);
}

.gwp_vevt_headerimage {
    display: none;
    width: 100%;
    max-height: 280px;
    overflow: hidden;
    background: var(--accent2, #264653);
}

.gwp_vevt_headerimage img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.gwp_vevt_header {
    padding: 24px 28px 16px;
    border-bottom: none;
}

#gwp_viewevent #gwp_vevttitle {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent2, #264653);
    margin: 0 0 6px;
    line-height: 1.3;
    display: block;
}

#gwp_viewevent #gwp_vevtsubtitle {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.5;
    margin-bottom: 0;
}

#gwp_viewevent #gwp_vevtsubtitle i {
    color: var(--accent1);
    font-size: 16px;
}

#gwp_viewevent .gwp_popupcontent {
    padding: 0 28px 20px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

#gwp_viewevent .gwp_popupbuttons {
    margin-top: auto;
    flex: 0 0 auto;
}

.gwp_vevt_section {
    display: none;
    margin-bottom: 20px;
}

.gwp_vevt_section_header {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent2, #264653);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gwp_vevt_section_header i {
    font-size: 16px;
    color: var(--accent1);
}

.gwp_vevt_descriptor {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

.gwp_vevt_descriptor p {
    margin: 0 0 12px !important;
    font-family: inherit !important;
}

.gwp_vevt_items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gwp_vevt_card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.gwp_vevt_card:hover {
    background: #e2e8f0;
    border-color: var(--accent1);
    color: var(--accent1);
}

.gwp_vevt_card i {
    font-size: 16px;
    color: var(--accent1);
}

.gwp_vevt_attach {
    color: #334155;
}

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

.gwp_vevt_tickets_section {
    margin-bottom: 16px;
}

.gwp_vevt_ticket_banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

.gwp_vevt_ticket_info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gwp_vevt_ticket_info > i {
    font-size: 28px;
    color: #16a34a;
}

.gwp_vevt_ticket_info strong {
    display: block;
    font-size: 15px;
    color: #15803d;
    margin-bottom: 2px;
}

.gwp_vevt_ticket_prices {
    display: block;
    font-size: 13px;
    color: #4b5563;
}

.gwp_vevt_ticket_actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.gwp_vevt_buy_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.gwp_vevt_buy_btn:hover {
    background: #15803d;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.gwp_vevt_buy_btn i {
    font-size: 16px;
}

.gwp_vevt_tags {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.gwp_vevt_tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    color: #64748b;
}

.gwp_vevt_tag i {
    font-size: 13px;
    color: var(--accent1);
}

.gwp_vevt_footer {
    padding: 12px 28px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.gwp_vevt_pubinfo {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
}

.gwp_vevt_pubinfo b {
    color: #64748b;
    font-weight: 600;
}

.gwp_vevt_roomd {
    font-size: 14px;
    color: #374151;
    padding: 6px 0;
}

/* ===========================================
   EVENT EDITOR - Modernised Action Bar & Publish Footer
   =========================================== */

#gwp_addevent .gwp_popupbuttons {
    flex: 0 0 auto;
    margin: 0 -20px;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
}

.gwp_evt_submitbox {
    border-top: 1px solid #e2e8f0;
    padding: 0;
    margin: 0;
}

.gwp_evt_submitbox .gwp_hr {
    display: none;
}

.gwp_evt_actionbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 10px;
}

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

.gwp_evt_actionbar_right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gwp_evt_btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fff;
    color: #475569;
    line-height: 1;
}

.gwp_evt_btn i {
    font-size: 15px;
}

.gwp_evt_btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

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

.gwp_evt_btn_save:hover {
    background: var(--accent2, #005a87);
    border-color: var(--accent2, #005a87);
    color: #fff;
}

.gwp_evt_btn_delete {
    color: #dc2626;
    border-color: #fecaca;
}

.gwp_evt_btn_delete:hover {
    background: #fef2f2;
    border-color: #f87171;
    color: #b91c1c;
}

.gwp_evt_btn_view {
    color: var(--accent1, #0073aa);
    border-color: #bfdbfe;
}

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

.gwp_evt_pubfooter {
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.gwp_evt_pubgrid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.gwp_evt_pubitem {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #94a3b8;
}

.gwp_evt_pubitem i {
    font-size: 14px;
    color: var(--accent1, #0073aa);
    opacity: 0.6;
}

.gwp_evt_pubitem b {
    color: #64748b;
    font-weight: 600;
    margin-right: 4px;
}

.gwp_evt_pubitem span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gwp_evt_resourcelist {
    margin-bottom: 4px;
}

.gwp_evt_resourcelist .select_singleframe {
    min-width: 260px;
}

.gwp_evt_resourcelist .select_singledropdown {
    min-width: 260px;
}

/* Resource list container (forms, rotas, registers) */
.gwp_evt_resourcelists {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Individual resource row in popup */
.gwp_resource_row {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    transition: background 0.15s, border-color 0.15s;
}

.gwp_resource_row:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.gwp_resource_row .gwp_schid {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
    min-width: 32px;
    flex-shrink: 0;
}

.gwp_resource_row .gwp_schtitle {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.gwp_resource_row .gwp_editschedule {
    float: none;
    margin-top: 0;
    padding: 0;
    margin-left: 6px;
}

.gwp_resource_row .gwp_editschedule .gwp_save_button {
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 5px;
    margin-left: 0;
    margin-right: 0;
}

/* Ticket type rows */
.gwp_ticket_typerow {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s, border-color 0.15s;
}

.gwp_ticket_typerow:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.gwp_ticket_typeinfo {
    font-size: 13px;
    color: #374151;
    flex: 1;
}

.gwp_ticket_typeinfo b {
    font-weight: 600;
    color: #1f2937;
}

.gwp_ticket_typeinfo i {
    color: #6b7280;
    font-style: italic;
}

/* ============================================
   Resources Tab — Section Styling
   ============================================ */
.gwp_resource_section {
    margin-top: 16px;
}

.gwp_resource_section:first-child {
    margin-top: 0;
}

.gwp_resource_section_body {
    padding: 0 0 8px 0;
}

/* Toggle label for plain checkboxes (NOT pill toggles — those are styled in select.css) */
.gwp_plain_toggle_label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    padding: 6px 0 10px 0;
}

.gwp_plain_toggle_label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent1, #F83600);
    cursor: pointer;
}

/* Ticket config row — currency + max total side by side */
.gwp_ticket_config_row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

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

.gwp_ticket_config_field label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gwp_ticket_config_field input {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    background: #f9fafb;
    transition: border-color 0.15s;
}

.gwp_ticket_config_field input:focus {
    border-color: var(--accent1, #F83600);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #fff;
}

.gwp_ticket_config_field input[type="text"] {
    width: 50px;
}

.gwp_ticket_config_field input[type="number"] {
    width: 80px;
}

/* Ticket wizard launcher area */
#gwp_evt_ticket_wizard_area {
    padding: 4px 0;
}

#gwp_evt_ticket_summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.gwp_ticket_summary_title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gwp_ticket_summary_types {
    font-size: 13px;
    color: #4b5563;
}

.gwp_ticket_summary_type {
    padding: 4px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

/*.select_inputframe,
.select_inputs {
    display: inline-block;
    width: calc(100%-20px);
    border: 1px solid #aaa !important;
    box-shadow: none !important;
    border-color: #aaa;
    border-width: 1px;
    border-style: solid;
    border-radius: 2px;
    margin: 0px !important;
    padding-left: 10px;
    padding-right: 10px;
    cursor: text;
    min-height: 34px;
    vertical-align: middle !important;
}*/

.gwp_formtext {
    display: none;
    margin: 40px 0px;
}

.gwp_ftvalue {
    max-width: 500px;
    text-overflow: ellipsis;
    line-height: 15px;
    margin: 5px 15px;
    overflow: hidden;
}

.select_icbox {
    display: inline-block;
    width: calc(100%-20px);
    border: 1px solid #aaa !important;
    box-shadow: none !important;
    border-color: #aaa;
    border-width: 1px;
    border-style: solid;
    border-radius: 2px;
    margin: 0px !important;
    padding-left: 10px;
    padding-right: 10px;
    cursor: pointer;
    min-height: 24px;
    min-width: 24px;
    vertical-align: middle !important;
}

.select_textarea {
    padding-top: 10px;
    font-family: 'Lato';
}

/*Database*/
.gwp_databaseframe {
    top: 0px;
    position: relative;
    display: block;
    padding-top: 20px;
    margin-right: 20px;
    margin-left: 20px;
    padding-bottom: 5px;
}

@media (max-width: 768px) {
    .gwp_databaseframe {
        margin-left: 10px;
        margin-right: 10px;
        padding-top: 12px;
    }
}

@media (max-width: 480px) {
    .gwp_databaseframe {
        margin-left: 6px;
        margin-right: 6px;
        padding-top: 10px;
    }

    .gwp_dbitem_main {
        padding: 10px 10px;
        gap: 8px;
    }

    .gwp_dbitem_btn {
        width: 32px;
    }
}

.gwp_dbtheader {
    text-align: center;
    vertical-align: top;
    min-width: 200px;
}

.gwp_db_tbuttons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 12px;
    margin-left: 10px;
    background: #e5e7eb;
    border-radius: 0 10px 10px 0;
    vertical-align: middle;
    position: relative;
}

.gwp_db_tbuttons::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 10px;
    height: 100%;
    background: radial-gradient(circle at 0% 50%, transparent 10px, #e5e7eb 10px);
}

.gwp_db_tbuttona {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    color: #6b7280;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.gwp_db_tbuttona:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #374151;
}

.gwp_db_tbutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    height: 32px;
    margin-left: 3px;
    padding: 0 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gwp_db_tbutton:hover {
    color: var(--accent1, #0073aa);
}

.gwp_db_fbuttons {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 12px;
    margin-left: 10px;
    background: #e5e7eb;
    border-radius: 0 10px 10px 0;
    vertical-align: middle;
    position: relative;
}

.gwp_db_fbuttons::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 10px;
    height: 100%;
    background: radial-gradient(circle at 0% 50%, transparent 10px, #e5e7eb 10px);
}

.gwp_db_fbuttons[style*="inline"],
.gwp_db_fbuttons.visible {
    display: inline-flex !important;
    align-items: center;
}

.gwp_dbdelete {
    border: 1px solid var(--accent1);
    padding: 10px;
    border-radius: 2px;
    margin: 2px 2px 2px 0px;
    padding: 5px 10px;
}

.gwp_dbdelete:hover {
    background-color: var(--accent1);
    color: #ffffff;
    border: solid 1px var(--accent1);
    border-radius: 2px;
}

.gwp_dbtheader>.select_filterframe> {
    text-align: left;
}

.gwp_dbifilter {
    cursor: pointer;
}

.gwp_dbfilter {
    margin-top: 10px;
    font-weight: 400;
    text-align: left;
}

.gwp_dbtitle {
    display: inline-block;
    margin-left: 2px;
    font-weight: 600;
}

.gwp_dbfsort {
    display: inline-block;
    margin-left: 2px;
    cursor: pointer;
}

.gwp_dbfsorth {
    display: none;
    cursor: pointer;
}

.gwp_dbfilter {
    display: inline-block;
    margin-left: 2px;
    cursor: pointer;
}

.gwp_db .gwp_dbtrow {
    border: 1px solid #444;
    padding: 10px;
}

.gwp_dtbdata {
    padding: 10px;
}

/* =============================================
   MODERN DATABASE TABLE STYLES
   ============================================= */
.gwp_dbtable {
    border-spacing: 0;
    border-collapse: separate;
    width: 100%;
    font-size: 13px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.gwp_dbtable .gwp_dbtrow .gwp_dbtheader,
.gwp_dbtable .gwp_dbtrow .gwp_dtbdata {
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
}

.gwp_dbtable .gwp_dbtrow .gwp_dbtheader:first-child,
.gwp_dbtable .gwp_dbtrow .gwp_dtbdata:first-child {
    border-left: 1px solid #e5e7eb;
}

.gwp_dbtable .gwp_dbtrow .gwp_dbtheader {
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.gwp_dbtable .gwp_dbtrow .gwp_dtbdata {
    background: #fff;
    color: #1f2937;
    transition: background-color 0.15s ease;
}

/* Alternating row colors */
.gwp_dbtable .gwp_dbtrow:nth-child(odd) .gwp_dtbdata {
    background: #fff;
}

.gwp_dbtable .gwp_dbtrow:nth-child(even) .gwp_dtbdata {
    background: #f9fafb;
}

/* Hover effect */
.gwp_dbtable .gwp_dbtrow:hover .gwp_dtbdata {
    background: #eef2ff !important;
}

/* Last column no right border */
.gwp_dbtable .gwp_dbtrow .gwp_dbtheader:last-child,
.gwp_dbtable .gwp_dbtrow .gwp_dtbdata:last-child {
    border-right: 1px solid #e5e7eb;
}

.gwp_dbselect {
    min-width: 170px;
    border: none;
}

.gwp_dbselect>.select_multidropdown,
.gwp_dbselect>.select_singledropdown {
    border: none;
}

.gwp_dbpassword {
    display: inline-block;
    padding-right: 30px;
}

.gwp_dbpeye {
    margin-left: -25px;
    line-height: 35px;
    cursor: pointer;
}

.gwp_dbcheckboxframe {
    display: inline-block;
    width: 100%;
    border: 1px none #aaa !important;
    box-shadow: none !important;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    margin: 0px !important;
    padding-left: 10px;
    padding-right: 10px;
    cursor: pointer;
    min-height: 16px;
    line-height: 16px;
    vertical-align: middle !important;
    min-width: 150px;
    accent-color: var(--accent1);
}

.gwp_dbinputframe {
    display: inline-block;
    width: 100%;
    border: 1px none #aaa !important;
    box-shadow: none !important;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    margin: 0px !important;
    padding-left: 10px;
    padding-right: 10px;
    cursor: text;
    min-height: 35px;
    line-height: 35px;
    vertical-align: middle !important;
    min-width: 150px;
}

.gwp_dbpinputframe {
    display: inline-block;
    width: calc(100% - 10px);
    border: 1px none #aaa !important;
    box-shadow: none !important;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    margin: 0px !important;
    padding-left: 5px;
    padding-right: 5px;
    cursor: text;
    min-height: 35px;
    line-height: 35px;
    vertical-align: middle !important;
    min-width: 150px;
    max-width: 300px;
    overflow: hidden;
    max-height: 50px;

}

.select_inputframe>textarea {
    background-color: pink;
}

.gwp_advancedoptions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.gwp_advancedoptions .gwp_form_ctrl_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    height: auto;
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.gwp_advancedoptions .gwp_form_ctrl_btn:hover {
    background: #eee;
    border-color: #ccc;
    color: #333;
}

.gwp_advancedoptions .gwp_form_ctrl_btn i {
    font-size: 14px;
}

.gwp_optiontag {
    margin-top: 5px;
}

.gwp_dbform {
    position: relative;
    margin: 10px 20px 20px 20px;
    padding: 30px 20px 30px 20px;
    /*border-radius: 4px;
    box-shadow: 0 0 10px rgb(0 0 0 / 40%);*/
    background-color: #ffffff;
}

.gwp_dbinputframe:focus {
    border: 1px solid #aaa !important;
}

.gwp_dbinputframe:-internal-autofill-selected {
    background-color: #ffffff !important;
}

.gwp_dtbdelete {
    text-align: center;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gwp_dtbdelete:hover {
    color: #ef4444;
}

.gwp_dbinputframe:-webkit-autofill,
.gwp_dbinputframe:-webkit-autofill:hover,
.gwp_dbinputframe:-webkit-autofill:focus,
.gwp_dbinputframe:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
}

/* top-left border-radius */
.gwp_dbtable .gwp_dbtrow:first-child .gwp_dbtheader:first-child {
    border-top-left-radius: 8px;
}

/* top-right border-radius */
.gwp_dbtable .gwp_dbtrow:first-child .gwp_dbtheader:last-child {
    border-top-right-radius: 8px;
}

/* bottom-left border-radius */
.gwp_dbtable .gwp_dbtrow:last-child .gwp_dtbdata:first-child {
    border-bottom-left-radius: 8px;
}

/* bottom-right border-radius */
.gwp_dbtable .gwp_dbtrow:last-child .gwp_dtbdata:last-child {
    border-bottom-right-radius: 8px;
}

/* === DATABASE INDEX COLUMN === */
.gwp_dbindex_header {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    border-top: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
}

.gwp_dbindex_cell {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    text-align: center !important;
    background-color: #f9fafb;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
}

/* Row hover effect on index cell */
.gwp_dbtrow:hover .gwp_dbindex_cell {
    background-color: #eef2ff !important;
}

/* Payment status badges */
.gwp_dbindex_cell:has(.gwp_payment_badge) {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
}
.gwp_payment_badge {
    display: block;
    margin-top: 3px;
    padding: 1px 6px;
    border-radius: 9px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 16px;
    white-space: nowrap;
}
.gwp_payment_paid {
    background-color: #dcfce7;
    color: #166534;
}
.gwp_payment_pending {
    background-color: #fef3c7;
    color: #92400e;
}
.gwp_payment_balance {
    background-color: #fed7aa;
    color: #9a3412;
}
.gwp_payment_credit {
    background-color: #dbeafe;
    color: #d62e00;
}
.gwp_payment_refunded {
    background-color: #fee2e2;
    color: #991b1b;
}
.gwp_balance_send_btn {
    display: inline-block;
    margin-left: 2px;
    padding: 1px 5px;
    border: none;
    background: #fed7aa;
    color: #9a3412;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    line-height: 14px;
    vertical-align: middle;
}
.gwp_balance_send_btn:hover {
    background: #fdba74;
}
.gwp_receipt_btn {
    display: inline-block;
    margin-left: 2px;
    padding: 1px 5px;
    border: none;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    line-height: 14px;
    vertical-align: middle;
}
.gwp_receipt_btn:hover {
    background: #c7d2fe;
}
.gwp_refund_btn {
    display: inline-block;
    margin-left: 2px;
    padding: 1px 5px;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    line-height: 14px;
    vertical-align: middle;
}
.gwp_refund_btn:hover {
    background: #fecaca;
}

/* Attendee fields on public ticket form */
.select_att_container {
    margin: 0 0 6px 0;
    padding: 0;
}
.select_att_set {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 6px 0;
}
.select_att_set_header {
    font-weight: 600;
    font-size: 13px;
    color: #334155;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e2e8f0;
}
.select_att_field {
    margin-bottom: 6px;
}
.select_att_label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
    font-weight: 500;
}
.select_att_input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.select_att_input:focus {
    outline: none;
    border-color: #F83600;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}
textarea.select_att_input {
    min-height: 60px;
    resize: vertical;
}
select.select_att_input {
    appearance: auto;
}

.gwp_db_linked_events {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin: 4px 0 8px 0;
    font-size: 12px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 6px;
    flex-wrap: wrap;
}

.gwp_db_linked_events > i {
    color: var(--accent1, #0085ba);
    font-size: 14px;
}

.gwp_db_linked_event_tag {
    display: inline-block;
    padding: 2px 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    color: #d62e00;
    font-size: 11px;
    font-weight: 500;
}

/* ============================================
   Database Row Action Buttons
   ============================================ */
.gwp_dtbactions {
    text-align: center;
    padding: 8px;
    white-space: nowrap;
}

.gwp_dbrowbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    width: 30px;
    height: 30px;
    margin: 0 3px;
    border-radius: 6px;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    transition: all 0.2s ease;
}

.gwp_dbrowbtn:hover {
    background-color: var(--accent1);
    border-color: var(--accent1);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gwp_dbrowbtn_clear:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: #ffffff;
}

.gwp_dbrowbtn_delete:hover {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

/* Hidden when database is locked */
.gwp_dbrowbtn.select_disabled {
    display: none;
}

/* Column clear button styling */
.gwp_cdbcol {
    display: inline-block;
    margin-left: 2px;
    cursor: pointer;
}

/* ============================================
   Database Filter Styles
   ============================================ */

/* Text search filter */
.gwp_dbfilter_text {
    margin-top: 10px;
    font-weight: 400;
    text-align: left;
}

.gwp_dbfilter_input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

.gwp_dbfilter_input:focus {
    outline: none;
    border-color: var(--accent1);
}

/* Numeric range filter */
.gwp_dbfilter_numeric {
    margin-top: 10px;
    font-weight: 400;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gwp_dbfilter_min,
.gwp_dbfilter_max {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

.gwp_dbfilter_min:focus,
.gwp_dbfilter_max:focus {
    outline: none;
    border-color: var(--accent1);
}

.gwp_dbfilter_sep {
    color: #666;
    font-size: 12px;
}

/* Date range filter */
.gwp_dbfilter_date {
    margin-top: 10px;
    font-weight: 400;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.gwp_dbfilter_date .gwp_dbfilter_from,
.gwp_dbfilter_date .gwp_dbfilter_to {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

.gwp_dbfilter_date .gwp_dbfilter_from:focus,
.gwp_dbfilter_date .gwp_dbfilter_to:focus {
    outline: none;
    border-color: var(--accent1);
}

/* Time range filter */
.gwp_dbfilter_time {
    margin-top: 10px;
    font-weight: 400;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gwp_dbfilter_time .gwp_dbfilter_from,
.gwp_dbfilter_time .gwp_dbfilter_to {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

.gwp_dbfilter_time .gwp_dbfilter_from:focus,
.gwp_dbfilter_time .gwp_dbfilter_to:focus {
    outline: none;
    border-color: var(--accent1);
}

/* Colour filter */
.gwp_dbfilter_colour {
    margin-top: 10px;
    font-weight: 400;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gwp_dbfilter_colour_input {
    width: 40px;
    height: 30px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.gwp_dbfilter_colour_clear {
    padding: 5px 10px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gwp_dbfilter_colour_clear:hover {
    background: var(--accent1);
    border-color: var(--accent1);
    color: #fff;
}

/* Filter clear button (individual) */
.gwp_dbfilter_clear {
    cursor: pointer;
    color: #999;
    padding: 5px;
    margin-left: 5px;
    transition: color 0.2s ease;
}

.gwp_dbfilter_clear:hover {
    color: #e76f51;
}

/* Clear all filters button */
.gwp_clearallfilters {
    display: inline-block;
    margin-left: 8px;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

/* Active filter indicator */
.gwp_dbifilter.gwp_filter_active {
    color: var(--accent1);
}

/* Date/Time filter labels */
.gwp_dbfilter_date label,
.gwp_dbfilter_time label {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
    margin-top: 5px;
}

.gwp_dbfilter_date label:first-child,
.gwp_dbfilter_time label:first-child {
    margin-top: 0;
}

/* Colour picker filter - use our colour picker */
.gwp_dbfilter_colour {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gwp_dbfilter_colpic {
    min-width: 120px;
}

/* Country filter - fix flag size */
.gwp_dbfilter .select_country_selector img,
.gwp_dbfilter .select_dropdownitem img,
.select_filterframe .select_dropdownitem img {
    width: 20px !important;
    height: auto !important;
    max-height: 14px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Telephone filter */
.gwp_dbfilter_tel {
    margin-top: 10px;
    font-weight: 400;
    text-align: left;
}

.gwp_dbfilter_tel .gwp_dbfilter_input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

.gwp_dbfilter_tel .gwp_dbfilter_input:focus {
    outline: none;
    border-color: var(--accent1);
}

/* Date/Time filter mode toggle */
.gwp_dbfilter_mode {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.gwp_dbfilter_mode label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #666;
    cursor: pointer;
    margin: 0;
}

.gwp_dbfilter_mode input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}


/*contacts*/
.gwp_userframe {
    top: 0px;
    position: relative;
    display: block;
    padding-top: 20px;
    margin-right: 20px;
    margin-left: 20px;
    padding-bottom: 5px;
    min-height: 100vh;
}

.gwp_contact {
    margin-top: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    padding: 10px;
    background-color: #ffffff;
}

.gwp_messageframe {
    top: 0px;
    position: relative;
    display: block;
    padding-top: 20px;
    margin-right: 20px;
    margin-left: 20px;
    padding-bottom: 5px;
}

.gwp_messages {
    margin: 10px 0px 20px 0px;
    height: auto;
    display: block;
    width: auto;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    padding: 20px 20px 20px 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.gwp_messages:hover {
    background-color: var(--accent1);
    color: #ffffff;
}

.gwp_ftc {
    margin: 10px 10px 20px 10px;
    height: auto;
    display: block;
    width: auto;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    padding: 20px 20px 20px 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.gwp_ftc>* {
    user-select: none;
}

.gwp_ftcalt {
    margin: 10px 10px 20px 10px;
    height: auto;
    display: block;
    width: auto;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    padding: 20px 20px 20px 20px;
    border: 2px solid var(--accent1);
}

.gwp_ftci {
    vertical-align: top;
    margin-right: 20px;
    font-size: 32px;
}

.gwp_cencrypt {
    display: none;
}

.gwp_latestmessage {
    margin: 8px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.gwp_mellipsis {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}

.gwp_mymessage .gwp_mellipsis:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.gwp_friendmessage .gwp_mellipsis {
    color: rgba(0, 0, 0, 0.35);
}

.gwp_friendmessage .gwp_mellipsis:hover {
    color: var(--accent1);
    background: color-mix(in srgb, var(--accent1) 10%, transparent);
}

/* ── Message row wrappers ──────────────────────────────────────────────── */
.gwp_mymessage {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 72%;
    margin-left: auto;
    margin-right: 0;
    margin-bottom: 4px;
    position: relative;
    align-self: flex-end;
}

.gwp_friendmessage {
    display: flex;
    flex-direction: row;
    max-width: 72%;
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 4px;
    position: relative;
    align-self: flex-start;
}

/* ── Bubble column (friend) ───────────────────────────────────────────── */
.gwp_msg_col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}

/* ── Sender name (friend, not grouped) ───────────────────────────────── */
.gwp_msg_sender {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent1, #6366f1);
    margin-bottom: 3px;
    padding-left: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Bubble body ─────────────────────────────────────────────────────── */
.gwp_mymessage > .gwp_messagestyle,
.gwp_msg_col > .gwp_messagestyle {
    padding: 9px 13px 6px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    margin: 0;
}

.gwp_mymessage > .gwp_messagestyle {
    background: var(--accent1);
    color: #fff;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.gwp_msg_col > .gwp_messagestyle {
    background: #f0f0f0;
    color: #1a1a1a;
    border-radius: 4px 16px 16px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* grouped: tighten border-radius between consecutive same-author bubbles */
.gwp_msg_grouped.gwp_mymessage > .gwp_messagestyle {
    border-radius: 16px 4px 4px 16px;
}
/* last in group: restore the tail corner */
.gwp_msg_grouped.gwp_mymessage.gwp_msg_group_last > .gwp_messagestyle {
    border-radius: 16px 4px 16px 16px;
}
.gwp_msg_grouped .gwp_msg_col > .gwp_messagestyle {
    border-radius: 4px 16px 16px 4px;
}
/* last friend-message in group: restore bottom-left tail corner */
.gwp_msg_grouped.gwp_msg_group_last .gwp_msg_col > .gwp_messagestyle {
    border-radius: 4px 16px 16px 16px;
}
/* Fallback for legacy DOM without gwp_msg_col wrapper */
.gwp_friendmessage > .gwp_messagestyle {
    background: #f0f0f0;
    color: #1a1a1a;
    border-radius: 4px 16px 16px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    padding: 9px 13px 6px;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.gwp_messagestyle {
    font-weight: 400;
    margin: 0;
}

/* ── Meta row (time + ticks) ─────────────────────────────────────────── */
.gwp_messagedatefrom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 400;
    margin-top: 3px;
    padding: 0 2px;
    color: rgba(255,255,255,.65);
}
.gwp_friendmessage .gwp_messagedatefrom,
.gwp_msg_col .gwp_messagedatefrom {
    color: #9ca3af;
    justify-content: flex-start;
}
.gwp_messagedatefrom .gwp_msg_edited {
    font-style: italic;
    opacity: .75;
    font-size: 10px;
}
.gwp_msg_ch_icon { font-size: 11px; }

/* ── Dropdown (hover reveal) ─────────────────────────────────────────── */
.gwp_messagereply .gwp_dropdown {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    opacity: 0;
    transition: opacity .15s;
}
.gwp_messagereply:hover .gwp_dropdown { opacity: 1; }
.gwp_messagereply:has(.gwp_dropdown-content[style*="block"]) .gwp_dropdown { opacity: 1; }

.gwp_mymessage:before {
    display: none;
}

/* When dropdown is open, lift the whole message above its siblings */
.gwp_messagereply:has(.gwp_dropdown-content[style*="inline-block"]),
.gwp_messagereply:has(.gwp_dropdown-content[style*="block"]) {
    z-index: 100;
}

/* Click-away overlay inside message dropdown */
.gwp_messagereply .gwp_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 28000;
    cursor: default;
    display: none;
    background: transparent;
    pointer-events: none;
}

/* Only allow clicks when overlay is visible */
.gwp_messagereply .gwp_overlay[style*="display: block"],
.gwp_messagereply .gwp_overlay[style*="display:block"] {
    pointer-events: auto;
}

.gwp_messagereply .gwp_dropdown-content {
    right: 0;
    left: auto;
    top: 100%;
    min-width: 130px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    border: 1px solid #e5e5e5;
    padding: 4px 0;
    background: #fff;
    z-index: 28001;
    margin-top: 2px;
}

/* Flip dropdown upward when near bottom */
.gwp_messagereply .gwp_dropdown-content.gwp_dropdown_up {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 2px;
}

.gwp_messagereply .gwp_dropdown-content a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}

.gwp_messagereply .gwp_dropdown-content a:hover {
    background: #f5f5f5;
}

.gwp_messagereply .gwp_dropdown-content a i {
    font-size: 16px;
    color: #888;
}

.gwp_attachmenticon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    font-size: 18px;
    flex-shrink: 0;
    color: #6b7280;
}

/* Activity items - orange */
.gwp_messatt[id*="gwp_attachment"]:not([id*="file"]):not([id*="schedule"]) .gwp_attachmenticon {
    color: #f59e0b;
}

/* Schedule items - blue */
.gwp_messatt[id*="schedule"] .gwp_attachmenticon {
    color: #F83600;
}

/* File items / links - purple */
.gwp_messatt[id*="file"] .gwp_attachmenticon {
    color: #8b5cf6;
}

/* Icon-specific colours */
.gwp_attachmenticon .la-running {
    color: #f59e0b;
}

.gwp_attachmenticon .la-file-alt {
    color: #F83600;
}

.gwp_attachmenticon .la-link {
    color: #8b5cf6;
}

.gwp_attachmenticon .la-image {
    color: #10b981;
}

.gwp_attachmenticon .la-music {
    color: #ec4899;
}

.gwp_attachmenticon .la-video {
    color: #ef4444;
}

.gwp_attchmentname {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    color: #333;
}

.gwp_postmessages {
    display: flex;
    flex-direction: column;
    padding: 16px 14px;
    gap: 3px;
    position: relative;
}

.gwp_postmessages>* {
    position: relative;
    z-index: 1;
}

/* Spacing between different-author runs */
.gwp_messagereply:not(.gwp_msg_grouped) {
    margin-top: 10px;
}
.gwp_postmessages > .gwp_messagereply:first-child {
    margin-top: 0;
}

/* Message image viewer modal */
.gwp_imgviewer_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: gwp_imgfadein 0.2s ease;
}

@keyframes gwp_imgfadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.gwp_imgviewer_overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.gwp_imgviewer_close {
    position: absolute;
    top: 16px;
    right: 20px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.15s;
}

.gwp_imgviewer_close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Edit message indicator */
.gwp_msg_edited {
    font-style: italic;
    margin-left: 6px;
    font-size: 10px;
}

.gwp_mymessage .gwp_msg_edited {
    color: rgba(255, 255, 255, 0.6);
}

.gwp_friendmessage .gwp_msg_edited {
    color: #999;
}

/* Edit banner (WhatsApp-style above compose bar) */
.gwp_edit_banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    margin: 0 0 -1px 0;
    background: color-mix(in srgb, var(--accent1) 8%, white);
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    font-size: 13px;
    color: var(--accent1);
    font-weight: 500;
    animation: gwp_edit_slidein 0.15s ease;
}

@keyframes gwp_edit_slidein {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.gwp_edit_banner_left i {
    font-size: 16px;
}

.gwp_edit_banner_close {
    font-size: 18px;
    cursor: pointer;
    color: #999;
    padding: 2px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.gwp_edit_banner_close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.06);
}

/* Compose bar when editing */
.gwp_edit_banner+.gwp_msgcompose_bar {
    border-radius: 0 0 12px 12px;
    border-top-color: color-mix(in srgb, var(--accent1) 20%, #e0e0e0);
}

/* Send button editing state - tick icon effect */
.gwp_msgcompose_send_editing {
    background: #22c55e !important;
}

.gwp_msgcompose_send_editing:hover {
    background: #16a34a !important;
}

.gwp_friendmessage:before { display: none; }

.gwp_messagechat>.gwp_messatt {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    display: inline-flex;
    vertical-align: middle;
    margin: 2px 2px 2px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.gwp_messagechat>.gwp_messatt a {
    color: #333;
}

/* Images in compose bar during edit */
.gwp_messagechat>img {
    max-width: 80px;
    max-height: 60px;
    border-radius: 6px;
    object-fit: cover;
    vertical-align: middle;
    margin: 2px 4px 2px 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gwp_messageoptions {
    display: block;
    padding: 0;
}

.gwp_msgcompose_bar {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 6px 6px 6px 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gwp_msgcompose_bar:focus-within {
    border-color: var(--accent1);
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    background: #fff;
}

.gwp_cameraoptions {
    display: none;
    position: relative;
    z-index: 10;
    margin-top: -80px;
    padding: 0 16px 20px 16px;
    text-align: center;
}

.gwp_photoapprove {
    display: none;
    position: relative;
    z-index: 10;
    margin-top: -80px;
    padding: 0 16px 20px 16px;
    text-align: center;
}

/* Camera container */
.gwp_mcamera {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 8px;
}

.gwp_mcamera video,
.gwp_mcamera canvas {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.gwp_messagebox {
    display: block;
    padding: 8px 4px;
    width: 100%;
    box-sizing: border-box;
}

.gwp_messageoptions>[contenteditable=true]:empty:before {
    content: attr(placeholder);
    pointer-events: none;
    display: block;
    color: #aaa;
    font-size: 14px;
}

.gwp_messagechat {
    max-height: 200px;
    min-height: 20px;
    height: auto;
    flex: 1;
    min-width: 0;
    padding: 4px 0;
    border: none;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    word-break: break-word;
}

.gwp_messagechat:focus {
    outline: none;
}

.gwp_messagechat::-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_messagechat::-webkit-scrollbar,
.gwp_pb::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    cursor: grab;
}

.gwp_messagechat::-webkit-scrollbar-thumb,
.gwp_pb::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: #c0c0c0;
    border: 2px solid transparent;
    background-clip: content-box;
    cursor: grab;
}

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

.gwp_mreply {
    display: block;
    background: rgba(0, 0, 0, 0.06);
    color: #000000;
    margin-bottom: 8px;
    border-left: 3px solid var(--accent1);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
}

.gwp_messagereply .gwp_mreply {
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
}

.gwp_friendmessage .gwp_mreply {
    border-left: 3px solid var(--accent1);
    background: color-mix(in srgb, var(--accent1) 8%, white);
    color: #333;
}

.gwp_mvideo {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    width: 100%;
    height: auto;
    object-fit: contain;
}

.gwp_mcanvas {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    width: 100%;
    height: auto;
    object-fit: contain;
}

.gwp_mrcontent {
    display: inline-block;
    width: calc(100% - 36px);
    padding: 4px 0;
    vertical-align: middle;
}

.gwp_mrdelete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
    vertical-align: middle;
}

.gwp_mrdelete:hover {
    background: rgba(0, 0, 0, 0.08);
}

.gwp_mrdelete>i {
    float: none;
    font-size: 16px;
    color: #888;
}

.gwp_messagestyle>img {
    max-width: 220px;
    max-height: 180px;
    width: auto;
    height: auto;
    border-radius: 10px;
    margin-top: 4px;
    cursor: pointer;
    object-fit: cover;
    display: block;
    transition: opacity 0.15s;
}

.gwp_messagestyle>img:hover {
    opacity: 0.85;
}

.gwp_msgcompose_actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.gwp_msgcompose_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.12s, background 0.12s;
}

.gwp_msgcompose_btn:hover {
    color: var(--accent1);
    background: #f0f0f0;
}

.gwp_msgcompose_send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--accent1);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.12s, transform 0.12s;
}

.gwp_msgcompose_send:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

/* Split send button */
#gwp_split_send {
    display: flex;
    align-items: center;
    position: relative;
}
#gwp_split_send .gwp_split_main {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px 0 12px;
    border: none;
    border-radius: 18px 0 0 18px;
    background: var(--accent1);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
#gwp_split_send .gwp_split_main i {
    font-size: 15px;
}
#gwp_split_send .gwp_split_main:hover {
    filter: brightness(1.1);
}
#gwp_split_send .gwp_split_drop {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 28px;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.25);
    border-radius: 0 18px 18px 0;
    background: var(--accent1);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}
#gwp_split_send .gwp_split_drop:hover {
    filter: brightness(1.1);
}
#gwp_channel_menu {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    min-width: 200px;
    z-index: 999;
    overflow: hidden;
    padding: 4px 0;
}
#gwp_channel_menu .gwp_ch_option {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #333;
    transition: background 0.12s;
}
#gwp_channel_menu .gwp_ch_option:hover {
    background: #f5f7fa;
}
#gwp_channel_menu .gwp_ch_option.active {
    background: #f0f4ff;
    font-weight: 600;
    color: #1a1a1a;
}
#gwp_channel_menu .gwp_ch_option i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}
#gwp_channel_menu .gwp_ch_divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

/* Legacy fallback — keep gwp_sm_button working for any other uses */
.gwp_sm_button {
    vertical-align: middle;
    border: 1px solid transparent;
    border-radius: 50px;
    padding: 5px 6px 4px 5px;
    background-color: var(--accent1);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    margin: 5px;
}

.gwp_sm_button:hover {
    opacity: 0.85;
    cursor: pointer;
}

.gwp_cambutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    margin: 0 8px;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.gwp_cambutton:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    cursor: pointer;
}

.gwp_cambutton:active {
    transform: scale(0.95);
}

/* Shutter / take photo button - larger and distinct */
#gwp_takephoto {
    width: 64px;
    height: 64px;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid #fff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3), inset 0 0 0 3px rgba(255, 255, 255, 0.1);
}

#gwp_takephoto:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: #fff;
}

/* Approve photo button - green accent */
#gwp_mpa {
    background: rgba(34, 197, 94, 0.6);
    border-color: rgba(34, 197, 94, 0.5);
}

#gwp_mpa:hover {
    background: rgba(34, 197, 94, 0.8);
    border-color: rgba(34, 197, 94, 0.7);
}

/* Close/cancel camera button - subtle red on hover */
#gwp_closecamera:hover {
    background: rgba(239, 68, 68, 0.5);
    border-color: rgba(239, 68, 68, 0.5);
}

.gwp_mediaframecontent {
    min-height: 100vh;
    /*background-color: #ffffff;
  margin: 10px 20px 20px 11px;
  padding: 30px 20px 30px 20px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  background-color: #ffffff;*/
}

.gwp_mediabuckets {
    margin: 10px 20px 20px 20px;
    padding: 30px 20px 30px 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    background-color: #ffffff;
}

.gwp_mediabuckets,
.gwp_amediabuckets,
.gwp_gmediabuckets,
.gwp_mmediabuckets,
.gwp_activities,
.gwp_schedules,
.gwp_document {
    margin: 10px 11px 20px 11px;
    padding: 24px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    transition: box-shadow 0.2s;
}

.gwp_amediabuckets:hover,
.gwp_gmediabuckets:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gwp_sactivities {
    margin: 10px 20px 20px 11px;
    padding: 5px 20px 5px 20px;
    border-radius: 10px;
    border: 1px solid var(--accent1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    background-color: #ffffff;
}

.gwp_sactivities>* {
    display: none;
}

.gwp_sactivities>.gwp_activitybox {
    display: block;
}

.gwp_sschedules {
    margin: 10px 20px 20px 11px;
    padding: 5px 20px 5px 20px;
    border-radius: 10px;
    border: 1px solid var(--accent1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    background-color: #ffffff;
}

.gwp_sschedules>* {
    display: none;
}

.gwp_sschedules>.gwp_activitybox {
    display: block;
}

.gwp_seventtick {
    display: none;
    margin-left: 5px;
    margin-right: 5px;
}

.gwp_astick {
    display: none;
    color: var(--accent1);
    font-size: 16px;
    font-weight: bold;
    margin-left: 5px;
}


.gwp_editpopup_button {
    display: inline-block;
    margin: 5px;
    padding-top: 60px;
    color: #000000;
    border: solid 2px var(--accent1);
    border-radius: 4px;
    width: 150px;
    height: 150px;
    font-family: 'Lato', cursive;
    font-size: 20px;
    text-align: center;
    vertical-align: center;
    cursor: pointer;
}

.gwp_editpopup_button:hover {
    color: #ffffff;
    background-color: var(--accent1);
}

.gwp_filtermediatype {
    display: inline-block;
    font-size: 14px;
    /*min-width: 200px;*/
}

.gwp_filtermediatype>.select_tabmdropdown {
    min-width: 200px;
}

.gwp_mmultiselect {
    display: inline-block;
    font-size: 18px;
    cursor: pointer;
    padding-right: 5px;
    vertical-align: middle;
}

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

.gwp_mmultiselectactive {
    display: inline-block;
    color: var(--accent1);
    font-size: 18px;
    cursor: pointer;
    padding-right: 5px;
    vertical-align: middle;
}

.gwp_lmsearch {
    display: inline-block;
    font-size: 18px;
    cursor: pointer;
    margin-right: 5px;
    vertical-align: middle;
}

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

.gwp_viewalbum {
    display: inline-block;
    font-size: 23px;
    cursor: pointer;
    margin-left: 10px;
    vertical-align: middle;
}

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

.gwp_albumview {
    padding: 5px 0px 5px 0px;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.gwp_aclose {
    position: absolute;
    top: 20px;
    right: 25px;
    transition: all 200ms;
    font-size: 25px;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 50px;
}


.gwp_aclose:hover {
    background-color: #ffffff;
    color: #000000;
}

.gwp_auid {
    display: none;
}

.gwp_aindex {
    display: none;
}


.gwp_panav {
    position: absolute;
    top: 50VH;
    left: 25px;
    transition: all 200ms;
    font-size: 48px;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px 9px;
    border-radius: 50px;
}

.gwp_nanav {
    position: absolute;
    top: 50VH;
    right: 25px;
    transition: all 200ms;
    font-size: 48px;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px 9px;
    border-radius: 50px;
}

.gwp_nanav:hover,
.gwp_panav:hover {
    background-color: #ffffff;
    color: #000000;
}

.gwp_aslide {
    display: inline-block;
    width: 100%;
    vertical-align: middle;
    text-align: center;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.gwp_albumimg {
    max-height: 80VH;
    max-width: 100VW;
    margin-left: auto;
    margin-right: auto;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.gwp_aimgtitle {
    width: 100%;
    text-align: center;
    color: #ffffff;
    line-height: 10VH;
}

.gwp_cssearch {
    display: inline-block;
    font-size: 23px;
    cursor: pointer;
    margin-right: 5px;
    vertical-align: middle;
}

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

.gwp_smsearch {
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
    margin-right: 5px;
    margin-left: 5px;
}

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

.gwp_lmsearchactive {
    display: inline-block;
    color: var(--accent1);
    font-size: 14px;
    cursor: pointer;
    padding-right: 5px;
}

.gwp_msearch {
    display: none;
}

.gwp_msearch {
    -webkit-animation-name: fadeInLeft;
    -moz-animation-name: fadeInLeft;
    -o-animation-name: fadeInLeft;
    animation-name: fadeInLeft;
    -webkit-animation-fill-mode: both;
    -moz-animation-fill-mode: both;
    -o-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-duration: 0.2s;
    -moz-animation-duration: 0.2s;
    -o-animation-duration: 0.2s;
    animation-duration: 0.2s;
    -webkit-animation-delay: 0.2s;
    -moz-animation-delay: 0.2s;
    -o-animation-duration: 0.2s;
    animation-delay: 0.2s;
}

.gwp_addmbucket {
    display: inline-block;
    font-size: 18px;
    cursor: pointer;
    padding-right: 5px;
}

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

.gwp_deletemedia {
    display: inline-block;
    font-size: 18px;
    cursor: pointer;
    padding-right: 5px;
}

.gwp_mbulk {
    display: none;
}

.gwp_mbulk {
    -webkit-animation-name: fadeInLeft;
    -moz-animation-name: fadeInLeft;
    -o-animation-name: fadeInLeft;
    animation-name: fadeInLeft;
    -webkit-animation-fill-mode: both;
    -moz-animation-fill-mode: both;
    -o-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-duration: 0.2s;
    -moz-animation-duration: 0.2s;
    -o-animation-duration: 0.2s;
    animation-duration: 0.2s;
    -webkit-animation-delay: 0.2s;
    -moz-animation-delay: 0.2s;
    -o-animation-duration: 0.2s;
    animation-delay: 0.2s;
    vertical-align: middle;
}

.gwp_mbulk:before {
    content: "| ";
}

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

.gwp_sharemedia {
    display: inline-block;
    font-size: 18px;
    cursor: pointer;
    padding-right: 5px;
}

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

.gwp_creatembucketactvie {
    display: inline-block;
    color: var(--accent1);
    font-size: 14px;
    cursor: pointer;
    padding-right: 5px;
}

.gwp_mbtitle {
    display: block;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    padding: 0 0 12px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.gwp_mbtitle>h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.gwp_cfn {
    display: inline-block;
    margin-right: 5px;
}

.gwp_cln {
    display: inline-block;
    margin-right: 5px;
}

.gwp_cem {
    display: block;
}

.gwp_cbuttons {
    margin-top: 20px;
}

.gwp_cbuttons>div {
    display: inline-block;
}

.gwp_cgroups {
    font-style: italic;
}

.gwp_contacts_button {
    display: inline-block;
    margin: 2px 2px 2px 0px;
    padding: 5px 10px;
    font-weight: 600;
    background-color: #ffffff;
    color: var(--accent1);
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    border: solid 1px var(--accent1);
    text-align: center;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -khtml-user-drag: element;
    -webkit-user-drag: element;
    border-radius: 4px;
}

.gwp_contacts_button:hover {
    background-color: var(--accent1);
    color: #ffffff;
    border: solid 1px var(--accent1);
    border-radius: 4px;
}

.gwp_contacts_button:active {
    position: relative;
}

.gwp_addpermissionbutton {
    margin-top: 10px;
}

.gwp_taxonomy {
    display: inline-block;
    margin: 0px 2px 0px 10px;
    padding: 0px !important;
    min-width: 150px;
}

.gwp_utaxonomy {
    display: inline-block;
    margin: 0px 2px 0px 10px;
    padding: 0px !important;
}

.gwp_uptaxonomyalt {
    display: inline-block;
    margin: 10px 2px 0px 10px;
    padding: 0px !important;
}

.gwp_remove {
    display: inline-block;
    margin: 0px 2px 0px 2px;
    padding: 0px !important;
}

.gwp_permissions {
    margin-top: 10px;
    background-color: #efefef;
    border-radius: 5px;
    border: solid 1px #efefef;
    padding: 2px;
}

.gwp_rpermissions {
    margin-top: 10px;
    background-color: #efefef;
    border-radius: 5px;
    border: solid 1px #efefef;
    padding: 2px;
}

.gwp_icon {
    margin-right: 5px;
    font-size: 20px;
    color: #000000;
}

#gwp_gnotifications>.select_tabmcontainer {
    text-align: center;
}

.gwp_notificationscheckboxes {
    display: inline-block;
}

#gwp_dhtabbox>.select_tabmcontainer {
    text-align: center;
}

/* Lists */
.gwp_clists {
    margin-top: 15px;

}

.gwp_pblist {
    min-width: 50%;
    min-height: 20px;
    background-color: #f1f1f1;
    margin: 2px 5px 0px 0px;
    padding: 4px;
    border-color: var(--accent1);
    border: 2px;
    border-radius: 2px;
    font-size: 16px;
    color: #000000;
    display: block;
}

.gwp_pbclist {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    margin: 4px 0;
    padding: 6px 10px;
    font-size: 14px;
}

.gwp_addlcategory {
    cursor: pointer;
}

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 1;
    }
}

.gwp_tickinput {
    margin-left: 5px;
    outline: 0px solid transparent;
    min-width: 50px;
    -webkit-user-select: text;
    user-select: text;
}

.gwp_ctickinput {
    margin-left: 5px;
    outline: 0px solid transparent;
    opacity: 0.8;
    min-width: 50px;
    -webkit-user-select: text;
    user-select: text;
    text-decoration: line-through;
}

.gwp_ptitle {
    cursor: pointer;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.gwp_lcpicker {
    flex-shrink: 0;
}

.gwp_resetcolour {
    font-size: 13px;
    cursor: pointer;
    color: #aaa;
    padding: 2px;
}

.gwp_pb {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 4px 16px;
}

.gwp_pbdeleted {
    margin-top: 10px;
    background: #fef2f2;
    border: 1px dashed #fca5a5;
    padding: 8px;
    border-radius: 8px;
    width: 95%;
}

.gwp_pbdeleted * {
    display: inline-block;
}

.gwp_pbcol {
    display: inline-block;
    vertical-align: top;
    white-space: normal;
    width: 210px;
    min-height: 220px;
    background: #f8f9fb;
    border-radius: 10px;
    border: 3px solid #e0e0e0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-right: 12px;
}

.gwp_pbcoltitle {
    display: block;
    width: 100%;
    padding: 9px 12px 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #374151;
    border-bottom: 2px solid rgba(0,0,0,0.08);
    background: transparent;
    box-sizing: border-box;
}

.gwp_pbcollist {
    padding: 8px;
    min-height: 120px;
}

.gwp_pbitem {
    display: block;
    margin: 5px 0;
    padding: 0;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e8eaed;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    word-wrap: break-word;
    white-space: normal;
    cursor: grab;
    font-size: 13px;
    color: #1f2937;
    min-height: 36px;
}

.gwp_pblabel {
    display: block;
    min-height: 36px;
    padding: 8px 10px;
    box-sizing: border-box;
    outline: none;
    cursor: grab;
    word-break: break-word;
    -webkit-user-drag: none;
    user-select: none;
}

.gwp_pblabel:focus,
.gwp_pblabel:focus-within {
    cursor: text;
    user-select: text;
    background: rgba(99,102,241,0.05);
    border-radius: 5px;
}

.gwp_pbitem:hover {
    border-color: var(--accent1, #4f7bff);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.gwp_pbitem:active {
    cursor: grabbing;
}

.gwp_sorticon {
    margin-right: 2px;
}

.gwp_listinput {
    padding: 2px;
}

.gwp_deletelitem {
    margin-left: 5px;
    float: right;
    cursor: pointer;
    margin-right: 10px;
}

/* ── settings panel ─────────────────────────────────────────── */
.gwp_lsettings {
    padding: 8px 0 4px;
}

.gwp_lsettingpref {
    padding: 8px 0 4px;
}

.gwp_formfieldsubtitle {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6b7280;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gwp_addlcategory {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent1, #4f7bff);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
}

/* ── project popup ──────────────────────────────────────────── */
.gwp_projectinput {
    display: inline-block;
    min-width: 42%;
    margin: 8px 12px 12px 0;
    padding: 14px 14px 12px;
    border-radius: 10px;
    border: 1px solid #e8eaed;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    background: #fff;
    vertical-align: top;
}

.gwp_projectitem {
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin: 4px;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    height: 90px;
    width: 90px;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.gwp_projectitem:hover>.gwp_projectboximg {
    background-color: #ffffff;
}

.gwp_projectitem:hover {
    border-color: var(--accent1, #4f7bff);
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.gwp_projectitem:hover>.gwp_projectfilename {
    background: var(--accent1, #4f7bff);
    color: #fff;
}

.gwp_pdelete,
.gwp_pmdelete {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    z-index: 2;
    background: rgba(0,0,0,0.35);
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}

.gwp_pdelete:hover,
.gwp_pmdelete:hover {
    background: rgba(220,38,38,0.85);
    color: #fff;
}

.gwp_projectitem .gwp_pebox,
.gwp_projectitem .gwp_peboximg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 65px;
    font-size: 32px;
    box-sizing: border-box;
}

.gwp_projectadd {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed var(--accent1, #4f7bff);
    border-radius: 8px;
    margin: 4px;
    height: 90px;
    width: 90px;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: center;
    cursor: pointer;
    color: var(--accent1, #4f7bff);
    font-size: 11px;
    gap: 4px;
    transition: background 0.15s, color 0.15s;
}

.gwp_projectadd:hover {
    background: var(--accent1, #4f7bff);
    color: #fff;
}

.gwp_projectadd:hover>.gwp_projectbox {
    background: transparent;
    color: #fff;
}

.gwp_projectbox {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    width: 100%;
    height: 100%;
    background: transparent;
}

.gwp_projectbox>img {
    /*position: absolute;
    left: 0px;*/
    width: 100%;
}

.gwp_projectfilename {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    word-wrap: break-word;
    font-size: 11px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 3px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s;
}

.gwp_projectaddtitle {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6b7280;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gwp_sortableschedule {
    padding: 2px;
}

/* ── pboards card type colours ──────────────────────────────── */
.gwp_pbcard_list {
    background: linear-gradient(135deg, #4f7bff 0%, #6d9aff 100%);
    color: #fff;
}

.gwp_pbcard_project {
    background: linear-gradient(135deg, #22b573 0%, #3dd68c 100%);
    color: #fff;
}

.gwp_pbcard_note {
    background: linear-gradient(135deg, #f7a22d 0%, #ffc567 100%);
    color: #fff;
}

.gwp_pbcard_list i,
.gwp_pbcard_project i,
.gwp_pbcard_note i {
    color: #fff;
}

/* ── pboards card type badge ─────────────────────────────────── */
.gwp_pbcard_badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 20px;
    line-height: 1.4;
    pointer-events: none;
}

.gwp_pbcard_badge_list {
    background: #4f7bff;
    color: #fff;
}

.gwp_pbcard_badge_project {
    background: #22b573;
    color: #fff;
}

.gwp_pbcard_badge_note {
    background: #f7a22d;
    color: #fff;
}

/* make cards position:relative so badge can absolute-position */
.gwp_mediaitem {
    position: relative;
}

/* ── list item modernization ─────────────────────────────────── */
.gwp_listitem {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    margin: 3px 0;
    padding: 6px 8px;
    gap: 4px;
}

.gwp_listitem:hover {
    border-color: var(--accent1, #ddd);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.gwp_tickinput,
.gwp_ctickinput {
    flex: 1;
}

/* ── priority flag ───────────────────────────────────────────── */
.gwp_li_priority {
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 4px;
    color: #ccc;
    transition: color 0.15s;
    flex-shrink: 0;
}

.gwp_li_priority:hover {
    color: #aaa;
}

.gwp_li_priority_none {
    color: #ccc;
}

.gwp_li_priority_low {
    color: #22b573;
}

.gwp_li_priority_medium {
    color: #f7a22d;
}

.gwp_li_priority_high {
    color: #e8394d;
}

/* ── due date input ──────────────────────────────────────────── */
.gwp_li_due {
    font-size: 11px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px 5px;
    color: #666;
    background: #fafafa;
    cursor: pointer;
    flex-shrink: 0;
    width: 118px;
}

.gwp_li_due:focus {
    outline: none;
    border-color: var(--accent1, #333);
}

/* ── add item button ─────────────────────────────────────────── */
.gwp_addlistbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--accent1, #333);
    border: 1.5px dashed var(--accent1, #333);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.gwp_addlistbtn:hover {
    background: var(--accent1, #333);
    color: #fff;
}

/* ── completed list items ────────────────────────────────────── */
.gwp_clists .gwp_listitem {
    opacity: 0.6;
    background: #f9f9f9;
}

.gwp_clists {
    margin-top: 12px;
}

.gwp_clists::before {
    content: "Completed";
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #aaa;
    margin-bottom: 6px;
}

/* ── delete button modernization ─────────────────────────────── */
.gwp_deletelitem {
    margin-left: 2px;
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
    flex-shrink: 0;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s;
    float: none;
}

.gwp_deletelitem:hover {
    color: #e8394d;
}

button:focus {
    outline: 0;
}

/*//Signature//*/
.gwp_scanvas {
    border-radius: 5px;
    border: 2px solid var(--accent1);
}

/*///Home///*/
.gwp_homeframe {
    display: flex;
}

.gwp_hcolumn {
    margin: 40px;
    flex: 50%;
}

/*media filter*/
.gwp_ffitem {
    display: inline-block;
    margin-right: 5px;
    vertical-align: top;
}

/* Library items */
.gwp_filtersframe>* {
    margin-bottom: 15px;
    text-align: left;
}

@keyframes grow {
    0% {
        scale: 0.1;
        opacity: 0.1;
    }

    25% {
        scale: 0.25;
        opacity: 0.25;
    }

    50% {
        scale: 0.5;
        opacity: 0.5;
    }

    75% {
        scale: 0.75;
        opacity: 0.75;
    }

    100% {
        scale: 1;
        opacity: 1;
    }
}

@keyframes shrink {
    100% {
        scale: 1;
        opacity: 1;
    }

    75% {
        scale: 0.75;
        opacity: 0.75;
    }

    50% {
        scale: 0.5;
        opacity: 0.5;
    }

    25% {
        scale: 0.25;
        opacity: 0.25;
    }

    0% {
        scale: 0.1;
        opacity: 0.1;
    }
}

.gwp_filtersframe {
    text-align: center;
    animation: grow 0.5s ease-in-out;
}

.gwp_togglesframe {
    text-align: center;
}

.gwp_clearfilter {
    display: inline-block;
    margin: 0px 2px 2px 0px;
    padding: 6px 6px;
    /*font-weight: 600;*/
    background-color: #efefef;
    color: #000000;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    border: solid 1px #aaa;
    text-align: center;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -khtml-user-drag: element;
    -webkit-user-drag: element;
    border-radius: 2px;
    text-decoration: none;
}

.gwp_elibitem {
    cursor: pointer;
    vertical-align: bottom;
    margin-bottom: 20px;
}

.gwp_vsegment {
    margin-top: 10px;
}

.gwp_segmentbutton {
    margin-right: 5px;
    border: 1px solid #efefef;
    border-radius: 4px;
    cursor: pointer;
    padding: 5px;
}

.gwp_segmentbutton:hover {
    background-color: #ffffff;
    background-color: #bcbcbc;
    border: 1px solid #000000;
    border: 1px solid transparent;
}

.gwp_vsfinput {
    display: inline-block;
    margin-right: 5px;
}

.gwp_vsinput {
    all: unset !important;
    border: 1px solid #aaa !important;
    border-radius: 2px !important;
    padding: 5px !important;
}

.gwp_clearfilter:hover {
    background-color: #ffffff;
    color: #000000;
    border: solid 1px #aaa;
    border-radius: 2px;
}

.taxframe {
    list-style: none;
    margin: 0;
    overflow: hidden;
    padding: 0;
}

.taxframe div {
    float: left;
}

.gwp_taxtag {
    background: #eee;
    border-radius: 3px 0 0 3px;
    /*color: #999;*/
    color: #000000;
    display: inline-block;
    height: 26px;
    line-height: 26px;
    padding: 0 5px 0 23px;
    position: relative;
    margin: 0 10px 10px 0;
    text-decoration: none;
    transition: none;
    -webkit-transition: color 0.2s;
}

.taxtag {
    color: #000000;
}

.gwp_taxtag::before {
    background: #fff;
    border-radius: 10px;
    box-shadow: inset 0 1px rgba(0, 0, 0, 0.25);
    content: '';
    height: 6px;
    left: 10px;
    position: absolute;
    width: 6px;
    top: 10px;
}

.gwp_tagtax:hover {
    text-decoration: underline;
}

.gwp_taxterm {
    /*color: #999;*/
    color: #000000;
    border: none;
    cursor: pointer;
}

.gwp_taxterm:hover {
    text-decoration: underline;
}

/*.gwp_taxtag::after {
    background: #fff;
    border-bottom: 13px solid transparent;
    border-left: 10px solid #eee;
    border-top: 13px solid transparent;
    content: '';
    position: absolute;
    right: 0;
    top: 0;
  }
  
  .gwp_taxtag:hover {
    background-color: crimson;
    color: white;
  }
  
  .gwp_taxtag:hover::after {
     border-left-color: crimson; 
  }*/

.gwp_rmediaitem {
    display: block;
    margin-right: auto;
    margin-left: auto;
    margin-top: 40px;
    margin-bottom: 40px;
    /*margin: 10px 10px 20px 10px;*/
    border-radius: 4px;
    border: none;
    max-width: 700px;
    /*overflow-y:auto;
    overflow: hidden;*/
}

.gwp_rmediatitleframe {
    text-align: center;
    vertical-align: bottom;
}

.gwp_rmediatitle {
    display: inline-block;
    color: #000000;
    font-size: 32px;
    margin: 5px 10px 20px 10px;

}

.gwp_rmediacontent {
    margin: 5px 10px 5px 10px;
}

.gwp_taxframe {
    margin: 5px 10px 5px 10px;
    text-align: center;
}

.gwp_rmediavideo {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.gwp_rmediavideo iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*//Gdrive//*/
.gwp_odrive {
    padding: 10px;
}

.gwp_pdrive {
    padding: 10px;
}

.gwp_gitemline {
    margin-top: 10px;
}

.gwp_gfile {
    display: inline-block;
    padding: 2px 8px;
    font-size: 16px;
    cursor: pointer;
}

.gwp_gfile:hover {
    border-radius: 2px;
    background-color: var(--accent1);
    color: #ffffff;
}

.gwp_gfolder {
    display: inline-block;
    padding: 2px 8px;
    font-size: 16px;
    cursor: pointer;
}

.gwp_gfolder:hover {
    border-radius: 2px;
    background-color: var(--accent1);
    color: #ffffff;
}

.gwp_gfreturn {
    display: inline-block;
    padding: 5px 8px;
    cursor: pointer;
}

.gwp_gfreturn:hover {
    border-radius: 2px;
    background-color: var(--accent1);
    color: #ffffff;
}

.gwp_bcstabs {
    display: inline-block;
    vertical-align: top;
    margin-top: 10px;
    padding-right: 10px;
    border-right: 1px solid #efefef;
    height: calc(100% - 30px);
}

.gwp_bcstab {
    margin-top: 5px;
    margin-left: 10px;
    margin-right: 10px;
    padding: 5px 24px 5px 10px;
    font-size: 16px;
    line-height: 16px;
    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_bcstab:hover {
    background-color: var(--accent1);
    color: #ffffff;
}

.gwp_sbcstab {
    margin-top: 5px;
    margin-left: 10px;
    margin-right: 10px;
    border-left: 5px solid var(--accent1);
    padding: 5px 5px;
    font-size: 16px;
    line-height: 16px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.gwp_bcstorage {
    margin-top: 10px;
    margin-left: 10px;
    display: inline-block;
    vertical-align: top;
    max-width: 85%;
}

/* Cloud sync controls */
.gwp_cloud_sync_panel {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 12px;
}
.gwp_cs_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}
.gwp_cs_label {
    font-size: 13px;
    color: #374151;
}
.gwp_cs_select {
    padding: 5px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #374151;
}

.gwp_gdsbutton {
    margin-left: 10px;
    margin-right: 5px;
    border: 1px solid #efefef;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px 5px;
    font-size: 14px;
    line-height: 16px;
}

.gwp_gdsbutton:hover {
    background-color: #bcbcbc;
    border: 1px solid transparent;
}

.gwp_lfh {
    margin-left: 15px;
    margin-bottom: 10px;
}

.gwp_blinkstatus {
    margin-left: 15px;
}

.gwp_blinkscontainer {
    margin-top: 20px;
    border-top: 1px solid #efefef;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.gwp_blinks {
    margin-top: 10px;
}

.gwp_blink {
    display: inline-block;
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 5px;
    border: 1px solid #efefef;
    background-color: #efefef;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px 5px;
    font-size: 14px;
    line-height: 16px;
}

.gwp_bbutton {
    margin: none;
    border: none;
    padding: none;
    cursor: pointer;
}

.gwp_bpassword {
    -webkit-text-security: disc;
}

/*//Gauth//*/
/* ============================================
   Settings Page — Modern Design System
   ============================================ */

/* Settings page container */
#gwp_sframe {
    padding: 16px 0;
}

#gwp_sframe > div[id*="gwp_selectsettingtype"] {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Settings frame — each section card */
.gwp_settingframe {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
}

.gwp_settingframe:hover {
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.gwp_settingframe h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    letter-spacing: -0.01em;
}

.gwp_stitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
    vertical-align: baseline;
}

.gwp_sstitle {
    margin: 5px;
}

.gwp_cgtitle {
    cursor: pointer;
}

.gwp_sabutton {
    background-color: transparent;
    color: var(--accent1);
    border: 1px solid var(--accent1);
    border-radius: 6px;
    font-size: 12px;
    padding: 2px 8px;
    vertical-align: baseline;
    transition: all 0.15s ease;
}

.gwp_sabutton:hover {
    background-color: var(--accent1);
    color: #ffffff;
    border: 1px solid var(--accent1);
    border-radius: 6px;
    cursor: pointer;
}

/* Key/value field rows */
.gwp_gkeyblock {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f9fafb;
}

.gwp_gkeyblock:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gwp_gkeyblock > b {
    min-width: 170px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    flex-shrink: 0;
}

.gwp_gapi {
    margin: 20px 0px 10px 10px;
}

.gwp_dapi {
    margin: 20px 0px 10px 10px;
}

/* Key/value input fields */
.gwp_gkey {
    display: inline-block;
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb !important;
    background-color: #f9fafb !important;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.gwp_gkey:focus,
.gwp_gkey:focus-within {
    border-color: var(--accent1, #F83600) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #ffffff !important;
}

.gwp_gkey[type="checkbox"] {
    flex: none;
    width: auto;
    max-width: none;
    padding: 0;
    background: transparent !important;
    border: none !important;
}

/* Standalone checkboxes in settings rows (non-gwp_gkey) */
.gwp_gkeyblock > input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent1, #F83600);
    cursor: pointer;
}

.gwp_sfieldinputalt > input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent1, #F83600);
    cursor: pointer;
}

/* Version/dropdown selectors in settings */
.gwp_gversion {
    max-width: 200px;
}

/* Page mapping field rows */
.gwp_sfieldtitle {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    padding: 8px 0;
}

/* Page mapping / settings rows — label on top, value + edit below */
div:has(> .gwp_sfieldtitlealt) {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

div:has(> .gwp_sfieldtitlealt):last-of-type {
    border-bottom: none;
}

.gwp_sfieldtitlealt {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 4px;
}

.gwp_sfieldinputalt {
    display: inline-block;
    font-size: 13px;
    color: #6b7280;
    vertical-align: middle;
}

.gwp_urlhover {
    padding: 6px 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    min-width: 160px;
    display: inline-block;
    vertical-align: middle;
    transition: border-color 0.15s;
}

.gwp_urlhover:hover {
    border-color: #d1d5db;
}

.gwp_seditsmall {
    color: var(--accent1, #F83600);
    font-size: 16px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.15s;
    text-decoration: none;
}

.gwp_seditsmall:hover {
    background: rgba(59, 130, 246, 0.08);
}

.gwp_settings_btn_row {
    margin-top: 12px;
    margin-bottom: 12px;
}

/* Stripe setup guide */
.gwp_stripe_guide {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.gwp_stripe_guide_header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

.gwp_stripe_guide_header:hover {
    background: rgba(2, 132, 199, 0.06);
}

.gwp_stripe_guide_icon {
    color: #0284c7;
    font-size: 18px;
}

.gwp_stripe_guide_header b {
    flex: 1;
    font-size: 13px;
    color: #0c4a6e;
}

.gwp_stripe_guide_caret {
    font-size: 14px;
    color: #0284c7;
    transition: transform 0.2s ease;
}

.gwp_stripe_guide_caret.open {
    transform: rotate(90deg);
}

.gwp_stripe_guide_toggle {
    display: none;
}

#gwp_stripe_guide_body {
    padding: 0 14px 14px 14px;
}

.gwp_stripe_steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.gwp_stripe_step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.gwp_stripe_step_num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0284c7;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.gwp_stripe_step b {
    font-size: 13px;
    color: #0c4a6e;
}

.gwp_stripe_step p {
    font-size: 12px;
    color: #475569;
    margin: 3px 0 0 0;
    line-height: 1.5;
}

.gwp_stripe_step code {
    background: #e0f2fe;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    color: #0369a1;
    word-break: break-all;
}

.gwp_stripe_guide_buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Settings sync buttons */
.gwp_syncbutton {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.gwp_token {
    font-size: 11px;
    font-style: italic;
    margin: 8px 0;
    color: #9ca3af;
}

.gwp_tokentitle {
    display: inline-block;
    font-weight: 500;
    vertical-align: top;
    margin-right: 8px;
    color: #6b7280;
}

.gwp_tokenvalue {
    display: inline-block;
    inline-size: 50%;
    vertical-align: top;
    word-break: break-all;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 11px;
    color: #6b7280;
    background: #f9fafb;
    padding: 4px 8px;
    border-radius: 4px;
}

/*///Print Options///*/
#printable {
    display: none;
}

#non-printable {
    display: inline;
}


@media print {
    #non-printable {
        display: none;
    }

    #printable {
        display: inline;
    }

    #header {
        display: none;
    }

    #header-space {
        display: none;
    }

    #header-outer {
        display: none;
    }

    #search-outer {
        display: none;
    }

    #top {
        display: none;
    }

    #comments {
        display: none;
    }

    #sidebar {
        display: none;
    }

    #footer {
        display: none;
    }

    #footer-outer {
        display: none;
    }

    #menu {
        display: none;
    }

    #commentform {
        display: none;
    }

    #side-header {
        display: none;
    }

    #gwp_frame {
        width: 100%;
        margin: 0px;
        padding: 0px, 2px, 0px, 2px;
        top: 0px;
    }

    #gwp_row0 {
        margin: 0px 0px 0px 0px;
    }

    #gwp_row0 {
        padding: 0px 0px 0px 0px;
    }

    #gwp_cframe {
        margin: 0px 20px 0px 20px;
        padding-top: 49px;
    }

    .gwp_chevron,
    .gwp_cssearch {
        display: none;
    }

    .gwp_sdevents>.gwp_sdevent span:nth-of-type(2) {
        display: none !important;
    }

    .gwp_sdevents>.gwp_sdevent {
        visibility: collapse;
    }

    .gwp_sdevents>.gwp_sdevent span,
    i {
        visibility: visible;
    }

    #select_caldate>.select_date {
        border: none;
        font-size: 32px;
        text-transform: uppercase;
        font-weight: 600;
        width: 100%;
        margin: 10px 0px 10px 0px;
        text-align: center;
    }

    .gwp_calframecontents {
        height: auto;
    }

    #gwp_cframe>* {
        page-break-after: auto;
    }

    #gwp_clframe {
        margin-top: 0px;
    }

    .gwp_calheader {
        position: relative;
        height: 15px;
        /*position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 2em;*/
    }

    #gwp_calframe {
        margin-top: 50px;
    }

    .gwp_singleday {
        page-break-after: auto;
    }

    #select_caldate>.select_date::after {
        visibility: collapse;
    }

    .select_calmleft {
        display: none;
    }

    .select_calmright {
        display: none;
    }

    .gwp_topbuttonbar {
        width: 100%;
        position: relative;
        padding: 6px 8px;
        box-shadow: none;
        flex-wrap: wrap;
    }

    #gwp_row0 {
        padding-top: 0px;
    }

    .gwp_row {
        margin: 0px;
        padding: 0px;
        page-break-after: auto;
    }

    .gwp_rowtitle {
        position: relative;
        padding-top: 0px;
    }

    .gwp_addtopbuttons {
        display: none;
    }

    #gwp_appchooser {
        display: none;
    }

    .gwp_daytitle {
        background-color: #F0F0F0;
        margin-left: -1px;
        margin-right: -1px;
    }

    .gwp_todaytitle {
        background-color: var(--accent1);
        color: #ffffff;
    }

    .gwp_month,
    .gwp_year {
        margin-left: 0px;
        margin-right: 0px;
        width: auto !important;
    }

    #gwp_monthtitle {
        margin-left: 0px;
        margin-right: 0px;
        width: auto;
        font-size: 30px;
    }

    #gwp_yeartitle {
        margin-left: 8px;
        margin-right: 0px;
        width: auto;
        font-size: 30px;
    }

    .gwp_event,
    .gwp_alldayevent,
    .gwp_startevent,
    .gwp_midevent,
    .gwp_endevent {
        font-size: 16px;
    }

    #gwp_cframe {
        padding: 0px;
        margin: 0px;
    }

    .gwp_calframecontent {
        padding: 0px;
        margin: 0px;
    }


    .gwp_day,
    .gwp_dayalt {
        height: 190px;
    }

    .gwp_dayalt>* {
        opacity: 0.6;
    }

    body {
        margin: 0px;
        border: none !important;
    }

    body.side-header-left #wrapper {
        margin-left: 0px;
    }

    #printablearea {
        display: block;
    }

    .gwp_content {
        padding: 5px;
        font-size: 12px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        display: block;
        page-break-inside: avoid;
    }

    .gwp_dropdown {
        display: none;
    }

    .gwp_circlemorebutton,
    .gwp_circlelessbutton,
    .gwp_circleoverlay,
    .gwp_circlemenu,
    .gwp_circlemenubutton {
        display: none;
    }

    .gwp_more_buttonwrap {
        display: none;
    }

}

/* ============================================
   SWP DATABASE & MODAL STYLES
   Add this to output.css or include separately
   ============================================ */

/* ============================================
   CSS VARIABLES - Set your accent color here
   ============================================ */
:root {
    --swp-accent-color: #2a9d8f;
    --swp-accent-light: #f0faf9;
    --swp-accent-border: #c5d9eb;
}

/* ============================================
   MODAL BASE STYLES
   ============================================ */
.gwp_sig_modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.gwp_sig_modal_content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gwp_sig_modal_content h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.gwp_sig_modal_buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Prevent empty-state large icon font-size bleeding into button icons */
button i, .gwp_sbuttonsmall i, .gwp_btn_primary i, .gwp_btn_secondary i,
.gwp_taxp_btn i, .gwp_lib_empty_btn i {
    font-size: inherit;
    line-height: 1;
    vertical-align: middle;
}

/* Modal buttons */
.gwp_btn_primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--swp-accent-color, #2a9d8f);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

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

.gwp_btn_secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.gwp_btn_secondary:hover {
    background: #eee;
}

/* Modal input fields */
.gwp_sig_modal .gwp_dbinputframe {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    color: #333;
}

.gwp_sig_modal .gwp_dbinputframe:focus {
    border-color: var(--swp-accent-color, #2a9d8f);
    outline: none;
    box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.2);
}

/* NPS FIELD - Styles moved to select.css */

/* IMAGE SELECT FORM FIELD - Styles moved to select.css */

/* ============================================
   IMAGE SELECT MODAL
   ============================================ */
.gwp_imgselect_modal_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.gwp_imgselect_modal_option {
    position: relative;
    display: inline-block;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    min-width: 100px;
    background: #fff;
}

.gwp_imgselect_modal_option:hover {
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gwp_imgselect_modal_option.selected {
    border-color: var(--swp-accent-color, #2a9d8f);
    background: var(--swp-accent-light, #f0faf9);
}

.gwp_imgselect_modal_option img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.gwp_imgselect_modal_placeholder {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #999;
    font-size: 24px;
}

.gwp_imgselect_modal_label {
    display: block;
    font-size: 12px;
    margin-top: 8px;
    color: #666;
    word-break: break-word;
}

.gwp_imgselect_modal_check {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--swp-accent-color, #2a9d8f);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gwp_imgselect_modal_option.selected .gwp_imgselect_modal_check {
    display: flex;
}

.gwp_imgselect_db_container {
    position: relative;
    padding-right: 45px;
    min-height: 32px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

/* CURRENCY FIELD - Styles moved to select.css */

/* URL FIELD - Styles moved to select.css */

/* RANKING FIELD - Styles moved to select.css */

/* DROPDOWN & SELECT FIXES - Styles moved to select.css */

/* ============================================
   DATABASE EDIT BUTTON
   ============================================ */
.gwp_db_edit_btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--swp-accent-color, #2a9d8f);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 13px;
    opacity: 1;
    pointer-events: auto;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

.gwp_db_edit_btn[disabled],
.gwp_db_edit_btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #aaa;
    pointer-events: none;
}

/* ============================================
   REPEATER - COMPACT DATABASE TABLE DISPLAY
   ============================================ */
.gwp_repeater_db_wrapper {
    position: relative;
    padding-right: 45px;
    min-height: 32px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.gwp_repeater_db_container {
    flex: 1;
    min-width: 0;
}

.gwp_repeater_db_compact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 320px;
}

.gwp_repeater_db_tag {
    display: inline-flex;
    align-items: center;
    background: var(--swp-accent-light, #f0f7ff);
    color: var(--swp-accent-color, #2a5a8c);
    padding: 4px 10px 4px 4px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.3;
    border: 1px solid var(--swp-accent-border, #c5d9eb);
    max-width: 280px;
}

.gwp_repeater_db_num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: var(--swp-accent-color, #2a5a8c);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    margin-right: 6px;
}

.gwp_repeater_db_label {
    font-weight: 500;
    margin-right: 4px;
    opacity: 0.8;
}

.gwp_repeater_db_text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gwp_repeater_db_empty {
    color: #999;
    font-style: italic;
    font-size: 12px;
}

.gwp_repeater_db_summary {
    color: #666;
    font-size: 13px;
}

/* ============================================
   REPEATER MODAL STYLES
   ============================================ */
.gwp_repeater_modal_items {
    min-height: 50px;
    margin-bottom: 15px;
}

.gwp_repeater_modal_item {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.gwp_repeater_modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.gwp_repeater_modal_title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.gwp_repeater_modal_remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 18px;
    border-radius: 4px;
}

.gwp_repeater_modal_remove:hover {
    background: #fee;
}

.gwp_repeater_modal_content {
    padding: 12px;
}

.gwp_repeater_modal_field {
    margin-bottom: 12px;
}

.gwp_repeater_modal_field:last-child {
    margin-bottom: 0;
}

.gwp_repeater_modal_field label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
}

.gwp_repeater_modal_add {
    width: 100%;
    padding: 10px;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.gwp_repeater_modal_add:hover {
    background: #eee;
    border-color: #999;
}

/* ============================================
   REPEATER DATABASE TABLE INLINE EDIT
   ============================================ */
.gwp_repeater_db_item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fff;
}

.gwp_repeater_db_item_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.gwp_repeater_db_title {
    font-weight: 500;
    font-size: 13px;
    color: #444;
}

.gwp_repeater_db_remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 14px;
}

.gwp_repeater_db_remove:hover {
    color: #e74c3c;
}

.gwp_repeater_db_item_content {
    padding: 10px;
}

.gwp_repeater_db_field {
    margin-bottom: 8px;
}

.gwp_repeater_db_field:last-child {
    margin-bottom: 0;
}

.gwp_repeater_db_input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}

.gwp_repeater_db_add {
    width: 100%;
    padding: 8px;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    font-size: 13px;
    margin-top: 8px;
}

.gwp_repeater_db_add:hover {
    background: #eee;
}

/* SOCIAL LINKS WRAPPER - Styles moved to select.css */

/*@media only screen and (max-device-width: 480px) {*/
/*Mobile and tablet*/
@media only screen and (max-device-width: 767px) {

    .gwp_mediabuckets,
    .gwp_amediabuckets,
    .gwp_gmediabuckets,
    .gwp_mmediabuckets,
    .gwp_activities,
    .gwp_schedules,
    .gwp_document {
        margin: 10px 5px 20px 5px;
        padding: 16px 12px 24px 12px;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
        background-color: #ffffff;
    }

    #gwp_appchooser {
        margin-right: 2px;
    }

    .gwp_cseriesframe {
        width: 95%;
        margin-top: 10px;
    }

    .gwp_activitytitle {
        /*display:block;*/
        float: none;
    }

    .gwp_form {
        margin: 5px !important;
        padding: 10px !important;
    }


    /*circlebutton menu*/
    .gwp_circlemorebutton {
        margin-bottom: 5px;
        margin-right: 5px;
        bottom: 5px;
        right: 5px;
        margin: 0px;
    }

    .gwp_circlelessbutton {
        margin-bottom: 5px;
        margin-right: 5px;
        bottom: 5px;
        right: 5px;
    }

    .gwp_circlemenu {
        margin-bottom: 0px;
        margin-right: 0px;
        bottom: 115px;
        right: 5px;
    }

    .gwp_circlemenubutton {
        margin-bottom: 5px;
        margin-right: 5px;
        bottom: 115px;
        right: 5px;

    }

    .gwp_mobileevents {
        text-align: center;
        display: block;
        margin-top: 6px;
        margin-left: auto;
        margin-right: auto;
    }

    .mei {
        display: block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .gwp_desktopevents {
        display: none;
    }

    .gwp_views {
        display: none;
    }

    .gwp_day {
        min-height: 20px;
        height: 46px;
        cursor: pointer;
        overflow: visible;
    }

    .gwp_dayselected {
        min-height: 20px;
        height: 46px;
        cursor: pointer;
        overflow: visible;
    }

    .gwp_dayalt {
        min-height: 20px;
        height: 46px;
        overflow: visible;
    }

    .gwp_title,
    .gwp_ltitle,
    .gwp_rtitle {
        font-size: 10px;
        padding: 6px 0;
    }

    .gwp_titledesktop {
        display: none;
    }

    .gwp_titlemobile {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .gwp_chevron {
        font-size: 20px;
    }

    #gwp_monthtitle {
        width: auto;
        font-size: 16px;
    }

    #gwp_yeartitle {
        width: auto;
        font-size: 16px;
    }

    .gwp_calframe {
        margin-left: 1%;
        margin-right: 1%;
        width: 96%;
    }

    .gwp_title,
    .gwp_ltitle,
    .gwp_rtitle,
    .gwp_day,
    .gwp_dayalt {
        width: 13.5%;
    }

    #gwp_cframe {
        padding: 0px 5px 0px 5px;
        padding-top: 0px;
        margin: 0px;
    }

    #gwp_clframe {
        display: block;
        padding: 0px 5px 0px 5px;
        margin: 0px;
    }

    #gwp_hframe {
        display: block;
        padding: 0px 5px 0px 5px;
        margin: 0px;
    }

    #gwp_row0 {
        padding: 0px 5px 0px 5px;
        padding-top: 0px;
        margin: 10px 0px 0px 0px;
    }

    .gwp_calheader {
        display: block;
        z-index: none;
        top: 0px;
        height: auto;
    }

    .gwp_search {
        width: 150px;
    }

    .gwp_searchinnactive {
        display: none;
    }

    /*SALIENT start*/
    .main-content {
        max-width: 98% !important;
    }

    /* SALIENT End*/

    .gwp_calbuttonbar {
        display: block;
        padding: 0px 5px 0px 5px;
        margin: 0px;
    }

    .gwp_addtopbuttons {
        -webkit-box-sizing: initial;
        box-sizing: initial;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        flex-wrap: nowrap;
        top: 10px;
        right: 10px;
    }

    #gwp_la-signout {
        display: none;
    }

    /*.fa-file-alt, .fa-list-alt, .fa-calendar-plus, .fa-user-plus, .fa-table{
    display:none;
}*/

    .gwp_navigation {
        -webkit-box-sizing: initial;
        box-sizing: initial;
        flex: 1;
        min-width: 0;
        font-size: 16px;
        text-align: center;
    }

    .gwp_month {
        margin-right: 5px;
    }

    .gwp_year {
        margin-right: 5px;
    }

    .gwp_topbutton {
        margin-left: 2px;
        margin-right: 2px;
    }

    .gwp_topbuttonc {
        gap: 1px;
    }

    .gwp_topbuttonbar {
        padding: 6px 5px;
    }

    .gwp_singleday {
        display: none;
        user-select: none;
    }

    .gwp_expandday {
        display: none !important;
        position: relative;
    }

    .gwp_views {
        display: none;
    }

    .gwp_formfieldtitle {
        display: block;
        width: 100%;
    }

    .gwp_formfield {
        width: 100%;
    }

    .gwp_removecontainer {
        float: none;
        display: block;
        margin-left: 22px;
    }

    #gwp_remove_button {
        float: none;
    }

    .gwp_projectinput {
        display: inline-block;
        min-width: 90%;
        margin: 10px 20px 20px 11px;
        padding: 10px 10px 10px 10px;
        border-radius: 4px;
        box-shadow: 0 0 10px rgb(0 0 0 / 40%);
        background-color: #ffffff;
    }

    .gwp_homeframe {
        display: block;
    }

    .gwp_hcolumn {
        flex: 100%;
    }

    .gwp_ffitem {
        display: block;
        width: 100%;
        padding: 0px 20px 0px 20px;
    }

    .gwp_ffitem>.select_filterdropdown {
        width: 100%;
    }

    .gwp_aclose {
        top: 10px;
        right: 10px;
    }

    .gwp_aslide {
        margin-top: 60px;
    }

    .gwp_nav {
        display: block;
        position: fixed;
        bottom: 20px;
        width: 100%;
    }

    .gwp_panav {
        position: relative;
        top: unset;
        left: unset;
        transition: all 200ms;
        font-size: 48px;
        font-weight: bold;
        text-decoration: none;
        color: #ffffff;
        cursor: pointer;
        padding: 8px 9px;
        border-radius: 50px;
        float: left;
        margin-left: 20px;
    }

    .gwp_nanav {
        position: relative;
        top: unset;
        right: unset;
        transition: all 200ms;
        font-size: 48px;
        font-weight: bold;
        text-decoration: none;
        color: #ffffff;
        cursor: pointer;
        padding: 8px 9px;
        border-radius: 50px;
        float: right;
        margin-right: 20px;
    }

    .gwp_nanav:hover,
    .gwp_panav:hover {
        background-color: #000000;
        color: #ffffff;
    }

    .gwp_messagechat {
        min-width: 0;
    }

    .gwp_msgcompose_bar {
        padding: 6px 6px 6px 10px;
    }

    /* ============================================ */
    /* MOBILE FORM STYLES                          */
    /* ============================================ */

    /* Form container - full width, left aligned, minimal margins */
    .gwp_formfields {
        padding: 0 5px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .gwp_dbform {
        padding: 10px 5px !important;
        margin: 0 !important;
    }

    /* Stack labels above fields on mobile */
    .gwp_formfieldline {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
        margin-bottom: 20px !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .gwp_formfieldline .gwp_formfieldtitle {
        min-width: auto !important;
        max-width: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 4px 0 !important;
        font-weight: 600 !important;
        text-align: left !important;
    }

    .gwp_formfieldline .gwp_formfield {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: wrap !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .gwp_formfield .select_field_wrapper {
        width: 100% !important;
        min-width: auto !important;
        max-width: none !important;
    }

    /* Validation messages stack below field on mobile */
    .select_validation_message,
    .gwp_required {
        margin-left: 0 !important;
        margin-top: 4px !important;
        width: 100% !important;
    }

    /* Textarea and form text fields */
    .gwp_formfieldline[gwp_ftype="textarea"],
    .gwp_formfieldline[gwp_ftype="form text"] {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .gwp_formfieldline[gwp_ftype="textarea"] .gwp_formfieldtitle,
    .gwp_formfieldline[gwp_ftype="form text"] .gwp_formfieldtitle {
        padding: 0 !important;
        margin: 0 0 4px 0 !important;
    }

    /* Switch field layout on mobile - keep inline */
    .gwp_formfieldline[gwp_ftype="switch"] {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .gwp_formfieldline[gwp_ftype="switch"] .gwp_formfieldtitle {
        flex: 1 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .gwp_formfieldline[gwp_ftype="switch"] .gwp_formfield {
        flex: 0 0 auto !important;
        width: auto !important;
    }

    /* Input fields full width on mobile */
    .gwp_formfield input[type="text"],
    .gwp_formfield input[type="email"],
    .gwp_formfield input[type="tel"],
    .gwp_formfield input[type="url"],
    .gwp_formfield input[type="password"],
    .gwp_formfield input[type="number"],
    .gwp_formfield input[type="date"],
    .gwp_formfield input[type="time"],
    .gwp_formfield input[type="datetime-local"],
    .gwp_formfield textarea,
    .gwp_formfield .select_formtext,
    .gwp_formfield .select_inputframe,
    .gwp_formfield .select_inputs {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    /* Dropdowns and tagboxes full width */
    .gwp_formfield .select_singleframe,
    .gwp_formfield .select_multiframe,
    .gwp_formfield .select_tagframe {
        width: 100% !important;
        max-width: none !important;
    }

    /* Star rating and slider fields */
    .gwp_formfieldline[gwp_ftype="star rating"] .gwp_formfield,
    .gwp_formfieldline[gwp_ftype="slider"] .gwp_formfield {
        width: 100% !important;
    }

    /* Fill blanks wrapper */
    .gwp_fillblanks_wrapper {
        width: 100% !important;
    }

    /* URL field with prefix */
    .select_url_field {
        width: 100% !important;
    }

    /* Phone field */
    .select_phone_wrapper {
        width: 100% !important;
    }

}

@media only screen and (max-device-width: 350px) {



    .gwp_cseriesframe {
        width: 95%;
        margin-top: 10px;

    }

    .gwp_formfieldtitle {
        display: block;
        width: 100%;
    }

    .gwp_formfield {
        width: 100%;
    }


    .gwp_addtopbuttons {
        -webkit-box-sizing: initial;
        box-sizing: initial;
        float: right;
        top: 0;
        display: none;
    }

    #gwp_la-signout {
        display: none;
    }

}

/* =====================================================
   MODERN FORM BUILDER - Field Picker & Reorder Controls
   ===================================================== */

/* Field Picker Modal */
.gwp_field_picker_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.gwp_field_picker_modal.active {
    display: block;
}

.gwp_field_picker_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.gwp_field_picker_content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.gwp_field_picker_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.gwp_field_picker_header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.gwp_field_picker_close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.gwp_field_picker_close:hover {
    color: #333;
}

.gwp_field_picker_search {
    padding: 12px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.gwp_field_picker_search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.gwp_field_picker_search input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.gwp_field_picker_tabs {
    display: flex;
    gap: 4px;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e5e5;
    overflow-x: auto;
    flex-shrink: 0;
}

.gwp_field_tab {
    padding: 8px 14px;
    border: none;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    color: #555;
    transition: all 0.2s;
}

.gwp_field_tab:hover {
    background: #e0e0e0;
}

.gwp_field_tab.gwp_field_tab_active {
    background: #0073aa;
    color: #fff;
}

.gwp_field_picker_body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.gwp_field_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.gwp_field_picker_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.gwp_field_picker_item:hover {
    border-color: #0073aa;
    background: #f8fbfd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

.gwp_field_picker_icon {
    font-size: 28px;
    color: #0073aa;
    margin-bottom: 8px;
}

.gwp_field_picker_name {
    font-size: 12px;
    color: #333;
    text-align: center;
    font-weight: 500;
}

.gwp_field_picker_item.hidden {
    display: none;
}

/* Add Field Button (between fields) */
.gwp_field_add_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 6px;
    margin: 4px 0;
    border: 2px dashed #ddd;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    color: #999;
    font-size: 14px;
}

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

.gwp_field_add_btn i {
    font-size: 16px;
}

/* Field Control Buttons - drag handle, up/down arrows - all same style */
.gwp_field_controls {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 10px;
    vertical-align: middle;
}

.gwp_field_ctrl_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    padding: 0;
    transition: all 0.15s;
}

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

.gwp_field_ctrl_btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gwp_field_ctrl_btn:disabled:hover {
    background: transparent;
    color: #999;
}

.gwp_field_ctrl_btn.gwp_drag_handle {
    cursor: grab;
}

.gwp_field_ctrl_btn.gwp_drag_handle:active {
    cursor: grabbing;
}

/* Legacy support for old class names */
.gwp_field_reorder {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 10px;
}

.gwp_field_reorder_btn,
.gwp_dragicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    padding: 0;
    transition: all 0.15s;
}

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

.gwp_field_reorder_btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gwp_field_reorder_btn:disabled:hover {
    background: transparent;
    color: #999;
}

.gwp_dragicon {
    cursor: grab;
}

.gwp_dragicon:active {
    cursor: grabbing;
}

/* Field card title frame alignment */
.gwp_titleframe {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    gap: 4px;
}

.gwp_titleframe .gwp_field_reorder,
.gwp_titleframe .gwp_field_controls,
.gwp_titleframe .gwp_dragicon {
    flex-shrink: 0;
}

/* Field title section - icon, type badge, title text, caret */
.gwp_titleframe .gwp_ctitle {
    flex: 1;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    min-width: 0;
    /* Allow text truncation */
}

/* Field type group - icon and text in one pill */
.gwp_fieldtype_group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #e9e9e9;
    border-radius: 4px;
    flex-shrink: 0;
    height: 24px;
    line-height: 24px;
    box-sizing: border-box;
}

/* Field type text */
.gwp_fieldtype {
    font-size: 12px;
    color: #555;
    text-transform: lowercase;
    white-space: nowrap;
    line-height: 1;
}

/* Field icon - inside the group */
.gwp_titleicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
    line-height: 1;
}

/* Field title text */
.gwp_titlefield {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    margin-right: 4px;
    font-style: normal !important;
    line-height: 24px;
}

.gwp_titlefield:hover {
    font-style: normal !important;
}

/* Caret icons - inline with title */
.gwp_caretdown,
.gwp_caretup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 24px;
    color: #666;
    font-size: 14px;
    flex-shrink: 0;
    line-height: 24px;
}

/* Default states - caretdown visible, caretup hidden */
.gwp_caretdown {
    display: inline-flex;
}

.gwp_caretup {
    display: none;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .gwp_field_picker_content {
        width: 95%;
        max-height: 90vh;
    }

    .gwp_field_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .gwp_field_picker_item {
        padding: 12px 8px;
    }

    .gwp_field_picker_icon {
        font-size: 24px;
    }

    .gwp_field_picker_name {
        font-size: 11px;
    }

    .gwp_field_picker_tabs {
        padding: 8px 12px;
    }

    .gwp_field_tab {
        padding: 6px 10px;
        font-size: 12px;
    }

    .gwp_field_reorder_btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

/* =====================================================
   FORM BUILDER - Container & Delete Button Styles
   ===================================================== */

/* Field list container - when inside wrapper, no background/border needed */
#gwp_cdbfields,
.gwp_fieldlist {
    width: 100%;
    min-height: 50px;
    padding: 15px;
    padding-top: 10px;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* Standalone fieldlist (not in wrapper) keeps its styling */
.gwp_fieldlist:not(.gwp_sortable) {
    width: calc(100% - 50px);
    background: #e8eaed;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Field card - position relative for absolute delete button */
.contactfield,
.gwp_dbfield_wrapper {
    position: relative;
}

/* Title frame styling */
.gwp_titleframe {
    position: relative;
}

/* Delete button - inline with other controls */
.gwp_removefield {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #999;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
    flex-shrink: 0;
    margin-left: auto;
}

.gwp_removefield:hover {
    background: #e74c3c;
    color: #fff;
}

/* Drag and drop styling for form fields */
.contactfield {
    cursor: grab;
    transition: all 0.2s ease;
    -webkit-user-drag: element;
}

.contactfield:active {
    cursor: grabbing;
}

.contactfield[draggable="true"] {
    -webkit-user-drag: element;
}

.contactfield.gwp_field_dragging {
    opacity: 0.4 !important;
    border: 2px dashed #0073aa !important;
    background: #f0f8ff !important;
}

.contactfield.gwp_field_dragover {
    border-top: 4px solid #0073aa !important;
    margin-top: -2px;
    padding-top: 2px;
}

/* Add a visual placeholder line when dragging over */
.contactfield.gwp_field_dragover::before {
    content: "Drop here";
    display: block;
    background: #0073aa;
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    margin-bottom: 5px;
    border-radius: 3px;
}

/* Make the drag handle more obvious */
.gwp_dragicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 100%;
    min-height: 36px;
    cursor: grab;
    color: #999;
    font-size: 18px;
    border-radius: 3px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.gwp_dragicon:hover {
    background: #e0e0e0;
    color: #333;
}

.gwp_dragicon:active {
    cursor: grabbing;
    background: #d0d0d0;
}

/* Title frame layout for drag icon */
.gwp_titleframe {
    display: flex;
    align-items: center;
    position: relative;
}

.gwp_titleframe .gwp_ctitle {
    flex: 1;
}

/* Field list container - replaces gwp_sortable classes */
.gwp_fieldlist {
    width: calc(100% - 20px);
    min-height: 50px;
}

/* Add Field Button inside field foptions */
.gwp_field_add_wrapper {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
}

.gwp_field_add_wrapper .gwp_field_add_btn {
    width: 100%;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
}

.gwp_field_add_wrapper .gwp_field_add_btn:hover {
    background: #e8f4fc;
    border-color: #0073aa;
    color: #0073aa;
}

/* Initial add button (when no fields) */
.gwp_field_add_initial {
    padding: 20px;
    margin: 10px 0;
    font-size: 14px;
}

/* Drag icon styling */
.gwp_dragicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    padding: 4px 8px;
    color: #999;
}

.gwp_dragicon:hover {
    color: #333;
}

.gwp_dragicon i.handle {
    font-size: 16px;
}



/* Inline add field button on title bar */
.gwp_addfield_inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.gwp_addfield_inline:hover {
    background: #e0f0ff;
    color: #0073aa;
}

/* Initial add field button (when no fields exist) */
.gwp_field_add_initial {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 20px;
    margin: 10px 0;
    background: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.gwp_field_add_initial:hover {
    background: #e8f4fc;
    border-color: #0073aa;
    color: #0073aa;
}


/* Field structure - content wrapper and add bar */
.gwp_field_content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 0;
}

.gwp_field_addbar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    margin: 6px 0;
    background: transparent;
    border: 2px dashed #ddd;
    border-radius: 4px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

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

/* Adjust contactfield to be the wrapper */
.contactfield {
    margin-bottom: 4px;
}

/* Remove old border from titleframe since gwp_field_content has it now */
.contactfield .gwp_titleframe {
    border: none;
    border-radius: 6px 6px 0 0;
}

.contactfield .gwp_foptions,
.gwp_dbfield_wrapper .gwp_foptions {
    border: none;
    border-top: 1px solid #eee;
    padding: 15px;
}

/* Contactfield wrapper - transparent, just holds the content and add bar */
.contactfield {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 4px;
}

/* The actual visible field box */
.gwp_field_content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

/* Database field wrapper - transparent container that moves as a unit */
.gwp_dbfield_wrapper {
    background: transparent;
    margin-bottom: 4px;
    cursor: default;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.gwp_dbfield_wrapper[draggable="true"] {
    cursor: grab;
}

.gwp_dbfield_wrapper[draggable="true"]:active {
    cursor: grabbing;
}

/* Dragging state - the item being dragged */
.gwp_dbfield_wrapper.gwp_field_dragging {
    opacity: 0.6;
    transform: scale(0.98);
}

.gwp_dbfield_wrapper.gwp_field_dragging .gwp_field_content {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Drop target indicator - clean blue line */
.gwp_dbfield_wrapper.gwp_field_dragover {
    position: relative;
}

.gwp_dbfield_wrapper.gwp_field_dragover::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: #0073aa;
    border-radius: 2px;
    z-index: 10;
}

/* Fields wrapper containing add button and sortable list */
.gwp_fields_wrapper {
    width: calc(100% - 20px);
    background: #e8eaed;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}

/* Add field button wrapper at top - seamless with container */
.gwp_field_add_top_wrapper {
    padding: 15px 15px 0 15px;
}

/* Add field button at top */
.gwp_field_add_top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 15px;
    background: #fff;
    border: 2px dashed #ccc;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

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

/* Override gwp_cdbfields styling since wrapper now handles it */
#gwp_cdbfields.gwp_sortable {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 15px;
    box-sizing: border-box;
}

/* ============================================================================
   UNIFIED FORM BUILDER STYLES
   ============================================================================ */

/* Form buttons wrapper — replaces absolute-positioned toggle */
.gwp_form_btns_wrap {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: inline-flex;
    gap: 6px;
}


/* Form edit toggle button */
.gwp_form_edit_toggle {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    vertical-align: middle;
}

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

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

/* Editable form container */
.gwp_dbform.gwp_form_editable .gwp_formfields {
    background: #f5f7f9;
    border-radius: 8px;
    padding: 15px;
    min-height: 100px;
}

/* Form field line in edit mode */
.gwp_form_editable .gwp_formfieldline {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 0;
    padding: 12px 12px 12px 50px;
    transition: all 0.2s;
}

.gwp_form_editable .gwp_formfieldline:hover {
    border-color: var(--accent1, #0073aa);
}

/* Field edit controls - left side */
.gwp_form_field_controls {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
}

/* Field edit controls - right side */
.gwp_form_field_controls_right {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

/* Control buttons */
.gwp_form_ctrl_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: #f0f0f0;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
}

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

.gwp_form_drag_handle {
    cursor: grab;
}

.gwp_form_drag_handle:active {
    cursor: grabbing;
}

.gwp_form_delete_btn:hover {
    background: #e74c3c;
    color: #fff;
}

.gwp_form_edit_btn:hover {
    background: #f39c12;
    color: #fff;
}

/* Editable form field lines */
.gwp_form_editable .gwp_formfieldline {
    position: relative;
    padding-left: 100px;
    padding-right: 110px;
    min-height: 50px;
    display: flex;
    align-items: center;
}

/* Add field button */
.gwp_form_add_field_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    margin: 8px 0;
    background: transparent;
    border: 2px dashed #ddd;
    border-radius: 6px;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

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

.gwp_form_add_top {
    margin-bottom: 12px;
    padding: 10px;
    height: auto;
}

/* Drag states */
.gwp_form_field_dragging {
    opacity: 0.4;
    transform: scale(0.98);
    z-index: 1000;
}

/* Dragover state - field being hovered during drag */
.gwp_form_field_dragover {
    background: #e3f2fd !important;
    border-color: var(--accent1, #0073aa) !important;
    box-shadow: 0 0 0 2px var(--accent1, #0073aa) !important;
}

/* Drop placeholder - full size box */
.gwp_form_drop_placeholder {
    background: #e8f4fc;
    border: 2px dashed var(--accent1, #0073aa);
    border-radius: 6px;
    min-height: 50px;
    padding: 12px 20px;
    margin: 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--accent1, #0073aa);
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
}

.gwp_form_drop_placeholder i {
    font-size: 16px;
}

/* Hide add buttons during drag */
.gwp_form_editable.gwp_dragging_active .gwp_form_add_field_btn {
    display: none;
}

/* Hide controls outside of edit mode */
.gwp_dbform:not(.gwp_form_editable) .gwp_form_field_controls,
.gwp_dbform:not(.gwp_form_editable) .gwp_form_add_field_btn {
    display: none !important;
}

/* Settings modal */
.gwp_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.gwp_modal_content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gwp_modal_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.gwp_modal_header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.gwp_modal_close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.gwp_modal_close:hover {
    background: #f0f0f0;
    color: #333;
}

.gwp_modal_body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.gwp_modal_footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.gwp_modal_btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: var(--accent1, #0073aa);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.gwp_modal_btn:hover {
    background: var(--accent2, #005a87);
}

.gwp_form_setting_row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.gwp_form_setting_row label {
    flex: 0 0 120px;
    font-weight: 500;
    color: #555;
}

.gwp_form_setting_value {
    color: #333;
}

.gwp_form_setting_note {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .gwp_form_edit_toggle {
        position: static;
        width: 100%;
        justify-content: center;
        margin-top: 0;
        margin-bottom: 10px;
    }

    .gwp_form_editable .gwp_formfieldline {
        padding-left: 40px;
        padding-right: 70px;
    }

    .gwp_form_ctrl_btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* Inline field settings panel */
.gwp_inline_field_settings {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 8px 0;
    padding: 15px;
    animation: gwp_slideDown 0.2s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gwp_inline_settings_content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gwp_inline_settings_row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gwp_inline_settings_row label {
    flex: 0 0 100px;
    font-weight: 500;
    color: #555;
    font-size: 13px;
}

.gwp_inline_settings_input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.gwp_inline_settings_input:focus {
    outline: none;
    border-color: var(--accent1, #0073aa);
}

.gwp_inline_settings_value {
    color: #666;
    font-size: 14px;
}

.gwp_inline_settings_checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.gwp_inline_settings_actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.gwp_inline_settings_btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

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

.gwp_inline_settings_save:hover {
    background: var(--accent2, #005a87);
}

.gwp_inline_settings_cancel {
    background: #e0e0e0;
    color: #555;
}

.gwp_inline_settings_cancel:hover {
    background: #d0d0d0;
}

/* Settings Modal */
.gwp_settings_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: gwp_fadeIn 0.2s ease;
}

@keyframes gwp_fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.gwp_settings_modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    animation: gwp_slideUp 0.2s ease;
}

@keyframes gwp_slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gwp_settings_modal_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.gwp_settings_modal_header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.gwp_settings_modal_close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.gwp_settings_modal_close:hover {
    background: #f0f0f0;
    color: #333;
}

.gwp_settings_modal_body {
    padding: 20px;
}

.gwp_settings_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.gwp_settings_row label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.gwp_settings_input {
    width: 60%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.15s;
}

.gwp_settings_input:focus {
    outline: none;
    border-color: var(--accent1, #0073aa);
}

.gwp_settings_value {
    color: #666;
    font-size: 14px;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 4px;
}

/* Toggle switch */
.gwp_settings_toggle {
    position: relative;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.gwp_settings_toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gwp_settings_toggle_slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 26px;
    transition: 0.2s;
}

.gwp_settings_toggle_slider:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.gwp_settings_toggle input:checked+.gwp_settings_toggle_slider {
    background: var(--accent1, #0073aa);
}

.gwp_settings_toggle input:checked+.gwp_settings_toggle_slider:before {
    transform: translateX(24px);
}

.gwp_settings_modal_footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 0 0 12px 12px;
}

.gwp_settings_btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.gwp_settings_btn_cancel {
    background: #e0e0e0;
    color: #555;
}

.gwp_settings_btn_cancel:hover {
    background: #d0d0d0;
}

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

.gwp_settings_btn_save:hover {
    background: var(--accent2, #005a87);
}

/* Wide modal for advanced options */
.gwp_settings_modal_wide {
    max-width: 550px;
}

/* Advanced options section */
.gwp_settings_advanced_section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.gwp_settings_advanced_header {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 12px;
}

.gwp_settings_advanced_content {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 12px;
    max-height: 300px;
    overflow-y: auto;
}

/* Style the cloned foptions inside modal */
.gwp_settings_advanced_content .gwp_foption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.gwp_settings_advanced_content .gwp_foption:last-child {
    border-bottom: none;
}

.gwp_settings_advanced_content .gwp_optiontag {
    font-size: 13px;
    color: #555;
}

.gwp_settings_advanced_content .gwp_itemswitch {
    flex-shrink: 0;
}

.gwp_settings_advanced_content .select_inputframe {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.gwp_settings_advanced_content .select_tagframe,
.gwp_settings_advanced_content .select_singleframe {
    min-width: 200px !important;
    max-width: 100%;
    width: auto !important;
}

/* Dropdown fields in form builder settings */
.gwp_foptions .select_singleframe,
.gwp_foptions .select_tagframe,
.gwp_foptions .select_multiframe {
    min-width: 200px !important;
    max-width: 100%;
    width: auto !important;
}

/* Dropdown fields in database field options */
.gwp_dbfield_wrapper .select_singleframe,
.gwp_dbfield_wrapper .select_tagframe {
    min-width: 180px !important;
    max-width: 300px;
    width: auto !important;
}

/* Dropdown min-width - scoped to database table and form contexts only */
.gwp_dbtdata .select_singleframe,
.gwp_dbtdata .select_tagframe,
.gwp_dbtdata .select_multiframe,
.gwp_formfield .select_singleframe,
.gwp_formfield .select_tagframe,
.gwp_formfield .select_multiframe {
    min-width: 150px;
}

/* Dropdown container in settings modal */
.gwp_settings_modal .select_singleframe,
.gwp_settings_modal .select_tagframe,
.gwp_settings_modal .select_multiframe,
.gwp_settings_modal_body .select_singleframe,
.gwp_settings_modal_body .select_tagframe {
    min-width: 220px !important;
    width: 100% !important;
    max-width: 100%;
}

/* Fix narrow dropdown issue - target the actual dropdown elements */
.gwp_foptions select,
.gwp_settings_advanced_content select,
.gwp_dbfield_wrapper select {
    min-width: 200px !important;
}

/* Target the visual dropdown display div */
.gwp_foptions .select_singledropdown,
.gwp_settings_advanced_content .select_singledropdown,
.gwp_dbfield_wrapper .select_singledropdown {
    min-width: 200px !important;
}

/* ============================================
   DOCUMENT VIEW STYLES
   ============================================ */

.gwp_dbdocview {
    padding: 20px;
    background: #f8f9fa;
    min-height: 400px;
}

.gwp_docview_empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 14px;
}

.gwp_docview_wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.gwp_docview_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e8eaed;
    flex-wrap: wrap;
    gap: 12px;
}

.gwp_docview_title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Navigation controls */
.gwp_docview_nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gwp_docview_nav_btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gwp_docview_nav_btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.gwp_docview_nav_btn i {
    font-size: 16px;
    color: #555;
}

.gwp_docview_nav_count {
    font-size: 13px;
    color: #666;
    min-width: 60px;
    text-align: center;
}

.gwp_docview_actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gwp_docview_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.gwp_docview_btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.gwp_docview_btn i {
    font-size: 16px;
}

.gwp_docview_body {
    padding: 24px;
}

.gwp_docview_field {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.gwp_docview_field:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* No dividers mode */
.gwp_docview_no_dividers .gwp_docview_field {
    border-bottom: none;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.gwp_docview_label {
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gwp_docview_value {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Tags/Capsules */
.gwp_docview_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gwp_docview_tag {
    background: #e8eaed;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 13px;
    color: #333;
}

/* Yes/No */
.gwp_docview_yes {
    color: #27ae60;
    font-weight: 500;
}

.gwp_docview_no {
    color: #95a5a6;
}

/* Stars */
.gwp_docview_stars {
    display: flex;
    gap: 2px;
}

.gwp_docview_star {
    font-size: 20px;
    color: #ddd;
}

.gwp_docview_star.filled {
    color: #f1c40f;
}

/* Range */
.gwp_docview_range {
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.gwp_docview_range_sep {
    color: #888;
    margin: 0 6px;
}

/* Address */
.gwp_docview_address {
    line-height: 1.7;
}

/* Colour */
.gwp_docview_colour {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gwp_docview_colour_swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.gwp_docview_colour_value {
    font-family: monospace;
    font-size: 13px;
}

/* Signature */
.gwp_docview_signature img {
    max-width: 250px;
    max-height: 100px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 8px;
    background: #fafafa;
}

/* Tickets & RSVP */
.gwp_docview_tickets,
.gwp_docview_rsvp {
    display: flex;
    gap: 16px;
    align-items: center;
}

.gwp_docview_ticket_count,
.gwp_docview_rsvp_status {
    font-weight: 500;
}

.gwp_docview_ticket_total {
    color: #27ae60;
    font-weight: 600;
}

.gwp_docview_rsvp_guests {
    color: #666;
    font-size: 13px;
}

/* Social Links */
.gwp_docview_social_item {
    margin-bottom: 6px;
}

.gwp_docview_social_item strong {
    color: #555;
}

.gwp_docview_social_link {
    color: #2980b9;
    text-decoration: none;
}

.gwp_docview_social_link:hover {
    text-decoration: underline;
}

/* Rich text & Form text */
.gwp_docview_richtext {
    background: #fafafa;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 3px solid #e8eaed;
}

.gwp_docview_formtext {
    line-height: 1.6;
}

.gwp_docview_formtext p {
    margin: 0 0 10px 0;
}

.gwp_docview_formtext p:last-child {
    margin-bottom: 0;
}

/* Full width fields (letterhead, form text) - no label/value structure */
.gwp_docview_field_fullwidth {
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
}

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

/* Letterhead in document view */
.gwp_docview_letterhead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    margin-bottom: 15px;
}

.gwp_docview_letterhead_logo {
    flex-shrink: 0;
}

.gwp_docview_letterhead_logo img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.gwp_docview_letterhead_address {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
    text-align: right;
}

.gwp_docview_letterhead_logo-right {
    flex-direction: row-reverse;
}

.gwp_docview_letterhead_logo-right .gwp_docview_letterhead_address {
    text-align: left;
}

.gwp_docview_letterhead_empty {
    color: #999;
    font-style: italic;
    padding: 10px 0;
}

/* Fill blanks */
.gwp_docview_fillblanks_text {
    line-height: 1.9;
}

.gwp_docview_fillblank {
    background: #e8f4fd;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    color: #2980b9;
}

.gwp_docview_fillblank_empty {
    color: #bbb;
    letter-spacing: 2px;
}

/* Empty value */
.gwp_docview_empty_val {
    color: #aaa;
    font-style: italic;
}

/* Files */
.gwp_docview_files {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px;
}

.gwp_docview_files_count {
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
}

.gwp_docview_files_list {
    margin: 0;
    padding-left: 20px;
}

.gwp_docview_files_list li {
    margin-bottom: 6px;
}

.gwp_docview_file_link {
    color: #2980b9;
    text-decoration: none;
}

.gwp_docview_file_link:hover {
    text-decoration: underline;
}

/* Image select */
.gwp_docview_imageselect {
    margin-top: 8px;
}

.gwp_docview_imageselect_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gwp_docview_imgsel_item {
    text-align: center;
}

.gwp_docview_imgsel_item img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.gwp_docview_imgsel_item span {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Ranking */
.gwp_docview_ranking {
    margin-top: 8px;
}

.gwp_docview_ranking_list {
    margin: 0;
    padding-left: 24px;
}

.gwp_docview_ranking_list li {
    margin-bottom: 6px;
    padding: 4px 0;
}

/* Repeater */
.gwp_docview_repeater {
    margin-top: 8px;
}

.gwp_docview_repeater_count {
    color: #666;
    font-style: italic;
}

/* Print button in row */
.gwp_dbrowbtn_print {
    color: #3498db;
}

.gwp_dbrowbtn_print:hover {
    color: #2980b9;
}

/* Ticket breakdown styles */
.gwp_docview_tickets_full {
    margin-top: 4px;
}

.gwp_docview_tickets_breakdown {
    margin-bottom: 10px;
}

.gwp_docview_ticket_line {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}

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

.gwp_docview_ticket_type {
    flex: 1;
}

.gwp_docview_ticket_qty {
    color: #666;
    min-width: 50px;
}

.gwp_docview_ticket_price {
    font-weight: 500;
    min-width: 70px;
    text-align: right;
}

.gwp_docview_tickets_total {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-weight: 500;
}

.gwp_docview_ticket_total_amount {
    color: #27ae60;
    font-weight: 600;
}

/* RSVP detailed styles */
.gwp_docview_rsvp_full {
    margin-top: 4px;
}

.gwp_docview_rsvp_response {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 8px;
}

.gwp_docview_rsvp_response i {
    margin-right: 4px;
}

.gwp_docview_rsvp_yes {
    color: #27ae60;
}

.gwp_docview_rsvp_no {
    color: #e74c3c;
}

.gwp_docview_rsvp_maybe {
    color: #f39c12;
}

.gwp_docview_rsvp_pending {
    color: #95a5a6;
}

.gwp_docview_rsvp_guests_line {
    color: #666;
    margin-bottom: 6px;
}

.gwp_docview_rsvp_guests_line i {
    margin-right: 4px;
}

.gwp_docview_rsvp_dietary,
.gwp_docview_rsvp_comments {
    margin-top: 6px;
    color: #555;
    font-size: 13px;
}

/* Image select text only */
.gwp_docview_imgsel_text_only {
    background: #f0f0f0;
    padding: 10px 14px;
    border-radius: 6px;
    display: inline-block;
}

/* QR Code section */
.gwp_docview_qrcode_section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.gwp_docview_qrcode_container {
    display: inline-block;
}

.gwp_docview_qrcode {
    display: inline-block;
}

.gwp_docview_qrcode img {
    width: 100px;
    height: 100px;
}

.gwp_docview_unique_code {
    margin-top: 8px;
    font-family: monospace;
    font-size: 11px;
    color: #888;
    letter-spacing: 0.5px;
}

.gwp_docview_qr_fallback {
    font-family: monospace;
    font-size: 10px;
    color: #888;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    word-break: break-all;
}

/* Loading state */
.gwp_docview_loading {
    color: #888;
}

/* Hide empty fields toggle */
.gwp_docview_hide_empty .gwp_docview_field_empty {
    display: none;
}

.gwp_docview_field_empty .gwp_docview_value {
    color: #bbb;
}

.gwp_docview_empty_val {
    color: #bbb;
    font-style: italic;
}

/* URL link styling */
.gwp_docview_url_link {
    color: #2980b9;
    text-decoration: none;
    word-break: break-all;
}

.gwp_docview_url_link:hover {
    text-decoration: underline;
}

/* ===========================================
   ACTIVITY ADD STYLES - Imported from activity_add.css
   (Excluding classes already in select.css/popupstyles.css)
   =========================================== */
[contentEditable=true]:empty:not(:focus):before {
    content: attr(data-text);
    opacity: 0.8;
}

.container-wrap input[type="text"],
textarea {
    background-color: #fff;
}

.element.style input[type="text"],
textarea {
    background-color: #fff;
    background: #fff;
}

.container-wrap input[type="text"],
.container-wrap textarea,
.container-wrap input[type="email"],
.container-wrap input[type="password"],
.container-wrap input[type="tel"],
.container-wrap input[type="url"],
.container-wrap input[type="search"],
.container-wrap input[type="date"] {
    background-color: #fff;
    background: #fff;
}

.gwp_activity_header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.gwp_activity_header .gwp_activitybox {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    margin-top: 0;
}

.gwp_activity_header .gwp_aoptions {
    flex: 0 0 auto;
    margin-top: 2px;
}

.gwp_activitybox {
    margin-top: 10px;
}

.gwp_activities {
    box-sizing: border-box;
    max-width: 100%;
}

.gwp_activity_input {
    text-decoration: none;
    width: 460px;
    min-height: 20px;
    max-height: 400px;
    margin: 0px;
    display: inline-block;
    vertical-align: middle;
    padding: 5px;
    color: #606060;
    border-bottom: 1px solid #aaa;
    background-color: transparent;
    overflow: auto;
}

.gwp_activity_input[contenteditable] {
    outline: 0px solid transparent;
}

.gwp_activitytitle {
    /*min-width: 460px;*/
    line-height: 30px;
    font-family: 'Lato', sans-serif;
    font-size: 30px;
    display: inline-block;
    border-bottom: 4px solid var(--accent1);
    vertical-align: top;
    padding-top: 5px;
    padding-bottom: 10px;
    margin-bottom: 15px;
    margin-left: 5px;
    margin-right: 5px;
}

.gwp_scheduletitle {
    line-height: 1.3;
    font-family: 'Lato', sans-serif;
    font-size: 22px;
    display: inline;
    vertical-align: top;
}

.gwp_activity_title {
    min-width: 460px;
    font-size: 18px;
    font-family: 'Lato', sans-serif;
}

.gwp_fieldcontent {
    min-width: 460px;
}

.activity-taxonomy {
    min-width: 300px;
    max-width: 400px;
    min-height: 34px;
    margin-top: 3px;
    /*background-color: #FAFAFA;*/
    border-color: #006799;
    /*border-style: solid;*/
    border-width: 1px;
    /*display:inline-block;*/
    vertical-align: middle;
}

.gwp_locationsbox {
    display: none;
    margin-top: 10px;
    margin-bottom: 20px;
}

.gwp_roomsbox {
    display: none;
    margin-top: 10px;
    margin-bottom: 20px;
}

/*.gwp_addblock{
      display:inline-block;
}*/

.gwp_addblock {
    height: 34px;
    margin-bottom: 0px;
    display: inline-block;
    vertical-align: center;
}

.gwp_addblock>a {
    margin: 0px;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    font-size: 30px;
    font-family: 'Lato', sans-serif;
}

.search-field {
    width: 500px;
}

.gwp_newtaxbox {
    margin-top: 5px;
}

.gwp_newtopic {
    width: 300px;
    min-height: 34px;
    display: inline-block;
    vertical-align: center;
    margin: 0px;
    margin-bottom: 3px;
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
}

.gwp_newgroup {
    width: 300px;
    min-height: 34px;
    display: inline-block;
    vertical-align: center;
    margin: 0px;
    margin-bottom: 3px;
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
}

.gwp_newcategory {
    width: 300px;
    min-height: 34px;
    display: inline-block;
    vertical-align: center;
    margin: 0px;
    margin-bottom: 3px;
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
}

.gwp_newseries {
    width: 300px;
    min-height: 34px;
    display: inline-block;
    vertical-align: center;
    margin: 0px;
    margin-bottom: 3px;
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
}

.gwp_newbucket {
    width: 300px;
    min-height: 34px;
    display: inline-block;
    vertical-align: center;
    margin: 0px;
    margin-bottom: 3px;
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
}

.gwp_newgroup:focus,
.gwp_newseries:focus,
.gwp_newtopic:focus,
.gwp_newcategory:focus,
.gwp_newbucket:focus {
    border: 1px solid var(--accent1);
    outline: 1px solid transparent !important;
    border-radius: 2px;
}

.gwp_newroom {
    width: 310px;
    min-height: 34px;
    display: inline-block;
    vertical-align: center;
    margin: 0px;
    margin-bottom: 3px;
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
}

.gwp_newitem {
    width: 310px;
    min-height: 34px;
    display: inline-block;
    vertical-align: center;
    margin: 0px;
    margin-bottom: 3px;
    margin-right: 5px;
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
}

/*.gwp_addnewtopic{
            cursor: pointer;
            text-align: center;
            width:150px;
            min-height: 34px;
            display:inline-block;
            vertical-align: center;
            margin: 0px;
            padding-top: 5px;
            padding-bottom: 5px;
            border-color: #aaa;
            border-style: solid;
            border-width: 1px 1px 1px 0;
            background-color:#FAFAFA;
            font-size: 14px;
            font-family: 'Lato', sans-serif;
}

.gwp_addnewtopic:hover {
      background-color: #006799;
      border-color: #006799;
      border-style: solid;
      border-width: 1px 1px 1px 0;
      color: #ffffff;
}

.gwp_addnewgroup{
            cursor: pointer;
            text-align: center;
            width:150px;
            min-height: 34px;
            display:inline-block;
            vertical-align: center;
            margin: 0px;
            padding-top: 5px;
            padding-bottom: 5px;
            border-color: #aaa;
            border-style: solid;
            border-width: 1px 1px 1px 0;
            background-color:#FAFAFA;
            font-size: 14px;
            font-family: 'Lato', sans-serif;
}

.gwp_addnewgroup:hover {
      background-color: #006799;
      border-color: #006799;
      border-style: solid;
      border-width: 1px 1px 1px 0;
      color: #ffffff;
}

.gwp_addnewcategory{
            cursor: pointer;
            text-align: center;
            width:150px;
            min-height: 34px;
            display:inline-block;
            vertical-align: center;
            margin: 0px;
            padding-top: 5px;
            padding-bottom: 5px;
            border-color: #aaa;
            border-style: solid;
            border-width: 1px 1px 1px 0;
            background-color:#FAFAFA;
            font-size: 14px;
            font-family: 'Lato', sans-serif;
}

.gwp_addnewcategory:hover {
      background-color: #006799;
      border-color: #006799;
      border-style: solid;
      border-width: 1px 1px 1px 0;
      color: #ffffff;
}

.gwp_addnewseries{
            cursor: pointer;
            text-align: center;
            width:150px;
            min-height: 34px;
            display:inline-block;
            vertical-align: center;
            margin: 0px;
            padding-top: 5px;
            padding-bottom: 5px;
            border-color: #aaa;
            border-style: solid;
            border-width: 1px 1px 1px 0;
            background-color:#FAFAFA;
            font-size: 14px;
            font-family: 'Lato', sans-serif;
}

.gwp_addnewseries:hover {
      background-color: #006799;
      border-color: #006799;
      border-style: solid;
      border-width: 1px 1px 1px 0;
      color: #ffffff;
}

.gwp_addnewbucket{
            cursor: pointer;
            text-align: center;
            width:150px;
            min-height: 34px;
            display:inline-block;
            vertical-align: center;
            margin: 0px;
            padding-top: 5px;
            padding-bottom: 5px;
            border-color: #aaa;
            border-style: solid;
            border-width: 1px 1px 1px 0;
            background-color:#FAFAFA;
            font-size: 14px;
            font-family: 'Lato', sans-serif;
}

.gwp_addnewbucket:hover {
      background-color: #006799;
      border-color: #006799;
      border-style: solid;
      border-width: 1px 1px 1px 0;
      color: #ffffff;
}

.gwp_addnewroom{
            cursor: pointer;
            text-align: center;
            width:150px;
            min-height: 34px;
            display:inline-block;
            vertical-align: center;
            margin: 0px;
            padding-top: 5px;
            padding-bottom: 5px;
            border-color: #aaa;
            border-style: solid;
            border-width: 1px 1px 1px 0;
            background-color:#FAFAFA;
            font-size: 14px;
            font-family: 'Lato', sans-serif;
}

.gwp_addnewroom:hover {
      background-color: #006799;
      border-color: #006799;
      border-style: solid;
      border-width: 1px 1px 1px 0;
      color: #ffffff;
}*/

.gwp_duration_input {
    width: 315px;
    height: 34px;
    max-height: 34px;
    margin: 0px;
    display: inline-block;
    padding: 5px;
    border-color: #aaa;
    border-style: solid;
    border-width: 1px;
    background-color: #FAFAFA;
    text-overflow: hidden;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
}

.gwp_duration_text {
    font-weight: bold;
    width: 85px;
    height: 34px;
    margin: 0px;
    display: inline-block;
    text-align: center;
    vertical-align: center;
    padding-top: 5px;
    border-color: #aaa;
    border-style: solid;
    border-width: 1px 1px 1px 0;
    background-color: #FAFAFA;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
}

.gwp_duration_wrap {
    display: block;
}

.gwp_durationbox {
    margin-top: 10px;
    margin-bottom: 20px;
}

.gwp_goal_input {
    min-width: 400px;
    max-width: 400px;
    min-height: 34px;
    margin: 0px;
    display: inline-block;
    vertical-align: center;
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
}

.gwp_goalbox {
    margin-top: 20px;
    margin-bottom: 20px;
}

.gwp_description_input {
    text-decoration: none;
    min-width: 460px;
    max-width: 100%;
    min-height: 36px;
    max-height: 400px;
    margin: 0px;
    display: inline-block;
    vertical-align: center;
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
    overflow: auto;
}

.gwp_atypeframe {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 200px;
}

.gwp_descriptionbox {
    margin-top: 10px;
    margin-bottom: 20px;
    max-width: 99%;
}

.gwp_equipment_input {
    min-width: 460px;
    min-height: 34px;
    margin: 0px;
    display: inline-block;
    vertical-align: center;
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
}

.gwp_equipmentbox {
    margin-top: 10px;
    margin-bottom: 20px;
}

.gwp_link_input {
    min-width: 460px;
    min-height: 34px;
    margin: 0px;
    display: inline-block;
    vertical-align: center;
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
}

.gwp_linkbox {
    margin-top: 10px;
    margin-bottom: 20px;
}

.gwp_submitbox {
    display: block;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Submit button alignment options (set via submitalign in form/popup config) */
.gwp_submitbox_left,
.gwp_submitframe.gwp_submitbox_left {
    text-align: left;
    padding: 0 15px;
}

.gwp_submitbox_center,
.gwp_submitframe.gwp_submitbox_center {
    text-align: center;
}

.gwp_submitbox_left .gwp_save_button,
.gwp_submitbox_center .gwp_save_button,
.gwp_submitbox_left .gwp_submit,
.gwp_submitbox_center .gwp_submit {
    width: auto;
    display: inline-block;
}

.gwp_poststatus1 {
    display: inline-block;
    width: 100px;
    margin-right: 10px;
    padding: 5px;
    cursor: pointer;
}

.gwp_poststatus1>.select-items {
    margin-top: 10px;
}

.gwp_poststatus1>option {
    margin-top: 10px;
}

.gwp_poststatus_option {
    cursor: pointer;
}

.gwp_act_publishdetails {
    margin-top: 5px;
}

.gwp_formdelete {
    display: none;
}

.gwp_formview {
    display: none;
}

.gwp_gen_button {
    text-decoration: none;
    color: #FFFFFF;
    background-color: var(--accent1);
    margin: 2px;
    cursor: pointer;
    border: 1px solid var(--accent1);
    border-radius: 2px;
    padding: 5px 10px;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
}

.gwp_gen_button:hover {
    background-color: #10537F;
    color: #ffffff;
}

.gwp_gen_button:active {
    position: relative;
}

.gwp_hr {
    margin-top: 5px;
    margin-bottom: 5px;
    opacity: 0.5;
}

.gwp_deletebuttons {
    margin-top: 20px;
    text-align: center;

}

.gwp_scroll {
    width: 100%;
    height: 600px;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.gwp_scroll::-webkit-scrollbar {
    width: 0.8em;
}

.gwp_scroll::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

.gwp_scroll::-webkit-scrollbar-thumb {
    background-color: #fff;
    outline: 1px solid #fff;
}

.gwp_scroll::-webkit-scrollbar-button {
    color: #fff;
    background-color: #000;
    outline: 1px solid #fff;
}

/*Add to Schedule*/
/*#gwp_schedules_input{
            height: 34px;
            font-size: 16px;
}*/

/*#gwp_newschedule{
            height: 34px;
            width:100%;
            margin-top:3px;
            display:block;
            vertical-align: center;
            background-color: transparent;
            border-style: none;
            border-width: 1px 1px 1px 0;
}*/

.ui-sortable {
    margin-top: 20px;
}

.gwp_addnewschedule {
    color: #999;
    cursor: pointer;
    text-align: center;
    width: 100%;
    min-height: 34px;
    display: block;
    margin: 0px;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: transparent;
    border-style: none;
    border-width: 1px 1px 1px 0;
    background-color: #ffffff;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
}

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

.gwp_adds {
    color: #ffffff;
    height: 34px;
    line-height: 34px;
    margin-top: 3px;
    margin-bottom: 3px;
    font-size: 34px;
    font-family: 'Lato', sans-serif;
    vertical-align: center;
    padding: 0px;
    display: inline-block;
}

.gwp_starttime {
    height: 34px;
    margin: 0px;
    display: inline-block;
    vertical-align: center;
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
    font-family: 'Lato', sans-serif;
}

.gwp_endtime {
    height: 34px;
    margin: 0px;
    display: inline-block;
    vertical-align: center;
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
    font-family: 'Lato', sans-serif;
}

.gwp_scheduler_roleinput {
    width: 300px;
    height: 35px;
    margin: 0px;
    display: inline-block;
    vertical-align: center;
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #FAFAFA;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #000000;
}

#gwp_schedules_input {
    min-height: 34px;
    width: 100%;
    display: block;
    background-color: transparent;
    border-style: none;
    border-width: 1px 1px 1px 1px;
    font-family: 'Lato', sans-serif;
}

.gwp_taxonomyblock {
    margin-top: 10px;
    margin-bottom: 20px;
}

.gwp_timeblock {
    margin-top: 10px;
    margin-bottom: 20px;
}

#gwp_schedules_input_chosen {
    min-height: 34px;
    width: 100%;
    display: block;
    background-color: transparent;
    border-style: none;
    border-width: 1px 1px 1px 1px;
    font-family: 'Lato', sans-serif;
}

#gwp_leader_input_chosen {
    min-height: 34px;
    width: 100%;
    display: block;
    background-color: transparent;
    border-style: none;
    border-width: 1px 1px 1px 1px;
    font-family: 'Lato', sans-serif;
}

#gwp_users_input_chosen {
    min-height: 34px;
    width: 100%;
    display: block;
    background-color: transparent;
    border-style: none;
    border-width: 1px 1px 1px 1px;
    font-family: 'Lato', sans-serif;
}

.gwp_mmember_messageto {
    margin-right: 15px;
}

.gwp_subjectbox {
    margin-top: 10px;
    margin-right: 15px;
}

.gwp_mmember_messagesubject {
    text-decoration: none;
    min-height: 45px;
    max-height: 400px;
    margin: 0px 15px 0px 0px;
    width: 100%;
    vertical-align: center;
    padding: 5px;
    border: 1px solid #aaa;
    background-color: #ffffff;
    overflow: auto;
}

.gwp_mediaitem {
    position: relative;
    display: inline-block;
    margin: 2px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    min-height: 125px;
    width: 130px;
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.gwp_mediaitem:hover {
    border-color: color-mix(in srgb, var(--accent1) 40%, #e5e7eb);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.gwp_mediaitem:hover>.gwp_mediaboximg {
    background-color: #ffffff;
}

.gwp_mediaitem:hover>.gwp_mediafilename {
    background-color: color-mix(in srgb, var(--accent1) 10%, #f5f5f5);
    color: #1a1a1a;
}

.gwp_pmediaitem {
    position: relative;
    display: inline-block;
    margin: 2px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    height: 100px;
    width: 100px;
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.gwp_pmediaitem:hover {
    border-color: color-mix(in srgb, var(--accent1) 40%, #e5e7eb);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.gwp_pmediaitem:hover>.gwp_mediaboximg {
    background-color: #ffffff;
}

.gwp_pmediaitem:hover>.gwp_mediafilename {
    background-color: color-mix(in srgb, var(--accent1) 10%, #f5f5f5);
    color: #1a1a1a;
}

.gwp_mediabox>img {
    /*position: absolute;
  left: 0px;*/
    width: 100%;
}

.gwp_mediaimage {
    width: 100%;
}

.gwp_mediaboxvid>img {
    /*position: absolute;
    left: 0px;*/
    width: 100%;
}

.gwp_youtubeoverlay {
    top: 10px;
    left: 20px;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    color: #FF0000;
    color: #ffffff;
}

.gwp_vimeooverlay {
    top: 10px;
    left: 30px;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    color: #ffffff;
}

.gwp_mediafile {
    position: relative;
    display: inline-block;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    height: 130px;
    width: 130px;
    margin: 20px 10px 10px 10px;
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.gwp_mediafile:hover {
    border-color: color-mix(in srgb, var(--accent1) 40%, #e5e7eb);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.gwp_mediafile:hover>.gwp_mediaboximg {
    background-color: #ffffff;
}

.gwp_mediafile:hover>.gwp_mediafilename {
    background-color: color-mix(in srgb, var(--accent1) 10%, #f5f5f5);
    color: #1a1a1a;
}

.gwp_addmediaitem {
    position: relative;
    display: inline-block;
    border: 1px dashed color-mix(in srgb, var(--accent1) 40%, #d0d0d0);
    border-radius: 10px;
    margin: 2px;
    height: 125px;
    width: 130px;
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.gwp_addmediaitem:hover {
    border-color: var(--accent1);
    background-color: color-mix(in srgb, var(--accent1) 5%, white);
}

.gwp_addmediaitem:hover>.gwp_mediabox {
    color: var(--accent1);
    background-color: transparent;
    margin: 0px;
}

.gwp_mediaitemmargin {
    /*margin: 5px;*/
    margin: 20px 10px 10px 10px;
}

.gwp_mediafilemargin {
    margin: 20px 10px 10px 10px;
}

.gwp_mediaitemselected {
    position: relative;
    display: inline-block;
    border: 2px solid var(--accent1);
    border-radius: 10px;
    height: 130px;
    width: 130px;
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent1) 20%, transparent);
}

.gwp_mediabox {
    text-align: center;
    margin: 0px;
    font-size: 48px;
    width: 100%;
    height: 85px;
    padding: 0px;
    background-color: #fafafa;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gwp_mediabox>* {
    margin-top: 0;
}

.gwp_mediaboxvid {
    text-align: center;
    margin: 0px;
    font-size: 48px;
    width: 100%;
    height: 85px;
    padding: 0px;
    background-color: #fafafa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gwp_mediaboxvid>.lar,
.gwp_mediaboxvid>.las {
    margin-top: 0;
}

.gwp_mediaboximg {
    background-color: #fafafa;
    text-align: center;
    margin: 0px;
    font-size: 48px;
    height: 85px;
    overflow: hidden;
}

.gwp_videothumb {
    position: relative;
    background: #1a1a1a;
}

.gwp_vidcanvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gwp_play_badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    pointer-events: none;
}

.gwp_mimageunderlay {
    width: 100%;
}

.gwp_moverlay {
    background-color: var(--accent1);
    padding: 2px;
    width: 100px;
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
    position: absolute;
    top: 15px;
    left: -25px;
    font-size: 12px;
    text-align: center;
    color: #ffffff;
}

.gwp_mediafilename {
    word-wrap: break-word;
    font-size: 12px;
    background-color: #ffffff;
    height: 35px;
    line-height: 15px;
    padding: 5px 6px;
    text-align: center;
    color: #444;
    border-top: 1px solid #f0f0f0;
    transition: background-color 0.15s;
}

.gwp_mediafileselect {
    display: none;
}

.gwp_mediafileselected {
    display: inline-block;
}

.gwp_moptions {
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    padding-bottom: 7px;
    position: relative;
    z-index: 3
}

.gwp_moptions>button {
    display: inline-block;
    border: 1px solid #ffffff;
    background-color: #ffffff;
    cursor: pointer;
    padding: 1px 7px 1px 7px;
    margin-right: 5px;
    min-height: 30px;
    font-size: 18px;
    vertical-align: bottom;
}

.gwp_moptions>button:hover {
    border: 1px solid var(--accent1);
    background-color: var(--accent1);
    color: #ffffff;
    cursor: pointer;
}

.gwp_moptions>.gwp_floaderbox {
    border: 1px solid #ffffff;
    background-color: #ffffff;
    cursor: pointer;
    margin-right: 5px;
    min-height: 30px;
    font-size: 18px;
    vertical-align: bottom;
}

.gwp_moptions>.lar,
.gwp_moptions>.las {
    margin-top: 0px;
}

.gwp_fbucket {
    margin-top: 40px;
}

.gwp_btitle {
    margin-left: 15px;
}

.gwp_wb_pview {
    margin-left: 15px;
}

.gwp_bbuttons {
    display: inline-block;
    margin-left: 15px;
    padding: 5px;
    border-radius: 2px;
    cursor: pointer;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                supported by Chrome and Opera */
}

.gwp_bbuttons:hover {
    background-color: #efefef;
    color: #000000;
}

.gwp_boptions {
    background: #efefef;
    padding-top: 5px;
}

.gwp_boptions>button {
    display: inline-block;
    border: 1px solid #ffffff;
    background-color: #ffffff;
    cursor: pointer;
    padding: 1px 10px 1px 10px;
    margin-right: 5px;
    min-height: 30px;
    font-size: 18px;
    vertical-align: bottom;
}

.gwp_boptions>button:hover {
    border: 1px solid var(--accent1);
    background-color: var(--accent1);
    color: #ffffff;
    cursor: pointer;
}

.gwp_boptions>.gwp_floaderbox {
    border: 1px solid #ffffff;
    background-color: #ffffff;
    cursor: pointer;
    margin-right: 5px;
    min-height: 30px;
    font-size: 18px;
    vertical-align: bottom;
}

.gwp_boptions>.lar,
.gwp_boptions>.las {
    margin-top: 0px;
}

.gwp_wb_mli {
    display: inline-block;
    margin: 5px 40px 5px 0px;
}

.gwp_wbicon {
    display: inline-block;
    cursor: pointer;
    padding: 5px;
    border-radius: 2px;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                supported by Chrome and Opera */
}

.gwp_wbicon:hover {
    background-color: var(--accent1);
    color: #ffffff;
}

.gwp_wbibutton {
    display: inline-block;
    cursor: pointer;
    padding: 5px;
    border: none;
    background-color: transparent;
}

.gwp_wbibutton:hover {
    background-color: var(--accent1);
    color: #ffffff;
}

.gwp_wb_list {
    margin-left: 15px;
}

.gwp_wb_slist {
    margin-left: 15px;
}

.gwp_wb_icons {
    margin-left: 5px;
}

.gwp_wb_sicons {
    margin-left: 15px;
}

.gwp_uploadmedia {
    display: block;
}

.gwp_approvemediagroup {
    display: none;
    margin-top: 10px;
    margin-bottom: 10px;
}

.gwp_choosegroup {
    margin-top: 15px;
    padding: 5px;
    border-color: var(--accent1);
    border: 1px;
    border-radius: 3px;
    background-color: #f1f1f1;
}

.gwp_mgroup {
    width: 400px;
}

.gwp_mgfilename {
    font-weight: bold;
}

/* ── Modern upload zone ── */
#gwp_upload_zone { padding: 16px; }

.gwp_dropform { text-align: center; }

.gwp_file_input { display: none; }

.gwp_drop_label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 2px dashed var(--accent1, #F83600);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59,130,246,0.03) 0%, rgba(59,130,246,0.08) 100%);
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    padding: 32px 24px;
    gap: 6px;
}

.gwp_drop_label:hover {
    border-color: var(--accent1, #F83600);
    background: linear-gradient(135deg, rgba(59,130,246,0.06) 0%, rgba(59,130,246,0.12) 100%);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

.gwp_upload_icon {
    font-size: 48px;
    color: var(--accent1, #F83600);
    opacity: 0.7;
    margin-bottom: 8px;
}

.gwp_drop_text {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.gwp_drop_hint {
    font-size: 13px;
    color: #9ca3af;
}

.gwp_drop_status {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

#dropFileForm.fileHover .gwp_drop_label,
.gwp_dropform.fileHover .gwp_drop_label {
    border-color: #16a34a;
    background: linear-gradient(135deg, rgba(22,163,74,0.06) 0%, rgba(22,163,74,0.12) 100%);
    box-shadow: 0 0 0 4px rgba(22,163,74,0.15);
}

/* File preview cards */
.gwp_file_preview {
    display: none;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px;
    padding: 12px 0;
}

.gwp_fp_card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    width: 220px !important;
    max-width: 220px !important;
    min-width: 220px !important;
    flex: 0 0 220px !important;
    position: relative;
    box-sizing: border-box;
}

.gwp_fp_card:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.gwp_fp_thumb {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.gwp_fp_icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6b7280;
    flex-shrink: 0;
}

.gwp_fp_name {
    font-size: 12px;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 120px;
}

.gwp_fp_size {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
}

.gwp_fp_delete {
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    border: none;
    padding: 0;
    line-height: 1;
}

.gwp_fp_card:hover .gwp_fp_delete {
    display: flex;
}

.gwp_upload_btn {
    display: none;
    margin: 8px auto 0;
    padding: 10px 32px;
    background: var(--accent1, #F83600);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.gwp_upload_btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ── Upload progress ── */
.gwp_upload_progress {
    padding: 16px;
}

.gwp_up_title {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gwp_up_card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    margin-bottom: 8px;
}

.gwp_up_thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    flex-shrink: 0;
    font-size: 20px;
    color: #9ca3af;
}

.gwp_up_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gwp_up_info {
    flex: 1;
    min-width: 0;
}

.gwp_up_name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gwp_up_size {
    font-size: 11px;
    color: #9ca3af;
}

.gwp_up_bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

.gwp_up_fill {
    height: 100%;
    background: var(--accent1, #F83600);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.gwp_up_fill.gwp_up_done { background: #16a34a; }
.gwp_up_fill.gwp_up_error { background: #dc2626; width: 100%; }

.gwp_up_pct {
    flex-shrink: 0;
    width: 36px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

/* ── Group assignment screen ── */
.gwp_upload_groups {
    padding: 20px;
}

.gwp_ga_header {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gwp_ga_allbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(59,130,246,0.06) 0%, rgba(59,130,246,0.1) 100%);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.gwp_ga_allbar_label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.gwp_ga_allbar_select {
    flex: 1;
    min-width: 200px;
}

.gwp_ga_files {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: visible;
}

.gwp_ga_file {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    flex-wrap: wrap;
}

.gwp_ga_file_name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    min-width: 140px;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
}

.gwp_ga_file_name i {
    color: #9ca3af;
    margin-right: 6px;
}

.gwp_ga_file_select {
    flex: 1;
    min-width: 220px;
}

.gwp_ga_actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.gwp_ga_done_btn {
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
}

/*start of invitepopup*/
.gwp_rpermission {
    margin-left: 20px;
    margin-bottom: 10px;
}

.gwp_settings_btn_row {
    margin-top: 10px;
    margin-bottom: 10px;
}

.gwp_ginvitebutton {
    margin-top: 20px;
    margin-bottom: 10px;
}

.gwp_rinvite {
    background-color: #efefef;
    margin-top: 10px;
    padding: 2px;
    border-radius: 4px;
}

.gwp_rinviteheader {
    width: 99%;
    margin: 5px;
}

.gwp_rinvitelink {
    cursor: pointer;
}

.gwp_removepermission {
    float: right;
    transition: all 200ms;
    font-size: 25px;
    font-weight: bold;
    text-decoration: none;
    color: #14679e;
    cursor: pointer;
}

.gwp_removepermission:hover {
    color: #000000;
}

.gwp_rinvitedata {
    background-color: #efefef;
    margin: 5px;
}

.gwp_rinvitetitle {
    font-weight: bold;
}

.gwp_rinvitetitle,
.gwp_rinvitedata {
    display: inline-block;
    margin-left: 5px;
}

.gwp_gkeyblock {
    display: block;
    margin: 5px;
}

.gwp_gkey {
    display: inline-block;
    width: 50%;
    padding: 7px;
    border: 1px solid #aaa;
}

/* End of invite popup

/*start of drag and drop form*/
.dropFileForm {
    margin: 16px;
    text-align: center;
    border-radius: 4px;
    overflow: hidden;
    transition: 0.5s;
}

.dropFileForm .fileLabel {
    background-color: transparent;
    border: 3px dashed var(--accent1);
    border-bottom: none;
    display: block;
    padding-top: 50px;
    position: relative;
    cursor: pointer;
    min-height: 275px;
}

.dropFileForm .fileInput {
    display: none;
}

.dropFileForm .fileLabel:after,
.dropFileForm .fileLabel:before {
    position: absolute;
    content: "";
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    z-index: -2;
    border-radius: 8px 8px 0 0;
}

.dropFileForm .fileLabel:before {
    z-index: -1;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 5%,
            black 5%,
            black 10%);
    opacity: 0;
    transition: 0.5s;
}

#dropFileForm.fileHover .fileLabel:before {
    opacity: 0.25;
}

#sdropFileForm.fileHover .fileLabel:before {
    opacity: 0.25;
}

.dropFileForm .uploadButton {
    border: 0;
    outline: 0;
    width: 100%;
    padding: 8px;
    background-color: var(--accent1);
    color: #fff;
    cursor: pointer;
}

/*#dropFileForm .fileHover {*/
.fileHover {
    box-shadow: 0 0 16px var(--accent1);
    background-color: transparent;
    opacity: 0.8;
    border: 1px solid green;
}

/*end of drag and drop form*/

.md-close1 {
    height: 34px;
    border: none;
    padding: 0.6em 1.2em;
    margin-left: 5px;
    background: #c0392b;
    color: #fff;
    font-family: 'Lato', Calibri, Arial, sans-serif;
    font-size: 1em;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    margin: 3px 3px;
    border-radius: 2px;
}

/*.gwp_messagechat > .gwp_messatt{
  border: 1px solid #000000;
}*/

.gwp_messagebox>[contenteditable=true]:empty:before {
    content: attr(placeholder);
    pointer-events: none;
    display: block;
    /* For Firefox */
}

.gwp_messatt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 4px 4px 0;
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    background: #fff;
    color: #333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.gwp_messatt:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.gwp_friendmessage .gwp_messatt {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gwp_friendmessage .gwp_messatt:hover {
    background: color-mix(in srgb, var(--accent1) 6%, white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.gwp_messatt>a,
.gwp_messatt>a:hover,
.gwp_messatt>a:visited,
.gwp_messatt>a:active {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.md-close1:hover {
    background: #A5281B;
}

@media only screen and (max-device-width: 480px) {
    .gwp_activity_input {
        height: 34px;
        font-size: 16px;
        min-width: 95%;
        width: 95%;
        display: block;
    }

    .activity-taxonomy {
        min-width: 80%;
    }

    .element-style {
        min-width: 90%;
        width: 90%;
    }

    #gwp_topic_input {
        min-width: 90%;
        width: 90%;
        display: inline-block;
    }

    #gwp_group_input {
        min-width: 90%;
        width: 90%;
        display: inline-block;
    }

    #gwp_categories_input {
        min-width: 90%;
        width: 90%;
        display: inline-block;
    }

    .gwp_newschedule {
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
    }

    .gwp_newtopic {
        min-width: 95%;
        width: 95%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
    }

    .gwp_newgroup {
        width: 80%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
    }

    .gwp_newcategory {
        width: 80%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
    }

    .gwp_newseries {
        width: 80%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
    }

    .gwp_newbucket {
        width: 80%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
    }

    .gwp_addnewtopic {
        min-width: 95%;
        width: 95%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
        border-width: 1px 1px 1px 1px;
    }

    .gwp_addnewgroup {
        min-width: 95%;
        width: 95%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
        border-width: 1px 1px 1px 1px;
    }

    .gwp_addnewcategory {
        min-width: 95%;
        width: 95%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
        border-width: 1px 1px 1px 1px;
    }

    .gwp_addnewseries {
        min-width: 95%;
        width: 95%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
        border-width: 1px 1px 1px 1px;
    }

    .gwp_addnewbucket {
        min-width: 95%;
        width: 95%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
        border-width: 1px 1px 1px 1px;
    }

    .gwp_addnewschedule {
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
    }

    .gwp_duration_input {
        width: 70%;
    }

    .gwp_duration_text {
        width: 30%;
    }

    .gwp_goal_input {
        height: 34px;
        min-width: 95%;
        width: 95%;
        margin: 0px;
        display: block;
    }

    .gwp_description_input {
        min-height: 75px;
        min-width: 95%;
        width: 95%;
        margin: 0px;
        display: block;
    }

    .gwp_equipment_input {
        height: 34px;
        min-width: 95%;
        width: 95%;
        margin: 0px;
        display: block;
    }

    .gwp_link_input {
        height: 34px;
        min-width: 95%;
        width: 95%;
        margin: 0px;
        display: block;
    }

}

/*Add to Schedule*/
.gwp_addnewschedule {
    color: #999;
    cursor: pointer;
    text-align: center;
    width: 100%;
    min-height: 34px;
    display: block;
    margin: 0px;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: transparent;
    border-style: none;
    border-width: 1px 1px 1px 0;
    background-color: #ffffff;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
}

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

#gwp_schedules_input {
    min-height: 34px;
    width: 100%;
    display: block;
    background-color: transparent;
    border-style: none;
    border-width: 1px 1px 1px 1px;
    font-family: 'Lato', sans-serif;
}

#gwp_schedules_input_chosen {
    width: 50%;
}

#gwp_leader_input_chosen {
    width: 50%;
}

#gwp_users_input_chosen {
    width: 50%;

}

.md-close1 {
    margin-top: 5px;
}

/* Form submission success options */
.gwp_form_success_options {
    text-align: center;
    padding: 10px 0;
}

.gwp_form_success_options p {
    margin: 0 0 20px 0;
    font-size: 15px;
    color: #555;
}

.gwp_form_success_buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 280px;
    margin: 0 auto;
}

.gwp_form_success_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.gwp_form_success_btn i {
    font-size: 16px;
}

.gwp_form_success_btn_new {
    background: #2a9d8f;
    color: #fff;
}

.gwp_form_success_btn_new:hover {
    background: #238b7e;
}

.gwp_form_success_btn_close {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}

.gwp_form_success_btn_close:hover {
    background: #eee;
    border-color: #ccc;
}



/* Database Item Styling */
.gwp_dbitem {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    overflow: hidden;
}

.gwp_dbitem_main {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.15s;
    gap: 12px;
}

.gwp_dbitem_main:hover {
    background-color: #f5f5f5;
}

.gwp_dbitem_icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.gwp_dbitem_content {
    flex: 1;
    min-width: 0;
}

.gwp_dbitem_title {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gwp_dbitem_meta {
    margin-top: 2px;
}

.gwp_dbitem_type {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}

.gwp_dbitem_arrow {
    color: #ccc;
    flex-shrink: 0;
}

.gwp_dbitem_actions {
    display: flex;
    border-left: 1px solid #eee;
}

.gwp_dbitem_btn {
    width: 36px;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.15s;
}

.gwp_dbitem_btn:hover {
    background: #f0f0f0;
    color: #333;
}

.gwp_dbitem_btn_delete:hover {
    background: #fef2f2;
    color: #dc2626;
}

.gwp_dbitem_btn_copy:hover {
    background: #eff6ff;
    color: #F83600;
}

/* Type-specific icon colors */
.gwp_dbitem_form .gwp_dbitem_icon {
    color: #F83600;
}

.gwp_dbitem_register .gwp_dbitem_icon {
    color: #22c55e;
}

.gwp_dbitem_rota .gwp_dbitem_icon {
    color: #a855f7;
}


/* Rota import unmatched names styling */
.gwp_rota_unmatched_list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    background: #f9f9f9;
}

.gwp_rota_unmatched_item {
    padding: 8px 12px;
    margin: 4px 0;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #F83600;
    font-size: 14px;
}

.gwp_rota_unmatched_item i {
    color: #F83600;
    margin-right: 8px;
}

/* ============================================================================
   Group Sync Badges (Register + Rota)
   ============================================================================ */

.gwp_reg_member_badge_group {
    display: inline-flex;
    align-items: center;
    background: #e8f4fd;
    color: #2980b9;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

.gwp_reg_member_badge_group i {
    font-size: 12px;
}

.gwp_reg_member_badge_inactive {
    display: inline-block;
    background: #f0f0f0;
    color: #999;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
    font-style: italic;
    vertical-align: middle;
}

.gwp_reg_member_inactive {
    opacity: 0.5;
}

.gwp_reg_member_inactive .gwp_reg_member_name {
    text-decoration: line-through;
}

/* Linked Group dropdown on Members/People tab */
.gwp_reg_linkedgroup_wrap {
    padding: 10px 15px 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.gwp_reg_linkedgroup_wrap .gwp_formfieldtitle {
    font-size: 13px;
    margin-bottom: 5px;
    color: #555;
}

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

.gwp_reg_linkedgroup_row .select_singleframe,
.gwp_reg_linkedgroup_row .select_multiframe {
    flex: 1;
}

.gwp_reg_linkedgroup_row .gwp_save_button {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Linked Group row - dropdown + sync button side by side */
.gwp_reg_linkedgroup_row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gwp_reg_linkedgroup_row .select_singleframe,
.gwp_reg_linkedgroup_row .select_multiframe {
    flex: 1;
}

.gwp_reg_linkedgroup_row .gwp_save_button {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Rota table header consistency */
.gwp_rota_table thead th {
    vertical-align: middle;
}

.gwp_rota_th_content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 28px;
}

.gwp_rota_th_content span {
    flex: 1;
}

.gwp_rota_col_clear {
    cursor: pointer;
    opacity: 0.4;
    font-size: 14px;
    flex-shrink: 0;
}

.gwp_rota_col_clear:hover {
    opacity: 1;
    color: #e74c3c;
}

/* Sync modal group checkboxes */
.gwp_rota_sync_grouplabel:hover {
    background: #f5f5f5;
}

/* Grid view (frontend public) */
.gwp_rota_table_grid {
    font-size: 12px;
}

.gwp_rota_table_grid .gwp_rota_th_date_col {
    text-align: center;
    font-size: 11px;
    min-width: 70px;
    padding: 6px 4px;
}

.gwp_rota_table_grid .gwp_rota_th_date_col div:first-child {
    font-weight: 500;
    color: #6b7280;
    font-size: 10px;
}

.gwp_rota_th_today {
    background: #eff6ff !important;
    border-bottom: 2px solid #F83600 !important;
}

.gwp_rota_td_person {
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gwp_rota_person_dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gwp_rota_td_pv {
    text-align: center;
    vertical-align: middle;
    padding: 4px;
}

.gwp_rota_td_pv_empty {
    background: #fafafa;
}

.gwp_rota_td_today {
    background: #f0f7ff !important;
}

.gwp_rota_td_past {
    opacity: 0.5;
}

.gwp_rota_pv_role {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    margin: 1px;
    white-space: nowrap;
}

.gwp_rota_pv_lead {
    background: #dbeafe;
    color: #d62e00;
}

.gwp_rota_pv_helper {
    background: #f3e8ff;
    color: #F9D423;
}

/* ============================================================
   Top Bar - Navigation Controls & Action Buttons
   ============================================================ */

#gwp_inlinemenu {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Navigation controls (search, filters) */
.gwp_nav_controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    position: relative;
}

.gwp_nav_search {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 5px 10px;
    min-width: 180px;
    max-width: 280px;
    flex: 1;
    transition: border-color 0.15s, background 0.15s;
}

.gwp_nav_search:focus-within {
    background: #fff;
    border-color: var(--accent1);
}

.gwp_nav_search i {
    color: #999;
    font-size: 15px;
    flex-shrink: 0;
}

.gwp_nav_search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    width: 100%;
    color: #333;
}

.gwp_nav_search input::placeholder {
    color: #aaa;
}

/* Filter dropdowns container — visible inline on PC, hidden dropdown on mobile */
.gwp_nav_filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Filter toggle icon — hidden on PC, shown on mobile */
.gwp_nav_filter_toggle {
    display: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.gwp_nav_filter_toggle:hover {
    color: var(--accent1);
    background: #f0f0f0;
}

.gwp_lib_filter_select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    background: #fff;
    cursor: pointer;
    min-width: 100px;
    max-width: 160px;
    transition: border-color 0.15s;
}

.gwp_lib_filter_select:focus {
    outline: none;
    border-color: #000000;
}

.gwp_lib_filter_clear {
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
}

.gwp_lib_filter_clear:hover {
    color: #e74c3c;
}

/* Filter icon button in nav bar */
.gwp_nav_icon_btn {
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.gwp_nav_icon_btn:hover {
    color: var(--accent1);
    background: #f0f0f0;
}

/* Ensure SweetAlert2 appears above popups */
.swal2-container {
    z-index: 200000 !important;
}

/* Filter modal popup */
.gwp_filter_modal_popup {
    max-width: 480px !important;
    overflow: visible !important;
}

.gwp_filter_modal_popup .swal2-content,
.gwp_filter_modal_popup .swal2-html-container {
    overflow: visible !important;
    z-index: 2;
}

.gwp_filter_modal_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    text-align: left;
}

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

.gwp_filter_modal_field label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.gwp_filter_modal_field .select_singleframe {
    width: 100% !important;
    min-width: 0 !important;
}

@media (max-width: 480px) {
    .gwp_filter_modal_grid {
        grid-template-columns: 1fr;
    }
}

/* Action buttons in top bar */
.gwp_nav_actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Icon button (ellipsis etc) */
.gwp_nav_icon_btn {
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.gwp_nav_icon_btn:hover {
    color: var(--accent1);
    background: #f0f0f0;
}

/* More actions dropdown */
.gwp_nav_dropdown_wrap {
    position: relative;
}

.gwp_nav_dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 28000;
    overflow: hidden;
}

.gwp_nav_dropdown>div,
.gwp_nav_dropdown>a,
.gwp_nav_dropdown>form>a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    transition: background 0.1s;
    white-space: nowrap;
    text-decoration: none;
}

.gwp_nav_dropdown>div:hover,
.gwp_nav_dropdown>a:hover,
.gwp_nav_dropdown>form>a:hover {
    background: #f5f5f5;
}

.gwp_nav_dropdown>div i,
.gwp_nav_dropdown>a i,
.gwp_nav_dropdown>form>a i {
    font-size: 16px;
    color: #888;
    width: 18px;
    text-align: center;
}

.gwp_nav_dropdown>form {
    margin: 0;
    padding: 0;
}

.gwp_nav_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.gwp_nav_btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.gwp_nav_btn i {
    font-size: 16px;
}

.gwp_nav_btn_primary {
    background: var(--accent1, #0f172a);
    border-color: var(--accent1, #0f172a);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gwp_nav_btn_primary:hover {
    filter: brightness(1.08);
    background: var(--accent1, #0f172a);
    border-color: var(--accent1, #0f172a);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Icon-only nav buttons (no text span) — square aspect */
.gwp_nav_btn:not(:has(span)) {
    padding: 7px 10px;
}

/* Gap between adjacent inline-block button wrappers */
.gwp_caldelete + .gwp_inlineblock,
.gwp_caledit + .gwp_inlineblock,
.gwp_calrefresh + .gwp_inlineblock,
.gwp_inlineblock + .gwp_inlineblock {
    margin-left: 4px;
}

/* Members & Groups pages */
.gwp_members_page,
.gwp_groups_page {
    padding: 28px 24px 16px;
    margin: 0 16px;
}

/* Two-column layout for ultra-wide screens */
@media (min-width: 1800px) {
    .gwp_members_list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .gwp_members_list_header {
        grid-column: 1 / -1;
    }
}

/* Mobile responsive — compact buttons */
@media (max-width: 900px) {
    .gwp_nav_search {
        min-width: 120px;
    }

    .gwp_nav_btn span {
        display: none;
    }

    .gwp_nav_btn {
        padding: 7px 10px;
    }

    .gwp_topbuttonbar {
        position: relative;
    }

    .gwp_addtopbuttons {
        display: flex !important;
        align-items: center;
        flex-wrap: nowrap;
        flex-shrink: 0;
        gap: 4px;
    }

    /* Groups card actions — always visible on mobile (no hover on touch) */
    .gwp_groups_card_actions {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
        position: static !important;
    }
}

/* Touch devices — always show hover-revealed elements */
@media (hover: none) {
    .gwp_groups_card_actions {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
        position: static !important;
    }

    .gwp_members_actions {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .gwp_blog_card_actions {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* =============================================
   BLOGS PAGE — MODERN CARDS
   ============================================= */

.gwp_blogs_page {
    padding: 28px 24px 16px;
    margin: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gwp_blog_card {
    position: relative;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 16px 20px;
}

/* Lift card above overlay (z-index 8000) when its dropdown is open */
.gwp_blog_card:has(.gwp_nav_dropdown[style*="block"]) {
    z-index: 8001;
}

/* Allow dropdown to escape overflow:hidden on schedule/content cards */
.gwp_content:has(.gwp_nav_dropdown[style*="block"]) {
    overflow: visible;
}

.gwp_blog_card:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gwp_blog_card_header {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.gwp_blog_card_title_row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding-right: 32px;
}

.gwp_blog_card_title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gwp_blog_card_toggle {
    font-size: 16px;
    color: #999;
    flex-shrink: 0;
    transition: color 0.12s;
}

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

.gwp_blog_status_badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}

.gwp_blog_status_published {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.gwp_blog_status_draft {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.gwp_blog_card_actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.gwp_blog_card_editbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0 4px;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px;
}

/* Blog taxonomy tags */
.gwp_blog_card_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
}

.gwp_blog_tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.gwp_blog_tag i {
    font-size: 12px;
}

.gwp_blog_tag a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.12s;
}

.gwp_blog_tag a:hover {
    opacity: 0.7;
    text-decoration: none;
}

.gwp_blog_tag_topic {
    background: rgba(59, 130, 246, 0.08);
    color: #F83600;
}

.gwp_blog_tag_topic a {
    color: #F83600;
}

.gwp_blog_tag_series {
    background: rgba(139, 92, 246, 0.08);
    color: #F9D423;
}

.gwp_blog_tag_series a {
    color: #F9D423;
}

/* Blog pagination */
.gwp_blogs_page .gwp_getpages {
    padding: 16px 0;
}

/* Two-column blogs on ultra-wide */
@media (min-width: 1800px) {
    .gwp_blogs_page {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gwp_blogs_page .gwp_getpages {
        grid-column: 1 / -1;
    }
}

/* ===== PUBLIC BLOG POST STYLES ===== */

.gwp_blog_post {
    max-width: 780px;
    margin: 24px auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px 36px;
    font-size: 15px;
    line-height: 1.7;
}

.gwp_blog_post_card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px 28px;
    margin: 0 auto 12px;
    max-width: 780px;
}

.gwp_blog_post_card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gwp_blog_post_header {
    text-align: center;
    margin-bottom: 16px;
}

.gwp_blog_post_title {
    font-size: 1.8em;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.3;
}

.gwp_blog_post_card_title {
    font-size: 1.25em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
}

.gwp_blog_post_meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666;
}

.gwp_blog_post_meta i {
    margin-right: 4px;
    color: #999;
}

.gwp_blog_post_author,
.gwp_blog_post_date {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.gwp_blog_post_tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.gwp_blog_post_body {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.gwp_blog_post_body p {
    margin: 0 0 16px;
}

.gwp_blog_post_empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
}

.gwp_blog_post_empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    color: #ccc;
}

.gwp_blog_post_card .gwp_blog_post_header {
    text-align: left;
}

.gwp_blog_post_card .gwp_blog_post_meta {
    justify-content: flex-start;
}

.gwp_blog_post_card .gwp_blog_post_tags {
    justify-content: flex-start;
}

/* =============================================
   MESSAGES PAGE — MODERN LIST
   ============================================= */

.gwp_messages_page {
    padding: 28px 24px 16px;
    margin: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gwp_msg_item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.1s;
    border-radius: 6px;
    margin-bottom: 2px;
    box-sizing: border-box;
}

.gwp_msg_item:hover {
    background: #f9fafb;
}

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

.gwp_msg_icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 157, 143, 0.1);
    color: var(--accent1);
    font-size: 18px;
    flex-shrink: 0;
}

.gwp_msg_content {
    flex: 1;
    min-width: 0;
}

.gwp_msg_title_row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.gwp_msg_title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.gwp_msg_badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.gwp_msg_badge_group {
    background: rgba(59, 130, 246, 0.1);
    color: #F83600;
}

.gwp_msg_badge_private {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.gwp_msg_badge_whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: #128c7e;
}

.gwp_msg_badge_sms {
    background: rgba(52, 152, 219, 0.12);
    color: #2980b9;
}
.gwp_msg_badge_pending {
    background: rgba(243, 156, 18, 0.15);
    color: #e67e22;
}

.gwp_msg_preview {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.gwp_msg_meta {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gwp_msg_arrow {
    color: #ccc;
    font-size: 16px;
    flex-shrink: 0;
    transition: color 0.12s;
}

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

/* Empty state */
.gwp_msg_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
    text-align: center;
}

.gwp_msg_empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 12px;
}

.gwp_msg_empty p {
    font-size: 15px;
    color: #888;
    margin: 0;
}

/* =============================================
   SPLIT-PANE MESSAGING LAYOUT (≥1200px)
   ============================================= */

body.gwp_splitpane_active {
    overflow: hidden;
}

body.gwp_splitpane_active #gwp_frame {
    display: flex;
    flex-wrap: wrap;
    height: 100vh;
    overflow: hidden;
}

body.gwp_splitpane_active .gwp_topbuttonbar {
    width: 100%;
    flex-shrink: 0;
    z-index: 10;
    background: #fff;
    box-sizing: border-box;
    position: sticky;
    top: 0;
}

body.gwp_splitpane_active .gwp_messages_page {
    width: 380px;
    min-width: 380px;
    max-width: 380px;
    height: calc(100vh - var(--swp-topbar-h, 50px));
    overflow-y: auto;
    border-right: 1px solid #e5e7eb;
    padding: 12px;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fafbfc;
}

body.gwp_splitpane_active .gwp_msg_item {
    border-radius: 10px;
    margin-bottom: 2px;
    padding: 12px 14px;
    border-bottom: none;
    transition: background 0.12s;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

body.gwp_splitpane_active .gwp_msg_item:hover {
    background: #eef1f5;
}

body.gwp_splitpane_active .gwp_msg_item.gwp_msg_active {
    background: color-mix(in srgb, var(--accent1) 12%, white);
    border-left: 3px solid var(--accent1);
    padding-left: 11px; /* compensate 3px border so content stays aligned */
}

body.gwp_splitpane_active .gwp_msg_item.gwp_msg_active .gwp_msg_title {
    color: var(--accent1);
}

body.gwp_splitpane_active .gwp_msg_item .gwp_msg_arrow {
    display: none;
}

/* Popup becomes inline right panel — below the top menu bar */
body.gwp_splitpane_active #gwp_message {
    position: fixed !important;
    left: 380px !important;
    top: var(--swp-topbar-h, 50px) !important;
    width: calc(100% - 380px) !important;
    height: calc(100vh - var(--swp-topbar-h, 50px)) !important;
    background: none !important;
    z-index: 100 !important;
    animation: none !important;
}

body.gwp_splitpane_active #gwp_message > .gwp_popupbody {
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 12px 24px 0 24px !important;
    box-shadow: none !important;
}

/* Chat panel empty state — below top menu bar */
.gwp_chatpanel_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - var(--swp-topbar-h, 50px));
    color: #bbb;
    text-align: center;
    position: fixed;
    left: 380px;
    top: var(--swp-topbar-h, 50px);
    width: calc(100% - 380px);
    background: #fff;
    z-index: 50;
}

.gwp_chatpanel_empty i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 16px;
}

.gwp_chatpanel_empty p {
    font-size: 16px;
    color: #999;
    margin: 0;
}

.gwp_chatpanel_empty span {
    font-size: 13px;
    color: #bbb;
    margin-top: 4px;
}

/* In split pane: offset overlay to only cover the message pane (not the left thread list) */
body.gwp_splitpane_active .gwp_loadingpopup {
    left: 380px !important;
    top: var(--swp-topbar-h, 50px) !important;
    width: calc(100% - 380px) !important;
    height: calc(100vh - var(--swp-topbar-h, 50px)) !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(4px) !important;
}

/* wp-admin has no 380px left panel — restore full-page overlay */
body.wp-admin.gwp_splitpane_active .gwp_loadingpopup {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Date separators — frosted pill (iMessage/Telegram style) */
.gwp_date_separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    margin: 6px 0;
    position: relative;
}

.gwp_date_separator::before,
.gwp_date_separator::after {
    display: none;
}

.gwp_date_separator span {
    padding: 4px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    background: rgba(0,0,0,0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.06);
}

/* Message grouping - consecutive messages from same author */
.gwp_msg_grouped {
    margin-bottom: 2px !important;
}

.gwp_msg_grouped .gwp_messagedatefrom {
    display: none;
}

.gwp_msg_group_last {
    margin-bottom: 12px;
}

/* Consecutive own messages - reduce tail radius */
.gwp_mymessage.gwp_msg_grouped {
    border-radius: 16px 16px 4px 16px;
}

.gwp_friendmessage.gwp_msg_grouped {
    border-radius: 16px 16px 16px 4px;
}

/* Empty conversation state */
.gwp_chat_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #bbb;
    text-align: center;
    flex: 1;
}

.gwp_chat_empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 12px;
}

.gwp_chat_empty p {
    font-size: 15px;
    color: #999;
    margin: 0;
}

/* New message indicator pill */
.gwp_new_msg_pill {
    position: sticky;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--accent1);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
    animation: gwp_pill_fadein 0.2s ease;
    width: fit-content;
    margin: 0 auto;
}

.gwp_new_msg_pill:hover {
    filter: brightness(1.1);
}

.gwp_new_msg_pill i {
    font-size: 14px;
}

@keyframes gwp_pill_fadein {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Delivery status ticks */
.gwp_msg_status {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    font-size: 12px;
    vertical-align: middle;
}

.gwp_msg_status_sent {
    color: rgba(255,255,255,0.5);
}

.gwp_msg_status_delivered {
    color: rgba(255,255,255,0.7);
}

.gwp_friendmessage .gwp_msg_status {
    display: none;
}

/* Channel filter count badges */
.gwp_filter_count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    background: rgba(0,0,0,0.08);
    color: #666;
    margin-left: 4px;
}

.gwp_filter_active .gwp_filter_count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Typing indicator */
.gwp_typing_indicator {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.gwp_typing_indicator.active {
    display: flex;
}

.gwp_typing_dots {
    display: flex;
    gap: 3px;
    align-items: center;
}

.gwp_typing_dots span {
    width: 6px;
    height: 6px;
    background: #bbb;
    border-radius: 50%;
    animation: gwp_typing_bounce 1.4s infinite;
}

.gwp_typing_dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.gwp_typing_dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes gwp_typing_bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Unread count on sidebar items */
.gwp_msg_unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    background: var(--accent1);
    color: #fff;
    flex-shrink: 0;
}

/* =============================================
   POPUP BUTTON STYLES (shared)
   ============================================= */

.gwp_popup_actions {
    padding: 12px 0 0;
    border-top: 1px solid #eee;
    margin-top: 8px;
}

.gwp_popup_actions_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

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

.gwp_popup_btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.gwp_popup_btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

.gwp_popup_btn i {
    font-size: 15px;
}

.gwp_popup_btn_primary {
    background: var(--accent1);
    border-color: var(--accent1);
    color: #fff;
}

.gwp_popup_btn_primary:hover {
    opacity: 0.9;
    background: var(--accent1);
    border-color: var(--accent1);
    color: #fff;
}

/* =============================================
   MOBILE — BLOGS & MESSAGES
   ============================================= */

@media (max-width: 900px) {

    .gwp_blogs_page,
    .gwp_messages_page {
        padding: 16px 12px;
        margin: 0 8px;
    }

    .gwp_blog_card {
        padding: 12px 14px;
    }

    .gwp_blog_card_title {
        font-size: 14px;
    }

    .gwp_msg_item {
        padding: 12px 10px;
        gap: 10px;
    }

    .gwp_msg_icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .gwp_popup_actions_row {
        flex-direction: column;
        align-items: stretch;
    }

    .gwp_popup_actions_buttons {
        justify-content: flex-end;
    }

    .gwp_blog_card_actions {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* =============================================
   SHARED MODAL STYLES (cross-page)
   ============================================= */

.gwp_rota_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.gwp_rota_modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gwp_rota_modal_header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 600;
}

.gwp_rota_modal_header i {
    color: #F83600;
}

.gwp_rota_modal_close {
    margin-left: auto;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.gwp_rota_modal_close:hover {
    color: #333;
}

.gwp_rota_modal_body {
    padding: 20px;
    overflow-y: auto;
}

.gwp_rota_modal_footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Menu headers and dividers */
.gwp_rota_menu_header {
    padding: 8px 15px 4px 15px;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gwp_rota_menu_divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

/* =============================================
   SHARE MODAL (cross-page)
   ============================================= */

.gwp_share_modal {
    max-width: 400px;
}

.gwp_share_modal .gwp_rota_modal_body {
    padding: 15px 20px;
}

.gwp_share_modal .gwp_rota_share_link_wrap {
    margin-bottom: 12px;
}

.gwp_share_modal .gwp_rota_share_input {
    font-size: 12px;
    padding: 8px 10px;
}

.gwp_share_modal .gwp_save_button {
    padding: 8px 12px;
    min-width: auto;
}

.gwp_rota_share_btn_open {
    background: var(--accent1, #2a9d90) !important;
    color: #fff !important;
}

.gwp_rota_share_btn_open:hover {
    background: var(--accent2, #238b7e) !important;
}

.gwp_rota_share_content {
    padding: 10px 0;
}

.gwp_rota_share_content p {
    margin-bottom: 15px;
    color: #555;
}

.gwp_rota_share_link_wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.gwp_rota_share_input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #f9f9f9;
}

.gwp_rota_share_input:focus {
    outline: none;
    border-color: #F83600;
    background: #fff;
}

.gwp_rota_share_buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gwp_rota_share_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.gwp_rota_share_btn:hover {
    background: #eee;
    border-color: #ccc;
}

.gwp_rota_share_btn i {
    font-size: 16px;
}

.gwp_rota_share_btn .la-envelope {
    color: #F83600;
}

.gwp_rota_share_btn .la-whatsapp {
    color: #25D366;
}

/* Share modal - advanced options */
.gwp_share_advanced_toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0 4px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

.gwp_share_advanced_toggle:hover {
    color: #374151;
}

.gwp_share_advanced_toggle .la-cog {
    font-size: 15px;
}

.gwp_share_advanced_toggle .la-chevron-down,
.gwp_share_advanced_toggle .la-chevron-up {
    font-size: 11px;
    margin-left: auto;
}

.gwp_share_advanced_panel {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 6px;
}

.gwp_share_adv_row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.gwp_share_adv_row>label {
    flex: 0 0 120px;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.gwp_share_adv_row>select,
.gwp_share_adv_row>input[type="date"] {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #111827;
}

.gwp_share_adv_row>select:focus,
.gwp_share_adv_row>input[type="date"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.gwp_share_adv_row_check label {
    flex: 1 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.gwp_share_adv_row_check input[type="checkbox"] {
    accent-color: #6366f1;
}

.gwp_share_adv_row_reset {
    justify-content: flex-end;
    margin-bottom: 0;
    padding-top: 4px;
    border-top: 1px solid #f3f4f6;
}

/* =============================================
   CREATE NEW MODAL (Database page)
   ============================================= */

.gwp_createnew_modal {
    max-width: 400px;
}

.gwp_createnew_modal .gwp_rota_modal_body {
    padding: 0;
}

.gwp_createnew_options {
    display: flex;
    flex-direction: column;
}

.gwp_createnew_option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #e8e8e8;
    border-left: 3px solid transparent;
}

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

.gwp_createnew_option:hover {
    background: #fafafa;
}

.gwp_createnew_option_form .gwp_createnew_icon {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.gwp_createnew_option_form:hover {
    border-left-color: #64748b;
}

.gwp_createnew_option_register .gwp_createnew_icon {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #059669;
}

.gwp_createnew_option_register:hover {
    border-left-color: #059669;
}

.gwp_createnew_option_rota .gwp_createnew_icon {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
}

.gwp_createnew_option_rota:hover {
    border-left-color: #c2410c;
}

.gwp_createnew_option_compliance .gwp_createnew_icon {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1d4ed8;
}

.gwp_createnew_option_compliance:hover {
    border-left-color: #1d4ed8;
}

.gwp_createnew_icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.gwp_createnew_icon i {
    font-size: 20px;
}

.gwp_createnew_text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gwp_createnew_text strong {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.gwp_createnew_text span {
    font-size: 12px;
    color: #666;
}

/* =============================================
   IMPORT PREVIEW (cross-page)
   ============================================= */

.gwp_rota_import_preview {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}

.gwp_rota_import_preview_header {
    padding: 10px 12px;
    background: #f3f4f6;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #e5e7eb;
}

.gwp_rota_import_preview_table {
    padding: 10px;
    overflow-x: auto;
}

.gwp_rota_import_preview_table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.gwp_rota_import_preview_table th,
.gwp_rota_import_preview_table td {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}

.gwp_rota_import_preview_table th {
    background: #fff;
    font-weight: 600;
}

.gwp_rota_import_preview_table td {
    background: #fff;
}

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

.gwp_rota_import_option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.gwp_rota_import_option:hover {
    background: #f3f4f6;
}

.gwp_rota_import_option input[type="radio"] {
    margin-top: 2px;
}

.gwp_rota_import_option input[type="radio"]:checked+strong {
    color: var(--accent1, #2a9d90);
}

/* =============================================
   TOAST NOTIFICATIONS (cross-page)
   ============================================= */

.gwp_toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gwp_toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.gwp_toast i {
    font-size: 18px;
}

.gwp_toast_tick,
.gwp_toast_success {
    background: #10b981;
}

.gwp_toast_error {
    background: #ef4444;
}

.gwp_toast_warning {
    background: #f59e0b;
}

.gwp_toast_info {
    background: #3b82f6;
}

/* Rota column visibility toggle */
.gwp_rota_col_hidden {
    opacity: 0.4;
}

.gwp_rota_column_item:has(.gwp_rota_col_hidden) .gwp_rota_col_name {
    opacity: 0.45;
    text-decoration: line-through;
}

/* Rota break rows */
.gwp_rota_row_break td.gwp_rota_td_break {
    background: #f1f5f9;
    text-align: center;
    padding: 12px 16px;
    border-left: none;
    border-right: none;
}

.gwp_rota_break_text {
    font-weight: 600;
    font-style: italic;
    color: #64748b;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.gwp_rota_break_card {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 14px 20px;
    text-align: center;
    margin-bottom: 8px;
}

.gwp_rota_break_toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}

.gwp_rota_break_toggle input {
    margin: 0;
}

/* ============================================= */
/* Custom Fields Manager (Members)               */
/* ============================================= */

/* Manager modal */
.gwp_cf_manager_content {
    max-width: 560px;
}

.gwp_cf_manager_desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Fields list */
.gwp_cf_fields_list {
    margin-bottom: 16px;
    min-height: 40px;
}

.gwp_cf_empty {
    text-align: center;
    padding: 30px 16px;
    color: #999;
}

.gwp_cf_empty i {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.gwp_cf_empty p {
    margin: 0;
    font-size: 13px;
}

.gwp_cf_field_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #fff;
    transition: box-shadow 0.15s;
}

.gwp_cf_field_item:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.gwp_cf_drag_handle {
    color: #ccc;
    cursor: grab;
    font-size: 16px;
}

.gwp_cf_drag_handle:active {
    cursor: grabbing;
}

.gwp_cf_field_info {
    flex: 1;
    min-width: 0;
}

.gwp_cf_field_name {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.gwp_cf_field_type {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.gwp_cf_field_type i {
    margin-right: 3px;
}

.gwp_cf_field_actions {
    display: flex;
    gap: 8px;
}

.gwp_cf_field_actions i {
    cursor: pointer;
    color: #999;
    font-size: 16px;
    transition: color 0.15s;
}

.gwp_cf_field_actions i:hover {
    color: #333;
}

.gwp_cf_field_actions i.la-trash:hover {
    color: #e53e3e;
}

/* Type picker modal */
.gwp_cf_typepicker_content {
    max-width: 480px;
}

.gwp_cf_typepicker_body {
    margin-bottom: 12px;
}

.gwp_cf_typepicker_cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin: 14px 0 8px;
}

.gwp_cf_typepicker_cat:first-child {
    margin-top: 0;
}

.gwp_cf_typepicker_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gwp_cf_typepicker_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.gwp_cf_typepicker_item:hover {
    border-color: var(--gwp_colour_accent, #4f46e5);
    background: color-mix(in srgb, var(--gwp_colour_accent, #4f46e5) 6%, white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.gwp_cf_typepicker_item i {
    font-size: 22px;
    color: var(--gwp_colour_accent, #4f46e5);
}

.gwp_cf_typepicker_item span {
    font-size: 12px;
    font-weight: 500;
    color: #444;
}

/* Editor modal */
.gwp_cf_edit_type_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
}

.gwp_cf_edit_type_badge i {
    color: var(--gwp_colour_accent, #4f46e5);
}

/* Switch toggle for custom fields */
.gwp_cf_switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.gwp_cf_switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gwp_cf_switch_slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 22px;
    transition: 0.2s;
}

.gwp_cf_switch_slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

.gwp_cf_switch input:checked+.gwp_cf_switch_slider {
    background: var(--gwp_colour_accent, #4f46e5);
}

.gwp_cf_switch input:checked+.gwp_cf_switch_slider::before {
    transform: translateX(18px);
}

/* Currency input */
.gwp_cf_currency_wrap {
    display: flex;
    align-items: center;
    gap: 0;
}

.gwp_cf_currency_sym {
    padding: 6px 10px;
    background: #f3f4f6;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.gwp_cf_currency_wrap .gwp_members_form_input {
    border-radius: 0 6px 6px 0;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .gwp_cf_typepicker_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Star rating field */
.gwp_cf_star_wrap {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 0;
}

.gwp_cf_star {
    transition: color 0.15s, transform 0.15s;
}

.gwp_cf_star:hover {
    transform: scale(1.2);
}

/* Slider field */
.gwp_cf_slider_wrap {
    width: 100%;
}

.gwp_cf_slider_labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.gwp_cf_slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    flex: 1;
}

.gwp_cf_slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gwp_colour_accent, #4f46e5);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.gwp_cf_slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gwp_colour_accent, #4f46e5);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.gwp_cf_slider_value {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    min-width: 40px;
    text-align: center;
}

/* Colour picker field */
.gwp_cf_colour_input {
    width: 40px;
    height: 32px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.gwp_cf_colour_input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.gwp_cf_colour_input::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.gwp_cf_colour_hex {
    font-family: monospace;
    font-size: 12px;
    color: #666;
}

/* Switch label */
.gwp_cf_switch_label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

/* View mode - slider bar */
.gwp_cf_view_slider_bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    max-width: 120px;
}

.gwp_cf_view_slider_fill {
    height: 100%;
    background: var(--gwp_colour_accent, #4f46e5);
    border-radius: 3px;
    transition: width 0.3s;
}

/* Contact Stats Modal */
.gwp_stats_modal_content {
    max-width: 480px;
}

.gwp_stats_total_row {
    font-size: 18px;
    color: #334155;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8ecf0;
}

.gwp_stats_total_row i {
    color: var(--gwp_colour_accent, #4f46e5);
    margin-right: 4px;
}

.gwp_stats_section_title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin: 14px 0 8px;
}

.gwp_stats_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.gwp_stats_card {
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.gwp_stats_card_count {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.gwp_stats_card_label {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.gwp_stats_card_bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.gwp_stats_card_bar div {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s;
}

.gwp_stats_group_list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gwp_stats_group_row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gwp_stats_group_name {
    font-size: 13px;
    color: #334155;
    min-width: 100px;
    flex-shrink: 0;
}

.gwp_stats_group_bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.gwp_stats_group_bar div {
    height: 100%;
    background: var(--gwp_colour_accent, #4f46e5);
    border-radius: 3px;
    opacity: 0.6;
}

.gwp_stats_group_count {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    min-width: 28px;
    text-align: right;
}

/* Contact Types Management */
.gwp_cf_section_title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8ecf0;
}

.gwp_cf_section_title i {
    color: var(--gwp_colour_accent, #4f46e5);
    margin-right: 4px;
}

.gwp_ct_types_list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.gwp_ct_type_item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid #e8ecf0;
    border-radius: 6px;
}

.gwp_ct_type_item .select_colpicframe {
    flex-shrink: 0;
}

.gwp_ct_type_label {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}

.gwp_ct_type_delete {
    cursor: pointer;
    color: #ccc;
    font-size: 15px;
    transition: color 0.15s;
}

.gwp_ct_type_delete:hover {
    color: #e53e3e;
}

.gwp_ct_add_row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.gwp_ct_add_row .gwp_input {
    font-size: 13px;
    padding: 6px 10px;
}

/* =============================================
   FAMILY LINKING STYLES
   ============================================= */

/* Family role badge */
.gwp_family_role_badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.gwp_family_role_badge i {
    font-size: 12px;
}

/* Self role display */
.gwp_family_self_role {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    margin-bottom: 16px;
}

/* My role row inside edit group */
.gwp_family_myrole_row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid #f3f4f6;
    background: #fefce8;
}

.gwp_family_myrole_label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

/* Leave / delete group button in header */
.gwp_family_leave_btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #d1d5db;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.15s;
    flex-shrink: 0;
    margin-left: 4px;
}

.gwp_family_leave_btn:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* Family empty state */
.gwp_family_empty {
    text-align: center;
    padding: 30px 16px;
}

/* Family group container */
.gwp_family_group {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: visible;
}

.gwp_family_group_header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    border-radius: 8px 8px 0 0;
}

.gwp_family_group_header i {
    font-size: 16px;
    color: #9ca3af;
}

.gwp_family_group_count {
    margin-left: auto;
    font-weight: 400;
    font-size: 12px;
    color: #9ca3af;
}

.gwp_family_group_empty {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

/* Family member card */
.gwp_family_member_card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.12s;
}

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

.gwp_family_member_card:hover {
    background: #f9fafb;
}

.gwp_family_group_edit .gwp_family_member_card {
    cursor: default;
}

.gwp_family_group_edit .gwp_family_member_card:hover {
    background: transparent;
}

/* Member avatar */
.gwp_family_member_avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Member info */
.gwp_family_member_info {
    flex: 1;
    min-width: 0;
}

.gwp_family_member_name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gwp_family_member_meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    flex-wrap: wrap;
}

/* Remove button in edit mode */
.gwp_family_remove_btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #d1d5db;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.15s;
    flex-shrink: 0;
}

.gwp_family_remove_btn:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* Add member row in edit mode */
.gwp_family_add_row {
    padding: 8px 14px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
    position: relative;
    border-radius: 0 0 8px 8px;
}

/* Spacer for dropdown visibility in scrollable modal */
.gwp_family_dropdown_spacer {
    height: 220px;
    pointer-events: none;
}

/* Ensure select dropdown appears above family cards */
.gwp_family_add_row .select_dropdown,
.gwp_family_join_picker .select_dropdown {
    z-index: 9999;
}

/* Action buttons row */
.gwp_family_actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Join picker */
.gwp_family_join_picker {
    padding: 12px 0;
}

/* Family icon in contact list */
.gwp_members_family_icon {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    color: #9ca3af;
    font-size: 13px;
    vertical-align: middle;
}

/* Can manage badge (view mode) */
.gwp_family_manage_badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    background: #d1fae5;
    color: #065f46;
    white-space: nowrap;
}

.gwp_family_manage_badge i {
    font-size: 12px;
}

/* Can manage row (edit mode — self) */
.gwp_family_manage_row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid #f3f4f6;
    background: #f0fdf4;
}

.gwp_family_manage_label {
    font-size: 13px;
    color: #374151;
}

/* Toggle switch */
.gwp_family_manage_toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 6px;
    user-select: none;
}

.gwp_family_manage_toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.gwp_family_manage_slider {
    width: 34px;
    height: 18px;
    background: #d1d5db;
    border-radius: 9px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}

.gwp_family_manage_slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.gwp_family_manage_toggle input:checked+.gwp_family_manage_slider {
    background: #22c55e;
}

.gwp_family_manage_toggle input:checked+.gwp_family_manage_slider::after {
    transform: translateX(16px);
}

/* Inline manage toggle on member cards */
.gwp_family_manage_toggle_inline {
    margin-left: 4px;
}

.gwp_family_manage_label_sm {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}

/* ============================================================
   LIBRARY V2 — CSS Additions
   Append to output.css (original backed up as output_v1.css)
   ============================================================ */

/* ---- Type Dropdown ---- */
.gwp_lib_type_dropdown {
    position: relative
}

.gwp_lib_type_current {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 5px 4px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    min-width: 120px;
    transition: border-color .15s, background .15s
}

.gwp_lib_type_current:hover {
    border-color: var(--gwp_accent1);
    background: #fff
}

#gwp_lib_type_label {
    flex: 1;
    text-align: center;
    padding: 0 4px
}

.gwp_lib_type_arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 14px;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0
}

.gwp_lib_type_arrow:hover {
    color: var(--gwp_accent1);
    background: rgba(0, 0, 0, .05)
}

.gwp_lib_type_arrow_disabled {
    color: #ccc !important;
    pointer-events: none
}

.gwp_lib_type_list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    min-width: 180px;
    z-index: 28000;
    padding: 4px;
    max-height: 400px;
    overflow-y: auto
}

.gwp_lib_type_item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    border-radius: 6px;
    transition: background .1s;
    white-space: nowrap
}

.gwp_lib_type_item:hover {
    background: #f5f5f5
}

.gwp_lib_type_item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #888
}

.gwp_lib_type_item_active {
    background: color-mix(in srgb, var(--gwp_accent1) 10%, #fff);
    color: var(--gwp_accent1);
    font-weight: 600
}

.gwp_lib_type_item_active i {
    color: var(--gwp_accent1)
}

/* ---- View switching ---- */
.gwp_lib_view {
    display: none;
    padding: 16px 20px;
    animation: gwp_libFade .2s ease
}

.gwp_lib_view.active {
    display: block
}

@keyframes gwp_libFade {
    from {
        opacity: 0;
        transform: translateY(4px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ---- Dashboard / Recent ---- */
.gwp_lib_stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 24px
}

.gwp_lib_stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all .2s;
    text-align: center
}

.gwp_lib_stat:hover {
    border-color: var(--gwp_accent1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transform: translateY(-2px)
}

.gwp_lib_stat_icon {
    font-size: 24px;
    color: var(--gwp_accent1);
    margin-bottom: 6px
}

.gwp_lib_stat_num {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b
}

.gwp_lib_stat_label {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px
}

.gwp_lib_recent_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px
}

.gwp_lib_recent_header h3 {
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px
}

.gwp_lib_recent_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all .15s
}

.gwp_lib_recent_item:hover {
    border-color: color-mix(in srgb, var(--gwp_accent1) 30%, #e2e8f0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06)
}

.gwp_lib_recent_icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0
}

.gwp_lib_recent_icon.activity {
    background: color-mix(in srgb, var(--gwp_accent1) 10%, #fff);
    color: var(--gwp_accent1)
}

.gwp_lib_recent_icon.document {
    background: #eff6ff;
    color: #F83600
}

.gwp_lib_recent_icon.image {
    background: #faf5ff;
    color: #8b5cf6
}

.gwp_lib_recent_icon.video {
    background: #fef2f2;
    color: #ef4444
}

.gwp_lib_recent_icon.audio {
    background: #fefce8;
    color: #eab308
}

.gwp_lib_recent_info {
    flex: 1;
    min-width: 0
}

.gwp_lib_recent_title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.gwp_lib_recent_meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px
}

.gwp_lib_recent_badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    flex-shrink: 0
}

/* ---- Activity Card Enhancements ---- */
.gwp_content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 16px 20px;
    position: relative
}

.gwp_taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 6px 0
}

.gwp_topicwrap,
.gwp_serieswrap,
.gwp_durationwrap {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 11px;
    color: #64748b
}

.gwp_topicwrap b,
.gwp_serieswrap b,
.gwp_durationwrap b {
    font-weight: 600;
    color: #1e293b
}

.gwp_goalbox {
    border-left: 3px solid var(--gwp_accent1);
    border-radius: 0 6px 6px 0;
    background: color-mix(in srgb, var(--gwp_accent1) 5%, #fff);
    padding: 8px 12px;
    margin: 6px 0
}

.gwp_goalbox .gwp_fieldtitle b {
    color: var(--gwp_accent1);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px
}

.gwp_descriptionbox,
.gwp_equipmentbox {
    margin: 6px 0;
    font-size: 13px;
    color: #64748b
}

.gwp_descriptionbox .gwp_fieldtitle b,
.gwp_equipmentbox .gwp_fieldtitle b {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: #64748b
}

.gwp_attachmentslist {
    margin: 6px 0
}

.gwp_attachment {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 2px 3px 2px 0;
    padding: 4px 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 11px;
    transition: border-color .15s
}

.gwp_attachment:hover {
    border-color: var(--gwp_accent1)
}

.gwp_attachment a {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #1e293b
}

.gwp_more_button,
.gwp_less_button {
    padding: 3px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: #64748b;
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s;
    margin-top: 4px
}

.gwp_more_button:hover,
.gwp_less_button:hover {
    border-color: var(--gwp_accent1);
    color: var(--gwp_accent1)
}

/* ---- Kebab Menu Enhancements ---- */
.gwp_ellipsis {
    padding: 4px 6px;
    border-radius: 4px;
    transition: background .15s
}

.gwp_ellipsis:hover {
    background: #f1f5f9
}

.gwp_dropdown-content {
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    padding: 4px
}

.gwp_dropdown-content a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 6px;
    transition: background .1s
}

.gwp_dropdown-content a:hover {
    background: #f1f5f9
}

.gwp_dropdown-content a.danger {
    color: #ef4444
}

/* ---- Media Grid ---- */
.gwp_media_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start
}

.gwp_media_grid .gwp_mediaitem,
.gwp_media_grid .gwp_mediaitemselected {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    width: 130px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    background: #fff;
    transition: all .2s
}

.gwp_media_grid .gwp_mediaitem {
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .03)
}

.gwp_media_grid .gwp_mediaitem:hover {
    border-color: color-mix(in srgb, var(--gwp_accent1) 40%, #e2e8f0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    transform: translateY(-2px)
}

.gwp_media_grid .gwp_mediaitemselected {
    border: 1px solid var(--accent1);
    outline: 2px solid var(--accent1);
    outline-offset: -1px
}

.gwp_media_grid .gwp_mediaboximg {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    overflow: hidden
}

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

.gwp_media_grid .gwp_mediaboximg canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.gwp_media_grid .gwp_mediabox {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #94a3b8
}

.gwp_media_grid .gwp_mediaboxvid {
    width: 100%;
    aspect-ratio: 4/3;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden
}

.gwp_media_grid .gwp_mediaboxvid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .7
}

.gwp_youtubeoverlay,
.gwp_vimeooverlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .4)
}

.gwp_media_grid .gwp_mediafilename {
    padding: 6px 8px 6px 10px;
    font-size: 10px;
    color: #64748b;
    text-align: left;
    word-break: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    line-height: 1.4;
    min-height: 28px
}

.gwp_mediafileselect {
    font-size: 14px;
    color: transparent;
    transition: color .15s
}

.gwp_mediafileselected {
    font-size: 14px;
    color: var(--gwp_accent1);
    text-shadow: 0 0 4px color-mix(in srgb, var(--gwp_accent1) 30%, transparent)
}

.gwp_moverlay {
    position: absolute;
    top: 15px;
    left: -25px;
    width: 100px;
    padding: 2px;
    background-color: var(--gwp_accent1);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .5px;
    transform: rotate(-45deg);
    z-index: 2
}

.gwp_mimageunderlay {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.gwp_addmediaitem {
    display: inline-flex;
    flex-direction: column;
    width: 130px;
    height: auto;
    min-height: 125px;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    transition: all .2s;
    vertical-align: top
}

.gwp_addmediaitem:hover {
    border-color: var(--gwp_accent1);
    background: color-mix(in srgb, var(--gwp_accent1) 5%, #fff)
}

.gwp_addmediaitem .gwp_mediabox {
    background: transparent;
    font-size: 28px;
    color: var(--gwp_accent1)
}

.gwp_addmediaitem .gwp_mediafilename {
    color: var(--gwp_accent1);
    font-weight: 600;
    border-top: none;
    background: transparent
}

/* ---- Bucket / Series / Group Containers ---- */
.gwp_mediabuckets,
.gwp_mmediabuckets {
    margin-bottom: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    position: relative;
    transition: box-shadow .2s;
    box-sizing: border-box
}

/* No hover effect on series/bucket containers */

.gwp_mbtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
}

.gwp_mbtitle h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px
}

.gwp_mbtitle h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--gwp_accent1);
    border-radius: 2px
}

.gwp_bucketcontent {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start
}

/* ---- Empty States ---- */
.gwp_lib_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    text-align: center;
    color: #94a3b8
}

.gwp_lib_empty > i {
    font-size: 40px;
    color: #cbd5e1;
    margin-bottom: 12px
}

.gwp_lib_empty h3 {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px
}

.gwp_lib_empty p {
    font-size: 13px
}

.gwp_lib_empty_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 8px 18px;
    background: var(--gwp_accent1);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s
}

.gwp_lib_empty_btn:hover {
    background: var(--gwp_accent2)
}

/* ---- Archive / Bin Notices ---- */
.gwp_lib_archive_notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #64748b
}

.gwp_lib_archive_notice i {
    font-size: 18px
}

.gwp_lib_bin_notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #991b1b
}

.gwp_lib_bin_notice i {
    font-size: 18px
}

/* Nav Filter Toggle hover (V2) */
.gwp_nav_filter_toggle:hover {
    color: var(--gwp_accent1)
}

/* ---- Media V2: Type label (same as library) ---- */
#gwp_med_type_label {
    flex: 1;
    text-align: center;
    padding: 0 4px
}

/* ---- Media V2: "All" tab section labels ---- */
.gwp_lib_section_label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 16px 0 8px;
    margin-top: 12px;
    border-top: 1px solid #e2e8f0
}

.gwp_lib_section_label:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0
}

.gwp_lib_section_label i {
    font-size: 16px;
    color: #94a3b8
}

.gwp_lib_section_count {
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: auto
}

/* ---- Media V2: Overlay variants for archive/trash ---- */
.gwp_moverlay_deleted {
    background-color: #ef4444;
    color: #fff;
    pointer-events: none
}

.gwp_moverlay_archived {
    background-color: #94a3b8;
    color: #fff;
    pointer-events: none
}

/* ---- Media V2: Trashed/archived item opacity ---- */
.gwp_mediaitem_trashed {
    opacity: 0.75
}

.gwp_mediaitem_archived {
    opacity: 0.65
}

/* ---- Media V2: Multi-select active state ---- */
.gwp_multiselect_active {
    background: color-mix(in srgb, var(--accent1) 15%, #fff)
}

/* ---- Media V2: Recent badge variants ---- */
.gwp_lib_recent_badge_published {
    background: #ecfdf5;
    color: #059669
}

.gwp_lib_recent_badge_draft {
    background: #fef3c7;
    color: #92400e
}

/* ---- Media V2: Empty state padding variant ---- */
.gwp_lib_empty_padded {
    padding: 30px
}

/* ---- Media V2: Remote media video icon centering ---- */
.gwp_mediaboxvid {
    position: relative
}

.gwp_rmedia_icon_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none
}

/* ---- Media V2: Bucket content as grid ---- */
.gwp_bucketcontent.gwp_media_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0
}

/* ---- Media V2: Taxonomy kebab menu ---- */
.gwp_mbtitle {
    position: relative
}

.gwp_bucket_kebab {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%)
}

/* ---- Responsive ---- */
@media(max-width:768px) {
    .gwp_lib_stats {
        grid-template-columns: repeat(3, 1fr)
    }

    .gwp_lib_view {
        padding: 12px 10px
    }

    /* Hide inline filters, show as dropdown on mobile */
    .gwp_nav_filters {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
        padding: 10px 16px;
        z-index: 50
    }

    .gwp_nav_filters.open,
    .gwp_nav_filters.gwp_nav_filters_open {
        display: flex
    }

    .gwp_nav_filter_toggle {
        display: block
    }

    /* Center items in flex containers */
    .gwp_media_grid,
    .gwp_bucketcontent,
    .gwp_bucketcontent.gwp_media_grid {
        justify-content: center
    }

    .gwp_mediaitem,
    .gwp_mediaitemselected,
    .gwp_addmediaitem,
    .gwp_media_grid .gwp_mediaitem,
    .gwp_media_grid .gwp_mediaitemselected,
    .gwp_media_grid .gwp_addmediaitem {
        width: 110px;
        box-sizing: border-box
    }

    .gwp_content {
        padding: 12px 14px
    }

    .gwp_mediabuckets,
    .gwp_mmediabuckets {
        padding: 10px 10px
    }
}

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

    /* Force all media containers to flex with consistent gap */
    .gwp_media_grid,
    .gwp_bucketcontent,
    .gwp_bucketcontent.gwp_media_grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center
    }

    /* Two items per row: width = 50% minus half the gap, box-sizing includes border */
    .gwp_mediaitem,
    .gwp_mediaitemselected,
    .gwp_addmediaitem,
    .gwp_media_grid .gwp_mediaitem,
    .gwp_media_grid .gwp_mediaitemselected,
    .gwp_media_grid .gwp_addmediaitem {
        width: calc(50% - 4px);
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0
    }

    /* Remove horizontal margins from margin helper classes on mobile */
    .gwp_mediaitemmargin,
    .gwp_mediafilemargin {
        margin-left: 0;
        margin-right: 0
    }

    /* Symmetric container padding */
    .gwp_content {
        padding: 10px 8px
    }

    .gwp_mediabuckets,
    .gwp_mmediabuckets {
        padding: 8px 8px
    }
}

/* ============================================================
   MEDIA V2: Edit Media Popup Styling
   ============================================================ */

/* Header */
#gwp_edit_mediapopup .gwp_popupheader {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc
}

#gwp_edit_mediapopup .gwp_emediatitle {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
    margin: 0;
    word-break: break-word
}

/* Content area (preview) */
#gwp_edit_mediapopup .gwp_popupcontent {
    padding: 16px 20px;
    text-align: center
}

#gwp_edit_mediapopup .gwp_popupcontent img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: contain
}

/* Taxonomy rows (groups, albums, series, buckets, projects) */
#gwp_edit_mediapopup .gwp_tagscontent {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-top: 1px solid #f1f5f9;
    min-height: 36px
}

#gwp_edit_mediapopup .gwp_tagscontent:hover {
    background: #fafbfc
}

/* Tags display */
#gwp_edit_mediapopup .gwp_popuptags {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: #475569;
    min-height: 24px
}

#gwp_edit_mediapopup .gwp_popuptags:empty::after {
    content: 'None';
    color: #94a3b8;
    font-style: italic;
    font-size: 12px
}

/* Individual tag chips */
#gwp_edit_mediapopup .gwp_popuptags span,
#gwp_edit_mediapopup .gwp_popuptags .select_tag,
#gwp_edit_mediapopup .gwp_popuptags a {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: #f1f5f9;
    color: #334155;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s
}

#gwp_edit_mediapopup .gwp_popuptags span:hover,
#gwp_edit_mediapopup .gwp_popuptags .select_tag:hover,
#gwp_edit_mediapopup .gwp_popuptags a:hover {
    background: #e2e8f0
}

/* Edit pencil icon */
#gwp_edit_mediapopup .gwp_emediaicon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    color: #94a3b8;
    transition: all .15s
}

#gwp_edit_mediapopup .gwp_emediaicon:hover {
    background: #f1f5f9;
    color: var(--gwp_accent1)
}

#gwp_edit_mediapopup .gwp_emediaicon i {
    font-size: 15px
}

/* Tag edit mode sections */
#gwp_edit_mediapopup .gwp_emediagtag,
#gwp_edit_mediapopup .gwp_emediaatag,
#gwp_edit_mediapopup .gwp_emediastag,
#gwp_edit_mediapopup .gwp_emediabtag,
#gwp_edit_mediapopup .gwp_emediaptag {
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: none
}

#gwp_edit_mediapopup .gwp_emediagtag .select_multiframe,
#gwp_edit_mediapopup .gwp_emediaatag .select_multiframe,
#gwp_edit_mediapopup .gwp_emediastag .select_multiframe,
#gwp_edit_mediapopup .gwp_emediabtag .select_multiframe,
#gwp_edit_mediapopup .gwp_emediaptag .select_multiframe {
    margin-bottom: 8px
}

/* Inline save/close buttons in edit mode */
#gwp_edit_mediapopup .gwp_close_button.gwp_inlineblock {
    display: inline-block;
    padding: 5px 14px;
    font-size: 11px;
    margin-right: 6px;
    border-radius: 6px
}

/* Bottom buttons area */
#gwp_edit_mediapopup .gwp_popupbuttons {
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px
}

#gwp_edit_mediapopup .gwp_submitbox {
    padding: 0
}

#gwp_edit_mediapopup .gwp_submitbox .gwp_hr {
    margin: 0;
    border: none;
    border-top: 1px solid #e2e8f0
}

#gwp_edit_mediapopup .gwp_submitbox .gwp_poststatus {
    padding: 12px 20px 8px
}

#gwp_edit_mediapopup .gwp_submitbox .gwp_save_button,
#gwp_edit_mediapopup .gwp_submitbox .gwp_close_button {
    margin: 0 0 12px 20px
}

/* Media ID display */
#gwp_edit_mediapopup .gwp_emediaid {
    padding: 8px 20px;
    font-size: 11px;
    color: #94a3b8;
    text-align: right
}

/* Section labels inside taxonomy rows */
#gwp_edit_mediapopup #gwp_edit_term::before {
    content: 'Groups';
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    min-width: 60px
}

#gwp_edit_mediapopup #gwp_edit_album::before {
    content: 'Albums';
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    min-width: 60px
}

#gwp_edit_mediapopup #gwp_edit_series::before {
    content: 'Series';
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    min-width: 60px
}

#gwp_edit_mediapopup #gwp_edit_buckets::before {
    content: 'Buckets';
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    min-width: 60px
}

#gwp_edit_mediapopup #gwp_edit_projects::before {
    content: 'Projects';
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    min-width: 60px
}

/* ---- Media V2: Multi-select mode ---- */
.gwp_multiselect_mode .gwp_mediafileselect {
    color: color-mix(in srgb, var(--accent1) 30%, transparent)
}

.gwp_multiselect_mode .gwp_activities {
    border-color: color-mix(in srgb, var(--accent1) 30%, #e2e8f0)
}

.gwp_multiselect_mode .gwp_astick {
    display: inline-block
}

@keyframes gwp_fadein {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gwp_newplaceholder {
    font-size: 48px;
    color: var(--gwp_accent1, #666);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    opacity: 0.4
}

/* Edit popup: inline term select rows */
.gwp_med_termrow {
    padding: 6px 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.gwp_med_termlabel {
    font-weight: bold;
    font-size: 13px;
    min-width: 65px;
    padding-top: 6px;
    color: var(--gwp_text1, #333);
    flex-shrink: 0;
}

#gwp_edit_mediapopup .gwp_med_termrow {
    max-width: 400px;
}

#gwp_edit_mediapopup .gwp_med_termrow .select_multiframe {
    flex: 1;
    min-width: 0;
}

/* Safety: hide old edit panels in case JS hasn't run yet */
#gwp_emediagtag,
#gwp_emediaatag,
#gwp_emediastag,
#gwp_emediabtag,
#gwp_emediaptag {
    display: none !important;
}

/* ============================================================
   FILES APP — Root layout & sidebar
   ============================================================ */

.gwp_files_app {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 56px)
}

.gwp_fb_root {
    display: flex;
    height: calc(100vh - 56px);
    min-height: 400px;
    overflow: hidden;
    background: #fff
}

/* Sidebar */
.gwp_fb_sidebar {
    width: 210px;
    min-width: 210px;
    background: #f8fafc;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    padding: 12px 0;
    display: flex;
    flex-direction: column
}

.gwp_fb_sidebar_title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    padding: 4px 16px 14px
}

.gwp_fb_sidebar_section {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #94a3b8;
    padding: 6px 16px 4px;
    text-transform: uppercase
}

.gwp_fb_sidebar_item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    border-radius: 6px;
    margin: 1px 6px;
    transition: background .1s, color .1s
}

.gwp_fb_sidebar_item i {
    font-size: 17px;
    width: 18px;
    text-align: center;
    flex-shrink: 0
}

.gwp_fb_sidebar_item:hover {
    background: #f1f5f9;
    color: #1e293b
}

.gwp_fb_sidebar_active {
    background: color-mix(in srgb, var(--gwp_accent1) 10%, #fff) !important;
    color: var(--gwp_accent1) !important;
    font-weight: 600
}

/* Main content pane */
.gwp_fb_main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

/* Toolbar */
.gwp_fb_toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    flex-shrink: 0
}

.gwp_fb_toolbar .gwp_fb_breadcrumb {
    flex: 1;
    min-width: 0;
    padding: 0;
    border-bottom: none;
    background: none;
    font-size: 13px
}

.gwp_fb_toolbar_right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0
}

/* Search */
.gwp_fb_search {
    position: relative;
    display: flex;
    align-items: center
}

.gwp_fb_search i {
    position: absolute;
    left: 8px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none
}

.gwp_fb_search input {
    padding: 5px 10px 5px 28px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 12px;
    width: 160px;
    outline: none;
    background: #f8fafc;
    transition: border-color .15s, width .2s
}

.gwp_fb_search input:focus {
    border-color: var(--gwp_accent1);
    width: 200px;
    background: #fff
}

/* Toolbar buttons */
.gwp_fb_sortbtn,
.gwp_fb_viewbtn {
    width: 30px;
    height: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #64748b;
    transition: all .15s
}

.gwp_fb_sortbtn:hover,
.gwp_fb_viewbtn:hover {
    border-color: var(--gwp_accent1);
    color: var(--gwp_accent1)
}

.gwp_fb_viewbtn.active {
    background: color-mix(in srgb, var(--gwp_accent1) 10%, #fff);
    border-color: var(--gwp_accent1);
    color: var(--gwp_accent1)
}

.gwp_fb_uploadbtn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px !important;
    padding: 5px 12px !important
}

/* Content area */
.gwp_fb_content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    min-height: 0
}

/* Grid view */
.gwp_fb_view_grid {
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 16px;
    gap: 12px
}

/* List view */
.gwp_fb_view_list {
    flex-direction: column;
    padding: 8px 0
}

/* Loading spinner */
.gwp_fb_loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px
}

.gwp_floader {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--gwp_accent1);
    border-radius: 50%;
    animation: gwp_floader_spin .7s linear infinite
}

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

/* Grid cards */
.gwp_fb_card {
    width: 140px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: all .15s;
    display: flex;
    flex-direction: column
}

.gwp_fb_card:hover {
    border-color: var(--gwp_accent1);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transform: translateY(-2px)
}

.gwp_fb_card_selected {
    border-color: var(--gwp_accent1) !important;
    background: color-mix(in srgb, var(--gwp_accent1) 5%, #fff) !important
}

.gwp_fb_card_thumb {
    width: 100%;
    height: 96px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.gwp_fb_card_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.gwp_fb_card_icon {
    font-size: 40px;
    color: #94a3b8
}

.gwp_fb_card_info {
    padding: 8px 10px
}

.gwp_fb_card_name {
    font-size: 12px;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.gwp_fb_card_meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px
}

/* Sort menu */
.gwp_fb_sortmenu {
    position: fixed;
    z-index: 10001;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    min-width: 140px;
    padding: 4px 0;
    overflow: hidden
}

.gwp_fb_sortmenu_item {
    padding: 7px 14px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .1s
}

.gwp_fb_sortmenu_item:hover,
.gwp_fb_sortmenu_item.active {
    background: #f8fafc;
    color: var(--gwp_accent1)
}

/* Rename input inline */
.gwp_fb_rename_input {
    font-size: 12px;
    padding: 2px 6px;
    border: 1px solid var(--gwp_accent1);
    border-radius: 4px;
    outline: none;
    width: 100%;
    box-sizing: border-box
}

/* Responsive */
@media (max-width: 768px) {
    .gwp_fb_root {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 56px)
    }

    .gwp_fb_sidebar {
        width: 100%;
        min-width: 0;
        height: auto;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 6px 8px;
        border-right: none;
        border-bottom: 1px solid #e5e7eb
    }

    .gwp_fb_sidebar_title,
    .gwp_fb_sidebar_section {
        display: none
    }

    .gwp_fb_sidebar_item {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 6px 10px;
        margin: 0 2px
    }

    .gwp_fb_main {
        height: calc(100vh - 130px)
    }

    .gwp_fb_search input {
        width: 110px
    }
}

/* ============================================================
   FOLDER BROWSER VIEW
   ============================================================ */

/* Breadcrumb */
.gwp_fb_breadcrumb {
    padding: 12px 16px;
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc
}

.gwp_fb_crumb {
    font-weight: 500;
    color: #334155
}

.gwp_fb_crumb_link {
    cursor: pointer;
    color: var(--gwp_accent1);
    transition: color .15s
}

.gwp_fb_crumb_link:hover {
    color: color-mix(in srgb, var(--gwp_accent1) 70%, #000);
    text-decoration: underline
}

.gwp_fb_sep {
    font-size: 10px;
    color: #94a3b8
}

/* Selection bar */
.gwp_fb_selbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: color-mix(in srgb, var(--gwp_accent1) 8%, #fff);
    border-bottom: 1px solid color-mix(in srgb, var(--gwp_accent1) 20%, #e5e7eb);
    font-size: 13px
}

.gwp_fb_selcount {
    font-weight: 600;
    color: var(--gwp_accent1);
    min-width: 80px
}

.gwp_fb_selbar button {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all .15s
}

.gwp_fb_selbar button:hover {
    border-color: var(--gwp_accent1);
    background: color-mix(in srgb, var(--gwp_accent1) 5%, #fff)
}

/* Split layout */
.gwp_fb_split {
    display: flex;
    min-height: 400px
}

.gwp_fb_left {
    flex: 1;
    min-width: 0;
    transition: flex .25s ease
}

.gwp_fb_left_shrink {
    flex: 1 1 55%
}

/* Grid */
.gwp_fb_grid {
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

/* Folder cards */
.gwp_fb_folder {
    width: 140px;
    padding: 18px 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    transition: all .15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04)
}

.gwp_fb_folder:hover {
    border-color: var(--gwp_accent1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transform: translateY(-2px)
}

.gwp_fb_folder_icon {
    font-size: 36px;
    color: var(--gwp_accent1);
    margin-bottom: 8px;
    opacity: .85
}

.gwp_fb_folder_name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px
}

.gwp_fb_folder_count {
    font-size: 11px;
    color: #94a3b8
}

/* Item rows */
.gwp_fb_item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .1s;
    border: 1px solid transparent
}

.gwp_fb_item:hover {
    background: #f8fafc;
    border-color: #e5e7eb
}

.gwp_fb_item_active,
.gwp_fb_item.gwp_cloud_sel {
    background: color-mix(in srgb, var(--gwp_accent1) 6%, #fff) !important;
    border-color: color-mix(in srgb, var(--gwp_accent1) 25%, #e5e7eb) !important
}

.gwp_mediaitem.gwp_cloud_sel {
    border-color: var(--accent1, #0f172a) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent1, #0f172a) 20%, transparent), 0 4px 12px rgba(0,0,0,.08)
}

.gwp_fb_item_selected {
    background: color-mix(in srgb, var(--gwp_accent1) 10%, #fff) !important;
    border-color: color-mix(in srgb, var(--gwp_accent1) 35%, #e5e7eb) !important
}

.gwp_fb_item_selected .gwp_fb_item_check i,
.gwp_fb_item_active .gwp_fb_item_check i {
    color: var(--gwp_accent1) !important
}

.gwp_fb_item_check {
    width: 20px;
    flex-shrink: 0;
    text-align: center;
    font-size: 16px;
    color: #d1d5db
}

.gwp_fb_item:hover .gwp_fb_item_check i {
    color: #94a3b8
}

.gwp_fb_item_thumb {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center
}

.gwp_fb_thumb {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.gwp_fb_thumb_icon {
    font-size: 18px;
    color: #64748b
}

.gwp_fb_item_name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0
}

.gwp_fb_item_type {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .3px;
    flex-shrink: 0;
    min-width: 50px;
    text-align: right
}

/* Empty state */
.gwp_fb_empty {
    width: 100%;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 15px
}

.gwp_fb_empty i {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
    opacity: .5
}

/* Context menu */
.gwp_fb_ctx {
    position: fixed;
    z-index: 10000;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    min-width: 160px;
    padding: 6px 0;
    overflow: hidden
}

.gwp_fb_ctx_item {
    padding: 8px 16px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .1s
}

.gwp_fb_ctx_item:hover {
    background: #f8fafc
}

.gwp_fb_ctx_item[data-action="bin"] {
    color: #ef4444
}

.gwp_fb_ctx_item[data-action="bin"]:hover {
    background: #fef2f2
}

.gwp_fb_ctx_item_danger {
    color: #ef4444
}

.gwp_fb_ctx_item_danger:hover {
    background: #fef2f2
}

.gwp_fb_ctx_item_warn {
    color: #f59e0b
}

.gwp_fb_ctx_item_warn:hover {
    background: #fffbeb
}

.gwp_fb_list_header {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .04em;
    user-select: none
}

.gwp_fb_ctx_hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 4px 0
}

/* ---- Preview panel ---- */
.gwp_fb_preview {
    width: 0;
    min-width: 0;
    overflow: hidden;
    border-left: 1px solid #e5e7eb;
    background: #fafbfc;
    transition: width .25s ease, min-width .25s ease, padding .25s ease;
    display: flex;
    flex-direction: column
}

.gwp_fb_preview_open {
    width: 320px;
    min-width: 320px;
    overflow-y: auto
}

.gwp_fb_pv_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: #c0c8d4;
    text-align: center;
    padding: 20px
}

.gwp_fb_pv_empty i {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: .6
}

.gwp_fb_pv_empty p {
    font-size: 13px;
    margin: 0
}

/* Preview media area */
.gwp_fb_pv_media {
    width: 100%;
    min-height: 180px;
    max-height: 260px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb
}

.gwp_fb_pv_media_icon {
    font-size: 56px;
    color: #94a3b8;
    min-height: 180px
}

.gwp_fb_pv_media_audio {
    flex-direction: column;
    padding: 20px
}

.gwp_fb_pv_media_audio i {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 4px
}

.gwp_fb_pv_img {
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: contain;
    cursor: pointer;
    transition: opacity .15s
}

.gwp_fb_pv_img:hover {
    opacity: .9
}

.gwp_fb_pv_video {
    width: 100%;
    max-height: 260px
}

.gwp_fb_pv_icon {
    font-size: 56px;
    color: #94a3b8
}

/* Preview details */
.gwp_fb_pv_details {
    padding: 16px
}

.gwp_fb_pv_fname {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 14px 0;
    word-break: break-all;
    line-height: 1.4
}

.gwp_fb_pv_meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px
}

.gwp_fb_pv_row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12px
}

.gwp_fb_pv_label {
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .4px;
    flex-shrink: 0
}

.gwp_fb_pv_val {
    color: #475569;
    text-align: right;
    word-break: break-all
}

/* Preview actions */
.gwp_fb_pv_actions {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.gwp_fb_pv_btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    transition: all .15s;
    width: 100%
}

.gwp_fb_pv_btn:hover {
    border-color: var(--gwp_accent1);
    background: color-mix(in srgb, var(--gwp_accent1) 4%, #fff)
}

.gwp_fb_pv_btn i {
    font-size: 16px;
    width: 18px;
    text-align: center
}

.gwp_fb_pv_btn_primary {
    background: var(--gwp_accent1);
    color: #fff;
    border-color: var(--gwp_accent1)
}

.gwp_fb_pv_btn_primary:hover {
    background: color-mix(in srgb, var(--gwp_accent1) 85%, #000);
    color: #fff
}

.gwp_fb_pv_btn_danger {
    color: #ef4444;
    border-color: #fecaca
}

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

.gwp_fb_pv_btn_warn {
    color: #f59e0b;
    border-color: #fde68a
}

.gwp_fb_pv_btn_warn:hover {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #f59e0b
}

.gwp_fb_pv_actions_sep {
    width: 100%;
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0
}

/* Responsive */
@media (max-width: 768px) {
    .gwp_fb_split {
        flex-direction: column
    }

    .gwp_fb_preview_open {
        width: 100%;
        min-width: 100%;
        border-left: none;
        border-top: 1px solid #e5e7eb
    }

    .gwp_fb_left_shrink {
        flex: none
    }
}

@media (max-width: 600px) {
    .gwp_fb_grid {
        padding: 10px 8px;
        gap: 8px
    }

    .gwp_fb_folder {
        width: calc(50% - 4px)
    }

    .gwp_fb_item_type {
        display: none
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   WEEK VIEW — Modernised
   ═══════════════════════════════════════════════════════════════════════════ */

#gwp_wframe {
    position: relative;
    display: none;
    padding: 0;
    width: 100%;
}

.gwp_weekheader {
    display: flex;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 5;
}

.gwp_weekheader_time {
    width: 56px;
    min-width: 56px;
    flex-shrink: 0;
}

.gwp_weekheader_day {
    flex: 1;
    text-align: center;
    padding: 10px 4px 8px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-left: 1px solid #e5e7eb;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s;
    color: #666;
}

.gwp_weekheader_day:hover {
    background-color: #f9fafb;
}

.gwp_weekheader_day.gwp_today {
    background-color: color-mix(in srgb, #000000 6%, white);
}

.gwp_weekheader_day.gwp_today .gwp_weekheader_daynum {
    background: #000000;
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
    display: inline-block;
    margin: 2px auto 0;
}

.gwp_weekheader_daynum {
    font-size: 20px;
    line-height: 26px;
    display: block;
    font-weight: 700;
    color: var(--accent2, #264653);
}

.gwp_weekheader_dayname {
    font-size: 10px;
    line-height: 14px;
    display: block;
    color: #888;
    letter-spacing: 0.05em;
}

/* All-day events row */
.gwp_weekallday {
    display: flex;
    min-height: 28px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #fafbfc;
}

.gwp_weekallday_label {
    flex-shrink: 0;
    font-size: 9px;
    color: #999;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gwp_weekallday_col {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-left: 1px solid #e5e7eb;
    padding: 3px 2px;
    min-height: 28px;
}

.gwp_weekallday_event {
    background-color: color-mix(in srgb, #000000 12%, white);
    border-left: 3px solid #000000;
    padding: 2px 6px;
    margin: 1px 0;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--accent2, #264653);
    transition: background-color 0.15s;
}

.gwp_weekallday_event:hover {
    background-color: color-mix(in srgb, #000000 22%, white);
}

/* Time grid body */
.gwp_weekbody {
    display: flex;
    position: relative;
}

.gwp_weektimecol {
    width: 56px;
    min-width: 56px;
    flex-shrink: 0;
}

.gwp_weektimeslot {
    height: 60px;
    font-size: 10px;
    color: #999;
    text-align: right;
    padding-right: 8px;
    padding-top: 0;
    position: relative;
    box-sizing: border-box;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s;
}

.gwp_weektimeslot:hover {
    color: #000000;
}

.gwp_weektimeslot span {
    position: relative;
    top: -7px;
}

.gwp_weekgrid {
    flex: 1;
    display: flex;
    position: relative;
}

.gwp_weekdaycol {
    flex: 1;
    position: relative;
    border-left: 1px solid #e5e7eb;
}

.gwp_weekdaycol.gwp_today {
    background-color: color-mix(in srgb, #000000 3%, white);
}

.gwp_weekhourline {
    height: 60px;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.1s;
}

.gwp_weekhourline:nth-child(odd) {
    border-bottom: 1px solid #e5e7eb;
}

.gwp_weekhourline:hover {
    background-color: color-mix(in srgb, #000000 4%, white);
}

/* Timed event blocks — week view */
.gwp_weekevent {
    position: absolute;
    min-height: 20px;
    background-color: color-mix(in srgb, #000000 12%, white);
    border-left: 3px solid #000000;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 11px;
    line-height: 14px;
    overflow: hidden;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    color: var(--accent2, #264653);
}

.gwp_weekevent:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transform: scale(1.01);
}

.gwp_weekevent_title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gwp_weekevent_time {
    font-size: 10px;
    color: #888;
    font-weight: 500;
}

/* Event source colours — week view */
.gwp_weekevent[eventsource="Group-calendar"] {
    background-color: color-mix(in srgb, #000000 12%, white);
    border-left-color: #000000;
}

.gwp_weekevent[eventsource="Personal-calendar"],
.gwp_weekevent[eventsource*="Personal-calendar"] {
    background-color: color-mix(in srgb, #e74c3c 10%, white);
    border-left-color: #e74c3c;
}

.gwp_weekevent[eventsource="Booking-calendar"] {
    background-color: color-mix(in srgb, #27ae60 10%, white);
    border-left-color: #27ae60;
}

.gwp_weekevent[eventsource="Holiday-calendar"] {
    background-color: color-mix(in srgb, #f39c12 10%, white);
    border-left-color: #f39c12;
}

.gwp_weekallday_event[eventsource="Group-calendar"] {
    background-color: color-mix(in srgb, #000000 12%, white);
    border-left-color: #000000;
}

.gwp_weekallday_event[eventsource="Personal-calendar"],
.gwp_weekallday_event[eventsource*="Personal-calendar"] {
    background-color: color-mix(in srgb, #e74c3c 10%, white);
    border-left-color: #e74c3c;
}

.gwp_weekallday_event[eventsource="Booking-calendar"] {
    background-color: color-mix(in srgb, #27ae60 10%, white);
    border-left-color: #27ae60;
}

.gwp_weekallday_event[eventsource="Holiday-calendar"] {
    background-color: color-mix(in srgb, #f39c12 10%, white);
    border-left-color: #f39c12;
}

/* Current time indicator */
.gwp_weeknowline {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e74c3c;
    pointer-events: none;
}

.gwp_weeknowline::before {
    content: '';
    position: absolute;
    left: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e74c3c;
}

/* Week navigation */
.gwp_weeknav {
    display: inline-block;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    color: #666;
    transition: color 0.15s;
}

.gwp_weeknav:hover {
    color: #000000;
}

.gwp_weeklabel {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 10px;
    min-width: 180px;
    text-align: center;
    user-select: none;
    color: var(--accent2, #264653);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DAY VIEW — Modernised
   ═══════════════════════════════════════════════════════════════════════════ */

#gwp_dframe {
    position: relative;
    display: none;
    padding: 0;
    width: 100%;
}

.gwp_dayviewheader {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.gwp_dayviewtitle {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
    text-align: center;
    color: var(--accent2, #264653);
}

.gwp_dayviewtitle.gwp_today {
    color: #000000;
}

.gwp_daynav {
    display: inline-block;
    padding: 4px 14px;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    color: #666;
    transition: color 0.15s;
}

.gwp_daynav:hover {
    color: #000000;
}

/* All-day section — day view */
.gwp_dayallday {
    padding: 8px 8px 8px 64px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #fafbfc;
    min-height: 24px;
}

.gwp_dayallday_label {
    font-size: 9px;
    color: #999;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.gwp_dayallday_event {
    background-color: color-mix(in srgb, #000000 12%, white);
    border-left: 3px solid #000000;
    padding: 6px 12px;
    margin: 3px 0;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    color: var(--accent2, #264653);
    transition: background-color 0.15s;
}

.gwp_dayallday_event:hover {
    background-color: color-mix(in srgb, #000000 22%, white);
}

/* Day time grid */
.gwp_daybody {
    display: flex;
    position: relative;
}

.gwp_daytimecol {
    width: 56px;
    min-width: 56px;
    flex-shrink: 0;
}

.gwp_daytimeslot {
    height: 60px;
    font-size: 10px;
    color: #999;
    text-align: right;
    padding-right: 8px;
    position: relative;
    box-sizing: border-box;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s;
}

.gwp_daytimeslot:hover {
    color: #000000;
}

.gwp_daytimeslot span {
    position: relative;
    top: -7px;
}

.gwp_dayeventcol {
    flex: 1;
    position: relative;
    border-left: 1px solid #e5e7eb;
}

.gwp_dayhourline {
    height: 60px;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.1s;
}

.gwp_dayhourline:nth-child(odd) {
    border-bottom: 1px solid #e5e7eb;
}

.gwp_dayhourline:hover {
    background-color: color-mix(in srgb, #000000 4%, white);
}

/* Timed event blocks — day view */
.gwp_dayevent {
    position: absolute;
    left: 4px;
    right: 4px;
    min-height: 24px;
    background-color: color-mix(in srgb, #000000 12%, white);
    border-left: 4px solid #000000;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 18px;
    overflow: hidden;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    color: var(--accent2, #264653);
}

.gwp_dayevent:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transform: translateX(2px);
}

.gwp_dayevent_title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}

.gwp_dayevent_time {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.gwp_dayevent_location {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.gwp_dayevent_location i {
    color: #000000;
    margin-right: 2px;
}

/* Day event source colours */
.gwp_dayevent[eventsource="Group-calendar"] {
    background-color: color-mix(in srgb, #000000 12%, white);
    border-left-color: #000000;
}

.gwp_dayevent[eventsource="Personal-calendar"],
.gwp_dayevent[eventsource*="Personal-calendar"] {
    background-color: color-mix(in srgb, #e74c3c 10%, white);
    border-left-color: #e74c3c;
}

.gwp_dayevent[eventsource="Booking-calendar"] {
    background-color: color-mix(in srgb, #27ae60 10%, white);
    border-left-color: #27ae60;
}

.gwp_dayevent[eventsource="Holiday-calendar"] {
    background-color: color-mix(in srgb, #f39c12 10%, white);
    border-left-color: #f39c12;
}

.gwp_dayallday_event[eventsource="Group-calendar"] {
    background-color: color-mix(in srgb, #000000 12%, white);
    border-left-color: #000000;
}

.gwp_dayallday_event[eventsource="Personal-calendar"],
.gwp_dayallday_event[eventsource*="Personal-calendar"] {
    background-color: color-mix(in srgb, #e74c3c 10%, white);
    border-left-color: #e74c3c;
}

.gwp_dayallday_event[eventsource="Booking-calendar"] {
    background-color: color-mix(in srgb, #27ae60 10%, white);
    border-left-color: #27ae60;
}

.gwp_dayallday_event[eventsource="Holiday-calendar"] {
    background-color: color-mix(in srgb, #f39c12 10%, white);
    border-left-color: #f39c12;
}

/* Day view current time line */
.gwp_daynowline {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e74c3c;
    pointer-events: none;
}

.gwp_daynowline::before {
    content: '';
    position: absolute;
    left: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e74c3c;
}

.gwp_weekhourline.gwp_hour_empty {
    height: 24px;
}

.gwp_dayhourline.gwp_hour_empty {
    height: 24px;
}

/* Empty time labels shrink to match */
.gwp_weektimeslot.gwp_hour_empty {
    height: 24px;
}

.gwp_daytimeslot.gwp_hour_empty {
    height: 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EVENT ACTION BUTTONS (Week, Day, List views)
   ═══════════════════════════════════════════════════════════════════════════ */

.gwp_ev_actions {
    position: absolute;
    top: 3px;
    right: 3px;
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.15s;
}

.gwp_weekevent:hover .gwp_ev_actions,
.gwp_dayevent:hover .gwp_ev_actions,
.gwp_dayallday_event:hover .gwp_ev_actions,
.gwp_weekallday_event:hover .gwp_ev_actions {
    opacity: 1;
}

.gwp_ev_action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: #666;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.15s, color 0.15s;
    border: 1px solid #e5e7eb;
}

.gwp_ev_action:hover {
    background: #000000;
    color: #fff;
    border-color: #000000;
}

/* Day view has more space — always show actions */
.gwp_dayevent .gwp_ev_actions {
    opacity: 0.6;
}

.gwp_dayevent:hover .gwp_ev_actions {
    opacity: 1;
}

/* Day view actions are slightly bigger */
.gwp_dayevent .gwp_ev_action {
    width: 26px;
    height: 26px;
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOADING SKELETON
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes gwp_shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.gwp_skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: gwp_shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.gwp_skeleton_event {
    height: 18px;
    margin: 2px 4px;
    border-radius: 4px;
}

.gwp_skeleton_block {
    height: 40px;
    margin: 4px;
    border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

@media print {

    .gwp_calheader,
    .gwp_calbuttonbar,
    .gwp_topbuttonbar,
    .gwp_weeknav,
    .gwp_daynav,
    .gwp_expandday,
    .gwp_epbuttons,
    .gwp_weeknowline,
    .gwp_daynowline {
        display: none !important;
    }

    .gwp_calframecontents {
        overflow: visible !important;
        height: auto !important;
    }

    /* Week/day view: let rows expand to fit content */
    #gwp_wframe .gwp_day,
    #gwp_wframe .gwp_dayalt,
    #gwp_wframe .gwp_dayselected,
    #gwp_dframe .gwp_day,
    #gwp_dframe .gwp_dayalt,
    #gwp_dframe .gwp_dayselected {
        height: auto !important;
        min-height: 80px !important;
        page-break-inside: avoid;
    }

    .gwp_weekevent,
    .gwp_dayevent,
    .gwp_weekallday_event,
    .gwp_dayallday_event {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Week/day/list/holiday frames are shown/hidden by JS inline styles.
       Do NOT force them with !important — that overrides JS and makes all
       frames print regardless of which view is active. */
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY — Focus indicators
   ═══════════════════════════════════════════════════════════════════════════ */

.gwp_weekevent:focus-visible,
.gwp_dayevent:focus-visible,
.gwp_weekallday_event:focus-visible,
.gwp_dayallday_event:focus-visible,
.gwp_event:focus-visible,
.gwp_alldayevent:focus-visible,
.gwp_startevent:focus-visible,
.gwp_weekhourline:focus-visible,
.gwp_dayhourline:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Week & Day
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .gwp_weekheader_day {
        padding: 6px 2px;
        font-size: 10px;
    }

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

    .gwp_weektimecol,
    .gwp_weekheader_time {
        width: 36px;
        min-width: 36px;
    }

    .gwp_weekallday_label {
        font-size: 0;
        overflow: hidden;
    }

    .gwp_weekallday_label::after {
        content: '∞';
        font-size: 10px;
        display: block;
    }

    .gwp_weektimeslot,
    .gwp_daytimeslot {
        font-size: 9px;
        padding-right: 4px;
    }

    .gwp_weekevent {
        font-size: 10px;
        padding: 2px 4px;
        border-radius: 4px;
    }

    .gwp_daytimecol {
        width: 36px;
        min-width: 36px;
    }

    .gwp_dayallday {
        padding-left: 44px;
    }

    .gwp_dayevent {
        padding: 4px 8px;
        border-radius: 6px;
    }

    .gwp_dayevent_title {
        font-size: 13px;
    }
}

@media (max-width: 450px) {
    .gwp_weekevent_time {
        display: none;
    }

    .gwp_weekheader_dayname {
        font-size: 8px;
    }

    .gwp_weekheader_daynum {
        font-size: 14px;
    }

    .gwp_weekheader_time,
    .gwp_weektimecol {
        width: 28px;
        min-width: 28px;
    }

    .gwp_weekheader_day.gwp_today .gwp_weekheader_daynum {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 13px;
    }

    .gwp_day,
    .gwp_dayalt,
    .gwp_dayselected {
        height: 46px;
    }

    .gwp_daytimecol {
        width: 28px;
        min-width: 28px;
    }

    .gwp_dayallday {
        padding-left: 36px;
    }
}

/* Day event - title with inline action buttons */
.gwp_dayevent .gwp_dayevent_title {
    display: flex !important;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.gwp_dayevent_btns {
    flex-shrink: 0;
    display: inline-flex !important;
    gap: 2px;
    transition: opacity 0.15s;
}

.gwp_dayevent_btns .gwp_ev_action {
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
}

.gwp_dayevent:hover .gwp_dayevent_btns {
    opacity: 1;
}

/* Staggered overlapping events need right:auto to respect width */
.gwp_dayevent[style*="right:auto"] {
    right: auto !important;
}

/* ═══════════════════════════════════════════════════════════════ */
/* DRAG-TO-RESIZE & DRAG-TO-MOVE                                  */
/* ═══════════════════════════════════════════════════════════════ */

.gwp_drag_resize_handle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    cursor: ns-resize;
    border-radius: 0 0 8px 8px;
    z-index: 5;
    transition: background 0.15s;
}

.gwp_drag_resize_handle:hover,
.gwp_drag_resize_handle:active {
    background: color-mix(in srgb, #000000 30%, transparent);
}

.gwp_drag_resize_handle::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background: transparent;
    transition: background 0.15s;
}

.gwp_drag_resize_handle:hover::after {
    background: #000000;
}

.gwp_weekevent.gwp_dragging,
.gwp_dayevent.gwp_dragging {
    opacity: 0.85;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    cursor: grabbing;
    transition: none;
    z-index: 100 !important;
}

.gwp_weekevent {
    cursor: grab;
}

.gwp_dayevent {
    cursor: grab;
}

/* ═══════════════════════════════════════════════════════════════ */
/* PRINT STYLESHEET                                                */
/* ═══════════════════════════════════════════════════════════════ */

@media print {

    /* Hide everything except the calendar (only when a calendar is on the page) */
    body:has(.gwp_frame)>*:not(.gwp_frame):not(#gwp_frame) {
        display: none !important;
    }

    /* Hide navigation, buttons, toolbars */
    .gwp_topbuttonbar,
    .gwp_navigation,
    .gwp_viewswitcher,
    .gwp_ev_actions,
    .gwp_dayevent_btns,
    .gwp_drag_resize_handle,
    .select_calframe,
    #wpadminbar,
    .gwp_calendarframe_buttons,
    #gwp_calendarframe_viewswitcher,
    .gwp_popup,
    .gwp_evtpopup,
    footer,
    header,
    nav,
    aside,
    .site-header,
    .site-footer,
    .admin-bar #wpadminbar {
        display: none !important;
    }

    /* Full width */
    .gwp_frame,
    #gwp_frame,
    .gwp_calendarframe,
    #gwp_calframecontents,
    #gwp_calendarframe {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* ── Month View Print ── */
    /* The gwp_print_month class is added by beforeprint JS (see calendar.php)
       only when month view is the active view. This prevents these rules from
       interfering with week/day/list view printing. */

    /* #gwp_calframe is the table root: JS prepends #gwp_row0 (header) directly
       inside it, and #gwp_calframecontents > #gwp_cframe > .gwp_row (data) live
       inside it too. Making it a table lets table-header-group repeat correctly. */
    #gwp_calframe.gwp_print_month {
        display: table !important;
        width: 99.9% !important;
        border-collapse: collapse !important;
        table-layout: fixed !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }

    /* Day-name header repeats on every printed page */
    #gwp_calframe.gwp_print_month #gwp_row0,
    #gwp_calframe.gwp_print_month .gwp_rowtitle {
        display: table-header-group !important;
        position: static !important;
        top: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    /* Flatten intermediate wrappers so .gwp_row participates directly in the table */
    #gwp_calframe.gwp_print_month #gwp_calframecontents,
    #gwp_calframe.gwp_print_month #gwp_cframe {
        display: contents !important;
    }

    /* Each week = one explicit table-row, kept together on the page */
    #gwp_calframe.gwp_print_month .gwp_row {
        display: table-row !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    /* All cells as table-cell. */
    #gwp_calframe.gwp_print_month .gwp_ltitle,
    #gwp_calframe.gwp_print_month .gwp_title,
    #gwp_calframe.gwp_print_month .gwp_rtitle,
    #gwp_calframe.gwp_print_month .gwp_day,
    #gwp_calframe.gwp_print_month .gwp_dayalt,
    #gwp_calframe.gwp_print_month .gwp_dayselected {
        display: table-cell !important;
        border: 1px solid #bbb !important;
        box-sizing: border-box !important;
        vertical-align: top !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Header title cells: 1px border instead of 2px.
       These cells live in an anonymous table-row inside table-header-group;
       browsers don't reliably collapse those borders with adjacent explicit rows,
       so 1+1=2px uncollapsed matches the 2px collapsed border of data cells.
       No bottom border — the first data row's top border acts as the separator. */
    #gwp_calframe.gwp_print_month .gwp_ltitle,
    #gwp_calframe.gwp_print_month .gwp_title,
    #gwp_calframe.gwp_print_month .gwp_rtitle {
        border: 1px solid #bbb !important;
        border-bottom: none !important;
    }

    /* Day cells: fixed height to keep all rows the same size */
    #gwp_calframe.gwp_print_month .gwp_day,
    #gwp_calframe.gwp_print_month .gwp_dayalt,
    #gwp_calframe.gwp_print_month .gwp_dayselected {
        height: 190px !important;
        min-height: unset !important;
        overflow: hidden !important;
        background: #fff !important;
    }

    #gwp_calframe.gwp_print_month .gwp_dayselected {
        background: #f0faf8 !important;
    }

    #gwp_calframe.gwp_print_month .gwp_sdevent {
        font-size: 8px !important;
        line-height: 1.2 !important;
        padding: 1px 2px !important;
    }

    /* ── Week View Print ── */
    .gwp_wframe,
    #gwp_wframe {
        overflow: visible !important;
    }

    .gwp_weekbody {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    .gwp_weekheader {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .gwp_weekevent {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        border-left-width: 3px !important;
        font-size: 9px !important;
        cursor: default;
    }

    /* Use border-bottom only — base CSS also has border-bottom, so adding
       border-top on adjacent rows creates a double border at every hour boundary.
       Override all nth-child variants so every row uses the same single line. */
    .gwp_weekhourline,
    .gwp_weekhourline:nth-child(odd) {
        border-top: none !important;
        border-bottom: 1px solid #ddd !important;
    }

    .gwp_weektimeslot span {
        font-size: 9px !important;
    }

    /* Collapse empty hours more aggressively for print */
    .gwp_hour_empty {
        height: 12px !important;
        min-height: 12px !important;
    }

    /* ── Day View Print ── */
    .gwp_dframe,
    #gwp_dframe {
        overflow: visible !important;
    }

    .gwp_daybody {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    .gwp_dayevent {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        border-left-width: 3px !important;
        cursor: default;
    }

    .gwp_dayhourline,
    .gwp_dayhourline:nth-child(odd) {
        border-top: none !important;
        border-bottom: 1px solid #ddd !important;
    }

    /* ── List View Print ── */
    /* Zero out the old print block 1 margin that left a blank gap at the top */
    #gwp_calframe {
        margin-top: 0 !important;
    }

    /* Allow the list frame to break across pages — only individual items avoid breaks */
    #gwp_clframe {
        page-break-inside: auto !important;
    }

    /* Keep each day block (title + its events) together on the same page */
    .gwp_singleday {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    /* ── List view event fix ── */
    /* Print block 1 incorrectly hides span:nth-of-type(2) which is gwp_sdeventtitle.
       Override with equal specificity (0,3,1) so the cascade order decides — block 3
       comes later so these rules win. */
    .gwp_sdevents > .gwp_sdevent span.gwp_sdeventtitle {
        display: inline !important;
        visibility: visible !important;
        color: #333 !important;
    }

    /* Make the " | " raw text node invisible by setting parent color to transparent,
       then restoring color on visible child spans. */
    .gwp_sdevents > .gwp_sdevent {
        visibility: visible !important;
        color: transparent !important;
    }

    /* Hide the edit link — not useful in print */
    .gwp_sdevents > .gwp_sdevent span.gwp_sdedit {
        display: none !important;
    }

    /* Keep the accent dot and calendar icon readable.
       The parent color:transparent hides the " | " text node but also
       inherits to the <i> icon — restore it explicitly. */
    .gwp_sdevents > .gwp_sdevent .gwp_evt_accent,
    .gwp_sdevents > .gwp_sdevent i {
        color: #555 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .gwp_listitem {
        page-break-inside: avoid;
        border: 1px solid #ddd !important;
    }

    /* Month heading injected by beforeprint JS (see calendar.php).
       Left-aligned to match the left edge of list items (which have 16px padding). */
    #gwp_print_list_header {
        font-size: 20px;
        font-weight: 700;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 0 0 8px 16px;
        margin-bottom: 8px;
    }

    /* ── Holiday View Print ── */
    .gwp_hframe,
    #gwp_hframe {
        overflow: visible !important;
    }

    .gwp_hevent {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* ── General Print ── */
    .gwp_dayviewheader,
    .gwp_dayviewtitle {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Current time indicator - hide for print */
    .gwp_weeknowline,
    .gwp_daynowline {
        display: none !important;
    }

    /* Make event colors visible in print */
    .gwp_weekevent[eventsource],
    .gwp_dayevent[eventsource],
    .gwp_weekallday_event[eventsource],
    .gwp_dayallday_event[eventsource] {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Remove hover/interaction states */
    .gwp_weekevent:hover,
    .gwp_dayevent:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    /* Ensure scrollable containers expand for print */
    #gwp_calframecontents {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    /* Page setup — only for calendar pages */
    .gwp_frame,
    #gwp_frame {
        page: calendar-landscape;
    }
}

@page calendar-landscape {
    margin: 1cm;
    size: landscape;
}

@page gwp-list-portrait {
    margin: 1cm;
    size: portrait;
}

/* Rota person link - clickable names */
.gwp_rota_person_link {
    cursor: pointer;
    transition: color 0.15s;
}

.gwp_rota_person_link:hover {
    color: var(--accent1);
    text-decoration: underline;
}

/* Rota member filter banner */
.gwp_rota_member_filter_banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 12px;
    background: #f0f7ff;
    border: 1px solid #d0e3f7;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
}

.gwp_rota_member_filter_banner i {
    font-size: 18px;
    color: var(--accent1);
}

.gwp_rota_focus_btn {
    margin-left: auto;
    cursor: pointer;
    color: #9ca3af;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.gwp_rota_focus_btn:hover {
    color: var(--accent1);
    background: #f0f7ff;
}

.gwp_rota_person_card_name {
    display: flex;
    align-items: center;
}

/* ─── Ticket Sales Overview ─── */
.gwp_tv_summary { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.gwp_tv_card { flex: 1; min-width: 120px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px 16px; text-align: center; }
.gwp_tv_card_val { font-size: 22px; font-weight: 700; color: #1f2937; }
.gwp_tv_card_label { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.gwp_tv_card_warn { border-color: #fbbf24; }
.gwp_tv_card_warn .gwp_tv_card_val { color: #d97706; }
.gwp_tv_breakdown { margin-bottom: 12px; }
.gwp_tv_type_badge { display: inline-block; background: #f3f4f6; color: #374151; font-size: 12px; padding: 3px 10px; border-radius: 12px; margin-right: 6px; margin-bottom: 4px; }
.gwp_tv_filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.gwp_tv_filter_input { flex: 1; min-width: 160px; padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; }
.gwp_tv_filter_select { padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; background: #fff; }
.gwp_tv_export_btn { padding: 7px 14px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; background: #fff; cursor: pointer; color: #374151; display: flex; align-items: center; gap: 4px; }
.gwp_tv_export_btn:hover { background: #f9fafb; }
.gwp_tv_table_wrap { overflow-x: auto; }
.gwp_tv_table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gwp_tv_table th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; color: #6b7280; padding: 8px 10px; border-bottom: 2px solid #e5e7eb; white-space: nowrap; }
.gwp_tv_table td { padding: 8px 10px; border-bottom: 1px solid #f3f4f6; }
.gwp_tv_table tbody tr:hover { background: #f9fafb; }
.gwp_tv_badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.gwp_tv_badge_paid { background: #d1fae5; color: #065f46; }
.gwp_tv_badge_pending { background: #fef3c7; color: #92400e; }
.gwp_tv_badge_balance { background: #fed7aa; color: #9a3412; }
.gwp_tv_badge_credit { background: #dbeafe; color: #d62e00; }
.gwp_tv_badge_none { color: #d1d5db; }
/* ── Ticket Management Styles (shared with form popup ticket tab) ── */

/* Buttons */
.gwp_tk_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  transition: all 0.15s;
  user-select: none;
}
.gwp_tk_btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.gwp_tk_btn_primary {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}
.gwp_tk_btn_primary:hover {
  background: #4f46e5;
  border-color: #4f46e5;
}

/* Search */
.gwp_tk_search_input_wrap {
  position: relative;
  flex: 1;
}
.gwp_tk_search_input_wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
}
.gwp_tk_search_input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #334155;
  background: #fff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}
.gwp_tk_search_input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.12);
}

/* Detail View */
.gwp_tk_detail_wrap {
  padding: 20px;
}
.gwp_tk_detail_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.gwp_tk_detail_header_actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Summary Cards */
.gwp_tk_summary_cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.gwp_tk_summary_card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.gwp_tk_summary_icon {
  font-size: 22px;
  color: #6366f1;
  margin-bottom: 4px;
}
.gwp_tk_summary_val {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}
.gwp_tk_summary_label {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Filter Bar */
.gwp_tk_filter_bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}
.gwp_tk_filter_select {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #475569;
  background: #fff;
  cursor: pointer;
  outline: none;
  min-width: 140px;
}
.gwp_tk_filter_select:focus {
  border-color: #6366f1;
}

/* Table */
.gwp_tk_table_wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.gwp_tk_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.gwp_tk_table thead {
  background: #f8fafc;
}
.gwp_tk_table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid #e2e8f0;
}
.gwp_tk_table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}
.gwp_tk_th_num { width: 40px; }
.gwp_tk_th_amount { width: 90px; }
.gwp_tk_th_status { width: 120px; }
.gwp_tk_td_num { color: #94a3b8; font-size: 12px; }
.gwp_tk_td_name { font-weight: 600; }
.gwp_tk_row {
  transition: background 0.1s;
}
.gwp_tk_row:hover {
  background: #f8fafc;
}

/* Type badge */
.gwp_tk_type_badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  background: #ede9fe;
  color: #6366f1;
  font-size: 12px;
  font-weight: 600;
}

/* Status badges */
.gwp_tk_status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}
.gwp_tk_status_checked {
  background: #dcfce7;
  color: #16a34a;
}
.gwp_tk_status_pending {
  background: #f1f5f9;
  color: #94a3b8;
}
.gwp_tk_status_refunded {
  background: #fef2f2;
  color: #ef4444;
}
.gwp_tk_status_clickable {
  cursor: pointer;
  transition: all 0.15s;
}
.gwp_tk_status_clickable:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* Booker column */
.gwp_tk_td_booker {
  vertical-align: top;
  border-right: 2px solid #e2e8f0;
  background: #fafbfc;
}
.gwp_tk_booker_name {
  font-weight: 600;
  color: #1e293b;
  font-size: 13px;
  line-height: 1.3;
}
.gwp_tk_booker_email {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}
.gwp_tk_booker_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
}

/* First row in a submission group */
.gwp_tk_row_first td {
  border-top: 2px solid #e2e8f0;
}

/* Action buttons */
.gwp_tk_action_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s;
  font-size: 15px;
}
.gwp_tk_action_btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

/* Ticket Code column */
.gwp_tk_col_code {
  white-space: nowrap;
}
.gwp_tk_td_code {
  font-size: 12px;
}
.gwp_tk_code_text {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

/* Column settings dropdown */
.gwp_tk_col_settings {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  min-width: 170px;
}
.gwp_tk_col_option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.1s;
  user-select: none;
}
.gwp_tk_col_option:hover {
  background: #f1f5f9;
}
.gwp_tk_col_option input[type="checkbox"] {
  accent-color: #6366f1;
  width: 14px;
  height: 14px;
}

/* Checkbox column (multi-select mode) */
.gwp_tk_th_check {
  width: 36px;
  text-align: center;
}
.gwp_tk_td_check {
  text-align: center;
  vertical-align: middle;
}
.gwp_tk_checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #6366f1;
}

/* Bulk action bar */
.gwp_tk_bulk_bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #ede9fe;
  border: 1px solid #c4b5fd;
  border-radius: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* Empty row */
.gwp_tk_empty_row {
  text-align: center;
  padding: 40px 20px !important;
  color: #94a3b8;
  font-size: 14px;
}

/* Scanner Modal */
.gwp_tk_scanner_overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gwp_tk_scanner_modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.gwp_tk_scanner_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.gwp_tk_scanner_title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gwp_tk_scanner_title i {
  font-size: 20px;
  color: #6366f1;
}
.gwp_tk_scanner_header_actions {
  display: flex;
  gap: 6px;
}
.gwp_tk_scanner_body {
  padding: 20px;
}
.gwp_tk_scanner_reader {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  min-height: 200px;
  background: #f8fafc;
  width: 100%;
}
.gwp_tk_scanner_reader video {
  border-radius: 12px;
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
}
.gwp_tk_scanner_manual {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.gwp_tk_scanner_manual .gwp_tk_search_input {
  flex: 1;
}

/* Scan log */
.gwp_tk_scan_log {
  max-height: 300px;
  overflow-y: auto;
}
.gwp_tk_scan_log_empty {
  text-align: center;
  padding: 20px;
  color: #94a3b8;
  font-size: 13px;
}
.gwp_tk_scan_entry {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.gwp_tk_scan_success {
  background: #dcfce7;
  color: #16a34a;
}
.gwp_tk_scan_fail {
  background: #fef2f2;
  color: #ef4444;
}
.gwp_tk_scan_warn {
  background: #fef9c3;
  color: #b45309;
}
.gwp_tk_scan_entry i {
  font-size: 18px;
}
.gwp_tk_scan_code {
  font-family: monospace;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.gwp_tk_scan_time {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.7;
}

/* Responsive - ticket tab in popup */
@media (max-width: 768px) {
  .gwp_tk_summary_cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .gwp_tk_detail_header {
    flex-direction: column;
  }
  .gwp_tk_detail_header_actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .gwp_tk_filter_bar {
    flex-direction: column;
  }
  .gwp_tk_filter_select {
    width: 100%;
  }
  .gwp_tk_table_wrap {
    overflow-x: auto;
  }
  .gwp_tk_table {
    min-width: 600px;
  }
}
@media (max-width: 480px) {
  .gwp_tk_summary_cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   POLLS IN MEDIA LIBRARY
   ============================================================ */
.gwp_lib_recent_icon.poll {
    background: #eef2ff;
    color: #6366f1
}
.gwp_poll_media_box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f46e5 0%, #F9D423 100%);
}
.gwp_poll_media_icon {
    font-size: 36px;
    color: #fff;
}
.gwp_poll_media_status {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.gwp_poll_media_status_draft {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.gwp_poll_media_status_active {
    background: #22c55e;
    color: #fff;
}
.gwp_poll_media_status_closed {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
}
.gwp_poll_media_group,
.gwp_poll_media_code {
    font-size: 11px;
    color: #888;
    padding: 0 8px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gwp_poll_media_group i,
.gwp_poll_media_code i {
    margin-right: 3px;
}
.gwp_poll_media_actions {
    display: flex;
    gap: 2px;
    padding: 4px 6px 6px;
    justify-content: center;
    flex-wrap: wrap;
}
.gwp_poll_media_btn {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.15s;
}
.gwp_poll_media_btn:hover {
    background: #f3f4f6;
    color: #111;
}
.gwp_poll_media_btn_present:hover {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}
.gwp_poll_media_btn_display:hover {
    background: #8b5cf6;
    color: #fff;
    border-color: #8b5cf6;
}
.gwp_poll_media_btn_delete:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* Album item remove button */
.gwp_alb_item_remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    z-index: 2;
}
.gwp_mediaitem:hover .gwp_alb_item_remove {
    display: flex;
}
.gwp_alb_item_remove:hover {
    background: #dc2626;
}
.gwp_alb_cloud_badge {
    position: absolute;
    bottom: 22px;
    right: 4px;
    background: rgba(255,255,255,0.9);
    border-radius: 4px;
    padding: 1px 4px;
    font-size: 11px;
    color: #4285f4;
    z-index: 2;
}

/* ── Relay Services ──────────────────────── */

.gwp_relay_section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.gwp_relay_header {
    background: #f9fafb;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gwp_relay_header i {
    font-size: 18px;
    opacity: 0.5;
}

.gwp_relay_body {
    padding: 14px 16px;
}

.gwp_relay_option {
    padding: 6px 0;
}

.gwp_relay_option label {
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.gwp_relay_option input[type="radio"] {
    margin-top: 2px;
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s;
}
.gwp_relay_option input[type="radio"]:checked {
    border-color: var(--accent1, #F83600);
    background: radial-gradient(circle, var(--accent1, #F83600) 45%, transparent 46%);
}
.gwp_relay_option input[type="radio"]:focus-visible {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent1, #F83600) 30%, transparent);
}

.gwp_relay_status {
    margin-top: 8px;
    font-size: 12px;
    color: #8c8f94;
}

.gwp_relay_ws_card {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    background: #fafafa;
}

.gwp_relay_ws_card_title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gwp_relay_ws_card_title i {
    font-size: 16px;
    opacity: 0.5;
}

/* ── Hide reCAPTCHA badge on backend pages (only show on frontend forms) ── */
.grecaptcha-badge { visibility: hidden !important; }

/* ── File browser: mobile sidebar dropdowns ── */
.gwp_fb_mobile_controls {
    display: none;
}
.gwp_fb_mobile_select_wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.gwp_fb_mobile_select_wrap i {
    color: #6b7280;
    font-size: 14px;
    flex-shrink: 0;
}
.gwp_fb_mobile_select {
    flex: 1;
    min-width: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 13px;
    background: #fff;
    color: #374151;
    appearance: auto;
}

/* ── File browser: desktop/mobile visibility ── */
.gwp_fb_mobile_only { display: none !important; }
.gwp_fb_desktop_only { display: inline; }

/* ── File browser: hide side preview panel (using popup modal instead) ── */
#gwp_flb_preview { display: none !important; }

@media (max-width: 768px) {
    .gwp_fb_mobile_only { display: inline-flex !important; }
    .gwp_fb_desktop_only { display: none !important; }
    .gwp_fb_search_desktop { display: none !important; }

    /* Replace sidebar with dropdown controls */
    .gwp_fb_sidebar {
        padding: 8px 12px;
        overflow-x: unset;
        flex-wrap: wrap;
        gap: 8px;
    }
    .gwp_fb_sidebar_item { display: none; }
    .gwp_fb_mobile_controls {
        display: flex;
        gap: 8px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .gwp_nav_search_desktop { display: none !important; }
    .gwp_nav_search_mobile_btn { display: inline-flex !important; }
}

@media (max-width: 768px) {
    .gwp_fb_viewbtn:not(.gwp_fb_mobile_only) { display: none !important; }
    .gwp_fb_sortbtn { display: none !important; }
    #gwp_flb_preview { display: none !important; border: none !important; }
}

/* ── Media nav: mobile ellipsis more menu ── */
.gwp_med_mobile_only { display: none !important; }
.gwp_med_desktop_only { display: inline-flex !important; }
.gwp_med_more_item {
    padding: 10px 16px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.gwp_med_more_item:hover { background: #f3f4f6; }
.gwp_med_more_item i { font-size: 15px; color: #6b7280; }

/* ── Fix mobile sidebar dropdowns overflowing ── */
.gwp_fb_mobile_controls {
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}
.gwp_fb_mobile_select_wrap {
    min-width: 0;
    overflow: hidden;
}
.gwp_fb_mobile_select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .gwp_med_mobile_only { display: inline-flex !important; }
    .gwp_med_desktop_only { display: none !important; }
    .gwp_nav_search_desktop { display: none !important; }
}

@media (max-width: 768px) {
    .gwp_notification-wrapper { display: none !important; }
}

@media (max-width: 768px) {
    #gwp_mediasettingswrap .gwp_topbutton.la-ellipsis-v,
    #gwp_mediasettingswrap i.la-ellipsis-v {
        margin: 0;
        padding: 0;
        width: 12px;
        min-width: 0;
        overflow: hidden;
        font-size: 20px;
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .gwp_topbuttonbar { gap: 0; }
    #gwp_mediasettingswrap { padding-right: 6px; }
}

@media (max-width: 768px) {
    .gwp_fb_sidebar { padding: 6px 8px; }
    .gwp_fb_mobile_controls { width: calc(100% - 16px); max-width: calc(100vw - 16px); }
    .gwp_fb_mobile_select_wrap { flex: 1 1 0; min-width: 0; max-width: 50%; }
    .gwp_fb_mobile_select { width: 100%; max-width: 100%; font-size: 12px; padding: 5px 4px; }
    .gwp_fb_mobile_select_wrap i { display: none; }
}

/* ── Breadcrumb: full path on desktop, root+current on mobile ── */
.gwp_fb_toolbar .gwp_fb_breadcrumb {
    overflow: visible;
    white-space: normal;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .gwp_fb_crumb_mid { display: none !important; }
}
@media (min-width: 769px) {
    .gwp_fb_crumb_mid { display: inline !important; }
}

/* ── File browser: back button ── */
.gwp_fb_back_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    font-size: 13px;
    padding: 3px 7px;
    margin-right: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.gwp_fb_back_btn:hover { background: #f3f4f6; color: #374151; }


/* ── Modern chat settings panel ──────────────────────────────────────────── */
.gwp_ms_modern_panel {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.gwp_msp_section {
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.gwp_msp_section:last-child { border-bottom: none; }

/* Section header row */
.gwp_msp_sh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.gwp_msp_st {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}
.gwp_msp_count {
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 600;
}

/* Pill action buttons (Add person / Add group) */
.gwp_msp_pill_btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--swp-primary, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
    flex-shrink: 0;
}
.gwp_msp_pill_btn:hover { opacity: .85; }

/* Inline picker */
.gwp_msp_picker {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}
.gwp_msp_picker_search_wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
}
.gwp_msp_picker_icon { color: #9ca3af; font-size: 15px; flex-shrink: 0; }
.gwp_msp_picker_search {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    outline: none;
    color: #111827;
}
.gwp_msp_picker_list {
    max-height: 180px;
    overflow-y: auto;
}
.gwp_msp_picker_item {
    padding: 9px 14px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: background .1s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.gwp_msp_picker_item:hover { background: #eff6ff; color: #1d4ed8; }
.gwp_msp_picker_email { font-size: 11px; color: #9ca3af; margin-left: 4px; }
.gwp_msp_picker_empty { padding: 10px 14px; font-size: 13px; color: #9ca3af; }

/* Member rows */
.gwp_msp_members_list { display: flex; flex-direction: column; gap: 2px; }
.gwp_msp_member_row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    border-radius: 8px;
    transition: background .12s;
}
.gwp_msp_member_row:hover { background: rgba(0,0,0,.03); }
.gwp_msp_avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: .03em;
}
.gwp_msp_member_info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.gwp_msp_member_name {
    font-size: 13px;
    font-weight: 600;
    color: var(--swp-text, #111827);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gwp_msp_member_email {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gwp_msp_role_chip {
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 7px;
    letter-spacing: .04em;
    text-transform: uppercase;
    flex-shrink: 0;
}
.gwp_msp_role_admin  { background: rgba(245,158,11,.15); color: #d97706; }
.gwp_msp_role_member { background: rgba(107,114,128,.12); color: #6b7280; }
.gwp_msp_action_btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 16px;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .12s, color .12s;
    line-height: 1;
    flex-shrink: 0;
}
.gwp_msp_action_btn:hover { background: rgba(0,0,0,.06); color: #374151; }
.gwp_msp_empty { font-size: 13px; color: #9ca3af; padding: 2px 4px; }

/* Context menu */
.gwp_msp_ctx_menu {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.13);
    min-width: 190px;
    z-index: 99999;
    overflow: hidden;
}
.gwp_msp_menu_item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: background .1s;
}
.gwp_msp_menu_item i { font-size: 15px; }
.gwp_msp_menu_item:hover { background: #f9fafb; }
.gwp_msp_menu_danger { color: #ef4444; }
.gwp_msp_menu_danger:hover { background: #fef2f2; }

/* Groups */
.gwp_msp_groups_row { display: flex; flex-wrap: wrap; gap: 7px; }
.gwp_msp_group_chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59,130,246,.1);
    color: #3b82f6;
    border-radius: 20px;
    padding: 5px 10px 5px 12px;
    font-size: 12px;
    font-weight: 600;
}
.gwp_msp_chip_remove {
    background: none;
    border: none;
    color: #93c5fd;
    cursor: pointer;
    padding: 0 2px;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color .12s;
}
.gwp_msp_chip_remove:hover { color: #1d4ed8; }

/* Channel row */
.gwp_msp_channel_row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 4px 0;
}
.gwp_msp_channel_row i { font-size: 20px; }

/* Danger zone */
.gwp_msp_danger_section { padding-top: 12px; }
.gwp_msp_delete_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid rgba(239,68,68,.35);
    color: #ef4444;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.gwp_msp_delete_btn:hover { background: rgba(239,68,68,.07); border-color: #ef4444; }

/* =============================================
   CHAT UI ENHANCEMENTS
   ============================================= */

/* 1. Chat background — subtle dot pattern wash on the message list only
   (not the settings tab — popupcontent wraps both tabs so we target postmessages) */
/* Chat background lives on the whole popup body — shows behind header, content, buttons */
#gwp_message .gwp_popupbody {
    background-color: #f0ece8;
    background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Header: transparent so popup background shows through; spacing only in split-pane */
body.gwp_splitpane_active #gwp_message .gwp_popupheader {
    margin-top: 6px;
    z-index: 1;
}

/* Separator below filter bar, before the message list */
#gwp_message .gwp_chat_filter_area {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* popupcontent transparent — pattern shows through the message list */
#gwp_message_popupcontent {
    background: transparent;
}

/* Compose bar: transparent, just a subtle separator */
#gwp_message .gwp_popupbuttons {
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* 2. Emoji button */
.gwp_msgcompose_emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.12s, background 0.12s;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}
.gwp_msgcompose_emoji:hover { color: #f59e0b; background: #fef3c7; }

/* Emoji picker container — position:fixed so it floats above the scrollable
   popupcontent without being clipped by overflow:auto on the parent */
.gwp_emoji_picker {
    display: none;
    position: fixed;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 10px;
    width: 280px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 100001; /* above WP admin bar (99999) */
    flex-wrap: wrap;
    gap: 2px;
}
.gwp_emoji_picker.gwp_ep_open { display: flex; }
.gwp_ep_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.1s;
    flex-shrink: 0;
    font-size: 22px;
    line-height: 1;
}
/* WP twemoji converts emoji textContent → <img class="emoji">; force visible size */
.gwp_ep_btn img,
.gwp_ep_btn img.emoji {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    vertical-align: unset !important;
    pointer-events: none;
}
.gwp_ep_btn:hover { background: #f3f4f6; }

/* 3. Unread divider — inline "N unread messages" rule */
.gwp_unread_divider {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    margin: 10px 0 4px;
    color: var(--accent1);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gwp_unread_divider::before,
.gwp_unread_divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: color-mix(in srgb, var(--accent1) 30%, transparent);
}

/* 4. Sidebar — unread count badge */
.gwp_msg_unread_count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--accent1);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    animation: gwp_badge_pop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes gwp_badge_pop {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* Sidebar item has unread — bold title + preview */
.gwp_msg_item.gwp_msg_has_unread .gwp_msg_title { font-weight: 700; }
.gwp_msg_item.gwp_msg_has_unread .gwp_msg_preview { color: #444; font-weight: 500; }

/* 5. Sidebar — online dot */
.gwp_msg_icon_wrap {
    position: relative;
    flex-shrink: 0;
}
.gwp_msg_online_dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
    box-sizing: border-box;
}

/* 6. Empty conversation state — enhanced */
.gwp_chat_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    color: #bbb;
    text-align: center;
    flex: 1;
    gap: 0;
}
.gwp_chat_empty_icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 34px;
    color: #ccc;
}
.gwp_chat_empty i {
    font-size: 34px;
    color: #ccc;
    margin-bottom: 16px;
}
.gwp_chat_empty p {
    font-size: 16px;
    font-weight: 600;
    color: #999;
    margin: 0 0 6px;
}
.gwp_chat_empty span {
    font-size: 13px;
    color: #bbb;
    line-height: 1.5;
    max-width: 220px;
}

/* 7. Message status ticks — read (blue) */
.gwp_msg_status_read {
    color: #60a5fa;
}
/* delivered: slightly more opaque white vs sent */
.gwp_msg_status_delivered {
    color: rgba(255,255,255,0.85);
}

/* 8. Link/URL preview card */
.gwp_link_preview {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    text-decoration: none;
    transition: background 0.12s;
    max-width: 280px;
}
.gwp_link_preview:hover { background: rgba(0,0,0,0.09); }
.gwp_link_preview_accent {
    width: 3px;
    background: var(--accent1);
    flex-shrink: 0;
}
.gwp_link_preview_body {
    padding: 8px 10px;
    min-width: 0;
    flex: 1;
}
.gwp_link_preview_domain {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--accent1);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gwp_link_preview_title {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}
.gwp_mymessage .gwp_link_preview { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); }
.gwp_mymessage .gwp_link_preview:hover { background: rgba(255,255,255,0.22); }
.gwp_mymessage .gwp_link_preview_accent { background: rgba(255,255,255,0.6); }
.gwp_mymessage .gwp_link_preview_domain { color: rgba(255,255,255,0.8); }
.gwp_mymessage .gwp_link_preview_title { color: #fff; }

/* Settings button in channel filter bar */
.gwp_filter_settings_btn {
    margin-left: auto;
    padding: 5px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    color: #555;
    transition: background 0.12s, color 0.12s;
}
.gwp_filter_settings_btn:hover {
    background: #f0f0f0;
    color: #333;
}
.gwp_filter_settings_btn.gwp_filter_active {
    background: #555;
    color: #fff;
    border-color: #555;
}

/* ── Custom chat popup type ────────────────────────────────────────────── */
/* Tab bar is hidden via inline style="display:none" so gwp_open_popup strict equality
   check (_tc === "gwp_popup_tabsalt") passes — no extra class needed */

/* Settings cog — mirrors close button, positioned to its left */
#gwp_message .gwp_chat_cog {
    position: absolute;
    top: 15px;
    right: 57px; /* 15px + 36px close + 6px gap */
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 17px;
    color: #6b7280;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}
#gwp_message .gwp_chat_cog:hover {
    background: #eff6ff;
    color: #3b82f6;
}
#gwp_message .gwp_chat_cog.gwp_chat_cog_active {
    background: #eff6ff;
    color: #2563eb;
}

/* Read-only channel label chip (single-channel threads) */
.gwp_chat_channel_label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    background: #f0f0f0;
    color: #555;
    border: 1px solid #e0e0e0;
    cursor: default;
    user-select: none;
}
.gwp_chat_channel_label .gwp_filter_count {
    background: rgba(0,0,0,0.08);
    color: inherit;
    border-radius: 10px;
    padding: 0 5px;
    font-size: 11px;
}
.gwp_chat_channel_label_server   { background: rgba(127,140,141,0.1); color: #596270; border-color: rgba(127,140,141,0.25); }
.gwp_chat_channel_label_whatsapp { background: rgba(37,211,102,0.1);  color: #128c7e; border-color: rgba(37,211,102,0.25); }
.gwp_chat_channel_label_sms      { background: rgba(52,152,219,0.1);  color: #2980b9; border-color: rgba(52,152,219,0.25); }

/* Filter area sits between header and scrollable content — never scrolls away */
.gwp_chat_filter_area {
    flex-shrink: 0;
    padding: 6px 0 0;
}
.gwp_chat_filter_bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 0;
    align-items: center;
}

/* Chat header: title + action icons + close */
.gwp_chat_header {
    display: flex;
    align-items: center;
    gap: 6px;
}
.gwp_chat_header_actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

/* Gear settings button in chat header */
.gwp_chat_header_settings_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #aaa;
    font-size: 17px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    padding: 0;
    flex-shrink: 0;
}
.gwp_chat_header_settings_btn:hover {
    background: rgba(0,0,0,0.06);
    color: #555;
}
.gwp_chat_header_settings_btn.gwp_chat_settings_active {
    background: rgba(0,0,0,0.08);
    color: #333;
}

/* ── DnD drop zone visuals ───────────────────────────────────── */
.gwp_pbcollist .gwp_fill {
    min-height: 36px;
    background: rgba(99,102,241,0.07);
    border: 2px dashed var(--accent1, #6366f1);
    border-radius: 5px;
    margin: 4px 0;
    box-sizing: border-box;
}

.gwp_pbcollist .hoverover {
    background: rgba(99,102,241,0.12) !important;
    border: 2px dashed var(--accent1, #6366f1) !important;
    border-radius: 5px !important;
    margin: 4px 0 !important;
    min-height: 32px !important;
    box-sizing: border-box;
}

/* ── Gantt chart ─────────────────────────────────────────────── */
.gwp_gantt {
    overflow-x: auto;
    padding: 8px 0;
    min-height: 200px;
}

.gwp_gantt_chart {
    min-width: 500px;
    font-size: 13px;
}

.gwp_gantt_header {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 4px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.gwp_pb_drophere {
    display: block;
    min-height: 36px;
    margin: 5px 0;
    border: 2px dashed var(--accent1, #6366f1);
    border-radius: 6px;
    background: rgba(99,102,241,0.05);
    box-sizing: border-box;
    pointer-events: none;
    opacity: 0.8;
}

.gwp_pb_dragging_ghost {
    opacity: 0.35;
    pointer-events: none;
}

.gwp_gantt_row,
.gwp_gantt_header {
    display: flex;
    align-items: stretch;
    min-height: 48px;
}

.gwp_gantt_row:hover {
    background: #f9fafb;
    border-radius: 4px;
}

.gwp_gantt_row_label {
    flex: 0 0 200px;
    min-width: 200px;
    max-width: 200px;
    padding: 6px 10px;
    font-size: 14px;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-self: center;
    border-right: 1px solid #e5e7eb;
}

.gwp_gantt_header .gwp_gantt_row_label {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #9ca3af;
}

.gwp_gantt_timeline {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    overflow: hidden;
}

.gwp_gantt_months {
    display: flex;
    width: 100%;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.gwp_gantt_month {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
    padding: 4px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-right: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.gwp_gantt_bar_wrap {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.gwp_gantt_bar {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    cursor: default;
    min-width: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.gwp_gantt_bar.gwp_gantt_overdue {
    opacity: 0.7;
    text-decoration: line-through;
}

.gwp_gantt_bar.gwp_gantt_checked {
    opacity: 0.55;
}

.gwp_gantt_today_line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent1, #6366f1);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.gwp_gantt_today_label {
    position: absolute;
    top: 2px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent1, #6366f1);
    letter-spacing: 0.3px;
    pointer-events: none;
    z-index: 1;
    transform: translateX(-50%);
}

.gwp_gantt_undated_header {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #9ca3af;
    padding: 14px 10px 6px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.gwp_gantt_undated_bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    border-left: 3px solid #d1d5db;
    white-space: nowrap;
}

.gwp_gantt_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #9ca3af;
    gap: 8px;
    font-size: 13px;
}

.gwp_gantt_empty i {
    font-size: 32px;
}
