.error {
    color: red;
}

#kt_app_sidebar_menu .menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

#kt_app_sidebar_menu .menu-icon > svg {
    fill: white !important;
    width: 20px !important;
    height: 20px !important;
    display: block;
}

#kt_app_sidebar_menu .menu-icon > i {
    color: white !important;
    font-size: 20px !important;
    display: block;
}

/* Table alignment is handled per column type - removed global center alignment */

.cursor-pointer {
    cursor: pointer;
}


.image-input-empty {
    background-image: url('./../images/blank.svg');
}

.action-div > * {
    margin-right: 15px;
}

.table .icon {
    font-size: 18px;
}

.table .icon.edit-icon {
    color: #1e3a8a;
}
[data-bs-theme=dark] .table .icon.edit-icon {
    color: #1e3a8a;
}

/* Global Dark Blue Theme - Match Logo Color */
.btn-primary {
    background-color: #1e3a8a !important;
    border-color: #1e3a8a !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #1e40af !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
}

.btn-primary:focus {
    box-shadow: none !important;
}

/* Remove all shadows from buttons with solid color */
.btn[style*="background: #1e3a8a"],
.btn[style*="background:#1e3a8a"],
.btn[style*="background: #667eea"],
.btn[style*="background:#667eea"] {
    box-shadow: none !important;
}

.btn[style*="background: #1e3a8a"]:hover,
.btn[style*="background:#1e3a8a"]:hover {
    background: #1e40af !important;
    border-color: #1e40af !important;
}

/* Form Headers - Match Dark Blue Theme */
.card-header .card-title h3.fw-bold,
.card-header .card-title h2.fw-bold,
.card-header .card-title h1.fw-bold {
    color: #1e3a8a !important;
}

