html {
    background: #fafafa;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

.navbar-brand .navbar-item,
header div.logo {
    display: block;
    font-size: 23px;
    text-align: center;
    color: #fff;
    font-family: sans-serif;
}

main {
    width: 100%;
    padding: 0px 10px;
    margin: 0 auto;
}

.flash {
    text-align: center;
    position: relative;
    margin: 10px 0 20px;
    animation: slideDown 0.7s ease-out;
}

.flash span.close {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 19px;
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

span.req {
    font-size: 8pt;
    float: right;
    color: #f33;
    border: 1px solid #f33;
    background: #fff;
    padding: 2px 4px;
    display: inline-block;
}

::placeholder {
    color: #aaa;
}

.box:not(.narrow) {
    overflow-x: scroll;
}

.css_hidden {
    display: none;
}

.box.narrow {
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.box.mid {
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.box:first-of-type {
    margin-top: 1.5rem;
}

div.table-container {
    max-height: 80vh;
    overflow-y: scroll;
}

table.list {
    table-layout: auto;
    width: auto;
}

table.list.fixed {
    table-layout: fixed;
    width: 100%;
}
table.list tr:nth-child(2n + 1) {
    background: #fcfcfc;
}

table.list th,
table.list td {
    white-space: nowrap;
    overflow: hidden;
}

table.list th {
    vertical-align: middle;
    text-align: center;
    padding: 5px;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    background: #f8f8f8;
    color: #333;
    font-size: 15px;
    position: sticky;
    top: 0;
    z-index: 10;
}

table.list td {
    font-weight: normal;
    text-align: center;
    padding: 5px;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    vertical-align: middle;
    font-size: 15px;
}

td.right {
    text-align: right !important;
}

td.left {
    text-align: left !important;
}

table.vertical {
    width: 100%;
    max-width: 700px;
}

table.vertical th {
    padding: 7px;
    background: #f8f8f8;
    vertical-align: middle;
    font-size: 15px;
    width: 40%;
    box-sizing: border-box;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    text-align: left;
    height: 40px;
}

table.vertical td {
    padding: 7px;
    vertical-align: middle;
    background: #fff;
    font-size: 15px;
    box-sizing: border-box;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.data {
    background: #f0f0f0;
    padding: 10px;
}

.datetime_parent {
    position: relative;
}

.datetime_act {
    z-index: 10;
    position: absolute;
    right: 5px;
    top: 43px;
    padding: 18px 14px;
}

input[type='number'].right {
    text-align: right;
}

input[type='file'] {
    padding: 4px;
}

.message-body {
    font-size: 17px;
    text-align: left;
    padding: 0.5em;
}

.accordion {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.accordion-item {
    margin-bottom: 1em;
}

.accordion-button {
    width: 100%;
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 10px;
    text-align: left;
    outline: none;
    transition: 0.4s;
    font-size: 1em;
    border: 1px solid #666;
}

.accordion-button:hover {
    background-color: #f8f8f8;
}

.accordion-button:after {
    content: '\002B';
    color: #777;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.accordion-button.active:after {
    content: '\2212';
}

.accordion-content {
    max-height: 0;
    box-sizing: border-box;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background-color: #fff;
    margin-bottom: 10px;
}

.accordion-content-inner {
    padding: 10px;
    border: 1px solid #666;
    border-top: none;
}

table.list th[size='50'],
table.list td[size='50'] {
    width: 50px;
}

table.list th[size='75'],
table.list td[size='75'] {
    width: 75px;
}

table.list th[size='100'],
table.list td[size='100'] {
    width: 100px;
}

table.list th[size='125'],
table.list td[size='125'] {
    width: 125px;
}

table.list th[size='150'],
table.list td[size='150'] {
    width: 150px;
}

table.list th[size='175'],
table.list td[size='175'] {
    width: 175px;
}

table.list th[size='200'],
table.list td[size='200'] {
    width: 200px;
}

table.list th[size='225'],
table.list td[size='225'] {
    width: 225px;
}

table.list th[size='250'],
table.list td[size='250'] {
    width: 250px;
}

table.list th[size='275'],
table.list td[size='275'] {
    width: 275px;
}

table.list th[size='300'],
table.list td[size='300'] {
    width: 300px;
}

table.list th[size='325'],
table.list td[size='325'] {
    width: 325px;
}

table.list th[size='350'],
table.list td[size='350'] {
    width: 350px;
}

table.list th[size='375'],
table.list td[size='375'] {
    width: 375px;
}

table.list th[size='400'],
table.list td[size='400'] {
    width: 400px;
}

table.list th[size='425'],
table.list td[size='425'] {
    width: 425px;
}

table.list th[size='450'],
table.list td[size='450'] {
    width: 450px;
}

table.list th[size='500'],
table.list td[size='500'] {
    width: 500px;
}

.radio_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

input[type='radio'] {
    display: none;
}

label.radio_item {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
}

label.radio_item:after,
label.radio_item:before {
    position: absolute;
    content: '';
    background: #bbbbbb1a;
}

label.radio_item:after {
    left: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 50%;
}

label.radio_item:before {
    left: 4px;
    width: 10px;
    height: 10px;
    background: #0171bd;
    border-radius: 50%;
    position: absolute;
    opacity: 0;
}

label.radio_item.checked:before {
    opacity: 1;
}

.check_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

input[type='checkbox'] {
    display: none;
}

label.check_item {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
}

label.check_item:after,
label.check_item:before {
    position: absolute;
    content: '';
    background: #bbbbbb1a;
}

label.check_item:after {
    left: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
}

label.check_item:before {
    left: 5px;
    width: 8px;
    height: 14px;
    border-right: 3px solid #045388;
    border-bottom: 3px solid #045388;
    transform: rotate(45deg) translateY(-1px) translateX(-1px);
    opacity: 0;
}

label.check_item.checked:before {
    opacity: 1;
}

.toggle-button {
    display: inline-block;
    position: relative;
    width: 50px;
    height: 25px;
    border-radius: 50px;
    background-color: #dddddd;
    transition: background-color 0.1s;
    cursor: pointer;
}

.toggle-button:has(:checked) {
    background-color: #4bd865;
}

.toggle-button::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    box-shadow: 0 0 5px rgb(0 0 0 / 20%);
    background-color: #fff;
    content: '';
    transition: left 0.1s;
}

.toggle-button:has(:checked)::after {
    left: 25px;
}

.toggle-button input {
    display: none;
}
