/* CheckSinco - Modern Responsive Styles */

:root {
	--cs-green: #74ab46;
	--cs-green-dark: #4b722c;
	--cs-green-light: #94c565;
	--cs-green-hover: #88c34c;

	--cs-blue: #458aad;
	--cs-blue-dark: #256c92;
	--cs-blue-light: #71acc9;

	--cs-orange: #f05f09;
	--cs-orange-dark: #c04a00;
	--cs-orange-light: #ee862a;
	--cs-orange-border: #fb9400;

	--cs-gray: #8e8e8e;
	--cs-gray-light: #f5f5f5;
	--cs-gray-dark: #585858;

	--cs-sidebar-w: 280px;
	--cs-header-h: 72px;
	--cs-radius: 8px;
	--cs-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }

body {
	font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
	font-size: 14px;
	color: #333;
	margin: 0;
	background: #eef1f5;
}

/* ===== HEADER ===== */
.cs-header {
	background: #fff;
	color: #333;
	padding: 0 20px;
	height: var(--cs-header-h);
	position: sticky;
	top: 0;
	z-index: 1040;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
	border-bottom: 1px solid #ddd;
}

.cs-header-inner {
	max-width: 1600px;
	margin: 0 auto;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.cs-logo img {
	max-height: 52px;
	width: auto;
}

.cs-header-info {
	font-size: 13px;
	text-align: right;
	color: #555;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	justify-content: flex-end;
}

.cs-header-info strong { color: #333; }

.cs-header-divider {
	opacity: 0.4;
	margin: 0 4px;
}

.cs-online-badge {
	height: 22px;
	vertical-align: middle;
}

.cs-whatsapp-icon {
	height: 18px;
	vertical-align: middle;
	margin-left: 2px;
}

.cs-menu-toggle {
	background: none;
	border: 2px solid #ccc;
	color: #333;
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
	transition: border-color 0.2s;
}

.cs-menu-toggle:hover {
	border-color: #999;
}

/* ===== LAYOUT ===== */
.cs-layout {
	max-width: 1600px;
	margin: 0 auto;
	display: flex;
	gap: 16px;
	padding: 16px;
	min-height: calc(100vh - var(--cs-header-h));
}

/* ===== SIDEBAR ===== */
.cs-sidebar-body {
	padding: 0;
	flex-direction: column;
	width: 100%;
}

@media (min-width: 992px) {
	.cs-sidebar {
		width: var(--cs-sidebar-w);
		min-width: var(--cs-sidebar-w);
		position: sticky;
		top: calc(var(--cs-header-h) + 16px);
		max-height: calc(100vh - var(--cs-header-h) - 32px);
		overflow-y: auto;
		padding-right: 4px;
	}

	.cs-sidebar::-webkit-scrollbar { width: 4px; }
	.cs-sidebar::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
}

/* ===== MAIN CONTENT ===== */
.cs-main {
	flex: 1;
	min-width: 0;
}

.cs-top-menus {
	margin-bottom: 16px;
}

.cs-top-menus-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.cs-top-menus-grid > div:empty {
	display: none;
}

.cs-top-menus-grid:has(> div:nth-child(3):not(:empty)) {
	grid-template-columns: 1fr 1fr auto;
}

.cs-content {
	background: #fff;
	border-radius: var(--cs-radius);
	padding: 24px;
	box-shadow: var(--cs-shadow);
	min-height: 300px;
}

/* ===== MODAL ===== */
.cs-modal-header {
	background: var(--cs-blue-dark);
	color: #fff;
	border-bottom: none;
}

.cs-modal-iframe {
	width: 100%;
	height: 75vh;
	border: none;
	display: block;
}

/* ===== TYPOGRAPHY ===== */
h1 {
	color: var(--cs-blue-dark);
	font-size: 18px;
	font-weight: 600;
}

a { color: var(--cs-blue); }
a:hover { color: var(--cs-blue-dark); }

li {
	list-style-image: none;
}

/* ===== FORM ELEMENTS ===== */
.login, .senha {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	background-image: none;
	transition: border-color 0.15s;
}

.login:focus, .senha:focus {
	border-color: var(--cs-blue);
	outline: none;
	box-shadow: 0 0 0 3px rgba(69,138,173,0.15);
}

/* ===== PREPAGO ===== */
#prepago {
	margin: 0;
	padding: 0;
	color: #333;
}

#prepago h2, #prepago h3 { color: #333; }
#prepago label { font-weight: 600; min-width: 120px; }

#prepago .box {
	background: #f8f9fa;
	border: 1px dashed #ccc;
	border-radius: 6px;
	padding: 8px 12px;
}

#prepago .box span { display: table-cell; width: 200px; }
.width100pct { width: 100%; }

#prepago input[type=text] {
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 6px 10px;
}

.invalido {
	color: #dc3545;
	border: 2px solid #dc3545 !important;
}

#prepago ul, #prepago li { list-style: none; }

#prepago li {
	height: 40px;
	line-height: 40px;
	vertical-align: middle;
}

#prepago li span { float: right; }

/* ===== PREPAGO CONTENT ===== */
.cs-prepago-content {
	font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
	font-size: 14px;
	color: #333;
}

.cs-prepago-content h2 {
	font-size: 20px;
	font-weight: 700;
	color: var(--cs-blue-dark);
	margin: 0 0 16px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--cs-green);
}

