﻿.header {
    background-color: #fff;
    color: #333;
    border-bottom: 1px solid #dcdcdc;
    display: flex;
    justify-content: space-between;
    height: 52px;
}

.header-ttl {
    font-size: 1.25rem;
    font-weight: 600;
    margin: auto 0;
    padding: .5rem 1.75rem;
}
.header-right {
    display: flex;
    align-items: center;
    padding-right: 2.75rem;
}
.btn-logout{
    padding-left:2.75rem;
}

.wrap-container {
    height:calc(100dvh - 52px);
}

.wrap-contents {
    display: flex;
    height: calc(100dvh - 52px);
}
.wrap-sidebar {
    height: calc(100dvh - 52px);
}

.nav-inner {
    background-color: #d3d3d3;
    height: calc(100dvh - 52px);
    width: 10.5rem;
}
.label-nav_item {
    color: #fff;
}
.main-content {
    width: 100%;
    height: 100%;
    background-color: #f1f1f1;
}
.wrapper-search {
    padding-top: .75rem;
    padding-bottom: .75rem;
    height: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-title {
    font-size: 1.25rem;
    border-left: 8px solid red;
    padding: 5px 8px;
}

.search-form {
    border: 1px solid #afafaf;
    padding-left: .5rem;
    padding-right: .5rem;
    padding-bottom: .5rem;
    background-color: #fff;
}
.form-header {
    font-size: 1rem;
    font-weight: 400;
    width: 100%;
    color: #fff;
    background-color: #28579f;
    line-height: 1.25;
    vertical-align: middle;
    margin-bottom: 0;
    padding: .25rem;
    padding-left: .75rem;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    opacity: 1;
}

/*--- Pages/A01/Tabs/Step共通適用 ---*/
/*--- タブステップ用(To Doリスト, メッセージ, 次にやること )  ---*/
.todo-content-wrapper {
    overflow-y: auto; /*内容がはみ出たら縦スクロールバーを表示*/
    padding-right: 1rem; /*スクロールバーのスペースを確保*/
    margin-right: -1rem; /*padding分を相殺して見た目を揃える*/
    flex-grow: 1;
}

.todo-group {
    margin-bottom: 1.75rem;
}

    .todo-group:last-child {
        margin-bottom: 0;
    }

.todo-group-title {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #006064; /* 少し濃いめの文字色に */
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border-left: 5px solid #00BCD4; /* アクセントになる左ボーダー */
    background: linear-gradient(to right, #e0f7fa, #f1f8f9); /* 淡いグラデーション背景 */
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

    .todo-item:last-child {
        margin-bottom: 0;
    }

/* チェックマークのスタイル */
.todo-status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%; /* 円形に */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease-in-out;
}

    /* 未完了時のスタイル */
    .todo-status-icon.incomplete {
        border: 2px solid #ced4da; /* 灰色の枠線 */
    }

    /* 完了時のスタイル */
    .todo-status-icon.completed {
        background-color: #00BCD4; /* テーマカラーの背景 */
        border: 2px solid #00BCD4;
        color: #fff; /* アイコンの色を白に */
    }

    .todo-status-icon svg {
        width: 14px;
        height: 14px;
        opacity: 0; /* デフォルトではアイコンを非表示 */
        transition: opacity 0.2s;
    }

    /* completedクラスが付いた時だけアイコンを表示 */
    .todo-status-icon.completed svg {
        opacity: 1;
    }

/* リンクラベルボタン */
.todo-link {
    background-color: transparent; /* 背景色をなくす */
    border: none; /* 枠線をなくす */
    color: #00796b;
    padding: 0.2rem; /* クリック範囲のための僅かな余白 */
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: left;
    text-decoration: none; /* デフォルトの下線は表示しない */
    transition: all 0.2s ease;
}

    .todo-link:hover {
        color: #004d40;
        text-decoration: underline; /* ホバー時に下線を表示 */
    }

.todo-item input[type="checkbox"]:checked ~ .todo-link {
    text-decoration: line-through;
    opacity: 0.6;
}

/*--- Pages/A01/Tabs/Step共通適用 物件ファイル定期用 ---*/
/*--- 関連ファイル ---*/
.related-files-section .info-card {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden; /* 角丸を維持するため */
}

.related-files-section .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #343a40;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* カード本体の余白を設定 */
.related-files-section .card-body {
    padding: 1rem 1.5rem;
}

    .related-files-section .card-title svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        fill: #343a40;
    }

.files-table-body {
    margin-top: 0.5rem;
}

.file-row {
    display: grid;
    grid-template-columns: 2.0fr 3fr 1.3fr 2fr 0.5fr;
    align-items: center;
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid #f0f2f5;
}

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

    /*ヘッダー行のスタイル*/
    .file-row.header {
        color: #6c757d;
        font-size: 0.85rem;
        font-weight: 600;
        border-bottom: 1px solid #e9ecef;
    }

        /*ヘッダー行の各項目のスタイル*/
        .file-row.header .file-item {
            padding-top: 0.75rem;
            padding-bottom: 0.75rem;
        }

    /*データ行の各項目のスタイル*/
    .file-row:not(.header) .file-item {
        padding: 0;
        font-size: 0.9rem;
        color: #495057;
        overflow: hidden;
        line-height: 1.1;
    }

.file-link {
    background: none;
    border: none;
    padding: 0;
    color: #03A9F4;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 95%;
}

    .file-kind > span,
    .file-link > span,
    .uploader > span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    /* ファイル名アンダーライン */
    .file-link:hover > span {
        border-bottom: 0.5px solid currentColor;
        padding-bottom: 1.5px; 
    }

    .file-link svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        margin-right: 0.5rem;
    }

