
html {
    /* height: 100% ; */
    height: 100vh;
}

body {
    /* height: 100%; */
    width: 100vw;
    height: 100vh;
    padding-top: 130px;
}

#root {
    height: 100%;
    /* height: 100vh; */
}

#wrapper {
    height: 100%;
    /* height: 100vh; */
}




/* ===============================================================================
// ***** General Utilities *****
// =============================================================================== */

.igs-avoidClicks {
    pointer-events: none;
}

.igs-hidden {
    display: none;
}

.igs-anchorWrapper {
    position: relative;
}

.igs-anchor {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
}

.igs-centerVertical {
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.igs-center {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.igs-anchorFill {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.igs-alignRight {
    text-align: right;
    justify-content: right;
}

.igs-alignCenter {
    text-align: center;
    justify-content: center;
}

.igs-marginRight {
    margin-right: 16px;
}

.igs-vbox {
    display: flex;
    flex-flow: column nowrap;
}

.igs-fullHeight {
    height: 100%;
}

.igs-maxFullHeight {
    max-height: 100%;
}

.igs-grow {
    flex-grow: 1;
}

.igs-scroll {
    overflow: scroll;
}

.igs-centerContent {
    margin: 0 auto;
}

.igs-bold {
    font-weight: bold;
}

.igs-noBorder {
    border: none;
    border-bottom: none;
    border-top: none;
}

.igs-borderWarning {
    border: 1px solid rgb(237, 108, 2);
}

.igs-borderSuccess {
    border: 1px solid rgb(46, 125, 50);
}

.igs-container-80 {
    width: 100%;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-left: 24px;
    padding-right: 24px;
}

.igs-actions {
    display: flex;
    justify-content: right;
}


.igs-sectionTitle {
    font-weight: bold !important;
    font-size: 1.15rem !important;
    line-height: 2.5rem !important;
    margin-bottom: 4px !important;
    margin-left: 10px !important;
}



/* ===============================================================================
// ***** General Components *****
// =============================================================================== */

.igs-headerBar {
    /* background-color: #005662; this is not working */
}

.igs-submenuBar {
    top: 64px;
    background-color: #00838f;
}

.igs-submenuBar .MuiToolbar-regular {
    min-height: 42px;
}

.igs-toolbarTop {
    text-align: right;
    margin-top: 1em;
    margin-bottom: 1em;
}

.igs-toolbarPaper {
    text-align: left;
    width: 100%;
    padding: 1em;
    background-color: #f0f0f0;
}

.igs-toolbarPaperHighlight {
    color: #0d3349;
}

.igs-mainContainer {
    width: 100%;
    padding-top: 40px;
    padding-left: 20px;
    padding-right: 20px;
}

.igs-title {
    flex: 1
}

.igs-select {
    min-width: 200px;
}

.igs-smallButton {
    min-width: 0 !important;
}

.igs-divider {
    width: 2px;
    display: flex;
    align-items: center;
    height: 100%;
}



/* ===============================================================================
// ***** Dialog *****
// =============================================================================== */

.igs-dialogTitle {
    background-color: #005662;
    color: #e0f7fa;
    font-size: 1.15rem;
}

.igs-dialogTitle-button {
    position: absolute !important;
    top: 12px;
    right: 12px;
    color: #e0f7fa !important;
}




/* ===============================================================================
// ***** Paper *****
// =============================================================================== */

.igs-basePaper {
    padding: 1em;
    margin-top: 1em;
    margin-bottom: 2em;
    background-color: #f0f0f0;
}

.igs-titlePaper {
    text-align: center;
    padding: 1em;
    margin-top: 1em;
    margin-bottom: 2em;
    background-color: #f0f0f0;
}

.igs-lightPaper {
    padding: 1em;
    margin-top: 1em;
    margin-bottom: 2em;
    background-color: #ffffff;
}

.igs-colorPaper {
    border-color: #7ac2c8;
    background-color: #ededed !important;
    margin-bottom: 20px;
    padding: 10px;
    height: 64px;
    line-height: 44px;
}

.igs-plainPaper {
    padding: 1em;
    background-color: #f0f0f0;
}

.igs-dataGridPaper {
    min-height: 500px;
    flex-grow: 1;
    background-color: #f0f0f0;
    margin: 20px 20px 30px 20px;
}




/* ===============================================================================
// ***** Grid *****
// =============================================================================== */

.igs-gridEvenRow {
    background-color: #ffffff;
}

.igs-gridOddRow {
    background-color: #f1f2f3;
}

.igs-gridErrorRow {
    background-color: #FFD1D1 !important;
}

.igs-gridErrorRow:hover {
    background-color: #FFA9A9 !important;
}

.igs-gridErrorCell {
    color: #ff0000;
}


/* ===============================================================================
// ***** ErrorPanel *****
// =============================================================================== */

.igs-errorContainer {
    margin-top: 30px;
    margin-bottom: 30px;
}

.igs-errorPaper {
    padding: 1em;
    /*
    margin-top: 1em;
    margin-bottom: 2em;
     */
    margin-top: 0;
    margin-bottom: 0;
    background-color: #f0f0f0;
    color: #ff0000;
    font-weight: bolder;
}

.igs-alertErrorPaper {
    padding: 0;
    /*
    margin-top: 1em;
    margin-bottom: 2em;
    */
    margin-top: 0;
    margin-bottom: 0;
}


.igs-snackbar {
    z-index: 10000 !important;
}


/* ===============================================================================
// ***** Loading Overlay *****
// =============================================================================== */


.igs-loadingOverlay {
    position: relative;
    height: 100%;
}


.igs-loadingRootOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    pointer-events: none;
}

.igs-loadingAnchorOverlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10100;
    pointer-events: none;
}

.igs-loader {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10200;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.7);
}


