/* Müşteri Takip Sistemi - özel tema düzeltmeleri */

:root {
	--mts-lacivert: #1b2a4a;
	--mts-mavi: #2e5aac;
}

.main-sidebar,
.main-header,
.brand-link {
	background-color: var(--mts-lacivert) !important;
	border-color: rgba(255, 255, 255, .1) !important;
}

.main-header {
	background-color: #ffffff !important;
}

.brand-link .brand-text,
.brand-link .brand-image {
	color: #ffffff !important;
}

.nav-sidebar > .nav-item > .nav-link.active {
	background-color: var(--mts-mavi) !important;
}

.small-box .icon {
	opacity: .35;
}

.progress-bar-mts {
	transition: width .4s ease;
}

.durum-progress {
	height: 6px;
}

.login-wrapper {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--mts-lacivert), var(--mts-mavi));
}

/* --- Giris ekrani (yenilenmis) --- */
.mts-login-body {
	min-height: 100vh;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: linear-gradient(135deg, var(--mts-lacivert) 0%, var(--mts-mavi) 100%);
	position: relative;
	overflow: hidden;
}

/* Arka planda hafif dekoratif daireler */
.mts-login-body::before,
.mts-login-body::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, .05);
}

.mts-login-body::before {
	width: 420px;
	height: 420px;
	top: -140px;
	right: -120px;
}

.mts-login-body::after {
	width: 320px;
	height: 320px;
	bottom: -120px;
	left: -100px;
}

.mts-login-wrapper {
	width: 100%;
	max-width: 900px;
	position: relative;
	z-index: 1;
}

.mts-login-card {
	display: flex;
	background: #fff;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .3);
	min-height: 520px;
}

.mts-login-brand {
	flex: 0 0 45%;
	max-width: 45%;
	background: linear-gradient(150deg, var(--mts-lacivert), var(--mts-mavi));
	color: #fff;
	padding: 2.5rem;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
}

.mts-login-brand-logo {
	width: 64px;
	height: 64px;
	border-radius: 1rem;
	background: rgba(255, 255, 255, .15);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	margin-bottom: 1.5rem;
}

.mts-login-brand-baslik {
	font-weight: 700;
	font-size: 1.6rem;
	margin-bottom: .75rem;
}

.mts-login-brand-alt {
	color: rgba(255, 255, 255, .8);
	font-size: .95rem;
	line-height: 1.6;
	margin-bottom: 1.75rem;
}

.mts-login-ozellik {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mts-login-ozellik li {
	padding: .35rem 0;
	color: rgba(255, 255, 255, .9);
	font-size: .9rem;
}

.mts-login-ozellik li i {
	color: #7ee2b8;
}

.mts-login-brand-alt-bilgi {
	color: rgba(255, 255, 255, .55);
	font-size: .8rem;
}

.mts-login-form {
	flex: 1 1 55%;
	max-width: 55%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5rem;
}

.mts-login-form-icerik {
	width: 100%;
	max-width: 360px;
}

.mts-login-mobil-logo {
	width: 60px;
	height: 60px;
	border-radius: 1rem;
	background: linear-gradient(135deg, var(--mts-lacivert), var(--mts-mavi));
	color: #fff;
	font-size: 1.6rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: .5rem;
}

.mts-login-baslik {
	font-weight: 700;
	color: var(--mts-lacivert);
	margin-bottom: .25rem;
}

.mts-login-etiket {
	font-size: .8rem;
	font-weight: 600;
	color: #495057;
	margin-bottom: .35rem;
}

.mts-login-input .input-group-text {
	background: #f8f9fa;
	border-right: 0;
	color: #868e96;
}

.mts-login-input .form-control {
	border-left: 0;
}

.mts-login-input .form-control:focus {
	box-shadow: none;
	border-color: #ced4da;
}

.mts-login-input .form-control:focus + .input-group-append .mts-sifre-goster,
.mts-login-input .input-group-prepend .input-group-text {
	border-color: #ced4da;
}

.mts-sifre-goster {
	border-color: #ced4da;
	border-left: 0;
}

.mts-login-btn {
	padding: .6rem;
	font-weight: 600;
	box-shadow: 0 .35rem .75rem rgba(46, 90, 172, .3);
}

@media (max-width: 767.98px) {
	.mts-login-card {
		min-height: auto;
	}
	.mts-login-form {
		max-width: 100%;
		flex-basis: 100%;
		padding: 2rem 1.5rem;
	}
}

@media (max-width: 575.98px) {
	.content-header h1 {
		font-size: 1.25rem;
	}
	.table-responsive table {
		font-size: .85rem;
	}
	/* Dar ekranlarda info-box etiketleri "..." ile kesilmesin, alt satira gecsin */
	.info-box .info-box-text {
		white-space: normal !important;
		overflow: visible !important;
		text-overflow: clip !important;
	}
	.info-box .info-box-content {
		overflow: visible;
	}
}

/* Genis tablolarda yatay tasmayi engelle */
.table-responsive {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* --- Musteri profil sayfasi --- */
.mts-profil-header {
	border-top: 3px solid var(--mts-mavi);
}

.mts-avatar {
	width: 64px;
	height: 64px;
	min-width: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: .5px;
}

.mts-profil-istatistik {
	border-top: 1px solid #e9ecef;
	padding-top: 1rem;
}

.mts-istatistik-kutu {
	padding: .25rem .5rem;
	border-right: 1px solid #e9ecef;
}

.mts-istatistik-kutu:last-child {
	border-right: 0;
}

.mts-istatistik-sayi {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--mts-lacivert);
}

.mts-istatistik-etiket {
	font-size: .75rem;
	color: #868e96;
	text-transform: uppercase;
	letter-spacing: .3px;
}

.mts-bilgi-listesi .list-group-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	padding: .65rem 1.25rem;
}

