/** table classes for long lists **/

.table.long-list{
	table-layout:fixed;
}
.long-list-td{
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lead-mailto {
	margin-top: 26px;
}

/** template chat box without padding **/
.chat {
	padding-bottom: initial;
	padding-top: initial !important;
}

/** full screen widget **/
.full-height{
	height: 100% !important;
}

.green-check {
	color: #60c560;
	font-size: 22px;
}

.red-times {
	color: #d9534f !important;
	font-size: 22px;
}

.gray-times {
	color: #aaaaaa !important;
	font-size: 22px;
}

.orange-clock-o {
	color: #f0ad4e !important;
	font-size: 22px;
}

/** dropzone for logical connectors **/

.dropzone {
	position: relative;
	border: 1px solid rgba(0,0,0,0.08);
	background: rgba(0,0,0,0.02);
	min-height: 360px;
	padding: 23px;
}

/* custom tags for profile user */
.tags a{border:1px solid #DDD;display:inline-block;color:#717171;background:#FFF;-webkit-box-shadow:0 1px 1px 0 rgba(180,180,180,0.1);box-shadow:0 1px 1px 0 rgba(180,180,180,0.1);-webkit-transition:all .1s ease-in-out;-moz-transition:all .1s ease-in-out;-o-transition:all .1s ease-in-out;-ms-transition:all .1s ease-in-out;transition:all .1s ease-in-out;border-radius:2px;margin:0 3px 6px 0;padding:5px 10px}

/* change bootstrap navbar collapse breakpoint */

@media (min-width: 768px) and (max-width: 1100px) {
	.navbar-toggle {
		display: initial !important;
	}
	.hidden-creditos-mobile {
		display: none !important;
	}
}

@media (min-width: 1100px) {
	.hidden-user-menu {
		display: none !important;
	}
}

.select-providers {
	width: auto;
}

.verify-btn {
	margin-top: 45px;
}

.ui-draggable {
	z-index: 999;
	background-color: #d2d2d2;
}

/* fix select2 height */
.select2-container {
	height: auto;
}

.select2-selection {
	padding-left: 12px;
}

.select2-container .select2-selection--multiple {
	height: 230px;
	overflow-y: auto;
}

.select2-container.select2-container .select2-selection--multiple {
	border: 1px solid #ccc;
}

.select2-container.select2-container--focus .select2-selection--multiple {
    border-color: #007aff !important;
    box-shadow: none !important;
}

.select2-container .select2-selection--multiple.auto-height {
	height: auto !important;
}

.select2-container .select2-selection--single {
	height: 34px !important;
	text-align: left;
	border: 1px solid #ccc;
}

.select2-container .select2-selection--single .select2-selection__rendered {
	padding-left: 12px;
	padding-top: 2px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 34px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: inherit !important;
}

.tab-pane h2 {
	margin-top: 35px;
}

.featured {
	margin-bottom: 20px;
}

.template-title {
	color: #666666 !important;
}

.btn-template-value {
	margin: 3px;
	padding: 5px !important;
}

tr.group-bg > td {
	background-color: #f0f0f0 !important;
}

.leads-panels-container {
	margin-top: 10px;
}

.step-header-icon {
	padding: 3px;
}

p.step-header-content {
	overflow-wrap: break-word;
}

.identity-checkbox {
	margin-right: 5px !important;
}

.center-block {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.attachment {}
	.attachment-block {
		max-width: 800px;
		max-height: 800px;
		margin: 0 auto;
	}

	.attachment-tag {
		max-width: 800px;
	}

	.attachment-heading {
		padding: 10px 15px;
		border-bottom: 1px solid transparent;
		border-top-left-radius: 3px;
		border-top-right-radius: 3px;
	}

	.attachment-description {
		margin-top: 20px;
	}

	.attachment-created-time {
		font-size: 12px;
	}

li.selected-contact {
	background-color: #e6e6e6;
}

.chat-heading-lead {
	position: relative !important;
}

.chat-widget-content{
	height: 71% !important;
}

.branch-cities-container {
	margin-top: 5px;
	padding: 5px;
	border: 2px dashed #dddddd;
}

.unified-actions {
	margin: 0 16px 0 6px;
}

.clients-table tr.client-information{
	color: #007AFF;
}
.clients-table .subscriptions-table{
	margin-left: 2%;
}

.all-leads-table tr:hover {
	background-color: #eee;
}

.all-leads-date {
	padding-left: 20px !important;
}

.lead-count {
	background-color: #007aff;
	opacity: 0.7;
}

.client-date-p {
	margin: 5px 0 5px 0;
}

/* Custom chat page stile */

.chat.chat-page.leads-chat {
	padding: 0px 0px 140px 222px;
}

.sms-counter {
	padding: 0px 0px 10px 0px;
}

.chat.leads-chat .post-message input[type="submit"] {
	top: 42px;
}

@media (max-width: 600px) {
	.chat.chat-page.leads-chat {
		padding: 0px 0px 0px 0px;
	}
}

.progress {
    position: relative;
    height: 20px;
    margin: 5px;
    background-color: #bbbbbb !important;
}

.progress span {
    position: absolute;
    display: block;
    width: 100%;
    color: #fff;
 }

.request-log-date {
	font-size: 13px;
}

.identity-info{
	border: 0px;
}

.form-label{
	width: 25px !important;
	margin-top: 2.5px !important;
	margin-bottom: 2.5px !important;
}

.identity-download-icon {
    margin-left: 5px;
}

.identity-view-icon {
	margin-left: 5px;
}

.filter-toggle {
	display: block;
	text-align: right;
	margin-right: 14px;
	padding: 5px 0;
	cursor: pointer;
}
#filter-collapse {
	clear: both;
	text-align: right;
	padding: 5px 0;
}
#filter-collapse .form-inline .form-group {
	margin-right: 5px;
	margin-bottom: 5px;
}

/* ── BCRA Report Template ── */
.bcra-report-bg {
	background-color: #f0f2f5;
	border-radius: 8px;
	padding: 20px;
}

.bcra-report {
	max-width: 1000px;
	margin: 0 auto;
	padding: 30px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.bcra-header {
	border-bottom: 3px solid #003a5d;
	margin-bottom: 25px;
	padding-bottom: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.bcra-header-label { font-size: 11px; color: #888; }
.bcra-header h1 {
	color: #003a5d;
	margin: 0;
	font-size: 22px;
	text-transform: uppercase;
}

.bcra-client-card {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 30px;
	border: 1px solid #dee2e6;
}
.bcra-info-group label {
	display: block;
	font-size: 11px;
	color: #666;
	text-transform: uppercase;
	font-weight: bold;
}
.bcra-info-group span {
	font-size: 16px;
	font-weight: 600;
	color: #003a5d;
}

.bcra-report h2 {
	font-size: 18px;
	color: #003a5d;
	border-left: 5px solid #003a5d;
	padding-left: 10px;
	margin-top: 30px;
}

.bcra-report .table th {
	background-color: #003a5d;
	color: white;
}

/* Situacion badges */
.bcra-s0 { background-color: #ccc; color: #666; }
.bcra-s1 { background-color: #28a745; }
.bcra-s2 { background-color: #ffc107; color: #000; }
.bcra-s3 { background-color: #fd7e14; }
.bcra-s4 { background-color: #dc3545; }
.bcra-s5 { background-color: #721c24; }

.bcra-bank-section {
	margin-top: 25px;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	overflow: hidden;
}
.bcra-bank-name {
	background: #e9ecef;
	padding: 10px 15px;
	font-weight: bold;
	color: #003a5d;
	font-size: 14px;
}

.bcra-history-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 5px;
	padding: 15px;
}
.bcra-month-item {
	text-align: center;
	border: 1px solid #eee;
	padding: 8px 2px;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.bcra-m-label { font-size: 9px; color: #999; font-weight: bold; }
.bcra-m-monto { font-size: 10px; color: #444; }

@media (max-width: 800px) {
	.bcra-history-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ── MTM Simulador Montemar Template ── */
/* Colors aligned with BCRA template: #003a5d (primary), #666 (muted), #dee2e6 (borders), #f8f9fa (bg) */
.mtm-report-bg {
	background-color: #f0f2f5;
	border-radius: 8px;
	padding: 20px;
}
.mtm-layout { max-width: 960px; margin: 0 auto; }

.mtm-page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 22px;
	flex-wrap: wrap;
	gap: 10px;
}
.mtm-page-title { margin: 0; font-size: 18px; font-weight: 700; color: #003a5d; }
.mtm-page-subtitle { font-size: 12px; color: #666; margin: 2px 0 0 0; }

.mtm-badge {
	padding: 5px 16px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: white;
	display: inline-block;
}
.mtm-badge-approved { background-color: #28a745; }
.mtm-badge-rejected { background-color: #dc3545; }

.mtm-card {
	background: white;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
	overflow: hidden;
}
.mtm-card-header {
	padding: 12px 18px;
	border-bottom: 1px solid #dee2e6;
	background-color: #f8f9fa;
	display: flex;
	align-items: center;
	gap: 8px;
}
.mtm-card-header-title {
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 700;
	color: #666;
	letter-spacing: 0.07em;
	margin: 0;
}
.mtm-card-body { padding: 16px 18px; }

.mtm-stats-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin-bottom: 22px;
}
.mtm-stat-widget {
	background: white;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 16px 18px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
	display: flex;
	flex-direction: column;
}
.mtm-stat-widget.success { border-left: 4px solid #28a745; }
.mtm-stat-widget.danger { border-left: 4px solid #dc3545; }
.mtm-stat-widget.blue { border-left: 4px solid #003a5d; }
.mtm-stat-widget.amber { border-left: 4px solid #fd7e14; }
.mtm-stat-widget.neutral { border-left: 4px solid #adb5bd; }

.mtm-sw-label {
	font-size: 11px;
	text-transform: uppercase;
	font-weight: bold;
	letter-spacing: 0.06em;
	color: #666;
	margin-bottom: 6px;
}
.mtm-sw-value { font-size: 24px; font-weight: 800; line-height: 1; white-space: nowrap; }
.mtm-sw-value.success { color: #28a745; }
.mtm-sw-value.danger { color: #dc3545; }
.mtm-sw-value.blue { color: #003a5d; }
.mtm-sw-value.amber { color: #fd7e14; }
.mtm-sw-sub { font-size: 11px; color: #888; margin-top: 4px; }

.mtm-layout table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mtm-layout table th {
	text-align: right;
	padding: 7px 10px;
	font-size: 11px;
	text-transform: uppercase;
	color: white;
	font-weight: 700;
	letter-spacing: 0.05em;
	background: #003a5d;
	border-bottom: 2px solid #dee2e6;
}
.mtm-layout table th:first-child { text-align: left; }
.mtm-layout table td {
	text-align: right;
	padding: 8px 10px;
	border-bottom: 1px solid #eee;
	color: #333;
	font-weight: 500;
}
.mtm-layout table td:first-child { text-align: left; font-weight: 700; color: #003a5d; }
.mtm-layout table tr:last-child td { border-bottom: none; }
.mtm-layout table tr:hover td { background-color: #f8f9fa; }

.mtm-dto-table-wrapper { overflow-x: auto; padding: 0 18px 12px; }
.mtm-dto-table-wrapper table thead tr { background-color: #fff3cd; }
.mtm-dto-table-wrapper table th { border-bottom: 2px solid #ffc107; color: #856404; background: #fff3cd; }
.mtm-dto-table-wrapper table td:first-child { color: #fd7e14; }
.mtm-dto-table-wrapper table tr:hover td { background-color: #fff3cd; }

.mtm-dto-note {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 8px;
	font-size: 12px;
	color: #856404;
}
.mtm-dto-note-icon { font-size: 16px; flex-shrink: 0; }

.mtm-main-grid {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 16px;
	margin-bottom: 16px;
}
.mtm-right-panel { display: flex; flex-direction: column; gap: 16px; }

.mtm-suggested-item {
	background-color: #e8f0f8;
	border: 1px solid #b8d4e8;
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 10px;
}
.mtm-suggested-item:last-child { margin-bottom: 0; }
.mtm-suggested-amount { font-size: 16px; font-weight: 800; color: #003a5d; }
.mtm-suggested-installments { font-size: 12px; color: #666; margin-top: 2px; }
.mtm-suggested-installment-value { font-size: 14px; font-weight: 600; color: #003a5d; margin-top: 2px; }

.mtm-package-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
	font-size: 13px;
}
.mtm-package-row:last-child { border-bottom: none; }
.mtm-package-key { color: #666; }
.mtm-package-val { font-weight: 700; color: #003a5d; }

.mtm-rejected-header {
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 8px;
	padding: 20px 24px;
	text-align: center;
	margin-bottom: 22px;
}
.mtm-rejected-header .mtm-badge { font-size: 14px; padding: 8px 24px; }
.mtm-rejected-code { margin-top: 8px; font-size: 13px; color: #dc3545; font-weight: 500; }

.mtm-income-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 16px;
}
.mtm-income-box { border-radius: 8px; padding: 14px 16px; text-align: center; }
.mtm-income-box.requerido { background-color: #f8d7da; border: 1px solid #f5c6cb; }
.mtm-income-box.simulado { background-color: #f8f9fa; border: 1px solid #dee2e6; }
.mtm-income-box-label {
	font-size: 11px;
	text-transform: uppercase;
	font-weight: bold;
	letter-spacing: 0.05em;
	margin-bottom: 6px;
}
.mtm-income-box.requerido .mtm-income-box-label { color: #721c24; }
.mtm-income-box.simulado .mtm-income-box-label { color: #666; }
.mtm-income-box-value { font-size: 20px; font-weight: 800; }
.mtm-income-box.requerido .mtm-income-box-value { color: #dc3545; }
.mtm-income-box.simulado .mtm-income-box-value { color: #003a5d; }
.mtm-income-box-sub { font-size: 11px; margin-top: 3px; }
.mtm-income-box.requerido .mtm-income-box-sub { color: #dc3545; }
.mtm-income-box.simulado .mtm-income-box-sub { color: #888; }

.mtm-message-full {
	background-color: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 12px;
	color: #856404;
	word-break: break-word;
}
.mtm-message-full strong {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 3px;
	color: #856404;
}

.mtm-error-card {
	background-color: white;
	border: 1px solid #f5c6cb;
	border-top: 4px solid #dc3545;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
	text-align: center;
}
.mtm-error-icon { font-size: 3rem; margin-bottom: 12px; }
.mtm-error-title { color: #dc3545; font-size: 18px; margin: 0 0 8px 0; font-weight: 800; }
.mtm-error-desc { color: #003a5d; font-size: 14px; margin: 0 0 16px 0; }
.mtm-error-meta {
	background-color: #f8f9fa;
	padding: 12px;
	border-radius: 6px;
	display: inline-block;
	font-family: monospace;
	color: #666;
	font-size: 13px;
}
.mtm-error-meta strong { color: #003a5d; }

@media (max-width: 700px) {
	.mtm-main-grid { grid-template-columns: 1fr; }
}

/* ── MTM Hard (Validacion Dura Montemar) Template ── */
.mtm-hard-layout { max-width: 600px; margin: 0 auto; }

.mtm-hard-card-ok { border-top: 4px solid #28a745; }
.mtm-hard-card-no { border-top: 4px solid #dc3545; }
.mtm-hard-card-error { border-top: 4px solid #fd7e14; }

.mtm-hard-badge-error {
	background-color: #fd7e14;
}

.mtm-hard-status-header {
	text-align: center;
	padding: 24px 18px 16px;
	border-bottom: 1px solid #dee2e6;
}

.mtm-hard-status-header .fa {
	font-size: 48px;
	margin-bottom: 12px;
	display: block;
}

.mtm-hard-icon-ok { color: #28a745; }
.mtm-hard-icon-no { color: #dc3545; }
.mtm-hard-icon-error { color: #fd7e14; }

.mtm-hard-status-title {
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 6px 0;
}

.mtm-hard-text-ok { color: #28a745; }
.mtm-hard-text-no { color: #dc3545; }
.mtm-hard-text-error { color: #fd7e14; }

.mtm-hard-status-message {
	font-size: 14px;
	color: #003a5d;
	margin: 0;
	font-weight: 500;
}

.mtm-hard-info-grid {
	display: flex;
	flex-direction: column;
}

.mtm-hard-info-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	font-size: 13px;
}
.mtm-hard-info-row:last-child {
	border-bottom: none;
}

.mtm-hard-info-label {
	color: #666;
	font-weight: 500;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.06em;
}

.mtm-hard-info-value {
	font-weight: 700;
	color: #003a5d;
}

/* ── Adelantos MTM Template ── */
.ade-layout { max-width: 650px; margin: 0 auto; }

.ade-layout table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ade-layout table th {
	text-align: right;
	padding: 7px 10px;
	font-size: 11px;
	text-transform: uppercase;
	color: white;
	font-weight: 700;
	letter-spacing: 0.05em;
	background: #003a5d;
	border-bottom: 2px solid #dee2e6;
}
.ade-layout table th:first-child { text-align: left; }
.ade-layout table td {
	text-align: right;
	padding: 8px 10px;
	border-bottom: 1px solid #eee;
	color: #333;
	font-weight: 500;
}
.ade-layout table td:first-child { text-align: left; font-weight: 700; color: #003a5d; }
.ade-layout table tr:last-child td { border-bottom: none; }
.ade-layout table tr:hover td { background-color: #f8f9fa; }

.ade-loan-hint {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 16px;
	padding: 4px 12px;
	border-radius: 4px;
}
.ade-loan-hint.ok { color: #28a745; background: #d4edda; }
.ade-loan-hint.no { color: #dc3545; background: #f8d7da; }