/* 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////*/
/*//////////////////*/
.swp_inline {
    display: inline;
}

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

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

.swp_float-right {
    float: right;
}

.swp_float-left {
    float: left;
}

.swp_block {
    display: block;
}


/* content holder*/
.swp_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;}
}*/



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

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

.swp_accountframe {
    margin-top: 20px;
}

.swp_mediaframe {
    margin-top: 20px;
}

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

.swp_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;*/
}

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

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

/*.swp_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;
}*/

.swp_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;
}

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

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

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

.swp_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;
}

.swp_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;
}

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

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

.swp_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;
}

.swp_topbuttonbar:after {
    display: none;
}

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

.swp_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;
}

.swp_basictopbuttonbar:after {
    display: none;
}

.swp_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;
}

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

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

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

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


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

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

.swp_fasearch {
    margin-left: 5px;
}

.swp_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;
}

.swp_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;
}

.swp_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;
}

.swp_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;
}

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

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

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

.swp_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;
}

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

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

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

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

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

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

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


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

/* No Resuls */
.swp_nrframe {
    height: 100vh;
}

.swp_noresults {
    margin: auto;
    width: 50%;
    border: 3px solid black;
    padding: 10px;
    margin-top: 50px;
    text-align: center;
}

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

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

.swp_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;
}

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

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

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

.swp_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%);
}

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

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

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

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

.swp_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;
}

.swp_chosenmedia {
    display: inline-block;
}

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

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

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

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

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

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

.swp_formitem {
    margin-top: 10px;
}

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

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

/* dropdown More */
.swp_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 */
.swp_overlay[style*="width: 100%"],
.swp_overlay[style*="width:100%"],
.swp_overlay[style*="display: block"],
.swp_overlay[style*="display:block"] {
    pointer-events: auto;
}

@keyframes swp_showmoverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.4;
    }
}

.swp_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;
}

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

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

/* Prevent overlay from inheriting pointer cursor */
.swp_dropdown .swp_overlay {
    cursor: default;
}

.swp_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;
}

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

.swp_printform {
    margin-bottom: 0px;
}

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

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

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

.swp_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;
}

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

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

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

.swp_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: swp_shownav 250ms ease-out both;
}

.swp_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;
}

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

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

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

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

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

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

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

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

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


.swp_dropdown-additem {
    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 */
#swp_addtb,
#swp_calviewwrap,
#swp_calmorewrap,
#swp_mediasettingswrap {
    position: relative;
    display: inline-block;
}

/* Navbar overlay — covers page below the topbar to block interaction */
.swp_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 */
#swp_addtb.swp_navactive,
#swp_calviewwrap.swp_navactive,
#swp_calmorewrap.swp_navactive {
    background-color: #ffffff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 4px 8px;
    margin: -4px -8px;
}

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

.swp_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);
}



.swp_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;
}

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


.swp_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;
}

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

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

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



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

.swp_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;
}

.swp_dropdown-addnotification>.swp_notif_card:hover {
    background: #f8f9fa;
}



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

*.icon-grey {
    color: grey
}


/* Notification badge */
.swp_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 */
.swp_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;
}
.swp_notif_header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}
.swp_notif_actions {
    display: flex;
    gap: 4px;
}
.swp_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;
}
.swp_notif_actions button:hover {
    background: #f0f2f5;
    color: var(--accent1);
}
.swp_notif_actions button i {
    font-size: 16px;
}

/* Notification card */
.swp_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;
}
.swp_notif_card:last-child {
    border-bottom: none;
}
.swp_notif_card.swp_notif_unread {
    background: #f0f7ff;
    border-left: 3px solid var(--accent1);
    padding-left: 13px;
}
.swp_notif_card.swp_notif_read {
    background: #fff;
    border-left: 3px solid transparent;
    padding-left: 13px;
    opacity: 0.75;
}
.swp_notif_card.swp_notif_read:hover {
    opacity: 1;
}

/* Origin icon */
.swp_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;
}
.swp_notif_icon.swp_ni_calendar { background: #3498db; }
.swp_notif_icon.swp_ni_library { background: #9b59b6; }
.swp_notif_icon.swp_ni_schedule { background: #e67e22; }
.swp_notif_icon.swp_ni_members { background: #27ae60; }
.swp_notif_icon.swp_ni_messages { background: #1abc9c; }
.swp_notif_icon.swp_ni_groups { background: #2980b9; }
.swp_notif_icon.swp_ni_rota { background: #8e44ad; }
.swp_notif_icon.swp_ni_database { background: #34495e; }
.swp_notif_icon.swp_ni_broadcasts { background: #e74c3c; }
.swp_notif_icon.swp_ni_notes { background: #f39c12; }
.swp_notif_icon.swp_ni_attendance { background: #16a085; }
.swp_notif_icon.swp_ni_lists { background: #9b59b6; }
.swp_notif_icon.swp_ni_documents { background: #2c3e50; }
.swp_notif_icon.swp_ni_projects { background: #d35400; }
.swp_notif_icon.swp_ni_curriculum { background: #27ae60; }
.swp_notif_icon.swp_ni_default { background: #95a5a6; }

/* Notification body */
.swp_notif_body {
    flex: 1;
    min-width: 0;
}
.swp_notif_message {
    font-size: 13px;
    line-height: 1.4;
    color: #2c3e50;
    word-wrap: break-word;
}
.swp_notif_message b, .swp_notif_message strong {
    font-weight: 600;
}
.swp_notif_meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 11px;
    color: #95a5a6;
}
.swp_notif_time {
    white-space: nowrap;
}
.swp_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) */
.swp_notif_card_actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}
.swp_notif_card:hover .swp_notif_card_actions {
    opacity: 1;
}
.swp_notif_card_actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 14px;
    color: #95a5a6;
    line-height: 1;
}
.swp_notif_card_actions button:hover {
    background: #e8ecf0;
    color: #2c3e50;
}

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

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


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


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

/*Edit moretoggle Button*/
.swp_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;
}

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

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

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

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

/*////////////////////*/
/*///TopicFields/////*/
/*//////////////////*/
.swp_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;
}

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

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

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

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

.swp_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;
}

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

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

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

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

/*////////////////////*/
/*/Duration Fields///*/
/*//////////////////*/
.swp_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;
}

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

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

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

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

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

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

.swp_scheduleprogramme {
    display: block;
}

.swp_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;
}

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

.swp_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;
}

.swp_srlen {
    width: 100%;
}

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

.swp_items {
    width: 100%;
}

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

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

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

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

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

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

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

.swp_sspace {
    height: 16px;
}

/* ---- Time + Main columns ---- */
.swp_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;
}

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

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

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

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

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

.swp_person_lead,
.swp_person_helpers {
    margin-right: 12px;
}

.swp_person_lead i,
.swp_person_helpers i {
    margin-right: 3px;
    color: #999;
}

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

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

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

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

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

.swp_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; }
.swp_sbreak i { font-size: 16px; }
.swp_break_duration { font-size: 12px; color: #999; }

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

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

.swp_stask { font-size: 14px; }
.swp_stask_name { font-weight: 600; }
.swp_stask_assignee { font-size: 13px; color: #666; margin-top: 2px; }
.swp_stask_notes { font-size: 13px; color: #666; font-style: italic; margin-top: 2px; }

.swp_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; }
.swp_sstatus.pending { background: #fff3cd; color: #856404; }
.swp_sstatus.approved { background: #d4edda; color: #155724; }
.swp_sstatus.rejected { background: #f8d7da; color: #721c24; }
.swp_sstatus.deferred { background: #e2e3e5; color: #383d41; }
.swp_sstatus.in-progress { background: #cce5ff; color: #004085; }
.swp_sstatus.complete { background: #d4edda; color: #155724; }

.swp_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; }
.swp_spriority.low { background: #e2e3e5; color: #383d41; }
.swp_spriority.medium { background: #fff3cd; color: #856404; }
.swp_spriority.high { background: #f8d7da; color: #721c24; }
.swp_spriority.critical { background: #721c24; color: #fff; }

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

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

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

.swp_schedule_title_row .swp_h3 {
    margin: 0;
    flex: 1;
    min-width: 0;
}

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

.swp_schedule_title_row .swp_nav_dropdown_wrap {
    flex-shrink: 0;
}

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

.swp_schedule_tags .swp_topicwrap,
.swp_schedule_tags .swp_serieswrap,
.swp_schedule_tags .swp_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;
}

.swp_schedule_tags .swp_topicwrap i,
.swp_schedule_tags .swp_serieswrap i,
.swp_schedule_tags .swp_durationwrap i {
    color: var(--accent1);
    font-size: 14px;
}

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

.swp_schedule_card .swp_schedulerow,
.swp_schedule_card .swp_schedulerow_alt {
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 4px;
}

.swp_schedule_card .swp_schedulerow {
    background-color: #ffffff;
}

.swp_schedule_card .swp_schedulerow_alt {
    background-color: #f2f2f2;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/*//////Calendar//////*/
.swp_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;*/
}

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

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

.swp_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;
}

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

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

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

#swp_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;
}

.swphuname {
    font-weight: bold;
}

.swp_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;
}

.swp_htitle {
    font-weight: bold;
}

.swp_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 */
}

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

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

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

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


.swp_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;
}

.swp_workingdays {
    margin-top: 5px;
}

.swp_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;
}

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

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

.swp_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;
}

.swp_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;
}

.swp_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;
}

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

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

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

.swp_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;
}

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

.swp_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;
}

.swp_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;
}

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

.mei {
    display: none;
    text-align: center;
    color: var(--accent1, #2a9d8f);
    font-size: 10px;
}

.swp_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;
}

.swp_expandday:hover {
    background-color: var(--accent1, #2a9d8f);
    color: #ffffff;
}

.swp_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;
}

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

.swp_calendarview:hover {
    color: var(--accent1, #2a9d8f);
    font-size: 20px;
    cursor: pointer;
}

.swp_calendarselected {
    color: var(--accent1, #2a9d8f);
    font-size: 20px;
}

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

.swp_listview:hover {
    color: var(--accent1, #2a9d8f);
    font-size: 20px;
    cursor: pointer;
}

.swp_listselected {
    color: var(--accent1, #2a9d8f);
    font-size: 20px;
}

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

.swp_chevron:hover {
    color: var(--accent1, #2a9d8f);
    cursor: pointer;
}

#swp_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;
}

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

#swp_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;
}

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

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

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

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

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

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

.swp_title,
.swp_ltitle,
.swp_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;
}

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

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

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

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

.swp_day,
.swp_dayselected,
.swp_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;
}

.swp_dayselected {
    border-color: var(--accent1, #2a9d8f);
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 6%, white);
    box-shadow: inset 0 0 0 1px var(--accent1, #2a9d8f);
}

.swp_dayalt {
    background-color: #f9fafb;
}

.swp_dayalt>* {
    opacity: 0.4;
}

.swp_dayalt>.swp_expandday {
    opacity: 1;
}


.swp_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;
}

.swp_daytitle:hover {
    color: var(--accent1, #2a9d8f);
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 6%, white);
}

/*.swp_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;
}*/

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

.swp_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, #2a9d8f);
    padding: 10px 16px;
    user-select: none;
    min-width: 0;
    background: #fafbfc;
    border-bottom: none;
}

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

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

/*.swp_sdevent old*/

.swp_sdevent {
    margin: 0;
    padding: 8px 12px 8px 24px;
    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;
}

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

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

/*.swp_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;
    }*/

.swp_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;
}

.swp_sdeventtitle:hover {
    background-color: var(--accent1, #2a9d8f);
    color: #ffffff;
    cursor: pointer;
}

.swp_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;
}

.swp_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;
}

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

.swp_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;
}

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

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

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

.swp_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;
}

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

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

.swp_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;
}

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

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

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

.swp_epdate i {
    color: var(--accent1, #2a9d8f);
    margin-right: 4px;
}

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

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

.swp_epbutton:hover {
    background-color: var(--accent1, #2a9d8f);
    color: #ffffff;
    border-color: var(--accent1, #2a9d8f);
}


.swp_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%;
}

.swp_alldayevent {
    margin: 5px 2px;
    padding: 1px 6px;
    border-left: 1px solid color-mix(in srgb, var(--accent1, #2a9d8f) 25%, white);
    border-top: 1px solid color-mix(in srgb, var(--accent1, #2a9d8f) 25%, white);
    border-bottom: 1px solid color-mix(in srgb, var(--accent1, #2a9d8f) 25%, white);
    border-right: 1px solid color-mix(in srgb, var(--accent1, #2a9d8f) 25%, white);
    border-radius: 4px;
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 10%, white);
    color: var(--accent2, #264653);
    text-align: left;
    font-size: 11px;
    line-height: 18px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    user-select: none;
    transition: background-color 0.15s;
}

.swp_alldayevent:hover {
    cursor: pointer;
}

/* Group colour accent bar — inline child element */
.swp_evt_accent {
    display: inline-block;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: text-bottom;
}

.swp_startevent {
    margin: 5px 0 5px 2px;
    padding: 1px 6px;
    border-left: 1px solid color-mix(in srgb, var(--accent1, #2a9d8f) 25%, white);
    border-top: 1px solid color-mix(in srgb, var(--accent1, #2a9d8f) 25%, white);
    border-bottom: 1px solid color-mix(in srgb, var(--accent1, #2a9d8f) 25%, white);
    border-radius: 4px 0 0 4px;
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 10%, white);
    color: var(--accent2, #264653);
    text-align: left;
    font-size: 11px;
    line-height: 18px;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    transition: background-color 0.15s;
}

.swp_startevent:hover {
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 20%, white);
    cursor: pointer;
}

.swp_midevent {
    margin: 5px 0;
    padding: 1px 6px;
    border-top: 1px solid color-mix(in srgb, var(--accent1, #2a9d8f) 25%, white);
    border-bottom: 1px solid color-mix(in srgb, var(--accent1, #2a9d8f) 25%, white);
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 10%, white);
    color: var(--accent2, #264653);
    text-align: center;
    font-size: 11px;
    line-height: 18px;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    transition: background-color 0.15s;
}

.swp_midevent:hover {
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 20%, white);
    cursor: pointer;
}

.swp_endevent {
    margin: 5px 2px 5px 0;
    padding: 1px 6px;
    border-radius: 0 4px 4px 0;
    border-right: 1px solid color-mix(in srgb, var(--accent1, #2a9d8f) 25%, white);
    border-top: 1px solid color-mix(in srgb, var(--accent1, #2a9d8f) 25%, white);
    border-bottom: 1px solid color-mix(in srgb, var(--accent1, #2a9d8f) 25%, white);
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 10%, white);
    color: var(--accent2, #264653);
    text-align: right;
    font-size: 11px;
    line-height: 18px;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    transition: background-color 0.15s;
}

.swp_endevent:hover {
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 20%, white);
    cursor: pointer;
}

.swp_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;
}*/


.swp_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;
}

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

.swp_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;
}

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

.swp_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;
}

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

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

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

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

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

#swp_eventsource {
    max-width: 400px;
}

.swp_locationdata {
    padding-top: 10px;
}

.swp_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;
}

.swp_addressfield {
    display: block;
}

#swp_savelocation_button {
    display: none;
}

#swp_newlocation_button {
    display: inline-block;
}

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

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


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

.swp_eventtitleh2 {
    padding: 0px !important;
}

.swp_reoccurringrow {
    margin-top: 10px;
}

.swp_addreoccuringbutton {
    margin-top: 10px;
}

.swp_addexcludebutton {
    margin-top: 10px;
}

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

.swp_removereoccuringevent {
    float: right;
}

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

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

.swp_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;
}

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

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

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

.swp_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);
}

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

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

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

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

.swp_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 */
.swp_more_buttonwrap {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

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

.swp_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;
}

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

.swp_more_button:active {
    position: relative;
}

/*less button */
.swp_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;
}

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

.swp_less_button:active {
    position: relative;
}

.swp_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;
}

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

.swp_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;
}

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

.swp_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;
}

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

.swp_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;
}

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

.swp_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;
}

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

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

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

.swp_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*/
.swp_icstax>.select_multidropdown {
    background-color: #ffffff;
    border: 1px solid #ffffff;
}

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

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

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

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

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

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

.swp_icslinks {
    margin-top: 10px;
}

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

.swp_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;
}

.swp_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;
}

.swp_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;
}

.swp_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;
}

.swp_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*/
.swp_cdtitle {
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 8px;
}

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

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

.swp_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;
}

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

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

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

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

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

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

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

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

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

.swp_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;
}

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

.swp_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;
}

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

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

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

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

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


.swp_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;
}

.swp_pufont {
    width: 120px;
}

.swp_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;
}

.swp_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;
}

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

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

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

.swp_ecudiv {
    margin-bottom: 5px;
}

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

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

.swp_editcspace {
    padding: 6px;
}

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

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

.swp_imagedownload {
    cursor: pointer;
}

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


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


}

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

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

.swp_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 */
.swp_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;
}

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

.swp_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);
}

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

.swp_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 — .swp_uevents prefix for specificity over .swp_inlineblock */
.swp_uevents > .swp_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;
}

.swp_udateicon .swp_ue_day {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
}

.swp_udateicon .swp_ue_suffix {
    font-size: 13px;
    font-weight: 400;
    vertical-align: super;
}

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

/* Event details — .swp_uevents prefix for specificity over .swp_inlineblock */
.swp_uevents > .swp_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;
}

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

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

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

.swp_uedate i,
.swp_uetime i,
.swp_uelocation i {
    color: var(--ue-accent, var(--accent1, #4361ee));
    font-size: 12px;
}

.swp_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 */
.swp_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;
}

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

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

/* No events message */
.swp_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) {
    .swp_udateicon {
        min-width: 56px;
        padding: 10px 6px;
    }
    .swp_udateicon .swp_ue_day {
        font-size: 22px;
    }
    .swp_ueventdetails {
        padding: 10px 12px;
    }
    .swp_uetitle {
        font-size: 14px;
    }
}

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

/*//Scheduler items//*/
.swp_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;
}

.swp_scheduleframe {
    margin: 4px;
}

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


.swp_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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#swp_starttime,
#swp_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;
}

#swp_starttime,
#swp_endtime,
#swp_person,
#swp_persons,
#swp_role,
#swp_role_person,
#swp_role_persons,
#swp_activity {
    display: inline-block;
    margin: 0px;

}

#swp_startingtime,
#swp_finishingtime {
    display: inline-block;
    padding-left: 5px;
}

.swp_rtoggletime {
    display: inline-block;
}

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

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

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

.swp_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;
}

.swp_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;
}

.swp_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;
}

.swp_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;
}

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

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

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

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

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

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

}

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

.swp_scheduler_extrafields {
    margin-top: 4px;
}

.swp_litem {
    display: none;
}

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

.swp_inlineblock {
    display: inline-block;
}

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

.swp_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;
}

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


.swp_topbuttonhidden {
    display: none;
}

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

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

.swp_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);
}

.swp_loader {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent1);
    border-right-color: var(--accent2, #264653);
    animation: spin 0.8s ease-in-out infinite;
    -webkit-animation: spin 0.8s ease-in-out infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.swp_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;
}

.swp_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%;
}

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

.swp_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);
    }
}

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

.swp_ytserror {
    color: red;
}

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

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

/* Sync option cards */
.swp_yts_card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.swp_yts_card:hover {
    border-color: var(--accent1, #3b82f6);
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.swp_yts_card_header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 0;
}
.swp_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;
}
.swp_yts_card_icon i {
    font-size: 20px;
    color: var(--accent1, #3b82f6);
}
/* YouTube red icon for first card */
.swp_yts_card:first-of-type .swp_yts_card_icon {
    background: linear-gradient(135deg, rgba(220,38,38,0.12) 0%, rgba(220,38,38,0.04) 100%);
}
.swp_yts_card:first-of-type .swp_yts_card_icon i {
    color: #ef4444;
}
.swp_yts_card_title h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}
.swp_yts_card_title p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #6b7280;
}
.swp_yts_card_body {
    padding: 12px 16px 14px;
}

/* Sync buttons — always on own line */
.swp_yts_checkbox_label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    margin-bottom: 12px;
    cursor: pointer;
}
.swp_yts_checkbox_label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent1, #3b82f6);
    cursor: pointer;
}
.swp_yts_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 18px;
    background: var(--accent1, #3b82f6);
    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;
}
.swp_yts_btn:hover {
    background: color-mix(in srgb, var(--accent1, #3b82f6) 85%, #000);
    transform: translateY(-1px);
}
.swp_yts_btn:active {
    transform: translateY(0);
}
.swp_yts_btn i {
    font-size: 15px;
}

/* Input row */
.swp_yts_input_row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.swp_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;
}
.swp_yts_input:focus {
    border-color: var(--accent1, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.swp_yts_input::placeholder {
    color: #9ca3af;
}

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

/* Field labels inside cards */
.swp_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 */
.swp_yts_channel_picker {
    margin-bottom: 4px;
}
.swp_yts_channel_dropdown {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.swp_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;
}
.swp_yts_ch_option:hover {
    border-color: var(--accent1, #3b82f6);
    background: #eff6ff;
}
.swp_yts_ch_option.swp_yts_ch_active {
    border-color: var(--accent1, #3b82f6);
    background: #eff6ff;
    box-shadow: 0 0 0 1px var(--accent1, #3b82f6);
}
.swp_yts_ch_option img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}
.swp_yts_ch_option .swp_yts_ch_name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.swp_yts_ch_option .swp_yts_ch_method {
    font-size: 10px;
    color: #9ca3af;
}
.swp_yts_ch_none {
    font-size: 13px;
    color: #9ca3af;
    padding: 8px 0;
}

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

/* YouTube sync popup — taller to fit group dropdown + cards */
#swp_syncytv .swp_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//*/
.swp_reoccurringtypeframes {
    display: none;
}

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

.swp_reoccurringday {
    display: none;
}

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

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

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

.swp_rday {
    display: none;
}

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

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

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

.swp_inputcheckbox {
    margin-left: 2px;
}

/*///custom forms///*/
.swp_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;
}

.swp_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;
}

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

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

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

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

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

.swp_formsubtitle_text:empty {
    display: none;
}

.swp_formsubtitle_text.swp_formsubtitle_editing {
    display: block;
}

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

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

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

.swp_nullformtitle {
    display: none;
}

.swp_formnameids {
    display: none;
}

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

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

.swp_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;
}

.swp_formfieldlinehidden {
    display: none;
}


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

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

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

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

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

.swp_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 */
.swp_formfieldline[swp_ftype="switch"] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.swp_formfieldline[swp_ftype="switch"] .swp_formfieldtitle {
    margin: 0;
    padding-top: 0;
}

.swp_formfieldline[swp_ftype="switch"] .swp_formfield {
    display: inline-flex;
    align-items: center;
}

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

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

.swp_formfieldline[swp_ftype="textarea"] .swp_formfieldtitle,
.swp_formfieldline[swp_ftype="form text"] .swp_formfieldtitle {
    margin: 0;
    padding-top: 8px;
}

.swp_formfieldline[swp_ftype="textarea"] .swp_formfield,
.swp_formfieldline[swp_ftype="form text"] .swp_formfield {
    flex: 1;
    flex-wrap: wrap;
}

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

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

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


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

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

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

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

.swp_validationfield {
    display: block;
}

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

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

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

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

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

.swp_formfieldline[swp_ftype="letterhead"] .swp_letterhead {
    flex: 1;
    min-width: 0;
}

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

.swp_letterhead_logo {
    flex-shrink: 0;
}

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

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

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

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

.swp_letterhead_logo-right .swp_letterhead_address {
    text-align: left;
}

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

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

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

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

.swp_imagedisplay_left {
    text-align: left;
}

.swp_imagedisplay_center {
    text-align: center;
}

.swp_imagedisplay_center img {
    margin: 0 auto;
}

.swp_imagedisplay_right {
    text-align: right;
}

.swp_imagedisplay_right img {
    margin-left: auto;
}

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

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

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

.swp_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;
}

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

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

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

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

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

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

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

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

#swp_viewevent .swp_popupbuttons {
    margin-top: auto;
    flex: 0 0 auto;
}

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

