/*-------------------------------------------------------------------*/
/* Custom styles for sidebar
/*-------------------------------------------------------------------*/

/* Bulletproof override even if template has bg-light */
#app-sidebar,
#app-sidebar.sidebar,
#app-sidebar.bg-light,
aside.sidebar,
aside.sidebar.bg-light {
	background-color: #00002f !important;  /* dark navy */
	/*color: #ffeb3b !important;						 /* yellow text */
	color: yellow;						 /* yellow text */
	border-right: 1px solid rgba(255,255,255,.2);
}

/* Core box */
aside.sidebar {
	position: sticky;			 /* stays visible while scrolling */
	top: 0;
	height: 100vh;				 /* full viewport height */
	overflow-y: auto;			 /* its own scroll */
	padding: 0.75rem 1rem;
}

/* Text of user info: username (pais) */
aside.sidebar li.mb-2 .text-muted.small.d-block {
	color: #fff176 !important; /* Lighter yellow on hover */
	text-align: center;
}

/* Separator line */
.sidebar-separator {
	border: none;
	border-top: 1px solid #ffeb3b; /* yellow line on dark bg */
	margin: 10px 0;
}

/* Reset list spacing */
aside.sidebar li.nav-item { 
	margin: -4px 0px; 
	padding: 1px 4px; 
}

/* LINKS — make them yellow */
aside.sidebar a,
aside.sidebar .nav-link {
	/*color: #ffeb3b;									/* yellow */
	color: cyan;						 /* yellow text */
	display: block;
	padding: .25rem 0;
	text-decoration: none;
}
aside.sidebar a:hover,
aside.sidebar .nav-link:hover {
	color: #fff176;									/* lighter yellow on hover */
	text-decoration: underline;
}
aside.sidebar .nav-link.active {
	color: #fffde7;									/* pale yellow for active */
	font-weight: 600;
	text-decoration: underline;
}

/* Nested list indent (Bootstrap 4 uses ml-3; BS5 uses ms-3) */
aside.sidebar .ml-3 { 
	margin-left: 1rem !important; 
}
aside.sidebar .ms-3 { 
	margin-left: 1rem !important; 
}

/* Full-width small buttons (logout) */
aside.sidebar .btn-block { width: 100%; }

/* Optional: prevent double arrows if you add icons later */
aside.sidebar .nav-link .icon {
	width: 1.25rem;
	display: inline-block;
}

/* Slimmer scrollbar (WebKit) */
aside.sidebar::-webkit-scrollbar { width: 8px; }
aside.sidebar::-webkit-scrollbar-thumb {
	background: #c7c7c7;
	border-radius: 4px;
}

/*------------------------------------------------------------------*/
/* Custom styles for actions buttons */
/*------------------------------------------------------------------*/
button:disabled,
.btn:disabled {
    opacity: 0.45 !important;
    filter: grayscale(100%);
}

.pdf-icon {
    background-color: #f8f9fa;
    padding: 0px;
    border-radius: 3px;
    border: 1px solid #dee2e6;
}

.delete-icon {
    padding: 0px;
    border-radius: 2px;
}

.detail-icon {
    padding: 0px;
    border-radius: 3px;
}

/* Reduce button padding */
.btn-group-sm .btn {
    padding: 0.15rem 0.3rem !important;
    line-height: 1;
}

/* Reduce icon size and remove extra spacing */
.btn-group-sm .btn .bi {
    font-size: 0.9rem;
    padding: 2px;
    display: block;
}

/* Ensure the button group doesn't add extra height */
.btn-group-sm {
    line-height: 1;
    height: auto;
}

/* Target the specific table row */
.table tbody tr td {
    padding: 0.3rem 0.5rem !important;
    vertical-align: middle;
}

/* Sidebar logout button */
.sidebar-logout {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #ffeb3b;
}

.sidebar-logout .btn {
	color: cyan;
	border-color: cyan;
	font-size: 0.85rem;
}

.sidebar-logout .btn:hover {
	background-color: cyan;
	color: #00002f;
}

.sidebar-logout .btn i {
	margin-right: 0.25rem;
}
