.nav-link-group {
    position: relative;
}

.nav-link-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.submenu-arrow {
    transition: transform 0.3s ease;
    margin-left: auto;
    font-size: 1.2rem;
}

.submenu-arrow.rotate {
    transform: rotate(180deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1rem;
}

.nav-submenu.open {
    max-height: 500px;
}

.split-validation-message.text-xs.mt-2.text-green-600 {
    font-size: 14px;
}

.nav-link-child {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.nav-link-child i {
    font-size: 1rem;
    margin-right: 0.5rem;
}

.sidebar.collapsed .nav-link-text {
    display: none;
}

.sidebar.collapsed .submenu-arrow {
    display: none;
}

.sidebar.collapsed .nav-submenu {
    display: none;
}

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Google Sans Flex", "Google Sans", "Helvetica Neue", sans-serif;
}

body {
    min-height: 100vh;
    background-color: #ffffff;
    color: #000000;
}

/* Blue and White Theme Variables */
:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f8fafc;
    --card-bg: #ffffff;
    --sidebar-bg: #3d565e;
    --accent-blue: #3d565e;
    --accent-blue-hover: #3d565e;
    --accent-green: #3d565e;
    --accent-green-hover: #3d565e;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --sidebar-text: #ffffff;
    --sidebar-text-secondary: #dbeafe;
    --custom-bg: #3d565e;
    --button-primary: #133557;
    --bg-primary: #133557;
}

button.pagination-count {
    background: #133557 !important;
    color: black !important;
    border: 1px solid #133557 !important;
}

.wrapper {
    position: relative;
    max-width: 430px;
    width: 100%;
    background: var(--card-bg);
    padding: 34px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.wrapper h2 {
    position: relative;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.wrapper h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 28px;
    border-radius: 12px;
    background: var(--accent-green);
}

.wrapper form {
    margin-top: 30px;
}

.wrapper form .input-box {
    height: 52px;
    margin: 18px 0;
}

form .input-box input {
    height: 100%;
    width: 100%;
    outline: none;
    padding: 0 15px;
    font-size: 17px;
    font-weight: 400;
    color: var(--text-primary);
    background-color: var(--secondary-bg);
    border: 1.5px solid var(--border-color);
    border-bottom-width: 2.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-box input:focus,
.input-box input:valid {
    border-color: var(--accent-green);
    background-color: var(--card-bg);
}

.input-box.button input {
    color: #000;
    letter-spacing: 1px;
    border: none;
    background: var(--button-primary);
    cursor: pointer;
    font-weight: 600;
}

.input-box.button input:hover {
    background: var(--accent-blue-hover);
}

form .text h3 {
    color: var(--text-primary);
    width: 100%;
    text-align: center;
}

form .text h3 a {
    color: var(--accent-green);
    text-decoration: none;
}

form .text h3 a:hover {
    text-decoration: underline;
}

.message {
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 10px;
    background-color: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Main Layout */
.main-container {
    width: 100%;
    background-color: #ffffff;
}

/* Sidebar container to ensure proper positioning */
.sidebar-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 15rem;
    height: 100vh;
    z-index: 1000;
    pointer-events: auto;
    transition: width 0.3s ease;
}

.sidebar-container.collapsed {
    width: 5rem;
}

/* Main content wrapper to prevent sidebar overlap */
.main-content-wrapper {
    margin-left: 16rem;
    min-height: 100vh;
    width: calc(100% - 16rem);
    position: relative;
    z-index: 1;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.main-content-wrapper.sidebar-collapsed {
    margin-left: 4.5rem;
    width: calc(100% - 4.5rem);
}

/* Modern Sidebar Styling */
.sidebar {
    height: 100vh;
    background: #133557;
    color: white;
    padding: 0;
    width: 16rem;
    box-shadow: none;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid #e5e7eb;
    transition: width 0.3s ease, padding 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: 5rem;
}

.sidebar.collapsed .nav-link-text,
.sidebar.collapsed #sidebarLogo,
.sidebar.collapsed .sidebar-beta-text {
    display: none;
}

.sidebar.collapsed .logo-section {
    padding: 1.5rem 0.75rem;
    text-align: center;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 0.875rem;
    margin: 0.5rem 0.75rem;
    border-radius: 8px;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0;
    font-size: 1.375rem;
}

.sidebar.collapsed .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
}

.sidebar.collapsed .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar.collapsed .nav-link-text,
.sidebar.collapsed #sidebarLogo {
    display: none;
}

.sidebar.collapsed .logo-section {
    padding: 2.5rem 0.5rem;
    text-align: center;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 0.875rem;
    margin: 0.25rem 0.5rem;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0;
    font-size: 1.25rem;
}

/* User Profile Section */
.sidebar.collapsed .avatar {
    margin: 0 auto;
}

.sidebar.collapsed div[style*="All systems are online"] {
    justify-content: center;
}

.sidebar.collapsed div[style*="All systems are online"] span {
    display: none;
}

/* Logo Section */
.logo-section {
    padding: 2rem 2.25rem 1rem;
    border-bottom: none;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Title */
.sidebar h1,
.sidebar .brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    padding: 0;
    letter-spacing: -0.3px;
}

/* Navigation Links */
.nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    margin: 0.125rem 0.75rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.15s ease;
    position: relative;
}

.sidebar a.nav-link {
    display: flex;
    padding: 0.4rem 1.25rem;
    font-size: 14px;
}

.nav-link.active,
.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: none;
}

