/* ---- Pantalla de login / acceso ---- */
.dbf-auth {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
}
.dbf-auth-card {
	width: 100%;
	max-width: 380px;
	background: #fff;
	border: 1px solid #e4e4e7;
	border-radius: 14px;
	padding: 32px 28px;
	box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.dbf-auth-title { margin: 0 0 4px; font-size: 24px; }
.dbf-auth-sub { margin: 0 0 20px; color: #6b7280; font-size: 14px; }
.dbf-auth-error {
	background: #fdecec;
	border: 1px solid #f5b5b5;
	color: #9b1c1c;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 16px;
}
.dbf-auth-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 14px;
}
.dbf-auth-form input[type="text"],
.dbf-auth-form input[type="password"] {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	box-sizing: border-box;
}
.dbf-auth-remember {
	font-weight: 400 !important;
	display: flex !important;
	align-items: center;
	gap: 6px;
}
.dbf-auth-btn {
	display: inline-block;
	width: 100%;
	text-align: center;
	background: #111827;
	color: #fff;
	border: 0;
	padding: 12px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	margin-top: 4px;
}
.dbf-auth-btn:hover { background: #1f2937; }
.dbf-auth-foot { text-align: center; margin: 16px 0 0; font-size: 13px; }

/* ---- App en el front ---- */
.dbf-front { max-width: 1100px; margin: 0 auto; }
.dbf-front-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0 16px;
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 20px;
	font-size: 14px;
}
.dbf-front-logout { color: #b32d2e; text-decoration: none; }
.dbf-front-logout:hover { text-decoration: underline; }

/* ---- Pestañas ---- */
.dbf-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e5e7eb; margin: 16px 0 20px; }
.dbf-tab {
	background: none; border: 0; padding: 10px 16px; cursor: pointer;
	font-size: 15px; color: #6b7280; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.dbf-tab.is-active { color: #111827; font-weight: 600; border-bottom-color: #111827; }
.dbf-pane { display: none; }
.dbf-pane.is-active { display: block; }

/* ---- Formulario de perfil ---- */
.dbf-fs { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; }
.dbf-fs legend { font-weight: 600; padding: 0 6px; color: #374151; }
.dbf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.dbf-field { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; color: #374151; }
.dbf-field span { margin-bottom: 4px; }
.dbf-field em { font-weight: 400; color: #9ca3af; }
.dbf-field input, .dbf-field select, .dbf-field textarea {
	padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; font-weight: 400;
}
.dbf-field input[readonly] { background: #f3f4f6; color: #6b7280; }

/* ---- Acciones de fila ---- */
.dbf-rowactions .button-link { background: none; border: 0; cursor: pointer; color: #2563eb; padding: 0; font-size: 13px; }
.dbf-rowactions .dbf-danger { color: #b32d2e; }

/* ---- Avisos import ---- */
.dbf-warn { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 8px 12px; border-radius: 8px; margin-bottom: 10px; }
.dbf-ok { background: #ecfdf3; border: 1px solid #a7f3d0; color: #065f46; padding: 8px 12px; border-radius: 8px; margin: 10px 0; }

/* ---- Tabla de resultados con scroll lateral ---- */
.dbf-tablewrap {
	width: 100%;
	overflow-x: auto;          /* barra de desplazamiento horizontal si no cabe */
	-webkit-overflow-scrolling: touch;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin-top: 8px;
}
.dbf-table {
	width: auto;               /* que la tabla crezca según su contenido */
	min-width: 100%;           /* pero al menos ocupe todo el ancho disponible */
	border-collapse: collapse;
	margin: 0;
}
.dbf-table th, .dbf-table td {
	white-space: nowrap;       /* evita que las celdas se partan en varias líneas */
	padding: 8px 12px;
	vertical-align: top;
}
/* La columna Currículum/Position puede ser larga: permitir que envuelva */
.dbf-table td.dbf-wrap-cell {
	white-space: normal;
	min-width: 260px;
	max-width: 360px;
}

/* ---- Modal de ficha de candidato ---- */
.dbf-modal-backdrop {
	position: fixed; inset: 0; background: rgba(0,0,0,.5);
	display: flex; align-items: flex-start; justify-content: center;
	padding: 40px 16px; z-index: 99999; overflow-y: auto;
}
.dbf-modal {
	background: #fff; border-radius: 12px; width: 100%; max-width: 640px;
	box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.dbf-modal-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 20px; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; background: #fff; border-radius: 12px 12px 0 0;
}
.dbf-modal-head h2 { margin: 0; font-size: 18px; }
.dbf-modal-close {
	background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #6b7280;
}
.dbf-modal-body { padding: 16px 20px 24px; }
.dbf-modal-body h3 {
	margin: 18px 0 6px; font-size: 14px; text-transform: uppercase;
	letter-spacing: .04em; color: #6b7280;
}
.dbf-detail-table { width: 100%; border-collapse: collapse; }
.dbf-detail-table th {
	text-align: left; width: 40%; padding: 6px 10px 6px 0; vertical-align: top;
	color: #374151; font-weight: 600; font-size: 14px;
}
.dbf-detail-table td {
	padding: 6px 0; vertical-align: top; font-size: 14px; color: #111827;
	border-bottom: 1px solid #f3f4f6;
}
