/* 연차 계산기 전용 스타일. 공통 스타일은 /calc/calc.css */

/* monthly accrual track: 11 dots */
.leave-months-title {
    display: flex;
    justify-content: space-between;
    margin: 0 0 8px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
}

.leave-months ol {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.leave-months li {
    display: grid;
    place-items: center;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink-faint);
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.leave-months li.is-earned {
    border-color: color-mix(in srgb, var(--calc) 40%, var(--line));
    background: var(--calc-soft);
    color: var(--calc);
}

/* leave table */
.leave-table-card {
    margin-top: 14px;
}

.leave-table-mode {
    color: var(--ink-faint);
    font-size: 12px;
    font-weight: 600;
}

.leave-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}

.leave-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.leave-table th,
.leave-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

.leave-table thead th {
    color: var(--ink-faint);
    font-size: 12px;
    font-weight: 700;
}

.leave-table td:nth-child(3) {
    font-weight: 700;
}

.leave-table td:last-child {
    color: var(--ink-faint);
    font-size: 13px;
    white-space: normal;
}

.leave-table tr.is-current {
    background: var(--calc-soft);
}

.leave-table tr.is-current th::after {
    content: "지금";
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--calc);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.leave-table tr.is-past {
    color: var(--ink-faint);
}

@media (max-width: 640px) {
    .leave-months li {
        height: 24px;
        font-size: 10px;
    }
}
