
@import url('https://fonts.pandax.sjtu.edu.cn/css2?family=Exo+2:wght@400;700&family=PT+Sans:wght@300;400;700&family=PT+Sans+Narrow:wght@400;700&display=swap');

@import url("https://static.pandax.sjtu.edu.cn/bootstrap-icons-1.5.0/bootstrap-icons.css");


html,body,h1,h2,h3,h4 { margin: 0px; }
html,body { height: 100%; }

html,body {
    width: 100%;
    font-size: 16px;
    font-family: "Exo 2", sans-serif;
}

h1,h2,h3,h4 {
    font-family: "PT Sans", sans-serif;
    font-weight: 700;
}



.container {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
     max-width: 1280px; width: 100%; min-height: 100%;
    height: auto;
    margin: 0 auto;
}

.row {
    margin-left: 0px;
    margin-right: 0px;
}


#schd-container {
    padding-top: 8px;
}

table td {
    padding-left: 10px;
    padding-right: 10px;
}

.nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 4px 10px 4px 10px;
}

.nav li a { padding-top: 4px; padding-bottom: 4px; }


#nav-months {
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

#nav-samples {
    margin: 5px 5px 5px 5px;
}

.box-histogram {
    width: 500px;
    padding: 5px;
  /*
    margin: 0 auto;
    margin-bottom: 8px;
   */
    background-color: #FFF;
    border: 1px solid;
    border-radius: 4px;
    box-shadow: 0px 1px 1px;
}



/*
.box-histogram img {
    width: 50%;
}
    margin: 5px 5px 5px 5px;
*/

.sample-label {
    margin-right: 2px;
    margin-left: 2px;
    padding: 3px 2px 3px 2px;
    margin-bottom: 1px;
    font-size: 1.1em;
    font-weight: 400;
    display: inline-block;
    background-color: #2b5fa8;
}

.month-label {
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 1.0em;
    text-align: center;
    width: 3.8em;
    display: inline-block;
    font-weight: bold;
}

.month-label-gray {
    background-color: #999;
    font-weight: 300;
    text-align: center;
}

.sample-label a,
.sample-label a:link,
.sample-label a:hover{
    font-family: "PT Sans Narrow", sans-serif;
    font-size: 16px;
    text-decoration:none;
    color: #FFF;
}

.mc-fail::before,
.mc-success::before {
    content: "MC";
    padding-right: 2px;
    padding-left: 2px;
    margin-right: 5px;
    color: #111;
}

.mc-fail::before {
    background-color: #FF0;
}

.mc-success::before {
    background-color: #0F0;
}

#form-mc-inner,
#form-edit-eff-err-coeff-inner { line-height: 1.8em; }

#form-mc-inner,
#form-edit-eff-err-coeff-inner input { line-height: 1.0em; }

#nav-months table tr {
    border-bottom: none;
}

#nav-months table td {
    padding-left: 20px;
}

#nav-months table tr#cur-year {
    border: 2px solid #4c9ed9;
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
}

img.image_picker_image {
    width: 100%;
}

#toggle-goodness {
    margin-left: 10px;
    font-weight: bold;
}


/* calendar */
/* Weekdays (Mon-Sun) */
.month {
    min-width: 1000px;
    width: 95%;
    display: none;
    text-align: center;
}


.calendar-week-header,
.calendar-day-header,
.calendar-day {
    border: 1px solid #dedede;
    width: 14.28571%;
    overflow: hidden;
    font-size: 0.8em;
    text-align: center;
}


.calendar-day {
    min-height: 40px;
    padding-left: 5px;
    overflow: auto;
}


.calendar-day-header {
    font-size: 1em;
    font-weight: bold;
    background-color: #ededed;
}

.month h2 {
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 8px;
}

.calendar-week-header {
    font-size: 1em;
    font-weight: bold;
    background-color: #23253c;
    color: #fff;
    padding-top: 3px;
    padding-bottom: 3px;
}

.weekdays {
    margin: 0;
    padding: 10px 0;
    background-color:#ddd;
}

.weekdays li {
    display: inline-block;
    width: 14.286%;
    color: #666;
    text-align: center;
}

/* Days (1-31) */
.days {
    padding: 10px 0;
    background: #eee;
    margin: 0;
}

.days li {
    list-style-type: none;
    display: inline-block;
    width: 14.28571%;
    height: 30px;
    text-align: center;
    font-size:12px;
    color:#777;
    border: solid;
}

button#loadmodal {
    margin: 2px 2px 2px 2px;
}

.modal-dialog {
    width: 900px;
    padding: 8px;
}

