/* Fix DataTables Column Visibility Text Color */
div.dt-button-collection button.dt-button,
div.dt-button-collection div.dt-button,
div.dt-button-collection a.dt-button {
    color: #333 !important;
    background-color: #43ffff !important;
    border: 1px solid hsl(0, 0%, 87%) !important;
}

div.dt-button-collection button.dt-button:hover,
div.dt-button-collection div.dt-button:hover,
div.dt-button-collection a.dt-button:hover {
    color: #333 !important;
    background-color: #43ffff !important;
    border: 1px solid #bbb !important;
}

div.dt-button-collection button.dt-button:active,
div.dt-button-collection div.dt-button:active,
div.dt-button-collection a.dt-button:active {
    color: #333 !important;
    background-color: #43ffff !important;
    border: 1px solid #999 !important;
}

/* Ensure Chartist container is visible on small screens */
.chartist-sales-chart {
    min-height: 220px;
}

@media (max-width: 767px) {
    .chartist-sales-chart {
        height: 240px !important;
        width: 100% !important;
        overflow: visible;
    }
}
.field-icon {
	float: right;
	margin-left: -25px;
	margin-top: -33px;
	margin-right: 5px;
	position: relative;
	z-index: 2;
	cursor: pointer;
}
.login-register {
	background: #192135;
}

.login-box {
	background-color: #192135;
}

.login-box .white-box {
	background-color: #202940;
	box-shadow: 0 0.75rem 1.5rem rgb(18 38 63 / 3%);
	border: 1px solid #202940;
}

.login-box input {
	color: #fff;
}

.field-icon {
	float: right;
	margin-left: -25px;
	margin-top: -27px;
	margin-right: 5px;
	position: relative;
	z-index: 2;
	cursor: pointer;
}

@media (min-width: 768px) {
	.modal-xl {
		width: 90%;
		max-width: 1200px;
	}
}

@media (max-width: 767px) {
	.fix-header .sidebar {
		height: 100%;
	}
}

@page {
	size: A4; /* DIN A4 standard, Europe */
	margin: 5mm;
}
/* @media screen {
	h1,
	h2,
	h3,
	h4,
	h5,
	h6,
	p {
		font-family: "Calibri" !important;
		font-size: 15px;
	}
} */
@media print {
	h1,
	h2,
	h3,
	h4,
	h5,
	h6,
	p {
		font-family: "Calibri" !important;
	}
	#footerPage {
		clear: both;
		page-break-after: always;
	}
	.hide,
	.dt-buttons,
	.dataTables_filter,
	.dataTables_info,
	.dataTables_paginate,
	.noPrint {
		display: none;
	}
	#brgy_info {
		display: block !important;
	}
	#qrcode {
		border: 1px solid #ccc2c7;
		display: block;
	}
}

#frontpage {
	width: 83.60mm;
	height: 52mm;
	border: 1px solid #ccc2c7;
	border-radius: 10px;
	padding: 5px;
}
#backpage {
	width: 83.60mm;
	height: 52mm;
	border: 1px solid #ccc2c7;
	border-radius: 10px;
	padding: 10px;
}

#cert_cont {
	border-top: 6px solid rgb(189, 189, 3);
	border-left: 6px solid rgb(189, 189, 3);
	border-right: 6px solid rgb(189, 189, 3);
}
#cert_sidebar {
	height: 830px;
}
#cert_body {
	position: relative;
	height: 830px;
	/* border-left: 2px solid black; */
}
#cert_remarks {
	border-left: 6px solid rgb(189, 189, 3);
	border-bottom: 6px solid rgb(189, 189, 3);
	border-right: 6px solid rgb(189, 189, 3);
}
#brgy_logo {
	position: absolute;
	filter: grayscale(0.2);
	opacity: 0.4;
	top: 50px;
	left: 40px;
}
#brgy_logo1 {
	position: absolute;
	filter: grayscale(100%);
	opacity: 0.4;
	top: 28%;
	left: 20%;
}
.id_settings {
	position: absolute;
	filter: grayscale(0.3);
	opacity: 0.2;
	top: 0;
	left: 50px;
}
#cert_remarks {
	position: relative;
	height: 160px;
}
#flag {
	width: 350px !important;
	position: absolute;
	bottom: -142px;
	left: 0;
}
/* #flag,
#motto {
	margin-top: -10px;
} */
#cert_footer {
	position: absolute;
	bottom: 0;
}

