/** 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; }
/* Coefficient rates screen (Aprisa monthly pricing table) */
.coefficient-table th {
	white-space: nowrap;
}
.table.coefficient-table thead > tr > th,
.table.coefficient-table tbody > tr > td {
	vertical-align: top;
}
.coefficient-table .coefficient-quotas-column {
	width: 90px;
	white-space: nowrap;
}
.coefficient-table .coefficient-modified-column {
	width: 130px;
	white-space: nowrap;
}
.coefficient-table td.coefficient-modified-column {
	color: #777;
	font-size: 12px;
}
.coefficient-table input.coefficient-input {
	min-width: 90px;
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.coefficient-table input.coefficient-changed {
	border-color: #003a5d;
	background-color: #eaf3f9;
	font-weight: 700;
}
.coefficient-table input.rate-mismatch-input {
	border-color: #f0ad4e;
}
.coefficient-table .rate-check {
	display: block;
	margin-top: 3px;
	text-align: right;
	font-size: 11px;
	color: #999;
}
.coefficient-table .rate-check.rate-mismatch {
	color: #c87f0a;
	font-weight: 700;
}
.add-line-table .add-line-quota {
	font-weight: 700;
	margin: 0;
}
.add-line-table tr.add-line-excluded {
	opacity: 0.45;
}
.coefficient-diff-table .coefficient-diff-new {
	font-weight: 700;
	color: #003a5d;
}
.settings-menu i {
	margin-right: 8px;
}

/* Bootstrap 3.0.0 has no .modal-lg: size the coefficient modals ourselves. */
@media (min-width: 992px) {
	#addLineModal .modal-dialog,
	#coefficientDiffModal .modal-dialog {
		width: 900px;
	}
}
.modal .table-responsive {
	overflow-x: auto;
}
.modal .coefficient-table input.coefficient-input {
	min-width: 70px;
	margin: 0;
}

/* Notes list: lead edit panel and subscriber detail modals */
.notes-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.notes-list .note-item {
	display: flex;
	align-items: flex-start;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}
.notes-list .note-item:last-child {
	border-bottom: 0;
}
.notes-list .note-avatar {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	line-height: 30px;
	margin-right: 12px;
	border-radius: 50%;
	background: #007aff;
	color: #fff;
	font-weight: 700;
	text-align: center;
}
.notes-list .note-body {
	flex: 1 1 auto;
	min-width: 0;
}
.notes-list .note-meta {
	font-size: 0.85em;
	margin-bottom: 3px;
}
.notes-list .note-author {
	font-weight: 700;
	color: #333333;
}
.notes-list .note-time {
	color: #999999;
	margin-left: 6px;
}
.notes-list .note-time:before {
	content: "\00b7";
	margin-right: 6px;
}
.notes-list .note-text {
	margin: 0;
	color: #333333;
	white-space: pre-line;
	word-wrap: break-word;
}

/* Outlined labels: the template's .label with the look of its .btn-*-outline buttons, for tags
   that carry no status. Default text is darker than the button's #999999 so it stays readable. */
.label.label-outline {
	padding: 3px 7px;
	background-color: transparent;
	border: 1px solid;
	font-weight: 400;
}
.label.label-outline [class*="fa"] {
	margin-right: 5px;
}
.label.label-outline.label-primary {
	border-color: #007aff;
	color: #007aff;
}
.label.label-outline.label-default {
	border-color: #bbbbbb;
	color: #777777;
}

