@charset "UTF-8";

/*
Theme Name:CLSA Service Record
Description:CLSAのポータルサイト
Version:1.0
Author: M.Yasuda
Text Domain: clsaservicerecord
*/


body {
  background-color: #F4F8FA;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  color: #000;
  line-height: 1.875;
}
@media screen and (max-width: 768px) {
  body {
    font-size: 0.875rem;
  }
}


/* 管理バー対応 */
body {
  padding-top: 60px;
}
body.admin-bar .global-nav {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
  word-break: break-all;
}

a[target=_blank] {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

li {
  list-style: none;
}

.service-menu {
  text-align: center;
  padding: 2em;
}
.service-menu .btn {
  display: block;
  margin: 1em auto;
  padding: 1em 2em;
  font-size: 1.2em;
  background-color:#fff;
 border:solid 1px #000;
	width:250px;
	height:50px;
}

.wide-textarea {
  width: 100%;
  min-height: 6em;
}
/* グローバルナビゲーション */
.global-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  border-bottom: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.global-nav a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
  padding: 6px 12px;
}

.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.global-nav li {
  position: relative;
  margin-right: 20px;
}

.global-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  padding: 5px 0;
  z-index: 1000;
  min-width: 200px;
}

.global-nav .dropdown:hover .dropdown-menu {
  display: block;
}

.global-nav .dropdown-menu li {
  margin: 0;
  padding: 0;
}

.global-nav .dropdown-menu li a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
}

.global-nav .dropdown-menu li a:hover {
  background-color: #f0f0f0;
}

/*ログイン画面*/
.login-page-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background-color: #f5f5f5;
}

.login-section {
  background: #fff;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 100%;
}

.login-title {
  text-align: center;
  margin-bottom: 1em;
  font-size: 1.5em;
}

.login-form-container input[type="text"],
.login-form-container input[type="password"] {
  width: 100%;
  padding: 0.75em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-form-container input[type="submit"] {
  width: 100%;
  padding: 0.75em;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
	
.login-warning {
  margin-top: 1em;
  padding: 0.8em;
  background-color: #f9f9f9;
  border-left: 4px solid #ccc;
  font-size: 0.85em;
  color: #555;
}

/*モーダルウインドウ*/
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  .modal-box {
    background: #fff;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 280px;
  }

  .modal-box button {
    margin: 0 0.5em;
    padding: 0.5em 1.2em;
    font-size: 1em;
  }

/* ログアウトボタン専用スタイル */
.logout-button {
  margin-left: 12px;
  background-color: #e74c3c;
  color: #fff !important;
  border-radius: 4px;
}
.logout-button:hover {
  background-color: #c0392b;
}

/* 編集キャンセルボタン*/

.button-cancel {
  background-color: #ccc;
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 4px;
  color: #000;
  display: inline-block;
}

.button-cancel:hover {
  background-color: #999;
}

/*勤務一覧編集時モーダル*/
#edit-modal {
  display: none; /* 初期は非表示 */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* 半透明背景 */
  z-index: 1000;
}
#edit-modal .modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 400px;
  border-radius: 8px;
}

/*勤務一覧編集時カレンダー*/
#calendar-view table td {
  vertical-align: top; /* セル内の要素を上揃え */
  position: relative;  /* チェックボックス配置用 */
}

#calendar-view table {
  table-layout: fixed; /* 均等幅にする */
  width: 100%;         /* テーブル全体を幅いっぱいに */
}

#calendar-view table td {
  width: 14.28%;       /* 7列なので100% ÷ 7 ≒ 14.28% */
  min-height: 80px;    /* 高さを揃えるために最低高さを指定 */
  vertical-align: top;
}

.calendar-cell.selected {
  background-color: #ffe58a; /* 黄色で選択強調 */
  border: 2px solid #f90;
}

#calendar-view td.selected {
  background-color: #ffe0b2;
}

.cell-wrapper {
  position: relative;
  height: 100%;
  min-height: 100px;
}

.cell-header {
  position: absolute;
  top: 2px;
  right: 2px;
}
.date-selector {
  width: 14px;
  height: 14px;
}
td.selected {
  background-color: #ffe58a;
  border: 2px solid #f90;
}
.nav-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
  font-size: 16px;
}

.nav-btn {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 6px 12px;
  margin: 0 10px;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.nav-btn:hover {
  background-color: #ddd;
}

.nav-current {
  font-weight: bold;
  margin: 0 15px;
}

.overlap-warning {
  background-color: #ffcccc; /* 赤系で警告 */
}

.warning-icon {
  color: red;
  font-weight: bold;
  margin-left: 5px;
}


.conflict-badge {
  margin-left: 4px;
  color: #dc3545;   /* 赤文字 */
  font-weight: bold;
  cursor: pointer;
}

.modal {
  display: none; /* 初期は非表示 */
  position: fixed;
  z-index: 9999; /* 最前面に表示 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* 内容が長い場合スクロール */
  background-color: rgba(0,0,0,0.5); /* 半透明の背景 */
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 4px;
  width: 80%;
  max-width: 500px;
}



#conflict-detail-modal table {
  border-collapse: collapse;
  width: 100%;
}
#conflict-detail-modal th, #conflict-detail-modal td {
  border: 1px solid #ccc;
  padding: 5px;
  text-align: center;
}
#conflict-detail-modal tr:nth-child(even) {
  background: #f9f9f9;
}

/* バッティングしている予定は常に薄いピンク */
.calendar-cell.conflict {
  background-color: #ffe0e0;
}

/* モーダルから飛んだときに一時的にグレー */
.highlight-cell {
  background-color: #cccccc !important;
  transition: background-color 0.5s ease;
}

.highlight-row {
  background-color: #cccccc !important;
  transition: background-color 0.5s ease;
}


/* list-form専用スタイル */
.list-modal {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  z-index: 1000;
  width: 500px;
}

.list-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

/* 一覧でバッティングしている行の背景色 */
.list-cell.conflict {
  background-color: #ffe0e0; /* 薄いピンク */
}

.list-highlight-row {
  background-color: #cccccc !important;
  transition: background-color 0.5s ease;
}

/* 一覧モーダル内テーブルの偶数行背景 */
#list-detail-modal tr:nth-child(even) {
  background: #f9f9f9;
}


/* 生活介護バッティング */
.overlap-row {
    background-color: #ffe0e0; /* 赤みがかった背景 */
}
.badge {
    background: #d9534f;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 5px;
}

.saved-label {
  background: #28a745;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  margin-left: 10px;
}

.attendance-row.disabled {
  background-color: #f0f0f0; /* グレー */
  opacity: 0.6;
}
.attendance-row.absent {
  background-color: #d8f5d8; /* 薄いグリーン */
}
.attendance-row.error {
  background-color: #ffd6d6; /* 赤系でNGを強調 */
}
