:root {
    --color-button-text: rgba(165, 42, 42, 1.0);
    --color-text: rgba(165, 42, 42, 1.0);
    --color-items-text: rgba(0, 0, 0, 1.0);
    --color-header-text: rgba(255, 255, 255, 1.0);
    --color-datetime-text: rgba(105, 105, 105, 1.0);
    --color-complete-datetime-text: rgba(255, 255, 255, 1.0);
    --color-phone-info-title-text: rgba(255, 255, 255, 1.0);

    --color-header-background: rgba(0, 204, 153, 1.0);
    --color-title-background: rgba(244, 164, 96, 1.0);
    --color-items-background: rgba(255, 255, 255, 1.0);
    --color-complete-datetime-background: rgba(132, 204, 252, 1.0);
    --color-phone-info-title-background: rgba(248, 164, 100, 1.0);
    --color-dialog-header-background: rgba(139, 69, 19, 0.7);
    --color-button-background: rgba(135, 206, 250, 1.0);
    --color-button-checked-background: rgba(27, 164, 245, 1.0);

    --color-alert: rgba(255, 0, 0, 1.0);
    --color-caution: rgba(255, 165, 0, 1.0);
    --color-ok: lightgreen; 

    --color-border: rgba(213, 223, 229, 1.0);
    --color-items-border: rgba(166, 166, 166, 1);
    --color-button-border: rgba(27, 164, 245, 1.0);

    --color-itemarea: rgb(255, 255, 255);

    --color-table-background: rgb(255 252 241);
    --color-pagination-button-background: #d6e9ca;
    --color-pagination-button: #00552e;
    --color-pagination-button-this-background: #ed7d31;

    --color-transparent: rgba(0, 0, 0, 0.0);
    
    --color-cover: rgba(0, 0, 0, 0.5);

    --height-footer: 50px;
    --margin-footer: 8px;

    --color-disable: rgb(159 157 157);

    --color-highStress: rgba(255, 0, 0, 0.8);
    --color-nervous: rgba(255, 0, 0, 0.5);
    --color-concentration: rgba(0, 204, 153, 0.8);
    --color-boring: rgba(0, 0, 255, 0.5);
    --color-sleepiness: rgba(0, 0, 255, 0.8);

    --color-active-button: rgba(237, 125, 49, 1.0);
}

/* 全体 */
body {
    background-color: var(--color-background);
    width: 100%;
    min-width: 1226px;
    min-height: 556px;
}

button {
    color: var(--color-button-text);
}

.required-mark {
    color: red;
    font-weight: bold;
}

img {
    object-fit: contain;
}
.inline-block {
    display: inline-block;
}
.attention-note {
    font-weight: bolder;
}
/* Header */
#logo {
    text-decoration: none;
    margin-right: -10px;
}

#logo img {
    height: max(100%,80px);
}

header {
    background-color: var(--color-items-background);
    color: var(--color-items-text);
}

header a {
    color: var(--color-items-text);
}

header .container {
    padding-top: 5px;
    padding-bottom: 5px;
    font-weight: bold;
    height: 9rem;
    display: block;
    max-width: 100%;
    justify-content: start;
}

#user-name {
    margin-right: 20px;
    white-space: nowrap;
}

.header-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.header-menu * {
    margin: 0 9px;
}

.header-content {
    flex-wrap: nowrap;
    justify-content: flex-end;
    height: Calc(100% - 4px);
    width: fit-content;
}

.organization-name {
    font-size: 1.3rem;
}

.user-icon img {
    height: 98px;
}
.alert-text {
    color: red;
    font-weight: bold;
}
@media screen and (max-width: 1024px) {
    .container > * {
        font-size: 0.85em;
    }

    .container .dc-vertical-dropdown > * {
        font-size: 0.9em;
    }
}

.header-menu a {
    display: inline-block;
}

.header-menu-alert-icon {
    color: var(--color-alert);
    margin-right: 0px;
}

.header-menu-alert {
    color: var(--color-alert);
    margin-left: 0px;
}

.header-menu-disable {
    color: var(--color-disable);
}
.header-container {
    display: flex;
    justify-content: space-between;
    /* justify-content: flex-end; */
    padding: 0px;
    margin-bottom: 10px;
}

.header-container>li {
    list-style: none;
    text-align: center;
}