/* Settings screens shared sidebar and filter chips (Types/index.ctp, Affiliates/index.ctp) */
.type-search,
.affiliate-search {
	padding: 15px;
}
/* Long filter names wrap beside the floated badge, with a hanging indent past the 50px icon. */
.type-filter-panels .filter-categories .btn-group .btn,
.affiliate-filter-panels .filter-categories .btn-group .btn {
	white-space: normal;
	padding-left: 62px;
	padding-right: 12px;
	text-indent: -50px;
}
.type-filter-panels .filter-categories .btn-group .btn [class*="fa"],
.type-filter-panels .filter-categories .btn-group .btn .badge,
.affiliate-filter-panels .filter-categories .btn-group .btn [class*="fa"],
.affiliate-filter-panels .filter-categories .btn-group .btn .badge {
	text-indent: 0;
}
.type-filter-panels .filter-categories .btn-group .btn .badge,
.affiliate-filter-panels .filter-categories .btn-group .btn .badge {
	margin: 3px 0 0 6px;
}
.type-filter-panels .filter-categories .btn-group .btn:hover .badge,
.type-filter-panels .filter-categories .btn-group .btn.active .badge,
.affiliate-filter-panels .filter-categories .btn-group .btn:hover .badge,
.affiliate-filter-panels .filter-categories .btn-group .btn.active .badge {
	background-color: #ffffff;
	color: #555555;
}
/* Applied filter chips: soft primary tint instead of the template's gray labels. */
.types-selected-filters,
.affiliates-selected-filters {
	padding: 10px 10px 4px;
	background-color: #ffffff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.types-selected-filters .label,
.affiliates-selected-filters .label {
	margin: 0 6px 6px 0;
	padding: 6px 9px;
	background-color: #eaf3ff;
	color: #007aff;
	font-size: 12px;
	font-weight: 400;
	border-radius: 3px;
}
.types-selected-filters .label .type-filter-clear,
.affiliates-selected-filters .label .affiliate-filter-clear {
	margin-left: 8px;
	color: #7fb8ff;
	cursor: pointer;
}
.types-selected-filters .label .type-filter-clear:hover,
.affiliates-selected-filters .label .affiliate-filter-clear:hover {
	color: #007aff;
}
.type-visible-count,
.affiliate-visible-count {
	color: #999999;
	font-size: 13px;
	margin-left: 4px;
}

/* Lead types settings screen (Types/index.ctp) */
.types-table .type-color-column,
.type-preview-table td.filter-category {
	width: 60px;
}
.types-table .type-actions-column {
	width: 90px;
}
.table.types-table {
	margin-bottom: 0;
}
.table.types-table tbody > tr > td {
	vertical-align: middle;
}
.types-table .type-id {
	color: #999999;
	margin-left: 6px;
}
.types-table .type-slug {
	color: #777777;
	background-color: #f5f5f5;
	font-size: 12px;
}
.types-table .types-empty-row td {
	padding: 20px;
	text-align: center;
	color: #999999;
}
/* Neutralize the template's .btn[class*="fa"] margin, which also matches btn-default-outline. */
.type-color-picker .btn {
	margin: 0 5px 5px 0;
}
.type-color-picker .type-color-option .fa-check {
	display: none;
}
.type-color-picker .type-color-option.active .fa-check {
	display: inline-block;
}
.type-preview {
	margin-top: 5px;
	padding-top: 12px;
	border-top: 1px solid #eeeeee;
}
.type-preview-title {
	margin-bottom: 8px;
	color: #999999;
	font-size: 12px;
	text-transform: uppercase;
}
.type-preview-table {
	margin-bottom: 0;
	border: 1px solid #eeeeee;
}
.table.type-preview-table tbody > tr > td {
	vertical-align: middle;
}
.type-delete-name {
	margin: 12px 0;
}
.type-delete-name .label {
	margin: 0;
	font-size: 100%;
}
#typeFormModal .modal-title i,
#typeDeleteModal .modal-title i {
	margin-right: 8px;
}