.swp_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;
}

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

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

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

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

.swp_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;
}

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

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

.swp_vevt_attach {
    color: #334155;
}

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

.swp_vevt_tickets_section {
    margin-bottom: 16px;
}

.swp_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;
}

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

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

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

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

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

.swp_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;
}

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

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

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

.swp_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;
}

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

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

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

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

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

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

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

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

.swp_evt_submitbox .swp_hr {
    display: none;
}

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

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

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

.swp_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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.swp_evt_resourcelist {
    margin-bottom: 4px;
}

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

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

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

/* Individual resource row in popup */
.swp_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;
}

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

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

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

.swp_resource_row .swp_editschedule {
    float: none;
    margin-top: 0;
    padding: 0;
    margin-left: 6px;
}

.swp_resource_row .swp_editschedule .swp_save_button {
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 5px;
    margin-left: 0;
    margin-right: 0;
}

/* Ticket type rows */
.swp_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;
}

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

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

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

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

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

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

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

/* Toggle label for plain checkboxes (NOT pill toggles — those are styled in select.css) */
.swp_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;
}

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

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

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

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

.swp_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;
}

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

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

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

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

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

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

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

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

.swp_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;
}*/

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

.swp_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*/
.swp_databaseframe {
    top: 0px;
    position: relative;
    display: block;
    padding-top: 20px;
    margin-right: 20px;
    margin-left: 20px;
    padding-bottom: 5px;
}

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

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

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

    .swp_dbitem_btn {
        width: 32px;
    }
}

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

.swp_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;
}

.swp_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);
}

.swp_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;
}

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

.swp_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;
}

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

.swp_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;
}

.swp_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);
}

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

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

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

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

.swp_dbifilter {
    cursor: pointer;
}

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

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

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

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

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

.swp_db .swp_dbtrow {
    border: 1px solid #444;
    padding: 10px;
}

.swp_dtbdata {
    padding: 10px;
}

/* =============================================
   MODERN DATABASE TABLE STYLES
   ============================================= */
.swp_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);
}

.swp_dbtable .swp_dbtrow .swp_dbtheader,
.swp_dbtable .swp_dbtrow .swp_dtbdata {
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
}

.swp_dbtable .swp_dbtrow .swp_dbtheader:first-child,
.swp_dbtable .swp_dbtrow .swp_dtbdata:first-child {
    border-left: 1px solid #e5e7eb;
}

.swp_dbtable .swp_dbtrow .swp_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;
}

.swp_dbtable .swp_dbtrow .swp_dtbdata {
    background: #fff;
    color: #1f2937;
    transition: background-color 0.15s ease;
}

/* Alternating row colors */
.swp_dbtable .swp_dbtrow:nth-child(odd) .swp_dtbdata {
    background: #fff;
}

.swp_dbtable .swp_dbtrow:nth-child(even) .swp_dtbdata {
    background: #f9fafb;
}

/* Hover effect */
.swp_dbtable .swp_dbtrow:hover .swp_dtbdata {
    background: #eef2ff !important;
}

/* Last column no right border */
.swp_dbtable .swp_dbtrow .swp_dbtheader:last-child,
.swp_dbtable .swp_dbtrow .swp_dtbdata:last-child {
    border-right: 1px solid #e5e7eb;
}

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

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

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

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

.swp_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);
}

.swp_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;
}

.swp_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;
}

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

.swp_advancedoptions .swp_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;
}

.swp_advancedoptions .swp_form_ctrl_btn:hover {
    background: #eee;
    border-color: #ccc;
    color: #333;
}

.swp_advancedoptions .swp_form_ctrl_btn i {
    font-size: 14px;
}

.swp_optiontag {
    margin-top: 5px;
}

.swp_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;
}

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

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

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

.swp_dtbdelete:hover {
    color: #ef4444;
}

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

/* top-left border-radius */
.swp_dbtable .swp_dbtrow:first-child .swp_dbtheader:first-child {
    border-top-left-radius: 8px;
}

/* top-right border-radius */
.swp_dbtable .swp_dbtrow:first-child .swp_dbtheader:last-child {
    border-top-right-radius: 8px;
}

/* bottom-left border-radius */
.swp_dbtable .swp_dbtrow:last-child .swp_dtbdata:first-child {
    border-bottom-left-radius: 8px;
}

/* bottom-right border-radius */
.swp_dbtable .swp_dbtrow:last-child .swp_dtbdata:last-child {
    border-bottom-right-radius: 8px;
}

/* === DATABASE INDEX COLUMN === */
.swp_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;
}

.swp_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 */
.swp_dbtrow:hover .swp_dbindex_cell {
    background-color: #eef2ff !important;
}

/* Payment status badges */
.swp_dbindex_cell:has(.swp_payment_badge) {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
}
.swp_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;
}
.swp_payment_paid {
    background-color: #dcfce7;
    color: #166534;
}
.swp_payment_pending {
    background-color: #fef3c7;
    color: #92400e;
}
.swp_payment_balance {
    background-color: #fed7aa;
    color: #9a3412;
}
.swp_payment_credit {
    background-color: #dbeafe;
    color: #1e40af;
}
.swp_payment_refunded {
    background-color: #fee2e2;
    color: #991b1b;
}
.swp_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;
}
.swp_balance_send_btn:hover {
    background: #fdba74;
}
.swp_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;
}
.swp_receipt_btn:hover {
    background: #c7d2fe;
}
.swp_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;
}
.swp_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: #3b82f6;
    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;
}

.swp_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;
}

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

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

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

.swp_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;
}

.swp_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);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.swp_dbfilter_date .swp_dbfilter_from,
.swp_dbfilter_date .swp_dbfilter_to {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

.swp_dbfilter_date .swp_dbfilter_from:focus,
.swp_dbfilter_date .swp_dbfilter_to:focus {
    outline: none;
    border-color: var(--accent1);
}

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

.swp_dbfilter_time .swp_dbfilter_from,
.swp_dbfilter_time .swp_dbfilter_to {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

.swp_dbfilter_time .swp_dbfilter_from:focus,
.swp_dbfilter_time .swp_dbfilter_to:focus {
    outline: none;
    border-color: var(--accent1);
}

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

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

.swp_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;
}

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

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

.swp_dbfilter_clear:hover {
    color: #e76f51;
}

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

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

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

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

.swp_dbfilter_date label:first-child,
.swp_dbfilter_time label:first-child {
    margin-top: 0;
}

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

.swp_dbfilter_colpic {
    min-width: 120px;
}

/* Country filter - fix flag size */
.swp_dbfilter .select_country_selector img,
.swp_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 */
.swp_dbfilter_tel {
    margin-top: 10px;
    font-weight: 400;
    text-align: left;
}

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

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

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

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

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


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

.swp_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;
}

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

.swp_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);
}

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

.swp_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);
}

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

.swp_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);
}

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

.swp_cencrypt {
    display: none;
}

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

.swp_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;
}

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

.swp_friendmessage .swp_mellipsis {
    color: rgba(0, 0, 0, 0.35);
}

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

.swp_mymessage {
    max-width: 75%;
    margin-left: auto;
    margin-right: 0;
    margin-bottom: 12px;
    padding: 10px 14px;
    text-align: left;
    font-weight: 400;
    color: #fff;
    font-family: inherit;
    position: relative;
    background: var(--accent1);
    border-radius: 16px 16px 4px 16px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: visible;
    hyphens: auto;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.swp_friendmessage {
    max-width: 75%;
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 12px;
    padding: 10px 14px;
    text-align: left;
    font-weight: 400;
    color: #1a1a1a;
    font-family: inherit;
    position: relative;
    background: color-mix(in srgb, var(--accent1) 12%, white);
    border-radius: 16px 16px 16px 4px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: visible;
    hyphens: auto;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.swp_mymessage:before {
    display: none;
}

.swp_messagestyle {
    font-weight: 400;
    margin: 0;
    padding-right: 20px;
}

.swp_messagereply .swp_dropdown {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
}

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

/* Click-away overlay inside message dropdown */
.swp_messagereply .swp_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 */
.swp_messagereply .swp_overlay[style*="display: block"],
.swp_messagereply .swp_overlay[style*="display:block"] {
    pointer-events: auto;
}

.swp_messagereply .swp_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 */
.swp_messagereply .swp_dropdown-content.swp_dropdown_up {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 2px;
}

.swp_messagereply .swp_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;
}

.swp_messagereply .swp_dropdown-content a:hover {
    background: #f5f5f5;
}

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

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

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

/* Schedule items - blue */
.swp_messatt[id*="schedule"] .swp_attachmenticon {
    color: #3b82f6;
}

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

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

.swp_attachmenticon .la-file-alt {
    color: #3b82f6;
}

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

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

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

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

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

.swp_postmessages {
    display: flex;
    flex-direction: column;
    padding: 12px 8px;
    gap: 2px;
    position: relative;
}

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

/* Message image viewer modal */
.swp_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: swp_imgfadein 0.2s ease;
}

@keyframes swp_imgfadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.swp_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;
}

.swp_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;
}

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

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

.swp_mymessage .swp_msg_edited {
    color: rgba(255, 255, 255, 0.6);
}

.swp_friendmessage .swp_msg_edited {
    color: #999;
}

/* Edit banner (WhatsApp-style above compose bar) */
.swp_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: swp_edit_slidein 0.15s ease;
}

@keyframes swp_edit_slidein {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

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

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

.swp_edit_banner_close {
    font-size: 18px;
    cursor: pointer;
    color: #999;
    padding: 2px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.swp_edit_banner_close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.06);
}

/* Compose bar when editing */
.swp_edit_banner+.swp_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 */
.swp_msgcompose_send_editing {
    background: #22c55e !important;
}

.swp_msgcompose_send_editing:hover {
    background: #16a34a !important;
}

.swp_friendmessage:before {
    display: none;
}

.swp_messagedatefrom {
    font-style: normal;
    font-size: 11px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.swp_friendmessage .swp_messagedatefrom {
    color: #666;
    border-top-color: color-mix(in srgb, var(--accent1) 15%, transparent);
}

.swp_messagedatefrom .swp_msg_edited {
    font-style: italic;
    margin-left: 6px;
    opacity: 0.7;
    font-size: 10px;
}

.swp_messagechat>.swp_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);
}

.swp_messagechat>.swp_messatt a {
    color: #333;
}

/* Images in compose bar during edit */
.swp_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);
}

.swp_messageoptions {
    display: block;
    padding: 0;
}

.swp_msgcompose_bar {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 8px 8px 8px 14px;
    transition: border-color 0.15s;
}

.swp_msgcompose_bar:focus-within {
    border-color: var(--accent1);
    background: #fff;
}

.swp_cameraoptions {
    display: none;
    position: relative;
    z-index: 10;
    margin-top: -80px;
    padding: 0 16px 20px 16px;
    text-align: center;
}

.swp_photoapprove {
    display: none;
    position: relative;
    z-index: 10;
    margin-top: -80px;
    padding: 0 16px 20px 16px;
    text-align: center;
}

/* Camera container */
.swp_mcamera {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 8px;
}

.swp_mcamera video,
.swp_mcamera canvas {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.swp_messagebox {
    display: block;
    padding: 8px 4px;
    width: 100%;
    box-sizing: border-box;
}

.swp_messageoptions>[contenteditable=true]:empty:before {
    content: attr(placeholder);
    pointer-events: none;
    display: block;
    color: #aaa;
    font-size: 14px;
}

.swp_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;
}

.swp_messagechat:focus {
    outline: none;
}

.swp_messagechat::-webkit-scrollbar-track,
.swp_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;
}

.swp_messagechat::-webkit-scrollbar,
.swp_pb::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    cursor: grab;
}

.swp_messagechat::-webkit-scrollbar-thumb,
.swp_pb::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: #c0c0c0;
    border: 2px solid transparent;
    background-clip: content-box;
    cursor: grab;
}

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

.swp_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;
}

.swp_messagereply .swp_mreply {
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
}

.swp_friendmessage .swp_mreply {
    border-left: 3px solid var(--accent1);
    background: color-mix(in srgb, var(--accent1) 8%, white);
    color: #333;
}

.swp_mvideo {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    width: 100%;
    height: auto;
    object-fit: contain;
}

.swp_mcanvas {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    width: 100%;
    height: auto;
    object-fit: contain;
}

.swp_mrcontent {
    display: inline-block;
    width: calc(100% - 36px);
    padding: 4px 0;
    vertical-align: middle;
}

.swp_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;
}

.swp_mrdelete:hover {
    background: rgba(0, 0, 0, 0.08);
}

.swp_mrdelete>i {
    float: none;
    font-size: 16px;
    color: #888;
}

.swp_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;
}

.swp_messagestyle>img:hover {
    opacity: 0.85;
}

.swp_msgcompose_actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.swp_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;
}

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

.swp_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;
}

.swp_msgcompose_send:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

/* Split send button */
#swp_split_send {
    display: flex;
    align-items: center;
    position: relative;
}
#swp_split_send .swp_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;
}
#swp_split_send .swp_split_main i {
    font-size: 15px;
}
#swp_split_send .swp_split_main:hover {
    filter: brightness(1.1);
}
#swp_split_send .swp_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;
}
#swp_split_send .swp_split_drop:hover {
    filter: brightness(1.1);
}
#swp_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;
}
#swp_channel_menu .swp_ch_option {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #333;
    transition: background 0.12s;
}
#swp_channel_menu .swp_ch_option:hover {
    background: #f5f7fa;
}
#swp_channel_menu .swp_ch_option.active {
    background: #f0f4ff;
    font-weight: 600;
    color: #1a1a1a;
}
#swp_channel_menu .swp_ch_option i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}
#swp_channel_menu .swp_ch_divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

/* Legacy fallback — keep swp_sm_button working for any other uses */
.swp_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;
}

.swp_sm_button:hover {
    opacity: 0.85;
    cursor: pointer;
}

.swp_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);
}

.swp_cambutton:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    cursor: pointer;
}

.swp_cambutton:active {
    transform: scale(0.95);
}

/* Shutter / take photo button - larger and distinct */
#swp_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);
}

#swp_takephoto:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: #fff;
}

/* Approve photo button - green accent */
#swp_mpa {
    background: rgba(34, 197, 94, 0.6);
    border-color: rgba(34, 197, 94, 0.5);
}

#swp_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 */
#swp_closecamera:hover {
    background: rgba(239, 68, 68, 0.5);
    border-color: rgba(239, 68, 68, 0.5);
}

.swp_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;*/
}

.swp_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;
}

.swp_mediabuckets,
.swp_amediabuckets,
.swp_gmediabuckets,
.swp_mmediabuckets,
.swp_activities,
.swp_schedules,
.swp_document {
    margin: 10px 11px 20px 11px;
    padding: 24px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    transition: box-shadow 0.2s;
}

.swp_amediabuckets:hover,
.swp_gmediabuckets:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.swp_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;
}

.swp_sactivities>* {
    display: none;
}

.swp_sactivities>.swp_activitybox {
    display: block;
}

.swp_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;
}

.swp_sschedules>* {
    display: none;
}

.swp_sschedules>.swp_activitybox {
    display: block;
}

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

.swp_astick {
    display: none;
    color: var(--accent1);
    font-size: 16px;
    font-weight: bold;
    margin-left: 5px;
}


.swp_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;
}

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

.swp_filtermediatype {
    display: inline-block;
    font-size: 14px;
    /*min-width: 200px;*/
}

.swp_filtermediatype>.select_tabmdropdown {
    min-width: 200px;
}

.swp_mmultiselect {
    display: inline-block;
    font-size: 18px;
    cursor: pointer;
    padding-right: 5px;
    vertical-align: middle;
}

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

.swp_mmultiselectactive {
    display: inline-block;
    color: var(--accent1);
    font-size: 18px;
    cursor: pointer;
    padding-right: 5px;
    vertical-align: middle;
}

.swp_lmsearch {
    display: inline-block;
    font-size: 18px;
    cursor: pointer;
    margin-right: 5px;
    vertical-align: middle;
}

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

.swp_viewalbum {
    display: inline-block;
    font-size: 23px;
    cursor: pointer;
    margin-left: 10px;
    vertical-align: middle;
}

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

.swp_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 */
}

.swp_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;
}


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

.swp_auid {
    display: none;
}

.swp_aindex {
    display: none;
}


.swp_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;
}

.swp_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;
}

.swp_nanav:hover,
.swp_panav:hover {
    background-color: #ffffff;
    color: #000000;
}

.swp_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 */
}

.swp_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 */
}

.swp_aimgtitle {
    width: 100%;
    text-align: center;
    color: #ffffff;
    line-height: 10VH;
}

.swp_cssearch {
    display: inline-block;
    font-size: 23px;
    cursor: pointer;
    margin-right: 5px;
    vertical-align: middle;
}

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

.swp_smsearch {
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
    margin-right: 5px;
    margin-left: 5px;
}

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

.swp_lmsearchactive {
    display: inline-block;
    color: var(--accent1);
    font-size: 14px;
    cursor: pointer;
    padding-right: 5px;
}

.swp_msearch {
    display: none;
}

.swp_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;
}

.swp_addmbucket {
    display: inline-block;
    font-size: 18px;
    cursor: pointer;
    padding-right: 5px;
}

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

.swp_deletemedia {
    display: inline-block;
    font-size: 18px;
    cursor: pointer;
    padding-right: 5px;
}

.swp_mbulk {
    display: none;
}

.swp_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;
}

.swp_mbulk:before {
    content: "| ";
}

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

.swp_sharemedia {
    display: inline-block;
    font-size: 18px;
    cursor: pointer;
    padding-right: 5px;
}

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

.swp_creatembucketactvie {
    display: inline-block;
    color: var(--accent1);
    font-size: 14px;
    cursor: pointer;
    padding-right: 5px;
}

.swp_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;
}

.swp_mbtitle>h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.swp_cfn {
    display: inline-block;
    margin-right: 5px;
}

.swp_cln {
    display: inline-block;
    margin-right: 5px;
}

.swp_cem {
    display: block;
}

.swp_cbuttons {
    margin-top: 20px;
}

.swp_cbuttons>div {
    display: inline-block;
}

.swp_cgroups {
    font-style: italic;
}

.swp_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;
}

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

.swp_contacts_button:active {
    position: relative;
}

.swp_addpermissionbutton {
    margin-top: 10px;
}

.swp_taxonomy {
    display: inline-block;
    margin: 0px 2px 0px 10px;
    padding: 0px !important;
    min-width: 150px;
}

.swp_utaxonomy {
    display: inline-block;
    margin: 0px 2px 0px 10px;
    padding: 0px !important;
}

.swp_uptaxonomyalt {
    display: inline-block;
    margin: 10px 2px 0px 10px;
    padding: 0px !important;
}

.swp_remove {
    display: inline-block;
    margin: 0px 2px 0px 2px;
    padding: 0px !important;
}

.swp_permissions {
    margin-top: 10px;
    background-color: #efefef;
    border-radius: 5px;
    border: solid 1px #efefef;
    padding: 2px;
}

.swp_rpermissions {
    margin-top: 10px;
    background-color: #efefef;
    border-radius: 5px;
    border: solid 1px #efefef;
    padding: 2px;
}

.swp_icon {
    margin-right: 5px;
    font-size: 20px;
    color: #000000;
}

#swp_gnotifications>.select_tabmcontainer {
    text-align: center;
}

.swp_notificationscheckboxes {
    display: inline-block;
}

#swp_dhtabbox>.select_tabmcontainer {
    text-align: center;
}

/* Lists */
.swp_clists {
    margin-top: 15px;

}

.swp_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;
}

.swp_pbclist {
    min-width: 50%;
    min-height: 20px;
    background-color: #f1f1f1;
    margin: 5px 0px 0px 0px;
    padding: 4px;
    border-color: var(--accent1);
    border: 2px;
    border-radius: 2px;
    font-size: 16px;
    color: #000000;
    display: block;
}

.swp_addlcategory {
    cursor: pointer;
}

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 1;
    }
}

.swp_tickinput {
    margin-left: 5px;
    outline: 0px solid transparent;
    min-width: 50px;
    -webkit-user-select: text;
    user-select: text;
}

.swp_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;
}

.swp_ptitle {
    cursor: pointer;
    padding-top: 3px;
    vertical-align: top;
}

.swp_lcpicker {
    margin-left: 10px;
    border: none;
    cursor: pointer;
    padding-top: 2px;
    line-height: 10px;
}

.swp_resetcolour {
    font-size: 10px;
    padding-bottom: 6px;
    vertical-align: middle;
    cursor: pointer;
}

.swp_pb {
    overflow-x: scroll;
    white-space: nowrap;
    padding-bottom: 10px;
}

.swp_pbdeleted {
    margin-top: 10px;
    background-color: #f1f1f1;
    padding: 5px;
    border-radius: 4px;
    width: 95%;
}

.swp_pbdeleted * {
    width: 100px;
    display: inline-block;
}

.swp_pbcol {
    display: inline-block;
    height: 95%;
    width: 200px;
    background-color: #f1f1f1;
    border-radius: 4px;
    margin-right: 15px;
    padding: 5px;
    vertical-align: top;
}

.swp_pbitem {
    min-height: 20px;
    margin: 10px;
    padding: 5px;
    background-color: #ffffff;
    border-radius: 5px;
    word-wrap: break-word;
    white-space: normal;
    cursor: grab;
}

.swp_pbcoltitle {
    text-align: center;
    width: 100%;
    font-weight: 900;
    font-family: Lato;
}

.swp_sorticon {
    margin-right: 2px;
}

.swp_listinput {
    padding: 2px;
}

.swp_deletelitem {
    margin-left: 5px;
    float: right;
    cursor: pointer;
    margin-right: 10px;
}

.swp_projectinput {
    display: inline-block;
    min-width: 43%;
    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;
}

.swp_projectitem {
    position: relative;
    display: inline-block;
    margin: 5px;
    border: 4px solid #efefef;
    border-radius: 4px;
    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 rgba(0, 0, 0, 0.4);
}

.swp_projectitem:hover>.swp_projectboximg {
    background-color: #ffffff;
}

.swp_projectitem:hover>.swp_projectfilename {
    background-color: var(--accent1);
    color: #ffffff;
}

.swp_pdelete {
    position: absolute;
    top: 5px;
    right: 5px;
    display: inline-block;
    margin-left: 5px;
    cursor: pointer;
}

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

.swp_projectadd {
    position: relative;
    display: inline-block;
    border: 4px dashed var(--accent1);
    border-radius: 4px;
    margin: 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;
}

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

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

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

.swp_projectbox>img {
    /*position: absolute;
    left: 0px;*/
    width: 100%;
}

.swp_projectfilename {
    position: absolute;
    bottom: 0;
    word-wrap: break-word;
    font-size: 12px;
    /*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;
}

.swp_projectaddtitle {
    font-size: 18px;
    margin-bottom: 10px;
}

.swp_sortableschedule {
    padding: 2px;
}

button:focus {
    outline: 0;
}

/*//Signature//*/
.swp_scanvas {
    border-radius: 5px;
    border: 2px solid var(--accent1);
}

/*///Home///*/
.swp_homeframe {
    display: flex;
}

.swp_hcolumn {
    margin: 40px;
    flex: 50%;
}

/*media filter*/
.swp_ffitem {
    display: inline-block;
    margin-right: 5px;
    vertical-align: top;
}

/* Library items */
.swp_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;
    }
}

.swp_filtersframe {
    text-align: center;
    animation: grow 0.5s ease-in-out;
}

.swp_togglesframe {
    text-align: center;
}

.swp_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;
}

.swp_elibitem {
    cursor: pointer;
    vertical-align: bottom;
    margin-bottom: 20px;
}

.swp_vsegment {
    margin-top: 10px;
}

.swp_segmentbutton {
    margin-right: 5px;
    border: 1px solid #efefef;
    border-radius: 4px;
    cursor: pointer;
    padding: 5px;
}

.swp_segmentbutton:hover {
    background-color: #ffffff;
    background-color: #bcbcbc;
    border: 1px solid #000000;
    border: 1px solid transparent;
}

.swp_vsfinput {
    display: inline-block;
    margin-right: 5px;
}

