
/**
 * TakeCloud Estimate V67.1
 * 承認ステータス UI 視認性改善
 * by Takeyama
 *
 * V63 の既存機能を変更せず、表示だけを後勝ちCSSで改善する。
 */

/* ===== 承認ステータス全体 ===== */
.tc63-wrap{
    margin: 18px 0 22px !important;
    padding: 18px 20px !important;
    border: 1px solid #c8d6e5 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06) !important;
}

.tc63-title{
    margin: 0 0 12px !important;
    color: #10243e !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    letter-spacing: .01em !important;
}

/* ===== フィルター列 ===== */
.tc63-toolbar{
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 9px !important;
}

/* ===== フィルターボタン ===== */
.tc63-filter{
    appearance: none !important;
    -webkit-appearance: none !important;

    min-height: 40px !important;
    padding: 8px 14px !important;

    border: 1.5px solid #a9bdd3 !important;
    border-radius: 999px !important;

    background: #f7fafc !important;
    color: #172033 !important;

    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;

    opacity: 1 !important;
    text-shadow: none !important;

    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05) !important;

    transition:
      background-color .15s ease,
      border-color .15s ease,
      color .15s ease,
      box-shadow .15s ease,
      transform .05s ease !important;
}

.tc63-filter:hover{
    background: #eaf2f8 !important;
    border-color: #6e91b3 !important;
    color: #0c1d33 !important;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .10) !important;
}

.tc63-filter:focus-visible{
    outline: 3px solid rgba(30, 103, 174, .30) !important;
    outline-offset: 2px !important;
}

.tc63-filter:active{
    transform: translateY(1px) !important;
}

/* 選択中 */
.tc63-filter.active{
    background: #173b5e !important;
    border-color: #173b5e !important;
    color: #ffffff !important;
    box-shadow: 0 2px 7px rgba(23, 59, 94, .24) !important;
}

/* ===== 件数 ===== */
.tc63-count{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 22px !important;
    height: 22px !important;
    margin-left: 6px !important;
    padding: 0 6px !important;

    border-radius: 999px !important;
    background: #e2e8f0 !important;
    color: #172033 !important;

    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 22px !important;

    opacity: 1 !important;
}

.tc63-filter.active .tc63-count{
    background: #ffffff !important;
    color: #173b5e !important;
}

/* ===== 一覧表内の承認ステータスバッジ ===== */
.tc63-badge{
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;

    min-height: 30px !important;
    padding: 5px 10px !important;

    border-radius: 999px !important;
    border: 1px solid transparent !important;

    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;

    text-decoration: none !important;
    opacity: 1 !important;
}

/* 未申請 */
.tc63-none{
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

/* 承認待ち */
.tc63-pending{
    background: #fff4cc !important;
    border-color: #e5b82e !important;
    color: #6b4f00 !important;
}

/* 正式承認済 */
.tc63-approved{
    background: #daf5e5 !important;
    border-color: #63bf86 !important;
    color: #0d5b2b !important;
}

/* 差戻し */
.tc63-rejected{
    background: #fde2e6 !important;
    border-color: #dc6a78 !important;
    color: #8b1727 !important;
}

/* 再承認必要 */
.tc63-stale{
    background: #ffe8d7 !important;
    border-color: #ef8d4a !important;
    color: #8a3b00 !important;
}

/* 取消 */
.tc63-cancelled{
    background: #eee8f8 !important;
    border-color: #a88cc7 !important;
    color: #563d74 !important;
}

/* バッジホバー */
.tc63-badge:hover{
    filter: brightness(.97) !important;
    text-decoration: none !important;
}

/* ===== 小さい画面 ===== */
@media (max-width: 900px){
    .tc63-wrap{
        padding: 14px !important;
    }

    .tc63-toolbar{
        gap: 7px !important;
    }

    .tc63-filter{
        min-height: 38px !important;
        padding: 7px 11px !important;
        font-size: 13px !important;
    }
}