.nav-link i {
    margin-right: 0.875rem;
    font-size: 1.125rem;
    width: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.nav-link-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar toggle button */
.sidebar-toggle {
    position: absolute;
    top: 1.75rem;
    right: 1.25rem;
    width: 30px;
    height: 30px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.15s ease;
    box-shadow: none;
}

.sidebar.collapsed .sidebar-toggle {
    right: 1.75rem;
    top: 1.75rem;
}

.sidebar-toggle:hover {
    background: #e5e7eb;
    transform: none;
    box-shadow: none;
    border-color: #9ca3af;
}

.sidebar-toggle i {
    font-size: 14px;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.sidebar-toggle:active {
    transform: scale(0.95);
}

/* Content Area */
.content {
    padding: 2rem 3rem;
    margin-left: 16rem;
    max-width: 100%;
    position: relative;
    z-index: 1;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.content.sidebar-collapsed {
    margin-left: 4.5rem;
    max-width: 100%;
}

/* Dashboard Cards */
.bg-white {
    background: #ffffff !important;
    border: 1px solid #dee2e6;
    color: #0c407a;
}

.custom-bg {
    background-color: var(--button-primary) !important;
    background: var(--button-primary) !important;
    color: white;
}

button.w-full.flex.justify-center.py-2.px-4.border.border-transparent.text-sm.font-medium.text-white.bg-custom.hover\:bg-custom\/90.focus\:outline-none.focus\:ring-2.focus\:ring-offset-2.focus\:ring-custom,
button.\!rounded-button.w-full.flex.justify-center.py-2.px-4.border.border-transparent.text-sm.font-medium.text-white.bg-custom.hover\:bg-custom\/90.focus\:outline-none.focus\:ring-2.focus\:ring-offset-2.focus\:ring-custom {
    background: var(--button-primary) !important;
    color: #0b3f7b !important;
}

.rounded-lg {
    border-radius: 12px;
}

.shadow-sm {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Avatar Styling */
.avatar {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-weight: 600;
    overflow: hidden;
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Transactions By Account Page Styles */
input.memo-input {
    background-color: var(--secondary-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

input.memo-input:focus {
    background-color: var(--card-bg) !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 3px rgba(59, 129, 247, 0.1) !important;
}

/* Transaction details content full width */
.transaction-details-content {
    width: 100%;
    max-width: 100%;
}

.transaction-details-content .details-content {
    width: 100%;
    max-width: 100%;
}

.transaction-details-content form {
    width: 100%;
    max-width: 100%;
}

/* Enhanced dropdown styling */
.entity-dropdown,
.account-dropdown,
.multi-property-dropdown,
.class-dropdown {
    background-color: #0c407a0a;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Transaction details dropdowns */
.transaction-details .entity-dropdown,
.transaction-details .account-dropdown,
.transaction-details .multi-property-dropdown,
.transaction-details .property-dropdown,
.transaction-details .class-dropdown {
    background-color: #0c407a0a;
}

.entity-option:hover,
.account-option:hover,
.property-multi-option:hover {
    background: linear-gradient(90deg, rgba(59, 129, 247, 0.1), rgba(59, 129, 247, 0.05));
    transform: translateX(2px);
    transition: all 0.2s ease;
}

/* Property split configuration styling */
.split-input {
    background-color: var(--secondary-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.entity-option-split.create-vendor-option.flex-1.px-4.py-2.hover\:bg-blue-50.cursor-pointer.text-blue-600.font-medium {
    font-size: 14px;
}

.entity-option-split.create-customer-option.flex-1.px-4.py-2.hover\:bg-blue-50.cursor-pointer.text-blue-600.font-medium.border-r.border-gray-200 {
    font-size: 14px;
}

.split-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 129, 247, 0.1);
    background-color: var(--card-bg);
}

.split-input {
    width: 70%;
}

.grid.grid-cols-1.md\:grid-cols-4.md\:grid-cols-\[18\%_18\%_18\%_18\%_12\%_10\%_10\%\].gap-4.items-start {
    align-items: center;
}

.amount-css {
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    width: 185px !important;
}

.property-split-configuration {
    margin-top: -12px !important;
}

.property-split-item.bg-white.rounded-lg.border.border-gray-200.p-4.mb-3 {
    padding: 1rem !important;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Simple Metric Card Styles */
.metric-card-simple {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.2s;
}

.metric-card-simple:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.metric-icon-simple {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

.metric-icon-simple.income-icon {
    background-color: #d1fae5;
    color: #10b981;
}

.metric-icon-simple.expense-icon {
    background-color: #fee2e2;
    color: #ef4444;
}

.metric-icon-simple.other-icon {
    background-color: #dbeafe;
    color: #3b82f6;
}

.metric-icon-simple.net-icon {
    background-color: #d1fae5;
    color: #10b981;
}

.metric-card-simple .metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.metric-card-simple .metric-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
}

.graphs-css {
    margin-top: 4em;
}

.metric-label {
    font-size: 18px !important;
    font-weight: bold !important;
}

.expense-icons,
.metric-trends.negative {
    background: #fee59840 !important;
    color: #fee598 !important;
}

.graphs-css,
.graphs-csss {
    display: flex;
    justify-content: space-between;
}

.graphs-css img,
.graphs-csss img {
    width: 80% !important;
}

.metric-card-modern.expense-cards {
    border-top: 3px solid #fee598;
}

.auto-distribute-btn,
button.save-details-btn,
button.cancel-details-btn,
button#saveCustomerBtn,
button#saveVendorBtn {
    background: #abb6bc !important;
    /* Updated to use the new variable */
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: black !important;
}

.auto-distribute-btn:hover,
button.save-details-btn:hover,
button.cancel-details-btn:hover,
button#saveCustomerBtn:hover,
button#saveVendorBtn:hover {
    background: #3d565e;
    transform: scale(1.05);
    color: white !important;
}

/* Search and filter enhancements */
.form-select,
.entity-search-select,
.account-search-select {
    background-color: var(--secondary-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-select:focus,
.entity-search-select:focus,
.account-search-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 129, 247, 0.1);
    background-color: var(--card-bg);
}

/* Radio button styling */
.business-personal-radio:checked,
.expense-type-radio:checked,
.split-type-radio:checked {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* Property tags styling */
.selected-properties .inline-flex {
    background: linear-gradient(135deg, rgba(59, 129, 247, 0.2) 0%, rgba(59, 129, 247, 0.1) 100%);
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.selected-properties .inline-flex:hover {
    background: linear-gradient(135deg, rgba(59, 129, 247, 0.3) 0%, rgba(59, 129, 247, 0.2) 100%);
    transform: scale(1.05);
}

/* Loading spinner enhancement */
.loading-spinner {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-spinner .spinner {
    width: 64px;
    height: 64px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #154074;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Blue circular spinner for loading states */
.spinner-border {
    display: inline-block;
    border: 0.25em solid #e5e7eb;
    border-right-color: #154074;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Ensure Tailwind animate-spin works */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Loader for syncing data */
.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Smaller loader for table cells */
tbody .loader {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--accent-blue);
}

/* Toast notifications - right side of screen */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    width: 400px;
    max-width: 90vw;
}

.toast {
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.bg-success {
    background: linear-gradient(135deg, rgba(59, 129, 247, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    color: #fff;
    border-color: rgba(59, 129, 247, 0.5);
}

.toast.bg-success::before {
    background: linear-gradient(90deg, #154074 0%, #2563eb 100%);
}

.toast.bg-error {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.95) 0%, rgba(185, 28, 28, 0.95) 100%);
    color: #fff;
    border-color: rgba(220, 38, 38, 0.5);
}

.toast.bg-error::before {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.toast.bg-info {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.95) 0%, rgba(3, 105, 161, 0.95) 100%);
    color: #fff;
    border-color: rgba(2, 132, 199, 0.5);
}

.toast.bg-info::before {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Pagination styling */
#pagination button {
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

#pagination button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-hover) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 129, 247, 0.25);
}

/* Search input styling */
#searchTransactions {
    background-color: var(--secondary-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

#searchTransactions:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 129, 247, 0.1);
    background-color: var(--card-bg);
}

#searchTransactions::placeholder {
    color: var(--text-secondary);
}

/* Account summary card enhancements */
.account-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.account-summary-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.account-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.account-summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
}

.account-summary-icon.account {
    background-color: #3b82f6;
}

.account-summary-icon.balance {
    background-color: #10b981;
}

.account-summary-icon.time {
    background-color: #8b5cf6;
}

.account-summary-icon.transactions {
    background-color: #f59e0b;
}

.account-summary-text h4 {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.account-summary-text p {
    font-size: 16px;
    color: #1f2937;
    margin: 0;
    font-weight: 600;
}

/* Date range pill buttons */
.date-range-pill {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.date-range-pill:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.date-range-pill.active {
    background-color: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
}

.date-range-pill.active:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.bg-white.rounded-lg.shadow-sm {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--secondary-bg) 100%);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.bg-white.rounded-lg.shadow-sm:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Icon styling */
.ri-bank-card-line,
.ri-money-dollar-circle-line,
.ri-calendar-line,
.ri-exchange-line {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6b7280;
}

/* Text colors */
.text-gray-600,
.text-gray-700 {
    color: var(--text-secondary) !important;
}

.text-gray-900 {
    color: var(--text-primary) !important;
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    color: #000000 !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 3px rgba(59, 129, 247, 0.1) !important;
}

/* Popup Chat Widget Styles */
#popupChatWidget {
    z-index: 1000;
}

#popupChatWidget .popup-chat-bubble.bg-blue-600 {
    background-color: #6b7280;
}

#popupChatWidget .popup-chat-bubble.bg-gray-100 {
    background-color: #f3f4f6;
}

/* Animation for chat popup */
#chatPopupWindow,
#miniChatWindow {
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive styles for popup chat */
@media (max-width: 768px) {
    #popupChatWidget {
        bottom: 20px !important;
        right: 20px !important;
    }

    #chatPopupWindow,
    #miniChatWindow {
        width: calc(100vw - 40px) !important;
        right: 0 !important;
        max-width: 300px !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 16rem;
    }

    .content {
        margin-left: 16rem;
        padding: 1.5rem 2rem;
    }

    .payee-account-container {
        grid-template-columns: 1fr !important;
    }

    .property-split-inputs {
        font-size: 0.875rem;
    }

    .save-details-btn {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Animation keyframes */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.transaction-details.show {
    animation: fadeIn 0.3s ease-out;
}

/* Create vendor modal styling */
#createVendorModal .bg-white {
    background-color: var(--card-bg) !important;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

/* Form validation styling */
.split-validation-message.text-red-600 {
    background-color: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    color: #ff6b6b;
    font-weight: bold;
    font-size: 13px;
}

.split-validation-message {
    background-color: #DCFCE7;
    border: 1px solid rgba(142, 187, 48, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    color: black;
    font-weight: bold;
    font-size: 13px;
}

.p-2.text-sm.text-gray-500.calculated-amount.mt-1 {
    font-size: 15px;
    font-weight: bold;
    color: #092c36;
}

.justify-end {
    justify-content: flex-end;
}

/* Settings Page Specific Styles */
/* Transaction Settings Tabs */
button#saveDepositAccountBtn,
button#saveExpenseAccountBtn {
    background: var(--button-primary) !important;
    color: black !important;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
    font-size: 14px;
}

#transaction-settings .nav-pills .nav-link {
    background-color: #e5e7eb;
    color: #4b5563;
    border: none;
}

#transaction-settings .nav-pills .nav-link:hover {
    background-color: #d1d5db;
    color: #1f2937;
}

#transaction-settings .nav-pills .nav-link.active {
    background-color: #bad2ee !important;
    color: black !important;
}

div#avatarDisplay {
    background: var(--button-primary);
}

.avatar-container {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.section {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section h2 {
    font-size: 24px;
    margin-bottom: 0;
}

.info-row {
    display: flex;
    margin-bottom: 20px;
}

.info-label {
    width: 150px;
    color: #6c757d;
}

.info-value {
    flex: 1;
}

.btn-edit {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #212529;
    font-weight: normal;
}

.btn-edit:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.hr {
    border-top: 1px solid #e9ecef;
    margin: 30px 0;
}

.role-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.role-admin {
    background-color: #f8d7da;
    color: #721c24;
}

.role-user {
    background-color: #e2e3fe;
    color: #3a3bbb;
}

.role-guest {
    background-color: #fff3cd;
    color: #856404;
}

.role-property_manager {
    background-color: #d1ecf1;
    color: #0c5460;
}

.role-owner {
    background-color: #d4edda;
    color: #155724;
}

.role-customer {
    background-color: #e2e3fe;
    color: #3a3bbb;
}

/* Doc Reports Page Styles */
.doc-reports-page .content {
    flex: 1;
    padding: 2rem;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.doc-reports-page .content.sidebar-collapsed {
    margin-left: 4.5rem;
}

.doc-reports-page .page-header {
    margin-bottom: 2rem;
}

.doc-reports-page .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.doc-reports-page .breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.doc-reports-page .breadcrumb a:hover {
    color: #3b82f6;
}

.doc-reports-page .page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.doc-reports-page .page-title h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.doc-reports-page .filter-section {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.doc-reports-page .filter-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.doc-reports-page .filter-header i {
    color: #6b7280;
    font-size: 1.25rem;
}

.doc-reports-page .filter-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.doc-reports-page .filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.doc-reports-page .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.doc-reports-page .form-select,
.doc-reports-page .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    transition: all 0.2s;
    height: 44px;
}

.doc-reports-page .form-select:focus,
.doc-reports-page .form-control:focus {
    outline: none;
    border-color: #8ebb30;
    box-shadow: 0 0 0 3px rgba(142, 187, 48, 0.1);
}

.doc-reports-page .status-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doc-reports-page .status-pills {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.doc-reports-page .summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.doc-reports-page .summary-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 1rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.doc-reports-page .summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.doc-reports-page .summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.doc-reports-page .summary-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.doc-reports-page .summary-info h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.doc-reports-page .summary-info .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1;
}

.doc-reports-page .summary-info .change {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.5rem 0 0 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.doc-reports-page .summary-info .change.positive {
    color: #10b981;
}

.doc-reports-page .summary-info .change.negative {
    color: #ef4444;
}

.doc-reports-page .summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    position: relative;
}

.doc-reports-page .summary-icon.total {
    background: rgba(59, 130, 246, 0.1);
}

.doc-reports-page .summary-icon.draft {
    background: rgba(245, 158, 11, 0.1);
}

.doc-reports-page .summary-icon.final {
    background: rgba(16, 185, 129, 0.1);
}

.doc-reports-page .summary-icon i {
    font-size: 2rem;
    color: #3b82f6;
}

.doc-reports-page .summary-icon.draft i {
    color: #f59e0b;
}

.doc-reports-page .summary-icon.final i {
    color: #10b981;
}

/* Modern Toggle Switch Styles */
[type='checkbox']:checked {
    background-image: none !important;
}

.property-toggle {
    position: relative;
    appearance: none;
    width: 48px;
    height: 24px;
    background-color: #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    border: none;
}

.property-toggle:hover {
    background-color: #d1d5db;
}

.property-toggle:checked {
    background-color: #10b981;
}

.property-toggle:checked:hover {
    background-color: #059669;
}

.property-toggle:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.property-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.property-toggle:checked::before {
    transform: translateX(24px);
}

.doc-reports-page .reports-section {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.doc-reports-page .reports-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.doc-reports-page .reports-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.doc-reports-page .search-container {
    position: relative;
    max-width: 300px;
    flex: 1;
}

.doc-reports-page .search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #f8fafc;
    transition: all 0.2s;
}

.doc-reports-page .search-input:focus {
    outline: none;
    border-color: #8ebb30;
    box-shadow: 0 0 0 3px rgba(142, 187, 48, 0.1);
    background: white;
}

.doc-reports-page .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.875rem;
}

.doc-reports-page .reports-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

.doc-reports-page .reports-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    min-width: 800px;
}

.doc-reports-page .reports-table thead {
    background: #f8fafc;
}

.doc-reports-page .reports-table th {
    padding: 1rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.doc-reports-page .reports-table th:first-child {
    min-width: 280px;
}

.doc-reports-page .reports-table th:nth-child(2) {
    min-width: 150px;
}

.doc-reports-page .reports-table th:nth-child(3) {
    min-width: 140px;
}

.doc-reports-page .reports-table th:nth-child(4) {
    min-width: 100px;
}

.doc-reports-page .reports-table th:nth-child(5) {
    min-width: 80px;
}

.doc-reports-page .reports-table th:nth-child(6) {
    min-width: 100px;
}

.doc-reports-page .reports-table td {
    padding: 2rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    color: #374151;
    vertical-align: middle;
}

.doc-reports-page .reports-table tbody tr {
    transition: all 0.2s;
}

.doc-reports-page .reports-table tbody tr:hover {
    background: #f8fafc;
}

.doc-reports-page .property-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.doc-reports-page .property-name {
    font-weight: 600;
    color: #1e293b;
}

.doc-reports-page .property-id {
    font-size: 0.75rem;
    color: #6b7280;
}

.doc-reports-page .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.doc-reports-page .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
}

.doc-reports-page .status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.doc-reports-page .status-badge.draft {
    background: #fef3c7;
    color: #92400e;
}

.doc-reports-page .status-badge.final {
    background: #d1fae5;
    color: #065f46;
}

.doc-reports-page .status-badge.final::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.doc-reports-page .status-badge.draft::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
}

.doc-reports-page .action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.doc-reports-page .view-btn {
    background: #e0f2fe;
    color: #0369a1;
}

.doc-reports-page .view-btn:hover {
    background: #bae6fd;
    transform: scale(1.05);
}

.doc-reports-page .edit-btn {
    background: #f3e8ff;
    color: #7c3aed;
}

.doc-reports-page .edit-btn:hover {
    background: #e9d5ff;
    transform: scale(1.05);
}

.doc-reports-page .delete-btn {
    background: #fef2f2;
    color: #dc2626;
}

.doc-reports-page .delete-btn:hover {
    background: #fee2e2;
    transform: scale(1.05);
}

.doc-reports-page .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.doc-reports-page .modal.show {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.doc-reports-page .modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.doc-reports-page .modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.doc-reports-page .modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.doc-reports-page .modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.doc-reports-page .modal-close:hover {
    background: #e2e8f0;
    color: #374151;
}

/* Transactions by Account Page Styles */
.transactions-page {
    background-color: #f9fafb;
}

.transactions-page .table-container {
    overflow-x: auto;
}

.transactions-page .table-row:nth-child(even) {
    background-color: rgba(243, 244, 246, 0.5);
}

.transactions-page .table-row:hover {
    background-color: rgba(219, 234, 254, 0.3);
}

.transactions-page input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

.transactions-page input[type="number"]::-webkit-inner-spin-button,
.transactions-page input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.transactions-page .loading-ring {
    display: inline-block;
    position: relative;
    width: 48px;
    height: 48px;
}

.transactions-page .loading-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 38px;
    height: 38px;
    margin: 5px;
    border: 3px solid #3b82f6;
    border-radius: 50%;
    animation: loading-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #3b82f6 transparent transparent transparent;
}

.transactions-page .loading-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.transactions-page .loading-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.transactions-page .loading-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes loading-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.transactions-page .transaction-details {
    display: none;
    background-color: #f8f9fa;
}

.transactions-page .transaction-details.show {
    display: table-row;
}

.transactions-page .transaction-details-content {
    position: relative;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin: 5px 0;
    padding: 15px;
}

.transactions-page button.save-details-btn.px-4.py-2.bg-primary.text-white.rounded-button.hover\:bg-blue-600 {
    width: 14% !important;
}

.transactions-page #transactionsTable {
    table-layout: fixed;
}

.transactions-page #transactionsTable th:nth-child(1) {
    width: 40px;
}

.transactions-page #transactionsTable th:nth-child(2) {
    width: 100px;
}