.header-container-inner-container {
    display: flex;
    padding: 0px;
}

.header-container-inner-container > li {
    list-style: none;
    text-align: center;
    margin: 0 5px;
}

.header-title-emphasis {
    font-weight: bold;
    font-size: 1.3rem;
}
#user-info a {
    margin: 0 10px;
}

/* サイドバー */
.side {
    width:max(13%,140px);
    text-align: center;
    overflow-y:auto;
    margin-right: 10px;
}

.main {
    width:87%;
    background-color: var(--color-items-background);
    height: 100%;
}
.main-content {
    border: 2px solid #919191;
    overflow-y: scroll;
    height: 100%;
}
.disp-content {
    height: 100%;
}
/* テーブル全体 */
.table {
    border: black 0.5px solid;
    display: flex;
    flex-direction: column;
    width: fit-content;
}

/* ヘッダー部、本体部 */
.table > .table_header > .table_row, .table > .table_body > .table_row {
    display: flex;
    flex-direction: row;
}

/* 各行 */
/* .table > .table_header > .table_row > *, .table > .table_body > .table_row > * {
    border: black 0.5px solid;
    width: 100%;
} */

.overflow-x {
    overflow-x: auto;
}
.overflow-y {
    overflow-y: auto;
}
/* テーブルセット */
.table_header .table_set {
    display: flex;
    flex-direction: column;
}
.table_header .table_set > * {
    display: flex;
    flex-direction: row;
}
.table_body .table_set {
    display: flex;
    flex-direction: row;
}
.table_header .table_set > *:first-child {
    border: black 0.5px solid;
}
.table_header .table_set > * > * {
    border: black 0.5px solid;
}
.table_body .table_set > * {
    border: black 0.5px solid;
    height: 100%;
}
.table_row > .table_set > .button_column {
    width: 50px;
    height: 100%;
}
.table_row > *.table_set {
    padding: 0;
}

/* ページネーション */
.pagination li {
    display: inline-block;
    border:1px #ccc solid;
    color: var(--color-button-border);
    border-radius: 5px / 5px;
    margin: 1px;
}
    
.pagination .pagination-this {
    background-color: var(--color-pagination-button-this-background);
    color:#fff;
}

.pagination li * {
    display: block;
    padding: 5px 15px;
}

.pagination li a {
    color: var(--color-pagination-button);
    text-decoration: none;
}

.pagination li a:hover {
    color: #fff;
    background-color: #a6a6a6;
}

