:root {
    --main-bg-color: #8A508F;
}  

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    padding: 0;
    background: #f0f2f5;
}

.portlet-content {
    padding: 0;
}

.portal-popup {
    padding: 0;
}

.container {
    display: flex;
    justify-content: center;
    width: 100% !important;
    padding: 0 !important;
}

.modal-body {
    padding: 15px 0 8px !important;
}

.refernce_head {
    color: #FFFFFF !important;
    font-family: "Open Sans" !important;
    font-size: 1vw !important;
    font-weight: 600 !important;
}

.container-wrap {
    /* height: 100vh;
    overflow: auto; */
}

.left-panel-wrap {
    width: 50%; 
    float: left;
}

.right-panel-wrap {
    width: 50%; 
    float: right;
    height: 100vh;
    overflow: auto;
}

.template-container, .workspace {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.1);
}

.template-container {
    flex: 0 0 54%; /* Fixed width for template container */
    margin-right: 1vw;
}

img#tour-svg {
    margin-right: 0.4vw;
}

.workspace {
    flex: 0 0 40%; /* Larger width for workspace */
}

h2 {
    margin-bottom: 1vw;
    color: #333;
}

.template-grid, .workspace-grid {
    position: relative;
    min-height: 360px;
    height: 45vh !important;
    overflow: auto;
}

.template-item {
    position: absolute;
    /* width: calc(100% - 10px); */
    margin: 5px 10px;
    margin-left: 0;
    z-index: 1;
    background: beige;
    /* padding-bottom: 0.8vw; */
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
}

.workspace-grid .template-item {
    padding: 0;
    padding-right: 1vw;
    width: 98%;
}

.template-item img {
    width: 100%;
    height: 100px;
    /* object-fit: contain; */
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-right: 1vw;
}

.controls-wrap {
    display: flex;
    width: 100%;
    justify-content: center;
}

.controls {
    background: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 96%;
}

.sd-dropdown__filter-string-input {
    border: none !important;
}

input, #sortField, #getData, #get-unit-meta, #get-topic-meta, #get-lesson-meta {
    padding: 8px 20px;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    outline: none !important;
    color: #000 !important;
    margin-right: 4px !important;
    font-family: 'Open Sans' !important;
    box-shadow: none !important;
}

#getData, #getData-meta, #get-topic-meta, #get-lesson-meta, #get-unit-meta {
    background: var(--main-bg-color);
    color: white !important;
    border: none;
    cursor: pointer;
}

#getData:hover, #get-lesson-meta:hover, #get-unit-meta:hover, #get-topic-meta:hover {
    background: #9DD283;
}

.search-controls-wrap {
    display: flex;
    font-family: 'Open Sans';
    width: 58%;
}

.ld-ring {
    padding-left: 4px;
}

.search-wrap {
    display: flex;
    position: relative;
    width: 100%;
}

#searchField {
    width: 100% !important;
    margin-right: 8px !important;
}

.muuri-item-dragging {
    z-index: 3;
}

.muuri-item-releasing {
    z-index: 2;
}

.muuri-item-hidden {
    z-index: 0;
}

.template-item.muuri-item-dragging img {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.template-item.muuri-item-releasing img {
    transition: all 0.2s ease-out;
}

.grid-item.h2 img {
    height: 150px;
}

.grid-item.h2 {
    /* height: 10rem; */
}

.grid-item.w2 {
    /* width: 12rem; */
}

.grid-item {
    width: 16.5rem;
    height: 1.4rem;
    line-height: 1rem;
    margin: 1.5rem 1rem !important;
    z-index: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    width: 100% !important;
    left: 0 !important;
    padding: 0.4vw !important;
    padding-left: 1.2vw !important;
    font-family: 'Open Sans';
    color: #FFF;
    font-weight: 500;
    font-size: 1.1vw;
    background: var(--main-bg-color);
    /* border-top-left-radius: 16px; */
}

.template-container h2, .workspace h2 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 1vw;
    font-family: 'Open Sans';
    font-weight: 600;
}

.ref-close {
    margin: 0 0 0 auto;
    padding-right: 0.24vw;
    display: flex;
    align-items: baseline;
    cursor: pointer;
}

.ref-close .save-icon:hover {
    color: #ff5b5b;
}

