/* ======== グローバルスタイル ======== */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ffffff, #e0f7fa);
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* ======== ヘッダー モバイルでは表示 ======== */

/* ======== モバイル用ヘッダー（スタイリッシュなデザイン） ======== */

    .header1 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: linear-gradient(135deg, #00796b, #004d40, 0);
        color: #ffffff00;
        padding: 10px 15px;
        position: fixed;
        top: 0;
        width: %;
        height: 40px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0);
        z-index: 1000;
    }

    .header2 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: linear-gradient(135deg, #00796b, #004d40, 0);
        color: #ffffff00;
        padding: 10px 15px;
        position: fixed;
        top: 0;
        right: 0; /* これを追加 */
        width: %;
        height: 40px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0);
        z-index: 900;
    }

/* 🌟 スタイリッシュなハンバーガーメニュー（左詰め） */
.menu-toggle {
    position: relative;
    width: 35px;
    height: 35px;
    background: none !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 左詰め */
    box-shadow: none !important; /* 影を完全に透明にする */
    z-index: 1000;
}

/* 疑似要素で2本線を作成 */
.menu-toggle::before,
.menu-toggle::after {
    content: "";
    position: absolute;
    height: 2.5px; /* 線を細く（3px → 2.5px） */
    background: #acacac; /* 濃い緑 */
    border-radius: 100px; /* 丸みも調整 */
    transition: transform 0.3s ease-in-out;
    left: 4px; /* 左寄せ */
    box-shadow: none !important; /* 影を透明に */
}

/* 上の線 */
.menu-toggle::before {
    width: 22px; /* 長め */
    top: 6px;
}

/* 下の線 */
.menu-toggle::after {
    width: 14px; /* 短め */
    top: 14px;
}

/* ホバー時のアニメーション */
.menu-toggle:hover::before {
    width: 24px;
}

.menu-toggle:hover::after {
    width: 16px;
}

/* 🌟 メインコンテンツオーバーレイ（影） */
.main-content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 半透明の影 */
    z-index: 999; /* サイドバーより下、メインコンテンツより上 */
    display: none; /* 初期状態では非表示 */
}

/* 🌟 サイドバーが開いたらオーバーレイを表示 */
.main-content-overlay.active {
    display: block;
}

    /* 🔹 ヘッダータイトル（中央スペース用） */
    .header-title {
        flex-grow: 1; /* 何もないが中央スペース確保 */
    }

    /* 👤 アカウントアイコン（右側） */
    .account-icon {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: bold;
        color: #00796b;
        cursor: pointer;
        transition: background 0.3s ease-in-out, transform 0.2s;

        margin-right: 0px; /* 🔹 右端の余白を確保 */
    }

    .account-icon:hover {
        background: #e0f7fa00;
        transform: scale(1.1);
    }