.pagination .pagination-over {
    border: none;
    background-color: transparent;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* テーブル */
.sticky-table {
    /* display: block; */
    border: solid var(--color-items-border) 1.5px;
    width:100%;
    min-width:100px;
    overflow: auto;
    table-layout: fixed;
    position: relative;
    margin-bottom:5px;
}

.sticky-table thead, .sticky-table tbody {
    width: 100%;
}

.sticky-table th, .sticky-table td {
    border: solid var(--color-items-border) 1px;
    padding: 2px;
    display: table-cell;
    height: 40px;
    text-align: center;
    vertical-align: middle;
    word-break: break-word;
}

.sticky-table th {
    position: -webkit-sticky;
    top: 0;
    z-index: 1;
    background-color: var(--color-header-background);
    color: var(--color-header-text);
}

.trBorder{
    border-top:2.5px solid #5b9bd5;
}

.table-title {
    font-weight: bold;
    font-size: 1.5rem;
}
.table-title-emphasis {
    color:red;
    font-weight: bold;
}

/* 列 */
.column-id {
    width: 80px;
}

.column-name {
    width: 160px;
}

.column-datetime {
    width: 200px;
}

.column-position-kind {
    width: 100px;
}

.column-alert-kind {
    width: 150px;
}

.column-sent-email {
    width: 300px;
}

.column-sent-email div {
    width: 290px;
}

.column-icon {
    width: 100px;
}

.column-auth {
    width: 100px;
}

.column-email {
    width: 300px;
}

.column-tel {
    width: 200px;
}

.column-address {
    width: 300px;
}

.column-count {
    width: 100px;
}
.column-no {
    width: 9%;
}

.column-text {
    width: 14%;
}
.column-colspan3 {
    width: 20%;
}
.column-sampling-count {
    width: 15%
}
.column-period {
    width: 20%;
}
.column-selectCheckBox {
    width: 5%;
}
.column-group-name {
    width: 10%;
}
.column-student-number {
    width: 10%;
}
.column-device-kind{
    width: 10%;
}
.column-device-no{
    width: 10%;
}
.column-user-name{
    width: 10%;
}
.column-year-name{
    width: 10%;
}
.column-student-count{
    width: 10%;
}
.column-checkbox {
    width: 8%;
}

/* カード */
.card {
    color: var(--color-items-text);
    background-color: var(--color-items-background);
}

.card-header {
    font-weight: bold;
    color: var(--color-header-text);
    border-bottom:none;
    background-color:#fff;
}

.card-header > a {
    color: white;
}

.card-header > a:hover {
    color: rgba(255, 255, 255, 0.699);
}

.card-itemarea {
    color: var(--color-items-text);
    background-color: var(--color-items-background);
    margin: 1.0rem auto;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.25rem;
}
.card-itemarea-header {
    font-weight: bold;
    background: var(--color-header-background);
    color: var(--color-header-text);
    padding: 0.5rem 1rem;
    font-size: x-large;
}
.card-item {    
    margin-bottom: 1.0rem;
}

.card-body {
    margin:0 0.5%;
}

/* ボタン */

.btn-box{
    display: flex;
    justify-content:flex-end;
    gap: 1em;
}

.back{
    color: black;
}

.button-title {
    font-size:1.8rem;
}

.btn-box button {
    height: 2em;
    font-size: 1.3em;
    margin-top: 20px;
    font-weight: bold;
    padding: 0 2.3rem;
}

.sort-button, .filter-button {
    font-weight: bold;
    width: 225px;
    border-radius: 5px;
    background: white;
    color: #000;
    border-color: #a6a6a6;
    border-width: 3px;
}
.sort-button:hover, 
.filter-button:hover, 
.reflesh-button:hover, 
.transition-button:hover, 
.reflesh-button:hover {
    color: #fff;
    background-color: #ed7d31;
    border-color: #ed7d31;
}
.sort-button-selected, 
.filter-button-selected, 
.transition-button, 
.reflesh-button, 
.coloring-button,
.default-button {
    font-weight: bold;
    width: 225px;
    border-radius: 5px;
    background-color: #ed7d31;
    color: #fff;
    border-color: #ed7d31;
    border-width: 3px;
}
.sort-button-selected:hover, 
.filter-button-selected:hover, 
.transition-button:hover, 
.reflesh-button:hover, 
.coloring-button:hover,
.default-button:hover {
    background-color: #F59D3F;
    border-color: #F59D3F;
}
.alert-button {
    font-weight: bold;
    width: 225px;
    border-radius: 5px;
    background-color: red;
    color: #fff;
    border-color: red;
    border-width: 3px;
}
.alert-button:hover {
    background-color: #E84E46;
    border-color: #E84E46;
}
.alert-button:disabled {
    opacity: 0.6;    
}
.alert-button:hover:disabled {
    background-color: red;
    border-color: red;
}
.transition-button {
    width: fit-content;
}
.reflesh-button {
    width: 125px;
}
.invalidate-button {
    font-weight: bold;
    width: 225px;
    color:#fff;
    border-radius: 5px;
    background: #A9A9A9;
    border-color: #a6a6a6;
    border-width: 3px;
}
.menu-button {
    font-weight: bold;
    font-size: smaller;
    width: 100%;
    color: #000;
    border: none;
    text-align: "center";
    padding: 20px 5px;
    background-color: #f0f0f0;
}

.menu-button img {
    width: 80px;
}
.menu-button-title {
    font-size:28px;
}
.menu-button:hover {
    background-color: #fff;
}

.bottom-items {
    height: 100%;
}
/* 画像イメージ */
.sortImg, .transitionImg, .filterImg, .tableImg, .refleshImg {
    width: 2.3rem;
}
.sortImg, .transitionImg, .filterImg, .refleshImg {
    margin-bottom: 7px;
}

/* ページ名 */
.page-name{
    font-weight: bold;
    color:#ED7D31;
    font-size: 1.8rem;
    margin: 0;
}

.page-name-border {
    width        : 0.9rem;
    margin-right: 10px;
    background   : #ffe699;
}
/* Common */
.caution-icon {
    color: var(--color-caution);
}

.alert-icon {
    color: var(--color-alert);
}

.overflow {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.block {
    display: block;
}

.overflow:hover {
    white-space: normal;
}

.title-box {
    font-weight: bold;
    border-radius: 15px;
    background: #76e6cc;
    border-color: #76e6cc;
    padding:0 10px;
    text-align: "center";
    display: flex;
    flex-direction: column;
    width: fit-content;
}

.folding-block {
    display: inline-block;
}
.display-center {
    display: flex;
    justify-content: center;
}
input.form-control {
    width: 20%;
}
td input.form-control {
    position: relative;
    width: 100%;
}
/* ドロップダウン */
.nav-link {
    color: var(--color-items-text);
    padding: 0 0;
}

.dropdown-item-nonlink {
    padding: .25rem 1rem;
    font-weight: 400;
}
.selectbox-001 {
    position: relative;
    min-width: 200px;
}
.selectbox-001::before,
.selectbox-001::after {
    position: absolute;
    content: '';
    pointer-events: none;
}
.selectbox-001::before {
    right: 0;
    display: inline-block;
    width: 2.8em;
    height: 2.8em;
    border-radius: 0 3px 3px 0;
    background-color: #00cc99;
    content: '';
}
.selectbox-001::after {
    position: absolute;
    top: 50%;
    right: 1.4em;
    transform: translate(50%, -50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-bottom: 3px solid #fff;
    border-right: 3px solid #fff;
    content: '';
}
.selectbox-001 select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 200px;
    height: 2.8em;
    padding: .4em 3.6em .4em .8em;
    border: 2px solid #00cc99;
    border-radius: 3px;
    color: #7b7474;
    font-size: 1em;
    cursor: pointer;
}
.selectbox-001 select:focus {
    outline: 1px solid #00cc99;
}
.studentTable {
    margin:0 5%;
    width:90%;
    margin-bottom:5%;
    margin-top:1%;
}
/* flexbox */
.container {
    display: flex;
    width: 100%;
}
.page-items {
    flex-grow: 1;
    margin-right: 10px;
}
.button-items {
    flex-grow:4;
}
.button-item {
    margin-left:2px;
}
.button-containar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap:6px;
}
.title-item {
    font-size: 1.1rem;
    font-weight: bold;
    margin-left: 2%;
    display: flex;
    align-items: center;
}
.page-item {
  width: 100%;
}
.item {
    width: 33%;
    margin-right: 10px;
    margin-top: 10px;
}
.last-item {
    margin-right: 0px;
}

article {
    display: flex;
    height: Calc(100% - 9rem - 24px);
    width: 100%;
    padding:0 1.5rem;
}
.main-container {
    display:flex;
}
.side-menus {
    border-left:2px solid #919191;
    border-right:2px solid #919191;
}

.side-menu {
    border-top:2px solid #919191;
}
.side-menu:last-of-type {
    border-bottom:2px solid #919191;
}
.footer {
    text-align: center;
}

.exec-button-container {
    text-align: center;
}

.exec-button {
    font-weight: bold;
    border-radius: 5px;
    background: white;
    color: #000;
    border-color: #a6a6a6;
    height: 100%;
    border-width: 3px;
    width: 50%;
    height: 40px;
    margin:10;
}
.exec-button:hover, .search-button:hover, .graph-explanation-open-button:hover {
    color: #fff;
    background-color: #ed7d31;
    border-color: #ed7d31;
}
.search-button {
    font-weight: bold;
    width: 130px;
    border-radius: 5px;
    background: white;
    color: #000;
    border-color: #a6a6a6;
    height: 100%;
    border-width: 3px;
    height: 40px;
}
/* 死活監視 */
.monitor-area {
    background-color: black;
    color: white;
    flex-basis: 270px;
    display: flex;
    flex-direction: column;
}

/* Macro */
/* ToggleButton */
.toggle-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0;
    cursor: pointer;
}
  
