:root {
    --primaryColor: #1a585b;
}

html {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: "#333";
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--primaryColor);
    font-size: 16px;
}

body {
    margin: 0px;
    background-color: #f3f3f3;
    padding: 0px 0px;
}

.frame {
    width: 100%;
    border-radius: 5px;
    margin: 0px auto;
    padding: 0px;
    background-color: #fafafa;
    min-height: 100vh;
}

.head {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    line-height: 30px;
    padding: 10px;
}

.logo {
    display: flex;
    margin-right: 50px;
}

.logo_span {
    height: 30px;
    line-height: 30px;
    font-size: 20px;
}

.logo img {
    height: 30px;
    margin-right: 10px;
}

.head a {
    padding: 0px 10px;
}

.login {
    margin-left: auto;
}

#content {
    padding: 10px;
}

.footer {
    position: sticky;
    border-top: 1px solid #eee;
    height: 40px;
    line-height: 40px;
    text-align: center;
    top: calc(100vh - 40px);
}


/* https://chinese.freecodecamp.org/news/how-to-build-sign-up-form-with-html-and-css/ */

.signFrm {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.form {
    background-color: #fcfcfc;
    width: 300px;
    border-radius: 8px;
    padding: 20px 40px;
    box-shadow: 0 10px 25px rgba(92, 99, 105, .2);
}

.title {
    font-size: 30px;
    margin-bottom: 50px;
}

.inputContainer {
    position: relative;
    height: 40px;
    width: 100%;
    margin-bottom: 20px;
}


/* 设置输入框的样式 */

.input {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    border: 1px solid #DADCE0;
    border-radius: 7px;
    font-size: 16px;
    padding: 0 20px;
    outline: none;
    background: none;
    z-index: 1;
}


/* 隐藏占位符文本（a）*/

::placeholder {
    color: transparent;
}


/* 设置文本标签的样式 */

.label {
    position: absolute;
    top: 10px;
    left: 15px;
    padding: 0 4px;
    background-color: #fcfcfc;
    color: #DADCE0;
    font-size: 16px;
    /* transition: 0.5s; */
    z-index: 0;
}

.submitBtn {
    display: block;
    margin-left: auto;
    padding: 10px 30px;
    border: none;
    background-color: var(--primaryColor);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 30px;
}

.submitBtn:hover {
    background-color: #8ecfed;
    transform: translateY(-1px);
}

.input:focus+.label {
    color: var(--primaryColor);
}

.input:focus {
    border: 2px solid var(--primaryColor);
}

.input:focus+.label,
.input:not(:placeholder-shown)+.label {
    top: -7px;
    left: 3px;
    z-index: 10;
    font-size: 14px;
    font-weight: 600;
}

.page {
    position: relative;
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
    text-align: center;
}

.reference {
    font-size: small;
    color: #666;
}

.space {
    width: 100%;
    height: 10px;
}

.divider {
    width: 200px;
    height: 0px;
    border-bottom: 1px solid black;
}

.title {
    font-size: 24px;
    font-weight: bold;
}

.subtitle {
    font-style: italic;
}

.text {
    color: #181818;
}

.button {
    min-width: 140px;
    height: 40px;
    border: 1px solid black;
    padding: 10px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: black;
    user-select: none;
    background: rgba(89, 201, 213, 0.25);
    border-radius: 20px;
    display: inline-block;
}

.container {
    max-width: 840px;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-content: center;
    align-items: flex-start;
}

.container-item {
    width: 280px;
}


/* https://sheetjs.com/ */

.center {
    margin-left: auto;
    margin-right: auto;
}

.group-settings {
    max-width: 400px;
    margin-right: 20px;
}

.group-settings div {
    padding-bottom: 10px;
    display: flex;
}

.group-result {
    max-width: 300px;
}

.scroll-container {
    height: 600px;
    overflow: auto;
}

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

.page thead th {
    background-color: #eee;
    padding: 5px 10px;
    margin: 0px;
}

.page table td {
    padding: 5px 10px;
}

.help-tip {
    color: #666;
    font-size: small;
}

.gray td {
    background-color: #eeeeee;
}

.hor-gp label {
    padding-right: 30px;
    padding-left: 5px;
}

.page input[type=text] {
    margin-left: 10px;
    margin-right: 10px;
}

.gp-names input[type=text] {
    width: 70px;
}

.quest label {
    padding: 10px;
}

.quest ul {
    list-style-type: none;
    padding-left: 0;
    text-align: left;
}

.quest li {
    line-height: 30px;
    padding-left: 0;
    margin-top: 30;
}

.anstag {
    margin-right: 200px;
}

.numdiv {
    text-align: left;
    margin-top: 50;
    margin-bottom: 50;
}

.submitdiv button {
    margin-top: 20px;
    margin-right: 100px;
}

.interp,
.page table {
    margin-top: 50;
}

#nav {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

#nav a {
    padding: 0 10px;
}

