﻿@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

* {
	font-family: 'Open Sans', sans-serif;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--grey: #F1F0F6;
	--dark-grey: #8D8D8D;
	--light: #fff;
	--dark: #000;
	--green: #81D43A;
	--light-green: #E3FFCB;
	--blue: #1775F1;
	--light-blue: #D0E4FF;
	--dark-blue: #0C5FCD;
	--red: #FC3B56;
}

html {
	overflow-x: hidden;
}

body {
	background: var(--grey);
	overflow-x: hidden;
}

a {
	text-decoration: none;
}

li {
	list-style: none;
}







/* SIDEBAR */
#sidebar {
	position: fixed;
	max-width: 260px;
	width: 100%;
	background: var(--light);
	top: 0;
	left: 0;
	height: 100%;
	overflow-y: auto;
	scrollbar-width: none;
	transition: all .3s ease;
	z-index: 200;
}

#sidebar.hide {
	max-width: 60px;
}

#sidebar.hide:hover {
	max-width: 260px;
}

#sidebar::-webkit-scrollbar {
	display: none;
}

#sidebar .brand {
	font-size: 24px;
	display: flex;
	align-items: center;
	height: 64px;
	font-weight: 700;
	color: var(--blue);
	position: sticky;
	top: 0;
	left: 0;
	z-index: 100;
	background: var(--light);
	transition: all .3s ease;
	padding: 0 6px;
}

#sidebar .icon {
	min-width: 48px;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-right: 6px;
}

#sidebar .icon-right {
	margin-left: auto;
	transition: all .3s ease;
}

#sidebar .side-menu {
	margin: 36px 0;
	padding: 0 20px;
	transition: all .3s ease;
}

#sidebar.hide .side-menu {
	padding: 0 6px;
}

#sidebar.hide:hover .side-menu {
	padding: 0 20px;
}

#sidebar .side-menu a {
	display: flex;
	align-items: center;
	font-size: 14px;
	color: var(--dark);
	padding: 12px 16px 12px 0;
	transition: all .3s ease;
	border-radius: 10px;
	margin: 4px 0;
	white-space: nowrap;
}

#sidebar .side-menu>li>a:hover {
	background: var(--grey);
}

#sidebar .side-menu>li>a.active .icon-right {
	transform: rotateZ(90deg);
}

#sidebar .side-menu>li>a.active,
#sidebar .side-menu>li>a.active:hover {
	background: var(--blue);
	color: var(--light);
}

#sidebar .divider {
	margin-top: 24px;
	font-size: 12px;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--dark-grey);
	transition: all .3s ease;
	white-space: nowrap;
}

#sidebar.hide:hover .divider {
	text-align: left;
}

#sidebar.hide .divider {
	text-align: center;
}

#sidebar .side-dropdown {
	padding-left: 54px;
	max-height: 0;
	overflow-y: hidden;
	transition: all .15s ease;
}

#sidebar .side-dropdown.show {
	max-height: 1000px;
}

#sidebar .side-dropdown a:hover {
	color: var(--blue);
}

#sidebar .ads {
	width: 100%;
	padding: 20px;
}

#sidebar.hide .ads {
	display: none;
}

#sidebar.hide:hover .ads {
	display: block;
}

#sidebar .ads .wrapper {
	background: var(--grey);
	padding: 20px;
	border-radius: 10px;
}

#sidebar .btn-upgrade {
	font-size: 14px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 12px 0;
	color: var(--light);
	background: var(--blue);
	transition: all .3s ease;
	border-radius: 5px;
	font-weight: 600;
	margin-bottom: 12px;
}

#sidebar .btn-upgrade:hover {
	background: var(--dark-blue);
}

#sidebar .ads .wrapper p {
	font-size: 12px;
	color: var(--dark-grey);
	text-align: center;
}

#sidebar .ads .wrapper p span {
	font-weight: 700;
}

/* SIDEBAR */





/* CONTENT */
#content {
	position: relative;
	width: calc(100% - 260px);
	left: 260px;
	transition: all .3s ease;
}

#sidebar.hide+#content {
	width: calc(100% - 60px);
	left: 60px;
}

/* NAVBAR */
nav {
	background: var(--light);
	height: 64px;
	padding: 0 20px;
	display: flex;
	align-items: center;
	grid-gap: 28px;
	position: sticky;
	top: 0;
	left: 0;
	z-index: 100;
}

nav .toggle-sidebar {
	font-size: 18px;
	cursor: pointer;
}

nav form {
	max-width: 400px;
	width: 100%;
	margin-right: auto;
}

nav .form-group {
	position: relative;
}

nav .form-group input {
	width: 100%;
	background: var(--grey);
	border-radius: 5px;
	border: none;
	outline: none;
	padding: 10px 36px 10px 16px;
	transition: all .3s ease;
}

nav .form-group input:focus {
	box-shadow: 0 0 0 1px var(--blue), 0 0 0 4px var(--light-blue);
}

nav .form-group .icon {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 16px;
	color: var(--dark-grey);
}

nav .nav-link {
	position: relative;
}

nav .nav-link .icon {
	font-size: 18px;
	color: var(--dark);
}

nav .nav-link .badge {
	position: absolute;
	top: -12px;
	right: -12px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid var(--light);
	background: var(--red);
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--light);
	font-size: 10px;
	font-weight: 700;
}

nav .divider {
	width: 1px;
	background: var(--grey);
	height: 12px;
	display: block;
}

nav .profile {
	position: relative;
}

nav .profile img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	cursor: pointer;
}

nav .profile .profile-link {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	background: var(--light);
	padding: 10px 0;
	box-shadow: 4px 4px 16px rgba(0, 0, 0, .1);
	border-radius: 10px;
	width: 160px;
	opacity: 0;
	pointer-events: none;
	transition: all .3s ease;
}

