/* ============================================
   PROFESSIONAL TYPOGRAPHY
   ============================================ */

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

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #2c3e50;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-weight: 600;
	line-height: 1.3;
	color: #1a1a2e;
	margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
	margin: 0 0 1em 0;
	font-size: 15px;
	line-height: 1.7;
}

a {
	color: #3498db;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: #2980b9;
}

/* Form Typography */
label {
	font-size: 14px;
	font-weight: 500;
	color: #4a5568;
	margin-bottom: 6px;
	display: block;
}

input, select, textarea {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 15px;
}

/* Table Typography */
table {
	font-size: 14px;
}

th {
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #4a5568;
}

td {
	font-size: 14px;
	color: #2c3e50;
}

/* Button Typography */
.btn, button, input[type="submit"] {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.3px;
}

/* Small Text */
small, .small, .text-small {
	font-size: 13px;
}

/* Help Text */
.help-block {
	font-size: 13px;
	color: #718096;
	margin-top: 5px;
}

#actionlinks {
	margin-bottom: 15px;
}

#actionlinks ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

#actionlinks ul li {
	display: inline;
	margin: 0 10px 0 0;
}

#actionlinks ul li a {
	text-decoration: none;
}

#content {
	margin: 0 20px 0 20px;
}

#footer {
	clear: both;
	padding: 6px 10px;
	text-align: right;
}

#printer {
	clear: both;
	padding: 6px 10px;
}

.navbar-default .navbar-brand {
	font-size: 25px;
	font-weight: bold;
}

.navbar-default .navbar-brand:hover {
	font-size: 25px;
	font-weight: bold;
}

ul.nav li.dropdown:hover > ul.dropdown-menu {
	display: block;
}

.settings-container {
	margin: 0 0 15px 0;
	padding: 20px;
	background: #fff;
	border: 1px solid #e1e1e1;
	border-radius: 12px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.settings-container:hover {
	border-color: #3498db;
	box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15);
	transform: translateY(-2px);
}

.settings-title {
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 8px;
	letter-spacing: -0.2px;
}

.settings-title a {
	color: #1a1a2e;
	text-decoration: none;
	transition: color 0.3s ease;
}

.settings-title a:hover {
	color: #3498db;
}

.settings-desc {
	font-size: 14px;
	color: #718096;
	margin: 0;
	line-height: 1.5;
}

/* Admin Feature Boxes */
.admin-feature-boxes {
	margin-bottom: 30px;
}

/* Admin Section with Header */
.admin-section {
	background: #fff;
	border: 1px solid #e1e1e1;
	border-radius: 16px;
	padding: 25px;
	margin-bottom: 25px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-section-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f0;
}

.admin-section-icon {
	font-size: 24px;
	color: #1a1a2e;
}

.admin-section-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1a1a2e;
}

.feature-box {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
	color: #fff;
	border-radius: 12px;
	padding: 25px 20px;
	text-align: center;
	margin-bottom: 20px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-box:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feature-box-icon {
	font-size: 40px;
	display: block;
	margin-bottom: 15px;
}

/* Form Box - Rounded Border Container */
.form-box {
	background: #fff;
	border: 1px solid #e1e1e1;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-fieldset {
	border: 1px solid #e1e1e1;
	border-radius: 10px;
	padding: 20px;
	margin: 20px 0;
	background: #f8f9fa;
}

.form-fieldset legend {
	font-size: 16px;
	font-weight: 600;
	color: #2c3e50;
	padding: 0 10px;
	width: auto;
	border: none;
	margin-bottom: 15px;
}

/* System Info Cards */
.sysinfo-card {
	background: #fff;
	border: 1px solid #e1e1e1;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	margin-bottom: 20px;
	overflow: hidden;
}

.sysinfo-card-header {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
	color: #fff;
	padding: 20px;
	display: flex;
	align-items: center;
}

.sysinfo-icon {
	font-size: 28px;
	margin-right: 15px;
}

.sysinfo-card-header h4 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.sysinfo-card-body {
	padding: 20px;
}

.sysinfo-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
}

.sysinfo-item:last-child {
	border-bottom: none;
}

.sysinfo-label {
	font-size: 14px;
	color: #6c757d;
	font-weight: 500;
}

.sysinfo-value {
	font-size: 14px;
	color: #2c3e50;
	font-weight: 600;
	background: #f8f9fa;
	padding: 6px 12px;
	border-radius: 6px;
}

.sysinfo-success {
	background: rgba(46, 204, 113, 0.15);
	color: #27ae60;
}

.sysinfo-error {
	background: rgba(231, 76, 60, 0.15);
	color: #e74c3c;
}

.feature-box h4 {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 10px 0;
	color: #fff;
}

.feature-box p {
	font-size: 13px;
	color: #bdc3c7;
	margin: 0;
	line-height: 1.4;
}

.reports-container {
	margin: 0 0 20px 0;
}

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

table tr .dc-error {
	background: #FFB2B2;
}
table td .dc-error {
	background: #FFB2B2;
}

#show-label {
	padding-right: 8px;
}

#page-title {
	margin: 0 0 25px 0;
	font-size: 24px;
	font-weight: 600;
	color: #1a1a2e;
	letter-spacing: -0.3px;
}

.pick-a-color-markup {
	width: 200px;
}

.tag {
	border-radius: 5px 5px 5px 5px;
	font-size: 10px;
	font-weight: bold;
	margin: 0 5px 0 1px;
	padding: 4px;
	text-decoration: none;
}

#page-info {
	padding-right: 20px;
}

.link-pad {
	padding-left: 15px;
}

a.no-hover:hover {
	text-decoration: none;
}

.addrow, .deleterow, .recalculate {
	color: #428BCA;
	cursor: pointer;
}

.addrow:hover, .deleterow:hover, .recalculate:hover {
	color: #2A6496;
}

.modal-ajax {
	padding-left: 25px;
	font-size: 18px;
	padding-top: 20px;
	padding-bottom: 20px;
}

.modal-error-msg {
	padding-left: 25px;
	padding-top: 15px;
	color: #FF0000;
	font-size: 18px;
}

/************** TABLES ***************/
table {
	width: 100%;
}

th {
	border-bottom: 2px solid #555;
	text-align: left;
	font-size: 16px;
}

th a {
	display: block;
	padding: 2px 4px;
	text-decoration: none;
}

th a.asc:after {
	content: ' ⇣';
}

th a.desc:after {
	content: ' ⇡';
}

table tr td {
	padding: 4px;
	text-align: left;
}

table.stripped tr td {
	border-bottom:1px solid #DDDDDD;
	border-top:1px solid #DDDDDD;
}

table.stripped tr:hover {
	  background-color: #FFFF99;
}

table.stripped .tr-ledger {

}

table.stripped .tr-group {
	font-weight: bold;
}

table.extra tr td {
	padding: 6px;
}

table.stripped .tr-root-group {
	background-color: #F3F3F3;
	color: #754719;
}

.ajax-add {
	background-color: #F3F3F3;
}

/* Forms */

fieldset {
	border: none;
	margin-left: 10px;
}
fieldset legend {
	font-size: 17px;
	margin-left: -10px;
	border-bottom: 1px solid #DDDDDD;
}

/* Form errors */

form .error {
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	border-radius: 4px;
	font-weight: normal;
}
form .error-message {
	-moz-border-radius: none;
	-webkit-border-radius: none;
	border-radius: none;
	border: none;
	background: none;
	margin: 0;
	padding-left: 4px;
	padding-right: 0;
}
form .error,
form .error-message {
	color: #9E2424;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	-ms-box-shadow: none;
	-o-box-shadow: none;
	box-shadow: none;
	text-shadow: none;
}

.paginate {
	margin-top:20px;
}

#footer {
	margin-top: 60px;
	border-top: 1px solid #BBBBBB;
}

.table-top {
	vertical-align: top;
}

.width-50 {
	width: 40%;
}

.width-drcr {
	width: 80px;
}


.report-tb-pad {
	padding-top: 30px;
}

.bold-text {
	font-weight: bold;
}

.error-text {
	font-weight: bold;
	color: #FF0000;
}

.ok-text {
	color: #006400;
}

.bg-filled {
	background-color: #F3F3F3;
}

.alert {
	font-size: 17px;
}

.help-block {
	font-size: 12px;
}

