/* === 基本レイアウトとフォント === */
body {
    font-family: Arial, sans-serif;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    table-layout: fixed;
    border: 1.5px solid #000;
    font-size: 16px;
}

/* === セルの共通スタイル === */
th, td {
    border: 1.5px solid #000;
    text-align: center;
    padding: 2px;
    white-space: normal;
    word-wrap: break-word;
    overflow: hidden;
}

/* === 日付・氏名セルの幅指定 === */
td.date-cell {
    width: 15%;
}

td.name-cell {
    width: 25%;
}

/* === 勤務状態スタイル === */
.line {
    width: 100%;
    height: 100%;
    border-bottom: 1.5px solid #696969;
    display: block;
    margin: 0;
    box-sizing: border-box;
}

.half {
    width: 50%;
    height: 100%;
    border-right: 1px solid #a9a9a9;
}

.half-right {
    width: 50%;
    height: 100%;
    border-right: 2px solid #a9a9a9;
    margin-left: auto;
}

/* === 非編集セル === */
.non-editable {
    background-color: #ffffff;
    pointer-events: none;
}

/* === セルホバー時 === */
td:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

/* === 曜日色分け === */
.saturday {
    color: blue;
}

.sunday {
    color: red;
}

/* === ボタン全般 === */
button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

/* === 管理ボタンだけ別色 === */
button#adminButton {
    background-color: #007BFF;
    width: 200px;
}

button#adminButton:hover {
    background-color: #0056b3;
}

/* === 数値入力フィールド === */
input[type="number"] {
    padding: 10px;
    font-size: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 80px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: border-color 0.3s ease;
}

input[type="number"]#year {
    width: 120px;
}

input[type="number"]:focus {
    border-color: #007BFF;
    outline: none;
}

/* === セレクトボックス === */
select {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

select:hover {
    background-color: #eaeaea;
}

#dateSelector {
    font-size: 20px;
}

/* === 入力・ボタングループ配置 === */
.input-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.button-group {
    display: flex;
    justify-content: left;
    gap: 10px;
    flex-wrap: wrap;
}

/* === 編集モードの切替表示 === */
#tablesContainer {
    display: block;
}

.edit-mode .table-wrapper {
    display: none;
}

.edit-mode .table-wrapper.active {
    display: block;
}
.mark-circle {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid black;
  border-radius: 50%;
  margin: auto;
}
td {
  font-size: 16px;
}
.mark {
  font-size: 16px !important;
  line-height: 1;
  font-weight: bold;
  font-family: "Arial", "Noto Sans Symbols", "Segoe UI Symbol", sans-serif;
  display: inline-block;
  text-align: center;
}
.circle-symbol::before {
  content: "〇";
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  font-weight: bold;
}
.modal-button {
  display: inline-block;
  background-color: #4CAF50;
  color: white;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  margin: 4px 2px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-button:hover {
  background-color: #45a049;
}

/* === 印刷スタイル === */
@media print {
  /* 年月のラベルと入力欄をすべて非表示に！ */
  label[for="year"],
  label[for="month"],
  input#year,
  input#month,

  /* 表示切替のセレクトボックス */
  #dateSelectorContainer,

  /* 全ボタン群 */
  .button-group,

  /* その他追加ボタン（管理画面など） */
  #printButton,
  #editModeButton,
  #adminButton,

  /* ファイル読み込みレイヤー */
  .csv-manual-loader {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* 表だけきれいに印刷するための調整 */
  .table-wrapper {
    display: block !important;
    page-break-after: always;
    break-after: page;
  }

  table {
    width: 100%;
    font-size: 16px;
    table-layout: fixed;
    page-break-inside: avoid;
  }

  body {
    margin: 0;
  }

  #tablesContainer {
    margin: 0;
    padding: 0;
    page-break-inside: avoid;
  }
}