nav .profile .profile-link.show {
	opacity: 1;
	pointer-events: visible;
	top: 100%;
}

nav .profile .profile-link a {
	padding: 10px 16px;
	display: flex;
	grid-gap: 10px;
	font-size: 14px;
	color: var(--dark);
	align-items: center;
	transition: all .3s ease;
}

nav .profile .profile-link a:hover {
	background: var(--grey);
}

/* NAVBAR */



/* MAIN */
main {
	width: 100%;
	padding: 24px 20px 20px 20px;
}

main .title {
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 10px;
}

main .breadcrumbs {
	display: flex;
	grid-gap: 6px;
}

main .breadcrumbs li,
main .breadcrumbs li a {
	font-size: 14px;
}

main .breadcrumbs li a {
	color: var(--blue);
}

main .breadcrumbs li a.active,
main .breadcrumbs li.divider {
	color: var(--dark-grey);
	pointer-events: none;
}

main .info-data {
	margin-top: 36px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	grid-gap: 20px;
}

main .info-data .card {
	padding: 20px;
	border-radius: 10px;
	background: var(--light);
	box-shadow: 4px 4px 16px rgba(0, 0, 0, .05);
}

main .card .head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

main .card .head h2 {
	font-size: 24px;
	font-weight: 600;
}

main .card .head p {
	font-size: 14px;
}

main .card .head .icon {
	font-size: 20px;
	color: var(--green);
}

main .card .head .icon.down {
	color: var(--red);
}

main .card .progress {
	display: block;
	margin-top: 24px;
	height: 10px;
	width: 100%;
	border-radius: 10px;
	background: var(--grey);
	overflow-y: hidden;
	position: relative;
	margin-bottom: 4px;
}

main .card .progress::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: var(--blue);
	width: var(--value);
}

main .card .label {
	font-size: 14px;
	font-weight: 700;
}

main .data {
	display: flex;
	grid-gap: 20px;
	margin-top: 20px;
	flex-wrap: wrap;
}

main .data .content-data {
	flex-grow: 1;
	flex-basis: 400px;
	padding: 20px;
	background: var(--light);
	border-radius: 10px;
	box-shadow: 4px 4px 16px rgba(0, 0, 0, .1);
}

main .content-data .head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

main .content-data .head h3 {
	font-size: 20px;
	font-weight: 600;
}

main .content-data .head .menu {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

main .content-data .head .menu .icon {
	cursor: pointer;
}

main .content-data .head .menu-link {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 140px;
	background: var(--light);
	border-radius: 10px;
	box-shadow: 4px 4px 16px rgba(0, 0, 0, .1);
	padding: 10px 0;
	z-index: 100;
	opacity: 0;
	pointer-events: none;
	transition: all .3s ease;
}

main .content-data .head .menu-link.show {
	top: 100%;
	opacity: 1;
	pointer-events: visible;
}

main .content-data .head .menu-link a {
	display: block;
	padding: 6px 16px;
	font-size: 14px;
	color: var(--dark);
	transition: all .3s ease;
}

main .content-data .head .menu-link a:hover {
	background: var(--grey);
}

main .content-data .chart {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}

main .content-data .chart::-webkit-scrollbar {
	display: none;
}

main .chat-box {
	width: 100%;
	max-height: 360px;
	overflow-y: auto;
	scrollbar-width: none;
}

main .chat-box::-webkit-scrollbar {
	display: none;
}

main .chat-box .day {
	text-align: center;
	margin-bottom: 10px;
}

main .chat-box .day span {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 20px;
	background: var(--light-blue);
	color: var(--blue);
	font-size: 12px;
	font-weight: 600;
}

main .chat-box .msg img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
}

main .chat-box .msg {
	display: flex;
	grid-gap: 6px;
	align-items: flex-start;
}

main .chat-box .profile .username {
	font-size: 14px;
	font-weight: 600;
	display: inline-block;
	margin-right: 6px;
}

main .chat-box .profile .time {
	font-size: 12px;
	color: var(--dark-grey);
}

main .chat-box .chat p {
	font-size: 14px;
	padding: 6px 10px;
	display: inline-block;
	max-width: 400px;
	line-height: 150%;
}

main .chat-box .msg:not(.me) .chat p {
	border-radius: 0 5px 5px 5px;
	background: var(--blue);
	color: var(--light);
}

main .chat-box .msg.me {
	justify-content: flex-end;
}

main .chat-box .msg.me .profile {
	text-align: right;
}

main .chat-box .msg.me p {
	background: var(--grey);
	border-radius: 5px 0 5px 5px;
}

main form {
	margin-top: 6px;
}

main .form-group {
	width: 100%;
	display: grid;
	grid-gap: 10px;
}

main .form-group input {
	flex-grow: 1;
	padding: 10px 16px;
	border-radius: 5px;
	outline: none;
	background: var(--grey);
	border: none;
	transition: all .3s ease;
	width: 100%;
}

main .form-group input:focus {
	box-shadow: 0 0 0 1px var(--blue), 0 0 0 4px var(--light-blue);
}

main .btn-send {
	margin-top: 20px;
	padding: 10px 60px;
	background: var(--blue);
	border-radius: 5px;
	color: var(--light);
	cursor: pointer;
	border: none;
	transition: all .3s ease;
}

main .btn-send:hover {
	background: var(--dark-blue);
}

main .form-button {
	text-align: center;
}

main .data-login {
	display: block;
	grid-gap: 20px;
	margin-top: 20px;
	flex-wrap: wrap;
}

main .data-login {
	flex-grow: 1;
	padding: 20px;
	background: var(--light);
	border-radius: 10px;
	box-shadow: 4px 4px 16px rgba(0, 0, 0, .1);
	justify-content: center;
	align-items: center;
}

