/* ===== BASE ===== */

body {
	font-size: 14px;
}

/* ===== BLOQUES ===== */

.card-debug {
	background: #ffffff;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	padding: 15px;
	margin-bottom: 20px;
}

/* ===== TITULOS ===== */

h1, h2, h3 {
	font-weight: 600;
	margin-bottom: 15px;
}

/* ===== TABLAS ===== */

.table {
	font-size: 13px;
}

.table th {
	background: #f1f3f5;
	font-weight: 600;
}

/* ===== FORMULARIOS ===== */

input, select {
	font-size: 14px !important;
}

/* ===== BOTONES ===== */

.btn {
	font-size: 13px;
}

/* ===== LINKS ===== */

a {
	text-decoration: none;
}

/* ===== DEBUG VISUAL (opcional) */

.debug-box {
	border: 1px dashed #ccc;
	padding: 10px;
}
/* ===== LAYOUT ===== */

.layout {
	display: flex;
	min-height: 100vh;
}

/* ===== SIDEBAR ===== */

.sidebar {
	width: 220px;
	background: #212529;
	color: #fff;
	padding: 15px;
}

.sidebar h4 {
	font-size: 16px;
	margin-bottom: 20px;
}

.sidebar a {
	display: block;
	color: #adb5bd;
	padding: 8px 10px;
	border-radius: 4px;
	margin-bottom: 5px;
	font-size: 14px;
}

.sidebar a:hover {
	background: #343a40;
	color: #fff;
}

/* ===== CONTENT ===== */

.content {
	flex: 1;
	background: #f8f9fa;
	padding: 0px;
}

.content-box {
	padding: 0px 15px;
}

/* ===== HEADER TOP ===== */

.topbar {
	background: #2258c0;
	border-bottom: 1px solid #dee2e6;
	padding: 10px 10px;
	margin-bottom: 20px;
}

/* ===== DEBUG CARDS ===== */

.card-debug {
	background: #fff;
	border: 1px solid #dee2e6;
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 6px;
}
/* login */

body.login-page {
	background: #f1f3f5;
}
/* TOPBAR MEJORADA */

.topbar strong {
	font-size: 15px;
}

.dropdown-menu {
	font-size: 13px;
	min-width: 220px;
}
/* Card principal */
.v2-card-main {
	background: #f8f9fb;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #e5e7eb;
}

/* Subcards */
.v2-subcard {
	background: #fdd53b;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 16px;
	border: 1px solid #eef0f3;
	box-shadow: 0 1px 2px rgba(0,0,0,0.03);
	color: white;
}

/* Subcards */
.v2-subcard-cliente {
	background: #302af4;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 16px;
	border: 1px solid #eef0f3;
	box-shadow: 0 1px 2px rgba(0,0,0,0.03);
	color: white;
}

/* Títulos */
.v2-section-title {
	font-size: 0.9rem;
	font-weight: 700;
	color: #66ff3b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 12px;
}

/* Tabla sobre fondo oscuro */
.v2-table {
	color: white;
}

.v2-table thead th {
	border-bottom: 1px solid rgba(255,255,255,0.2);
	font-size: 0.8rem;
	text-transform: uppercase;
	color: #cbd5e1;
}

.v2-table td {
	border-top: 1px solid rgba(255,255,255,0.08);
	vertical-align: middle;
}

/* Hover filas */
.v2-table tbody tr:hover {
	background: rgba(255,255,255,0.05);
}

/* Badges */
.v2-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 600;
}

.v2-badge-ok {
	background: #22c55e;
	color: white;
}

.v2-badge-off {
	background: #ef4444;
	color: white;
}

.v2-badge-role {
	background: #1e293b;
	color: #93c5fd;
}
.v2-badge-warning {
	background: #ffc107;
	color: #212529;
}
.v2-badge-info {
	background: #dbeafe;
	color: #1f2937;
}
.v2-badge-dark {
	background-color: #000;
	color: #fff;
}

.v2-badge-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	padding: 4px 6px;
	font-size: 12px;
	line-height: 1;

	border: 1px solid #cbd5e1; /* gris suave */
	border-radius: 6px;

	background: transparent;
	color: #334155; /* gris oscuro elegante */

	cursor: help;
	transition: all 0.15s ease;
}

.v2-badge-outline:hover {
	background: #f1f5f9; /* hover suave */
	border-color: #94a3b8;
}

.v2-badge-outline.data {
	border-color: #f87171;
	color: #b91c1c;
}

.v2-badge-outline.contract {
	border-color: #60a5fa;
	color: #1d4ed8;
}

.v2-badge-outline.credit {
	border-color: #fbbf24;
	color: #b45309;
}

.v2-badge-outline.users {
	border-color: #34d399;
	color: #047857;
}

/* Links */
.v2-link {
	color: #93c5fd;
	text-decoration: none;
}

.v2-link:hover {
	text-decoration: underline;
}
/* Tabla base */
.v2-table {
	background: #f9fafb;
	color: #1f2937;
	border-radius: 8px;
	overflow: hidden;
}

/* Cabecera */
.v2-table thead th {
	background: #2f3a8f; /* azul oscuro elegante */
	border-bottom: 1px solid #1e293b;
	font-size: 0.75rem;
	text-transform: uppercase;
	color: #f1f5f9; /* casi blanco */
	letter-spacing: 0.5px;
	box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
}

.v2-table thead th:first-child {
	border-top-left-radius: 8px;
}

.v2-table thead th:last-child {
	border-top-right-radius: 8px;
}

/* Celdas */
.v2-table td {
	border-top: 1px solid #eef0f3;
	vertical-align: middle;
}

/* Filas alternas */
.v2-table tbody tr:nth-child(odd) {
	background: #ffffff;
}

.v2-table tbody tr:nth-child(even) {
	background: #f7f9fc;
}

/* Hover */
.v2-table tbody tr:hover {
	background: rgba(62, 75, 179, 0.08);
	transition: background 0.15s ease;
}

/* Badges nuevos */
.v2-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 0.7rem;
	font-weight: 600;
	margin-right: 4px;
}

.v2-badge-info {
	background: #0ea5e9;
	color: white;
}

.v2-badge-new {
	background: #22c55e;
	color: white;
}
.sortable {
	cursor: pointer;
	user-select: none;
}

.sort-icon {
	font-size: 0.7rem;
	margin-left: 5px;
	opacity: 0.6;
}

.sortable:hover .sort-icon {
	opacity: 1;
}
#tableSearch {
	border-radius: 6px;
	border: 1px solid #d1d5db;
}

#tableSearch:focus {
	border-color: #3e4bb3;
	box-shadow: 0 0 0 2px rgba(62, 75, 179, 0.15);
}
.v2-row-clickable {
	cursor: pointer;
	transition: background 0.15s ease;
}

.v2-row-clickable:hover {
	background: rgba(62, 75, 179, 0.12) !important;
}
.v2-field {
	padding: 4px 6px;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.v2-field:hover {
	background: rgba(255,255,255,0.15);
}

.v2-field.editing {
	background: white;
	color: black;
}
.v2-toggle {
	cursor: pointer;
	opacity: 0.6;
}

.v2-toggle.active {
	opacity: 1;
	background: #22c55e;
}