:root {
    --header-bg-color: #004682;
}

body {
    /* background-color: #004682; */
    margin: 0;
}

.allWrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1 {
    margin: 0;
}

/* Stack用 */
.stack>*+* {
    margin-top: 1.5rem;
}

.stack-small>*+* {
    margin-top: 0.75rem;
}

/* ヘッダー */
header {
    background-color: var(--header-bg-color);
    margin: 0;
    padding: 8px;
    color: #FFF;
    height: 24px;
}

header .system-name {
    display: flex;
    gap: 4px;
    align-items: center;
}

header .system-name .logo {
    display: flex;
}

.user-menu-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.user-menu-link img {
  margin-right: 4px;
}

.user-icon-name {
    width: 9.5rem;
}

.header-user-name {
    width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

/* フッター */
footer {
    background-color: var(--header-bg-color);
    margin-top: auto;
    padding: 8px;
    color: #FFF;
    display: flex;
    justify-content: end;
}

/* 管理者用ヘッダー */
.header-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 16px;
}

/* ログアウトボタン */
.logout-btn {
    background: none;
    border: none;
    color: blue;
    text-decoration: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
}

.logout-btn:hover,
.logout-btn:focus {
    text-decoration: none;
    outline: none;
}


.header-admin nav ul {
    display: flex;
    margin: 0;
    list-style: none;
}

.header-admin li {
    margin-left: 32px;
}

.header-admin a {
    text-decoration: none;
    color: white;
}

.header-admin ul.management-menu-list,
.header-admin ul.user-menu-list,
.header-admin ul.summary-menu-list {
    display: none;
}

ul.management-menu-list {
    width: 14rem;
}

.header-admin ul.management-menu-list li a,
.header-admin ul.user-menu-list li a,
.header-admin ul.summary-menu-list li a {
    color: blue;
}

.header-admin ul.management-menu-list.is-open,
.header-admin ul.user-menu-list.is-open,
.header-admin ul.summary-menu-list.is-open{
    display: block;
    background-color: #D9D9D9;
    position: absolute;
    padding:0 30px 0 0;
}

.header-admin ul.user-menu-list.is-open { 
    right: 1.8rem;
}

.header-admin ul.management-menu-list.is-open {
    right: 2.5rem;
}

.header-admin ul.summary-menu-list.is-open {
    right: 22.5rem;
}

/* メイン部 */
main {
    margin: 16px;
    color: #000000;
}

/* ボタン */
.btn {
/*
    color: #FFF;
    background-color: blue;
    padding: 8px 16px;
    outline: none;
    border: black 1px solid;
    box-shadow: none;
    border-radius: 8px;
    cursor: pointer;
    height: fit-content;
    text-decoration: none;
    font-size: 16px;
    */

    color: #000000;
        background-color: #d1def7;
        padding: 8px 16px;
        outline: none;
        border: #173b1c 1px solid;
        box-shadow: none;
        border-radius: 8px;
        cursor: pointer;
        height: fit-content;
        text-decoration: none;
        font-size: 16px;
}

.btn-info {
    color: #FFF;
    background-color: #939393;
    padding: 8px 16px;
    outline: none;
    border: black 1px solid;
    box-shadow: none;
    border-radius: 8px;
    cursor: pointer;
    height: fit-content;
    text-decoration: none;
    font-size: 16px;
}

.btn-select {
    color: #000;
    background-color: #ffe8a4;
    padding: 1px 12px;
    outline: none;
    border: black 1px solid;
    box-shadow: 1px 1px 1px black;
    border-radius: 8px;
    cursor: pointer;
    height: fit-content;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 3px;
}

.btn-add-user {
    color: #FFF;
    background-color:#64b519;
    padding: 1px 8px;
    outline: none;
    border: black 1px solid;
    box-shadow: 1px 1px 1px black;
    border-radius: 8px;
    cursor: pointer;
    height: fit-content;
    text-decoration: none;
    font-size: 16px;
}

.btn-save {
    color: #000;
    background-color: orange;
}

/* テーブル共通 */
table {
    border-spacing: 0;
    width: 100%;
}

table tr th {
    color: #FFF;
    background-color: var(--header-bg-color);
    border: 1px #FFF solid;
}

table tr.sub th {
    background-color: #d1def7;
    color: #000;
}

table tr td {
    padding: 8px;
    margin: 0;
    border: none;
    border: 1px #FFF solid;
    color: #000;
}

table tr td {
    background-color: #ededed;
}


/* 検索エリア共通 */
.search-condition {
/*
    border: 1px solid #000;
    border-radius: 8px;
    padding: 16px;
    width: fit-content;
    */

    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 16px;
    width: fit-content;
    background-color: #ededed;
}

.search-condition label {
    display: flex;
    min-width: 260px;
    align-items: center;
}

.search-condition label span {
    min-width: 80px;
}

.search-area2 {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 32px;
}

.width-hundred{
    width: 100%;
}

/* form, input関連 */

select,
input[type="text"],
input[type="date"],
input[type="password"],
input[type="email"],
input[type="time"],
input[type="number"],
textarea {
    padding: 8px;
    border-radius: 8px;
    height: fit-content;
    box-shadow: none;
    border: 1px solid black;
    background-color: #fffef0;
}

input:disabled, select:disabled, textarea:disabled {
    background-color: #e3e3e3;
    color: black;
    opacity: 1;
}

input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    appearance: none;
    border: 1px solid #000;
    border-radius: 4px;
    background-color: #feffe9; /* 未チェック時の背景色 */
    cursor: pointer;
    position: relative;
}

/* チェックマーク（✔）を疑似要素で描く */
input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 5px;
  width: 6px;
  height: 12px;
  border-right: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(45deg);
  opacity: 0; /* 未チェック時は非表示 */
}

/* チェック時の背景色とチェックマーク表示 */
input[type="checkbox"]:checked {
  background-color: #507ee2; /* チェック時の背景色 */
  border-color: #000;
}

input[type="checkbox"]:checked::after {
  opacity: 1; /* チェックマーク表示 */
}

input[type="checkbox"]:disabled {
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  background-color: #bbb; /* 未チェック時の背景色 */
  cursor: pointer;
  position: relative;
}

select {
    width: 100px;
}

.user-select {
    width: 185px;
}

.date-input {
    width: 70px;
}

.time-select {
    width: 60px;
}

.short-width {
    width: 50px;
}

/* エラー用 */
.error {
    color: red;
}

.update-message {
    text-align: center;
    height: 16px;
}

div.list {
    overflow-x: auto;
}

.required {
    color: red;
}

.uploaded-image {
    max-width: 100%;
    height: auto;
}

.small {
    font-size: small;
}

[v-cloak] {
    display: none;
}

input:disabled, select:disabled {
    color: #000;
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space, 1rem);
    align-items: center;
}

.disabled-bg{
    background-color: #e0e0e0;
    opacity: 0.6;
}

/* 日報・チェックリストのバリデーション用 */
.highlight {
    background-color: red;
    color: black;
}