/* Estilos movidos desde la vista trabajadores_ver.php */
.head-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.head-btn {
	padding: 8px 14px;
	font-size: 14px;
}

.filters-row {
	margin: 12px 0 18px;
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

.filter-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.filter-label {
	font-weight: 600;
	color: var(--dark-grey);
	margin-right: 4px;
}

.filter-select {
	padding: 8px 10px;
	border-radius: 6px;
	border: 1px solid #e6e6e9;
	background: var(--grey);
	display: block;
}

/* botón limpiar filtros */
.clear-filters-btn {
	margin-left: auto;
	padding: 8px 12px;
	border-radius: 6px;
	border: none;
	background: var(--grey);
	cursor: pointer;
}

/* tabla personalizada */
.tabla-trabajadores {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 8px;
}

.tabla-trabajadores.dataTable tbody tr {
	background: var(--light);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
	border-radius: 8px;
}

.tabla-trabajadores.dataTable tbody td {
	vertical-align: middle;
	padding: 12px 10px;
}

.tabla-trabajadores thead th {
	font-weight: 700;
	color: var(--dark-grey);
	font-size: 13px;
	padding-bottom: 8px;
}

/* columna id */
.col-id {
	width: 48px;
}

/* avatar */
.tx-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* centrados y acciones */
.dt-center {
	text-align: center;
}

.action-link {
	color: var(--blue);
	font-weight: 600;
}

/* estado resaltado */
.estado-badge {
	font-weight: 700;
	color: var(--dark-grey);
}

.estado-badge:empty {
	opacity: 0.6;
}

/* ajustar wrapper al cargar DataTables */
#tablaTrabajadores_wrapper {
	margin-top: 8px;
}

/* Fin estilos movidos */

/* MAIN */
/* CONTENT */

/* Pagos view specific adjustments */
.filter-date {
	padding: 8px 10px;
	border-radius: 6px;
	border: 1px solid #e6e6e9;
	background: var(--light);
	color: var(--dark);
	min-width: 160px;
}

.clear-filters-btn {
	margin-left: auto;
	padding: 8px 12px;
	border-radius: 6px;
	border: none;
	background: var(--grey);
	cursor: pointer;
}

/* Table tweaks for pagos */
#tablaPagos_wrapper {
	margin-top: 8px;
}

.tabla-trabajadores thead th {
	white-space: nowrap;
}

.tabla-trabajadores tbody tr:hover {
	transform: translateY(-2px);
	transition: all .12s ease;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.amount {
	font-weight: 700;
	color: var(--dark);
}

.comprobante-link {
	color: var(--blue);
	font-weight: 600;
}

.action-link {
	color: var(--blue);
	font-weight: 600;
}

/* Ensure filter layout matches template */
.filters-row {
	align-items: center;
	gap: 12px;
}

.filter-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* responsive adjustments */
@media (max-width:700px) {
	.filter-item {
		width: 100%;
	}

	.clear-filters-btn {
		margin-left: 0;
		width: 100%;
	}
}

/* Pagos form / modificar: adaptar al estilo de la plantilla */
.pagos-form {
	padding: 12px 0 0;
}

.pagos-form .form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	margin-bottom: 12px;
}

.pagos-form .form-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pagos-form .form-label {
	font-weight: 600;
	color: var(--dark-grey);
	font-size: 13px;
}

.pagos-form .form-control {
	padding: 10px 12px;
	border-radius: 6px;
	border: none;
	background: var(--grey);
	outline: none;
	transition: box-shadow .15s ease;
}

.pagos-form .form-control:focus {
	box-shadow: 0 0 0 1px var(--blue), 0 0 0 6px rgba(16, 111, 241, 0.08);
	background: var(--light);
}

/* File input: clean look */
.pagos-form .file-field .file-input {
	padding: 8px 10px;
	background: transparent;
	cursor: pointer;
}

/* preview area */
.pagos-form .comprobante-preview {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
}

.pagos-form .comprobante-preview .tx-avatar {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pagos-form .comprobante-link {
	color: var(--blue);
	font-weight: 600;
}

/* form actions */
.pagos-form .form-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 8px;
}

.pagos-form .cancel-btn {
	margin-left: 8px;
	padding: 10px 18px;
	background: transparent;
	border: 1px solid #e6e6e9;
	border-radius: 6px;
	color: var(--dark);
}

/* small helper text */
.pagos-form .muted {
	color: var(--dark-grey);
	font-size: 13px;
}

/* Responsive tweaks */
@media (max-width:700px) {
	.pagos-form .form-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.pagos-form .cancel-btn {
		width: 100%;
		margin-left: 0;
	}
}

/* End pagos form styles */

/* Action buttons for tables */
.col-actions {
	width: 140px;
	text-align: center;
}

.table-actions {
	text-align: center;
}

/* When DataTables applies table-actions to td, make it flex */
td.table-actions {
	display: flex !important;
	gap: 10px;
	justify-content: center;
	align-items: center;
}

.action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: all .2s ease;
	background: transparent;
	color: var(--dark);
	text-decoration: none;
}

.action-btn i {
	font-size: 20px;
	line-height: 1;
}

.action-btn.btn-edit {
	background: var(--light-blue);
	color: var(--blue);
	box-shadow: 0 2px 4px rgba(23, 117, 241, 0.1);
}

.action-btn.btn-edit:hover {
	background: var(--blue);
	color: var(--light);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(23, 117, 241, 0.35);
}

.action-btn.btn-delete {
	background: #ffe5e5;
	color: var(--red);
	box-shadow: 0 2px 4px rgba(252, 59, 86, 0.1);
}