.swp_vsinput {
    all: unset !important;
    border: 1px solid #aaa !important;
    border-radius: 2px !important;
    padding: 5px !important;
}

.swp_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;
}

.swp_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;
}

.swp_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;
}

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

.swp_taxterm {
    /*color: #999;*/
    color: #000000;
    border: none;
    cursor: pointer;
}

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

/*.swp_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;
  }
  
  .swp_taxtag:hover {
    background-color: crimson;
    color: white;
  }
  
  .swp_taxtag:hover::after {
     border-left-color: crimson; 
  }*/

.swp_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;*/
}

.swp_rmediatitleframe {
    text-align: center;
    vertical-align: bottom;
}

.swp_rmediatitle {
    display: inline-block;
    color: #000000;
    font-size: 32px;
    margin: 5px 10px 20px 10px;

}

.swp_rmediacontent {
    margin: 5px 10px 5px 10px;
}

.swp_taxframe {
    margin: 5px 10px 5px 10px;
    text-align: center;
}

.swp_rmediavideo {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.swp_rmediavideo iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*//Gdrive//*/
.swp_odrive {
    padding: 10px;
}

.swp_pdrive {
    padding: 10px;
}

.swp_gitemline {
    margin-top: 10px;
}

.swp_gfile {
    display: inline-block;
    padding: 2px 8px;
    font-size: 16px;
    cursor: pointer;
}

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

.swp_gfolder {
    display: inline-block;
    padding: 2px 8px;
    font-size: 16px;
    cursor: pointer;
}

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

.swp_gfreturn {
    display: inline-block;
    padding: 5px 8px;
    cursor: pointer;
}

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

.swp_bcstabs {
    display: inline-block;
    vertical-align: top;
    margin-top: 10px;
    padding-right: 10px;
    border-right: 1px solid #efefef;
    height: calc(100% - 30px);
}

.swp_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;
}

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

.swp_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;
}

.swp_bcstorage {
    margin-top: 10px;
    margin-left: 10px;
    display: inline-block;
    vertical-align: top;
    max-width: 85%;
}

/* Cloud sync controls */
.swp_cloud_sync_panel {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 12px;
}
.swp_cs_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}
.swp_cs_label {
    font-size: 13px;
    color: #374151;
}
.swp_cs_select {
    padding: 5px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #374151;
}

.swp_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;
}

.swp_gdsbutton:hover {
    background-color: #bcbcbc;
    border: 1px solid transparent;
}

.swp_lfh {
    margin-left: 15px;
    margin-bottom: 10px;
}

.swp_blinkstatus {
    margin-left: 15px;
}

.swp_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;
}

.swp_blinks {
    margin-top: 10px;
}

.swp_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;
}

.swp_bbutton {
    margin: none;
    border: none;
    padding: none;
    cursor: pointer;
}

.swp_bpassword {
    -webkit-text-security: disc;
}

/*//Gauth//*/
/* ============================================
   Settings Page — Modern Design System
   ============================================ */

/* Settings page container */
#swp_sframe {
    padding: 16px 0;
}

#swp_sframe > div[id*="swp_selectsettingtype"] {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Settings frame — each section card */
.swp_settingframe {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s ease;
}

.swp_settingframe:hover {
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.swp_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;
}

.swp_stitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
    vertical-align: baseline;
}

.swp_sstitle {
    margin: 5px;
}

.swp_cgtitle {
    cursor: pointer;
}

.swp_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;
}

.swp_sabutton:hover {
    background-color: var(--accent1);
    color: #ffffff;
    border: 1px solid var(--accent1);
    border-radius: 6px;
    cursor: pointer;
}

/* Key/value field rows */
.swp_gkeyblock {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f9fafb;
}

.swp_gkeyblock:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.swp_gkeyblock > b {
    min-width: 170px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    flex-shrink: 0;
}

.swp_gapi {
    margin: 20px 0px 10px 10px;
}

.swp_dapi {
    margin: 20px 0px 10px 10px;
}

/* Key/value input fields */
.swp_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;
}

.swp_gkey:focus,
.swp_gkey:focus-within {
    border-color: var(--accent1, #3b82f6) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #ffffff !important;
}

.swp_gkey[type="checkbox"] {
    flex: none;
    width: auto;
    max-width: none;
    padding: 0;
    background: transparent !important;
    border: none !important;
}

/* Standalone checkboxes in settings rows (non-swp_gkey) */
.swp_gkeyblock > input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent1, #3b82f6);
    cursor: pointer;
}

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

/* Version/dropdown selectors in settings */
.swp_gversion {
    max-width: 200px;
}

/* Page mapping field rows */
.swp_sfieldtitle {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    padding: 8px 0;
}

/* Page mapping / settings rows — label on top, value + edit below */
div:has(> .swp_sfieldtitlealt) {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

div:has(> .swp_sfieldtitlealt):last-of-type {
    border-bottom: none;
}

.swp_sfieldtitlealt {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 4px;
}

.swp_sfieldinputalt {
    display: inline-block;
    font-size: 13px;
    color: #6b7280;
    vertical-align: middle;
}

.swp_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;
}

.swp_urlhover:hover {
    border-color: #d1d5db;
}

.swp_seditsmall {
    color: var(--accent1, #3b82f6);
    font-size: 16px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.15s;
    text-decoration: none;
}

.swp_seditsmall:hover {
    background: rgba(59, 130, 246, 0.08);
}

.swp_settings_btn_row {
    margin-top: 12px;
    margin-bottom: 12px;
}

/* Stripe setup guide */
.swp_stripe_guide {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.swp_stripe_guide_header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

.swp_stripe_guide_header:hover {
    background: rgba(2, 132, 199, 0.06);
}

.swp_stripe_guide_icon {
    color: #0284c7;
    font-size: 18px;
}

.swp_stripe_guide_header b {
    flex: 1;
    font-size: 13px;
    color: #0c4a6e;
}

.swp_stripe_guide_caret {
    font-size: 14px;
    color: #0284c7;
    transition: transform 0.2s ease;
}

.swp_stripe_guide_caret.open {
    transform: rotate(90deg);
}

.swp_stripe_guide_toggle {
    display: none;
}

#swp_stripe_guide_body {
    padding: 0 14px 14px 14px;
}

.swp_stripe_steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.swp_stripe_step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.swp_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;
}

.swp_stripe_step b {
    font-size: 13px;
    color: #0c4a6e;
}

.swp_stripe_step p {
    font-size: 12px;
    color: #475569;
    margin: 3px 0 0 0;
    line-height: 1.5;
}

.swp_stripe_step code {
    background: #e0f2fe;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    color: #0369a1;
    word-break: break-all;
}

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

/* Settings sync buttons */
.swp_syncbutton {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.swp_token {
    font-size: 11px;
    font-style: italic;
    margin: 8px 0;
    color: #9ca3af;
}

.swp_tokentitle {
    display: inline-block;
    font-weight: 500;
    vertical-align: top;
    margin-right: 8px;
    color: #6b7280;
}

.swp_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;
    }

    #swp_frame {
        width: 100%;
        margin: 0px;
        padding: 0px, 2px, 0px, 2px;
        top: 0px;
    }

    #swp_row0 {
        margin: 0px 0px 0px 0px;
    }

    #swp_row0 {
        padding: 0px 0px 0px 0px;
    }

    #swp_cframe {
        margin: 0px 20px 0px 20px;
        padding-top: 49px;
    }

    .swp_chevron,
    .swp_cssearch {
        display: none;
    }

    .swp_sdevents>.swp_sdevent span:nth-of-type(2) {
        display: none !important;
    }

    .swp_sdevents>.swp_sdevent {
        visibility: collapse;
    }

    .swp_sdevents>.swp_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;
    }

    .swp_calframecontents {
        height: auto;
    }

    #swp_cframe>* {
        page-break-after: auto;
    }

    #swp_clframe {
        margin-top: 0px;
    }

    .swp_calheader {
        position: relative;
        height: 15px;
        /*position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 2em;*/
    }

    #swp_calframe {
        margin-top: 50px;
    }

    .swp_singleday {
        page-break-after: auto;
    }

    #select_caldate>.select_date::after {
        visibility: collapse;
    }

    .select_calmleft {
        display: none;
    }

    .select_calmright {
        display: none;
    }

    .swp_topbuttonbar {
        width: 100%;
        position: relative;
        padding: 6px 8px;
        box-shadow: none;
        flex-wrap: wrap;
    }

    #swp_row0 {
        padding-top: 0px;
    }

    .swp_row {
        margin: 0px;
        padding: 0px;
        page-break-after: auto;
    }

    .swp_rowtitle {
        position: relative;
        padding-top: 0px;
    }

    .swp_addtopbuttons {
        display: none;
    }

    #swp_appchooser {
        display: none;
    }

    .swp_daytitle {
        background-color: #F0F0F0;
        margin-left: -1px;
        margin-right: -1px;
    }

    .swp_todaytitle {
        background-color: #F0F0F0;
        color: #747474;
    }

    .swp_month,
    .swp_year {
        margin-left: 0px;
        margin-right: 0px;
        width: auto !important;
    }

    #swp_monthtitle {
        margin-left: 0px;
        margin-right: 0px;
        width: auto;
        font-size: 30px;
    }

    #swp_yeartitle {
        margin-left: 8px;
        margin-right: 0px;
        width: auto;
        font-size: 30px;
    }

    .swp_event,
    .swp_alldayevent,
    .swp_startevent,
    .swp_midevent,
    .swp_endevent {
        font-size: 16px;
    }

    #swp_cframe {
        padding: 0px;
        margin: 0px;
    }

    .swp_calframecontent {
        padding: 0px;
        margin: 0px;
    }


    .swp_day,
    .swp_dayalt {
        height: 190px;
    }

    .swp_dayalt>* {
        opacity: 0.6;
    }

    body {
        margin: 0px;
        border: none !important;
    }

    body.side-header-left #wrapper {
        margin-left: 0px;
    }

    #printablearea {
        display: block;
    }

    .swp_content {
        padding: 5px;
        font-size: 12px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        display: block;
        page-break-inside: avoid;
    }

    .swp_dropdown {
        display: none;
    }

    .swp_circlemorebutton,
    .swp_circlelessbutton,
    .swp_circleoverlay,
    .swp_circlemenu,
    .swp_circlemenubutton {
        display: none;
    }

    .swp_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
   ============================================ */
.swp_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;
}

.swp_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);
}

.swp_sig_modal_content h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.swp_sig_modal_buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Modal buttons */
.swp_btn_primary {
    background: var(--swp-accent-color, #2a9d8f);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

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

.swp_btn_secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.swp_btn_secondary:hover {
    background: #eee;
}

/* Modal input fields */
.swp_sig_modal .swp_dbinputframe {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    color: #333;
}

.swp_sig_modal .swp_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
   ============================================ */
.swp_imgselect_modal_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.swp_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;
}

.swp_imgselect_modal_option:hover {
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.swp_imgselect_modal_option.selected {
    border-color: var(--swp-accent-color, #2a9d8f);
    background: var(--swp-accent-light, #f0faf9);
}

.swp_imgselect_modal_option img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.swp_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;
}

.swp_imgselect_modal_label {
    display: block;
    font-size: 12px;
    margin-top: 8px;
    color: #666;
    word-break: break-word;
}

.swp_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);
}

.swp_imgselect_modal_option.selected .swp_imgselect_modal_check {
    display: flex;
}

.swp_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
   ============================================ */
.swp_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;
}

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

.swp_db_edit_btn[disabled],
.swp_db_edit_btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #aaa;
    pointer-events: none;
}

/* ============================================
   REPEATER - COMPACT DATABASE TABLE DISPLAY
   ============================================ */
.swp_repeater_db_wrapper {
    position: relative;
    padding-right: 45px;
    min-height: 32px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.swp_repeater_db_container {
    flex: 1;
    min-width: 0;
}

.swp_repeater_db_compact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 320px;
}

.swp_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;
}

.swp_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;
}

.swp_repeater_db_label {
    font-weight: 500;
    margin-right: 4px;
    opacity: 0.8;
}

.swp_repeater_db_text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.swp_repeater_db_empty {
    color: #999;
    font-style: italic;
    font-size: 12px;
}

.swp_repeater_db_summary {
    color: #666;
    font-size: 13px;
}

/* ============================================
   REPEATER MODAL STYLES
   ============================================ */
.swp_repeater_modal_items {
    min-height: 50px;
    margin-bottom: 15px;
}

.swp_repeater_modal_item {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.swp_repeater_modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.swp_repeater_modal_title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.swp_repeater_modal_remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 18px;
    border-radius: 4px;
}

.swp_repeater_modal_remove:hover {
    background: #fee;
}

.swp_repeater_modal_content {
    padding: 12px;
}

.swp_repeater_modal_field {
    margin-bottom: 12px;
}

.swp_repeater_modal_field:last-child {
    margin-bottom: 0;
}

.swp_repeater_modal_field label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
}

.swp_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;
}

.swp_repeater_modal_add:hover {
    background: #eee;
    border-color: #999;
}

/* ============================================
   REPEATER DATABASE TABLE INLINE EDIT
   ============================================ */
.swp_repeater_db_item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fff;
}

.swp_repeater_db_item_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.swp_repeater_db_title {
    font-weight: 500;
    font-size: 13px;
    color: #444;
}

.swp_repeater_db_remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 14px;
}

.swp_repeater_db_remove:hover {
    color: #e74c3c;
}

.swp_repeater_db_item_content {
    padding: 10px;
}

.swp_repeater_db_field {
    margin-bottom: 8px;
}

.swp_repeater_db_field:last-child {
    margin-bottom: 0;
}

.swp_repeater_db_input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}

.swp_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;
}

.swp_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) {

    .swp_mediabuckets,
    .swp_amediabuckets,
    .swp_gmediabuckets,
    .swp_mmediabuckets,
    .swp_activities,
    .swp_schedules,
    .swp_document {
        margin: 10px 5px 20px 5px;
        padding: 16px 12px 24px 12px;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
        background-color: #ffffff;
    }

    #swp_appchooser {
        margin-right: 2px;
    }

    .swp_cseriesframe {
        width: 95%;
        margin-top: 10px;
    }

    .swp_activitytitle {
        /*display:block;*/
        float: none;
    }

    .swp_form {
        margin: 5px !important;
        padding: 10px !important;
    }


    /*circlebutton menu*/
    .swp_circlemorebutton {
        margin-bottom: 5px;
        margin-right: 5px;
        bottom: 5px;
        right: 5px;
        margin: 0px;
    }

    .swp_circlelessbutton {
        margin-bottom: 5px;
        margin-right: 5px;
        bottom: 5px;
        right: 5px;
    }

    .swp_circlemenu {
        margin-bottom: 0px;
        margin-right: 0px;
        bottom: 115px;
        right: 5px;
    }

    .swp_circlemenubutton {
        margin-bottom: 5px;
        margin-right: 5px;
        bottom: 115px;
        right: 5px;

    }

    .swp_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;
    }

    .swp_desktopevents {
        display: none;
    }

    .swp_views {
        display: none;
    }

    .swp_day {
        min-height: 20px;
        height: 46px;
        cursor: pointer;
        overflow: visible;
    }

    .swp_dayselected {
        min-height: 20px;
        height: 46px;
        cursor: pointer;
        overflow: visible;
    }

    .swp_dayalt {
        min-height: 20px;
        height: 46px;
        overflow: visible;
    }

    .swp_title,
    .swp_ltitle,
    .swp_rtitle {
        font-size: 10px;
        padding: 6px 0;
    }

    .swp_titledesktop {
        display: none;
    }

    .swp_titlemobile {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .swp_chevron {
        font-size: 20px;
    }

    #swp_monthtitle {
        width: auto;
        font-size: 16px;
    }

    #swp_yeartitle {
        width: auto;
        font-size: 16px;
    }

    .swp_calframe {
        margin-left: 1%;
        margin-right: 1%;
        width: 96%;
    }

    .swp_title,
    .swp_ltitle,
    .swp_rtitle,
    .swp_day,
    .swp_dayalt {
        width: 13.5%;
    }

    #swp_cframe {
        padding: 0px 5px 0px 5px;
        padding-top: 0px;
        margin: 0px;
    }

    #swp_clframe {
        display: block;
        padding: 0px 5px 0px 5px;
        margin: 0px;
    }

    #swp_hframe {
        display: block;
        padding: 0px 5px 0px 5px;
        margin: 0px;
    }

    #swp_row0 {
        padding: 0px 5px 0px 5px;
        padding-top: 0px;
        margin: 10px 0px 0px 0px;
    }

    .swp_calheader {
        display: block;
        z-index: none;
        top: 0px;
        height: auto;
    }

    .swp_search {
        width: 150px;
    }

    .swp_searchinnactive {
        display: none;
    }

    /*SALIENT start*/
    .main-content {
        max-width: 98% !important;
    }

    /* SALIENT End*/

    .swp_calbuttonbar {
        display: block;
        padding: 0px 5px 0px 5px;
        margin: 0px;
    }

    .swp_addtopbuttons {
        -webkit-box-sizing: initial;
        box-sizing: initial;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        flex-wrap: nowrap;
        top: 10px;
        right: 10px;
    }

    #swp_la-signout {
        display: none;
    }

    /*.fa-file-alt, .fa-list-alt, .fa-calendar-plus, .fa-user-plus, .fa-table{
    display:none;
}*/

    .swp_navigation {
        -webkit-box-sizing: initial;
        box-sizing: initial;
        flex: 1;
        min-width: 0;
        font-size: 16px;
        text-align: center;
    }

    .swp_month {
        margin-right: 5px;
    }

    .swp_year {
        margin-right: 5px;
    }

    .swp_topbutton {
        margin-left: 2px;
        margin-right: 2px;
    }

    .swp_topbuttonc {
        gap: 1px;
    }

    .swp_topbuttonbar {
        padding: 6px 5px;
    }

    .swp_singleday {
        display: none;
        user-select: none;
    }

    .swp_expandday {
        display: none !important;
        position: relative;
    }

    .swp_views {
        display: none;
    }

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

    .swp_formfield {
        width: 100%;
    }

    .swp_removecontainer {
        float: none;
        display: block;
        margin-left: 22px;
    }

    #swp_remove_button {
        float: none;
    }

    .swp_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;
    }

    .swp_homeframe {
        display: block;
    }

    .swp_hcolumn {
        flex: 100%;
    }

    .swp_ffitem {
        display: block;
        width: 100%;
        padding: 0px 20px 0px 20px;
    }

    .swp_ffitem>.select_filterdropdown {
        width: 100%;
    }

    .swp_aclose {
        top: 10px;
        right: 10px;
    }

    .swp_aslide {
        margin-top: 60px;
    }

    .swp_nav {
        display: block;
        position: fixed;
        bottom: 20px;
        width: 100%;
    }

    .swp_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;
    }

    .swp_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;
    }

    .swp_nanav:hover,
    .swp_panav:hover {
        background-color: #000000;
        color: #ffffff;
    }

    .swp_messagechat {
        min-width: 0;
    }

    .swp_msgcompose_bar {
        padding: 6px 6px 6px 10px;
    }

    /* ============================================ */
    /* MOBILE FORM STYLES                          */
    /* ============================================ */

    /* Form container - full width, left aligned, minimal margins */
    .swp_formfields {
        padding: 0 5px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .swp_dbform {
        padding: 10px 5px !important;
        margin: 0 !important;
    }

    /* Stack labels above fields on mobile */
    .swp_formfieldline {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
        margin-bottom: 20px !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .swp_formfieldline .swp_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;
    }

    .swp_formfieldline .swp_formfield {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: wrap !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .swp_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,
    .swp_required {
        margin-left: 0 !important;
        margin-top: 4px !important;
        width: 100% !important;
    }

    /* Textarea and form text fields */
    .swp_formfieldline[swp_ftype="textarea"],
    .swp_formfieldline[swp_ftype="form text"] {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .swp_formfieldline[swp_ftype="textarea"] .swp_formfieldtitle,
    .swp_formfieldline[swp_ftype="form text"] .swp_formfieldtitle {
        padding: 0 !important;
        margin: 0 0 4px 0 !important;
    }

    /* Switch field layout on mobile - keep inline */
    .swp_formfieldline[swp_ftype="switch"] {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .swp_formfieldline[swp_ftype="switch"] .swp_formfieldtitle {
        flex: 1 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .swp_formfieldline[swp_ftype="switch"] .swp_formfield {
        flex: 0 0 auto !important;
        width: auto !important;
    }

    /* Input fields full width on mobile */
    .swp_formfield input[type="text"],
    .swp_formfield input[type="email"],
    .swp_formfield input[type="tel"],
    .swp_formfield input[type="url"],
    .swp_formfield input[type="password"],
    .swp_formfield input[type="number"],
    .swp_formfield input[type="date"],
    .swp_formfield input[type="time"],
    .swp_formfield input[type="datetime-local"],
    .swp_formfield textarea,
    .swp_formfield .select_formtext,
    .swp_formfield .select_inputframe,
    .swp_formfield .select_inputs {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    /* Dropdowns and tagboxes full width */
    .swp_formfield .select_singleframe,
    .swp_formfield .select_multiframe,
    .swp_formfield .select_tagframe {
        width: 100% !important;
        max-width: none !important;
    }

    /* Star rating and slider fields */
    .swp_formfieldline[swp_ftype="star rating"] .swp_formfield,
    .swp_formfieldline[swp_ftype="slider"] .swp_formfield {
        width: 100% !important;
    }

    /* Fill blanks wrapper */
    .swp_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) {



    .swp_cseriesframe {
        width: 95%;
        margin-top: 10px;

    }

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

    .swp_formfield {
        width: 100%;
    }


    .swp_addtopbuttons {
        -webkit-box-sizing: initial;
        box-sizing: initial;
        float: right;
        top: 0;
        display: none;
    }

    #swp_la-signout {
        display: none;
    }

}

/* =====================================================
   MODERN FORM BUILDER - Field Picker & Reorder Controls
   ===================================================== */

/* Field Picker Modal */
.swp_field_picker_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.swp_field_picker_modal.active {
    display: block;
}

.swp_field_picker_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.swp_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);
}

.swp_field_picker_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.swp_field_picker_header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.swp_field_picker_close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.swp_field_picker_close:hover {
    color: #333;
}

.swp_field_picker_search {
    padding: 12px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.swp_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;
}

.swp_field_picker_search input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.swp_field_picker_tabs {
    display: flex;
    gap: 4px;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e5e5;
    overflow-x: auto;
    flex-shrink: 0;
}

.swp_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;
}

.swp_field_tab:hover {
    background: #e0e0e0;
}

.swp_field_tab.swp_field_tab_active {
    background: #0073aa;
    color: #fff;
}

.swp_field_picker_body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.swp_field_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.swp_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;
}

.swp_field_picker_item:hover {
    border-color: #0073aa;
    background: #f8fbfd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

.swp_field_picker_icon {
    font-size: 28px;
    color: #0073aa;
    margin-bottom: 8px;
}

.swp_field_picker_name {
    font-size: 12px;
    color: #333;
    text-align: center;
    font-weight: 500;
}

.swp_field_picker_item.hidden {
    display: none;
}

/* Add Field Button (between fields) */
.swp_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;
}

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

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

/* Field Control Buttons - drag handle, up/down arrows - all same style */
.swp_field_controls {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 10px;
    vertical-align: middle;
}

.swp_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;
}

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

.swp_field_ctrl_btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.swp_field_ctrl_btn:disabled:hover {
    background: transparent;
    color: #999;
}

.swp_field_ctrl_btn.swp_drag_handle {
    cursor: grab;
}

.swp_field_ctrl_btn.swp_drag_handle:active {
    cursor: grabbing;
}

/* Legacy support for old class names */
.swp_field_reorder {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 10px;
}

.swp_field_reorder_btn,
.swp_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;
}

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

.swp_field_reorder_btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.swp_field_reorder_btn:disabled:hover {
    background: transparent;
    color: #999;
}

.swp_dragicon {
    cursor: grab;
}

.swp_dragicon:active {
    cursor: grabbing;
}

/* Field card title frame alignment */
.swp_titleframe {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    gap: 4px;
}