/* ======== ボディ内ヘッダー ======== */
h1 {
    font-size: 36px;
    color: #004d40;
    margin-top: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #004d40, #00796b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ======== フォームデザイン（カードスタイル） ======== */
form {
    background: rgba(255, 255, 255, 0.8);
    width: 90%;
    max-width: 400px;
    margin: 20px auto;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

form:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* ======== 入力フィールド ======== */
input {
    width: 100%;
    padding: 12px;
    padding-right: 15px; /* 右側のパディングを追加 */
    margin-bottom: 15px;
    border: 2px solid #b2dfdb;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s ease-in-out;
    box-sizing: border-box; /* パディングとボーダーを含めたサイズに */
}

input:focus {
    border: 2px solid #00796b;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 121, 107, 0.3);
}

/* ======== ボタン（クリック時のアニメーション追加） ======== */
button {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #00796b, #004d40);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

button:hover {
    background: linear-gradient(135deg, #004d40, #00251a);
    transform: translateY(-2px);
}

button:active {
    transform: scale(0.97);
    box-shadow: none;
}

/* ======== エラーメッセージ ======== */
.error {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

/* ======== 時計デザイン（3Dエフェクト追加） ======== */
.clock {
    font-size: 54px;
    font-weight: bold;
    margin: 20px 0;
    color: #00796b;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

/* ======== 勤怠ボタン ======== */
.button-container {
    margin-top: 20px;
}

.button-container button {
    font-size: 20px;
    padding: 14px 24px;
    margin: 10px;
    width: 140px;
    border-radius: 8px;
}

#checkInButton {
    background: linear-gradient(135deg, #80cbc4, #4db6ac);
}

#checkInButton:hover {
    background: linear-gradient(135deg, #4db6ac, #00796b);
    transform: translateY(-2px);
}

#checkOutButton {
    background: linear-gradient(135deg, #80deea, #26c6da);
}

#checkOutButton:hover {
    background: linear-gradient(135deg, #26c6da, #007c91);
    transform: translateY(-2px);
}

/* ======== 勤怠履歴（カード型デザイン） ======== */

.history {
    margin: 0px auto;
    width: 100%;
    max-width: 850px;
    text-align: center;
    background: rgba(255, 255, 255, 0);
    padding: 0px;
    border-radius: 0px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0);
}

/* ======== テーブルデザイン ======== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border-radius: 0px;
    overflow: hidden;
}

th, td {
    padding: 8px;
    border: 1px solid #b2dfdb;
    font-size: 12px;
    color: #333; /* 文字を黒に修正 */
}

th {
    background: linear-gradient(135deg, #00796b12, #00796b12);
    color: #00796b;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #ffffff;
}

tr:nth-child(odd) {
    background-color: #ffffff;
}

        /* 土日行の背景色 */

        tr.saturday {
            background-color: #e5f0ff; /*  薄い青みのある色 */
        }

        tr.sunday {
            background-color: #ffe5e5; /* さらに淡い赤 */
        }


tr.holiday-legal {
  background-color: #ffe5e5; /* 薄い赤 */
}
tr.holiday-public {
  background-color: #e5f0ff; /* 薄い青 */
}

/* カラムごとの幅指定 モバイル版変化あり */

.history th:nth-child(1), .history td:nth-child(1) { width: 10%; } /* 日付 */
.history th:nth-child(2), .history td:nth-child(2) { width: 10%; } /* 勤務区分・状況 */
.history th:nth-child(3), .history td:nth-child(3) { width: 10%; } /* 出勤時刻・退勤時刻 */
.history th:nth-child(4), .history td:nth-child(4) { width: 10%; } /* 早出時間 */
.history th:nth-child(5), .history td:nth-child(5) { width: 10%; } /* 残業時間 */
.history th:nth-child(6), .history td:nth-child(6) { width: 10%; } /* 深夜残業時間 */
.history th:nth-child(7), .history td:nth-child(7) { width: 10%; } /* 休日労働時間 */
.history th:nth-child(8), .history td:nth-child(8) { width: 10%; } /* 遅刻時間 */
.history th:nth-child(9), .history td:nth-child(9) { width: 12%; } /* 申請ボタン */

/* モバイル版　出勤簿ヘッダ調整 */
.label-pc {
  display: none;
}
.label-mobile {
  display: inline;
  font-size: 12px;
}

/* テーブルのボーダーを消す */
.history table {
    width: 100%; /* テーブル全体の幅を100%にする */
    border-collapse: collapse; /* ボーダーを1本線にする（不要なら削除） */
}

/* セルのボーダーを非表示にする */
.history th, .history td {
    padding: 10px; /* セル内の余白 */
    text-align: left; /* テキスト左詰め */
    border-top: 1px solid #ddd; /* 上の線だけ表示 */
    border-bottom: 1px solid #ddd; /* 下の線だけ表示 */
    border-left: none; /* 左の線を消す */
    border-right: none; /* 右の線を消す */
}

/* 合計行の背景色を常に白にする */
.total-row {
    background-color: white !important;
}

/* 申請ボタンの調整 */
.apply-button {
    font-size: 10px;    /* 文字サイズ */
    padding: 2px 4px;   /* ボタンの余白 */
    height: 25px;       /* ボタンの高さ */
    width: 50px;        /* ボタンの幅（ここをお好みの値に変更） */
    min-width: 40px;    /* 最小の幅 */
    max-width: 100px;   /* 最大の幅（必要なら） */
    border-radius: 4px ; /* 角丸 */
    background: none !important;  /* ← これを追加して上書き */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 0.1px solid transparent; /* ← デフォルトは透明 */
}

/* ▼ ステータス別：背景 + ボーダー + 文字色 */

.status-new {
    background: linear-gradient(135deg, #00796b, #004d40) !important;
    border-color: #2b9e8a;
    color: #ffffff;
}

.status-pending {
    background: linear-gradient(135deg, #eff5e7, #c3ff7d) !important;
    border-color: #79c627;
    color: #33691e;
}

.status-approved {
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2) !important;
    border-color: #2176c1;
    color: #004d99;
}

.status-rejected {
    background: linear-gradient(135deg, #ffe5e5, #ffc1c1) !important;
    border-color: #e53935;
    color: #b71c1c;
}

/* ▼ ホバー時：軽い浮き上がり */
.apply-button:hover {
    opacity: 0.95;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ======== トップへ戻るボタン ======== */
.back-button  {
    display: flex;
    padding: 12px 24px;
    font-size: 16px;
    background: linear-gradient(135deg, #3F51B5, #80deea);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 20px;
    transition: all 0.3s ease-in-out;
    wide: 10px
    
}

.back-button:hover {
    background: linear-gradient(135deg, #80deea, #2196F3);
    transform: translateY(-2px);
}

.header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px auto 15px auto;
    max-width: 850px;
    padding: 0 0px;
    box-sizing: border-box;
}

.button-group .back-button,
.button-group .csv-download-btn {
    width: 140px;           /* ✅ 固定幅 */
    height: 40px;           /* ✅ 固定高さ */
    padding: 0;             /* ✅ 上下の余白をなしに（heightで管理） */
    font-size: 14px;        /* ✅ 小さめの文字サイズ */
    display: flex;          /* ✅ 中央ぞろえ用 */
    align-items: center;    /* ✅ 上下中央 */
    justify-content: center;/* ✅ 左右中央 */
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
}

/* ======== 履歴ボタン ======== */
.history-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    background: linear-gradient(135deg, #80cbc4, #4db6ac);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 20px;
    transition: all 0.3s ease-in-out;
}

.history-button:hover {
    background: linear-gradient(135deg, #4db6ac, #00796b);
    transform: translateY(-2px);
}


/* ======== スタイリッシュなリンク ======== */
a {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

/* 通常のリンク */
a.default-link {
    color: #00796b;
    background: rgba(0, 121, 107, 0.1);
    border: 2px solid #00796b;
}

a.default-link:hover {
    background: #00796b;
    color: white;
    transform: translateY(-2px);
}

a.default-link:active {
    transform: scale(0.95);
}

/* スタイリッシュなアクションリンク */
a.action-link {
    background: linear-gradient(135deg, #00796b, #004d40);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

a.action-link:hover {
    background: linear-gradient(135deg, #004d40, #00251a);
    transform: translateY(-2px);
}

a.action-link:active {
    transform: scale(0.97);
    box-shadow: none;
}

/* 修正打刻セクション */
.correction-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: inline-block;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

/* 修正打刻のセレクトボックス */
.correction-section select {
    width: 50%;
    max-width: 200px;
    padding: 10px;
    margin: 10px auto;
    display: block;
    font-size: 16px;
    border: 2px solid #b2dfdb;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: border 0.3s ease-in-out;
}

.correction-section select:focus {
    border-color: #00796b;
}

/* 修正打刻の時間入力 */
.correction-section input[type="time"] {
    width: 50%;
    max-width: 200px;
    padding: 10px;
    margin: 10px auto;
    display: block;
    font-size: 16px;
    border: 2px solid #b2dfdb;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: border 0.3s ease-in-out;
}

.correction-section input[type="time"]:focus {
    border-color: #00796b;
}

/* 修正打刻ボタン */
.correction-section button {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #00796b, #004d40);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.correction-section button:hover {
    background: linear-gradient(135deg, #004d40, #00251a);
    transform: translateY(-2px);
}

.correction-section button:active {
    transform: scale(0.97);
    box-shadow: none;
}

/* 月選択ボックスと前後ボタンまとめたエリア */
.selector-wrapper {
    display: flex;
    justify-content: flex-start; /* 左寄せ */
    align-items: center;         /* 縦中央揃え */
    width: 100%;
    max-width: 850px;             /* テーブルと同じ幅に制限 */
    margin: 0 auto 5px auto;     /* 上中央下中央に配置して下に余白 */
    padding: 0 10px;              /* 左右ちょっと余白 */
    box-sizing: border-box;       /* パディング込みで幅管理 */
}

.year-month-select {
    padding: 6px 9px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* 月移動ボタン */
.month-move-button {
    width: 25px;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 20px;
    border: 0px solid #ccc;
    background-color: #f9f9f9;
    background: linear-gradient(135deg, #00796b00, #004d4000);
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.2);
}

/* 月移動ボタンホバー時 */
.month-move-button:hover {
    color: #ffffff;
    background-color: #e0f7fa;
    border-color: #00bcd400;
    background: linear-gradient(135deg, #00796b55, #004d4055);
    transform: translateY(-2px);
}

/* 左右にちょっと余白 */
.month-move-button.left {
    margin-right: 6px;
}
.month-move-button.right {
    margin-left: 6px;
}

/* ======== ダウンロードボタン ======== */
.csv-wrapper {
    display: flex;
    align-items: center;         /* 縦中央揃え */
    width: 160px;
    max-width: 850px;             /* テーブルと同じ幅に制限 */
    margin: 0 auto 0px auto;     /* 上中央下中央に配置して下に余白 */
    padding: 0 10px;              /* 左右ちょっと余白 */
    box-sizing: border-box;       /* パディング込みで幅管理 */
}

.csv-download-btn {
    padding: 0px 16px;
    font-size: 12px;
    background: linear-gradient(135deg, #80deea, #4db6ac);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;  /* ✅ 折り返さない */
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csv-download-btn:hover {
    background: linear-gradient(135deg, #4db6ac, #26c6da);
    transform: translateY(-2px);
}

.button-group {
    display: inline-flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* サイドバーのスタイル */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 160px;
    height: 100vh;
    background-color: #343a40;
    color: white;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ClockLink ロゴのスタイル */
.logo {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    transition: color 0.3s;
}

.logo:hover {
    color: #00ffe7; /* ホバー時のテキスト色 */
    text-shadow: 0 0 10px rgba(0, 255, 231, 0.7); /* テキストに影を追加 */
}

/* ナビゲーション */
.sidebar ul {
    list-style-type: none;
    padding: 0;
    width: 100%;
}

.sidebar ul li {
    width: 100%;
}

.sidebar ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    transition: background 0.3s;
}

.sidebar ul li a:hover {
    background-color: #343b40;
    color: #00ffe7; /* ホバー時のテキスト色 */
    text-shadow: 0 0 2px rgba(0, 255, 231, 0.7); /* テキストに影を追加 */
}

/* ボタンのスタイル */
.button-container button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.button-container button:hover {
    background-color: #0056b3;
}

/* ======== メインコンテンツのスタイル ======== */
.main-content {
    margin-top: 20px; /* サイドバーの幅 + 余白 */
    margin-left: 200px; /* サイドバーの幅 + 余白 */
    padding: 10px;
    transition: margin-left 0.3s ease-in-out; /* サイドバーの調整にスムーズなアニメーション */
}

.main-content-card {
    margin: 0px auto;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    background: rgba(255, 255, 255, 0);
    padding: 0px;
    border-radius: 0px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0);
}

/* ======== スマホ用サイドバー（デフォルト非表示） ======== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100vh;
    background: #343a40;
    color: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999; /* 他の要素より前面 */
}

/* サイドバーが開いた状態 */
.sidebar.active {
    transform: translateX(0);
}

/* メインコンテンツの位置調整 */
.main-content {
    margin-left: 0; /* スマホではデフォルトでサイドバーなし */
    padding: 10px 0px;
}

/* ======== 日付と時計 ======== */

.time-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
.time-inner {
    display: inline-block;
    text-align: left;
    line-height: 1; /* 行間を狭く */
}
.date-today {
    font-size: 22px;
    color: #333;
    margin-bottom: 0px;     /* ← 間隔を縮める */
    margin-top: 6px;        /* ← 時計のすぐ上にくるように軽く余白をとる */
}
.clock {
    font-weight: bold;
}
#clock-hhmm {
    font-size: 64px;
}
#clock-ss {
    font-size: 32px;
    vertical-align: super;
}

        /* アカウントメニューのスタイル */
        .account-menu {
            display: none;
            position: absolute;
            right: 10px;
            top: 50px;
            background: white;
            border: 1px solid #ccc;
            box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
            padding: 10px;
            width: 200px;
            border-radius: 5px;
            z-index: 1000;
            text-align: left; /* 左詰め */
        }

        .account-menu.active {
            display: block;
        }

        .account-menu .label {
            font-size: 14px;
            color: black; /* 文字色を黒に */
            margin-bottom: 5px;
            display: block;
        }

        .account-menu .menu-item {
            padding: 8px;
            display: block;
            text-decoration: none;
            color: black;
            border-top: 1px solid #ddd;
            text-align: left; /* 左詰め */
        }

        .account-menu .menu-item:hover {
            background: #f0f0f0;
        }

        .account-icon {
            cursor: pointer;
            font-size: 24px;
            margin: 10px;
        }

 /* 修正/申請モーダルのスタイル */
.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}
.modal {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 24px;
    border-radius: 10px;
    z-index: 1001;
    width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
}
.modal h2 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 16px;
}
fieldset {
    border: 1px solid #ccc;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 6px;
}
legend {
    font-size: 15px;
    font-weight: bold;
    padding: 0 6px;
}
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.form-row label {
    width: 130px;
    font-weight: bold;
    font-size: 14px;
    margin-right: 6px;
    text-align: left;
}
.form-row input[type="text"],
.form-row input[type="time"],
.form-row input[type="date"],
.form-row input[type="number"],
.form-row select {
    flex: 1;
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.modal button[type="submit"] {
    margin-top: 12px;
    padding: 8px 14px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}
.modal button[type="submit"]:hover {
    background-color: #0056b3;
}
.close-btn {
    float: right;
    cursor: pointer;
    font-size: 20px;
    color: #444;
}

.application-status-box {
    background-color: #f4f4f4;
    padding: 10px;
    margin-top: 8px;
    font-size: 13px;
    border: 1px dashed #aaa;
    border-radius: 4px;
}

/* 申請一覧・取下のメインスタイル */

        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 0.em;
            margin-bottom: 1em;
        }
        .filter-group label {
            display: flex;
            align-items: center;
            gap: 0.5em;
            font-size: 1.1em;
            
            min-width: 160px;
        }
        .filter-group input[type="date"] {
            font-size: 1em;
            padding: 2px 2px;
            width: 160px;
        }
        .filter-group button {
            font-size: 0.9em;
            padding: 6px 8px;
            width: fit-content;
            width: 120px;
        }
        .withdraw-button {
            font-size: 1em;
            padding: 2px 6px;
            width: 80px;
        }


/* 登録・ログイン画面の追加スタイル */

.register-link {
    margin-top: 15px;
    text-align: center; /* 中央揃え */
}

.register-link a {
    font-size: 16px;         /* 少し小さく */
    font-weight: normal;     /* 太字をやめる */
    border-color: #b2dfdb;   /* 優しい緑系の薄めのボーダー */
    color: #00796b;
}


.register-link a:hover {
    background-color: #b2dfdb;
    color: #00796b;
    transform: translateY(-2px);
}

.register-link a:active {
    transform: scale(0.97);
    box-shadow: none;
}


form label {
    display: block;
    text-align: left;
    font-weight: bold;
    margin-bottom: 6px;
}

/* ======== Chronohubロゴ風リンクスタイル ======== */
.logo-chronohub {
    font-weight: bold;
    font-size: 24px;
    letter-spacing: 1px;
    color: #00796b;
    text-decoration: none;
}

.logo-chronohub .hub {
    background-color: #00796b; 
    color: #ffffff;
    padding: 2px 6px;
    margin-left: 4px;
    border-radius: 3px;
}

.logo-chronohub:hover {
    opacity: 0.85;
}

.logo-chronohub .hub:hover {
    background-color: #b2dfdb;   /* 優しい緑系の薄めのボーダー */
    color: #00796b; 
}

/* ======== モバイル版出勤簿カラムヘッダ ======== */

  .history table {
    table-layout: fixed; /* テーブルのレイアウト固定 */
    min-width: 400px;    /* 最低幅を確保（カラム数に応じて調整OK） */
    transform: scale(0.97);  /* ★90%に縮小 */
    transform-origin: top center; /* ★上中央を基準に縮小 */
  }
  .history th {
    position: relative;
    white-space: normal;
/*    color: transparent;  */
    min-width: 80px; /* 例えば80pxに固定（自由に調整OK） */
    width: 80px;
    max-width: 80px;
    min-height: 43px; /* ヘッダー行の最小高さを固定 */
    height: 43px; /* ヘッダー行の高さを固定 */
    max-height: 43px; /* ヘッダー行の最大高さを固定 */
    padding: 4px 2px; /* 余白も小さめに */
    overflow: hidden;
    text-overflow: ellipsis;
  }

.history th::before {
    content: attr(data-label); /* th要素に付与されたdata-label属性の内容を表示する */
    position: absolute;         /* 親要素(th)の中で絶対配置にする */
    top: 50%;                   /* 上端から50%の位置に配置（縦方向中央寄せの準備） */
    left: %;                  /* 左端から移動しない位置に配置（横方向左詰めの準備） */
    transform: translate(0%, -50%); /* 自分自身の幅の0%・高さの50%分だけ逆に移動して、完全に中央に配置 */
    color: #00796b;              /* 文字色を青緑系にする */
    font-size: 12px;             /* フォントサイズを12pxに設定する */
    text-align: left;          /* テキストを中央揃えにする（通常はtransformだけでよいが、念のため指定） */
    white-space: pre-line;       /* 改行コード（\n）を反映する＆単語の折り返しも許可する */
}

/* ======== 申請/修正以外のカラムを左詰めにする ======== */
/* thとtdを全部左寄せにする */
.history th,
.history td {
    text-align: left;
    padding: 10px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-left: none;
    border-right: none;
}

/* 申請ボタン列（9列目）だけ中央揃えにする */
.history th:nth-child(9),
.history td:nth-child(9) {
    text-align: center;
}

/* 9列目だけ中央寄せにする */
.history th:nth-child(9)::before {
    text-align: center;
    left: 50%;                  /* 左端から移動しない位置に配置（横方向左詰めの準備） */
    transform: translate(-50%, -50%); /* 自分自身の幅の0%・高さの50%分だけ逆に移動して、完全に中央に配置 */
}

/* ======== モバイル版出勤簿のみ勤務状況、深夜残業を非表示 ======== */

    /* 勤務状況（2列目：勤務区分、勤務状況）を非表示 */
    .history th:nth-child(2),
    .history td:nth-child(2),
    /* 深夜残業時間（6列目：深夜労働時間）を非表示 */
    .history th:nth-child(6),
    .history td:nth-child(6) {
        display: none;
    }

/* ======== 出勤簿ページの従業員浄法テーブル ======== */

.user-info-wrapper {
    max-width: 850px; /* 勤怠テーブルと合わせる */
    margin: 0 auto; /* ← これで中央寄せ */
    padding: 5px 10px;
    box-sizing: border-box;
    text-align: left; /* 中の要素は左寄せのまま */
}


.user-info {
    max-width: 400px;
    margin: 0px 0px 0;  /* ← auto を削除して左寄せに */
    text-align: left;
}

.user-info-table {
    width: auto;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #fdfdfd;
    border: 1px solid #b2dfdb;
    table-layout: fixed; /* 各列の幅を固定 */
}

.user-info-table th,
.user-info-table td {
    border: 1px solid #b2dfdb;
    padding: 6px 10px;
    text-align: center;
    white-space: nowrap; /* 折り返し防止 */
}

/* 各カラムの幅を指定 */
.user-info-table th:nth-child(1),
.user-info-table td:nth-child(1) {
    width: 120px; /* 社員番号 */
}

.user-info-table th:nth-child(2),
.user-info-table td:nth-child(2) {
    width: 200px; /* 氏名 */
}

.user-info-table th:nth-child(3),
.user-info-table td:nth-child(3) {
    width: 200px; /* 部門名 */
}