.action-btn.btn-delete:hover {
	background: var(--red);
	color: var(--light);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(252, 59, 86, 0.35);
}

/* Ensure head-btn styling */
.head-btn {
	padding: 8px 14px;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Status badges para pagos */
.status-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.status-pendiente {
	background-color: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}

.status-verificado {
	background-color: #cfffd7;
	color: #045f39;
	border: 1px solid #b6fec6;
}

.status-rechazado {
	background-color: #f8d7da;
	color: #842029;
	border: 1px solid #f5c2c7;
}

.status-impreso {
	background-color: #c2cff3;
	color: #1434c2;
	border: 1px solid #b3bee4;
}

.status-retirado {
	font-weight: 600;
	color: var(--dark-grey);
	font-size: 13px;
}

.pagos-form .form-control {
	padding: 10px 12px;
	border-radius: 6px;
	border: none;
	background: var(--grey);
	outline: none;
	transition: box-shadow .15s ease;
}

.pagos-form .form-control:focus {
	box-shadow: 0 0 0 1px var(--blue), 0 0 0 6px rgba(16, 111, 241, 0.08);
	background: var(--light);
}

/* File input: clean look */
.pagos-form .file-field .file-input {
	padding: 8px 10px;
	background: transparent;
	cursor: pointer;
}

/* preview area */
.pagos-form .comprobante-preview {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
}

.pagos-form .comprobante-preview .tx-avatar {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pagos-form .comprobante-link {
	color: var(--blue);
	font-weight: 600;
}

/* form actions */
.pagos-form .form-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 8px;
}

.pagos-form .cancel-btn {
	margin-left: 8px;
	padding: 10px 18px;
	background: transparent;
	border: 1px solid #e6e6e9;
	border-radius: 6px;
	color: var(--dark);
}

/* small helper text */
.pagos-form .muted {
	color: var(--dark-grey);
	font-size: 13px;
}

/* Responsive tweaks */
@media (max-width:700px) {
	.pagos-form .form-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.pagos-form .cancel-btn {
		width: 100%;
		margin-left: 0;
	}
}

/* End pagos form styles */

/* Action buttons for tables */
.col-actions {
	width: 140px;
	text-align: center;
}

.table-actions {
	text-align: center;
}

/* When DataTables applies table-actions to td, make it flex */
td.table-actions {
	display: flex !important;
	gap: 10px;
	justify-content: center;
	align-items: center;
}

.action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: all .2s ease;
	background: transparent;
	color: var(--dark);
	text-decoration: none;
}

.action-btn i {
	font-size: 20px;
	line-height: 1;
}

.action-btn.btn-edit {
	background: var(--light-blue);
	color: var(--blue);
	box-shadow: 0 2px 4px rgba(23, 117, 241, 0.1);
}

.action-btn.btn-edit:hover {
	background: var(--blue);
	color: var(--light);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(23, 117, 241, 0.35);
}

.action-btn.btn-delete {
	background: #ffe5e5;
	color: var(--red);
	box-shadow: 0 2px 4px rgba(252, 59, 86, 0.1);
}

.action-btn.btn-delete:hover {
	background: var(--red);
	color: var(--light);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(252, 59, 86, 0.35);
}