.swp_titleframe .swp_field_reorder,
.swp_titleframe .swp_field_controls,
.swp_titleframe .swp_dragicon {
    flex-shrink: 0;
}

/* Field title section - icon, type badge, title text, caret */
.swp_titleframe .swp_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 */
.swp_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 */
.swp_fieldtype {
    font-size: 12px;
    color: #555;
    text-transform: lowercase;
    white-space: nowrap;
    line-height: 1;
}

/* Field icon - inside the group */
.swp_titleicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
    line-height: 1;
}

/* Field title text */
.swp_titlefield {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    margin-right: 4px;
    font-style: normal !important;
    line-height: 24px;
}

.swp_titlefield:hover {
    font-style: normal !important;
}

/* Caret icons - inline with title */
.swp_caretdown,
.swp_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 */
.swp_caretdown {
    display: inline-flex;
}

.swp_caretup {
    display: none;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .swp_field_picker_content {
        width: 95%;
        max-height: 90vh;
    }

    .swp_field_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .swp_field_picker_item {
        padding: 12px 8px;
    }

    .swp_field_picker_icon {
        font-size: 24px;
    }

    .swp_field_picker_name {
        font-size: 11px;
    }

    .swp_field_picker_tabs {
        padding: 8px 12px;
    }

    .swp_field_tab {
        padding: 6px 10px;
        font-size: 12px;
    }

    .swp_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 */
#swp_cdbfields,
.swp_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 */
.swp_fieldlist:not(.swp_sortable) {
    width: calc(100% - 50px);
    background: #e8eaed;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Field card - position relative for absolute delete button */
.contactfield,
.swp_dbfield_wrapper {
    position: relative;
}

/* Title frame styling */
.swp_titleframe {
    position: relative;
}

/* Delete button - inline with other controls */
.swp_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;
}

.swp_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.swp_field_dragging {
    opacity: 0.4 !important;
    border: 2px dashed #0073aa !important;
    background: #f0f8ff !important;
}

.contactfield.swp_field_dragover {
    border-top: 4px solid #0073aa !important;
    margin-top: -2px;
    padding-top: 2px;
}

/* Add a visual placeholder line when dragging over */
.contactfield.swp_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 */
.swp_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;
}

.swp_dragicon:hover {
    background: #e0e0e0;
    color: #333;
}

.swp_dragicon:active {
    cursor: grabbing;
    background: #d0d0d0;
}

/* Title frame layout for drag icon */
.swp_titleframe {
    display: flex;
    align-items: center;
    position: relative;
}

.swp_titleframe .swp_ctitle {
    flex: 1;
}

/* Field list container - replaces swp_sortable classes */
.swp_fieldlist {
    width: calc(100% - 20px);
    min-height: 50px;
}

/* Add Field Button inside field foptions */
.swp_field_add_wrapper {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
}

.swp_field_add_wrapper .swp_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;
}

.swp_field_add_wrapper .swp_field_add_btn:hover {
    background: #e8f4fc;
    border-color: #0073aa;
    color: #0073aa;
}

/* Initial add button (when no fields) */
.swp_field_add_initial {
    padding: 20px;
    margin: 10px 0;
    font-size: 14px;
}

/* Drag icon styling */
.swp_dragicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    padding: 4px 8px;
    color: #999;
}

.swp_dragicon:hover {
    color: #333;
}

.swp_dragicon i.handle {
    font-size: 16px;
}



/* Inline add field button on title bar */
.swp_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;
}

.swp_addfield_inline:hover {
    background: #e0f0ff;
    color: #0073aa;
}

/* Initial add field button (when no fields exist) */
.swp_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;
}

.swp_field_add_initial:hover {
    background: #e8f4fc;
    border-color: #0073aa;
    color: #0073aa;
}


/* Field structure - content wrapper and add bar */
.swp_field_content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 0;
}

.swp_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;
}

.swp_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 swp_field_content has it now */
.contactfield .swp_titleframe {
    border: none;
    border-radius: 6px 6px 0 0;
}

.contactfield .swp_foptions,
.swp_dbfield_wrapper .swp_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 */
.swp_field_content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

/* Database field wrapper - transparent container that moves as a unit */
.swp_dbfield_wrapper {
    background: transparent;
    margin-bottom: 4px;
    cursor: default;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.swp_dbfield_wrapper[draggable="true"] {
    cursor: grab;
}

.swp_dbfield_wrapper[draggable="true"]:active {
    cursor: grabbing;
}

/* Dragging state - the item being dragged */
.swp_dbfield_wrapper.swp_field_dragging {
    opacity: 0.6;
    transform: scale(0.98);
}

.swp_dbfield_wrapper.swp_field_dragging .swp_field_content {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Drop target indicator - clean blue line */
.swp_dbfield_wrapper.swp_field_dragover {
    position: relative;
}

.swp_dbfield_wrapper.swp_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 */
.swp_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 */
.swp_field_add_top_wrapper {
    padding: 15px 15px 0 15px;
}

/* Add field button at top */
.swp_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;
}

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

/* Override swp_cdbfields styling since wrapper now handles it */
#swp_cdbfields.swp_sortable {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 15px;
    box-sizing: border-box;
}

/* ============================================================================
   UNIFIED FORM BUILDER STYLES
   ============================================================================ */

/* Form edit toggle button */
.swp_form_edit_toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    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;
}

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

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

/* Editable form container */
.swp_dbform.swp_form_editable .swp_formfields {
    background: #f5f7f9;
    border-radius: 8px;
    padding: 15px;
    min-height: 100px;
}

/* Form field line in edit mode */
.swp_form_editable .swp_formfieldline {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 0;
    padding: 12px 12px 12px 50px;
    transition: all 0.2s;
}

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

/* Field edit controls - left side */
.swp_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 */
.swp_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 */
.swp_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;
}

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

.swp_form_drag_handle {
    cursor: grab;
}

.swp_form_drag_handle:active {
    cursor: grabbing;
}

.swp_form_delete_btn:hover {
    background: #e74c3c;
    color: #fff;
}

.swp_form_edit_btn:hover {
    background: #f39c12;
    color: #fff;
}

/* Editable form field lines */
.swp_form_editable .swp_formfieldline {
    position: relative;
    padding-left: 100px;
    padding-right: 110px;
    min-height: 50px;
    display: flex;
    align-items: center;
}

/* Add field button */
.swp_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;
}

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

.swp_form_add_top {
    margin-bottom: 12px;
    padding: 10px;
    height: auto;
}

/* Drag states */
.swp_form_field_dragging {
    opacity: 0.4;
    transform: scale(0.98);
    z-index: 1000;
}

/* Dragover state - field being hovered during drag */
.swp_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 */
.swp_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;
}

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

/* Hide add buttons during drag */
.swp_form_editable.swp_dragging_active .swp_form_add_field_btn {
    display: none;
}

/* Hide controls outside of edit mode */
.swp_dbform:not(.swp_form_editable) .swp_form_field_controls,
.swp_dbform:not(.swp_form_editable) .swp_form_add_field_btn {
    display: none !important;
}

/* Settings modal */
.swp_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;
}

.swp_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;
}

.swp_modal_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.swp_modal_header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.swp_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;
}

.swp_modal_close:hover {
    background: #f0f0f0;
    color: #333;
}

.swp_modal_body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.swp_modal_footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.swp_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;
}

.swp_modal_btn:hover {
    background: var(--accent2, #005a87);
}

.swp_form_setting_row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.swp_form_setting_row label {
    flex: 0 0 120px;
    font-weight: 500;
    color: #555;
}

.swp_form_setting_value {
    color: #333;
}

.swp_form_setting_note {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .swp_form_edit_toggle {
        position: static;
        width: 100%;
        justify-content: center;
        margin-top: 0;
        margin-bottom: 10px;
    }

    .swp_form_editable .swp_formfieldline {
        padding-left: 40px;
        padding-right: 70px;
    }

    .swp_form_ctrl_btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* Inline field settings panel */
.swp_inline_field_settings {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 8px 0;
    padding: 15px;
    animation: swp_slideDown 0.2s ease;
}

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

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

.swp_inline_settings_content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.swp_inline_settings_row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.swp_inline_settings_row label {
    flex: 0 0 100px;
    font-weight: 500;
    color: #555;
    font-size: 13px;
}

.swp_inline_settings_input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.swp_inline_settings_input:focus {
    outline: none;
    border-color: var(--accent1, #0073aa);
}

.swp_inline_settings_value {
    color: #666;
    font-size: 14px;
}

.swp_inline_settings_checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.swp_inline_settings_actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.swp_inline_settings_btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

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

.swp_inline_settings_save:hover {
    background: var(--accent2, #005a87);
}

.swp_inline_settings_cancel {
    background: #e0e0e0;
    color: #555;
}

.swp_inline_settings_cancel:hover {
    background: #d0d0d0;
}

/* Settings Modal */
.swp_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: swp_fadeIn 0.2s ease;
}

@keyframes swp_fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.swp_settings_modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    animation: swp_slideUp 0.2s ease;
}

@keyframes swp_slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.swp_settings_modal_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.swp_settings_modal_header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.swp_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;
}

.swp_settings_modal_close:hover {
    background: #f0f0f0;
    color: #333;
}

.swp_settings_modal_body {
    padding: 20px;
}

.swp_settings_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.swp_settings_row label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.swp_settings_input {
    width: 60%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.15s;
}

.swp_settings_input:focus {
    outline: none;
    border-color: var(--accent1, #0073aa);
}

.swp_settings_value {
    color: #666;
    font-size: 14px;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 4px;
}

/* Toggle switch */
.swp_settings_toggle {
    position: relative;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.swp_settings_toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.swp_settings_toggle_slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 26px;
    transition: 0.2s;
}

.swp_settings_toggle_slider:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.swp_settings_toggle input:checked+.swp_settings_toggle_slider {
    background: var(--accent1, #0073aa);
}

.swp_settings_toggle input:checked+.swp_settings_toggle_slider:before {
    transform: translateX(24px);
}

.swp_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;
}

.swp_settings_btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.swp_settings_btn_cancel {
    background: #e0e0e0;
    color: #555;
}

.swp_settings_btn_cancel:hover {
    background: #d0d0d0;
}

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

.swp_settings_btn_save:hover {
    background: var(--accent2, #005a87);
}

/* Wide modal for advanced options */
.swp_settings_modal_wide {
    max-width: 550px;
}

/* Advanced options section */
.swp_settings_advanced_section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.swp_settings_advanced_header {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 12px;
}

.swp_settings_advanced_content {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 12px;
    max-height: 300px;
    overflow-y: auto;
}

/* Style the cloned foptions inside modal */
.swp_settings_advanced_content .swp_foption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.swp_settings_advanced_content .swp_foption:last-child {
    border-bottom: none;
}

.swp_settings_advanced_content .swp_optiontag {
    font-size: 13px;
    color: #555;
}

.swp_settings_advanced_content .swp_itemswitch {
    flex-shrink: 0;
}

.swp_settings_advanced_content .select_inputframe {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.swp_settings_advanced_content .select_tagframe,
.swp_settings_advanced_content .select_singleframe {
    min-width: 200px !important;
    max-width: 100%;
    width: auto !important;
}

/* Dropdown fields in form builder settings */
.swp_foptions .select_singleframe,
.swp_foptions .select_tagframe,
.swp_foptions .select_multiframe {
    min-width: 200px !important;
    max-width: 100%;
    width: auto !important;
}

/* Dropdown fields in database field options */
.swp_dbfield_wrapper .select_singleframe,
.swp_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 */
.swp_dbtdata .select_singleframe,
.swp_dbtdata .select_tagframe,
.swp_dbtdata .select_multiframe,
.swp_formfield .select_singleframe,
.swp_formfield .select_tagframe,
.swp_formfield .select_multiframe {
    min-width: 150px;
}

/* Dropdown container in settings modal */
.swp_settings_modal .select_singleframe,
.swp_settings_modal .select_tagframe,
.swp_settings_modal .select_multiframe,
.swp_settings_modal_body .select_singleframe,
.swp_settings_modal_body .select_tagframe {
    min-width: 220px !important;
    width: 100% !important;
    max-width: 100%;
}

/* Fix narrow dropdown issue - target the actual dropdown elements */
.swp_foptions select,
.swp_settings_advanced_content select,
.swp_dbfield_wrapper select {
    min-width: 200px !important;
}

/* Target the visual dropdown display div */
.swp_foptions .select_singledropdown,
.swp_settings_advanced_content .select_singledropdown,
.swp_dbfield_wrapper .select_singledropdown {
    min-width: 200px !important;
}

/* ============================================
   DOCUMENT VIEW STYLES
   ============================================ */

.swp_dbdocview {
    padding: 20px;
    background: #f8f9fa;
    min-height: 400px;
}

.swp_docview_empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 14px;
}

.swp_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;
}

.swp_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;
}

.swp_docview_title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Navigation controls */
.swp_docview_nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.swp_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;
}

.swp_docview_nav_btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.swp_docview_nav_btn i {
    font-size: 16px;
    color: #555;
}

.swp_docview_nav_count {
    font-size: 13px;
    color: #666;
    min-width: 60px;
    text-align: center;
}

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

.swp_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;
}

.swp_docview_btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

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

.swp_docview_body {
    padding: 24px;
}

.swp_docview_field {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.swp_docview_field:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* No dividers mode */
.swp_docview_no_dividers .swp_docview_field {
    border-bottom: none;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.swp_docview_label {
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.swp_docview_value {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Tags/Capsules */
.swp_docview_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.swp_docview_tag {
    background: #e8eaed;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 13px;
    color: #333;
}

/* Yes/No */
.swp_docview_yes {
    color: #27ae60;
    font-weight: 500;
}

.swp_docview_no {
    color: #95a5a6;
}

/* Stars */
.swp_docview_stars {
    display: flex;
    gap: 2px;
}

.swp_docview_star {
    font-size: 20px;
    color: #ddd;
}

.swp_docview_star.filled {
    color: #f1c40f;
}

/* Range */
.swp_docview_range {
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.swp_docview_range_sep {
    color: #888;
    margin: 0 6px;
}

/* Address */
.swp_docview_address {
    line-height: 1.7;
}

/* Colour */
.swp_docview_colour {
    display: flex;
    align-items: center;
    gap: 10px;
}

.swp_docview_colour_swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.swp_docview_colour_value {
    font-family: monospace;
    font-size: 13px;
}

/* Signature */
.swp_docview_signature img {
    max-width: 250px;
    max-height: 100px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 8px;
    background: #fafafa;
}

/* Tickets & RSVP */
.swp_docview_tickets,
.swp_docview_rsvp {
    display: flex;
    gap: 16px;
    align-items: center;
}

.swp_docview_ticket_count,
.swp_docview_rsvp_status {
    font-weight: 500;
}

.swp_docview_ticket_total {
    color: #27ae60;
    font-weight: 600;
}

.swp_docview_rsvp_guests {
    color: #666;
    font-size: 13px;
}

/* Social Links */
.swp_docview_social_item {
    margin-bottom: 6px;
}

.swp_docview_social_item strong {
    color: #555;
}

.swp_docview_social_link {
    color: #2980b9;
    text-decoration: none;
}

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

/* Rich text & Form text */
.swp_docview_richtext {
    background: #fafafa;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 3px solid #e8eaed;
}

.swp_docview_formtext {
    line-height: 1.6;
}

.swp_docview_formtext p {
    margin: 0 0 10px 0;
}

.swp_docview_formtext p:last-child {
    margin-bottom: 0;
}

/* Full width fields (letterhead, form text) - no label/value structure */
.swp_docview_field_fullwidth {
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
}

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

/* Letterhead in document view */
.swp_docview_letterhead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    margin-bottom: 15px;
}

.swp_docview_letterhead_logo {
    flex-shrink: 0;
}

.swp_docview_letterhead_logo img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.swp_docview_letterhead_address {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
    text-align: right;
}

.swp_docview_letterhead_logo-right {
    flex-direction: row-reverse;
}

.swp_docview_letterhead_logo-right .swp_docview_letterhead_address {
    text-align: left;
}

.swp_docview_letterhead_empty {
    color: #999;
    font-style: italic;
    padding: 10px 0;
}

/* Fill blanks */
.swp_docview_fillblanks_text {
    line-height: 1.9;
}

.swp_docview_fillblank {
    background: #e8f4fd;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    color: #2980b9;
}

.swp_docview_fillblank_empty {
    color: #bbb;
    letter-spacing: 2px;
}

/* Empty value */
.swp_docview_empty_val {
    color: #aaa;
    font-style: italic;
}

/* Files */
.swp_docview_files {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px;
}

.swp_docview_files_count {
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
}

.swp_docview_files_list {
    margin: 0;
    padding-left: 20px;
}

.swp_docview_files_list li {
    margin-bottom: 6px;
}

.swp_docview_file_link {
    color: #2980b9;
    text-decoration: none;
}

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

/* Image select */
.swp_docview_imageselect {
    margin-top: 8px;
}

.swp_docview_imageselect_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.swp_docview_imgsel_item {
    text-align: center;
}

.swp_docview_imgsel_item img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.swp_docview_imgsel_item span {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Ranking */
.swp_docview_ranking {
    margin-top: 8px;
}

.swp_docview_ranking_list {
    margin: 0;
    padding-left: 24px;
}

.swp_docview_ranking_list li {
    margin-bottom: 6px;
    padding: 4px 0;
}

/* Repeater */
.swp_docview_repeater {
    margin-top: 8px;
}

.swp_docview_repeater_count {
    color: #666;
    font-style: italic;
}

/* Print button in row */
.swp_dbrowbtn_print {
    color: #3498db;
}

.swp_dbrowbtn_print:hover {
    color: #2980b9;
}

/* Ticket breakdown styles */
.swp_docview_tickets_full {
    margin-top: 4px;
}

.swp_docview_tickets_breakdown {
    margin-bottom: 10px;
}

.swp_docview_ticket_line {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}

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

.swp_docview_ticket_type {
    flex: 1;
}

.swp_docview_ticket_qty {
    color: #666;
    min-width: 50px;
}

.swp_docview_ticket_price {
    font-weight: 500;
    min-width: 70px;
    text-align: right;
}

.swp_docview_tickets_total {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-weight: 500;
}

.swp_docview_ticket_total_amount {
    color: #27ae60;
    font-weight: 600;
}

/* RSVP detailed styles */
.swp_docview_rsvp_full {
    margin-top: 4px;
}

.swp_docview_rsvp_response {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 8px;
}

.swp_docview_rsvp_response i {
    margin-right: 4px;
}

.swp_docview_rsvp_yes {
    color: #27ae60;
}

.swp_docview_rsvp_no {
    color: #e74c3c;
}

.swp_docview_rsvp_maybe {
    color: #f39c12;
}

.swp_docview_rsvp_pending {
    color: #95a5a6;
}

.swp_docview_rsvp_guests_line {
    color: #666;
    margin-bottom: 6px;
}

.swp_docview_rsvp_guests_line i {
    margin-right: 4px;
}

.swp_docview_rsvp_dietary,
.swp_docview_rsvp_comments {
    margin-top: 6px;
    color: #555;
    font-size: 13px;
}

/* Image select text only */
.swp_docview_imgsel_text_only {
    background: #f0f0f0;
    padding: 10px 14px;
    border-radius: 6px;
    display: inline-block;
}

/* QR Code section */
.swp_docview_qrcode_section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.swp_docview_qrcode_container {
    display: inline-block;
}

.swp_docview_qrcode {
    display: inline-block;
}

.swp_docview_qrcode img {
    width: 100px;
    height: 100px;
}

.swp_docview_unique_code {
    margin-top: 8px;
    font-family: monospace;
    font-size: 11px;
    color: #888;
    letter-spacing: 0.5px;
}

.swp_docview_qr_fallback {
    font-family: monospace;
    font-size: 10px;
    color: #888;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    word-break: break-all;
}

/* Loading state */
.swp_docview_loading {
    color: #888;
}

/* Hide empty fields toggle */
.swp_docview_hide_empty .swp_docview_field_empty {
    display: none;
}

.swp_docview_field_empty .swp_docview_value {
    color: #bbb;
}

.swp_docview_empty_val {
    color: #bbb;
    font-style: italic;
}

/* URL link styling */
.swp_docview_url_link {
    color: #2980b9;
    text-decoration: none;
    word-break: break-all;
}

.swp_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;
}

.swp_activitybox {
    margin-top: 10px;
}

.swp_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;
}

.swp_activity_input[contenteditable] {
    outline: 0px solid transparent;
}

.swp_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;
}

.swp_scheduletitle {
    line-height: 1.3;
    font-family: 'Lato', sans-serif;
    font-size: 22px;
    display: inline;
    vertical-align: top;
}

.swp_activity_title {
    min-width: 460px;
    font-size: 18px;
    font-family: 'Lato', sans-serif;
}

.swp_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;
}

.swp_locationsbox {
    display: none;
    margin-top: 10px;
    margin-bottom: 20px;
}

.swp_roomsbox {
    display: none;
    margin-top: 10px;
    margin-bottom: 20px;
}

/*.swp_addblock{
      display:inline-block;
}*/

.swp_addblock {
    height: 34px;
    margin-bottom: 0px;
    display: inline-block;
    vertical-align: center;
}

.swp_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;
}

.swp_newtaxbox {
    margin-top: 5px;
}

.swp_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;
}

.swp_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;
}

.swp_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;
}

.swp_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;
}

.swp_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;
}

.swp_newgroup:focus,
.swp_newseries:focus,
.swp_newtopic:focus,
.swp_newcategory:focus,
.swp_newbucket:focus {
    border: 1px solid var(--accent1);
    outline: 1px solid transparent !important;
    border-radius: 2px;
}

.swp_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;
}

.swp_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;
}

/*.swp_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;
}

.swp_addnewtopic:hover {
      background-color: #006799;
      border-color: #006799;
      border-style: solid;
      border-width: 1px 1px 1px 0;
      color: #ffffff;
}

.swp_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;
}

.swp_addnewgroup:hover {
      background-color: #006799;
      border-color: #006799;
      border-style: solid;
      border-width: 1px 1px 1px 0;
      color: #ffffff;
}

.swp_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;
}

.swp_addnewcategory:hover {
      background-color: #006799;
      border-color: #006799;
      border-style: solid;
      border-width: 1px 1px 1px 0;
      color: #ffffff;
}

.swp_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;
}

.swp_addnewseries:hover {
      background-color: #006799;
      border-color: #006799;
      border-style: solid;
      border-width: 1px 1px 1px 0;
      color: #ffffff;
}

.swp_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;
}

.swp_addnewbucket:hover {
      background-color: #006799;
      border-color: #006799;
      border-style: solid;
      border-width: 1px 1px 1px 0;
      color: #ffffff;
}

.swp_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;
}

.swp_addnewroom:hover {
      background-color: #006799;
      border-color: #006799;
      border-style: solid;
      border-width: 1px 1px 1px 0;
      color: #ffffff;
}*/

.swp_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;
}

.swp_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;
}

.swp_duration_wrap {
    display: block;
}

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

.swp_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;
}

.swp_goalbox {
    margin-top: 20px;
    margin-bottom: 20px;
}

.swp_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;
}

.swp_atypeframe {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 200px;
}

.swp_descriptionbox {
    margin-top: 10px;
    margin-bottom: 20px;
    max-width: 99%;
}

.swp_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;
}

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

.swp_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;
}

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

.swp_submitbox {
    display: block;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Submit button alignment options (set via submitalign in form/popup config) */
.swp_submitbox_left,
.swp_submitframe.swp_submitbox_left {
    text-align: left;
    padding: 0 15px;
}

.swp_submitbox_center,
.swp_submitframe.swp_submitbox_center {
    text-align: center;
}

.swp_submitbox_left .swp_save_button,
.swp_submitbox_center .swp_save_button,
.swp_submitbox_left .swp_submit,
.swp_submitbox_center .swp_submit {
    width: auto;
    display: inline-block;
}

.swp_poststatus1 {
    display: inline-block;
    width: 100px;
    margin-right: 10px;
    padding: 5px;
    cursor: pointer;
}

.swp_poststatus1>.select-items {
    margin-top: 10px;
}

.swp_poststatus1>option {
    margin-top: 10px;
}

.swp_poststatus_option {
    cursor: pointer;
}

.swp_act_publishdetails {
    margin-top: 5px;
}

.swp_formdelete {
    display: none;
}

.swp_formview {
    display: none;
}

.swp_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;
}

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