/* Card Styling - Consistent UI */
.card {
    display: block !important;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: none !important;
    background: #f9fafb;
    margin-bottom: 1.5rem;
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-header.border-0 {
    border-bottom: 1px solid #e5e7eb !important;
}

.card-header.pt-6 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.card-header.pb-0 {
    padding-bottom: 0 !important;
}

.card-header.bg-light {
    background: #f3f4f6 !important;
    border-bottom: 1px solid #e5e7eb;
}

/* Card Title Styling */
.card-title {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.card-title h1,
.card-title h2,
.card-title h3,
.card-title h4,
.card-title h5,
.card-title h6 {
    color: #1e3a8a;
    font-weight: 700;
    margin-bottom: 0;
    font-size: 1.5rem;
    line-height: 1.5;
}

/* Card Toolbar Styling */
.card-toolbar {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.card-toolbar .d-flex {
    align-items: center;
}

.card-body {
    padding: 1.5rem;
    background: #ffffff;
}

/* Allow specific padding overrides */
.card-body.pt-0 {
    padding-top: 0 !important;
}

.card-body.p-0 {
    padding: 0 !important;
}

.card-body.p-6 {
    padding: 1.5rem !important;
}

.card-body.p-4 {
    padding: 1rem !important;
}

.card-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: 0 0 0.75rem 0.75rem;
}

/* Remove shadows from all cards */
.card.shadow-sm,
.card.shadow,
.card.shadow-lg {
    box-shadow: none !important;
}

/* Card title styling */
.card-title {
    margin-bottom: 0;
}

.card-title h1,
.card-title h2,
.card-title h3,
.card-title h4,
.card-title h5,
.card-title h6 {
    color: #1e3a8a;
    font-weight: 700;
    margin-bottom: 0;
}

/* Apply table alignment styles to all tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
    background: transparent !important;
    table-layout: auto !important;
    width: 100% !important;
}

.table thead th {
    vertical-align: middle !important;
}

.table tbody td {
    vertical-align: middle !important;
}

/* Ensure all table headers have consistent styling */
.table thead th {
    background: #f3f4f6 !important;
    border-bottom: 2px solid #1e3a8a !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    color: #1e3a8a !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 0.75rem 0.5rem !important;
    vertical-align: middle !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: visible !important;
    word-break: keep-all !important;
    word-wrap: normal !important;
}

/* Action column should be fixed width and stay at the end */
.table thead th:last-child,
.table tbody td:last-child {
    width: auto !important;
    min-width: 120px !important;
    max-width: 150px !important;
}

/* Ensure action column background matches row background */
.table tbody tr td:last-child {
    background: inherit !important;
}

.table tbody tr:hover td:last-child {
    background: inherit !important;
}

.table thead th > div {
    justify-content: flex-start !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

.table thead th > div > span,
.table thead th span {
    white-space: nowrap !important;
    display: inline-block !important;
}

.table thead th:first-child {
    padding-left: 0.75rem !important;
}

.table thead th:last-child {
    padding-right: 0.75rem !important;
}

.table thead tr {
    background: #f3f4f6 !important;
    border-bottom: 2px solid #1e3a8a !important;
}

/* Ensure all table cells have consistent styling */
.table tbody td {
    padding: 0.75rem 0.5rem !important;
    color: #374151;
    font-size: 0.875rem;
    border: none;
    line-height: 1.5 !important;
    vertical-align: middle !important;
    text-align: left !important;
    background: transparent !important;
    width: auto !important;
}

.table tbody td > div {
    justify-content: flex-start !important;
    text-align: left !important;
}

.table tbody td:first-child {
    padding-left: 0.75rem !important;
}

.table tbody td:last-child {
    padding-right: 0.75rem !important;
}

.table tbody tr {
    min-height: 60px;
    background: transparent !important;
}

.table tbody tr:hover {
    background: transparent !important;
}

.table tbody tr:nth-child(even) {
    background: transparent !important;
}

.table tbody tr:nth-child(odd) {
    background: transparent !important;
}

/* Dynamic column sizing - columns adjust based on content */
.table thead th:not(:last-child),
.table tbody td:not(:last-child) {
    width: auto !important;
}

/* Allow columns to have minimum width based on content */
.table thead th.min-w-125px {
    min-width: 125px !important;
}

/* Prevent header text wrapping - ensure headers display on single line */
.table thead th,
.table thead th > div,
.table thead th span {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* Ensure action column is always the last column - prevent extra columns */
.table {
    table-layout: auto !important;
    width: 100% !important;
    border-right: none !important;
    border-collapse: separate;
    border-spacing: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-right: none !important;
}

/* Remove right border from entire table structure */
.table,
.table thead,
.table tbody,
.table tr {
    border-right: none !important;
}

/* Ensure action column is always the last column - prevent extra columns */
.table thead th:last-child,
.table tbody td:last-child {
    position: relative;
    border-right: none !important;
    border-right-width: 0 !important;
    border-right-style: none !important;
}

/* Prevent any extra columns from appearing after the last column */
.table thead th:last-child::after,
.table tbody td:last-child::after {
    display: none !important;
    content: none !important;
}

/* Ensure no border or spacing issues with last column */
.table tbody tr td:last-child {
    border-right: none !important;
    border-right-width: 0 !important;
    border-right-style: none !important;
    padding-right: 0.75rem !important;
    max-width: 150px;
}

.table thead th:last-child {
    border-right: none !important;
    border-right-width: 0 !important;
    border-right-style: none !important;
    padding-right: 0.75rem !important;
    max-width: 150px;
}

/* Remove border from last cell in each row */
.table tbody tr td:last-child,
.table thead tr th:last-child {
    border-right: 0 !important;
    border-right-width: 0 !important;
    border-right-style: none !important;
}

/* Prevent table from creating phantom columns */
.table tbody tr {
    width: 100%;
}

.table tbody tr td:last-child {
    white-space: nowrap;
}

/* Link Primary Color - Theme Consistent */
.link-primary,
a.text-primary {
    color: #1e3a8a !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-primary:hover,
a.text-primary:hover {
    color: #1e40af !important;
    text-decoration: underline;
}

a {
    color: #1e3a8a;
    transition: color 0.2s ease;
}

a:hover {
    color: #1e40af;
}

/* Override global anchor styles for sidebar menu */
#kt_app_sidebar_menu a,
#kt_app_sidebar_menu a:hover,
#kt_app_sidebar_menu a:focus,
#kt_app_sidebar_menu a:active {
    color: #ffffff !important;
}

/* Delete Button - Solid Red */
.btn-danger {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger.active {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.btn-danger:focus {
    box-shadow: none !important;
}

/* Text Primary Color - Dark Blue */
.text-primary {
    color: #1e3a8a !important;
}

/* Logo - Remove shadows and keep simple */
#kt_app_sidebar_logo,
#kt_app_sidebar_logo *,
#kt_app_sidebar_logo img {
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
}

#kt_app_sidebar_toggle {
    position: absolute !important;
    top: 50% !important;
    right: -15px !important;
    transform: translateY(-50%) !important;
    background: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    border-radius: 50% !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
}

#kt_app_sidebar_toggle:hover {
    background: #ffffff !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    transform: translateY(-50%) scale(1.05) !important;
}

#kt_app_sidebar_toggle:focus,
#kt_app_sidebar_toggle:focus-visible {
    background: #ffffff !important;
    outline: none !important;
}

#kt_app_sidebar_toggle:active {
    transform: translateY(-50%) scale(0.95) !important;
}

#kt_app_sidebar_toggle i {
    color: #1e3a8a !important;
    transition: transform 0.3s ease !important;
    font-size: 0.875rem !important;
}

