body {
    font-family: 'DejaVu Sans Mono', 'Lucida Console', monospace;
    font-size: 16px;
    background-color: white;
}

.page-container {
    display: flex;
    flex-direction: column;
}

.page-content {
    box-sizing: border-box;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9998;
}

.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 9999;
}

.middle-screen {
    display: flex;
    position: fixed;
    flex-wrap: wrap;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.msg-warning {
    color: red;
    display: none;
}

.left {
    justify-content: left;
}

.right {
    justify-content: right;
}

.center {
    justify-content: center;
}

.bottom-right {
    position: fixed;
    bottom: 0%;
    right: 0%;
    margin: 10px;
}

.container {
    display: flex;
    flex-wrap: wrap;
}

.container-nw {
    display: flex;
    flex-wrap: nowrap;
}

.panel-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    margin-right: 25px;
    box-sizing: border-box;
}

.panel-container-hidden {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    margin-right: 25px;
    box-sizing: border-box;
    display: none;
}

.rounded-panel {
    border-radius: 6px;
    overflow: hidden;
}

.top-panel {
    display: flex;
    align-items: center;
    max-height: 32px;
    width: 50%;
    background-color: #008a82;
    color: white;
}

.top-panel button {
    margin: 0;
    padding: 0;
    font-size: 20px;
    width: 30px;
    height: 30px;
}

.bottom-panel {
    display: flex;
    align-items: center;
    max-height: 32px;
}

.panel {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 200px;
}

.panel select {
    width: 120px;
    height: 25px;
}

.panel input {
    width: 280px;
    height: 24px;
}

.panel #upload_file {
    margin-left: 10px;
}

.panel #bt_upload, #bt_download, #bt_load_sheet {
    height: 25px;
    width: 95px;
    margin-left: 10px;
    padding: 0px;
}

.panel #bt_load, #bt_search, #bt_login, #bt_password, #bt_profile {
    flex: 1;
    height: 50px;
    width: 60px;
    margin-left: 10px;
}

.l-panel {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 300px;
}

.l-panel input {
    width: 120px;
    height: 24px;
}

.m-panel {
    position: absolute;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.m-panel select {
    width: 125px;
    height: 25px;
}

.m-panel input {
    width: 120px;
    height: 24px;
}

.p-panel {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 180px;
    padding-bottom: 2px;
    padding-top: 2px;
}

.p-panel select {
    width: 125px;
    height: 25px;
}

.p-panel input {
    width: 120px;
    height: 24px;
}

.d-panel {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 8px;
}

.d-panel select {
    width: 207px;
    height: 25px;
}

.d-panel input {
    width: 200px;
    height: 24px;
}

.d-panel textarea {
    width: 256px;
    height: 120px;
}

.d-panel #bt_save, #bt_ok, #bt_delete, #bt_cancel {
    flex: 1;
    height: 50px;
    width: 60px;
    margin: 8px;
}

.w-panel {
    width: 530px;
    min-width: 330px;
}

.v-panel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-width: 300px;
}