.form_content {
    width: 90%;
    margin: 10px;
    padding: 10px;
    border: 1px dashed #333;
    background-color: #fff;
}

#form_name {
    font-weight: 700;
    margin: 10px;
}

#form_info {
    font-size: 14px;
    margin: 10px;
}

#form_info table {
    font-size: 14px;
}

.item_container {
    margin: 5px;
}

.item_container input {
    border: 0;
    outline: 0;
    background: transparent;
    border-bottom: 1px solid black;
}

.item_container input:focus {
    border-bottom: 2px solid var(--primaryColor);

}

.item_type_text {}

.item_title,
.item_note,
.item_content,
.item_edit {
    padding: 2px 5px;
}

.item_title {
    font-weight: 500;
    color: #000;
}

.item_info {
    font-style: italic;
    padding-top: 10px;
    color: var(--primaryColor);
}

.item_content label {
    padding-right: 20px;
}

.form_style_table {
    display: table;
    border-spacing: 10px 10px;
    /* horizontally, vertically */
}

.form_style_table .item_container {
    display: table-row;
}

.form_style_table .item_title,
.form_style_table .item_note,
.form_style_table .item_del,
.form_style_table .item_content {
    display: table-cell;
}

.form_style_list {
    display: block;
}

.form_style_list .item_container {
    display: block;
    margin-top: 20px;
}

.form_style_list .item_del {
    float: right;
}

table {
    margin: 20px 10px;
    border-collapse: collapse;
    min-width: 30%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    background: #fafafa;
}

table thead tr {
    background-color: var(--primaryColor);
    color: #ffffff;
    text-align: left;
}

th,
td {
    padding: 10px 15px;
}

tbody tr {
    border-bottom: 1px solid #dddddd;
}

tbody tr:last-of-type {
    border-bottom: 2px solid var(--primaryColor);
}

.list_table th,
.list_table td {
    width: 2em;
}

.list_table thead tr th:first-child,
.list_table tbody tr td:first-child {
    width: auto;
}

.popupBg {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    min-width: 100vw;
    min-height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.popupPage {
    width: 80vw;
    height: 80vh;
    position: fixed;
    left: 10vw;
    top: 10vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    background: #fafafa;
    border-radius: 10px;
}

.tabLeft {
    float: left;
    width: 200px;
    height: 100%;
    background-color: #eee;
    overflow: auto;
}

.tabLeft ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.tabLeft ul li a {
    display: block;
    padding: 8px 16px;
    color: #000;
}

.tabLeft ul li a.active {
    background-color: var(--primaryColor);
    color: white;
}

input[type=button].highlighted,
button.highlighted {
    background-color: var(--primaryColor);
    color: white;
}

button.highlighted:hover {
    opacity: 0.8;
}

.tabTopBar {
    position: relative;
    display: block;
    padding: 10px;
    text-align: right;
}

.tabTopBar button {
    margin-left: 20px;
}

.tabRight {
    margin-left: 210px;
    height: 100%;
    overflow: hidden;
}

#form_tab_content {
    height: 100%;
    overflow: auto;
}

.trial_title {
    font-weight: 600;
}

.form_filled,
.form_unfilled {
    display: inline-flex;
    width: 40px;
    height: 20px;
    background-color: #aaa;
}

.form_unfilled {
    border: 1px solid #000;
}

.form_filled {
    background-color: #06fe2b;
}

/* .item_note::before {
    content: "(";
}

.item_note::after {
    content: ")";
} */

#qrcode {
    display: none;
    margin: 20px auto;
    width: 200px;
    height: 200px;
}

.popupPagePatient {
    width: 340px;
    height: 200px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    background: #fafafa;
    border-radius: 10px;
}

.addPatientDiv {
    width: 300px;
    height: 160px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}