/* ============================
  共通設定
============================= */

/* メインヘッダー固定 */
header {
    position: fixed;
    top: 0;
    left: 0%;
    width: 100%;
    height: 50px;
    padding: 0;
    color: #ffffff;
    border-style: none;
    z-index: 100;
}

/* 本文全体設定 */
body {
    padding: 50px 0px 0px 0px;
    overflow: auto;
    z-index: 90;
}

/* 段落テキスト */
p {
    white-space: pre-wrap;
    font-size: 14px;
}

/* 改行させないクラス */
.nowrap {
    white-space: nowrap;
}

/*============================
  ナビゲーションバー
============================*/

.navbar1 {
    background-color: #17184b; 
    height: 45px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/*============================
  レイアウト用ヘッダー枠
============================*/

.Header {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    align-content: center;
    height: 95vh;
    width: 95vw;
    z-index:2;
}

@media (min-width: 1024px) {
  .Header {
    width: 85vw;
    height: 90vh;
  }
}

/*============================
  リンクスタイル
============================*/

.a_link:link,
.a_link:visited {
    color: #1a73e8;
    text-decoration: underline;
}

.a_link:hover {
    opacity: 0.5;
}

/*============================
  テーブル共通スタイル
============================*/

table {
    border-collapse: collapse;
    width: 100%;
}
th, td {
    padding: 2px;
    text-align: center;
    border: 1px solid #ddd;
}

/*============================
　勤怠表（.atn-table）
============================*/

.atn-table {
    border-collapse: collapse;
    border-spacing: 0;
}

.atn-table td a {
    text-decoration: underline;
}

.atn-table th {
    background-color: #f3f3f3;
    color: #000;
}

/* ホバーでtdのみ色を変える */
.atn-table tbody tr:hover td {
    background-color: #f9f9f9;
}

/* ホバー時もthの背景を保つ */
.atn-table tbody tr:hover th {
    background-color: #f3f3f3;
}

/* th内のリンク（aタグ）に関する指定 */
.atn-table th a,
.atn-table th a:hover {
    color: inherit;
    text-decoration: underline;
    background-color: inherit;
}

/*============================
  テーブルコンテナ（スクロール対応）
============================*/

.table-container {
    position: relative;
    max-width: 100%;
    overflow: auto;
    text-align: center;
    font-size: 12.5px;
}

/*============================
  固定ヘッダー＆固定列
============================*/

.fixed-header thead th,
.fixed-header thead .tr-header th,
.fixed-header thead .tr-subheader th {
    position: sticky;
    top: 0;
    background: #f3f3f3;
    font-size: 11px;
    z-index: 2;
}

.fixed-header thead .tr-header th {
    z-index: 3;
}

.fixed-header-left tbody th,
.fixed-header-left tbody td:first-child {
    position: sticky;
    left: 0;
    background: #f3f3f3;
    font-size: 12px;
    z-index: 1;
}

/*============================
  枠無し集計テーブル(集計共通　勤怠表スマホ表示用)
============================*/

.table_tally_noline {
    width: auto;
    overflow: auto;
    margin-bottom: 0;
    text-align: center;
    font-size: 11px;
}

.table_tally_noline th,
.table_tally_noline td {
    padding: 0;
    border: 0;
    background-color: #f0faff;
    color: #696969;
}

.table_tally_noline th {
    color: #4169e1;
    font-size: 9px;
}

/*============================
  アラート行スタイル
============================*/

.alert-row { /* アラート行の背景色(赤) */
    position: relative;
    cursor: pointer;
    background-color: #ffa8a8 !important;
}

.alert-row:hover {/* ホバー時も赤を保持 */
    background-color: #ffc6c6 !important;
}

.alert-row::after { /* ツールチップ */
    content: attr(data-tip);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: pre-wrap;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    transition: opacity 0.3s, visibility 0.3s;
    text-align: left;
    max-width: 90vw;
}

.alert-row:hover::after {/* ホバー時にツールチップを表示 */
    opacity: 1;
    visibility: visible;
}

/*============================
  固定幅ユーティリティ（.w-**）
============================*/
.w-100 { width: 100px; min-width: 100px; max-width: 100px; }
.w-90  { width: 90px;  min-width: 90px;  max-width: 90px; }
.w-80  { width: 80px;  min-width: 80px;  max-width: 80px; }
.w-70  { width: 70px;  min-width: 70px;  max-width: 70px; }
.w-60  { width: 60px;  min-width: 60px;  max-width: 60px; }
.w-50  { width: 50px;  min-width: 50px;  max-width: 50px; }
.w-40  { width: 40px;  min-width: 40px;  max-width: 40px; }
.w-30  { width: 30px;  min-width: 30px;  max-width: 30px; }

/*============================
  特定条件のカラー設定（警告等）
============================*/

[class^="highlight-"] {
    font-weight: bold;
}

.highlight-black {/* 時間外のtd背景色と文字色の変更設定 */
    background-color: #000000;
    color: #ffff00;
}

.highlight-red {
    background-color: #ffd6d6;
    color: #e60033;
}

.highlight-yellow {
    background-color: #ffffa3;
    color: #ec6d51;
}

.highlight-blue {
    background-color: #eff7ff;
    color: #4169E1;
}

/*============================
  レスポンシブ対応（申請ページ用）
============================*/

@media (max-width: 767px) {
    .custom-width { width: 100%; }
}
@media (min-width: 768px) {
    .custom-width { width: 700px; }
}
@media (max-width: 1023px) {
    .custom-fontsize { font-size: 14px; }
}
@media (min-width: 1024px) {
    .custom-fontsize { font-size: 16px; }
    .lg\:flex-nowrap { flex-wrap: nowrap; }
}

/*============================
  タブ表示
============================*/

.tab {
    display: inline-block;
    padding: 0 15px !important;
    font-size: 1rem !important;
    text-align: center;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    background-color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

input[type="radio"]:checked + .tab {
    border-bottom: 2px solid #2a83a2;
    line-height: 2 !important;
    color: #2a83a2;
}

input[type="radio"]:checked + label + .tab-content {
    display: block;
}

.tab.active {
    background-color: white;
}

.tab.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ============================
  バッジ表示（ステータス・マッピング）
============================ */

/* バッジコンテナ */
.badge-group {
    margin: 0;
    width: 200px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.badge-item {
    margin-top: 0px;
    margin-right: 4px;
    border-radius: 4px;
    background: #ff0000;
    padding: 2px 4px;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
}

.badge-mapping {
    margin-top: 0px;
    margin-right: 2px;
    border-radius: 2px;
    background: #ff0000;
    padding: 2px 4px;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
}

/*============================
  その他ユーティリティ
============================*/

.flex-wrap {flex-wrap: wrap;}
.hidden {display: none;}
.h1{font-size: 120%;}