.nolink {
    text-decoration: none;
    color: inherit;
	outline: none;
}

.nolink:hover,
.nolink:focus,
.nolink:active {
    text-decoration: none;
    color: inherit;
	outline: none;
}

.btn:focus,
.btn:active:focus {
	outline: none !important;
}
/* Efecto btn-animated del proyecto ERP, aplicado también a botones dinámicos. */
.btn,
.btn-animated {
    transition: all ease-in-out 0.2s;
    cursor: pointer;
}

.btn:not(:disabled):not(.disabled):hover,
.btn-animated:not(:disabled):not(.disabled):hover {
    border-color: rgba(0, 0, 0, 0.25);
    filter: brightness(90%);
}

/* Modales: estructura, campos y encabezados compartidos con ERP. */
.header-danger {
	background: #D9534F;
	color: white;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
}

.header-success {
	background: #5CB85C;
	color: white;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
}

.header-primary {
	background: #337AB7;
	color: white;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
}

.header-info {
	background: #5BC0DE;
	color: white;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
}

.header-warning {
	background: #F0AD4E;
	color: white;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
}

/* Contenedor del modal */

.modal .modal-dialog {
	margin: 15px auto;
}

/* Estructura principal */

.modal .modal-content {
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 30px);
	overflow: hidden;
}

/* Encabezado fijo */

.modal .modal-header {
	flex: 0 0 auto;
}

/* Cuerpo con scroll independiente */

.modal .modal-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* Pie fijo con los botones */

.modal .modal-footer {
	flex: 0 0 auto;
	padding: 10px 15px;
}

/* =====================================================
   FORMULARIOS QUE ENVUELVEN EL MODAL
===================================================== */

.modal .modal-content > form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.modal .modal-content > form > .modal-header {
    flex: 0 0 auto;
}

.modal .modal-content > form > .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal .modal-content > form > .modal-footer {
    flex: 0 0 auto;
}

/* =====================================================
   PANTALLAS PEQUEÑAS
===================================================== */

@media (max-width: 767px) {

	.modal .modal-dialog {
		width: auto;
		max-width: none;
		margin: 10px;
	}

	.modal .modal-content {
		max-height: calc(100vh - 20px);
	}

	.modal .modal-body {
		padding: 10px 12px;
	}

}

/* =====================================================
   CONFIGURACIÓN GENERAL DE LOS CAMPOS DE LOS MODALES
===================================================== */

.modal .modal-body .form-group {
	margin-bottom: 8px;
}

.modal .modal-body .row {
	margin-bottom: 0;
}

.modal .modal-body label {
	display: block;
	margin-bottom: 3px;
	font-weight: 600;
	font-size: 12px;
}

/* =====================================================
   LABELS DE CAMPOS OBLIGATORIOS
===================================================== */

.modal .modal-body .form-group:has(input[required]) > label,
.modal .modal-body .form-group:has(select[required]) > label,
.modal .modal-body .form-group:has(textarea[required]) > label {
    color: #D9534F;
}

.modal .modal-body .form-group:has(input[required]) > label::after,
.modal .modal-body .form-group:has(select[required]) > label::after,
.modal .modal-body .form-group:has(textarea[required]) > label::after {
    content: " (*)";
    color: #D9534F;
}

.modal .modal-body .form-control {
	height: 30px;
	padding: 4px 8px;
	font-size: 13px;
}

.modal .modal-body textarea.form-control {
	height: auto;
	min-height: 48px;
	resize: none;
}

.modal .modal-body .input-group-addon {
	height: 30px;
}

/* =====================================================
   SEPARADORES
===================================================== */

.modal .modal-body hr {
	margin: 8px 0;
}


.modal .modal-header {
     padding: 10px 15px;
}

.modal-header-flex {
    display: flex;
}

.modal-header-flex .modal-header-icon {
    font-size: 18px;
}

.modal-header-flex .modal-title {
    flex: 1;
    text-align: center;
}


.modal .modal-body .checkbox label,
.modal .modal-body .radio label { font-weight: normal; }
.modal-footer-center { text-align: center !important; }

/* Selector de fecha con icono interior, igual a ERP. */
.selector-fecha-erp {
	position: relative;
	width: 100%;
}

.selector-fecha-erp > .form-control {
	min-width: 0;
	width: 100%;
	padding-right: 30px;
}


.selector-fecha-erp-icono {
	position: absolute;
	top: 1px;
	right: 1px;
	bottom: 1px;
	width: 28px;
	padding: 0;
	border: 0;
	border-radius: 0 4px 4px 0;
	background: transparent;
	color: #777;
	font-size: 12px;
	line-height: 1;
	z-index: 2;
	cursor: pointer;
}

.selector-fecha-erp-icono:hover,
.selector-fecha-erp-icono:focus {
	color: #333;
}

.selector-fecha-erp-icono:focus-visible {
	outline: 1px solid #66afe9;
	outline-offset: -4px;
}

.selector-fecha-erp-icono:disabled {
	color: #aaa;
	cursor: default;
}



/* Espaciado uniforme del encabezado y los paneles principales. */
.header .panel,
.main-content > .container-fluid > .panel,
.main-content > .container-fluid > .row > [class*="col-"] > .panel {
    margin-bottom: 10px;
}

/* Las vistas ajustadas reservan espacio real para encabezado y footer. */
body.vista-grid-ajustado { height: auto; min-height: 100vh; }
body.vista-grid-ajustado > .header,
body.vista-grid-ajustado > .footer-importacion { flex-shrink: 0; }
body.vista-grid-ajustado > .main-content { flex: 1 0 auto; }
/* Separación inferior de página igual a Micronauta. */
body { padding-bottom: 10px; }

