body.login-page { background: linear-gradient(135deg, #0d3b66 0%, #0d6efd 100%); }
.login-tooth { font-size: 54px; color: #fff; }
.login-titulo { color: #fff; font-size: 26px; font-weight: 300; }

.wrapper { min-height: 100vh; }
.content-module { padding: 15px; }

#loading-overlay { display: none; position: fixed; inset: 0; background: rgba(255,255,255,.55); z-index: 99999; justify-content: center; align-items: center; }
body.modo-suspendido .main-sidebar .nav-item:not(.item-suscripcion), body.modo-suspendido .main-sidebar .nav-header, body.modo-suspendido #buscador_global { display: none !important; }
.instrucciones-pago { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 12px 14px; font-family: var(--font-mono, monospace); font-size: 13.5px; }

.form-required::after { content: " *"; color: #dc3545; }
.btn-xs { padding: .1rem .4rem; font-size: .75rem; line-height: 1.4; border-radius: .2rem; }
.card-stat { border-left: 4px solid #28a745; }
.card-stat.egreso { border-left-color: #dc3545; }
.card-stat.resultado { border-left-color: #0d6efd; }
.monto-ingreso { color: #28a745; font-weight: 600; }
.monto-egreso { color: #dc3545; font-weight: 600; }
.fila-anulada td { text-decoration: line-through; opacity: .55; }
.fila-anulada td:last-child, .fila-anulada td:nth-last-child(2) { text-decoration: none; }
.leyenda-color { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.text-pink { color: #e83e8c; }
.card-pink.card-outline { border-top: 3px solid #e83e8c; }
.thumb-adjunto { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; margin: 4px; background: #f8f9fa; }
.select2-container--bootstrap4 .select2-selection { min-height: calc(1.5em + .75rem + 2px); }
.navbar #buscador_global + .select2-container .select2-selection { min-height: 31px; }

/* Agenda */
#calendario { min-height: 500px; }
.fc .fc-event { cursor: pointer; }
.fc-cita { font-size: 11.5px; line-height: 1.25; overflow: hidden; padding: 1px 2px; }
.fc-event.cita-atendida { opacity: .55; }
.fc-event.cita-no_asistio { opacity: .5; text-decoration: line-through; }
.fc-event.cita-cancelada { opacity: .35; text-decoration: line-through; }
.fc-event.cita-confirmada { box-shadow: inset 4px 0 0 #fff; }
.fc-event.cita-reprogramar { outline: 2px dashed #ffc107; }
.fc-event.cita-en_atencion { outline: 2px solid #ffc107; }

/* Odontograma anatómico */
.odo-panel { background: #f8fafc; border: 1px solid #e3e8ef; border-radius: 10px; padding: 10px 12px; }
.odo-grupo { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; }
.odo-grupo-titulo { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #6b7785; width: 110px; }
.odo-chip { display: inline-flex; align-items: center; border: 1px solid #d5dce5; background: #fff; color: #334155; border-radius: 999px; padding: 3px 10px 3px 8px; font-size: 12.5px; line-height: 1.4; cursor: pointer; transition: all .12s; }
.odo-chip:hover { border-color: #94a3b8; background: #f1f5f9; }
.odo-chip.activo { background: #1e293b; border-color: #1e293b; color: #fff; }
.odo-segmento { display: inline-flex; border: 1px solid #d5dce5; border-radius: 8px; overflow: hidden; background: #fff; }
.odo-segmento button { border: 0; background: transparent; padding: 5px 12px; font-size: 13px; color: #334155; display: inline-flex; align-items: center; cursor: pointer; }
.odo-segmento button + button { border-left: 1px solid #d5dce5; }
.odo-segmento button.activo { background: #e8f0fe; color: #0b3d91; font-weight: 600; }
.odo-segmento-sm button { padding: 4px 10px; font-size: 12px; }
.odo-punto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.odo-wrap { overflow-x: auto; background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 6px 4px; }
#odo_svg { min-width: 760px; display: block; }
.odo-leyenda { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: #475569; margin-top: 6px; align-items: center; }
.odo-estado { color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 11.5px; white-space: nowrap; }
.odo-tabla { max-height: 320px; overflow: auto; border: 1px solid #e3e8ef; border-radius: 8px; }
.odo-tabla thead th { position: sticky; top: 0; background: #f8fafc; z-index: 1; }
#odo_svg .odo-corona { fill: url(#odo_esmalte); stroke: #9c8f78; stroke-width: 1.1; }
#odo_svg .odo-raiz { fill: url(#odo_raiz); stroke: #a8987a; stroke-width: 1; }
#odo_svg .odo-ausente { opacity: .22; }
#odo_svg .odo-diente-click { cursor: pointer; }
#odo_svg .odo-diente-click:hover .odo-corona, #odo_svg .odo-diente-click:hover .odo-raiz { stroke: #1f6fd1; stroke-width: 1.6; }
#odo_svg .odo-cara { fill: #fff; stroke: #7b8794; stroke-width: .9; cursor: pointer; transition: fill .1s; }
#odo_svg .odo-cara:hover { fill: #dbeafe; }
#odo_svg .odo-recuadro { fill: #fff; stroke: #b6c0cc; stroke-width: .8; }
#odo_svg .odo-sigla { font-size: 8.5px; font-weight: 700; letter-spacing: .02em; }
#odo_svg .odo-num { font-size: 11px; font-weight: 600; fill: #475569; }
#odo_svg .odo-num.con-hallazgos { fill: #0f172a; font-weight: 800; }
#odo_svg .odo-cuadrante { font-size: 10px; fill: #94a3b8; letter-spacing: .03em; }
#odo_svg .odo-linea-media { stroke: #cbd5e1; stroke-width: 1; stroke-dasharray: 4 4; }

.ficha-tabs .nav-link { padding: .5rem .75rem; font-size: .92rem; }

/* Impresión */
#print_area { display: none; }

html, body { max-width: 100%; overflow-x: hidden; }
.content-wrapper { max-width: 100%; overflow-x: hidden; }
.card-header.d-flex { flex-wrap: wrap; row-gap: 8px; }
.card-header.d-flex > .card-title { margin-right: 8px; }

@media (max-width: 575.98px) {
	.content-module { padding: 8px; }
	.dataTables_filter input { width: 100%; margin-left: 0 !important; }
	.dt-buttons { display: flex; flex-wrap: wrap; gap: 4px; }
	.form-control, .form-control-sm, .custom-select { font-size: 16px !important; }
	table.table td .btn-sm { min-width: 32px; min-height: 32px; }
}
@media (max-width: 767.98px) {
	.modal-dialog { margin: .5rem; max-width: calc(100% - 1rem); }
	.modal-body { max-height: calc(100vh - 190px); overflow-y: auto; }
}

@media print {
	@page { margin: 12mm; }
	body > *:not(#print_area) { display: none !important; }
	#print_area { display: block !important; }
	.print-doc { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000; }
	.print-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #0d3b66; padding-bottom: 6px; margin-bottom: 12px; }
	.print-empresa { font-size: 17px; font-weight: 700; color: #0d3b66; }
	.print-sub { font-size: 10.5px; color: #555; }
	.print-titulo { font-size: 14px; font-weight: 700; text-align: right; }
	.print-tabla { width: 100%; border-collapse: collapse; margin: 8px 0; }
	.print-tabla th, .print-tabla td { border: 1px solid #999; padding: 4px 6px; font-size: 11px; text-align: left; vertical-align: top; }
	.print-tabla thead th { background: #e9ecef !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.print-tabla .r { text-align: right; }
	.print-texto { font-size: 12.5px; line-height: 1.6; text-align: justify; }
	.print-firma { margin: 60px auto 0; width: 260px; border-top: 1px solid #000; text-align: center; padding-top: 4px; }
	.print-firmas { display: flex; justify-content: space-around; margin-top: 70px; }
	.print-firmas > div { width: 40%; border-top: 1px solid #000; text-align: center; padding-top: 4px; position: relative; }
	.print-firmas .huella { position: absolute; right: -70px; top: -70px; width: 55px; height: 65px; border: 1px solid #000; font-size: 9px; display: flex; align-items: flex-end; justify-content: center; }
	.print-odo svg { width: 100% !important; min-width: 0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.print-odo .odo-corona { fill: #fffdf8; stroke: #6b5f4a; stroke-width: 1.1; }
	.print-odo .odo-raiz { fill: #f3ead6; stroke: #6b5f4a; stroke-width: 1; }
	.print-odo .odo-ausente { opacity: .25; }
	.print-odo .odo-cara { fill: #fff; stroke: #333; stroke-width: .9; }
	.print-odo .odo-recuadro { fill: #fff; stroke: #666; stroke-width: .8; }
	.print-odo .odo-sigla { font-size: 8.5px; font-weight: 700; }
	.print-odo .odo-num { font-size: 11px; font-weight: 700; }
	.print-odo .odo-cuadrante { font-size: 10px; fill: #666; }
	.print-odo .odo-linea-media { stroke: #999; stroke-dasharray: 4 4; }
	.rx-simbolo { font-size: 26px; font-weight: 700; font-style: italic; margin: 8px 0; }
	.rx-item { margin: 0 0 10px 10px; }
}