.modal-dialog.peak-dialog {
    width: 1280px;
    padding: 10px;
}

.container-peak {
    width: 100%;
    clear: both;
    overflow: hidden;
    border-top: dashed 1px;
    border-bottom: dashed 1px;
    border-color: #c9c9c9;
}

.peak-img {
    width: 600px;
    float: left;
}

.evo-one-container-wrap {
    float: left;
}



#hisModal-img img {
    width: 100%;
}


.peak-img img {
    width: 100%;
}

#photoModal-img {
    width: 100%;
    float: left;
}

#photoModal-img img {
    width: 100%;
}


#hisModal-title p {
    font-family: monospace;
    line-height: 0.5em;
    white-space: pre;
}


#counting-rate-container {
    padding: 5px;
  /*
    position: absolute;
    margin: 0 auto;
   */
    width: 1050px;
    margin: 10px 0px 10px;
    background-color: #FFF;
    border: 1px solid;
    border-radius: 4px;
    box-shadow: 0px 1px 1px;
    display: none;
}

#counting-rate-container p {
    margin: 2px 0px 2px;
}

/*
#evo-container {
    display: none;
}
*/
.container-mc {
    padding: 10px 10px 10px 10px;
}

.row-margin10 {
    margin-top: 10px;
    margin-bottom: 10px;
}


/************************** D3 Chart **************************/
path {
    stroke: steelblue;
    stroke-width: 2;
    fill: none;
}

.axis path,
.axis line {
    fill: none;
    stroke: grey;
    stroke-width: 1;
    shape-rendering: crispEdges;
}

div.tooltip {
    position: absolute;
    text-align: left;
    width: 260px;
    height: 90px;
    padding: 2px;
    font: 12px sans-serif;
    background: lightsteelblue;
    border: 0px;
    border-radius: 8px;
}

#evo-one-container-wrap {
    position: relative;
}

div.tooltip-peakrate {
    position: absolute;
    text-align: center;
    width: 80px;
    height: 20px;
    padding: 2px;
    font: 12px sans-serif;
    background: palegreen;
    border: 0px;
    border-radius: 2px;
}


  /*  pointer-events: none;    This line needs to be removed */

circle {
    color: #00FF00;
}


/************************** D3 End **************************/

.push-right {
    text-align: right;
}

.push-left {
    text-align: left;
}

.push-center {
    text-align: center;
}

.sheets {
    font-size: 0.9em;
    font-weight: 400;
}

tr {
    border-bottom: dotted 1px;
}

th {
    border-bottom: solid 2px;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
}

#peakrate td {
    padding-left: 10px;
    padding-right: 10px;
}

tr.bottom-none {
    border-bottom: none;
}

#mainhpge {
    background-color: #efefef;
    padding: 5px;
    width: 1000px;
    margin-top: 10px;
    margin-bottom: 20px;
}

#mainhpge img {
    max-height: 100%;
    max-width: 100%;
}

#combined {
    width: 800px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
}

#sample-thumbnail img {
    width: auto;
    height: auto;
}


.download:after {
    font-size: inherit;
    white-space: nowrap;
    vertical-align: initial;
    line-height: 1em;
    padding-left: 0.2em;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
}

.download:after {
    content: "\e025";
}


#condor-table td {
    padding-left: 5px;
    padding-right: 5px;
}

.container-sp {
    padding: 10px 10px 10px 10px;
    font-family: monospace;
    font-size: 12px;
    background-color: black;
    color: #00FF00;
}

.sp-warning {
    background-color: #FFFF00;
}

.sp-warning .modal-header {
    background-color: #000000;
    color: #FFFF00;
}

.sp-info {
    background-color: #FFFFFF;
}



/* schedule */

.schd-row {
    position: relative;
    border-bottom: dotted 1px;
}

.schd-header {
    font-weight: bold;
}


.col-plus-minus {
    text-align: left;
    width: 1.5em;
    display: inline-block;
    vertical-align: 0.125em;
}