.swp_gen_button:active {
    position: relative;
}

.swp_hr {
    margin-top: 5px;
    margin-bottom: 5px;
    opacity: 0.5;
}

.swp_deletebuttons {
    margin-top: 20px;
    text-align: center;

}

.swp_scroll {
    width: 100%;
    height: 600px;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.swp_scroll::-webkit-scrollbar {
    width: 0.8em;
}

.swp_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);
}

.swp_scroll::-webkit-scrollbar-thumb {
    background-color: #fff;
    outline: 1px solid #fff;
}

.swp_scroll::-webkit-scrollbar-button {
    color: #fff;
    background-color: #000;
    outline: 1px solid #fff;
}

/*Add to Schedule*/
/*#swp_schedules_input{
            height: 34px;
            font-size: 16px;
}*/

/*#swp_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;
}

.swp_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;
}

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

.swp_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;
}

.swp_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;
}

.swp_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;
}

.swp_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;
}

#swp_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;
}

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

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

#swp_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;
}

#swp_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;
}

#swp_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;
}

.swp_mmember_messageto {
    margin-right: 15px;
}

.swp_subjectbox {
    margin-top: 10px;
    margin-right: 15px;
}

.swp_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;
}

.swp_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;
}

.swp_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);
}

.swp_mediaitem:hover>.swp_mediaboximg {
    background-color: #ffffff;
}

.swp_mediaitem:hover>.swp_mediafilename {
    background-color: color-mix(in srgb, var(--accent1) 10%, #f5f5f5);
    color: #1a1a1a;
}

.swp_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;
}

.swp_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);
}

.swp_pmediaitem:hover>.swp_mediaboximg {
    background-color: #ffffff;
}

.swp_pmediaitem:hover>.swp_mediafilename {
    background-color: color-mix(in srgb, var(--accent1) 10%, #f5f5f5);
    color: #1a1a1a;
}

.swp_mediabox>img {
    /*position: absolute;
  left: 0px;*/
    width: 100%;
}

.swp_mediaimage {
    width: 100%;
}

.swp_mediaboxvid>img {
    /*position: absolute;
    left: 0px;*/
    width: 100%;
}

.swp_youtubeoverlay {
    top: 10px;
    left: 20px;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    color: #FF0000;
    color: #ffffff;
}

.swp_vimeooverlay {
    top: 10px;
    left: 30px;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    color: #ffffff;
}

.swp_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;
}

.swp_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);
}

.swp_mediafile:hover>.swp_mediaboximg {
    background-color: #ffffff;
}

.swp_mediafile:hover>.swp_mediafilename {
    background-color: color-mix(in srgb, var(--accent1) 10%, #f5f5f5);
    color: #1a1a1a;
}

.swp_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;
}

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

.swp_addmediaitem:hover>.swp_mediabox {
    color: var(--accent1);
    background-color: transparent;
    margin: 0px;
}

.swp_mediaitemmargin {
    /*margin: 5px;*/
    margin: 20px 10px 10px 10px;
}

.swp_mediafilemargin {
    margin: 20px 10px 10px 10px;
}

.swp_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);
}

.swp_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;
}

.swp_mediabox>* {
    margin-top: 0;
}

.swp_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;
}

.swp_mediaboxvid>.lar,
.swp_mediaboxvid>.las {
    margin-top: 0;
}

.swp_mediaboximg {
    background-color: #fafafa;
    text-align: center;
    margin: 0px;
    font-size: 48px;
    height: 85px;
    overflow: hidden;
}

.swp_videothumb {
    position: relative;
    background: #1a1a1a;
}

.swp_vidcanvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swp_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;
}

.swp_mimageunderlay {
    width: 100%;
}

.swp_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;
}

.swp_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;
}

.swp_mediafileselect {
    display: none;
}

.swp_mediafileselected {
    display: inline-block;
}

.swp_moptions {
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    padding-bottom: 7px;
    position: relative;
    z-index: 3
}

.swp_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;
}

.swp_moptions>button:hover {
    border: 1px solid var(--accent1);
    background-color: var(--accent1);
    color: #ffffff;
    cursor: pointer;
}

.swp_moptions>.swp_floaderbox {
    border: 1px solid #ffffff;
    background-color: #ffffff;
    cursor: pointer;
    margin-right: 5px;
    min-height: 30px;
    font-size: 18px;
    vertical-align: bottom;
}

.swp_moptions>.lar,
.swp_moptions>.las {
    margin-top: 0px;
}

.swp_fbucket {
    margin-top: 40px;
}

.swp_btitle {
    margin-left: 15px;
}

.swp_wb_pview {
    margin-left: 15px;
}

.swp_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 */
}

.swp_bbuttons:hover {
    background-color: #efefef;
    color: #000000;
}

.swp_boptions {
    background: #efefef;
    padding-top: 5px;
}

.swp_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;
}

.swp_boptions>button:hover {
    border: 1px solid var(--accent1);
    background-color: var(--accent1);
    color: #ffffff;
    cursor: pointer;
}

.swp_boptions>.swp_floaderbox {
    border: 1px solid #ffffff;
    background-color: #ffffff;
    cursor: pointer;
    margin-right: 5px;
    min-height: 30px;
    font-size: 18px;
    vertical-align: bottom;
}

.swp_boptions>.lar,
.swp_boptions>.las {
    margin-top: 0px;
}

.swp_wb_mli {
    display: inline-block;
    margin: 5px 40px 5px 0px;
}

.swp_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 */
}

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

.swp_wbibutton {
    display: inline-block;
    cursor: pointer;
    padding: 5px;
    border: none;
    background-color: transparent;
}

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

.swp_wb_list {
    margin-left: 15px;
}

.swp_wb_slist {
    margin-left: 15px;
}

.swp_wb_icons {
    margin-left: 5px;
}

.swp_wb_sicons {
    margin-left: 15px;
}

.swp_uploadmedia {
    display: block;
}

.swp_approvemediagroup {
    display: none;
    margin-top: 10px;
    margin-bottom: 10px;
}

.swp_choosegroup {
    margin-top: 15px;
    padding: 5px;
    border-color: var(--accent1);
    border: 1px;
    border-radius: 3px;
    background-color: #f1f1f1;
}

.swp_mgroup {
    width: 400px;
}

.swp_mgfilename {
    font-weight: bold;
}

/* ── Modern upload zone ── */
#swp_upload_zone { padding: 16px; }

.swp_dropform { text-align: center; }

.swp_file_input { display: none; }

.swp_drop_label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 2px dashed var(--accent1, #3b82f6);
    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;
}

.swp_drop_label:hover {
    border-color: var(--accent1, #3b82f6);
    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);
}

.swp_upload_icon {
    font-size: 48px;
    color: var(--accent1, #3b82f6);
    opacity: 0.7;
    margin-bottom: 8px;
}

.swp_drop_text {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.swp_drop_hint {
    font-size: 13px;
    color: #9ca3af;
}

.swp_drop_status {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

#dropFileForm.fileHover .swp_drop_label,
.swp_dropform.fileHover .swp_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 */
.swp_file_preview {
    display: none;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px;
    padding: 12px 0;
}

.swp_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;
}

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

.swp_fp_thumb {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

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

.swp_fp_name {
    font-size: 12px;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 120px;
}

.swp_fp_size {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
}

.swp_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;
}

.swp_fp_card:hover .swp_fp_delete {
    display: flex;
}

.swp_upload_btn {
    display: none;
    margin: 8px auto 0;
    padding: 10px 32px;
    background: var(--accent1, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.swp_upload_btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ── Upload progress ── */
.swp_upload_progress {
    padding: 16px;
}

.swp_up_title {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.swp_up_card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    margin-bottom: 8px;
}

.swp_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;
}

.swp_up_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swp_up_info {
    flex: 1;
    min-width: 0;
}

.swp_up_name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.swp_up_size {
    font-size: 11px;
    color: #9ca3af;
}

.swp_up_bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

.swp_up_fill {
    height: 100%;
    background: var(--accent1, #3b82f6);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.swp_up_fill.swp_up_done { background: #16a34a; }
.swp_up_fill.swp_up_error { background: #dc2626; width: 100%; }

.swp_up_pct {
    flex-shrink: 0;
    width: 36px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

/* ── Group assignment screen ── */
.swp_upload_groups {
    padding: 20px;
}

.swp_ga_header {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.swp_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;
}

.swp_ga_allbar_label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.swp_ga_allbar_select {
    flex: 1;
    min-width: 200px;
}

.swp_ga_files {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: visible;
}

.swp_ga_file {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    flex-wrap: wrap;
}

.swp_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;
}

.swp_ga_file_name i {
    color: #9ca3af;
    margin-right: 6px;
}

.swp_ga_file_select {
    flex: 1;
    min-width: 220px;
}

.swp_ga_actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.swp_ga_done_btn {
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
}

/*start of invitepopup*/
.swp_rpermission {
    margin-left: 20px;
    margin-bottom: 10px;
}

.swp_settings_btn_row {
    margin-top: 10px;
    margin-bottom: 10px;
}

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

.swp_rinvite {
    background-color: #efefef;
    margin-top: 10px;
    padding: 2px;
    border-radius: 4px;
}

.swp_rinviteheader {
    width: 99%;
    margin: 5px;
}

.swp_rinvitelink {
    cursor: pointer;
}

.swp_removepermission {
    float: right;
    transition: all 200ms;
    font-size: 25px;
    font-weight: bold;
    text-decoration: none;
    color: #14679e;
    cursor: pointer;
}

.swp_removepermission:hover {
    color: #000000;
}

.swp_rinvitedata {
    background-color: #efefef;
    margin: 5px;
}

.swp_rinvitetitle {
    font-weight: bold;
}

.swp_rinvitetitle,
.swp_rinvitedata {
    display: inline-block;
    margin-left: 5px;
}

.swp_gkeyblock {
    display: block;
    margin: 5px;
}

.swp_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;
}

/*.swp_messagechat > .swp_messatt{
  border: 1px solid #000000;
}*/

.swp_messagebox>[contenteditable=true]:empty:before {
    content: attr(placeholder);
    pointer-events: none;
    display: block;
    /* For Firefox */
}

.swp_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);
    transition: background 0.15s, box-shadow 0.15s;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.swp_messatt:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.swp_friendmessage .swp_messatt {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.swp_friendmessage .swp_messatt:hover {
    background: color-mix(in srgb, var(--accent1) 6%, white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.swp_messatt>a,
.swp_messatt>a:hover,
.swp_messatt>a:visited,
.swp_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) {
    .swp_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%;
    }

    #swp_topic_input {
        min-width: 90%;
        width: 90%;
        display: inline-block;
    }

    #swp_group_input {
        min-width: 90%;
        width: 90%;
        display: inline-block;
    }

    #swp_categories_input {
        min-width: 90%;
        width: 90%;
        display: inline-block;
    }

    .swp_newschedule {
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
    }

    .swp_newtopic {
        min-width: 95%;
        width: 95%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
    }

    .swp_newgroup {
        width: 80%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
    }

    .swp_newcategory {
        width: 80%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
    }

    .swp_newseries {
        width: 80%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
    }

    .swp_newbucket {
        width: 80%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
    }

    .swp_addnewtopic {
        min-width: 95%;
        width: 95%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
        border-width: 1px 1px 1px 1px;
    }

    .swp_addnewgroup {
        min-width: 95%;
        width: 95%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
        border-width: 1px 1px 1px 1px;
    }

    .swp_addnewcategory {
        min-width: 95%;
        width: 95%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
        border-width: 1px 1px 1px 1px;
    }

    .swp_addnewseries {
        min-width: 95%;
        width: 95%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
        border-width: 1px 1px 1px 1px;
    }

    .swp_addnewbucket {
        min-width: 95%;
        width: 95%;
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
        border-width: 1px 1px 1px 1px;
    }

    .swp_addnewschedule {
        height: 34px;
        margin-top: 3px;
        display: inline-block;
        vertical-align: center;
    }

    .swp_duration_input {
        width: 70%;
    }

    .swp_duration_text {
        width: 30%;
    }

    .swp_goal_input {
        height: 34px;
        min-width: 95%;
        width: 95%;
        margin: 0px;
        display: block;
    }

    .swp_description_input {
        min-height: 75px;
        min-width: 95%;
        width: 95%;
        margin: 0px;
        display: block;
    }

    .swp_equipment_input {
        height: 34px;
        min-width: 95%;
        width: 95%;
        margin: 0px;
        display: block;
    }

    .swp_link_input {
        height: 34px;
        min-width: 95%;
        width: 95%;
        margin: 0px;
        display: block;
    }

}

/*Add to Schedule*/
.swp_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;
}

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

#swp_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;
}

#swp_schedules_input_chosen {
    width: 50%;
}

#swp_leader_input_chosen {
    width: 50%;
}

#swp_users_input_chosen {
    width: 50%;

}

.md-close1 {
    margin-top: 5px;
}

/* Form submission success options */
.swp_form_success_options {
    text-align: center;
    padding: 10px 0;
}

.swp_form_success_options p {
    margin: 0 0 20px 0;
    font-size: 15px;
    color: #555;
}

.swp_form_success_buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 280px;
    margin: 0 auto;
}

.swp_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;
}

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

.swp_form_success_btn_new {
    background: #2a9d8f;
    color: #fff;
}

.swp_form_success_btn_new:hover {
    background: #238b7e;
}

.swp_form_success_btn_close {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}

.swp_form_success_btn_close:hover {
    background: #eee;
    border-color: #ccc;
}



/* Database Item Styling */
.swp_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;
}

.swp_dbitem_main {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.15s;
    gap: 12px;
}

.swp_dbitem_main:hover {
    background-color: #f5f5f5;
}

.swp_dbitem_icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.swp_dbitem_content {
    flex: 1;
    min-width: 0;
}

.swp_dbitem_title {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swp_dbitem_meta {
    margin-top: 2px;
}

.swp_dbitem_type {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}

.swp_dbitem_arrow {
    color: #ccc;
    flex-shrink: 0;
}

.swp_dbitem_actions {
    display: flex;
    border-left: 1px solid #eee;
}

.swp_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;
}

.swp_dbitem_btn:hover {
    background: #f0f0f0;
    color: #333;
}

.swp_dbitem_btn_delete:hover {
    background: #fef2f2;
    color: #dc2626;
}

.swp_dbitem_btn_copy:hover {
    background: #eff6ff;
    color: #2563eb;
}

/* Type-specific icon colors */
.swp_dbitem_form .swp_dbitem_icon {
    color: #3b82f6;
}

.swp_dbitem_register .swp_dbitem_icon {
    color: #22c55e;
}

.swp_dbitem_rota .swp_dbitem_icon {
    color: #a855f7;
}


/* Rota import unmatched names styling */
.swp_rota_unmatched_list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    background: #f9f9f9;
}

.swp_rota_unmatched_item {
    padding: 8px 12px;
    margin: 4px 0;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #3b82f6;
    font-size: 14px;
}

.swp_rota_unmatched_item i {
    color: #3b82f6;
    margin-right: 8px;
}

/* ============================================================================
   Group Sync Badges (Register + Rota)
   ============================================================================ */

.swp_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;
}

.swp_reg_member_badge_group i {
    font-size: 12px;
}

.swp_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;
}

.swp_reg_member_inactive {
    opacity: 0.5;
}

.swp_reg_member_inactive .swp_reg_member_name {
    text-decoration: line-through;
}

/* Linked Group dropdown on Members/People tab */
.swp_reg_linkedgroup_wrap {
    padding: 10px 15px 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.swp_reg_linkedgroup_wrap .swp_formfieldtitle {
    font-size: 13px;
    margin-bottom: 5px;
    color: #555;
}

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

.swp_reg_linkedgroup_row .select_singleframe,
.swp_reg_linkedgroup_row .select_multiframe {
    flex: 1;
}

.swp_reg_linkedgroup_row .swp_save_button {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Linked Group row - dropdown + sync button side by side */
.swp_reg_linkedgroup_row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.swp_reg_linkedgroup_row .select_singleframe,
.swp_reg_linkedgroup_row .select_multiframe {
    flex: 1;
}

.swp_reg_linkedgroup_row .swp_save_button {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Rota table header consistency */
.swp_rota_table thead th {
    vertical-align: middle;
}

.swp_rota_th_content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 28px;
}

.swp_rota_th_content span {
    flex: 1;
}

.swp_rota_col_clear {
    cursor: pointer;
    opacity: 0.4;
    font-size: 14px;
    flex-shrink: 0;
}

.swp_rota_col_clear:hover {
    opacity: 1;
    color: #e74c3c;
}

/* Sync modal group checkboxes */
.swp_rota_sync_grouplabel:hover {
    background: #f5f5f5;
}

/* Grid view (frontend public) */
.swp_rota_table_grid {
    font-size: 12px;
}

.swp_rota_table_grid .swp_rota_th_date_col {
    text-align: center;
    font-size: 11px;
    min-width: 70px;
    padding: 6px 4px;
}

.swp_rota_table_grid .swp_rota_th_date_col div:first-child {
    font-weight: 500;
    color: #6b7280;
    font-size: 10px;
}

.swp_rota_th_today {
    background: #eff6ff !important;
    border-bottom: 2px solid #3b82f6 !important;
}

.swp_rota_td_person {
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.swp_rota_person_dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.swp_rota_td_pv {
    text-align: center;
    vertical-align: middle;
    padding: 4px;
}

.swp_rota_td_pv_empty {
    background: #fafafa;
}

.swp_rota_td_today {
    background: #f0f7ff !important;
}

.swp_rota_td_past {
    opacity: 0.5;
}

.swp_rota_pv_role {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    margin: 1px;
    white-space: nowrap;
}

.swp_rota_pv_lead {
    background: #dbeafe;
    color: #1e40af;
}

.swp_rota_pv_helper {
    background: #f3e8ff;
    color: #7c3aed;
}

/* ============================================================
   Top Bar - Navigation Controls & Action Buttons
   ============================================================ */

#swp_inlinemenu {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Navigation controls (search, filters) */
.swp_nav_controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    position: relative;
}

.swp_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;
}

.swp_nav_search:focus-within {
    background: #fff;
    border-color: var(--accent1);
}

.swp_nav_search i {
    color: #999;
    font-size: 15px;
    flex-shrink: 0;
}

.swp_nav_search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    width: 100%;
    color: #333;
}

.swp_nav_search input::placeholder {
    color: #aaa;
}

/* Filter dropdowns container — visible inline on PC, hidden dropdown on mobile */
.swp_nav_filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Filter toggle icon — hidden on PC, shown on mobile */
.swp_nav_filter_toggle {
    display: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

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

.swp_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;
}

.swp_lib_filter_select:focus {
    outline: none;
    border-color: var(--accent1, #2a9d8f);
}

.swp_lib_filter_clear {
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
}

.swp_lib_filter_clear:hover {
    color: #e74c3c;
}

/* Filter icon button in nav bar */
.swp_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;
}

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

/* Ensure SweetAlert2 appears above popups */
.swal2-container {
    z-index: 200000 !important;
}

/* Filter modal popup */
.swp_filter_modal_popup {
    max-width: 480px !important;
    overflow: visible !important;
}

.swp_filter_modal_popup .swal2-content,
.swp_filter_modal_popup .swal2-html-container {
    overflow: visible !important;
    z-index: 2;
}

.swp_filter_modal_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    text-align: left;
}

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

.swp_filter_modal_field label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.swp_filter_modal_field .select_singleframe {
    width: 100% !important;
    min-width: 0 !important;
}

@media (max-width: 480px) {
    .swp_filter_modal_grid {
        grid-template-columns: 1fr;
    }
}

/* Action buttons in top bar */
.swp_nav_actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Icon button (ellipsis etc) */
.swp_nav_icon_btn {
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

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

/* More actions dropdown */
.swp_nav_dropdown_wrap {
    position: relative;
}

.swp_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;
}

.swp_nav_dropdown>div,
.swp_nav_dropdown>a,
.swp_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;
}

.swp_nav_dropdown>div:hover,
.swp_nav_dropdown>a:hover,
.swp_nav_dropdown>form>a:hover {
    background: #f5f5f5;
}

.swp_nav_dropdown>div i,
.swp_nav_dropdown>a i,
.swp_nav_dropdown>form>a i {
    font-size: 16px;
    color: #888;
    width: 18px;
    text-align: center;
}

.swp_nav_dropdown>form {
    margin: 0;
    padding: 0;
}

.swp_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;
}

.swp_nav_btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

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