#kt_app_sidebar_toggle:hover i {
    color: #1e3a8a !important;
}

#kt_app_sidebar_toggle.rotate i,
[data-kt-app-sidebar-minimize="on"] #kt_app_sidebar_toggle i {
    transform: rotate(180deg);
}

/* Form Input Styling - Consistent UI */
.form-control,
.form-select {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: none;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #1e3a8a;
    box-shadow: none !important;
    outline: none;
}

.form-control:hover:not(.is-invalid),
.form-select:hover:not(.is-invalid) {
    border-color: #1e3a8a;
}

.form-control-solid {
    background-color: #f9fafb;
    border-color: #e5e7eb;
}

.form-control-solid:focus:not(.is-invalid),
.form-select-solid:focus:not(.is-invalid) {
    background-color: #ffffff;
    border-color: #1e3a8a;
}

.form-control-solid:hover:not(.is-invalid),
.form-select-solid:hover:not(.is-invalid) {
    border-color: #d1d5db;
}

/* Button Styling - Consistent Sizing and Theme Colors */
.btn {
    border-radius: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-icon {
    padding: 0.625rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon i {
    font-size: 1.375rem !important;
}

.btn-icon-transparent {
    padding: 0.625rem !important;
    border-radius: 0.375rem;
}

.btn-icon-transparent i {
    font-size: 1.375rem !important;
}

/* Button Color Variations - Theme Based */
.btn-success {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

.btn-success:hover,
.btn-success:focus {
    background-color: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}

.btn-warning {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
}

.btn-info {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

.btn-info:hover,
.btn-info:focus {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

.btn-secondary {
    background-color: #6b7280 !important;
    border-color: #6b7280 !important;
    color: #ffffff !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #4b5563 !important;
    border-color: #4b5563 !important;
    color: #ffffff !important;
}

.btn-light {
    background-color: #f3f4f6 !important;
    border-color: #e5e7eb !important;
    color: #374151 !important;
}

.btn-light:hover,
.btn-light:focus {
    background-color: #e5e7eb !important;
    border-color: #d1d5db !important;
    color: #1f2937 !important;
}

/* Spacing Improvements */
.mb-5 {
    margin-bottom: 1.5rem !important;
}

.mb-xl-8 {
    margin-bottom: 2rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 0.75rem !important;
}

/* Table Container Spacing */
.table-responsive {
    margin-top: 0;
    margin-bottom: 0;
    padding: 16px !important;
}

/* Card Spacing */
.card.mb-5 {
    margin-bottom: 1.5rem !important;
}

.card.mb-xl-8 {
    margin-bottom: 2rem !important;
}

/* Flash Message Styling */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: none !important;
}

/* Reduce header padding for compact layout */
.app-header {
    padding: 0.25rem 0 !important;
    min-height: auto !important;
}

.app-header .app-container {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

/* Reduce content container padding */
#kt_app_content_container {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Alert Colors - Theme Consistent */
.alert-success {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
    border-color: #10b981 !important;
}

.alert-danger {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #ef4444 !important;
}

.alert-info {
    background-color: #dbeafe !important;
    color: #1e40af !important;
    border-color: #3b82f6 !important;
}

.alert-warning {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    border-color: #f59e0b !important;
}

.alert-primary {
    background-color: #dbeafe !important;
    color: #1e3a8a !important;
    border-color: #1e3a8a !important;
}

/* Badge Styling - Theme Consistent Colors */
.badge {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 600;
    border-radius: 0.375rem;
    box-shadow: none !important;
    line-height: 1.4;
}

/* Badge Color Variations - Theme Based */
.badge-primary,
.badge.bg-primary {
    background-color: #1e3a8a !important;
    color: #ffffff !important;
}

.badge-success,
.badge.bg-success {
    background-color: #10b981 !important;
    color: #ffffff !important;
}

.badge-danger,
.badge.bg-danger {
    background-color: #ef4444 !important;
    color: #ffffff !important;
}

.badge-warning,
.badge.bg-warning {
    background-color: #f59e0b !important;
    color: #ffffff !important;
}

.badge-info,
.badge.bg-info {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

.badge-secondary,
.badge.bg-secondary {
    background-color: #6b7280 !important;
    color: #ffffff !important;
}

.badge-light,
.badge.bg-light {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
}

.badge-light-primary {
    background-color: #dbeafe !important;
    color: #1e3a8a !important;
}

.badge-light-success {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
}

.badge-light-danger {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
}

.badge-light-warning {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}

.badge-light-info {
    background-color: #dbeafe !important;
    color: #1e40af !important;
}

.badge-light-secondary {
    background-color: #f3f4f6 !important;
    color: #4b5563 !important;
}

.badge-light-dark {
    background-color: #e5e7eb !important;
    color: #1f2937 !important;
}

.badge-dark,
.badge.bg-dark {
    background-color: #1f2937 !important;
    color: #ffffff !important;
}

/* Pagination Improvements */
.pagination {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Action Buttons Container */
.d-flex.gap-2,
.d-flex.gap-3 {
    flex-wrap: wrap;
}

/* Consistent Border Radius */
.card,
.table-responsive,
.btn,
.form-control,
.form-select,
.alert,
.badge {
    border-radius: 0.5rem;
}

/* Remove transitions for solid UI - but allow essential ones */
.btn,
.form-control,
.form-select,
.card,
.table tbody tr {
    transition: none !important;
}

/* Footer Styling */
#kt_app_footer {
    background-color: #f8f9fa !important;
    border-top: 1px solid #e5e7eb !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 60px;
}

#kt_app_footer .app-container {
    padding: 1rem 1.5rem !important;
}

#kt_app_footer .text-muted {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

#kt_app_footer .text-gray-800 {
    color: #1f2937 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

#kt_app_footer .fa-arrow-up {
    opacity: 0.7;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

/* Sidebar Menu Arrow and Background Management */
#kt_app_sidebar_menu .menu-arrow {
    color: rgba(255,255,255,0.6) !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#kt_app_sidebar_menu .menu-arrow i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

#kt_app_sidebar_menu > .menu-item {
    margin-bottom: 0.75rem !important;
}

#kt_app_sidebar_menu > .menu-item:last-child {
    margin-bottom: 0 !important;
}

#kt_app_sidebar_menu .menu-sub .menu-item {
    margin-bottom: 0 !important;
}

#kt_app_sidebar_menu .menu-link {
    background: transparent !important;
    color: #ffffff !important;
    padding: 0.875rem 1rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 0.5rem !important;
}

#kt_app_sidebar_menu .menu-link,
#kt_app_sidebar_menu .menu-link *,
#kt_app_sidebar_menu a.menu-link,
#kt_app_sidebar_menu a.menu-link * {
    color: #ffffff !important;
}