.transactions-page #transactionsTable th:nth-child(3) {
    width: 100px;
}

.transactions-page #transactionsTable th:nth-child(4) {
    width: 250px;
}

.transactions-page #transactionsTable th:nth-child(5) {
    width: 250px;
}

.transactions-page #transactionsTable th:nth-child(6) {
    width: 80px;
}

.transactions-page .break-words {
    word-wrap: break-word;
    word-break: break-word;
}

.transactions-page td.px-4.py-3.whitespace-nowrap.text-sm.text-right.font-medium.text-blue-600 {
    text-align: center;
    padding-left: 70px !important;
}

.transactions-page .flex.items-center.justify-end.transaction-id {
    padding-right: 30px !important;
}

.transactions-page .form-section {
    margin-bottom: 24px;
}

.transactions-page .form-section:last-child {
    margin-bottom: 0;
}

.transactions-page .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.transactions-page .form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
}

.transactions-page .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.transactions-page .radio-group {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.transactions-page .radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transactions-page .radio-input {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.transactions-page .radio-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.transactions-page .save-btn {
    background-color: #3b82f6;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.transactions-page .save-btn:hover {
    background-color: #2563eb;
}

.transactions-page .account-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 0;
    min-width: 200px;
}

.transactions-page .account-summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.flex.flex-col.gap-2 {
    margin-top: 1.7em;
}

.w-11.h-6.bg-gray-200.peer-focus\:outline-none.peer-focus\:ring-4.peer-focus\:ring-blue-300.rounded-full.peer.peer-checked\:after\:translate-x-full.peer-checked\:after\:border-white.after\:content-\[\'\'\].after\:absolute.after\:top-\[2px\].after\:left-\[2px\].after\:bg-white.after\:border-gray-300.after\:border.after\:rounded-full.after\:h-5.after\:w-5.after\:transition-all.peer-checked\:bg-blue-600 {
    height: 1.5rem;
    width: 3.3rem;
}

.w-11.h-6.bg-gray-200.peer-focus\:outline-none.peer-focus\:ring-4.peer-focus\:ring-blue-300.rounded-full.peer.peer-checked\:after\:translate-x-full.peer-checked\:after\:border-white.after\:content-\[\'\'\].after\:absolute.after\:top-\[2px\].after\:left-\[2px\].after\:bg-white.after\:border-gray-300.after\:border.after\:rounded-full.after\:h-5.after\:w-5.after\:transition-all.peer-checked\:bg-blue-600::after {
    width: 1.5rem;
    height: 1.25rem;
}

.transactions-page .account-summary-icon.account {
    background-color: #3b82f6;
}

.transactions-page .account-summary-icon.balance {
    background-color: #10b981;
}

.transactions-page .account-summary-icon.time {
    background-color: #8b5cf6;
}

.transactions-page .account-summary-icon.transactions {
    background-color: #f59e0b;
}

.transactions-page .account-summary-text h4 {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
    margin: 0;
}

.transactions-page .account-summary-text p {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* Responsive adjustments for transactions page */
@media (max-width: 767px) {
    .transactions-page .md\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

.doc-reports-page .modal-body {
    padding: 1rem 2rem 2rem 2rem;
}

.doc-reports-page .modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.doc-reports-page .modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.doc-reports-page .notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #10b981;
    z-index: 1001;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.doc-reports-page .notification.show {
    transform: translateX(0);
}

.doc-reports-page .notification.error {
    border-left-color: #ef4444;
}

.doc-reports-page .empty-state {
    text-align: center;
    padding: 2rem 2rem;
    color: #6b7280;
}

.doc-reports-page .empty-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.doc-reports-page .empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.doc-reports-page .empty-state p {
    margin: 0;
}

/* Loading spinner for doc reports */
.doc-reports-page .loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.doc-reports-page .loading-spinner.hidden {
    display: none !important;
}

.doc-reports-page .loading-spinner .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive styles for doc reports */
@media (max-width: 1024px) {
    .doc-reports-page .reports-table th:first-child {
        min-width: 220px;
    }

    .doc-reports-page .reports-table th:nth-child(2) {
        min-width: 120px;
    }

    .doc-reports-page .reports-table th:nth-child(3) {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .doc-reports-page .content {
        margin-left: 0;
        padding: 1rem;
    }

    .doc-reports-page .filter-grid {
        grid-template-columns: 1fr;
    }

    .doc-reports-page .summary-grid {
        grid-template-columns: 1fr;
    }

    .doc-reports-page .reports-header {
        flex-direction: column;
        align-items: stretch;
    }

    .doc-reports-page .search-container {
        max-width: none;
    }

    .doc-reports-page .modal-content {
        margin: 1rem;
    }

    .doc-reports-page .modal-form .form-row {
        grid-template-columns: 1fr;
    }

    .doc-reports-page .reports-table {
        min-width: 600px;
    }

    .doc-reports-page .reports-table th,
    .doc-reports-page .reports-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }

    .doc-reports-page .reports-table th:first-child {
        min-width: 180px;
    }

    .doc-reports-page .reports-table th:nth-child(2) {
        min-width: 100px;
    }

    .doc-reports-page .reports-table th:nth-child(3) {
        min-width: 100px;
    }

    .doc-reports-page .reports-table th:nth-child(4) {
        min-width: 80px;
    }

    .doc-reports-page .reports-table th:nth-child(5) {
        min-width: 60px;
    }

    .doc-reports-page .reports-table th:nth-child(6) {
        min-width: 80px;
    }
}

/* Dashboard Page Styles */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.375rem 0;
}

.welcome-subtitle {
    color: #6b7280;
    margin: 0;
    font-size: 0.9375rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.user-role {
    font-size: 0.75rem;
    color: #6b7280;
}

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.report-title-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.report-icon {
    font-size: 1.25rem;
    color: #3b82f6;
}

.report-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.date-range-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

button.remove-split-row.p-2 {
    margin-right: 1rem;
}

.date-range-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.date-inputs-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-date-input {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: white;
    color: #1f2937;
    min-width: 150px;
}

.modern-date-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.date-separator {
    color: #9ca3af;
    font-size: 0.875rem;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3.5rem;
}

.metric-card-modern {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.metric-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.income-card {
    border-top: 3px solid #10b981;
}

.expense-card {
    border-top: 3px solid #ef4444;
}

.other-income-card {
    border-top: 3px solid #3b82f6;
}

.net-card {
    border-top: 3px solid #8b5cf6;
}

.metric-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1.25rem;
}

.metric-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
}

.metric-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

.metric-trend.positive {
    background: #d1fae5;
    color: #059669;
}

.metric-trend.negative {
    background: #fee2e2;
    color: #dc2626;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
}

.mini-chart {
    height: 40px;
    margin-top: 1rem;
}

.mini-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

.metrics-grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

.metric-icon.income {
    background-color: #dcfce7;
    color: #059669;
}

.metric-icon.expense {
    background-color: #fef2f2;
    color: #dc2626;
}

.metric-icon.other {
    background-color: #eff6ff;
    color: #2563eb;
}

.metric-icon.net {
    background-color: #f0fdf4;
    color: #16a34a;
}

.metric-value {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #1f2937;
}

.metric-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.statement-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
}

.statement-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.statement-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    letter-spacing: 0.05em;
}

