@import 'joins.css';

body {
  margin: 8px;
}

.section {
  border: 2px solid #cccccc;
  margin-bottom: 10px;
}

.section-heading {
  background-color: #eeeeee;
  color: #666666;
  font-family: Sans-Serif;
  font-size: 14px;
  font-weight: bold;
  padding: 5px 5px 5px 10px;
  height: 20px;
  border-bottom: 1px solid #dddddd;
}

.section-body {
  color: #666666;
  font-family: Sans-Serif;
  font-size: 14px;
  padding: 15px 5px 5px 10px;
}

.label {
  float: left;
  width: 200px;
}

.dropdown {
  width: 250px;
}

.textbox {
  width: 245px;
  font-family: Trebuchet MS, Monospace;
}

.wide-textbox {
  width: 400px;
  font-family: Trebuchet MS, Monospace;
}

.upper {
  text-transform: uppercase;
}

.form-row {
  padding-bottom: 10px;
  clear: left;
  overflow: auto;
}

.extraFilesRow {
  padding-bottom: 10px;
  overflow: auto;
}

div.dialogBox {
  width: 305px;
  border: 3px solid #aaaaaa;
  border-radius: 4px;
  position: absolute;
  top: 50px;
  left: 50px;
  padding: 0px;
  visibility: hidden;
  display: none;
  height: 222px;
  overflow: hidden;
  box-shadow: 3px 3px 6px rgba(50, 66, 64, 0.67);
}
div.dialogBox > div.header {
  font-size: 12px;
  font-family: Arial;
  background-color: #dddddd;
  padding: 4px 3px 3px 3px;
  cursor: move;
  font-weight: bold;
  color: #333333;
  position: absolute;
  left: 0px;
  top: 0px;
  white-space: normal;
  width: 100%;
  height: 25px;
  user-select: none;
}
div.dialogBox > div.header div.closebtn {
  position: absolute;
  top: 3px;
  right: 10px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  background-image: url(/profoundui/proddata/images/buttons/close/x1.png);
  background-repeat: no-repeat;
}
div.dialogBox > div.header div.closebtn:hover {
  background-image: url(/profoundui/proddata/images/buttons/close/x1_hover.png);
}

div.dialogBox > div.body {
  background-color: #eeeeee !important;
  top: 27px !important;
}

div.dialogBox > div.body input {
  box-sizing: border-box;
}

div.dialogBox > div.body select > option {
  padding: 0px;
}

div.dialogBox > div.body {
  overflow: auto;
  height: 202px;
  background-color: #ffffff;
  padding: 0px;
  position: absolute;
  left: 0px;
  top: 20px;
  white-space: normal;
  width: 100%;
}

table.field-list {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}

table.field-list tbody tr {
  cursor: default;
  background-color: #f3f3f3;
}
table.field-list tbody tr:nth-of-type(2n) {
  background-color: #ffffff;
}
table.field-list tbody tr:hover {
  background-color: #dcdcdc;
}
table.field-list tbody tr.selected {
  background-color: #6699cc;
  color: #ffffff;
}

table.field-list td {
  font-family: Sans-Serif;
  font-size: 11px;
  font-weight: bold;
  border-left: 1px solid #eeeeee;
  border-right: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  padding-left: 6px;
  padding-right: 6px;
  padding-top: 3px;
  padding-bottom: 3px;
  text-align: center;
}
table.field-list td.dbfield {
  cursor: grab;
  text-align: left;
}
table.field-list td.field {
  text-transform: uppercase;
}


table.field-list input.grid-input {
  font-family: Sans-Serif;
  font-size: 11px;
  font-weight: bold;
  width: 100%;
  background-color: white;
  border: 1px solid #cccccc;
  border-radius: 4px;
  color: #666666;
  outline: 0;
  padding: 1px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
}

table.field-list tr.move_valid {
  border-bottom: 3px dashed #999999;
}

#fieldSelectionSection .move-button-wrap {
  float: right;
  margin-right: 20px;
  font-weight: normal;
}

.move-up-button, .move-down-button {
  font-family: Sans-Serif;
  font-size: 11px;
  width: 140px;
}