.sftp-acciones { margin-bottom: 10px; }
.sftp-archivos { max-height: 280px; overflow: auto; }
.sftp-empresa .panel-heading { display: flow-root; }

.sftp-carpeta + .sftp-carpeta { margin-top: 4px; }
.sftp-carpeta summary, .sftp-avisos summary { cursor: pointer; }
.sftp-avisos ul { margin: 4px 0 0; }
#modalConsultaSftp .modal-body { padding: 8px 12px; }
#modalConsultaSftp .sftp-acciones { margin-bottom: 6px; }
#modalConsultaSftp .sftp-empresa { margin-bottom: 6px; }
#modalConsultaSftp .sftp-empresa:last-child { margin-bottom: 0; }
#modalConsultaSftp .sftp-empresa > .panel-heading { padding: 5px 8px; }
#modalConsultaSftp .sftp-empresa > .panel-body { padding: 5px 8px; }
#modalConsultaSftp .sftp-empresa .panel-title { font-size: 14px; line-height: 22px; }
#modalConsultaSftp .sftp-archivos { max-height: 150px; margin: 4px 0 0; }
#modalConsultaSftp .sftp-archivos table { margin-bottom: 0; }
#modalConsultaSftp .sftp-importacion p { margin: 4px 0 0; }

.ag-row:not(.ag-row-pinned) {
    border-bottom-style: dashed;
}

.sftp-progress-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 6px;
    vertical-align: -0.12em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: sftp-girar 0.75s linear infinite;
}

@keyframes sftp-girar {
    to { transform: rotate(360deg); }
}

.moneda-wrapper {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	width: 100%;
	min-width: 0;
}

.moneda-signo {
	flex-shrink: 0;
	width: 10px;
	text-align: left;
	opacity: .8;
}

.moneda-valor {
	flex: 1;
	min-width: 0;
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Calendario de los filtros */
.datepicker-dropdown {
    padding: 10px;
    border: 1px solid #c7d8e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    color: #333;
    font-family: inherit;
}
.datepicker-dropdown table { border-collapse: separate; border-spacing: 3px; }
.datepicker-dropdown table tr th,
.datepicker-dropdown table tr td { width: 34px; height: 32px; border-radius: 4px; }
.datepicker-dropdown .datepicker-switch { font-weight: 600; text-transform: capitalize; }
.datepicker-dropdown thead tr:nth-child(2) th {
    background: #337ab7;
    color: #fff;
    height: 36px;
}
.datepicker-dropdown thead tr:nth-child(2) th:hover { background: #286090; }
.datepicker-dropdown .dow { color: #777; font-size: 11px; font-weight: 600; }
.datepicker-dropdown table tr td.old,
.datepicker-dropdown table tr td.new { color: #aaa; }
.datepicker-dropdown table tr td.day:hover { background: #d9edf7; }
/* Calendarios con semana de lunes a domingo. */
.datepicker-dropdown .datepicker-days .dow:nth-child(6) { color: #8a6d3b; }
.datepicker-dropdown .datepicker-days .dow:nth-child(7) { color: #a94442; }
.datepicker-dropdown .datepicker-days tbody tr td.day:nth-child(6):not(.active) {
    background: #fff3cd;
    background-image: none;
    color: #856404;
}
.datepicker-dropdown .datepicker-days tbody tr td.day:nth-child(7):not(.active) {
    background: #f8d7da;
    background-image: none;
    color: #a94442;
}
.datepicker-dropdown .datepicker-days tbody tr td.day:nth-child(6):not(.active):hover { background: #ffe69c; }
.datepicker-dropdown .datepicker-days tbody tr td.day:nth-child(7):not(.active):hover { background: #f1bfc4; }
.datepicker-dropdown .datepicker-days tbody tr td.day.old:not(.active),
.datepicker-dropdown .datepicker-days tbody tr td.day.new:not(.active) { color: #aaa; }
.datepicker-dropdown table tr td.today,
.datepicker-dropdown table tr td.today:hover {
    background: #e8f2fa;
    background-image: none;
    color: #286090;
    box-shadow: inset 0 0 0 1px #90b9db;
}
.datepicker-dropdown table tr td.active,
.datepicker-dropdown table tr td.active:hover,
.datepicker-dropdown table tr td.active.active {
    background: #337ab7;
    background-image: none;
    color: #fff;
    text-shadow: none;
    box-shadow: none;
}
.datepicker-dropdown tfoot th { color: #337ab7; border-top: 1px solid #e5edf3; }
.datepicker-dropdown .prev .glyphicon,
.datepicker-dropdown .next .glyphicon { font-size: 11px; }
.datepicker-dropdown table tr td span.active,
.datepicker-dropdown table tr td span.active:hover { background: #337ab7; background-image: none; text-shadow: none; }

.datepicker-dropdown td.day.sube-sabado:not(.active):not(.disabled) {
    background: #fff3cd;
    color: #856404;
}
.datepicker-dropdown td.day.sube-domingo:not(.active):not(.disabled) {
    background: #f8d7da;
    color: #842029;
}
.datepicker-dropdown td.day.sube-sabado:not(.active):not(.disabled):hover { background: #ffe69c; }
.datepicker-dropdown td.day.sube-domingo:not(.active):not(.disabled):hover { background: #f1aeb5; }