.statement-table th:last-child {
    text-align: right;
}

.statement-table td {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #334155;
    border-bottom: 1px solid #f8fafc;
    vertical-align: middle;
}

.statement-table tr:hover td {
    background-color: #f8fafc;
}

/* Financial Amounts */
.amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    white-space: nowrap;
}

/* Rows Hierarchy */
.header-row td {
    font-weight: 700;
    color: #0f172a;
    background-color: #ffffff;
    padding-top: 16px;
    padding-bottom: 16px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* Level Indentation handled by JS padding, but we can enforce styles */
.account-name {
    color: #334155;
}

/* Summary/Total Rows */
.summary-row td {
    font-weight: 600;
    color: #1e293b;
    border-top: 1px solid #cbd5e1;
    background-color: #fff;
}

.summary-row.level-0 td {
    border-top: 2px solid #cbd5e1;
    border-bottom: 2px solid #cbd5e1;
    background-color: #ffffff;
    font-size: 0.95rem;
}

/* Net Income Row */
.net-income-row td {
    font-weight: 800;
    color: #0f172a;
    font-size: 1rem;
    background-color: #f0f9ff;
    border-top: 2px solid #0ea5e9;
    border-bottom: 2px solid #0ea5e9;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Positive/Negative Colors - Enhanced */
.positive-amount {
    color: #059669;
    font-weight: 500;
}

.negative-amount {
    color: #dc2626;
    font-weight: 500;
}

.section-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.section-arrow {
    transition: transform 0.2s ease;
    font-size: 0.875rem;
    color: #6b7280;
}

.section-collapsed .section-arrow {
    transform: rotate(-90deg);
}

.section-content {
    transition: all 0.3s ease;
}

.section-content.collapsed {
    display: none;
}

.subsection-row {
    position: relative;
}

.level-1 {
    background-color: #fafbfc;
}

.level-2 {
    background-color: #f8f9fa;
}

.summary-row td {
    background-color: #f9fafb;
    font-weight: 600;
    border-top: 2px solid #e5e7eb;
}

.net-income-row td {
    background-color: #f0fdf4;
    font-weight: 700;
    font-size: 0.9375rem;
    border-top: 3px solid #10b981;
}

.positive-amount {
    color: #059669;
}

.negative-amount {
    color: #dc2626;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
    color: #6b7280;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.alert-warning {
    background-color: #fefce8;
    border: 1px solid #fde047;
    color: #a16207;
}

.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

div#modalError,
div#modalSuccess {
    margin: 1rem;
}

.quickbooks-connect-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    color: #6b7280;
}