.template-grid .grid-item {
    float: left;
    /* display: flex; */
    justify-content: center;
}

.grid-item.h1.w1 img {
    /* height: 80%; */
}

.grid-item.h1.w1 {
    /* width: 10rem; */
}

.grid-item-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.grid-card-title {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 2rem;
}

.workspace .grid-item {
    width: 95% !important;
    height: 100%;
    margin-left: 0.4vw;
}

.workspace .template-item img {
    height: 100% !important;
    width: 100%;
}

.image-caption {
    text-align: center;
    /* padding-top: 0.4vw; */
    font-size: 0.9vw;
    /* width: 50%; */
}

.workspace-grid .image-caption {
    width: 100%;
    text-align: center;
} 

/* Toggle Button */

/* The switch - the box around the slider */
.switch {
    position: relative;
    /* width: 7.4%; */
    height: 2.8vh;
    margin-right: 0.8vw;
    margin-left: 0.8vw;
    margin-bottom: 0;
    top: 4px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    cursor: pointer;
    height: 0.8vw;
    width: 2vw;
    display: inline-block;
    background-color: #f5f5dc;
    transition: 0.3s;
    border-radius: 100vw;
    position: relative;
    box-shadow: inset 0 0.05vw 0.1vw 0 rgba(0,0,0,0.5);
  }
  
  .slider:before {
    content: '';
    position: absolute;
    top: -0.1vw;
    left: -0.28vw;
    height: 0.9vw;
    width: 0.9vw;
    padding: 0;
    border-radius: 100vw;
    background-image: radial-gradient(100% 100%, #8A508F 0%, #8A508F 100%, #8A508F 100%);
    transition: 0.3s;
    box-shadow: 0 0 0.05vw 0 rgba(0,0,0,0.12), 0 0.05vw 0.05vw 0 rgba(0,0,0,0.24);
  }
  
  input:checked + .slider {
    background-color: #f5f5dc;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
    left: -4px;
  }

.toggleBtn {
    font-family: 'Open Sans';
    font-size: 0.8vw !important;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.template-btn-wrap {
    display: flex;
    justify-content: end;
    margin: 0.8vw 0 1.8vw;
    border-bottom: 0.01vw solid #D7D7D7;
    padding-bottom: 0.4vw;
}

.shortcut-icon-wrap {
    display: flex;
}

.book-title-wrap {
    display: flex;
    background: var(--main-bg-color);
    justify-content: space-between;
    padding: 10px 12px;
}

.btn-tour {
    background: transparent;
    border: 0 !important;
    border-right: 0.01vw solid #fff !important;
    padding: 2px 12px;
    font-family: open sans;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    display: none;
}

.help-icon {
    margin-right: 0.4vw;
    position: relative;
    top: 0.02vw;
}

.book-title {
    font-family: open sans;
    color: #FFF;
    font-size: 16px;
    width: 78%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

div#help-button {
    border: 0 !important;
    padding-right: 0;
}

.btn-temp {
    background: transparent;
    border: 0 !important;
    border-right: 0.01vw solid #000  !important;
    padding: 2px 12px;
    font-family: open sans;
    color: #000;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
}

#pm-close-button{
    border-right: 0 !important;
}

.save-icon {
    margin-right: 0.2vw;
    font-size: 17px !important;
    cursor: pointer;
}

#saveDataBtn .save-icon {
    font-size: 1.24vw !important;
}

.search-icon {
    margin-right: 0.4vw;
    position: absolute;
    right: 10px;
    top: 54%;
    transform: translateY(-50%);
    color: #6c757d;
}

.btn-temp:hover, .nav-button:hover {
    color: #019001;
}

#pm-close-button:hover {
    color: #ff5b5b;
}

#sortField:invalid {
    color: #7e7e7e !important;
} 
  
#sortField option {
    color: #000 !important;
}

/**added by mariappan from delete template icon*/
.delete-button {
    position: absolute;
    top: 12px;
    right: 12px;
    /* background: red; */
    /* color: white; */
    border: none;
    /* border-radius: 50%; */
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border-right: 0px !important;
}

#sortField {
    width: auto;
    padding-left: 4px;
    cursor: pointer;
}