.igs-spinner {
    /* display: inline-block; */
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -80px;
    margin-left: -32px;
    fill: #0d3349;
    width: 64px;
    height: 64px;
}



/* ===============================================================================
// ***** Form Table *****
 =============================================================================== */

table.igs-form {
    width: 100%;
    border-spacing: 0;

    border-radius: 4px;
    box-shadow: 0 2px 1px -1px rgba(0,0,0,0.2), 0 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12);
    /* margin-bottom: 15px;  */
}


table.igs-form > tbody > tr {

}

table.igs-form > tbody > tr > th,
table.igs-form > thead > tr > th {
    padding: 4px;
    padding-left: 16px;
    padding-right: 16px;
    text-align: left;
    font-weight: 500;
    font-size: 0.875rem;
    height: 60px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(224, 224, 224, 1);
}

table.igs-tall > tbody > tr > th,
table.igs-tall > thead > tr > th {
    height: 70px;
}

table.igs-form > thead > tr > th {
    color: #ffffff;
    background-color: #00838f;
    font-weight: 800;
}

table.igs-form > tbody > tr > td,
table.igs-form > tfoot > tr > td {
    padding: 4px;
    padding-left: 16px;
    padding-right: 16px;
    height: 60px;
    font-size: 0.875rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(224, 224, 224, 1);
}

table.igs-tall > tbody > tr > td,
table.igs-tall > tfoot > tr > td {
    height: 70px;
}


table.igs-form > tbody > tr:last-child > th {
    border-bottom: none;
}

table.igs-form > tbody > tr:last-child > td {
    border-bottom: none;
}

table.igs-form > tfoot > tr > td {
    color: #000000;
    background-color: #d6e3e4;
    font-weight: 500;
}



table.igs-form > tbody > tr:nth-child(odd) > td {
    background-color: #f1f2f3;
    /*background-color: #ebebeb;*/
}

table.igs-form > tbody > tr:nth-child(odd) > th {
    background-color: #f1f2f3;
    /*background-color: #ebebeb;*/
}

table.igs-form > tbody > tr:nth-child(even) > td {
    background-color: #f9f9f9;
}

table.igs-form > tbody > tr:nth-child(even) > th {
    background-color: #f9f9f9;
}


table.igs-form > tbody > tr:first-child > th:first-child {
    border-top-left-radius: 4px;
}

table.igs-form > tbody > tr:first-child > th:last-child {
    border-top-right-radius: 4px;
}

table.igs-form > tbody > tr:first-child > td:first-child {
    border-top-left-radius: 4px;
}

table.igs-form > tbody > tr:first-child > td:last-child {
    border-top-right-radius: 4px;
}


table.igs-form > tbody > tr:last-child > th:first-child {
    border-bottom-left-radius: 4px;
}

table.igs-form > tbody > tr:last-child > th:last-child {
    border-bottom-right-radius: 4px;
}

table.igs-form > tbody > tr:last-child > td:first-child {
    border-bottom-left-radius: 4px;
}

table.igs-form > tbody > tr:last-child > td:last-child {
    border-bottom-right-radius: 4px;
}

table.igs-form > tbody > tr > td.textArea {
    padding-top: 16px;
    padding-bottom: 16px;
}


/* ===============================================================================
// ***** Table Layout *****
// =============================================================================== */