.quickbooks-connect-prompt .chain-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #f39c12;
}

.quickbooks-connect-prompt h3 {
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.quickbooks-connect-prompt p {
    margin-bottom: 1rem;
}

.quickbooks-connect-prompt .btn-primary {
    margin-top: 1rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.quickbooks-connect-prompt .btn-primary:hover {
    background-color: #2563eb;
}

.quickbooks-connect-prompt .btn-primary i {
    margin-right: 0.5rem;
}

/* Dashboard Profit & Loss Report Styles */
.card.bg-success,
.card.bg-danger,
.card.bg-info,
.card.bg-warning {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.card.bg-success:hover,
.card.bg-danger:hover,
.card.bg-info:hover,
.card.bg-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.card.bg-success {
    background: linear-gradient(135deg, #154074 0%, #2563eb 100%) !important;
}

.card.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%) !important;
}

.card.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%) !important;
}

.card.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
    color: #000 !important;
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table thead th {
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 15px;
}

.table tbody tr:hover {
    background-color: rgba(59, 129, 247, 0.05);
    transition: all 0.2s ease;
}

.table-active {
    background: linear-gradient(90deg, rgba(59, 129, 247, 0.1) 0%, rgba(59, 129, 247, 0.05) 100%) !important;
}

/* Additional dark theme styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

.table {
    color: #000000;
    background-color: #ffffff;
}

.table th {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #000000;
}

.table td {
    border-color: #dee2e6;
    color: #6c757d;
}

/* Bootstrap overrides for dark theme */
.btn-primary {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    border-color: var(--accent-blue-hover);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--secondary-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--card-bg);
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.modal-content {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.modal-header {
    border-color: var(--border-color);
}

.modal-footer {
    border-color: var(--border-color);
}

/* Tab Styles */
.tab-button {
    color: #6b7280;
    background-color: transparent;
    border-radius: 8px;
    padding: 12px 24px;
    margin-right: 8px;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}

.tab-button:hover {
    color: #374151;
    background-color: #f3f4f6;
}

/* Settings page tab active state */
button#changePasswordBtn,
button#createUserBtn,
button.update-role-btn,
button.impersonate-user-btn,
button.delete-user-btn,
button.assign-dashboard-btn,
button.remove-dashboard-btn,
button#createOwnerBtn,
button.assign-property-btn,
button.delete-owner-btn,
button.edit-assignment-btn,
button.unassign-btn,
button.quick-assign-btn,
a.qb-connect-btn,
a.qb-disconnect-btn,
a.xero-connect-btn,
a.xero-disconnect-btn,
a.flex.items-center.px-4.py-2.border.border-green-600.text-green-600.bg-white.rounded-lg.hover\:bg-green-50.transition-colors.whitespace-nowrap,
button#open-upload-modal,
.doc-reports-page .submit-btn,
#forTransaction.tab-button.active,
#refreshTransactionsBtn,
button#deleteSelectedTransations,
button.view-details-btn,
button.update-classification-btn,
button.btn-modern-run,
#forReview.tab-button.active,
#excludedTab.tab-button.active,
button#connectBrexBtn,
button#connectGuestyBtn,
button#connectOwnerRezBtn,
a#connectXeroBtn,
button#connectHostawayBtn,
a#connectQuickBooksBtn,
button#saveHostawayConnectionBtn,
button#saveGuestyConnectionBtn,
button#saveBrexConnectionBtn,
button#sync-reservations-btn {

    background: #abb6bc;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: black !important;
    font-size: 14px;

    /* background: var(--button-primary) !important;
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
    font-size: 14px; */
    /* border: 2px solid #3d565e; */
}