.subtitle {
	color: #2c3e50;
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 15px;
	padding: 12px 20px;
	background: linear-gradient(to right, #3498db, #2980b9);
	color: #fff;
	border-radius: 8px;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.summary {
	background-color: #FFFFCC;
	border: 1px solid #BBBBBB;
	border-collapse: collapse;
	text-align: left;
	width: 600px;
}

.summary td {
	border: 1px solid #BBBBBB;
}

table.stripped .tr-highlight {
	background-color: #F3F3F3;
}

.font-normal {
	font-weight: normal;
}

.td-fixwidth-summary {
	width: 300px;
	vertical-align: text-top;
}

.box-container {
	border: 1px solid #BBBBBB;
	padding: 20px;
}

.box-title {
	margin-bottom: 10px;
	font-size: 18px;
	color: #428BCA;
}

.print-button {
	padding: 5px;
}

/* Select2 */
.select2 {
	min-width: 200px;
}

.select2-container--default .select2-results__option[aria-disabled="true"] {
	font-weight: bold;
	color: #000;
}

/* ============================================
   LEFT SIDEBAR LAYOUT STYLES
   ============================================ */

/* Main Wrapper */
.wrapper {
	display: flex;
	min-height: 100vh;
	width: 100%;
}

/* Sidebar */
.sidebar {
	width: 250px;
	min-width: 250px;
	background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
	color: #ecf0f1;
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	overflow-y: auto;
	overflow-x: hidden;
	z-index: 1000;
	transition: all 0.3s ease;
	box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-admin {
	background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

/* Sidebar Brand */
.sidebar-brand {
	padding: 20px 15px;
	text-align: center;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	background: rgba(0,0,0,0.1);
}

.sidebar-brand .brand-link {
	color: #fff;
	font-size: 24px;
	font-weight: bold;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.sidebar-brand .brand-link:hover {
	color: #3498db;
	text-decoration: none;
}

.sidebar-brand .brand-link:hover .brand-logo-img {
	transform: scale(1.05);
}

/* Logo Image */
.sidebar-brand .brand-logo-img {
	width: auto;
	height: 50px;
	max-width: 180px;
	object-fit: contain;
	transition: transform 0.3s ease;
	filter: brightness(1);
}

.sidebar-brand .brand-text {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1px;
	display: block;
}

/* Hide text if logo exists - uncomment if you want logo only */
/*
.sidebar-brand .brand-text {
	display: none;
}
*/

/* Date and Time Display */
.sidebar-brand .brand-datetime {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 8px;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	backdrop-filter: blur(5px);
}

.sidebar-brand .brand-date {
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.sidebar-brand .brand-time {
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 1px;
	margin-top: 2px;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Admin sidebar datetime */
.sidebar-admin .brand-datetime {
	background: rgba(231, 76, 60, 0.15);
	border: 1px solid rgba(231, 76, 60, 0.2);
}

.sidebar-admin .brand-time {
	color: #e74c3c;
}

.sidebar-brand .brand-subtitle {
	display: block;
	font-size: 11px;
	color: #e74c3c;
	margin-top: 5px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Sidebar Menu */
.sidebar-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-menu .menu-header {
	padding: 15px 20px 8px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #7f8c8d;
	font-weight: 600;
	border-top: 1px solid rgba(255,255,255,0.05);
	margin-top: 10px;
}

/* Collapsible Menu Header */
.sidebar-menu .menu-header-collapsible {
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 15px;
	margin: 5px 10px;
	background: rgba(255,255,255,0.05);
	border-radius: 6px;
	border-top: none;
	transition: all 0.2s ease;
	font-size: 13px;
}

.sidebar-menu .menu-header-collapsible:hover {
	background: rgba(255,255,255,0.1);
	color: #fff;
}

.sidebar-menu .menu-header-collapsible.active {
	background: rgba(52, 152, 219, 0.2);
	color: #3498db;
}

.sidebar-menu .menu-header-collapsible .header-text {
	display: flex;
	align-items: center;
}

.sidebar-menu .menu-header-collapsible .header-text .menu-icon {
	margin-right: 10px;
	font-style: normal;
}

.sidebar-menu .menu-header-collapsible .header-arrow {
	font-size: 10px;
	transition: transform 0.3s ease;
}

.sidebar-menu .menu-header-collapsible.active .header-arrow {
	transform: rotate(180deg);
}

/* Submenu Styles */
.sidebar-menu .submenu {
	list-style: none;
	padding: 0;
	margin: 0;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	background: rgba(0,0,0,0.1);
	border-radius: 0 0 6px 6px;
	margin: 0 10px 5px 10px;
}

.sidebar-menu .submenu.show {
	max-height: 1000px;
	transition: max-height 0.5s ease-in;
}

.sidebar-menu .submenu .menu-item {
	margin: 0;
}

.sidebar-menu .submenu .menu-item a {
	padding: 8px 15px 8px 25px;
	font-size: 13px;
	border-radius: 0;
	border-left: 2px solid transparent;
}

.sidebar-menu .submenu .menu-item a:hover {
	border-left-color: #3498db;
	background: rgba(255,255,255,0.05);
}

.sidebar-menu .submenu .menu-item.active a {
	background: rgba(52, 152, 219, 0.3);
	border-left-color: #3498db;
	box-shadow: none;
}

.sidebar-menu .menu-item {
	margin: 2px 10px;
}

.sidebar-menu .menu-item a {
	display: block;
	padding: 10px 15px;
	color: #bdc3c7;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s ease;
	font-size: 14px;
}

.sidebar-menu .menu-item a:hover {
	background: rgba(255,255,255,0.1);
	color: #fff;
	text-decoration: none;
}

.sidebar-menu .menu-item.active a {
	background: #3498db;
	color: #fff;
	box-shadow: 0 2px 5px rgba(52,152,219,0.3);
}

.sidebar-menu .menu-item .menu-icon {
	margin-right: 10px;
	font-style: normal;
	width: 20px;
	display: inline-block;
	text-align: center;
}

/* Admin & Logout Links */
.sidebar-menu .menu-item.admin-link a {
	background: rgba(231, 76, 60, 0.2);
	color: #e74c3c;
	border: 1px solid rgba(231, 76, 60, 0.3);
}

.sidebar-menu .menu-item.admin-link a:hover {
	background: #e74c3c;
	color: #fff;
}

.sidebar-menu .menu-item.user-link a {
	background: rgba(46, 204, 113, 0.2);
	color: #2ecc71;
	border: 1px solid rgba(46, 204, 113, 0.3);
}

.sidebar-menu .menu-item.user-link a:hover {
	background: #2ecc71;
	color: #fff;
}

.sidebar-menu .menu-item.logout-link {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu .menu-item.logout-link a {
	color: #95a5a6;
}

.sidebar-menu .menu-item.logout-link a:hover {
	background: rgba(231, 76, 60, 0.2);
	color: #e74c3c;
}

/* Main Content Area */
.main-content {
	flex: 1;
	margin-left: 250px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: #f5f6fa;
	transition: all 0.3s ease;
}

/* ============================================
   MODERN TOP HEADER STYLES
   ============================================ */

/* Top Header */
.top-header {
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	padding: 12px 25px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(0,0,0,0.05);
}

.top-header-admin {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-header-admin .page-title-header {
	color: #fff;
}

.top-header-admin .sidebar-toggle span {
	background: #fff;
}

.header-left {
	display: flex;
	align-items: center;
	gap: 20px;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 15px;
}

/* Header Title Section */
.header-title-section {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.page-title-header {
	font-size: 20px;
	font-weight: 700;
	color: #2c3e50;
	margin: 0;
	letter-spacing: -0.5px;
}

/* Breadcrumb */
.header-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
}

.header-breadcrumb .breadcrumb-item {
	color: #7f8c8d;
}

.header-breadcrumb .breadcrumb-item a {
	color: #3498db;
	text-decoration: none;
}

.header-breadcrumb .breadcrumb-item a:hover {
	text-decoration: underline;
}

.header-breadcrumb .breadcrumb-item.active {
	color: #95a5a6;
}

.header-breadcrumb .breadcrumb-separator {
	color: #bdc3c7;
}

.header-breadcrumb-admin .breadcrumb-item,
.header-breadcrumb-admin .breadcrumb-separator,
.header-breadcrumb-admin .breadcrumb-item.active {
	color: rgba(255,255,255,0.5);
}

.header-breadcrumb-admin .breadcrumb-item a {
	color: rgba(255,255,255,0.7);
}

/* Account Info Card */
.header-account-info {
	display: flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	padding: 8px 15px;
	border-radius: 12px;
	border: 1px solid rgba(0,0,0,0.05);
}

.header-account-info .account-icon {
	font-size: 24px;
	opacity: 0.8;
}

.header-account-info .account-details {
	display: flex;
	flex-direction: column;
}

.header-account-info .account-name {
	font-size: 13px;
	font-weight: 600;
	color: #2c3e50;
}

.header-account-info .account-period {
	font-size: 11px;
	color: #7f8c8d;
}

.header-account-info .account-change-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: #fff;
	border-radius: 8px;
	color: #3498db;
	text-decoration: none;
	font-size: 16px;
	transition: all 0.2s ease;
	border: 1px solid rgba(0,0,0,0.08);
}

.header-account-info .account-change-btn:hover {
	background: #3498db;
	color: #fff;
	transform: scale(1.05);
}

/* Header Actions */
.header-actions {
	display: flex;
	gap: 8px;
}

.header-action-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
	border-radius: 10px;
	color: #fff;
	text-decoration: none;
	font-size: 18px;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.header-action-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
	color: #fff;
	text-decoration: none;
}

/* Admin Status Badge */
.admin-status-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(231, 76, 60, 0.1);
	padding: 8px 15px;
	border-radius: 20px;
	border: 1px solid rgba(231, 76, 60, 0.2);
}

.admin-status-badge .status-dot {
	width: 8px;
	height: 8px;
	background: #e74c3c;
	border-radius: 50%;
	animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.5; transform: scale(1.2); }
}

.admin-status-badge .status-text {
	font-size: 12px;
	font-weight: 600;
	color: #e74c3c;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* User Dropdown */
.header-user-dropdown {
	position: relative;
}

.user-dropdown-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 6px 12px;
	border-radius: 12px;
	transition: all 0.2s ease;
}

.user-dropdown-toggle:hover {
	background: rgba(0,0,0,0.05);
}

.user-dropdown-toggle-admin:hover {
	background: rgba(255,255,255,0.1);
}

.user-avatar {
	width: 38px;
	height: 38px;
	background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.user-avatar-admin {
	background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
	box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.user-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.user-name {
	font-size: 14px;
	font-weight: 600;
	color: #2c3e50;
}

.user-role {
	font-size: 11px;
	color: #7f8c8d;
	text-transform: capitalize;
}

.top-header-admin .user-name,
.top-header-admin .user-role {
	color: rgba(255,255,255,0.9);
}

.top-header-admin .user-role {
	color: rgba(255,255,255,0.6);
}

.dropdown-arrow {
	font-size: 10px;
	color: #95a5a6;
	transition: transform 0.2s ease;
}

.top-header-admin .dropdown-arrow {
	color: rgba(255,255,255,0.6);
}

/* User Dropdown Menu */
.user-dropdown-menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 280px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1000;
	overflow: hidden;
}

.user-dropdown-menu.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.dropdown-header-admin {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.dropdown-user-avatar {
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 20px;
}

.dropdown-user-avatar-admin {
	background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.dropdown-user-info {
	display: flex;
	flex-direction: column;
}

.dropdown-user-name {
	font-size: 15px;
	font-weight: 600;
	color: #2c3e50;
}

.dropdown-header-admin .dropdown-user-name {
	color: #fff;
}

.dropdown-user-email {
	font-size: 12px;
	color: #7f8c8d;
}

.dropdown-header-admin .dropdown-user-email {
	color: rgba(255,255,255,0.6);
}

.dropdown-divider {
	height: 1px;
	background: #e9ecef;
	margin: 0;
}

.dropdown-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	color: #2c3e50;
	text-decoration: none;
	font-size: 14px;
	transition: all 0.2s ease;
}

.dropdown-item:hover {
	background: #f8f9fa;
	color: #3498db;
	text-decoration: none;
}

.dropdown-icon {
	font-size: 16px;
	width: 20px;
	text-align: center;
	margin-right: 8px;
	display: inline-block;
}

/* Bootstrap dropdown menu items with icons */
.dropdown-menu > li > a .dropdown-icon {
	margin-right: 8px;
	opacity: 0.7;
}

.dropdown-menu > li > a:hover .dropdown-icon {
	opacity: 1;
}

.dropdown-item-admin {
	color: #e74c3c;
}

.dropdown-item-admin:hover {
	background: rgba(231, 76, 60, 0.1);
	color: #c0392b;
}

.dropdown-item-accounts {
	color: #27ae60;
}

.dropdown-item-accounts:hover {
	background: rgba(39, 174, 96, 0.1);
	color: #1e8449;
}

.dropdown-item-logout {
	color: #95a5a6;
}

.dropdown-item-logout:hover {
	background: rgba(231, 76, 60, 0.1);
	color: #e74c3c;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
	background: rgba(0,0,0,0.03);
	border: none;
	cursor: pointer;
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	border-radius: 10px;
	transition: all 0.2s ease;
}

.sidebar-toggle:hover {
	background: rgba(0,0,0,0.08);
}

.top-header-admin .sidebar-toggle:hover {
	background: rgba(255,255,255,0.1);
}

.sidebar-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: #2c3e50;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.sidebar-toggle:hover span {
	background: #3498db;
}

/* Page Content */
.page-content {
	flex: 1;
	padding: 25px;
}

/* Main Footer */
.main-footer {
	padding: 15px 25px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid #e1e1e1;
	background: #fff;
	margin-top: auto;
}

.main-footer-admin {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-text {
	font-size: 13px;
	color: #7f8c8d;
}

.main-footer-admin .footer-text {
	color: rgba(255,255,255,0.5);
}

.footer-links a {
	font-size: 13px;
	color: #3498db;
	text-decoration: none;
}

.footer-links a:hover {
	text-decoration: underline;
}

/* Responsive Header */
@media (max-width: 992px) {
	.header-account-info {
		display: none;
	}

	.user-info {
		display: none;
	}

	.dropdown-arrow {
		display: none;
	}
}

@media (max-width: 768px) {
	.top-header {
		padding: 10px 15px;
	}

	.header-title-section {
		display: none;
	}

	.header-actions {
		display: none;
	}

	.admin-status-badge .status-text {
		display: none;
	}

	.admin-status-badge {
		padding: 8px;
		border-radius: 50%;
	}
}

/* Collapsed Sidebar State */
.wrapper.sidebar-collapsed .sidebar {
	width: 0;
	min-width: 0;
	overflow: hidden;
}

.wrapper.sidebar-collapsed .main-content {
	margin-left: 0;
}

/* Override old styles */
#page-title {
	display: none;
}

#content {
	margin: 0;
}

#footer {
	display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
	.sidebar {
		width: 0;
		min-width: 0;
		overflow: hidden;
	}

	.main-content {
		margin-left: 0;
	}

	.wrapper.sidebar-open .sidebar {
		width: 250px;
		min-width: 250px;
	}

	.wrapper.sidebar-open .main-content {
		margin-left: 0;
	}

	.wrapper.sidebar-open::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0,0,0,0.5);
		z-index: 999;
	}

	.page-content {
		padding: 15px;
	}
}

/* Scrollbar Styling for Sidebar */
.sidebar::-webkit-scrollbar {
	width: 6px;
}

.sidebar::-webkit-scrollbar-track {
	background: rgba(0,0,0,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,0.2);
	border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
	background: rgba(255,255,255,0.3);
}

/* ============================================
   MODERN LOGIN PAGE STYLES
   ============================================ */

/* Login Page Body */
.login-page {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	background: #f5f6fa;
}

/* Login Wrapper - Split Screen */
.login-wrapper {
	display: flex;
	min-height: 100vh;
	width: 100%;
}

/* Left Side - Branding */
.login-branding {
	flex: 1;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 40px;
	position: relative;
	overflow: hidden;
}

.login-branding::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(52,152,219,0.1) 0%, transparent 50%);
	animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); opacity: 0.5; }
	50% { transform: scale(1.1); opacity: 0.8; }
}