#kt_app_sidebar_menu .menu-link:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
}

#kt_app_sidebar_menu .menu-link:hover .menu-arrow {
    color: rgba(255,255,255,0.9) !important;
}

#kt_app_sidebar_menu .menu-item.menu-accordion.show > .menu-link {
    background: rgba(255,255,255,0.12) !important;
    color: #ffffff !important;
    padding: 0.875rem 1rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 0.5rem !important;
}

#kt_app_sidebar_menu .menu-item.menu-accordion.show > .menu-link .menu-arrow {
    color: rgba(255,255,255,0.9) !important;
}

#kt_app_sidebar_menu .menu-link.active {
    background: #ffffff !important;
    color: #1e3a8a !important;
    border-left: 3px solid #1e3a8a !important;
    padding: 0.875rem 1rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 0.5rem !important;
}

#kt_app_sidebar_menu .menu-link.active .menu-icon,
#kt_app_sidebar_menu .menu-link.active .menu-icon i,
#kt_app_sidebar_menu .menu-link.active .menu-icon *,
#kt_app_sidebar_menu .menu-link.active[style*="color"] .menu-icon,
#kt_app_sidebar_menu .menu-link.active[style*="color"] .menu-icon i,
#kt_app_sidebar_menu .menu-link.active[style*="color"] .menu-icon *,
#kt_app_sidebar_menu a.menu-link.active .menu-icon,
#kt_app_sidebar_menu a.menu-link.active .menu-icon i,
#kt_app_sidebar_menu a.menu-link.active .menu-icon * {
    color: #1e3a8a !important;
}