.igs-hlayout {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

table.igs-layout {
    width: 100%;
    padding: 0;
    margin: 0;
}

table.igs-layout > thead > tr > th {
    padding: 4px 0 4px 0;
}

table.igs-layout > tbody > tr > td {
    padding: 4px 0 4px 0;
}



/* ===============================================================================
// ***** Tiptap *****
// =============================================================================== */

.igs-tiptap-editor {
    margin-top: 16px;
    background-color: #FFFFFF;
    padding: 10px;
    height: 100px;
    overflow-y: scroll;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.23);
}

.tiptap p {
    margin: 4px 0;
}



/* ===============================================================================
// ***** SlateEditor *****
// =============================================================================== */

.igs-slateEditor {
    /* height: 100%; */
    height: 500px;
    position: relative;
    /* padding-bottom: 20px; */
}

.igs-slateEditorBody {
    border: 1px solid #AAAAAA;
    padding: 20px;
    position: absolute;
    top: 80px;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: #EEEEEE;
    overflow-y: scroll;
}




/* ===============================================================================
// ***** VideoInput *****
// =============================================================================== */

.igs-videoUploadWrapper {
    position: relative;
    padding: 0;
    border: 3px solid #FFF;
    background-color: #f2f2f2;
}


.igs-videoUploadWrapper p {
    background-color: #ffffff;
    font-size: 80%;
    color: #AAA;
    font-style: italic;
    text-align: center;
    padding-top: 5px;
    padding-bottom : 5px;
    margin: 0;
}


.igs-videoUpload {
    background-color: #f2f2f2;
    height: 600px;
    width: 800px;
    overflow: auto;
    margin: 0 auto;
    text-align: center;
}


.igs-videoUpload video {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
}


.igs-video-full {
    width: 100vw;
    height: calc(100vw/1.77);
}


.igs-videoWrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}


.igs-videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.igs-videoWrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/*
.igs-editor {
  height: 500px;
  border: 1px solid #666;
}
*/


/* ===============================================================================
// ***** Image *****
// =============================================================================== */

.igs-imageWrapper {
    /* position: relative; */
    /* height: 100%; */
    /*
    overflow-x: hidden;
    overflow-y: scroll;

     */
    flex: 1;
    /* min-height: 0; */
    /*
    height: 400px;
    min-height: 100%;  for some reason we need to set a height for this to work
    */
}

.igs-imageWrapper img {
    /* width: 100%; */
    /* object-fit: contain; */
}

/*
.igs-thumbnailWrapper {
    width: 320px;
    height: 240px;
}

.igs-thumbnailWrapper img {
   object-fit: contain;
}
*/


.igs-imageUploadWrapper {
    position: relative;
    padding: 0;
    border: 3px solid #FFF;
    background-color: #f2f2f2;
}


.igs-imageUploadWrapper p {
    background-color: #ffffff;
    font-size: 80%;
    color: #AAA;
    font-style: italic;
    text-align: center;
    padding-top: 5px;
    padding-bottom : 5px;
    margin: 0;
}


.igs-imageUpload {
    background-color: #f2f2f2;
    height: 600px;
    width: 800px;
    overflow: auto;
    margin: 0 auto;
    text-align: center;
}


.igs-imageUpload img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
}




/* ===============================================================================
// ***** MAP *****
// =============================================================================== */

.igs-GoogleMap {
    /* height: 512px; */
    flex: 1;
    height: 100%;
    width: 100%;
    position: relative;
}

.igs-GoogleMap-MarkerContainer {
    position: absolute;
    top: 10px;
    left: 10px;
    bottom: 10px;
    width: 100px;
    z-index: 1000;
    border: 1px solid #666666;
    background-color: #CCCCCC;
    padding-left: 10px;
    padding-right: 10px;
}

.igs-GoogleMap-MarkerContainer-Child {
    width: 100%;
    height: 100px;
}

.igs-GoogleMapMarker2 {
    height: 20px;
    width: 20px;
    background-color: #4104b1;
    border-radius: 50%;
    display: inline-block;
}



.igs-GoogleMapMarker, .igs-GoogleMapMarkerContainer {
    #background-color: #4104b1;
    #border-radius: 50%;
    #display: inline-block;

    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    background-color: #4104b1;
    border: 2px solid #b395e9;
    border-radius: 100%;
    user-select: none;
    transform: translate(-50%, -50%);
    cursor: pointer;
    &:hover {
        z-index: 1;
    }
}

.igs-GoogleMapMarkerContainer {
    background-color: #3f9900;
    border: 2px solid #9cc67e;
}
