/* -------------------- 共通 --------------------*/
/* ヘッダー非表示 */
nav.navbar { display: none; } 
/* 背景 */
body { background: #f8f8f8; }
/* コンテナ */
.container {
    max-width: 550px; 
    margin: 0 auto; 
    background: #fff;
    min-height: 100vh;
    padding: 60px 5px 80px 5px;
    box-sizing: border-box;
}
/* 画面タイトル */
.header {
    background: #5a7d3c;
    color: #fff;
    font-size: 1.2em;
    text-align: center;
    padding: 3px 0;
    border-radius: 12px;
    letter-spacing: 2px;
}
/* 日付行 */
.date-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #19c37d;
    color: #fff;
    font-size: 1em;
}
.date-row form {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
}
.date-row select {
    font-size: 1em;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #bbb;
    margin-left: 8px;
}
.date-row span,
.date-row label {
    min-width: 0;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
}
.date-row button {
    background: #3a8ee6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.75em;
    margin-left: 10px;
    cursor: pointer;
}
/*フッター*/
.footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    padding: 6px 0 8px 0;
    z-index: 100;
}
/*-------------------- ログイン画面 --------------------*/
/*ロゴとタイトル*/
.logo-title {
    text-align: center;
    margin-bottom: 24px;
}
.logo-title__img {
    height: 40px;
    vertical-align: middle;
}
.logo-title__label {
    font-size: 1.2em;
    margin-left: 10px;
    vertical-align: middle;
}
.login-card { /*ログイン*/
    background: #00bfff;
    border-radius: 20px;
    padding: 24px 16px 16px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}