.lst-panel {
    display: flex;
    flex-wrap: nowrap;
    padding-top: 0px;
    padding-bottom: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

.lst-panel select {
    width: 207px;
}

.img-panel {
    display: flex;
    align-items: center;
    width: 25%;
}

.table-container {
    display: flex;
    flex: 1;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: nowrap;
    max-height: calc(100vh - 240px);
    min-height: 150px;
}

.view-table-container {
    display: flex;
    flex: 1;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: nowrap;
    max-height: calc(100vh - 160px);
    min-height: 150px;
}

.data-table-container {
    display: flex;
    flex: 1;
    flex-wrap: nowrap;
    box-sizing: border-box;
    max-height: calc(100vh - 120px);
    min-height: 150px;
    max-width: calc(100vw - 340px);
    min-width: 270px;
}

.data-table-container td {
    box-sizing: border-box;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: 0px;
    border-right: 0px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
    height: 28px;
    min-width: 80px;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: "...";
}

.c-right {
    justify-content: right;
    text-align: right;
}

.of-auto {
    overflow: auto;
}

.of-none {
    overflow: hidden;
}

.table-wrapper-sidebyside {
    flex: 1;
    margin: 10px;
    border: 1px solid #ccc;
    overflow: auto;
    box-sizing: border-box;
    display: none;
}

.table-wrapper-sidebyside table {
    display: none;
}

.table-wrapper-fullwide {
    flex: 1;
    margin: 10px;
    border: 1px solid #ccc;
    overflow: auto;
    display: none;
}

.table-wrapper-fullwide table {
    display: none;
}

.table-wrapper-fullwide th,
.table-wrapper-fullwide td  {
    max-width: 600px;
}

.fixed-header{
    position: sticky;
    top: 0;
    background-color: #f2f2f2;
}

.panel-header {
    height: 48px;
}

.files-container {
    display: flex;
    align-items: stretch;
    min-width: 300px;
    max-height: calc(100vh - 224px);
    min-height: 150px;
}

.table-files {
    overflow: auto;
    width: 100%;
    border: 1px solid #ccc;
    display: none;
}

.table-files table {
    border: 1px solid #ccc;
}

.table-files td {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: 1px;
    border-right: 1px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
    white-space: pre-line;
}

.table-index {
    overflow: auto;
    width: 100%;
    border: 0px;
}

.table-index table {
    border: 0px;
}

.table-index td {
    border-top: 0px;
    border-bottom: 0px;
    border-left: 0px;
    border-right: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 5px;
    padding-right: 5px;
    width: 100%;
    text-align: center;
    white-space: pre-line;
}

.ha {
    color: white;
    text-decoration: none;
}

.wb {
    background-color: white;
}

.margin-l25 {
    margin-left: 25px;
}

.rounded-img {
    border-radius: 20px;
    overflow: hidden;
}

.drop-shadow {
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 1.0);
}

.border-3d {
    border: 1px outset #ccc;
    border-radius: 10px;
    padding: 10px;
}

.rotate-360 {
    display: inline-block;
}

.rotate-360:hover {
    animation: rotate360 2s linear infinite;
}