/* Affiliates settings screen (Affiliates/index.ctp) */
.affiliate-help-panel .panel-body {
	padding: 12px 15px;
	color: #777777;
	font-size: 13px;
	line-height: 1.5;
}
.affiliate-help-panel .panel-body p {
	margin: 0 0 10px;
}
.affiliate-help-panel .panel-body p:last-child {
	margin-bottom: 0;
}
.affiliate-help-panel .panel-body p i {
	width: 16px;
	margin-right: 6px;
	color: #007aff;
	text-align: center;
}
.affiliate-help-panel .panel-body code {
	font-size: 12px;
	white-space: nowrap;
}
/* Actual cid values render as neutral chips; the help panel's examples keep Bootstrap's code style. */
.affiliates-table .affiliate-cid,
#affiliateDeleteModal code,
#affiliateTokenModal code {
	padding: 2px 5px;
	color: #333333;
	background-color: #eeeeee;
	border-radius: 3px;
	white-space: nowrap;
}
.affiliates-table .affiliate-cid-column {
	width: 110px;
}
.affiliates-table .affiliate-created-column {
	width: 100px;
}
.affiliates-table .affiliate-actions-column {
	width: 90px;
}
.table.affiliates-table {
	margin-bottom: 0;
}
.table.affiliates-table tbody > tr > td {
	vertical-align: middle;
}
/* Line the first and last columns up with the widget heading's 15px padding. */
.table.affiliates-table > thead > tr > th:first-child,
.table.affiliates-table > tbody > tr > td:first-child {
	padding-left: 15px;
}
.table.affiliates-table > thead > tr > th:last-child,
.table.affiliates-table > tbody > tr > td:last-child {
	padding-right: 15px;
}
.affiliates-table .affiliate-id {
	color: #999999;
	margin-left: 6px;
}
.affiliates-table .affiliate-cid-cell {
	white-space: nowrap;
}
.affiliates-table .affiliate-cid {
	font-size: 13px;
	font-weight: 700;
}
.affiliates-table .affiliate-copy-link {
	margin-left: 6px;
	color: #bbbbbb;
}
.affiliates-table .affiliate-copy-link:hover {
	color: #007aff;
	text-decoration: none;
}
.affiliates-table .affiliate-copy-link.copied {
	color: #60c560;
}
/* The template gives labels 5px side margins; start flush with the column header instead. */
.affiliates-table .affiliate-link-labels .label {
	margin: 2px 6px 2px 0;
}
.affiliates-table .affiliate-no-link {
	color: #bbbbbb;
}
.affiliates-table .affiliate-created {
	color: #777777;
	white-space: nowrap;
}
.affiliates-table .affiliate-delete-disabled {
	color: #cccccc;
	cursor: not-allowed;
}
.affiliates-table .affiliates-empty-row td {
	padding: 20px;
	text-align: center;
	color: #999999;
}
.affiliate-cache-help i {
	margin-right: 6px;
}
.affiliate-delete-name {
	margin: 12px 0;
}
.affiliate-delete-name .label {
	margin: 0;
	font-size: 100%;
}
.affiliate-delete-name code {
	margin-left: 8px;
}
/* One-time token reveal after a create. */
.affiliate-token-alert {
	margin-bottom: 15px;
}
.affiliate-token-alert i {
	margin-right: 8px;
}
/* Content below the alert shares its inner left edge: 15px padding + 1px border. */
.affiliate-token-meta,
.affiliate-token-field {
	padding: 0 16px;
}
.affiliate-token-meta {
	margin: 0 0 15px;
}
.affiliate-token-meta dt {
	float: left;
	clear: left;
	width: 70px;
	color: #999999;
	font-weight: 400;
}
.affiliate-token-meta dd {
	margin: 0 0 6px 80px;
}
.affiliate-token-meta dd:last-child {
	margin-bottom: 0;
}
/* The template gives every .btn an outer margin, which misaligns it inside an input group. */
.affiliate-token-input .input-group-btn .btn {
	margin: 0;
}
.affiliate-token-input .affiliate-token-value,
.affiliate-token-input .affiliate-token-value[readonly] {
	background-color: #ffffff;
	color: #333333;
	font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
	font-size: 15px;
	letter-spacing: 1px;
	cursor: text;
}
/* Off-screen buffer for the execCommand("copy") fallback. */
.affiliate-clipboard-buffer {
	position: fixed;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	padding: 0;
	border: 0;
	opacity: 0;
}
#affiliateFormModal .modal-title i,
#affiliateDeleteModal .modal-title i,
#affiliateTokenModal .modal-title i {
	margin-right: 8px;
}