.modal .modal-header {
	background-color: rgb(0, 114, 172);
}
.modal .modal-title {
	color: #fff !important;
}

/* SweetAlert and Modal Z-Index Fixes */
.swal2-container {
    z-index: 10000 !important;
}

.swal2-popup {
    z-index: 10001 !important;
}

.swal2-backdrop {
    z-index: 9999 !important;
}

/* Ensure modal backdrop doesn't interfere with SweetAlert */
.modal-backdrop {
    z-index: 1040 !important;
}

/* Force modal to close properly after SweetAlert */
.modal-open {
    overflow: hidden;
}

/* Additional fix for registration modal */
#registrationModal {
    z-index: 1050 !important;
}

#registrationModal .modal-dialog {
    z-index: 1051 !important;
}

/* ===========================================
   NOTIFICATION SYSTEM STYLES (Global)
   =========================================== */

/* Right side modal styles */
.modal-right {
    position: fixed;
    right: 0;
    bottom: 50px; /* Position above bottom nav bar */
    margin: 0;
    width: 200px;
    max-width: 200px;
}

.modal-right .modal-content {
    border-radius: 0;
    border: none;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
}

.modal-right .modal-body {
    padding: 0;
}

.settings-menu {
    display: flex;
    flex-direction: column;
}

.settings-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 14px;
}

.settings-item:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.settings-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.settings-item.text-danger {
    color: #dc3545;
}

.settings-item.text-danger:hover {
    background-color: lightpink;
    color: white;
}

/* Animation for modal */
.modal-right.fade .modal-dialog {
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.modal-right.show .modal-dialog {
    transform: translateX(0);
}

/* Add backdrop for better visibility */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Mobile notification panel styles */
.notification-panel {
    position: fixed;
    left: -292px;
    width: 292px;
    bottom: 60px;         /* Sits directly above the bottom nav bar */
    top: auto;
    max-height: 50vh;     /* Never taller than 50% of the viewport */
    margin-bottom: 0;
    background: #fff;
    z-index: 1050;
    transition: all 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    overflow-y: auto;
}

.notification-panel.show {
    left: 0;
}

.notification-body {
    height: 100%;
    overflow-y: auto;
    padding: 15px;
    padding-bottom: 70px; /* Increased bottom padding */
}

.notification-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 60px); /* Increased bottom spacing */
    margin-bottom: 60px; /* Increased bottom margin */
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

.notification-backdrop.show {
    display: block;
}

/* Mobile responsive styles */
@media (max-width: 767px) {
    .sidebar {
        box-shadow: none !important;
    }
    
    /* Hide footer on mobile */
    .footer {
        display: none !important;
    }
    
    /* Adjust page wrapper padding since footer is hidden */
    #page-wrapper {
        padding-bottom: 0 !important;
    }
    
    /* Mobile notification styles */
    .dropdown-menu.mailbox {
        display: none !important;
    }
    
    .notification-panel .mailbox {
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .notification-panel .mailbox li {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    
    .notification-panel .mailbox li:last-child {
        border-bottom: none;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .notification-panel .mailbox .message-center {
        margin: 0;
    }

    /* Ensure bottom navigation is always visible and has no space */
    .navbar-default.visible-xs {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1060;
        background: none !important;
        border-top: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        height: auto;
        min-height: 0;
    }
}

/* Notification panel specific overrides */
.notification-panel .notification-body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box;
}

.notification-panel .mailbox {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.notification-panel .mailbox li:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* Notification dropdown specific styles */
#notification-msg {
    min-width: 300px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    background: white !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

/* Fix dropdown positioning for notifications */
.navbar-top-links .dropdown-menu {
    position: absolute !important;
    z-index: 10000 !important;
    right: 0 !important;
    left: auto !important;
    display: none !important;
}

.navbar-top-links .dropdown.open .dropdown-menu {
    display: block !important;
}