#kt_app_sidebar_menu .menu-link.active .menu-icon > svg,
#kt_app_sidebar_menu .menu-link.active .menu-icon svg,
#kt_app_sidebar_menu a.menu-link.active .menu-icon > svg,
#kt_app_sidebar_menu a.menu-link.active .menu-icon svg {
    fill: #1e3a8a !important;
}

#kt_app_sidebar_menu .menu-title,
#kt_app_sidebar_menu .menu-link .menu-title,
#kt_app_sidebar_menu a .menu-title {
    color: #ffffff !important;
    font-size: 1.125rem !important;
    font-weight: 500 !important;
}

#kt_app_sidebar_menu .menu-link.active .menu-title {
    color: #1e3a8a !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
}

#kt_app_sidebar_menu .menu-link.active .menu-arrow,
#kt_app_sidebar_menu .menu-link.active .menu-arrow i {
    color: #1e3a8a !important;
}

#kt_app_sidebar_menu .menu-sub {
    box-shadow: none !important;
}

#kt_app_sidebar_menu .menu-sub .menu-link {
    box-shadow: none !important;
}

#kt_app_sidebar_menu .menu-sub .menu-link:hover {
    box-shadow: none !important;
}

#kt_app_sidebar_menu .menu-sub .menu-link.active,
#kt_app_sidebar_menu .menu-sub .menu-link.active[style*="color"],
#kt_app_sidebar_menu .menu-sub a.menu-link.active {
    background: #ffffff !important;
    color: #1e3a8a !important;
    border-left: 3px solid #1e3a8a !important;
    box-shadow: none !important;
    padding: 0.75rem 1rem 0.75rem 2.5rem !important;
    margin-bottom: 0.375rem !important;
    border-radius: 0.375rem !important;
}

#kt_app_sidebar_menu .menu-sub .menu-link.active .menu-title,
#kt_app_sidebar_menu .menu-sub .menu-link.active[style*="color"] .menu-title {
    color: #1e3a8a !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

#kt_app_sidebar_menu .menu-sub .menu-link.active .menu-bullet .bullet,
#kt_app_sidebar_menu .menu-sub .menu-link.active[style*="background-color"] .menu-bullet .bullet {
    background-color: #1e3a8a !important;
}

#kt_app_sidebar_menu .menu-sub .menu-link {
    display: flex !important;
    align-items: center !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem 0.75rem 2.5rem !important;
    margin-bottom: 0.375rem !important;
    border-radius: 0.375rem !important;
}

#kt_app_sidebar_menu .menu-sub .menu-link,
#kt_app_sidebar_menu .menu-sub .menu-link *,
#kt_app_sidebar_menu .menu-sub a.menu-link,
#kt_app_sidebar_menu .menu-sub a.menu-link * {
    color: #ffffff !important;
}

