* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #f5f6f8;
    color: #1f2430;
    margin: 0;
}
header {
    background: #1f2430;
    color: white;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header a { color: white; text-decoration: none; }
header .brand { font-weight: 600; }
main { max-width: 1100px; margin: 24px auto; padding: 0 16px; }

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.login-card { max-width: 360px; margin: 80px auto; }

.flash {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.summary { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pill {
    background: #eef0f4;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
}

form.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
form.inline label { display: flex; flex-direction: column; font-size: 12px; color: #555; gap: 4px; }
input, select {
    padding: 7px 10px;
    border: 1px solid #d5d8de;
    border-radius: 6px;
    font-size: 14px;
}
button {
    background: #2d5bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
button.secondary { background: #6b7280; }
button:hover { opacity: 0.9; }
.btn-link {
    background: #2d5bff;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    display: inline-block;
}
.btn-link:hover { opacity: 0.9; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; vertical-align: top; }
th { background: #fafbfc; font-weight: 600; }
tr:hover { background: #fafbfc; }

.status-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.status-pendiente { background: #e0e7ff; color: #3730a3; }
.status-contactado { background: #fef3c7; color: #92400e; }
.status-volver_a_contactar { background: #d1fae5; color: #065f46; }
.status-no_interesado { background: #fee2e2; color: #991b1b; }

#job-banner {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.edit-row td { background: #fbfbfe; }

.lead-row { border-bottom: 1px solid #eee; padding: 12px 0; }
.lead-row:last-child { border-bottom: none; }
.lead-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.lead-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lead-meta { color: #6b7280; font-size: 13px; }
.quick-status select { font-size: 13px; padding: 5px 8px; }
.lead-row details { margin-top: 6px; }
.lead-row summary {
    cursor: pointer;
    font-size: 13px;
    color: #2d5bff;
    list-style: none;
}
.lead-row summary::-webkit-details-marker { display: none; }