.branding-content {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 400px;
}

.brand-logo {
	margin-bottom: 30px;
}

.brand-logo .logo-icon {
	font-size: 60px;
	display: block;
	margin-bottom: 15px;
}

.brand-logo h1 {
	font-size: 42px;
	font-weight: 700;
	margin: 0;
	letter-spacing: 2px;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.brand-tagline {
	font-size: 17px;
	color: #bdc3c7;
	margin-bottom: 40px;
	font-weight: 400;
	letter-spacing: 0.3px;
	line-height: 1.5;
}

.brand-features {
	text-align: left;
}

.feature-item {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	font-size: 15px;
	color: #ecf0f1;
	font-weight: 400;
}

.feature-icon {
	width: 30px;
	height: 30px;
	background: rgba(46, 204, 113, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 15px;
	color: #2ecc71;
	font-size: 14px;
}

.branding-footer {
	position: absolute;
	bottom: 30px;
	left: 0;
	right: 0;
	text-align: center;
	color: #7f8c8d;
	font-size: 13px;
}

/* Right Side - Login Form */
.login-form-section {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: #fff;
}

.login-form-container {
	width: 100%;
	max-width: 520px;
}

.login-header {
	text-align: center;
	margin-bottom: 35px;
}

.login-header h2 {
	font-size: 34px;
	font-weight: 600;
	color: #2c3e50;
	margin: 0 0 12px 0;
}

.login-subtitle {
	color: #7f8c8d;
	font-size: 17px;
	margin: 0;
}

/* Login Form Wrapper */
.login-form-wrapper {
	width: 100%;
}

/* Modern Input Group */
.input-group-modern {
	position: relative;
	margin-bottom: 24px;
}

.input-group-modern .input-icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	color: #95a5a6;
	z-index: 1;
}

.input-group-modern .modern-input {
	width: 100%;
	padding: 18px 18px 18px 55px;
	font-size: 17px;
	border: 2px solid #e1e1e1;
	border-radius: 12px;
	background: #f8f9fa;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.input-group-modern .modern-input:focus {
	border-color: #3498db;
	background: #fff;
	outline: none;
	box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.input-group-modern .modern-input::placeholder {
	color: #adb5bd;
}

/* Form Options */
.form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 28px;
	font-size: 16px;
}

.remember-me {
	display: flex;
	align-items: center;
	color: #6c757d;
	cursor: pointer;
}

.remember-me input[type="checkbox"] {
	margin-right: 8px;
	cursor: pointer;
}

.forgot-link {
	color: #3498db;
	text-decoration: none;
	font-weight: 500;
}

.forgot-link:hover {
	color: #2980b9;
	text-decoration: underline;
}

/* Login Button */
.btn-login {
	width: 100%;
	padding: 18px;
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.btn-login:hover {
	background: linear-gradient(135deg, #2980b9 0%, #1a5276 100%);
	transform: translateY(-2px);
	box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.btn-login:active {
	transform: translateY(0);
}

/* Login Divider */
.login-divider {
	text-align: center;
	margin: 30px 0;
	position: relative;
}

.login-divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: #e1e1e1;
}

.login-divider span {
	background: #fff;
	padding: 0 24px;
	color: #95a5a6;
	font-size: 16px;
	position: relative;
	z-index: 1;
}

/* Register Section */
.register-section {
	text-align: center;
}

.register-section p {
	color: #6c757d;
	margin-bottom: 18px;
	font-size: 16px;
}

.btn-register {
	display: inline-block;
	padding: 14px 48px;
	font-size: 16px;
	font-weight: 600;
	color: #3498db;
	background: transparent;
	border: 2px solid #3498db;
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.btn-register:hover {
	background: #3498db;
	color: #fff;
	text-decoration: none;
}

/* Login Alerts */
.login-alert {
	display: flex;
	align-items: flex-start;
	padding: 18px;
	border-radius: 12px;
	margin-bottom: 28px;
	font-size: 16px;
	line-height: 1.5;
}

.login-alert .alert-icon {
	margin-right: 14px;
	font-size: 22px;
	flex-shrink: 0;
}

.login-alert-success {
	background: rgba(46, 204, 113, 0.1);
	border: 1px solid rgba(46, 204, 113, 0.3);
	color: #27ae60;
}

.login-alert-warning {
	background: rgba(241, 196, 15, 0.1);
	border: 1px solid rgba(241, 196, 15, 0.3);
	color: #f39c12;
}

.login-alert-danger {
	background: rgba(231, 76, 60, 0.1);
	border: 1px solid rgba(231, 76, 60, 0.3);
	color: #e74c3c;
}

/* Login Footer */
.login-footer {
	text-align: center;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid #e1e1e1;
}

.login-footer p {
	color: #95a5a6;
	font-size: 13px;
	margin: 0;
}

.login-footer a {
	color: #3498db;
	text-decoration: none;
}

.login-footer a:hover {
	text-decoration: underline;
}

/* Override Bootstrap Alert in Login */
.login-form-container .alert {
	border-radius: 10px;
	border: none;
	padding: 15px 20px;
	margin-bottom: 25px;
}

.login-form-container .alert-danger {
	background: rgba(231, 76, 60, 0.1);
	color: #c0392b;
}

.login-form-container .alert-success {
	background: rgba(46, 204, 113, 0.1);
	color: #27ae60;
}

/* Responsive Design for Login */
@media (max-width: 992px) {
	.login-branding {
		display: none;
	}

	.login-form-section {
		flex: 1;
		background: linear-gradient(135deg, #f5f6fa 0%, #e8eaed 100%);
	}

	.login-form-container {
		background: #fff;
		padding: 40px;
		border-radius: 20px;
		box-shadow: 0 10px 40px rgba(0,0,0,0.1);
	}
}

@media (max-width: 576px) {
	.login-form-section {
		padding: 20px;
	}

	.login-form-container {
		padding: 30px 25px;
	}

	.login-header h2 {
		font-size: 24px;
	}

	.form-options {
		flex-direction: column;
		gap: 15px;
		align-items: flex-start;
	}
}

/* ============================================
   DASHBOARD HEADER
   ============================================ */

.dashboard-header {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
	border-radius: 16px;
	padding: 30px;
	margin-bottom: 25px;
	position: relative;
	overflow: hidden;
}

.dashboard-header::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(52, 152, 219, 0.15) 0%, transparent 70%);
	pointer-events: none;
}

.dashboard-header::after {
	content: '';
	position: absolute;
	bottom: -30%;
	left: -10%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(46, 204, 113, 0.1) 0%, transparent 70%);
	pointer-events: none;
}

.dashboard-header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	z-index: 1;
}

.dashboard-welcome h1 {
	font-size: 26px;
	font-weight: 600;
	color: #fff;
	margin: 0 0 10px 0;
	letter-spacing: -0.3px;
}

.dashboard-welcome h1 .highlight {
	color: #5dade2;
	font-weight: 700;
}

.dashboard-subtitle {
	font-size: 15px;
	color: #bdc3c7;
	margin: 0;
	font-weight: 400;
	line-height: 1.5;
}

.dashboard-subtitle strong {
	color: #fff;
}

.dashboard-date-info {
	text-align: right;
}

.date-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(255, 255, 255, 0.1);
	padding: 12px 20px;
	border-radius: 12px;
	backdrop-filter: blur(10px);
}