.file-item.actions {
    text-align: right;
}

.delete-file-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #adb5bd;
    padding: 0.25rem;
    display: inline-flex;
    align-items: center;
}

    .delete-file-btn:hover {
        color: #dc3545;
    }

/* --- タスクが存在しない場合の表示スタイル --- */
.no-tasks-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    margin: 1rem;
    background-color: #fff; /* 他のカード要素との統一感を出すため白背景に */
    border: 1px dashed #dcdcdc; /* ヘッダーのボーダー色と合わせ、破線で未入力感を表現 */
    border-radius: 8px; /* 適度な角丸 */
    color: #6c757d; /* 全体のテキストカラー */
    box-sizing: border-box; /* paddingとborderを高さに含める */
}

.no-tasks-icon svg {
    width: 30px;
    height: 30px;
    color: #00BCD4; /* 既存のテーマカラーに合わせてアイコンの色を設定 */
    opacity: 0.8;
    margin-bottom: 1.25rem;
}

.no-tasks-title {
    font-size: 1.0rem;
    font-weight: 600;
    color: #343a40; /* タイトルは少し濃いめの色に */
    margin-bottom: 0.5rem;
}

.no-tasks-text {
    font-size: 0.9rem;
    max-width: 400px; /* 長文にならないよう幅を制限 */
    line-height: 1.6;
}

/* --- タスク完了ボタン非活性スタイル --- */
.todo-link:disabled,
.todo-link:disabled:hover { /* ホバー時もスタイルを維持 */
    color: #adb5bd; /* 薄いグレーで非活性を表現 */
    cursor: not-allowed; /* 操作不可カーソルを表示 */
    text-decoration: none; /* ホバー時の下線を無効化 */
}

/* 完了済みリンクのスタイル（クラス .completed が付与された場合） */
.todo-link.completed {
    color: #6c757d; /* 少し濃いめのグレー */
}

    /* 完了済み かつ 非活性状態のスタイル */
    .todo-link.completed:disabled,
    .todo-link.completed:disabled:hover {
        color: #adb5bd; /* 非活性の色を優先 */
    }

.text-inner {
    padding-top: 1rem;
    padding-left: 1.5rem;
}