.cs-prepago-content h3 {
	font-size: 15px;
	font-weight: 600;
	color: #333;
	margin: 20px 0 10px 0;
}

.cs-prepago-saldo-box {
	background: var(--cs-gray-light);
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 14px 18px;
	margin-bottom: 16px;
	line-height: 1.8;
}

.cs-prepago-label {
	font-weight: 600;
	font-size: 13px;
	color: #555;
}

.cs-prepago-valor {
	font-weight: 700;
	font-size: 15px;
	color: var(--cs-green-dark);
	margin-left: 6px;
}

.cs-prepago-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
	font-size: 14px;
}

.cs-prepago-table th {
	text-align: left;
	font-weight: 600;
	font-size: 13px;
	color: #555;
	padding: 8px 12px;
	border-bottom: 2px solid #ddd;
	background: var(--cs-gray-light);
}

.cs-prepago-table td {
	padding: 8px 12px;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}

.cs-prepago-table a {
	color: var(--cs-blue);
	text-decoration: none;
	font-size: 14px;
}

.cs-prepago-table a:hover {
	color: var(--cs-blue-dark);
	text-decoration: underline;
}

.cs-prepago-actions {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cs-prepago-actions li {
	list-style: none;
	list-style-image: none;
	height: auto;
	padding: 0;
	margin: 0;
}

.cs-prepago-actions li a {
	display: block;
	padding: 8px 12px;
	color: var(--cs-blue);
	text-decoration: none;
	font-size: 14px;
	border-bottom: 1px solid #eee;
	transition: background 0.15s;
}

.cs-prepago-actions li a:hover {
	background: var(--cs-gray-light);
}

.cs-prepago-actions li:last-child a {
	border-bottom: none;
}

.cs-prepago-msg {
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 6px;
	padding: 20px;
	text-align: center;
	font-size: 14px;
	color: #856404;
	margin: 20px 0;
}

.cs-prepago-msg a {
	color: var(--cs-blue);
	font-weight: 600;
}

.cs-prepago-alert {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 6px;
	padding: 20px;
	text-align: center;
	margin: 20px 0;
}

.cs-prepago-alert h3 {
	color: #721c24;
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 10px 0;
}

.cs-prepago-alert p {
	color: #721c24;
	font-size: 14px;
	margin: 0;
}

.cs-prepago-alert a {
	color: var(--cs-blue);
}

/* ===== PIX RECARGA ===== */
.cs-pix-recarga {
	max-width: 440px;
	margin: 0 auto;
	text-align: center;
}

.cs-pix-header {
	margin-bottom: 24px;
}

.cs-pix-logo {
	width: 80px;
	height: auto;
	margin-bottom: 12px;
}

.cs-pix-header h2 {
	font-size: 20px;
	font-weight: 700;
	color: var(--cs-blue-dark);
	margin: 0 0 8px 0;
}

.cs-pix-header p {
	font-size: 14px;
	color: #666;
	margin: 0;
}

.cs-pix-form {
	background: var(--cs-gray-light);
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 24px;
	text-align: left;
}

.cs-pix-form label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: #333;
	margin-bottom: 8px;
}

.cs-pix-select {
	display: block;
	width: 100%;
	padding: 10px 14px;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	color: #333;
	margin-bottom: 16px;
	cursor: pointer;
	appearance: auto;
}

.cs-pix-select:focus {
	border-color: var(--cs-blue);
	outline: none;
	box-shadow: 0 0 0 3px rgba(69,138,173,0.15);
}

.cs-pix-btn {
	display: block;
	width: 100%;
	padding: 12px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: var(--cs-green);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s;
}

.cs-pix-btn:hover {
	background: var(--cs-green-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
	.cs-layout {
		flex-direction: column;
		padding: 10px;
	}

	.cs-sidebar {
		width: 100%;
	}

	.cs-content {
		padding: 16px;
	}
}

@media (max-width: 767.98px) {
	.cs-header { padding: 0 12px; }
	.cs-header-inner { gap: 8px; }

	.cs-header-info {
		font-size: 11px;
		gap: 4px;
	}

	.cs-logo img { max-height: 40px; }

	.cs-top-menus-grid {
		grid-template-columns: 1fr;
	}

	.cs-content {
		padding: 12px;
		border-radius: 6px;
	}

	/* Modal fullscreen mobile */
	#csModal .modal-dialog {
		margin: 0;
		max-width: 100%;
		width: 100%;
		height: 100%;
	}

	#csModal .modal-content {
		border: none;
		border-radius: 0;
		height: 100%;
	}

	#csModal .cs-modal-header {
		position: sticky;
		top: 0;
		z-index: 10;
		flex-shrink: 0;
	}

	#csModal .cs-modal-header .btn-close {
		width: 44px;
		height: 44px;
		padding: 0;
		opacity: 1;
	}

	#csModal .modal-body {
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		flex: 1 1 auto;
	}

	.cs-modal-iframe {
		height: calc(100vh - 56px);
	}
}

@media (max-width: 575.98px) {
	.cs-header-info {
		display: none;
	}
}

/* ===== LEGACY COMPAT ===== */
.style8 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	color: #FFFFFF;
}

.linknotcias {
	color: var(--cs-blue);
	text-decoration: none;
}

.linknotcias:hover {
	text-decoration: underline;
}