.swp_nav_btn_primary {
    background: var(--accent1);
    border-color: var(--accent1);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.swp_nav_btn_primary:hover {
    filter: brightness(1.08);
    background: var(--accent1);
    border-color: var(--accent1);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Icon-only nav buttons (no text span) — square aspect */
.swp_nav_btn:not(:has(span)) {
    padding: 7px 10px;
}

/* Gap between adjacent inline-block button wrappers */
.swp_caldelete + .swp_inlineblock,
.swp_caledit + .swp_inlineblock,
.swp_calrefresh + .swp_inlineblock,
.swp_inlineblock + .swp_inlineblock {
    margin-left: 4px;
}

/* Members & Groups pages */
.swp_members_page,
.swp_groups_page {
    padding: 28px 24px 16px;
    margin: 0 16px;
}

/* Two-column layout for ultra-wide screens */
@media (min-width: 1800px) {
    .swp_members_list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .swp_members_list_header {
        grid-column: 1 / -1;
    }
}

/* Mobile responsive — compact buttons */
@media (max-width: 900px) {
    .swp_nav_search {
        min-width: 120px;
    }

    .swp_nav_btn span {
        display: none;
    }

    .swp_nav_btn {
        padding: 7px 10px;
    }

    .swp_topbuttonbar {
        position: relative;
    }

    .swp_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) */
    .swp_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) {
    .swp_groups_card_actions {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
        position: static !important;
    }

    .swp_members_actions {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .swp_blog_card_actions {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* =============================================
   BLOGS PAGE — MODERN CARDS
   ============================================= */

.swp_blogs_page {
    padding: 28px 24px 16px;
    margin: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.swp_blog_card {
    position: relative;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 16px 20px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

/* Lift card above overlay (z-index 8000) when its dropdown is open */
.swp_blog_card:has(.swp_nav_dropdown[style*="block"]) {
    z-index: 8001;
}

.swp_blog_card:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.swp_blog_card_header {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.swp_blog_card_title_row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding-right: 32px;
}

.swp_blog_card_title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swp_blog_card_toggle {
    font-size: 16px;
    color: #999;
    flex-shrink: 0;
    transition: color 0.12s;
}

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

.swp_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;
}

.swp_blog_status_published {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.swp_blog_status_draft {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.swp_blog_card_actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.swp_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 */
.swp_blog_card_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
}

.swp_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;
}

.swp_blog_tag i {
    font-size: 12px;
}

.swp_blog_tag a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.12s;
}

.swp_blog_tag a:hover {
    opacity: 0.7;
    text-decoration: none;
}

.swp_blog_tag_topic {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}

.swp_blog_tag_topic a {
    color: #2563eb;
}

.swp_blog_tag_series {
    background: rgba(139, 92, 246, 0.08);
    color: #7c3aed;
}

.swp_blog_tag_series a {
    color: #7c3aed;
}

/* Blog pagination */
.swp_blogs_page .swp_getpages {
    padding: 16px 0;
}

/* Two-column blogs on ultra-wide */
@media (min-width: 1800px) {
    .swp_blogs_page {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .swp_blogs_page .swp_getpages {
        grid-column: 1 / -1;
    }
}

/* ===== PUBLIC BLOG POST STYLES ===== */

.swp_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;
}

.swp_blog_post_card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px 28px;
    margin: 0 auto 12px;
    max-width: 780px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.swp_blog_post_card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.swp_blog_post_header {
    text-align: center;
    margin-bottom: 16px;
}

.swp_blog_post_title {
    font-size: 1.8em;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.3;
}

.swp_blog_post_card_title {
    font-size: 1.25em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
}

.swp_blog_post_meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666;
}

.swp_blog_post_meta i {
    margin-right: 4px;
    color: #999;
}

.swp_blog_post_author,
.swp_blog_post_date {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.swp_blog_post_tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.swp_blog_post_body {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.swp_blog_post_body p {
    margin: 0 0 16px;
}

.swp_blog_post_empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
}

.swp_blog_post_empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    color: #ccc;
}

.swp_blog_post_card .swp_blog_post_header {
    text-align: left;
}

.swp_blog_post_card .swp_blog_post_meta {
    justify-content: flex-start;
}

.swp_blog_post_card .swp_blog_post_tags {
    justify-content: flex-start;
}

/* =============================================
   MESSAGES PAGE — MODERN LIST
   ============================================= */

.swp_messages_page {
    padding: 28px 24px 16px;
    margin: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.swp_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;
}

.swp_msg_item:hover {
    background: #f9fafb;
}

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

.swp_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;
}

.swp_msg_content {
    flex: 1;
    min-width: 0;
}

.swp_msg_title_row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.swp_msg_title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.swp_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;
}

.swp_msg_badge_group {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.swp_msg_badge_private {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.swp_msg_badge_whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: #128c7e;
}

.swp_msg_badge_sms {
    background: rgba(52, 152, 219, 0.12);
    color: #2980b9;
}
.swp_msg_badge_pending {
    background: rgba(243, 156, 18, 0.15);
    color: #e67e22;
}

.swp_msg_preview {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.swp_msg_meta {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swp_msg_arrow {
    color: #ccc;
    font-size: 16px;
    flex-shrink: 0;
    transition: color 0.12s;
}

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

/* Empty state */
.swp_msg_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
    text-align: center;
}

.swp_msg_empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 12px;
}

.swp_msg_empty p {
    font-size: 15px;
    color: #888;
    margin: 0;
}

/* =============================================
   SPLIT-PANE MESSAGING LAYOUT (≥1200px)
   ============================================= */

body.swp_splitpane_active {
    overflow: hidden;
}

body.swp_splitpane_active #swp_frame {
    display: flex;
    flex-wrap: wrap;
    height: 100vh;
    overflow: hidden;
}

body.swp_splitpane_active .swp_topbuttonbar {
    width: 100%;
    flex-shrink: 0;
    z-index: 10;
    background: #fff;
    box-sizing: border-box;
    position: sticky;
    top: 0;
}

body.swp_splitpane_active .swp_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.swp_splitpane_active .swp_msg_item {
    border-radius: 10px;
    margin-bottom: 2px;
    padding: 12px 14px;
    border-bottom: none;
    transition: background 0.12s;
}

body.swp_splitpane_active .swp_msg_item:hover {
    background: #eef1f5;
}

body.swp_splitpane_active .swp_msg_item.swp_msg_active {
    background: color-mix(in srgb, var(--accent1) 12%, white);
    border-left: 3px solid var(--accent1);
}

body.swp_splitpane_active .swp_msg_item.swp_msg_active .swp_msg_title {
    color: var(--accent1);
}

body.swp_splitpane_active .swp_msg_item .swp_msg_arrow {
    display: none;
}

/* Popup becomes inline right panel — below the top menu bar */
body.swp_splitpane_active #swp_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.swp_splitpane_active #swp_message > .swp_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 */
.swp_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;
}

.swp_chatpanel_empty i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 16px;
}

.swp_chatpanel_empty p {
    font-size: 16px;
    color: #999;
    margin: 0;
}

.swp_chatpanel_empty span {
    font-size: 13px;
    color: #bbb;
    margin-top: 4px;
}

/* Hide loading overlay background in split pane */
body.swp_splitpane_active .swp_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;
}

/* Date separators */
.swp_date_separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    margin: 8px 0;
    position: relative;
}

.swp_date_separator::before,
.swp_date_separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.swp_date_separator span {
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Message grouping - consecutive messages from same author */
.swp_msg_grouped {
    margin-bottom: 2px !important;
}

.swp_msg_grouped .swp_messagedatefrom {
    display: none;
}

.swp_msg_group_last {
    margin-bottom: 12px;
}

/* Consecutive own messages - reduce tail radius */
.swp_mymessage.swp_msg_grouped {
    border-radius: 16px 16px 4px 16px;
}

.swp_friendmessage.swp_msg_grouped {
    border-radius: 16px 16px 16px 4px;
}

/* Empty conversation state */
.swp_chat_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #bbb;
    text-align: center;
    flex: 1;
}

.swp_chat_empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 12px;
}

.swp_chat_empty p {
    font-size: 15px;
    color: #999;
    margin: 0;
}

/* New message indicator pill */
.swp_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: swp_pill_fadein 0.2s ease;
    width: fit-content;
    margin: 0 auto;
}

.swp_new_msg_pill:hover {
    filter: brightness(1.1);
}

.swp_new_msg_pill i {
    font-size: 14px;
}

@keyframes swp_pill_fadein {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Delivery status ticks */
.swp_msg_status {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    font-size: 12px;
    vertical-align: middle;
}

.swp_msg_status_sent {
    color: rgba(255,255,255,0.5);
}

.swp_msg_status_delivered {
    color: rgba(255,255,255,0.7);
}

.swp_friendmessage .swp_msg_status {
    display: none;
}

/* Channel filter count badges */
.swp_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;
}

.swp_filter_active .swp_filter_count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Typing indicator */
.swp_typing_indicator {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.swp_typing_indicator.active {
    display: flex;
}

.swp_typing_dots {
    display: flex;
    gap: 3px;
    align-items: center;
}

.swp_typing_dots span {
    width: 6px;
    height: 6px;
    background: #bbb;
    border-radius: 50%;
    animation: swp_typing_bounce 1.4s infinite;
}

.swp_typing_dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.swp_typing_dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes swp_typing_bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Unread count on sidebar items */
.swp_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)
   ============================================= */

.swp_popup_actions {
    padding: 12px 0 0;
    border-top: 1px solid #eee;
    margin-top: 8px;
}

.swp_popup_actions_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

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

.swp_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;
}

.swp_popup_btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

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

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

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

/* =============================================
   MOBILE — BLOGS & MESSAGES
   ============================================= */

@media (max-width: 900px) {

    .swp_blogs_page,
    .swp_messages_page {
        padding: 16px 12px;
        margin: 0 8px;
    }

    .swp_blog_card {
        padding: 12px 14px;
    }

    .swp_blog_card_title {
        font-size: 14px;
    }

    .swp_msg_item {
        padding: 12px 10px;
        gap: 10px;
    }

    .swp_msg_icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .swp_popup_actions_row {
        flex-direction: column;
        align-items: stretch;
    }

    .swp_popup_actions_buttons {
        justify-content: flex-end;
    }

    .swp_blog_card_actions {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* =============================================
   SHARED MODAL STYLES (cross-page)
   ============================================= */

.swp_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;
}

.swp_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;
}

.swp_rota_modal_header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 600;
}

.swp_rota_modal_header i {
    color: #3b82f6;
}

.swp_rota_modal_close {
    margin-left: auto;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.swp_rota_modal_close:hover {
    color: #333;
}

.swp_rota_modal_body {
    padding: 20px;
    overflow-y: auto;
}

.swp_rota_modal_footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Menu headers and dividers */
.swp_rota_menu_header {
    padding: 8px 15px 4px 15px;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.swp_rota_menu_divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

/* =============================================
   SHARE MODAL (cross-page)
   ============================================= */

.swp_share_modal {
    max-width: 400px;
}

.swp_share_modal .swp_rota_modal_body {
    padding: 15px 20px;
}

.swp_share_modal .swp_rota_share_link_wrap {
    margin-bottom: 12px;
}

.swp_share_modal .swp_rota_share_input {
    font-size: 12px;
    padding: 8px 10px;
}

.swp_share_modal .swp_save_button {
    padding: 8px 12px;
    min-width: auto;
}

.swp_rota_share_btn_open {
    background: var(--accent1, #2a9d90) !important;
    color: #fff !important;
}

.swp_rota_share_btn_open:hover {
    background: var(--accent2, #238b7e) !important;
}

.swp_rota_share_content {
    padding: 10px 0;
}

.swp_rota_share_content p {
    margin-bottom: 15px;
    color: #555;
}

.swp_rota_share_link_wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.swp_rota_share_input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #f9f9f9;
}

.swp_rota_share_input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
}

.swp_rota_share_buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.swp_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;
}

.swp_rota_share_btn:hover {
    background: #eee;
    border-color: #ccc;
}

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

.swp_rota_share_btn .la-envelope {
    color: #3b82f6;
}

.swp_rota_share_btn .la-whatsapp {
    color: #25D366;
}

/* Share modal - advanced options */
.swp_share_advanced_toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0 4px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

.swp_share_advanced_toggle:hover {
    color: #374151;
}

.swp_share_advanced_toggle .la-cog {
    font-size: 15px;
}

.swp_share_advanced_toggle .la-chevron-down,
.swp_share_advanced_toggle .la-chevron-up {
    font-size: 11px;
    margin-left: auto;
}

.swp_share_advanced_panel {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 6px;
}

.swp_share_adv_row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.swp_share_adv_row>label {
    flex: 0 0 120px;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.swp_share_adv_row>select,
.swp_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;
}

.swp_share_adv_row>select:focus,
.swp_share_adv_row>input[type="date"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.swp_share_adv_row_check label {
    flex: 1 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.swp_share_adv_row_check input[type="checkbox"] {
    accent-color: #6366f1;
}

.swp_share_adv_row_reset {
    justify-content: flex-end;
    margin-bottom: 0;
    padding-top: 4px;
    border-top: 1px solid #f3f4f6;
}

/* =============================================
   CREATE NEW MODAL (Database page)
   ============================================= */

.swp_createnew_modal {
    max-width: 400px;
}

.swp_createnew_modal .swp_rota_modal_body {
    padding: 0;
}

.swp_createnew_options {
    display: flex;
    flex-direction: column;
}

.swp_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;
}

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

.swp_createnew_option:hover {
    background: #fafafa;
}

.swp_createnew_option_form .swp_createnew_icon {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.swp_createnew_option_form:hover {
    border-left-color: #64748b;
}

.swp_createnew_option_register .swp_createnew_icon {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #059669;
}

.swp_createnew_option_register:hover {
    border-left-color: #059669;
}

.swp_createnew_option_rota .swp_createnew_icon {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
}

.swp_createnew_option_rota:hover {
    border-left-color: #c2410c;
}

.swp_createnew_icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.swp_createnew_icon i {
    font-size: 20px;
}

.swp_createnew_text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.swp_createnew_text strong {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

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

/* =============================================
   IMPORT PREVIEW (cross-page)
   ============================================= */

.swp_rota_import_preview {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}

.swp_rota_import_preview_header {
    padding: 10px 12px;
    background: #f3f4f6;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #e5e7eb;
}

.swp_rota_import_preview_table {
    padding: 10px;
    overflow-x: auto;
}

.swp_rota_import_preview_table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.swp_rota_import_preview_table th,
.swp_rota_import_preview_table td {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}

.swp_rota_import_preview_table th {
    background: #fff;
    font-weight: 600;
}

.swp_rota_import_preview_table td {
    background: #fff;
}

.swp_rota_import_options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.swp_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;
}

.swp_rota_import_option:hover {
    background: #f3f4f6;
}

.swp_rota_import_option input[type="radio"] {
    margin-top: 2px;
}

.swp_rota_import_option input[type="radio"]:checked+strong {
    color: var(--accent1, #2a9d90);
}

/* =============================================
   TOAST NOTIFICATIONS (cross-page)
   ============================================= */

.swp_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;
}

.swp_toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.swp_toast i {
    font-size: 18px;
}

.swp_toast_tick,
.swp_toast_success {
    background: #10b981;
}

.swp_toast_error {
    background: #ef4444;
}

.swp_toast_warning {
    background: #f59e0b;
}

.swp_toast_info {
    background: #3b82f6;
}

/* Rota column visibility toggle */
.swp_rota_col_hidden {
    opacity: 0.4;
}

.swp_rota_column_item:has(.swp_rota_col_hidden) .swp_rota_col_name {
    opacity: 0.45;
    text-decoration: line-through;
}

/* Rota break rows */
.swp_rota_row_break td.swp_rota_td_break {
    background: #f1f5f9;
    text-align: center;
    padding: 12px 16px;
    border-left: none;
    border-right: none;
}

.swp_rota_break_text {
    font-weight: 600;
    font-style: italic;
    color: #64748b;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.swp_rota_break_card {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 14px 20px;
    text-align: center;
    margin-bottom: 8px;
}

.swp_rota_break_toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}

.swp_rota_break_toggle input {
    margin: 0;
}

/* ============================================= */
/* Custom Fields Manager (Members)               */
/* ============================================= */

/* Manager modal */
.swp_cf_manager_content {
    max-width: 560px;
}

.swp_cf_manager_desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Fields list */
.swp_cf_fields_list {
    margin-bottom: 16px;
    min-height: 40px;
}

.swp_cf_empty {
    text-align: center;
    padding: 30px 16px;
    color: #999;
}

.swp_cf_empty i {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.swp_cf_empty p {
    margin: 0;
    font-size: 13px;
}

.swp_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;
}

.swp_cf_field_item:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.swp_cf_drag_handle {
    color: #ccc;
    cursor: grab;
    font-size: 16px;
}

.swp_cf_drag_handle:active {
    cursor: grabbing;
}

.swp_cf_field_info {
    flex: 1;
    min-width: 0;
}

.swp_cf_field_name {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.swp_cf_field_type {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.swp_cf_field_type i {
    margin-right: 3px;
}

.swp_cf_field_actions {
    display: flex;
    gap: 8px;
}

.swp_cf_field_actions i {
    cursor: pointer;
    color: #999;
    font-size: 16px;
    transition: color 0.15s;
}

.swp_cf_field_actions i:hover {
    color: #333;
}

.swp_cf_field_actions i.la-trash:hover {
    color: #e53e3e;
}

/* Type picker modal */
.swp_cf_typepicker_content {
    max-width: 480px;
}

.swp_cf_typepicker_body {
    margin-bottom: 12px;
}

.swp_cf_typepicker_cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin: 14px 0 8px;
}

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

.swp_cf_typepicker_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.swp_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;
}

.swp_cf_typepicker_item:hover {
    border-color: var(--swp_colour_accent, #4f46e5);
    background: color-mix(in srgb, var(--swp_colour_accent, #4f46e5) 6%, white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.swp_cf_typepicker_item i {
    font-size: 22px;
    color: var(--swp_colour_accent, #4f46e5);
}

.swp_cf_typepicker_item span {
    font-size: 12px;
    font-weight: 500;
    color: #444;
}

/* Editor modal */
.swp_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;
}

.swp_cf_edit_type_badge i {
    color: var(--swp_colour_accent, #4f46e5);
}

/* Switch toggle for custom fields */
.swp_cf_switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.swp_cf_switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.swp_cf_switch_slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 22px;
    transition: 0.2s;
}

.swp_cf_switch_slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

.swp_cf_switch input:checked+.swp_cf_switch_slider {
    background: var(--swp_colour_accent, #4f46e5);
}

.swp_cf_switch input:checked+.swp_cf_switch_slider::before {
    transform: translateX(18px);
}

/* Currency input */
.swp_cf_currency_wrap {
    display: flex;
    align-items: center;
    gap: 0;
}

.swp_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;
}

.swp_cf_currency_wrap .swp_members_form_input {
    border-radius: 0 6px 6px 0;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .swp_cf_typepicker_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Star rating field */
.swp_cf_star_wrap {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 0;
}

.swp_cf_star {
    transition: color 0.15s, transform 0.15s;
}

.swp_cf_star:hover {
    transform: scale(1.2);
}

/* Slider field */
.swp_cf_slider_wrap {
    width: 100%;
}

.swp_cf_slider_labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.swp_cf_slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    flex: 1;
}

.swp_cf_slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--swp_colour_accent, #4f46e5);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.swp_cf_slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--swp_colour_accent, #4f46e5);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.swp_cf_slider_value {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    min-width: 40px;
    text-align: center;
}

/* Colour picker field */
.swp_cf_colour_input {
    width: 40px;
    height: 32px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.swp_cf_colour_input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.swp_cf_colour_input::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.swp_cf_colour_hex {
    font-family: monospace;
    font-size: 12px;
    color: #666;
}

/* Switch label */
.swp_cf_switch_label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

/* View mode - slider bar */
.swp_cf_view_slider_bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    max-width: 120px;
}

.swp_cf_view_slider_fill {
    height: 100%;
    background: var(--swp_colour_accent, #4f46e5);
    border-radius: 3px;
    transition: width 0.3s;
}

/* Contact Stats Modal */
.swp_stats_modal_content {
    max-width: 480px;
}

.swp_stats_total_row {
    font-size: 18px;
    color: #334155;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8ecf0;
}

.swp_stats_total_row i {
    color: var(--swp_colour_accent, #4f46e5);
    margin-right: 4px;
}

.swp_stats_section_title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin: 14px 0 8px;
}

.swp_stats_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.swp_stats_card {
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.swp_stats_card_count {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.swp_stats_card_label {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.swp_stats_card_bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.swp_stats_card_bar div {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s;
}

.swp_stats_group_list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.swp_stats_group_row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.swp_stats_group_name {
    font-size: 13px;
    color: #334155;
    min-width: 100px;
    flex-shrink: 0;
}

.swp_stats_group_bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.swp_stats_group_bar div {
    height: 100%;
    background: var(--swp_colour_accent, #4f46e5);
    border-radius: 3px;
    opacity: 0.6;
}

.swp_stats_group_count {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    min-width: 28px;
    text-align: right;
}

/* Contact Types Management */
.swp_cf_section_title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8ecf0;
}

.swp_cf_section_title i {
    color: var(--swp_colour_accent, #4f46e5);
    margin-right: 4px;
}

.swp_ct_types_list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.swp_ct_type_item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid #e8ecf0;
    border-radius: 6px;
}

.swp_ct_colour_pick {
    width: 28px;
    height: 22px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1px;
    cursor: pointer;
    background: none;
    flex-shrink: 0;
}

.swp_ct_colour_pick::-webkit-color-swatch-wrapper {
    padding: 0;
}

.swp_ct_colour_pick::-webkit-color-swatch {
    border: none;
    border-radius: 3px;
}

.swp_ct_type_label {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}

.swp_ct_type_delete {
    cursor: pointer;
    color: #ccc;
    font-size: 15px;
    transition: color 0.15s;
}

.swp_ct_type_delete:hover {
    color: #e53e3e;
}

.swp_ct_add_row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.swp_ct_add_row .swp_input {
    font-size: 13px;
    padding: 6px 10px;
}

/* =============================================
   FAMILY LINKING STYLES
   ============================================= */

/* Family role badge */
.swp_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;
}

.swp_family_role_badge i {
    font-size: 12px;
}

/* Self role display */
.swp_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 */
.swp_family_myrole_row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid #f3f4f6;
    background: #fefce8;
}

.swp_family_myrole_label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

/* Leave / delete group button in header */
.swp_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;
}

.swp_family_leave_btn:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* Family empty state */
.swp_family_empty {
    text-align: center;
    padding: 30px 16px;
}

/* Family group container */
.swp_family_group {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: visible;
}

.swp_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;
}

.swp_family_group_header i {
    font-size: 16px;
    color: #9ca3af;
}

.swp_family_group_count {
    margin-left: auto;
    font-weight: 400;
    font-size: 12px;
    color: #9ca3af;
}

.swp_family_group_empty {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

/* Family member card */
.swp_family_member_card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.12s;
}

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

.swp_family_member_card:hover {
    background: #f9fafb;
}

.swp_family_group_edit .swp_family_member_card {
    cursor: default;
}

.swp_family_group_edit .swp_family_member_card:hover {
    background: transparent;
}

/* Member avatar */
.swp_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 */
.swp_family_member_info {
    flex: 1;
    min-width: 0;
}

.swp_family_member_name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swp_family_member_meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    flex-wrap: wrap;
}

/* Remove button in edit mode */
.swp_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;
}

.swp_family_remove_btn:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* Add member row in edit mode */
.swp_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 */
.swp_family_dropdown_spacer {
    height: 220px;
    pointer-events: none;
}

/* Ensure select dropdown appears above family cards */
.swp_family_add_row .select_dropdown,
.swp_family_join_picker .select_dropdown {
    z-index: 9999;
}

/* Action buttons row */
.swp_family_actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Join picker */
.swp_family_join_picker {
    padding: 12px 0;
}

/* Family icon in contact list */
.swp_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) */
.swp_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;
}

.swp_family_manage_badge i {
    font-size: 12px;
}

/* Can manage row (edit mode — self) */
.swp_family_manage_row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid #f3f4f6;
    background: #f0fdf4;
}

.swp_family_manage_label {
    font-size: 13px;
    color: #374151;
}

/* Toggle switch */
.swp_family_manage_toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 6px;
    user-select: none;
}

.swp_family_manage_toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.swp_family_manage_slider {
    width: 34px;
    height: 18px;
    background: #d1d5db;
    border-radius: 9px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}

.swp_family_manage_slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.swp_family_manage_toggle input:checked+.swp_family_manage_slider {
    background: #22c55e;
}

.swp_family_manage_toggle input:checked+.swp_family_manage_slider::after {
    transform: translateX(16px);
}

/* Inline manage toggle on member cards */
.swp_family_manage_toggle_inline {
    margin-left: 4px;
}

.swp_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 ---- */
.swp_lib_type_dropdown {
    position: relative
}

.swp_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
}

.swp_lib_type_current:hover {
    border-color: var(--swp_accent1);
    background: #fff
}

#swp_lib_type_label {
    flex: 1;
    text-align: center;
    padding: 0 4px
}

.swp_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
}

.swp_lib_type_arrow:hover {
    color: var(--swp_accent1);
    background: rgba(0, 0, 0, .05)
}

.swp_lib_type_arrow_disabled {
    color: #ccc !important;
    pointer-events: none
}

.swp_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
}

.swp_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
}

.swp_lib_type_item:hover {
    background: #f5f5f5
}

.swp_lib_type_item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #888
}

.swp_lib_type_item_active {
    background: color-mix(in srgb, var(--swp_accent1) 10%, #fff);
    color: var(--swp_accent1);
    font-weight: 600
}

.swp_lib_type_item_active i {
    color: var(--swp_accent1)
}

/* ---- View switching ---- */
.swp_lib_view {
    display: none;
    padding: 16px 20px;
    animation: swp_libFade .2s ease
}

.swp_lib_view.active {
    display: block
}

@keyframes swp_libFade {
    from {
        opacity: 0;
        transform: translateY(4px)
    }

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

/* ---- Dashboard / Recent ---- */
.swp_lib_stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 24px
}

.swp_lib_stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all .2s;
    text-align: center
}

.swp_lib_stat:hover {
    border-color: var(--swp_accent1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transform: translateY(-2px)
}

.swp_lib_stat_icon {
    font-size: 24px;
    color: var(--swp_accent1);
    margin-bottom: 6px
}

.swp_lib_stat_num {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b
}

.swp_lib_stat_label {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px
}

.swp_lib_recent_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px
}

.swp_lib_recent_header h3 {
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px
}

.swp_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
}

.swp_lib_recent_item:hover {
    border-color: color-mix(in srgb, var(--swp_accent1) 30%, #e2e8f0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06)
}

.swp_lib_recent_icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0
}

.swp_lib_recent_icon.activity {
    background: color-mix(in srgb, var(--swp_accent1) 10%, #fff);
    color: var(--swp_accent1)
}

.swp_lib_recent_icon.document {
    background: #eff6ff;
    color: #3b82f6
}

.swp_lib_recent_icon.image {
    background: #faf5ff;
    color: #8b5cf6
}

.swp_lib_recent_icon.video {
    background: #fef2f2;
    color: #ef4444
}

.swp_lib_recent_icon.audio {
    background: #fefce8;
    color: #eab308
}

.swp_lib_recent_info {
    flex: 1;
    min-width: 0
}

.swp_lib_recent_title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.swp_lib_recent_meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px
}