/* Ensure head-btn styling */
.head-btn {
	padding: 8px 14px;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Status badges para pagos */
.status-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.status-pendiente {
	background-color: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}

.status-verificado {
	background-color: #cfffd7;
	color: #045f39;
	border: 1px solid #b6fec6;
}

.status-rechazado {
	background-color: #f8d7da;
	color: #842029;
	border: 1px solid #f5c2c7;
}

.status-impreso {
	background-color: #c2cff3;
	color: #1434c2;
	border: 1px solid #b3bee4;
}

.status-retirado {
	background-color: #e6ece9;
	color: #000000;
	border: 1px solid #dde0df;
}

.status-default {
	background-color: #e9ecef;
	color: #495057;
	border: 1px solid #dee2e6;
}

/* ============================================
   RESPONSIVE STYLES - MEDIA QUERIES
   ============================================ */

/* Tablets and smaller desktops (max-width: 1024px) */
@media screen and (max-width: 1024px) {

	/* Adjust main content grid */
	main .info-data {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		grid-gap: 16px;
	}

	/* Adjust data layout */
	main .data {
		flex-direction: column;
	}

	main .data .content-data {
		flex-basis: 100%;
	}

	/* Adjust table wrapper */
	main .content-data .chart {
		overflow-x: auto;
	}

	/* Adjust form rows */
	.pagos-form .form-row {
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	}
}

/* Small tablets (max-width: 768px) */
@media screen and (max-width: 768px) {

	/* Hide sidebar by default on mobile */
	#sidebar {
		max-width: 0;
		overflow: hidden;
	}

	#sidebar.show {
		max-width: 260px;
		box-shadow: 4px 0 16px rgba(0, 0, 0, 0.1);
	}

	/* Adjust content to full width */
	#content {
		width: 100%;
		left: 0;
	}

	#sidebar.hide+#content {
		width: 100%;
		left: 0;
	}

	/* Navbar adjustments */
	nav {
		padding: 0 12px;
		grid-gap: 12px;
	}

	nav form {
		max-width: 200px;
	}

	nav .profile {
		position: relative;
		right: auto;
		top: auto;
	}

	/* Main content adjustments */
	main {
		padding: 16px 12px;
	}

	main .title {
		font-size: 22px;
	}

	/* Info cards - single column on mobile */
	main .info-data {
		grid-template-columns: 1fr;
		grid-gap: 12px;
		margin-top: 24px;
	}

	main .info-data .card {
		padding: 16px;
	}

	/* Content data cards */
	main .content-data {
		padding: 16px;
	}

	main .content-data .head h3 {
		font-size: 18px;
	}

	/* Head actions - stack buttons */
	.head-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.head-btn {
		width: 100%;
		justify-content: center;
	}

	/* Filters - stack vertically */
	.filters-row {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.filter-item {
		width: 100%;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.filter-select,
	.filter-date {
		flex: 1;
		min-width: auto;
	}

	.clear-filters-btn {
		width: 100%;
		margin-left: 0;
	}

	/* Table adjustments */
	.tabla-trabajadores {
		font-size: 13px;
	}

	.tabla-trabajadores thead th {
		font-size: 12px;
		padding: 8px 6px;
	}

	.tabla-trabajadores.dataTable tbody td {
		padding: 10px 6px;
	}

	/* Avatar size reduction */
	.tx-avatar {
		width: 32px;
		height: 32px;
	}

	/* Action buttons smaller */
	.action-btn {
		width: 32px;
		height: 32px;
	}

	.action-btn i {
		font-size: 16px;
	}

	td.table-actions {
		gap: 6px;
	}

	/* Form adjustments */
	.pagos-form .form-row {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.pagos-form .form-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.pagos-form .cancel-btn {
		width: 100%;
		margin-left: 0;
	}

	/* Chat box adjustments */
	main .chat-box .chat p {
		max-width: 280px;
		font-size: 13px;
	}

	/* Status badges */
	.status-badge {
		font-size: 11px;
		padding: 4px 8px;
	}

	/* DataTables responsive adjustments */
	.dataTables_wrapper .dataTables_length,
	.dataTables_wrapper .dataTables_filter {
		margin-bottom: 12px;
	}

	.dataTables_wrapper .dataTables_info,
	.dataTables_wrapper .dataTables_paginate {
		margin-top: 12px;
	}
}

/* Mobile devices (max-width: 576px) */
@media screen and (max-width: 576px) {

	/* Sidebar adjustments */
	#sidebar {
		position: fixed;
		z-index: 1000;
	}

	#sidebar.show {
		max-width: 240px;
	}

	/* Navbar */
	nav {
		padding: 0 8px;
		grid-gap: 8px;
		height: 56px;
	}

	nav .toggle-sidebar {
		font-size: 20px;
	}

	nav form {
		display: none;
	}

	nav .divider {
		display: none;
	}

	nav .profile img {
		width: 32px;
		height: 32px;
	}

	/* Main content */
	main {
		padding: 12px 8px;
	}

	main .title {
		font-size: 20px;
		margin-bottom: 8px;
	}

	main .breadcrumbs li,
	main .breadcrumbs li a {
		font-size: 12px;
	}

	/* Cards */
	main .info-data {
		margin-top: 16px;
		grid-gap: 10px;
	}

	main .info-data .card {
		padding: 12px;
	}

	main .card .head h2 {
		font-size: 20px;
	}

	main .card .head p {
		font-size: 12px;
	}

	/* Content data */
	main .content-data {
		padding: 12px;
	}

	main .content-data .head {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin-bottom: 16px;
	}

	main .content-data .head h3 {
		font-size: 16px;
	}

	/* Tables - force horizontal scroll */
	main .content-data .chart {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.tabla-trabajadores {
		min-width: 600px;
		font-size: 12px;
	}

	.tabla-trabajadores thead th {
		font-size: 11px;
		padding: 8px 4px;
		white-space: nowrap;
	}

	.tabla-trabajadores.dataTable tbody td {
		padding: 8px 4px;
	}

	/* Avatar even smaller */
	.tx-avatar {
		width: 28px;
		height: 28px;
	}

	/* Action buttons */
	.action-btn {
		width: 28px;
		height: 28px;
	}

	.action-btn i {
		font-size: 14px;
	}

	td.table-actions {
		gap: 4px;
	}

	/* Forms */
	main .form-group input {
		padding: 8px 12px;
		font-size: 14px;
	}

	main .btn-send {
		padding: 10px 40px;
		font-size: 14px;
	}

	.pagos-form {
		padding: 8px 0 0;
	}

	.pagos-form .form-field {
		gap: 6px;
	}

	.pagos-form .form-label {
		font-size: 12px;
	}

	.pagos-form .form-control {
		padding: 8px 10px;
		font-size: 14px;
	}

	.pagos-form .comprobante-preview .tx-avatar {
		width: 48px;
		height: 48px;
	}

	/* Filters */
	.filter-item {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}

	.filter-label {
		font-size: 13px;
	}

	.filter-select,
	.filter-date {
		width: 100%;
		padding: 8px;
		font-size: 14px;
	}

	.clear-filters-btn {
		padding: 8px;
		font-size: 14px;
	}

	/* Status badges */
	.status-badge {
		font-size: 10px;
		padding: 4px 6px;
		letter-spacing: 0.3px;
	}

	.estado-badge {
		font-size: 12px;
	}

	/* Chat adjustments */
	main .chat-box .msg img {
		width: 24px;
		height: 24px;
	}

	main .chat-box .profile .username {
		font-size: 13px;
	}

	main .chat-box .profile .time {
		font-size: 11px;
	}

	main .chat-box .chat p {
		max-width: 220px;
		font-size: 12px;
		padding: 6px 8px;
	}

	/* DataTables controls */
	.dataTables_wrapper .dataTables_length select,
	.dataTables_wrapper .dataTables_filter input {
		font-size: 13px;
		padding: 6px;
	}

	.dataTables_wrapper .dataTables_paginate .paginate_button {
		padding: 4px 8px;
		font-size: 12px;
	}

	/* Profile dropdown */
	nav .profile .profile-link {
		width: 140px;
		right: -10px;
	}

	nav .profile .profile-link a {
		padding: 8px 12px;
		font-size: 13px;
	}
}

/* Mobile devices (max-width: 576px) */
@media screen and (max-width: 576px) {

	/* Sidebar adjustments */
	#sidebar {
		position: fixed;
		z-index: 1000;
	}

	#sidebar.show {
		max-width: 240px;
	}

	/* Navbar */
	nav {
		padding: 0 8px;
		grid-gap: 8px;
		height: 56px;
	}

	nav .toggle-sidebar {
		font-size: 20px;
	}

	nav form {
		display: none;
	}

	nav .divider {
		display: none;
	}

	nav .profile img {
		width: 32px;
		height: 32px;
	}

	/* Main content */
	main {
		padding: 12px 8px;
	}

	main .title {
		font-size: 20px;
		margin-bottom: 8px;
	}

	main .breadcrumbs li,
	main .breadcrumbs li a {
		font-size: 12px;
	}

	/* Cards */
	main .info-data {
		margin-top: 16px;
		grid-gap: 10px;
	}

	main .info-data .card {
		padding: 12px;
	}

	main .card .head h2 {
		font-size: 20px;
	}

	main .card .head p {
		font-size: 12px;
	}

	/* Content data */
	main .content-data {
		padding: 12px;
	}

	main .content-data .head {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin-bottom: 16px;
	}

	main .content-data .head h3 {
		font-size: 16px;
	}

	/* Tables - force horizontal scroll */
	main .content-data .chart {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.tabla-trabajadores {
		min-width: 600px;
		font-size: 12px;
	}

	.tabla-trabajadores thead th {
		font-size: 11px;
		padding: 6px 4px;
		white-space: nowrap;
	}

	.tabla-trabajadores.dataTable tbody td {
		padding: 8px 4px;
	}

	/* Avatar even smaller */
	.tx-avatar {
		width: 28px;
		height: 28px;
	}

	/* Action buttons */
	.action-btn {
		width: 28px;
		height: 28px;
	}

	.action-btn i {
		font-size: 14px;
	}

	td.table-actions {
		gap: 4px;
	}

	/* Forms */
	main .form-group input {
		padding: 8px 12px;
		font-size: 14px;
	}

	main .btn-send {
		padding: 10px 40px;
		font-size: 14px;
	}

	.pagos-form {
		padding: 8px 0 0;
	}

	.pagos-form .form-field {
		gap: 6px;
	}

	.pagos-form .form-label {
		font-size: 12px;
	}

	.pagos-form .form-control {
		padding: 8px 10px;
		font-size: 14px;
	}

	.pagos-form .comprobante-preview .tx-avatar {
		width: 48px;
		height: 48px;
	}

	/* Filters */
	.filter-item {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}

	.filter-label {
		font-size: 13px;
	}

	.filter-select,
	.filter-date {
		width: 100%;
		padding: 8px;
		font-size: 14px;
	}

	.clear-filters-btn {
		padding: 8px;
		font-size: 14px;
	}

	/* Status badges */
	.status-badge {
		font-size: 10px;
		padding: 4px 6px;
		letter-spacing: 0.3px;
	}

	.estado-badge {
		font-size: 12px;
	}

	/* Chat adjustments */
	main .chat-box .msg img {
		width: 24px;
		height: 24px;
	}

	main .chat-box .profile .username {
		font-size: 13px;
	}

	main .chat-box .profile .time {
		font-size: 11px;
	}

	main .chat-box .chat p {
		max-width: 220px;
		font-size: 12px;
		padding: 6px 8px;
	}

	/* DataTables controls */
	.dataTables_wrapper .dataTables_length select,
	.dataTables_wrapper .dataTables_filter input {
		font-size: 13px;
		padding: 6px;
	}

	.dataTables_wrapper .dataTables_paginate .paginate_button {
		padding: 4px 8px;
		font-size: 12px;
	}

	/* Profile dropdown */
	nav .profile .profile-link {
		width: 140px;
		right: -10px;
	}

	nav .profile .profile-link a {
		padding: 8px 12px;
		font-size: 13px;
	}
}

