/* ================================================================
   Payroll Module — Styles  (حقوق و دستمزد)
================================================================ */

/* ── Period card ─────────────────────────────────────────────── */
.payroll-period-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    transition: border-color .2s, box-shadow .2s;
}

.payroll-period-card:hover {
    border-color: #a78bfa;
    box-shadow: 0 4px 20px rgba(124, 58, 237, .1);
}

/* ── Component type badges ───────────────────────────────────── */
.payroll-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.payroll-type-badge--earn {
    background: #dcfce7;
    color: #166534;
}

.payroll-type-badge--ded {
    background: #fee2e2;
    color: #991b1b;
}

/* ── Comp assign button on entity card ───────────────────────── */
.payroll-comp-btn {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
}

.payroll-comp-btn:hover {
    background: #dbeafe;
    border-color: #2563eb;
}

/* ── Slip table rows ─────────────────────────────────────────── */
.payroll-slip-row { cursor: pointer; transition: background .15s; }
.payroll-slip-row:hover td { background: #f5f3ff !important; }

/* ── Print slip modal extras ─────────────────────────────────── */
.payroll-slip-header {
    text-align: center;
    padding: 16px 0 12px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 16px;
}

.payroll-slip-header__title {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
}

.payroll-slip-header__sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* ── Net salary highlight ────────────────────────────────────── */
.payroll-net-row td {
    font-size: 15px !important;
    font-weight: 800 !important;
    border-top: 2px solid #2563eb;
    padding-top: 12px !important;
}

.payroll-net-row td:last-child { color: #2563eb !important; }
