/* src/public/css/calculator/fee_withholding.css … 源泉徴収・消費税計算 */

.calc-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: 20px;
}


.fwh-section-title {
    margin: 26px 0 12px;
    font-size: 1.1rem;
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.calc-box > .fwh-section-title:first-child { margin-top: 0; }


.fwh-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}


.input-group { margin-bottom: 16px; }

.input-group label,
.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #1e3c72;
    font-size: 0.92rem;
}

.input-group input[type="text"],
.input-group input[type="date"],
.input-group select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #ffffff;
}


/* 数字欄＋単位 */
.fwh-unit-field {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fwh-unit-field input { flex: 1; min-width: 0; text-align: right; }

.fwh-unit-field span {
    flex: 0 0 auto;
    color: #475569;
    font-size: 0.9rem;
    white-space: nowrap;
}


.fwh-checks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    margin-bottom: 6px;
}


.check-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #334155;
    cursor: pointer;
}

.check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}


/* そのほかの費用 */

.fwh-btn-copy {
    padding: 9px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #2a5298;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fwh-btn-copy:hover { background: #e2e8f0; }


/* ボタン群 */
.btn-group {
    display: flex;
    gap: 15px;
    margin: 22px 0 8px;
}

.btn-calc {
    flex: 2;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    background-color: #2a5298;
    color: white;
}

.btn-calc:hover { background-color: #1e3c72; }

.btn-clear-tool {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    background-color: #e9ecef;
    color: #495057;
}

.btn-clear-tool:hover { background-color: #dee2e6; }


.fwh-message {
    margin: 0;
    min-height: 1.4em;
    font-size: 0.9rem;
    font-weight: bold;
    color: #b45309;
}


/* 結果 */


.fwh-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.fwh-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }

.fwh-table th,
.fwh-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: middle;
}

.fwh-table thead th { background-color: #f1f5f9; color: #1e3c72; font-size: 0.85rem; white-space: nowrap; }

.fwh-table tbody th { color: #1e293b; font-weight: bold; }


.fwh-copy-row { margin-top: 12px; display: flex; justify-content: flex-end; }
@media (max-width: 768px) {

    .calc-box { padding: 20px; }

    .btn-group { gap: 10px; }

    .btn-calc,
.btn-clear-tool { padding: 12px; font-size: 0.95rem; }

    .fwh-table { font-size: 0.85rem; }

    .fwh-table th,
.fwh-table td { padding: 8px 6px; }
}
@media (max-width: 480px) {

    .fwh-grid { grid-template-columns: 1fr; }
}


/* === 源泉徴収・消費税計算だけの部品 === */
.fwh-desc { margin: 0 0 18px; font-size: 0.88rem; color: #64748b; line-height: 1.6; }

.fwh-note { margin: 6px 0 10px; font-size: 0.8rem; color: #64748b; line-height: 1.55; white-space: pre-line; }

.fwh-settings { padding: 0; }

.fwh-settings-summary {
    padding: 18px 24px;
    font-weight: bold;
    color: #1e3c72;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fwh-settings-state { font-size: 0.8rem; font-weight: normal; color: #64748b; }

.fwh-settings[open] .fwh-settings-summary { border-bottom: 1px solid #e2e8f0; margin-bottom: 16px; }

.fwh-settings > :not(summary) { margin-left: 24px; margin-right: 24px; }

.fwh-settings > :last-child { margin-bottom: 20px; }

.fwh-btn-sub {
    padding: 9px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #2a5298;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fwh-btn-sub:hover { background: #e2e8f0; }

.radio-group { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 5px; }

.radio-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 500; color: #334155; }

.fwh-checks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }

.calc-box > .fwh-section-title:first-child { margin-top: 0; }


.fwh-result { margin-top: 18px; }

.fwh-net {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 12px;
    border-radius: 8px;
    background-color: #f1f3f5;
    margin-bottom: 14px;
}

.fwh-net-label { font-size: 0.9rem; color: #64748b; font-weight: bold; }

.fwh-net-val { font-size: 2.1rem; font-weight: bold; color: #2a5298; line-height: 1.25; }

.fwh-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }

.fwh-table th,
.fwh-table td { padding: 10px 8px; border-bottom: 1px solid #e2e8f0; text-align: left; }

.fwh-table tbody th { color: #334155; font-weight: normal; }

.fwh-table tbody td { text-align: right; white-space: nowrap; color: #1e293b; }

.fwh-table .fwh-row-strong th,
.fwh-table .fwh-row-strong td { font-weight: bold; color: #1e3c72; }

.fwh-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.fwh-quick { font-size: 0.88rem; }

.fwh-quick thead th { background-color: #f1f5f9; color: #1e3c72; font-size: 0.82rem; white-space: nowrap; text-align: right; }

.fwh-quick td { text-align: right; white-space: nowrap; }

.fwh-quick td:first-child { font-weight: bold; color: #1e293b; }

.fwh-quick td:last-child { font-weight: bold; color: #2a5298; }

.fwh-copy-row { display: flex; justify-content: flex-end; }
@media (max-width: 768px) {

    .fwh-settings-summary { padding: 16px 20px; }

    .fwh-settings > :not(summary) { margin-left: 20px; margin-right: 20px; }

    .fwh-net-val { font-size: 1.7rem; }

    .fwh-quick { font-size: 0.8rem; }

    .fwh-quick th,
.fwh-quick td { padding: 8px 5px; }
}