.delete-button:hover {
    color: #ff5b5b;
}

input.sd-btn.sd-btn--action.sd-navigation__complete-btn {
    display: none;
}

#saveDataBtn {
    display: flex;
    align-items: center;
    font-family: 'Open Sans';
    font-size: 16px;
    background: var(--main-bg-color);
    padding: 0.8vw 2vw !important;
}

.ld-ring {
    padding-left: 4px;
}

.btn-tap-alw {
    cursor: not-allowed;
    color: #000 !important;
}

.footer-wrap {
    display: flex;
    justify-content: end;
    margin: 1.4vw 1vw 0.4vw;
}

.sd-btn--action:hover {
    background: #9DD283 !important;
}

.cke_bottom {
    display: none;
}

.placeholder-text {
    font-family: 'Open sans' !important;
    font-size: 1vw !important;
    font-weight: 300 !important;
    color: #949292 !important;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 65vh;
}

.workspace .placeholder-text {
    min-height: 44vh;
}

.placeholder-text .save-icon {
    margin-right: 0;
    font-weight: 600 !important;
}

.click-add {
    font-weight: 600 !important;
    display: flex;
    align-items: center;
}

.drag-icon {
    position: absolute;
    top: 12px;
    left: 8px;
    font-size: 1.2vw !important;
    cursor: pointer;
}

iframe#previewIframe {
    height: 100vh !important;
}


.sd-progress-buttons {
    box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    border: 0.1vw solid grey;
}

.sd-progress-buttons--with-titles .sd-progress-buttons__list-container {
    overflow-x: auto;
    padding-bottom: 1.4vw;
}


.sd-progress-buttons--with-titles .sd-progress-buttons__list-container::-webkit-scrollbar {
    width: 0.4vw;
    height: 0.4vw;
}

/* Handle */
.sd-progress-buttons--with-titles .sd-progress-buttons__list-container::-webkit-scrollbar-thumb {
    background: #b2b1b1;
    border-radius: 2px;
}

/* Handle on hover */
.sd-progress-buttons--with-titles .sd-progress-buttons__list-container::-webkit-scrollbar-thumb:hover {
    background: #bdbdbd;
    border-radius: 2px;
}

/* swal */


.swal2-actions .swal2-styled {
    margin: 0.4vw;
}

.swal2-html-container {
    z-index: 1;
    justify-content: center;
    margin: 0;
    padding: 0.8vw 0 0 !important;
    color: #545454;
    font-family: 'Open Sans';
    font-size: 1vw !important;
    font-weight: 400;
    line-height: 1.55vw !important;
    text-align: center;
    word-wrap: break-word;
    word-break: break-word;
    margin: 0 0.2vw !important;
  }

.swal2-top-end .swal2-html-container {
    padding: 0.4em 0 0 0.6em !important;
}

.swal2-top-end .swal2-icon-content {
    font-size: 1.75em !important;
}
  
  .swal2-styled.swal2-confirm:focus {
    box-shadow: none;
  }
  
  .swal2-deny.swal2-styled:focus {
    box-shadow: none;
  }
  
  .swal2-cancel.swal2-styled:focus {
    box-shadow: none;
  }
  
  .swal2-deny.swal2-styled:hover {
    background-color: #7bb160 !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), inset 0 -0.25em 0 rgba(0, 0, 0, .25), 0 0.25em 0.25em rgba(0, 0, 0, .05) !important;
  }
  
  .swal2-deny.swal2-styled {
    background-color: #fff !important;
    border: 1px solid #7bb160 !important;
    background-image: none !important;
    width: auto !important;
    font-size: 14px !important; 
    margin-left: 0.4vw;
    padding: 0.6vw 0.6vw !important;
    border-radius: .25em;
    background: initial;
    color: #7bb160;
    font-family: 'Open Sans';
    outline: none;
    box-shadow: none;
    min-width: 6.6vw !important;
    margin-bottom: 0;
    outline: none !important;
    transition: all -0.9s;
  }
  
  .swal2-styled.swal2-confirm {
    border: 0;
    background: initial;
    background-color: #7bb160;
    color: #fff;
    font-family: Open Sans;
    background-color: #7bb160 !important;
    width: auto !important;
    font-size: 14px !important;
    padding: 0.6vw 0.6vw !important;
    margin-right: 0.4vw;
    outline: none;
    box-shadow: none;
    min-width: 6.6vw !important;
    margin-bottom: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), inset 0 -0.25em 0 rgba(0, 0, 0, .25), 0 0.25em 0.25em rgba(0, 0, 0, .05) !important;
    outline: none !important;
    transition: all -0.9s;
  }
  
  .swal2-cancel.swal2-styled {
    color: #fff !important;
    background-color: #E06967 !important;
    margin-left: 0.4vw !important;
    width: auto !important;
    padding: 0.6vw 0.6vw !important;
    font-family: Open Sans !important;
    font-size: 14px !important;
    outline: none;
    box-shadow: none;
    min-width: 6.6vw !important;
    margin-bottom: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), inset 0 -0.25em 0 rgba(0, 0, 0, .25), 0 0.25em 0.25em rgba(0, 0, 0, .05) !important;
    outline: none !important;
    transition: all -0.9s;
  }

  
  .swal2-deny.swal2-styled:active {
    padding: 0.4vw !important;
    position: relative;
    text-decoration: none;
    text-shadow: 0 1px 1px hsla(0,0%,100%,.25);
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: auto !important;
    font-size: 0.8vw !important;
    margin-top: .25em !important;
    min-width: 6vw !important;
}