@keyframes rotate360 {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.groovy-text {
  display: inline-block;
}

.groovy-text h1, .groovy-text h2, .groovy-text h3 {
  display: inline-block;
  transform-origin: bottom;
  animation: groovy 0.62s linear infinite;
}

@keyframes groovy {
    0% {
        transform: rotate(0deg);
    }
    12% {
        transform: rotate(6deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(-2deg);
    }
    95% {
        transform: rotate(-3deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

#bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#bg-img {
    position: absolute;
    top: calc(15% - (100vh / 2));
    right: calc(0% - (100vw / 2));
    width: 250%;
    height: 250%;
    z-index: -1;
    animation: rotate360 240s linear infinite;
}

#drop-panel {
    display: flex;
    width: calc(100% - 60px);
    height: calc(100vh / 2);
    border: 4px dashed #ccc;
    background-color: #f4f4ff;
    border-radius: 24px;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    margin: 10px;
    cursor: pointer;
}

#drop-panel.dragover {
    border: 4px dashed #45f;
    background-color: #f0f0ff;
}

.dashed-bg {
    background-image: linear-gradient(0deg, transparent 11px, #ccd 11px, #ccd 13px, transparent 13px),
                      linear-gradient(90deg, transparent 11px, #ccd 11px, #ccd 13px, transparent 13px);
    background-size: 12px 12px;
}

.messages {
    position: absolute;
    z-index: 9999;
}

button {
    cursor: pointer;
    padding: 5px;
    margin: 0px;
}

.button2 {
    font-size: 16px;
    cursor: pointer;
    padding: 2px;
    margin: 2px;
}

table {
    border-collapse: collapse;
    border: 1px solid #ccc;
    display: none;
}

td, th {
    padding: 5px;
    border: 1px solid #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: "...";
}

tr {
    background-color: white;
}

tr.selected {
    background-color: #ddf;
    color: #773bed;
    font-weight: bold;
}

.pointer {
    cursor: pointer;
}

.hidden {
    display: none;
}

.disabled {
    opacity: 0.3;
}

.highlighted {
  background-color: #ddf;
}

.error {
    background-color: rgb(255, 220, 220);
    border-color: red;
}

.fsz20 {
    font-size: 20px;
}

.fcblue {
    background-color: lightslategrey;
    color: white;
}

.warning-bubble {
    margin-left: 12px;
    display: inline-block;
    position: absolute;
    width: auto;
    height: auto;
    padding-left: 10px;
    padding-right: 10px;
    border: 1px solid;
	border-color: black;
    border-radius: 8px;
    background-color: lightyellow;
    z-index: 9996;
}
.tri-right.border.left-top:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: -20px;
    right: auto;
    top: 6px;
    bottom: auto;
    border: 10px solid;
    border-color: transparent black transparent transparent;
    z-index: 9997;
}
.tri-right.left-top:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: -19px;
    right: auto;
    top: 6px;
    bottom: auto;
    border: 10px solid;
    border-color: transparent lightyellow transparent transparent;
    z-index: 9998;
}

iframe {
    width: calc(100vw - 290px);
    height: calc(100vh - 154px);
    border: none;
}

@media only screen and (max-width: 940px) {
    body {
        font-size: 10px;
    }
    .files-container {
        width: calc(100vw - 360px);
        max-height: calc(100vh - 184px);
    }
    .table-container {
        max-height: calc(100vh - 200px);
    }
    .data-table-container {
        display: flex;
        flex: 1;
        align-items: stretch;
        justify-content: space-between;
        flex-wrap: nowrap;
        max-height: calc(100vh - 120px);
        min-height: 150px;
        max-width: calc(100vw - 275px);
        min-width: 300px;
    }

    .data-table-container td {
        min-width: 50px;
        max-width: 220px;
    }

    .w-panel {
        width: 420px;
    }

    .panel select {
        font-size: 10px;
        width: 100px;
        height: 25px;
    }

    .panel input {
        font-size: 10px;
        width: 100px;
        height: 24px;
    }

    .d-panel textarea {
        width: 236px;
        height: 140px;
    }
}

@media only screen and (max-width: 730px) {
    .files-container {
        width: 100%;
        max-height: calc(100vh - 334px);
    }

    .table-container {
        max-height: calc(100vh - 200px);
    }

    .w-panel {
        width: 330px;
    }

    .panel select {
        font-size: 10px;
        width: 60px;
        height: 25px;
    }

    .panel input {
        font-size: 10px;
        width: 60px;
        height: 24px;
    }

    .panel #bt_load, #bt_search, #bt_profile {
        flex: 1;
        height: 50px;
        font-size: 10px;
        margin-left: 5px;
    }

    .panel #bt_upload, #bt_download, #bt_load_sheet {
        height: 25px;
        font-size: 10px;
        width: 80px;
        margin-left: 5px;
    }

    .d-panel {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        padding: 4px;
    }

    .d-panel select {
        width: 146px;
        height: 25px;
    }
    
    .d-panel input {
        width: 140px;
        height: 24px;
    }

    .d-panel textarea {
        width: 176px;
        height: 140px;
    }
}

@media only screen and (max-width: 594px) {
    .table-container {
        max-height: calc(100vh - 300px);
    }

    .p-panel select {
        font-size: 10px;
    }

    .p-panel input {
        font-size: 10px;
    }
    
    .d-panel select {
        width: 116px;
        height: 25px;
    }
    
    .d-panel input {
        width: 110px;
        height: 24px;
    }
    
    .d-panel #bt_save, #bt_cancel {
        flex: 1;
        height: 40px;
        width: 50px;
        margin: 4px;
    }
}