.toggle-label {
    width: 85px;
    height: 42px;
    background: #fff;
    border: 3px solid #ddd;
    position: relative;
    display: inline-block;
    border-radius: 40px;
    transition: 0.4s;
    box-sizing: border-box;
}
  
.toggle-label:after {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 100%;
    left: 2px;
    top: 2px;
    z-index: 2;
    background: #ddd;
    transition: 0.4s;
}
  
.toggle-input:checked + .toggle-label {
    border: 3px solid #ed7d31;
}
  
.toggle-input:checked + .toggle-label:after {
    left: 42px;
    background: #ed7d31;
}

.toggle-input:checked + .toggle-label:before {
    content: "ON";
    left: 8px;
}

.toggle-input:not(:checked) + .toggle-label:before {
    content: "OFF";
    color: #ddd;
    right: 8px;
}

.toggle-label:before {
    position: absolute;
    top: calc(13px - 0.5em);
}
  
.toggle-switch {
    position: relative;
    width: 85px;
    height: 42px;
    margin: auto;
}

/* AutoReloadButton */
.auto-reload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ed7d31;
    margin-left: 5px;
    flex-wrap: wrap;
}

.auto-reload-button > label {
    font-size: 20px;
    margin-right: 5px;
}
.error-message-area {
    color: red;
}