.col-sample-name {
    text-align: left;
    width: 250px;
    display: inline-block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.col-sample-desc {
    text-align: left;
    width: 200px;
    display: inline-block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.col-sample-label {
    text-align: left;
    width: 100px;
    display: inline-block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.col-sample-from {
    text-align: center;
    width: 150px;
    display: inline-block;
}

.col-sample-expr {
    text-align: center;
    width: 90px;
    display: inline-block;
}

.col-sample-matl {
    text-align: center;
    width: 200px;
    display: inline-block;
}

.col-sample-start {
    text-align: right;
    width: 100px;
    display: inline-block;
}

.col-sample-end {
    text-align: right;
    width: 100px;
    display: inline-block;
}


/* from: http://stackoverflow.com/questions/796087/make-a-div-into-a-link */
.schd-row a span {
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left: 0;

  z-index: 1;
  /* edit: fixes overlap error in IE7/8,
     make sure you have an empty gif */
  /*background-image: url('empty.gif');*/
}


.sample-detail {
    background-color: #f0f0f0;
    padding: 10px 10px 10px 10px;
}

.sample-btn-container a {
    margin-right: 25px;
}

/* set color for schedule delete icon */
.show-schddelModal {
    color: #F00;
}
#show-schdaddModal {
    color: #449d44;
}


/* a round button */
.btn-circle {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    font-size: 14px;
    padding: 5px 0;
    text-align: center;
}

/* place the modal close btn out top right corner */
.modal-close-btn {
    color: #fff;
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 10;
}

div.help-content {
    margin-left: 20px;
    padding: 10px 10px 10px 10px;
    max-width: 800px;
}

.ascii-art {
    font-family: monospace;
    font-style: normal;
}

.pager{margin: 10px 0px 10px; padding: 0px 0px 0px;}
.page-numbers{
    border:1px solid #ccc;
    color:#808185;
    display:block;
    float:left;
    font-weight:bold;
    margin-right:3px;
    padding:3px 6px 3px 6px;
    text-decoration:none;
}
.page-numbers.desc{border:none;}
.page-numbers:hover{text-decoration:none;}
.page-numbers.next,.page-numbers.prev{border:1px solid #fff;}
.page-numbers.current{background-color:#808185;border:1px solid #808185;color:#fff;font-weight:bold;}
.page-numbers.dots{border:1px solid #fff;}

span#eff-last-update-time,
span#ra-last-update-time {
    margin-right: 10px;
    margin-left: 5px;
}

.start-hidden {
    display: none;
}


div#form-schd-edit-inner input,
div#form-schd-add-inner input {
    margin-top: 2px;
    margin-bottom: 2px;
}

/* switch between weight and piece */
.onoffswitch {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 90px;
    box-sizing: border-box;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.onoffswitch-checkbox {
    display: none;
}
.onoffswitch-label {
    position: relative;
    display: inline-block;
    overflow: hidden; cursor: pointer;
    border: 2px solid #999999; border-radius: 16px;
    margin: 2px 0px 2px 0px;
}
.onoffswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before,
.onoffswitch-inner:after {
    display: block;
    float: left;
    width: 50%;
    height: 30px;
    padding: 0;
    line-height: 30px;
    font-size: 14px;
    color: white;
    font-weight: bold;
    box-sizing: border-box;
}
.onoffswitch-inner:before {
    content: "Weight";
    padding-left: 10px;
    background-color: #34A7C1; color: #FFFFFF;
}
.onoffswitch-inner:after {
    content: "Piece";
    padding-right: 10px;
    background-color: #000; color: #fff;
    text-align: right;
}
.onoffswitch-switch {
    position: absolute;
    display: block;
    width: 18px;
    margin: 6px;
    background: #FFFFFF;
    top: 0;
    bottom: 0;
    right: 48px;
    border: 2px solid #999999;
    border-radius: 16px;
    transition: all 0.3s ease-in 0s;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0px;
}

.pdf-red {
    color: #d40016;
}

div#top-btn-box {
    display: flex;
    justify-content: space-between;
}

.general-error {
    background-color: #FFFF00;
    color: #000000;
    font-family: "PT Sans", sans-serif;
    font-size: 2em;
    padding: 16px 16px 16px 16px;
}

.bg-warning { background-color: #f7f78a; }

span.fit-param-label,
span.sample-info-label {
    display: inline-block;
    width: 16ch;
    text-align: right;
    font-size: 0.9em;
    font-weight: bold;
    margin-right: 4px;
}

span.sample-info-label.single-col-label {
    text-align: left;
    width: auto;
}

textarea#sample_comment { width: 72ch; }

span.fwhm-comment,
span.provider-comment {
    display: inline-block;
    text-align: right;
    font-style: italic;
    font-size: 0.9em;
    width: 100%;
}

span.fwhm-comment { text-align: center; }

.fit-params { padding-left: 2px; padding-right: 2px; }
.fit-params input { width: 18ch; }

div.fit-param-section {
    width: 100%;
    padding-bottom: 4px;
    margin-bottom: 4px;
    border-bottom: 1px solid #aaa;
}

span.param-header {
    display: inline-block;
    text-align: center;
    font-weight: bold;
    width: 100%;
}