.swp_lib_recent_badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    flex-shrink: 0
}

/* ---- Activity Card Enhancements ---- */
.swp_content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 16px 20px;
    transition: box-shadow .2s, border-color .2s;
    position: relative
}

.swp_content:hover {
    border-color: color-mix(in srgb, var(--swp_accent1) 25%, #e2e8f0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06)
}

.swp_taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 6px 0
}

.swp_topicwrap,
.swp_serieswrap,
.swp_durationwrap {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 11px;
    color: #64748b
}

.swp_topicwrap b,
.swp_serieswrap b,
.swp_durationwrap b {
    font-weight: 600;
    color: #1e293b
}

.swp_goalbox {
    border-left: 3px solid var(--swp_accent1);
    border-radius: 0 6px 6px 0;
    background: color-mix(in srgb, var(--swp_accent1) 5%, #fff);
    padding: 8px 12px;
    margin: 6px 0
}

.swp_goalbox .swp_fieldtitle b {
    color: var(--swp_accent1);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px
}

.swp_descriptionbox,
.swp_equipmentbox {
    margin: 6px 0;
    font-size: 13px;
    color: #64748b
}

.swp_descriptionbox .swp_fieldtitle b,
.swp_equipmentbox .swp_fieldtitle b {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: #64748b
}

.swp_attachmentslist {
    margin: 6px 0
}

.swp_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
}

.swp_attachment:hover {
    border-color: var(--swp_accent1)
}

.swp_attachment a {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #1e293b
}

.swp_more_button,
.swp_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
}

.swp_more_button:hover,
.swp_less_button:hover {
    border-color: var(--swp_accent1);
    color: var(--swp_accent1)
}

/* ---- Kebab Menu Enhancements ---- */
.swp_ellipsis {
    padding: 4px 6px;
    border-radius: 4px;
    transition: background .15s
}

.swp_ellipsis:hover {
    background: #f1f5f9
}

.swp_dropdown-content {
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    padding: 4px
}

.swp_dropdown-content a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 6px;
    transition: background .1s
}

.swp_dropdown-content a:hover {
    background: #f1f5f9
}

.swp_dropdown-content a.danger {
    color: #ef4444
}

/* ---- Media Grid ---- */
.swp_media_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start
}

.swp_media_grid .swp_mediaitem,
.swp_media_grid .swp_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
}

.swp_media_grid .swp_mediaitem {
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .03)
}

.swp_media_grid .swp_mediaitem:hover {
    border-color: color-mix(in srgb, var(--swp_accent1) 40%, #e2e8f0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    transform: translateY(-2px)
}

.swp_media_grid .swp_mediaitemselected {
    border: 1px solid var(--accent1);
    outline: 2px solid var(--accent1);
    outline-offset: -1px
}

.swp_media_grid .swp_mediaboximg {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    overflow: hidden
}

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

.swp_media_grid .swp_mediaboximg canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.swp_media_grid .swp_mediabox {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #94a3b8
}

.swp_media_grid .swp_mediaboxvid {
    width: 100%;
    aspect-ratio: 4/3;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden
}

.swp_media_grid .swp_mediaboxvid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .7
}

.swp_youtubeoverlay,
.swp_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)
}

.swp_media_grid .swp_mediafilename {
    padding: 7px 8px;
    font-size: 10px;
    color: #64748b;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 3px;
    justify-content: center
}

.swp_mediafileselect {
    font-size: 14px;
    color: transparent;
    transition: color .15s
}

.swp_mediafileselected {
    font-size: 14px;
    color: var(--swp_accent1);
    text-shadow: 0 0 4px color-mix(in srgb, var(--swp_accent1) 30%, transparent)
}

.swp_moverlay {
    position: absolute;
    top: 15px;
    left: -25px;
    width: 100px;
    padding: 2px;
    background-color: var(--swp_accent1);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .5px;
    transform: rotate(-45deg);
    z-index: 2
}

.swp_mimageunderlay {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.swp_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
}

.swp_addmediaitem:hover {
    border-color: var(--swp_accent1);
    background: color-mix(in srgb, var(--swp_accent1) 5%, #fff)
}

.swp_addmediaitem .swp_mediabox {
    background: transparent;
    font-size: 28px;
    color: var(--swp_accent1)
}

.swp_addmediaitem .swp_mediafilename {
    color: var(--swp_accent1);
    font-weight: 600;
    border-top: none;
    background: transparent
}

/* ---- Bucket / Series / Group Containers ---- */
.swp_mediabuckets,
.swp_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 */

.swp_mbtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
}

.swp_mbtitle h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px
}

.swp_mbtitle h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--swp_accent1);
    border-radius: 2px
}

.swp_bucketcontent {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start
}

/* ---- Empty States ---- */
.swp_lib_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    text-align: center;
    color: #94a3b8
}

.swp_lib_empty i {
    font-size: 40px;
    color: #cbd5e1;
    margin-bottom: 12px
}

.swp_lib_empty h3 {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px
}

.swp_lib_empty p {
    font-size: 13px
}

.swp_lib_empty_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 8px 18px;
    background: var(--swp_accent1);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s
}

.swp_lib_empty_btn:hover {
    background: var(--swp_accent2)
}

/* ---- Archive / Bin Notices ---- */
.swp_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
}

.swp_lib_archive_notice i {
    font-size: 18px
}

.swp_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
}

.swp_lib_bin_notice i {
    font-size: 18px
}

/* Nav Filter Toggle hover (V2) */
.swp_nav_filter_toggle:hover {
    color: var(--swp_accent1)
}

/* ---- Media V2: Type label (same as library) ---- */
#swp_med_type_label {
    flex: 1;
    text-align: center;
    padding: 0 4px
}

/* ---- Media V2: "All" tab section labels ---- */
.swp_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
}

.swp_lib_section_label:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0
}

.swp_lib_section_label i {
    font-size: 16px;
    color: #94a3b8
}

.swp_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 ---- */
.swp_moverlay_deleted {
    background-color: #ef4444;
    color: #fff;
    pointer-events: none
}

.swp_moverlay_archived {
    background-color: #94a3b8;
    color: #fff;
    pointer-events: none
}

/* ---- Media V2: Trashed/archived item opacity ---- */
.swp_mediaitem_trashed {
    opacity: 0.75
}

.swp_mediaitem_archived {
    opacity: 0.65
}

/* ---- Media V2: Multi-select active state ---- */
.swp_multiselect_active {
    background: color-mix(in srgb, var(--accent1) 15%, #fff)
}

/* ---- Media V2: Recent badge variants ---- */
.swp_lib_recent_badge_published {
    background: #ecfdf5;
    color: #059669
}

.swp_lib_recent_badge_draft {
    background: #fef3c7;
    color: #92400e
}

/* ---- Media V2: Empty state padding variant ---- */
.swp_lib_empty_padded {
    padding: 30px
}

/* ---- Media V2: Remote media video icon centering ---- */
.swp_mediaboxvid {
    position: relative
}

.swp_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 ---- */
.swp_bucketcontent.swp_media_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0
}

/* ---- Media V2: Taxonomy kebab menu ---- */
.swp_mbtitle {
    position: relative
}

.swp_bucket_kebab {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%)
}

/* ---- Responsive ---- */
@media(max-width:768px) {
    .swp_lib_stats {
        grid-template-columns: repeat(3, 1fr)
    }

    .swp_lib_view {
        padding: 12px 10px
    }

    /* Hide inline filters, show as dropdown on mobile */
    .swp_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
    }

    .swp_nav_filters.open,
    .swp_nav_filters.swp_nav_filters_open {
        display: flex
    }

    .swp_nav_filter_toggle {
        display: block
    }

    /* Center items in flex containers */
    .swp_media_grid,
    .swp_bucketcontent,
    .swp_bucketcontent.swp_media_grid {
        justify-content: center
    }

    .swp_mediaitem,
    .swp_mediaitemselected,
    .swp_addmediaitem,
    .swp_media_grid .swp_mediaitem,
    .swp_media_grid .swp_mediaitemselected,
    .swp_media_grid .swp_addmediaitem {
        width: 110px;
        box-sizing: border-box
    }

    .swp_content {
        padding: 12px 14px
    }

    .swp_mediabuckets,
    .swp_mmediabuckets {
        padding: 10px 10px
    }
}

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

    /* Force all media containers to flex with consistent gap */
    .swp_media_grid,
    .swp_bucketcontent,
    .swp_bucketcontent.swp_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 */
    .swp_mediaitem,
    .swp_mediaitemselected,
    .swp_addmediaitem,
    .swp_media_grid .swp_mediaitem,
    .swp_media_grid .swp_mediaitemselected,
    .swp_media_grid .swp_addmediaitem {
        width: calc(50% - 4px);
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0
    }

    /* Remove horizontal margins from margin helper classes on mobile */
    .swp_mediaitemmargin,
    .swp_mediafilemargin {
        margin-left: 0;
        margin-right: 0
    }

    /* Symmetric container padding */
    .swp_content {
        padding: 10px 8px
    }

    .swp_mediabuckets,
    .swp_mmediabuckets {
        padding: 8px 8px
    }
}

/* ============================================================
   MEDIA V2: Edit Media Popup Styling
   ============================================================ */

/* Header */
#swp_edit_mediapopup .swp_popupheader {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc
}

#swp_edit_mediapopup .swp_emediatitle {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
    margin: 0;
    word-break: break-word
}

/* Content area (preview) */
#swp_edit_mediapopup .swp_popupcontent {
    padding: 16px 20px;
    text-align: center
}

#swp_edit_mediapopup .swp_popupcontent img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: contain
}

/* Taxonomy rows (groups, albums, series, buckets, projects) */
#swp_edit_mediapopup .swp_tagscontent {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-top: 1px solid #f1f5f9;
    min-height: 36px
}

#swp_edit_mediapopup .swp_tagscontent:hover {
    background: #fafbfc
}

/* Tags display */
#swp_edit_mediapopup .swp_popuptags {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: #475569;
    min-height: 24px
}

#swp_edit_mediapopup .swp_popuptags:empty::after {
    content: 'None';
    color: #94a3b8;
    font-style: italic;
    font-size: 12px
}

/* Individual tag chips */
#swp_edit_mediapopup .swp_popuptags span,
#swp_edit_mediapopup .swp_popuptags .select_tag,
#swp_edit_mediapopup .swp_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
}

#swp_edit_mediapopup .swp_popuptags span:hover,
#swp_edit_mediapopup .swp_popuptags .select_tag:hover,
#swp_edit_mediapopup .swp_popuptags a:hover {
    background: #e2e8f0
}

/* Edit pencil icon */
#swp_edit_mediapopup .swp_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
}

#swp_edit_mediapopup .swp_emediaicon:hover {
    background: #f1f5f9;
    color: var(--swp_accent1)
}

#swp_edit_mediapopup .swp_emediaicon i {
    font-size: 15px
}

/* Tag edit mode sections */
#swp_edit_mediapopup .swp_emediagtag,
#swp_edit_mediapopup .swp_emediaatag,
#swp_edit_mediapopup .swp_emediastag,
#swp_edit_mediapopup .swp_emediabtag,
#swp_edit_mediapopup .swp_emediaptag {
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: none
}

#swp_edit_mediapopup .swp_emediagtag .select_multiframe,
#swp_edit_mediapopup .swp_emediaatag .select_multiframe,
#swp_edit_mediapopup .swp_emediastag .select_multiframe,
#swp_edit_mediapopup .swp_emediabtag .select_multiframe,
#swp_edit_mediapopup .swp_emediaptag .select_multiframe {
    margin-bottom: 8px
}

/* Inline save/close buttons in edit mode */
#swp_edit_mediapopup .swp_close_button.swp_inlineblock {
    display: inline-block;
    padding: 5px 14px;
    font-size: 11px;
    margin-right: 6px;
    border-radius: 6px
}

/* Bottom buttons area */
#swp_edit_mediapopup .swp_popupbuttons {
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px
}

#swp_edit_mediapopup .swp_submitbox {
    padding: 0
}

#swp_edit_mediapopup .swp_submitbox .swp_hr {
    margin: 0;
    border: none;
    border-top: 1px solid #e2e8f0
}

#swp_edit_mediapopup .swp_submitbox .swp_poststatus {
    padding: 12px 20px 8px
}

#swp_edit_mediapopup .swp_submitbox .swp_save_button,
#swp_edit_mediapopup .swp_submitbox .swp_close_button {
    margin: 0 0 12px 20px
}

/* Media ID display */
#swp_edit_mediapopup .swp_emediaid {
    padding: 8px 20px;
    font-size: 11px;
    color: #94a3b8;
    text-align: right
}

/* Section labels inside taxonomy rows */
#swp_edit_mediapopup #swp_edit_term::before {
    content: 'Groups';
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    min-width: 60px
}

#swp_edit_mediapopup #swp_edit_album::before {
    content: 'Albums';
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    min-width: 60px
}

#swp_edit_mediapopup #swp_edit_series::before {
    content: 'Series';
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    min-width: 60px
}

#swp_edit_mediapopup #swp_edit_buckets::before {
    content: 'Buckets';
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    min-width: 60px
}

#swp_edit_mediapopup #swp_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 ---- */
.swp_multiselect_mode .swp_mediafileselect {
    color: color-mix(in srgb, var(--accent1) 30%, transparent)
}

.swp_multiselect_mode .swp_activities {
    border-color: color-mix(in srgb, var(--accent1) 30%, #e2e8f0)
}

.swp_multiselect_mode .swp_astick {
    display: inline-block
}

@keyframes swp_fadein {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.swp_newplaceholder {
    font-size: 48px;
    color: var(--swp_accent1, #666);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    opacity: 0.4
}

/* Edit popup: inline term select rows */
.swp_med_termrow {
    padding: 6px 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.swp_med_termlabel {
    font-weight: bold;
    font-size: 13px;
    min-width: 65px;
    padding-top: 6px;
    color: var(--swp_text1, #333);
    flex-shrink: 0;
}

#swp_edit_mediapopup .swp_med_termrow {
    max-width: 400px;
}

#swp_edit_mediapopup .swp_med_termrow .select_multiframe {
    flex: 1;
    min-width: 0;
}

/* Safety: hide old edit panels in case JS hasn't run yet */
#swp_emediagtag,
#swp_emediaatag,
#swp_emediastag,
#swp_emediabtag,
#swp_emediaptag {
    display: none !important;
}

/* ============================================================
   FOLDER BROWSER VIEW
   ============================================================ */

/* Breadcrumb */
.swp_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
}

.swp_fb_crumb {
    font-weight: 500;
    color: #334155
}

.swp_fb_crumb_link {
    cursor: pointer;
    color: var(--swp_accent1);
    transition: color .15s
}

.swp_fb_crumb_link:hover {
    color: color-mix(in srgb, var(--swp_accent1) 70%, #000);
    text-decoration: underline
}

.swp_fb_sep {
    font-size: 10px;
    color: #94a3b8
}

/* Selection bar */
.swp_fb_selbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: color-mix(in srgb, var(--swp_accent1) 8%, #fff);
    border-bottom: 1px solid color-mix(in srgb, var(--swp_accent1) 20%, #e5e7eb);
    font-size: 13px
}

.swp_fb_selcount {
    font-weight: 600;
    color: var(--swp_accent1);
    min-width: 80px
}

.swp_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
}

.swp_fb_selbar button:hover {
    border-color: var(--swp_accent1);
    background: color-mix(in srgb, var(--swp_accent1) 5%, #fff)
}

/* Split layout */
.swp_fb_split {
    display: flex;
    min-height: 400px
}

.swp_fb_left {
    flex: 1;
    min-width: 0;
    transition: flex .25s ease
}

.swp_fb_left_shrink {
    flex: 1 1 55%
}

/* Grid */
.swp_fb_grid {
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

/* Folder cards */
.swp_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)
}

.swp_fb_folder:hover {
    border-color: var(--swp_accent1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transform: translateY(-2px)
}

.swp_fb_folder_icon {
    font-size: 36px;
    color: var(--swp_accent1);
    margin-bottom: 8px;
    opacity: .85
}

.swp_fb_folder_name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px
}

.swp_fb_folder_count {
    font-size: 11px;
    color: #94a3b8
}

/* Item rows */
.swp_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
}

.swp_fb_item:hover {
    background: #f8fafc;
    border-color: #e5e7eb
}

.swp_fb_item_active {
    background: color-mix(in srgb, var(--swp_accent1) 6%, #fff) !important;
    border-color: color-mix(in srgb, var(--swp_accent1) 25%, #e5e7eb) !important
}

.swp_fb_item_selected {
    background: color-mix(in srgb, var(--swp_accent1) 10%, #fff) !important;
    border-color: color-mix(in srgb, var(--swp_accent1) 35%, #e5e7eb) !important
}

.swp_fb_item_selected .swp_fb_item_check i,
.swp_fb_item_active .swp_fb_item_check i {
    color: var(--swp_accent1) !important
}

.swp_fb_item_check {
    width: 20px;
    flex-shrink: 0;
    text-align: center;
    font-size: 16px;
    color: #d1d5db
}

.swp_fb_item:hover .swp_fb_item_check i {
    color: #94a3b8
}

.swp_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
}

.swp_fb_thumb {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.swp_fb_thumb_icon {
    font-size: 18px;
    color: #64748b
}

.swp_fb_item_name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0
}

.swp_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 */
.swp_fb_empty {
    width: 100%;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 15px
}

.swp_fb_empty i {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
    opacity: .5
}

/* Context menu */
.swp_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
}

.swp_fb_ctx_item {
    padding: 8px 16px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .1s
}

.swp_fb_ctx_item:hover {
    background: #f8fafc
}

.swp_fb_ctx_item[data-action="bin"] {
    color: #ef4444
}

.swp_fb_ctx_item[data-action="bin"]:hover {
    background: #fef2f2
}

.swp_fb_ctx_hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 4px 0
}

/* ---- Preview panel ---- */
.swp_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
}

.swp_fb_preview_open {
    width: 320px;
    min-width: 320px;
    overflow-y: auto
}

.swp_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
}

.swp_fb_pv_empty i {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: .6
}

.swp_fb_pv_empty p {
    font-size: 13px;
    margin: 0
}

/* Preview media area */
.swp_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
}

.swp_fb_pv_media_icon {
    font-size: 56px;
    color: #94a3b8;
    min-height: 180px
}

.swp_fb_pv_media_audio {
    flex-direction: column;
    padding: 20px
}

.swp_fb_pv_media_audio i {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 4px
}

.swp_fb_pv_img {
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: contain;
    cursor: pointer;
    transition: opacity .15s
}

.swp_fb_pv_img:hover {
    opacity: .9
}

.swp_fb_pv_video {
    width: 100%;
    max-height: 260px
}

.swp_fb_pv_icon {
    font-size: 56px;
    color: #94a3b8
}

/* Preview details */
.swp_fb_pv_details {
    padding: 16px
}

.swp_fb_pv_fname {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 14px 0;
    word-break: break-all;
    line-height: 1.4
}

.swp_fb_pv_meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px
}

.swp_fb_pv_row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12px
}

.swp_fb_pv_label {
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .4px;
    flex-shrink: 0
}

.swp_fb_pv_val {
    color: #475569;
    text-align: right;
    word-break: break-all
}

/* Preview actions */
.swp_fb_pv_actions {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.swp_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%
}

.swp_fb_pv_btn:hover {
    border-color: var(--swp_accent1);
    background: color-mix(in srgb, var(--swp_accent1) 4%, #fff)
}

.swp_fb_pv_btn i {
    font-size: 16px;
    width: 18px;
    text-align: center
}

.swp_fb_pv_btn_primary {
    background: var(--swp_accent1);
    color: #fff;
    border-color: var(--swp_accent1)
}

.swp_fb_pv_btn_primary:hover {
    background: color-mix(in srgb, var(--swp_accent1) 85%, #000);
    color: #fff
}

.swp_fb_pv_btn_danger {
    color: #ef4444;
    border-color: #fecaca
}

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

/* Responsive */
@media (max-width: 768px) {
    .swp_fb_split {
        flex-direction: column
    }

    .swp_fb_preview_open {
        width: 100%;
        min-width: 100%;
        border-left: none;
        border-top: 1px solid #e5e7eb
    }

    .swp_fb_left_shrink {
        flex: none
    }
}

@media (max-width: 600px) {
    .swp_fb_grid {
        padding: 10px 8px;
        gap: 8px
    }

    .swp_fb_folder {
        width: calc(50% - 4px)
    }

    .swp_fb_item_type {
        display: none
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   WEEK VIEW — Modernised
   ═══════════════════════════════════════════════════════════════════════════ */

#swp_wframe {
    position: relative;
    display: none;
    padding: 0;
    width: 100%;
}

.swp_weekheader {
    display: flex;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 5;
}

.swp_weekheader_time {
    width: 56px;
    min-width: 56px;
    flex-shrink: 0;
}

.swp_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;
}

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

.swp_weekheader_day.swp_today {
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 6%, white);
}

.swp_weekheader_day.swp_today .swp_weekheader_daynum {
    background: var(--accent1, #2a9d8f);
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
    display: inline-block;
    margin: 2px auto 0;
}

.swp_weekheader_daynum {
    font-size: 20px;
    line-height: 26px;
    display: block;
    font-weight: 700;
    color: var(--accent2, #264653);
}

.swp_weekheader_dayname {
    font-size: 10px;
    line-height: 14px;
    display: block;
    color: #888;
    letter-spacing: 0.05em;
}

/* All-day events row */
.swp_weekallday {
    display: flex;
    min-height: 28px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #fafbfc;
}

.swp_weekallday_label {
    flex-shrink: 0;
    font-size: 9px;
    color: #999;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.swp_weekallday_col {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-left: 1px solid #e5e7eb;
    padding: 3px 2px;
    min-height: 28px;
}

.swp_weekallday_event {
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 12%, white);
    border-left: 3px solid var(--accent1, #2a9d8f);
    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;
}

.swp_weekallday_event:hover {
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 22%, white);
}

/* Time grid body */
.swp_weekbody {
    display: flex;
    position: relative;
}

.swp_weektimecol {
    width: 56px;
    min-width: 56px;
    flex-shrink: 0;
}

.swp_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;
}

.swp_weektimeslot:hover {
    color: var(--accent1, #2a9d8f);
}

.swp_weektimeslot span {
    position: relative;
    top: -7px;
}

.swp_weekgrid {
    flex: 1;
    display: flex;
    position: relative;
}

.swp_weekdaycol {
    flex: 1;
    position: relative;
    border-left: 1px solid #e5e7eb;
}

.swp_weekdaycol.swp_today {
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 3%, white);
}

.swp_weekhourline {
    height: 60px;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.1s;
}

.swp_weekhourline:nth-child(odd) {
    border-bottom: 1px solid #e5e7eb;
}

.swp_weekhourline:hover {
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 4%, white);
}

/* Timed event blocks — week view */
.swp_weekevent {
    position: absolute;
    min-height: 20px;
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 12%, white);
    border-left: 3px solid var(--accent1, #2a9d8f);
    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);
}

.swp_weekevent:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transform: scale(1.01);
}

.swp_weekevent_title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swp_weekevent_time {
    font-size: 10px;
    color: #888;
    font-weight: 500;
}

/* Event source colours — week view */
.swp_weekevent[eventsource="Group-calendar"] {
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 12%, white);
    border-left-color: var(--accent1, #2a9d8f);
}