button#changePasswordBtn:hover,
button#createUserBtn:hover,
button.update-role-btn:hover,
button.impersonate-user-btn:hover,
button.delete-user-btn:hover,
button.assign-dashboard-btn:hover,
button.remove-dashboard-btn:hover,
button#createOwnerBtn:hover,
button.assign-property-btn:hover,
button.delete-owner-btn:hover,
button.edit-assignment-btn:hover,
button.unassign-btn:hover,
button.quick-assign-btn:hover,
a.qb-connect-btn:hover,
a.qb-disconnect-btn:hover,
a.xero-connect-btn:hover,
a.xero-disconnect-btn:hover,
button#open-upload-modal:hover,
.doc-reports-page .submit-btn:hover,
#forTransaction.tab-button.active:hover,
button.cancel-details-btn:hover,
.save-details-btn:hover,
button#deleteSelectedTransations:hover,
button.view-details-btn:hover,
button.update-classification-btn:hover,
button.btn-modern-run:hover,
button#forReview:hover,
button#excludedTab:hover,
button#sync-reservations-btn:hover {
    background: #092c3687 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.status-pill.status-btn {
    background: #092c3687 !important;
    color: black !important;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.status-pill.active {
    background: #092c3687 !important;
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

#refreshTransactionsBtn,
#pushSelectedToQB,
button.push-to-quickbooks-btn {
    letter-spacing: 0.5px;
    font-size: 14px;
    color: white !important;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    border-radius: 8px;
    padding: 12px 24px;
    transition: 0.3s;
    text-decoration: none;
    background: #41b336e0 !important;
}

#refreshTransactionsBtn:hover,
#pushSelectedToQB:hover,
button.push-to-quickbooks-btn:hover {
    background: #2ba020 !important;
}

button#roles-tab,
button#property-management-tab,
button#integrations-tab,
button#account-tab,
button#transaction-settings-tab,
button#tab-1367729596,
button#tab-327329890,
button#property-transaction-tab,
button#pl-tab,
button#bs-tab {
    color: #6b7280;
    font-weight: 500;
    text-transform: none;
}

.nav-tabs .nav-link.active {
    font-size: 14px !important;
    color: white !important;
    text-transform: none;
    letter-spacing: 0.5px;
    background: var(--button-primary) !important;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    border-radius: 8px;
    padding: 9px 24px;
}

.nav-tabs .nav-link {
    font-weight: 600;
    text-transform: uppercase;
    border-color: initial;
}

.nav-tabs .nav-link:hover {
    font-weight: 600;
    text-transform: none;
    border-color: initial;
}

#forTransaction.tab-button.active {
    color: black;
    background: #092c3654;
    border-radius: 8px;
}

.tab-button.active span:last-child {
    background-color: #ffffff !important;
    color: #000000 !important;
}

button.w-full.flex.justify-center.py-2.px-4.border.border-transparent.text-sm.font-medium.text-white.bg-custom.hover\:bg-custom\/90.focus\:outline-none.focus\:ring-2.focus\:ring-offset-2.focus\:ring-custom {
    background: white !important;
    color: black !important;
}

.custom-bg {
    background-color: var(--button-primary) !important;
    background: var(--button-primary) !important;
    color: #ffffff !important;
}

.custom-bg label {
    color: white !important;
}

.custom-bg input {
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    color: #000000 !important;
}

.custom-bg input::placeholder {
    color: #666666 !important;
}

.custom-bg .text-gray-400 {
    color: #888888 !important;
}

/* Ensure the signin form background is applied with maximum specificity */
div.custom-bg.py-8.px-6.shadow-sm.rounded-lg,
div.custom-bg {
    background-color: var(--button-primary) !important;
    background: var(--button-primary) !important;
    color: #ffffff !important;
}

/* Override any Tailwind background classes */
.custom-bg[class*="bg-"] {
    background-color: var(--button-primary) !important;
    background: var(--button-primary) !important;
}

button.px-4.py-3.bg-primary.text-white.rounded-lg.font-small.whitespace-nowrap.\!rounded-button,
button.px-6.py-3.bg-primary.text-white.rounded-lg.font-medium.hover\:bg-secondary.whitespace-nowrap.\!rounded-button {
    background: #154073 !important;
}