.date-icon {
	font-size: 24px;
}

.date-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.date-label {
	font-size: 11px;
	color: #95a5a6;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.date-value {
	font-size: 14px;
	color: #fff;
	font-weight: 600;
}

@media (max-width: 768px) {
	.dashboard-header {
		padding: 20px;
	}

	.dashboard-header-content {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.dashboard-welcome h1 {
		font-size: 22px;
	}

	.dashboard-date-info {
		text-align: left;
		width: 100%;
	}
}

/* ============================================
   DASHBOARD SECTION BOX
   ============================================ */

.dashboard-section {
	background: #fff;
	border: 1px solid #e1e1e1;
	border-radius: 16px;
	padding: 25px;
	margin-bottom: 25px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dashboard-section-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f0;
}

.dashboard-section-icon {
	font-size: 24px;
	color: #1a1a2e;
}

.dashboard-section-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1a1a2e;
}

/* ============================================
   DASHBOARD SUMMARY CARDS
   ============================================ */

.summary-cards-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 0;
}

.summary-card {
	background: #fff;
	border-radius: 16px;
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.summary-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	border-radius: 16px 0 0 16px;
}

.summary-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Card Icon */
.summary-card .card-icon {
	width: 60px;
	height: 60px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	flex-shrink: 0;
}