.swal2-styled.swal2-confirm:active {
    padding: 0.4vw !important;
    position: relative;
    text-decoration: none;
    text-shadow: 0 1px 1px hsla(0,0%,100%,.25);
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: auto !important;
    font-size: 0.8vw !important;
    margin-top: .25em !important;
    min-width: 6vw !important;
}

  .swal2-cancel.swal2-styled:active {
    padding: 0.4vw !important;
    position: relative;
    text-decoration: none;
    text-shadow: 0 1px 1px hsla(0,0%,100%,.25);
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: auto !important;
    font-size: 0.8vw !important;
    margin-top: .25em !important;
    min-width: 6vw !important;
}
  
  .swal2-title {
    position: relative;
    max-width: 100%;
    margin: 0 0 .4em;
    padding: 0;
    color: #595959;
    font-size: 1.875em;
    font-weight: 600;
    text-align: center;
    text-transform: none;
    word-wrap: break-word;
    font-family: Open Sans;
  }
  
  .swal2-container.swal2-center {
    align-items: center;
    z-index: 100000;
  }
  
  .swal2-modal h2#swal2-title {
    font-size: 1.5vw;
    font-weight: 600;
    line-height: 2vw;
    margin: 0.8vw 1vw 0vw;
    font-family: 'Open Sans';
  }
  
  .swal2-icon {
    margin: 0 auto 0.6vw;
  }
  
  .swal2-icon-content {
    font-size: 2.75em !important;
  }
  
  .swal2-actions {
    margin-top: 1.2vw;
  }
  
  .swal2-popup {
    box-shadow: 0px 3px 5px 4px rgba(0, 0, 0, 0.3);
    padding: 1.25em;
    z-index: 1000000;
  }

  .swal2-header {
    padding: 0;
  }
  button.swal2-close {
    position: absolute;
 }



::-webkit-scrollbar {
    width: 0.5vw;
    height: 0.5vw;
}

/* Track */
::-webkit-scrollbar-track {
    background: transparent;
    border: none;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #CDCDCD;
    border-radius: 2px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #CDCDCD;
    border-radius: 2px;
}

@media only screen and (min-device-width: 1910px) and (max-device-width: 1921px) {
    .modal-dialog {
        width: 60% !important;
    }
}


@media only screen and (min-height: 500px) and (max-height :680px) {
    .template-grid, .workspace-grid {
        min-height: 310px;
    }

    .modal-dialog {
        width: 66% !important;
    }
}

@media only screen and (min-height: 800px) and (max-height :1020px) {
    iframe#previewIframe {
        height: 920px !important;
    }
}



@media only screen and (min-height: 100px) and (max-height:584px) {
    .swal2-popup {
        width: auto !important;
    }
}

@media screen and (min-device-width: 100px) and (max-device-width: 1000px) {
    .swal2-popup {
        width: auto !important;
    }
}

.processing{
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}