.mts-bilgi-etiket {
	color: #6c757d;
	font-size: .85rem;
}

.mts-bilgi-deger {
	font-weight: 600;
	text-align: right;
}

@media (max-width: 575.98px) {
	.mts-istatistik-kutu {
		border-right: 0;
		border-bottom: 1px solid #e9ecef;
		padding-bottom: .75rem;
		margin-bottom: .5rem;
	}
	.mts-bilgi-deger {
		text-align: left;
		width: 100%;
	}
}

.mts-renk-nokta {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: .5rem;
}

/* --- Musteri listesi --- */
.mts-durum-grup {
	display: inline-flex;
	flex-wrap: wrap;
	gap: .35rem;
}

.mts-durum-btn {
	background: #fff;
	border: 1px solid #dee2e6;
	color: #495057;
	font-size: .8rem;
	border-radius: 50rem;
	padding: .25rem .75rem;
	white-space: nowrap;
	transition: all .15s ease;
}

.mts-durum-btn:hover {
	border-color: var(--mts-mavi);
	color: var(--mts-mavi);
}

.mts-durum-btn.active {
	background: var(--mts-mavi);
	border-color: var(--mts-mavi);
	color: #fff;
}

.mts-durum-btn .badge {
	background: #f1f3f5;
	color: #495057;
	margin-left: .25rem;
}

.mts-durum-btn.active .badge {
	background: rgba(255, 255, 255, .25);
	color: #fff;
}

.mts-durum-btn.active .mts-renk-nokta {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .6);
}

.mts-liste-arama {
	width: 280px;
	max-width: 100%;
}

.mts-liste-arama .form-control:focus {
	box-shadow: none;
	border-color: #ced4da;
}

.mts-gelismis-filtre {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: .35rem;
	padding: .75rem .5rem;
}

.mts-liste-tablo td {
	vertical-align: middle;
	white-space: nowrap;
}

.mts-liste-tablo thead th {
	border-top: 0;
	border-bottom-width: 1px;
	text-transform: uppercase;
	font-size: .72rem;
	letter-spacing: .4px;
	color: #868e96;
	white-space: nowrap;
}

.mts-tablo-avatar {
	width: 38px;
	height: 38px;
	min-width: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .5px;
}

.mts-musteri-ad {
	color: var(--mts-lacivert);
	line-height: 1.2;
}

.mts-musteri-ad:hover {
	color: var(--mts-mavi);
}

.mts-liste-tablo .dataTables_empty {
	border-bottom: 0;
}

@media (max-width: 767.98px) {
	.mts-liste-arama {
		width: 100%;
	}
}

/* --- Raporlar --- */
.mts-rapor-filtre {
	border-top: 3px solid var(--mts-mavi);
}

.mts-aralik-rozet {
	font-size: .8rem;
	font-weight: 600;
	padding: .45rem .75rem;
}

.mts-kpi-kart {
	margin-bottom: 1rem;
}

.mts-kpi-kart .card-body {
	padding: 1rem 1.25rem;
}

.mts-kpi-etiket {
	font-size: .72rem;
	color: #868e96;
	text-transform: uppercase;
	letter-spacing: .4px;
	margin-bottom: .15rem;
	white-space: nowrap;
}

