.overtime-input-section {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 20px;
    padding: 1rem;
    background: rgba(255, 255, 255, .72);
}

.overtime-input-section h5 {
    margin-bottom: .9rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.overtime-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.overtime-choice-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 86px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 18px;
    padding: 1rem;
    cursor: pointer;
    background: rgba(255, 255, 255, .86);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.overtime-choice-card input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.overtime-choice-card span { display: grid; gap: .2rem; }
.overtime-choice-card strong { color: #0f172a; font-size: .98rem; }
.overtime-choice-card small { color: #64748b; font-size: .84rem; }

.overtime-choice-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 14px 28px rgba(79, 70, 229, .12);
}

.overtime-money-input-wrap { position: relative; }

.overtime-money-prefix {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    color: #64748b;
    pointer-events: none;
    z-index: 2;
}

.overtime-money-input { padding-left: 2.2rem; }

.overtime-helper-text { color: #64748b; font-size: .88rem; }


.overtime-result-shell { display: grid; gap: 1rem; }

.overtime-summary-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 1.2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.98) 100%);
}

.overtime-summary-value {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.overtime-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
}

.overtime-mini-card {
    height: 100%;
    border-radius: 20px;
    padding: 18px;
    background: var(--primary-soft);
}

.overtime-mini-card small {
    color: #64748b;
    display: block;
    margin-bottom: 6px;
    font-size: .8rem;
}

.overtime-mini-card strong {
    display: block;
    color: #0f172a;
    font-size: 1.1rem;
    line-height: 1.2;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.overtime-tool-form[data-has-excess-work="false"] [data-overtime-excess-result] { display: none; }

.overtime-details-toggle {
    border-radius: 18px;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(15, 23, 42, .08);
    padding: .9rem 1rem;
}

.overtime-details-toggle > summary {
    cursor: pointer;
    font-weight: 800;
    color: #1e293b;
    list-style: none;
}

.overtime-details-toggle > summary::-webkit-details-marker { display: none; }
.overtime-details-toggle > summary::marker { content: ""; }

.overtime-details-toggle > summary::after {
    content: "+";
    float: right;
    font-size: 1.1rem;
}

.overtime-details-toggle[open] > summary::after { content: "−"; }

.overtime-formula-box {
    border-radius: 16px;
    padding: 1rem;
    background: rgba(248, 250, 252, .92);
    border: 1px solid rgba(15, 23, 42, .08);
}

.overtime-formula-box small {
    display: block;
    margin-bottom: .35rem;
    color: #64748b;
    font-weight: 700;
}

.overtime-formula-box p { color: #334155; line-height: 1.5; }

@media (max-width: 991.98px) {
    .overtime-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .overtime-choice-grid,
    .overtime-detail-grid { grid-template-columns: 1fr; }
}
