/* Yıllık İzin Hakediş Hesaplama — İş Hayatı #303F9F */

.leave-entitlement-calc { font-family: inherit; --cat-bg: #303F9F; }

/* TAB BAR */
.leave-entitlement-calc .calc-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e2e8f0; margin-bottom: 1.5rem; padding: 0 4px; }
.leave-entitlement-calc .calc-tab { background: transparent; border: none; padding: 0.85rem 1.5rem; font-size: 0.95rem; font-weight: 700; color: #64748b; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; display: inline-flex; align-items: center; gap: 8px; transition: color 0.15s, border-color 0.15s; font-family: inherit; }
.leave-entitlement-calc .calc-tab:hover:not(:disabled) { color: var(--cat-bg); }
.leave-entitlement-calc .calc-tab.active { color: var(--cat-bg); border-bottom-color: var(--cat-bg); }
.leave-entitlement-calc .calc-tab:disabled { cursor: not-allowed; opacity: 0.45; }
.leave-entitlement-calc .calc-tab i { font-size: 1.05rem; }
.leave-entitlement-calc .calc-tab-badge { background: #16a34a; color: #fff; font-size: 0.65rem; font-weight: 800; padding: 2px 7px; border-radius: 10px; margin-left: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.leave-entitlement-calc .calc-tab-panel[hidden] { display: none; }

/* INPUT GRID */
.leave-entitlement-calc .lent-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-bottom: 1.1rem; }
.leave-entitlement-calc .lent-row.lent-baz-row { background: #f8fafc; border: 1px dashed rgba(48, 63, 159, 0.3); border-radius: 10px; padding: 1rem 1.1rem; }
.leave-entitlement-calc .calc-input-col label { display: block; margin-bottom: 0.45rem; font-weight: 700; color: #1e293b; font-size: 0.92rem; }
.leave-entitlement-calc .calc-field { width: 100%; padding: 0.7rem 0.95rem; font-size: 0.95rem; border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; height: 44px; font-family: inherit; box-sizing: border-box; }
.leave-entitlement-calc .calc-field:focus { outline: none; border-color: var(--cat-bg); box-shadow: 0 0 0 3px rgba(48, 63, 159, 0.15); }
.leave-entitlement-calc .lent-baz-info { display: block; font-size: 0.8rem; color: #64748b; line-height: 1.45; padding-top: 4px; }
.leave-entitlement-calc .calc-input-col label.lent-check-box,
.leave-entitlement-calc .lent-check-box {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.95rem !important;
    margin: 0 !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem !important;
    color: #334155 !important;
    font-weight: 600 !important;
    height: 44px;
    box-sizing: border-box;
    width: 100%;
}
.leave-entitlement-calc .lent-check-box input { width: 16px; height: 16px; accent-color: var(--cat-bg); margin: 0; position: relative; top: 1px; }
.leave-entitlement-calc .lent-check-box span { position: relative; top: 1px; line-height: 1; }

/* CALC BUTTON */
.leave-entitlement-calc .calc-btn-wrapper { display: flex; justify-content: center; margin-top: 1.25rem; }
.leave-entitlement-calc .calc-btn-primary { background: var(--cat-bg); color: #fff; border: none; padding: 0.95rem 2.4rem; font-size: 1rem; font-weight: 700; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-family: inherit; box-shadow: 0 4px 12px rgba(48, 63, 159, 0.22); transition: opacity 0.15s; }
.leave-entitlement-calc .calc-btn-primary:hover { opacity: 0.9; }

/* HEADLINE */
.leave-entitlement-calc .lent-headline-result { background: var(--cat-bg); color: #fff; padding: 1.4rem 2rem; border-radius: 14px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; box-shadow: 0 6px 20px rgba(48, 63, 159, 0.25); flex-wrap: wrap; }
.leave-entitlement-calc .lent-headline-result .headline-label { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.92; }
.leave-entitlement-calc .lent-headline-result .headline-value { font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }

/* RESULT LIST (receipt-style) */
.leave-entitlement-calc .lent-result-list { list-style: none; margin: 0 0 1.25rem; padding: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.leave-entitlement-calc .lent-result-list li { display: flex; justify-content: space-between; align-items: baseline; padding: 0.9rem 1.25rem; border-bottom: 1px solid #f1f5f9; gap: 1.25rem; }
.leave-entitlement-calc .lent-result-list li:last-child { border-bottom: none; }
.leave-entitlement-calc .lent-result-list li:nth-child(odd) { background: #fafbfc; }
.leave-entitlement-calc .lent-result-list .r-label { color: #475569; font-weight: 600; font-size: 0.95rem; }
.leave-entitlement-calc .lent-result-list .r-value { color: #1e293b; font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }

/* SUB-TABS */
.leave-entitlement-calc .lent-subtabs { display: flex; gap: 0.5rem; margin: 0 0 1rem; flex-wrap: wrap; }
.leave-entitlement-calc .lent-subtab { padding: 0.55rem 1.1rem; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; color: #475569; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; transition: all 0.18s; font-family: inherit; }
.leave-entitlement-calc .lent-subtab:hover { border-color: var(--cat-bg); color: var(--cat-bg); background: #fff; }
.leave-entitlement-calc .lent-subtab.active { background: var(--cat-bg); border-color: var(--cat-bg); color: #fff; box-shadow: 0 2px 8px rgba(48, 63, 159, 0.18); }
.leave-entitlement-calc .lent-subpane[hidden] { display: none; }

/* TABLES */
.leave-entitlement-calc .lent-grid { overflow: auto; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.leave-entitlement-calc .lent-table { border-collapse: collapse; width: 100%; }
.leave-entitlement-calc .lent-table th, .leave-entitlement-calc .lent-table td { border: 1px solid #f1f5f9; padding: 7px 10px; text-align: center; font-size: 0.86rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.leave-entitlement-calc .lent-table th { background: #f8fafc; font-weight: 700; color: #475569; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.leave-entitlement-calc .lent-rowhead { background: #f8fafc !important; font-weight: 700; text-align: left; min-width: 110px; color: #1e293b; }

/* SEGMENT colors — sadece izin günleri */
.leave-entitlement-calc .lent-th-seg.lent-seg1 { background: #dbeafe; color: #1e40af; }
.leave-entitlement-calc .lent-th-seg.lent-seg2 { background: #fed7aa; color: #9a3412; }
.leave-entitlement-calc .lent-th-seg.lent-seg3 { background: #e9d5ff; color: #6b21a8; }
.leave-entitlement-calc .lent-cell-seg.lent-seg1 { background: #eff6ff; }
.leave-entitlement-calc .lent-cell-seg.lent-seg2 { background: #fff7ed; }
.leave-entitlement-calc .lent-cell-seg.lent-seg3 { background: #faf5ff; }
.leave-entitlement-calc .lent-list-table .lent-cell-seg { font-weight: 700; }

/* ACTIONS */
.leave-entitlement-calc .calc-actions-row { display: flex; gap: 10px; margin-top: 1.25rem; flex-wrap: wrap; justify-content: center; }
.leave-entitlement-calc .calc-btn-action { background: #fff; color: #475569 !important; border: 1px solid #e2e8f0; padding: 0.7rem 1.4rem; font-size: 0.92rem; font-weight: 700; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; transition: all 0.15s; }
.leave-entitlement-calc .calc-btn-action:hover { border-color: var(--cat-bg); color: var(--cat-bg) !important; background: #f8fafc; }
.leave-entitlement-calc .calc-btn-action i { color: inherit; }

/* DISCLAIMER */
.leave-entitlement-calc .calc-disclaimer-box { margin-top: 1.25rem; padding: 12px 16px; background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px; font-size: 0.86rem; color: #5d4037; line-height: 1.55; }
.leave-entitlement-calc .calc-disclaimer-box strong { display: block; margin-bottom: 4px; color: #b45309; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .leave-entitlement-calc .lent-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .leave-entitlement-calc .lent-row { grid-template-columns: 1fr; }
}