/* Analytics Page Styles */
.analytics-page .content {
    margin-left: 280px;
    flex: 1;
    padding: 2rem;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.analytics-page .content.sidebar-collapsed {
    margin-left: 4.5rem;
    width: 80%;
    max-width: 80%;
}

.analytics-page .page-header {
    margin-bottom: 2rem;
}

.analytics-page .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.analytics-page .breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.analytics-page .breadcrumb a:hover {
    color: #3b82f6;
}

.analytics-page .page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.analytics-page .page-title h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.analytics-page .dashboard-section {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.analytics-page .dashboard-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.analytics-page .dashboard-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.analytics-page .dashboard-list {
    padding: 0;
}

.analytics-page .dashboard-tabs-container {
    padding: 1rem 2rem 2rem 2rem;
}

.analytics-page .nav-tabs {
    border-bottom: none;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.analytics-page .dashboard-selector-wrapper {
    width: 100%;
    margin-bottom: 1.5rem;
}

.analytics-page .dashboard-dropdown {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: #154074;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(59, 129, 247, 0.25);
}

.analytics-page .dashboard-dropdown:hover {
    background: #0c2f5a;
    box-shadow: 0 6px 8px rgba(59, 129, 247, 0.35);
}

.analytics-page .dashboard-dropdown:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.analytics-page .nav-tabs .nav-link {
    border: none;
    color: #6b7280;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: transparent;
    margin-right: 0.5rem;
    transition: all 0.2s;
    font-size: 14px;
}

.analytics-page .nav-tabs .nav-link:hover {
    background: #f3f4f6;
    color: #374151;
}

.analytics-page .nav-tabs .nav-link.active {
    color: black;
    background: #bad2ee;
    box-shadow: 0 4px 6px rgba(59, 129, 247, 0.25);
}

.analytics-page .nav-tabs .nav-link i {
    margin-right: 0.5rem;
}

.analytics-page .dashboard-iframe-container {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.analytics-page .dashboard-iframe-container.active {
    display: block;
}

.analytics-page .dashboard-iframe {
    width: 100%;
    height: 600px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
}

.analytics-page .loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.analytics-page .loading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.25rem;
}

.analytics-page .loading p {
    margin-top: 1rem;
    font-size: 1rem;
}

.analytics-page .error {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #dc2626;
}

.analytics-page .alert {
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

.analytics-page .alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.analytics-page .alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

@media (max-width: 768px) {
    .analytics-page .content {
        margin-left: 0;
        padding: 1rem;
    }

    .analytics-page .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .analytics-page .btn-primary,
    .analytics-page .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Xero Transactions Page Styles */
.xero-transactions-page {
    background-color: #f8f9fa;
}

.xero-transactions-page .content {
    padding: 2rem 3rem;
    margin-left: 16rem;
    flex: 1;
    background-color: #ffffff;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.xero-transactions-page .content.sidebar-collapsed {
    margin-left: 4.5rem;
    width: 80%;
    max-width: 80%;
}

.xero-transactions-page .page-header {
    margin-bottom: 2rem;
}

.xero-transactions-page .page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.xero-transactions-page .page-subtitle {
    color: #6b7280;
    font-size: 0.9375rem;
    margin: 0;
}

.xero-transactions-page .search-criteria-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.xero-transactions-page .criteria-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.xero-transactions-page .criteria-row {
    display: grid;

    #financial-drawer {
        transition: transform 0.3s ease-in-out;
    }

    #drawer-overlay {
        transition: opacity 0.3s ease-in-out;
    }

    /* Reservation Drawer Styles (keeping existing if used elsewhere) */
    .drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .drawer-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .reservation-drawer {
        position: fixed;
        top: 0;
        right: -500px;
        width: 500px;
        max-width: 90vw;
        height: 100vh;
        background: white;
        z-index: 9999;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .reservation-drawer.open {
        right: 0;
    }

    .drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid #e5e7eb;
        background: linear-gradient(135deg, #154074 0%, #1d4ed8 100%);
    }


    .section-icon-header i {
        font-size: 1.25rem;
        color: #154074;
    }

    .section-icon-header h3 {
        font-size: 1rem;
        font-weight: 600;
        color: #1e293b;
        margin: 0;
    }

    .info-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-item {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .info-label {
        font-size: 0.75rem;
        font-weight: 500;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .info-value {
        font-size: 0.9375rem;
        font-weight: 600;
        color: #1f2937;
    }

    .status-badge-drawer {
        display: inline-block;
        padding: 0.375rem 0.75rem;

        .reservations-page .content {
            padding: 0;
            margin-left: 18em;
        }

        .reservations-page .reservation-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 15px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            border: 1px solid #eef0f2;
        }

        .reservations-page .guest-info {
            padding: 15px 0;
            border-bottom: 1px solid #eef0f2;
        }

        .reservations-page .reservation-details {
            padding: 15px 0;
        }

        .reservations-page .status-badge {
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
        }

        .reservations-page .status-confirmed {
            background-color: #d4edda;
            color: #155724;
        }

        .reservations-page .status-pending {
            background-color: #fff3cd;
            color: #856404;
        }

        .reservations-page .status-cancelled {
            background-color: #f8d7da;
            color: #721c24;
        }

        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .status-badge-drawer.confirmed {
        background: #d1fae5;
        color: #065f46;
    }

    .status-badge-drawer.pending {
        background: #fef3c7;
        color: #92400e;
    }

    .status-badge-drawer.modified {
        background: #d1fae5;
        color: #065f46;
    }

    .status-badge-drawer.cancelled {
        background: #fee2e2;
        color: #991b1b;
    }

    .price-highlight {
        color: #10b981;
        font-size: 1.125rem;
    }

    .financial-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .financial-card {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 1rem;
        transition: all 0.2s;
    }

    .financial-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .financial-label {
        font-size: 0.75rem;
        font-weight: 600;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.5rem;
    }

    .financial-value {
        font-size: 1.125rem;
        font-weight: 700;
        color: #1f2937;
    }

    .financial-desc {
        font-size: 0.75rem;
        color: #6b7280;
        margin-top: 0.5rem;
    }

    .financial-loading,
    .financial-error,
    .financial-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        text-align: center;
        color: #6b7280;
    }

    .financial-loading i,
    .financial-error i,
    .financial-empty i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .financial-error {
        color: #dc2626;
    }

    .financial-error i {
        color: #dc2626;
    }

    .financial-empty i {
        color: #9ca3af;
    }

    .drawer-loading {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 3rem;
        color: #6b7280;
        min-height: 300px;
    }

    .drawer-loading i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: #154074;
    }

    .drawer-loading p {
        font-size: 1rem;
        font-weight: 500;
        margin: 0;
    }

    /* Status Badge Styles for Reservations Table */
    .status-badge {
        display: inline-block;
        padding: 0.375rem 0.75rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .status-confirmed {
        background: #d1fae5;
        color: #065f46;
    }

    .status-pending {
        background: #fef3c7;
        color: #92400e;
    }

    .status-modified {
        background: #10b981;
        color: #ffffff;
    }

    .status-cancelled {
        background: #fee2e2;
        color: #991b1b;
    }

    /* Reservation Row Hover */
    .reservation-row {
        transition: all 0.2s;
    }

    .reservation-row:hover {
        background-color: #f9fafb;
    }

    /* Financial Details Dropdown */
    .financial-details-row {
        transition: all 0.3s ease;
    }

    .financial-details-row.hidden {
        display: none;
    }

    .financial-details-content {
        animation: fadeIn 0.3s ease-in-out;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .view-details-btn {
        background: none;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
    }

    .view-details-btn:hover {
        transform: scale(1.1);
    }

}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reservation-drawer {
        width: 100%;
        right: -100%;
    }

    .financial-grid {
        grid-template-columns: 1fr;
    }
}

.xero-transactions-page .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.xero-transactions-page .form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    transition: all 0.2s;
}

.xero-transactions-page .form-select:focus {
    outline: none;
    border-color: #154074;
    box-shadow: 0 0 0 3px rgba(21, 64, 116, 0.1);
}

.xero-transactions-page .tab-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.xero-transactions-page .tab-button {
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.xero-transactions-page .tab-button:hover {
    color: #374151;
}

.xero-transactions-page .tab-button.active {
    color: #2563eb;
    border-color: #2563eb;
}

.xero-transactions-page .tab-badge {
    background: white;
    color: #154074;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.xero-transactions-page .tab-button.active .tab-badge {
    background: white;
    color: #154074;
}

.xero-transactions-page .transactions-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.xero-transactions-page .transactions-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xero-transactions-page .transactions-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.xero-transactions-page .header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.xero-transactions-page .search-input {
    width: 250px;
    padding: 0.5rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
}

.xero-transactions-page .btn-refresh {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.xero-transactions-page .btn-refresh:hover {
    background: #059669;
}

.xero-transactions-page .entries-select {
    padding: 0.375rem 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
}

.xero-transactions-page .transactions-table {
    width: 100%;
    border-collapse: collapse;
}

.xero-transactions-page .transactions-table thead {
    background: #f9fafb;
}

.xero-transactions-page .transactions-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

.xero-transactions-page .transactions-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
    color: #374151;
}

.xero-transactions-page .transactions-table tbody tr:hover {
    background: #f9fafb;
}

.xero-transactions-page .type-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.xero-transactions-page .type-deposit {
    background: #d1fae5;
    color: #065f46;
}

.xero-transactions-page .type-expense {
    background: #dbeafe;
    color: #1e40af;
}

.xero-transactions-page .amount-positive {
    color: #10b981;
    font-weight: 600;
}

.xero-transactions-page .amount-negative {
    color: #ef4444;
    font-weight: 600;
}

.xero-transactions-page .btn-action {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.2s;
}

.xero-transactions-page .btn-action:hover {
    color: #154074;
}

.xero-transactions-page .checkbox-cell {
    width: 40px;
}

.xero-transactions-page .checkbox-input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.xero-transactions-page .transaction-details-row {
    background: #f9fafb !important;
}

.xero-transactions-page .transaction-details-row:hover {
    background: #f9fafb !important;
}

/* PDF Viewer Modal Styles */
#pdfViewerModal .modal-body {
    background-color: #ffffff;
}

#modal-pdfViewer {
    background-color: #ffffff !important;
}

#pdfViewerModal canvas {
    background-color: #ffffff;
}

#pdfViewerModal .page {
    background-color: #ffffff;
}

/* Charts of accounts - matching doc_reports design */
.chart-of-accounts-page .content {
    margin-left: 280px;
    flex: 1;
    padding: 2rem;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.chart-of-accounts-page .content.sidebar-collapsed {
    margin-left: 4.5rem;
    width: 80%;
    max-width: 80%;
}

.chart-of-accounts-page .page-header {
    margin-bottom: 2rem;
}

.chart-of-accounts-page .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.chart-of-accounts-page .breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.chart-of-accounts-page .breadcrumb a:hover {
    color: #3b82f6;
}

.chart-of-accounts-page .page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.chart-of-accounts-page .page-title h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.chart-of-accounts-page .upload-btn {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: rgba(59, 129, 247, 0.25) 0px 4px 6px;
    color: rgb(255, 255, 255);
    background: #3b82f6;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    border-radius: 8px;
    padding: 9px 24px;
    transition: 1.3s;
    font-size: 14px;
    cursor: pointer;
}

.chart-of-accounts-page .upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: rgba(59, 129, 247, 0.35) 0px 6px 12px;
    background: #1160df;
}

.chart-of-accounts-page .filter-section {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chart-of-accounts-page .filter-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.property-split-configuration {
    margin-top: 20px !important;
}

.chart-of-accounts-page .filter-header i {
    color: #6b7280;
    font-size: 1.25rem;
}

.create-vendor-option,
.create-customer-option {
    font-size: 12px;
}

.chart-of-accounts-page .filter-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.chart-of-accounts-page .filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.chart-of-accounts-page .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.chart-of-accounts-page .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    transition: all 0.2s;
}

.chart-of-accounts-page .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chart-of-accounts-page .reports-section {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chart-of-accounts-page .reports-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-of-accounts-page .reports-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.chart-of-accounts-page .search-container {
    position: relative;
    max-width: 300px;
    flex: 1;
}

.chart-of-accounts-page .search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #f8fafc;
    transition: all 0.2s;
}

.chart-of-accounts-page .search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.chart-of-accounts-page .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.875rem;
}