.alert-button[name=delete] {
    width: 90px;
    height: 100%;
}
/* ToggleButton */
.toggle-button-container {
    display: flex;
}

.toggle-button-container input[type=radio] {
    opacity: 0;
    position: absolute;
}

.toggle-button-container label {
    padding: 5px 10px;
    border: solid 1px var(--color-active-button);
    display: flex;
    align-items: center;
}

.toggle-button-container input[type="radio"]:not(:checked) + label:hover {
    cursor: pointer;
    opacity: 0.7;
}

.toggle-button-container input[type="radio"]:checked + label {
    background-color: var(--color-active-button);
    color: white;
}

.toggle-button-container input[type="radio"]:not(:checked) + label {
    background-color: white;
    color: var(--color-active-button);
}

.toggle-button-container input[type="radio"] + label img {
    width: 32px;
    height: 32px;
}

.toggle-button-container label:first-of-type {
    border-start-start-radius: 5px;
    border-end-start-radius: 5px;
}

.toggle-button-container label:last-of-type {
    border-start-end-radius: 5px;
    border-end-end-radius: 5px;
}

#graph-size-button {
    position: absolute;
    top: 8px;
    right: 28px;
    width: 60px;
    height: 60px;
}

.hidden {
    display: none !important;
}

.orange-square {
    color: rgb(237, 125, 49);
}

.green-square {
    color: rgb(0, 204, 153);
}

.graph-explanation-open-button {
    font-weight: bold;
    position: absolute;
    top: 8px;
    right: 93px;
    height: 60px;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 5px;
    background: white;
    color: #000;
    border-color: #a6a6a6;
    border-width: 3px;
}

.graph-explanation-dialog {
    position: fixed;
    border: 1px solid black;
    border-radius: 5px;
    background-color: white;
    z-index: 5;
    padding: 15px;
    display: none;
}

.graph-explanation-content {
    text-align: left;
}

.graph-explanation-content p {
    font-size: 1rem;
    margin-bottom: 8px 
}

.graph-explanation-content .end-p{
    margin-bottom: 0;
}

.graph-explanation-close-button {
    background-color: rgba(255,255,255,0);
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    border: none;
    font-size: 1.5rem;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.graph-explanation-close-button:hover {
    border: 1px solid black;
}

.graph-explanation-dialog:hover {
    cursor: pointer;
}

#date-now {
    font-size: clamp(10px, 1.1rem, 20px);
    white-space: nowrap;
    position: relative;
}

#header-event-content {
    font-size: clamp(10px, 1.1rem, 20px);
    white-space: nowrap;   
}

.organization-name {
    font-size: clamp(10px, 1.1rem, 20px);
    white-space: nowrap; 
}

.env-area {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    align-items: center;
    justify-content: center;
}

.header-right-item {
    margin: 0 1.5rem;
    flex-shrink: 0;
    min-width: 0;
    max-width: 50%;
}

.flex-auto {
  flex: 1 1 auto;
}

.nowrap {
    white-space: nowrap;
}

.logo-area {
    position: relative;
    margin-left: 10px;
    width: 147px;
    height: 98px;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

@media (max-width: 1487px) {
  .monitor-area {
    display: none;
  }
}

.env-debug {
    color: red; 
    font-size: xx-large;
}

.env-test {
    color: BLUE; 
    font-size: xx-large;
}

.header-left-title-box {
    min-width: 309px;
}

.header-right-title-box {
    min-width: 212px;
}

.visibility-hidden {
    visibility: hidden;
}

.visible-date {
    visibility: visible;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
}