/* Extra small devices (max-width: 400px) */
@media screen and (max-width: 400px) {
	#sidebar.show {
		max-width: 220px;
	}

	main .title {
		font-size: 18px;
	}

	main .card .head h2 {
		font-size: 18px;
	}

	main .content-data .head h3 {
		font-size: 15px;
	}

	.tabla-trabajadores {
		min-width: 500px;
		font-size: 11px;
	}

	.tabla-trabajadores thead th {
		font-size: 10px;
		padding: 5px 3px;
	}

	.tabla-trabajadores.dataTable tbody td {
		padding: 6px 3px;
	}

	.tx-avatar {
		width: 24px;
		height: 24px;
	}

	.action-btn {
		width: 26px;
		height: 26px;
	}


}

/* Mobile adjustments (max-width: 576px) */
@media screen and (max-width: 576px) {

	/* Tables - force horizontal scroll */
	main .content-data .chart {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.tabla-trabajadores {
		min-width: 600px;
		font-size: 12px;
	}

	.tabla-trabajadores thead th {
		font-size: 11px;
		padding: 6px 4px;
		white-space: nowrap;
	}

	.tabla-trabajadores.dataTable tbody td {
		padding: 8px 4px;
	}

	/* Avatar even smaller */
	.tx-avatar {
		width: 28px;
		height: 28px;
	}

	/* Action buttons */
	.action-btn {
		width: 28px;
		height: 28px;
	}

	.action-btn i {
		font-size: 14px;
	}

	td.table-actions {
		gap: 4px;
	}

	/* Forms */
	main .form-group input {
		padding: 8px 12px;
		font-size: 14px;
	}

	main .btn-send {
		padding: 10px 40px;
		font-size: 14px;
	}

	.pagos-form {
		padding: 8px 0 0;
	}

	.pagos-form .form-field {
		gap: 6px;
	}

	.pagos-form .form-label {
		font-size: 12px;
	}

	.pagos-form .form-control {
		padding: 8px 10px;
		font-size: 14px;
	}

	.pagos-form .comprobante-preview .tx-avatar {
		width: 48px;
		height: 48px;
	}

	/* Filters */
	.filter-item {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}

	.filter-label {
		font-size: 13px;
	}

	.filter-select,
	.filter-date {
		width: 100%;
		padding: 8px;
		font-size: 14px;
	}

	.clear-filters-btn {
		padding: 8px;
		font-size: 14px;
	}

	/* Status badges */
	.status-badge {
		font-size: 10px;
		padding: 4px 6px;
		letter-spacing: 0.3px;
	}

	.estado-badge {
		font-size: 12px;
	}

	/* Chat adjustments */
	main .chat-box .msg img {
		width: 24px;
		height: 24px;
	}

	main .chat-box .profile .username {
		font-size: 13px;
	}

	main .chat-box .profile .time {
		font-size: 11px;
	}

	main .chat-box .chat p {
		max-width: 220px;
		font-size: 12px;
		padding: 6px 8px;
	}

	/* DataTables controls */
	.dataTables_wrapper .dataTables_length select,
	.dataTables_wrapper .dataTables_filter input {
		font-size: 13px;
		padding: 6px;
	}

	.dataTables_wrapper .dataTables_paginate .paginate_button {
		padding: 4px 8px;
		font-size: 12px;
	}

	/* Profile dropdown */
	nav .profile .profile-link {
		width: 140px;
		right: -10px;
	}

	nav .profile .profile-link a {
		padding: 8px 12px;
		font-size: 13px;
	}
}

/* Extra small devices (max-width: 400px) */
@media screen and (max-width: 400px) {
	#sidebar.show {
		max-width: 220px;
	}

	main .title {
		font-size: 18px;
	}

	main .card .head h2 {
		font-size: 18px;
	}

	main .content-data .head h3 {
		font-size: 15px;
	}

	.tabla-trabajadores {
		min-width: 500px;
		font-size: 11px;
	}

	.tabla-trabajadores thead th {
		font-size: 10px;
		padding: 5px 3px;
	}

	.tabla-trabajadores.dataTable tbody td {
		padding: 6px 3px;
	}

	.tx-avatar {
		width: 24px;
		height: 24px;
	}

	.action-btn {
		width: 26px;
		height: 26px;
	}

	.action-btn i {
		font-size: 13px;
	}

	main .btn-send {
		padding: 8px 30px;
		font-size: 13px;
	}
}