#kt_app_sidebar_menu .menu-sub .menu-link:hover {
    color: #ffffff !important;
}

#kt_app_sidebar_menu .menu-sub .menu-link:hover * {
    color: #ffffff !important;
}

#kt_app_sidebar_menu .menu-sub .menu-bullet {
    display: flex !important;
    align-items: center !important;
    margin-right: 0.5rem !important;
    flex-shrink: 0 !important;
}

#kt_app_sidebar_menu .menu-sub .menu-bullet .bullet {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
}

#kt_app_sidebar_menu .menu-sub .menu-title,
#kt_app_sidebar_menu .menu-sub .menu-link .menu-title,
#kt_app_sidebar_menu .menu-sub a .menu-title {
    flex: 1 !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
}

#kt_app_sidebar_menu .menu-sub .badge-danger {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-left: 0.5rem !important;
    color: #ef4444 !important;
}

#kt_app_sidebar_menu .menu-sub .menu-link.active .menu-icon,
#kt_app_sidebar_menu .menu-sub .menu-link.active .menu-icon i,
#kt_app_sidebar_menu .menu-sub .menu-link.active .menu-icon * {
    color: #1e3a8a !important;
}

#kt_app_sidebar_menu .menu-sub .menu-link.active .menu-title {
    color: #1e3a8a !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

#kt_app_sidebar_menu .menu-sub .menu-link.active .menu-bullet .bullet {
    background-color: #1e3a8a !important;
}

