/* ============================================================
   ADS styles - Employees module: Employee Details
   Split out of the former monolithic style.css WITHOUT code changes.
   Files are linked in numeric order (see Core/templates/_styles.html) so
   the cascade is identical to the old single file.
   ============================================================ */

/* ==============================================================
   Employee Details module - additive styles only.
   Append to the end of style.css. Everything else (ts-card,
   ts-form-row, ts-input, ts-select, ts-btn*, exp-toolbar,
   exp-admin-clean-table, exp-admin-sub, exp-admin-empty) already
   exists in the stylesheet and is reused as-is for visual
   consistency with the rest of ADS.
   ============================================================== */

.emp-req {
    color: #dc2626;
}

.emp-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 4px 20px;
}

.emp-subrow {
    margin-bottom: 12px;
    border-left: 3px solid #6366f1;
}

.emp-photo-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.emp-photo-preview,
.emp-photo-placeholder {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.emp-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 28px;
}

.ts-field-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.emp-field-errors:empty {
    display: none;
}

.ts-error-line {
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
}

.ts-error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
}

.ts-success-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 10px 14px;
    border-radius: 8px;
}

.ts-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.ts-tab {
    background: none;
    border: 1px solid transparent;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #4b5563;
}

.ts-tab:hover {
    background: #f3f4f6;
}

.ts-tab.active {
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
    border-color: #c7d2fe;
}

.ts-status-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.ts-status-active {
    background: #dcfce7;
    color: #166534;
}

.ts-status-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.ts-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .emp-form-grid {
        grid-template-columns: 1fr;
    }
    .emp-photo-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