/* Landscape orientation adjustments for mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
	#sidebar {
		max-width: 0;
	}

	#sidebar.show {
		max-width: 200px;
	}

	nav {
		height: 48px;
	}

	main {
		padding: 8px;
	}

	main .title {
		font-size: 16px;
		margin-bottom: 6px;
	}
}

/* Print styles */
@media print {

	#sidebar,
	nav,
	.head-actions,
	.filters-row,
	.action-btn,
	.action-link,
	.clear-filters-btn {
		display: none !important;
	}

	#content {
		width: 100%;
		left: 0;
	}

	main {
		padding: 0;
	}
}

.pagos-form .form-field {
	gap: 6px;
}

.pagos-form .form-label {
	font-size: 12px;
}

.pagos-form .form-control {
	padding: 8px 10px;
	font-size: 14px;
}

.pagos-form .comprobante-preview .tx-avatar {
	width: 48px;
	height: 48px;
}

/* Filters */
.filter-item {
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
}

.filter-label {
	font-size: 13px;
}

.filter-select,
.filter-date {
	width: 100%;
	padding: 8px;
	font-size: 14px;
}

.clear-filters-btn {
	padding: 8px;
	font-size: 14px;
}

/* Status badges */
.status-badge {
	font-size: 10px;
	padding: 4px 6px;
	letter-spacing: 0.3px;
}

.estado-badge {
	font-size: 12px;
}

/* Chat adjustments */
main .chat-box .msg img {
	width: 24px;
	height: 24px;
}

main .chat-box .profile .username {
	font-size: 13px;
}

main .chat-box .profile .time {
	font-size: 11px;
}

main .chat-box .chat p {
	max-width: 220px;
	font-size: 12px;
	padding: 6px 8px;
}

/* DataTables controls */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
	font-size: 13px;
	padding: 6px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
	padding: 4px 8px;
	font-size: 12px;
}

/* Profile dropdown */
nav .profile .profile-link {
	width: 140px;
	right: -10px;
}

nav .profile .profile-link a {
	padding: 8px 12px;
	font-size: 13px;
}
}

/* Extra small devices (max-width: 400px) */
@media screen and (max-width: 400px) {
	#sidebar.show {
		max-width: 220px;
	}

	main .title {
		font-size: 18px;
	}

	main .card .head h2 {
		font-size: 18px;
	}

	main .content-data .head h3 {
		font-size: 15px;
	}

	.tabla-trabajadores {
		min-width: 500px;
		font-size: 11px;
	}

	.tabla-trabajadores thead th {
		font-size: 10px;
		padding: 5px 3px;
	}

	.tabla-trabajadores.dataTable tbody td {
		padding: 6px 3px;
	}

	.tx-avatar {
		width: 24px;
		height: 24px;
	}

	.action-btn {
		width: 26px;
		height: 26px;
	}

	.action-btn i {
		font-size: 13px;
	}

	main .btn-send {
		padding: 8px 30px;
		font-size: 13px;
	}
}