.chart-of-accounts-page .reports-table-container {
    overflow-x: auto;
}

.chart-of-accounts-page .reports-table {
    width: 100%;
    border-collapse: collapse;
}

.chart-of-accounts-page .reports-table thead {
    background: #f8fafc;
}

.chart-of-accounts-page .reports-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
}

.chart-of-accounts-page .reports-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    color: #374151;
}

.chart-of-accounts-page .reports-table tbody tr:hover {
    background: #f8fafc;
}

.chart-of-accounts-page .account-type-header-row {
    background: #f8fafc;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.chart-of-accounts-page .account-type-header-row:hover {
    background: #f3f4f6 !important;
}

.chart-of-accounts-page .account-type-header-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.chart-of-accounts-page .account-type-header-cell i {
    color: #6b7280;
}

.chart-of-accounts-page .account-type-header-cell i:first-child {
    transition: transform 0.2s ease;
    font-size: 1.25rem;
}

.chart-of-accounts-page .property-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chart-of-accounts-page .property-name {
    font-weight: 600;
    color: #1e293b;
}

.chart-of-accounts-page .amount {
    font-weight: 600;
}

.chart-of-accounts-page .amount.balance-positive {
    color: #059669;
}

.chart-of-accounts-page .amount.balance-negative {
    color: #dc2626;
}

.chart-of-accounts-page .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.chart-of-accounts-page .empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    display: block;
}

.chart-of-accounts-page .empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.chart-of-accounts-page .empty-state p {
    margin: 0;
}

.chart-of-accounts-page .loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.chart-of-accounts-page .loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.chart-of-accounts-page .loading-spinner.hidden {
    display: none !important;
}

.chart-of-accounts-page .view-transactions-btn {
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-of-accounts-page .view-transactions-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
}

.chart-of-accounts-page .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-of-accounts-page .modal-dialog {
    max-width: 800px;
    width: 90%;
}

.chart-of-accounts-page .modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chart-of-accounts-page .modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-of-accounts-page .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.chart-of-accounts-page .btn-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.chart-of-accounts-page .btn-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.chart-of-accounts-page .btn-close::before {
    content: '×';
}

.chart-of-accounts-page .modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.chart-of-accounts-page .table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.chart-of-accounts-page .table thead {
    background: #f8fafc;
}

.chart-of-accounts-page .table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.chart-of-accounts-page .table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
}

.chart-of-accounts-page .table-hover tbody tr:hover {
    background: #f8fafc;
}

.chart-of-accounts-page .badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.chart-of-accounts-page .bg-secondary {
    background: #64748b;
    color: white;
}

.chart-of-accounts-page .loading-spinner .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@media (max-width: 768px) {
    .chart-of-accounts-page .content {
        margin-left: 0;
        padding: 1rem;
    }

    .chart-of-accounts-page .reports-table th,
    .chart-of-accounts-page .reports-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Tax Profiles Page Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.switch input:checked+.slider {
    background-color: #2563eb;
}

.switch input:focus+.slider {
    box-shadow: 0 0 1px #2563eb;
}

.switch input:checked+.slider:before {
    transform: translateX(24px);
}

select#stateJurisdictionName,
select#countyJurisdictionName,
select#cityJurisdictionName {
    width: 240px;
}

input#stateTaxRate,
input#countyTaxRate,
input#cityTaxRate,
input#regionalTaxRate {
    width: 80px;
    margin: auto;
}

/* Toast Notification Container Z-Index Fix */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 300px;
    padding: 16px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#assigned-properties .flex.items-center.justify-between.p-2.bg-gray-50.rounded-xl.border.border-gray-100.hover\:border-gray-200.transaction-all.duration-200,
#unassigned-properties .flex.items-center.justify-between.p-2.bg-white.rounded-xl.border.border-gray-200.hover\:border-orange-200.transaction-all.duration-200.shadow-sm {
    padding: 10px 20px !important;
}

/* Balance Sheet Amount Styling */
.positive-amount {
    color: #10b981;
    font-weight: 500;
}

.negative-amount {
    color: #ef4444;
    font-weight: 500;
}

/* Advanced Date Picker Styles */
.date-picker-container {
    position: relative;
    display: inline-block;
}

.date-picker-btn {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    display: flex;
    align-items: center;
    cursor: pointer;
    min-width: 280px;
    justify-content: space-between;
    transition: all 0.2s;
}

.date-picker-btn:hover {
    border-color: #9ca3af;
    background-color: #f9fafb;
}

/* Date Picker Dropdown defaults to hidden */
.date-picker-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1050;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-top: 0.5rem;
    padding: 0.5rem;
    width: max-content;
}

/* Explicitly show when class is added */
.date-picker-dropdown.show {
    display: flex;
}

.dp-column {
    width: 140px;
    padding: 0 0.5rem;
    border-right: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
}

.dp-column:last-child {
    border-right: none;
}

.dp-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.dp-option {
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 2px;
    transition: background-color 0.15s;
}

.dp-option:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.dp-option.active {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 500;
}

.custom-column {
    width: 180px;
}

.custom-column input[type="date"] {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

span#selected-date-range {
    font-size: 14px;
    color: black;
}

select#reservation-filter,
select#channel-filter {
    padding: 7px 40px 7px 15px !important;
}

button.remove-split-row {
    background-color: #FEE2E2;
    color: black !important;
}

button.remove-split-row:hover,
button.add-split-row-inline:hover {
    color: white !important;
}

button.add-split-row-inline {
    background-color: #DCFCE7;
    color: black !important;
}

button.reset-splits-btn {
    background-color: #FEE2E2;
    color: black;
}

button.reset-splits-btn:hover {
    background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));
    color: white !important;
}

img#sidebarLogo {
    margin-bottom: -10px !important;
}

.filter-section {
    margin-bottom: 2rem;
}

button#open-filter-modal-btn,
button#apply-filters-btn {
    background: rgb(171, 182, 188);
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 500;
    transition: 0.3s;
    font-size: 14px;
    color: black !important;
}

button#reset-filters-btn i.fas.fa-undo.mr-2 {
    margin-top: 3px !important;
}

.log-img-section {
    display: flex;
    flex-direction: column;
}

div#pagination button.px-3.py-1.border.rounded-md.border-primary.bg-primary.text-white {
    background-color: #133557 !important;
}