/* Card Content */
.summary-card .card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.summary-card .card-label {
	font-size: 12px;
	color: #718096;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.summary-card .card-value {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a2e;
	letter-spacing: 0;
	font-feature-settings: 'tnum';
}

/* Card Trend Indicator */
.summary-card .card-trend {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.summary-card .card-trend.trend-up {
	background: rgba(46, 204, 113, 0.15);
	color: #27ae60;
}

.summary-card .card-trend.trend-down {
	background: rgba(231, 76, 60, 0.15);
	color: #e74c3c;
}

.summary-card .card-trend.trend-neutral {
	background: rgba(52, 152, 219, 0.15);
	color: #3498db;
}

/* Assets Card */
.summary-card-assets::before {
	background: linear-gradient(180deg, #27ae60 0%, #2ecc71 100%);
}

.summary-card-assets .card-icon {
	background: linear-gradient(135deg, rgba(39, 174, 96, 0.15) 0%, rgba(46, 204, 113, 0.15) 100%);
	color: #27ae60;
}

/* Liabilities Card */
.summary-card-liabilities::before {
	background: linear-gradient(180deg, #3498db 0%, #5dade2 100%);
}

.summary-card-liabilities .card-icon {
	background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(93, 173, 226, 0.15) 100%);
	color: #3498db;
}

/* Income Card */
.summary-card-income::before {
	background: linear-gradient(180deg, #9b59b6 0%, #af7ac5 100%);
}

.summary-card-income .card-icon {
	background: linear-gradient(135deg, rgba(155, 89, 182, 0.15) 0%, rgba(175, 122, 197, 0.15) 100%);
	color: #9b59b6;
}

/* Expense Card */
.summary-card-expense::before {
	background: linear-gradient(180deg, #e74c3c 0%, #ec7063 100%);
}

.summary-card-expense .card-icon {
	background: linear-gradient(135deg, rgba(231, 76, 60, 0.15) 0%, rgba(236, 112, 99, 0.15) 100%);
	color: #e74c3c;
}

/* Responsive Summary Cards */
@media (max-width: 1200px) {
	.summary-cards-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.summary-cards-container {
		grid-template-columns: 1fr;
	}

	.summary-card {
		padding: 15px;
	}

	.summary-card .card-icon {
		width: 50px;
		height: 50px;
		font-size: 24px;
	}

	.summary-card .card-value {
		font-size: 14px;
	}
}

/* ============================================
   DASHBOARD PANELS MODERNIZATION
   ============================================ */

.panel.panel-info {
	border: none;
	border-radius: 12px;
	box-shadow: 0 2px 15px rgba(0,0,0,0.06);
	overflow: hidden;
	margin-bottom: 20px;
}

.panel.panel-info .panel-heading {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-bottom: 1px solid rgba(0,0,0,0.05);
	color: #2c3e50;
	font-weight: 600;
	font-size: 14px;
	padding: 15px 20px;
}

.panel.panel-info .panel-body {
	padding: 15px 20px;
}

.panel.panel-info .panel-body table {
	width: 100%;
}

.panel.panel-info .panel-body table tr {
	border-bottom: 1px solid #f1f1f1;
}

.panel.panel-info .panel-body table tr:last-child {
	border-bottom: none;
}

.panel.panel-info .panel-body table td {
	padding: 10px 5px;
	font-size: 13px;
}

.panel.panel-info .panel-body table td:first-child {
	color: #7f8c8d;
}

.panel.panel-info .panel-body table td:last-child {
	text-align: right;
	font-weight: 600;
	color: #2c3e50;
}

/* Text styling for dashboard tables */
.ok-text {
	color: #27ae60 !important;
}

.error-text {
	color: #e74c3c !important;
}

.bold-text {
	font-weight: 600;
}

/* Charts Container */
#container23,
#container24 {
	min-width: 300px;
	max-width: 100%;
	height: 300px;
	margin: 0;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

.chart-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	padding: 25px;
	height: 380px;
	transition: all 0.3s ease;
	border: 1px solid #f0f0f0;
}

.chart-card:hover {
	box-shadow: 0 8px 30px rgba(0,0,0,0.12);
	transform: translateY(-3px);
}

/* ============================================
   QUICK INFO CARDS GRID
   ============================================ */

.quick-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 20px;
}

.quick-card {
	background: #fff;
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.quick-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
}

.quick-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.quick-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 15px;
}

.quick-card-icon {
	width: 45px;
	height: 45px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}

.quick-card-title {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a2e;
	letter-spacing: -0.1px;
}

.quick-card-body {
	flex: 1;
	margin-bottom: 15px;
}

.quick-card-value {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0;
	margin-bottom: 5px;
	font-feature-settings: 'tnum';
}

.quick-card-meta {
	font-size: 13px;
	color: #718096;
	font-weight: 500;
}

.quick-card-btn {
	width: 100%;
	padding: 12px;
	border: 2px solid #e9ecef;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	background: transparent;
	color: #2c3e50;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.quick-card-btn:hover {
	border-color: transparent;
	transform: translateY(-2px);
}

/* Quick Card Variants */
.quick-card-primary::before { background: linear-gradient(90deg, #3498db, #5dade2); }
.quick-card-primary .quick-card-icon { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.quick-card-primary .quick-card-btn:hover { background: #3498db; color: #fff; }

.quick-card-info::before { background: linear-gradient(90deg, #17a2b8, #48d1cc); }
.quick-card-info .quick-card-icon { background: rgba(23, 162, 184, 0.15); color: #17a2b8; }
.quick-card-info .quick-card-btn:hover { background: #17a2b8; color: #fff; }

.quick-card-success::before { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.quick-card-success .quick-card-icon { background: rgba(39, 174, 96, 0.15); color: #27ae60; }
.quick-card-success .quick-card-btn:hover { background: #27ae60; color: #fff; }

.quick-card-danger::before { background: linear-gradient(90deg, #e74c3c, #ec7063); }
.quick-card-danger .quick-card-icon { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.quick-card-danger .quick-card-btn:hover { background: #e74c3c; color: #fff; }

.quick-card-warning::before { background: linear-gradient(90deg, #f39c12, #f1c40f); }
.quick-card-warning .quick-card-icon { background: rgba(243, 156, 18, 0.15); color: #f39c12; }
.quick-card-warning .quick-card-btn:hover { background: #f39c12; color: #fff; }

.quick-card-secondary::before { background: linear-gradient(90deg, #6c757d, #95a5a6); }
.quick-card-secondary .quick-card-icon { background: rgba(108, 117, 125, 0.15); color: #6c757d; }
.quick-card-secondary .quick-card-btn:hover { background: #6c757d; color: #fff; }

/* Text Colors */
.text-success { color: #27ae60 !important; }
.text-danger { color: #e74c3c !important; }
.text-warning { color: #f39c12 !important; }
.text-secondary { color: #6c757d !important; }
.text-right { text-align: right; }

/* ============================================
   INFO CARDS (Account Details & Activity)
   ============================================ */

.info-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	overflow: hidden;
	height: 100%;
	transition: all 0.3s ease;
	border: 1px solid #f0f0f0;
}

.info-card:hover {
	box-shadow: 0 8px 30px rgba(0,0,0,0.12);
	transform: translateY(-3px);
}

.info-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 20px;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	border-bottom: none;
}

.info-card-icon {
	font-size: 22px;
	color: #fff;
}

.info-card-title {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	flex: 1;
}

.info-card-link {
	font-size: 12px;
	color: #5dade2;
	text-decoration: none;
	font-weight: 500;
	padding: 5px 12px;
	background: rgba(255,255,255,0.1);
	border-radius: 20px;
	transition: all 0.3s ease;
}

.info-card-link:hover {
	background: rgba(255,255,255,0.2);
	text-decoration: none;
	color: #fff;
}

.info-card-body {
	padding: 20px;
}

.info-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 15px;
	border-bottom: 1px solid #f5f5f5;
	margin: 0 -15px;
	transition: all 0.2s ease;
}

.info-row:hover {
	background: #f8f9fa;
}

.info-row:last-child {
	border-bottom: none;
}

.info-label {
	font-size: 14px;
	color: #7f8c8d;
	font-weight: 500;
}

.info-value {
	font-size: 14px;
	font-weight: 600;
	color: #2c3e50;
}

.status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.status-active {
	background: rgba(39, 174, 96, 0.15);
	color: #27ae60;
}

.status-locked {
	background: rgba(231, 76, 60, 0.15);
	color: #e74c3c;
}

/* Activity List */
.activity-list {
	max-height: 250px;
	overflow-y: auto;
}

.activity-item {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px 0;
	border-bottom: 1px solid #f1f1f1;
}

.activity-item:last-child {
	border-bottom: none;
}

.activity-date {
	font-size: 11px;
	color: #95a5a6;
}

.activity-text {
	font-size: 13px;
	color: #2c3e50;
}

.empty-state {
	text-align: center;
	padding: 30px;
	color: #95a5a6;
	font-size: 14px;
}

/* ============================================
   DASHBOARD MODALS
   ============================================ */

.dashboard-modal {
	position: fixed;
	top: 0;
	left: 250px; /* Account for sidebar width */
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	padding: 20px;
}

/* When sidebar is collapsed */
.sidebar-collapsed .dashboard-modal {
	left: 0;
}

.dashboard-modal.show {
	opacity: 1;
	visibility: visible;
}

.modal-content {
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 600px;
	max-height: 80vh;
	overflow: hidden;
	transform: translateY(-20px);
	transition: transform 0.3s ease;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dashboard-modal.show .modal-content {
	transform: translateY(0);
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 25px;
	background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
	color: #fff;
}

.modal-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.modal-close {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: #fff;
	font-size: 24px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	line-height: 1;
}

.modal-close:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: rotate(90deg);
}

.modal-body {
	padding: 20px 25px;
	overflow-y: auto;
	max-height: calc(80vh - 80px);
}

.modal-table {
	width: 100%;
	border-collapse: collapse;
}

.modal-table thead th {
	background: #f8f9fa;
	padding: 12px 15px;
	text-align: left;
	font-size: 12px;
	font-weight: 600;
	color: #7f8c8d;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid #e9ecef;
}

.modal-table tbody tr {
	border-bottom: 1px solid #f1f1f1;
	transition: background 0.2s ease;
}

.modal-table tbody tr:hover {
	background: #f8f9fa;
}

.modal-table tbody td {
	padding: 12px 15px;
	font-size: 14px;
	color: #2c3e50;
}

.modal-table .row-success td:first-child {
	border-left: 3px solid #27ae60;
}

.modal-table .row-danger td:first-child {
	border-left: 3px solid #e74c3c;
}

.modal-table .row-warning td:first-child {
	border-left: 3px solid #f39c12;
}

/* Responsive Quick Cards */
@media (max-width: 1200px) {
	.quick-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.quick-cards-grid {
		grid-template-columns: 1fr;
	}

	.quick-card {
		padding: 15px;
	}

	.quick-card-value {
		font-size: 15px;
	}

	.dashboard-modal {
		left: 0; /* Full width on mobile */
	}

	.modal-content {
		max-height: 90vh;
		margin: 10px;
	}

	.modal-body {
		max-height: calc(90vh - 80px);
	}
}

/* ============================================
   CHART OF ACCOUNTS - MODERN TREE VIEW
   ============================================ */

/* COA Alert */
.coa-alert {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	border-radius: 10px;
	margin-bottom: 20px;
	font-size: 14px;
}

.coa-alert-danger {
	background: rgba(231, 76, 60, 0.1);
	border: 1px solid rgba(231, 76, 60, 0.2);
	color: #c0392b;
}

.coa-alert-icon {
	font-size: 18px;
}

/* COA Header */
.coa-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.06);
	margin-bottom: 20px;
}

.coa-header-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.coa-header-icon {
	font-size: 28px;
}

.coa-header-text {
	display: flex;
	flex-direction: column;
}

.coa-header-title {
	font-size: 18px;
	font-weight: 700;
	color: #2c3e50;
}

.coa-header-subtitle {
	font-size: 13px;
	color: #7f8c8d;
}

.coa-header-actions {
	display: flex;
	gap: 10px;
}

.coa-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: none;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.coa-btn-expand {
	background: rgba(52, 152, 219, 0.1);
	color: #3498db;
}

.coa-btn-expand:hover {
	background: #3498db;
	color: #fff;
}

.coa-btn-collapse {
	background: rgba(108, 117, 125, 0.1);
	color: #6c757d;
}

.coa-btn-collapse:hover {
	background: #6c757d;
	color: #fff;
}

/* COA Container */
.coa-container {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* Root Group Cards */
.coa-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 15px rgba(0,0,0,0.08);
	overflow: hidden;
	border-left: 4px solid #7f8c8d;
}

.coa-card.coa-group-assets {
	border-left-color: #27ae60;
}

.coa-card.coa-group-liabilities {
	border-left-color: #3498db;
}

.coa-card.coa-group-income {
	border-left-color: #9b59b6;
}

.coa-card.coa-group-expense {
	border-left-color: #e74c3c;
}

.coa-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
	cursor: pointer;
	transition: background 0.2s ease;
}

.coa-card-header:hover {
	background: linear-gradient(135deg, #f1f3f5 0%, #f8f9fa 100%);
}

.coa-header-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.coa-toggle-icon {
	font-size: 10px;
	color: #7f8c8d;
	width: 16px;
	text-align: center;
	transition: transform 0.2s ease;
}

.coa-group-icon {
	font-size: 20px;
}

.coa-group-name {
	font-size: 16px;
	font-weight: 700;
	color: #2c3e50;
}

.coa-header-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.coa-badge {
	padding: 4px 10px;
	background: rgba(0,0,0,0.05);
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	color: #7f8c8d;
}

/* Card Content */
.coa-card-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	padding: 0 20px;
}

.coa-card-content.show {
	max-height: 5000px;
	padding: 15px 20px 20px;
	transition: max-height 0.5s ease-in, padding 0.2s ease;
}

/* Sub-groups */
.coa-subgroup {
	margin: 8px 0;
	border-radius: 8px;
	background: #f8f9fa;
	overflow: hidden;
}

.coa-subgroup-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 15px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.coa-subgroup-header:hover {
	background: #e9ecef;
}

.coa-folder-icon {
	font-size: 16px;
}

.coa-subgroup-name {
	flex: 1;
	font-size: 14px;
	font-weight: 600;
	color: #2c3e50;
}

.coa-subgroup-actions {
	display: flex;
	gap: 5px;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.coa-subgroup-header:hover .coa-subgroup-actions {
	opacity: 1;
}

.coa-subgroup-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	padding: 0 15px;
	background: rgba(255,255,255,0.5);
}

.coa-subgroup-content.show {
	max-height: 3000px;
	padding: 10px 15px 15px;
	transition: max-height 0.4s ease-in, padding 0.2s ease;
}

/* Ledger Items */
.coa-ledgers-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.coa-ledger-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid rgba(0,0,0,0.05);
	transition: all 0.2s ease;
}

.coa-ledger-item:hover {
	border-color: rgba(52, 152, 219, 0.3);
	box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.coa-ledger-info {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

.coa-ledger-icon {
	font-size: 16px;
	color: #7f8c8d;
}

.coa-ledger-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.coa-ledger-name {
	font-size: 13px;
	font-weight: 500;
}

.coa-ledger-link {
	color: #2c3e50;
	text-decoration: none;
	transition: color 0.2s ease;
}

.coa-ledger-link:hover {
	color: #3498db;
	text-decoration: none;
}

.coa-ledger-code {
	font-size: 11px;
	color: #95a5a6;
	font-family: monospace;
}

/* Ledger Balances */
.coa-ledger-balances {
	display: flex;
	gap: 15px;
}

.coa-balance-item {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	min-width: 80px;
}

.coa-balance-label {
	font-size: 10px;
	color: #95a5a6;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.coa-balance-value {
	font-size: 12px;
	font-weight: 600;
	color: #2c3e50;
}

.coa-balance-item.balance-debit .coa-balance-value {
	color: #27ae60;
}

.coa-balance-item.balance-credit .coa-balance-value {
	color: #e74c3c;
}

/* Action Buttons */
.coa-ledger-actions {
	display: flex;
	gap: 5px;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.coa-ledger-item:hover .coa-ledger-actions {
	opacity: 1;
}

.coa-action-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.coa-action-icon {
	font-size: 14px;
}

.coa-action-edit {
	background: rgba(52, 152, 219, 0.1);
	color: #3498db;
}

.coa-action-edit:hover {
	background: #3498db;
	color: #fff;
	text-decoration: none;
}

.coa-action-delete {
	background: rgba(231, 76, 60, 0.1);
	color: #e74c3c;
}

.coa-action-delete:hover {
	background: #e74c3c;
	color: #fff;
	text-decoration: none;
}

/* Root Group Color Variations */
.coa-group-assets .coa-group-icon { color: #27ae60; }
.coa-group-assets .coa-badge { background: rgba(39, 174, 96, 0.15); color: #27ae60; }

.coa-group-liabilities .coa-group-icon { color: #3498db; }
.coa-group-liabilities .coa-badge { background: rgba(52, 152, 219, 0.15); color: #3498db; }

.coa-group-income .coa-group-icon { color: #9b59b6; }
.coa-group-income .coa-badge { background: rgba(155, 89, 182, 0.15); color: #9b59b6; }

.coa-group-expense .coa-group-icon { color: #e74c3c; }
.coa-group-expense .coa-badge { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }

/* Responsive COA */
@media (max-width: 768px) {
	.coa-header {
		flex-direction: column;
		gap: 15px;
		align-items: stretch;
	}

	.coa-header-actions {
		justify-content: center;
	}

	.coa-ledger-item {
		flex-wrap: wrap;
	}

	.coa-ledger-info {
		width: 100%;
	}

	.coa-ledger-balances {
		flex: 1;
		justify-content: flex-start;
		padding-left: 26px;
	}

	.coa-ledger-actions {
		opacity: 1;
	}

	.coa-subgroup-actions {
		opacity: 1;
	}
}

/* ============================================
   FORM CARD STYLES
   ============================================ */

/* Form Card Container */
.form-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	overflow: hidden;
}

.form-card-body {
	padding: 25px 30px;
}

/* Form Row */
.form-row {
	margin-bottom: 22px;
}

/* Form Label with Icon */
.form-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 8px;
}

.form-label .field-icon {
	font-size: 16px;
	color: #7f8c8d;
}

.form-label .required {
	color: #e74c3c;
	margin-left: 2px;
}

/* Input Styling */
.input-styled {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	border: 1px solid #dce4ec;
	border-radius: 6px;
	background: #fff;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.input-styled:focus {
	border-color: #3498db;
	outline: none;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.input-styled::placeholder {
	color: #adb5bd;
}

/* Dropdown/Select Styling */
select.input-styled,
select.form-control {
	height: 38px;
	padding: 8px 14px;
	cursor: pointer;
}

/* Radio Inline */
.radio-inline-group {
	display: flex;
	gap: 20px;
	padding: 8px 0;
}

.radio-inline-group label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #2c3e50;
	cursor: pointer;
}

.radio-inline-group input[type="radio"] {
	width: 16px;
	height: 16px;
	accent-color: #3498db;
}

/* Checkbox Inline */
.checkbox-inline-styled {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 8px 0;
}

.checkbox-inline-styled input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #3498db;
}

.checkbox-inline-styled .checkbox-icon {
	font-size: 16px;
	color: #7f8c8d;
	display: none;
}

.checkbox-text {
	font-size: 14px;
	color: #2c3e50;
}

/* Form Hints */
.form-hint {
	display: block;
	font-size: 12px;
	color: #7f8c8d;
	margin-top: 6px;
	font-style: italic;
}

/* Form Actions */
.form-actions {
	display: flex;
	gap: 12px;
	padding-top: 20px;
	margin-top: 25px;
	border-top: 1px solid #e9ecef;
}

/* Button with Icon */
.btn-icon-left {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.btn-icon-left .btn-icon {
	font-size: 14px;
}

.btn-icon-left.btn-primary {
	background: #3498db;
	border: 1px solid #3498db;
	color: #fff;
}

.btn-icon-left.btn-primary:hover {
	background: #2980b9;
	border-color: #2980b9;
}

.btn-icon-left.btn-default {
	background: #fff;
	border: 1px solid #dce4ec;
	color: #6c757d;
}

.btn-icon-left.btn-default:hover {
	background: #f8f9fa;
	border-color: #c8d0d8;
	color: #495057;
	text-decoration: none;
}

/* Select2 Styling for Form Card */
.form-card .select2-container {
	width: 100% !important;
}

.form-card .select2-container--default .select2-selection--single {
	padding: 6px 10px;
	height: auto;
	border: 1px solid #dce4ec;
	border-radius: 6px;
	background: #fff;
	transition: all 0.2s ease;
}

.form-card .select2-container--default.select2-container--focus .select2-selection--single,
.form-card .select2-container--default.select2-container--open .select2-selection--single {
	border-color: #3498db;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.form-card .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0;
	line-height: 24px;
	color: #2c3e50;
}

.select2-dropdown {
	border: 1px solid #dce4ec;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	margin-top: 4px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background: #3498db;
}

.select2-container--default .select2-results__option[aria-disabled="true"] {
	font-weight: 600;
	color: #2c3e50;
	background: #f8f9fa;
}

/* ============================================
   ENTRIES SCREEN STYLES
   ============================================ */

/* Entries Header */
.entries-header {
	margin-bottom: 20px;
}

.entries-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	padding: 15px 20px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.toolbar-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.toolbar-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Filter Form */
.entries-filter-form {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

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

.filter-label {
	font-size: 13px;
	font-weight: 500;
	color: #6c757d;
	white-space: nowrap;
}

.filter-select {
	min-width: 140px;
}

.filter-input {
	width: 120px;
}

/* Secondary Button */
.btn-secondary {
	background: #f8f9fa;
	border: 1px solid #dce4ec;
	color: #495057;
}

.btn-secondary:hover {
	background: #e9ecef;
	border-color: #c8d0d8;
	color: #2c3e50;
}

/* Entries Table Container */
.entries-table-container {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	overflow: hidden;
}

.entries-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.entries-table thead {
	background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.entries-table thead th {
	padding: 14px 12px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: left;
	border: none;
	white-space: nowrap;
}

.entries-table thead th a {
	color: #fff;
	text-decoration: none;
}

.entries-table thead th a:hover {
	color: #ecf0f1;
}

.entries-table tbody tr {
	border-bottom: 1px solid #f0f3f5;
	transition: background 0.15s ease;
}

.entries-table tbody tr:hover {
	background: #f8fafc;
}

.entries-table tbody tr:last-child {
	border-bottom: none;
}

.entries-table tbody td {
	padding: 12px;
	color: #2c3e50;
	vertical-align: middle;
}

/* Table Column Widths */
.th-checkbox, .td-checkbox { width: 40px; text-align: center; }
.th-date, .td-date { width: 90px; }
.th-number, .td-number { width: 80px; }
.th-ledger, .td-ledger { max-width: 150px; }
.th-payee, .td-payee { max-width: 120px; }
.th-note, .td-note { max-width: 180px; }
.th-type, .td-type { width: 100px; }
.th-tag, .td-tag { width: 80px; }
.th-amount, .td-amount { width: 100px; text-align: right; }
.th-cheque, .td-cheque { width: 80px; }
.th-actions, .td-actions { width: 180px; }

/* Cell Styling */
.td-ledger, .td-payee, .td-note {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.date-value {
	font-weight: 500;
	color: #6c757d;
}

.entry-number {
	font-weight: 600;
	color: #3498db;
	font-family: 'Consolas', monospace;
}

.amount-value {
	font-weight: 600;
	color: #27ae60;
	font-family: 'Consolas', monospace;
}

.entry-type-badge {
	display: inline-block;
	padding: 3px 8px;
	font-size: 11px;
	font-weight: 500;
	background: #e8f4fd;
	color: #3498db;
	border-radius: 4px;
}

.void-badge {
	display: inline-block;
	padding: 2px 6px;
	font-size: 10px;
	font-weight: 600;
	background: #e74c3c;
	color: #fff;
	border-radius: 3px;
	margin-left: 4px;
}

/* Void Entry Row */
.entry-void {
	background: #fff5f5 !important;
}

.entry-void td {
	color: #c0392b !important;
}

.entry-void .entry-number,
.entry-void .amount-value {
	color: #c0392b !important;
}

/* Action Buttons */
.action-buttons {
	display: flex;
	gap: 4px;
	align-items: center;
}

.action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.15s ease;
	background: #f8f9fa;
	border: 1px solid transparent;
}

.action-btn:hover {
	text-decoration: none;
}

.action-icon {
	font-size: 14px;
}

.action-view { color: #3498db; }
.action-view:hover { background: #e8f4fd; border-color: #3498db; color: #2980b9; }

.action-edit { color: #f39c12; }
.action-edit:hover { background: #fef9e7; border-color: #f39c12; color: #d68910; }

.action-delete { color: #e74c3c; }
.action-delete:hover { background: #fdedec; border-color: #e74c3c; color: #c0392b; }

.action-email { color: #9b59b6; }
.action-email:hover { background: #f5eef8; border-color: #9b59b6; color: #8e44ad; }

.action-download { color: #1abc9c; }
.action-download:hover { background: #e8f8f5; border-color: #1abc9c; color: #16a085; }

.action-print { color: #34495e; }
.action-print:hover { background: #ebedef; border-color: #34495e; color: #2c3e50; }

/* Entries Pagination */
.entries-pagination {
	display: flex;
	justify-content: center;
	padding: 20px;
	background: #fff;
	border-radius: 10px;
	margin-top: 15px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.entries-pagination .pagination {
	margin: 0;
	display: flex;
	gap: 4px;
}

.entries-pagination .pagination li {
	list-style: none;
}

.entries-pagination .pagination li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	font-size: 13px;
	font-weight: 500;
	color: #6c757d;
	background: #f8f9fa;
	border: 1px solid #dce4ec;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.15s ease;
}

.entries-pagination .pagination li a:hover {
	background: #e9ecef;
	border-color: #c8d0d8;
	color: #2c3e50;
}

.entries-pagination .pagination li.active a {
	background: #3498db;
	border-color: #3498db;
	color: #fff;
}

.entries-pagination .pagination li.disabled a {
	color: #adb5bd;
	background: #f8f9fa;
	cursor: not-allowed;
}

/* Modern Modal Styles */
.modal-dialog-modern {
	max-width: 450px;
}

.modal-content-modern {
	border: none;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.15);
	overflow: hidden;
}

.modal-header-modern {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 25px;
	background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
	border: none;
}

.modal-header-modern .modal-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	margin: 0;
}

.modal-header-modern .modal-icon {
	font-size: 20px;
}

.modal-close {
	background: rgba(255,255,255,0.2);
	border: none;
	color: #fff;
	font-size: 20px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s ease;
}

.modal-close:hover {
	background: rgba(255,255,255,0.3);
}

.modal-body-modern {
	padding: 25px;
}

.modal-footer-modern {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	padding: 15px 25px 20px;
	border: none;
	background: #f8f9fa;
}

.modal-error-msg {
	display: none;
	padding: 12px 20px;
	margin: 0;
	font-size: 13px;
	color: #c0392b;
	background: #fdedec;
	border-left: 3px solid #e74c3c;
}

.modal-ajax {
	display: none;
	padding: 30px;
	text-align: center;
	color: #6c757d;
	font-size: 14px;
}

.ajax-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #e9ecef;
	border-top-color: #3498db;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	margin-right: 10px;
	vertical-align: middle;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
	.entries-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.toolbar-left, .toolbar-right {
		justify-content: center;
		flex-wrap: wrap;
	}

	.entries-filter-form {
		flex-wrap: wrap;
		justify-content: center;
	}

	.entries-table-container {
		overflow-x: auto;
	}

	.entries-table {
		min-width: 900px;
	}
}

/* ============================================
   ENTRY VIEW SCREEN STYLES
   ============================================ */

.entry-view-container {
	width: 100%;
}

/* Entry Header Card */
.entry-header-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 12px;
	padding: 25px;
	margin-bottom: 20px;
	color: #fff;
}

.entry-header-card.entry-void-card {
	background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.entry-header-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
}

.entry-type-info {
	display: flex;
	align-items: center;
	gap: 15px;
}

.entry-type-icon {
	font-size: 40px;
	opacity: 0.9;
}

.entry-type-details {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.entry-type-name {
	font-size: 22px;
	font-weight: 600;
}

.entry-number-badge {
	font-size: 14px;
	font-weight: 500;
	opacity: 0.9;
	font-family: 'Consolas', monospace;
}

.void-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: rgba(255,255,255,0.2);
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

.entry-meta-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
}

.entry-meta-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 15px;
	background: rgba(255,255,255,0.1);
	border-radius: 8px;
}

.meta-icon {
	font-size: 18px;
	opacity: 0.8;
}

.meta-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.meta-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.8;
}

.meta-value {
	font-size: 14px;
	font-weight: 500;
}

/* Entry Items Card */
.entry-items-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	overflow: hidden;
	margin-bottom: 20px;
}

.entry-items-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 20px;
	background: #f8f9fa;
	border-bottom: 1px solid #e9ecef;
}

.items-header-icon {
	font-size: 18px;
	color: #6c757d;
}

.items-header-title {
	font-size: 14px;
	font-weight: 600;
	color: #2c3e50;
}

.entry-items-table {
	width: 100%;
	border-collapse: collapse;
}

.entry-items-table thead {
	background: #2c3e50;
}

.entry-items-table thead th {
	padding: 12px 15px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: left;
}

.entry-items-table tbody tr {
	border-bottom: 1px solid #f0f3f5;
}

.entry-items-table tbody tr:hover {
	background: #f8fafc;
}

.entry-items-table tbody td {
	padding: 14px 15px;
	font-size: 14px;
	color: #2c3e50;
}

.th-dc, .td-dc { width: 80px; }
.th-ledger, .td-ledger { }
.th-dr-amount, .td-dr-amount { width: 140px; text-align: right; }
.th-cr-amount, .td-cr-amount { width: 140px; text-align: right; }

.dc-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 4px;
}

.dc-badge.dc-d {
	background: #e8f5e9;
	color: #27ae60;
}

.dc-badge.dc-c {
	background: #fff3e0;
	color: #f39c12;
}

.amount-dr {
	font-weight: 600;
	color: #27ae60;
	font-family: 'Consolas', monospace;
}

.amount-cr {
	font-weight: 600;
	color: #e67e22;
	font-family: 'Consolas', monospace;
}

.entry-items-table tfoot tr {
	background: #f8f9fa;
}

.total-row {
	border-top: 2px solid #2c3e50;
}

.total-row td {
	padding: 14px 15px;
	font-weight: 700;
	color: #2c3e50;
}

.total-label {
	text-align: right;
	padding-right: 20px !important;
}

.total-dr, .total-cr {
	font-family: 'Consolas', monospace;
	font-size: 15px;
	text-align: right;
}

.difference-row td {
	padding: 12px 15px;
	color: #e74c3c;
	font-weight: 600;
}

.diff-label {
	text-align: right;
	padding-right: 20px !important;
}

.diff-amount {
	font-family: 'Consolas', monospace;
	text-align: right;
}

/* Entry Details Card */
.entry-details-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	padding: 20px;
	margin-bottom: 20px;
}

.detail-row {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	padding: 12px 0;
	border-bottom: 1px solid #f0f3f5;
}

.detail-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.detail-row:first-child {
	padding-top: 0;
}

.detail-icon {
	font-size: 18px;
	color: #6c757d;
	width: 24px;
	text-align: center;
}

.detail-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.detail-label {
	font-size: 12px;
	font-weight: 600;
	color: #6c757d;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.detail-value {
	font-size: 14px;
	color: #2c3e50;
	line-height: 1.5;
}

/* Entry Actions Bar */
.entry-actions-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	padding: 20px 25px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.actions-left,
.actions-center,
.actions-right {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Button Variants */
.btn-danger {
	background: #e74c3c;
	border: 1px solid #e74c3c;
	color: #fff;
}

.btn-danger:hover {
	background: #c0392b;
	border-color: #c0392b;
	color: #fff;
}

.btn-success {
	background: #27ae60;
	border: 1px solid #27ae60;
	color: #fff;
}

.btn-success:hover {
	background: #1e8449;
	border-color: #1e8449;
	color: #fff;
}

/* Responsive Entry View */
@media (max-width: 768px) {
	.entry-meta-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.entry-actions-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.actions-left,
	.actions-center,
	.actions-right {
		justify-content: center;
	}

	.entry-items-card {
		overflow-x: auto;
	}

	.entry-items-table {
		min-width: 500px;
	}
}