.mts-kpi-deger {
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.mts-kpi-ikon {
	width: 46px;
	height: 46px;
	min-width: 46px;
	border-radius: .5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	margin-left: .75rem;
}

.mts-kpi-ikon-success { background: rgba(40, 167, 69, .12); color: #28a745; }
.mts-kpi-ikon-danger  { background: rgba(220, 53, 69, .12); color: #dc3545; }
.mts-kpi-ikon-primary { background: rgba(46, 90, 172, .12); color: var(--mts-mavi); }
.mts-kpi-ikon-warning { background: rgba(255, 193, 7, .15); color: #d39e00; }
.mts-kpi-ikon-info    { background: rgba(23, 162, 184, .12); color: #17a2b8; }

.mts-rapor-tablar .nav-link {
	padding: .75rem 1.15rem;
	color: #6c757d;
	font-weight: 600;
	font-size: .85rem;
	border-top-width: 2px;
}

.mts-rapor-tablar .nav-link.active {
	color: var(--mts-mavi);
	border-top-color: var(--mts-mavi);
}

.mts-rapor-karti > .card-body {
	background: #f4f6f9;
	border-radius: 0 0 .25rem .25rem;
}

.mts-grafik-kutu {
	position: relative;
	height: 240px;
}

.mts-bos-durum {
	text-align: center;
	color: #adb5bd;
	padding: 3rem 1rem;
}

.mts-bos-durum i {
	font-size: 2rem;
	display: block;
	margin-bottom: .75rem;
	opacity: .6;
}

.mts-rapor-tablo thead th,
.mts-liste-tablo thead th {
	border-top: 0;
	border-bottom-width: 1px;
	text-transform: uppercase;
	font-size: .72rem;
	letter-spacing: .4px;
	color: #868e96;
	white-space: nowrap;
}

.dataTables_filter_sag .dataTables_filter {
	text-align: right;
}

.dataTables_filter_sag .dataTables_filter input {
	border: 1px solid #ced4da;
	border-radius: .25rem;
	padding: .25rem .5rem;
	font-size: .875rem;
	margin-left: 0;
}

.dt-buttons .btn {
	margin-right: .35rem;
}

/* --- Anasayfa --- */
.mts-hos-geldin {
	background: linear-gradient(120deg, var(--mts-lacivert), var(--mts-mavi));
	border: 0;
}

.mts-hos-geldin-alt {
	color: rgba(255, 255, 255, .75);
	font-size: .85rem;
}

.mts-kpi-rozet {
	font-size: .6em;
	vertical-align: middle;
}

.mts-durum-serit {
	height: 10px;
	border-radius: 50rem;
}

.mts-durum-lejant {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	color: inherit;
	font-size: .85rem;
	padding: .15rem .4rem;
	border-radius: .25rem;
}

.mts-durum-lejant:hover {
	background: #f1f3f5;
	text-decoration: none;
	color: inherit;
}

.mts-islem-ikon {
	width: 30px;
	height: 30px;
	min-width: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: .7rem;
}

.mts-kaydirilabilir {
	max-height: 360px;
	overflow-y: auto;
}

@media (min-width: 992px) {
	.h-lg-100 {
		height: calc(100% - 1rem);
	}
}

/* Bootstrap 4'te kaldirilan kucuk buton boyutu (AdminLTE bazi surumlerde icermez) */
.btn-xs {
	padding: .12rem .4rem;
	font-size: .725rem;
	line-height: 1.4;
	border-radius: .2rem;
}

/* --- Telegram yonetimi --- */
.mts-avatar-telegram {
	background: #229ed9;
	background: linear-gradient(135deg, #2aabee, #229ed9);
}

/* --- Gider takibi --- */
.mts-kategori-rozet {
	color: #fff;
	font-weight: 600;
}

.mts-gider-aciklama {
	max-width: 280px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* --- Mesaj gönder (Telegram / WhatsApp) --- */
.mts-mesaj-butonlar {
	gap: .5rem;
}

.btn-mts-telegram {
	background: linear-gradient(135deg, #2aabee, #229ed9);
	color: #fff;
	border: 0;
}

.btn-mts-telegram:hover:not(:disabled) {
	background: linear-gradient(135deg, #1e9fe0, #1c8ec2);
	color: #fff;
}

.btn-mts-whatsapp {
	background: #25d366;
	color: #fff;
	border: 0;
}

.btn-mts-whatsapp:hover:not(:disabled) {
	background: #1fbb59;
	color: #fff;
}

.btn-mts-telegram:disabled,
.btn-mts-whatsapp:disabled {
	opacity: .5;
	cursor: not-allowed;
}

.mts-sablon-liste {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	max-height: 200px;
	overflow-y: auto;
	padding-right: .25rem;
}

.mts-sablon-btn {
	display: flex;
	align-items: center;
	width: 100%;
	text-align: left;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: .45rem;
	padding: .5rem .7rem;
	font-size: .82rem;
	font-weight: 500;
	color: #495057;
	transition: all .15s ease;
}

.mts-sablon-btn:hover {
	background: #fff;
	border-color: var(--mts-mavi);
	color: var(--mts-mavi);
	box-shadow: 0 2px 6px rgba(46, 90, 172, .12);
}

.mts-sablon-btn span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* --- Sol menü (sidebar) profesyonel görünüm --- */
.mts-sidebar {
	background: linear-gradient(180deg, #1b2a4a 0%, #16223c 100%) !important;
}

/* Marka */
.mts-brand {
	display: flex;
	align-items: center;
	padding: .85rem 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
	height: auto;
}

.mts-brand-logo {
	width: 40px;
	height: 40px;
	min-width: 40px;
	border-radius: .6rem;
	background: linear-gradient(135deg, #2aabee 0%, var(--mts-mavi) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.15rem;
	box-shadow: 0 4px 10px rgba(46, 90, 172, .4);
	margin-right: .7rem;
}

.mts-brand .brand-text {
	line-height: 1.15;
	color: #fff !important;
	font-size: 1.05rem;
}

.mts-brand-alt {
	display: block;
	font-size: .58rem;
	font-weight: 600;
	letter-spacing: 1.5px;
	color: rgba(255, 255, 255, .45);
	margin-top: 1px;
}

/* Kullanıcı kartı */
.user-panel {
	border-bottom: 0 !important;
}

.mts-user-card {
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .07);
	border-radius: .6rem;
	padding: .55rem .65rem;
	margin: 0 .25rem;
}

.mts-user-avatar {
	width: 40px;
	height: 40px;
	min-width: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--mts-mavi), #6f42c1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: .85rem;
	margin-right: .6rem;
}

.mts-user-info {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.mts-user-name {
	color: #fff;
	font-weight: 600;
	font-size: .9rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mts-user-role {
	color: rgba(255, 255, 255, .55);
	font-size: .75rem;
	display: flex;
	align-items: center;
}

.mts-online-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #28a745;
	margin-right: .4rem;
	box-shadow: 0 0 0 2px rgba(40, 167, 69, .25);
}

/* Menü bölüm başlığı */
.mts-menu-baslik {
	color: rgba(255, 255, 255, .38);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	padding: .6rem 1.25rem .1rem;
	text-transform: uppercase;
}

/* Nav öğeleri */
.nav-sidebar > .nav-item {
	margin-bottom: 0;
}

.nav-sidebar > .nav-item > .nav-link {
	color: rgba(255, 255, 255, .72);
	border-radius: .55rem;
	margin: .12rem .75rem;
	padding: .58rem .85rem;
	font-weight: 500;
	transition: background-color .15s ease, color .15s ease;
}

.nav-sidebar > .nav-item > .nav-link .nav-icon {
	color: rgba(255, 255, 255, .5);
	width: 1.5rem;
	font-size: .95rem;
	transition: color .15s ease;
}

.nav-sidebar > .nav-item > .nav-link:hover {
	background: rgba(255, 255, 255, .08);
	color: #fff;
}

.nav-sidebar > .nav-item > .nav-link:hover .nav-icon {
	color: #fff;
}

.nav-sidebar > .nav-item > .nav-link.active {
	background: linear-gradient(90deg, var(--mts-mavi), #3f6fc4) !important;
	color: #fff !important;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(46, 90, 172, .35);
}

.nav-sidebar > .nav-item > .nav-link.active .nav-icon {
	color: #fff !important;
}

/* Alt menü (treeview) */
.nav-sidebar .nav-treeview {
	background: rgba(0, 0, 0, .18);
	border-radius: .55rem;
	margin: .1rem .75rem .3rem;
	padding: .2rem 0;
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link {
	margin: .05rem .4rem;
	padding: .42rem .75rem .42rem 1rem;
	font-size: .84rem;
	border-radius: .4rem;
	color: rgba(255, 255, 255, .6);
	transition: background-color .15s ease, color .15s ease;
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link .nav-icon {
	font-size: .5rem;
	color: rgba(255, 255, 255, .32);
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link:hover {
	background: rgba(255, 255, 255, .07);
	color: #fff;
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link.active {
	background: rgba(46, 90, 172, .55) !important;
	color: #fff !important;
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link.active .nav-icon {
	color: #fff !important;
}

/* Açılır ok */
.nav-sidebar .nav-link > p > .right {
	color: rgba(255, 255, 255, .4);
}

/* Sidebar footer */
.mts-sidebar-footer {
	color: rgba(255, 255, 255, .35);
	font-size: .72rem;
	padding: .85rem 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, .06);
	margin-top: .4rem;
	white-space: nowrap;
	overflow: hidden;
}

.mts-versiyon {
	background: rgba(255, 255, 255, .08);
	border-radius: 50rem;
	padding: .05rem .4rem;
	font-size: .65rem;
	margin-left: .25rem;
}

/* Daraltılmış (mini) menüde metinleri gizle */
.sidebar-collapse .mts-menu-baslik,
.sidebar-collapse .mts-sidebar-footer,
.sidebar-collapse .mts-brand-alt {
	display: none;
}