/* Bootstrap Date Input Styling - Global */
input[type="date"] {
    position: relative;
    color: #374151;
    font-size: 0.9375rem;
    padding-left: 0.75rem;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button {
    display: none;
    -webkit-appearance: none;
}

input[type="date"]:focus {
    outline: none;
    border-color: #1e3a8a !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1) !important;
}

input[type="date"]:hover {
    border-color: #9ca3af;
}

input[type="date"].form-control-solid {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

input[type="date"].form-control-solid:focus {
    background-color: #ffffff;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

input[type="date"].form-control-solid:disabled,
input[type="date"].form-control-solid[readonly] {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

/* Date Input with Icon Container */
.position-relative input[type="date"] {
    padding-right: 3.5rem;
}

/* Firefox Date Input Styling */
input[type="date"]::-moz-placeholder {
    color: #9ca3af;
    opacity: 1;
}

input[type="date"]::placeholder {
    color: #9ca3af;
}

/* Form Validation - Red Borders for All Invalid Fields */
.is-invalid,
.form-control.is-invalid,
.form-control-solid.is-invalid,
.form-select.is-invalid,
.form-select-solid.is-invalid,
input.is-invalid,
input[type="text"].is-invalid,
input[type="email"].is-invalid,
input[type="tel"].is-invalid,
input[type="number"].is-invalid,
input[type="date"].is-invalid,
input[type="file"].is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: #ef4444 !important;
    border-width: 1px !important;
    border-style: solid !important;
}

.is-invalid:hover,
.form-control.is-invalid:hover,
.form-control-solid.is-invalid:hover,
.form-select.is-invalid:hover,
.form-select-solid.is-invalid:hover,
input.is-invalid:hover,
select.is-invalid:hover,
textarea.is-invalid:hover {
    border-color: #ef4444 !important;
    border-width: 1px !important;
}

.is-invalid:focus,
.form-control.is-invalid:focus,
.form-control-solid.is-invalid:focus,
.form-select.is-invalid:focus,
.form-select-solid.is-invalid:focus,
input.is-invalid:focus,
input[type="text"].is-invalid:focus,
input[type="email"].is-invalid:focus,
input[type="tel"].is-invalid:focus,
input[type="number"].is-invalid:focus,
input[type="date"].is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
    border-color: #ef4444 !important;
    border-width: 1px !important;
    border-style: solid !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    outline: none !important;
}

/* Ensure validation borders override any other border styles */
.form-control-solid.is-invalid,
.form-select-solid.is-invalid {
    border-color: #ef4444 !important;
    border-width: 1px !important;
    border-style: solid !important;
}

/* Date Input Invalid State */
input[type="date"].is-invalid {
    border-color: #ef4444 !important;
    border-width: 1px !important;
    border-style: solid !important;
}

input[type="date"].is-invalid:focus {
    border-color: #ef4444 !important;
    border-width: 1px !important;
    border-style: solid !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* File Input Invalid State */
input[type="file"].is-invalid {
    border-color: #ef4444 !important;
    border-width: 1px !important;
    border-style: solid !important;
}

input[type="file"].is-invalid:focus {
    border-color: #ef4444 !important;
    border-width: 1px !important;
    border-style: solid !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    outline: none !important;
}

/* Select2 Styling - Global */
.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.475rem !important;
    min-height: 42px !important;
    background-color: #ffffff !important;
}

.select2-container--bootstrap-5 .select2-selection--single {
    height: 42px !important;
    padding: 0.5rem 0.75rem !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 30px !important;
    padding-left: 0 !important;
    padding-right: 20px !important;
    color: #181c32 !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 8px !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #1e3a8a !important;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25) !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.475rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 0.5rem 0.75rem !important;
    color: #181c32 !important;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #1e3a8a !important;
    color: #ffffff !important;
}

.select2-container--bootstrap-5 .select2-results__option[aria-selected=true] {
    background-color: #dbeafe !important;
    color: #1e3a8a !important;
}

/* Select2 Clear Button Styling - Global */
.select2-container--bootstrap-5 .select2-selection__clear {
    cursor: pointer !important;
    float: right !important;
    font-weight: bold !important;
    margin-right: 20px !important;
    color: #6b7280 !important;
    font-size: 1.2rem !important;
    line-height: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    padding-right: 5px !important;
    transition: color 0.2s ease !important;
}

.select2-container--bootstrap-5 .select2-selection__clear:hover {
    color: #ef4444 !important;
}

.select2-container--bootstrap-5 .select2-selection__clear:focus {
    outline: none !important;
    color: #ef4444 !important;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.475rem !important;
    padding: 0.5rem 0.75rem !important;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field:focus {
    border-color: #1e3a8a !important;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25) !important;
    outline: none !important;
}

/* Select Dropdown Invalid State - Ensure dropdown arrow doesn't interfere */
.form-select.is-invalid,
.form-select-solid.is-invalid,
select.is-invalid {
    border-color: #ef4444 !important;
    border-width: 1px !important;
    border-style: solid !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    background-repeat: no-repeat !important;
}

.form-select.is-invalid:focus,
.form-select-solid.is-invalid:focus,
select.is-invalid:focus {
    border-color: #ef4444 !important;
    border-width: 1px !important;
    border-style: solid !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    outline: none !important;
}

/* Prevent full-screen loader on navigation - Hide all app-page-loaders by default */
.app-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Only show loader for specific targets with wire:loading and explicit target, but NOT during navigation */
.app-page-loader[wire\:loading][wire\:target]:not([data-navigation]) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Never show loader during Livewire navigation - use data attribute to mark navigation */
html[wire\:navigating] .app-page-loader,
body[wire\:navigating] .app-page-loader,
[wire\:navigate] ~ .app-page-loader,
body:has([wire\:navigate]) .app-page-loader,
.app-page-loader[data-navigation="true"],
.app-page-loader:not([wire\:target]) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Global table loading overlay - works with explicit loading divs */
.table-responsive {
    position: relative;
}

/* Table loading overlay div styling */
.table-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.table-loading-overlay[wire\:loading] {
    display: flex !important;
}

.table-loading-overlay .spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.2em;
}

/* Fade table content during loading */
.table tbody[wire\:loading] {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

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

/* Table inline loading state */
.table-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
}

.table-loading-overlay[wire\:loading] {
    display: flex !important;
}

.table-loading-overlay .spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.2em;
}

/* Inline table loading indicator - fade table during loading */
.table tbody[wire\:loading] {
    opacity: 0.5;
    pointer-events: none;
}

.table tbody.opacity-50 {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}