.swp_weekevent[eventsource="Personal-calendar"],
.swp_weekevent[eventsource*="Personal-calendar"] {
    background-color: color-mix(in srgb, #e74c3c 10%, white);
    border-left-color: #e74c3c;
}

.swp_weekevent[eventsource="Booking-calendar"] {
    background-color: color-mix(in srgb, #27ae60 10%, white);
    border-left-color: #27ae60;
}

.swp_weekevent[eventsource="Holiday-calendar"] {
    background-color: color-mix(in srgb, #f39c12 10%, white);
    border-left-color: #f39c12;
}

.swp_weekallday_event[eventsource="Group-calendar"] {
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 12%, white);
    border-left-color: var(--accent1, #2a9d8f);
}

.swp_weekallday_event[eventsource="Personal-calendar"],
.swp_weekallday_event[eventsource*="Personal-calendar"] {
    background-color: color-mix(in srgb, #e74c3c 10%, white);
    border-left-color: #e74c3c;
}

.swp_weekallday_event[eventsource="Booking-calendar"] {
    background-color: color-mix(in srgb, #27ae60 10%, white);
    border-left-color: #27ae60;
}

.swp_weekallday_event[eventsource="Holiday-calendar"] {
    background-color: color-mix(in srgb, #f39c12 10%, white);
    border-left-color: #f39c12;
}

/* Current time indicator */
.swp_weeknowline {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e74c3c;
    pointer-events: none;
}

.swp_weeknowline::before {
    content: '';
    position: absolute;
    left: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e74c3c;
}

/* Week navigation */
.swp_weeknav {
    display: inline-block;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    color: #666;
    transition: color 0.15s;
}

.swp_weeknav:hover {
    color: var(--accent1, #2a9d8f);
}

.swp_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
   ═══════════════════════════════════════════════════════════════════════════ */

#swp_dframe {
    position: relative;
    display: none;
    padding: 0;
    width: 100%;
}

.swp_dayviewheader {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.swp_dayviewtitle {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
    text-align: center;
    color: var(--accent2, #264653);
}

.swp_dayviewtitle.swp_today {
    color: var(--accent1, #2a9d8f);
}

.swp_daynav {
    display: inline-block;
    padding: 4px 14px;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
    color: #666;
    transition: color 0.15s;
}

.swp_daynav:hover {
    color: var(--accent1, #2a9d8f);
}

/* All-day section — day view */
.swp_dayallday {
    padding: 8px 8px 8px 64px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #fafbfc;
    min-height: 24px;
}

.swp_dayallday_label {
    font-size: 9px;
    color: #999;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.swp_dayallday_event {
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 12%, white);
    border-left: 3px solid var(--accent1, #2a9d8f);
    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;
}

.swp_dayallday_event:hover {
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 22%, white);
}

/* Day time grid */
.swp_daybody {
    display: flex;
    position: relative;
}

.swp_daytimecol {
    width: 56px;
    min-width: 56px;
    flex-shrink: 0;
}

.swp_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;
}

.swp_daytimeslot:hover {
    color: var(--accent1, #2a9d8f);
}

.swp_daytimeslot span {
    position: relative;
    top: -7px;
}

.swp_dayeventcol {
    flex: 1;
    position: relative;
    border-left: 1px solid #e5e7eb;
}

.swp_dayhourline {
    height: 60px;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.1s;
}

.swp_dayhourline:nth-child(odd) {
    border-bottom: 1px solid #e5e7eb;
}

.swp_dayhourline:hover {
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 4%, white);
}

/* Timed event blocks — day view */
.swp_dayevent {
    position: absolute;
    left: 4px;
    right: 4px;
    min-height: 24px;
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 12%, white);
    border-left: 4px solid var(--accent1, #2a9d8f);
    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);
}

.swp_dayevent:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transform: translateX(2px);
}

.swp_dayevent_title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}

.swp_dayevent_time {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.swp_dayevent_location {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.swp_dayevent_location i {
    color: var(--accent1, #2a9d8f);
    margin-right: 2px;
}

/* Day event source colours */
.swp_dayevent[eventsource="Group-calendar"] {
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 12%, white);
    border-left-color: var(--accent1, #2a9d8f);
}

.swp_dayevent[eventsource="Personal-calendar"],
.swp_dayevent[eventsource*="Personal-calendar"] {
    background-color: color-mix(in srgb, #e74c3c 10%, white);
    border-left-color: #e74c3c;
}

.swp_dayevent[eventsource="Booking-calendar"] {
    background-color: color-mix(in srgb, #27ae60 10%, white);
    border-left-color: #27ae60;
}

.swp_dayevent[eventsource="Holiday-calendar"] {
    background-color: color-mix(in srgb, #f39c12 10%, white);
    border-left-color: #f39c12;
}

.swp_dayallday_event[eventsource="Group-calendar"] {
    background-color: color-mix(in srgb, var(--accent1, #2a9d8f) 12%, white);
    border-left-color: var(--accent1, #2a9d8f);
}

.swp_dayallday_event[eventsource="Personal-calendar"],
.swp_dayallday_event[eventsource*="Personal-calendar"] {
    background-color: color-mix(in srgb, #e74c3c 10%, white);
    border-left-color: #e74c3c;
}

.swp_dayallday_event[eventsource="Booking-calendar"] {
    background-color: color-mix(in srgb, #27ae60 10%, white);
    border-left-color: #27ae60;
}

.swp_dayallday_event[eventsource="Holiday-calendar"] {
    background-color: color-mix(in srgb, #f39c12 10%, white);
    border-left-color: #f39c12;
}

/* Day view current time line */
.swp_daynowline {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e74c3c;
    pointer-events: none;
}

.swp_daynowline::before {
    content: '';
    position: absolute;
    left: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e74c3c;
}

.swp_weekhourline.swp_hour_empty {
    height: 24px;
}

.swp_dayhourline.swp_hour_empty {
    height: 24px;
}

/* Empty time labels shrink to match */
.swp_weektimeslot.swp_hour_empty {
    height: 24px;
}

.swp_daytimeslot.swp_hour_empty {
    height: 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EVENT ACTION BUTTONS (Week, Day, List views)
   ═══════════════════════════════════════════════════════════════════════════ */

.swp_ev_actions {
    position: absolute;
    top: 3px;
    right: 3px;
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.15s;
}

.swp_weekevent:hover .swp_ev_actions,
.swp_dayevent:hover .swp_ev_actions,
.swp_dayallday_event:hover .swp_ev_actions,
.swp_weekallday_event:hover .swp_ev_actions {
    opacity: 1;
}

.swp_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;
}

.swp_ev_action:hover {
    background: var(--accent1, #2a9d8f);
    color: #fff;
    border-color: var(--accent1, #2a9d8f);
}

/* Day view has more space — always show actions */
.swp_dayevent .swp_ev_actions {
    opacity: 0.6;
}

.swp_dayevent:hover .swp_ev_actions {
    opacity: 1;
}

/* Day view actions are slightly bigger */
.swp_dayevent .swp_ev_action {
    width: 26px;
    height: 26px;
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOADING SKELETON
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes swp_shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.swp_skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: swp_shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.swp_skeleton_event {
    height: 18px;
    margin: 2px 4px;
    border-radius: 4px;
}

.swp_skeleton_block {
    height: 40px;
    margin: 4px;
    border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

@media print {

    .swp_calheader,
    .swp_calbuttonbar,
    .swp_topbuttonbar,
    .swp_weeknav,
    .swp_daynav,
    .swp_expandday,
    .swp_epbuttons,
    .swp_weeknowline,
    .swp_daynowline {
        display: none !important;
    }

    .swp_calframecontents {
        overflow: visible !important;
        height: auto !important;
    }

    .swp_day,
    .swp_dayalt,
    .swp_dayselected {
        height: auto !important;
        min-height: 80px !important;
        page-break-inside: avoid;
    }

    .swp_weekevent,
    .swp_dayevent,
    .swp_weekallday_event,
    .swp_dayallday_event {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    #swp_wframe,
    #swp_dframe,
    #swp_cframe {
        display: block !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY — Focus indicators
   ═══════════════════════════════════════════════════════════════════════════ */

.swp_weekevent:focus-visible,
.swp_dayevent:focus-visible,
.swp_weekallday_event:focus-visible,
.swp_dayallday_event:focus-visible,
.swp_event:focus-visible,
.swp_alldayevent:focus-visible,
.swp_startevent:focus-visible,
.swp_weekhourline:focus-visible,
.swp_dayhourline:focus-visible {
    outline: 2px solid var(--accent1, #2a9d8f);
    outline-offset: 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Week & Day
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .swp_weekheader_day {
        padding: 6px 2px;
        font-size: 10px;
    }

    .swp_weekheader_daynum {
        font-size: 16px;
        line-height: 20px;
    }

    .swp_weektimecol,
    .swp_weekheader_time {
        width: 36px;
        min-width: 36px;
    }

    .swp_weekallday_label {
        font-size: 0;
        overflow: hidden;
    }

    .swp_weekallday_label::after {
        content: '∞';
        font-size: 10px;
        display: block;
    }

    .swp_weektimeslot,
    .swp_daytimeslot {
        font-size: 9px;
        padding-right: 4px;
    }

    .swp_weekevent {
        font-size: 10px;
        padding: 2px 4px;
        border-radius: 4px;
    }

    .swp_daytimecol {
        width: 36px;
        min-width: 36px;
    }

    .swp_dayallday {
        padding-left: 44px;
    }

    .swp_dayevent {
        padding: 4px 8px;
        border-radius: 6px;
    }

    .swp_dayevent_title {
        font-size: 13px;
    }
}

@media (max-width: 450px) {
    .swp_weekevent_time {
        display: none;
    }

    .swp_weekheader_dayname {
        font-size: 8px;
    }

    .swp_weekheader_daynum {
        font-size: 14px;
    }

    .swp_weekheader_time,
    .swp_weektimecol {
        width: 28px;
        min-width: 28px;
    }

    .swp_weekheader_day.swp_today .swp_weekheader_daynum {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 13px;
    }

    .swp_day,
    .swp_dayalt,
    .swp_dayselected {
        height: 46px;
    }

    .swp_daytimecol {
        width: 28px;
        min-width: 28px;
    }

    .swp_dayallday {
        padding-left: 36px;
    }
}

/* Day event - title with inline action buttons */
.swp_dayevent .swp_dayevent_title {
    display: flex !important;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.swp_dayevent_btns {
    flex-shrink: 0;
    display: inline-flex !important;
    gap: 2px;
    transition: opacity 0.15s;
}

.swp_dayevent_btns .swp_ev_action {
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
}

.swp_dayevent:hover .swp_dayevent_btns {
    opacity: 1;
}

/* Staggered overlapping events need right:auto to respect width */
.swp_dayevent[style*="right:auto"] {
    right: auto !important;
}

/* ═══════════════════════════════════════════════════════════════ */
/* DRAG-TO-RESIZE & DRAG-TO-MOVE                                  */
/* ═══════════════════════════════════════════════════════════════ */

.swp_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;
}

.swp_drag_resize_handle:hover,
.swp_drag_resize_handle:active {
    background: color-mix(in srgb, var(--accent1, #2a9d8f) 30%, transparent);
}

.swp_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;
}

.swp_drag_resize_handle:hover::after {
    background: var(--accent1, #2a9d8f);
}

.swp_weekevent.swp_dragging,
.swp_dayevent.swp_dragging {
    opacity: 0.85;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    cursor: grabbing;
    transition: none;
    z-index: 100 !important;
}

.swp_weekevent {
    cursor: grab;
}

.swp_dayevent {
    cursor: grab;
}

/* ═══════════════════════════════════════════════════════════════ */
/* PRINT STYLESHEET                                                */
/* ═══════════════════════════════════════════════════════════════ */

@media print {

    /* Hide everything except the calendar (only when a calendar is on the page) */
    body:has(.swp_frame)>*:not(.swp_frame):not(#swp_frame) {
        display: none !important;
    }

    /* Hide navigation, buttons, toolbars */
    .swp_topbuttonbar,
    .swp_navigation,
    .swp_viewswitcher,
    .swp_ev_actions,
    .swp_dayevent_btns,
    .swp_drag_resize_handle,
    .select_calframe,
    #wpadminbar,
    .swp_calendarframe_buttons,
    #swp_calendarframe_viewswitcher,
    .swp_popup,
    .swp_evtpopup,
    footer,
    header,
    nav,
    aside,
    .site-header,
    .site-footer,
    .admin-bar #wpadminbar {
        display: none !important;
    }

    /* Full width */
    .swp_frame,
    #swp_frame,
    .swp_calendarframe,
    #swp_calframecontents,
    #swp_calendarframe {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* ── Month View Print ── */
    .swp_cframe,
    #swp_cframe {
        page-break-inside: avoid;
    }

    .swp_day,
    .swp_dayalt,
    .swp_dayselected {
        border: 1px solid #ccc !important;
        background: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .swp_dayselected {
        background: #f0faf8 !important;
    }

    .swp_sdevent {
        font-size: 10px !important;
        padding: 1px 3px !important;
    }

    /* ── Week View Print ── */
    .swp_wframe,
    #swp_wframe {
        overflow: visible !important;
    }

    .swp_weekbody {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    .swp_weekheader {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .swp_weekevent {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        border-left-width: 3px !important;
        font-size: 9px !important;
        cursor: default;
    }

    .swp_weekhourline {
        border-top: 1px solid #ddd !important;
    }

    .swp_weektimeslot span {
        font-size: 9px !important;
    }

    /* Collapse empty hours more aggressively for print */
    .swp_hour_empty {
        height: 12px !important;
        min-height: 12px !important;
    }

    /* ── Day View Print ── */
    .swp_dframe,
    #swp_dframe {
        overflow: visible !important;
    }

    .swp_daybody {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    .swp_dayevent {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        border-left-width: 3px !important;
        cursor: default;
    }

    .swp_dayhourline {
        border-top: 1px solid #ddd !important;
    }

    /* ── List View Print ── */
    .swp_clframe,
    #swp_clframe {
        page-break-inside: avoid;
    }

    .swp_listitem {
        page-break-inside: avoid;
        border: 1px solid #ddd !important;
    }

    /* ── Holiday View Print ── */
    .swp_hframe,
    #swp_hframe {
        overflow: visible !important;
    }

    .swp_hevent {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* ── General Print ── */
    .swp_dayviewheader,
    .swp_dayviewtitle {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Current time indicator - hide for print */
    .swp_weeknowline,
    .swp_daynowline {
        display: none !important;
    }

    /* Make event colors visible in print */
    .swp_weekevent[eventsource],
    .swp_dayevent[eventsource],
    .swp_weekallday_event[eventsource],
    .swp_dayallday_event[eventsource] {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Remove hover/interaction states */
    .swp_weekevent:hover,
    .swp_dayevent:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    /* Ensure scrollable containers expand for print */
    #swp_calframecontents {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    /* Page setup — only for calendar pages */
    .swp_frame,
    #swp_frame {
        page: calendar-landscape;
    }
}

@page calendar-landscape {
    margin: 1cm;
    size: landscape;
}

/* Rota person link - clickable names */
.swp_rota_person_link {
    cursor: pointer;
    transition: color 0.15s;
}

.swp_rota_person_link:hover {
    color: var(--accent1);
    text-decoration: underline;
}

/* Rota member filter banner */
.swp_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;
}

.swp_rota_member_filter_banner i {
    font-size: 18px;
    color: var(--accent1);
}

.swp_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;
}

.swp_rota_focus_btn:hover {
    color: var(--accent1);
    background: #f0f7ff;
}

.swp_rota_person_card_name {
    display: flex;
    align-items: center;
}

/* ─── Ticket Sales Overview ─── */
.swp_tv_summary { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.swp_tv_card { flex: 1; min-width: 120px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px 16px; text-align: center; }
.swp_tv_card_val { font-size: 22px; font-weight: 700; color: #1f2937; }
.swp_tv_card_label { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.swp_tv_card_warn { border-color: #fbbf24; }
.swp_tv_card_warn .swp_tv_card_val { color: #d97706; }
.swp_tv_breakdown { margin-bottom: 12px; }
.swp_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; }
.swp_tv_filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.swp_tv_filter_input { flex: 1; min-width: 160px; padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; }
.swp_tv_filter_select { padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; background: #fff; }
.swp_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; }
.swp_tv_export_btn:hover { background: #f9fafb; }
.swp_tv_table_wrap { overflow-x: auto; }
.swp_tv_table { width: 100%; border-collapse: collapse; font-size: 13px; }
.swp_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; }
.swp_tv_table td { padding: 8px 10px; border-bottom: 1px solid #f3f4f6; }
.swp_tv_table tbody tr:hover { background: #f9fafb; }
.swp_tv_badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.swp_tv_badge_paid { background: #d1fae5; color: #065f46; }
.swp_tv_badge_pending { background: #fef3c7; color: #92400e; }
.swp_tv_badge_balance { background: #fed7aa; color: #9a3412; }
.swp_tv_badge_credit { background: #dbeafe; color: #1e40af; }
.swp_tv_badge_none { color: #d1d5db; }
/* ── Ticket Management Styles (shared with form popup ticket tab) ── */

/* Buttons */
.swp_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;
}
.swp_tk_btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.swp_tk_btn_primary {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}
.swp_tk_btn_primary:hover {
  background: #4f46e5;
  border-color: #4f46e5;
}

/* Search */
.swp_tk_search_input_wrap {
  position: relative;
  flex: 1;
}
.swp_tk_search_input_wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
}
.swp_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;
}
.swp_tk_search_input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.12);
}

/* Detail View */
.swp_tk_detail_wrap {
  padding: 20px;
}
.swp_tk_detail_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.swp_tk_detail_header_actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Summary Cards */
.swp_tk_summary_cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.swp_tk_summary_card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.swp_tk_summary_icon {
  font-size: 22px;
  color: #6366f1;
  margin-bottom: 4px;
}
.swp_tk_summary_val {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}
.swp_tk_summary_label {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Filter Bar */
.swp_tk_filter_bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}
.swp_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;
}
.swp_tk_filter_select:focus {
  border-color: #6366f1;
}

/* Table */
.swp_tk_table_wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.swp_tk_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.swp_tk_table thead {
  background: #f8fafc;
}
.swp_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;
}
.swp_tk_table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}
.swp_tk_th_num { width: 40px; }
.swp_tk_th_amount { width: 90px; }
.swp_tk_th_status { width: 120px; }
.swp_tk_td_num { color: #94a3b8; font-size: 12px; }
.swp_tk_td_name { font-weight: 600; }
.swp_tk_row {
  transition: background 0.1s;
}
.swp_tk_row:hover {
  background: #f8fafc;
}

/* Type badge */
.swp_tk_type_badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  background: #ede9fe;
  color: #6366f1;
  font-size: 12px;
  font-weight: 600;
}

/* Status badges */
.swp_tk_status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}
.swp_tk_status_checked {
  background: #dcfce7;
  color: #16a34a;
}
.swp_tk_status_pending {
  background: #f1f5f9;
  color: #94a3b8;
}
.swp_tk_status_refunded {
  background: #fef2f2;
  color: #ef4444;
}
.swp_tk_status_clickable {
  cursor: pointer;
  transition: all 0.15s;
}
.swp_tk_status_clickable:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* Booker column */
.swp_tk_td_booker {
  vertical-align: top;
  border-right: 2px solid #e2e8f0;
  background: #fafbfc;
}
.swp_tk_booker_name {
  font-weight: 600;
  color: #1e293b;
  font-size: 13px;
  line-height: 1.3;
}
.swp_tk_booker_email {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}
.swp_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 */
.swp_tk_row_first td {
  border-top: 2px solid #e2e8f0;
}

/* Action buttons */
.swp_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;
}
.swp_tk_action_btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

/* Ticket Code column */
.swp_tk_col_code {
  white-space: nowrap;
}
.swp_tk_td_code {
  font-size: 12px;
}
.swp_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 */
.swp_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;
}
.swp_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;
}
.swp_tk_col_option:hover {
  background: #f1f5f9;
}
.swp_tk_col_option input[type="checkbox"] {
  accent-color: #6366f1;
  width: 14px;
  height: 14px;
}

/* Checkbox column (multi-select mode) */
.swp_tk_th_check {
  width: 36px;
  text-align: center;
}
.swp_tk_td_check {
  text-align: center;
  vertical-align: middle;
}
.swp_tk_checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #6366f1;
}

/* Bulk action bar */
.swp_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 */
.swp_tk_empty_row {
  text-align: center;
  padding: 40px 20px !important;
  color: #94a3b8;
  font-size: 14px;
}

/* Scanner Modal */
.swp_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;
}
.swp_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);
}
.swp_tk_scanner_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.swp_tk_scanner_title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}
.swp_tk_scanner_title i {
  font-size: 20px;
  color: #6366f1;
}
.swp_tk_scanner_header_actions {
  display: flex;
  gap: 6px;
}
.swp_tk_scanner_body {
  padding: 20px;
}
.swp_tk_scanner_reader {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  min-height: 200px;
  background: #f8fafc;
  width: 100%;
}
.swp_tk_scanner_reader video {
  border-radius: 12px;
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
}
.swp_tk_scanner_manual {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.swp_tk_scanner_manual .swp_tk_search_input {
  flex: 1;
}

/* Scan log */
.swp_tk_scan_log {
  max-height: 300px;
  overflow-y: auto;
}
.swp_tk_scan_log_empty {
  text-align: center;
  padding: 20px;
  color: #94a3b8;
  font-size: 13px;
}
.swp_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;
}
.swp_tk_scan_success {
  background: #dcfce7;
  color: #16a34a;
}
.swp_tk_scan_fail {
  background: #fef2f2;
  color: #ef4444;
}
.swp_tk_scan_warn {
  background: #fef9c3;
  color: #b45309;
}
.swp_tk_scan_entry i {
  font-size: 18px;
}
.swp_tk_scan_code {
  font-family: monospace;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.swp_tk_scan_time {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.7;
}

/* Responsive - ticket tab in popup */
@media (max-width: 768px) {
  .swp_tk_summary_cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .swp_tk_detail_header {
    flex-direction: column;
  }
  .swp_tk_detail_header_actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .swp_tk_filter_bar {
    flex-direction: column;
  }
  .swp_tk_filter_select {
    width: 100%;
  }
  .swp_tk_table_wrap {
    overflow-x: auto;
  }
  .swp_tk_table {
    min-width: 600px;
  }
}
@media (max-width: 480px) {
  .swp_tk_summary_cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   POLLS IN MEDIA LIBRARY
   ============================================================ */
.swp_lib_recent_icon.poll {
    background: #eef2ff;
    color: #6366f1
}
.swp_poll_media_box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}
.swp_poll_media_icon {
    font-size: 36px;
    color: #fff;
}
.swp_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;
}
.swp_poll_media_status_draft {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.swp_poll_media_status_active {
    background: #22c55e;
    color: #fff;
}
.swp_poll_media_status_closed {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
}
.swp_poll_media_group,
.swp_poll_media_code {
    font-size: 11px;
    color: #888;
    padding: 0 8px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.swp_poll_media_group i,
.swp_poll_media_code i {
    margin-right: 3px;
}
.swp_poll_media_actions {
    display: flex;
    gap: 2px;
    padding: 4px 6px 6px;
    justify-content: center;
    flex-wrap: wrap;
}
.swp_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;
}
.swp_poll_media_btn:hover {
    background: #f3f4f6;
    color: #111;
}
.swp_poll_media_btn_present:hover {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}
.swp_poll_media_btn_display:hover {
    background: #8b5cf6;
    color: #fff;
    border-color: #8b5cf6;
}
.swp_poll_media_btn_delete:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* Album item remove button */
.swp_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;
}
.swp_mediaitem:hover .swp_alb_item_remove {
    display: flex;
}
.swp_alb_item_remove:hover {
    background: #dc2626;
}
.swp_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 ──────────────────────── */

.swp_relay_section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.swp_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;
}

.swp_relay_header i {
    font-size: 18px;
    opacity: 0.5;
}

.swp_relay_body {
    padding: 14px 16px;
}

.swp_relay_option {
    padding: 6px 0;
}

.swp_relay_option label {
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.swp_relay_option input[type="radio"] {
    margin-top: 2px;
    accent-color: var(--accent1, #2563eb);
}

.swp_relay_status {
    margin-top: 8px;
    font-size: 12px;
    color: #8c8f94;
}

.swp_relay_ws_card {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    background: #fafafa;
}

.swp_relay_ws_card_title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.swp_relay_ws_card_title i {
    font-size: 16px;
    opacity: 0.5;
}