/* Landscape orientation adjustments for mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
	#sidebar {
		max-width: 0;
	}

	#sidebar.show {
		max-width: 200px;
	}

	nav {
		height: 48px;
	}

	main {
		padding: 8px;
	}

	main .title {
		font-size: 16px;
		margin-bottom: 6px;
	}
}

/* Print styles */
@media print {

	#sidebar,
	nav,
	.head-actions,
	.filters-row,
	.action-btn,
	.action-link,
	.clear-filters-btn {
		display: none !important;
	}

	#content {
		width: 100%;
		left: 0;
	}

	main {
		padding: 0;
	}

	.tabla-trabajadores {
		font-size: 10px;
	}

	.tabla-trabajadores thead th,
	.tabla-trabajadores tbody td {
		padding: 4px;
	}
}

/* ============================================
   ADDITIONAL DATATABLES RESPONSIVE FIXES
   ============================================ */

/* DataTables wrapper responsive improvements */
.dataTables_wrapper {
	width: 100%;
	overflow-x: auto;
}

/* Ensure DataTables controls are responsive */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
	font-size: 14px;
}

/* Tablet adjustments for DataTables (max-width: 768px) */
@media screen and (max-width: 768px) {

	/* Stack DataTables controls vertically */
	.dataTables_wrapper .dataTables_length,
	.dataTables_wrapper .dataTables_filter {
		float: none !important;
		text-align: left !important;
		margin-bottom: 10px;
	}

	.dataTables_wrapper .dataTables_info,
	.dataTables_wrapper .dataTables_paginate {
		float: none !important;
		text-align: center !important;
		margin-top: 10px;
	}

	/* Make table container scrollable */
	.dataTables_wrapper .dataTables_scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* Ensure table doesn't break layout */
	.dataTables_wrapper table {
		width: 100% !important;
		max-width: none !important;
	}

	/* Adjust pagination for mobile */
	.dataTables_wrapper .dataTables_paginate .paginate_button {
		padding: 6px 10px;
		margin: 2px;
		font-size: 13px;
	}

	/* Make select and input full width on mobile */
	.dataTables_wrapper .dataTables_length select,
	.dataTables_wrapper .dataTables_filter input {
		width: 100%;
		max-width: 200px;
		margin-top: 5px;
	}

	/* Buttons */
	.btn-send,
	.head-btn,
	button,
	.action-btn {
		min-height: 44px;
		padding: 10px 16px;
	}

	.head-actions,
	.form-actions {
		display: flex;
		flex-direction: column;
		gap: 10px;
		width: 100%;
	}

	.head-actions .btn-send,
	.head-actions .head-btn,
	.form-actions button,
	.form-actions .btn-send {
		width: 100%;
		justify-content: center;
	}

	/* DataTables Responsive Extension */
	table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
	table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
		margin-right: 8px;
	}

	table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td.dtr-control:before,
	table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th.dtr-control:before {
		background-color: var(--blue);
	}

	table.dataTable>tbody>tr.child ul.dtr-details {
		width: 100%;
	}

	table.dataTable>tbody>tr.child ul.dtr-details>li {
		padding: 8px 0;
		border-bottom: 1px solid var(--grey);
	}

	/* Table Overflow */
	.content-data {
		overflow: visible;
	}

	.content-data .chart {
		margin: 0 -16px;
		padding: 0 16px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.tabla-trabajadores {
		margin-bottom: 1rem;
	}

	/* Form Buttons */
	.form-button {
		width: 100%;
	}

	.form-button .btn-send {
		width: 100%;
		max-width: none;
	}
}

/* Mobile adjustments (max-width: 576px) */
@media screen and (max-width: 576px) {

	/* DataTables */
	.dataTables_wrapper .dataTables_length,
	.dataTables_wrapper .dataTables_filter,
	.dataTables_wrapper .dataTables_info,
	.dataTables_wrapper .dataTables_paginate {
		font-size: 12px;
	}

	.dataTables_wrapper .dataTables_paginate .paginate_button {
		padding: 4px 8px;
		margin: 1px;
		font-size: 11px;
	}

	.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
	.dataTables_wrapper .dataTables_paginate .paginate_button.next {
		padding: 4px 6px;
	}

	.dataTables_wrapper {
		padding: 0;
	}

	.dataTables_wrapper .dataTables_length select,
	.dataTables_wrapper .dataTables_filter input {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	/* Chart/Table Scroll */
	.chart {
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.chart::after {
		content: '';
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 20px;
		background: linear-gradient(to left, rgba(0, 0, 0, 0.1), transparent);
		pointer-events: none;
		opacity: 0;
		transition: opacity 0.3s;
	}

	.chart.scrollable::after {
		opacity: 1;
	}

	/* Buttons */
	.btn-send,
	.head-btn,
	button {
		font-size: 14px;
		padding: 12px 16px;
	}

	.action-btn {
		min-height: auto;
		width: 32px;
		height: 32px;
		padding: 0;
	}

	.clear-filters-btn {
		width: 100%;
		padding: 10px;
		font-size: 14px;
	}

	/* Filters */
	.filters-row {
		margin: 12px 0;
	}

	.filter-item {
		margin-bottom: 8px;
	}

	.filter-select,
	.filter-date {
		width: 100%;
		padding: 10px;
		font-size: 14px;
		border-radius: 6px;
	}
}

/* Extra small devices (max-width: 400px) */
@media screen and (max-width: 400px) {
	.content-data {
		padding: 10px;
	}

	.content-data .head {
		margin-bottom: 12px;
	}

	.dataTables_wrapper .dataTables_length label,
	.dataTables_wrapper .dataTables_filter label {
		display: flex;
		flex-direction: column;
		gap: 5px;
	}

	.dataTables_wrapper .dataTables_length select,
	.dataTables_wrapper .dataTables_filter input {
		margin-left: 0 !important;
	}
}