table td.header {
  font-family: Sans-Serif;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  background-color: #d0dafd;
}

table td.checkbox-column {
  width: 70px;
}

table td.field-column, table thead td.coalesce-column {
  width: 180px;
}

table td.length-type-column {
  width: 80px;
}

table thead td.null-column {
  width: 40px;
}

table tbody td.null-column {
  color: blue;
}

table td.key-column {
  width: 40px;
}

table input.recommend {
  background-color: #ffffc6;
}

.button {
  font-family: Sans-serif;
  font-size: 13px;
  font-weight: bold;
  text-transform: small-caps;
  width: 250px;
  color: #333333;
}

.wait-message {
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  opacity: 0.75;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
  background-color: #999999;
  color: #000000;
  text-align: center;
  padding-top: 150px;
  font-family: Sans-Serif;
  font-weight: bold;
  font-size: 18px;
}

.designer-link, .libl-link {
  color: blue;
  font-family: Sans-Serif;
  font-size: 12px;
}

.designer-iframe {
  position: absolute;
  top: -999px;
  left: -999px;
  width: 600px;
  height: 200px;
}

p.warning {
  color: red;
  margin: 0px;
}

span.warning {
  font-family: Sans-Serif;
  font-size: 12px;
  color: #000000;
  background-color: #ffffc6;
  padding: 4px;
  border: 1px solid #6666ff;
}

/* Field name warning. */
table.field-list span.warning {
  color: salmon;
  padding: 0px;
  border: none;
  background-color: transparent;
  font-family: inherit;
  font-size: inherit;
}

table.field-list input.warning,
.joinable table input.warning {
  background-color: rgb(255, 200, 200);
}

#sqlindexWarning {
  animation-name: warnsqlindex;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  margin-left: 3px;
}

@keyframes warnsqlindex {
  50%  {background-color: #ffc6c6;}
}

@keyframes warnfadein {
  50% {opacity: 0;}
}

.joinable > .wrap {
  max-height: 250px;
}

tr.move_dragover {
  border-bottom: dashed 2px green;
}

#joinSelectionSection {
  position: relative;
  font-family: Sans-Serif;
}

#joinSelectionSection .s-resizer {
  background-color: #cccccc;
  height: 5px;
  cursor: s-resize;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

#joinSelectionSection .help {
  position: absolute;
  top: 5px;
  left: 5px;
  background-color: white;
}

#joinSelectionSection .section-body {
  resize: vertical;
  position: relative;
  min-height: 300px;
  max-height: 800px;
  overflow-y: auto;
  padding: 0px;
}

.joinable > .col-headings > div {
  display: table-cell;
}

.joinable > .col-headings > div:nth-of-type(1), .joinable table tr td:nth-of-type(1) {
  width: 70%;
}

.joinable .correl {
  border-width: 2px 1px 1px 1px;
  border-style: solid;
  border-color: #ccc;
  cursor: default;
  background-color: rgb(245, 245, 245);
  font-size: 11px;
  font-weight: bold;
  padding: 3px 6px 3px 6px;
}

#sqlpreview pre {
  margin: 0px;
}

#settingsDirty {
  font-weight: bold;
  display: none;
}
#settingsFiles { display: none; } /*Settings files input is used upon a button click.*/
#labelSettingsFN { 
  display: none;
  color: black;
}

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

@media screen and (min-width: 1000px){
  #appTypeFileSection {
    float: left;
    width: calc(100% - 310px);
    box-sizing: border-box;
    margin-right: 10px;
  }
  #settingsSection {
    width: 300px;
    float: left;
    box-sizing: border-box;
  }
  #settingsSection .section-body .form-row {
    word-wrap: break-word;
  }
  #settingsSection .section-body button {
    display: block;
  }
  
  .floatWrap-large:after {
    content: "";
    display: table;
    clear: both;
  }
  
  .flex-large { display: flex; }
  
  #sqlpreview {
    box-sizing: border-box;
    margin-right: 10px;
    flex-grow: 1;
  }
  #codeGenerationSection {
    box-sizing: border-box;
    flex-grow: 8;
  }
}