.login-card__label { /*入力欄ラベル*/
    color: #fff;
    font-size: 1em;
    margin-bottom: 6px;
}
.login-card__input { /*入力欄*/
    width: 100%;
    font-size: 1.1em;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 6px;
    border: none;
}
.login-btn { /*ログインボタン*/
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.90em;
    padding: 10px 32px;
    width: auto;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/*パスワードを忘れた場合*/
.forgot-link {
    display: inline;
    text-decoration: underline;
    color: #0070f3;
    font-size: 0.95em;
}
/*エラー表示*/
.invalid-feedback { color: #fff; }
/*-------------------- 現場一覧画面～作業完了報告画面 --------------------*/
/*登録ボタン*/
.register-btn {
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 1.1em;
    font-weight: bold;
    width: 90%;
    margin: 24px auto 16px auto;
    display: block;
    letter-spacing: 2px;
}
.btn {/*ボタン*/
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.90em;
}
.section-title { /*タイトル*/
    background: #19c37d;
    color: #fff;
    font-weight: bold;
    padding: 5px 16px;
    font-size: 1em;
    letter-spacing: 1px;
    margin-bottom: 0;
}
.section-box {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    margin-bottom: 9px;
    overflow: hidden;
}
.section-title.today,
.section-title.past {
    background: #19c37d;
    color: #fff;
}
.info-box {
    padding: 14px 16px;
    font-size: 0.97em;
    line-height: 1.7;
    background: #fff;
}
.btn:disabled {
    background: #cccccc !important;
    color: #888888 !important;
    cursor: not-allowed;
}
.data-table { /*現場一覧*/
    width: 100%;
}
.data-table__th, .data-table__td {
    padding: 8px 6px;
}
.data-table__th { /*テーブルヘッダー*/
    background: #8fc48a;
    color: #fff;
    font-weight: bold;
    text-align: center;
    border-right: 2px solid #b2d6b2;
    white-space: nowrap;
}
.data-table__td { /*テーブルセル*/
    border-right: 2px solid #e0e0e0;
    text-align: center;
    word-break: break-all;
}
.data-table tr:last-child .data-table__td {
    border-bottom: 1px solid #ccc;
}
.data-table__td--name { /*作業責任者*/
    text-align: center;
}
.data-table__td--subject { /*件名*/
    text-align: left;
    max-width: 140px;
    word-break: break-all;
}
.data-table__td--name, .data-table__td--subject, .data-table__td--start-time {
    font-size: 0.95em;
}
.data-table__td, .data-table__th {
    border-bottom: 1px solid #e0e0e0;
}
.data-table__td:last-child, .data-table__th:last-child {
    border-right: none;
}
.menu-buttons {
    display: none;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.10);
    z-index: 1002;
    padding: 18px 0 18px 0;
    text-align: center;
}
.menu-buttons button {
    margin: 0 16px;
    min-width: 120px;
    font-size: 1.1em;
    padding: 10px 0;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}
.btn-upload {
    background: #0070f3;
    color: #fff;
}
.btn-clear {
    background: #888;
    color: #fff;
}
#dateForm{
    display: flex; 
    align-items: center; 
    gap: 4px; 
    justify-content: center; 
    margin: 10px 0 4px 0;
}
#yearSelect,
#monthSelect,
#daySelect {
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-size: 0.80em;
}
#yearSelect { width: 60px; }
#monthSelect,
#daySelect { width: 45px; }
.canvas-box {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 12px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
canvas {
    width: 100% !important;
    height: 80px;
    background: #f9f9ff;
    border: none;
    border-bottom: 1px solid #333;
    border-radius: 4px;
    display: block;
}
.sign-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}
.sign-row .sign-text {
    min-width: 40px;
    font-size: 1em;
    margin-right: 8px;
}
.customer-name {
    font-size: 1em;
    font-weight: bold;
    margin-right: 16px;
    white-space: nowrap;
}
/*-------------------- 勤務実績画面 --------------------*/
.workrecord-select {
    margin-bottom: 6px;
    font-size: 1em;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.workrecord-scroll {
    overflow-x: auto;
    width: 100%;
    font-size:0.85em;
}
.workrecord-table {
    min-width: 600px;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.98em;
}
.workrecord-table th, .workrecord-table td {
    border: 1px solid #bbb;
    text-align: center;
    vertical-align: middle;
}
.workrecord-table th {
    background: #e6f2e6;
    font-weight: bold;
}
.workrecord-table th:nth-child(1),
.workrecord-table td:nth-child(1) {
    width: 75px;
}
.workrecord-table th:nth-child(4){
    border-right:1px solid #e6f2e6; /* 済の右側の罫線 */
}
.workrecord-table td:nth-child(6) {
    width: 100px;
}
.workrecord-input-btn {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.88em;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.workrecord-today {
    background-color: #f9f1b5ff !important;
}
.workrecord-complete {
    color: #e74c3c;
}
.input-row {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
/*-------------------- 休暇申請、出勤日申請画面 --------------------*/
.vacation-btn {
    background: #0090e3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    padding: 4px 12px;
    margin-left: 16px;
    width: 50%;
    max-width: 130px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.vacation-btn-area {
    text-align: center;
    margin-bottom: 24px;
}
.vacation-history {
    background: #fff;
    border-radius: 8px;
    padding: 16px 18px;
}
.vacation-history-title {
    font-size: 0.98em;
    color: #444;
    margin-bottom: 4px;
}
.vacation-history-row {
    font-size: 0.98em;
    margin-bottom: 8px;
}
.vacation-history-row:last-child {
    margin-bottom: 0;
}
.vacation-history-span {
    margin-left: 8px;
}
.vacation-cancel-btn {
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.92em;
    padding: 2px 10px;
    margin-left: 8px;
}
.vacation-form-row {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}
.form-row label {
    width: 80px;
    font-size: 1em;
    color: #222;
}
.vacation-form-row select,
.vacation-form-row input[type="number"] {
    font-size: 1em;
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #bbb;
    margin-right: 4px;
}
.vacation-form-row textarea {
    width: 220px;
    height: 80px;
    font-size: 1em;
    border-radius: 4px;
    border: 1px solid #222;
    padding: 6px;
    resize: vertical;
}
.added-dates {
    margin-bottom: 24px;
    text-align: center;
}
.added-date-row {
    font-size: 1em;
    margin: 4px 0;
}
.add-btn {
    padding: 4px 16px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
}
.vacation-history-row {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0; /* 薄いグレー */
    background: #fff;
}

.vacation-history-row:last-child {
    border-bottom: none;
}